/* Wathba design tokens (see docs/BRAND.md). IBM Plex is bundled under /fonts (SIL OFL 1.1); nothing loads from other origins. */
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("/fonts/IBMPlexSansArabic-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("/fonts/IBMPlexSansArabic-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("/fonts/IBMPlexSansArabic-SemiBold.ttf") format("truetype"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/IBMPlexMono-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/IBMPlexMono-Medium.ttf") format("truetype"); font-weight: 500 700; font-display: swap; }

:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --sunken: #f5f4f1;
  --ink: #1c1917;
  --muted: #57534e;
  --faint: #736b65;
  --line: #e7e5e4;
  --line-strong: #d6d3d1;
  --brand: #ff5b05;          /* fills with dark foreground only */
  --brand-hover: #e04e00;
  --brand-ink: #201000;
  --brand-tint: #fff2eb;     /* derived: brand at 8% on white, for "waiting for you" */
  --accent: #c2400a;         /* AA text/link tone on light surfaces */
  --accent-hover: #a83708;
  --success: #15803d;
  --success-surface: #f0fdf4;
  --warning: #a16207;
  --warning-surface: #fefce8;
  --danger: #b91c1c;
  --danger-surface: #fef2f2;
  --info: #0e7490;
  --info-surface: #ecfeff;
  --radius-s: 6px;
  --radius-m: 12px;
  --font: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --step--1: 0.8125rem;
  --step-0: 0.9375rem;
  --step-1: 1.0625rem;
  --step-2: 1.3125rem;
  --step-3: 1.75rem;
  --bar: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 100%; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-size: var(--step-0); line-height: 1.55; min-height: 100vh; }
:lang(ar) body, body:lang(ar) { line-height: 1.75; }

h1, h2, h3 { margin: 0; line-height: 1.3; font-weight: 600; }
h1 { font-size: var(--step-3); letter-spacing: -0.01em; }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
:lang(ar) h1 { letter-spacing: 0; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { color: var(--accent-hover); }
.num, dd, .money, td.num { font-variant-numeric: tabular-nums; }
.mono, .id { font-family: var(--mono); }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
main:focus, h1:focus { outline: none; }

.skip {
  position: absolute; inset-inline-start: 12px; top: -48px; z-index: 30;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--radius-s);
}
.skip:focus { top: 12px; color: #fff; }

/* Masthead */
.masthead {
  position: sticky; top: 0; z-index: 10; height: var(--bar);
  display: flex; align-items: center; gap: 16px; padding: 0 24px;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; flex: none; }
.brand:hover { color: var(--ink); }
.logo { display: block; height: 34px; width: auto; }
.product { padding-inline-start: 12px; border-inline-start: 1px solid var(--line-strong); font-weight: 500; font-size: var(--step-1); line-height: 1.2; }
.demo-flag {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  color: var(--muted); background: var(--sunken); border: 1px solid var(--line); border-radius: 999px;
  padding: 2px 10px; font-size: var(--step--1); font-weight: 500;
}
.demo-flag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--warning); flex: none; }
.env-tag { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 4px; padding: 1px 7px; white-space: nowrap; }
.tools { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.who { color: var(--muted); font-size: var(--step--1); margin-inline-end: 8px; }

/* Layout */
.frame { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: calc(100vh - var(--bar)); }
.frame:has(.nav[hidden]) { grid-template-columns: minmax(0, 1fr); }
.nav {
  position: sticky; top: var(--bar); align-self: start; height: calc(100vh - var(--bar));
  display: flex; flex-direction: column; gap: 16px; padding: 20px 12px;
  background: var(--surface); border-inline-end: 1px solid var(--line);
}
.nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nav a {
  position: relative; display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px;
  border-radius: var(--radius-s); color: var(--muted); text-decoration: none; font-weight: 500;
}
.nav a svg { width: 18px; height: 18px; flex: none; }
.nav a .label { flex: 1; }
.nav a:hover { background: var(--sunken); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--sunken); color: var(--ink); }
.nav a[aria-current="page"]::before {
  content: ""; position: absolute; inset-inline-start: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--brand);
}
.badge {
  font-size: 0.75rem; font-weight: 600; line-height: 1.6; color: var(--brand-ink); background: var(--brand);
  border-radius: 999px; padding: 0 8px; white-space: nowrap;
}
.nav-foot { margin-top: auto; display: flex; gap: 10px; align-items: center; padding: 14px 8px 0; border-top: 1px solid var(--line); }
.nav-foot img { width: 40px; height: auto; flex: none; }
.nav-foot p { font-size: var(--step--1); color: var(--muted); line-height: 1.45; }

