/* =========================================================
   Business Management · Teacher Leadership Survey
   Blue / white academic visual system
   ========================================================= */

:root {
  --ink: #0a1c33;
  --ink-2: #17304f;
  --muted: #62748c;
  --muted-2: #8495aa;
  --blue-900: #072a66;
  --blue-800: #0b3b8f;
  --blue-700: #0f4fca;
  --blue-600: #1764ef;
  --blue-500: #2f7bff;
  --blue-400: #62a0ff;
  --blue-300: #9cc4ff;
  --blue-200: #c9ddff;
  --blue-100: #e6f0ff;
  --blue-50: #f2f7ff;
  --ice: #f7faff;
  --white: #ffffff;
  --line: #dce8f8;
  --line-strong: #c7d9f0;
  --shadow-sm: 0 2px 8px rgba(16, 54, 112, 0.05);
  --shadow: 0 18px 50px -20px rgba(14, 57, 130, 0.22), 0 4px 14px rgba(14, 57, 130, 0.05);
  --shadow-lg: 0 36px 90px -34px rgba(9, 45, 110, 0.3), 0 10px 28px rgba(9, 45, 110, 0.06);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --sans: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, "Songti SC", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--ice);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.modal-open { overflow: hidden; }

[hidden] { display: none !important; }

button,
input { font: inherit; color: inherit; }

button { cursor: pointer; }

button:disabled { cursor: not-allowed; }

a { color: inherit; }

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

::selection {
  background: var(--blue-600);
  color: var(--white);
}

:focus-visible {
  outline: 3px solid rgba(23, 100, 239, 0.4);
  outline-offset: 3px;
  border-radius: 8px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Background ---------- */

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(127, 177, 255, 0.26), transparent 60%),
    radial-gradient(900px 700px at -10% 40%, rgba(194, 222, 255, 0.28), transparent 60%),
    linear-gradient(180deg, #fbfdff 0%, #f5f9ff 52%, #eef5ff 100%);
}

.page-bg__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.7;
}

.page-bg__orb--one {
  width: 640px; height: 640px;
  top: -300px; right: -180px;
  background: radial-gradient(circle at 40% 40%, rgba(68, 137, 255, 0.24), rgba(68, 137, 255, 0) 68%);
}

.page-bg__orb--two {
  width: 520px; height: 520px;
  bottom: -260px; left: -140px;
  background: radial-gradient(circle at 50% 50%, rgba(28, 93, 207, 0.14), rgba(28, 93, 207, 0) 70%);
}

.page-bg__grid {
  position: absolute;
  inset: 0;
  opacity: 0.52;
  background-image:
    linear-gradient(rgba(31, 89, 175, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 89, 175, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 88%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 88%);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(20px, 4vw, 56px);
  background: rgba(251, 253, 255, 0.78);
  border-bottom: 1px solid rgba(199, 217, 240, 0.55);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 4px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  text-align: left;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), transparent 42%),
    linear-gradient(150deg, var(--blue-500), var(--blue-800));
  box-shadow: 0 7px 18px -7px rgba(15, 79, 202, 0.65);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand__text { display: grid; line-height: 1.15; }

.brand__text strong {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.brand__text small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-pill {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.admin-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--blue-800);
  font-size: 12.5px;
  font-weight: 650;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s var(--ease), color 0.2s ease;
}

.admin-trigger svg { width: 15px; height: 15px; }

.admin-trigger:hover {
  background: var(--white);
  border-color: var(--blue-300);
  transform: translateY(-1px);
}

.admin-trigger.is-logged-in {
  border-color: transparent;
  background: var(--blue-700);
  color: var(--white);
  box-shadow: 0 8px 18px -10px rgba(15, 79, 202, 0.9);
}

/* ---------- Layout ---------- */

#main {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(30px, 6vw, 76px) 0 80px;
}

.view { animation: view-in 0.55s var(--ease) both; }

.view--narrow {
  width: min(790px, 100%);
  margin: 0 auto;
}

.view--survey { width: min(980px, 100%); margin: 0 auto; }

