/* GMP console. Plain CSS, no build, light only; mobile first. docs/console-redesign-plan.md §7. */
:root {
  /* A: gmp-website/src/app/globals.css :root, verbatim (tested). */
  --color-navy-950: #071a2b;
  --color-navy-900: #092338;
  --color-navy-800: #0b2f45;
  --color-ocean-700: #06698a;
  --color-ocean-600: #087ea4;
  --color-ocean-500: #0a92bd;
  --color-ocean-100: #d6ecf3;
  --color-steel-600: #52697a;
  --color-steel-500: #60798b;
  --color-steel-300: #a7b8c3;
  --color-steel-200: #cfdae1;
  --color-mist-100: #e8f0f4;
  --color-mist-50: #f4f8fa;
  --color-ink-900: #10212c;
  --color-ink-700: #33454f;
  --color-harbour-500: #e86a33;

  --space-unit: 8px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --header-height: 4.5rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 180ms;
  --duration: 320ms;
  --duration-slow: 520ms;

  /* B: console-only (plan §3). No colour outside :root (tested). */
  --color-white: #fff;
  --color-focus-on-dark: #ffb08a;
  --color-ok: #137333;
  --color-warn: #8a6100;
  --color-ok-bg: rgba(19, 115, 51, 0.1);
  --color-warn-bg: rgba(138, 97, 0, 0.12);
  --color-ok-border: rgba(19, 115, 51, 0.3);
  --color-warn-border: rgba(138, 97, 0, 0.3);
  --color-error: #b91c1c;
  --color-error-bg: #fef2f2;
  --color-error-border: rgba(185, 28, 28, 0.3);
  --color-border-strong: rgba(7, 26, 43, 0.25);
  --color-rule-strong: rgba(7, 26, 43, 0.2);
  --color-rule: rgba(7, 26, 43, 0.1);
  --color-on-dark-muted: rgba(232, 240, 244, 0.75);
  --color-snippet-title: #1a0dab;
  --color-snippet-url: #006621;
  --shadow-header: 0 1px 0 0 rgba(96, 121, 139, 0.18);
  --shadow-menu: 0 8px 24px rgba(7, 26, 43, 0.18);
  --radius-control: 10px;
  --radius-xs: 6px;
  --radius-pill: 999px;
  --space-1: 0.25rem; --space-1-5: 0.375rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem;
  --text-xs: 0.75rem; --text-sm: 0.875rem; --text-ui: 0.9375rem; --text-base: 1rem; --text-lede: 1.0625rem;
  --leading-relaxed: 1.625;
  --tap: 44px;
  --stack: 1.25rem;
  --gutter: 1rem; /* per breakpoint */
  --font-sans: "Manrope", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}

/* Vendored (fonts/OFL.txt): nothing is fetched from Google. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/Manrope-Variable.101877a7a906.woff2") format("woff2");
}

/* == base */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--color-mist-50); color: var(--color-ink-900);
  font: 400 var(--text-base)/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3 { margin: 0; color: var(--color-navy-950); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; }
