/* NOVUM: dark, clean blue, iOS-style */
:root {
  color-scheme: dark;
  --bg: #04060b;
  --card: #10141d;
  --card-2: #171c28;
  --fill: rgba(120, 140, 180, 0.16);
  --fill-2: rgba(120, 140, 180, 0.24);
  --sep: rgba(140, 150, 175, 0.18);
  --text: #f5f7fb;
  --text-2: rgba(225, 232, 245, 0.62);
  --text-3: rgba(225, 232, 245, 0.36);
  --accent: #3b9bff;
  --accent-2: #5ac8fa;
  --green: #30d158;
  --red: #ff453a;
  --orange: #ff9f0a;
  --yellow: #ffd60a;
  --r-lg: 20px;
  --r-md: 14px;
  --spring: cubic-bezier(0.32, 0.72, 0, 1);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --tabh: 52px;
  --st: 0;
  --ov: 1;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; touch-action: manipulation; }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.35; letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; overscroll-behavior-y: none;
  background-image: radial-gradient(120% 50% at 50% -10%, rgba(59, 155, 255, 0.16), transparent 70%);
  background-attachment: fixed;
}
html.sheet-open body { overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
button:disabled { cursor: default; }
input, textarea, select { font: inherit; color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.ic { width: 22px; height: 22px; flex: none; }

.boot { height: 100dvh; display: grid; place-items: center; font-weight: 800; letter-spacing: 0.3em; color: var(--accent); }

/* ---------- layout ---------- */
.screen {
  max-width: 640px; margin: 0 auto;
  padding: 0 16px calc(var(--tabh) + var(--sab) + 32px);
  animation: screenIn 0.38s var(--spring);
}
@keyframes screenIn { from { opacity: 0; transform: translateY(8px); } }

/* nav bar + large title */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  padding-top: var(--sat);
  background: rgba(8, 11, 18, calc(var(--st) * 0.78));
  border-bottom: 0.5px solid rgba(140, 150, 175, calc(var(--st) * 0.22));
}
html.scrolled .nav { -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.nav-inner { max-width: 640px; margin: 0 auto; height: 44px; display: flex; align-items: center; justify-content: center; position: relative; padding: 0 12px; }
.nav-title { font-size: 17px; font-weight: 600; opacity: var(--st); transform: translateY(calc((1 - var(--st)) * 6px)); }
.nav-right { position: absolute; right: 12px; top: 0; height: 44px; display: flex; align-items: center; }
.lt { padding-top: calc(var(--sat) + 48px); padding-bottom: 14px; }
.large-title {
  margin: 0; font-size: 34px; line-height: 1.12; font-weight: 800; letter-spacing: -0.025em;
  opacity: calc(1 - var(--st)); transform: scale(var(--ov)); transform-origin: left center;
}
.eyebrow { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-2); margin-bottom: 2px; opacity: calc(1 - var(--st)); }
.lt-sub { color: var(--text-2); font-size: 15px; margin-top: 4px; opacity: calc(1 - var(--st)); }
.greet { margin: 0 0 14px; font-size: 20px; font-weight: 600; }

/* ---------- cards & lists ---------- */
.card { background: var(--card); border-radius: var(--r-lg); position: relative; overflow: hidden; }
.tap { transition: transform 0.35s var(--spring), background-color 0.2s; }
.tap:active { transform: scale(0.975); transition-duration: 0.1s; }
.row.tap:active, .list .tap:active { transform: none; background: var(--card-2); }
.stack { display: grid; gap: 12px; }
.group { margin-top: 28px; }
.group-h { margin: 0 0 8px 16px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-2); }
.group-h-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.group-h-row .group-h { margin-bottom: 0; }
.group-f { margin: 8px 16px 0; font-size: 13px; color: var(--text-2); line-height: 1.4; }
.list > * + *::before {
  content: ''; position: absolute; top: 0; left: 60px; right: 0; height: 0.5px; background: var(--sep);
}
.list > .row, .list > .field, .list > .slider-row, .list > div { position: relative; }
.list > .field::before, .list > .slider-row::before, .list > .pad::before, .list > .bmi::before, .list > .note::before { left: 16px; }
.list > .goal-row + *::before, .list > * + .goal-row::before { left: 74px; }
.row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  min-height: 52px; padding: 10px 16px; text-align: left;
}
.row-ic {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  display: grid; place-items: center; font-size: 17px; color: #fff; background: var(--fill-2);
}
.row-ic .ic { width: 18px; height: 18px; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-title { font-size: 17px; }
.row-sub { font-size: 14px; color: var(--text-2); line-height: 1.35; }
.row-next { font-size: 13px; color: var(--accent); margin-top: 2px; }
.row-detail { color: var(--text-2); font-size: 16px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.row-chev { color: var(--text-3); display: flex; }
.row-chev .ic { width: 16px; height: 16px; stroke-width: 2.6; }
.row.danger .row-title { color: var(--red); }
.body-row { align-items: flex-start; }
.body-row .row-ic { margin-top: 2px; }
.body-row .row-chev { align-self: center; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mb12 { margin-bottom: 12px; }
.pad { padding: 12px 16px; } .pad-x { padding: 0 0; } .pad-b { padding-bottom: 16px; }
.muted { color: var(--text-2); } .center { text-align: center; } .tiny { font-size: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 20px; border-radius: 14px; font-weight: 600; font-size: 17px;
  transition: transform 0.3s var(--spring), opacity 0.2s, background-color 0.25s;
}
.btn:active:not(:disabled) { transform: scale(0.96); }
.btn:disabled { opacity: 0.4; }
.btn.sm { min-height: 36px; padding: 0 16px; font-size: 15px; border-radius: 999px; }
.btn.big { min-height: 56px; font-size: 18px; }
.btn.block { display: flex; width: 100%; margin-top: 12px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-tinted { background: rgba(59, 155, 255, 0.16); color: var(--accent); }
.btn-plain { background: var(--card); color: var(--accent); }
.btn-plain.danger, .btn.danger { color: var(--red); }
.btn-danger { background: var(--red); color: #fff; }
.btn-done { background: color-mix(in srgb, var(--c, var(--accent)) 22%, transparent); color: var(--c, var(--accent)); }
.btn-primary[style*='--c'] { background: var(--c); }
.link { color: var(--accent); font-size: 17px; min-height: 44px; padding: 0 4px; display: inline-flex; align-items: center; }
.link.b { font-weight: 600; }
.link.sm { font-size: 15px; min-height: 32px; }
.link:disabled { color: var(--text-3); }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--accent); transition: transform 0.3s var(--spring), opacity 0.2s; }
.icon-btn:active { transform: scale(0.88); }
.icon-btn:disabled { opacity: 0.25; }
.icon-btn.accent { background: rgba(59, 155, 255, 0.16); width: 36px; height: 36px; }
.icon-btn.accent .ic { width: 20px; height: 20px; stroke-width: 2.6; }
.icon-btn.muted { color: var(--text-3); }
.icon-btn.muted .ic { width: 19px; height: 19px; }

/* tick circle for habits */
.tick {
  width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; position: relative;
}
.tick::before {
  content: ''; position: absolute; inset: 7px; border-radius: 50%;
  border: 2px solid var(--fill-2); transition: all 0.35s var(--bounce);
}
.tick .ic { position: relative; width: 18px; height: 18px; stroke-width: 3; color: #fff; opacity: 0; transform: scale(0.4); transition: all 0.35s var(--bounce); }
.tick.on::before { background: var(--c); border-color: var(--c); }
.tick.on .ic { opacity: 1; transform: scale(1); }
.tick:active::before { transform: scale(0.85); }

.add-pill { width: 44px; height: 44px; display: grid; place-items: center; flex: none; position: relative; color: #fff; }
.add-pill::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: var(--accent); transition: transform 0.3s var(--bounce), background 0.2s; }
.add-pill .ic { position: relative; width: 18px; height: 18px; stroke-width: 3; }
.add-pill.on::before { background: var(--green); }
.add-pill:active::before { transform: scale(0.85); }

/* ---------- rings ---------- */
.ring { position: relative; flex: none; }
.ring svg { display: block; overflow: visible; }
.ring-fg { transition: stroke-dashoffset 1.1s var(--spring); }
.ring-c { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring-stack { position: relative; flex: none; }
.ring-abs { position: absolute; display: grid; place-items: center; }
.ring-txt { display: flex; flex-direction: column; align-items: center; line-height: 1.1; font-size: 15px; font-weight: 700; }
.ring-txt b { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ring-txt small { font-size: 10px; font-weight: 600; color: var(--text-2); }
.ring-emoji { font-size: 20px; }

/* ---------- home ---------- */
.quit-card { display: block; width: 100%; padding: 16px 18px; text-align: left; }
.quit-card::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--qc) 18%, transparent), transparent 60%); }
.qc-head { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.qc-emoji { font-size: 18px; }
.qc-label { color: var(--qc); }
.qc-saved { margin-left: auto; color: var(--text-2); font-weight: 500; font-variant-numeric: tabular-nums; }
.qc-body { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0 8px; }
.qc-time { display: flex; gap: 14px; font-variant-numeric: tabular-nums; }
.qc-time span { display: flex; flex-direction: column; }
.qc-time b { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.qc-time small { font-size: 12px; color: var(--text-2); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.qc-time .qc-sec b { color: var(--text-3); }
.qc-foot { font-size: 14px; color: var(--text-2); position: relative; z-index: 1; }
@media (max-width: 360px) { .qc-time { gap: 10px; } .qc-time b { font-size: 28px; } }

.money-card { display: block; width: 100%; padding: 18px; margin-top: 12px; text-align: left;
  background: linear-gradient(135deg, #12233f 0%, #0f1622 70%); }
.kicker { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-2); }
.kicker .ic { width: 16px; height: 16px; }
.mc-big { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; margin: 4px 0; font-variant-numeric: tabular-nums;
  background: linear-gradient(90deg, #fff, #9fd3ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mc-sub { font-size: 14px; color: var(--text-2); }

.badges { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
.badges::-webkit-scrollbar { display: none; }
.badge { flex: none; width: 92px; scroll-snap-align: start; background: var(--card); border-radius: var(--r-md); padding: 14px 8px 12px; text-align: center; }
.badge-medal {
  width: 52px; height: 52px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 16px; color: var(--text-3); border: 2px dashed var(--fill-2);
}
.badge.got .badge-medal { border: 0; color: #fff; background: linear-gradient(140deg, var(--accent-2), var(--accent)); box-shadow: 0 4px 18px rgba(59, 155, 255, 0.35); }
.badge.got .badge-medal .ic { width: 26px; height: 26px; stroke-width: 3; }
.badge-l { font-size: 14px; font-weight: 600; }
.badge-s { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.badge:not(.got) .badge-l { color: var(--text-2); }

.checkin-card { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; text-align: left; }
.cc-emoji { font-size: 30px; }
.cc-main { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.cc-main span { font-size: 14px; color: var(--text-2); }
.pulse { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.12); } }

.ny-card { display: block; width: 100%; margin-top: 28px; padding: 22px 20px; text-align: left;
  background: radial-gradient(140% 120% at 0% 0%, #1b3b74 0%, #0d1424 55%, #0a0e17 100%); }
.ny-year { font-size: 44px; font-weight: 900; letter-spacing: -0.04em; line-height: 1;
  background: linear-gradient(90deg, #fff 0%, #8cc8ff 60%, var(--accent) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ny-year.xl { font-size: 72px; }
.ny-t { font-size: 20px; font-weight: 700; margin: 8px 0 4px; }
.ny-s { color: var(--text-2); font-size: 15px; margin-bottom: 14px; }
.ny-mini { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; margin-bottom: 16px; text-align: left;
  background: linear-gradient(120deg, #15294c, var(--card) 70%); }
.ny-mini-y { font-weight: 900; font-size: 20px; color: #9fd3ff; letter-spacing: -0.03em; }
.ny-hero { text-align: center; padding: 8px 8px 4px; }
.ny-hero p { font-size: 15px; margin: 6px 0 0; }

/* ---------- check-in ---------- */
.day-nav { display: flex; align-items: center; justify-content: space-between; padding: 6px; }
.day-nav-t { display: flex; flex-direction: column; align-items: center; }
.day-nav-t span { font-size: 14px; color: var(--text-2); }
.moods { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 10px; }
.moods::before { display: none; }
.mood { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0; border-radius: 14px; min-height: 72px; transition: background 0.2s, transform 0.35s var(--bounce); }
.mood-e { font-size: 32px; transition: transform 0.35s var(--bounce); filter: grayscale(0.5); opacity: 0.7; }
.mood-l { font-size: 12px; color: var(--text-2); }
.mood.on { background: rgba(59, 155, 255, 0.18); }
.mood.on .mood-e { transform: scale(1.18); filter: none; opacity: 1; }
.mood.on .mood-l { color: var(--text); font-weight: 600; }
.mood:active { transform: scale(0.9); }

.slider-row { padding: 14px 16px 16px; }
.slider-top { display: flex; justify-content: space-between; font-size: 16px; margin-bottom: 12px; }
.slider-v { color: var(--text-2); font-size: 15px; }
.slider-v b { color: var(--text); font-variant-numeric: tabular-nums; margin-right: 4px; }
input[type='range'] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 32px; background: transparent; margin: 0; touch-action: pan-y;
}
input[type='range']::-webkit-slider-runnable-track {
  height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--c) var(--p), var(--fill-2) var(--p));
}
input[type='range']::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--c) var(--p), var(--fill-2) var(--p)); }
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 0 0.5px rgba(0, 0, 0, 0.1);
}
input[type='range']::-moz-range-thumb { width: 28px; height: 28px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); }
input[type='range'].unset::-webkit-slider-thumb { background: #8a93a6; }

.note { display: block; width: 100%; border: 0; outline: 0; background: transparent; padding: 14px 16px; resize: vertical; min-height: 96px; font-size: 16px; }
.note::placeholder { color: var(--text-3); }

/* ---------- segmented control ---------- */
.seg {
  position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr);
  background: var(--fill); border-radius: 10px; padding: 2px; min-height: 36px;
}
.seg-thumb {
  position: absolute; top: 2px; bottom: 2px; left: 2px; width: calc((100% - 4px) / var(--n));
  transform: translateX(calc(var(--i) * 100%)); background: #3a4254; border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25); transition: transform 0.4s var(--spring);
}
.seg button { position: relative; z-index: 1; text-align: center; min-height: 32px; font-size: 14px; font-weight: 500; padding: 6px 4px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.2s; }
.seg button.on { color: var(--text); font-weight: 600; }
.seg-sm { min-height: 32px; }
.seg-sm button { font-size: 13px; padding: 4px 8px; }

/* toggle */
.toggle { width: 51px; height: 31px; border-radius: 16px; background: var(--fill-2); position: relative; transition: background 0.25s; flex: none; }
.toggle span { position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); transition: transform 0.35s var(--spring); }
.toggle.on { background: var(--green); }
.toggle.on span { transform: translateX(20px); }

/* stepper */
.stepper { display: flex; align-items: center; flex: none; background: var(--fill); border-radius: 10px; overflow: hidden; }
.stepper button { width: 48px; height: 36px; display: grid; place-items: center; color: var(--text); transition: background 0.15s, opacity 0.2s; }
.stepper button:active:not(:disabled) { background: var(--fill-2); }
.stepper button:disabled { opacity: 0.3; }
.stepper svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.stepper i { width: 0.5px; height: 18px; background: var(--sep); }
.stepper-v { font-variant-numeric: tabular-nums; color: var(--accent); font-weight: 600; }
.list > .stepper-row::before { left: 16px; }

/* form field */
.field { display: flex; align-items: center; gap: 12px; padding: 4px 16px; min-height: 52px; flex-wrap: wrap; }
.field-l { flex: none; min-width: 96px; }
.field-c { flex: 1; display: flex; }
.field-c input, .field-c select {
  width: 100%; border: 0; outline: 0; background: transparent; text-align: right; color: var(--text-2); font-size: 17px; min-height: 44px;
}
.field-c input:focus { color: var(--text); }
.field-c input[type='date'], .field-c input[type='datetime-local'] { -webkit-appearance: none; appearance: none; display: flex; justify-content: flex-end; color: var(--accent); }
.field-c input::-webkit-date-and-time-value { text-align: right; }
.field-h { width: 100%; font-size: 13px; color: var(--text-2); padding-bottom: 8px; }

/* ---------- goals ---------- */
.goal-row { min-height: 68px; }
.goal-row .row-detail { font-weight: 600; }
.empty { text-align: center; padding: 48px 24px; }
.empty-e { font-size: 52px; }
.empty-t { font-size: 22px; font-weight: 700; margin: 10px 0 6px; }
.empty-x { color: var(--text-2); font-size: 15px; max-width: 320px; margin: 0 auto; }
.empty-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }

.detail-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 0 12px; }
.dh-in { display: flex; flex-direction: column; align-items: center; }
.dh-e { font-size: 34px; }
.dh-in b { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.dh-name { font-size: 24px; font-weight: 800; margin: 16px 0 4px; letter-spacing: -0.02em; }
.dh-label { font-size: 16px; font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 12px; }
.chip { font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--fill); color: var(--text-2); }
.chip[style*='--c'] { background: color-mix(in srgb, var(--c) 20%, transparent); color: var(--c); }
.chip.big { min-height: 44px; padding: 0 16px; font-size: 15px; display: inline-flex; align-items: center; transition: all 0.25s var(--spring); }
.chip.big:not(.on) { background: var(--fill); color: var(--text-2); }
.chip.big.on { background: var(--c, var(--accent)); color: #000; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; }

.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.stats3 > div { background: var(--card); border-radius: var(--r-md); padding: 12px 8px; text-align: center; display: flex; flex-direction: column; }
.stats3 b { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stats3 span { font-size: 12px; color: var(--text-2); }
.mini-h { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-2); margin-bottom: 10px; }
.weekdots { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.wd { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 60px; }
.wd span { font-size: 12px; color: var(--text-2); }
.wd i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--fill); transition: all 0.35s var(--bounce); }
.wd.today span { color: var(--accent); font-weight: 700; }
.wd.on i { background: var(--c); }
.wd i .ic { width: 16px; height: 16px; stroke-width: 3; color: #fff; }
.wd:disabled { opacity: 0.35; }
.heat { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; }
.heat-col { display: grid; grid-template-rows: repeat(7, 1fr); gap: 4px; }
.heat i { aspect-ratio: 1; border-radius: 4px; background: var(--fill); }
.heat i.on { background: var(--c); }
.heat i.future { opacity: 0.3; }
.info { font-size: 15px; color: var(--text-2); line-height: 1.45; }
.entry-add { display: flex; gap: 8px; align-items: center; padding: 8px 8px 8px 16px; }
.entry-add input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 17px; min-height: 44px; }

.editor-hero { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 8px 0 0; }
.eh-icon { width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center; font-size: 44px; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4); transition: background 0.3s; }
.eh-name { width: 100%; text-align: center; font-size: 22px; font-weight: 700; border: 0; outline: 0; background: var(--card); border-radius: var(--r-md); padding: 14px; }
.eh-name::placeholder { color: var(--text-3); }
.emoji-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding: 10px; }
.emo { aspect-ratio: 1; font-size: 24px; border-radius: 12px; display: grid; place-items: center; transition: transform 0.3s var(--bounce), background 0.2s; min-height: 44px; }
.emo.on { background: var(--fill-2); transform: scale(1.08); }
.swatches { display: flex; justify-content: space-between; gap: 6px; padding: 14px 16px; }
.sw { width: 36px; height: 36px; border-radius: 50%; background: var(--c); position: relative; transition: transform 0.3s var(--bounce); }
.sw::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2.5px solid transparent; transition: border-color 0.2s; }
.sw.on::after { border-color: var(--c); }
.sw:active { transform: scale(0.85); }
.list > .emoji-grid::before, .list > .swatches::before, .list > .chip-row::before, .list > .moods::before { display: none; }

/* ---------- progress ---------- */
.glance { padding: 18px; }
.glance-top { display: flex; align-items: center; gap: 18px; }
.gl-c { display: flex; flex-direction: column; align-items: center; }
.gl-c b { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.gl-c span { font-size: 12px; color: var(--text-2); }
.gl-legend { flex: 1; display: grid; gap: 8px; }
.gl-li { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.gl-li i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.gl-li span { flex: 1; }
.gl-li b { font-variant-numeric: tabular-nums; }
.glance-empty { text-align: center; color: var(--text-2); padding-bottom: 6px; }
.glance-empty p { margin: 0 0 12px; font-size: 15px; }
.year-bar { margin-top: 18px; }
.yb-t { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-2); margin-bottom: 8px; }
.yb-t span:first-child { color: var(--text); font-weight: 600; }
.yb { height: 8px; border-radius: 4px; background: var(--fill); overflow: hidden; }
.yb i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transition: width 1s var(--spring); }
.months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; margin: 16px 0 8px; }
.mo { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mo-bar { width: 100%; height: 44px; background: var(--fill); border-radius: 4px; display: flex; align-items: flex-end; overflow: hidden; }
.mo-bar i { display: block; width: 100%; background: var(--accent); border-radius: 4px 4px 0 0; }
.mo span { font-size: 11px; color: var(--text-2); }
.mo.future .mo-bar { opacity: 0.4; }

.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
.tile { background: var(--card); border-radius: var(--r-md); padding: 14px; display: flex; flex-direction: column; }
.tile-k { font-size: 13px; color: var(--text-2); font-weight: 600; }
.tile b { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.tile-u { font-size: 13px; color: var(--text-2); }

.chart-card { padding: 14px 10px 10px; }
.chart { position: relative; width: 100%; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.chart svg { display: block; }
.chart .grid { stroke: var(--sep); stroke-width: 1; }
.chart .axis { fill: var(--text-2); font-size: 11px; font-family: var(--font); }
.chart .dlabel { fill: var(--text); font-size: 11px; font-weight: 600; font-family: var(--font); }
.chart .cross { stroke: var(--text-3); stroke-width: 1; }
.chart-empty { position: absolute; inset: 0 0 24px 30px; display: grid; place-items: center; text-align: center; font-size: 14px; color: var(--text-2); padding: 0 16px; }
.tip { position: absolute; top: 0; width: 128px; pointer-events: none; background: rgba(36, 42, 56, 0.96); border-radius: 10px; padding: 8px 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45); font-size: 13px; }
.tip-d { color: var(--text-2); font-size: 12px; margin-bottom: 4px; }
.tip-r { display: flex; align-items: center; gap: 6px; }
.tip-r i, .legend i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.tip-r b { margin-left: auto; font-variant-numeric: tabular-nums; }
.legend { display: flex; gap: 16px; padding: 0 6px 8px; font-size: 13px; color: var(--text); }
.legend span { display: flex; align-items: center; gap: 6px; }
.insight { margin: 8px 6px 2px; font-size: 14px; color: var(--text-2); }

/* ---------- profile ---------- */
.profile-card { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; text-align: left; }
.avatar { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; font-weight: 800; color: #fff;
  background: linear-gradient(140deg, var(--accent-2), var(--accent) 60%, #1a4fd6); flex: none; }
.pc-name { font-size: 22px; font-weight: 700; }
.bmi { padding: 14px 16px 16px; }
.bmi-top { display: flex; align-items: flex-start; justify-content: space-between; }
.bmi-v { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pill { font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; }
.pill.good { background: rgba(48, 209, 88, 0.16); color: var(--green); }
.pill.good::before { content: '✓'; }
.pill.warn { background: rgba(255, 159, 10, 0.16); color: var(--orange); }
.pill.warn::before { content: '!'; font-weight: 800; }
.pill.bad { background: rgba(255, 69, 58, 0.16); color: var(--red); }
.pill.bad::before { content: '!'; font-weight: 800; }
.bmi-scale { position: relative; display: flex; height: 8px; margin-top: 14px; gap: 2px; }
.bmi-scale i { height: 100%; border-radius: 4px; opacity: 0.85; }
.bmi-scale .z1 { width: 17.5%; background: var(--orange); }
.bmi-scale .z2 { width: 32.5%; background: var(--green); }
.bmi-scale .z3 { width: 25%; background: var(--orange); }
.bmi-scale .z4 { width: 25%; background: var(--red); }
.bmi-scale b { position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--card);
  transform: translate(-50%, -50%); box-shadow: 0 1px 6px rgba(0, 0, 0, 0.5); transition: left 0.8s var(--spring); }
.bmi-ticks { position: relative; height: 18px; margin-top: 6px; font-size: 11px; color: var(--text-2); }
.bmi-ticks span { position: absolute; transform: translateX(-50%); }
.bmi-ticks span:first-child { left: 0; transform: none; }
.bmi-ticks span:last-child { right: 0; transform: none; }
.about { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; margin: 36px 0 8px; color: var(--text-2); font-size: 14px; }
.about img { border-radius: 14px; margin-bottom: 6px; }
.about b { color: var(--text); letter-spacing: 0.3em; font-size: 15px; }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; }
.timeline li { position: relative; padding: 0 0 22px 36px; }
.timeline li::before { content: ''; position: absolute; left: 11px; top: 26px; bottom: 0; width: 2px; background: var(--fill-2); }
.timeline li.done::before { background: var(--c); }
.timeline li:last-child::before { display: none; }
.tl-dot { position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--fill-2); display: grid; place-items: center; background: var(--bg); }
.timeline li.done .tl-dot { background: var(--c); border-color: var(--c); }
.tl-dot .ic { width: 14px; height: 14px; stroke-width: 3.2; color: #fff; }
.tl-when { font-size: 13px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.03em; }
.tl-when em { font-style: normal; color: var(--accent); text-transform: none; letter-spacing: 0; }
.tl-title { font-size: 17px; font-weight: 700; margin: 2px 0 3px; }
.timeline li:not(.done) .tl-title { color: var(--text-2); }
.tl-text { font-size: 15px; color: var(--text-2); line-height: 1.45; }
.disclaimer { font-size: 13px; color: var(--text-2); background: var(--card); border-radius: var(--r-md); padding: 12px 14px; line-height: 1.45; margin: 4px 0 0; }

/* ---------- craving SOS ---------- */
.sos {
  display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 12px; padding: 14px 16px; text-align: left;
  border-radius: var(--r-lg); background: linear-gradient(120deg, rgba(90, 200, 250, 0.2), rgba(59, 155, 255, 0.1) 60%, var(--card));
  border: 1px solid rgba(90, 200, 250, 0.25);
}
.sos.compact { margin: 16px 0 0; }
.sos-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: rgba(90, 200, 250, 0.2); flex: none; }
.sos-t { font-size: 17px; font-weight: 700; }
.sos-s { font-size: 14px; color: var(--text-2); }
.why { display: block; width: 100%; margin-top: 12px; padding: 14px 18px; text-align: left; border-radius: var(--r-lg); background: var(--card); border-left: 3px solid var(--accent); }
.why-k { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); margin-bottom: 4px; }
.why-t { font-size: 17px; font-style: italic; line-height: 1.35; }

.sos-body { display: flex; flex-direction: column; align-items: stretch; }
.breath-stage { position: relative; width: 240px; height: 240px; margin: 8px auto 4px; display: grid; place-items: center; }
.breath-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(90, 200, 250, 0.18); }
.breath {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #7fd6ff 0%, var(--accent) 55%, #1a4fd6 100%);
  box-shadow: 0 0 60px rgba(59, 155, 255, 0.45);
  transform: scale(0.5);
  animation: breathe 14s infinite;
}
@keyframes breathe {
  0% { transform: scale(0.5); animation-timing-function: ease-in-out; }
  28.57% { transform: scale(1); animation-timing-function: linear; }
  57.14% { transform: scale(1); animation-timing-function: ease-in-out; }
  100% { transform: scale(0.5); }
}
.breath-label { position: relative; font-size: 22px; font-weight: 700; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35); }
.sos-timer { text-align: center; display: flex; flex-direction: column; gap: 4px; margin: 10px 0 16px; }
.sos-timer b { font-size: 44px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.sos-timer span { font-size: 15px; color: var(--text-2); padding: 0 12px; }
.sos-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px; min-height: 96px; animation: cardIn 0.5s var(--spring); }
@keyframes cardIn { from { opacity: 0; transform: translateY(8px); } }
.sos-card-e { font-size: 28px; line-height: 1; }
.sos-card-k { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); margin-bottom: 4px; }
.sos-card-t { font-size: 17px; line-height: 1.4; }
.center-link { align-self: center; text-align: center; margin-top: 8px; }
.sos-actions { margin-top: auto; padding-top: 12px; }
.glow { box-shadow: 0 0 0 0 rgba(59, 155, 255, 0.6); animation: glow 1.8s infinite; }
@keyframes glow { 70% { box-shadow: 0 0 0 14px rgba(59, 155, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(59, 155, 255, 0); } }
.sos-done { text-align: center; padding: 8px 8px 0; }
.sos-done-e { font-size: 56px; }
.sos-done h2 { font-size: 24px; font-weight: 800; margin: 8px 0 6px; letter-spacing: -0.02em; }
.sos-done p { font-size: 15px; line-height: 1.45; margin: 0; }
.sheet-intro { font-size: 15px; margin: 4px 8px 16px; line-height: 1.45; }

/* trigger bars */
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 96px 1fr 28px; align-items: center; gap: 10px; font-size: 15px; }
.bar-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-t { height: 10px; border-radius: 5px; background: var(--fill); overflow: hidden; }
.bar-t i { display: block; height: 100%; border-radius: 5px; background: var(--accent); }
.bar-row b { text-align: right; font-variant-numeric: tabular-nums; }

