:root {
  --bg: #F2F2EF;
  --paper: #FFFFFF;
  --ink: #15171A;
  --text: #2E3136;
  --muted: #84888F;
  --faint: #C5C7CB;
  --line: #E8E8E4;
  --track: #EAEAE6;
  --accent: #15171A;
  --accent-deep: #15171A;
  --accent-soft: #E8E8E4;
  --good: #1E8A4C;
  --yellow: #D99A1E;
  --yellow-soft: #F7EED8;
  --red: #C8463D;
  --red-soft: #F6E1DE;
  --gray: #E2E2DE;
  --pat: #15171A;
  --jaime: #5B636E;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 4px 14px rgba(0, 0, 0, .04);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body { margin: 0; touch-action: manipulation; -webkit-user-select: none; user-select: none; font-family: var(--font); color: var(--text); background: var(--bg); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; overscroll-behavior-y: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; text-align: inherit; }
a { color: inherit; }
.hidden { display: none !important; }
.ink { color: var(--ink); }
.small { font-size: 12.5px !important; }

/* ---------- layout ---------- */
.shell { max-width: 520px; margin: 0 auto; padding: calc(var(--safe-t) + 12px) 18px calc(var(--safe-b) + 100px); min-height: 100vh; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 4px 0 14px; }
.wordmark { font-family: var(--display); font-weight: 800; letter-spacing: .2em; font-size: 12.5px; color: var(--ink); }
.wordmark span { color: var(--accent); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.avatar.pat { background: var(--pat); }
.avatar.jaime { background: var(--jaime); }
input, textarea { -webkit-user-select: text; user-select: text; }
.avatar.sm { width: 28px; height: 28px; font-size: 11.5px; }

h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; letter-spacing: -.02em; }
h1 { font-size: 30px; font-weight: 800; line-height: 1.12; }
h2 { font-size: 20px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 650; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.eyebrow.accent { color: var(--accent); }
.sub { color: var(--muted); font-size: 14px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 4px 10px; gap: 10px; }
.section-title .eyebrow { color: var(--ink); }
.link { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; font-weight: 650; font-size: 13px; }
.page-head { margin: 4px 2px 18px; }
.page-head h1 { margin-top: 4px; }

.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.card + .card { margin-top: 12px; }
.grid2 > .card { margin-top: 0; }
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; }
.spacer { flex: 1; }

/* ---------- brand ---------- */
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 800; font-size: 13px; color: var(--ink); letter-spacing: .16em; text-transform: uppercase; }
.app-badge { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--ink); color: #fff; font-family: var(--display); font-weight: 850; font-size: 14px; letter-spacing: -.04em; }
.app-badge.big { width: 84px; height: 84px; border-radius: 20px; font-size: 40px; box-shadow: 0 10px 26px rgba(0,0,0,.18); }