p { margin: 0 0 0.75rem; }
a { color: var(--color-ocean-700); text-underline-offset: 0.2em; }
a:hover { color: var(--color-navy-950); }
:lang(ko) { word-break: keep-all; }
/* ko/nl rules from globals.css */
html[lang="ko"] { --font-sans: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", "Manrope", system-ui, sans-serif; }
html[lang="ko"] body { line-height: 1.75; overflow-wrap: anywhere; }
html[lang="ko"] :is(h1, h2, h3) { letter-spacing: -0.01em; line-height: 1.28; }
html[lang="nl"] { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
[id] { scroll-margin-top: calc(var(--header-height) + 1rem); }
:focus-visible { outline: 3px solid var(--color-harbour-500); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: var(--color-focus-on-dark); }
.display-2 { font-size: clamp(1.75rem, 2.8vw + 0.5rem, 2.75rem); }
.display-3 { font-size: clamp(1.375rem, 1.2vw + 0.9rem, 1.75rem); }
.eyebrow {
  margin: 0 0 0.5rem; color: var(--color-ocean-700);
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
}
.eyebrow--steel { color: var(--color-steel-600); }
html[lang="ko"] :is(.eyebrow, .nav__label, .nav__group > summary) { font-size: 0.8125rem; letter-spacing: 0.08em; }
.muted { color: var(--color-steel-600); font-size: var(--text-sm); }
.break-safe { overflow-wrap: anywhere; }
.pre-line { white-space: pre-line; overflow-wrap: anywhere; }
.error, .messages, .nav, .rows, .status-list, .links, .stack { margin: 0; padding: 0; list-style: none; }
.visually-hidden, .topbar .back-to-site__label {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 20; padding: 0.75rem 1rem; border-radius: var(--radius-xs);
  background: var(--color-harbour-500); color: var(--color-navy-950); font-weight: 600;
}
.skip-link:focus { top: 1rem; color: var(--color-navy-950); }

/* == buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: var(--tap); padding: 0.75rem 1.25rem;
  border: 1px solid transparent; border-radius: var(--radius-control);
  background: var(--color-navy-950); color: var(--color-white);
  font: 600 var(--text-ui)/1.2 var(--font-sans); text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
}
.btn:hover { background: var(--color-navy-800); color: var(--color-white); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn--block { width: 100%; padding: 0.875rem 1.5rem; font-size: var(--text-base); }
.btn--secondary { background: transparent; color: var(--color-navy-950); border-color: var(--color-border-strong); }
.btn--secondary:hover { background: var(--color-mist-50); border-color: var(--color-navy-950); color: var(--color-navy-950); }
.btn--ghost { background: transparent; color: var(--color-ocean-700); }
.btn--ghost:hover { background: transparent; color: var(--color-navy-950); }
.btn--small { padding: 0.5rem 0.875rem; }
.inline-form { display: inline; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 1.5rem; }
.stack-l > .actions { margin: 0; }
.actions--sticky {
  position: sticky; bottom: 0; z-index: 5; gap: 0.5rem; padding: 0.5rem 0.5rem calc(0.5rem + env(safe-area-inset-bottom));
  border: 1px solid var(--color-steel-200); border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--color-white);
}
.actions--sticky .btn { padding-inline: 1rem; }

/* == fields */
.field { margin: 0 0 1.25rem; min-width: 0; }
.field label, .field legend {
  display: block; margin: 0 0 0.375rem; padding: 0;
  color: var(--color-navy-950); font-size: var(--text-sm); font-weight: 600;
}
fieldset.field { border: 0; padding: 0; }
.field :is(input[type="text"], input[type="email"], input[type="password"], input[type="search"],
  input[type="url"], input[type="number"], select, textarea) {
  display: block; width: 100%; min-height: var(--tap); padding: 0.75rem 0.875rem;
  border: 1px solid var(--color-steel-500); border-radius: var(--radius-control); /* 4.56:1 (D1) */
  background: var(--color-white); color: var(--color-ink-900);
  font: 400 var(--text-base)/1.4 var(--font-sans); /* 16px: no iOS zoom */
}
.field textarea { min-height: 7rem; resize: vertical; }
.field ::placeholder { color: var(--color-steel-500); }
.field :is(input, select, textarea):focus { border-color: var(--color-ocean-600); }
.field [aria-invalid="true"] { border-color: var(--color-error); }
.field.field--invalid { padding-left: 0.75rem; box-shadow: inset 3px 0 0 var(--color-error); }
.field :disabled { background: var(--color-mist-50); color: var(--color-ink-700); cursor: not-allowed; }
.hint { margin: 0.375rem 0 0; color: var(--color-steel-600); font-size: var(--text-sm); }
.error { margin: 0.375rem 0 0; color: var(--color-error); font-size: var(--text-sm); font-weight: 500; }
.field label:has(.counter) { display: flex; justify-content: space-between; gap: 0.75rem; }
.counter { float: right; color: var(--color-steel-600); font-size: 0.8125rem; font-weight: 500; }
.counter--over { color: var(--color-error); }
.choices { display: grid; gap: 0.25rem; }
.choices label, .check {
  display: flex; align-items: center; gap: 0.625rem; min-height: var(--tap); margin: 0;
  color: var(--color-ink-900); font-size: var(--text-ui); font-weight: 600; cursor: pointer;
}
.choices input, .check input { width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--color-navy-950); }

/* == notices */
.notice {
  margin: 0; padding: 1rem; border: 1px solid var(--color-ocean-100);
  border-radius: var(--radius-control); background: var(--color-white); font-size: var(--text-ui);
}
.card .notice { margin-bottom: 1rem; }
.notice p:last-child { margin: 0; }
.notice--error { border-color: var(--color-error-border); background: var(--color-error-bg); color: var(--color-error); box-shadow: inset 3px 0 0 var(--color-error); }
.notice--success { border-color: var(--color-ok-border); background: var(--color-ok-bg); color: var(--color-ok); box-shadow: inset 3px 0 0 var(--color-ok); }
.notice--warning { border-color: var(--color-warn-border); background: var(--color-warn-bg); color: var(--color-warn); box-shadow: inset 3px 0 0 var(--color-warn); }
.messages { display: grid; gap: 0.75rem; }
.pill {
  display: inline-block; padding: 0.125rem 0.625rem; border: 1px solid var(--color-ok-border); border-radius: var(--radius-pill);
  background: var(--color-ok-bg); color: var(--color-ok); font-size: 0.8125rem; font-weight: 600; line-height: 1.5; white-space: nowrap;
}
.pill--warn { border-color: var(--color-warn-border); background: var(--color-warn-bg); color: var(--color-warn); }

/* == cards */
.card {
  min-width: 0; margin: 0; padding: var(--space-5);
  border: 1px solid var(--color-steel-200); border-radius: var(--radius-lg); background: var(--color-white);
}
.card > h2 { margin: 0 0 1rem; }
.card > h2:has(+ .section-note) { margin-bottom: 0.5rem; }
.card h3 { margin: 1.25rem 0 0.5rem; font-size: var(--text-base); }
.card--tint { border-color: var(--color-ocean-100); background: var(--color-mist-50); }
.card--dark { border-color: var(--color-navy-950); background: var(--color-navy-950); color: var(--color-mist-100); }
.card--dark :is(h2, h3, strong) { color: var(--color-white); }
.card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 1rem; }
.card__head h2 { margin: 0; }
.shell > main, .stack-l { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--stack); align-content: start; }
.empty { margin: 0; padding: 2rem 1.25rem; border: 1px dashed var(--color-steel-300); border-radius: var(--radius-control); background: var(--color-mist-50); color: var(--color-steel-600); text-align: center; }
.empty p:last-child { margin: 0; }

