/* =====================================================================
   Lucid Motion Studio — Project Brief (/start)
   ---------------------------------------------------------------------
   Loaded ONLY by start.html. css/style.css is never modified: every
   token below is inherited from it (--blue, --teal, --green, --grad,
   --bg, --card, --line, --text, --muted, --radius, --font-head,
   --font-body), so a brand change in style.css reaches this page too.
   ===================================================================== */

.lms-brief {
  --card-max: 700px;
  --gutter: 20px;
  --ring: rgba(16, 208, 208, .45);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  background: var(--bg);
}

/* ---------- atmosphere: stable while the card changes ---------- */
.lms-brief::before,
.lms-brief::after {
  content: '';
  position: fixed;
  pointer-events: none;
  z-index: 0;
}
.lms-brief::before {
  top: -320px; left: 50%;
  transform: translateX(-50%);
  width: 1100px; height: 780px;
  background: radial-gradient(ellipse at center,
    rgba(48, 144, 224, .20), rgba(16, 208, 208, .09) 45%, transparent 72%);
}
.lms-brief::after {
  bottom: -360px; right: -180px;
  width: 820px; height: 700px;
  background: radial-gradient(ellipse at center,
    rgba(112, 208, 80, .13), rgba(16, 208, 208, .06) 50%, transparent 72%);
}

/* ---------- progress ---------- */
.lms-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(120, 180, 220, .12);
  z-index: 60;
}
.lms-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--grad);
  border-radius: 0 3px 3px 0;
  transition: width .45s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 0 0 14px rgba(16, 208, 208, .5);
}

/* ---------- minimal header ---------- */
.lms-top {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px var(--gutter) 0;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}
/* Height only, width auto: the file is 1583x438, so the 3.61:1 aspect is
   preserved by the browser and the mark can never look stretched. */
.lms-top .lms-logo img { height: 58px; width: auto; }
.lms-top-link {
  font-size: .85rem;
  color: var(--muted);
  font-weight: 500;
  transition: color .2s;
}
.lms-top-link:hover { color: var(--teal); }

/* ---------- stage ---------- */
.lms-stage {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px var(--gutter) 64px;
  width: 100%;
}
.lms-card-holder {
  position: relative;
  width: 100%;
  max-width: var(--card-max);
}

/* ---------- the card ---------- */
.lms-card {
  background: linear-gradient(180deg, rgba(14, 24, 38, .92), rgba(10, 18, 30, .92));
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  padding: 44px 44px 40px;
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  transition: opacity .3s ease, transform .3s cubic-bezier(.22, .8, .3, 1);
}
/* Two cards coexist for one moment during a transition. */
.lms-card-holder .lms-card + .lms-card { position: absolute; inset: 0 0 auto 0; }

.lms-card.is-in      { opacity: 0; transform: translateY(26px); }
.lms-card.is-in-back { opacity: 0; transform: translateY(-26px); }
.lms-card.is-in-fade { opacity: 0; transform: none; }
.lms-card.is-out     { opacity: 0; transform: translateY(-22px); pointer-events: none; }
.lms-card.is-out-back{ opacity: 0; transform: translateY(22px); pointer-events: none; }
.lms-card.is-out-fade{ opacity: 0; transform: none; pointer-events: none; }

/* ---------- language switcher, inside the card ---------- */
/* Floated out of the flow into the card's top-right corner so it never
   pushes the question down, and stays in the same place on every step. */
.lms-lang {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 5;
}
.lms-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(7, 12, 18, .6);
  color: var(--muted);
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.lms-lang-btn:hover { border-color: var(--teal); color: var(--teal); }
.lms-lang-btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.lms-lang-globe { font-size: .9rem; line-height: 1; }
.lms-lang-arr { font-size: .6rem; opacity: .7; }

.lms-lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 168px;
  list-style: none;
  margin: 0;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(12, 20, 32, .98);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
}
.lms-lang-menu a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--text);
  font-size: .92rem;
  transition: background .18s, color .18s;
}
.lms-lang-menu a:hover { background: rgba(16, 208, 208, .14); color: var(--teal); }
.lms-lang-menu a:focus-visible { outline: 2px solid var(--ring); outline-offset: -2px; }
.lms-lang-code {
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--teal);
  min-width: 22px;
}
.lms-lang-name { color: inherit; }

/* The card is the positioning context for the switcher. */
.lms-card { position: relative; }

/* Room for it, so a long question never runs under the button.
   The switcher itself is positioned against the CARD, so it must not carry
   a margin of its own — an earlier negative margin pushed it clean outside
   the card's right edge. */
.lms-q-head, .lms-intro, .lms-final { padding-right: 96px; }

