/* ── Design tokens — RoomFlow OS v26 ── */
:root {
    /* ── Backgrounds ── */
    --bg:          #f5f5f7;
    --surface:     #ffffff;
    --surface2:    #f0f0f4;
    --surface3:    #e8e8ee;
    --surface-glass: rgba(255,255,255,0.92);

    /* ── Borders ── */
    --border:      rgba(0,0,0,0.09);
    --border2:     rgba(0,0,0,0.16);

    /* ── Text ── */
    --text:        #0c0c12;
    --text-2:      #3a3a46;
    --text-3:      #8a8a9a;
    --ink:         #000;

    /* ── Accent ── */
    --accent:      #5b3df5;
    --accent-2:    #4028d8;
    --accent-s:    rgba(91,61,245,0.10);
    --accent-g:    rgba(91,61,245,0.18);
    --accent-soft: rgba(91,61,245,0.10);

    /* ── Status palette ── */
    --dirty-bg:  rgba(239,68,68,0.10);   --dirty-bd:  rgba(239,68,68,0.28);   --dirty-tx:  #9b1c1c;   --dirty-d:  #ef4444;
    --clean-bg:  rgba(20,184,166,0.10);  --clean-bd:  rgba(20,184,166,0.28);  --clean-tx:  #115e59;   --clean-d:  #14b8a6;
    --ready-bg:  rgba(34,197,94,0.10);   --ready-bd:  rgba(34,197,94,0.28);   --ready-tx:  #14532d;   --ready-d:  #22c55e;
    --co-bg:     rgba(59,130,246,0.10);  --co-bd:     rgba(59,130,246,0.28);  --co-tx:     #1e40af;   --co-d:     #3b82f6;
    --late-bg:   rgba(249,115,22,0.10);  --late-bd:   rgba(249,115,22,0.28);  --late-tx:   #92400e;   --late-d:   #f97316;
    --bel-bg:    rgba(167,139,250,0.12); --bel-bd:    rgba(167,139,250,0.32); --bel-tx:    #4c1d95;   --bel-d:    #a78bfa;
    --dnd-bg:    rgba(251,191,36,0.10);  --dnd-bd:    rgba(251,191,36,0.32);  --dnd-tx:    #78350f;   --dnd-d:    #fbbf24;
    --oof-bg:    rgba(156,163,175,0.07); --oof-bd:    rgba(156,163,175,0.20); --oof-tx:    #6b7280;   --oof-d:    #9ca3af;
    --prio:      #dc2626;
    --prio-s:    rgba(220,38,38,0.10);

    /* ── Geometry ── */
    --r:    18px;
    --rs:   14px;
    --rx:   9px;
    --sw:   224px;
    --hh:   54px;
    --nb:   68px;
    --sb:   env(safe-area-inset-bottom, 0px);
    --cs:   108px;
    --radius-xs: var(--rx);

    /* ── Shadows ── */
    --sh0: 0 1px 3px rgba(0,0,0,0.07), 0 0 0 1px rgba(0,0,0,0.04);
    --sh1: 0 3px 10px rgba(0,0,0,0.10);
    --sh2: 0 8px 24px rgba(0,0,0,0.12);
    --sh3: 0 20px 48px rgba(0,0,0,0.16);

    --glass-border: 1px solid var(--border);

    /* ── Easing ── */
    --ease:        cubic-bezier(.16,1,.3,1);
    --ease-spring: cubic-bezier(.22,.68,0,1.1);
    --ease-out:    cubic-bezier(.4,0,.2,1);

    /* ── Typography ── */
    --fd: 'Plus Jakarta Sans', system-ui, sans-serif;
    --fs: 'Plus Jakarta Sans', system-ui, sans-serif;
    --fm: 'DM Mono', 'JetBrains Mono', monospace;
}

