body{
    font-family:Inter,sans-serif;
    background:#f5f7fb !important;
    color:#111;
}

.layout-content.status-index > .container{
    display:grid;
    grid-template-columns: 1fr 300px;
    grid-template-areas:
      "main  side"
      "footer footer";
    gap:0 28px;
    max-width:1040px;
    margin:0 auto;
    align-items:start;
}
.layout-content.status-index > .container > .status-main-wrap{ grid-area:main; min-width:0; align-self:start; }
.layout-content.status-index > .container > .status-side-wrap{ grid-area:side; min-width:0; align-self:start; }
.layout-content.status-index > .container > .page-footer{ grid-area:footer; }
.layout-content.status-index .status-main-wrap > .unresolved-incidents{ margin-top:16px; }
.layout-content.status-index .unresolved-incidents::before{
    content:"Active Incidents"; display:block;
    font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:.04em;
    color:#8a8c7a; margin:0 0 12px 2px;
}
.layout-content.status-index .components-section{ margin-bottom:0 !important; }
.components-container > .component-container:nth-child(2){ margin-bottom:0 !important; }
.layout-content.status-index .scheduled-maintenances-container{ min-width:0; align-self:start; }
.layout-content.status-index .incidents-list      { min-width:0; align-self:start; }
.layout-content.status-index .status-side-wrap .incidents-list   { margin-top:26px; }
.layout-content.status-index .incidents-list{ visibility:hidden; }
.layout-content.status-index .incidents-list.it-ready{ visibility:visible; }
.layout-content.status-index > .container > .page-footer         { grid-area:footer; }

.layout-content.status-index > .container > .page-status{ display:none !important; }

.layout-content.status-index .incidents-list{ font-size:13px; }
.layout-content.status-index .incidents-list h2#past-incidents{
    font-size:13px; font-weight:700; text-transform:uppercase;
    letter-spacing:.04em; color:#8a8c7a; margin:0 0 8px;
}
.layout-content.status-index .incidents-list .updates-container{ display:none; }
.layout-content.status-index .incidents-list .status-day.no-incidents{ display:none !important; }
.layout-content.status-index .incidents-list .status-day:not(:has(.incident-title)){ display:none !important; }
.layout-content.status-index .incidents-list .status-day{
    margin:0; padding:8px 0; border-bottom:1px solid rgba(0,0,0,.06);
}
.layout-content.status-index .incidents-list .status-day:last-child{ border-bottom:none; }
.layout-content.status-index .incidents-list .status-day .date{
    font-size:11px; font-weight:600; color:#b0b2a2; margin:0 0 3px;
    padding:0 !important; border:none !important; background:transparent !important;
    border-radius:0 !important; box-shadow:none !important;
}
.layout-content.status-index .incidents-list .incident-title{
    font-size:13px; line-height:1.35; margin:0 0 2px; padding:0;
}
.layout-content.status-index .incidents-list .incident-container{ margin:0; padding:0; }
.layout-content.status-index .incidents-list .status-day.no-incidents{ display:none; }

.layout-content.status-index .scheduled-maintenances-container{ font-size:13px; }
.layout-content.status-index .scheduled-maintenances-container *{
    overflow-wrap:anywhere; word-break:break-word; min-width:0; max-width:100%;
}
.layout-content.status-index .scheduled-maintenances-container h2,
.layout-content.status-index .scheduled-maintenances-container .status-day-title,
.layout-content.status-index .scheduled-maintenances-container .page-status{
    font-size:13px !important; font-weight:700; text-transform:uppercase;
    letter-spacing:.04em; color:#8a8c7a; margin:0 0 10px; line-height:1.3;
}
.layout-content.status-index .scheduled-maintenances-container .incident-title,
.layout-content.status-index .scheduled-maintenances-container .actual-title{
    font-size:13px !important; line-height:1.35; font-weight:600;
}
.layout-content.status-index .scheduled-maintenances-container .message,
.layout-content.status-index .scheduled-maintenances-container .whitespace-pre-wrap,
.layout-content.status-index .scheduled-maintenances-container p{
    font-size:12px !important; line-height:1.5; margin:4px 0 0;
}
.layout-content.status-index .scheduled-maintenances-container .secondary,
.layout-content.status-index .scheduled-maintenances-container small,
.layout-content.status-index .scheduled-maintenances-container .date{
    font-size:11px !important; color:#b0b2a2;
}

