/* ==========================================================================
   СПК — мини-приложение подачи заявки
   Палитра и мотив взяты из фирменного стиля: индиго, жёлтая и красная плашки.
   ========================================================================== */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('fonts/montserrat-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Бренд */
  --indigo-900: #14113a;
  --indigo-800: #1b1746;
  --indigo-700: #272151;
  --indigo-600: #3a3f8f;
  --indigo-500: #4e59b7;
  --indigo-400: #6b76d6;
  --indigo-100: #e8eaf9;
  --yellow: #fdca00;
  --red: #e82e27;
  --magenta: #ad1162;

  /* Поверхности и текст */
  --surface: #ffffff;
  --surface-sunken: #f4f5fb;
  --ink: #17143a;
  --ink-muted: #64618c;
  --ink-faint: #8f8db0;
  --line: rgba(23, 20, 58, 0.10);
  --line-strong: rgba(23, 20, 58, 0.18);

  /* Тени: кольцо + подъём + рассеянная глубина */
  --shadow-border:
    0 0 0 1px rgba(23, 20, 58, 0.06),
    0 1px 2px -1px rgba(23, 20, 58, 0.06),
    0 2px 4px 0 rgba(23, 20, 58, 0.04);
  --shadow-card:
    0 0 0 1px rgba(23, 20, 58, 0.05),
    0 8px 24px -12px rgba(20, 17, 58, 0.45),
    0 24px 60px -30px rgba(20, 17, 58, 0.55);
  --shadow-lift:
    0 0 0 1px rgba(23, 20, 58, 0.07),
    0 4px 10px -4px rgba(23, 20, 58, 0.12),
    0 12px 28px -12px rgba(23, 20, 58, 0.18);

  --ease: cubic-bezier(0.2, 0, 0, 1);
  --radius-card: 28px;
  --radius-field: 14px;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  /* заполняются из JS: реальная высота вьюпорта Telegram и высота клавиатуры */
  --app-height: 100dvh;
  --kb: 0px;
}

* { box-sizing: border-box; }

/* Классы задают display, поэтому атрибут hidden нужно усилить */
[hidden] { display: none !important; }

html, body {
  height: 100%;
  margin: 0;
  overscroll-behavior-y: none;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--indigo-900);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}

/* Фирменное «живое» полотно: индиго с жёлтым и красным свечением */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% -10%, var(--indigo-700) 0%, var(--indigo-900) 60%),
    var(--indigo-900);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  will-change: transform;
}
.blob-y {
  width: 58vw; height: 58vw;
  top: -18vw; left: -14vw;
  background: radial-gradient(circle, rgba(253, 202, 0, 0.65), transparent 68%);
  animation: drift-a 22s ease-in-out infinite alternate;
}
.blob-r {
  width: 62vw; height: 62vw;
  top: 6vh; right: -22vw;
  background: radial-gradient(circle, rgba(232, 46, 39, 0.55), transparent 68%);
  animation: drift-b 26s ease-in-out infinite alternate;
}
.blob-m {
  width: 70vw; height: 70vw;
  bottom: -26vw; left: -8vw;
  background: radial-gradient(circle, rgba(173, 17, 98, 0.5), transparent 70%);
  animation: drift-c 30s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate3d(8vw, 6vh, 0) scale(1.12); } }
@keyframes drift-b { to { transform: translate3d(-10vw, 8vh, 0) scale(1.08); } }
@keyframes drift-c { to { transform: translate3d(6vw, -7vh, 0) scale(1.1); } }

/* ============================ Заставка ============================ */

