/* Daybreak v2 — calm neo-brutalist. Tokens from The Ark brutalist system. */
:root {
  --paper: #F8F4E8;
  --paper-2: #FFFDF5;
  --ink: #09090B;
  --ink-2: #4A4740;
  --ink-3: #8C877C;
  --acid: #D2E823;
  --acid-soft: #EEF6B4;
  --red: #E8402A;
  --line: 3px solid var(--ink);
  --line-2: 2px solid var(--ink);
  --dash: 2px dashed rgba(9,9,11,.16);
  --sh-sm: 3px 3px 0 0 var(--ink);
  --sh: 5px 5px 0 0 var(--ink);
  --sh-lg: 8px 8px 0 0 var(--ink);
  --r: 14px;
  --r-sm: 8px;
  --sans: "Poppins", ui-sans-serif, system-ui, sans-serif;
  --em: "Ubuntu", "Poppins", ui-sans-serif, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background-color: var(--paper);
  background-image: radial-gradient(rgba(9,9,11,.10) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
  color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.5;
  min-height: 100vh; padding-bottom: 120px;
}
a { color: inherit; }
button { font-family: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.02em; }
[hidden] { display: none !important; }

/* ── top bar + nav ───────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  padding: 10px 24px; background: var(--paper-2); border-bottom: var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo { display: flex; }
.wordmark { font-weight: 800; font-size: 21px; letter-spacing: -0.03em; }
.tabs { display: flex; gap: 4px; justify-content: center; }
.tab {
  display: flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; font-size: 14px;
  padding: 8px 14px; border: 2px solid transparent; border-radius: 999px; color: var(--ink-2);
}
.tab:hover { border-color: var(--ink); color: var(--ink); }
.tab.on { background: var(--ink); color: var(--acid); border-color: var(--ink); }
.badge {
  font-family: var(--em); font-weight: 700; font-size: 11px; min-width: 18px; height: 18px; padding: 0 5px;
  display: inline-grid; place-items: center; border-radius: 999px; background: var(--acid); color: var(--ink); border: 2px solid var(--ink);
}
.tab.on .badge { border-color: var(--acid); }
.top-right { display: flex; align-items: center; gap: 10px; }
.stats { display: flex; gap: 6px; }
.stat {
  font-family: var(--em); font-weight: 700; font-size: 13px; display: flex; align-items: center; gap: 5px;
  padding: 3px 10px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper-2); white-space: nowrap;
}
.stat.hot { background: var(--acid); }
.stat.warn { background: var(--red); color: #fff; }
.gear { width: 36px; height: 36px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper-2); }
.gear:hover { background: var(--acid); }

.bottomnav { display: none; }

main { max-width: 1040px; margin: 0 auto; padding: 40px 24px; }

/* ── buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  font-weight: 700; font-size: 15px; padding: 11px 18px; background: var(--paper-2); border: var(--line); border-radius: var(--r-sm);
  box-shadow: var(--sh-sm); cursor: pointer; transition: transform .08s, box-shadow .08s; white-space: nowrap;
}
.btn:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 0 var(--ink); }
.btn:active { transform: translate(3px,3px); box-shadow: 0 0 0 0 var(--ink); }
.btn.primary { background: var(--acid); }
.btn.dark { background: var(--ink); color: var(--paper-2); }
.btn.lg { font-size: 18px; padding: 15px 28px; box-shadow: var(--sh); }
.btn.sm { font-size: 13px; padding: 5px 11px; border-width: 2px; box-shadow: 2px 2px 0 0 var(--ink); }
.btn.ghost { background: transparent; box-shadow: none; border-color: transparent; text-decoration: underline; text-underline-offset: 3px; }
.btn.ghost:hover { transform: none; box-shadow: none; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.added { background: var(--ink); color: var(--acid); box-shadow: none; pointer-events: none; }

.kicker { font-family: var(--em); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.muted { color: var(--ink-3); }
.hint { font-size: 13px; color: var(--ink-3); }
.tag {
  display: inline-flex; align-items: center; gap: 4px; font-family: var(--em); font-weight: 700; font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; padding: 1px 8px; border: 2px solid var(--ink); border-radius: 6px; background: var(--paper-2); white-space: nowrap;
}
.tag.acid { background: var(--acid); }
.tag.red { background: var(--red); color: #fff; }
.tag.ink { background: var(--ink); color: var(--paper-2); }
.hl { background: var(--acid); padding: 0 6px; border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.empty { color: var(--ink-3); font-size: 14px; padding: 4px 0; }

@keyframes pop { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* page heading */
.page-head { margin-bottom: 32px; }
.page-head .kicker { margin-bottom: 10px; color: var(--ink-2); }
.page-head h1 { font-size: clamp(30px, 4.6vw, 46px); font-weight: 800; }
.page-head p { margin: 10px 0 0; color: var(--ink-2); font-size: 16px; max-width: 620px; }

/* ── focus flows (check-in) ──────────────────────── */
.stepper { display: flex; gap: 8px; justify-content: center; margin-bottom: 28px; flex-wrap: wrap; }
.step { font-family: var(--em); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper-2); color: var(--ink-3); white-space: nowrap; }
.step.on { background: var(--ink); color: var(--acid); }
.step.done { color: var(--ink); background: var(--acid); }
.focus { max-width: 680px; margin: 0 auto; background: var(--paper-2); border: var(--line); border-radius: 18px; box-shadow: var(--sh-lg); padding: 40px; }
.focus h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 800; }
.focus .lede { font-size: 17px; color: var(--ink-2); margin: 12px 0 28px; }
.hero { text-align: center; }
.sun { width: 92px; height: 92px; margin: 0 auto 20px; border: var(--line); border-radius: 50%; background: var(--acid); box-shadow: var(--sh); display: grid; place-items: center; font-size: 42px; animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-4deg); } }
.hero-meta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 22px; color: var(--ink-2); font-size: 14px; }

