/* ============================================================================
   Amberpane — the platform design system.  Direction: Aperture, v1.0.

   This is the ONE stylesheet every server-rendered page links. It carries the
   tokens, the reset and the component vocabulary, and it is deliberately the
   same vocabulary the marketing site uses (amberpane_website/assets/css) so
   that the signed-in product and the site read as one system.

   These are the PLATFORM's own tokens. They are NOT white-label slots.
   The white-label slots are player.css / player2.css's --primary, --accent,
   --bg …, which export.apply_branding() writes over per brand profile. The
   two files share ten names on purpose — that shared contract is the brand's
   white-label promise — but nothing in here is ever themed by a customer.

   The brand is carried by STRUCTURE, so colour can be taken away without the
   design falling apart:
     · one border weight (1px), 2px radius on controls, 0 on containers
     · two elevation levels — flat, and one modal shadow. No card shadows.
     · flat warm paper. No gradients, no textures, no illustration behind text
     · the aperture notch (12px, 1px, ink, top-right) at most once per view
     · status is an 8px square or a mono caps pill, never an icon, never emoji
     · numbers and machine strings are always mono
   ========================================================================= */

/* ---------------------------------------------------------------- tokens -- */
:root {
  /* Amber ramp — hue held 48-62deg, chroma peaks at 600. Splits at 600:
     below is text-and-UI safe, above is light. Amber is LIGHT, NOT PAINT. */
  --amber-100: #FDF6EA;   /* surface only        1.0:1 */
  --amber-200: #FAE9CB;   /* fills only          1.1:1 */
  --amber-300: #F5D69F;   /* fills only          1.3:1 */
  --amber-400: #EFBC6A;   /* borders             1.6:1 */
  --amber-500: #E0921F;   /* accent / light      2.1:1 */
  --amber-600: #C0761A;   /* large text only     3.2:1 */
  --amber-700: #8A4B12;   /* primary        AA+  7.1:1 */
  --amber-800: #6F3B0D;   /* hover          AAA  9.6:1 */
  --amber-900: #472509;   /* on-amber text      13.1:1 */
  --amber-bright: #FFC96B;/* dark-mode accent, dark-page spotlight */

  /* Neutrals */
  --ink-900: #191512;
  --ink-700: #4A423B;
  --ink-500: #6F665C;
  --ink-300: #A69C8F;
  --ink-200: #C4B9A8;
  --paper: #F6F2EA;
  --paper-raised: #FFFDF8;
  --paper-sunk: #EDE6D9;
  --rule: #E4DCCE;
  --rule-soft: #EFE9DE;
  --rule-dashed: #DCD2C2;
  --ink-plate: #191512;
  --ink-plate-raised: #1D1915;

  /* Semantic. Success is pine green and is NEVER derived from an accent: in
     the player amber means "look here" and green means "you were right". */
  --pine-600: #2E6B4F;
  --pine-400: #4FA97C;
  --brick-600: #A3372A;
  --brick-400: #E4705C;

  /* The ten-name contract. */
  --primary: var(--amber-700);
  --primary-hover: var(--amber-800);
  --accent: var(--amber-500);
  --background: var(--paper);
  --surface: var(--paper-raised);
  --text: var(--ink-900);
  --muted: var(--ink-500);
  --border: var(--rule);
  --success: var(--pine-600);
  --error: var(--brick-600);

  /* Derived — never authored in a brand profile. */
  --surface-2: var(--paper-sunk);
  --border-soft: var(--rule-soft);
  --text-soft: var(--ink-700);
  --on-primary: var(--paper-raised);
  --on-ink: var(--paper);
  --on-ink-muted: #BCB2A5;
  --disabled-bg: #E8E2D6;
  --disabled-text: var(--ink-300);
  --pill-draft-bg: #EFE7D8;
  --pill-draft-text: #6F4B15;
  --focus-ring: 0 0 0 2px var(--background), 0 0 0 4px var(--primary);
  --shadow-modal: 0 8px 24px -12px rgba(25, 21, 18, .28);
  --header-bg: rgba(246, 242, 234, .96);
  --skeleton: #F1EBDF;

  /* Type. Instrument Serif for display and exactly one title per view;
     Plex Sans 400/500/600 for interface; Plex Mono 400/500 for anything
     countable. Mono is base identity, not a swappable profile slot. */
  --font-display: "Instrument Serif", Georgia, serif;
  --font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;  /* the heaviest weight in the system */

  --type-display: 64px;
  --type-h1: 36px;
  --type-h2: 22px;
  --type-h3: 16px;
  --type-body: 15px;
  --type-small: 13px;
  --type-label: 11px;

  /* A 4px lattice — and nothing between the steps. */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 20px;
  --s6: 24px; --s7: 32px; --s8: 48px; --s9: 80px;

  --radius-control: 2px;
  --radius-container: 0;
  --line: 1px;
  --border-active: 2px;
  --notch: 12px;

  --hit-app: 36px;
  --hit-player: 44px;
  --gutter-app: var(--s7);
  --gutter-catalog: var(--s5);
  --gutter-modal: var(--s6);
  --content: 1320px;

  /* Motion settles, never bounces. */
  --ease-settle: cubic-bezier(.2, .8, .2, 1);
  --ease-travel: cubic-bezier(.45, .05, .25, 1);
  --ease-exit: cubic-bezier(.4, 0, 1, 1);
  --ease-hold: linear;
  --dur-control: 80ms;
  --dur-cross: 160ms;
  --dur-enter: 240ms;
  --dur-step: 420ms;
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur-control: 0ms; --dur-cross: 0ms; --dur-enter: 0ms; --dur-step: 0ms; }
}

