/* ─────────────────────────────────────────────────────────────────────────────
   Nova.Help — the support portal's design system

   THE COLOUR RULE. The page is charcoal and off-white; violet is an accent, not
   a surface. It marks the thing you act on (the primary button), the thing you
   are on (the current step, the focused field), and the icons that identify a
   product. Nothing large is violet, there is no violet background, and no
   gradient runs across a whole section. A support portal is read by people who
   are already annoyed — it should feel like an instrument panel, not a launch
   page.

   THE ELEVATION RULE. Three surfaces and no more: the ground (--bg), the raised
   card (--surface), and the inset control (--surface-inset). Depth comes from
   a one-pixel border and a low shadow, never from a glow.

   Layout is CSS grid and flexbox, sized in rem, with a single container width.
   ───────────────────────────────────────────────────────────────────────────── */

:root {
  /* Ground and surfaces */
  --bg: #0a0c13;
  --bg-raised: #0e111a;
  --surface: #141824;
  --surface-hover: #1a1f2e;
  --surface-inset: #0d1017;

  /* Lines */
  --line: rgba(150, 162, 195, 0.14);
  --line-strong: rgba(150, 162, 195, 0.28);

  /* Text */
  --text: #f1f3f9;
  --text-muted: #9aa3bd;
  --text-faint: #6d7691;

  /* Nova violet, and the indigo that supports it */
  --brand: #7c5cff;
  --brand-bright: #9a83ff;
  --brand-ink: #ffffff;
  --brand-wash: rgba(124, 92, 255, 0.1);
  --brand-edge: rgba(124, 92, 255, 0.34);
  --indigo: #5c72f0;

  /* Semantic */
  --good: #3fbf85;
  --good-wash: rgba(63, 191, 133, 0.1);
  --warn: #e0a33b;
  --warn-wash: rgba(224, 163, 59, 0.1);
  --bad: #f2626a;
  --bad-wash: rgba(242, 98, 106, 0.1);

  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.35), 0 14px 34px rgba(0, 0, 0, 0.32);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 999px;

  --wrap: 1140px;
  --gap: clamp(1rem, 2.4vw, 1.75rem);
  --band: clamp(2.25rem, 5vw, 3.5rem);

  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--sans);
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
fieldset {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

fieldset {
  padding: 0;
  border: 0;
  min-width: 0;
}

a {
  color: var(--brand-bright);
  text-decoration-color: color-mix(in srgb, var(--brand-bright) 40%, transparent);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: currentColor;
}

img,
svg {
  display: block;
  max-width: 100%;
}

code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--surface-inset);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.1em 0.35em;
}

/* One focus treatment for the whole site: a violet ring, always visible, never
   removed. Support forms are filled in by keyboard more than most. */
:focus-visible {
  outline: 2px solid var(--brand-bright);
  outline-offset: 2px;
  border-radius: 4px;
}

.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;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -140%);
  z-index: 20;
  background: var(--brand);
  color: var(--brand-ink);
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.16s var(--ease);
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.wrap.narrow {
  width: min(100% - 2.5rem, 44rem);
}

.main {
  flex: 1;
  outline: none;
}

.section {
  padding-block: var(--band);
}

.section--flush {
  padding-top: 0;
}

/* ── Masthead ──────────────────────────────────────────────────────────────── */

.masthead {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 60px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.wordmark .mark {
  width: 22px;
  height: 22px;
  fill: var(--brand);
}

.wordmark__dot {
  color: var(--brand);
}

.masthead__nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.masthead__nav a {
  padding: 0.4rem 0.75rem;
  border-radius: var(--r-pill);
  color: var(--text-muted);
  font-size: 0.925rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
}

.masthead__nav a:hover {
  color: var(--text);
  background: var(--surface);
}

.masthead__nav a[aria-current="page"] {
  color: var(--text);
  background: var(--brand-wash);
  box-shadow: inset 0 0 0 1px var(--brand-edge);
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */

/* The single decorative flourish on the site: a very low violet bloom behind the
   heading band, at 8% opacity. It reads as depth rather than as a gradient. */
.hero {
  position: relative;
  padding-block: clamp(2rem, 5vw, 3.25rem) clamp(1.5rem, 3.5vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(60rem 22rem at 12% -8rem, rgba(124, 92, 255, 0.14), transparent 70%),
    var(--bg-raised);
}

.hero__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.hero__text {
  max-width: 46rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
  padding: 0.28rem 0.7rem 0.28rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.775rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow .icon {
  color: var(--brand);
}

.hero__title {
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 650;
}

.hero__lede {
  margin-top: 0.85rem;
  max-width: 42rem;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.4vw, 1.075rem);
}

/* ── Breadcrumbs and steps ─────────────────────────────────────────────────── */

.crumbs {
  margin-bottom: 1rem;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-faint);
}

.crumbs li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--text-faint);
}

.crumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--text);
  text-decoration: underline;
}

.crumbs [aria-current="page"] {
  color: var(--text);
}

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.35rem;
  margin-bottom: 1.35rem;
}

.steps__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.83rem;
  color: var(--text-faint);
}

.steps__dot {
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-faint);
}

.steps__item--done .steps__dot {
  background: var(--brand-wash);
  border-color: var(--brand-edge);
  color: var(--brand-bright);
}

.steps__item--current {
  color: var(--text);
}

.steps__item--current .steps__dot {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-ink);
}

/* ── Product grid (the homepage) ───────────────────────────────────────────── */

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  gap: 1rem;
  margin-top: var(--band);
}

.product {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.85rem;
  padding: 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-1);
  transition: border-color 0.16s var(--ease), background-color 0.16s var(--ease),
    transform 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.product:hover {
  background: var(--surface-hover);
  border-color: var(--brand-edge);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

.product__icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--r-md);
  background: var(--brand-wash);
  border: 1px solid var(--brand-edge);
  color: var(--brand-bright);
}

/* A real product logo carries its own background and colours (see brandmarks.mjs), so it does
   not also want the tinted wash and border built for a monochrome glyph — that would frame it
   in a second, mismatched background rather than let its own artwork read as the mark. */
.product__icon--logo {
  background: none;
  border: none;
}

.product__icon--logo .brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: calc(var(--r-md) - 2px);
}

.product__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
}

.product__name {
  font-size: 1.125rem;
  font-weight: 620;
  letter-spacing: -0.012em;
}

.product__subtitle {
  color: var(--text-faint);
  font-size: 0.82rem;
}

.product__blurb {
  display: block;
  margin-top: 0.3rem;
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.55;
}

.product__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 0.8rem;
}

.product__kind {
  color: var(--text-muted);
  font-weight: 550;
}

.product__arrow {
  position: absolute;
  top: 1.35rem;
  right: 1.35rem;
  color: var(--text-faint);
  transition: color 0.16s var(--ease), transform 0.16s var(--ease);
}

.product:hover .product__arrow {
  color: var(--brand-bright);
  transform: translateX(3px);
}

/* ── Choice list (steps two and three) ─────────────────────────────────────── */

.choices {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr));
  gap: 0.75rem;
  margin-top: var(--band);
}

.choices--tight {
  grid-template-columns: 1fr;
  max-width: 46rem;
}

/* The "Something else" card.

   It is set apart from the listed issues by a rule and a little air, and drawn quieter —
   dashed rather than solid, no filled surface. It is not a lesser option (it goes to the same
   form and the same queue), it is a different KIND of answer: the ones above say what is
   wrong, this one says the list does not cover it. Reading it as a peer of the real issues
   would invite people to pick it first. */
.choices--hatch {
  grid-template-columns: 1fr;
  max-width: 46rem;
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.choice--catch-all {
  background: transparent;
  border-style: dashed;
}

.choice--catch-all:hover {
  background: var(--surface);
  border-style: solid;
}

.choice--catch-all .choice__icon {
  color: var(--text-faint);
}

.choice {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 0.95rem;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.16s var(--ease), background-color 0.16s var(--ease);
}

.choice:hover {
  background: var(--surface-hover);
  border-color: var(--brand-edge);
}

.choice__icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--r-sm);
  background: var(--surface-inset);
  border: 1px solid var(--line);
  color: var(--brand-bright);
}

.choice__text {
  display: block;
  min-width: 0;
}

.choice__title {
  display: block;
  font-weight: 560;
  letter-spacing: -0.008em;
}

