/* Hearth — warm & homely. Tokens first; everything below uses them. */
:root {
  --bg: #FBF6EE;
  --surf: #FFFFFF;
  --surf-2: #F4ECE1;
  --line: #EADFD1;
  --ink: #3B2F27;
  --ink-2: #6E6056;
  --ink-3: #9C8D80;
  --accent: #C8643B;
  --accent-press: #B0552F;
  --accent-soft: #F7E3D8;
  --on-accent: #FFFFFF;
  --sage: #5F8A63;
  --sage-soft: #E2ECDF;
  --morning: #CF8F22;
  --morning-soft: #FBEFD6;
  --afternoon: #C8643B;
  --afternoon-soft: #F8E4D9;
  --evening: #56679A;
  --evening-soft: #E3E7F3;
  --danger: #B5524F;
  --shadow: 0 1px 2px rgba(59, 47, 39, .05), 0 8px 24px rgba(59, 47, 39, .07);
  --shadow-up: 0 -8px 30px rgba(59, 47, 39, .10);
  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --display: 'Fraunces', Georgia, serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1B1613;
    --surf: #26201B;
    --surf-2: #30281F;
    --line: #3C3229;
    --ink: #F4EBE1;
    --ink-2: #C9BAAC;
    --ink-3: #918275;
    --accent: #E07A4F;
    --accent-press: #C8643B;
    --accent-soft: #3E2A20;
    --on-accent: #1B1613;
    --sage: #8DB58F;
    --sage-soft: #26332A;
    --morning: #E7AE4A;
    --morning-soft: #3A2E1A;
    --afternoon: #E07A4F;
    --afternoon-soft: #3E2A20;
    --evening: #93A3D6;
    --evening-soft: #262B3D;
    --danger: #E08380;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-up: 0 -8px 30px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 500 16px/1.4 var(--body);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
input, select { font: inherit; color: var(--ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; letter-spacing: -.01em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
svg { display: block; }

#app { max-width: 560px; margin: 0 auto; min-height: 100dvh; }
main { padding: calc(18px + var(--safe-t)) 16px calc(112px + var(--safe-b)); }

/* ---------- header ---------- */
.hello { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 6px 2px 18px; }
.eyebrow { margin: 0 0 4px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.hello h1 { font-size: 28px; line-height: 1.12; }
.ring { position: relative; flex: none; width: 64px; height: 64px; }
.ring svg { transform: rotate(-90deg); }
.ring .track { stroke: var(--surf-2); }
.ring .bar { stroke: var(--sage); transition: stroke-dashoffset .6s cubic-bezier(.2, .8, .2, 1); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 700 15px var(--body); }

.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 2px 18px; }
.page-head h1 { font-size: 30px; }

/* ---------- week strip ---------- */
.week { display: flex; align-items: center; gap: 4px; margin-bottom: 14px; }
.week .nav { flex: none; width: 30px; height: 56px; display: grid; place-items: center; color: var(--ink-3); border-radius: 10px; }
.week .nav:active { background: var(--surf-2); }
.days { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.day {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 7px 0 8px; border-radius: 14px; color: var(--ink-2);
  transition: background .2s, color .2s;
}
.day small { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.day strong { font-size: 17px; font-weight: 800; }
.day i { width: 22px; height: 4px; border-radius: 4px; background: var(--surf-2); overflow: hidden; display: block; }
.day i span { display: block; height: 100%; background: var(--sage); border-radius: inherit; }
.day.today strong { color: var(--accent); }
.day.sel { background: var(--ink); color: var(--bg); }
.day.sel small { color: inherit; opacity: .7; }
.day.sel strong { color: inherit; }
.day.sel i { background: rgba(255, 255, 255, .2); }

.viewing {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: -4px 0 14px; padding: 10px 14px; border-radius: var(--r-sm);
  background: var(--surf-2); color: var(--ink-2); font-size: 14px; font-weight: 700;
}
.viewing button { color: var(--accent); font-weight: 800; }

/* ---------- chips ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 16px; padding: 2px 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 14px; border-radius: 999px;
  background: var(--surf); border: 1.5px solid var(--line);
  font-size: 14px; font-weight: 700; color: var(--ink-2); white-space: nowrap;
}
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip .av { width: 20px; height: 20px; font-size: 11px; }

/* ---------- avatar ---------- */
.av {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: inline-grid; place-items: center;
  font-size: 12px; font-weight: 800; color: #fff; background: var(--ink-3);
  text-transform: uppercase;
}
.av.any { background: var(--surf-2); color: var(--ink-3); }
.av.lg { width: 44px; height: 44px; font-size: 18px; }

/* ---------- timers ---------- */
.timers { display: grid; gap: 10px; margin-bottom: 16px; }
.timer-card {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 12px 14px; border-radius: var(--r-md);
  background: var(--ink); color: var(--bg);
}
.timer-card .ico { font-size: 22px; }
.timer-card .t { flex: 1; min-width: 0; }
.timer-card .t b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.timer-card .t small { opacity: .7; font-size: 13px; font-weight: 700; }
.timer-card .cd { font: 600 24px var(--display); font-variant-numeric: tabular-nums; }
.timer-card.up { background: var(--accent); color: var(--on-accent); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.015); } }

/* ---------- slot cards ---------- */
.slot { background: var(--surf); border-radius: var(--r-lg); box-shadow: var(--shadow); margin-bottom: 14px; overflow: hidden; }
.slot-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 10px 16px; }
.slot-ico { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; }
.slot[data-slot=morning] .slot-ico { background: var(--morning-soft); color: var(--morning); }
.slot[data-slot=afternoon] .slot-ico { background: var(--afternoon-soft); color: var(--afternoon); }
.slot[data-slot=evening] .slot-ico { background: var(--evening-soft); color: var(--evening); }
.slot-title { flex: 1; min-width: 0; }
.slot-title h2 { font-size: 20px; }
.slot-title p { margin: 1px 0 0; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.slot-meter { height: 4px; margin: 0 16px 4px; border-radius: 4px; background: var(--surf-2); overflow: hidden; }
.slot-meter span { display: block; height: 100%; border-radius: inherit; transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.slot[data-slot=morning] .slot-meter span { background: var(--morning); }
.slot[data-slot=afternoon] .slot-meter span { background: var(--afternoon); }
.slot[data-slot=evening] .slot-meter span { background: var(--evening); }
.add-btn { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--ink-2); background: var(--surf-2); }
.add-btn:active { transform: scale(.94); }
.slot-empty { padding: 8px 16px 18px; color: var(--ink-3); font-size: 14px; font-weight: 600; }
.slot.complete .slot-title p { color: var(--sage); }

.items { list-style: none; margin: 0; padding: 4px 0 6px; }
.item { display: flex; align-items: center; gap: 4px; padding: 0 10px 0 4px; min-height: 64px; position: relative; }
.item + .item::before { content: ''; position: absolute; top: 0; left: 64px; right: 14px; border-top: 1px solid var(--line); }
.check { flex: none; width: 52px; height: 56px; display: grid; place-items: center; }
.check i {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--ink-3);
  display: grid; place-items: center; color: transparent;
  transition: background .2s, border-color .2s, transform .2s;
}
.check:active i { transform: scale(.88); }
.item.done .check i { background: var(--sage); border-color: var(--sage); color: #fff; }
.item.pop .check i { animation: pop .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { 0% { transform: scale(.6); } 100% { transform: scale(1); } }
.item.future .check { opacity: .35; pointer-events: none; }
.item .open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 0; text-align: left; }
.emoji { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--surf-2); display: grid; place-items: center; font-size: 21px; }
.item .txt { min-width: 0; flex: 1; }
.item .txt b { display: block; font-size: 16px; font-weight: 750; line-height: 1.25; }
.item.done .txt b { color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-top: 3px; font-size: 13px; font-weight: 650; color: var(--ink-3); }
.meta .av { width: 18px; height: 18px; font-size: 10px; }
.meta .who { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); }
.tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.tag.late { background: var(--accent-soft); color: var(--accent); }
.tag.ok { background: var(--sage-soft); color: var(--sage); }

.go {
  flex: none; display: inline-flex; align-items: center; gap: 5px;
  height: 34px; padding: 0 12px 0 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.go:active { transform: scale(.95); }
.go.running { background: var(--ink); color: var(--bg); }
.go.up { background: var(--accent); color: var(--on-accent); }

/* ---------- bottom nav ---------- */
.tabs {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(12px + var(--safe-b)); z-index: 20;
  width: min(528px, calc(100% - 24px));
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 6px; border-radius: 24px;
  background: color-mix(in srgb, var(--surf) 92%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
}
.tabs button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 6px; border-radius: 18px; color: var(--ink-3); font-size: 12px; font-weight: 800; }
.tabs button.on { color: var(--accent); background: var(--accent-soft); }

/* ---------- cards / lists (other tabs) ---------- */
.card { background: var(--surf); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 18px; margin-bottom: 14px; }
.card h2 { font-size: 20px; margin-bottom: 4px; }
.card > p { margin: 0 0 12px; color: var(--ink-2); font-size: 14px; }
.section-label { margin: 22px 4px 10px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 0; text-align: left; }
.row + .row { border-top: 1px solid var(--line); }
.row .txt { flex: 1; min-width: 0; }
.row .txt b { display: block; font-weight: 750; }
.row .txt small { display: block; color: var(--ink-3); font-size: 13px; font-weight: 650; }
.row .chev { color: var(--ink-3); }
.list-card { background: var(--surf); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 2px 16px; margin-bottom: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 22px; border-radius: 16px;
  background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 16px;
  transition: transform .1s, background .2s;
}
.btn:active { transform: scale(.97); background: var(--accent-press); }
.btn.block { width: 100%; }
.btn.soft { background: var(--surf-2); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink-2); }
.btn.danger { background: transparent; color: var(--danger); }
.btn.sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 13px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-row { display: flex; gap: 10px; }
.btn-row > * { flex: 1; }

/* ---------- progress ---------- */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surf-2); }
.seg button { height: 38px; border-radius: 11px; font-size: 14px; font-weight: 800; color: var(--ink-2); }
.seg button.on { background: var(--surf); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.period { display: flex; align-items: center; justify-content: space-between; margin: 14px 0; }
.period b { font-family: var(--display); font-size: 19px; font-weight: 600; }
.period button { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--ink-2); background: var(--surf); box-shadow: var(--shadow); }
.period button[disabled] { opacity: .35; }

