/* ============================================================================
   Site monitor — "precision instrument"

   A tool someone opens to answer one question: is anything broken, and what do
   I do about it. So: a calm canvas, a fixed rail of navigation, generous air
   around the numbers, and colour reserved almost entirely for signal.

   Brand palette
     Deep navy    #0D1B2A   surfaces, the rail
     Primary blue #1A73E8   data, focus, the one accent
     Soft gray    #E6E9EC   ink on dark, surface on light
     Fresh green  #2BC48A   healthy

   Status colour is never the only channel: every state carries a dot, a word
   and a border. Amber and green sit below 3:1 as text on a light background,
   so pills tint the background and keep the label in body ink instead.
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700&family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
  --navy: #0D1B2A;
  --blue: #1A73E8;
  --soft-gray: #E6E9EC;
  --green: #2BC48A;

  /* Status — fixed, never themed. Violet for "the monitor broke" deliberately
     sits outside the red/amber family, because it is not a site problem. */
  --status-up: #2BC48A;
  --status-degraded: #F5A524;
  --status-down: #F04438;
  --status-error: #A78BFA;

  --series-1: var(--blue);

  --radius: 14px;
  --radius-sm: 9px;
  --rail: 248px;
  --control-h: 38px;

  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Cascadia Mono', Consolas, monospace;
  --ease: cubic-bezier(.22, .61, .36, 1);

  color-scheme: dark;
  --page: #07111C;
  --surface: #0D1B2A;
  --surface-2: #122437;
  --rail-bg: #0A1724;
  --ink: #E6E9EC;
  --ink-2: #93A3B3;
  --ink-3: #64758A;
  --line: rgba(230, 233, 236, .10);
  --line-strong: rgba(230, 233, 236, .18);
  --shadow: 0 18px 44px rgba(0, 0, 0, .46);
  --tint: 16%;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --page: #F2F5F8;
    --surface: #FFFFFF;
    --surface-2: #F7F9FB;
    --rail-bg: #0D1B2A;   /* the rail stays navy in both themes — it is the brand */
    --ink: #0D1B2A;
    --ink-2: #53687D;
    --ink-3: #8195A8;
    --line: rgba(13, 27, 42, .10);
    --line-strong: rgba(13, 27, 42, .17);
    --shadow: 0 14px 36px rgba(13, 27, 42, .10);
    --tint: 13%;
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --page: #F2F5F8;
  --surface: #FFFFFF;
  --surface-2: #F7F9FB;
  --rail-bg: #0D1B2A;
  --ink: #0D1B2A;
  --ink-2: #53687D;
  --ink-3: #8195A8;
  --line: rgba(13, 27, 42, .10);
  --line-strong: rgba(13, 27, 42, .17);
  --shadow: 0 14px 36px rgba(13, 27, 42, .10);
  --tint: 13%;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font: 400 15px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

