/* anytool's styles. Plain CSS, no build step. The design rules are in AGENTS.md ("Design"):
   warm paper neutrals, ink primary, brand blue only for focus and live things, and depth from one
   light source above: things you press are raised, things you fill are inset, things you read are flat.
   Name a token, never a colour, outside the token blocks. */

/* ---------- Fonts: IBM Plex, self-hosted ---------- */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/static/fonts/plex-sans.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/static/fonts/plex-sans-italic.woff2") format("woff2");
  font-weight: 100 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/static/fonts/plex-mono.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/static/fonts/plex-mono-medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  /* Surfaces: warm paper, drawn from the logo keycap's off-white (#ece6d6). */
  --background: #fcfbf8;
  --subtle: #f6f4ef; /* sidebar, dialog footers */
  --surface: #fffefb; /* menus, dialogs, field faces */
  --sunken: #efece5; /* inset tracks, code, secrets */
  --hover: rgb(46 38 20 / 0.05);
  /* Text: the logo's ink, then warm greys */
  --foreground: #16181d;
  --foreground-2: #3b3d44;
  --muted-foreground: #6e6a62;
  --faint: #9e998f;
  --border: #e5e1d7;
  --border-soft: #eeebe4;
  /* Ink primary; blue means live (focus, selection) and nothing else. */
  --primary: #16181d;
  --primary-foreground: #fcfbf8;
  --brand: #1d8af7;
  --brand-soft: rgb(29 138 247 / 0.12);
  /* Status */
  --success-surface: #dcfce7;
  --success-foreground: #166534;
  --warning-surface: #fef3c7;
  --warning-foreground: #92400e;
  --destructive: #dc2626;
  --destructive-foreground: #ffffff;

  /* Depth: one light source, above. */
  --hl: rgb(255 255 255 / 0.95);
  --edge: rgb(46 38 20 / 0.12);
  --edge-strong: rgb(46 38 20 / 0.2);
  --drop: rgb(46 38 20 / 0.08);
  --raised-bg: linear-gradient(180deg, #fffefb 0%, #f7f5f0 100%);
  --primary-bg: linear-gradient(180deg, #33363e 0%, #16181d 100%);
  --danger-bg: linear-gradient(180deg, #e5484d 0%, #d02626 100%);
  --sh-raised: 0 0 0 1px var(--edge), 0 1px 2px var(--drop), inset 0 1px 0 var(--hl), inset 0 -1px 0 rgb(46 38 20 / 0.04);
  --sh-raised-hover: 0 0 0 1px var(--edge-strong), 0 1px 2px var(--drop), inset 0 1px 0 var(--hl);
  --sh-pressed: 0 0 0 1px var(--edge-strong), inset 0 1px 2px rgb(46 38 20 / 0.12);
  --sh-primary: 0 0 0 1px #0b0c0f, 0 1px 2px rgb(11 12 15 / 0.3), 0 3px 6px -2px rgb(11 12 15 / 0.24), inset 0 1px 0 rgb(255 255 255 / 0.16), inset 0 -1px 0 rgb(0 0 0 / 0.3);
  --sh-primary-pressed: 0 0 0 1px #0b0c0f, inset 0 1px 3px rgb(0 0 0 / 0.5);
  --sh-danger: 0 0 0 1px #a51d1d, 0 1px 2px rgb(165 29 29 / 0.3), inset 0 1px 0 rgb(255 255 255 / 0.2), inset 0 -1px 0 rgb(0 0 0 / 0.15);
  --sh-danger-pressed: 0 0 0 1px #a51d1d, inset 0 1px 3px rgb(0 0 0 / 0.3);
  --sh-inset: 0 0 0 1px var(--edge-strong), inset 0 1px 2px rgb(46 38 20 / 0.07);
  --sh-inset-focus: 0 0 0 1px var(--brand), 0 0 0 4px var(--focus-halo), inset 0 1px 2px rgb(46 38 20 / 0.05);
  --sh-track: inset 0 1px 2px rgb(46 38 20 / 0.07);
  --sh-float: 0 0 0 1px var(--edge), 0 4px 8px -2px rgb(46 38 20 / 0.08), 0 16px 32px -8px rgb(46 38 20 / 0.18);
  --primary-hover: brightness(1.3);
  --focus: rgb(29 138 247 / 0.6);
  --focus-halo: rgb(29 138 247 / 0.18);
  --scrim: rgb(22 24 29 / 0.28);

  /* Type and layout */
  --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --measure: 40rem;
  --page: 40rem; /* the reading measure, so an ordinary page's content fills its centred column */
  --page-wide: 68rem;
  --sidebar: 14.5rem;
  /* Radii: 3 chips, 5 controls, 8 surfaces, 10 dialogs. Nothing rounder. */
  --r-sm: 3px;
  --r-md: 5px;
  --r-lg: 8px;
  --r-xl: 10px;
  color-scheme: light;
}

/* Dark mode follows the system. Warm charcoal, so the off-white primary reads as the keycap lit in the dark. */
@media (prefers-color-scheme: dark) {
  :root {
    --background: #12110f;
    --subtle: #171613;
    --surface: #1e1c19;
    --sunken: #0c0b0a;
    --hover: rgb(241 237 228 / 0.05);
    --foreground: #f1ede4;
    --foreground-2: #d4cec1;
    --muted-foreground: #a39d91;
    --faint: #746f66;
    --border: rgb(236 230 214 / 0.13);
    --border-soft: rgb(236 230 214 / 0.08);
    --primary: #ece6d6;
    --primary-foreground: #16181d;
    --brand-soft: rgb(29 138 247 / 0.2);
    --success-surface: #052e16;
    --success-foreground: #86efac;
    --warning-surface: #422006;
    --warning-foreground: #fbbf24;
    --destructive: #f87171;
    --destructive-foreground: #ffffff;

    --hl: rgb(255 255 255 / 0.07);
    --edge: rgb(236 230 214 / 0.14);
    --edge-strong: rgb(236 230 214 / 0.23);
    --drop: rgb(0 0 0 / 0.45);
    --raised-bg: linear-gradient(180deg, #26241f 0%, #1f1d1a 100%);
    --primary-bg: linear-gradient(180deg, #f6f2e8 0%, #ddd5c2 100%);
    --danger-bg: linear-gradient(180deg, #f26b6b 0%, #dc3b3b 100%);
    --sh-raised: 0 0 0 1px var(--edge), 0 1px 2px var(--drop), inset 0 1px 0 var(--hl);
    --sh-raised-hover: 0 0 0 1px var(--edge-strong), 0 1px 2px var(--drop), inset 0 1px 0 var(--hl);
    --sh-pressed: 0 0 0 1px var(--edge-strong), inset 0 1px 3px rgb(0 0 0 / 0.5);
    --sh-primary: 0 0 0 1px rgb(246 242 232 / 0.55), 0 1px 2px rgb(0 0 0 / 0.6), 0 3px 8px -2px rgb(0 0 0 / 0.5), inset 0 -1px 0 rgb(22 24 29 / 0.2);
    --sh-primary-pressed: 0 0 0 1px rgb(246 242 232 / 0.45), inset 0 1px 3px rgb(22 24 29 / 0.35);
    --sh-danger: 0 0 0 1px #b42323, 0 1px 2px rgb(0 0 0 / 0.5), inset 0 1px 0 rgb(255 255 255 / 0.2);
    --sh-danger-pressed: 0 0 0 1px #b42323, inset 0 1px 3px rgb(0 0 0 / 0.4);
    --sh-inset: 0 0 0 1px var(--edge-strong), inset 0 1px 2px rgb(0 0 0 / 0.4);
    --sh-inset-focus: 0 0 0 1px var(--brand), 0 0 0 4px var(--focus-halo), inset 0 1px 2px rgb(0 0 0 / 0.4);
    --sh-track: inset 0 1px 2px rgb(0 0 0 / 0.4);
    --sh-float: 0 0 0 1px var(--edge-strong), 0 4px 8px -2px rgb(0 0 0 / 0.4), 0 16px 32px -8px rgb(0 0 0 / 0.6), inset 0 1px 0 var(--hl);
    --primary-hover: brightness(0.96);
    --scrim: rgb(8 7 6 / 0.6);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  border-color: var(--border);
}
html {
  background: var(--background);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.25rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, p, pre, figure { margin: 0; }
h1, h2, h3, h4 {
  text-wrap: balance;
  letter-spacing: -0.011em;
}
h1 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; }
h2 { font-size: 1rem; line-height: 1.5rem; font-weight: 600; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
code, pre, kbd { font-family: var(--font-mono); }
svg.icon { width: 16px; height: 16px; flex-shrink: 0; }
img { display: block; }
form { margin: 0; }

/* Keyboard focus only: a 2px brand-blue outline, offset 2px. Inset fields use a blue edge and halo instead. */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
::selection { background: color-mix(in srgb, var(--brand) 22%, transparent); }

/* Small helpers */
.muted { color: var(--muted-foreground); }
.faint { color: var(--faint); }
.mono { font-family: var(--font-mono); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.measure { max-width: var(--measure); }
.error-text { color: var(--destructive); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Depth ---------- */

/* Raised (1): things you press. Pressing swaps the drop shadow for an inner one; nothing moves. */
.bevel-raised {
  background-image: var(--raised-bg);
  box-shadow: var(--sh-raised);
}
.bevel-raised:hover:not(:disabled) {
  background-image: none;
  background-color: var(--surface);
  box-shadow: var(--sh-raised-hover);
}
.bevel-raised:active:not(:disabled) {
  background-image: none;
  background-color: var(--sunken);
  box-shadow: var(--sh-pressed);
}
/* The same face with no hover or press, for things that show state: the current nav item and tab. */
.bevel-static {
  background-image: var(--raised-bg);
  box-shadow: var(--sh-raised);
}
.bevel-primary {
  background-image: var(--primary-bg);
  box-shadow: var(--sh-primary);
}
.bevel-primary:hover:not(:disabled) { filter: var(--primary-hover); }
.bevel-primary:active:not(:disabled) { filter: none; box-shadow: var(--sh-primary-pressed); }
.bevel-danger {
  background-image: var(--danger-bg);
  box-shadow: var(--sh-danger);
}
.bevel-danger:hover:not(:disabled) { filter: brightness(1.06); }
.bevel-danger:active:not(:disabled) { filter: none; box-shadow: var(--sh-danger-pressed); }

/* Inset (−1): things you fill, and code. */
.inset-field {
  background-color: var(--surface);
  box-shadow: var(--sh-inset);
}
.inset-field:focus-visible {
  outline: none;
  box-shadow: var(--sh-inset-focus);
}
.inset-track {
  background-color: var(--sunken);
  box-shadow: var(--sh-track);
}
.inset-well {
  background-color: var(--sunken);
  box-shadow: inset 0 0 0 1px var(--border-soft);
}

/* Floating (2): dialogs. */
.float {
  background-color: var(--surface);
  box-shadow: var(--sh-float);
}

/* ---------- Shell: sidebar and main column ---------- */

.shell {
  display: flex;
  min-height: 100dvh;
}
.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: var(--sidebar);
  height: 100dvh;
  flex-shrink: 0;
  padding: 12px;
  background: var(--subtle);
  border-right: 1px solid var(--border-soft);
}
.sidebar-brand {
  display: flex;
  align-items: center;
  padding: 4px 6px;
  margin-bottom: 12px;
}
.sidebar-brand img { height: 26px; width: auto; }
.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-group-label {
  padding: 16px 8px 6px;
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--faint);
  white-space: nowrap;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 8px;
  border-radius: var(--r-md);
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  color: var(--muted-foreground);
}
.nav-item:hover { background-color: var(--hover); color: var(--foreground); }
/* The current page is the only raised thing in the sidebar. */
.nav-item[aria-current="page"] {
  background-image: var(--raised-bg);
  box-shadow: var(--sh-raised);
  color: var(--foreground);
}
.sidebar-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-email {
  padding: 0 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--foreground-2);
}
.sidebar-foot .btn { width: 100%; justify-content: flex-start; padding: 0 8px; }

main { flex: 1; min-width: 0; }

/* One centred column; tables that need the room go wide. */
.page {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
  max-width: calc(var(--page) + 64px);
  margin: 0 auto;
  padding: 32px 32px 96px;
}
.page-wide { max-width: calc(var(--page-wide) + 64px); }
.page-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.page-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: var(--measure);
}
.page-title p { color: var(--muted-foreground); }
.section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: var(--measure);
}
.section p { color: var(--muted-foreground); }

/* Phones: the sidebar becomes a bar across the top. */
@media (max-width: 47.99rem) {
  .shell { flex-direction: column; }
  .sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    width: auto;
    height: auto;
    padding: 8px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--border-soft);
  }
  .sidebar-brand { margin: 0 8px 0 0; padding: 0; }
  .nav { flex-direction: row; }
  .nav-group-label, .sidebar-email { display: none; }
  .sidebar-foot { margin: 0 0 0 auto; padding: 0; border: 0; }
  .page { padding: 24px 16px 64px; }
}

/* ---------- Buttons: 28 / 32 / 36 tall, 14/500 ---------- */

.btn {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--r-md);
  background: transparent;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}
.btn:disabled { cursor: not-allowed; opacity: 0.45; }
.btn .icon { pointer-events: none; }
.btn-sm { height: 28px; padding: 0 10px; }
.btn-lg { height: 36px; padding: 0 14px; }
.btn-block { width: 100%; }
/* The ink bevel (off-white in the dark). At most one per screen. */
.btn-primary { color: var(--primary-foreground); background-image: var(--primary-bg); box-shadow: var(--sh-primary); }
.btn-primary:hover:not(:disabled) { filter: var(--primary-hover); }
.btn-primary:active:not(:disabled) { filter: none; box-shadow: var(--sh-primary-pressed); }
/* Raised: the default for everything else. */
.btn-secondary { color: var(--foreground); background-image: var(--raised-bg); box-shadow: var(--sh-raised); }
.btn-secondary:hover:not(:disabled) { background-image: none; background-color: var(--surface); box-shadow: var(--sh-raised-hover); }
.btn-secondary:active:not(:disabled) { background-image: none; background-color: var(--sunken); box-shadow: var(--sh-pressed); }
/* Toolbars, table rows and dismissals. */
.btn-ghost { color: var(--foreground-2); }
.btn-ghost:hover:not(:disabled) { background-color: var(--hover); color: var(--foreground); }
/* Only inside a confirmation. */
.btn-destructive { color: var(--destructive-foreground); background-image: var(--danger-bg); box-shadow: var(--sh-danger); }
.btn-destructive:hover:not(:disabled) { filter: brightness(1.06); }
.btn-destructive:active:not(:disabled) { filter: none; box-shadow: var(--sh-danger-pressed); }
/* Copy swaps its label without the button changing width: both labels share one grid cell. */
.swap { display: inline-grid; }
.swap > * { grid-area: 1 / 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.swap > [hidden] { display: inline-flex; visibility: hidden; }

/* ---------- Fields: inset ---------- */

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.label { font-weight: 500; }
.hint { color: var(--muted-foreground); }
.input {
  width: 100%;
  min-width: 0;
  height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--r-md);
  background-color: var(--surface);
  box-shadow: var(--sh-inset);
  color: var(--foreground);
}
.input::placeholder { color: var(--faint); }
.input:focus-visible { outline: none; box-shadow: var(--sh-inset-focus); }

/* ---------- Badges: 20px, 3px corners, an inset hairline ---------- */

.badge {
  --edge-color: var(--border);
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--r-sm);
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
  white-space: nowrap;
  background-color: var(--sunken);
  color: var(--foreground-2);
  box-shadow: inset 0 0 0 1px var(--edge-color);
}
.badge-success {
  --edge-color: color-mix(in srgb, var(--success-foreground) 18%, transparent);
  background-color: var(--success-surface);
  color: var(--success-foreground);
}
.badge-warning {
  --edge-color: color-mix(in srgb, var(--warning-foreground) 20%, transparent);
  background-color: var(--warning-surface);
  color: var(--warning-foreground);
}
/* The most urgent state is an outline, so it reads differently, not just redder. */
.badge-destructive {
  --edge-color: color-mix(in srgb, var(--destructive) 45%, transparent);
  background-color: transparent;
  color: var(--destructive);
}
.badge-code { font-family: var(--font-mono); font-weight: 400; }
/* Status badges carry a dot, so state never relies on colour alone. */
.badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
}

