/* Akhar — styled after akhar-gpt-ui-mockup.png. Light theme only. */
:root {
  --page: #F3ECE6;
  --paper: #FAF5EF;
  --card: #FCF8F3;
  --ink: #15271F;
  --muted: #5A514D;
  --soft: #8A817B;
  --line: #E2DAD0;
  --line-2: #C9C1B6;
  --edge: #677069;
  --green: #234834;
  --green-2: #2F5B3E;
  --green-ink: #FAF5EF;
  --sage: #D7DCC7;
  --sage-2: #CDD3BE;
  --sage-3: #E7E7DA;
  --sage-soft: #ECEADF;
  --flame: #C85C1C;
  --bad: #A43A2C;
  --bad-soft: #F6E3DC;
  --warn: #7A5A12;
  --warn-soft: #F4EBD3;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: "Source Sans 3", -apple-system, "Segoe UI", system-ui, sans-serif;
  --gur: "Noto Sans Gurmukhi", "Mukta Mahee", sans-serif;
  --gur-serif: "Noto Serif Gurmukhi", "Noto Sans Gurmukhi", serif;
  --r: 14px;
  --r-sm: 10px;
  --tabs-h: 68px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--page); }
body {
  color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--green-2); outline-offset: 2px; }
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.g, [lang="pa"] { font-family: var(--gur); }

/* App column */
#app {
  max-width: 480px; min-height: 100dvh; margin: 0 auto; background: var(--paper);
  padding-top: env(safe-area-inset-top, 0px);
  position: relative;
}
@media (min-width: 560px) { #app { border-left: 1px solid var(--line); border-right: 1px solid var(--line); } }
.screen { padding: 12px 20px calc(var(--tabs-h) + 28px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 22px; }
.screen.no-tabs { padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }

/* Top bars */
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 52px; }
.brand { font-family: var(--gur-serif); font-weight: 800; font-size: 28px; line-height: 1; letter-spacing: -0.01em; color: var(--ink); }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--sage-2); display: grid; place-items: center; font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--ink); }
.iconbtn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); }
.iconbtn:active { background: var(--sage-soft); }
.navbar { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; min-height: 52px; margin-inline: -6px; }
.navbar h1 { font-family: var(--serif); font-size: 21px; font-weight: 600; text-align: center; margin: 0; }
.navbar .right { justify-self: end; font-size: 16px; color: var(--muted); white-space: nowrap; }

