:root {
  color-scheme: light;
  --ink: #173037;
  --ink-soft: #5e7379;
  --navy: #102b34;
  --navy-2: #1a4650;
  --teal: #178e81;
  --mint: #c9efe4;
  --mint-pale: #e9f7f2;
  --amber: #c4812b;
  --paper: #fff;
  --canvas: #f5f7f5;
  --line: #e2e8e6;
  --shadow: 0 12px 40px rgba(24, 56, 60, .055);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: "Pretendard", "Noto Sans KR", "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
em { font-style: normal; }
:focus-visible { outline: 3px solid #56b9a8; outline-offset: 3px; }

.shell { min-height: 100vh; display: grid; grid-template-columns: 242px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 30px 16px 22px; background: var(--navy); color: #ecf7f2; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 14px; min-height: 55px; }
.brand-mark { display: grid; place-items: center; width: 43px; height: 43px; flex: 0 0 auto; border: 1px solid rgba(201,239,228,.42); border-radius: 13px; color: #f7fffc; font-weight: 900; font-size: 21px; letter-spacing: -.1em; }
.brand-mark span { color: #6fc7aa; }
.brand-name { display: block; font-size: 18px; font-weight: 400; letter-spacing: -.03em; line-height: 1.15; }
.brand-name b { font-weight: 850; letter-spacing: .01em; }
.brand-name small { display: block; margin-top: 5px; color: #92b1b5; font-size: 9px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.sidebar-section-label { margin: 61px 15px 13px; color: #83a1a7; font-size: 10px; font-weight: 800; letter-spacing: .17em; }
.side-nav { display: flex; flex-direction: column; gap: 7px; }
.nav-link { display: flex; align-items: center; gap: 13px; height: 47px; padding: 0 14px; border-radius: 10px; color: #a8c1c3; font-size: 13px; font-weight: 650; transition: background .15s, color .15s; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.065); }
.nav-link.active { background: #20525b; color: #fff; box-shadow: inset 3px 0 0 #7ed2b7; }
.nav-icon { display: grid; place-items: center; width: 23px; height: 23px; color: #8bcbbb; font-size: 20px; font-family: Georgia, serif; }
.sidebar-bottom { margin-top: auto; padding: 0 10px; }
.sidebar-progress { padding: 17px 15px; border: 1px solid rgba(194,233,222,.14); border-radius: 14px; background: rgba(255,255,255,.045); }
.sidebar-progress > span { display: block; color: #a5c0c1; font-size: 11px; }
.sidebar-progress strong { display: block; margin: 9px 0 12px; font-size: 21px; }
.sidebar-progress strong em { color: #8eabad; font-size: 13px; font-weight: 500; }
.sidebar-bottom p { margin: 17px 4px 0; color: #799a9d; font-size: 10px; line-height: 1.7; }
.progress-track { height: 6px; overflow: hidden; background: #dfebe7; border-radius: 9px; }
.progress-track > span { display: block; height: 100%; border-radius: inherit; background: #55bea4; transition: width .2s; }
.sidebar .progress-track { background: rgba(255,255,255,.14); }

.main-column { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 73px; padding: 0 clamp(25px, 4vw, 62px); border-bottom: 1px solid #e4eae8; background: rgba(255,255,255,.78); }
.topbar-course { display: flex; align-items: center; gap: 9px; color: #547077; font-size: 10px; font-weight: 800; letter-spacing: .11em; }
.course-dot { width: 7px; height: 7px; border-radius: 50%; background: #31a98d; box-shadow: 0 0 0 4px #ddf4eb; }
.topbar-slash { color: #b5c4c5; margin: 0 2px; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.preview-pill { border: 1px solid #d9e7e2; border-radius: 99px; padding: 7px 10px; color: #52726e; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.topbar-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #d7eee7; color: #0e665c; font-size: 10px; font-weight: 900; }
.page { max-width: 1450px; margin: auto; padding: 37px clamp(25px, 4vw, 62px) 75px; }
.eyebrow { display: block; color: #379481; font-size: 10px; font-weight: 900; letter-spacing: .18em; line-height: 1.5; }
.eyebrow.light { color: #9de1c9; }
.eyebrow-line { display: inline-block; width: 19px; height: 1px; margin: 0 9px 4px 0; background: currentColor; }
.muted { color: #718488; font-size: 11px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.055em; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 43px; padding: 0 18px; border: 1px solid transparent; border-radius: 9px; font-size: 12px; font-weight: 800; white-space: nowrap; transition: transform .15s, background .15s, border .15s; }
.button:not(:disabled):hover { transform: translateY(-2px); }
.button span { font-size: 17px; line-height: 1; }
.button-light { background: #d3f2e5; color: #123e42; }
.button-light:hover { background: #e7fff1; }
.button-dark { background: var(--navy); color: #fff; }
.button-dark:hover { background: #20525b; }
.button-ghost { border-color: rgba(255,255,255,.32); color: #effaf4; background: rgba(255,255,255,.04); }
.button-ghost:hover { background: rgba(255,255,255,.12); }
.button-outline { border-color: #d7e2df; color: #23424a; background: #fff; }
.button-outline:hover { border-color: #72b9a9; }
.button.full { width: 100%; }
.panel { background: var(--paper); border: 1px solid #e6ece9; border-radius: 16px; box-shadow: var(--shadow); }
.panel-title { margin-bottom: 24px; }
.panel-title h2 { margin: 8px 0 0; font-size: 20px; }
.panel-title.compact { margin-bottom: 27px; }

.hero { min-height: 230px; position: relative; overflow: hidden; border-radius: 18px; background: #123e47; color: #f5fbf7; }
.hero-copy { position: relative; z-index: 2; max-width: 830px; padding: clamp(30px, 4vw, 48px); }
.hero h1 { margin: 14px 0 10px; font-size: clamp(28px, 3vw, 40px); line-height: 1.25; font-weight: 800; }
.hero p { margin-bottom: 22px; color: #b7d2d1; font-size: 12px; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 35px 0 18px; }
.section-heading h2 { margin: 6px 0 0; font-size: 21px; }
.metrics-grid, .results-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric-card { display: flex; flex-direction: column; min-height: 132px; padding: 19px 20px; background: #fff; border: 1px solid #e6ece9; border-radius: 14px; box-shadow: var(--shadow); }
.metric-card > span { color: #718489; font-size: 11px; font-weight: 700; }
.metric-card strong { margin-top: 10px; color: var(--navy); font-size: 32px; line-height: 1; letter-spacing: -.07em; }
.metric-card strong em { font-size: 14px; color: #93a6a7; font-weight: 600; }
.metric-card small { margin-top: auto; color: #829497; font-size: 10px; }
.home-lower { display: grid; grid-template-columns: 1.15fr .85fr; gap: 15px; margin-top: 18px; }
.action-panel, .topic-panel { padding: 23px; }
.mode-list { display: flex; flex-direction: column; }
.mode-row { display: flex; align-items: center; width: 100%; gap: 13px; padding: 13px 3px; border: 0; border-top: 1px solid #edf1ef; background: transparent; text-align: left; color: var(--ink); }
.mode-row:not(:disabled):hover strong { color: var(--teal); }
.mode-icon { display: grid; place-items: center; width: 39px; height: 39px; flex: 0 0 auto; border-radius: 10px; font-size: 20px; }
.mode-icon.teal { background: #e2f5ed; color: #168877; }.mode-icon.amber { background: #fff1df; color: #af741f; }.mode-icon.navy { background: #e9eff1; color: #235260; }
.mode-row > span:nth-child(2) { flex: 1; }
.mode-row strong, .mode-row small { display: block; }
.mode-row strong { margin-bottom: 5px; font-size: 12px; }
.mode-row small { color: #819296; font-size: 10px; }
.mode-arrow { color: #6d9d95; font-size: 20px; }
.topic-list { display: grid; gap: 18px; }
.topic-row { display: grid; grid-template-columns: minmax(100px, 1fr) 1fr; align-items: center; gap: 13px; }
.topic-row > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; }
.topic-row strong { font-size: 11px; }.topic-row small { color: #91a0a2; font-size: 10px; white-space: nowrap; }
.topic-bar { height: 7px; border-radius: 8px; background: #eaf0ed; overflow: hidden; }
.topic-bar span { display: block; height: 100%; border-radius: inherit; background: #6bc8ae; }
.source-caption { margin: 23px 0 0; padding-top: 17px; border-top: 1px solid var(--line); color: #8a999a; font-size: 10px; line-height: 1.7; }
.source-banner { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 15px 18px; border: 1px solid #eddfc5; border-radius: 11px; background: #fffaf1; }
.source-symbol { display: grid; place-items: center; width: 22px; height: 22px; flex: 0 0 auto; border-radius: 50%; color: #9f742b; background: #f7e7ca; font-size: 12px; font-weight: 900; }
.source-banner p { flex: 1; margin: 0; color: #776c58; font-size: 10px; line-height: 1.65; }.source-banner p strong { color: #5e513d; }
.source-banner a { font-size: 10px; font-weight: 800; white-space: nowrap; color: #936a26; }

.page-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 9px 0 28px; }
.page-title h1 { margin: 8px 0 7px; font-size: clamp(28px, 3vw, 37px); }
.page-title p { margin-bottom: 0; color: #7a8c90; font-size: 12px; }
.page-title-count { color: var(--teal); font-size: 32px; font-weight: 850; letter-spacing: -.05em; }.page-title-count small { color: #8a9a9a; font-size: 12px; font-weight: 500; }
.bank-layout { display: grid; grid-template-columns: 245px minmax(0,1fr); align-items: start; gap: 16px; }
.filters-panel { padding: 22px; position: sticky; top: 20px; }
.search-label { display: block; margin-bottom: 8px; font-size: 10px; font-weight: 800; color: #5e7177; }
.search-input { width: 100%; height: 41px; padding: 0 12px; border: 1px solid #dce6e2; border-radius: 8px; color: var(--ink); background: #f9fbfa; font-size: 11px; }
.search-input::placeholder { color: #a2b0b0; }
.filter-section { margin-top: 26px; }.filter-section > strong { display: block; margin-bottom: 11px; font-size: 11px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 29px; padding: 0 10px; border: 1px solid #dfe8e5; border-radius: 7px; background: white; color: #6b8182; font-size: 10px; font-weight: 700; }
.chip:hover { border-color: #72b7a8; }.chip.selected { border-color: #2b9c87; background: #e4f5ed; color: #137867; }
.filter-summary { margin-top: 29px; padding: 16px 0 0; border-top: 1px solid var(--line); }.filter-summary strong { font-size: 11px; }.filter-summary p { margin: 6px 0 14px; color: #829597; font-size: 10px; line-height: 1.6; }
.bank-content { min-width: 0; }
.bank-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin: 0 2px 12px; }
.bank-toolbar strong { display: block; font-size: 14px; }.bank-toolbar span { display: block; margin-top: 5px; color: #859697; font-size: 10px; }
.link-button { padding: 5px 0; border: 0; background: transparent; color: #2c8c7d; font-size: 10px; font-weight: 800; white-space: nowrap; }
.link-button:hover { color: #0a6258; text-decoration: underline; }
.bank-list { overflow: hidden; border: 1px solid #e5ece9; border-radius: 13px; background: #fff; box-shadow: var(--shadow); }
.source-branch { overflow: hidden; margin-bottom: 14px; border: 1px solid #dce7e1; border-radius: 13px; background: #fff; box-shadow: var(--shadow); }
.source-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; padding: 19px; cursor: pointer; list-style: none; background: #f0f8f3; }
.source-heading::-webkit-details-marker { display: none; }
.source-heading::before { content: '›'; flex: 0 0 14px; color: #498b7b; font: 24px/1 Georgia, serif; transition: transform .15s; }
.source-branch[open] > .source-heading::before { transform: rotate(90deg); }
.source-heading > div:first-of-type { flex: 1; min-width: 0; }
.source-heading strong, .source-title { display: block; color: #24534a; font-size: 15px; font-weight: 800; line-height: 1.5; overflow-wrap: anywhere; }
.source-heading small { display: block; margin-top: 5px; color: #6f8982; font-size: 10px; line-height: 1.6; overflow-wrap: anywhere; }
.source-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 13px; color: #668179; font-size: 10px; line-height: 1.7; }
.source-summary strong { display: inline; font-size: inherit; }
.source-summary .progress-track { width: 110px; height: 5px; }
.source-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; padding: 11px 19px; border-top: 1px solid #e0ece5; border-bottom: 1px solid #e8efea; background: #fafcfb; }
.source-actions .button { min-height: 34px; padding: 0 12px; font-size: 10px; }
.source-branch .bank-list { border: 0; border-radius: 0; box-shadow: none; }
.source-filter { display: grid; gap: 6px; }
.source-filter button { width: 100%; min-height: 34px; padding: 8px 10px; text-align: left; white-space: normal; overflow-wrap: anywhere; line-height: 1.5; }
.bank-row { display: flex; align-items: center; gap: 18px; min-height: 95px; padding: 16px 19px; border-bottom: 1px solid #edf1ef; }
.bank-row:last-child { border-bottom: 0; }.bank-row:hover { background: #fbfdfc; }
.bank-number { flex: 0 0 35px; color: #9babae; font: 26px Georgia, serif; }
.bank-info { flex: 1; min-width: 0; }.bank-info h3 { margin: 5px 0 4px; font-size: 14px; }.bank-info small { color: #91a0a2; font-size: 10px; }
.bank-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; color: #4f9a8a; font-size: 10px; font-weight: 750; }.bank-meta .meta-dot { color: #afbdbd; }
.issue-label { margin-left: 5px; padding: 3px 6px; border-radius: 4px; background: #fff3df; color: #ae7832; font-size: 9px; }
.status { display: inline-flex; justify-content: center; align-items: center; min-width: 52px; padding: 5px 7px; border-radius: 99px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.status.neutral { background: #f1f4f3; color: #859598; }.status.correct { background: #e4f5ea; color: #287e64; }.status.wrong { background: #fff0e9; color: #b46043; }.status.caution { background: #fff5df; color: #9b7827; }
.text-action { min-width: 50px; border: 0; background: transparent; color: #217e70; font-size: 10px; font-weight: 800; white-space: nowrap; }.text-action span { font-size: 14px; }
.empty-state { padding: 35px 20px; text-align: center; color: #536b6d; }.empty-state strong { font-size: 13px; }.empty-state p { margin: 8px 0 15px; color: #93a3a3; font-size: 11px; }

.empty-large { min-height: 60vh; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
.empty-large h1 { margin: 16px 0 7px; font-size: 28px; }.empty-large p { color: #819394; font-size: 12px; line-height: 1.8; }.empty-large > div { display: flex; gap: 8px; margin-top: 13px; }.empty-orbit { display: grid; place-items: center; width: 77px; height: 77px; border-radius: 50%; background: #def4e9; color: #188978; font-size: 42px; }
.study-page { max-width: 1124px; padding-top: 30px; }
.study-top { display: flex; align-items: end; justify-content: space-between; gap: 15px; }
.back-link { display: inline-block; margin-bottom: 20px; color: #58887f; font-size: 11px; font-weight: 700; }.back-link:hover { text-decoration: underline; }
.study-kicker { margin-bottom: 4px; color: #579585; font-size: 10px; font-weight: 800; }.study-kicker span { margin: 0 4px; color: #b0c4be; }
.study-top h1 { display: flex; align-items: baseline; gap: 7px; margin: 0; font: 40px Georgia, serif; letter-spacing: -.04em; }.study-top h1 > span { color: #a4b4b5; font-size: 20px; }.study-top h1 small { overflow: hidden; margin-left: 13px; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font: 650 20px "Pretendard", "Noto Sans KR", sans-serif; letter-spacing: -.05em; }
.study-top-actions { display: flex; align-items: center; gap: 9px; }.timer-box { min-width: 97px; padding: 10px 13px; background: white; border: 1px solid #dfe8e4; border-radius: 9px; text-align: center; }.timer-box span { display: block; color: #859899; font-size: 9px; }.timer-box strong { display: block; margin-top: 3px; color: #24424b; font: 21px ui-monospace, SFMono-Regular, Consolas, monospace; }
.bookmark-button { min-height: 44px; padding: 0 13px; border: 1px solid #dfe8e4; border-radius: 9px; background: #fff; color: #6b8183; font-size: 11px; font-weight: 750; white-space: nowrap; }.bookmark-button.saved { background: #fff4dc; border-color: #efdbac; color: #98712e; }
.study-progress { margin: 20px 0 18px; }.study-progress > div:first-child { display: flex; justify-content: space-between; margin-bottom: 6px; color: #798f90; font-size: 10px; font-weight: 750; }.study-progress .progress-track { height: 5px; background: #e2eae7; }
.study-layout { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; max-width: 1000px; margin-inline: auto; }
.question-panel { min-width: 0; padding: 18px; }
.question-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 3px 14px; color: #859698; font-size: 10px; }.question-panel-head > div { display: flex; align-items: center; gap: 10px; }.question-tag { display: inline-flex; align-items: center; justify-content: center; height: 27px; padding: 0 8px; border-radius: 6px; background: #e3f4ec; color: #188771; font-size: 10px; font-weight: 850; }
.question-body { padding: 7px 8px 13px; color: #213940; font-size: 15px; line-height: 1.75; }
.question-body p { margin: 0 0 15px; }
.question-body p:last-child { margin-bottom: 0; }
.question-body .equation { margin: 19px 0; padding: 12px 16px; overflow-x: auto; border-left: 3px solid #7bb9a5; background: #f4faf7; font: 18px/1.55 Georgia, "Times New Roman", serif; white-space: nowrap; }
.question-body sub, .answer-copy sub { font-size: .68em; }
.question-body sup, .answer-copy sup { font-size: .68em; }
.question-body .roman { margin: 12px 0 18px; padding-left: 26px; list-style-type: upper-roman; }
.question-body .roman li { margin: 5px 0; }
.data-table-wrap { max-width: 100%; overflow-x: auto; margin: 20px 0; border: 1px solid #dce7e2; border-radius: 9px; }
.data-table { width: 100%; border-collapse: collapse; background: white; font-size: 13px; text-align: center; }
.data-table th { padding: 11px 12px; background: #ecf5f0; color: #355b55; font-weight: 800; }
.data-table td { padding: 10px 12px; border-top: 1px solid #e5eeea; }
.data-table th + th, .data-table td + td { border-left: 1px solid #e5eeea; }
.study-plot, .energy-plot { display: block; width: min(100%, 560px); height: auto; margin: 14px auto; border: 1px solid #e7ece9; border-radius: 9px; background: white; }
.study-plot .axis, .energy-plot .axis { fill: none; stroke: #55706f; stroke-width: 2; }
.study-plot .plot-line { fill: none; stroke: #168e80; stroke-width: 3; }
.study-plot text, .energy-plot text { fill: #5b7174; font: 11px "Segoe UI", Arial, sans-serif; }
.energy-plot .energy-line { fill: none; stroke: #196f68; stroke-width: 3; }
.energy-plot .guide { fill: none; stroke: #aebebb; stroke-width: 1.4; stroke-dasharray: 6 6; }
.energy-plot .measure { fill: none; stroke: #596d70; stroke-width: 2; marker-start: none; }
.energy-plot text.red { fill: #b94e4b; font-weight: 800; }
.plot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 16px 0; }
.plot-grid .study-plot { margin: 0; }
.plot-grid small { display: block; padding: 5px 3px; color: #607879; font-size: 10px; line-height: 1.5; }
.particle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0 8px; }
.particle-grid > div { display: grid; gap: 7px; padding: 12px; border: 1px solid #dce7e2; border-radius: 9px; background: #f9fcfa; }
.particle-grid b { font-size: 12px; }.particle-grid span { font-size: 12px; }
.figure-note { color: #697d80; font-size: 12px; }
.source-missing { padding: 12px; border: 1px solid #f1d5a8; border-radius: 8px; background: #fff8eb; color: #86612b; font-size: 13px; }
.bank-issue { max-width: 560px; margin: 6px 0 0; color: #9a7040; font-size: 11px; line-height: 1.55; }
.question-issue { display: flex; gap: 9px; margin-top: 12px; padding: 11px 12px; border-radius: 7px; background: #fff7e9; color: #846b41; font-size: 10px; line-height: 1.6; }.question-issue strong { flex: 0 0 auto; color: #9c6d2c; }
.answer-section { margin: 18px 8px 5px; padding-top: 20px; border-top: 1px solid var(--line); }.answer-panel-head h2 { margin: 5px 0 6px; font-size: 18px; }.answer-panel-head p { margin-bottom: 18px; color: #819494; font-size: 11px; line-height: 1.6; }
.answer-options { display: grid; gap: 7px; }
.answer-button { display: flex; align-items: center; gap: 12px; min-height: 50px; width: 100%; padding: 10px 13px; border: 1px solid #e0e8e4; border-radius: 8px; background: #fff; color: #435e63; text-align: left; font-size: 14px; font-weight: 600; }.answer-button:hover:not(:disabled) { border-color: #80beaa; }.answer-button .letter { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 auto; border-radius: 6px; background: #f2f5f3; color: #6e8484; font-size: 12px; font-weight: 850; }.answer-button kbd { margin-left: auto; color: #abbab9; font: 10px ui-monospace, monospace; }
.answer-copy { flex: 1; min-width: 0; overflow-wrap: anywhere; line-height: 1.55; }
.answer-button.selected { border-color: #53aa91; background: #f1faf5; color: #286e60; }.answer-button.selected .letter { background: #2a9b83; color: #fff; }.answer-button.answer-correct { border-color: #59b98e; background: #e8f8ec; color: #1b765b; opacity: 1; }.answer-button.answer-correct .letter { background: #30a774; color: #fff; }.answer-button.answer-wrong { border-color: #d99c87; background: #fff0e9; color: #ae5940; opacity: 1; }.answer-button.answer-wrong .letter { background: #c16e55; color: #fff; }
.confidence-block { max-width: 430px; margin: 20px 0 17px; }.confidence-block > span { display: block; margin-bottom: 9px; font-size: 11px; font-weight: 800; }.confidence-block > div { display: flex; gap: 6px; }.confidence-chip { flex: 1; min-height: 34px; border: 1px solid #dce5e1; border-radius: 7px; background: white; color: #798c8c; font-size: 11px; font-weight: 750; }.confidence-chip.selected { border-color: #3ba58e; background: #e5f6ec; color: #1d826d; }.confidence-chip:disabled { opacity: .8; }
.submit-button { min-height: 43px; }.feedback { margin-top: 15px; padding: 13px; border-radius: 10px; }.feedback.good { border: 1px solid #c4e7d2; background: #effaf3; }.feedback.bad { border: 1px solid #f0d6c9; background: #fff5f0; }.feedback-title { display: flex; align-items: center; gap: 8px; }.feedback-title span { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: #d3f1dc; color: #188b5c; font-weight: 900; }.feedback.bad .feedback-title span { background: #f9ddd0; color: #b46a4d; }.feedback-title strong { font-size: 12px; }.feedback > p { margin: 7px 0 0; color: #6d8583; font-size: 10px; }.teaching-point { margin-top: 11px; padding-top: 10px; border-top: 1px solid rgba(45,101,82,.12); }.teaching-point small { color: #4e9b83; font-size: 9px; font-weight: 900; }.teaching-point p { margin: 5px 0 0; font-size: 10px; line-height: 1.7; }
.answer-divider { height: 1px; margin: 20px 0 15px; background: var(--line); }.note-label { display: flex; justify-content: space-between; gap: 5px; margin-bottom: 8px; font-size: 11px; font-weight: 800; }.note-label span { color: #a5b1b0; font-weight: 500; }.answer-section textarea { display: block; width: 100%; min-height: 90px; resize: vertical; padding: 11px; border: 1px solid #dee7e3; border-radius: 8px; background: #f9fbfa; color: var(--ink); font-size: 12px; line-height: 1.6; }.answer-section textarea::placeholder { color: #aab7b6; }
.study-footer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; margin: 17px 0; }.dot-wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }.question-dot { width: 25px; height: 25px; border: 1px solid #dce5e2; border-radius: 6px; background: white; color: #8a9b9b; font-size: 9px; font-weight: 800; }.question-dot.current { border-color: #195c59; background: #195c59; color: #fff; }.question-dot.marked:not(.current) { border-color: #9accba; background: #e8f6ee; color: #27846c; }.question-dot.correct:not(.current) { background: #def4e5; color: #228056; }.question-dot.wrong:not(.current) { background: #fae9e1; color: #ae644c; }
.finish-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }.finish-row span { color: #93a4a3; font-size: 10px; }

.review-summary-pill { padding: 9px 16px; border: 1px solid #d8e9e1; border-radius: 99px; color: #578478; font-size: 10px; font-weight: 700; }.review-summary-pill strong { margin-left: 8px; color: #146f60; font-size: 17px; }
.review-hero, .result-hero { display: flex; align-items: center; justify-content: space-between; gap: 25px; min-height: 205px; padding: 32px 37px; border-radius: 16px; background: linear-gradient(110deg, #15363e, #226458); color: white; }.review-hero h2 { margin: 9px 0 9px; font-size: clamp(20px,2.5vw,29px); line-height: 1.4; }.review-hero p { margin: 0; color: #b6d4cb; font-size: 11px; line-height: 1.7; }
.review-panel { margin-top: 18px; overflow: hidden; }.review-tabs { display: flex; gap: 22px; padding: 0 25px; border-bottom: 1px solid var(--line); }.review-tab { min-height: 53px; padding: 0 3px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: #8c9e9f; font-size: 11px; font-weight: 800; }.review-tab.active { border-color: #2c9a82; color: #238871; }.review-row { display: flex; align-items: center; gap: 18px; min-height: 108px; padding: 17px 25px; border-bottom: 1px solid #edf1ef; }.review-row:last-child { border-bottom: 0; }.review-number { color: #9fb1b1; font: 29px Georgia,serif; }.review-row > div { flex: 1; }.review-row h3 { margin: 4px 0 4px; font-size: 14px; }.review-row p { margin: 0; color: #899a9b; font-size: 10px; }
.result-hero { position: relative; min-height: 246px; overflow: hidden; display: block; }.result-hero h1 { margin: 12px 0 9px; font-size: clamp(26px,3vw,40px); line-height: 1.3; }.result-hero h1 em { color: #a4e5c4; }.result-hero p { margin: 0; color: #bad1ce; font-size: 11px; }.result-score { position: absolute; right: 54px; top: 71px; display: flex; align-items: center; flex-direction: column; justify-content: center; width: 135px; height: 135px; border: 1px solid rgba(213,248,226,.35); border-radius: 50%; background: rgba(255,255,255,.07); }.result-score strong { font-size: 33px; }.result-score span { margin-top: 3px; color: #bbdcd0; font-size: 9px; }.results-metrics { margin-top: 18px; }.results-actions { display: flex; gap: 9px; margin: 19px 0; }.results-list { padding: 23px; }.result-row { display: flex; align-items: center; gap: 15px; width: 100%; min-height: 70px; padding: 10px 2px; border: 0; border-bottom: 1px solid #edf1ef; background: transparent; color: var(--ink); text-align: left; }.result-row:hover { background: #fbfdfc; }.result-row:last-child { border-bottom: 0; }.result-number { width: 34px; color: #9aadaf; font: 23px Georgia,serif; }.result-title { flex: 1; font-size: 12px; font-weight: 800; }.result-title small { display: block; margin-top: 4px; color: #91a1a2; font-size: 9px; font-weight: 500; }.result-answer { min-width: 72px; color: #829597; font-size: 10px; text-align: center; }
.mobile-nav { display: none; }

.import-upload { display: flex; align-items: center; gap: 25px; padding: 26px; }
.import-upload > div { flex: 1; }
.import-options { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; margin-top: 15px; }
.import-options label { display: grid; gap: 6px; color: #59746d; font-size: 11px; font-weight: 700; }
.import-options select { min-height: 37px; padding: 7px 11px; border: 1px solid #d9e4df; border-radius: 7px; background: #fff; color: var(--ink); font-size: 12px; }
.import-progress { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.import-progress > span { flex: 1; min-width: 170px; line-height: 1.6; }
.import-progress .button { min-height: 33px; padding: 0 12px; font-size: 11px; }
.import-upload h2 { margin-bottom: 9px; font-size: 20px; }
.import-upload p, .import-help { color: var(--ink-soft); font-size: 12px; line-height: 1.8; margin-bottom: 0; }
.import-file-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 9px; background: var(--navy); color: white; font-size: 12px; font-weight: 800; cursor: pointer; position: relative; overflow: hidden; }
.import-file-button input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.import-file-button:focus-within { outline: 3px solid #56b9a8; outline-offset: 3px; }
.import-message { padding: 14px 18px; margin-top: 16px; border: 1px solid #bde0d6; border-radius: 10px; background: #eaf7f1; color: #256f5e; font-size: 12px; }
.import-message.error { background: #fff7ec; border-color: #efd9b7; color: #866332; }
.import-library, .import-editor { padding: 25px; margin-top: 20px; }
.import-collection { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 0; border-top: 1px solid var(--line); }
.import-collection > div:first-child { min-width: 0; }
.import-collection strong { display: block; font-size: 14px; overflow-wrap: anywhere; }
.import-collection small { display: block; margin-top: 7px; color: var(--ink-soft); font-size: 11px; overflow-wrap: anywhere; }
.import-collection > div:last-child { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.danger { color: #a75942; }
.import-empty, .import-footnote { color: var(--ink-soft); font-size: 12px; line-height: 1.8; margin: 0; }
.import-footnote { margin-top: 18px; }
.import-editor-head { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.import-editor-head h2 { font-size: 20px; margin: 8px 0; overflow-wrap: anywhere; }
.import-editor-head p { font-size: 12px; color: var(--ink-soft); line-height: 1.7; }
.import-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .88fr); align-items: start; gap: 20px; margin-top: 20px; }
.import-draft-list { min-width: 0; }
.import-draft-list .import-question:first-child { margin-top: 0; }
.pdf-preview-panel { position: sticky; top: 20px; min-width: 0; overflow: hidden; border: 1px solid #d9e5de; border-radius: 11px; background: #edf2ee; }
.pdf-preview-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 12px; border-bottom: 1px solid #d9e5de; background: #f7faf8; color: #5e7970; font-size: 11px; }
.pdf-preview-toolbar .button { min-height: 31px; padding: 0 10px; font-size: 10px; }
.pdf-preview-toolbar > span { flex: 1; text-align: center; line-height: 1.6; }
.pdf-preview-toolbar input { width: 48px; padding: 4px; border: 1px solid #d2dfd7; border-radius: 5px; background: white; color: var(--ink); text-align: center; }
.pdf-preview-canvas { display: grid; place-items: start center; max-height: calc(100vh - 145px); min-height: 220px; overflow: auto; padding: 14px; }
.pdf-preview-canvas canvas { display: block; max-width: 100%; height: auto; background: white; box-shadow: 0 2px 12px rgba(16, 43, 52, .1); }
.pdf-preview-canvas > p { align-self: center; margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.8; text-align: center; }
.pdf-preview-caption { margin: 0; padding: 10px 12px; border-top: 1px solid #dce6df; background: #f7faf8; color: #769087; font-size: 10px; line-height: 1.7; }
.review-diagnostics { padding: 13px; border: 1px solid #efdfc5; border-radius: 8px; background: #fff8ec; color: #876535; font-size: 11px; line-height: 1.7; }
.review-diagnostics p { margin: 0 0 6px; }
.review-diagnostics p:last-child { margin-bottom: 0; }
.review-diagnostics ul { margin: 7px 0 0; padding-left: 18px; }
.review-diagnostics li + li { margin-top: 4px; }
.storage-notice { max-width: 1326px; margin: 16px clamp(25px, 4vw, 62px) 0; padding: 12px 16px; border: 1px solid #c8e1d6; border-radius: 9px; background: #ecf7f0; color: #3c7760; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.storage-notice.error { border-color: #e8c9bd; background: #fff4ee; color: #975b44; }
.desktop-data-link { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 0; border: 0; background: transparent; color: #2a8a76; font-size: 11px; font-weight: 750; overflow-wrap: anywhere; text-align: left; }
.desktop-data-link:hover { color: #166854; text-decoration: underline; }
.import-editor label { display: grid; gap: 7px; font-size: 12px; font-weight: 750; }
.import-editor input:not([type=checkbox]), .import-editor textarea, .import-editor select { width: 100%; min-width: 0; padding: 11px; border: 1px solid #d9e4df; border-radius: 8px; background: #fbfdfb; color: var(--ink); font-size: 13px; font-weight: 400; line-height: 1.6; }
.import-editor textarea { resize: vertical; }
.import-label { max-width: 480px; }
.import-help { margin: 18px 0; }
.import-question { border: 1px solid var(--line); border-radius: 10px; margin-top: 9px; overflow: hidden; }
.import-question summary { display: flex; align-items: center; gap: 13px; padding: 15px; cursor: pointer; background: #f8fbf9; }
.import-question summary::after { content: '+'; color: var(--ink-soft); font-size: 21px; }
.import-question[open] summary::after { content: '−'; }
.import-q-number { width: 28px; color: var(--teal); font-weight: 850; }
.import-q-title { flex: 1; min-width: 0; font-size: 13px; font-weight: 750; overflow-wrap: anywhere; }
.import-q-title small { display: block; margin-top: 4px; color: var(--ink-soft); font-size: 10px; font-weight: 400; }
.import-status { border-radius: 6px; padding: 6px 8px; font-size: 10px; white-space: nowrap; }
.import-status.ready { background: #def2e6; color: #277657; }
.import-status.needs-check { background: #fff0d8; color: #936a2b; }
.import-question-body { display: grid; gap: 20px; padding: 20px; border-top: 1px solid var(--line); }
.import-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.import-choices { display: grid; gap: 9px; }
.import-choices > strong { font-size: 12px; }
.import-editor .import-choice { display: grid; grid-template-columns: 22px 1fr; gap: 9px; align-items: start; }
.import-choice span { padding-top: 12px; color: var(--teal); }
.import-editor .import-check { display: flex; align-items: start; gap: 9px; font-weight: 500; line-height: 1.7; background: #fff8eb; padding: 13px; border-radius: 8px; }
.import-check input { margin-top: 4px; flex: 0 0 auto; }
.import-save { display: flex; align-items: center; gap: 16px; margin-top: 22px; }
.import-save span { color: var(--ink-soft); font-size: 11px; }

@media (max-width: 1130px) {
  .shell { grid-template-columns: 205px minmax(0,1fr); }
  .sidebar { padding-left: 10px; padding-right: 10px; }
  .metrics-grid, .results-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-lower { grid-template-columns: 1fr; }
  .import-workspace { grid-template-columns: minmax(0, 1fr) minmax(270px, .88fr); gap: 15px; }
  .import-question summary { gap: 8px; padding: 12px; }
  .import-question summary .import-status { padding: 5px 6px; font-size: 9px; }
  .import-field-row { grid-template-columns: 1fr; }
}
@media (max-width: 850px) {
  .shell { display: block; }
  .sidebar { display: none; }
  .topbar { min-height: 60px; padding: 0 22px; }
  .page { padding: 28px 22px 96px; }
  .mobile-nav { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; height: 66px; padding: 5px 7px max(5px,env(safe-area-inset-bottom)); border-top: 1px solid #dce6e2; background: rgba(255,255,255,.97); box-shadow: 0 -8px 30px rgba(26,57,59,.06); }
  .mobile-nav .nav-link { height: 53px; min-width: 70px; flex-direction: column; justify-content: center; gap: 0; padding: 3px 9px; color: #8da0a0; font-size: 9px; }
  .mobile-nav .nav-link.active { background: #eaf7ef; box-shadow: none; color: #197b69; }
  .mobile-nav .nav-icon { height: 25px; font-size: 19px; }
  .bank-layout { grid-template-columns: 1fr; }.filters-panel { position: static; }
  .source-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .import-workspace { grid-template-columns: minmax(0, 1fr); }
  .pdf-preview-panel { position: static; }
  .pdf-preview-canvas { max-height: 70vh; }
  .storage-notice { margin-inline: 22px; }
  .study-footer { grid-template-columns: auto auto; }.dot-wrap { grid-column: 1 / -1; grid-row: 2; order: 3; }
}
@media (max-width: 620px) {
  .import-upload, .import-collection { align-items: start; flex-direction: column; }
  .import-library, .import-editor, .import-upload { padding: 19px; }
  .import-field-row { grid-template-columns: 1fr; }
  .import-question-body { padding: 14px; }
  .import-save { align-items: start; flex-direction: column; }
  .import-editor-head { gap: 12px; }
  .import-question summary { flex-wrap: wrap; }
  .import-q-title { flex: 1 1 calc(100% - 60px); }
  .import-status { margin-left: 41px; }
  .import-question summary::after { margin-left: auto; }
  .source-heading { gap: 10px; padding: 15px; }
  .source-heading > div:first-of-type { flex: 1 1 calc(100% - 30px); }
  .source-summary { margin-left: 24px; }
  .source-actions { justify-content: start; padding: 10px 15px; }
  .source-filter { grid-template-columns: minmax(0, 1fr); }
  .pdf-preview-canvas { padding: 9px; }
  .mobile-nav .nav-link { min-width: 0; padding: 3px 7px; }
  .topbar-course { font-size: 8px; letter-spacing: .03em; }.topbar-right { gap: 7px; }.preview-pill { display: none; }
  .hero { min-height: auto; }.hero-copy { padding: 29px 25px 30px; }.hero h1 { font-size: 31px; }.hero p { font-size: 11px; }
  .section-heading { align-items: start; }.section-heading .muted { display: none; }
  .metrics-grid, .results-metrics { gap: 8px; }.metric-card { min-height: 110px; padding: 16px; }.metric-card strong { font-size: 27px; }
  .action-panel, .topic-panel, .filters-panel { padding: 19px; }.topic-row { grid-template-columns: 1fr 95px; }
  .source-banner { align-items: start; }.source-banner a { display: none; }
  .page-title { align-items: start; }.page-title-count { font-size: 24px; }.page-title-count small { font-size: 10px; }
  .bank-row { flex-wrap: wrap; gap: 7px 12px; min-height: 104px; padding: 15px; }.bank-number { flex-basis: 28px; font-size: 22px; }.bank-info { flex: 1 1 calc(100% - 65px); }.bank-info h3 { font-size: 13px; }.bank-row .status { margin-left: 41px; }.bank-row .text-action { margin-left: auto; }
  .study-top { align-items: start; flex-direction: column; }.study-top h1 { flex-wrap: wrap; font-size: 34px; }.study-top h1 small { margin-left: 0; width: 100%; font-size: 17px; }.study-top-actions { width: 100%; justify-content: space-between; }.timer-box { min-width: 110px; }
  .question-panel { padding: 10px; }.question-panel-head { padding: 7px 5px 12px; }.question-panel-head > span { white-space: nowrap; }
  .question-body { padding: 9px; font-size: 14px; }.plot-grid { grid-template-columns: 1fr; }.particle-grid { grid-template-columns: 1fr; }
  .answer-section { margin-inline: 9px; padding-top: 17px; }.answer-button { gap: 9px; min-height: 47px; padding: 9px 10px; font-size: 13px; }.finish-row span { display: none; }.finish-row { justify-content: flex-end; }
  .review-hero { align-items: start; flex-direction: column; padding: 27px; }.review-row { flex-wrap: wrap; gap: 8px 14px; padding: 16px; }.review-row > div { flex: 1 1 calc(100% - 54px); }.review-row .button { margin-left: 43px; }
  .result-hero { min-height: 260px; padding: 26px; }.result-hero h1 { max-width: 75%; font-size: 26px; }.result-score { right: 20px; top: 95px; width: 95px; height: 95px; }.result-score strong { font-size: 25px; }.result-score span { font-size: 7px; }
  .results-actions { flex-direction: column; }.result-row { gap: 7px; }.result-answer { display: none; }
}