a { color: var(--blue); text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

/* ============================ shell ==================================== */

.shell { display: grid; grid-template-columns: var(--rail) 1fr; min-height: 100vh; }

.rail {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  background: var(--rail-bg);
  border-right: 1px solid rgba(230, 233, 236, .08);
  padding: 22px 14px 18px;
  /* A faint dot field, echoing the brand artwork, so the rail has depth
     without ever competing with the content beside it. */
  background-image: radial-gradient(rgba(230, 233, 236, .05) 1px, transparent 1px);
  background-size: 22px 22px;
}

.brand { display: flex; align-items: center; gap: 11px;
         padding: 4px 10px 22px; text-decoration: none; color: #fff; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--blue), var(--green));
  box-shadow: 0 5px 16px rgba(26, 115, 232, .38);
}
.brand-mark svg { width: 15px; height: 15px; }
.brand-name { font: 600 15.5px/1.1 var(--font-display); letter-spacing: -.015em; }
.brand-sub { display: block; font: 500 10px/1.3 var(--font-mono); letter-spacing: .13em;
             text-transform: uppercase; color: rgba(230, 233, 236, .42); margin-top: 3px; }

.rail nav { display: flex; flex-direction: column; gap: 2px; }
.rail-label { font: 500 10px/1 var(--font-mono); letter-spacing: .15em;
              text-transform: uppercase; color: rgba(230, 233, 236, .32);
              padding: 14px 12px 8px; }
.rail a.item {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px;
  border-radius: 10px; text-decoration: none; color: rgba(230, 233, 236, .72);
  font-size: 14px; font-weight: 500; position: relative;
  transition: background .16s var(--ease), color .16s var(--ease);
}
.rail a.item svg { width: 16px; height: 16px; flex: none; opacity: .75; }
.rail a.item:hover { background: rgba(230, 233, 236, .07); color: #fff; }
.rail a.item.on { background: rgba(26, 115, 232, .18); color: #fff; }
.rail a.item.on svg { opacity: 1; color: var(--blue); }
.rail a.item.on::before {
  content: ''; position: absolute; left: -14px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 19px; border-radius: 0 3px 3px 0; background: var(--blue);
}
.rail .count { margin-left: auto; min-width: 19px; height: 19px; padding: 0 6px;
               border-radius: 999px; background: var(--blue); color: #fff;
               font: 600 11px/19px var(--font-mono); text-align: center; }
.rail .spacer { flex: 1; }
.rail .foot { border-top: 1px solid rgba(230, 233, 236, .09);
              padding-top: 12px; margin-top: 12px; }
.rail-state { display: flex; align-items: center; gap: 8px; padding: 9px 12px;
              margin-top: 4px; border-radius: 10px; background: rgba(230, 233, 236, .05);
              font: 500 11.5px/1 var(--font-mono); color: rgba(230, 233, 236, .62); }
.rail-state .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }

/* ============================ main ===================================== */

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 12;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 16px 30px; border-bottom: 1px solid var(--line);
  background: var(--page);
}
.topbar .grow { flex: 1; }
.content { padding: 26px 30px 72px; max-width: 1280px; width: 100%; }

.page-head { margin-bottom: 22px; }
.eyebrow { font: 500 10.5px/1 var(--font-mono); letter-spacing: .16em;
           text-transform: uppercase; color: var(--ink-3); margin: 0 0 9px; }
h1 { font: 600 27px/1.15 var(--font-display); letter-spacing: -.025em; margin: 0 0 6px; }
h2 { font: 600 16px/1.2 var(--font-display); letter-spacing: -.012em; margin: 0 0 14px; }
h3 { font: 600 15px/1.3 var(--font-display); letter-spacing: -.01em; margin: 0; }
.subtle { color: var(--ink-2); font-size: 13.5px; margin: 0; }
.subtle a { color: inherit; }
code { font: 400 .92em var(--font-mono); background: var(--surface-2);
       border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }

/* ============================ cards ==================================== */

.card { background: var(--surface); border: 1px solid var(--line);
        border-radius: var(--radius); padding: 20px 22px; margin-bottom: 16px; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between;
             gap: 14px; flex-wrap: wrap; margin-bottom: 15px; }
.card-head h2, .card-head h3 { margin: 0; }
.card.flush .card-head { padding: 20px 22px 0; margin-bottom: 4px; }

/* A brief settle on load, deliberately short: this is a status tool, and making
   someone wait to see whether their site is down would be a poor trade for polish. */
@media (prefers-reduced-motion: no-preference) {
  .content > * { animation: rise .32s var(--ease) both; }
  .content > *:nth-child(2) { animation-delay: .03s; }
  .content > *:nth-child(3) { animation-delay: .06s; }
  .content > *:nth-child(n+4) { animation-delay: .09s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }

/* ============================ stat tiles =============================== */

/* Separators are borders on the tiles, not a 1px grid gap over a coloured
   background: when the row wraps and the last row is short, a gap-filled grid
   leaves the empty cells showing as a dark block. The negative margins pull each
   tile's trailing borders under its neighbour so nothing doubles at the edges. */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(146px, 1fr));
         background: var(--surface); border-radius: var(--radius);
         overflow: hidden; border: 1px solid var(--line); margin-bottom: 16px; }
.tile { padding: 17px 19px; margin: 0 -1px -1px 0;
        border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tile .value { font: 600 26px/1.1 var(--font-display); letter-spacing: -.03em;
               font-variant-numeric: tabular-nums; display: flex;
               align-items: center; gap: 8px; }
.tile .name { font: 500 10.5px/1 var(--font-mono); letter-spacing: .13em;
              text-transform: uppercase; color: var(--ink-3); margin-top: 7px; }
.tile .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }

/* ============================ status =================================== */

/* A base size for the status dot, so it renders anywhere and not only in the
   contexts that happened to style it. The specific rules below still override. */
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; }

.s-up { color: var(--status-up); }
.s-degraded { color: var(--status-degraded); }
.s-down { color: var(--status-down); }
.s-error { color: var(--status-error); }
.s-none { color: var(--ink-3); }
.bg-up { background: var(--status-up); }
.bg-degraded { background: var(--status-degraded); }
.bg-down { background: var(--status-down); }
.bg-error { background: var(--status-error); }
.bg-none { background: var(--ink-3); }