.splash {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(120% 90% at 50% 20%, var(--indigo-700) 0%, var(--indigo-900) 65%),
    var(--indigo-900);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
}
.splash.is-hidden {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

.splash-inner { width: min(520px, 100%); text-align: center; }

.logo { width: 100%; height: auto; display: block; overflow: visible; }
.logo .logo-glyph { fill: #fff; }

/* Буквы: проявляются построчно, внутри строки — по одной */
.splash .logo-glyph {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(5px);
  animation: glyph-in 520ms var(--ease) forwards;
  animation-delay: calc(var(--row-delay, 0ms) + var(--i) * 34ms);
}
.splash .logo-row-1 { --row-delay: 120ms; }
.splash .logo-row-2 { --row-delay: 300ms; }
.splash .logo-row-3 { --row-delay: 520ms; }

@keyframes glyph-in {
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* Плашки прочерчиваются слева направо — как маркер по строке */
.splash .logo-bar {
  transform-origin: left center;
  transform: scaleX(0);
  animation: bar-draw 620ms var(--ease) forwards;
}
.splash .logo-bar-yellow { animation-delay: 640ms; }
.splash .logo-bar-red { animation-delay: 800ms; }
@keyframes bar-draw { to { transform: scaleX(1); } }

.splash-tagline {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0;
  animation: fade-up 500ms var(--ease) 1000ms forwards;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* ============================ Каркас ============================ */

.app {
  position: relative;
  z-index: 1;
  min-height: var(--app-height, 100dvh);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity 300ms var(--ease);
}
.app.is-ready { opacity: 1; }

.topbar {
  padding: calc(var(--safe-top) + 14px) 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
/* Знак в шапке — фирменный логотип */
.brand { display: flex; align-items: center; min-width: 0; }
.brand .logo { width: 150px; }

.step-counter {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.progress {
  display: flex;
  gap: 5px;
}
.progress-seg {
  height: 4px;
  flex: 1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}
.progress-seg::after {
  content: '';
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 380ms var(--ease);
}
.progress-seg.is-done::after { transform: scaleX(1); }

/* ============================ Карточка шага ============================ */

.sheet-wrap {
  flex: 1 1 auto;
  padding: 4px 16px 0;
  display: flex;
  flex-direction: column;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 14px;
  box-shadow: var(--shadow-card);
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  /* карточка по содержимому, но без «прыжков» между шагами */
  min-height: 46vh;
}

.card-body {
  padding: 14px 10px 6px;
  flex: 1 1 auto;
}

.step { display: none; }
.step.is-active { display: block; }

.step.is-entering > * {
  opacity: 0;
  transform: translateY(12px);
  filter: blur(4px);
  animation: fade-up 340ms var(--ease) forwards;
}
.step.is-entering > *:nth-child(1) { animation-delay: 0ms; }
.step.is-entering > *:nth-child(2) { animation-delay: 70ms; }
.step.is-entering > *:nth-child(3) { animation-delay: 140ms; }
.step.is-entering > *:nth-child(4) { animation-delay: 200ms; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--indigo-500);
  margin-bottom: 10px;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 4px;
  border-radius: 999px;
  background: var(--yellow);
}
.eyebrow.is-red::before { background: var(--red); }

h1.step-title {
  font-size: 23px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  text-wrap: balance;
}
.step-hint {
  margin: 0 0 18px;
  color: var(--ink-muted);
  font-size: 14px;
  text-wrap: pretty;
}

/* ============================ Поля ============================ */

.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 7px;
}
.field-label .req { color: var(--red); }

.input,
.select-trigger {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-field);
  background: var(--surface);
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  transition-property: border-color, box-shadow, background-color;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
  appearance: none;
}
.input::placeholder { color: var(--ink-faint); }
.input:focus,
.select-trigger:focus-visible {
  outline: none;
  border-color: var(--indigo-500);
  box-shadow: 0 0 0 4px rgba(78, 89, 183, 0.16);
}
.input[aria-invalid='true'] {
  border-color: var(--red);
  background: rgba(232, 46, 39, 0.035);
}

.field-error {
  display: none;
  align-items: center;
  gap: 6px;
  margin: 7px 0 0;
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
}
.field-error.is-shown { display: flex; }
.field-error::before {
  content: '!';
  flex: 0 0 auto;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

/* Кнопка-триггер выбора вуза */
.select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  transition-property: border-color, box-shadow, scale;
}
.select-trigger:active { scale: 0.96; }
.select-trigger .placeholder { color: var(--ink-faint); }
.select-trigger .value { font-weight: 600; }
.select-trigger .chev {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  color: var(--ink-faint);
}

/* ============================ Чипы курса ============================ */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  padding: 11px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition-property: background-color, border-color, color, scale;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}
.chip:active { scale: 0.96; }
.chip[aria-pressed='true'] {
  background: var(--indigo-500);
  border-color: var(--indigo-500);
  color: #fff;
}
.chips-group-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 16px 0 8px;
}
.chips-group-label:first-child { margin-top: 2px; }

/* ============================ Контакт ============================ */

.contact-box {
  border-radius: 18px;
  padding: 18px;
  background: var(--surface-sunken);
  text-align: center;
}
.contact-icon {
  width: 56px; height: 56px;
  margin: 0 auto 12px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--indigo-100);
  color: var(--indigo-500);
}
.contact-box p {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--ink-muted);
}
.phone-verified {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(34, 160, 92, 0.08);
  box-shadow: 0 0 0 1px rgba(34, 160, 92, 0.22);
}
.phone-verified .check {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #22a05c;
  color: #fff;
  display: grid;
  place-items: center;
}
.phone-verified .num {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.phone-verified .cap {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #1c7a47;
}

/* ============================ Сводка ============================ */

.summary {
  border-radius: 18px;
  background: var(--surface-sunken);
  padding: 4px 14px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 12px 0;
}
.summary-row + .summary-row { border-top: 1px solid var(--line); }
.summary-row dt {
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--ink-muted);
}
.summary-row dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
  font-size: 14px;
  overflow-wrap: anywhere;
}

