/* Blush Atelier: dusty pink, deep plum, rose accent */
:root {
  --bg: #f7ece9;
  --bg2: #fbf4f2;
  --surface: #fffaf9;
  --surface2: #f1e0de;
  --line: #ecd9d8;
  --text: #3a2230;
  --muted: #8d6f78;
  --faint: #b89da5;
  --accent: #b24a6c;
  --btn: #3a2230;
  --btn-ink: #fbeff0;
  --soft: #f3dde1;
  --danger: #b53b3b;
  --focus: #3a2230;
  --focus-ink: #fbeff0;
  --focus-sub: #d4b3bd;
  --focus-line: #563646;
  --focus-btn: #e9a3b5;
  --focus-btn-ink: #3a2230;
  --shadow: 0 1px 2px rgba(58, 34, 48, .05), 0 8px 24px rgba(58, 34, 48, .06);
  --r: 16px;
  --tabh: 62px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #1c1218; --bg2: #22171e; --surface: #2a1d25; --surface2: #36262f; --line: #3a2a33;
  --text: #f6e8ec; --muted: #bfa3ad; --faint: #86707a; --accent: #eaa6b8;
  --btn: #f6e8ec; --btn-ink: #2a1d25; --soft: #3a2630; --danger: #f0968c;
  --focus: #e9a3b5; --focus-ink: #2a1420; --focus-sub: #74405a; --focus-line: #d88ea2; --focus-btn: #2a1420; --focus-btn-ink: #f6d5de;
  --shadow: none; color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1c1218; --bg2: #22171e; --surface: #2a1d25; --surface2: #36262f; --line: #3a2a33;
    --text: #f6e8ec; --muted: #bfa3ad; --faint: #86707a; --accent: #eaa6b8;
    --btn: #f6e8ec; --btn-ink: #2a1d25; --soft: #3a2630; --danger: #f0968c;
    --focus: #e9a3b5; --focus-ink: #2a1420; --focus-sub: #74405a; --focus-line: #d88ea2; --focus-btn: #2a1420; --focus-btn-ink: #f6d5de;
    --shadow: none; color-scheme: dark;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  min-height: 100dvh;
  padding-top: env(safe-area-inset-top);
  color: var(--text);
  font: 16px/1.45 'Jost', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
input, select, textarea {
  font: inherit; font-size: 16px; color: var(--text);
  background: var(--surface); border: 1px solid transparent; border-radius: 12px;
  padding: 12px; width: 100%; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
input::placeholder, textarea::placeholder { color: var(--faint); }
input[type=color] { padding: 2px; height: 46px; width: 52px; flex: none; }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
textarea { min-height: 84px; resize: vertical; }
h2 { font-family: 'Italiana', serif; font-weight: 400; font-size: 30px; margin: 4px 0 16px; }
h3 { font-size: 15px; font-weight: 600; color: var(--muted); margin: 30px 0 6px; }

/* Header */
.top { display: flex; justify-content: space-between; align-items: flex-end; max-width: 600px; margin: 0 auto; padding: 20px 20px 4px; }
h1 { font-family: 'Italiana', serif; font-weight: 400; font-size: 40px; line-height: 1.05; letter-spacing: .01em; margin: 2px 0 0; letter-spacing: -.01em; }
.eyebrow { font-size: 13px; color: var(--muted); }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--faint); }
.icon-btn svg { width: 22px; height: 22px; }

main { max-width: 600px; margin: 0 auto; padding: 4px 20px calc(var(--tabh) + 110px + env(safe-area-inset-bottom)); }
.meta { color: var(--muted); font-size: 13.5px; }
.row { display: flex; align-items: center; }
.gap { gap: 14px; }
.between { justify-content: space-between; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; flex: none; }
.dot.big { width: 12px; height: 12px; margin: 0; }
.empty { color: var(--faint); text-align: center; padding: 28px 8px; }
.empty.small { padding: 8px 0; text-align: left; font-size: 14.5px; margin: 0; }
.foot { margin-top: 28px; text-align: center; justify-content: center; }
.list { margin: 0; }
.card { background: var(--surface); border-radius: var(--r); padding: 18px; margin: 14px 0; box-shadow: var(--shadow); }
.card.hero { background: var(--surface); }
.card p { margin: 0 0 14px; color: var(--muted); }

