@charset "UTF-8";
:root {
  color-scheme: light;
  --ink: #17243a;
  --ink-soft: #2d3a4d;
  --muted: #778191;
  --line: #e3e5e8;
  --line-strong: #cdd2d8;
  --paper: #f5f4f0;
  --card: #fffefa;
  --white: #fff;
  --green: #18815f;
  --green-soft: #e7f4ed;
  --green-border: #bfe1d0;
  --red: #bd4c51;
  --red-soft: #fbebea;
  --red-border: #f0c9c7;
  --amber: #9a6518;
  --amber-soft: #fff3dc;
  --brand: #177861;
  --brand-dark: #105d4b;
  --brand-soft: #e7f3ef;
  --radius: 18px;
  --shadow: 0 18px 54px rgba(23, 36, 58, .07), 0 3px 10px rgba(23, 36, 58, .025);
  font-family: Tahoma, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
}
* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; background: var(--paper); }
body { min-width: 320px; margin: 0; color: var(--ink); background: var(--paper); }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(23, 120, 97, .35); outline-offset: 3px; }
[hidden] { display: none !important; }
.page-frame { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.topbar { min-height: 86px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(23,36,58,.10); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 38px; height: 38px; border-radius: 12px 12px 12px 4px; background: var(--ink); display: grid; place-items: center; position: relative; overflow: hidden; }
.brand-mark::before { content: ""; position: absolute; width: 26px; height: 26px; inset-inline-end: -10px; top: -11px; border: 1px solid rgba(255,255,255,.26); border-radius: 50%; }
.brand-mark span { position: absolute; width: 11px; height: 18px; border: 2px solid #e6b95d; border-left-color: transparent; border-bottom-color: transparent; border-radius: 2px 9px 2px 2px; transform: rotate(19deg); }
.brand-mark span:last-child { width: 8px; height: 12px; border-color: #75b79e; border-left-color: transparent; border-bottom-color: transparent; transform: rotate(199deg) translate(-3px, -1px); }
.brand-copy { display: flex; flex-direction: column; gap: 3px; }
.brand-copy strong { font-size: 17px; line-height: 1; letter-spacing: -.4px; }
.brand-copy small { color: var(--muted); font-size: 10px; }
.topbar-meta { display: flex; align-items: center; gap: 22px; }
.course-chip, .offline-indicator { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; }
.course-chip { color: #525f6e; background: rgba(255,255,255,.55); border: 1px solid #e2e4e5; padding: 8px 12px; border-radius: 99px; }
.chip-dot { width: 6px; height: 6px; background: var(--brand); border-radius: 50%; }
.offline-indicator { color: #637367; }
.status-ring { width: 7px; height: 7px; border-radius: 50%; background: #4c9e73; box-shadow: 0 0 0 3px rgba(76,158,115,.12); }
.offline-indicator.is-offline .status-ring { background: #c28035; box-shadow: 0 0 0 3px rgba(194,128,53,.12); }
.offline-indicator.is-offline { color: #89632f; }
.setup-view { padding-bottom: 16px; }
.hero { min-height: 330px; padding: 54px 46px 40px; margin-top: 25px; display: grid; grid-template-columns: minmax(0, 1.48fr) minmax(245px, .72fr); align-items: center; gap: 50px; position: relative; overflow: hidden; border: 1px solid rgba(23,36,58,.07); border-radius: 4px 24px 24px 24px; background-color: #f1f0eb; background-image: linear-gradient(rgba(23,36,58,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(23,36,58,.035) 1px, transparent 1px); background-size: 34px 34px; }
.hero::after { content: ""; pointer-events: none; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(241,240,235,.96) 0%, rgba(241,240,235,.92) 48%, rgba(241,240,235,.70) 100%); }
.hero-copy, .hero-note { position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: #5d6b72; font-size: 10px; letter-spacing: .1px; }
.eyebrow-line { width: 22px; height: 1px; background: #bf8f38; }
.eyebrow-dot { color: #d2a448; }
.hero h1 { margin: 23px 0 13px; max-width: 510px; font-size: clamp(35px, 4.2vw, 49px); line-height: 1.35; letter-spacing: -1.55px; font-weight: 800; }
.hero h1 span { color: var(--brand); }
.course-credit { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; color: #68747c; font-size: 10px; line-height: 1.7; }
.course-credit-course { color: #4e6c5c; font-weight: 700; }
.course-credit-dot { width: 4px; height: 4px; flex: 0 0 4px; border-radius: 50%; background: #c59a4c; }
.course-credit-instructor { color: #64716f; }
.hero-description { max-width: 495px; margin: 0; color: #626d79; font-size: 13px; line-height: 1.95; }
.hero-facts { margin-top: 24px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: #65707a; font-size: 10px; }
.hero-facts strong { color: var(--ink); font-size: 14px; margin-inline-end: 2px; }
.fact-divider { width: 1px; height: 13px; background: #cdd0cf; }
.offline-fact { display: inline-flex; align-items: center; gap: 5px; color: #537260; }
.tiny-check { display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; color: white; background: #5a9775; font-size: 9px; }
.hero-note { padding: 20px 19px 15px; align-self: center; background: rgba(255,254,250,.93); border: 1px solid #e3e2db; border-radius: 14px 14px 14px 3px; box-shadow: 0 8px 22px rgba(23,36,58,.055); }
.note-topline { display: flex; align-items: center; gap: 8px; color: #34414e; font-size: 11px; font-weight: 700; }
.note-symbol { color: #bb862d; font-size: 17px; }
.hero-note p { margin: 13px 0 17px; color: #717985; font-size: 11px; line-height: 1.9; }
.hero-note p strong { color: var(--ink-soft); font-weight: 700; }
.note-foot { border-top: 1px solid #eae9e3; padding-top: 11px; display: flex; align-items: center; justify-content: space-between; color: #888e95; font-size: 9px; }
.source-pages { color: #566273; font-size: 10px; }
.hero-ornament { position: absolute; z-index: 1; pointer-events: none; }
.ornament-one { inset-inline-start: -11px; bottom: -24px; width: 93px; height: 93px; border: 1px solid rgba(23,120,97,.14); border-radius: 50%; }
.ornament-one::after { content: ""; position: absolute; inset: 13px; border: 1px solid rgba(23,120,97,.13); border-radius: 50%; }
.ornament-two { width: 8px; height: 8px; top: 22px; inset-inline-start: 49%; background: #d5ad5d; transform: rotate(45deg); }
.setup-card { margin-top: 21px; padding: 30px 35px 23px; border: 1px solid #e3e3df; border-radius: 18px 3px 18px 18px; background: var(--card); box-shadow: var(--shadow); }
.setup-heading, .scope-row, .setup-bottom { display: flex; align-items: center; justify-content: space-between; }
.setup-heading { margin-bottom: 23px; }
.section-kicker { color: #aa8039; font-size: 9px; font-weight: 700; letter-spacing: .15px; }
.setup-heading h2, .review-heading h2 { margin: 5px 0 0; font-size: 20px; letter-spacing: -.35px; }
.best-score { display: flex; align-items: center; gap: 8px; padding: 8px 13px; background: #f5f4ef; border: 1px solid #e9e7df; border-radius: 8px 3px 8px 8px; }
.best-star { color: #b38733; font-size: 16px; }
.best-score span:last-child { display: grid; gap: 3px; }
.best-score small { font-size: 9px; color: var(--muted); }
.best-score strong { font-size: 11px; }
.field-label { display: block; margin: 0 0 9px; color: #536070; font-size: 10px; font-weight: 700; }
.mode-fieldset { padding: 0; margin: 0; min-width: 0; border: 0; }
.mode-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mode-option { min-height: 78px; display: flex; align-items: center; gap: 13px; padding: 14px 15px; border: 1px solid #e1e4e4; border-radius: 11px 3px 11px 11px; background: #fff; cursor: pointer; transition: border-color .18s ease, background-color .18s ease, transform .18s ease; position: relative; }
.mode-option:hover { border-color: #b7d2c8; transform: translateY(-1px); }
.mode-option.is-selected { border-color: #5ca48b; background: #f7fbf8; box-shadow: inset 0 0 0 1px rgba(23,120,97,.1); }
.mode-option input { position: absolute; opacity: 0; pointer-events: none; }
.mode-icon { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 9px 9px 9px 3px; color: var(--brand); background: #e8f3ef; }
.choice-icon { align-content: center; gap: 3px; padding: 7px; }
.choice-icon i { display: block; width: 17px; height: 3px; border: 1px solid #65a48d; border-radius: 3px; background: white; }
.choice-icon i:first-child { width: 11px; justify-self: start; }
.writing-icon { font-family: Georgia, serif; font-size: 21px; }
.mode-copy { flex: 1; display: grid; gap: 5px; }
.mode-copy strong { color: var(--ink-soft); font-size: 12px; }
.mode-copy small { color: #7b8490; font-size: 10px; line-height: 1.6; }
.radio-mark { flex: 0 0 16px; width: 16px; height: 16px; border: 1px solid #c6ccd0; border-radius: 50%; position: relative; }
.mode-option.is-selected .radio-mark { border-color: var(--brand); }
.mode-option.is-selected .radio-mark::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--brand); }
.mode-option:focus-within { outline: 3px solid rgba(23,120,97,.23); outline-offset: 2px; }
.scope-row { margin-top: 24px; padding-top: 20px; border-top: 1px solid #eeefed; gap: 14px; }
.scope-copy .field-label { margin-bottom: 4px; }
.scope-copy > span { font-size: 10px; color: #89909a; }
.select-wrap { position: relative; width: min(300px, 52%); }
.select-wrap select { width: 100%; height: 42px; appearance: none; padding: 0 13px 0 39px; color: var(--ink-soft); background: #fff; border: 1px solid #dde0df; border-radius: 8px 3px 8px 8px; font-size: 11px; cursor: pointer; }
.select-chevron { position: absolute; inset-inline-start: 14px; top: 9px; color: #718078; font-size: 16px; pointer-events: none; }
.setup-bottom { margin-top: 23px; gap: 14px; }
.points-note { display: flex; align-items: center; gap: 7px; margin: 0; color: #7d8790; font-size: 10px; }
.points-note strong { color: #3d4a57; }
.sparkle { color: #c3943f; font-size: 14px; }
.button { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 13px; padding: 0 16px; border: 1px solid transparent; border-radius: 9px 3px 9px 9px; cursor: pointer; font-size: 11px; font-weight: 700; transition: background-color .16s ease, transform .16s ease, box-shadow .16s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button-primary { color: white; background: var(--ink); box-shadow: 0 5px 12px rgba(23,36,58,.12); }
.button-primary:hover:not(:disabled) { background: #243650; box-shadow: 0 7px 15px rgba(23,36,58,.17); }
.button-secondary { color: #495565; background: white; border-color: #dfe2e3; }
.button-secondary:hover:not(:disabled) { border-color: #aab3bb; background: #fbfbf8; }
.button:disabled { opacity: .46; cursor: not-allowed; }
.button-arrow { font-size: 17px; font-weight: 400; line-height: 1; }
.start-button { min-width: 171px; }
.page-footer { min-height: 59px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; padding-block: 8px; color: #92979c; font-size: 9px; line-height: 1.7; }
.page-footer > span { max-width: 100%; }
.page-footer > span:last-child { text-align: end; }
.footer-separator { margin-inline: 5px; color: #c1a15e; }
/* Test screen */
.quiz-view { padding: 23px 0 32px; }
.quiz-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 0 0 17px; border-bottom: 1px solid #e1e2df; }
.text-button { display: inline-flex; align-items: center; gap: 8px; padding: 7px 0; border: 0; background: transparent; color: #687583; cursor: pointer; font-size: 10px; }
.text-button span { font-size: 16px; }
.text-button:hover { color: var(--brand-dark); }
.toolbar-stats { display: flex; align-items: center; gap: 17px; }
.toolbar-stat { display: grid; gap: 4px; text-align: center; }
.stat-label { color: #8a929b; font-size: 9px; }
.toolbar-stat strong { color: #344152; font-size: 13px; }
.toolbar-stat strong small { color: #8b939c; font-size: 10px; font-weight: 400; }
.toolbar-divider { height: 25px; width: 1px; background: #dfe1e1; }
.quiz-layout { display: grid; grid-template-columns: 222px minmax(0, 1fr); align-items: start; gap: 20px; padding-top: 21px; }
.progress-rail { display: grid; gap: 12px; }
.progress-card, .lecture-list-card, .rail-tip { padding: 16px; border: 1px solid #e1e3e2; border-radius: 12px 3px 12px 12px; background: var(--card); }
.progress-heading { display: flex; align-items: center; justify-content: space-between; color: #6f7a85; font-size: 10px; }
.progress-heading strong { color: var(--brand); font-size: 12px; }
.progress-track { height: 5px; margin-top: 13px; overflow: hidden; border-radius: 8px; background: #e8ebea; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#16775f,#5aa287); transition: width .3s ease; }
.progress-caption { margin: 9px 0 0; color: #9298a0; font-size: 9px; }
.rail-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; color: #465363; font-size: 10px; font-weight: 700; }
.rail-count { color: #a0a5aa; font-size: 8px; font-weight: 400; letter-spacing: .6px; }
.lecture-progress-list { display: grid; gap: 12px; }
.lecture-progress-item { display: flex; align-items: center; gap: 9px; }
.lecture-number { flex: 0 0 24px; height: 24px; display: grid; place-items: center; color: #788390; background: #f0f1ee; border-radius: 7px 2px 7px 7px; font-size: 9px; }
.lecture-progress-item.is-current .lecture-number { color: white; background: var(--brand); }
.lecture-progress-copy { flex: 1; min-width: 0; }
.lecture-progress-copy strong { display: block; overflow: hidden; color: #63707c; font-size: 9px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.lecture-progress-item.is-current .lecture-progress-copy strong { color: var(--ink); font-weight: 700; }
.lecture-progress-copy small { display: block; margin-top: 3px; color: #9ba1a7; font-size: 8px; }
.rail-tip { display: flex; align-items: flex-start; gap: 9px; padding: 12px 13px; background: #f1f0eb; border-color: #e9e7df; }
.rail-tip-icon { color: #b48b43; font-size: 13px; }
.rail-tip p { margin: 0; color: #79818a; font-size: 9px; line-height: 1.85; }
.question-card { position: relative; overflow: hidden; min-height: 600px; padding: 23px 28px 0; border: 1px solid #e0e2e0; border-radius: 16px 3px 16px 16px; background: var(--card); box-shadow: var(--shadow); }
.question-card::before { content: ""; position: absolute; z-index: 0; inset-block: 0; inset-inline-start: 0; width: 3px; background: linear-gradient(180deg,#d5ab58 0%,#d5ab58 25%,transparent 25%); }
.question-card-top, .question-origin { display: flex; align-items: center; }
.question-card-top { justify-content: space-between; }
.question-origin { gap: 10px; }
.chapter-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; color: #5d735f; background: #edf3ea; border: 1px solid #dee8da; border-radius: 99px; font-size: 9px; }
.review-label { color: #999fa5; font-size: 9px; }
.question-mark { width: 32px; height: 32px; display: grid; place-items: center; color: #a98036; background: #faf2e3; border: 1px solid #f0e2c8; border-radius: 50% 50% 50% 3px; font-size: 15px; font-weight: 700; }
.question-body { padding-top: 23px; }
.question-index { margin: 0 0 9px; color: #b28a43; font-size: 10px; }
.question-text { margin: 0; color: var(--ink); font-size: clamp(19px, 2.5vw, 24px); line-height: 1.7; letter-spacing: -.25px; }
.question-instruction { margin: 7px 0 0; color: #818b95; font-size: 10px; line-height: 1.7; }
.answer-area { padding-top: 20px; }
.choice-list { display: grid; gap: 9px; }
.choice-button { width: 100%; min-height: 52px; display: flex; align-items: center; gap: 11px; padding: 10px 13px; text-align: right; color: #485665; background: #fff; border: 1px solid #e1e4e5; border-radius: 10px 3px 10px 10px; cursor: pointer; font-size: 10px; line-height: 1.8; transition: border-color .16s ease, background-color .16s ease, transform .16s ease; }
.choice-button:hover:not(:disabled) { border-color: #a9c7bc; background: #fbfdfb; transform: translateX(-2px); }
.choice-letter { flex: 0 0 27px; width: 27px; height: 27px; display: grid; place-items: center; color: #75828d; background: #f1f2f0; border-radius: 8px 2px 8px 8px; font-size: 9px; font-weight: 700; }
.choice-copy { flex: 1; }
.choice-check { flex: 0 0 18px; width: 18px; height: 18px; display: none; place-items: center; border-radius: 50%; font-size: 10px; font-weight: 700; }
.choice-button.is-correct { color: #1f5d47; background: var(--green-soft); border-color: var(--green-border); }
.choice-button.is-correct .choice-letter { color: white; background: var(--green); }
.choice-button.is-correct .choice-check { display: grid; color: white; background: var(--green); }
.choice-button.is-wrong { color: #974249; background: var(--red-soft); border-color: var(--red-border); }
.choice-button.is-wrong .choice-letter { color: white; background: var(--red); }
.choice-button.is-wrong .choice-check { display: grid; color: white; background: var(--red); }
.choice-button:disabled { cursor: default; }
.choice-button.is-eliminated { opacity: .32; text-decoration: line-through; }
.writing-form { display: grid; gap: 10px; }
.writing-label { color: #687582; font-size: 10px; }
.answer-textarea { width: 100%; min-height: 142px; resize: vertical; padding: 13px 14px; color: #354253; background: #fff; border: 1px solid #dfe3e3; border-radius: 10px 3px 10px 10px; font-size: 12px; line-height: 1.9; }
.answer-textarea::placeholder { color: #a2a8ad; }
.answer-textarea:disabled { color: #616c78; background: #f7f7f4; }
.writing-submit { justify-self: start; min-width: 151px; min-height: 39px; }
.writing-submit .button-arrow { font-size: 15px; }
.feedback-box { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px 3px 10px 10px; }
.feedback-box.feedback-correct { background: var(--green-soft); border-color: var(--green-border); }
.feedback-box.feedback-wrong { background: var(--red-soft); border-color: var(--red-border); }
.feedback-box.feedback-partial { background: var(--amber-soft); border-color: #f0ddb6; }
.feedback-title { display: flex; align-items: center; gap: 8px; color: #315d49; font-size: 10px; font-weight: 700; }
.feedback-wrong .feedback-title { color: #95444b; }
.feedback-partial .feedback-title { color: #895b1b; }
.feedback-icon { flex: 0 0 19px; width: 19px; height: 19px; display: grid; place-items: center; color: white; background: var(--green); border-radius: 50%; font-size: 10px; }
.feedback-wrong .feedback-icon { background: var(--red); }
.feedback-partial .feedback-icon { background: #c28a35; }
.feedback-detail { margin: 7px 0 0 27px; color: #687b70; font-size: 9px; line-height: 1.8; }
.feedback-wrong .feedback-detail { color: #8c696c; }
.feedback-partial .feedback-detail { color: #8d774f; }
.study-tools { margin-top: 18px; padding: 12px 0 0; border-top: 1px solid #ecedeb; }
.tools-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: #596574; font-size: 9px; font-weight: 700; }
.tools-heading span:last-child { color: #9ba1a6; font-size: 8px; font-weight: 400; }
.tool-buttons { display: flex; flex-wrap: wrap; gap: 7px; }
.tool-button { min-height: 31px; display: inline-flex; align-items: center; gap: 6px; padding: 0 9px; color: #64707e; background: #fafaf7; border: 1px solid #e8e9e6; border-radius: 7px 2px 7px 7px; cursor: pointer; font-size: 9px; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.tool-button:hover, .tool-button[aria-expanded="true"] { color: var(--brand-dark); background: #f0f7f3; border-color: #c3dccf; }
.tool-icon { width: 16px; height: 16px; display: grid; place-items: center; color: #b88a39; font-size: 12px; }
.keys-tool { color: #6c8ca2; font-family: Arial, sans-serif; font-weight: 700; }
.model-tool .tool-icon { color: #7b8b7a; font-size: 14px; }
.remove-tool-icon { color: #7a8ea1; font-size: 10px; font-weight: 700; }
.tool-button.is-used { opacity: .48; cursor: default; }
.support-panel { margin-top: 9px; padding: 11px 13px; border-radius: 8px 2px 8px 8px; color: #5c6874; font-size: 10px; line-height: 1.9; }
.hint-panel { background: var(--amber-soft); border: 1px solid #f0ddb6; }
.hint-panel::before { content: "فكّر في هذا: "; color: #8c6524; font-weight: 700; }
.keywords-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; background: #f1f5f7; border: 1px solid #dfe7eb; }
.keywords-panel strong { margin-inline-end: 3px; color: #637786; font-size: 9px; }
.keyword-chip { padding: 4px 8px; color: #536f80; background: #fff; border: 1px solid #e0e8eb; border-radius: 99px; font-size: 9px; }
.model-panel { color: #5e6e62; background: #eff5ef; border: 1px solid #dce8dc; }
.model-panel strong { display: block; margin-bottom: 4px; color: #496650; font-size: 9px; }
.question-navigation { min-height: 69px; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; border-top: 1px solid #ecedeb; }
.navigation-note { color: #99a0a6; font-size: 9px; }
.next-button { min-height: 38px; padding-inline: 14px; }
/* Completed round */
.results-view { padding: 43px 0 17px; }
.results-hero { display: grid; justify-items: center; text-align: center; }
.results-emblem { width: 62px; height: 62px; margin-bottom: 15px; display: grid; place-items: center; position: relative; color: white; background: var(--brand); border-radius: 18px 18px 18px 4px; box-shadow: 0 9px 19px rgba(23,120,97,.18); }
.results-emblem span { font-size: 27px; }
.results-emblem i { position: absolute; width: 16px; height: 16px; inset-inline-end: -6px; top: -5px; border: 2px solid var(--paper); border-radius: 50%; background: #d6ac5d; }
.results-hero h1 { margin: 8px 0 8px; font-size: clamp(26px, 4vw, 37px); line-height: 1.5; letter-spacing: -.7px; }
.results-hero h1 span { color: var(--brand); }
.results-hero p { max-width: 470px; margin: 0; color: #7b8590; font-size: 11px; line-height: 1.8; }
.results-summary { max-width: 710px; margin: 27px auto 0; display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 11px; }
.result-tile { min-height: 100px; display: grid; align-content: center; justify-items: center; gap: 5px; position: relative; overflow: hidden; color: #7c8790; background: var(--card); border: 1px solid #e1e3e1; border-radius: 11px 3px 11px 11px; font-size: 9px; }
.result-tile > strong { color: #354353; font-size: 23px; line-height: 1.25; }
.result-tile > strong small { color: #949ca4; font-size: 11px; font-weight: 400; }
.result-tile > small { color: #969da3; font-size: 8px; }
.main-result-tile { color: #dfede7; background: var(--ink); border-color: var(--ink); }
.main-result-tile > strong { color: white; font-size: 30px; }
.main-result-tile > strong small { color: #b7c4c4; }
.tile-corner { position: absolute; width: 42px; height: 42px; top: -20px; inset-inline-start: -14px; border: 1px solid rgba(230,185,93,.48); border-radius: 50%; }
.results-actions { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.review-section { max-width: 850px; margin: 40px auto 0; }
.review-heading { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-bottom: 13px; }
.review-heading h2 { font-size: 18px; }
.review-caption { color: #8b949d; font-size: 9px; }
.review-list { display: grid; gap: 8px; }
.review-item { overflow: hidden; background: var(--card); border: 1px solid #e3e5e3; border-radius: 9px 3px 9px 9px; }
.review-item summary { min-height: 54px; display: flex; align-items: center; gap: 11px; padding: 9px 12px; list-style: none; cursor: pointer; }
.review-item summary::-webkit-details-marker { display: none; }
.review-status { flex: 0 0 23px; width: 23px; height: 23px; display: grid; place-items: center; color: #fff; background: var(--green); border-radius: 7px 2px 7px 7px; font-size: 10px; }
.review-status.is-wrong { background: var(--red); }
.review-status.is-partial { background: #c28a35; }
.review-question { flex: 1; color: #4c5967; font-size: 10px; line-height: 1.7; }
.review-points { color: #788490; font-size: 9px; white-space: nowrap; }
.review-chevron { color: #a4abb0; font-size: 15px; transition: transform .18s ease; }
.review-item[open] .review-chevron { transform: rotate(180deg); }
.review-answer { padding: 0 46px 13px; color: #687771; font-size: 9px; line-height: 1.9; }
.review-answer strong { color: #55715f; }
.toast { position: fixed; z-index: 5; inset-inline: 16px; bottom: max(20px, env(safe-area-inset-bottom)); width: fit-content; max-width: calc(100vw - 32px); margin-inline: auto; padding: 11px 16px; color: white; background: var(--ink); border-radius: 9px 3px 9px 9px; box-shadow: 0 8px 22px rgba(0,0,0,.15); font-size: 10px; text-align: center; }
@media (max-width: 820px) {
  .page-frame { width: min(100% - 36px, 700px); }
  .hero { min-height: auto; grid-template-columns: minmax(0,1.3fr) minmax(195px,.8fr); gap: 24px; padding: 40px 30px 34px; }
  .hero h1 { font-size: 38px; }
  .quiz-layout { grid-template-columns: 1fr; gap: 12px; }
  .progress-rail { grid-template-columns: 1fr 1.45fr; align-items: start; }
  .progress-card, .lecture-list-card { min-height: 100%; }
  .lecture-progress-list { grid-template-columns: 1fr 1fr; gap: 9px 13px; }
  .rail-tip { display: none; }
  .question-card { min-height: 0; }
}
@media (max-width: 600px) {
  html { scroll-behavior: auto; }
  .page-frame { width: calc(100% - 28px); }
  .topbar { min-height: 69px; }
  .brand-mark { width: 33px; height: 33px; }
  .brand-copy strong { font-size: 15px; }
  .brand-copy small { font-size: 9px; }
  .topbar-meta { gap: 8px; }
  .course-chip { display: none; }
  .offline-indicator { gap: 6px; font-size: 9px; }
  .hero { margin-top: 15px; padding: 31px 22px 20px; grid-template-columns: 1fr; gap: 19px; border-radius: 4px 19px 19px 19px; }
  .hero::after { background: linear-gradient(180deg,rgba(241,240,235,.94),rgba(241,240,235,.89)); }
  .hero h1 { margin-top: 16px; font-size: clamp(32px, 9vw, 40px); line-height: 1.37; }
  .course-credit { gap: 6px; font-size: 9px; }
  .hero-description { max-width: 100%; font-size: 11px; line-height: 1.9; }
  .hero-facts { gap: 9px; margin-top: 17px; font-size: 9px; }
  .hero-facts strong { font-size: 12px; }
  .hero-note { max-width: 100%; padding: 13px 14px 11px; }
  .hero-note p { margin: 8px 0 10px; font-size: 10px; }
  .note-foot { padding-top: 8px; }
  .ornament-two { inset-inline-start: 80%; }
  .setup-card { margin-top: 13px; padding: 20px 16px 17px; border-radius: 14px 3px 14px 14px; }
  .setup-heading { margin-bottom: 17px; }
  .setup-heading h2 { font-size: 18px; }
  .mode-options { grid-template-columns: 1fr; gap: 8px; }
  .mode-option { min-height: 65px; padding: 10px 12px; }
  .mode-icon { flex-basis: 31px; height: 31px; }
  .mode-copy strong { font-size: 11px; }
  .mode-copy small { font-size: 9px; }
  .scope-row { align-items: flex-start; flex-direction: column; gap: 10px; margin-top: 19px; padding-top: 16px; }
  .scope-copy { display: flex; width: 100%; align-items: baseline; justify-content: space-between; gap: 8px; }
  .scope-copy .field-label { margin: 0; }
  .scope-copy > span { font-size: 9px; }
  .select-wrap { width: 100%; }
  .select-wrap select { height: 40px; }
  .setup-bottom { align-items: stretch; flex-direction: column; gap: 13px; margin-top: 17px; }
  .points-note { font-size: 9px; }
  .start-button { width: 100%; min-height: 45px; }
  .page-footer { min-height: 48px; font-size: 8px; gap: 8px; }
  .quiz-view { padding-top: 13px; }
  .quiz-toolbar { padding-bottom: 12px; }
  .toolbar-stats { gap: 10px; }
  .toolbar-stat strong { font-size: 12px; }
  .quiz-layout { padding-top: 12px; gap: 10px; }
  .progress-rail { grid-template-columns: 1fr; gap: 8px; }
  .progress-card { display: grid; grid-template-columns: 1fr; padding: 11px 13px; min-height: 0; }
  .progress-track { margin-top: 9px; }
  .progress-caption { margin-top: 6px; }
  .lecture-list-card { padding: 11px 13px; }
  .lecture-progress-list { grid-template-columns: 1fr 1fr; gap: 8px 10px; }
  .rail-title { margin-bottom: 9px; }
  .question-card { padding: 16px 16px 0; border-radius: 13px 3px 13px 13px; }
  .question-card::before { width: 2px; }
  .question-mark { width: 29px; height: 29px; }
  .question-body { padding-top: 18px; }
  .question-text { font-size: 20px; line-height: 1.75; }
  .question-instruction { font-size: 9px; }
  .answer-area { padding-top: 16px; }
  .choice-list { gap: 8px; }
  .choice-button { min-height: 48px; padding: 8px 9px; gap: 8px; font-size: 9px; }
  .choice-letter { flex-basis: 24px; width: 24px; height: 24px; }
  .writing-label { line-height: 1.7; }
  .answer-textarea { min-height: 124px; font-size: 11px; }
  .study-tools { margin-top: 15px; }
  .tool-buttons { gap: 6px; }
  .tool-button { min-height: 30px; padding: 0 7px; font-size: 8px; }
  .question-navigation { min-height: 61px; margin-top: 11px; }
  .navigation-note { max-width: 45%; font-size: 8px; line-height: 1.5; }
  .next-button { min-height: 36px; padding-inline: 11px; font-size: 9px; }
  .results-view { padding-top: 30px; }
  .results-emblem { width: 55px; height: 55px; }
  .results-hero h1 { font-size: 27px; }
  .results-hero p { font-size: 10px; }
  .results-summary { grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 19px; }
  .main-result-tile { grid-column: span 2; min-height: 85px; }
  .result-tile { min-height: 81px; }
  .results-actions { gap: 7px; }
  .results-actions .button { flex: 1; gap: 6px; padding-inline: 9px; font-size: 9px; }
  .review-section { margin-top: 31px; }
  .review-heading { align-items: start; flex-direction: column; gap: 5px; }
  .review-heading h2 { font-size: 17px; }
  .review-item summary { gap: 7px; padding: 8px; }
  .review-question { font-size: 9px; }
  .review-points { font-size: 8px; }
  .review-answer { padding-inline: 38px 12px; }
}
@media (max-width: 360px) {
  .page-frame { width: calc(100% - 22px); }
  .offline-indicator { font-size: 8px; }
  .hero { padding-inline: 16px; }
  .hero h1 { font-size: 31px; }
  .hero-facts { gap: 7px; font-size: 8px; }
  .setup-card { padding-inline: 13px; }
  .question-card { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
