/* aio skins — GENERATED from style/tokens.json by
   modules/automation/tools/aio_style_tokens.py. Do not edit this file; edit the JSON and run the
   generator. Every surface imports this stylesheet, so one palette, one type scale, one row rhythm
   applies to the dashboard, the desk applications, the public pages and the watchdog pages. */
/* Skins only: no base palette, no component layer, no prefers-color-scheme block. Load this from
   a page that owns its own layout. */
/* skin: estate — aio */
html[data-skin="estate"]:root {
  --bg: #0a0e12;
  --panel: #101620;
  --line: #1c2530;
  --txt: #d7e2ea;
  --dim: #71828f;
  --neon: #39ff14;
  --red: #ff2b4e;
  --amber: #ffc857;
  --cyan: #5ce1ff;
}
/* skin: lcars — LCARS */
html[data-skin="lcars"]:root {
  --bg: #000000;
  --panel: #161616;
  --line: #ff9c00;
  --txt: #ffcc99;
  --dim: #9999ff;
  --neon: #ff9c00;
  --red: #cc6666;
  --amber: #ffcc66;
  --cyan: #9999ff;
  --bg-elevated: #0a0a0a;
  --panel-2: #1f1f1f;
  --border: #ff9c00;
  --border-strong: #ffcc99;
  --text: #ffcc99;
  --text-dim: #cc99cc;
  --muted: #9999ff;
  --accent: #ff9c00;
  --accent-ink: #000000;
  --ok: #99ccff;
  --warn: #ffcc66;
  --error: #cc6666;
  --info: #9999ff;
  --radius-md: 18px;
  --font-ui: 'Antonio', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Antonio', 'Arial Narrow', Arial, sans-serif;
}
/* LCARS — a Star Trek: TNG console, not "the same page in orange".

   What makes LCARS recognisable is geometry, not palette: a heavy left rail whose blocks flow into one
   another through an elbow at the top, everything else on black, headings in wide letterspacing, readouts
   pushed to the right, and nothing rounded except where a bar ends. The watchdog pages already carry a
   fixed left sidebar (#aio-nav), so that rail becomes the LCARS column rather than a second thing bolted
   beside it.

   Scoped to html[data-skin="lcars"] and nothing else, so it can never leak into another skin. */
html[data-skin="lcars"] {
  --lcars-orange: #ff9c00;
  --lcars-peach: #ffcc99;
  --lcars-lilac: #cc99cc;
  --lcars-blue: #9999ff;
  --lcars-ice: #99ccff;
  --lcars-red: #cc6666;
  --lcars-bg: #000;
  --lcars-rail: 186px;
}

html[data-skin="lcars"] body {
  background: var(--lcars-bg);
  color: var(--lcars-peach);
  font-family: 'Antonio', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  letter-spacing: .02em;
  padding: 1.2rem 1.6rem 2rem calc(var(--lcars-rail) + 1.4rem);
}

/* The right edge: a column of segments, the way a panel has its readouts down one side. Decorative and
   pointer-events:none, so it never sits between a reader and a link. */
html[data-skin="lcars"] body::after {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 14px;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    var(--lcars-lilac) 0 26px,
    #000 26px 34px,
    var(--lcars-blue) 34px 54px,
    #000 54px 62px,
    var(--lcars-orange) 62px 96px,
    #000 96px 104px);
  opacity: .85;
}

/* ── the rail ─────────────────────────────────────────────────────────────── */
html[data-skin="lcars"] #aio-nav {
  width: var(--lcars-rail);
  background: var(--lcars-bg);
  border-right: none;
  padding: 0 0 0 8px;
  gap: 0;
  overflow-y: auto;
  scrollbar-width: none;
}
html[data-skin="lcars"] #aio-nav::-webkit-scrollbar { display: none; }

/* The elbow: a block that curves out of the rail and into the header bar, which is what makes the frame
   read as one continuous structure instead of a list beside a heading. */
