/* Planner rows + list screens (2026-11-18 phone-layout fixes).
 * WHY THIS FILE EXISTS: the Today panel's row styles used to live
 * ONLY in a <style> element that workspace.js injects at runtime.
 * The suite's Content-Security-Policy is style-src 'self' (no
 * 'unsafe-inline'), so browsers REFUSE to apply script-injected
 * stylesheets — the rows rendered completely unstyled on the live
 * site (titles, lanes and due labels ran together as one line of
 * text) while source-text tests kept passing. Styles that must
 * actually apply live in a real stylesheet file, like this one.
 * Lane colors: Daphne's Planner Sheet map (2026-11-18), the SAME
 * hex values as lane-colors.js — tests/dora-lane-colors.test.js
 * fails if the two drift apart. OpenCut = VeilCut: one lane. */

/* ---- lane chips: the lane name on its own colored pill ---- */
.lane-chip { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 9px; font-size: .76rem; font-weight: 700; border: 1px solid rgba(0,0,0,.28); white-space: nowrap; }
.lane-chip--important { background: #ff4040; color: #ffffff; }
.lane-chip--money { background: #2fd35f; color: #0c2413; }
.lane-chip--bills { background: #ffd21f; color: #241d02; }
.lane-chip--school { background: #3b82f6; color: #ffffff; }
.lane-chip--marketing { background: #a855f7; color: #ffffff; }
.lane-chip--contractor { background: #ff8a1e; color: #26160a; }
.lane-chip--digital { background: #047857; color: #ffffff; }
.lane-chip--construction { background: #b3402a; color: #ffffff; }
.lane-chip--software { background: #c0c6ce; color: #1c2128; }
.lane-chip--dora { background: #ff4da8; color: #2b0716; }
.lane-chip--anna { background: #ffffff; color: #2563eb; border-color: #2563eb; }
.lane-chip--callie { background: #ffc7dd; color: #33131f; }
.lane-chip--berklee { background: #14b8a6; color: #06231f; }
.lane-chip--opencut { background: #8e95a3; color: #10131a; }
.lane-chip--none { background: #6b7280; color: #ffffff; }

/* ---- status pill: the due/status word, always its own pill ---- */
.status-pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 9px; font-size: .76rem; font-weight: 650; border: 1px solid #8e95a3; color: #e8e2ea; background: rgba(255,255,255,.04); white-space: nowrap; }
.status-pill--overdue { border-color: #ff5f63; color: #ff9aa0; background: rgba(255,95,99,.12); }
.status-pill--frozen { border-color: #7dd3fc; color: #bae6fd; background: rgba(125,211,252,.10); }

/* ---- lane band + tint: the whole block carries the lane color ---- */
.lane-band--important { border-left: 5px solid #ff4040; }
.lane-band--money { border-left: 5px solid #2fd35f; }
.lane-band--bills { border-left: 5px solid #ffd21f; }
.lane-band--school { border-left: 5px solid #3b82f6; }
.lane-band--marketing { border-left: 5px solid #a855f7; }
.lane-band--contractor { border-left: 5px solid #ff8a1e; }
.lane-band--digital { border-left: 5px solid #047857; }
.lane-band--construction { border-left: 5px solid #b3402a; }
.lane-band--software { border-left: 5px solid #c0c6ce; }
.lane-band--dora { border-left: 5px solid #ff4da8; }
.lane-band--anna { border-left: 5px solid #ffffff; }
.lane-band--callie { border-left: 5px solid #ffc7dd; }
.lane-band--berklee { border-left: 5px solid #14b8a6; }
.lane-band--opencut { border-left: 5px solid #8e95a3; }
.lane-band--none { border-left: 5px solid #6b7280; }
.lane-tint--important { background: rgba(255,64,64,.10); }
.lane-tint--money { background: rgba(47,211,95,.10); }
.lane-tint--bills { background: rgba(255,210,31,.10); }
.lane-tint--school { background: rgba(59,130,246,.12); }
.lane-tint--marketing { background: rgba(168,85,247,.12); }
.lane-tint--contractor { background: rgba(255,138,30,.10); }
.lane-tint--digital { background: rgba(4,120,87,.14); }
.lane-tint--construction { background: rgba(179,64,42,.12); }
.lane-tint--software { background: rgba(192,198,206,.10); }
.lane-tint--dora { background: rgba(255,77,168,.10); }
.lane-tint--anna { background: rgba(255,255,255,.08); }
.lane-tint--callie { background: rgba(255,199,221,.10); }
.lane-tint--berklee { background: rgba(20,184,166,.12); }
.lane-tint--opencut { background: rgba(142,149,163,.10); }
.lane-tint--none { background: rgba(107,114,128,.10); }

/* ---- shared meta line: chips sit apart, never glued ---- */
.due-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.due-chip { border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 3px 8px; font-size: .76rem; }

/* ---- Your Next 3: stacked cards (Part A) ---- */
.next3 { display: grid; gap: 8px; }
.next3-row { display: grid; gap: 7px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(0,0,0,.14); }
.next3-head { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.next3-num { font-weight: 700; opacity: .7; }
.next3-title { display: block; font-weight: 600; min-width: 0; }
.next3-meta { margin: 0; }
.next3-slot { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* ---- Your Week / day list rows (Parts A/A2/H) ---- */
.week-list { display: grid; gap: 8px; }
.week-row { display: grid; gap: 7px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(0,0,0,.14); }
.week-row-title { display: block; font-weight: 600; }
.week-meta { margin: 0; }

/* ---- Review & Fix / loop cards (Part E) ---- */
.review-row { display: grid; gap: 6px; padding: 9px 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; }
.loop-head { display: grid; gap: 6px; }
.loop-title { display: block; font-weight: 600; }
.loop-meta { margin: 0; }
.loop-card[data-loop-state="review-again"] { border-left: 5px solid #ffbd4a; }
.loop-card[data-loop-state="needs-you"] { border-left: 5px solid #ff5f63; }
.loop-card[data-loop-state="working"] { border-left: 5px solid #8e95a3; }

/* ---- Action Center cards (Part E) ---- */
.ac-head { display: grid; gap: 7px; }
.ac-title { display: block; margin: 0; }
.ac-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0; }

/* ---- category navigation (Part H): top row + side rail ----
 * The top row always shows. The rail is a slim color-chip strip
 * under it on phone widths (a fixed left column would eat a third
 * of a 390px screen) and becomes a true left rail at >= 900px. */
.lane-filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; }
.lane-filter-chip { border-radius: 999px; padding: 6px 12px; font-size: .8rem; font-weight: 700; border: 1px solid rgba(0,0,0,.28); cursor: pointer; min-height: 40px; }
.lane-filter-chip[aria-pressed="true"] { outline: 3px solid #ffffff; outline-offset: 1px; }
.lane-filter-chip--all { background: #241d29; color: #f3eef5; border-color: rgba(255,255,255,.25); }
.status-filter-chip { background: #241d29; color: #f3eef5; border-color: rgba(255,255,255,.25); }
.list-body { display: grid; gap: 10px; }
.lane-rail { display: flex; gap: 6px; flex-wrap: wrap; align-content: start; }
.lane-rail-chip { border-radius: 8px; padding: 6px 8px; font-size: .68rem; font-weight: 700; border: 1px solid rgba(0,0,0,.28); cursor: pointer; min-height: 32px; }
.lane-rail-chip[aria-pressed="true"] { outline: 3px solid #ffffff; outline-offset: 1px; }
@media (min-width: 900px) {
  .list-body { grid-template-columns: 148px minmax(0, 1fr); }
  .lane-rail { flex-direction: column; flex-wrap: nowrap; position: sticky; top: 8px; }
  .lane-rail-chip { font-size: .76rem; text-align: left; }
}

/* ---- bottom reserve per surface (Parts A+/B/E/H/I overlap set) ----
 * The fixed HELP + Ask DORA corner stack is ~160px tall. The body
 * already carries a 196px reserve via dora-nav.css, but these list
 * surfaces keep their OWN reserve too, so their last rows, Open
 * buttons and captions can always scroll fully clear of the pills
 * even if the shared sheet is served stale from the offline cache. */
[data-panel="today"], #actionCenter, #taxLegalPanel, #askCard, #calmPanel, #recipesPanel { padding-bottom: 232px; }

/* ---- Ask DORA voice controls (Part D): mic icon + pause ---- */
.ask-voice-row { display: flex; gap: 10px; align-items: flex-start; }
.ask-voice-row textarea { flex: 1; min-width: 0; }
.ask-voice-btns { display: grid; gap: 4px; justify-items: center; }
.mic-btn { width: 56px; min-height: 56px; border-radius: 999px; border: 1px solid #6a405c; background: #26131f; color: #fff; display: grid; place-items: center; gap: 0; cursor: pointer; padding: 6px 0 4px; }
.mic-btn svg { width: 24px; height: 24px; fill: currentColor; }
.mic-btn .mic-label { font-size: .62rem; font-weight: 700; letter-spacing: .04em; }
.mic-btn.is-listening { background: #ff4040; border-color: #ff4040; color: #ffffff; }
.mic-btn:disabled { opacity: .55; cursor: not-allowed; }
.pause-btn { min-height: 40px; border-radius: 999px; border: 1px solid #6a405c; background: #151217; color: #fff; font: inherit; font-size: .8rem; font-weight: 700; padding: 6px 14px; cursor: pointer; }
.pause-btn[aria-pressed="true"] { background: #ffd21f; border-color: #ffd21f; color: #241d02; }
.pause-btn:disabled { opacity: .55; cursor: not-allowed; }
