/* =====================================================================
   Beacon — the ultimate goal planner
   Cream paper, sunrise auras, postcards with stamp edges, pink guest-check
   pads, taped polaroids and a wavy ribbon. Gloock + Instrument Serif for
   display, Gochi Hand for notes, DM Sans for everything you read.
   ===================================================================== */
:root, [data-theme="beacon"] {
  --bg: #F8F1E7; --bg2: #F1E5D6; --card: #FFFDF8; --card2: #FBF5EC; --ink: #2A2622; --ink2: #6E6259; --ink3: #9C8F84;
  --line: #EADFCF; --line2: #DCCDBA; --accent: #FF8A1F; --accent2: #F27A8E; --gold: #E3AE45; --blue: #4462C4; --post: #A9BCD9; --teal: #2F6F8C;
  --paper-pink: #F7D9DE; --paper-pink2: #EDB9C2; --kraft: #E4CFAE; --on: #FFFDF8; --ok: #3E9A6B; --warn: #D99A2B; --bad: #E0594F;
  --c1: #F07A2B; --c2: #E8607A; --c3: #4462C4; --c4: #3E9A6B; --c5: #D99A2B; --c6: #9B7BC8;
  --aura: radial-gradient(circle at 50% 50%, #FF8A00 0%, #F7716B 28%, #F6B3BE 55%, rgba(248,228,214,0) 78%);
  --sunrise: linear-gradient(120deg, #FF9A3D, #F6727F 60%, #F49BB4);
  --shadow: 0 1px 0 rgba(42,38,34,.04), 0 10px 30px -18px rgba(90,56,30,.35);
  --shadow2: 0 18px 40px -22px rgba(90,56,30,.45);
  --r: 22px; --r2: 14px; --sw: 264px; --swm: 78px;
  --f-display: 'Gloock', 'Instrument Serif', Georgia, serif; --f-serif: 'Instrument Serif', Georgia, serif; --f-hand: 'Gochi Hand', 'Comic Sans MS', cursive; --f-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
[data-theme="aura"] { --bg: #F8E6EC; --bg2: #F2D5DF; --card: #FFF9FA; --card2: #FCEEF2; --ink: #3A2630; --ink2: #7A5A68; --ink3: #A88A97; --line: #F0D6DF; --line2: #E5C1CE; --accent: #F2708A; --accent2: #FFA45B; --paper-pink: #FBE0E6; }
[data-theme="postcard"] { --bg: #EDF1F6; --bg2: #DFE6F0; --card: #FFFDF8; --card2: #F6F4EE; --ink: #22324A; --ink2: #56667E; --ink3: #8693A6; --line: #DCE3EC; --line2: #C7D2E0; --accent: #4462C4; --accent2: #E3AE45; --post: #A9BCD9; --sunrise: linear-gradient(120deg, #5B7FE0, #8FA8E8 55%, #E3AE45); }
[data-theme="night"] { --bg: #1C1820; --bg2: #26202B; --card: #2A2430; --card2: #322B39; --ink: #F6ECE2; --ink2: #C9B8AC; --ink3: #8E8090; --line: #3A3240; --line2: #4A4050; --accent: #FF9A3D; --accent2: #F27A8E; --gold: #E9BA5B; --post: #5D6E8C; --paper-pink: #4A3039; --paper-pink2: #6A4250; --kraft: #5A4A36; --on: #1C1820;
  --shadow: 0 1px 0 rgba(0,0,0,.2), 0 12px 30px -18px rgba(0,0,0,.7); --shadow2: 0 18px 40px -20px rgba(0,0,0,.8); color-scheme: dark; }
[data-text="0"] { font-size: 14px; } [data-text="2"] { font-size: 17px; } [data-text="3"] { font-size: 19px; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 15px/1.5 var(--f-body); color: var(--ink); background: var(--bg); min-height: 100vh;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.32 0 0 0 0 0.2 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
[data-theme="night"] body { background-image: none; }
h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -.01em; }
h2 { font: 400 1.35rem/1.15 var(--f-display); }
h3 { font: 600 1rem/1.3 var(--f-body); }
a { color: inherit; }
p { margin: .4em 0; }
.small { font-size: .87rem; } .muted { color: var(--ink2); } .num { font-variant-numeric: tabular-nums; }
.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; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.kicker { font: 400 1.15rem/1 var(--f-hand); color: var(--accent); display: inline-block; transform: rotate(-1.5deg); }
.kicker.sm { font-size: .98rem; }
.hand-note { font: 400 1.15rem/1.4 var(--f-hand); color: var(--ink2); }
.boot { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 12px; font: 400 2.2rem var(--f-display); }
.boot-aura { width: 120px; height: 120px; border-radius: 50%; background: var(--aura); filter: blur(4px); animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.12); opacity: .8; } }

/* ------------------------------------------------------------------ buttons & inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; padding: .62em 1.1em; border-radius: 999px; border: 1.5px solid var(--line2); background: var(--card); color: var(--ink); font: 600 .9rem/1.1 var(--f-body); cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn.solid { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn.glow { background: var(--sunrise); border-color: transparent; color: #2A1A12; box-shadow: 0 8px 22px -10px rgba(242,122,142,.8); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--card2); }
.btn.danger, .btn.ghost.danger { color: var(--bad); }
.btn.sm { padding: .45em .85em; font-size: .82rem; }
.btn.big { padding: .8em 1.4em; font-size: 1rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.busy, label.busy { opacity: .6; pointer-events: none; }
.link { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-align: left; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--ink2); cursor: pointer; font: 600 .75rem var(--f-body); }
.icon-btn:hover { background: var(--bg2); color: var(--ink); }
.icon-btn.sm { width: 30px; height: 30px; }
.icon-btn[data-armed] { background: var(--bad); color: #fff; width: auto; padding: 0 10px; border-radius: 999px; }
.input { width: 100%; padding: .62em .85em; border: 1.5px solid var(--line2); border-radius: 12px; background: var(--card); color: var(--ink); font: 400 .95rem/1.35 var(--f-body); transition: border-color .15s, box-shadow .15s; min-width: 0; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
textarea.input { resize: vertical; }
textarea.lined { background-image: repeating-linear-gradient(transparent 0 1.75em, var(--line) 1.75em calc(1.75em + 1px)); line-height: 1.75em; background-attachment: local; padding-top: .3em; }
select.input { appearance: none; padding-right: 2em; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%239C8F84' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .6em center; background-size: 1em; }
select.input.mini { width: auto; padding: .3em 1.8em .3em .6em; font-size: .78rem; border-radius: 999px; }
input[type=range] { accent-color: var(--accent); width: 100%; }
input[type=checkbox] { accent-color: var(--accent); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span, .field-k { font: 600 .8rem/1.2 var(--f-body); color: var(--ink2); display: block; }
.field small { font-size: .78rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .wide, .form-grid .switch.wide { grid-column: 1 / -1; }
.switch { display: flex; align-items: center; gap: 10px; font-size: .92rem; cursor: pointer; }
.switch input { width: 20px; height: 20px; }
.inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.inline.center { justify-content: center; }
.inline-add { display: flex; gap: 8px; align-items: center; margin: 10px 0; flex-wrap: wrap; }
.inline-add .input:first-child { flex: 2 1 180px; } .inline-add select.input { flex: 1 1 130px; width: auto; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.set-save { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 14px; }
.section-sm { margin-top: 10px; }
.color-in { display: flex; gap: 8px; align-items: center; }
.color-in input[type=color] { width: 42px; height: 40px; border: 1.5px solid var(--line2); border-radius: 12px; padding: 3px; background: var(--card); flex: none; cursor: pointer; }
.color-in .input { font-family: ui-monospace, monospace; text-transform: uppercase; }
.seg { display: inline-flex; background: var(--bg2); border-radius: 999px; padding: 4px; gap: 2px; flex-wrap: wrap; }
.seg label, .seg button { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span, .seg button { display: block; padding: .45em 1em; border-radius: 999px; font: 600 .85rem var(--f-body); cursor: pointer; border: 0; background: none; color: var(--ink2); }
.seg input:checked + span, .seg button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.seg.sm button { font-size: .78rem; padding: .4em .8em; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: .18em .6em; border-radius: 999px; background: var(--bg2); color: var(--ink2); font: 600 .72rem/1.4 var(--f-body); white-space: nowrap; }
.tag.pos { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.tag.neg { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
.tag.sav { background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--blue); }
.tag.st-launched, .tag.st-done, .tag.st-visited { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.tag.st-building, .tag.st-reading, .tag.st-planned { background: color-mix(in srgb, var(--accent) 16%, transparent); color: color-mix(in srgb, var(--accent) 70%, var(--ink)); }
.adot { display: inline-block; width: .7em; height: .7em; border-radius: 50%; background: var(--c); flex: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 22%, transparent); }
.area-chip { display: inline-flex; align-items: center; gap: 6px; font: 600 .74rem/1.3 var(--f-body); color: color-mix(in srgb, var(--c) 72%, var(--ink)); background: color-mix(in srgb, var(--c) 12%, var(--card)); padding: .2em .65em .2em .5em; border-radius: 999px; white-space: nowrap; }
.goal-link { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; text-decoration: none; color: color-mix(in srgb, var(--c) 65%, var(--ink)); }
.goal-link:hover { text-decoration: underline; }
.goal-link .adot { width: .55em; height: .55em; }
.stars { display: inline-flex; color: var(--gold); gap: 1px; }
.gentle { display: block; padding: 12px 14px; border-radius: var(--r2); background: color-mix(in srgb, var(--accent2) 10%, var(--card)); border: 1px dashed color-mix(in srgb, var(--accent2) 40%, transparent); font-size: .9rem; margin: 12px 0; }
.gentle .ic { color: var(--accent2); margin-right: 4px; }
.gentle.big { display: flex; gap: 10px; align-items: flex-start; }
.gentle.big { padding: 16px 18px; }
.error-text { color: var(--bad); font-weight: 600; }

/* ------------------------------------------------------------------ shell */
.side { position: fixed; inset: 0 auto 0 0; width: var(--sw); background: var(--card); border-right: 1px solid var(--line); display: flex; flex-direction: column; z-index: 50; transition: width .3s cubic-bezier(.3,.7,.2,1), transform .3s cubic-bezier(.3,.7,.2,1); overflow: hidden; }
.side::before { content: ''; position: absolute; width: 260px; height: 260px; top: -150px; left: -80px; background: var(--aura); opacity: .35; filter: blur(30px); pointer-events: none; }
.side-top { position: relative; display: flex; align-items: center; gap: 6px; padding: 16px 12px 12px 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; flex: 1; }
.brand .mark { width: 42px; height: 42px; flex: none; filter: drop-shadow(0 6px 12px rgba(247,113,107,.35)); }
.brand-txt { display: flex; flex-direction: column; min-width: 0; transition: opacity .2s; }
.brand-txt b { font: 400 1.55rem/1 var(--f-display); letter-spacing: -.01em; }
.brand-txt small { font: 400 .95rem/1.1 var(--f-hand); color: var(--accent); white-space: nowrap; }
.side-tog, .side-x { flex: none; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink2); display: grid; place-items: center; cursor: pointer; }
.side-tog:hover { color: var(--ink); background: var(--bg2); }
.side-x { display: none; }
.side-nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 6px 10px 10px; display: flex; flex-direction: column; gap: 2px; scrollbar-width: thin; }
.side-link { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; text-decoration: none; color: var(--ink2); font: 500 .89rem/1.2 var(--f-body); white-space: nowrap; transition: background .15s, color .15s; }
.side-link .ic { width: 20px; height: 20px; }
.side-link span { overflow: hidden; text-overflow: ellipsis; transition: opacity .2s; }
.side-link:hover { background: var(--bg2); color: var(--ink); }
.side-link[aria-current="page"] { color: var(--ink); font-weight: 700; background: linear-gradient(100deg, color-mix(in srgb, var(--accent) 22%, var(--card)), color-mix(in srgb, var(--accent2) 18%, var(--card))); }
.side-link[aria-current="page"]::before { content: ''; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--sunrise); }
.side-link[aria-current="page"] .ic { color: var(--accent); }
.side-foot { padding: 8px 10px 14px; border-top: 1px solid var(--line); }
.main-col { margin-left: var(--sw); transition: margin-left .3s cubic-bezier(.3,.7,.2,1); min-width: 0; }
body.side-mini .side { width: var(--swm); }
body.side-mini .main-col { margin-left: var(--swm); }
body.side-mini .brand-txt, body.side-mini .side-link span { opacity: 0; width: 0; }
body.side-mini .side-top { flex-direction: column; padding: 14px 0 10px; gap: 10px; }
body.side-mini .brand { flex: none; }
body.side-mini .side-link { justify-content: center; padding: 11px 0; gap: 0; }
.side-tip { position: fixed; z-index: 300; transform: translateY(-50%); background: var(--ink); color: var(--bg); padding: 6px 11px; border-radius: 9px; font: 600 .8rem var(--f-body); pointer-events: none; white-space: nowrap; box-shadow: var(--shadow2); animation: tipIn .15s ease-out; }
.side-tip::before { content: ''; position: absolute; left: -5px; top: 50%; margin-top: -5px; border: 5px solid transparent; border-left: 0; border-right-color: var(--ink); }
@keyframes tipIn { from { opacity: 0; transform: translate(-4px, -50%); } }
.scrim { display: none; }
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px; padding: 12px 28px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.is-demo .topbar { top: 0; }
.menu-btn { display: none; }
.focus-bar { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; flex-wrap: wrap; }
.fb { display: flex; align-items: center; gap: 0; background: var(--card); border: 1.5px solid var(--line2); border-radius: 999px; padding-left: 12px; min-width: 0; }
.fb-k { display: inline-flex; align-items: center; gap: 5px; font: 600 .75rem var(--f-body); color: var(--ink3); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.fb .input { border: 0; background-color: transparent; border-radius: 999px; padding: .45em 2em .45em .5em; font-weight: 600; max-width: 230px; box-shadow: none; }
.chip-x { display: inline-flex; align-items: center; gap: 4px; border: 0; background: var(--ink); color: var(--bg); border-radius: 999px; padding: .4em .8em; font: 600 .75rem var(--f-body); cursor: pointer; }
.tb-tools { display: flex; align-items: center; gap: 8px; }
.tb-btn { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line2); background: var(--card); color: var(--ink); display: grid; place-items: center; cursor: pointer; text-decoration: none; }
.tb-btn.add { background: var(--sunrise); border: 0; color: #2A1A12; box-shadow: 0 6px 16px -8px rgba(242,122,142,.9); }
.search { position: relative; display: flex; align-items: center; }
.search > .ic { position: absolute; left: 12px; color: var(--ink3); pointer-events: none; }
.search input { width: 220px; padding: .55em .9em .55em 2.3em; border: 1.5px solid var(--line2); border-radius: 999px; background: var(--card); color: var(--ink); font: 400 .9rem var(--f-body); }
.search input:focus { outline: none; border-color: var(--accent); }
.search-res { display: none; position: absolute; top: calc(100% + 8px); right: 0; width: 340px; max-height: 60vh; overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow2); padding: 6px; z-index: 60; }
.search-res.on { display: block; }
.search-res button { display: flex; width: 100%; align-items: center; gap: 8px; padding: 8px 10px; border: 0; background: none; border-radius: 10px; text-align: left; cursor: pointer; color: var(--ink); font: 400 .9rem var(--f-body); }
.search-res button:hover { background: var(--bg2); }
.search-res p { padding: 8px 10px; margin: 0; }
.pb-sync { display: inline-flex; align-items: center; gap: 4px; font: 600 .74rem var(--f-body); color: var(--ok); }
.demo-band { position: relative; z-index: 45; margin-left: var(--sw); transition: margin-left .3s; background: var(--ink); color: var(--bg); font-size: .82rem; padding: 7px 28px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
body.side-mini .demo-band { margin-left: var(--swm); }
.demo-cta { color: var(--gold); font-weight: 700; }
.hub { padding: 26px 28px 80px; max-width: 1420px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 4px 0 22px; flex-wrap: wrap; }
.page-head h1 { font: 400 clamp(1.9rem, 1.2rem + 2vw, 2.8rem)/1.05 var(--f-display); margin-top: 6px; }
.lede { color: var(--ink2); max-width: 62ch; margin: 8px 0 0; font-size: .98rem; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 10px; margin-bottom: 14px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: .55em 1.05em; border-radius: 999px; text-decoration: none; font: 600 .87rem var(--f-body); color: var(--ink2); border: 1.5px solid var(--line2); background: var(--card); white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ------------------------------------------------------------------ cards and paper */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); min-width: 0; margin-bottom: 18px; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.panel-head h2 small { font: 600 .8rem var(--f-body); }
.panel-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.grid-2.wide-left { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.grid-2.tight { gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.grid-2 > .panel, .grid-3 > .panel, .grid-2 > form > .panel, .grid-2 > .postcard, .grid-3 > .postcard, .grid-2 > .guestcheck { margin-bottom: 0; }
.grid-2, .grid-3 { margin-bottom: 18px; }
.stack-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.stack-col > .panel { margin-bottom: 0; }
.sec { margin: 26px 0 18px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.sec-head h2 { font-size: 1.7rem; }
/* postcard with a perforated stamp edge */
.postcard { position: relative; padding: 11px; border-radius: 6px; margin-bottom: 18px; background: radial-gradient(circle at 9px 9px, var(--bg) 4.6px, var(--post) 5.2px) -9px -9px / 18px 18px; box-shadow: var(--shadow); min-width: 0; }
.pc-in { background: #FBF4E6; border-radius: 3px; padding: 18px 20px 20px; height: 100%; color: #2A2622; }
[data-theme="night"] .pc-in { background: #EFE5D3; }
.pc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; border-bottom: 1px solid #E0D3BE; padding-bottom: 10px; }
.pc-head h2 { flex: 1; font: 400 1.25rem/1.15 var(--f-serif); letter-spacing: .06em; text-transform: uppercase; color: #6E6259; font-size: 1rem; }
.pc-mark { width: 34px; height: 34px; border-radius: 50%; border: 1.5px dashed #B98A7A; display: grid; place-items: center; flex: none; }
.pc-mark i { width: 18px; height: 6px; border-top: 1.5px solid #D9776B; border-bottom: 1.5px solid #D9776B; transform: rotate(-12deg); }
.pc-stamp { width: 34px; height: 40px; display: grid; place-items: center; color: #E88A9A; background: radial-gradient(circle at 3px 3px, #FBF4E6 2px, #F4D9D2 2.4px) -3px -3px / 6px 6px; border-radius: 2px; }
.pc-actions { display: flex; gap: 6px; }
.postcard .hand-note { color: #6E6259; }
/* pink guest-check pad */
.guestcheck { position: relative; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow2); margin-bottom: 18px; background: var(--paper-pink); min-width: 0; }
.gc-head { display: flex; align-items: center; gap: 12px; background: #FFFDF8; padding: 14px 18px 12px; border-bottom: 2px solid #2A2622; }
[data-theme="night"] .gc-head { background: #EFE5D3; color: #2A2622; }
.gc-head h2 { flex: 1; font: italic 400 1.6rem/1 var(--f-serif); color: #2A2622; }
.gc-no { font: 600 .75rem ui-monospace, monospace; letter-spacing: .12em; color: #2A2622; border: 1px solid #2A2622; padding: 3px 8px; }
.gc-body { padding: 10px 18px 16px; background-image: repeating-linear-gradient(transparent 0 46px, var(--paper-pink2) 46px 47px); background-position: 0 6px; min-height: 180px; color: #2A2622; }
[data-theme="night"] .gc-body { color: var(--ink); }
.gc-body .row { border-bottom: 0; min-height: 47px; }
.gc-body .input { background: color-mix(in srgb, #fff 70%, transparent); }
.gc-body .hand-note { color: #6E4652; margin: 14px 0; }
[data-theme="night"] .gc-body .hand-note { color: var(--ink2); }
/* taped polaroid */
.polaroid { position: relative; margin: 0; background: #FFFEFB; padding: 10px 10px 12px; border-radius: 3px; box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 14px 26px -16px rgba(60,40,20,.5); transform: rotate(var(--tilt, 0deg)); color: #2A2622; }
.polaroid .pl-photo { aspect-ratio: 1; overflow: hidden; background: #EFE8DE; border-radius: 1px; display: grid; }
.polaroid .pl-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.polaroid figcaption { font: 400 1.05rem/1.25 var(--f-hand); text-align: center; padding-top: 8px; display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.tape { position: absolute; top: -10px; left: 50%; width: 74px; height: 24px; transform: translateX(-50%) rotate(-3deg); background: color-mix(in srgb, var(--kraft) 70%, transparent); opacity: .9; z-index: 2; clip-path: polygon(3% 0, 97% 4%, 100% 50%, 96% 100%, 2% 96%, 0 52%); }
.pushpin { position: absolute; top: -8px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FF8C80, #D9382E 55%, #A41E18); box-shadow: 0 3px 4px rgba(0,0,0,.25); z-index: 3; }
.stamp { display: inline-block; padding: .18em .6em; border: 2px solid currentColor; border-radius: 6px; font: 700 .68rem/1.3 var(--f-body); letter-spacing: .09em; text-transform: uppercase; transform: rotate(-4deg); background: color-mix(in srgb, currentColor 8%, var(--card)); white-space: nowrap; }
.stamp.st-ok { color: var(--ok); } .stamp.st-risk { color: var(--warn); } .stamp.st-behind { color: var(--bad); } .stamp.st-done { color: var(--blue); } .stamp.st-hold { color: var(--ink3); } .stamp.st-dream { color: var(--c6); }
.empty { text-align: center; padding: 26px 16px; display: grid; justify-items: center; gap: 10px; }
.empty p { max-width: 46ch; margin: 0; font: 400 1.2rem/1.4 var(--f-hand); color: var(--ink2); }
.empty .spk { width: 34px; height: 34px; fill: var(--gold); animation: twinkle 2.4s ease-in-out infinite; }
@keyframes twinkle { 50% { transform: scale(.82) rotate(20deg); opacity: .75; } }
.spk { fill: var(--gold); }

/* ------------------------------------------------------------------ progress */
.bar { height: 8px; background: var(--bg2); border-radius: 999px; overflow: hidden; margin: 6px 0; }
.bar i { display: block; height: 100%; background: var(--sunrise); border-radius: inherit; transition: width .6s cubic-bezier(.3,.7,.2,1); }
.bar.thin { height: 5px; }
.bar.year i { background: linear-gradient(90deg, var(--post), var(--blue)); }
.ring { position: relative; display: inline-grid; place-items: center; width: 56px; height: 56px; flex: none; }
.ring svg { width: 100%; height: 100%; }
.ring circle { fill: none; stroke-width: 6.5; }
.r-bg { stroke: var(--bg2); }
.r-fg { stroke: var(--ring, var(--accent)); stroke-linecap: round; transition: stroke-dashoffset .7s cubic-bezier(.3,.7,.2,1); }
.ring b { position: absolute; font: 700 .78rem var(--f-body); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ rows and lists */
.rows { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--line); min-width: 0; }
.rows > .row:last-child { border-bottom: 0; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-title { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
a.row-title:hover { text-decoration: underline; }
.row-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .8rem; color: var(--ink2); }
.row-btns { display: inline-flex; align-items: center; gap: 2px; flex: none; }
.row.done .row-title, .struck { text-decoration: line-through; text-decoration-color: var(--accent2); color: var(--ink2); }
.row.due { background: color-mix(in srgb, var(--accent) 8%, transparent); border-radius: 10px; padding-left: 8px; }
.check { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line2); background: var(--card); color: transparent; display: grid; place-items: center; cursor: pointer; transition: all .18s; padding: 0; }
.check .ic { width: 15px; height: 15px; }
.check:hover { border-color: var(--accent); color: var(--ink3); }
.check.on { background: var(--sunrise); border-color: transparent; color: #fff; transform: scale(1.04); }
.check.sm { width: 22px; height: 22px; } .check.sm .ic { width: 12px; height: 12px; }
.prio { font: 700 .75rem var(--f-body); color: var(--accent); }
.listing .lst-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.lst-search { position: relative; flex: 1 1 180px; display: flex; align-items: center; }
.lst-search .ic { position: absolute; left: 11px; color: var(--ink3); pointer-events: none; }
.lst-search .input { padding-left: 2.2em; border-radius: 999px; }
.lst-sel { position: relative; display: flex; align-items: center; }
.lst-sel > .ic { position: absolute; left: 10px; color: var(--ink3); pointer-events: none; width: 1em; }
.lst-sel .input { padding-left: 2em; border-radius: 999px; font-size: .85rem; width: auto; max-width: 210px; }
.lst-none { padding: 8px 2px; }
.goal-row .gr-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.gr-pct { font-size: 1rem; min-width: 3ch; text-align: right; }
.goal-row .bar { margin: 4px 0 0; max-width: 340px; }
.goal-list .row { padding: 12px 2px; }

/* ------------------------------------------------------------------ Lighthouse */
.hero { position: relative; border-radius: 30px; overflow: hidden; min-height: 300px; margin-bottom: 18px; background: #F8E9DC; box-shadow: var(--shadow2); isolation: isolate; color: #2A2622; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero.has-photo .hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(248,241,231,.92) 0%, rgba(248,241,231,.7) 45%, rgba(248,241,231,.1)); }
.hero-aura { position: absolute; width: 640px; height: 640px; right: -120px; top: -230px; border-radius: 50%; background: radial-gradient(circle, #FF8A00 0%, #F7716B 26%, #F6B3BE 50%, rgba(246,227,210,0) 72%); animation: breathe 9s ease-in-out infinite; }
.hero-in { position: relative; padding: 34px 38px 96px; max-width: 760px; }
.hero-hi { display: flex; gap: 16px; align-items: center; }
.hero h1 { font: 400 clamp(2.1rem, 1.3rem + 3vw, 3.6rem)/1 var(--f-display); margin-top: 8px; }
.hero .kicker { color: #C2410C; }
.avatar { width: 74px; height: 74px; border-radius: 50%; overflow: hidden; border: 4px solid #FFFDF8; flex: none; box-shadow: var(--shadow); display: grid; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.hero-quote { margin: 18px 0 0; max-width: 560px; }
.hero-quote p { font: italic 400 clamp(1.25rem, 1rem + 1vw, 1.7rem)/1.25 var(--f-serif); margin: 0; }
.hero-quote cite { display: block; font: 400 1rem var(--f-hand); color: #6E4E40; margin-top: 6px; font-style: normal; }
.ribbon { position: absolute; left: 0; right: 0; bottom: -8px; width: 100%; height: 120px; pointer-events: none; }
.rb-band { fill: none; stroke: var(--gold); stroke-width: 34; stroke-linecap: round; filter: drop-shadow(0 4px 6px rgba(160,110,30,.25)); }
.rb-text { font: 400 22px var(--f-hand); fill: #2A2622; letter-spacing: .06em; text-transform: uppercase; }
.hero-photo-tools { position: absolute; top: 16px; right: 16px; z-index: 3; }
.hero-photo-tools .photo-slot, .hero-photo-tools .photo-box { width: auto; min-height: 0; padding: 7px 12px; flex-direction: row; border-radius: 999px; background: rgba(255,253,248,.85); border: 1px solid rgba(42,38,34,.12); font-size: .78rem; }
.hero-photo-tools .photo-box img { display: none; }
.hero-photo-tools .photo-box .pb-tools { position: static; opacity: 1; background: none; padding: 0; }
.hero-photo-tools .photo-slot small { display: none; }
.quick-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.pill-btn { display: inline-flex; align-items: center; gap: 6px; padding: .55em 1em; border-radius: 999px; border: 1.5px dashed var(--line2); background: var(--card); color: var(--ink); font: 600 .85rem var(--f-body); cursor: pointer; transition: all .15s; }
.pill-btn:hover { border-style: solid; border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--card)); }
.pill-btn .ic { color: var(--accent); }
.strip { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 18px; margin-bottom: 18px; }
.strip-cell { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; box-shadow: var(--shadow); }
.strip-cell.note { display: flex; align-items: center; gap: 12px; font-size: .92rem; background: color-mix(in srgb, var(--accent) 7%, var(--card)); }
.strip-cell.note .ic { color: var(--accent); width: 1.6em; height: 1.6em; }
.big-row { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 2px; }
.big-row b { font: 400 2.3rem/1 var(--f-display); }
.big-row span { color: var(--ink2); font-size: .88rem; }
.setup-card { background: var(--card); border: 1.5px dashed var(--accent); border-radius: var(--r); padding: 4px 20px; margin-bottom: 18px; }
.setup-card[open] { padding-bottom: 20px; }
.setup-card summary { cursor: pointer; padding: 14px 0; font-weight: 700; display: flex; align-items: center; gap: 8px; list-style: none; }
.setup-card summary::-webkit-details-marker { display: none; }
.setup-card summary .ic { color: var(--accent); }
.goal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px 20px; }
.goal-card { position: relative; background: #FFFEFB; border-radius: 6px; padding: 10px; box-shadow: 0 2px 4px rgba(0,0,0,.05), 0 16px 30px -18px rgba(60,40,20,.55); transform: rotate(var(--tilt, 0deg)); transition: transform .2s; color: #2A2622; --ring: var(--c); }
[data-theme="night"] .goal-card { background: #F4EBDD; }
.goal-card:hover { transform: rotate(0) translateY(-3px); }
.gc-cover { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; border-radius: 3px; }
.cover { width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aura-cover { background: radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--c) 90%, #FF8A00) 0%, color-mix(in srgb, var(--c) 55%, #F6B3BE) 35%, color-mix(in srgb, var(--c) 18%, #F8EDE3) 70%, #F8EFE6 100%); }
.aura-cover .spark { color: rgba(255,255,255,.95); }
.aura-cover .spark .ic { width: 38px; height: 38px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.15)); }
.gc-cover .stamp { position: absolute; right: 10px; top: 10px; background: rgba(255,254,251,.92); }
.gc-body { padding: 12px 4px 4px; }
.gc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.goal-card .ring { width: 50px; height: 50px; }
.goal-card .r-bg { stroke: #EFE6DA; }
.goal-card h3 { font: 400 1.22rem/1.15 var(--f-display); margin: 8px 0 4px; }
.goal-card h3 a { text-decoration: none; }
.gc-meta { font-size: .8rem; color: #6E6259; margin: 0; display: flex; align-items: center; gap: 4px; }
.gc-next { font-size: .82rem; margin: 8px 0 0; padding: 8px 10px; background: #F7EFE4; border-radius: 8px; }
.goal-card .area-chip { background: color-mix(in srgb, var(--c) 12%, #fff); }
.pulse { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.pulse-cell { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; box-shadow: var(--shadow); --ring: var(--c); transition: transform .15s; }
.pulse-cell:hover { transform: translateY(-2px); }
.pulse-cell b { display: flex; align-items: center; gap: 6px; font-size: .95rem; }
.pulse-cell b .ic { color: var(--c); }
.pulse-cell small { color: var(--ink2); font-size: .8rem; }
.pulse-cell > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.habit-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.habit-chips.col { flex-direction: column; align-items: stretch; }
.habit-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 7px; border-radius: 999px; border: 1.5px solid var(--line2); background: var(--card); color: var(--ink); font: 600 .85rem var(--f-body); cursor: pointer; transition: all .18s; text-align: left; }
.habit-chip:hover { border-color: var(--c); }
.hc-box { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--c); display: grid; place-items: center; color: transparent; flex: none; }
.hc-box .ic { width: 13px; height: 13px; }
.habit-chip.on { background: color-mix(in srgb, var(--c) 14%, var(--card)); border-color: var(--c); }
.habit-chip.on .hc-box { background: var(--c); color: #fff; }
.hc-t { flex: 1; }
.hc-s { display: inline-flex; align-items: center; gap: 2px; font-size: .75rem; color: var(--accent); }
.streaks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.streaks li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.streaks li:last-child { border-bottom: 0; }
.flame { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--accent)) 14%, var(--card)); color: var(--c, var(--accent)); flex: none; }
.st-t { flex: 1; font-weight: 600; font-size: .9rem; }
.streaks b { font: 400 1.5rem var(--f-display); }
.streaks small { color: var(--ink2); font-size: .75rem; }
.ahead { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ahead li { display: flex; gap: 12px; align-items: center; }
.ah-day { width: 46px; flex: none; text-align: center; border: 1.5px solid #D8C7AE; border-radius: 8px; padding: 3px 0; background: #fff; border-top: 5px solid var(--c); }
.ah-day b { display: block; font: 400 1.25rem/1 var(--f-display); }
.ah-day small { font: 600 .66rem var(--f-body); text-transform: uppercase; color: #6E6259; }
.ah-t { display: flex; flex-direction: column; min-width: 0; }
.ah-t b { font-size: .9rem; font-weight: 600; }
.ah-t small { color: #6E6259; font-size: .78rem; }

/* ------------------------------------------------------------------ studio & plans */
.status-strip { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.ss { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: .82rem; color: var(--ink2); }
.ss b { font: 400 1.25rem var(--f-display); color: var(--ink); }
.builder { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 18px; align-items: start; }
.builder-side { position: sticky; top: 90px; }
.smart { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.smart li { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; background: var(--card2); transition: background .2s; }
.smart li.ok { background: color-mix(in srgb, var(--ok) 12%, var(--card)); }
.sm-k { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font: 400 1.3rem var(--f-display); background: var(--ink); color: var(--bg); flex: none; }
.smart li.ok .sm-k { background: var(--ok); }
.sm-t { flex: 1; display: flex; flex-direction: column; }
.sm-t small { color: var(--ink2); font-size: .78rem; line-height: 1.35; }
.sm-c { color: var(--line2); } .smart li.ok .sm-c { color: var(--ok); }
.smart-score { font: 600 .9rem var(--f-body); background: var(--sunrise); color: #2A1A12; padding: 2px 10px; border-radius: 999px; vertical-align: middle; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.tpl-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); border-top: 5px solid var(--c); }
.tpl-top { display: flex; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.tpl-card h3 { font: 400 1.3rem var(--f-display); }
.tpl-ms { list-style: none; margin: 0; padding: 0; font-size: .82rem; color: var(--ink2); display: flex; flex-direction: column; gap: 3px; }
.tpl-ms .ic { color: var(--c); }
.tpl-card .inline { margin-top: auto; }
.idea-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; padding-top: 8px; }
.idea { position: relative; background: #FFF6C9; color: #2A2622; padding: 22px 16px 12px; border-radius: 2px; box-shadow: var(--shadow); transform: rotate(-1deg); display: flex; flex-direction: column; gap: 6px; }
.idea:nth-child(2n) { transform: rotate(1.2deg); background: #FCE1E6; } .idea:nth-child(3n) { background: #DDE9F7; transform: rotate(-.4deg); }
.idea b { font: 400 1.3rem/1.2 var(--f-hand); }
.idea-foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.goal-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; margin-bottom: 8px; scrollbar-width: thin; }
.goal-tabs a, .goal-tabs button { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: .55em 1em; border-radius: 999px; border: 1.5px solid var(--line2); background: var(--card); text-decoration: none; font: 600 .85rem var(--f-body); color: var(--ink2); cursor: pointer; }
.goal-tabs small { color: var(--ink3); }
.goal-tabs [aria-selected="true"] { border-color: var(--c); color: var(--ink); background: color-mix(in srgb, var(--c) 12%, var(--card)); }
.plan-head { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); margin-bottom: 18px; --ring: var(--c); }
.ph-cover .photo-box, .ph-cover .photo-slot { aspect-ratio: 4/3; height: auto; }
.plan-title { font: 400 clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem)/1.1 var(--f-display); margin: 10px 0 4px; }
.ph-info { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ph-stats { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin: 6px 0; }
.ph-stats > div { display: flex; flex-direction: column; }
.ph-stats small { color: var(--ink2); font-size: .8rem; }
.ph-stats .ring { width: 66px; height: 66px; }
.why { margin: 4px 0; padding: 12px 16px; border-left: 4px solid var(--accent2); background: color-mix(in srgb, var(--accent2) 7%, var(--card)); border-radius: 0 12px 12px 0; font: italic 400 1.12rem/1.4 var(--f-serif); }
.why .kicker { display: block; margin-bottom: 4px; font-style: normal; }
.next-action { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--r); margin-bottom: 18px; background: var(--sunrise); color: #2A1A12; box-shadow: 0 10px 26px -14px rgba(242,122,142,.9); }
.next-action > .ic { width: 28px; height: 28px; }
.next-action > span { flex: 1; display: flex; flex-direction: column; }
.next-action .kicker { color: #6B2A12; display: block; margin-bottom: 4px; transform: none; }
.next-action b { font-size: 1.05rem; }
.next-action .btn { background: rgba(255,255,255,.7); border-color: transparent; }
.timeline { position: relative; height: 92px; margin: 8px 18px 0; }
.tl-line { position: absolute; top: 40px; left: 0; right: 0; height: 6px; border-radius: 999px; background: var(--bg2); }
.tl-fill { display: block; height: 100%; border-radius: inherit; background: var(--sunrise); }
.tl-end { position: absolute; top: 58px; font-size: .75rem; color: var(--ink2); display: flex; flex-direction: column; }
.tl-end b { color: var(--ink); font-size: .78rem; }
.tl-end.start { left: -6px; } .tl-end.finish { right: -6px; text-align: right; }
.tl-today { position: absolute; top: 28px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.tl-today i { width: 3px; height: 30px; background: var(--ink); border-radius: 2px; }
.tl-today small { font: 400 .85rem var(--f-hand); color: var(--ink); position: absolute; top: -20px; white-space: nowrap; }
.tl-ms { position: absolute; top: 30px; transform: translateX(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--card); border: 2px solid var(--accent); display: grid; place-items: center; color: var(--accent); cursor: default; }
.tl-ms .ic { width: 13px; height: 13px; }
.tl-ms.done { background: var(--accent); color: #fff; }
.ms { padding: 12px 0; border-bottom: 1px dashed var(--line2); }
.ms:last-child { border-bottom: 0; }
.ms-head { display: flex; align-items: center; gap: 10px; }
.ms-head .check { width: 32px; height: 32px; border-radius: 10px; color: var(--ink3); }
.ms-head .check.on { color: #fff; }
.ms.done .row-title { text-decoration: line-through; text-decoration-color: var(--accent2); }
.steps { list-style: none; margin: 8px 0 4px 42px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.steps li { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.ms .bar { margin-left: 42px; }
.woop { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; position: relative; }
.woop div { background: var(--card2); border-radius: 12px; padding: 10px 12px; }
.woop dt { font: 400 1rem var(--f-hand); color: var(--accent); }
.woop dd { margin: 2px 0 0; font-size: .88rem; }
.woop .row-btns { position: absolute; top: -40px; right: 0; }
.ifthen { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ifthen li { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--card2); border-radius: 12px; font-size: .9rem; }
.ifthen li span { flex: 1; }
.ifthen b { color: var(--accent); }

/* ------------------------------------------------------------------ photos */
.photo-slot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 140px; width: 100%; padding: 16px; border: 2px dashed var(--line2); border-radius: 16px; background: repeating-linear-gradient(135deg, transparent 0 10px, color-mix(in srgb, var(--accent) 4%, transparent) 10px 20px), var(--card2); color: var(--ink2); cursor: pointer; text-align: center; font: 600 .85rem var(--f-body); transition: border-color .15s; }
.photo-slot:hover, .photo-slot.drag, .photo-box.drag { border-color: var(--accent); color: var(--ink); }
.photo-slot .ic { width: 26px; height: 26px; color: var(--accent); }
.photo-slot small { font-weight: 400; font-size: .75rem; }
.photo-slot.mini { min-height: 100%; border-radius: 2px; font-size: .78rem; }
.photo-slot.round { width: 120px; height: 120px; min-height: 0; border-radius: 50%; padding: 8px; font-size: .74rem; }
.photo-box { position: relative; border-radius: 16px; overflow: hidden; background: var(--bg2); display: grid; min-height: 120px; }
.photo-box img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 120px; }
.photo-box.round { width: 120px; height: 120px; border-radius: 50%; min-height: 0; }
.pb-tools { position: absolute; inset: auto 0 0 0; display: flex; gap: 6px; justify-content: center; padding: 10px; background: linear-gradient(transparent, rgba(0,0,0,.45)); opacity: 0; transition: opacity .2s; }
.photo-box:hover .pb-tools, .photo-box:focus-within .pb-tools { opacity: 1; }
@media (hover: none) { .pb-tools { opacity: 1; } }
.pb-btn { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 999px; border: 0; background: rgba(255,253,248,.92); color: #2A2622; font: 600 .75rem var(--f-body); cursor: pointer; }
.photo-box.round .pb-tools { flex-direction: column; align-items: center; padding: 6px; background: rgba(0,0,0,.3); inset: 0; justify-content: center; }
img.missing { opacity: .25; }
.ed-photos { display: flex; flex-wrap: wrap; gap: 10px; }
.ed-ph { position: relative; width: 96px; height: 96px; margin: 0; border-radius: 12px; overflow: hidden; }
.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: 26px; height: 26px; }
.ed-add { width: 96px; height: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 2px dashed var(--line2); border-radius: 12px; cursor: pointer; font-size: .7rem; text-align: center; padding: 6px; color: var(--ink2); }
.ed-add .ic { color: var(--accent); }

/* ------------------------------------------------------------------ vision board */
.vb-bar, .vb-add { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.vb-sp { flex: 1; }
.vb-pick .input { width: auto; min-width: 200px; border-radius: 999px; font-weight: 600; }
.vb-wrap { position: relative; }
.vboard { position: relative; width: 100%; aspect-ratio: 16 / 10; min-height: 420px; border-radius: 18px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06), var(--shadow2); background-size: cover; touch-action: none; user-select: none; -webkit-user-select: none; container-type: inline-size; }
.vb-bgimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.vb-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; color: #6E6259; font: 400 1.3rem var(--f-hand); pointer-events: none; }
.aura { display: block; width: 120px; height: 120px; border-radius: 50%; background: var(--aura); }
.aura.sm { width: 70px; height: 70px; flex: none; }
.bitem { position: absolute; cursor: grab; transform-origin: center center; outline: none; }
.bitem:active { cursor: grabbing; }
.vboard.locked .bitem { cursor: default; }
.bitem.sel { outline: 2px dashed var(--accent); outline-offset: 6px; }
.bitem:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 6px; }
.bi-polaroid { position: relative; background: #FFFEFB; padding: 5% 5% 4%; box-shadow: 0 2px 3px rgba(0,0,0,.08), 0 12px 22px -12px rgba(60,40,20,.6); }
.bi-polaroid.bare { padding: 0; background: none; }
.bi-polaroid img { display: block; width: 100%; height: auto; pointer-events: none; }
.bi-polaroid .tape { width: 40%; height: 14%; min-height: 14px; top: -6%; }
.bi-noimg { display: grid; place-items: center; aspect-ratio: 1; background: #EFE8DE; color: #B9A99A; }
.bi-cap { display: block; text-align: center; font: 400 clamp(.7rem, 1.6cqw, 1.1rem)/1.2 var(--f-hand); padding-top: 4%; color: #2A2622; }
.bi-sticker svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 3px 3px rgba(0,0,0,.12)); }
.bi-text { padding: 8% 9%; font-size: clamp(.7rem, 1.9cqw, 1.5rem); line-height: 1.2; text-align: center; overflow-wrap: anywhere; position: relative; }
.bi-text.f-serif { font-family: var(--f-display); } .bi-text.f-hand { font-family: var(--f-hand); font-size: clamp(.8rem, 2.2cqw, 1.7rem); } .bi-text.f-italic { font: italic 400 clamp(.8rem, 2.2cqw, 1.7rem)/1.15 var(--f-serif); } .bi-text.f-bold { font: 800 clamp(.9rem, 3.4cqw, 2.8rem)/.95 var(--f-body); letter-spacing: -.03em; }
.bi-text small { display: block; font: 400 .6em var(--f-hand); margin-top: .4em; opacity: .75; }
.bi-q { position: absolute; top: -.1em; left: .1em; font: 400 3em/1 var(--f-display); opacity: .25; }
.note-paper { background: #FFFDF6; box-shadow: 0 2px 3px rgba(0,0,0,.07), 0 10px 18px -12px rgba(60,40,20,.5); }
.note-pink { background: #F7D9DE; background-image: repeating-linear-gradient(transparent 0 1.3em, #EDB9C2 1.3em calc(1.3em + 1px)); box-shadow: 0 10px 18px -12px rgba(60,40,20,.5); }
.note-blue { background: #FBF4E6; border: 6px solid #A9BCD9; box-shadow: 0 10px 18px -12px rgba(60,40,20,.5); }
.note-kraft { background: #E4CFAE; clip-path: polygon(0 0, 100% 0, 98% 100%, 2% 96%); }
.note-grid { background: #FFFFFF; background-image: linear-gradient(#DCE4F0 1px, transparent 1px), linear-gradient(90deg, #DCE4F0 1px, transparent 1px); background-size: 14px 14px; box-shadow: 0 10px 22px -12px rgba(60,40,20,.55); }
.note-none { background: none; }
.bi-h { position: absolute; width: 24px; height: 24px; border-radius: 50%; background: var(--card); border: 2px solid var(--accent); display: grid; place-items: center; color: var(--accent); touch-action: none; }
.bi-h.rot { top: -38px; left: 50%; margin-left: -12px; cursor: grab; }
.bi-h.rot .ic { width: 13px; height: 13px; }
.bi-h.size { right: -14px; bottom: -14px; cursor: nwse-resize; background: var(--accent); }
.vb-sel { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 12px; padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.vb-hint { margin-top: 10px; }
.vb-close { display: none; }
.vb-wrap.full { position: fixed; inset: 0; z-index: 500; background: #120E14; display: grid; place-items: center; padding: 2vmin; }
.vb-wrap.full .vboard { width: min(96vw, calc(94vh * 1.6)); max-height: 94vh; min-height: 0; animation: visualize 1.2s cubic-bezier(.2,.7,.2,1); }
.vb-wrap.full .vb-close { display: grid; place-items: center; position: absolute; top: 14px; right: 14px; z-index: 999; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.88); cursor: pointer; }
.vb-wrap.full .bitem { cursor: default; }
@keyframes visualize { from { opacity: 0; transform: scale(.94); filter: blur(6px); } }
body.visualizing { overflow: hidden; }
.sticker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; }
.sticker-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card2); cursor: pointer; font-size: .72rem; color: var(--ink2); }
.sticker-btn svg { width: 52px; height: 52px; }
.sticker-btn:hover, .sticker-btn:has(input:checked) { border-color: var(--accent); background: var(--card); }
.grad-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.grad-sw { height: 56px; border-radius: 12px; display: flex; align-items: flex-end; padding: 6px; cursor: pointer; border: 2px solid transparent; font: 600 .7rem var(--f-body); text-transform: capitalize; color: #2A2622; }
.grad-sw:has(input:checked) { border-color: var(--ink); }
.grad-sw span { background: rgba(255,255,255,.75); padding: 1px 6px; border-radius: 999px; }
.modal-foot-in { display: flex; justify-content: flex-end; }
/* vision statements */
.vision-card .form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vision-card .field > span { font: 400 1.15rem var(--f-hand); color: #C2410C; }
.vision-card textarea { background-color: transparent; border-color: #E0D3BE; color: #2A2622; }
.values { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.value-chip { position: relative; display: inline-flex; padding: .45em .9em; border-radius: 999px; border: 1.5px solid var(--line2); background: var(--card); font: 600 .84rem var(--f-body); cursor: pointer; transition: all .15s; }
.value-chip input { position: absolute; opacity: 0; }
.value-chip.on { background: var(--sunrise); border-color: transparent; color: #2A1A12; }
.value-chip:has(input:focus-visible) { outline: 2.5px solid var(--accent); outline-offset: 2px; }

/* ------------------------------------------------------------------ wheel of life */
.wheel-layout { display: grid; grid-template-columns: minmax(280px, 440px) 1fr; gap: 26px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); margin-bottom: 18px; }
.wheel-box { position: relative; display: grid; justify-items: center; }
.wheel-box.sm .wheel-svg { max-width: 260px; }
.wheel-svg { width: 100%; max-width: 420px; height: auto; overflow: visible; }
.wh-ring { fill: none; stroke: var(--line); stroke-dasharray: 2 4; }
.wh-bg { fill: var(--c); opacity: .1; }
.wh-fill { fill: var(--c); opacity: .88; transition: d .4s; }
.mark:hover .wh-fill, .mark:focus .wh-fill { opacity: 1; filter: brightness(1.05); }
.wh-num { font: 700 12px var(--f-body); fill: #fff; paint-order: stroke; stroke: rgba(0,0,0,.18); stroke-width: 2px; }
.wh-hub { fill: var(--card); stroke: var(--ink); stroke-width: 2; }
.wheel-avg { display: flex; flex-direction: column; align-items: center; margin: 8px 0 0; }
.wheel-avg b { font: 400 2.2rem/1 var(--f-display); }
.wheel-avg span { font-size: .8rem; color: var(--ink2); }
.wheel-rate { display: flex; flex-direction: column; gap: 6px; }
.wr-row { display: grid; grid-template-columns: minmax(130px, 170px) 1fr 32px; gap: 12px; align-items: center; padding: 4px 8px; border-radius: 10px; }
.wr-row.low { background: color-mix(in srgb, var(--accent2) 9%, transparent); }
.wr-name { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .88rem; }
.wr-row input { accent-color: var(--c); }
.wr-v { font: 400 1.3rem var(--f-display); text-align: right; }
.low-areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.low-card { padding: 14px; border-radius: 16px; border: 1.5px solid color-mix(in srgb, var(--c) 40%, transparent); background: color-mix(in srgb, var(--c) 7%, var(--card)); display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.low-card .num { font: 400 1.6rem var(--f-display); color: var(--c); }
.cmp-pick { margin-bottom: 10px; } .cmp-pick .input { width: auto; border-radius: 999px; }
.cmp-table { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 18px; margin-top: 12px; }
.cmp-row { display: grid; grid-template-columns: 1fr 30px 30px 40px; gap: 6px; font-size: .86rem; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.cmp-row b.up { color: var(--ok); } .cmp-row b.down { color: var(--bad); }

/* ------------------------------------------------------------------ planners */
.year-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: space-between; margin-bottom: 16px; }
.stepper { display: inline-flex; align-items: center; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px; box-shadow: var(--shadow); }
.stepper b { padding: 0 10px; font: 400 1.15rem var(--f-display); white-space: nowrap; }
.word-year { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; flex: 1; justify-content: flex-end; }
.wy-word { display: flex; align-items: center; gap: 10px; }
.wy-in { font: italic 400 1.8rem/1 var(--f-serif); width: 210px; border: 0; border-bottom: 2px solid var(--accent); border-radius: 0; background: transparent; padding: 2px 4px; }
.wy-theme { display: flex; flex-direction: column; gap: 2px; min-width: 240px; flex: 0 1 340px; }
.year-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.mini-month { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px; text-decoration: none; box-shadow: var(--shadow); transition: transform .15s; }
.mini-month:hover { transform: translateY(-2px); }
.mini-month b { font: 400 1.05rem var(--f-display); }
.mm-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-top: 8px; text-align: center; }
.mm-grid small { font: 700 .62rem var(--f-body); color: var(--ink3); }
.mm-d { font-size: .72rem; line-height: 22px; border-radius: 50%; color: var(--ink2); }
.mm-d.has { background: color-mix(in srgb, var(--c) 28%, transparent); color: var(--ink); font-weight: 700; }
.mm-d.goal { background: var(--c); color: #fff; }
.mm-d.today { box-shadow: inset 0 0 0 2px var(--ink); }
.legend-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.lg { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.lg.goal { background: var(--accent); } .lg.ms { background: color-mix(in srgb, var(--accent) 35%, transparent); } .lg.dt { background: color-mix(in srgb, var(--post) 60%, transparent); }
.area-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.area-col { background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--c, var(--line2)); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); }
.area-col h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font: 400 1.15rem var(--f-display); }
.area-col h3 small { margin-left: auto; font: 600 .8rem var(--f-body); color: var(--ink2); }
.yg { display: block; text-decoration: none; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.yg:last-child { border-bottom: 0; }
.yg small { color: var(--ink2); font-size: .78rem; }
.month-focus { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.mf-card { display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.mf-card.now { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.mf-k { display: flex; align-items: baseline; gap: 6px; } .mf-k b { font: 400 1.25rem var(--f-display); } .mf-k small { color: var(--ink3); }
.month-focus .set-save { grid-column: 1 / -1; }
.date-badge { width: 46px; flex: none; text-align: center; border-radius: 10px; background: var(--card2); border: 1px solid var(--line); padding: 4px 0; }
.date-badge b { display: block; font: 400 1.2rem/1 var(--f-display); } .date-badge small { font: 700 .65rem var(--f-body); text-transform: uppercase; color: var(--ink2); }
.q-top { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.q-stats, .hab-top, .nw-top { display: flex; gap: 14px; flex-wrap: wrap; align-items: stretch; }
.hab-top, .nw-top { margin-bottom: 16px; align-items: center; }
.q-stat { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px 16px; box-shadow: var(--shadow); font-size: .84rem; color: var(--ink2); }
.q-stat.big { flex-direction: column; align-items: flex-start; gap: 2px; }
.q-stat.big b { font: 400 1.5rem var(--f-display); color: var(--ink); }
.q-stat .ring { width: 52px; height: 52px; }
.q-stat b.big { font: 400 1.7rem var(--f-display); color: var(--ink); }
.nw-top .q-stat { flex-direction: column; align-items: flex-start; gap: 0; }
.nw-top .q-stat.hl { flex-direction: row; align-items: center; gap: 10px; background: color-mix(in srgb, var(--accent) 9%, var(--card)); }
.nw-top .q-stat.hl > b { order: 2; }
.nw-op { font: 400 1.8rem var(--f-display); color: var(--ink3); }
.nw-top form { margin-left: auto; }
.mini-f { flex-direction: column; } .mini-f .input { width: 7rem; }
.wk12-wrap, .hgrid-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px 4px; }
.wk12 { border-collapse: separate; border-spacing: 4px; width: 100%; min-width: 880px; }
.wk12 th { font: 600 .74rem var(--f-body); color: var(--ink2); text-align: center; vertical-align: bottom; }
.wk12 th small { display: block; font-weight: 400; color: var(--ink3); }
.wk12 thead th:first-child, .wk12 tbody th { text-align: left; }
.wk12 tbody th { min-width: 200px; max-width: 240px; padding: 6px 8px 6px 10px; border-left: 4px solid var(--c, var(--line2)); background: var(--card2); border-radius: 0 10px 10px 0; vertical-align: top; }
.wk12 tbody th b { display: block; font-size: .88rem; color: var(--ink); }
.wk12 tbody th small { display: block; margin-top: 2px; font-weight: 400; }
.wk12 th.now, .wk12 td.now { background: color-mix(in srgb, var(--accent) 10%, transparent); border-radius: 8px; }
.wk-cell { width: 100%; min-height: 54px; border-radius: 10px; border: 1.5px dashed var(--line2); background: var(--card); font: 500 .7rem/1.2 var(--f-body); color: var(--ink3); cursor: pointer; padding: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; }
.wk-cell.has { border-style: solid; color: var(--ink); }
.wk-cell.on { background: var(--sunrise); color: #2A1A12; border-color: transparent; }
.wk-cell span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.exec-row th { background: none !important; border-left: 0 !important; font-weight: 700; }
.exec { display: block; text-align: center; font: 700 .78rem var(--f-body); padding: 6px 0; border-radius: 8px; background: var(--card2); color: var(--ink3); }
.exec.hi { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); } .exec.mid { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); } .exec.lo { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
.cal-panel { padding: 14px; }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-head span { font: 700 .74rem var(--f-body); color: var(--ink3); text-transform: uppercase; text-align: center; padding: 4px 0; }
.cal-d { min-height: 108px; background: var(--card2); border-radius: 12px; padding: 6px; display: flex; flex-direction: column; gap: 3px; cursor: pointer; overflow: hidden; border: 1.5px solid transparent; transition: border-color .15s; }
.cal-d:hover { border-color: var(--line2); }
.cal-d.out { background: transparent; cursor: default; }
.cal-d.today { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--card)); }
.cal-d > b { font: 400 1rem var(--f-display); }
.cal-chip { display: block; font: 600 .68rem/1.25 var(--f-body); padding: 2px 6px; border-radius: 6px; background: var(--card); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink2); }
.cal-chip .ic { width: .9em; height: .9em; }
.cal-chip.goal { background: var(--c); color: #fff; } .cal-chip.ms { background: color-mix(in srgb, var(--c) 18%, var(--card)); color: var(--ink); } .cal-chip.ev { background: color-mix(in srgb, var(--post) 35%, var(--card)); color: var(--ink); }
.cal-chip.done { text-decoration: line-through; opacity: .7; }
.snap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 8px; }
.snap div { background: #fff; border-radius: 10px; padding: 8px 12px; display: flex; flex-direction: column; }
.snap small { color: #6E6259; font-size: .74rem; } .snap b { font: 400 1.25rem var(--f-display); color: #2A2622; }
.postcard .small, .postcard p { color: #2A2622; } .postcard .muted { color: #6E6259; }
.postcard .input { background: #fff; color: #2A2622; border-color: #E0D3BE; }
.postcard .btn { background: #fff; color: #2A2622; border-color: #E0D3BE; } .postcard .btn.solid { background: #2A2622; color: #FBF4E6; }
.hgrid { border-collapse: separate; border-spacing: 3px; width: 100%; }
.hgrid th { font: 600 .72rem var(--f-body); color: var(--ink2); text-align: center; white-space: nowrap; }
.hgrid th small { display: block; font-weight: 400; }
.hgrid thead th.now { color: var(--accent); }
.hgrid tbody th { text-align: left; font-size: .84rem; color: var(--ink); padding-right: 10px; border-left: 4px solid var(--c); padding-left: 8px; min-width: 150px; max-width: 220px; white-space: normal; }
.hgrid td.num { font: 700 .78rem var(--f-body); text-align: center; color: var(--ink2); min-width: 32px; }
.hcell { width: 100%; min-width: 20px; aspect-ratio: 1; border-radius: 6px; border: 1.5px solid var(--line2); background: var(--card); cursor: pointer; display: block; padding: 0; }
.hcell:hover { border-color: var(--c); }
.hcell.on { background: var(--c); border-color: var(--c); }
.hcell.off { background: repeating-linear-gradient(45deg, var(--bg2) 0 3px, transparent 3px 6px); border-style: dotted; }
.hcell.future { opacity: .35; cursor: default; }
.big3 { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.big3 li { display: flex; gap: 8px; align-items: center; }
.b3-n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 400 1.25rem var(--f-display); background: var(--sunrise); color: #2A1A12; flex: none; }
.big3 .input:first-of-type { flex: 2; } .big3 select.input { flex: 1; max-width: 170px; }
.exec-pill { display: inline-flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px 16px 4px 4px; box-shadow: var(--shadow); font-size: .86rem; }
.exec-pill .ring { width: 44px; height: 44px; }
.spread-panel { padding: 14px; }
.week-spread { display: grid; grid-template-columns: repeat(7, minmax(150px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.wk-day { background: var(--card2); border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 6px; min-height: 280px; border: 2px solid transparent; transition: border-color .15s, background .15s; }
.wk-day.today { border-color: var(--accent); }
.wk-day.drop-over { border-color: var(--accent2); background: color-mix(in srgb, var(--accent2) 10%, var(--card)); }
.wk-day header { display: flex; align-items: baseline; justify-content: space-between; }
.wk-day header b { font: 700 .78rem var(--f-body); text-transform: uppercase; letter-spacing: .06em; color: var(--ink2); }
.wk-day header span { font: 400 1.6rem/1 var(--f-display); }
.wk-tasks { display: flex; flex-direction: column; gap: 5px; }
.wk-task { display: flex; align-items: center; gap: 5px; padding: 6px 7px; background: var(--card); border-radius: 10px; box-shadow: var(--shadow); font-size: .8rem; cursor: grab; }
.wk-task.done .wt-t { text-decoration: line-through; color: var(--ink3); }
.wt-t { flex: 1; min-width: 0; cursor: pointer; overflow-wrap: anywhere; }
.grip { color: var(--ink3); display: grid; cursor: grab; touch-action: none; }
.grip .ic { width: 14px; height: 14px; }
.wk-add { border: 0; background: none; color: var(--ink3); font: 600 .75rem var(--f-body); cursor: pointer; text-align: left; padding: 4px 2px; display: inline-flex; align-items: center; gap: 4px; }
.wk-add:hover { color: var(--accent); }
.wk-blocks { margin-top: auto; display: flex; flex-direction: column; gap: 4px; border-top: 1px dashed var(--line2); padding-top: 6px; }
.tblock { text-align: left; border: 0; border-left: 4px solid var(--c); background: color-mix(in srgb, var(--c) 12%, var(--card)); border-radius: 6px; padding: 5px 7px; font: 600 .74rem/1.25 var(--f-body); color: var(--ink); cursor: pointer; }
.tblock small { display: block; font-weight: 500; color: var(--ink2); }
.drag-ghost { position: fixed; left: 0; top: 0; z-index: 900; pointer-events: none; opacity: .92; box-shadow: var(--shadow2); }
.dragging { opacity: .35; }
body.is-dragging, body.is-dragging * { cursor: grabbing !important; user-select: none; }

/* ------------------------------------------------------------------ daily */
.sched { position: relative; margin-left: 56px; border-left: 1.5px solid var(--line2); }
.sched-h { position: absolute; left: -56px; right: 0; height: var(--h); border: 0; border-top: 1px dashed var(--line); background: none; text-align: left; cursor: pointer; padding: 0; }
.sched-h span { display: inline-block; width: 50px; font: 600 .7rem var(--f-body); color: var(--ink3); transform: translateY(-.65em); background: var(--card); padding-right: 4px; }
.sched-h:hover { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.sched-b { position: absolute; left: 6px; right: 6px; border: 0; border-left: 4px solid var(--c); background: color-mix(in srgb, var(--c) 16%, var(--card)); border-radius: 8px; padding: 4px 8px; text-align: left; cursor: pointer; overflow: hidden; color: var(--ink); z-index: 2; }
.sched-b b { display: block; font-size: .8rem; } .sched-b small { font-size: .7rem; color: var(--ink2); }
.sched-t { position: absolute; right: 8px; font: 600 .72rem var(--f-body); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; z-index: 3; color: var(--ink2); }
.sched-t.done { text-decoration: line-through; }
.sched-now { position: absolute; left: -4px; right: 0; height: 2px; background: var(--bad); z-index: 4; }
.sched-now::before { content: ''; position: absolute; left: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--bad); }
.pomo { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pomo-ring { --p: 0; width: 210px; height: 210px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(closest-side, var(--card) 80%, transparent 81%), conic-gradient(var(--accent) calc(var(--p) * 360deg), var(--bg2) 0); position: relative; }
.pomo-ring::before { content: ''; position: absolute; inset: 22px; border-radius: 50%; background: var(--aura); opacity: .25; filter: blur(8px); z-index: 0; }
.pomo-ring.brk, .pomo-ring.long { background: radial-gradient(closest-side, var(--card) 80%, transparent 81%), conic-gradient(var(--ok) calc(var(--p) * 360deg), var(--bg2) 0); }
.pomo-ring span { font: 400 3rem/1 var(--f-display); position: relative; }
.pomo-ring small { font: 400 1.05rem var(--f-hand); color: var(--ink2); position: relative; }
.pomo-what { display: flex; gap: 8px; width: 100%; flex-wrap: wrap; } .pomo-what .input:first-child { flex: 2 1 160px; } .pomo-what select { flex: 1 1 120px; width: auto; }
.pomo-count { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .86rem; color: var(--ink2); flex-wrap: wrap; justify-content: center; }
.tomatoes { display: inline-flex; gap: 4px; }
.tomatoes i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line2); }
.tomatoes i.on { background: var(--sunrise); border-color: transparent; }
.pomo-set summary { cursor: pointer; font-size: .82rem; color: var(--ink2); text-align: center; }
.pomo-set form { margin-top: 8px; justify-content: center; align-items: flex-end; }
.routine { background: var(--card2); border-radius: 16px; padding: 12px; }
.routine header { display: flex; justify-content: space-between; align-items: center; font-size: .92rem; }
.routine ul { list-style: none; margin: 8px 0 4px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.routine li { display: flex; align-items: center; gap: 8px; font-size: .88rem; }
.routine li span:not(.row-btns) { flex: 1; }
.routine .row-btns { opacity: 0; transition: opacity .15s; } .routine li:hover .row-btns, .routine li:focus-within .row-btns { opacity: 1; }
@media (hover: none) { .routine .row-btns { opacity: 1; } }
.energy, .scale, .rating { 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: 40px; height: 40px; border-radius: 12px; border: 1.5px solid var(--line2); background: var(--card); font-size: 1.25rem; transition: all .15s; color: var(--ink3); }
.rate input:checked + span { background: color-mix(in srgb, var(--accent) 18%, var(--card)); border-color: var(--accent); transform: scale(1.08); color: var(--accent); }
.rate input:focus-visible + span { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.energy .rate input:checked + span { background: var(--gold); color: #fff; border-color: var(--gold); }
.grat { margin-bottom: 6px; }
.one-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.one-log li { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-size: .9rem; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.ol-d { font: 400 1rem var(--f-hand); color: var(--accent); min-width: 56px; }
.one-log li > span:nth-child(2) { flex: 1; }
/* habits */
.streak-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-bottom: 18px; }
.streak-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px; box-shadow: var(--shadow); border-top: 4px solid var(--c); }
.streak-card .habit-chip { width: 100%; }
.sc-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 12px 0 4px; text-align: center; }
.sc-nums b { display: block; font: 400 1.6rem/1 var(--f-display); } .sc-nums small { font-size: .7rem; color: var(--ink2); }
.heat-grid-wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.heat { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px; box-shadow: var(--shadow); }
.heat header { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: .9rem; } .heat header .num { font: 400 1.3rem var(--f-display); color: var(--c); }
.heat-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.heat-grid small { font: 700 .62rem var(--f-body); color: var(--ink3); text-align: center; }
.hd { aspect-ratio: 1; border-radius: 5px; background: var(--bg2); }
.hd.on { background: var(--c); } .hd.off { background: repeating-linear-gradient(45deg, var(--bg2) 0 3px, transparent 3px 6px); } .hd.future { opacity: .4; }
.stack-sentence { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font: 400 1.4rem var(--f-hand); margin: 0 0 14px; }
.stack-sentence .input { flex: 1 1 200px; font: 400 1.15rem var(--f-hand); }
.stacks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.stacks li { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 10px 12px; background: var(--card2); border-radius: 12px; font-size: .92rem; }
.stacks li .row-btns { margin-left: auto; }

/* ------------------------------------------------------------------ progress & money */
.prog-top { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.prog-top .ring { width: 70px; height: 70px; }
.prog-top > div { flex: 1; }
.num.big { font: 400 2rem var(--f-display); }
.pace { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: color-mix(in srgb, var(--blue) 8%, var(--card)); }
.pace > .ic { width: 28px; height: 28px; color: var(--blue); }
.pace p { margin: 0 0 6px; }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.metric { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px; box-shadow: var(--shadow); border-top: 4px solid var(--c); display: flex; flex-direction: column; gap: 6px; }
.metric header { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; }
.metric header > div { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.m-val { display: flex; align-items: baseline; gap: 6px; }
.m-val b { font: 400 2rem/1 var(--f-display); } .m-val span { color: var(--ink2); font-size: .85rem; }
.m-val small.up { color: var(--ok); font-weight: 700; } .m-val small.down { color: var(--bad); font-weight: 700; }
.metric footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 22px 18px; padding-top: 10px; }
.photo-grid .polaroid figcaption { font-size: .95rem; }
.ba { position: relative; aspect-ratio: 4/3; max-width: 620px; margin: 0 auto; border-radius: 16px; overflow: hidden; background: var(--bg2); }
.ba-img { position: absolute; inset: 0; display: grid; } .ba-img img { width: 100%; height: 100%; object-fit: cover; }
.ba-img.after { clip-path: inset(0 0 0 var(--x)); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--x); width: 3px; background: #fff; box-shadow: 0 0 8px rgba(0,0,0,.3); }
.ba-tag { position: absolute; bottom: 10px; background: rgba(255,253,248,.9); padding: 3px 10px; border-radius: 999px; font: 600 .75rem var(--f-body); color: #2A2622; }
.ba-tag.l { left: 10px; } .ba-tag.r { right: 10px; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.jar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; margin-bottom: 18px; }
.jar-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.jar-photo { aspect-ratio: 16/9; min-height: 0 !important; height: auto; }
.jar-card .photo-slot.jar-photo { min-height: 0; }
.jar-row { display: flex; gap: 14px; align-items: center; }
.jar-row > div { flex: 1; min-width: 0; }
.jar { width: 74px; height: 94px; flex: none; }
.jar-row.big .jar { width: 110px; height: 140px; }
.jar-lid { fill: var(--gold); } .jar-neck { fill: color-mix(in srgb, var(--gold) 50%, #fff); }
.jar-glass { fill: rgba(255,255,255,.18); stroke: var(--ink2); stroke-width: 2; }
.jar-shine { stroke: rgba(255,255,255,.75); stroke-width: 3; stroke-linecap: round; }
.jar-amt { font: 400 1.4rem var(--f-display); margin: 4px 0 0; } .jar-amt small { font: 400 .8rem var(--f-body); color: var(--ink2); }
.jar-card footer { display: flex; justify-content: space-between; align-items: center; }
.calc-out { font: 400 1.4rem var(--f-hand); margin: 12px 0 0; }
.total-line { text-align: right; margin: 10px 0 0; } .total-line b { font: 400 1.4rem var(--f-display); }
.po-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.po-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; }
.po-card.avalanche { border: 2px solid var(--ok); } .po-card.snowball { border: 2px solid var(--accent); }
.po-card > b { font: 400 1.5rem var(--f-display); } .po-card > small { color: var(--ink2); }
.po-order { margin: 6px 0 0; padding-left: 20px; font-size: .84rem; } .po-order small { color: var(--ink3); }
.ns-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.ns-d { aspect-ratio: 1; border-radius: 10px; border: 1.5px solid var(--line2); background: var(--card); font: 600 .8rem var(--f-body); cursor: pointer; color: var(--ink2); }
.ns-d.on { background: var(--ok); border-color: var(--ok); color: #fff; } .ns-d.future { opacity: .35; cursor: default; }
.ns-count { margin: 12px 0 0; } .ns-count b { font: 400 1.6rem var(--f-display); }
.goal-strip { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 18px; margin-bottom: 16px; box-shadow: var(--shadow); }
.goal-strip .row:last-child { border-bottom: 0; }
/* health */
.health-trackers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.ht { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.ht header { display: flex; justify-content: space-between; align-items: center; } .ht header .num { font: 400 1.4rem var(--f-display); }
.ht.water { background: linear-gradient(180deg, color-mix(in srgb, #5B8DEF 9%, var(--card)), var(--card)); }
.glasses { display: flex; flex-wrap: wrap; gap: 6px; }
.glass { width: 36px; height: 44px; border-radius: 4px 4px 10px 10px; border: 2px solid #9DB6E8; background: var(--card); color: #CFDBF3; display: grid; place-items: center; cursor: pointer; }
.glass.on { background: #5B8DEF; border-color: #5B8DEF; color: #fff; }
.ht .inline .input { width: 110px; }
.well { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.well-btn { display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: 14px; border: 1.5px solid var(--line2); background: var(--card); color: var(--ink); font: 600 .86rem var(--f-body); cursor: pointer; text-align: left; transition: all .15s; }
.well-btn .ic { color: var(--ok); width: 22px; height: 22px; }
.well-btn.on { background: color-mix(in srgb, var(--ok) 14%, var(--card)); border-color: var(--ok); }
.wo-ic { width: 38px; height: 38px; border-radius: 12px; background: color-mix(in srgb, var(--accent2) 14%, var(--card)); color: var(--accent2); display: grid; place-items: center; flex: none; }
.felt { font-size: 1.3rem; }
.nsv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.nsv { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 16px; background: color-mix(in srgb, var(--gold) 12%, var(--card)); border: 1px dashed color-mix(in srgb, var(--gold) 50%, transparent); }
.nsv > .ic { color: var(--gold); width: 22px; height: 22px; } .nsv b { font: 400 1.15rem/1.3 var(--f-hand); } .nsv small { color: var(--ink2); }
.nsv .row-btns { position: absolute; top: 6px; right: 6px; }

/* ------------------------------------------------------------------ career & life */
.skill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.skill { background: var(--card2); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.skill header { display: flex; justify-content: space-between; align-items: center; }
.levels { display: flex; gap: 6px; }
.lvl { flex: 1; height: 14px; border-radius: 999px; border: 0; background: var(--bg2); cursor: pointer; position: relative; }
.lvl.on { background: var(--sunrise); }
.lvl.tgt::after { content: ''; position: absolute; right: -4px; top: -4px; bottom: -4px; width: 3px; border-radius: 2px; background: var(--ink); }
.books-top { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.book-counter { display: flex; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 14px 18px; box-shadow: var(--shadow); }
.book-counter .ring { width: 74px; height: 74px; } .book-counter .ring b { font: 400 1.4rem var(--f-display); }
.book-counter > div { display: flex; flex-direction: column; gap: 4px; } .book-counter b { font: 400 1.25rem var(--f-display); } .book-counter small { color: var(--ink2); }
.shelf { display: flex; gap: 10px; align-items: flex-end; flex: 1; min-height: 110px; padding: 0 12px 8px; border-bottom: 6px solid var(--kraft); }
.spine-cover { width: 70px; height: 100px; border-radius: 3px; overflow: hidden; background: var(--sunrise); display: grid; place-items: center; box-shadow: 4px 4px 0 rgba(0,0,0,.08); font: 600 .62rem/1.2 var(--f-body); text-align: center; padding: 4px; color: #2A1A12; }
.spine-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.book { display: flex; gap: 12px; background: var(--card2); border-radius: 16px; padding: 12px; }
.book-cover { width: 92px; flex: none; }
.book-cover .photo-box, .book-cover .photo-slot { aspect-ratio: 2/3; min-height: 0; border-radius: 6px; padding: 6px; font-size: .68rem; }
.book-cover .photo-box img { min-height: 0; }
.book-info { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; min-width: 0; flex: 1; }
.book-info > b { font: 400 1.1rem/1.2 var(--f-display); } .book-info > small { color: var(--ink2); }
.takeaway { font-style: italic; color: var(--ink2); margin: 2px 0; }
.win-row { align-items: flex-start; }
.win-ic { width: 36px; height: 36px; border-radius: 50%; background: color-mix(in srgb, var(--gold) 18%, var(--card)); color: var(--gold); display: grid; place-items: center; flex: none; }
.bucket-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px 18px; padding-top: 10px; }
.bucket { position: relative; display: flex; flex-direction: column; gap: 10px; }
.bucket.done .polaroid .pl-photo { filter: saturate(1.1); }
.done-stamp { position: absolute; top: 18px; right: -4px; transform: rotate(8deg); font: 400 1.1rem var(--f-hand); background: var(--ok); color: #fff; padding: 2px 12px; border-radius: 4px; box-shadow: var(--shadow); z-index: 4; }
.bk-body { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.bk-body b { font: 400 1.15rem/1.2 var(--f-display); } .bk-body > small { color: var(--ink2); }
.memory { display: flex; gap: 8px; align-items: center; } .memory img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.dest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.dest { display: flex; flex-direction: column; gap: 8px; }
.postcard-mini { position: relative; padding: 7px; border-radius: 4px; background: radial-gradient(circle at 6px 6px, var(--card) 3px, var(--post) 3.5px) -6px -6px / 12px 12px; }
.dest-photo { aspect-ratio: 3/2; border-radius: 2px !important; min-height: 0 !important; }
.pc-place { position: absolute; left: 16px; bottom: 14px; font: italic 400 1.6rem/1 var(--f-serif); color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.4); pointer-events: none; }
.dest-info { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.dest-info > small { color: var(--ink2); }
.memory-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px 18px; padding-top: 10px; }
.memory-card { display: flex; flex-direction: column; gap: 6px; }

/* ------------------------------------------------------------------ mindset, rewards, journal */
.affirm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.affirm { position: relative; padding: 20px 16px 12px; border-radius: 18px; background: radial-gradient(circle at 85% 0%, color-mix(in srgb, var(--c) 28%, transparent), transparent 60%), var(--card2); display: flex; flex-direction: column; gap: 10px; }
.affirm p { font: italic 400 1.3rem/1.3 var(--f-serif); margin: 0; flex: 1; }
.affirm footer { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.fav { position: absolute; top: 8px; right: 8px; border: 0; background: none; color: var(--ink3); cursor: pointer; padding: 4px; }
.fav.on { color: var(--accent2); }
.quote-card .fav { position: static; color: #fff; }
.quote-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.quote-card { position: relative; aspect-ratio: 4/5; border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; color: #FFFDF8; isolation: isolate; box-shadow: var(--shadow2); }
.qc-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.quote-card.has-photo::before { content: ''; position: absolute; inset: 0; background: rgba(30,20,20,.38); z-index: -1; }
.qc-aura { position: absolute; inset: 0; z-index: -2; background: radial-gradient(circle at 50% 50%, #FF8A00 0%, #F7716B 30%, #F6B3BE 58%, #F9E7DF 85%); }
.quote-card:nth-child(3n+2) .qc-aura { background: radial-gradient(circle at 50% 48%, #FFB067 0%, #F38BA0 40%, #EBCBE3 80%); }
.quote-card:nth-child(3n) .qc-aura { background: radial-gradient(circle at 50% 50%, #FF9A3D 0%, #F27A8E 34%, #F6D7CC 82%); }
.quote-card blockquote { margin: 0; padding: 26px; text-align: center; }
.quote-card blockquote p { font: italic 400 1.6rem/1.15 var(--f-serif); margin: 0; text-shadow: 0 2px 12px rgba(120,40,30,.25); }
.quote-card cite { display: block; margin-top: 10px; font: 400 1rem var(--f-hand); font-style: normal; opacity: .9; }
.quote-card footer { position: absolute; bottom: 8px; left: 8px; right: 8px; display: flex; justify-content: flex-end; align-items: center; gap: 2px; }
.quote-card footer .icon-btn { color: #fff; background: rgba(0,0,0,.18); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.why-card { position: relative; padding: 22px 20px 16px; background: #FBF4E6; border: 6px solid var(--post); border-radius: 4px; transform: rotate(var(--tilt)); color: #2A2622; box-shadow: var(--shadow); }
.why-card p { font: 400 1.3rem/1.35 var(--f-hand); margin: 6px 0 12px; }
.stamp-mini { position: absolute; top: 10px; right: 10px; color: #E88A9A; }
.belief { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; padding: 14px 40px 14px 14px; border-radius: 16px; background: var(--card2); margin-bottom: 10px; }
.bl-old p { text-decoration: line-through; text-decoration-color: var(--bad); color: var(--ink2); margin: 2px 0 0; }
.bl-new p { font: italic 400 1.2rem/1.3 var(--f-serif); margin: 2px 0 0; }
.bl-arrow { color: var(--accent); } .bl-arrow .ic { width: 28px; height: 28px; }
.bl-ev { grid-column: 1 / -1; margin: 0; }
.belief .row-btns { position: absolute; top: 8px; right: 6px; flex-direction: column; }
.conf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.conf { padding: 14px; border-radius: 16px; background: var(--card2); display: flex; flex-direction: column; gap: 8px; border-left: 4px solid var(--gold); }
.conf.c-compliment { border-left-color: var(--accent2); } .conf.c-brave { border-left-color: var(--blue); }
.conf p { margin: 0; font-weight: 600; } .conf footer { display: flex; justify-content: space-between; align-items: center; } .conf footer small { color: var(--ink3); }
.modal-inner.motivate { position: relative; overflow: hidden; text-align: center; padding: 46px 30px 30px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.mot-aura { position: absolute; inset: -40% -20% auto; height: 380px; background: var(--aura); opacity: .55; filter: blur(10px); z-index: -1; animation: breathe 6s ease-in-out infinite; }
.mot-t { font: italic 400 1.9rem/1.2 var(--f-serif); margin: 0; }
.motivate cite { font: 400 1.05rem var(--f-hand); color: var(--ink2); font-style: normal; }
.points-top { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.pts-seal { width: 170px; height: 170px; border-radius: 50%; background: var(--aura), var(--card); display: grid; place-content: center; text-align: center; box-shadow: var(--shadow2); }
.pts-seal b { font: 400 2.6rem/1 var(--f-display); color: #2A1A12; } .pts-seal small { font: 400 1rem var(--f-hand); color: #5A2A1A; }
.pts-break { flex: 1; min-width: 260px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 14px 18px; box-shadow: var(--shadow); }
.pts-break ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 18px; }
.pts-break li { display: flex; gap: 6px; align-items: baseline; font-size: .86rem; border-bottom: 1px dashed var(--line); padding: 4px 0; }
.pts-break li span { flex: 1; } .pts-break li small { color: var(--ink3); }
.reward-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.reward { position: relative; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 16px; border-radius: 18px; background: var(--card2); border: 2px dashed var(--line2); }
.reward > .ic { width: 30px; height: 30px; color: var(--accent2); }
.reward > b { font: 400 1.2rem var(--f-display); } .reward > small { color: var(--ink2); }
.reward.ready { border: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--card)); }
.reward.claimed { opacity: .75; }
.reward .row-btns { position: absolute; top: 8px; right: 8px; }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.badge { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 18px 12px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); filter: grayscale(1); opacity: .6; }
.badge.on { filter: none; opacity: 1; box-shadow: var(--shadow); }
.bd-seal { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--bg2); color: var(--ink3); }
.badge.on .bd-seal { background: var(--aura), var(--card); color: #fff; }
.bd-seal .ic { width: 30px; height: 30px; }
.badge b { font: 400 1.1rem var(--f-display); } .badge small { font-size: .76rem; color: var(--ink2); }
.checkw { background: var(--card2); border-radius: 16px; padding: 12px 14px; margin-bottom: 10px; }
.checkw header { display: flex; align-items: center; gap: 8px; } .checkw header b { flex: 1; }
.checkw dl { margin: 8px 0; display: grid; gap: 6px; } .checkw dt { font: 400 .95rem var(--f-hand); color: var(--accent); } .checkw dd { margin: 0; font-size: .88rem; }
.contract { max-width: 820px; margin: 0 auto; background: #FFFDF6; color: #2A2622; border-radius: 6px; padding: 34px 38px; box-shadow: var(--shadow2); background-image: repeating-linear-gradient(transparent 0 31px, #EFE6D6 31px 32px); border: 1px solid #E8DCC8; }
.contract header { text-align: center; margin-bottom: 18px; } .contract h2 { font: 400 2rem var(--f-display); }
.contract .input { background: rgba(255,255,255,.75); color: #2A2622; border-color: #E0D3BE; }
.contract .field > span { color: #6E6259; }
.signature { font: 400 1.9rem var(--f-hand) !important; }
.signed { text-align: center; margin-top: 18px; }
.sig-script { font: 400 2rem var(--f-hand); color: var(--blue); border-bottom: 2px solid #2A2622; padding: 0 12px; }
.journal-list { display: flex; flex-direction: column; gap: 14px; }
.entry { display: flex; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 14px; box-shadow: var(--shadow); }
.entry-photo { width: 140px; flex: none; border-radius: 12px; overflow: hidden; } .entry-photo img { width: 100%; height: 100%; object-fit: cover; }
.entry-body { flex: 1; min-width: 0; }
.entry-body header { display: flex; gap: 12px; align-items: flex-start; }
.entry-body header > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.entry-body h3 { font: 400 1.25rem/1.2 var(--f-display); }
.entry-date { width: 50px; flex: none; text-align: center; background: var(--paper-pink); border-radius: 10px; padding: 4px 0; color: #2A2622; }
.entry-date b { display: block; font: 400 1.4rem/1 var(--f-display); } .entry-date small { font: 700 .65rem var(--f-body); text-transform: uppercase; }
.mood { font-size: 1.1rem; }
.entry-body > p { color: var(--ink2); margin: 8px 0 0 62px; }
.prompt-hero { display: flex; gap: 16px; align-items: center; padding: 18px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 18px; flex-wrap: wrap; }
.prompt-hero > div { flex: 1; min-width: 200px; }
.prompt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.prompt-cat { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.prompt-cat h3 { font: 400 1.25rem var(--f-display); margin-bottom: 8px; }
.prompt-cat ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.prompt-cat .link { color: var(--ink); text-decoration-color: var(--line2); font-weight: 500; }
.dump-area { min-height: 420px; background: transparent !important; border: 0; font: 400 1.2rem/47px var(--f-hand); padding: 0 4px; color: #2A2622; box-shadow: none !important; }
[data-theme="night"] .dump-area { color: var(--ink); }
.dump-page .gc-body { background-position: 0 -1px; }
.letter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.letter { position: relative; padding: 18px; border-radius: 16px; background: var(--card2); display: flex; flex-direction: column; gap: 6px; }
.letter.sealed { align-items: center; text-align: center; }
.letter .row-btns { position: absolute; top: 8px; right: 8px; }
.envelope { position: relative; width: 150px; height: 96px; background: #F3E3C7; border-radius: 6px; margin-bottom: 8px; overflow: hidden; box-shadow: var(--shadow); }
.envelope .flap { position: absolute; inset: 0 0 auto 0; height: 60px; background: #E9D2AC; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.envelope .seal { position: absolute; left: 50%; top: 44px; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #F28B82, #C0392B); color: #fff; display: grid; place-items: center; box-shadow: 0 2px 4px rgba(0,0,0,.25); }
.letter.open p { white-space: pre-wrap; font: 400 1.15rem/1.45 var(--f-hand); }
.letter.open header small { color: var(--ink2); display: block; }

/* ------------------------------------------------------------------ reviews */
.numbers { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.nb { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px; box-shadow: var(--shadow); }
.nb b { display: block; font: 400 1.9rem/1.05 var(--f-display); } .nb span { font-size: .8rem; color: var(--ink2); }
.year-numbers { position: relative; padding: 22px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); margin-bottom: 18px; overflow: hidden; }
.year-numbers::before { content: ''; position: absolute; right: -80px; top: -120px; width: 320px; height: 320px; border-radius: 50%; background: var(--aura); opacity: .3; }
.year-numbers .numbers { margin: 12px 0 0; position: relative; }
.auto-list { list-style: none; margin: 4px 0 12px; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: .88rem; }
.auto-list .ic { color: var(--accent); }
.achieve-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.achieve-list li { display: grid; grid-template-columns: 36px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; }
.al-ic { grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--gold) 18%, var(--card)); color: var(--gold); }
.achieve-list small { color: var(--ink2); font-size: .78rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 22px 16px; padding-top: 10px; }
.gallery .polaroid .icon-btn { position: absolute; right: 4px; bottom: 4px; background: rgba(255,255,255,.9); }
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 28px 20px; padding: 14px 4px 22px; margin-bottom: 18px; }
.wall-goal { display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; }
.wall-goal .polaroid { width: 100%; transform: rotate(var(--tilt)); }
.wall-goal small { color: var(--ink2); }
.wall-aura { display: grid; place-items: center; width: 100%; height: 100%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 85%, #FF8A00), color-mix(in srgb, var(--c) 30%, #F6E3D2) 70%); color: #fff; }
.wall-aura .ic { width: 46px; height: 46px; }
.ms-wall { display: flex; flex-wrap: wrap; gap: 8px; }
.ms-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--c) 12%, var(--card)); font-size: .82rem; }
.ms-chip .ic { color: var(--c); } .ms-chip small { color: var(--ink3); }
.report { max-width: 900px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 30px; box-shadow: var(--shadow); border-top: 8px solid var(--c); }
.rep-head { display: flex; gap: 18px; align-items: center; margin-bottom: 16px; }
.rep-cover { width: 140px; height: 105px; border-radius: 12px; overflow: hidden; flex: none; } .rep-cover img { width: 100%; height: 100%; object-fit: cover; }
.rep-head h2 { font: 400 2rem/1.1 var(--f-display); margin: 4px 0 8px; }
.rep-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 16px; }
.rep-facts div { background: var(--card2); border-radius: 12px; padding: 10px 12px; }
.rep-facts dt { font-size: .74rem; color: var(--ink2); } .rep-facts dd { margin: 2px 0 0; font: 400 1.1rem var(--f-display); }
.report h3 { font: 400 1.25rem var(--f-display); margin: 18px 0 8px; }
.rep-ms { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; margin: 0; }
.rep-ms li small { display: block; color: var(--ink2); font-size: .78rem; }
.rep-ms li.done b { text-decoration: line-through; text-decoration-color: var(--accent2); }

/* ------------------------------------------------------------------ settings */
.setup-grid { display: grid; grid-template-columns: 140px 1fr; gap: 20px; align-items: start; margin-bottom: 16px; }
.setup-photo { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.area-edits { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 8px 14px; margin-bottom: 10px; }
.area-edit { display: grid; grid-template-columns: 150px 1fr auto; gap: 8px; align-items: center; }
.palettes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.pal { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 12px; border-radius: 16px; border: 2px solid var(--line); background: var(--card2); cursor: pointer; text-align: left; color: var(--ink); }
.pal[aria-pressed="true"] { border-color: var(--accent); }
.pal-sw { display: flex; gap: 3px; } .pal-sw i { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(0,0,0,.08); }
.pal small { color: var(--ink2); font-size: .74rem; }
.set-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.sr-t { display: flex; flex-direction: column; } .sr-t small { color: var(--ink2); font-size: .78rem; }
.tsizes { display: flex; gap: 4px; } .tsizes button { width: 36px; height: 36px; border-radius: 10px; border: 1.5px solid var(--line2); background: var(--card); cursor: pointer; color: var(--ink); }
.tsizes button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.tog { appearance: none; width: 46px; height: 26px; border-radius: 999px; background: var(--line2); position: relative; cursor: pointer; transition: background .2s; }
.tog::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.tog:checked { background: var(--accent); } .tog:checked::after { transform: translateX(20px); }
.set-in { max-width: 280px; }

/* ------------------------------------------------------------------ modal, toasts, tips */
dialog#modal { border: 0; padding: 0; border-radius: 26px; background: var(--card); color: var(--ink); width: min(680px, calc(100vw - 24px)); max-height: calc(100vh - 32px); box-shadow: 0 30px 80px -30px rgba(40,20,10,.6); overflow: hidden; }
dialog#modal.narrow { width: min(470px, calc(100vw - 24px)); }
dialog#modal::backdrop { background: rgba(42,30,24,.42); backdrop-filter: blur(3px); }
.modal-inner { display: flex; flex-direction: column; max-height: calc(100vh - 32px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 22px 10px; }
.modal-head h2 { font: 400 1.5rem var(--f-display); }
.modal-body { padding: 8px 22px 18px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--card2); }
.modal-foot .right { display: flex; gap: 8px; }
.quick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.quick-btn { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 10px; border-radius: 18px; border: 1.5px solid var(--line2); background: var(--card2); cursor: pointer; font: 600 .88rem var(--f-body); color: var(--ink); transition: all .15s; }
.quick-btn .ic { width: 28px; height: 28px; color: var(--accent); }
.quick-btn:hover { border-color: var(--accent); background: var(--card); transform: translateY(-2px); }
#toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 1000; width: min(520px, calc(100vw - 24px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 12px 16px; border-radius: 16px; background: var(--ink); color: var(--bg); font-size: .9rem; box-shadow: var(--shadow2); animation: toastIn .3s cubic-bezier(.2,.8,.2,1); }
.toast.err { background: var(--bad); color: #fff; }
.toast button { border: 0; background: var(--gold); color: #2A2622; border-radius: 999px; padding: 6px 12px; font: 700 .8rem var(--f-body); cursor: pointer; white-space: nowrap; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.tip { position: fixed; z-index: 1100; transform: translate(-50%, -100%); background: var(--ink); color: var(--bg); padding: 6px 10px; border-radius: 9px; font: 600 .76rem var(--f-body); pointer-events: none; white-space: nowrap; max-width: 300px; overflow: hidden; text-overflow: ellipsis; }

/* ------------------------------------------------------------------ charts */
.chart { margin: 0; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-dasharray: 3 4; }
.chart .axis { font: 500 11px var(--f-body); fill: var(--ink3); }
.chart .base { stroke: var(--line2); }
.chart .hit { fill: transparent; }
.bar-mark, .donut-seg, .key { fill: var(--c1); background: var(--c1); }
.c1 { --tone: var(--c1); } .c2 { --tone: var(--c2); } .c3 { --tone: var(--c3); } .c4 { --tone: var(--c4); } .c5 { --tone: var(--c5); } .c6 { --tone: var(--c6); }
.bar-mark { fill: var(--tone, var(--c1)); } .bar-mark.soft { opacity: .45; }
.line-mark { fill: none; stroke: var(--tone, var(--c1)); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.line-mark.c4 { stroke-dasharray: 5 5; stroke-width: 2; } .line-mark.c3 { stroke-dasharray: 2 5; stroke-width: 2; }
.dot-mark { fill: var(--card); stroke: var(--tone, var(--c1)); stroke-width: 2.5; }
.mark:hover .dot-mark, .mark:focus .dot-mark { fill: var(--tone, var(--c1)); }
.mark:hover .bar-mark, .mark:focus .bar-mark { filter: brightness(1.08); }
.mark { outline: none; }
.donut-seg { fill: var(--tone, var(--c1)); } .donut-empty { fill: none; stroke: var(--bg2); }
.key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--tone, var(--c1)); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .78rem; color: var(--ink2); margin-top: 6px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.donut-wrap { position: relative; width: 200px; margin: 0 auto; }
.donut-mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut-mid b { font: 400 1.4rem var(--f-display); } .donut-mid span { font-size: .74rem; color: var(--ink2); }
.donut-key { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: .86rem; }
.donut-key li { display: flex; align-items: center; gap: 8px; } .donut-key li span { flex: 1; }
.radar-chart svg { max-width: 440px; margin: 0 auto; }
.radar-ring { fill: none; stroke: var(--line); } .radar-spoke { stroke: var(--line); }
.radar-area { fill: var(--tone, var(--c1)); fill-opacity: .25; stroke: var(--tone, var(--c1)); stroke-width: 2; }
.radar-area.prev { fill-opacity: .08; stroke-dasharray: 4 4; }
.radar-label { font: 600 10px var(--f-body); fill: var(--ink2); }
figcaption { margin-top: 6px; }

/* ------------------------------------------------------------------ celebrations */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 2000; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 9px; height: 14px; border-radius: 2px; animation: fall var(--d) cubic-bezier(.25,.6,.4,1) forwards; }
@keyframes fall { to { transform: translate(var(--x), 110vh) rotate(var(--r)); } }
.pop { position: fixed; z-index: 2000; pointer-events: none; }
.pop i { position: absolute; width: 7px; height: 7px; border-radius: 2px; animation: burst .8s ease-out forwards; }
@keyframes burst { to { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; } }
.calm *, .calm *::before, .calm *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ------------------------------------------------------------------ sign in */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-art { position: relative; overflow: hidden; background: #F8E9DC; display: flex; align-items: flex-end; padding: 48px; color: #2A2622; }
.auth-aura { position: absolute; width: 760px; height: 760px; left: 50%; top: 40%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, #FF8A00 0%, #F7716B 25%, #F6B3BE 48%, rgba(248,233,220,0) 70%); animation: breathe 10s ease-in-out infinite; }
.aa-over { position: relative; max-width: 520px; }
.aa-kick { font: 400 1.3rem var(--f-hand); color: #7A2E12; }
.aa-word { display: block; font: 400 clamp(3.5rem, 2rem + 6vw, 6.5rem)/1 var(--f-display); margin: 6px 0 12px; }
.aa-lede { font-size: 1.02rem; max-width: 46ch; }
.aa-stats { display: flex; gap: 22px; margin-top: 18px; } .aa-stats span { display: flex; flex-direction: column; font-size: .8rem; } .aa-stats b { font: 400 1.8rem var(--f-display); }
.auth-form { display: grid; place-items: center; padding: 30px 20px; }
.auth-card { width: min(420px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 30px; box-shadow: var(--shadow2); display: flex; flex-direction: column; gap: 12px; }
.auth-card h2 { font: 400 2rem var(--f-display); }
.key-input { font: 600 1.2rem ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1240px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 > :last-child { grid-column: 1 / -1; }
  .year-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .search input { width: 160px; }
  .vision-card .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1080px) {
  .strip { grid-template-columns: 1fr 1fr; } .strip-cell.note { grid-column: 1 / -1; }
  .builder, .wheel-layout { grid-template-columns: 1fr; } .builder-side { position: static; }
  .health-trackers, .po-grid { grid-template-columns: 1fr 1fr; }
  .low-areas { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --sw: 284px; }
  .side { transform: translateX(-105%); width: var(--sw) !important; box-shadow: var(--shadow2); }
  body.nav-on .side { transform: none; }
  body.nav-on .scrim { display: block; position: fixed; inset: 0; z-index: 49; background: rgba(42,30,24,.4); backdrop-filter: blur(2px); animation: fade .2s; }
  @keyframes fade { from { opacity: 0; } }
  .side-tog { display: none; } .side-x { display: grid; }
  body.side-mini .brand-txt, body.side-mini .side-link span { opacity: 1; width: auto; }
  body.side-mini .side-top { flex-direction: row; padding: 16px 12px 12px 16px; }
  body.side-mini .side-link { justify-content: flex-start; padding: 10px 12px; gap: 12px; }
  .main-col, body.side-mini .main-col, .demo-band, body.side-mini .demo-band { margin-left: 0; }
  .menu-btn { display: grid; }
  .topbar { padding: 10px 16px; flex-wrap: wrap; gap: 8px; }
  .focus-bar { order: 3; flex-basis: 100%; gap: 6px; }
  .fb { flex: 1 1 140px; } .fb .input { max-width: none; width: 100%; } .fb-k { font-size: .65rem; }
  .tb-tools { margin-left: auto; }
  .search input { width: 140px; }
  .hub { padding: 18px 16px 80px; }
  .grid-2, .grid-2.wide-left, .grid-3 { grid-template-columns: 1fr; }
  .plan-head { grid-template-columns: 1fr; }
  .pulse { grid-template-columns: 1fr; }
  .year-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .setup-grid { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; } .auth-art { min-height: 300px; padding: 30px 22px; }
  .vboard { aspect-ratio: 3 / 4; min-height: 0; }
  .demo-band { padding: 7px 16px; }
}
@media (max-width: 600px) {
  body { font-size: 14.5px; }
  .strip, .health-trackers, .po-grid, .low-areas { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-in { padding: 64px 22px 92px; }
  .hero-aura { width: 460px; height: 460px; right: -200px; top: -170px; }
  .rb-text { font-size: 26px; }
  .search { display: none; }
  .pb-sync span { display: none; }
  .year-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .mini-month { padding: 8px; } .mm-d { line-height: 18px; font-size: .64rem; }
  .cal-head, .cal-grid { gap: 3px; }
  .cal-d { min-height: 64px; padding: 4px; border-radius: 8px; } .cal-chip { font-size: 0; padding: 0; height: 6px; border-radius: 3px; } .cal-chip .ic { display: none; } .cal-d > small { display: none; }
  .word-year { justify-content: flex-start; } .wy-in { width: 160px; }
  .area-edit { grid-template-columns: 120px 1fr auto; }
  .area-edits { grid-template-columns: 1fr; }
  .belief { grid-template-columns: 1fr; padding-right: 14px; } .bl-arrow { transform: rotate(90deg); justify-self: center; } .belief .row-btns { position: static; flex-direction: row; justify-self: end; }
  .entry { flex-direction: column; } .entry-photo { width: 100%; height: 160px; } .entry-body > p { margin-left: 0; }
  .rep-facts { grid-template-columns: 1fr 1fr; } .report { padding: 18px; } .rep-head { flex-direction: column; align-items: flex-start; }
  .contract { padding: 22px 18px; }
  .wr-row { grid-template-columns: 110px 1fr 28px; gap: 8px; }
  .page-head { margin-bottom: 14px; }
  .quick-row .pill-btn { flex: 1 1 auto; justify-content: center; }
  .woop { grid-template-columns: 1fr; }
  .tabs a { padding: .5em .9em; font-size: .82rem; }
  .vb-pick .input { min-width: 0; max-width: 60vw; }
  .vboard { aspect-ratio: 3 / 4.4; }
  .bitem.t-sticker { min-width: 9%; }
  .lst-sel .input { max-width: 46vw; }
  .modal-head, .modal-body, .modal-foot { padding-left: 16px; padding-right: 16px; }
  .pomo-ring { width: 180px; height: 180px; } .pomo-ring span { font-size: 2.5rem; }
  .points-top { flex-direction: column; align-items: stretch; } .pts-seal { margin: 0 auto; }
  .nw-top form { margin-left: 0; }
  .stack-sentence { font-size: 1.2rem; }
  .gc-head h2 { font-size: 1.35rem; }
}

/* ------------------------------------------------------------------ print */
@media print {
  @page { margin: 14mm; }
  body { background: #fff !important; color: #000; font-size: 11pt; }
  .side, .scrim, .topbar, .demo-band, .tabs, .btn, .icon-btn, .row-btns, .lst-tools, .no-print, .set-save, .stepper button, #toasts, .hero-photo-tools, .pb-tools { display: none !important; }
  .main-col { margin: 0 !important; }
  .hub { padding: 0; max-width: none; }
  .panel, .report, .nb, .postcard, .guestcheck { box-shadow: none !important; break-inside: avoid; }
  textarea.input { border: 0; background: none; resize: none; }
  .year-top { justify-content: flex-start; }
}
@media (hover: hover) and (pointer: fine) { .wk-task .grip { display: none; } }
@media (max-width: 600px) { .big3 li { flex-wrap: wrap; } .big3 .input:first-of-type { flex: 1 1 calc(100% - 90px); } .big3 select.input { max-width: none; flex: 1 1 auto; margin-left: 42px; } }