/* ---------- greeting + couple ---------- */
.hello { margin: 6px 2px 16px; }
.hello-sub { font-size: 13.5px; color: var(--muted); font-weight: 550; }
.hello h1 { margin-top: 2px; font-size: 40px; letter-spacing: -.03em; }
.hello h1 span { color: var(--faint); font-weight: 700; font-size: 24px; letter-spacing: -.01em; }
.hello-sub { text-transform: uppercase; letter-spacing: .1em; font-size: 11.5px !important; font-weight: 700 !important; }
.couple { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 10px 16px; }
.cp-person { display: flex; flex-direction: column; align-items: center; gap: 8px; border-radius: 18px; padding: 4px 0; transition: transform .15s; }
.cp-person:active { transform: scale(.97); }
.cp-in { text-align: center; line-height: 1; }
.cp-in b { display: block; font-family: var(--display); font-size: 26px; font-weight: 800; color: var(--ink); }
.cp-in small { font-size: 11px; color: var(--muted); font-weight: 600; }
.cp-name { font-size: 13.5px; font-weight: 650; color: var(--muted); padding: 3px 10px; border-radius: 99px; }
.cp-person.sel .cp-name { background: var(--bg); color: var(--ink); }
.cp-star { color: var(--good); }
.cp-mid { text-align: center; padding: 0 4px; }
.cp-label { font-size: 10.5px; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.cp-heart { width: 30px; height: 30px; margin: 0 auto 6px; color: var(--accent); }
.cp-heart svg { width: 30px; height: 30px; fill: var(--accent-soft); }
.cp-day { font-family: var(--display); font-size: 28px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; white-space: nowrap; }
.cp-of { font-size: 12px; color: var(--muted); font-weight: 600; }
.cp-streak { margin-top: 6px; font-size: 10.5px; font-weight: 700; color: var(--accent-deep); background: var(--accent-soft); border-radius: 99px; padding: 3px 8px; }
.journey { display: flex; align-items: center; gap: 10px; margin: 14px 6px 0; }
.journey .bar { flex: 1; height: 5px; background: var(--track); }
.journey .bar > i { background: var(--ink); }
.journey span { font-size: 11.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }

/* ---------- quote ---------- */
.quote { margin-top: 16px; border-radius: var(--radius); padding: 20px 22px 18px; background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.quote .q-label { font-size: 10.5px; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; color: #8E9299; }
.quote .q-label::before { content: ""; display: inline-block; width: 14px; height: 2px; background: var(--good); vertical-align: middle; margin-right: 8px; }
.quote p { margin: 10px 0 0; font-family: var(--serif); font-size: 21px; line-height: 1.36; color: #fff; }
.quote .q-by { margin-top: 12px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8E9299; }

/* ---------- banners / day nav ---------- */
.daynav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; font-weight: 650; color: var(--ink); font-size: 14.5px; }
.daynav .arrow { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); box-shadow: var(--shadow); color: var(--text); }
.daynav .arrow[disabled] { opacity: .3; pointer-events: none; }
.banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--yellow-soft); color: #82601C; border-radius: 16px; padding: 12px 14px; font-size: 13.5px; font-weight: 550; margin-top: 12px; }
.banner.soft { background: #E6E6E2; color: var(--ink); }
.done-note { text-align: center; margin: 12px 0 0; font-size: 13px; font-weight: 700; color: var(--good); letter-spacing: .02em; }
.section-title h2 { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.section-title .count { font-size: 12px; font-weight: 750; color: var(--muted); font-variant-numeric: tabular-nums; }
.section-title .count.done { color: var(--good); }
.section-sub { margin: -6px 4px 10px; font-size: 13px; color: var(--muted); }

/* ---------- checklist ---------- */
.list { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.item + .item, .list > .item-row + .item-row { border-top: 1px solid var(--line); }
.item-row { display: flex; align-items: center; gap: 13px; padding: 12px 14px; width: 100%; min-height: 66px; }
.ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--cb); color: var(--c); flex: none; transition: all .2s; }
.ico svg { width: 22px; height: 22px; }
.item.done .ico, .item-row.reset.done .ico { background: var(--c); color: #fff; }
.item.na .ico { background: var(--bg); color: var(--faint); }
.item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.item-title { display: flex; align-items: center; gap: 4px; font-weight: 650; color: var(--ink); font-size: 16px; letter-spacing: -.01em; }
.item-title .chev { display: inline-grid; color: var(--faint); transition: transform .2s; }
.item-title .chev svg { width: 15px; height: 15px; }
.item.open .item-title .chev { transform: rotate(180deg); color: var(--c); }
.item-meta { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.item-meta em { font-style: normal; font-weight: 650; }
.item-meta .ok { color: var(--good); }
.item-meta .warn { color: var(--red); }
.item.na .item-title { color: var(--faint); }
.mini-bar { display: block; width: 100%; max-width: 170px; height: 5px; border-radius: 9px; background: var(--track); margin-top: 5px; overflow: hidden; }
.mini-bar i { display: block; height: 100%; background: var(--c); border-radius: 9px; transition: width .4s cubic-bezier(.2,.8,.2,1); }
.item-body { padding: 2px 16px 16px 69px; animation: slide .22s ease; }
.hint-line { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.item-row.reset { min-height: 60px; }
.item-row[disabled] { opacity: .55; }
.pop .check { animation: pop .42s cubic-bezier(.3,1.7,.5,1); }
.pop .ico { animation: pop .42s cubic-bezier(.3,1.7,.5,1); }
@keyframes pop { 0% { transform: scale(.7); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes slide { from { opacity: 0; transform: translateY(-4px); } }

.pills { display: flex; gap: 6px; }
.pill { min-width: 32px; height: 32px; border-radius: 99px; border: 1.5px solid var(--line); display: grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--muted); background: var(--paper); transition: all .15s; padding: 0 9px; }
.pill.on { background: var(--c, var(--accent)); border-color: var(--c, var(--accent)); color: #fff; }
.pill.wide { color: var(--c, var(--ink)); background: var(--cb, var(--bg)); border-color: transparent; }
.pill.wide svg { width: 17px; height: 17px; }
button.pill:active { transform: scale(.92); }

.check { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--faint); display: grid; place-items: center; transition: all .18s ease; background: var(--paper); }
.check svg { width: 15px; height: 15px; opacity: 0; transform: scale(.5); transition: all .2s cubic-bezier(.3,1.6,.5,1); }
.check.on { background: var(--good); border-color: var(--good); }
.check.on svg { opacity: 1; transform: none; }
.check.ex { background: #E3F1E8; border-color: var(--good); }
.check.ex svg { opacity: 1; transform: none; stroke: var(--good); }
.check.na { border-style: dashed; border-color: var(--gray); background: transparent; }
.check.ro { pointer-events: none; }
.check.sm { width: 22px; height: 22px; }
.check.sm svg { width: 11px; height: 11px; }
.check.square { border-radius: 8px; }

.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 650; background: var(--bg); color: var(--text); white-space: nowrap; }
.tag.green { background: var(--accent-soft); color: var(--accent-deep); }
.tag.yellow { background: var(--yellow-soft); color: #8A6414; }
.tag.red { background: var(--red-soft); color: #A93C35; }

.opt { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 14px; }
.opt + .opt { border-top: 1px solid var(--line); }
.opt .lbl { flex: 1; color: var(--ink); font-weight: 550; }
.opt .lbl small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.switch { position: relative; width: 44px; height: 26px; border-radius: 99px; background: var(--gray); transition: background .2s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.switch.on { background: var(--c, var(--good)); }
.switch.on::after { transform: translateX(18px); }
.switch[disabled] { opacity: .5; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 7px 12px; border-radius: 99px; background: var(--bg); font-size: 13px; font-weight: 600; color: var(--text); }
.chip.on { background: var(--c, var(--ink)); color: #fff; }

.field { width: 100%; border: 1px solid var(--line); background: var(--bg); border-radius: 12px; padding: 11px 12px; font-size: 16px; outline: none; transition: border-color .15s, background .15s; }
.field:focus { border-color: var(--c, var(--accent)); background: #fff; }
textarea.field { resize: vertical; min-height: 60px; margin-top: 8px; }
.field.num { width: 90px; text-align: center; flex: none; }

.workout { background: var(--bg); border-radius: 14px; padding: 12px; margin-top: 8px; }
.workout .chip { background: var(--paper); }
.workout .chip.on { background: var(--c); }
.workout .field { background: var(--paper); }
.workout-title { font-weight: 650; color: var(--ink); font-size: 14px; }

.water-btns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.btn-soft { background: var(--bg); border-radius: 12px; height: 42px; font-weight: 650; font-size: 14px; color: var(--ink); text-align: center; transition: transform .1s; }
.btn-soft:active { transform: scale(.96); }
.btn-soft[disabled] { opacity: .4; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--ink); color: #fff; padding: 14px 20px; border-radius: 14px; font-weight: 650; font-size: 15px; transition: transform .1s; }
.btn:active { transform: scale(.98); }
.btn.block { width: 100%; }
.btn.small { padding: 9px 16px; font-size: 14px; border-radius: 12px; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn[disabled] { opacity: .45; pointer-events: none; }

.seg { display: flex; background: var(--gray); padding: 3px; border-radius: 12px; gap: 2px; }
.seg button { flex: 1; padding: 8px 10px; border-radius: 9px; font-size: 13px; font-weight: 650; color: var(--muted); text-align: center; }
.seg button.on { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* ---------- stats ---------- */
.stat .num { font-family: var(--display); font-size: 28px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1.1; }
.stat .num small { font-size: 15px; font-weight: 600; color: var(--muted); }
.stat .lbl { font-size: 12px; color: var(--muted); margin-top: 3px; }
.bar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--good); border-radius: 99px; transition: width .5s cubic-bezier(.2,.8,.2,1); }
.bar.dark { background: rgba(255,255,255,.14); }
.bar.dark > i { background: #fff; }
.ring { display: block; }
.ring circle { transition: stroke-dashoffset .6s cubic-bezier(.2,.8,.2,1); }

.milestone-list { padding: 4px 16px; }
.milestone-list .ms-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.milestone-list .ms-row:first-child { border-top: 0; }
.ms-badge { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--bg); color: var(--muted); flex: none; }
.ms-badge.small { width: 30px; height: 30px; border-radius: 9px; font-size: 12px; }
.ms-badge.hit { background: var(--ink); color: #fff; }
.ms-badge.next { background: var(--accent-soft); color: var(--accent-deep); }
.rules { padding-left: 18px; margin: 0; font-size: 14px; }
.rules li { margin: 6px 0; }
.empty-note { text-align: center; color: var(--muted); padding: 30px 10px; font-size: 14px; }

/* ---------- calendar ---------- */
.cal-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); margin: 14px 2px 4px; }
.cal-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.cal-month { margin-top: 20px; }
.cal-month h3 { margin: 0 4px 8px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-dow { font-size: 10.5px; font-weight: 700; color: var(--faint); text-align: center; letter-spacing: .08em; padding-bottom: 2px; }
.cal-cell { aspect-ratio: 1; border-radius: 11px; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 13px; font-weight: 650; color: var(--ink); background: var(--gray); text-align: center; }
.cal-cell .dn { font-size: 9px; font-weight: 700; opacity: .6; }
.cal-cell.out { background: transparent; color: var(--faint); font-weight: 500; }
.cal-cell.green, .cal-cell .half.green { background: var(--good); color: #fff; }
.cal-cell.yellow, .cal-cell .half.yellow { background: var(--yellow); color: #fff; }
.cal-cell.red, .cal-cell .half.red { background: var(--red); color: #fff; }
.cal-cell.upcoming, .cal-cell .half.upcoming { background: var(--gray); color: var(--muted); }
.cal-cell.today { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
.cal-cell.pending, .cal-cell .half.pending { background: var(--paper); color: var(--ink); }
.cal-cell .halves { position: absolute; inset: 0; display: flex; }
.cal-cell .half { flex: 1; }
.cal-cell .lbl { position: relative; z-index: 1; line-height: 1.1; }
.cal-cell.split .lbl { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.cal-cell.ms::after { content: ""; position: absolute; top: 5px; right: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); z-index: 2; }
.cal-cell.green.ms::after, .cal-cell.yellow.ms::after, .cal-cell.red.ms::after, .cal-cell.split.ms::after { background: #fff; }

/* ---------- sheets ---------- */
.sheet-bg { position: fixed; inset: 0; background: rgba(17,18,20,.4); z-index: 50; animation: fade .2s ease; display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 520px; max-height: 88vh; overflow-y: auto; background: var(--bg); border-radius: 24px 24px 0 0; padding: 10px 18px calc(var(--safe-b) + 22px); animation: up .28s cubic-bezier(.2,.8,.2,1); }
.sheet .grab { width: 38px; height: 5px; border-radius: 9px; background: var(--faint); margin: 4px auto 14px; }
.mini-req { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; border-top: 1px solid var(--line); }
.mini-req:first-of-type { border-top: 0; }
.mini-req .ttl { flex: 1; color: var(--ink); }
.mini-req .det { color: var(--muted); font-size: 12px; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }

/* ---------- photos ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.photo-tile { aspect-ratio: 3/4; border-radius: 12px; overflow: hidden; position: relative; background: var(--gray); }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-tile .cap { position: absolute; left: 6px; bottom: 6px; font-size: 10.5px; font-weight: 700; color: #fff; background: rgba(17,18,20,.55); padding: 2px 7px; border-radius: 99px; backdrop-filter: blur(6px); }
.photo-tile.empty { display: grid; place-items: center; color: var(--faint); font-size: 12px; font-weight: 600; border: 1px dashed var(--faint); background: transparent; text-align: center; }
.upload-cta { display: flex; align-items: center; gap: 14px; }
.upload-thumb { width: 60px; height: 80px; border-radius: 12px; object-fit: cover; background: var(--bg); flex: none; }
.upload-thumb.empty { display: grid; place-items: center; color: var(--faint); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.compare figure { margin: 0; }
.compare img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 14px; display: block; background: var(--gray); }
.compare figcaption { font-size: 12px; font-weight: 650; color: var(--muted); margin-top: 6px; text-align: center; }
.lightbox { position: fixed; inset: 0; background: #0B0B0C; z-index: 60; display: flex; flex-direction: column; animation: fade .2s; }
.lightbox img { flex: 1; min-height: 0; width: 100%; object-fit: contain; }
.lightbox .lb-bar { display: flex; align-items: center; justify-content: space-between; padding: calc(var(--safe-t) + 12px) 16px 12px; color: #fff; }
.lightbox .lb-foot { display: flex; justify-content: space-between; padding: 12px 16px calc(var(--safe-b) + 16px); }
.lb-btn { color: #fff; background: rgba(255,255,255,.12); border-radius: 99px; padding: 9px 16px; font-weight: 600; font-size: 14px; }

/* ---------- nav ---------- */
.nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; background: rgba(250, 250, 248, .88); backdrop-filter: saturate(1.6) blur(20px); -webkit-backdrop-filter: saturate(1.6) blur(20px); border-top: 1px solid var(--line); padding: 8px 8px calc(var(--safe-b) + 6px); }
.nav-inner { max-width: 520px; margin: 0 auto; display: flex; }
.nav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 650; color: var(--faint); padding: 4px 0; text-align: center; }
.nav button svg { width: 23px; height: 23px; }
.nav button.on { color: var(--ink); }

/* ---------- login ---------- */
.login { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: stretch; text-align: center; padding: calc(var(--safe-t) + 30px) 26px calc(var(--safe-b) + 30px); max-width: 420px; margin: 0 auto; }
.login .app-badge { margin: 0 auto; }
.login-title { font-size: 34px; margin-top: 18px; }
.login .tl { font-size: 14px; color: var(--muted); margin: 8px 0 34px; line-height: 1.6; }
.login-label { font-size: 11px; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.who { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.who button { background: var(--paper); border-radius: 18px; padding: 18px 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); border: 2px solid transparent; transition: border-color .15s; }
.who button.on { border-color: var(--ink); }
.who .avatar { width: 48px; height: 48px; font-size: 17px; }
.err { color: var(--red); font-size: 13px; margin-top: 8px; min-height: 18px; }

/* ---------- toast ---------- */
#toast { position: fixed; left: 50%; bottom: calc(var(--safe-b) + 88px); transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 99px; font-size: 13.5px; font-weight: 600; opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 70; white-space: nowrap; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- celebration ---------- */
.celebrate { position: fixed; inset: 0; z-index: 80; background: var(--ink); color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 40px 28px calc(var(--safe-b) + 40px); overflow: hidden; animation: fade .4s ease; }
.celebrate .ms-day { font-size: 12px; font-weight: 700; letter-spacing: .24em; color: #9DA0A6; }
.celebrate .ms-title { font-family: var(--display); font-size: 40px; font-weight: 850; line-height: 1.05; margin: 14px 0 12px; color: #fff; }
.celebrate .ms-title.big { font-size: 46px; }
.celebrate .ms-title span { color: #6FD39B; }
.celebrate .ms-sub { color: #C9CBD0; max-width: 340px; font-size: 15.5px; line-height: 1.55; }
.celebrate .final-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 360px; margin: 26px 0 8px; }
.celebrate .final-stats div { background: rgba(255,255,255,.07); border-radius: 16px; padding: 14px; }
.celebrate .final-stats b { display: block; font-family: var(--display); font-size: 26px; color: #fff; }
.celebrate .final-stats span { font-size: 12px; color: #9DA0A6; }
.celebrate .btn { background: #fff; color: var(--ink); margin-top: 26px; min-width: 200px; }
.confetti { position: absolute; top: -20px; width: 8px; height: 14px; border-radius: 2px; opacity: .9; animation: drop linear forwards; }
@keyframes drop { to { transform: translateY(110vh) rotate(720deg); } }
.big75 { font-family: var(--display); font-weight: 900; font-size: 120px; letter-spacing: -.04em; line-height: .9; color: #fff; }

@media (min-width: 600px) { .shell { padding-top: 32px; } }