.receipt-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 10px; border: var(--line-2); border-radius: var(--r-sm); background: var(--paper); }
.receipt-row .txt { flex: 1; font-weight: 500; }
.opts { display: flex; gap: 6px; }
.opt { font-family: var(--em); font-weight: 700; font-size: 12px; padding: 6px 10px; cursor: pointer; border: var(--line-2); border-radius: 6px; background: var(--paper-2); }
.opt.sel[data-v="done"] { background: var(--acid); }
.opt.sel[data-v="later"] { background: var(--ink); color: var(--paper-2); }
.opt.sel[data-v="drop"] { background: var(--red); color: #fff; }

.mic-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 4px 0 24px; }
.mic { width: 120px; height: 120px; border-radius: 50%; border: 4px solid var(--ink); background: var(--acid); box-shadow: var(--sh); cursor: pointer; display: grid; place-items: center; transition: transform .08s, box-shadow .08s; position: relative; }
.mic:active { transform: translate(4px,4px); box-shadow: 0 0 0 0 var(--ink); }
.mic.rec { background: var(--red); }
.mic.rec svg path, .mic.rec svg rect { fill: #fff; stroke: #fff; }
.mic.rec::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 3px solid var(--red); animation: ring 1.2s ease-out infinite; }
@keyframes ring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
.mic-label { font-family: var(--em); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 13px; }
.prompt-chip { display: inline-block; font-weight: 600; padding: 8px 14px; background: var(--ink); color: var(--acid); border-radius: 999px; font-size: 14px; transition: opacity .3s; text-align: center; }
textarea.dump { width: 100%; min-height: 170px; resize: vertical; font-family: var(--sans); font-size: 16px; line-height: 1.6; padding: 16px; border: var(--line); border-radius: var(--r-sm); background: var(--paper); color: var(--ink); }
textarea.dump:focus { outline: none; box-shadow: var(--sh-sm); background: #fff; }
.flow-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.wordcount { font-family: var(--em); font-weight: 700; font-size: 13px; }
.sorting { text-align: center; padding: 56px 24px; }
.bins { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.bin { animation: drop .5s ease-out both; font-size: 14px; padding: 6px 12px; }
@keyframes drop { from { transform: translateY(-24px) rotate(-6deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* routine preview */
.rhythm { margin-top: 24px; border: var(--line-2); border-radius: var(--r-sm); background: var(--paper); padding: 6px 16px; }
.rhythm-row { display: grid; grid-template-columns: 92px 32px 1fr; align-items: center; gap: 8px; padding: 10px 0; border-top: var(--dash); }
.rhythm-row:first-child { border-top: 0; }
.rhythm-row .time { font-family: var(--em); font-weight: 700; font-size: 13px; }
.rhythm-row .ico { font-size: 20px; text-align: center; }
.rhythm-row b { font-weight: 600; }

/* ── cards ───────────────────────────────────────── */
.card { background: var(--paper-2); border: var(--line); border-radius: var(--r); box-shadow: var(--sh); padding: 22px; }
/* entrance animation only when arriving on a page, not on every re-render */
main.enter .card, main.enter .now, main.enter .tile, main.enter .tl, main.enter .focus { animation: pop .3s ease-out both; }
.card-hd { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.card-hd .kicker { display: flex; align-items: center; gap: 8px; }

/* ── TODAY dashboard ─────────────────────────────── */
.today-head { margin-bottom: 28px; }
.today-head h1 { font-size: clamp(30px, 4.6vw, 46px); font-weight: 800; }
.today-head .kicker { color: var(--ink-2); margin-bottom: 10px; }
.promise-line { margin-top: 12px; font-size: 15px; color: var(--ink-2); max-width: 640px; }
.promise-line b { color: var(--ink); }

.now {
  background: var(--ink); color: var(--paper-2); border: var(--line); border-radius: 18px; padding: 28px;
  box-shadow: 8px 8px 0 0 var(--acid), 8px 8px 0 3px var(--ink); margin-bottom: 40px;
}
.now-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.now-pill { display: inline-flex; align-items: center; gap: 8px; font-family: var(--em); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); background: var(--acid); padding: 5px 12px; border-radius: 999px; }
.now-pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); border: 2px solid var(--ink); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.now-time { font-family: var(--em); font-weight: 500; color: var(--ink-3); font-size: 14px; }
.now .label { margin-top: 22px; font-family: var(--em); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--acid); }
.now .move { font-size: clamp(22px, 3.4vw, 32px); font-weight: 700; line-height: 1.2; margin: 6px 0 20px; letter-spacing: -0.01em; }
.now .btn { border-color: var(--paper-2); box-shadow: 3px 3px 0 0 var(--acid); }
.now .btn:not(.primary) { background: transparent; color: var(--paper-2); }
.now .btn.primary { border-color: var(--ink); color: var(--ink); }
.now .meta { margin-top: 16px; font-size: 14px; color: var(--ink-3); }
.now .meta a { color: var(--acid); font-weight: 600; }

.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 14px; }
.section-title h2 { font-size: 20px; font-weight: 700; }
.section-title a { font-size: 14px; font-weight: 600; }

.timeline { display: flex; gap: 10px; overflow-x: auto; padding: 4px 6px 10px 2px; margin-bottom: 40px; scrollbar-width: thin; }
.tl {
  flex: 1 0 128px; text-decoration: none; padding: 14px; border: var(--line-2); border-radius: var(--r-sm); background: var(--paper-2);
  display: flex; flex-direction: column; gap: 4px; box-shadow: 2px 2px 0 0 var(--ink); transition: transform .08s;
}
.tl:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 0 var(--ink); }
.tl .t { font-family: var(--em); font-weight: 700; font-size: 12px; color: var(--ink-2); }
.tl .ico { font-size: 22px; line-height: 1.2; }
.tl b { font-size: 14px; font-weight: 600; line-height: 1.25; }
.tl .n { font-size: 12px; color: var(--ink-3); }
.tl.past { opacity: .5; }
.tl.current { background: var(--acid); box-shadow: 4px 4px 0 0 var(--ink); border-width: 3px; }
.tl.current .n { color: var(--ink); font-weight: 600; }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile {
  text-decoration: none; display: flex; flex-direction: column; gap: 6px; padding: 18px; min-height: 150px;
  background: var(--paper-2); border: var(--line); border-radius: var(--r); box-shadow: var(--sh-sm); transition: transform .08s, box-shadow .08s;
}
.tile:hover { transform: translate(-2px,-2px); box-shadow: var(--sh); }
.tile .top { display: flex; justify-content: space-between; align-items: center; }
.tile .ico { font-size: 22px; }
.tile .big { font-family: var(--em); font-weight: 700; font-size: 32px; line-height: 1; margin-top: 6px; }
.tile .what { font-weight: 700; font-size: 15px; }
.tile .sub { font-size: 13px; color: var(--ink-2); line-height: 1.35; margin-top: auto; }
.tile .go { font-family: var(--em); font-weight: 700; font-size: 18px; }
.tile.hot { background: var(--acid); }

/* ── PLAN lanes ──────────────────────────────────── */
.lanes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.lane.now-lane { box-shadow: 6px 6px 0 0 var(--acid), 6px 6px 0 3px var(--ink); }
.lane-hd { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.lane-ico { width: 44px; height: 44px; flex: 0 0 auto; border: var(--line-2); border-radius: 12px; background: var(--acid); display: grid; place-items: center; font-size: 22px; }
.lane-hd h3 { font-size: 19px; font-weight: 700; }
.lane-hd .when { font-family: var(--em); font-size: 12px; color: var(--ink-3); font-weight: 500; }
.lane-hd .right { margin-left: auto; }
.task { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: var(--dash); }
.task:first-child { border-top: 0; padding-top: 2px; }
.task .body { flex: 1; min-width: 0; }
.task .title { font-weight: 600; line-height: 1.35; }
.task .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; align-items: center; }
.task.done .title { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--ink-3); }
.check { width: 28px; height: 28px; flex: 0 0 auto; border: 3px solid var(--ink); border-radius: 7px; background: var(--paper); cursor: pointer; display: grid; place-items: center; margin-top: 1px; padding: 0; }
.check:hover { background: var(--acid-soft); }
.task.done .check { background: var(--ink); }
.more-link { margin-top: 8px; background: none; border: 0; font-weight: 600; font-size: 14px; cursor: pointer; padding: 6px 0; text-decoration: underline; text-underline-offset: 3px; }
.lane-empty { font-size: 14px; color: var(--ink-2); padding: 10px 12px; border: 2px dashed rgba(9,9,11,.25); border-radius: var(--r-sm); }

