
/* ── Stage: the tile fills the screen (js/media/lyrics-stage.js) ────────────────
   In place with position:fixed, like an expanded SDK widget; the shell is
   lifted for the same reason (see CustomWidget.css). */
body.lyw-has-stage .shell { z-index: 70; }

.lyrics-panel.lyw-staged {
  position: fixed;
  inset: 0;
  z-index: 12050;
  width: auto;
  height: auto;
  margin: 0;
  border-radius: 0;
  background: var(--bg, #070808);
}

/* A fixed child is clipped by an ancestor's clip-path: the island notch on the
   grid item (dropped in TopbarMinimal.css while a tile covers the screen) and a
   tile shape on the panel, dropped here, together with the island's border band
   (or a 46 px strip stays blank at the top). */
.lyrics-panel.lyw-staged {
  clip-path: none !important;
  border-width: 0 !important;
}

.lyrics-panel.lyw-staged .lyrics-widget-mount { padding: 22px clamp(18px, 6vw, 96px) 16px; }
.lyrics-panel.lyw-staged .lyv { --lyv-size: clamp(24px, 4.6cqi, 64px); }
.lyrics-panel.lyw-staged .lyw-head { padding-right: 52px; }
/* The options sheet covers the tile, but the ✕ stays above it: keep "Done" clear. */
.lyrics-panel.lyw-staged .lyo-head { padding-right: 52px; }

.lyw-stage-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(10, 12, 20, 0.55);
  color: #f4f6f5;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.lyw-stage-close:active { transform: scale(0.94); }

/* ── Options sheet (js/media/lyrics-widget-options.js) ─────────────────────────── */
.lyrics-widget-mount.has-options > :not(.lyo-sheet) { visibility: hidden; }

.lyo-sheet {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  background: var(--panel-bg, var(--bg));
  color: var(--text);
}

.lyrics-panel.has-cover .lyo-sheet { background: rgba(7, 12, 11, 0.9); }

.lyo-head {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lyo-title { margin: 0; font-size: 16px; font-weight: 800; }

.lyo-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}

.lyo-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.lyo-row.is-static { align-items: center; justify-content: space-between; cursor: default; }

/* Weighted over the global checkbox: its faint border is lost on a tile's glass. */
.lyo-row .lyo-check {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  border-color: color-mix(in srgb, var(--text), transparent 52%);
}

.lyo-text { display: flex; flex: 1 1 auto; flex-direction: column; gap: 2px; min-width: 0; }
.lyo-label { font-size: 14px; font-weight: 700; }
.lyo-hint { color: var(--muted-text); font-size: 12.5px; line-height: 1.4; }

.lyo-cost {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-left: 30px;
  color: var(--muted-text);
  font-size: 12.5px;
  line-height: 1.45;
}

.lyo-warn { color: var(--color-danger); }
.lyo-estimate:empty { display: none; }
/* Uses the plan's limits: said in full, in the text colour, not as fine print. */
.lyo-plan { color: var(--text); }
.lyo-estimate strong { color: var(--text); font-weight: 700; }
.lyo-link { color: var(--accent); font-weight: 680; text-underline-offset: 3px; }
.lyrics-panel.has-cover .lyo-link { color: var(--text); }

.lyo-usage { margin-left: 30px; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: pre-line; }
.lyo-usage:empty { display: none; }

.lyo-row .lyw-step { width: 44px; height: 44px; }
.lyo-row .lyw-offset-val { min-height: 44px; }

.lyo-select {
  flex: none;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--floating-ui-border);
  border-radius: var(--radius-control);
  background: var(--floating-ui-bg);
  color: inherit;
  font: inherit;
  font-size: 13px;
}

@container (max-height: 180px) {
  .lyw-head { display: none; }
}

/* ── Locked ──────────────────────────────────────────────────────────────── */

.lyw-pitch {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-height: 100%;
  overflow: auto;
  overscroll-behavior-y: contain;
}

.lyw-badge {
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: var(--radius-control);
  background: color-mix(in srgb, var(--accent), transparent 84%);
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 760;
}

.lyw-pitch-lead {
  font-size: clamp(18px, 5cqi, 24px);
  font-weight: 780;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.lyw-pitch-desc,
.lyw-note {
  color: var(--muted-text);
  font-size: 12.5px;
  line-height: 1.45;
}

.lyw-note { font-size: 11.5px; }

.lyw-perks {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  font-weight: 620;
}

.lyw-perks li { display: flex; align-items: baseline; gap: 8px; }
.lyw-tick { flex: none; color: var(--accent); font-weight: 800; }

.lyw-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.lyw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--control-bg);
  font-size: 12.5px;
  font-weight: 730;
  text-decoration: none;
  cursor: pointer;
}

.lyrics-widget-mount .lyw-btn.is-big {
  padding: 0 20px;
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 13px;
  font-weight: 780;
}

.lyrics-widget-mount .lyw-btn.is-accent {
  border-color: color-mix(in srgb, var(--accent), transparent 52%);
  background: color-mix(in srgb, var(--accent), transparent 86%);
  color: var(--accent);
}

.lyw-btn.is-ghost {
  border-color: transparent;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lyw-btn:active { transform: scale(0.97); }
.lyw-btn:disabled { opacity: 0.42; cursor: default; transform: none; }

.lyw-code { display: flex; flex-wrap: wrap; gap: 8px; }

.lyw-code-input {
  flex: 1 1 180px;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--control-bg);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.lyw-code-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.lyw-error { color: var(--color-danger); font-size: 12px; }