/* Buttons & links */
.btn { display: inline-block; text-decoration: none; white-space: nowrap; background: var(--btn); color: var(--btn-ink); font-weight: 600; padding: 13px 18px; border-radius: 14px; text-align: center; }
.btn.small { padding: 9px 15px; font-size: 14.5px; border-radius: 11px; }
.btn.ghost { background: var(--surface2); color: var(--text); }
.btn.danger { color: var(--danger); }
.btn.wide { width: 100%; display: block; }
.add-line { display: block; color: var(--accent); font-size: 15px; font-weight: 500; padding: 12px 0; }
.add-line.muted, .link.muted { color: var(--muted); font-weight: 400; }
.link { color: var(--accent); font-weight: 500; font-size: 15px; }
.toggle { font-size: 13px; color: var(--faint); margin-top: 24px; }
.toggle.on { color: var(--accent); }

/* Tonight */
.tonight-line { display: block; font-size: 17px; color: var(--text); margin: 6px 0 2px; }
.also { color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.nudge { display: block; width: 100%; color: var(--accent); font-weight: 500; padding: 14px 16px; margin: 18px 0 0; border-radius: 14px; background: var(--soft); }
.area-picks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.starter { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 14px; background: var(--soft); margin: 6px 0 10px; font-size: 15px; }

/* Tabs + floating */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; justify-content: center;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
}
.tab { flex: 1; max-width: 130px; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; color: var(--faint); padding: 6px 0; }
.tab svg { width: 24px; height: 24px; }
.tab.on { color: var(--text); }
.tab.on svg { stroke-width: 2.1; }
.fab {
  position: fixed; z-index: 21; right: max(20px, calc(50vw - 280px));
  bottom: calc(var(--tabh) + 16px + env(safe-area-inset-bottom));
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--btn); color: var(--btn-ink); font-size: 28px; line-height: 56px; text-align: center; font-weight: 300;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
}
.timer-pill {
  position: fixed; z-index: 21; left: max(20px, calc(50vw - 280px));
  bottom: calc(var(--tabh) + 26px + env(safe-area-inset-bottom));
  background: var(--surface2); border-radius: 999px;
  padding: 9px 15px; font-size: 13.5px; font-variant-numeric: tabular-nums; max-width: calc(100vw - 120px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.timer-pill::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--accent)); margin-right: 8px; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* Tasks */
.task { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list > .task:last-of-type, .proj.list .task:last-of-type { border-bottom: 0; }
.check { width: 24px; height: 24px; flex: none; border-radius: 50%; border: 2px solid var(--faint); display: grid; place-items: center; }
.check svg { width: 13px; height: 13px; }
.task.done .check { background: var(--text); border-color: var(--text); color: var(--bg); }
.task-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.task-title { overflow-wrap: anywhere; }
.task .meta { font-size: 13px; }
.task.done .task-title { color: var(--faint); text-decoration: line-through; }
.pri { color: var(--accent); font-weight: 700; margin-right: 5px; }
.overdue { color: var(--danger); }
.play { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--faint); }
.play svg { width: 13px; height: 13px; }
.play.on { background: var(--text); color: var(--bg); }
.num { font-family: 'Italiana', serif; font-weight: 400; color: var(--accent); font-size: 20px; width: 14px; flex: none; text-align: center; }

/* Timer (only while running) */
.timer { display: flex; align-items: center; gap: 14px; background: var(--surface); border-radius: var(--r); padding: 14px 16px; margin: 18px 0 0; }
.timer-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; animation: pulse 1.6s infinite; }
.timer-main { flex: 1; min-width: 0; }
.timer-title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.elapsed { font-family: 'Italiana', serif; font-weight: 400; font-size: 22px; font-variant-numeric: tabular-nums; }