.hero { display: flex; align-items: center; gap: 18px; }
.hero .big { font: 600 54px/1 var(--display); letter-spacing: -.03em; }
.hero .big small { font-size: 26px; }
.hero p { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; font-weight: 650; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surf-2); font-size: 13px; font-weight: 750; color: var(--ink-2); }
.pill.hot { background: var(--accent-soft); color: var(--accent); }

.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; height: 170px; margin-top: 8px; }
.bars button { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars .col { width: 100%; max-width: 34px; border-radius: 10px; background: var(--surf-2); display: flex; flex-direction: column-reverse; overflow: hidden; }
.bars .col span { display: block; width: 100%; }
.bars small { font-size: 12px; font-weight: 800; color: var(--ink-3); }
.bars .sel small { color: var(--accent); }
.bars em { font-style: normal; font-size: 11px; font-weight: 750; color: var(--ink-3); }

.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal .hd { text-align: center; font-size: 11px; font-weight: 800; color: var(--ink-3); text-transform: uppercase; padding-bottom: 2px; }
.cal button { aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: var(--ink-2); background: var(--surf-2); }
.cal button.today { box-shadow: inset 0 0 0 2px var(--accent); }
.cal button.future { opacity: .45; }
.legend { display: flex; align-items: center; gap: 6px; justify-content: flex-end; margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: block; }

.meter { height: 8px; border-radius: 8px; background: var(--surf-2); overflow: hidden; margin-top: 6px; }
.meter span { display: block; height: 100%; border-radius: inherit; }
.who-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.who-row + .who-row { border-top: 1px solid var(--line); }
.who-row .txt { flex: 1; min-width: 0; }
.who-row .txt div { display: flex; justify-content: space-between; gap: 8px; font-weight: 750; }
.who-row .txt div span { color: var(--ink-3); font-size: 14px; }
.log { list-style: none; padding: 0; margin: 0; }
.log li { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 14px; font-weight: 650; }
.log li + li { border-top: 1px solid var(--line); }
.log time { margin-left: auto; color: var(--ink-3); font-size: 13px; }

/* ---------- sheets ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(27, 22, 19, .45); opacity: 0; transition: opacity .25s; }
.scrim.on { opacity: 1; }
.sheet {
  position: fixed; z-index: 41; left: 50%; bottom: 0;
  width: min(560px, 100%); max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  transform: translate(-50%, 100%); transition: transform .32s cubic-bezier(.2, .9, .25, 1);
  background: var(--bg); border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: var(--shadow-up);
  padding: 10px 18px calc(22px + var(--safe-b));
}
.sheet.on { transform: translate(-50%, 0); }
.grab { width: 40px; height: 5px; border-radius: 5px; background: var(--line); margin: 0 auto 12px; }
.sheet h2 { font-size: 24px; margin-bottom: 14px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sheet-head h2 { margin: 0; }
.x { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--surf-2); color: var(--ink-2); }

.field { margin-bottom: 18px; }
.field > label, .field > .lbl { display: block; margin: 0 0 8px 2px; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.input {
  width: 100%; height: 52px; padding: 0 16px; border-radius: 14px;
  background: var(--surf); border: 1.5px solid var(--line); font-size: 17px; font-weight: 650;
  outline: none; transition: border-color .2s;
}
.input:focus { border-color: var(--accent); }
.input.code { font-family: ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; text-align: center; font-size: 18px; }
.hint { margin: 6px 2px 0; font-size: 13px; color: var(--ink-3); font-weight: 600; }

.icon-pick { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px; padding: 2px 18px 4px; }
.icon-pick::-webkit-scrollbar { display: none; }
.icon-pick button { flex: none; width: 46px; height: 46px; border-radius: 13px; font-size: 22px; background: var(--surf); border: 1.5px solid var(--line); }
.icon-pick button.on { border-color: var(--accent); background: var(--accent-soft); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts .chip { height: 40px; }
.dows { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 10px; }
.dows button { height: 42px; border-radius: 12px; background: var(--surf); border: 1.5px solid var(--line); font-weight: 800; font-size: 14px; color: var(--ink-2); }
.dows button.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.sub-opt { margin-top: 10px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatches button { width: 38px; height: 38px; border-radius: 50%; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .0); transition: transform .15s; }
.swatches button.on { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--ink); transform: scale(.95); }
.history { font-size: 14px; color: var(--ink-2); font-weight: 650; margin: -4px 2px 18px; }

/* timer sheet */
.tbig { display: grid; place-items: center; margin: 6px auto 18px; position: relative; width: 240px; height: 240px; }
.tbig svg { transform: rotate(-90deg); position: absolute; inset: 0; }
.tbig .track { stroke: var(--surf-2); }
.tbig .bar { stroke: var(--accent); transition: stroke-dashoffset 1s linear; }
.tbig .inner { text-align: center; }
.tbig .emo { font-size: 30px; }
.tbig .cd { font: 600 54px/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; margin: 4px 0; }
.tbig small { color: var(--ink-3); font-weight: 750; font-size: 14px; }
.t-title { text-align: center; font-size: 20px; margin: -6px 0 18px; font-family: var(--display); font-weight: 600; }
.t-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.t-actions .btn.wide { grid-column: span 2; }

/* ---------- onboarding ---------- */
.welcome { min-height: 100dvh; display: flex; flex-direction: column; padding: calc(28px + var(--safe-t)) 22px calc(28px + var(--safe-b)); }
.welcome .art { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.logo { width: 76px; height: 76px; border-radius: 22px; box-shadow: var(--shadow); margin-bottom: 26px; }
.welcome h1 { font-size: 46px; line-height: 1.02; letter-spacing: -.03em; }
.welcome h1 em { font-style: italic; color: var(--accent); font-weight: 500; }
.welcome .lead { font-size: 18px; color: var(--ink-2); margin: 14px 0 0; max-width: 24em; }
.slots-demo { display: flex; gap: 8px; margin-top: 26px; }
.slots-demo span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; font-size: 14px; font-weight: 800; }
.slots-demo .m { background: var(--morning-soft); color: var(--morning); }
.slots-demo .a { background: var(--afternoon-soft); color: var(--afternoon); }
.slots-demo .e { background: var(--evening-soft); color: var(--evening); }
.welcome .actions { display: grid; gap: 10px; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); font-weight: 800; margin-bottom: 20px; height: 40px; }
.who-pick { display: grid; gap: 10px; margin-bottom: 18px; }
.who-pick button { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; background: var(--surf); border: 1.5px solid var(--line); font-weight: 800; font-size: 17px; text-align: left; }
.who-pick button:active { border-color: var(--accent); }

