:root {
  color-scheme: light;
  --ink: #073b4c;
  --ink-2: #0d5266;
  --paper: #f4f8f9;
  --white: #fff;
  --line: #cbdde1;
  --yellow: #ffd166;
  --cyan: #22b8cf;
  --green: #0d9f6e;
  --red: #d64550;
  --shadow: 0 18px 50px rgba(7, 59, 76, .12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: var(--ink); background: var(--paper); font-size: 16px; line-height: 1.55; }
a { color: inherit; }
button, input, select { font: inherit; }
button, .button { min-height: 46px; }
.site-header { height: 56px; padding: 0 max(20px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 20px; color: white; background: var(--ink); }
.site-header.with-progress { height: 76px; display: grid; grid-template-columns: max-content minmax(180px, 1fr) max-content; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: white; font-weight: 850; font-size: 1.15rem; text-decoration: none; letter-spacing: -.02em; }
.brand-logo { width: 40px; height: 34px; object-fit: contain; flex: 0 0 auto; padding: 3px; box-sizing: border-box; border-radius: 8px; background: #f3f8f9; }
.user-nav { display: flex; align-items: center; gap: 18px; font-size: .92rem; }
.user-nav a, .link-button { color: white; text-decoration: none; opacity: .88; }
.user-nav form { margin: 0; }.link-button { border: 0; padding: 0; min-height: auto; background: transparent; cursor: pointer; }
.user-name { font-weight: 750; }
.page-shell { width: min(1180px, calc(100% - 32px)); flex: 1; margin: 0 auto; padding: 38px 0 64px; }
.site-footer { padding: 14px max(20px, calc((100vw - 1180px) / 2)); color: #58737a; background: #e7f0f2; border-top: 1px solid var(--line); font-size: .82rem; text-align: center; }
.site-footer span { margin-right: 4px; }
.site-footer a { color: var(--ink); font-weight: 750; text-underline-offset: 2px; }
.eyebrow { display: inline-block; color: var(--ink-2); font-size: .78rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
h1,h2 { margin: 0; line-height: 1.12; letter-spacing: -.035em; } h1 { font-size: clamp(2rem, 4vw, 3.6rem); } h2 { font-size: clamp(1.4rem, 2.2vw, 2rem); }
p { margin: .6rem 0 0; }
.button { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 10px; padding: 11px 20px; font-weight: 820; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, opacity .15s; }
.button:hover { transform: translateY(-1px); }.button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid rgba(34,184,207,.35); outline-offset: 2px; }
.button.primary { color: white; background: var(--ink); box-shadow: 0 8px 20px rgba(7,59,76,.16); }.button.primary:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.button:not(.primary):not(.google) { color: var(--ink); border: 1px solid var(--line); background: white; }
.button.google { border: 1px solid var(--line); color: var(--ink); background: white; }
.auth-layout { min-height: calc(100vh - 174px); display: grid; grid-template-columns: 1.15fr minmax(340px, .75fr); gap: clamp(40px, 8vw, 110px); align-items: center; }
.auth-intro { position: relative; padding: 34px 0; }
.auth-brand { display: flex; align-items: center; gap: 13px; width: fit-content; margin: 0 0 16px; color: var(--ink); font-size: 1.45rem; font-weight: 800; letter-spacing: -.035em; }
.auth-brand img { width: 74px; height: 59px; object-fit: contain; }
.auth-brand strong { color: #168ea3; font-weight: 950; }
.auth-intro h1 { max-width: 760px; margin-top: 12px; }
.orbit { position: relative; width: 280px; height: 110px; margin-top: 42px; border: 2px dashed #a7c9d1; border-radius: 50%; transform: rotate(-5deg); }
.orbit span { position: absolute; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; font-size: 1.5rem; background: var(--yellow); box-shadow: var(--shadow); }
.orbit span:nth-child(1) { left: 12px; top: 35px; }
.orbit span:nth-child(2) { left: 112px; top: -18px; background: #8ce0e9; }
.orbit span:nth-child(3) { right: 3px; bottom: -8px; background: #a9dfca; }
.auth-card, .single-card { padding: clamp(26px, 4vw, 44px); border: 1px solid var(--line); border-top: 5px solid var(--yellow); border-radius: 18px 18px 18px 5px; background: white; box-shadow: var(--shadow); }
.auth-card h2 { margin-bottom: 24px; }.stack-form { display: grid; gap: 16px; }.stack-form label { display: grid; gap: 6px; font-weight: 720; }.stack-form input, .stack-form select { width: 100%; min-height: 48px; border: 1px solid #aac5cc; border-radius: 8px; padding: 10px 12px; color: var(--ink); background: white; }.stack-form small, td small { display: block; font-weight: 450; color: #5a737a; }
.role-choice { margin: 0; padding: 0; display: flex; gap: 18px; border: 0; }.role-choice legend { font-weight: 720; margin-bottom: 6px; }.role-choice label { display: flex; align-items: center; gap: 7px; }.role-choice input { width: auto; min-height: auto; }
.separator { display: flex; align-items: center; gap: 10px; margin: 18px 0; color: #6c858c; }.separator::before,.separator::after { content:""; height: 1px; flex:1; background: var(--line); }.auth-card .google { width: 100%; }.auth-switch { text-align: center; color: #5a737a; }.auth-switch a { font-weight: 800; }
.alert { padding: 12px 14px; border-radius: 8px; background: #e8f4f6; }.alert.error { color: #8b2630; background: #fff0f1; border: 1px solid #f2c2c6; }
.single-card { width: min(620px, 100%); margin: 8vh auto 0; }.single-card h1 { margin: 8px 0 12px; font-size: clamp(2rem, 5vw, 3rem); }.single-card form { margin-top: 24px; }
.practice { width: min(900px, 100%); margin: 0 auto; }.score-summary { display: flex; align-items: center; gap: 12px; color: #58737a; font-size: .82rem; font-weight: 650; }.score-summary span + span { padding-left: 12px; border-left: 1px solid var(--line); }.score-summary strong { color: var(--ink); font-size: 1rem; }
.progress-wrap { margin: 20px 0 24px; }.progress-label { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: .88rem; font-weight: 750; }.progress-blocks { display: flex; gap: var(--progress-gap, 3px); width: 100%; min-width: 0; overflow: hidden; padding: 9px 1px 4px; }.progress-block { flex: 1 1 28px; min-width: 0; max-width: 36px; height: 9px; border-radius: 2px; }.progress-block.correct { background: var(--green); }.progress-block.wrong { background: var(--red); }
.header-progress { position: relative; min-width: 0; margin: 0; padding: 7px 12px; border: 1px solid rgba(255,255,255,.72); border-radius: 12px; background: rgba(244,248,249,.96); box-shadow: 0 5px 16px rgba(0,0,0,.16); }.header-progress .progress-label { min-width:0;color:var(--ink); }.header-progress .score-summary { position:static;flex:0 0 auto;margin-left:auto;color:#58737a;transform:none; }.header-progress .score-summary span + span { border-left-color: var(--line); }.header-progress .score-summary strong { color: var(--ink); }.header-progress .progress-blocks { width:100%;max-width:100%;padding:5px 1px 0;overflow:hidden; }
.loading-card,.complete-card,.empty-state { display: grid; place-items: center; min-height: 260px; padding: 36px; text-align: center; border: 1px dashed #9dbec6; border-radius: 16px; background: white; }.spinner { width: 34px;height:34px;border:4px solid #cee1e5;border-top-color:var(--cyan);border-radius:50%;animation:spin .8s linear infinite;margin-bottom:14px}@keyframes spin{to{transform:rotate(360deg)}}
.question-card,.feedback { overflow: hidden; border: 1px solid var(--line); border-radius: 18px 18px 18px 5px; background: white; box-shadow: var(--shadow); }.question-meta { display: flex; justify-content: space-between; gap: 14px; padding: 14px 18px; font-weight: 780; color: white; background: var(--ink); }.question-meta span:last-child { color: var(--yellow); }
.source-page { display: block; width: min(100%, 760px); height: auto; margin: 24px auto; border: 1px solid #d8e3e6; box-shadow: 0 10px 30px rgba(7,59,76,.08); }
.answer-options { margin: 0; padding: 20px 24px; display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; border: 0; border-top: 1px solid var(--line); }.answer-options legend { padding: 0 8px; font-weight: 820; }.answer-options label { cursor: pointer; }.answer-options input { position: absolute; opacity: 0; pointer-events: none; }.answer-options span { min-height: 58px; display: grid; place-items: center; border: 2px solid var(--line); border-radius: 10px; font-size: 1.1rem; transition: .15s; }.answer-options input:checked + span { color: white; border-color: var(--ink); background: var(--ink); box-shadow: 0 0 0 4px rgba(34,184,207,.2); }.answer-options input:focus-visible + span { outline: 3px solid rgba(34,184,207,.35); }.answer-submit { margin: 0 24px 24px; width: calc(100% - 48px); }
.countdown-button { position: relative; overflow: hidden; }.button.primary.countdown-button:disabled { opacity: 1; cursor: not-allowed; }.countdown-button::after { content: ''; position: absolute; left: 0; bottom: 0; width: var(--countdown-progress,100%); height: 5px; border-radius: 0 99px 99px 0; background: var(--yellow); pointer-events: none; transition: width .25s linear; }
.practice-guidance { color: #58737a; font-size: .9rem; line-height: 1.45; }.practice-guidance strong { color: var(--ink); }.question-card>.practice-guidance { margin: 0 24px 12px; }.feedback-guidance { margin: 0 0 14px; padding: 12px 14px; border-left: 4px solid var(--yellow); border-radius: 4px 9px 9px 4px; background: #fff9e8; }.feedback-next { width: 100%; }
.feedback { padding: clamp(24px,4vw,40px); }.feedback.correct { border-top: 6px solid var(--green); }.feedback.wrong { border-top: 6px solid var(--red); }.feedback-heading { display: flex; align-items: center; gap: 16px; }.feedback-heading>span { width: 54px;height:54px;display:grid;place-items:center;border-radius:50%;font-size:2rem;font-weight:900;color:white;background:var(--green)}.feedback.wrong .feedback-heading>span{background:var(--red)}.feedback-kicker { margin:0;color:#5a737a;font-weight:750 }.solution-details { margin: 26px 0; border-top: 1px solid var(--line); }.solution-details h3 { margin: 0; padding: 18px 0; font-size: 1rem; }.solution-page { margin: 0 auto; }.complete-badge { width:64px;height:64px;display:grid;place-items:center;border-radius:50%;color:white;background:var(--green);font-size:2rem }
.dashboard-heading { display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:26px }.dashboard-heading h1{margin:5px 0 6px}.dashboard-heading p{color:#537078}.class-tabs{width:100%;display:flex;flex-wrap:wrap;align-items:stretch;gap:10px;padding:2px 2px 10px}.class-filter-list{display:contents}.class-filter-tab{position:relative;flex:0 0 150px;min-height:76px;border:1px solid var(--line);border-radius:10px;background:white;overflow:hidden}.class-filter-tab.active{color:white;border-color:var(--ink);background:var(--ink)}.class-filter-tab>a{height:100%;display:block;padding:13px 42px 13px 15px;text-decoration:none}.class-filter-tab strong,.class-filter-tab span{display:block}.class-filter-tab span{font-size:.82rem;opacity:.75}.class-filter-remove{position:absolute;top:7px;right:7px;width:28px;height:28px;min-height:0;display:grid;place-items:center;padding:0;border:0;border-radius:7px;color:#5f7b82;background:transparent;cursor:pointer}.class-filter-remove:hover{color:var(--red);background:#fff0f1}.class-filter-tab.active .class-filter-remove{color:rgba(255,255,255,.72)}.class-filter-tab.active .class-filter-remove:hover{color:white;background:rgba(255,255,255,.14)}.class-filter-remove svg{width:15px;height:15px}.class-filter-add{flex:0 0 54px;width:54px;min-height:76px;padding:0;border:2px dashed #9dbec6;border-radius:10px;color:var(--ink-2);background:var(--paper);font-size:1.75rem;font-weight:500;line-height:1;cursor:pointer}.class-filter-add:hover{color:var(--ink);border-color:var(--cyan);background:white}.class-filter-add:focus-visible,.class-filter-remove:focus-visible{outline:3px solid rgba(34,184,207,.35);outline-offset:2px}.class-selection-empty{min-height:190px;margin-top:20px;display:grid;place-content:center;gap:4px;padding:28px;border:1px dashed #9dbec6;border-radius:14px;color:#5a737a;background:rgba(255,255,255,.55);text-align:center}.class-selection-empty strong{color:var(--ink);font-size:1.08rem}.class-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:20px 0}.class-summary>div{padding:18px;border-left:5px solid var(--yellow);background:white;box-shadow:0 8px 24px rgba(7,59,76,.07)}.class-summary span{display:block;color:#638087;font-size:.8rem;text-transform:uppercase;letter-spacing:.08em}.class-summary strong{font-size:1.5rem}.panel{margin-top:18px;border:1px solid var(--line);border-radius:14px;background:white;overflow:hidden}.panel-heading{display:flex;justify-content:space-between;align-items:center;padding:18px 20px;border-bottom:1px solid var(--line)}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{padding:13px 16px;text-align:left;border-bottom:1px solid #e5eef0;white-space:nowrap}th{font-size:.78rem;text-transform:uppercase;letter-spacing:.07em;color:#5b767d;background:#f7fafb}.result-pill{display:inline-block;padding:3px 9px;border-radius:20px;font-size:.78rem;font-weight:800}.result-pill.correct{color:#06704c;background:#dcf4ea}.result-pill.wrong{color:#9c2732;background:#ffe5e7}
.table-controls{display:flex;align-items:end;justify-content:space-between;gap:16px;padding:14px 18px;border-bottom:1px solid var(--line);background:#f7fafb}.table-filter{display:grid;gap:4px;min-width:min(380px,100%);font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:#5b767d}.table-filter input{min-height:42px;padding:8px 12px;border:1px solid #aac5cc;border-radius:8px;color:var(--ink);background:white}.table-pager{display:flex;align-items:center;gap:10px;white-space:nowrap}.table-pager button{min-height:38px;padding:7px 12px;border:1px solid var(--line);border-radius:8px;color:var(--ink);background:white;font-weight:750;cursor:pointer}.table-pager button:disabled{opacity:.42;cursor:not-allowed}.table-pager span{min-width:110px;text-align:center;color:#5a737a;font-size:.86rem}.table-sort{width:100%;min-height:0;display:flex;align-items:center;gap:6px;padding:0;border:0;color:inherit;background:transparent;font:inherit;text-align:left;text-transform:inherit;letter-spacing:inherit;cursor:pointer}.table-sort::after{content:'↕';opacity:.38;font-size:.9rem}.sortable-table th[aria-sort="ascending"] .table-sort::after{content:'↑';opacity:1}.sortable-table th[aria-sort="descending"] .table-sort::after{content:'↓';opacity:1}.table-sort:focus-visible{outline:2px solid var(--cyan);outline-offset:3px}.dashboard-actions{display:flex;gap:10px;flex-wrap:wrap}.catalog-filters{display:flex;align-items:end;gap:12px;padding:18px;border:1px solid var(--line);border-radius:14px;background:white}.catalog-filters label{display:grid;gap:5px;min-width:190px;font-size:.82rem;font-weight:800}.catalog-filters select{min-height:44px;padding:8px 34px 8px 11px;border:1px solid #aac5cc;border-radius:8px;color:var(--ink);background:white}.catalog-summary{display:flex;align-items:baseline;gap:10px;margin:24px 0 12px}.catalog-summary strong{font-size:1.25rem}.catalog-summary span{color:#5a737a}.catalog-list{display:grid;gap:22px}.catalog-card{overflow:hidden;border:1px solid var(--line);border-radius:16px;background:white;box-shadow:0 10px 30px rgba(7,59,76,.07)}.catalog-card>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;color:white;background:var(--ink)}.catalog-card h2{margin-top:3px;font-size:1.45rem}.catalog-card header .eyebrow{color:#bce8ee}.answer-badge{flex:0 0 auto;padding:7px 12px;border-radius:99px;color:var(--ink);background:var(--yellow);font-size:.84rem;font-weight:900}.catalog-columns{display:grid;grid-template-columns:1fr 1fr;gap:0}.catalog-columns section{min-width:0;padding:18px}.catalog-columns section+section{border-left:1px solid var(--line)}.catalog-columns h3{margin:0 0 12px;font-size:1rem}.catalog-columns img{display:block;width:100%;height:auto;border:1px solid #d8e3e6;background:white}
.sortable-table thead{position:relative;z-index:2}.table-sort[data-tooltip]{position:relative}.table-sort[data-tooltip]::before{content:attr(data-tooltip);position:absolute;top:calc(100% + 10px);left:0;z-index:10;width:max-content;max-width:280px;padding:9px 11px;border-radius:8px;color:white;background:var(--ink);box-shadow:0 8px 24px rgba(7,59,76,.25);font-size:.78rem;font-weight:650;line-height:1.35;letter-spacing:normal;text-align:left;text-transform:none;white-space:normal;opacity:0;visibility:hidden;transform:translateY(-3px);transition:opacity .15s,transform .15s,visibility .15s;pointer-events:none}.table-sort[data-tooltip]:hover::before,.table-sort[data-tooltip]:focus-visible::before{opacity:1;visibility:visible;transform:translateY(0)}.sortable-table th:nth-last-child(-n+2) .table-sort[data-tooltip]::before{right:0;left:auto}.teacher-test-note{margin:0 0 14px;color:#537078;font-size:.86rem;text-align:center}
dialog { width:min(520px,calc(100% - 28px)); padding:0;border:0;border-radius:16px;box-shadow:0 24px 90px rgba(7,59,76,.3) }dialog::backdrop{background:rgba(7,38,48,.62)}.dialog-card{position:relative;display:grid;gap:16px;padding:32px}.dialog-card label{display:grid;gap:6px;font-weight:750}.dialog-card input,.dialog-card select{min-height:48px;padding:10px;border:1px solid var(--line);border-radius:8px;color:var(--ink);background:white}.dialog-close{position:absolute;right:16px;top:12px;min-height:auto;border:0;background:transparent;font-size:1.8rem;cursor:pointer}
[hidden] { display: none !important; }
@media (max-width: 760px) {
  .page-shell{width:min(100% - 22px,1180px);padding-top:24px}.site-header{height:52px;min-height:52px;padding:8px 12px}.site-header.with-progress{height:auto;grid-template-columns:minmax(0,1fr) max-content;gap:7px 12px}.site-header.with-progress .header-progress{grid-column:1/-1}.header-progress .progress-label{font-size:.78rem}.header-progress .score-summary{gap:8px;font-size:.75rem}.header-progress .score-summary span + span{padding-left:8px}.header-progress .score-summary strong{font-size:.9rem}.header-progress .progress-blocks{padding-top:4px}.brand{font-size:1rem}.brand-logo{width:35px;height:30px}.user-name{display:none}.user-nav{gap:12px}.auth-layout{grid-template-columns:1fr;gap:22px}.auth-intro{padding:18px 4px}.auth-brand img{width:64px;height:51px}.auth-intro h1{font-size:2.5rem}.orbit{display:none}.auth-card{padding:24px}.question-meta{font-size:.85rem}.source-page{margin:12px auto;border-left:0;border-right:0}.answer-options{grid-template-columns:repeat(2,1fr);padding:18px 14px}.question-card>.practice-guidance{margin:0 14px 10px}.answer-submit{margin:0 14px 18px;width:calc(100% - 28px)}.dashboard-heading{align-items:start;flex-direction:column}.class-summary{grid-template-columns:repeat(4,minmax(150px,1fr));overflow-x:auto;padding-bottom:8px}.panel{border-radius:10px}.teacher-dashboard{min-width:0}.table-controls{align-items:stretch;flex-direction:column}.table-filter{min-width:0}.table-pager{justify-content:space-between}.catalog-filters{align-items:stretch;flex-direction:column}.catalog-filters label{min-width:0}.catalog-columns{grid-template-columns:1fr}.catalog-columns section+section{border-left:0;border-top:1px solid var(--line)}
}
@media (prefers-reduced-motion: reduce){*{scroll-behavior:auto!important;transition:none!important}.spinner{animation:none}}
