/* Notes V105 — used ~50 times a day, so it follows the phone's own light and
   dark setting rather than forcing one. Every colour below is a token, and the
   light block at the end overrides the tokens only. Type is larger throughout:
   note text 17px, was 15.5px. */
:root{
  --bg:#07111f;
  --bg-glow:rgba(26,188,180,.16);
  --bg-mid:#091729;
  --ink:#ffffff;
  --ink-soft:#8294aa;
  --ink-faint:#65798e;
  --card:linear-gradient(145deg,#101d30,#0d1828);
  --card-line:rgba(255,255,255,.085);
  --surface:rgba(255,255,255,.055);
  --surface-line:rgba(255,255,255,.09);
  --compose:rgba(10,25,43,.94);
  --teal:#69d8d1;
  --teal-ink:#082322;
  --teal-soft:rgba(109,219,212,.15);
  --teal-text:#7fe6df;
  --gold:#d4af37;
  --gold-soft:rgba(212,175,55,.15);
  --gold-text:#e3c463;
  --danger:#ff9d9d;
  --sheet:#101c2d;
  --shadow:0 9px 28px rgba(0,0,0,.16);
}
@media(prefers-color-scheme:light){
  :root{
    --bg:#dde3e9;
    --bg-glow:rgba(26,188,180,.055);
    --bg-mid:#d6dde5;
    --ink:#0b1a2c;
    --ink-soft:#5a6b7f;
    --ink-faint:#7b8b9e;
    --card:#ffffff;
    --card-line:rgba(11,26,44,.10);
    --surface:rgba(11,26,44,.04);
    --surface-line:rgba(11,26,44,.12);
    --compose:rgba(255,255,255,.96);
    --teal:#0f9d94;
    --teal-ink:#ffffff;
    --teal-soft:rgba(15,157,148,.12);
    --teal-text:#0b7d76;
    --gold:#9a7b16;
    --gold-soft:rgba(154,123,22,.13);
    --gold-text:#7d6412;
    --danger:#c0392b;
    --sheet:#ffffff;
    --shadow:0 8px 24px rgba(11,26,44,.10);
  }
}

/* Notes V94 — rebuilt for a tool used every hour.
   Palette stays with the existing OS: navy ground, teal for personal,
   TRAVEL WORLD gold #d4af37 for work. Restraint everywhere except the one
   signature interaction: the swipe row. */

*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:var(--bg);color:var(--ink);
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  -webkit-tap-highlight-color:transparent}
body{min-height:100dvh;background:
  radial-gradient(900px 600px at 10% -10%,var(--bg-glow),transparent 58%),
  linear-gradient(180deg,var(--bg),var(--bg-mid) 62%,var(--bg))}
@media(prefers-color-scheme:light){
  body{background:linear-gradient(180deg,var(--bg),var(--bg-mid) 72%,var(--bg))}
}

button,textarea,input{font:inherit}

.notes-shell{width:min(760px,100%);margin:auto;
  padding:calc(env(safe-area-inset-top) + 28px) 18px calc(120px + env(safe-area-inset-bottom))}

.notes-head{display:flex;gap:14px;align-items:center;margin:2px 0 18px}
.home-btn{width:46px;height:46px;border-radius:15px;flex:0 0 46px;
  border:1px solid var(--surface-line);background:var(--surface);color:var(--ink);font-size:21px}
.eyebrow{display:block;font-size:10px;letter-spacing:.22em;color:var(--teal-text);font-weight:800}
.notes-head h1{font-size:31px;line-height:1;margin:5px 0 7px;letter-spacing:-.04em}
.notes-head p{margin:0;color:var(--ink-soft);font-size:13px;display:flex;align-items:center;gap:7px;flex-wrap:wrap}

/* ---------- compose ---------- */
.compose-card{position:sticky;top:10px;z-index:5;padding:12px;border-radius:20px;
  background:var(--compose);border:1px solid var(--surface-line);
  box-shadow:0 18px 50px rgba(0,0,0,.28);backdrop-filter:blur(16px)}
textarea{width:100%;min-height:54px;max-height:140px;resize:none;
  background:var(--surface);border:1px solid var(--surface-line);
  border-radius:15px;padding:16px;color:var(--ink);font-size:17px;line-height:1.5;outline:none}
