/* =====================================================================
   Vita — "the atelier" design system
   Fraunces for display, Figtree for reading, Yellowtail for the odd
   handwritten caption. Cream paper, pinstripe bands, framed photos,
   folder cards, scalloped labels and four-point sparkles, all drawn
   in CSS. Ten palettes: five soft, five neutral (two of them dark).
   ===================================================================== */
:root {
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Yellowtail", "Brush Script MT", cursive;
  --r: 18px; --r-sm: 12px; --bw: 1.5px;
  --side: 280px;
  --shadow: 3px 3px 0 var(--line); --tk: 1;
  --soft: 0 1px 2px rgb(0 0 0 / .05), 0 8px 24px -12px rgb(0 0 0 / .18);
}
:root, [data-theme="powder"] {
  --paper: #FCF8F3; --surface: #FFFDF9; --surface2: #F5EFE7; --ink: #1F1C2C; --ink2: #4A4558; --muted: #6E6780; --line: #1F1C2C; --hair: #E8E0D4; --grid: rgb(31 28 44 / .045);
  --t1: #BFDCF5; --t2: #F9C9DF; --t3: #F6E3A1; --t4: #CBE6CF; --t5: #DCCEF3; --t6: #F8D2BC; --on: #1F1C2C;
  --accent: #2A65A6; --accent2: #B83D76; --good: #2E7D4F; --warn: #A3620A; --bad: #B4232F;
  --c1: #3B74B5; --c2: #D0558D; --c3: #B07E0A; --c4: #3E9468; --c5: #8661C6;
  --stripe-a: var(--t1); --stripe-b: #D7E9F8;
}
[data-theme="lilac"] {
  --paper: #FBF8FC; --surface: #FFFEFF; --surface2: #F3EEF6; --ink: #26213A; --ink2: #4D4762; --muted: #6E6784; --line: #26213A; --hair: #E7E0EC; --grid: rgb(38 33 58 / .045);
  --t1: #D9CCF4; --t2: #F8E7A6; --t3: #C7EBDA; --t4: #F6CFE0; --t5: #CFE0F7; --t6: #F7D7C2; --on: #26213A;
  --accent: #6345B0; --accent2: #A83F72; --good: #2E7D4F; --warn: #9A5C08; --bad: #B4232F;
  --c1: #7A5BC8; --c2: #C9548A; --c3: #B98A10; --c4: #3A9071; --c5: #3F7FC0;
  --stripe-a: var(--t1); --stripe-b: #E8DFF8;
}
[data-theme="matcha"] {
  --paper: #F8F6EE; --surface: #FFFEF9; --surface2: #EFEDE2; --ink: #22301F; --ink2: #47533F; --muted: #646F5C; --line: #22301F; --hair: #E2DFD0; --grid: rgb(34 48 31 / .045);
  --t1: #C9DDBF; --t2: #F6D2B8; --t3: #EFE4C7; --t4: #D3E3EC; --t5: #E7D9EE; --t6: #F1C9C1; --on: #22301F;
  --accent: #3C6838; --accent2: #A6542A; --good: #2E7D4F; --warn: #94600C; --bad: #A9302C;
  --c1: #4F8A45; --c2: #D07443; --c3: #9C7E14; --c4: #4C86A8; --c5: #9A69A6;
  --stripe-a: var(--t1); --stripe-b: #DCE8D4;
}
[data-theme="apricot"] {
  --paper: #FFF8F1; --surface: #FFFDFA; --surface2: #F8EDE2; --ink: #2C211B; --ink2: #554238; --muted: #7A675D; --line: #2C211B; --hair: #F0E2D4; --grid: rgb(44 33 27 / .045);
  --t1: #FFD3B0; --t2: #F9B8B0; --t3: #C9E2F5; --t4: #F8E6A0; --t5: #D5EBCB; --t6: #E6D3F2; --on: #2C211B;
  --accent: #A9452A; --accent2: #2F6CB0; --good: #2E7D4F; --warn: #94560A; --bad: #B4232F;
  --c1: #CC6A2F; --c2: #3E7DB8; --c3: #C2483F; --c4: #3E9468; --c5: #8661C6;
  --stripe-a: var(--t1); --stripe-b: #FFE3CC;
}
[data-theme="velvet"] {
  --paper: #1D1824; --surface: #262030; --surface2: #2F2839; --ink: #F4EEF6; --ink2: #D8CEDF; --muted: #AFA3B9; --line: #E9DDF0; --hair: #3B3346; --grid: rgb(255 255 255 / .035);
  --t1: #A9CDF2; --t2: #F3A9CC; --t3: #F1DC92; --t4: #A9DDBB; --t5: #CDB8F2; --t6: #F5BE9C; --on: #1D1824;
  --accent: #9CC9F5; --accent2: #F5B3D3; --good: #7FD39E; --warn: #F2C470; --bad: #FF8A93;
  --c1: #7FB4EC; --c2: #EE8DBC; --c3: #E8C55A; --c4: #6FCB97; --c5: #B79AF0;
  --stripe-a: #2C2440; --stripe-b: #251F33; --shadow: 3px 3px 0 #0E0B12; --tk: .38;
}
[data-theme="oxford"] {
  --paper: #F5F3EE; --surface: #FDFCF9; --surface2: #ECE9E2; --ink: #18233A; --ink2: #3F4A5E; --muted: #5A6373; --line: #18233A; --hair: #E1DDD4; --grid: rgb(24 35 58 / .045);
  --t1: #D6DCE6; --t2: #E5DCCB; --t3: #DCCB9E; --t4: #CFD8CC; --t5: #DCD3DF; --t6: #E3CDBF; --on: #18233A;
  --accent: #22406E; --accent2: #7D5E1E; --good: #2E6E4A; --warn: #8A5A0E; --bad: #A12A2A;
  --c1: #2F558C; --c2: #A9842E; --c3: #6E8A6A; --c4: #9C5B48; --c5: #6A6E9C;
  --stripe-a: #DEE3EB; --stripe-b: #EBEEF2;
}
[data-theme="olive"] {
  --paper: #F3F1E8; --surface: #FCFBF6; --surface2: #E9E6D9; --ink: #262A1C; --ink2: #4A4E3C; --muted: #5E6152; --line: #262A1C; --hair: #DFDBCB; --grid: rgb(38 42 28 / .045);
  --t1: #D5D9BC; --t2: #E6D7B8; --t3: #CFC6A8; --t4: #C6D4CB; --t5: #DCD2C4; --t6: #E2C9B0; --on: #262A1C;
  --accent: #4C5826; --accent2: #85562A; --good: #3C6E3A; --warn: #8A5A0E; --bad: #A12A2A;
  --c1: #5E6E2E; --c2: #B07A3A; --c3: #6A8778; --c4: #9C5B48; --c5: #8C7A5A;
  --stripe-a: #DEE1CB; --stripe-b: #E9EBDB;
}
[data-theme="slate"] {
  --paper: #F2F3F4; --surface: #FCFCFD; --surface2: #E8EAEC; --ink: #1D2328; --ink2: #434B53; --muted: #5C646C; --line: #1D2328; --hair: #DDE0E3; --grid: rgb(29 35 40 / .045);
  --t1: #D3DAE1; --t2: #DDDBD6; --t3: #C3CDD5; --t4: #D3DDD6; --t5: #D9D5DE; --t6: #E2D6CC; --on: #1D2328;
  --accent: #34526E; --accent2: #6A5A48; --good: #2E6E4A; --warn: #8A5A0E; --bad: #A12A2A;
  --c1: #3E6489; --c2: #8C7660; --c3: #5E8A86; --c4: #A0584A; --c5: #6E6A94;
  --stripe-a: #DCE1E6; --stripe-b: #E9ECEF;
}
[data-theme="espresso"] {
  --paper: #F6F1EA; --surface: #FDFBF8; --surface2: #EDE5DA; --ink: #2A1F18; --ink2: #50423A; --muted: #6E6058; --line: #2A1F18; --hair: #E4DACD; --grid: rgb(42 31 24 / .045);
  --t1: #E3D2BF; --t2: #D9CBB8; --t3: #D3B798; --t4: #D2D8C6; --t5: #DDD0D6; --t6: #E6C7B3; --on: #2A1F18;
  --accent: #6B3F22; --accent2: #3F5B6B; --good: #3C6E3A; --warn: #8A5A0E; --bad: #A12A2A;
  --c1: #7B4A2A; --c2: #4A6E80; --c3: #B08A4A; --c4: #6E8A5E; --c5: #9A6A7A;
  --stripe-a: #EADDCF; --stripe-b: #F2E9DE;
}
[data-theme="graphite"] {
  --paper: #18191B; --surface: #212326; --surface2: #2A2D31; --ink: #ECEAE6; --ink2: #D0CDC7; --muted: #A3A09A; --line: #D8D5CF; --hair: #34373B; --grid: rgb(255 255 255 / .03);
  --t1: #B8C6D3; --t2: #D7C08E; --t3: #A9BFAE; --t4: #C9B6A6; --t5: #B9B4CC; --t6: #D0B7A0; --on: #18191B;
  --accent: #B8C9DA; --accent2: #DCC694; --good: #8FCB9F; --warn: #E2B866; --bad: #F08A8A;
  --c1: #8FB0CF; --c2: #D6B46A; --c3: #8FB89A; --c4: #CF9A82; --c5: #A9A2D6;
  --stripe-a: #23272C; --stripe-b: #1E2124; --shadow: 3px 3px 0 #000; --tk: .38;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-size: 16px; scroll-padding-top: 80px; }
body { margin: 0; overflow-x: clip; background: var(--paper); color: var(--ink); font: 400 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; font-optical-sizing: auto;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 28px 28px; background-attachment: fixed; }
.plain body { background-image: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; margin: 0; line-height: 1.08; letter-spacing: -.015em; font-variation-settings: "SOFT" 50, "WONK" 0; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.65rem); }
h3 { font-size: 1.15rem; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 500; color: var(--accent); }
p { margin: 0 0 .8rem; }
a { color: inherit; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 18px; height: 18px; flex: none; }
.small { font-size: .85rem; } .muted { color: var(--muted); } .num { font-variant-numeric: tabular-nums; }
.label { display: inline-block; font: 600 .7rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); }
.hand { font-family: var(--script); font-weight: 400; letter-spacing: 0; color: var(--accent2); }
.plain .hand { font-family: var(--serif); font-style: italic; color: inherit; }
.pos { color: var(--good); } .neg { color: var(--bad); } .warn { color: var(--warn); }
.center { text-align: center; justify-items: center; justify-content: center; }
.section { margin-top: 2rem; } .section-sm { margin-top: 1rem; }
.stack { display: grid; gap: .8rem; }
.inline { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.row-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.row-head h2 em { color: var(--accent); }
.big { font: 600 clamp(2rem, 5vw, 3rem)/1 var(--serif); letter-spacing: -.02em; display: block; }
h3.mini { font: 600 .74rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink2); margin: 0 0 .5rem; }

/* Sparkles: the four-point star */
.spk { width: 18px; height: 18px; fill: var(--t3); stroke: var(--line); stroke-width: 2; stroke-linejoin: round; flex: none; vertical-align: -3px; }
.spk.sm { width: 22px; height: 22px; fill: var(--t2); }
.plain .spk { display: none; }