/* == header + shell */
.topbar { position: sticky; top: 0; z-index: 10; padding-top: env(safe-area-inset-top); background: var(--color-white); box-shadow: var(--shadow-header); }
.topbar__inner, .shell { width: 100%; max-width: 80rem; margin: 0 auto; padding-inline: var(--gutter); }
.topbar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; min-height: var(--header-height); }
.logo { display: inline-flex; align-items: center; gap: 0.6rem; min-height: var(--tap); text-decoration: none; }
.logo__text { display: flex; flex-direction: column; gap: 0.15rem; line-height: 1; letter-spacing: -0.02em; }
.logo__name { color: var(--color-navy-950); font-size: 1.05rem; font-weight: 800; }
.logo__sub { color: var(--color-steel-500); font-size: 0.5625rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.logo__text--light .logo__name { color: var(--color-white); }
.logo__text--light .logo__sub { color: var(--color-steel-200); }
/* One 72px row; the full bar from 1024px. */
.topbar .logo__text, .topbar .logo__sub, .topbar__logout, .topbar__name { display: none; }
.topbar__user { display: flex; align-items: center; gap: 0.25rem; }
.topbar__name {
  max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--color-ink-700); font-size: var(--text-ui); font-weight: 600;
}
.menu__logout { margin: 0.5rem 0 0; padding-top: 0.75rem; border-top: 1px solid var(--color-steel-200); }
.menu__logout .btn { white-space: normal; }
.lang-switch__group { display: inline-flex; border: 1px solid var(--color-border-strong); border-radius: var(--radius-control); overflow: hidden; }
.lang-switch button {
  min-width: 36px; min-height: var(--tap); padding: 0 0.5rem; border: 0;
  background: var(--color-white); color: var(--color-navy-950);
  font: 600 var(--text-sm)/1 var(--font-sans); letter-spacing: 0.025em; cursor: pointer;
}
.lang-switch button + button { border-left: 1px solid var(--color-steel-200); }
.lang-switch button:hover { background: var(--color-mist-50); }
.lang-switch button[aria-pressed="true"] { background: var(--color-navy-950); color: var(--color-white); }
.back-to-site {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem;
  min-width: var(--tap); min-height: var(--tap); padding: 0 0.5rem; border-radius: var(--radius-control);
  color: var(--color-ocean-700); font-size: var(--text-sm); font-weight: 600; text-decoration: none; white-space: nowrap;
}
.back-to-site:hover { color: var(--color-navy-950); background: var(--color-mist-50); }
.logo svg, .back-to-site svg { flex: none; }
.login__tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin: 1rem 0 0; }
.menu { position: relative; }
summary::-webkit-details-marker { display: none; }
.menu > summary {
  display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 0.875rem;
  border: 1px solid var(--color-border-strong); border-radius: var(--radius-control);
  color: var(--color-navy-950); font-size: var(--text-ui); font-weight: 600; cursor: pointer;
}
.menu[open] > summary { background: var(--color-mist-50); border-color: var(--color-navy-950); }
.menu__panel {
  position: absolute; right: 0; top: calc(100% + 0.5rem); width: min(20rem, calc(100vw - 2rem));
  max-height: calc(100vh - var(--header-height) - 1rem); overflow-y: auto; padding: 0.5rem 0.75rem 0.75rem;
  border: 1px solid var(--color-steel-200); border-radius: var(--radius-lg); background: var(--color-white); box-shadow: var(--shadow-menu);
}
.menu__panel .nav li + li { border-top: 1px solid var(--color-steel-200); }
.shell { padding-block: var(--space-6) var(--space-12); }
.sidenav { display: none; }
.nav a, .nav button {
  display: flex; align-items: center; width: 100%; min-height: var(--tap); padding: 0.5rem 0.75rem;
  border: 0; border-radius: var(--radius-xs); background: none; color: var(--color-ink-700);
  font: 600 var(--text-ui)/1.3 var(--font-sans); text-align: left; text-decoration: none; cursor: pointer;
}
.nav a:hover, .nav button:hover { background: var(--color-mist-50); color: var(--color-navy-950); }
.nav a[aria-current="page"] { background: var(--color-mist-100); color: var(--color-navy-950); box-shadow: inset 3px 0 0 var(--color-ocean-600); }
.nav__label, .nav__group > summary {
  display: flex; align-items: center; color: var(--color-steel-600);
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
}
.nav__label { padding: 1rem 0.75rem 0.25rem; }
.nav__group { margin: 0.75rem 0 0; padding-top: 0.75rem; border-top: 1px solid var(--color-steel-200); }
.nav__group > summary { gap: 0.5rem; min-height: var(--tap); padding: 0 0.75rem; cursor: pointer; }
.nav__group > summary::after { content: ""; border-block: 4px solid transparent; border-left: 5px solid; }
.nav__group[open] > summary::after { transform: rotate(90deg); }
.page-head { margin: 0 0 0.25rem; }
.page-head h1 { margin: 0 0 0.5rem; }
.page-head__intro { max-width: 40rem; margin: 0.25rem 0 0; color: var(--color-ink-700); font-size: var(--text-lede); line-height: var(--leading-relaxed); }
.section-title { margin: 0.75rem 0 0; }
.back, .page-head__back { display: inline-flex; align-items: center; gap: 0.375rem; min-height: var(--tap); font-weight: 600; }
.back { justify-self: start; font-size: var(--text-ui); }
.page-head__back { margin-block: -0.75rem; }
.page-head__back::before { content: "←"; }

