/* ─────────────────────────────────────────────────────────────────────────
   UDF.one — the Cream register (brand identity v6, second surface).
   Ink is the field; Cream is the paper: reading, reports, Talk.
   Active only with <html data-theme="cream"> (Settings → Appearance, stored
   per browser as localStorage 'udf.theme' = ink | cream | auto; index.html
   applies it before the first paint). Without the attribute this file is inert.

   On paper the brand goes solid: named colours, no gradient, glow or blur.
   Cyan does not read on Cream, so Deep-sea #0e7490 carries the signal in
   type and borders; the bright cyan stays for marks. Coral stays the action.
   The six primitives sit one stop darker so they work as text and chips.
   ───────────────────────────────────────────────────────────────────────── */
html[data-theme="cream"]{
  color-scheme:light;
  --field:#f3ecdf; --field-hi:#f3ecdf; --field-lo:#f3ecdf;
  --bg:#f3ecdf; --bg-1:#fbf7ef; --bg-2:#ebe3d3; --bg-3:#e0d7c4;
  --line:#cdc4b1; --line-2:#e2dac9;
  --tx:#060b18; --tx-2:#3b4152; --tx-3:#6c7181;
  --brand:#0e7490; --brand-2:#0097ac;
  --signal:#0e7490;
  --weaver:#0e7490; --weaver-soft:#0097ac; --weaver-deep:#065f6e; --weaver-glow:#dcebec;
  --steel:#3b4152; --steel-soft:#060b18;
  --coral:#ff6a55; --coral-soft:#e85a46;
  --ok:#0f8f5f; --warn:#a66a0f; --bad:#c0392b;
  --l:#e0455f; --e:#0284c7; --a:#b45309; --p:#4f46e5; --ev:#059669; --d:#a21caf;
  --l-s:color-mix(in srgb,var(--l) 12%,var(--bg-1)); --e-s:color-mix(in srgb,var(--e) 12%,var(--bg-1));
  --a-s:color-mix(in srgb,var(--a) 12%,var(--bg-1)); --p-s:color-mix(in srgb,var(--p) 12%,var(--bg-1));
  --ev-s:color-mix(in srgb,var(--ev) 12%,var(--bg-1)); --d-s:color-mix(in srgb,var(--d) 12%,var(--bg-1));
  --shadow:none;
}

/* surfaces: one named colour each */
html[data-theme="cream"] body{background:var(--bg)}
html[data-theme="cream"] .sidebar{background:var(--bg-1)}
html[data-theme="cream"] .main{background:var(--bg)}
html[data-theme="cream"] .topbar{background:var(--bg-1);backdrop-filter:none}
html[data-theme="cream"] .card,
html[data-theme="cream"] .pstat,
html[data-theme="cream"] .gate-card{background:var(--bg-1);box-shadow:none}
html[data-theme="cream"] .pstat:hover{box-shadow:none}
html[data-theme="cream"] .gate::before,
html[data-theme="cream"] .gate::after{display:none}
html[data-theme="cream"] .top-ent{background:var(--bg-2)}

/* marks and wordmark: no halo, ".one" in the signal colour */
html[data-theme="cream"] .brand-mark svg{filter:none;animation:none}
html[data-theme="cream"] .brand-name b{color:var(--brand)}
html[data-theme="cream"] .gate-mark img,
html[data-theme="cream"] .splash-mark,
html[data-theme="cream"] .cmdk .mark-mini,
html[data-theme="cream"] .iw-glyph.glow,
html[data-theme="cream"] .udf-mark.glow,
html[data-theme="cream"] .udf-mark.agent.glow{filter:none}

/* rail */
html[data-theme="cream"] .ent-switch:hover{border-color:var(--brand)}
html[data-theme="cream"] .ent-switch .dot,
html[data-theme="cream"] .build-stamp .thread-dot{background:var(--brand);box-shadow:none}
html[data-theme="cream"] .nav-item.on,
html[data-theme="cream"] .nav-item.iw.on{background:var(--bg-2);border-color:var(--line);box-shadow:inset 2px 0 0 var(--brand)}
html[data-theme="cream"] .nav-item.on .ic,
html[data-theme="cream"] .nav-item.iw.on .ic{filter:none;color:var(--brand)}
html[data-theme="cream"] .nav-item .beta-tag{color:var(--tx-3);border-color:var(--line)}
html[data-theme="cream"] .nav-foot .av{color:var(--tx-2)}

/* controls */
html[data-theme="cream"] .btn:hover{border-color:var(--tx-3);color:var(--tx);background:var(--bg-2)}
html[data-theme="cream"] .btn.primary{background:var(--brand);border-color:var(--brand);color:#f3ecdf;box-shadow:none}
html[data-theme="cream"] .btn.primary:hover{background:var(--brand-2);border-color:var(--brand-2);color:#f3ecdf}
html[data-theme="cream"] .btn.weaver,
html[data-theme="cream"] .btn.weaver:hover{color:#f3ecdf}
html[data-theme="cream"] .btn.coral,
html[data-theme="cream"] .btn.coral:hover,
html[data-theme="cream"] .btn.emerald{color:#fff}
html[data-theme="cream"] .input{background:var(--bg-1)}
html[data-theme="cream"] .input:focus{border-color:var(--brand);box-shadow:none}
html[data-theme="cream"] .tbl tr:hover td{background:var(--bg-2)}
html[data-theme="cream"] .cmdk{background:var(--bg-1)}
html[data-theme="cream"] .cmdk:hover{border-color:var(--tx-3)}
html[data-theme="cream"] .cmdk .kbd{background:var(--bg-2)}
html[data-theme="cream"] .chip{background:var(--bg-2)}
html[data-theme="cream"] .meter{background:var(--bg-3)}

/* plicai keeps its pulse, loses its halo */
html[data-theme="cream"] .agent-dot{box-shadow:none}
html[data-theme="cream"] .agent-dot.pulse{animation:iw-glyph-pulse 1.6s ease-in-out infinite}
html[data-theme="cream"] .agent-pill{background:var(--weaver-glow)}
html[data-theme="cream"] .glow-rule{background:var(--line)}
html[data-theme="cream"] .stage .map-layers .fchip{background:var(--bg-1);backdrop-filter:none}