/* Type */
.title { font-family: var(--serif); font-weight: 700; font-size: 36px; line-height: 1.08; letter-spacing: -0.015em; margin: 0; }
.greet { font-family: var(--serif); font-size: 18px; color: var(--muted); margin: 4px 0 0; }
.label { font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); margin: 0; }
.h2 { font-family: var(--serif); font-weight: 600; font-size: 23px; margin: 0; letter-spacing: -0.01em; }
.sub { color: var(--muted); font-size: 15.5px; margin: 0; }
.small { font-size: 14px; color: var(--muted); }
.serif { font-family: var(--serif); }
.italic { font-style: italic; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.stack-sm { display: flex; flex-direction: column; gap: 6px; }
hr.rule { border: 0; border-top: 1px solid var(--line); margin: 0; width: 100%; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 20px; border-radius: 12px; font-size: 17px; font-weight: 500;
  border: 1.5px solid var(--edge); background: transparent; color: var(--ink);
}
.btn.primary { background: var(--green); border-color: var(--green); color: var(--green-ink); }
.btn.primary:active { background: var(--green-2); }
.btn.block { width: 100%; }
.btn.big { min-height: 58px; font-size: 18px; }
.btn.pill { border-radius: 999px; }
.btn.light { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn.quiet { border-color: transparent; color: var(--muted); min-height: 44px; padding: 0 12px; font-size: 16px; }
.btn.danger { color: var(--bad); border-color: transparent; }
.btn[disabled] { opacity: 0.5; cursor: default; }
.btn .ic { width: 22px; height: 22px; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.link { color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Play button */
.play { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink); display: inline-grid; place-items: center; color: var(--ink); flex: none; background: transparent; }
.play .ic { width: 22px; height: 22px; }
.play.sm { width: 36px; height: 36px; } .play.sm .ic { width: 18px; height: 18px; }
.play.loading { opacity: 0.5; }
.play.playing { background: var(--sage); }

/* Look-up box */
.lookup { position: relative; }
.lookup input {
  width: 100%; height: 60px; border-radius: 14px; border: 1.5px solid var(--edge); background: var(--card);
  padding: 0 64px 0 18px; font-family: var(--serif); font-size: 19px; color: var(--ink);
}
.lookup input::placeholder { color: #7D7570; }
.lookup input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(35,72,52,.12); }
.lookup .go { position: absolute; right: 9px; top: 9px; width: 42px; height: 42px; border-radius: 50%; background: var(--green); color: var(--green-ink); display: grid; place-items: center; }
.lookup .go .ic { stroke-width: 2.2; }
.hint { font-size: 14.5px; color: var(--muted); margin: 8px 2px 0; }
.dir { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; gap: 2px; background: var(--card); }
.dir button { font-size: 14px; padding: 6px 12px; border-radius: 999px; color: var(--muted); }
.dir button[aria-pressed="true"] { background: var(--green); color: var(--green-ink); font-weight: 600; }

/* Daily card */
.daily { position: relative; background: var(--green); color: var(--green-ink); border-radius: 16px; padding: 22px 22px 22px; overflow: hidden; }
.daily .label { color: #E8E3D6; font-size: 12px; }
.daily .dt { font-family: var(--serif); font-weight: 600; font-size: 29px; line-height: 1.15; margin: 8px 0 4px; letter-spacing: -0.01em; }
.daily .dc { font-size: 17px; color: #E8E3D6; margin: 0 0 18px; }
.daily .btn { min-height: 48px; padding: 0 22px; font-size: 17px; }
.daily .pad-art { position: absolute; right: 16px; bottom: 12px; width: 76px; height: 86px; color: #EFE9DC; transform: rotate(-8deg); }
.daily.done .dt { font-size: 25px; }

/* Saved words */
.words { display: flex; flex-direction: column; }
.word-row { display: grid; grid-template-columns: minmax(84px, auto) 1fr auto; gap: 4px 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; width: 100%; }
.word-row:last-child { border-bottom: 0; }
.word-row .wg { font-family: var(--gur); font-weight: 800; font-size: 30px; line-height: 1.2; overflow-wrap: anywhere; }
.word-row .wt { font-family: var(--serif); font-weight: 700; font-size: 18px; line-height: 1.2; }
.word-row .wm { font-size: 16px; color: var(--muted); line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.word-row .wr { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.tag { display: inline-block; font-size: 12.5px; padding: 3px 9px; border-radius: 6px; background: var(--sage-3); color: var(--ink); white-space: nowrap; }
.who { width: 24px; height: 24px; border-radius: 50%; background: var(--sage-2); display: inline-grid; place-items: center; font-family: var(--serif); font-size: 13px; font-weight: 600; }
.search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 12px; padding: 0 12px; background: var(--card); }
.search input { border: 0; background: transparent; height: 46px; flex: 1; font-size: 17px; min-width: 0; }
.search input:focus { outline: none; }
.empty { color: var(--muted); text-align: center; padding: 24px 8px; font-family: var(--serif); font-style: italic; font-size: 17px; }

/* Together banner */
.banner { display: flex; align-items: center; gap: 14px; background: var(--sage-soft); border-radius: 16px; padding: 14px 18px; text-align: left; width: 100%; }
.pair { display: flex; }
.pair .avatar { width: 42px; height: 42px; font-size: 21px; border: 2px solid var(--sage-soft); }
.pair .avatar + .avatar { margin-left: -8px; }
.banner .bt { flex: 1; font-family: var(--serif); font-size: 20px; }
.flame { color: var(--flame); }
.flame .ic, .ic.flame { stroke: var(--flame); }

/* Bottom tabs */
nav.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--paper); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
nav.tabs .in { max-width: 480px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); height: var(--tabs-h); }
nav.tabs a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); text-decoration: none; font-size: 14px; }
nav.tabs a .ic { width: 26px; height: 26px; stroke-width: 1.4; }
nav.tabs a[aria-current="page"] { color: var(--ink); font-weight: 600; }
nav.tabs a[aria-current="page"]::after { content: ""; position: absolute; bottom: 6px; left: 50%; width: 76px; height: 3px; margin-left: -38px; border-radius: 3px; background: var(--green); }

/* Toast */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 90;
  bottom: calc(var(--tabs-h) + 18px + env(safe-area-inset-bottom, 0px));
  background: var(--ink); color: var(--paper); padding: 12px 20px; border-radius: 999px; font-size: 15.5px;
  max-width: calc(100% - 32px); text-align: center;
}

/* Log in */
.login { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 48px 24px calc(32px + env(safe-area-inset-bottom, 0px)); text-align: center; }
.login .brand { font-size: 44px; }
.login .title { font-size: 32px; }
.people { display: flex; gap: 28px; justify-content: center; }
.person { display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--serif); font-size: 20px; }
.person .avatar { width: 108px; height: 108px; font-size: 50px; }
.person:active .avatar { background: var(--sage); }
.person small { font-family: var(--sans); font-size: 13.5px; color: var(--muted); }
.pin-dots { display: flex; gap: 18px; justify-content: center; margin: 4px 0; }
.pin-dots i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--green); }
.pin-dots i.on { background: var(--green); }
.pin-dots.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.keypad { display: grid; grid-template-columns: repeat(3, 76px); gap: 16px 26px; justify-content: center; }
.keypad button { width: 76px; height: 76px; border-radius: 50%; background: var(--green); color: var(--green-ink); font-family: var(--serif); font-size: 30px; font-weight: 500; }
.keypad button:active { background: var(--green-2); }
.keypad button.ghost { background: transparent; color: var(--ink); font-family: var(--sans); font-size: 16px; }
.keypad button.ghost .ic { width: 28px; height: 28px; }
.err { color: var(--bad); font-size: 16px; min-height: 22px; margin: 0; }

