/*
 * Raqmana UI kit: the my-center design system for the plain-PHP ecosystem apps
 * (training centers, blog, surveys). Copied into each app; keep the copies identical.
 * Flat white cards on a page tone, navy hairlines (never grey), 4px controls, 8px cards, the display
 * face for titles and numbers, tint tiles for icons. Every colour comes from tokens.css, so the dark
 * theme (html[data-theme="dark"]) follows automatically. App-specific parts live in style.css.
 */

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--rq-bg-page);
  color: var(--rq-text-body);
  font-family: var(--rq-font-body);
  font-size: 15px;
  line-height: var(--rq-lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { font-family: var(--rq-font-display); text-wrap: balance; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--rq-blue-100); color: var(--rq-blue-900); }
:focus-visible { outline: none; box-shadow: var(--rq-focus-ring); border-radius: var(--rq-radius-sm); }
.icon { flex-shrink: 0; }

.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;
}

.wrap { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -80px; z-index: 100;
  padding: 10px 16px; border-radius: var(--rq-radius-sm);
  background: var(--rq-action-primary); color: var(--rq-text-on-primary);
  font-family: var(--rq-font-display); font-size: 13px;
}
.skip-link:focus { top: 12px; }

/* Logo swap: navy in light, white in dark */
.brand-logo--dark { display: none; }
html[data-theme="dark"] .brand-logo--light { display: none; }
html[data-theme="dark"] .brand-logo--dark { display: block; }

.theme-icon { display: inline-flex; }
.theme-icon--dark { display: none; }
html[data-theme="dark"] .theme-icon--light { display: none; }
html[data-theme="dark"] .theme-icon--dark { display: inline-flex; }

/* ---------- Buttons (spec Button): 4px corners, display face, flat; hover darkens, no lift ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px;
  border: 1px solid transparent; border-radius: var(--rq-radius-sm);
  font-family: var(--rq-font-display); font-size: 14px; font-weight: 600; line-height: 1.2;
  white-space: nowrap; text-align: center;
  transition: background-color var(--rq-dur) var(--rq-ease), color var(--rq-dur) var(--rq-ease), border-color var(--rq-dur) var(--rq-ease);
}
.button:disabled { opacity: .5; }
.button--sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.button--lg { min-height: 46px; font-size: 15px; }
.button--block { width: 100%; }

.button--primary { background: var(--rq-action-primary); color: var(--rq-text-on-primary); }
.button--primary:hover:not(:disabled) { background: var(--rq-action-primary-hover); }

/* Secondary = tint button (spec Button "secondary") */
.button--secondary { background: var(--rq-surface-hover); color: var(--rq-action-primary); }
.button--secondary:hover:not(:disabled) { background: var(--rq-surface-tint); }
html[data-theme="dark"] .button--secondary { color: var(--rq-text-link); }

.button--ghost { background: transparent; color: var(--rq-text-muted); }
.button--ghost:hover:not(:disabled) { background: var(--rq-surface-hover); color: var(--rq-action-primary); }

.button--ghost-danger { background: transparent; color: var(--rq-danger); }
.button--ghost-danger:hover:not(:disabled) { background: var(--rq-danger-tint); }

/* On solid blue */
.button--light { background: var(--rq-white); color: var(--rq-blue-700); }
.button--light:hover { background: var(--rq-blue-50); }

/* Quiet icon buttons (spec Topbar): 36px, muted; hover = tint + blue */
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 36px; height: 36px; padding: 0;
  border: 0; border-radius: var(--rq-radius-sm);
  background: transparent; color: var(--rq-text-muted);
  transition: background-color var(--rq-dur) var(--rq-ease), color var(--rq-dur) var(--rq-ease);
}
.icon-btn:hover:not(:disabled), .icon-btn[aria-expanded="true"] { background: var(--rq-surface-hover); color: var(--rq-action-primary); }
html[data-theme="dark"] .icon-btn:hover:not(:disabled) { color: var(--rq-text-link); }
.icon-btn:disabled { opacity: .35; }
.icon-btn--danger:hover:not(:disabled) { background: var(--rq-danger-tint); color: var(--rq-danger) !important; }

/* Text link with an arrow */
.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--rq-font-display); font-size: 13px; font-weight: 600; color: var(--rq-text-link);
  transition: color var(--rq-dur) var(--rq-ease);
}
.text-link:hover { color: var(--rq-text-link-hover); }

/* ---------- Primitives ---------- */
/* Eyebrow: 28 x 2 accent rule + small display text */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--rq-font-display); font-size: var(--rq-text-eyebrow-size); font-weight: 500;
  letter-spacing: .5px; color: var(--rq-text-eyebrow);
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--rq-rule-accent); flex-shrink: 0; }
.eyebrow--plain::before { display: none; }
.eyebrow--light { color: var(--rq-blue-300); }
.eyebrow--light::before { background: var(--rq-blue-300); }

/* Card: white, hairline, 8px, no shadow */
.card {
  background: var(--rq-surface);
  border: 1px solid var(--rq-line);
  border-radius: var(--rq-radius-card);
  color: var(--rq-text-body);
}
.card__head {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 24px 16px;
  border-bottom: 1px solid var(--rq-line-soft);
}
.card__head--stack { flex-direction: column; align-items: flex-start; gap: 4px; }
.card__head-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.card__title {
  margin: 0; font-size: var(--rq-text-card-title); font-weight: 600; line-height: 1.45;
  color: var(--rq-text-heading);
}
.card__subtitle { margin: 0; font-size: var(--rq-text-label); line-height: 1.6; color: var(--rq-text-muted); }
.card__body { padding: 20px 24px 24px; }

