* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --text-primary: var(--im-color-text);
  --text-secondary: var(--im-color-text-secondary);
  --text-muted: var(--im-color-text-muted);
  --text-subtle: var(--im-color-text-subtle);
  --line: var(--im-color-border);
  --panel: var(--im-color-surface);
}

body {
  background: var(--im-color-canvas);
  font-family: var(--font-ui, system-ui, sans-serif);
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--im-color-text);
}

/* Stamp the server-resolved route before deferred JavaScript runs. This keeps
   endpoint-only header metrics and the wrong body view out of first paint,
   avoiding the large mobile layout shift that previously occurred in init(). */
body:is(
  [data-dashboard-page-kind="root"],
  [data-dashboard-page-kind="company"],
  [data-dashboard-page-kind="feature"]
) :is(.stats, #subtitle) {
  display: none;
}
body:is(
  [data-dashboard-page-kind="company"],
  [data-dashboard-page-kind="feature"],
  [data-dashboard-page-kind="endpoint"]
) #view-companies {
  display: none;
}

/* Server-rendered discovery remains visible when JavaScript is unavailable.
   Interactive browsers retain the existing canvas dashboard without duplicate
   navigation, while agents reading HTML receive the semantic snapshot. */
.dashboard-js .agent-readable-page { display: none; }
html:not(.dashboard-js) body {
  height: auto;
  min-height: 100vh;
  overflow: auto;
}
html:not(.dashboard-js) #err-overlay,
html:not(.dashboard-js) #status-bar,
html:not(.dashboard-js) body > header,
html:not(.dashboard-js) #view-companies,
html:not(.dashboard-js) #view-endpoints,
html:not(.dashboard-js) #view-chart,
html:not(.dashboard-js) #tip {
  display: none !important;
}
.agent-readable-page {
  width: min(1040px, calc(100% - 32px));
  margin: 24px auto;
  padding: clamp(20px, 4vw, 38px);
  border: 1px solid rgba(0,245,180,0.28);
  border-radius: 10px;
  background: #0d1628;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}
.agent-readable-page > header {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  flex: none;
}
.agent-readable-page > nav {
  min-height: 0;
  padding: 0;
  border: 0;
  flex: none;
}
.agent-readable-kicker {
  margin-bottom: 5px;
  color: #00f5b4;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.agent-readable-page h1 {
  color: var(--text-primary);
  font-size: clamp(24px, 5vw, 38px);
  line-height: 1.15;
}
.agent-readable-lead { max-width: 760px; margin-top: 12px; }
.agent-readable-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 22px 0;
}
.agent-readable-page a { color: #64b4ff; }
.agent-readable-page a:hover,
.agent-readable-page a:focus-visible { color: #00f5b4; }
.agent-readable-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin: 18px 0;
}
.agent-readable-facts > div {
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  background: rgba(255,255,255,0.025);
}
.agent-readable-facts dt {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.agent-readable-facts dd {
  margin-top: 3px;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}
.agent-readable-page h2 {
  margin: 25px 0 10px;
  color: var(--text-primary);
  font-size: 18px;
}
.agent-readable-list {
  display: grid;
  gap: 9px;
  margin-top: 10px;
  list-style: none;
}
.agent-readable-list > li,
.agent-readable-endpoint {
  padding: 13px 15px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  background: rgba(8,14,28,0.58);
}
.agent-readable-endpoint h2 { margin: 0 0 5px; font-size: 16px; }
.agent-readable-endpoint + .agent-readable-endpoint { margin-top: 9px; }
.agent-readable-meta {
  margin-top: 7px;
  color: var(--text-muted);
  font-size: 12px;
}
.agent-readable-meta code {
  color: var(--text-secondary);
  font-family: var(--font-mono, ui-monospace, monospace);
  overflow-wrap: anywhere;
}
.agent-readable-note {
  margin-top: 24px;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted);
  font-size: 12px;
}

/* ── status bar ──────────────────────────────── */
#status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 36px;
  flex-shrink: 0;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: bold;
  transition: background 0.4s, color 0.4s;
  gap: 12px;
}
#status-bar.ok      { background: rgba(0,245,180,0.12); color: #00f5b4; border-bottom: 1px solid rgba(0,245,180,0.2); }
#status-bar.warn    { background: rgba(255,200,50,0.12); color: #ffc832; border-bottom: 1px solid rgba(255,200,50,0.25); }
#status-bar.down    { background: rgba(255,75,75,0.12);  color: #ff5555; border-bottom: 1px solid rgba(255,75,75,0.25); }
#status-bar.regional { background: var(--im-color-info-soft); color: var(--im-color-info); border-bottom: 1px solid var(--im-color-border-emphasis); }
#status-bar.loading { background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.3); border-bottom: 1px solid rgba(255,255,255,0.06); }