/* ------------------------------------------------------------------ base -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--type-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body, button, input, select, textarea { font-family: var(--font-sans); }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
p, h1, h2, h3, h4, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; }
a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--primary-hover); }
strong, b { font-weight: var(--weight-semibold); }
code, kbd, samp, pre { font-family: var(--font-mono); }
hr { border: 0; border-top: var(--line) solid var(--border); margin: var(--s6) 0; }

/* Exactly one display title per view. h1 is that title; everything below it is
   interface, and interface is Plex Sans. */
h1 {
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  font-size: var(--type-h1);
  line-height: 1.1;
  letter-spacing: -.01em;
  text-wrap: balance;
}
h2 { font-size: var(--type-h2); line-height: 1.28; letter-spacing: -.005em; font-weight: var(--weight-semibold); }
h3 { font-size: var(--type-h3); line-height: 1.4; font-weight: var(--weight-semibold); }

/* The focus ring is identical on every control in the system. */
:focus-visible { outline: none; box-shadow: var(--focus-ring); }
::selection { background: var(--amber-300); color: var(--text); }

.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; }
.hidden { display: none !important; }

/* ------------------------------------------------------------ typography -- */
/* Mono caps read as machine output rather than shouting — the only place caps
   are allowed. */
.label {
  font-family: var(--font-mono);
  font-size: var(--type-label);
  line-height: 1.35;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.label--sm { font-size: 10px; letter-spacing: .1em; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.tnum { font-variant-numeric: tabular-nums; }
.display { font-family: var(--font-display); font-weight: var(--weight-regular);
           font-size: var(--type-display); line-height: 1.02; letter-spacing: -.015em; }
.lead { color: var(--text-soft); font-size: 17px; line-height: 1.55; max-width: 54ch; }
.small { font-size: var(--type-small); line-height: 1.55; }
.muted { color: var(--muted); }
.measure { max-width: 68ch; }

/* ----------------------------------------------------------------- brand -- */
/* The mark is built from boxes, not an SVG: a pane whose top-right corner is
   opened, with the cursor's landing dot inside. It scales from --mark-size and
   takes its frame from currentColor, so one construction works on paper, on
   ink, and inside a customer's own chrome. */
.brand-mark {
  --mark-size: 24px;
  --mark-stroke: calc(var(--mark-size) / 16);
  position: relative;
  flex: none;
  width: var(--mark-size);
  height: var(--mark-size);
  border: var(--mark-stroke) solid currentColor;
}
.brand-mark::before {
  content: ""; position: absolute;
  top: calc(var(--mark-stroke) * -1); right: calc(var(--mark-stroke) * -1);
  width: calc(var(--mark-size) * .35); height: calc(var(--mark-size) * .35);
  border-top: var(--mark-stroke) solid var(--accent);
  border-right: var(--mark-stroke) solid var(--accent);
}
.brand-mark::after {
  content: ""; position: absolute;
  left: calc(var(--mark-size) * .12); bottom: calc(var(--mark-size) * .12);
  width: calc(var(--mark-size) * .2); height: calc(var(--mark-size) * .2);
  background: currentColor;
}
/* On an ink ground the opened corner takes the bright step, which is the only
   amber that holds up against #191512. */
.brand-lockup--inverse .brand-mark::before,
.brand-mark--inverse::before { border-color: var(--amber-bright); }

.brand-lockup {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text); flex: none;
}
.brand-lockup:hover { color: var(--text); }
.brand-word {
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  font-size: 25px;
  line-height: 1;
  letter-spacing: 0;      /* the wordmark is set lowercase at 0 tracking */
}
.brand-lockup--inverse { color: var(--on-ink); }
.brand-lockup--sm .brand-mark { --mark-size: 18px; }
.brand-lockup--sm .brand-word { font-size: 19px; }

/* ----------------------------------------------------------------- notch -- */
/* The signature detail: the mark's open corner repeated as chrome. 12px, 1px,
   ink, in the top-right border. AT MOST ONE ELEMENT PER VIEW. It is what a
   returning user recognises when every colour has been replaced. */
.notched { position: relative; }
.notched::before, .notched::after { content: ""; position: absolute; z-index: 2; background: var(--text); }
.notched::before { top: -1px; right: -1px; width: var(--notch); height: 1px; }
.notched::after  { top: -1px; right: -1px; width: 1px; height: var(--notch); }

/* --------------------------------------------------------------- buttons -- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: var(--hit-app);
  padding: 9px var(--s4);
  font-size: 14px;
  font-weight: var(--weight-medium);
  line-height: 1.25;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  border: var(--line) solid transparent;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--text);
  transition: background var(--dur-control) var(--ease-settle),
              border-color var(--dur-control) var(--ease-settle),
              color var(--dur-control) var(--ease-settle);
}
/* Nothing scales or lifts on press — hover darkens, and that is all. */
.button--primary   { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.button--primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--on-primary); }
.button--secondary { border-color: var(--text); color: var(--text); }
.button--secondary:hover { background: var(--surface-2); }
.button--tertiary  { border-color: var(--border); color: var(--muted); }
.button--tertiary:hover { background: var(--surface-2); color: var(--text); }
.button--ghost     { color: var(--primary); padding: 9px var(--s1); }
.button--ghost:hover { color: var(--primary-hover); background: transparent; text-decoration: underline; }
.button--danger    { border-color: var(--error); color: var(--error); }
.button--danger:hover { background: var(--surface-2); }
.button--light     { border-color: var(--on-ink); color: var(--on-ink); }
.button--light:hover { background: var(--ink-plate-raised); }
.button--sm { min-height: 30px; padding: 6px 11px; font-size: 13px; }
.button--lg { min-height: 48px; padding: 13px 22px; font-size: 15px; }
.button--block { width: 100%; }
.button[disabled], .button.is-disabled {
  background: var(--disabled-bg); border-color: var(--disabled-bg);
  color: var(--disabled-text); cursor: default;
}
.button[disabled]:hover, .button.is-disabled:hover {
  background: var(--disabled-bg); border-color: var(--disabled-bg); color: var(--disabled-text);
}