.view--gate {
  min-height: calc(100vh - var(--header-h) - 150px);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.78fr);
  gap: clamp(36px, 6vw, 92px);
  align-items: center;
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Hero ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--blue-800);
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.eyebrow__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue-500);
  box-shadow: 0 0 0 5px rgba(47, 123, 255, 0.12);
}

.hero__title {
  margin: 25px 0 22px;
  font-size: clamp(58px, 8.1vw, 112px);
  font-weight: 760;
  line-height: 0.88;
  letter-spacing: -0.065em;
  color: var(--ink);
}

.hero__title > span { display: block; }

.hero__title-accent {
  color: var(--blue-700);
  /* Extra paint area keeps the descender of "g" inside the clipped gradient. */
  padding-bottom: 0.22em;
  margin-bottom: -0.22em;
  background: linear-gradient(105deg, var(--blue-800) 8%, var(--blue-500) 70%, #71b5ff 105%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__dot { -webkit-text-fill-color: var(--blue-400); }

.hero__subtitle {
  margin: 0;
  color: var(--ink-2);
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 29px);
  font-style: italic;
  letter-spacing: -0.01em;
}

.hero__desc {
  max-width: 480px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.85;
}

.hero__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 550;
  letter-spacing: 0.015em;
}

.hero__meta b { color: var(--blue-800); font-weight: 750; }

.meta-divider {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--blue-300);
}

/* ---------- Cards ---------- */

.card {
  position: relative;
  border: 1px solid rgba(202, 220, 242, 0.9);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.consent-card { padding: clamp(26px, 3.4vw, 38px); }

.consent-card__top {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 17px;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 39px; height: 39px;
  border-radius: 12px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  color: var(--blue-700);
}

.card-icon svg { width: 19px; height: 19px; }

.card-kicker {
  color: var(--blue-700);
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.consent-card__title {
  margin: 0 0 9px;
  font-size: clamp(23px, 2.5vw, 28px);
  font-weight: 730;
  letter-spacing: -0.035em;
}

.consent-card__text {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

.consent-card__text strong { color: var(--ink-2); }

.consent-list {
  display: grid;
  gap: 8px;
  margin: 20px 0;
  padding: 16px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--blue-50), rgba(247, 250, 255, 0.7));
}

.consent-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.45;
}

.consent-list__check {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--white);
  color: var(--blue-600);
  border: 1px solid var(--blue-200);
}

.consent-list__check svg { width: 11px; height: 11px; stroke-width: 2.3; }

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 4px 0 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.consent-check:hover { border-color: var(--blue-300); }

.consent-check:has(input:checked) {
  border-color: var(--blue-300);
  background: var(--blue-50);
  box-shadow: inset 0 0 0 1px rgba(47, 123, 255, 0.08);
}

.consent-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.consent-check__box {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 22px; height: 22px;
  margin-top: 1px;
  border: 1.5px solid var(--line-strong);
  border-radius: 7px;
  background: var(--white);
  color: transparent;
  transition: all 0.2s ease;
}

.consent-check__box svg { width: 13px; height: 13px; stroke-width: 2.5; }

.consent-check input:checked + .consent-check__box {
  border-color: var(--blue-600);
  background: var(--blue-600);
  color: var(--white);
}

.consent-check input:focus-visible + .consent-check__box {
  outline: 3px solid rgba(23, 100, 239, 0.28);
  outline-offset: 2px;
}

.consent-check__text {
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.62;
}

.consent-check__text strong { color: var(--blue-800); }

.fine-print {
  margin: 12px 0 0;
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.6;
  text-align: center;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 680;
  line-height: 1;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.button svg { width: 17px; height: 17px; }

.button--primary {
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 52%),
    linear-gradient(135deg, var(--blue-600), var(--blue-800));
  border-color: rgba(9, 54, 137, 0.18);
  box-shadow: 0 12px 26px -12px rgba(15, 79, 202, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.button--primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 17px 32px -13px rgba(15, 79, 202, 0.82), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.button--primary:active:not(:disabled) { transform: translateY(0); }

.button--primary:disabled {
  opacity: 0.45;
  box-shadow: none;
  filter: saturate(0.7);
}

.button--ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-2);
}

.button--ghost:hover { border-color: var(--blue-300); background: var(--white); }

.button--soft {
  border-color: var(--blue-100);
  background: var(--blue-50);
  color: var(--blue-800);
}