/* Blocks & calendar */
.block { display: block; width: 100%; background: var(--surface); box-shadow: var(--shadow); border-left: 3px solid var(--c); border-radius: 10px; padding: 9px 14px; margin: 8px 0; }
.block-time { display: block; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.block-title { display: block; font-weight: 500; }
.block-sub { display: block; font-size: 13px; color: var(--muted); }
.cal-ev { display: flex; gap: 10px; font-size: 14px; color: var(--muted); padding: 4px 0; }
.cal-time { color: var(--faint); min-width: 56px; font-variant-numeric: tabular-nums; }

/* Chips */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 6px 20px 12px; margin: 0 -20px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; background: var(--surface); border-radius: 999px; padding: 8px 14px; font-size: 14px; white-space: nowrap; }
.chip.on { background: var(--text); color: var(--bg); }
.chip { box-shadow: var(--shadow); }
.seg { display: flex; background: var(--surface); border-radius: 12px; padding: 3px; }
.seg label { flex: 1; margin: 0; }
.seg input { display: none; }
.seg span { display: block; text-align: center; padding: 9px; border-radius: 9px; font-size: 14px; color: var(--muted); }
.seg input:checked + span { background: var(--surface2); color: var(--text); }
.seg.mini { display: inline-flex; }
.seg.mini button { padding: 6px 13px; border-radius: 9px; font-size: 13.5px; color: var(--muted); }
.seg.mini button.on { background: var(--surface2); color: var(--text); }
.studio-seg { margin: 8px 0 14px; }
.studio-seg button { flex: 1; text-align: center; padding: 9px; border-radius: 9px; font-size: 14.5px; color: var(--muted); }
.studio-seg button.on { background: var(--surface2); color: var(--text); }

