/* Built by tools/demo/build-css.mjs from assets/qb/qb.css (do not edit by hand; edit tools/demo/extra.css). */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/poppins-latin-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/newsreader-latin-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {--teal: #0F6E6A; --deep: #083D3B; --bright: #2BA39C; --sand: #EBD3A8; --mist: #F4FBFA;
  --bg: #F6F4EE; --surface: #FDFCF8; --surface-2: #F0EDE5; --ink: #1D2422; --muted: #5F6B68; --faint: #8A9592;
  --line: #E3DFD4; --line-2: #D3CEC1;
  --accent: var(--teal); --accent-ink: #fff; --accent-soft: #E3F1EF;
  --ok: #1D7A4C; --ok-soft: #E3F3EA; --bad: #B23A30; --bad-soft: #FBE9E6; --flag: #C98A12;
  --hl0: #FBE28C; --hl1: #BDE7C5; --hl2: #C3DCF7; --hl3: #F6C8DB; --focus: 0 0 0 3px rgba(43, 163, 156, .35);
  --radius: 10px; --shadow: 0 1px 2px rgba(20, 30, 28, .06), 0 4px 16px rgba(20, 30, 28, .06);
  --font-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-read: 'Newsreader', 'Georgia', serif;
  --font-head: 'Poppins', 'Inter', system-ui, sans-serif;
  --fs: 1;
  
  --u-bar: #2A4C86; --u-bar-2: #1E3A6B; --u-bar-ink: #fff; --u-bg: #FFFFFF; --u-ink: #111; --u-side: #EEF1F6; --u-line: #C9D0DC; --u-sel: #DCE6F7;
  color-scheme: light; }
:root[data-theme="dark"] {--bg: #111514; --surface: #181E1D; --surface-2: #1F2625; --ink: #E4E9E7; --muted: #9DA9A6; --faint: #75817E;
  --line: #29312F; --line-2: #36403E;
  --accent: #34B3AA; --accent-ink: #071F1E; --accent-soft: #143331;
  --ok: #4CC487; --ok-soft: #12301F; --bad: #F07B70; --bad-soft: #3A1916; --flag: #E7B54A;
  --hl0: rgba(240, 200, 80, .38); --hl1: rgba(90, 200, 120, .32); --hl2: rgba(100, 160, 240, .36); --hl3: rgba(240, 120, 170, .34); --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
  --u-bar: #233F70; --u-bar-2: #182E54; --u-bg: #15191F; --u-ink: #E7EAF0; --u-side: #1C222B; --u-line: #343D4B; --u-sel: #26354F;
  color-scheme: dark; }