/* ---------------------------------------------------------------- fields -- */
/* Field labels are mono caps: they are machine labels for a slot, not prose. */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: var(--s4); }
.field-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.field-hint { font-size: 12px; line-height: 1.5; color: var(--muted); }
.field-error { font-size: 12px; line-height: 1.5; color: var(--error); }
.field.is-invalid .field-label { color: var(--error); }
.field.is-invalid .input { border-color: var(--error); }

.input, .select, .textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.4;
  color: var(--text);
  background: var(--background);
  border: var(--line) solid var(--border);
  border-radius: var(--radius-control);
  padding: 9px 10px;
  min-height: var(--hit-app);
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-300); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; background: var(--surface); border-color: var(--text);
  box-shadow: var(--focus-ring);
}
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.input--mono, .textarea--mono { font-family: var(--font-mono); }
.textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.input[disabled], .select[disabled], .textarea[disabled] {
  background: var(--disabled-bg); color: var(--disabled-text); cursor: not-allowed;
}
/* The only glyph in the system that stands in for an icon: ▾ */
.select {
  appearance: none; -webkit-appearance: none;
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236F665C' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.checkbox-row { display: flex; align-items: flex-start; gap: var(--s2); font-size: var(--type-small); color: var(--text-soft); }
.checkbox-row input[type="checkbox"] { accent-color: var(--primary); margin-top: 2px; }

/* ------------------------------------------------------- surfaces / cards -- */
/* Depth is a border's job. There are no card shadows in this system. */
.panel {
  background: var(--surface);
  border: var(--line) solid var(--border);
  border-radius: var(--radius-container);
  padding: var(--s5);
}
.panel--flush { padding: 0; }
.panel--dashed { border-style: dashed; border-color: var(--rule-dashed); background: transparent; }
.panel-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s4);
  padding-bottom: var(--s3); margin-bottom: var(--s4);
  border-bottom: var(--line) solid var(--border);
}
.panel-title { font-size: var(--type-h3); font-weight: var(--weight-semibold); line-height: 1.4; }
.panel-sub { font-size: var(--type-small); line-height: 1.55; color: var(--text-soft); }
.rule { border-top: var(--line) solid var(--border); }
.rule-soft { border-top: var(--line) solid var(--border-soft); }

