/* Tanod Monitor UI. Tokens copied from tanod.dev tools (00-base.css); system fonts only, no external assets. */
:root {
  color-scheme: light;
  --enamel: #f3c11a; --enamel-wash: #fdf3cf; --ink: #16140f; --route: #1636a3; --go: #1d6b38; --bad: #a3191f;
  --ground: #e9eced; --ground-2: #dde1e2; --surface: #fff; --surface-2: #f5f6f6;
  --text: #16140f; --text-soft: #4a4f52; --hair: #cfd4d6; --frame: #16140f; --focus: #1636a3;
  --code-ground: #16181a; --code-ink: #e9ece8;
  --font-sign: "Archivo Black", Impact, "Arial Black", sans-serif;
  --font-text: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 760px; --gutter: 16px; --radius: 6px; --radius-sm: 4px;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark; --route: #8eabff; --go: #5fc583; --bad: #ff8a8f; --ground: #15181b; --ground-2: #0f1113;
    --surface: #1d2125; --surface-2: #171a1d; --text: #eef0f0; --text-soft: #aab3b7; --hair: #353c41;
    --frame: #6f7a80; --focus: #f3c11a; --enamel-wash: #2f2a14; --code-ground: #0b0c0d;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--ground); color: var(--text);
  font: 1rem/1.55 var(--font-text); overflow-x: hidden; }
a { color: var(--route); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance; }
h1 { font-family: var(--font-sign); font-size: clamp(1.7rem, 6vw, 2.6rem); letter-spacing: .01em; }
h2 { font-size: 1.35rem; margin-bottom: .6rem; }
h3 { font-size: 1.05rem; margin: 1rem 0 .4rem; }
p { margin: 0 0 .8rem; }
code, pre, .mono { font-family: var(--font-mono); font-size: .88em; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 20; background: var(--ink); color: var(--enamel); padding: 10px 14px; font-weight: 700; border-radius: var(--radius-sm); }
.skip:focus { top: 8px; }
.top { background: var(--enamel); color: var(--ink); border-bottom: 3px solid var(--frame); }
.top .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 52px; }
.top a { color: var(--ink); font-weight: 700; text-decoration: none; }
.brand { font-family: var(--font-sign); letter-spacing: .02em; }
main { flex: 1; padding-block: 1.5rem 3rem; }
section { margin-block: 2rem; }
.lede { font-size: 1.1rem; color: var(--text-soft); margin-top: .8rem; }
.points { padding-left: 1.2rem; margin: 0 0 1rem; }
.points li { margin-bottom: .35rem; }
.foot { padding-block: 1.2rem; color: var(--text-soft); font-size: .9rem; border-top: 1px solid var(--hair); }
form, .box { background: var(--surface); border: 2px solid var(--frame); border-radius: var(--radius); padding: 1rem; }
form.inline { margin-top: .8rem; display: flex; gap: .6rem; align-items: flex-end; flex-wrap: wrap; border-width: 1px; }
form.inline .field { flex: 1 1 14rem; margin: 0; }
.box { margin-bottom: 1rem; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.field { display: flex; flex-direction: column; gap: .25rem; margin-bottom: .8rem; }
.row { display: flex; gap: .8rem; flex-wrap: wrap; align-items: flex-end; }
.row .field { flex: 1 1 10rem; }
label { font-weight: 600; font-size: .95rem; }
small, .note, .meta { color: var(--text-soft); }
input, select { font: inherit; padding: .6rem .7rem; min-height: 44px; border: 2px solid var(--frame); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text); width: 100%; }
input[type=checkbox] { width: 1.3rem; height: 1.3rem; min-height: 0; vertical-align: middle; }
.check { font-weight: 600; display: inline-flex; gap: .5rem; align-items: center; min-height: 44px; }
.btn { font: inherit; font-weight: 700; padding: .6rem 1rem; min-height: 44px; border: 2px solid var(--frame); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.btn.primary { background: var(--enamel); color: var(--ink); }
.btn.danger { color: var(--bad); }
.btn.small { min-height: 36px; padding: .3rem .7rem; font-size: .9rem; }
.btn:disabled { opacity: .6; cursor: wait; }
.copyrow { display: flex; gap: .5rem; margin-bottom: .8rem; }
.copyrow input { font-family: var(--font-mono); font-size: .85rem; }
pre { background: var(--code-ground); color: var(--code-ink); padding: 1rem; border-radius: var(--radius-sm); overflow: auto; max-height: 22rem; margin: .8rem 0; white-space: pre; }
.warn { background: var(--enamel-wash); border-left: 4px solid var(--enamel); padding: .6rem .8rem; }
.error { color: var(--bad); font-weight: 600; }
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.card { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius); padding: .8rem 1rem; }
.card.row { justify-content: space-between; align-items: center; overflow-wrap: anywhere; }
.cardhead { display: flex; justify-content: space-between; gap: .6rem; align-items: center; }
.cardhead h3 { margin: 0; overflow-wrap: anywhere; }
.meta { margin: .3rem 0 .6rem; font-size: .92rem; overflow-wrap: anywhere; }
.small { font-size: .85rem; overflow-wrap: anywhere; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.events { margin-top: .6rem; font-size: .9rem; }
.pill { font-weight: 700; font-size: .85rem; padding: .15rem .6rem; border-radius: 99px; border: 2px solid currentColor; white-space: nowrap; }
.pill.up { color: var(--go); } .pill.down { color: var(--bad); } .pill.paused, .pill.new { color: var(--text-soft); }
.sechead { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-bottom: .6rem; flex-wrap: wrap; }
.sechead h2 { margin: 0; }
@media (min-width: 720px) { .cardhead h3 { font-size: 1.15rem; } }
.pill.sev-high { color: var(--bad); } .pill.sev-medium { color: #b60; } .pill.sev-info { color: var(--text-soft); }
.findings { list-style: none; padding: 0; margin: .4rem 0 0; display: grid; gap: .3rem; font-size: .9rem; }
.findings li { overflow-wrap: anywhere; }
.verify { margin-top: .6rem; }
.verify h4 { margin: 0 0 .4rem; font-size: 1rem; }
.scanres { margin-top: .6rem; }
