:root {
  --ink: #182135;
  --muted: #6d7890;
  --line: #e7eaf2;
  --canvas: #f5f7fc;
  --canvas-blue: #eef5ff;
  --canvas-mint: #eefaf7;
  --surface: #ffffff;
  --violet: #5d45e8;
  --violet-soft: #f0eeff;
  --violet-line: #d8d1ff;
  --mint: #18b88b;
  --mint-soft: #eafaf4;
  --danger: #e15166;
  --warning: #ed9a2c;
  --shadow: 0 16px 38px rgba(43, 52, 91, 0.08);
  font-family: "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 78% 0%, rgba(210, 232, 255, .78), transparent 31rem), radial-gradient(circle at 8% 92%, rgba(222, 247, 239, .58), transparent 36rem), var(--canvas); }
button { font: inherit; }
button:focus-visible { outline: 3px solid rgba(93, 69, 232, 0.28); outline-offset: 2px; }

.app-shell { min-height: 100dvh; display: grid; grid-template-columns: 252px minmax(0, 1fr); }
.app-shell.is-exam-focus { grid-template-columns: minmax(0, 1fr); }
.app-shell.is-exam-focus .sidebar { display: none; }
.app-shell.is-exam-focus .view-host { max-width: none; padding: clamp(24px, 3.4vw, 56px); }
.app-shell.is-exam-focus .exam-layout { max-width: min(1480px, 100%); }
.is-login .app-shell { display: block; }
.is-login .sidebar, .is-login .topbar { display: none; }
.is-login .main-content { min-height: 100dvh; }
.is-login .view-host { max-width: none; min-height: 100dvh; margin: 0; padding: clamp(20px, 5vw, 58px); }
.sidebar { position: sticky; top: 0; height: 100dvh; background: #fff; border-right: 1px solid var(--line); padding: 26px 16px 18px; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 10px; margin: 0 9px 34px; color: #17213d; line-height: 1.02; font-size: 16px; letter-spacing: -0.35px; }
.brand strong { color: var(--violet); }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; color: white; font-weight: 750; background: linear-gradient(145deg, #755dff, #24d5cb); border-radius: 11px 11px 11px 4px; box-shadow: 0 7px 14px rgba(93, 69, 232, 0.22); }
.nav-list { display: grid; gap: 5px; }
.nav-item { border: 0; background: transparent; color: #5e6980; border-radius: 10px; padding: 12px 13px; text-align: left; display: flex; gap: 12px; align-items: center; cursor: pointer; font-size: 14px; transition: background .18s, color .18s; }
.nav-icon { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-item:hover { background: #f7f6ff; color: var(--violet); }
.nav-item.is-active { background: var(--violet-soft); color: #4f3fcd; font-weight: 700; }
.sidebar-footer { margin-top: auto; }
.sync-status-card { display: grid; gap: 4px; padding: 15px 13px; border: 1px solid #e3defd; border-radius: 13px; background: linear-gradient(145deg, #fbfaff, #f4f2ff); }
.sync-status-label { color: var(--violet); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.sync-status-card strong { color: var(--ink); font-size: 12px; }
.sync-status-card small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.product-info-trigger { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; margin: 0 1px 1px; padding: 4px 8px; color: #7a879e; background: transparent; border: 1px solid transparent; border-radius: 8px; cursor: pointer; transition: .18s ease; }
.product-info-trigger:hover, .product-info-trigger:focus-visible { color: var(--violet); background: #f4f1ff; border-color: #ded7ff; outline: none; }
.product-info-trigger svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.product-info-trigger span { color: currentColor; font: 800 9px/1 var(--font-sans); letter-spacing: .02em; white-space: nowrap; }
.product-info-layer { position: fixed; inset: 0; z-index: 90; }
.product-info-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; cursor: default; }
.product-info-popover { position: absolute; bottom: 20px; left: 272px; width: min(340px, calc(100vw - 300px)); padding: 23px 22px 21px; border: 1px solid #e5e1f4; border-radius: 17px; background: #fff; box-shadow: 0 20px 52px rgba(21, 27, 54, .17); }
.product-info-popover .eyebrow { display: block; margin-bottom: 9px; }
.product-info-popover h2 { margin: 0 27px 9px 0; color: var(--ink); font-size: 18px; line-height: 1.28; }
.product-info-popover p { margin: 0 0 12px; color: #53627b; font-size: 13px; line-height: 1.58; }
.deployment-checkpoint { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0; padding: 10px 11px; border: 1px solid #ded8ff; border-radius: 10px; color: #5a4bc7; background: #f7f5ff; }
.deployment-checkpoint span { font-size: 11px; font-weight: 700; }
.deployment-checkpoint strong { color: #32268d; font: 800 11px/1.2 var(--font-mono, monospace); }
.product-info-popover small { display: block; padding-top: 12px; border-top: 1px solid #edf0f6; color: #76839a; font-size: 11px; line-height: 1.5; }
.product-info-close { position: absolute; top: 13px; right: 13px; width: 27px; height: 27px; padding: 0; color: #75829a; border: 1px solid #e5e9f2; border-radius: 8px; background: #fff; cursor: pointer; font-size: 19px; line-height: 1; }
.product-info-close:hover { color: var(--violet); border-color: #d9d0ff; background: #f8f6ff; }
.quiet-button { margin-left: auto; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 18px; }
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; background: #182135; color: #fff; border-radius: 50%; font-size: 10px; font-weight: 700; flex: none; }
.avatar-small { width: 26px; height: 26px; font-size: 9px; }

.main-content { min-width: 0; background: linear-gradient(135deg, rgba(255,255,255,.15), rgba(237,242,253,.32)); }
.topbar { height: 74px; padding: 0 clamp(20px, 3vw, 48px); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.88); backdrop-filter: blur(14px); display: flex; align-items: center; justify-content: flex-end; position: sticky; top: 0; z-index: 20; }
.workspace-context { display: flex; align-items: center; font-size: 13px; color: #536078; font-weight: 650; }
.status-dot { width: 7px; height: 7px; display: inline-block; background: var(--mint); border-radius: 50%; margin-right: 8px; }
.profile-trigger { display: flex; align-items: center; gap: 8px; padding: 5px 8px 5px 5px; border: 1px solid transparent; border-radius: 11px; color: #526078; background: transparent; cursor: pointer; text-align: left; transition: background .16s ease, border-color .16s ease; }
.profile-trigger:hover { border-color: #e2ddfc; background: #f7f5ff; }
.profile-trigger > span:nth-child(2) { min-width: 74px; }
.profile-trigger strong, .profile-trigger small { display: block; font-size: 12px; line-height: 1.18; }
.profile-trigger small { color: var(--muted); font-size: 10px; margin-top: 2px; }
.profile-trigger svg { width: 15px; height: 15px; color: #8792a6; }
.notification-trigger { position: relative; display: grid; place-items: center; width: 36px; height: 36px; margin-right: 8px; padding: 0; border: 1px solid transparent; border-radius: 10px; color: #647189; background: transparent; cursor: pointer; transition: border .16s, background .16s, color .16s; }
.notification-trigger:hover { border-color: #e2ddfc; color: var(--violet); background: #f7f5ff; }
.notification-trigger svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.notification-trigger [data-notification-count] { position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px; border: 2px solid #fff; border-radius: 999px; color: #fff; background: var(--danger); font-size: 9px; font-weight: 850; line-height: 13px; }
.notification-layer { position: fixed; inset: 0; z-index: 80; }
.notification-backdrop { position: absolute; inset: 0; border: 0; background: transparent; cursor: default; }
.notification-panel { position: absolute; top: 66px; right: clamp(20px, 3vw, 48px); width: min(390px, calc(100vw - 32px)); max-height: min(560px, calc(100dvh - 84px)); overflow: auto; padding: 16px; border: 1px solid #e4e1f4; border-radius: 15px; background: #fff; box-shadow: 0 20px 46px rgba(22, 29, 52, .18); }
.notification-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 2px 13px; border-bottom: 1px solid var(--line); }
.notification-panel h2 { margin: 4px 0 0; font-size: 18px; }
.notification-list { display: grid; }
.notification-item { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 10px; padding: 13px 3px; border-bottom: 1px solid #edf0f5; }
.notification-item.is-unread { background: linear-gradient(90deg, #faf9ff, transparent); }
.notification-item strong { display: block; font-size: 13px; }
.notification-item p { margin: 4px 0; color: #5d6b82; font-size: 12px; line-height: 1.45; }
.notification-item small { color: #8994a6; font-size: 10px; }
.notification-dot { width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: #8a95aa; }
.notification-dot.feedback { background: var(--violet); }
.notification-empty { padding: 40px 12px 24px; color: var(--muted); text-align: center; font-size: 13px; }
.mobile-menu { border: 1px solid var(--line); background: #fff; color: #526078; border-radius: 10px; cursor: pointer; }
.mobile-menu { display: none; width: 36px; height: 36px; }
.view-host { max-width: 1680px; margin: 0 auto; padding: clamp(24px, 3vw, 48px); }

.eyebrow { color: var(--violet); font-weight: 750; font-size: 12px; text-transform: uppercase; letter-spacing: .09em; }
.page-heading { display: flex; justify-content: space-between; gap: 22px; align-items: end; margin-bottom: 28px; }
.page-heading > :first-child { min-width: 0; }
.dashboard-heading-actions { display: flex; flex: 0 0 auto; align-items: end; justify-content: end; flex-wrap: nowrap; gap: 10px; }
.dashboard-controls { display: flex; align-items: end; gap: 8px; }
.dashboard-filter-field { position: relative; display: grid; gap: 5px; min-width: 140px; }
.dashboard-filter-field > span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.dashboard-select-trigger { width: 100%; height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; cursor: pointer; font: 650 12px inherit; text-align: left; transition: border .16s, box-shadow .16s, background .16s; }
.dashboard-select-trigger:hover, .dashboard-select-trigger.is-open { border-color: #aaa0ff; box-shadow: 0 7px 17px rgba(73, 55, 179, .10); }
.dashboard-select-trigger.is-open { background: #faf9ff; }
.dashboard-select-icon { width: 17px; height: 17px; flex: 0 0 17px; fill: none; stroke: var(--violet); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .16s ease; }
.dashboard-select-trigger.is-open .dashboard-select-icon { transform: rotate(180deg); }
.dashboard-select-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 35; width: max(100%, 218px); padding: 6px; border: 1px solid #d8d1ff; border-radius: 12px; background: rgba(255,255,255,.98); box-shadow: 0 16px 30px rgba(33, 27, 93, .17); }
.dashboard-select-option { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 11px; border: 0; border-radius: 8px; color: #4b5870; background: transparent; cursor: pointer; font: 650 12px inherit; text-align: left; }
.dashboard-option-check { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: var(--violet); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dashboard-select-option:hover { background: #f4f2ff; color: #4d3fca; }
.dashboard-select-option.is-selected { color: #4d3fca; background: var(--violet-soft); font-weight: 800; }
.dashboard-select-option i { font-style: normal; font-size: 14px; }
.builder-notice, .cloud-exam-notice { margin: 0; padding: 10px 12px; border: 1px solid #f2cfac; border-radius: 10px; color: #8f4d16; background: #fff7ed; font-size: 12px; line-height: 1.45; }
.dashboard-retry-button { padding-inline: 13px; }
h1, h2, h3, p { margin-top: 0; }
h1 { letter-spacing: -1.2px; font-size: clamp(28px, 3vw, 40px); margin-bottom: 9px; }
h2 { font-size: 20px; letter-spacing: -.5px; margin-bottom: 4px; }
h3 { font-size: 15px; margin-bottom: 5px; }
.lede { color: var(--muted); margin-bottom: 0; max-width: 62ch; line-height: 1.55; }
.primary-button, .secondary-button, .text-button { border: 0; border-radius: 10px; padding: 11px 16px; cursor: pointer; font-size: 13px; font-weight: 750; white-space: nowrap; }
.primary-button { color: #fff; background: var(--violet); box-shadow: 0 8px 15px rgba(93, 69, 232, .22); }
.primary-button:hover { background: #4d36d5; }
.secondary-button { color: #4d3fca; background: var(--violet-soft); }
.text-button { color: var(--violet); background: transparent; padding: 5px 0; }

.hero { overflow: hidden; border-radius: 20px; background: linear-gradient(105deg, #5d45e8, #765ff0 62%, #32c8c0); padding: clamp(26px, 5vw, 52px); color: white; min-height: 250px; position: relative; display: flex; align-items: center; margin-bottom: 28px; }
.hero::after { content: ""; position: absolute; width: 290px; height: 290px; border: 32px solid rgba(255,255,255,.12); border-radius: 50%; right: -108px; top: -94px; }
.hero-copy { position: relative; z-index: 1; max-width: 590px; }
.hero .eyebrow { color: #d9d4ff; }
.hero h2 { font-size: clamp(25px, 3vw, 37px); letter-spacing: -.9px; margin: 9px 0; }
.hero p { color: rgba(255,255,255,.82); line-height: 1.58; max-width: 52ch; margin-bottom: 23px; }
.hero .primary-button { background: white; color: #4b37cb; box-shadow: none; }

.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 34px; }
.summary-item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.summary-item span { color: var(--muted); font-size: 12px; display: block; }
.summary-item strong { display: block; font-size: 24px; letter-spacing: -.7px; margin-top: 8px; }
.summary-item small { font-size: 11px; font-weight: 700; }
.summary-delta.is-positive { color: var(--mint); }
.summary-delta.is-negative { color: #d14343; }
.summary-delta.is-neutral { color: var(--muted); }
.score-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: -18px 0 34px; }
.score-summary-grid article { min-height: 116px; padding: 15px 16px; border: 1px solid #e4e0fb; border-radius: 14px; background: linear-gradient(145deg, #fff, #fbfaff); }
.score-summary-grid span { display: block; color: #67748b; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.score-summary-grid strong { display: block; margin: 7px 0 4px; color: #29214f; font-size: 22px; letter-spacing: -.5px; }
.score-summary-grid strong small { margin-left: 3px; color: #7a719f; font-size: 11px; font-weight: 750; }
.score-summary-grid p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .86fr); gap: 16px; margin-bottom: 18px; }
.resume-panel { background: linear-gradient(118deg, #5d45e8, #735ff0); color: white; border-radius: 16px; padding: 25px; min-height: 223px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 14px 24px rgba(93, 69, 232, .17); }
.resume-panel .eyebrow { color: #d8d3ff; }
.resume-panel h2 { margin: 8px 0 5px; font-size: 25px; }
.resume-panel p { margin: 0; color: rgba(255,255,255,.8); font-size: 13px; }
.resume-panel-footer { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-top: 23px; }
.resume-panel .primary-button { color: #4936c4; background: #fff; box-shadow: none; }
.progress-copy { color: #e5e2ff; font-size: 12px; }
.dashboard-panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.dashboard-panel h3 { font-size: 16px; }
.dashboard-panel > p { color: var(--muted); font-size: 12px; margin-bottom: 18px; }
.dashboard-grid-single { grid-template-columns: 1fr; }
.performance-panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 3vw, 30px); margin: 0 0 18px; box-shadow: 0 9px 24px rgba(36,43,69,.035); }
.performance-heading { display: flex; justify-content: space-between; align-items: start; gap: 18px; margin-bottom: 16px; }
.performance-heading h2 { font-size: 21px; margin-bottom: 5px; }
.performance-heading p { color: var(--muted); font-size: 13px; margin: 0; }
.performance-tabs { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfe; }
.performance-tab { appearance: none; border: 0; color: #69758a; background: transparent; border-radius: 7px; padding: 8px 11px; cursor: pointer; font: 750 12px/1.1 inherit; white-space: nowrap; }
.performance-tab.is-active { color: #fff; background: var(--violet); box-shadow: 0 3px 8px rgba(93,69,232,.22); }
.performance-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 0 2px; }
.chart-context, .radar-context { color: var(--muted); font-size: 12px; }
.trend-chart { position: relative; width: 100%; margin-top: 8px; }
.trend-chart svg { display: block; width: 100%; max-width: none; height: 350px; overflow: visible; }
.chart-grid-line { stroke: #e6eaf2; stroke-dasharray: 4 5; stroke-width: 1; }
.chart-axis-label { fill: #8490a5; font-size: 11px; font-family: inherit; }
.trend-line { fill: none; stroke: #5d45e8; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.trend-line-raw { stroke: #71809a; stroke-width: 2.5; stroke-dasharray: 7 6; }
.trend-point { fill: #fff; stroke: #5d45e8; stroke-width: 3; }
.chart-caption { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 18px; color: #65718a; font-size: 12px; margin: 8px 0 0 48px; }
.chart-caption span { display: inline-flex; align-items: center; gap: 7px; }
.chart-legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: #5d45e8; }
.chart-legend-dot-raw { width: 18px; height: 3px; border-radius: 99px; background: #71809a; }
.chart-note { margin: 10px 0 0; padding: 8px 11px; color: #566680; background: #f4f6ff; border: 1px solid #dde2ff; border-radius: 9px; font-size: 11px; }
.radar-context { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0 0; }
.radar-chart-wrap { position: relative; max-width: 920px; margin: 4px auto 0; }
.radar-chart-wrap svg { display: block; width: 100%; height: min(560px, 52vw); min-height: 420px; overflow: visible; }
.radar-grid { fill: none; stroke: #607298; stroke-width: 1.8; stroke-dasharray: 5 6; }
.radar-axis { stroke: #7889a9; stroke-width: 1.45; stroke-dasharray: 4 5; }
.radar-data { fill: rgba(24,33,53,.10); stroke: #182135; stroke-width: 3.1; stroke-linejoin: round; }
.radar-point { fill: #182135; stroke: #fff; stroke-width: 2.4; }
.radar-point-interactive { cursor: help; }
.radar-point-interactive:hover, .radar-point-interactive:focus { fill: #5d45e8; stroke-width: 3.2; outline: none; }
.radar-axis-label { fill: #17213d; font-size: 13px; font-family: inherit; font-weight: 800; }
.radar-label-interactive { cursor: help; }
.radar-label-interactive:hover, .radar-label-interactive:focus { fill: #5d45e8; outline: none; }
.radar-tooltip { position: absolute; z-index: 3; width: min(276px, calc(100% - 24px)); padding: 14px 15px; color: #263249; background: #fff; border: 1px solid #5d45e8; border-radius: 12px; box-shadow: 0 15px 32px rgba(31, 43, 73, .18); pointer-events: none; }
.radar-tooltip[hidden] { display: none; }
.radar-tooltip strong { display: block; color: #4f3fcd; font-size: 13px; line-height: 1.35; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.radar-tooltip dl { display: grid; gap: 6px; margin: 10px 0 0; font-size: 12px; }
.radar-tooltip dl div { display: flex; justify-content: space-between; gap: 14px; }
.radar-tooltip dt, .radar-tooltip dd { margin: 0; }
.radar-tooltip dd { font-weight: 800; color: #182135; }
.trend-tooltip { position: absolute; z-index: 3; min-width: 232px; padding: 12px 14px; color: #263249; background: #fff; border: 1px solid var(--violet); border-radius: 12px; box-shadow: 0 14px 28px rgba(31, 43, 73, .18); pointer-events: none; }
.trend-tooltip[hidden] { display: none; }
.trend-tooltip strong { display: block; margin-bottom: 8px; color: var(--violet); }
.trend-tooltip dl { display: grid; gap: 5px; margin: 0; }
.trend-tooltip dl div { display: flex; justify-content: space-between; gap: 18px; }
.trend-tooltip dt, .trend-tooltip dd { margin: 0; font-size: 12px; }
.trend-tooltip dd { font-weight: 800; text-align: right; }
.trend-point-interactive { cursor: pointer; }
.trend-point-interactive:focus { outline: none; stroke: #202a42; stroke-width: 3px; }
.radar-drilldown { max-width: 920px; margin: 10px auto 0; }
.radar-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.breadcrumb-button { appearance: none; padding: 0; border: 0; color: var(--violet); background: transparent; font: inherit; font-weight: 700; cursor: pointer; }
.radar-detail-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin: 18px 0 15px; }
.radar-detail-heading h3 { margin: 0 0 4px; }
.radar-detail-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.radar-bars { display: grid; gap: 15px; }
.radar-bar-row > div { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.radar-bar-row > div span { color: var(--violet); font-weight: 800; }
.radar-bar-row > i { display: block; height: 9px; margin: 8px 0 5px; overflow: hidden; border-radius: 999px; background: #e3e8f2; }
.radar-bar-row > i b { display: block; height: 100%; border-radius: inherit; background: #182135; }
.radar-bar-row small { color: var(--muted); }
.empty-chart { display: grid; min-height: 220px; place-items: center; color: var(--muted); background: #fafbfe; border: 1px dashed #ccd4e2; border-radius: 12px; font-size: 13px; }
.trend-columns { height: 116px; display: flex; align-items: end; gap: 11px; padding: 0 2px 18px; border-bottom: 1px solid var(--line); }
.trend-column { flex: 1; min-width: 20px; position: relative; background: linear-gradient(to top, #ddd8ff, #765ef0); border-radius: 7px 7px 3px 3px; opacity: .93; }
.trend-column::after { content: attr(data-label); position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); color: #8b96a9; font-size: 9px; white-space: nowrap; }
.trend-column.is-last { background: linear-gradient(to top, #c2f1e4, #1ebc91); }
.weak-list { display: grid; gap: 14px; }
.weak-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px 14px; align-items: center; font-size: 12px; }
.weak-row strong { font-size: 12px; }
.weak-row span { color: var(--muted); }
.weak-bar { grid-column: 1 / -1; height: 7px; border-radius: 99px; background: #edf0f6; overflow: hidden; }
.weak-bar i { display: block; height: 100%; border-radius: inherit; background: #e9a029; }
.weakness-section, .frequent-wrong-section { margin: 0 0 18px; padding: 23px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.weakness-section .section-heading, .frequent-wrong-section .section-heading { align-items: start; }
.weakness-section h2, .frequent-wrong-section h2 { margin: 5px 0 4px; font-size: 20px; }
.weakness-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.weakness-panel { min-width: 0; padding: 18px; background: #fcfcff; }
.weakness-panel > header h3 { margin: 0 0 4px; }
.weakness-panel > header p { margin: 0 0 14px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.weakness-table-wrap { overflow-x: auto; }
.weakness-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.weakness-table th { padding: 8px 7px; color: #7a879c; background: #f3f5fa; font-size: 10px; font-weight: 800; letter-spacing: .03em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.weakness-table th:first-child { border-radius: 8px 0 0 8px; }
.weakness-table th:last-child { border-radius: 0 8px 8px 0; }
.weakness-table td { padding: 10px 7px; border-bottom: 1px solid #e9edf4; color: #526078; vertical-align: middle; white-space: nowrap; }
.weakness-table td:first-child { min-width: 145px; max-width: 250px; white-space: normal; }
.weakness-table td strong { display: block; overflow: hidden; color: #273249; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.weakness-table td small { display: block; margin-top: 3px; overflow: hidden; color: #8a95a9; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.weakness-rate { display: inline-block; min-width: 31px; font-weight: 800; }
.weakness-rate.is-critical { color: #cf3d54; }
.weakness-rate.is-warning { color: #c47a11; }
.weakness-rate.is-watch { color: #5f6680; }
.weakness-meter { display: inline-block; width: 56px; height: 5px; margin-left: 6px; overflow: hidden; border-radius: 99px; background: #e5e9f1; vertical-align: middle; }
.weakness-meter b { display: block; height: 100%; border-radius: inherit; background: #8f98a9; }
.weakness-meter b.is-critical { background: #df4057; }
.weakness-meter b.is-warning { background: #ed9a2c; }
.weakness-empty { display: grid; min-height: 142px; place-items: center; padding: 18px; border: 1px dashed #cfd7e5; border-radius: 11px; color: var(--muted); font-size: 12px; text-align: center; }
.frequent-wrong-list { display: grid; }
.frequent-wrong-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 14px 5px; border-bottom: 1px solid #e8ecf3; }
.frequent-wrong-item:first-child { padding-top: 0; }
.frequent-wrong-item:last-child { padding-bottom: 0; border-bottom: 0; }
.frequent-wrong-item strong { display: block; color: #263249; font-size: 13px; }
.frequent-wrong-item p { display: -webkit-box; margin: 4px 0; overflow: hidden; color: #65728a; font-size: 12px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.frequent-wrong-item small { color: #8b96a9; font-size: 10px; }
.frequent-wrong-score { min-width: 70px; text-align: right; }
.frequent-wrong-score b { display: block; color: #c93d59; font-size: 14px; }
.frequent-wrong-score span { color: #9d5867; font-size: 10px; font-weight: 750; }
.frequent-wrong-review { min-height: 34px; padding: 7px 10px; font-size: 11px; }
.recent-list { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 8px 20px; }
.recent-row { display: grid; grid-template-columns: minmax(150px, 1.5fr) 1fr 1fr auto; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.recent-row:last-child { border-bottom: 0; }
.recent-row-button { width: 100%; border: 0; background: transparent; text-align: left; color: inherit; cursor: pointer; font: inherit; }
.recent-row-button:hover { background: #faf9ff; }
.recent-row strong { display: block; }
.recent-row small { color: var(--muted); font-size: 11px; }
.score-pill { color: #168667; background: var(--mint-soft); padding: 5px 8px; border-radius: 99px; font-size: 11px; font-weight: 750; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 0 0 16px; }
.section-heading p { color: var(--muted); font-size: 13px; margin: 0; }
.exam-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.library-controls { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; gap: 12px; align-items: center; margin-bottom: 28px; }
.library-controls .search { flex: 1; }
.library-empty-state { display: grid; justify-items: center; max-width: 720px; min-height: 380px; margin: 38px auto 0; padding: 48px 28px; border: 1px dashed #d6d0f4; border-radius: 22px; background: radial-gradient(circle at 50% 0, #f5f2ff, #fff 62%); text-align: center; }
.library-empty-icon { display: grid; width: 58px; height: 58px; place-items: center; margin-bottom: 18px; color: var(--violet); border: 1px solid #dcd5ff; border-radius: 18px; background: #fff; box-shadow: 0 10px 20px rgba(93,69,232,.10); }
.library-empty-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.library-empty-state h2 { max-width: 520px; margin: 8px 0 8px; font-size: 23px; letter-spacing: -.45px; }
.library-empty-state p { max-width: 540px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.library-empty-state > div { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.filter-group { display: flex; gap: 7px; flex-wrap: wrap; }
.filter-chip { border: 1px solid var(--line); border-radius: 999px; padding: 8px 10px; color: #647087; background: #fff; cursor: pointer; font-size: 11px; font-weight: 700; }
.filter-chip.is-selected { color: #4d3fca; border-color: var(--violet-line); background: var(--violet-soft); }
.exam-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; min-height: 218px; display: flex; flex-direction: column; transition: transform .16s, box-shadow .16s; }
.exam-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-topline { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.status-label { background: var(--mint-soft); color: #108c6b; border-radius: 99px; padding: 4px 7px; font-size: 10px; font-weight: 750; }
.progress-line { height: 5px; border-radius: 99px; background: #efeff7; margin: 18px 0 15px; overflow: hidden; }
.progress-line i { display: block; height: 100%; border-radius: inherit; background: var(--violet); }
.exam-card p { color: var(--muted); font-size: 12px; line-height: 1.5; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-top: auto; color: var(--muted); font-size: 12px; }
.card-actions { display: flex; align-items: center; gap: 8px; }
.exam-card.is-web-attempt { border-color: #d9d2ff; background: linear-gradient(145deg, #fff, #fbfaff); }
.exam-delete-button { display: inline-grid; width: 34px; height: 34px; place-items: center; padding: 0; color: #a53b55; border: 1px solid #f0ccd5; border-radius: 10px; background: #fff7f8; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.exam-delete-button svg { width: 17px; height: 17px; }
.exam-delete-button:hover { color: #8e2742; border-color: #e6a9b7; background: #ffeff2; }
.library-notice { margin: -4px 0 16px; padding: 11px 13px; color: #2e6c55; border: 1px solid #bce8d8; border-radius: 11px; background: #f0fbf6; font-size: 13px; font-weight: 650; }

.exam-delete-modal { position: fixed; z-index: 110; inset: 0; display: grid; place-items: center; padding: 24px; }
.exam-delete-backdrop { position: absolute; inset: 0; border: 0; background: rgba(21, 28, 46, .46); backdrop-filter: blur(4px); }
.exam-delete-dialog { position: relative; width: min(100%, 480px); padding: 27px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 24px 70px rgba(17, 24, 39, .25); }
.exam-delete-dialog h2 { margin: 7px 0 9px; font-size: 23px; letter-spacing: -.45px; }
.exam-delete-dialog p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.exam-delete-dialog footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.danger-button { border: 1px solid #d94e69; border-radius: 10px; padding: 11px 16px; color: #fff; background: #c93d59; cursor: pointer; font-size: 13px; font-weight: 750; }
.danger-button:hover { background: #b12f49; }
.danger-button:disabled, .primary-button:disabled, .secondary-button:disabled { cursor: wait; opacity: .62; }
.owner-account-action-modal .exam-delete-dialog { width: min(100%, 520px); }
.owner-account-action-modal .form-field { display: grid; gap: 7px; margin: 18px 0 0; }
.owner-account-action-modal textarea { width: 100%; min-height: 88px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; font: 13px/1.45 inherit; resize: vertical; }
.owner-account-action-modal textarea:focus { border-color: var(--violet); outline: 2px solid rgba(100, 77, 238, .14); }
.owner-account-action-modal .builder-notice { margin-top: 13px; }

.exam-layout { max-width: 1080px; margin: 0 auto; }
.exam-start-layout { min-height: min(620px, calc(100vh - 190px)); display: grid; place-items: center; }
.exam-start-card { width: min(100%, 680px); padding: clamp(26px, 5vw, 44px); border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(130deg, #fff, #f7f6ff); box-shadow: var(--shadow); }
.exam-start-card h1 { margin-top: 8px; }
.exam-start-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 28px 0; }
.exam-start-meta div { padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.8); }
.exam-start-meta span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 11px; }
.exam-start-meta strong { font-size: 16px; }
.exam-start-actions { display: flex; justify-content: end; gap: 10px; }
.exam-start-card small { display: block; margin-top: 17px; color: var(--muted); }
.exam-commandbar { position: sticky; top: 90px; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: blur(14px); border: 1px solid var(--line); box-shadow: 0 9px 22px rgba(36, 43, 69, .07); border-radius: 15px; padding: 11px 13px; display: grid; grid-template-columns: auto minmax(180px,1fr) auto auto; gap: 12px; align-items: center; margin-bottom: 18px; }
.timer { font-size: 14px; font-weight: 800; color: #4536b7; padding: 9px 11px; background: var(--violet-soft); border: 1px solid var(--violet-line); border-radius: 9px; }
.question-progress { min-width: 0; }
.question-progress strong { font-size: 13px; display: block; }
.question-progress span { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.command-stat { color: #66738b; font-size: 12px; font-weight: 650; }
.question-navigator { background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 13px; display: flex; align-items: center; justify-content: center; gap: 7px; flex-wrap: wrap; margin-bottom: 18px; }
.nav-question { border: 1px solid var(--line); color: #6b7590; background: #fff; height: 30px; min-width: 30px; border-radius: 8px; cursor: pointer; font-size: 11px; font-weight: 750; }
.nav-question.is-current { background: var(--violet); border-color: var(--violet); color: #fff; }
.nav-question.is-answered { border-color: #9de3cf; color: #0d956f; background: var(--mint-soft); }
.nav-question.is-marked { box-shadow: inset 0 0 0 2px #f3b956; }
.question-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(19px, 3.5vw, 34px); box-shadow: 0 9px 24px rgba(36, 43, 69, .04); }
.question-card-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 23px; }
.exam-question-block + .exam-question-block { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.exam-question-block .question-card-header { margin-bottom: 19px; }
.exam-question-block.is-case-question .question-number { color: #4f40c8; }
.exam-case-progress { margin: 21px 0 0; padding: 12px 14px; border: 1px solid #ded9ff; border-radius: 11px; color: #5546c8; background: #faf9ff; font-size: 13px; text-align: center; }
.question-number { font-size: 14px; font-weight: 800; }
.mark-button { border: 1px solid var(--line); color: #607089; background: #fff; padding: 8px 11px; border-radius: 9px; cursor: pointer; font-size: 12px; font-weight: 700; }
.mark-button.is-marked { color: #9a6700; background: #fff7e6; border-color: #fed68b; }
.question-text { width: 100%; max-width: none; font-size: clamp(18px, 2vw, 22px); line-height: 1.48; letter-spacing: -.25px; }
.clinical-image { margin: 21px 0; min-height: 178px; border-radius: 12px; border: 1px solid #d7e6ee; background: repeating-linear-gradient(0deg, rgba(33, 175, 190, .05) 0, rgba(33, 175, 190, .05) 1px, transparent 1px, transparent 13px), linear-gradient(135deg, #eefbff, #f8fdff); display: grid; place-items: center; color: #4e8190; text-align: center; padding: 22px; }
.clinical-image strong { display: block; color: #276b7d; margin-bottom: 6px; }
.question-rich-text { width: 100%; max-width: none; }
.question-rich-text > :first-child { margin-top: 0; }
.question-rich-text > :last-child { margin-bottom: 0; }
.question-media { display: grid; place-items: center; margin: 21px 0; border: 1px solid #d7e0ed; border-radius: 12px; overflow: hidden; background: #f8fbff; min-height: 42px; padding: 12px; }
.question-media-content { display: grid; width: 100%; justify-items: center; gap: 12px; text-align: center; }
.question-media-content > :is(img, picture, figure, table) { max-width: 100%; margin-right: auto; margin-left: auto; }
.question-media-content img { display: block; width: auto !important; max-width: 100% !important; height: auto !important; max-height: 720px; margin: 0 auto !important; object-fit: contain; }
.question-media-content table { text-align: initial; }
.question-media .question-image-link { display: block; width: fit-content; max-width: 100%; padding: 0; }
.review-media { max-width: 960px; }
.options { display: grid; gap: 10px; margin-top: 25px; }
.option { display: grid; grid-template-columns: 34px 1fr 20px; align-items: center; gap: 11px; width: 100%; border: 1px solid #e1e5ee; background: #fff; border-radius: 11px; min-height: 58px; padding: 11px 15px; text-align: left; color: #344158; cursor: pointer; font-size: 15px; transition: border .14s, background .14s, transform .14s; }
.option:hover { border-color: #bdb3ff; transform: translateX(2px); }
.option-label { color: #738198; font-size: 13px; font-weight: 800; }
.radio { width: 17px; height: 17px; border: 2px solid #9da7b8; border-radius: 50%; }
.option.is-selected { border-color: var(--violet); background: #f7f6ff; color: #2d266e; font-weight: 700; }
.option.is-selected .radio { border: 5px solid var(--violet); }
.exam-footer-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; }
.exam-ready-submit { color: #5b4bc3; font-size: 13px; font-weight: 700; text-align: right; }

.review-layout { max-width: 1080px; margin: 0 auto; }
.review-history-page { max-width: 1200px; margin: 0 auto; }
.review-history-list-view { display: grid; gap: 11px; }
.review-history-server, .review-history-local { margin-top: 26px; }
.review-history-server { padding: 22px; border: 1px solid #dcd6ff; border-radius: 18px; background: linear-gradient(135deg, #faf9ff, #fff); }
.review-history-local .section-heading { padding-inline: 2px; }
.review-history-server .section-heading, .review-history-local .section-heading { margin-bottom: 15px; }
.review-history-server .section-heading h2, .review-history-local .section-heading h2 { margin: 4px 0; font-size: 18px; }
.review-history-server .section-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.review-history-entry.is-server-attempt .review-history-card { border-color: #d9d2ff; background: rgba(255,255,255,.92); }
.review-history-entry { position: relative; }
.review-history-entry.is-web-attempt .review-history-card { border-color: #d9d2ff; }
.review-history-card { display: grid; grid-template-columns: minmax(260px, 1.7fr) minmax(160px, .9fr) minmax(135px, .7fr) 86px; align-items: center; gap: 18px; width: 100%; min-height: 94px; padding: 16px 56px 16px 18px; border: 1px solid var(--line); border-radius: 15px; background: #fff; color: var(--ink); text-align: left; cursor: pointer; transition: border .15s, box-shadow .15s, transform .15s; }
.review-history-card:hover { border-color: #b9b0ff; box-shadow: 0 12px 25px rgba(61, 50, 137, .09); transform: translateY(-1px); }
.review-history-leading { display: flex; align-items: center; gap: 13px; min-width: 0; }
.review-history-leading > span:last-child, .review-history-meta { display: grid; gap: 4px; min-width: 0; }
.review-history-leading strong { overflow: hidden; font-size: 16px; letter-spacing: -.2px; text-overflow: ellipsis; white-space: nowrap; }
.review-history-leading small, .review-history-meta small, .review-history-score small { color: var(--muted); font-size: 11px; }
.review-history-leading small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-history-icon { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border: 1px solid #ddd7ff; border-radius: 12px; color: #5949d7; background: #f3f1ff; }
.review-history-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.review-history-meta b { overflow: hidden; color: #41516b; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.review-history-score { display: grid; justify-items: end; gap: 4px; }
.review-history-score b { color: #4d3fca; font-size: 20px; line-height: 1; }
.review-history-delete { position: absolute; top: 50%; right: 16px; display: grid; width: 28px; height: 28px; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 8px; color: #9a455d; background: transparent; cursor: pointer; font-size: 18px; line-height: 1; transform: translateY(-50%); }
.review-history-delete:hover { border-color: #f0ccd5; background: #fff2f4; }
.review-detail-layout { max-width: 1360px; }
.review-commandbar { position: sticky; top: 86px; z-index: 12; display: grid; grid-template-columns: auto minmax(190px, 1fr) minmax(250px, auto) auto; align-items: center; gap: 14px; margin-bottom: 20px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.94); box-shadow: 0 10px 28px rgba(33, 41, 75, .09); backdrop-filter: blur(14px); }
.review-command-title { display: grid; gap: 3px; min-width: 0; }
.review-command-title strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.review-command-title small { color: var(--muted); font-size: 11px; }
.review-command-score { padding: 9px 11px; border: 1px solid var(--violet-line); border-radius: 9px; background: var(--violet-soft); color: #3e329d; font-size: 12px; font-weight: 700; white-space: nowrap; }
.review-navigator-trigger { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.review-navigator-trigger svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.review-focus-question { padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 10px 28px rgba(33, 41, 75, .05); }
.review-focus-question > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.review-focus-question h1 { margin: 5px 0 0; font-size: clamp(22px, 2.3vw, 30px); }
.review-focus-question .question-text { margin: 25px 0; font-size: 17px; line-height: 1.65; }
.review-focus-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; color: var(--muted); font-size: 12px; font-weight: 700; }
.secondary-button:disabled { cursor: not-allowed; opacity: .48; }
.review-navigator-layer { position: fixed; inset: 0; z-index: 55; display: grid; grid-template-columns: minmax(0, 1fr) min(540px, 100%); }
.review-navigator-backdrop { border: 0; background: rgba(25, 31, 48, .48); cursor: default; }
.review-navigator-panel { height: 100dvh; overflow: auto; padding: 25px; background: #fff; box-shadow: -18px 0 42px rgba(22, 28, 53, .17); }
.review-navigator-panel > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.review-navigator-panel h2 { margin: 5px 0 0; font-size: 23px; }
.review-filter-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin: 20px 0; }
.review-filter-tab { border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; background: #fff; color: #57647a; cursor: pointer; font-size: 12px; font-weight: 750; }
.review-filter-tab.is-active { border-color: var(--violet); background: var(--violet); color: #fff; }
.review-question-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.review-question-jump { min-height: 52px; border: 1px solid #cbd3e1; border-radius: 10px; background: #fff; color: #65718a; cursor: pointer; font-size: 13px; font-weight: 800; }
.review-question-jump.is-correct { border-color: #19b884; background: var(--mint-soft); color: #07956c; }
.review-question-jump.is-wrong { border-color: #f17d8d; background: #fff1f3; color: #df4055; }
.review-question-jump.is-unanswered { border-color: #cbd3e1; color: #718098; }
.review-question-jump.is-marked { box-shadow: inset 0 0 0 2px var(--violet); }
.review-question-jump.is-current { outline: 3px solid rgba(93, 69, 232, .2); outline-offset: 2px; }
.review-navigator-panel footer { display: flex; justify-content: space-between; gap: 12px; padding-top: 20px; color: var(--muted); font-size: 12px; font-weight: 700; }
.review-browser { display: grid; grid-template-columns: minmax(230px, 270px) minmax(0, 1fr); align-items: start; gap: 20px; }
.review-detail { min-width: 0; }
.review-history { position: sticky; top: 22px; overflow: auto; max-height: calc(100vh - 44px); padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.review-history-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.review-history-heading h2 { margin: 5px 0 0; font-size: 17px; }
.review-history-list { display: grid; gap: 8px; margin-top: 13px; }
.review-history-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; padding: 12px; border: 1px solid transparent; border-radius: 11px; background: #fafbfe; color: var(--ink); text-align: left; cursor: pointer; transition: border .14s, background .14s, transform .14s; }
.review-history-item:hover { border-color: #c9c1ff; background: #f7f5ff; transform: translateY(-1px); }
.review-history-item.is-selected { border-color: var(--violet); background: var(--violet-soft); box-shadow: inset 3px 0 0 var(--violet); }
.review-history-item-main, .review-history-item-meta { display: grid; gap: 4px; min-width: 0; }
.review-history-item-main strong { font-size: 14px; }
.review-history-item-main small, .review-history-item-meta small { overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.review-history-item-meta { justify-items: end; text-align: right; }
.review-history-item-meta b { color: #4d3fca; font-size: 13px; }
.score-hero { padding: 25px; border: 1px solid var(--violet-line); background: linear-gradient(120deg, #f5f3ff, #fff); border-radius: 17px; display: flex; align-items: center; gap: 22px; margin-bottom: 25px; }
.score-ring { width: 96px; height: 96px; display: grid; place-items: center; flex: none; border-radius: 50%; color: #4e3bd0; font-size: 18px; font-weight: 850; letter-spacing: -.6px; line-height: 1; background: conic-gradient(var(--violet) 0 68%, #e7e4ff 68% 100%); position: relative; }
.score-ring::after { content: ""; position: absolute; inset: 9px; border-radius: inherit; background: #f9f8ff; }
.score-ring span { position: relative; z-index: 1; }
.score-hero p { color: var(--muted); margin-bottom: 0; }
.review-question { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 23px; margin-bottom: 14px; }
.review-question header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review-question .question-text { font-size: 16px; margin: 18px 0; }
.review-option { padding: 11px 14px; border-radius: 9px; border: 1px solid var(--line); margin: 7px 0; font-size: 14px; }
.review-option.correct { background: var(--mint-soft); color: #087d5e; border-color: #a8e9d8; font-weight: 700; }
.review-option.wrong { background: #fff0f2; color: #b73147; border-color: #ffc6cf; }
.explanation { color: #4f4787; background: #f3f1ff; border-left: 3px solid var(--violet); padding: 14px; border-radius: 0 10px 10px 0; margin-top: 16px; line-height: 1.55; font-size: 14px; }
.review-feedback-action { display: flex; justify-content: flex-end; margin-top: 12px; }
.feedback-button { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 7px 10px; border: 1px solid #e6cda8; border-radius: 9px; color: #996014; background: #fffaf1; cursor: pointer; font: 750 12px inherit; transition: border .16s, background .16s, color .16s; }
.feedback-button:hover { border-color: #d69a45; color: #7f4908; background: #fff4df; }
.feedback-button svg { width: 15px; height: 15px; flex: 0 0 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feedback-sent { display: inline-flex; align-items: center; min-height: 30px; padding: 6px 9px; border: 1px solid #bce7d7; border-radius: 8px; color: #087d5e; background: var(--mint-soft); font-size: 11px; font-weight: 800; }
.feedback-modal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 24px; }
.feedback-modal-backdrop { position: absolute; inset: 0; border: 0; background: rgba(21, 28, 46, .46); backdrop-filter: blur(4px); cursor: default; }
.feedback-dialog { position: relative; width: min(100%, 650px); max-height: min(760px, calc(100dvh - 48px)); overflow: auto; padding: 25px; border: 1px solid #e5e1f4; border-radius: 19px; background: #fff; box-shadow: 0 26px 70px rgba(18, 26, 53, .25); }
.feedback-dialog > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.feedback-dialog h2 { margin: 5px 0 7px; font-size: 24px; }
.feedback-dialog p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.feedback-target { display: grid; gap: 4px; padding: 14px; border: 1px solid var(--violet-line); border-radius: 12px; background: #f8f7ff; }
.feedback-target > span { color: var(--violet); font-size: 10px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.feedback-target strong { font-size: 14px; }
.feedback-target small { color: var(--muted); font-size: 12px; }
.feedback-category-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 20px 0; padding: 0; border: 0; }
.feedback-category-list legend { grid-column: 1 / -1; margin-bottom: 3px; color: #334158; font-size: 12px; font-weight: 800; }
.feedback-category { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; color: #58667e; background: #fff; cursor: pointer; font: 700 12px inherit; text-align: left; transition: border .16s, background .16s, color .16s; }
.feedback-category:hover { border-color: #b7adff; background: #faf9ff; color: #4d3fca; }
.feedback-category.is-selected { border-color: var(--violet); background: var(--violet-soft); color: #493ac7; }
.feedback-category svg { width: 15px; height: 15px; flex: 0 0 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feedback-note-field textarea { width: 100%; min-height: 112px; resize: vertical; margin-top: 7px; padding: 11px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font: inherit; line-height: 1.5; }
.feedback-note-field textarea:focus { border-color: #aaa0ff; outline: 3px solid rgba(93, 69, 232, .12); }
.feedback-dialog > footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.feedback-dialog > footer > small { max-width: 330px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.feedback-dialog > footer > div { display: flex; gap: 8px; }
.review-case { overflow: visible; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.review-case-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 21px clamp(23px, 3vw, 42px); border-bottom: 1px solid var(--line); border-radius: 16px 16px 0 0; background: #fff; }
.review-case-header h2 { margin: 4px 0 0; font-size: 18px; }
.case-header-actions { display: flex; align-items: center; justify-content: end; gap: 10px; }
.case-pin-button { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; color: #5b6880; background: #fff; cursor: pointer; font: 750 12px inherit; transition: color .16s, border .16s, background .16s, box-shadow .16s; }
.case-pin-button:hover { border-color: #afa5ff; color: #4d3fca; background: #faf9ff; }
.case-pin-button.is-pinned { border-color: var(--violet); color: #fff; background: var(--violet); box-shadow: 0 7px 15px rgba(93, 69, 232, .2); }
.case-pin-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }
.case-shared-context { margin: 20px clamp(23px, 3vw, 42px) 0; padding: 18px clamp(18px, 2.4vw, 30px); border: 1px solid #ded9ff; border-left: 4px solid var(--violet); border-radius: 0 13px 13px 0; background: linear-gradient(100deg, #f8f7ff, #fbfbff); }
.exam-case-context { margin: 0 0 22px; }
.exam-case-context .eyebrow { display: block; margin-bottom: 8px; }
.case-shared-context.is-pinned { position: sticky; top: 158px; z-index: 9; box-shadow: 0 12px 28px rgba(57, 43, 155, .14); }
.case-shared-stem { padding: 0; line-height: 1.72; font-size: 16px; }
.case-shared-media { margin: 18px 0 0; }
.case-subquestions { padding: 0 clamp(23px, 3vw, 42px); }
.case-subquestion { padding: 22px 0; border-top: 1px solid var(--line); }
.case-subquestion:first-child { margin-top: 18px; }
.case-subquestion header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; color: var(--ink); }
.case-subquestion header span { color: var(--muted); font-size: 12px; text-align: right; }
.case-subquestion .question-text { margin: 14px 0; font-size: 16px; }

.admin-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr); gap: 18px; }
.admin-page { max-width: 1440px; margin: 0 auto; }
.admin-console { max-width: 1440px; margin: 0 auto; }
.admin-console-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 18px; align-items: start; }
.admin-module-nav { position: sticky; top: 94px; display: grid; gap: 5px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.admin-module-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 39px; padding: 9px 10px; border: 0; border-radius: 9px; color: #617087; background: transparent; cursor: pointer; text-align: left; font: 750 12px inherit; }
.admin-module-link:hover { color: #4d3fca; background: #f7f5ff; }
.admin-module-link.is-active { color: #4d3fca; background: var(--violet-soft); }
.admin-module-link b { display: inline-grid; place-items: center; min-width: 19px; height: 19px; border-radius: 999px; color: #fff; background: var(--violet); font-size: 10px; }
.owner-module { min-height: 470px; padding: 25px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.owner-module > h2 { margin: 5px 0 7px; font-size: 24px; }
.owner-module > p { max-width: 700px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.owner-shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.owner-shortcut { display: grid; gap: 7px; min-height: 130px; padding: 15px; border: 1px solid #e5e1f5; border-radius: 12px; color: var(--ink); background: #fbfaff; cursor: pointer; text-align: left; transition: border .16s, box-shadow .16s, transform .16s; }
.owner-shortcut:hover { border-color: #b9afff; box-shadow: 0 10px 22px rgba(68, 53, 159, .09); transform: translateY(-1px); }
.owner-shortcut strong { font-size: 13px; }
.owner-shortcut span, .owner-coming-card span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.owner-coming-card { display: grid; gap: 6px; margin-top: 22px; padding: 17px; border: 1px dashed #cdd4e0; border-radius: 12px; background: #fafbfe; }
.owner-coming-card strong { color: #435169; font-size: 13px; }
.access-request-list { display: grid; gap: 10px; margin-top: 20px; }
.access-request-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 15px; border: 1px solid #e6e1fa; border-radius: 13px; background: #fbfaff; }
.access-request-person { display: grid; gap: 3px; min-width: 0; }
.access-request-person strong { color: var(--ink); font-size: 14px; }
.access-request-person span, .access-request-person small, .access-request-meta small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.access-request-meta { display: grid; justify-items: center; gap: 2px; min-width: 40px; }
.access-request-meta b { display: inline-grid; place-items: center; min-width: 27px; height: 27px; padding: 0 7px; border-radius: 999px; color: #fff; background: var(--violet); font-size: 12px; }
.access-request-actions { display: flex; gap: 8px; }
.owner-account-layout { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr); gap: 16px; margin-top: 20px; }
.owner-status-filter { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.owner-status-filter button { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 6px 9px; border: 1px solid #e1e7ef; border-radius: 999px; color: #65738a; background: #fff; cursor: pointer; font: 600 11px inherit; }
.owner-status-filter button:hover { border-color: #bdcfea; color: #3f5f87; background: #f5faff; }
.owner-status-filter button.is-active { border-color: #c9bfff; color: #5440cf; background: #f3f0ff; }
.owner-status-filter b { display: inline-grid; min-width: 17px; height: 17px; place-items: center; border-radius: 99px; color: inherit; background: rgba(102, 84, 216, .1); font-size: 9px; font-weight: 650; }
.owner-account-list { display: grid; align-content: start; gap: 8px; max-height: 520px; overflow: auto; padding-right: 4px; }
.owner-account-row { width: 100%; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 64px; padding: 11px; border: 1px solid #e1e8f1; border-radius: 12px; color: var(--ink); background: rgba(255,255,255,.8); cursor: pointer; text-align: left; transition: background .16s ease, border-color .16s ease, transform .16s ease; }
.owner-account-row:hover { border-color: #bcd6e8; background: #f4f9ff; transform: translateY(-1px); }
.owner-account-row.is-selected { border-color: #b9abff; background: linear-gradient(105deg, #f2efff, #f5fbff); box-shadow: 0 8px 20px rgba(83, 67, 183, .08); }
.owner-account-row > span:nth-child(2) { display: grid; gap: 3px; min-width: 0; }
.owner-account-row strong { overflow: hidden; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.owner-account-row small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.owner-account-avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: #365c87; background: #e5f0ff; font-size: 12px; font-weight: 650; }
.owner-account-chevron { color: #8795aa; font-size: 22px; line-height: 1; }
.owner-account-detail { display: grid; align-content: start; gap: 17px; min-height: 300px; padding: 19px; border: 1px solid #dce7ef; border-radius: 14px; background: linear-gradient(145deg, #fff, #f6fbff); }
.owner-account-detail > header { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.owner-account-detail h3 { margin: 4px 0 0; font-size: 17px; font-weight: 650; overflow-wrap: anywhere; }
.owner-account-tabs { display: flex; gap: 3px; overflow-x: auto; padding: 4px; border: 1px solid #e6ebf2; border-radius: 11px; background: rgba(248,250,253,.9); }
.owner-account-tabs button { flex: none; min-height: 30px; padding: 5px 8px; border: 0; border-radius: 7px; color: #738097; background: transparent; cursor: pointer; font: 600 10px inherit; white-space: nowrap; }
.owner-account-tabs button:hover { color: #4f3dca; background: #f0edff; }
.owner-account-tabs button.is-active { color: #4f3dca; background: #fff; box-shadow: 0 2px 7px rgba(49,64,95,.08); }
.owner-account-tab-panel { min-height: 167px; }
.owner-account-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 0; }
.owner-account-facts > div { display: grid; gap: 3px; padding: 10px; border: 1px solid #e8edf3; border-radius: 10px; background: rgba(255,255,255,.78); }
.owner-account-facts dt { color: #748197; font-size: 10px; font-weight: 600; }
.owner-account-facts dd { margin: 0; color: #344158; font-size: 12px; font-weight: 500; line-height: 1.35; }
.owner-account-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.owner-account-actions .primary-button, .owner-account-actions .secondary-button, .owner-account-actions .danger-button { min-height: 35px; padding: 8px 11px; font-size: 11px; font-weight: 650; }
.owner-device-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.owner-device-heading h4 { margin: 0; font-size: 13px; font-weight: 650; }
.owner-device-heading span { color: var(--muted); font-size: 11px; }
.owner-device-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.owner-device-list li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 9px; border: 1px solid #e6edf1; border-radius: 10px; background: rgba(255,255,255,.72); }
.owner-device-list li > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.owner-device-list strong { overflow: hidden; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.owner-device-list small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.owner-device-icon { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; color: #187a68; background: #e6f8f2; font-size: 11px; font-weight: 650; }
.owner-device-state { padding: 4px 6px; border-radius: 99px; color: #168667; background: #eafaf4; font-size: 9px; font-weight: 600; }
.owner-device-state.is-revoked { color: #9c5060; background: #fff0f2; }
.owner-device-list .owner-device-empty { display: block; color: var(--muted); font-size: 12px; }
.owner-detail-note, .owner-audit-empty { display: grid; gap: 5px; padding: 13px; border: 1px solid #dde7f0; border-left: 3px solid #75a9cc; border-radius: 0 10px 10px 0; color: #60708a; background: #f7fbfe; font-size: 12px; line-height: 1.5; }
.owner-detail-note strong, .owner-audit-empty strong { color: #39536f; font-size: 12px; font-weight: 650; }
.owner-detail-hint { margin: 12px 0 0; color: #77869a; font-size: 11px; line-height: 1.5; }
.owner-settings-preview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.owner-settings-preview > div { display: grid; gap: 4px; padding: 13px; border: 1px solid #e7ecf2; border-radius: 10px; background: rgba(255,255,255,.76); }
.owner-settings-preview span { color: #748197; font-size: 10px; }
.owner-settings-preview strong { color: #344158; font-size: 13px; font-weight: 600; }
.owner-access-requests { margin-top: 26px; padding-top: 24px; border-top: 1px solid #e3e8f0; }
.owner-access-requests .section-heading h2 { font-size: 18px; font-weight: 650; }
.correction-stage-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 18px 0; }
.correction-stage-row > div { display: grid; gap: 4px; padding: 12px; border: 1px solid #e5e9f0; border-radius: 11px; background: linear-gradient(145deg, #fff, #f8fbff); }
.correction-stage-row span { color: #718096; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.correction-stage-row strong { color: #263b56; font-size: 21px; font-weight: 650; }
.owner-correction-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, .38fr); gap: 16px; align-items: start; }
.owner-correction-layout .feedback-inbox-list { margin-top: 0; }
.owner-correction-guide { display: grid; gap: 12px; padding: 16px; border: 1px solid #dfd8ff; border-radius: 13px; background: linear-gradient(145deg, #fbfaff, #f3f8ff); }
.owner-correction-guide ol { display: grid; gap: 8px; margin: 0; padding-left: 19px; color: #5f6d84; font-size: 12px; line-height: 1.45; }
.owner-correction-guide small { padding-top: 10px; border-top: 1px solid #e3dfff; color: #6653d1; font-size: 11px; }
.owner-placeholder { display: grid; align-content: start; gap: 11px; }
.owner-placeholder > h2, .owner-placeholder > p { margin: 0; }
.admin-mode-note { align-self: center; padding: 8px 10px; border: 1px solid var(--violet-line); border-radius: 999px; color: #4d3fca; background: var(--violet-soft); font-size: 11px; font-weight: 800; }
.admin-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.admin-summary-grid > article { display: grid; gap: 7px; min-height: 130px; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.admin-summary-grid span, .admin-summary-grid small { color: var(--muted); font-size: 12px; }
.admin-summary-grid strong { color: var(--ink); font-size: 28px; letter-spacing: -.8px; }
.admin-summary-grid small { color: #66748c; }
.admin-feedback-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .75fr); gap: 18px; align-items: start; }
.feedback-inbox-panel { min-height: 430px; }
.feedback-inbox-list { display: grid; gap: 10px; margin-top: 18px; }
.feedback-inbox-item { display: grid; gap: 7px; padding: 15px; border: 1px solid #e6eaf1; border-radius: 12px; background: #fff; }
.feedback-inbox-item > header, .feedback-inbox-item > footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.feedback-inbox-item > header small, .feedback-inbox-item > footer small, .feedback-item-meta { color: var(--muted); font-size: 11px; }
.feedback-inbox-item > strong { font-size: 14px; }
.feedback-inbox-item > p { margin: 1px 0; color: #46546c; font-size: 13px; line-height: 1.5; }
.feedback-inbox-item .secondary-button, .feedback-inbox-item .primary-button { min-height: 32px; padding: 6px 9px; font-size: 11px; }
.feedback-inbox-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.feedback-source-dialog { width: min(100%, 980px); }
.feedback-source-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.feedback-source-meta span { display: grid; gap: 3px; padding: 10px 11px; border: 1px solid #e0e3ef; border-radius: 10px; color: #46546c; background: #fbfcff; font-size: 12px; overflow-wrap: anywhere; }
.feedback-source-meta b { color: #728099; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.feedback-source-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.feedback-source-field { display: grid; gap: 7px; padding: 12px; border: 1px solid #e0e3ef; border-radius: 11px; color: #324159; background: #fff; overflow-wrap: anywhere; }
.feedback-source-field > span { color: #6c5ed5; font-size: 10px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.feedback-source-field > div { font-size: 13px; line-height: 1.55; }
.feedback-source-field > div > :first-child { margin-top: 0; }
.feedback-source-field > div > :last-child { margin-bottom: 0; }
.feedback-source-field em { color: #8591a5; font-size: 12px; font-style: normal; }
.feedback-source-field.is-wide, .feedback-source-choices, .feedback-source-image { margin-top: 12px; }
.feedback-source-choices ol { display: grid; gap: 7px; margin: 0; padding-left: 25px; }
.feedback-source-choices li { padding: 9px 10px; border: 1px solid #e6e9f0; border-radius: 8px; background: #fbfcff; font-size: 13px; line-height: 1.45; }
.feedback-source-choices li > div { display: inline; margin-left: 5px; }
.feedback-source-choices small { color: #637086; font-size: 12px; }
.feedback-source-tags { grid-column: 1 / -1; }
.feedback-tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.feedback-tag-list b { padding: 4px 8px; border-radius: 999px; color: #5140c7; background: #f0edff; font-size: 11px; font-weight: 750; }
.feedback-source-image .question-media { margin: 0; }
.feedback-source-detected { display: block; margin-top: 12px; color: #728099; font-size: 11px; }
.feedback-status { display: inline-flex; align-items: center; min-height: 24px; padding: 4px 8px; border-radius: 999px; font-size: 10px; font-weight: 850; }
.feedback-status.is-new { color: #9a5a03; background: #fff2dc; }
.feedback-status.is-reviewing { color: #315aad; background: #eaf1ff; }
.feedback-status.is-accepted { color: #5140c7; background: var(--violet-soft); }
.feedback-status.is-resolved { color: #087d5e; background: var(--mint-soft); }
.feedback-empty { display: grid; gap: 5px; place-items: center; min-height: 270px; padding: 28px; border: 1px dashed #cfd6e2; border-radius: 12px; color: var(--muted); text-align: center; }
.feedback-empty strong { color: #3e4d64; }
.feedback-empty span { max-width: 310px; font-size: 13px; line-height: 1.55; }
.admin-side-stack { display: grid; gap: 18px; }
.correction-queue-panel, .admin-sync-panel { display: grid; gap: 12px; }
.correction-queue-panel h2, .admin-sync-panel h2 { margin: 0; }
.correction-queue-panel p, .admin-sync-panel li { color: #5d6b82; font-size: 13px; line-height: 1.55; }
.correction-queue-panel > small { padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.5; }
.correction-queue-list { display: grid; gap: 8px; }
.correction-queue-list > div { display: grid; gap: 4px; padding: 10px; border: 1px solid #e3defd; border-radius: 10px; background: #faf9ff; }
.correction-queue-list strong { font-size: 13px; }
.correction-queue-list span { color: var(--muted); font-size: 11px; }
.admin-sync-panel ol { display: grid; gap: 8px; margin: 0; padding-left: 20px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
@media (max-width: 820px) { .owner-account-layout, .owner-correction-layout { grid-template-columns: 1fr; } .owner-account-list { max-height: 350px; } .owner-shortcuts, .correction-stage-row { grid-template-columns: 1fr; } }
.toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin: 13px 0 17px; }
.search { width: 100%; border: 1px solid var(--line); padding: 10px 11px; border-radius: 9px; color: var(--ink); }
.question-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.question-table th { color: var(--muted); background: #fafbfe; text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.question-table th, .question-table td { padding: 13px 10px; border-bottom: 1px solid var(--line); }
.table-title { font-weight: 700; color: #303b50; }
.soft-tag { color: #4d3fca; background: var(--violet-soft); padding: 4px 7px; border-radius: 99px; font-size: 10px; font-weight: 750; }
.access-row { display: flex; justify-content: space-between; gap: 9px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.access-row span:last-child { color: var(--muted); font-size: 12px; }
.notice { background: #f9faff; border: 1px dashed #cbd3e6; border-radius: 11px; padding: 13px; color: #65718a; font-size: 12px; line-height: 1.55; }
.auth-view { min-height: calc(100dvh - 128px); display: grid; place-items: center; }
.auth-card { width: min(100%, 980px); display: grid; grid-template-columns: 1fr .94fr; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.auth-art { padding: clamp(28px, 5vw, 55px); min-height: 500px; color: white; background: linear-gradient(145deg, #5540da, #8e6cfa 60%, #2bcfc3); position: relative; overflow: hidden; }
.auth-art::after { content: ""; position: absolute; inset: auto -85px -110px auto; width: 330px; height: 330px; border: 28px solid rgba(255,255,255,.15); border-radius: 50%; }
.auth-art h1 { margin: 54px 0 12px; font-size: clamp(28px, 4vw, 43px); max-width: 11ch; }
.auth-art p { color: rgba(255,255,255,.82); max-width: 35ch; line-height: 1.6; }
.auth-points { margin-top: 42px; display: grid; gap: 12px; color: rgba(255,255,255,.89); font-size: 13px; }
.auth-points span::before { content: "✓"; display: inline-grid; place-items: center; width: 19px; height: 19px; margin-right: 8px; color: #4d3fca; border-radius: 50%; background: #fff; font-size: 11px; font-weight: 800; }
.auth-form { padding: clamp(28px, 5vw, 55px); display: flex; flex-direction: column; justify-content: center; }
.auth-form h2 { font-size: 25px; margin-bottom: 7px; }
.auth-form > p { color: var(--muted); font-size: 14px; margin-bottom: 29px; }
.auth-google-button { min-height: 44px; display: grid; place-items: center; color: var(--muted); font-size: 0.9rem; }
.auth-google-button > div { max-width: 100%; border-radius: 999px; overflow: hidden; }
.form-field { display: grid; gap: 7px; margin-bottom: 16px; color: #54617a; font-size: 12px; font-weight: 700; }
.form-field input { border: 1px solid var(--line); border-radius: 10px; padding: 12px; font: inherit; color: var(--ink); }
.form-field input:focus { border-color: var(--violet); outline: 3px solid rgba(93, 69, 232,.12); }
.auth-form .primary-button { width: 100%; margin-top: 7px; }
.auth-form small { color: var(--muted); text-align: center; line-height: 1.55; margin: 18px 0 0; }

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 76px minmax(0, 1fr); }
  .sidebar { padding: 24px 10px 16px; }
  .brand { margin: 0 auto 33px; }
  .brand > span:last-child, .nav-item { font-size: 0; justify-content: center; padding: 12px 6px; }
  .nav-icon { width: 19px; height: 19px; flex-basis: 19px; }
  .mini-profile span:nth-child(2), .mini-profile .quiet-button, .sidebar-footer p { display: none; }
  .mini-profile { justify-content: center; padding: 12px 0; }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .score-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exam-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .weakness-grid { grid-template-columns: 1fr; }
  .radar-chart-wrap { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-feedback-layout { grid-template-columns: 1fr; }
  .admin-console-layout { grid-template-columns: 1fr; }
  .admin-module-nav { position: static; display: flex; overflow-x: auto; padding: 8px; }
  .admin-module-link { flex: 0 0 auto; }
  .review-history-card { grid-template-columns: minmax(240px, 1.4fr) minmax(150px, .8fr) 82px; }
  .review-history-format { display: none; }
  .review-commandbar { grid-template-columns: auto minmax(0, 1fr) auto; }
  .review-command-score { grid-column: 2 / -1; }
  .review-browser { grid-template-columns: 1fr; }
  .review-history { position: static; max-height: 310px; }
}
@media (max-width: 680px) {
  .app-shell { display: block; }
  .sidebar { display: none; }
  .app-shell.is-mobile-nav-open .sidebar { display: flex; position: fixed; inset: 0 58px 0 0; height: 100dvh; z-index: 40; padding: 24px 16px; box-shadow: 18px 0 35px rgba(18,25,48,.16); }
  .app-shell.is-mobile-nav-open .brand { margin: 0 9px 34px; }
  .app-shell.is-mobile-nav-open .brand > span:last-child, .app-shell.is-mobile-nav-open .nav-item { font-size: 14px; justify-content: flex-start; padding: 12px 13px; }
  .app-shell.is-mobile-nav-open .nav-icon { width: 18px; height: 18px; flex-basis: 18px; }
  .app-shell.is-mobile-nav-open .mini-profile span:nth-child(2), .app-shell.is-mobile-nav-open .mini-profile .quiet-button, .app-shell.is-mobile-nav-open .sidebar-footer p { display: block; }
  .topbar { height: 64px; padding: 0 16px; }
  .mobile-menu { display: block; }
  .workspace-switcher { display: none; }
  .view-host { padding: 24px 16px 38px; }
  .page-heading { align-items: start; flex-direction: column; margin-bottom: 22px; }
  .page-heading .primary-button { width: 100%; }
  .dashboard-heading-actions, .dashboard-controls { width: 100%; }
  .dashboard-controls { flex-wrap: wrap; }
  .dashboard-filter-field { flex: 1 1 150px; }
  .hero { min-height: 236px; border-radius: 16px; }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .score-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -8px; }
  .weakness-section, .frequent-wrong-section { padding: 18px; }
  .frequent-wrong-item { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .frequent-wrong-review { grid-column: 1 / -1; width: fit-content; }
  .library-empty-state { min-height: 320px; margin-top: 18px; padding: 38px 20px; }
  .performance-heading, .performance-toolbar, .radar-context { align-items: stretch; flex-direction: column; }
  .performance-tabs { width: 100%; }
  .performance-tab { flex: 1; }
  .chart-caption { margin-left: 0; }
  .trend-chart svg { height: 250px; }
  .radar-legend { grid-template-columns: 1fr; }
  .case-header-actions { align-items: flex-end; flex-direction: column; }
  .case-shared-context.is-pinned { top: 84px; }
  .exam-grid { grid-template-columns: 1fr; }
  .exam-start-meta { grid-template-columns: 1fr; }
  .exam-start-actions { flex-direction: column-reverse; }
  .exam-start-actions button { width: 100%; }
  .exam-commandbar { top: 74px; grid-template-columns: 1fr auto; gap: 8px; padding: 10px; }
  .question-progress { grid-column: 1 / -1; order: -1; }
  .command-stat { display: none; }
  .timer { font-size: 12px; }
  .question-card { border-radius: 15px; padding: 19px; }
  .feedback-modal { padding: 14px; }
  .feedback-dialog { max-height: calc(100dvh - 28px); padding: 19px; border-radius: 16px; }
  .feedback-category-list { grid-template-columns: 1fr; }
  .feedback-dialog > footer { align-items: flex-start; flex-direction: column; }
  .feedback-dialog > footer > div { width: 100%; }
  .feedback-dialog > footer button { flex: 1; }
  .feedback-source-meta, .feedback-source-grid { grid-template-columns: 1fr; }
  .feedback-source-tags { grid-column: auto; }
  .feedback-inbox-item > footer { align-items: flex-start; flex-direction: column; }
  .feedback-inbox-actions { width: 100%; justify-content: stretch; }
  .feedback-inbox-actions > button { flex: 1; }
  .admin-summary-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .admin-summary-grid > article { min-height: 112px; padding: 14px; }
  .admin-summary-grid strong { font-size: 24px; }
  .owner-module { min-height: 0; padding: 19px; }
  .owner-shortcuts { grid-template-columns: 1fr; }
  .notification-panel { top: 58px; right: 12px; }
  .library-controls { align-items: stretch; flex-direction: column; }
  .question-text { font-size: 18px; }
  .option { grid-template-columns: 25px 1fr 18px; padding: 11px; font-size: 14px; }
  .score-hero { align-items: flex-start; }
  .review-history-card { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; min-height: 82px; padding-right: 52px; }
  .review-history-meta { display: none; }
  .review-commandbar { position: static; grid-template-columns: 1fr auto; gap: 10px; }
  .review-commandbar .secondary-button { grid-column: 1 / -1; width: fit-content; }
  .review-command-title { grid-column: 1 / -1; }
  .review-command-score { grid-column: 1 / -1; overflow: auto; white-space: normal; }
  .review-commandbar .primary-button { width: 100%; }
  .review-focus-question { padding: 19px; }
  .review-focus-question > header { align-items: stretch; flex-direction: column; }
  .review-focus-question .question-text { font-size: 16px; }
  .review-navigator-layer { grid-template-columns: 28px minmax(0, 1fr); }
  .review-navigator-panel { padding: 20px 16px; }
  .review-question-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
  .review-question-jump { min-height: 47px; font-size: 12px; }
  .recent-row { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .recent-row > :nth-child(2), .recent-row > :nth-child(3) { display: none; }
  .auth-view { min-height: calc(100dvh - 112px); }
  .is-login .view-host { padding: 16px; }
  .is-login .auth-view { min-height: calc(100dvh - 32px); }
  .auth-card { grid-template-columns: 1fr; }
  .auth-art { min-height: auto; }
  .auth-art h1 { margin-top: 26px; }
  .auth-points { display: none; }
  .question-table th:nth-child(3), .question-table td:nth-child(3) { display: none; }
  .dashboard-heading-actions { align-items: stretch; }
  .dashboard-retry-button, .dashboard-heading-actions .primary-button { flex: 1 1 100%; }
  .review-case-header { align-items: flex-start; flex-direction: column; }
  .case-header-actions { width: 100%; align-items: center; flex-direction: row; justify-content: space-between; }
  .case-pin-button span { display: none; }
  .case-pin-button { min-width: 36px; justify-content: center; padding-inline: 9px; }
}

.builder-page { max-width: 1540px; margin: 0 auto; }
.builder-deck-row small, .builder-list-note { color: var(--muted); font-size: 12px; }
.builder-layout { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(330px, .7fr); gap: 22px; align-items: start; }
.builder-decks, .builder-settings { padding: 27px; }
.builder-decks { border-color: #dce7f5; background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(244,248,255,.96)); }
.builder-settings { border-color: #e2dcfa; background: linear-gradient(155deg, rgba(255,255,255,.98), rgba(249,247,255,.96)); }
.builder-decks-heading { margin-bottom: 18px; }
.builder-decks-heading p { margin-bottom: 0; }
.builder-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-bottom: 13px; }
.builder-tree-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: end; gap: 6px; }
.builder-tree-actions .quiet-button, .builder-filter-button { min-height: 38px; padding: 7px 10px; border-radius: 9px; font-size: 12px; font-weight: 750; }
.builder-tree-actions .quiet-button { margin-left: 0; border: 1px solid transparent; }
.builder-tree-actions .quiet-button:hover { color: var(--violet); background: #f5f3ff; border-color: #e4defe; }
.builder-tree-actions .quiet-button:disabled { opacity: .48; cursor: not-allowed; }
.builder-tree-actions .quiet-button:disabled:hover { color: var(--muted); border-color: transparent; background: transparent; }
.builder-filter-button { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--line); color: #59657a; background: #fff; cursor: pointer; }
.builder-filter-button b { display: grid; min-width: 18px; height: 18px; place-items: center; padding: 0 5px; border-radius: 999px; color: #fff; background: #78849a; font-size: 10px; }
.builder-filter-button:hover:not(:disabled), .builder-filter-button.is-active { color: #4d3fca; border-color: #cfc6ff; background: #f5f3ff; }
.builder-filter-button.is-active b { background: var(--violet); }
.builder-filter-button:disabled { opacity: .5; cursor: not-allowed; }
.builder-scope-control { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 16px; padding: 12px 14px; border: 1px solid #e9e6f6; border-radius: 12px; background: #fafaff; }
.builder-scope-control > div { display: grid; gap: 3px; }
.builder-scope-control strong { color: var(--ink); font-size: 13px; }
.builder-scope-control small { color: var(--muted); font-size: 11px; }
.builder-allocation-tray { display: grid; gap: 11px; margin: 0 0 16px; padding: 14px; border: 1px solid #ded8ff; border-radius: 14px; background: linear-gradient(135deg, #faf9ff, #fff); }
.builder-resume-tray { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 16px; padding: 14px; border: 1px solid #c9f0e3; border-radius: 14px; background: #f5fffb; }
.builder-resume-tray > div:first-child { display: grid; gap: 3px; }
.builder-resume-tray strong { color: var(--ink); font-size: 13px; }
.builder-resume-tray small { color: #64748b; font-size: 11px; line-height: 1.45; }
.builder-resume-tray > div:last-child { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.builder-allocation-tray.is-empty { border-style: dashed; color: var(--muted); background: #fcfcff; }
.builder-allocation-tray > header, .builder-allocation-tray footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.builder-allocation-tray header > div { display: grid; gap: 3px; }
.builder-allocation-tray header strong { color: var(--ink); font-size: 13px; }
.builder-allocation-tray .eyebrow { font-size: 10px; }
.builder-allocation-tray > p { margin: 0; color: #64748b; font-size: 12px; line-height: 1.5; }
.builder-allocation-tray footer { color: #65718a; font-size: 11px; line-height: 1.4; }
.builder-allocation-tray footer small { color: #5546c8; white-space: nowrap; }
.allocation-status { display: inline-flex; align-items: center; min-height: 26px; padding: 4px 8px; border-radius: 999px; color: #5a4bc7; background: #eeebff; font-size: 11px; font-weight: 800; }
.allocation-status.is-error { color: #a14645; background: #fff0f0; }
.allocation-status.is-warning { color: #936219; background: #fff6df; }
.allocation-status.is-empty { color: #68748a; background: #f1f3f7; }
.builder-allocation-list { display: grid; gap: 7px; }
.builder-allocation-row { display: grid; grid-template-columns: minmax(0, 1fr) 112px 34px; align-items: end; gap: 10px; padding: 9px 9px 9px 11px; border: 1px solid #e9e6f7; border-radius: 10px; background: #fff; }
.builder-allocation-row > div { display: grid; gap: 3px; min-width: 0; }
.builder-allocation-row strong { overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.builder-allocation-row small { color: var(--muted); font-size: 10px; }
.builder-allocation-row label { display: grid; gap: 3px; }
.builder-allocation-row label > span { color: #728099; font-size: 10px; font-weight: 750; }
.builder-allocation-row input { width: 100%; min-height: 32px; padding: 5px 8px; border: 1px solid #d9ddec; border-radius: 8px; color: var(--ink); background: #fff; font: 750 12px inherit; }
.builder-allocation-row input:focus { outline: 2px solid #cfc7ff; border-color: #8c7dff; }
.builder-allocation-remove { width: 34px; height: 32px; padding: 0; color: #9a455d; font-size: 18px; }
.builder-switch { display: flex; align-items: flex-start; gap: 9px; padding: 10px 11px; border: 1px solid #e0e3ef; border-radius: 12px; background: #fcfcff; color: #637086; font-size: 12px; font-weight: 750; cursor: pointer; transition: border-color .18s ease, background .18s ease; }
.builder-switch input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; }
.builder-switch > span { position: relative; flex: 0 0 auto; width: 38px; height: 22px; margin-top: 1px; border-radius: 99px; background: #cbd5e1; box-shadow: inset 0 0 0 1px rgba(71,85,105,.11); transition: background .18s ease; }
.builder-switch > span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(30,41,59,.22); transition: transform .18s ease; }
.builder-switch input:checked + span { background: var(--violet); }
.builder-switch input:checked + span::after { transform: translateX(16px); }
.builder-switch input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 2px; }
.builder-switch > div { display: grid; gap: 2px; min-width: 0; }
.builder-switch b { color: var(--ink); font-size: 12px; }
.builder-switch small { color: #728099; font-weight: 550; line-height: 1.35; }
.builder-switch:has(input:checked) { border-color: #cfc7ff; background: #f7f5ff; }
.builder-question-order { margin-top: 2px; }
.builder-deck-list { display: block; height: clamp(520px, calc(100dvh - 350px), 710px); overflow: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 15px; background: #fcfcff; scrollbar-gutter: stable; }
.builder-tree-root, .builder-tree-node { position: relative; }
.builder-tree-children { position: relative; margin-left: 31px; border-left: 1px solid #d8ddea; }
.builder-tree-children > .builder-tree-node::before { position: absolute; top: 0; left: -1px; width: 20px; height: 51px; border-bottom: 1px solid #d8ddea; content: ""; }
.builder-tree-children > .builder-tree-node.is-last::after { position: absolute; top: 51px; right: auto; bottom: 0; left: -2px; width: 2px; background: #fcfcff; content: ""; }
.builder-deck-row { position: relative; display: flex; gap: 7px; align-items: flex-start; min-height: 80px; padding: 13px 16px; border-bottom: 1px solid var(--line); cursor: pointer; }
.builder-tree-children > .builder-tree-node > .builder-deck-row { padding-left: 35px; }
.builder-deck-row.has-branch-summary { min-height: 104px; }
.builder-deck-row:last-child { border-bottom: 0; }
.builder-deck-row:hover, .builder-deck-row.is-selected { background: linear-gradient(90deg, #f2f4ff, #f9f6ff); }
.builder-deck-row label { display: flex; flex: 1; gap: 13px; align-items: flex-start; min-height: 54px; padding: 2px 0; cursor: pointer; }
.builder-deck-row input[type="checkbox"] { appearance: none; width: 20px; height: 20px; flex: 0 0 20px; margin-top: 1px; border: 1.5px solid #b7c0cf; border-radius: 6px; background: #fff; cursor: pointer; transition: border .16s ease, background .16s ease, box-shadow .16s ease; }
.builder-deck-row input[type="checkbox"]:hover { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(93,69,232,.09); }
.builder-deck-row input[type="checkbox"]:checked { border-color: var(--violet); background-color: var(--violet); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.2 8.2 3 3 6.6-6.5' fill='none' stroke='white' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-position: center; background-repeat: no-repeat; }
.builder-deck-row input[type="checkbox"]:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.builder-deck-row label > span { display: grid; align-content: start; gap: 5px; min-width: 0; }
.builder-deck-row label > span > strong { line-height: 20px; font-weight: 600; }
.builder-deck-row.has-branch-summary label > span { grid-template-rows: 20px 24px 16px; }
.builder-deck-row.has-branch-summary small { display: block; line-height: 16px; white-space: nowrap; }
.deck-counts { display: flex !important; flex-wrap: wrap; gap: 6px; }
.deck-count-chip { display: inline-flex !important; width: fit-content; align-items: center; gap: 4px; padding: 3px 7px; border: 1px solid #dbe3f0; border-radius: 999px; color: #59657b; background: #f8fafc; font-size: 12px; font-weight: 500; line-height: 1.15; }
.deck-count-chip b { color: var(--ink); font-size: 12px; font-weight: 650; }
.deck-count-chip.is-case { border-color: #ddd6fe; color: #6d28d9; background: #f5f3ff; }
.deck-count-chip.is-case b { color: #5b34df; }
.deck-expand, .deck-expand-placeholder { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; align-self: flex-start; border: 0; background: transparent; color: #64748b; }
.deck-expand { border-radius: 8px; cursor: pointer; transition: color .16s ease, background-color .16s ease, transform .16s ease; }
.deck-expand svg { width: 17px; height: 17px; transition: transform .18s ease; }
.deck-expand.is-expanded svg { transform: rotate(90deg); }
.deck-expand:hover { color: var(--primary); background: #ede9fe; }
.deck-expand:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.builder-settings { position: sticky; top: 94px; display: grid; gap: 15px; }
.builder-settings h2 { margin: -8px 0 2px; }
.builder-availability { padding: 16px; border-radius: 14px; color: #4438a9; background: #f2f0ff; display: grid; gap: 4px; }
.builder-availability strong { font-size: 32px; color: var(--ink); }
.builder-create { width: 100%; min-height: 48px; }
.builder-helper { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.practice-page { max-width: 1540px; margin: 0 auto; }
.practice-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, .7fr); gap: 22px; align-items: start; }
.practice-deck-panel, .practice-settings { padding: 27px; }
.practice-deck-panel { border-color: #cfe9e2; background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(239,250,247,.92)); }
.practice-settings { border-color: #c9e6df; background: linear-gradient(155deg, rgba(255,255,255,.98), rgba(241,252,248,.94)); }
.practice-scope-note { display: grid; gap: 4px; margin: 0 0 16px; padding: 13px 15px; border-left: 3px solid #9b8cf5; border-radius: 0 12px 12px 0; color: #6c7590; background: #faf9ff; font-size: 12px; line-height: 1.48; }
.practice-scope-note strong { color: #5546c8; font-size: 12px; }
.practice-deck-list { height: clamp(735px, calc(150dvh - 548px), 1035px); overflow: auto; border: 1px solid var(--line); border-radius: 15px; background: #fcfcff; scrollbar-gutter: stable; }
.practice-deck-node + .practice-deck-node { border-top: 1px solid var(--line); }
.practice-deck-row { display: flex; gap: 7px; align-items: flex-start; min-height: 70px; padding: 12px 14px 12px calc(14px + var(--practice-depth, 0) * 24px); }
.practice-deck-row:hover, .practice-deck-row.is-selected { background: linear-gradient(90deg, #eaf9f5, #f5fbff); }
.practice-deck-row label { display: flex; flex: 1; gap: 12px; align-items: flex-start; padding: 2px 0; cursor: pointer; }
.practice-deck-row input[type="checkbox"] { appearance: none; width: 19px; height: 19px; flex: 0 0 19px; margin-top: 1px; border: 1.5px solid #b7c0cf; border-radius: 6px; background: #fff; cursor: pointer; }
.practice-deck-row input[type="checkbox"]:checked { border-color: var(--violet); background-color: var(--violet); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.2 8.2 3 3 6.6-6.5' fill='none' stroke='white' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-position: center; background-repeat: no-repeat; }
.practice-deck-row label > span { display: grid; gap: 3px; min-width: 0; }
.practice-deck-row strong { color: var(--ink); font-size: 14px; font-weight: 600; line-height: 20px; }
.practice-deck-counts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 1px; }
.practice-deck-counts b { padding: 2px 6px; border: 1px solid #e2e7ef; border-radius: 999px; color: #66738a; background: #fff; font-size: 10px; font-weight: 600; }
.practice-deck-counts .is-new { color: #2473dc; border-color: #d4e6ff; background: #f8fbff; }
.practice-deck-counts .is-learn { color: #d14f4f; border-color: #ffe0df; background: #fffafa; }
.practice-deck-counts .is-due { color: #16885f; border-color: #c9efdf; background: #f4fffa; }
.practice-deck-expand, .practice-deck-expand-placeholder { width: 29px; height: 29px; flex: 0 0 29px; display: grid; place-items: center; border: 0; color: #64748b; background: transparent; }
.practice-deck-expand { border-radius: 8px; cursor: pointer; }
.practice-deck-expand:hover { color: var(--primary); background: #ede9fe; }
.practice-deck-expand svg { width: 17px; height: 17px; transition: transform .18s ease; }
.practice-deck-expand.is-expanded svg { transform: rotate(90deg); }
.practice-settings { position: sticky; top: 94px; display: grid; gap: 15px; }
.practice-settings h2 { margin: -7px 0 2px; }
.practice-stat-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; border: 1px solid #e6e1fb; border-radius: 13px; }
.practice-stat-list > div { display: grid; gap: 5px; padding: 13px 12px; border-right: 1px solid #e6e1fb; }
.practice-stat-list > div:last-child { border-right: 0; }
.practice-stat-list span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.practice-stat-list strong { color: var(--ink); font-size: 23px; }
.practice-stat-list > div:nth-child(1) strong { color: #2473dc; }
.practice-stat-list > div:nth-child(2) strong { color: #d14f4f; }
.practice-stat-list > div:nth-child(3) strong { color: #16885f; }
.practice-limit-settings { display: grid; gap: 11px; padding: 14px; border: 1px solid #e5e1fa; border-radius: 13px; background: #fcfbff; }
.practice-limit-settings header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.practice-limit-settings header strong { color: var(--ink); font-size: 13px; }
.practice-limit-settings header small { color: var(--muted); font-size: 10px; }
.practice-limit-settings > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.practice-limit-settings label { display: grid; gap: 5px; color: #617087; font-size: 10px; font-weight: 800; }
.practice-limit-settings input { width: 100%; min-height: 35px; padding: 6px 8px; border: 1px solid #dce2ee; border-radius: 9px; color: var(--ink); background: #fff; font: 800 13px inherit; }
.practice-limit-settings p { margin: 0; color: #69768c; font-size: 11px; line-height: 1.5; }
.practice-limit-settings p b { color: #5546c8; }
.practice-heatmap { display: grid; gap: 9px; padding: 14px; border: 1px solid #e5e1fa; border-radius: 13px; background: #fff; }
.practice-heatmap header { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.practice-heatmap header > div { display: grid; gap: 3px; }
.practice-heatmap strong { color: var(--ink); font-size: 12px; }
.practice-heatmap header small { color: var(--muted); font-size: 10px; white-space: nowrap; }
.practice-heatmap-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(7, 1fr); grid-auto-flow: column; gap: 4px; }
.heatmap-cell { aspect-ratio: 1; min-width: 8px; border-radius: 3px; background: #edf0f5; }
.heatmap-cell.is-1 { background: #d8efe8; }.heatmap-cell.is-2 { background: #9bdcc7; }.heatmap-cell.is-3 { background: #56bd9e; }.heatmap-cell.is-4 { background: #168a6a; }
.practice-settings > p { margin: 0; color: #68758b; font-size: 13px; line-height: 1.55; }
.practice-notice { margin: 0; padding: 11px 12px; border: 1px solid #f5d5af; border-radius: 11px; color: #9a571a !important; background: #fff7ed; }
.practice-start-button { width: 100%; min-height: 48px; }
.practice-settings > small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.practice-session, .practice-finished { max-width: 930px; margin: 0 auto; }
.practice-session-header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: start; margin-bottom: 20px; }
.practice-session-header h1, .practice-finished h1 { margin: 5px 0; font-size: clamp(30px, 4vw, 44px); }
.practice-session-header p, .practice-finished p { margin: 0; color: var(--muted); }
.practice-progress { min-width: 56px; padding: 9px 11px; border: 1px solid #e3dfff; border-radius: 10px; color: #5545ca; background: #f7f6ff; font-size: 13px; font-weight: 800; text-align: center; }
.practice-question, .practice-case-context, .practice-case-result, .practice-finished { padding: 27px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.practice-question-meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 18px; color: #5545ca; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.practice-question-meta small { color: var(--muted); font-size: 11px; letter-spacing: 0; text-transform: none; }
.practice-case-context { margin-bottom: 16px; color: var(--ink); background: linear-gradient(135deg, #faf9ff, #f5f4ff); }
.practice-case-context .question-rich-text { margin-top: 8px; }
.practice-options { margin-top: 22px; }
.practice-options .option:disabled { cursor: default; }
.practice-options .option.is-correct { border-color: #74d7ad; background: #f0fff7; }
.practice-options .option.is-wrong { border-color: #ffb1a8; background: #fff5f3; }
.practice-feedback { margin-top: 16px; padding: 14px 16px; border: 1px solid #f5d6b3; border-radius: 13px; color: #95521a; background: #fff8ef; }
.practice-feedback.is-correct { border-color: #bdebd4; color: #087c54; background: #f1fff8; }
.practice-feedback p { margin: 5px 0 0; color: inherit; font-size: 13px; line-height: 1.55; }
.practice-continue { width: 100%; margin-top: 15px; min-height: 46px; }
.practice-case-questions { display: grid; gap: 16px; }
.practice-case-prompt { margin: 16px 0 0; padding: 12px 14px; border: 1px solid #dcd7ff; border-radius: 12px; color: #5d4dca; background: #f8f7ff; font-size: 13px; text-align: center; }
.practice-case-result { text-align: center; }
.practice-case-result > strong { display: block; color: var(--ink); font-size: 21px; }
.practice-case-result > p { margin: 7px 0 20px; color: var(--muted); }
.practice-rating-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-top: 16px; }
.practice-rate { display: grid; gap: 3px; padding: 12px 8px; border: 1px solid #dfe4ee; border-radius: 12px; color: #4d5b70; background: #fff; cursor: pointer; font: inherit; }
.practice-rate:hover { border-color: #a89df8; color: #5140c9; background: #f7f5ff; }
.practice-rate strong { font-size: 13px; }
.practice-rate span { font-size: 11px; }
.practice-rate.is-again:hover { border-color: #f2a69e; color: #b13f36; background: #fff5f3; }
.practice-finished { text-align: center; }
.practice-finished .primary-button { margin-top: 20px; }
.profile-modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 24px; }
.profile-modal-backdrop { position: absolute; inset: 0; border: 0; background: rgba(15,23,42,.38); backdrop-filter: blur(4px); cursor: default; }
.profile-dialog { position: relative; width: min(100%, 960px); max-height: min(760px, calc(100dvh - 48px)); overflow: auto; border: 1px solid #e5e1fa; border-radius: 20px; background: #fff; box-shadow: 0 28px 70px rgba(18,26,53,.24); }
.account-dialog { display: grid; grid-template-columns: 230px minmax(0, 1fr); }
.account-sidebar { min-height: 610px; padding: 24px 16px; border-right: 1px solid #e7eaf1; background: linear-gradient(160deg, #fbfaff, #f5f7ff); }
.account-summary { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; }
.account-summary .profile-avatar { width: 38px; height: 38px; flex: 0 0 38px; }
.account-summary strong, .account-summary small { display: block; }
.account-summary strong { color: var(--ink); font-size: 13px; }
.account-summary small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.account-tabs { display: grid; gap: 5px; margin-top: 30px; }
.account-tab { width: 100%; padding: 11px 12px; border: 0; border-radius: 9px; color: #59677d; background: transparent; cursor: pointer; font: 700 13px inherit; text-align: left; }
.account-tab:hover { color: #5140c9; background: #f0eeff; }
.account-tab.is-active { color: #4d3bc8; background: #e9e6ff; }
  .account-local-label { display: block; margin: 28px 10px 0; color: #8c96a9; font-size: 11px; line-height: 1.45; }
  .account-signout { width: calc(100% - 20px); margin: 14px 10px 0; padding: 9px 11px; border: 1px solid #e4dce4; border-radius: 9px; color: #b23a5d; background: #fff; cursor: pointer; font: 700 12px inherit; text-align: left; }
  .account-signout:hover { border-color: #eab6c4; background: #fff7f8; }
.account-main { min-width: 0; padding: 30px 32px; }
.account-content-header h2 { margin: 6px 0; font-size: 25px; }
.account-content-header p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.profile-close { width: 34px; height: 34px; flex: 0 0 34px; border: 1px solid var(--line); border-radius: 9px; color: #66748a; background: #fff; cursor: pointer; font-size: 23px; line-height: 1; }
.account-dialog > .profile-close { position: absolute; top: 16px; right: 16px; z-index: 1; }
.profile-close:hover { color: var(--violet); border-color: #d8d1ff; background: #f6f4ff; }
.profile-photo-section { display: flex; align-items: center; gap: 16px; margin: 24px 0; padding: 16px; border: 1px solid #e7e2ff; border-radius: 14px; background: linear-gradient(135deg, #faf9ff, #f3f1ff); }
.profile-avatar { width: 42px; height: 42px; display: grid; place-items: center; overflow: hidden; border-radius: 14px; color: #fff; background: linear-gradient(145deg, #7158f4, #5240d8); font-size: 13px; font-weight: 800; }
.profile-avatar-large { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 18px; font-size: 17px; }
.profile-avatar-content, .learner-avatar-image { width: 100%; height: 100%; display: grid; place-items: center; }
.learner-avatar-image img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo-section strong { color: var(--ink); font-size: 13px; }
.profile-photo-section p { margin: 3px 0 9px; color: var(--muted); font-size: 11px; }
.profile-notice { margin: -8px 0 18px; padding: 10px 12px; border: 1px solid #f7d2ad; border-radius: 10px; color: #995215; background: #fff6eb; font-size: 12px; line-height: 1.45; }
.avatar-upload-control { display: inline-flex; cursor: pointer; }
.avatar-upload-control input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.avatar-upload-control span { padding: 7px 10px; border: 1px solid #d8d1ff; border-radius: 8px; color: #5140c9; background: #fff; font-size: 11px; font-weight: 750; }
.avatar-upload-control:hover span { background: #f1efff; }
.profile-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.profile-field-wide { grid-column: 1 / -1; }
.profile-picker-field { position: relative; display: grid; gap: 7px; min-width: 0; color: #43516a; font-size: 12px; font-weight: 700; }
.profile-picker-trigger { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; cursor: pointer; font: 650 13px inherit; text-align: left; transition: border .16s ease, box-shadow .16s ease, background .16s ease; }
.profile-picker-trigger:hover, .profile-picker-trigger[aria-expanded="true"] { border-color: #aaa0ff; background: #fcfbff; box-shadow: 0 5px 15px rgba(78,61,185,.08); }
.profile-picker-trigger svg { width: 17px; height: 17px; flex: 0 0 17px; fill: none; stroke: #6b61bb; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.profile-calendar, .profile-role-menu { position: absolute; z-index: 5; top: calc(100% + 7px); left: 0; min-width: 100%; border: 1px solid #ddd7ff; border-radius: 13px; background: #fff; box-shadow: 0 16px 32px rgba(31,25,86,.18); }
.profile-calendar { width: 290px; padding: 12px; }
.profile-calendar header { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-bottom: 10px; }
.profile-calendar header > div { display: flex; gap: 2px; }
.profile-calendar header strong { color: var(--ink); font-size: 12px; text-transform: capitalize; }
.calendar-shift { width: 25px; height: 25px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 7px; color: #5f6680; background: transparent; cursor: pointer; }
.calendar-shift:hover { color: #4d3fca; background: #f0eeff; }
.calendar-shift svg { width: 14px; height: 14px; }
.calendar-weekdays, .calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.calendar-weekdays { margin-bottom: 4px; color: #8a94a6; font-size: 10px; font-weight: 800; }
.calendar-weekdays span { padding: 5px 0; }
.calendar-day { height: 31px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; color: #354259; background: transparent; cursor: pointer; font: 650 11px inherit; }
.calendar-day:hover { color: #4d3fca; background: #f1efff; }
.calendar-day.is-selected { color: #fff; background: var(--violet); box-shadow: 0 3px 7px rgba(93,69,232,.25); }
.calendar-day.is-empty { pointer-events: none; }
.profile-calendar footer { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid #edf0f5; }
.profile-calendar footer button { padding: 4px 3px; border: 0; color: #5847ca; background: transparent; cursor: pointer; font: 700 10px inherit; }
.profile-role-menu { display: grid; padding: 5px; }
.profile-role-option { display: flex; align-items: center; justify-content: space-between; padding: 10px; border: 0; border-radius: 8px; color: #46546a; background: transparent; cursor: pointer; font: 650 12px inherit; text-align: left; }
.profile-role-option:hover, .profile-role-option.is-selected { color: #4d3fca; background: #f1efff; }
.profile-role-option i { color: #5644cf; font-style: normal; }
.profile-dialog-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.profile-dialog-footer > small { max-width: 38ch; color: var(--muted); font-size: 11px; line-height: 1.45; }
.profile-dialog-footer > div { display: flex; align-items: center; gap: 9px; }
.device-policy { display: grid; gap: 4px; margin: 24px 0 18px; padding: 14px 16px; border: 1px solid #fde2b9; border-radius: 13px; color: #825714; background: #fff6e6; }
.device-policy strong { font-size: 13px; }
.device-policy span { font-size: 12px; line-height: 1.45; }
.device-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.device-card { display: grid; align-content: start; gap: 10px; min-height: 220px; padding: 15px; border: 1px solid #dfe7f2; border-radius: 14px; background: #fbfdff; }
.device-card header { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ink); font-size: 13px; font-weight: 800; }
.device-card header b { padding: 4px 6px; border-radius: 7px; color: #4d3fca; background: #edebff; font-size: 10px; white-space: nowrap; }
.device-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 13px; color: #4f74dc; background: #e8f2ff; }
.device-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.device-card > strong { color: var(--ink); font-size: 13px; }
.device-card > small, .device-local-note { color: var(--muted); font-size: 11px; line-height: 1.45; }
.device-local-note { display: block; margin-top: 16px; }
@media (max-width: 940px) { .builder-layout, .practice-layout { grid-template-columns: 1fr; } .builder-settings, .practice-settings { position: static; } }
@media (max-width: 760px) { .account-dialog { grid-template-columns: 1fr; } .account-sidebar { min-height: auto; padding: 14px; border-right: 0; border-bottom: 1px solid #e7eaf1; } .account-tabs { display: flex; margin: 12px 0 0; } .account-tab { width: auto; } .account-local-label { display: none; } .account-main { padding: 24px 20px; } .device-grid { grid-template-columns: 1fr; } .access-request-item { grid-template-columns: minmax(0, 1fr) auto; } .access-request-actions { grid-column: 1 / -1; } .access-request-actions button { flex: 1; } .product-info-popover { right: 16px; bottom: 16px; left: 16px; width: auto; } }
@media (max-width: 640px) { .builder-decks, .builder-settings, .practice-deck-panel, .practice-settings { padding: 18px; } .builder-toolbar { grid-template-columns: 1fr; } .builder-tree-actions { justify-content: flex-start; } .builder-scope-control { align-items: flex-start; } .builder-deck-list, .practice-deck-list { height: min(58dvh, 560px); min-height: 420px; } .practice-summary { width: 100%; } .practice-limit-settings > div { grid-template-columns: 1fr; } .practice-session-header { grid-template-columns: 1fr auto; } .practice-session-header .text-button { grid-column: 1 / -1; justify-self: start; } .practice-question, .practice-case-context, .practice-case-result, .practice-finished { padding: 19px; } .practice-rating-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .profile-trigger > span:nth-child(2), .profile-trigger svg { display: none; } .profile-form-grid { grid-template-columns: 1fr; } .profile-field-wide { grid-column: auto; } .profile-dialog-footer { align-items: flex-start; flex-direction: column; } .profile-dialog-footer > div { width: 100%; } .profile-dialog-footer button { flex: 1; } .profile-photo-section { align-items: flex-start; flex-direction: column; } }
