/* Layout: proposal column on the left, sticky phone prototype on the right; stacks on phones. */
:root {
  --bg: #F2F3F6; --surface: #FFFFFF; --ink: #161A26; --muted: #5B6275; --line: #DADDE5;
  --accent: #0E9F8E; --accent-ink: #FFFFFF; --warm: #E8833A; --soft: #E3F4F1; --lock: #8A90A2;
  --danger: #C2410C; --phone: #0F1220; --screen: #F7F8FA; --chip: #EEF0F4;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0E1119; --surface: #171B27; --ink: #ECEEF4; --muted: #A0A7B8; --line: #2A3040;
  --accent: #2CC5B1; --accent-ink: #06201C; --warm: #F09A55; --soft: #12302C; --lock: #6F7689;
  --danger: #F08A5D; --phone: #05070D; --screen: #121622; --chip: #1F2433; color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #0E1119; --surface: #171B27; --ink: #ECEEF4; --muted: #A0A7B8; --line: #2A3040;
  --accent: #2CC5B1; --accent-ink: #06201C; --warm: #F09A55; --soft: #12302C; --lock: #6F7689;
  --danger: #F08A5D; --phone: #05070D; --screen: #121622; --chip: #1F2433; color-scheme: dark }
* { box-sizing: border-box }
body { background: var(--bg); color: var(--ink); font: 16px/1.55 var(--body); margin: 0 }
h1,h2,h3 { font-family: var(--display); margin: 0 }
p { margin: 0 }
/* Phone prototype */
.proto { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 20px); display: grid; gap: 12px; justify-items: center }
.controls { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px }
.seg button { border: 0; background: none; font: 600 .82rem var(--body); color: var(--muted); padding: 7px 12px; border-radius: 999px; cursor: pointer }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg) }
.phone { width: 100%; max-width: 380px; background: var(--phone); border-radius: 40px; padding: 10px; box-shadow: 0 30px 60px -30px rgba(10,14,30,.45) }
.screen { background: var(--screen); border-radius: 31px; height: 720px; overflow: hidden; display: grid; grid-template-rows: auto minmax(0,1fr) auto; position: relative }
.top { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 8px }
.brand { font: 800 1rem var(--display); display: flex; gap: 8px; align-items: center }
.dot9 { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--ink) }
.from { font: 500 .72rem var(--mono); color: var(--muted) }
.view { overflow-y: auto; padding: 4px 16px 18px; display: grid; gap: 12px; align-content: start }
.nav { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); background: var(--surface); padding: 6px 4px 10px }
.nav button { border: 0; background: none; display: grid; justify-items: center; gap: 2px; font: 600 .68rem var(--body); color: var(--muted); padding: 6px 0; cursor: pointer }
.nav button svg { width: 22px; height: 22px }
.nav button[aria-current="page"] { color: var(--accent) }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: grid; gap: 8px }
.hi { font: 800 1.45rem/1.1 var(--display) }
.small { font-size: .82rem; color: var(--muted) }
.insight { background: var(--ink); color: var(--bg); border: 0 }
.insight .small { color: inherit; opacity: .7 }
.btn { border: 0; border-radius: 12px; padding: 11px 14px; font: 700 .9rem var(--body); cursor: pointer; background: var(--accent); color: var(--accent-ink) }
.btn.ghost { background: var(--chip); color: var(--ink) }
.row { display: flex; gap: 8px; align-items: center; justify-content: space-between }
.chips { display: flex; gap: 6px; flex-wrap: wrap }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 11px; font: 600 .8rem var(--body); cursor: pointer; color: var(--ink) }
.task { display: flex; gap: 10px; align-items: center }
.task input { width: 20px; height: 20px; accent-color: var(--accent) }
.bar { height: 8px; background: var(--chip); border-radius: 99px; overflow: hidden }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px }
.num { font: 500 1.6rem var(--mono); font-variant-numeric: tabular-nums }
.locked .sens { filter: blur(7px); user-select: none }
.lockline { display: none; font: 600 .78rem var(--body); color: var(--warm) }
.locked .lockline { display: block }
.apps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px }
.app { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 8px; display: grid; justify-items: center; gap: 6px; font: 600 .76rem var(--body); text-align: center; cursor: pointer; color: var(--ink) }
.app .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font: 800 .9rem var(--display); color: #fff }
.bubble { padding: 10px 12px; border-radius: 14px; font-size: .88rem; max-width: 88% }
.me { background: var(--accent); color: var(--accent-ink); justify-self: end; border-bottom-right-radius: 4px }
.bot { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px }
.chatin { display: flex; gap: 6px }
.chatin input { flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 12px; padding: 10px; font: inherit; font-size: .88rem }
.list { display: grid }
.list button { display: flex; justify-content: space-between; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 13px 2px; font: 600 .9rem var(--body); color: var(--ink); cursor: pointer; text-align: left }
.list button:last-child { border-bottom: 0 }
.sheet { position: absolute; inset: 0; background: rgba(8,10,20,.55); display: grid; align-items: end; z-index: 5 }
.sheet[hidden] { display: none }
.sheet .panel { background: var(--surface); border-radius: 24px 24px 0 0; padding: 20px 18px 22px; display: grid; gap: 12px }
.price { font: 800 2rem var(--display) }
.note { font: 500 .72rem var(--mono); color: var(--muted); text-align: center }
svg text { font-family: var(--body) }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px }
@media (prefers-reduced-motion: no-preference) { .view > * { animation: rise .35s ease both } @keyframes rise { from { transform: translateY(6px); opacity: .6 } to { transform: none; opacity: 1 } } }

