:root {
  --page: #f8f6f3;
  --panel: #fffefa;
  --ink: #262238;
  --muted: #645f70;
  --line: #e0dce3;
  --soft: #eee8f9;
  --accent: #58409c;
  --rail-width: 180px;
}
.site-header { background: #f4f1ed; }
.brand { font-size: 24px; }
.brand img { background: var(--accent); }
.nav-group { display: flex; align-items: stretch; gap: 4px; }
.nav-caption { display: none; }
.global-nav { gap: 4px; }
.global-nav a { align-items: center; gap: 9px; padding: 0 12px; color: var(--muted); }
.global-nav a img, .tool-menu img { width: 17px; height: 17px; opacity: .7; }
.global-nav a[aria-current] { color: var(--accent); }
.global-nav a:hover { background: #ebe7e5; }
main.wrap { min-height: 100dvh; }
.cloud-hero, .section-intro, #networkView { padding-top: clamp(26px, 4vw, 56px); }
.cloud-hero, .section-intro { padding-bottom: 22px; }
.cloud-hero h1, .section-intro h1, .network-intro h1 {
  font-family: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "STSong", serif;
  font-size: clamp(1.9rem, 3.6vw, 3.05rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.04em;
}
.section-intro p, .cloud-hero p, .network-intro p { line-height: 1.65; }
.cloud-title { justify-content: space-between; align-items: center; }
.demo-tag { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.fleet-readings {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  border-block: 1px solid var(--line); padding: 14px 0; margin: 0 0 22px;
}
.fleet-readings > div { padding: 0 clamp(12px,2.3vw,34px); }
.fleet-readings > div:first-child { padding-left: 0; }
.fleet-readings > div + div { border-left: 1px solid var(--line); }
.fleet-readings dt { color: var(--muted); font-size: .82rem; }
.fleet-readings dd { margin: 4px 0 0; font: 580 clamp(1.25rem,2.8vw,2.05rem)/1.16 var(--mono); letter-spacing: -.055em; }
.fleet-readings small { font-size: .72rem; }
.status-map, .provider-details, .cloud-table, .network-links, .reading, .incidents-list { background: var(--panel); }
.list-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 24px 0 12px; }
.list-heading h2, .map-heading h2 { margin: 0; font-size: 1.19rem; }
.provider-filter { background: var(--panel); border: 1px solid var(--line); padding-inline: 9px; border-radius: 7px; }
.provider-filter select { color: var(--ink); font-size: .82rem; padding-block: 6px; }
.provider-filter img { filter: none; width: 15px; }
.map-visual { background: #f4eff8; }
.cloud-grid { gap: 12px; align-items: start; }
.provider-details { min-width: 0; }
.cloud-table thead th { background: #f2eeeb; }
.event-filters { flex-direction: row-reverse; justify-content: flex-start; align-items: center; padding: 12px 0; margin: 0; border-top: 1px solid var(--line); }
#eventScope { margin-right: auto; font-variant-numeric: tabular-nums; }
.incidents-list { border: 0; background: transparent; }
.incident-day { font: 600 .85rem/1.4 var(--mono); margin: 19px 0 7px; color: var(--muted); }
.incident-item { background: var(--panel); border-inline: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.incident-item + .incident-item { border-top: 0; }
.incident-day + .incident-item { border-top: 1px solid var(--line); border-radius: 10px 10px 0 0; }
.incident-item:has(+ .incident-day), .incident-item:last-child { border-radius: 0 0 10px 10px; }
.incident-item summary { gap: 13px; }
.incident-item summary .provider-logo { width: 30px; height: 25px; object-fit: contain; }
.incident-item summary > div { min-width: 0; overflow-wrap: anywhere; }
.incident-item summary time { font-size: .75rem; }
.incident-item details[open] { box-shadow: inset 3px 0 var(--accent); }
.incident-content { padding-left: 64px; }
.section-tabs { height: auto; display: flex; gap: 24px; border-bottom: 1px solid var(--line); }
.section-tabs a { padding: 10px 1px; border-bottom: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: .89rem; }
.section-tabs a[aria-current] { border-color: var(--accent); color: var(--accent); font-weight: 680; }
.network-pane { display: grid; min-width: 0; gap: 16px; }
#egressProfiles { border: 1px solid var(--line); border-radius: 12px; gap: 0; background: var(--panel); overflow: hidden; }
.service-reading { padding: 19px; border: 0; border-radius: 0; box-shadow: none; }
.service-reading + .service-reading { border-left: 1px solid var(--line); }
.service-reading:focus-visible { outline-offset: -3px; }
.service-reading strong { font-size: clamp(1.12rem,1.9vw,1.48rem); }
.service-reading .has-address { color: var(--accent); }
.service-reading small { font-variant-numeric: tabular-nums; }
.reading, #networkView .probe-card, #networkView .card { box-shadow: none; }
#networkView .egress-verdict { font-size: 1.52rem; line-height: 1.35; }
#networkView .egress-metadata { border-top: 1px solid var(--line); padding-top: 11px; }
.tool-layout { display: grid; grid-template-columns: 165px minmax(0,1fr); align-items: start; gap: 18px; }
.tool-menu { display: grid; align-content: start; gap: 3px; margin: 0; }
.tool-menu a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; }
.tool-workbench { min-height: 220px; padding: clamp(18px,2.5vw,32px); }
.tool-form { margin-top: 24px; }
footer { border-top: 1px solid var(--line); }
@media (min-width: 1040px) {
  body { display: grid; grid-template-columns: var(--rail-width) minmax(0,1fr); }
  .site-header { border-right: 1px solid var(--line); }
  .site-header .header { position: sticky; top: 0; width: 100%; height: 100dvh; padding: 32px 14px; margin: 0; border: 0; flex-direction: column; align-items: stretch; gap: 46px; }
  .brand { margin: 0 5px; }
  .global-nav { display: grid; gap: 26px; align-content: start; height: auto; margin: 0; }
  .nav-group { display: grid; gap: 4px; }
  .nav-caption { display: block; padding: 0 12px 5px; color: var(--muted); font-size: .75rem; }
  .global-nav a { border: 0; border-radius: 7px; min-height: 42px; }
  .global-nav a[aria-current] { background: #e8e0f5; }
  main.wrap { width: min(1220px, calc(100% - clamp(40px,6vw,110px))); }
}
@media (max-width: 1039px) {
  .site-header { border-bottom: 1px solid var(--line); }
  .site-header .header { border-bottom: 0; }
  .global-nav a { padding-inline: 8px; }
}
@media (max-width: 760px) {
  .service-reading:nth-child(3) { border-left: 0; }
  .service-reading:nth-child(n+3) { border-top: 1px solid var(--line); }
  .tool-layout { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .tool-menu { display: flex; flex-wrap: wrap; gap: 1px; }
  .tool-menu a { padding: 8px; }
}
@media (max-width: 570px) {
  .site-header .header { display: grid; grid-template-columns: minmax(0,1fr); gap: 4px; padding-top: 14px; }
  .global-nav { grid-column: auto; grid-row: auto; width: 100%; margin: 0; justify-content: space-between; gap: 0; min-height: 42px; }
  .nav-group { display: contents; }
  .global-nav a { padding: 6px 4px; gap: 5px; }
  .global-nav a img { width: 14px; height: 14px; }
  .fleet-readings { padding-block: 12px; margin-bottom: 14px; }
  .fleet-readings dt { font-size: .73rem; }
  .incident-item summary { display: grid; grid-template-columns: 22px minmax(0,1fr) auto; gap: 3px 8px; }
  .incident-item summary .provider-logo { width: 22px; height: 20px; }
  .incident-item summary time { grid-column: 2; grid-row: 2; }
  .incident-item summary .service-status { grid-column: 3; grid-row: 1; }
  .incident-content { padding-left: 14px; }
  .tool-menu a { font-size: .8rem; gap: 4px; }
  .tool-menu img { width: 14px; height: 14px; }
}