/* ============================ Кнопки ============================ */

.actions {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 10px;
  padding: 12px 16px calc(var(--safe-bottom) + 14px);
}

.btn {
  flex: 1;
  min-height: 54px;
  padding: 15px 20px;
  border: 0;
  border-radius: 16px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition-property: scale, background-color, box-shadow, opacity;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}
.btn:active:not(:disabled) { scale: 0.96; }
.btn:disabled { opacity: 0.55; cursor: default; }

.btn-primary {
  background: var(--indigo-500);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(78, 89, 183, 0.9);
}
.btn-primary.is-accent { background: var(--red); box-shadow: 0 8px 20px -10px rgba(232, 46, 39, 0.9); }

.btn-ghost {
  flex: 0 0 auto;
  min-width: 54px;
  padding-inline: 18px;
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.btn-secondary {
  width: 100%;
  background: var(--surface);
  color: var(--indigo-500);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.spinner {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 700ms linear infinite;
  display: none;
}
.btn.is-busy .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================ Выбор вуза (шторка) ============================ */

.picker {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
}
.picker.is-open { pointer-events: auto; }

.picker-scrim {
  position: absolute;
  inset: 0;
  background: rgba(12, 10, 32, 0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 220ms var(--ease);
}
.picker.is-open .picker-scrim { opacity: 1; }

.picker-panel {
  position: relative;
  background: var(--surface);
  border-radius: 26px 26px 0 0;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 300ms var(--ease);
  padding-bottom: var(--safe-bottom);
}
.picker.is-open .picker-panel { transform: translateY(0); }

.picker-grabber {
  width: 38px; height: 4px;
  border-radius: 999px;
  background: var(--line-strong);
  margin: 10px auto 4px;
}
.picker-head { padding: 6px 16px 12px; border-bottom: 1px solid var(--line); }
.picker-head h2 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 800;
}
.picker-search {
  position: relative;
}
.picker-search .input { padding-left: 44px; }
.picker-search .icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-faint);
  pointer-events: none;
}

.picker-list {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 6px 8px calc(12px + var(--safe-bottom));
  overscroll-behavior: contain;
}
.picker-option {
  width: 100%;
  text-align: left;
  padding: 13px 14px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background-color 100ms ease-out;
}
.picker-option .opt-name {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}
.picker-option:hover { background: var(--surface-sunken); }
.picker-option[aria-selected='true'] { background: var(--indigo-100); font-weight: 700; }
.picker-option mark {
  background: rgba(253, 202, 0, 0.45);
  color: inherit;
  border-radius: 3px;
  padding: 0 1px;
}
/* «Моего вуза нет» всегда под рукой, даже при длинном списке */
.picker-option.is-other {
  position: sticky;
  bottom: 0;
  color: var(--indigo-500);
  font-weight: 700;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 -8px 16px -8px rgba(23, 20, 58, 0.18);
  margin-top: 6px;
}
.picker-empty {
  padding: 22px 16px;
  text-align: center;
  color: var(--ink-muted);
  font-size: 14px;
}

/* ============================ Успех ============================ */