/* menu */
.more { position: relative; flex: 0 0 auto; }
.more-btn { border: 0; background: transparent; cursor: pointer; font-size: 20px; line-height: 1; padding: 2px 6px; border-radius: 6px; font-weight: 700; }
.more-btn:hover { background: rgba(9,9,11,.08); }
.menu { position: absolute; right: 0; top: 28px; z-index: 30; min-width: 200px; max-height: 340px; overflow: auto; background: var(--paper-2); border: var(--line); border-radius: var(--r-sm); box-shadow: var(--sh-sm); padding: 6px; }
.menu .mh { font-family: var(--em); font-weight: 700; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding: 8px 8px 2px; }
.menu button { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 6px 8px; border-radius: 6px; cursor: pointer; font-size: 14px; }
.menu button:hover { background: var(--acid); }
.menu button.danger:hover { background: var(--red); color: #fff; }

/* ── COACH ───────────────────────────────────────── */
.stack { display: flex; flex-direction: column; gap: 24px; }
.coach .noticed { font-family: var(--em); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.coach h2 { font-size: 24px; font-weight: 800; margin: 8px 0 10px; }
.quote { font-size: 14px; color: var(--ink-2); font-style: italic; border-left: 4px solid var(--acid); padding: 2px 0 2px 12px; margin-bottom: 12px; }
.read { font-size: 15px; margin: 0 0 18px; }
.size-q { font-weight: 700; margin-bottom: 8px; }
.sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.size { text-align: left; padding: 10px 12px; border: var(--line-2); border-radius: var(--r-sm); background: var(--paper); cursor: pointer; font-size: 13px; color: var(--ink-2); }
.size b { display: block; font-size: 15px; color: var(--ink); }
.size:hover { background: var(--acid-soft); }
.size.sel { background: var(--ink); color: var(--ink-3); }
.size.sel b { color: var(--acid); }
.recs { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.rec { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: var(--line-2); border-radius: var(--r-sm); background: var(--paper); animation: pop .25s ease-out both; }
.rec .n { font-family: var(--em); font-weight: 700; width: 26px; height: 26px; flex: 0 0 auto; border-radius: 50%; background: var(--acid); border: 2px solid var(--ink); display: grid; place-items: center; font-size: 12px; }
.rec .lbl { flex: 1; font-weight: 600; font-size: 14px; line-height: 1.35; }
.let-go { margin-top: 14px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--acid-soft); border: var(--line-2); font-size: 14px; }
details.deeper { margin-top: 16px; }
details.deeper summary { cursor: pointer; font-weight: 700; font-size: 14px; list-style: none; display: inline-flex; gap: 6px; align-items: center; }
details.deeper summary::-webkit-details-marker { display: none; }
details.deeper summary::after { content: "↓"; font-family: var(--em); }
details.deeper[open] summary::after { content: "↑"; }
details.deeper ol { margin: 12px 0 0; padding-left: 22px; }
details.deeper li { margin-bottom: 8px; font-size: 14px; }
.coach-foot { display: flex; justify-content: flex-end; margin-top: 18px; padding-top: 14px; border-top: var(--dash); }

.door { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.door button { text-align: left; padding: 12px; border: var(--line-2); border-radius: var(--r-sm); background: var(--paper); cursor: pointer; font-size: 13px; }
.door button b { display: block; font-size: 15px; }
.door button:hover { background: var(--acid-soft); }
.verdict { padding: 12px 14px; border-radius: var(--r-sm); background: var(--acid-soft); border: var(--line-2); font-size: 14px; }

.journal textarea { width: 100%; min-height: 130px; resize: vertical; font-family: var(--sans); font-size: 15px; line-height: 1.6; padding: 14px; border: var(--line-2); border-radius: var(--r-sm); background: var(--paper); }
.journal textarea:focus { outline: none; background: #fff; box-shadow: var(--sh-sm); }
.jprompt { font-size: 18px; font-weight: 700; line-height: 1.3; margin-bottom: 12px; }
.entry { padding: 12px 0; border-top: var(--dash); font-size: 14px; }
.entry .when { font-family: var(--em); font-size: 12px; color: var(--ink-3); font-weight: 700; }

/* ── GOALS ───────────────────────────────────────── */
.goal-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 36px; }
.gsum { padding: 16px 18px; border: var(--line); border-radius: var(--r); background: var(--paper-2); box-shadow: var(--sh-sm); }
.gsum .big { font-family: var(--em); font-weight: 700; font-size: 34px; line-height: 1; }
.gsum .lbl { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.gsum.acid { background: var(--acid); }
.gsum.red .big { color: var(--red); }
.term { margin-bottom: 40px; }
.term-hd { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.term-hd h2 { font-size: 22px; font-weight: 800; }
.goal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.goal-card .title { font-size: 18px; font-weight: 700; line-height: 1.3; }
.goal-card .due { font-family: var(--em); font-size: 13px; color: var(--ink-2); margin-top: 6px; font-weight: 500; }
.prog { display: flex; align-items: center; gap: 12px; margin: 16px 0 6px; }
.bar { flex: 1; height: 16px; border: var(--line-2); border-radius: 999px; background: var(--paper); overflow: hidden; position: relative; }
.bar > span { display: block; height: 100%; background: var(--acid); border-right: 2px solid var(--ink); transition: width .4s; }
.bar > i { position: absolute; top: 0; bottom: 0; width: 3px; background: var(--red); }
.pct { font-family: var(--em); font-weight: 700; font-size: 18px; min-width: 48px; text-align: right; }
.pace { font-size: 12px; color: var(--ink-3); }
.ms { margin-top: 14px; }
.ms-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; }
.ms-row .check { width: 22px; height: 22px; border-width: 2px; border-radius: 5px; }
.ms-row.done span { text-decoration: line-through; color: var(--ink-3); }
.ms-row.done .check { background: var(--ink); }
.ms-row.next span { font-weight: 700; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.chip { font-family: var(--em); font-weight: 700; font-size: 12px; padding: 5px 10px; border: var(--line-2); border-radius: 999px; background: var(--paper); cursor: pointer; }
.chip:hover { background: var(--acid); }

/* ── IDEAS ───────────────────────────────────────── */
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 36px; }
.slot { padding: 18px; border: 3px dashed var(--ink); border-radius: var(--r); font-size: 14px; color: var(--ink-2); }
.slot.filled { border-style: solid; background: var(--acid); color: var(--ink); box-shadow: var(--sh); }
.slot b { display: block; font-size: 18px; margin: 4px 0; color: var(--ink); line-height: 1.3; }
.idea-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.idea .title { font-weight: 700; font-size: 17px; line-height: 1.3; margin: 10px 0 6px; }
.idea .spark { font-size: 13px; color: var(--ink-2); font-style: italic; }
.heat { font-family: var(--em); font-weight: 700; font-size: 12px; }

.settings-grid { display: grid; gap: 24px; max-width: 680px; }

/* fab */
.fab { position: fixed; right: 24px; bottom: 28px; z-index: 25; display: flex; align-items: center; gap: 8px; padding: 13px 20px; font-weight: 800; font-size: 16px; background: var(--acid); border: var(--line); border-radius: 999px; box-shadow: var(--sh); cursor: pointer; transition: transform .08s, box-shadow .08s; }
.fab:active { transform: translate(4px,4px); box-shadow: 0 0 0 0 var(--ink); }

/* modal */
.modal { position: fixed; inset: 0; z-index: 40; background: rgba(9,9,11,.45); display: grid; place-items: center; padding: 16px; }
.modal-card { position: relative; width: min(560px, 100%); max-height: 90vh; overflow: auto; background: var(--paper-2); border: var(--line); border-radius: 18px; box-shadow: var(--sh-lg); padding: 28px; animation: pop .2s ease-out; }
.modal-card h2 { font-size: 24px; font-weight: 800; margin: 6px 40px 8px 0; }
.modal-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: var(--line-2); border-radius: 8px; background: var(--paper); font-size: 22px; cursor: pointer; line-height: 1; }
.draft { white-space: pre-wrap; font-size: 15px; background: var(--paper); border: var(--line-2); border-radius: var(--r-sm); padding: 14px; margin: 12px 0 16px; }
.draft:focus { outline: none; background: #fff; }

.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 50; background: var(--ink); color: var(--acid); font-weight: 700; padding: 11px 20px; border-radius: 999px; border: 3px solid var(--ink); box-shadow: 4px 4px 0 0 var(--acid); animation: pop .2s ease-out; max-width: calc(100vw - 32px); text-align: center; }

/* ── responsive ──────────────────────────────────── */
@media (max-width: 960px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .topbar { grid-template-columns: auto 1fr; }
  .tabs { display: none; }
  .top-right { justify-self: end; }
  .bottomnav {
    display: grid; grid-template-columns: repeat(6, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 22;
    background: var(--paper-2); border-top: var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; font-size: 10.5px; font-weight: 600; padding: 6px 2px; border-radius: 10px; position: relative; }
  .bottomnav a .i { font-size: 20px; line-height: 1; }
  .bottomnav a.on { background: var(--ink); color: var(--acid); }
  .bottomnav .badge { position: absolute; top: 0; right: 18%; height: 16px; min-width: 16px; font-size: 10px; }
  .fab { bottom: 92px; }
  .toast { bottom: 156px; }
  body { padding-bottom: 160px; }
  .lanes, .goal-grid, .idea-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  main { padding: 24px 16px; }
  .topbar { padding: 10px 16px; }
  .wordmark { font-size: 19px; }
  .stat .lbl { display: none; }
  .focus { padding: 24px 20px; box-shadow: var(--sh); }
  .receipt-row { flex-direction: column; align-items: stretch; }
  .door, .sizes, .slots, .goal-summary { grid-template-columns: 1fr; }
  .fab span { display: none; }
  .fab { padding: 14px; right: 16px; }
  .now { padding: 22px; }
  .step { font-size: 10px; padding: 5px 8px; letter-spacing: .06em; }
  .tiles { gap: 12px; }
  .tile { min-height: 132px; padding: 14px; }
}

/* ── v3: task details, events, upcoming ──────────── */
.linkish { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.task .title.linkish { font-weight: 600; line-height: 1.35; display: block; width: 100%; }
.task .title.linkish:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.task .meta .btn.ghost { padding: 0 4px; font-size: 12px; }
.waiting { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; font-size: 14px; }

.modal-card.wide { width: min(680px, 100%); }
.title-input { resize: none; overflow: hidden; field-sizing: content; width: 100%; font-family: var(--sans); font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; border: 0; border-bottom: 2px dashed transparent; background: transparent; padding: 4px 0; margin: 6px 0 12px; color: var(--ink); }
.title-input:hover, .title-input:focus { border-bottom-color: var(--ink-3); outline: none; }
.m-sec { margin-top: 22px; }
.m-hd { font-family: var(--em); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; display: flex; gap: 8px; align-items: baseline; }
.m-hd .hint { letter-spacing: 0; text-transform: none; font-size: 12px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; }
.fact { font-size: 13px; font-weight: 500; padding: 5px 10px; border: var(--line-2); border-radius: 999px; background: var(--paper); }
.sugg .rec { padding: 9px 12px; margin-bottom: 8px; }
.sugg .rec .n { background: var(--paper-2); }
.add-row { display: flex; gap: 8px; margin-top: 8px; }
.add-row input, .qa input { flex: 1; min-width: 0; font-family: var(--sans); font-size: 14px; padding: 8px 12px; border: var(--line-2); border-radius: var(--r-sm); background: var(--paper); }
.add-row input:focus, .qa input:focus, .notes:focus, .date-input:focus { outline: none; background: #fff; box-shadow: var(--sh-sm); }
.x { margin-left: auto; border: 0; background: transparent; font-size: 18px; line-height: 1; cursor: pointer; color: var(--ink-3); padding: 2px 6px; border-radius: 6px; }
.x:hover { background: var(--red); color: #fff; }
.notes { width: 100%; min-height: 90px; resize: vertical; font-family: var(--sans); font-size: 14px; line-height: 1.55; padding: 12px; border: var(--line-2); border-radius: var(--r-sm); background: var(--paper); }
.date-input { font-family: var(--em); font-weight: 700; font-size: 13px; padding: 7px 10px; border: var(--line-2); border-radius: var(--r-sm); background: var(--paper); color: var(--ink); }
.m-foot { margin-top: 24px; padding-top: 16px; border-top: var(--dash); }
.qa { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-weight: 600; font-size: 14px; }
.ev-when { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.big-date { font-weight: 700; font-size: 16px; }
.ev-when .date-input { margin-left: auto; }
.when-tag { margin-left: auto; font-family: var(--em); font-size: 12px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }

.chips.range { margin: -8px 0 28px; gap: 8px; }
.chips.range .chip { font-size: 13px; padding: 7px 14px; }
.chip.on { background: var(--ink); color: var(--acid); }
.up-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.up-grid aside { position: sticky; top: 84px; }
.up-list { display: flex; flex-direction: column; gap: 12px; }
.group-hd { font-family: var(--em); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin: 14px 0 0; }
.group-hd:first-child { margin-top: 0; }
.ev-row {
  display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer;
  padding: 14px 16px; background: var(--paper-2); border: var(--line); border-radius: var(--r); box-shadow: var(--sh-sm); transition: transform .08s, box-shadow .08s;
}
button.ev-row:hover { transform: translate(-2px,-2px); box-shadow: var(--sh); }
.ev-row.deadline { cursor: default; border-width: 2px; box-shadow: none; background: var(--paper); }
.ev-date { flex: 0 0 auto; width: 58px; height: 62px; border: var(--line-2); border-radius: 10px; background: var(--paper); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.ev-date b { font-family: var(--em); font-size: 24px; }
.ev-date span { font-family: var(--em); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; margin-top: 4px; }
.ev-row.big .ev-date { background: var(--acid); border-width: 3px; }
.ev-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ev-title { font-weight: 700; font-size: 16px; line-height: 1.3; }
.ev-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.ev-next { font-size: 13px; color: var(--ink-2); }
.ev-row .go { font-family: var(--em); font-weight: 700; font-size: 18px; }

.cal .card-hd { margin-bottom: 12px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { font-family: var(--em); font-weight: 700; font-size: 11px; text-align: center; color: var(--ink-3); padding-bottom: 4px; }
.cal-cell { aspect-ratio: 1; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--em); font-size: 13px; font-weight: 500; position: relative; border: 2px solid transparent; background: transparent; padding: 0; color: var(--ink); }
.cal-cell.past { color: var(--ink-3); }
.cal-cell.today { border-color: var(--ink); font-weight: 700; }
.cal-cell.has-ev { background: var(--acid); border-color: var(--ink); cursor: pointer; font-weight: 700; }
.cal-cell.has-ev:hover { box-shadow: 2px 2px 0 0 var(--ink); }
.cal-cell i { font-style: normal; font-size: 11px; line-height: 1; }
.cal-cell em { width: 5px; height: 5px; border-radius: 50%; background: var(--ink); margin-top: 2px; }
.cal-legend { margin-top: 14px; padding-top: 12px; border-top: var(--dash); display: flex; flex-direction: column; gap: 4px; }
.cal-item { display: flex; gap: 8px; align-items: center; text-align: left; font: inherit; font-size: 14px; background: none; border: 0; padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.cal-item:hover { background: var(--acid-soft); }
.cal-item b { font-family: var(--em); min-width: 22px; }

@media (max-width: 860px) {
  .up-grid { grid-template-columns: 1fr; }
  .up-grid aside { position: static; order: -1; }
}
@media (max-width: 560px) {
  .title-input { font-size: 20px; }
  .ev-row { gap: 12px; padding: 12px; }
  .ev-date { width: 50px; height: 56px; }
  .ev-when .date-input { margin-left: 0; }
}

/* ── v4: people, sharing, activity, notifications ── */
.bell { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper-2); cursor: pointer; font-size: 17px; padding: 0; }
.bell:hover { background: var(--acid); }
.bell .badge { position: absolute; top: -8px; right: -8px; background: var(--red); color: #fff; }
.me-btn { display: flex; text-decoration: none; border-radius: 50%; }
.me-btn:hover .av { background: var(--ink); color: var(--acid); }
.av { width: 32px; height: 32px; flex: 0 0 auto; border-radius: 50%; border: 2px solid var(--ink); background: var(--acid); display: inline-grid; place-items: center; font-family: var(--em); font-weight: 700; font-size: 12px; color: var(--ink); }
.av.sm { width: 24px; height: 24px; font-size: 10px; }
.av.lg { width: 44px; height: 44px; font-size: 16px; }
.av.ghost { background: var(--paper); border-style: dashed; }

.invite { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 18px; margin-bottom: 28px; background: var(--acid); border: var(--line); border-radius: var(--r); box-shadow: var(--sh); }
.invite .body { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 2px; }
.invite .hint { color: var(--ink-2); }

.people { display: flex; flex-wrap: wrap; gap: 8px; }
.person { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border: var(--line-2); border-radius: 999px; background: var(--paper); font-size: 14px; font-weight: 600; }
.person .av { width: 26px; height: 26px; font-size: 10px; }
.person.pending { border-style: dashed; }
.person .x { margin-left: 0; }

.ms-row.prep { gap: 10px; }
.prep-title { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; }
.prep-title:hover span:first-child { text-decoration: underline; text-underline-offset: 3px; }
.ms-row.prep.done .prep-title span:first-child { text-decoration: line-through; color: var(--ink-3); }
.prep-title .hint { font-size: 12px; }
.cmt { font-family: var(--em); font-weight: 700; font-size: 12px; padding: 1px 8px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper-2); white-space: nowrap; }
.cmt.unread { background: var(--red); color: #fff; }

.composer { display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { flex: 1; min-height: 46px; resize: vertical; font-family: var(--sans); font-size: 14px; line-height: 1.5; padding: 10px 12px; border: var(--line-2); border-radius: var(--r-sm); background: var(--paper); }
.composer textarea:focus { outline: none; background: #fff; box-shadow: var(--sh-sm); }
.thread { margin-top: 14px; display: flex; flex-direction: column; }
.act { display: flex; gap: 10px; padding: 9px 0; border-top: var(--dash); }
.act:first-child { border-top: 0; }
.act .av { width: 26px; height: 26px; font-size: 10px; }
.act .body { flex: 1; min-width: 0; }
.act .meta { font-size: 13px; color: var(--ink-2); }
.act .meta b { color: var(--ink); }
.act.is-note .note-text { margin-top: 4px; }
.act.unread { background: linear-gradient(90deg, var(--acid-soft), transparent); border-radius: 8px; padding-left: 6px; }
.note-text { white-space: pre-wrap; font-size: 14px; background: var(--paper); border: 2px solid var(--ink); border-radius: 4px 12px 12px 12px; padding: 8px 12px; }
.done-banner { padding: 10px 14px; border-radius: var(--r-sm); background: var(--ink); color: var(--acid); font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.back { border: 0; background: none; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; padding: 0; margin-bottom: 10px; text-decoration: underline; text-underline-offset: 3px; }

.notifs { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.notif { display: flex; gap: 12px; align-items: flex-start; text-align: left; font: inherit; font-size: 14px; padding: 10px 12px; border: 2px solid rgba(9,9,11,.15); border-radius: var(--r-sm); background: var(--paper); cursor: pointer; }
.notif:hover { border-color: var(--ink); }
.notif.unread { border-color: var(--ink); background: var(--acid-soft); box-shadow: 2px 2px 0 0 var(--ink); }
.notif .body { display: flex; flex-direction: column; gap: 2px; }

.acct-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: var(--dash); }
.acct-row:first-of-type { border-top: 0; }
.acct-row .body { flex: 1; display: flex; flex-direction: column; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-grid label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 13px; }
.form-grid input { font-family: var(--sans); font-size: 14px; padding: 8px 12px; border: var(--line-2); border-radius: var(--r-sm); background: var(--paper); }
.form-grid input:focus { outline: none; background: #fff; box-shadow: var(--sh-sm); }
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .stats .stat:last-child { display: none; }
  .composer { flex-direction: column; align-items: stretch; }
  .add-row { flex-wrap: wrap; }
  .add-row input { flex: 1 1 140px; max-width: none !important; }
}
.ms-row.prep.done span { text-decoration: none; color: inherit; }
.ms-row.prep.done .prep-title span:first-child { text-decoration: line-through; color: var(--ink-3); }
.ms-row.prep.done .prep-title .hint, .ms-row.prep.done .when-tag { color: var(--ink-3); }

/* ── v5: reminders & notification settings ───────── */
.reminders { position: fixed; right: 24px; bottom: 96px; z-index: 45; display: flex; flex-direction: column; gap: 12px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.rem {
  pointer-events: auto; background: var(--ink); color: var(--paper-2); border: 3px solid var(--ink); border-radius: 18px; padding: 16px 18px 16px;
  box-shadow: 6px 6px 0 0 var(--acid), 6px 6px 0 3px var(--ink); animation: remIn .45s cubic-bezier(.2,1.4,.4,1) both; position: relative; overflow: hidden;
}
.rem::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--acid); }
.rem.rem-due::before, .rem.rem-event::before { background: var(--red); }
@keyframes remIn { from { transform: translate(40px, 10px) rotate(3deg); opacity: 0; } to { transform: none; opacity: 1; } }
.rem-top { display: flex; align-items: center; gap: 10px; }
.rem-ico { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px; background: var(--acid); border: 2px solid var(--paper-2); display: grid; place-items: center; font-size: 18px; }
.rem-kicker { font-family: var(--em); font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--acid); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rem-x { border: 0; background: transparent; color: var(--ink-3); font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px; }
.rem-x:hover { color: var(--paper-2); }
.rem-title { font-size: 18px; font-weight: 700; line-height: 1.3; margin: 10px 0 4px; letter-spacing: -0.01em; }
.rem-body { font-size: 13px; color: var(--ink-3); }
.rem-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.rem-actions .btn { border-color: var(--paper-2); box-shadow: 2px 2px 0 0 var(--acid); }
.rem-actions .btn:not(.primary) { background: transparent; color: var(--paper-2); }
.rem-actions .btn.primary { border-color: var(--ink); color: var(--ink); }

.switch { position: relative; flex: 0 0 auto; width: 48px; height: 28px; border-radius: 999px; border: 2.5px solid var(--ink); background: var(--paper); cursor: pointer; padding: 0; transition: background .15s; }
.switch i { position: absolute; top: 2px; left: 2px; width: 19px; height: 19px; border-radius: 50%; background: var(--ink); transition: transform .18s cubic-bezier(.2,1.4,.4,1); }
.switch.on { background: var(--acid); }
.switch.on i { transform: translateX(20px); }
.switch.big { width: 62px; height: 34px; box-shadow: 2px 2px 0 0 var(--ink); }
.switch.big i { width: 25px; height: 25px; }
.switch.big.on i { transform: translateX(28px); }
.switch[disabled] { opacity: .4; cursor: not-allowed; }
.nrow { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-top: var(--dash); }
.nrow .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nrow.master { border-top: 0; padding-top: 0; margin-bottom: 4px; }
.nrow .inline { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; margin-top: 6px; color: var(--ink-2); }
.ntypes.off { opacity: .55; }
.notify-prompt { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 18px; margin-bottom: 24px; background: var(--paper-2); border: var(--line); border-radius: var(--r); box-shadow: var(--sh); }
.np-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--acid); border: var(--line-2); display: grid; place-items: center; font-size: 22px; animation: ring-bell 2.4s ease-in-out infinite; transform-origin: 50% 10%; }
@keyframes ring-bell { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(14deg); } 80% { transform: rotate(-12deg); } 85% { transform: rotate(8deg); } 90% { transform: rotate(-4deg); } }
.notify-prompt .body { flex: 1; min-width: 220px; display: flex; flex-direction: column; font-size: 14px; color: var(--ink-2); }
.notify-prompt .body b { color: var(--ink); font-size: 16px; }
@media (max-width: 820px) { .reminders { bottom: 160px; right: 16px; } }
@media (prefers-reduced-motion: reduce) { .rem, .np-ico { animation: none; } }
/* toasts sit at the top so they never cover reminder cards */
.toast { top: 84px; bottom: auto !important; }
.checklist { margin-top: 16px; padding: 14px 16px; border: var(--line-2); border-radius: var(--r-sm); background: var(--paper); }
.ck { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 14px; }
.ck > div { display: flex; flex-direction: column; }
.ck-i { width: 22px; height: 22px; flex: 0 0 auto; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 12px; }
.ck.ok .ck-i { background: var(--acid); }
.ck.bad .ck-i { background: var(--red); color: #fff; }
.ck.info .ck-i { background: var(--paper-2); }

/* ── v6: AI agents ────────────────────────────────── */
.thinking { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 14px 16px; border: var(--line-2); border-radius: var(--r-sm); background: var(--acid-soft); font-weight: 600; font-size: 14px; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); animation: dot 1s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { transform: scale(.5); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }
.tag.persona { background: var(--paper); letter-spacing: .04em; }
.coach.ai { border-color: var(--ink); }
.safety { margin: 0 0 14px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--paper); border: var(--line-2); border-left: 6px solid var(--red); font-size: 14px; font-weight: 500; }
.followup { margin-top: 12px; padding: 8px 12px; border: 2px dashed rgba(9,9,11,.25); border-radius: var(--r-sm); color: var(--ink-2); }
.agents { display: flex; flex-direction: column; gap: 4px; }
.agent { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: var(--dash); }
.agent:first-child { border-top: 0; padding-top: 0; }
.agent > div { flex: 1; display: flex; flex-direction: column; }
.agent-ico { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 10px; border: var(--line-2); background: var(--acid); display: grid; place-items: center; font-size: 18px; }
.personas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.persona-opt { text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 14px; border: var(--line-2); border-radius: var(--r-sm); background: var(--paper); cursor: pointer; font-size: 13px; color: var(--ink-2); }
.persona-opt b { font-size: 15px; color: var(--ink); }
.persona-opt .pi { font-size: 22px; margin-bottom: 4px; }
.persona-opt:hover { background: var(--acid-soft); }
.persona-opt.on { background: var(--acid); box-shadow: var(--sh-sm); color: var(--ink); }
.mem-top { margin-bottom: 24px; }
.mem-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.fact-row { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-top: var(--dash); font-size: 14px; }
.fact-row:first-of-type { border-top: 0; }
.fact-row .txt { flex: 1; min-width: 0; }
.fact-row .when { font-family: var(--em); font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.fact-row .x { margin-left: 0; }
.fact-edit { flex: 1; font-family: var(--sans); font-size: 14px; padding: 6px 10px; border: var(--line-2); border-radius: var(--r-sm); }
.page-head .kicker a { text-decoration: none; border-bottom: 2px solid var(--acid); }
.pq { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; margin-bottom: 24px; background: var(--acid-soft); border: var(--line); border-radius: var(--r); box-shadow: var(--sh-sm); }
.pq-ico { font-size: 26px; }
.pq .body { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
@media (max-width: 820px) { .mem-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .personas { grid-template-columns: 1fr; } }

/* ── v7: Phase B (Planner, Goal Strategist, Nudge) ─ */
.planner { margin-bottom: 28px; }
.cap-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cap-meter { display: flex; gap: 6px; flex-wrap: wrap; }
.cap-meter i { width: 22px; height: 22px; border-radius: 6px; border: 2px dashed rgba(9,9,11,.3); }
.cap-meter i.on { border: 2px solid var(--ink); background: var(--paper-2); }
.cap-meter i.done { border: 2px solid var(--ink); background: var(--acid); }
.cap-meter i.over { border: 2px solid var(--red); background: var(--red-soft, #FBDCD6); }
.cap-txt { display: flex; flex-direction: column; font-size: 14px; }
.let-go.warn { border-left: 6px solid var(--red); }
.stuck { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; padding: 12px 14px; border: var(--line-2); border-radius: var(--r-sm); background: var(--paper); }
.stuck > div:first-child { display: flex; flex-direction: column; min-width: 200px; flex: 1; }
.why { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.why::before { content: "↳ "; color: var(--ink-3); }
.strategy { margin-top: 16px; padding: 14px; border: var(--line-2); border-radius: var(--r-sm); background: var(--paper); display: flex; flex-direction: column; gap: 10px; }
.strategy p { margin: 0; font-size: 14px; }
.strategy .kicker { font-size: 11px; }
.week-step { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 10px 12px; border-radius: var(--r-sm); background: var(--acid-soft); border: 2px solid var(--ink); }
.week-step span { display: flex; flex-direction: column; font-weight: 600; font-size: 14px; }
.week-step small { font-family: var(--em); font-weight: 700; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.quiet-q { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; border-top: var(--dash); font-size: 14px; }

/* ── v8: Phase C (Creator, Concierge, Comms, Mirror) ─ */
.pack { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding: 12px 14px; border: var(--line-2); border-radius: var(--r-sm); background: var(--paper); font-size: 14px; }
.pack.ready { background: var(--acid-soft); }
.pack > span { display: flex; align-items: center; gap: 8px; }
.outline { margin: 0; padding-left: 20px; font-size: 14px; }
.outline > li { margin-bottom: 8px; }
.outline ul { margin: 4px 0 0; padding-left: 18px; color: var(--ink-2); }
.src { display: flex; flex-direction: column; padding: 8px 0; border-top: var(--dash); font-size: 14px; }
.src:first-of-type { border-top: 0; }
.src a { font-weight: 600; }
.send-call { margin: 12px 0 0; padding: 10px 12px; border-radius: var(--r-sm); border: var(--line-2); font-size: 14px; }
.send-call.yes { background: var(--acid-soft); }
.send-call.no { background: var(--paper); border-style: dashed; }
.feed { display: flex; flex-direction: column; gap: 10px; margin-bottom: 40px; }
.feed-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--paper-2); border: var(--line-2); border-radius: var(--r); box-shadow: 2px 2px 0 0 var(--ink); }
.feed-item.new { border-width: 3px; box-shadow: 4px 4px 0 0 var(--acid), 4px 4px 0 3px var(--ink); }
.feed-item .fi { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 12px; border: var(--line-2); background: var(--acid); display: grid; place-items: center; font-size: 20px; }
.feed-item .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.feed-item .body b { font-size: 15px; }
.feed-item.new .body b::after { content: " · new"; font-family: var(--em); font-size: 11px; color: var(--red); letter-spacing: .06em; text-transform: uppercase; }
.mirror-letter { display: flex; gap: 16px; align-items: flex-start; background: var(--ink); color: var(--paper-2); margin-bottom: 24px; }
.mirror-letter .pi { font-size: 30px; }
.mirror-letter p { margin: 0; font-size: 18px; line-height: 1.5; font-weight: 500; }
.mirror-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.pattern { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: var(--dash); font-size: 14px; }
.pattern:first-of-type { border-top: 0; padding-top: 0; }
.acid-card { background: var(--acid); }
.acid-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.acid-card p { margin: 0 0 14px; font-size: 14px; }
@media (max-width: 820px) { .mirror-grid { grid-template-columns: 1fr; } }

/* ── v9: your own tasks, scheduling & times ──────── */
.lane-add-btn { margin-top: 10px; width: 100%; text-align: left; padding: 9px 12px; border: 2px dashed rgba(9,9,11,.3); border-radius: var(--r-sm); background: transparent; font-weight: 600; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.lane-add-btn:hover { border-color: var(--ink); color: var(--ink); background: var(--acid-soft); }
.lane-add { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; padding: 10px; border: var(--line-2); border-radius: var(--r-sm); background: var(--paper); }
.lane-add input:not([type=time]) { flex: 1 1 180px; min-width: 0; font-family: var(--sans); font-size: 14px; padding: 8px 12px; border: var(--line-2); border-radius: var(--r-sm); background: #fff; }
.when-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.when-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; font-family: var(--em); letter-spacing: .04em; color: var(--ink-2); }
.when-grid .date-input { width: 100%; }
.when .chips { margin-top: 10px; }
.ev-inputs { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.ev-when .ev-inputs .date-input { margin-left: 0; }
select.date-input[disabled] { opacity: .5; }
@media (max-width: 560px) { .when-grid { grid-template-columns: 1fr 1fr; } .ev-inputs { margin-left: 0; } }

/* ── v10: Spark quick capture ─────────────────────── */
.spark-modes { margin: 0 0 14px; }
.spark-lane { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.spark-input { display: flex; gap: 12px; align-items: flex-start; }
.spark-input .mic { width: 56px; height: 56px; flex: 0 0 auto; border-width: 3px; box-shadow: var(--sh-sm); }
.spark-input .mic.rec::after { inset: -8px; }
.spark-input textarea.dump { min-height: 110px; flex: 1; }
.spark-result { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 4px; }
.sr-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border: var(--line-2); border-radius: var(--r-sm); background: var(--paper); animation: pop .25s ease-out both; }
.sr-row .body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; flex: 1; min-width: 200px; }
.sr-row .body b { font-size: 15px; line-height: 1.3; }
.mic-err { display: block; text-transform: none; letter-spacing: 0; font-family: var(--sans); font-weight: 500; font-size: 13px; line-height: 1.45; color: var(--ink); background: var(--red-soft, #FBDCD6); border: 2px solid var(--red); border-radius: var(--r-sm); padding: 8px 10px; max-width: 520px; text-align: left; }
.mic-note { max-width: 440px; text-align: center; }

/* ── v11: living rhythm & days off ───────────────── */
.rhythm-row { grid-template-columns: 92px 32px 1fr auto; }
.rdays { display: flex; gap: 3px; flex-wrap: wrap; justify-content: flex-end; }
.rday { width: 28px; height: 26px; padding: 0; border: 2px solid rgba(9,9,11,.25); border-radius: 6px; background: transparent; font-family: var(--em); font-weight: 700; font-size: 11px; color: var(--ink-3); cursor: pointer; }
.rday.on { background: var(--acid); border-color: var(--ink); color: var(--ink); }
.rday:hover { border-color: var(--ink); }
.dayoff-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin: -12px 0 24px; border: var(--line-2); border-radius: var(--r-sm); background: var(--paper-2); font-size: 14px; }
.adjust { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; margin-bottom: 24px; background: var(--paper-2); border: var(--line); border-radius: var(--r); box-shadow: var(--sh-sm); }
.adjust .body { flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.adjust .body b { font-size: 15px; margin-bottom: 2px; }
.adjust .row { margin-top: 8px; }
.adjust-list { margin: 12px 0 4px; padding: 12px 14px; border: var(--line-2); border-radius: var(--r-sm); background: var(--acid-soft); }
.off-ico { width: 36px; height: 36px; display: grid; place-items: center; border: var(--line-2); border-radius: 10px; background: var(--acid); font-size: 18px; }
.off-lanes { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-weight: 600; font-size: 13px; grid-column: 1 / -1; }
.chk { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; cursor: pointer; }
.chk input { width: auto !important; padding: 0 !important; accent-color: #09090B; }
.cal-cell.off { background: repeating-linear-gradient(135deg, var(--acid-soft) 0 5px, transparent 5px 10px); }
.off-row .ev-date b { font-size: 20px; }
@media (max-width: 560px) { .rhythm-row { grid-template-columns: 80px 28px 1fr; } .rdays { grid-column: 1 / -1; justify-content: flex-start; } }

/* ── v12: manage your rhythm ─────────────────────── */
.rhythm-row { grid-template-columns: 92px 32px 1fr auto auto; }
.rhythm-add { margin-top: 24px; text-align: center; }
.blk-form { grid-template-columns: 1fr 1fr; }
.blk-form select.date-input { width: 100%; padding: 8px 12px; font-family: var(--sans); font-size: 14px; }
.blk-days { justify-content: flex-start; gap: 6px; }
.blk-days .rday { width: 40px; height: 34px; font-size: 13px; }
@media (max-width: 560px) { .rhythm-row { grid-template-columns: 80px 28px 1fr auto; } }

/* ── v18: home-screen app on iPhone (safe areas) + sign-in ───────────── */
.topbar { padding-top: calc(10px + env(safe-area-inset-top)); padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
.toast { top: calc(84px + env(safe-area-inset-top)); }
@media (max-width: 820px) {
  .topbar { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .fab { bottom: calc(92px + env(safe-area-inset-bottom)); }
  .reminders { bottom: calc(160px + env(safe-area-inset-bottom)); }
  body { padding-bottom: calc(160px + env(safe-area-inset-bottom)); }
}
/* iOS zooms into inputs under 16px; keep everything at 16px+ on phones */
@media (max-width: 820px) { input, textarea, select { font-size: 16px; } }
.login .login-form { width: min(380px, 100%); margin: 18px auto 16px; text-align: left; }
.login .login-form { grid-template-columns: 1fr; }

/* ── v19: Streamline Pop icons, ink + acid (outline = currentColor, fill = --f) ── */
.ic { width: 1.2em; height: 1.2em; flex: 0 0 auto; vertical-align: -0.22em; color: var(--ink); overflow: visible; }
.tab .ic { width: 18px; height: 18px; }
.tab.on .ic, .bottomnav a.on .ic { color: var(--acid); }
.bottomnav a .i .ic { width: 24px; height: 24px; display: block; }
.lane-ico { background: var(--paper-2); font-size: 26px; }
.lane-ico .ic { width: 28px; height: 28px; }
.tile .ico .ic { width: 30px; height: 30px; }
.tile.hot .ico .ic { color: var(--ink); }
.agent-ico { background: var(--paper-2); }
.agent-ico .ic { width: 24px; height: 24px; }
.bell .ic { width: 22px; height: 22px; }
.fab .ic { width: 26px; height: 26px; }
.tl .ico .ic, .rhythm-row .ico .ic { width: 24px; height: 24px; }
.now-pill .ic, .tag .ic { color: inherit; }
.credit { text-align: center; margin: 4px 0 0; font-size: 12px; }
.credit a { color: inherit; }

/* v19b: ink + acid everywhere. On ink (active tab) the fill turns ink so the acid outline reads as a line icon;
   on anything already acid, the fill turns paper so the icon doesn't disappear. */
.ic { --f: var(--acid); }
.tab.on .ic, .bottomnav a.on .ic { --f: var(--ink); }
.tile.hot .ic, .tl.current .ic, .now-pill .ic, .fab .ic, .acid-card .ic, .tag.acid .ic, .btn.primary .ic, .bell:hover .ic { --f: var(--paper-2); }

/* ── v20: quick add (no AI) + Today's day sections ───────────── */
.qadd { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.qa-row { flex: 1 1 200px; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 2px dashed rgba(9,9,11,.3); border-radius: var(--r-sm); cursor: text; transition: background .12s; }
.qa-row:hover { border-color: var(--ink); background: var(--acid-soft); }
.qa-row:focus-within { border: var(--line-2); background: #fff; box-shadow: var(--sh-sm); }
.qa-plus { font-family: var(--em); font-weight: 700; font-size: 18px; line-height: 1; color: var(--ink-2); }
.qa-input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 10px 0; font-family: var(--sans); font-size: 16px; font-weight: 600; color: var(--ink); }
.qa-input::placeholder { color: var(--ink-2); font-weight: 600; opacity: 1; }
.qa-lane { flex: 0 1 auto; max-width: 46%; padding: 9px 10px; border: var(--line-2); border-radius: var(--r-sm); background: var(--paper-2); font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
.qa-chips { flex-basis: 100%; display: flex; gap: 6px; flex-wrap: wrap; }
.qa-chips:empty { display: none; }
.qa-chip { background: var(--acid); font-size: 13px; }
.qa-chip span { margin-left: 4px; font-weight: 700; }
.qa-pick { margin: 0 0 14px; }
.lane .qadd { margin-top: 12px; }

.day-secs { display: grid; gap: 10px; margin-bottom: 40px; }
.day-sec { border: var(--line-2); border-radius: 14px; background: var(--paper-2); overflow: hidden; }
.day-sec.current { border: var(--line); box-shadow: var(--sh-sm); }
.day-hd { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 14px; border: 0; background: none; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.day-hd:hover { background: var(--acid-soft); }
.day-sec.current .day-hd { background: var(--acid); }
.day-sec.past .day-hd { opacity: .55; }
.day-hd .t { flex: 0 0 64px; font-family: var(--em); font-weight: 700; font-size: 12px; color: var(--ink-2); }
.day-hd .ico .ic { width: 22px; height: 22px; display: block; }
.day-hd b { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.day-hd .n { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.day-sec.current .day-hd .n { color: var(--ink); font-weight: 600; }
.day-hd .chev { font-family: var(--em); font-weight: 700; font-size: 18px; line-height: 1; transition: transform .15s; }
.day-sec.open .chev { transform: rotate(90deg); }
.day-body { padding: 6px 14px 14px; border-top: var(--dash); }
.task.mini { align-items: center; padding: 9px 0; }
.task.mini .check { width: 24px; height: 24px; border-width: 2px; border-radius: 6px; margin-top: 0; }
.task.mini .title { font-weight: 500; }
.checkin-card { margin-bottom: 24px; }
.checkin-card h2 { margin: 8px 0 6px; font-size: 22px; line-height: 1.25; }
.checkin-card .hint { margin: 0 0 14px; }
.checkin-again { margin-top: 8px; }
@media (max-width: 560px) {
  .day-hd .t { flex-basis: 54px; }
  .qa-lane { max-width: 100%; flex: 1 1 100%; }
}

/* ── v23: Ideas — your own categories, calm grouped lists, a detail sheet ───────────── */
.idea-empty { text-align: center; padding: 44px 22px; max-width: 560px; margin: 0 auto; }
.idea-empty .ie-ico { font-size: 44px; line-height: 1; }
.idea-empty h2 { font-size: 26px; font-weight: 800; margin: 14px 0 8px; }
.idea-empty p { color: var(--ink-2); margin: 0 auto 22px; max-width: 380px; }

.ibar { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.ipills { flex: 1; min-width: 0; display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
.ipills::-webkit-scrollbar { display: none; }
.ipill { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: var(--line-2); border-radius: 999px; background: var(--paper-2); font-family: var(--sans); font-weight: 600; font-size: 14px; color: var(--ink); cursor: pointer; white-space: nowrap; }
.ipill:hover { background: var(--acid-soft); }
.ipill.on { background: var(--ink); color: var(--paper-2); }
.ipill .n { font-family: var(--em); font-size: 12px; font-weight: 700; color: var(--ink-3); }
.ipill.on .n { color: var(--acid); }
.ipill.add { border-style: dashed; border-color: rgba(9,9,11,.35); background: transparent; color: var(--ink-2); }
.iseg { flex: 0 0 auto; display: inline-flex; padding: 3px; border: var(--line-2); border-radius: 12px; background: var(--paper); }
.iseg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 9px; font-family: var(--sans); font-weight: 600; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.iseg button.on { background: var(--ink); color: var(--paper-2); }
.iseg.wide { display: flex; margin: 4px 0 20px; }
.iseg.wide button { flex: 1; }

.isecs { display: grid; gap: 26px; margin-bottom: 40px; }
.isec-hd { display: flex; align-items: baseline; gap: 10px; padding: 0 4px 10px; }
.isec-hd h3 { font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.isec-hd .em { font-size: 20px; }
.isec-hd .n { font-family: var(--em); font-weight: 700; font-size: 13px; color: var(--ink-3); }
.isec-edit { margin-left: auto; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.isec-edit:hover { color: var(--ink); background: var(--acid-soft); }
.ilabels { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 4px 12px; }
.ilist { background: var(--paper-2); border: var(--line); border-radius: 16px; box-shadow: var(--sh-sm); overflow: hidden; }
.irow { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-top: 1px solid rgba(9,9,11,.1); }
.irow:first-child { border-top: 0; }
.iring { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); cursor: pointer; display: grid; place-items: center; padding: 0; }
.iring:hover { background: var(--acid-soft); }
.iring.progress { background: linear-gradient(90deg, var(--acid) 50%, var(--paper) 50%); }
.iring.done { background: var(--ink); }
.iring.done svg { width: 13px; height: 13px; }
.ibody { flex: 1; min-width: 0; border: 0; background: none; padding: 0; text-align: left; font: inherit; color: var(--ink); cursor: pointer; display: grid; gap: 3px; }
.ititle { font-size: 16px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.ititle .tag { vertical-align: 2px; margin-left: 4px; }
.imeta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; font-size: 13px; color: var(--ink-3); }
.imeta i { font-style: normal; opacity: .6; }
.imeta .ilbl { color: var(--ink-2); font-weight: 600; }
.imeta .late { color: var(--red); font-weight: 600; }
.irow.done .ititle { color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.ithumb { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 10px; object-fit: cover; border: 2px solid var(--ink); }
.irow-add { padding: 4px 12px 12px; border-top: 1px solid rgba(9,9,11,.1); }
.irow:first-child + .irow-add, .ilist > .irow-add:first-child { border-top: 0; }
.irow-add .qadd { margin-top: 8px; }
.irow-add .qa-row { border-color: transparent; }
.irow-add .qa-row:hover { border-color: rgba(9,9,11,.25); }

/* idea sheet */
.isheet .kicker { margin-bottom: 4px; }
.ititle-in { width: 100%; resize: none; overflow: hidden; border: 0; outline: 0; background: transparent; padding: 2px 0; margin: 0 0 14px; font-family: var(--sans); font-size: 26px; font-weight: 800; line-height: 1.2; color: var(--ink); border-bottom: 2px solid transparent; }
.ititle-in:focus { border-bottom-color: var(--acid); }
.igroup { border: var(--line-2); border-radius: 14px; background: #fff; overflow: hidden; margin-bottom: 22px; }
.igroup label { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 14px; border-top: 1px solid rgba(9,9,11,.1); font-weight: 600; font-size: 15px; }
.igroup label:first-child { border-top: 0; }
.igroup label > span { flex: 0 0 118px; color: var(--ink); }
.igroup input, .igroup select { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; text-align: right; font-family: var(--sans); font-size: 15px; color: var(--ink-2); padding: 8px 0; }
.igroup input::placeholder { color: var(--ink-3); }
.igroup input:focus, .igroup select:focus { color: var(--ink); }
.igroup select { cursor: pointer; text-align-last: right; appearance: none; -webkit-appearance: none; }
.igroup :disabled { opacity: .45; cursor: not-allowed; }
.isheet .igroup + .m-hd, .isheet .m-hd { margin-top: 4px; }
.idesc { width: 100%; min-height: 110px; resize: vertical; border: var(--line-2); border-radius: 14px; background: #fff; padding: 12px 14px; font-family: var(--sans); font-size: 15px; line-height: 1.5; color: var(--ink); margin-bottom: 22px; }
.idesc:focus { outline: none; box-shadow: var(--sh-sm); }
.ifiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; padding: 4px; margin: 0 -4px; border-radius: 14px; transition: background .12s; }
.ifiles.over { background: var(--acid-soft); outline: 2px dashed var(--ink); }
.ifile { position: relative; aspect-ratio: 1; border: var(--line-2); border-radius: 12px; background: #fff; overflow: hidden; }
.ifile > a, .ifile > .fwrap { display: grid; place-items: center; align-content: center; gap: 4px; width: 100%; height: 100%; color: var(--ink); text-decoration: none; padding: 6px; text-align: center; }
.ifile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ifile .fext { font-family: var(--em); font-weight: 700; font-size: 13px; background: var(--acid); border: 2px solid var(--ink); border-radius: 6px; padding: 2px 6px; }
.ifile .fname { font-size: 11px; line-height: 1.25; color: var(--ink-2); max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-all; }
.ifile .x { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; padding: 0; display: grid; place-items: center; background: var(--paper-2); border: 2px solid var(--ink); border-radius: 50%; font-size: 15px; color: var(--ink); opacity: 0; transition: opacity .12s; }
.ifile:hover .x, .ifile:focus-within .x { opacity: 1; }
@media (hover: none) { .ifile .x { opacity: 1; } }
.ifile.busy::after { content: ''; position: absolute; inset: 0; background: rgba(255,253,245,.65); }
.ifile .fspin { position: absolute; z-index: 1; top: 50%; left: 50%; width: 22px; height: 22px; margin: -11px; border: 3px solid var(--ink); border-top-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ifile.failed { border-color: var(--red); }
.ifile .fretry { position: absolute; z-index: 1; left: 6px; right: 6px; bottom: 6px; border: 2px solid var(--ink); border-radius: 8px; background: var(--acid); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; padding: 3px; }
.ifile.add { display: grid; place-items: center; align-content: center; gap: 2px; border-style: dashed; border-color: rgba(9,9,11,.35); background: transparent; cursor: pointer; font-weight: 600; font-size: 13px; color: var(--ink-2); }
.ifile.add:hover { border-color: var(--ink); background: var(--acid-soft); color: var(--ink); }
.ifile.add .plus { font-family: var(--em); font-size: 26px; line-height: 1; }
.ihint { margin: 8px 0 22px; font-size: 13px; }
.ilink { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; margin-bottom: 8px; }
.ilink a { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.isheet .pack { margin-top: 22px; }
.danger-txt { color: var(--red); }
/* category sheet */
.iemoji { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; margin-bottom: 22px; }
.iemoji button { aspect-ratio: 1; font-size: 22px; border: 2px solid transparent; border-radius: 10px; background: var(--paper); cursor: pointer; }
.iemoji button:hover { background: var(--acid-soft); }
.iemoji button.on { border-color: var(--ink); background: var(--acid); }
.ilabel-edit { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 10px; border: var(--line-2); border-radius: 12px; background: #fff; min-height: 48px; }
.ilabel-edit .chip { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.ilabel-edit .chip button { border: 0; background: none; color: inherit; cursor: pointer; font-size: 15px; line-height: 1; padding: 0 0 0 2px; }
.ilabel-edit input { flex: 1 1 160px; min-width: 0; border: 0; outline: 0; background: transparent; font-family: var(--sans); font-size: 15px; padding: 6px 2px; }
@media (max-width: 560px) {
  .ibar { flex-direction: column; align-items: stretch; gap: 10px; }
  .iseg:not(.wide) { align-self: flex-start; }
  .igroup label > span { flex-basis: 100px; }
  .ititle-in { font-size: 23px; }
}

/* ── v24: add / edit goals yourself ───────────── */
.goal-when { margin-top: 2px; }
.goal-when .chip { font-size: 13px; padding: 7px 12px; }
.gms { border: var(--line-2); border-radius: 14px; background: #fff; overflow: hidden; }
.gms-row { display: flex; align-items: center; gap: 10px; padding: 4px 10px 4px 14px; min-height: 46px; border-top: 1px solid rgba(9,9,11,.1); }
.gms-row:first-child { border-top: 0; }
.gms-n { flex: 0 0 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font-family: var(--em); font-weight: 700; font-size: 11px; }
.gms-row.add .gms-n { border-style: dashed; border-color: rgba(9,9,11,.4); color: var(--ink-2); font-size: 14px; }
.gms-row input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-family: var(--sans); font-size: 15px; color: var(--ink); padding: 8px 0; }
.gms-row input::placeholder { color: var(--ink-3); }
.modal-card .ititle-in::placeholder { color: var(--ink-3); }

/* ── v14: notification sounds ── */
.sound-try { flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.sound-try .btn .hint { margin-left: 4px; font-weight: 500; }

/* ── v26: quote of the day ── calm, below the greeting; the Right-now card stays the focal point */
.qotd { position: relative; background: var(--paper-2); border: var(--line-2); border-left: 10px solid var(--acid); border-radius: var(--r); box-shadow: var(--sh-sm); padding: 18px 20px 14px; margin: -8px 0 28px; max-width: 760px; }
.qotd .kicker { color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.qotd blockquote { margin: 10px 0 6px; font-size: clamp(17px, 2.2vw, 21px); font-weight: 600; line-height: 1.4; color: var(--ink); text-wrap: pretty; }
.qotd-who { font-family: var(--em); font-weight: 700; font-size: 13px; color: var(--ink-2); }
.qotd-who::before { content: "— "; }
.qotd-who span { font-weight: 500; color: var(--ink-3); margin-left: 4px; }
.qotd-note { margin: 12px 0 0; padding-top: 10px; border-top: var(--dash); font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.qotd-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
@media (max-width: 560px) { .qotd { padding: 16px 16px 12px; border-left-width: 8px; } }