/* Status badge (spec Badge): 4px, tint fill, dot */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: var(--rq-radius-sm);
  background: var(--rq-surface-chrome); color: var(--rq-text-muted);
  font-family: var(--rq-font-display); font-size: 12px; font-weight: 500; line-height: 1.5;
  white-space: nowrap;
}
.badge--success { background: var(--rq-success-tint); color: var(--rq-success); }
.badge--warning { background: var(--rq-warning-tint); color: var(--rq-warning); }
.badge--danger { background: var(--rq-danger-tint); color: var(--rq-danger); }
.badge--info { background: var(--rq-info-tint); color: var(--rq-info); }
.badge:is(.badge--success, .badge--warning, .badge--danger, .badge--info)::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor;
}
/* Plain: on a photo or card edge — white with a hairline */
.badge--plain { background: var(--rq-surface); border: 1px solid var(--rq-line-soft); color: var(--rq-text-heading); padding-inline: 8px; }
.badge--plain .icon { color: var(--rq-action-primary); }
html[data-theme="dark"] .badge--plain .icon { color: var(--rq-text-link); }

/* Icon tile: tint-strong fill, blue icon */
.icon-tile {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--rq-icon-tile); color: var(--rq-action-primary);
}
html[data-theme="dark"] .icon-tile { color: var(--rq-text-link); }
.icon-tile--sm { width: 34px; height: 34px; border-radius: 8px; }
.icon-tile--lg { width: 56px; height: 56px; border-radius: var(--rq-radius-lg); }
.icon-tile--teal { background: var(--rq-accent-teal-tint); color: var(--rq-accent-teal) !important; }
.icon-tile--violet { background: var(--rq-accent-violet-tint); color: var(--rq-accent-violet) !important; }
.icon-tile--amber { background: var(--rq-accent-amber-tint); color: var(--rq-accent-amber) !important; }
.icon-tile--green { background: var(--rq-accent-green-tint); color: var(--rq-accent-green) !important; }
.icon-tile--rose { background: var(--rq-accent-rose-tint); color: var(--rq-accent-rose) !important; }
.icon-tile--sky { background: var(--rq-accent-sky-tint); color: var(--rq-accent-sky) !important; }

/* Outline pill chip; --active is the selected filter (solid blue) */
.chip {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  padding: 6px 12px; border: 1px solid var(--rq-line-strong); border-radius: var(--rq-radius-pill);
  font-size: 13px; font-weight: 500; color: var(--rq-text-body); white-space: nowrap;
}
.chip .icon { color: var(--rq-action-primary); }
html[data-theme="dark"] .chip .icon { color: var(--rq-text-link); }
.chip--link { transition: background-color var(--rq-dur) var(--rq-ease), border-color var(--rq-dur) var(--rq-ease); }
.chip--link:hover { background: var(--rq-surface-hover); }
.chip--active, .chip--active:hover { background: var(--rq-action-primary); border-color: var(--rq-action-primary); color: var(--rq-text-on-primary); }
.chip--active .icon { color: inherit !important; }

/* Breadcrumb */
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  font-family: var(--rq-font-display); font-size: var(--rq-text-label); line-height: 1.5;
  color: var(--rq-text-muted);
}
.crumbs a { color: var(--rq-text-link); transition: color var(--rq-dur) var(--rq-ease); }
.crumbs a:hover { color: var(--rq-text-link-hover); }
.crumbs .icon { color: var(--rq-text-subtle); }

/* Alert (error) and notice (information) */
.alert, .notice {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 0 0 20px; padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--rq-danger) 22%, transparent);
  border-radius: var(--rq-radius-md);
  background: var(--rq-danger-tint); color: var(--rq-danger);
  font-size: 14px; line-height: 1.7;
}
.notice { border-color: color-mix(in srgb, var(--rq-info) 22%, transparent); background: var(--rq-info-tint); color: var(--rq-text-body); }
.notice > .icon { color: var(--rq-info); }
.alert .icon, .notice .icon { margin-top: 3px; }
/* Notice with an action at the end (e.g. "3 applications waiting — review") */
.notice--action { align-items: center; }
.notice--action .icon { margin-top: 0; }
.notice--action > span { flex: 1; }

/* Empty state */
.empty {
  max-width: 720px; margin: 8px auto; padding: 48px 24px;
  border: 1px dashed var(--rq-line-strong); border-radius: var(--rq-radius-card);
  background: var(--rq-surface); text-align: center;
}
.empty .icon-tile { margin: 0 auto 16px; }
.empty h2, .empty h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; color: var(--rq-text-heading); }
.empty p { margin: 0 auto 20px; font-size: 14px; color: var(--rq-text-muted); }
.empty p:last-child { margin-bottom: 0; }

/* Section heading on public pages */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { margin: 8px 0 4px; font-size: var(--rq-text-h2); font-weight: 700; line-height: 1.3; color: var(--rq-text-heading); }
.section-head p { margin: 0; font-size: var(--rq-text-lead); color: var(--rq-text-muted); }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 32px; }
.pagination a {
  display: grid; place-items: center; width: 36px; height: 36px;
  border: 1px solid var(--rq-line-strong); border-radius: var(--rq-radius-sm);
  background: var(--rq-surface); font-family: var(--rq-font-display); font-size: 13px; color: var(--rq-text-body);
  transition: background-color var(--rq-dur) var(--rq-ease);
}
.pagination a:hover { background: var(--rq-surface-hover); }
.pagination a.is-active { background: var(--rq-action-primary); border-color: var(--rq-action-primary); color: var(--rq-text-on-primary); }