/* ---------- Shell: the sticky sidebar ---------- */
.side { position: fixed; inset: 0 auto 0 0; width: var(--side); z-index: 40; display: flex; flex-direction: column; gap: .9rem; padding: 1.2rem .9rem 1rem; background: var(--surface); border-right: var(--bw) solid var(--hair); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; padding: 0 .4rem; }
.brand b { display: block; font: 600 1.55rem/1 var(--serif); letter-spacing: -.02em; }
.brand small { display: block; font-size: .74rem; color: var(--muted); margin-top: .15rem; }
.logo { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: var(--bw) solid var(--line); background: repeating-linear-gradient(90deg, var(--stripe-a) 0 6px, var(--stripe-b) 6px 12px); flex: none; }
.logo .spk { width: 22px; height: 22px; fill: var(--surface); display: block; }
.plain .logo .spk { display: block; }
.side-dump .dumpbox { background: var(--surface2); }
.dumpbox { display: flex; align-items: center; gap: .3rem; padding: .25rem .25rem .25rem .7rem; border: var(--bw) solid var(--line); border-radius: 999px; background: var(--surface); }
.dumpbox .input { border: 0; background: transparent; padding: .45rem 0; min-width: 0; flex: 1; box-shadow: none; }
.dumpbox .input:focus { outline: none; }
.dumpbox:focus-within { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.dumpbox .icon-btn { width: 34px; height: 34px; background: var(--ink); color: var(--paper); border-color: var(--ink); }
.side-nav { display: grid; gap: .1rem; }
.side-link, .pillar > summary { display: flex; align-items: center; gap: .65rem; padding: .5rem .6rem; border-radius: 10px; text-decoration: none; font-weight: 500; font-size: .92rem; cursor: pointer; list-style: none; color: var(--ink); }
.pillar > summary::-webkit-details-marker { display: none; }
.side-link:hover, .pillar > summary:hover { background: var(--surface2); }
.side-link[aria-current="page"], .pillar > summary[aria-current="true"] { background: color-mix(in srgb, var(--t1) calc(70% * var(--tk)), var(--surface)); color: var(--on); }
.side-link .ic, .pillar > summary .ic { width: 19px; height: 19px; }
.pillar > summary span:not(.nbadge) { flex: 1; }
.pillar .chev { width: 14px; height: 14px; opacity: .55; transition: transform .2s; }
.pillar[open] .chev { transform: rotate(180deg); }
.subs { display: grid; gap: 1px; margin: .15rem 0 .4rem 1.55rem; padding-left: .7rem; border-left: var(--bw) solid var(--hair); }
.subs a { padding: .32rem .55rem; border-radius: 8px; text-decoration: none; font-size: .86rem; color: var(--ink2); }
.subs a:hover { background: var(--surface2); color: var(--ink); }
.subs a[aria-current="page"] { color: var(--ink); font-weight: 600; background: var(--surface2); box-shadow: inset 3px 0 0 var(--accent); }
.nbadge { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--t2); color: var(--on); font-size: .7rem; font-weight: 700; border: 1px solid var(--line); }
.side-foot { margin-top: auto; display: grid; gap: .1rem; padding-top: .6rem; border-top: var(--bw) solid var(--hair); }
.main-col { margin-left: var(--side); min-height: 100vh; }
#main { max-width: 1260px; margin: 0 auto; padding: 1.6rem clamp(1rem, 3vw, 2.6rem) 4rem; }
.top, .tabbar, .scrim { display: none; }
.demo-band { background: var(--ink); color: var(--paper); text-align: center; font-size: .8rem; padding: .4rem 1rem; }
.demo-band a { color: inherit; font-weight: 600; }
@media (max-width: 1080px) {
  .side { transform: translateX(-105%); transition: transform .25s ease; width: min(320px, 86vw); box-shadow: var(--soft); }
  .nav-on .side { transform: none; }
  .nav-on .scrim { display: block; position: fixed; inset: 0; z-index: 35; background: rgb(15 12 22 / .4); }
  .main-col { margin-left: 0; }
  .top { display: flex; position: sticky; top: 0; z-index: 30; align-items: center; justify-content: space-between; gap: .6rem; padding: .55rem .8rem; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: var(--bw) solid var(--hair); }
  .top .brand b { font-size: 1.3rem; } .top .logo { width: 32px; height: 32px; border-radius: 9px; } .top .logo .spk { width: 18px; height: 18px; }
  #main { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; position: fixed; inset: auto 0 0; z-index: 30; background: var(--surface); border-top: var(--bw) solid var(--hair); padding: .35rem .4rem calc(.35rem + env(safe-area-inset-bottom)); }
  .tabbar a, .tabbar button { all: unset; position: relative; display: grid; justify-items: center; gap: 2px; padding: .3rem 0; font-size: .68rem; font-weight: 600; color: var(--muted); cursor: pointer; border-radius: 12px; }
  .tabbar .ic { width: 23px; height: 23px; }
  .tabbar [aria-current="page"] { color: var(--ink); }
  .tabbar [aria-current="page"] .ic { color: var(--accent); }
  .tabbar .fab { justify-self: center; width: 52px; height: 52px; place-items: center; border-radius: 50%; background: var(--ink); color: var(--paper); border: 3px solid var(--surface); box-shadow: var(--soft); margin-top: -22px; }
  .tabbar .fab .ic { width: 26px; height: 26px; }
  .tabbar .nbadge { position: absolute; top: -2px; right: calc(50% - 22px); }
  .tabbar a:focus-visible, .tabbar button:focus-visible { outline: 2.5px solid var(--accent); }
}

/* ---------- Controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .62rem 1.1rem; border: var(--bw) solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: 600 .88rem/1.1 var(--sans); cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .12s, box-shadow .12s, background .12s; }
.btn:hover { background: var(--surface2); }
.btn:active { transform: translateY(1px); }
.btn.solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.solid:hover { box-shadow: 2px 2px 0 color-mix(in srgb, var(--accent) 60%, var(--t1)); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface2); border-color: var(--hair); }
.btn.danger, .btn.ghost.danger { color: var(--bad); }
.btn.sm { padding: .42rem .8rem; font-size: .8rem; } .btn.sm .ic { width: 15px; height: 15px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
label.btn.busy { opacity: .6; pointer-events: none; }
.btn.wide { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; border: var(--bw) solid transparent; border-radius: 999px; background: none; color: var(--ink); cursor: pointer; flex: none; }
.icon-btn:hover { background: var(--surface2); border-color: var(--hair); }
.icon-btn.sm { width: 30px; height: 30px; } .icon-btn.sm .ic { width: 15px; height: 15px; }
.icon-btn[disabled] { opacity: .3; pointer-events: none; }
.link { all: unset; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: .84rem; font-weight: 500; color: var(--ink2); }
.link:hover { color: var(--ink); } .link:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.link-strong { all: unset; cursor: pointer; font-weight: 600; } .link-strong:hover { text-decoration: underline; text-underline-offset: 3px; } .link-strong:focus-visible { outline: 2.5px solid var(--accent); }
.seg { display: inline-flex; padding: 3px; border: var(--bw) solid var(--line); border-radius: 999px; background: var(--surface); gap: 2px; flex-wrap: wrap; }
.seg button { all: unset; cursor: pointer; display: inline-flex; gap: .35rem; align-items: center; padding: .38rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--ink2); }
.seg button .ic { width: 15px; height: 15px; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.seg button:focus-visible { outline: 2.5px solid var(--accent); }
.seg button[disabled] { opacity: .35; pointer-events: none; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chips.filter { margin: 0 0 1.2rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .36rem .8rem; border: var(--bw) solid var(--hair); border-radius: 999px; background: var(--surface); font-size: .8rem; font-weight: 600; cursor: pointer; color: var(--ink2); }
.chip:hover { border-color: var(--line); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip[aria-pressed="true"], .chip:has(input:checked) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip:has(input:focus-visible) { outline: 2.5px solid var(--accent); }
.chip .ic { width: 14px; height: 14px; }
.tag { display: inline-flex; align-items: center; gap: .3rem; padding: .16rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 600; background: var(--surface2); color: var(--ink2); border: 1px solid var(--hair); white-space: nowrap; }
.tag .ic { width: 12px; height: 12px; }
.tag.t1, .tag.t2, .tag.t3, .tag.t4, .tag.t5, .tag.t6 { background: var(--tc); color: var(--on); border-color: color-mix(in srgb, var(--line) 25%, var(--tc)); }
.tag.done { background: var(--t4); color: var(--on); }
.t1 { --tc: var(--t1); } .t2 { --tc: var(--t2); } .t3 { --tc: var(--t3); } .t4 { --tc: var(--t4); } .t5 { --tc: var(--t5); } .t6 { --tc: var(--t6); }
.hash { font-size: .76rem; color: var(--accent); font-weight: 600; }
/* The scalloped cloud label */
.cloud { --tc: var(--t1); position: relative; display: inline-grid; place-items: center; padding: .38rem .95rem; font: 600 .74rem/1.1 var(--serif); letter-spacing: .01em; color: var(--on); isolation: isolate; white-space: nowrap; }
.cloud::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--tc); border: var(--bw) solid var(--line); border-radius: 999px;
  border-radius: 40% 60% 55% 45% / 60% 45% 55% 40%; }
.plain .cloud::before { border-radius: 999px; }
/* Forms */
.field { display: grid; gap: .3rem; min-width: 0; }
.field > span { font-size: .78rem; font-weight: 600; color: var(--ink2); }
.input { width: 100%; padding: .6rem .8rem; border: var(--bw) solid color-mix(in srgb, var(--line) 35%, var(--hair)); border-radius: 12px; background: var(--surface); color: var(--ink); font-size: .95rem; }
.input:focus { outline: 2.5px solid var(--accent); outline-offset: 0; border-color: var(--line); }
.input.sm { padding: .38rem .6rem; width: 6rem; font-size: .85rem; }
textarea.input { resize: vertical; line-height: 1.55; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 16px) 55%, calc(100% - 11px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1rem; }
.form-grid .wide { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.switch { display: flex; gap: .7rem; align-items: center; cursor: pointer; font-size: .9rem; }
.switch input { appearance: none; width: 44px; height: 26px; border: var(--bw) solid var(--line); border-radius: 999px; background: var(--surface2); position: relative; cursor: pointer; flex: none; transition: background .15s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: var(--ink); transition: left .18s; }
.switch input:checked { background: var(--t4); } .switch input:checked::after { left: 21px; }
.switch input:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.rating { display: flex; gap: .35rem; flex-wrap: wrap; }
.rate { position: relative; cursor: pointer; }
.rate input { position: absolute; opacity: 0; }
.rate span[aria-hidden] { display: inline-grid; place-items: center; min-width: 38px; height: 34px; padding: 0 .55rem; border: var(--bw) solid var(--hair); border-radius: 999px; font-size: .82rem; font-weight: 600; background: var(--surface); }
.rate input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.rate input:focus-visible + span { outline: 2.5px solid var(--accent); }
.quick { display: flex; gap: .35rem; align-items: center; padding: .2rem .2rem .2rem .2rem; margin-top: .4rem; }
.quick .input { padding: .5rem .75rem; border-style: dashed; }
.quick .icon-btn { background: var(--surface2); border-color: var(--hair); }
.toolbar { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.2rem; }
.search { max-width: 320px; border-radius: 999px; }
.sets { display: grid; gap: .35rem; }
.set-row { display: grid; grid-template-columns: minmax(0, 2.2fr) repeat(3, minmax(0, 1fr)); gap: .35rem; }

/* ---------- Page head, tabs ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; flex-wrap: wrap; padding: 1.2rem 0 1.4rem; }
.page-head > div:first-child { max-width: 46rem; }
.kicker { display: inline-flex; align-items: center; gap: .45rem; margin-bottom: .7rem; padding: .32rem .8rem .32rem .55rem; border: var(--bw) solid var(--line); border-radius: 999px; background: var(--t2); color: var(--on); font: 600 .7rem/1 var(--sans); letter-spacing: .13em; text-transform: uppercase; }
.lede { margin: .8rem 0 0; color: var(--ink2); max-width: 60ch; }
.head-actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.tabs { display: flex; gap: .3rem; overflow-x: auto; scrollbar-width: none; margin: 0 -1rem; padding: 0 1rem .2rem; border-bottom: var(--bw) solid var(--hair); }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { display: inline-flex; align-items: center; gap: .45rem; padding: .7rem .9rem .75rem; text-decoration: none; font-weight: 600; font-size: .88rem; color: var(--muted); white-space: nowrap; border-bottom: 2.5px solid transparent; margin-bottom: -1.5px; }
.tabs a .ic { width: 17px; height: 17px; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- Cards and grids ---------- */
.grid { display: grid; gap: 1.2rem; align-content: start; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.main-side { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.grid.side-main { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
.grid.three-one { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); margin-bottom: 1.2rem; }
.grid.home-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
@media (max-width: 960px) { .grid.two, .grid.three, .grid.main-side, .grid.side-main, .grid.three-one, .grid.home-grid { grid-template-columns: minmax(0, 1fr); } }
.card { position: relative; padding: 1.3rem 1.4rem; border: var(--bw) solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); min-width: 0; }
.plain .card { box-shadow: var(--soft); border-color: var(--hair); }
.card.tone { background: color-mix(in srgb, var(--tc) calc(46% * var(--tk)), var(--surface)); }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .8rem; margin-bottom: 1rem; flex-wrap: wrap; }
.card-head .label { display: block; margin-bottom: .3rem; }
.card-actions { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.empty { display: grid; justify-items: center; gap: .6rem; padding: 2.2rem 1.2rem; text-align: center; border: var(--bw) dashed color-mix(in srgb, var(--line) 35%, var(--hair)); border-radius: var(--r); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.empty p { margin: 0; max-width: 46ch; color: var(--ink2); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .9rem; margin-bottom: 1.2rem; }
.stats.two { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin-bottom: 0; }
.stat { display: grid; gap: .1rem; padding: 1rem 1.1rem; border: var(--bw) solid var(--hair); border-radius: var(--r-sm); background: var(--surface); }
.stat b { font: 600 1.7rem/1.05 var(--serif); letter-spacing: -.02em; }
.stat span { font-size: .78rem; color: var(--muted); font-weight: 500; }
.stat.good b { color: var(--good); } .stat.warn b { color: var(--warn); }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; }
.plain-list li { display: flex; gap: .7rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--hair); }
.plain-list li > span:first-of-type, .plain-list li > .t-title { flex: 1; min-width: 0; }
.plain-list li.done .t-title { text-decoration: line-through; color: var(--muted); }
.plain-list .ic { width: 16px; height: 16px; color: var(--good); }
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .7rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--hair); font-size: .9rem; }
.ledger li small { display: block; font-size: .76rem; }
.mini-list { list-style: none; padding: 0; margin: .8rem 0 0; display: grid; gap: .3rem; }
.mini-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .55rem; align-items: center; font-size: .86rem; }
.mini-list .ic { width: 16px; height: 16px; color: var(--muted); }