/* ---------- misc ---------- */
.toast {
  position: fixed; z-index: 60; left: 50%; bottom: calc(96px + var(--safe-b));
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px;
  background: var(--ink); color: var(--bg); font-weight: 750; font-size: 15px;
  box-shadow: var(--shadow); transition: opacity .25s, transform .25s; text-align: center;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.offline { position: fixed; z-index: 30; top: calc(8px + var(--safe-t)); left: 50%; transform: translateX(-50%); padding: 6px 12px; border-radius: 999px; background: var(--surf-2); color: var(--ink-2); font-size: 12px; font-weight: 800; box-shadow: var(--shadow); }
.code-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surf-2); font-family: ui-monospace, monospace; font-size: 16px; font-weight: 700; letter-spacing: .08em; margin-bottom: 12px; }
.empty { text-align: center; padding: 30px 20px; color: var(--ink-3); font-weight: 650; }
.empty .e { font-size: 40px; margin-bottom: 8px; }
.party { position: fixed; inset: 0; pointer-events: none; z-index: 70; overflow: hidden; }
.party i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 3px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(720deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media (min-width: 400px) {
  .hello h1 { font-size: 30px; }
}
.meta > * + *::before { content: '·'; margin-right: 8px; color: var(--ink-3); font-weight: 800; }
.meta > .tag::before { content: none; }
