/* =====================================================================
   Crumb · the ultimate home baker planner
   The look comes from the mood board: burgundy and periwinkle harlequin, cream ovals with
   fringed edges, wavy burgundy frames, pink hearts for dates, royal-blue line-art croissants,
   flowing script (Pinyon Script), a soft heavy serif (Fraunces), DM Sans and DM Mono.
   ===================================================================== */
:root, [data-theme="crumb"] {
  --bg: #FBF3E6; --paper: #FFFBF4; --paper-2: #F6EADB; --ink: #3B1414; --ink-2: #6B4A46; --ink-3: #8A6560;
  --wine: #6E1A1A; --wine-2: #8E2A2A; --on-wine: #FBF3E6; --blush: #F6D3CF; --blush-2: #FBE7E3; --pink: #E7A2A6;
  --peri: #9DBBF2; --peri-soft: #DCE7FA; --royal: #2D4DB0; --royal-ink: #22357F; --on-royal: #FFFFFF; --gold: #D98E3A;
  --line: #E9D6C4; --line-2: #D9BFA9; --good: #2F6B3A; --good-bg: #E3F0E1; --warn: #94530A; --warn-bg: #FCEBD2; --bad: #A3242B; --bad-bg: #FBE0DE;
  --side-bg: var(--wine); --side-ink: #FBF3E6; --side-dim: #E9C9C3; --side-pat-a: var(--peri); --side-pat-b: var(--wine);
  --primary: var(--wine); --on-primary: var(--on-wine); --accent: var(--royal); --on-accent: #fff; --accent-soft: var(--peri-soft); --accent-ink: var(--royal-ink);
  --c1: #6E1A1A; --c2: #7FA2E6; --c3: #2D4DB0; --c4: #E7A2A6; --c5: #D98E3A; --c6: #7E9C76;
  --shadow: 0 1px 0 rgba(110, 26, 26, .05), 0 10px 30px -18px rgba(110, 26, 26, .35);
  --flame: var(--wine); --jade: var(--royal); --sun: var(--gold); --violet: var(--peri); --flame-soft: var(--pink); --violet-soft: var(--peri-soft);
  --f-script: 'Pinyon Script', 'Snell Roundhand', cursive; --f-head: 'Fraunces', Georgia, serif; --f-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; --f-mono: 'DM Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --r: 22px; --r-sm: 14px; color-scheme: light;
}
[data-theme="cobalt"] {
  --bg: #F7F0E3; --paper: #FFFDF8; --paper-2: #EFE6D6; --ink: #1E2A5E; --ink-2: #4A5683; --ink-3: #6A7398;
  --wine: #2A45A6; --wine-2: #3554C4; --on-wine: #FFFFFF; --blush: #DCE6F8; --blush-2: #ECF1FB; --pink: #F1B9A6;
  --peri: #CFDDF3; --peri-soft: #E3EBF8; --royal: #6E1A1A; --royal-ink: #5C1612; --gold: #D98E3A;
  --line: #DDD6EA; --line-2: #C3C9E2; --side-bg: #2A45A6; --side-ink: #FFFDF8; --side-dim: #CFDDF3; --side-pat-a: #F7F0E3; --side-pat-b: #2A45A6;
  --c1: #2A45A6; --c2: #9DBBF2; --c3: #D98E3A; --c4: #F1B9A6; --c5: #6E1A1A; --c6: #7E9C76;
  --shadow: 0 1px 0 rgba(42, 69, 166, .05), 0 10px 30px -18px rgba(42, 69, 166, .35);
}
[data-theme="blush"] {
  --bg: #FBEDEA; --paper: #FFFAF7; --paper-2: #F7E1DC; --ink: #3A0F0D; --ink-2: #6E3F3B; --ink-3: #8C5C57;
  --wine: #5C1612; --wine-2: #7A1F3D; --on-wine: #FFF4F1; --blush: #F6D3CF; --blush-2: #FCE9E6; --pink: #E7A2A6;
  --peri: #9DBBF2; --peri-soft: #E5ECFA; --royal: #7A1F3D; --royal-ink: #5E1530;
  --line: #EED2CC; --line-2: #E0B7B0; --side-bg: #5C1612; --side-ink: #FFF4F1; --side-dim: #F2C7C1; --side-pat-a: #F6D3CF; --side-pat-b: #5C1612;
  --c1: #5C1612; --c2: #E7A2A6; --c3: #7A1F3D; --c4: #9DBBF2; --c5: #D98E3A; --c6: #7E9C76;
}
[data-theme="cocoa"] {
  --bg: #1E1513; --paper: #2A1E1B; --paper-2: #33251F; --ink: #F6EADB; --ink-2: #D8C3B2; --ink-3: #B49C8B;
  --wine: #E7A2A6; --wine-2: #F2BDC0; --on-wine: #2A1414; --blush: #4A2A28; --blush-2: #3A2421; --pink: #E7A2A6;
  --peri: #9DBBF2; --peri-soft: #2D3550; --royal: #A9C3F5; --royal-ink: #C9D9FA; --on-royal: #14203F; --gold: #E6A55A;
  --line: #45322D; --line-2: #5A433C; --good: #9BD3A0; --good-bg: #213A26; --warn: #F2C27B; --warn-bg: #3F2D16; --bad: #F4A3A3; --bad-bg: #4A1F21;
  --side-bg: #140E0D; --side-ink: #F6EADB; --side-dim: #C9B3A3; --side-pat-a: #3A2421; --side-pat-b: #5C1612;
  --primary: #E7A2A6; --on-primary: #2A1414; --accent: #9DBBF2; --on-accent: #14203F; --accent-soft: #2D3550; --accent-ink: #C9D9FA;
  --c1: #E7A2A6; --c2: #9DBBF2; --c3: #F2C27B; --c4: #C98B8F; --c5: #7FA2E6; --c6: #9BD3A0;
  --shadow: 0 10px 30px -18px rgba(0, 0, 0, .7); color-scheme: dark;
}
[data-theme="cobalt"], [data-theme="blush"] { --primary: var(--wine); --on-primary: var(--on-wine); --accent: var(--royal); --accent-soft: var(--peri-soft); --accent-ink: var(--royal-ink); }

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--f-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-head); font-variation-settings: 'SOFT' 100, 'opsz' 72; line-height: 1.12; margin: 0; color: var(--ink); }
h3 { font-size: 17px; font-weight: 700; }
p { margin: .4rem 0; }
.small { font-size: 13.5px; } .muted { color: var(--ink-2); } .mono, .num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.pre { white-space: pre-wrap; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.boot { display: grid; place-items: center; min-height: 100vh; font: 64px var(--f-script); color: var(--wine); }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.warn-text { color: var(--warn); } .error-text { color: var(--bad); font-weight: 600; }
.hand { font-family: var(--f-script); font-size: 26px; }
kbd { font: 500 12px var(--f-mono); background: var(--paper); border: 1.5px solid var(--line-2); border-bottom-width: 3px; border-radius: 7px; padding: 1px 7px; }

/* ---------- Buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--primary); background: var(--paper); color: var(--primary);
  font: 600 14px var(--f-body); cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .12s, background .15s; }
.btn:hover { background: var(--blush-2); } .btn:active { transform: translateY(1px); }
.btn.solid { background: var(--primary); color: var(--on-primary); } .btn.solid:hover { background: var(--wine-2); }
[data-theme="cocoa"] .btn.solid:hover { background: #F2BDC0; }
.btn.blue { background: var(--accent); border-color: var(--accent); color: var(--on-accent); } .btn.blue:hover { filter: brightness(1.08); }
.btn.ghost { border-color: transparent; background: transparent; } .btn.ghost:hover { background: var(--blush-2); }
.btn.danger { color: var(--bad); } .btn.sm { min-height: 32px; padding: 4px 12px; font-size: 13px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.busy, label.busy { opacity: .6; pointer-events: none; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: inherit; cursor: pointer; flex: none; }
.icon-btn:hover { background: var(--blush-2); } .icon-btn[disabled] { opacity: .3; }
.link, .link-plain { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-align: left; }
.link { text-decoration: underline; text-underline-offset: 3px; } .link-plain { color: inherit; font-weight: 600; } .link-plain:hover { color: var(--accent); }
.input { width: 100%; min-height: 42px; padding: 9px 13px; border: 1.5px solid var(--line-2); border-radius: 14px; background: var(--paper); color: var(--ink); font: 15px var(--f-body); }
.input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.input.sm { min-height: 32px; padding: 4px 9px; font-size: 13px; border-radius: 10px; }
.input.num { font-family: var(--f-mono); }
textarea.input { min-height: 70px; resize: vertical; line-height: 1.45; }
select.input { appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
input[type=range] { width: 100%; accent-color: var(--primary); }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > span:first-child { font: 500 11.5px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .wide, .field.wide { grid-column: 1 / -1; }
.switch { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; } .switch input { width: 20px; height: 20px; accent-color: var(--primary); margin-top: 2px; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; } .chip { display: inline-flex; gap: 6px; align-items: center; padding: 5px 12px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--paper); font-size: 13.5px; cursor: pointer; }
.chip:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; } .chip input { accent-color: var(--accent); }
.rating, .scale { display: flex; gap: 6px; } .rate { position: relative; cursor: pointer; } .rate input { position: absolute; opacity: 0; }
.rate span[aria-hidden] { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line-2); font: 600 14px var(--f-mono); background: var(--paper); }
.rate input:checked + span { background: var(--primary); color: var(--on-primary); border-color: var(--primary); } .rate input:focus-visible + span { outline: 2px solid var(--accent); }
.pair { display: flex; gap: 6px; } .pair .input:last-child { max-width: 110px; }
.inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; } .stack { display: flex; flex-direction: column; gap: 12px; } .right { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- Shell: sidebar ---------- */
#root { min-height: 100vh; }
.side { position: fixed; inset: 0 auto 0 0; width: 268px; background: var(--side-bg); color: var(--side-ink); display: flex; flex-direction: column; overflow-y: auto; z-index: 40; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent; }
.side-top { position: relative; padding: 22px 20px 18px; text-align: center; isolation: isolate; }
.side-top::before { content: ''; position: absolute; inset: 0; background: var(--side-pat-a); z-index: -2; }
.side-top::after { content: ''; position: absolute; inset: 0; background: var(--side-pat-b); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 90'%3E%3Cpath d='M30 0L60 45L30 90L0 45Z'/%3E%3C/svg%3E") 0 0 / 34px 51px repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 90'%3E%3Cpath d='M30 0L60 45L30 90L0 45Z'/%3E%3C/svg%3E") 0 0 / 34px 51px repeat; z-index: -1; }
.plain .side-top::before, .plain .side-top::after { display: none; }
.side-top .brand { display: inline-flex; padding: 6px 22px 8px; background: var(--paper); border-radius: 999px; text-decoration: none; box-shadow: 0 0 0 4px var(--side-bg); }
.side-tag { display: block; margin-top: 10px; font: 500 11px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--side-ink); background: var(--side-bg); border-radius: 999px; padding: 3px 10px; width: fit-content; margin-inline: auto; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logo { display: inline-flex; align-items: flex-start; gap: 2px; color: var(--wine); } .logo b { font: 400 46px/1 var(--f-script); padding-right: 4px; } .logo svg { width: 15px; height: 14px; fill: var(--pink); margin-top: 4px; }
.logo.sm b { font-size: 34px; } [data-theme="cocoa"] .logo { color: #F6EADB; }
.side-timers { padding: 12px 14px 0; display: flex; flex-direction: column; gap: 6px; }
.side-timers .tmini { background: rgba(255,255,255,.1); color: var(--side-ink); border-color: transparent; }
.side-timers .tmini .icon-btn:hover { background: rgba(255,255,255,.15); }
.side-nav { padding: 6px 12px 10px; flex: 1; }
.side-group { margin-top: 10px; }
.side-hub { display: block; padding: 6px 12px 4px; font: 500 10.5px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--side-dim); }
.side-link { display: flex; align-items: center; gap: 11px; padding: 7px 12px; border-radius: 999px; color: var(--side-ink); text-decoration: none; font-size: 14.5px; font-weight: 500; position: relative; }
.side-link .ic { width: 19px; height: 19px; opacity: .9; }
.side-link:hover { background: rgba(255,255,255,.1); }
.side-link[aria-current="page"] { background: var(--paper); color: var(--wine); font-weight: 700; }
[data-theme="cocoa"] .side-link[aria-current="page"] { background: var(--pink); color: #2A1414; }
.side-badge { margin-left: auto; font: 600 11px var(--f-mono); background: var(--pink); color: #3B1414; border-radius: 999px; padding: 1px 7px; font-style: normal; }
.side-foot { padding: 8px 12px 20px; border-top: 1px dashed rgba(255,255,255,.25); }
.main-col { margin-left: 268px; min-height: 100vh; display: flex; flex-direction: column; }
main { width: 100%; max-width: 1360px; margin: 0 auto; padding: 26px 36px 60px; flex: 1; }
.foot { text-align: center; color: var(--ink-3); padding: 20px; border-top: 1px dashed var(--line); }
.top, .tabbar, .scrim { display: none; }
.demo-band { background: var(--accent); color: var(--on-accent); text-align: center; padding: 7px 16px; font-size: 13.5px; } .demo-band a { color: inherit; font-weight: 700; margin-left: 8px; }

/* ---------- Page furniture ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin: 4px 0 20px; flex-wrap: wrap; }
.script-kicker { display: block; font: 400 38px/0.9 var(--f-script); color: var(--wine); margin: 0 0 -4px 4px; }
.page-head h1 { font-size: clamp(30px, 3.6vw, 48px); font-weight: 850; letter-spacing: -.01em; text-transform: uppercase; color: var(--accent-ink); }
[data-theme="cocoa"] .page-head h1 { color: #F6EADB; }
.page-head h1 a { color: inherit; }
.lede { max-width: 66ch; color: var(--ink-2); margin-top: 8px; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font: 500 12.5px var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); text-decoration: none; margin-bottom: 12px; }
.back-link:hover { color: var(--wine); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 20px; padding-bottom: 14px; border-bottom: 2px dotted var(--line-2); }
.tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.tabs a:hover { filter: brightness(.97); }
.tabs a[aria-current="page"] { background: var(--primary); color: var(--on-primary); }
.card { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.card-head h2 { font-size: 21px; font-weight: 750; color: var(--wine); }
[data-theme="cocoa"] .card-head h2 { color: var(--pink); }
.card-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.label { display: block; font: 500 10.5px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 3px; }
.grid { display: grid; gap: 18px; margin-bottom: 18px; } .grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid > .wide, .span2 { grid-column: span 2; }
main > .card, main > section.card { margin-bottom: 18px; }
.mini-h { font-size: 15px; margin: 14px 0 6px; }
.empty { text-align: center; padding: 34px 20px; border: 2px dashed var(--line-2); border-radius: var(--r); background: var(--paper); color: var(--ink-2); }
.empty .doodle { width: 120px; color: var(--accent); margin: 0 auto 8px; }
.empty p { max-width: 46ch; margin: 0 auto 12px; font-size: 15px; }
.doodle { display: block; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; background: var(--blush); color: var(--wine); font: 500 12px var(--f-mono); }
.tag.blue { background: var(--accent-soft); color: var(--accent-ink); }
.chips-row { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0; }
.oval-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font: 500 12.5px var(--f-mono); letter-spacing: .03em; text-decoration: none; }
.oval-pill.blue { background: var(--accent); color: var(--on-accent); }
.banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; margin-bottom: 16px; flex-wrap: wrap; }
.banner.bad { background: var(--bad-bg); color: var(--bad); } .banner span { flex: 1; min-width: 200px; } .banner .ic { width: 22px; height: 22px; }
.tt-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 16px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13.5px; margin: 14px 0; }
.shown { margin: 8px 2px; }

/* bars, rings, metrics */
.bar { height: 10px; border-radius: 999px; background: var(--blush); overflow: hidden; margin: 6px 0; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: var(--primary); transition: width .4s; }
.bar.blue > i { background: var(--accent); } .bar.bad > i { background: var(--bad); }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.metric { position: relative; background: var(--paper); border: 1.5px solid var(--line); border-radius: 20px; padding: 14px 16px 12px; text-decoration: none; color: inherit; overflow: hidden; }
.metric::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: repeating-linear-gradient(90deg, var(--blush) 0 10px, transparent 10px 20px); }
.metric b { display: block; font: 800 28px/1.15 var(--f-head); font-variation-settings: 'SOFT' 100; color: var(--accent-ink); margin: 2px 0; }
.metric b.long { font-size: 20px; } .metric small { color: var(--ink-2); font-size: 12.5px; }
.metric.warn b { color: var(--warn); } .metric.good b { color: var(--good); } .metric.bad b { color: var(--bad); }
.cost-big { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 14px; margin: 10px 0; border-radius: 999px; background: var(--blush); color: var(--wine); }
.cost-big b { font: 800 32px/1.1 var(--f-head); } .cost-big span { font: 500 11.5px var(--f-mono); text-transform: uppercase; letter-spacing: .08em; }
.cost-big.blue { background: var(--accent-soft); color: var(--accent-ink); }
.answer { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-radius: 20px; background: var(--blush); color: var(--wine); margin: 12px 0; }
.answer b { font: 800 28px/1.15 var(--f-head); } .answer.blue { background: var(--accent-soft); color: var(--accent-ink); } .answer small { color: inherit; opacity: .85; }
.answer .label { color: inherit; }
.per { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.oval { flex: 1 1 120px; display: flex; flex-direction: column; align-items: center; padding: 14px 10px; border-radius: 50% / 46%; background: var(--primary); color: var(--on-primary); text-align: center; }
.oval b { font: 800 20px var(--f-head); } .oval small { font: 500 11px var(--f-mono); text-transform: uppercase; letter-spacing: .05em; opacity: .9; }
.oval.off { background: var(--paper-2); color: var(--ink-3); } .oval.big { background: var(--accent); color: var(--on-accent); }
.tt-kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 8px 0; } .tt-kv div { display: contents; }
.tt-kv dt { font: 500 11px/1.9 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); } .tt-kv dd { margin: 0; text-align: right; font-weight: 500; }
.tt-seg { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 3px; border-radius: 999px; background: var(--accent-soft); }
.tt-seg button { border: 0; background: transparent; color: var(--accent-ink); padding: 6px 13px; border-radius: 999px; font: 600 13px var(--f-body); cursor: pointer; }
.tt-seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.tt-rows { list-style: none; margin: 0; padding: 0; } .tt-rows li { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px dashed var(--line); }
.tt-rows li:last-child { border-bottom: 0; } .tt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; } .tt-main small { color: var(--ink-2); }
.tt-check { list-style: none; margin: 0; padding: 0; } .tt-check li { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.tt-check li:last-child { border: 0; } .tt-check li > span { flex: 1; padding-top: 3px; } .tt-check li.done > span, .tt-check li.done .tt-main b { text-decoration: line-through; color: var(--ink-3); }
.tt-tick { flex: none; width: 28px; height: 28px; border-radius: 9px; border: 2px solid var(--line-2); background: var(--paper); color: transparent; display: grid; place-items: center; cursor: pointer; }
.tt-tick.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.tt-count { font: 600 13px var(--f-mono); background: var(--blush); color: var(--wine); border-radius: 999px; padding: 2px 10px; }
.tt-scroll { overflow-x: auto; border-radius: 16px; border: 1.5px solid var(--line); background: var(--paper); }
.tt-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tt-tbl th { text-align: left; font: 500 10.5px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--wine); background: var(--blush-2); padding: 10px 12px; white-space: nowrap; border-bottom: 1.5px solid var(--line); }
.tt-tbl td { padding: 10px 12px; border-bottom: 1px dashed var(--line); vertical-align: middle; } .tt-tbl tr:last-child td { border-bottom: 0; }
.tt-tbl .num { text-align: right; } .tt-tbl tbody tr:hover { background: var(--blush-2); }
.card .tt-scroll { border: 0; border-radius: 0; background: transparent; margin: 0 -6px; }
.chip-s { font: 500 11.5px var(--f-mono); padding: 1px 8px; border-radius: 999px; } .chip-s.low, .chip-s.warn { background: var(--warn-bg); color: var(--warn); } .chip-s.bad { background: var(--bad-bg); color: var(--bad); } .chip-s.ok { background: var(--good-bg); color: var(--good); }
.ps-low td:first-child, .ps-expiring td:first-child { box-shadow: inset 4px 0 var(--gold); } .ps-expired td:first-child { box-shadow: inset 4px 0 var(--bad); }
.row-acts { white-space: nowrap; text-align: right; }

/* the search & filter bar */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.toolbar .search { position: relative; flex: 1 1 260px; display: flex; } .toolbar .search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.toolbar .search .input { padding-left: 40px; border-radius: 999px; }
.toolbar .filter { flex: 0 1 200px; } .toolbar .filter .input { border-radius: 999px; min-height: 42px; }

/* alerts */
.alerts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.al { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; font-size: 14px; }
.al span { flex: 1; } .al a { font: 500 12px var(--f-mono); text-transform: uppercase; white-space: nowrap; }
.al.warn { background: var(--warn-bg); color: var(--warn); } .al.bad { background: var(--bad-bg); color: var(--bad); } .al.info { background: var(--accent-soft); color: var(--accent-ink); }
.al a { color: inherit; } .al .ic { margin-top: 2px; }

/* ---------- Charts ---------- */
.chart { margin: 0; } .chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-dasharray: 3 4; } .chart .base { stroke: var(--line-2); stroke-width: 1.5; }
.chart .axis { font: 11px var(--f-mono); fill: var(--ink-2); } .chart .hit { fill: transparent; }
.bar-mark.c1, .donut-seg.c1, .key.c1 { fill: var(--c1); background: var(--c1); } .bar-mark.c2, .donut-seg.c2, .key.c2 { fill: var(--c2); background: var(--c2); } .bar-mark.c3, .donut-seg.c3, .key.c3 { fill: var(--c3); background: var(--c3); }
.bar-mark.c4, .donut-seg.c4, .key.c4 { fill: var(--c4); background: var(--c4); } .bar-mark.c5, .donut-seg.c5, .key.c5 { fill: var(--c5); background: var(--c5); } .bar-mark.c6, .donut-seg.c6, .key.c6 { fill: var(--c6); background: var(--c6); }
.line-mark { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; } .line-mark.c1 { stroke: var(--c1); } .line-mark.c2 { stroke: var(--c2); } .line-mark.c3 { stroke: var(--c3); } .line-mark.c4 { stroke: var(--c4); }
.dot-mark { stroke: var(--paper); stroke-width: 2; } .dot-mark.c1 { fill: var(--c1); } .dot-mark.c2 { fill: var(--c2); } .dot-mark.c3 { fill: var(--c3); } .dot-mark.c4 { fill: var(--c4); }
.mark:hover .bar-mark, .mark:focus .bar-mark { filter: brightness(1.12); } .mark:focus { outline: none; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; margin-top: 8px; color: var(--ink-2); } .legend span { display: inline-flex; gap: 6px; align-items: center; }
.key { display: inline-block; width: 11px; height: 11px; border-radius: 4px; }
.donut .donut-wrap { position: relative; max-width: 220px; margin: 0 auto; } .donut-mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut-mid b { font: 800 20px var(--f-head); } .donut-mid span { font: 500 10.5px var(--f-mono); text-transform: uppercase; color: var(--ink-2); }
.donut-empty { fill: none; stroke: var(--line); } .donut-key { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 6px 14px; font-size: 13.5px; }
.donut-key li { display: flex; align-items: center; gap: 8px; } .donut-key b { margin-left: auto; font-size: 12.5px; }
.tip { position: fixed; z-index: 100; transform: translate(-50%, -100%); background: var(--ink); color: var(--bg); font: 500 12.5px var(--f-mono); padding: 6px 10px; border-radius: 10px; pointer-events: none; white-space: nowrap; }

