/* ProperStatus - status page styles
   Palette derived from the original site: navy #07344f (logo), link blue #1c58a8,
   red #da0c0c (ongoing), green #047006 (resolved), soft blue-grey #eaf0f2 (table header). */

:root {
  --navy-900: #062a40;
  --navy-800: #07344f;
  --navy-700: #0b4a6f;
  --blue-600: #1c58a8;
  --blue-500: #2a6fc9;
  --blue-50:  #eaf1fb;

  --bg:        #f4f7f9;
  --bg-hero:   #e8eff3;
  --surface:   #ffffff;
  --surface-2: #f8fafb;
  --border:    #dde5ea;
  --border-strong: #c9d4db;
  --text:      #0f2433;
  --text-2:    #3c5262;
  --muted:     #687b88;

  --ok:        #0d7a36;
  --ok-bg:     #e8f6ed;
  --ok-line:   #b9e3c7;
  --danger:    #c71f1f;
  --danger-bg: #fdeeee;
  --danger-line: #f3c2c2;
  --info:      #1c58a8;
  --info-bg:   #eaf1fb;
  --info-line: #c3d6f1;
  --warn:      #b45d09;

  --telegram-1: #2aabee;
  --telegram-2: #1f8fd0;
  --rss:        #e8702a;

  --logo-ink:   var(--navy-800);
  --logo-bar-1: #f08c3e;
  --logo-bar-2: #e0503a;
  --logo-gap:   var(--surface);

  --radius:    14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(7, 52, 79, .06), 0 1px 1px rgba(7, 52, 79, .04);
  --shadow:    0 1px 2px rgba(7, 52, 79, .05), 0 8px 24px -8px rgba(7, 52, 79, .14);
  --shadow-lg: 0 2px 4px rgba(7, 52, 79, .05), 0 18px 40px -12px rgba(7, 52, 79, .22);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #0b1620;
    --bg-hero:   #0f1f2c;
    --surface:   #122230;
    --surface-2: #162a3a;
    --border:    #20384a;
    --border-strong: #2b4659;
    --text:      #e6eef3;
    --text-2:    #b5c6d2;
    --muted:     #8aa0af;
    --blue-600:  #6aa6ec;
    --blue-500:  #7db3f0;
    --blue-50:   #15304a;

    --ok:        #4cc77a;
    --ok-bg:     #10301f;
    --ok-line:   #1d5234;
    --danger:    #ff6b6b;
    --danger-bg: #3a1618;
    --danger-line: #6a2428;
    --info:      #7db3f0;
    --info-bg:   #13304d;
    --info-line: #22507c;
    --warn:      #f0a34a;

    --logo-ink:  #e6eef3;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow:    0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -8px rgba(0, 0, 0, .5);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 18px 40px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font: 400 15px/1.6 var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.25; margin: 0; letter-spacing: -.01em; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue-500) 55%, transparent); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }
.muted { color: var(--muted); }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip-link:focus { left: 8px; }

.icon { width: 20px; height: 20px; flex: none; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 30px; height: 30px; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--logo-ink); }
.brand:hover { text-decoration: none; }
.logo-mark { width: 46px; height: 42px; color: var(--logo-ink); flex: none; }
.logo-mark-sm { width: 26px; height: 24px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 23px; font-weight: 800; letter-spacing: -.025em; }
.brand-proper { color: var(--logo-ink); }
.brand-status { color: var(--blue-600); }
.brand-tag { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.header-actions { display: flex; align-items: center; gap: 10px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text);
  font: 600 14px/1 var(--font); cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; border-color: var(--blue-500); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(1px); }
.btn-outline { background: transparent; }

.btn-rss .icon { color: var(--rss); width: 18px; height: 18px; }

.btn-telegram {
  height: 48px; padding: 0 20px 0 6px; gap: 11px;
  border: 0; color: #fff;
  background: linear-gradient(135deg, var(--telegram-1), var(--telegram-2));
  box-shadow: 0 6px 18px -6px rgba(31, 143, 208, .65), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-telegram:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px -8px rgba(31, 143, 208, .75), inset 0 1px 0 rgba(255, 255, 255, .25); }
.tg-badge {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: var(--telegram-2);
}
.tg-badge .icon { width: 21px; height: 21px; margin-left: -2px; }
.tg-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.tg-small { font-size: 11px; font-weight: 500; opacity: .9; }
.tg-big { font-size: 15px; font-weight: 700; }
.btn-telegram-compact { height: 42px; padding-right: 18px; }
.btn-telegram-compact .tg-badge { width: 30px; height: 30px; }
.btn-telegram-compact .tg-badge .icon { width: 17px; height: 17px; }

