/* Horizonte — styles follow the approved mockups (Planner mockups, Nov 5 2026). */
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/geist-400.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/geist-500.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/geist-600.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/geist-700.woff2') format('woff2'); }
/* wordmark only: Fraunces 600, subset to the letters of 'Horizonte' (1.6 KB) */
@font-face { font-family: 'Fraunces WM'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/fraunces-wordmark.woff2') format('woff2'); }
.wm { font-family: 'Fraunces WM', Georgia, serif; font-weight: 600; letter-spacing: -0.012em; }
:root {
  --ink: #14161C; --ink-2: #646B78; --ink-3: #8B92A0; --line: #E6E8ED; --line-2: #DADDE3; --line-3: #C8CCD4;
  --bg: #FFFFFF; --panel: #F5F6F8; --seg: #EEF0F3; --past: #FAFAFB; --drop: #F1F5FE; --hover: #F3F4F6;
  --sun: #F0A030; --sun-ink: #9A5B00; --sun-bg: #FFF4E0; --accent: var(--sun); --edge: #C8CCD4; --blue: #1D4ED8; --ok: #15803D; --warn-bg: #FFF4E0; --warn: #9A5B00; --now: #D6342C;
  --card: #FFFFFF; --scrim: rgba(20,22,28,0.45);
  --shadow-1: 0 1px 2px rgba(20,22,28,0.06); --shadow-2: 0 4px 14px rgba(20,22,28,0.10); --shadow-3: 0 20px 50px rgba(20,22,28,0.22);
  --r-s: 6px; --r-m: 10px; --r-l: 14px;
  --font: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme=light]) {
    --ink: #EDEEF1; --ink-2: #9AA1AE; --ink-3: #6F7682; --line: #272A31; --line-2: #31353D; --line-3: #40454E;
    --bg: #111318; --panel: #16181D; --seg: #1D2026; --past: #141619; --drop: #182239; --hover: #1C1F26;
    --sun: #F5B04A; --sun-ink: #F5C46B; --sun-bg: #3A2A0B; --edge: #4A505A; --card: #1A1D23; --warn-bg: #3A2A0B; --warn: #F5C46B; --now: #F0564E; --scrim: rgba(0,0,0,0.6);
    --shadow-1: 0 1px 2px rgba(0,0,0,0.4); --shadow-2: 0 4px 14px rgba(0,0,0,0.5); --shadow-3: 0 20px 50px rgba(0,0,0,0.6);
    color-scheme: dark;
  }
}
:root[data-theme=dark] {
    --ink: #EDEEF1; --ink-2: #9AA1AE; --ink-3: #6F7682; --line: #272A31; --line-2: #31353D; --line-3: #40454E;
    --bg: #111318; --panel: #16181D; --seg: #1D2026; --past: #141619; --drop: #182239; --hover: #1C1F26;
    --sun: #F5B04A; --sun-ink: #F5C46B; --sun-bg: #3A2A0B; --edge: #4A505A; --card: #1A1D23; --warn-bg: #3A2A0B; --warn: #F5C46B; --now: #F0564E; --scrim: rgba(0,0,0,0.6);
    --shadow-1: 0 1px 2px rgba(0,0,0,0.4); --shadow-2: 0 4px 14px rgba(0,0,0,0.5); --shadow-3: 0 20px 50px rgba(0,0,0,0.6);
    color-scheme: dark;
  }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font-family: var(--font); -webkit-text-size-adjust: 100%; }
