/* The Lía Edit — Life Planner
   Five palettes share one structure. Chart hues are fixed per mode (validated). */

:root,
[data-palette="plum"] {
  --bg: #F6F0E9; --surface: #FFFBF6; --surface-2: #F1E8EE; --ink: #2B1B28; --ink-2: #634F5D; --muted: #9A8893;
  --line: #E5D9D2; --accent: #5B2A4E; --accent-ink: #FFF8F2; --accent-soft: #EBDCE6; --accent-2: #C7A3C4;
  --paper: #FBF3D9; --clip: #2B1B28; --strip: #241820;
}
[data-palette="butter"] {
  --bg: #FAF4E2; --surface: #FFFCF2; --surface-2: #F4EACB; --ink: #33281A; --ink-2: #6A5A44; --muted: #A08F76;
  --line: #EADFC2; --accent: #8B5A2B; --accent-ink: #FFF9EC; --accent-soft: #F3E3BF; --accent-2: #E9CF7F;
  --paper: #FFF7DD; --clip: #33281A; --strip: #2D2418;
}
[data-palette="dusty"] {
  --bg: #F1F3F2; --surface: #FBFCFB; --surface-2: #E4EAEE; --ink: #1E2833; --ink-2: #4F5D6B; --muted: #8B97A2;
  --line: #DCE2E5; --accent: #4E6C86; --accent-ink: #F7FAFC; --accent-soft: #DCE6EE; --accent-2: #A9BED0;
  --paper: #F7F1E1; --clip: #1E2833; --strip: #1B232C;
}
[data-palette="saddle"] {
  --bg: #EEE5D9; --surface: #FAF5EE; --surface-2: #E6D8C6; --ink: #2A1D15; --ink-2: #634C3C; --muted: #9C8673;
  --line: #DDCCB9; --accent: #7A4B2A; --accent-ink: #FFF7EE; --accent-soft: #EAD9C4; --accent-2: #CFA77C;
  --paper: #F8EED6; --clip: #2A1D15; --strip: #261A12;
}
[data-palette="night"] {
  --bg: #1A1519; --surface: #241D23; --surface-2: #2E252D; --ink: #F2E9E6; --ink-2: #C4B5BD; --muted: #8C7D86;
  --line: #3A3038; --accent: #D7B2D2; --accent-ink: #1A1519; --accent-soft: #3A2C38; --accent-2: #8C6487;
  --paper: #EFE3C8; --clip: #0E0B0D; --strip: #0E0B0D;
}

/* Chart hues — fixed order, validated for light and dark surfaces */
:root { --c1:#9A3F7F; --c2:#C9922A; --c3:#2F7FB5; --c4:#C25A35; --c5:#3E9A78; --c6:#7B66C9; --c-other:#A39A9E;
  --good:#3E8A5E; --warn:#B7791F; --bad:#B4433A; }
[data-palette="night"] { --c1:#C266A6; --c2:#B07E22; --c3:#4C93C9; --c4:#D56B44; --c5:#3FA587; --c6:#9480DD; --c-other:#7C7378;
  --good:#5FB07F; --warn:#D49A3A; --bad:#DE6B60; }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--ink);
  font: 15px/1.5 "IBM Plex Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .serif { font-family: "Fraunces", Georgia, serif; font-weight: 400; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; }
h2 { font-size: 22px; line-height: 1.2; }
h3 { font-size: 17px; }
em, .ital { font-family: "Fraunces", Georgia, serif; font-style: italic; }
.mono, .label { font-family: "IBM Plex Mono", ui-monospace, monospace; }
.label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.muted { color: var(--muted); } .ink2 { color: var(--ink-2); }
.num { font-variant-numeric: tabular-nums; }
.pos { color: var(--good); } .neg { color: var(--bad); }

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: 268px 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 26px 18px 30px;
  border-right: 1px solid var(--line); background: var(--surface);
}
.brand { display: block; text-decoration: none; padding: 0 10px 22px; }
.brand .b1 { font-family: "Fraunces", serif; font-size: 23px; line-height: 1; }
.brand .b1 i { font-style: italic; }
.brand .b2 { margin-top: 6px; }
.nav a, .nav summary {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px;
  text-decoration: none; color: var(--ink-2); font-size: 14px; cursor: pointer;
}
.nav a:hover, .nav summary:hover { background: var(--surface-2); color: var(--ink); }
.nav a.on { background: var(--accent-soft); color: var(--ink); }
.nav details { margin-top: 2px; }
.nav summary { list-style: none; color: var(--ink); font-weight: 500; }
.nav summary::-webkit-details-marker { display: none; }
.nav summary .tag { margin-left: auto; font-family: "Fraunces", serif; font-style: italic; font-weight: 400; color: var(--muted); font-size: 13px; }
.nav summary .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); flex: none; }
.nav .sub { padding: 2px 0 8px 17px; border-left: 1px solid var(--line); margin-left: 13px; }
.nav .sub a { font-size: 13.5px; padding: 5px 10px; }
.nav .sub .grp { padding: 10px 10px 3px; }
.nav .soon { margin-left: auto; font-size: 10px; color: var(--muted); font-family: "IBM Plex Mono", monospace; }
.side-foot { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 2px; }

.main { min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px;
  padding: 12px clamp(18px, 3vw, 40px); background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.crumbs { font-size: 13px; color: var(--muted); }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--ink); }
.topbar .spacer { flex: 1; }
.sync { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.sync::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
.sync[data-s="saving"]::before { background: var(--warn); }
.sync[data-s="error"]::before { background: var(--bad); }
.sync[data-s="demo"]::before { background: var(--accent-2); }
.btn.menu-btn { display: none; }
.swatches { display: flex; gap: 6px; }
.swatches button {
  width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--surface); padding: 0; cursor: pointer;
  box-shadow: 0 0 0 1px var(--line);
}
.swatches button.on { box-shadow: 0 0 0 2px var(--ink); }

.demo-banner {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin: 18px clamp(18px, 3vw, 40px) 0; padding: 12px 16px; border-radius: 12px;
  background: var(--accent); color: var(--accent-ink); font-size: 14px;
}
.demo-banner .spacer { flex: 1; }
.demo-banner .btn { background: var(--accent-ink); color: var(--accent); border-color: transparent; }
.demo-banner .btn.ghost { background: transparent; color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent-ink) 40%, transparent); }

.page { padding: 28px clamp(18px, 3vw, 40px) 80px; max-width: 1320px; }
.page-head { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.page-head .spacer { flex: 1; }
.page-head p { margin: 8px 0 0; color: var(--ink-2); max-width: 60ch; }

/* ---------- primitives ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; min-width: 0; }
.card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-h .spacer { flex: 1; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span2 { grid-column: span 2; } .span3 { grid-column: span 3; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.stack > * + * { margin-top: 10px; }

.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 13.5px; text-decoration: none;
  white-space: nowrap;
}
.btn:hover { border-color: var(--ink-2); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.small { padding: 5px 11px; font-size: 12.5px; }
.btn.quiet { border-color: transparent; background: transparent; }
.btn.danger { color: var(--bad); }
.icon-btn { border: 0; background: transparent; cursor: pointer; color: var(--muted); padding: 4px; border-radius: 6px; }
.icon-btn:hover { color: var(--ink); background: var(--surface-2); }

input[type=text], input[type=number], input[type=date], input[type=email], input[type=password], select, textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { resize: vertical; min-height: 80px; }
.field { display: grid; gap: 5px; }
.field > span { font-size: 12px; color: var(--ink-2); }

.seg { display: inline-flex; padding: 3px; background: var(--surface-2); border-radius: 999px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 5px 12px; border-radius: 999px; cursor: pointer; font-size: 13px; color: var(--ink-2); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / .08); }

.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.pill.good { background: color-mix(in srgb, var(--good) 15%, transparent); color: var(--good); }
.pill.warn { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.pill.bad { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }

.kpi .v { font-family: "Fraunces", serif; font-size: 30px; line-height: 1.1; margin-top: 6px; }
.kpi .d { font-size: 12.5px; margin-top: 4px; color: var(--ink-2); }

.bar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.bar.over > i { background: var(--bad); }

/* tables */
.tbl-wrap { overflow-x: auto; margin: 0 -4px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 500; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
  font-family: "IBM Plex Mono", monospace; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: var(--surface-2); }
.tbl .r { text-align: right; }
.tbl tfoot td { font-weight: 500; border-bottom: 0; }
.empty { padding: 28px 10px; text-align: center; color: var(--muted); font-family: "Fraunces", serif; font-style: italic; }

/* modal */
.modal-bg { position: fixed; inset: 0; background: rgb(20 12 18 / .38); display: grid; place-items: center; z-index: 100; padding: 16px; }
.modal { width: min(520px, 100%); max-height: 90vh; overflow: auto; background: var(--surface); border-radius: 18px; padding: 24px; box-shadow: 0 20px 60px rgb(0 0 0 / .25); }
.modal h2 { margin-bottom: 16px; }
.modal form { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.modal form .full { grid-column: 1 / -1; }
.modal .actions { grid-column: 1 / -1; display: flex; gap: 8px; margin-top: 6px; }
.modal .actions .spacer { flex: 1; }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg);
  padding: 10px 18px; border-radius: 999px; font-size: 13.5px; z-index: 200; animation: rise .25s ease; }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 8px); } }

/* charts */
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid-l { stroke: var(--line); stroke-width: 1; }
.chart .axis-t { fill: var(--muted); font: 11px "IBM Plex Mono", monospace; }
.tip { position: absolute; pointer-events: none; background: var(--ink); color: var(--bg); font-size: 12px; padding: 6px 10px;
  border-radius: 8px; white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); z-index: 5; display: none; }
.tip b { font-weight: 500; }
.legend { display: grid; gap: 7px; font-size: 13px; }
.legend .li { display: flex; align-items: center; gap: 8px; }
.legend .sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend .li .v { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--ink-2); }

/* ---------- dashboard ---------- */
.hello { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; margin-bottom: 26px; }
.hello .date { margin-bottom: 10px; }
.hello h1 em { color: var(--accent); }
.clock { font-family: "Fraunces", serif; font-size: 44px; line-height: 1; text-align: right; font-variant-numeric: tabular-nums; }
.clock small { display: block; font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-top: 8px; }

