/* Check Engine Light: one stylesheet for the agent's window, the server pages and the ticket frame.
   Series colors .s1–.s8 are the validated categorical order (light and dark steps); status colors are kept
   apart from them and always come with an icon and a word. */
:root {
  color-scheme: light;
  --page: #f9f9f9; --surface: #ffffff; --ink: #191919; --ink2: #666666; --grid: #e7e7e7; --line: #d4d4d4;
  --accent: #257de0;
  --s1: #257de0; --s2: #f47230; --s3: #00b894; --s4: #f2a600; --s5: #ee7fac; --s6: #008a17; --s7: #6a4ce2; --s8: #ec4647;
  --good: #0aac23; --warn: #fbb315; --serious: #f18a59; --crit: #dc3c3d;
  --warn-ink: #8a5a00; --crit-ink: #b42324; --good-ink: #006c10;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #0b0b0b; --surface: #191919; --ink: #efefef; --ink2: #9c9c9c; --grid: #303030; --line: #3a3a3a;
    --accent: #338ced;
    --s1: #338ced; --s2: #e76624; --s3: #00a888; --s4: #d28e05; --s5: #e24d8b; --s6: #0aac23; --s7: #9887ef; --s8: #eb6263;
    --warn-ink: #fbb315; --crit-ink: #f07b7c; --good-ink: #0aac23;
  }
}
* { box-sizing: border-box; }
body { margin: 0; padding: 16px; background: var(--page); color: var(--ink); font: 15px/1.45 system-ui, "Segoe UI", sans-serif; }
body.embed { padding: 8px; background: var(--surface); }
main, .wrap { max-width: 1100px; margin: 0 auto; }
h1 { font-size: 1.35rem; margin: 0 0 4px; } h2 { font-size: 1.1rem; margin: 22px 0 8px; }
a { color: var(--accent); }
.muted { color: var(--ink2); } .small { font-size: .87rem; } .mono { font-family: ui-monospace, Consolas, monospace; }
.card, .report, .chart-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.card { padding: 14px 16px; margin: 0 0 14px; }
.report { padding: 16px 18px; }
.embed .report { border: 0; padding: 0; }
.btn { display: inline-flex; gap: 6px; align-items: center; padding: 7px 14px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--accent); } .btn:disabled { opacity: .5; cursor: default; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-danger { color: var(--crit-ink); }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; }
textarea { width: 100%; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rep-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.tally { display: flex; gap: 8px; flex-wrap: wrap; align-items: start; }
.sev { padding: 3px 10px; border-radius: 99px; border: 1px solid var(--line); font-size: .87rem; font-weight: 600; }
.sev-crit { color: var(--crit-ink); } .sev-warn { color: var(--warn-ink); } .sev-ok { color: var(--good-ink); } .sev-info { color: var(--ink2); }
.note { background: var(--page); padding: 8px 12px; border-radius: 8px; }
.findings { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.findings li { display: grid; grid-template-columns: 7.2em 1fr; gap: 10px; padding: 8px 10px; border-radius: 8px;
  border: 1px solid var(--line); border-left: 4px solid var(--line); }
.findings li.sev-crit { border-left-color: var(--crit); } .findings li.sev-warn { border-left-color: var(--warn); }
.findings li.sev-ok { border-left-color: var(--good); }
.findings p { margin: 3px 0 0; } .sev-tag { font-weight: 700; font-size: .87rem; }
.findings li strong { color: var(--ink); }
.evidence { color: var(--ink2); }
.charts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); }
.chart-card { margin: 0; padding: 10px 12px; position: relative; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--grid); stroke-width: 1; }
.chart .tick, .chart .lim { fill: var(--ink2); font-size: 11px; }
.chart .lim-warn { stroke: var(--warn); stroke-width: 1; } .chart .lim-crit { stroke: var(--crit); stroke-width: 1; }
.chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .band { opacity: .14; stroke: none; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .cross { stroke: var(--ink2); stroke-width: 1; }
.chart .dot { stroke: var(--surface); stroke-width: 2; }
.s1 { stroke: var(--s1); fill: var(--s1); } .s2 { stroke: var(--s2); fill: var(--s2); } .s3 { stroke: var(--s3); fill: var(--s3); }
.s4 { stroke: var(--s4); fill: var(--s4); } .s5 { stroke: var(--s5); fill: var(--s5); } .s6 { stroke: var(--s6); fill: var(--s6); }
.s7 { stroke: var(--s7); fill: var(--s7); } .s8 { stroke: var(--s8); fill: var(--s8); }
.chart .line.s1, .chart .line.s2, .chart .line.s3, .chart .line.s4, .chart .line.s5, .chart .line.s6, .chart .line.s7, .chart .line.s8 { fill: none; }
.key { display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin: 0 6px 3px 0; vertical-align: middle; }
.key.s1 { background: var(--s1); } .key.s2 { background: var(--s2); } .key.s3 { background: var(--s3); } .key.s4 { background: var(--s4); }
.key.s5 { background: var(--s5); } .key.s6 { background: var(--s6); } .key.s7 { background: var(--s7); } .key.s8 { background: var(--s8); }
.tip { position: absolute; pointer-events: none; background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 6px 9px; font-size: .82rem; box-shadow: 0 4px 14px rgba(0,0,0,.15); white-space: nowrap; z-index: 2; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 4px 8px; border-bottom: 1px solid var(--grid); vertical-align: top; }
.legend td:nth-child(n+2), .legend th:nth-child(n+2) { text-align: right; font-variant-numeric: tabular-nums; }
.kv th { width: 9em; color: var(--ink2); font-weight: 500; }
.tool { border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; margin: 0 0 6px; }
.tool summary, .copy-box summary { cursor: pointer; }
pre { white-space: pre-wrap; word-break: break-word; max-height: 420px; overflow: auto; background: var(--page); padding: 8px; border-radius: 6px; font-size: .82rem; }
.copy-box { margin-top: 18px; }
footer { text-align: center; margin: 18px 0 4px; }
@media print {
  body { background: #fff; padding: 0; } .report { border: 0; } .copy-box, .no-print, nav { display: none; }
  .tool[open] pre, .tool pre { max-height: none; } .chart-card { break-inside: avoid; }
}

/* ---- The public pages (the quick scan "/" and a remote customer's "/t/CODE"): a night-time dashboard with one
   amber warning light. Everything below is scoped to .landing, so reports and the ticket frame are untouched.
   Pictures (static/img) were made with OpenAI's image model for this page. */
body:has(.landing) { padding: 0; background: #060a12; color: #e8edf6; color-scheme: dark; }
body:has(.landing) footer { color: #7d8aa3; padding-bottom: 18px; }
.landing { --amber: #ffb020; --amber2: #ff7a1a; --ink2: #a3afc4; --panel: #0d1422; --edge: #1f2a3d;
  max-width: none; margin: 0; }
.landing a { color: var(--amber); }
.landing .hero { position: relative; min-height: min(78vh, 640px); display: flex; align-items: center; overflow: hidden;
  background: #060a12 url(img/hero.webp) right center / cover no-repeat; }
.landing .hero::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #060a12 0%, rgba(6,10,18,.92) 34%, rgba(6,10,18,.35) 62%, rgba(6,10,18,.1) 100%),
              linear-gradient(0deg, #060a12 0%, transparent 28%); }
.landing .hero-text { position: relative; max-width: 1100px; width: 100%; margin: 0 auto; padding: 48px 24px; }
.landing .hero-text > * { max-width: 34rem; }
.landing .hero-text > h1 { max-width: 46rem; }
.landing .eyebrow { margin: 0 0 10px; color: var(--amber); font-size: .85rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.landing h1 { margin: 0 0 14px; font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1.02; letter-spacing: -.02em;
  text-shadow: 0 0 34px rgba(255,160,32,.35); }
.landing h1 .muted { display: block; margin-top: 8px; font-size: .38em; letter-spacing: 0; color: var(--ink2); text-shadow: none; font-weight: 500; }
.landing .lead { font-size: 1.15rem; color: #cfd7e6; margin: 0 0 22px; }
.landing .fine { margin: 14px 0 0; color: var(--ink2); font-size: .85rem; }
.landing #status { color: var(--amber); }
.landing a.btn-glow, .btn-glow { padding: 12px 22px; border: 0; border-radius: 999px; font-weight: 700; font-size: 1.02rem; color: #1a0e00;
  background: linear-gradient(180deg, #ffc24d, var(--amber2)); box-shadow: 0 0 0 1px rgba(255,176,32,.5), 0 8px 30px rgba(255,140,30,.35); }
.btn-glow:hover { filter: brightness(1.08); box-shadow: 0 0 0 1px rgba(255,176,32,.8), 0 10px 38px rgba(255,140,30,.5); }
.btn-glow:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.landing .section { max-width: 1100px; margin: 0 auto; padding: 8px 24px 28px; }
.landing .console { background: var(--panel); border: 1px solid var(--edge); border-radius: 14px; padding: 14px 20px; }
.landing .console:has(#steps:empty), .landing .section:has(> .console #steps:empty) { display: none; }
.landing #steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.landing #steps li { padding-left: 22px; position: relative; color: #cfd7e6; }
.landing #steps li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 9px; height: 9px; border-radius: 50%;
  background: #3a4a63; }
.landing #steps li:last-child::before { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.landing h2 { font-size: 1.5rem; margin: 10px 0 16px; }
.landing .features { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.landing .feature { margin: 0; background: var(--panel); border: 1px solid var(--edge); border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column; }
.landing .feature img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; border-bottom: 1px solid var(--edge); }
.landing .feature-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.landing .feature h3 { margin: 0; font-size: 1.15rem; }
.landing .feature p { margin: 0; color: var(--ink2); }
.landing .feature .step { color: var(--amber); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.landing .feature .actions { margin-top: auto; padding-top: 8px; }
.landing .closer { display: grid; gap: 18px; align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  background: var(--panel); border: 1px solid var(--edge); border-radius: 16px; padding: 22px; }
.landing .closer h2 { margin-top: 0; }
.landing .alert { color: #ff8f8f; }
.landing .btn:not(.btn-glow), .landing a.btn:not(.btn-glow) { background: transparent; color: #e8edf6; border-color: #34425c; border-radius: 999px; padding: 10px 18px; }
.landing .btn:not(.btn-glow):hover { border-color: var(--amber); }
@media (max-width: 700px) {
  .landing .hero { min-height: 0; background-position: 70% center; }
  .landing .hero::before { background: linear-gradient(0deg, #060a12 0%, rgba(6,10,18,.82) 40%, rgba(6,10,18,.7) 100%); }
}
