/* ==========================================================================
   Falaki Design System — ds.css
   One source of truth for the landing page, the app and the admin.
   Docs: /DESIGN.md
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500&display=swap');

:root {
  /* ---- Brand ---------------------------------------------------------- */
  --green-950: #0a2a17;
  --green-900: #0d3a20;
  --green-800: #14532d;   /* brand / primary */
  --green-700: #1a6638;   /* primary hover-on-light */
  --green-600: #1f7a45;   /* accent text, links, focus */
  --green-400: #59a97a;
  --green-200: #b9e2c5;
  --green-100: #e3eee5;
  --green-50:  #eef4ef;
  --brass:      #a87a2f;  /* the one subtle accent: "recommended", premium, dedicated */
  --brass-soft: #f3e8d2;

  /* ---- Neutrals (warm) ------------------------------------------------ */
  --paper:   #f7f5ef;     /* page background */
  --paper-2: #efece3;     /* sunken areas, kanban columns, code */
  --surface: #fffdf8;     /* cards, modals, inputs */
  --ink:     #10231a;     /* primary text */
  --ink-2:   #3c4a42;     /* secondary text */
  --muted:   #5f6b64;     /* tertiary text, labels (AA on paper) */
  --faint:   #8b958f;     /* placeholders, disabled */
  --line:    rgba(16, 35, 26, .12);  /* borders */
  --line-2:  rgba(16, 35, 26, .07);  /* dividers inside surfaces */
  --line-strong: rgba(16, 35, 26, .22);
  --overlay: rgba(10, 25, 15, .42);

  /* ---- Semantic ------------------------------------------------------- */
  --success: #1f7a45;  --success-soft: #e6f1e9;  --success-ink: #14532d;
  --warning: #a8650f;  --warning-soft: #f8edd8;  --warning-ink: #7a4908;
  --danger:  #b42318;  --danger-soft:  #fbeae7;  --danger-ink:  #8f1c13;
  --info:    #2d5f8b;  --info-soft:    #e7eef5;  --info-ink:    #22496b;
  --violet:  #6a4f98;  --violet-soft:  #efeaf6;  --violet-ink:  #523b7a;
  --neutral-soft: #eceae3;

  /* ---- Type ----------------------------------------------------------- */
  --font-display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans: "Geist", "Helvetica Neue", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --fs-11: 11px;  --fs-12: 12px;  --fs-13: 13px;  --fs-14: 14px;  --fs-15: 15px;
  --fs-16: 16px;  --fs-18: 18px;  --fs-20: 20px;  --fs-24: 24px;  --fs-30: 30px;
  --fs-40: 40px;  --fs-56: 56px;  --fs-72: 72px;
  --lh-tight: 1.1; --lh-snug: 1.3; --lh: 1.5; --lh-loose: 1.65;
  --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600; --fw-bold: 700;
  --tracking-label: .08em;

  /* ---- Spacing (4px base) -------------------------------------------- */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px;
  --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px; --s-20: 80px; --s-30: 120px;

  /* ---- Radii ---------------------------------------------------------- */
  --r-xs: 4px;  --r-sm: 6px;  --r: 10px;  --r-lg: 16px;  --r-xl: 22px;  --r-pill: 999px;

  /* ---- Elevation: borders first, shadows only for floating layers ---- */
  --shadow-0: 0 1px 0 rgba(16, 35, 26, .03);
  --shadow-1: 0 1px 2px rgba(16, 35, 26, .05), 0 8px 24px -16px rgba(16, 35, 26, .18);
  --shadow-2: 0 2px 6px rgba(16, 35, 26, .06), 0 24px 48px -24px rgba(16, 35, 26, .28);
  --shadow-3: 0 30px 80px -20px rgba(10, 25, 15, .35), 0 2px 8px rgba(10, 25, 15, .08);

  /* ---- Focus & motion ------------------------------------------------- */
  --focus-ring: 0 0 0 3px color-mix(in srgb, var(--green-600) 28%, transparent);
  --focus-outline: 2px solid var(--green-600);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur-1: 120ms; --dur-2: 200ms; --dur-3: 320ms;

  /* ---- Layout --------------------------------------------------------- */
  --sidebar-w: 240px;
  --content-max: 1280px;
  --control-h: 38px;  --control-h-sm: 30px;  --control-h-lg: 46px;

  /* ---- Legacy aliases (kept for inline styles in app.js/admin.js) ---- */
  --green: var(--green-600);
  --green-dark: var(--green-800);
  --green-soft: var(--success-soft);
  --bg: var(--paper);
  --card: var(--surface);
  --text: var(--ink);
  --border: var(--line);
  --red: var(--danger);       --red-soft: var(--danger-soft);
  --amber: var(--warning);    --amber-soft: var(--warning-soft);
  --blue: var(--info);        --blue-soft: var(--info-soft);
  --purple: var(--violet);
  --radius: var(--r);
  --shadow: var(--shadow-0);

  color-scheme: light;
}

