/* Expel Plan design tokens. Look: skill iphone-look (iOS 26, measured), no outlines, fills only.
   Light is Apple's light system values, dark is the measured iphone-look dark. Both follow prefers-color-scheme.
   Frontend-2 uses ONLY these variables (never raw colours) so the two themes and the channel accent always agree. */
:root {
  color-scheme: light dark;

  /* surfaces */
  --bg: #f2f2f7;            /* page */
  --card: #ffffff;          /* grouped list / card fill */
  --card-2: #f2f2f7;        /* a raised fill inside a card: fields, tracks, in-card buttons */
  --card-3: #e5e5ea;        /* pressed / stronger inside-card fill */
  --round: #ffffff;         /* round buttons and pills on the page */
  --text: #000000;
  --text-2: #8a8a8e;        /* secondary text */
  --text-3: #c7c7cc;        /* faint text, placeholders */
  --sep: #c6c6c8;           /* hairline separators inside a list (never a box outline) */
  --sep-strong: #aeaeb2;
  --fill: rgba(120, 120, 128, .12);    /* neutral soft fill: segmented tracks, chips */
  --fill-2: rgba(120, 120, 128, .20);
  --press: rgba(0, 0, 0, .06);         /* row pressed state */
  --scrim: rgba(0, 0, 0, .32);         /* behind sheets and dialogs */
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .04);
  --shadow-pop: 0 12px 40px rgba(0, 0, 0, .18), 0 2px 8px rgba(0, 0, 0, .08);

  /* system colours */
  --green: #34c759; --red: #ff3b30; --orange: #ff9500; --yellow: #ffcc00; --blue: #007aff; --purple: #af52de;
  --pink: #ff2d55; --teal: #30b0c7; --grey: #8e8e93;
  /* warning text (orange reasons, "needs a thumbnail"): the system orange is 2.2:1 on white, this one is 5.3:1 (4.7:1 on the page grey) */
  --warn-text: #c93400;

  /* status dots (contract vocabulary, index order) */
  --st-0: #8e8e93;  /* Not started */
  --st-1: #aeaeb2;  /* 1/2 Recorded */
  --st-2: #32ade6;  /* Recorded */
  --st-3: #5856d6;  /* Editing */
  --st-4: #007aff;  /* Rendering */
  --st-5: #e0b000;  /* Drafted */
  --st-6: #af52de;  /* Scheduled */
  --st-7: #34c759;  /* Posted */

  /* channel accents; the app sets --accent from the active channel (Expel brand red, Expel+ the sheet's pink) */
  --accent-expel: #e61d32;
  --accent-plus: #ff375f;
  --accent: var(--accent-expel);
  --accent-ink: #ffffff;
  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);

  /* shape */
  --radius-card: 26px;
  --radius-sm: 17px;
  --radius-row: 14px;
  --side: 16px;
  --gap: 20px;
  --tab-h: 62px;
  --sidebar-w: 232px;
  --panel-w: 440px;         /* desktop right panel for the open video */
  --col-w: 720px;           /* centred content column on desktop */

  /* safe areas */
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);

  /* type: SF Pro through -apple-system; Inter only stands in on Windows screenshots */
  --font: -apple-system, BlinkMacSystemFont, "Inter", system-ui, "Segoe UI", sans-serif;
  --fs-title: 34px; --fs-section: 22px; --fs-body: 17px; --fs-sub: 15px; --fs-foot: 13px; --fs-cap: 12px; --fs-tab: 10px;

  /* motion (emil-design-eng: strong ease-out, under 300ms for UI) */
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --t-fast: 140ms; --t-med: 220ms; --t-sheet: 320ms;

  /* layers */
  --z-fade: 19; --z-tabbar: 20; --z-sticky: 12; --z-sheet: 40; --z-modal: 70; --z-menu: 80; --z-toast: 90;

  /* glass tab bar (light) */
  --glass-bg: linear-gradient(180deg, rgba(255,255,255,.62), rgba(255,255,255,.72));
  --glass-rim: inset 0 1px 0 rgba(255,255,255,.9), inset 0 -1px 0 rgba(0,0,0,.06), inset 0 0 0 .5px rgba(0,0,0,.05),
    0 8px 28px rgba(0,0,0,.14);
  --glass-solid: #e6e6ea;
  --glass-pill: rgba(0, 0, 0, .075);
  --tab-idle: #3c3c43;
  --fade-0: rgba(242, 242, 247, 0);
  --fade-72: rgba(242, 242, 247, .72);
  --rim: 0 1px 2px rgba(0,0,0,.08);
}

@media (min-width: 414px) { :root { --side: 20px; } }

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --card: #1c1c1e;
    --card-2: #2c2c2e;
    --card-3: #313034;
    --round: #1f1f1f;
    --text: #ffffff;
    --text-2: #98989f;
    --text-3: #5c5c62;
    --sep: #38383a;
    --sep-strong: #48484a;
    --fill: rgba(120, 120, 128, .24);
    --fill-2: rgba(120, 120, 128, .36);
    --press: rgba(255, 255, 255, .08);
    --scrim: rgba(0, 0, 0, .55);
    --shadow-card: none;
    --shadow-pop: 0 14px 44px rgba(0, 0, 0, .6), 0 2px 8px rgba(0, 0, 0, .4);

    --green: #30d158; --red: #ff453a; --orange: #ff9f0a; --yellow: #ffd60a; --blue: #0a84ff; --purple: #bf5af2;
    --pink: #ff375f; --teal: #63e6e2; --grey: #8e8e93;
    --warn-text: #ff9f0a;

    --st-0: #8e8e93; --st-1: #aeaeb2; --st-2: #64d2ff; --st-3: #5e5ce6;
    --st-4: #0a84ff; --st-5: #ffd60a; --st-6: #bf5af2; --st-7: #30d158;

    --glass-bg: linear-gradient(180deg, rgba(140,140,146,.34), rgba(140,140,146,.42));
    --glass-rim: inset 0 1px 0 rgba(255,255,255,.24), inset 0 3px 3px -2px rgba(255,255,255,.12),
      inset 0 -1px 0 rgba(255,255,255,.32), inset 0 -3px 3px -2px rgba(255,255,255,.12),
      inset 0 0 0 .5px rgba(255,255,255,.10), 0 8px 24px rgba(0,0,0,.35);
    --glass-solid: #353537;
    --glass-pill: rgba(0, 0, 0, .48);
    --tab-idle: #fefefe;
    --fade-0: rgba(0, 0, 0, 0);
    --fade-72: rgba(0, 0, 0, .72);
    --rim: inset 0 1px 0 rgba(255,255,255,.10);
  }
}