/* notification settings */
.time-in { border: 0; outline: 0; background: var(--fill); border-radius: 8px; padding: 6px 8px; color: var(--text); font-size: 15px; min-height: 36px; -webkit-appearance: none; appearance: none; }
.err { color: var(--red); }

/* ---------- auth & Day Zero ---------- */
.auth {
  max-width: 520px; margin: 0 auto; min-height: 100dvh;
  padding: calc(var(--sat) + 16px) 20px calc(var(--sab) + 28px);
  display: flex; flex-direction: column; animation: screenIn 0.4s var(--spring);
}
.welcome { justify-content: space-between; }
.wl-hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 0 24px; }
.wl-logo { border-radius: 24px; box-shadow: 0 12px 40px rgba(59, 155, 255, 0.35); }
.wl-name { font-size: 40px; font-weight: 900; letter-spacing: 0.32em; margin: 26px 0 10px; padding-left: 0.32em; }
.wl-tag { font-size: 20px; line-height: 1.4; color: var(--text-2); margin: 0; font-weight: 500; }
.wl-actions .btn + .btn { margin-top: 10px; }
.hs-tip { margin-top: 16px; width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; background: var(--card); border-radius: var(--r-md); padding: 12px 12px 12px 14px; font-size: 14px; color: var(--text-2); line-height: 1.4; min-height: 60px; }
.hs-tip b { display: block; color: var(--text); font-size: 15px; margin-bottom: 1px; }
.hs-tip-ic { font-size: 24px; flex: none; }
.hs-ic { display: inline-flex; vertical-align: -4px; color: var(--accent); }
.hs-ic .ic { width: 18px; height: 18px; }
.auth-head { display: flex; align-items: flex-start; gap: 6px; margin: 0 0 18px -10px; }
.auth-head p { margin: 4px 0 0; font-size: 15px; }
.auth-title { font-size: 30px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; margin: 6px 0 0; }
.auth-title.center { text-align: center; }
.auth-err { color: var(--red); font-size: 15px; margin: 12px 4px 0; line-height: 1.4; }
.auth-fine { font-size: 13px; color: var(--text-2); text-align: center; margin: 14px 12px 4px; line-height: 1.45; }
.tf-card { padding: 4px 16px; }
.tf { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; position: relative; }
.tf + .tf, .tf-pair + .tf, .tf + .tf-pair { border-top: 0.5px solid var(--sep); }
.tf-l { font-size: 13px; font-weight: 600; color: var(--text-2); }
.tf-i { width: 100%; border: 0; outline: 0; background: transparent; font-size: 17px; min-height: 32px; padding: 0; color: var(--text); }
.tf-i::placeholder { color: var(--text-3); }
.tf-i[type='date'], .tf-i[type='datetime-local'] { -webkit-appearance: none; appearance: none; color: var(--accent); }
.tf-h { font-size: 13px; color: var(--text-2); }
.tf.bad .tf-l { color: var(--red); }
.tf-row { display: flex; align-items: center; gap: 8px; }
.tf-eye { color: var(--accent); font-size: 15px; min-height: 44px; padding: 0 4px; }
.tf-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dz-top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin: 0 -10px 12px; }
.dz-badge { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); padding-left: 10px; }
.dz-dots { display: flex; gap: 6px; padding-right: 10px; }
.dz-dots i { width: 22px; height: 5px; border-radius: 3px; background: var(--fill-2); transition: background 0.3s; }
.dz-dots i.on { background: var(--accent); }
.dz-sub { font-size: 16px; line-height: 1.45; margin: 10px 0 20px; }
.dz-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 4px 8px; }
.dz-label > span { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-2); }
.dz-label .seg { width: 150px; }
.dz-calc { text-align: center; color: var(--text-2); font-size: 15px; margin: 16px 0 0; }
.dz-note { font-size: 15px; line-height: 1.45; margin: 16px 4px 0; }
.dz-q { margin-bottom: 12px; }
.dz-q-h { display: flex; align-items: center; gap: 10px; padding: 14px 0 6px; font-size: 17px; }
.dz-ideas { padding: 16px 0 0; }
.dz-ready { text-align: center; padding: 24px 0 20px; }
.dz-ready .ny-year { font-size: 56px; }
.dz-ready p { font-size: 16px; margin: 8px 0 0; }
.dz-foot { margin-top: auto; padding-top: 24px; }
.pick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pick {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-height: 92px; padding: 14px;
  background: var(--card); border-radius: var(--r-md); border: 2px solid transparent; text-align: left;
  transition: transform 0.3s var(--bounce), border-color 0.2s, background 0.2s;
}
.pick:active { transform: scale(0.96); }
.pick-e { font-size: 28px; line-height: 1; }
.pick-l { font-size: 16px; font-weight: 600; }
.pick-tick { position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--fill-2); opacity: 0; transform: scale(0.5); transition: all 0.3s var(--bounce); }
.pick-tick .ic { width: 14px; height: 14px; stroke-width: 3; color: #fff; }
.pick.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--card)); }
.pick.on .pick-tick { opacity: 1; transform: scale(1); background: var(--c); }
.add-first { display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px; text-align: left; }
.dh-note { font-size: 14px; color: var(--accent); margin-top: 6px; }
.update-bar {
  position: fixed; left: 12px; right: 12px; z-index: 90; bottom: calc(var(--tabh) + var(--sab) + 12px);
  max-width: 616px; margin: 0 auto; padding: 14px 16px; border-radius: 14px; text-align: center; font-size: 15px;
  background: rgba(40, 70, 130, 0.94); color: #fff; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); animation: cardIn 0.5s var(--spring);
}

