:root {
  /* Brand tokens below (--accent, --rail*, --display-font) are TD Reply's own colors and type,
     lifted from "TD Reply style.pptx"'s theme ("TD Design 2023") and title-slide layout -- not
     invented for this app. --good/--warn/--crit are functional status colors, unrelated to that
     brand palette, and are left as they were tuned before this change. */
  --bg: #f1f3ef;
  --surface: #ffffff;
  --surface-alt: #e7ebe4;
  --ink: #151b27;
  --ink-soft: #5b6259;
  --accent: #0c373b;
  --accent-soft: #dfeceb;
  --rail: #2ab2e1;
  --rail-soft: #eaf7fc;
  --line: #d8dcd3;
  --good: #3f8f5c;
  --good-soft: #e1f0e6;
  --warn: #b87a22;
  --warn-soft: #f5e9d4;
  --crit: #ae3b2e;
  --crit-soft: #f5dfda;
  /* "Alaska Standard" is TD Reply's own display face, used for headings -- it isn't a licensed
     web font here, so this falls back to Arial (the deck's own body font) wherever it isn't
     installed on the viewer's machine, which today means everywhere. */
  --display-font: "Alaska Standard", Arial, -apple-system, "Segoe UI", Helvetica, sans-serif;
}
* { box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, -apple-system, "Segoe UI", Helvetica, sans-serif;
  margin: 0;
  /* min-height: 100vh, not 100% (fixed 2026-09-14, PR #23 rebrand review, Medium finding -- and
     a real mistake in my own first attempt at this fix, caught by actually measuring the
     rendered page rather than trusting a screenshot: percentage heights only resolve against a
     containing block with an explicit, definite height, and html here only ever has min-height,
     never height, so body's own min-height:100% silently computed to nothing and body stayed at
     its unstretched content height. vh sidesteps that whole chain -- it is always relative to
     the viewport directly, regardless of any ancestor's own height). Without this, on a short
     page -- the login page especially, heading plus one button plus a collapsed disclosure --
     the rail below stopped at the bottom of the content instead of running the full viewport
     height, undercutting the whole point of making it more visible. */
  min-height: 100vh;
  /* 10px matches the real proportion of the rail on the brand deck's own title slide (its
     Rectangle 3 measures ~13px at that slide's scale) -- 5px read as too subtle to register. */
  border-left: 10px solid var(--rail);
}
h1, h2 { font-family: var(--display-font); }
.page { max-width: 960px; margin: 0 auto; padding: 32px 24px 64px; }
a { color: var(--accent); }
/* /logout moved from a GET link to a POST form (finding M5) -- styled to still read as a plain link. */
.link-button {
  background: none; border: none; padding: 0; margin: 0; font: inherit; cursor: pointer;
  color: var(--accent); text-decoration: none;
}
.link-button:hover { text-decoration: underline; }
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 24px; background: var(--surface); border-bottom: 3px solid var(--rail);
}
.topbar .brand { font-weight: 700; }
h1 { font-size: 24px; margin: 0 0 6px; }
h2 { font-size: 17px; margin: 0 0 12px; }
.sub { color: var(--ink-soft); font-size: 14px; margin: 0 0 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 18px 20px; margin-bottom: 14px;
}
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
th, td { text-align: left; padding: 8px 10px; border-top: 1px solid var(--line); }
th { color: var(--ink-soft); text-transform: uppercase; font-size: 11px; letter-spacing: .04em; border-top: none; }
.pill {
  display: inline-flex; align-items: center; font-size: 11px; font-weight: 650;
  padding: 3px 9px; border-radius: 999px;
}
.pill-good { background: var(--good-soft); color: var(--good); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-crit { background: var(--crit-soft); color: var(--crit); }
.btn {
  display: inline-block; font-size: 13px; font-weight: 600; padding: 8px 14px;
  border-radius: 7px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn[disabled] { opacity: .7; cursor: wait; }
.spinner {
  display: inline-block; width: 13px; height: 13px; margin-right: 7px;
  border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%;
  vertical-align: -2px; animation: spin .7s linear infinite;
}
.loading-banner {
  display: none; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px;
  background: var(--accent-soft); color: var(--accent); border-radius: 8px; font-size: 13.5px;
}
.loading-banner .spinner { border: 2px solid var(--line); border-top-color: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=file] {
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; width: 100%;
}
label { font-size: 12.5px; color: var(--ink-soft); display: block; margin-bottom: 4px; }
.field { margin-bottom: 14px; max-width: 320px; }
.row { display: flex; gap: 10px; align-items: center; }
.error { color: var(--crit); font-size: 13px; margin-bottom: 10px; }
.nav-links { display: flex; gap: 14px; font-size: 13.5px; }
.prompt-disclosure {
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
  padding: 10px 14px; margin-bottom: 10px;
}
.prompt-disclosure summary { cursor: pointer; font-size: 13.5px; font-weight: 600; }
.prompt-disclosure pre {
  white-space: pre-wrap; word-break: break-word; font-family: ui-monospace, monospace;
  font-size: 12.5px; background: var(--surface-alt); border-radius: 6px; padding: 10px 12px;
  margin-top: 10px;
}
.note {
  background: var(--warn-soft); color: var(--warn); border-radius: 8px;
  padding: 10px 14px; font-size: 13px;
}
/* Flat, single-color-fill icon tile -- TD Reply's own icon convention (see the deck's chevron
   asset), not the stroke-outline style this used to be. */
.icon-tile {
  width: 38px; height: 38px; border-radius: 8px; background: var(--rail-soft);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.icon-tile svg { display: block; }
/* Shared icon-fill rules (fixed 2026-09-14, PR #23 rebrand review, Low finding): three of this
   PR's own new/changed icons hardcoded fill="#fff" per-instance in their template markup instead
   of following the token-driven approach this same PR otherwise introduces; the fourth
   (icon-tile's) used an inline style="fill:var(--rail);" rather than a shared class. currentColor
   ties a .btn-primary icon to that button's own text color (already var-free white today, see
   .btn-primary above) rather than duplicating "white" as yet another literal or token. */
.btn-primary svg path { fill: currentColor; }
.icon-tile svg path { fill: var(--rail); }
.btn svg { display: block; }
