@import url('/shared/fonts.css');
:root {
  --blue: #3155d9;
  --blue-dark: #2444b9;
  --ink: #182a46;
  --muted: #72809a;
  --line: #e5ebf5;
  --orange: #ed9b50;
  --bg: #f6f8fd;
  --green: #23886a;
  --red: #bd4255;
  --shadow: 0 18px 65px #263f7810;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family:
    'KL Sans',
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.6;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.22;
  letter-spacing: -0.035em;
}
h1 {
  font-size: 42px;
}
h2 {
  font-size: 28px;
}
h3 {
  font-size: 20px;
}
p + p {
  margin-top: 12px;
}
img,
svg {
  max-width: 100%;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #84a8ff;
  outline-offset: 3px;
}
button {
  border: 0;
}
label {
  display: block;
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1.45;
  color: #465775;
}
input,
textarea,
select {
  width: 100%;
  min-height: 49px;
  border: 1px solid var(--line);
  background: #f8faff;
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--ink);
  outline-offset: 2px;
}
textarea {
  min-height: 108px;
  resize: vertical;
}
input[type='checkbox'],
input[type='radio'] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--blue);
}
input::placeholder,
textarea::placeholder {
  color: #98a2b7;
}
label > input,
label > textarea,
label > select {
  margin-top: 7px;
}
small {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}
.muted {
  color: var(--muted);
}
.blue {
  color: var(--blue);
}
.tiny {
  font-size: 13px;
  line-height: 1.55;
}
.eyebrow {
  font-size: 11.5px;
  line-height: 1.4;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 750;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none !important;
}
.brand img {
  width: 38px;
  height: 38px;
}
.brand strong {
  font-size: 21px;
  letter-spacing: -0.05em;
}
.brand .divider {
  height: 22px;
  width: 1px;
  background: #c6d2e5;
  margin: 0 4px;
}
.brand .tag {
  font-size: 12.5px;
  color: #6c7992;
  font-weight: 500;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--blue);
  color: white;
  border: 1px solid transparent;
  border-radius: 12px;
  min-height: 48px;
  padding: 12px 20px;
  font-weight: 650;
  text-decoration: none !important;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