.dash { display: grid; grid-template-columns: 300px minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.dash .col { display: grid; gap: 18px; min-width: 0; }

.note-wrap { padding-top: 22px; }
.note {
  position: relative; background: var(--paper); color: #2B2320; padding: 34px 24px 26px; border-radius: 3px;
  transform: rotate(-1.6deg); box-shadow: 0 1px 0 rgb(0 0 0 / .04), 0 14px 26px -12px rgb(40 20 30 / .35);
  background-image: repeating-linear-gradient(transparent 0 27px, rgb(120 90 60 / .13) 27px 28px);
}
.note .label { color: #8a7a6a; }
.note blockquote { margin: 10px 0 0; font-family: "Fraunces", serif; font-style: italic; font-size: 23px; line-height: 1.25; }
.clip { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); width: 64px; height: 40px; }
.clip::before { /* wire loops */
  content: ""; position: absolute; left: 8px; right: 8px; top: 0; height: 26px; border: 2.5px solid #b9b4ad;
  border-bottom: 0; border-radius: 14px 14px 0 0;
}
.clip::after { /* body */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22px; background: var(--clip);
  clip-path: polygon(10% 0, 90% 0, 100% 100%, 0 100%); border-radius: 2px;
}
.note .note-actions { position: absolute; right: 10px; bottom: 8px; display: flex; gap: 2px; }
.note .icon-btn { color: #8a7a6a; }

.strip {
  position: relative; background: var(--strip); border-radius: 6px; padding: 18px 0; overflow: hidden;
}
.strip::before, .strip::after {
  content: ""; position: absolute; left: 0; right: 0; height: 8px;
  background: radial-gradient(circle at 6px 4px, rgb(255 255 255 / .82) 2.6px, transparent 3px) 0 0 / 16px 8px repeat-x;
}
.strip::before { top: 5px; } .strip::after { bottom: 5px; }
.strip-track { display: flex; gap: 10px; width: max-content; animation: roll var(--dur, 40s) linear infinite; padding-left: 10px; }
.strip:hover .strip-track { animation-play-state: paused; }
@keyframes roll { to { transform: translateX(-50%); } }
.frame { width: 150px; height: 112px; border-radius: 2px; overflow: hidden; flex: none; background: #3a3036; position: relative; }
.frame img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.9) contrast(1.02); }
.frame .rm { position: absolute; top: 4px; right: 4px; background: rgb(0 0 0 / .55); color: #fff; border: 0; border-radius: 50%;
  width: 22px; height: 22px; cursor: pointer; display: none; }
.frame:hover .rm { display: block; }
.strip-empty { color: rgb(255 255 255 / .7); text-align: center; padding: 30px 10px; font-family: "Fraunces", serif; font-style: italic; }

.radar-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.radar .ring { fill: none; stroke: var(--line); }
.radar .spoke { stroke: var(--line); }
.radar .shape { fill: color-mix(in srgb, var(--accent) 18%, transparent); stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.radar .pt { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.radar .lbl { fill: var(--ink-2); font: 12px "IBM Plex Sans", sans-serif; }
.radar .val { fill: var(--muted); font: 10.5px "IBM Plex Mono", monospace; }
.radar .hit { fill: transparent; cursor: pointer; }

.capture .seg { margin-bottom: 12px; }
.capture form { display: grid; gap: 8px; }
.capture .row input { flex: 1; }

.snap-list { list-style: none; margin: 0; padding: 0; }
.snap-list li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; align-items: center; }
.snap-list li:last-child { border-bottom: 0; }
.snap-list .t { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--muted); width: 46px; flex: none; }
.check { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--ink-2); background: transparent; cursor: pointer; flex: none; padding: 0; display: grid; place-items: center; }
.check.on { background: var(--accent); border-color: var(--accent); }
.check.on::after { content: ""; width: 7px; height: 4px; border: 2px solid var(--accent-ink); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.done { text-decoration: line-through; color: var(--muted); }
.glasses { display: flex; gap: 6px; flex-wrap: wrap; }
.glass { width: 22px; height: 30px; border: 1.5px solid var(--accent-2); border-top: 0; border-radius: 0 0 6px 6px; cursor: pointer; background: transparent; padding: 0; position: relative; overflow: hidden; }
.glass.on { background: linear-gradient(to top, color-mix(in srgb, var(--c3) 55%, transparent) 75%, transparent 75%); border-color: var(--c3); }
.meal { display: grid; grid-template-columns: 74px 1fr; gap: 8px; font-size: 14px; padding: 5px 0; }
.meal input { padding: 4px 8px; border-color: transparent; background: transparent; }
.meal input:hover, .meal input:focus { border-color: var(--line); background: var(--bg); }

/* hub overview */
.hub-hero { padding: 30px; border-radius: 20px; background: var(--accent-soft); margin-bottom: 22px; }
.hub-hero .tag { font-family: "Fraunces", serif; font-style: italic; color: var(--ink-2); font-size: 18px; }
.page-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.page-card { text-decoration: none; display: block; transition: transform .15s, border-color .15s; }
.page-card:hover { transform: translateY(-2px); border-color: var(--accent-2); }
.page-card h3 { margin: 8px 0 6px; }
.page-card p { margin: 0; font-size: 13.5px; color: var(--ink-2); }

.soon-box { text-align: center; padding: 50px 20px; }
.soon-box h2 { font-style: italic; margin-bottom: 8px; }

/* debt */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.versus .card.win { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.order { margin: 10px 0 0; padding-left: 18px; font-size: 13.5px; color: var(--ink-2); }

/* impulse */
.wish { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.wish:last-child { border-bottom: 0; }
.wish .when { font-size: 12.5px; color: var(--ink-2); }

/* ---------- vision board ---------- */
.vb-title { outline: none; border-radius: 6px; }
.vb-title:hover, .vb-title:focus { background: var(--surface-2); }
.vb-tabs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.vb-tabs .spacer { flex: 1; }
.vb-tab { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 14px; font: 15px "Fraunces", serif; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.vb-tab .mono { font-size: 11px; color: var(--muted); }
.vb-tab:hover { border-color: var(--ink-2); color: var(--ink); }
.vb-tab.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.vb-tab.on .mono { color: color-mix(in srgb, var(--accent-ink) 70%, transparent); }
.vb-tab.add { border-style: dashed; font: 13.5px "IBM Plex Sans", sans-serif; }
.vb-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.vb-bar .spacer { flex: 1; }
.vb-ctx.off { visibility: hidden; }
.hide { display: none !important; }
.vb-wrap { position: relative; overflow: hidden; border-radius: 18px; border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgb(255 255 255 / .4); }
.vb { position: absolute; top: 0; left: 0; transform-origin: 0 0; background: #F4EDE2; overflow: hidden; }
.vb[data-bg="light"] { background:
  repeating-linear-gradient(0deg, rgb(120 100 80 / .035) 0 1px, transparent 1px 3px),
  repeating-linear-gradient(90deg, rgb(120 100 80 / .03) 0 1px, transparent 1px 4px), #F5EEE4; }
.vb[data-bg="dark"] { background:
  repeating-linear-gradient(0deg, rgb(255 255 255 / .025) 0 1px, transparent 1px 3px),
  repeating-linear-gradient(90deg, rgb(255 255 255 / .02) 0 1px, transparent 1px 4px), #231C24; }
.vb[data-bg="dark"] .vb-word-t { text-shadow: none; }
.vb[data-bg="dark"] .vb-word-t[style*="var(--ink)"] { color: #F6EEE6 !important; }
.vb[data-bg="dark"] .vb-empty h2 { color: #F6EEE6; } .vb[data-bg="dark"] .vb-empty p { color: rgb(246 238 230 / .7); }
.vb-grow { position: absolute; right: 0; bottom: 0; width: calc(34px * var(--inv, 1)); height: calc(34px * var(--inv, 1)); cursor: nwse-resize; z-index: 9999; background: linear-gradient(135deg, transparent 50%, color-mix(in srgb, var(--accent) 70%, transparent) 50%); border-bottom-right-radius: 4px; }
.vb-grow[data-size]::after { content: attr(data-size); position: absolute; right: 110%; bottom: 0; white-space: nowrap; background: var(--ink); color: var(--surface); font: calc(12px * var(--inv, 1)) "IBM Plex Mono", monospace; padding: 2px 6px; border-radius: 4px; }
.vb-seg { margin-left: 6px; }
.vb-empty { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 40px; }
.vb-empty h2 { font-size: 34px; font-style: italic; margin-bottom: 10px; }
.vb-empty p { font-size: 18px; }

.vb-item { position: absolute; transform-origin: 50% 50%; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none; }
.vb-item.dragging { cursor: grabbing; }
.vb-item.dragging:not(.vb-word) { filter: drop-shadow(0 18px 22px rgb(40 20 30 / .22)); }
.vb-item.sel { outline: 1.5px dashed var(--accent); outline-offset: 6px; }
.vb-h { position: absolute; display: none; z-index: 2; }
.vb-item.sel .vb-h { display: block; }
.presenting .vb-item { cursor: default; }
.presenting .vb-item.sel { outline: none; }
.presenting .vb-h { display: none !important; }
.vb { --inv: 1; }
.vb-item.sel { outline-width: calc(1.5px * var(--inv)); outline-offset: calc(6px * var(--inv)); }
.vb-rs { right: calc(-14px * var(--inv)); bottom: calc(-14px * var(--inv)); width: calc(18px * var(--inv)); height: calc(18px * var(--inv)); border-radius: calc(4px * var(--inv)); border-width: calc(1.5px * var(--inv)) !important; background: var(--surface); border: 1.5px solid var(--accent); cursor: nwse-resize; }
.vb-rot { left: 50%; top: calc(-42px * var(--inv)); width: calc(18px * var(--inv)); height: calc(18px * var(--inv)); margin-left: calc(-9px * var(--inv)); border-radius: 50%; background: var(--accent); border: calc(2px * var(--inv)) solid var(--surface); cursor: grab; box-shadow: 0 1px 3px rgb(0 0 0 / .2); }
.vb-rot::after { content: ""; position: absolute; left: 50%; top: calc(16px * var(--inv)); width: calc(1.5px * var(--inv)); height: calc(18px * var(--inv)); background: var(--accent); transform: translateX(-50%); }

.vb-photo { background: #FFFDF8; padding: 12px 12px 0; box-shadow: 0 1px 1px rgb(0 0 0 / .06), 0 10px 22px -10px rgb(40 25 20 / .4); display: flex; flex-direction: column; }
.vb-img { flex: 1; min-height: 0; overflow: hidden; background: #e9e2d8; }
.vb-img img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.vb-cap { height: 46px; flex: none; display: grid; place-items: center; font: italic 19px/1.1 "Fraunces", serif; color: #3a2e2a; padding: 0 6px; text-align: center; overflow: hidden; }

.vb-note { padding: 26px 22px 20px; box-shadow: 0 1px 1px rgb(0 0 0 / .05), 0 12px 20px -12px rgb(40 25 20 / .45); color: #2B2320; display: flex; flex-direction: column; }
.vb-note.n-paper { background: #FBF5E6; }
.vb-note.n-blush { background: #F4DDD8; }
.vb-note.n-sky { background: #DCE7EF; }
.vb-note.n-butter { background: #F7E9B5; }
.vb-note.n-sage { background: #DDE5D2; }
.vb-note-t { font-family: "Fraunces", serif; font-style: italic; line-height: 1.22; white-space: pre-wrap; overflow-wrap: anywhere; flex: 1; min-height: 0; overflow: hidden; }

.vb-word { display: grid; place-items: center; }
.vb-word-t { font-family: "Fraunces", serif; font-style: italic; font-weight: 400; line-height: 1; letter-spacing: -0.02em; white-space: nowrap; text-shadow: 0 1px 0 rgb(255 255 255 / .35); }

.vb-money { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; box-shadow: 0 12px 24px -14px rgb(40 25 20 / .4); display: flex; flex-direction: column; gap: 6px; }
.vb-m-title { font: 22px/1.15 "Fraunces", serif; }
.vb-m-amt { font-size: 15px; margin-top: auto; }
.vb-m-amt .num { font-family: "Fraunces", serif; font-size: 22px; }
.vb-money .bar { height: 7px; }
.vb-m-foot { display: flex; justify-content: space-between; gap: 8px; font: 11px "IBM Plex Mono", monospace; color: var(--muted); white-space: nowrap; overflow: hidden; }

.vb-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.vb-pick button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; aspect-ratio: 4 / 3; background: var(--surface-2); }
.vb-pick button:hover { border-color: var(--accent); }
.vb-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vb-tip { font-size: 12.5px; margin: 10px 2px 0; }

/* ---------- habits & routines ---------- */
.h-times { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 16px; align-items: start; }
.h-col { position: relative; overflow: hidden; }
.h-col::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; }
.h-morning::before { background: var(--c2); } .h-afternoon::before { background: var(--c3); }
.h-evening::before { background: var(--c1); } .h-anytime::before { background: var(--c5); }
.h-col-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.h-col-h h2 { font-size: 24px; }
.h-routine { background: var(--bg); border-radius: 12px; padding: 14px; }
.h-routine + .h-routine { margin-top: 10px; }
.h-routine .row { gap: 10px; }
.h-r-art { margin: -8px 0 -8px -6px; }
.h-routine.is-morning { background: linear-gradient(120deg, #FBE6D2 0%, var(--bg) 60%); }
.h-routine.is-night { background: linear-gradient(120deg, color-mix(in oklab, #8E8FC8 22%, var(--bg)) 0%, var(--bg) 65%); }
.h-r-name { font: 17px "Fraunces", serif; }
.h-streak { margin-left: auto; font: 11.5px "IBM Plex Mono", monospace; color: var(--muted); }
.h-grid { border-collapse: separate; border-spacing: 3px; font-size: 12px; min-width: 100%; }
.h-grid th { font: 10.5px "IBM Plex Mono", monospace; color: var(--muted); font-weight: 400; text-align: center; padding: 0 0 4px; line-height: 1.2; }
.h-grid th span { display: block; opacity: .7; }
.h-grid th.today { color: var(--accent); font-weight: 500; }
.h-grid th.r, .h-grid td.r { text-align: right; padding-left: 10px; white-space: nowrap; color: var(--ink-2); }
.h-grid td { text-align: center; padding: 0; }
.h-name { text-align: left !important; white-space: nowrap; padding-right: 12px !important; font-size: 13.5px; display: flex; align-items: center; gap: 8px; height: 22px; }
.h-name i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.h-name span { cursor: pointer; overflow: hidden; text-overflow: ellipsis; }
.h-grid td.h-name { position: sticky; left: 0; background: var(--surface); z-index: 1; }
@media (max-width: 640px) { .h-name { max-width: 128px; font-size: 12.5px; } .h-grid th:first-child { position: sticky; left: 0; background: var(--surface); } }
.h-cell { width: 20px; height: 20px; border-radius: 5px; border: 1.5px solid color-mix(in srgb, var(--hc) 45%, var(--line)); background: transparent; padding: 0; cursor: pointer; display: block; margin: auto; }
.h-cell:hover { border-color: var(--hc); }
.h-cell.on { background: var(--hc); border-color: var(--hc); }
.h-cell.fut { opacity: .3; cursor: default; }
.h-off { display: block; width: 4px; height: 4px; border-radius: 50%; background: var(--line); margin: auto; }
.h-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.h-chip { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 5px 11px; font-size: 13px; cursor: pointer; text-align: left; }
.h-chip .mono { font-size: 11px; color: var(--muted); }
.h-chip.on { background: var(--accent-soft); border-color: transparent; color: var(--ink-2); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent); }

/* ---------- goals ---------- */
.g-vision { background: var(--paper); color: #2B2320; border-radius: 20px; padding: 30px 34px; margin-bottom: 30px;
  box-shadow: 0 14px 28px -18px rgb(40 20 30 / .35); }
.g-vision .label { color: #8a7a6a; }
.g-vision-t { font: italic 25px/1.36 "Fraunces", serif; margin: 12px 0 10px; outline: none; max-width: 62ch; border-radius: 8px; min-height: 1.4em; }
.g-vision-t:focus { background: rgb(255 255 255 / .45); }
.g-vision-t:empty::before { content: attr(data-placeholder); color: #a89a8b; }
.g-vision .muted { color: #8a7a6a; }
.g-sec { margin-bottom: 34px; }
.g-sec-h { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.g-sec-h .spacer { flex: 1; }
.g-sec-h h2 { font-size: 28px; margin-top: 4px; }
.g-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; align-items: start; }
.g-card { border-top: 4px solid var(--gc); }
.g-card.g-done { background: color-mix(in srgb, var(--gc) 7%, var(--surface)); }
.g-area { background: color-mix(in srgb, var(--gc) 14%, transparent); color: var(--ink-2); }
.g-title { font-size: 21px; line-height: 1.2; margin: 12px 0 6px; cursor: pointer; }
.g-title:hover { color: var(--accent); }
.g-why { margin: 0; font: italic 14.5px/1.4 "Fraunces", serif; color: var(--ink-2); }
.g-for { font-size: 12.5px; color: var(--muted); }
.g-for em { color: var(--ink-2); font-size: 13.5px; }
.g-card .bar > i { transition: width .3s; }
.g-steps { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px dashed var(--line); }
.g-steps li { display: flex; align-items: center; gap: 9px; padding: 6px 0; font-size: 13.5px; }
.g-steps .g-x { margin-left: auto; opacity: 0; }
.g-steps li:hover .g-x { opacity: 1; }
.g-steps .g-add input { border: 0; background: transparent; padding: 3px 0; font-size: 13px; }
.g-steps .g-add input:focus { box-shadow: none; }
.check.sm { width: 15px; height: 15px; }
.check.sm.on::after { width: 6px; height: 3px; }
.g-months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; }
.g-month { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 10px 4px 8px; cursor: pointer; display: grid; gap: 6px; justify-items: center; font-size: 13px; color: var(--ink-2); }
.g-month .mono { font-size: 10.5px; color: var(--muted); min-height: 13px; }
.g-month.now { border-color: var(--accent-2); }
.g-month.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.g-month.on .mono { color: color-mix(in srgb, var(--accent-ink) 70%, transparent); }
.g-dots { display: flex; gap: 3px; flex-wrap: wrap; justify-content: center; min-height: 6px; }
.g-dots i { width: 6px; height: 6px; border-radius: 50%; border: 1px solid currentColor; opacity: .7; }
.g-dots i.on { background: currentColor; }
.g-ms { padding: 12px 0; border-bottom: 1px solid var(--line); }
.g-ms:last-child { border-bottom: 0; }
.g-ms-t { font: 17px "Fraunces", serif; cursor: pointer; }
.g-ms .g-steps { border-top: 0; margin-top: 4px; }
@media (max-width: 640px) {
  .g-months { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .g-vision { padding: 22px; } .g-vision-t { font-size: 20px; }
}

/* ---------- resume ---------- */
.cv-paper { background: #FFFEFB; color: #221A1E; max-width: 860px; margin: 0 auto; padding: 60px 64px; border-radius: 4px;
  box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 24px 50px -28px rgb(40 20 30 / .35); font-size: 13.5px; line-height: 1.5; }
.cv-sec { position: relative; border-radius: 6px; transition: background .15s; }
.cv-sec:hover { background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
.cv-edit { position: absolute; top: 4px; right: 4px; display: none; border: 0; background: var(--accent); color: var(--accent-ink); font-size: 11.5px; padding: 3px 9px; border-radius: 999px; cursor: pointer; }
.cv-sec:hover .cv-edit { display: block; }
.cv-head { padding-bottom: 22px; margin-bottom: 18px; border-bottom: 1px solid #E6DDD6; }
.cv-name { font: 400 44px/1 "Fraunces", serif; letter-spacing: -0.02em; color: #221A1E; }
.cv-headline { font: italic 19px "Fraunces", serif; color: var(--accent); margin-top: 8px; }
[data-palette="night"] .cv-headline { color: #6E3A62; }
.cv-contact { margin-top: 12px; font: 11.5px "IBM Plex Mono", monospace; color: #6B5B63; display: flex; flex-wrap: wrap; gap: 4px 0; }
.cv-contact i { font-style: normal; margin: 0 8px; opacity: .5; }
.cv-summary { margin: 0 0 6px; font-size: 14.5px; color: #3A2E33; max-width: 66ch; }
.cv-cols { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 44px; margin-top: 10px; }
.cv-h { font: 500 10.5px "IBM Plex Mono", monospace; letter-spacing: .14em; text-transform: uppercase; color: #8A7880; margin: 24px 0 10px; }
.cv-item { padding: 6px 0 10px; }
.cv-row { display: flex; gap: 14px; align-items: baseline; }
.cv-row > div:first-child { flex: 1; }
.cv-role { font: 17px "Fraunces", serif; }
.cv-org { color: #6B5B63; }
.cv-when { font: 11px "IBM Plex Mono", monospace; color: #8A7880; white-space: nowrap; }
.cv-item ul { margin: 6px 0 0; padding-left: 16px; color: #3A2E33; }
.cv-item li { margin: 2px 0; }
.cv-note { margin: 4px 0 0; color: #6B5B63; font-style: italic; }
.cv-list { list-style: none; margin: 0; padding: 0; }
.cv-list li { padding: 3px 0; border-bottom: 1px solid #F0E9E3; }
@media (max-width: 760px) { .cv-paper { padding: 32px 24px; } .cv-cols { grid-template-columns: 1fr; gap: 0; } .cv-name { font-size: 34px; } .cv-edit { display: block; } }
@media print {
  @page { size: A4; margin: 14mm; }
  body.has-cv * { visibility: hidden; }
  body.has-cv .cv-paper, body.has-cv .cv-paper * { visibility: visible; }
  body.has-cv .cv-paper { position: absolute; inset: 0 auto auto 0; width: 100%; max-width: none; box-shadow: none; padding: 0; }
  body.has-cv .cv-edit, body.has-cv .cv-paper .no-print { display: none !important; }
  .cv-sec:hover { background: none; }
}

/* career milestones timeline */
.cm-line { position: relative; padding-left: 28px; max-width: 760px; }
.cm-line::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1.5px; background: var(--line); }
.cm-year h2 { font-size: 30px; margin: 6px 0 12px -28px; padding-left: 28px; background: var(--bg); position: relative; }
.cm-item { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 12px; cursor: pointer; }
.cm-item:hover { border-color: var(--kc); }
.cm-dot { position: absolute; left: -27px; top: 22px; width: 11px; height: 11px; border-radius: 50%; background: var(--kc); box-shadow: 0 0 0 3px var(--bg); }
.cm-item h3 { margin: 8px 0 2px; font-size: 19px; }
.cm-item p { margin: 4px 0 0; color: var(--ink-2); font: italic 14px "Fraunces", serif; }

/* meetings */
.mt-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.mt-list { padding: 12px; }
.mt-list ul { list-style: none; margin: 10px 0 0; padding: 0; max-height: 640px; overflow: auto; }
.mt-list li button { display: grid; gap: 2px; width: 100%; text-align: left; border: 0; background: transparent; padding: 10px; border-radius: 10px; cursor: pointer; }
.mt-list li button:hover { background: var(--surface-2); }
.mt-list li button.on { background: var(--accent-soft); }
.mt-t { font: 16px "Fraunces", serif; }
.mt-notes { min-height: 150px; font-size: 14.5px; line-height: 1.6; background: var(--bg); }
.mt-add { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.mt-add input[name=text] { flex: 1 1 100%; }
.mt-add input[type=date] { flex: 1; }
.mt-add input { padding: 6px 10px; font-size: 13px; }
.mt-st { border: 0; cursor: pointer; }
.mt-st.st-doing { background: color-mix(in srgb, var(--c3) 16%, transparent); color: var(--c3); }
.mt-st.st-review { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.mt-st.st-done { background: color-mix(in srgb, var(--good) 15%, transparent); color: var(--good); }
@media (max-width: 900px) { .mt-layout { grid-template-columns: 1fr; } .mt-list ul { max-height: 260px; } }

/* ---------- fitness ---------- */
.fx-planname { cursor: pointer; }
.fx-planname:hover { color: var(--accent); }
.fx-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.fx-day { background: var(--bg); border: 1px solid transparent; border-radius: 14px; padding: 14px; display: flex; flex-direction: column; }
.fx-day.next { border-color: var(--accent-2); background: color-mix(in srgb, var(--accent-soft) 50%, var(--bg)); }
.fx-day h3 { font-size: 19px; margin: 6px 0 2px; }
.fx-day .btn { align-self: flex-start; margin-top: auto !important; }
.fx-ex { list-style: none; margin: 0 0 4px; padding: 0; font-size: 13px; }
.fx-ex li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.fx-ex .mono { font-size: 11px; color: var(--muted); white-space: nowrap; }
.bodymap { width: 100%; height: auto; display: block; }
.bodymap .bm-n { fill: var(--surface-2); }
.bodymap .bm-m { stroke: var(--surface); stroke-width: 2; transition: filter .15s; cursor: default; }
.bodymap .bm-m.hl { stroke: var(--ink); stroke-width: 1.5; }
.fx-scale { display: flex; align-items: center; gap: 3px; font-size: 11px; color: var(--muted); margin: 10px 0 6px; justify-content: center; }
.fx-scale i { width: 18px; height: 8px; border-radius: 2px; }
.fx-scale span { margin: 0 6px; }
.fx-mlist { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; font-size: 13px; }
.fx-mlist li { display: flex; justify-content: space-between; padding: 4px 6px; border-radius: 6px; }
.fx-mlist li.hl { background: var(--accent-soft); }
.fx-mlist .mono { font-size: 11px; color: var(--muted); }
.fx-log { list-style: none; margin: 0; padding: 0; }
.fx-log li { display: flex; gap: 14px; align-items: center; padding: 10px 6px; border-bottom: 1px solid var(--line); cursor: pointer; border-radius: 8px; }
.fx-log li:hover { background: var(--surface-2); }
.fx-date { width: 40px; text-align: center; flex: none; line-height: 1.1; }
.fx-date b { display: block; font: 22px "Fraunces", serif; }
.fx-date span { font: 10.5px "IBM Plex Mono", monospace; text-transform: uppercase; color: var(--muted); }
.fx-w-t { font: 16px "Fraunces", serif; }
.fx-meta { display: grid; justify-items: end; gap: 4px; flex: none; }
.fx-meta .mono { font-size: 11.5px; color: var(--muted); }
.fx-eff { display: flex; gap: 2px; }
.fx-eff i { width: 6px; height: 10px; border-radius: 2px; background: var(--surface-2); }
.fx-eff i.on { background: var(--accent); }
.fx-weeks { position: relative; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; align-items: end; }
.fx-wk { display: grid; gap: 6px; }
.fx-bar { height: 120px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; }
.fx-bar .mono { font-size: 10.5px; color: var(--muted); }
.fx-bar i { width: 100%; max-width: 26px; background: var(--accent-2); border-radius: 4px 4px 0 0; min-height: 2px; }
.fx-bar i.hit { background: var(--accent); }
.fx-wl { font: 10px "IBM Plex Mono", monospace; color: var(--muted); text-align: center; height: 22px; line-height: 1.1; }
.fx-goal { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--ink-2); pointer-events: none; }
.fx-goal span { position: absolute; right: 0; top: -15px; font: 10px "IBM Plex Mono", monospace; color: var(--ink-2); background: var(--surface); padding-left: 4px; }

/* ---------- body progress ---------- */
.bp-cmp { display: grid; grid-template-columns: 150px repeat(3, minmax(0, 1fr)); gap: 10px; align-items: center; }
.bp-pose { text-align: center; }
.bp-row-h { display: grid; gap: 6px; align-self: center; }
.bp-row-h select { width: 100%; padding: 7px 8px; font-size: 13px; }
.bp-slot { position: relative; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.bp-slot img { width: 100%; height: 100%; object-fit: cover; display: block; filter: blur(22px) saturate(.6); transform: scale(1.15); transition: filter .35s, transform .35s; user-select: none; }
.bp-slot.shown img { filter: none; transform: none; }
.bp-eye { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border: 0; border-radius: 999px; padding: 8px 14px; background: rgb(255 255 255 / .82); color: #2B1B28; font-size: 13px; cursor: pointer; backdrop-filter: blur(6px); white-space: nowrap; }
.bp-slot.shown .bp-eye { top: auto; bottom: 10px; transform: translateX(-50%); padding: 5px 11px; font-size: 12px; opacity: .85; }
.bp-rm { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgb(0 0 0 / .45); color: #fff; cursor: pointer; display: none; }
.bp-slot:hover .bp-rm { display: block; }
.bp-slot.empty { border: 1.5px dashed var(--line); background: transparent; display: grid; place-items: center; }
.bp-slot.add { cursor: pointer; color: var(--muted); font-size: 13px; }
.bp-slot.add:hover { border-color: var(--accent); color: var(--accent); }
.bp-deltas { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.bp-deltas > div { display: grid; gap: 2px; font-size: 12.5px; }
.bp-deltas b { font: 400 20px "Fraunces", serif; }
.bp-priv { background: var(--accent-soft); border-color: transparent; }
.bp-priv p { margin: 8px 0 0; font-size: 13.5px; color: var(--ink-2); }
.bp-list { list-style: none; margin: 0; padding: 0; }
.bp-list li { display: flex; align-items: center; gap: 10px; padding: 10px 6px; border-bottom: 1px solid var(--line); cursor: pointer; border-radius: 8px; }
.bp-list li:hover { background: var(--surface-2); }
.bp-list li > div { flex: 1; display: grid; font-size: 13px; }
.bp-list b { font: 400 16px "Fraunces", serif; }
@media (max-width: 640px) { .bp-eye { font-size: 11px; padding: 6px 9px; } .bp-cmp { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } .bp-corner { display: none; } .bp-row-h { grid-column: 1 / -1; grid-template-columns: auto 1fr; align-items: center; margin-top: 6px; } }

/* ---------- cycle ---------- */
.cy-hero { display: grid; justify-items: center; align-content: center; }
.cy-wheel { width: 100%; max-width: 280px; height: auto; }
.cy-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; font-size: 12px; color: var(--ink-2); margin-top: 6px; }
.cy-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.cy-now h2 { font-size: 30px; }
.cy-now .kpi .v { font-size: 24px; }
.cy-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cy-dow { text-align: center; font: 11px "IBM Plex Mono", monospace; color: var(--muted); padding-bottom: 4px; }
.cy-d { position: relative; aspect-ratio: 1 / 1; justify-self: center; max-width: 48px; border: 1.5px solid transparent; border-radius: 50%; background: var(--bg); cursor: pointer; display: grid; place-items: center; font-size: 14px; color: var(--ink); padding: 0; width: 100%; }
.cy-d:hover { border-color: var(--ink-2); }
.cy-d.future { color: var(--muted); cursor: default; }
.cy-d.period { background: var(--c4); color: #fff; }
.cy-d.pred { background: transparent; border: 1.5px dashed var(--c4); color: var(--c4); }
.cy-d.fert:not(.period) { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c2) 70%, transparent); background: color-mix(in srgb, var(--c2) 12%, var(--bg)); }
.cy-d.today { outline: 2px solid var(--ink); outline-offset: 2px; }
.cy-dot { position: absolute; bottom: 14%; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .7; }
.cy-key { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font-size: 12px; color: var(--ink-2); }
.cy-key i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -2px; }
.cy-key .k-period { background: var(--c4); } .cy-key .k-pred { border: 1.5px dashed var(--c4); }
.cy-key .k-fert { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c2) 70%, transparent); background: color-mix(in srgb, var(--c2) 12%, var(--bg)); }
.cy-key .k-dot { width: 5px; height: 5px; background: var(--ink-2); vertical-align: 1px; }
.cy-bars { display: flex; align-items: flex-end; gap: 8px; height: 110px; }
.cy-bars > div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.cy-bars i { width: 100%; max-width: 30px; background: var(--c6); border-radius: 4px 4px 0 0; }
.cy-bars .mono { font-size: 11px; color: var(--muted); }
.cy-sym { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; }
.cy-sym li { display: grid; grid-template-columns: 110px 1fr 24px; gap: 10px; align-items: center; }
.cy-sym .mono { font-size: 11px; color: var(--muted); text-align: right; }

/* ---------- meal planner ---------- */
.mp-wrap { overflow-x: auto; }
.mp-grid { display: grid; grid-template-columns: 88px repeat(7, minmax(112px, 1fr)); gap: 6px; min-width: 900px; }
.mp-dh { text-align: center; padding-bottom: 4px; display: grid; }
.mp-dh b { font: 400 22px "Fraunces", serif; }
.mp-dh.today b { color: var(--accent); }
.mp-sh { display: flex; align-items: center; position: sticky; left: 0; background: var(--surface); z-index: 1; }
@media (max-width: 640px) { .mp-grid { grid-template-columns: 64px repeat(7, 118px); min-width: 0; } .mp-sh { font-size: 9.5px; } }
.mp-cell { min-height: 74px; border: 1px dashed var(--line); background: transparent; border-radius: 12px; padding: 9px 10px; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink); }
.mp-cell:hover { border-color: var(--accent); }
.mp-cell.filled { border-style: solid; background: var(--bg); }
.mp-cell.recipe { background: color-mix(in srgb, var(--accent-soft) 55%, var(--bg)); border-color: transparent; }
.mp-cell.today { box-shadow: inset 0 0 0 1.5px var(--accent-2); }
.mp-cell .mono { font-size: 10.5px; color: var(--muted); margin-top: auto; }
.mp-cell { position: relative; overflow: hidden; }
.mp-cell.has-ph { color: #fff; border-color: transparent; justify-content: flex-end; }
.mp-cell-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.mp-cell.has-ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(20 12 18 / .25), rgb(20 12 18 / .7)); z-index: 0; }
.mp-cell.has-ph .mp-t { text-shadow: 0 1px 3px rgb(0 0 0 / .4); font-weight: 500; }
.mp-cell.has-ph > span { position: relative; z-index: 1; } .mp-cell.has-ph .mono { color: rgb(255 255 255 / .85); margin-top: 0; }
.mp-t { line-height: 1.3; }
.mp-plus { margin: auto; color: var(--muted); }
.mp-recipes { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.mp-rc { border: 1px solid var(--line); background: var(--bg); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.mp-rc:hover { border-color: var(--accent); }
.mp-rc-ph { position: relative; aspect-ratio: 4 / 3; display: block; cursor: pointer; overflow: hidden; background: var(--surface-2); }
.mp-rc-ph .rimg { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.mp-rc:hover .mp-rc-ph .rimg { transform: scale(1.04); }
.mp-rc-chg { position: absolute; right: 8px; bottom: 8px; font-size: 11.5px; background: rgb(20 14 18 / .55); color: #fff; padding: 4px 9px; border-radius: 999px; opacity: 0; transition: opacity .2s; }
.mp-rc-ph:hover .mp-rc-chg { opacity: 1; }
.mp-rc-ph.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); font-size: 12.5px; background: color-mix(in srgb, var(--accent-soft) 45%, var(--bg)); border-bottom: 1px dashed var(--line); }
.mp-rc-b { text-align: left; border: 0; background: none; color: inherit; padding: 12px 14px 14px; cursor: pointer; display: grid; gap: 3px; }
.mp-rn { font: 17px "Fraunces", serif; }
.mp-pick { list-style: none; margin: 12px 0 0; padding: 0; max-height: 320px; overflow: auto; }
.mp-pk-th { width: 38px; height: 38px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: var(--surface-2); flex-shrink: 0; }
.mp-pk-th .rimg { width: 100%; height: 100%; object-fit: cover; }
.mp-pick button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 0; background: transparent; padding: 9px 10px; border-radius: 8px; cursor: pointer; text-align: left; font-size: 14px; }
.mp-pick button:hover { background: var(--surface-2); }

/* grocery */
.gr-top { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.gr-add { display: flex; gap: 6px; }
.gr-add input { width: 240px; }
.gr-aisles { columns: 3 300px; column-gap: 16px; }
.gr-aisle { break-inside: avoid; margin-bottom: 16px; }
.gr-aisle ul { list-style: none; margin: 0; padding: 0; }
.gr-aisle li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.gr-aisle li:last-child { border-bottom: 0; }
.gr-n { font-size: 14px; }
.gr-n b { font-weight: 500; }
.gr-from { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gr-aisle li.got .gr-n { text-decoration: line-through; color: var(--muted); }
@media (max-width: 640px) { .gr-add input { width: 100%; } .gr-add { flex: 1 1 100%; } }

/* ---------- bookshelf ---------- */
.bk-now { display: grid; gap: 18px; }
.bk-cur { display: flex; gap: 18px; align-items: flex-start; }
.bk-cover { width: 104px; aspect-ratio: 2 / 3; flex: none; border: 0; border-radius: 3px 8px 8px 3px; background: var(--sp); color: #FBF6EE; padding: 14px 10px; text-align: left; display: flex; flex-direction: column; cursor: pointer;
  box-shadow: inset 6px 0 0 rgb(0 0 0 / .18), 0 10px 20px -10px rgb(30 15 20 / .5); }
.bk-ct { font: 15px/1.15 "Fraunces", serif; }
.bk-ca { margin-top: auto; font: 9.5px "IBM Plex Mono", monospace; opacity: .8; text-transform: uppercase; letter-spacing: .06em; }
.bk-t { font: 21px/1.2 "Fraunces", serif; }
.bk-q { margin: 12px 0 0; padding-left: 12px; border-left: 2px solid var(--accent-2); font: italic 14px/1.45 "Fraunces", serif; color: var(--ink-2); }
.bk-next { list-style: none; margin: 0; padding: 0; }
.bk-next li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.bk-next li:last-child { border-bottom: 0; }
.bk-next li > i { width: 6px; height: 34px; border-radius: 2px; flex: none; }
.bk-next [data-bkedit], .bk-next [data-lnc] { cursor: pointer; }
.bk-nt { font: 15.5px "Fraunces", serif; }
.bk-stars i { font-style: normal; color: var(--line); font-size: 13px; }
.bk-stars i.on { color: var(--c2); }
.bk-shelf { display: flex; align-items: flex-end; gap: 3px; min-height: 220px; padding: 10px 12px 0; overflow-x: auto; }
.bk-spine { position: relative; flex: none; width: var(--w); height: var(--h); border: 0; border-radius: 3px 3px 1px 1px; background: var(--sp); color: #FBF6EE; cursor: pointer; padding: 10px 0; display: flex; justify-content: center;
  box-shadow: inset 3px 0 0 rgb(255 255 255 / .12), inset -3px 0 0 rgb(0 0 0 / .15); transition: transform .15s; }
.bk-spine:hover { transform: translateY(-8px); }
.bk-spine span { writing-mode: vertical-rl; transform: rotate(180deg); font: 12.5px "Fraunces", serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-height: calc(var(--h) - 30px); }
.bk-fav { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 10px; color: #F3D78A; }
.bk-plank { height: 12px; border-radius: 2px; background: linear-gradient(#B48A62, #8B6542); box-shadow: 0 6px 12px -6px rgb(40 20 10 / .5); margin: 0 4px; }
[data-palette="night"] .bk-plank { background: linear-gradient(#5A4334, #3A2A20); }

/* ---------- travel ---------- */
.wm-card { padding-bottom: 14px; }
.wm-wrap { position: relative; }
.wm { width: 100%; height: auto; display: block; }
.wm-sea { fill: color-mix(in srgb, var(--c3) 7%, var(--surface)); stroke: var(--line); }
.wm-c { fill: var(--surface-2); stroke: var(--surface); stroke-width: .6; cursor: pointer; transition: fill .15s; }
.wm-c:hover { fill: color-mix(in srgb, var(--accent) 30%, var(--surface-2)); }
.wm-c.been { fill: var(--accent); }
.wm-c.plan { fill: var(--c2); }
.wm-c.wish { fill: color-mix(in srgb, var(--accent-2) 55%, var(--surface-2)); }
.tv-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; align-items: start; }
.tv-fund { margin-top: 14px; padding: 12px 14px; background: var(--bg); border-radius: 12px; }
.tv-day { margin-top: 10px; padding: 10px 12px; background: var(--bg); border-radius: 12px; }
.tv-dh { display: flex; gap: 10px; align-items: baseline; font-size: 13px; }
.tv-dh b { font: 400 16px "Fraunces", serif; }
.tv-add { display: flex; gap: 6px; margin-top: 6px; }
.tv-add input { padding: 5px 9px; font-size: 13px; background: var(--surface); }
.tv-add input[name=time] { width: 64px; flex: none; }
@media (hover: hover) { .tv-day .tv-add { opacity: 0; transition: opacity .15s; } .tv-day:hover .tv-add, .tv-day .tv-add:focus-within, .tv-day:has(.snap-list:empty) .tv-add { opacity: 1; } }
.tv-pc { margin-top: 10px; }
.tv-pch { font: 10.5px "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 2px; }
@media (max-width: 900px) { .tv-layout { grid-template-columns: 1fr; } }

/* ---------- courses & skills ---------- */
.ln-courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.ln-c { position: relative; background: var(--bg); border-radius: 14px; padding: 14px 16px; }
.ln-c-art { float: right; margin: -4px -6px 0 8px; }
.ln-c h3 { font-size: 19px; margin: 6px 0 2px; }
.ln-skills { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px 28px; }
.ln-s { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.ln-s-art { margin: -6px 0; }
.ln-sn { font: 16px "Fraunces", serif; cursor: pointer; }
.ln-sn:hover { color: var(--accent); }
.ln-dots { display: flex; gap: 5px; }
.ln-dots button { width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--sc) 40%, var(--line)); background: transparent; padding: 0; cursor: pointer; }
.ln-dots button.on { background: var(--sc); border-color: var(--sc); }
.ln-dots button.tg { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--sc); }
.ln-done { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.ln-cert .illo { color: #2B2320; margin: -4px 0 2px -4px; }
.ln-cert { text-align: left; border: 1px solid var(--line); background: var(--paper); color: #2B2320; border-radius: 12px; padding: 14px; display: grid; gap: 4px; cursor: pointer; }
.ln-cert .label { color: #8a7a6a; }
.ln-cert .muted { color: #8a7a6a; }
.ln-ct { font: 17px/1.2 "Fraunces", serif; }

/* ---------- home & living ---------- */
.hm-tab { text-align: left; cursor: pointer; font: inherit; color: inherit; }
.hm-tab:hover { border-color: var(--accent-2); }
.hm-tab.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.hm-n { cursor: pointer; }
.hm-rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px 22px; }
.hm-ch { padding: 8px 0; border-bottom: 1px dashed var(--line); cursor: pointer; font-size: 14px; }
.hm-ch:hover { color: var(--accent); }
.hm-fresh { height: 4px; border-radius: 2px; background: var(--surface-2); margin: 6px 0 4px; overflow: hidden; }
.hm-fresh i { display: block; height: 100%; border-radius: 2px; }
.hm-vibe { margin: 0 0 14px; font: italic 18px/1.4 "Fraunces", serif; color: var(--ink-2); max-width: 62ch; }
.hm-pal { display: flex; gap: 0; margin-bottom: 16px; border-radius: 12px; overflow: hidden; height: 56px; }
.hm-pal button { flex: 1; border: 0; cursor: pointer; position: relative; }
.hm-pal span { position: absolute; left: 8px; bottom: 6px; font: 10px "IBM Plex Mono", monospace; color: #fff; mix-blend-mode: difference; opacity: 0; transition: opacity .15s; }
.hm-pal button:hover span { opacity: 1; }
.hm-masonry { columns: 4 200px; column-gap: 12px; }
.hm-pin { break-inside: avoid; margin: 0 0 12px; position: relative; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.hm-pin img { width: 100%; display: block; }
.hm-pin figcaption { padding: 8px 10px; font: italic 13.5px "Fraunces", serif; color: var(--ink-2); background: var(--surface); }
.hm-pin.note { background: var(--paper); color: #2B2320; padding: 16px; }
.hm-pin.note p { margin: 0; font: italic 16px/1.4 "Fraunces", serif; }
.hm-pin:hover .bp-rm { display: block; }
.hm-car h3 { font-size: 24px; }
.hm-odo { display: flex; align-items: baseline; gap: 12px; margin: 16px 0 10px; }
.hm-odo b { font: 400 26px "Fraunces", serif; }

/* ---------- people ---------- */
.pp-av { display: inline-grid; place-items: center; flex: none; border-radius: 50%; background: color-mix(in srgb, var(--pc) 22%, var(--surface)); color: var(--pc); font-family: "Fraunces", serif; }
.pp-n { font: 16px "Fraunces", serif; }
.pp-bdays { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.pp-bd { display: flex; gap: 14px; align-items: center; text-align: left; border: 1px solid var(--line); background: var(--bg); border-radius: 14px; padding: 12px 14px; cursor: pointer; }
.pp-bd:hover { border-color: var(--accent-2); }
.pp-bd.soon { border-color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 50%, var(--bg)); }
.pp-bd-date { display: grid; justify-items: center; width: 44px; flex: none; font: 10.5px "IBM Plex Mono", monospace; text-transform: uppercase; color: var(--muted); }
.pp-bd-date b { font: 400 26px/1 "Fraunces", serif; color: var(--ink); }
.pp-nudges { list-style: none; margin: 0; padding: 0; }
.pp-nudges li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.pp-nudges li:last-child { border-bottom: 0; }
.pp-gift { cursor: pointer; overflow: hidden; text-overflow: ellipsis; }
.pp-gift:hover { color: var(--accent); }
.pp-link { font-size: 11.5px; color: var(--ink-2); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; white-space: nowrap; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.pp-link:hover { border-color: var(--accent); color: var(--accent); }
.pp-gform { flex-wrap: wrap; }
.pp-gform input[name=text] { flex: 1 1 100%; }
.pp-gform .pp-glink { flex: 1 1 160px; }
.pp-log { cursor: pointer; }
.pp-log:hover { color: var(--accent); }
.pp-row { display: flex !important; align-items: center; gap: 10px; grid-template-columns: none !important; }

/* ---------- yearly refresh ---------- */
.yr-hero { background: var(--accent); color: var(--accent-ink); border-radius: 22px; padding: 36px 38px; display: grid; gap: 14px; }
.yr-hero .label { color: color-mix(in srgb, var(--accent-ink) 70%, transparent); }
.yr-title { font-size: clamp(40px, 6vw, 72px); line-height: 1; }
.yr-title em { color: color-mix(in srgb, var(--accent-ink) 75%, var(--accent-2)); }
.yr-word { display: grid; gap: 6px; max-width: 360px; }
.yr-word span { font: 11px "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.yr-word input { font: italic 26px "Fraunces", serif; background: transparent; border: 0; border-bottom: 1.5px solid currentColor; border-radius: 0; padding: 4px 0; color: inherit; }
.yr-word input:focus { box-shadow: none; }
.yr-word input::placeholder { color: inherit; opacity: .45; }
.yr-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.yr-tile { background: var(--surface); padding: 20px; min-height: 130px; display: flex; flex-direction: column; gap: 6px; }
.yr-v { font: 400 34px/1.05 "Fraunces", serif; }
.yr-v small { font-size: 18px; color: var(--muted); }
.yr-s { font-size: 12.5px; color: var(--ink-2); margin-top: auto; }
.yr-prompts { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.yr-q { display: grid; gap: 6px; }
.yr-qt { font: 19px "Fraunces", serif; }
.yr-q textarea { background: var(--bg); font: italic 15px/1.5 "Fraunces", serif; min-height: 110px; }
.yr-ahead .yr-word span { color: var(--muted); }
.yr-int { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.yr-int label { display: grid; gap: 6px; }
.yr-archive { background: var(--accent-soft); border-color: transparent; }
.yr-past { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.yr-pc { text-align: left; border: 1px solid var(--line); background: var(--paper); color: #2B2320; border-radius: 16px; padding: 18px; display: grid; gap: 4px; cursor: pointer; }
.yr-pc .label, .yr-pc .muted { color: #8a7a6a; }
.yr-pw { font: italic 30px "Fraunces", serif; }
@media (max-width: 900px) { .yr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .yr-int { grid-template-columns: 1fr; } .yr-hero { padding: 26px; } }

/* ---------- symptoms & meds ---------- */
.md-slot { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.md-slot:last-of-type { border-bottom: 0; }
.md-time { font: 12px "IBM Plex Mono", monospace; color: var(--muted); padding-top: 8px; }
.md-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.md-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 6px 12px 6px 8px; cursor: pointer; font-size: 13.5px; }
.md-chip .muted { font-size: 11.5px; }
.md-chip i.check { pointer-events: none; }
.md-chip.on { background: var(--accent-soft); border-color: transparent; }
.md-heat { display: grid; grid-template-columns: 110px repeat(var(--n), minmax(0, 1fr)); gap: 3px; align-items: center; }
.md-heat i { aspect-ratio: 1 / 1; border-radius: 3px; background: var(--surface-2); }
.md-hn { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 8px; }
.md-hd { font: 9.5px "IBM Plex Mono", monospace; color: var(--muted); text-align: center; }
.md-heat i.s1, .md-k.s1, .md-sev.s1 { background: color-mix(in srgb, var(--c4) 22%, var(--surface-2)); }
.md-heat i.s2, .md-k.s2, .md-sev.s2 { background: color-mix(in srgb, var(--c4) 42%, var(--surface-2)); }
.md-heat i.s3, .md-k.s3, .md-sev.s3 { background: color-mix(in srgb, var(--c4) 62%, var(--surface-2)); }
.md-heat i.s4, .md-k.s4, .md-sev.s4 { background: color-mix(in srgb, var(--c4) 82%, var(--surface-2)); }
.md-heat i.s5, .md-k.s5, .md-sev.s5 { background: var(--c4); }
.md-k { display: inline-block; width: 16px; height: 9px; border-radius: 2px; }
.md-sev { font-size: 11px; padding: 2px 8px; border-radius: 999px; color: var(--ink); }
.md-sev.s4, .md-sev.s5 { color: #fff; }
.md-meds { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.md-med { background: var(--bg); border-radius: 14px; padding: 14px; cursor: pointer; border: 1px solid transparent; }
.md-med:hover { border-color: var(--accent-2); }
.md-med.paused { opacity: .55; }
.md-med h3 { font-size: 18px; margin: 8px 0 2px; }
.md-sum { white-space: pre-wrap; background: var(--bg); border-radius: 12px; padding: 16px; font: 12.5px/1.6 "IBM Plex Mono", monospace; max-height: 50vh; overflow: auto; margin: 0; }
@media (max-width: 640px) { .md-heat { grid-template-columns: 80px repeat(var(--n), minmax(0, 1fr)); gap: 2px; } }

/* ---------- bucket list ---------- */
.bl-count { display: flex; align-items: center; gap: 18px; }
.bl-spot { background: var(--paper); color: #2B2320; border-color: transparent; display: flex; flex-direction: row; align-items: center; gap: 22px; }
.bl-spot > div:last-child { display: flex; flex-direction: column; }
.bl-spot .illo { color: #2B2320; }
.bl-spot .label { color: #8a7a6a; }
.bl-spot-t { font: italic 30px/1.15 "Fraunces", serif; margin-top: 6px; }
.bl-spot .btn, .bl-spot .row { align-self: flex-start; }
.bl-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.bl-filters button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 11px; font-size: 12.5px; cursor: pointer; color: var(--ink-2); }
.bl-filters button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.bl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.bl-item { position: relative; border-radius: 14px; padding: 16px; padding-top: 12px; background: var(--bg); border-left: 4px solid var(--bc); display: flex; flex-direction: column; }
.bl-item.planned { background: color-mix(in srgb, var(--bc) 8%, var(--bg)); }
.bl-cat { font: 10.5px "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .08em; color: var(--bc); }
.bl-item h3 { font-size: 20px; line-height: 1.2; margin: 8px 0 4px; cursor: pointer; }
.bl-item h3:hover { color: var(--accent); }
.bl-item p { margin: 0; font: italic 14px/1.4 "Fraunces", serif; color: var(--ink-2); }
.bl-actions { gap: 4px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; }
.bl-done { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.bl-mem { background: #FFFDF8; color: #2B2320; border-radius: 6px; padding: 12px; box-shadow: 0 1px 1px rgb(0 0 0 / .05), 0 14px 26px -16px rgb(40 25 20 / .45); cursor: pointer; transition: transform .15s; }
.bl-mem:nth-child(odd) { transform: rotate(-1deg); } .bl-mem:nth-child(even) { transform: rotate(1deg); }
.bl-mem:hover { transform: rotate(0) translateY(-3px); }
.bl-ph { aspect-ratio: 4 / 3; overflow: hidden; background: #ece4da; border-radius: 3px; }
.bl-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bl-ph.add { display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; cursor: pointer; color: #8a7a6a; font-size: 13px; border: 1.5px dashed #d8cdbf; background: transparent; }
.bl-mem-b { padding: 12px 4px 4px; }
.bl-stamp { display: inline-block; font: 10.5px "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .08em; color: #9A3F7F; border: 1.5px solid currentColor; border-radius: 4px; padding: 2px 6px; transform: rotate(-2deg); }
.bl-mem h3 { font-size: 19px; margin: 8px 0 4px; }
.bl-mem p { margin: 0; font: italic 14px/1.4 "Fraunces", serif; color: #5b4e48; }
.bl-affs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px 26px; }
.bl-aff { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.bl-aff q { font: italic 17px/1.35 "Fraunces", serif; cursor: pointer; quotes: none; }
.bl-aff q:hover { color: var(--accent); }
.bl-sun { border: 0; background: transparent; cursor: pointer; font-size: 16px; color: var(--line); padding: 2px; line-height: 1; }
.bl-aff.on .bl-sun { color: var(--c2); }

/* ---------- calendar ---------- */
.cal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow { font: 10.5px "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 0 6px 6px; }
.cal-d { min-height: 104px; border: 1px solid transparent; background: var(--bg); border-radius: 10px; padding: 6px; text-align: left; display: flex; flex-direction: column; gap: 3px; cursor: pointer; overflow: hidden; color: var(--ink); }
.cal-d:hover { border-color: var(--accent-2); }
.cal-d.other { opacity: .45; }
.cal-d.sel { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.cal-n { font: 15px "Fraunces", serif; margin-bottom: 2px; }
.cal-d.today .cal-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.cal-chip { font-size: 11.5px; line-height: 1.25; padding: 2px 6px; border-radius: 5px; background: color-mix(in srgb, var(--cc) 14%, var(--surface)); border-left: 2.5px solid var(--cc); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-chip b { font-weight: 500; }
.cal-more { font-size: 11px; color: var(--muted); padding-left: 4px; }
.cal-it > i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.cal-it a { text-decoration: none; }
.cal-it a:hover { color: var(--accent); }
.cal-layers { display: grid; gap: 8px; font-size: 13.5px; }
.cal-layers label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.cal-layers i { width: 10px; height: 10px; border-radius: 3px; }
.cal-ag { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cal-agd { width: 52px; flex: none; display: grid; justify-items: center; align-content: start; font: 10.5px "IBM Plex Mono", monospace; color: var(--muted); text-transform: uppercase; }
.cal-agd b { font: 400 26px/1 "Fraunces", serif; color: var(--ink); }
.cal-agd.today b { color: var(--accent); }
.cal-how { margin-top: 10px; font-size: 12.5px; color: var(--ink-2); }
.cal-how summary { cursor: pointer; color: var(--muted); }
.cal-how ol { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; }
@media (max-width: 1100px) { .cal-layout { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .cal-d { min-height: 64px; padding: 4px; } .cal-chip { font-size: 0; padding: 0; height: 5px; border-left: 0; background: var(--cc); } .cal-chip b { display: none; } .cal-more { font-size: 9px; } }

/* sub-section menu across the top of every section */
.subnav { position: sticky; top: 57px; z-index: 15; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.subnav[hidden] { display: none; }
.subnav-in { display: flex; align-items: center; gap: 4px; overflow-x: auto; padding: 10px clamp(18px, 3vw, 40px); scrollbar-width: none; }
.subnav-in::-webkit-scrollbar { display: none; }
.subnav a { flex: none; text-decoration: none; font-size: 13.5px; color: var(--ink-2); padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.subnav a:hover { background: var(--surface-2); color: var(--ink); }
.subnav a.on { background: var(--ink); color: var(--bg); }
.subnav a.soon { color: var(--muted); }
.subnav .sn-hub { font-family: "Fraunces", serif; font-style: italic; font-size: 15px; color: var(--ink); }
.sn-sep { flex: none; width: 1px; height: 18px; background: var(--line); margin: 0 6px; }
.cal-add { flex: none; font-size: 11px; color: var(--muted); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.cal-add:hover { color: var(--accent); border-color: var(--accent); }
.cal-src { flex: none; font-size: 11px; color: var(--c6); }

/* ---------- routine creator & player ---------- */
.rc-bg { padding: 2vh 2vw; }
.rc { width: min(1100px, 100%); height: min(860px, 96vh); background: var(--surface); border-radius: 24px; box-shadow: 0 30px 80px rgb(20 10 18 / .35); display: flex; flex-direction: column; overflow: hidden; }
.rc-h { display: flex; align-items: center; gap: 14px; padding: 20px 26px; border-bottom: 1px solid var(--line); }
.rc-name:focus { outline: none; border-bottom: 1.5px solid var(--accent-2) !important; }
.rc-name { border: 0 !important; outline: none; background: transparent !important; font: italic 28px "Fraunces", serif; padding: 2px 0 !important; box-shadow: none !important; width: 100%; }
.rc-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); min-height: 0; }
.rc-lib { padding: 20px 26px; overflow: auto; border-right: 1px solid var(--line); }
.rc-anchor { display: flex; align-items: center; gap: 12px; font: italic 20px "Fraunces", serif; }
.rc-anchor input { width: auto; font: 20px "IBM Plex Mono", monospace; padding: 6px 10px; }
.rc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rc-chip { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; color: var(--ink); }
.rc-chip span { color: var(--muted); font: 11px "IBM Plex Mono", monospace; }
.rc-chip:hover { border-color: var(--accent-2); }
.rc-chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.rc-chip.on span { color: color-mix(in srgb, var(--accent-ink) 70%, transparent); }
.rc-custom { display: flex; gap: 6px; margin-top: 18px; }
.rc-line { padding: 22px 26px; display: flex; flex-direction: column; min-height: 0; overflow: auto; background: color-mix(in srgb, var(--accent-soft) 35%, var(--surface)); }
.rc-sum { display: flex; align-items: baseline; gap: 10px; font-size: 30px; margin-bottom: 14px; }
.rc-sum .muted { font-size: 13px; }
.rc-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.rc-steps::before { content: ""; position: absolute; left: 58px; top: 10px; bottom: 10px; width: 1.5px; background: var(--accent-2); }
.rc-steps li { display: flex; align-items: center; gap: 10px; padding: 8px 0; position: relative; }
.rc-at { width: 46px; font: 12px "IBM Plex Mono", monospace; color: var(--muted); }
.rc-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); flex: none; z-index: 1; }
.rc-tx { flex: 1; font: 16px "Fraunces", serif; min-width: 0; }
.rc-steps input { width: 56px; padding: 4px 6px; font-size: 13px; text-align: center; background: var(--surface); }
.rc-mv { display: flex; gap: 2px; opacity: .45; transition: opacity .15s; }
.rc-steps li:hover .rc-mv { opacity: 1; }
.rc-mv button { border: 0; background: transparent; cursor: pointer; padding: 3px 5px; border-radius: 6px; color: var(--ink-2); }
.rc-mv button:hover:not([disabled]) { background: var(--surface-2); }
.rc-mv button[disabled] { opacity: .3; cursor: default; }
.rc-empty { margin: auto 0; text-align: center; padding: 40px 10px; }
@media (max-width: 800px) { .rc-body { grid-template-columns: 1fr; overflow: auto; } .rc-lib { border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; } .rc-line { overflow: visible; } .rc { height: 96vh; } .rc-h { flex-wrap: wrap; } }

.rp-bg { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px;
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--accent) 70%, #000) 0%, color-mix(in srgb, var(--accent) 40%, #0d080c) 70%); color: #FBF3EE; animation: rise .3s ease; }
.rp { text-align: center; display: grid; justify-items: center; gap: 14px; max-width: 560px; width: 100%; position: relative; }
.rp .label { color: rgb(251 243 238 / .65); }
.rp-x { position: fixed; top: 18px; right: 22px; border: 0; background: transparent; color: rgb(251 243 238 / .7); font-size: 30px; cursor: pointer; }
.rp-ring { position: relative; width: min(280px, 70vw); aspect-ratio: 1; }
.rp-ring svg { width: 100%; height: 100%; }
.rp-track { fill: none; stroke: rgb(255 255 255 / .12); stroke-width: 5; }
.rp-prog { fill: none; stroke: #F3D9C4; stroke-width: 5; stroke-linecap: round; transition: stroke-dasharray 1s linear; }
.rp-time { position: absolute; inset: 0; display: grid; place-items: center; font: 300 56px "Fraunces", serif; font-variant-numeric: tabular-nums; }
.rp-step { font: italic 400 clamp(30px, 5vw, 46px)/1.15 "Fraunces", serif; margin: 6px 0 0; }
.rp-sub { margin: 0; color: rgb(251 243 238 / .7); }
.rp-ctrl { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; justify-content: center; }
.rp-btn { background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .2); color: #FBF3EE; }
.rp-btn:hover { border-color: rgb(255 255 255 / .5); }
.rp-btn.primary { background: #FBF3EE; color: #2B1B28; border-color: #FBF3EE; }
.rp-btn[disabled] { opacity: .35; }
.rp-dots { display: flex; gap: 6px; margin-top: 8px; }
.rp-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgb(255 255 255 / .2); }
.rp-dots i.done { background: rgb(255 255 255 / .6); }
.rp-dots i.now { background: #F3D9C4; transform: scale(1.4); }
.dash-ritual { margin-top: 12px; }

/* ---------- the front page ---------- */
.page:has(.fp-hero) { max-width: 1400px; }
.fp-hero { position: relative; border-radius: 28px; min-height: 440px; padding: 48px 52px; display: flex; align-items: flex-end; overflow: hidden; color: #FFF8F2;
  background: var(--accent) center / cover no-repeat; box-shadow: 0 30px 60px -36px rgb(40 15 30 / .55); }
.fp-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(20 8 16 / .05) 0%, rgb(20 8 16 / .12) 40%, rgb(30 12 24 / .58) 100%); }
.fp-hero-in { position: relative; max-width: 760px; }
.fp-kicker { font: 11px "IBM Plex Mono", monospace; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.fp-title { font: 400 clamp(46px, 7vw, 92px)/.98 "Fraunces", serif; letter-spacing: -0.025em; margin: 14px 0 8px; color: #FFF8F2; }
.fp-title em { font-weight: 300; }
.fp-date { font: italic 20px "Fraunces", serif; margin: 0; opacity: .92; }
.fp-note { margin: 26px 0 0; padding-left: 18px; border-left: 1.5px solid rgb(255 248 242 / .6); }
.fp-note figcaption { font: 10.5px "IBM Plex Mono", monospace; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.fp-note blockquote { margin: 6px 0 0; font: italic 30px/1.2 "Fraunces", serif; }
.fp-time { position: absolute; top: 34px; right: 40px; font: 300 30px "Fraunces", serif; opacity: .9; font-variant-numeric: tabular-nums; }
.fp-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; margin-top: 34px; }
.fp-col { display: grid; gap: 34px; align-content: start; }
.fp-h { display: flex; align-items: baseline; margin-bottom: 14px; }
.fp-eyebrow { font: 11px "IBM Plex Mono", monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.fp-more { margin-left: auto; font-size: 13px; color: var(--ink-2); text-decoration: none; }
.fp-more:hover { color: var(--accent); }
.fp-day { list-style: none; margin: 0; padding: 0; position: relative; }
.fp-day::before { content: ""; position: absolute; left: 77px; top: 14px; bottom: 14px; width: 1px; background: var(--line); }
.fp-day li { display: flex; align-items: baseline; gap: 18px; padding: 10px 0; }
.fp-t { width: 60px; text-align: right; font: 300 22px "Fraunces", serif; color: var(--ink-2); font-variant-numeric: tabular-nums; flex: none; }
.fp-t.any { font: 10.5px "IBM Plex Mono", monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fp-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dc); box-shadow: 0 0 0 4px var(--bg); flex: none; position: relative; top: -2px; }
.fp-what { font: 20px/1.3 "Fraunces", serif; }
.fp-what a { text-decoration: none; }
.fp-what a:hover { color: var(--accent); }
.fp-what small { display: block; font: 12px "IBM Plex Sans", sans-serif; color: var(--muted); margin-top: 2px; }
.fp-free .fp-what { font-style: italic; color: var(--ink-2); padding-left: 96px; }
.fp-meals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.fp-meal { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; color: inherit; text-decoration: none; }
.fp-meal > div { padding: 12px 14px; font: italic 15px/1.3 "Fraunces", serif; }
.fp-meal-ph { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.fp-meals span { display: block; font: 10px "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-style: normal; margin-bottom: 4px; }
.fp-rituals { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fp-ritual { border-radius: 22px; min-height: 230px; padding: 22px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.fp-ritual.morning { color: #3B2420; background: radial-gradient(120% 90% at 85% 10%, #FBE3C8 0%, #F6D2C2 45%, #EFC4C4 100%); }
.fp-ritual.night { color: #F4E7C8; background: radial-gradient(120% 90% at 85% 10%, #3E4A72 0%, #2A2F4E 50%, #1E1F36 100%); }
.fp-r-art { margin: -22px -22px 16px; } .fp-r-art .art { border-radius: 0; }
.fp-ritual .fp-r-k { position: static; margin-bottom: 4px; }
.fp-ritual.morning .illo { color: #3B2420; --il-sky: #FCEBD6; --il-sun: #E9A45B; }
.fp-ritual.night .illo { color: #F4E7C8; --il-night: #2F3A62; --il-moon: #F4E7C8; --il-sun: #F2B866; }
.fp-ritual.morning .fp-r-btn { background: #3B2420; color: #FBE9DA; }
.fp-ritual h3 { margin-top: 0 !important; }
.fp-r-k { font: 11px "IBM Plex Mono", monospace; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.fp-ritual h3 { font: italic 28px/1.1 "Fraunces", serif; margin-top: auto; }
.fp-ritual p { margin: 6px 0 14px; font-size: 13px; opacity: .9; }
.fp-r-btn { align-self: flex-start; border: 0; border-radius: 999px; padding: 9px 18px; background: #FFF8F2; color: #2B1B28; cursor: pointer; font-size: 13.5px; }
.fp-r-done { font-size: 22px; }
.fp-petals { display: flex; flex-wrap: wrap; gap: 8px; }
.fp-petal { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 14px 7px 9px; cursor: pointer; font-size: 13.5px; color: var(--ink); transition: all .2s; }
.fp-petal i { width: 16px; height: 16px; border-radius: 50% 0 50% 50%; transform: rotate(-45deg); border: 1.5px solid var(--accent-2); transition: all .2s; }
.fp-petal.on { background: var(--accent-soft); border-color: transparent; }
.fp-petal.on i { background: var(--accent); border-color: var(--accent); }
.fp-petal.on span { color: var(--ink-2); }
.fp-water { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 18px; }
.fp-w-note { font: italic 14px "Fraunces", serif; color: var(--ink-2); margin-left: 8px; }
.fp-letter { background: var(--paper); color: #2B2320; border-radius: 22px; padding: 26px 28px; }
.fp-letter .fp-eyebrow { color: #8a7a6a; }
.fp-prompt { font: italic 25px/1.25 "Fraunces", serif; margin: 10px 0 14px; }
.fp-letter textarea { background: rgb(255 255 255 / .55); border-color: rgb(120 90 60 / .2); font: italic 16px/1.55 "Fraunces", serif; color: #2B2320; margin-bottom: 10px; }
.fp-wins { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fp-win { border-radius: 20px; padding: 20px; position: relative; min-height: 150px; display: flex; flex-direction: column; }
.fp-win.w0 { background: var(--accent-soft); } .fp-win.w1 { background: var(--paper); color: #2B2320; }
.fp-win.w2 { background: color-mix(in srgb, var(--c3) 13%, var(--surface)); } .fp-win.w3 { background: color-mix(in srgb, var(--c5) 13%, var(--surface)); }
.fp-seal { font-size: 15px; color: var(--accent); }
.fp-win h3 { font: 21px/1.2 "Fraunces", serif; margin: 10px 0 6px; }
.fp-win p { margin: auto 0 0; font: italic 14.5px/1.35 "Fraunces", serif; opacity: .8; }
.fp-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fp-postcard { position: relative; border-radius: 18px; min-height: 190px; padding: 18px; color: #FFF8F2; text-decoration: none; background-size: cover; background-position: center; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; box-shadow: 0 16px 30px -22px rgb(40 15 30 / .6); transition: transform .2s; }
.fp-postcard:hover { transform: translateY(-3px) rotate(-.5deg); }
.fp-stamp { position: absolute; top: 14px; right: 14px; font: 11px "IBM Plex Mono", monospace; letter-spacing: .1em; padding: 6px 7px; border: 1.5px dashed rgb(255 248 242 / .8); border-radius: 3px; }
.fp-pc-k { font: 10.5px "IBM Plex Mono", monospace; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.fp-pc-t { font: italic 24px/1.1 "Fraunces", serif; }
.fp-pc-s { font-size: 12.5px; opacity: .9; }
.fp-ticket { background: #FFFDF8; color: #2B2320; padding: 22px 24px 26px; font: 13px "IBM Plex Mono", monospace; max-width: 380px; position: relative; box-shadow: 0 18px 30px -24px rgb(40 15 30 / .55);
  -webkit-mask: radial-gradient(circle 6px at 50% 100%, transparent 98%, #000) bottom / 16px 100% repeat-x; mask: radial-gradient(circle 6px at 50% 100%, transparent 98%, #000) bottom / 16px 100% repeat-x; transform: rotate(-.6deg); }
.fp-tk-h { letter-spacing: .14em; font-size: 11px; color: #8a7a6a; padding-bottom: 10px; border-bottom: 1px dashed #d9cfc4; margin-bottom: 10px; }
.fp-tk-r { display: flex; justify-content: space-between; padding: 5px 0; }
.fp-tk-r.kept { font-size: 16px; color: #5B2A4E; border-top: 1px dashed #d9cfc4; margin-top: 6px; padding-top: 10px; }
.fp-tk-r.small { font-size: 11px; color: #8a7a6a; }
.fp-tk-f { font: italic 14px/1.35 "Fraunces", serif; margin: 14px 0 0; color: #5b4e48; }
.fp-jot form { margin-top: 10px; }
.fp-jot input { flex: 1; }
.fp-classic { display: inline-block; margin-top: 16px; font-size: 12.5px; color: var(--muted); }
[data-palette="night"] .fp-tk-r.kept { color: #5B2A4E; }
@media (max-width: 1000px) { .fp-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .fp-hero { padding: 28px 24px; min-height: 380px; border-radius: 22px; } .fp-time { top: 20px; right: 22px; font-size: 22px; }
  .fp-note blockquote { font-size: 22px; } .fp-rituals, .fp-wins, .fp-cards, .fp-meals { grid-template-columns: 1fr; }
  .fp-t { width: 46px; font-size: 18px; } .fp-day::before { left: 63px; } .fp-free .fp-what { padding-left: 0; } .fp-what { font-size: 17px; }
}

/* auth screens */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.gate .card { width: min(440px, 100%); padding: 34px; }
.gate h1 { font-size: 34px; margin: 10px 0 8px; }
.gate p { color: var(--ink-2); margin: 0 0 18px; }
.gate form { display: grid; gap: 10px; }

/* responsive */
@media (max-width: 1180px) {
  .dash { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dash .col.mid { grid-column: 1 / -1; order: -1; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 50; width: 280px; transform: translateX(-100%); transition: transform .25s; }
  .app.open .side { transform: none; box-shadow: 0 0 40px rgb(0 0 0 / .2); }
  .btn.menu-btn { display: inline-flex; }
  .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span3 { grid-column: 1 / -1; }
  .swatches { display: none; }
}
@media (max-width: 640px) {
  .dash, .g2, .g3, .g4, .versus { grid-template-columns: minmax(0, 1fr); }
  .dash .col.mid { order: 0; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi .v { font-size: 24px; }
  .card { padding: 16px; }
  .span2, .span3 { grid-column: auto; }
  .hello { grid-template-columns: 1fr; }
  .clock { text-align: left; font-size: 34px; }
  .modal form { grid-template-columns: 1fr; }
  .sync span { display: none; }
  .vb-ctx.off { display: none; }
  .vb-bar .spacer { display: none; }
}
@media print {
  .side, .topbar, .demo-banner, .no-print { display: none !important; }
  .app { display: block; }
  body { background: #fff; }
}
@media (max-width: 640px) { .wm-card .card-h { flex-wrap: wrap; } .wm-card .card-h > .muted { display: none; } .bk-cur { gap: 12px; } .bk-cover { width: 78px; } .bk-ct { font-size: 12.5px; } }

/* ---------- illustrations & stamps ---------- */
:root { --il-wash: color-mix(in oklab, var(--accent-2) 38%, transparent); --il-sky: color-mix(in oklab, #F3C9A8 55%, var(--accent-soft)); --il-sun: #E9A45B; --il-night: color-mix(in oklab, #2E3A5C 70%, var(--accent)); --il-moon: #F4E7C8; }
[data-palette="night"] { --il-wash: color-mix(in oklab, var(--accent-2) 45%, transparent); --il-sky: #5A4150; --il-night: #1E2438; }
.illo { color: var(--ink); display: block; flex-shrink: 0; }
.illo.soft { color: var(--ink-2, var(--ink)); opacity: .9; }
.night-art .illo, .illo.on-dark { color: #F4E7C8; }
.stamp { width: 100%; height: auto; max-width: 150px; mix-blend-mode: multiply; opacity: .88; }
[data-palette="night"] .stamp { mix-blend-mode: screen; }

.bl-art { margin: -12px -16px 12px -16px; border-radius: 12px 14px 0 0; overflow: hidden; } .bl-art .art { border-radius: 0; }
@media (max-width: 640px) { .bl-spot { flex-direction: column; align-items: flex-start; } }
.tv-passport { background: linear-gradient(90deg, transparent calc(50% - 1px), var(--line) 50%, transparent calc(50% + 1px)), var(--paper); color: #2B2320; }
.tv-passport .muted, .tv-passport .label { color: #8a7a6a; }
.tv-stamps { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px 10px; padding: 6px 4px 4px; }
.tv-stamp { border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; transition: transform .2s; }
.tv-stamp:hover { transform: scale(1.06); }
.tv-stamp .stamp { max-width: 128px; }
.tv-dstamp { width: 92px; margin: -10px 4px -14px 0; }
.rp-art { margin-bottom: 14px; } .rp-art .illo { color: currentColor; margin: 0 auto; --il-sky: rgb(255 255 255 / .18); --il-night: rgb(255 255 255 / .14); }
.rc-h .rc-art { margin: -6px 6px -6px -4px; }

/* editorial scenes */
.art { display: block; flex-shrink: 0; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; }
.art .scene { width: 100%; height: 100%; display: block; }
.bl-spot-art .art { border-radius: 14px; }
.bl-ph.add { position: relative; padding: 0; border: 0; }
.bl-ph.add .art { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; aspect-ratio: auto; }
.bl-ph.add > span:not(.art), .mp-rc-ph.empty > span:not(.art) { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); background: rgb(251 244 234 / .92); color: #4a3c36; padding: 5px 12px; border-radius: 999px; font-size: 12px; white-space: nowrap; opacity: 0; transition: opacity .2s; }
.bl-ph.add:hover > span:not(.art), .mp-rc-ph.empty:hover > span:not(.art) { opacity: 1; }
.mp-rc-ph.empty { padding: 0; border-bottom: 0; }
.mp-rc-ph.empty .art { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; aspect-ratio: auto; }
.mp-pk-th .art { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.ln-c-art { margin: -2px -4px 6px 10px; }
.ln-s-art { margin: 2px 0; border-radius: 8px; }
.ln-cert .art { margin: -14px -14px 6px; width: calc(100% + 28px); border-radius: 11px 11px 0 0; }
.ln-cert { overflow: hidden; }
.rc-h .rc-art { border-radius: 10px; }
.rp-art .art { margin: 0 auto; border-radius: 18px; box-shadow: 0 20px 50px rgb(0 0 0 / .25); }
.fp-ritual.morning { background: linear-gradient(180deg, #FBE9D8 0%, #F6D4C4 55%, #EEC3C3 100%); }
.fp-ritual.night { background: linear-gradient(180deg, #2B3152 0%, #252946 55%, #1E1F36 100%); }
.fp-ritual.morning .art { --sc-paper: #FBE9D8; }
.fp-ritual.night .art { --sc-paper: #2B3152; --sc-ink: #F4E7C8; }

/* ---------- focus timer ---------- */
.fo-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 900px) { .fo-top { grid-template-columns: 1fr; } }
.fo-timer { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 22px; background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--accent-soft) 70%, var(--surface)) 0%, var(--surface) 70%); }
.fo-timer.fo-short, .fo-timer.fo-long { background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--c5) 18%, var(--surface)) 0%, var(--surface) 70%); }
.fo-modes { display: inline-flex; background: var(--bg); border-radius: 999px; padding: 4px; gap: 2px; }
.fo-modes button { border: 0; background: none; color: var(--ink-2, var(--ink)); padding: 7px 14px; border-radius: 999px; font: inherit; font-size: 13px; cursor: pointer; }
.fo-modes button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgb(0 0 0 / .08); }
.fo-ring-wrap { position: relative; width: min(300px, 80vw); aspect-ratio: 1; }
.fo-ring { width: 100%; height: 100%; }
.fo-track { fill: none; stroke: var(--line); stroke-width: 10; }
.fo-prog { fill: none; stroke: var(--accent); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset .25s linear; }
.fo-short .fo-prog, .fo-long .fo-prog { stroke: var(--c5); }
.fo-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.fo-time { font: 400 64px/1 "Fraunces", serif; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.fo-rounds { display: flex; gap: 6px; margin-top: 4px; }
.fo-rounds i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--accent); }
.fo-rounds i.on { background: var(--accent); }
.fo-ctrl { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center; }
.fo-go { min-width: 130px; justify-content: center; font-size: 15px; padding: 11px 22px; }
.fo-sound { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.fo-sound button { border: 1px solid var(--line); background: var(--bg); color: inherit; border-radius: 999px; padding: 5px 11px; font: inherit; font-size: 12.5px; cursor: pointer; }
.fo-sound button.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.fo-sound input { width: 90px; accent-color: var(--accent); }
.fo-intent { display: flex; flex-direction: column; gap: 12px; }
.fo-int { font: italic 400 26px/1.25 "Fraunces", serif; border: 0; border-bottom: 1.5px solid var(--line); background: none; color: var(--ink); padding: 6px 0 10px; outline: none; width: 100%; }
.fo-int:focus { border-color: var(--accent); }
.fo-linked { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; background: color-mix(in srgb, var(--lc) 14%, var(--surface)); border-radius: 999px; padding: 5px 6px 5px 12px; font-size: 12.5px; }
.fo-linked i, .fo-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--lc); flex-shrink: 0; }
.fo-linked button { border: 0; background: none; color: inherit; cursor: pointer; font-size: 15px; padding: 0 6px; }
.fo-g { display: flex; flex-direction: column; gap: 7px; }
.fo-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fo-chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--bg); color: inherit; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; text-align: left; }
.fo-chip:hover { border-color: var(--lc); }
.fo-chip.on { background: color-mix(in srgb, var(--lc) 16%, var(--surface)); border-color: var(--lc); }
.fo-hint { font-size: 12px; margin: auto 0 0; }
.fo-petals { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.fo-petal { border: 1.5px dashed var(--line); border-radius: 16px; min-height: 96px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.fo-petal span { font: 11px "IBM Plex Mono", monospace; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.fo-petal b { font: italic 400 15px/1.25 "Fraunces", serif; color: var(--muted); }
.fo-petal em { font-style: normal; font-size: 12px; margin-top: auto; opacity: .85; }
.fo-petal.on { border: 0; background: color-mix(in srgb, var(--lc) 16%, var(--surface)); box-shadow: inset 4px 0 0 var(--lc); }
.fo-petal.on b { color: var(--ink); }
.fo-cols { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 170px; }
.fo-col { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.fo-col > span { font: 11px "IBM Plex Mono", monospace; color: var(--muted); }
.fo-col.today > span { color: var(--ink); font-weight: 600; }
.fo-stack { flex: 1; width: 100%; max-width: 34px; display: flex; flex-direction: column-reverse; gap: 3px; justify-content: flex-start; }
.fo-stack i { display: block; background: var(--lc); border-radius: 6px; min-height: 8px; max-height: 34px; flex-basis: 0; }
.fo-where { display: flex; flex-direction: column; gap: 10px; }
.fo-w { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) 70px; gap: 12px; align-items: center; font-size: 13.5px; }
.fo-wn { display: flex; align-items: center; gap: 8px; min-width: 0; } .fo-wn i { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.fo-wn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fo-wb { height: 10px; background: var(--bg); border-radius: 99px; overflow: hidden; } .fo-wb span { display: block; height: 100%; border-radius: 99px; }
.fo-wm { text-align: right; font-size: 12.5px; color: var(--muted); }
.fo-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 14px; font-size: 12px; color: var(--muted); } .fo-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.fo-list { list-style: none; margin: 0; padding: 0; } .fo-list li { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.fo-list li:last-child { border-bottom: 0; } .fo-list li > i { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.fo-list li div { flex: 1; min-width: 0; display: flex; flex-direction: column; } .fo-list b { font-weight: 500; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .fo-list span { font-size: 12px; }
.fo-list em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.fo-pill { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: 10px; background: var(--ink); color: var(--surface); padding: 10px 16px; border-radius: 999px; text-decoration: none; font-size: 13px; box-shadow: 0 10px 30px rgb(0 0 0 / .2); }
.fo-pill b { font: 500 15px "IBM Plex Mono", monospace; }
.fo-pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2, #F2B866); animation: fo-pulse 1.6s ease-in-out infinite; }
.fo-pill-dot.short, .fo-pill-dot.long { background: #7FC8A6; }
@keyframes fo-pulse { 50% { opacity: .35; } }
.fo-imm { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: #1b1b2a; }
.fo-imm-art { position: absolute; inset: 0; } .fo-imm-art .scene { width: 100%; height: 100%; }
.fo-imm-art::after { content: ""; position: absolute; inset: 0; background: rgb(20 14 30 / .45); }
.fo-imm-in { position: relative; text-align: center; color: #FFF8F0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.fo-imm-in .label { color: rgb(255 248 240 / .8); }
.fo-imm-t { font: 400 clamp(90px, 16vw, 200px)/1 "Fraunces", serif; letter-spacing: -2px; font-variant-numeric: tabular-nums; text-shadow: 0 4px 30px rgb(0 0 0 / .3); }
.fo-imm-i { font: italic 400 24px/1.3 "Fraunces", serif; margin: 0; max-width: 30ch; }
.fo-imm-b { display: flex; gap: 10px; margin-top: 10px; } .fo-imm-b .btn { background: rgb(255 255 255 / .9); color: #2a2030; border: 0; } .fo-imm-b .btn.quiet { background: rgb(255 255 255 / .18); color: #fff; }
.fp-begin { margin-top: 14px; border: 0; cursor: pointer; background: rgb(255 248 240 / .92); color: #3B2420; font: 500 14px "IBM Plex Sans", sans-serif; padding: 10px 18px; border-radius: 999px; box-shadow: 0 8px 24px rgb(0 0 0 / .18); transition: transform .2s; }
.fp-begin:hover { transform: translateY(-1px); }
.vb-art { background: #FFFDF8; padding: 12px 12px 0; box-shadow: 0 1px 1px rgb(0 0 0 / .06), 0 10px 22px -10px rgb(40 25 20 / .4); display: flex; flex-direction: column; }
.vb-img.vb-art { padding: 0; box-shadow: none; background: none; }
.vb-img.vb-art .scene { width: 100%; height: 100%; display: block; pointer-events: none; }
.vb-artpick { width: min(920px, 94vw); max-height: 88vh; overflow: auto; }
.vb-artgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.vb-artgrid button { border: 0; background: none; padding: 0; cursor: pointer; text-align: left; color: inherit; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.vb-artgrid .scene { width: 100%; aspect-ratio: 4 / 3; border-radius: 10px; display: block; transition: transform .2s; }
.vb-artgrid button:hover .scene { transform: scale(1.03); }

/* ---------- The Annual ---------- */
.an-cover { position: relative; border-radius: 24px; overflow: hidden; min-height: 400px; display: flex; color: #FFF8F0; box-shadow: 0 24px 60px -30px rgb(40 20 30 / .5); }
.an-cover-art { position: absolute; inset: 0; } .an-cover-art .scene { width: 100%; height: 100%; display: block; }
.an-cover-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(20 14 30 / .62) 0%, rgb(20 14 30 / .25) 55%, transparent 100%); }
.an-cover-in { position: relative; padding: 28px 34px 30px; display: flex; flex-direction: column; gap: 6px; width: 100%; }
.an-mast { display: flex; justify-content: space-between; font: 500 12px "IBM Plex Mono", monospace; letter-spacing: .3em; border-bottom: 1px solid rgb(255 248 240 / .5); padding-bottom: 10px; }
.an-year { font: 400 clamp(110px, 17vw, 210px)/.85 "Fraunces", serif; letter-spacing: -6px; margin-top: 18px; text-shadow: 0 6px 40px rgb(0 0 0 / .25); }
.an-word { display: flex; flex-direction: column; gap: 2px; max-width: 420px; }
.an-word span, .an-word2 span { font: 11px "IBM Plex Mono", monospace; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.an-word input { font: italic 400 44px/1.1 "Fraunces", serif; background: none; border: 0; border-bottom: 1px dashed rgb(255 248 240 / .5); color: inherit; padding: 2px 0 6px; outline: none; width: 100%; }
.an-word input::placeholder { color: rgb(255 248 240 / .55); }
.an-lines { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 6px; font: italic 17px/1.3 "Fraunces", serif; }
.an-lines li::before { content: "— "; opacity: .7; }
.an-h { display: flex; align-items: baseline; justify-content: space-between; margin: 30px 2px 12px; font-size: 12.5px; }
.an-stories { display: grid; grid-auto-flow: column; grid-auto-columns: 236px; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 18px; scrollbar-width: thin; }
.an-card { scroll-snap-align: start; background: var(--bg); color: var(--fg); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; min-height: 340px; box-shadow: 0 14px 30px -18px rgb(40 20 30 / .45); transition: transform .25s; }
.an-card:hover { transform: translateY(-3px) rotate(-.4deg); }
.an-card-art { aspect-ratio: 4 / 3; } .an-card-art .scene { width: 100%; height: 100%; display: block; }
.an-card-t { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.an-n { font: 11px "IBM Plex Mono", monospace; opacity: .7; letter-spacing: .12em; }
.an-big { font: 400 40px/1 "Fraunces", serif; letter-spacing: -1px; margin-top: 2px; }
.an-line { font: italic 16px/1.25 "Fraunces", serif; }
.an-foot { font-size: 12px; opacity: .8; margin-top: auto; padding-top: 8px; }
.an-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; margin-top: 16px; }
@media (max-width: 900px) { .an-two { grid-template-columns: 1fr; } }
.an-tl { list-style: none; margin: 0; padding: 0 0 0 4px; position: relative; max-height: 330px; overflow: auto; }
.an-tl li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 8px 0; position: relative; }
.an-tl li::before { content: ""; position: absolute; left: 50px; top: 15px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.an-tl li > div { padding-left: 16px; display: flex; flex-direction: column; } .an-tl b { font: 400 15.5px/1.3 "Fraunces", serif; } .an-tl small { color: var(--muted); font-size: 11.5px; }
.an-m { font: 11px "IBM Plex Mono", monospace; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.an-letters { display: flex; flex-direction: column; }
.an-q { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.an-qn { font: 11px "IBM Plex Mono", monospace; color: var(--accent); letter-spacing: .12em; }
.an-qt { font: italic 400 26px/1.2 "Fraunces", serif; }
.an-q textarea { margin-top: 8px; min-height: 150px; font: 15px/1.6 "Fraunces", serif; background: color-mix(in srgb, var(--accent-soft) 30%, var(--surface)); border: 0; border-radius: 12px; padding: 14px 16px; resize: vertical; color: var(--ink); }
.an-qnav { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.an-dots { display: flex; gap: 7px; } .an-dots button { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--accent); background: none; padding: 0; cursor: pointer; }
.an-dots button.done { background: color-mix(in srgb, var(--accent) 45%, transparent); } .an-dots button.on { background: var(--accent); transform: scale(1.25); }
.an-ahead { background: var(--accent); color: var(--accent-ink); display: flex; flex-direction: column; gap: 12px; }
.an-ahead .label, .an-ahead .muted, .an-ahead a { color: color-mix(in srgb, var(--accent-ink) 78%, transparent); }
.an-word2 { display: flex; flex-direction: column; gap: 2px; }
.an-word2 input { font: italic 400 38px/1.1 "Fraunces", serif; background: none; border: 0; border-bottom: 1px dashed color-mix(in srgb, var(--accent-ink) 45%, transparent); color: inherit; padding: 2px 0 6px; outline: none; }
.an-word2 input::placeholder, .an-int input::placeholder { color: color-mix(in srgb, var(--accent-ink) 45%, transparent); }
.an-int { display: grid; gap: 10px; } .an-int label { display: grid; grid-template-columns: 170px 1fr; align-items: baseline; gap: 10px; }
.an-int span { font: italic 15px "Fraunces", serif; opacity: .85; }
.an-int input { background: none; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--accent-ink) 30%, transparent); color: inherit; padding: 5px 0; font: inherit; outline: none; }
.an-close h3 { font-size: 26px; margin: 6px 0 0; }
.an-past { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.an-mini { position: relative; border: 0; padding: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 4; cursor: pointer; color: #FFF8F0; text-align: left; box-shadow: 0 10px 24px -14px rgb(40 20 30 / .5); transition: transform .2s; }
.an-mini:hover { transform: translateY(-3px); }
.an-mini-art { position: absolute; inset: 0; } .an-mini-art .scene { width: 100%; height: 100%; }
.an-mini-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(20 14 30 / .7), rgb(20 14 30 / .15) 70%); }
.an-mini-t { position: relative; padding: 12px; display: flex; flex-direction: column; }
.an-mini-t span { font: 9px "IBM Plex Mono", monospace; letter-spacing: .25em; } .an-mini-t b { font: 400 44px/1 "Fraunces", serif; } .an-mini-t i { font: italic 15px "Fraunces", serif; }

/* ---------- planner ---------- */
.pl-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.pl-cur { font: italic 18px "Fraunces", serif; min-width: 180px; text-align: center; }
.pl-page { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; box-shadow: 0 1px 0 rgb(0 0 0 / .02); }
.pl-spread { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border-radius: 20px; box-shadow: 0 20px 50px -30px rgb(40 20 30 / .35); }
.pl-spread > .pl-page:first-child { border-radius: 20px 0 0 20px; border-right: 0; background: linear-gradient(90deg, var(--surface) 92%, color-mix(in srgb, var(--line) 50%, var(--surface))); }
.pl-spread > .pl-page:last-child { border-radius: 0 20px 20px 0; background: linear-gradient(90deg, color-mix(in srgb, var(--line) 50%, var(--surface)), var(--surface) 8%); }
@media (max-width: 900px) { .pl-spread { grid-template-columns: 1fr; } .pl-spread > .pl-page { border-radius: 18px !important; border: 1px solid var(--line) !important; } }
.pl-mast h2 { font: 400 38px/1.05 "Fraunces", serif; margin: 4px 0 18px; letter-spacing: -.5px; }
.pl-block { display: block; margin-bottom: 18px; }
.pl-bh { display: flex; align-items: center; font: 11px "IBM Plex Mono", monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.pl-bh .spacer { flex: 1; }
.pl-mini { border: 0; background: none; color: var(--accent); cursor: pointer; font: inherit; font-size: 13px; text-decoration: none; letter-spacing: 0; text-transform: none; }
.pl-prio { list-style: none; margin: 0; padding: 0; counter-reset: p; }
.pl-prio li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.pl-prio input { flex: 1; border: 0; background: none; font: 400 17px/1.3 "Fraunces", serif; color: var(--ink); outline: none; padding: 4px 0; }
.pl-prio li.done input { text-decoration: line-through; text-decoration-color: var(--accent); color: var(--muted); }
.pl-chk { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--accent); background: none; cursor: pointer; flex-shrink: 0; padding: 0; position: relative; }
.pl-chk.sm { width: 16px; height: 16px; }
.pl-chk.on { background: var(--accent); } .pl-chk.on::after { content: "✓"; color: var(--accent-ink); font-size: 11px; position: absolute; inset: 0; display: grid; place-items: center; }
.pl-tasks { list-style: none; margin: 0; padding: 0; } .pl-tasks li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; }
.pl-tasks li.done span { text-decoration: line-through; color: var(--muted); } .pl-tasks em { font-style: italic; font-size: 11.5px; color: var(--c4); margin-left: auto; }
.pl-newtask { width: 100%; border: 0; border-bottom: 1px solid var(--accent); background: none; padding: 4px 0; font: inherit; outline: none; color: var(--ink); }
.pl-habits { display: flex; flex-wrap: wrap; gap: 6px; }
.pl-hab { border: 1px solid var(--line); background: var(--bg); color: inherit; border-radius: 999px; padding: 5px 11px; font: inherit; font-size: 12.5px; cursor: pointer; }
.pl-hab.on { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); border-color: var(--accent); }
.pl-hab.on::before { content: "✓ "; color: var(--accent); }
.pl-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pl-lined, .pl-notes { width: 100%; border: 0; resize: vertical; color: var(--ink); font: 15px/28px "Fraunces", serif; padding: 0 2px; outline: none; background: repeating-linear-gradient(180deg, transparent 0 27px, var(--line) 27px 28px); }
.pl-hours { list-style: none; margin: 0; padding: 0; }
.pl-hours li { display: grid; grid-template-columns: 48px 1fr; align-items: center; min-height: 32px; border-bottom: 1px solid var(--line); }
.pl-h { font: 11px "IBM Plex Mono", monospace; color: var(--muted); }
.pl-hc { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.pl-hc input { flex: 1; min-width: 80px; border: 0; background: none; font: 14px "IBM Plex Sans", sans-serif; color: var(--ink); outline: none; padding: 5px 0; }
.pl-ev { font-size: 12.5px; text-decoration: none; color: var(--ink); background: color-mix(in srgb, var(--ec) 16%, var(--surface)); border-left: 3px solid var(--ec); border-radius: 6px; padding: 3px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pl-allday { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; } .pl-allday span { font-size: 12px; background: color-mix(in srgb, var(--ec) 14%, var(--surface)); border-radius: 999px; padding: 3px 10px; }
.pl-banner { position: relative; border-radius: 20px; overflow: hidden; min-height: 170px; display: flex; align-items: flex-end; color: #FFF8F0; margin-bottom: 14px; background: var(--accent); }
.pl-banner.tall { min-height: 220px; }
.pl-banner-art { position: absolute; top: 0; right: 0; bottom: 0; aspect-ratio: 4 / 3; } .pl-banner-art .scene { width: 100%; height: 100%; display: block; }
.pl-banner-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--accent) 0%, transparent 35%); }
@media (max-width: 700px) { .pl-banner-art { opacity: .35; } }
.pl-banner-t { position: relative; padding: 20px 24px; width: min(560px, 100%); }
.pl-banner-t .label { color: rgb(255 248 240 / .8); } .pl-banner { color: var(--accent-ink); } .pl-banner .pl-theme { border-color: color-mix(in srgb, var(--accent-ink) 45%, transparent); } .pl-banner .pl-theme::placeholder { color: color-mix(in srgb, var(--accent-ink) 60%, transparent); }
.pl-banner h2 { font: 400 40px/1 "Fraunces", serif; margin: 4px 0 8px; }
.pl-theme { width: 100%; background: none; border: 0; border-bottom: 1px dashed rgb(255 248 240 / .55); color: inherit; font: italic 20px "Fraunces", serif; padding: 4px 0 6px; outline: none; }
.pl-theme::placeholder { color: rgb(255 248 240 / .65); }
.pl-theme.dark { color: var(--ink); border-color: var(--line); } .pl-theme.dark::placeholder { color: var(--muted); }
.pl-weekgrid { display: grid; grid-template-columns: 1.4fr repeat(7, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 1100px) { .pl-weekgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pl-wside { grid-column: 1 / -1; } }
.pl-wday { padding: 12px; min-height: 260px; cursor: pointer; display: flex; flex-direction: column; gap: 5px; transition: border-color .2s; }
.pl-wday:hover { border-color: var(--accent); } .pl-wday.today { border: 1.5px solid var(--accent); background: color-mix(in srgb, var(--accent-soft) 35%, var(--surface)); }
.pl-wd-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; } .pl-wd-h span { font: 11px "IBM Plex Mono", monospace; text-transform: uppercase; color: var(--muted); } .pl-wd-h b { font: 400 26px "Fraunces", serif; }
.pl-wtop { font: italic 13px/1.3 "Fraunces", serif; color: var(--accent); } .pl-wtop.done { text-decoration: line-through; opacity: .6; }
.pl-wev { font-size: 11.5px; line-height: 1.3; border-left: 2.5px solid var(--ec); padding-left: 6px; } .pl-wev i { font-style: normal; color: var(--muted); margin-right: 4px; }
.pl-wtask { font-size: 11.5px; color: var(--ink-2, var(--ink)); } .pl-wtask.done { text-decoration: line-through; opacity: .5; }
.pl-wfree { margin: auto 0; text-align: center; font: italic 13px "Fraunces", serif; color: var(--muted); }
.pl-whab { margin-top: 14px; } .pl-whab table { width: 100%; border-collapse: collapse; font-size: 13px; } .pl-whab td { padding: 5px 4px; border-bottom: 1px solid var(--line); text-align: center; } .pl-whab td:first-child { text-align: left; }
.pl-dot { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--accent); background: none; padding: 0; cursor: pointer; } .pl-dot.on { background: var(--accent); } .pl-dot:disabled { opacity: .35; cursor: default; }
.pl-monthgrid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 900px) { .pl-monthgrid { grid-template-columns: 1fr; } }
.pl-mgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.pl-mh { font: 10px "IBM Plex Mono", monospace; color: var(--muted); text-align: center; padding-bottom: 4px; }
.pl-mc { border: 0; background: none; padding: 3px 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--ink); font: inherit; border-radius: 8px; min-height: 30px; }
.pl-mc:hover { background: var(--bg); } .pl-mc.out { opacity: .3; }
.pl-md { font-size: 12px; } .pl-mc.today .pl-md { background: var(--accent); color: var(--accent-ink); border-radius: 50%; width: 22px; height: 22px; display: grid; place-items: center; }
.pl-mdots { display: flex; gap: 2px; } .pl-mdots i { width: 4px; height: 4px; border-radius: 50%; }
.pl-mgrid.big .pl-mc { min-height: 92px; align-items: stretch; padding: 6px; border: 1px solid var(--line); border-radius: 10px; text-align: left; gap: 3px; }
.pl-mgrid.big .pl-md { font: 400 16px "Fraunces", serif; } .pl-mgrid.big .pl-mc.today .pl-md { width: 26px; height: 26px; font-size: 14px; }
.pl-mev { font-size: 10.5px; line-height: 1.25; border-left: 2px solid var(--ec); padding-left: 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pl-line { width: 100%; border: 0; border-bottom: 1px dashed var(--line); background: none; font: italic 16px "Fraunces", serif; color: var(--ink); padding: 4px 0; outline: none; }
.pl-qhead { margin-bottom: 14px; } .pl-qhead h2 { font: 400 42px/1.05 "Fraunces", serif; margin: 4px 0 8px; } .pl-qhead h2 em { font-size: .55em; color: var(--muted); }
.pl-qhead .pl-theme { max-width: 620px; }
.pl-qgrid { display: grid; grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .pl-qgrid { grid-template-columns: 1fr 1fr; } }
.pl-qm { padding: 0 0 14px; overflow: hidden; } .pl-qm > :not(.pl-qm-art) { margin-left: 14px; margin-right: 14px; }
.pl-qm-art { position: relative; aspect-ratio: 16 / 9; cursor: pointer; margin-bottom: 10px; } .pl-qm-art .scene { width: 100%; height: 100%; display: block; }
.pl-qm-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(20 14 30 / .55), transparent 55%); } .pl-qm-art span { z-index: 1; }
.pl-qm-art span { position: absolute; left: 12px; bottom: 8px; color: #FFF8F0; font: 400 24px "Fraunces", serif; text-shadow: 0 2px 12px rgb(0 0 0 / .4); }
.pl-qtheme { font: italic 14px "Fraunces", serif; color: var(--accent); margin: 0 0 8px; }
.pl-goals { list-style: none; margin: 10px 0 0; padding: 0; } .pl-goals li { font-size: 13px; padding: 5px 0 5px 16px; position: relative; border-bottom: 1px dashed var(--line); }
.pl-goals li::before { content: "✦"; position: absolute; left: 0; color: var(--accent); font-size: 10px; top: 7px; } .pl-goals li.done { text-decoration: line-through; color: var(--muted); }
.pl-ygrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1000px) { .pl-ygrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pl-ym { padding: 12px 14px; } .pl-ym-h { border: 0; background: none; padding: 0 0 8px; cursor: pointer; text-align: left; display: flex; flex-direction: column; color: inherit; }
.pl-ym-h span { font: 400 20px "Fraunces", serif; } .pl-ym-h em { font-size: 12px; color: var(--accent); }
.pl-thd { font: 11px "IBM Plex Mono", monospace; color: var(--muted); } .pl-thd.today { color: var(--accent); font-weight: 600; }

/* ---------- recipe book ---------- */
.rb-ph { display: block; width: 100%; height: 100%; } .rb-ph .scene, .rb-ph .rimg { width: 100%; height: 100%; object-fit: cover; display: block; }
.rb-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; cursor: pointer; box-shadow: 0 20px 50px -34px rgb(40 20 30 / .45); }
@media (max-width: 800px) { .rb-hero { grid-template-columns: 1fr; } }
.rb-hero .rb-ph { aspect-ratio: 4 / 3; height: auto; }
.rb-hero-t { padding: 30px 32px; display: flex; flex-direction: column; justify-content: center; }
.rb-hero-t h2 { font: 400 40px/1.05 "Fraunces", serif; margin: 6px 0 10px; letter-spacing: -.5px; }
.rb-hero-t p { font: italic 17px/1.45 "Fraunces", serif; color: var(--ink-2, var(--ink)); margin: 0; }
.rb-meta { display: flex; gap: 14px; margin-top: 14px; font: 12px "IBM Plex Mono", monospace; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.rb-ghost { background: none; }
.rb-bar { display: flex; gap: 10px; margin: 22px 0 10px; } .rb-search { flex: 1; } .rb-bar select { width: auto; }
.rb-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.rb-chips button { border: 1px solid var(--line); background: var(--surface); color: inherit; border-radius: 999px; padding: 6px 13px; font: inherit; font-size: 13px; cursor: pointer; text-transform: capitalize; }
.rb-chips button.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.rb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.rb-card { background: var(--surface); border-radius: 18px; overflow: hidden; cursor: pointer; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.rb-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -22px rgb(40 20 30 / .5); }
.rb-card-ph { position: relative; aspect-ratio: 4 / 3; overflow: hidden; } .rb-card:hover .rb-ph > * { transform: scale(1.04); } .rb-ph > * { transition: transform .5s; }
.rb-heart { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgb(255 250 245 / .92); color: var(--rose, #C04A68); font-size: 17px; cursor: pointer; display: grid; place-items: center; box-shadow: 0 4px 12px rgb(0 0 0 / .12); }
.rb-heart.on { color: #D0455F; }
.rb-card-t { padding: 12px 14px 14px; } .rb-card-t h3 { font: 400 19px/1.2 "Fraunces", serif; margin: 4px 0 8px; }
.rb-card-f { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--ink-2, var(--ink)); }
.rb-stars { color: var(--c2); letter-spacing: 1px; } .rb-stars i { font-style: normal; color: var(--line); }
.rb-sheet { align-items: flex-start; overflow-y: auto; padding: 30px 16px; }
.rb-page { position: relative; width: min(940px, 100%); background: var(--surface); border-radius: 24px; overflow: hidden; margin: auto; box-shadow: 0 40px 80px -30px rgb(0 0 0 / .45); }
.rb-x { position: absolute; top: 14px; right: 14px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgb(255 250 245 / .92); font-size: 22px; cursor: pointer; color: #2a2030; }
.rb-page-ph { position: relative; display: block; aspect-ratio: 16 / 8; cursor: pointer; overflow: hidden; }
.rb-phbtn { position: absolute; left: 18px; bottom: 16px; background: rgb(255 250 245 / .92); color: #3a2c30; font-size: 12.5px; padding: 6px 12px; border-radius: 999px; }
.rb-page-in { padding: 26px 34px 34px; }
.rb-page-in h2 { font: 400 44px/1.05 "Fraunces", serif; margin: 6px 0 12px; letter-spacing: -.5px; }
.rb-pmeta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.rb-serves { display: inline-flex; align-items: center; gap: 8px; } .rb-serves button { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); cursor: pointer; color: inherit; }
.rb-serves b { font: 400 18px "Fraunces", serif; min-width: 16px; text-align: center; }
.rb-rate button { border: 0; background: none; font-size: 18px; color: var(--line); cursor: pointer; padding: 0 1px; } .rb-rate button.on { color: var(--c2); }
.rb-heart2 { border: 1px solid var(--line); background: none; border-radius: 999px; padding: 5px 12px; cursor: pointer; color: inherit; font: inherit; font-size: 13px; } .rb-heart2.on { color: #D0455F; border-color: #D0455F; }
.rb-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; } .rb-tags span { background: var(--bg); border-radius: 999px; padding: 3px 10px; font-size: 12px; text-transform: capitalize; }
.rb-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 24px; }
.rb-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 34px; }
@media (max-width: 760px) { .rb-cols { grid-template-columns: 1fr; } .rb-page-in { padding: 22px; } }
.rb-page h3 { font: 11px "IBM Plex Mono", monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.rb-ings, .rb-c-side ul { list-style: none; margin: 0; padding: 0; }
.rb-ings li, .rb-c-side li { padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.rb-ings label, .rb-c-side label { display: flex; gap: 10px; align-items: baseline; cursor: pointer; }
.rb-ings input, .rb-c-side input { accent-color: var(--accent); }
.rb-ings input:checked + span, .rb-c-side input:checked + span { text-decoration: line-through; opacity: .5; }
.rb-steps { margin: 0; padding: 0; list-style: none; counter-reset: st; }
.rb-steps li { counter-increment: st; position: relative; padding: 0 0 16px 44px; font: 16px/1.55 "Fraunces", serif; }
.rb-steps li::before { content: counter(st); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--accent); font: 14px "IBM Plex Mono", monospace; display: grid; place-items: center; }
.rb-notes, .rb-made { margin-top: 22px; }
.rb-notes textarea { width: 100%; border: 0; background: color-mix(in srgb, var(--c2) 12%, var(--surface)); border-radius: 12px; padding: 12px 14px; font: italic 16px/1.5 "Fraunces", serif; color: var(--ink); resize: vertical; }
.rb-made p { margin: 0 0 8px; font: italic 16px "Fraunces", serif; }
.rb-dots { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 12px; } .rb-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); opacity: .85; }
.rb-cook { position: fixed; inset: 0; z-index: 210; background: var(--bg); display: grid; grid-template-columns: 320px 1fr; }
@media (max-width: 760px) { .rb-cook { grid-template-columns: 1fr; } .rb-c-side { display: none; } }
.rb-c-side { background: var(--surface); border-right: 1px solid var(--line); padding: 28px 24px; overflow: auto; }
.rb-c-side h3 { font: 400 24px/1.15 "Fraunces", serif; margin: 6px 0 16px; }
.rb-c-main { padding: 28px clamp(24px, 6vw, 90px); display: flex; flex-direction: column; }
.rb-c-top { display: flex; justify-content: space-between; align-items: center; }
.rb-c-bar { height: 4px; background: var(--line); border-radius: 99px; margin: 14px 0 0; overflow: hidden; } .rb-c-bar i { display: block; height: 100%; background: var(--accent); transition: width .3s; }
.rb-c-step { font: 400 clamp(26px, 3.6vw, 44px)/1.3 "Fraunces", serif; margin: auto 0; max-width: 26ch; }
.rb-c-timer { align-self: flex-start; border: 1.5px solid var(--accent); color: var(--accent); background: none; border-radius: 999px; padding: 10px 18px; font: inherit; font-size: 15px; cursor: pointer; margin-bottom: 22px; }
.rb-c-timer.on { background: var(--accent); color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.rb-c-nav { display: flex; justify-content: space-between; gap: 10px; } .rb-c-nav .btn { padding: 12px 22px; font-size: 15px; }

/* ---------- illustrated section overviews ---------- */
.hub-hero2 { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); border-radius: 24px; overflow: hidden; background: var(--accent); color: var(--accent-ink); margin-bottom: 22px; box-shadow: 0 24px 60px -34px rgb(40 20 30 / .5); }
@media (max-width: 800px) { .hub-hero2 { grid-template-columns: 1fr; } }
.hub-hero2-t { padding: 36px 38px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; }
.hub-hero2-t .label { color: color-mix(in srgb, var(--accent-ink) 75%, transparent); }
.hub-hero2-t h1 { font: 400 clamp(40px, 5vw, 62px)/1 "Fraunces", serif; letter-spacing: -1px; margin: 0; color: inherit; }
.hub-hero2-t p { font: italic 19px/1.4 "Fraunces", serif; margin: 0; opacity: .9; max-width: 32ch; }
.hub-hero2-art { aspect-ratio: 16 / 10; max-height: 320px; width: 100%; } .hub-hero2-art .scene { width: 100%; height: 100%; display: block; }
.hub-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.hub-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.hub-card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -24px rgb(40 20 30 / .5); }
.hub-card-art { aspect-ratio: 16 / 10; overflow: hidden; } .hub-card-art .scene { width: 100%; height: 100%; display: block; transition: transform .5s; }
.hub-card:hover .hub-card-art .scene { transform: scale(1.05); }
.hub-card-t { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.hub-card-t h3 { font: 400 21px/1.15 "Fraunces", serif; margin: 0; } .hub-card-t p { margin: 0; font-size: 13.5px; color: var(--ink-2, var(--ink)); }
.hub-card-go { margin-top: auto; padding-top: 6px; font: 11px "IBM Plex Mono", monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.hub-card.soon .hub-card-art { filter: saturate(.35) opacity(.75); } .hub-card.soon .hub-card-go { color: var(--muted); }
.vb[data-bg="dark"] .vb-word-t:not([style*="var(--ink)"]) { filter: brightness(1.9) saturate(.85); }
.fp-note-b { border: 0; background: none; color: inherit; opacity: .7; cursor: pointer; font-size: 13px; padding: 0 0 0 8px; } .fp-note-b:hover { opacity: 1; }
.fp-note-add { margin-top: 24px; border: 1px dashed rgb(255 248 242 / .6); background: rgb(255 248 242 / .08); color: inherit; border-radius: 999px; padding: 9px 16px; font: italic 15px "Fraunces", serif; cursor: pointer; }

.hub-hero3 { padding: 6px 2px 22px; } .hub-hero3 h1 { font: 400 clamp(40px, 5vw, 60px)/1 "Fraunces", serif; letter-spacing: -1px; margin: 6px 0 8px; } .hub-hero3 p { font: italic 19px/1.4 "Fraunces", serif; color: var(--ink-2, var(--ink)); margin: 0; }

/* ---------- a note to future self ---------- */
.fu-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); border-radius: 24px; overflow: hidden; background: #1C2752; color: #FBF4EA; box-shadow: 0 30px 70px -36px rgb(20 20 50 / .7); }
@media (max-width: 860px) { .fu-hero { grid-template-columns: 1fr; } .fu-hero-art { display: none; } }
.fu-hero-art { min-height: 320px; } .fu-hero-art .scene { width: 100%; height: 100%; display: block; }
.fu-hero-t { padding: 34px 38px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.fu-hero-t .label { color: rgb(251 244 234 / .7); }
.fu-hero-t h2 { font: italic 400 44px/1.05 "Fraunces", serif; margin: 0; } .fu-hero-t p { margin: 0 0 14px; font: 16px/1.5 "Fraunces", serif; opacity: .85; }
.fu-seals { display: flex; gap: 22px; flex-wrap: wrap; }
.fu-seal { border: 0; background: none; color: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0; font: italic 16px "Fraunces", serif; }
.fu-seal:disabled { opacity: .4; cursor: default; }
.fu-wax { position: relative; width: 132px; height: 132px; display: block; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.fu-wax .seal-art { width: 100%; height: 100%; display: block; overflow: visible; }
.fu-seal:not(:disabled) .fu-wax { animation: fu-bob 4s ease-in-out infinite; }
.fu-seal.bright .fu-wax { animation-delay: 2s; }
@keyframes fu-bob { 50% { transform: translateY(-4px) rotate(-3deg); } }
.fu-seal:hover:not(:disabled) .fu-wax { animation: none; transform: scale(1.07) rotate(-6deg); }
.fu-seal.pressed .fu-wax { animation: fu-crack .55s ease-in forwards; }
@keyframes fu-crack { 30% { transform: scale(.88) rotate(8deg); } 65% { clip-path: polygon(0 0, 46% 0, 54% 45%, 44% 100%, 0 100%); transform: scale(1.02) rotate(-6deg); } 100% { clip-path: polygon(0 0, 38% 0, 46% 45%, 36% 100%, 0 100%); opacity: 0; transform: scale(1.15) rotate(-18deg) translateX(-14px); } }
.fu-waiting { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 14px 18px; border-radius: 16px; background: color-mix(in srgb, var(--c2) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c2) 40%, transparent); }
.fu-waiting > span { font-size: 26px; } .fu-waiting > div { flex: 1; } .fu-waiting b { font: 400 17px "Fraunces", serif; }
.fu-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 24px 0 16px; }
.fu-tabs button { border: 1px solid var(--line); background: var(--surface); color: inherit; border-radius: 999px; padding: 6px 13px; font: inherit; font-size: 13px; cursor: pointer; } .fu-tabs button.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.fu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.fu-env { position: relative; cursor: pointer; display: flex; flex-direction: column; gap: 6px; transition: transform .25s; outline: none; }
.fu-env:hover, .fu-env:focus-visible { transform: translateY(-3px) rotate(-.8deg); }
.fu-env-art .env-art { width: 100%; height: auto; display: block; overflow: visible; }
.fu-env-t { padding: 0 6px; display: flex; flex-direction: column; gap: 2px; }
.fu-env-t .label { color: var(--accent); } .fu-env-t p { margin: 0; font: italic 15px/1.35 "Fraunces", serif; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .fu-env-t small { font-size: 11.5px; color: var(--muted); }
.fu-env.locked .fu-env-t p { color: var(--muted); }
.fu-env.locked .fu-env-art { filter: saturate(.6); }
.fu-empty { padding: 40px; text-align: center; font: italic 17px "Fraunces", serif; }
.fu-reveal { position: fixed; inset: 0; z-index: 220; display: grid; place-items: center; padding: 20px; opacity: 0; transition: opacity .3s; }
.fu-reveal.in { opacity: 1; }
.fu-reveal-art { position: absolute; inset: 0; } .fu-reveal-art .scene { width: 100%; height: 100%; } .fu-reveal-art::after { content: ""; position: absolute; inset: 0; background: rgb(20 14 30 / .5); backdrop-filter: blur(2px); }
.fu-letter { position: relative; width: min(560px, 100%); }
.fu-letter-env { position: absolute; left: -8%; right: -8%; bottom: -58%; z-index: 0; transform: translateY(30px); opacity: 0; transition: transform .5s ease, opacity .4s; }
.fu-letter-env .env-art { width: 100%; height: auto; display: block; overflow: visible; }
.fu-reveal.in .fu-letter-env { transform: none; opacity: 1; }
.fu-paper { z-index: 1; box-shadow: 12px 12px 0 rgb(66 28 72 / .28), 0 40px 80px -20px rgb(0 0 0 / .5) !important; border-radius: 3px; }
.fu-paper { position: relative; background: #FBF4EA; color: #3A2C2A; border-radius: 6px; padding: 38px 40px 28px; box-shadow: 0 40px 80px -20px rgb(0 0 0 / .6); transform: translateY(40px) scale(.96); transition: transform .6s cubic-bezier(.2, 1.2, .4, 1) .1s;
 }
.fu-reveal.in .fu-paper { transform: none; }
.fu-paper .label { color: #a07a6a; }
.fu-words { font: italic 400 25px/1.45 "Fraunces", serif; margin: 14px 0 18px; }
.fu-sign { font: italic 15px "Fraunces", serif; color: #8a6e66; text-align: right; }
.fu-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.fp-pastletter { display: inline-block; margin-top: 14px; margin-right: 8px; color: inherit; text-decoration: none; background: rgb(251 236 200 / .92); color: #4a3418; padding: 9px 16px; border-radius: 999px; font: 500 14px "IBM Plex Sans", sans-serif; box-shadow: 0 8px 24px rgb(0 0 0 / .18); }
.form-intro { margin: -4px 0 16px; color: var(--ink-2, var(--ink)); font-size: 14px; line-height: 1.5; }
.cal-connect { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.cal-btn { display: flex; align-items: center; gap: 10px; width: 100%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 12px; padding: 10px 12px; font: 500 14px "IBM Plex Sans", sans-serif; cursor: pointer; transition: border-color .2s, transform .2s; }
.cal-btn:hover { border-color: var(--accent); transform: translateY(-1px); } .cal-btn:disabled { opacity: .6; cursor: wait; }
.cal-btn.quiet { border-style: dashed; color: var(--ink-2, var(--ink)); justify-content: center; font-weight: 400; }
.cal-pv { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font: 600 13px "IBM Plex Sans", sans-serif; color: #fff; flex-shrink: 0; }
.cal-pv.google { background: #4C7BE0; } .cal-pv.microsoft { background: #2C6CB8; }
.cal-accts { list-style: none; margin: 0 0 12px; padding: 0; } .cal-accts li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cal-accts li > div { flex: 1; display: flex; flex-direction: column; font-size: 13.5px; } .cal-accts .muted { font-size: 12px; }
.cal-push { display: flex; align-items: center; gap: 6px; font-size: 12.5px; margin-top: 6px; } .cal-push input { accent-color: var(--accent); }

/* ---------- rest ---------- */
.fp-quiet-btn { margin-top: 14px; margin-right: 8px; border: 1px solid rgb(255 248 240 / .7); background: rgb(30 20 40 / .25); color: inherit; font: 500 14px "IBM Plex Sans", sans-serif; padding: 9px 16px; border-radius: 999px; cursor: pointer; backdrop-filter: blur(4px); }
.fp-quiet-btn:hover { background: rgb(30 20 40 / .4); }
.fp-quiet { display: grid; gap: 18px; margin-top: 22px; }
.fp-quiet-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); border-radius: 24px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
@media (max-width: 860px) { .fp-quiet-hero { grid-template-columns: 1fr; } }
.fp-quiet-art { min-height: 300px; } .fp-quiet-art .scene { width: 100%; height: 100%; display: block; }
.fp-quiet-t { padding: 30px 34px; display: flex; flex-direction: column; justify-content: center; }
.fp-quiet-t h2 { font: italic 400 40px/1.1 "Fraunces", serif; margin: 8px 0 8px; } .fp-quiet-t p { margin: 0; font: 17px/1.5 "Fraunces", serif; color: var(--ink-2, var(--ink)); }
.fp-quiet-ideas { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px; } .fp-quiet-ideas li { background: color-mix(in srgb, var(--accent-soft) 60%, var(--surface)); border-radius: 999px; padding: 5px 12px; font-size: 13px; }
.fp-quiet-every { display: flex; align-items: center; gap: 8px; font-size: 13.5px; } .fp-quiet-every input { accent-color: var(--accent); }
.rest-full, .rest-banner { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 16px; border-radius: 14px; background: color-mix(in srgb, var(--c3) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c3) 30%, transparent); font-size: 14px; }
.rest-full > span, .rest-banner > span { font-size: 22px; } .rest-full > div, .rest-banner > div { flex: 1; } .rest-full b, .rest-banner b { font: 400 16px "Fraunces", serif; }
.rest-banner { margin: 0 0 16px; background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 25%, transparent); }
.h-grid th.rest { color: var(--accent); } .h-grid th.rest i { display: block; font-style: normal; font-size: 11px; }
.fp-quiet .fp-r-art .art { aspect-ratio: 16 / 7; }
.pl-hours li.rest { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--accent-soft) 70%, transparent) 0 6px, transparent 6px 12px); border-radius: 6px; }
.pl-hours li.rest .pl-hc input { font-style: italic; color: var(--accent); }
.pl-rest { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 13px; padding: 0 6px; opacity: 0; transition: opacity .2s; }
.pl-hours li:hover .pl-rest, .pl-hours li.rest .pl-rest { opacity: 1; } .pl-hours li.rest .pl-rest { color: var(--accent); }
.pl-wrest { margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface)); }
.pl-wrest input { width: 100%; border: 0; border-bottom: 1px dashed color-mix(in srgb, var(--accent) 40%, transparent); background: none; font: italic 16px "Fraunces", serif; color: var(--ink); padding: 4px 0; outline: none; }
.pl-quiet { border: 1px solid var(--line); background: none; color: var(--ink-2, var(--ink)); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 12.5px; cursor: pointer; margin: -8px 0 14px; }
.pl-quiet.on { background: color-mix(in srgb, var(--accent-soft) 70%, var(--surface)); color: var(--accent); border-color: transparent; }
.pl-mast .rest-full { margin: 0 0 16px; }

/* ---------- self-care & meditation ---------- */
.sc-check { background: linear-gradient(120deg, color-mix(in srgb, var(--c5) 16%, var(--surface)), var(--surface)); border: 1px solid var(--line); border-radius: 22px; padding: 24px 26px; display: grid; gap: 14px; }
.sc-check h2 { font: italic 400 34px/1.1 "Fraunces", serif; margin: 4px 0 0; }
.sc-moods { display: flex; gap: 8px; flex-wrap: wrap; }
.sc-moods button { border: 1px solid var(--line); background: var(--surface); color: inherit; border-radius: 999px; padding: 8px 16px; font: italic 16px "Fraunces", serif; cursor: pointer; }
.sc-moods button.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.sc-sugg { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.sc-sg { text-align: left; border: 0; border-radius: 16px; padding: 14px 16px; background: color-mix(in srgb, var(--cc, var(--c5)) 16%, var(--surface)); color: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 2px; transition: transform .2s; }
.sc-sg:hover { transform: translateY(-2px); } .sc-sg span { font: 11px "IBM Plex Mono", monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); } .sc-sg b { font: 400 19px "Fraunces", serif; } .sc-sg em { font-style: normal; font-size: 12.5px; color: var(--ink-2, var(--ink)); }
.sc-two { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
@media (max-width: 900px) { .sc-two { grid-template-columns: 1fr; } }
.sc-prs { display: flex; flex-direction: column; }
.sc-pr { display: flex; align-items: center; gap: 14px; border: 0; border-bottom: 1px solid var(--line); background: none; color: inherit; padding: 12px 4px; text-align: left; cursor: pointer; font: inherit; }
.sc-pr:last-child { border-bottom: 0; } .sc-pr:hover b { color: var(--accent); }
.sc-pr div { flex: 1; display: flex; flex-direction: column; } .sc-pr b { font: 400 18px "Fraunces", serif; } .sc-pr em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.sc-pr-m { font: 12px "IBM Plex Mono", monospace; color: var(--muted); }
.sc-pr-dot { width: 26px; height: 26px; border-radius: 50%; background: color-mix(in srgb, var(--c5) 55%, var(--surface)); animation: sc-breathe var(--d) ease-in-out infinite; flex-shrink: 0; }
@keyframes sc-breathe { 0%, 100% { transform: scale(.6); } 50% { transform: scale(1); } }
.sc-timer { display: flex; flex-direction: column; gap: 14px; }
.sc-mins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sc-mins button { border: 1px solid var(--line); background: var(--bg); color: inherit; border-radius: 14px; padding: 12px 0; cursor: pointer; font: 400 24px "Fraunces", serif; display: flex; flex-direction: column; align-items: center; }
.sc-mins button small { font: 11px "IBM Plex Mono", monospace; color: var(--muted); } .sc-mins button.on { background: var(--ink); color: var(--surface); border-color: var(--ink); } .sc-mins button.on small { color: inherit; opacity: .7; }
.sc-int { display: flex; gap: 8px; align-items: center; font-size: 13.5px; } .sc-int input { accent-color: var(--accent); }
.sc-go { align-self: flex-start; padding: 10px 26px; }
.sc-cat { margin-bottom: 16px; } .sc-cat-h { display: flex; align-items: center; gap: 8px; font: 11px "IBM Plex Mono", monospace; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; } .sc-cat-h i { width: 8px; height: 8px; border-radius: 50%; background: var(--cc); }
.sc-menu { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.sc-item { background: color-mix(in srgb, var(--cc) 12%, var(--surface)); border-radius: 16px; padding: 14px 16px; cursor: pointer; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-height: 104px; transition: transform .2s; }
.sc-item:hover { transform: translateY(-2px); } .sc-item b { font: 400 17px/1.25 "Fraunces", serif; display: block; } .sc-item em { font-size: 12.5px; color: var(--ink-2, var(--ink)); font-style: italic; }
.sc-item-f { display: flex; justify-content: space-between; align-items: center; font: 11.5px "IBM Plex Mono", monospace; color: var(--muted); } .sc-media { color: var(--cc); }
.sc-days { display: grid; grid-template-columns: repeat(28, 1fr); gap: 4px; height: 44px; align-items: center; }
.sc-day { display: grid; place-items: center; height: 100%; } .sc-day i { width: 100%; aspect-ratio: 1; max-width: 26px; border-radius: 50%; background: var(--surface-2); position: relative; }
.sc-day i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--c5); transform: scale(var(--s)); }
.sc-day.today i { outline: 1.5px solid var(--accent); outline-offset: 2px; }
.sc-days-l { display: flex; justify-content: space-between; font: 11px "IBM Plex Mono", monospace; color: var(--muted); margin-top: 6px; }
.sc-r .sc-r-note { font: italic 17px "Fraunces", serif; color: var(--ink-2, var(--ink)); margin: 0 0 14px; }
.sc-embed iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; } .sc-embed iframe.sp { aspect-ratio: auto; height: 160px; } .sc-embed audio { width: 100%; }
.sc-play { position: fixed; inset: 0; z-index: 230; display: flex; flex-direction: column; justify-content: space-between; padding: 26px 30px; color: #F6F0E6; background: radial-gradient(110% 80% at 50% 40%, #3C5A4E 0%, #23362F 55%, #18241F 100%); }
.sc-p-top, .sc-p-bot { display: flex; justify-content: space-between; align-items: center; } .sc-play .label { color: rgb(246 240 230 / .7); } .sc-play .btn { background: rgb(255 255 255 / .12); color: inherit; border-color: transparent; }
.sc-p-mid { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.sc-orb { width: min(340px, 70vw); height: auto; overflow: visible; }
.sc-orb-halo { fill: rgb(168 207 107 / .16); } .sc-orb-core { fill: #A8CF6B; }
.sc-orb circle { transition: transform .15s linear; }
.sc-p-say { text-align: center; min-height: 80px; } .sc-p-say b { display: block; font: italic 400 34px "Fraunces", serif; } .sc-p-say span { font: 14px "IBM Plex Mono", monospace; opacity: .7; }
.sc-p-say p { font: italic 400 26px/1.35 "Fraunces", serif; max-width: 28ch; margin: 0; }
.sc-p-left { font: 15px "IBM Plex Mono", monospace; opacity: .75; }
.sc-p-done { text-align: center; } .sc-p-done h2 { font: italic 400 44px "Fraunces", serif; margin: 0 0 8px; } .sc-p-done p { font: 18px "Fraunces", serif; opacity: .85; }
.rp-edit { position: fixed; top: 24px; left: 26px; border: 0; background: none; color: inherit; opacity: .55; font: 13px "IBM Plex Sans", sans-serif; cursor: pointer; padding: 6px 8px; border-radius: 999px; transition: opacity .2s, background .2s; }
.rp-edit:hover, .rp-edit:focus-visible { opacity: 1; background: rgb(255 255 255 / .12); }
.nav-emo { width: 20px; text-align: center; font-size: 15px; line-height: 1; flex: none; margin-left: -4px; }

/* ---------- The Front Page hero, painted ---------- */
.fp-hero2 { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); border-radius: 28px; overflow: hidden; min-height: 420px; color: #3A2228; box-shadow: 0 30px 70px -40px rgb(40 20 30 / .5); }
.fp-hero2.evening, .fp-hero2.night { color: #FFF4EA; }
.fp-hero-paint { position: absolute; inset: 0; z-index: 0; } .fp-hero-paint .paint { width: 100%; height: 100%; display: block; }
.fp-hero-art { position: relative; z-index: 1; grid-column: 2; } .fp-hero-art .scene { width: 100%; height: 100%; display: block; }
.fp-hero2 .fp-hero-in { position: relative; z-index: 1; grid-column: 1; grid-row: 1; padding: 44px 46px; display: flex; flex-direction: column; justify-content: flex-end; max-width: none; }
.fp-hero2 .fp-time { z-index: 2; color: #FFF8F0; text-shadow: 0 2px 10px rgb(0 0 0 / .25); }
.fp-hero2 .fp-kicker { opacity: .75; }
.fp-hero2 .fp-note { border-left-color: currentColor; } .fp-hero2 .fp-note figcaption { opacity: .7; }
.fp-hero2 .fp-quiet-btn { border-color: currentColor; background: transparent; backdrop-filter: none; opacity: .85; }
.fp-hero2.morning .fp-begin, .fp-hero2.day .fp-begin { background: #3A2228; color: #FBEFE6; }
.fp-hero2.morning .fp-pastletter, .fp-hero2.day .fp-pastletter { box-shadow: none; background: rgb(255 255 255 / .7); }
.fp-hero2 .fp-note-add { border-color: currentColor; background: transparent; }
@media (max-width: 900px) { .fp-hero2 { grid-template-columns: 1fr; } .fp-hero-art { grid-column: 1; grid-row: 1; aspect-ratio: 16 / 9; } .fp-hero2 .fp-hero-in { grid-row: 2; padding: 26px 24px; } }
.fp-hero2 .fp-title, .fp-hero2 .fp-date, .fp-hero2 .fp-kicker, .fp-hero2 .fp-note, .fp-hero2 blockquote { color: inherit; text-shadow: none; }
.fp-hero2 .fp-title { font-size: clamp(42px, 4.6vw, 68px); }
.fp-hero2 .fp-hero-in > button, .fp-hero2 .fp-hero-in > a { align-self: flex-start; }
.fp-hero2 .fp-hero-in .fp-quiet-btn + .fp-pastletter, .fp-hero2 .fp-hero-in .fp-pastletter + .fp-begin { margin-top: 8px; }
.fp-hero-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; } .fp-hero-acts > * { margin: 0 !important; }
.fp-wins2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fp-win2 { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px; display: flex; align-items: center; gap: 12px; }
.fp-win2 .rosette { width: 58px; height: 58px; flex: none; overflow: visible; }
.fp-win2 h3 { font: 400 18px/1.25 "Fraunces", serif; margin: 0; }
@media (max-width: 900px) { .fp-wins2 { grid-template-columns: 1fr; } }

/* postcards painted */
.fp-postcard { overflow: hidden; }
.fp-pc-art { position: absolute; inset: 0; z-index: 0; border-radius: inherit; overflow: hidden; }
.fp-pc-art svg { width: 100%; height: 100%; display: block; }
.fp-pc-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 38%, rgb(30 12 22 / .55)); }
.fp-postcard > :not(.fp-pc-art) { position: relative; z-index: 1; }


/* postcards: quiet painted panels */
.fp-postcard { min-height: 128px; color: #2B1E2A; box-shadow: none; }
.fp-postcard:hover { transform: translateY(-2px); }
.fp-pc-art::after { display: none; }
.fp-pc-art .paint { width: 100%; height: 100%; display: block; }
.fp-postcard .fp-pc-k { opacity: .65; }

/* ---------- skincare ---------- */
:root { --sk-pink:#EBA6A8; --sk-blush:#F4C9C2; --sk-rose:#D66C7B; --sk-butter:#F3CB55; --sk-lemon:#F6E07A; --sk-orange:#EE9338; --sk-terra:#C65A36; --sk-sky:#8DB7EA; --sk-ice:#CFE1F4; --sk-lime:#A8CF6B; --sk-sage:#93B48C; --sk-lilac:#A98CC9; --sk-cream:#F7ECDC; --sk-white:#EFE6DA; }
.days-pick { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.days-pick label { cursor: pointer; } .days-pick input { position: absolute; opacity: 0; pointer-events: none; }
.days-pick span { display: inline-grid; place-items: center; min-width: 44px; padding: 7px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; }
.days-pick input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.days-pick input:focus-visible + span { outline: 2px solid var(--c1); outline-offset: 2px; }
.sk-today { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 22px; }
.sk-rt { border-radius: 22px; padding: 22px 22px 18px; background: #FBEBDD; position: relative; overflow: hidden; }
.sk-rt.pm { background: #2A2D55; color: #F6EEF2; }
.sk-rt-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sk-rt h2 { margin: 4px 0 0; font: italic 30px/1.1 "Fraunces", serif; }
.sk-rt .label { color: inherit; opacity: .7; }
.sk-rt-n { font: italic 17px "Fraunces", serif; opacity: .8; white-space: nowrap; }
.sk-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sk-step { width: 100%; display: flex; align-items: center; gap: 12px; padding: 6px 12px 6px 6px; border: 0; border-radius: 14px; background: rgb(255 255 255 / .55); color: inherit; text-align: left; cursor: pointer; transition: background .2s, opacity .2s; }
.sk-rt.pm .sk-step { background: rgb(255 255 255 / .07); }
.sk-step:hover { background: rgb(255 255 255 / .85); } .sk-rt.pm .sk-step:hover { background: rgb(255 255 255 / .14); }
.sk-b { width: 38px; height: 46px; flex: none; } .sk-b svg { width: 100%; height: 100%; display: block; }
.sk-st-t { flex: 1; display: flex; flex-direction: column; } .sk-st-t b { font-weight: 500; font-size: 14.5px; } .sk-st-t em { font: italic 12.5px "Fraunces", serif; opacity: .7; }
.sk-tick { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid currentColor; opacity: .45; flex: none; position: relative; }
.sk-step.on .sk-tick { opacity: 1; background: currentColor; }
.sk-step.on .sk-tick::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #FBEBDD; font-size: 13px; }
.sk-rt.pm .sk-step.on .sk-tick::after { color: #2A2D55; }
.sk-step.on .sk-st-t b { text-decoration: line-through; text-decoration-thickness: 1px; opacity: .65; }
.sk-empty { margin: 8px 0; }
.sk-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.sk-wd { border-radius: 14px; background: var(--paper-2, #F7F1EA); padding: 10px 8px; min-height: 110px; display: flex; flex-direction: column; gap: 6px; }
.sk-wd.today { background: #FBEBDD; box-shadow: inset 0 0 0 1.5px var(--c1); }
.sk-wd-h { font: 10.5px "IBM Plex Mono", monospace; letter-spacing: .1em; text-transform: uppercase; opacity: .7; display: flex; justify-content: space-between; }
.sk-chip { font-size: 12px; line-height: 1.25; padding: 5px 8px; border-radius: 10px; background: color-mix(in srgb, var(--cc) 45%, white); }
.sk-rest { font: italic 12.5px "Fraunces", serif; opacity: .55; }
.sk-daily { margin: 14px 0 0; font-size: 13.5px; } .sk-daily .label { margin-right: 8px; }
.sk-two { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; margin-top: 22px; }
.sk-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.sk-cal b { font: 10.5px "IBM Plex Mono", monospace; opacity: .55; font-weight: 400; }
.sk-d { position: relative; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; }
.sk-d em { position: relative; font-style: normal; font-size: 11.5px; z-index: 1; }
.sk-d i, .sk-legend i { position: absolute; inset: 8%; border-radius: 50%; }
.sk-d i.am, .sk-legend i.am { clip-path: inset(0 50% 0 0); } .sk-d i.pm, .sk-legend i.pm { clip-path: inset(0 0 0 50%); }
.sk-d i.no, .sk-d i.none { background: transparent; }
.sk-d i.am.all, .sk-legend i.am.all { background: #F3CB55; } .sk-d i.pm.all, .sk-legend i.pm.all { background: #A98CC9; }
.sk-d i.am.some, .sk-legend i.am.some { background: #F3CB5566; } .sk-d i.pm.some { background: #A98CC966; }
.sk-d.today { box-shadow: inset 0 0 0 1.5px var(--ink); } .sk-d.future em { opacity: .35; }
.sk-legend { display: flex; gap: 16px; margin-top: 12px; font-size: 12px; opacity: .75; }
.sk-legend span { display: inline-flex; align-items: center; gap: 6px; } .sk-legend i { position: relative; display: inline-block; width: 14px; height: 14px; inset: auto; }
.sk-times { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.sk-times label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; }
.sk-times input { font: inherit; font-size: 18px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: inherit; }
.sk-sw { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px dashed var(--line); cursor: pointer; }
.sk-sw > span { flex: 1; display: flex; flex-direction: column; gap: 2px; } .sk-sw b { font-weight: 500; font-size: 14px; } .sk-sw em { font-style: normal; font-size: 12.5px; opacity: .7; }
.sk-sw input { width: 18px; height: 18px; accent-color: var(--c1); }
.sk-calrow { cursor: default; }
.sk-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.sk-p { display: flex; gap: 12px; align-items: center; padding: 12px 14px 12px 8px; border-radius: 18px; background: var(--card, #fff); border: 1px solid var(--line); cursor: pointer; text-align: left; font: inherit; color: inherit; transition: transform .2s; }
.sk-p:hover { transform: translateY(-2px); } .sk-p.paused { opacity: .55; }
.sk-p-art { width: 64px; height: 80px; flex: none; } .sk-p-art svg { width: 100%; height: 100%; display: block; }
.sk-p-b { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .sk-p-b b { font: italic 18px/1.15 "Fraunces", serif; font-weight: 400; } .sk-p-b .muted { font-size: 12.5px; }
.sk-p-d { font-size: 12px; opacity: .75; margin-top: 2px; }
.sk-p-u { font-size: 12px; opacity: .7; } .sk-p-u.soon { color: var(--c4); opacity: 1; } .sk-p-u.past { color: #B3392F; opacity: 1; }
.sk-add { justify-content: center; border-style: dashed; background: transparent; min-height: 104px; flex-direction: column; gap: 4px; font-size: 13px; opacity: .8; } .sk-add span { font-size: 22px; }
@media (max-width: 860px) { .sk-today, .sk-two { grid-template-columns: 1fr; } .sk-week { grid-template-columns: repeat(4, 1fr); } }
.sk-d { width: 42px; height: 42px; aspect-ratio: auto; justify-self: center; }
.sk-cal { row-gap: 8px; }

/* ---------- sinking funds: piggy banks ---------- */
.pig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.pig-card { position: relative; background: var(--card, #fff); border: 1px solid var(--line); border-radius: 22px; padding: 20px 20px 18px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pig-edit { position: absolute; top: 10px; right: 10px; opacity: .5; } .pig-card:hover .pig-edit { opacity: 1; }
.pig-art { position: relative; width: 100%; max-width: 220px; margin-bottom: 6px; }
.piggy { width: 100%; height: auto; display: block; overflow: visible; }
.pig-fill { transition: transform 1.4s cubic-bezier(.3, .7, .2, 1); }
.pig-coin { opacity: 0; }
.pig-card.drop .pig-coin { animation: pigdrop 1s ease-in .1s both; }
@keyframes pigdrop { 0% { opacity: 0; transform: translateY(-40px); } 20% { opacity: 1; } 70% { opacity: 1; transform: translateY(24px); } 100% { opacity: 0; transform: translateY(34px); } }
.pig-pct { position: absolute; left: 50%; top: 56%; transform: translate(-50%, -50%); font: italic 22px "Fraunces", serif; color: #3A2520; }
.pig-card h3 { margin: 0; font: italic 22px/1.15 "Fraunces", serif; font-weight: 400; }
.pig-amt b { font: 500 17px "IBM Plex Sans", sans-serif; } .pig-amt span { opacity: .6; font-size: 13.5px; }
.pig-meta { font-size: 12.5px; opacity: .7; }
.pig-card.full .pig-meta { opacity: 1; color: var(--c5); }
.pig-add { margin-top: 10px; }
@media (prefers-reduced-motion: reduce) { .pig-fill { transition: none; } .pig-card.drop .pig-coin { animation: none; } }
.field.switch { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--paper-2, #F7F1EA); border: 1px solid var(--line); cursor: pointer; }
.field.switch input { position: absolute; opacity: 0; pointer-events: none; }
.field.switch i { flex: none; width: 46px; height: 26px; border-radius: 999px; background: #D9CFC6; position: relative; transition: background .2s; }
.field.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .2); transition: transform .2s; }
.field.switch input:checked + i { background: var(--c1); } .field.switch input:checked + i::after { transform: translateX(20px); }
.field.switch input:focus-visible + i { outline: 2px solid var(--c1); outline-offset: 2px; }
.field.switch span { display: flex; flex-direction: column; gap: 2px; text-transform: none; letter-spacing: 0; } .field.switch b { font-weight: 500; font-size: 14px; } .field.switch em { font-style: normal; font-size: 12.5px; opacity: .7; }

/* ---------- Financial Abundance: illustrated sections ---------- */
.wjump { display: flex; gap: 8px; flex-wrap: wrap; margin: -4px 0 18px; }
.wjump a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: inherit; text-decoration: none; }
.wjump a:hover { background: var(--card, #fff); }
.wsec { margin: 0 0 40px; scroll-margin-top: 20px; }
.wsec-h { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; }
.wsec-art { width: 168px; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; flex: none; display: block; }
.wsec-art svg { width: 100%; height: 100%; display: block; }
.wsec-t { flex: 1; min-width: 0; } .wsec-t h2 { margin: 0; font: italic 32px/1.1 "Fraunces", serif; font-weight: 400; } .wsec-t p { margin: 6px 0 0; max-width: 560px; opacity: .75; font-size: 14px; }
.wsec-a { display: flex; gap: 8px; align-items: center; }
@media (max-width: 720px) { .wsec-h { flex-wrap: wrap; } .wsec-art { width: 120px; } }

/* this month */
.wm-hero { margin-bottom: 18px; }
.wm-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.wm-t { position: relative; border-radius: 22px; padding: 22px 24px; overflow: hidden; color: #2B1E2A; min-height: 120px; display: flex; flex-direction: column; justify-content: flex-end; }
.wm-paint { position: absolute; inset: 0; z-index: 0; } .wm-paint svg { width: 100%; height: 100%; display: block; }
.wm-t > :not(.wm-paint) { position: relative; z-index: 1; } .wm-t .label { color: inherit; opacity: .7; }
.wm-t b { font: 400 42px/1.05 "Fraunces", serif; letter-spacing: -.01em; }
.wm-flow { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: rgb(0 0 0 / .06); margin: 18px 0 10px; }
.wm-flow i { display: block; height: 100%; } .wm-flow .o { background: #EBA6A8; } .wm-flow .k { background: #F3CB55; }
.wm-line { margin: 0; font: italic 19px/1.4 "Fraunces", serif; } .wm-line b { font-style: normal; font-weight: 500; }
.wm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.wm-bubbles { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 2px; padding: 6px 0; }
.wm-bub { position: relative; width: var(--d); height: var(--d); display: grid; place-items: center; text-align: center; }
.wm-bub .blob { position: absolute; inset: 0; width: 100%; height: 100%; }
.wm-bub span { position: relative; display: flex; flex-direction: column; line-height: 1.15; padding: 0 8px; color: #2B1E2A; }
.wm-bub b { font: 500 13.5px "IBM Plex Sans", sans-serif; } .wm-bub em { font: italic 12px "Fraunces", serif; opacity: .8; }
.wm-pots { display: grid; gap: 4px; }
.wm-pot { display: grid; grid-template-columns: minmax(90px, 1fr) 2fr auto; align-items: center; gap: 14px; padding: 9px 8px; border: 0; border-radius: 12px; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.wm-pot:hover { background: rgb(0 0 0 / .03); }
.wm-pot-n { font-size: 14px; } .wm-pot-l { font-size: 13px; opacity: .75; white-space: nowrap; min-width: 84px; text-align: right; }
.wm-pot.over .wm-pot-l { color: var(--c4); opacity: 1; }
.wm-tube { height: 18px; border-radius: 999px; background: rgb(0 0 0 / .05); overflow: hidden; display: block; }
.wm-tube i { display: block; height: 100%; border-radius: 999px; background: var(--pc); }
.wm-pot.over .wm-tube i { background: #EE9338; }
.wm-soon { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wm-soon li { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px; font-size: 14px; }
.wm-day { display: flex; flex-direction: column; align-items: center; padding: 6px 0; border-radius: 12px; background: #FBEBDD; font: 10px "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .08em; }
.wm-day b { font: 400 18px "Fraunces", serif; letter-spacing: 0; }
@media (max-width: 860px) { .wm-trio, .wm-grid { grid-template-columns: 1fr; } }
.nw-card { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: center; }
.nw-big b { display: block; font: 400 48px/1.05 "Fraunces", serif; margin: 4px 0 6px; } .nw-big span { font-size: 13px; }
.nw-bars { display: grid; gap: 14px; }
.nw-row { display: grid; grid-template-columns: 70px 1fr auto; gap: 14px; align-items: center; font-size: 14px; }
.nw-bar { display: flex; height: 38px; border-radius: 12px; overflow: hidden; background: rgb(0 0 0 / .04); }
.nw-bar i { display: flex; align-items: center; padding: 0 10px; overflow: hidden; } .nw-bar em { font: italic 12.5px "Fraunces", serif; white-space: nowrap; color: #2B1E2A; }
.w-more { margin-top: 12px; } .w-more summary { cursor: pointer; font-size: 13px; opacity: .75; }
@media (max-width: 860px) { .nw-card { grid-template-columns: 1fr; } }

/* ---------- Nourish: ingredients & kitchen ---------- */
.pn-top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; margin-bottom: 18px; }
.pn-recipe { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; border-top: 1px dashed var(--line); color: inherit; text-decoration: none; }
.pn-recipe:first-of-type { border-top: 0; }
.pn-recipe b { font: italic 19px "Fraunces", serif; font-weight: 400; } .pn-recipe span { font-size: 12.5px; opacity: .7; grid-column: 1; }
.pn-recipe i { grid-column: 2; grid-row: 1 / 3; align-self: center; width: 44px; height: 44px; border-radius: 50%; background: conic-gradient(#A8CF6B var(--p), rgb(0 0 0 / .06) 0); }
.pn-lowl { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pn-lowl li { display: flex; align-items: center; gap: 10px; font-size: 14px; } .pn-lowl em { font: italic 12.5px "Fraunces", serif; opacity: .65; margin-right: auto; }
.pn-shelves { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.pn-shelf { background: var(--card, #fff); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.pn-sh-h { position: relative; display: flex; align-items: center; gap: 10px; padding: 16px 18px; }
.pn-sh-paint { position: absolute; inset: 0; z-index: 0; opacity: .7; } .pn-sh-paint svg { width: 100%; height: 100%; display: block; }
.pn-sh-h > :not(.pn-sh-paint) { position: relative; z-index: 1; }
.pn-sh-h h3 { margin: 0; font: italic 22px "Fraunces", serif; font-weight: 400; flex: 1; } .pn-sh-n { font: 12px "IBM Plex Mono", monospace; opacity: .6; }
.pn-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 4px; padding: 12px; }
.pn-item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border: 0; border-radius: 14px; background: none; font: inherit; color: inherit; cursor: pointer; text-align: center; user-select: none; -webkit-touch-callout: none; }
.pn-item:hover { background: rgb(0 0 0 / .035); }
.pn-jar { width: 46px; height: 55px; } .pn-jar svg { width: 100%; height: 100%; display: block; }
.pn-nm { font-size: 13px; line-height: 1.2; } .pn-item em { font: italic 11.5px "Fraunces", serif; opacity: .6; }
.pn-item.lv-low em { color: var(--c4); opacity: 1; } .pn-item.lv-out { opacity: .6; } .pn-item.lv-out em { color: #B3392F; opacity: 1; }
.pn-empty { grid-column: 1 / -1; margin: 6px; font-size: 13px; }
.pn-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pn-tlist { display: flex; flex-wrap: wrap; gap: 8px; }
.pn-tool { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); font: inherit; color: inherit; cursor: pointer; text-align: left; }
.pn-tool b { font-weight: 500; font-size: 14px; } .pn-tool em { font: italic 12.5px "Fraunces", serif; opacity: .7; }
@media (max-width: 860px) { .pn-top, .pn-shelves, .pn-tools { grid-template-columns: 1fr; } }

/* ---------- Nourish: supplements ---------- */
.sp-today { border-radius: 24px; padding: 24px; background: #FBEBDD; margin-bottom: 20px; }
.sp-today-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.sp-today h2 { margin: 4px 0 0; font: italic 30px "Fraunces", serif; font-weight: 400; }
.sp-fortnight { display: flex; gap: 5px; } .sp-fortnight i { width: 14px; height: 14px; border-radius: 50%; background: rgb(0 0 0 / .07); }
.sp-fortnight i.all { background: #EE9338; } .sp-fortnight i.some { background: #F3CB55; } .sp-fortnight i.none { background: transparent; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .1); }
.sp-moments { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.sp-mo { background: rgb(255 255 255 / .6); border-radius: 18px; padding: 14px; } .sp-mo .label { margin-bottom: 8px; }
.sp-caps { display: grid; gap: 6px; }
.sp-cap { display: grid; grid-template-columns: 42px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 6px 10px 6px 4px; border: 0; border-radius: 14px; background: transparent; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.sp-cap:hover { background: rgb(255 255 255 / .7); }
.sp-cap .sp-art { grid-row: 1 / 3; width: 42px; height: 42px; transition: transform .3s; } .sp-cap b { font-weight: 500; font-size: 14px; } .sp-cap em { font: italic 12px "Fraunces", serif; opacity: .65; }
.sp-cap.on { opacity: .55; } .sp-cap.on b { text-decoration: line-through; } .sp-cap.on .sp-art { transform: rotate(30deg) scale(.85); }
.sp-art svg { width: 100%; height: 100%; display: block; }
.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.sp-card { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 18px; border-radius: 20px; background: var(--card, #fff); border: 1px solid var(--line); cursor: pointer; }
.sp-card.paused { opacity: .55; } .sp-card:hover { transform: translateY(-2px); transition: transform .2s; }
.sp-art.big { width: 64px; height: 64px; }
.sp-card b { display: block; font: italic 21px/1.15 "Fraunces", serif; font-weight: 400; } .sp-card .muted { font-size: 12.5px; }
.sp-why { margin: 8px 0 6px; font-size: 13.5px; } .sp-when { font-size: 12px; opacity: .7; display: block; }
.sp-stock { display: block; height: 6px; border-radius: 999px; background: rgb(0 0 0 / .06); margin-top: 10px; overflow: hidden; } .sp-stock i { display: block; height: 100%; background: #A8CF6B; }
.sp-stock.low i { background: #EE9338; }
.sp-left { font-size: 12px; opacity: .7; display: block; margin-top: 4px; } .sp-left.low { color: var(--c4); opacity: 1; }

/* ---------- Nourish: restaurants ---------- */
.rs-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.rs-occ { display: flex; gap: 6px; flex-wrap: wrap; }
.rs-occ button { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: none; font: inherit; font-size: 12.5px; color: inherit; cursor: pointer; }
.rs-occ button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.rs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.rs-card { border-radius: 22px; overflow: hidden; background: var(--card, #fff); border: 1px solid var(--line); cursor: pointer; display: flex; flex-direction: column; transition: transform .2s, box-shadow .3s; }
.rs-card:hover { transform: translateY(-3px); } .rs-card.picked { box-shadow: 0 0 0 3px var(--c1); }
.rs-paint { position: relative; height: 92px; } .rs-paint svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.rs-cuis { position: absolute; left: 18px; bottom: 12px; font: italic 17px "Fraunces", serif; color: #2B1E2A; }
.rs-price { position: absolute; right: 16px; top: 12px; font: 12px "IBM Plex Mono", monospace; color: #2B1E2A; opacity: .7; }
.rs-b { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.rs-b h3 { margin: 0; font: italic 24px/1.1 "Fraunces", serif; font-weight: 400; } .rs-b .muted { font-size: 12.5px; }
.rs-hearts { color: #D66C7B; letter-spacing: 2px; font-size: 15px; }
.rs-order { margin: 6px 0 0; font-size: 13.5px; } .rs-order .label { margin-right: 6px; }
.rs-note { margin: 4px 0 0; font: italic 14px "Fraunces", serif; opacity: .8; }
.rs-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; } .rs-tags span { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; background: rgb(0 0 0 / .05); }
.rs-act { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; }
.gr-tabs { margin: -6px 0 18px; display: inline-flex; }
.pn-auto { margin: 0 0 16px; padding: 12px 16px; border-radius: 14px; background: #FBEBDD; font: italic 15px/1.45 "Fraunces", serif; }

/* ---------- the door: sign in, no planner yet, welcome ---------- */
.door { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--paper); }
.door-art { position: relative; overflow: hidden; }
.door-art > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.door-brand { position: absolute; left: 36px; top: 32px; display: flex; flex-direction: column; color: #2B1E2A; background: rgb(251 247 241 / .82); padding: 12px 16px; border-radius: 14px; }
.door-brand b { font: 400 24px "Fraunces", serif; } .door-brand b em { font-style: italic; }
.door-brand span { font: 10.5px "IBM Plex Mono", monospace; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.door-main { display: grid; place-items: center; padding: 48px 28px; }
.door-box { width: min(420px, 100%); }
.door-box h1 { font: 400 44px/1.05 "Fraunces", serif; margin: 10px 0 12px; }
.door-box > p { margin: 0 0 22px; opacity: .8; line-height: 1.55; }
.door-form { display: flex; flex-direction: column; gap: 10px; }
.door-form input { font: inherit; font-size: 16px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card, #fff); color: inherit; }
.door-form .btn { padding: 14px; font-size: 15px; justify-content: center; }
.door-links { display: flex; flex-direction: column; gap: 8px; margin-top: 28px; padding-top: 20px; border-top: 1px dashed var(--line); font-size: 14px; }
.door-links a { color: inherit; } .door-links a:first-child { font: italic 17px "Fraunces", serif; }
.door-sent { padding: 18px 20px; border-radius: 16px; background: #FBEBDD; } .door-sent em { font: italic 22px "Fraunces", serif; } .door-sent p { margin: 6px 0 12px; }
.door-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.door-code summary { cursor: pointer; font-size: 13.5px; opacity: .75; margin-bottom: 10px; }
.door-welcome { display: flex; flex-direction: column; gap: 18px; }
.door-welcome label > span, .door-welcome legend { display: block; font-size: 13px; margin-bottom: 6px; opacity: .75; }
.door-welcome input[type=text] { width: 100%; font: inherit; font-size: 16px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card, #fff); color: inherit; }
.door-welcome fieldset { border: 0; padding: 0; margin: 0; }
.door-pals { display: flex; flex-wrap: wrap; gap: 8px; }
.door-pals input { position: absolute; opacity: 0; }
.door-pal { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer; font-size: 13.5px; }
.door-pal i { width: 20px; height: 20px; border-radius: 50%; background: var(--c1); }
.door-pals input:checked + .door-pal { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.door-pals input:focus-visible + .door-pal { outline: 2px solid var(--c1); outline-offset: 2px; }
.door-welcome .btn { padding: 14px; justify-content: center; }
@media (max-width: 820px) { .door { grid-template-columns: 1fr; grid-template-rows: 38vh auto; } .door-brand { left: 20px; top: 20px; } .door-box h1 { font-size: 36px; } }