*, *::before, *::after {box-sizing: border-box; }
html {-webkit-text-size-adjust: 100%; }
body {margin: 0; font: 15px/1.55 var(--font-ui); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img {max-width: 100%; height: auto; }
button, input, select, textarea {font: inherit; color: inherit; }
a {color: var(--accent); }
:focus-visible {outline: none; box-shadow: var(--focus); border-radius: 6px; }
[hidden] {display: none !important; }
.qb-ic {width: 18px; height: 18px; flex: none; }
.qb-muted {color: var(--muted); }
.qb-small {font-size: .85rem; }
.qb-btn {display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 38px; padding: .45rem .95rem; border: 1px solid var(--line-2);
  background: var(--surface); border-radius: 8px; cursor: pointer; font-weight: 500; font-size: .92rem; white-space: nowrap; text-decoration: none; color: var(--ink); }
.qb-btn:hover {background: var(--surface-2); }
.qb-btn:disabled {opacity: .45; cursor: default; }
.qb-btn-primary {background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.qb-btn-primary:hover {background: var(--accent); filter: brightness(1.07); }
.qb-btn-sm {min-height: 32px; padding: .3rem .7rem; font-size: .85rem; }
.qb-icbtn {display: inline-grid; place-items: center; width: 38px; height: 38px; border: 0; background: transparent; border-radius: 8px; cursor: pointer; color: inherit; }
.qb-icbtn:hover {background: var(--surface-2); }
.qb-icbtn.on {color: var(--flag); }
.qb-seg {display: inline-flex; padding: 3px; background: var(--surface-2); border-radius: 9px; gap: 2px; flex-wrap: wrap; }
.qb-seg button {border: 0; background: transparent; padding: .42rem .85rem; border-radius: 7px; cursor: pointer; font-weight: 500; font-size: .9rem; color: var(--muted); }
.qb-seg button.on {background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.qb-seg button small {color: var(--faint); font-weight: 400; margin-left: .3rem; }
input[type=number], input[type=text], input[type=search], textarea, select {border: 1px solid var(--line-2); background: var(--surface); border-radius: 8px; padding: .5rem .7rem; min-height: 38px; }
textarea {width: 100%; resize: vertical; line-height: 1.5; }
input[type=checkbox] {accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }
.qb-dialog {border: 1px solid var(--line); border-radius: 14px; padding: 1.4rem; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; }
.qb-dialog::backdrop {background: rgba(10, 18, 17, .45); }
.qb-dialog h3 {margin: 0 0 .4rem; font-size: 1.1rem; }
.qb-dialog-sm {width: min(420px, calc(100vw - 32px)); }
.qb-actions {display: flex; gap: .5rem; justify-content: flex-end; margin-top: 1.2rem; flex-wrap: wrap; }
.qb-toasts {position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: grid; gap: .5rem; z-index: 100; pointer-events: none; }
.qb-toast {background: var(--ink); color: var(--bg); padding: .6rem 1rem; border-radius: 8px; font-size: .9rem; box-shadow: var(--shadow); }
.home-top {position: sticky; top: 0; z-index: 10; background: var(--deep); color: #fff; box-shadow: inset 0 -3px 0 var(--bright); }
.home-top-in {max-width: 1180px; margin: auto; padding: .55rem 16px; display: flex; align-items: center; gap: .9rem; }
.brand {font: 600 1.15rem var(--font-head); letter-spacing: -.01em; color: #fff; text-decoration: none; white-space: nowrap; }
.brand b {color: var(--sand); font-weight: 600; }
.brand span {font: 500 .72rem var(--font-ui); color: #9CC9C5; margin-left: .45rem; letter-spacing: .06em; text-transform: uppercase; }
.home-top .qb-icbtn {color: #D7ECEA; }
.home-top .qb-icbtn:hover, .home-top .qb-icbtn.on {background: rgba(255, 255, 255, .1); color: #fff; }
.grow {flex: 1; }
.banks {display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.banks a {color: #BFDCD9; padding: .45rem .8rem; border-radius: 8px; font-weight: 500; white-space: nowrap; text-decoration: none; font-size: .93rem; }
.banks a:hover {color: #fff; background: rgba(255, 255, 255, .06); }
.banks a.on {background: rgba(255, 255, 255, .13); color: #fff; }
.banks a.on {box-shadow: inset 0 -2px 0 var(--sand); }
.page-in {max-width: 1180px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.page-head {background: var(--surface-2); border-bottom: 1px solid var(--line); padding: 1.8rem 0 1.5rem; }
.page-head h1 {font: 600 1.6rem var(--font-head); letter-spacing: -.015em; margin: 0 0 .35rem; color: var(--ink); }
.page-head p {margin: 0; color: var(--muted); max-width: 68ch; }
.eyebrow {font: 600 .72rem var(--font-ui) !important; letter-spacing: .09em; text-transform: uppercase; color: var(--sand) !important; margin: 0 0 .3rem !important; }
.bank-head {background: linear-gradient(160deg, #0B4C49 0%, var(--deep) 70%); color: #fff; border: 0; padding-bottom: 0; }
.bank-head h1 {color: #fff; font-size: 1.8rem; }
.hero-stats {display: flex; gap: 2.2rem; margin: 1.1rem 0 1.4rem; flex-wrap: wrap; }
.hero-stats div {display: flex; flex-direction: column; }
.hero-stats b {font: 600 1.45rem var(--font-head); font-variant-numeric: tabular-nums; }
.hero-stats small {color: #9CC9C5; font-size: .8rem; }
.tabs {display: flex; gap: .2rem; overflow-x: auto; scrollbar-width: none; }
.tabs a {padding: .7rem 1rem; color: #BFDCD9; text-decoration: none; font-weight: 500; white-space: nowrap; border-radius: 9px 9px 0 0; }
.tabs a:hover {color: #fff; }
.tabs a.on {background: var(--bg); color: var(--ink); }
.card {background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem; }
.card h2 {margin: 0 0 .5rem; font: 600 1.1rem var(--font-head); letter-spacing: -.01em; }
.card h3 {margin: 0 0 .7rem; font: 600 .75rem var(--font-ui); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.empty-state p {color: var(--muted); }
.empty-state {text-align: center; padding: 3.5rem 1rem; }
.empty-state h2 {font: 600 1.2rem var(--font-head); margin: 0 0 .4rem; }
.empty-state .qb-btn {margin-top: 1rem; }
.qb-btn-lg {min-height: 46px; padding: .55rem 1.6rem; font-size: 1rem; }
.lib {display: grid; gap: 1rem; padding-top: 1.5rem; padding-bottom: 3rem; }
.builder {background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin: 1.5rem 0 3rem; }
.b-sec {padding: 1.2rem 1.4rem; border-top: 1px solid var(--line); }
.b-sec:first-child {border-top: 0; }
.b-sec h3 {margin: 0 0 .75rem; font: 600 .75rem var(--font-ui); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.b-sec h3 small {text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--faint); margin-left: .35rem; }
.opt-cards {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; max-width: 720px; }
.opt {text-align: left; border: 1.5px solid var(--line-2); background: var(--surface); border-radius: 12px; padding: .85rem 1rem; cursor: pointer; display: grid; gap: .2rem; }
.opt b {font-weight: 600; font-size: 1rem; }
.opt span {color: var(--muted); font-size: .86rem; line-height: 1.4; }
.opt:hover {border-color: var(--faint); }
.opt.on {border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.chips {display: flex; gap: .5rem; flex-wrap: wrap; }
.chips button {border: 1.5px solid var(--line-2); background: var(--surface); border-radius: 99px; padding: .45rem .95rem; cursor: pointer; font-weight: 500; font-size: .92rem; }
.chips button small {color: var(--faint); font-weight: 400; margin-left: .4rem; font-variant-numeric: tabular-nums; }
.chips button:hover:not(:disabled) {border-color: var(--faint); }
.chips button.on {border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.chips button.on small {color: inherit; opacity: .8; }
.chips button:disabled {opacity: .4; cursor: default; }
.chips.small button {padding: .3rem .75rem; font-size: .85rem; }
.b-lists {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.b-list {border: 1px solid var(--line); border-radius: 12px; overflow: hidden; min-width: 0; }
.b-list-head {display: flex; align-items: center; gap: .6rem; padding: .55rem .6rem .55rem .9rem; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.b-list-head h3 {margin: 0; }
.b-list-head small {color: var(--faint); font-size: .8rem; }
.b-list-head .qb-btn {margin-left: auto; color: var(--accent); min-height: 30px; }
.b-list-body {max-height: 340px; overflow-y: auto; padding: .35rem; }
.check {display: flex; align-items: center; gap: .65rem; padding: .42rem .55rem; border-radius: 7px; cursor: pointer; font-size: .92rem; min-width: 0; }
.check:hover {background: var(--surface-2); }
.check span {flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.check em {font-style: normal; color: var(--faint); font-size: .82rem; font-variant-numeric: tabular-nums; }
.count-row {display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.count-row input[type=range] {flex: 1; min-width: 160px; max-width: 360px; accent-color: var(--accent); }
.count-row input[type=number] {width: 80px; text-align: center; font-weight: 600; }
.b-bar {position: sticky; bottom: 0; display: flex; align-items: center; gap: 1rem; padding: .85rem 1.4rem; background: var(--surface); border-top: 1px solid var(--line); border-radius: 0 0 14px 14px; box-shadow: 0 -6px 16px rgba(0, 0, 0, .04); }
.b-sum {flex: 1; display: flex; flex-direction: column; min-width: 0; }
.b-sum b {font-weight: 600; }
.b-sum small {color: var(--muted); }
.row-actions {display: flex; gap: .4rem; align-items: center; justify-content: flex-end; }
.row-actions .qb-icbtn {width: 32px; height: 32px; color: var(--faint); }
.perf-head {display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(60px, 1fr) 3.2rem 5.5rem; gap: .8rem; align-items: center; }
.perf-head {font-size: .75rem; color: var(--faint); margin-bottom: .3rem; }
.perf-head span:nth-child(n+2) {text-align: right; }
@media (max-width: 900px) {
.b-lists {grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
.brand span {display: none; }
.home-top-in {flex-wrap: wrap; row-gap: .2rem; }
.banks {order: 3; width: 100%; padding-bottom: .25rem; }
.page-head {padding: 1.3rem 0 1.1rem; }
.page-head h1 {font-size: 1.35rem; }
.bank-head h1 {font-size: 1.5rem; }
.hero-stats {gap: 1.2rem; }
.hero-stats b {font-size: 1.2rem; }
.opt-cards {grid-template-columns: 1fr; }
.b-sec {padding: 1rem; }
.b-list-body {max-height: 260px; }
.b-bar {padding: .75rem 1rem; }
.b-bar .qb-btn-lg {padding: .5rem 1.1rem; }
.perf-head {grid-template-columns: minmax(0, 1fr) 60px 3rem; }
.perf-head span:last-child {display: none; }
}
.player {position: fixed; inset: 0; display: flex; flex-direction: column; background: var(--bg); font-size: calc(15px * var(--fs)); }
.player > .p-main, .player > .results {flex: 1; min-height: 0; }
.p-main {position: relative; }
.stem, .expl {overflow-wrap: anywhere; }
.stem p, .expl p {margin: 0 0 .9em; }
:root {--img-h: calc(260px * var(--fs)); --img-w: calc(420px * var(--fs)); --col: calc(960px * var(--fs)); }
:root[data-img="large"] {--img-h: calc(520px * var(--fs)); --img-w: 100%; }
:root[data-width="normal"] {--col: calc(760px * var(--fs)); }
:root[data-width="full"] {--col: 100%; }
.stem img, .expl img {display: block; max-height: var(--img-h); max-width: min(100%, var(--img-w)); width: auto; height: auto; object-fit: contain; margin: .3em 0; border-radius: 6px; cursor: zoom-in; background: #fff; transition: box-shadow .12s; }
.stem img:hover, .expl img:hover {box-shadow: 0 0 0 2px var(--accent); }
.qb-table {overflow-x: auto; margin: 1em 0; -webkit-overflow-scrolling: touch; }
.qb-table table {border-collapse: collapse; min-width: 100%; font-family: var(--font-ui); font-size: .9em; line-height: 1.45; }
.qb-table td, .qb-table th {border: 1px solid var(--line-2); padding: .5em .65em; vertical-align: top; text-align: left; }
.qb-table td p {margin: 0 0 .35em; }
.qb-table td p:last-child {margin: 0; }
.qb-table th {background: var(--surface-2); font-weight: 600; }
.expl ul {padding-left: 1.25em; margin: 0 0 .9em; }
.expl li {margin-bottom: .25em; }
mark.hl {background: var(--hl0); color: inherit; border-radius: 2px; padding: 0 1px; cursor: pointer; }
.c0.hl-sw {background: var(--hl0); }
.choice {display: flex; align-items: flex-start; gap: .7rem; width: 100%; text-align: left; cursor: pointer; position: relative; }
.choice .c-text {flex: 1; min-width: 0; }
.choice .c-text p {margin: 0; }
.choice.struck .c-text {text-decoration: line-through; text-decoration-thickness: 1.5px; opacity: .5; }
.choice .c-pct {font-variant-numeric: tabular-nums; font-size: .85em; color: var(--muted); white-space: nowrap; }
.choice .c-strike {opacity: 0; border: 0; background: transparent; padding: 2px; cursor: pointer; color: var(--faint); border-radius: 5px; align-self: center; }
.choice:hover .c-strike, .choice.struck .c-strike, .choice .c-strike:focus-visible {opacity: 1; }
@media (hover: none) {
.choice .c-strike {opacity: .7; }
}
.lo-original .p-top {display: flex; align-items: center; gap: .25rem; padding: .4rem .7rem; min-height: 54px; background: var(--surface); border-bottom: 1px solid var(--line); }
.lo-original .p-top .qb-icbtn {color: var(--muted); }
.lo-original .p-top .qb-icbtn:hover {color: var(--accent); background: var(--accent-soft); }
.lo-original .p-top .qb-icbtn.on {color: var(--flag); }
.lo-original .p-title {display: flex; flex-direction: column; line-height: 1.2; min-width: 0; padding: 0 .4rem; }
.lo-original .p-title b {font: 600 .92rem var(--font-head); color: var(--deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:root[data-theme="dark"] .lo-original .p-title b {color: var(--ink); }
.p-qid {display: inline-flex; align-items: center; gap: .25rem; border: 0; background: none; padding: 0; color: var(--muted); font: .76rem var(--font-ui); font-variant-numeric: tabular-nums; cursor: pointer; width: max-content; }
.p-qid .qb-ic {width: 12px; height: 12px; opacity: .6; }
.p-qid:hover {color: var(--accent); }
.lo-original .p-count {margin: 0 auto; border: 1px solid var(--line-2); background: var(--bg); border-radius: 999px; padding: .3rem .9rem; font: 600 .88rem var(--font-ui); font-variant-numeric: tabular-nums; color: var(--ink); cursor: pointer; }
.lo-original .p-count:hover {border-color: var(--accent); color: var(--accent); }
.lo-original .p-tools {display: flex; align-items: center; gap: 2px; }
.lo-original .p-timer {font: 500 .88rem var(--font-ui); font-variant-numeric: tabular-nums; color: var(--muted); padding: 0 .55rem; }
.lo-original .p-timer.low {color: var(--bad); font-weight: 600; }
.lo-original .p-end {margin-left: .35rem; background: var(--deep); border-color: var(--deep); color: #fff; }
.lo-original .p-end:hover {background: var(--teal); border-color: var(--teal); }
:root[data-theme="dark"] .lo-original .p-end {background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.p-strip {display: flex; align-items: center; gap: 3px; height: 16px; padding: 0 .8rem; background: var(--surface); border-bottom: 1px solid var(--line); }
.p-strip button {position: relative; flex: 1; min-width: 3px; height: 5px; padding: 0; border: 0; border-radius: 3px; background: var(--line-2); cursor: pointer; transition: height .12s; }
.p-strip button:hover {height: 9px; }
.p-strip .ans {background: var(--faint); }
.p-strip .ok {background: var(--ok); }
.p-strip .bad {background: var(--bad); }
.p-strip .cur {height: 9px; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--deep); }
:root[data-theme="dark"] .p-strip .cur {box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--accent); }
.lo-original .p-main {display: grid; grid-template-columns: minmax(0, 1fr); }
.lo-original .p-scroll {overflow-y: auto; min-height: 0; }
.lo-original .p-body {max-width: var(--col); margin: 0 auto; padding: 2.2rem 1.5rem 4rem; }
.lo-original .stem {font: 1.12em/1.7 var(--font-read); color: var(--ink); }
.lo-original .stem img, .lo-original .expl img {border: 1px solid var(--line); }
.lo-original .choices {display: grid; gap: .5rem; margin: 1.5rem 0 .6rem; }
.lo-original .choice {border: 1px solid var(--line-2); background: var(--surface); border-radius: var(--radius); padding: .75rem .85rem; font-size: 1em; line-height: 1.45; transition: border-color .12s; }
.lo-original .choice:hover:not(.done) {border-color: var(--accent); }
.lo-original .choice .c-l {display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-2); font-weight: 600; font-size: .82em; color: var(--muted); margin-top: -1px; }
.lo-original .choice:hover:not(.done) .c-l {border-color: var(--accent); color: var(--accent); }
.lo-original .choice.sel {border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.lo-original .choice.sel .c-l {background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.lo-original .choice.right {border-color: var(--ok); background: var(--ok-soft); box-shadow: none; }
.lo-original .choice.right .c-l {background: var(--ok); border-color: var(--ok); color: #fff; }
.lo-original .choice.wrong {border-color: var(--bad); background: var(--bad-soft); box-shadow: none; }
.lo-original .choice.wrong .c-l {background: var(--bad); border-color: var(--bad); color: #fff; }
.lo-original .choice.done {cursor: default; }
.lo-original .choice .c-bar {position: absolute; left: 0; bottom: 0; height: 2px; background: currentColor; opacity: .18; border-radius: 0 0 0 var(--radius); }
.lo-original .submit-row {min-height: 1.3rem; }
.lo-original .kbd-hint {color: var(--faint); font-size: .8rem; }
.lo-original .result {display: flex; flex-wrap: wrap; gap: .35rem 1.3rem; align-items: baseline; padding: .9rem 1.1rem; margin: 1.4rem 0 1rem; border: 1px solid var(--line); border-left: 4px solid var(--faint); border-radius: var(--radius); background: var(--surface); font-size: .88rem; animation: rise .22s ease-out; }
.lo-original .result.ok {border-left-color: var(--ok); }
.lo-original .result.bad {border-left-color: var(--bad); }
.lo-original .result .r-main {font: 600 1.05rem var(--font-head); }
.lo-original .result.ok .r-main {color: var(--ok); }
.lo-original .result.bad .r-main {color: var(--bad); }
.lo-original .result span {color: var(--muted); }
.lo-original .result span b {color: var(--ink); font-weight: 600; }
.lo-original .result .r-topic {flex-basis: 100%; font-size: .82rem; }
.lo-original .expl-card {background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.4rem 1.5rem 1.1rem; animation: rise .22s ease-out; }
.lo-original .expl-head {display: flex; align-items: center; gap: .55rem; margin: 0 0 .9rem; font: 600 .75rem var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.lo-original .expl-head::before {content: ''; width: 18px; height: 3px; border-radius: 2px; background: var(--bright); }
.lo-original .expl {font: 1.04em/1.72 var(--font-read); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) {
.lo-original .result, .lo-original .expl-card {animation: none; }
}
.lo-original .p-foot {border-top: 1px solid var(--line); background: var(--surface); }
.lo-original .p-foot-in {display: flex; align-items: center; gap: .6rem; max-width: calc(var(--col) + 3rem); margin: 0 auto; padding: .55rem 1.5rem; }
.lo-original .p-foot .qb-btn {min-width: 118px; justify-content: center; }
.lo-original .p-foot .qb-btn-primary {background: var(--deep); border-color: var(--deep); }
.lo-original .p-foot .qb-btn-primary:hover:not(:disabled) {background: var(--teal); border-color: var(--teal); }
:root[data-theme="dark"] .lo-original .p-foot .qb-btn-primary {background: var(--accent); border-color: var(--accent); }
@media (max-width: 760px) {
.lo-original .p-top {padding: .35rem .35rem; gap: 0; }
.lo-original .p-title, .lo-original .p-tools .wide {display: none; }
.lo-original .p-count {margin: 0 auto 0 .25rem; padding: .28rem .7rem; }
.lo-original .p-timer {padding: 0 .35rem; }
.lo-original .p-tools .qb-icbtn {width: 36px; }
.lo-original .p-body {padding: 1.3rem 16px 3rem; }
.lo-original .expl-card {padding: 1.1rem 1rem .9rem; }
.lo-original .p-foot-in {padding: .5rem 12px; }
.lo-original .p-foot .qb-btn {min-width: 0; }
.lo-original .p-foot [data-act="prev"] span {display: none; }
}
.p-stat {flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: .4rem; font: .8rem var(--font-ui); color: var(--muted); white-space: nowrap; overflow: hidden; }
.p-stat span {overflow: hidden; text-overflow: ellipsis; }
.p-stat .qb-ic {width: 15px; height: 15px; flex: none; }
.p-stat.ok {color: var(--ok); }
.p-stat.off {color: var(--flag); }
@keyframes spin { to { transform: rotate(360deg); } }
.hl-sw {display: inline-block; width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid rgba(0, 0, 0, .25); }
.jump {display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 6px; margin: .9rem 0 .6rem; }
.jump button {position: relative; height: 40px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); color: var(--ink); font: 500 .9rem var(--font-ui); font-variant-numeric: tabular-nums; cursor: pointer; }
.jump button:hover {border-color: var(--accent); }
.jump .ans {background: var(--surface-2); }
.jump .ok {background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.jump .bad {background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }
.jump .cur {outline: 2px solid var(--accent); outline-offset: 1px; }
.player .p-top {min-width: 0; overflow: hidden; }
@media (max-width: 600px) {
.home-top-in {flex-wrap: wrap; row-gap: .3rem; }
.banks {order: 3; width: 100%; padding-bottom: .2rem; }
}
.labs input[type=search] {width: 100%; margin-bottom: .6rem; }
.labs table {width: 100%; border-collapse: collapse; font-size: .85rem; }
.labs td {padding: .35rem .3rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.labs th {position: sticky; top: -.8rem; z-index: 1; background: var(--surface); text-align: left; padding: .35rem .3rem; border-bottom: 1px solid var(--line-2);
  font-size: .72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.labs tr.sub td {font-weight: 600; border-bottom: 0; padding-top: .55rem; font-size: .8rem; }
.notes textarea {min-height: 180px; }
.notes small {display: block; margin-top: .4rem; color: var(--faint); }
.results {overflow-y: auto; min-height: 0; }
.results-in {max-width: 980px; margin: 0 auto; padding: 2rem 16px 3rem; }
.results h1 {font: 600 1.5rem var(--font-head); margin: 0 0 .3rem; letter-spacing: -.01em; }
.res-table {width: 100%; border-collapse: collapse; font-size: .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.res-table th {text-align: left; font-weight: 600; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; padding: .6rem .8rem; background: var(--surface-2); }
.res-table td {padding: .55rem .8rem; border-top: 1px solid var(--line); vertical-align: middle; }
.res-table tr.go {cursor: pointer; }
.res-table tr.go:hover td {background: var(--surface-2); }
.res-table .r-ok {color: var(--ok); font-weight: 600; }
.res-table .r-bad {color: var(--bad); font-weight: 600; }
.res-table .r-om {color: var(--muted); }
.res-wrap {overflow-x: auto; }
@media (max-width: 700px) {
.res-table .hide-sm {display: none; }
}
.res-table td.qid {font-variant-numeric: tabular-nums; color: var(--muted); }
.link {border: 0; background: none; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.link:hover {text-decoration-color: currentColor; }
.grow {flex: 1; }
.dash {display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.25rem; align-items: start; padding-top: 1.5rem; padding-bottom: 3rem; }
.heat {grid-column: 1 / -1; display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 3px; margin-top: .9rem; max-width: 300px; }
.heat i {display: block; aspect-ratio: 1; border-radius: 3px; background: var(--surface-2); }
.heat .l1 {background: color-mix(in srgb, var(--bright) 35%, var(--surface-2)); }
.heat .l2 {background: color-mix(in srgb, var(--bright) 65%, var(--surface-2)); }
.heat .l3 {background: var(--teal); }
.heat .lf {background: transparent; }
.meter {height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.meter i {display: block; height: 100%; background: var(--bright); border-radius: inherit; }
.td-add {display: flex; gap: .4rem; }
.td-add input {flex: 1; min-width: 0; }
.todo {list-style: none; padding: 0; margin: .6rem 0 0; display: grid; gap: 2px; }
.todo li {display: flex; align-items: center; gap: .3rem; padding: .25rem 0; border-top: 1px solid var(--line); }
.todo li:first-child {border-top: 0; }
.todo label {flex: 1; display: flex; gap: .55rem; align-items: flex-start; cursor: pointer; font-size: .92rem; min-width: 0; overflow-wrap: anywhere; }
.todo input {margin-top: .2rem; accent-color: var(--accent); }
.todo li.done span {text-decoration: line-through; color: var(--faint); }
.todo .qb-icbtn {width: 28px; height: 28px; opacity: .5; }
.todo .qb-icbtn:hover {opacity: 1; }
@media (max-width: 960px) {
.dash {grid-template-columns: minmax(0, 1fr); }
}
.submit-row .link {margin-left: 1rem; font-size: .85rem; }
.p-zoom {display: inline-flex; margin: 0 .15rem; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; }
.p-zoom button {display: grid; place-items: center; width: 34px; height: 32px; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; }
.p-zoom button + button {border-left: 1px solid var(--line-2); }
.p-zoom button:hover {background: var(--accent-soft); color: var(--accent); }
.p-zoom .qb-ic {width: 17px; height: 17px; }
@keyframes flick { 50% { transform: scale(1.05) rotate(-2deg); } }
.heat i {cursor: default; }
.heat i:hover {outline: 2px solid var(--accent); outline-offset: 1px; }
.topbar {position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.tb-in {max-width: 1180px; margin: auto; padding: .5rem 16px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.topbar .brand {color: var(--deep); justify-self: start; }
:root[data-theme="dark"] .topbar .brand {color: var(--ink); }
.pills {display: flex; gap: 2px; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; }
.pills a {display: flex; align-items: center; gap: .45rem; padding: .42rem .95rem; border-radius: 999px; color: var(--muted); text-decoration: none; font: 500 .9rem var(--font-ui); white-space: nowrap; transition: background .15s, color .15s; }
.pills a .qb-ic {width: 17px; height: 17px; }
.pills a:hover {color: var(--ink); background: var(--surface); }
.pills a.on {background: var(--deep); color: #fff; box-shadow: 0 1px 2px rgba(8, 61, 59, .25); }
:root[data-theme="dark"] .pills a.on {background: var(--accent); color: var(--accent-ink); }
.tb-right {justify-self: end; display: flex; align-items: center; gap: .35rem; position: relative; }
.tb-right .qb-icbtn {color: var(--muted); }
.avatar {width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--accent-soft); color: var(--accent); font: 600 .8rem var(--font-ui); cursor: pointer; }
.avatar:hover, .avatar[aria-expanded="true"] {box-shadow: 0 0 0 2px var(--bright); }
.tabbar {display: none; }
@media (max-width: 760px) {
.tb-in {grid-template-columns: 1fr auto; padding: .45rem 12px; }
.pills {display: none; }
.tabbar {display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--surface); border-top: 1px solid var(--line); padding: .3rem .2rem calc(.3rem + env(safe-area-inset-bottom)); }
.tabbar a {display: grid; justify-items: center; gap: 2px; padding: .3rem 0; color: var(--muted); text-decoration: none; font: 500 .68rem var(--font-ui); }
.tabbar a .qb-ic {width: 22px; height: 22px; }
.tabbar a.on {color: var(--deep); }
:root[data-theme="dark"] .tabbar a.on {color: var(--accent); }
.tabbar a.on .qb-ic {stroke-width: 2.2; }
body.app #page {padding-bottom: 4.5rem; }
}
.bank-head, .perf-head {background: var(--surface-2); color: var(--ink); border-bottom: 1px solid var(--line); }
.bank-head {padding-bottom: 0; }
.bank-head h1 {color: var(--ink); font-size: 1.6rem; }
.bank-head .hero-stats b {color: var(--ink); }
.bank-head .hero-stats small {color: var(--muted); }
.bank-head .tabs a {color: var(--muted); border-radius: 0; border-bottom: 2px solid transparent; padding: .7rem .9rem; }
.bank-head .tabs a:hover {color: var(--ink); }
.bank-head .tabs a.on {background: none; color: var(--accent); border-bottom-color: var(--accent); }
.ph-row {display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.ph-row h1 {margin: 0; }
.sec-mini {display: flex; justify-content: space-between; align-items: baseline; }
.sec-mini a {color: var(--accent); }
.perf2 .card h3 {display: flex; align-items: center; gap: .45rem; }
.perf2 .card h3 .qb-ic {width: 16px; height: 16px; color: var(--accent); }
.meter.big {height: 12px; margin: .3rem 0 .6rem; }
.kpi-row {display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .8rem; }
.kpi {display: grid; gap: .25rem; align-content: start; }
.kpi small {color: var(--muted); font-weight: 600; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; }
.kpi b {font: 600 1.6rem var(--font-head); font-variant-numeric: tabular-nums; }
.kpi b span {font-size: .95rem; font-weight: 500; }
.kpi .up, .delta.up {color: var(--ok); }
.kpi .down, .delta.down {color: var(--bad); }
.delta {font-size: .82rem; font-weight: 600; }
.kpi .meter {margin-top: .3rem; }
.chart {width: 100%; min-height: 60px; overflow: hidden; }
.ch {display: block; max-width: 100%; height: auto; font-family: var(--font-ui); }
.ch-grid {stroke: var(--line); stroke-width: 1; }
.ch-ax {fill: var(--faint); font-size: 11px; }
.ch-bar {fill: color-mix(in srgb, var(--bright) 70%, var(--surface-2)); }
.ch-bar:hover {fill: var(--accent); }
.ch-bar.h0 {fill: var(--bad); }
.ch-bar.h1 {fill: #E8893A; }
.ch-bar.h2 {fill: #E2B33C; }
.ch-bar.h3 {fill: #6DB88F; }
.ch-bar.h4 {fill: var(--ok); }
.ch-line {fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.ch-dot {fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
.ch-dot:hover {fill: var(--accent); }
.ch-target {stroke: var(--flag); stroke-width: 1.5; stroke-dasharray: 5 4; }
.ch-tl {fill: var(--flag); font-size: 11px; font-weight: 600; }
.perf2 {padding-top: 1.4rem; padding-bottom: 3rem; display: grid; gap: 1rem; }
.perf-two {display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.mistakes {display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; }
.mk {display: grid; gap: .4rem; align-content: start; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.mk-top {display: flex; align-items: baseline; gap: .5rem; }
.mk-top b {font: 600 1.6rem var(--font-head); color: var(--bad); font-variant-numeric: tabular-nums; }
.mk.win .mk-top b {color: var(--ok); }
.mk-top span {font-weight: 600; }
.mk p {margin: 0; color: var(--muted); font-size: .84rem; }
.mk-act {display: flex; gap: .4rem; margin-top: .2rem; }
.topic {display: grid; grid-template-columns: minmax(0, 1fr) 90px 42px 28px; gap: .6rem; align-items: center; width: 100%; padding: .45rem .3rem; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.topic:first-of-type {border-top: 0; }
.topic:hover {background: var(--surface-2); }
.topic span {font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topic b {text-align: right; font-variant-numeric: tabular-nums; }
.topic small {color: var(--faint); text-align: right; }
.meter.sm {height: 6px; }
.meter.h0 i {background: #C94A3F; }
.meter.h1 i {background: #E07B39; }
.meter.h2 i {background: #D9A532; }
.meter.h3 i {background: #5BAF83; }
.meter.h4 i {background: #1D7A4C; }
@media (max-width: 860px) {
.perf-two {grid-template-columns: minmax(0, 1fr); }
}
.topbar .brand {display: flex; align-items: center; line-height: 0; }
.topbar .brand img {height: 52px; width: auto; display: block; margin: -8px 0 -8px -6px; }
.topbar .brand .logo-d, :root[data-theme="dark"] .topbar .brand .logo-l {display: none; }
:root[data-theme="dark"] .topbar .brand .logo-d {display: block; }
@media (max-width: 760px) {
.topbar .brand img {height: 44px; margin: -6px 0 -6px -5px; }
}
.expl-card + .result {margin-top: 1rem; }
.home-head {padding-bottom: 1.2rem; }
.home-head h1 {font-size: 1.8rem; margin: 0; }
.home-hero {display: flex; align-items: center; gap: 1.5rem; padding: 1.5rem 1.6rem; color: inherit; text-decoration: none; border-left: 4px solid var(--accent); }
a.home-hero:hover {border-color: var(--accent); }
.hh-text {flex: 1; min-width: 0; display: grid; gap: .3rem; }
.hh-text small {color: var(--accent); font: 600 .72rem var(--font-ui); text-transform: uppercase; letter-spacing: .08em; }
.hh-text h2 {margin: 0; font: 600 1.3rem/1.3 var(--font-head); letter-spacing: -.01em; }
.hh-text p {margin: 0 0 .35rem; color: var(--muted); font-size: .9rem; }
.hh-text .meter {max-width: 420px; }
.home-strip {display: grid; grid-template-columns: minmax(0, 1.9fr) repeat(3, minmax(0, 1fr)); padding: 0; }
.home-strip > * {padding: 1.1rem 1.2rem; border-left: 1px solid var(--line); min-width: 0; }
.home-strip > :first-child {border-left: 0; }
.hs-streak {display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .2rem 1rem; align-items: center; }
.hs-fl {display: flex; align-items: center; gap: .5rem; }
.hs-n b {display: block; font: 600 2rem/1 var(--font-head); color: var(--deep); font-variant-numeric: tabular-nums; }
:root[data-theme="dark"] .hs-n b {color: var(--accent); }
.hs-n span {color: var(--muted); font-size: .8rem; }
.hs-week {position: relative; justify-self: end; }
.hs-best {grid-column: 1 / -1; color: var(--muted); font-size: .78rem; }
.wk {display: flex; gap: 5px; }
.wk-d {display: grid; justify-items: center; gap: 3px; cursor: default; }
.wk-d i {display: block; width: 16px; height: 16px; border-radius: 5px; background: var(--surface-2); }
.wk-d small {font-size: .62rem; color: var(--faint); }
.wk-d.today small {color: var(--ink); font-weight: 600; }
.wk-d.l1 i {background: color-mix(in srgb, var(--bright) 35%, var(--surface-2)); }
.wk-d.l2 i {background: color-mix(in srgb, var(--bright) 65%, var(--surface-2)); }
.wk-d.l3 i {background: var(--teal); }
.wk-d.lf i {background: transparent; border: 1px dashed var(--line-2); }
.hs-num {display: grid; align-content: start; gap: .1rem; color: inherit; text-decoration: none; }
.hs-num small {color: var(--muted); font: 600 .72rem var(--font-ui); text-transform: uppercase; letter-spacing: .07em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-num b {font: 600 1.7rem/1.15 var(--font-head); font-variant-numeric: tabular-nums; }
.hs-num b.set {font-size: 1.1rem; color: var(--accent); padding: .3rem 0 .15rem; }
.hs-num span {color: var(--muted); font-size: .8rem; }
a.hs-exam:hover {background: var(--surface-2); }
.home-strip > :last-child {border-radius: 0 14px 14px 0; }
.orbit-flame {width: 60px; height: 60px; flex: none; overflow: visible; }
.orbit-flame .of-ring {fill: none; stroke: var(--line-2); stroke-width: 2; }
.orbit-flame.on .of-ring {stroke: var(--accent); opacity: .45; }
.orbit-flame.on .of-ring.front {opacity: .85; }
.orbit-flame .flame path {fill: var(--line-2); }
.orbit-flame .flame .core {fill: var(--surface); }
.orbit-flame.on .flame path {fill: url(#fl-g); }
.orbit-flame.on .flame .core {fill: #FFF3BF; }
.home-banks {display: grid; gap: .1rem; }
.hb-row {display: grid; grid-template-columns: auto minmax(0, 1fr) 120px auto; align-items: center; gap: .9rem; padding: .65rem .55rem; margin: 0 -.55rem; border-radius: 10px; color: inherit; text-decoration: none; }
.hb-row:hover {background: var(--surface-2); }
.hb-row .qb-ic {color: var(--faint); width: 16px; height: 16px; }
.hb-name {display: grid; min-width: 0; }
.hb-name b {font-weight: 600; font-size: .95rem; }
.hb-name small {color: var(--muted); font-size: .8rem; }
.sc-badge {display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font: 600 1rem var(--font-head); letter-spacing: -.02em; }
.sc-badge.sm {width: 36px; height: 36px; border-radius: 10px; font-size: .88rem; }
.study {padding-top: 1.4rem; padding-bottom: 3rem; display: grid; gap: 1.6rem; }
.sc-grid {display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1rem; }
.sc-card {display: grid; gap: .9rem; color: inherit; text-decoration: none; transition: border-color .12s, box-shadow .12s, transform .12s; }
.sc-card:hover {border-color: var(--accent); box-shadow: var(--shadow-sm, 0 4px 14px rgba(8, 61, 59, .08)); transform: translateY(-1px); }
.sc-top {display: flex; align-items: center; gap: .85rem; }
.sc-top > .qb-ic {margin-left: auto; color: var(--faint); }
.sc-card:hover .sc-top > .qb-ic {color: var(--accent); }
.sc-name {display: grid; min-width: 0; }
.sc-name b {font: 600 1.08rem var(--font-head); letter-spacing: -.01em; }
.sc-name small {color: var(--muted); font-size: .82rem; }
.sc-facts {display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }
.sc-facts b {color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.back-link {display: inline-flex; align-items: center; gap: .3rem; margin-bottom: .5rem; color: var(--muted); font-size: .85rem; text-decoration: none; }
.back-link:hover {color: var(--accent); }
.back-link .qb-ic {width: 15px; height: 15px; }
@media (max-width: 960px) {
.home-strip {grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-strip > .hs-streak {grid-column: 1 / -1; border-left: 0; border-bottom: 1px solid var(--line); }
.home-strip > :nth-child(2) {border-left: 0; }
}
@media (max-width: 600px) {
.home-hero {flex-direction: column; align-items: stretch; gap: 1rem; padding: 1.2rem; }
.home-hero .qb-btn {justify-content: center; }
.home-strip > * {padding: .9rem; }
.hs-streak {grid-template-columns: minmax(0, 1fr); }
.hs-week {justify-self: start; }
.hb-row {grid-template-columns: auto minmax(0, 1fr) auto; }
.hb-row .meter {display: none; }
}
.sc-badge.fold {background: var(--surface-2); color: var(--accent); }
.sc-badge.fold .qb-ic {width: 22px; height: 22px; }
.sc-folder {background: linear-gradient(var(--surface), var(--surface)) padding-box; box-shadow: 0 3px 0 -1px var(--surface), 0 3px 0 0 var(--line), 0 6px 0 -2px var(--surface), 0 6px 0 -1px var(--line); margin-bottom: 6px; }
.sc-folder:hover {box-shadow: 0 3px 0 -1px var(--surface), 0 3px 0 0 var(--accent), 0 6px 0 -2px var(--surface), 0 6px 0 -1px var(--line); }
.sc-badge.img {background: #fff; padding: 5px; border: 1px solid var(--line); overflow: hidden; }
.sc-badge.img img {width: 100%; height: 100%; object-fit: contain; display: block; }
.lib-list {padding: 0 1.1rem; }
.lib-row {display: block; padding: .85rem 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.lib-row:first-child {border-top: 0; }
.lr-main {display: flex; align-items: center; gap: .85rem; }
.lr-text {flex: 1; min-width: 0; display: grid; gap: .1rem; }
.lr-text b {font: 600 1rem var(--font-head); letter-spacing: -.01em; }
.lr-text small {color: var(--muted); font-size: .8rem; }
a.lib-row:hover .lr-text b {color: var(--accent); }
@media (max-width: 600px) {
.lib-list {padding: 0 .9rem; }
.lr-main {flex-wrap: wrap; }
}
.qn-add {display: inline-flex; align-items: center; gap: .45rem; margin: 1.4rem 0 .5rem; padding: .5rem .85rem; border: 1px dashed var(--line-2); border-radius: 10px; background: none; color: var(--muted); font: 500 .86rem var(--font-ui); cursor: pointer; }
.qn-add:hover {border-color: var(--accent); color: var(--accent); }
.qn-add .qb-ic, .qn-head .qb-ic {width: 16px; height: 16px; }
.qnote {margin: 1.4rem 0 .5rem; padding: .8rem 1rem .9rem; border: 1px solid var(--line); border-left: 3px solid var(--sand); border-radius: 10px; background: var(--surface); }
.qn-head {display: flex; align-items: center; gap: .45rem; margin-bottom: .45rem; color: var(--muted); }
.qn-head b {font: 600 .78rem var(--font-ui); text-transform: uppercase; letter-spacing: .07em; color: var(--ink); }
.qn-head small {margin-left: auto; font-size: .75rem; color: var(--faint); }
.qnote textarea {display: block; width: 100%; min-height: 70px; resize: none; overflow: hidden; border: 0; padding: 0; background: transparent; color: var(--ink); font: 1rem/1.6 var(--font-ui); outline: none; }
.rd-ic {display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--surface-2); color: var(--accent); }
.rd-ic .qb-ic {width: 18px; height: 18px; }
.rd-ic.done {background: var(--ok-soft); color: var(--ok); }
.lv-head {display: flex; align-items: center; gap: .9rem; margin-bottom: .6rem; }
.lv-head h1 {margin: 0; }
.lv-head p {margin: .1rem 0 0; }
.lv {display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.5rem; max-width: 1300px; margin: 0 auto; padding: 1.2rem 16px 4rem; align-items: start; }
.lv-video {margin: .6rem 0 .8rem; background: #000; border-radius: 12px; overflow: hidden; position: relative; aspect-ratio: 16 / 9; }
.lv-video video {display: block; width: 100%; height: 100%; background: #000; }
.lv-bar {display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.lv-bar h1 {font: 600 1.35rem/1.3 var(--font-head); margin: 0; }
.lv-ctl {display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.lv-ctl [data-skip] {width: auto; padding: 0 .55rem; font: 600 .8rem var(--font-ui); }
.lv-sp button {font-size: .78rem; padding: .3rem .5rem; }
.lv-notes {margin-top: 1.2rem; }
.lv-add {display: flex; gap: .5rem; align-items: center; }
.lv-add input {flex: 1; min-width: 0; }
.lv-at {flex: none; padding: .15rem .45rem; border: 0; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font: 600 .78rem var(--font-ui); font-variant-numeric: tabular-nums; cursor: pointer; }
.lv-nl {list-style: none; padding: 0; margin: .7rem 0 0; display: grid; gap: .1rem; }
.lv-nl li {display: flex; align-items: center; gap: .6rem; padding: .35rem 0; border-top: 1px solid var(--line); }
.lv-nl li:first-child {border-top: 0; }
.lv-nl li span {flex: 1; min-width: 0; overflow-wrap: anywhere; }
.lv-nl .qb-icbtn {width: 28px; height: 28px; opacity: .5; }
.lv-side {position: sticky; top: 72px; max-height: calc(100vh - 90px); overflow-y: auto; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.lv-side > b {display: block; font: 600 .72rem var(--font-ui); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .5rem; }
.lv-list {display: grid; gap: 2px; }
.lv-list a {display: flex; justify-content: space-between; gap: .6rem; padding: .5rem .6rem; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .88rem; }
.lv-list a small {color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.lv-list a:hover {background: var(--surface-2); }
.lv-list a.on {background: var(--accent-soft); color: var(--accent); font-weight: 600; }
@media (max-width: 960px) {
.lv {grid-template-columns: minmax(0, 1fr); }
.lv-side {position: static; max-height: none; }
.lv-video {border-radius: 8px; margin-left: -16px; margin-right: -16px; }
}
button.back-link {border: 0; background: none; padding: 0; cursor: pointer; font: inherit; font-size: .85rem; }
.gd-home {display: flex; align-items: center; gap: .6rem; padding: .7rem .8rem .7rem 1.1rem; border-left: 4px solid var(--accent); }
.gd-home a {flex: 1; display: flex; align-items: center; gap: .8rem; color: inherit; text-decoration: none; }
.gd-home a > .qb-ic {color: var(--accent); flex: none; }
.gd-home span {display: grid; }
.gd-home small {color: var(--muted); font-size: .82rem; }
@keyframes gpRing { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(1.35); } }
.hh-row {display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.home3 {display: grid; gap: 1rem; padding-top: 1.4rem; padding-bottom: 3rem; }
.dash {display: grid; gap: 1.25rem; align-items: start; }
.dash-w {grid-template-columns: minmax(0, 1fr) 320px; }
.dcol {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-content: start; min-width: 0; }
.dw {grid-column: 1 / -1; min-width: 0; display: flex; flex-direction: column; container-type: inline-size; }
.dw-body {flex: 1; display: flex; flex-direction: column; min-width: 0; }
.dw-body > .card {flex: 1; }
@container (max-width: 720px) {
.home-strip {grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-strip > .hs-streak {grid-column: 1 / -1; border-left: 0; border-bottom: 1px solid var(--line); }
.home-strip > :nth-child(2) {border-left: 0; }
}
@container (max-width: 560px) {
.home-hero {flex-direction: column; align-items: stretch; gap: 1rem; padding: 1.2rem; }
.home-hero .qb-btn {justify-content: center; }
}
.rs-row {display: flex; align-items: center; gap: .75rem; padding: .6rem 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.sec-mini + .rs-row {border-top: 0; padding-top: 0; }
.rs-row:hover b {color: var(--accent); }
@keyframes wel-bar { from { transform: scaleX(0); } }
@container (max-width: 200px) {
.dw-body > .card {padding: 1rem .85rem; }
}
@keyframes mdl-breathe { 50% { transform: scale(1.04); } }
@keyframes hc-drift { to { transform: scale(1.07); } }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
@keyframes st-grow { from { transform: scaleX(0); } }
.dw .meter i {animation: m-grow .9s cubic-bezier(.2, .7, .2, 1) both; transform-origin: left; }
@keyframes m-grow { from { transform: scaleX(0); } }
.dw .wk-d i {animation: pop .35s cubic-bezier(.2, .8, .2, 1.2) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes tw2 { 50% { opacity: .5; } }
@keyframes hg-fall { to { stroke-dashoffset: -10; } }
@keyframes hg-flip { from { transform: rotate(-180deg); } }
@keyframes ck-spin { to { transform: rotate(360deg); } }
@keyframes ck-blink { 50% { opacity: .2; } }
@keyframes bar-up { from { transform: scaleY(0); } }
@keyframes qd-tw { 0%, 70%, 100% { transform: scale(1) rotate(0); } 80% { transform: scale(1.3) rotate(20deg); } 90% { transform: scale(.9) rotate(-10deg); } }
@keyframes ring-in { from { stroke-dashoffset: var(--c); } }
@keyframes draw { from { stroke-dashoffset: 100; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes cal-pulse { 50% { outline-color: transparent; } }
@keyframes ct-slide { from { left: 0; } }
@keyframes needle { from { transform: rotate(-90deg); } }
@keyframes hb-pop { 40% { transform: scale(1.35); } }
@media (prefers-reduced-motion: reduce) {
.dw .meter i, .dw .wk-d i {animation: none !important; }
}
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes skl { from { background-position: 100% 0; } to { background-position: 0 0; } }
.qb-actions .grow {flex: 1; }
.rs-hero {display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.6rem; align-items: center; padding: 1.4rem; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.rs-ring {position: relative; width: 168px; height: 168px; }
.rs-ring svg {width: 100%; height: 100%; overflow: visible; }
.rr-t {fill: none; stroke: var(--surface-2); stroke-width: 10; }
.rr-v {fill: none; stroke: var(--accent); stroke-width: 10; stroke-linecap: round; stroke-dashoffset: var(--off); animation: ring-in 1.1s cubic-bezier(.2, .7, .2, 1) both; }
.rs-ring.ok .rr-v {stroke: var(--ok); }
.rs-ring.mid .rr-v {stroke: var(--flag); }
.rs-ring.low .rr-v {stroke: var(--bad); }
.rr-o {stroke: var(--ink); stroke-width: 3; stroke-linecap: round; opacity: .55; }
.rs-c {position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.rs-c b {font: 600 2.5rem/1 var(--font-head); letter-spacing: -.02em; }
.rs-c small {color: var(--muted); font-size: .8rem; margin-top: .3rem; }
.rs-main h1 {margin: 0 0 .2rem; font-size: 1.6rem; }
.rs-main > p {margin: 0 0 .5rem; }
.rs-line {font-size: .95rem; }
.rs-line b {font-weight: 600; }
.rs-key {display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; color: var(--muted); margin-left: .3rem; }
.rs-key i {width: 12px; height: 3px; border-radius: 2px; background: var(--ink); opacity: .55; }
.rs-pills {display: flex; flex-wrap: wrap; gap: .35rem; margin: .7rem 0 1rem; }
.rs-pills span {display: inline-flex; align-items: center; gap: .3rem; font: 600 .78rem var(--font-ui); padding: .3rem .65rem; border-radius: 99px; background: var(--surface-2); color: var(--muted); }
.rs-pills .qb-ic {width: 14px; height: 14px; }
.rs-pills .r-ok {background: var(--ok-soft); color: var(--ok); }
.rs-pills .r-bad {background: var(--bad-soft); color: var(--bad); }
.rs-act {display: flex; flex-wrap: wrap; gap: .5rem; }
.rs-grid {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.4rem; }
.rs-card {margin: 0; }
.rs-card h3 {margin: 0 0 .8rem; }
.rs-wide {grid-column: 1 / -1; }
.rs-vs {display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .5rem .7rem; align-items: center; font-size: .85rem; margin-bottom: .8rem; }
.rs-vs .meter {height: 10px; }
.rs-vs .meter i {background: var(--accent); animation: m-grow 1s cubic-bezier(.2, .7, .2, 1) both; transform-origin: left; }
.rs-vs .meter.oth i {background: var(--line-2); }
.rs-time {display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: .5rem; margin-bottom: .9rem; }
.rs-time div {display: grid; }
.rs-time b {font: 600 1.25rem var(--font-head); }
.rs-time small {color: var(--muted); font-size: .75rem; }
.rs-bars {position: relative; display: flex; align-items: flex-end; gap: 2px; height: 90px; padding-bottom: 1px; border-bottom: 1px solid var(--line); margin-bottom: .5rem; }
.rs-bars button {flex: 1 1 0; min-width: 2px; height: var(--h); border: 0; padding: 0; border-radius: 3px 3px 0 0; cursor: pointer; transform-origin: bottom; animation: bar-up .6s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * 15ms); }
.rs-bars .r-ok {background: color-mix(in srgb, var(--ok) 75%, var(--surface)); }
.rs-bars .r-bad {background: color-mix(in srgb, var(--bad) 75%, var(--surface)); }
.rs-bars .r-om {background: var(--line-2); }
.rs-bars button:hover {filter: brightness(.85); }
.rs-pace {position: absolute; left: 0; right: 0; height: 0; border-top: 2px dashed var(--ink); opacity: .35; pointer-events: none; }
.rs-sys {display: grid; gap: .45rem; }
.rs-row {display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) 3.5em; gap: .7rem; align-items: center; font-size: .86rem; }
.rs-row > span:first-child {overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-row b {text-align: right; font-weight: 600; font-size: .82rem; }
.rs-row .meter i {animation: m-grow .9s cubic-bezier(.2, .7, .2, 1) both; transform-origin: left; }
.results .meter.h0 i {background: var(--bad); }
.results .meter.h1 i {background: color-mix(in srgb, var(--bad) 55%, var(--flag)); }
.results .meter.h2 i {background: var(--flag); }
.results .meter.h3 i {background: color-mix(in srgb, var(--ok) 60%, var(--bright)); }
.results .meter.h4 i {background: var(--ok); }
@media (max-width: 760px) {
.rs-hero {grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 1.2rem 1rem; gap: 1rem; }
.rs-ring {width: 150px; height: 150px; }
.rs-pills, .rs-act {justify-content: center; }
.rs-grid {grid-template-columns: 1fr; }
.rs-row {grid-template-columns: minmax(0, 1fr) 90px 3em; }
}
@media (prefers-reduced-motion: reduce) {
.rr-v, .rs-vs .meter i, .rs-bars button, .rs-row .meter i {animation: none !important; }
}
@media (min-width: 761px) and (max-width: 1080px) {
.pills a {padding: .42rem .72rem; }
.pills a .qb-ic {display: none; }
}
.lv-course .lib-list + .lib-list {margin-top: .9rem; }
.lv-grid {margin-top: .2rem; }
.lv-subj .sc-name small {white-space: nowrap; }
.lv-next {margin-top: .2rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-flex; }
@media (max-width: 600px) {
.lv-grid {grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.lv-subj {padding: .8rem .85rem; gap: .55rem; min-width: 0; }
.lv-subj .sc-top {flex-direction: column; align-items: flex-start; gap: .45rem; }
.lv-subj .sc-top > .qb-ic, .lv-subj .sc-facts {display: none; }
.lv-subj .sc-badge {width: 32px; height: 32px; border-radius: 9px; }
.lv-subj .sc-badge .qb-ic {width: 16px; height: 16px; }
.lv-subj .sc-name b {font-size: .92rem; line-height: 1.25; }
.lv-subj .sc-name small {white-space: normal; font-size: .74rem; }
}
:root:not([data-pick="row"]) .lo-original .choice:not(.done) {cursor: default; }
:root:not([data-pick="row"]) .lo-original .choice:not(.done) .c-text {cursor: pointer; }
:root:not([data-pick="row"]) .lo-original .choice:hover:not(.done):not(.sel) .c-l {border-color: var(--line-2); color: var(--muted); }
:root:not([data-pick="row"]) .lo-original .choice .c-strike {display: none; }
:root[data-align="left"] .lo-original .p-body {margin-left: 0; }
:root[data-timer="off"] .lo-original .p-timer {display: none; }

/* ---- demo only ---- */
/* Demo-only styles (appended to assets/demo/demo.css by tools/demo/build-css.mjs). Uses the qb.css tokens. */
.dm-bar { background: var(--deep); color: #E3F1EF; font-size: .85rem; }
.dm-bar-in { max-width: 1180px; margin: 0 auto; padding: .45rem 16px; display: flex; align-items: center; gap: .75rem; }
.dm-tag { font: 600 .7rem var(--font-ui); letter-spacing: .09em; text-transform: uppercase; color: var(--sand); display: inline-flex; align-items: center; gap: .45rem; }
.dm-tag::before { content: ''; width: 14px; height: 2px; background: var(--sand); border-radius: 2px; }
.dm-txt { flex: 1; min-width: 0; }
.dm-home { color: #BFDCD9; text-decoration: none; white-space: nowrap; }
.dm-home:hover { color: #fff; }
.dm-bar .qb-btn-primary { background: var(--sand); border-color: var(--sand); color: var(--deep); font-weight: 600; }
:root[data-theme="dark"] .dm-bar { background: #0B2A29; }
@media (max-width: 720px) { .dm-txt, .dm-home { display: none; } .dm-tag { flex: 1; } }
body.in-test .dm-bar, body.in-test .topbar, body.in-test .tabbar { display: none; }
body.in-test { overflow: hidden; }

.dm-guide a .qb-ic { color: var(--accent); }
.dm-locked { opacity: .72; }
.dm-locked:hover { opacity: 1; }
.dm-cta .qb-btn { margin-top: .6rem; }
.todo li.done span { text-decoration: line-through; color: var(--muted); }
.todo li label { display: flex; align-items: center; gap: .55rem; cursor: pointer; padding: .3rem 0; }
.dm-tests table { width: 100%; }
.dm-tests td, .dm-tests th { padding: .6rem .8rem; text-align: left; border-bottom: 1px solid var(--line); }

.dm-obj { margin-top: 1rem; padding: .8rem 1rem; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 8px 8px 0; font-family: var(--font-ui); }
.dm-obj b { font-size: .75rem; letter-spacing: .07em; text-transform: uppercase; color: var(--accent); }
.dm-obj p { margin: .3rem 0 0; }
.dm-end { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; margin: 1rem 0; border-left: 3px solid var(--accent); }
.dm-end h2 { font: 600 1.1rem var(--font-head); margin: 0 0 .3rem; }
.dm-end p { margin: 0; max-width: 620px; }
.dm-end-act { display: flex; gap: .5rem; flex-wrap: wrap; }

.dm-video { color: #fff; background: #0B2A29; }
.dm-slide { position: absolute; inset: 0; padding: 7% 8%; cursor: pointer; background: #0B2A29; }
.dm-slide h2 { font: 600 clamp(1rem, 3.2vw, 1.9rem)/1.25 var(--font-head); margin: 0 0 1rem; color: #fff; }
.dm-slide ul { margin: 0; padding-left: 1.2em; font-size: clamp(.85rem, 2.2vw, 1.25rem); line-height: 1.7; color: #D7ECEA; }
.dm-slide li { animation: viewIn .35s var(--ease-out, ease-out) both; }
.dm-slide li::marker { color: var(--sand); }
.dm-mark { position: absolute; right: 4%; bottom: 16%; font-size: .75rem; color: #9CC9C5; letter-spacing: .06em; text-transform: uppercase; }
.dm-big { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--deep); display: grid; place-items: center; cursor: pointer; }
.dm-big .qb-ic { width: 28px; height: 28px; }
.dm-ctl { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: .6rem; padding: .5rem .8rem; background: rgba(0, 0, 0, .35); }
.dm-ctl input[type=range] { flex: 1; accent-color: var(--bright); }
.dm-cb { border: 0; background: none; color: #fff; cursor: pointer; display: grid; place-items: center; padding: 0; }
.dm-t { font-size: .8rem; font-variant-numeric: tabular-nums; }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dm-slide li { animation: none; } }

/* Home: every widget is full width; one column under 961 px (the app switches to its phone layout there) */
.dm-dash .dcol { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 960px) { .dm-dash { grid-template-columns: minmax(0, 1fr); } }

/* The demo still answers with a click anywhere on an answer and crosses out with its button; the app (2 Dec 2026)
   answers with the letter and crosses out by clicking the text. Keep the demo's own behaviour until demo.js follows. */
:root:not([data-pick="row"]) .lo-original .choice:not(.done) { cursor: pointer; }
:root:not([data-pick="row"]) .lo-original .choice:hover:not(.done):not(.sel) .c-l { border-color: var(--accent); color: var(--accent); }
:root:not([data-pick="row"]) .lo-original .choice .c-strike { display: inline-block; }
