/* web/steermore.css - QS1b: styles for the Steer groups 2-4 (Songs, Mood, Auto-DJ), the hidden old entry points, the phone
 * Now Playing chip row, the phone Effects slider rows and the "What moved" Steer card. Kept apart from styles.css on purpose.
 * House rules: selection = soft fill + check mark (the shared .steer-chip[aria-pressed] rule), the same quiet 1px
 * var(--steer-edge) border on every chip, no stripes, no rings, no glows; targets >= 44px with >= 8px gaps; text wraps, never clips. */

/* old entry points: kept in the DOM (handlers + checks use them), reached now through Steer */
.queue-steer[hidden], .np-steer[hidden], .np-mood[hidden], .np-chip[hidden] { display: none !important; }

/* ---- group chips ---- */
.sg-row { display: flex; gap: 8px; }
.sg-row.sg-wrap { flex-wrap: wrap; }
.sg-chip { position: relative; border: 1px solid var(--steer-edge); min-height: 56px; min-width: 0; line-height: 1.2; text-align: center; }
.sg-chip[aria-pressed="true"] { border-color: var(--steer-edge); }
.sg-row > .sg-chip { flex: 1 1 0; flex-direction: column; gap: 4px; padding: 6px 8px; }
.sg-row .sg-word { min-width: 0; overflow-wrap: anywhere; font-size: calc(15px * var(--ui-scale, 1)); }
.sg-ico { display: inline-flex; }
.sg-chip .steer-chk { position: absolute; top: 4px; right: 4px; }
.sg-row.sg-wrap > .sg-mood { flex: 1 1 28%; min-width: 96px; flex-direction: row; gap: 6px; }
.sg-row.sg-wrap > .sg-mood .steer-chk { position: static; }
.sg-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.sg-focus { display: grid; grid-template-columns: 16px 1fr; align-items: center; column-gap: 10px; row-gap: 0; text-align: left; justify-content: stretch; padding: 8px 14px; min-height: 56px; }
.sg-focus .steer-chk { position: static; display: inline-flex; visibility: hidden; grid-row: 1 / span 2; }
.sg-focus[aria-pressed="true"] .steer-chk { visibility: visible; }
.sg-focus .sg-word { grid-column: 2; font-weight: 700; text-align: left; }
.sg-focus .sg-desc { grid-column: 2; font-size: calc(13px * var(--ui-scale, 1)); font-weight: 500; color: var(--steer-soft); text-align: left; }
.steer-help { margin: 10px 0 0; font-size: calc(14px * var(--ui-scale, 1)); line-height: 1.35; color: var(--steer-soft); }
.sg-form { margin-top: 14px; }
.sg-lbl { display: block; margin: 0 0 6px; font-weight: 600; }
.sg-inrow { display: flex; gap: 8px; }
.sg-input { flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 0 16px; border: 1px solid var(--steer-edge); border-radius: 24px; background: transparent; color: var(--fg); font: inherit; font-size: max(16px, calc(16px * var(--ui-scale, 1))); }
.sg-input:focus-visible, .sg-pop-focus:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.sg-go { flex: none; min-width: 64px; border: 1px solid var(--steer-edge); }
.steer-pop .sg-chip:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }

/* ---- the "What moved" Steer card: its Got it button gets the same fill as the Tools card's ---- */
.wm-btn#whatmoved-steer-ok { background: var(--accent-fill, #b9531a); border-color: var(--accent-fill, #b9531a); color: #fff; }

/* ---- Steer sheet: scrolled/focused content stops clear of the status bar (UX-056) ---- */
.steer-body { scroll-padding-bottom: 60px; scroll-padding-top: 8px; }