.choice__blurb {
  display: block;
  margin-top: 0.15rem;
  color: var(--text-muted);
  font-size: 0.895rem;
  line-height: 1.5;
}

.choice__note {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.4rem;
  color: var(--text-faint);
  font-size: 0.78rem;
}

.choice__note .icon {
  color: var(--indigo);
}

.choice__meta {
  color: var(--text-faint);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.choice__arrow {
  color: var(--text-faint);
  transition: color 0.16s var(--ease), transform 0.16s var(--ease);
}

.choice:hover .choice__arrow {
  color: var(--brand-bright);
  transform: translateX(2px);
}

/* ── Cards, panels, layout ─────────────────────────────────────────────────── */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20rem;
  align-items: start;
  gap: 1.25rem;
}

.layout__main,
.layout__aside {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.layout__aside {
  position: sticky;
  top: 76px;
}

.card {
  padding: clamp(1.15rem, 2.4vw, 1.6rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}

.card--quiet {
  background: var(--bg-raised);
  box-shadow: none;
}

.card--suggest {
  border-color: var(--brand-edge);
  background: linear-gradient(var(--brand-wash), var(--brand-wash)), var(--surface);
}

.card__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card__title .icon {
  color: var(--brand);
  flex: none;
}

.card__lede {
  margin-top: 0.4rem;
  color: var(--text-muted);
  font-size: 0.925rem;
}

.card__body {
  margin-top: 0.6rem;
  color: var(--text-muted);
  font-size: 0.935rem;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 1rem;
}

.panel {
  padding: 1.4rem;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.panel__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.panel__title .icon {
  color: var(--brand);
}

.panel__body {
  margin: 0.6rem 0 1.1rem;
  color: var(--text-muted);
  font-size: 0.935rem;
}

.numbered {
  counter-reset: n;
  display: grid;
  gap: 0.65rem;
  margin-top: 0.9rem;
  color: var(--text-muted);
  font-size: 0.935rem;
}

.numbered li {
  counter-increment: n;
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.6rem;
  align-items: start;
}

.numbered li::before {
  content: counter(n);
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: var(--r-pill);
  background: var(--brand-wash);
  border: 1px solid var(--brand-edge);
  color: var(--brand-bright);
  font-size: 0.75rem;
  font-weight: 700;
}

.numbered--tight {
  font-size: 0.9rem;
}

.bullets {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.8rem;
  color: var(--text-muted);
  font-size: 0.935rem;
}

.bullets li {
  padding-left: 1.1rem;
  position: relative;
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}

.prose {
  display: grid;
  gap: 1rem;
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.62rem 1.05rem;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 560;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease),
    color 0.15s var(--ease), transform 0.1s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--brand);
  color: var(--brand-ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 6px 18px rgba(124, 92, 255, 0.22);
}

.btn--primary:hover {
  background: var(--brand-bright);
}

.btn--secondary {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn--secondary:hover {
  background: var(--surface-hover);
  border-color: var(--brand-edge);
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn--ghost:hover {
  background: var(--surface);
  color: var(--text);
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ── Forms ─────────────────────────────────────────────────────────────────── */

.form {
  display: grid;
  gap: 1.35rem;
}

.field {
  display: grid;
  gap: 0.3rem;
}

.field__label {
  font-size: 0.9rem;
  font-weight: 580;
  color: var(--text);
}

.field__required,
.field__optional {
  color: var(--text-faint);
  font-weight: 400;
}

.field__hint {
  color: var(--text-muted);
  font-size: 0.855rem;
  line-height: 1.5;
}

.field__note {
  color: var(--text-faint);
  font-size: 0.84rem;
}

.field__error {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  color: var(--bad);
  font-size: 0.855rem;
}

.field__error .icon {
  flex: none;
  margin-top: 0.15em;
}

.input {
  width: 100%;
  padding: 0.62rem 0.75rem;
  background: var(--surface-inset);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--text);
  font: inherit;
  font-size: 0.9375rem;
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease);
}

.input::placeholder {
  color: var(--text-faint);
}

.input:hover {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line-strong));
}

.input:focus {
  border-color: var(--brand);
  outline: 2px solid var(--brand-bright);
  outline-offset: 1px;
}

.input--area {
  resize: vertical;
  min-height: 8rem;
  line-height: 1.6;
}

.field--error .input {
  border-color: var(--bad);
}

.select {
  position: relative;
}

.select select {
  appearance: none;
  padding-right: 2.25rem;
}

.select__arrow {
  position: absolute;
  right: 0.7rem;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  color: var(--text-faint);
  pointer-events: none;
}

.file {
  width: 100%;
  padding: 0.75rem;
  background: var(--surface-inset);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.9rem;
}

.file::file-selector-button {
  margin-right: 0.75rem;
  padding: 0.4rem 0.8rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}

.file::file-selector-button:hover {
  border-color: var(--brand-edge);
}

.fieldset-group {
  display: grid;
  gap: 0.85rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--line);
}