html[data-skin="lcars"] #aio-nav .aio-elbow {
  display: block;
  /* flex:0 0 auto is load-bearing: the rail is a flex column whose list outgrows the window, so without
     it the elbow is shrunk to zero height like every other item and simply is not there. */
  flex: 0 0 auto;
  min-height: 74px;
  height: 74px;
  margin: 0 0 0 0;
  background: var(--lcars-orange);
  border-radius: 0 0 0 34px;
  box-shadow: inset 0 -10px 0 0 var(--lcars-bg);
}
html[data-skin="lcars"] #aio-nav::after {
  content: "";
  flex: 0 0 auto;
  display: block;
  height: 10px;
  margin-top: auto;
  background: var(--lcars-lilac);
  border-radius: 0 10px 10px 0;
}

html[data-skin="lcars"] #aio-nav .g {
  display: block;
  margin: 8px 0 2px;
  padding: 3px 12px 3px 14px;
  background: var(--lcars-lilac);
  color: #000;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  border-radius: 0 14px 14px 0;
}
html[data-skin="lcars"] #aio-nav .g:nth-of-type(even) { background: var(--lcars-blue); }

html[data-skin="lcars"] #aio-nav a {
  display: block;
  margin: 1px 0;
  padding: 4px 10px 4px 18px;
  color: var(--lcars-peach);
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 0 12px 12px 0;
  text-decoration: none;
  border-left: 5px solid transparent;
}
html[data-skin="lcars"] #aio-nav a:hover {
  background: var(--lcars-orange);
  color: #000;
  border-left-color: var(--lcars-ice);
}
html[data-skin="lcars"] #aio-nav a.here {
  background: var(--lcars-blue);
  color: #000;
  font-weight: 700;
}

/* ── content ──────────────────────────────────────────────────────────────── */
html[data-skin="lcars"] h1 {
  margin: 0 0 .35rem;
  padding: 6px 22px 6px 18px;
  background: var(--lcars-orange);
  color: #000;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  border-radius: 26px 0 0 26px;
  border-bottom-right-radius: 0;
  display: block;
  /* The readout that every LCARS panel carries: a label and a number, sitting at the far right. */
  background-image: linear-gradient(to right, var(--lcars-orange) 62%, var(--lcars-lilac) 62%);
}
html[data-skin="lcars"] h1::after {
  content: "LCARS 47 · 2380";
  float: right;
  padding-left: 14px;
  font-size: .78rem;
  letter-spacing: .16em;
  font-variant-numeric: tabular-nums;
  color: #000;
  opacity: .85;
}
html[data-skin="lcars"] h2,
html[data-skin="lcars"] .card-title {
  color: var(--lcars-ice);
  font-size: 1rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--lcars-orange);
  padding-bottom: 2px;
}
html[data-skin="lcars"] .sub {
  color: var(--lcars-lilac);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
}

html[data-skin="lcars"] .card,
html[data-skin="lcars"] section,
html[data-skin="lcars"] details {
  background: var(--lcars-panel, #161616);
  border: none;
  border-left: 7px solid var(--lcars-orange);
  border-radius: 0 20px 20px 0;
  padding: 10px 16px 12px;
  margin: 0 0 12px;
}
html[data-skin="lcars"] .card:nth-of-type(3n) { border-left-color: var(--lcars-lilac); }
html[data-skin="lcars"] .card:nth-of-type(3n+1) { border-left-color: var(--lcars-blue); }

html[data-skin="lcars"] table { width: 100%; border-collapse: collapse; }
html[data-skin="lcars"] th {
  text-align: left;
  color: #000;
  background: var(--lcars-lilac);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 10px;
}
html[data-skin="lcars"] td {
  padding: 4px 10px;
  border-bottom: 1px solid #2a2a2a;
  color: var(--lcars-peach);
}

/* Readouts are right-aligned, like the numerals on a panel. */
html[data-skin="lcars"] td:last-child,
html[data-skin="lcars"] .num { text-align: right; font-variant-numeric: tabular-nums; }

html[data-skin="lcars"] a { color: var(--lcars-ice); text-decoration: none; }
html[data-skin="lcars"] a:hover { color: var(--lcars-orange); text-decoration: underline; }

/* The verdict history is drawn with severity literals by its builder (red/amber/green). A skin may not
   repaint a status -- red must keep meaning broken -- but it can pull those hues into the LCARS salmon,
   mustard and pale-green range without changing which one is which. */
html[data-skin="lcars"] .vbar {
  width: 26px;
  height: 15px;
  border-radius: 0 8px 8px 0;
  filter: saturate(.55) brightness(1.1) hue-rotate(-8deg);
}
html[data-skin="lcars"] code,
html[data-skin="lcars"] pre,
html[data-skin="lcars"] .mono {
  font-family: 'Antonio', 'Arial Narrow', Arial, sans-serif;
  background: #0a0a0a;
  color: var(--lcars-ice);
  border-radius: 8px;
  padding: 1px 6px;
}

/* The menu toggle is a pill, because on LCARS every control is a pill. */
html[data-skin="lcars"] #aio-nav-toggle {
  background: var(--lcars-orange);
  color: #000;
  border: none;
  border-radius: 12px;
  font-size: 16px;
}