.layout-content.status-index .incidents-list a,
.layout-content.status-index .incidents-list .incident-title{
    pointer-events:none;
    cursor:default;
    text-decoration:none;
}

@media (max-width:768px){
  .layout-content.status-index > .container{ display:block; }
}

/* ---- Uptime bar + System component breakdown ---- */
.components-container > .component-container{ display:none !important; }
.components-container > .component-container:nth-child(1),
.components-container > .component-container:nth-child(2){ display:block !important; }
.component-statuses-legend{ display:none !important; }

/* both blocks styled as clean white cards */
.components-container > .component-container:nth-child(1),
.components-container > .component-container:nth-child(2){
    background:#fff !important;
    border:none !important;
    border-radius:14px !important;
    box-shadow:0 1px 3px rgba(0,0,0,.04) !important;
    backdrop-filter:none !important;
    animation:none !important;
    transform:none !important;
    margin:0 0 12px !important;
    overflow:hidden;
}
.components-container > .component-container:nth-child(1):hover,
.components-container > .component-container:nth-child(2):hover{ transform:none !important; box-shadow:0 1px 3px rgba(0,0,0,.04) !important; }

/* hide the collapsible group header row + its toggle; always show the children */
.components-container > .component-container:nth-child(2) > .component-inner-container[data-js-hook="component-group-opener"]{ display:none !important; }
.components-container > .component-container:nth-child(2) .group-parent-indicator{ display:none !important; }
.components-container > .component-container:nth-child(2) .child-components-container{ display:block !important; }

