/* ============================================================
   MoveClerk — MEDIUM theme (fix-all F9, 2026-11-15)
   The fourth theme stop: Auto → Light → Medium → Dark. Medium is a
   dim slate halfway between the white Light theme and the deep-navy
   Dark theme — dark-family geometry (the base futuristic-app.css
   component layer applies unchanged), with every surface lifted to
   the middle. An explicit Medium pick locks like Light/Dark: Auto
   stays the resting default and the device never overrides a pick.

   How it works: futuristic.css defines the --ft-* tokens at :root
   (dark values); theme-light.css restates them under html.theme-light.
   This file does the same under html.theme-medium, plus the app-scope
   semantic vars futuristic-app.css sets on #app/#modal/#toast.
   Loaded after theme-light.css in app.html.
   ============================================================ */

html.theme-medium {
  --ft-bg: #1c2438;
  --ft-bg-2: #232d47;
  --ft-card: #27324f;
  --ft-card-2: #2e3a5c;
  --ft-glass: rgba(39, 50, 79, 0.82);
  --ft-glass-hi: rgba(46, 58, 92, 0.90);
  --ft-ink: #f2f5fb;
  --ft-muted: #c9d4ea;
  --ft-faint: #a7b4cf;
  --ft-line: rgba(160, 190, 255, 0.20);
  --ft-line-soft: rgba(160, 190, 255, 0.12);
  --ft-line-strong: rgba(160, 190, 255, 0.38);
  --ft-hi: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --ft-blue: #6ea8ff;
  --ft-blue-deep: #4f8cff;
  --ft-cyan: #38e1ff;
  --ft-grad: linear-gradient(135deg, #4f8cff 0%, #38e1ff 100%);
  --ft-grad-soft: linear-gradient(135deg, rgba(79,140,255,.20), rgba(56,225,255,.10));
  --ft-ink-on-grad: #06121f;
  --ft-glow: 0 0 26px rgba(79, 140, 255, 0.30);
  --ft-glow-soft: 0 0 16px rgba(56, 225, 255, 0.18);
  --ft-glow-btn: 0 6px 22px rgba(79, 140, 255, 0.30);
  --ft-ok: #34d399;
  --ft-warn: #fbbf24;
  --ft-danger: #f87171;
  --ft-mesh:
    radial-gradient(720px 380px at 12% -4%, rgba(79, 140, 255, 0.12), transparent 62%),
    radial-gradient(640px 360px at 88% 6%, rgba(56, 225, 255, 0.07), transparent 60%),
    radial-gradient(900px 520px at 50% 110%, rgba(47, 109, 224, 0.08), transparent 65%);
}

/* App-scope semantic vars (the futuristic-app.css §1 remap, restated
   at medium values so every var-driven surface lands in the middle). */
html.theme-medium #app,
html.theme-medium #modal,
html.theme-medium #toast {
  color-scheme: dark;
  --bg: #1c2438;
  --card: #27324f;
  --ink: #f2f5fb;
  --muted: #c9d4ea;
  --brand: #6ea8ff;
  --brand-dark: #a8c4ff;
  --navy: #c3d4ff;
  --danger: #f87171;
  --line: rgba(160, 190, 255, 0.20);
  --ok: #34d399;
  --brand-soft: rgba(110, 168, 255, 0.16);
  --grad-brand: linear-gradient(160deg, #141d33 0%, #27365e 100%);
  --shadow-card: 0 10px 34px rgba(3, 8, 20, 0.45);
  --border: rgba(160, 190, 255, 0.20);
  --bg-soft: rgba(160, 190, 255, 0.07);
  --primary: #6ea8ff;
  --card-alt: rgba(160, 190, 255, 0.09);
}