/* Projects */
.area-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 18px 0; border-bottom: 1px solid var(--line); }
.area-row:last-child { border-bottom: 0; }
.area-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.area-name { font-family: 'Italiana', serif; font-weight: 400; font-size: 24px; }
.area-main .meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chev { color: var(--faint); font-size: 22px; }
.proj { display: block; width: 100%; background: var(--surface); border-radius: 14px; padding: 14px 16px; margin: 10px 0; box-shadow: var(--shadow); }
.proj-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.proj-name { font-weight: 600; overflow-wrap: anywhere; }
.stage { flex: none; font-size: 12px; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); }
.pipe { display: flex; gap: 3px; margin: 10px 0 8px; }
.pipe i { flex: 1; height: 3px; border-radius: 2px; background: var(--surface2); }
.pipe i.on { background: var(--c); }
.proj.list { padding: 14px 16px 6px; }
.proj-head { display: block; width: 100%; }
.progress { height: 3px; border-radius: 2px; background: var(--surface2); margin: 10px 0 2px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--c); }
.proj.list .task { padding: 10px 0; }
.proj.list .add-line { font-size: 14px; padding: 8px 0; }
.board { display: flex; gap: 12px; overflow-x: auto; margin: 6px -20px 0; padding: 0 20px 8px; scroll-snap-type: x mandatory; }
.col { flex: none; width: min(78vw, 270px); scroll-snap-align: start; background: var(--bg2); border-radius: var(--r); padding: 10px; min-height: 140px; }
.col-head { font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; padding: 4px 6px; }
.stages { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 18px; }
.stages button { font-size: 13px; padding: 7px 12px; border-radius: 999px; background: var(--surface); color: var(--muted); }
.stages button.past { color: var(--c); }
.stages button.on { background: var(--c); color: #fff; font-weight: 600; }
details.stage-sec summary { list-style: none; cursor: pointer; }
details.stage-sec summary::-webkit-details-marker { display: none; }
details.stage-sec summary h3::after { content: ' ›'; }
details.stage-sec[open] summary h3::after { content: ' ⌄'; }

/* People */
.person { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list > .person:last-of-type { border-bottom: 0; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--surface2); display: grid; place-items: center; font-weight: 600; color: var(--accent); flex: none; }
.person-main { display: flex; flex-direction: column; min-width: 0; }

/* Ideas */
.capture { margin-bottom: 8px; }
.capture textarea { min-height: 70px; }
details.more summary { color: var(--muted); font-size: 14px; padding: 10px 0 4px; cursor: pointer; list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more input { margin-top: 6px; }
.idea { display: block; width: 100%; padding: 14px 0 14px 14px; border-left: 3px solid var(--c); margin: 4px 0; }
.idea-text { display: block; white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 2px; }

/* Fabric closet */
.search { margin: 6px 0 4px; }
.fab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; margin-top: 8px; }
.fab-grid.small { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.fabric { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.swatch { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--surface); margin-bottom: 6px; display: grid; place-items: center; }
.swatch img { width: 100%; height: 100%; object-fit: cover; display: block; }
.no-photo { font-size: 30px; opacity: .5; }
.st { position: absolute; left: 8px; top: 8px; font-style: normal; font-size: 11.5px; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 85%, transparent); color: var(--text); }
.st-planned { color: var(--accent); }
.st-used { color: var(--muted); }
.fabric.used .swatch img { filter: grayscale(.6); opacity: .55; }
.fabric-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fabric .meta { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fabric-plan { font-size: 13px; color: var(--accent); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fab-grid.small .fabric-name, .fab-grid.small .meta, .fab-grid.small .fabric-plan { font-size: 12.5px; }
.photo-strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -18px 12px; padding: 0 18px; scrollbar-width: none; }
.ph { flex: none; width: 76%; max-width: 330px; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; position: relative; scroll-snap-align: start; background: var(--surface); }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.empty-ph { display: grid; place-items: center; color: var(--faint); aspect-ratio: auto; height: 110px; width: 100%; max-width: none; }
.ph-x { position: absolute; right: 8px; top: 8px; width: 30px; height: 30px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; text-align: center; font-size: 18px; line-height: 30px; }
.vh { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.photo-add { position: relative; margin: 0 0 16px; cursor: pointer; }

/* Week */
.weeknav { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 14px; }
.weeknav button.arrow { width: 40px; height: 40px; border-radius: 50%; background: var(--surface); font-size: 18px; text-align: center; }
.weeknav strong { font-weight: 600; }
.days { margin-top: 14px; }
.day { padding: 12px 0; border-bottom: 1px solid var(--line); }
.day:last-child { border-bottom: 0; }
.day-head { display: flex; justify-content: space-between; align-items: center; min-height: 30px; }
.day-name { font-weight: 600; }
.day-num { color: var(--muted); font-weight: 400; margin-left: 2px; }
.day.today .day-name { color: var(--accent); }
.back { color: var(--muted); font-size: 15px; padding: 4px 0 8px; display: block; }
.day.away { opacity: .6; }
.away-btn { font-size: 12.5px; color: var(--faint); padding: 4px 10px; border-radius: 999px; }
.away-btn.on { background: var(--surface2); color: var(--accent); }
.add-block { color: var(--accent); font-size: 22px; width: 36px; height: 30px; text-align: center; }
.review-slot { display: block; width: 100%; font-size: 14px; color: var(--accent); padding: 8px 14px; margin: 8px 0; border-radius: 10px; background: var(--soft); }
.plan-row { display: grid; grid-template-columns: 58px 1fr 1fr; gap: 8px; align-items: center; margin: 8px 0; }
.plan-row select { padding: 10px 8px; font-size: 15px; }
.plan-head { display: grid; grid-template-columns: 58px 1fr 1fr; gap: 8px; font-size: 12.5px; color: var(--muted); }
.plan-note { font-size: 12.5px; color: var(--faint); margin: -4px 0 6px 66px; }

/* Review */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 6px; }
.stat { background: var(--surface); border-radius: 14px; padding: 14px 12px; box-shadow: var(--shadow); }
.stat b { display: block; font-family: 'Italiana', serif; font-weight: 400; font-size: 26px; font-weight: 500; }
.stat span { font-size: 12.5px; color: var(--muted); }
.bar-row { margin: 14px 0; }
.bar-label { display: flex; justify-content: space-between; font-size: 14.5px; margin-bottom: 7px; }
.bar { position: relative; height: 8px; border-radius: 4px; background: var(--surface); overflow: hidden; }
.bar-plan, .bar-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; }
.bar-plan { opacity: .25; }
.legend { font-size: 12.5px; color: var(--faint); }

/* Forms / sheet */
label { display: block; font-size: 13.5px; color: var(--muted); margin: 0 0 14px; }
label > input, label > select, label > textarea { margin-top: 6px; }
.check-label { display: flex; gap: 10px; align-items: center; color: var(--text); font-size: 15px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sheet { position: fixed; inset: 0; z-index: 50; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(20, 16, 12, .35); opacity: 0; transition: opacity .2s; }
.sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-width: 600px; margin: 0 auto;
  max-height: 90dvh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg2); border-radius: 22px 22px 0 0;
  padding: 8px 18px calc(24px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}
.sheet-panel input, .sheet-panel select, .sheet-panel textarea, .sheet-panel .seg { background: var(--surface); }
.sheet.open .sheet-backdrop { opacity: 1; }
.sheet.open .sheet-panel { transform: none; }
.sheet-grab { width: 40px; height: 5px; border-radius: 3px; background: var(--surface2); margin: 4px auto 12px; }
.sheet-actions { display: flex; gap: 10px; justify-content: space-between; margin-top: 18px; }
.sheet-actions .btn:last-child { flex: 1; }
.area-edit { background: var(--surface); border-radius: 14px; padding: 12px; margin: 10px 0; }
.area-edit input { background: var(--bg2); }
.area-edit .row { gap: 10px; margin-bottom: 10px; }
.pick { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border-radius: 12px; background: var(--surface); margin: 6px 0; }
.pick.on { outline: 2px solid var(--accent); }
.pick .meta { margin-left: auto; }
.steps { padding-left: 18px; margin: 6px 0 12px; }
.cal-step { background: var(--surface); border-radius: 14px; padding: 14px; margin: 10px 0; }
.cal-step input, .cal-step select { background: var(--bg2); }
.cal-step p { margin: 6px 0 10px; }
.cal-url { padding: 6px 0; }

.toast {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 60;
  bottom: calc(var(--tabh) + 90px + env(safe-area-inset-bottom));
  background: var(--text); color: var(--bg); padding: 11px 16px; border-radius: 12px; font-size: 14.5px; font-weight: 500;
  max-width: calc(100vw - 32px); box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
}
.btn.wide + .btn.wide, form + .btn.wide { margin-top: 10px; }
details.more summary::after { content: " ›"; } details.more[open] summary::after { content: " ⌄"; }

/* ---------- Swipe decks ---------- */
.deck { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 14px -20px 0; padding: 4px 20px 10px; scrollbar-width: none; overscroll-behavior-x: contain; }
.deck::-webkit-scrollbar { display: none; }
.dcard { flex: none; width: calc(100% - 26px); scroll-snap-align: center; scroll-snap-stop: always; min-height: min(62dvh, 540px);
  border-radius: 28px; padding: 26px 22px 22px; background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.dcard .k { font-size: 13.5px; color: var(--muted); letter-spacing: .02em; display: flex; align-items: center; }
.dcard .big { font-family: 'Italiana', serif; font-size: 38px; line-height: 1.08; margin: 10px 0 8px; text-wrap: balance; overflow-wrap: anywhere; }
.dcard .small { font-size: 15px; color: var(--muted); line-height: 1.45; }
.dcard .spacer { flex: 1; min-height: 18px; }
.card-list { margin-top: 12px; }
.card-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.go { border: 0; border-radius: 999px; padding: 14px 22px; font: 500 15.5px 'Jost', sans-serif; background: var(--btn); color: var(--btn-ink); cursor: pointer; }
.card-link { font-size: 14.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.deck-dots { display: flex; justify-content: center; gap: 6px; padding: 6px 0 0; }
.deck-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--faint); opacity: .5; transition: width .2s; }
.deck-dots i.on { width: 18px; background: var(--text); opacity: 1; }

/* Focus card: the one dark card */
.dcard.focus { background: var(--focus); color: var(--focus-ink); box-shadow: none; }
.dcard.focus .k, .dcard.focus .small, .dcard.focus .meta, .dcard.focus .card-link { color: var(--focus-sub); }
.dcard.focus .go { background: var(--focus-btn); color: var(--focus-btn-ink); }
.dcard.focus .elapsed { font-family: 'Italiana', serif; font-size: 52px; margin-top: 12px; font-variant-numeric: tabular-nums; }
.dcard.focus .task { border-color: var(--focus-line); }
.dcard.focus .check { border-color: var(--focus-sub); }
.dcard.focus .task.done .check { background: var(--focus-btn); border-color: var(--focus-btn); color: var(--focus-btn-ink); }
.focus-list { margin-top: 10px; }
.plan { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.plan li { display: flex; align-items: center; gap: 12px; }
.plan .t { width: 78px; flex: none; color: var(--focus-sub); font-variant-numeric: tabular-nums; font-size: 14px; }
.plan .bar { width: 4px; height: 28px; border-radius: 2px; background: currentColor; flex: none; }
.plan li.now { font-weight: 500; }
.plan li.later { opacity: .65; }
.plan li.past { opacity: .4; text-decoration: line-through; }
.focus-picks { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.pick-area { display: flex; align-items: center; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--focus-line); font-size: 15.5px; }

/* Area cards */
.area-card .big { font-size: 42px; margin-top: 14px; }
.area-card .card-list { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.mini-proj { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--bg2); width: 100%; }
.mini-proj span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-proj .stage { background: color-mix(in srgb, var(--c) 18%, transparent); color: color-mix(in srgb, var(--c) 70%, var(--text)); }

/* Energy sheet */
.energy-opt { display: flex; flex-direction: column; gap: 3px; width: 100%; padding: 16px 18px; border-radius: 16px; background: var(--surface); margin: 8px 0; border: 1.5px solid transparent; }
.energy-opt b { font-weight: 500; font-size: 16.5px; }
.energy-opt span { font-size: 14px; color: var(--muted); }
.energy-opt.on { border-color: var(--text); }

/* Review: evenings strip */
.evenings { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 8px 0 8px; }
.ev { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 0 8px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.ev .sym { font-size: 18px; line-height: 1; }
.ev .dow { font-size: 12px; color: var(--muted); }
.ev .lbl { font-size: 10.5px; color: var(--faint); min-height: 14px; }
.ev.full .sym { color: var(--text); }
.ev.light .sym, .ev.rest .sym { color: var(--accent); }
.ev.none .sym { color: var(--faint); }
.insight { background: var(--soft); border-radius: 14px; padding: 12px 14px; font-size: 14.5px; margin: 10px 0 0; }
.quick { margin-top: 26px; line-height: 1.2; }

/* Italiana's numerals read like letters; set figures in Jost */
.stat b, .num, .elapsed, .dcard.focus .elapsed { font-family: 'Jost', sans-serif; font-weight: 400; }
.num { font-size: 17px; color: var(--accent); }
.stat b { font-size: 24px; }
.dcard.focus .elapsed { font-size: 46px; font-weight: 300; }
.quick { margin-top: 0; }

/* Today list */
.list-gap { height: 10px; }
.carried { color: var(--muted); }
.carried.stale { color: var(--accent); font-weight: 500; }
.today-add { display: flex; gap: 8px; margin-top: 14px; }
.today-add input { background: var(--bg2); border-radius: 999px; padding: 11px 16px; }
.add-btn { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--btn); color: var(--btn-ink); font-size: 22px; text-align: center; line-height: 44px; }
.pick { justify-content: space-between; }
.pick-main { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; text-align: left; }
.pick-main .meta { margin-left: auto; padding-left: 8px; white-space: nowrap; }
.star { font-size: 20px; width: 36px; text-align: center; color: var(--faint); flex: none; }
.star.on { color: var(--accent); }
.stale-note { background: var(--soft); border-radius: 14px; padding: 12px 14px; font-size: 14.5px; margin: -4px 0 14px; }
.day-tasks { font-size: 13.5px; color: var(--muted); padding: 4px 0 2px; }
