/*
  AMFID Academy v2.2: responsive layer + dashboard components.
  Mobile-first. Dark slate and gold by default.

  Use on any page:
    <link rel="stylesheet" href="/css/academy-responsive.css">
    <script src="/js/academy-ui.js" defer></script>

  Opt-in extras
    <body class="amf-fluid">        collapses common legacy grids (.grid, .cols,
                                    .row, .stats, .cards) to one column on phones
    <html data-theme="paper">       themes: slate (default), midnight, paper, contrast
    <html data-density="compact">   tighter spacing
*/

/* ---------- Tokens ---------- */
:root {
  --amf-bg: #0f1318;
  --amf-surface: #161b22;
  --amf-surface-2: #1d242d;
  --amf-line: #2a313b;
  --amf-ink: #f2efe8;
  --amf-ink-2: #c9c5bc;
  --amf-muted: #8b949e;
  --amf-gold: #C8933A;
  --amf-gold-ink: #e0b46a;      /* gold used as TEXT on dark surfaces */
  --amf-on-gold: #0f1318;
  --amf-ok: #4cb782;
  --amf-warn: #d9a441;
  --amf-danger: #e06c5a;
  --amf-info: #6aa6dc;
  --amf-focus: #f0c06e;
  --amf-radius: 4px;
  --amf-pad: 20px;
  --amf-gap: 16px;
  --amf-font-display: 'Syne', system-ui, sans-serif;
  --amf-font-mono: 'Space Mono', ui-monospace, monospace;
  --amf-font-body: 'Fraunces', Georgia, serif;
  --amf-font-ui: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --amf-nav-h: 64px;
  color-scheme: dark;
}
[data-theme="midnight"] {
  --amf-bg: #0a0d14; --amf-surface: #111827; --amf-surface-2: #172036; --amf-line: #243049;
  --amf-ink: #eef1f7; --amf-ink-2: #c3cad8; --amf-muted: #8a95ab;
}
[data-theme="paper"] {
  --amf-bg: #F5F5F5; --amf-surface: #FFFFFF; --amf-surface-2: #faf7f1; --amf-line: rgba(13,13,13,.14);
  --amf-ink: #0D0D0D; --amf-ink-2: #2e2e2e; --amf-muted: #5f5f5f;
  --amf-gold-ink: #8a6219; --amf-on-gold: #0D0D0D; --amf-focus: #8a6219;
  --amf-ok: #23784e; --amf-warn: #8f6512; --amf-danger: #b23b2a; --amf-info: #2d6aa3;
  color-scheme: light;
}
[data-theme="contrast"] {
  --amf-bg: #000; --amf-surface: #000; --amf-surface-2: #111; --amf-line: #fff;
  --amf-ink: #fff; --amf-ink-2: #fff; --amf-muted: #e6e6e6;
  --amf-gold: #ffd166; --amf-gold-ink: #ffd166; --amf-on-gold: #000; --amf-focus: #fff;
}
[data-density="compact"] { --amf-pad: 14px; --amf-gap: 10px; }

/* ---------- Global safety net (safe on every page) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
img, svg, video, canvas, iframe { max-width: 100%; height: auto; }
input, select, textarea, button { font: inherit; max-width: 100%; }
pre, code { overflow-wrap: anywhere; }
pre { overflow-x: auto; }
td, th, a { overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--amf-focus); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- App shell ---------- */
.amf-app { margin: 0; min-height: 100vh; background: var(--amf-bg); color: var(--amf-ink); font-family: var(--amf-font-ui); line-height: 1.5; }
.amf-wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.amf-main { padding: 24px 0 64px; }
.amf-eyebrow { font-family: var(--amf-font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--amf-muted); }
.amf-h1 { font-family: var(--amf-font-display); font-weight: 700; font-size: clamp(26px, 5vw, 40px); line-height: 1.1; letter-spacing: -.02em; margin: 6px 0 4px; }
.amf-h2 { font-family: var(--amf-font-display); font-weight: 600; font-size: 19px; margin: 0 0 12px; }
.amf-sub { color: var(--amf-ink-2); margin: 0; max-width: 70ch; }
.amf-muted { color: var(--amf-muted); }
.amf-gold { color: var(--amf-gold-ink); }