main { padding: 36px 40px 80px; width: 100%; max-width: 1080px; }
.page-head { display: grid; gap: 6px; margin-bottom: 28px; }
.lede { color: var(--muted); max-width: 64ch; }
.fine { color: var(--muted); font-size: var(--step--1); }
.empty {
  color: var(--muted); padding: 20px; text-align: center;
  background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius-m);
}
.loading { color: var(--muted); }
section + section { margin-top: 40px; }
section > h2 { margin-bottom: 14px; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 20px 24px; }
.panel > h2, .panel > h3 { margin-bottom: 14px; }

/* Controls */
button, .button {
  font: inherit; font-weight: 500; min-height: 40px; padding: 0 16px; border-radius: var(--radius-s);
  border: 1px solid transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; text-decoration: none; white-space: nowrap; transition: background-color 0.12s, border-color 0.12s;
}
button:disabled { opacity: 0.55; cursor: not-allowed; }
.primary { background: var(--brand); color: var(--brand-ink); }
.primary:hover:not(:disabled) { background: var(--brand-hover); color: var(--brand-ink); }
.secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.secondary:hover:not(:disabled) { background: var(--sunken); color: var(--ink); }
.quiet { background: transparent; color: var(--accent); padding: 0 10px; }
.quiet:hover:not(:disabled) { background: var(--sunken); color: var(--accent-hover); }
.masthead .quiet { color: var(--muted); }
.masthead .quiet:hover:not(:disabled) { color: var(--ink); }