.sb-left  { display: flex; align-items: center; gap: 10px; }
.sb-dot   { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.sb-dot.pulse-anim { animation: blink 2s ease-in-out infinite; }
.sb-right { display: flex; align-items: center; gap: 14px; }
.sb-region {
  display: flex; align-items: center; gap: 5px;
  font-size: 10px; opacity: 0.85;
}
.sb-rdot  { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.sb-region-state { font-size: 8px; opacity: 0.78; }

/* ── header ─────────────────────────────────── */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px 14px;
  border-bottom: 1px solid rgba(0,245,180,0.15);
  background: linear-gradient(180deg, rgba(0,245,180,0.04) 0%, transparent 100%);
  flex-shrink: 0;
  gap: 12px;
}

.left { display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; }
.brand-row { display: flex; align-items: center; gap: 14px; }

.wordmark {
  font-size: 13px; font-weight: bold; letter-spacing: 0.25em;
  text-transform: uppercase; color: #fff;
  display: flex; align-items: center; gap: 10px;
}
.header-link {
  min-height: 34px; display: inline-flex; align-items: center; justify-content: center;
  padding: 7px 10px; border: 1px solid rgba(255,255,255,0.16); border-radius: 4px;
  color: var(--text-secondary); text-decoration: none; font-size: 9px; font-weight: bold;
  letter-spacing: 0.12em; text-transform: uppercase; transition: all 0.15s;
}
.header-link:hover, .header-link:focus-visible {
  color: #00f5b4; border-color: rgba(0,245,180,0.55); background: rgba(0,245,180,0.06);
  outline: none;
}

.pulse {
  width: 14px; height: 14px; border-radius: 50%;
  background: #00f5b4;
  box-shadow: 0 0 10px rgba(0,245,180,1), 0 0 24px rgba(0,245,180,0.7), 0 0 48px rgba(0,245,180,0.3);
  animation: blink 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes blink {
  0%,100% { opacity:1; }
  50%      { opacity:0.5; }
}

.subtitle { font-size: 11px; color: rgba(255,255,255,0.85); letter-spacing: 0.08em; padding-left: 18px; }

.stats { display: flex; gap: clamp(14px, 2vw, 28px); align-items: flex-end; flex-wrap: wrap; }
.stat  { display: flex; min-width: 0; flex-direction: column; align-items: flex-end; gap: 2px; }
.stat-label { font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.stat-val   { font-size: 22px; font-weight: bold; color: #e8f4ff; letter-spacing: -0.02em; line-height: 1; }
.stat-val.green { color: #00f5b4; text-shadow: 0 0 20px rgba(0,245,180,0.5); }
.stat-val.red { color: #ff5555; text-shadow: 0 0 20px rgba(255,85,85,0.35); }
.unit { font-size: 13px !important; color: rgba(255,255,255,0.45) !important; font-weight: normal !important; }

/* ── nav ─────────────────────────────────────── */
nav {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 32px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.rb {
  background: none; border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.5);
  font-family: inherit; font-size: 11px; font-weight: bold;
  letter-spacing: 0.15em; padding: 7px 16px; cursor: pointer;
  transition: all 0.15s; touch-action: manipulation;
  min-height: 36px;
}
.rb:hover:not(.on) { border-color: rgba(255,255,255,0.35); color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.04); }
.rb.on { background: rgba(0,245,180,0.15); border-color: #00f5b4; color: #00f5b4; box-shadow: 0 0 12px rgba(0,245,180,0.2); }

/* ── endpoint search ─────────────────────────── */
#endpoint-bar {
  position: relative;
  display: flex; align-items: center;
  padding: 8px 32px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
  gap: 10px;
}

.ep-label {
  font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,0.35); white-space: nowrap; flex-shrink: 0;
}

.ep-search-wrap {
  position: relative; flex: 1; max-width: 520px;
}

.ep-input-row {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  transition: border-color 0.15s, background 0.15s;
  padding: 0 12px; gap: 8px; height: 34px; cursor: text;
}
.ep-input-row:focus-within {
  border-color: rgba(0,245,180,0.5);
  background: rgba(0,245,180,0.04);
}

.ep-icon { color: rgba(255,255,255,0.35); font-size: 13px; flex-shrink: 0; }

#ep-input {
  flex: 1; background: none; border: none; outline: none;
  font-family: var(--font-mono, ui-monospace, monospace); font-size: 11px;
  color: #fff; letter-spacing: 0.05em;
  min-width: 0;
}
#ep-input::placeholder { color: rgba(255,255,255,0.3); }

.ep-clear {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.3); font-size: 16px; line-height: 1;
  min-width: 24px; min-height: 24px; padding: 0; display: none; flex-shrink: 0;
  transition: color 0.15s;
}
.ep-clear:hover { color: rgba(255,255,255,0.7); }
.ep-clear.visible { display: block; }

.ep-count {
  font-size: 10px; color: rgba(255,255,255,0.3);
  letter-spacing: 0.08em; white-space: nowrap; flex-shrink: 0;
}

/* dropdown */
#ep-dropdown {
  display: none;
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: #0d1628;
  border: 1px solid rgba(0,245,180,0.25);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  z-index: 200; max-height: 260px; overflow-y: auto;
}
#ep-dropdown.open { display: block; }
#ep-dropdown::-webkit-scrollbar { width: 4px; }
#ep-dropdown::-webkit-scrollbar-track { background: transparent; }
#ep-dropdown::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); }

.ep-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; cursor: pointer;
  font-size: 11px; letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.1s;
}
.ep-item:last-child { border-bottom: none; }
.ep-item:hover, .ep-item.focused { background: rgba(0,245,180,0.08); }
.ep-item.selected { background: rgba(0,245,180,0.1); }
.ep-item.selected .ep-item-path { color: #00f5b4; }

.ep-item-host {
  color: rgba(255,255,255,0.5); flex-shrink: 1;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ep-item-sep  { color: rgba(255,255,255,0.2); flex-shrink: 0; }
.ep-item-path {
  color: rgba(255,255,255,0.9); font-weight: bold; flex: 1;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ep-item-check { margin-left: auto; color: #00f5b4; flex-shrink: 0; display: none; }
.ep-item.selected .ep-item-check { display: block; }

.ep-empty {
  padding: 16px 14px; font-size: 11px;
  color: rgba(255,255,255,0.3); letter-spacing: 0.08em;
  text-align: center;
}

/* ── legend ──────────────────────────────────── */
#legend {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 8px 32px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
  min-height: 34px;
}
.legend-item {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; letter-spacing: 0.08em;
}
.legend-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.legend-series { display: block; width: 32px; height: 12px; flex-shrink: 0; overflow: visible; }
.legend-region { color: rgba(255,255,255,0.9); font-weight: bold; }
.legend-name   { color: rgba(255,255,255,0.4); }
.legend-avg    { font-weight: bold; margin-left: 2px; }

.chart-evidence-summary {
  display: flex; align-items: baseline; gap: 8px 16px; flex-wrap: wrap;
  padding: 7px 32px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  color: var(--text-muted);
  font-size: 10px; line-height: 1.45;
  flex-shrink: 0;
}
.chart-evidence-summary span { min-width: 0; }
.chart-evidence-summary span:not(:first-child)::before {
  content: "\00b7";
  margin-right: 16px;
  color: var(--text-subtle);
}

/* ── charts ──────────────────────────────────── */
.chart-outer {
  flex: 1; min-height: 0;
  padding: 14px 32px 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.chart-block { position: relative; flex: 1; min-height: 0; }
.chart-block.status-block { flex-shrink: 0; }
.chart-title {
  position: absolute; top: 0; left: 0;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.45); z-index: 1;
}
#st-c:focus-visible { outline: 1px solid rgba(255,255,255,.55); outline-offset: 2px; }
.chart-view-control {
  position: absolute; top: 0; right: 0; z-index: 12;
  display: flex; align-items: center; gap: 8px;
}
.chart-view-control label {
  color: rgba(255,255,255,0.35); font-size: 9px;
  letter-spacing: 0.12em; text-transform: uppercase;
}
#chart-view-select {
  appearance: none; min-width: 188px; padding: 5px 28px 5px 9px;
  border: 1px solid rgba(255,255,255,0.15); border-radius: 3px;
  background: #0d1628 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='m1 1 4 4 4-4' fill='none' stroke='%238b96a8'/%3E%3C/svg%3E") no-repeat right 9px center;
  color: rgba(255,255,255,0.82); font: 10px var(--font-mono, ui-monospace, monospace);
  cursor: pointer;
}
#chart-view-select:focus { outline: 1px solid rgba(0,245,180,0.55); }
canvas { display: block; width: 100%; height: 100%; touch-action: none; }

#zoom-reset {
  display: none; position: absolute; top: 34px; right: 0;
  background: rgba(0,245,180,0.12); border: 1px solid rgba(0,245,180,0.4);
  color: #00f5b4; font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 10px; letter-spacing: 0.12em; padding: 4px 10px;
  cursor: pointer; z-index: 10; transition: background 0.15s;
}
#zoom-reset:hover { background: rgba(0,245,180,0.22); }
#zoom-reset.visible { display: block; }

#zoom-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.15); pointer-events: none;
  opacity: 0; transition: opacity 0.3s;
}
#lat-wrap:hover #zoom-hint { opacity: 1; }

/* ── tooltip ─────────────────────────────────── */
#tip {
  position: fixed;
  background: #0d1628;
  border: 1px solid rgba(0,245,180,0.4);
  box-shadow: 0 4px 24px rgba(0,0,0,0.6);
  padding: 10px 14px;
  font-family: var(--font-mono, ui-monospace, monospace); font-size: 11px;
  color: rgba(255,255,255,0.8);
  pointer-events: none; opacity: 0; transition: opacity 0.08s;
  line-height: 1.9; letter-spacing: 0.04em; z-index: 100;
  max-width: calc(100vw - 24px);
  will-change: transform, opacity;
}
#tip.show { opacity: 1; }
#tip .te { color: #ff5555; }

#no-backends {
  display: none;
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  text-align: center; color: rgba(255,255,255,0.3);
  font-size: 12px; letter-spacing: 0.1em;
}

/* ── mobile ──────────────────────────────────── */
/* The desktop dashboard is a fixed-height canvas shell. Endpoint details
   contain more evidence than a phone viewport can show, so keeping that shell
   in portrait or landscape clips the lower chart and makes vertical swipes
   appear broken. Use the document scroller, as the company detail view does. */
@media (max-width: 640px), (max-height: 640px) and (pointer: coarse) {
  body[data-dashboard-page-kind="endpoint"] {
    display: block;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
  }
  body[data-dashboard-page-kind="endpoint"] #view-chart {
    flex: none;
    min-height: 0;
    overflow: visible;
  }
  body[data-dashboard-page-kind="endpoint"] .chart-outer {
    flex: none;
    height: clamp(360px, 52dvh, 440px);
    min-height: 360px;
  }
  body[data-dashboard-page-kind="endpoint"] canvas {
    touch-action: pan-y;
  }
  body[data-dashboard-page-kind="endpoint"] #status-bar {
    min-width: 0;
    padding-inline: 16px;
  }
  body[data-dashboard-page-kind="endpoint"] .sb-right {
    min-width: 0;
    overflow-x: auto;
  }
  body[data-dashboard-page-kind="endpoint"] .sb-region span {
    display: none;
  }
}

@media (max-width: 640px) {
  #status-bar { padding: 0 16px; height: 32px; font-size: 10px; }
  .sb-region span { display: none; }
  #endpoint-bar { padding: 8px 16px; }
  .ep-label { display: none; }
  .ep-search-wrap { max-width: 100%; }
  header {
    padding: 12px 16px 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .left {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .brand-row { width: 100%; justify-content: space-between; gap: 10px; }
  .header-link { min-height: 44px; padding-inline: 12px; }

  .subtitle { display: none; }

  .stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 0;
    row-gap: 10px;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 8px;
  }

  .stat {
    align-items: center;
    padding: 0 4px;
    border-right: 1px solid rgba(255,255,255,0.06);
  }
  .stat:nth-child(3n) { border-right: none; }

  .stat-label { display:flex;min-height:2.4em;align-items:flex-end;text-align:center;font-size:9px;line-height:1.2;letter-spacing:0.08em; }
  .stat-val   { font-size: 15px; }
  .unit       { font-size: 10px !important; }

  nav {
    padding: 8px 16px;
    gap: 4px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .rb {
    flex: 1;
    padding: 9px 4px;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-align: center;
    min-height: 38px;
  }

  #legend {
    padding: 7px 16px;
    gap: 10px;
  }

  .chart-evidence-summary {
    display: grid;
    gap: 3px;
    padding: 7px 16px;
  }
  .chart-evidence-summary span:not(:first-child)::before { content: none; }

  .legend-name { display: none; }

  .legend-item { gap: 5px; }

  .chart-outer {
    padding: 10px 16px 12px;
    gap: 6px;
  }

  #lat-wrap { min-height: 112px; }
  .status-block .chart-title { display: none; }

  .chart-view-control label { display: none; }
  #chart-view-select { min-width: 164px; max-width: 52vw; }
  .dependency-panel { margin:0 16px 12px; }
  .dependency-panel-head { align-items:stretch;flex-direction:column;gap:8px; }
  #dependency-view-select { width:100%; }

  #tip {
    font-size: 11px;
    padding: 8px 12px;
    line-height: 1.8;
  }
}