.btn:hover {
  background: var(--blue-dark);
  box-shadow: 0 5px 15px #3155d922;
}
.btn.secondary {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}
.btn.secondary:hover {
  background: #f1f5ff;
}
.btn.soft {
  background: #edf2ff;
  color: var(--blue);
}
.btn.danger {
  background: #fff0f2;
  color: var(--red);
}
.btn.small {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 13px;
}
.btn.full {
  width: 100%;
}
.icon {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
}
.iconbox {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  background: #eef2ff;
  color: var(--blue);
  border-radius: 16px;
}
.iconbox.orange {
  background: #fff3e5;
  color: var(--orange);
}
.iconbox .icon {
  width: 24px;
  height: 24px;
}
.auth-page {
  min-height: 100svh;
  background:
    radial-gradient(ellipse at 10% 15%, #dee7ff 0, transparent 47%),
    radial-gradient(ellipse at 93% 80%, #fff0df 0, transparent 40%), #f8faff;
  position: relative;
  isolation: isolate;
}
.auth-page:before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(#9fb8ee 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.38;
  mask-image: linear-gradient(#000, transparent);
}
.auth-nav {
  max-width: 1300px;
  margin: auto;
  padding: 31px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.auth-nav .navnote {
  font-size: 12px;
  color: #73809a;
  display: flex;
  align-items: center;
  gap: 8px;
}
.auth-grid {
  max-width: 1230px;
  margin: 30px auto 0;
  padding: 15px 40px 28px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 85px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(36px, 3.7vw, 55px);
  font-weight: 760;
  letter-spacing: -0.052em;
  line-height: 1.14;
  margin-top: 18px;
  max-width: 590px;
}
.hero h1 span {
  color: var(--blue);
  position: relative;
  display: inline-block;
}
.hero h1 span:after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 88%;
  height: 4px;
  border-radius: 50%;
  background: #ffbd7e;
  transform: rotate(-1deg);
}
.hero .lead {
  font-size: 15px;
  line-height: 1.85;
  color: #78849b;
  max-width: 470px;
  margin: 26px 0 23px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #ffffffba;
  border: 1px solid white;
  box-shadow: 0 3px 8px #1c397207;
  border-radius: 30px;
  padding: 9px 13px;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}
.chip .icon {
  color: var(--blue);
  width: 16px;
  height: 16px;
}
.chip:nth-child(2) .icon {
  color: var(--orange);
}
.hero-art {
  width: 100%;
  max-width: 565px;
  display: block;
  margin: 13px -14px -5px;
}
.hero-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: #8190a8;
  margin: 12px 0;
}
.hero-footer span + span {
  border-left: 1px solid #cad5e8;
  padding-left: 12px;
}
.auth-card {
  background: #ffffffee;
  border: 1px solid #fff;
  border-radius: 29px;
  padding: 36px;
  box-shadow: 0 20px 75px #324e9010;
  position: relative;
}
.auth-card h2 {
  font-size: 25px;
  font-weight: 750;
}
.auth-card .sub {
  font-size: 13px;
  color: var(--muted);
  margin: 10px 0 26px;
  line-height: 1.8;
}
.choice-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 23px 20px;
  margin: 13px 0;
  color: var(--ink);
  text-decoration: none !important;
  transition:
    border 0.15s,
    background 0.15s,
    box-shadow 0.15s;
}
.choice-card:hover {
  border-color: #89a5f4;
  background: #fafcff;
  box-shadow: 0 4px 18px #3155d90a;
}
.choice-card.institution:hover {
  border-color: #efb274;
  background: #fffcf8;
}
.choice-card h3 {
  font-size: 16px;
  letter-spacing: -0.025em;
  margin: 2px 0 7px;
}
.choice-card p {
  font-size: 12px;
  color: #8290a5;
  line-height: 1.8;
}
.choice-card .arrow {
  margin-left: auto;
  color: #9caac2;
}
.privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  color: #8b97aa;
  padding-top: 23px;
  margin-top: 25px;
  border-top: 1px solid #eef2f7;
}
.privacy .icon {
  color: #3caa84;
  width: 16px;
  height: 16px;
}
.auth-foot {
  max-width: 1210px;
  margin: 0 auto;
  padding: 10px 40px 24px;
  display: flex;
  justify-content: space-between;
  color: #96a0b3;
  font-size: 10px;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #8b97ab;
  margin-bottom: 24px;
}
.form-stack {
  display: grid;
  gap: 18px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-grid .wide {
  grid-column: 1/-1;
}
.password-wrap {
  position: relative;
}
.password-wrap input {
  padding-right: 65px;
}
.password-toggle {
  position: absolute;
  right: 9px;
  top: 14px;
  background: none;
  color: var(--muted);
  font-size: 11px;
  min-height: 35px;
}
.form-error {
  background: #fff0f2;
  border: 1px solid #ffdce2;
  color: #ad3b51;
  padding: 12px 15px;
  border-radius: 10px;
  font-size: 13px;
  display: none;
}
.form-error:not(:empty) {
  display: block;
}
.notice {
  border: 1px solid #dce6ff;
  background: #f0f5ff;
  color: #4c659e;
  border-radius: 14px;
  padding: 17px 19px;
  font-size: 13px;
  line-height: 1.8;
}
.notice.warn {
  background: #fff8ed;
  border-color: #f5e4c6;
  color: #99733f;
}
.notice.success {
  background: #eef9f5;
  border-color: #cfeadf;
  color: #357860;
}
.checkrow {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  line-height: 1.6;
}
.checkrow input {
  flex-shrink: 0;
  margin-top: 3px;
}
.page-header {
  background: #ffffffea;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}
.header-inner {
  max-width: 1240px;
  margin: auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}
.avatar {
  width: 37px;
  height: 37px;
  background: #eaf0ff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--blue);
  font-weight: 700;
}
.workspace {
  max-width: 1170px;
  padding: 40px 28px 60px;
  margin: auto;
}
.page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.page-title p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 14px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 7px 30px #34517804;
  padding: 27px;
}
.card + .card {
  margin-top: 20px;
}
.narrow {
  max-width: 850px;
  margin: auto;
}
.steps {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.step {
  font-size: 12px;
  color: #8a97ad;
  display: flex;
  gap: 8px;
  align-items: center;
}
.step b {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e9eef7;
}
.step.active {
  color: var(--blue);
}
.step.active b {
  background: var(--blue);
  color: white;
}
.progress-track {
  height: 7px;
  background: #eaf0fb;
  border-radius: 99px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--blue);
  border-radius: 99px;
}
.split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.space {
  margin-top: 22px;
}
.space-sm {
  margin-top: 12px;
}
.fields-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.field-choice {
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: #63728c;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.field-choice.selected {
  border-color: #7c9def;
  background: #edf3ff;
  color: var(--blue);
  font-weight: 650;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 25px 0;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 20px;
  background: white;
}
.stat .value {
  font-size: 29px;
  line-height: 1.2;
  font-weight: 720;
  color: var(--ink);
  margin: 9px 0 4px;
}
.stat .label {
  font-size: 13px;
  color: var(--muted);
}
.welcome-banner {
  padding: 31px 35px;
  background: linear-gradient(115deg, #ecf2ff, #f8fbff 65%, #fff4e7);
  border: 1px solid #e2eafb;
  border-radius: 23px;
}
.welcome-banner h2 {
  max-width: 600px;
  font-size: 30px;
}
.session-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.session-card {
  padding: 23px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 17px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.session-card h3 {
  font-size: 16px;
  min-height: 40px;
}
.session-card p {
  font-size: 13px;
  color: var(--muted);
  flex: 1;
}
.session-meta {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--muted);
}
.badge {
  font-size: 12px;
  font-weight: 650;
  padding: 5px 10px;
  background: #eef3ff;
  color: var(--blue);
  border-radius: 8px;
  display: inline-block;
  white-space: nowrap;
}
.badge.green {
  background: #edf8f3;
  color: #348265;
}
.badge.orange {
  background: #fff4e6;
  color: #aa793d;
}
.badge.red {
  background: #fff0f3;
  color: #ac435b;
}
.instructions li {
  margin: 10px 0;
  font-size: 14px;
  color: #62728c;
}
.test-shell {
  max-width: 1130px;
  margin: auto;
  padding: 27px;
}
.test-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}
.timer {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  min-width: 137px;
  padding: 11px 20px;
  text-align: right;
  flex-shrink: 0;
}
.timer strong {
  font-variant-numeric: tabular-nums;
  font-size: 27px;
  line-height: 1.15;
  color: var(--blue);
  display: block;
}
.timer.low strong {
  color: var(--red);
}
.test-layout {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 22px;
}
.question-card {
  padding: 34px;
  min-height: 450px;
}
.question-prompt {
  font-size: 21px;
  line-height: 1.65;
  font-weight: 600;
  margin: 20px 0 25px;
  letter-spacing: -0.02em;
}
.question-image {
  max-height: 220px;
  max-width: 100%;
  width: auto;
  display: block;
  margin: 16px auto;
}
.options {
  display: grid;
  gap: 11px;
}
.option {
  width: 100%;
  display: flex;
  text-align: left;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  background: white;
  color: #5a6b86;
  border-radius: 12px;
  padding: 14px;
  min-height: 55px;
}
.option.selected {
  background: #eef3ff;
  border-color: #7295ed;
  color: var(--blue);
}
.option .letter {
  border: 1px solid #e1e7f2;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 12px;
}
.option.selected .letter {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}
.option img {
  width: 150px;
  max-height: 125px;
}
.options.visual-options {
  grid-template-columns: 1fr 1fr;
}
.visual-options .option {
  justify-content: center;
  flex-direction: column;
  padding: 9px;
}
.question-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 18px 0;
}
.question-nav button {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 34px;
  background: white;
  color: #8b97ab;
  font-size: 12px;
}
.question-nav button.done {
  background: #eaf5ef;
  color: #39846a;
  border-color: #d9ece1;
}
.question-nav button.current {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.save-status {
  font-size: 11px;
  color: var(--green);
  display: flex;
  gap: 6px;
  align-items: center;
}
.question-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 27px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.feedback {
  margin-top: 20px;
  padding: 17px;
  border-radius: 12px;
  font-size: 13px;
  background: #edf8f3;
  color: #398067;
}
.feedback.wrong {
  background: #fff5ea;
  color: #a7743d;
}
.rank-list .option {
  cursor: pointer;
}
.rank-list .order {
  font-size: 14px;
  color: var(--blue);
  font-weight: 700;
}
.speed-card {
  max-width: 620px;
  margin: auto;
  padding: 30px 38px;
  text-align: center;
}
.speed-problem {
  font-size: 72px;
  line-height: 1.14;
  font-weight: 650;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  width: 155px;
  margin: 24px auto 8px;
  text-align: right;
}
.speed-problem .line {
  border-top: 3px solid #a3b4db;
  padding-top: 12px;
  color: #bdc8dc;
}
.numpad {
  max-width: 320px;
  margin: 25px auto 5px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.numpad button {
  min-height: 56px;
  border: 1px solid #dce5f7;
  background: #f6f9ff;
  border-radius: 13px;
  color: var(--ink);
  font-size: 23px;
  font-weight: 600;
}
.numpad button:active {
  background: var(--blue);
  color: white;
}
.numpad button:last-child {
  grid-column: 2;
}
.speed-blocks {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 5px;
  margin-top: 20px;
}
.speed-blocks span {
  height: 5px;
  border-radius: 3px;
  background: #e7edf7;
}
.speed-blocks span.done {
  background: #9bb1ee;
}
.speed-blocks span.current {
  background: var(--blue);
}
.report-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 22px;
}
.bars {
  display: grid;
  gap: 17px;
  margin-top: 22px;
}
.bar-row .split {
  font-size: 12px;
  margin-bottom: 6px;
}
.bar-row .progress-track {
  height: 7px;
}
.recommendation {
  border-bottom: 1px solid var(--line);
  padding: 17px 0;
}
.recommendation:last-child {
  border: 0;
}
.recommendation h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.recommendation p {
  font-size: 12px;
  color: var(--muted);
}
.chart {
  width: 100%;
  min-height: 220px;
}
.chart text {
  font-family: inherit;
  fill: var(--muted);
  font-size: 10px;
}
.report-ai {
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.9;
}
.admin-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 100svh;
}
.sidebar {
  background: white;
  border-right: 1px solid var(--line);
  padding: 30px 21px;
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8190a6;
  padding: 11px 13px;
  border-radius: 11px;
  font-size: 13px;
  text-decoration: none;
}
.sidebar nav a.active {
  background: #eef3ff;
  color: var(--blue);
  font-weight: 650;
}
.sidebar-bottom {
  margin-top: auto;
}
.admin-main {
  min-width: 0;
}
.admin-header {
  height: 78px;
  background: white;
  border-bottom: 1px solid var(--line);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-content {
  padding: 30px 32px;
  max-width: 1550px;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 20px 0;
}
.toolbar input {
  max-width: 330px;
}
.toolbar select {
  width: auto;
}
.table-wrap {
  overflow: auto;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13.5px;
  text-align: left;
}
th {
  color: #8b98ad;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #fafbfe;
  font-weight: 650;
}
th,
td {
  padding: 15px 18px;
  border-bottom: 1px solid #eff2f8;
  vertical-align: middle;
}
td p {
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 4px;
}
td .btn {
  white-space: nowrap;
}
tbody tr:last-child td {
  border-bottom: 0;
}
.empty {
  text-align: center;
  padding: 44px;
  color: #8a98b0;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}
.tab {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 15px;
  font-size: 12px;
  color: var(--muted);
}
.tab.active {
  color: var(--blue);
  background: #edf3ff;
  border-color: #b4c8f3;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.code-input {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  min-height: 250px;
}
.credential-box {
  font-family: ui-monospace, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f3f6fc;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 15px;
  font-size: 12px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 22px;
  width: min(680px, calc(100vw - 28px));
  max-height: 90svh;
  padding: 28px;
  color: var(--ink);
  box-shadow: 0 30px 100px #172b5140;
}
dialog::backdrop {
  background: #14264d55;
  backdrop-filter: blur(3px);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 22px;
}
.modal-head button {
  background: #f1f4fa;
  border-radius: 9px;
  width: 34px;
  height: 34px;
  color: #74849f;
}
#toast {
  position: fixed;
  inset: auto auto 25px 50%;
  margin: 0;
  border: 0;
  transform: translateX(-50%) translateY(20px);
  background: #1b304e;
  color: white;
  border-radius: 12px;
  padding: 13px 21px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  max-width: 90vw;
  box-shadow: var(--shadow);
  font-size: 13px;
  transition: 0.2s;
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.loading {
  min-height: 60svh;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.center {
  text-align: center;
}
.mobile-nav {
  display: none;
}
.hide {
  display: none !important;
}
.memory-stimulus {
  font-size: 37px;
  letter-spacing: 0.12em;
  text-align: center;
  background: #eff4ff;
  border-radius: 17px;
  padding: 40px 20px;
  margin: 20px 0;
  overflow-wrap: anywhere;
}
.link-button {
  color: var(--blue);
  background: none;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
}
.blocker {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: #f6f8fded;
  z-index: 90;
  padding: 20px;
}
.blocker .card {
  max-width: 500px;
}
.nowrap {
  white-space: nowrap;
}
@media (min-width: 1500px) {
  .auth-grid {
    margin-top: 65px;
  }
  .auth-card {
    padding: 42px;
  }
  .hero-art {
    margin-top: 24px;
  }
}
@media (max-width: 1050px) {
  .auth-grid {
    gap: 35px;
  }
  .auth-nav {
    padding: 25px 30px;
  }
  .auth-card {
    padding: 28px;
  }
  .hero h1 {
    font-size: 40px;
  }
  .brand .tag {
    display: none;
  }
  .admin-shell {
    grid-template-columns: 195px 1fr;
  }
  .sidebar {
    padding: 26px 15px;
  }
  .admin-content {
    padding: 25px 20px;
  }
  .stats {
    gap: 10px;
  }
  .session-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .fields-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 760px) {
  .auth-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 9px;
    padding: 12px 24px 25px;
    max-width: 540px;
  }
  .auth-nav {
    padding: 22px 24px;
  }
  .auth-nav .navnote {
    font-size: 10px;
  }
  .auth-nav .navnote .icon {
    width: 15px;
  }
  .hero h1 {
    font-size: 39px;
    max-width: 470px;
  }
  .hero .eyebrow {
    font-size: 10px;
  }
  .hero .lead {
    font-size: 14px;
    margin-top: 25px;
    margin-bottom: 20px;
  }
  .hero-art {
    max-width: 330px;
    margin: 10px auto -3px;
  }
  .hero-footer {
    display: none;
  }
  .auth-card {
    padding: 28px;
    border-radius: 24px;
  }
  .auth-card h2 {
    font-size: 23px;
  }
  .auth-foot {
    padding: 10px 24px 25px;
    gap: 12px;
    font-size: 9px;
  }
  .auth-page.login .hero-art {
    display: none;
  }
  .auth-page.login .hero .chips {
    display: none;
  }
  .auth-page.login .hero h1 {
    font-size: 31px;
  }
  .auth-page.login .hero .lead {
    font-size: 12px;
    margin: 20px 0 0;
  }
  .header-inner {
    padding: 13px 20px;
  }
  .header-actions .user-name {
    display: none;
  }
  .workspace {
    padding: 27px 20px 40px;
  }
  .page-title {
    align-items: flex-start;
  }
  .page-title h1 {
    font-size: 28px;
  }
  .page-title h2 {
    font-size: 25px;
  }
  .page-title .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat {
    padding: 17px;
  }
  .stat .value {
    font-size: 26px;
  }
  .card {
    padding: 21px;
    border-radius: 17px;
  }
  .form-grid {
    gap: 17px;
  }
  .fields-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .field-choice {
    font-size: 11px;
  }
  .test-shell {
    padding: 21px 16px;
  }
  .test-top h2 {
    font-size: 20px;
  }
  .test-layout {
    grid-template-columns: 1fr;
  }
  .test-aside {
    order: 2;
  }
  .question-card {
    padding: 23px;
    min-height: 0;
  }
  .question-prompt {
    font-size: 18px;
  }
  .test-aside .question-nav {
    grid-template-columns: repeat(10, 1fr);
  }
  .question-nav button {
    min-height: 34px;
  }
  .timer {
    min-width: 104px;
    padding: 10px 13px;
  }
  .timer strong {
    font-size: 24px;
  }
  .speed-card {
    padding: 23px;
  }
  .speed-problem {
    font-size: 65px;
  }
  .report-grid,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .welcome-banner {
    padding: 25px;
  }
  .welcome-banner h2 {
    font-size: 25px;
  }
  .admin-shell {
    display: block;
  }
  .sidebar {
    position: relative;
    height: auto;
    padding: 16px 20px;
    gap: 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 4px;
    gap: 4px;
  }
  .sidebar nav a {
    white-space: nowrap;
    padding: 9px 12px;
    font-size: 11px;
  }
  .sidebar nav .icon {
    width: 16px;
  }
  .sidebar-bottom {
    display: none;
  }
  .admin-header {
    display: none;
  }
  .admin-content {
    padding: 25px 18px;
  }
  .session-grid {
    gap: 11px;
  }
  .session-card {
    padding: 18px;
  }
  .session-card h3 {
    font-size: 14px;
  }
  .session-card .btn {
    font-size: 11px;
    padding: 10px;
  }
  .form-grid .wide {
    grid-column: 1/-1;
  }
}
@media (max-width: 420px) {
  .auth-nav .navnote {
    max-width: 92px;
    line-height: 1.5;
  }
  .hero h1 {
    font-size: 35px;
  }
  .chips {
    gap: 6px;
  }
  .chip {
    font-size: 9px;
    padding: 8px 9px;
    gap: 5px;
  }
  .chip .icon {
    width: 14px;
  }
  .auth-card {
    padding: 24px;
  }
  .choice-card {
    padding: 19px 16px;
    gap: 12px;
  }
  .choice-card h3 {
    font-size: 15px;
  }
  .choice-card .iconbox {
    width: 43px;
    height: 43px;
    border-radius: 13px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .fields-grid {
    grid-template-columns: 1fr 1fr;
  }
  .test-aside .question-nav {
    grid-template-columns: repeat(8, 1fr);
  }
  .session-grid {
    grid-template-columns: 1fr;
  }
  .header-inner .brand .divider {
    display: none;
  }
  .header-actions {
    gap: 7px;
  }
  .header-actions .btn {
    padding: 7px 10px;
  }
  .auth-foot {
    flex-direction: column;
    gap: 3px;
  }
  .page-title {
    flex-direction: column;
  }
  .speed-card {
    padding: 21px 18px;
  }
  .speed-problem {
    margin-top: 16px;
    font-size: 62px;
  }
  .numpad {
    margin-top: 15px;
  }
  .numpad button {
    min-height: 54px;
  }
  .question-footer .btn {
    font-size: 12px;
    padding: 10px 13px;
  }
}
@media (max-width: 760px) {
  #speed-root .test-top {
    margin-bottom: 16px;
    gap: 12px;
  }
  #speed-root .test-top h2 {
    font-size: 18px;
  }
  #speed-root .test-top p {
    display: none;
  }
  #speed-root .speed-card {
    padding: 17px 18px;
  }
  #speed-root .speed-blocks {
    margin-top: 12px;
  }
  #speed-root .speed-problem {
    font-size: 47px;
    line-height: 1.04;
    width: 114px;
    margin: 12px auto 5px;
  }
  #speed-root .speed-problem .line {
    padding-top: 6px;
  }
  #speed-root .numpad {
    margin-top: 12px;
    gap: 7px;
  }
  #speed-root .numpad button {
    min-height: 54px;
  }
  #speed-root .progress-track {
    margin-top: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  .page-header,
  .sidebar,
  .admin-header,
  .btn,
  .toolbar,
  #toast,
  .no-print {
    display: none !important;
  }
  body {
    background: white;
  }
  .workspace,
  .admin-content {
    padding: 0;
  }
  .card,
  .stat {
    box-shadow: none;
    break-inside: avoid;
  }
  .report-grid,
  .admin-shell {
    display: block;
  }
  .card {
    margin-bottom: 18px;
  }
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}