/* == dashboard */
.grid { display: grid; gap: var(--space-5); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; margin: 0 0 1rem; }
.stats div { padding: 0.75rem 0.5rem; border-radius: var(--radius-sm); background: var(--color-mist-50); text-align: center; }
.stats dt { color: var(--color-steel-600); font-size: var(--text-xs); font-weight: 600; text-wrap: balance; }
.stats dd { margin: 0; color: var(--color-navy-950); font-size: 1.75rem; font-weight: 800; line-height: 1.2; }
.stored-only { margin: 0 0 1rem; color: var(--color-steel-600); font-size: var(--text-sm); }
.stored-only.warn { padding: 0.5rem 0.75rem; border-radius: var(--radius-control); background: var(--color-warn-bg); color: var(--color-warn); font-weight: 600; box-shadow: inset 3px 0 0 var(--color-warn); }
.rows > li, .status-list li { padding: 0.75rem 0; border-top: 1px solid var(--color-steel-200); }
.rows a { font-weight: 600; }
.rows .muted { display: block; }
/* Recent rows: 44px link, date below, pill at the end. */
.rows--recent > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 0.75rem; padding: 0.25rem 0 0.5rem; }
.rows--recent .row-link { display: flex; align-items: center; min-height: var(--tap); }
.rows--recent .pill { grid-area: 1 / 2 / 3; }
.status-list li { display: grid; gap: 0.25rem 1rem; }
.status-list .pill { white-space: normal; }
.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 0.75rem; }
.links .btn, .links form { display: flex; width: 100%; }
/* == inbox */
.filters, .filters__row { display: grid; gap: 0.75rem; align-items: end; margin: 0; }
.filters .field, .filters .actions { margin: 0; }
.table-wrap { display: none; }
.card.table-wrap { padding: 0.5rem; }
.table { width: 100%; border-collapse: collapse; color: var(--color-ink-700); font-size: var(--text-sm); }
.table th { padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--color-rule-strong); color: var(--color-navy-950); font-weight: 600; text-align: left; hyphens: manual; }
.table td { padding: 0.75rem; border-bottom: 1px solid var(--color-rule); vertical-align: top; overflow-wrap: anywhere; }
.table tr:last-child td { border-bottom: 0; }
.table a { font-weight: 600; }
/* The name link covers its row. */
.table tbody tr { position: relative; }
.table tbody tr:hover { background: var(--color-mist-50); }
.row-link { color: var(--color-navy-950); text-decoration: none; }
.row-link:hover { text-decoration: underline; }
.table .row-link::after { content: ""; position: absolute; inset: 0; }
.table .row-link:focus-visible { outline: 0; }
.table .row-link:focus-visible::after { outline: 3px solid var(--color-harbour-500); outline-offset: -3px; border-radius: 4px; }
.stack { display: grid; gap: 0.75rem; }
/* Mobile cards: title and pill, meta below. */
.stack a.card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.25rem 0.75rem; align-items: start; color: inherit; text-decoration: none; }
.stack a.card:hover { border-color: var(--color-navy-950); }
.stack a.card > * { grid-column: 1 / -1; }
.stack a.card > strong { grid-column: 1; }
.stack a.card > .pill { grid-area: 1 / 2; }
.stack strong { color: var(--color-navy-950); }
.facts { display: grid; gap: 0.75rem; margin: 0; }
.facts div { min-width: 0; }
.facts dt { color: var(--color-steel-600); font-size: 0.8125rem; font-weight: 600; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.line-item > h3 { margin: 0 0 0.75rem; font-size: var(--text-xs); }
.line-item .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.line-item .facts .wide { grid-column: 1 / -1; }
.message-body { max-width: 40rem; margin: 0; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem; }

/* == site info */
.site-layout { display: grid; gap: var(--space-5); }
.site-layout > * { min-width: 0; }
.section-note { margin: 0 0 1.25rem; color: var(--color-steel-600); font-size: var(--text-sm); }
.langs { display: grid; gap: 0 1.5rem; }
.lang { min-width: 0; padding-top: 0.75rem; border-top: 1px solid var(--color-steel-200); }
.lang__title { margin: 0 0 0.75rem; }
.lang__note { margin: 0 0 1rem; color: var(--color-steel-600); font-size: var(--text-sm); }
.preview { display: grid; gap: 1rem; align-content: start; }
.preview > * { margin: 0; }
.footer-mock, .snippet { font-size: var(--text-sm); line-height: var(--leading-relaxed); }
.footer-mock .pre-line { color: var(--color-on-dark-muted); }
.footer-mock p { margin: 0 0 0.5rem; }
.snippet__title { margin: 0 0 0.25rem; color: var(--color-snippet-title); font-size: 1.125rem; font-weight: 500; }
.snippet__url { margin: 0 0 0.25rem; color: var(--color-snippet-url); }

/* == services, pages, navigation */
.section-note--after { margin: 1rem 0 0; }
.field textarea.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: var(--text-sm); }