@media (max-width: 380px) {
  .stat-val { font-size: 13px; }
  .stat-label { font-size: 8px; }
  .co-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .ep-list-nav, .ep-list-wrap { padding-left: 16px; padding-right: 16px; }
}

/* ── company / endpoint list views ──────────────── */
#view-companies {
  flex: 1; overflow-y: auto; padding: 24px 32px;
}
.overview-section + .overview-section { margin-top: 34px; }
.overview-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 14px;
}
.overview-section-title {
  color: #00f5b4; font-size: 11px; font-weight: bold;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.overview-section-note {
  color: var(--text-muted); font-size: 10px; line-height: 1.4;
}
.co-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.co-card {
  display: block;
  background: #0d1628;
  border: 1px solid rgba(0,245,180,0.12);
  border-radius: 8px; padding: 20px 18px;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.1s, box-shadow 0.15s;
  content-visibility: auto;
  contain-intrinsic-size: auto 190px;
}
.co-card:hover, .co-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}
.co-card:focus-visible { outline: 2px solid var(--im-color-focus); outline-offset: 3px; }
.co-name {
  font-size: 13px; font-weight: bold;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #e8f4ff; margin-bottom: 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.co-stat { font-size: 12px; color: var(--text-secondary); margin-bottom: 5px; }
.co-stat b { color: #e8f4ff; }
.co-dots { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.co-dot {
  display: flex; align-items: center; gap: 4px;
  font-size: 10px; letter-spacing: 0.06em;
  color: var(--text-muted);
}
.co-dot-pip { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.co-dot-state { font-size: 9px; letter-spacing: 0.02em; }

@media (max-width: 640px) {
  #view-companies { padding: 18px 16px; }
  .overview-section-head { align-items:flex-start; flex-direction:column; gap:5px; }
}

#view-endpoints {
  flex: 1; overflow-y: auto;
  display: flex; flex-direction: column;
}
.ep-list-nav {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 32px; border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.back-btn {
  background: none; border: 1px solid rgba(255,255,255,0.18);
  border-radius: 4px; padding: 5px 14px;
  font-family: var(--font-mono, ui-monospace, monospace); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.6); cursor: pointer; transition: all 0.15s;
}
.back-btn:hover { border-color: rgba(0,245,180,0.5); color: #00f5b4; }
.list-title {
  font-size: 12px; font-weight: bold;
  letter-spacing: 0.2em; text-transform: uppercase; color: #00f5b4;
}
.company-application-panel {
  margin: 0 32px 16px; padding: 14px;
  border: 1px solid rgba(0,245,180,0.17); border-radius: 8px;
  background: linear-gradient(135deg, rgba(0,245,180,0.045), rgba(13,22,40,0.78) 44%);
  flex-shrink: 0;
}
.company-application-panel[hidden] { display:none; }
.company-application-head { margin-bottom: 11px; }
.company-application-title {
  color: var(--text-primary); font-size: 11px; font-weight: bold;
  letter-spacing: .15em; text-transform: uppercase;
}
.company-application-note { margin-top:4px;color:var(--text-muted);font-size:11px;line-height:1.45; }
.company-application-grid { display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:8px; }
.company-application-card {
  min-width:0;padding:12px 13px;border:1px solid rgba(255,255,255,.09);
  border-radius:7px;background:rgba(8,14,28,.5);
}
.company-application-card.unassigned { border-style:dashed; }
.company-application-name { color:#e8f4ff;font-size:14px;font-weight:bold;overflow-wrap:anywhere; }
.company-application-origin { margin-top:4px;color:#64b4ff;font-size:12px;overflow-wrap:anywhere; }
.company-application-meta { margin-top:8px;color:var(--text-muted);font-size:12px;line-height:1.5; }
.company-application-apis { margin-top:6px;color:var(--text-secondary);font-size:12px;line-height:1.45;overflow-wrap:anywhere; }
.company-feature-list { display:grid;gap:7px;margin-top:11px; }
.company-feature-row {
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;
  padding:9px 10px;border:1px solid rgba(100,180,255,.22);border-radius:6px;
  background:rgba(100,180,255,.045);
}
.company-feature-name { color:#e8f4ff;font-size:12px;font-weight:bold; }
.company-feature-state { color:#00f5b4;font-size:11px;text-align:right; }
.company-feature-state.regional { color:var(--im-color-info); }
.company-feature-state.failing { color:var(--im-color-danger); }
.company-feature-state.degraded { color:var(--im-color-warning); }
.company-feature-state.unknown { color:var(--text-muted); }
.feature-view { display:none;min-height:calc(100vh - 106px);padding:0 28px 42px;overflow:auto; }
.feature-shell { width:min(1180px,100%);margin:0 auto; }
.feature-nav { display:flex;align-items:center;gap:10px;padding:17px 0; }
.feature-hero,.feature-panel { border:1px solid var(--line);border-radius:9px;background:var(--panel); }
.feature-hero { display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,.34fr);overflow:hidden; }
.feature-hero-copy { padding:28px; }
.feature-eyebrow { color:#00f5b4;font-size:10px;font-weight:bold;letter-spacing:.13em;text-transform:uppercase; }
.feature-title { margin:7px 0 5px;font-size:clamp(26px,4vw,46px);line-height:1.05; }
.feature-description { max-width:720px;color:var(--text-secondary);font-size:14px;line-height:1.55; }
.feature-summary { display:flex;flex-direction:column;justify-content:center;padding:24px;border-left:1px solid var(--line);background:rgba(0,245,180,.035); }
.feature-summary strong { color:#00f5b4;font-size:20px; }
.feature-summary.regional strong { color:var(--im-color-info); }
.feature-summary.failing strong { color:var(--im-color-danger); }
.feature-summary.degraded strong { color:var(--im-color-warning); }
.feature-summary span { margin-top:6px;color:var(--text-muted);font-size:12px; }
.feature-panel { margin-top:14px;padding:20px; }
.feature-panel-head { display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:14px; }
.feature-panel h3 { margin:0;font-size:16px; }
.feature-panel-note { color:var(--text-muted);font-size:11px; }
.feature-region-grid { display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:8px; }
.feature-region { padding:13px;border:1px solid var(--line);border-radius:7px;background:rgba(255,255,255,.02); }
.feature-region strong { display:block;font-size:12px;text-transform:uppercase; }
.feature-region span { display:block;margin-top:4px;color:var(--text-muted);font-size:11px; }
.feature-region.passing { border-color:rgba(0,245,180,.28);background:rgba(0,245,180,.05); }
.feature-region.failing { border-color:rgba(255,85,85,.35);background:rgba(255,85,85,.05); }
.feature-history { width:100%;border-collapse:collapse;font-size:12px; }
.feature-history th,.feature-history td { padding:10px 8px;border-top:1px solid var(--line);text-align:left; }
.feature-history th { color:var(--text-muted);font-size:10px;text-transform:uppercase;letter-spacing:.08em; }
.feature-history-main-row td { vertical-align:top; }
.feature-history-main-row td:last-child > span { display:block; }
.feature-failure-summary { display:block;margin-top:5px;color:var(--text-secondary);font-size:10px;line-height:1.4; }
.feature-receipt-toggle,.feature-receipt-actions button,.feature-receipt-actions a { display:inline-flex;align-items:center;justify-content:center;margin-top:7px;padding:5px 8px;border:1px solid rgba(100,180,255,.34);border-radius:5px;background:rgba(100,180,255,.08);color:var(--im-color-info);font:700 10px/1.2 var(--font-sans);text-decoration:none;cursor:pointer; }
.feature-receipt-toggle:hover,.feature-receipt-toggle:focus-visible,.feature-receipt-actions button:hover,.feature-receipt-actions button:focus-visible,.feature-receipt-actions a:hover,.feature-receipt-actions a:focus-visible { border-color:var(--im-color-info);background:rgba(100,180,255,.15);outline:none; }
.feature-receipt-unavailable { display:block;margin-top:6px;color:var(--text-muted);font-size:9px;line-height:1.35; }
.feature-receipt-row[hidden] { display:none; }
.feature-receipt-row > td { padding:0 8px 14px;border-top:0; }
.feature-receipt-panel { padding:16px;border:1px solid rgba(100,180,255,.25);border-radius:8px;background:var(--im-color-surface-raised);box-shadow:inset 3px 0 0 rgba(100,180,255,.75); }
.feature-receipt-head { display:flex;align-items:flex-start;justify-content:space-between;gap:16px; }
.feature-receipt-kicker { display:block;color:var(--im-color-info);font-size:9px;font-weight:800;letter-spacing:.12em;text-transform:uppercase; }
.feature-receipt-head h4 { margin:4px 0 0;color:var(--text-primary);font-size:15px;line-height:1.35; }
.feature-receipt-head p { margin:5px 0 0;color:var(--text-muted);font:11px/1.4 var(--font-mono,ui-monospace,monospace); }
.feature-receipt-verified { flex:0 0 auto;padding:5px 8px;border:1px solid rgba(0,245,180,.3);border-radius:999px;background:rgba(0,245,180,.07);color:var(--im-color-success);font-size:9px;font-weight:800;letter-spacing:.08em;text-transform:uppercase; }
.feature-receipt-summary-grid { display:grid;grid-template-columns:minmax(180px,.45fr) minmax(260px,1fr);gap:8px;margin-top:13px; }
.feature-receipt-summary-grid > div { min-width:0;padding:10px;border:1px solid var(--line);border-radius:6px;background:rgba(255,255,255,.018); }
.feature-receipt-summary-grid span,.feature-receipt-summary-grid strong { display:block; }
.feature-receipt-summary-grid span { color:var(--text-muted);font-size:9px;font-weight:bold;letter-spacing:.09em;text-transform:uppercase; }
.feature-receipt-summary-grid strong { margin-top:4px;color:var(--text-primary);font-size:11px;line-height:1.45; }
.feature-receipt-section { margin-top:14px; }
.feature-receipt-section h5 { margin:0 0 8px;color:var(--text-muted);font-size:9px;letter-spacing:.11em;text-transform:uppercase; }
.feature-receipt-milestones { display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:6px;margin:0;padding:0;list-style:none; }
.feature-receipt-milestones li { display:grid;grid-template-columns:22px minmax(0,1fr) auto;align-items:start;gap:7px;min-height:47px;padding:8px;border:1px solid var(--line);border-radius:6px;background:rgba(255,255,255,.018); }
.feature-receipt-milestone-symbol { display:flex;width:20px;height:20px;align-items:center;justify-content:center;border-radius:50%;font-size:11px;font-weight:900; }
.feature-receipt-milestones li.observed .feature-receipt-milestone-symbol { background:rgba(0,245,180,.11);color:var(--im-color-success); }
.feature-receipt-milestones li.missing .feature-receipt-milestone-symbol { background:rgba(255,85,85,.11);color:var(--im-color-danger); }
.feature-receipt-milestones li.unknown .feature-receipt-milestone-symbol { background:rgba(143,161,190,.11);color:var(--im-color-unknown); }
.feature-receipt-milestones strong,.feature-receipt-milestones small { display:block; }
.feature-receipt-milestones strong { color:var(--text-primary);font-size:10px;line-height:1.35; }
.feature-receipt-milestones small { margin-top:2px;color:var(--text-muted);font-size:9px;line-height:1.35; }
.feature-receipt-milestone-time { color:var(--text-secondary);font:9px/1.35 var(--font-mono,ui-monospace,monospace);font-variant-numeric:tabular-nums;white-space:nowrap; }
.feature-receipt-identity { display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:6px;margin:0; }
.feature-receipt-identity > div { min-width:0;padding:8px;border-left:2px solid var(--line); }
.feature-receipt-identity dt { color:var(--text-muted);font-size:8px;font-weight:bold;letter-spacing:.08em;text-transform:uppercase; }
.feature-receipt-identity dd { margin:3px 0 0;color:var(--text-primary);font:10px/1.4 var(--font-mono,ui-monospace,monospace);overflow-wrap:anywhere; }
.feature-receipt-integrity { margin-top:13px;padding-top:10px;border-top:1px solid var(--line); }
.feature-receipt-integrity summary { color:var(--text-secondary);font-size:10px;font-weight:bold;cursor:pointer; }
.feature-receipt-integrity dl { margin:9px 0 0; }
.feature-receipt-integrity dl > div { display:grid;grid-template-columns:170px minmax(0,1fr);gap:8px;padding:4px 0; }
.feature-receipt-integrity dt { color:var(--text-muted);font-size:9px; }
.feature-receipt-integrity dd { min-width:0;margin:0;color:var(--text-secondary);font-size:9px;overflow-wrap:anywhere; }
.feature-receipt-integrity code { font-size:9px;word-break:break-all; }
.feature-receipt-integrity p { margin:8px 0 0;color:var(--text-muted);font-size:9px;line-height:1.45; }
.feature-receipt-actions { display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:13px; }
.feature-receipt-actions button,.feature-receipt-actions a { margin-top:0; }
.feature-receipt-action-status { color:var(--text-muted);font-size:9px; }
.feature-receipt-loading,.feature-receipt-error { margin:0;color:var(--text-secondary);font-size:11px;line-height:1.5; }
.feature-receipt-error { color:var(--im-color-danger); }
.feature-range { display:flex;align-items:center;gap:6px;flex-wrap:wrap; }
.feature-range .rb { min-width:52px;padding-inline:11px; }
.feature-metrics { display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-bottom:14px; }
.feature-metric { min-width:0;padding:12px;border:1px solid var(--line);border-radius:7px;background:var(--im-color-surface-raised); }
.feature-metric-label { display:block;color:var(--text-muted);font-size:9px;font-weight:bold;letter-spacing:.1em;text-transform:uppercase; }
.feature-metric-value { display:block;margin-top:5px;color:var(--text-primary);font:700 17px/1.2 var(--font-mono,ui-monospace,monospace);font-variant-numeric:tabular-nums; }
.feature-chart-grid { display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,.7fr);gap:10px; }
.feature-chart-wrap { position:relative;min-height:260px;padding:34px 10px 8px;border:1px solid var(--line);border-radius:8px;background:var(--im-graph-plot); }
.feature-chart-wrap.status { min-height:260px; }
.feature-chart-title { position:absolute;left:12px;top:10px;color:var(--text-muted);font-size:9px;font-weight:bold;letter-spacing:.12em;text-transform:uppercase; }
.feature-chart-wrap canvas { width:100%;height:218px; }
.feature-chart-summary { margin-top:9px;color:var(--text-muted);font-size:11px;line-height:1.5; }
.feature-state-label { display:inline-flex;align-items:center;gap:6px;font-weight:bold;text-transform:capitalize; }
.feature-state-label::before { width:7px;height:7px;border-radius:50%;background:currentColor;content:""; }
.feature-state-label.passing { color:var(--im-color-success); }
.feature-state-label.regional { color:var(--im-color-info); }
.feature-state-label.failing { color:var(--im-color-danger); }
.feature-state-label.unknown { color:var(--im-color-unknown); }
.company-official-status {
  margin: 0 32px 16px; padding: 14px;
  border: 1px solid rgba(100,180,255,0.2); border-radius: 8px;
  background: linear-gradient(135deg, rgba(100,180,255,0.065), rgba(13,22,40,0.78) 42%);
  flex-shrink: 0;
}
.company-official-status[hidden] { display: none; }
.company-official-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  margin-bottom: 11px;
}
.company-official-title {
  color: var(--text-primary); font-size: 11px; font-weight: bold;
  letter-spacing: 0.15em; text-transform: uppercase;
}
.company-official-note {
  margin-top: 4px; color: var(--text-muted); font-size: 11px; line-height: 1.45;
}
.company-official-all {
  flex: none; color: var(--text-secondary); font-size: 10px; font-weight: bold;
  letter-spacing: 0.08em; text-decoration: none; text-transform: uppercase;
}
.company-official-all:hover { color: #64b4ff; }
.company-official-all:focus-visible {
  color: #64b4ff; outline: 2px solid #64b4ff; outline-offset: 3px; border-radius: 2px;
}
.company-official-list { display: grid; gap: 8px; }
.company-official-card {
  display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px 18px;
  padding: 12px 13px; border: 1px solid rgba(255,255,255,0.09); border-radius: 7px;
  background: rgba(8,14,28,0.5); color: inherit; text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.company-official-card:hover, .company-official-card:focus-visible {
  border-color: rgba(100,180,255,0.48); background: rgba(100,180,255,0.055);
}
.company-official-card:focus-visible { outline: 2px solid #64b4ff; outline-offset: 2px; }
.company-official-identity { min-width: 0; display: flex; align-items: center; gap: 8px; }
.company-official-dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--official-state-color, var(--text-muted));
  box-shadow: 0 0 10px color-mix(in srgb, var(--official-state-color, var(--text-muted)) 55%, transparent);
}
.company-official-name {
  min-width: 0; color: var(--text-primary); font-size: 12px; font-weight: bold;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.company-official-state {
  align-self: start; padding: 3px 8px; border: 1px solid currentColor; border-radius: 999px;
  color: var(--official-state-color, var(--text-muted)); background: rgba(255,255,255,0.025);
  font-size: 10px; font-weight: bold; letter-spacing: 0.07em; text-transform: uppercase;
}
.company-official-card.operational { --official-state-color: #00f5b4; }
.company-official-card.degraded,
.company-official-card.partial_outage { --official-state-color: #ffc832; }
.company-official-card.major_outage { --official-state-color: #ff5555; }
.company-official-card.maintenance { --official-state-color: #64b4ff; }
.company-official-card.stale,
.company-official-card.unknown { --official-state-color: var(--text-muted); }
.company-official-copy {
  grid-column: 1 / -1; color: var(--text-secondary); font-size: 11px; line-height: 1.5;
}
.company-official-impact {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px;
}
.company-official-chip {
  max-width: 100%; padding: 4px 7px; border: 1px solid rgba(255,255,255,0.09); border-radius: 4px;
  background: rgba(255,255,255,0.025); color: var(--text-secondary); font-size: 10px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.company-official-chip strong {
  margin-right: 5px; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase;
}
.company-official-meta {
  min-width: 0; color: var(--text-subtle); font-size: 10px; line-height: 1.45;
}
.company-official-action {
  align-self: end; color: #64b4ff; font-size: 10px; font-weight: bold;
  letter-spacing: 0.04em; white-space: nowrap;
}
.ep-list-wrap { flex: none; overflow: visible; padding: 0 32px 16px; }
.product-check-list { display:grid;gap:10px; }
.product-check-group {
  overflow:hidden;border:1px solid rgba(255,255,255,.1);border-radius:9px;
  background:rgba(13,22,40,.72);
}
.product-check-group[open] { border-color:rgba(100,180,255,.3); }
.product-check-summary {
  display:grid;grid-template-columns:minmax(0,1fr) auto 32px;align-items:center;gap:14px;
  padding:14px 16px;cursor:pointer;list-style:none;
}
.product-check-summary::marker { content:""; }
.product-check-summary::-webkit-details-marker { display:none; }
.product-check-summary:focus-visible { outline:2px solid #64b4ff;outline-offset:-3px; }
.product-check-summary::after {
  content:"+";grid-column:3;grid-row:1 / span 2;display:grid;place-items:center;
  width:30px;height:30px;border:1px solid rgba(100,180,255,.32);border-radius:7px;
  background:rgba(100,180,255,.07);color:#64b4ff;font-size:18px;font-weight:bold;line-height:1;
}
.product-check-group[open] > .product-check-summary::after { content:"−"; }
.product-check-title { min-width:0;color:#e8f4ff;font-size:14px;font-weight:bold; }
.product-check-platform {
  display:inline-flex;margin-left:8px;padding:3px 7px;border:1px solid rgba(100,180,255,.32);
  border-radius:999px;color:#64b4ff;font-size:10px;letter-spacing:.05em;vertical-align:middle;
}
.product-check-origin {
  grid-column:1;min-width:0;color:var(--text-muted);font-size:11px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.product-check-count {
  grid-column:2;grid-row:1 / span 2;display:inline-flex;align-items:center;
  justify-content:center;margin:0;padding:4px 8px;
  border:1px solid rgba(255,255,255,.14);border-radius:999px;
  background:rgba(255,255,255,.035);color:var(--text-secondary);
  font-size:10px;font-weight:bold;letter-spacing:.05em;white-space:nowrap;
}
.product-check-table-wrap { overflow-x:auto;border-top:1px solid rgba(255,255,255,.07); }
.ep-list-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.ep-list-table th {
  text-align: left; padding: 10px 12px;
  font-size: 10px; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--text-muted); border-bottom: 1px solid rgba(255,255,255,0.07);
  position: sticky; top: 0; background: #080e1c; z-index: 1;
}
.ep-list-table td { padding: 11px 12px; border-bottom: 1px solid rgba(255,255,255,0.05); vertical-align: middle; }
.ep-list-table tbody tr { cursor: default; }
.ep-list-table tbody tr:hover td { background: rgba(255,255,255,0.03); }
.ep-list-table tbody tr:focus-visible { outline:2px solid #64b4ff;outline-offset:-2px; }
.check-kind-badge,.severity-badge {
  display:inline-flex;align-items:center;padding:3px 7px;border:1px solid currentColor;
  border-radius:999px;font-size:9px;font-weight:bold;letter-spacing:.07em;text-transform:uppercase;
}
.check-open-button {
  display:block;width:100%;padding:0;border:0;background:transparent;color:inherit;
  font:inherit;text-align:left;cursor:pointer;
}
.check-open-button:focus-visible { outline:2px solid #64b4ff;outline-offset:3px;border-radius:3px; }
.check-kind-badge { margin-left:6px;color:var(--text-secondary);border-color:rgba(255,255,255,.17); }
.severity-badge.high { color:#ff7272;background:rgba(255,85,85,.07); }
.severity-badge.medium { color:#ffd232;background:rgba(255,210,50,.06); }
.severity-badge.low { color:#64b4ff;background:rgba(100,180,255,.06); }
.check-regional-state { color:#00f5b4;font-size:11px;font-weight:bold; }
.check-regional-state.regional { color:var(--im-color-info); }
.check-regional-state.failing { color:var(--im-color-danger); }
.check-regional-state.degraded { color:var(--im-color-warning); }
.check-regional-state.unknown { color:var(--text-muted);font-weight:normal; }
.infra-dependencies {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px;
  max-width: 220px;
}
.infra-dependency {
  display: inline-block; max-width: 220px; padding: 3px 8px;
  border: 1px solid rgba(0,245,180,0.22); border-radius: 999px;
  background: rgba(0,245,180,0.06); color: rgba(0,245,180,0.8);
  font-size: 10px; letter-spacing: 0.03em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  vertical-align: middle;
}
.infra-dependency.empty {
  border-color: rgba(255,255,255,0.08); background: transparent;
  color: var(--text-subtle);
}
.infra-dependency-separator { color:var(--text-subtle);font-size:9px; }
.dependency-status-link { color:inherit;text-decoration:none;cursor:pointer; }
.dependency-status-link:hover { color:#00f5b4;text-decoration:underline; }
.dependency-status-link:focus-visible { outline:2px solid #64b4ff;outline-offset:2px; }
.infra-dependency.dependency-status-link:hover {
  border-color:rgba(0,245,180,.58);background:rgba(0,245,180,.12);
}
.certificate-status {
  display: inline-flex; align-items: center; max-width: 220px; padding: 3px 8px;
  border: 1px solid currentColor; border-radius: 999px;
  background: rgba(255,255,255,0.025); font-size: 10px; font-weight: bold;
  letter-spacing: 0.025em; line-height: 1.35; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; vertical-align: middle;
}
.certificate-status.cert-valid { color: #00f5b4; background: rgba(0,245,180,0.06); }
.certificate-status.cert-warning { color: #ffc832; background: rgba(255,200,50,0.07); }
.certificate-status.cert-critical { color: #ff6b6b; background: rgba(255,85,85,0.07); }
.certificate-status.cert-neutral { color: var(--text-secondary); border-color: rgba(255,255,255,0.16); }
.certificate-status.cert-checking { color: #64b4ff; background: rgba(100,180,255,0.07); }
.recent-check-overview { display:grid;gap:5px;min-width:190px; }
.recent-check-strip {
  display:grid;grid-template-columns:repeat(5,minmax(32px,1fr));gap:4px;
  margin:0;padding:0;list-style:none;
}
.recent-check-item {
  display:grid;justify-items:center;gap:1px;min-width:0;padding:4px 3px;
  border:1px solid currentColor;border-radius:5px;background:rgba(255,255,255,.025);
  color:var(--text-muted);font-variant-numeric:tabular-nums;
}
.recent-check-item.passing { color:#00b987;background:rgba(0,245,180,.06); }
.recent-check-item.failing { color:#ff5555;background:rgba(255,85,85,.07); }
.recent-check-item.client { color:#c89412;background:rgba(255,200,50,.08); }
.recent-check-item.unknown { color:var(--text-muted);border-style:dashed; }
.recent-check-region { font-size:8px;font-weight:bold;letter-spacing:.08em; }
.recent-check-result { overflow:hidden;max-width:100%;font-size:9px;font-weight:bold;white-space:nowrap;text-overflow:ellipsis; }
.recent-check-coverage { color:var(--text-muted);font-size:9px;line-height:1.3; }
.endpoint-tls-card {
  display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px 18px;align-items:center;
  flex-shrink:0;padding:10px 32px;border-bottom:1px solid rgba(255,255,255,.07);background:#0b1322;
}
.endpoint-tls-heading { display:flex;align-items:center;gap:9px;min-width:0; }
.endpoint-tls-title { color:var(--text-muted);font-size:10px;font-weight:bold;letter-spacing:.13em;text-transform:uppercase; }
.endpoint-tls-facts { display:flex;align-items:center;gap:8px 18px;flex-wrap:wrap;margin:0; }
.endpoint-tls-fact { display:grid;grid-template-columns:auto auto;gap:5px;min-width:0;font-size:10px; }
.endpoint-tls-fact dt { color:var(--text-muted);letter-spacing:.08em;text-transform:uppercase; }
.endpoint-tls-fact dd { min-width:0;margin:0;color:var(--text-secondary);overflow-wrap:anywhere; }
.endpoint-tls-note { grid-column:1/-1;margin:0;color:var(--text-muted);font-size:10px;line-height:1.4; }
.dependency-panel { margin:0 32px 16px;border:1px solid rgba(255,255,255,.09);border-radius:8px;background:rgba(13,22,40,.72);overflow:hidden;flex-shrink:0; }
.dependency-panel-head { display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 14px;border-bottom:1px solid rgba(255,255,255,.07); }
.dependency-panel-title { font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:rgba(255,255,255,.55); }
#dependency-view-select { appearance:none;min-width:170px;padding:5px 9px;border:1px solid rgba(255,255,255,.15);border-radius:3px;background:#0d1628;color:rgba(255,255,255,.8);font:14px var(--font-mono, ui-monospace, monospace);cursor:pointer; }
.dependency-content { min-height:260px;padding:12px;overflow:auto; }
.dependency-map { display:block;width:100%;min-width:1180px; }
.dependency-map.compact { min-width:930px; }
.dep-edge { fill:none;stroke:rgba(255,255,255,.14);stroke-width:1.4; }
.dep-edge.root { stroke:rgba(0,245,180,.5); }
.dep-node rect { fill:#111d32;stroke:rgba(255,255,255,.18);stroke-width:1.1;rx:6; }
.dep-node.root rect { fill:rgba(0,245,180,.08);stroke:rgba(0,245,180,.7); }
.dep-node.application rect { fill:rgba(100,180,255,.08);stroke:rgba(100,180,255,.38); }
.dep-node.application text.role { fill:#64b4ff;font-size:9px;letter-spacing:.04em; }
.dep-node.api-origin rect { fill:rgba(120,155,200,.06);stroke:rgba(120,155,200,.28); }
.dep-node.provider rect { fill:#141c2d; }
.dep-node.provider.unspecified rect { stroke-dasharray:4 3;stroke:rgba(255,255,255,.2); }
.dep-node text { fill:rgba(255,255,255,.88);font:11px var(--font-mono, ui-monospace, monospace); }
.dep-node text.sub { fill:var(--text-muted);font-size:11px; }
.dependency-map .dependency-status-link:hover .dep-node.provider rect,
.dependency-map .dependency-status-link:focus-visible .dep-node.provider rect { stroke:#00f5b4 !important; }
.dependency-map .dependency-status-link:hover .dep-node.provider text,
.dependency-map .dependency-status-link:focus-visible .dep-node.provider text { fill:#00f5b4;text-decoration:underline; }
.dependency-matrix { width:100%;min-width:760px;border-collapse:collapse;font-size:12px; }
.dependency-matrix th { padding:8px;border-bottom:1px solid rgba(255,255,255,.1);color:var(--text-muted);font-size:11px;text-align:center; }
.dependency-matrix th:first-child,.dependency-matrix td:first-child { text-align:left; }
.dependency-matrix td { padding:8px;border-bottom:1px solid rgba(255,255,255,.05);text-align:center; }
.dep-yes { color:#00f5b4; }
.dep-tree { display:grid;grid-template-columns:170px 1fr;gap:10px;min-width:620px; }
.dep-tree-root { display:flex;align-items:center;justify-content:center;border:1px solid rgba(0,245,180,.5);border-radius:7px;color:#00f5b4;background:rgba(0,245,180,.06);font-weight:bold; }
.dep-branches { display:grid;gap:7px; }
.dep-branch { display:grid;grid-template-columns:190px 1fr;gap:7px; }
.dep-provider { padding:9px 11px;border:1px solid rgba(255,255,255,.14);border-radius:5px;background:#111d32; }
.dep-services { display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:6px;border-left:2px solid rgba(255,255,255,.13); }
.dep-service { padding:4px 7px;border:1px solid rgba(255,255,255,.1);border-radius:4px;color:var(--text-secondary);font-size:12px; }
.dep-mobile-stack { display:grid;gap:0; }
.dep-stack-card { position:relative;border:1px solid rgba(255,255,255,.13);border-radius:7px;background:#101a2d; }
.dep-stack-root { display:grid;grid-template-columns:12px minmax(0,1fr) auto;align-items:center;gap:9px;padding:12px;border-color:rgba(0,245,180,.5);background:rgba(0,245,180,.11);box-shadow:inset 0 0 22px rgba(0,245,180,.025); }
.dep-stack-root-name { color:#00f5b4;font-size:11px;font-weight:bold;letter-spacing:.1em; }
.dep-stack-root-sub { display:block;margin-top:2px;color:var(--text-muted);font-size:12px;font-weight:normal;letter-spacing:0; }
.dep-stack-indicator { display:block;width:8px;height:8px;border-radius:50%;background:#00f5b4;box-shadow:0 0 8px rgba(0,245,180,.55); }
.dep-stack-count { display:inline-flex;align-items:center;justify-content:center;min-width:23px;height:23px;padding:0 6px;border:1px solid rgba(0,245,180,.42);border-radius:99px;background:#0a1825;color:#00f5b4;font-size:11px;font-weight:bold; }
.dep-stack-trunk { height:28px;margin-left:17px;border-left:1px solid rgba(0,245,180,.38);position:relative; }
.dep-stack-relation { position:absolute;left:9px;top:7px;color:var(--text-muted);font-size:11px;letter-spacing:.1em;text-transform:uppercase;white-space:nowrap; }
.dep-stack-provider { position:relative;display:grid;grid-template-columns:8px minmax(0,1fr);align-items:center;gap:7px;padding:7px 9px;border-color:color-mix(in srgb,var(--provider-color) 24%,transparent);background:color-mix(in srgb,var(--provider-color) 7%,#0b1424);color:var(--provider-color);font-size:12px;font-weight:bold; }
.dep-stack-provider::after { content:"";position:absolute;right:100%;top:50%;width:12px;border-top:1px solid rgba(120,155,200,.38); }
.dep-stack-provider::before { content:"";width:6px;height:6px;transform:rotate(45deg);background:var(--provider-color);opacity:.8; }
.dep-mobile-application { margin-left:13px;padding:7px;border-left:1px solid rgba(0,245,180,.35); }
.dep-mobile-application-head { padding:9px 10px;border:1px solid rgba(100,180,255,.24);border-radius:7px;background:rgba(100,180,255,.06); }
.dep-mobile-application-name { color:#e8f4ff;font-size:14px;font-weight:bold; }
.dep-mobile-application-origin { display:block;margin-top:3px;color:#64b4ff;font-size:12px;overflow-wrap:anywhere; }
.dep-mobile-application-role { display:block;margin-top:4px;color:var(--text-muted);font-size:10px;letter-spacing:.08em;text-transform:uppercase; }
.dep-mobile-api { margin:7px 0 0 12px;padding-left:10px;border-left:1px solid rgba(120,155,200,.3); }
.dep-mobile-direct-endpoints { margin:7px 0 0 12px;padding-left:10px;border-left:1px solid rgba(100,180,255,.28); }
.dep-mobile-api-origin { padding:7px 9px;border:1px solid rgba(255,255,255,.12);border-radius:6px;color:var(--text-secondary);font-size:12px;overflow-wrap:anywhere; }
.dep-mobile-endpoint { margin:5px 0 0 12px;padding:7px 9px;border-left:2px solid rgba(0,245,180,.35);background:rgba(255,255,255,.025);color:rgba(255,255,255,.84);font-size:12px; }
.dep-mobile-provider-list { display:flex;flex-wrap:wrap;gap:4px;margin:5px 0 0 12px; }
.dep-impact-path { display:flex;align-items:center;gap:5px;flex-wrap:wrap;color:var(--text-secondary);font-size:12px; }
.dep-impact-path .relation { color:var(--text-subtle); }
.dep-mobile-matrix { display:grid;gap:8px; }
.dep-mobile-matrix-card { padding:11px;border:1px solid rgba(255,255,255,.11);border-radius:7px;background:#101a2d; }
.dep-mobile-matrix-host { display:block;color:#00f5b4;font-size:12px;margin:3px 0 9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.dep-mobile-pills { display:flex;gap:5px;flex-wrap:wrap; }
.dep-mobile-pill { padding:3px 6px;border:1px solid;border-radius:99px;font-size:11px; }
.dep-stack-provider.dependency-status-link:hover,
.dep-mobile-pill.dependency-status-link:hover,
.dep-provider.dependency-status-link:hover { filter:brightness(1.2); }

@media (max-width:640px) {
  body.endpoint-page {
    display:block;
    height:auto;
    min-height:100vh;
    min-height:100dvh;
    overflow-x:hidden;
    overflow-y:auto;
  }
  body.endpoint-page #view-endpoints {
    min-height:0;
    overflow:visible;
  }
  .ep-list-nav { padding:10px 16px; }
  .company-application-panel { margin:0 12px 12px;padding:12px; }
  .company-application-title { font-size:12px; }
  .company-application-note { font-size:12px; }
  .company-application-grid { grid-template-columns:1fr; }
  .company-application-name { font-size:14px; }
  .company-application-origin { font-size:12px; }
  .feature-view { padding:0 12px 26px; }
  .feature-hero { grid-template-columns:1fr; }
  .feature-summary { border-top:1px solid var(--line);border-left:0; }
  .feature-history thead { display:none; }
  .feature-history,.feature-history tbody,.feature-history tr,.feature-history td { display:block; }
  .feature-history tr { padding:8px 0;border-top:1px solid var(--line); }
  .feature-history td { display:flex;justify-content:space-between;gap:12px;border:0;padding:4px; }
  .feature-history td:before { content:attr(data-label);color:var(--text-muted);text-transform:uppercase;font-size:9px; }
  .feature-history-main-row td:last-child { align-items:flex-start; }
  .feature-history-main-row td:last-child > span { text-align:right; }
  .feature-receipt-toggle { margin-top:0; }
  .feature-receipt-row[hidden] { display:none; }
  .feature-receipt-row { border-top:0 !important;padding:0 0 10px !important; }
  .feature-receipt-row > td { display:block;padding:0; }
  .feature-receipt-row > td:before { display:none;content:none; }
  .feature-receipt-panel { padding:13px; }
  .feature-receipt-head,.feature-receipt-summary-grid { grid-template-columns:1fr; }
  .feature-receipt-head { flex-direction:column;gap:8px; }
  .feature-receipt-summary-grid { display:grid; }
  .feature-receipt-milestones { grid-template-columns:1fr; }
  .feature-receipt-integrity dl > div { grid-template-columns:1fr;gap:2px; }
  .feature-panel-head { flex-direction:column; }
  .feature-range { width:100%;display:grid;grid-template-columns:repeat(5,minmax(0,1fr)); }
  .feature-range .rb { min-width:0;padding-inline:4px; }
  .feature-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .feature-chart-grid { grid-template-columns:1fr; }
  .feature-chart-wrap,.feature-chart-wrap.status { min-height:220px; }
  .company-official-status { margin:0 12px 12px;padding:12px; }
  .company-official-head { gap:8px; }
  .company-official-title { font-size:12px; }
  .company-official-note { font-size:12px; }
  .company-official-all { min-height:36px;display:inline-flex;align-items:center;font-size:12px; }
  .company-official-card { grid-template-columns:minmax(0,1fr) auto;gap:8px 10px;padding:11px; }
  .company-official-name { font-size:13px; }
  .company-official-state { font-size:12px; }
  .company-official-copy,.company-official-chip,.company-official-meta,.company-official-action { font-size:12px; }
  .company-official-meta,.company-official-action { grid-column:1/-1; }
  .company-official-action { min-height:32px;display:flex;align-items:flex-end; }
  .company-official-chip { width:100%;white-space:normal;line-height:1.4; }
  .dependency-panel { margin:0 12px 12px;flex-shrink:0; }
  .dependency-panel-head { align-items:stretch;flex-direction:column;gap:8px;padding:10px 11px; }
  #dependency-view-select { width:100%;min-width:0;min-height:36px; }
  .dependency-content { min-height:0;padding:10px;overflow:visible; }
  .dependency-map,.dependency-matrix { min-width:0; }
  .dep-tree { min-width:0;grid-template-columns:1fr; }
  .dep-tree-root { min-height:54px; }
  .dep-branch { grid-template-columns:1fr; }
  .dep-services { border-left:0;padding:2px 4px 8px; }
  .dep-service { padding:6px 8px; }
  .ep-list-wrap { flex:none;overflow:visible;padding:0 12px 24px; }
  .product-check-summary { grid-template-columns:minmax(0,1fr) auto;padding:12px;gap:7px; }
  .product-check-count { grid-column:1;grid-row:3;justify-self:start;margin:0;font-size:10px; }
  .product-check-summary::after { grid-column:2;grid-row:1 / span 3; }
  .product-check-origin { white-space:normal;overflow-wrap:anywhere;font-size:12px; }
  .ep-list-table,.ep-list-table tbody { display:block;width:100%; }
  .ep-list-table thead { display:none; }
  .ep-list-table tr {
    display:grid;grid-template-columns:1fr 1fr;gap:0;margin:8px;padding:5px;
    border:1px solid rgba(255,255,255,.1);border-radius:8px;background:#0d1628;
    content-visibility:auto;contain-intrinsic-size:auto 250px;
  }
  .ep-list-table td { display:block;padding:7px 8px;border:0;min-width:0; }
  .ep-list-table td:first-child { grid-column:1/-1;padding-bottom:9px;border-bottom:1px solid rgba(255,255,255,.06); }
  .ep-list-table td::before { content:attr(data-label);display:block;margin-bottom:4px;color:var(--text-muted);font-size:9px;letter-spacing:.1em;text-transform:uppercase; }
  .ep-list-table td:first-child::before { display:none; }
  .ep-list-table td[data-label="Last 5 checks"] { grid-column:1/-1; }
  .ep-row-url,.ep-row-application { max-width:100%; }
  .infra-dependencies,.infra-dependency { max-width:100%;white-space:normal;line-height:1.35; }
  .certificate-status { max-width:100%;white-space:normal;font-size:11px; }
  .recent-check-overview { min-width:0; }
  .recent-check-strip { grid-template-columns:repeat(5,minmax(0,1fr)); }
  .endpoint-tls-card { grid-template-columns:1fr;gap:8px;padding:10px 16px; }
  .endpoint-tls-facts { display:grid;grid-template-columns:1fr 1fr;gap:8px 12px; }
  .endpoint-tls-fact { grid-template-columns:1fr;gap:2px; }
}
.ep-row-name { display:block;font-weight: bold; color: #e8f4ff; margin-bottom: 2px; }
.ep-row-url  { display:block;color: var(--text-muted); font-size: 10px; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep-row-application { display:block;margin-top:3px;color:#64b4ff;font-size:9px;max-width:320px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.probe-type-badge {
  display: inline-flex; align-items: center; margin-left: 7px; padding: 1px 5px;
  border: 1px solid rgba(80,190,255,.32); border-radius: 999px;
  color: #7fcbff; font-size: 8px; font-weight: normal; letter-spacing: .09em;
  line-height: 1.5; vertical-align: 2px; text-transform: uppercase;
}
.probe-type-badge.webrtc { border-color: rgba(180,100,255,.4); color: #c992ff; }
.probe-type-badge.websocket { border-color: rgba(0,245,180,.36); color: #4df7c8; }
.up-good { color: #00f5b4; font-weight: bold; }
.up-warn { color: #ffc832; font-weight: bold; }
.up-bad  { color: #ff5555; font-weight: bold; }
#view-chart {
  flex: 1; overflow: hidden;
  display: flex; flex-direction: column;
}
.chart-back-nav {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 32px 0; flex-shrink: 0;
}

/* ── error detail popup ──────────────────────────── */
#err-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
#err-overlay[hidden] { display: none; }
#err-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.65); backdrop-filter: blur(3px);
}
#err-box {
  position: relative; z-index: 1;
  background: #101a2c;
  border: 1px solid rgba(255,85,85,0.5);
  border-radius: 10px;
  width: min(1080px, 100%);
  height: min(760px, calc(100dvh - 40px));
  max-height: calc(100dvh - 40px);
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,85,85,0.1), 0 20px 60px rgba(0,0,0,0.8), 0 0 80px rgba(255,85,85,0.08);
  outline: none;
}
#err-dialog-head {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px 20px 15px;
  border-bottom: 1px solid rgba(255,255,255,0.09);
  background: #131e32;
  flex: none;
}
#err-heading-wrap { min-width: 0; flex: 1; }
#err-eyebrow {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase;
  color: #ff7070;
  margin-bottom: 5px;
}
#err-heading {
  margin: 0;
  color: #edf5ff;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 15px; line-height: 1.35;
}
#err-subheading {
  color: var(--text-secondary);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 10px; line-height: 1.45;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
#err-x {
  flex: none; width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.18); border-radius: 6px;
  background: rgba(255,255,255,0.05); color: #edf5ff;
  font-size: 22px; line-height: 1; cursor: pointer;
}
#err-x:hover,#err-x:focus-visible { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.4); }
#err-layout {
  min-height: 0; flex: 1;
  display: grid; grid-template-columns: minmax(250px, 0.34fr) minmax(0, 1fr);
}
#err-master {
  min-height: 0; padding: 14px 12px;
  border-right: 1px solid rgba(255,255,255,0.09);
  background: #0d1627;
  display: flex; flex-direction: column;
}
.err-pane-label {
  flex: none; margin: 0 4px 9px;
  color: var(--text-muted); font: 9px/1.4 var(--font-mono, ui-monospace, monospace);
  letter-spacing: 0.14em; text-transform: uppercase;
}
#err-list {
  min-height: 0; overflow-y: auto; flex: 1;
  display: flex; flex-direction: column; gap: 7px;
  padding: 1px 3px 4px;
}
.err-sample {
  width: 100%; min-height: 68px; padding: 10px 11px;
  display: block; text-align: left; cursor: pointer;
  background: #151f33; color: #dfeaff;
  border: 1px solid rgba(255,255,255,0.1);
  border-left: 3px solid;
  border-radius: 6px;
  font-family: var(--font-mono, ui-monospace, monospace);
}
.err-sample:hover { background: #1b2941; }
.err-sample[aria-selected="true"] {
  background: #22304a; border-color: rgba(255,255,255,0.32);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05);
}
.err-sample-top { display:flex;align-items:center;gap:7px;margin-bottom:5px; }
.err-sample-status { font-size:13px;font-weight:bold;letter-spacing:0.04em; }
.err-sample-kind { margin-left:auto;color:var(--text-muted);font-size:8px;letter-spacing:0.1em;text-transform:uppercase; }
.err-sample-time { display:block;color:var(--text-secondary);font-size:9px;line-height:1.45; }
.err-sample-meta { display:block;color:var(--text-muted);font-size:9px;line-height:1.4;margin-top:2px; }
#err-detail {
  min-width: 0; min-height: 0; overflow-y: auto;
  padding: 18px 20px 24px;
  background: #101a2c;
}
.err-loading,.err-empty {
  min-height: 180px; display:grid;place-items:center;text-align:center;
  color:var(--text-secondary);font:11px/1.7 var(--font-mono, ui-monospace, monospace);
  border:1px dashed rgba(255,255,255,0.14);border-radius:7px;padding:22px;
}
.err-spinner {
  width:22px;height:22px;border-radius:50%;margin:0 auto 12px;
  border:2px solid rgba(255,255,255,0.14);border-top-color:#ff7070;
  animation:err-spin .8s linear infinite;
}
@keyframes err-spin { to { transform:rotate(360deg); } }
.err-overview { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:14px; }
.err-fact { background:#172238;border:1px solid rgba(255,255,255,0.09);border-radius:6px;padding:9px 10px;min-width:0; }
.err-fact-label { color:var(--text-muted);font:8px/1.3 var(--font-mono, ui-monospace, monospace);letter-spacing:.12em;text-transform:uppercase;margin-bottom:5px; }
.err-fact-value { color:#edf5ff;font:11px/1.45 var(--font-mono, ui-monospace, monospace);overflow-wrap:anywhere; }
.err-section { border:1px solid rgba(255,255,255,0.1);border-radius:7px;background:#131f33;margin-top:10px;overflow:hidden; }
.err-section-head { display:flex;align-items:center;gap:8px;min-height:42px;padding:9px 12px;border-bottom:1px solid rgba(255,255,255,0.08); }
.err-section-title { color:#edf5ff;font:bold 10px/1.4 var(--font-mono, ui-monospace, monospace);letter-spacing:.11em;text-transform:uppercase; }
.err-badges { display:flex;flex-wrap:wrap;gap:5px;margin-left:auto; }
.err-badge { border:1px solid rgba(255,255,255,.16);border-radius:999px;padding:2px 7px;color:var(--text-secondary);font:8px/1.4 var(--font-mono, ui-monospace, monospace);text-transform:uppercase;letter-spacing:.06em; }
.err-badge.redacted { color:#ffd15c;border-color:rgba(255,209,92,.35);background:rgba(255,209,92,.07); }
.err-badge.truncated { color:#ff9a65;border-color:rgba(255,154,101,.35);background:rgba(255,154,101,.07); }
.err-section-body { padding:11px 12px; }
.err-request-line { display:flex;gap:8px;align-items:flex-start;font:11px/1.6 var(--font-mono, ui-monospace, monospace);margin-bottom:10px; }
.err-method { flex:none;color:#00f5b4;font-weight:bold; }
.err-url { color:#dce8fb;overflow-wrap:anywhere; }
.err-subtitle { margin:12px 0 6px;color:var(--text-muted);font:8px/1.4 var(--font-mono, ui-monospace, monospace);letter-spacing:.12em;text-transform:uppercase; }
.err-headers { border:1px solid rgba(255,255,255,.07);border-radius:5px;overflow:hidden; }
.err-header-row { display:grid;grid-template-columns:minmax(110px,.34fr) minmax(0,1fr);gap:10px;padding:6px 8px;font:9px/1.5 var(--font-mono, ui-monospace, monospace); }
.err-header-row + .err-header-row { border-top:1px solid rgba(255,255,255,.06); }
.err-header-name { color:#8eabd0;overflow-wrap:anywhere; }
.err-header-name.trace { color:#57c7ff;font-weight:bold; }
.err-header-value { color:#d5e1f2;overflow-wrap:anywhere;white-space:pre-wrap; }
.err-code { margin:0;max-height:260px;overflow:auto;padding:10px;border:1px solid rgba(255,255,255,.07);border-radius:5px;background:#0a1322;color:#d8e6f8;font:10px/1.65 var(--font-mono, ui-monospace, monospace);white-space:pre-wrap;overflow-wrap:anywhere;tab-size:2; }
.err-none { color:var(--text-muted);font:italic 9px/1.55 var(--font-mono, ui-monospace, monospace); }
.err-transport { color:#ffb0b0;font:10px/1.65 var(--font-mono, ui-monospace, monospace);white-space:pre-wrap;overflow-wrap:anywhere; }
.err-fallback-note { color:#ffd15c;font:9px/1.55 var(--font-mono, ui-monospace, monospace);margin-bottom:10px; }
.err-retry { min-height:44px;margin-top:12px;padding:8px 14px;cursor:pointer;border:1px solid rgba(255,255,255,.22);border-radius:5px;background:rgba(255,255,255,.06);color:#edf5ff;font:bold 9px/1.4 var(--font-mono, ui-monospace, monospace);letter-spacing:.08em;text-transform:uppercase; }
#err-actions { min-height:58px;flex:none;display:flex;align-items:center;gap:10px;padding:7px 14px;border-top:1px solid rgba(255,255,255,.09);background:#131e32; }
#err-privacy { flex:1;color:var(--text-muted);font:9px/1.45 var(--font-mono, ui-monospace, monospace); }
#err-copy,#err-close { min-height:44px;padding:8px 16px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.2);border-radius:5px;font:bold 9px/1.4 var(--font-mono, ui-monospace, monospace);letter-spacing:.1em;text-transform:uppercase;color:#e7f0ff;cursor:pointer;transition:background .15s,border-color .15s; }
#err-copy:hover,#err-copy:focus-visible,#err-close:hover,#err-close:focus-visible { background:rgba(255,255,255,.13);border-color:rgba(255,255,255,.42); }
#err-copy:disabled { cursor:not-allowed;opacity:.45; }
body.err-modal-open { overflow:hidden; }
@media (max-width:640px) {
  #err-overlay { padding:0;align-items:stretch; }
  #err-box { width:100%;height:100dvh;max-width:none;max-height:none;border-radius:0;border-width:0; }
  #err-dialog-head { padding:12px 12px 10px;gap:10px; }
  #err-heading { font-size:13px; }
  #err-layout { display:block;overflow-y:auto; }
  #err-master { min-height:auto;max-height:none;padding:11px 9px 10px;border-right:0;border-bottom:1px solid rgba(255,255,255,.09); }
  #err-list { flex:none;max-height:210px;overflow-y:auto; }
  .err-sample { min-height:64px; }
  #err-detail { min-height:330px;overflow:visible;padding:14px 10px 22px; }
  .err-overview { grid-template-columns:1fr 1fr; }
  .err-header-row { grid-template-columns:1fr;gap:2px; }
  .err-code { max-height:320px; }
  #err-actions { padding:7px 9px;position:sticky;bottom:0; }
  #err-privacy { display:none; }
  #err-copy,#err-close { flex:1;padding-inline:9px; }
}