/* ---------- Modal, toasts ---------- */
dialog#modal { border: 0; padding: 0; background: transparent; width: min(720px, calc(100vw - 24px)); max-height: calc(100vh - 32px); color: var(--ink); }
dialog#modal.narrow { width: min(480px, calc(100vw - 24px)); } dialog#modal.wide { width: min(940px, calc(100vw - 24px)); } dialog#modal.photo { width: min(1100px, calc(100vw - 24px)); }
dialog::backdrop { background: rgba(40, 12, 10, .45); backdrop-filter: blur(2px); }
.modal-inner { display: flex; flex-direction: column; max-height: calc(100vh - 32px); background: var(--paper); border-radius: 26px; overflow: hidden; border: 2px solid var(--primary); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 20px 12px; background: var(--paper); border-bottom: 1.5px dashed var(--line-2); position: relative; }
.modal-head::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: repeating-linear-gradient(90deg, var(--primary) 0 14px, var(--blush) 14px 28px); }
.modal-head h2 { font-size: 22px; color: var(--wine); padding-top: 4px; } [data-theme="cocoa"] .modal-head h2 { color: var(--pink); }
.modal-body { padding: 18px 20px; overflow-y: auto; } .modal-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 20px 16px; border-top: 1.5px dashed var(--line-2); flex-wrap: wrap; }
.ed-photos { display: flex; flex-wrap: wrap; gap: 10px; } .ed-ph { position: relative; margin: 0; width: 110px; height: 110px; border-radius: 16px; overflow: hidden; background: var(--paper-2); }
.ed-ph img { width: 100%; height: 100%; object-fit: cover; } .ed-ph .icon-btn { position: absolute; top: 4px; right: 4px; background: rgba(255,255,255,.9); width: 28px; height: 28px; color: #3B1414; }
.ed-add, .photo-add, .ov-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-width: 110px; min-height: 110px; padding: 12px; border: 2px dashed var(--accent); border-radius: 16px; color: var(--accent-ink); background: var(--accent-soft); cursor: pointer; text-align: center; font-size: 13px; font-weight: 600; }
.ed-add:hover, .photo-add:hover, .ov-add:hover, [data-drop].drag { filter: brightness(.96); outline: 3px solid var(--accent); }
.ed-add .ic, .photo-add .ic, .ov-add .ic { width: 26px; height: 26px; }
#toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 12px; align-items: center; background: var(--primary); color: var(--on-primary); padding: 11px 18px; border-radius: 999px; font-weight: 500; box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); max-width: min(560px, calc(100vw - 24px)); animation: toastIn .25s ease; }
.toast.err { background: var(--bad); color: #fff; } .toast button { background: rgba(255,255,255,.2); color: inherit; border: 0; border-radius: 999px; padding: 4px 12px; font-weight: 700; cursor: pointer; }
@keyframes toastIn { from { transform: translateY(10px); opacity: 0; } }
.pop { position: fixed; z-index: 300; pointer-events: none; } .pop i { position: absolute; width: 8px; height: 8px; border-radius: 2px; animation: popOut .9s ease-out forwards; }
@keyframes popOut { to { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 300; overflow: hidden; } .confetti i { position: absolute; top: -12px; width: 9px; height: 13px; animation: fall var(--d) ease-in forwards; }
@keyframes fall { to { transform: translate(var(--x), 105vh) rotate(var(--r)); } }
.calm *, .calm *::before { animation: none !important; transition: none !important; }
body.ding::after { content: ''; position: fixed; inset: 0; z-index: 250; pointer-events: none; border: 10px solid var(--pink); animation: ding .5s ease-in-out 6 alternate; }
@keyframes ding { from { opacity: 1; } to { opacity: 0; } }
.lightbox { position: relative; background: var(--paper); border-radius: 26px; padding: 16px; border: 2px solid var(--primary); }
.lightbox figure { margin: 0; } .lightbox img { max-height: calc(100vh - 190px); margin: 0 auto; border-radius: 16px; object-fit: contain; }
.lightbox figcaption { display: flex; justify-content: space-between; gap: 10px; padding: 10px 4px 0; align-items: baseline; }
.lb-close { position: absolute; top: 22px; right: 22px; background: var(--paper); z-index: 2; } .lb-prev, .lb-next { position: absolute; top: 45%; background: var(--paper); box-shadow: var(--shadow); } .lb-prev { left: 24px; } .lb-next { right: 24px; }
.lb-tools { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; padding-top: 10px; }
.pdf-chip { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%; height: 100%; background: var(--blush); color: var(--wine); }

/* ---------- Motifs ---------- */
.harle { position: relative; background: var(--peri); isolation: isolate; }
.harle::before { content: ''; position: absolute; inset: 0; background: var(--wine); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 90'%3E%3Cpath d='M30 0L60 45L30 90L0 45Z'/%3E%3C/svg%3E") 0 0 / 60px 90px repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 90'%3E%3Cpath d='M30 0L60 45L30 90L0 45Z'/%3E%3C/svg%3E") 0 0 / 60px 90px repeat; z-index: -1; }
.wavy { --s: 11px; padding: calc(var(--s) + 6px); background: var(--primary); -webkit-mask: radial-gradient(var(--s), #000 97%, #0000) 0 0 / calc(2 * var(--s)) calc(2 * var(--s)) round, linear-gradient(#000 0 0) content-box; mask: radial-gradient(var(--s), #000 97%, #0000) 0 0 / calc(2 * var(--s)) calc(2 * var(--s)) round, linear-gradient(#000 0 0) content-box; }
.plain .wavy { -webkit-mask: none; mask: none; border-radius: 24px; }
.heart-date { display: inline-grid; place-content: center; text-align: center; width: 68px; height: 62px; background: var(--pink); color: var(--wine); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 90'%3E%3Cpath d='M50 88C18 64 2 46 2 26A24 24 0 0 1 50 14a24 24 0 0 1 48 12c0 20-16 38-48 62Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 90'%3E%3Cpath d='M50 88C18 64 2 46 2 26A24 24 0 0 1 50 14a24 24 0 0 1 48 12c0 20-16 38-48 62Z'/%3E%3C/svg%3E") center / contain no-repeat; transform: rotate(-8deg); padding-bottom: 8px; flex: none; }
.heart-date b { font: 800 21px/1 var(--f-head); } .heart-date small { font: 500 9.5px/1 var(--f-mono); letter-spacing: .06em; }
.heart-date.sm { width: 50px; height: 46px; } .heart-date.sm b { font-size: 16px; } .heart-date.sm small { font-size: 8px; }
[data-theme="cocoa"] .heart-date { color: #2A1414; }

/* ---------- Home ---------- */
.hero { position: relative; display: grid; grid-template-columns: minmax(300px, 420px) 1fr; align-items: center; gap: 0; border-radius: 30px; overflow: hidden; margin-bottom: 16px; min-height: 330px; background: var(--peri); isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: 0; background: var(--wine); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 90'%3E%3Cpath d='M30 0L60 45L30 90L0 45Z'/%3E%3C/svg%3E") 0 0 / 64px 96px repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 90'%3E%3Cpath d='M30 0L60 45L30 90L0 45Z'/%3E%3C/svg%3E") 0 0 / 64px 96px repeat; z-index: -1; }
[data-theme="cobalt"] .hero { background: #F7F0E3; } [data-theme="cobalt"] .hero::before { background: #2A45A6; }
[data-theme="blush"] .hero { background: #F6D3CF; } [data-theme="blush"] .hero::before { background: #5C1612; }
[data-theme="cocoa"] .hero { background: #3A2421; } [data-theme="cocoa"] .hero::before { background: #5C1612; }
.plain .hero::before { display: none; }
.hero-oval { grid-column: 1; grid-row: 1; position: relative; z-index: 2; margin: 22px 0 22px 30px; padding: 34px 40px 30px; min-height: 290px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: var(--paper); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 500' preserveAspectRatio='none'%3E%3Cpath d='M390.0,250.0 L379.2,257.9 L390.1,266.8 L382.5,274.2 L387.0,283.2 L377.0,289.4 L387.4,300.3 L377.4,305.9 L380.8,315.5 L371.7,320.5 L380.6,333.0 L368.5,336.0 L371.5,346.4 L363.3,350.6 L369.7,364.0 L356.5,364.1 L359.4,375.8 L351.5,379.1 L355.1,392.3 L341.7,389.8 L344.6,403.3 L336.3,405.0 L337.2,417.3 L324.6,412.9 L327.1,428.3 L318.0,427.7 L316.7,438.6 L305.5,433.3 L306.8,450.1 L297.1,446.3 L294.2,456.2 L284.5,450.8 L284.1,467.9 L274.2,460.5 L270.4,470.0 L261.9,464.9 L259.4,481.0 L250.0,470.1 L245.4,480.1 L237.9,475.1 L233.3,488.9 L225.1,475.5 L219.7,486.5 L212.8,480.7 L206.7,491.5 L200.0,476.7 L193.4,488.9 L187.2,481.3 L180.1,488.9 L175.0,474.2 L166.9,486.9 L161.8,476.8 L154.3,481.7 L150.5,468.1 L140.8,480.0 L137.4,467.1 L129.5,470.3 L126.6,458.2 L115.8,468.1 L114.6,452.9 L106.1,455.4 L103.8,444.4 L92.5,451.3 L93.7,434.8 L84.3,437.0 L82.6,426.7 L71.7,430.0 L75.0,413.4 L64.3,415.5 L63.7,405.0 L53.8,405.0 L58.7,389.5 L46.5,390.9 L47.8,379.7 L39.1,377.0 L44.7,363.3 L31.5,363.2 L35.2,351.5 L27.7,346.9 L33.2,335.1 L19.8,332.9 L26.4,321.3 L19.4,315.4 L24.5,305.3 L11.9,300.5 L21.3,289.8 L14.1,283.0 L19.0,274.0 L8.3,266.9 L19.7,258.0 L11.8,250.0 L17.2,241.9 L9.0,233.1 L21.4,226.3 L12.8,216.8 L19.3,209.7 L13.8,200.0 L26.1,195.2 L17.2,183.8 L25.4,178.3 L22.2,168.3 L33.6,165.1 L25.2,151.7 L35.5,148.6 L33.8,138.4 L43.9,136.1 L37.1,121.4 L49.0,121.4 L48.1,110.6 L57.1,109.0 L52.7,93.9 L65.5,97.0 L64.9,85.2 L73.3,84.2 L71.6,69.9 L84.3,75.8 L84.0,62.4 L92.3,62.7 L93.2,50.0 L104.9,57.8 L105.2,42.7 L113.8,45.2 L116.8,34.4 L127.1,43.1 L128.6,26.7 L137.3,32.3 L141.7,23.2 L150.4,31.7 L153.6,15.1 L162.0,24.3 L167.4,16.2 L174.9,24.0 L179.9,8.5 L187.3,21.1 L193.4,13.0 L200.0,20.4 L206.7,7.4 L212.6,22.5 L219.7,13.8 L225.4,21.3 L233.3,11.7 L237.4,28.0 L245.7,18.5 L250.6,27.2 L258.9,21.1 L261.3,37.2 L271.2,27.4 L274.7,38.1 L283.0,35.0 L284.2,49.9 L295.6,40.9 L297.1,53.8 L305.3,52.7 L305.9,65.9 L318.2,58.9 L317.2,73.6 L325.7,73.7 L325.8,85.4 L338.3,81.3 L334.6,96.9 L343.9,97.5 L343.6,108.3 L355.3,107.5 L349.4,122.8 L359.7,123.9 L358.6,134.3 L368.8,136.6 L361.3,150.6 L373.0,152.7 L370.2,163.1 L378.6,167.9 L370.5,180.0 L383.1,183.7 L378.0,193.9 L384.8,200.4 L376.9,210.6 L389.7,216.3 L381.8,225.9 L387.6,233.4 L380.4,242.0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 500' preserveAspectRatio='none'%3E%3Cpath d='M390.0,250.0 L379.2,257.9 L390.1,266.8 L382.5,274.2 L387.0,283.2 L377.0,289.4 L387.4,300.3 L377.4,305.9 L380.8,315.5 L371.7,320.5 L380.6,333.0 L368.5,336.0 L371.5,346.4 L363.3,350.6 L369.7,364.0 L356.5,364.1 L359.4,375.8 L351.5,379.1 L355.1,392.3 L341.7,389.8 L344.6,403.3 L336.3,405.0 L337.2,417.3 L324.6,412.9 L327.1,428.3 L318.0,427.7 L316.7,438.6 L305.5,433.3 L306.8,450.1 L297.1,446.3 L294.2,456.2 L284.5,450.8 L284.1,467.9 L274.2,460.5 L270.4,470.0 L261.9,464.9 L259.4,481.0 L250.0,470.1 L245.4,480.1 L237.9,475.1 L233.3,488.9 L225.1,475.5 L219.7,486.5 L212.8,480.7 L206.7,491.5 L200.0,476.7 L193.4,488.9 L187.2,481.3 L180.1,488.9 L175.0,474.2 L166.9,486.9 L161.8,476.8 L154.3,481.7 L150.5,468.1 L140.8,480.0 L137.4,467.1 L129.5,470.3 L126.6,458.2 L115.8,468.1 L114.6,452.9 L106.1,455.4 L103.8,444.4 L92.5,451.3 L93.7,434.8 L84.3,437.0 L82.6,426.7 L71.7,430.0 L75.0,413.4 L64.3,415.5 L63.7,405.0 L53.8,405.0 L58.7,389.5 L46.5,390.9 L47.8,379.7 L39.1,377.0 L44.7,363.3 L31.5,363.2 L35.2,351.5 L27.7,346.9 L33.2,335.1 L19.8,332.9 L26.4,321.3 L19.4,315.4 L24.5,305.3 L11.9,300.5 L21.3,289.8 L14.1,283.0 L19.0,274.0 L8.3,266.9 L19.7,258.0 L11.8,250.0 L17.2,241.9 L9.0,233.1 L21.4,226.3 L12.8,216.8 L19.3,209.7 L13.8,200.0 L26.1,195.2 L17.2,183.8 L25.4,178.3 L22.2,168.3 L33.6,165.1 L25.2,151.7 L35.5,148.6 L33.8,138.4 L43.9,136.1 L37.1,121.4 L49.0,121.4 L48.1,110.6 L57.1,109.0 L52.7,93.9 L65.5,97.0 L64.9,85.2 L73.3,84.2 L71.6,69.9 L84.3,75.8 L84.0,62.4 L92.3,62.7 L93.2,50.0 L104.9,57.8 L105.2,42.7 L113.8,45.2 L116.8,34.4 L127.1,43.1 L128.6,26.7 L137.3,32.3 L141.7,23.2 L150.4,31.7 L153.6,15.1 L162.0,24.3 L167.4,16.2 L174.9,24.0 L179.9,8.5 L187.3,21.1 L193.4,13.0 L200.0,20.4 L206.7,7.4 L212.6,22.5 L219.7,13.8 L225.4,21.3 L233.3,11.7 L237.4,28.0 L245.7,18.5 L250.6,27.2 L258.9,21.1 L261.3,37.2 L271.2,27.4 L274.7,38.1 L283.0,35.0 L284.2,49.9 L295.6,40.9 L297.1,53.8 L305.3,52.7 L305.9,65.9 L318.2,58.9 L317.2,73.6 L325.7,73.7 L325.8,85.4 L338.3,81.3 L334.6,96.9 L343.9,97.5 L343.6,108.3 L355.3,107.5 L349.4,122.8 L359.7,123.9 L358.6,134.3 L368.8,136.6 L361.3,150.6 L373.0,152.7 L370.2,163.1 L378.6,167.9 L370.5,180.0 L383.1,183.7 L378.0,193.9 L384.8,200.4 L376.9,210.6 L389.7,216.3 L381.8,225.9 L387.6,233.4 L380.4,242.0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.plain .hero-oval { -webkit-mask: none; mask: none; border-radius: 50%; }
.hero-hi { font: 400 34px/1 var(--f-script); color: var(--wine); margin: 6px 0 2px; }
.hero-name { font-size: clamp(22px, 2.4vw, 30px); font-weight: 850; color: var(--accent-ink); text-transform: uppercase; letter-spacing: -.01em; max-width: 280px; }
[data-theme="cocoa"] .hero-name { color: #F6EADB; }
.hero-tag { font: 12.5px/1.4 var(--f-mono); color: var(--ink-2); max-width: 260px; margin: 6px 0 2px; }
.hero-date { font: 500 12px var(--f-mono); color: var(--wine); margin: 0; }
.hero-heart { position: absolute; right: 18%; top: 18%; }
.hero-frame { grid-column: 2; grid-row: 1; justify-self: stretch; margin: 22px 26px 22px -30px; }
.hero-img { display: block; width: 100%; height: 280px; padding: 0; border: 0; cursor: pointer; overflow: hidden; border-radius: 0; position: relative; -webkit-mask: radial-gradient(14px, #000 97%, #0000) 0 0 / 28px 28px round, linear-gradient(#000 0 0) 14px 14px / calc(100% - 28px) calc(100% - 28px) no-repeat; mask: radial-gradient(14px, #000 97%, #0000) 0 0 / 28px 28px round, linear-gradient(#000 0 0) 14px 14px / calc(100% - 28px) calc(100% - 28px) no-repeat; background: var(--wine); }
.hero-img img { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: cover; }
.hero-img.empty { display: grid; place-items: center; background: var(--paper); color: var(--accent-ink); }
.hero-img.empty .hero-add { position: relative; display: inline-flex; gap: 8px; align-items: center; font-weight: 700; background: var(--paper); padding: 10px 16px; border-radius: 999px; }
.hero-pat { position: absolute; inset: 14px; background: repeating-linear-gradient(90deg, var(--blush) 0 22px, var(--paper) 22px 44px); }
.plain .hero-img { -webkit-mask: none; mask: none; border-radius: 22px; }
.hero-doodle { position: absolute; right: 22px; bottom: 6px; width: 120px; color: var(--paper); z-index: 3; opacity: .95; filter: drop-shadow(0 2px 0 var(--wine)); }
.logo-badge { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; border: 3px solid var(--peri); background: var(--blush); display: grid; place-items: center; padding: 0; cursor: pointer; flex: none; position: relative; color: var(--wine); }
.logo-badge img { width: 100%; height: 100%; object-fit: cover; }
.logo-badge.empty span { font: 400 46px/1 var(--f-script); } .logo-badge.empty small { position: absolute; bottom: 8px; font: 500 9px var(--f-mono); text-transform: uppercase; display: flex; align-items: center; gap: 2px; }
.logo-badge.sm { width: 60px; height: 60px; } .logo-badge.sm.empty span { font-size: 32px; } .logo-badge.sm.empty small { display: none; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.home-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.home-grid .span2 { grid-column: span 2; }
.home-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 18px; align-items: start; } .home-cols .stack { gap: 18px; }
.glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.g-col h3 { display: flex; align-items: center; gap: 6px; font-size: 15px; color: var(--wine); margin-bottom: 8px; } .g-n { margin-left: auto; font: 600 12px var(--f-mono); background: var(--accent-soft); color: var(--accent-ink); border-radius: 999px; padding: 1px 8px; }
.g-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.g-row { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; padding: 8px 10px; border-radius: 14px; background: var(--paper-2); border-left: 4px solid var(--c2); font-size: 14px; }
.g-row small { grid-column: 2; color: var(--ink-2); font-size: 12px; } .g-time { font-size: 12px; color: var(--ink-2); padding-top: 2px; } .g-row.done { opacity: .6; } .g-row.done .link-plain { text-decoration: line-through; }
.g-row.u-red, .g-row.u-late { border-left-color: var(--bad); } .g-row.u-amber { border-left-color: var(--gold); } .g-row.u-green { border-left-color: var(--good); }
.g-next { margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed var(--line); }
.tmini-list { display: flex; flex-direction: column; gap: 8px; }
.tmini { --p: 0; position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); overflow: hidden; isolation: isolate; }
.tmini::before { content: ''; position: absolute; inset: 0; width: calc(var(--p) * 100%); background: var(--accent-soft); z-index: -1; transition: width .5s linear; }
.side-timers .tmini::before { background: rgba(255,255,255,.12); }
.tm-n { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tm-n small { font: 500 11px var(--f-mono); opacity: .75; }
.tmini b { font-size: 16px; } .tmini.ringing { border-color: var(--bad); animation: pulse 1s ease-in-out infinite; } .tmini.done { opacity: .6; } .tmini.paused b { opacity: .6; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px var(--bad-bg), 0 0 0 8px var(--bad); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-2px); } 75% { transform: translateX(2px); } }
.rev-row { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; } .rev-row b { font: 800 26px var(--f-head); color: var(--accent-ink); } .rev-row small { color: var(--ink-2); } .rev-row .label { flex: 1; margin: 0; }
.rev-foot { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.goal-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; padding-top: 10px; border-top: 1px dashed var(--line); }
.goal-form label { display: flex; flex-direction: column; gap: 3px; flex: 1 1 110px; } .goal-form label span { font: 500 10.5px var(--f-mono); text-transform: uppercase; color: var(--ink-2); }
.dates { list-style: none; margin: 0; padding: 0; } .dates li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); } .dates li:last-child { border: 0; }
.dates li > span { flex: 1; display: flex; flex-direction: column; } .dates small { color: var(--ink-2); }
.prof { display: flex; gap: 14px; align-items: center; } .prof-name { font: 800 19px var(--f-head); color: var(--wine); } .prof p { margin: 2px 0; }

/* ---------- Recipe vault ---------- */
.rc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.rc-card { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.rc-cover { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--blush); overflow: hidden; }
.rc-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; } .rc-card:hover .rc-cover img { transform: scale(1.04); }
.cover-ph { display: grid; place-items: center; width: 100%; height: 100%; background: repeating-linear-gradient(90deg, var(--blush) 0 18px, var(--paper) 18px 36px); color: var(--accent); }
.cover-ph .doodle { width: 55%; } .cover-ph.c-bread, .cover-ph.c-sourdough { background: repeating-linear-gradient(90deg, var(--accent-soft) 0 18px, var(--paper) 18px 36px); }
.ribbon { position: absolute; left: 10px; padding: 3px 11px; border-radius: 999px; font: 500 11px var(--f-mono); letter-spacing: .03em; box-shadow: 0 2px 0 rgba(0,0,0,.1); }
.ribbon.fav { top: 10px; background: var(--pink); color: #4A1212; } .ribbon.best { top: 38px; background: var(--accent); color: var(--on-accent); } .ribbon.fav:only-of-type, .ribbon.best:only-of-type { top: 10px; }
.rc-body { padding: 14px 16px 14px; display: flex; flex-direction: column; flex: 1; }
.rc-body h3 { font-size: 19px; margin: 2px 0 4px; } .rc-body h3 a { color: var(--ink); text-decoration: none; } .rc-body h3 a:hover { color: var(--wine); }
.rc-times { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: var(--ink-2); margin: 6px 0; }
.rc-uses { color: var(--good); margin: 2px 0 6px; }
.rc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 12.5px; }
.stars { display: inline-flex; gap: 1px; color: var(--gold); } .star { color: var(--line-2); background: none; border: 0; padding: 1px; cursor: pointer; display: inline-grid; } .star.on { color: var(--gold); } i.star { cursor: default; }
.alg-dots { display: inline-flex; gap: 3px; } .ad, .alg-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.ad { margin-left: 3px; vertical-align: middle; }
.a-gluten { --a: #C58B3A; } .a-dairy { --a: #7FA2E6; } .a-egg { --a: #E2B93B; } .a-treenut { --a: #8A5A3C; } .a-peanut { --a: #B5733A; } .a-soy { --a: #7E9C76; } .a-sesame { --a: #C9A86A; } .a-sulphite { --a: #9A6BB0; }
.ad { background: var(--a); } .alg-dot { color: var(--a); width: auto; height: auto; font-size: 17px; line-height: 1; }
.alg { display: inline-flex; align-items: center; gap: 5px; padding: 3px 11px; border-radius: 999px; border: 1.5px solid var(--a); color: var(--ink); font: 500 12.5px var(--f-mono); }
.alg::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--a); }
.alg-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.rc-hero { display: grid; grid-template-columns: minmax(260px, 440px) 1fr; gap: 30px; align-items: center; margin-bottom: 20px; }
.rc-hero-img { aspect-ratio: 4 / 3; } .rc-hero-img img, .rc-hero-img .cover-ph { width: 100%; height: 100%; object-fit: cover; }
.rc-hero-text h1 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 850; color: var(--accent-ink); text-transform: uppercase; margin: 2px 0 8px; } [data-theme="cocoa"] .rc-hero-text h1 { color: #F6EADB; }
.rc-badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; } .rc-badges .ribbon { position: static; }
.rc-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin: 10px 0; }
.rc-meta div { padding: 8px 12px; border-radius: 16px; background: var(--blush-2); border: 1px solid var(--line); } .rc-meta b { font-size: 14px; }
.rc-hero-text .inline { margin-top: 12px; }
.rc-cols { display: grid; grid-template-columns: 1fr 1.25fr; gap: 18px; margin-bottom: 18px; }
.scale-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; }
.srv { display: inline-flex; align-items: center; gap: 6px; font: 500 11px var(--f-mono); text-transform: uppercase; color: var(--ink-2); } .srv .input { width: 76px; min-height: 34px; padding: 4px 8px; }
.scale-note { background: var(--accent-soft); color: var(--accent-ink); padding: 6px 12px; border-radius: 12px; }
.ing-list { list-style: none; margin: 0; padding: 0; } .ing-list li { display: flex; gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.ing-list .amt { min-width: 76px; color: var(--wine); font-size: 13.5px; } [data-theme="cocoa"] .ing-list .amt { color: var(--pink); }
.ing-list li > span:nth-child(2) { flex: 1; } .ing-list .ok { color: var(--good); } .ing-list .short { font: 500 11px var(--f-mono); color: var(--warn); background: var(--warn-bg); border-radius: 999px; padding: 0 8px; }
.ing-list.cmp li.diff { background: var(--warn-bg); border-radius: 8px; padding-inline: 8px; }
.versions { list-style: none; margin: 0 0 10px; padding: 0; } .versions li { padding: 8px 0; border-bottom: 1px dashed var(--line); } .versions li.cur b { color: var(--wine); } .versions p { margin: 2px 0; }
.plain-ol, .steps-ol { margin: 0; padding-left: 22px; } .steps-ol li { padding: 4px 0; }

/* ---------- Converters & math ---------- */
.pan-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; } .pan-box { padding: 14px; border-radius: 18px; background: var(--blush-2); border: 1px solid var(--line); } .pan-box h3 { margin-bottom: 10px; color: var(--wine); }
.dens { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px 16px; font-size: 13.5px; } .dens div { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding: 4px 0; }
.temp-out { display: grid; gap: 10px; }
.subs { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.sub-card { background: var(--paper); border: 1.5px solid var(--line); border-radius: 20px; padding: 16px; } .sub-card h3 { color: var(--wine); margin-bottom: 6px; }
.tt-tbl.bm td { padding: 6px 8px; } .tt-tbl.bm .input { min-height: 34px; padding: 4px 9px; } .tt-tbl.bm .input.sm { width: 84px; text-align: right; }
.flour-row td { font-weight: 700; background: var(--accent-soft); } .tot td { border-top: 2px solid var(--wine); font-weight: 700; }

/* ---------- Starter ---------- */
.st-pick { margin-bottom: 14px; }
.st-top { display: grid; grid-template-columns: minmax(280px, 460px) 1fr; gap: 18px; margin-bottom: 18px; align-items: start; }
.wavy-card { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 18px; border-radius: var(--r); background: var(--paper); border: 2px solid var(--wine); position: relative; }
.wavy-card::before { content: ''; position: absolute; inset: 6px; border: 1.5px dashed var(--pink); border-radius: 16px; pointer-events: none; }
.st-ph { width: 140px; aspect-ratio: 3 / 4; border-radius: 70px; overflow: hidden; border: 3px solid var(--peri); background: var(--blush); padding: 0; cursor: pointer; display: grid; place-items: center; color: var(--accent-ink); position: relative; z-index: 1; }
.st-ph img { width: 100%; height: 100%; object-fit: cover; } .st-ph.empty { flex-direction: column; font-size: 12px; text-align: center; padding: 10px; }
.st-profile h2 { font-size: 26px; color: var(--accent-ink); }
.st-top .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.diary { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.pola { margin: 0; background: #FFFDF8; padding: 10px 10px 12px; border-radius: 6px; box-shadow: 0 8px 22px -12px rgba(0,0,0,.45); transform: rotate(-1.5deg); color: #3B1414; }
.pola:nth-child(2n) { transform: rotate(1.6deg); } .pola button { padding: 0; border: 0; display: block; width: 100%; cursor: pointer; } .pola img { aspect-ratio: 3 / 4; width: 100%; object-fit: cover; }
.pola figcaption { font: 12px var(--f-mono); padding-top: 8px; }
.care-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.card.care h3 { color: var(--wine); }

/* ---------- Timers ---------- */
.presets { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.preset { display: flex; flex-direction: column; align-items: center; padding: 12px 18px; border-radius: 50% / 46%; border: 2px solid var(--primary); background: var(--paper); color: var(--wine); cursor: pointer; min-width: 112px; font: inherit; }
.preset:hover { background: var(--primary); color: var(--on-primary); } .preset b { font: 700 15px var(--f-head); } .preset small { font: 500 11px var(--f-mono); }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-bottom: 18px; }
.tcard { --p: 0; display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--r); background: var(--paper); border: 2px solid var(--line); box-shadow: var(--shadow); }
.tcard.running { border-color: var(--accent); } .tcard.ringing { border-color: var(--bad); background: var(--bad-bg); animation: pulse 1s ease-in-out infinite; } .tcard.ringing .tc-ring { animation: shake .6s ease-in-out infinite; } .tcard.done { opacity: .7; }
.tc-ring { width: 104px; height: 104px; flex: none; } .tc-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.tr-bg { fill: none; stroke: var(--blush); stroke-width: 10; } .tr-fg { fill: none; stroke: var(--primary); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p)); transition: stroke-dashoffset .5s linear; }
.tcard.running .tr-fg { stroke: var(--accent); }
.tc-body { flex: 1; min-width: 0; } .tc-body h3 { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-clock { display: block; font: 500 34px/1.1 var(--f-mono); color: var(--accent-ink); margin: 2px 0 8px; }
.tc-btns { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .tc-btns .btn { min-height: 34px; padding: 4px 12px; font-size: 13px; }

/* ---------- Planner ---------- */
.rb-steps { list-style: none; counter-reset: s; margin: 12px 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rb-steps li { counter-increment: s; display: flex; gap: 6px; align-items: center; } .rb-steps li::before { content: counter(s); font: 600 12px var(--f-mono); width: 22px; height: 22px; border-radius: 50%; background: var(--blush); color: var(--wine); display: grid; place-items: center; flex: none; }
.rb-steps .input { min-height: 36px; padding: 5px 10px; } .rb-steps .input.sm { width: 74px; flex: none; } .rb-move { display: flex; flex: none; } .rb-move .icon-btn { width: 30px; height: 30px; }
.rb-out { list-style: none; margin: 0; padding: 0; } .rb-out li { position: relative; display: grid; grid-template-columns: 150px 1fr auto; gap: 10px; align-items: baseline; padding: 8px 0 14px; border-bottom: 1px dashed var(--line); font-size: 14px; }
.rb-out li.ready b { color: var(--wine); font-family: var(--f-script); font-size: 26px; font-weight: 400; } .rb-out small { color: var(--ink-2); }
.rb-bar { position: absolute; left: var(--l); width: var(--w); bottom: 4px; height: 5px; border-radius: 999px; background: var(--peri); }
.cal-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; } .cal-title { font: 700 18px var(--f-head); margin: 0 6px; color: var(--wine); }
.cal-key { margin-left: auto; display: inline-flex; gap: 6px 12px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--ink-2); } .cal-key i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: -6px; }
.k-bake { background: var(--wine); } .k-order { background: var(--accent); } .k-step { background: var(--pink); }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.wk-day { background: var(--paper); border: 1.5px solid var(--line); border-radius: 18px; padding: 8px; min-height: 220px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wk-day.is-today { border-color: var(--wine); box-shadow: 0 0 0 2px var(--blush); }
.wk-day header { display: flex; justify-content: space-between; align-items: center; } .wk-day header .link-plain span { font: 800 20px var(--f-head); color: var(--accent-ink); margin-left: 3px; } .wk-day header b { font: 500 11px var(--f-mono); text-transform: uppercase; color: var(--ink-2); }
.wk-day header .icon-btn { width: 28px; height: 28px; }
.ev { display: flex; flex-direction: column; gap: 1px; text-align: left; padding: 6px 8px; border-radius: 12px; border: 0; cursor: pointer; font: inherit; font-size: 12.5px; background: var(--blush-2); border-left: 4px solid var(--wine); color: var(--ink); width: 100%; min-width: 0; }
.ev b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ev small { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ev .mono { font-size: 11px; color: var(--ink-2); }
.ev-order { background: var(--accent-soft); border-left-color: var(--accent); } .ev-step { background: var(--paper-2); border-left-color: var(--pink); } .ev.done { opacity: .55; } .ev.done b { text-decoration: line-through; }
.ev-order.u-red, .ev-order.u-late { border-left-color: var(--bad); }
.day-view { display: flex; flex-direction: column; gap: 8px; max-width: 720px; } .day-view .ev { font-size: 14px; padding: 10px 14px; } .day-view .ev b { font-size: 15px; }
.oven-day { margin-bottom: 14px; }
.gantt { display: grid; grid-template-columns: 140px 1fr; gap: 12px; align-items: center; margin: 8px 0; }
.g-oven { font-weight: 700; display: flex; flex-direction: column; } .g-oven small { font: 500 11px var(--f-mono); color: var(--ink-2); }
.g-track { position: relative; height: 74px; border-radius: 14px; background: repeating-linear-gradient(90deg, var(--blush-2) 0 1px, transparent 1px 100%), var(--paper-2); }
.g-tick { position: absolute; top: 0; bottom: 0; border-left: 1px dashed var(--line-2); } .g-tick span { position: absolute; bottom: -18px; left: -8px; font: 10px var(--f-mono); color: var(--ink-3); font-style: normal; }
.g-bar { position: absolute; top: calc(6px + var(--row) * 22px); height: 20px; border-radius: 999px; border: 0; background: var(--primary); color: var(--on-primary); font: 600 11px var(--f-body); padding: 0 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; min-width: 10px; }
.g-bar.clash { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-bg); } .g-bar.done { opacity: .5; }
.prep-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.prep-o { padding: 10px 0; border-bottom: 1px dashed var(--line-2); } .prep-o:last-child { border: 0; } .prep-o h3 { display: flex; flex-direction: column; font-size: 16px; } .prep-o h3 small { font: 500 11.5px var(--f-body); color: var(--ink-2); }
.batch { display: grid; gap: 8px; padding: 12px 0; border-bottom: 1px dashed var(--line-2); } .batch:last-child { border: 0; } .batch h3 { color: var(--wine); }
.batch-list { list-style: none; margin: 0; padding: 0; } .batch-list li { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; font-size: 14px; } .batch-list small { color: var(--ink-2); }
.batch-days { margin-bottom: 14px; }

/* ---------- Orders ---------- */
.kanban { display: grid; grid-template-columns: repeat(6, minmax(170px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 10px; align-items: start; }
.k-col { background: var(--paper-2); border-radius: 20px; padding: 10px; min-height: 280px; border: 1.5px solid var(--line); }
.k-col header { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 10px; } .k-col h3 { font-size: 15px; color: var(--wine); } .k-n { font: 600 12px var(--f-mono); background: var(--paper); border-radius: 999px; padding: 1px 9px; }
.k-col header { border-bottom: 3px solid var(--kc, var(--line-2)); margin-bottom: 10px; }
.k-inquiry { --kc: var(--line-2); } .k-quoted { --kc: var(--peri); } .k-deposit { --kc: var(--gold); } .k-production { --kc: var(--pink); } .k-ready { --kc: var(--accent); } .k-done { --kc: var(--good); }
.k-col.drop-over { outline: 3px dashed var(--accent); background: var(--accent-soft); }
.k-cards { display: flex; flex-direction: column; gap: 8px; } .k-empty { text-align: center; color: var(--ink-3); padding: 20px 0; }
.o-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 16px; background: var(--paper); border: 1.5px solid var(--line); border-left: 5px solid var(--good); cursor: grab; box-shadow: var(--shadow); }
.o-card.u-amber { border-left-color: var(--gold); } .o-card.u-red, .o-card.u-late { border-left-color: var(--bad); } .o-card.u-done { border-left-color: var(--line-2); }
.o-card.dragging { opacity: .35; } .drag-ghost { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; box-shadow: 0 20px 40px -10px rgba(0,0,0,.4); }
.is-dragging, .is-dragging * { cursor: grabbing !important; user-select: none; }
.grip { position: absolute; right: 8px; top: 8px; color: var(--ink-3); cursor: grab; }
.o-thumb { display: block; height: 86px; border-radius: 12px; overflow: hidden; margin: -2px -2px 2px; } .o-thumb img { width: 100%; height: 100%; object-fit: cover; }
.o-open { display: flex; flex-direction: column; padding-right: 18px; } .o-open b { font-size: 14.5px; line-height: 1.25; } .o-open small { color: var(--ink-2); font-weight: 400; font-size: 12.5px; }
.o-meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; } .o-meta.small { font-size: 12px; color: var(--ink-2); }
.due { display: inline-flex; align-items: center; gap: 4px; font: 500 11.5px var(--f-mono); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.due.u-green { background: var(--good-bg); color: var(--good); } .due.u-amber { background: var(--warn-bg); color: var(--warn); } .due.u-red, .due.u-late { background: var(--bad-bg); color: var(--bad); } .due.u-done { background: var(--paper-2); color: var(--ink-2); }
.alg-flag { color: var(--bad); font: 500 11.5px var(--f-mono); display: inline-flex; align-items: center; gap: 3px; }
.o-status .input { border-radius: 999px; }
.legend-u { margin-top: 10px; } .legend-u .due { margin: 0 2px; }
.st { font: 500 11.5px var(--f-mono); border-radius: 999px; padding: 2px 9px; background: var(--paper-2); }
.st-quoted { background: var(--accent-soft); color: var(--accent-ink); } .st-deposit { background: var(--warn-bg); color: var(--warn); } .st-production { background: var(--blush); color: var(--wine); } .st-ready { background: var(--accent); color: var(--on-accent); } .st-done { background: var(--good-bg); color: var(--good); }
.ov-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; } .ov-top b { margin-left: auto; font-size: 18px; }
.ov-photos, .mini-ph { display: flex; flex-wrap: wrap; gap: 8px; } .ov-photos button, .mini-ph button { width: 110px; height: 110px; padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: pointer; }
.ov-photos img, .mini-ph img { width: 100%; height: 100%; object-fit: cover; } .mini-ph button { width: 44px; height: 44px; border-radius: 10px; }
.cap-weeks { list-style: none; padding: 0; margin: 0; } .cap-weeks li { display: grid; grid-template-columns: 130px 1fr 60px auto; gap: 10px; align-items: center; padding: 6px 0; font-size: 13.5px; } .cap-weeks li.full b { color: var(--bad); }

/* ---------- Invoices ---------- */
.ist { font: 500 11.5px var(--f-mono); border-radius: 999px; padding: 2px 10px; background: var(--paper-2); white-space: nowrap; }
.is-sent { background: var(--accent-soft); color: var(--accent-ink); } .is-partial { background: var(--warn-bg); color: var(--warn); } .is-paid { background: var(--good-bg); color: var(--good); } .is-overdue { background: var(--bad); color: #fff; } .is-quote, .is-approved { background: var(--blush); color: var(--wine); } .is-declined { text-decoration: line-through; }
.inv-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.inv-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 16px; }
.inv-paper { background: var(--paper); border-radius: 30px; padding: 12px; box-shadow: var(--shadow); }
.ln-tbl { width: 100%; border-collapse: collapse; margin-bottom: 8px; } .ln-tbl th { text-align: left; font: 500 10.5px var(--f-mono); text-transform: uppercase; color: var(--ink-2); padding: 4px; } .ln-tbl td { padding: 3px; } .ln-tbl td:nth-child(2), .ln-tbl td:nth-child(3) { width: 96px; }

/* invoice design page */
.iv-design { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 20px; align-items: start; }
.iv-preview { position: sticky; top: 16px; } .iv-preview .inv-paper { margin-top: 6px; }
.iv-colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 14px; }
.iv-color { display: flex; gap: 10px; align-items: flex-start; } .iv-color .field { flex: 1; min-width: 0; } .iv-color small { font-size: 12px; }
.iv-pick { position: relative; width: 44px; height: 44px; margin-top: 21px; border-radius: 14px; background: var(--c); border: 2px solid var(--line-2); flex: none; cursor: pointer; overflow: hidden; }
.iv-pick input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.input.bad { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-bg); }
.iv-preset i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: -3px; border: 1.5px solid var(--paper); }
.ivf-tbl { table-layout: fixed; } .ivf-tbl th:nth-child(1), .ivf-tbl td:nth-child(1) { width: 30%; } .ivf-tbl th:nth-child(3), .ivf-tbl td:nth-child(3) { width: 30%; } .ivf-tbl th:nth-child(4), .ivf-tbl td:nth-child(4) { width: 40px; } .ivf-tbl .input { min-width: 0; } .iv-text { grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); }
.iv-save { position: sticky; bottom: 12px; background: var(--bg); padding: 10px 0; z-index: 2; }

/* ---------- Pricing & customers ---------- */
.price-pick { display: flex; gap: 10px; align-items: flex-end; margin-bottom: 16px; max-width: 560px; } .price-pick .field { flex: 1; }
tr.miss td { background: var(--warn-bg); }
.verdict { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border-radius: 18px; } .verdict b { font: 800 19px var(--f-head); } .verdict span { font-size: 13px; }
.verdict.bad { background: var(--bad-bg); color: var(--bad); } .verdict.warn { background: var(--warn-bg); color: var(--warn); } .verdict.good { background: var(--good-bg); color: var(--good); }
.verdict-chip { font: 500 11.5px var(--f-mono); border-radius: 999px; padding: 2px 10px; } .verdict-chip.bad { background: var(--bad-bg); color: var(--bad); } .verdict-chip.warn { background: var(--warn-bg); color: var(--warn); } .verdict-chip.good { background: var(--good-bg); color: var(--good); } .verdict-chip.none { background: var(--paper-2); }
tr.chk-bad td:first-child { box-shadow: inset 4px 0 var(--bad); }
.addon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.addon { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; text-align: left; border-radius: 20px; background: var(--paper); border: 1.5px solid var(--line); cursor: pointer; font: inherit; color: inherit; }
.addon b { font: 700 16px var(--f-head); } .addon small { color: var(--ink-2); } .addon:hover { border-color: var(--wine); }
.narrow-card { max-width: 640px; }
.cust-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.cust-card { display: flex; gap: 14px; padding: 14px; border-radius: 22px; background: var(--paper); border: 1.5px solid var(--line); text-decoration: none; color: inherit; box-shadow: var(--shadow); }
.cust-card:hover { border-color: var(--wine); }
.cc-ph { width: 66px; height: 66px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; background: var(--blush); border: 3px solid var(--peri); color: var(--wine); }
.cc-ph img { width: 100%; height: 100%; object-fit: cover; } .cc-ph b { font: 800 22px var(--f-head); } .cc-ph.big { width: 150px; height: 150px; } .cc-ph.big b { font-size: 48px; }
.cc-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .cc-body > b { font: 700 17px var(--f-head); } .cc-body small { color: var(--ink-2); font-size: 12.5px; }
.cc-body .ribbon { position: static; display: inline-block; width: fit-content; margin: 2px 4px 2px 0; }
.ribbon.vip { background: var(--gold); color: #3B1414; } .ribbon.rep { background: var(--accent-soft); color: var(--accent-ink); }
.cust-hero { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; margin-bottom: 18px; } .cust-hero h1 { font-size: clamp(28px, 3.4vw, 42px); text-transform: uppercase; color: var(--accent-ink); font-weight: 850; } [data-theme="cocoa"] .cust-hero h1 { color: #F6EADB; }
.cust-hero .metrics { margin: 12px 0; }
.remind { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); } .remind span { flex: 1; display: flex; flex-direction: column; } .remind small { color: var(--ink-2); }
.pgrid, .mood { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pgrid > button, .mood > button { padding: 0; border: 0; aspect-ratio: 1; border-radius: 16px; overflow: hidden; cursor: pointer; } .pgrid img, .mood img { width: 100%; height: 100%; object-fit: cover; }
.mood { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); } .mood > button:nth-child(5n+1) { grid-row: span 2; aspect-ratio: auto; }
.review { margin: 0 0 12px; padding: 16px 18px; border-radius: 20px; background: var(--blush-2); border-left: 5px solid var(--pink); }
.review p { font: italic 500 17px/1.45 var(--f-head); margin: 0 0 8px; } .review footer { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-2); }
.reviews { columns: 2 300px; column-gap: 14px; } .reviews .review { break-inside: avoid; }

/* ---------- Pantry & shopping ---------- */
.eq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.eq-card { display: flex; gap: 14px; padding: 14px; border-radius: 20px; background: var(--paper); border: 1.5px solid var(--line); }
.eq-card.repair { border-color: var(--gold); } .eq-card.wish { border-style: dashed; border-color: var(--pink); }
.eq-ph { width: 84px; height: 84px; flex: none; border-radius: 18px; overflow: hidden; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; padding: 0; border: 0; cursor: pointer; } .eq-ph img { width: 100%; height: 100%; object-fit: cover; } .eq-ph .ic { width: 34px; height: 34px; }
.shop-bar { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; margin-bottom: 14px; }
.shop-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; } .shop-wrap > div { display: flex; flex-direction: column; gap: 14px; }
.shop-side { position: sticky; top: 16px; }
.tt-check.shop li { align-items: center; } .tt-check.shop .mono { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; } .tt-check.shop .num { min-width: 64px; text-align: right; font-size: 13.5px; }
.sup-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; } .card.sup.fav { border-color: var(--pink); }
.price-list { list-style: none; padding: 0; margin: 8px 0; } .price-list li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }

/* ---------- Design, portfolio, clinic, journal ---------- */
.pj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.pj-card { display: flex; flex-direction: column; border-radius: 22px; background: var(--paper); border: 1.5px solid var(--line); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow); }
.pj-board { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; aspect-ratio: 4 / 3; background: var(--blush); } .pj-board img { width: 100%; height: 100%; object-fit: cover; } .pj-board .cover-ph { grid-column: 1 / -1; grid-row: 1 / -1; }
.pj-body { padding: 12px 16px 16px; display: flex; flex-direction: column; } .pj-body b { font: 700 18px var(--f-head); } .pj-body small { color: var(--ink-2); }
.sk-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.sk-c { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--c); cursor: pointer; } .sk-c.on { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--accent); }
.sketch { width: 100%; height: auto; aspect-ratio: 600 / 420; border-radius: 18px; border: 2px dashed var(--line-2); background: #FFFDF8; touch-action: none; cursor: crosshair; display: block; }
.colors { list-style: none; padding: 0; margin: 0; } .colors li { display: grid; grid-template-columns: 30px auto 1fr; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.sw { width: 26px; height: 26px; border-radius: 50%; background: var(--sw); border: 2px solid var(--line-2); }
.pairs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.pair { padding: 16px; border-radius: 50% / 34%; background: var(--paper); border: 2px solid var(--line); text-align: center; } .pair h3 { color: var(--wine); font-size: 18px; } .pair .amp { font-family: var(--f-script); font-size: 26px; color: var(--accent); font-weight: 400; }
.pair.f-fruit { border-color: var(--pink); } .pair.f-chocolate { border-color: var(--wine); } .pair.f-nut, .pair.f-spice { border-color: var(--gold); } .pair.f-floral { border-color: var(--peri); } .pair.f-tropical, .pair.f-tea { border-color: var(--c6); }
.tier-pick { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; } .tier-b { width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--paper); font: 600 13px var(--f-mono); cursor: pointer; color: var(--ink); } .tier-b.on { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.tier-stack { display: flex; flex-direction: column; align-items: center; gap: 0; margin: 14px 0; } .tier-stack i { display: block; width: var(--w); height: 36px; background: var(--blush); border: 2px solid var(--wine); border-bottom-width: 0; border-radius: 10px 10px 0 0; } .tier-stack i:last-child { border-bottom-width: 2px; border-radius: 10px; } .tier-stack i.round { border-radius: 40% 40% 6px 6px / 20px 20px 6px 6px; }
.masonry { columns: 4 230px; column-gap: 14px; } .masonry .pf { break-inside: avoid; margin: 0 0 14px; }
.pf { background: var(--paper); border: 1.5px solid var(--line); border-radius: 20px; overflow: hidden; } .pf > button { display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; } .pf img { width: 100%; height: auto; }
.pf figcaption { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; } .pf figcaption b { font: 700 15px var(--f-head); } .pf figcaption small { color: var(--ink-2); font-size: 12.5px; }
.pf-acts { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.soc { display: inline-flex; align-items: center; gap: 5px; border: 1.5px solid var(--pink); background: transparent; color: var(--wine); border-radius: 999px; padding: 3px 10px; font: 600 12px var(--f-body); cursor: pointer; } .soc.on { background: var(--pink); color: #4A1212; }
.pf.social { border-color: var(--pink); } .pf .photo-add { margin: 10px; }
.proc { margin-bottom: 14px; } .proc-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; } .proc-strip figure { margin: 0; flex: none; width: 200px; } .proc-strip button { padding: 0; border: 0; width: 200px; height: 200px; border-radius: 16px; overflow: hidden; cursor: zoom-in; } .proc-strip img { width: 100%; height: 100%; object-fit: cover; }
.proc-strip figcaption { font: 500 11.5px var(--f-mono); text-transform: uppercase; color: var(--ink-2); padding-top: 6px; } .proc-strip .photo-add { width: 160px; height: 200px; flex: none; }
.share-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; } .share-bar .toolbar { flex: 1; margin: 0; }
.share { background: var(--paper); border-radius: 30px; padding: 34px; border: 10px solid var(--primary); } .share header { text-align: center; margin-bottom: 22px; } .share h1 { font-size: clamp(30px, 4vw, 50px); text-transform: uppercase; color: var(--accent-ink); font-weight: 850; } [data-theme="cocoa"] .share h1 { color: #F6EADB; }
.share-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; } .share-grid figure { margin: 0; } .share-grid button { padding: 0; border: 0; width: 100%; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; cursor: zoom-in; } .share-grid img { width: 100%; height: 100%; object-fit: cover; }
.share-grid figcaption { text-align: center; font: 400 26px/1.1 var(--f-script); color: var(--wine); padding-top: 8px; }
.prob-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; } .prob { border: 2px solid var(--line-2); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 7px 14px; font: 600 13.5px var(--f-body); cursor: pointer; } .prob.on { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.why, .fix { list-style: none; padding: 0; margin: 0 0 12px; } .why li, .fix li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); align-items: flex-start; } .why .ic { color: var(--warn); margin-top: 2px; } .fix .ic { color: var(--good); margin-top: 2px; }
.fail-grid, .test-grid, .lic-grid, .pol-grid, .cap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.fail-ph, .test-ph { display: block; width: calc(100% + 40px); margin: -20px -20px 12px; aspect-ratio: 4 / 3; padding: 0; border: 0; overflow: hidden; cursor: zoom-in; position: relative; background: var(--blush); }
.fail-ph img, .test-ph img { width: 100%; height: 100%; object-fit: cover; } .test-ph .n { position: absolute; right: 10px; bottom: 10px; font: 600 12px var(--f-mono); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 2px 9px; }
.test-ph.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--accent-ink); background: var(--accent-soft); cursor: pointer; font-weight: 600; }
.card.test { overflow: hidden; } .lesson { background: var(--accent-soft); color: var(--accent-ink); border-radius: 12px; padding: 8px 12px; font-size: 13.5px; } .wx { color: var(--ink-2); }
.cmp-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 14px; } .cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cmp-col { background: var(--paper); border: 1.5px solid var(--line); border-radius: 22px; padding: 16px; } .cmp-ph { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; padding: 0; border: 0; margin-bottom: 10px; } .cmp-ph img { width: 100%; height: 100%; object-fit: cover; } .cmp-ph.empty { display: grid; place-items: center; background: var(--paper-2); color: var(--ink-3); }