/* Progress */
.bar { position: relative; height: 9px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 8%, var(--surface2)); overflow: hidden; border: 1px solid color-mix(in srgb, var(--line) 22%, transparent); }
.bar i { position: absolute; inset: 0 auto 0 0; background: var(--ink); border-radius: 999px; transition: width .4s ease; }
.bar.near i { background: var(--warn); } .bar.over i { background: var(--bad); }
.tone .bar { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.ring { position: relative; display: inline-grid; place-items: center; width: 68px; height: 68px; flex: none; vertical-align: middle; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring .r-bg { fill: none; stroke: color-mix(in srgb, var(--ink) 9%, transparent); stroke-width: 7; }
.ring .r-fg { fill: none; stroke: var(--accent); stroke-width: 7; stroke-linecap: round; transition: stroke-dashoffset .5s; }
.ring b { position: relative; font: 600 .95rem/1 var(--serif); }

/* ---------- Charts ---------- */
.chart { margin: 0; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--hair); stroke-width: 1; }
.chart .base { stroke: color-mix(in srgb, var(--line) 50%, transparent); stroke-width: 1.5; }
.chart .axis { fill: var(--muted); font: 500 12px var(--sans); }
.chart .hit { fill: transparent; }
.chart .mark { cursor: default; outline: none; }
.chart .mark:hover .bar-mark, .chart .mark:focus .bar-mark { filter: brightness(.9); }
.chart .mark:focus-visible .hit { stroke: var(--accent); stroke-width: 2; }
.bar-mark.c1, .key.c1, .dot-mark.c1 { fill: var(--c1); background: var(--c1); } .line-mark.c1 { stroke: var(--c1); }
.bar-mark.c2, .key.c2, .dot-mark.c2 { fill: var(--c2); background: var(--c2); } .line-mark.c2 { stroke: var(--c2); }
.bar-mark.c3, .key.c3, .dot-mark.c3 { fill: var(--c3); background: var(--c3); } .line-mark.c3 { stroke: var(--c3); }
.bar-mark.c4, .key.c4, .dot-mark.c4 { fill: var(--c4); background: var(--c4); } .line-mark.c4 { stroke: var(--c4); }
.bar-mark.c5, .key.c5, .dot-mark.c5 { fill: var(--c5); background: var(--c5); } .line-mark.c5 { stroke: var(--c5); }
.line-mark { fill: none; stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.dot-mark { stroke: var(--surface); stroke-width: 2; }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .5rem; font-size: .8rem; color: var(--ink2); }
.legend span { display: inline-flex; align-items: center; gap: .4rem; }
.key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.chart figcaption { margin-top: .4rem; }
.tip { position: fixed; z-index: 90; transform: translate(-50%, -100%); padding: .38rem .6rem; border-radius: 8px; background: var(--ink); color: var(--paper); font-size: .78rem; font-weight: 600; pointer-events: none; white-space: nowrap; box-shadow: var(--soft); }

/* ---------- Modal, toasts ---------- */
dialog#modal { border: var(--bw) solid var(--line); padding: 0; border-radius: 20px; background: var(--surface); color: var(--ink); width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 40px); box-shadow: 0 30px 80px -30px rgb(0 0 0 / .5); }
dialog#modal.narrow { width: min(480px, calc(100vw - 24px)); }
dialog#modal.photo { width: min(1100px, calc(100vw - 24px)); background: #0F0E12; color: #F6F2EC; border-color: #0F0E12; }
dialog#modal[open] { animation: popin .22s cubic-bezier(.3, 1.3, .5, 1); }
@keyframes popin { from { transform: translateY(10px) scale(.98); opacity: 0; } }
dialog#modal::backdrop { background: rgb(18 14 24 / .55); backdrop-filter: blur(2px); }
.modal-inner { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-height: calc(100dvh - 40px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.4rem .6rem; }
.modal-head h2 { font-size: 1.45rem; }
.modal-body { overflow-y: auto; padding: .4rem 1.4rem 1.4rem; }
.modal-foot { display: flex; gap: .5rem; justify-content: space-between; align-items: center; padding: .9rem 1.4rem; border-top: 1px solid var(--hair); flex-wrap: wrap; }
.modal-foot .right { margin-left: auto; display: flex; gap: .5rem; }
@media (max-width: 600px) { dialog#modal, dialog#modal.narrow { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 20px 20px 0 0; max-height: 92dvh; } .modal-inner { max-height: 92dvh; } .modal-foot { padding-bottom: calc(.9rem + env(safe-area-inset-bottom)); } dialog#modal.photo { margin: auto; border-radius: 14px; } }
#toasts { position: fixed; z-index: 95; left: 50%; bottom: 1.4rem; transform: translateX(-50%); display: grid; gap: .5rem; width: min(440px, calc(100vw - 24px)); }
@media (max-width: 1080px) { #toasts { bottom: calc(5.4rem + env(safe-area-inset-bottom)); } }
.toast { display: flex; gap: .8rem; align-items: center; justify-content: space-between; padding: .75rem 1rem; border-radius: 14px; background: var(--ink); color: var(--paper); font-size: .88rem; font-weight: 500; box-shadow: var(--soft); animation: popin .2s; }
.toast.err { background: var(--bad); color: #fff; }
.toast button { all: unset; cursor: pointer; font-weight: 700; text-decoration: underline; }
.pop { position: fixed; z-index: 99; pointer-events: none; }
.pop i { position: absolute; width: 8px; height: 8px; border-radius: 2px; border: 1px solid var(--line); animation: burst .9s ease-out forwards; }
@keyframes burst { to { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; } }
.calm *, .calm *::before, .calm *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Photos: frames, the vision board, the lightbox ---------- */
img[data-photo] { background: color-mix(in srgb, var(--t1) 40%, var(--surface2)); object-fit: cover; }
img[data-photo]:not([src]) { animation: shimmer 1.4s ease-in-out infinite alternate; }
@keyframes shimmer { to { opacity: .55; } }
img.missing { opacity: .3; }
.vdrop { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; margin-bottom: 1.4rem; border: 2px dashed color-mix(in srgb, var(--line) 40%, var(--hair)); border-radius: var(--r); background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--stripe-a) 45%, transparent) 0 14px, transparent 14px 28px), var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.plain .vdrop { background: var(--surface); }
.vdrop:hover, .vdrop.drag, [data-drop].drag { border-color: var(--accent); outline: 3px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.vdrop > .ic { width: 34px; height: 34px; padding: 6px; border-radius: 12px; background: var(--ink); color: var(--paper); box-sizing: content-box; }
.vdrop b { display: block; font: 600 1.1rem/1.2 var(--serif); }
.vdrop small { color: var(--ink2); }
.vdrop:focus-within { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.masonry { columns: 4 230px; column-gap: 1.1rem; }
.vtile { position: relative; break-inside: avoid; margin: 0 0 1.1rem; padding: .55rem .55rem .7rem; background: #FFFEFB; border-radius: 6px; box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 14px 26px -16px rgb(0 0 0 / .4); transform: rotate(var(--tilt)); transition: transform .2s; color: #2A2530; }
.vtile:hover { transform: rotate(0) translateY(-2px); z-index: 2; }
.plain .vtile { transform: none; padding: 0; background: none; box-shadow: none; }
.vt-img { all: unset; cursor: zoom-in; display: block; width: 100%; }
.vt-img img { width: 100%; height: auto; border-radius: 3px; }
.plain .vt-img img { border-radius: var(--r-sm); }
.vt-img:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; }
.vtile figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3rem .6rem; padding: .5rem .2rem 0; min-height: 1.6rem; }
.vtile figcaption .hand { font-size: 1.15rem; line-height: 1.1; color: #9B3768; }
.plain .vtile figcaption .hand { color: var(--ink); font-size: .95rem; }
.vtile .cloud { font-size: .66rem; padding: .25rem .65rem; }
.vt-tools { position: absolute; top: .9rem; right: .9rem; opacity: 0; transition: opacity .15s; }
.vtile:hover .vt-tools, .vtile:focus-within .vt-tools { opacity: 1; }
.vt-tools .icon-btn { background: #FFFEFB; color: #2A2530; box-shadow: var(--soft); }
@media (hover: none) { .vt-tools { opacity: 1; } }
.slides { display: grid; gap: .8rem; }
.slide-stage { position: relative; border-radius: var(--r); overflow: hidden; border: var(--bw) solid var(--line); background: #0F0E12; aspect-ratio: 16 / 9; }
.slide-stage img { width: 100%; height: 100%; object-fit: cover; }
.slide-cap { position: absolute; left: 1.2rem; bottom: 1rem; margin: 0; padding: .45rem 1rem; border-radius: 999px; background: rgb(255 253 249 / .92); }
.slide-cap .hand { font-size: 1.35rem; color: #9B3768; }
.slide-nav { display: flex; justify-content: center; align-items: center; gap: 1rem; }
.slide-thumbs { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: thin; }
.slide-thumbs button { all: unset; cursor: pointer; flex: none; width: 76px; height: 56px; border-radius: 8px; overflow: hidden; opacity: .55; border: 2px solid transparent; }
.slide-thumbs button img { width: 100%; height: 100%; }
.slide-thumbs [aria-current="true"] { opacity: 1; border-color: var(--ink); }
.slide-thumbs button:focus-visible { outline: 2.5px solid var(--accent); }
.lightbox { position: relative; padding: 1rem; display: grid; gap: .8rem; }
.lightbox figure { margin: 0; display: grid; gap: .6rem; justify-items: center; }
.lightbox img { max-height: calc(100dvh - 170px); width: auto; max-width: 100%; border-radius: 8px; object-fit: contain; background: transparent; }
.lightbox figcaption { display: flex; gap: 1rem; align-items: baseline; }
.lightbox .hand { font-size: 1.5rem; color: #F7B8D3; }
.lightbox .icon-btn { color: #F6F2EC; background: rgb(255 255 255 / .1); }
.lightbox .icon-btn:hover { background: rgb(255 255 255 / .2); }
.lb-close { position: absolute; top: .8rem; right: .8rem; z-index: 2; }
.lb-prev, .lb-next { position: absolute; top: 45%; z-index: 2; width: 46px; height: 46px; }
.lb-prev { left: .8rem; } .lb-next { right: .8rem; }
.lb-tools { display: flex; justify-content: center; gap: .5rem; }
.lb-tools .btn { background: rgb(255 255 255 / .1); color: #F6F2EC; border-color: rgb(255 255 255 / .25); }

/* Home: the Grand Vision Board widget */
.vision-hero { position: relative; margin: 0 0 1.6rem; padding: 1.1rem; border: var(--bw) solid var(--line); border-radius: 26px;
  background: repeating-linear-gradient(90deg, var(--stripe-a) 0 18px, var(--stripe-b) 18px 36px); box-shadow: var(--shadow); }
.plain .vision-hero { background: var(--surface); box-shadow: var(--soft); border-color: var(--hair); }
.vh-bar { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; margin: 0 .2rem 1rem; }
.vh-bar .kicker { margin: 0; }
.vh-bar .btn:not(.solid) { background: var(--surface); }
.vh-bar .btn.ghost { background: transparent; }
.collage { display: grid; gap: .9rem; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 120px; }
.collage .cl { all: unset; cursor: zoom-in; position: relative; display: block; overflow: hidden; border-radius: 6px; background: #FFFEFB; padding: 7px; box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 14px 28px -16px rgb(0 0 0 / .45); transition: transform .2s; }
.collage .cl img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }
.collage .cl:hover { transform: translateY(-3px) rotate(0deg) !important; z-index: 2; }
.collage .cl:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.collage .cap { position: absolute; left: 14px; bottom: 12px; padding: .2rem .7rem; border-radius: 999px; background: rgb(255 254 251 / .93); font-size: 1.05rem; line-height: 1.2; color: #9B3768; max-width: calc(100% - 28px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plain .collage .cap { font-family: var(--sans); font-size: .78rem; font-weight: 600; color: #2A2530; }
.collage .c0 { grid-column: span 3; grid-row: span 3; transform: rotate(-1deg); }
.collage .c1 { grid-column: span 2; grid-row: span 2; transform: rotate(1.4deg); }
.collage .c2 { grid-column: span 1; grid-row: span 2; transform: rotate(-1.2deg); }
.collage .c3 { grid-column: span 1; grid-row: span 1; transform: rotate(1deg); }
.collage .c4 { grid-column: span 2; grid-row: span 1; transform: rotate(-.6deg); }
.collage .c5, .collage .c6, .collage .c7, .collage .c8 { grid-column: span 1; grid-row: span 1; transform: rotate(.8deg); }
.collage .c6 { transform: rotate(-1deg); } .collage .c8 { transform: rotate(-.5deg); }
.plain .collage .cl { transform: none; padding: 0; background: none; border-radius: var(--r-sm); }
.collage.n1 .c0 { grid-column: 1 / -1; }
.collage.n2 .c0, .collage.n2 .c1 { grid-column: span 3; grid-row: span 3; }
.collage.n3 .c1, .collage.n3 .c2 { grid-column: span 3; grid-row: span 3; }
.collage.n3 .c1 { grid-row: span 2; } .collage.n3 .c2 { grid-row: span 1; }
@media (max-width: 760px) { .collage { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 120px; } .collage .cl { grid-column: span 1 !important; grid-row: span 1 !important; } .collage .c0 { grid-column: 1 / -1 !important; grid-row: span 2 !important; } .collage .c5, .collage .c6, .collage .c7, .collage .c8 { display: none; } }
.aff-card { position: absolute; right: 2rem; bottom: -1.2rem; z-index: 3; max-width: 360px; margin: 0; padding: .9rem 1.2rem 1rem; border: var(--bw) solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); font: 500 1.1rem/1.35 var(--serif); font-style: italic; transform: rotate(1.2deg); }
.aff-card .label { display: block; font-style: normal; margin-bottom: .3rem; }
.plain .aff-card { transform: none; box-shadow: var(--soft); }
@media (max-width: 760px) { .aff-card { position: relative; right: auto; bottom: auto; margin-top: .9rem; transform: none; max-width: none; } }
.empty-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 1.4rem; padding: 2rem; }
.empty-hero .vh-copy { background: var(--surface); padding: 1.4rem; border-radius: var(--r); border: var(--bw) solid var(--line); }
.empty-hero .vdrop { margin: 0; min-height: 160px; }
@media (max-width: 760px) { .empty-hero { grid-template-columns: minmax(0, 1fr); padding: 1rem; } }
.hero-slides .slide-stage { aspect-ratio: 21 / 9; }
.hello { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; flex-wrap: wrap; margin: 2.4rem 0 1.4rem; }
.hello h1 em { color: var(--accent2); }
.now-strip { display: flex; gap: 1.4rem; padding: .7rem 1.1rem; border: var(--bw) solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; box-shadow: var(--shadow); font-size: .9rem; }
.now-strip.quiet { color: var(--ink2); box-shadow: none; border-color: var(--hair); align-items: center; gap: .5rem; }
.now-strip > span { display: grid; } .now-strip small.label { font-size: .62rem; } .now-strip b { font-weight: 600; }
.plain .now-strip { box-shadow: none; }
.money-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: .8rem; }
.money-mini b { display: block; font: 600 1.55rem/1.1 var(--serif); }
.up-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.up-list a { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: .7rem; align-items: center; padding: .45rem .3rem; border-radius: 10px; text-decoration: none; }
.up-list a:hover { background: var(--surface2); }
.up-list a > .ic { width: 16px; height: 16px; color: var(--muted); }
.up-list small { display: block; font-size: .75rem; }
.date-chip { display: grid; place-items: center; width: 44px; height: 46px; border: var(--bw) solid var(--line); border-radius: 10px; background: var(--surface); line-height: 1; flex: none; }
.date-chip b { font: 600 1.15rem/1 var(--serif); } .date-chip small { font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink2); }
.nudge-list { display: grid; gap: .2rem; }
.nudge-list a { display: flex; gap: .6rem; align-items: center; padding: .45rem .3rem; text-decoration: none; font-size: .88rem; border-radius: 8px; }
.nudge-list a:hover { background: color-mix(in srgb, var(--surface) 55%, transparent); }
.pillars-wrap > summary { display: flex; align-items: center; gap: .8rem; cursor: pointer; list-style: none; margin-bottom: 1rem; }
.pillars-wrap > summary::-webkit-details-marker { display: none; }
.pillars-wrap .chev { transition: transform .2s; } .pillars-wrap[open] .chev { transform: rotate(180deg); }
.pillars { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: .9rem; }
.pillar-tile { display: grid; gap: .35rem; padding: 1rem 1.1rem 1.1rem; border: var(--bw) solid var(--line); border-radius: var(--r); background: color-mix(in srgb, var(--tc) calc(40% * var(--tk)), var(--surface)); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.pillar-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.pillar-tile b { font: 600 1.1rem/1.15 var(--serif); }
.pillar-tile small { color: var(--ink2); font-size: .8rem; }
.pt-ic { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--surface); border: var(--bw) solid var(--line); }
.tour-offer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.tour-offer > div:not(.head-actions) { flex: 1 1 16rem; }
.tour-offer b { font: 600 1.15rem/1.1 var(--serif); }

/* Folders: a tabbed card, with photos peeking out */
.folders, .course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 3.6rem 1.4rem; padding-top: 3.2rem; }
.folder { --tc: var(--t1); position: relative; display: flex; flex-direction: column; }
.folder .peek { position: absolute; left: 14%; right: 14%; top: -3.4rem; height: 4.8rem; z-index: 0; }
.folder .pk { position: absolute; width: 46%; height: 100%; border-radius: 6px; overflow: hidden; background: #FFFEFB; padding: 4px; box-shadow: 0 6px 14px -8px rgb(0 0 0 / .45); }
.folder .pk img { width: 100%; height: 100%; border-radius: 3px; }
.folder .pk0 { left: 0; transform: rotate(-8deg); } .folder .pk1 { left: 27%; transform: rotate(3deg); top: -6px; } .folder .pk2 { right: 0; transform: rotate(10deg); }
.folder .pk.cert { left: 25%; width: 50%; transform: rotate(-3deg); }
.folder-body { position: relative; z-index: 1; flex: 1; display: grid; gap: .45rem; align-content: start; padding: 1.2rem 1.2rem 1rem; border: var(--bw) solid var(--line); border-radius: 0 var(--r) var(--r) var(--r); background: var(--tc); color: var(--on); box-shadow: var(--shadow); }
.folder-body::before { content: ""; position: absolute; left: -1.5px; top: -1.25rem; width: 42%; height: 1.4rem; background: var(--tc); border: var(--bw) solid var(--line); border-bottom: 0; border-radius: 12px 16px 0 0; }
.folder-body::after { content: ""; position: absolute; left: 0; right: 58%; top: -1px; height: 3px; background: var(--tc); }
.plain .folder-body { box-shadow: none; }
.folder h3 { font-size: 1.2rem; }
.folder .label, .folder .muted, .folder .small { color: inherit; }
.folder .ring b { color: var(--on); } .folder .ring .r-fg { stroke: var(--on); } .folder .ring .r-bg { stroke: color-mix(in srgb, var(--on) 15%, transparent); }
.f-top { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; align-items: center; }
.f-top .tag { background: var(--surface); color: var(--ink); }
.f-foot { display: flex; gap: .4rem .8rem; flex-wrap: wrap; align-items: center; margin-top: .4rem; }
.folder .link { color: var(--on); }
.folder .btn { background: var(--surface); color: var(--ink); }
.folder.is-done .folder-body { background: color-mix(in srgb, var(--tc) calc(60% * var(--tk)), var(--surface)); }
.ph-empty { display: grid; place-items: center; width: 100%; height: 100%; min-height: 120px; color: color-mix(in srgb, var(--ink) 35%, transparent); background: repeating-linear-gradient(135deg, var(--surface2) 0 10px, color-mix(in srgb, var(--surface2) 60%, var(--surface)) 10px 20px); }
.ph-empty .ic { width: 34px; height: 34px; }
.ph-empty.sm { min-height: 0; width: 48px; height: 48px; border-radius: 10px; } .ph-empty.sm .ic { width: 20px; height: 20px; }

/* Editor: photos inside the form */
.ed-photos { display: flex; flex-wrap: wrap; gap: .6rem; }
.ed-ph { position: relative; margin: 0; width: 96px; height: 96px; border-radius: 10px; overflow: hidden; border: var(--bw) solid var(--hair); }
.ed-ph img { width: 100%; height: 100%; }
.ed-ph .icon-btn { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; background: rgb(255 255 255 / .9); color: #222; }
.ed-add { display: grid; place-items: center; align-content: center; gap: .3rem; width: 96px; height: 96px; padding: .4rem; border: 2px dashed color-mix(in srgb, var(--line) 35%, var(--hair)); border-radius: 10px; font-size: .72rem; font-weight: 600; text-align: center; cursor: pointer; color: var(--ink2); }
.ed-add:hover { border-color: var(--accent); color: var(--ink); } .ed-add:focus-within { outline: 2.5px solid var(--accent); }
.ed-add.busy { opacity: .6; pointer-events: none; }

/* ---------- Design your life ---------- */
.matrix { display: grid; border: var(--bw) solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.mx-row { display: grid; grid-template-columns: minmax(200px, 1.4fr) repeat(4, minmax(140px, 1fr)); border-top: 1px solid var(--hair); }
.mx-head { border-top: 0; background: var(--surface2); }
.mx-head span { padding: .7rem .9rem; font: 600 .72rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink2); }
.mx-head span.now { color: var(--on); background: var(--t3); }
.mx-goal { display: grid; gap: .45rem; padding: 1rem; align-content: start; border-right: 1px solid var(--hair); }
.mx-goal .cloud { justify-self: start; font-size: .64rem; padding: .22rem .65rem; }
.mx-cell { padding: .7rem; display: grid; gap: .4rem; align-content: start; border-right: 1px solid var(--hair); }
.mx-cell:last-child { border-right: 0; }
.mx-cell.now { background: color-mix(in srgb, var(--t3) calc(25% * var(--tk)), var(--surface)); }
.ms { display: flex; gap: .45rem; align-items: flex-start; font-size: .85rem; }
.ms.done .ms-t { text-decoration: line-through; color: var(--muted); }
.ms-t { all: unset; cursor: pointer; line-height: 1.35; } .ms-t:focus-visible { outline: 2px solid var(--accent); }
.mini-add { all: unset; cursor: pointer; display: grid; place-items: center; height: 28px; border: 1.5px dashed var(--hair); border-radius: 8px; color: var(--muted); }
.mini-add:hover { border-color: var(--line); color: var(--ink); } .mini-add:focus-visible { outline: 2px solid var(--accent); }
.mini-add .ic { width: 14px; height: 14px; }
@media (max-width: 900px) { .matrix { overflow-x: auto; } .mx-row { min-width: 760px; } }
.tick { display: inline-grid; place-items: center; width: 24px; height: 24px; flex: none; padding: 0; border: var(--bw) solid var(--line); border-radius: 50%; background: var(--surface); color: transparent; cursor: pointer; }
.tick .ic { width: 14px; height: 14px; }
.tick[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.tick:hover { color: var(--muted); } .tick[aria-pressed="true"]:hover { color: var(--paper); }
.bucket-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: .7rem; margin-bottom: .5rem; }
.bc { all: unset; cursor: pointer; display: grid; gap: .3rem; padding: .8rem .9rem; border: var(--bw) solid var(--line); border-radius: var(--r-sm); background: color-mix(in srgb, var(--tc, var(--surface2)) 50%, var(--surface)); }
.bc.all { --tc: var(--surface2); }
.bc[aria-pressed="true"] { box-shadow: var(--shadow); background: var(--tc, var(--surface2)); }
.bc b { font: 600 1rem/1.1 var(--serif); } .bc span { font-size: .8rem; }
.bc:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.affirm-hero { position: relative; padding: clamp(2rem, 6vw, 4rem) clamp(1.4rem, 6vw, 4rem); border: var(--bw) solid var(--line); border-radius: 26px; text-align: center; background: repeating-linear-gradient(90deg, var(--stripe-a) 0 18px, var(--stripe-b) 18px 36px); box-shadow: var(--shadow); }
.plain .affirm-hero { background: var(--surface); }
.affirm-hero blockquote { margin: .8rem auto 0; max-width: 34ch; padding: 1.4rem 1.6rem; background: var(--surface); border-radius: 16px; border: var(--bw) solid var(--line); font: 500 clamp(1.4rem, 3.4vw, 2.2rem)/1.25 var(--serif); font-style: italic; letter-spacing: -.01em; }
.affirm-hero .label { background: var(--surface); padding: .3rem .7rem; border-radius: 999px; border: var(--bw) solid var(--line); }
.affirm-hero .spk { position: absolute; width: 34px; height: 34px; } .affirm-hero .spk.a { top: 1.4rem; left: 2rem; fill: var(--t2); } .affirm-hero .spk.b { bottom: 1.6rem; right: 2.4rem; width: 26px; height: 26px; }
.star-btn { all: unset; cursor: pointer; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--muted); flex: none; }
.star-btn[aria-pressed="true"] { color: var(--warn); }
.star-btn:hover { background: var(--surface2); } .star-btn:focus-visible { outline: 2px solid var(--accent); }
.log-entry { padding: .8rem 0; border-top: 1px solid var(--hair); }
.log-entry p { margin: .3rem 0 0; font-family: var(--serif); font-style: italic; }
.future-meta { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.future-meta p { margin: 0; }
.letters { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1.2rem; }
.letter { display: grid; gap: .6rem; padding: 1.3rem 1.4rem 1rem; border: var(--bw) solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.plain .letter { box-shadow: var(--soft); border-color: var(--hair); }
.letter h3 { font-weight: 500; font-style: italic; font-size: 1.15rem; }
.lined { border: 0; border-radius: 0; padding: .2rem 0; background: repeating-linear-gradient(transparent 0 1.54rem, var(--hair) 1.54rem 1.6rem); line-height: 1.6rem; font-size: .95rem; }
.lined:focus { outline: none; box-shadow: 0 2px 0 var(--accent); }
.letter-foot { display: flex; justify-content: space-between; align-items: center; }

/* ---------- Time ---------- */
.day-nav { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: 0 0 1.2rem; }
.day-nav b { font: 600 1.45rem/1 var(--serif); }
.top3, .tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.task { display: flex; gap: .65rem; align-items: center; padding: .55rem .7rem; border: 1px solid var(--hair); border-radius: 12px; background: var(--surface); }
.task.done .t-title { text-decoration: line-through; color: var(--muted); }
.t-title { all: unset; cursor: pointer; flex: 1; min-width: 0; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.t-title:focus-visible { outline: 2px solid var(--accent); }
.top3 { counter-reset: top; }
.top3 > li { counter-increment: top; position: relative; padding-left: 2.2rem; }
.top3 > li::before { content: counter(top); position: absolute; left: .4rem; top: 50%; transform: translateY(-50%); font: italic 600 1.3rem/1 var(--serif); color: var(--accent2); }
.top3 > li.slot { padding: .2rem 0 .2rem 2.2rem; border: 0; }
.top3 .task { background: var(--surface); }
.late { margin-top: .8rem; } .late summary { cursor: pointer; font-size: .85rem; font-weight: 600; color: var(--warn); margin-bottom: .5rem; }
.timeline { position: relative; margin-left: 4.2rem; border-left: var(--bw) solid var(--hair); }
.tl-hour { all: unset; position: absolute; left: 0; right: 0; border-top: 1px dashed var(--hair); cursor: copy; box-sizing: border-box; }
.tl-hour:hover { background: color-mix(in srgb, var(--t1) 25%, transparent); }
.tl-hour:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.tl-hour span { position: absolute; left: -4.2rem; top: -.55rem; width: 3.8rem; text-align: right; font-size: .7rem; color: var(--muted); white-space: nowrap; }
.blk { all: unset; box-sizing: border-box; position: absolute; left: .5rem; right: .3rem; z-index: 1; padding: .35rem .7rem; border: var(--bw) solid var(--line); border-radius: 10px; background: var(--tc, var(--t1)); color: var(--on); cursor: pointer; overflow: hidden; display: flex; flex-direction: column; gap: 1px; }
.blk.k-focus { --tc: var(--t1); } .blk.k-meeting { --tc: var(--t2); } .blk.k-admin { --tc: var(--t3); } .blk.k-personal { --tc: var(--t4); } .blk.k-break { --tc: var(--t5); background: repeating-linear-gradient(135deg, var(--t5) 0 8px, color-mix(in srgb, var(--t5) 55%, #fff) 8px 16px); }
.blk b { font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blk small { font-size: .72rem; opacity: .85; white-space: nowrap; }
.blk.short { flex-direction: row; align-items: center; gap: .6rem; padding-block: 0; }
.blk:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.tl-now { position: absolute; left: -6px; right: 0; height: 0; border-top: 2px solid var(--bad); z-index: 2; pointer-events: none; }
.tl-now::before { content: ""; position: absolute; left: -1px; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--bad); }
.tl-now span { position: absolute; right: 0; top: -1.2rem; font-size: .66rem; font-weight: 700; background: #A31F2B; color: #fff; padding: .05rem .45rem; border-radius: 6px; }
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: .8rem; overflow-x: auto; padding-bottom: .6rem; scroll-snap-type: x proximity; }
.kcol { display: grid; align-content: start; gap: .5rem; padding: .8rem; border: var(--bw) solid var(--hair); border-radius: var(--r); background: color-mix(in srgb, var(--surface) 80%, transparent); min-height: 220px; scroll-snap-align: start; }
.kcol.is-today { border-color: var(--line); background: color-mix(in srgb, var(--t1) calc(30% * var(--tk)), var(--surface)); }
.kcol.someday { background: var(--surface2); }
.kcol.over { outline: 2.5px dashed var(--accent); }
.kcol header { display: flex; justify-content: space-between; align-items: baseline; }
.kcol header .link-strong { font: 600 1rem/1 var(--serif); } .kcol header .link-strong span { color: var(--muted); }
.kcol .task { padding: .45rem .55rem; font-size: .86rem; cursor: grab; }
.kcol .task.dragging { opacity: .4; }
.kcol .quick { margin: 0; } .kcol .quick .input { font-size: .82rem; padding: .35rem .6rem; }
.hab-mini { display: grid; gap: .55rem; margin-bottom: .6rem; }
.hab-mini > div { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: .6rem; align-items: center; font-size: .85rem; }
.cal { border: var(--bw) solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-head span { padding: .6rem; font: 600 .7rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink2); background: var(--surface2); }
.cal-day { all: unset; cursor: pointer; box-sizing: border-box; display: flex; flex-direction: column; gap: .2rem; min-height: 106px; padding: .45rem; border-top: 1px solid var(--hair); border-right: 1px solid var(--hair); overflow: hidden; }
.cal-day:nth-child(7n) { border-right: 0; }
.cal-day:hover { background: var(--surface2); } .cal-day:focus-visible { outline: 2.5px solid var(--accent); outline-offset: -3px; }
.cal-day.out { color: var(--muted); background: color-mix(in srgb, var(--surface2) 40%, var(--surface)); }
.cal-day.is-today .cd-n { background: var(--ink); color: var(--paper); }
.cd-n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font: 600 .9rem/1 var(--serif); }
.cal-ev { display: flex; gap: .25rem; align-items: center; font-size: .7rem; font-weight: 600; padding: .1rem .35rem; border-radius: 5px; background: color-mix(in srgb, var(--t2) calc(55% * var(--tk)), var(--surface)); color: var(--on); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev .ic { width: 11px; height: 11px; }
.cal-more { font-size: .7rem; color: var(--muted); }
.cal-dots { display: flex; gap: 3px; margin-top: auto; } .cal-dots i { width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--line); } .cal-dots i.on { background: var(--ink); }
@media (max-width: 700px) { .cal-day { min-height: 64px; padding: .25rem; } .cal-ev { font-size: 0; padding: 2px; width: 8px; height: 8px; border-radius: 50%; } .cal-ev .ic { display: none; } }
.year-bar { display: grid; gap: .5rem; margin-bottom: 1.4rem; }
.yb-months { display: grid; grid-template-columns: repeat(12, 1fr); font-size: .68rem; color: var(--muted); }
.months { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 1rem; }
.mcard { padding: 1rem 1.1rem; border: var(--bw) solid var(--hair); border-radius: var(--r); background: var(--surface); min-height: 150px; }
.mcard.is-now { border-color: var(--line); background: color-mix(in srgb, var(--tc) calc(40% * var(--tk)), var(--surface)); box-shadow: var(--shadow); }
.mcard header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.mcard h3 { font-size: 1.2rem; }
.mcard ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; font-size: .84rem; }
.mcard li { display: flex; gap: .45rem; align-items: flex-start; } .mcard li .ic { width: 14px; height: 14px; margin-top: .2rem; color: var(--muted); }
.dump-hero { max-width: 640px; margin-bottom: 1.4rem; } .dump-hero .dumpbox { padding: .45rem .45rem .45rem 1rem; box-shadow: var(--shadow); } .dump-hero .input { font-size: 1.05rem; }
.inbox { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.ib { display: grid; gap: .7rem; padding: 1rem 1.1rem; border: var(--bw) solid var(--hair); border-radius: var(--r); background: var(--surface); }
.ib > div:first-child { display: grid; gap: .15rem; } .ib b { font-weight: 600; } .ib a { display: inline-flex; gap: .3rem; align-items: center; color: var(--accent); }
.ib-acts { display: flex; gap: .35rem; flex-wrap: wrap; }
.focus-card { display: grid; justify-items: center; gap: 1rem; text-align: center; }
.focus-card .face { display: grid; justify-items: center; gap: .4rem; }
.focus-card .ring { width: 210px; height: 210px; }
.focus-card .ring .r-bg, .focus-card .ring .r-fg { stroke-width: 5; }
.focus-card .ring b { font: 600 2.6rem/1 var(--serif); letter-spacing: -.02em; }
.focus-card .input { max-width: 360px; text-align: center; background: var(--surface); }
.presets { display: flex; gap: .4rem; }

/* ---------- Wealth ---------- */
.zero-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.2rem; align-items: center; padding: 1.1rem 1.3rem; border: var(--bw) solid var(--line); border-radius: var(--r); background: repeating-linear-gradient(90deg, var(--stripe-a) 0 14px, var(--stripe-b) 14px 28px); }
.zero-band > div { background: var(--surface); padding: .7rem 1rem; border-radius: 12px; }
.zero-band p { margin: .2rem 0 0; font-weight: 500; }
.zero-band.is-zero > div { background: color-mix(in srgb, var(--t4) calc(60% * var(--tk)), var(--surface)); }
.plain .zero-band { background: var(--surface); }
@media (max-width: 700px) { .zero-band { grid-template-columns: minmax(0, 1fr); } }
.envs { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.envs li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .3rem .8rem; align-items: center; }
.envs .bar { grid-column: 1 / -1; }
.envs small { grid-column: 1 / -1; font-size: .76rem; }
.env-name { all: unset; cursor: pointer; font-weight: 600; } .env-name:focus-visible { outline: 2px solid var(--accent); }
.alerts { display: grid; gap: .5rem; margin-bottom: 1.2rem; }
.alert { display: flex; gap: .8rem; align-items: center; padding: .7rem 1rem; border-radius: 14px; border: var(--bw) solid var(--line); background: color-mix(in srgb, var(--t3) calc(50% * var(--tk)), var(--surface)); color: var(--on); }
.alert.overdue { background: color-mix(in srgb, var(--t2) calc(60% * var(--tk)), var(--surface)); }
.alert > span { flex: 1; } .alert .btn { background: var(--surface); color: var(--ink); }
.bill-table, .net-table, .vault-table { border: var(--bw) solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.bt-row, .nt-row, .vt-row { display: grid; gap: .8rem; align-items: center; padding: .7rem 1.1rem; border-top: 1px solid var(--hair); font-size: .9rem; }
.bt-row { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr) minmax(0, .9fr) minmax(0, .7fr) minmax(0, .7fr) auto; }
.bt-head, .nt-head, .vt-head { border-top: 0; background: var(--surface2); font: 600 .7rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink2); }
.bt-row > span:first-child { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.bt-row .r, .vt-row .r { text-align: right; justify-self: end; display: flex; gap: .3rem; align-items: center; }
.bt-row .overdue { color: var(--bad); font-weight: 600; } .bt-row .soon { color: var(--warn); font-weight: 600; }
@media (max-width: 760px) { .bt-row { grid-template-columns: minmax(0, 1fr) auto; } .bt-row > span:nth-child(3), .bt-row > span:nth-child(5) { display: none; } .bt-row > span:nth-child(2) { grid-column: 1; grid-row: 2; font-size: .8rem; } .bt-head { display: none; } }
.sub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: .7rem; }
.sub-chip { display: grid; gap: .1rem; padding: .8rem .9rem; border: var(--bw) dashed color-mix(in srgb, var(--line) 35%, var(--hair)); border-radius: 12px; }
.sub-chip b { font: 600 1rem/1.2 var(--serif); }
.nw-hero { display: grid; justify-items: center; gap: .4rem; padding: 2rem 1rem; border: var(--bw) solid var(--line); border-radius: 26px; text-align: center; background: repeating-linear-gradient(90deg, var(--stripe-a) 0 18px, var(--stripe-b) 18px 36px); box-shadow: var(--shadow); }
.nw-hero .big { background: var(--surface); padding: .5rem 1.2rem; border-radius: 16px; border: var(--bw) solid var(--line); font-size: clamp(2.2rem, 6vw, 3.6rem); }
.nw-hero .label { background: var(--surface); padding: .3rem .7rem; border-radius: 999px; }
.nw-split { display: flex; gap: .8rem; align-items: baseline; background: var(--surface); padding: .35rem .9rem; border-radius: 999px; font-weight: 600; }
.nw-split small { font-weight: 400; color: var(--ink2); }
.plain .nw-hero { background: var(--surface); }
.funds { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 1.2rem; }
.fund { display: grid; border: var(--bw) solid var(--line); border-radius: var(--r); overflow: hidden; background: color-mix(in srgb, var(--tc) calc(35% * var(--tk)), var(--surface)); box-shadow: var(--shadow); }
.fund-ph { height: 130px; } .fund-ph img { width: 100%; height: 100%; }
.fund-body { display: grid; gap: .45rem; padding: 1.1rem 1.2rem; position: relative; }
.fund-body h3 { font-size: 1.25rem; padding-right: 3rem; }
.fund-body p { margin: 0; }
.jar { position: absolute; top: 1.1rem; right: 1.1rem; width: 36px; height: 48px; border: var(--bw) solid var(--line); border-radius: 8px 8px 12px 12px; overflow: hidden; background: var(--surface); }
.jar::before { content: ""; position: absolute; top: -1px; left: 6px; right: 6px; height: 6px; border: var(--bw) solid var(--line); border-top: 0; border-radius: 0 0 4px 4px; background: var(--surface2); z-index: 1; }
.jar i { position: absolute; inset: auto 0 0 0; background: var(--tc); border-top: var(--bw) solid var(--line); }
.debt-hero { display: grid; gap: .7rem; align-content: start; }
.debt-hero .big { font-size: clamp(2rem, 5vw, 2.8rem); }
.debt-hero .field { max-width: 220px; }
.order { margin: 0; padding-left: 1.3rem; display: grid; gap: .4rem; }
.debts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 1rem; }
.debt-card { display: grid; gap: .4rem; padding: 1.1rem 1.2rem; border: var(--bw) solid var(--line); border-radius: var(--r); background: var(--surface); }
.debt-card header { display: flex; gap: .5rem; align-items: center; } .debt-card header h3 { flex: 1; }
.debt-card > b { font: 600 1.7rem/1 var(--serif); }
.debt-card .btn { justify-self: start; margin-top: .3rem; }
.ns-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .5rem; max-width: 620px; margin-bottom: 1rem; }
.ns { all: unset; cursor: pointer; box-sizing: border-box; aspect-ratio: 1; display: grid; place-items: center; align-content: center; gap: 2px; border: var(--bw) solid var(--hair); border-radius: 12px; background: var(--surface); font-size: .8rem; }
.ns b { font: 600 .95rem/1 var(--serif); }
.ns .ic { width: 16px; height: 16px; }
.ns.yes { background: var(--t4); border-color: var(--line); color: var(--on); }
.ns.no { background: var(--surface2); color: var(--muted); }
.ns.is-today { outline: 2px solid var(--accent); outline-offset: 2px; }
.ns[disabled] { opacity: .35; cursor: default; }
.ns:focus-visible { outline: 2.5px solid var(--accent); }

/* ---------- Wellness ---------- */
.hab-card { overflow-x: auto; }
.hab-table { display: grid; gap: .45rem; min-width: 520px; }
.hab-row { display: grid; grid-template-columns: minmax(150px, 1.6fr) repeat(7, minmax(34px, 46px)) minmax(56px, 70px); gap: .4rem; align-items: center; }
.hab-row.head span { font: 600 .66rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: center; }
.hab-row.head span:first-child { text-align: left; }
.hab-row.head small { display: block; font-size: .75rem; color: var(--ink2); }
.hab-row.head .is-today small { background: var(--ink); color: var(--paper); border-radius: 999px; }
.hab-name { all: unset; cursor: pointer; display: flex; gap: .45rem; align-items: center; font-size: .9rem; font-weight: 500; }
.hab-name .ic { width: 16px; height: 16px; color: var(--accent); }
.cbox { all: unset; cursor: pointer; box-sizing: border-box; width: 100%; aspect-ratio: 1; max-height: 44px; display: grid; place-items: center; border: var(--bw) solid color-mix(in srgb, var(--line) 30%, var(--hair)); border-radius: 10px; background: var(--surface); }
.cbox[aria-pressed="true"] { background: var(--t4); border-color: var(--line); color: var(--on); }
.cbox[disabled] { opacity: .3; cursor: default; }
.cbox:focus-visible { outline: 2.5px solid var(--accent); }
.hab-pct { display: grid; justify-items: end; } .hab-pct b { font: 600 1rem/1 var(--serif); } .hab-pct small { font-size: .7rem; color: var(--muted); }
.hab-pct.hit b { color: var(--good); }
.hab-ticks { display: grid; gap: .45rem; }
.hab-tick { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: .6rem; align-items: center; padding: .55rem .8rem; border: var(--bw) solid var(--hair); border-radius: 999px; font-size: .88rem; background: var(--surface); }
.hab-tick .ic { width: 18px; height: 18px; color: var(--muted); }
.hab-tick[aria-pressed="true"] { background: color-mix(in srgb, var(--t4) calc(70% * var(--tk)), var(--surface)); border-color: var(--line); }
.hab-tick[aria-pressed="true"] .ic { color: var(--on); }
.hab-tick small { color: var(--muted); }
.hab-tick:focus-visible { outline: 2.5px solid var(--accent); }
.card.center { display: grid; justify-items: center; text-align: center; gap: .5rem; }
.card.center .ring { width: 120px; height: 120px; } .card.center .ring b { font-size: 1.5rem; }
.meal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .6rem; }
@media (max-width: 1100px) { .meal-week { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); } }
.meal-day { display: grid; gap: .5rem; align-content: start; padding: .8rem; border: var(--bw) solid var(--hair); border-radius: var(--r); background: var(--surface); }
.meal-day.is-today { border-color: var(--line); background: color-mix(in srgb, var(--t3) calc(40% * var(--tk)), var(--surface)); }
.meal-day header { display: flex; justify-content: space-between; align-items: baseline; } .meal-day header b { font: 600 1.1rem/1 var(--serif); } .meal-day header small { color: var(--muted); font-size: .72rem; }
.meal-day .slot { display: grid; gap: .25rem; } .meal-day .slot .label { font-size: .6rem; }
.meal { all: unset; cursor: pointer; box-sizing: border-box; display: grid; overflow: hidden; border: 1px solid var(--hair); border-radius: 10px; background: var(--surface); font-size: .8rem; font-weight: 600; }
.meal span { padding: .35rem .5rem; } .meal img { height: 64px; width: 100%; }
.meal:focus-visible, .meal-add:focus-visible { outline: 2px solid var(--accent); }
.meal-add { all: unset; cursor: pointer; display: grid; place-items: center; height: 32px; border: 1.5px dashed var(--hair); border-radius: 10px; color: var(--muted); }
.meal-add:hover { border-color: var(--line); color: var(--ink); } .meal-add .ic { width: 15px; height: 15px; }
.recipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 1.1rem; }
.recipe { display: grid; border: var(--bw) solid var(--line); border-radius: var(--r); overflow: hidden; background: color-mix(in srgb, var(--tc) calc(30% * var(--tk)), var(--surface)); box-shadow: var(--shadow); }
.rc-ph { all: unset; cursor: pointer; display: block; height: 170px; } .rc-ph img { width: 100%; height: 100%; } .rc-ph:focus-visible { outline: 2.5px solid var(--accent); outline-offset: -3px; }
.rc-body { display: grid; gap: .3rem; padding: .9rem 1rem 1rem; } .rc-body h3 { font-size: 1.1rem; } .rc-body p { margin: 0; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; }
.checklist li { display: flex; gap: .4rem; align-items: center; padding: .35rem 0; border-bottom: 1px solid var(--hair); }
.checklist label { flex: 1; display: flex; gap: .65rem; align-items: center; cursor: pointer; font-size: .9rem; min-width: 0; }
.checklist input[type=checkbox] { appearance: none; width: 20px; height: 20px; flex: none; border: var(--bw) solid var(--line); border-radius: 6px; background: var(--surface); cursor: pointer; display: grid; place-items: center; }
.checklist input[type=checkbox]:checked { background: var(--ink); }
.checklist input[type=checkbox]:checked::after { content: ""; width: 9px; height: 5px; border: 2px solid var(--paper); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.checklist input:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.checklist input:checked + span { text-decoration: line-through; color: var(--muted); }
.checklist.done li { opacity: .7; }
h3.aisle { font: 600 .7rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink2); margin: 1rem 0 .3rem; }
.routine { padding: .3rem 0 1rem; } .routine + .routine { border-top: 1px solid var(--hair); padding-top: 1rem; }
.routine header { display: flex; gap: .5rem; align-items: center; margin-bottom: .5rem; } .routine header b { flex: 1; font: 600 1.05rem/1.2 var(--serif); }
.routine .bar { margin-bottom: .3rem; }
.pr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.pr-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .6rem; align-items: center; padding: .5rem .7rem; border-radius: 12px; background: color-mix(in srgb, var(--surface) 70%, transparent); }
.pr-list .ic { color: var(--warn); }

/* ---------- Mind ---------- */
.mood-pick { display: grid; gap: .7rem; }
.mp-row { display: grid; grid-template-columns: 4.5rem repeat(5, minmax(0, 1fr)); gap: .4rem; align-items: center; }
.mp { all: unset; cursor: pointer; box-sizing: border-box; display: grid; justify-items: center; gap: .2rem; padding: .5rem .2rem; border: var(--bw) solid var(--hair); border-radius: 14px; background: var(--surface); font-size: .72rem; font-weight: 600; color: var(--ink2); text-align: center; }
.mp .ic { width: 24px; height: 24px; }
.mp[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.mp:focus-visible { outline: 2.5px solid var(--accent); }
.mp.en i { display: block; width: 26px; height: 14px; border: var(--bw) solid currentColor; border-radius: 4px; background: linear-gradient(90deg, currentColor calc(var(--n) * 20%), transparent 0); }
@media (max-width: 520px) { .mp-row { grid-template-columns: repeat(5, minmax(0, 1fr)); } .mp-row > .label { grid-column: 1 / -1; } .mp span { font-size: .64rem; } }
.mood-tags { margin: 1rem 0 .4rem; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; }
.notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.1rem; }
.note-card { display: grid; gap: .45rem; align-content: start; padding: 1.1rem 1.2rem; border: var(--bw) dashed color-mix(in srgb, var(--line) 50%, var(--hair)); border-radius: var(--r); background: var(--surface); }
.note-card.tone { background: color-mix(in srgb, var(--tc) calc(35% * var(--tk)), var(--surface)); }
.note-card header { display: flex; gap: .6rem; align-items: center; } .note-card header .icon-btn { margin-left: auto; }
.note-card p { margin: 0; font-size: .9rem; }
.note-card .q { font-weight: 600; font-size: .78rem; color: var(--ink2); margin-top: .3rem; }
.intensity { letter-spacing: .1em; color: var(--accent2); font-size: .8rem; }
.grat-form { display: grid; gap: .7rem; }
.grat-line { display: grid; grid-template-columns: 2rem minmax(0, 1fr); align-items: center; gap: .4rem; }
.grat-line .num { font: italic 600 1.5rem/1 var(--serif); color: var(--accent2); }
.grat-line .input { background: var(--surface); }
.grat-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: .9rem; }
.grat { padding: .9rem 1rem; border: 1px solid var(--hair); border-radius: var(--r-sm); background: var(--surface); }
.grat ul { margin: .4rem 0 0; padding-left: 1.1rem; font-size: .9rem; display: grid; gap: .2rem; }
.bars-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.bars-list li { display: grid; grid-template-columns: 7rem minmax(0, 1fr) 2rem; gap: .7rem; align-items: center; font-size: .88rem; }

/* ---------- Second brain ---------- */
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1.4rem 1.1rem; align-items: end; }
.book { margin: 0; display: grid; gap: .5rem; }
.cover { all: unset; box-sizing: border-box; cursor: pointer; position: relative; display: grid; align-content: space-between; aspect-ratio: 2 / 3; padding: .9rem .75rem; border: var(--bw) solid var(--line); border-radius: 4px 10px 10px 4px; background: var(--tc); color: var(--on); overflow: hidden; box-shadow: inset 7px 0 0 rgb(0 0 0 / .08), var(--shadow); }
.cover.has-img { padding: 0; } .cover img { width: 100%; height: 100%; }
.cover .ct { font: 600 1rem/1.15 var(--serif); } .cover .ca { font-size: .72rem; }
.cover.sm { width: 92px; flex: none; } .cover.sm span { font: 600 .8rem/1.1 var(--serif); }
.cover:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; }
.book figcaption { display: grid; gap: .15rem; font-size: .84rem; } .book figcaption small { font-size: .74rem; }
.now-reading { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 1rem; }
.nr { display: flex; gap: 1rem; padding: 1rem; border: var(--bw) solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.nr > div { display: grid; gap: .35rem; align-content: start; flex: 1; } .nr p { margin: 0; } .nr form { margin-top: .3rem; }
.idea-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 1rem; }
.idea { display: grid; gap: .5rem; align-content: start; padding: 1.1rem 1.2rem; border: var(--bw) solid var(--hair); border-radius: var(--r); background: var(--surface); }
.idea header { display: flex; justify-content: space-between; align-items: center; } .idea header .ic { width: 13px; height: 13px; vertical-align: -2px; }
.idea p { margin: 0; } .idea footer { display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; margin-top: .2rem; }
.idea footer .link { display: inline-flex; gap: .3rem; align-items: center; } .idea footer .ic { width: 14px; height: 14px; }
.roadmap { margin-bottom: 1.2rem; }
.path { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; position: relative; }
.path li { position: relative; display: flex; gap: .8rem; align-items: center; padding: .45rem 0; }
.path li::before { content: ""; position: absolute; left: 17px; top: -50%; bottom: 50%; width: 2px; background: var(--hair); z-index: 0; }
.path li:first-child::before { display: none; }
.path li.done::before, .path li.next::before { background: var(--ink); }
.node { all: unset; cursor: pointer; position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; flex: none; border: var(--bw) solid var(--line); border-radius: 50%; background: var(--surface); font: 600 .9rem/1 var(--serif); }
.path li.done .node { background: var(--ink); color: var(--paper); }
.path li.next .node { background: var(--t3); color: var(--on); box-shadow: 0 0 0 4px color-mix(in srgb, var(--t3) 50%, transparent); }
.path li.add .node { border-style: dashed; color: var(--muted); }
.node:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.p-title { all: unset; cursor: pointer; font-weight: 500; } .path li.done .p-title { color: var(--muted); text-decoration: line-through; }

/* ---------- People ---------- */
.avatar { --tc: var(--t1); display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; overflow: hidden; border: var(--bw) solid var(--line); background: var(--tc); color: var(--on); font: 600 .95rem/1 var(--serif); }
.avatar img { width: 100%; height: 100%; }
.avatar.sm { width: 34px; height: 34px; font-size: .78rem; } .avatar.sm .ic { width: 16px; height: 16px; }
.avatar.lg { width: 78px; height: 78px; font-size: 1.4rem; }
.nudges { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: .8rem; margin-bottom: 1.4rem; }
.nudge { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; padding: .9rem 1rem; border: var(--bw) solid var(--line); border-radius: var(--r); background: color-mix(in srgb, var(--t2) calc(40% * var(--tk)), var(--surface)); }
.nudge p { flex: 1 1 12rem; margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.02rem; line-height: 1.3; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1rem; }
.person { display: flex; gap: 1rem; padding: 1.1rem; border: var(--bw) solid var(--hair); border-radius: var(--r); background: var(--surface); }
.pp { all: unset; cursor: pointer; border-radius: 50%; } .pp:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.pbody { display: grid; gap: .3rem; flex: 1; min-width: 0; align-content: start; } .pbody p { margin: 0; } .pbody .ic { width: 13px; height: 13px; vertical-align: -2px; }
.p-acts { display: flex; flex-wrap: wrap; gap: .2rem; margin-top: .2rem; margin-left: -.6rem; }
.timeline-months { display: grid; gap: 1.6rem; max-width: 820px; }
.tm h3 { font-size: 1.35rem; margin-bottom: .6rem; }
.tm ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.tm li { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; padding: .6rem .8rem; border: 1px solid var(--hair); border-radius: 14px; background: var(--surface); }
.tm li > span:nth-child(3) { flex: 1 1 10rem; display: grid; } .tm li small { font-size: .78rem; }
.tm li.soon { border-color: var(--line); background: color-mix(in srgb, var(--t2) calc(30% * var(--tk)), var(--surface)); }
.gift-group { margin-bottom: 1.6rem; }
.gift-group > header { display: flex; gap: .7rem; align-items: center; margin-bottom: .7rem; } .gift-group h3 { font-size: 1.25rem; } .gift-group header .ic { width: 13px; height: 13px; }
.gift-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: .8rem; }
.gift-card { display: grid; gap: .35rem; align-content: start; padding: .9rem 1rem; border: var(--bw) solid var(--hair); border-radius: var(--r-sm); background: var(--surface); }
.gift-card h4 { font: 600 1.05rem/1.2 var(--serif); } .gift-card p { margin: 0; } .gift-card .tag { justify-self: start; }
.gift-card footer { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: .2rem; }
.gift-card.given { opacity: .7; }
.event-list, .trip-list { display: grid; gap: .5rem; align-content: start; }
.ev, .trip { all: unset; cursor: pointer; box-sizing: border-box; display: flex; gap: .7rem; align-items: center; padding: .6rem .7rem; border: var(--bw) solid var(--hair); border-radius: 14px; background: var(--surface); }
.ev > span:last-child, .trip > span:last-child { display: grid; min-width: 0; } .ev small, .trip small { font-size: .76rem; }
.ev.on, .trip.on { border-color: var(--line); box-shadow: var(--shadow); background: color-mix(in srgb, var(--t1) calc(30% * var(--tk)), var(--surface)); }
.ev.past { opacity: .65; }
.ev:focus-visible, .trip:focus-visible { outline: 2.5px solid var(--accent); }
.trip img { width: 48px; height: 48px; border-radius: 10px; flex: none; }
.guest { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex: 1; font-size: .9rem; }
.rsvp { all: unset; cursor: pointer; font-size: .7rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; border: 1px solid var(--hair); }
.rsvp.yes { background: var(--t4); color: var(--on); } .rsvp.no { background: var(--surface2); color: var(--muted); text-decoration: line-through; } .rsvp.maybe { background: var(--t3); color: var(--on); }
.rsvp:focus-visible { outline: 2px solid var(--accent); }

/* ---------- Career ---------- */
.headshots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .9rem; }
.hs { all: unset; cursor: zoom-in; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; background: #FFFEFB; padding: 6px; box-shadow: 0 10px 24px -14px rgb(0 0 0 / .5); }
.hs img { width: 100%; height: 100%; border-radius: 3px; } .hs:focus-visible { outline: 2.5px solid var(--accent); }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 1rem; }
.asset { display: grid; gap: .5rem; align-content: start; padding: 1.1rem 1.2rem; border: var(--bw) solid var(--line); border-radius: var(--r); background: color-mix(in srgb, var(--tc) calc(35% * var(--tk)), var(--surface)); }
.asset header { display: flex; justify-content: space-between; align-items: center; }
.asset .bio { margin: 0; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.asset .btn { justify-self: start; }
.project { margin-bottom: 1.2rem; }
.pj-head { display: flex; gap: 1rem; align-items: flex-start; flex-wrap: wrap; } .pj-head > div:nth-child(2), .pj-head > div:first-child:not(.pj-ph) { flex: 1 1 18rem; }
.pj-ph { all: unset; cursor: zoom-in; width: 120px; height: 90px; border-radius: 10px; overflow: hidden; border: var(--bw) solid var(--line); flex: none; } .pj-ph img { width: 100%; height: 100%; }
.pj-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .7rem; margin: 1rem 0 .7rem; }
.pj-steps { list-style: none; padding: 0; margin: 1rem 0 .7rem; display: grid; gap: .35rem; }
.pj-steps li { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; padding: .45rem .6rem; border-radius: 10px; border: 1px solid var(--hair); }
.pj-steps li.done .t-title { text-decoration: line-through; color: var(--muted); }
.pj-steps li.late { border-color: var(--warn); }
.streams { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: .8rem; }
.stream { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .2rem .6rem; align-items: center; padding: .9rem 1rem; border: 1px solid var(--hair); border-radius: var(--r-sm); background: var(--surface); }
.stream b { font: 600 1.05rem/1.2 var(--serif); } .stream span.num, .stream small { grid-column: 2; }
.nt-row { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(0, 1.2fr) minmax(0, .7fr) auto; }
.nt-row > span:first-child { display: flex; gap: .3rem; align-items: center; }
@media (max-width: 760px) { .nt-row { grid-template-columns: minmax(0, 1fr) auto; } .nt-row > span:nth-child(3) { display: none; } .nt-row > span:nth-child(2) { grid-column: 1; font-size: .8rem; } .nt-head { display: none; } }