/* ---------- Tables: rows and hairlines, never a box ---------- */

.table-scroll { overflow-x: auto; }
.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-variant-numeric: tabular-nums;
}
.table th {
  height: 32px;
  padding: 0 8px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--muted-foreground);
  border-bottom: 1px solid var(--border);
}
.table td {
  height: 44px;
  padding: 6px 8px;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-soft);
}
.table th:first-child, .table td:first-child { padding-left: 0; }
.table th:last-child, .table td:last-child { padding-right: 0; }
.table .num { text-align: right; }
.table .actions { text-align: right; white-space: nowrap; width: 1%; }
.table .nowrap { white-space: nowrap; }
.cell-stack { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cell-stack .sub { color: var(--muted-foreground); font-size: 0.75rem; line-height: 1rem; }
.is-off td { color: var(--muted-foreground); }

/* Empty states: one sentence plus the action. */
.empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px 0;
  color: var(--muted-foreground);
}

/* ---------- Code box: a raised frame whose header holds the label and copy action, with the code on a
   raised panel inside it. Like a window: the frame is a darker base, and the panel stands up from it
   towards the light. ---------- */

.code-box {
  min-width: 0;
  padding: 0 4px 4px;
  border-radius: var(--r-lg);
  background-color: var(--sunken);
  box-shadow: var(--sh-raised);
}
.code-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  padding: 0 2px 0 8px;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
/* The copy action reads like the label beside it (12px, muted), not like a button, and appears only
   when you're over or inside the box. It stays visible while it says "Copied", for keyboard focus, and
   always on touch screens, which can't hover. */
