/* OG Hologram look (HOLO-DS-1 / HOLO-THEME-1, Oleg 11/3/2026 2:28 PM AK: "go with the indigo
   hologram style for everything"). Approved reference: worktracker/reports/mockups/og-project-holo_11-3-2026.html.
   Rules: docs/design/OG_HOLO_DESIGN_SYSTEM.md.

   Scope: every rule starts at :root[data-theme-style="holo"], set per person by nav_prefs.js
   applyThemeStyle() from /api/me theme_style. Without the attribute this file does nothing, so
   Classic (black & gold, dark/light) is untouched. Hologram is dark-only: it wins over the light
   toggle on purpose. Layout is never changed here, only color, type, surface and motion.
   Fonts are served from /static/fonts (CSP font-src 'self'; no outside font host). */

@font-face{font-family:"Sora";src:url("/static/fonts/sora-latin-var.woff2") format("woff2");font-weight:100 800;font-display:swap}
@font-face{font-family:"Manrope";src:url("/static/fonts/manrope-latin-var.woff2") format("woff2");font-weight:200 800;font-display:swap}
@font-face{font-family:"JetBrains Mono";src:url("/static/fonts/jetbrainsmono-latin-var.woff2") format("woff2");font-weight:100 800;font-display:swap}

/* ---- tokens: the whole app reads these, so most screens follow without per-screen rules ---- */
:root[data-theme-style="holo"],
:root[data-theme-style="holo"][data-theme="light"]{
  color-scheme:dark;
  /* Graphite + gold + silver (Oleg 11/3/2026 2:58 PM: not blue/indigo; "the color blue doesn't make it
     holographic, it's the design"). Names --holo-ember/--holo-violet are kept so rules keep working:
     ember = OG gold light, violet = the silver/white second light. */
  --holo-stage:#060607; --holo-ink:#0e0f11; --holo-ember:#e0bd6a; --holo-ember2:#f1d79a;
  --holo-violet:#c9ced6; --holo-violet2:#e4e7ec; --holo-glass:rgba(255,255,255,.035);
  --holo-edge:rgba(224,189,106,.55); --holo-hair:rgba(228,231,236,.10);
  --holo-display:"Sora",system-ui,-apple-system,"Segoe UI",sans-serif;
  --holo-body:"Manrope",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --holo-mono:"JetBrains Mono",ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  --bg:#060607; --panel:#0e0f11; --panel2:#17181b; --header:rgba(6,6,7,.82);
  --line:rgba(228,231,236,.09); --line2:rgba(228,231,236,.16);
  --ink:#f2efe8; --muted:#a19d95; --dim:#8a8780;
  --gold:#e0bd6a; --gold2:#f1d79a; --gold-deep:#b8913f;
  --paper:var(--bg); --card:var(--panel); --faint:var(--dim);
  --goldb:var(--gold); --goldd:var(--gold-deep); --navy:var(--gold); --navy2:var(--gold2);
  --good:#a8d8b9; --good-bg:rgba(168,216,185,.10); --warn:#e6b866; --warn-bg:rgba(230,184,102,.12);
  --crit:#ff5d73; --crit-bg:rgba(255,93,115,.13); --info:#c9ced6; --info-bg:rgba(201,206,214,.10);
  --shadow:inset 0 1px 0 rgba(255,255,255,.05),0 18px 44px -22px rgba(0,0,0,.9);
  --tl-1:#e0bd6a; --tl-2:#c9ced6; --tl-3:#f1d79a; --tl-4:#8e97a3; --tl-5:#b8913f; --tl-6:#6c7480;
  --accent:var(--gold);
}

/* ---- stage: graphite with two soft lights (gold, silver) and a faint grid ---- */
:root[data-theme-style="holo"] body{
  font-family:var(--holo-body);letter-spacing:.005em;
  background:
    radial-gradient(900px 520px at 78% -6%,rgba(201,206,214,.20),transparent 62%),
    radial-gradient(700px 460px at 8% 18%,rgba(224,189,106,.10),transparent 60%),
    linear-gradient(rgba(228,231,236,.035) 1px,transparent 1px) 0 0/56px 56px,
    linear-gradient(90deg,rgba(228,231,236,.035) 1px,transparent 1px) 0 0/56px 56px,
    var(--holo-stage);
  background-attachment:fixed;
}
:root[data-theme-style="holo"] .mono,
:root[data-theme-style="holo"] .tile .k,
:root[data-theme-style="holo"] .fact .k,
:root[data-theme-style="holo"] .pill,
:root[data-theme-style="holo"] .chip{font-family:var(--holo-mono)}