@media (max-width: 900px) {
  html[data-skin="lcars"] body { padding: 1rem; }
  /* The elbow stays: it lives inside the rail, which is still there at 780 px. Only what needs width --
     the right-hand strip and the header readout -- goes away. Hiding the elbow too left the rail looking
     like a plain list with orange pills, i.e. not LCARS. */
  html[data-skin="lcars"] #aio-nav .aio-elbow { display: block; flex: 0 0 auto; min-height: 54px;
    height: 54px; border-radius: 0 0 0 24px; }
  html[data-skin="lcars"] body::after { display: none; }
  html[data-skin="lcars"] h1::after { display: none; }
  html[data-skin="lcars"] h1 { letter-spacing: .18em; font-size: 1.15rem; }
}
/* skin: terminal — terminal */
html[data-skin="terminal"]:root {
  --bg: #04120a;
  --panel: #061a0e;
  --line: #0f3d24;
  --txt: #7dfba0;
  --dim: #2f8a53;
  --neon: #39ff88;
  --red: #ff5f56;
  --amber: #ffd166;
  --cyan: #6cc6ff;
  --bg-elevated: #071a0f;
  --panel-2: #08220f;
  --border: #0f3d24;
  --border-strong: #1d6b3d;
  --text: #7dfba0;
  --text-dim: #4fbf74;
  --muted: #2f8a53;
  --accent: #39ff88;
  --accent-ink: #04120a;
  --ok: #39ff88;
  --warn: #ffd166;
  --error: #ff5f56;
  --info: #6cc6ff;
  --radius-md: 0px;
  --font-ui: 'IBM Plex Mono', 'SFMono-Regular', Menlo, Consolas, monospace;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Menlo, Consolas, monospace;
}
/* terminal — green phosphor, square corners, one faint scanline.

   The point is not "dark green": it is that nothing is rounded, nothing glows softly, and the type is
   monospace at a fixed size, the way a serial console reports. Boxes get a single hairline border instead
   of a shadow, and the scanline is a repeating gradient at 3% opacity — visible as texture, unreadable as
   a stripe. */
html[data-skin="terminal"] body {
  font-family: 'IBM Plex Mono', 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.55;
  letter-spacing: 0;
  background-image: repeating-linear-gradient(
    to bottom, rgba(125, 251, 160, .035) 0 1px, transparent 1px 3px);
}

html[data-skin="terminal"] h1 {
  color: var(--accent);
  letter-spacing: .08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-strong);
}
html[data-skin="terminal"] h1::before { content: "> "; color: var(--muted); }
html[data-skin="terminal"] h2,
html[data-skin="terminal"] .card-title { color: var(--text-dim); letter-spacing: .06em; }
html[data-skin="terminal"] h2::before { content: "## "; color: var(--muted); }

html[data-skin="terminal"] .card,
html[data-skin="terminal"] section,
html[data-skin="terminal"] details {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
}
html[data-skin="terminal"] .sub { color: var(--muted); }

html[data-skin="terminal"] table { border-collapse: collapse; }
html[data-skin="terminal"] th {
  text-align: left;
  color: var(--muted);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 11px;
  border-bottom: 1px solid var(--border-strong);
}
html[data-skin="terminal"] td { border-bottom: 1px dotted var(--border); }

html[data-skin="terminal"] a { color: var(--info); text-decoration: none; }
html[data-skin="terminal"] a:hover { text-decoration: underline; }