/* ---------------------------------------------------------------- hero */
.hero {
  background:
    radial-gradient(1200px 300px at 85% -60px, color-mix(in srgb, var(--blue-500) 12%, transparent), transparent 70%),
    linear-gradient(180deg, var(--bg-hero), var(--bg));
  padding: 40px 0 8px;
}
.status-banner {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px;
  padding: 24px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.status-banner::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--accent); }
.status-operational { --accent: var(--ok); --accent-bg: var(--ok-bg); }
.status-upcoming    { --accent: var(--info); --accent-bg: var(--info-bg); }
.status-ongoing     { --accent: var(--danger); --accent-bg: var(--danger-bg); }
.status-icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; color: var(--accent); background: var(--accent-bg); }
.status-copy h1 { font-size: 26px; font-weight: 750; }
.status-copy p { margin: 4px 0 0; color: var(--text-2); }
.status-updated { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } html { scroll-behavior: auto; } }
.active-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 14px; }
.active-head h1 { font-size: 24px; font-weight: 750; }
.incident-list-active .incident-title { font-size: 18px; }
.incident-open { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); }
.hero-intro { margin: 18px 4px 0; color: var(--text-2); }

/* ---------------------------------------------------------------- sections */
.section { padding-top: 36px; padding-bottom: 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.section-head h2 { font-size: 19px; font-weight: 700; }
.section-note { display: flex; align-items: center; gap: 5px; margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.section-note .icon { flex: none; }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.dot-operational { background: var(--ok); }
.dot-upcoming { background: var(--info); }
.dot-ongoing { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-bg); }

/* ---------------------------------------------------------------- data centers */
.dc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.dc-card {
  display: flex; flex-direction: column;
  padding: 18px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.dc-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.dc-ongoing { border-color: var(--danger-line); }
.dc-upcoming { border-color: var(--info-line); }
.dc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.dc-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.dc-ongoing .dc-status { color: var(--danger); }
.dc-upcoming .dc-status { color: var(--info); }
.dc-operational .dc-status { color: var(--ok); }
.dc-name { font-size: 17px; font-weight: 700; }
.dc-loc { display: flex; align-items: center; gap: 5px; margin: 3px 0 14px; font-size: 13px; color: var(--muted); }
.dc-latency {
  position: relative; margin: 0 0 14px; padding: 10px 12px;
  border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border);
}
.latency-value { display: flex; align-items: baseline; gap: 4px; font-variant-numeric: tabular-nums; }
.latency-best {
  display: none; position: absolute; top: -10px; right: 10px; padding: 1px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700; line-height: 16px; white-space: nowrap;
  color: var(--ok); background: var(--ok-bg); border: 1px solid var(--ok-line);
}
.dc-latency.is-best:not(.is-failed) .latency-best { display: inline-block; }
.latency-value::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; align-self: center; margin-right: 4px;
  background: var(--border-strong);
}
.latency-ms { font-size: 22px; font-weight: 750; letter-spacing: -.02em; line-height: 1.1; color: var(--text); }
.latency-unit { font-size: 13px; font-weight: 600; color: var(--muted); }
.latency-meta { display: block; margin-top: 3px; font-size: 11.5px; line-height: 1.4; color: var(--muted); }
.latency-age, .latency-kind { display: block; white-space: nowrap; }
.dc-latency.is-fast .latency-value::before { background: var(--ok); }
.dc-latency.is-medium .latency-value::before { background: var(--warn); }
.dc-latency.is-slow .latency-value::before, .dc-latency.is-failed .latency-value::before { background: var(--danger); }
.dc-latency.is-fast .latency-ms { color: var(--ok); }
.dc-latency.is-medium .latency-ms { color: var(--warn); }
.dc-latency.is-slow .latency-ms { color: var(--danger); }
.dc-latency.is-failed .latency-ms { color: var(--muted); font-size: 18px; }
.dc-latency.is-failed .latency-unit { display: none; }
.dc-latency.is-pending .latency-ms { color: var(--muted); }
.dc-latency.is-pending .latency-value::before { animation: blink 1s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .dc-latency.is-pending .latency-value::before { animation: none; } }

.dc-facts { margin: auto 0 0; padding-top: 12px; border-top: 1px dashed var(--border); display: grid; gap: 5px; font-size: 12.5px; }
.dc-facts div { display: flex; justify-content: space-between; gap: 8px; }
.dc-facts dt { color: var(--muted); }
.dc-facts dd { margin: 0; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }

.flag { display: inline-block; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); object-fit: cover; flex: none; }
.flag-sm { width: 18px; height: 13.5px; border-radius: 2px; }
.flag-lg { width: 36px; height: 27px; border-radius: 4px; }

/* ---------------------------------------------------------------- filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
  font-size: 13.5px; font-weight: 600;
}
.chip:hover { text-decoration: none; border-color: var(--border-strong); color: var(--text); }
.chip.is-active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
@media (prefers-color-scheme: dark) { .chip.is-active { background: var(--blue-600); border-color: var(--blue-600); color: #06121c; } }

#history { scroll-margin-top: 88px; }
#history .incident-list, #history .month-heading, #history .empty-state { transition: opacity .15s ease; }
#history.is-loading .incident-list, #history.is-loading .month-heading, #history.is-loading .empty-state { opacity: .45; }

.month-heading { font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 26px 0 10px; }

/* ---------------------------------------------------------------- incidents */
.incident-list { display: grid; gap: 10px; }
.incident {
  display: flex; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.incident-rail { width: 4px; flex: none; background: var(--ok); opacity: .55; }
.incident-ongoing .incident-rail { background: var(--danger); opacity: 1; }
.incident-upcoming .incident-rail { background: var(--info); opacity: 1; }
.incident-ongoing { border-color: var(--danger-line); }
.incident-upcoming { border-color: var(--info-line); }
.incident-list-active .incident { box-shadow: var(--shadow); }
.incident-main { flex: 1; min-width: 0; padding: 16px 20px; }

.incident-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; }
.incident-when { margin-left: auto; color: var(--muted); white-space: nowrap; }
.incident-title { font-size: 16.5px; font-weight: 650; margin: 9px 0 4px; }
.incident-title a { color: var(--text); }
.incident-title a:hover { color: var(--blue-600); }
.incident-times { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.incident-times span { display: inline-flex; align-items: center; gap: 5px; }
.incident-times .sep { opacity: .5; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  height: 24px; padding: 0 10px 0 8px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .01em;
  border: 1px solid transparent;
}
.badge-resolved { color: var(--ok); background: var(--ok-bg); border-color: var(--ok-line); }
.badge-ongoing  { color: var(--danger); background: var(--danger-bg); border-color: var(--danger-line); }
.badge-upcoming { color: var(--info); background: var(--info-bg); border-color: var(--info-line); }

.dc-chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); font-weight: 600; }
.dc-chip .icon { color: var(--muted); }