/* ---- type ---- */
:root[data-theme-style="holo"] h1,
:root[data-theme-style="holo"] h2,
:root[data-theme-style="holo"] h3{font-family:var(--holo-display);font-weight:400;letter-spacing:-.005em}
:root[data-theme-style="holo"] h2.view{font-weight:300;font-size:22px;color:var(--ink);letter-spacing:-.01em}
:root[data-theme-style="holo"] .card h3{font-weight:500;font-size:14px;letter-spacing:.01em}
:root[data-theme-style="holo"] .tile .v,
:root[data-theme-style="holo"] .dhead .wob{font-family:var(--holo-display);font-weight:300;color:var(--ink);letter-spacing:-.02em}
:root[data-theme-style="holo"] .tile .v{font-size:24px}
:root[data-theme-style="holo"] .tile.good .v{color:var(--good)}

/* ---- header and nav: glass bar, ember underline on the active tab ---- */
/* no backdrop-filter on the header or the bottom bar: it would make them the containing block of the
   fixed desktop sidebar and phone sheets inside them, clipping those (seen 11/3 on the desktop layout) */
:root[data-theme-style="holo"] .apphead{background:rgba(10,10,12,.96);border-bottom:1px solid var(--line);box-shadow:0 1px 0 rgba(224,189,106,.12)}
:root[data-theme-style="holo"] .apphead .brand{color:var(--ink);font-family:var(--holo-display);letter-spacing:.14em}
:root[data-theme-style="holo"] .apphead .brand .cn{color:var(--holo-ember)}
:root[data-theme-style="holo"] .navtab{color:var(--muted);font-weight:500;border-radius:20px}
:root[data-theme-style="holo"] .navtab:hover{background:rgba(201,206,214,.12);color:var(--ink)}
:root[data-theme-style="holo"] .navtab.on{background:rgba(201,206,214,.18);color:#fff;box-shadow:inset 0 0 0 1px rgba(201,206,214,.45),0 0 16px rgba(201,206,214,.18)}
:root[data-theme-style="holo"] .navmenu{background:rgba(23,24,27,.96);border:1px solid var(--line2);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
:root[data-theme-style="holo"] .navitem.on{background:rgba(224,189,106,.16);color:#fff;box-shadow:inset 2px 0 0 var(--holo-ember)}
:root[data-theme-style="holo"] .bottomnav{background:rgba(10,10,12,.97);border-top:1px solid var(--line)}

/* ---- surfaces: glass card with a hairline and a thin ember edge on top ---- */
:root[data-theme-style="holo"] .card,
:root[data-theme-style="holo"] .tile,
:root[data-theme-style="holo"] .fact,
:root[data-theme-style="holo"] .confirm-box{position:relative;background:linear-gradient(180deg,rgba(201,206,214,.08),rgba(14,15,17,.72));border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}
:root[data-theme-style="holo"] .card::before,
:root[data-theme-style="holo"] .tile::before{content:"";position:absolute;left:16px;right:16px;top:-1px;height:1px;background:linear-gradient(90deg,transparent,var(--holo-edge),transparent);pointer-events:none}
:root[data-theme-style="holo"] .fact{border-radius:10px;background:rgba(201,206,214,.06)}
:root[data-theme-style="holo"] .confirm-overlay{background:rgba(3,3,4,.6);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}

/* ---- controls ---- */
:root[data-theme-style="holo"] .btn{background:linear-gradient(180deg,#e8c77a,#c9a24f);color:#14110a;border-radius:12px;font-weight:600;box-shadow:0 6px 20px -8px rgba(224,189,106,.7)}
:root[data-theme-style="holo"] .btn:hover{filter:brightness(1.06)}
:root[data-theme-style="holo"] .btn.ghost{background:rgba(201,206,214,.06);color:var(--ink);border:1px solid var(--line2);box-shadow:none}
:root[data-theme-style="holo"] .btn.ghost:hover{border-color:rgba(224,189,106,.55)}
:root[data-theme-style="holo"] .btn.navy{background:rgba(201,206,214,.18);color:#fff;box-shadow:inset 0 0 0 1px rgba(201,206,214,.45)}
:root[data-theme-style="holo"] .btn.crit{background:linear-gradient(180deg,#ff7d92,#e8456a);color:#1d0408}
:root[data-theme-style="holo"] input,
:root[data-theme-style="holo"] select,
:root[data-theme-style="holo"] textarea{background:rgba(8,8,9,.7);border-color:var(--line2);color:var(--ink);border-radius:10px}
:root[data-theme-style="holo"] input:focus,
:root[data-theme-style="holo"] select:focus,
:root[data-theme-style="holo"] textarea:focus{outline:2px solid rgba(224,189,106,.7);box-shadow:0 0 0 4px rgba(224,189,106,.12)}
:root[data-theme-style="holo"] .seg button{background:rgba(201,206,214,.06);border-color:var(--line2)}
:root[data-theme-style="holo"] .seg button.on{background:rgba(224,189,106,.18);color:#fff;border-color:rgba(224,189,106,.6)}
:root[data-theme-style="holo"] .pill,
:root[data-theme-style="holo"] .chip{border-radius:20px;letter-spacing:.06em}
:root[data-theme-style="holo"] .chip.owner{background:rgba(224,189,106,.16);color:var(--holo-ember2)}
:root[data-theme-style="holo"] .msg{border:1px solid currentColor;border-color:rgba(255,255,255,.08)}
:root[data-theme-style="holo"] .toast{background:rgba(23,24,27,.95);color:var(--ink);border:1px solid var(--line2);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
:root[data-theme-style="holo"] .toast.warn{color:#1d1204}
:root[data-theme-style="holo"] .attn .item{background:rgba(201,206,214,.07)}
:root[data-theme-style="holo"] .attn button.item:hover{background:rgba(201,206,214,.14)}

/* ---- tables and the spreadsheet grid ---- */
:root[data-theme-style="holo"] th{color:var(--muted);font-weight:500;letter-spacing:.08em}
:root[data-theme-style="holo"] td{border-color:rgba(228,231,236,.08)}
:root[data-theme-style="holo"] .dg-wrap{border-color:var(--line);background:rgba(8,8,9,.4)}
:root[data-theme-style="holo"] table.dg th{background:rgba(23,24,27,.96);color:var(--muted);font-family:var(--holo-body);letter-spacing:.06em}
:root[data-theme-style="holo"] table.dg tr.dg-row:hover td{background:rgba(224,189,106,.07)}
:root[data-theme-style="holo"] table.dg tr.dg-group td{background:rgba(201,206,214,.10);color:var(--holo-violet2)}
:root[data-theme-style="holo"] table.dg td.r,
:root[data-theme-style="holo"] table.dg .r{font-family:var(--holo-mono);font-size:12px}

/* ---- charts and meters: ember for money spent/done, violet for plan, soft glow ---- */
:root[data-theme-style="holo"] .bar,
:root[data-theme-style="holo"] .plbar,
:root[data-theme-style="holo"] .money-meter .mm-bar{background:rgba(228,231,236,.10);border-color:transparent}
:root[data-theme-style="holo"] .bar>i{background:linear-gradient(90deg,var(--holo-violet),var(--holo-ember));box-shadow:0 0 10px rgba(224,189,106,.45)}
:root[data-theme-style="holo"] .bar>i.near{background:var(--warn)}
:root[data-theme-style="holo"] .bar>i.over{background:var(--crit)}
:root[data-theme-style="holo"] .plbar .cost{background:linear-gradient(90deg,#6c7480,var(--holo-violet))}
:root[data-theme-style="holo"] .plbar .prof{background:linear-gradient(90deg,#b8913f,var(--holo-ember));box-shadow:0 0 10px rgba(224,189,106,.4)}
:root[data-theme-style="holo"] .staff-bar{box-shadow:0 0 10px rgba(201,206,214,.25)}
:root[data-theme-style="holo"] svg text{fill:var(--muted)}

/* ---- motion: hover and focus ease in; screens re-render on live refresh, so cards do not
   animate in (a repeating entrance would flicker). Nothing moves for people who ask for less. ---- */
@media (prefers-reduced-motion:no-preference){
  :root[data-theme-style="holo"] .btn,
  :root[data-theme-style="holo"] .navtab,
  :root[data-theme-style="holo"] .card{transition:border-color .25s,box-shadow .25s,background-color .25s,filter .2s}
}