/* -------------------------------------------------------- status, pills --- */
/* Status is a square or a mono pill. Never a glyph, never a circle, never an
   emoji — and the four text glyphs (✓ ○ ✕ ▾/▴) are the only exceptions. */
.pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  line-height: 1.4;
  padding: 3px 7px;
  white-space: nowrap;
  border: var(--line) solid var(--border);
  color: var(--muted);
  background: transparent;
}
.pill--success { border-color: var(--success); color: var(--success); }
.pill--error   { border-color: var(--error);   color: var(--error); }
.pill--draft   { border-color: var(--pill-draft-bg); color: var(--pill-draft-text); background: var(--pill-draft-bg); }
.pill--solid   { border-color: var(--text); background: var(--text); color: var(--background); }

.dot { display: inline-block; width: 8px; height: 8px; flex: none; }
.dot--published { background: var(--success); }
.dot--recording { background: var(--accent); }
.dot--error     { background: var(--error); }
.dot--idle      { background: transparent; border: var(--line) solid var(--muted); }
.status-row { display: inline-flex; align-items: center; gap: var(--s2); font-size: var(--type-small); }

.chip {
  font-size: 13px; line-height: 1.3; padding: 6px 12px;
  border: var(--line) solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface); color: var(--text);
  white-space: nowrap; cursor: pointer;
  transition: background var(--dur-control) var(--ease-settle);
}
.chip:hover { background: var(--surface-2); }
.chip.is-active { background: var(--text); border-color: var(--text); color: var(--background); }
.chip-count { opacity: .7; margin-left: 6px; }

.progress { height: 2px; background: var(--border); overflow: hidden; }
.progress > i { display: block; height: 100%; width: 0; background: var(--accent);
                transition: width var(--dur-enter) var(--ease-hold); }
.progress--success > i { background: var(--success); }

/* ------------------------------------------------------------- messages --- */
/* Errors name the cause and the fix. Never "something went wrong". A message
   is a left rule and a line of prose — not a tinted box with an icon. */
.notice {
  padding: var(--s3) var(--s4);
  border-left: 2px solid var(--border);
  background: var(--surface-2);
  color: var(--text-soft);
  font-size: var(--type-small);
  line-height: 1.55;
}
.notice--error   { border-left-color: var(--error); }
.notice--success { border-left-color: var(--success); }
.notice--accent  { border-left-color: var(--accent); }

.error-panel {
  border: var(--line) solid var(--error);
  padding: var(--s4) var(--s5);
  display: flex; flex-direction: column; gap: 9px;
}
.error-panel-title { font-size: 15px; font-weight: var(--weight-semibold); color: var(--error); }
.error-panel-body  { font-size: var(--type-small); line-height: 1.55; color: var(--text-soft); }
.error-panel-meta  { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }

.inline-status { display: flex; gap: var(--s2); align-items: flex-start;
                 font-size: var(--type-small); line-height: 1.5; color: var(--success); }
.inline-status--error { color: var(--error); }
.inline-status--muted { color: var(--muted); }

.empty {
  border: var(--line) dashed var(--rule-dashed);
  padding: var(--s6) var(--s5);
  display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
}
.empty .brand-mark { --mark-size: 26px; color: var(--ink-300); }
.empty .brand-mark::before { border-color: var(--ink-200); }
.empty-title { font-size: 15px; font-weight: var(--weight-semibold); }
.empty-body  { font-size: var(--type-small); line-height: 1.55; color: var(--muted); }

/* ---------------------------------------------------------- modal, toast -- */
/* The system's only shadow. */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: var(--s6);
  background: rgba(25, 21, 18, .34);
}
.modal {
  background: var(--surface);
  border: var(--line) solid #D8CFBE;
  box-shadow: var(--shadow-modal);
  max-width: 460px; width: 100%;
  max-height: calc(100vh - var(--s8));
  display: flex; flex-direction: column;
  animation: ap-settle var(--dur-enter) var(--ease-settle);
}
.modal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s4);
  padding: var(--s5) var(--gutter-modal);
  border-bottom: var(--line) solid var(--border);
}
.modal-title { font-family: var(--font-display); font-weight: var(--weight-regular);
               font-size: 24px; line-height: 1.15; }
