﻿/* Default / no branding (current mockup style) */
    :root,
    [data-theme="none"] {
      --bg-0: #f3f6f4;
      --bg-1: #e8efea;
      --bg-glow-1: #d7ebe1;
      --bg-glow-2: #dfe8f0;
      --surface: #ffffff;
      --ink: #15201a;
      --ink-muted: #5a6b61;
      --ink-faint: #8a9a90;
      --brand: #0d6b4c;
      --brand-deep: #084d37;
      --brand-soft: #d8efe5;
      --ok: #1a7f4b;
      --ok-bg: #e7f6ee;
      --ok-bar: #2f9e63;
      --warn: #9a6b12;
      --warn-bg: #fbf3e0;
      --warn-bar: #d4a017;
      --down: #b42318;
      --down-bg: #fdeceb;
      --down-bar: #e04a3f;
      --border: rgba(21, 32, 26, 0.08);
      --shadow: 0 1px 2px rgba(21, 32, 26, 0.04), 0 8px 24px rgba(21, 32, 26, 0.06);
      --radius: 14px;
      --max: 820px;
      --font: "Figtree", system-ui, sans-serif;
      --display: "Outfit", "Figtree", system-ui, sans-serif;
      --mark-shadow: 0 6px 16px rgba(13, 107, 76, 0.28);
      --live-glow: rgba(26, 127, 75, 0.45);
    }

    /* KitchTech — from kitchtech.ie */
    [data-theme="kitchtech"] {
      --bg-0: #f8f7ff;
      --bg-1: #f1f0f5;
      --bg-glow-1: #ede9fb;
      --bg-glow-2: #e0f7fb;
      --surface: #ffffff;
      --ink: #1c1b2e;
      --ink-muted: #6b7280;
      --ink-faint: #9ca3af;
      --brand: #7c3aed;
      --brand-deep: #5b21b6;
      --brand-soft: #ede9fb;
      --ok: #059669;
      --ok-bg: #ecfdf5;
      --ok-bar: #10b981;
      --warn: #b45309;
      --warn-bg: #fffbeb;
      --warn-bar: #f59e0b;
      --down: #dc2626;
      --down-bg: #fef2f2;
      --down-bar: #ef4444;
      --border: rgba(28, 27, 46, 0.08);
      --shadow: 0 1px 2px rgba(28, 27, 46, 0.04), 0 8px 28px rgba(124, 58, 237, 0.08);
      --radius: 16px;
      --font: "Inter", system-ui, sans-serif;
      --display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
      --mark-shadow: 0 6px 18px rgba(124, 58, 237, 0.28);
      --live-glow: rgba(5, 150, 105, 0.45);
    }

    /* NCCO — from ncco.com */
    [data-theme="ncco"] {
      --bg-0: #f5f5f5;
      --bg-1: #ebeff0;
      --bg-glow-1: #b2dbb6;
      --bg-glow-2: #d6e8ee;
      --surface: #ffffff;
      --ink: #313131;
      --ink-muted: #53575a;
      --ink-faint: #8a8e91;
      --brand: #00ad6f;
      --brand-deep: #003b4a;
      --brand-soft: #e6f7f0;
      --ok: #039547;
      --ok-bg: #e8f7ef;
      --ok-bar: #00ad6f;
      --warn: #c2410c;
      --warn-bg: #fff4ec;
      --warn-bar: #f47d31;
      --down: #f32735;
      --down-bg: #fdebec;
      --down-bar: #f32735;
      --border: rgba(49, 49, 49, 0.1);
      --shadow: 0 1px 2px rgba(0, 59, 74, 0.05), 0 8px 24px rgba(0, 59, 74, 0.08);
      --radius: 10px;
      --font: "Open Sans", system-ui, sans-serif;
      --display: "Oswald", "Open Sans", system-ui, sans-serif;
      --mark-shadow: 0 6px 16px rgba(0, 173, 111, 0.25);
      --live-glow: rgba(3, 149, 71, 0.45);
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: var(--font);
      color: var(--ink);
      background:
        radial-gradient(1200px 500px at 10% -10%, var(--bg-glow-1) 0%, transparent 55%),
        radial-gradient(900px 420px at 100% 0%, var(--bg-glow-2) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
      background-attachment: fixed;
      min-height: 100vh;
      line-height: 1.5;
      -webkit-font-smoothing: antialiased;
      transition: background 0.25s ease, color 0.25s ease;
    }

    .page {
      width: min(100% - 2rem, var(--max));
      margin: 0 auto;
      padding: 2rem 0 3.5rem;
    }

    /* Mockup toolbar */
    .mockup-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
      flex-wrap: wrap;
      margin-bottom: 1.5rem;
      padding: 0.7rem 0.9rem;
      background: rgba(255, 255, 255, 0.78);
      border: 1px solid var(--border);
      border-radius: 12px;
      backdrop-filter: blur(10px);
      box-shadow: var(--shadow);
      animation: rise 0.45s ease both;
    }

    /* display:flex above would otherwise override the HTML hidden attribute */
    .mockup-bar[hidden] {
      display: none !important;
    }

    .mockup-bar label {
      display: flex;
      align-items: center;
      gap: 0.55rem;
      font-size: 0.8rem;
      font-weight: 600;
      color: var(--ink-muted);
    }

    .mockup-bar select {
      appearance: none;
      font: inherit;
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--ink);
      background: var(--surface)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235a6b61' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E")
        right 0.7rem center / 10px no-repeat;
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 0.4rem 2rem 0.4rem 0.7rem;
      cursor: pointer;
      min-width: 11rem;
    }

    .mockup-bar select:focus {
      outline: 2px solid var(--brand);
      outline-offset: 1px;
    }

    .mockup-hint {
      font-size: 0.72rem;
      color: var(--ink-faint);
      font-weight: 500;
    }

    /* Header / branding */
    .site-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      margin-bottom: 2rem;
      animation: rise 0.55s ease both;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 0.85rem;
      min-width: 0;
    }

    .brand-mark {
      width: 44px;
      height: 44px;
      border-radius: 12px;
      background: linear-gradient(145deg, var(--brand) 0%, var(--brand-deep) 100%);
      color: #fff;
      display: grid;
      place-items: center;
      flex-shrink: 0;
      box-shadow: var(--mark-shadow);
      overflow: hidden;
    }

    .brand-mark svg {
      width: 22px;
      height: 22px;
    }

    .brand-mark img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: none;
      background: #fff;
      padding: 4px;
    }

    [data-theme="kitchtech"] .brand-mark,
    [data-theme="ncco"] .brand-mark {
      background: #fff;
      border: 1px solid var(--border);
    }

    [data-theme="kitchtech"] .brand-mark img,
    [data-theme="ncco"] .brand-mark img {
      display: block;
    }

    [data-theme="kitchtech"] .brand-mark svg,
    [data-theme="ncco"] .brand-mark svg {
      display: none;
    }

    .brand-logo {
      display: none;
      height: 36px;
      width: auto;
      max-width: min(220px, 48vw);
      object-fit: contain;
    }

    .brand-text {
      min-width: 0;
    }

    .brand-name {
      font-family: var(--display);
      font-weight: 700;
      font-size: clamp(1.15rem, 2.5vw, 1.35rem);
      letter-spacing: -0.02em;
      line-height: 1.2;
    }

    [data-theme="ncco"] .brand-name {
      font-weight: 500;
      letter-spacing: 0.02em;
      text-transform: uppercase;
    }

    .brand-sub {
      color: var(--ink-muted);
      font-size: 0.875rem;
      font-weight: 500;
    }

    .header-actions {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      flex-shrink: 0;
    }

    .live-pill {
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
      padding: 0.4rem 0.75rem;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.72);
      border: 1px solid var(--border);
      color: var(--ink-muted);
      font-size: 0.75rem;
      font-weight: 600;
      letter-spacing: 0.02em;
      white-space: nowrap;
      backdrop-filter: blur(8px);
    }

    .live-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--ok);
      box-shadow: 0 0 0 0 var(--live-glow);
      animation: pulse 2s ease infinite;
    }

    /* Overall status */
    .summary {
      position: relative;
      overflow: hidden;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: calc(var(--radius) + 4px);
      box-shadow: var(--shadow);
      padding: 1.5rem 1.4rem 1.35rem;
      margin-bottom: 1.5rem;
      animation: rise 0.55s ease 0.08s both;
    }

    .summary::before {
      content: "";
      position: absolute;
      inset: 0 auto 0 0;
      width: 5px;
      background: var(--ok);
    }

    .summary.is-warn::before { background: var(--warn-bar); }
    .summary.is-down::before { background: var(--down-bar); }
    .summary.is-warn .summary-title { color: var(--warn); }
    .summary.is-down .summary-title { color: var(--down); }

    .summary-top {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 1rem;
      flex-wrap: wrap;
    }

    .summary-label {
      font-size: 0.75rem;
      font-weight: 650;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--ink-faint);
      margin-bottom: 0.35rem;
    }

    .summary-title {
      font-family: var(--display);
      font-size: clamp(1.45rem, 4vw, 1.85rem);
      font-weight: 700;
      letter-spacing: -0.03em;
      color: var(--ok);
      display: flex;
      align-items: center;
      gap: 0.55rem;
    }

    [data-theme="ncco"] .summary-title {
      font-weight: 400;
      letter-spacing: 0.01em;
      text-transform: uppercase;
    }

    .summary-icon {
      width: 1.35em;
      height: 1.35em;
      flex-shrink: 0;
    }

    .summary-meta {
      color: var(--ink-muted);
      font-size: 0.9rem;
      margin-top: 0.55rem;
      max-width: 42ch;
    }

    .summary-aside {
      text-align: right;
      color: var(--ink-muted);
      font-size: 0.8rem;
      line-height: 1.45;
    }

    .summary-aside strong {
      display: block;
      color: var(--ink);
      font-size: 0.95rem;
      font-weight: 650;
      margin-bottom: 0.15rem;
    }

    .section-head {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 0.75rem;
      margin: 0 0.15rem 0.85rem;
      animation: rise 0.55s ease 0.14s both;
    }

    .section-head h2 {
      font-family: var(--display);
      font-size: 1rem;
      font-weight: 650;
      letter-spacing: -0.01em;
    }

    [data-theme="ncco"] .section-head h2 {
      font-weight: 400;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    .section-head span {
      color: var(--ink-faint);
      font-size: 0.8rem;
      font-weight: 500;
    }

    .services {
      display: flex;
      flex-direction: column;
      gap: 0.85rem;
    }

    .service {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 1.15rem 1.2rem 1.2rem;
      animation: rise 0.55s ease both;
    }

    .service:nth-child(1) { animation-delay: 0.18s; }
    .service:nth-child(2) { animation-delay: 0.26s; }

    .service-top {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 0.75rem 1rem;
      align-items: start;
      margin-bottom: 1rem;
    }

    .service-name {
      font-family: var(--display);
      font-size: 1.05rem;
      font-weight: 650;
      letter-spacing: -0.02em;
    }

    [data-theme="ncco"] .service-name {
      font-weight: 400;
      letter-spacing: 0.02em;
      text-transform: uppercase;
    }

    .service-region {
      color: var(--ink-muted);
      font-size: 0.82rem;
      font-weight: 500;
      margin-top: 0.15rem;
    }

    .service-url {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      margin-top: 0.35rem;
      font-size: 0.82rem;
      font-weight: 500;
      color: var(--ink-muted);
      min-width: 0;
    }

    .service-url a {
      color: var(--brand);
      text-decoration: none;
      font-weight: 600;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      max-width: min(100%, 28rem);
    }

    .service-url a:hover {
      text-decoration: underline;
    }

    .service-url .ext-link {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 1.4rem;
      height: 1.4rem;
      border-radius: 6px;
      color: var(--brand);
      border: 1px solid var(--border);
      background: var(--surface);
      flex-shrink: 0;
    }

    .service-url .ext-link:hover {
      background: var(--brand-soft);
    }

    .service-url .ext-link svg {
      width: 12px;
      height: 12px;
    }

    .service-meta-row {
      display: flex;
      flex-wrap: wrap;
      gap: 0.35rem 0.85rem;
      margin-top: 0.2rem;
    }

    .status-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      padding: 0.35rem 0.7rem;
      border-radius: 999px;
      font-size: 0.78rem;
      font-weight: 650;
      letter-spacing: 0.01em;
      white-space: nowrap;
    }

    .status-badge .dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
    }

    .status-badge.ok {
      background: var(--ok-bg);
      color: var(--ok);
    }
    .status-badge.ok .dot { background: var(--ok); }

    .status-badge.warn {
      background: var(--warn-bg);
      color: var(--warn);
    }
    .status-badge.warn .dot { background: var(--warn-bar); }

    .status-badge.down {
      background: var(--down-bg);
      color: var(--down);
    }
    .status-badge.down .dot { background: var(--down); }

    .service-stats {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem 1.25rem;
      margin-bottom: 1rem;
      padding-bottom: 0.95rem;
      border-bottom: 1px solid var(--border);
      color: var(--ink-muted);
      font-size: 0.82rem;
    }

    .service-stats dt {
      display: inline;
      font-weight: 500;
    }

    .service-stats dd {
      display: inline;
      color: var(--ink);
      font-weight: 650;
      margin-left: 0.25rem;
    }

    .service-stats .stat {
      display: flex;
      align-items: baseline;
      gap: 0.3rem;
    }

    .timeline-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
      margin-bottom: 0.55rem;
    }

    .timeline-head h3 {
      font-size: 0.78rem;
      font-weight: 650;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--ink-faint);
    }

    .timeline-legend {
      display: flex;
      gap: 0.75rem;
      font-size: 0.72rem;
      color: var(--ink-muted);
      font-weight: 500;
    }

    .timeline-legend span {
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
    }

    .swatch {
      width: 9px;
      height: 9px;
      border-radius: 2px;
    }

    .swatch.ok { background: var(--ok-bar); }
    .swatch.warn { background: var(--warn-bar); }
    .swatch.down { background: var(--down-bar); }
    .swatch.none { background: #d5ddd8; }

    .timeline {
      display: grid;
      grid-template-columns: repeat(48, 1fr);
      gap: 2px;
      height: 28px;
      margin-bottom: 0.4rem;
    }

    html[data-show-charts] .timeline,
    html[data-show-charts] .timeline-axis {
      /* Indent to match response-chart plot (scale column + gap) */
      margin-left: calc(2.75rem + 0.35rem);
    }

    .block {
      border-radius: 3px;
      min-width: 0;
      transition: transform 0.15s ease, filter 0.15s ease;
    }

    .block:hover {
      transform: scaleY(1.18);
      filter: brightness(0.95);
    }

    .block.ok { background: var(--ok-bar); }
    .block.warn { background: var(--warn-bar); }
    .block.down { background: var(--down-bar); }
    .block.none { background: #d9e1dc; }

    .timeline-axis {
      display: flex;
      justify-content: space-between;
      color: var(--ink-faint);
      font-size: 0.7rem;
      font-weight: 500;
      font-variant-numeric: tabular-nums;
    }

    .response-charts {
      margin-top: 0.85rem;
      display: flex;
      flex-direction: column;
      gap: 0.85rem;
    }

    .response-chart {
      margin: 0;
    }

    .response-chart-head {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 0.75rem;
      margin-bottom: 0.4rem;
      flex-wrap: wrap;
    }

    .response-chart-head h3 {
      font-size: 0.78rem;
      font-weight: 650;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--ink-faint);
    }

    .response-chart-legend {
      display: flex;
      flex-wrap: wrap;
      gap: 0.65rem;
      font-size: 0.7rem;
      color: var(--ink-muted);
      font-weight: 500;
    }

    .response-chart-legend span {
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
    }

    .response-chart-legend i {
      display: inline-block;
      width: 14px;
      height: 2px;
      border-radius: 1px;
    }

    .response-chart-legend .lg-ok { background: var(--ok-bar); }
    .response-chart-legend .lg-warn { background: var(--warn-bar); }
    .response-chart-legend .lg-down { background: var(--down-bar); }
    .response-chart-legend .lg-threshold {
      background: transparent;
      border-top: 1.5px dashed var(--ink-faint);
      height: 0;
      width: 14px;
      opacity: 0.85;
    }

    .response-chart-frame {
      display: grid;
      grid-template-columns: 2.75rem 1fr;
      gap: 0.35rem;
      align-items: stretch;
    }

    .response-chart-scale {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      align-items: flex-end;
      font-size: 0.65rem;
      font-weight: 600;
      color: var(--ink-faint);
      font-variant-numeric: tabular-nums;
      padding: 0.15rem 0;
      line-height: 1;
    }

    .response-chart-plot {
      position: relative;
      height: 88px;
      border: 1px solid var(--border);
      border-radius: 8px;
      background: color-mix(in srgb, var(--bg-0) 55%, var(--surface));
      overflow: hidden;
    }

    .response-chart-plot svg {
      display: block;
      width: 100%;
      height: 100%;
    }

    .notice {
      margin-top: 0.9rem;
      padding: 0.7rem 0.85rem;
      border-radius: 10px;
      background: var(--warn-bg);
      color: var(--warn);
      font-size: 0.84rem;
      font-weight: 550;
      line-height: 1.45;
      display: flex;
      gap: 0.55rem;
      align-items: flex-start;
    }

    .notice svg {
      width: 16px;
      height: 16px;
      flex-shrink: 0;
      margin-top: 0.12rem;
    }

    .notice strong {
      font-weight: 700;
    }

    /* v2 — optional component health panel */
    .components {
      margin-top: 0.95rem;
      border-top: 1px solid var(--border);
      padding-top: 0.15rem;
    }

    .components > summary {
      list-style: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
      padding: 0.7rem 0.1rem;
      font-size: 0.82rem;
      font-weight: 650;
      color: var(--ink-muted);
      user-select: none;
    }

    .components > summary::-webkit-details-marker {
      display: none;
    }

    .components > summary .chev {
      width: 16px;
      height: 16px;
      color: var(--ink-faint);
      transition: transform 0.18s ease;
      flex-shrink: 0;
    }

    .components[open] > summary .chev {
      transform: rotate(180deg);
    }

    .components > summary .summary-left {
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
    }

    .components > summary .hint {
      font-weight: 500;
      color: var(--ink-faint);
      font-size: 0.75rem;
    }

    .components-body {
      padding: 0 0 0.35rem;
    }

    .point-meta {
      display: none;
      margin-bottom: 0.65rem;
      padding: 0.55rem 0.7rem;
      border-radius: 8px;
      background: var(--brand-soft);
      color: var(--ink-muted);
      font-size: 0.78rem;
      font-weight: 550;
      line-height: 1.4;
    }

    .point-meta.is-visible {
      display: block;
    }

    .point-meta strong {
      color: var(--ink);
      font-weight: 700;
    }

    .component-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 0.35rem;
    }

    .component-row {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 0.75rem;
      align-items: center;
      padding: 0.55rem 0.65rem;
      border-radius: 8px;
      background: color-mix(in srgb, var(--bg-0) 70%, var(--surface));
      border: 1px solid var(--border);
    }

    .component-row .comp-name {
      font-size: 0.84rem;
      font-weight: 650;
      color: var(--ink);
    }

    .component-row .comp-desc {
      font-size: 0.74rem;
      color: var(--ink-muted);
      font-weight: 500;
      margin-top: 0.1rem;
    }

    .component-row .comp-meta {
      font-size: 0.72rem;
      color: var(--ink-faint);
      font-weight: 500;
      text-align: right;
      font-variant-numeric: tabular-nums;
    }

    .timeline-hint {
      margin-top: 0.45rem;
      font-size: 0.72rem;
      color: var(--ink-faint);
      font-weight: 500;
    }

    .block.is-interactive {
      cursor: pointer;
    }

    .block.is-selected {
      outline: 2px solid var(--ink);
      outline-offset: 1px;
      z-index: 1;
      position: relative;
    }

    .block.ok.is-interactive:focus-visible,
    .block.warn.is-interactive:focus-visible,
    .block.down.is-interactive:focus-visible {
      outline: 2px solid var(--brand);
      outline-offset: 1px;
    }

    .site-footer {
      margin-top: 2.25rem;
      padding-top: 1.25rem;
      border-top: 1px solid var(--border);
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: 0.75rem;
      color: var(--ink-faint);
      font-size: 0.78rem;
      animation: rise 0.55s ease 0.32s both;
    }

    .site-footer a {
      color: var(--brand);
      text-decoration: none;
      font-weight: 600;
    }

    .site-footer a:hover {
      text-decoration: underline;
    }

    @keyframes rise {
      from {
        opacity: 0;
        transform: translateY(10px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes pulse {
      0%, 100% { box-shadow: 0 0 0 0 var(--live-glow); }
      50% { box-shadow: 0 0 0 6px transparent; }
    }

    @media (max-width: 640px) {
      .page {
        width: min(100% - 1.25rem, var(--max));
        padding: 1.25rem 0 2.5rem;
      }

      .mockup-bar {
        margin-bottom: 1.1rem;
      }

      .mockup-hint {
        width: 100%;
      }

      .site-header {
        margin-bottom: 1.35rem;
      }

      .brand-mark {
        width: 40px;
        height: 40px;
        border-radius: 10px;
      }

      .brand-logo {
        height: 28px;
      }

      .summary {
        padding: 1.2rem 1.1rem 1.15rem;
      }

      .summary-aside {
        text-align: left;
        width: 100%;
        padding-top: 0.35rem;
        border-top: 1px solid var(--border);
      }

      .service {
        padding: 1rem;
      }

      .service-top {
        grid-template-columns: 1fr;
      }

      .status-badge {
        justify-self: start;
      }

      .timeline {
        grid-template-columns: repeat(24, 1fr);
        height: 24px;
      }

      .timeline .block:nth-child(even) {
        display: none;
      }

      .timeline-legend .hide-sm {
        display: none;
      }

      .service-stats {
        gap: 0.55rem 1rem;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation: none !important;
        transition: none !important;
      }
    }

.summary.is-warn::before { background: var(--warn-bar); }
.summary.is-down::before { background: var(--down-bar); }
.summary.is-warn .summary-title { color: var(--warn); }
.summary.is-down .summary-title { color: var(--down); }

.summary.is-delayed::before { background: var(--ink-faint); }
.summary.is-delayed .summary-title { color: var(--ink-muted); }

.refresh-banner {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  color: var(--ink-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.refresh-banner strong {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