/* each System component as a row */
.components-container > .component-container:nth-child(2) .child-components-container .component-inner-container{
    display:flex !important; align-items:center;
    padding:13px 20px !important; margin:0 !important;
    border-top:1px solid rgba(0,0,0,.06);
}
.components-container > .component-container:nth-child(2) .child-components-container .component-inner-container:first-child{ border-top:none; }
.components-container > .component-container:nth-child(2) .name{ font-size:14px; font-weight:500; display:flex; align-items:center; color:#202020; }
.components-container > .component-container:nth-child(2) .component-status{ margin-left:auto; font-size:13px; font-weight:500; color:#8a8c7a; }

/* left status dot (coloured by data-component-status); hide native right icon */
.components-container > .component-container:nth-child(2) .status-icon-button{ display:none !important; }
.components-container > .component-container:nth-child(2) .name::before{
    content:"\2713"; flex:0 0 auto; width:16px; height:16px; border-radius:50%;
    margin-right:10px; display:inline-flex; align-items:center; justify-content:center;
    color:#fff; font-size:10px; font-weight:700; background:#1BC97A;
}
.components-container > .component-container:nth-child(2) [data-component-status="degraded_performance"] .name::before{ content:"!"; background:#EDBC0E; }
.components-container > .component-container:nth-child(2) [data-component-status="partial_outage"] .name::before{ content:"!"; background:#EDBC0E; }
.components-container > .component-container:nth-child(2) [data-component-status="major_outage"] .name::before{ content:"\2715"; background:#E13232; }
.components-container > .component-container:nth-child(2) [data-component-status="under_maintenance"] .name::before{ content:"\2013"; background:#808080; }

.incident{ border-radius:18px; padding:20px; background:white; margin-bottom:15px; }

button:not(.it-toggle){
    border-radius:14px!important; padding:12px 24px!important;
    background:#111!important; color:#fff!important; font-weight:700; border:none!important;
}


.component-inner-container .legend-item-component .uptime-day:nth-child(-n+60){ display:none !important; }

@keyframes fade{
    from{ opacity:0; transform:translateY(15px); }
    to{ opacity:1; transform:translateY(0); }
}

.status-full-history .history-nav{ margin-bottom:28px; }

.status-full-history .month > h4,
.status-full-history .month .month-title{
    font-size:22px; font-weight:700; color:#202020; margin:26px 0 14px;
}

.status-full-history .month .incident-container{
    background:#fff;
    border:none !important;
    border-radius:12px;
    padding:16px 20px;
    margin-bottom:14px;
    box-shadow:none !important;
    list-style:none;
    transition:box-shadow .2s, transform .2s;
}
.status-full-history .month .incident-container,
.status-full-history .month .incident-container .impact-critical,
.status-full-history .month .incident-container .impact-major,
.status-full-history .month .incident-container .impact-minor,
.status-full-history .month .incident-container .impact-maintenance,
.status-full-history .month .incident-container .impact-none,
.status-full-history .month .incident-container .updates-container,
.status-full-history .month .incident-container .update-row{
    border:none !important;
    border-bottom:none !important;
    border-top:none !important;
    border-left:none !important;
    box-shadow:none !important;
}
.status-full-history .month .incident-container:hover{
    box-shadow:none !important;
    transform:none;
}

.status-full-history .month .incident-container .impact-critical,
.status-full-history .month .incident-container .impact-major,
.status-full-history .month .incident-container .impact-minor,
.status-full-history .month .incident-container .impact-maintenance,
.status-full-history .month .incident-container .impact-none{
    font-size:16px; font-weight:700; text-decoration:none;
    display:inline-flex; align-items:center; gap:10px; color:#202020 !important;
}
.status-full-history .incident-container .it-title-icon{
    flex:0 0 auto;
    width:22px; height:22px; border-radius:50%;
    display:inline-flex; align-items:center; justify-content:center;
    color:#fff; font-size:12px; font-weight:700; font-style:normal;
    background:#808080;
}

.status-full-history .month .incident-container .message,
.status-full-history .month .incident-container p,
.status-full-history .month .incident-container .whitespace{
    margin:8px 0 0 32px; font-size:14px; line-height:1.55; color:#5A5A4F;
}
.status-full-history .month .incident-container .secondary,
.status-full-history .month .incident-container small{
    color:#C0C2A9; font-size:13px;
}

.status-full-history .month .incident-container{ position:relative; }
.status-full-history .month .incident-container > .impact-critical,
.status-full-history .month .incident-container > .impact-major,
.status-full-history .month .incident-container > .impact-minor,
.status-full-history .month .incident-container > .impact-maintenance,
.status-full-history .month .incident-container > .impact-none{ padding-right:40px; }

.status-full-history .incident-container .it-toggle{
    position:absolute; top:16px; right:18px;
    display:flex; align-items:center; justify-content:center;
    width:28px; height:28px; padding:0 !important; margin:0 !important;
    background:transparent !important; border:none !important; border-radius:8px !important;
    color:#8a8c7a; cursor:pointer; box-shadow:none !important;
    transition:transform .2s ease, background .2s ease, color .2s ease;
}
.status-full-history .incident-container .it-toggle:hover{ background:rgba(0,0,0,.05) !important; color:#202020; }
.status-full-history .incident-container .it-toggle.it-open{ transform:rotate(180deg); }
.status-full-history .incident-container .it-holder{ margin-top:14px; }
.status-full-history .incident-container.it-open > .message,
.status-full-history .incident-container.it-open > .secondary{ display:none; }

.incident-timeline{ position:relative; margin-left:8px; }
.incident-timeline::before{
    content:""; position:absolute; left:10px; top:6px; bottom:10px; width:2px; background:#E5E3D8;
}
.incident-timeline .it-update{ position:relative; padding:0 0 18px 40px; }
.incident-timeline .it-update:last-child{ padding-bottom:0; }
.incident-timeline .it-icon{
    position:absolute; left:0; top:0; width:22px; height:22px; border-radius:50%;
    color:#fff; font-size:12px; font-weight:700; font-style:normal;
    display:flex; align-items:center; justify-content:center; z-index:1;
}
.incident-timeline .it-status{ font-size:15px; font-weight:700; color:#202020; margin-bottom:4px; }
.incident-timeline .it-status small{ color:#C0C2A9; font-weight:500; font-size:13px; margin-left:8px; }
.incident-timeline .it-body p{ margin:0; font-size:14px; line-height:1.6; color:#5A5A4F; }
.it-loading{ margin-left:40px; color:#8a8c7a; font-size:13px; }

.layout-content.status-index .unresolved-incidents .unresolved-incident{
    background:#fff !important;
    border:none !important;
    border-radius:12px !important;
    box-shadow:0 1px 3px rgba(0,0,0,.04) !important;
    padding:16px 20px !important;
    margin-bottom:12px;
}
.layout-content.status-index .unresolved-incidents .incident-title{
    display:flex; align-items:center; gap:10px;
    background:transparent !important;
    padding:0 !important;
}
.layout-content.status-index .unresolved-incidents .incident-title .actual-title{
    color:#202020 !important;
    font-size:14px !important;
    font-weight:500 !important;
    line-height:1.4;
}
.layout-content.status-index .unresolved-incidents .incident-title .subscribe{
    margin-left:auto;
    color:#002EFF !important;
    background:transparent !important;
    font-size:13px !important;
    font-weight:600 !important;
}
.layout-content.status-index .unresolved-incidents .updates{
    margin:10px 0 0 32px !important;
}
.layout-content.status-index .unresolved-incidents .update{
    font-size:14px !important;
    line-height:1.6 !important;
    color:#5A5A4F !important;
}
.layout-content.status-index .unresolved-incidents .update strong{
    color:#202020 !important;
    font-weight:700 !important;
}
.layout-content.status-index .unresolved-incidents .update small{
    color:#C0C2A9 !important;
    font-size:12.5px !important;
}
.layout-content.status-index .unresolved-incidents .updates,
.layout-content.status-index .unresolved-incidents .updates-container,
.layout-content.status-index .unresolved-incidents .update,
.layout-content.status-index .unresolved-incidents .incident-body,
.layout-content.status-index .unresolved-incidents .message{
    border:none !important;
    border-left:none !important;
    border-bottom:none !important;
    box-shadow:none !important;
    background:transparent !important;
}
.layout-content.status-index .unresolved-incidents .incident-title::before{
    content:""; flex:0 0 auto;
    width:22px; height:22px; border-radius:50%;
    display:inline-flex; align-items:center; justify-content:center;
    color:#fff; font-size:12px; font-weight:700;
}
.layout-content.status-index .unresolved-incidents .impact-critical .incident-title::before{ content:"\2715"; background:#E13232; }
.layout-content.status-index .unresolved-incidents .impact-major .incident-title::before{ content:"\2715"; background:#ED4521; }
.layout-content.status-index .unresolved-incidents .impact-minor .incident-title::before,
.layout-content.status-index .unresolved-incidents .degraded-performance .incident-title::before{ content:"!"; background:#EDBC0E; }
.layout-content.status-index .unresolved-incidents .impact-maintenance .incident-title::before{ content:"\2013"; background:#808080; }
.layout-content.status-index .unresolved-incidents .impact-none .incident-title::before{ content:"\2713"; background:#1BC97A; }

/* Scheduled maintenance: keep title + scheduled time, hide the description body.
   Title and time both live inside h3.incident-title; the description is a separate
   .whitespace-pre-wrap/.message after it, so hide those but re-show the title's span. */
.layout-content.status-index .scheduled-maintenances-container .whitespace-pre-wrap,
.layout-content.status-index .scheduled-maintenances-container .message,
.layout-content.status-index .scheduled-maintenances-container .markdown-display{
    display:none !important;
}
.layout-content.status-index .scheduled-maintenances-container .incident-title,
.layout-content.status-index .scheduled-maintenances-container .incident-title a,
.layout-content.status-index .scheduled-maintenances-container .incident-title .whitespace-pre-wrap{
    display:inline !important;
}
.layout-content.status-index .scheduled-maintenances-container .incident-title{ display:block !important; border:none !important; margin:0 0 4px; padding:0; }
.layout-content.status-index .scheduled-maintenances-container .incident-title small{ display:inline !important; }
.layout-content.status-index .scheduled-maintenances-container .update-timestamp,
.layout-content.status-index .scheduled-maintenances-container .updates,
.layout-content.status-index .scheduled-maintenances-container .updates-container,
.layout-content.status-index .scheduled-maintenances-container .update,
.layout-content.status-index .scheduled-maintenances-container .ago{ display:none !important; }

/* Scheduled maintenance: remove left indentation on the date/schedule line */
.layout-content.status-index .scheduled-maintenances-container small,
.layout-content.status-index .scheduled-maintenances-container .scheduled-for,
.layout-content.status-index .scheduled-maintenances-container .scheduled-until{
    margin-left:0 !important; padding-left:0 !important; float:none !important; display:block !important;
}

/* Main-page active incident: inline timeline dropdown (reuses .incident-timeline styling) */
.layout-content.status-index .unresolved-incident .incident-title{ position:relative; }
.layout-content.status-index .unresolved-incident .it-toggle{
    display:inline-flex; align-items:center; justify-content:center;
    width:26px; height:26px; flex:0 0 auto; margin:0 0 0 6px !important; padding:0 !important;
    background:transparent !important; border:none !important; box-shadow:none !important; border-radius:8px !important;
    color:#8a8c7a; cursor:pointer; transition:transform .2s ease, background .2s ease;
}
.layout-content.status-index .unresolved-incident .it-toggle:hover{ background:rgba(0,0,0,.05) !important; }
.layout-content.status-index .unresolved-incident .it-toggle.it-open{ transform:rotate(180deg); }
.layout-content.status-index .unresolved-incident .it-holder{ margin-top:12px; }
.layout-content.status-index .unresolved-incident .actual-title{ cursor:default; }

/* Subscribe / component-selection page */
.grouped-items-selector{ --checkbox-background-color:#002EFF; --checkbox-tick-color:#ffffff; }
.grouped-items-selector,
.grouped-items-selector .body,
.grouped-items-selector .grouped-items,
.grouped-items-selector .grouped-item,
.grouped-items-selector .grouped-item.active{ background:#ffffff !important; }
.grouped-items-selector .grouped-item{ border-color:rgba(0,0,0,.06) !important; }


/* Subscribe / component-selection page: widen and center the component list */
.layout-content.manage-subscriptions .grouped-items-selector{
    max-width:760px !important; width:100% !important;
    margin-left:auto !important; margin-right:auto !important;
}
@media (max-width:768px){
  .layout-content.manage-subscriptions .grouped-items-selector{ max-width:100% !important; }
}

/* ============================================================
   Incident detail page (body.incident / .status-incident)
   ============================================================ */
.layout-content.status-incident{
    max-width:1040px; margin:0 auto; padding:8px 32px 70px;
    font-family:Inter,-apple-system,"Segoe UI",Helvetica,Arial,sans-serif;
}
.layout-content.status-incident .page-title,
.layout-content.status-incident h1,
.layout-content.status-incident .incident-name{
    font-size:30px !important; font-weight:800 !important; letter-spacing:-.02em;
    color:#202020 !important; margin:24px 0 24px;
}
/* update timeline */
.layout-content.status-incident .updates-container,
.layout-content.status-incident .incident-updates-container{ position:relative; }
.layout-content.status-incident .update-row{
    position:relative; padding:0 0 22px 40px !important; margin:0 !important; border:none !important;
    display:block !important;
}
.layout-content.status-incident .update-row:last-child{ padding-bottom:0 !important; }
/* connector line + dot per update */
.layout-content.status-incident .update-row::before{
    content:""; position:absolute; left:10px; top:26px; bottom:-4px; width:2px; background:#e6e8ee;
}
.layout-content.status-incident .update-row:last-child::before{ display:none; }
.layout-content.status-incident .update-row::after{
    content:""; position:absolute; left:0; top:2px; width:22px; height:22px; border-radius:50%;
    background:#808080; z-index:1;
}
/* status word + body layout (kill the span3/span9 columns) */
.layout-content.status-incident .update-row .update-title{
    display:block !important; width:auto !important; float:none !important; margin:0 0 4px 0 !important;
    font-size:15px !important; font-weight:700 !important; color:#202020 !important;
}
.layout-content.status-incident .update-row .update-container{
    display:block !important; width:auto !important; float:none !important; margin:0 !important;
}
.layout-content.status-incident .update-body{ font-size:14px !important; line-height:1.6 !important; color:#5A5A4F !important; }
.layout-content.status-incident .update-timestamp{ font-size:12.5px !important; color:#C0C2A9 !important; margin-top:4px; }