:root {
  --ink: #17242d;
  --muted: #68777e;
  --line: #dce4e4;
  --page: #f4f7f6;
  --surface: #ffffff;
  --navy: #153d69;
  --navy-deep: #0f3157;
  --navy-soft: #eaf1f8;
  --teal: #16756d;
  --teal-soft: #e6f3f0;
  --green: #2d825f;
  --green-soft: #e8f5ee;
  --amber: #c98319;
  --amber-soft: #fff2d9;
  --red: #ba4b46;
  --red-soft: #fae9e7;
  --gold: #eab64b;
  --shadow: 0 22px 55px rgba(23, 36, 45, 0.15);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: #dfe7e6;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { background: #dfe7e6; }
button, input, select { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.device-stage { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.miniapp-shell { width: min(100%, 480px); height: min(920px, calc(100vh - 48px)); min-height: 720px; display: grid; grid-template-rows: 72px minmax(0, 1fr) 68px; overflow: hidden; background: var(--page); border: 1px solid rgba(27, 53, 60, 0.12); border-radius: 28px; box-shadow: var(--shadow); }
.miniapp-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; background: #fff; border-bottom: 1px solid var(--line); z-index: 5; }
.brand-lockup { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-lockup img { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; border: 1px solid #d8cfad; }
.brand-lockup div { display: grid; gap: 2px; }
.brand-lockup strong { color: var(--navy); font-size: 15px; }
.brand-lockup span { color: var(--muted); font-size: 11px; }
.header-actions { display: flex; align-items: center; gap: 7px; }
.icon-button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--navy); background: #fff; }
.icon-button svg { width: 18px; height: 18px; }
.icon-fallback { display: none; font-weight: 800; }
.member-icon-button { position: relative; }
.member-icon-button.logged-in { color: #fff; background: var(--teal); border-color: var(--teal); }
.member-icon-button.logged-in > svg { display: none; }
.member-icon-button b { display: grid; place-items: center; font-size: 12px; }

.app-viewport { overflow-x: hidden; overflow-y: auto; scroll-behavior: smooth; }
.app-page { min-height: 100%; padding: 18px 18px 34px; animation: page-in .24s ease; }
@keyframes page-in { from { opacity: .25; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.home-hero { min-height: 220px; display: grid; grid-template-columns: minmax(0, 1fr) 154px; align-items: center; gap: 10px; margin: -18px -18px 0; padding: 26px 18px 30px; color: #fff; background: #143c68; overflow: hidden; position: relative; }
.home-hero::after { content: ""; position: absolute; right: -30px; bottom: -70px; width: 220px; height: 160px; border: 1px solid rgba(255,255,255,.18); transform: rotate(-14deg); }
.hero-copy { position: relative; z-index: 2; padding-left: 15px; }
.hero-copy::before { content: ""; position: absolute; left: 0; top: 29px; width: 4px; height: 72px; border-radius: 999px; background: var(--teal); box-shadow: 0 0 0 4px rgba(22,117,109,.14); }
.eyebrow, .page-heading > span, .section-heading > div > span, .form-section-heading span, .report-header span { display: block; margin-bottom: 7px; color: #f3c868; font-size: 11px; font-weight: 800; letter-spacing: 0; }
.home-hero h1 { max-width: 286px; margin: 0; font-size: 30px; line-height: 1.08; letter-spacing: 0; font-weight: 900; }
.home-hero h1 span { display: block; }
.home-hero h1 span:first-child { font-size: 1.18em; letter-spacing: .01em; }
.home-hero h1 span + span { margin-top: 5px; color: #f3c868; font-size: .82em; letter-spacing: .04em; }
.home-hero p { max-width: 250px; margin: 14px 0 0; color: #d8e4ec; font-size: 13px; line-height: 1.75; }
.subject-orbit { width: 150px; height: 150px; position: relative; border: 1px solid rgba(255,255,255,.52); border-radius: 50%; z-index: 1; transform: translateX(5px); box-shadow: 0 0 0 8px rgba(255,255,255,.05), 0 0 0 22px rgba(255,255,255,.035); }
.subject-orbit::before { content: ""; position: absolute; inset: 22px; border: 1px dashed rgba(255,255,255,.38); border-radius: 50%; }
.subject-orbit::after { content: ""; position: absolute; inset: -10px; border: 1px solid rgba(243,200,104,.38); border-radius: 50%; clip-path: inset(0 0 49% 49%); transform: rotate(-24deg); }
.orbit-center, .orbit-item { position: absolute; display: grid; place-items: center; border-radius: 50%; font-weight: 900; }
.orbit-center { width: 54px; height: 54px; inset: 48px; color: var(--navy); background: var(--gold); font-size: 14px; }
.orbit-item { --orbit-radius: 60px; width: 30px; height: 30px; left: 50%; top: 50%; margin: -15px; color: #183d63; background: #fff; font-size: 12px; box-shadow: 0 6px 15px rgba(0,0,0,.15); transform: rotate(var(--orbit-angle)) translateY(calc(-1 * var(--orbit-radius))) rotate(calc(-1 * var(--orbit-angle))); }
.item-p { --orbit-angle: 0deg; }.item-c { --orbit-angle: 60deg; }.item-b { --orbit-angle: 120deg; }.item-h { --orbit-angle: 180deg; }.item-z { --orbit-angle: 240deg; }.item-g { --orbit-angle: 300deg; }

.home-status-band { display: grid; grid-template-columns: repeat(3, 1fr); margin: -16px 0 18px; position: relative; z-index: 2; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 25px rgba(31, 55, 61, .09); }
.home-status-band div { min-width: 0; padding: 14px 10px; text-align: center; }
.home-status-band div + div { border-left: 1px solid var(--line); }
.home-status-band span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; }
.home-status-band strong { display: block; overflow: hidden; color: var(--navy); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.member-home-band { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; align-items: center; margin-bottom: 12px; padding: 12px; color: #fff; background: var(--teal); border-radius: 8px; }
.member-home-mark { width: 36px; height: 36px; display: grid; place-items: center; color: var(--teal); background: #fff; border-radius: 50%; }
.member-home-mark svg { width: 18px; height: 18px; }
.member-home-band > div:nth-child(2) { min-width: 0; display: grid; gap: 2px; }
.member-home-band strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.member-home-band span { overflow: hidden; color: #dff1ed; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.member-home-band button { min-height: 32px; padding: 0 9px; color: var(--teal); background: #fff; border: 0; border-radius: 6px; font-size: 9px; font-weight: 900; }

.home-actions { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; margin-bottom: 22px; }
.auth-locked .home-status-band { display: none; }
.auth-locked .home-actions { grid-template-columns: 1fr; }
.auth-locked #loadDemo { display: none; }
.primary-action, .secondary-action { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; font-weight: 800; }
.primary-action { color: #fff; border: 1px solid var(--navy); background: var(--navy); }
.primary-action:hover { background: var(--navy-deep); }
.secondary-action { color: var(--navy); border: 1px solid #bdcdd9; background: #fff; }
.primary-action svg, .secondary-action svg { width: 17px; height: 17px; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-heading > div > span { margin: 0 0 3px; color: var(--teal); }
.section-heading h2 { margin: 0; font-size: 18px; letter-spacing: 0; }
.section-heading > b { padding: 5px 7px; color: var(--teal); background: var(--teal-soft); border-radius: 6px; font-size: 10px; }
.data-snapshot, .workflow-band, .score-breakdown, .top-combinations, .risk-band, .major-directions, .school-directions { margin-bottom: 18px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.snapshot-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.snapshot-grid div { padding: 14px 8px; text-align: center; }
.snapshot-grid div + div { border-left: 1px solid var(--line); }
.snapshot-grid strong { display: block; color: var(--navy); font-size: 20px; }
.snapshot-grid span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.data-snapshot > p { margin: 13px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.workflow-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.workflow-list li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; padding: 12px 0; }
.workflow-list li + li { border-top: 1px solid var(--line); }
.workflow-list b { width: 30px; height: 30px; display: grid; place-items: center; color: #fff; background: var(--teal); border-radius: 50%; font-size: 12px; }
.workflow-list div { display: grid; gap: 3px; }
.workflow-list strong { font-size: 13px; }.workflow-list span { color: var(--muted); font-size: 11px; }

.page-heading { margin-bottom: 18px; }
.page-heading > span { margin-bottom: 5px; color: var(--teal); }
.page-heading h1 { margin: 0; color: var(--navy); font-size: 26px; line-height: 1.25; letter-spacing: 0; }
.page-heading p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.step-tabs { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 18px; padding: 4px; background: #e9eeee; border-radius: 8px; }
.step-tabs button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; color: var(--muted); border: 0; border-radius: 6px; background: transparent; }
.step-tabs button.active { color: var(--navy); background: #fff; box-shadow: 0 2px 8px rgba(25,55,62,.08); }
.step-tabs b { width: 21px; height: 21px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 10px; }
.step-tabs span { font-size: 12px; font-weight: 800; }
.assessment-step { padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.form-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.form-section-heading h2 { margin: 0; font-size: 18px; }.form-section-heading span { margin: 0; color: var(--muted); }
.field-label { display: block; margin: 18px 0 9px; color: #485b64; font-size: 12px; font-weight: 800; }
.segmented-control { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.segmented-control input, .choice-chip input { position: absolute; opacity: 0; pointer-events: none; }
.segmented-control span { min-height: 40px; display: grid; place-items: center; color: var(--muted); background: #f2f5f5; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; font-weight: 800; }
.segmented-control input:checked + span { color: #fff; background: var(--teal); border-color: var(--teal); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.form-field { min-width: 0; display: grid; gap: 7px; }
.form-field.full { grid-column: 1 / -1; margin-top: 16px; }
.form-field > span { color: #53656d; font-size: 11px; font-weight: 800; }
.form-field input, .form-field select { width: 100%; height: 44px; padding: 0 11px; color: var(--ink); background: #fff; border: 1px solid #cfdadb; border-radius: 6px; outline: none; }
.form-field input:focus, .form-field select:focus, .score-cell input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(22,117,109,.12); }
.next-step { width: 100%; margin-top: 22px; }
.exam-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 14px; }
.exam-tabs button { min-height: 42px; padding: 5px 8px; color: var(--muted); background: #f2f5f5; border: 1px solid var(--line); border-radius: 6px; font-size: 11px; font-weight: 800; }
.exam-tabs button.active { color: #fff; background: var(--navy); border-color: var(--navy); }
.exam-name-row { display: grid; grid-template-columns: 1fr 110px; gap: 10px; align-items: end; margin-bottom: 16px; }
.completion-meter { height: 44px; display: grid; align-content: center; gap: 2px; padding: 0 10px; background: var(--teal-soft); border-radius: 6px; }
.completion-meter span { color: var(--teal); font-size: 9px; }.completion-meter strong { color: var(--teal); font-size: 13px; }
.score-table-heading, .score-entry-row { display: grid; grid-template-columns: 60px minmax(0, 1fr) 82px; gap: 8px; align-items: center; }
.score-table-heading { padding: 0 6px 7px; color: var(--muted); font-size: 9px; text-align: center; }
.score-table-heading span:first-child { text-align: left; }
.score-entry-row { padding: 9px 6px; border-top: 1px solid var(--line); }
.score-entry-row > strong { color: var(--navy); font-size: 12px; }
.score-pair { display: grid; grid-template-columns: 1fr 10px 1fr; gap: 3px; align-items: center; }
.score-pair > span { color: var(--muted); text-align: center; }
.score-cell input { width: 100%; height: 38px; min-width: 0; padding: 0 5px; text-align: center; border: 1px solid #d1dbdc; border-radius: 5px; outline: none; }
.form-note { display: flex; gap: 8px; align-items: flex-start; margin: 15px 0 0; padding: 11px; color: #4f6168; background: #f1f6f7; border-left: 3px solid var(--teal); font-size: 10px; line-height: 1.6; }
.form-note.warning { background: var(--amber-soft); border-color: var(--amber); }
.form-note svg { width: 15px; min-width: 15px; margin-top: 1px; }
.step-actions { display: grid; grid-template-columns: 1fr 1.35fr; gap: 9px; margin-top: 20px; }
.choice-chip-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.choice-chip-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice-chip { position: relative; }
.choice-chip span { min-height: 45px; display: flex; align-items: center; justify-content: center; padding: 8px; color: #52636a; text-align: center; background: #f4f7f7; border: 1px solid var(--line); border-radius: 6px; font-size: 11px; font-weight: 800; }
.choice-chip input:checked + span { color: var(--navy); background: var(--navy-soft); border-color: #8da9c2; box-shadow: inset 0 0 0 1px #8da9c2; }

.bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid var(--line); z-index: 5; }
.bottom-nav button { display: grid; place-items: center; align-content: center; gap: 4px; color: #829096; background: transparent; border: 0; }
.bottom-nav button.active { color: var(--navy); }
.bottom-nav svg { width: 19px; height: 19px; stroke-width: 2; }.bottom-nav span { font-size: 9px; font-weight: 800; }

.empty-state { min-height: 520px; display: grid; place-items: center; align-content: center; gap: 10px; padding: 28px; text-align: center; }
.empty-state > svg { width: 46px; height: 46px; color: var(--teal); }
.empty-state h1 { margin: 0; color: var(--navy); font-size: 23px; }.empty-state p { max-width: 290px; margin: 0 0 8px; color: var(--muted); font-size: 12px; line-height: 1.7; }.empty-state .primary-action { padding: 0 22px; }
.winner-band { display: grid; grid-template-columns: 110px 1fr; gap: 15px; align-items: center; margin: 0 -18px 18px; padding: 20px 18px; color: #fff; background: var(--navy); }
.winner-score { width: 106px; height: 106px; display: grid; place-items: center; align-content: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; }
.winner-score span { color: #d7e3eb; font-size: 9px; }.winner-score strong { margin: 3px 0 -3px; color: var(--gold); font-size: 36px; }.winner-score b { font-size: 9px; }
.winner-copy > span { display: inline-block; padding: 4px 7px; color: var(--navy); background: var(--gold); border-radius: 4px; font-size: 9px; font-weight: 900; }
.winner-copy h2 { margin: 8px 0 6px; font-size: 24px; }.winner-copy p { margin: 0; color: #dce6ec; font-size: 11px; line-height: 1.6; }
.breakdown-row { display: grid; grid-template-columns: 72px 1fr 38px; gap: 8px; align-items: center; padding: 8px 0; }
.breakdown-row > span { font-size: 11px; font-weight: 800; }.breakdown-row > b { color: var(--navy); text-align: right; font-size: 12px; }
.breakdown-bar { height: 7px; overflow: hidden; background: #e8eeee; border-radius: 4px; }.breakdown-bar i { height: 100%; display: block; background: var(--teal); border-radius: inherit; }
.text-button { padding: 4px 0; color: var(--teal); background: transparent; border: 0; font-size: 11px; font-weight: 800; }
.combo-list { display: grid; gap: 9px; }
.combo-item { width: 100%; display: grid; grid-template-columns: 36px 1fr 50px; gap: 10px; align-items: center; padding: 12px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.combo-item.selected { border-color: var(--teal); box-shadow: inset 3px 0 0 var(--teal); }
.combo-rank { width: 32px; height: 32px; display: grid; place-items: center; color: var(--navy); background: var(--navy-soft); border-radius: 50%; font-size: 12px; font-weight: 900; }
.combo-copy { min-width: 0; display: grid; gap: 4px; }.combo-copy strong { font-size: 13px; }.combo-copy span { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.combo-total { color: var(--navy); text-align: right; font-size: 18px; font-weight: 900; }
.risk-band { border-left: 4px solid var(--amber); }.risk-band ul, .report-sheet ul, .report-sheet ol { margin: 0; padding-left: 20px; }.risk-band li, .report-sheet li { margin: 8px 0; color: #52636b; font-size: 11px; line-height: 1.65; }

.combo-switcher { display: flex; gap: 8px; overflow-x: auto; margin: 0 -18px 18px; padding: 0 18px 5px; scrollbar-width: none; }.combo-switcher::-webkit-scrollbar { display: none; }.combo-switcher button { flex: 0 0 auto; min-height: 36px; padding: 0 12px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 6px; font-size: 10px; font-weight: 800; }.combo-switcher button.active { color: #fff; background: var(--teal); border-color: var(--teal); }
.direction-list, .school-direction-list { display: grid; gap: 10px; }
.direction-item { padding: 14px 0; }.direction-item + .direction-item { border-top: 1px solid var(--line); }.direction-item header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }.direction-item h3 { margin: 0; font-size: 14px; }.direction-item header b { color: var(--teal); font-size: 11px; }.direction-item p { margin: 7px 0 9px; color: var(--muted); font-size: 10px; line-height: 1.6; }.tag-row { display: flex; flex-wrap: wrap; gap: 5px; }.tag-row span { padding: 4px 6px; color: #506169; background: #eef3f3; border-radius: 4px; font-size: 9px; }
.school-item { display: grid; grid-template-columns: 42px 1fr; gap: 10px; padding: 13px 0; }.school-item + .school-item { border-top: 1px solid var(--line); }.school-mark { width: 40px; height: 40px; display: grid; place-items: center; color: #fff; background: var(--navy); border-radius: 7px; font-size: 12px; font-weight: 900; }.school-copy { min-width: 0; }.school-copy header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }.school-copy h3 { margin: 0; font-size: 13px; }.school-copy header span { color: var(--teal); font-size: 9px; font-weight: 800; }.school-copy > p { margin: 5px 0; color: var(--muted); font-size: 10px; }.school-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }.school-meta span { color: #55666d; font-size: 9px; }.school-meta b { color: var(--amber); font-size: 9px; }
.missing-data-band { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 16px; color: #6f521e; background: var(--amber-soft); border: 1px solid #ecd29a; border-radius: 8px; }.missing-data-band svg { width: 28px; height: 28px; }.missing-data-band strong { font-size: 12px; }.missing-data-band p { margin: 4px 0 0; font-size: 10px; line-height: 1.65; }

.report-toolbar { display: grid; grid-template-columns: 1fr 1.2fr; gap: 9px; margin-bottom: 15px; }.report-sheet { padding: 20px; background: #fff; border: 1px solid var(--line); }.report-header { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; padding-bottom: 16px; border-bottom: 2px solid var(--navy); }.report-header img { width: 50px; height: 50px; border-radius: 6px; border: 1px solid #d9cfac; }.report-header span { color: var(--teal); }.report-header h1 { margin: 0; color: var(--navy); font-size: 19px; }.report-header p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }.report-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 16px 0; }.report-summary div { padding: 10px; background: #f1f5f5; }.report-summary span { display: block; color: var(--muted); font-size: 9px; }.report-summary strong { display: block; margin-top: 4px; color: var(--navy); font-size: 12px; }.report-sheet section { margin-top: 20px; }.report-sheet section h2 { margin: 0 0 10px; color: var(--navy); font-size: 14px; }.report-subject-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }.report-subject { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px; background: #f5f7f7; font-size: 10px; }.report-recommendation { padding: 10px 0; }.report-recommendation + .report-recommendation { border-top: 1px solid var(--line); }.report-recommendation strong { font-size: 11px; }.report-recommendation p { margin: 4px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }.report-sheet footer { margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--line); }.report-sheet footer p, .report-sheet footer span { color: var(--muted); font-size: 8px; line-height: 1.6; }

dialog { width: min(420px, calc(100% - 28px)); max-height: min(760px, calc(100vh - 40px)); padding: 0; color: var(--ink); background: #fff; border: 0; border-radius: 10px; box-shadow: 0 25px 70px rgba(10, 24, 31, .3); }.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 18px; border-bottom: 1px solid var(--line); }.dialog-heading span { color: var(--teal); font-size: 9px; font-weight: 800; }.dialog-heading h2 { margin: 2px 0 0; color: var(--navy); font-size: 18px; }.dialog-body { max-height: 620px; overflow-y: auto; padding: 18px; }.dialog-body dl { margin: 0; }.dialog-body dl div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }.dialog-body dt { color: var(--muted); font-size: 11px; }.dialog-body dd { margin: 0; color: var(--navy); text-align: right; font-size: 11px; font-weight: 800; }.dialog-body > p { margin: 15px 0 0; color: var(--muted); font-size: 10px; line-height: 1.7; }dialog::backdrop { background: rgba(15, 31, 38, .62); }
.all-combo-list { display: grid; gap: 7px; }.all-combo-row { display: grid; grid-template-columns: 26px 1fr 48px; gap: 8px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 6px; }.all-combo-row.active { border-color: var(--teal); background: var(--teal-soft); }.all-combo-row > b { color: var(--navy); font-size: 11px; }.all-combo-row div { min-width: 0; }.all-combo-row strong { display: block; font-size: 11px; }.all-combo-row span { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }.all-combo-row > strong { color: var(--navy); text-align: right; font-size: 14px; }
.auth-dialog { width: min(410px, calc(100% - 24px)); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 12px 18px 0; background: #fff; }
.auth-tabs button { min-height: 40px; color: var(--muted); background: transparent; border: 0; border-bottom: 2px solid var(--line); font-size: 12px; font-weight: 900; }
.auth-tabs button.active { color: var(--navy); border-bottom-color: var(--teal); }
.auth-dialog-body { padding-top: 16px; }
.auth-form { display: grid; gap: 14px; }
.auth-field { display: grid; gap: 7px; }
.auth-field > span { color: #52646c; font-size: 11px; font-weight: 800; }
.auth-field > div { height: 46px; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; border: 1px solid #ccd8d9; border-radius: 6px; overflow: hidden; }
.auth-field > div:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(22,117,109,.12); }
.auth-field > div > svg { width: 16px; height: 16px; margin-left: 11px; color: var(--muted); }
.auth-field input { width: 100%; height: 44px; min-width: 0; padding: 0 9px; border: 0; outline: 0; }
.password-toggle { width: 40px; height: 44px; display: grid; place-items: center; color: var(--muted); background: transparent; border: 0; }
.password-toggle svg { width: 16px; height: 16px; }
.auth-checkbox { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.auth-checkbox input { margin: 1px 0 0; accent-color: var(--teal); }
.auth-submit { width: 100%; margin-top: 2px; }
.auth-switch-link { color: var(--teal); background: transparent; border: 0; font-size: 10px; font-weight: 800; }
.auth-local-note { display: flex; gap: 8px; align-items: flex-start; margin: 16px 0 0 !important; padding: 11px; color: #52636a !important; background: #f1f5f5; border-radius: 6px; }
.auth-local-note svg { width: 15px; min-width: 15px; margin-top: 1px; }
.member-dialog-body { display: grid; gap: 16px; }
.member-identity { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 11px; align-items: center; }
.member-identity > div:first-child { width: 50px; height: 50px; display: grid; place-items: center; color: #fff; background: var(--teal); border-radius: 50%; font-size: 18px; font-weight: 900; }
.member-identity > div:nth-child(2) { min-width: 0; }
.member-identity span { color: var(--teal); font-size: 9px; font-weight: 800; }
.member-identity h3 { margin: 3px 0; font-size: 17px; }
.member-identity p { margin: 0; color: var(--muted); font-size: 10px; }
.member-identity > b { padding: 4px 6px; color: var(--green); background: var(--green-soft); border-radius: 5px; font-size: 9px; }
.member-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.member-stats div { padding: 13px 6px; text-align: center; }
.member-stats div + div { border-left: 1px solid var(--line); }
.member-stats strong { display: block; color: var(--navy); font-size: 14px; }
.member-stats span { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.member-benefits { display: grid; gap: 0; }
.member-benefits > div { display: grid; grid-template-columns: 32px 1fr; gap: 9px; align-items: center; padding: 10px 0; }
.member-benefits > div + div { border-top: 1px solid var(--line); }
.member-benefits svg { width: 20px; height: 20px; color: var(--teal); }
.member-benefits span { display: grid; gap: 2px; }
.member-benefits strong { font-size: 11px; }.member-benefits small { color: var(--muted); font-size: 9px; }
.member-logout { width: 100%; }
.toast { position: fixed; left: 50%; bottom: 92px; z-index: 20; max-width: 340px; padding: 10px 14px; color: #fff; background: rgba(21,36,45,.94); border-radius: 7px; opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: .2s ease; font-size: 11px; }.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 620px) {
  .device-stage { padding: 0; }
  .miniapp-shell { width: 100%; height: 100vh; min-height: 640px; border: 0; border-radius: 0; box-shadow: none; }
}

@media (max-width: 390px) {
  .home-hero { grid-template-columns: minmax(0, 1fr) 122px; }.hero-copy { padding-left: 12px; }.hero-copy::before { top: 25px; width: 3px; height: 62px; }.subject-orbit { width: 120px; height: 120px; transform: translateX(2px); box-shadow: 0 0 0 6px rgba(255,255,255,.05), 0 0 0 15px rgba(255,255,255,.035); }.subject-orbit::before { inset: 18px; }.subject-orbit::after { inset: -8px; }.orbit-center { width: 46px; height: 46px; inset: 37px; }.orbit-item { --orbit-radius: 48px; width: 27px; height: 27px; margin: -13.5px; }.home-hero h1 { font-size: 26px; }
  .home-actions { grid-template-columns: 1fr; }.choice-chip-grid.compact { grid-template-columns: repeat(2, 1fr); }.score-table-heading, .score-entry-row { grid-template-columns: 48px minmax(0, 1fr) 70px; gap: 5px; }.assessment-step { padding: 15px; }
}

@media print {
  body { background: #fff; }.device-stage { display: block; padding: 0; }.miniapp-shell { width: 100%; height: auto; min-height: 0; display: block; overflow: visible; border: 0; border-radius: 0; box-shadow: none; }.miniapp-header, .bottom-nav, .report-toolbar, .app-page:not(.report-page), #reportEmpty { display: none !important; }.app-viewport { overflow: visible; }.report-page { display: block !important; padding: 0; }.report-sheet { border: 0; padding: 12mm; }.report-sheet section { break-inside: avoid; }
}