.modal-body { padding: var(--s5) var(--gutter-modal); display: flex; flex-direction: column;
              gap: var(--s3); overflow: auto; }
.modal-foot { padding: var(--s4) var(--gutter-modal); border-top: var(--line) solid var(--border);
              display: flex; gap: 10px; justify-content: flex-end; }
.modal-close { background: none; border: 0; padding: 0; cursor: pointer;
               font-size: 16px; line-height: 1; color: var(--muted); }
.modal-close:hover { color: var(--text); }

.toast {
  background: var(--ink-plate); color: var(--paper);
  padding: var(--s3) 14px;
  display: flex; gap: 10px; align-items: center;
  font-size: var(--type-small); line-height: 1.4;
  animation: ap-settle var(--dur-enter) var(--ease-settle);
}
.toast .dot--published { background: var(--pine-400); }
.toast .dot--error { background: var(--brick-400); }

/* ------------------------------------------------------------- skeleton --- */
.skeleton { background: var(--skeleton); position: relative; overflow: hidden; height: 10px; }
.skeleton::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 30%;
  background: linear-gradient(90deg, rgba(255,253,248,0), rgba(255,253,248,.8), rgba(255,253,248,0));
  animation: ap-sweep 1.6s linear infinite;
}

@keyframes ap-settle { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes ap-sweep  { from { transform: translateX(-120%); } to { transform: translateX(420%); } }
@keyframes ap-pulse  { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.06); } }

@media (prefers-reduced-motion: reduce) {
  .skeleton::after, .toast, .modal { animation: none; }
}

/* ------------------------------------------------------------ app chrome -- */
/* Paper, not an ink ground. The top bar is the only surface allowed a
   full-size serif lockup, because no captured screen is present. */
.site-header.scrolled { border-bottom-color: var(--ink-200); }
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(1.4) blur(6px);
  border-bottom: var(--line) solid var(--border);
}
.nav-wrap {
  max-width: var(--content);
  min-height: 64px;
  padding: var(--s3) var(--gutter-app);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s6);
}
.nav-right { display: flex; align-items: center; gap: var(--s6); }
/* Active nav is a 2px ink underline — the one border weight that means
   "selected" everywhere else in the system. Never a fill, never a colour. */
.nav-link {
  font-size: 14px; color: var(--muted); text-decoration: none; white-space: nowrap;
  padding-bottom: 3px; border-bottom: var(--border-active) solid transparent;
  transition: color var(--dur-control) var(--ease-settle);
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--text); font-weight: var(--weight-medium); border-bottom-color: var(--text); }

.page {
  max-width: var(--content);
  padding: var(--s7) var(--gutter-app) var(--s8);
}
.page--narrow { max-width: 760px; }
.page-head { display: flex; flex-direction: column; gap: var(--s2); margin-bottom: var(--s6); }
.page-head .label { margin-bottom: 2px; }
.page-sub { color: var(--text-soft); font-size: var(--type-body); max-width: 62ch; }

/* The sign-in family: one centred card on flat paper. */
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center;
        padding: var(--s6); }
.auth-card {
  background: var(--surface);
  border: var(--line) solid var(--border);
  padding: var(--s7) var(--s7) var(--s6);
  width: 100%; max-width: 380px;
}
.auth-card .brand-lockup { margin-bottom: var(--s2); }
.auth-tag { color: var(--text-soft); font-size: var(--type-small); margin-bottom: var(--s6); }
.auth-alt { text-align: center; color: var(--muted); font-size: var(--type-small); margin-top: var(--s5); }
.auth-forgot { text-align: right; font-size: 12px; margin: calc(var(--s2) * -1) 0 var(--s4); }
.auth-card > .notice { margin-bottom: var(--s4); }
.auth-card .field:last-of-type { margin-bottom: var(--s5); }

@media (max-width: 900px) {
  :root { --gutter-app: var(--s6); }
  .nav-wrap { gap: var(--s4); }
  .nav-right { gap: var(--s4); }
}
@media (max-width: 640px) {
  :root { --gutter-app: var(--s5); --type-h1: 30px; }
  .nav-wrap { min-height: 56px; }
  .site-header .brand-lockup .brand-word { display: none; }
  .auth-card { padding: var(--s6) var(--s5) var(--s5); }
}