/* ---------- Responsive navigation ---------- */
.amf-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: var(--amf-nav-h); padding: 10px max(16px, calc((100% - 1200px) / 2));
  background: color-mix(in srgb, var(--amf-bg) 92%, transparent);
  border-bottom: 1px solid var(--amf-line);
  backdrop-filter: saturate(1.2) blur(8px);
}
.amf-nav__brand { font-family: var(--amf-font-display); font-weight: 800; font-size: 18px; color: var(--amf-ink); text-decoration: none; white-space: nowrap; }
.amf-nav__brand span, .amf-nav__brand em { color: var(--amf-gold); font-style: normal; }
.amf-nav__toggle {
  display: inline-grid; place-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0; border: 1px solid var(--amf-line); border-radius: var(--amf-radius);
  background: transparent; color: var(--amf-ink); cursor: pointer;
}
.amf-nav__toggle span { display: block; width: 20px; height: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
.amf-nav.is-open .amf-nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.amf-nav.is-open .amf-nav__toggle span:nth-child(2) { opacity: 0; }
.amf-nav.is-open .amf-nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.amf-nav__links {
  position: fixed; inset: var(--amf-nav-h) 0 auto 0; max-height: calc(100dvh - var(--amf-nav-h)); overflow-y: auto;
  display: flex; flex-direction: column; gap: 2px; padding: 12px 16px 20px;
  background: var(--amf-surface); border-bottom: 1px solid var(--amf-line);
  transform: translateY(-8px); opacity: 0; visibility: hidden; transition: transform .2s, opacity .2s, visibility 0s .2s;
}
.amf-nav.is-open .amf-nav__links { transform: none; opacity: 1; visibility: visible; transition: transform .2s, opacity .2s; }
.amf-nav__links a, .amf-nav__links button {
  display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: var(--amf-radius);
  color: var(--amf-ink-2); text-decoration: none; font-family: var(--amf-font-display); font-weight: 600; font-size: 15px;
  background: none; border: 0; text-align: left; cursor: pointer;
}
.amf-nav__links a:hover, .amf-nav__links a[aria-current="page"] { color: var(--amf-ink); background: var(--amf-surface-2); }
.amf-nav__links a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--amf-gold); }
.amf-nav__cta { background: var(--amf-gold) !important; color: var(--amf-on-gold) !important; justify-content: center; }
body.amf-nav-locked { overflow: hidden; }
@media (min-width: 960px) {
  .amf-nav__toggle { display: none; }
  .amf-nav__links {
    position: static; flex-direction: row; align-items: center; gap: 4px; padding: 0; max-height: none; overflow: visible;
    background: none; border: 0; transform: none; opacity: 1; visibility: visible;
  }
  .amf-nav__links a, .amf-nav__links button { min-height: 40px; font-size: 14px; }
  .amf-nav__links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--amf-gold); background: none; }
}