/* ---------- Finance, marketing, safety ---------- */
.rank { list-style: none; padding: 0; margin: 0; } .rank li { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.rk { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--blush); color: var(--wine); font: 700 14px var(--f-head); } .rank li:first-child .rk { background: var(--primary); color: var(--on-primary); }
.rk-main { display: flex; flex-direction: column; min-width: 0; } .rk-main small { color: var(--ink-2); font-size: 12px; } .rk-main .bar { height: 7px; margin: 4px 0 0; }
.month { border: 1.5px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--paper); } .m-head { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--primary); color: var(--on-primary); }
.m-head span { padding: 8px; font: 500 11px var(--f-mono); text-transform: uppercase; text-align: center; }
.m-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); } .m-day { min-height: 118px; border-right: 1px dashed var(--line); border-bottom: 1px dashed var(--line); padding: 6px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.m-day:nth-child(7n) { border-right: 0; } .m-day.blank { background: var(--paper-2); } .m-day.is-today { background: var(--blush-2); }
.m-top { display: flex; justify-content: space-between; align-items: center; } .m-top b { font: 700 15px var(--f-head); color: var(--wine); } .m-top .icon-btn { width: 24px; height: 24px; opacity: .5; } .m-day:hover .m-top .icon-btn { opacity: 1; }
.m-season { font: 500 10.5px var(--f-mono); color: var(--wine); background: var(--blush); border-radius: 8px; padding: 2px 6px; display: flex; gap: 4px; align-items: center; }
.m-post { display: flex; gap: 6px; align-items: center; text-align: left; border: 0; border-radius: 10px; padding: 4px; background: var(--accent-soft); cursor: pointer; font: inherit; color: var(--ink); min-width: 0; border-left: 3px solid var(--ps, var(--accent)); }
.m-post span { display: flex; flex-direction: column; min-width: 0; } .m-post b { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .m-post small { font-size: 10.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-th { width: 30px; height: 30px; border-radius: 7px; overflow: hidden; flex: none; } .m-th img { width: 100%; height: 100%; object-fit: cover; }
.ps-idea { --ps: var(--line-2); } .ps-drafted { --ps: var(--gold); } .ps-scheduled { --ps: var(--accent); } .ps-posted { --ps: var(--good); }
.m-key { display: inline-block; border-left: 4px solid var(--ps); padding: 0 8px; margin-right: 8px; }
.card.cap { display: flex; flex-direction: column; } .card.cap .inline { margin-top: auto; padding-top: 8px; } .card.cap.c-hashtags p { color: var(--accent-ink); font-family: var(--f-mono); font-size: 12.5px; }
.seasons li.prep-now { background: var(--blush-2); border-radius: 14px; padding-inline: 8px; }
.matrix th.rot { height: 110px; vertical-align: bottom; padding: 6px 4px; } .matrix th.rot span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.matrix td.mx { text-align: center; } .matrix td.mx.yes { background: var(--blush-2); }
.label-card { position: relative; border: 2px solid var(--wine); border-radius: 18px; padding: 14px 16px; background: #FFFBF4; color: #3B1414; max-width: 380px; }
.lc-brand { font: 400 26px/1 var(--f-script); color: #6E1A1A; } .label-card h3 { font-size: 18px; margin: 4px 0 8px; color: #3B1414; } .lc-price { position: absolute; top: 12px; right: 12px; font: 600 12px var(--f-mono); background: #9DBBF2; color: #22357F; border-radius: 999px; padding: 2px 10px; }
.lc-ing, .lc-al { font-size: 13px; margin: 4px 0; } .lc-dates { display: flex; justify-content: space-between; gap: 8px; font: 500 12px var(--f-mono); border-top: 1px dashed #E3B9B5; padding-top: 6px; margin-top: 8px; } .lc-store { font-size: 12px; color: #6B4A46; margin-top: 4px; }
.card.lic.warn { border-color: var(--gold); } .card.lic.bad { border-color: var(--bad); } .lic-files { display: flex; flex-wrap: wrap; gap: 6px; }
.card.pol p { max-height: 180px; overflow: auto; }
.guide-flows { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 18px; }
.flow { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 22px; background: var(--paper); border: 1.5px solid var(--line); text-decoration: none; color: inherit; box-shadow: var(--shadow); }
.flow:hover { border-color: var(--wine); } .flow b { font: 700 18px var(--f-head); color: var(--wine); } .flow-n { font-size: 12px; color: var(--accent); }
.keys { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: 14px; }

/* ---------- Settings ---------- */
.settings .wide { grid-column: 1 / -1; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.theme-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px; border-radius: 20px; border: 2px solid var(--line); background: var(--paper); cursor: pointer; text-align: left; font: inherit; color: inherit; }
.theme-opt[aria-pressed="true"] { border-color: var(--primary); box-shadow: 0 0 0 3px var(--blush); } .theme-opt small { color: var(--ink-2); }
.theme-sw { display: flex; } .theme-sw i { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--paper); margin-right: -8px; box-shadow: 0 0 0 1px var(--line-2); }
.stats-row { display: flex; gap: 18px; flex-wrap: wrap; } .bigstat b { display: block; font: 800 26px var(--f-head); color: var(--accent-ink); } .bigstat span { font-size: 13px; color: var(--ink-2); }

/* ---------- Sign-in ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: #C5CFDA; }
.auth-art { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 40px; background:
  repeating-linear-gradient(90deg, transparent 0 60px, #F3E7D5 60px 140px, transparent 140px 200px); overflow: hidden; }
.auth-art::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 56px, #E5636A 56px 60px, transparent 60px 140px, #E5636A 140px 144px, transparent 144px 200px); -webkit-mask: radial-gradient(3px, #000 98%, #0000) 0 0 / 8px 8px; mask: radial-gradient(3px, #000 98%, #0000) 0 0 / 8px 8px; opacity: .9; }
.aa-oval { position: relative; z-index: 1; width: min(440px, 90%); aspect-ratio: 4 / 5; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px; background: #FBF3E6; color: #6E1A1A; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 500' preserveAspectRatio='none'%3E%3Cpath d='M390.0,250.0 L379.2,257.9 L390.1,266.8 L382.5,274.2 L387.0,283.2 L377.0,289.4 L387.4,300.3 L377.4,305.9 L380.8,315.5 L371.7,320.5 L380.6,333.0 L368.5,336.0 L371.5,346.4 L363.3,350.6 L369.7,364.0 L356.5,364.1 L359.4,375.8 L351.5,379.1 L355.1,392.3 L341.7,389.8 L344.6,403.3 L336.3,405.0 L337.2,417.3 L324.6,412.9 L327.1,428.3 L318.0,427.7 L316.7,438.6 L305.5,433.3 L306.8,450.1 L297.1,446.3 L294.2,456.2 L284.5,450.8 L284.1,467.9 L274.2,460.5 L270.4,470.0 L261.9,464.9 L259.4,481.0 L250.0,470.1 L245.4,480.1 L237.9,475.1 L233.3,488.9 L225.1,475.5 L219.7,486.5 L212.8,480.7 L206.7,491.5 L200.0,476.7 L193.4,488.9 L187.2,481.3 L180.1,488.9 L175.0,474.2 L166.9,486.9 L161.8,476.8 L154.3,481.7 L150.5,468.1 L140.8,480.0 L137.4,467.1 L129.5,470.3 L126.6,458.2 L115.8,468.1 L114.6,452.9 L106.1,455.4 L103.8,444.4 L92.5,451.3 L93.7,434.8 L84.3,437.0 L82.6,426.7 L71.7,430.0 L75.0,413.4 L64.3,415.5 L63.7,405.0 L53.8,405.0 L58.7,389.5 L46.5,390.9 L47.8,379.7 L39.1,377.0 L44.7,363.3 L31.5,363.2 L35.2,351.5 L27.7,346.9 L33.2,335.1 L19.8,332.9 L26.4,321.3 L19.4,315.4 L24.5,305.3 L11.9,300.5 L21.3,289.8 L14.1,283.0 L19.0,274.0 L8.3,266.9 L19.7,258.0 L11.8,250.0 L17.2,241.9 L9.0,233.1 L21.4,226.3 L12.8,216.8 L19.3,209.7 L13.8,200.0 L26.1,195.2 L17.2,183.8 L25.4,178.3 L22.2,168.3 L33.6,165.1 L25.2,151.7 L35.5,148.6 L33.8,138.4 L43.9,136.1 L37.1,121.4 L49.0,121.4 L48.1,110.6 L57.1,109.0 L52.7,93.9 L65.5,97.0 L64.9,85.2 L73.3,84.2 L71.6,69.9 L84.3,75.8 L84.0,62.4 L92.3,62.7 L93.2,50.0 L104.9,57.8 L105.2,42.7 L113.8,45.2 L116.8,34.4 L127.1,43.1 L128.6,26.7 L137.3,32.3 L141.7,23.2 L150.4,31.7 L153.6,15.1 L162.0,24.3 L167.4,16.2 L174.9,24.0 L179.9,8.5 L187.3,21.1 L193.4,13.0 L200.0,20.4 L206.7,7.4 L212.6,22.5 L219.7,13.8 L225.4,21.3 L233.3,11.7 L237.4,28.0 L245.7,18.5 L250.6,27.2 L258.9,21.1 L261.3,37.2 L271.2,27.4 L274.7,38.1 L283.0,35.0 L284.2,49.9 L295.6,40.9 L297.1,53.8 L305.3,52.7 L305.9,65.9 L318.2,58.9 L317.2,73.6 L325.7,73.7 L325.8,85.4 L338.3,81.3 L334.6,96.9 L343.9,97.5 L343.6,108.3 L355.3,107.5 L349.4,122.8 L359.7,123.9 L358.6,134.3 L368.8,136.6 L361.3,150.6 L373.0,152.7 L370.2,163.1 L378.6,167.9 L370.5,180.0 L383.1,183.7 L378.0,193.9 L384.8,200.4 L376.9,210.6 L389.7,216.3 L381.8,225.9 L387.6,233.4 L380.4,242.0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 500' preserveAspectRatio='none'%3E%3Cpath d='M390.0,250.0 L379.2,257.9 L390.1,266.8 L382.5,274.2 L387.0,283.2 L377.0,289.4 L387.4,300.3 L377.4,305.9 L380.8,315.5 L371.7,320.5 L380.6,333.0 L368.5,336.0 L371.5,346.4 L363.3,350.6 L369.7,364.0 L356.5,364.1 L359.4,375.8 L351.5,379.1 L355.1,392.3 L341.7,389.8 L344.6,403.3 L336.3,405.0 L337.2,417.3 L324.6,412.9 L327.1,428.3 L318.0,427.7 L316.7,438.6 L305.5,433.3 L306.8,450.1 L297.1,446.3 L294.2,456.2 L284.5,450.8 L284.1,467.9 L274.2,460.5 L270.4,470.0 L261.9,464.9 L259.4,481.0 L250.0,470.1 L245.4,480.1 L237.9,475.1 L233.3,488.9 L225.1,475.5 L219.7,486.5 L212.8,480.7 L206.7,491.5 L200.0,476.7 L193.4,488.9 L187.2,481.3 L180.1,488.9 L175.0,474.2 L166.9,486.9 L161.8,476.8 L154.3,481.7 L150.5,468.1 L140.8,480.0 L137.4,467.1 L129.5,470.3 L126.6,458.2 L115.8,468.1 L114.6,452.9 L106.1,455.4 L103.8,444.4 L92.5,451.3 L93.7,434.8 L84.3,437.0 L82.6,426.7 L71.7,430.0 L75.0,413.4 L64.3,415.5 L63.7,405.0 L53.8,405.0 L58.7,389.5 L46.5,390.9 L47.8,379.7 L39.1,377.0 L44.7,363.3 L31.5,363.2 L35.2,351.5 L27.7,346.9 L33.2,335.1 L19.8,332.9 L26.4,321.3 L19.4,315.4 L24.5,305.3 L11.9,300.5 L21.3,289.8 L14.1,283.0 L19.0,274.0 L8.3,266.9 L19.7,258.0 L11.8,250.0 L17.2,241.9 L9.0,233.1 L21.4,226.3 L12.8,216.8 L19.3,209.7 L13.8,200.0 L26.1,195.2 L17.2,183.8 L25.4,178.3 L22.2,168.3 L33.6,165.1 L25.2,151.7 L35.5,148.6 L33.8,138.4 L43.9,136.1 L37.1,121.4 L49.0,121.4 L48.1,110.6 L57.1,109.0 L52.7,93.9 L65.5,97.0 L64.9,85.2 L73.3,84.2 L71.6,69.9 L84.3,75.8 L84.0,62.4 L92.3,62.7 L93.2,50.0 L104.9,57.8 L105.2,42.7 L113.8,45.2 L116.8,34.4 L127.1,43.1 L128.6,26.7 L137.3,32.3 L141.7,23.2 L150.4,31.7 L153.6,15.1 L162.0,24.3 L167.4,16.2 L174.9,24.0 L179.9,8.5 L187.3,21.1 L193.4,13.0 L200.0,20.4 L206.7,7.4 L212.6,22.5 L219.7,13.8 L225.4,21.3 L233.3,11.7 L237.4,28.0 L245.7,18.5 L250.6,27.2 L258.9,21.1 L261.3,37.2 L271.2,27.4 L274.7,38.1 L283.0,35.0 L284.2,49.9 L295.6,40.9 L297.1,53.8 L305.3,52.7 L305.9,65.9 L318.2,58.9 L317.2,73.6 L325.7,73.7 L325.8,85.4 L338.3,81.3 L334.6,96.9 L343.9,97.5 L343.6,108.3 L355.3,107.5 L349.4,122.8 L359.7,123.9 L358.6,134.3 L368.8,136.6 L361.3,150.6 L373.0,152.7 L370.2,163.1 L378.6,167.9 L370.5,180.0 L383.1,183.7 L378.0,193.9 L384.8,200.4 L376.9,210.6 L389.7,216.3 L381.8,225.9 L387.6,233.4 L380.4,242.0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.aa-title { font: 400 104px/1 var(--f-script); color: #6E1A1A; margin: 6px 0; } .aa-kick, .aa-tag { font: 500 12.5px var(--f-mono); letter-spacing: .08em; color: #6B4A46; } .aa-kick { text-transform: uppercase; }
.aa-croissant { width: 200px; color: #2D4DB0; margin-top: 14px; }
.aa-heart { position: absolute; right: 16%; top: 20%; display: grid; place-content: center; width: 84px; height: 76px; background: #F6D3CF; color: #6E1A1A; text-align: center; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 90'%3E%3Cpath d='M50 88C18 64 2 46 2 26A24 24 0 0 1 50 14a24 24 0 0 1 48 12c0 20-16 38-48 62Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 90'%3E%3Cpath d='M50 88C18 64 2 46 2 26A24 24 0 0 1 50 14a24 24 0 0 1 48 12c0 20-16 38-48 62Z'/%3E%3C/svg%3E") center / contain no-repeat; transform: rotate(10deg); padding-bottom: 8px; }
.aa-heart b { font: 800 26px/1 var(--f-head); } .aa-heart small { font: 500 9px var(--f-mono); }
.aa-lede { position: relative; z-index: 1; max-width: 46ch; text-align: center; background: #6E1A1A; color: #FBF3E6; padding: 14px 22px; border-radius: 999px; font-size: 14.5px; }
.auth-form { display: grid; place-items: center; padding: 32px; background: var(--bg); }
.auth-card { width: min(420px, 100%); background: var(--paper); border-radius: 28px; padding: 30px; border: 2px solid var(--primary); box-shadow: var(--shadow); }
.auth-card h2 { font-size: 28px; color: var(--wine); margin-bottom: 12px; } .key-input { font-family: var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }

/* ---------- Plain mode (no decoration) ---------- */
.plain .metric::after { display: none; } .plain .wavy-card::before { display: none; }

/* ---------- Tablet & phone ---------- */
@media (max-width: 1200px) {
  .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .home-grid .span2 { grid-column: 1 / -1; } .home-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inv-wrap { grid-template-columns: 1fr; } .inv-side { position: static; }
  .week { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .side { transform: translateX(-100%); transition: transform .25s ease; box-shadow: 0 0 40px rgba(0,0,0,.3); }
  body.nav-on .side { transform: none; } body.nav-on .scrim { display: block; position: fixed; inset: 0; background: rgba(30, 10, 8, .45); z-index: 35; }
  .main-col { margin-left: 0; }
  .top { display: flex; position: sticky; top: 0; z-index: 30; align-items: center; justify-content: space-between; padding: 6px 12px; background: var(--paper); border-bottom: 1.5px solid var(--line); }
  .top .brand { text-decoration: none; }
  main { padding: 18px 16px 100px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--paper); border-top: 1.5px solid var(--line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; font: 500 10.5px var(--f-mono); color: var(--ink-2); text-decoration: none; background: none; border: 0; padding: 4px 0; cursor: pointer; }
  .tabbar .ic { width: 22px; height: 22px; } .tabbar [aria-current="page"] { color: var(--wine); }
  .tabbar .fab { width: 54px; height: 54px; margin: -22px auto 0; border-radius: 50%; background: var(--primary); color: var(--on-primary); justify-content: center; box-shadow: 0 8px 20px -6px rgba(110, 26, 26, .5); }
  .foot { padding-bottom: 90px; }
  .iv-design { grid-template-columns: minmax(0, 1fr); } .iv-preview { position: static; } .iv-design > form { min-width: 0; }
  .grid.two, .grid.three, .rc-cols, .st-top, .shop-wrap, .cmp, .cmp-picks, .pan-pair, .prep-grid { grid-template-columns: 1fr; }
  .grid > .wide, .span2 { grid-column: auto; }
  .hero { grid-template-columns: 1fr; min-height: 0; } .hero-oval { grid-row: 2; margin: -60px 16px 18px; min-height: 260px; } .hero-frame { grid-column: 1; grid-row: 1; margin: 14px 14px 0; } .hero-img { height: 200px; }
  .rc-hero { grid-template-columns: 1fr; gap: 16px; }
  .shop-side { position: static; }
  .kanban { grid-template-columns: repeat(6, 250px); }
  .auth { grid-template-columns: 1fr; } .auth-art { padding: 24px 16px; } .aa-title { font-size: 80px; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .home-grid, .glance, .home-cols { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .page-head { margin-bottom: 14px; } .script-kicker { font-size: 30px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .metric { padding: 12px; } .metric b { font-size: 22px; } .metric b.long { font-size: 16px; }
  .card { padding: 16px; border-radius: 20px; }
  .toolbar .filter { flex: 1 1 140px; }
  .week { grid-template-columns: 1fr; } .wk-day { min-height: 0; }
  .m-day { min-height: 70px; padding: 3px; } .m-post small, .m-th { display: none; } .m-post b { font-size: 10.5px; } .m-head span { padding: 6px 2px; font-size: 9.5px; }
  .gantt { grid-template-columns: 1fr; gap: 4px; }
  .rb-out li { grid-template-columns: 1fr auto; } .rb-out li .mono { grid-column: 1 / -1; }
  .tcard { flex-direction: column; text-align: center; } .tc-btns { justify-content: center; }
  .cust-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; } .cust-hero .inline { justify-content: center; }
  .wavy-card { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .modal-foot .right { width: 100%; } .modal-foot .right .btn { flex: 1; }
  .hero-heart { right: 10%; top: 10%; }
  .cap-weeks li { grid-template-columns: 1fr auto; } .cap-weeks li .bar { grid-column: 1 / -1; grid-row: 2; }
  .masonry { columns: 2 140px; }
  .ivf-tbl thead { display: none; } .ivf-tbl tr { display: grid; grid-template-columns: 1fr 1fr 36px; gap: 6px; margin-bottom: 10px; } .ivf-tbl td { width: auto !important; padding: 0; } .ivf-tbl td:nth-child(3) { grid-column: 1 / 3; } .ivf-tbl td:nth-child(4) { grid-column: 3; grid-row: 1; }
  .iv-save { bottom: calc(70px + env(safe-area-inset-bottom)); }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .tabs a { flex: none; }
}
@media print {
  .side, .top, .tabbar, .foot, .demo-band, .no-print, .toolbar { display: none !important; } .main-col { margin: 0; } main { padding: 0; max-width: none; }
  .share { border-width: 4px; }
}