textarea:focus{border-color:rgba(109,219,212,.48);box-shadow:0 0 0 3px rgba(109,219,212,.08)}
.compose-actions{display:flex;align-items:center;gap:9px;margin-top:9px}
.tag-pick{display:flex;gap:6px;margin-right:auto}
/* V110 — voice composer follows the familiar ChatGPT interaction:
   mic -> stop while recording, X cancels, arrow sends. The arrow turns blue
   only when there is something ready to send (or while voice is recording). */
.voice-controls{display:flex;align-items:center;gap:7px;margin-left:auto}
.voice-icon{width:42px;height:42px;flex:0 0 42px;border-radius:50%;padding:0;
  display:grid;place-items:center;border:1px solid var(--surface-line);
  background:var(--surface);color:var(--ink);transition:background .16s ease,color .16s ease,
  border-color .16s ease,transform .12s ease,opacity .16s ease}
.voice-icon:active{transform:scale(.94)}
.voice-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.mic-btn .icon-stop{display:none;fill:currentColor;stroke:none}
.mic-btn.listening{background:#0a84ff;border-color:#0a84ff;color:#fff;
  box-shadow:0 0 0 4px rgba(10,132,255,.14)}
.mic-btn.listening .icon-mic{display:none}
.mic-btn.listening .icon-stop{display:block}
.mic-btn.transcribing{background:rgba(10,132,255,.12);border-color:rgba(10,132,255,.35);color:#0a84ff}
.cancel-voice{color:var(--ink-soft)}
.cancel-voice:not([hidden]){display:grid}
.add-btn{background:var(--surface);color:var(--ink-faint)}
.add-btn.ready,.add-btn.voice-ready{background:#0a84ff;border-color:#0a84ff;color:#fff}
.add-btn:disabled{opacity:.42;transform:none}
.compose-card.is-recording textarea{border-color:rgba(10,132,255,.38);box-shadow:0 0 0 3px rgba(10,132,255,.08)}
.compose-card.is-recording .hint{color:#0a84ff;font-weight:700}
.hint{font-size:11px;color:var(--ink-faint);margin:8px 4px 0}
@media(max-width:520px){
  .compose-card{padding:11px}
  .compose-actions{gap:7px}
  .tag-pick{gap:5px}
.voice-controls{gap:6px}
  .voice-icon{width:44px;height:44px;flex-basis:44px}
}

/* ---------- filter bar ---------- */
.filters{display:flex;gap:8px;align-items:center;margin:16px 0 4px}
.chip{height:34px;padding:0 14px;border-radius:10px;font-size:12.5px;font-weight:800;
  border:1px solid var(--surface-line);background:var(--surface);color:var(--ink-soft)}
.chip[aria-pressed="true"]{background:var(--teal-soft);color:var(--teal-text);border-color:var(--teal)}
.search{flex:1;min-width:0;height:34px;border-radius:10px;padding:0 12px;
  background:var(--surface);border:1px solid var(--surface-line);color:var(--ink);
  font-size:13.5px;outline:none}
.search:focus{border-color:rgba(109,219,212,.42)}

/* ---------- list ---------- */
.group-label{margin:20px 4px 9px;font-size:10.5px;letter-spacing:.2em;font-weight:800;color:var(--ink-faint)}
.notes-list{display:grid;gap:11px;margin-top:6px}

/* The swipe row: a delete layer sits underneath, the card slides to reveal it. */
.swipe{position:relative;border-radius:17px;overflow:hidden;touch-action:pan-y;
  scroll-margin-bottom:calc(128px + env(safe-area-inset-bottom))}
/* V173 — save confirmation: the fresh row is brought into view by JS and gets
   one restrained pulse so it is unmistakable without changing the card style. */
.swipe.just-added .note-row{animation:noteFreshGlow 1.35s ease-out}
@keyframes noteFreshGlow{
  0%{border-color:var(--teal);box-shadow:0 0 0 2px var(--teal-soft),0 0 28px var(--teal-soft),var(--shadow);transform:scale(.995)}
  32%{border-color:var(--teal);box-shadow:0 0 0 1px var(--teal-soft),0 0 18px var(--teal-soft),var(--shadow);transform:scale(1)}
  100%{border-color:var(--card-line);box-shadow:var(--shadow);transform:scale(1)}
}
/* V107: this hint sat behind every row at full opacity, and once the done
   rows were faded it showed through and covered their text. It is hidden
   until a drag is actually in progress. */
.swipe-behind{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  font-size:12px;font-weight:800;letter-spacing:.04em;opacity:0;pointer-events:none;
  transition:opacity .15s ease}
.swipe.dragging .swipe-behind{opacity:1}
.note-row{position:relative;display:flex;align-items:flex-start;gap:13px;width:100%;
  text-align:left;padding:17px 16px;border-radius:17px;border:1px solid var(--card-line);
  background:var(--card);color:var(--ink);
  box-shadow:var(--shadow);cursor:pointer;
  transition:transform .22s cubic-bezier(.22,.9,.3,1)}
.swipe.dragging .note-row{transition:none}
.note-check{flex:0 0 26px;width:26px;height:26px;border-radius:50%;padding:0;
  border:2px solid var(--teal);background:transparent;color:var(--teal-ink);
  font-size:13px;font-weight:900;line-height:1;display:grid;place-items:center}
.note-copy{min-width:0;flex:1}
.note-text{display:block;font-size:17px;line-height:1.5;font-weight:700;overflow-wrap:anywhere;unicode-bidi:plaintext;text-align:start}
.note-meta{display:flex;flex-wrap:wrap;gap:7px;align-items:center;margin-top:8px}
.pill{font-size:10.5px;font-weight:800;letter-spacing:.03em;padding:3px 8px;border-radius:7px;
  background:var(--surface);color:var(--ink-soft)}
.pill.due{background:rgba(120,160,255,.14);color:#a8c4ff}
.pill.due.today{background:rgba(255,196,90,.16);color:#ffd08a}
.pill.due.late{background:rgba(255,110,110,.16);color:#ffb0b0}
.pill.high{background:rgba(255,110,110,.16);color:#ffb0b0}

/* done: struck through, stays in place until tomorrow */
.note-row.is-done{background:var(--surface);border-color:var(--card-line);box-shadow:none;opacity:.72}
.note-row.is-done .note-text{text-decoration:line-through;color:var(--ink-faint);font-weight:600}
.note-row.is-done .note-check{background:var(--teal);border-color:var(--teal);color:var(--teal-ink)}
.empty{padding:44px 16px;text-align:center;color:var(--ink-soft);font-size:14px;line-height:1.6;
  border:1px dashed var(--surface-line);border-radius:18px}

/* ---------- sheet ---------- */
.sheet-backdrop{position:fixed;inset:0;z-index:50;background:rgba(2,8,18,.7);
  display:flex;align-items:flex-end;justify-content:center;padding:18px}
.sheet-backdrop[hidden]{display:none}
.action-sheet{width:min(560px,100%);border-radius:24px;
  padding:10px 14px calc(14px + env(safe-area-inset-bottom));
  background:var(--sheet);border:1px solid var(--card-line);box-shadow:0 30px 80px rgba(0,0,0,.35)}
.sheet-grab{width:38px;height:4px;border-radius:99px;background:#526175;margin:2px auto 12px}
.action-sheet h2{font-size:15px;margin:0 4px 8px}
.sheet-edit{width:100%;min-height:112px;max-height:220px;margin:2px 0 10px;resize:vertical;unicode-bidi:plaintext;text-align:start}
.sheet-row{display:flex;gap:7px;margin-top:9px}
.sheet-row .sheet-action{margin-top:0}
.sheet-action{width:100%;height:54px;border:0;border-radius:13px;margin-top:8px;
  background:var(--surface);color:var(--ink);font-weight:800;font-size:15px}
.sheet-action.primary{background:var(--teal);color:var(--teal-ink)}
.sheet-action.danger{color:var(--danger)}
.sheet-action.cancel{background:transparent;color:var(--ink-soft)}
.auth-input{width:100%;height:48px;border-radius:12px;border:1px solid var(--card-line);
  background:var(--surface);color:var(--ink);font-size:15px;padding:0 14px;margin-top:8px;box-sizing:border-box}
.auth-input::placeholder{color:var(--ink-faint)}
.auth-error{min-height:16px;color:var(--danger);font-size:12.5px;margin:8px 4px 0}

/* ---------- toast with undo ---------- */
.toast{position:fixed;left:50%;bottom:calc(24px + env(safe-area-inset-bottom));
  transform:translate(-50%,20px);opacity:0;pointer-events:none;z-index:80;
  display:flex;align-items:center;gap:12px;padding:11px 13px;border-radius:13px;
  background:var(--sheet);border:1px solid var(--card-line);color:var(--ink);font-size:13px;font-weight:700;
  box-shadow:0 16px 40px rgba(0,0,0,.4);transition:opacity .2s,transform .2s}
.toast.show{opacity:1;transform:translate(-50%,0);pointer-events:auto}
.toast button{border:0;background:transparent;color:var(--teal-text);font-weight:800;font-size:13px;padding:2px 4px}

@media(min-width:700px){
  .sheet-backdrop{align-items:center}
  .notes-shell{padding-left:24px;padding-right:24px}
}
@media(prefers-reduced-motion:reduce){
  .note-row,.toast{transition:none}
  .swipe.just-added .note-row{animation:none;border-color:var(--teal);box-shadow:0 0 0 1px var(--teal-soft),var(--shadow)}
}

/* counter + progress, replacing row numbering */
.count-open{font-size:19px;font-weight:800;color:var(--ink);letter-spacing:-.02em}
.count-done{font-size:19px;font-weight:800;color:var(--teal-text);letter-spacing:-.02em}
.count-sep{color:var(--ink-faint)}
.progress{display:block;width:100%;height:4px;border-radius:99px;background:var(--surface);
  overflow:hidden;margin-top:6px;flex:1 0 100%}
.progress i{display:block;height:100%;border-radius:99px;background:var(--teal);
  transition:width .35s cubic-bezier(.22,.9,.3,1)}
.sheet-preview{margin:2px 4px 14px;font-size:16px;line-height:1.5;font-weight:700;
  color:var(--ink);max-height:120px;overflow:auto;unicode-bidi:plaintext;text-align:start}
/* the swipe layer now hints at choices rather than deletion */
.swipe-behind{background:var(--surface);color:var(--ink-soft)}
@media(prefers-reduced-motion:reduce){.progress i{transition:none}}


/* ===== V112 BOTTOM COMPOSER =====
   Notes lead the screen. The composer sits where the eyes and keyboard meet. */
.notes-shell{padding-bottom:calc(112px + env(safe-area-inset-bottom))}
.notes-list{margin-top:2px}
.compose-card{
  position:fixed;z-index:40;
  left:50%;bottom:0;top:auto;
  transform:translateX(-50%);
  width:min(760px,100%);
  padding:10px 18px calc(10px + env(safe-area-inset-bottom));
  border:0;border-radius:0;background:linear-gradient(180deg,transparent,var(--bg) 24%);
  box-shadow:none;backdrop-filter:none;
}
.composer-inner{
  display:flex;align-items:flex-end;gap:8px;
  padding:7px 8px;
  border:1px solid var(--surface-line);
  border-radius:25px;
  background:var(--compose);
  box-shadow:0 8px 28px rgba(0,0,0,.18);
  backdrop-filter:blur(18px);
}
.compose-card textarea{
  flex:1;width:auto;min-width:0;min-height:46px;max-height:132px;
  padding:11px 6px 10px;
  border:0!important;border-radius:0;background:transparent!important;
  box-shadow:none!important;font-size:17px;line-height:1.45;
}
.voice-controls{display:flex;align-items:center;gap:5px;margin:0}
.voice-icon{width:42px;height:42px;flex-basis:42px}
.cancel-voice{display:grid!important;order:-1;color:var(--ink-soft)}
.hint{display:none;margin:5px 12px 0;text-align:center}
.compose-card.is-recording .hint,.compose-card.is-transcribing .hint{display:block}
.compose-card.is-recording textarea{box-shadow:none!important;border:0!important}
.filters,.tag-pick,.compose-actions{display:none!important}
@media(max-width:520px){
  .notes-shell{padding-left:16px;padding-right:16px;padding-bottom:calc(106px + env(safe-area-inset-bottom))}
  .compose-card{padding:8px 10px calc(8px + env(safe-area-inset-bottom))}
  .composer-inner{gap:5px;padding:6px 7px}
  .voice-icon{width:40px;height:40px;flex-basis:40px}
  .compose-card textarea{font-size:16px;min-height:44px;padding-top:10px;padding-bottom:9px}
}


/* V153 FINAL — action-sheet visibility must not depend on the browser's UA
   [hidden] rule. Only the current mode is rendered. Embedded Notes has no Home
   button because the parent Dashboard is closed by a horizontal swipe. */
#sheetViewActions[hidden],#sheetEditActions[hidden],.sheet-edit[hidden]{display:none!important}
html.tw-embedded-root .home-btn,body.tw-embedded .home-btn{display:none!important}
html.tw-embedded-root .notes-head,body.tw-embedded .notes-head{padding-left:2px}
html.tw-embedded-root .notes-shell,body.tw-embedded .notes-shell{padding-top:calc(env(safe-area-inset-top) + 32px)!important}


/* ── V96: pending row shown between "stop recording" and "saved" ────────────
   It sits where the finished note will appear, so the wait is visible in the
   place the eye is already looking. Never stored, never counted. */
.note-pending{
  display:flex;align-items:center;gap:11px;
  min-height:78px;padding:14px 15px;margin-top:0;
  border:1px solid var(--card-line);
  border-radius:20px;background:var(--card);box-shadow:var(--shadow);
  color:var(--ink-soft);
}
.pending-circle{flex:0 0 26px;width:26px;height:26px;border-radius:50%;border:2px solid var(--teal);opacity:.48}
.pending-dots{display:inline-flex;gap:5px;flex:0 0 auto}
.pending-dots i{
  width:7px;height:7px;border-radius:50%;
  background:currentColor;opacity:.35;
  animation:pendingPulse 1.15s infinite ease-in-out;
}
.pending-dots i:nth-child(2){animation-delay:.16s}
.pending-dots i:nth-child(3){animation-delay:.32s}
.pending-text{font-size:13px;font-weight:600;opacity:.7}
@keyframes pendingPulse{
  0%,80%,100%{opacity:.25;transform:translateY(0)}
  40%{opacity:1;transform:translateY(-3px)}
}
@media (prefers-reduced-motion:reduce){
  .pending-dots i{animation:none;opacity:.6}
}

/* V95b: the microphone is now the only place the transcribing state is shown,
   so it has to read from across the screen — a breathing ring around the button
   plus a gentle scale, not a faint opacity dip. */
.voice-icon.transcribing{
  position:relative;
  animation:micWorking 1.25s infinite ease-in-out;
}
.voice-icon.transcribing::after{
  content:"";
  position:absolute;
  inset:-3px;
  border-radius:50%;
  border:2px solid rgba(10,132,255,.55);
  animation:micRing 1.25s infinite ease-out;
  pointer-events:none;
}
@keyframes micWorking{
  0%,100%{transform:scale(1);opacity:1}
  50%{transform:scale(1.09);opacity:.82}
}
@keyframes micRing{
  0%{transform:scale(.92);opacity:.85}
  70%{transform:scale(1.28);opacity:0}
  100%{transform:scale(1.28);opacity:0}
}
@media (prefers-reduced-motion:reduce){
  .voice-icon.transcribing{animation:none;opacity:.6;transform:none}
  .voice-icon.transcribing::after{animation:none;opacity:.5;transform:none}
}


/* ── V98: the completing gesture ────────────────────────────────────────────
   The check draws itself along its own stroke, the circle fills behind it, and
   only then does the row ease into the done group. Roughly three quarters of a
   second end to end: slow enough to read as a finished action, short enough
   never to feel like waiting. */
.note-check .check-ico{
  width:15px;height:15px;display:block;
  stroke:currentColor;stroke-width:3.2;fill:none;
  stroke-linecap:round;stroke-linejoin:round;
  stroke-dasharray:24;stroke-dashoffset:24;opacity:0;
}
/* already-done notes simply show the mark, no drawing */
.note-row.is-done .note-check .check-ico{stroke-dashoffset:0;opacity:1}

.swipe.completing .note-check{
  background:var(--teal);border-color:var(--teal);color:var(--teal-ink);
  transition:background .30s ease,border-color .30s ease;
  animation:checkPop .42s cubic-bezier(.34,1.56,.64,1);
}
.swipe.completing .note-check .check-ico{
  opacity:1;animation:drawCheck .42s ease .06s forwards;
}
.swipe.completing .note-row{
  transition:opacity .30s ease .40s,transform .30s ease .40s;
  opacity:.45;transform:translateY(5px) scale(.985);
}
@keyframes drawCheck{to{stroke-dashoffset:0}}
@keyframes checkPop{40%{transform:scale(1.22)}100%{transform:scale(1)}}

@media (prefers-reduced-motion:reduce){
  .swipe.completing .note-check,
  .swipe.completing .note-check .check-ico,
  .swipe.completing .note-row{animation:none;transition:none}
  .swipe.completing .note-check .check-ico{opacity:1;stroke-dashoffset:0}
}


/* ── V99: the sheet arrives and leaves instead of appearing ─────────────────
   It slides up from the bottom edge while the backdrop fades in behind it. The
   sheet is opened and closed by toggling [hidden], so the entry animation runs
   on every open with no extra state to manage. */
.sheet-backdrop:not([hidden]){animation:sheetFade .18s ease}
.sheet-backdrop:not([hidden]) .action-sheet{
  animation:sheetRise .26s cubic-bezier(.22,.9,.3,1);
  transform-origin:bottom center;
}
@keyframes sheetFade{from{opacity:0}to{opacity:1}}
@keyframes sheetRise{
  from{transform:translateY(22px) scale(.985);opacity:0}
  to{transform:translateY(0) scale(1);opacity:1}
}
/* the two remaining choices deserve room for a thumb */
#sheetViewActions .sheet-action{min-height:52px}
@media (prefers-reduced-motion:reduce){
  .sheet-backdrop:not([hidden]),
  .sheet-backdrop:not([hidden]) .action-sheet{animation:none}
}


/* V164 — voice notes. Stop saves the original recording immediately; the arrow
   remains the explicit transcription path. */
.note-row.is-voice{align-items:center}
.note-row.is-voice .note-copy{display:flex;flex-direction:column;justify-content:center}
.voice-note-player{display:flex;align-items:center;gap:11px;min-height:32px;width:100%;direction:ltr}
.voice-play{width:34px;height:34px;flex:0 0 34px;border-radius:50%;display:grid;place-items:center;
  border:1px solid var(--teal);background:transparent;color:var(--teal);padding:0}
.voice-play svg{width:18px;height:18px;fill:currentColor;stroke:none}
.voice-play .voice-pause-ico{display:none;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round}
.voice-note-player.playing .voice-play-ico{display:none}
.voice-note-player.playing .voice-pause-ico{display:block}
.voice-wave{position:relative;flex:1;min-width:90px;height:28px;display:flex;align-items:center;gap:3px;overflow:hidden}
.voice-wave>i{display:block;width:3px;flex:1;max-width:5px;border-radius:99px;background:var(--ink-faint);opacity:.48}
.voice-wave>i:nth-child(1),.voice-wave>i:nth-child(10){height:7px}
.voice-wave>i:nth-child(2),.voice-wave>i:nth-child(9){height:13px}
.voice-wave>i:nth-child(3),.voice-wave>i:nth-child(8){height:20px}
.voice-wave>i:nth-child(4),.voice-wave>i:nth-child(7){height:11px}
.voice-wave>i:nth-child(5){height:24px}.voice-wave>i:nth-child(6){height:17px}
.voice-progress{position:absolute;left:0;bottom:1px;height:2px;width:0;border-radius:99px;background:var(--teal);transition:width .08s linear}
.voice-time{flex:0 0 38px;text-align:right;font-size:12px;font-weight:700;color:var(--ink-soft);font-variant-numeric:tabular-nums}
.note-row.is-done .voice-note-player{opacity:.72}
.compose-card.is-saving-voice .hint{display:block;color:#0a84ff;font-weight:700}

/* V165 — saved voice transcription + multiple independent lists. */
.notes-title-wrap{min-width:0;flex:1}
.notes-title-wrap h1{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.list-menu-btn{
  width:46px;height:46px;flex:0 0 46px;margin-left:auto;border-radius:15px;padding:0;
  display:grid;place-items:center;border:1px solid var(--surface-line);background:var(--surface);color:var(--ink)
}
.list-menu-btn:active{transform:scale(.95)}
.list-menu-btn svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

.voice-transcribe{
  width:32px;height:32px;flex:0 0 32px;border-radius:10px;padding:0;
  display:grid;place-items:center;border:1px solid var(--surface-line);background:var(--surface);
  color:var(--teal-text);font-size:12px;font-weight:800;letter-spacing:-.03em
}
.voice-transcribe:active{transform:scale(.94)}
.voice-transcribe:disabled{opacity:.72;transform:none}
.voice-spin{width:14px;height:14px;border-radius:50%;border:2px solid currentColor;border-right-color:transparent;animation:voiceSpin .75s linear infinite}
@keyframes voiceSpin{to{transform:rotate(360deg)}}
.voice-transcript{
  display:block;margin:9px 2px 1px;padding-top:9px;border-top:1px solid var(--surface-line);
  color:var(--ink);font-size:16px;line-height:1.48;white-space:pre-wrap;overflow-wrap:anywhere
}
.note-row.is-done .voice-transcript{opacity:.72;text-decoration:line-through}

.list-sheet h2{font-size:18px;margin:0 4px 12px}
.lists-menu{display:grid;gap:7px;max-height:min(48vh,420px);overflow:auto;padding:1px 0 3px}
.list-choice{
  width:100%;min-height:54px;border-radius:13px;border:1px solid var(--surface-line);
  background:var(--surface);color:var(--ink);display:flex;align-items:center;gap:12px;
  padding:0 14px;text-align:left
}
.list-choice.active{border-color:rgba(105,216,209,.58);background:var(--teal-soft)}
.list-choice-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;font-weight:800}
.list-choice-count{min-width:28px;height:28px;border-radius:10px;display:grid;place-items:center;background:var(--surface);color:var(--ink-soft);font-size:12px;font-weight:800}
.list-choice.active .list-choice-count{color:var(--teal-text)}
.new-list-btn{margin-top:10px}
.new-list-form[hidden],.new-list-btn[hidden]{display:none!important}
.new-list-form{margin-top:3px}
.list-name-input{margin-top:0}

@media(max-width:520px){
  .notes-head{gap:10px}
  .home-btn,.list-menu-btn{width:42px;height:42px;flex-basis:42px;border-radius:14px}
  .notes-head h1{font-size:29px}
  .voice-note-player{gap:8px}
  .voice-time{flex-basis:34px}
  .voice-transcribe{width:30px;height:30px;flex-basis:30px}
}
@media(prefers-reduced-motion:reduce){.voice-spin{animation:none}}


/* V170 — subtle state polish for the Finance-grade auto transcription. */
.compose-card.is-transcribing .composer-inner{box-shadow:0 0 0 3px rgba(10,132,255,.08)}
.compose-card.is-transcribing .hint{display:block;color:#0a84ff;font-weight:700}


/* V172 — custom list management: rename/delete without touching note content. */
.list-choice-wrap{display:flex;align-items:stretch;gap:7px}
.list-choice-wrap .list-choice{flex:1;min-width:0}
.list-choice-manage{
  width:48px;flex:0 0 48px;border-radius:13px;border:1px solid var(--surface-line);
  background:var(--surface);color:var(--ink-soft);display:grid;place-items:center;
  font-size:22px;font-weight:800;line-height:1;padding:0 0 8px
}
.list-choice-manage:active{transform:scale(.96)}
.list-choice-wrap.active .list-choice,.list-choice-wrap.active .list-choice-manage{
  border-color:rgba(105,216,209,.58);background:var(--teal-soft)
}
.lists-menu[hidden],.list-manage-form[hidden],.new-list-form[hidden],.new-list-btn[hidden]{display:none!important}
.list-manage-form{margin-top:3px}
.list-delete-btn{margin-top:12px;background:transparent!important;border:1px solid rgba(255,157,157,.18)!important}
.list-delete-btn.is-armed{background:rgba(255,100,100,.10)!important;border-color:rgba(255,120,120,.38)!important}
.list-delete-note{margin:8px 4px 0;color:var(--ink-soft);font-size:12px;line-height:1.4;text-align:center}


/* ===== Booking Notes V1 — voice-first follow-up notebook ===== */
.list-menu-btn{display:none!important}
.notes-head h1{letter-spacing:-.02em}
.booking-card{display:block;min-width:0}
.booking-client{font-size:18px;line-height:1.25;font-weight:850;color:var(--ink);unicode-bidi:plaintext;overflow-wrap:anywhere}
.booking-route{display:flex;flex-wrap:wrap;gap:6px 8px;align-items:center;margin-top:5px;color:var(--teal-text);font-size:13px;font-weight:800;letter-spacing:.01em}
.booking-route span+span::before{content:"·";color:var(--ink-faint);margin-right:8px}
.booking-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}
.booking-field{min-width:0;padding:9px 10px;border-radius:11px;background:var(--surface);border:1px solid var(--surface-line)}
.booking-field small{display:block;margin-bottom:3px;color:var(--ink-faint);font-size:9px;line-height:1.1;font-weight:850;letter-spacing:.08em;text-transform:uppercase}
.booking-field strong{display:block;color:var(--ink);font-size:12.5px;line-height:1.3;font-weight:800;overflow-wrap:anywhere;unicode-bidi:plaintext}
.booking-raw{display:block;margin-top:10px;padding-top:9px;border-top:1px solid var(--surface-line);color:var(--ink-soft);font-size:12.5px;line-height:1.48;font-weight:600;white-space:pre-wrap;overflow-wrap:anywhere;unicode-bidi:plaintext}
.booking-raw:empty{display:none}
.note-row.is-done .booking-client,.note-row.is-done .booking-route,.note-row.is-done .booking-field strong,.note-row.is-done .booking-raw{text-decoration:line-through;color:var(--ink-faint)}
.note-row.is-done .booking-field{opacity:.72}
.group-label{letter-spacing:.09em}
@media(max-width:520px){
  .booking-client{font-size:17px}
  .booking-fields{grid-template-columns:1fr 1fr;gap:7px}
  .booking-field{padding:8px 9px}
  .booking-field strong{font-size:12px}
  .booking-raw{font-size:12px}
}

/* ===== Booking Notes V1.1 — numbered follow-ups + compact totals ===== */
.note-row{padding-top:21px}
.booking-number{
  position:absolute;top:9px;right:11px;z-index:2;
  min-width:25px;height:25px;padding:0 7px;border-radius:9px;
  display:inline-flex;align-items:center;justify-content:center;
  border:1px solid var(--surface-line);background:var(--surface);
  color:var(--ink-soft);font-size:10.5px;font-weight:900;letter-spacing:.02em;
  line-height:1;box-shadow:0 2px 8px rgba(0,0,0,.08);
}
.note-row.is-done .booking-number{opacity:.7}
.summary-label{font-size:9.5px;font-weight:900;letter-spacing:.09em;color:var(--ink-faint)}
.count-active{font-size:19px;font-weight:800;color:var(--ink);letter-spacing:-.02em}
@media(max-width:520px){
  .booking-number{top:8px;right:9px;height:23px;min-width:23px;padding:0 6px;font-size:10px}
  .note-row{padding-top:20px}
  .summary-label{font-size:9px}
  .count-open,.count-active,.count-done{font-size:17px}
}


/* ===== Booking Notes V1.2 — real structured booking cards ===== */
.note-row{padding:18px 16px 17px;gap:12px;align-items:flex-start}
.note-copy{padding-top:1px}
.booking-card{display:block;width:100%;min-width:0}
.booking-client{display:block;padding-right:48px;font-size:18px;line-height:1.2;font-weight:850;color:var(--ink);unicode-bidi:plaintext;overflow-wrap:anywhere}
.booking-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}
.booking-field{display:block;min-width:0;padding:10px 11px 11px;border-radius:12px;background:var(--surface);border:1px solid var(--surface-line)}
.booking-field small{display:block;margin-bottom:5px;color:var(--ink-faint);font-size:9px;line-height:1;font-weight:900;letter-spacing:.11em;text-transform:uppercase}
.booking-field strong{display:block;color:var(--ink);font-size:13px;line-height:1.32;font-weight:800;overflow-wrap:anywhere;unicode-bidi:plaintext}
.booking-field-wide{grid-column:1/-1}
.booking-unparsed{display:block;margin-top:11px;padding:10px 11px;border-radius:11px;background:var(--surface);border:1px dashed var(--surface-line);color:var(--ink-faint);font-size:11px;font-weight:700}
.booking-raw,.booking-route{display:none!important}
.booking-voice-inline{display:block;margin-top:10px}
.note-row.is-done .booking-client,.note-row.is-done .booking-field strong{text-decoration:line-through;color:var(--ink-faint)}
.note-row.is-done .booking-field{opacity:.7}
@media(max-width:520px){
  .note-row{padding:16px 14px 15px;gap:11px}
  .booking-client{font-size:17px;padding-right:43px}
  .booking-fields{gap:7px;margin-top:10px}
  .booking-field{padding:9px 9px 10px;border-radius:11px}
  .booking-field small{font-size:8.5px;margin-bottom:4px}
  .booking-field strong{font-size:12.5px}
}


/* ===== Booking Notes V1.4 — clean numbering + numeric-only prices ===== */
.booking-number{
  top:10px!important;
  right:14px!important;
  min-width:0!important;
  height:auto!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#0f9f98!important;
  font-size:17px!important;
  font-weight:950!important;
  letter-spacing:-.02em!important;
  line-height:1!important;
}
.note-row.is-done .booking-number{color:#0f9f98!important;opacity:.52!important}
@media(max-width:520px){
  .booking-number{top:10px!important;right:13px!important;font-size:16px!important}
}