/* ── Dark mode ── */
body.dark {
    --bg:          #0d0d12;
    --surface:     #131318;
    --surface2:    #1c1c24;
    --surface3:    #252530;
    --surface-glass: rgba(19,19,24,0.92);

    --border:      rgba(255,255,255,0.08);
    --border2:     rgba(255,255,255,0.14);

    --text:        rgba(255,255,255,0.94);
    --text-2:      rgba(255,255,255,0.58);
    --text-3:      rgba(255,255,255,0.32);
    --ink:         #fff;

    --accent:      #7c6af8;
    --accent-2:    #6655e8;
    --accent-s:    rgba(124,106,248,0.14);
    --accent-g:    rgba(124,106,248,0.24);
    --accent-soft: rgba(124,106,248,0.14);

    /* Status — richer on dark */
    --dirty-bg:  rgba(239,68,68,0.16);   --dirty-bd:  rgba(239,68,68,0.38);   --dirty-tx:  #fca5a5; --dirty-d:  #ef4444;
    --clean-bg:  rgba(20,184,166,0.16);  --clean-bd:  rgba(20,184,166,0.38);  --clean-tx:  #99f6e4; --clean-d:  #14b8a6;
    --ready-bg:  rgba(34,197,94,0.16);   --ready-bd:  rgba(34,197,94,0.38);   --ready-tx:  #86efac; --ready-d:  #22c55e;
    --co-bg:     rgba(59,130,246,0.16);  --co-bd:     rgba(59,130,246,0.38);  --co-tx:     #93c5fd; --co-d:     #3b82f6;
    --late-bg:   rgba(249,115,22,0.16);  --late-bd:   rgba(249,115,22,0.38);  --late-tx:   #fdba74; --late-d:   #f97316;
    --bel-bg:    rgba(167,139,250,0.15); --bel-bd:    rgba(167,139,250,0.40); --bel-tx:    #ddd6fe; --bel-d:    #a78bfa;
    --dnd-bg:    rgba(251,191,36,0.14);  --dnd-bd:    rgba(251,191,36,0.40);  --dnd-tx:    #fde68a; --dnd-d:    #fbbf24;
    --oof-bg:    rgba(107,114,128,0.10); --oof-bd:    rgba(107,114,128,0.22); --oof-tx:    rgba(255,255,255,.36); --oof-d: #9ca3af;

    --prio:      #f87171;
    --prio-s:    rgba(248,113,113,.14);

    --sh0: 0 1px 4px rgba(0,0,0,.50);
    --sh1: 0 3px 12px rgba(0,0,0,.55);
    --sh2: 0 8px 28px rgba(0,0,0,.65);
    --sh3: 0 20px 52px rgba(0,0,0,.78);
    --glass-border: 1px solid var(--border);
    color-scheme: dark;
}

/* ── Keyframes ── */
@keyframes fadeUp    { from{opacity:0;transform:translateY(14px)} to{opacity:1;transform:none} }
@keyframes cardIn    { 0%{opacity:0;transform:scale(.96) translateY(6px)} 100%{opacity:1;transform:none} }
@keyframes sheetUp   { from{transform:translateY(28px);opacity:0} to{transform:none;opacity:1} }
@keyframes toastIn   { from{opacity:0;transform:translateY(10px) scale(.95)} to{opacity:1;transform:none} }
@keyframes spin      { to{transform:rotate(360deg)} }
@keyframes pBlue     { 0%,100%{box-shadow:0 0 0 0 rgba(59,130,246,.45)} 50%{box-shadow:0 0 0 8px rgba(59,130,246,0)} }
@keyframes pRose     { 0%,100%{box-shadow:0 0 0 0 rgba(249,115,22,.45)} 50%{box-shadow:0 0 0 8px rgba(249,115,22,0)} }
@keyframes pIndigo   { 0%,100%{box-shadow:0 0 0 0 rgba(167,139,250,.38)} 50%{box-shadow:0 0 0 8px rgba(167,139,250,0)} }
@keyframes pRed      { 0%,100%{box-shadow:0 0 0 0 rgba(220,38,38,.50)} 50%{box-shadow:0 0 0 9px rgba(220,38,38,0)} }
@keyframes pinBounce { 0%,100%{transform:scale(1)} 40%{transform:scale(.86)} 70%{transform:scale(1.09)} }
@keyframes bulkIn    { from{transform:translateY(100%);opacity:0} to{transform:none;opacity:1} }
@keyframes confetti  { 0%{transform:translateY(-20px) rotate(0);opacity:1} 100%{transform:translateY(100vh) rotate(720deg);opacity:0} }
@keyframes shimmer   { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
@keyframes cleanPulse{ 0%,100%{opacity:1} 50%{opacity:.45} }
@keyframes dotPop    { 0%{transform:scale(0)} 70%{transform:scale(1.3)} 100%{transform:scale(1)} }
@keyframes fadeIn    { from{opacity:0} to{opacity:1} }
@keyframes slideUp   { from{transform:translateY(22px);opacity:0} to{transform:none;opacity:1} }
@keyframes glowPulse { 0%,100%{opacity:.6} 50%{opacity:1} }