/* ---------- step-by-step setup ---------- */
.wiz { display: flex; flex-direction: column; flex: 1; }
.wiz-top { display: flex; align-items: center; gap: 12px; min-height: 44px; margin: 0 -10px 8px; }
.wiz-spacer { width: 44px; flex: none; }
.wiz-bar { flex: 1; height: 6px; border-radius: 3px; background: var(--fill); overflow: hidden; }
.wiz-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transition: width 0.6s var(--spring); }
.wiz-badge { min-width: 44px; padding-right: 10px; text-align: right; font-size: 13px; font-weight: 700; color: var(--accent); white-space: nowrap; letter-spacing: 0.02em; }
.wiz-body { display: flex; flex-direction: column; padding-top: 18px; }
.wiz-body.fwd { animation: wizFwd 0.5s var(--spring); }
.wiz-body.back { animation: wizBack 0.5s var(--spring); }
@keyframes wizFwd { from { opacity: 0; transform: translateX(36px); } }
@keyframes wizBack { from { opacity: 0; transform: translateX(-36px); } }
.wiz-body > * { animation: rise 0.55s var(--spring) both; }
.wiz-body > :nth-child(2) { animation-delay: 50ms; }
.wiz-body > :nth-child(3) { animation-delay: 100ms; }
.wiz-body > :nth-child(4) { animation-delay: 150ms; }
.wiz-body > :nth-child(5) { animation-delay: 200ms; }
.wiz-body > :nth-child(n + 6) { animation-delay: 250ms; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.wiz-emoji { font-size: 48px; line-height: 1; margin-bottom: 16px; animation: pop 0.6s var(--bounce) both !important; }
@keyframes pop { from { opacity: 0; transform: scale(0.4) rotate(-12deg); } }
.wiz-q { font-size: 30px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; margin: 0; }
.wiz-q.center, .wiz-sub.center { text-align: center; }
.wiz-sub { font-size: 16px; line-height: 1.45; color: var(--text-2); margin: 10px 0 0; }
.wiz-em { color: var(--text); font-weight: 600; word-break: break-all; }
.wiz-body > .wiz-in, .wiz-pair, .wiz-at, .wiz-pw, .wiz-num, .code, .dob, .pick-grid, .wiz-add, .wiz-unit { margin-top: 26px; }
.wiz-in {
  width: 100%; min-height: 60px; padding: 0 18px; border: 2px solid transparent; outline: 0; border-radius: 16px;
  background: var(--card); color: var(--text); font-size: 20px; font-weight: 500; transition: border-color 0.2s, background 0.2s;
}
.wiz-in::placeholder { color: var(--text-3); font-weight: 400; }
.wiz-in:focus { border-color: var(--accent); background: var(--card-2); }
.wiz-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wiz-pair .wiz-num { margin-top: 0; }
.wiz-at { position: relative; }
.wiz-at > span { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--text-3); pointer-events: none; }
.wiz-at .wiz-in { padding-left: 38px; }
.wiz-pw { position: relative; }
.wiz-pw .wiz-in { padding-right: 70px; }
.wiz-pw .tf-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }
.wiz-num { position: relative; }
.wiz-num .wiz-in { font-size: 30px; font-weight: 700; padding-right: 60px; font-variant-numeric: tabular-nums; }
.wiz-num > span { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--text-2); font-weight: 600; pointer-events: none; }
.wiz-unit .seg { max-width: 240px; }
.wiz-hint { font-size: 14px; color: var(--text-2); margin: 10px 4px 0; }
.wiz-big-note { font-size: 17px; font-weight: 600; color: var(--accent); margin: 16px 4px 0; }
.wiz-err { color: var(--red); font-size: 15px; line-height: 1.4; margin: 14px 4px 0; animation: shake 0.4s both !important; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.wiz-fine { font-size: 13px; color: var(--text-2); line-height: 1.45; margin: 18px 4px 0; }
.wiz-fine.center { text-align: center; }
.wiz-actions { margin-top: 28px; display: flex; flex-direction: column; gap: 6px; }
.wiz-actions .btn.block { margin-top: 0; }
.wiz-add { display: flex; gap: 8px; align-items: center; }
.wiz-add .wiz-in { flex: 1; min-width: 0; font-size: 17px; }
.mt12 { margin-top: 12px; }
.pw-meter { height: 6px; border-radius: 3px; background: var(--fill); margin-top: 12px; overflow: hidden; }
.pw-meter i { display: block; height: 100%; border-radius: 3px; transition: width 0.4s var(--spring), background 0.3s; }
.row.pop { animation: rise 0.4s var(--spring); }
.wl-tag span { display: block; animation: rise 0.7s var(--spring) both; }
.wl-tag span:nth-child(2) { animation-delay: 0.15s; }
.wl-tag span:nth-child(3) { animation-delay: 0.3s; }
.wl-logo { animation: pop 0.8s var(--bounce) both; }

input[type='number']::-webkit-inner-spin-button, input[type='number']::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type='number'] { -moz-appearance: textfield; }