body { font-size: 14px; line-height: 1.4; overscroll-behavior-y: none; -webkit-font-smoothing: antialiased; font-feature-settings: 'tnum' 1, 'cv11' 1; }
b, strong, h1, h2, .brand, .ttl { letter-spacing: -0.015em; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
input, textarea { font: inherit; color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg { flex: none; }
#app { height: 100%; }

/* ── shared pieces ─────────────────────────────────────────── */
.eyebrow { font-size: 12px; font-weight: 600; color: var(--ink-2); letter-spacing: 0; }
.muted { color: var(--ink-2); }
.dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); border: 0; background: transparent; padding: 4px 0; }
.dot i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.dot.syncing i { background: #D97706; } .dot.off i { background: #9AA1AD; } .dot.warn i { background: var(--now); }
.pill { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--ink); color: var(--bg); white-space: nowrap; letter-spacing: 0.01em; }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.btn { font-size: 13px; font-weight: 500; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--card); box-shadow: var(--shadow-1); transition: background .12s, border-color .12s; }
.btn:hover { background: var(--hover); border-color: var(--line-3); }
.btn:active { transform: translateY(0.5px); }
.btn.icon { display: flex; padding: 6px; }
.btn.dark { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 600; }
.link { border: 0; background: transparent; padding: 3px 7px; border-radius: 6px; text-decoration: none; font-size: 12px; font-weight: 500; color: var(--ink-2); transition: background .12s, color .12s; }
.link:hover { background: var(--hover); color: var(--ink); }
.seg { display: flex; gap: 2px; padding: 3px; background: var(--seg); border-radius: 9px; }
.seg button { font-size: 13px; font-weight: 500; padding: 5px 12px; border: 0; border-radius: 7px; background: transparent; color: var(--ink-2); transition: color .12s, background .12s; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed=true] { font-weight: 600; background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(20,22,28,0.10), 0 0 0 1px rgba(20,22,28,0.04); }
.chip { font-size: 13px; padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); white-space: nowrap; }
.chip[aria-pressed=true] { font-weight: 600; border-color: var(--ink); background: var(--ink); color: var(--bg); }
.chip.add { color: var(--ink-2); border-style: dashed; }
.meter { height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
.meter > i { display: block; height: 3px; border-radius: 2px; background: var(--ink); max-width: 100%; transition: width .3s ease-out; }
.meter.amber > i { background: #D97706; } .meter.red > i { background: var(--now); }
.empty { font-size: 13px; color: var(--ink-3); margin-top: 8px; }

/* task card */
.card { display: flex; gap: 9px; align-items: flex-start; padding: 9px 10px 9px 11px; border: 1px solid var(--line-2); border-radius: var(--r-m); background: var(--card); position: relative; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: pan-y; box-shadow: var(--shadow-1); transition: border-color .12s, box-shadow .12s; }
.card:hover { border-color: var(--line-3); box-shadow: 0 2px 6px rgba(20,22,28,0.08); }
.card::before { content: ''; position: absolute; left: -1px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: transparent; }
.card.target::before { background: var(--sun); }
.card.someday { color: var(--ink-2); box-shadow: none; background: transparent; border-style: dashed; }
.card.done { opacity: 0.55; box-shadow: none; }
.card.done .t { text-decoration: line-through; }
.card.sched { opacity: 0.7; }
.card.dragging { opacity: 0.35; }
.card .ck { display: flex; flex: none; padding: 0; margin: 0; position: relative; width: 18px; height: 18px; margin-top: 1px; cursor: pointer; }
.card input[type=checkbox] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.card .box { width: 18px; height: 18px; border: 1.5px solid var(--line-3); border-radius: 6px; background: var(--card); display: flex; align-items: center; justify-content: center; transition: background .15s, border-color .15s, transform .15s; }
.card .box svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 12; stroke-dashoffset: 12; transition: stroke-dashoffset .18s ease-out .05s; }
.card .ck:hover .box { border-color: var(--ink-2); }
.card input:checked + .box { background: var(--ink); border-color: var(--ink); }
.card input:checked + .box svg { stroke-dashoffset: 0; }
.card input:focus-visible + .box { outline: 2px solid var(--blue); outline-offset: 2px; }
.card.target .box { border-color: var(--sun); }
.card.target input:checked + .box { background: var(--sun); border-color: var(--sun); }
.card .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; cursor: pointer; }
.card .t { overflow-wrap: anywhere; }
.card.target .t { font-weight: 600; }
.card .sub { font-size: 12px; font-weight: 600; color: var(--warn); }
.card .meta { font-size: 12px; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.card .star { margin-top: 1px; }
.card.meeting { --mt: var(--blue); background: var(--mt); color: #fff; border: 0; padding-left: 12px; align-items: center; box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), var(--shadow-1); }
.card.meeting::before { display: none; }
.card.meeting .lk { display: flex; flex: none; }
.card.meeting .t { font-weight: 600; }
.card.meeting .meta { color: inherit; font-weight: 700; }
.card.meeting.done { opacity: 0.55; }
.card.meeting.done .t { text-decoration: line-through; }
.m .card.meeting { min-height: 52px; }
.m .card.meeting .meta { font-size: 15px; }
.sheet .kindseg button { min-height: 36px; }
.appt { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 8px; background: var(--blue); color: #fff; }
.appt .when { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; }
.appt .t { font-weight: 600; }

/* drag */
.ghost { position: fixed; z-index: 90; pointer-events: none; box-shadow: 0 8px 20px rgba(22,24,29,0.18); transform: rotate(-1.5deg); opacity: 0.97; margin: 0; }
body.is-dragging, body.is-dragging * { cursor: grabbing !important; user-select: none; }
.dropcol.over { background: var(--drop) !important; }
.dropcol.over > .dropzone { display: block; }
.dropzone { display: none; padding: 12px 10px; border: 2px dashed var(--blue); border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--blue); text-align: center; }
.chip.over { box-shadow: 0 0 0 2px var(--blue); }
.panel.over { box-shadow: inset 0 0 0 2px var(--blue); }
.slotline { position: absolute; left: 0; right: 0; height: 2px; background: var(--blue); pointer-events: none; z-index: 5; }
.slotline span { position: absolute; right: 8px; top: -10px; padding: 1px 8px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 600; }

/* toast */
.toast { position: fixed; z-index: 100; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; padding: 11px 16px; border-radius: 12px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 500; box-shadow: var(--shadow-3); max-width: calc(100vw - 32px); animation: toast-in .2s ease-out; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.toast button { border: 0; background: transparent; color: var(--sun); font-weight: 600; text-decoration: none; padding: 4px 2px; }
.toast .tk { color: var(--bg); background: rgba(255,255,255,0.14); border-radius: 7px; padding: 4px 9px; font-variant-numeric: tabular-nums; min-width: 40px; }
.toast .tk + .tk { margin-left: 2px; } .toast .tk + [data-act=undo] { margin-left: 6px; }
.m .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }

/* sheet (task, capture, review, settings) */
.scrim { position: fixed; inset: 0; z-index: 60; background: var(--scrim); }
.sheet { position: fixed; z-index: 61; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(470px, calc(100vw - 32px)); max-height: calc(100vh - 64px); overflow: auto; padding: 20px 22px 22px; background: var(--card); border-radius: 16px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-3), 0 0 0 1px rgba(20,22,28,0.06); animation: sheet-in .18s ease-out; }
@keyframes sheet-in { from { opacity: 0; transform: translate(-50%, -48%) scale(.98); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.scrim { animation: fade-in .18s ease-out; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.sheet .grab { display: none; }
.sheet .ttl { font-size: 20px; font-weight: 700; border: 0; padding: 0; background: transparent; width: 100%; outline: none; resize: none; line-height: 1.25; }
.sheet .grp { display: flex; flex-direction: column; gap: 8px; }
.sheet .when { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sheet .when button, .sheet .bigbtn { min-height: 40px; font-size: 14px; font-weight: 500; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); position: relative; box-shadow: var(--shadow-1); transition: background .12s, border-color .12s; }
.sheet .when button:hover, .sheet .bigbtn:hover { background: var(--hover); }
.sheet .when button[aria-pressed=true], .sheet .bigbtn.dark { border-color: var(--ink); background: var(--ink); color: var(--bg); font-weight: 600; }
.sheet .row { display: flex; gap: 8px; align-items: center; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line-3); border-radius: 10px; }
.stepper button { width: 40px; height: 38px; display: flex; align-items: center; justify-content: center; border: 0; background: transparent; }
.stepper div { min-width: 60px; text-align: center; font-size: 14px; font-weight: 600; }
.sheet .seg button { flex: 1; min-height: 38px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; }
.sheet .boardrow { display: flex; align-items: center; justify-content: space-between; min-height: 42px; padding: 0 12px; font-size: 14px; border: 1px solid var(--line-3); border-radius: 10px; background: var(--card); text-align: left; }
.sheet textarea.notes, .sheet textarea.dump { width: 100%; min-height: 80px; padding: 10px 12px; border: 1px solid var(--line-3); border-radius: 10px; background: var(--card); resize: vertical; }
.sheet textarea.dump { min-height: 180px; font-size: 16px; }
.sheet .foot { display: flex; gap: 6px; justify-content: space-between; flex-wrap: wrap; }
.overlay-input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; border: 0; }
.chk { display: flex; align-items: center; gap: 10px; min-height: 40px; color: var(--ink); cursor: pointer; } .chk input { width: 18px; height: 18px; accent-color: var(--sun); }
.tokrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; color: var(--ink); }
.tokshow code { display: block; margin: 8px 0; padding: 10px 12px; border-radius: 10px; background: var(--seg); color: var(--ink); font-size: 12px; word-break: break-all; user-select: all; }
.ctxmenu { position: fixed; z-index: 120; min-width: 180px; padding: 5px; border-radius: 10px; background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow-3); display: flex; flex-direction: column; }
.ctxmenu button { text-align: left; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 13.5px; padding: 7px 10px; border-radius: 7px; cursor: pointer; }
.ctxmenu button:hover, .ctxmenu button:focus-visible { background: var(--hover); outline: 0; }
.ctxmenu button.danger { color: var(--now); }
.ctxmenu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 6px; }
/* in review */
.seg.small button { min-height: 30px; padding: 0 10px; font-size: 13px; }
.sbar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--seg); gap: 2px; }
.sbar i, .slegend i, .srow .track i { display: block; } .sbar i.m, .slegend i.m, .srow i.m, .sday i.m { background: var(--blue); } .sbar i.d, .slegend i.d, .srow i.d, .sday i.d { background: var(--sun); } .sbar i.o, .slegend i.o, .srow i.o, .sday i.o { background: color-mix(in srgb, var(--sun) 35%, var(--seg)); } .sbar i.f, .slegend i.f { background: transparent; }
.slegend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 13px; color: var(--ink-2); } .slegend span { display: inline-flex; align-items: center; gap: 6px; } .slegend i { width: 10px; height: 10px; border-radius: 3px; } .slegend i.f { border: 1px solid var(--line-3); } .slegend b { color: var(--ink); font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; } .stats div { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); } .stats b { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; } .stats span { font-size: 12px; color: var(--ink-2); } .stats small { font-size: 11px; color: var(--sun-ink); margin-top: 2px; white-space: nowrap; }
.srows { display: flex; flex-direction: column; gap: 6px; } .srow { display: grid; grid-template-columns: 110px 1fr 56px; align-items: center; gap: 10px; font-size: 13.5px; } .srow .l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .srow .track { display: flex; height: 10px; border-radius: 5px; background: var(--seg); overflow: hidden; } .srow .v { text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sins { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--sun-bg); color: var(--sun-ink); font-size: 14px; } .sins span { flex: 1; } .sins .btn { flex: none; }
.sdays { display: flex; gap: 6px; height: 72px; align-items: flex-end; } .sday { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; } .sday .col { flex: 1; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 4px; overflow: hidden; background: var(--seg); } .sday .col i { display: block; width: 100%; } .sday .lbl { font-size: 11px; color: var(--ink-3); } .sday.today .lbl { color: var(--ink); font-weight: 700; }
.streaks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; } .streaks div { display: flex; flex-direction: column; padding: 8px 4px; align-items: center; text-align: center; } .streaks b { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; } .streaks span { font-size: 12px; color: var(--ink-2); }
.heat { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); gap: 3px; } .heat i { display: block; aspect-ratio: 1; border-radius: 2px; background: var(--seg); } .heat i.l1 { background: color-mix(in srgb, var(--sun) 30%, var(--seg)); } .heat i.l2 { background: color-mix(in srgb, var(--sun) 55%, var(--seg)); } .heat i.l3 { background: color-mix(in srgb, var(--sun) 80%, var(--seg)); } .heat i.l4 { background: var(--sun-ink); } .heat i.fut { opacity: .35; } .heat i.now { box-shadow: 0 0 0 1.5px var(--ink); }
.sdone { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; } .sdone small { color: var(--ink-3); }
.m .srow { grid-template-columns: 96px 1fr 52px; }
/* timer */
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }
.card.running { border-color: color-mix(in srgb, var(--sun) 60%, var(--line-2)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--sun) 35%, transparent), var(--shadow-1); }
.card .meta.live { display: inline-flex; align-items: center; gap: 5px; color: var(--sun-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.card .meta.live i, .runpill i { width: 7px; height: 7px; border-radius: 50%; background: var(--sun); animation: pulse 1.4s ease-in-out infinite; flex: none; }
.runpill { display: inline-flex; align-items: center; gap: 8px; max-width: 320px; height: 32px; padding: 0 6px 0 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--sun) 50%, var(--line-2)); background: var(--sun-bg); color: var(--sun-ink); font: inherit; font-size: 13px; cursor: pointer; }
.runpill .rt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.runpill b { font-variant-numeric: tabular-nums; font-weight: 700; flex: none; }
.runpill .stop { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--sun-ink); color: #fff; flex: none; }
.m .runpill { width: 100%; max-width: none; height: 44px; border-radius: 12px; font-size: 15px; margin-bottom: 8px; padding-left: 14px; } .m .runpill .stop { width: 30px; height: 30px; }
.timerrow { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.timerrow .bigbtn { display: flex; align-items: center; justify-content: center; gap: 8px; }
.timerrow .tstart { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.timerrow .tstop { background: var(--sun-bg); color: var(--sun-ink); border-color: color-mix(in srgb, var(--sun) 50%, var(--line-2)); font-variant-numeric: tabular-nums; }
.logged { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13.5px; color: var(--ink-2); flex-wrap: wrap; }
.logged .chips { display: flex; gap: 6px; } .logged .chips button { min-height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.logged .chips button:hover { border-color: var(--line-3); }
.m .logged .chips button { min-height: 38px; }
.timefield { position: relative; display: flex; }
.timein { width: 100%; min-height: 44px; padding: 0 36px 0 14px; border: 1px solid var(--line-3); border-radius: 10px; background: var(--card); color: var(--ink); font: inherit; font-weight: 600; }
.timein::placeholder { font-weight: 500; color: var(--ink-2); }
.timein:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
.timein.bad { outline-color: var(--now); }
.tclear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-3); cursor: pointer; font-size: 13px; }
.tclear:hover { background: var(--hover); color: var(--ink); }
.timelist { position: fixed; z-index: 70; max-height: 216px; overflow-y: auto; background: var(--card); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow-3); padding: 4px; display: flex; flex-direction: column; scrollbar-width: thin; }
.timelist button { text-align: left; padding: 0 12px; min-height: 34px; border: 0; border-radius: 7px; background: transparent; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; font-variant-numeric: tabular-nums; }
.timelist button:hover { background: var(--hover); }
.timelist button[aria-pressed=true] { background: var(--ink); color: var(--bg); font-weight: 600; }
.list-pick { display: flex; flex-direction: column; gap: 6px; }
.list-pick button { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); text-align: left; font-size: 15px; }
.list-pick button[aria-pressed=true] { border-color: var(--ink); font-weight: 600; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field input { padding: 8px 10px; border: 1px solid var(--line-3); border-radius: 8px; background: var(--card); }
.review-item { display: flex; flex-direction: column; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.review-item .row button { flex: 1; min-height: 38px; padding: 0 6px; border: 1px solid var(--line-3); border-radius: 10px; background: var(--card); position: relative; font-size: 14px; white-space: nowrap; }
.m .review-item .row button { font-size: 13px; min-height: 44px; }
.banner { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: var(--warn-bg); color: var(--warn); font-size: 13px; font-weight: 600; border: 0; text-align: left; width: 100%; }
.banner span { flex: 1; }
.banner.signin { background: var(--ink); color: var(--bg); }
.banner.off { background: var(--seg); color: var(--ink-2); font-weight: 500; }

/* ── desktop ───────────────────────────────────────────────── */
.d { height: 100%; display: flex; flex-direction: column; }
.d header.top { display: flex; flex-wrap: nowrap; align-items: center; gap: 14px; height: 54px; padding: 0 16px 0 14px; border-bottom: 1px solid var(--line); background: var(--bg); }
.d .brandrow { display: flex; align-items: center; gap: 10px; }
.d .btn.icon[aria-pressed=false] { background: var(--seg); }
.d .navgroup { display: flex; flex-direction: column; gap: 2px; }
.d .navrow { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 6px 10px 6px 8px; border: 1px solid transparent; border-radius: 8px; background: transparent; text-align: left; font-size: 14px; transition: background .12s; }
.d .navrow:hover { background: var(--hover); }
.d .navrow[aria-current=true] { background: var(--card); border-color: var(--line-2); font-weight: 600; box-shadow: var(--shadow-1); }
.d .navrow .ni { display: flex; width: 22px; height: 22px; align-items: center; justify-content: center; color: var(--ink-2); }
.d .navrow .ni svg { width: 18px; height: 18px; }
.d .navrow .bdot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-3); }
.d .navrow:nth-child(4n+1) .bdot { background: #5B8DEF; } .d .navrow:nth-child(4n+2) .bdot { background: #45B26B; } .d .navrow:nth-child(4n+3) .bdot { background: #F0A030; } .d .navrow:nth-child(4n+4) .bdot { background: #A66BEA; }
.d .navrow .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d .navrow .n { font-size: 12px; color: var(--ink-3); font-weight: 500; font-variant-numeric: tabular-nums; }
.d .navrow.over { background: var(--drop); border-color: var(--blue); }
.d .navhead { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.d .listhead { display: flex; justify-content: space-between; align-items: center; margin: -4px 0 -4px -6px; }
.d .listhead .back { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; text-decoration: none; color: var(--ink-2); }
.d .listhead .back:hover { color: var(--ink); }
.d .listtitle { display: flex; align-items: baseline; gap: 8px; font-size: 18px; letter-spacing: -0.01em; }
.d .listtitle .muted { font-size: 13px; }
.d .brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 19px; border: 0; background: transparent; padding: 4px 8px 4px 4px; border-radius: 8px; color: var(--ink); }
.d .brand:hover { background: var(--hover); }
.d .brandrow { min-width: 300px; }
.d .steps { display: flex; align-items: center; gap: 4px; }
.d .title { font-weight: 600; font-size: 15px; margin-left: 10px; white-space: nowrap; }
.d .right { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.d .right .dot { padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); white-space: nowrap; }
@media (max-width: 1180px) { .d .right .dot { font-size: 0; gap: 0; padding: 9px; } .d .right .dot i { width: 10px; height: 10px; } }
.d .main { flex: 1; min-height: 0; display: flex; }
.d .panel { flex: 0 0 var(--pw, 320px); min-width: 260px; max-width: 60vw; overflow-y: auto; padding: 14px 14px 16px; background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.d .panel.collapsed { display: none; }
/* draggable divider between the panel and the timeline */
.d .resizer { flex: none; width: 7px; margin: 0 -3px; cursor: col-resize; position: relative; z-index: 3; touch-action: none; }
.d .resizer::after { content: ''; position: absolute; inset: 0 3px; background: transparent; transition: background .12s; }
.d .resizer:hover::after, .d .resizer.active::after { background: var(--sun); }
body.resizing { cursor: col-resize; user-select: none; } body.resizing .tl, body.resizing .panel { pointer-events: none; }
.d .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.d .qa { display: flex; flex-direction: column; gap: 4px; }
.d .qa label { font-size: 12px; color: var(--ink-2); }
.d .qa input { padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--card); box-shadow: var(--shadow-1); transition: border-color .12s, box-shadow .12s; }
.d .qa input:focus, .search input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(20,22,28,0.08); }
.d .hint { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--ink-2); }
.d .stack { display: flex; flex-direction: column; gap: 6px; }
.d .tl { flex: 1; min-width: 0; overflow: auto; }
.d .cols { display: flex; min-height: 100%; }
.d .cols.horizons .col { flex: 1 1 0; min-width: 220px; }
.d .col { flex: 1 0 252px; padding: 12px 12px 16px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 7px; }
.d .col.past { background: var(--past); }
.d .col .head { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; min-height: 34px; }
.d .date { display: flex; align-items: center; gap: 8px; }
.d .num { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; min-width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; }
.d .num.today { background: var(--ink); color: var(--bg); }
.d .dow { font-size: 12px; font-weight: 500; color: var(--ink-2); }
.d .col.today .dow, .d .hcol .num.today + .dow { color: var(--ink); font-weight: 600; }
.d .col .small { font-size: 12px; color: var(--ink-2); }
.d .col .more { font-size: 12px; text-align: left; padding: 6px 2px; border: 0; background: transparent; color: var(--ink-2); }
.d .addbtn { align-self: flex-start; border-color: transparent; box-shadow: none; background: transparent; color: var(--ink-3); padding-left: 6px; }
.d .addbtn:hover { color: var(--ink); background: var(--hover); }
.d .addbtn::before { content: '+'; margin-right: 5px; font-weight: 500; }
.d .col .inline-add { padding: 8px 10px; border: 1px solid var(--line-3); border-radius: 8px; background: var(--card); width: 100%; }
.d .col .eyebrow { margin-top: 8px; font-size: 11.5px; color: var(--ink-3); }
/* hours */
.d .hours { min-width: 620px; padding: 0 16px 24px; display: flex; flex-direction: column; gap: 10px; }
.d .hrow { display: flex; gap: 12px; }
.d .hrow.sticky { position: sticky; top: 0; z-index: 6; background: var(--bg); padding: 14px 0 10px; border-bottom: 1px solid var(--line); }
.d .gutter { flex: 0 0 52px; font-size: 12px; color: var(--ink-2); text-align: right; }
.d .hcol { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.d .grid { flex: 1 1 0; min-width: 0; position: relative; border: 1px solid var(--line); border-radius: 8px; background: repeating-linear-gradient(to bottom, var(--bg) 0, var(--bg) 55px, var(--line) 55px, var(--line) 56px); }
.d .grid .card, .d .grid .appt { position: absolute; left: 6px; right: 6px; overflow: hidden; align-items: flex-start; padding-top: 6px; padding-bottom: 6px; border-radius: 5px; }
.d .grid .card::before { top: 0; bottom: 0; border-radius: 0; } /* the target bar runs the full height of a timed block */
.d .grid .card.hl { border-top-left-radius: 5px; border-bottom-left-radius: 5px; }
/* in the hour grid a card reads like a calendar block: one-line title with an ellipsis, the time on the right, full text on hover */
.d .grid .card .body { gap: 0; }
.d .grid .card .t { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d .grid .card .sub, .d .grid .card .tags { display: none; }
.d .grid .card.tall .sub { display: block; }
.d .grid .card .meta { flex: none; }
.d .grid .card.short { padding-top: 2px; padding-bottom: 2px; }
.d .grid .resize { position: absolute; left: 0; right: 0; bottom: 0; height: 7px; cursor: ns-resize; }
.d .grid { cursor: cell; user-select: none; }
.d .grid .card, .d .grid .appt { cursor: grab; }
.d .grid .card.draft { cursor: move; z-index: 6; border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue) inset, 0 4px 14px rgba(22,24,29,.14); }
.d .grid .card.draft.meeting { box-shadow: 0 4px 14px rgba(22,24,29,.2); }
.d .grid .card.draft .resize { cursor: ns-resize; }
.d .grid .qc { position: absolute; left: 6px; right: 6px; z-index: 7; display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); box-shadow: 0 10px 30px rgba(22,24,29,.18); cursor: default; }
.d .grid .qc input { font: inherit; font-size: 16px; font-weight: 600; padding: 6px 2px; border: 0; border-bottom: 2px solid var(--blue); background: transparent; outline: none; width: 100%; }
.d .grid .qc .kindseg button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; }
.d .grid .qc-time { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--ink-2); }
.d .grid .qc-time .stepper { border-radius: 8px; }
.d .grid .qc-time .stepper button { width: 32px; height: 30px; display: flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--ink); }
.d .grid .qc-time .stepper div { min-width: 56px; text-align: center; font-size: 13px; font-weight: 600; color: var(--ink); }
.d .grid .qc-foot { display: flex; align-items: center; justify-content: space-between; }
.d .grid .qc-foot span { display: flex; gap: 6px; }
.d .grid .qc .btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 600; }
.d .nowline { position: absolute; left: 0; right: 0; height: 2px; background: var(--now); z-index: 4; pointer-events: none; }
.d .nowline span { position: absolute; right: 8px; top: -10px; padding: 1px 8px; border-radius: 999px; background: var(--now); color: #fff; font-size: 12px; font-weight: 600; }
.d .legend { margin-left: 64px; font-size: 12px; color: var(--ink-2); }

/* ── mobile ────────────────────────────────────────────────── */
.m { height: 100%; display: flex; flex-direction: column; font-size: 17px; line-height: 1.3; }
.m header.mh { padding: calc(14px + env(safe-area-inset-top)) 16px 12px; display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid var(--line); }
.m .mh .r1 { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.m h1 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; }
.m .dot { font-size: 13px; }
.m .loadrow { display: flex; align-items: center; gap: 10px; }
.m .loadrow > div { flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-2); }
.m .ib { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); }
.m .tb { height: 44px; padding: 0 12px; font-size: 15px; font-weight: 600; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); }
.m .plain { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 0; background: transparent; }
.m .seg button { flex: 1 0 auto; min-height: 44px; font-size: 14px; border-radius: 8px; padding: 0 12px; }
.m .seg { border-radius: 10px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; } .m .seg::-webkit-scrollbar { display: none; }
.m main.mm { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 16px 24px; display: flex; flex-direction: column; gap: 8px; -webkit-overflow-scrolling: touch; }
/* the list scrolls; its children must never be squeezed to fit the viewport (cards have an explicit min-height, which lets flex shrink them) */
.m main.mm > * { flex-shrink: 0; }
.m .eyebrow { font-size: 13px; }
.m .eyebrow.gap { margin-top: 8px; }
.m .card { min-height: 50px; gap: 12px; align-items: center; padding: 9px 12px 9px 13px; border-radius: 12px; font-size: 15px; line-height: 1.3; }
.m .card::before { top: 10px; bottom: 10px; }
.m .card .meta { max-width: 42%; overflow: hidden; text-overflow: ellipsis; flex: none; }
.m .card .ck { width: 44px; height: 44px; margin: -11px -11px -11px -12px; align-items: center; justify-content: center; }
.m .card .box { width: 22px; height: 22px; border-radius: 7px; }
.m .card .box svg { width: 14px; height: 14px; }
.m .card .meta { font-size: 13px; }
.m .card .sub { font-size: 13px; }
.m .appt { flex-direction: row; align-items: center; gap: 12px; min-height: 52px; padding: 8px 12px; border-radius: 10px; }
.m .appt .t { flex: 1; } .m .appt .time { font-size: 15px; font-weight: 700; }
.m .dayhead { display: flex; align-items: center; gap: 8px; min-height: 44px; border-top: 1px solid var(--line); }
.m .dayhead:first-child { border-top: 0; }
.m .dayhead b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; min-width: 0; }
.m .dayhead .small { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1 1 auto; min-width: 0; }
.m .dayhead .pill { flex: none; }
.m .dayhead .plain { margin-left: auto; flex: none; }
.m .showmore { align-self: flex-start; min-height: 44px; padding: 0 4px; font-size: 15px; border: 0; background: transparent; text-decoration: underline; }
.m .empty { font-size: 15px; }
.m nav.tabs { display: flex; align-items: flex-end; padding: 6px 8px max(10px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.m .tabs button { flex: 1; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11.5px; font-weight: 500; border: 0; background: transparent; color: var(--ink-3); transition: color .12s; }
.m .tabs button svg { transition: transform .15s; }
.m .tabs button { white-space: nowrap; }
.m .tabs .ti { position: relative; display: flex; }
.m .tabs .badge { position: absolute; top: -5px; left: 14px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--sun); color: #14161C; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; box-shadow: 0 0 0 2px var(--bg); letter-spacing: 0; }
.m .tabs button[aria-current=page] { font-weight: 600; color: var(--ink); }
.m .tabs button[aria-current=page] svg { transform: translateY(-1px); }
.m .tabs button:active svg { transform: scale(.92); }
.m .tabs .cap { flex: 0 0 58px; height: 58px; margin: 0 6px; border-radius: 50%; background: var(--sun); color: var(--ink); align-self: center; box-shadow: 0 6px 16px rgba(240,160,48,0.35), inset 0 1px 0 rgba(255,255,255,0.35); transition: transform .12s; }
.m .tabs .cap:active { transform: scale(.94); }
@media (prefers-color-scheme: dark) {
:root:not([data-theme=light]) .m .tabs .cap { color: #14161C; }
}
:root[data-theme=dark] .m .tabs .cap { color: #14161C; }
.m .rowlink { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 12px; border: 1px solid var(--line-2); border-top-width: 0; background: var(--card); font-size: 16px; font-weight: 500; text-align: left; }
.m .rowlink:first-child { border-top-width: 1px; border-radius: 12px 12px 0 0; }
.m .rowlink:nth-last-child(2) { border-radius: 0 0 12px 12px; }
.m .rowlink:only-child { border-radius: 12px; }
.m .rowlink:active { background: var(--hover); }
.m .rowlink .bdot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.bdot.b0 { background: #5B8DEF; } .bdot.b1 { background: #45B26B; } .bdot.b2 { background: #F0A030; } .bdot.b3 { background: #A66BEA; }
.m .rowlink svg { color: var(--ink-3); }
.m .rowlink .n { margin-left: auto; font-size: 14px; color: var(--ink-3); font-weight: 500; }
.m .sec { display: flex; align-items: center; gap: 8px; min-height: 44px; border: 0; background: transparent; padding: 0; width: 100%; text-align: left; }
.m .sheet { left: 0; right: 0; top: auto; bottom: 0; transform: none; width: auto; max-height: 90vh; padding: 10px 16px max(30px, calc(env(safe-area-inset-bottom) + 16px)); border-radius: 20px 20px 0 0; box-shadow: none; font-size: 17px; }
.m .sheet .grab { display: flex; justify-content: center; width: 100%; padding: 2px 0 6px; margin: -4px 0 -8px; flex: none; touch-action: none; }
.m .sheet .grab::after { content: ''; width: 40px; height: 4px; border-radius: 2px; background: var(--line-3); }
.m .sheet .eyebrow { font-size: 13px; }
.m .sheet .when button, .m .sheet .bigbtn { min-height: 48px; font-size: 15px; }
.m .sheet .seg button { min-height: 44px; font-size: 15px; }
.m .sheet .boardrow { min-height: 48px; font-size: 15px; }
.m .sheet .stepper button { width: 44px; height: 46px; }
.m .sheet .stepper div { font-size: 15px; }
.m .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
/* swipe + rail */
.m .card.swiping { transition: none; }
.m .card .swipebg { position: absolute; inset: 0; border-radius: 10px; z-index: -1; }
.swipe-hint { position: absolute; inset: -1px -1px -1px -4px; border-radius: 10px; display: flex; align-items: center; padding: 0 16px; font-size: 14px; font-weight: 700; color: #fff; z-index: 0; }
.rail { position: fixed; z-index: 80; top: 0; bottom: 0; right: 0; width: min(46vw, 180px); padding: calc(16px + env(safe-area-inset-top)) 8px 16px; background: var(--card); border-left: 1px solid var(--line); box-shadow: -10px 0 30px rgba(22,24,29,0.12); display: flex; flex-direction: column; gap: 6px; transform: translateX(100%); transition: transform 180ms ease-out; overflow: hidden; }
.rail.in { transform: none; }
.rail .eyebrow { padding: 0 4px 4px; font-size: 12px; }
.rail .slot { flex: 1; max-height: 64px; min-height: 40px; display: flex; flex-direction: column; justify-content: center; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 10px; font-size: 15px; font-weight: 600; }
.rail .slot small { font-size: 12px; font-weight: 400; color: var(--ink-2); }
.rail .slot.over { border-color: var(--blue); background: var(--drop); box-shadow: 0 0 0 1px var(--blue); }
@media (prefers-reduced-motion: reduce) { .rail { transition: none; } }

/* phone: full-screen day while dragging */
.daydrop { position: fixed; inset: 0; z-index: 80; background: var(--bg); display: flex; flex-direction: column; transform: translateY(12px); opacity: 0; transition: opacity 140ms, transform 140ms; }
.daydrop.in { transform: none; opacity: 1; }
.dd-top { display: flex; align-items: center; gap: 6px; padding: calc(10px + env(safe-area-inset-top)) 6px 8px; border-bottom: 1px solid var(--line); }
.dd-edge { width: 28px; text-align: center; font-size: 28px; color: var(--ink-2); }
.dd-title { flex: 1; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 17px; }
.dd-title small { font-size: 12px; color: var(--ink-2); }
.dd-strip { display: flex; gap: 8px; padding: 8px 16px; }
.dd-strip .slot { flex: 1; min-height: 40px; display: flex; align-items: center; justify-content: center; border: 1px dashed var(--line-3); border-radius: 10px; font-size: 14px; font-weight: 600; }
.dd-strip .slot.over { border: 2px solid var(--blue); background: var(--drop); color: var(--blue); }
.dd-scroll { flex: 1; overflow-y: auto; padding: 4px 16px 40px 0; }
.dd-wrap { display: flex; }
.dd-rows { flex: 0 0 56px; }
.dd-h { position: relative; font-size: 12px; color: var(--ink-2); text-align: right; padding-right: 8px; }
.dd-h span { position: relative; top: -7px; }
.dd-grid { flex: 1; position: relative; background: repeating-linear-gradient(to bottom, var(--line) 0, var(--line) 1px, transparent 1px, transparent 52px); border-left: 1px solid var(--line); }
.dd-grid.over { background-color: var(--drop); }
.dd-b { position: absolute; left: 6px; right: 6px; padding: 2px 8px; border: 1px solid var(--line-2); border-left: 3px solid var(--edge); border-radius: 6px; background: var(--card); font-size: 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; opacity: 0.8; }
.dd-b.mt { --mt: var(--blue); background: var(--mt); color: #fff; border: 0; }
.daydrop .nowline { position: absolute; left: 0; right: 0; height: 2px; background: var(--now); pointer-events: none; }

/* meeting colors (Google Calendar's palette) */
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
/* highlighted task: a wash of the chosen colour over the whole card, ring on the checkbox; readable in both themes */
.card.hl { border-left: 5px solid var(--mt); padding-left: 8px; background: color-mix(in srgb, var(--mt) 7%, var(--card)); border-top-left-radius: 6px; border-bottom-left-radius: 6px; }
.card.hl::before { display: none; } /* the colour bar takes the edge; a target still shows its star */
.card.hl .box { border-color: color-mix(in srgb, var(--mt) 70%, var(--line-3)); }
.m .card.hl { border-left-width: 6px; }
.card .emo { font-size: 15px; line-height: 18px; flex: none; }
.d .grid .card .emo { font-size: 13px; }
.emopick { display: flex; flex-wrap: wrap; gap: 6px; }
.emopick button { min-width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card); font-size: 20px; cursor: pointer; }
.emopick button[aria-pressed=true] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.emopick button.none { font-size: 13px; color: var(--ink-2); padding: 0 10px; }
@keyframes cardin { 0% { background: var(--sun-bg); box-shadow: 0 0 0 2px var(--sun); } 100% { background: var(--card); box-shadow: var(--shadow-1); } }
.card.new { animation: cardin 1.6s ease-out; }
.sw.none { background: var(--card); border: 1.5px solid var(--line-3); box-shadow: none; }
.sw.none::before { content: ''; position: absolute; left: 50%; top: 50%; width: 18px; height: 1.5px; background: var(--line-3); transform: translate(-50%, -50%) rotate(-45deg); }
.sw { width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer; box-shadow: 0 0 0 2px var(--card) inset; position: relative; }
.sw[aria-pressed=true] { box-shadow: 0 0 0 2px var(--card) inset, 0 0 0 2px var(--ink); }
.sw[aria-pressed=true]::after { content: ''; position: absolute; left: 9px; top: 5px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.m .sw { width: 36px; height: 36px; } .m .sw[aria-pressed=true]::after { left: 13px; top: 8px; width: 7px; height: 13px; }
.d .grid .qc .swatches { gap: 6px; } .d .grid .qc .sw { width: 22px; height: 22px; } .d .grid .qc .sw[aria-pressed=true]::after { left: 7px; top: 3px; width: 5px; height: 9px; border-width: 0 2px 2px 0; }

/* reflow */
.pinicon { display: flex; flex: none; color: var(--ink-2); }
.reflowsw { font-size: 12px; } .reflowsw[aria-pressed=false] { color: var(--ink-2); text-decoration-style: dotted; }
.pinbtn[aria-pressed=true] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* tags */
.tag { display: inline-flex; align-items: center; font-size: 11px; font-weight: 600; line-height: 18px; padding: 0 7px; border-radius: 999px; border: 0; white-space: nowrap; background: color-mix(in srgb, var(--tc) 16%, transparent); color: var(--tc); font-family: inherit; }
.tag.c-red { --tc: #B91C1C; } .tag.c-orange { --tc: #C2410C; } .tag.c-amber { --tc: #B45309; } .tag.c-yellow { --tc: #A16207; } .tag.c-green { --tc: #15803D; } .tag.c-teal { --tc: #0F766E; }
.tag.c-cyan { --tc: #0E7490; } .tag.c-blue { --tc: #1D4ED8; } .tag.c-indigo { --tc: #4338CA; } .tag.c-purple { --tc: #7E22CE; } .tag.c-pink { --tc: #BE185D; } .tag.c-grey { --tc: #4B5563; }
@media (prefers-color-scheme: dark) {
:root:not([data-theme=light]) .tag.c-red { --tc: #F87171; }
:root:not([data-theme=light]) .tag.c-orange { --tc: #FB923C; }
:root:not([data-theme=light]) .tag.c-amber { --tc: #FBBF24; }
:root:not([data-theme=light]) .tag.c-yellow { --tc: #FACC15; }
:root:not([data-theme=light]) .tag.c-green { --tc: #4ADE80; }
:root:not([data-theme=light]) .tag.c-teal { --tc: #2DD4BF; }
:root:not([data-theme=light]) .tag.c-cyan { --tc: #22D3EE; }
:root:not([data-theme=light]) .tag.c-blue { --tc: #60A5FA; }
:root:not([data-theme=light]) .tag.c-indigo { --tc: #818CF8; }
:root:not([data-theme=light]) .tag.c-purple { --tc: #C084FC; }
:root:not([data-theme=light]) .tag.c-pink { --tc: #F472B6; }
:root:not([data-theme=light]) .tag.c-grey { --tc: #9CA3AF; }
}
:root[data-theme=dark] .tag.c-red { --tc: #F87171; }
:root[data-theme=dark] .tag.c-orange { --tc: #FB923C; }
:root[data-theme=dark] .tag.c-amber { --tc: #FBBF24; }
:root[data-theme=dark] .tag.c-yellow { --tc: #FACC15; }
:root[data-theme=dark] .tag.c-green { --tc: #4ADE80; }
:root[data-theme=dark] .tag.c-teal { --tc: #2DD4BF; }
:root[data-theme=dark] .tag.c-cyan { --tc: #22D3EE; }
:root[data-theme=dark] .tag.c-blue { --tc: #60A5FA; }
:root[data-theme=dark] .tag.c-indigo { --tc: #818CF8; }
:root[data-theme=dark] .tag.c-purple { --tc: #C084FC; }
:root[data-theme=dark] .tag.c-pink { --tc: #F472B6; }
:root[data-theme=dark] .tag.c-grey { --tc: #9CA3AF; }
.card .tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.m .tag { font-size: 12px; line-height: 20px; }
.tagpick, .tagstrip { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tagpick .tag, .tagstrip .tag { cursor: pointer; line-height: 24px; padding: 0 10px; font-size: 12px; opacity: 0.6; }
.tagpick .tag[aria-pressed=true], .tagstrip .tag[aria-pressed=true] { opacity: 1; box-shadow: 0 0 0 2px var(--tc); }
.m .tagpick .tag, .m .tagstrip .tag { line-height: 32px; padding: 0 12px; font-size: 13px; }
.tag.c-new { --tc: var(--ink-2); background: transparent; border: 1px dashed var(--line-3); opacity: 1; }
.newtag { font: inherit; font-size: 14px; padding: 6px 12px; border: 1px solid var(--line-3); border-radius: 10px; background: var(--card); color: var(--ink); min-width: 0; }
.m .newtag { font-size: 16px; min-height: 44px; }
.tagstrip { padding: 0 0 4px; } .m .tagstrip { padding: 6px 0 4px; }
.taglist { display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.tagrow { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.tagrow:first-child { border-top: 0; }
.tagrow .tagbtn { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border: 0; background: var(--card); text-align: left; font: inherit; color: inherit; cursor: pointer; }
.tagrow .tagbtn .muted { margin-left: auto; font-size: 13px; }
.tagrow .tagbtn svg { color: var(--ink-3); transition: transform .15s; }
.tagrow[aria-expanded=true] .tagbtn svg { transform: rotate(180deg); }
.tagrow .tagopts { display: flex; align-items: center; gap: 12px; padding: 4px 12px 12px; background: var(--card); }
.tagrow .dots { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.tagrow .tagopts .link { font-size: 13px; flex: none; }
.cdot { width: 18px; height: 18px; border-radius: 50%; border: 0; background: var(--tc); opacity: 0.45; cursor: pointer; }
.cdot.c-red { --tc: #DC2626; } .cdot.c-orange { --tc: #EA580C; } .cdot.c-amber { --tc: #D97706; } .cdot.c-yellow { --tc: #CA8A04; } .cdot.c-green { --tc: #16A34A; } .cdot.c-teal { --tc: #0D9488; }
.cdot.c-cyan { --tc: #0891B2; } .cdot.c-blue { --tc: #2563EB; } .cdot.c-indigo { --tc: #4F46E5; } .cdot.c-purple { --tc: #9333EA; } .cdot.c-pink { --tc: #DB2777; } .cdot.c-grey { --tc: #6B7280; }
.cdot[aria-pressed=true] { opacity: 1; box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--tc); }

/* search */
.search { position: relative; display: flex; align-items: center; }
.search .sicon { position: absolute; left: 10px; display: flex; color: var(--ink-2); pointer-events: none; }
.search input { width: 100%; box-sizing: border-box; padding: 8px 32px 8px 32px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--card); color: var(--ink); font: inherit; font-size: 14px; -webkit-appearance: none; box-shadow: var(--shadow-1); transition: border-color .12s, box-shadow .12s; }

.search input::-webkit-search-cancel-button { display: none; }
.search .sclear { position: absolute; right: 4px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); cursor: pointer; font-size: 13px; }
.m .search input { font-size: 16px; padding: 10px 36px; border-radius: 10px; }
.m .search .sicon { left: 12px; } .m .search .sclear { width: 36px; height: 36px; }
/* search + filter button on one row; the active filter is a slim bar underneath */
.searchrow { display: flex; gap: 8px; align-items: stretch; }
.searchrow .search { flex: 1; min-width: 0; }
.fbtn { flex: none; width: 36px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); border-radius: 8px; background: var(--card); color: var(--ink-2); cursor: pointer; box-shadow: var(--shadow-1); position: relative; transition: border-color .12s, color .12s; }
.fbtn:hover { border-color: var(--line-3); color: var(--ink); }
.fbtn[aria-pressed=true] { color: var(--ink); border-color: var(--ink); }
.fbtn[aria-pressed=true]::after { content: ''; position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 2px var(--card); }
.m .searchrow { margin-top: 8px; } .m .fbtn { width: 46px; border-radius: 10px; }
.filterbar { display: flex; align-items: center; gap: 8px; min-height: 28px; font-size: 13px; color: var(--ink-2); }
.filterbar .link { margin-left: auto; }
.m .filterbar { margin-top: 8px; min-height: 32px; font-size: 14px; }
.sheethead { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sheettitle { font-size: 20px; font-weight: 700; letter-spacing: -0.015em; }
.list-pick button svg { color: var(--ink); flex: none; }

/* brand on phone */
.m .mbrand { display: inline-flex; align-items: center; gap: 7px; font-size: 16px; font-weight: 600; color: var(--ink-2); }
.m .mbrand svg { color: var(--ink); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }
/* selection + scrollbars */
::selection { background: var(--sun-bg); }
.d .panel, .d .tl { scrollbar-width: thin; scrollbar-color: var(--line-3) transparent; }