/* ---------- Layout ---------- */
.amf-grid { display: grid; gap: var(--amf-gap); grid-template-columns: 1fr; }
@media (min-width: 640px) { .amf-grid--2, .amf-grid--3, .amf-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .amf-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .amf-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.amf-span-all { grid-column: 1 / -1; }
.amf-stack > * + * { margin-top: var(--amf-gap); }
.amf-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.amf-row--between { justify-content: space-between; }
.amf-card { background: var(--amf-surface); border: 1px solid var(--amf-line); border-radius: var(--amf-radius); padding: var(--amf-pad); min-width: 0; }

/* Legacy pages: opt-in collapse on phones */
@media (max-width: 719px) {
  .amf-fluid .grid, .amf-fluid .cols, .amf-fluid .row, .amf-fluid .stats, .amf-fluid .cards { grid-template-columns: 1fr !important; flex-direction: column; }
  .amf-fluid .grid > *, .amf-fluid .cols > *, .amf-fluid .cards > * { grid-column: auto !important; min-width: 0; }
  .amf-fluid .panel, .amf-fluid .card { padding: 18px !important; }
  .amf-fluid aside, .amf-fluid .sidebar { position: static !important; width: auto !important; }
}

/* ---------- Tabs (scroll sideways on phones) ---------- */
.amf-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: thin; border-bottom: 1px solid var(--amf-line); margin-bottom: 18px; }
.amf-tab {
  flex: none; min-height: 44px; padding: 10px 14px; border: 0; background: none; cursor: pointer;
  color: var(--amf-muted); font-family: var(--amf-font-display); font-weight: 600; font-size: 14px; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.amf-tab[aria-selected="true"] { color: var(--amf-ink); border-bottom-color: var(--amf-gold); }
.amf-tab .amf-count { margin-left: 6px; }

/* ---------- Stat tiles ---------- */
.amf-stats { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .amf-stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
.amf-stat { background: var(--amf-surface); border: 1px solid var(--amf-line); border-radius: var(--amf-radius); padding: 14px 16px; min-width: 0; }
.amf-stat__label { font-family: var(--amf-font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--amf-muted); }
.amf-stat__value { font-family: var(--amf-font-display); font-size: clamp(22px, 4vw, 30px); font-weight: 700; color: var(--amf-ink); margin-top: 4px; font-variant-numeric: tabular-nums; }
.amf-stat__note { font-size: 12.5px; color: var(--amf-ink-2); margin-top: 2px; }
button.amf-stat { text-align: left; cursor: pointer; font: inherit; color: inherit; }
button.amf-stat[aria-pressed="true"] { border-color: var(--amf-gold); box-shadow: inset 0 0 0 1px var(--amf-gold); }

/* ---------- Buttons (with state highlighting) ---------- */
.amf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 14px;
  border: 1px solid var(--amf-line); border-radius: var(--amf-radius); background: var(--amf-surface-2); color: var(--amf-ink);
  font-family: var(--amf-font-display); font-weight: 600; font-size: 13.5px; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.amf-btn:hover:not(:disabled) { border-color: var(--amf-muted); }
.amf-btn:disabled, .amf-btn[aria-disabled="true"] { opacity: .42; cursor: not-allowed; }
.amf-btn--gold { background: var(--amf-gold); border-color: var(--amf-gold); color: var(--amf-on-gold); }
.amf-btn--ghost { background: transparent; }
.amf-btn--danger { color: var(--amf-danger); border-color: color-mix(in srgb, var(--amf-danger) 50%, transparent); background: transparent; }
.amf-btn--sm { min-height: 34px; padding: 5px 10px; font-size: 12.5px; }
/* The next step in the workflow pulses gold so admins see what to press */
.amf-btn--next { border-color: var(--amf-gold); box-shadow: 0 0 0 1px var(--amf-gold) inset; color: var(--amf-gold-ink); }
.amf-btn--gold.amf-btn--next { color: var(--amf-on-gold); }

/* ---------- Status pills (always text + color) ---------- */
.amf-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; border: 1px solid currentColor;
  font-family: var(--amf-font-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
  color: var(--amf-ink-2);
}
.amf-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.amf-pill[data-s="submitted"], .amf-pill[data-s="draft"], .amf-pill[data-s="pending"] { color: var(--amf-muted); }
.amf-pill[data-s="under_review"], .amf-pill[data-s="open"] { color: var(--amf-info); }
.amf-pill[data-s="accepted"], .amf-pill[data-s="in_progress"], .amf-pill[data-s="paused"] { color: var(--amf-gold-ink); }
.amf-pill[data-s="enrolled"], .amf-pill[data-s="active"], .amf-pill[data-s="approved"], .amf-pill[data-s="paid"], .amf-pill[data-s="completed"], .amf-pill[data-s="present"] { color: var(--amf-ok); }
.amf-pill[data-s="waitlisted"], .amf-pill[data-s="late"], .amf-pill[data-s="excused"], .amf-pill[data-s="overdue"] { color: var(--amf-warn); }
.amf-pill[data-s="declined"], .amf-pill[data-s="rejected"], .amf-pill[data-s="failed"], .amf-pill[data-s="withdrawn"], .amf-pill[data-s="absent"] { color: var(--amf-danger); }
.amf-pill[data-s="archived"] { color: var(--amf-muted); border-style: dashed; }

/* ---------- Toolbar: search, filters, bulk bar ---------- */
.amf-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.amf-toolbar > .amf-input, .amf-toolbar > .amf-select { flex: 1 1 160px; width: auto; }
.amf-toolbar > .amf-search { flex: 2 1 240px; }
.amf-bulkbar {
  position: sticky; bottom: 12px; z-index: 20; display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 10px 12px; margin-top: 12px; background: var(--amf-surface-2); border: 1px solid var(--amf-gold); border-radius: var(--amf-radius);
}
.amf-bulkbar[hidden] { display: none; }

/* ---------- Forms ---------- */
.amf-field { display: grid; gap: 6px; min-width: 0; }
.amf-label { font-size: 12.5px; font-weight: 700; color: var(--amf-ink-2); }
.amf-hint { font-size: 12px; color: var(--amf-muted); }
.amf-input, .amf-select, .amf-textarea {
  width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--amf-line); border-radius: var(--amf-radius);
  background: var(--amf-bg); color: var(--amf-ink);
}
.amf-textarea { min-height: 110px; resize: vertical; }
.amf-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.amf-check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--amf-gold); }
.amf-form-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .amf-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .amf-form-grid .amf-full { grid-column: 1 / -1; } }
.amf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.amf-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border: 1px solid var(--amf-line); border-radius: 999px; cursor: pointer; font-size: 13.5px; }
.amf-chip:has(input:checked) { border-color: var(--amf-gold); color: var(--amf-gold-ink); }
.amf-chip input { accent-color: var(--amf-gold); }