/* Dark theme is opt-in: add class="theme-auto" (follow OS) or data-theme="dark" on <html>. */
:root[data-theme="dark"] {
    --paper: #0e1612; --paper-2: #121c17; --surface: #151f1a;
    --ink: #ecebe4; --ink-2: #c5cbc5; --muted: #97a39b; --faint: #6f7a73;
    --line: rgba(236, 235, 228, .12); --line-2: rgba(236, 235, 228, .07); --line-strong: rgba(236, 235, 228, .24);
    --green-800: #1c6a3b; --green-600: #4fb27a; --green-100: #1b2e23; --green-50: #16241c;
    --brass: #d4a85c; --brass-soft: #2c2416;
    --success-soft: #16301f; --warning-soft: #33260f; --danger-soft: #3a1714; --info-soft: #14263a; --violet-soft: #241c33; --neutral-soft: #1d2621;
    --success-ink: #8fd3a8; --warning-ink: #e8b866; --danger-ink: #f19a8f; --info-ink: #94bde3; --violet-ink: #c3aee6;
    --shadow-1: 0 1px 0 rgba(0,0,0,.2), 0 8px 24px -16px rgba(0,0,0,.6);
    --shadow-2: 0 1px 0 rgba(0,0,0,.2), 0 24px 48px -24px rgba(0,0,0,.7);
    color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root.theme-auto:not([data-theme="light"]) {
    --paper: #0e1612; --paper-2: #121c17; --surface: #151f1a;
    --ink: #ecebe4; --ink-2: #c5cbc5; --muted: #97a39b; --faint: #6f7a73;
    --line: rgba(236, 235, 228, .12); --line-2: rgba(236, 235, 228, .07); --line-strong: rgba(236, 235, 228, .24);
    --green-800: #1c6a3b; --green-600: #4fb27a; --green-100: #1b2e23; --green-50: #16241c;
    --brass: #d4a85c; --brass-soft: #2c2416;
    --success-soft: #16301f; --warning-soft: #33260f; --danger-soft: #3a1714; --info-soft: #14263a; --violet-soft: #241c33; --neutral-soft: #1d2621;
    --success-ink: #8fd3a8; --warning-ink: #e8b866; --danger-ink: #f19a8f; --info-ink: #94bde3; --violet-ink: #c3aee6;
    --shadow-1: 0 1px 0 rgba(0,0,0,.2), 0 8px 24px -16px rgba(0,0,0,.6);
    --shadow-2: 0 1px 0 rgba(0,0,0,.2), 0 24px 48px -24px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-sans); font-size: var(--fs-14); line-height: var(--lh);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
a { color: var(--green-600); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: var(--lh-snug); font-weight: var(--fw-semibold); letter-spacing: -.01em; color: var(--ink); }
h1 { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-30); line-height: var(--lh-tight); letter-spacing: -.012em; }
h2 { font-size: var(--fs-16); }
h3 { font-size: var(--fs-14); }
p { margin: 0 0 var(--s-2); }
p:last-child { margin-bottom: 0; }
strong, b { font-weight: var(--fw-semibold); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-6) 0; }
:focus-visible { outline: var(--focus-outline); outline-offset: 2px; border-radius: var(--r-xs); }
::selection { background: color-mix(in srgb, var(--green-600) 22%, transparent); }