/* ---------- question head ---------- */
.lms-q-head { margin-bottom: 26px; }
.lms-step-no {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--teal);
  margin-bottom: 14px;
}
.lms-step-arrow { opacity: .6; }

.lms-q-title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--text);
  outline: none;
}
/* The engine focuses the heading so screen readers announce each new
   question. That must not paint a box around the title for someone using a
   mouse, so the ring appears only once the visitor has actually used the
   keyboard (start-flow.js sets data-kbd on <html> at the first Tab). */
html[data-kbd] .lms-q-title:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 6px;
  border-radius: 6px;
}
.lms-q-title:focus { outline: none; }
.lms-req { color: var(--teal); margin-left: 6px; font-weight: 600; }
.lms-q-help {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-top: 12px;
  max-width: 56ch;
}

.lms-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}
.lms-eyebrow::before {
  content: '';
  width: 24px; height: 2px;
  background: var(--grad);
  border-radius: 2px;
}

/* ---------- intro ---------- */
.lms-intro-title { font-size: clamp(1.9rem, 4.6vw, 2.9rem); }
.lms-intro-help { font-size: 1.06rem; margin-top: 16px; }
.lms-intro .lms-actions { margin-top: 32px; }

/* ---------- inputs ---------- */
.lms-field { margin: 6px 0 4px; }
.lms-input,
.lms-textarea,
.lms-search {
  width: 100%;
  background: rgba(7, 12, 18, .6);
  border: 1px solid var(--line);
  border-bottom: 2px solid rgba(120, 180, 220, .28);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.08rem;
  padding: 15px 16px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.lms-input::placeholder,
.lms-textarea::placeholder,
.lms-search::placeholder { color: rgba(157, 178, 196, .55); }
.lms-input:focus,
.lms-textarea:focus,
.lms-search:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(16, 208, 208, .14);
  background: rgba(7, 12, 18, .85);
}
.lms-input-sm { font-size: .98rem; padding: 12px 14px; margin-top: 10px; }
.lms-input-date { max-width: 260px; color-scheme: dark; }
.lms-textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.lms-textarea-lg { min-height: 180px; }

.lms-search-wrap { position: relative; margin-bottom: 14px; }
.lms-search { padding-left: 42px; font-size: .98rem; }
.lms-search-icon {
  position: absolute;
  left: 15px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1.2rem;
  pointer-events: none;
}

.lms-sub-label {
  display: block;
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--muted);
  margin: 24px 0 10px;
}
.lms-other { margin-top: 4px; }

/* ---------- options ---------- */
.lms-options {
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-height: 46vh;
  overflow-y: auto;
  padding-right: 4px;
  margin: 4px 0 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(120, 180, 220, .3) transparent;
}
.lms-options::-webkit-scrollbar { width: 6px; }
.lms-options::-webkit-scrollbar-thumb { background: rgba(120, 180, 220, .3); border-radius: 6px; }

.lms-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  background: rgba(16, 27, 42, .55);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s, background .18s, transform .12s;
}
.lms-opt:hover { border-color: rgba(16, 208, 208, .5); background: rgba(16, 27, 42, .85); }
.lms-opt:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.lms-opt:active { transform: scale(.995); }

.lms-opt-key {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 600;
  color: var(--muted);
  transition: inherit;
}
.lms-opt-label { flex: 1; }
.lms-opt-tick { opacity: 0; color: var(--teal); font-weight: 700; transition: opacity .18s; }

/* Selection is marked three ways, not by colour alone: a tick appears,
   the border changes, and aria-checked flips for screen readers. */
.lms-opt.is-on {
  border-color: var(--teal);
  background: linear-gradient(100deg, rgba(48, 144, 224, .16), rgba(16, 208, 208, .13), rgba(112, 208, 80, .10));
  box-shadow: inset 0 0 0 1px rgba(16, 208, 208, .3);
}
.lms-opt.is-on .lms-opt-key { border-color: var(--teal); color: var(--teal); }
.lms-opt.is-on .lms-opt-tick { opacity: 1; }

.lms-empty { color: var(--muted); font-size: .94rem; padding: 14px 4px; }
.lms-note-inline { margin-top: 6px; }

/* ---------- actions ---------- */
.lms-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}
.lms-actions-end { margin-top: 30px; }

.lms-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 13px 30px;
  border-radius: 999px;
  border: none;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .98rem;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, opacity .2s;
}
.lms-btn-primary {
  background: var(--grad);
  color: #06131a;
  box-shadow: 0 8px 28px rgba(16, 208, 208, .28);
}
.lms-btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(16, 208, 208, .4); }
.lms-btn-primary:disabled { opacity: .55; cursor: default; box-shadow: none; }
.lms-btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.lms-btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.lms-btn-lg { padding: 16px 36px; font-size: 1.02rem; }
.lms-btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }
.lms-btn.is-busy { position: relative; }
.lms-tick { font-size: .9rem; }