/* 6-digit code boxes */
.code { position: relative; display: block; }
.code-in { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; caret-color: transparent; z-index: 1; }
.code-boxes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.code-boxes i {
  font-style: normal; height: 62px; border-radius: 14px; background: var(--card); border: 2px solid transparent;
  display: grid; place-items: center; font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums;
  transition: border-color 0.2s, transform 0.25s var(--bounce);
}
.code-boxes i.filled { transform: scale(1.04); background: var(--card-2); }
.code-in:focus + .code-boxes i.cur { border-color: var(--accent); }

/* date of birth: three wheels */
.dob { display: grid; grid-template-columns: 0.8fr 1.4fr 1fr; gap: 8px; }
.dob-f {
  position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 72px; padding: 10px 14px;
  border-radius: 16px; background: var(--card); border: 2px solid transparent; transition: border-color 0.2s, background 0.2s;
}
.dob-f:focus-within { border-color: var(--accent); }
.dob-f.set { background: var(--card-2); }
.dob-l { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-2); }
.dob-v { font-size: 20px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dob-f:not(.set) .dob-v { color: var(--text-3); }
.dob-f select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; -webkit-appearance: none; appearance: none; cursor: pointer; }

/* Day Zero details card */
.dz-q { padding: 4px 16px 12px; margin-top: 14px; }
.dz-f { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; border-top: 0.5px solid var(--sep); }
.dz-f > span:first-child { font-size: 16px; }
.dz-f input { border: 0; outline: 0; background: transparent; color: var(--accent); font-size: 16px; text-align: right; min-height: 44px; -webkit-appearance: none; appearance: none; }
.dz-money { display: flex; align-items: center; color: var(--text-2); }
.dz-money input { width: 80px; color: var(--text); font-size: 18px; font-weight: 600; }
.dz-save { font-size: 13px; color: var(--green); margin: 4px 0 0; }
.ready-ring {
  width: 96px; height: 96px; margin: 8px auto 20px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, #7fd6ff, var(--accent) 60%, #1a4fd6); box-shadow: 0 0 60px rgba(59, 155, 255, 0.5);
  animation: pop 0.8s var(--bounce) both;
}
.ready-ring span { font-size: 44px; font-weight: 900; color: #fff; }

/* Home: "When it gets hard" */
.group.first { margin-top: 6px; }
.support { padding: 0; }
.sup-sos {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px; text-align: left;
  background: linear-gradient(120deg, rgba(90, 200, 250, 0.18), rgba(59, 155, 255, 0.06) 70%);
  transition: background 0.2s;
}
.sup-sos:active { background: rgba(90, 200, 250, 0.26); }
.sup-why { display: block; width: 100%; padding: 14px 16px 16px; text-align: left; border-top: 0.5px solid var(--sep); }
.sup-why:active { background: var(--card-2); }
.why-add { display: block; font-size: 16px; color: var(--accent); font-weight: 600; }
.money-card .mc-big { margin-top: 0; }

/* sections ease in one after another when a tab opens */
.page > section, .page > .card, .page > .greet, .page > .tiles { animation: rise 0.55s var(--spring) both; }
.page > :nth-child(4) { animation-delay: 40ms; }
.page > :nth-child(5) { animation-delay: 80ms; }
.page > :nth-child(6) { animation-delay: 120ms; }
.page > :nth-child(7) { animation-delay: 160ms; }
.page > :nth-child(n + 8) { animation-delay: 200ms; }

/* ---------- tab bar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; justify-content: center;
  padding: 0 max(8px, env(safe-area-inset-left)) var(--sab) max(8px, env(safe-area-inset-right));
  background: rgba(12, 15, 24, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
  border-top: 0.5px solid var(--sep);
}
.tab {
  flex: 1; max-width: 120px; height: var(--tabh); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--text-3); transition: color 0.2s;
}
.tab-ic { position: relative; display: grid; transition: transform 0.35s var(--bounce); }
.tab-ic .ic { width: 25px; height: 25px; }
.tab-l { font-size: 10.5px; font-weight: 600; letter-spacing: 0.01em; }
.tab.on { color: var(--accent); }
.tab.on .ic { stroke-width: 2.4; }
.tab:active .tab-ic { transform: scale(0.84); }
.tab-dot { position: absolute; top: -1px; right: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); border: 1.5px solid #0c0f18; }

/* ---------- bottom sheet ---------- */
.sheet-layer { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.sheet-layer.open { pointer-events: auto; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); opacity: 0; transition: opacity 0.4s var(--spring); }
.sheet-layer.open .sheet-backdrop { opacity: 1; }
.sheet-layer.stacked .sheet { transform: translate3d(0, 0, 0) scale(0.94) !important; filter: brightness(0.7); }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 640px;
  max-height: calc(100dvh - var(--sat) - 12px);
  background: #0c1019; border-radius: 22px 22px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
  display: flex; flex-direction: column;
  transition: transform 0.5s var(--spring), filter 0.4s;
  will-change: transform; transform-origin: top center;
}
.sheet.tall { height: calc(100dvh - var(--sat) - 12px); }
.sheet.dragging { transition: none; }
.grabber-zone { padding: 6px 0 0; display: flex; justify-content: center; flex: none; }
.grabber { width: 38px; height: 5px; border-radius: 3px; background: var(--fill-2); }
.sheet-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 12px; min-height: 48px; flex: none; }
.sb-title { font-size: 17px; font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60vw; }
.sb-side { display: flex; }
.sb-right { justify-content: flex-end; }
.sheet-body {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  padding: 4px 16px calc(var(--sab) + 28px);
}
.sheet-body > .group:first-child { margin-top: 12px; }
.sheet .card { background: var(--card); }
.confirm-text { font-size: 16px; color: var(--text-2); text-align: center; margin: 4px 8px 12px; line-height: 1.45; }

