/* ==========================================================================
   Arkose status page — BOX 1 of 3: "Custom CSS"
   manage.statuspage.io → Customize page and emails → Customize HTML & CSS
   Box 2: custom-header.html → "Custom header HTML"
   Box 3: custom-footer.html → "Custom footer HTML"
   Target: status-page-incidents-uptime_4_1.html (Design System V.1)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');

:root{
  --ark-bg-surface:#ffffff;
  --ark-bg-subtle:#f7f7f8;
  --ark-fg-default:#18181b;
  --ark-fg-muted:#747477;
  --ark-fg-link:#005a9e;
  --ark-border-subtle:#dfdfe2;
  --ark-icon-default:#18181b;
  --ark-action-primary-bg:#18181b;
  --ark-action-primary-fg:#ffffff;
  --ark-action-secondary-bg:#ffffff;
  --ark-action-secondary-fg:#18181b;
  --ark-action-secondary-border:#939396;

  --ark-status-success-fg:#005327;
  --ark-status-success-bg:#edfaf0;
  --ark-status-success-bg-solid:#006b34;
  --ark-status-warning-fg:#6b4400;
  --ark-status-warning-bg:#fbf5e9;
  --ark-status-warning-bg-solid:#bd7a00;
  --ark-status-critical-fg:#840009;
  --ark-status-critical-bg:#fff3f1;
  --ark-status-critical-bg-solid:#a9000f;
  --ark-status-info-fg:#00457b;
  --ark-status-info-bg:#eff7ff;
  --ark-status-info-bg-solid:#005a9e;
  --ark-status-neutral-fg:#56565a;
  --ark-status-neutral-bg:#f0f0f1;
  --ark-status-neutral-bg-solid:#747477;
  --ark-viz-cat-08:#2aa763;

  --ark-radius-control:4px;
  --ark-radius-card:8px;
  --ark-shadow-card:0 1px 2px rgba(16,16,20,.05), 0 1px 3px rgba(16,16,20,.04);
}

/* ══ 1. PAGE SHELL — grey canvas, 1200px white column, Outfit 14/1.5 ══════ */
body{
  font-family:'Outfit',system-ui,-apple-system,sans-serif !important;
  background:#e9eaec !important;
  color:var(--ark-fg-default) !important;
  font-size:14px; line-height:1.5; -webkit-font-smoothing:antialiased;
}
body *{ font-family:inherit; }
.layout-content{
  max-width:1200px; margin:0 auto !important; background:var(--ark-bg-surface); min-height:100vh;
}
.layout-content .container{ max-width:none !important; width:auto !important; padding:48px !important; }
a{ color:var(--ark-fg-link); }
.tnum, .ark-tnum{ font-variant-numeric:tabular-nums; }