/* ---------- Explore ---------- */
.map-card { padding: 1rem; background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--stripe-a) 35%, var(--surface)) 0 18px, var(--surface) 18px 36px); }
.plain .map-card { background: var(--surface); }
.world { margin: 0; }
.world svg { width: 100%; height: auto; display: block; }
.world .land circle { fill: color-mix(in srgb, var(--ink) 22%, var(--surface)); }
.pin { cursor: pointer; outline: none; }
.pin .dot { stroke: var(--line); stroke-width: 2; }
.pin .halo { fill: transparent; }
.pin.wish .dot { fill: var(--c2); } .pin.planned .dot { fill: var(--c3); } .pin.visited .dot { fill: var(--c1); }
.pin:hover .halo, .pin:focus-visible .halo { fill: color-mix(in srgb, var(--accent) 25%, transparent); stroke: var(--accent); stroke-width: 2; }
.pin-key { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--line); }
.pin-key.wish { background: var(--c2); } .pin-key.planned { background: var(--c3); } .pin-key.visited { background: var(--c1); }
.world .legend { justify-content: center; }
.dest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 1.1rem; }
.dest { display: grid; border: var(--bw) solid var(--line); border-radius: var(--r); overflow: hidden; background: color-mix(in srgb, var(--tc) calc(30% * var(--tk)), var(--surface)); box-shadow: var(--shadow); }
.dest-ph { position: relative; height: 170px; } .dest-ph > button { all: unset; cursor: zoom-in; display: block; width: 100%; height: 100%; } .dest-ph img { width: 100%; height: 100%; }
.dest-ph .count { position: absolute; right: .6rem; bottom: .6rem; display: inline-flex; gap: .3rem; align-items: center; padding: .15rem .5rem; border-radius: 999px; background: rgb(255 254 251 / .92); color: #222; font-size: .74rem; font-weight: 700; }
.dest-ph .count .ic { width: 13px; height: 13px; }
.dest-body { display: grid; gap: .35rem; padding: .9rem 1rem 1rem; } .dest-body .tag { justify-self: start; }
.trip-detail .card-head { margin-bottom: .8rem; }
.trip-cover { height: 200px; border-radius: 14px; overflow: hidden; margin-bottom: 1rem; border: var(--bw) solid var(--line); } .trip-cover img { width: 100%; height: 100%; }
.itin { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.itin > li > header { display: flex; gap: .6rem; align-items: baseline; margin-bottom: .4rem; } .itin > li > header b { font: 600 1.1rem/1 var(--serif); } .itin > li > header .icon-btn { margin-left: auto; }
.itin ul { list-style: none; margin: 0; padding: 0 0 0 .9rem; border-left: 2px dotted var(--hair); display: grid; gap: .45rem; }
.stop { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; padding: .55rem .7rem; border: 1px solid var(--hair); border-radius: 12px; background: var(--surface); }
.st-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--t1); color: var(--on); flex: none; } .st-ic .ic { width: 17px; height: 17px; }
.stop.k-hotel .st-ic { background: var(--t5); } .stop.k-activity .st-ic { background: var(--t4); } .stop.k-food .st-ic { background: var(--t6); } .stop.k-transport .st-ic { background: var(--t3); }
.st-body { all: unset; cursor: pointer; flex: 1 1 12rem; display: grid; gap: .1rem; } .st-body small { font-size: .78rem; } .st-body:focus-visible { outline: 2px solid var(--accent); }
.ref { all: unset; cursor: copy; display: inline-flex; gap: .3rem; align-items: center; padding: .25rem .6rem; border: 1.5px dashed var(--line); border-radius: 8px; font: 700 .78rem/1 ui-monospace, Menlo, monospace; letter-spacing: .05em; }
.ref .ic { width: 13px; height: 13px; } .ref:focus-visible { outline: 2px solid var(--accent); }
.pack-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 1rem 1.6rem; margin: 1rem 0; }
.memories { display: grid; gap: 1.6rem; }
.memory { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.6rem; align-items: center; padding: 1.4rem; border: var(--bw) solid var(--hair); border-radius: 22px; background: var(--surface); }
.memory:nth-child(even) .mem-photos { order: 2; }
@media (max-width: 760px) { .memory { grid-template-columns: minmax(0, 1fr); } .memory:nth-child(even) .mem-photos { order: 0; } }
.mem-photos { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; min-height: 200px; border-radius: 14px; }
.mem-photos.n1 { grid-template-columns: minmax(0, 1fr); } .mem-photos.n0 { grid-template-columns: minmax(0, 1fr); }
.mem-photos button { all: unset; cursor: zoom-in; display: block; background: #FFFEFB; padding: 6px; border-radius: 6px; transform: rotate(var(--r)); box-shadow: 0 10px 22px -14px rgb(0 0 0 / .5); aspect-ratio: 4 / 3; }
.mem-photos.n1 button, .mem-photos.n3 button:first-child { grid-column: 1 / -1; }
.mem-photos img { width: 100%; height: 100%; border-radius: 3px; }
.plain .mem-photos button { transform: none; padding: 0; background: none; }
.mem-photos .count { position: absolute; right: .5rem; bottom: .5rem; padding: .2rem .6rem; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 700; font-size: .8rem; }
.mem-body { display: grid; gap: .5rem; } .mem-body h3 { font-size: 1.5rem; } .mem-body p { margin: 0; } .mem-body .ic { width: 14px; height: 14px; vertical-align: -2px; }

/* ---------- Admin ---------- */
.vault-setup { max-width: 640px; }
.vault-setup h2 { margin: .3rem 0 .8rem; }
.vault-lock { display: grid; justify-items: center; gap: .6rem; padding: 2.6rem 1.2rem; max-width: 560px; margin: 0 auto; text-align: center; }
.lock-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--t5); border: var(--bw) solid var(--line); color: var(--on); } .lock-ic .ic { width: 32px; height: 32px; }
.vault-lock .inline { justify-content: center; } .vault-lock .input { max-width: 280px; }
.vt-row { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr) minmax(0, 1.2fr) auto; }
.vt-row > span:first-child { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .84rem; display: flex; align-items: center; gap: .15rem; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 760px) { .vt-row { grid-template-columns: minmax(0, 1fr) auto; } .vt-row > span:nth-child(2), .vt-row > span:nth-child(3) { grid-column: 1 / -1; } .vt-head { display: none; } }
.chores { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1.2rem; }
.chore-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.chore-list li { display: flex; gap: .6rem; align-items: center; padding: .5rem .7rem; border: 1px solid var(--hair); border-radius: 12px; background: var(--surface); }
.chore-list li.late { border-color: var(--warn); background: color-mix(in srgb, var(--t3) calc(25% * var(--tk)), var(--surface)); }
.chore-list li.today { border-color: var(--line); }
.inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: .8rem; }
.inv { display: flex; gap: .8rem; align-items: center; padding: .6rem; border: 1px solid var(--hair); border-radius: 14px; background: var(--surface); }
.inv > div:nth-child(2) { flex: 1; display: grid; min-width: 0; } .inv small { font-size: .76rem; }
.inv-ph { width: 76px; height: 76px; flex: none; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: var(--surface2); }
.inv-ph > button { all: unset; cursor: zoom-in; width: 100%; height: 100%; } .inv-ph img { width: 100%; height: 100%; }
.inv-ph .btn { padding: .3rem .5rem; font-size: .7rem; }
.vehicle { margin-bottom: 1.2rem; }
.vh-head { display: flex; gap: 1rem; flex-wrap: wrap; align-items: flex-start; margin-bottom: 1rem; } .vh-head > div:nth-child(2) { flex: 1 1 16rem; display: grid; gap: .3rem; }
.vh-ph { width: 150px; height: 110px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: var(--surface2); border: var(--bw) solid var(--hair); flex: none; } .vh-ph img { width: 100%; height: 100%; }
.dues { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0; }
.due { font-size: .76rem; padding: .25rem .6rem; border-radius: 999px; background: var(--surface2); border: 1px solid var(--hair); }
.due.soon { background: color-mix(in srgb, var(--t3) calc(60% * var(--tk)), var(--surface)); color: var(--on); border-color: var(--line); }
.due.late { background: color-mix(in srgb, var(--t2) calc(70% * var(--tk)), var(--surface)); color: var(--on); border-color: var(--line); font-weight: 600; }
.pets { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 1.2rem; }
.pet { display: grid; gap: .8rem; align-content: start; }
.pet-head { display: flex; gap: 1rem; align-items: center; } .pet-head > div:nth-child(2) { flex: 1; display: grid; gap: .25rem; justify-items: start; }
.pet-ph { width: 92px; height: 92px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; border: var(--bw) solid var(--line); background: var(--tc); flex: none; } .pet-ph img { width: 100%; height: 100%; } .pet-ph .ic { width: 34px; height: 34px; }
.feed { padding: .7rem .9rem; border-radius: 12px; background: var(--surface2); } .feed p { margin: .2rem 0 0; }
.pet .btn { justify-self: start; }