/* Dialog (spec Dialog): white, hairline, 8px, lifted navy shadow; chrome footer */
.dialog {
  width: min(440px, calc(100% - 32px)); padding: 0; overflow: hidden;
  border: 1px solid var(--rq-line); border-radius: var(--rq-radius-card);
  background: var(--rq-surface); color: var(--rq-text-body);
  box-shadow: var(--rq-shadow-lifted);
}
.dialog::backdrop { background: var(--rq-surface-overlay); }
.dialog__body { display: flex; flex-direction: column; gap: 16px; padding: 24px; }
.dialog__head { display: flex; align-items: flex-start; gap: 12px; }
.dialog__head h2 { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.45; color: var(--rq-text-heading); }
.dialog__head p { margin: 2px 0 0; font-size: var(--rq-text-label); color: var(--rq-text-muted); }
.dialog__actions {
  display: flex; justify-content: flex-end; gap: 8px; padding: 12px 24px;
  border-top: 1px solid var(--rq-line-soft); background: var(--rq-surface-chrome);
}

/* ---------- Form fields (spec Input): label on top, white field, hairline, 4px; focus = primary border ---------- */
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label:not(.upload-zone):not(.check), .field legend, .field__label {
  padding: 0;
  font-family: var(--rq-font-display); font-size: 12px; font-weight: 500; color: var(--rq-text-body);
}
.field legend { margin-bottom: 8px; }
.field label b, .form-bar__hint b, .required { color: var(--rq-danger); font-weight: 500; }
.field small, .hint { font-size: 12px; line-height: 1.5; color: var(--rq-text-subtle); }
.optional { font-family: var(--rq-font-body); font-size: 11px; font-weight: 400; color: var(--rq-text-subtle); }

.control { position: relative; display: flex; align-items: center; }
.input,
.control input,
.control select,
.control textarea {
  width: 100%; min-height: 42px; padding: 0 14px;
  border: 1px solid var(--rq-line-strong); border-radius: var(--rq-radius-sm);
  background: var(--rq-surface); color: var(--rq-text-body);
  font-size: 14px; outline: none;
  transition: border-color var(--rq-dur) var(--rq-ease);
}
textarea.input, .control textarea { min-height: 108px; padding-block: 11px; line-height: 1.7; resize: vertical; }
.input:hover:not(:disabled), .control :is(input, select, textarea):hover:not(:disabled) { border-color: var(--rq-text-subtle); }
.input:focus, .control :is(input, select, textarea):focus { border-color: var(--rq-action-primary); box-shadow: none; }
.input::placeholder, .control :is(input, textarea)::placeholder { color: var(--rq-text-subtle); opacity: 1; }
.input:disabled, .control :is(input, select, textarea):disabled { background: var(--rq-surface-chrome); opacity: .7; cursor: not-allowed; }
.control input[dir="ltr"] { text-align: right; }
.control input[type="datetime-local"], .control input[type="date"] { text-align: right; }
html[data-theme="dark"] :is(.input, .control input) { color-scheme: dark; }

/* Leading icon on the start edge. Physical sides: LTR inputs (phone, URL) would flip logical padding. */
.control--icon > .icon {
  position: absolute; inset-inline-start: 14px; color: var(--rq-text-subtle); pointer-events: none;
}
.control--icon :is(input, select) { padding-right: 40px; }

/* Native select with our own chevron */
select.input,
.control--select select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  padding-left: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2378838C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6l6 -6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 12px center;
}
select.input option, .control--select select option { background: var(--rq-surface); color: var(--rq-text-body); }

/* Password reveal */
.control--reveal input { padding-left: 44px; }
.reveal {
  position: absolute; inset-inline-end: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0; border: 0; border-radius: var(--rq-radius-sm);
  background: transparent; color: var(--rq-text-subtle);
}
.reveal:hover, .reveal[aria-pressed="true"] { color: var(--rq-text-heading); }

.check {
  display: inline-flex !important; align-items: center; gap: 8px;
  font-family: var(--rq-font-body) !important; font-size: 13px !important; font-weight: 400 !important;
  color: var(--rq-text-muted) !important; cursor: pointer;
}
.check input { width: 16px; height: 16px; margin: 0; accent-color: var(--rq-action-primary); }

/* Copy field: read-only input + copy button joined */
.copy-field { display: flex; align-items: stretch; min-width: 0; }
.copy-field input {
  flex: 1; min-width: 0; height: 36px; padding: 0 12px; direction: ltr; text-align: left;
  border: 1px solid var(--rq-line-strong); border-inline-end: 0; border-radius: 0 var(--rq-radius-sm) var(--rq-radius-sm) 0;
  background: var(--rq-surface-chrome); color: var(--rq-text-muted); font-size: 12px; outline: none;
}
.copy-field .button { min-height: 36px; border-radius: var(--rq-radius-sm) 0 0 var(--rq-radius-sm); }

/* =====================================================================
 * Public site chrome
 * ===================================================================== */

