.site-header { position: static; }
.app-frame { --app-gutter: 20px; max-inline-size: 44rem; margin-inline: auto; }
.app { max-inline-size: none; min-inline-size: 0; }
.app-nav-box:empty { display: none; }
.app-nav-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block-end: 16px; }
.app-switch {
display: inline-flex; align-items: center; gap: 8px; min-block-size: 44px; max-inline-size: 70%; padding-inline: 16px;
border-radius: 999px; background: var(--surface-muted); color: var(--text); font-size: 0.9375rem; font-weight: 600; text-decoration: none;
}
.app-switch span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-switch:hover { background: var(--border); color: var(--text); }
.app-exam-tabs { max-inline-size: 44rem; margin-inline: auto; }
.app-exam-tabs:empty { display: none; }
.app-tabs {
position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 30; list-style: none; margin: 0;
display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px;
padding: 8px 12px max(10px, env(safe-area-inset-bottom)); background: var(--surface); border-block-start: 1px solid var(--border);
}
.app-tabs a {
display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-block-size: 56px;
border-radius: 16px; color: var(--text-muted); font-size: 0.8125rem; font-weight: 500; line-height: 1.4; text-decoration: none;
}
.app-tabs a:hover { color: var(--text); }
.app-tabs a[aria-current="page"] { background: var(--block); color: var(--on-block); font-weight: 600; }
body:has(.app-tabs) .site-footer { padding-block-end: 104px; }
@media (min-width: 600px) { .app-frame { --app-gutter: 0px; } }
@media (min-width: 1024px) {
.app-frame.has-nav { max-inline-size: 76rem; display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 40px; align-items: start; }
.app-nav-box { position: sticky; inset-block-start: 16px; min-inline-size: 0; }
.app-nav { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.app-nav-top { flex-direction: column; align-items: stretch; gap: 4px; margin: 0; }
.app-switch { max-inline-size: none; min-inline-size: 0; justify-content: space-between; min-block-size: 48px; }
.app-exam-tabs.has-nav { max-inline-size: 76rem; }
.app-tabs { position: static; grid-template-columns: minmax(0, 1fr); padding: 0; background: none; border: 0; }
.app-tabs a { flex-direction: row; justify-content: flex-start; gap: 12px; min-block-size: 52px; padding-inline: 16px; font-size: 0.9375rem; }
body:has(.app-tabs) .site-footer { padding-block-end: 28px; }
}
.app-loading { color: var(--text-muted); padding-block: 24px; }
.app .app-title { margin: 0 0 12px; font-size: clamp(1.5rem, 1.25rem + 1.4vw, 2.25rem); line-height: 1.35; outline: none; }
.app-title:focus { outline: none; }
.app-screen > .lead { margin: 0 0 16px; max-inline-size: 44rem; font-size: 0.9375rem; line-height: 1.8; }
.app-codes { margin: -6px 0 12px; font-size: 0.75rem; letter-spacing: 0.04em; color: var(--text-subtle); text-align: start; }
.app-back { margin-block: 28px 0; font-size: 0.875rem; }
.app-back a { display: inline-flex; align-items: center; min-block-size: 44px; font-weight: 600; }
.app-note { margin: 0; color: var(--text-muted); font-size: 0.8125rem; min-block-size: 1.7em; }
.app-sub { color: var(--text-muted); font-size: 0.8125rem; font-weight: 400; }
.num { unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.app-block { margin-block-start: 30px; }
.app-block > h2 { margin: 0 0 14px; font-size: 1.375rem; }
.app-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-block-end: 14px; }
.app-block-head h2 { margin: 0; font-size: 1.375rem; }
.app-more { display: inline-flex; align-items: center; min-block-size: 44px; font-size: 0.875rem; font-weight: 600; text-decoration: none; }
.app-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block: 12px 0; }
.app-actions:empty { display: none; }
.btn-sm { min-block-size: 44px; padding: 8px 18px; font-size: 0.875rem; }
.btn:disabled { opacity: 0.55; cursor: default; }
.is-correct { color: var(--correct-text); }
.is-wrong { color: var(--wrong-text); }
.is-skipped { color: var(--text-muted); }
.app-link-button {
display: inline-flex; align-items: center; min-block-size: 44px; padding: 0;
background: none; border: 0; font: inherit; font-size: 0.875rem; font-weight: 600;
color: var(--link); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; text-align: start;
}
.app-link-button:hover { color: var(--link-hover); }
.app-pill {
display: inline-flex; align-items: center; gap: 8px; min-block-size: 44px; padding: 0 16px; border: 0; border-radius: 999px;
background: var(--surface-muted); color: var(--text); font: inherit; font-size: 0.875rem; font-weight: 600; text-decoration: none; cursor: pointer;
}
.app-pill:hover { background: var(--border); color: var(--text); }
.app-pill:disabled { opacity: 0.6; cursor: default; }
.app-pill[aria-pressed="true"] { background: var(--block); color: var(--on-block); }
.app-input {
font: inherit; color: var(--text); background: var(--surface);
border: 1px solid var(--border-strong); min-block-size: 48px; padding: 8px 14px; max-inline-size: 100%;
}
textarea.app-input { inline-size: 100%; resize: vertical; }
.app-input-num { inline-size: 7rem; }
.app-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.app-toast {
position: fixed; inset-block-end: 100px; inset-inline: 16px; z-index: 50;
max-inline-size: 28rem; margin-inline: auto; padding: 12px 16px;
background: var(--block); color: var(--on-block); border-radius: var(--radius-card); font-size: 0.875rem;
opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity 0.2s, transform 0.2s;
}
.app-toast.is-on { opacity: 1; transform: none; }
.app-guest { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-block: 0 12px; padding: 14px 16px; border-radius: var(--radius-paper); background: var(--surface-muted); }
.app-guest p { margin: 0; flex: 1 1 260px; font-size: 0.8125rem; line-height: 1.7; color: var(--text-muted); }
.app-guest .btn { background: var(--surface); }
.home-hint { max-inline-size: 44rem; margin: 0 auto 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
padding: 10px 16px; background: var(--surface-muted); border-radius: var(--radius-paper); font-size: 0.875rem; }
.home-hint p { margin: 0; }
.home-hint-close { flex: none; }
.app-paid { max-inline-size: 44rem; margin-inline: auto; }
.td-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.td-dark { padding: 24px 22px; border-radius: 28px; background: var(--block); color: var(--on-block); display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-content: start; }
.td-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.td-label { margin: 0 0 4px; font-size: 0.8125rem; color: var(--block-muted); }
.td-big { margin: 0; font-family: var(--font-heading); font-size: 3.75rem; font-weight: 800; line-height: 1.15; }
.td-none { margin: 0; font-family: var(--font-heading); font-size: 1.375rem; font-weight: 800; line-height: 1.5; }
.td-days { text-align: end; }
.td-days-n { margin: 0; font-family: var(--font-heading); font-size: 1.75rem; font-weight: 800; line-height: 1.3; color: var(--block-accent); white-space: nowrap; }
.td-how { margin: 0; font-size: 0.9375rem; line-height: 1.8; color: var(--block-muted); }
.td-chart { position: relative; block-size: 96px; display: flex; align-items: flex-end; gap: 14px; border-block-end: 1px solid var(--block-track); }
.td-bar { flex: 1; max-inline-size: 5.5rem; border-radius: 10px 10px 0 0; background: var(--block-track); }
.td-bar.is-last { background: var(--surface); }
.td-line { position: absolute; inset-inline: 0; border-block-start: 2px dashed var(--block-accent); }
.td-line.is-level { border-block-start-width: 1px; opacity: 0.5; }
.td-labels { display: flex; gap: 14px; margin-block-start: -8px; font-size: 0.75rem; line-height: 1.5; color: var(--block-muted); }
.td-labels span { flex: 1; max-inline-size: 5.5rem; min-inline-size: 0; text-align: center; overflow-wrap: anywhere; }
.td-pass { margin: 0; font-size: 0.8125rem; font-weight: 600; color: var(--block-accent); }
.td-dark .hint { margin: 0; font-size: 0.8125rem; color: var(--block-muted); }
.td-date { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 12px; padding-block-start: 12px; border-block-start: 1px solid var(--block-track); font-size: 0.8125rem; }
.td-date-line { margin: 0; flex: 1 1 12rem; line-height: 1.7; color: var(--block-muted); }
.td-link { min-block-size: 44px; padding: 0 2px; border: 0; background: none; color: var(--on-block); font: inherit; font-size: 0.8125rem; font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.td-date .app-plan-form { flex: 1 1 100%; display: grid; gap: 6px; }
.td-date .app-plan-form label { font-weight: 600; }
.td-date .app-input { flex: 1 1 9rem; min-inline-size: 0; border-color: var(--surface); }
.btn.td-btn { background: var(--surface); color: var(--text); }
.td-task { padding: 22px; border-radius: 28px; background: var(--sun); color: var(--on-sun); display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: start; }
.td-task-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 0.8125rem; font-weight: 500; }
.td-task .td-task-label { margin: 0; font-family: var(--font-sans); font-size: 0.875rem; font-weight: 600; line-height: 1.6; color: var(--on-sun); }
.td-task-title { margin: 0; font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; line-height: 1.45; }
.td-task-sub { margin: 0; font-size: 0.9375rem; line-height: 1.7; }
.td-task .btn { margin-block-start: 4px; }
@media (min-width: 900px) {
.td-top { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.td-dark, .td-task { padding: 28px; border-radius: var(--radius-block); }
.td-big { font-size: 4.5rem; }
.td-task-title { font-size: 1.875rem; }
.td-task .btn { margin-block-start: auto; }
.td-task { grid-template-rows: auto auto auto 1fr; }
}
.app-banner { margin-block-start: 12px; padding: 12px 16px; border-radius: var(--radius-paper); background: var(--link-soft); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; font-size: 0.875rem; }
.app-banner p { margin: 0; }
.app-modes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.app-mode {
display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 8px; inline-size: 100%; block-size: 100%; min-block-size: 116px;
padding: 16px; border: 0; border-radius: 22px; background: var(--surface-muted); color: var(--text); font: inherit; text-align: start; text-decoration: none; cursor: pointer;
}
.app-mode:hover { background: var(--border); color: var(--text); }
.app-mode-title { font-family: var(--font-heading); font-size: 1.0625rem; font-weight: 700; line-height: 1.5; }
.app-mode-desc { font-size: 0.8125rem; line-height: 1.6; color: var(--text-muted); }
.app-mode.is-dark { background: var(--link); color: var(--on-block); }
.app-mode.is-dark:hover { background: var(--link-hover); color: var(--on-block); }
.app-mode.is-dark .app-mode-desc { color: var(--link-soft); }
.app-lock { padding: 2px 10px; border-radius: 999px; background: var(--surface); color: var(--text-muted); font-size: 0.75rem; font-weight: 600; }
@media (min-width: 768px) { .app-modes { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); } }
.app-fold { margin-block-start: 30px; border-block: 1px solid var(--border); }
.app-fold > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-block-size: 56px; cursor: pointer; list-style: none; }
.app-fold > summary::-webkit-details-marker { display: none; }
.app-fold > summary::after { content: "+" / ""; font-size: 1.25rem; color: var(--text-muted); }
.app-fold[open] > summary::after { content: "−" / ""; }
.app-fold > summary h2 { margin: 0; font-family: var(--font-sans); font-size: 1rem; font-weight: 600; line-height: 1.6; }
.app-fold[open] { padding-block-end: 16px; }
.app-schedule .hint { margin: 0 0 10px; font-size: 0.8125rem; }
.app-schedule-days { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.app-schedule-days li { padding: 12px 14px; border-radius: var(--radius-card); background: var(--surface); font-size: 0.9375rem; line-height: 1.7; }
.app-schedule-days li.is-today { background: var(--link-soft); }
.app-schedule-days strong { margin-inline-end: 6px; }
.app-chip-now { display: inline-block; margin-inline-end: 6px; padding: 1px 10px; border-radius: 999px; background: var(--block); color: var(--on-block); font-size: 0.75rem; font-weight: 600; }
.app-schedule-ends { margin: 0 0 10px; font-size: 0.875rem; font-weight: 600; }
.app-free-steps li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.app-free-steps a { display: inline-flex; align-items: center; min-block-size: 44px; }
.app-free-steps .app-link-button { display: block; padding-block: 10px; font-size: inherit; line-height: 1.6; }
.app-step-n { flex: none; display: grid; place-items: center; inline-size: 32px; block-size: 32px; border-radius: 999px; background: var(--block); color: var(--on-block); font-family: var(--font-heading); font-size: 0.875rem; font-weight: 800; }
.app-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.app-bar-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.app-bar-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 0.9375rem; line-height: 1.6; }
.app-bar-label { min-inline-size: 0; font-weight: 500; }
.app-bar-value { flex: none; white-space: nowrap; font-weight: 600; }
.app .app-bar { display: block; block-size: 8px; border-radius: 999px; background: var(--surface-muted); overflow: hidden; }
.app-bar-fill { display: block; block-size: 100%; border-radius: 999px; background: var(--block); }
.app-bar-row.is-low .app-bar-fill { background: var(--wrong-text); }
.app-access { margin-block-start: 30px; padding-block-start: 12px; border-block-start: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; font-size: 0.875rem; color: var(--text-muted); }
.app-access p { margin: 0; }
.app .app-buy { grid-template-columns: minmax(0, 1fr); }
.app .app-buy .plan, .app .app-buy .plan + .plan { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.app .app-buy .plan + .plan { gap: 0; }
.app .app-buy .buy-price .price-main { font-family: var(--font-heading); font-size: 2.25rem; font-weight: 800; line-height: 1.2; color: var(--text); }
.app .app-buy .plan .btn { margin: 0; padding-inline: 16px; font-size: 1.0625rem; }
.app .app-buy .buy-alt { inline-size: 100%; border: 0; background: none; color: var(--link); font: inherit; font-size: 0.875rem; font-weight: 600; cursor: pointer; }
.app .app-buy .buy-alt .price-main { font: inherit; color: inherit; }
.app .app-buy .buy-fine { text-align: center; }
.app-buy-fit { margin: 0; padding: 10px 14px; border-radius: var(--radius-card); background: var(--surface); font-size: 0.8125rem; font-weight: 600; line-height: 1.7; }
.app-free-first { margin: 0 0 12px; }
.app-have-pass { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-block: 16px 0; font-size: 0.875rem; }
.app-prompt { margin-block-start: 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.app-prompt h2 { margin: 0; font-size: 1.25rem; }
.app-prompt-no { margin: 0; text-align: center; }
.app-exams { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.app-exam-link { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 16px; border-radius: var(--radius-paper); background: var(--surface); color: var(--text); text-decoration: none; }
.app-exam-link:hover { background: var(--surface-muted); color: var(--text); }
.app-exam-name { margin: 0; font-size: 1rem; line-height: 1.6; }
.app-owned { justify-self: start; padding: 1px 10px; border-radius: 999px; background: var(--link-soft); color: var(--link-strong); font-size: 0.75rem; font-weight: 600; }
.app-exam-codes { margin: 0; font-size: 0.75rem; letter-spacing: 0.04em; color: var(--text-subtle); text-align: start; }
.app-exam-facts { margin: 0; font-size: 0.8125rem; color: var(--text-muted); }
.app-search-label { display: block; margin-block-end: 6px; font-size: 0.875rem; font-weight: 600; }
.app-catalog .app-input { inline-size: 100%; border: 0; border-radius: 999px; min-block-size: 52px; padding-inline: 18px; }
.app-search-results:not(:empty), .app-cats { margin-block-start: 16px; }
.app-cat { border-block-end: 1px solid var(--border); }
.app-cat summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-block-size: 56px; cursor: pointer; list-style: none; font-size: 1rem; font-weight: 600; }
.app-cat summary::-webkit-details-marker { display: none; }
.app-cat summary::after { content: "+" / ""; font-size: 1.25rem; font-weight: 400; color: var(--text-muted); }
.app-cat[open] summary::after { content: "−" / ""; }
.app-cat-n { margin-inline-start: auto; font-size: 0.8125rem; font-weight: 600; color: var(--text-muted); }
.app-cat .app-exams { margin-block-end: 14px; }
@media (min-width: 900px) { .app-exams { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.app-units { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.app-unit { padding: 18px; border-radius: var(--radius-paper); background: var(--surface); display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-content: start; }
.app-unit h3 { margin: 0; font-size: 1.0625rem; }
.app-unit-facts { margin: -6px 0 0; font-size: 0.8125rem; color: var(--text-muted); }
.app-unit .app-bar-top { font-size: 0.8125rem; }
.app-unit .app-actions { margin: 4px 0 0; }
.app-unit .btn-sm { padding-inline: 14px; }
@media (min-width: 768px) { .app-units { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.app-counts { margin: 0 0 4px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.app-counts > div { display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: 20px; background: var(--surface-muted); }
.app-counts dt { order: 2; font-size: 0.8125rem; line-height: 1.6; color: var(--text-muted); }
.app-counts dd { order: 1; margin: 0; font-family: var(--font-heading); font-size: 1.75rem; font-weight: 800; line-height: 1.3; }
.app-trend { display: block; inline-size: 100%; max-inline-size: 32rem; block-size: auto; background: var(--surface); border-radius: var(--radius-paper); }
.app-trend-pass { stroke: var(--border-strong); stroke-width: 1.5; stroke-dasharray: 4 4; }
.app-trend-line { fill: none; stroke: var(--block); stroke-width: 2.5; stroke-linejoin: round; }
.app-trend-pass-dot { fill: var(--correct-border); }
.app-trend-fail-dot { fill: var(--wrong-border); }
.app-trend-dot { fill: var(--block); }
.app-trend-list { margin-block: 10px 0; padding-inline-start: 1.25rem; font-size: 0.875rem; color: var(--text-muted); }
.app-form fieldset { margin: 0 0 14px; padding: 10px 16px 12px; border: 0; border-radius: var(--radius-paper); background: var(--surface); }
.app-form legend { float: inline-start; inline-size: 100%; padding: 0; margin-block-end: 2px; font-weight: 600; }
.app-form label[for] { font-weight: 600; }
.app-check { clear: both; display: flex; align-items: center; gap: 10px; min-block-size: 44px; font-size: 0.9375rem; cursor: pointer; }
.app-check input { flex: none; inline-size: 20px; block-size: 20px; accent-color: var(--block); }
.app-weak { margin: 0 0 16px; padding-inline-start: 1.5rem; font-size: 0.9375rem; }
.app-weak li { margin-block-end: 6px; }
.app-runner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.run-top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.run-close { flex: none; display: inline-flex; align-items: center; justify-content: center; inline-size: 44px; block-size: 44px; border-radius: 999px; background: var(--surface-muted); color: var(--text); }
.run-close:hover { background: var(--border); color: var(--text); }
.app .app-runner-title { flex: 1; min-inline-size: 0; margin: 0; font-family: var(--font-sans); font-size: 0.9375rem; font-weight: 600; line-height: 1.6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.run-top.is-mock {
position: sticky; inset-block-start: 0; z-index: 5; margin-inline: calc(-1 * var(--app-gutter)); padding: 12px 20px 16px;
border-radius: 0 0 24px 24px; background: var(--block); color: var(--on-block); display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px;
}
.run-pill { white-space: nowrap; min-block-size: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--block-track); color: var(--on-block); font: inherit; font-size: 0.875rem; font-weight: 600; cursor: pointer; }
.app-clock { display: flex; align-items: center; gap: 10px; }
.app-timer { margin: 0; font-family: var(--font-heading); font-size: 1.625rem; font-weight: 800; line-height: 1.3; color: var(--block-accent); }
.app-timer.is-low { padding-inline: 10px; border-radius: 999px; background: var(--wrong-bg); color: var(--wrong-text); }
.app-timer-big { display: inline-block; margin: 0 0 12px; padding: 6px 18px; border-radius: 999px; background: var(--block); font-size: 1.25rem; }
.run-top-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 0.8125rem; color: var(--block-muted); }
.app-progress { display: block; block-size: 6px; border-radius: 999px; background: var(--progress-track); overflow: hidden; }
.app-progress span { display: block; block-size: 100%; border-radius: 999px; background: var(--progress-fill); }
.run-top.is-mock .app-progress { background: var(--block-track); }
.run-top.is-mock .app-progress span { background: var(--surface); }
@media (min-width: 600px) { .run-top.is-mock { inset-block-start: 8px; border-radius: 24px; } }
.app .q { padding: 0; background: none; border-radius: 0; }
.q-head .app-progress { flex: 1; }
.q-head.is-wide { flex-wrap: wrap; row-gap: 8px; }
.q-head.is-wide .q-segs { order: 3; flex: 1 1 100%; }
.q-head .q-meta { flex: 1; }
.opt-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: stretch; }
.opt.is-selected { border-color: var(--option-selected-border); background: var(--option-selected-bg); font-weight: 600; }
.opt.is-selected .opt-key { background: var(--block); border-color: var(--block); color: var(--on-block); }
.opt.is-struck .opt-text { text-decoration: line-through; color: var(--text-subtle); }
.opt-strike { min-inline-size: 44px; min-block-size: 44px; padding-inline: 4px; border: 0; border-radius: var(--radius-card); background: var(--surface-muted); color: var(--text-muted); font: inherit; font-size: 0.75rem; cursor: pointer; }
.opt-strike:hover { background: var(--border); color: var(--text); }
.opt-strike-icon { text-decoration: line-through; font-weight: 600; }
.opt-strike[aria-pressed="true"] { background: var(--link-soft); color: var(--link-strong); }
.q-after .q-result { font-weight: 600; }
.run-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.run-tools:empty { display: none; }
.q-report-box:has(form) { flex: 1 1 100%; }
.q-report-form { display: grid; gap: 8px; }
.q-report-form .app-actions { margin: 0; }
.app-grid-wrap { padding: 0 16px; border-radius: var(--radius-paper); background: var(--surface-muted); }
.app-grid-wrap summary { min-block-size: 48px; display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 0.875rem; font-weight: 600; }
.app-grid { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.app-cell {
position: relative; display: inline-flex; align-items: center; justify-content: center; inline-size: 100%; min-block-size: 44px; padding: 0;
border: 0; border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer;
}
.app-cell.is-answered { background: var(--link-soft); color: var(--link-strong); }
.app-cell.is-flagged::after { content: ""; position: absolute; inset-block-start: 4px; inset-inline-end: 4px; inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--sun); }
.app-cell.is-right { background: var(--correct-bg); color: var(--correct-text); }
.app-cell.is-wrong { background: var(--wrong-bg); color: var(--wrong-text); }
.app-cell.is-right::before, .app-cell.is-wrong::before { position: absolute; inset-block-start: 2px; inset-inline-start: 5px; font-size: 0.6875rem; line-height: 1; }
.app-cell.is-right::before { content: "✓" / ""; }
.app-cell.is-wrong::before { content: "✕" / ""; }
.app-cell.is-current { background: var(--block); color: var(--on-block); }
.app-legend { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.8125rem; color: var(--text-muted); }
.app-legend li { display: inline-flex; align-items: center; gap: 6px; }
.app-cell-key { inline-size: 18px; min-block-size: 18px; block-size: 18px; border-radius: 5px; cursor: default; }
.app-cell-key.is-unanswered { box-shadow: inset 0 0 0 1px var(--border-strong); }
.app-cell-key.is-flagged::after { inset-block-start: 2px; inset-inline-end: 2px; inline-size: 6px; block-size: 6px; }
.app-grid-wrap .app-actions { margin: 0 0 14px; }
.app-confirm { padding: 20px; border-radius: var(--radius-block); background: var(--surface-muted); }
.app-confirm h2 { margin: 0 0 8px; font-size: 1.25rem; outline: none; }
.app-confirm ul { margin: 0 0 8px; padding-inline-start: 1.25rem; font-size: 0.9375rem; }
.app-confirm .hint { margin: 0; font-size: 0.8125rem; }
.app-confirm .btn-secondary { background: var(--surface); }
@media (max-width: 419px) { .run-pill { padding-inline: 12px; font-size: 0.8125rem; } .app-timer { font-size: 1.375rem; } .app-clock { gap: 8px; } }
.app .run-foot {
position: sticky; inset-block-end: 0; z-index: 4; margin: 0; margin-inline: calc(-1 * var(--app-gutter));
padding: 12px 20px max(12px, env(safe-area-inset-bottom)); background: var(--surface); border-block-start: 1px solid var(--border);
}
.app .run-foot.is-mock { gap: 10px; }
.run-foot.is-mock .btn { padding-inline: 14px; }
.run-foot.is-mock .btn-primary { flex: 1; }
.btn.run-prev { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 2px var(--text); }
.btn.run-prev:disabled { box-shadow: inset 0 0 0 2px var(--border); color: var(--text-subtle); opacity: 1; }
@media (min-width: 600px) { .app .run-foot { border-radius: var(--radius-paper); border: 0; } }
.app-report { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.app-report > * { margin-block: 0; }
.app-report .res-top { justify-content: flex-start; }
.app-report .res-sun .run-close { background: color-mix(in srgb, var(--surface) 60%, transparent); }
.app .res-sun .res-label { flex: 1; min-inline-size: 0; margin: 0; font-family: var(--font-sans); font-size: 0.9375rem; font-weight: 600; line-height: 1.6; color: var(--on-sun); }
.res-exam, .res-kind { margin: 0; font-size: 0.8125rem; line-height: 1.6; }
.res-kind { font-weight: 600; }
.res-pass { margin: 0; font-size: 0.9375rem; font-weight: 700; }
.res-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.res-tile { display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: 20px; background: var(--surface-muted); }
.res-tile strong { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; line-height: 1.3; }
.res-tile span { font-size: 0.8125rem; line-height: 1.6; color: var(--text-muted); }
.app-report .not-official, .app-report .app-scaled-score { margin: 0; font-size: 0.8125rem; }
.app-report .app-block { margin-block-start: 14px; }
.res-next { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; justify-items: center; }
.app-report .share-row { padding: 0; }
.app-review { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.app-review-item, .app-review-item.is-correct, .app-review-item.is-wrong, .app-review-item.is-skipped { padding: 0 16px; border-radius: var(--radius-paper); background: var(--surface); color: var(--text); }
.app-review-item summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 12px; min-block-size: 56px; padding-block: 6px; cursor: pointer; font-size: 0.9375rem; font-weight: 600; }
.app-review-mark.is-correct { color: var(--correct-text); }
.app-review-mark.is-wrong { color: var(--wrong-text); }
.app-review-letters { font-size: 0.8125rem; font-weight: 400; color: var(--text-muted); }
.app-review-body { padding-block: 4px 16px; }
.app-filter { margin-block: 0 12px; }
.app-chips { margin-block: 0 16px; }
.app-chips ul { list-style: none; margin: 0; padding: 0 0 4px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.app-chip { display: inline-flex; align-items: center; min-block-size: 44px; padding-inline: 16px; border-radius: 999px; background: var(--surface-muted); color: var(--text); font-size: 0.875rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.app-chip:hover { background: var(--border); color: var(--text); }
.app-chip[aria-current="page"] { background: var(--block); color: var(--on-block); }
.app-notes { padding: 20px; border-radius: var(--radius-block); background: var(--surface); }
.app-notes .q-head { justify-content: space-between; }
.app-notes h2 { margin-block: 20px 8px; font-size: 1.125rem; }
.app-notes .q-head + h2 { margin-block-start: 8px; }
.app-notes p, .app-notes li { font-size: 0.9375rem; line-height: 1.9; }
.app-notes ul { margin: 0; padding-inline-start: 1.25rem; }
.app-notes li { margin-block-end: 6px; }
.app-cards-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.app-cards-head .q-progress { margin: 0; }
.app-flashcard {
display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
inline-size: 100%; min-block-size: 240px; margin-block: 12px; padding: 24px 20px; border: 0; border-radius: var(--radius-block);
background: var(--surface); color: var(--text); font: inherit; font-size: 1.125rem; font-weight: 600; line-height: 1.8; text-align: center; cursor: pointer;
}
.app-flashcard.is-back { background: var(--link-soft); font-weight: 500; }
.app-flashcard-hint { font-size: 0.8125rem; font-weight: 400; color: var(--text-muted); }
.app-cards-nav { display: flex; gap: 10px; margin-block-end: 12px; }
.app-cards-nav .btn { flex: 1; min-block-size: 52px; }
@media (min-width: 768px) { .app-flashcard { min-block-size: 300px; font-size: 1.25rem; } }
.tex { direction: ltr; unicode-bidi: isolate; }
.tex .katex { font-size: 1.08em; }
.tex-d { display: block; margin: 0.6em 0; overflow-x: auto; overflow-y: hidden; text-align: center; }