/* toast */
.toast {
  position: fixed; left: 50%; top: calc(var(--sat) + 10px); z-index: 100;
  transform: translate(-50%, -140%); background: rgba(40, 46, 62, 0.92); color: #fff;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  padding: 12px 20px; border-radius: 999px; font-size: 15px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45); transition: transform 0.5s var(--spring);
}
.toast.show { transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
@media (min-width: 700px) {
  .sheet { border-radius: 22px; bottom: 20px; }
}

/* ---------- Add to Home Screen guide ---------- */
.ig-screen { justify-content: center; }
.ig-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 8px; }
.ig-hero .wl-logo { border-radius: 18px; }
.ig-hero .auth-title { margin-top: 18px; }
.ig-hero .wiz-sub { margin: 8px 6px 0; }
.ig-perks { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 14px 0 4px; }
.ig-perks span { font-size: 12px; font-weight: 600; color: var(--text-2); background: var(--fill); border-radius: 99px; padding: 5px 9px; white-space: nowrap; animation: rise 0.6s var(--spring) both; }
.ig-perks span:nth-child(2) { animation-delay: 0.08s; } .ig-perks span:nth-child(3) { animation-delay: 0.16s; }
.ig-steps { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ig-step { background: var(--card); border-radius: var(--r-md); transition: background 0.3s, box-shadow 0.3s; animation: rise 0.55s var(--spring) both; }
.ig-step:nth-child(2) { animation-delay: 0.06s; } .ig-step:nth-child(3) { animation-delay: 0.12s; } .ig-step:nth-child(4) { animation-delay: 0.18s; }
.ig-step.on { box-shadow: inset 0 0 0 1.5px rgba(59, 155, 255, 0.55); }
.ig-step > button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 52px; text-align: left; }
.ig-n { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 800; background: var(--fill-2); color: var(--text-2); transition: background 0.3s, color 0.3s, transform 0.4s var(--bounce); }
.ig-step.on .ig-n { background: var(--accent); color: #fff; transform: scale(1.08); }
.ig-t { font-size: 16px; font-weight: 600; color: var(--text-2); transition: color 0.3s; }
.ig-step.on .ig-t { color: var(--text); }
.ig-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--spring); }
.ig-step.on .ig-more { grid-template-rows: 1fr; }
.ig-more > div { overflow: hidden; padding: 0 14px 0 54px; }
.ig-step.on .ig-more > div { padding-bottom: 14px; }
.ig-more p { margin: 0 0 10px; font-size: 14px; color: var(--text-2); line-height: 1.45; }
.ig-actions { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.ig-actions .btn { gap: 8px; }
.ig-actions .btn-primary .hs-ic { color: inherit; }

/* the little drawings */
.ig-art { display: flex; justify-content: center; }
.ig-bar { display: flex; align-items: center; justify-content: space-around; gap: 6px; width: 100%; max-width: 270px; background: rgba(28, 32, 42, 0.95); border: 0.5px solid var(--sep); border-radius: 16px; padding: 8px 10px; color: var(--accent); }
.ig-bar .ic { width: 20px; height: 20px; }
.ig-url { flex: 1; font-size: 13px; color: var(--text-2); background: var(--fill); border-radius: 10px; padding: 6px 10px; text-align: center; }
.ig-hot { display: inline-grid; place-items: center; font-style: normal; border-radius: 10px; padding: 3px; animation: igPulse 1.6s ease-in-out infinite; }
@keyframes igPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(59, 155, 255, 0.55); background: rgba(59, 155, 255, 0.12); } 50% { box-shadow: 0 0 0 7px rgba(59, 155, 255, 0); background: rgba(59, 155, 255, 0.28); } }
.ig-menu { width: 100%; max-width: 270px; background: rgba(28, 32, 42, 0.95); border: 0.5px solid var(--sep); border-radius: 14px; overflow: hidden; }
.ig-menu > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; font-size: 14px; color: var(--text); }
.ig-menu > span + span { border-top: 0.5px solid var(--sep); }
.ig-menu .ic { width: 18px; height: 18px; color: var(--text-2); }
.ig-menu > span.on { animation: igRow 1.6s ease-in-out infinite; }
.ig-menu > span.on .ic { color: var(--accent); }
@keyframes igRow { 0%, 100% { background: rgba(59, 155, 255, 0.1); } 50% { background: rgba(59, 155, 255, 0.26); } }
.ig-head em { font-style: normal; color: var(--accent); }
.ig-head b { font-size: 13px; }
.ig-add { color: var(--accent); padding: 0 4px; }
.ig-app { justify-content: flex-start !important; }
.ig-app img { border-radius: 7px; }
.ig-tog { width: 34px; height: 20px; border-radius: 10px; background: var(--green, #30d158); position: relative; flex: none; }
.ig-tog::after { content: ''; position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.ig-home { display: grid; grid-template-columns: repeat(4, 40px); gap: 14px; padding: 12px 16px; background: linear-gradient(160deg, #14203a, #0b1020); border-radius: 16px; }
.ig-home i { width: 40px; height: 40px; border-radius: 10px; opacity: 0.55; }
.ig-home img.ig-hot { padding: 0; border-radius: 10px; }
.ig-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 16px 0; animation: rise 0.5s var(--spring) both; }
.ig-done .ig-art { margin-bottom: 14px; }
.ig-done .wiz-sub { margin: 8px 8px 6px; }

/* Home banner */
.ig-banner { display: flex; align-items: center; background: rgba(59, 155, 255, 0.12); border: 0.5px solid rgba(59, 155, 255, 0.3); border-radius: var(--r-md); margin: 0 0 16px; animation: rise 0.5s var(--spring) both; }
.ig-banner-main { flex: 1; display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 0 10px 14px; min-height: 48px; font-size: 14px; color: var(--text-2); line-height: 1.35; }
.ig-banner-main b { color: var(--text); }
.ig-banner .icon-btn { font-size: 22px; flex: none; }

/* first launch from the Home Screen */
.ig-welcome { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding-top: 8px; padding-bottom: calc(var(--sab) + 20px); }
.ig-welcome .wiz-sub { margin: 0 6px 8px; }
.ig-welcome .btn { width: 100%; }

@media (prefers-reduced-motion: reduce) { .ig-hot, .ig-menu > span.on { animation: none; } }

/* delete account, step 2 */
.del-code { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding-top: 4px; }
.del-code .code { width: 100%; margin-top: 14px; }
.del-code .btn { width: 100%; margin-top: 10px; }
.tf-row input { flex: 1; min-width: 0; }

/* Autofill: keep Novum's colours instead of the browser's yellow/blue */
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, select:-webkit-autofill {
  -webkit-text-fill-color: var(--text); caret-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px var(--card) inset; box-shadow: 0 0 0 1000px var(--card) inset;
  transition: background-color 600000s 0s, color 600000s 0s;
}
.wiz-in:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px var(--card-2) inset; box-shadow: 0 0 0 1000px var(--card-2) inset; }
input:autofill { background: transparent; }

/* ---------- milestone celebration ---------- */
.cel { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; padding: calc(var(--sat) + 20px) 24px calc(var(--sab) + 24px);
  background: radial-gradient(circle at 50% 36%, rgba(59, 155, 255, 0.3), transparent 60%), rgba(4, 6, 11, 0.94);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); opacity: 0; transition: opacity 0.35s; }
.cel.on { opacity: 1; }
.cel-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cel-body { position: relative; width: 100%; max-width: 420px; text-align: center; transform: translateY(24px) scale(0.96); transition: transform 0.6s var(--bounce); }
.cel.on .cel-body { transform: none; }
.cel-ring { width: 168px; height: 168px; margin: 0 auto 22px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 14px solid var(--c); box-shadow: 0 0 60px color-mix(in srgb, var(--c) 55%, transparent), inset 0 0 30px color-mix(in srgb, var(--c) 30%, transparent);
  animation: pop 0.8s var(--bounce) both 0.1s; }
.cel-ring b { font-size: 60px; font-weight: 900; line-height: 1; letter-spacing: -0.03em; }
.cel-ring span { font-size: 14px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-2); margin-top: 4px; }
.cel-k { font-size: 13px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.cel-t { font-size: 32px; font-weight: 900; letter-spacing: -0.02em; line-height: 1.15; margin: 8px 0 10px; }
.cel-s { color: var(--text-2); font-size: 17px; line-height: 1.45; margin: 0 8px 26px; }
.cel-actions { display: flex; flex-direction: column; gap: 10px; }

/* share sheet */
.share-sheet { display: flex; flex-direction: column; gap: 10px; }
.share-preview { width: min(62vw, 260px); aspect-ratio: 9 / 16; margin: 4px auto 0; border-radius: 18px; overflow: hidden; background: var(--card); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); }
.share-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.share-wait { height: 100%; display: grid; place-items: center; color: var(--text-2); font-size: 14px; }

/* ---------- slipped up ---------- */
.sup-slip { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; text-align: left; border-top: 0.5px solid var(--sep); font-size: 15px; color: var(--text-2); min-height: 48px; }
.sup-slip b { color: var(--text); font-weight: 600; }
.sup-slip:active { background: var(--card-2); }
.sup-slip-e { font-size: 20px; width: 28px; text-align: center; }
.slip-hero { text-align: center; padding: 4px 8px 6px; }
.slip-hero .wiz-sub { margin-top: 6px; }
.note-wrap .note { min-height: 72px; }
.slip-keep { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; font-size: 15px; line-height: 1.4; color: var(--text-2); }
.slip-keep > div { display: flex; gap: 10px; align-items: flex-start; }
.slip-keep b { color: var(--text); }
.slip-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.slip-done .stats3 { width: 100%; }
.slip-done .btn { width: 100%; }

/* ---------- buddies ---------- */
.avatar.sm { width: 36px; height: 36px; font-size: 16px; flex: none; }
.buddy-req { display: flex; align-items: center; gap: 10px; padding: 10px 8px 10px 14px; margin-bottom: 8px; animation: rise 0.5s var(--spring) both; }
.buddy-empty { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 14px 14px 16px; text-align: left; }
.buddy-e { font-size: 30px; }
.buddy-row { gap: 12px; }
.cheer-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--fill); font-size: 20px; display: grid; place-items: center; flex: none; transition: transform 0.3s var(--bounce); }
.cheer-btn:active { transform: scale(0.85); }
.buddy-card { position: relative; padding-bottom: 12px; }
.buddy-card + .buddy-card { border-top: 0.5px solid var(--sep); }
.buddy-best { margin: -4px 16px 8px 64px; font-size: 13px; color: var(--text-2); }
.cheers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0 12px; }
.cheer { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border-radius: 12px; background: var(--fill); font-size: 11px; font-weight: 600; color: var(--text-2); min-height: 56px; transition: transform 0.3s var(--bounce), background 0.2s; }
.cheer span { font-size: 20px; }
.cheer:active { transform: scale(0.9); background: var(--fill-2); }
.entry-add.plain { padding: 6px 8px 6px 16px; }
.link.danger { color: var(--red); }

