/* Uptime 360. Light only, by choice. */
:root {
  --page: #f5f6f8;
  --surface: #ffffff;
  --sunken: #f7f8fa;
  --ink: #121722;
  --ink-2: #39414e;
  --muted: #5f6977;
  --faint: #8b93a0;
  --line: #e2e5ea;
  --line-soft: #eef0f3;
  --accent: #c8171e;          /* Uptime red: brand only, not status */

  --red: #b42318;   --red-bg: #fdedeb;   --red-line: #f2c2bc;   --red-bar: #d63a2f;
  --amber: #8a5300; --amber-bg: #fcf3e2; --amber-line: #ebcf98; --amber-bar: #e3a21a;
  --green: #1f7a4d; --green-bg: #eaf5ee; --green-line: #c4e2cf; --green-bar: #cfe5d8;
  --blue: #2347b5;  --blue-bg: #eef2fd;  --blue-line: #cbd6f5;
  --grey-bg: #f0f1f4;

  --radius: 14px;
  --radius-sm: 8px;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { background: var(--page); }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 14px/1.5 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
code, .mono { font-family: var(--mono); font-size: .9em; }
h1 { font-size: 1.75rem; font-weight: 600; letter-spacing: -.02em; margin: 0; line-height: 1.2; }
h2 { font-size: 1.1rem; font-weight: 600; letter-spacing: -.01em; margin: 0; }
p { margin: 0; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.strong { font-weight: 600; }
.link { color: var(--blue); font-weight: 500; }
.link:hover { text-decoration: underline; }

/* ---- Shell: sidebar + page ------------------------------------------- */
:root { --sb-w: 264px; --sb-w-mini: 72px; }
.shell { display: flex; min-height: 100vh; }
.page { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sidebar { flex: 0 0 var(--sb-w); width: var(--sb-w); position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: var(--surface); border-right: 1px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; gap: 20px;
  color: #4a5361; transition: flex-basis .2s ease-out, width .2s ease-out; z-index: 30; }
.sb-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sb-brand { display: flex; align-items: center; gap: 10px; padding: 2px 4px; color: var(--ink); font-weight: 600; font-size: 15px; letter-spacing: -.01em; min-width: 0; }
.sb-brand:hover { color: var(--ink); }
.sb-brand .sb-label { display: flex; flex-direction: column; line-height: 1.2; white-space: nowrap; }
.sb-brand small { font-size: 11.5px; font-weight: 500; color: var(--faint); letter-spacing: 0; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; flex: none; box-shadow: 0 2px 6px #c8171e4d; }
.sb-toggle, .iconbtn { width: 36px; height: 36px; padding: 0; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: inherit; display: grid; place-items: center; cursor: pointer; flex: none; position: relative; }
.sb-toggle:hover, .iconbtn:hover { background: #f3f5f8; color: var(--ink); border-color: var(--line); }
.sb-status { display: flex; flex-direction: column; gap: 7px; padding: 12px; border-radius: 12px; background: var(--sunken); border: 1px solid var(--line); color: inherit; }
.sb-status:hover { color: inherit; border-color: #c9ced6; }
.sb-status .row { display: flex; justify-content: space-between; }
.sb-status .k, .sb-card .k { font-size: 11.5px; color: var(--faint); }
.sb-status .row .k:first-child { font-weight: 500; color: var(--muted); font-size: 12px; }
.sb-status .v { font-size: 15px; font-weight: 600; color: var(--ink); }
.sb-status .bar { display: flex; gap: 3px; height: 6px; }
.sb-status .bar span { border-radius: 99px; min-width: 6px; }
.sb-status .bar .r { background: var(--red-bar); } .sb-status .bar .y { background: #e9a23b; }
.sb-status .bar .g { background: #3fb07a; } .sb-status .bar .n { background: var(--line); }
.sb-group { display: flex; flex-direction: column; gap: 6px; }
.sb-eyebrow { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding: 0 12px; }
.sb-eyebrow a { font-size: 16px; line-height: 1; color: var(--faint); }
.sb-nav { display: flex; flex-direction: column; gap: 2px; }
.sb-nav a { display: flex; align-items: center; gap: 10px; padding: 0 12px; min-height: 40px; border-radius: 9px; color: inherit; font-weight: 500; position: relative; transition: background .15s; }
.sb-nav a:hover { background: #f3f5f8; color: var(--ink); }
.sb-nav a.on { background: var(--page); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.sb-nav a.on svg { color: var(--accent); }
.sb-nav svg { flex: none; }
.sb-nav .sb-label { flex: 1; }
.sb-badge { font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 99px; background: var(--grey-bg); color: var(--ink-2); white-space: nowrap; }
.sb-badge.red { background: var(--red-bar); color: #fff; }
.sb-count { font-size: 12px; color: var(--faint); }
.sb-dot { display: none; position: absolute; top: 9px; right: 14px; width: 9px; height: 9px; border-radius: 50%; background: var(--red-bar); border: 2px solid var(--surface); }
.sb-systems { display: flex; flex-direction: column; gap: 1px; }
.sb-systems a { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 0 12px; border-radius: 8px; color: inherit; font-size: 13px; }
.sb-systems a:hover { background: #f3f5f8; color: var(--ink); }
.sb-systems .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-systems .meta { font-size: 11.5px; color: var(--faint); }
.sb-systems .more { color: var(--blue); font-size: 12.5px; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--faint); box-shadow: 0 0 0 3px #8b93a02e; }
.dot.red { background: var(--red-bar); box-shadow: 0 0 0 3px #d63a2f2e; }
.dot.yellow { background: #e9a23b; box-shadow: 0 0 0 3px #e9a23b2e; }
.dot.green { background: #3fb07a; box-shadow: 0 0 0 3px #3fb07a2e; }
.sb-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.sb-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--sunken); display: flex; flex-direction: column; gap: 6px; }
.sb-card .t { font-size: 12px; font-weight: 600; color: var(--ink); }
.track, .fx-track { display: block; height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; }
.track span { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.sb-add { justify-content: center; min-height: 38px; }
.sb-user { display: flex; align-items: center; gap: 10px; padding: 12px 4px 0; border-top: 1px solid var(--line); }
.sb-user .who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.sb-user .e { font-size: 12.5px; font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-user .k { font-size: 11.5px; color: var(--faint); }
.icon-link { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--faint); flex: none; }
.icon-link:hover { background: #f3f5f8; color: var(--ink); }
button.icon-link { border: 0; background: none; padding: 0; }
.sb-user form { margin: 0; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #f3d3d4, #d9def7); display: grid; place-items: center; font-size: 11px; font-weight: 600; color: var(--ink-2); text-transform: uppercase; flex: none; }
.avatar:hover { color: var(--ink); box-shadow: 0 0 0 2px var(--line); }
.sb-backdrop { display: none; }

/* Collapsed: an icon rail. Remembered in a cookie, so the page renders collapsed. */
@media (min-width: 861px) {
  .sb-collapsed .sidebar { flex-basis: var(--sb-w-mini); width: var(--sb-w-mini); padding: 16px 10px; }
  .sb-collapsed .sb-label, .sb-collapsed .sb-full, .sb-collapsed .sb-badge, .sb-collapsed .sb-count { display: none !important; }
  .sb-collapsed .sb-top { flex-direction: column; }
  .sb-collapsed .sb-brand { padding: 2px 0; }
  .sb-collapsed .sb-nav a { justify-content: center; padding: 0; min-height: 44px; }
  .sb-collapsed .sb-dot { display: block; }
  .sb-collapsed .sb-add { padding: 0; font-size: 18px; }
  .sb-collapsed .sb-user { justify-content: center; padding-left: 0; padding-right: 0; }
  .sb-collapsed .sb-toggle .chev { transform: scaleX(-1); transform-origin: 14px 12px; }
}

/* ---- Top bar ---------------------------------------------------------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px 32px; min-height: 60px;
  background: #ffffffeb; backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.crumbs { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); min-width: 0; }
.crumbs a { white-space: nowrap; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { color: #b6bcc6; }
.crumbs .here { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spacer { flex: 1; }
.menu-btn { display: none; }
.gsearch { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 8px 0 12px; border: 1px solid var(--line); border-radius: 9px;
  color: var(--faint); background: var(--sunken); width: 320px; max-width: 100%; margin: 0; }
.gsearch:focus-within { border-color: var(--blue); background: var(--surface); outline: 3px solid var(--blue-bg); }
.gsearch input[type=search] { border: 0; outline: none; background: transparent; padding: 0; flex: 1; min-width: 0; font-size: 13px; }
.gsearch input:focus { outline: none; }
kbd { font-family: var(--mono); font-size: 10.5px; border: 1px solid #d5d9e0; border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; color: var(--muted); background: var(--surface); white-space: nowrap; }
.bell > summary.iconbtn { list-style: none; }
.bell > summary::before { content: none; }
.bell-dot { position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--red-bar); border: 2px solid var(--surface); }
.bell-pop { width: 340px; max-width: calc(100vw - 32px); }
.bell-head { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 10px 8px; }
.bell-head form { margin: 0; }
.bell-head button.bell-read { color: var(--blue); }
.bell-head button.bell-read:hover { color: var(--ink); }
.ev.unread .t::before, .events li.unread .t::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); margin-right: 6px; vertical-align: 1px; }
.menu-pop a.ev { display: flex; gap: 10px; align-items: flex-start; }
.ev .t { display: block; color: var(--ink); font-weight: 500; }
.menu-pop a.ev > .grow { flex: 1; min-width: 0; }
/* Error titles can be one long URL or JSON: break anywhere, at most 3 lines (the full text is the tooltip) */
.ev .t, .events .t { overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.ev .l2, .events .l2 { overflow-wrap: anywhere; }

main { width: 100%; padding: 28px 32px 48px; flex: 1; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head .sub { color: var(--muted); margin-top: 6px; max-width: 60em; }
.page-head .stamp { color: var(--muted); font-size: 12.5px; }
.section-head { display: flex; align-items: baseline; gap: 10px; margin: 34px 0 14px; flex-wrap: wrap; }
.section-head .note { color: var(--muted); font-size: 12.5px; }
.section-head .grow { flex: 1; }
.live-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); }
.live-chip .pulse { width: 8px; height: 8px; border-radius: 50%; background: #2fa36b; box-shadow: 0 0 0 3px #2fa36b2e; }
.live-chip.warn .pulse { background: #e9a23b; box-shadow: 0 0 0 3px #e9a23b2e; }

/* ---- Cards ------------------------------------------------------------ */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: 0 1px 2px #10182808; }
.card.tight { padding: 16px 18px; }
.eyebrow { font-size: 12px; font-weight: 500; color: var(--muted); }
.eyebrow.caps { text-transform: uppercase; letter-spacing: .06em; font-size: 11.5px; }
.big { font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; margin-top: 6px; }
.big.red { color: var(--red); }
.under { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.top-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 1000px) { .top-grid { grid-template-columns: 1fr 1fr; } .top-grid .health { grid-column: 1 / -1; } }
.top-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .top-grid, .top-grid.three { grid-template-columns: 1fr; } }
.health .sentence { font-size: 19px; font-weight: 500; letter-spacing: -.01em; line-height: 1.4; margin: 10px 0 16px; max-width: 34em; }
.bar { display: flex; gap: 4px; height: 6px; }
.bar span { border-radius: 99px; min-width: 6px; }
.bar .r { background: var(--red-bar); } .bar .y { background: var(--amber-bar); }
.bar .g { background: var(--green-bar); } .bar .n { background: var(--line); }
.legend { display: flex; gap: 18px; margin-top: 12px; font-size: 12.5px; color: var(--ink-2); flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend b { font-weight: 600; }
.support-list { list-style: none; margin: 8px 0 0; padding: 0; font-size: 12.5px; color: var(--muted); }
.support-list li { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }

/* Notice strip (new vulnerability) */
.notice { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 16px; margin-top: 14px; flex-wrap: wrap; font-size: 13px; }
.notice .grow { flex: 1; }

/* ---- Status pills and tags --------------------------------------------- */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 7px; border-radius: 99px; font-size: 12px; font-weight: 500; border: 1px solid; white-space: nowrap; }
.pill.red { color: var(--red); background: var(--red-bg); border-color: var(--red-line); }
.pill.yellow { color: var(--amber); background: var(--amber-bg); border-color: var(--amber-line); }
.pill.green { color: var(--green); background: var(--green-bg); border-color: var(--green-line); }
.pill.grey, .pill.unknown { color: var(--muted); background: var(--grey-bg); border-color: var(--line); }
.pill.blue { color: var(--blue); background: var(--blue-bg); border-color: var(--blue-line); }
.status { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 13px; white-space: nowrap; }
.status.red { color: var(--red); } .status.yellow { color: var(--amber); }
.status.green { color: var(--ink-2); } .status.grey, .status.unknown { color: var(--muted); }
.status svg, .pill svg { flex: none; }
.tag { display: inline-block; font-size: 10.5px; font-weight: 600; padding: 0 5px; border-radius: 4px; border: 1px solid; line-height: 16px; vertical-align: 1px; white-space: nowrap; }
.tag.red { color: var(--red); background: var(--red-bg); border-color: var(--red-line); }
.tag.yellow { color: var(--amber); background: var(--amber-bg); border-color: var(--amber-line); }
.tag.grey { color: var(--muted); background: var(--grey-bg); border-color: var(--line); }
.tag.blue { color: var(--blue); background: var(--blue-bg); border-color: var(--blue-line); }
.text-red { color: var(--red); } .text-yellow { color: var(--amber); } .text-blue { color: var(--blue); } .text-green { color: var(--green); }
.sev { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

/* Runtime glyph + label */
.rt { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.rt svg { flex: none; }

/* ---- Tables ----------------------------------------------------------- */
.table-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 2px #10182808; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th { text-align: left; font-weight: 500; font-size: 12px; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--sunken); white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
td .l2 { color: var(--muted); font-size: 12px; margin-top: 1px; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.link-row { cursor: pointer; }
tr.link-row:hover td { background: #fafbfc; }
.row-link { font-weight: 500; }
.empty { padding: 36px 24px; text-align: center; color: var(--muted); }
.table-foot { color: var(--muted); font-size: 12px; margin-top: 10px; max-width: 70em; }

/* Filters */
.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.seg { display: inline-flex; background: var(--grey-bg); border-radius: 9px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; padding: 4px 10px; border-radius: 7px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.seg button:hover { color: var(--ink); border: 0; }
.seg button[aria-pressed=true] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px #1217221a; }
.seg button .c { color: var(--faint); margin-left: 3px; font-weight: 400; }
.search { position: relative; margin: 0; }
/* input[type=search] here outranks the form rules below (their padding and label > input's margin) */
.search > input[type=search] { padding-left: 32px; margin: 0; width: 260px; max-width: 100%; }
.filter-input { width: 220px; }
.search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--faint); }

/* ---- Forms and buttons ------------------------------------------------- */
label { display: block; font-size: 12.5px; font-weight: 500; margin: 14px 0 5px; color: var(--ink-2); }
input[type=text], input[type=email], input[type=password], input[type=search], textarea, select {
  width: 100%; font: inherit; font-size: 13.5px; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 7px 10px;
}
textarea { min-height: 80px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 3px solid var(--blue-bg); border-color: var(--blue); }
.btn, button {
  font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: var(--radius-sm); padding: 6px 12px; white-space: nowrap;
}
.btn:hover, button:hover { border-color: #c4cad3; color: var(--ink); }
.btn.primary, button.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover, button.primary:hover { background: #262d3a; color: #fff; }
button.danger { color: var(--red); }
button.danger:hover { border-color: var(--red-line); background: var(--red-bg); }
button.plain { border: 0; background: none; padding: 0; color: var(--muted); font-weight: 400; }
button.plain:hover { color: var(--ink); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.inline { display: inline; margin: 0; }
.alert { padding: 10px 14px; border-radius: var(--radius-sm); margin: 12px 0; font-size: 13px; border: 1px solid; }
.alert.error { background: var(--red-bg); color: var(--red); border-color: var(--red-line); }
.alert.ok { background: var(--green-bg); color: var(--green); border-color: var(--green-line); }
.alert.info { background: var(--blue-bg); color: var(--blue); border-color: var(--blue-line); }

/* Key and code */
.keybox { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.keybox code { background: var(--sunken); border: 1px solid var(--line); padding: 7px 11px; border-radius: var(--radius-sm); font-size: 13px; word-break: break-all; }
pre { background: var(--sunken); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 11px 13px; overflow-x: auto; font-family: var(--mono); font-size: 12px; line-height: 1.6; margin: 6px 0 14px; }
.step { font-size: 13px; color: var(--ink-2); }
.tabbar { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tabbar button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; color: var(--muted); padding: 7px 12px; margin-bottom: -1px; }
.tabbar button:hover { border: 0; border-bottom: 2px solid var(--line); }
.tabbar button[aria-selected=true] { color: var(--ink); border-bottom-color: var(--ink); }
.tab-panel[hidden] { display: none; }
details > summary { cursor: pointer; color: var(--muted); font-size: 13px; list-style: none; display: flex; align-items: center; gap: 6px; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: '›'; display: inline-block; transition: transform .15s; font-size: 15px; line-height: 1; }
details[open] > summary::before { transform: rotate(90deg); }
details > summary:hover { color: var(--ink); }

/* System / instance detail */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr 1fr; } }
.fact .v { font-size: 16px; font-weight: 600; margin-top: 6px; letter-spacing: -.01em; }
.fact .s { color: var(--muted); font-size: 12px; margin-top: 2px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
@media (max-width: 960px) { .split { grid-template-columns: minmax(0, 1fr); } }
.split > * { min-width: 0; }
dl.meta { display: grid; grid-template-columns: max-content 1fr; gap: 7px 16px; margin: 0; font-size: 13px; }
dl.meta dt { color: var(--muted); }
dl.meta dd { margin: 0; overflow-wrap: anywhere; }
.adv { list-style: none; margin: 8px 0 0; padding: 0; }
.adv li { padding: 6px 0; border-top: 1px dashed var(--line); font-size: 12.5px; }
.adv li:first-child { border-top: 0; }
.adv a { font-family: var(--mono); font-size: 12px; color: var(--blue); }

/* Login */
.login { max-width: 380px; margin: 14vh auto 0; padding: 0 16px; }
.login .brand { justify-content: center; margin-bottom: 22px; font-size: 18px; }

/* Most urgent: the whole card links to the finding */
a.card.urgent { display: block; margin-bottom: 14px; position: relative; padding-right: 150px; }
a.card.urgent.red { border-color: var(--red-line); }
a.card.urgent.yellow, a.card.urgent.unknown { border-color: var(--amber-line); }
a.card.urgent:hover { color: inherit; box-shadow: 0 1px 3px #1217221a; }
a.card.urgent h2 { margin-top: 4px; }
a.card.urgent p { margin-top: 4px; }
a.card.urgent .go { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); }
tr.finding:target td, tr[id^="pkg-"]:target td { background: var(--amber-bg); }
tr[id^="pkg-"] { scroll-margin-top: 72px; }
tr.finding { scroll-margin-top: 72px; }

/* Manage menu (a <details>, so it works without script) */
.menu { position: relative; }
.menu > summary { list-style: none; }
.menu > summary::before { content: none; }
.menu > summary.btn { color: var(--ink); font-size: 13px; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 220px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 8px 24px #1217221f; }
.menu-pop a { display: block; padding: 7px 10px; border-radius: 6px; font-size: 13px; }
.menu-pop a:hover { background: var(--sunken); color: var(--ink); }
.menu-pop a.text-red:hover { background: var(--red-bg); color: var(--red); }
.menu-pop hr { border: 0; border-top: 1px solid var(--line-soft); margin: 5px 0; }
.menu-pop form { margin: 0; }
.menu-pop button.menu-item { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 7px 10px; border-radius: 6px; font-weight: 400; color: inherit; }
.menu-pop button.menu-item:hover { background: var(--sunken); color: var(--ink); }
.menu-who { display: flex; flex-direction: column; gap: 2px; padding: 6px 10px 4px; min-width: 0; }
.menu-who > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu > summary.avatar { cursor: pointer; }

/* Settings page */
.settings { max-width: 820px; }
.settings .section-head { scroll-margin-top: 72px; }
.danger-zone form + form { border-top: 1px solid var(--line-soft); margin-top: 18px; padding-top: 18px; }
.danger-zone .row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.danger-zone p { margin-top: 2px; }

/* Advisory list inside a package row */
.adv-list > summary { color: var(--ink-2); }


/* ---- Severity, fix-by, per-system bars ---------------------------------- */
:root {
  --sev-critical: #9f1239; --sev-high: #e5483b; --sev-medium: #d98b0b; --sev-low: #4f7fe0;
  --sev-critical-ink: #9f1239; --sev-high-ink: #b42318; --sev-medium-ink: #8a5300; --sev-low-ink: #2c5bc4;
}
.sevlab { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; white-space: nowrap; }
.sevlab i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.sevlab.critical { color: var(--sev-critical-ink); } .sevlab.critical i { background: var(--sev-critical); }
.sevlab.high { color: var(--sev-high-ink); } .sevlab.high i { background: var(--sev-high); }
.sevlab.medium { color: var(--sev-medium-ink); } .sevlab.medium i { background: var(--sev-medium); }
.sevlab.low { color: var(--sev-low-ink); } .sevlab.low i { background: var(--sev-low); }
/* Not a severity: nothing here comes from an advisory. A diamond, not a dot. */
.sevlab.platform { color: var(--muted); }
.sevlab.platform i { background: var(--faint); border-radius: 1px; transform: rotate(45deg) scale(.85); }
.legend .sevlab { color: var(--ink-2); font-size: 12px; }
.fixby { min-width: 150px; }
.fx-row { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.fx-row b { font-weight: 600; }
.fx-row span { color: var(--faint); }
.fx-track { height: 5px; margin-top: 4px; background: var(--line-soft); }
.fx-track span { display: block; height: 100%; border-radius: 99px; background: var(--muted); }
.fixby.over b { color: var(--red); }
.fixby.over .fx-track { background: var(--red-bg); }
.fixby.over .fx-track span { background: var(--sev-high); }
th.w-fix { width: 190px; }
.sevbar { display: flex; gap: 2px; width: 120px; height: 6px; margin-top: 6px; }
.sevbar span { flex: 1; border-radius: 99px; max-width: 40px; }
.sevbar .critical { background: var(--sev-critical); } .sevbar .high { background: var(--sev-high); }
.sevbar .medium { background: var(--sev-medium); } .sevbar .low { background: var(--sev-low); }
.sevbar .none { background: var(--line); max-width: none; }

/* ---- Overview ----------------------------------------------------------- */
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.card-head.wrap { flex-wrap: wrap; }
.card-head h2 { font-size: 15px; }
.card-head .muted.small { display: block; margin-top: 1px; }
.dash-grid { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(0, 2fr); gap: 16px; margin-bottom: 16px; }
.dash-grid.wide-first { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }
@media (max-width: 1100px) { .dash-grid, .dash-grid.wide-first { grid-template-columns: 1fr; } }
.delta { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 99px; white-space: nowrap; }
.delta.up { background: var(--green-bg); color: var(--green); }
.delta.down { background: var(--red-bg); color: var(--red); }

.score-body { display: flex; align-items: center; gap: 20px; }
.ring { position: relative; width: 132px; height: 132px; flex: none; }
.ring .track { fill: none; stroke: var(--line-soft); stroke-width: 12; }
.ring .arc { fill: none; stroke: #1f9d5a; stroke-width: 12; stroke-linecap: round; }
.ring.grade-c .arc { stroke: var(--sev-medium); }
.ring.grade-d .arc, .ring.grade-f .arc { stroke: var(--sev-high); }
.ring-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-text .g { font-size: 40px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.ring-text .s { font-size: 12px; color: var(--muted); }
.score-copy { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--ink-2); }
.score-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; border-top: 1px solid var(--line-soft); padding-top: 12px; margin-top: 16px; font-size: 12px; color: var(--muted); }
.score-facts b { display: block; font-size: 16px; color: var(--ink); font-weight: 600; }

.chart { position: relative; height: 220px; padding: 0 0 22px 28px; }
.y-axis { position: absolute; left: 0; top: 0; bottom: 22px; width: 22px; display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; color: var(--faint); text-align: right; line-height: 1; }
.plot { position: absolute; left: 28px; right: 0; top: 0; bottom: 22px; cursor: crosshair; }
.plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.grid-line { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--line-soft); }
.baseline { position: absolute; left: 0; right: 0; bottom: 0; border-top: 1px solid #c5cad3; }
.area { stroke: #fff; stroke-width: 2; }
.area.critical { fill: var(--sev-critical); } .area.high { fill: var(--sev-high); }
.area.medium { fill: var(--sev-medium); } .area.low { fill: var(--sev-low); }
.x-axis { position: absolute; left: 28px; right: 0; bottom: 0; display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); }
.crosshair { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--ink); opacity: .45; pointer-events: none; }
.tip { position: absolute; top: 6px; background: var(--ink); color: #fff; border-radius: 8px; padding: 8px 10px; font-size: 12px; line-height: 1.6; white-space: nowrap; box-shadow: 0 6px 18px #0f142030; pointer-events: none; z-index: 2; }
.tip b { font-weight: 600; }
.tip .r { display: flex; align-items: center; gap: 6px; }
.tip .r i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.tip .r span { flex: 1; padding-right: 14px; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 16px; }
.kpi { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; color: var(--ink); text-align: left; font: inherit; }
a.kpi:hover, button.kpi:hover { color: var(--ink); border-color: #c5cad3; }
.kpi > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.kpi .kpi-body { flex-direction: row !important; align-items: flex-end; justify-content: space-between; gap: 10px; }
.kpi .kpi-body > span:first-child { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.kpi-head { display: flex; align-items: center; gap: 10px; }
.lbl { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.num { font-size: 30px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.num small { font-size: 16px; color: var(--faint); font-weight: 500; letter-spacing: 0; }
.ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.ico.red { background: var(--red-bg); color: var(--red); } .ico.green { background: var(--green-bg); color: var(--green); }
.ico.amber { background: var(--amber-bg); color: var(--amber); } .ico.blue { background: var(--blue-bg); color: var(--blue); }
.spark polyline { fill: none; stroke: var(--muted); stroke-width: 2; stroke-linejoin: round; }
button.kpi.sev-box { flex-direction: row; align-items: center; gap: 14px; cursor: pointer; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); white-space: normal; }
button.kpi.sev-box > span:last-child { display: flex; flex-direction: column; }
.sev-strip { width: 10px; align-self: stretch; border-radius: 99px; flex: none; }
.sev-box.critical .sev-strip { background: var(--sev-critical); } .sev-box.high .sev-strip { background: var(--sev-high); }
.sev-box.medium .sev-strip { background: var(--sev-medium); } .sev-box.low .sev-strip { background: var(--sev-low); }

.fix-card, .systems-card { padding: 0; overflow: hidden; }
.fix-card .card-head, .systems-card .card-head { padding: 18px 20px 0; }
.fix-card table td { vertical-align: middle; }
.fix-card .empty { padding: 28px 20px; }
.systems-card .filters { padding: 0 20px; }
.events { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 13px; }
.events li { display: flex; gap: 12px; align-items: flex-start; }
.events .t { color: var(--ink); font-weight: 500; }
.events .t:hover { color: var(--blue); }
.events .l2 { display: block; }
.events .grow { flex: 1; min-width: 0; }
.events .when { color: var(--faint); font-size: 12px; white-space: nowrap; }
.events-card { padding: 18px 20px; }
.ev-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--grey-bg); color: var(--muted); }
.ev-ico.critical, .ev-ico.high, .ev-ico.red { background: var(--red-bg); color: var(--red); }
.ev-ico.medium, .ev-ico.yellow { background: var(--amber-bg); color: var(--amber); }
.ev-ico.low, .ev-ico.blue { background: var(--blue-bg); color: var(--blue); }
.ev-ico.green { background: var(--green-bg); color: var(--green); }
.sys { display: flex; align-items: center; gap: 10px; }
.sys .l2 { display: block; }
.glyph-box { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--grey-bg); }
.glyph-box.python { background: #eef3f9; } .glyph-box.nodejs { background: #eef6ee; }
.glyph-box.php { background: #f1f1f8; } .glyph-box.dotnet { background: #f4eefa; }

/* Search */
.search-big { display: flex; gap: 8px; max-width: 640px; margin-bottom: 8px; }
.search-big input { flex: 1; padding: 9px 12px; }
.list-card { padding: 6px; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; flex-wrap: wrap; }
.list-row:hover { background: var(--sunken); color: inherit; }

.footer { width: 100%; padding: 18px 32px 40px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--faint); font-size: 12px; border-top: 1px solid var(--line); }

@media (max-width: 860px) {
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-100%); transition: transform .2s ease-out; box-shadow: 0 10px 40px #0f142033; }
  .sb-open .sidebar { transform: none; }
  .sb-open .sb-backdrop { display: block; position: fixed; inset: 0; background: #0f142066; z-index: 25; }
  .menu-btn { display: grid; }
  .topbar { padding: 10px 16px; gap: 8px; }
  .gsearch { width: auto; flex: 1; min-width: 0; }
  .gsearch kbd, .crumbs { display: none; }
  .topbar .spacer { display: none; }
}
@media (max-width: 720px) {
  main { padding: 22px 16px 40px; }
  .footer { padding: 18px 16px 32px; }
  h1 { font-size: 1.45rem; }
  .card { padding: 18px; }
  .score-body { flex-direction: column; align-items: flex-start; }
  .page-head { align-items: flex-start; }
  .filters { flex-direction: column; align-items: stretch; }
  .filters .spacer { display: none; }
  .seg { overflow-x: auto; max-width: 100%; }
  .seg button { flex: none; }
  .search > input[type=search], .filter-input { width: 100%; }
  .section-head .filter-input { order: 9; }
  a.card.urgent { padding-right: 18px; }
  a.card.urgent .go { position: static; transform: none; display: inline-block; margin-top: 10px; }
  .facts { gap: 10px; }
  .danger-zone .row { flex-direction: column; align-items: flex-start; }
  .fix-card .card-head, .systems-card .card-head { padding: 16px 16px 0; }
  .systems-card .filters { padding: 0 16px; }
  .fixby { min-width: 0; }

  /* Tables marked .stack-sm become one card per row, each cell labelled */
  table.stack-sm thead { display: none; }
  table.stack-sm, table.stack-sm tbody { display: block; }
  table.stack-sm tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 16px;
    padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
  table.stack-sm tr[hidden] { display: none; }
  table.stack-sm tbody tr:last-child { border-bottom: 0; }
  table.stack-sm td { display: block; padding: 0; border: 0; min-width: 0; }
  table.stack-sm td.cell-head, table.stack-sm td.cell-wide, table.stack-sm td[colspan] { grid-column: 1 / -1; }
  table.stack-sm td.cell-head + td.cell-head { margin-top: -6px; }
  table.stack-sm td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; color: var(--faint); margin-bottom: 1px; }
  table.stack-sm td.nowrap { white-space: normal; }
  tr.link-row:hover td { background: none; }
}

@media print {
  .topbar, .sidebar, .no-print, .footer { display: none !important; }
  html, body { background: #fff; }
  main { padding: 0; max-width: none; }
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }

/* ---- Monitors: status, uptime bar, tabs, forms -------------------------- */
input[type=url], input[type=number], input[type=time], input[type=datetime-local] {
  width: 100%; font: inherit; font-size: 13.5px; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 7px 10px;
}
label > input, label > select { margin-top: 5px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 14px; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.inline-form input[type=email], .inline-form select { width: auto; min-width: 240px; flex: 1; max-width: 360px; margin: 0; }
.inline-form label.check { font-weight: 400; }
.plain-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.plain-list li { display: flex; align-items: center; gap: 12px; }
.h3 { font-size: 13.5px; font-weight: 600; margin: 18px 0 2px; }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 400; color: var(--ink); margin: 6px 0; }
label.check input { width: auto; margin: 0; }
.systems-pick { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 6px 14px 10px; margin: 16px 0 0; }
.systems-pick legend { font-size: 12.5px; font-weight: 500; color: var(--ink-2); padding: 0 4px; }
.systems-pick[hidden] { display: none; }

.mstat { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; font-size: 13px; white-space: nowrap; }
.mstat i { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); flex: none; }
.mstat.green { color: var(--green); } .mstat.green i { background: #2fa36b; box-shadow: 0 0 0 3px #2fa36b2e; }
.mstat.red { color: var(--red); } .mstat.red i { background: var(--red-bar); box-shadow: 0 0 0 3px #d63a2f2e; }
.mstat.yellow { color: var(--amber); } .mstat.yellow i { background: #e9a23b; }
.mstat.blue { color: var(--blue); } .mstat.blue i { background: var(--blue); }
.mstat.grey { color: var(--muted); }

.ubar { display: flex; gap: 2px; height: 30px; align-items: stretch; }
.ubar span { flex: 1; min-width: 2px; border-radius: 3px; background: var(--line); }
.ubar .green { background: #3fb07a; } .ubar .yellow { background: #e9a23b; } .ubar .red { background: var(--red-bar); }
.ubar .maint { background: #9db2ea; } .ubar .none { background: var(--line-soft); }
.kpi .ubar { height: 14px; margin-top: 8px; gap: 1px; }
.ubar-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); margin-top: 6px; }
.ulg { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }
.ulg i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.ulg.green i { background: #3fb07a; } .ulg.yellow i { background: #e9a23b; } .ulg.red i { background: var(--red-bar); }
.ulg.maint i { background: #9db2ea; } .ulg.none i { background: var(--line-soft); border: 1px solid var(--line); }
.rt-chart { height: 180px; }
.rt-line { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; }

.ptabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: -6px 0 20px; }
.ptabs a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 500; }
.ptabs a:hover { color: var(--ink); }
.ptabs a.on { color: var(--ink); border-bottom-color: var(--accent); }

.add-card { margin-top: 12px; padding: 14px 20px; }
.add-card > summary { color: var(--ink); }
.add-card[open] > summary { margin-bottom: 4px; }
.mt-row { display: flex; gap: 14px; flex-wrap: wrap; }
.mt-row label { flex: 1; min-width: 150px; }
.mt-row[hidden] { display: none; }
.seg label { margin: 0; padding: 4px 10px; border-radius: 7px; font-size: 12.5px; color: var(--muted); font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.seg label:has(input:checked) { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px #1217221a; }
.seg label input { margin: 0; }

.downbar { display: flex; align-items: center; gap: 12px; padding: 11px 16px; margin-bottom: 20px; border-radius: var(--radius); background: var(--red-bg); border: 1px solid var(--red-line); color: var(--red); font-size: 13.5px; flex-wrap: wrap; }
.downbar .grow { flex: 1; min-width: 0; }
.downbar a { color: var(--red); }
.downbar a:hover { text-decoration: underline; }
.downbar .link-w { font-weight: 600; white-space: nowrap; }
.downbar .pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--red-bar); box-shadow: 0 0 0 4px #d63a2f33; flex: none; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px #d63a2f14; } }
@media (prefers-reduced-motion: reduce) { .downbar .pulse { animation: none; } }
.sb-down { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--red); }
.sb-down i { width: 7px; height: 7px; border-radius: 50%; background: var(--red-bar); }

.ms-btn { width: 100%; justify-content: center; gap: 10px; margin-top: 18px; min-height: 40px; font-size: 14px; }
.pw-login { margin-top: 16px; border-top: 1px solid var(--line-soft); padding-top: 12px; }
.pw-login > summary { font-size: 12.5px; }
@media (max-width: 720px) {
  .inline-form input[type=email], .inline-form select { min-width: 0; max-width: none; width: 100%; }
  .ptabs { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .ptabs a { padding: 9px 10px; }
}

/* Edit form for a check: a full-width row under it, shown when the Edit link targets it */
tr.edit-row:not(:target) { display: none !important; }
tr.edit-row { scroll-margin-top: 140px; }
tr.edit-row > td { background: var(--sunken); padding: 16px 18px 18px; }
tr.edit-row .actions .spacer { flex: 1; }
tr.edit-row form { max-width: 760px; }
.edit-grid > label:first-child { margin-top: 0; }
.btn.small-btn, button.small-btn { font-size: 12.5px; padding: 4px 10px; }
@media (max-width: 720px) { table.stack-sm tr.edit-row:target { display: block; } }

/* Monitors page: one tbody per client, folded while everything in it is up */
.mon-table tbody[hidden] { display: none !important; }
.mon-table tbody.mon-group[data-folded] tr:not(.group-row) { display: none; }
.mon-table tr.group-row, .mon-table tr.group-row td { background: var(--grey-bg); }
.mon-table tr.group-row td { padding: 9px 16px; }
.group-toggle { border: 0; background: none; box-shadow: none; padding: 0; font: inherit; color: var(--ink); cursor: pointer;
  display: inline-flex; align-items: baseline; gap: 10px; flex-wrap: wrap; text-align: left; }
.group-toggle:hover { border: 0; background: none; color: var(--ink); }
.group-toggle::before { content: '›'; display: inline-block; width: 10px; color: var(--muted); transition: transform .15s; }
.group-toggle[aria-expanded=true]::before { transform: rotate(90deg); }
.group-toggle .g-name { font-weight: 600; }
.group-toggle .g-sum { color: var(--muted); font-size: 12.5px; }
.group-row .g-link { float: right; margin-top: 2px; }
@media (max-width: 720px) {
  .mon-table tr.group-row td { padding: 0; }
  .filters [data-mon-expand] { width: auto; flex: none; align-self: flex-start; }
}

/* ---- One error: stack trace, frames, breadcrumbs ---------------------------- */
.err-head { min-width: 0; max-width: 100%; }
.err-head h1 { font-size: 1.35rem; overflow-wrap: anywhere; }
.exc { margin-bottom: 14px; }
.exc-type { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.exc-value { margin: 6px 0 12px; font-size: 14px; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.frames { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.frame { border-top: 1px solid var(--line-soft); }
.frame:first-child { border-top: 0; }
.frame > summary { padding: 8px 12px; font-size: 12.5px; cursor: pointer; overflow-wrap: anywhere; }
.frame > summary:hover { background: var(--sunken); }
.frame.lib > summary { color: var(--muted); }
.frame.lib > summary .strong { font-weight: 500; }
.frames.hide-lib .frame.lib { display: none; }
.fr-toggle { margin: 8px 12px; }
.fr-none { padding: 0 12px 10px; }
pre.code { margin: 0; border: 0; border-top: 1px solid var(--line-soft); border-radius: 0; padding: 6px 0; }
pre.code span { display: block; padding: 0 12px; white-space: pre; }
pre.code span i { display: inline-block; min-width: 3.2em; color: var(--faint); font-style: normal; user-select: none; }
pre.code span.hit { background: var(--red-bg); color: var(--ink); }
.fr-vars { padding: 10px 12px; border-top: 1px dashed var(--line); font-size: 12px; }
.fr-vars dd { overflow-wrap: anywhere; }
dl.meta dd { overflow-wrap: anywhere; min-width: 0; }
td.crumb { font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; }
.ev-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ev-tag { font-size: 12px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--sunken); overflow-wrap: anywhere; }
pre.raw { max-height: 480px; overflow: auto; margin-bottom: 0; }
.err-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.err-actions form { margin: 0; }
.err-mute { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; margin: 4px 0 10px; }
.err-mute label { flex: 1; min-width: 180px; margin: 0; }
.err-mute select { margin-bottom: 0; }