html[data-skin="terminal"] #aio-nav {
  background: #03100a;
  border-right: 1px solid var(--border);
}
html[data-skin="terminal"] #aio-nav .g,
html[data-skin="terminal"] #aio-nav .g + a { --unused: 0; }
html[data-skin="terminal"] #aio-nav .g {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 10.5px;
}
html[data-skin="terminal"] #aio-nav a.here { color: var(--accent); }
html[data-skin="terminal"] #aio-nav a.here::before { content: "▸ "; }

html[data-skin="terminal"] .vbar { border-radius: 0; }
html[data-skin="terminal"] code,
html[data-skin="terminal"] pre { background: #02110a; color: var(--accent); }
/* skin: blueprint — blueprint */
html[data-skin="blueprint"]:root {
  --bg: #08182c;
  --panel: #0a1c31;
  --line: #2f6f9f;
  --txt: #cfe6f5;
  --dim: #6f9dbb;
  --neon: #74d0ff;
  --red: #ff9a8a;
  --amber: #ffd479;
  --cyan: #8fe4ff;
  --bg-elevated: #0b2038;
  --panel-2: #0e2440;
  --border: #2f6f9f;
  --border-strong: #4b93c4;
  --text: #cfe6f5;
  --text-dim: #9dc2d8;
  --muted: #6f9dbb;
  --accent: #74d0ff;
  --accent-ink: #062033;
  --ok: #7ff0c4;
  --warn: #ffd479;
  --error: #ff9a8a;
  --info: #8fe4ff;
  --radius-md: 2px;
  --font-ui: 'IBM Plex Mono', 'SFMono-Regular', Menlo, Consolas, monospace;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Menlo, Consolas, monospace;
}
/* blueprint — an engineering drawing of the estate.

   Navy ground, a faint cyan grid at 40px, hairline rules, and every label in monospace caps with a
   letterspaced title block. Cards lose their fill and become drawn frames: a 1px border plus corner ticks,
   which is what a drawing does instead of a drop shadow. */
html[data-skin="blueprint"] body {
  background-color: #08182c;
  background-image:
    linear-gradient(rgba(116, 208, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(116, 208, 255, .07) 1px, transparent 1px);
  background-size: 40px 40px;
  font-family: 'IBM Plex Mono', 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.6;
}

html[data-skin="blueprint"] h1 {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 1.15rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: .3rem;
}
html[data-skin="blueprint"] h2,
html[data-skin="blueprint"] .card-title {
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .82rem;
  font-weight: 500;
}
html[data-skin="blueprint"] .sub {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 10.5px;
}

html[data-skin="blueprint"] .card,
html[data-skin="blueprint"] section,
html[data-skin="blueprint"] details {
  position: relative;
  background: rgba(10, 28, 49, .72);
  border: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
  padding: 12px 14px;
}
/* Corner ticks: the draughtsman's frame, drawn with four small borders. */
html[data-skin="blueprint"] .card::before,
html[data-skin="blueprint"] .card::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--accent);
  border-style: solid;
  pointer-events: none;
}
html[data-skin="blueprint"] .card::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
html[data-skin="blueprint"] .card::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

html[data-skin="blueprint"] table { border-collapse: collapse; width: 100%; }
html[data-skin="blueprint"] th {
  text-align: left;
  color: var(--accent);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 10.5px;
  border-bottom: 1px solid var(--border-strong);
}
html[data-skin="blueprint"] td {
  border-bottom: 1px solid rgba(47, 111, 159, .5);
  color: var(--text);
}
html[data-skin="blueprint"] td:last-child { text-align: right; font-variant-numeric: tabular-nums; }

html[data-skin="blueprint"] a { color: var(--accent); text-decoration: none; }
html[data-skin="blueprint"] a:hover { text-decoration: underline; text-underline-offset: 2px; }