html, body { height: 100% }
body { background: var(--screen) }
.app-shell { min-height: 100%; display: grid; grid-template-columns: minmax(0,1fr) }
.screen { height: 100dvh; border-radius: 0; max-width: 560px; width: 100%; margin: 0 auto; background: var(--screen);
  padding-top: env(safe-area-inset-top, 0px) }
.top { padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)) }
.view { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)) }
.nav { padding-bottom: max(10px, env(safe-area-inset-bottom, 0px)) }
@media (min-width: 900px) {
  .screen { max-width: 1040px; grid-template-columns: 220px minmax(0,1fr); grid-template-rows: auto minmax(0,1fr); border-left: 1px solid var(--line); border-right: 1px solid var(--line) }
  .top { grid-column: 1 / -1; border-bottom: 1px solid var(--line); background: var(--surface) }
  .nav { grid-row: 2; grid-column: 1; grid-template-columns: minmax(0,1fr); align-content: start; gap: 2px; border-top: 0; border-right: 1px solid var(--line); padding: 12px 10px }
  .nav button { grid-template-columns: 24px minmax(0,1fr); justify-items: start; align-items: center; gap: 10px; font-size: .92rem; padding: 10px 12px; border-radius: 10px }
  .nav button[aria-current="page"] { background: var(--soft) }
  .view { grid-row: 2; grid-column: 2; padding: 24px 32px; grid-template-columns: repeat(2, minmax(0,1fr)); align-content: start }
  .view > * { grid-column: span 1 }
  .view > :first-child, .view > .chatin, .view > .chips, .view > .bubble, .view > .bar, .view > .apps, .view > span, .view > button { grid-column: 1 / -1 }
  .apps { grid-template-columns: repeat(5, minmax(0,1fr)) }
}
.topright { display: flex; gap: 8px; align-items: center }
.mini { display: flex; gap: 2px; background: var(--ink); border-radius: 999px; padding: 3px; box-shadow: 0 8px 20px -8px rgba(0,0,0,.4); opacity: .92 }
.mini button { border: 0; background: none; color: var(--bg); font: 700 .7rem var(--body); padding: 6px 9px; border-radius: 999px; cursor: pointer }
.mini button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink) }


/* Screens added for the complete prototype */
.field { width: 100%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 12px; padding: 10px 12px; font: inherit; font-size: .92rem }
.line { padding: 9px 0; border-bottom: 1px solid var(--line) }
.card > .line:last-child, .card > .row.line:last-of-type { border-bottom: 0 }
.mono { font: 500 .92rem var(--mono); font-variant-numeric: tabular-nums }
.stack { display: grid; gap: 6px }
.back { justify-self: start }
.btn.left { text-align: left }
.btn.danger { background: var(--chip); color: var(--danger) }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink) }
.sheet-title { font: 800 1.25rem/1.2 var(--display) }
.report h3 { font-size: 1rem; margin-top: 6px }
.report p { color: var(--muted); font-size: .92rem }
.player { aspect-ratio: 16 / 9; max-width: 100%; border-radius: 12px; background: var(--ink); display: grid; place-items: center; color: var(--bg); font-size: 2rem }
.ic.big { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font: 800 1.1rem var(--display); color: #fff }
.linkbtn { border: 0; background: none; cursor: pointer; padding: 0 0 0 4px; font-size: .85rem }
details summary { cursor: pointer; list-style: none }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(max(10px, env(safe-area-inset-bottom, 0px)) + 120px); z-index: 30;
  background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 12px; font: 600 .85rem var(--body); max-width: min(90vw, 420px); text-align: center }