.section__legend {
  padding-top: 0.9rem;
  font-size: 0.9rem;
  font-weight: 580;
}

.section__legend-note {
  color: var(--text-faint);
  font-weight: 400;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
}

.radios {
  display: grid;
  gap: 0.5rem;
}

.radio {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  background: var(--surface-inset);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease);
}

.radio:hover {
  border-color: var(--brand-edge);
}

.radio__input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.radio__mark {
  margin-top: 0.18em;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.radio__input:checked + .radio__mark {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 4px var(--brand);
}

.radio__input:focus-visible + .radio__mark {
  outline: 2px solid var(--brand-bright);
  outline-offset: 2px;
}

.radio:has(.radio__input:checked) {
  border-color: var(--brand-edge);
  background: var(--brand-wash);
}

.radio__label {
  display: block;
  font-size: 0.925rem;
  font-weight: 540;
}

.radio__hint {
  display: block;
  color: var(--text-muted);
  font-size: 0.855rem;
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  padding-top: 0.35rem;
}

.form__fineprint {
  color: var(--text-faint);
  font-size: 0.82rem;
}

/* The honeypot. Off-screen rather than display:none, so a bot that filters on
   the latter still fills it in. Never focusable, never announced. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--surface-inset);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.summary__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
}

.summary__row dt {
  color: var(--text-faint);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.summary__row dd {
  margin: 0;
  font-size: 0.925rem;
  font-weight: 540;
}

.summary__change {
  font-size: 0.875rem;
}

/* ── Code Slots ────────────────────────────────────────────────────────────── */

/* A device/one-time code entered as a row of boxes, backed by one real `.input`.
   See server/views/components.mjs `codeSlots()` for the markup and help.js for the sync
   and animation logic.

   THE NO-JS BASELINE IS THE PLAIN INPUT. `.code-slots__display` stays `display: none` and
   `.code-slots__input` keeps every rule `.input` already has until help.js adds
   `.code-slots--ready` — so with script blocked or broken this is indistinguishable from
   any other text field on the site, and still submits the same value under the same name. */
.code-slots {
  position: relative;
}

.code-slots__display {
  display: none;
}

.code-slots--ready .code-slots__input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 0;
  border-color: transparent;
  background: transparent;
  color: transparent;
  caret-color: transparent;
}

/* The input keeps real keyboard focus; its own focus ring is invisible once it is
   transparent, so the ring is drawn on the decorative row beside it instead. */
.code-slots--ready .code-slots__input:focus {
  outline: none;
}

.code-slots__input:focus-visible ~ .code-slots__display {
  border-radius: var(--r-sm);
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--brand-bright);
}

.code-slots--ready .code-slots__display {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.code-slots__slot {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.7rem;
  background: var(--surface-inset);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 650;
  color: var(--text);
  text-transform: uppercase;
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease);
}

/* The group boundary (KDMX-7QRT) is a gap, not a literal dash — it keeps the row one flat
   list of slots, which is what lets the drain animation below stagger with plain CSS. */
.code-slots__slot--group-end {
  margin-right: 0.55rem;
}

.code-slots__slot[data-active="true"] {
  border-color: var(--brand);
}

/* The optional blinking caret in the active (next-empty) slot. */
.code-slots__slot[data-active="true"]::after {
  content: "";
  position: absolute;
  width: 1.5px;
  height: 1.2rem;
  background: var(--brand-bright);
  animation: code-slots-caret 1s step-end infinite;
}

@keyframes code-slots-caret {
  0%,
  50% {
    opacity: 1;
  }
  50.01%,
  100% {
    opacity: 0;
  }
}