/* Utilities */
.muted { color: var(--muted); }
.small { font-size: var(--fs-12); }
.mono { font-family: var(--font-mono); }
.tnum { font-variant-numeric: tabular-nums; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.row { display: flex; gap: var(--s-2); align-items: center; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.stack > * + * { margin-top: var(--s-3); }
.hidden { display: none !important; }
.eyebrow { font-family: var(--font-mono); font-size: var(--fs-11); letter-spacing: .14em; text-transform: uppercase; color: var(--green-600); }
.display { font-family: var(--font-display); font-weight: 400; letter-spacing: -.015em; line-height: 1.04; }
.display em, h1 em { font-style: italic; color: var(--green-600); }
.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; }

/* ==========================================================================
   Buttons
   default = secondary · .primary · .ghost · .danger · .link · sizes .sm/.lg
   ========================================================================== */
button, .btn {
  font: inherit; font-size: var(--fs-14); font-weight: var(--fw-medium); line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  height: var(--control-h); padding: 0 var(--s-4);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink);
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
button:hover, .btn:hover { border-color: var(--ink-2); background: var(--surface); text-decoration: none; }
button:active, .btn:active { transform: translateY(.5px); }
button:focus-visible, .btn:focus-visible { outline: none; box-shadow: var(--focus-ring); border-color: var(--green-600); }
button svg, .btn svg { width: 16px; height: 16px; flex: none; }

button.primary, .btn.primary, .btn-primary { background: var(--green-800); border-color: var(--green-800); color: #f7f5ef; }
button.primary:hover, .btn.primary:hover, .btn-primary:hover { background: var(--green-900); border-color: var(--green-900); color: #fff; }

button.secondary, .btn.secondary { background: var(--surface); }

button.ghost, .btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
button.ghost:hover, .btn.ghost:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); border-color: transparent; }

button.danger, .btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, transparent); background: var(--surface); }
button.danger:hover, .btn.danger:hover { background: var(--danger-soft); border-color: var(--danger); color: var(--danger-ink); }
button.ghost.danger, .btn.ghost.danger { border-color: transparent; background: transparent; }
button.ghost.danger:hover { background: var(--danger-soft); }
button.primary.danger, .btn.primary.danger { background: var(--danger); border-color: var(--danger); color: #fff; }

button.link, .btn.link { height: auto; padding: 0; border: 0; background: none; color: var(--green-600); }
button.link:hover { text-decoration: underline; }

button.sm, .btn.sm { height: var(--control-h-sm); padding: 0 var(--s-3); font-size: var(--fs-13); border-radius: var(--r-sm); }
button.lg, .btn.lg { height: var(--control-h-lg); padding: 0 var(--s-5); font-size: var(--fs-15); }
button.pill, .btn.pill { border-radius: var(--r-pill); }
button.block, .btn.block { width: 100%; }
button:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }
button.selected { background: var(--green-800); border-color: var(--green-800); color: #f7f5ef; }

/* ==========================================================================
   Forms
   ========================================================================== */
input, select, textarea {
  font: inherit; font-size: var(--fs-14); color: var(--ink);
  width: 100%; min-height: var(--control-h); padding: 8px 12px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface);
  transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--ink) 35%, transparent); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green-600); box-shadow: var(--focus-ring); }
input:disabled, select:disabled, textarea:disabled { background: var(--paper-2); color: var(--faint); cursor: not-allowed; }
input[aria-invalid="true"], .invalid input, .invalid select, .invalid textarea { border-color: var(--danger); }
select {
  appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%235f6b64' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 12px;
}
textarea { resize: vertical; min-height: 84px; line-height: var(--lh); }
input[type="checkbox"], input[type="radio"] { width: 16px; height: 16px; min-height: 0; padding: 0; accent-color: var(--green-800); flex: none; }
input[type="color"] { padding: 3px; width: 56px; cursor: pointer; }
input[type="file"] { padding: 6px; }
label { display: block; font-size: var(--fs-13); font-weight: var(--fw-medium); color: var(--ink-2); margin-bottom: 6px; }
.field { margin-bottom: var(--s-4); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s-4); }
.check { display: flex; align-items: center; gap: 10px; font-size: var(--fs-14); font-weight: var(--fw-regular); color: var(--ink); cursor: pointer; }
.check input { width: 16px; }
.hint { font-size: var(--fs-12); color: var(--muted); margin-top: 6px; line-height: 1.45; }
.error-text { font-size: var(--fs-12); color: var(--danger); margin-top: 6px; }