/* Header (spec Topbar): white, 64px, hairline under; logo | divider | product name, nav, actions */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--rq-surface);
  border-bottom: 1px solid var(--rq-line-soft);
}
.site-header__inner { display: flex; align-items: center; gap: 24px; height: var(--rq-topbar-height); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; flex: none; }
.brand .brand-logo { height: 30px; width: auto; }
.brand span {
  padding-inline-start: 12px; border-inline-start: 1px solid var(--rq-line-row);
  font-family: var(--rq-font-display); font-size: var(--rq-text-label); color: var(--rq-text-muted);
  white-space: nowrap;
}
.site-nav { display: flex; align-items: stretch; align-self: stretch; gap: 4px; margin-inline: auto; }
.site-nav a {
  position: relative; display: flex; align-items: center; padding-inline: 12px;
  font-family: var(--rq-font-display); font-size: 13px; color: var(--rq-text-muted);
  transition: color var(--rq-dur) var(--rq-ease);
}
.site-nav a:hover { color: var(--rq-text-heading); }
.site-nav a[aria-current="page"] { color: var(--rq-text-eyebrow); font-weight: 600; }
.site-nav a[aria-current="page"]::after { content: ''; position: absolute; inset-inline: 12px; bottom: -1px; height: 2px; background: var(--rq-line-emphasis); }
.site-header__actions { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.site-nav + .site-header__actions { margin-inline-start: 0; }
.site-header__actions form { display: contents; }
.site-header__menu { display: none; }
.mobile-nav { display: none; }

/* Module grid on solid blue (my-center login brand side) */
.module-grid {
  --cell: clamp(56px, 6.2vw, 88px);
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(to top, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
  background-position: left bottom;
  -webkit-mask-image: radial-gradient(ellipse 72% 70% at 0% 100%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 70% at 0% 100%, #000 35%, transparent 100%);
}
.module-grid__tile {
  position: absolute;
  left: calc(var(--col) * var(--cell) + 1px);
  bottom: calc(var(--row) * var(--cell));
  display: flex; align-items: center; justify-content: center;
  width: calc(var(--cell) - 1px); height: calc(var(--cell) - 1px);
  background: rgba(255, 255, 255, .05); color: rgba(255, 255, 255, .6);
}
.module-grid__tile--lit {
  background: color-mix(in srgb, var(--rq-blue-600) 75%, var(--rq-blue-700));
  color: var(--rq-blue-200);
}

/* Brand hero: solid brand blue (no gradients or orbs), copy on the start side, grid in the far corner */
.hero {
  position: relative; overflow: hidden;
  background: var(--rq-blue-700); color: var(--rq-white);
}
html[data-theme="dark"] :is(.hero, .band-blue) { background: #0B3C8A; }
.hero__inner { position: relative; z-index: 1; padding: clamp(56px, 9vw, 104px) 0 clamp(56px, 8vw, 96px); }
.hero h1 {
  max-width: 34rem; margin: 18px 0 16px;
  font-size: clamp(32px, 4.2vw, 52px); font-weight: 700; line-height: 1.25; letter-spacing: -.01em;
}
.hero h1 span { color: var(--rq-blue-300); }
.hero p { max-width: 36rem; margin: 0; font-size: clamp(15px, 1.2vw, 17px); line-height: 1.9; color: var(--rq-blue-200); }
.hero__points { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 28px 0 32px; padding: 0; list-style: none; }
.hero__points li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.hero__points span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: rgba(255, 255, 255, .1); color: var(--rq-blue-300);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero--compact .hero__inner { padding: clamp(40px, 6vw, 64px) 0; }
.hero--compact h1 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 10px; }

/* Public pages fill the screen so the footer sits at the bottom of short pages */
body.layout-site { display: flex; flex-direction: column; min-height: 100dvh; }
body.layout-site > main { flex: 1; }

/* Footer (same chrome as the header): white surface, hairline above, muted links that turn blue */
.site-footer { padding: 40px 0 0; background: var(--rq-surface); border-top: 1px solid var(--rq-line-soft); color: var(--rq-text-body); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-grid .brand-logo { width: auto; height: 30px; margin-bottom: 8px; }
.footer-grid p { max-width: 320px; margin: 0; font-size: 14px; line-height: 1.8; color: var(--rq-text-muted); }
.footer-grid strong { margin-bottom: 4px; font-family: var(--rq-font-display); font-size: 13px; font-weight: 600; color: var(--rq-text-heading); }
.footer-grid a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--rq-text-muted); transition: color var(--rq-dur) var(--rq-ease); }
.footer-grid a:hover { color: var(--rq-text-link-hover); }
.footer-bottom { margin-top: 32px; padding: 16px 0; border-top: 1px solid var(--rq-line-soft); font-size: 12px; color: var(--rq-text-subtle); }

/* Centred message (404, thanks, closed) */
.message-card {
  width: min(560px, calc(100% - 32px)); margin: 72px auto; padding: 48px 28px;
  background: var(--rq-surface); border: 1px solid var(--rq-line); border-radius: var(--rq-radius-card);
  text-align: center;
}
.message-card .icon-tile { margin: 0 auto 12px; }
.message-card__code { display: block; font-family: var(--rq-font-display); font-size: 40px; font-weight: 700; line-height: 1.2; color: var(--rq-text-number); }
.message-card h1 { margin: 4px 0 6px; font-size: 20px; color: var(--rq-text-heading); }
.message-card p { margin: 0 0 24px; font-size: 14px; line-height: 1.8; color: var(--rq-text-muted); }
.layout-admin .message-card { margin: 24px auto; }

/* =====================================================================
 * Login (my-center AuthSplitLayout): brand side | form side
 * ===================================================================== */
.auth { display: grid; grid-template-columns: 1fr; min-height: 100dvh; background: var(--rq-surface); }
.auth__promo { position: relative; display: none; overflow: hidden; background: var(--rq-blue-700); color: var(--rq-white); }
html[data-theme="dark"] .auth__promo { background: #0B3C8A; }
.auth__promo-inner {
  position: relative; z-index: 1; display: flex; flex-direction: column; width: 100%;
  padding: clamp(40px, 12vh, 140px) clamp(40px, 7vw, 112px) clamp(28px, 6vh, 64px);
}
.auth__promo-logo { align-self: flex-start; height: clamp(34px, 3vw, 44px); width: auto; }
.auth__copy { max-width: 32rem; margin-block: auto; padding-bottom: clamp(110px, 20vh, 220px); }
.auth__copy h2 { margin: 0 0 16px; font-size: clamp(30px, 3vw, 46px); font-weight: 700; line-height: 1.25; }
.auth__copy p { margin: 0; max-width: 30rem; font-size: clamp(14px, 1.05vw, 16px); line-height: 1.9; color: var(--rq-blue-200); }
.auth__points { display: flex; flex-direction: column; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.auth__points li { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.auth__points span {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 8px; background: rgba(255, 255, 255, .1); color: var(--rq-blue-300);
}
.auth__copyright { margin: 0; font-size: 12px; color: var(--rq-blue-200); }

.auth__panel { display: flex; justify-content: center; padding: 0 clamp(24px, 6vw, 128px); background: var(--rq-surface); }
.auth__panel-inner { display: flex; flex-direction: column; width: 100%; max-width: 26rem; min-height: 100dvh; }
.auth__panel-head { display: flex; align-items: center; justify-content: space-between; padding: 32px 0 24px; }
.auth__logo { height: 32px; width: auto; }
.auth__form { display: flex; flex: 1; flex-direction: column; justify-content: center; }
.auth__footer { padding: 32px 0 clamp(28px, 6vh, 56px); font-size: 13px; }
.auth__footer a { display: inline-flex; align-items: center; gap: 6px; font-family: var(--rq-font-display); color: var(--rq-text-link); }
.auth__footer a:hover { color: var(--rq-text-link-hover); }

.auth-hero { margin-bottom: 24px; }
.auth-hero h1 { margin: 0 0 8px; font-size: clamp(28px, 2.6vw, 40px); font-weight: 700; line-height: 1.25; color: var(--rq-text-heading); }
.auth-hero p { margin: 0; font-size: 14px; line-height: 1.75; color: var(--rq-text-muted); }
.auth-form { display: flex; flex-direction: column; gap: 24px; }

/* =====================================================================
 * Admin shell (my-center AppShell): sidebar | topbar + content
 * ===================================================================== */
.shell { min-height: 100dvh; overflow-x: clip; }
.shell__body { min-width: 0; }

.sidebar {
  position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 40;
  display: flex; flex-direction: column;
  width: var(--rq-sidebar-width);
  background: var(--rq-surface);
  border-inline-end: 1px solid var(--rq-line-soft);
  transition: transform var(--rq-dur) var(--rq-ease);
}
.sidebar__brand {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
  height: var(--rq-topbar-height); padding-inline: 20px;
  border-bottom: 1px solid var(--rq-line-soft);
}
.sidebar__logo { height: 28px; width: auto; }
.sidebar__brand span {
  max-width: 110px; padding-inline-start: 10px; border-inline-start: 1px solid var(--rq-line-row);
  font-family: var(--rq-font-display); font-size: 12px; line-height: 1.5; color: var(--rq-text-muted);
}
.sidebar__nav { flex: 1; overflow-y: auto; padding: 4px 14px 24px; }
.sidebar__section {
  display: block; margin-top: 22px; padding: 0 12px 6px;
  font-family: var(--rq-font-display); font-size: 11px; letter-spacing: .5px; color: var(--rq-text-subtle);
}
.sidebar__item {
  display: flex; align-items: center; gap: 12px;
  min-height: 38px; margin-bottom: 2px; padding-inline: 12px;
  border-radius: var(--rq-radius-sm);
  font-family: var(--rq-font-display); font-size: 12px; color: var(--rq-text-body);
  transition: background-color var(--rq-dur-fast) var(--rq-ease), color var(--rq-dur-fast) var(--rq-ease);
}
.sidebar__item > .icon:first-child { color: var(--rq-action-primary); }
html[data-theme="dark"] .sidebar__item > .icon:first-child { color: var(--rq-text-link); }
.sidebar__item > .icon:last-child:not(:first-child) { margin-inline-start: auto; color: var(--rq-text-subtle); }
.sidebar__item:hover { background: var(--rq-surface-hover); }
/* Active page: solid blue row, white text and icon */
.sidebar__item--active,
.sidebar__item--active:hover { background: var(--rq-action-primary); color: var(--rq-text-on-primary); font-weight: 600; }
.sidebar__item--active > .icon:first-child,
html[data-theme="dark"] .sidebar__item--active > .icon:first-child { color: inherit; }
/* Count badge at the end of an item (items waiting for review) */
.sidebar__count {
  margin-inline-start: auto; min-width: 20px; padding: 0 6px; border-radius: var(--rq-radius-pill);
  background: var(--rq-warning-tint); color: var(--rq-warning);
  font-size: 11px; font-weight: 600; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums;
}
.sidebar__item--active .sidebar__count { background: rgba(255, 255, 255, .2); color: inherit; }

.sidebar__footer { padding: 16px; border-top: 1px solid var(--rq-line-soft); }
.sidebar__footer button {
  display: flex; align-items: center; gap: 12px; width: 100%; height: 41px; padding-inline: 18px;
  border: 0; border-radius: var(--rq-radius-sm); background: transparent;
  font-family: var(--rq-font-display); font-size: 12px; font-weight: 600; color: var(--rq-text-muted);
}
.sidebar__footer button:hover { background: var(--rq-surface-hover); color: var(--rq-action-primary); }
html[data-theme="dark"] .sidebar__footer button:hover { color: var(--rq-text-link); }

.sidebar-scrim {
  position: fixed; inset: 0; z-index: 35;
  background: var(--rq-surface-overlay);
  opacity: 0; pointer-events: none; transition: opacity var(--rq-dur) var(--rq-ease);
}

.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 4px;
  height: 56px; padding-inline: 16px;
  background: var(--rq-surface); border-bottom: 1px solid var(--rq-line-soft);
}
.topbar__menu { margin-inline-end: 8px; }
.topbar__brand .brand-logo { height: 24px; width: auto; }
.topbar__spacer { flex: 1; }
.topbar__divider { width: 1px; height: 36px; margin-inline: 6px 4px; background: var(--rq-line-soft); }

.user-chip { display: flex; align-items: center; gap: 10px; padding-inline: 6px; }
.user-chip__avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--rq-icon-tile); color: var(--rq-action-primary);
}
html[data-theme="dark"] .user-chip__avatar { color: var(--rq-text-link); }
.user-chip__text { display: flex; flex-direction: column; line-height: 1.3; }
.user-chip__text strong { font-family: var(--rq-font-display); font-size: 13px; font-weight: 600; color: var(--rq-text-body); }
.user-chip__text small { font-size: 11px; color: var(--rq-text-subtle); }

/* Content area: 36px above, 40px sides, 56px below, 1280px at most */
.shell__content { width: 100%; max-width: calc(1280px + 80px); margin-inline: auto; padding: 24px 16px 40px; }

/* Page intro (my-center PageIntro) */
.page-intro { display: flex; flex-direction: column; gap: 20px; margin-bottom: var(--rq-space-7); }
.page-intro h1 { margin: 8px 0 0; font-size: var(--rq-text-h2); font-weight: 700; line-height: 1.3; color: var(--rq-text-heading); }
.page-intro p { max-width: 640px; margin: 8px 0 0; font-size: var(--rq-text-lead); line-height: 1.7; color: var(--rq-text-muted); }
.page-intro__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* Stat cards (my-center PageIntroStats): tile | label over number + share; links double as filters */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat {
  display: flex; align-items: center; gap: 14px; min-width: 0; padding: 18px 20px;
  border: 1px solid var(--rq-line); border-radius: var(--rq-radius-card);
  background: var(--rq-surface);
  transition: border-color var(--rq-dur) var(--rq-ease), background-color var(--rq-dur) var(--rq-ease);
}
a.stat { background: var(--rq-surface-hover); }
a.stat:hover { border-color: var(--rq-line-strong); }
a.stat.stat--active, a.stat.stat--active:hover { background: var(--rq-surface); border-color: var(--rq-line); }
a.stat:not(.stat--active) .icon-tile:not([class*="--"]) { background: var(--rq-surface); }
.stat__body { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.stat__label { overflow: hidden; font-size: var(--rq-text-label); line-height: 1.5; white-space: nowrap; text-overflow: ellipsis; color: var(--rq-text-muted); }
.stat__figures { display: flex; align-items: center; gap: 8px; }
.stat__value { font-family: var(--rq-font-display); font-variant-numeric: tabular-nums; font-size: 22px; font-weight: 700; line-height: 1.2; color: var(--rq-text-heading); }
.stat__value--text { font-size: 17px; }
.stat__value--green { color: var(--rq-success); }
.stat__value--amber { color: var(--rq-warning); }
.stat__share { padding: 0 6px; border-radius: var(--rq-radius-sm); font-family: var(--rq-font-display); font-size: 11px; font-weight: 600; line-height: 18px; }
.stat__share--green { background: var(--rq-success-tint); color: var(--rq-success); }
.stat__share--amber { background: var(--rq-warning-tint); color: var(--rq-warning); }

/* List card: line tabs on top, table with a chrome header */
.list-card { overflow: hidden; }
.tabs { display: flex; gap: 4px; padding-inline: 16px; overflow-x: auto; border-bottom: 1px solid var(--rq-line-soft); scrollbar-width: none; }
.tabs__tab {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 10px; white-space: nowrap;
  font-family: var(--rq-font-display); font-size: 13px; color: var(--rq-text-muted);
  transition: color var(--rq-dur) var(--rq-ease);
}
.tabs__tab:hover { color: var(--rq-text-heading); }
.tabs__tab--active, .tabs__tab--active:hover { color: var(--rq-text-eyebrow); font-weight: 600; }
.tabs__tab--active::after { content: ''; position: absolute; inset-inline: 0; bottom: -1px; height: 2px; background: var(--rq-line-emphasis); }
.tabs__count { padding: 0 6px; border-radius: var(--rq-radius-sm); background: var(--rq-surface-chrome); font-size: 11px; font-weight: 600; line-height: 18px; color: var(--rq-text-muted); }
.tabs__tab--active .tabs__count { background: var(--rq-info-tint); color: var(--rq-info); }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  padding: 10px 16px; background: var(--rq-surface-chrome); text-align: start;
  font-family: var(--rq-font-display); font-size: 12px; font-weight: 500; color: var(--rq-text-muted);
  border-bottom: 1px solid var(--rq-line-soft);
}
.table td { padding: 14px 16px; vertical-align: middle; border-bottom: 1px solid var(--rq-line-soft); }
.table tbody tr { transition: background-color var(--rq-dur-fast) var(--rq-ease); }
.table tbody tr:hover { background: var(--rq-surface-hover); }
.table tbody tr:last-child td { border-bottom: 0; }

.row-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.row-identity > div { min-width: 0; }
.row-title { font-family: var(--rq-font-display); font-size: 14px; font-weight: 600; color: var(--rq-text-heading); }
.row-title:hover { color: var(--rq-text-link-hover); }
.row-sub { max-width: 420px; margin: 2px 0 0; overflow: hidden; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; color: var(--rq-text-muted); }
.row-meta { display: inline-flex; align-items: center; gap: 6px; color: var(--rq-text-body); white-space: nowrap; }
.row-meta .icon { color: var(--rq-text-subtle); }
.row-date { font-family: var(--rq-font-display); font-variant-numeric: tabular-nums; font-size: 13px; color: var(--rq-text-muted); white-space: nowrap; }
.row-actions { width: 1%; white-space: nowrap; }
.row-actions__inner, .row-actions form { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.row-actions form { margin-inline-start: 6px; }

.list-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px 16px; }
.list-empty p { margin: 0; font-size: 14px; color: var(--rq-text-muted); }

/* ---------- Forms (spec StudentFormScreen): one form card + side cards + floating save bar ---------- */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 20px; }
.editor__main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.editor__side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 76px; min-width: 0; }
.form-card {
  padding: 32px; background: var(--rq-surface);
  border: 1px solid var(--rq-line); border-radius: var(--rq-radius-card);
}
.form-section { display: flex; flex-direction: column; gap: 20px; }
.form-section + .form-section { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--rq-line-soft); }
.form-section__head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.form-section__head > div { flex: 1; min-width: 0; }
.form-section__head h2 { margin: 0; font-size: var(--rq-text-card-title); font-weight: 600; line-height: 1.45; color: var(--rq-text-heading); }
.form-section__head p { margin: 2px 0 0; font-size: 13px; color: var(--rq-text-muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stack { display: flex; flex-direction: column; gap: 20px; }

/* Toggle chips (checkbox group) */
.toggle-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.toggle-chip {
  position: relative; display: inline-flex !important; align-items: center; gap: 8px; cursor: pointer;
  padding: 8px 14px; border: 1px solid var(--rq-line-strong); border-radius: var(--rq-radius-pill);
  font-family: var(--rq-font-body) !important; font-size: 14px !important; font-weight: 500 !important; color: var(--rq-text-body) !important;
  transition: background-color var(--rq-dur) var(--rq-ease), border-color var(--rq-dur) var(--rq-ease), color var(--rq-dur) var(--rq-ease);
}
.toggle-chip input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-chip .icon { color: var(--rq-action-primary); }
html[data-theme="dark"] .toggle-chip .icon { color: var(--rq-text-link); }
.toggle-chip:hover { background: var(--rq-surface-hover); }
.toggle-chip:has(input:checked) { border-color: var(--rq-action-primary); background: var(--rq-surface-hover); color: var(--rq-text-heading) !important; }
.toggle-chip:has(input:focus-visible) { box-shadow: var(--rq-focus-ring); }

/* Segmented control (radio group) */
.segmented { display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; gap: 4px; padding: 4px; border-radius: var(--rq-radius-md); background: var(--rq-surface-chrome); }
.segmented--stack { grid-auto-flow: row; }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 4px 8px;
  border-radius: var(--rq-radius-sm); text-align: center;
  font-family: var(--rq-font-display); font-size: 13px; color: var(--rq-text-muted);
  transition: background-color var(--rq-dur) var(--rq-ease), color var(--rq-dur) var(--rq-ease);
}
.segmented--stack span { justify-content: flex-start; padding-inline: 12px; }
.segmented label:hover span { color: var(--rq-text-heading); }
.segmented input:checked + span { background: var(--rq-surface); color: var(--rq-text-heading); font-weight: 600; box-shadow: 0 0 0 1px var(--rq-line); }
.segmented input[value="published"]:checked + span { color: var(--rq-success); }
.segmented input:focus-visible + span { box-shadow: var(--rq-focus-ring); }
.segmented input:disabled + span { opacity: .55; cursor: not-allowed; }

/* Upload drop zones: dashed area in the page tone */
.uploads { display: flex; flex-direction: column; gap: 20px; }
.upload-current { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--rq-line); border-radius: var(--rq-radius-md); }
.upload-current img { width: 56px; height: 56px; object-fit: contain; border-radius: var(--rq-radius-sm); background: var(--rq-surface-chrome); }
.upload-current--cover img { width: 96px; object-fit: cover; }
.upload-zone {
  position: relative; display: flex !important; flex-direction: column; align-items: center; gap: 6px;
  padding: 22px 16px; cursor: pointer; text-align: center;
  border: 1px dashed var(--rq-line-strong); border-radius: var(--rq-radius-md);
  background: var(--rq-bg-page);
  transition: background-color var(--rq-dur) var(--rq-ease), border-color var(--rq-dur) var(--rq-ease);
}
.upload-zone:hover, .upload-zone--drag { border-color: var(--rq-action-primary); background: var(--rq-surface-hover); }
.upload-zone:has(input:focus-visible) { box-shadow: var(--rq-focus-ring); }
.upload-zone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-zone .icon-tile { margin-bottom: 4px; }
.upload-zone__title { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--rq-font-display); font-size: 14px; font-weight: 600; color: var(--rq-text-heading); }
.upload-zone__hint { font-family: var(--rq-font-body); font-size: 12px; font-weight: 400; line-height: 1.5; color: var(--rq-text-subtle); }
.upload-zone__preview { width: 64px; height: 64px; object-fit: contain; border: 1px solid var(--rq-line); border-radius: var(--rq-radius-md); background: var(--rq-surface); }
.upload-zone--cover .upload-zone__preview { width: 100%; height: 96px; object-fit: cover; }