.button--soft:hover { border-color: var(--blue-200); background: var(--blue-100); }

.button--full { width: 100%; min-height: 50px; }

.button--small { min-height: 38px; padding: 0 14px; font-size: 12px; }

.button.is-loading { pointer-events: none; opacity: 0.78; }

.button.is-loading svg { display: none; }

.button.is-loading::after {
  content: "";
  width: 16px; height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Step heading ---------- */

.step-head { margin-bottom: 24px; }

.step-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.step-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.step-kicker span { color: var(--blue-700); }

.step-title {
  margin: 8px 0 8px;
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.step-desc {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

.progress-track {
  height: 4px;
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--blue-100);
}

.progress-track--small { width: 150px; height: 5px; margin: 9px 0 0; }

.progress-track__bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-600), #6aaaff);
  transition: width 0.45s var(--ease);
}

/* ---------- Setup ---------- */

.setup-card { padding: clamp(22px, 3.4vw, 34px); }

.setup-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 23px;
}

.setup-card__title {
  margin: 5px 0 0;
  font-size: 22px;
  font-weight: 730;
  letter-spacing: -0.03em;
}

.count-badge {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--blue-50);
  color: var(--blue-800);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.setup-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 38px;
  margin: 0 4px 9px 42px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.setup-rows { display: grid; gap: 9px; }

.setup-row {
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr) 24px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.setup-row__number {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  text-align: center;
}

.setup-row__link {
  color: var(--blue-300);
  font-size: 12px;
  text-align: center;
}

.field { position: relative; display: block; }

.field input {
  width: 100%;
  height: 47px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(250, 253, 255, 0.88);
  color: var(--ink);
  font-size: 13px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.field input::placeholder { color: #9aabc0; }

.field input:hover { border-color: var(--line-strong); }

.field input:focus {
  outline: none;
  border-color: var(--blue-400);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(47, 123, 255, 0.1);
}

.field input.is-invalid {
  border-color: #e08484;
  background: #fffafa;
  box-shadow: 0 0 0 3px rgba(200, 70, 70, 0.08);
}

.setup-hint {
  margin: 16px 0 0;
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.6;
}

.setup-hint.is-error { color: #b33f3f; }

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

/* ---------- Survey ---------- */

.survey-progress {
  flex: 0 0 auto;
  padding-bottom: 3px;
  text-align: right;
}

.survey-progress__label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.survey-progress__label span { color: var(--blue-700); font-weight: 800; }

.questions { display: grid; gap: 18px; }

.question-card {
  min-width: 0;
  margin: 0;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid rgba(202, 220, 242, 0.9);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.91);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.question-card.is-answered {
  border-color: rgba(118, 164, 240, 0.62);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 14px 38px -28px rgba(14, 57, 130, 0.45);
}

.question-head {
  display: grid;
  grid-template-columns: 37px minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  margin-bottom: 18px;
}

.question-number {
  display: grid;
  place-items: center;
  width: 37px; height: 37px;
  border: 1px solid var(--blue-100);
  border-radius: 11px;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.question-title {
  margin: 1px 0 3px;
  font-size: clamp(17px, 2.1vw, 21px);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.022em;
}

.question-zh {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
}

.answered-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  padding: 5px 9px;
  border: 1px solid var(--blue-100);
  border-radius: 99px;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  animation: pill-in 0.25s var(--ease);
}

.answered-pill::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--blue-500);
}

@keyframes pill-in {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.question-definition {
  margin: -4px 0 18px 51px;
  padding-left: 12px;
  border-left: 2px solid var(--blue-100);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.65;
}

.options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 64px;
  padding: 9px 13px 9px 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(250, 253, 255, 0.76);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s var(--ease);
}

.option:hover {
  border-color: var(--blue-300);
  background: var(--white);
  transform: translateY(-1px);
}

.option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option__radio {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 17px; height: 17px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  background: var(--white);
  transition: all 0.18s ease;
}

.option__radio::after {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--white);
  transform: scale(0);
  transition: transform 0.18s var(--ease);
}

.option__avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 33px; height: 33px;
  border-radius: 10px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  color: var(--blue-800);
  font-size: 10.5px;
  font-weight: 780;
  letter-spacing: 0.02em;
}

