.gs { --ink:#183a4b; --muted:#536b78; --line:#dce7eb; --teal:#087f72; margin:2rem 0; font-size:14px; line-height:1.55; color:var(--ink); border:1px solid var(--line); border-radius:16px; background:#f5f9fa; overflow:hidden; }
.gs [hidden] { display:none !important; }
.gs summary { cursor:pointer; }
.gs-body { padding:26px; }
.gs-disclaimer { background:#fff6df; border-left:3px solid #bc8c2b; border-radius:0 7px 7px 0; padding:12px 15px; color:#674e1a; font-size:12px; margin:0 0 20px; }
.gs-disclaimer strong { color:inherit; }
.gs-toolbar { display:flex; align-items:center; gap:18px; margin:24px 0; }
.gs button,.gs select,.gs input { font:inherit; }
.gs button { cursor:pointer; border:1px solid var(--line); border-radius:7px; background:white; color:var(--ink); padding:9px 12px; }
.gs .gs-primary { background:var(--ink); border-color:var(--ink); color:white; font-weight:700; padding:13px 19px; white-space:nowrap; box-shadow:0 3px 7px #183a4b15; }
.gs button:hover { filter:brightness(.94); }
.gs button:disabled { cursor:wait; opacity:.65; }
.gs :focus-visible { outline:3px solid #267ac5; outline-offset:3px; }
.gs-toolbar p { color:var(--muted); font-size:12px; margin:0; }
.gs-explorer { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr); gap:16px; align-items:start; }
.gs-chart-card,.gs-student { border:1px solid var(--line); background:white; border-radius:12px; padding:18px; min-width:0; }
.gs-chart-heading { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; align-items:center; }
.gs h3 { color:var(--ink); font-size:16px; margin:0; letter-spacing:-.02em; }
.gs-muted { font-size:12px; color:var(--muted); }
.gs-chart-card > .gs-muted { margin:8px 0 0; }
.gs-checkbox { font-size:11px; display:flex; align-items:center; gap:5px; cursor:pointer; }
.gs-chart-wrap { position:relative; margin:12px 0 0; }
#gs-chart { display:block; width:100%; height:auto; overflow:visible; }
.gs-axis { fill:#536b78; font-size:12px; }
.gs-axis-title { fill:#183a4b; font-size:14px; font-weight:600; }
.gs-grid { stroke:#e9eef1; stroke-width:1; }
.gs-point { cursor:pointer; outline:none; }
.gs-point .gs-dot { stroke:white; stroke-width:1; transition:r .12s; }
.gs-point:hover .gs-dot,.gs-point:focus .gs-dot,.gs-point.gs-selected .gs-dot { r:7; stroke:#183a4b; stroke-width:2; }
.gs-point:focus .gs-focus-ring,.gs-point.gs-selected .gs-focus-ring { display:block; }
.gs-focus-ring { display:none; fill:none; stroke:#183a4b; stroke-width:1.5; }
.gs-point text { font-size:10px; font-weight:700; paint-order:stroke; stroke:white; stroke-width:3px; pointer-events:none; }
.gs-empty { position:absolute; top:35%; left:19%; right:8%; text-align:center; pointer-events:none; padding:20px 5px; background:#ffffffde; border-radius:14px; }
.gs-empty p { color:var(--muted); font-size:12px; }
.gs-legend { display:flex; gap:12px; flex-wrap:wrap; justify-content:center; font-size:11px; margin:7px 0 14px; }
.gs-legend span::before { content:""; display:inline-block; width:8px; height:8px; border-radius:50%; background:var(--grade-color); margin-right:5px; }
.gs [data-grade="A"] { --grade-color:#087f72; }
.gs [data-grade="B"] { --grade-color:#386bb4; }
.gs [data-grade="C"] { --grade-color:#aa790e; }
.gs [data-grade="D"] { --grade-color:#ca5d36; }
.gs [data-grade="F"] { --grade-color:#9b427e; }
.gs .gs-chart-note { font-size:11px; line-height:1.6; border-top:1px solid var(--line); padding-top:12px; }
.gs-student-top { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.gs-student-top button { padding:3px 8px; font-size:11px; }
.gs-student > p { margin:8px 0 12px; min-height:38px; }
.gs select { max-width:100%; border:1px solid #becfd7; border-radius:6px; background:white; color:var(--ink); padding:8px; }
#gs-student-select { width:100%; font-size:12px; }
.gs-student-grade { display:flex; align-items:center; gap:12px; margin:18px 0 12px; }
.gs-grade-badge { background:var(--grade-color); color:white; display:flex; align-items:center; justify-content:center; width:52px; height:52px; border-radius:12px; font-size:24px; font-weight:700; flex-shrink:0; }
.gs-student-grade strong { display:block; color:var(--ink); font-size:16px; }
.gs-student-grade small { color:var(--muted); font-size:11px; }
.gs table { font-size:12px; border:none; margin-bottom:12px; }
.gs td,.gs th { border:0; padding:5px 0; background:transparent !important; text-align:left; font-weight:400; }
.gs td:last-child,.gs th:last-child { text-align:right; font-variant-numeric:tabular-nums; }
.gs thead th { color:var(--muted); font-size:10px; text-transform:uppercase; letter-spacing:.06em; border-bottom:1px solid var(--line); }
.gs .gs-subtotal th,.gs .gs-subtotal td { border-top:1px solid var(--line); font-weight:700; }
.gs .gs-plan-table { font-size:11px; }
.gs-plan-table td,.gs-plan-table th { text-align:right; }
.gs-plan-table th:first-child { text-align:left; }
.gs-plan-table caption { text-align:left; font-weight:700; margin:12px 0 5px; font-size:12px; }
.gs .gs-plan-table .gs-winner { color:#07695f; font-weight:700; }
.gs-explanation { font-size:12px; color:var(--muted); }
.gs-student-detail-button { width:100%; font-size:12px !important; }
.gs-cohort-summary { display:flex; flex-wrap:wrap; gap:8px 20px; margin:15px 0 0; font-size:12px; color:var(--muted); }
.gs-cohort-summary strong { color:var(--ink); }
.gs-distribution { margin-top:22px; padding-top:18px; border-top:1px solid var(--line); }
.gs-distribution summary { font-size:16px; font-weight:700; }
.gs-distribution > p { margin:12px 0 8px; }
.gs-table-scroll { max-width:100%; overflow-x:auto; }
.gs-distribution caption { text-align:left; color:var(--muted); font-size:11px; margin-bottom:6px; }
.gs .gs-distribution table { margin:0; min-width:660px; table-layout:fixed; font-size:12px; background:white; }
.gs .gs-distribution th,.gs .gs-distribution td { padding:6px 4px; text-align:center; white-space:nowrap; font-variant-numeric:tabular-nums; }
.gs .gs-distribution th:first-child { width:82px; text-align:left; }
.gs-distribution thead th[data-grade] { color:var(--grade-color); font-weight:700; font-size:12px; text-transform:none; }
.gs-distribution tbody tr + tr { border-top:1px solid var(--line); }
.gs-calculator,.gs-method { margin-top:22px; border-top:1px solid var(--line); padding-top:18px; }
.gs-calculator > summary { font-size:16px; font-weight:700; }
.gs-calculator-body,.gs-method > div { padding-top:16px; }
.gs-calculator-body > p,.gs-method { font-size:12px; color:var(--muted); }
.gs-inputs { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.gs-inputs label { font-size:12px; font-weight:600; }
.gs-inputs input { display:block; width:100%; margin-top:5px; padding:9px; border:1px solid #becfd7; border-radius:6px; background:white; color:var(--ink); }
.gs-inputs input:invalid { border-color:#b44a32; }
.gs-result { margin:18px 0; padding:15px; background:#e6f1ee; border-radius:9px; font-size:14px; }
.gs-result strong { color:#07695f; }
.gs-result-total { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:4px 16px; }
.gs-result-total strong { font-size:26px; }
.gs-result p { margin:8px 0 12px; }
.gs-result table { margin:14px 0 8px; font-size:13px; }
.gs-result caption { text-align:left; color:var(--muted); font-size:12px; margin-bottom:4px; }
.gs-result .gs-result-labs { border-top:1px solid #c5ddd5; padding-top:12px; margin:14px 0 0; font-size:12px; color:var(--muted); }
.gs-target { display:flex; flex-wrap:wrap; gap:10px; align-items:center; font-size:13px; }
.gs-target p { margin:0; flex:1 1 220px; }
.gs h4 { font-size:13px; margin:20px 0 10px; }
.gs-scenarios { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:8px; }
.gs-scenario { text-align:center; padding:10px 3px; background:white; border:1px solid var(--line); border-radius:7px; font-size:11px; }
.gs-scenario strong { display:block; color:var(--grade-color); font-size:19px; }
.gs-scenario span { color:var(--muted); display:block; }
.gs-method summary { font-weight:600; color:var(--ink); }
.gs-sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
@media (max-width:1100px) { .gs-explorer { grid-template-columns:1fr; } }
@media (max-width:600px) { .gs-body { padding:15px; } .gs-toolbar { align-items:flex-start; flex-direction:column; gap:10px; } .gs-inputs { grid-template-columns:repeat(2,minmax(0,1fr)); } .gs-scenarios { grid-template-columns:repeat(4,minmax(0,1fr)); } .gs-chart-card { padding:12px; } .gs-empty { padding:10px 0; } .gs-empty p { font-size:11px; } .gs-legend { gap:8px; } }
@media (prefers-reduced-motion:reduce) { .gs * { transition:none !important; } }
@media (max-width:600px) { .gs-axis { font-size:18px; } .gs-axis-title { font-size:19px; } }