.lms-skip {
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: .93rem;
  font-weight: 500;
  cursor: pointer;
  padding: 10px 6px;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
}
.lms-skip:hover { color: var(--teal); }
.lms-skip:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 6px; }

.lms-link {
  background: none;
  border: none;
  color: var(--teal);
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 2px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lms-link:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 6px; }
.lms-add { margin-top: 10px; min-height: 44px; }

.lms-hint { font-size: .82rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.lms-hint kbd {
  background: rgba(120, 180, 220, .12);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 2px 7px;
  font-family: var(--font-head);
  font-size: .74rem;
  color: var(--text);
}
.lms-note { font-size: .85rem; color: var(--muted); margin-top: 14px; line-height: 1.55; }
.lms-note-call { border-left: 2px solid var(--teal); padding-left: 12px; margin-top: 22px; }
.lms-resume { margin-top: 8px; }

/* [hidden] must beat display:flex, or an empty error box still shows its
   icon. This is the whole reason the rule exists. */
.lms-error[hidden] { display: none !important; }
.lms-error {
  margin-top: 16px;
  font-size: .9rem;
  font-weight: 500;
  color: #ff7b7b;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lms-error::before { content: '!'; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(255, 90, 90, .18); font-size: .74rem; font-weight: 700; flex: 0 0 auto; }

/* ---------- uploads ---------- */
.lms-upload { margin-top: 6px; }
.lms-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 32px 20px;
  border: 1.5px dashed rgba(120, 180, 220, .32);
  border-radius: 16px;
  background: rgba(7, 12, 18, .45);
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.lms-drop:hover, .lms-drop.is-over { border-color: var(--teal); background: rgba(16, 208, 208, .06); }
.lms-drop:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }
.lms-drop-icon {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--grad);
  color: #06131a;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.lms-drop-title { font-family: var(--font-head); font-weight: 600; font-size: 1rem; }
.lms-drop-sub { font-size: .82rem; color: var(--muted); }
.lms-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.lms-files { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lms-file {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(16, 27, 42, .55);
}
.lms-file.is-done { border-color: rgba(112, 208, 80, .4); }
.lms-file.is-error { border-color: rgba(255, 110, 110, .45); }
.lms-file-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lms-file-name { font-size: .92rem; word-break: break-all; }
.lms-file-meta { font-size: .78rem; color: var(--muted); }
.lms-file-side { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.lms-file-status { font-size: .8rem; color: var(--muted); font-weight: 600; }
.lms-file-status.is-ok { color: var(--green); }
.lms-file-status.is-bad { color: #ff7b7b; }
.lms-file-error { flex-basis: 100%; font-size: .82rem; color: #ff9a9a; margin: 0; }
.lms-file-bar { flex-basis: 100%; height: 3px; background: rgba(120, 180, 220, .16); border-radius: 3px; overflow: hidden; }
.lms-file-bar i { display: block; height: 100%; background: var(--grad); transition: width .2s; }
.lms-file-x {
  width: 32px; height: 32px;
  min-width: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.lms-file-x:hover { color: #ff7b7b; border-color: rgba(255, 110, 110, .5); }
.lms-file-x:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

.lms-links { display: flex; flex-direction: column; gap: 10px; }
.lms-link-row { display: flex; align-items: center; gap: 8px; }
.lms-link-row .lms-input { flex: 1; }

/* ---------- review ---------- */
.lms-review { margin-top: 10px; max-height: 52vh; overflow-y: auto; padding-right: 4px; }
.lms-rev-sec + .lms-rev-sec { margin-top: 26px; }
.lms-rev-h {
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.lms-rev-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(120, 180, 220, .07);
}
.lms-rev-q { font-size: .82rem; color: var(--muted); grid-column: 1; }
.lms-rev-a { font-size: .98rem; grid-column: 1; white-space: pre-line; word-break: break-word; }
.lms-rev-row.is-empty .lms-rev-a { color: rgba(157, 178, 196, .5); font-style: italic; }
.lms-rev-edit { grid-column: 2; grid-row: 1 / span 2; align-self: center; }

/* ---------- success ---------- */
.lms-success { text-align: left; }
.lms-tick-ring { width: 62px; height: 62px; margin-bottom: 22px; }
.lms-tick-svg { width: 100%; height: 100%; }
.lms-tick-circle {
  stroke: var(--teal);
  stroke-width: 2;
  stroke-dasharray: 145;
  stroke-dashoffset: 145;
  animation: lmsRing .7s cubic-bezier(.65, 0, .45, 1) forwards;
}
.lms-tick-path {
  stroke: var(--green);
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: lmsRing .4s cubic-bezier(.65, 0, .45, 1) .55s forwards;
}
@keyframes lmsRing { to { stroke-dashoffset: 0; } }

.lms-ref {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(7, 12, 18, .5);
}
.lms-ref-label { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.lms-ref-code {
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: .06em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lms-next { margin-top: 28px; }
.lms-next-h {
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}
.lms-next-list { margin: 0; padding-left: 20px; color: var(--muted); font-size: .96rem; line-height: 1.9; }
.lms-next-list li::marker { color: var(--teal); font-weight: 600; }

/* ---------- verification ---------- */
.lms-check {
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(7, 12, 18, .5);
  max-width: 340px;
}
.lms-check label { display: block; font-size: .92rem; font-weight: 600; color: var(--text); }
.lms-check .lms-note { margin-top: 8px; }

/* ---------- step navigation, inside the card ---------- */
/* Sits at the end of the action row and pushes to the right edge, so it
   reads as "the controls for this question" rather than page furniture. */
.lms-stepnav {
  display: inline-flex;
  gap: 2px;
  margin-left: auto;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(7, 12, 18, .5);
}
.lms-stepnav-btn {
  width: 42px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: .95rem;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.lms-stepnav-btn:hover:not(:disabled) { background: rgba(16, 208, 208, .14); color: var(--teal); }
.lms-stepnav-btn:disabled { opacity: .28; cursor: default; }
.lms-stepnav-btn:focus-visible { outline: 2px solid var(--ring); outline-offset: -2px; }
.lms-stepnav-btn + .lms-stepnav-btn { border-left: 1px solid var(--line); }

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

/* =====================================================================
   Mobile — designed for, not shrunk down
   ===================================================================== */
@media (max-width: 760px) {
  .lms-brief { --gutter: 18px; }
  .lms-top { padding-top: 14px; }
  .lms-top .lms-logo img { height: 44px; }
  .lms-stage { padding: 24px var(--gutter) 40px; align-items: flex-start; }
  .lms-card {
    padding: 28px 20px 26px;
    border-radius: var(--radius);
  }
  .lms-q-title { font-size: clamp(1.35rem, 6vw, 1.72rem); }
  .lms-lang { top: 14px; right: 14px; }
  .lms-q-head, .lms-intro, .lms-final { padding-right: 76px; }
  .lms-lang-btn { padding: 5px 10px; min-height: 32px; font-size: .74rem; }
  .lms-q-help { font-size: .95rem; }
  .lms-options { max-height: none; overflow: visible; padding-right: 0; }
  .lms-review { max-height: none; overflow: visible; }
  .lms-opt { min-height: 52px; font-size: .97rem; }
  .lms-opt-key { display: none; }        /* letter shortcuts are desktop-only */
  .lms-actions { gap: 10px; }
  .lms-btn { width: 100%; }
  .lms-skip { width: 100%; }
  .lms-hint { display: none; }           /* no keyboard hints on touch */
  .lms-rev-row { grid-template-columns: 1fr; }
  .lms-rev-edit { grid-column: 1; grid-row: auto; justify-self: start; }
  /* On touch the primary button is full width, so the pair sits on its own
     line beneath it rather than being squeezed alongside. */
  .lms-stepnav { margin-left: 0; width: 100%; }
  .lms-stepnav-btn { flex: 1; height: 46px; }
  .lms-card { margin-bottom: 16px; }
  .lms-input, .lms-textarea, .lms-search {
    font-size: 16px;                     /* stops iOS zooming on focus */
  }
  .lms-drop { padding: 26px 16px; }
}

@media (max-width: 400px) {
  .lms-card { padding: 24px 16px 22px; }
}

/* Short screens: never trap the visitor above the fold. */
@media (max-height: 680px) {
  .lms-stage { align-items: flex-start; padding-top: 24px; }
  .lms-options { max-height: 38vh; }
}

/* =====================================================================
   Reduced motion — a plain fade, no travel
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  .lms-card { transition: opacity .15s linear; }
  .lms-card.is-in, .lms-card.is-in-back, .lms-card.is-in-fade { transform: none; }
  .lms-card.is-out, .lms-card.is-out-back, .lms-card.is-out-fade { transform: none; }
  .lms-progress i { transition: width .15s linear; box-shadow: none; }
  .lms-tick-circle, .lms-tick-path { animation-duration: .01ms; stroke-dashoffset: 0; }
  .lms-btn-primary:hover:not(:disabled) { transform: none; }
  html { scroll-behavior: auto; }
}

/* High-contrast / forced colours: selection must survive losing colour. */
@media (forced-colors: active) {
  .lms-opt.is-on { outline: 2px solid CanvasText; }
  .lms-opt-tick { opacity: 1; }
}