.foot { grid-column: 1 / -1; display: grid; gap: 4px; justify-items: center; text-align: center; font: 500 .68rem var(--mono); color: var(--muted); padding: 14px 0 4px }
@media (min-width: 900px) { .view > .card.report, .view > .back { grid-column: 1 / -1 } .toast { bottom: 70px } }
@media print {
  .top, .nav, .mini, .toast, .foot, .chips, .back, .sheet { display: none !important }
  .screen { height: auto; display: block } .view { overflow: visible; display: block } body { background: #fff }
}

.logout-top { width: auto; padding: 0 9px; gap: 6px; display: inline-flex; align-items: center; font: 600 .78rem var(--body) }

.testpanel { border: 2px dashed var(--warm) }
@media (min-width: 900px) { .view > .testpanel { grid-column: 1 / -1 } }

/* Header brand: logo of the site the person came from */
.brand { display: flex; align-items: center; gap: 8px; min-width: 0; font: 800 1rem var(--display) }
.brand img { height: 34px; width: auto; max-width: 150px; object-fit: contain }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.dot9[aria-expanded="true"] { background: var(--ink); color: var(--bg) }

/* iPhone: the page itself never scrolls; only the content area does, so header and tab bar stay put */
html, body { height: 100%; overflow: hidden; overscroll-behavior: none }
.app-shell { position: fixed; inset: 0 }
.screen { height: 100%; padding-top: env(safe-area-inset-top, 0px) }
.view { -webkit-overflow-scrolling: touch; overscroll-behavior: contain }
@media print { html, body { height: auto; overflow: visible } .app-shell { position: static } }
@media (max-width: 480px) { .brand span { display: none } .brand img { height: 32px } }

/* CertifiedIQ matrix test */
.iqgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; max-width: 320px; margin: 0 auto; width: 100% }
.iqcell { border: 1px solid var(--line); border-radius: 8px; background: #fff; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden }
.iqcell svg { display: block; width: 100%; height: 100% }
.iqq { font: 800 1.6rem var(--display); color: var(--accent); background: var(--soft) }
.iqopts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px }
.iqopt { border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 6px; display: grid; gap: 2px; justify-items: center; cursor: pointer; color: #333; font: 700 .75rem var(--body) }
.iqopt:hover, .iqopt:focus-visible { border-color: var(--accent) }
.iqopt svg { width: 100%; max-width: 72px; aspect-ratio: 1 }
@media (min-width: 900px) { .view > .iqopts, .view > .card:has(.iqgrid) { grid-column: 1 / -1 } .iqopts { grid-template-columns: repeat(6, minmax(0, 1fr)) } }
@media (max-width: 899px) { .iqgrid { max-width: min(250px, 66vw); gap: 4px } .iqopt svg { max-width: 56px } .view > .card:has(.iqgrid) { padding: 10px } }
.iqopts { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px }
.iqopt { padding: 4px 2px; border-radius: 10px; font-size: .7rem }
.iqopt svg { max-width: none }

.ptq { font: 700 1.1rem/1.35 var(--display) }
.btn.picked { background: var(--accent); color: var(--accent-ink) }

/* Light/dark toggle: shows the moon in light mode and the sun in dark mode */
#themeTop .i-sun { display: none }
#themeTop[aria-pressed="true"] .i-sun { display: block }
#themeTop[aria-pressed="true"] .i-moon { display: none }
/* Portrait map: tap or hover a point to read its value */
.rp { cursor: pointer; outline: none }
.rp .tip { opacity: 0; transition: opacity .15s; pointer-events: none }
.rp:hover .tip, .rp:focus .tip, .rp:focus-within .tip { opacity: 1 }
/* Result card actions: report first, clone second */
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px }
@media (max-width: 360px) { .actions { grid-template-columns: 1fr } }
/* Customise home: a clear mode with big move handles */
.chip.custom { justify-self: center; border-style: dashed; padding: 10px 16px; font-weight: 700 }
.stack.editing { position: relative; display: grid; gap: 6px; padding: 8px; border: 2px dashed var(--accent); border-radius: 18px }
.mover { display: flex; gap: 8px; justify-content: flex-end }
.mover .chip { min-width: 44px; min-height: 36px; font-size: 1rem; background: var(--accent); color: var(--accent-ink); border-color: transparent }
.mover .chip:disabled { opacity: .3; cursor: default }