.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font-size: var(--step--1); font-weight: 500; color: var(--ink); }
input, select {
  font: inherit; color: var(--ink); background: var(--surface); min-height: 40px; padding: 0 12px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-s); min-width: 0; width: 100%;
}
input:hover, select:hover { border-color: var(--faint); }
input:focus-visible, select:focus-visible { border-color: var(--brand); outline-offset: 0; }
input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; accent-color: var(--accent); margin: 0; flex: none; }
input[aria-invalid="true"] { border-color: var(--danger); }
.inline { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.inline .field { flex: 1 1 220px; }
.inline .field.narrow { flex: 0 1 130px; }
.form-error { color: var(--danger); font-size: var(--step--1); font-weight: 500; flex-basis: 100%; }
.form-error:empty { display: none; }
.notice { background: var(--info-surface); color: var(--info); padding: 10px 14px; border-radius: var(--radius-s); font-weight: 500; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
legend { font-size: var(--step-1); font-weight: 600; padding: 0; margin-bottom: 8px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 32px; }

/* Status chips: always a dot and a word, never colour alone */
.pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: var(--step--1); font-weight: 500; line-height: 1.5;
  padding: 1px 8px; border-radius: 4px; background: var(--sunken); color: var(--muted); white-space: nowrap;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.pill-active, .pill-applied, .pill-op-succeeded { background: var(--success-surface); color: var(--success); }
.pill-pending { background: var(--brand-tint); color: var(--accent); }
.pill-op-unknown, .pill-op-reserved, .pill-op-pending { background: var(--warning-surface); color: var(--warning); }
.pill-approved { background: var(--info-surface); color: var(--info); }
.pill-failed, .pill-op-failed { background: var(--danger-surface); color: var(--danger); }
.pill-op-blocked { background: var(--danger-surface); color: var(--danger); box-shadow: inset 0 0 0 1px rgba(185, 28, 28, 0.45); }
.pill-approved::before { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }

/* Sign in */
.signin {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 64px; align-items: center;
  max-width: 1000px; margin: 7vh auto 0;
}
.signin-intro { display: grid; gap: 14px; justify-items: start; }
.mascot { width: 120px; height: auto; margin-bottom: 4px; }
.intro-name { font-size: 2.25rem; font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; }
:lang(ar) .intro-name { letter-spacing: 0; line-height: 1.35; }
.intro-text { color: var(--muted); font-size: var(--step-1); max-width: 38ch; }
.intro-points { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.intro-points li { display: flex; gap: 12px; align-items: baseline; }
.intro-points li::before { content: ""; width: 12px; height: 7px; background: var(--brand); transform: skewX(-24deg); flex: none; }
.signin-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 32px; display: grid; gap: 20px; }
.signin-card form { display: grid; gap: 16px; }
.signin-card form .primary { min-height: 44px; }
.accounts { display: grid; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.accounts h2 { font-size: var(--step-0); }
.accounts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.account {
  width: 100%; height: 100%; flex-direction: column; align-items: flex-start; justify-content: flex-start; text-align: start; gap: 2px;
  padding: 10px 12px; background: var(--surface); color: var(--ink); border-color: var(--line); font-weight: 400; white-space: normal;
}
.account:hover:not(:disabled) { border-color: var(--brand); background: var(--surface); }
.account .acct-name { font-weight: 500; }
.account .acct-cred { font-family: var(--mono); color: var(--faint); font-size: 0.75rem; overflow-wrap: anywhere; }

/* Projects */
.create { padding: 16px 20px; margin-bottom: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); }
.projects { display: grid; gap: 16px; }
.project { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); }
.project-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.project-head h2 { overflow-wrap: anywhere; }
.project-head .quiet { margin-inline-start: auto; }
.rename-form { margin-top: 14px; }
.usage { margin-top: 18px; }
.meter { display: flex; height: 8px; border-radius: 999px; background: var(--sunken); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.seg { height: 100%; width: 0; }
.seg.settled, .key.settled { background: var(--accent); }
.seg.held, .key.held { background: repeating-linear-gradient(-45deg, var(--brand) 0 3px, #ffc9a8 3px 6px); }
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin: 16px 0 0; }
.figures dt { color: var(--muted); font-size: var(--step--1); }
.figures dd { margin: 2px 0 0; font-size: var(--step-2); font-weight: 600; }
.figures dd.breakdown { font-size: var(--step--1); font-weight: 400; color: var(--muted); }
.breakdown { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 4px; }
.breakdown span { display: inline-flex; align-items: center; gap: 6px; }
.key { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }

.services { margin-top: 20px; border: 1px solid var(--line); border-radius: var(--radius-s); }
.service { display: flex; align-items: center; gap: 12px; padding-block: 8px; padding-inline: 14px 8px; flex-wrap: wrap; }
.service + .service { border-top: 1px solid var(--line); }
.svc-text { display: grid; }
.svc-name { font-weight: 500; }
.service-end { display: flex; align-items: center; gap: 12px; margin-inline-start: auto; }
.switch { background: none; border: 0; padding: 0 6px; color: var(--ink); min-width: 88px; justify-content: flex-start; font-weight: 400; }
.switch .track {
  width: 36px; height: 20px; border-radius: 999px; background: var(--line-strong); position: relative; flex: none;
  transition: background-color 0.15s;
}
.switch .track::after {
  content: ""; position: absolute; top: 2px; inset-inline-start: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(28, 25, 23, 0.3); transition: inset-inline-start 0.15s;
}
.switch[aria-checked="true"] .track { background: var(--brand); }
.switch[aria-checked="true"] .track::after { inset-inline-start: 18px; }
.waiting, .pending-list a {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; text-decoration: none;
  color: var(--accent); background: var(--brand-tint); border-radius: 4px; padding: 1px 8px; font-weight: 500; font-size: var(--step--1);
}
.waiting::before, .pending-list a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex: none; }

.manage { margin-top: 16px; }
.manage > summary {
  cursor: pointer; color: var(--accent); font-weight: 500; width: fit-content;
  min-height: 32px; display: flex; align-items: center; gap: 8px; list-style: none;
}
.manage > summary::-webkit-details-marker { display: none; }
.manage > summary::before {
  content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0;
  transform: rotate(-45deg); transition: transform 0.15s;
}
:dir(rtl) .manage > summary::before, [dir="rtl"] .manage > summary::before { transform: rotate(135deg); }
.manage[open] > summary::before { transform: rotate(45deg); }
.controls { display: flex; flex-wrap: wrap; gap: 16px 32px; margin-top: 10px; align-items: end; padding: 16px; background: var(--sunken); border-radius: var(--radius-s); }
.controls form { flex: 1 1 320px; }
.pause { display: grid; gap: 6px; justify-items: start; }
.pending-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.pending-list li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: var(--step--1); }

/* Approvals: the one loud element. A pending decision carries the brand edge and the primary action. */
.inbox { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.approval { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: var(--radius-m); }
.approval-body { padding: 20px 24px 22px; display: grid; gap: 10px; }
.effect { font-size: var(--step-1); font-weight: 600; font-variant-numeric: tabular-nums; }
.approval .effect { justify-self: start; background: var(--sunken); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 8px 14px; }
.expiry { color: var(--accent); font-size: var(--step--1); font-weight: 500; font-variant-numeric: tabular-nums; }
.decide { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.decide .primary { min-width: 120px; }
.history { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.history li { padding-block: 14px; padding-inline: 18px 20px; border-inline-start: 3px solid var(--line); display: grid; gap: 4px; }
.history li + li { border-top: 1px solid var(--line); }
.history li[data-status="applied"] { border-inline-start-color: var(--success); }
.history li[data-status="approved"] { border-inline-start-color: var(--info); }
.history li[data-status="failed"] { border-inline-start-color: var(--danger); }
.history .row { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.history h3 { font-size: var(--step-0); }
.history .effect { font-size: var(--step-0); font-weight: 400; }
.history [data-testid="receipt"] { font-family: var(--mono); font-size: 0.75rem; }

/* Wallet */
.sum { margin: 0; max-width: 540px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 6px 24px; }
.sum > div { display: grid; grid-template-columns: 1.4em 1fr auto; align-items: baseline; padding: 11px 0; }
.sum > div + div { border-top: 1px solid var(--line); }
.sum > div::before { content: ""; color: var(--faint); font-weight: 500; font-size: var(--step-1); }
.sum > .minus::before { content: "−" / ""; }
.sum > .equals { border-top: 2px solid var(--ink); }
.sum > .equals::before { content: "=" / ""; }
.sum dt { color: var(--ink); }
.sum dd { margin: 0; font-size: var(--step-1); font-weight: 500; text-align: end; white-space: nowrap; }
.sum .equals dt { font-weight: 600; }
.sum .equals dd { font-size: var(--step-2); font-weight: 600; color: var(--ink); }

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); }
table { width: 100%; border-collapse: collapse; }
th {
  text-align: start; color: var(--muted); background: var(--sunken); font-weight: 500; font-size: var(--step--1);
  padding: 10px 16px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fbfaf9; }
td.num, th.num { text-align: end; white-space: nowrap; }
td .fine { margin-top: 4px; max-width: 42ch; }
tr.is-held td, tbody tr.is-held:hover td { background: var(--warning-surface); }
.when { white-space: nowrap; color: var(--muted); font-size: var(--step--1); }

/* Memory */
.memories { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); }
.memories > li { padding: 16px 20px; display: flex; gap: 16px; align-items: start; flex-wrap: wrap; }
.memories > li + li { border-top: 1px solid var(--line); }
.mem-main { flex: 1 1 280px; display: grid; gap: 2px; }
.mem-subject { color: var(--muted); font-size: var(--step--1); font-weight: 500; }
.mem-value { font-size: var(--step-1); overflow-wrap: anywhere; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.mem-actions { display: flex; gap: 4px; }
.mem-edit { flex-basis: 100%; }
.prefs { display: grid; gap: 24px; max-width: 640px; }
.prefs .primary { justify-self: start; }
.prefs .field { max-width: 220px; }
.companion-form { max-width: 640px; }

/* Operator */
.op-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 20px; }
.op-grid .span { grid-column: 1 / -1; }
.op-grid section + section { margin-top: 0; }
.op-created { list-style: none; margin: 14px 0 18px; padding: 0; display: grid; gap: 8px; }
.op-created li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-s); }
.op-created .id { font-size: 0.75rem; color: var(--muted); overflow-wrap: anywhere; user-select: all; }
.op-created .resolve { display: flex; gap: 8px; margin-inline-start: auto; }
.sub-h { margin: 20px 0 10px; }
.faults { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 4px; font-family: var(--mono); font-size: var(--step--1); }