.pill { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
        padding: 4px 11px 4px 9px; border-radius: 999px;
        font: 500 12px/1.35 var(--font-body); color: var(--ink);
        border: 1px solid var(--line-strong); background: var(--surface-2); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.pill.up { background: color-mix(in srgb, var(--status-up) var(--tint), transparent);
           border-color: color-mix(in srgb, var(--status-up) 45%, transparent); }
.pill.degraded { background: color-mix(in srgb, var(--status-degraded) var(--tint), transparent);
                 border-color: color-mix(in srgb, var(--status-degraded) 45%, transparent); }
.pill.down { background: color-mix(in srgb, var(--status-down) var(--tint), transparent);
             border-color: color-mix(in srgb, var(--status-down) 45%, transparent); }
.pill.error { background: color-mix(in srgb, var(--status-error) var(--tint), transparent);
              border-color: color-mix(in srgb, var(--status-error) 45%, transparent); }
.pill.none { color: var(--ink-2); }

.tag { display: inline-flex; align-items: center; font: 500 11px/1 var(--font-mono);
       letter-spacing: .04em; color: var(--ink-2); border: 1px solid var(--line-strong);
       border-radius: 999px; padding: 4px 9px; white-space: nowrap; }
.tag.unread { color: var(--blue);
              border-color: color-mix(in srgb, var(--blue) 50%, transparent); }

/* ============================ buttons ================================== */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px;
       font: 500 13.5px/1 var(--font-body); white-space: nowrap; cursor: pointer;
       padding: 0 15px; height: var(--control-h); border-radius: var(--radius-sm);
       text-decoration: none; border: 1px solid var(--line-strong);
       background: var(--surface-2); color: var(--ink);
       transition: border-color .15s var(--ease), background .15s var(--ease),
                   transform .15s var(--ease); }
.btn:hover { border-color: var(--ink-3); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 15px; height: 15px; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff;
               box-shadow: 0 5px 16px color-mix(in srgb, var(--blue) 32%, transparent); }