/* Audio report player: sits above the bottom navigation */
.audiobar { position: absolute; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 30; display: grid; gap: 8px; padding: 12px 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 40px -18px rgba(0,0,0,.45) }
.audiobar audio { width: 100% }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin 0.8s linear infinite }
@keyframes spin { to { transform: rotate(360deg) } }
@media (min-width: 900px) { .audiobar { left: auto; width: 420px; bottom: 20px } }
/* Clone chat */
.chatlog { display: grid; gap: 10px }
.bubble.err { opacity: .75; font-style: italic }
.bubble.typing { opacity: .7; animation: pulse 1.2s ease-in-out infinite }
@keyframes pulse { 50% { opacity: .35 } }
/* Account: segmented choices */
.seg { display: flex; gap: 6px; flex-wrap: wrap }
a.chip { text-decoration: none; color: inherit; display: inline-flex; align-items: center }
a.btn { text-decoration: none; text-align: center }
.actions .btn { min-height: 48px }
.screen { position: relative }
.chatin input { font-size: 16px } /* 16px stops iPhone zooming into the field */
@media (min-width: 900px) { .view > .chatlog { grid-column: 1 / -1 } }
.audiobar b { font: 700 .95rem var(--body) }
.row.line > .chip, .row.line > a.chip { white-space: nowrap; flex-shrink: 0 }
/* Logo is a home button */
button.brand { border: 0; background: none; padding: 0; cursor: pointer; color: inherit }
/* All apps, grouped; the ones not ready yet are visible but quiet */
.appgroup { display: grid; gap: 8px }
.appgroup > b { font: 700 .95rem var(--display) }
.app.soon { opacity: .55; cursor: default }
.app.soon .small { font-weight: 700 }
/* Cancel: impossible to miss what it means */
.warnbox { border: 2px solid var(--danger); background: color-mix(in srgb, var(--danger) 8%, var(--surface)) }
.warnbox .warn-title { color: var(--danger); font-size: 1.1rem }
.warnbox ul { margin: 0; padding-left: 20px; display: grid; gap: 4px }
.btn.danger[data-act="docancel"] { background: var(--danger); color: #fff }
/* Embedded CertifiedIQ payment page */
.payframe { width: 100%; height: min(560px, 70vh); border: 0; border-radius: 14px; background: #f6f9fe }
.chip.buy { background: var(--accent); color: var(--accent-ink); border-color: transparent; font-weight: 700 }
/* ===== B2C layer: stories, hero progress, daily card (skill ux-b2c-app) ===== */
.stories { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; scroll-snap-type: x mandatory }
.stories::-webkit-scrollbar { display: none }
.story { flex: 0 0 auto; display: grid; justify-items: center; gap: 6px; width: 70px; border: 0; background: none; color: var(--ink); font: 600 .72rem var(--body); cursor: pointer; scroll-snap-align: start; text-align: center }
.story > span:last-child { max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.story .ring { width: 62px; height: 62px; border-radius: 50%; padding: 3px; background: var(--line); display: grid }
.story .ring.new { background: conic-gradient(from 210deg, #F59F00, #E64980, #7C4DCC, #0E9F8E, #F59F00) }
.story .dot { border-radius: 50%; background: var(--surface); border: 3px solid var(--bg); display: grid; place-items: center; font: 800 1.05rem var(--display) }
.story:active .ring { transform: scale(.94) }
.card.hero { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, var(--surface)), var(--surface) 60%); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)) }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, #0E9F8E, #7C4DCC); color: #fff; display: grid; place-items: center; font: 800 1.05rem var(--display); flex: 0 0 auto }
.lvl { font: 800 1.25rem var(--display) }
.streak { margin-left: auto; display: grid; justify-items: end; font: 800 1.3rem var(--display) }
.streak small { font: 600 .7rem var(--body); color: var(--muted) }
.bar.xp { height: 10px } .bar.xp i { background: linear-gradient(90deg, #0E9F8E, #7C4DCC) }
.week { display: flex; gap: 6px; justify-content: space-between }
.wd { flex: 1; text-align: center; padding: 6px 0; border-radius: 10px; background: var(--chip); color: var(--muted); font: 700 .72rem var(--body) }
.wd.on { background: #F59F00; color: #fff }
.btn.next { text-align: left; line-height: 1.35 }
.card.today { background: linear-gradient(135deg, #1B1F3B, #2B2F63); color: #fff; border: 0 }
.card.today .small { color: #fff; opacity: .75 }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 99; overflow: hidden }
.confetti i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; animation: fall 1.2s ease-in forwards }
@keyframes fall { to { transform: translateY(105vh) rotate(540deg); opacity: .4 } }
/* Bottom navigation: the active tab is unmistakable */
.nav button[aria-current="page"] svg { background: color-mix(in srgb, var(--accent) 18%, transparent); border-radius: 999px; padding: 3px 14px; box-sizing: content-box }
.card { border-radius: 20px; box-shadow: 0 1px 2px rgba(15,18,32,.04), 0 10px 24px -18px rgba(15,18,32,.35) }
.hi { font-size: 1.55rem; letter-spacing: -.01em }
.stories { min-height: 92px; flex-shrink: 0 } /* a scrolling row inside the page grid would otherwise shrink to nothing */
/* Invite page */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px }
.stats > div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: grid; gap: 2px }
.stats .num { font-size: 2rem }
.ok-badge { color: #0B7A5F }
.linkbox { background: var(--chip); border-radius: 12px; padding: 12px; word-break: break-all; font-size: .95rem; user-select: all }
.sharegrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 8px }
.share { display: grid; justify-items: center; gap: 6px; text-decoration: none; color: var(--ink); font: 600 .7rem var(--body); text-align: center; cursor: pointer }
.share .sic { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; color: #fff; font-size: 1.3rem }
.qr { width: 220px; max-width: 100%; justify-self: center; background: #fff; border-radius: 12px; padding: 8px }
.qr svg { width: 100%; height: auto; display: block }
/* Brain games */
.center { justify-items: center; text-align: center }
.seq { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 6px 0 }
.seq span { min-width: 48px; padding: 10px 8px; border-radius: 12px; background: var(--chip); font: 800 1.25rem var(--display) }
.seq .q { background: var(--accent); color: var(--accent-ink) }
.opts2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px }
.opt2 { padding: 18px 8px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 800 1.35rem var(--display); cursor: pointer }
.opt2.right { background: #0B7A5F; color: #fff; border-color: transparent } .opt2.bad { background: var(--danger); color: #fff; border-color: transparent }
.fb { font-weight: 800; padding: 6px 12px; border-radius: 999px } .fb.ok { color: #0B7A5F; background: color-mix(in srgb, #0B7A5F 12%, transparent) } .fb.no { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent) }
.shapes { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100% }
.shape { width: 42%; max-width: 160px; background: var(--chip); border-radius: 14px; padding: 6px } .shape rect { fill: var(--accent) }
.vs { font-size: 1.5rem; color: var(--muted) }
.digit { font: 800 4.5rem/1.1 var(--display); min-height: 5.5rem; display: grid; place-items: center }
.typed { font: 800 2rem var(--display); letter-spacing: .08em; min-height: 2.6rem }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px }
.key { padding: 16px 0; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 800 1.3rem var(--display); cursor: pointer }
.key:active { transform: scale(.96) }
.big-emoji { font-size: 3rem }
/* Weekly plan */
.task2 { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 .9rem var(--body); cursor: pointer }
.task2 .tick { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-weight: 800; color: #fff }
.task2.ok .tick { background: #0B7A5F; border-color: #0B7A5F } .task2.ok > span:nth-child(2) { text-decoration: line-through; color: var(--muted) }
.libitem { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center } .libitem .why { margin-top: 2px; color: var(--ink); opacity: .8 }
