/* The one palette both surfaces wear. The wall is a 2560x1440 panel read from
   across a room and the phone is held at arm's length, but a status colour that
   means "error" on one and something else on the other is a fleet with two
   vocabularies. Layout is per-surface; colour is not.

   tools/ct-theme.mjs writes the ct-theme block below; the rest is the mapping
   from CTTHEME's roles onto the names the components actually ask for. */
:root{
  /* ct-theme:start */
    /* GENERATED by tools/ct-theme.mjs from CTTHEME — do not hand-edit.
       Accent draws marks; ink writes words; red is the actionable event.
       The field roles below are the house blue and are REPLACED per page by
       applySkin(); the ink and state roles never are. */
    --ct-pane:#090d27; --ct-well:#0a0e2a; --ct-current:#0d1338; --ct-raised:#101745;
    --ct-rule:#2a367e; --ct-structure:#5361b5; --ct-muted:#8b91b8; --ct-ink:#babdc9;
    --ct-doc:#7480c4;
    --ct-accent:#6679f3; --ct-event:#ef8a8f; --ct-done:#57a373; --ct-warning:#b38d4d;
  /* ct-theme:end */
  --ct-track:var(--ct-raised); --ct-separator:var(--ct-rule); --ct-dark-ink:var(--ct-pane);
  --bg:var(--ct-pane); --panel:var(--ct-well); --panel2:var(--ct-current); --line:var(--ct-rule);
  --fg:var(--ct-ink); --dim:var(--ct-muted); --dimmer:var(--ct-structure); --prose:var(--ct-doc);
  --ask:var(--ct-event); --error:var(--ct-event); --warn:var(--ct-warning); --running:var(--ct-accent);
  --ok:var(--ct-done); --stale:var(--ct-structure); --info:var(--ct-accent); --idle:var(--ct-structure); --live:var(--ct-done);
  --mono:ui-monospace,SFMono-Regular,"SF Mono",Menlo,"DejaVu Sans Mono",monospace;
  --tick:18px;   /* corner registration marks, sized for the 2560px panel */
  /* The two per-project roles. The FIELD (well/current/raised/rule above) and
     these two are rewritten from the active view's `skin` when a page comes
     up: background is LOCATION, and on a wall that rotates, location is which
     project you are looking at. Words never move — ink, muted and every status
     hue stay house-fixed, so `running` is the same colour on every page and a
     page cannot recolour a state. Defaults here are the CTTHEME house blue,
     overwritten by the active view's skin before first paint. */
  --view-mark:var(--ct-accent);      /* draws marks: page glyph, tab, measurement */
  --view-frame:var(--ct-structure);  /* registration ticks around every plate */
}
/* The paper wall. Same roles, same ladder, solved darker on a light field by
   tools/ct-theme.mjs. Only the house roles live here; the per-page paper
   fields are PAPER_SKINS in views.js and are applied by applySkin(). */
:root[data-theme="light"]{
  color-scheme:light;
  /* ct-paper:start */
    /* GENERATED by tools/ct-theme.mjs — the same CTTHEME ladder solved darker
       on paper. Selected by data-theme="light" on <html>; see views.js. */
    --ct-pane:#edeef8; --ct-well:#ecedf8; --ct-current:#e6e8f5; --ct-raised:#dfe1f3;
    --ct-rule:#acb4e3; --ct-structure:#717cc2; --ct-muted:#4e5580; --ct-ink:#353744;
    --ct-doc:#505db4;
    --ct-accent:#3851ef; --ct-event:#90141a; --ct-done:#346145; --ct-warning:#6b542e;
  /* ct-paper:end */
}