/* Floating save bar */
.form-bar {
  position: sticky; bottom: 16px; z-index: 10; grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px;
  border: 1px solid var(--rq-line); border-radius: var(--rq-radius-card);
  background: var(--rq-surface); box-shadow: var(--rq-shadow-frame-md);
}
.form-bar__hint { font-size: 13px; color: var(--rq-text-muted); }
.form-bar__actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }

/* =====================================================================
 * Responsive
 * ===================================================================== */
@media (min-width: 600px) {
  .page-intro { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .page-intro__actions { flex-shrink: 0; justify-content: flex-end; }
}

@media (min-width: 960px) {
  .auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .auth__promo { position: sticky; top: 0; display: flex; height: 100dvh; }
  .auth__panel-head .brand-logo { visibility: hidden; }
  .auth__panel-head { padding-bottom: 0; }

  .topbar { height: var(--rq-topbar-height); padding-inline: 28px; }
  .shell__content { padding: 36px 40px 56px; }
  .editor__side { top: calc(var(--rq-topbar-height) + 20px); }
}

/* Sidebar is fixed from 1100px; below that it is an off-canvas drawer */
@media (min-width: 1100px) {
  .shell__body { margin-inline-start: var(--rq-sidebar-width); }
  .topbar__menu, .topbar__brand { display: none; }
}
@media (max-width: 1099.98px) {
  .sidebar { transform: translateX(100%); box-shadow: var(--rq-shadow-lifted); }
  html.sidebar-open .sidebar { transform: none; }
  html.sidebar-open .sidebar-scrim { opacity: 1; pointer-events: auto; }
  .editor { grid-template-columns: minmax(0, 1fr) 290px; }
}

@media (max-width: 860px) {
  .editor { grid-template-columns: 1fr; }
  .editor__side { position: static; }

  /* Table rows become stacked rows with hairlines */
  .table--stack thead { display: none; }
  .table--stack, .table--stack tbody, .table--stack tr, .table--stack td { display: block; width: 100%; }
  .table--stack tr { position: relative; padding: 14px 16px; border-bottom: 1px solid var(--rq-line-soft); }
  .table--stack tbody tr:last-child { border-bottom: 0; }
  .table--stack td { padding: 0; border: 0; }
  .table--stack td:first-child { margin-bottom: 10px; }
  .table--stack td:not(:first-child):not(.row-actions) { display: inline-flex; width: auto; margin-inline-end: 14px; vertical-align: middle; }
  .table--stack .row-actions { margin-top: 12px; padding-top: 10px !important; border-top: 1px dashed var(--rq-line-soft) !important; }
  .table--stack .row-actions__inner { justify-content: flex-start; }
  .table--stack .row-sub { max-width: none; white-space: normal; }
}

@media (max-width: 780px) {
  .wrap { width: calc(100% - 32px); }
  .brand span { display: none; }
  .site-nav { display: none; }
  .site-header__menu { display: inline-flex; }
  .mobile-nav:not([hidden]) {
    display: flex; flex-direction: column; padding: 8px 16px 16px;
    border-top: 1px solid var(--rq-line-soft); background: var(--rq-surface);
  }
  .mobile-nav a {
    display: flex; align-items: center; gap: 10px; min-height: 42px; padding-inline: 12px;
    border-radius: var(--rq-radius-sm); font-family: var(--rq-font-display); font-size: 14px; color: var(--rq-text-body);
  }
  .mobile-nav a:hover { background: var(--rq-surface-hover); }
  .mobile-nav a[aria-current="page"] { background: var(--rq-action-primary); color: var(--rq-text-on-primary); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .user-chip__text { display: none; }
}

@media (max-width: 599.98px) {
  body { font-size: 14px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero__points { flex-direction: column; }
  .card__head, .card__body { padding-inline: 16px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stats > :first-child:nth-last-child(odd) { grid-column: 1 / -1; }
  .stat { padding: 14px; gap: 10px; }
  .stat .icon-tile { width: 36px; height: 36px; }
  .form-card { padding: 20px 16px; }
  .field-row { grid-template-columns: 1fr; }
  .form-bar { bottom: 8px; }
  .form-bar__hint { display: none; }
  .form-bar__actions { width: 100%; }
  .form-bar__actions .button { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