/* A character lands — typed, or arriving from outside as a paste or autofill. Suppressed
   during the error drain below so the two animations never fight over the same slot. */
.code-slots:not(.code-slots--error) .code-slots__slot[data-filled="true"] {
  background: var(--brand-wash);
  border-color: var(--brand-edge);
  animation: code-slots-fill 0.22s var(--ease) both;
}

@keyframes code-slots-fill {
  0% {
    transform: translateY(-0.4rem) scale(0.9);
    opacity: 0.3;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Error: the server rendered this page because what was typed did not match — the one
   real check, in deviceRoutes.mjs, unchanged. The field is already blank (the server never
   re-sends a rejected code), so every slot is shown generically filled for one frame and
   then drains away, last to first, under a danger tint: "wrong, try again", without ever
   redisplaying what was typed. */
.code-slots--draining .code-slots__slot[data-filled="true"] {
  animation: code-slots-drain 0.5s var(--ease) both;
}

@keyframes code-slots-drain {
  0% {
    transform: scale(1);
    opacity: 1;
    background: var(--bad-wash);
    border-color: var(--bad);
  }
  60% {
    transform: scale(0.92);
    opacity: 0.55;
    background: var(--bad-wash);
    border-color: var(--bad);
  }
  100% {
    transform: scale(1);
    opacity: 1;
    background: var(--surface-inset);
    border-color: var(--line-strong);
  }
}

.code-slots--draining .code-slots__slot:nth-last-child(1) {
  animation-delay: 0ms;
}
.code-slots--draining .code-slots__slot:nth-last-child(2) {
  animation-delay: 45ms;
}
.code-slots--draining .code-slots__slot:nth-last-child(3) {
  animation-delay: 90ms;
}
.code-slots--draining .code-slots__slot:nth-last-child(4) {
  animation-delay: 135ms;
}
.code-slots--draining .code-slots__slot:nth-last-child(5) {
  animation-delay: 180ms;
}
.code-slots--draining .code-slots__slot:nth-last-child(6) {
  animation-delay: 225ms;
}
.code-slots--draining .code-slots__slot:nth-last-child(7) {
  animation-delay: 270ms;
}
.code-slots--draining .code-slots__slot:nth-last-child(8) {
  animation-delay: 315ms;
}
.code-slots--draining .code-slots__slot:nth-last-child(9) {
  animation-delay: 360ms;
}
.code-slots--draining .code-slots__slot:nth-last-child(10) {
  animation-delay: 405ms;
}

/* Submitting: an honest "this is locked while the server checks it" — never a claim that
   the code was right. A wrong code re-renders this same page in the same dimmed markup
   until fresh HTML replaces it, so nothing here gets ahead of the one real answer. */
.code-slots--submitting .code-slots__slot {
  opacity: 0.55;
}

/* ── Notices ───────────────────────────────────────────────────────────────── */

.notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  font-size: 0.925rem;
  color: var(--text-muted);
}

.notice__icon {
  margin-top: 0.1rem;
}

.notice__title {
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.notice__body > p + p,
.notice__list {
  margin-top: 0.35rem;
}

.notice__list {
  display: grid;
  gap: 0.25rem;
  padding-left: 1.1rem;
  list-style: disc;
}

.notice--info {
  border-color: var(--brand-edge);
  background: linear-gradient(var(--brand-wash), var(--brand-wash)), var(--surface);
}

.notice--info .notice__icon {
  color: var(--brand-bright);
}

.notice--success {
  border-color: color-mix(in srgb, var(--good) 40%, transparent);
  background: linear-gradient(var(--good-wash), var(--good-wash)), var(--surface);
}

.notice--success .notice__icon {
  color: var(--good);
}

.notice--warning {
  border-color: color-mix(in srgb, var(--warn) 40%, transparent);
  background: linear-gradient(var(--warn-wash), var(--warn-wash)), var(--surface);
}

.notice--warning .notice__icon {
  color: var(--warn);
}

.notice--error {
  border-color: color-mix(in srgb, var(--bad) 45%, transparent);
  background: linear-gradient(var(--bad-wash), var(--bad-wash)), var(--surface);
}

.notice--error .notice__icon {
  color: var(--bad);
}

.notice--error a {
  color: var(--text);
}

/* ── Badges ────────────────────────────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.6rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: var(--surface-inset);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge--progress {
  border-color: var(--brand-edge);
  background: var(--brand-wash);
  color: var(--brand-bright);
}

.badge--good {
  border-color: color-mix(in srgb, var(--good) 45%, transparent);
  background: var(--good-wash);
  color: var(--good);
}

.badge--attention {
  border-color: color-mix(in srgb, var(--warn) 45%, transparent);
  background: var(--warn-wash);
  color: var(--warn);
}

.badge--bad {
  border-color: color-mix(in srgb, var(--bad) 45%, transparent);
  background: var(--bad-wash);
  color: var(--bad);
}

.badge--muted {
  color: var(--text-faint);
}

/* ── Articles (self-help) ──────────────────────────────────────────────────── */

.article {
  margin-top: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-inset);
  overflow: hidden;
}

.article__summary {
  padding: 0.85rem 1rem;
  cursor: pointer;
  list-style: none;
}

.article__summary::-webkit-details-marker {
  display: none;
}

.article__summary::before {
  content: "+";
  float: right;
  color: var(--brand-bright);
  font-size: 1.1rem;
  line-height: 1.2;
}

.article[open] .article__summary::before {
  content: "−";
}

.article__title {
  display: block;
  font-weight: 560;
}

.article__hint {
  display: block;
  margin-top: 0.15rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.article__steps {
  counter-reset: s;
  display: grid;
  gap: 0.55rem;
  padding: 0 1rem 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.article__steps li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 1.35rem 1fr;
  gap: 0.55rem;
}

.article__steps li::before {
  content: counter(s) ".";
  color: var(--brand-bright);
  font-weight: 700;
  font-size: 0.82rem;
  padding-top: 0.1em;
}

/* ── Ticket page ───────────────────────────────────────────────────────────── */

.ticket__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.ticket__id {
  color: var(--brand-bright);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.ticket__subject {
  margin-top: 0.2rem;
  font-size: 1.3rem;
  font-weight: 620;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.ticket__status-note {
  margin-top: 0.6rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.ticket__body {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.ticket__body p + p {
  margin-top: 0.75rem;
}

.details {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.details__row {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.5rem;
  align-items: baseline;
  font-size: 0.885rem;
}

.details__row dt {
  color: var(--text-faint);
}

.details__row dd {
  margin: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.events {
  display: grid;
  gap: 1.1rem;
  margin-top: 1rem;
}

.event {
  position: relative;
  padding-left: 1.75rem;
}

/* The connecting rail down the timeline. Drawn on the item rather than as a
   pseudo-element on the list so the last event does not trail into nothing. */
.event:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0.6rem;
  top: 1.6rem;
  bottom: -1.1rem;
  width: 1px;
  background: var(--line);
}

.event__dot {
  position: absolute;
  left: 0;
  top: 0.15rem;
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--surface-inset);
  border: 1px solid var(--line-strong);
  color: var(--text-faint);
}

.event--staff .event__dot {
  border-color: var(--brand-edge);
  background: var(--brand-wash);
  color: var(--brand-bright);
}

.event__line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.event__when {
  color: var(--text-faint);
  font-size: 0.8rem;
}

.event__body {
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.925rem;
}

.event__body p + p {
  margin-top: 0.6rem;
}

.event__note {
  margin-top: 0.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-faint);
  font-size: 0.82rem;
}

.event--meta .event__line {
  color: var(--text-muted);
}

.attachments {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.attachment {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  background: var(--surface-inset);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 0.9rem;
}

.attachment__icon {
  color: var(--text-faint);
}

.attachment__name {
  overflow-wrap: anywhere;
}

.attachment__size {
  color: var(--text-faint);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

/* ── Empty state ───────────────────────────────────────────────────────────── */

.empty {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  padding: 3rem 1.5rem;
  text-align: center;
  background: var(--bg-raised);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
}

.empty__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-faint);
}

.empty__title {
  font-weight: 600;
}

.empty__body {
  max-width: 32rem;
  color: var(--text-muted);
  font-size: 0.925rem;
}

.empty .btn {
  margin-top: 0.5rem;
}

/* ── Footer ────────────────────────────────────────────────────────────────── */

.footer {
  margin-top: var(--band);
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
  background: var(--bg-raised);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.footer__note {
  color: var(--text-faint);
  font-size: 0.865rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__links a {
  color: var(--text-muted);
  font-size: 0.865rem;
  text-decoration: none;
}

.footer__links a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* ── The ecosystem directory ───────────────────────────────────────────────────
 *
 * Sits above the footer's own links and is separated from them by a rule, because
 * these are links OUT of Nova.Help into the rest of Nova, and the row below is
 * navigation within it. Conflating the two is how a footer becomes a wall of
 * eighteen indistinguishable links. */
.ecosystem {
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.ecosystem__heading {
  margin: 0 0 0.7rem;
  color: var(--text-faint);
  font-size: 0.78rem;
  font-weight: 560;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ecosystem__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.45rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ecosystem__item a {
  color: var(--text-muted);
  font-size: 0.895rem;
  text-decoration: none;
}

.ecosystem__item a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* A product's own website, when it has one. Quieter than the support link beside
   it: on a support site, "help with this" is the more useful of the two. */
.ecosystem__site {
  margin-left: 0.5rem;
  color: var(--text-faint) !important;
  font-size: 0.8rem !important;
}

.footer__discord {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.865rem;
  text-decoration: none;
}

.footer__discord:hover {
  color: var(--brand);
}

/* ── Nova Account ──────────────────────────────────────────────────────────── */

/* The account control sits at the far right of the masthead, after "Check a ticket",
   because that is where a person looks for themselves. It is a chip rather than a
   button: the header offers an account, it does not demand one, and a filled primary
   button in the corner would read as the thing you are supposed to do first. */

.masthead__end {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 15rem;
  padding: 0.32rem 0.7rem 0.32rem 0.36rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 550;
  text-decoration: none;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.account-chip:hover {
  background: var(--surface-hover);
  border-color: var(--brand-edge);
}

.account-chip--guest {
  padding-left: 0.7rem;
  color: var(--text-muted);
}

.account-chip--guest:hover {
  color: var(--text);
}

.account-chip__avatar {
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: var(--r-pill);
  background: var(--brand);
  color: var(--brand-ink);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

.account-chip__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn--sm {
  padding: 0.42rem 0.75rem;
  font-size: 0.875rem;
}

/* ── "How would you like to continue?" ─────────────────────────────────────── */

/* Two options, weighted the same. The account is listed first because it is the better
   choice for a repeat reporter, but the guest option is the same size in the same box:
   the moment one of them looks like the small print, the form has started asking people
   to register before it will help them. */

.continue {
  padding: 1rem 1.1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-inset);
}

.continue__title {
  margin: 0 0 0.75rem;
  font-size: 0.975rem;
  font-weight: 600;
}

.continue__options {
  display: grid;
  gap: 0.5rem;
}

.continue__option {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

a.continue__option:hover {
  border-color: var(--brand-edge);
  background: var(--surface-hover);
}

.continue__option--account .continue__icon {
  color: var(--brand-bright);
}

.continue__icon {
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 0.05rem;
  color: var(--text-muted);
}

.continue__text {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.continue__label {
  font-weight: 570;
  line-height: 1.35;
}

.continue__hint {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

.continue__arrow {
  flex: none;
  align-self: center;
  margin-left: auto;
  color: var(--text-faint);
}

.continue__or {
  margin: 0;
  color: var(--text-faint);
  font-size: 0.85rem;
  text-align: center;
  text-transform: lowercase;
}

/* ── "Filing as" (the signed-in contact block) ─────────────────────────────── */

.filing-as {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-inset);
}

.filing-as__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--r-pill);
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 700;
}

.filing-as__text {
  min-width: 0;
}

.filing-as__name {
  margin: 0;
  font-weight: 570;
}

.filing-as__email {
  margin: 0.1rem 0 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

.filing-as__link {
  flex: none;
  margin-left: auto;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* ── The account's ticket list ─────────────────────────────────────────────── */

.mines {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
}

.mine__link {
  display: grid;
  gap: 0.2rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-inset);
  color: var(--text);
  text-decoration: none;
}

.mine__link:hover {
  border-color: var(--brand-edge);
  background: var(--surface-hover);
}

.mine__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.mine__id {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.mine__subject {
  font-weight: 570;
  line-height: 1.35;
}

.mine__meta {
  color: var(--text-faint);
  font-size: 0.85rem;
}

/* ── Federated sign-in ─────────────────────────────────────────────────────── */

/* The provider buttons sit above the password fields and are deliberately full
   width and quiet-surfaced rather than brand-filled: they are one of two equal
   ways in, not the recommended one, and a solid violet button here would make the
   form below it look like the fallback. */

.providers {
  display: grid;
  gap: 0.5rem;
}

.provider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.68rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 550;
  text-decoration: none;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.provider:hover {
  background: var(--surface-hover);
  border-color: var(--brand-edge);
}

.provider__glyph {
  flex: none;
}

/* A rule with the word sitting in the gap, rather than a bare centred "or". */
.providers__or {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.15rem 0;
  color: var(--text-faint);
  font-size: 0.85rem;
}

.providers__or::before,
.providers__or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ── Sign-in methods on the account page ───────────────────────────────────── */

.connections {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 0.9rem;
  padding: 0;
  list-style: none;
}

.connection {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-inset);
}

.connection__glyph {
  display: grid;
  place-items: center;
  flex: none;
  color: var(--text-muted);
}

.connection__text {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.connection__name {
  font-size: 0.9375rem;
  font-weight: 560;
}

.connection__state {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.connection form {
  margin-left: auto;
}

.connection__note {
  margin-left: auto;
  color: var(--text-faint);
  font-size: 0.82rem;
  white-space: nowrap;
}

.card__body--fine {
  color: var(--text-faint);
  font-size: 0.85rem;
}

/* ── What an app is asking for ─────────────────────────────────────────────────
 *
 * The permission list on /account/device. Set at full body size and full contrast
 * on purpose: this is the text somebody is being asked to make a decision about,
 * and a permission list styled as fine print is a permission list nobody reads.
 * The tick marks are decorative — every line is a thing the app WILL be able to
 * do, so nothing is being distinguished, only listed. */
.scopes {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
}

.scopes__item {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  line-height: 1.5;
}

.scopes__item .icon {
  flex: none;
  margin-top: 0.15rem;
  color: var(--brand);
}

/* ── Responsive ────────────────────────────────────────────────────────────── */

/* Below the fold of a phone the masthead has room for the wordmark, the two links and an
   avatar, but not for a name as well. The avatar keeps its accessible label. */
@media (max-width: 34rem) {
  .account-chip .account-chip__text {
    display: none;
  }

  .account-chip {
    padding: 0.32rem;
  }

  .account-chip--guest {
    padding: 0.32rem 0.6rem;
  }

  .account-chip--guest .account-chip__text {
    display: inline;
  }

  .filing-as {
    flex-wrap: wrap;
  }

  .filing-as__link {
    margin-left: 0;
  }
}

@media (max-width: 60rem) {
  .layout {
    grid-template-columns: 1fr;
  }

  .layout__aside {
    position: static;
  }
}

@media (max-width: 40rem) {
  .wrap,
  .wrap.narrow {
    width: min(100% - 1.75rem, var(--wrap));
  }

  .masthead__inner {
    height: 54px;
  }

  .steps__label {
    display: none;
  }

  .steps {
    gap: 0.4rem 0.75rem;
  }

  .choice {
    grid-template-columns: auto 1fr auto;
  }

  .choice__meta {
    display: none;
  }

  .ticket__head {
    flex-direction: column;
  }

  .details__row {
    grid-template-columns: 5.5rem 1fr;
  }

  .form__actions .btn {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Windows high-contrast: borders that were colour-only must become real edges. */
@media (forced-colors: active) {
  .btn,
  .card,
  .choice,
  .product,
  .notice,
  .badge {
    border: 1px solid;
  }
}


/* Nova i18n: on phones the header wraps into two rows - brand, language and account on top, the
   nav links beneath - rather than squeezing the language selector in beside them. */
@media (max-width: 560px) {
  .masthead__inner { flex-wrap: wrap; row-gap: .35rem; padding-block: .5rem; height: auto; min-height: 60px; }
  .masthead__inner .wordmark { margin-right: auto; }
  .masthead__end { display: contents; }
  .masthead__end .nova-lang-slot, .masthead__end .account-chip { order: 2; }
  .masthead__nav { order: 3; flex: 1 0 100%; gap: 1rem; }
}