/* ==========================================================================
   Surfaces
   ========================================================================== */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s-5); box-shadow: var(--shadow-0); }
.card-head { display: flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-4); min-height: 24px; }
.card-head h2 { font-size: var(--fs-15); }
.card-head a { font-size: var(--fs-13); }

/* Badges / pills */
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px;
  font-size: var(--fs-12); font-weight: var(--fw-medium); line-height: 1; white-space: nowrap;
  border-radius: var(--r-pill); background: var(--neutral-soft); color: var(--ink-2);
  border: 1px solid transparent;
}
.badge.green  { background: var(--success-soft); color: var(--success-ink); }
.badge.red    { background: var(--danger-soft);  color: var(--danger-ink); }
.badge.amber  { background: var(--warning-soft); color: var(--warning-ink); }
.badge.blue   { background: var(--info-soft);    color: var(--info-ink); }
.badge.purple { background: var(--violet-soft);  color: var(--violet-ink); }
.badge.brass  { background: var(--brass-soft);   color: var(--brass); }
.badge.outline { background: transparent; border-color: var(--line-strong); }
.badge.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.count { height: 20px; min-width: 20px; padding: 0 6px; justify-content: center; background: var(--brass); color: #fff; font-family: var(--font-mono); font-size: var(--fs-11); }

/* Tabs */
.tabs { display: flex; gap: var(--s-1); border-bottom: 1px solid var(--line); margin-bottom: var(--s-5); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button, .tabs a {
  height: 40px; padding: 0 var(--s-3); border: 0; border-bottom: 2px solid transparent; border-radius: 0;
  background: none; color: var(--muted); font-weight: var(--fw-medium); margin-bottom: -1px;
}
.tabs button:hover, .tabs a:hover { color: var(--ink); background: none; text-decoration: none; }
.tabs button.active, .tabs a.active { color: var(--ink); border-bottom-color: var(--green-800); }

/* Segmented control */
.segmented { display: inline-flex; padding: 3px; gap: 2px; background: var(--paper-2); border: 1px solid var(--line-2); border-radius: var(--r-sm); }
.segmented button { height: 30px; border: 0; background: none; color: var(--muted); }
.segmented button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-0), 0 0 0 1px var(--line); }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th {
  text-align: left; font-size: var(--fs-12); font-weight: var(--fw-medium); color: var(--muted);
  padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: transparent;
}
td { padding: 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: color-mix(in srgb, var(--green-50) 70%, transparent); }

/* Banners (inline, page-level notices) */
.banner {
  display: block; padding: 12px 16px; margin-bottom: var(--s-5); border-radius: var(--r-sm);
  font-size: var(--fs-13); line-height: 1.5;
  background: var(--warning-soft); color: var(--warning-ink);
  border: 1px solid color-mix(in srgb, var(--warning) 22%, transparent);
  border-left: 3px solid var(--warning);
}
.banner a { color: inherit; text-decoration: underline; font-weight: var(--fw-semibold); }
.banner.info    { background: var(--info-soft);    color: var(--info-ink);    border-color: color-mix(in srgb, var(--info) 22%, transparent);    border-left-color: var(--info); }
.banner.success { background: var(--success-soft); color: var(--success-ink); border-color: color-mix(in srgb, var(--success) 22%, transparent); border-left-color: var(--success); }
.banner.danger  { background: var(--danger-soft);  color: var(--danger-ink);  border-color: color-mix(in srgb, var(--danger) 22%, transparent);  border-left-color: var(--danger); }

/* Empty state */
.empty { padding: var(--s-12) var(--s-6); text-align: center; color: var(--muted); font-size: var(--fs-14); }
.empty h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-24); color: var(--ink); margin-bottom: var(--s-2); }
.empty .btn, .empty button { margin-top: var(--s-4); }