/* Word screen */
.heard { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--edge); border-radius: 10px; padding: 0 8px 0 14px; background: var(--card); }
.heard input { flex: 1; min-width: 0; border: 0; background: transparent; height: 50px; font-family: var(--serif); font-size: 20px; }
.heard input:focus { outline: none; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { min-height: 42px; padding: 0 16px; border-radius: 10px; border: 1.5px solid var(--line-2); font-size: 16px; color: var(--ink); background: transparent; }
.chip[aria-pressed="true"] { background: var(--sage-2); border-color: var(--sage-2); font-weight: 500; }
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.hero .big { font-family: var(--gur); font-weight: 900; font-size: clamp(64px, 22vw, 96px); line-height: 1.12; overflow-wrap: anywhere; letter-spacing: -0.01em; }
.hero .big.long { font-size: clamp(40px, 12vw, 58px); }
.hero .rom { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 23px; }
.hero .mean { font-family: var(--serif); font-weight: 600; font-size: 36px; line-height: 1.12; margin-top: 8px; letter-spacing: -0.01em; }
.hero .def { font-size: 17px; color: var(--muted); }
.hero.nav-first .rom { font-size: 34px; font-weight: 700; }
.hero.nav-first .big { font-size: clamp(44px, 14vw, 64px); }
.badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.badge { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--sage-3); color: var(--ink); }
.badge.high { background: #DCE8D6; color: #245030; }
.badge.medium { background: var(--warn-soft); color: var(--warn); }
.badge.low { background: var(--bad-soft); color: var(--bad); }
.callout { font-size: 15px; border-radius: 10px; padding: 12px 14px; background: var(--sage-soft); color: var(--ink); margin: 0; }
.callout.warn { background: var(--warn-soft); color: var(--warn); }
.tiles { display: flex; flex-wrap: wrap; gap: 14px 12px; justify-content: center; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 64px; }
.tile .tg { min-width: 64px; height: 64px; padding: 0 10px; border-radius: 12px; background: var(--sage); display: grid; place-items: center; font-family: var(--gur); font-weight: 800; font-size: 32px; line-height: 1; }
.tile .tr { font-family: var(--serif); font-size: 17px; }
.tile .tp { font-size: 12.5px; color: var(--muted); text-align: center; line-height: 1.3; max-width: 112px; }
.tile .tp .g { font-size: 13px; }
.tile.space { min-width: 8px; }
.word-break { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.word-break + .word-break { margin-top: 10px; }
.word-break .wb-gloss { font-size: 14px; color: var(--muted); }
.lined {
  border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 14px 12px; background-color: var(--card);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 31px, var(--line) 31px, var(--line) 32px);
  background-position: 0 6px;
}
.lined .ll { font-size: 15px; color: var(--ink); }
.lined input, .lined textarea { width: 100%; border: 0; background: transparent; font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 32px; padding: 0; resize: none; }
.lined input:focus, .lined textarea:focus { outline: none; }
.toggle-row { display: flex; align-items: center; gap: 12px; font-size: 17px; }
.toggle-row .ic { stroke-width: 1.4; }
.toggle-row span { flex: 1; }
.switch { width: 54px; height: 32px; border-radius: 999px; background: var(--line-2); position: relative; flex: none; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch[aria-checked="true"] { background: var(--green-2); }
.switch[aria-checked="true"]::after { transform: translateX(22px); }
.alts { display: flex; flex-direction: column; gap: 0; }
.alt { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.alt:last-child { border-bottom: 0; }
.alt .ag { font-family: var(--gur); font-weight: 800; font-size: 26px; grid-row: span 2; }
.alt .at { font-family: var(--serif); font-weight: 700; font-size: 17px; }
.alt .au { font-size: 15px; color: var(--muted); grid-column: 2; }
.alt .play { grid-row: 1 / span 2; grid-column: 3; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.field { width: 100%; border: 1.5px solid var(--line-2); border-radius: 10px; background: var(--card); padding: 12px 14px; font-size: 18px; color: var(--ink); font-weight: 400; }
.field:focus { outline: none; border-color: var(--green); }
textarea.field { min-height: 84px; resize: vertical; line-height: 1.4; }
.field.g { font-size: 22px; }
.thinking { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 40px 0; color: var(--muted); font-family: var(--serif); font-size: 18px; font-style: italic; text-align: center; }
.dots3 span { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin: 0 3px; animation: blink 1.2s infinite; }
.dots3 span:nth-child(2) { animation-delay: .2s; } .dots3 span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 100% { opacity: .2 } 50% { opacity: 1 } }
.check-status { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; background: var(--sage-soft); border-radius: 10px; padding: 12px 14px; }
.check-status .ic { width: 20px; height: 20px; margin-top: 1px; color: var(--green); }

/* Practice */
.segbar { display: flex; gap: 6px; }
.segbar i { flex: 1; height: 7px; border-radius: 7px; background: #DDD7CD; }
.segbar i.on { background: var(--green); }
.prompt-t { font-family: var(--serif); font-weight: 700; font-size: 34px; line-height: 1.1; margin: 0; letter-spacing: -0.015em; }
.flash {
  position: relative; border: 1.5px solid var(--line-2); border-radius: 18px; min-height: 340px; padding: 22px 18px 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; width: 100%;
  background-color: var(--card);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 35px, #EEE7DD 35px, #EEE7DD 36px);
}
.flash .fl { position: absolute; top: 18px; left: 0; right: 0; }
.flash .fg { font-family: var(--gur); font-weight: 900; font-size: clamp(64px, 22vw, 92px); line-height: 1.15; overflow-wrap: anywhere; }
.flash .fg.long { font-size: clamp(36px, 11vw, 52px); }
.flash .fr { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 24px; }
.flash .fr.big { font-size: 36px; font-weight: 700; }
.flash .fm { font-family: var(--serif); font-weight: 600; font-size: 40px; line-height: 1.1; }
.flash .fs { font-size: 15.5px; color: var(--muted); }
.flash .rule { width: 72%; border-top: 1.5px solid var(--edge); margin: 10px 0; }
.flash .tap { font-size: 15px; color: var(--muted); font-style: italic; font-family: var(--serif); margin-top: 8px; }
.upnext { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 6px 0; }
.upnext .tg { width: 58px; height: 58px; border-radius: 12px; background: var(--sage); display: grid; place-items: center; font-family: var(--gur); font-weight: 800; font-size: 30px; flex: none; }
.upnext .ut { font-family: var(--serif); font-weight: 600; font-size: 19px; }
.upnext .us { font-size: 15px; color: var(--muted); }
.upnext > div { flex: 1; }
.footer-line { font-family: var(--serif); font-style: italic; text-align: center; color: var(--muted); font-size: 17px; border-top: 1px solid var(--line); padding-top: 16px; margin: 0; }
.done-hero { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 40px 0 10px; }
.done-hero .ic { width: 64px; height: 64px; color: var(--green); stroke-width: 1.4; }

/* Letter chart + lessons (restyled from the original) */
.chart { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.cell { aspect-ratio: 1; border-radius: 12px; background: var(--card); border: 1.5px solid var(--line-2); display: grid; place-items: center; font-family: var(--gur); font-weight: 800; font-size: clamp(24px, 7.5vw, 32px); line-height: 1; }
.cell[data-s="1"], .cell[data-s="2"] { background: var(--sage-3); border-color: var(--sage-2); }
.cell[data-s="3"] { background: var(--sage); border-color: var(--sage); }
.legend { display: flex; gap: 16px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 1.5px solid var(--line-2); margin-right: 6px; vertical-align: -1px; }
.legend i.l { background: var(--sage-3); border-color: var(--sage-2); } .legend i.m { background: var(--sage); border-color: var(--sage); }
.lessons { display: flex; flex-direction: column; }
.lesson { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.lesson:last-child { border-bottom: 0; }
.lesson .lg { font-family: var(--gur); font-weight: 700; font-size: 25px; letter-spacing: 0.08em; overflow-wrap: anywhere; }
.lesson .lm { font-size: 14.5px; color: var(--muted); }
.lesson .btn { grid-row: 1 / span 2; grid-column: 2; min-height: 42px; padding: 0 16px; font-size: 15.5px; }
.lesson.next .lm { color: var(--green); font-weight: 600; }
.progress { height: 7px; border-radius: 7px; background: #DDD7CD; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--green); border-radius: 7px; }

/* Sheets (lessons, quizzes, settings) */
.sheet { position: fixed; inset: 0; z-index: 60; background: var(--paper); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sheet .in { max-width: 480px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; gap: 20px; padding: calc(10px + env(safe-area-inset-top, 0px)) 20px calc(28px + env(safe-area-inset-bottom, 0px)); }
.sheet-top { display: flex; align-items: center; gap: 12px; min-height: 52px; }
.sheet-top .segbar { flex: 1; }
.glyph { font-family: var(--gur); font-weight: 800; font-size: clamp(120px, 40vw, 170px); line-height: 1.1; text-align: center; padding-top: 4px; }
.glyph.sm { font-size: clamp(72px, 24vw, 104px); }
.lname { display: flex; align-items: center; justify-content: center; gap: 14px; }
.lname .gn { font-family: var(--gur); font-weight: 700; font-size: 28px; }
.lname .rn { font-family: var(--serif); font-size: 22px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 12px 18px; font-size: 17px; margin: 0; border-top: 1px solid var(--line); padding-top: 16px; }
.facts dt { font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding-top: 3px; }
.facts dd { margin: 0; min-width: 0; }
.spacer { flex: 1; }
.pad { display: flex; flex-direction: column; gap: 12px; }
.pad-box { position: relative; width: 100%; max-width: 340px; aspect-ratio: 1; margin: 0 auto; border: 1.5px solid var(--line-2); border-radius: 16px; overflow: hidden; touch-action: none; background: var(--card); }
.pad-box canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.pad-box .phint { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-size: 13.5px; color: var(--muted); pointer-events: none; font-family: var(--serif); font-style: italic; }
.seg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; border: 1px solid var(--line-2); max-width: 340px; width: 100%; margin: 0 auto; }
.seg2 button { min-height: 40px; border-radius: 9px; font-size: 16px; color: var(--muted); }
.seg2 button[aria-pressed="true"] { background: var(--green); color: var(--green-ink); font-weight: 600; }
.q-prompt { text-align: center; font-family: var(--serif); font-size: 22px; font-weight: 600; margin: 0; }
.q-big { text-align: center; font-family: var(--gur); font-weight: 800; font-size: clamp(88px, 30vw, 128px); line-height: 1.15; }
.q-text { text-align: center; font-family: var(--serif); font-size: 34px; font-weight: 700; padding-block: 18px; }
.q-text small { display: block; font-family: var(--sans); font-size: 16px; font-weight: 400; color: var(--muted); }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opt { border: 1.5px solid var(--line-2); background: var(--card); border-radius: 14px; padding: 14px 10px; font-size: 18px; min-height: 72px; line-height: 1.2; font-family: var(--serif); }
.opt .g { font-size: 38px; font-weight: 800; line-height: 1.15; }
.opt small { display: block; font-family: var(--sans); font-size: 13.5px; color: var(--muted); }
.opt.right { border-color: var(--green); background: #DCE8D6; }
.opt.wrong { border-color: var(--bad); background: var(--bad-soft); color: var(--bad); }
.result { text-align: center; display: flex; flex-direction: column; gap: 8px; padding-top: 40px; }
.result .score { font-family: var(--serif); font-size: 64px; font-weight: 700; line-height: 1; }

/* Together */
.duo { display: flex; justify-content: center; gap: 30px; }
.duo .p { display: flex; flex-direction: column; align-items: center; gap: 6px; font-family: var(--serif); font-size: 18px; }
.duo .avatar { width: 84px; height: 84px; font-size: 42px; }
.streak-big { display: flex; flex-direction: column; align-items: center; }
.streak-big .n { display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-weight: 700; font-size: 60px; line-height: 1; }
.streak-big .n .ic { width: 46px; height: 46px; stroke-width: 1.5; }
.streak-big .s { font-family: var(--serif); font-size: 20px; }
.status { display: flex; flex-direction: column; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.status .r { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 12px; min-height: 52px; font-size: 17px; }
.status .r b { font-weight: 600; }
.status .st { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.circ { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--edge); display: grid; place-items: center; flex: none; }
.circ.on { background: var(--green-2); border-color: var(--green-2); color: #fff; }
.circ .ic { width: 16px; height: 16px; stroke-width: 2.4; }
.nudge { min-height: 38px; padding: 0 14px; font-size: 15px; border-radius: 999px; border: 1.5px solid var(--green); color: var(--green); font-weight: 600; }
.nudge[disabled] { border-color: var(--line-2); color: var(--soft); }
.count { min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--sage-2); display: inline-grid; place-items: center; font-size: 15px; font-weight: 600; }
.check-card { border: 1.5px solid var(--line-2); border-radius: 14px; padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; background: var(--card); }
.check-card .meta { font-size: 14.5px; color: var(--muted); }
.check-card .cr { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 28px; font-weight: 700; }
.check-card .cg { font-family: var(--gur); font-weight: 800; font-size: 34px; line-height: 1.2; }
.check-card .cm { font-size: 17px; color: var(--muted); }
.check-card .btn { min-height: 46px; font-size: 16.5px; }
.feed { display: flex; flex-direction: column; gap: 14px; }
.feed .fi { display: flex; gap: 12px; align-items: center; }
.feed .fi .avatar { width: 40px; height: 40px; font-size: 19px; }
.feed .fi b { font-weight: 600; }
.feed .fi .fs { font-size: 14.5px; color: var(--muted); }
.stats { display: grid; grid-template-columns: 1.4fr 1fr 1fr; border-top: 1px solid var(--line); }
.stats > div { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.stats .hd { font-weight: 600; font-family: var(--serif); font-size: 18px; }
.stats .num { font-family: var(--serif); font-size: 20px; font-weight: 600; text-align: right; }
.stats .num small { font-size: 14px; color: var(--muted); font-weight: 400; }

/* Settings */
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; border-bottom: 1px solid var(--line); font-size: 17px; }
.set-row input[type="time"] { border: 1.5px solid var(--line-2); border-radius: 10px; padding: 8px 10px; background: var(--card); font-size: 17px; }

/* iPhone install guide */
.guide { border: 1.5px solid var(--green); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--card); }
.guide ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; font-size: 16.5px; }
.guide .ic { width: 20px; height: 20px; vertical-align: -4px; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