.option__text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.option__text strong {
  overflow: hidden;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.option__text small {
  overflow: hidden;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.option.is-selected,
.option:has(input:checked) {
  border-color: var(--blue-500);
  background: linear-gradient(180deg, var(--blue-50), #f7fbff);
  box-shadow: inset 0 0 0 1px rgba(47, 123, 255, 0.16), 0 7px 18px -14px rgba(15, 79, 202, 0.5);
}

.option.is-selected .option__radio,
.option:has(input:checked) .option__radio {
  border-color: var(--blue-600);
  background: var(--blue-600);
}

.option.is-selected .option__radio::after,
.option:has(input:checked) .option__radio::after { transform: scale(1); }

.option.is-selected .option__avatar,
.option:has(input:checked) .option__avatar {
  border-color: var(--blue-300);
  background: var(--white);
}

.option:has(input:focus-visible) {
  outline: 3px solid rgba(23, 100, 239, 0.3);
  outline-offset: 2px;
}

.survey-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 20px;
  padding: 18px 22px;
  border-radius: var(--radius);
}

.survey-actions__note {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.survey-actions__note svg { flex: 0 0 auto; width: 18px; height: 18px; color: var(--blue-500); }

.survey-actions__buttons { display: flex; gap: 9px; }

/* ---------- Success ---------- */

.view--success {
  min-height: calc(100vh - var(--header-h) - 160px);
  display: grid;
  place-items: center;
}

.success-card {
  width: min(560px, 100%);
  padding: clamp(34px, 6vw, 58px);
  text-align: center;
  background:
    radial-gradient(420px 240px at 50% 0%, rgba(199, 222, 255, 0.45), transparent 70%),
    rgba(255, 255, 255, 0.94);
}

.success-mark {
  display: grid;
  place-items: center;
  width: 68px; height: 68px;
  margin: 0 auto 24px;
  border-radius: 22px;
  background: linear-gradient(145deg, var(--blue-500), var(--blue-800));
  color: var(--white);
  box-shadow: 0 18px 34px -16px rgba(15, 79, 202, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  animation: success-pop 0.55s var(--ease) both;
}

.success-mark svg { width: 30px; height: 30px; stroke-width: 2.4; }

@keyframes success-pop {
  0% { opacity: 0; transform: scale(0.7); }
  60% { transform: scale(1.04); }
  100% { opacity: 1; transform: scale(1); }
}

.success-title {
  margin: 10px 0 10px;
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 760;
  letter-spacing: -0.05em;
}

.success-desc {
  max-width: 390px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

.receipt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 28px 0;
  padding: 14px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: var(--blue-50);
  text-align: left;
}

.receipt span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.receipt strong {
  color: var(--blue-800);
  font-size: 13px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.07em;
}

.success-actions {
  display: flex;
  justify-content: center;
  gap: 9px;
  flex-wrap: wrap;
}

/* ---------- Admin ---------- */

.view--admin { width: 100%; }

.admin-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 28px;
}

.admin-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.icon-button {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink-2);
  transition: all 0.2s ease;
}

.icon-button svg { width: 17px; height: 17px; }

.icon-button:hover { border-color: var(--blue-300); background: var(--white); color: var(--blue-700); }

.icon-button.is-spinning svg { animation: spin 0.7s linear infinite; }

.admin-stats {
  display: grid;
  grid-template-columns: 1.05fr repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 26px;
}

.stat-card {
  min-width: 0;
  padding: 17px 17px 16px;
  border: 1px solid rgba(202, 220, 242, 0.88);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-sm);
}

.stat-card--primary {
  color: var(--white);
  background:
    radial-gradient(150px 120px at 100% 0%, rgba(255, 255, 255, 0.2), transparent 70%),
    linear-gradient(140deg, var(--blue-700), var(--blue-900));
  border-color: transparent;
  box-shadow: 0 18px 34px -20px rgba(7, 42, 102, 0.65);
}

.stat-card__label {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.stat-card--primary .stat-card__label { color: rgba(255, 255, 255, 0.62); }

.stat-card__value {
  display: block;
  margin-top: 7px;
  overflow: hidden;
  color: var(--ink);
  font-size: clamp(21px, 2.2vw, 28px);
  font-weight: 760;
  line-height: 1.15;
  letter-spacing: -0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-card--primary .stat-card__value { color: var(--white); font-size: clamp(34px, 4vw, 48px); }

.stat-card__sub {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-card--primary .stat-card__sub { color: rgba(255, 255, 255, 0.55); }

.admin-tabs {
  display: flex;
  gap: 4px;
  width: fit-content;
  margin-bottom: 16px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
}

.admin-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  transition: all 0.18s ease;
}

.admin-tab:hover { color: var(--blue-800); }

.admin-tab.is-active {
  background: var(--white);
  color: var(--blue-800);
  box-shadow: 0 2px 8px rgba(19, 62, 126, 0.09);
}

.tab-count {
  min-width: 19px;
  padding: 2px 5px;
  border-radius: 99px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 9.5px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.admin-panel { animation: view-in 0.35s var(--ease) both; }

.panel-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 60px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-size: 12px;
}

.spinner {
  width: 16px; height: 16px;
  border: 2px solid var(--blue-100);
  border-top-color: var(--blue-600);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* Result accordions */

.result-block {
  margin-bottom: 11px;
  border: 1px solid rgba(202, 220, 242, 0.88);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.result-block[open] { box-shadow: var(--shadow); }

.result-block__summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.result-block__summary::-webkit-details-marker { display: none; }

.result-block__summary:hover { background: rgba(242, 247, 255, 0.6); }

.result-number {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  color: var(--blue-700);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.result-block__heading { flex: 1; min-width: 0; }

.result-block__heading strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 680;
  letter-spacing: -0.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-block__heading small {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 550;
}

.result-block__total {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 650;
  white-space: nowrap;
}

.result-block__chevron {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  color: var(--muted-2);
  transition: transform 0.2s ease;
}

.result-block[open] .result-block__chevron { transform: rotate(180deg); }

.result-block__body {
  padding: 3px 20px 22px 68px;
  border-top: 1px solid transparent;
}

.answer-choice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.answer-choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  max-width: 100%;
  padding: 6px 13px;
  border: 1px solid var(--blue-100);
  border-radius: 10px;
  background: linear-gradient(180deg, var(--white), var(--blue-50));
  color: var(--blue-900);
  box-shadow: 0 3px 10px -8px rgba(15, 79, 202, 0.5);
}

.answer-choice::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-500);
}

.answer-choice__name {
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 680;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.answer-choice__count {
  flex: 0 0 auto;
  padding-left: 7px;
  border-left: 1px solid var(--blue-200);
  color: var(--blue-600);
  font-size: 10px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.empty-state {
  padding: 52px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink-2);
  font-size: 16px;
  font-weight: 700;
}

.empty-state p { margin: 0; font-size: 12px; }

/* Response list */

.response-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(340px, 100%);
  height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box:focus-within {
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(47, 123, 255, 0.09);
}

.search-box svg { flex: 0 0 auto; width: 15px; height: 15px; color: var(--muted-2); }

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12px;
}

.search-box input::placeholder { color: var(--muted-2); }

.response-list { display: grid; gap: 9px; }

.response-card {
  border: 1px solid rgba(202, 220, 242, 0.88);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.response-card[open] { box-shadow: var(--shadow); }

.response-card__summary {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 18px;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.response-card__summary::-webkit-details-marker { display: none; }

.response-card__summary:hover { background: rgba(242, 247, 255, 0.6); }

.response-index {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  min-width: 36px;
  height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  color: var(--blue-700);
  font-size: 9.5px;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}

.response-summary-main { flex: 1; min-width: 0; }

.response-date {
  display: block;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 620;
  line-height: 1.4;
}

.response-teachers {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.response-id {
  flex: 0 0 auto;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}

.response-chevron {
  flex: 0 0 auto;
  width: 17px; height: 17px;
  color: var(--muted-2);
  transition: transform 0.2s ease;
}

.response-card[open] .response-chevron { transform: rotate(180deg); }

.response-card__body {
  padding: 0 18px 20px;
  border-top: 1px solid var(--line);
}

.response-card__section-title {
  margin: 16px 0 10px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.teacher-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.teacher-pair {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--blue-50);
}

.teacher-pair__no {
  flex: 0 0 auto;
  color: var(--muted-2);
  font-size: 8.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.teacher-pair__text { min-width: 0; }

.teacher-pair__text strong {
  display: block;
  overflow: hidden;
  color: var(--ink-2);
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teacher-pair__text small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.answer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.answer-block {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}

.answer-block__q {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.answer-block__q::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--blue-400);
}

.answer-block strong {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: var(--blue-900);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.response-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.response-footer span { color: var(--muted-2); font-size: 9.5px; }

.delete-response {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #a56b6b;
  font-size: 9.5px;
  font-weight: 650;
}

.delete-response:hover { background: #fff4f4; color: #b23b3b; }

.delete-response svg { width: 12px; height: 12px; }

.no-results {
  padding: 32px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

/* ---------- Modal ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 22, 44, 0.44);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  animation: fade-in 0.2s ease both;
}

.modal__card {
  position: relative;
  width: min(420px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 31px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 40px 100px -30px rgba(4, 25, 60, 0.55);
  animation: modal-in 0.35s var(--ease) both;
}

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

@keyframes modal-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal__close {
  position: absolute;
  top: 15px; right: 15px;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted-2);
}

.modal__close:hover { background: var(--blue-50); color: var(--ink-2); }

.modal__close svg { width: 16px; height: 16px; }

.modal__icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 17px;
  border-radius: 14px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  color: var(--blue-700);
}

.modal__icon svg { width: 22px; height: 22px; }

.modal__card h2 {
  margin: 7px 0 6px;
  font-size: 25px;
  font-weight: 740;
  letter-spacing: -0.04em;
}

.modal__text {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.password-field {
  position: relative;
  display: block;
  margin-bottom: 10px;
}

.password-field input {
  width: 100%;
  height: 49px;
  padding: 0 46px 0 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--blue-50);
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
}

.password-field input:focus {
  outline: none;
  border-color: var(--blue-400);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(47, 123, 255, 0.1);
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted-2);
}

.password-toggle:hover { background: var(--blue-100); color: var(--blue-800); }

.password-toggle svg { width: 17px; height: 17px; }

.form-error {
  margin: 0 0 10px;
  padding: 8px 10px;
  border: 1px solid #f0d2d2;
  border-radius: 8px;
  background: #fff7f7;
  color: #a53e3e;
  font-size: 11px;
}

.modal .fine-print { margin-top: 13px; }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: min(460px, calc(100vw - 32px));
  padding: 12px 17px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 99px;
  background: rgba(8, 27, 53, 0.94);
  color: var(--white);
  box-shadow: 0 18px 40px -18px rgba(2, 16, 37, 0.65);
  font-size: 12px;
  line-height: 1.45;
  animation: toast-in 0.3s var(--ease) both;
}

.toast.is-error { background: rgba(130, 40, 40, 0.96); }
.toast.is-success { background: rgba(12, 67, 52, 0.96); }

.toast__icon {
  flex: 0 0 auto;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue-300);
}

.toast.is-error .toast__icon { background: #ffb4b4; }
.toast.is-success .toast__icon { background: #8df0c4; }

@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 28px;
  color: var(--muted-2);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--blue-300);
}

/* ---------- Reveal ---------- */

.reveal {
  animation: reveal-up 0.8s var(--ease) both;
}

.reveal:nth-of-type(2) { animation-delay: 0.06s; }
.reveal:nth-of-type(3) { animation-delay: 0.12s; }
.reveal:nth-of-type(4) { animation-delay: 0.18s; }
.reveal:nth-of-type(5) { animation-delay: 0.24s; }

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */

@media (max-width: 1040px) {
  .view--gate {
    grid-template-columns: minmax(0, 1fr) minmax(350px, 0.9fr);
    gap: 42px;
  }

  .admin-stats { grid-template-columns: repeat(3, 1fr); }
  .stat-card--primary { grid-column: span 1; }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }

  .view--gate {
    grid-template-columns: 1fr;
    gap: 34px;
    min-height: 0;
    padding-top: 8px;
  }

  .hero { max-width: 680px; }
  .hero__title { font-size: clamp(58px, 14vw, 96px); }
  .hero__desc { max-width: 560px; }
  .consent-card { max-width: 640px; }

  .admin-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .admin-actions { width: 100%; }

  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .stat-card--primary { grid-column: span 2; }

  .result-block__body { padding-left: 22px; }
}

@media (max-width: 680px) {
  #main { width: calc(100% - 28px); padding-top: 28px; }

  .site-header { padding: 0 16px; gap: 10px; }
  .header-pill { display: none; }
  .brand__text strong { font-size: 13px; }
  .brand__text small { font-size: 9px; }
  .admin-trigger { height: 36px; padding: 0 12px; }

  .hero__title { font-size: clamp(52px, 16.5vw, 82px); }
  .hero__subtitle { font-size: 20px; }
  .hero__desc { font-size: 13px; }
  .hero__meta { gap: 9px; font-size: 11px; }

  .consent-card { padding: 23px 19px; border-radius: 22px; }
  .consent-list { padding: 13px; }
  .consent-list li { font-size: 11.5px; }

  .step-head--row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .survey-progress { width: 100%; text-align: left; }
  .progress-track--small { width: 100%; }

  .setup-card { padding: 19px 15px; border-radius: 22px; }
  .setup-columns { margin-left: 0; gap: 15px; }
  .setup-row { grid-template-columns: 21px minmax(0, 1fr) 14px minmax(0, 1fr); gap: 6px; }
  .setup-row__link { font-size: 10px; }
  .field input { height: 44px; padding: 0 9px; font-size: 12px; }

  .form-actions { flex-direction: column-reverse; }
  .form-actions .button { width: 100%; }

  .question-card { padding: 18px 15px; border-radius: 22px; }
  .question-head { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; }
  .question-number { width: 32px; height: 32px; border-radius: 9px; }
  .answered-pill { grid-column: 2; width: fit-content; margin-top: -4px; }
  .question-definition { margin-left: 42px; }
  .options { grid-template-columns: 1fr; }
  .option { min-height: 60px; }

  .survey-actions { flex-direction: column; align-items: stretch; gap: 14px; padding: 17px; }
  .survey-actions__buttons { display: grid; grid-template-columns: 1fr 1fr; }
  .survey-actions__buttons .button { padding: 0 12px; }

  .success-card { padding: 34px 22px; border-radius: 24px; }
  .success-actions { flex-direction: column; }
  .success-actions .button { width: 100%; }

  .admin-actions { display: grid; grid-template-columns: auto 1fr 1fr; }
  .admin-actions .button { padding: 0 12px; }
  .admin-stats { gap: 8px; }
  .stat-card { padding: 14px; }
  .stat-card__value { font-size: 22px; }

  .result-block__summary { padding: 14px; gap: 10px; }
  .result-block__heading strong { font-size: 12.5px; }
  .result-block__total { display: none; }
  .result-block__body { padding: 2px 14px 18px; }
  .answer-choice-list { gap: 7px; }
  .answer-choice { min-height: 34px; padding: 5px 11px; }
  .answer-choice__name { font-size: 11.5px; }

  .response-toolbar { align-items: stretch; flex-direction: column; }
  .search-box { width: 100%; }
  .response-card__summary { padding: 13px 12px; gap: 9px; }
  .response-id { display: none; }
  .response-card__body { padding: 0 12px 16px; }
  .teacher-table { grid-template-columns: 1fr; }
  .answer-grid { grid-template-columns: 1fr; }

  .modal__card { padding: 26px 21px; border-radius: 21px; }
  .site-footer { flex-wrap: wrap; gap: 6px; font-size: 8.5px; }
}

@media (max-width: 390px) {
  .brand__text small { display: none; }
  .admin-trigger span { font-size: 11px; }
  .hero__title { font-size: 48px; }
  .hero__meta { font-size: 10px; gap: 7px; }
  .setup-columns { font-size: 9px; letter-spacing: 0.05em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  .site-header, .site-footer, .admin-actions, .admin-tabs, .response-toolbar, .delete-response { display: none !important; }
  .page-bg { display: none; }
  body { background: #fff; }
  .card, .result-block, .response-card { box-shadow: none; }
}
