:root {
  font-family: "Segoe UI", sans-serif;
  color: #18231e;
  background: #f6f7f5;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --green: #187b55;
  --green-dark: #126744;
  --green-soft: #e8f3ed;
  --ink: #18231e;
  --muted: #87918b;
  --line: #e9ece9;
  --surface: #fff;
  --amber: #f2ad47;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, a { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 3px solid #9bd3b7; outline-offset: 3px; }

.app-shell { min-height: 100vh; }
.sidebar { width: 250px; position: fixed; inset: 0 auto 0 0; padding: 29px 18px 20px; background: #fff; border-right: 1px solid #edf0ed; display: flex; flex-direction: column; z-index: 5; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; color: #17382a; font: 800 19px "Segoe UI", sans-serif; letter-spacing: -1px; text-decoration: none; }
.brand-light { color: var(--green); }
.brand-mark { width: 35px; height: 35px; background: #e5f2eb; display: grid; place-items: center; border-radius: 11px; color: var(--green); }
.brand-mark svg { width: 25px; height: 25px; }
.nav-label { margin: 45px 10px 12px; font-size: 10px; letter-spacing: 1.2px; font-weight: 700; color: #a0a8a3; }
.nav-list { display: grid; gap: 6px; }
.nav-link { min-height: 46px; border: 0; border-radius: 8px; background: transparent; color: #69756f; display: flex; align-items: center; gap: 13px; padding: 0 12px; text-align: left; font-size: 13px; font-weight: 600; transition: .18s ease; }
.nav-link:hover { color: var(--green); background: #f6faf7; }
.nav-link.active { color: var(--green); background: #eaf4ee; }
.nav-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.nav-count { margin-left: auto; border-radius: 20px; background: #f0f2f0; color: #78847d; font-size: 10px; padding: 3px 8px; }
.sidebar-bottom { margin-top: auto; }
.streak-card { display: flex; align-items: center; gap: 10px; padding: 13px 11px; border-radius: 10px; background: #fff8eb; margin: 0 2px 18px; }
.streak-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #fff0d2; color: #e69a24; font-size: 18px; }
.streak-card strong { font-size: 11px; }
.streak-card p { margin: 3px 0 0; color: #a49a84; font-size: 10px; }
.streak-number { margin-left: auto; font: 800 18px "Segoe UI", sans-serif; color: #e69a24; }
.sidebar-user { border-top: 1px solid #edf0ed; padding: 17px 3px 0; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.avatar { height: 34px; width: 34px; display: grid; place-items: center; border-radius: 50%; background: #f5e6da; color: #9b6044; font-size: 11px; font-weight: 700; flex: 0 0 auto; }
.user-details { display: grid; gap: 3px; min-width: 0; }
.user-details strong { font-size: 11px; white-space: nowrap; }
.user-details span { overflow: hidden; color: #939c96; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.more-button { border: 0; background: transparent; color: #9ba39e; margin-left: auto; letter-spacing: 1px; }
#sign-out-button.sign-out-button { display: inline-flex; width: auto; min-width: 0; min-height: 32px; margin: 0; padding: 0 9px; flex: 0 0 auto; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--green); border-radius: 7px; background: var(--green); color: #fff; font: 600 10px/1 "Segoe UI", sans-serif; white-space: nowrap; box-shadow: none; transition: .18s ease; }
#sign-out-button.sign-out-button svg { display: block; width: 14px; height: 14px; flex: 0 0 14px; }
#sign-out-button.sign-out-button:hover { border-color: var(--green-dark); background: var(--green-dark); color: #fff; }
#sign-out-button.sign-out-button:disabled { cursor: wait; opacity: .6; }

.main-content { margin-left: 250px; min-height: 100vh; }
.topbar { height: 72px; padding: 0 5.1%; display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.75); border-bottom: 1px solid #ecefec; }
.breadcrumb { display: flex; align-items: center; gap: 11px; color: #9ba39e; font-size: 12px; }
.breadcrumb strong { color: #35413a; font-weight: 600; }
.crumb-separator { color: #c6ccc8; }
.topbar-actions { display: flex; align-items: center; gap: 19px; }
.date-label { color: #89938d; font-size: 11px; }
.icon-button { position: relative; display: grid; place-items: center; border: 0; background: transparent; color: #66736c; padding: 5px; }
.icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.notification-dot { position: absolute; width: 5px; height: 5px; background: #e5775e; border-radius: 50%; right: 3px; top: 3px; border: 1px solid white; }
.top-avatar { width: 31px; height: 31px; font-size: 10px; }
#app { max-width: 1280px; margin: 0 auto; padding: 37px 5.1% 64px; }

.welcome-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 25px; }
.eyebrow { margin: 0 0 8px; color: var(--green); font-weight: 700; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Segoe UI", sans-serif; }
h1 { font-size: clamp(24px, 3vw, 31px); letter-spacing: -1.2px; line-height: 1.2; margin-bottom: 8px; }
.welcome-row > div > p:last-child { margin: 0; color: #87918b; font-size: 12px; }
.outline-button, .primary-button, .text-button { border: 0; border-radius: 7px; transition: .18s ease; }
.outline-button { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #e5eae6; color: #46534b; padding: 10px 14px; font-size: 11px; font-weight: 600; }
.outline-button:hover { border-color: #a7c8b5; color: var(--green); }
.outline-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.stat-card { min-height: 103px; background: white; border: 1px solid #edf0ed; border-radius: 10px; padding: 17px 18px; display: grid; grid-template-columns: 1fr auto; align-items: center; }
.stat-title { color: #8b958f; font-size: 10px; margin-bottom: 9px; }
.stat-value { font: 700 23px "Segoe UI", sans-serif; letter-spacing: -.8px; }
.stat-note { color: #a1aaa4; font-size: 9px; margin-top: 4px; }
.stat-note.positive { color: var(--green); }
.stat-icon { height: 35px; width: 35px; border-radius: 10px; display: grid; place-items: center; color: var(--green); background: #edf6f0; }
.stat-icon.purple { color: #8874bd; background: #f1edfa; }
.stat-icon.amber { color: #d69532; background: #fff6e6; }
.stat-icon.blue { color: #598fba; background: #eaf3f8; }
.stat-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.68fr) minmax(245px, .92fr); gap: 17px; align-items: start; }
.panel { background: #fff; border: 1px solid #edf0ed; border-radius: 10px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 19px 20px 15px; }
.panel-heading h2 { margin: 0; font-size: 14px; letter-spacing: -.35px; }
.panel-heading > p { margin: 4px 0 0; color: #909a94; font-size: 10px; }
.text-button { padding: 4px 0; background: transparent; color: var(--green); font-size: 10px; font-weight: 700; }
.text-button:hover { color: var(--green-dark); }
.continue-card { position: relative; margin: 0 15px 16px; min-height: 140px; overflow: hidden; border-radius: 9px; padding: 19px 20px; color: #fff; background: linear-gradient(110deg, #156e4b, #20865c); }
.continue-card:after { content: ""; position: absolute; width: 180px; height: 180px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; right: -26px; top: -63px; box-shadow: 0 0 0 24px rgba(255,255,255,.035), 0 0 0 49px rgba(255,255,255,.025); }
.continue-content { position: relative; z-index: 1; max-width: 70%; }
.continue-kicker { color: #c1e3d0; font-size: 9px; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 8px; }
.continue-card h3 { margin: 0 0 7px; font-size: 17px; letter-spacing: -.45px; }
.continue-meta { color: #d1e7da; font-size: 10px; }
.continue-action { position: absolute; bottom: 17px; right: 18px; z-index: 1; background: #fff; color: var(--green-dark); border: 0; border-radius: 6px; padding: 9px 12px; font-size: 10px; font-weight: 700; }
.continue-action:hover { background: #eff8f2; transform: translateY(-1px); }
.dashboard-mock-grid { display: grid; gap: 12px; padding: 0 15px 16px; }
.dashboard-mock-card { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto; align-items: center; column-gap: 16px; padding: 16px 18px; border: 1px solid #c9dfd1; border-radius: 9px; background: #f1f8f3; }
.dashboard-mock-kicker { grid-column: 1; margin-bottom: 6px; color: var(--green); font-size: 9px; font-weight: 700; letter-spacing: .8px; }
.dashboard-mock-card h3 { grid-column: 1; margin: 0 0 5px; color: var(--ink); font-size: 15px; line-height: 1.4; }
.dashboard-mock-meta { grid-column: 1; color: #78847d; font-size: 11px; line-height: 1.5; }
.dashboard-mock-action { grid-column: 2; grid-row: 1 / 4; }
.dashboard-mock-action:hover:not(:disabled) { background: var(--green-dark); }
.dashboard-mock-action:disabled { cursor: not-allowed; }
.paused-test-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 15px 16px; padding: 16px 18px; border: 1px solid #c9dfd1; border-radius: 9px; background: #f1f8f3; }
.paused-test-copy { min-width: 0; }
.paused-test-label { display: block; margin-bottom: 6px; color: var(--green); font-size: 9px; font-weight: 700; letter-spacing: .8px; }
.paused-test-card h3 { margin: 0 0 5px; font-size: 14px; }
.paused-test-card p { margin: 0; color: #78847d; font-size: 10px; }
.paused-resume-button, .dashboard-mock-action { display: inline-flex; width: 150px; min-width: 150px; height: 42px; align-items: center; justify-content: center; padding: 10px 12px; border: 0; border-radius: 6px; background: var(--green); color: #fff; font: 700 10px/1.2 "Segoe UI", sans-serif; white-space: nowrap; }
.paused-resume-button { flex: 0 0 auto; }
.paused-resume-button:hover { background: var(--green-dark); }
.test-list { border-top: 1px solid #f0f2f0; }
.test-row { display: grid; grid-template-columns: 37px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 13px 19px; border-bottom: 1px solid #f1f3f1; }
.test-row:last-child { border-bottom: 0; }
.test-icon { width: 35px; height: 35px; display: grid; place-items: center; background: #f0f5f1; border-radius: 9px; color: var(--green); font-size: 15px; }
.test-info { min-width: 0; }
.test-info strong { display: block; font-size: 10px; font-weight: 700; margin-bottom: 5px; }
.test-info span { display: block; font-size: 9px; color: #939d97; }
.test-start { background: transparent; border: 1px solid #e3ebe5; color: var(--green); border-radius: 5px; padding: 7px 9px; font-size: 9px; font-weight: 700; white-space: nowrap; }
.test-start:hover { background: var(--green); border-color: var(--green); color: white; }
.progress-panel { padding-bottom: 18px; }
.progress-panel .panel-heading { padding-bottom: 11px; }
.chart-legend { display: flex; gap: 12px; font-size: 8px; color: #929b95; }
.chart-legend span { display: flex; align-items: center; gap: 5px; }
.legend-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.legend-dot.gray { background: #e9eeea; }
.chart-wrap { height: 143px; padding: 0 16px; }
.chart-wrap svg { width: 100%; height: 100%; overflow: visible; }
.chart-gridline { stroke: #eef1ee; stroke-width: 1; stroke-dasharray: 3 4; }
.chart-label { fill: #a1aaa4; font: 8px "Segoe UI", sans-serif; }
.chart-area { fill: url(#chartFill); }
.chart-line { fill: none; stroke: #23885d; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chart-point { fill: #fff; stroke: #23885d; stroke-width: 2; }
.chart-summary { margin: 6px 18px 0; padding-top: 13px; border-top: 1px solid #f0f2f0; display: flex; justify-content: space-between; align-items: center; }
.chart-summary strong { font: 700 17px "Segoe UI", sans-serif; }
.chart-summary span { color: #929c95; font-size: 9px; }
.chart-change { color: var(--green) !important; background: #edf6f0; padding: 5px 7px; border-radius: 5px; font-weight: 700; }
.goal-card { padding: 18px 19px; margin-top: 14px; }
.goal-top { display: flex; justify-content: space-between; align-items: flex-start; }
.goal-card h3 { font-size: 12px; margin: 0 0 5px; }
.goal-card p { font-size: 9px; color: #929c95; margin: 0; }
.goal-badge { color: #d3922f; background: #fff6e6; border-radius: 6px; padding: 6px; font-size: 13px; }
.progress-track { height: 6px; margin: 17px 0 8px; background: #edf1ee; border-radius: 8px; overflow: hidden; }
.progress-fill { height: 100%; background: #2b9767; border-radius: inherit; }
.goal-caption { color: #8e9992; font-size: 9px; }

.section-title { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.section-title h1 { margin-bottom: 7px; }
.section-title p { color: #8b958f; font-size: 12px; margin: 0; }
.test-cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 15px; }
.test-card { padding: 19px; min-height: 213px; display: flex; flex-direction: column; }
.test-card-head { display: flex; justify-content: space-between; align-items: flex-start; }
.test-card-icon { width: 37px; height: 37px; border-radius: 10px; display: grid; place-items: center; background: #edf6f0; color: var(--green); font-size: 16px; }
.difficulty { color: #c58522; background: #fff6e6; border-radius: 20px; font-size: 8px; padding: 5px 8px; }
.test-card h2 { font-size: 13px; margin: 17px 0 7px; }
.test-card > p { color: #929c95; font-size: 10px; margin: 0 0 14px; }
.test-card-meta { display: flex; gap: 13px; color: #78847d; font-size: 9px; margin-top: auto; padding-bottom: 15px; }
.test-card-meta span { display: flex; align-items: center; gap: 5px; }
.test-card-meta svg { height: 13px; width: 13px; stroke: #89958d; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.primary-button { background: var(--green); color: white; padding: 10px 14px; font-size: 10px; font-weight: 700; }
.primary-button:hover { background: var(--green-dark); transform: translateY(-1px); }
.test-card .primary-button { width: 100%; }
.filter-row { display: flex; gap: 8px; margin-bottom: 16px; }
.filter-chip { border: 1px solid #e6ebe7; background: #fff; color: #7d8982; border-radius: 20px; padding: 7px 12px; font-size: 10px; }
.filter-chip.active { border-color: #d7e9dd; background: #eaf4ee; color: var(--green); font-weight: 700; }
.result-list { overflow: hidden; }
.result-row { display: grid; grid-template-columns: minmax(0,1.5fr) 1fr .7fr .7fr auto; align-items: center; gap: 12px; padding: 15px 18px; border-bottom: 1px solid #f0f2f0; font-size: 10px; }
.result-row:last-child { border-bottom: 0; }
.result-row.header { color: #9ba49e; font-size: 9px; background: #fbfcfb; }
.result-name { font-weight: 700; }
.result-date, .result-small { color: #89948d; }
.score-pill { display: inline-block; border-radius: 20px; padding: 5px 8px; color: var(--green); background: #eaf4ee; font-weight: 700; width: fit-content; }
.empty-state { padding: 42px 20px; text-align: center; color: #87918b; font-size: 12px; }
.loading-state, .load-error { max-width: 680px; margin: 50px auto; padding: 24px; border: 1px solid #edf0ed; border-radius: 10px; background: #fff; color: #59665e; font-size: 13px; line-height: 1.6; }
.load-error h1 { font-size: 20px; }
.load-error p:last-child { margin: 16px 0 0; }
.load-error code { padding: 2px 4px; border-radius: 3px; background: #f2f4f2; font-size: 11px; }
[hidden] { display: none !important; }
.auth-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(circle at top left, #e8f3ed, transparent 38%), #f6f7f5; }
.auth-card { width: min(100%, 420px); padding: 32px; border: 1px solid #e7ece8; border-radius: 14px; background: #fff; box-shadow: 0 16px 48px rgba(24, 45, 33, .08); }
.auth-brand { width: fit-content; padding: 0; margin: 0 auto 28px; }
.auth-card h1 { margin: 0 0 7px; font-size: 24px; text-align: center; }
.auth-card > p { margin: 0 0 22px; color: #87918b; font-size: 12px; text-align: center; }
#auth-form { display: grid; gap: 9px; }
#auth-form label { margin-top: 5px; color: #45524a; font-size: 11px; font-weight: 600; }
#auth-form input { width: 100%; min-height: 42px; border: 1px solid #dfe5e1; border-radius: 7px; background: #fff; padding: 10px 12px; color: #18231e; font: inherit; font-size: 12px; }
#auth-form input:focus { outline: 3px solid #d7ebdf; border-color: #77ae8d; }
.auth-submit { min-height: 42px; margin-top: 10px; font-size: 12px; }
.auth-forgot-password { justify-self: end; border: 0; padding: 2px 0; background: transparent; color: var(--green); font-size: 11px; font-weight: 600; }
.auth-forgot-password:hover { color: var(--green-dark); text-decoration: underline; }
.auth-forgot-password:disabled { cursor: wait; opacity: .6; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 17px 0; color: #a0a8a3; font-size: 10px; }
.auth-divider:before, .auth-divider:after { height: 1px; flex: 1; content: ""; background: #edf0ed; }
.google-button { width: 100%; justify-content: center; min-height: 40px; font-size: 11px; }
.auth-mode-toggle { display: block; margin: 17px auto 0; border: 0; background: transparent; color: var(--green); font-size: 11px; font-weight: 600; }
.auth-mode-toggle:hover { color: var(--green-dark); text-decoration: underline; }
.auth-message { min-height: 0; margin: 12px 0 0 !important; color: var(--green) !important; font-size: 11px !important; line-height: 1.5; text-align: center; }
.auth-message.error, .auth-message.notice { padding: 10px 12px; border: 1px solid #f0b8b3; border-radius: 7px; background: #fff2f1; color: #a61b1b !important; font-weight: 600; }
.test-screen { max-width: 960px; margin: 0 auto; }
.test-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 21px; }
.test-top h1 { margin: 0; font-size: 21px; }
.test-top p { color: #909a94; font-size: 10px; margin: 5px 0 0; }
.timer { padding: 10px 14px; display: flex; gap: 8px; align-items: center; border: 1px solid #f0dfc3; border-radius: 8px; background: #fffaf0; color: #ad7627; font: 700 15px "Segoe UI", sans-serif; }
.timer svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.test-layout { display: grid; grid-template-columns: minmax(0, 1fr) 245px; gap: 16px; align-items: start; }
.question-panel { padding: 22px 23px; }
.question-progress { display: flex; justify-content: space-between; align-items: center; color: #8d9891; font-size: 10px; margin-bottom: 13px; }
.question-progress strong { color: #4d5a52; }
.question-progress-track { height: 4px; background: #edf1ee; border-radius: 5px; margin-bottom: 23px; overflow: hidden; }
.question-progress-fill { height: 100%; background: var(--green); transition: width .2s ease; }
.question-section { font-size: 9px; color: var(--green); font-weight: 700; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 10px; }
.question-text { font: 600 16px/1.55 "Segoe UI", sans-serif; letter-spacing: -.25px; margin: 0 0 22px; }
.options-list { display: grid; gap: 9px; }
.option-button { width: 100%; display: flex; align-items: center; gap: 11px; border: 1px solid #e9edea; background: #fff; border-radius: 7px; padding: 12px; color: #59665e; text-align: left; font-size: 11px; transition: .15s ease; }
.option-button:hover { background: #f9fbf9; border-color: #bfd8c8; }
.option-letter { width: 24px; height: 24px; border: 1px solid #e1e7e2; color: #8b968f; border-radius: 6px; display: grid; place-items: center; font-size: 9px; font-weight: 700; flex: 0 0 auto; }
.option-button.selected { border-color: #7bb594; background: #f0f8f3; color: #286847; }
.option-button.selected .option-letter { background: var(--green); border-color: var(--green); color: white; }
.question-actions { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid #eff1ef; padding-top: 18px; margin-top: 22px; }
.question-actions > div { display: flex; gap: 8px; }
.question-actions .outline-button { padding: 9px 12px; font-size: 10px; }
.question-sidebar { padding: 18px; }
.question-sidebar h2 { font-size: 12px; margin: 0 0 7px; }
.question-sidebar > p { color: #909a94; font-size: 9px; margin-bottom: 14px; }
.question-map { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.question-number { border: 1px solid #e9edea; background: #fff; color: #77837b; border-radius: 6px; height: 33px; font-size: 10px; }
.question-number.current { border-color: var(--green); color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.question-number.answered { color: white; background: var(--green); border-color: var(--green); }
.question-number.review { color: #c98c2e; background: #fff6e6; border-color: #f1ddba; }
.map-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 5px; padding: 15px 0; margin-top: 17px; border-top: 1px solid #f0f2f0; border-bottom: 1px solid #f0f2f0; color: #8a958e; font-size: 8px; }
.map-legend span { display: flex; align-items: center; gap: 6px; }
.legend-box { width: 10px; height: 10px; border-radius: 3px; background: var(--green); }
.legend-box.unanswered { background: white; border: 1px solid #dce3de; }
.legend-box.review { background: #fff1d5; border: 1px solid #eed8ae; }
.legend-box.current { background: white; border: 1px solid var(--green); }
.submit-test { width: 100%; margin-top: 16px; }
.submit-note { text-align: center; color: #a1aaa4; font-size: 8px; margin: 9px 0 0; }
.modal-backdrop { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 18px; background: rgba(16,31,23,.35); }
.modal { width: min(100%, 390px); padding: 23px; border-radius: 12px; background: white; box-shadow: 0 18px 55px rgba(18,38,26,.18); }
.modal h2 { font-size: 17px; margin: 0 0 9px; }
.modal p { font-size: 11px; line-height: 1.6; color: #7f8a83; margin-bottom: 20px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
.result-hero { padding: 27px; color: #fff; border-radius: 11px; background: linear-gradient(110deg,#166e4b,#21865c); display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; }
.result-hero h1 { margin: 0 0 7px; font-size: 22px; }
.result-hero p { color: #d0e7d9; font-size: 11px; margin: 0; }
.result-score { text-align: right; }
.result-score strong { display: block; font: 800 33px "Segoe UI",sans-serif; }
.result-score span { color: #d0e7d9; font-size: 9px; }
.result-metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 17px; }
.result-metric { padding: 16px; }
.result-metric span { display: block; color: #909a94; font-size: 9px; margin-bottom: 7px; }
.result-metric strong { font: 700 20px "Segoe UI",sans-serif; }
.review-list { overflow: hidden; }
.review-question { padding: 15px 18px; border-bottom: 1px solid #f0f2f0; }
.review-question:last-child { border: 0; }
.review-question h3 { font-size: 11px; line-height: 1.55; margin: 0 0 8px; }
.review-answer { font-size: 9px; color: #8a958e; line-height: 1.7; }
.review-answer.correct { color: var(--green); }
.review-answer.incorrect { color: #c15f4b; }
.review-explanation { margin: 7px 0 0; color: #68756d; font-size: 10px; line-height: 1.6; }
.review-explanation strong { color: #35413a; }
.result-actions { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.exam-review-actions { display: flex; align-items: center; gap: 8px; }
.review-score-chip { border-radius: 4px; background: #eaf4ee; color: var(--green); padding: 6px 8px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.exam-review-screen .exam-layout { min-height: calc(100vh - 112px); }
.exam-review-screen .exam-question-columns { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.exam-review-screen .instruction-pane { background: #fbfcfc; }
.exam-review-screen .review-time { display: grid; gap: 5px; margin-top: 20px; padding: 10px; border: 1px solid #dce3e7; background: #fff; color: #35434c; }
.exam-review-screen .review-time strong { font-size: 10px; }
.exam-review-screen .review-time span { color: #087bb5; font-size: 13px; font-weight: 700; }
.exam-review-screen .review-options { margin-top: 12px; }
.exam-review-screen .review-option { display: flex; align-items: center; gap: 9px; min-height: 38px; padding: 7px 9px; border: 1px solid #e0e5e8; border-radius: 2px; color: #35434c; font-size: 12px; }
.exam-review-screen .review-option .option-letter { flex: 0 0 auto; }
.exam-review-screen .review-option-correct { border-color: #45b853; background: #eaf7ec; color: #176e2c; }
.exam-review-screen .review-option-incorrect { border-color: #dd6259; background: #fff0ef; color: #a8332b; }
.review-choice-label { margin-left: auto; color: inherit; font-size: 9px; font-weight: 700; }
.review-correct-answer { margin-top: 14px; color: #187b55; font-size: 12px; font-weight: 600; }
.exam-review-screen .review-explanation { margin-top: 12px; color: #53616b; font-size: 11px; line-height: 1.65; }
.exam-review-screen .review-navigation { justify-content: space-between; }
.exam-review-screen .review-navigation > span { color: #61707a; font-size: 10px; }
.exam-review-screen .review-navigation button:disabled { opacity: .45; cursor: not-allowed; }
.review-palette .map-legend { grid-template-columns: 1fr; }
.review-palette .legend-box.answered { background: #45b853; border-color: #359942; }
.review-palette .legend-box.unanswered { background: #ee563e; border-color: #d54834; }
.review-palette .question-number.review-palette-correct { color: #fff; background: #45b853; border-color: #359942; }
.review-palette .question-number.review-palette-incorrect { color: #fff; background: #df5c52; border-color: #c94b43; }
.review-palette .question-number.current { outline: 2px solid #087bb5; outline-offset: 1px; }

@media (max-width: 1050px) {
  .sidebar { width: 218px; }
  .main-content { margin-left: 218px; }
  #app { padding-left: 4%; padding-right: 4%; }
  .stats-grid { gap: 9px; }
  .stat-card { padding: 14px; }
  .dashboard-grid { grid-template-columns: minmax(0,1.35fr) minmax(220px,.9fr); }
}
@media (max-width: 820px) {
  .sidebar { width: 68px; padding: 18px 10px; align-items: center; }
  .brand { padding: 0; }
  .brand > span:last-child, .nav-label, .nav-link:not(.active)::after, .nav-link { font-size: 0; }
  .brand > span:last-child, .nav-count, .sidebar-bottom { display: none; }
  .nav-list { margin-top: 42px; width: 100%; }
  .nav-link { width: 46px; height: 45px; justify-content: center; padding: 0; margin: auto; }
  .nav-link svg { width: 19px; height: 19px; }
  .main-content { margin-left: 68px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .progress-panel { order: -1; }
  .test-layout { grid-template-columns: 1fr; }
  .question-sidebar { order: -1; }
  .question-map { grid-template-columns: repeat(10,1fr); }
  .test-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 560px) {
  .sidebar { width: 54px; padding: 14px 5px; }
  .brand-mark { height: 34px; width: 34px; }
  .nav-link { width: 40px; height: 42px; }
  .main-content { margin-left: 54px; }
  .topbar { height: 60px; padding: 0 17px; }
  .date-label, .top-avatar { display: none; }
  #app { padding: 25px 15px 40px; }
  .welcome-row { align-items: flex-start; }
  .welcome-row .outline-button { font-size: 0; padding: 9px; }
  .welcome-row .outline-button svg { width: 17px; height: 17px; }
  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 8px; }
  .stat-card { min-height: 91px; padding: 12px; }
  .stat-value { font-size: 20px; }
  .stat-icon { width: 31px; height: 31px; }
  .continue-content { max-width: 75%; }
  .continue-card { padding: 16px; }
  .continue-action { right: 12px; bottom: 12px; padding: 8px; }
  .paused-test-card { align-items: flex-start; flex-direction: column; margin-left: 10px; margin-right: 10px; padding: 14px; }
  .paused-resume-button { width: 100%; }
  .dashboard-mock-card { align-items: start; column-gap: 10px; padding: 14px; }
  .dashboard-mock-card h3 { font-size: 14px; }
  .dashboard-mock-meta { font-size: 10px; }
  .dashboard-mock-action { width: 150px; min-width: 150px; max-width: 150px; }
  .test-cards { grid-template-columns: 1fr; }
  .test-top { align-items: flex-start; }
  .test-top h1 { font-size: 16px; }
  .timer { padding: 8px 9px; font-size: 12px; }
  .question-panel { padding: 17px 14px; }
  .question-text { font-size: 14px; }
  .question-sidebar { padding: 14px; }
  .question-map { gap: 5px; }
  .question-number { height: 29px; font-size: 9px; }
  .question-actions .outline-button, .question-actions .primary-button { padding: 8px; font-size: 9px; }
  .result-row { grid-template-columns: 1.3fr .8fr auto; gap: 7px; padding: 13px 10px; }
  .result-row > :nth-child(2), .result-row > :nth-child(4) { display: none; }
  .result-metrics { grid-template-columns: repeat(2,1fr); }
  .result-hero { padding: 19px; }
  .result-hero h1 { font-size: 18px; }
  .result-score strong { font-size: 27px; }
  .exam-review-actions { flex-wrap: wrap; justify-content: flex-end; }
  .review-score-chip { width: 100%; text-align: center; }
  .exam-review-screen .exam-question-columns { grid-template-columns: 1fr; }
  .exam-review-screen .review-navigation > span { order: 3; width: 100%; text-align: center; }
}

.app-notice { margin: 0 0 14px; padding: 11px 14px; border: 1px solid #e6cc92; border-radius: 7px; background: #fff7df; color: #745b22; font-size: 12px; line-height: 1.5; }
.app-notice.error { border-color: #edc1bc; background: #fff0ee; color: #8a342c; }
.test-start:disabled, .test-card button:disabled { cursor: not-allowed; opacity: .62; }
.history-more { display: flex; justify-content: center; padding: 16px; }
.leaderboard-modal { max-height: min(80vh, 620px); overflow: auto; }
.leaderboard-list { display: grid; gap: 7px; margin: 16px 0; }
.leaderboard-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; }
.leaderboard-row > span:first-child { color: var(--green); font-weight: 700; }
.leaderboard-row > span:last-child, .leaderboard-count { color: var(--muted); font-size: 11px; }
.section-score-summary { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 8px 10px; border: 1px solid #c8cfd4; border-top: 0; background: #fff; color: #596770; font-size: 10px; }
.section-score-summary strong { color: #26353e; }
.section-score-table-wrap { overflow-x: auto; margin-bottom: 10px; background: #fff; }
.section-score-table { width: 100%; border-collapse: collapse; font-size: 10px; white-space: nowrap; }
.section-score-table th, .section-score-table td { padding: 8px 10px; border: 1px solid #d4d9dd; text-align: left; }
.section-score-table thead { background: #f5f7f8; color: #52616b; }
.section-score-table tbody th { color: #26353e; }

body.exam-mode { background: #f1f3f5; color: #202a33; }
body.exam-mode .sidebar, body.exam-mode .topbar { display: none; }
body.exam-mode .main-content { margin: 0; min-height: 100vh; }
body.exam-mode #app { max-width: none; margin: 0; padding: 0; }
.exam-screen { max-width: none; min-height: 100vh; margin: 0; padding: 9px 10px 12px; background: #f1f3f5; color: #202a33; }
.exam-header { min-height: 42px; display: flex; justify-content: space-between; align-items: center; gap: 18px; border-bottom: 1px solid #c7cdd2; background: #fff; padding: 3px 12px; }
.exam-sections { display: flex; align-items: center; gap: 12px; min-width: 0; }
.exam-sections > strong { font-size: 12px; white-space: nowrap; }
.exam-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.exam-tab { border: 1px solid #c4cbd1; border-radius: 2px; background: #e8edf1; color: #35434f; padding: 5px 9px; font-size: 11px; }
.exam-tab.active { background: #0782c1; border-color: #0782c1; color: #fff; }
.exam-tab.completed { color: #69756f; background: #f0f3f1; border-color: #d9dfdb; }
.exam-tabs span.exam-tab { display: inline-flex; align-items: center; cursor: default; }
.exam-candidate { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.candidate-avatar { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; background: #e2e7eb; color: #46535e; font-size: 10px; font-weight: 700; }
.exam-candidate > div:nth-child(2), .exam-clock { display: grid; gap: 2px; }
.exam-candidate strong { font-size: 10px; }
.exam-candidate span { color: #66737d; font-size: 9px; }
.exam-clock { border-left: 1px solid #dbe0e4; margin-left: 4px; padding-left: 10px; }
.exam-clock strong { color: #17222b; font-size: 12px; }
.pause-button { border: 0; background: transparent; color: #35434f; padding: 6px 7px; font-size: 10px; white-space: nowrap; }
.pause-button:hover { background: #f0f4f6; }
.exam-title-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 42px; padding: 5px 3px; }
.exam-title-row > div { display: flex; align-items: baseline; gap: 10px; }
.exam-title-row h1 { margin: 0; font-size: 16px; letter-spacing: -.2px; }
.exam-title-row span { color: #75818b; font-size: 10px; }
.exam-progress-copy { white-space: nowrap; }
.exam-layout { display: grid; grid-template-columns: minmax(0, 1fr) 205px; gap: 10px; min-height: calc(100vh - 112px); }
.exam-workspace, .exam-palette { border: 1px solid #c8cfd4; border-radius: 0; background: #fff; }
.exam-workspace { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.exam-question-heading { margin: 0; padding: 10px 12px; border-bottom: 1px solid #d4d9dd; font-size: 14px; }
.exam-question-columns { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); flex: 1; min-height: 250px; }
.instruction-pane, .question-pane { min-width: 0; padding: 16px 14px; overflow: auto; }
.instruction-pane { border-right: 1px solid #d4d9dd; color: #303b44; }
.instruction-pane h3 { margin: 0 0 10px; font-size: 12px; }
.instruction-pane p { color: #4f5d67; font-size: 12px; line-height: 1.6; }
.instruction-divider { height: 1px; margin: 20px 0 12px; background: #e5e8eb; }
.instruction-section { color: #087bb5; font-size: 10px; font-weight: 700; }
.instruction-help { margin-top: 7px; }
.question-pane { background: #fff; }
.question-pane .question-section { color: #51626e; margin-bottom: 8px; font-size: 10px; }
.question-text { color: #27333b; font-size: 15px; line-height: 1.55; letter-spacing: 0; margin: 0 0 14px; }
.exam-screen .options-list { gap: 5px; }
.exam-screen .option-button { gap: 9px; padding: 8px 9px; border-radius: 2px; font-size: 12px; color: #35434c; }
.exam-screen .option-letter { width: 22px; height: 22px; border-radius: 50%; font-size: 9px; }
.exam-screen .option-button.selected { background: #edf7fc; border-color: #1592ce; color: #1f536d; }
.exam-screen .option-button.selected .option-letter { background: #0782c1; border-color: #0782c1; }
.exam-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 42px; padding: 6px 10px; border-top: 1px solid #cdd3d8; background: #f8f9fa; }
.exam-actions button, .palette-link { min-height: 30px; border: 1px solid #b9d8e8; border-radius: 2px; background: #dceef7; color: #24495d; padding: 6px 10px; font-size: 10px; }
.exam-actions button:hover, .palette-link:hover { background: #cce6f4; }
.exam-actions .exam-clear { margin-left: auto; }
.exam-actions .exam-save { min-width: 112px; border-color: #087bb5; background: #0782c1; color: #fff; font-weight: 700; }
.exam-actions .exam-save:hover { background: #066fa5; }
.exam-actions button:disabled { opacity: .5; cursor: not-allowed; }
.exam-palette { align-self: start; padding: 10px; }
.exam-palette h2 { margin: 0 0 9px; font-size: 12px; }
.exam-palette .map-legend { grid-template-columns: 1fr 1fr; gap: 7px 5px; padding: 0 0 10px; margin: 0 0 9px; border: 0; color: #53616b; font-size: 9px; }
.exam-palette .map-legend span { gap: 5px; }
.exam-palette .legend-box { width: 13px; height: 13px; border-radius: 4px; flex: 0 0 auto; }
.exam-palette .legend-box.answered { background: #45b853; border: 1px solid #359942; }
.exam-palette .legend-box.unanswered { background: #ee563e; border: 1px solid #d54834; }
.exam-palette .legend-box.review { background: #a277cf; border: 1px solid #8a63bb; }
.exam-palette .legend-box.unvisited { background: #e4e8eb; border: 1px solid #bec6cc; }
.palette-caption { margin: 0 0 8px; color: #52616b; font-size: 10px; }
.exam-palette .question-map { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.exam-screen .question-number { height: 28px; border-radius: 3px; font-size: 10px; }
.exam-screen .question-number.answered { color: #fff; background: #45b853; border-color: #359942; }
.exam-screen .question-number.review { color: #fff; background: #a277cf; border-color: #8a63bb; }
.exam-screen .question-number.unvisited { color: #5e6c76; background: #e4e8eb; border-color: #c9d0d5; }
.exam-screen .question-number.current { outline: 2px solid #087bb5; outline-offset: 1px; }
.palette-shortcuts { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 11px; }
.palette-shortcuts .palette-link { padding: 5px 3px; font-size: 9px; }
.palette-shortcuts .submit-link { border-color: #087bb5; background: #0782c1; color: #fff; font-weight: 700; }
.paused-banner { padding: 8px 12px; border: 1px solid #e6cc92; background: #fff7df; color: #745b22; font-size: 11px; }
.section-transition-message { margin: 0 0 8px; padding: 9px 12px; border: 1px solid #b9d8e8; background: #eaf6fc; color: #24495d; font-size: 11px; }

@media (max-width: 760px) {
  .exam-header { align-items: flex-start; flex-direction: column; padding: 8px; gap: 8px; }
  .exam-sections { align-items: flex-start; flex-direction: column; gap: 5px; }
  .exam-layout { grid-template-columns: minmax(0, 1fr) 175px; min-height: calc(100vh - 150px); }
  .exam-question-columns { grid-template-columns: 1fr; }
  .instruction-pane { border-right: 0; border-bottom: 1px solid #d4d9dd; }
}
@media (max-width: 560px) {
  .exam-screen { padding: 5px; }
  .exam-candidate { width: 100%; justify-content: flex-end; }
  .exam-candidate > div:nth-child(2) { margin-right: auto; }
  .exam-title-row { align-items: flex-start; flex-direction: column; gap: 3px; padding: 8px 3px; }
  .exam-title-row > div { align-items: flex-start; flex-direction: column; gap: 2px; }
  .exam-layout { grid-template-columns: 1fr; }
  .exam-palette { order: -1; }
  .exam-palette .question-map { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .exam-question-columns { min-height: 0; }
  .instruction-pane, .question-pane { padding: 12px; }
  .exam-actions { flex-wrap: wrap; }
  .exam-actions .exam-clear { margin-left: 0; }
  .exam-actions .exam-save { margin-left: auto; }
  .exam-review-screen .exam-question-columns { grid-template-columns: 1fr; }
  .exam-review-actions { flex-wrap: wrap; justify-content: flex-end; }
  .review-score-chip { width: 100%; text-align: center; }
  .exam-review-screen .review-navigation > span { order: 3; width: 100%; text-align: center; }
}