.code-box-copy {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  opacity: 0;
  transition: opacity 120ms ease-out;
}
.code-box-copy .swap > * { gap: 4px; }
.code-box-copy svg.icon { width: 14px; height: 14px; }
.code-box-copy:hover { color: var(--foreground); }
.code-box:hover .code-box-copy,
.code-box:focus-within .code-box-copy,
.code-box-copy:has([data-copy-done]:not([hidden])) { opacity: 1; }
@media (hover: none) { .code-box-copy { opacity: 1; } }

.code-box pre {
  padding: 12px;
  overflow-x: auto;
  border-radius: var(--r-md);
  background-image: var(--raised-bg);
  box-shadow: var(--sh-raised);
  font-size: 0.75rem;
  line-height: 1.25rem;
  color: var(--foreground-2);
  white-space: pre-wrap;
  word-break: break-all;
}

/* ---------- Notices: a soft fill, no border ---------- */

.alert {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--r-lg);
  max-width: var(--measure);
}
.alert .icon { margin-top: 2px; }
.alert-warning { background-color: var(--warning-surface); color: var(--warning-foreground); }

/* ---------- Dialog: floating, high on the page, body then a footer shelf ---------- */

.dialog {
  position: fixed;
  top: 15vh;
  margin: 0 auto;
  width: calc(100vw - 32px);
  max-width: 28rem;
  padding: 0;
  border: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  background-color: var(--surface);
  box-shadow: var(--sh-float);
  color: var(--foreground);
}
.dialog[open] { animation: pop-in 160ms ease-out; }
.dialog::backdrop {
  background: var(--scrim);
  animation: fade-in 140ms ease-out;
}
.dialog-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
}
.dialog-body h2 { font-size: 1rem; }
.dialog-body p { color: var(--muted-foreground); }
.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px;
  background-color: var(--subtle);
  border-top: 1px solid var(--border);
}

/* ---------- Sign-in page ---------- */

.auth {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  width: 100%;
  max-width: 24rem;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 64px 16px;
}
.auth-head { display: flex; flex-direction: column; gap: 16px; }
.auth-head img { height: 32px; width: auto; align-self: flex-start; }
.auth-actions { display: flex; flex-direction: column; gap: 24px; }
.stack { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Motion: brief, and only movement and opacity ---------- */

@keyframes fade-in { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