/* ---------- Tables: scroll on tablets, stack into cards on phones ---------- */
.amf-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--amf-line); border-radius: var(--amf-radius); }
.amf-table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--amf-surface); }
.amf-table th { position: sticky; top: 0; text-align: left; font-family: var(--amf-font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--amf-muted); background: var(--amf-surface-2); padding: 10px 12px; white-space: nowrap; }
.amf-table td { padding: 10px 12px; border-top: 1px solid var(--amf-line); vertical-align: top; }
.amf-table tr:hover td { background: color-mix(in srgb, var(--amf-surface-2) 60%, transparent); }
.amf-table tr.is-selected td { background: color-mix(in srgb, var(--amf-gold) 10%, transparent); }
.amf-table .amf-num { text-align: right; font-variant-numeric: tabular-nums; }
.amf-table .amf-actions { white-space: nowrap; }
.amf-table .amf-actions .amf-row { flex-wrap: nowrap; gap: 6px; }
@media (max-width: 719px) {
  .amf-scroll:has(.amf-table--stack) { border: 0; overflow: visible; }
  .amf-table--stack, .amf-table--stack tbody, .amf-table--stack tr, .amf-table--stack td { display: block; width: 100%; }
  .amf-table--stack { background: none; }
  .amf-table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .amf-table--stack tr { background: var(--amf-surface); border: 1px solid var(--amf-line); border-radius: var(--amf-radius); margin-bottom: 10px; padding: 6px 0; }
  .amf-table--stack td { border: 0; display: grid; grid-template-columns: minmax(96px, 36%) minmax(0, 1fr); column-gap: 10px; row-gap: 2px; padding: 6px 14px; align-items: start; }
  .amf-table--stack td > * { grid-column: 2; justify-self: start; text-align: left; }
  .amf-table--stack td::before { content: attr(data-label); grid-column: 1; grid-row: 1 / span 4; font-family: var(--amf-font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--amf-muted); padding-top: 2px; }
  .amf-table--stack td[data-label=""]::before, .amf-table--stack td.amf-cell-select::before, .amf-table--stack td.amf-empty::before { content: none; }
  .amf-table--stack td.amf-empty { display: block; text-align: center; }
  .amf-table--stack td.amf-cell-select { display: flex; justify-content: flex-end; padding-bottom: 0; }
  .amf-table--stack td.amf-num { text-align: left; }
  .amf-table--stack .amf-actions .amf-row { flex-wrap: wrap; }
}
.amf-pager { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 13px; color: var(--amf-muted); }
.amf-empty { padding: 28px; text-align: center; color: var(--amf-muted); }

/* ---------- Bars and progress (single-hue magnitude) ---------- */
.amf-bars { display: grid; gap: 10px; }
.amf-bar { display: grid; grid-template-columns: minmax(80px, 30%) 1fr auto; gap: 10px; align-items: center; font-size: 13.5px; }
.amf-bar__track { height: 12px; background: var(--amf-surface-2); border-radius: 0 4px 4px 0; overflow: hidden; }
.amf-bar__fill { height: 100%; background: var(--amf-gold); border-radius: 0 4px 4px 0; min-width: 2px; }
.amf-bar__val { font-variant-numeric: tabular-nums; color: var(--amf-ink); min-width: 4ch; text-align: right; }
.amf-progress { height: 8px; background: var(--amf-surface-2); border-radius: 999px; overflow: hidden; }
.amf-progress > span { display: block; height: 100%; background: var(--amf-gold); border-radius: 999px; }
/* Daily columns (earnings): approved solid, pending hatched, labels carry the meaning */
.amf-cols { display: flex; align-items: flex-end; gap: 2px; height: 140px; padding-top: 8px; border-bottom: 1px solid var(--amf-line); }
.amf-col { flex: 1 1 0; min-width: 4px; position: relative; display: flex; align-items: flex-end; height: 100%; }
.amf-col > i { display: block; width: 100%; border-radius: 4px 4px 0 0; background: var(--amf-gold); }
.amf-col[data-s="pending"] > i { background: repeating-linear-gradient(45deg, var(--amf-gold) 0 3px, transparent 3px 7px); outline: 1px solid var(--amf-gold); outline-offset: -1px; }
.amf-col[data-s="rejected"] > i { background: var(--amf-line); }
.amf-col[data-s="none"] > i { height: 2px !important; background: var(--amf-line); }
.amf-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--amf-ink-2); margin-top: 8px; }
.amf-legend i { display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -2px; border-radius: 2px; background: var(--amf-gold); }
.amf-legend i.is-pending { background: repeating-linear-gradient(45deg, var(--amf-gold) 0 3px, transparent 3px 7px); outline: 1px solid var(--amf-gold); outline-offset: -1px; }
.amf-funnel .amf-bar { grid-template-columns: minmax(84px, 22%) 1fr minmax(70px, auto); }