/* == login */
.login-page { display: flex; min-height: 100vh; min-height: 100svh; align-items: center; justify-content: center; padding: 2rem 1.25rem; }
.login { width: 100%; max-width: 28rem; }
.login .logo { margin: 0 0 1.25rem; }
.login .card { padding: 1.5rem; }
.login .muted { color: var(--color-ink-700); font-size: var(--text-ui); line-height: var(--leading-relaxed); }
.login h1 { margin: 0 0 0.75rem; }

/* == media queries */
@media (min-width: 360px) {
  :root { --gutter: 1.25rem; }
  .filters__row { grid-template-columns: minmax(0, 1fr) auto; }
  .topbar__user { gap: 0.5rem; }
  .lang-switch button { min-width: 40px; }
  .stats dd { font-size: 2rem; }
}

@media (min-width: 420px) {
  .topbar .logo__text { display: flex; }
}

@media (min-width: 640px) {
  :root { --gutter: 1.5rem; }
  .card { padding: var(--space-6); }
  .shell { padding-block: var(--space-8) 4rem; }
  .topbar .logo__sub { display: block; }
  .table-wrap { display: block; overflow-x: auto; }
  .stack--mobile { display: none; }
  .filters { grid-template-columns: minmax(0, 1fr) auto; }
  .filters__row { grid-template-columns: 12rem auto; }
  .pagination { justify-content: space-between; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .status-list li { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .line-item .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .login .card { padding: 2rem; }
}

@media (min-width: 1024px) {
  :root { --gutter: 2.5rem; --stack: 1.5rem; }
  .topbar__user { gap: 0.75rem; }
  .topbar__name { display: inline; }
  .topbar__logout { display: inline; }
  .topbar .back-to-site__label { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; }
  .menu { display: none; }
  .shell { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: var(--space-10); padding-block: var(--space-10) 4rem; }
  .sidenav { display: block; position: sticky; top: calc(var(--header-height) + 1.5rem); align-self: start; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--aside { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
  .langs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-layout { grid-template-columns: minmax(0, 1fr) 20rem; align-items: start; }
  .lang + .lang { padding-left: 1.5rem; border-left: 1px solid var(--color-steel-200); }
  .preview { position: sticky; top: calc(var(--header-height) + 1.5rem); max-height: calc(100vh - var(--header-height) - 3rem); overflow: auto; }
}

@media (min-width: 1280px) {
  :root { --gutter: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