.incident-details { margin-top: 10px; }
.incident-details summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  font-size: 14px; color: var(--text-2);
}
.incident-details summary::-webkit-details-marker { display: none; }
.summary-toggle { display: inline-flex; align-items: center; gap: 2px; color: var(--blue-600); font-weight: 600; font-size: 13px; white-space: nowrap; }
.summary-toggle .icon { transition: transform .2s ease; }
.incident-details[open] .summary-toggle .icon { transform: rotate(90deg); }
.incident-details[open] .summary-excerpt { display: none; }
.incident-details[open] summary { justify-content: flex-end; }
.incident-details .prose { margin-top: 6px; padding: 16px 18px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.permalink { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; font-weight: 600; }

.prose { color: var(--text-2); font-size: 14.5px; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p, .prose div { margin: 0 0 .7em; }
.prose b, .prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose table { border-collapse: collapse; width: 100%; }
.prose td, .prose th { border: 1px solid var(--border); padding: 6px 8px; }

/* ---------------------------------------------------------------- incident page */
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; margin-bottom: 16px; }
.incident-full { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.incident-full-head { padding: 28px 32px 22px; border-bottom: 1px solid var(--border); border-top: 5px solid var(--ok); }
.incident-full.incident-ongoing .incident-full-head { border-top-color: var(--danger); }
.incident-full.incident-upcoming .incident-full-head { border-top-color: var(--info); }
.incident-full-head h1 { font-size: 26px; font-weight: 750; margin: 14px 0 18px; }
.incident-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 0; }
.incident-facts dt { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.incident-facts dd { margin: 3px 0 0; font-weight: 600; display: flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.incident-body { padding: 26px 32px; font-size: 15.5px; }
.incident-full-foot { display: flex; gap: 10px; flex-wrap: wrap; padding: 18px 32px; background: var(--surface-2); border-top: 1px solid var(--border); }

/* ---------------------------------------------------------------- misc */

.empty-state { text-align: center; padding: 48px 24px; background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius); color: var(--text-2); }
.empty-state h1 { font-size: 22px; margin-bottom: 8px; color: var(--text); }

/* ---------------------------------------------------------------- footer */
.site-footer { margin-top: 56px; border-top: 1px solid var(--border); background: var(--surface); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 24px; padding-bottom: 28px; font-size: 13.5px; color: var(--muted); }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-links a { display: inline-flex; align-items: center; gap: 5px; color: var(--text-2); }
.footer-links a .icon { color: var(--muted); }
.footer-note { flex-basis: 100%; margin: 0; font-size: 12.5px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 760px) {
  .container { padding: 0 16px; }
  .header-inner { min-height: 64px; }
  .logo-mark { width: 38px; height: 35px; }
  .brand-name { font-size: 19px; }
  .brand-tag { display: none; }
  .btn-label-wide, .tg-small { display: none; }
  .btn-rss { width: 42px; padding: 0; justify-content: center; }
  .btn-telegram { height: 42px; padding: 0 14px 0 5px; }
  .tg-badge { width: 32px; height: 32px; }
  .tg-big { font-size: 14px; }
  .hero { padding-top: 24px; }
  .status-banner { grid-template-columns: auto 1fr; padding: 18px 18px 18px 22px; gap: 14px; }
  .status-icon { width: 46px; height: 46px; border-radius: 12px; }
  .status-copy h1 { font-size: 20px; }
  .status-updated { grid-column: 1 / -1; }
  .dc-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .incident-main { padding: 14px 16px; }
  .incident-when { margin-left: 0; width: 100%; }
  .incident-times { flex-direction: column; align-items: flex-start; gap: 2px; }
  .incident-times .sep { display: none; }
  .incident-times span + span:not(.sep) { padding-left: 21px; }
  .incident-details summary { flex-direction: column; gap: 6px; }
  .incident-full-head, .incident-body, .incident-full-foot { padding-left: 20px; padding-right: 20px; }
  .incident-full-head h1 { font-size: 21px; }
  .incident-full-foot .btn { flex: 1 1 auto; justify-content: center; }
  .section { padding-top: 28px; }
}
@media (max-width: 520px) {
  .header-actions .btn-telegram:not(.btn-telegram-compact) .tg-text { display: none; }
  .header-actions .btn-telegram:not(.btn-telegram-compact) { padding: 0 5px; width: 42px; justify-content: center; }

  /* compact data center cards: one per row, facts in three columns */
  .dc-grid { grid-template-columns: 1fr; }
  .dc-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 12px; padding: 14px 16px; }
  .dc-top { display: contents; }
  .dc-top .flag-lg { grid-column: 1; grid-row: 1 / span 2; width: 34px; height: 25.5px; }
  .dc-status { grid-column: 3; grid-row: 1; }
  .dc-name { grid-column: 2; grid-row: 1; font-size: 16px; }
  .dc-loc { grid-column: 2 / span 2; grid-row: 2; margin: 0; }
  .dc-latency { grid-column: 1 / -1; margin: 12px 0 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
  .latency-meta { margin-top: 0; }
  .latency-age, .latency-kind { display: inline; }
  .latency-kind:not(:empty)::before { content: " · "; }
  .dc-facts { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); margin-top: 12px; gap: 8px; }
  .dc-facts div { flex-direction: column; gap: 0; }
  .dc-facts dt { font-size: 11px; }
}

/* ---------------------------------------------------------------- incident lifecycle */
.incident-times .dur { color: var(--ok); font-weight: 600; }
.incident-times .dur .icon { color: var(--ok); }
.incident-times .upd { color: var(--text-2); font-weight: 600; }

/* ---------------------------------------------------------------- live update toast */
.toast {
  position: fixed; left: 50%; bottom: 22px; z-index: 40;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 10px 10px 16px; border-radius: 999px;
  background: var(--navy-800); color: #fff; box-shadow: var(--shadow-lg);
  font-size: 14px; font-weight: 600;
  transform: translate(-50%, 140%); transition: transform .25s ease;
}
.toast.is-on { transform: translate(-50%, 0); }
.toast > span:first-child { display: inline-flex; align-items: center; gap: 9px; }
.toast .dot { background: #ffb547; box-shadow: 0 0 0 3px rgba(255, 181, 71, .25); }
.toast button { font: inherit; cursor: pointer; border: 0; border-radius: 999px; }
.toast .toast-refresh { padding: 7px 14px; background: #fff; color: var(--navy-800); }
.toast .toast-close { width: 30px; height: 30px; background: transparent; color: #fff; opacity: .7; font-size: 18px; line-height: 1; }
.toast .toast-close:hover { opacity: 1; }
@media (max-width: 520px) {
  .toast { left: 16px; right: 16px; transform: translateY(140%); justify-content: space-between; border-radius: 14px; }
  .toast.is-on { transform: none; }
}