/* Modal & drawer */
.overlay {
  position: fixed; inset: 0; z-index: 50; padding: var(--s-4);
  display: flex; align-items: center; justify-content: center;
  background: var(--overlay); backdrop-filter: blur(1px);
  animation: ds-fade var(--dur-2) var(--ease);
}
.modal {
  width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s-6); box-shadow: var(--shadow-3);
  animation: ds-rise var(--dur-3) var(--ease);
}
.modal.wide { max-width: 880px; }
.modal-head { display: flex; align-items: center; gap: var(--s-2); margin: calc(var(--s-6) * -1) calc(var(--s-6) * -1) var(--s-5); padding: var(--s-4) var(--s-4) var(--s-4) var(--s-6); border-bottom: 1px solid var(--line-2); position: sticky; top: calc(var(--s-6) * -1); background: var(--surface); z-index: 1; }
.modal-head h2 { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-24); letter-spacing: -.01em; line-height: 1.15; }
.modal-head button.ghost[data-close] { width: 34px; height: 34px; padding: 0; color: var(--muted); font-size: 15px; }
.modal-foot { display: flex; justify-content: flex-end; gap: var(--s-2); margin: var(--s-6) calc(var(--s-6) * -1) calc(var(--s-6) * -1); padding: var(--s-4) var(--s-6); border-top: 1px solid var(--line-2); background: color-mix(in srgb, var(--paper) 55%, var(--surface)); border-radius: 0 0 var(--r-lg) var(--r-lg); position: sticky; bottom: calc(var(--s-6) * -1); }
.drawer-overlay { justify-content: flex-end; padding: 0; }
.drawer {
  width: 100%; max-width: 640px; height: 100vh; height: 100dvh; overflow-y: auto;
  background: var(--surface); border-left: 1px solid var(--line); padding: var(--s-6);
  box-shadow: var(--shadow-3); animation: ds-slide var(--dur-3) var(--ease);
}
.drawer .modal-head { border-radius: 0; }
.drawer .modal-foot { border-radius: 0; }

/* Toast */
#toast-root { position: fixed; right: var(--s-5); bottom: var(--s-5); z-index: 100; display: flex; flex-direction: column; gap: var(--s-2); align-items: flex-end; pointer-events: none; }
.toast {
  position: fixed; right: var(--s-5); bottom: var(--s-5); z-index: 100; max-width: 380px;
  padding: 12px 16px 12px 14px; border-radius: var(--r); font-size: var(--fs-14);
  background: var(--ink); color: #f7f5ef; box-shadow: var(--shadow-2);
  border-left: 3px solid var(--green-400);
  animation: ds-rise var(--dur-3) var(--ease);
}
#toast-root .toast { position: static; pointer-events: auto; }
.toast.error { border-left-color: #f08a7e; background: #3a1512; }
.toast.success { border-left-color: var(--green-400); }

/* Code / mono blocks */
.code { font-family: var(--font-mono); font-size: var(--fs-12); background: var(--paper-2); padding: 2px 6px; border-radius: var(--r-xs); word-break: break-all; border: 1px solid var(--line-2); }
.pix { font-family: var(--font-mono); font-size: var(--fs-11); line-height: 1.5; word-break: break-all; background: var(--paper-2); border: 1px dashed var(--line-strong); padding: 10px 12px; border-radius: var(--r-sm); color: var(--ink-2); }

/* Avatar */
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--green-100); color: var(--green-800); font-weight: var(--fw-semibold); font-size: var(--fs-13); }

/* Motion */
@keyframes ds-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ds-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ds-slide { from { transform: translateX(24px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}

@media (max-width: 760px) {
  .fields { grid-template-columns: 1fr; }
  .modal { padding: var(--s-5); max-height: 94vh; }
  .modal-head { margin: calc(var(--s-5) * -1) calc(var(--s-5) * -1) var(--s-4); padding: var(--s-3) var(--s-3) var(--s-3) var(--s-5); top: calc(var(--s-5) * -1); }
  .modal-foot { margin: var(--s-5) calc(var(--s-5) * -1) calc(var(--s-5) * -1); padding: var(--s-3) var(--s-5); bottom: calc(var(--s-5) * -1); flex-wrap: wrap; }
  .toast { left: var(--s-4); right: var(--s-4); bottom: var(--s-4); max-width: none; }
  input, select, textarea { font-size: 16px; } /* avoid iOS zoom */
}
