/* Media Catalog: default skin tokens (v0.2, 2026-11-28, Site): LOCKED direction (Ervic, Nov 28 9:53 AM PT): Geist system + DriveLens mood + Grafana count badges and active bars as accents.
   Mood: Ervic's DriveLens mockup (soft charcoal, rounded tiles with gaps, month headers). Names map 1:1 to SwiftUI asset-catalog colors / CGFloat constants.
   Structure-review skin only. Visual direction is locked after Ervic picks a reference.
   RULE: components use these custom properties only; no raw hex in app.css. */
:root {
  /* type */
  --font-ui: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --fs-cap: 13px;   /* badges, timestamps, keycaps only, never body copy */
  --fs-sm: 14px;    /* dense meta labels (desktop only) */
  --fs-body: 16px;  /* body floor, all viewports */
  --fs-lg: 20px;    /* section / date headers */
  --fs-xl: 28px;    /* page titles */
  --fs-2xl: 40px;   /* empty-state / lock hero */
  --lh-tight: 1.2;
  --lh-body: 1.5;
  --fw-reg: 400;
  --fw-semi: 600;
  --track-tight: -0.02em;

  /* spacing: 4px base */
  --s-0: 2px; --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;

  /* shape */
  --r-1: 6px; --r-2: 10px; --r-3: 14px; --r-pill: 999px;
  --hair: 1px;

  /* layout */
  --sidebar-w: 248px;
  --rail-w: 72px;
  --topbar-h: 64px;
  --tabbar-h: 64px;
  --info-w: 380px;
  --tap: 44px;          /* minimum tap target */
  --tap-lg: 56px;       /* phone review actions */
  --gutter: 6px;        /* grid gutter desktop */
  --gutter-phone: 3px;
  --r-tile: 12px; --r-tile-phone: 6px;
  --thumb-s: 140px; --thumb-m: 200px; --thumb-l: 280px;
  --scrubber-w: 56px;

  /* motion */
  --ease: cubic-bezier(.2,.8,.2,1);
  --dur-1: 120ms; --dur-2: 220ms; --dur-3: 360ms;

  /* fixed (theme-independent) media colors: lightbox is always dark like Photos */
  --lb-bg: #000000;
  --lb-ink: #F5F5F7;
  --lb-ink-2: #B4B4BB;
  --lb-scrim: rgb(0 0 0 / 0.55);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --top: calc(var(--topbar-h) + var(--safe-top));
  --win-ctl-w: 84px;   /* space reserved for desktop window controls (traffic lights) when the sidebar owns the top-left */
  --brand-bg: #F0F0F2; --brand-ink: #18191C;
  /* simulation-only: what the OS draws in the ?standalone=mac|ios review modes. Never used by real UI. */
  --sim-lock-a: #1B2A4A; --sim-lock-b: #0B0F1A; --sim-notif: rgb(58 60 68 / 0.82); --sim-notif-ink: #FFFFFF; --sim-notif-ink-2: rgb(255 255 255 / 0.78);
  --sim-close: #FF5F57; --sim-min: #FEBC2E; --sim-max: #28C840; --sim-island: #000000;
  --on-media: #FFFFFF;
  --media-scrim: linear-gradient(to top, rgb(0 0 0 / 0.62), rgb(0 0 0 / 0) 60%);
  --on-media-soft: rgb(255 255 255 / 0.10);   /* glass buttons over media */
  --on-media-hover: rgb(255 255 255 / 0.18);
  --on-media-line: rgb(255 255 255 / 0.25);
  --media-dim: rgb(0 0 0 / 0.30);             /* select ring fill, swipe labels */
  --text-on-media-shadow: 0 1px 2px rgb(0 0 0 / 0.6);
  --raise: 0 1px 2px rgb(0 0 0 / 0.2);
  --icon-s: 16px; --icon-m: 20px; --icon-l: 24px;
  --fs-micro: 11px;  /* tab-bar count bubble only */
}

/* DARK (default) */
:root, [data-theme="dark"] {
  --bg: #18191C;
  --surface: #202125;
  --surface-2: #2A2B30;
  --surface-3: #36373D;
  --border: rgb(255 255 255 / 0.09);
  --border-strong: rgb(255 255 255 / 0.18);
  --ink: #F0F0F2;
  --ink-2: #B0B0B9;
  --ink-3: #9898A2;
  --accent: #6AA2FF;        /* the one accent: selection, focus, links */
  --accent-ink: #0B1220;    /* text on accent fill */
  --accent-soft: rgb(106 162 255 / 0.16);
  --focus: #6AA2FF;
  --ok: #4CC38A;            /* approved */
  --ok-soft: rgb(76 195 138 / 0.16);
  --fav: #F2C14E;           /* favorited */
  --fav-soft: rgb(242 193 78 / 0.16);
  --bad: #FF6B6B;           /* rejected */
  --bad-soft: rgb(255 107 107 / 0.16);
  --bad-ink: #1A0A0A;       /* text on a solid danger fill */
  --warn: #F0A35E;          /* monthly-cleanup window + countdown (always with an icon and text) */
  --warn-soft: rgb(240 163 94 / 0.16);
  --warn-ink: #1A0F05;      /* text on a solid warn fill */
  --skeleton: #2A2B30;
  --skeleton-hi: #36373D;
  --audio-tile: #23252B;
  --private: #B9A4FF;       /* private zone tint (label + band) */
  --private-chrome: #1B1624;
  --private-surface: #261F34;
  --private-bg: #15111C;
  --shadow: 0 8px 32px rgb(0 0 0 / 0.45);
  color-scheme: dark;
}

/* LIGHT */
[data-theme="light"] {
  --bg: #FFFFFF;
  --surface: #F5F5F7;
  --surface-2: #EBEBEF;
  --surface-3: #DEDEE3;
  --border: rgb(0 0 0 / 0.09);
  --border-strong: rgb(0 0 0 / 0.18);
  --ink: #1D1D1F;
  --ink-2: #55555C;
  --ink-3: #606067;
  --accent: #0A5FD1;
  --accent-ink: #FFFFFF;
  --accent-soft: rgb(10 95 209 / 0.10);
  --focus: #0A5FD1;
  --ok: #126B3B;
  --ok-soft: rgb(21 122 67 / 0.10);
  --fav: #8A5A00;
  --fav-soft: rgb(176 120 0 / 0.12);
  --bad: #B42329;
  --bad-soft: rgb(196 40 47 / 0.10);
  --bad-ink: #FFFFFF;
  --warn: #8F4300;
  --warn-soft: rgb(176 90 0 / 0.12);
  --warn-ink: #FFFFFF;
  --skeleton: #EBEBEF;
  --skeleton-hi: #F5F5F7;
  --audio-tile: #EEF0F5;
  --private: #5B3FC4;
  --private-chrome: #F1EDFC;
  --private-surface: #E7E0FA;
  --private-bg: #FBF9FF;
  --shadow: 0 8px 32px rgb(0 0 0 / 0.14);
  color-scheme: light;
}