/* ══ 2. HEADER — 80px, logo left, [@ArkoseLabs on X] [Subscribe] right ═══ */
.ark-hdr{
  max-width:1200px; margin:0 auto; box-sizing:border-box;
  height:80px; padding:0 48px; display:flex; align-items:center; justify-content:space-between; gap:12px;
  background:var(--ark-bg-surface); border-bottom:1px solid var(--ark-border-subtle);
}
.ark-hdr .ark-logo{display:flex; align-items:center; gap:10px; text-decoration:none !important; color:var(--ark-fg-default) !important;}
.ark-hdr .ark-logo .mark{width:28px; height:28px; border-radius:6px; background:#c91d1f; display:block;}
.ark-hdr .ark-logo .word{font-size:17px; font-weight:700; letter-spacing:.06em;}
.ark-hdr .ark-logo img{max-height:28px !important; width:auto !important; display:block; margin:0 !important;}
.ark-hdr .ark-logo *{margin:0 !important; padding:0 !important; float:none !important;}
.ark-hdr-actions,
.ark-hdr-actions.updates-dropdown-container{display:flex !important; align-items:center; gap:12px; float:none !important; position:relative; margin:0 !important; padding:0 !important; width:auto !important;}
.ark-hdr-actions .updates-dropdown-container{position:relative; display:block !important; width:auto !important; margin:0 !important; padding:0 !important; float:none !important; text-align:left;}
#show-updates-dropdown{margin:0 !important; min-width:0 !important;}
/* subscribe pop-up: open under the button, aligned right, readable text
   (carried over from production's "Fix subscribe text") */
.ark-hdr .updates-dropdown{right:0; left:auto; z-index:100; text-align:left;}
.updates-dropdown-container .updates-dropdown .updates-dropdown-section{color:#000;}
/* native uptime tooltip (carried over from production) */
#uptime-tooltip{border:none !important; background:transparent !important;}
.ark-hdr-actions .ark-btn{height:38px !important; padding:0 20px !important; font-size:13.5px !important; line-height:1 !important;}
.ark-hdr-moved{display:none !important;}   /* emptied native masthead */
.masthead-container{ background:var(--ark-bg-surface) !important; padding:0 !important; }
.masthead{
  height:80px; padding:0 48px !important; margin:0 !important; max-width:none !important;
  display:flex !important; align-items:center; gap:12px;
  background:var(--ark-bg-surface) !important;
  border-bottom:1px solid var(--ark-border-subtle);
}
.masthead .logo-container{ margin-right:auto; }
.masthead .logo-container img{ max-height:28px; width:auto; }
.masthead .page-name{ font-size:17px; font-weight:700; letter-spacing:.06em; color:var(--ark-fg-default); }

/* native Subscribe button → primary */
.show-updates-dropdown,
.updates-dropdown-container .flat-button{
  background:var(--ark-action-primary-bg) !important;
  border:1px solid var(--ark-action-primary-bg) !important;
  color:var(--ark-action-primary-fg) !important;
  display:inline-flex !important; align-items:center; height:38px !important; line-height:1 !important; padding:0 20px !important;
  border-radius:var(--ark-radius-control) !important;
  font-size:13.5px !important; font-weight:500 !important; text-transform:none !important; letter-spacing:0 !important;
  box-shadow:none !important;
}

/* buttons injected by the footer script */
.ark-btn{display:inline-flex; align-items:center; gap:7px; height:38px; padding:0 20px; border-radius:var(--ark-radius-control); font-size:13.5px; font-weight:500; cursor:pointer; white-space:nowrap; text-decoration:none !important;}
.ark-btn-sec{background:var(--ark-action-secondary-bg) !important; color:var(--ark-action-secondary-fg) !important; border:1px solid var(--ark-action-secondary-border) !important; border-radius:var(--ark-radius-control) !important;}
.ark-hdr .ark-logo a, .ark-hdr .ark-logo img{border:0 !important; outline:0; box-shadow:none !important;}
.ark-btn-sec:hover{background:var(--ark-bg-subtle);}
.ark-btn-sm{height:34px; font-size:12.5px; font-weight:600;}
.ark-btn[hidden]{display:none;}

/* ══ 3. "ALL SYSTEMS OPERATIONAL" — card header with dot, not a banner ═══ */
.page-status{
  background:var(--ark-bg-surface) !important;
  border:1px solid var(--ark-border-subtle) !important;
  border-bottom:1px solid var(--ark-border-subtle) !important;
  border-radius:var(--ark-radius-card) var(--ark-radius-card) 0 0 !important;
  box-shadow:none !important; margin:0 !important; padding:25px 25px 23px !important;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.page-status .status{
  color:var(--ark-fg-default) !important;
  font-size:17px !important; font-weight:600 !important; line-height:23px !important;
  display:flex; align-items:center; gap:10px; text-align:left;
}
.page-status .status::before{content:""; width:10px; height:10px; border-radius:50%; flex:none; background:var(--ark-viz-cat-08);}
.page-status.status-minor .status::before,
.page-status.status-major .status::before{background:var(--ark-status-warning-bg-solid);}
.page-status.status-critical .status::before{background:var(--ark-status-critical-bg-solid);}
.page-status.status-maintenance .status::before{background:var(--ark-status-info-bg-solid);}
.page-status .last-updated-stamp{font-size:12px; color:var(--ark-fg-muted);}

/* active incidents/maintenance banners above the card */
.unresolved-incident{border-radius:var(--ark-radius-card) !important; overflow:hidden; margin-bottom:24px !important;}

/* ══ 4. COMPONENTS — body of the same card ═══════════════════════════════ */
.components-section{
  margin:0 0 32px !important;
  border:1px solid var(--ark-border-subtle); border-top:0;
  border-radius:0 0 var(--ark-radius-card) var(--ark-radius-card);
  box-shadow:var(--ark-shadow-card);
  padding:25px !important; background:var(--ark-bg-surface);
}
.components-container{border:0 !important; border-radius:0 !important; margin:0 !important;}
.component-container{border:0 !important; padding:0 !important; background:none !important;}
.components-container .component-container + .component-container{
  border-top:1px solid var(--ark-border-subtle) !important; margin-top:25px !important; padding-top:25px !important;
}
.components-section .component-container{display:block !important; height:auto !important; overflow:visible !important; float:none !important;}
.component-inner-container{display:flex !important; flex-wrap:wrap; align-items:center; gap:12px; padding:0 !important; width:100% !important; float:none !important;}
.component-inner-container .name{flex:1 1 auto; min-width:0; font-size:14px; font-weight:500; color:var(--ark-fg-default) !important;}
.component-inner-container .component-status{margin-left:auto; order:2;}
.component-inner-container .name{order:1;}
/* uptime bars always on their own full-width line under the name/badge row */
.component-inner-container .uptime-90-days-wrapper,
.component-container .uptime-90-days-wrapper,
.ark-bars{
  order:3; flex:0 0 100% !important; width:100% !important; max-width:none !important;
  float:none !important; clear:both; margin:12px 0 0 !important;
}
.uptime-90-days-wrapper svg, .ark-svg{width:100% !important; height:24px !important; display:block;}
.ark-bars .legend{display:flex !important; justify-content:space-between; margin-top:8px !important; font-size:12px !important; color:var(--ark-fg-muted) !important;}
.ark-bars .legend *{color:var(--ark-fg-muted) !important; font-size:12px !important; float:none !important;}
.ark-bars .legend .spacer{display:none !important;}
.component-container.is-group .name{font-weight:600;}
.component-container.is-group .child-components-container .name{font-weight:500;}
.child-components-container{padding:0 0 0 20px !important; margin-top:20px; border:0 !important; background:none !important;}
.child-components-container .component-inner-container{padding:0 !important; border:0 !important;}
.child-components-container .component-inner-container + .component-inner-container{margin-top:20px !important;}
.ark-count{color:var(--ark-fg-muted); font-weight:500; margin-left:4px;}
/* group expand icon: chevron instead of Statuspage's plus/minus square */
.ark-chev-host{display:inline-flex !important; align-items:center; justify-content:center; width:16px; height:16px; margin-right:8px; font-size:0 !important; line-height:0 !important; color:var(--ark-icon-default) !important; cursor:pointer; vertical-align:middle;}
.ark-chev-host::before, .ark-chev-host::after{content:none !important; display:none !important;}
.ark-chev{width:16px; height:16px; display:block; transition:transform .15s; transform:rotate(-90deg);}
.ark-open .ark-chev{transform:none;}
.tooltip-base, .component-container .icon-indicator{display:none !important;}   /* "?" bubbles */

/* status text → badge: label + colour, never colour alone */
.component-status{
  display:inline-flex !important; align-items:center; gap:5px; height:18px; padding:0 7px;
  border-radius:var(--ark-radius-control); font-size:11px !important; font-weight:600; line-height:1; white-space:nowrap;
}
.component-status::before{content:"\25CF"; font-size:9px;}
.status-green  .component-status{background:var(--ark-status-success-bg);  color:var(--ark-status-success-fg)  !important;}
.status-yellow .component-status,
.status-orange .component-status{background:var(--ark-status-warning-bg);  color:var(--ark-status-warning-fg)  !important;}
.status-yellow .component-status::before,
.status-orange .component-status::before,
.status-red .component-status::before{content:"\25B2";}
.status-red    .component-status{background:var(--ark-status-critical-bg); color:var(--ark-status-critical-fg) !important;}
.status-blue   .component-status{background:var(--ark-status-info-bg);     color:var(--ark-status-info-fg)     !important;}
.status-blue   .component-status::before{content:"\25A0";}

/* "Uptime over the past 90 days" + [View historical uptime] */
.ark-lead{display:flex !important; visibility:visible !important; align-items:center; justify-content:space-between; gap:16px; margin-bottom:24px; flex-wrap:wrap;}
.ark-lead .cap{font-size:13px; color:var(--ark-fg-muted);}

/* 90-day bars (heights are set by the footer script) */
.uptime-90-days-wrapper{margin-top:12px !important;}
.uptime-90-days-wrapper svg{display:block; height:24px;}
.uptime-90-days-wrapper svg rect:hover{filter:brightness(1.25);}
.uptime-90-days-wrapper .legend{display:flex; justify-content:space-between; margin-top:8px !important; font-size:12px !important; color:var(--ark-fg-muted) !important;}
.uptime-90-days-wrapper .legend .spacer{display:none;}
.uptime-90-days-wrapper .legend *{color:var(--ark-fg-muted) !important; font-size:12px !important;}

.ark-lead{flex:0 0 100%; order:-1; width:100%;}
.ark-legend{flex:0 0 100%; order:4; width:100%;}
.ark-legend{display:flex !important; visibility:visible !important; gap:16px; flex-wrap:wrap; align-items:center; font-size:11.5px; color:var(--ark-fg-muted); margin-top:14px;}
.ark-legend .it{display:inline-flex; align-items:center; gap:6px;}
.ark-legend .sw{width:9px; border-radius:1.5px; display:inline-block;}
.ark-legend .note{margin-left:auto;}

/* ══ 5. BADGES / CARD PRIMITIVES used by the footer script ══════════════ */
.ark-badge{display:inline-flex; align-items:center; gap:5px; height:18px; padding:0 7px; border-radius:var(--ark-radius-control); font-size:11px; font-weight:600; line-height:1; white-space:nowrap;}
.ark-badge .g{font-size:9px; line-height:1;}
.ark-b-ok  {background:var(--ark-status-success-bg);  color:var(--ark-status-success-fg);}
.ark-b-warn{background:var(--ark-status-warning-bg);  color:var(--ark-status-warning-fg);}
.ark-b-crit{background:var(--ark-status-critical-bg); color:var(--ark-status-critical-fg);}
.ark-b-info{background:var(--ark-status-info-bg);     color:var(--ark-status-info-fg);}
.ark-b-neut{background:var(--ark-status-neutral-bg);  color:var(--ark-status-neutral-fg);}

.ark-card{background:var(--ark-bg-surface); border:1px solid var(--ark-border-subtle); border-radius:var(--ark-radius-card); box-shadow:var(--ark-shadow-card); margin-bottom:32px; text-align:left;}
.ark-card-pad{padding:25px;}
.ark-card-hd{display:flex; align-items:center; justify-content:space-between; gap:16px; padding:25px 25px 23px; border-bottom:1px solid var(--ark-border-subtle); flex-wrap:wrap;}
.ark-card-hd h2{margin:0; font-size:17px; font-weight:600; line-height:23px; color:var(--ark-fg-default);}
.ark-card-hd .sub{font-size:12px; color:var(--ark-fg-muted); margin-top:3px;}
.ark-updated{font-size:12px; color:var(--ark-fg-muted);}
.ark-divider{height:1px; background:var(--ark-border-subtle); margin:25px 0;}
.ark-qual{color:var(--ark-fg-muted); font-weight:400; font-style:italic;}

/* ══ 6. PAST INCIDENTS (rebuilt by the footer script) ═══════════════════ */
/* native list is replaced once the script has data; until then, tidy it */
.incidents-list .status-day.no-incidents{display:none !important;}
.incidents-list.ark-done{border:0 !important; padding:0 !important; margin:0 !important;}
.history-footer-link{display:none !important;}

.ark-hide{display:none !important;}
.ark-filters{display:flex; gap:8px; align-items:center; flex-wrap:wrap;}
.ark-linkbtn{background:none; border:0; padding:4px 2px; font-size:12.5px; font-weight:500; color:var(--ark-fg-link); cursor:pointer; text-decoration:none;}
.ark-linkbtn:hover{text-decoration:underline;}
.ark-linkbtn[hidden]{display:none;}
.ark-sel{height:32px; padding:0 30px 0 11px; border:1px solid var(--ark-border-subtle); border-radius:var(--ark-radius-control); background:var(--ark-bg-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%2318181b' stroke-width='1.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center; font-size:12.5px; color:var(--ark-fg-default); cursor:pointer; -webkit-appearance:none !important; appearance:none !important; background-color:var(--ark-bg-surface) !important; width:auto !important; min-width:170px; margin:0 !important;}

.ark-rollup{background:var(--ark-bg-subtle); border:1px solid var(--ark-border-subtle); border-radius:var(--ark-radius-card); padding:16px 18px;}
.ark-rollup .lbl{font-size:11px; font-weight:600; letter-spacing:.05em; text-transform:uppercase; color:var(--ark-fg-muted);}
.ark-rollup .figs{display:flex; gap:28px; flex-wrap:wrap; margin-top:12px;}
.ark-rollup .fig .v{font-size:19px; font-weight:700; line-height:1.2;}
.ark-rollup .fig .k{font-size:11.5px; color:var(--ark-fg-muted); margin-top:1px;}
.ark-strip{display:flex; align-items:flex-end; gap:2px; height:16px; margin-top:12px;}
.ark-strip .d{flex:1 1 0; min-width:2px; border-radius:1.5px; height:100%; background:var(--ark-status-success-bg-solid);}
.ark-strip .d.warn{background:var(--ark-status-warning-bg-solid); height:70%;}
.ark-strip .d.crit{background:var(--ark-status-critical-bg-solid); height:45%;}
.ark-strip .d.info{background:var(--ark-status-info-bg-solid); height:70%;}
.ark-upt-ft{display:flex; justify-content:space-between; margin-top:8px; font-size:12px; color:var(--ark-fg-muted);}

.ark-mgroup{border-top:1px solid var(--ark-border-subtle);}
.ark-mgroup:first-child{border-top:0;}
.ark-mhead{display:flex; align-items:center; gap:9px; width:100%; background:none; border:0; padding:15px 10px 15px 0; cursor:pointer; text-align:left;}
.ark-mhead:hover{background:var(--ark-bg-subtle);}
.ark-mhead .chev{width:14px; height:14px; color:var(--ark-icon-default); transition:transform .15s; flex:none;}
.ark-mhead[aria-expanded="false"] .chev{transform:rotate(-90deg);}
.ark-mhead .mname{font-size:11px; font-weight:700; letter-spacing:.07em; text-transform:uppercase; color:var(--ark-fg-default);}
.ark-mhead .mcount{font-size:12px; color:var(--ark-fg-muted); margin-left:auto;}
.ark-mhead .mdots{display:inline-flex; gap:3px; margin-left:10px;}
.ark-mhead .mdots i{width:7px; height:7px; border-radius:2px; display:block;}
.ark-mbody[hidden]{display:none;}

.ark-inc{display:block; text-align:left; border-top:1px solid var(--ark-border-subtle); padding:16px 30px 16px 0; position:relative; color:inherit !important; text-decoration:none !important;}
.ark-inc{border:0 !important; border-top:1px solid var(--ark-border-subtle) !important; border-radius:0 !important;}
.ark-mbody .ark-inc:first-child{border-top:0 !important;}
.ark-linkbtn, .ark-back, .ark-lead a{border:0 !important;}
.ark-lead .ark-btn-sec, .ark-listft .ark-btn-sec{border:1px solid var(--ark-action-secondary-border) !important;}
.ark-inc:hover{background:var(--ark-bg-subtle);}
.ark-inc-top{display:flex; align-items:center; gap:10px; flex-wrap:wrap;}
.ark-inc-title{font-size:14.5px; font-weight:600; color:var(--ark-fg-default); flex:1; min-width:220px;}
.ark-inc-meta{display:flex; align-items:center; gap:8px; margin-top:7px; font-size:12.5px; color:var(--ark-fg-muted); flex-wrap:wrap;}
.ark-inc-meta .sep{color:var(--ark-border-subtle);}
.ark-inc-meta b{color:var(--ark-fg-default); font-weight:600;}
.ark-inc-comps{display:flex; gap:6px; flex-wrap:wrap; margin-top:9px;}
.ark-chip{display:inline-flex; align-items:center; height:20px; padding:0 8px; border-radius:999px; background:var(--ark-bg-subtle); border:1px solid var(--ark-border-subtle); font-size:11.5px; color:var(--ark-fg-muted);}
.ark-inc .go{position:absolute; right:10px; top:50%; transform:translateY(-50%); color:var(--ark-fg-muted); font-size:15px;}
.ark-inc:hover .go{color:var(--ark-fg-default);}
@keyframes ark-landed{from{background:var(--ark-status-info-bg);} to{background:transparent;}}
.ark-inc.new{animation:ark-landed 1.6s ease-out 1;}

.ark-empty{border-top:1px solid var(--ark-border-subtle); padding:40px 0 30px; text-align:center;}
.ark-empty .big{font-size:15px; font-weight:600;}
.ark-empty .sm{font-size:12.5px; color:var(--ark-fg-muted); margin-top:4px;}
.ark-empty .ok{width:34px; height:34px; margin:0 auto 12px; border-radius:50%; background:var(--ark-status-success-bg); color:var(--ark-status-success-fg); display:flex; align-items:center; justify-content:center; font-size:16px; font-weight:700;}

.ark-listft{display:flex; align-items:center; justify-content:space-between; gap:12px; border-top:1px solid var(--ark-border-subtle); padding-top:18px; flex-wrap:wrap;}
.ark-listft[hidden]{display:none;}
.ark-listft .cnt{font-size:12px; color:var(--ark-fg-muted);}
.ark-exhausted{display:inline-flex; align-items:center; gap:7px; font-size:12.5px; color:var(--ark-fg-muted); font-style:italic;}
.ark-exhausted::before{content:""; width:16px; height:1px; background:var(--ark-border-subtle);}
.ark-exhausted[hidden]{display:none;}

/* ══ 7. INCIDENT DETAIL (/incidents/<id>, rebuilt by the footer script) ═ */
.ark-incident-done .incident-name,
.ark-incident-done .incident-updates-container,
.ark-incident-done .components-affected,
.ark-incident-done .subheader,
.ark-incident-done .back-to-current{display:none !important;}
.ark-back{display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:500; color:var(--ark-fg-link) !important; margin-bottom:22px; text-decoration:none;}
.ark-back:hover{text-decoration:underline;}
.ark-d-title{font-size:24px; font-weight:600; line-height:1.3; margin:10px 0 0; color:var(--ark-fg-default);}
.ark-facts{display:flex; gap:40px; flex-wrap:wrap; margin-top:22px;}
.ark-fact .k{font-size:11px; font-weight:600; letter-spacing:.05em; text-transform:uppercase; color:var(--ark-fg-muted);}
.ark-fact .v{font-size:15px; font-weight:600; margin-top:3px;}
.ark-window{margin-top:6px;}
.ark-window .track{position:relative; height:30px; border-radius:var(--ark-radius-control); background:var(--ark-status-success-bg); overflow:hidden; border:1px solid var(--ark-border-subtle);}
.ark-window .seg{position:absolute; top:0; bottom:0; background:var(--ark-status-critical-bg-solid);}
.ark-window .seg.w{background:var(--ark-status-warning-bg-solid);}
.ark-window .seg.i{background:var(--ark-status-info-bg-solid);}
.ark-window .ticks{display:flex; justify-content:space-between; margin-top:6px; font-size:11px; color:var(--ark-fg-muted);}
.ark-ctable{width:100%; border-collapse:collapse; margin-top:6px;}
.ark-ctable th{text-align:left; font-size:11px; font-weight:600; letter-spacing:.05em; text-transform:uppercase; color:var(--ark-fg-muted); padding:0 12px 9px 0; border-bottom:1px solid var(--ark-border-subtle);}
.ark-ctable td{padding:13px 12px 13px 0; border-bottom:1px solid var(--ark-border-subtle); font-size:13.5px; vertical-align:middle;}
.ark-ctable tr:last-child td{border-bottom:0;}
.ark-transition{display:inline-flex; align-items:center; gap:7px; font-size:12.5px; color:var(--ark-fg-muted); flex-wrap:wrap;}
.ark-tl-item{display:grid; grid-template-columns:18px 1fr; gap:16px; position:relative; padding-bottom:26px;}
.ark-tl-item:last-child{padding-bottom:0;}
.ark-tl-rail{position:relative; display:flex; justify-content:center;}
.ark-tl-rail::before{content:""; position:absolute; top:16px; bottom:-26px; width:1px; background:var(--ark-border-subtle);}
.ark-tl-item:last-child .ark-tl-rail::before{display:none;}
.ark-tl-node{width:11px; height:11px; border-radius:50%; background:var(--ark-bg-surface); border:2px solid var(--ark-action-secondary-border); margin-top:4px; z-index:1;}
.ark-tl-node.done{background:var(--ark-status-success-bg-solid); border-color:var(--ark-status-success-bg-solid);}
.ark-tl-hd{display:flex; align-items:baseline; gap:10px; flex-wrap:wrap;}
.ark-tl-status{font-size:13.5px; font-weight:600;}
.ark-tl-time{font-size:12.5px; color:var(--ark-fg-muted);}
.ark-tl-off{font-size:11.5px; font-weight:600; color:var(--ark-fg-muted); background:var(--ark-bg-subtle); border-radius:var(--ark-radius-control); padding:1px 6px;}
.ark-tl-body{font-size:13.5px; color:#3f3f46; margin-top:6px; max-width:76ch;}

/* ══ 8. HISTORICAL UPTIME (/uptime, rebuilt by the footer script) ═══ */
.ark-u-head{display:flex; align-items:flex-end; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:24px;}
.ark-u-title{margin:0; font-size:26px; font-weight:600; line-height:1.3; color:var(--ark-fg-default);}
.ark-u-sub{font-size:13px; color:var(--ark-fg-muted); margin-top:5px;}
.ark-u-ctl{display:flex; gap:10px; align-items:center;}
.ark-seg{display:inline-flex; border:1px solid var(--ark-border-subtle); border-radius:var(--ark-radius-control); overflow:hidden;}
.ark-seg button{background:var(--ark-bg-surface) !important; border:0 !important; border-right:1px solid var(--ark-border-subtle) !important; border-radius:0 !important; padding:7px 15px; margin:0; font-family:inherit; font-size:12.5px; font-weight:500; color:var(--ark-fg-muted) !important; cursor:pointer; box-shadow:none !important;}
.ark-seg button:last-child{border-right:0 !important;}
.ark-seg button[aria-pressed="true"]{background:var(--ark-action-primary-bg) !important; color:var(--ark-action-primary-fg) !important; font-weight:600;}
.ark-seg button:disabled{opacity:.4; cursor:not-allowed;}
.ark-u-ctl .ark-btn{font-family:inherit; margin:0;}
.ark-sum{display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--ark-border-subtle); border:1px solid var(--ark-border-subtle); border-radius:var(--ark-radius-card); overflow:hidden; margin-bottom:32px;}
.ark-sum .cell{background:var(--ark-bg-surface); padding:20px 22px;}
.ark-sum .k{font-size:11px; font-weight:600; letter-spacing:.05em; text-transform:uppercase; color:var(--ark-fg-muted);}
.ark-sum .v{font-size:30px; font-weight:700; line-height:1.15; margin-top:6px; color:var(--ark-fg-default);}
.ark-sum .s{font-size:12px; color:var(--ark-fg-muted); margin-top:4px;}
@media (max-width:860px){ .ark-sum{grid-template-columns:repeat(2,1fr);} }
.ark-scroll{overflow-x:auto;}
.ark-utable{width:100%; border-collapse:collapse; margin:0;}
.ark-utable th{text-align:left; font-size:11px; font-weight:600; letter-spacing:.05em; text-transform:uppercase; color:var(--ark-fg-muted); padding:0 14px 10px 0; border-bottom:1px solid var(--ark-border-subtle); white-space:nowrap; background:none;}
.ark-utable th.num, .ark-utable td.num{text-align:right; padding-right:14px;}
.ark-utable td{padding:14px 14px 14px 0; border-bottom:1px solid var(--ark-border-subtle); font-size:13.5px; color:var(--ark-fg-default); background:none;}
.ark-utable td.dim{color:var(--ark-fg-muted);}
.ark-utable tbody tr:hover td{background:var(--ark-bg-subtle);}
.ark-utable tr:last-child td{border-bottom:0;}
.ark-utable .comp{font-weight:500;}
.ark-utable .pct{font-weight:600;}
.ark-spark{display:flex; align-items:flex-end; gap:2px; height:22px; width:190px;}
.ark-spark i{flex:1; background:var(--ark-status-success-bg-solid); border-radius:1px; display:block;}
.ark-spark i.w{background:var(--ark-status-warning-bg-solid);}
.ark-spark i.c{background:var(--ark-status-critical-bg-solid);}
.ark-spark i.n{background:var(--ark-status-neutral-bg-solid); opacity:.3;}
.ark-mtx{width:100%; border-collapse:separate; border-spacing:3px; margin-top:4px;}
.ark-mtx th{font-size:11px; font-weight:600; color:var(--ark-fg-muted); padding:0 0 6px; text-align:center; background:none;}
.ark-mtx th.row{text-align:left; font-weight:500; color:var(--ark-fg-default); font-size:13px; padding-right:14px; white-space:nowrap;}
.ark-mtx td{text-align:center; font-size:11.5px; font-weight:600; padding:7px 4px; border-radius:var(--ark-radius-control); color:var(--ark-status-success-fg); background:var(--ark-status-success-bg);}
.ark-mtx td.w{color:var(--ark-status-warning-fg); background:var(--ark-status-warning-bg);}
.ark-mtx td.c{color:var(--ark-status-critical-fg); background:var(--ark-status-critical-bg);}
.ark-mtx td.n{color:var(--ark-fg-muted); background:var(--ark-bg-subtle);}

/* ══ 9. SITE FOOTER (markup in custom-footer.html) ════════════════════ */
.ark-footer{max-width:1200px; margin:0 auto 60px; background:var(--ark-bg-surface); border-top:1px solid var(--ark-border-subtle);}
.ark-footer-inner{padding:32px 48px;}
.ark-footer-logo{display:inline-block; border:0 !important;}
.ark-footer-logo img{max-height:24px !important; width:auto !important; display:block; margin:0 !important;}
.ark-footer-bottom{display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-top:20px; padding-top:20px; border-top:1px solid var(--ark-border-subtle);}
.ark-copyright{margin:0 !important; font-size:12px; color:var(--ark-fg-muted);}
.ark-footer-menu{display:flex; gap:20px; list-style:none; margin:0 !important; padding:0 !important;}
.ark-footer-menu li{margin:0; padding:0;}
.ark-footer-menu a{font-size:12px; color:var(--ark-fg-link) !important; border:0 !important; text-decoration:none;}
.ark-footer-menu a:hover{text-decoration:underline;}

/* ══ 10. STATUSPAGE FOOTER ══════════════════════════════════════════════════════════ */
.page-footer{font-size:12px; color:var(--ark-fg-muted) !important; border-top:1px solid var(--ark-border-subtle); padding-top:24px !important;}
.page-footer a{color:var(--ark-fg-link) !important;}