/* ---------- Attendance matrix ---------- */
.amf-att { display: grid; gap: 6px; }
.amf-att__row { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 10px; border: 1px solid var(--amf-line); border-radius: var(--amf-radius); background: var(--amf-surface); }
@media (min-width: 640px) { .amf-att__row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.amf-seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--amf-line); border-radius: var(--amf-radius); overflow: hidden; }
.amf-seg label { position: relative; }
.amf-seg input { position: absolute; opacity: 0; inset: 0; }
.amf-seg span { display: inline-flex; min-height: 36px; align-items: center; padding: 6px 11px; font-size: 12.5px; cursor: pointer; border-right: 1px solid var(--amf-line); }
.amf-seg label:last-child span { border-right: 0; }
.amf-seg input:checked + span { background: var(--amf-gold); color: var(--amf-on-gold); font-weight: 700; }
.amf-seg input:focus-visible + span { outline: 2px solid var(--amf-focus); outline-offset: -2px; }

/* ---------- Modal ---------- */
.amf-modal { border: 1px solid var(--amf-line); border-radius: var(--amf-radius); padding: 0; width: min(560px, 100% - 24px); max-height: calc(100dvh - 24px); background: var(--amf-surface); color: var(--amf-ink); }
.amf-modal::backdrop { background: rgba(0, 0, 0, .6); }
.amf-modal__head { padding: 16px 20px; border-bottom: 1px solid var(--amf-line); font-family: var(--amf-font-display); font-weight: 700; font-size: 17px; }
.amf-modal__body { padding: 18px 20px; overflow-y: auto; }
.amf-modal__foot { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--amf-line); }
@media (max-width: 559px) { .amf-modal { margin: auto 0 0; width: 100%; max-width: 100%; border-radius: 10px 10px 0 0; } .amf-modal__foot .amf-btn { flex: 1; } }

/* ---------- Toast and alerts ---------- */
.amf-toasts { position: fixed; z-index: 100; right: 16px; bottom: 16px; left: 16px; display: grid; gap: 8px; justify-items: end; pointer-events: none; }
.amf-toast { pointer-events: auto; max-width: 420px; padding: 12px 14px; border-radius: var(--amf-radius); background: var(--amf-surface-2); border: 1px solid var(--amf-line); border-left: 4px solid var(--amf-gold); color: var(--amf-ink); font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.amf-toast--error { border-left-color: var(--amf-danger); }
.amf-toast--ok { border-left-color: var(--amf-ok); }
.amf-alert { padding: 12px 14px; border: 1px solid var(--amf-line); border-left: 4px solid var(--amf-gold); border-radius: var(--amf-radius); background: var(--amf-surface); font-size: 14px; }
.amf-alert--error { border-left-color: var(--amf-danger); }
.amf-alert--ok { border-left-color: var(--amf-ok); }
.amf-kv { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 6px 12px; font-size: 14px; }
.amf-kv dt { color: var(--amf-muted); font-family: var(--amf-font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding-top: 2px; }
.amf-kv dd { margin: 0; overflow-wrap: anywhere; }
.amf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media print {
  .amf-nav, .amf-tabs, .amf-toolbar, .amf-bulkbar, .amf-btn, .amf-toasts { display: none !important; }
  .amf-app { background: #fff; color: #000; }
  .amf-card { border-color: #ccc; }
}