.btn.primary:hover { background: #1765CC; border-color: #1765CC; }
.btn.danger { color: var(--status-down);
              border-color: color-mix(in srgb, var(--status-down) 34%, transparent); }
.btn.danger:hover { border-color: var(--status-down); }
.btn.small { font-size: 12.5px; padding: 0 11px; height: 31px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
/* Forms inside an action group lay out as ordinary flex items. `display:
   contents` would look the same but has a history of breaking submission. */
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions form { margin: 0; display: flex; }
.btn.armed { background: var(--status-down); border-color: var(--status-down);
             color: #fff; }
.btn.armed:hover { filter: brightness(1.06); }

/* ============================ forms ==================================== */
/* Every control is the same height and every field the same shape, so a form
   reads as one object rather than a pile of parts. */

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .form-label { font: 500 11px/1.2 var(--font-mono); letter-spacing: .1em;
                              text-transform: uppercase; color: var(--ink-3); }
.field .hint { font-size: 12.5px; line-height: 1.45; color: var(--ink-2); margin: 0; }

input[type="text"], input[type="url"], input[type="number"], input[type="time"],
input[type="date"], input[type="password"], input[type="email"], input[type="search"],
input:not([type]), select, textarea {
  width: 100%; min-width: 0; height: var(--control-h);
  font: 400 14px/1.4 var(--font-body); color: var(--ink);
  background: var(--surface-2); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); padding: 0 11px;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
textarea { height: auto; min-height: 92px; padding: 10px 11px; resize: vertical;
           line-height: 1.55; font-family: var(--font-body); }
input:hover, select:hover, textarea:hover { border-color: var(--ink-3); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 22%, transparent);
}
input[type="number"] { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
select { appearance: none; padding-right: 32px; cursor: pointer;
         background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                           linear-gradient(135deg, currentColor 50%, transparent 50%);
         background-position: calc(100% - 16px) 51%, calc(100% - 11px) 51%;
         background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
::placeholder { color: var(--ink-3); opacity: 1; }

.check { display: flex; align-items: center; gap: 9px; font-size: 13.5px; cursor: pointer; }
.check input[type="checkbox"] {
  appearance: none; width: 17px; height: 17px; flex: none; margin: 0;
  border: 1px solid var(--line-strong); border-radius: 5px; background: var(--surface-2);
  cursor: pointer; position: relative; transition: all .15s var(--ease);
}
.check input[type="checkbox"]:checked { background: var(--blue); border-color: var(--blue); }
.check input[type="checkbox"]:checked::after {
  content: ''; position: absolute; left: 5px; top: 1.5px; width: 4px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(42deg);
}
.check input[type="checkbox"]:disabled { opacity: .55; cursor: not-allowed; }
.check-row { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center;
             min-height: var(--control-h); }

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
             gap: 20px; align-items: start; }
.form-grid .full { grid-column: 1 / -1; }
.form-foot { display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
             margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }

.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.filters .field { flex: 1 1 165px; max-width: 230px; }

/* ============================ tables =================================== */

.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
thead th { font: 500 10.5px/1 var(--font-mono); letter-spacing: .12em;
           text-transform: uppercase; color: var(--ink-3); text-align: left;
           white-space: nowrap; padding: 0 16px 11px 0;
           border-bottom: 1px solid var(--line-strong); }
tbody td { padding: 13px 16px 13px 0; border-bottom: 1px solid var(--line);
           vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .13s var(--ease); }
tbody tr:hover { background: var(--surface-2); }
td.num, th.num { text-align: right; padding-right: 22px; font-family: var(--font-mono);
                 font-variant-numeric: tabular-nums; }
td.num:last-child, th.num:last-child { padding-right: 0; }
td.wrap-any { word-break: break-word; min-width: 190px; color: var(--ink-2); }
td.site-cell { min-width: 140px; }
.card.flush thead th { padding-top: 16px; }
.card.flush thead th:first-child, .card.flush tbody td:first-child { padding-left: 22px; }
.card.flush thead th:last-child, .card.flush tbody td:last-child { padding-right: 22px; }

a.site-link { color: inherit; text-decoration: none; font-weight: 500; }
a.site-link:hover { color: var(--blue); }

.empty { color: var(--ink-2); font-size: 14px; padding: 30px 22px; text-align: center; }
.empty strong { color: var(--ink); display: block; margin-bottom: 6px;
                font: 600 15px var(--font-display); }

/* ============================ site rows ================================ */

.site-row { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
            gap: 16px 26px; padding: 20px 22px; border-bottom: 1px solid var(--line);
            align-items: center; transition: background .14s var(--ease); }
.site-row:last-child { border-bottom: 0; }
.site-row:hover { background: var(--surface-2); }
.site-id { min-width: 0; }
.site-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
             font: 600 15.5px/1.25 var(--font-display); letter-spacing: -.012em; }
.site-url { color: var(--ink-3); font: 400 12.5px/1.4 var(--font-mono);
            word-break: break-all; margin-top: 5px; }
.site-url a { color: inherit; text-decoration: none; }
.site-url a:hover { color: var(--ink-2); text-decoration: underline; }
.site-metrics { display: flex; flex-wrap: wrap; gap: 20px; align-items: baseline; }
.metric { min-width: 62px; }
.metric .value { font: 500 14.5px/1.2 var(--font-mono); font-variant-numeric: tabular-nums; }
.metric .name { font: 500 9.5px/1 var(--font-mono); letter-spacing: .12em;
                text-transform: uppercase; color: var(--ink-3); margin-top: 5px; }
.site-extra { grid-column: 1 / -1; display: grid;
              grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: end; }
.chart-label { font: 500 9.5px/1 var(--font-mono); letter-spacing: .12em;
               text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
ul.issues { grid-column: 1 / -1; margin: 0; padding-left: 17px; color: var(--ink-2);
            font-size: 13px; }
ul.issues li { margin: 3px 0; }

/* ============================ strip & chart ============================ */

.strip { display: flex; gap: 3px; align-items: flex-end; }
.strip i { display: block; width: 8px; height: 26px; border-radius: 3px;
           background: var(--line-strong); cursor: default;
           transition: transform .13s var(--ease); }
.strip i:hover, .strip i:focus-visible { transform: scaleY(1.16); }
.strip i.up { background: var(--status-up); }
.strip i.degraded { background: var(--status-degraded); }
.strip i.down { background: var(--status-down); }
.strip i.error { background: var(--status-error); }

.chart-wrap { width: 100%; min-width: 0; }
.area-chart { display: block; width: 100%; overflow: visible; }
.chart-line { fill: none; stroke: var(--series-1); stroke-width: 2.25;
              stroke-linecap: round; stroke-linejoin: round; }
.chart-baseline { stroke: var(--line); stroke-width: 1; }
.chart-axis { fill: var(--ink-3); font: 500 10px var(--font-mono); letter-spacing: .06em; }
.chart-guide, .chart-dot, .chart-callout { opacity: 0; transition: opacity .13s var(--ease); }
.chart-hit { fill: transparent; cursor: crosshair; }
.chart-guide { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 3; }
.chart-dot { stroke: var(--surface); stroke-width: 2.5; }
.chart-dot.s-up { fill: var(--series-1); }
.chart-dot.s-degraded { fill: var(--status-degraded); }
.chart-dot.s-down { fill: var(--status-down); }
.chart-dot.s-error { fill: var(--status-error); }
.chart-point:hover .chart-guide, .chart-point:hover .chart-dot,
.chart-point:hover .chart-callout,
.chart-point:focus-visible .chart-guide, .chart-point:focus-visible .chart-dot,
.chart-point:focus-visible .chart-callout { opacity: 1; }
.chart-point:focus { outline: none; }
.chart-bubble { display: flex; flex-direction: column; align-items: center; gap: 1px;
                background: var(--surface); border: 1px solid var(--line-strong);
                border-radius: 9px; padding: 5px 10px; box-shadow: var(--shadow);
                font: 500 12px/1.35 var(--font-body); color: var(--ink);
                text-align: center; width: max-content; margin: 0 auto; }
.chart-bubble b { font: 600 13px/1.2 var(--font-mono); font-variant-numeric: tabular-nums; }
.chart-bubble span { font: 400 10.5px/1 var(--font-mono); color: var(--ink-3); }
.chart-empty { color: var(--ink-3); font-size: 13px; margin: 0; padding: 22px 0; }

/* ============================ findings ================================= */

.finding { border-left: 3px solid var(--line-strong); }
.finding.critical { border-left-color: var(--status-down); }
.finding.serious { border-left-color: var(--status-error); }
.finding.warning { border-left-color: var(--status-degraded); }
.finding.info { border-left-color: var(--ink-3); }
.finding-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
                margin-bottom: 13px; }
.observed { font: 400 12.5px/1.5 var(--font-mono); margin: 0 0 13px; padding: 11px 13px;
            background: var(--surface-2); border: 1px solid var(--line);
            border-radius: var(--radius-sm); word-break: break-word; color: var(--ink-2); }
.observed b { color: var(--ink-3); font-weight: 500; text-transform: uppercase;
              font-size: 10px; letter-spacing: .12em; display: block; margin-bottom: 5px; }
.means { margin: 0 0 17px; color: var(--ink-2); max-width: 74ch; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
           gap: 20px 30px; }
.two-col ul, .two-col ol { margin: 0; padding-left: 19px; font-size: 13.5px;
                           color: var(--ink-2); }
.two-col li { margin-bottom: 7px; }
.two-col li::marker { color: var(--ink-3); font-family: var(--font-mono); font-size: 11px; }

/* ============================ fix log ================================== */

.fix { padding: 16px 0; border-bottom: 1px solid var(--line); }
.fix:first-child { padding-top: 0; }
.fix:last-child { border-bottom: 0; padding-bottom: 0; }
.fix-head { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.fix-when { font: 400 11.5px/1.6 var(--font-mono); color: var(--ink-3); white-space: nowrap; }
.fix-note { font-size: 14px; flex: 1 1 260px; }
.fix-outcome { display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
               margin-top: 10px; }
.delta { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px;
         padding: 3px 10px; font: 500 11.5px/1.5 var(--font-mono);
         border: 1px solid var(--line-strong); color: var(--ink-2); }
.delta.good { color: var(--status-up);
              border-color: color-mix(in srgb, var(--status-up) 45%, transparent);
              background: color-mix(in srgb, var(--status-up) var(--tint), transparent); }
.delta.bad { color: var(--status-down);
             border-color: color-mix(in srgb, var(--status-down) 45%, transparent);
             background: color-mix(in srgb, var(--status-down) var(--tint), transparent); }
.delta.same { color: var(--ink-2); }
.fix-detail { margin: 10px 0 0; padding-left: 17px; font-size: 13px; color: var(--ink-2); }
.fix-detail li { margin: 3px 0; }

/* ============================ flash ==================================== */

.flash { display: flex; gap: 11px; align-items: baseline; margin-bottom: 13px;
         padding: 12px 15px; border-radius: var(--radius-sm);
         border: 1px solid var(--line-strong); background: var(--surface);
         font-size: 13.5px; }
.flash b { font: 500 10.5px/1.5 var(--font-mono); letter-spacing: .11em;
           text-transform: uppercase; flex: none; }
.flash.ok { border-color: color-mix(in srgb, var(--status-up) 42%, transparent); }
.flash.ok b { color: var(--status-up); }
.flash.error { border-color: color-mix(in srgb, var(--status-down) 42%, transparent); }
.flash.error b { color: var(--status-down); }

/* ============================ misc ===================================== */

.job { display: flex; align-items: center; gap: 9px; font: 400 13px/1 var(--font-body);
       color: var(--ink-2); }
.spinner { width: 13px; height: 13px; border-radius: 50%; flex: none;
           border: 2px solid var(--line-strong); border-top-color: var(--blue);
           animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .spinner { animation: none; }
  .content > * { animation: none !important; }
}

#tip { position: fixed; z-index: 40; pointer-events: none; opacity: 0;
       transition: opacity .1s; max-width: 290px; background: var(--surface);
       color: var(--ink); border: 1px solid var(--line-strong);
       border-radius: var(--radius-sm); padding: 8px 11px; font-size: 12.5px;
       line-height: 1.5; box-shadow: var(--shadow); }
#tip.on { opacity: 1; }

.report-body { max-width: 82ch; }
.report-body h3 { font: 600 15px/1.3 var(--font-display); margin: 26px 0 10px; }
.report-body h4 { font: 600 13.5px/1.3 var(--font-display); margin: 18px 0 6px; }
.report-body p { margin: 0 0 10px; color: var(--ink-2); }
.report-body ul { margin: 0 0 14px; padding-left: 19px; color: var(--ink-2); }
.report-body table { margin-bottom: 12px; }

details.adder > summary { cursor: pointer; font: 600 15px/1.3 var(--font-display);
                          list-style: none; display: flex; align-items: center; gap: 9px; }
details.adder > summary::-webkit-details-marker { display: none; }
details.adder > summary::before {
  content: '+'; width: 21px; height: 21px; flex: none; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--line-strong);
  display: grid; place-items: center; font: 500 14px/1 var(--font-mono);
  color: var(--blue); transition: transform .18s var(--ease);
}
details.adder[open] > summary::before { transform: rotate(45deg); }
details.adder[open] > summary { margin-bottom: 18px; }

/* ============================ responsive =============================== */

@media (forced-colors: active) {
  .strip i, .pill, .tile .dot { border: 1px solid CanvasText; }
}

@media (max-width: 1020px) {
  .shell { grid-template-columns: 1fr; }
  .rail { position: static; height: auto; flex-direction: row; align-items: center;
          flex-wrap: wrap; gap: 4px; padding: 12px 18px; border-right: 0;
          border-bottom: 1px solid rgba(230, 233, 236, .08); }
  .brand { padding: 0 16px 0 0; }
  .brand-sub { display: none; }
  .rail nav { flex-direction: row; flex-wrap: wrap; }
  .rail-label, .rail .spacer, .rail-state { display: none; }
  .rail .foot { border-top: 0; padding-top: 0; margin-top: 0; }
  .rail a.item.on::before { left: 0; top: auto; bottom: -4px; transform: none;
                            width: 100%; height: 2px; border-radius: 2px; }
  .topbar, .content { padding-left: 18px; padding-right: 18px; }
}

@media (max-width: 660px) {
  .site-row, .site-extra { grid-template-columns: 1fr; }
  .filters .field { max-width: none; flex-basis: 100%; }
  h1 { font-size: 23px; }
  .content { padding-bottom: 48px; }
}

/* --- sign in ---------------------------------------------------------- */
body.signin { display: grid; place-items: center; min-height: 100vh; padding: 24px;
              background: var(--page); }
.signin-card { width: 100%; max-width: 380px; }
.signin-card .card { margin-bottom: 0; padding: 26px 26px 28px; }
.signin-card .brand { color: var(--ink); }
.signin-card .brand-sub { color: var(--ink-3); }
.signed-in { display: flex; align-items: center; gap: 8px; padding: 0 2px 10px; }
.signed-in .who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis;
                  white-space: nowrap; font: 500 12.5px/1 var(--font-mono);
                  color: rgba(230, 233, 236, .62); }
.signed-in .btn { background: transparent; color: rgba(230, 233, 236, .72);
                  border-color: rgba(230, 233, 236, .18); }
.signed-in .btn:hover { color: #fff; border-color: rgba(230, 233, 236, .4); }