/* ---------- Settings, tutorial ---------- */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: .8rem; }
.theme-opt { all: unset; cursor: pointer; box-sizing: border-box; display: grid; gap: .3rem; padding: .8rem; border: var(--bw) solid var(--hair); border-radius: 14px; background: var(--surface); }
.theme-opt[aria-pressed="true"] { border-color: var(--line); box-shadow: var(--shadow); }
.theme-opt:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.theme-sw { display: flex; height: 38px; border-radius: 9px; overflow: hidden; border: 1px solid rgb(0 0 0 / .15); margin-bottom: .3rem; } .theme-sw i { flex: 1; }
.theme-opt b { font: 600 1rem/1.2 var(--serif); } .theme-opt small { font-size: .76rem; color: var(--muted); }
.settings { max-width: 980px; }
.tour-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: .9rem; }
.tour-card { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .8rem; align-items: center; padding: 1rem 1.1rem; border: var(--bw) solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.tour-card:hover { background: var(--surface2); } .tour-card:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; }
.tour-card.first { grid-column: 1 / -1; background: color-mix(in srgb, var(--t2) calc(55% * var(--tk)), var(--surface)); }
.tour-card strong { display: block; font: 600 1.15rem/1.15 var(--serif); } .tour-card small { font-size: .82rem; color: var(--ink2); }
.tour-card > .ic { width: 40px; height: 40px; padding: 11px; border: var(--bw) solid var(--line); border-radius: 50%; background: var(--surface); }
#tour { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.tour-spot { position: fixed; border-radius: 12px; box-shadow: 0 0 0 9999px rgb(18 14 24 / .55); outline: 3px solid var(--t3); transition: top .25s, left .25s, width .25s, height .25s; }
.tour-spot.none { top: 50% !important; left: 50% !important; width: 0 !important; height: 0 !important; outline: 0; }
#tour .tour-box { position: fixed; pointer-events: auto; display: grid; gap: .55rem; padding: 1.1rem 1.2rem; background: var(--surface); color: var(--ink); border: var(--bw) solid var(--line); border-radius: var(--r); box-shadow: var(--soft); transition: top .25s, left .25s; }
#tour .tour-box.center { left: 50% !important; top: 50% !important; transform: translate(-50%, -50%); }
#tour .tour-box h3 { font-size: 1.3rem; } #tour .tour-box p { margin: 0; font-size: .92rem; color: var(--ink2); }
.tour-top { display: flex; justify-content: space-between; align-items: center; }
.tour-dots { display: flex; gap: 4px; flex-wrap: wrap; }
.tour-dots i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--line); }
.tour-dots i.on { background: var(--ink); width: 18px; border-radius: 4px; } .tour-dots i.done { background: var(--t4); }
.tour-foot { display: flex; justify-content: space-between; gap: .5rem; align-items: center; } .tour-foot > span { display: flex; gap: .4rem; }