/* ---------- what money could buy ---------- */
.wish-line { margin-top: 12px; padding-top: 12px; border-top: 0.5px solid var(--sep); font-size: 14px; color: var(--text-2); }
.wish-line.add b { color: var(--accent); font-weight: 600; }
.wl-got { color: var(--green); font-weight: 600; margin-bottom: 6px; }
.wl-next { display: flex; justify-content: space-between; gap: 8px; }
.wl-next b { color: var(--text); font-variant-numeric: tabular-nums; }
.wl-bar { display: block; height: 6px; border-radius: 3px; background: var(--fill); overflow: hidden; margin-top: 6px; }
.wl-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #3b9bff, #5ac8fa); transition: width 0.8s var(--spring); }
.wish-hero { text-align: center; padding: 6px 12px 14px; }
.wish-hero .mc-big { color: var(--green); }
.wish-hero p { margin: 4px 0 0; font-size: 14px; }
.wish-row .row-main { min-width: 0; }
.wish-row .wl-bar { margin-top: 6px; }
.wish-add { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; }
.wish-add input { min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; min-height: 44px; }
.wish-add input:nth-child(2) { flex: 1; }
.wish-emoji { width: 40px; text-align: center; font-size: 22px !important; background: var(--fill) !important; border-radius: 10px; }
.wish-price { display: flex; align-items: center; color: var(--text-2); width: 72px; }
.wish-price input { width: 100%; }

/* ---------- check-in calendar ---------- */
.cal { padding: 8px 12px 14px; }
.cal-top { display: flex; align-items: center; justify-content: space-between; }
.cal-t { display: flex; flex-direction: column; align-items: center; }
.cal-t b { font-size: 17px; }
.cal-t span { font-size: 12px; color: var(--text-2); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: 6px; }
.cal-wd { text-align: center; font-size: 11px; font-weight: 700; color: var(--text-3); padding: 2px 0 4px; }
.cal-d { position: relative; aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; font-size: 14px; font-weight: 600; color: var(--text-2);
  background: var(--fill); transition: transform 0.25s var(--bounce); font-variant-numeric: tabular-nums; }