/* ---- phone Now Playing chip row: every chip >= 44px wide with its word, never clipped, no sideways scroll ---- */
.np-full-actions.np-chips { flex-wrap: wrap; row-gap: 6px; column-gap: 6px; overflow-x: visible; }
.np-full-actions.np-chips .np-chip,
.np-full-actions.np-chips .np-fxver-btn { flex: 1 1 56px; min-width: 56px; min-height: 48px; padding: 3px 4px; border-radius: 12px; flex-direction: column; gap: 1px; background: rgba(246,243,239,.08); }
.np-full-actions.np-chips .np-fxver-btn .plabel { color: #f6f3ef; font-size: calc(11px * var(--ui-scale, 1)); white-space: normal; overflow-wrap: anywhere; text-align: center; }
/* the old swap arrow in the corner was clipped and carried no word; the label now says "Version: ..." */
.np-full-actions.np-chips .np-fxver-btn::after { content: none; }
/* row-2 chips look like row 1: soft fill when on, no glow */
.np-full-actions.np-chips .np-fxver-btn { flex: 1 1 120px; color: #f6f3ef; filter: none; }
.np-full-actions.np-chips .np-fxver-btn.on { background: rgba(200,116,55,.3); color: #f6f3ef; filter: none; }
.np-full-actions.np-chips .np-fxver-btn .pl-ico { display: inline-flex; align-items: center; justify-content: center; min-height: 20px; }
.np-full-actions.np-chips .np-fx-btn { opacity: 1; filter: none; }
.np-full-actions.np-chips .np-chip .plabel { white-space: normal; overflow-wrap: anywhere; text-align: center; }

/* ---- Effects panel on phones: label above the slider, value visible, rows >= 44px ---- */
@media (max-width: 900px) {
  .fx-rows { gap: 8px; }
  .fx-row { grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 0; align-items: center; font-size: 14px; min-height: 44px; }
  .fx-row > label { grid-column: 1; grid-row: 1; min-height: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; line-height: 1.25; }
  .fx-row > .fx-val { grid-column: 2; grid-row: 1; min-width: 56px; font-size: 14px; color: var(--fg); white-space: nowrap; }
  .fx-row > input[type=range] { grid-column: 1 / -1; grid-row: 2; width: 100%; height: 44px; margin: 0; }
  .fx-row > select, .fx-row > input[type=checkbox] { grid-column: 2; grid-row: 1; min-height: 44px; min-width: 44px; }
  .fx-row > span:empty { display: none; }
}

/* ---- QS1b-fix 6: tighter group spacing so the next group's heading peeks above the status bar at 360x640 (scroll cue) ---- */
.steer-group + .steer-group { margin-top: 10px; padding-top: 8px; }
.steer-gtitle { margin-bottom: 8px; }
.steer-help { margin-top: 6px; line-height: 1.3; }

/* ---- QS1b-fix 8: the Effects "Keep pitch" checkbox uses the brand accent ---- */
.fx-row input[type=checkbox], #fx-preserve { accent-color: var(--accent, #c87437); width: 24px; height: 24px; }

/* ---- QS1b-fix 9: the pinned grab bar also covers the panel's top padding, so scrolled text never shows above it.
   EQ / Effects / Settings scroll themselves and have 14px top padding; the grip pulls up over it (margin-top) and sticks at the padding edge (top). ---- */
@media (max-width: 900px) {
  .eq-panel > .sd-grip, .fx-panel > .sd-grip, .settings-panel > .sd-grip { margin-top: -14px; top: -14px; height: 58px; padding-top: 14px; box-sizing: border-box; border-radius: 12px 12px 0 0; }
  .eq-panel > .sd-grip::after, .fx-panel > .sd-grip::after, .settings-panel > .sd-grip::after { top: calc(50% + 7px); }
}

/* QS1b-fix: on the desktop popover the status line gets 8px above/below its Undo button, so a control at the body edge keeps >= 8px from it */
.steer-pop:not(.steer-sheet) .steer-status { padding-top: 8px; padding-bottom: 8px; }

/* QS1b-fix: the mood "Go" submit is not a selectable chip (no check mark), so it no longer carries .steer-chip; same look, own rule */
.sg-go { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 12px; border-radius: 24px; background: rgba(127,127,127,.14); color: var(--fg); font: inherit; font-size: calc(16px * var(--ui-scale, 1)); font-weight: 600; cursor: pointer; }
.sg-go:hover { background-color: rgba(127,127,127,.22); }
.sg-go:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
