/* The report site in the QuantumGate template's style (QuantumGate_Template_Guide.pptx): a quiet
   core palette (Silica Vapor ground, Photon White panels, Dark Matter text, Alloy Silver rules,
   Nebula Slate lines, Quantum Glacier for OK), cyan, pink and yellow only as highlights; Geist for
   text, Source Serif 4 for numbers and a key word, Geist Mono for commands and values. The chart
   lines (--c1..--c4) are the brand's cyan, pink and yellow (plus a violet) deepened until they pass
   the colorblind, contrast and lightness checks, separately for light and dark. */
:root {
  --bg: #f0f0f0; --panel: #ffffff; --text: #352f2f; --muted: #716d6d; --line: #dadada; --line-strong: #afb8bf;
  --accent: #1f7a86; --ok: #1d5a61; --warn: #665510; --bad: #7a2950;
  --ok-bg: #d8f2f5; --warn-bg: #fcf1bf; --bad-bg: #fcd9ea; --hover: #f3f5f6;
  --c1: #2a9bc8; --c2: #b03a72; --c3: #9c7400; --c4: #5b4fc0;
  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #262121; --panel: #2f2929; --text: #f0f0f0; --muted: #b4bbc0; --line: #463f3f; --line-strong: #6e6767;
    --accent: #84edf5; --ok: #84edf5; --warn: #fbe684; --bad: #fcc1de;
    --ok-bg: #213a3d; --warn-bg: #3e3923; --bad-bg: #45303b; --hover: #383232;
    --c1: #2e9fcc; --c2: #d25c96; --c3: #b48b14; --c4: #8b6ae8;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 var(--sans); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--c1); outline-offset: 2px; }
/* The header, as the template's dark covers: a Dark Matter band, the logo and the site's name in
   Silica, the Reporter / Runner switch, who is signed in. The same in the dark theme. */
.top { display: flex; align-items: center; gap: 18px; padding: 14px 24px; background: #352f2f; color: #f0f0f0; border-bottom: 1px solid #4a4343; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #f0f0f0; font-weight: 500; font-size: 15px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
/* The logo (the template's, one color) is inline in index.html in currentColor: here Silica on the
   dark band, with no file to load. */
.brand .logo { display: block; width: 132px; height: 19px; color: #f0f0f0; }
.brand .app { padding-left: 12px; border-left: 1px solid #6e6767; }
.switch { display: inline-flex; border: 1px solid #6e6767; border-radius: 999px; padding: 2px; }
.switch a { padding: 3px 12px; border-radius: 999px; font-size: 12.5px; color: #afb8bf; }
.switch a:hover { text-decoration: none; color: #f0f0f0; }
.switch a.on { background: #84edf5; color: #352f2f; }
.who { margin-left: auto; color: #afb8bf; font-size: 13px; }
.top button.link { color: #84edf5; }
button.link { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; font-size: 13px; padding: 0; }
main { padding: 24px 24px 56px; max-width: 1400px; margin: 0 auto; }
h1 { font-weight: 400; font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 6px; text-wrap: balance; }
/* A page's heading as the template's slide titles: an eyebrow, a large title with one serif italic
   word, the signal bars of its covers on the right. */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 4px 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: 34px; margin: 2px 0 0; }
.page-head .signal { width: 220px; height: 56px; flex: none; opacity: .9; }
.eyebrow { font-size: 12px; color: var(--muted); letter-spacing: .01em; }
/* The footer, as the template's slides: the address, the classification. */
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 24px 22px; font-size: 11.5px; color: var(--muted); border-top: 1px solid var(--line); }
.foot .cls { color: var(--c4); }
@media (max-width: 640px) { .page-head .signal { display: none; } .page-head h1 { font-size: 28px; } }
/* The template's one serif italic key word in a heading. */
h1 em { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: 0; }
h2 { font-weight: 500; font-size: 16px; letter-spacing: -0.005em; margin: 30px 0 10px; }
.muted { color: var(--muted); }
.sub { font-size: 12px; }
.crumbs { color: var(--muted); font-size: 12.5px; margin-bottom: 8px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.tabs { display: flex; gap: 6px; margin: 6px 0 16px; flex-wrap: wrap; }
.tabs a { padding: 5px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); background: var(--panel); font-size: 13px; }
.tabs a:hover { text-decoration: none; border-color: var(--line-strong); }
.tabs a.on { background: var(--text); border-color: var(--text); color: var(--panel); }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-weight: 500; color: var(--muted); font-size: 12px; background: var(--panel); border-bottom-color: var(--line-strong); position: sticky; top: 0; }
th.sort { cursor: pointer; user-select: none; }
th.sort:hover { color: var(--text); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--hover); }
tr.open td { background: var(--hover); }
tr.detail td { white-space: normal; background: var(--bg); }
.scroll { overflow-x: auto; }
.badge { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.b-ok { color: var(--ok); background: var(--ok-bg); }
.b-warn { color: var(--warn); background: var(--warn-bg); }
.b-bad { color: var(--bad); background: var(--bad-bg); }
.b-none { color: var(--muted); background: var(--hover); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.card .k { color: var(--muted); font-size: 12px; }
/* Numbers in Source Serif 4, as the template's KPIs. */
.card .v { font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.2; font-variant-numeric: tabular-nums lining-nums; }
.card .s { color: var(--muted); font-size: 12px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 5px 18px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-family: var(--mono); font-size: 12.5px; word-break: break-all; }
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 12px; }
.chart { padding: 12px 14px; }
.chart h3 { font-size: 13px; font-weight: 500; margin: 0 0 6px; }
.chart svg { width: 100%; height: 220px; display: block; }
.chart .legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.chart .legend i { display: inline-block; width: 12px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.axis text { fill: var(--muted); font-size: 11px; font-family: var(--sans); }
.axis line, .axis path { stroke: var(--line); }
.tip { position: fixed; pointer-events: none; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; font-size: 12px; box-shadow: 0 4px 14px rgba(53, 47, 47, .14); z-index: 10; }
.toolbar { display: flex; gap: 10px; align-items: center; margin: 0 0 12px; flex-wrap: wrap; }
input[type=search], select { font: inherit; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--panel); color: var(--text); }
.pager { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.pager button { font: inherit; padding: 4px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--panel); color: var(--text); cursor: pointer; }
.pager button:disabled { opacity: .4; cursor: default; }
pre.report { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow-x: auto; font-family: var(--mono); font-size: 12px; line-height: 1.6; }
.error { color: var(--bad); background: var(--bad-bg); padding: 10px 12px; border-radius: 8px; }
code { font-family: var(--mono); font-size: 0.92em; }
@media (max-width: 640px) {
  main { padding: 16px 16px 40px; }
  .top { padding: 10px 16px; gap: 12px; flex-wrap: wrap; }
  .brand .logo { width: 104px; height: 15px; }
  .charts { grid-template-columns: 1fr; }
}
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 12px; }
.actions button { font: inherit; font-size: 13px; padding: 5px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--panel); color: var(--text); cursor: pointer; }
.actions button:hover { background: var(--hover); }
.actions button.danger { color: var(--bad); border-color: var(--bad); }
.step { padding: 14px 16px; margin: 12px 0; }
.step-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.step-head code { font-size: 13px; }
.step-cmd { font-family: var(--mono); font-size: 12.5px; margin: 4px 0 6px; }
/* What wapi said when a step set the stand's settings: the changes, before -> after. */
pre.stand-said { color: var(--muted); font-family: var(--mono); font-size: 12px; margin: 0 0 6px 14px; white-space: pre-wrap; }
.runx { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
/* A run's line: its name, then its result and summary in a column of their own (the names get
   one width in app.js, so the results line up from step to step); on a phone the summary goes
   under the name. */
.runx-head { display: flex; gap: 8px; align-items: baseline; width: 100%; text-align: left; background: none; border: 0; padding: 4px 0; font: inherit; color: var(--text); cursor: pointer; }
.runx-name { flex: none; white-space: nowrap; }
.runx-sum { flex: 1 1 auto; min-width: 0; }
@media (max-width: 640px) { .runx-head { flex-wrap: wrap; } }
/* The line: the run's head, then (when it has them) the link to its problem clients' logs at the end. */
.runx-line { display: flex; gap: 12px; align-items: baseline; }
.runx-line .runx-head { flex: 1 1 auto; min-width: 0; }
.runx-dl { flex: none; font-size: 13px; white-space: nowrap; }
.runx-dl:empty { display: none; }
@media (max-width: 640px) { .runx-line { flex-wrap: wrap; } .runx-dl { padding-left: 18px; } }
.runx-head:hover b { color: var(--accent); }
.runx-body { padding: 6px 0 4px 18px; }
details summary { cursor: pointer; color: var(--muted); margin-bottom: 6px; }
@media print {
  /* Paper is white: the light colors, also when the screen is dark; badges and boxes keep theirs. */
  :root {
    --bg: #fff; --panel: #fff; --text: #352f2f; --muted: #716d6d; --line: #dadada; --line-strong: #afb8bf;
    --accent: #1f7a86; --ok: #1d5a61; --warn: #665510; --bad: #7a2950;
    --ok-bg: #d8f2f5; --warn-bg: #fcf1bf; --bad-bg: #fcd9ea; --hover: #f3f5f6;
    --c1: #2a9bc8; --c2: #b03a72; --c3: #9c7400; --c4: #5b4fc0;
    color-scheme: light;
  }
  .badge, .issues, .shared, .deleted-note, .legend i { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .top, .actions, .toolbar, .pager, .tabs, .tip { display: none !important; }
  body { background: #fff; color: #000; }
  main { max-width: none; padding: 0; }
  .panel, .card, .chart { break-inside: avoid; }
  /* A scenario's step is pages long: it may break; a heading stays with what follows it. */
  .panel.step { break-inside: auto; }
  h2, h3, h2 + p { break-after: avoid; }
  .runx-body[hidden] { display: none; }
  /* The PDF has the general info only: no namespaces, download links or files (.no-print); the
     crumbs say which run or scenario it is; a scenario's loaded runs show, opened or not. */
  .no-print, .caret { display: none !important; }
  .runx-body[data-loaded] { display: block !important; }
}
button.del { font: inherit; font-size: 12px; padding: 2px 12px; border: 1px solid var(--bad); border-radius: 999px; background: transparent; color: var(--bad); cursor: pointer; }
button.del:hover { background: var(--bad-bg); }
button.restore { font: inherit; font-size: 12px; padding: 2px 12px; border: 1px solid var(--accent); border-radius: 999px; background: transparent; color: var(--accent); cursor: pointer; }
tr.deleted td { opacity: .55; }
.deleted-note { color: var(--warn); background: var(--warn-bg); padding: 8px 12px; border-radius: 8px; }
.issues { color: var(--warn); background: var(--warn-bg); padding: 8px 12px; border-radius: 8px; margin: 8px 0; }
.issues ul { margin: 4px 0 0; padding-left: 18px; }
.shared { color: var(--bad); background: var(--bad-bg); border: 1px solid var(--bad); padding: 8px 12px; border-radius: 8px; margin: 8px 0; }
.shared p { margin: 4px 0 8px; }
.shared table { background: var(--bg, transparent); color: inherit; }
.shared td.addr { font-weight: 600; vertical-align: top; }
.shared td.key { font-family: var(--mono); font-size: 12px; word-break: break-all; }
tr.shared td { background: var(--bad-bg); }
tr.shared td:first-child { box-shadow: inset 3px 0 0 var(--bad); }
label.toggle { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); margin: 0 0 8px; cursor: pointer; }
.home { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.home .side img { width: 100%; border-radius: 12px; display: block; position: sticky; top: 16px; }
@media (max-width: 900px) { .home { grid-template-columns: minmax(0, 1fr); } .home .side { display: none; } }
@media print { .home .side { display: none; } }
/* The main page uses the whole width: the photo fills the left, as tall as the window. */
main:has(.home) { max-width: none; }
.home { grid-template-columns: clamp(260px, 30vw, 620px) minmax(0, 1fr); gap: 28px; }
.home .side img { height: calc(100vh - 104px); object-fit: cover; object-position: 50% 15%; top: 16px; }
.home.nophoto { grid-template-columns: minmax(0, 1fr); }
.home.nophoto .side { display: none; }