.cal-d.has { background: color-mix(in srgb, var(--mc) 30%, transparent); color: #fff; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--mc) 70%, transparent); }
.cal-d.today { outline: 2px solid var(--accent); outline-offset: 1px; }
.cal-d.sel { transform: scale(1.08); box-shadow: 0 0 0 2.5px #fff inset; }
.cal-d:disabled { opacity: 0.3; }
.cal-d:active:not(:disabled) { transform: scale(0.9); }
.cal-note { position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.8; }
.cal-key { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; margin-top: 12px; font-size: 11px; color: var(--text-2); }
.cal-key span { display: inline-flex; align-items: center; gap: 4px; }
.cal-key i { width: 9px; height: 9px; border-radius: 3px; }

/* ---------- craving heatmap ---------- */
.heat-grid { display: grid; grid-template-columns: 34px repeat(6, 1fr); gap: 4px; align-items: center; margin-bottom: 10px; }
.heat-h { font-size: 9.5px; color: var(--text-3); text-align: center; line-height: 1.1; }
.heat-w { font-size: 12px; color: var(--text-2); font-weight: 600; }
.heat-grid i { height: 30px; border-radius: 7px; background: var(--fill); display: grid; place-items: center; font-size: 11px; font-weight: 700; font-style: normal; color: transparent; }
.heat-grid i.on { background: rgba(255, 69, 58, var(--a)); color: rgba(255, 255, 255, 0.9); }

/* ---------- misc ---------- */
.remember { margin-top: 14px; }
.remember .row { min-height: 60px; }
.ts-box { display: flex; justify-content: center; }
.ts-box:empty { display: none; }
.admin-tiles { margin: 0 0 8px; }
.admin-pw { text-align: center; }
.admin-pw p { margin: 0 0 10px; font-size: 14px; line-height: 1.4; }
.admin-pw-v { font: 800 24px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.02em; padding: 12px; margin-bottom: 12px; border-radius: 12px; background: var(--fill); user-select: all; -webkit-user-select: all; }
@media (prefers-reduced-motion: reduce) { .cel-body, .cel-ring { transition: none; animation: none; } }

/* rows without an icon: divider starts at the text */
.list > .row:not(:has(.row-ic))::before { left: 16px; }

/* ---------- welcome screen ---------- */
.welcome { position: relative; overflow: hidden; justify-content: space-between; }
.welcome > * { position: relative; z-index: 1; }
.wl-sky { position: fixed !important; inset: 0; z-index: 0 !important; pointer-events: none; overflow: hidden; }
.wl-sky i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; }
.wl-sky .o1 { width: 340px; height: 340px; left: -120px; top: -80px; background: #1f6bff; animation: drift1 18s ease-in-out infinite alternate; }
.wl-sky .o2 { width: 300px; height: 300px; right: -140px; top: 28%; background: #5ac8fa; opacity: 0.35; animation: drift2 22s ease-in-out infinite alternate; }
.wl-sky .o3 { width: 280px; height: 280px; left: 10%; bottom: -160px; background: #7d5cff; opacity: 0.35; animation: drift1 26s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(60px, 50px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-70px, 40px) scale(0.9); } }
.wl-hero { padding: 28px 0 8px; }
.wl-mark { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.wl-ring { position: absolute; inset: 0; width: 120px; height: 120px; transform: rotate(-90deg); }
.wl-ring circle { fill: none; stroke-width: 5; stroke: rgba(255, 255, 255, 0.07); }
.wl-ring .fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 339.3; stroke-dashoffset: 339.3; animation: ringFill 1.8s var(--spring) 0.3s forwards; filter: drop-shadow(0 0 6px rgba(59, 155, 255, 0.8)); }
@keyframes ringFill { to { stroke-dashoffset: 0; } }
.wl-mark .wl-logo { border-radius: 22px; }
.wl-name { margin: 18px 0 8px; background: linear-gradient(180deg, #fff 30%, #9cc9ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wl-tag { font-size: 18px; }
.wl-demo { display: flex; flex-direction: column; gap: 10px; margin: 22px 0 22px; }
.wd-card { background: rgba(20, 26, 40, 0.72); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 0.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px; padding: 12px 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); animation: rise 0.7s var(--spring) both, float 6s ease-in-out infinite; }
.wd-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wd-k { font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.wd-streak { animation-delay: 0.45s, 0s; }
.wd-time { font-variant-numeric: tabular-nums; }
.wd-time b { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.wd-time b.dim { color: var(--text-3); }
.wd-time small { font-size: 13px; color: var(--text-2); margin: 0 6px 0 2px; font-weight: 600; }
.wd-money { animation-delay: 0.6s, 1.2s; }
.wd-money .wd-k { color: var(--green); }
.wd-money b { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.wd-badge { display: flex; align-items: center; gap: 10px; animation-delay: 0.75s, 2.4s; }
.wd-badge > span { font-size: 30px; }
.wd-badge b { display: block; font-size: 16px; }
.wd-badge small { font-size: 12px; color: var(--text-2); }
.wd-cheer { display: flex; align-items: center; gap: 10px; font-size: 15px; animation-delay: 0.9s, 3.2s; }
.wd-cheer small { color: var(--text-2); margin-left: 4px; }
.wd-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: linear-gradient(140deg, #ff9f0a, #ff375f); flex: none; }
@keyframes float { 50% { transform: translateY(-4px); } }
.wl-fine { text-align: center; font-size: 13px; color: var(--text-2); margin: 12px 0 0; }

/* ---------- avatars ---------- */
.av { border-radius: 50%; flex: none; object-fit: cover; background: var(--fill-2); display: block; }
.av-txt { display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(140deg, var(--accent-2), var(--accent) 60%, #1a4fd6); }
.avp-hero { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 4px 0 12px; }
.avp-styles { padding: 0 0 10px; justify-content: center; }
.avp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.avp-opt { aspect-ratio: 1; border-radius: 18px; display: grid; place-items: center; background: var(--card); transition: transform 0.3s var(--bounce), box-shadow 0.2s; }
.avp-opt.on { box-shadow: 0 0 0 3px var(--accent); transform: scale(1.04); }
.avp-opt:active { transform: scale(0.92); }
.sw.none { background: repeating-linear-gradient(45deg, var(--fill), var(--fill) 4px, transparent 4px, transparent 8px); box-shadow: inset 0 0 0 1px var(--sep); }

/* ---------- my profile header ---------- */
.ph { padding: 16px; }
.ph-top { display: flex; align-items: center; gap: 14px; }
.ph-av { position: relative; flex: none; border-radius: 50%; }
.ph-av-edit { position: absolute; right: -2px; bottom: -2px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; border: 3px solid var(--card); }
.ph-av-edit .ic { width: 14px; height: 14px; stroke-width: 3; color: #fff; }
.ph-main { min-width: 0; }
.ph-counts { display: flex; gap: 14px; margin-top: 8px; font-size: 14px; color: var(--text-2); }
.ph-counts.center { justify-content: center; }
.ph-counts b { color: var(--text); font-weight: 700; }
.ph-bio { margin: 12px 0 0; font-size: 15px; line-height: 1.45; white-space: pre-wrap; }
.ph-bio.empty { color: var(--text-3); }
.ph-req { display: block; width: 100%; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(59, 155, 255, 0.14); color: var(--accent); font-weight: 600; text-align: left; }
.ph-actions { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr; gap: 8px; margin-top: 14px; }
.ph-actions .btn { padding: 0 8px; }

/* ---------- edit profile, people, person ---------- */
.story-ed { padding: 12px 0 4px; }
.story-ed + .story-ed { border-top: 0.5px solid var(--sep); }
.story-h { display: flex; align-items: center; gap: 10px; padding: 0 16px; }
.story-h b { flex: 1; }
.story-sw { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.story-ed .note { min-height: 84px; }
.search { display: flex; align-items: center; gap: 10px; padding: 0 14px; margin: 12px 0 4px; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; min-height: 46px; }
.buddy-who { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; text-align: left; }
.pp-top { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 0 16px; }
.pp-top .auth-title { margin-top: 10px; }
.pp-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; justify-content: center; }
.pp-actions .btn { min-width: 120px; }
.pp-actions .pill { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; }
.pp-bio { text-align: center; font-size: 16px; line-height: 1.45; margin: 0 8px 8px; white-space: pre-wrap; }
.pp-private { text-align: center; line-height: 1.5; color: var(--text-2); }
.pp-private b { color: var(--text); }
.story { padding: 12px 16px; }
.story + .story { border-top: 0.5px solid var(--sep); }
.story p { margin: 6px 0 0; color: var(--text-2); line-height: 1.5; white-space: pre-wrap; }
.pad-y { padding-top: 12px; padding-bottom: 12px; }
.row-detail.accent { color: var(--accent); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .wl-sky i, .wd-card, .wl-ring .fg { animation: none !important; } .wl-ring .fg { stroke-dashoffset: 0; } }
.pp-actions .pill { background: var(--fill); color: var(--text-2); }
.pp-actions .pill.ok { background: rgba(48, 209, 88, 0.16); color: var(--green); }

/* ---------- consent tick box (sign-up) ---------- */
.consent { position: relative; display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; font-size: 14px; line-height: 1.45; color: var(--text-2); cursor: pointer; text-align: left; }
.consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent-box { flex: none; width: 26px; height: 26px; margin-top: 1px; border-radius: 8px; border: 2px solid var(--fill-2); display: grid; place-items: center; transition: background 0.2s, border-color 0.2s, transform 0.3s var(--bounce); }
.consent-box .ic { width: 16px; height: 16px; stroke-width: 3; color: #fff; opacity: 0; transform: scale(0.5); transition: all 0.3s var(--bounce); }
.consent input:checked + .consent-box { background: var(--accent); border-color: var(--accent); transform: scale(1.05); }
.consent input:checked + .consent-box .ic { opacity: 1; transform: none; }
.consent input:focus-visible + .consent-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.link.inline { display: inline; min-height: 0; padding: 0; font-size: inherit; font-weight: 600; vertical-align: baseline; }
.wiz-hint.center { text-align: center; }

/* ---------- privacy notice ---------- */
.privacy { line-height: 1.5; }
.privacy .pv-lead { font-size: 16px; margin: 0 2px 6px; }
.privacy h3 { font-size: 17px; font-weight: 700; margin: 22px 2px 6px; }
.privacy p { color: var(--text-2); margin: 8px 2px; font-size: 15px; }
.privacy p b, .privacy li b { color: var(--text); }
.privacy ul { margin: 0; padding: 12px 16px 12px 32px; background: var(--card); border-radius: var(--r-md); }
.privacy li { color: var(--text-2); font-size: 15px; margin: 6px 0; }
.privacy a { color: var(--accent); }

/* ---------- profile banners ---------- */
.banner { width: 100%; height: 100%; }
.ph { padding: 0 0 16px; overflow: hidden; }
.ph > :not(.ph-banner) { margin-left: 16px; margin-right: 16px; }
.ph-banner { display: block; position: relative; width: 100%; height: 104px; }
.ph-banner-edit { position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 15px;
  background: rgba(0, 0, 0, 0.35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ph-top { align-items: flex-end; margin-top: -38px; }
.ph-av .av { box-shadow: 0 0 0 4px var(--card); }
.ph-main { padding-bottom: 2px; }
.ph .pc-name { margin-top: 42px; }
.ep-top { margin-bottom: 8px; }
.ep-banner { display: block; position: relative; width: 100%; height: 120px; border-radius: 18px; overflow: hidden; }
.ep-av { display: block; position: relative; margin: -48px auto 0; border-radius: 50%; }
.ep-av .av { box-shadow: 0 0 0 5px #0c1019; }
.ep-links { display: flex; justify-content: center; gap: 18px; margin-top: 4px; }
.pp-banner { height: 120px; border-radius: 18px; }
.person .pp-top { margin-top: -52px; }
.pp-av { box-shadow: 0 0 0 5px #0c1019; }
.bp-hero { height: 130px; border-radius: 18px; margin-bottom: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); }
.bp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.bp-opt { height: 64px; border-radius: 14px; overflow: hidden; transition: transform 0.3s var(--bounce), box-shadow 0.2s; }
.bp-opt.on { box-shadow: 0 0 0 3px var(--accent); transform: scale(1.03); }
.bp-opt:active { transform: scale(0.95); }
.bp-pals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 12px; }
.bp-pal { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--text-2); }
.bp-pal i { width: 44px; height: 44px; border-radius: 50%; transition: transform 0.3s var(--bounce), box-shadow 0.2s; }
.bp-pal.on i { box-shadow: 0 0 0 3px #0c1019, 0 0 0 5px var(--accent); transform: scale(1.06); }
.bp-pal.on span { color: var(--text); }
.ph .ph-req { width: calc(100% - 32px); }

/* ---------- activity bell and feed ---------- */
.bell { position: relative; }
.bell-dot { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff;
  font-size: 11px; font-weight: 800; font-style: normal; display: grid; place-items: center; border: 2px solid var(--bg); animation: pop 0.5s var(--bounce); }
.act { display: flex; gap: 12px; padding: 12px 14px; position: relative; }
.act + .act { border-top: 0.5px solid var(--sep); }
.act.new { background: rgba(59, 155, 255, 0.07); }
.act.new::after { content: ''; position: absolute; left: 5px; top: 28px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.act-av { flex: none; border-radius: 50%; align-self: flex-start; }
.act-main { flex: 1; min-width: 0; }
.act-t { font-size: 15px; line-height: 1.4; }
.act-t i { font-style: normal; color: var(--text-2); }
.act-when { color: var(--text-3); font-size: 13px; margin-left: 4px; white-space: nowrap; }
.act-btns { display: flex; gap: 8px; margin-top: 8px; }
.act-cheers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.cheer.sm { min-height: 50px; padding: 6px 2px; font-size: 10.5px; }
.cheer.sm span { font-size: 18px; }
.act-done { margin-top: 6px; font-size: 13px; color: var(--green); font-weight: 600; }
.act-empty { text-align: center; padding: 40px 20px; }
.act-empty b { display: block; font-size: 18px; margin-top: 6px; }

/* ---------- SOS: ask buddies ---------- */
.sos-ask { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; margin-top: 12px; border-radius: var(--r-md); text-align: left;
  background: rgba(255, 159, 10, 0.12); border: 0.5px solid rgba(255, 159, 10, 0.3); }
.sos-ask > span:first-child { font-size: 24px; }
.sos-ask b { display: block; font-size: 15px; }
.sos-ask small { color: var(--text-2); font-size: 13px; }
.sos-cheers { margin-top: 12px; padding: 12px 14px; }
.sos-cheers-h { font-size: 14px; color: var(--text-2); }
.sos-cheer { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 15px; animation: rise 0.5s var(--bounce) both; }

/* ---------- pull to refresh ---------- */
.ptr { display: flex; align-items: flex-end; justify-content: center; overflow: hidden; transition: height 0.3s var(--spring), opacity 0.2s; }
.ptr svg { width: 26px; height: 26px; margin-bottom: 12px; fill: none; stroke: var(--text-2); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ptr.ready svg { stroke: var(--accent); }
.ptr.busy svg { stroke: var(--accent); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- loading placeholders ---------- */
.sk { display: block; border-radius: 8px; background: linear-gradient(90deg, var(--fill) 0%, var(--fill-2) 50%, var(--fill) 100%); background-size: 200% 100%; animation: shimmer 1.3s ease-in-out infinite; }
.sk-av { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.sk-av.big { width: 96px; height: 96px; margin-bottom: 10px; }
.sk-l { height: 14px; margin: 3px 0 8px; }
.sk-s { height: 11px; width: 35%; }
.sk-banner { height: 120px; border-radius: 18px; margin-bottom: -40px; }
.skel .row { gap: 12px; min-height: 64px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- Home greeting with avatar ---------- */
.greet { display: flex; align-items: center; gap: 10px; }
.greet-av { flex: none; border-radius: 50%; }

/* ---------- Day Zero: make it yours ---------- */
.dz-look { margin-top: 22px; }
.dz-look-name { text-align: center; font-size: 20px; font-weight: 800; margin-top: 8px; }
.dz-look-name span { display: block; font-size: 14px; font-weight: 500; color: var(--text-2); }
.dz-look-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.dz-look .ep-av .av { box-shadow: 0 0 0 5px var(--bg); }

/* ---------- admin ---------- */
.tile.warn b { color: var(--orange, #ff9f0a); }
@media (prefers-reduced-motion: reduce) { .sk, .ptr.busy svg { animation: none; } }

/* large title with a button beside it (the activity bell on Home) */
.lt-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lt-row .large-title { flex: 1; min-width: 0; }
.lt-row .bell { margin-right: -10px; }

/* ---------- lung test ---------- */
.lung-card { padding: 16px; }
.lung-card .btn { margin-top: 12px; }
.lung-card .tiny { margin: 10px 2px 0; }
.lung-intro { display: flex; gap: 14px; align-items: flex-start; }
.lung-intro p { margin: 4px 0 0; font-size: 14px; line-height: 1.45; }
.lung-e { font-size: 38px; }
.lung-top { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 8px; }
.lung-score { font-size: 46px; font-weight: 900; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.lung-score small { font-size: 18px; color: var(--text-2); font-weight: 700; margin-left: 2px; }
.lung-score.big { font-size: 84px; }
.lung-word { color: #5ac8fa; font-weight: 700; margin-top: 4px; }
.lung-delta { text-align: right; font-size: 22px; font-weight: 800; }
.lung-delta.up { color: var(--green); }
.lung-delta.down { color: var(--orange, #ff9f0a); }
.lung-delta small { display: block; font-size: 12px; font-weight: 600; color: var(--text-2); }
.lung-meta { font-size: 13px; color: var(--text-2); margin-top: 6px; }
.lung-test { display: flex; flex-direction: column; gap: 12px; }
.lung-hero { font-size: 64px; text-align: center; margin-top: 6px; }
.lung-steps { margin: 4px 0; padding: 14px 16px 14px 34px; background: var(--card); border-radius: var(--r-md); line-height: 1.5; color: var(--text-2); }
.lung-steps li { margin: 6px 0; }
.lung-steps b { color: var(--text); }
.lung-stage { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 26px 0 10px; min-height: 380px; justify-content: center; }
.lung-orb { --lv: 0; width: 200px; height: 200px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 40% 35%, #8fdcff, #3b9bff 55%, #1a4fd6); box-shadow: 0 0 calc(30px + var(--lv) * 90px) rgba(90, 200, 250, calc(0.25 + var(--lv) * 0.5));
  transform: scale(calc(0.85 + var(--lv) * 0.4)); transition: transform 0.08s linear, box-shadow 0.08s linear; }
.lung-orb.quiet { animation: pulse 1.6s ease-in-out infinite; opacity: 0.6; }
.lung-orb b { font-size: 56px; font-weight: 900; font-variant-numeric: tabular-nums; }
.lung-orb small { font-size: 13px; font-weight: 700; opacity: 0.8; }
.lung-bar { width: 80%; height: 8px; border-radius: 4px; background: var(--fill); overflow: hidden; }
.lung-bar i { display: block; height: 100%; background: linear-gradient(90deg, #5ac8fa, #30d158); border-radius: 4px; }
.lung-say { font-size: 20px; font-weight: 700; margin: 0; }
.lung-result { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.lung-result .stats3 { width: 100%; }
.lung-result .btn { width: 100%; }
.lung-result p { margin: 4px 0; }

/* ---------- SOS puzzle ---------- */
.sos-game { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; margin-top: 12px; border-radius: var(--r-md); text-align: left; background: rgba(132, 94, 247, 0.14); border: 0.5px solid rgba(132, 94, 247, 0.35); }
.sos-game > span:first-child { font-size: 24px; }
.sos-game b { display: block; font-size: 15px; }
.sos-game small { color: var(--text-2); font-size: 13px; }
.flow { display: flex; flex-direction: column; gap: 12px; padding-top: 6px; }
.fl-top { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--text-2); font-weight: 600; }
.fl-top b { font-size: 24px; color: var(--text); font-variant-numeric: tabular-nums; }
.fl-board { --n: 4; position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 4px; padding: 8px; border-radius: 18px; background: var(--card); width: min(100%, 360px); margin: 0 auto; aspect-ratio: 1; transition: box-shadow 0.3s; }
.fl-board.win { box-shadow: 0 0 0 3px var(--green), 0 0 40px rgba(48, 209, 88, 0.4); }
.fl-in { position: absolute; left: -6px; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: #ffd60a; box-shadow: 0 0 12px #ffd60a; }
.fl-tile { border-radius: 10px; background: var(--fill); display: grid; place-items: center; padding: 0; }
.fl-tile svg { width: 100%; height: 100%; transition: transform 0.22s var(--spring); }
.fl-tile line { stroke: rgba(255, 255, 255, 0.28); stroke-width: 16; stroke-linecap: round; }
.fl-tile circle { fill: rgba(255, 255, 255, 0.28); }
.fl-tile.lit line { stroke: #ffd60a; filter: drop-shadow(0 0 4px rgba(255, 214, 10, 0.7)); }
.fl-tile.lit circle { fill: #ffd60a; }
.fl-tile:active { background: var(--fill-2); }
.fl-board.win .fl-tile.lit line, .fl-board.win .fl-tile.lit circle { stroke: var(--green); fill: var(--green); }
.fl-help { text-align: center; font-size: 13px; color: var(--text-2); margin: 0; }
.fl-done { text-align: center; padding: 30px 10px; }
.fl-done b { display: block; font-size: 20px; margin-top: 6px; }

/* ---------- Novum Wrapped ---------- */
.wr { position: fixed; inset: 0; z-index: 46; color: #fff; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--c1, #1f6bff), var(--c2, #04060b)); transition: background 0.6s; padding: calc(var(--sat) + 40px) 28px calc(var(--sab) + 90px); animation: screenIn 0.4s var(--spring); }
.wr-load { font-size: 60px; animation: pulse 1.2s ease-in-out infinite; }
.wr-bars { position: absolute; top: calc(var(--sat) + 10px); left: 12px; right: 12px; display: flex; gap: 4px; z-index: 3; }
.wr-bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.3); overflow: hidden; position: relative; }
.wr-bars i.done { background: #fff; }
.wr-bars i.now::after { content: ''; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: wrFill 6s linear forwards; }
.wr-bars i.now.paused::after { animation-play-state: paused; }
@keyframes wrFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.wr-x { position: absolute; top: calc(var(--sat) + 22px); right: 12px; z-index: 4; width: 44px; height: 44px; font-size: 20px; color: #fff; }
.wr-tap { position: absolute; top: 0; bottom: 0; z-index: 2; }
.wr-tap.left { left: 0; width: 30%; }
.wr-tap.right { right: 0; width: 70%; }
.wr-slide { position: relative; z-index: 1; text-align: center; max-width: 420px; pointer-events: none; }
.wr-slide > * { animation: rise 0.6s var(--spring) both; }
.wr-slide > :nth-child(2) { animation-delay: 0.08s; } .wr-slide > :nth-child(3) { animation-delay: 0.16s; } .wr-slide > :nth-child(4) { animation-delay: 0.26s; } .wr-slide > :nth-child(5) { animation-delay: 0.4s; }
.wr-emoji { font-size: 92px; line-height: 1; margin-bottom: 18px; animation: pop 0.7s var(--bounce) both !important; }
.wr-av { display: flex; justify-content: center; margin-bottom: 18px; }
.wr-av .av { box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.25); }
.wr-kicker { font-size: 14px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.8; }
.wr-big { font-size: 84px; font-weight: 900; letter-spacing: -0.04em; line-height: 1.05; margin: 6px 0; font-variant-numeric: tabular-nums; word-break: break-word; }
.wr-label { font-size: 22px; font-weight: 700; }
.wr-sub { font-size: 16px; opacity: 0.8; margin-top: 14px; line-height: 1.45; }
.wr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.wr-grid div { background: rgba(255, 255, 255, 0.12); border-radius: 16px; padding: 14px 8px; display: flex; flex-direction: column; }
.wr-grid b { font-size: 26px; font-weight: 900; }
.wr-grid span { font-size: 12px; opacity: 0.8; }
.wr-share { position: absolute; bottom: calc(var(--sab) + 24px); left: 24px; right: 24px; z-index: 4; min-height: 52px; border-radius: 16px; background: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #fff; font-weight: 700; font-size: 16px; }
.wr-peek { display: block; width: 100%; margin: 0 0 14px; padding: 12px 14px; border-radius: var(--r-md); text-align: left; font-weight: 600; font-size: 15px;
  background: linear-gradient(90deg, rgba(31, 107, 255, 0.2), rgba(125, 92, 255, 0.2)); color: var(--text); }
.wr-card { display: block; width: 100%; text-align: left; padding: 20px; margin-bottom: 14px; background: linear-gradient(140deg, #1f6bff, #7d5cff 60%, #ff375f); }
.wr-card-k { font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.85; }
.wr-card-y { font-size: 64px; font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.wr-card-s { font-size: 15px; opacity: 0.9; margin: 8px 0 14px; line-height: 1.4; }
@media (prefers-reduced-motion: reduce) { .wr-slide > *, .wr-bars i.now::after { animation: none !important; } .lung-orb { transition: none; } }
.wr-share { text-align: center; }
.wr-big.txt { font-size: 54px; letter-spacing: -0.03em; }