.done {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: none;
  place-items: center;
  padding: 28px;
  text-align: center;
  background:
    radial-gradient(120% 90% at 50% 15%, var(--indigo-700) 0%, var(--indigo-900) 65%),
    var(--indigo-900);
}
.done.is-shown { display: grid; }

.done-mark {
  width: 96px; height: 96px;
  margin: 0 auto 22px;
}
.done-mark circle {
  fill: none;
  stroke: var(--yellow);
  stroke-width: 4;
  stroke-dasharray: 289;
  stroke-dashoffset: 289;
  animation: draw 620ms var(--ease) 80ms forwards;
}
.done-mark path {
  fill: none;
  stroke: #fff;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: draw 380ms var(--ease) 560ms forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.done h2 {
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 10px;
  opacity: 0;
  animation: fade-up 420ms var(--ease) 700ms forwards;
}
.done p {
  color: rgba(255, 255, 255, 0.75);
  margin: 0 auto 26px;
  max-width: 320px;
  opacity: 0;
  animation: fade-up 420ms var(--ease) 800ms forwards;
}
.done .btn {
  opacity: 0;
  animation: fade-up 420ms var(--ease) 900ms forwards;
  max-width: 320px;
  margin: 0 auto;
}
.done-inner { width: min(400px, 100%); }

/* Брендовые «конфетти» — плашки логотипа */
.confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.confetti i {
  position: absolute;
  top: -8%;
  width: 10px;
  height: 4px;
  border-radius: 2px;
  opacity: 0;
  animation: fall 2.4s var(--ease) forwards;
}

@keyframes fall {
  0% { opacity: 0; transform: translateY(0) rotate(0deg); }
  10% { opacity: 1; }
  100% { opacity: 0; transform: translateY(105vh) rotate(540deg); }
}


/* ============================ Клавиатура ============================

   Пока клавиатура открыта, layout-вьюпорт на iOS не меняется, поэтому
   sticky-кнопка ушла бы под неё. Прижимаем панель действий к верхней
   кромке клавиатуры и освобождаем место под контентом.
*/

body.is-keyboard .actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--kb);
  z-index: 25;
  padding-bottom: 10px;
  padding-top: 10px;
  background: linear-gradient(to top, var(--indigo-900) 55%, rgba(20, 17, 58, 0));
}

body.is-keyboard .sheet-wrap { padding-bottom: 86px; }

/* шапка ужимается, чтобы вопрос и поле помещались над клавиатурой */
body.is-keyboard .topbar { padding-top: calc(var(--safe-top) + 8px); padding-bottom: 8px; gap: 8px; }
body.is-keyboard .card { min-height: 0; }
body.is-keyboard .step-hint { margin-bottom: 12px; }

/* шторка выбора вуза встаёт над клавиатурой целиком */
.picker { padding-bottom: var(--kb); }
.picker-panel { max-height: min(88vh, calc(var(--app-height) - 56px)); }
body.is-keyboard .picker-panel { max-height: calc(var(--app-height) - var(--kb) - 24px); }

/* ============================ Отладка (?debug=1) ============================ */

.debug-panel {
  position: fixed;
  top: calc(var(--safe-top) + 6px);
  right: 6px;
  z-index: 100;
  max-width: 230px;
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(10, 8, 26, 0.92);
  color: #eae8ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  line-height: 1.5;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
  cursor: pointer;
}
.debug-panel b { color: var(--yellow); font-weight: 700; }
.debug-panel .dbg-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.debug-panel .dbg-row span { color: rgba(234, 232, 255, 0.6); }
.debug-panel.is-min { max-width: 90px; overflow: hidden; height: 22px; }

/* ============================ Прочее ============================ */

.note {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-sunken);
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.4;
  margin-top: 14px;
}
.note b { color: var(--ink); font-weight: 700; }

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

@media (max-width: 360px) {
  h1.step-title { font-size: 21px; }
  .card-body { padding-inline: 6px; }
}

@media (min-width: 620px) {
  .sheet-wrap, .topbar, .actions { max-width: 560px; margin-inline: auto; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
  .blob { animation: none; }
  .splash .logo-glyph { opacity: 1; transform: none; filter: none; }
  .splash .logo-bar { transform: scaleX(1); }
}