/* Toast */
.toast {
  position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 20; max-width: min(440px, calc(100vw - 40px));
  background: var(--ink); color: #fff; padding: 12px 16px; border-radius: var(--radius-s); font-weight: 500;
  box-shadow: 0 10px 30px rgba(28, 25, 23, 0.2); opacity: 0; transform: translateY(8px);
  transition: opacity 0.18s, transform 0.18s; pointer-events: none;
}
.toast.show { opacity: 1; transform: none; pointer-events: auto; }
.toast[data-kind="error"] { background: var(--danger); }
.toast[data-kind="success"] { background: var(--success); }
.toast:empty { display: none; }

@media (max-width: 900px) {
  .frame { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .nav { position: sticky; top: var(--bar); z-index: 5; height: auto; padding: 6px 12px 0; border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .nav ul { display: flex; overflow-x: auto; gap: 4px; scrollbar-width: none; }
  .nav a { white-space: nowrap; border-radius: var(--radius-s) var(--radius-s) 0 0; }
  .nav a[aria-current="page"] { background: none; }
  .nav a[aria-current="page"]::before { inset-inline: 10px; top: auto; bottom: 0; width: auto; height: 3px; }
  .nav-foot { display: none; }
  main { padding: 24px 16px 64px; }
  .signin { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 24px; }
  .mascot { width: 84px; }
  .intro-name { font-size: 1.75rem; }
}
@media (max-width: 600px) {
  .masthead { position: static; height: auto; min-height: var(--bar); flex-wrap: wrap; padding: 10px 14px; gap: 8px 10px; }
  .nav { top: 0; }
  .demo-flag { order: 3; }
  .logo { height: 28px; }
  .product, .who { display: none; }
  .demo-flag { font-size: 0.75rem; padding: 1px 8px; }
  h1 { font-size: 1.5rem; }
  .project, .signin-card { padding: 20px 16px; }
  .panel { padding: 16px; }
  .sum { padding: 4px 16px; }
  .accounts ul { grid-template-columns: minmax(0, 1fr); }
  .intro-points { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
