:root {
  --page: #faf7f5;
  --ink: #19152f;
  --muted: #58526a;
  --line: #ded7e5;
  --accent: #5239bb;
  --soft: #ede7fb;
  --panel: #fdfaf8;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
.wrap { width: min(1160px, calc(100% - 48px)); }
.site-header { background: var(--page); border: 0; }
.site-header .header { min-height: 72px; height: auto; gap: 24px; }
.brand { gap: 11px; font-size: 27px; letter-spacing: -.055em; white-space: nowrap; }
.brand img { border-radius: 11px; padding: 8px; background: #553abd; filter: none; }
.brand-note { color: var(--muted); font-size: 14px; border-left: 1px solid #b0a5bf; padding-left: 20px; }
.global-nav { display: flex; align-self: stretch; align-items: stretch; gap: 34px; height: auto; margin-inline: auto; }
.global-nav a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; font-weight: 660; border-bottom: 3px solid transparent; white-space: nowrap; }
.global-nav a[aria-current] { color: var(--accent); border-color: var(--accent); }
.demo-tag { color: #593cbe; background: #eee7fb; font-size: .85rem; border-radius: 999px; padding: 5px 13px; white-space: nowrap; }

.cloud-hero { padding: 46px 0 24px; }
.cloud-hero h1, .section-intro h1 { margin: 0 0 8px; letter-spacing: -.045em; line-height: 1.11; }
.cloud-hero h1 { font: 750 clamp(3rem, 5.1vw, 4.5rem)/1.12 "Songti SC", "Noto Serif SC", "SimSun", serif; letter-spacing: -.04em; }
.cloud-hero p, .section-intro p { color: var(--muted); margin: 0; line-height: 1.65; }
.cloud-actions { display: flex; gap: 22px; margin-top: 30px; align-items: stretch; }
.cloud-actions img { flex: none; }
.cloud-actions .secondary, .network-toolbar .secondary, .network-summary .secondary, #ipDetails .secondary {
  margin: 0; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 10px 18px;
  color: var(--ink); text-decoration: none; border: 1px solid #cbb9eb; background: #fbf7fd; font-weight: 680;
}
.provider-filter { display: inline-flex; align-items: center; gap: 4px; padding: 0 12px 0 19px; background: #553bbd; color: white; border-radius: 10px; }
.provider-filter img, .brand img { filter: none; }
.provider-filter img { filter: invert(1); }
.provider-filter select { appearance: auto; background: transparent; color: white; border: 0; font-weight: 650; padding-inline: 7px 8px; max-width: 185px; }
.provider-filter option { color: var(--ink); background: white; }
.cloud-grid { display: grid; grid-template-columns: minmax(0, 2.24fr) minmax(310px, 1fr); gap: 19px; align-items: end; padding-bottom: 32px; }
.cloud-table, .provider-details, .network-links, .incidents-list, .network-summary { background: var(--panel); border: 1px solid var(--line); border-radius: 15px; }
.cloud-table { min-width: 0; overflow: hidden; align-self: stretch; }
.cloud-table table { border-collapse: separate; border-spacing: 0; width: 100%; }
.cloud-table th, .cloud-table td { padding: 12px 12px; text-align: left; }
.cloud-table thead th { font-weight: 730; white-space: nowrap; background: #f7f1ed; height: 58px; border-bottom: 1px solid var(--line); }
.cloud-table thead th:first-child, .cloud-table tbody th { padding-left: 20px; }
.cloud-table thead th small { font-size: .75rem; color: var(--muted); font-weight: 500; }
.cloud-table tbody td, .cloud-table tbody th { border-bottom: 1px solid #e9e2e8; height: 69px; }
.cloud-table tbody tr:last-child > * { border-bottom: 0; }
.cloud-table tbody tr.selected > * { background: #eee7fa; }
.cloud-table tbody tr:hover > * { background: #f4edf9; }
.cloud-table tbody td:nth-child(2) { color: var(--muted); font-size: .93rem; }
.vendor-button, .vendor-identity { display: inline-flex; align-items: center; gap: 12px; }
.vendor-button { background: none; border: 0; text-align: left; padding: 0; font-weight: 730; line-height: 1.3; }
.provider-logo { width: 40px; height: 31px; object-fit: contain; object-position: center; flex: none; }
.recent-event { position: relative; font-size: .93rem; font-weight: 570; }
.recent-event > div { padding-right: 71px; }
.recent-event time, .incident-summary time { display: block; color: var(--muted); font-size: .85rem; margin-top: 2px; font-weight: 450; }
.small-link { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); border: 1px solid #d1c0f4; border-radius: 9px; background: #f9f4fc; color: var(--accent); font-weight: 650; padding: 4px 9px; white-space: nowrap; }
.small-link:hover, .service-pill:hover { background: #ede4fa; }
.service-status { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; padding: 3px 9px; border-radius: 8px; font-size: .85rem; font-weight: 690; }
.service-status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.operational { color: #126727; background: #e5f5e2; }
.degraded { color: #875002; background: #fff0cf; }
.provider-details { position: relative; padding: 20px 26px 23px; }
.provider-details h2 { margin: 0 0 12px; font-size: 1.3rem; }
.provider-details h3 { margin: 15px 0 10px; font-size: 1rem; }
.detail-name { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 15px 0; border-block: 1px solid var(--line); }
.vendor-identity strong { font-size: 1.18rem; }
.incident-summary { border-left: 2px solid #d0c3ed; padding-left: 13px; margin: 0 0 11px; }
.incident-summary p { color: var(--muted); font-size: .92rem; margin: 6px 0 0; }
.official-link { display: inline-flex; align-items: center; text-decoration: none; gap: 6px; font-weight: 640; }
.official-link:hover { text-decoration: underline; }
.official-link img { width: 15px; height: 15px; }
.detail-metrics { border-top: 1px solid var(--line); padding-top: 11px; margin: 16px 0 0; color: var(--muted); font-size: .9rem; }
.detail-metrics > div { display: grid; grid-template-columns: minmax(110px, .75fr) minmax(0, 1fr); gap: 9px; padding: 3px 0; }
.detail-metrics dd { margin: 0; overflow-wrap: anywhere; color: var(--ink); }
.network-links { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 23px; padding: 19px 25px; }
.network-links h2 { display: inline-flex; align-items: center; gap: 12px; font-size: 1.19rem; margin: 0; white-space: nowrap; }
.network-links p { color: var(--muted); border-left: 1px solid var(--line); padding-left: 21px; margin: 0; }
.service-links { display: flex; flex-wrap: wrap; gap: 9px; }
.network-links .service-links { margin-left: auto; }
.service-pill { display: inline-flex; text-decoration: none; align-items: center; gap: 9px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fbf7fd; color: var(--ink); font-weight: 650; font-size: .91rem; }
.service-pill img { width: 20px; height: 20px; }
.service-pill[aria-pressed=true] { background: #ede4fa; color: var(--accent); border-color: #b79fdf; }
.section-intro { padding: 50px 0 23px; }
.section-intro h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
.network-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.network-tabs { margin-top: 16px; }
.network-tabs nav { min-height: 40px; }
.network-summary { display: flex; flex-wrap: wrap; gap: 13px 28px; align-items: center; padding: 16px 19px; }
.network-summary h2 { font-size: 1.06rem; margin: 0; }
.network-summary p { color: var(--muted); margin: 3px 0 0; font-size: .88rem; }
.network-summary dl { display: flex; flex: 1; flex-wrap: wrap; column-gap: 30px; margin: 0; }
.network-summary dl div { min-width: 112px; }
.network-summary dd { margin: 0; }
.network-summary dt { color: var(--muted); font-size: .85rem; }
.diagnostic-links { display: flex; gap: 17px; font-size: .88rem; }
.ip-result { display: block; background: none; color: var(--accent); border: 0; padding: 0; text-align: left; text-decoration: underline; overflow-wrap: anywhere; }
#ipDetails .detail-metrics { margin-bottom: 16px; }
.incident-filter { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 15px; }
.incident-item + .incident-item { border-top: 1px solid var(--line); }
.incident-item summary { display: flex; align-items: center; gap: 16px; padding: 17px 21px; cursor: pointer; }
.incident-item summary > div { flex: 1; display: grid; gap: 3px; }
.incident-item summary time, .incident-item summary > div span, .incident-content p { color: var(--muted); font-size: .9rem; }
.incident-content { padding: 0 21px 17px; }
.incident-content p { margin-top: 0; }
footer { margin-top: 25px; }

@media (max-width: 1130px) {
  .cloud-grid { grid-template-columns: minmax(0, 2fr) minmax(285px, 1fr); }
  .cloud-table thead th small { display: none; }
  .cloud-table th, .cloud-table td { padding-inline: 8px; }
  .cloud-table thead th:first-child, .cloud-table tbody th { padding-left: 12px; }
  .recent-event > div { padding-right: 0; }
  .small-link { display: none; }
  .provider-details { padding-inline: 16px; }
}
@media (max-width: 880px) {
  .wrap { width: calc(100% - 36px); }
  .brand-note { display: none; }
  .cloud-hero { padding-top: 36px; }
  .cloud-grid { grid-template-columns: minmax(0, 1fr); }
  .provider-details { padding-inline: 20px; }
}
@media (max-width: 570px) {
  .wrap { width: calc(100% - 28px); }
  .site-header .header { display: grid; grid-template-columns: 1fr auto; gap: 0 7px; padding-top: 10px; }
  .brand { font-size: 24px; }
  .brand img { width: 31px; height: 31px; }
  .global-nav { grid-row: 2; grid-column: 1 / -1; width: 100%; min-height: 42px; justify-content: space-between; gap: 8px; }
  .demo-tag { grid-row: 1; grid-column: 2; }
  .cloud-hero { padding-top: 30px; }
  .cloud-hero p { font-size: .92rem; }
  .cloud-actions { gap: 10px; margin-top: 21px; }
  .cloud-actions .secondary { padding-inline: 11px; }
  .cloud-table thead th:nth-child(2), .cloud-table tbody td:nth-child(2) { display: none; }
  .cloud-table thead th { height: 48px; font-size: .8rem; }
  .cloud-table tbody td, .cloud-table tbody th { height: 58px; }
  .vendor-button { gap: 6px; font-size: .78rem; }
  .vendor-button .provider-logo { width: 24px; height: 21px; }
  .recent-event, .recent-event time { font-size: .72rem; }
  .service-status { font-size: .73rem; padding-inline: 6px; gap: 5px; }
  .service-status::before { width: 6px; height: 6px; }
  .network-links { padding: 15px; }
  .network-links p { padding-left: 0; border: 0; }
  .network-links .service-links { margin-left: 0; }
  .section-intro { padding-top: 34px; }
  .incident-item summary { gap: 8px; padding-inline: 10px; }
  .incident-item summary time { font-size: .72rem; }
}
.detail-actions { display: flex; gap: 8px; flex-wrap: wrap; }
#ipDetails .detail-actions button { font-size: .85rem; padding: 8px 10px; margin: 0; }
@media (min-width: 1131px) {
  .cloud-grid { align-items: stretch; }
  .cloud-table tbody td, .cloud-table tbody th { height: 73px; }
  .provider-details { padding: 22px 27px; }
  .provider-details h2 { font-size: 1.4rem; }
  .detail-name { padding-block: 19px; }
  .provider-details h3 { margin-top: 20px; }
  .provider-details .detail-metrics > div { padding-block: 5px; }
}
.ip-lookup { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 13px; margin: 15px 0; }
.ip-lookup label { font-size: .88rem; font-weight: 680; }
.ip-lookup input { flex: 0 1 270px; font-size: .9rem; }
.ip-lookup button { margin: 0; }
.provider-details { scroll-margin-top: 12px; }

.status-map {
  margin-bottom: 22px;
  padding: 19px 21px 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel);
}
.map-heading, .map-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
}
.map-heading { margin-bottom: 14px; }
.map-heading h2 { margin: 0; font-size: 1.24rem; }
.map-heading p, .map-caption p { margin: 0; color: var(--muted); font-size: .88rem; }
.map-content { display: grid; grid-template-columns: minmax(0, 1fr) 255px; gap: 20px; align-items: center; }
.map-visual { position: relative; border: 1px solid #e8deef; border-radius: 12px; background: #f8f4fb; }
.map-visual img { width: 100%; height: auto; display: block; border-radius: inherit; }
.map-marker {
  position: absolute;
  left: var(--marker-x);
  top: var(--marker-y);
  transform: translate(-50%, -50%);
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid #d2c4e7;
  border-radius: 999px;
  background: #fffafc;
  color: var(--ink);
  font-weight: 680;
  white-space: nowrap;
  font-size: .81rem;
}
.map-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #20824b; }
.map-disturbed .map-dot { background: #a36707; }
.map-marker[aria-pressed=true], .map-region[aria-pressed=true] {
  background: #eee5fa;
  border-color: var(--accent);
}
.map-regions { display: grid; gap: 5px; }
.map-region {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  text-align: left;
  min-height: 38px;
  padding: 5px 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  font-size: .88rem;
  font-weight: 650;
}
.map-marker:hover, .map-region:hover { background: #f0e9f8; }
.map-region small { font-size: .76rem; color: var(--muted); font-weight: 500; }
.map-caption { margin-top: 10px; }
.map-caption a { font-size: .78rem; color: var(--muted); }
@media (max-width: 880px) {
  .map-content { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .map-regions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 570px) {
  .status-map { padding: 12px; }
  .map-marker { width: 30px; min-height: 30px; justify-content: center; padding: 0; }
  .map-region { min-height: 44px; grid-template-columns: auto 1fr; gap: 1px 6px; }
  .map-region small { grid-column: 2; }
}
.unknown { color: #54566a; background: #eeebf2; }
.map-unknown .map-dot { background: #79738b; }
.event-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 15px; margin-bottom: 15px; }
.event-filters .incident-filter { margin: 0; }
#eventScope { color: var(--muted); font-size: .85rem; }
.incident-summary p, .incident-content p { white-space: pre-line; overflow-wrap: anywhere; }
.recent-event > div { overflow-wrap: anywhere; }
.egress-overview { padding: 16px 19px; margin-top: 14px; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); }
.egress-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; }
.egress-heading h2 { margin: 0; font-size: 1.14rem; }
.egress-heading p, #egressCounts, .egress-empty, .egress-tags { color: var(--muted); font-size: .88rem; }
.egress-heading p { margin: 3px 0 0; }
#egressProfiles { display: flex; flex-wrap: wrap; gap: 7px; }
#egressProfiles .service-pill { font-size: .82rem; padding: 4px 9px; }
#egressGroups { margin-top: 12px; }
.egress-empty { margin: 0; }
.egress-group { display: grid; grid-template-columns: minmax(130px,1fr) 1fr minmax(140px,1.5fr); gap: 6px 15px; padding: 9px 0; border-top: 1px solid var(--line); }
.egress-targets { font-size: .86rem; overflow-wrap: anywhere; }
#stopOverview { margin-top: 8px; }
#ipDetails { max-height: calc(100dvh - 28px); overflow-y: auto; }
@media (max-width: 650px) {
  .egress-group { grid-template-columns: minmax(0,1fr); }
}
.egress-verdict { margin: 11px 0 2px; font-weight: 720; }
.egress-verdict[data-state=different] { color: #884700; }
.egress-verdict[data-state=same] { color: #126727; }
#egressCounts { margin-top: 4px; }
.probe-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 14px 0; }
.probe-card { background: var(--panel); padding: 15px; border: 1px solid var(--line); border-radius: 13px; min-width: 0; }
.probe-card h2 { font-size: 1.03rem; margin: 0; }
.probe-card p, .probe-card a, .probe-result { font-size: .85rem; }
.probe-card p { margin: 4px 0 9px; color: var(--muted); }
.probe-card .secondary { margin: 0; }
.probe-result { margin: 9px 0 6px; overflow-wrap: anywhere; }
.probe-result ul { margin: 5px 0; padding-left: 19px; }
.probe-sources { display: flex; flex-wrap: wrap; gap: 5px 11px; }
.egress-metadata { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px 13px; margin: 2px 0 0; }
.egress-metadata dt { color: var(--muted); font-size: .76rem; }
.egress-metadata dd { margin: 1px 0 0; font-size: .88rem; overflow-wrap: anywhere; }
@media (max-width: 850px) {
  .probe-grid { grid-template-columns: 1fr; }
  .egress-metadata { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

/* Shared shell for service status, incidents, egress and network tools. */
.site-header .header { min-height: 62px; border-bottom: 1px solid var(--line); }
.brand { font-size: 24px; }
.brand img { width: 31px; height: 31px; padding: 6px; border-radius: 8px; }
.global-nav { margin: 0 0 0 auto; gap: clamp(15px, 3vw, 32px); font-size: .92rem; }
.global-nav a { font-weight: 600; border-bottom-width: 2px; }
.cloud-hero, .section-intro { padding: 30px 0 18px; }
.cloud-hero h1, .section-intro h1 {
  font: 720 clamp(1.55rem, 3vw, 1.95rem)/1.25 Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  letter-spacing: -.045em;
}
.cloud-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 15px; }
.cloud-hero p, .section-intro p { font-size: .9rem; }
.cloud-actions { margin-top: 18px; gap: 10px; }
.cloud-actions .secondary, .provider-filter, .provider-filter select { font-size: .9rem; }
.status-map, .cloud-table, .provider-details, .network-links, .incidents-list { border-radius: 11px; }
.tool-menu { display: flex; flex-wrap: wrap; gap: 4px; height: auto; margin-bottom: 14px; }
.tool-menu a { padding: 8px 13px; border-radius: 7px; color: var(--muted); font-size: .9rem; text-decoration: none; }
.tool-menu a:hover, .tool-menu a[aria-current] { color: var(--accent); background: var(--soft); }
.tool-menu a[aria-current] { font-weight: 680; }
.tool-shortcut { justify-self: start; font-size: .9rem; text-underline-offset: 3px; }
.tool-workbench { min-height: 200px; }
.tool-workbench h2 { font-size: 1.2rem; margin: 0; }
.tool-workbench p { font-size: .9rem; color: var(--muted); margin: 6px 0; }
.tool-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 19px 0 8px; }
.tool-form label { display: grid; gap: 5px; min-width: 0; font-size: .84rem; font-weight: 600; }
.tool-form label:first-child { flex: 1 1 260px; }
.tool-form input, .tool-form select { width: 100%; height: 42px; font-weight: 450; }
.tool-form input[type=number] { width: 90px; }
.tool-form .primary { min-height: 42px; font-size: .89rem; }
#measureStatus:not(:empty) { margin-top: 19px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 650; overflow-wrap: anywhere; }
#measureResult table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .84rem; }
#measureResult th, #measureResult td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
#measureResult th { background: var(--soft); }
#measureResult details { font-size: .84rem; margin-top: 12px; }
#measureResult summary { cursor: pointer; color: var(--accent); }
#measureResult pre { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 570px) {
  .site-header .header { display: flex; flex-wrap: wrap; gap: 0 12px; padding-top: 6px; }
  .global-nav { min-height: 39px; width: auto; gap: 10px; font-size: .79rem; align-items: stretch; }
  .brand { font-size: 20px; gap: 6px; }
  .brand img { width: 25px; height: 25px; padding: 4px; }
  .tool-menu { gap: 0; }
  .tool-menu a { padding: 8px; font-size: .84rem; }
  .tool-form label:first-child { flex-basis: 100%; }
  #measureResult td, #measureResult th { padding: 6px 3px; font-size: .76rem; }
}