html[data-skin="blueprint"] #aio-nav {
  background: rgba(8, 24, 44, .96);
  border-right: 1px solid var(--border);
}
html[data-skin="blueprint"] #aio-nav .g {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 10px;
}
html[data-skin="blueprint"] #aio-nav a {
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 11.5px;
}
html[data-skin="blueprint"] #aio-nav a.here {
  color: var(--accent);
  border-left: 2px solid var(--accent);
  padding-left: 8px;
}
html[data-skin="blueprint"] .vbar { border-radius: 0; outline: 1px solid rgba(116, 208, 255, .5); }
html[data-skin="blueprint"] code,
html[data-skin="blueprint"] pre { background: rgba(116, 208, 255, .1); color: var(--accent); }
/* skin: paper — paper */
html[data-skin="paper"]:root {
  --bg: #faf8f3;
  --panel: #ffffff;
  --line: #d9d2c4;
  --txt: #1f1b16;
  --dim: #6b6357;
  --neon: #0a5c3a;
  --red: #a3231b;
  --amber: #8a5a00;
  --cyan: #1d5f8a;
  --bg-elevated: #ffffff;
  --panel-2: #f4f1ea;
  --border: #d9d2c4;
  --border-strong: #b9ae9a;
  --text: #1f1b16;
  --text-dim: #4a4238;
  --muted: #6b6357;
  --accent: #0a5c3a;
  --accent-ink: #ffffff;
  --ok: #0a5c3a;
  --warn: #8a5a00;
  --error: #a3231b;
  --info: #1d5f8a;
  --radius-md: 3px;
  --font-ui: 'Iowan Old Style', Palatino, Georgia, 'Times New Roman', serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Menlo, Consolas, monospace;
}
/* paper — the same page as a printed report.

   Warm white, serif headings, hairline rules, no glow and no shadow. Numerals stay tabular mono because a
   table of figures in proportional type is harder to scan, but everything else is set for reading on
   paper: generous leading, underlined links, and rules instead of panel fills. */
html[data-skin="paper"] body {
  background: #faf8f3;
  color: #1f1b16;
  font-family: 'Iowan Old Style', Palatino, Georgia, 'Times New Roman', serif;
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: .005em;
}

html[data-skin="paper"] h1 {
  font-family: 'Iowan Old Style', Palatino, Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: #12100d;
  border-bottom: 2px solid #12100d;
  padding-bottom: .25rem;
  margin-bottom: .35rem;
}
html[data-skin="paper"] h2,
html[data-skin="paper"] .card-title {
  font-family: 'Iowan Old Style', Palatino, Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #12100d;
  border-bottom: 1px solid var(--border);
  padding-bottom: .15rem;
}
html[data-skin="paper"] .sub {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--muted);
}

html[data-skin="paper"] .card,
html[data-skin="paper"] section,
html[data-skin="paper"] details {
  background: transparent;
  border: none;
  border-top: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
  padding: 14px 0 10px;
}
html[data-skin="paper"] .card:last-child { border-bottom: 1px solid var(--border); }

html[data-skin="paper"] table { width: 100%; border-collapse: collapse; }
html[data-skin="paper"] th {
  text-align: left;
  font-family: 'IBM Plex Mono', Menlo, Consolas, monospace;
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #6b6357;
  border-bottom: 1px solid #12100d;
  padding: 4px 8px 4px 0;
}
html[data-skin="paper"] td {
  font-family: 'IBM Plex Mono', Menlo, Consolas, monospace;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid #e6e0d4;
  padding: 5px 8px 5px 0;
  color: #241f19;
}
html[data-skin="paper"] td:last-child { text-align: right; }

html[data-skin="paper"] a { color: #0a5c3a; text-decoration: underline; text-underline-offset: 2px; }
html[data-skin="paper"] a:hover { background: #eef4ea; }

html[data-skin="paper"] #aio-nav {
  background: #f2eee5;
  border-right: 1px solid var(--border);
}
html[data-skin="paper"] #aio-nav .g {
  font-family: 'IBM Plex Mono', Menlo, Consolas, monospace;
  font-size: 9.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #8a8172;
}
html[data-skin="paper"] #aio-nav a { color: #2a241d; font-size: 13px; }
html[data-skin="paper"] #aio-nav a.here {
  color: #0a5c3a;
  font-weight: 600;
  border-left: 3px solid #0a5c3a;
  padding-left: 7px;
}
html[data-skin="paper"] .vbar { border-radius: 1px; }
html[data-skin="paper"] code,
html[data-skin="paper"] pre {
  font-family: 'IBM Plex Mono', Menlo, Consolas, monospace;
  background: #f0ebe0;
  color: #2a241d;
}