/* ---------- Sign in ---------- */
.boot { display: grid; place-items: center; min-height: 100vh; font: italic 600 2.4rem/1 var(--serif); color: var(--muted); }
.auth { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 100vh; }
.auth-art { position: relative; display: grid; align-content: center; gap: 1.4rem; padding: clamp(2rem, 5vw, 4rem); border-right: var(--bw) solid var(--line); background: repeating-linear-gradient(90deg, var(--stripe-a) 0 22px, var(--stripe-b) 22px 44px); overflow: hidden; }
.plain .auth-art { background: var(--surface2); }
.aa-top { display: flex; gap: .6rem; }
.aa-title { font-size: clamp(3.4rem, 9vw, 6rem); line-height: .95; background: var(--surface); justify-self: start; padding: .2rem 1.6rem .6rem; border: var(--bw) solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.aa-title .hand { display: block; font-size: clamp(1.1rem, 2.4vw, 1.6rem); margin-top: .2rem; }
.aa-frames { position: relative; height: 270px; }
.pola { position: absolute; margin: 0; width: 190px; padding: 10px 10px 34px; background: #FFFEFB; border-radius: 4px; box-shadow: 0 16px 30px -16px rgb(0 0 0 / .5); }
.pola .ph { height: 150px; border-radius: 2px; }
.pola figcaption { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font-size: 1.15rem; color: #9B3768; }
.plain .pola figcaption { font-size: .85rem; color: #2A2530; }
.pola.p1 { left: 0; top: 30px; transform: rotate(-6deg); } .pola.p2 { left: 170px; top: 0; transform: rotate(4deg); } .pola.p3 { left: 340px; top: 50px; transform: rotate(-2deg); }
.ph.g1 { background: linear-gradient(180deg, #F9C9B6 0 55%, #9EC3E6 55%), #9EC3E6; }
.ph.g2 { background: radial-gradient(circle at 70% 30%, #FFE6B8 0 14%, transparent 15%), linear-gradient(160deg, #B7C6DD, #6D82A8); }
.ph.g3 { background: radial-gradient(circle at 75% 25%, #FFFFFF 0 9%, transparent 10%), linear-gradient(135deg, #E9DFD2 0 40%, #3A4150 40% 70%, #E9DFD2 70%); }
.aa-frames .spk { position: absolute; width: 30px; height: 30px; } .aa-frames .s1 { left: 150px; top: 200px; fill: var(--t2); } .aa-frames .s2 { left: 520px; top: 10px; }
.aa-foot { max-width: 44ch; background: var(--surface); padding: .9rem 1.1rem; border-radius: 14px; border: var(--bw) solid var(--line); margin: 0; }
.auth-form { display: grid; place-items: center; padding: 2rem 1.2rem; }
.auth-card { display: grid; gap: .9rem; width: min(400px, 100%); }
.auth-card h2 { font-size: 1.9rem; }
.error-text { color: var(--bad); font-weight: 600; font-size: .9rem; margin: 0; }
.key-input { font: 600 1.15rem/1 ui-monospace, Menlo, monospace; letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 860px) { .auth { grid-template-columns: minmax(0, 1fr); } .auth-art { border-right: 0; border-bottom: var(--bw) solid var(--line); padding: 1.6rem 1.2rem; } .aa-frames { display: none; } .aa-title { font-size: 3.2rem; } }
@media (max-width: 600px) { .page-head { padding-top: .6rem; } .card { padding: 1.1rem; } .vision-hero { padding: .7rem; border-radius: 20px; } .hello { margin-top: 1.4rem; } .now-strip { border-radius: 16px; flex-wrap: wrap; } }
@media print { .side, .top, .tabbar, .demo-band, #toasts { display: none !important; } .main-col { margin: 0; } body { background: #fff; } .card { box-shadow: none; } }
/* Tones last, so they win over each component's default */
.t1 { --tc: var(--t1); } .t2 { --tc: var(--t2); } .t3 { --tc: var(--t3); } .t4 { --tc: var(--t4); } .t5 { --tc: var(--t5); } .t6 { --tc: var(--t6); }

/* Inside tinted things, quiet text uses the secondary ink so it stays readable */
.tone, .folder, .pillar-tile, .fund, .recipe, .dest, .asset, .bc, .mcard.is-now, .kcol.is-today, .meal-day.is-today, .nudge, .alert, .tm li.soon { --muted: var(--ink2); }
