/* STSManager status page.
 *
 * Each design is its own theme template (listviews, listviews_uptime, ...) chosen by the ACP
 * "Status page design" setting, so a themer can edit any of them per-theme. This stylesheet holds the
 * shared chrome plus the styles for each design. Colours come from Invision theme variables and lean
 * on subtle borders + soft shadows for a clean, premium look that adapts to any theme, light or dark. */

.ipsApp[data-pageapp="stsmanager"] #ipsLayout_sidebar {
    display: none;
}

.ipsApp[data-pageapp="stsmanager"] #ipsLayout_mainArea {
    display: block;
}

#statusPage__root {
    position: relative;
    --sts-surface: rgb(var(--theme-area_background_reset));
    --sts-border: rgba(var(--theme-text_color), 0.09);
    --sts-shadow: 0 1px 3px rgba(var(--theme-text_color), 0.05);
    --sts-shadow-hover: 0 8px 24px rgba(var(--theme-text_color), 0.09);
    --sts-text: rgb(var(--theme-link));
    --sts-muted: rgb(var(--theme-text_light));
}

/* ============================================================
 *  Shared chrome: header, legend, tabs
 * ============================================================ */
.statusPageHeader.ipsBox,
.statusPageHeader {
    padding: 1.75em 2em;
    border: 1px solid var(--sts-border);
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
    background: var(--sts-surface);
}

.statusPageHeader>header {
    display: flex;
    align-items: center;
    gap: 1em;
    flex-wrap: wrap;
}

.statusPageHeader__title {
    margin: 0;
    flex: 1;
    font-size: 1.7em;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--sts-text);
}

.statusTypes {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
}

.statusType__row {
    display: flex;
    align-items: center;
    gap: 0.4em;
    border-radius: 100px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 10px;
    line-height: 1;
    letter-spacing: 0.6px;
    padding: 0.65em 0.95em;
}

.statusPageControls {
    position: sticky;
    top: 0;
    z-index: 1450;
}

.status-page__controls {
    display: flex;
    gap: 0.5em;
    padding: 0.9em 2em;
    overflow-x: auto;
    background: var(--sts-surface);
    border: 1px solid var(--sts-border);
    border-top: 0;
    border-bottom: 0;
}

.status-page__controls::-webkit-scrollbar {
    height: 4px;
}

.status-page__controls::-webkit-scrollbar-thumb {
    background: rgba(var(--theme-text_color), 0.2);
    border-radius: 100px;
}

.ipsApp .status-tabButton {
    background: transparent;
    border: 1px solid var(--sts-border);
    padding: 0.6rem 1rem;
    border-radius: 100px;
    color: var(--sts-muted);
    font-weight: 600;
    font-size: 11px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.18s ease;
}

.status-tabButton:hover:not(.is-active) {
    color: var(--sts-text);
    border-color: rgba(var(--theme-text_color), 0.25);
}

.status-tabButton.is-active {
    background-color: rgb(var(--theme-primary_button));
    border-color: rgb(var(--theme-primary_button));
    color: rgb(var(--theme-primary_button_font));
}

.status-tabContent {
    display: none;
}

.status-tabContent.is-active {
    display: block;
}

.statusPageMain.ipsBox,
.statusPageMain {
    padding: 1.75em 2em 2em;
    background: var(--sts-surface);
    border: 1px solid var(--sts-border);
    border-radius: 0 0 14px 14px;
}

.statusGroup:not(:last-of-type) {
    margin-bottom: 2.5em;
}

.statusGroup__title {
    margin: 0 0 1em 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--sts-muted);
}

/* ---- Shared badge + status pill + button ---- */
.stsBadge {
    background: rgb(var(--theme-area_background));
    padding: 0.75em 1em;
    font-size: 15px;
    font-weight: 400;
    color: #fff;
    line-height: 1;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
}

.stsBadge:before {
    content: "";
    position: absolute;
    left: -1px;
    width: 3px;
    border-radius: 100px;
    height: 50%;
    /* --badge-c is set inline on custom-colour badges; otherwise falls back to the theme brand colour. */
    background: rgb(var(--badge-c, var(--theme-brand_primary)));
    box-shadow: 0 0 7px rgb(var(--badge-c, var(--theme-brand_primary)));
}

.stsBadge:after {
    content: "";
    position: absolute;
    left: 0;
    width: 6px;
    height: 100%;
    background: rgb(var(--badge-c, var(--theme-brand_primary)));
    -webkit-filter: blur(10px);
    filter: blur(10px);
}

.stsBadge--default {
    background: rgba(var(--theme-text_color), 0.06);
    color: var(--sts-muted);
}

.stsStatus {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.4px;
    padding: 0.7em 1em;
    border-radius: 100px;
    line-height: 1;
    white-space: nowrap;
}

.stsStatus--unknown {
    background: rgba(var(--theme-text_color), 0.06);
    color: var(--sts-muted);
}

.statusButton {
    font-size: 14px;
    background: rgb(var(--theme-primary_button));
    color: rgb(var(--theme-primary_button_font));
    padding: 1em 1.5em;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    border-radius: 5px;
    font-weight: 600;
    transition: 0.18s ease;
    white-space: nowrap;
}

.statusButton:hover {
    color: #fff;
    filter: brightness(1.06);
    box-shadow: 0 4px 12px rgba(var(--theme-primary_button), 0.35);
}

.ipsApp .statusButton[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================================
 *  DESIGN: cards (default) — clean, spacious, premium
 * ============================================================ */
.statusGroup__content {
    display: flex;
    flex-direction: column;
    gap: 0.75em;
    padding: 0;
    margin: 0;
}

.statusItem {
    background: var(--sts-surface);
    border: 1px solid var(--sts-border);
    border-radius: 12px;
    padding: 1.35em 1.6em;
    display: flex;
    flex-direction: column;
    gap: 1.15em;
    box-shadow: var(--sts-shadow);
    transition: 0.2s ease;
}

.statusItem:hover {
    transform: translateY(-2px);
}

.statusItem__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25em;
}

.statusItem__title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--sts-text);
}

.statusItem__desc {
    margin: 0.3em 0 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--sts-muted);
}

.statusItem__state {
    flex-shrink: 0;
}

.statusItem__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
    flex-wrap: wrap;
    padding-top: 1.1em;
    border-top: 1px solid var(--sts-border);
}

.statusItem__badges {
    display: flex;
    gap: 0.4em;
    flex-wrap: wrap;
}

.statusItem__aside {
    display: flex;
    align-items: center;
    gap: 1.4em;
    flex-wrap: wrap;
    margin-left: auto;
}

.statusItem__since {
    font-size: 11px;
    color: var(--sts-muted);
    display: flex;
    flex-direction: column;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-right: 1px solid var(--sts-border);
    padding-right: 2em;
}

.statusItem__since b {
    color: var(--sts-text);
    font-weight: 600;
}

/* ============================================================
 *  DESIGN: uptime — statuspage-style 90-day bars (no tabs)
 * ============================================================ */
.stsUptime {
    box-sizing: border-box;
    max-width: 100%;
    overflow-x: clip;
}

.stsUptime *,
.stsUptime *::before,
.stsUptime *::after {
    box-sizing: border-box;
}

/* ---- Header: title + health on the left, search on the right ---- */
.stsUptimeHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5em;
    flex-wrap: wrap;
    margin-bottom: 2.25em;
}

.stsUptimeHeader__title {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--sts-text);
}

.stsUptimeHeader__sub {
    display: inline-flex;
    align-items: center;
    gap: 0.55em;
    margin: 0.5em 0 0 0;
    font-size: 14px;
    font-weight: 600;
}

.stsUptimeHeader__sub.is-up {
    color: #2ea043;
}

.stsUptimeHeader__sub.is-down {
    color: #e5484d;
}

.stsUptimeHeader__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
    flex: 0 0 auto;
}

/* ---- Search ---- */
.stsUptime__search {
    position: relative;
    flex: 0 0 320px;
    max-width: 100%;
}

.stsUptime__search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sts-muted);
    font-size: 13px;
    z-index: 1;
    pointer-events: none;
}

/* Scoped + element-qualified so IPS's input[type="text"] theme rule can't win the cascade. */
.stsUptime input.stsUptime__searchInput {
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 0 16px 0 40px;
    border: 1px solid var(--sts-border);
    border-radius: 10px;
    background: var(--sts-surface);
    color: var(--sts-text);
    font-size: 14px;
    line-height: normal;
    box-shadow: var(--sts-shadow);
    transition: 0.18s ease;
}

.stsUptime input.stsUptime__searchInput::placeholder {
    color: var(--sts-muted);
    opacity: 1;
}

.stsUptime input.stsUptime__searchInput:focus {
    outline: none;
    border-color: rgba(var(--theme-primary_button), 0.55);
    box-shadow: 0 0 0 3px rgba(var(--theme-primary_button), 0.15);
}

/* ---- Group ---- */
.stsUptimeGroup {
    margin-bottom: 2.5em;
}

.stsUptimeGroup__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1em;
    gap: 1em;
    flex-wrap: wrap;
}

.stsUptimeGroup__title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--sts-text);
    text-decoration: none;
}

a.stsUptimeGroup__title:hover {
    color: rgb(var(--theme-primary_button));
    text-decoration: underline;
}

.stsUptimeGroup__state {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.stsUptimeGroup__state i {
    font-size: 8px;
}

.stsUptimeGroup__state--up {
    color: #2ea043;
}

.stsUptimeGroup__state--down {
    color: #e5484d;
}

/* ---- Card ---- */
.stsUptimeCard {
    width: 100%;
    max-width: 100%;
    background: var(--sts-surface);
    border: 1px solid var(--sts-border);
    border-radius: 12px;
    padding: 1.4em 1.6em;
    margin-bottom: 0.8em;
    box-shadow: var(--sts-shadow);
    transition: 0.2s ease;
}

.stsUptimeCard:hover {
    box-shadow: var(--sts-shadow-hover);
}

.stsUptimeCard__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
    margin-bottom: 1.15em;
}

.stsUptimeCard__name {
    font-size: 16px;
    font-weight: 700;
    color: var(--sts-text);
    text-decoration: none;
}

a.stsUptimeCard__name:hover {
    color: rgb(var(--theme-primary_button));
    text-decoration: underline;
}

.stsUptimeCard__status {
    /* --status-c is set inline per product, e.g. `--status-c: 57, 211, 83;` */
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    white-space: nowrap;
    color: rgb(var(--status-c));
}

.stsUptimeCard__status--unknown {
    color: var(--sts-muted);
}

.stsUptimeCard__bars {
    display: flex;
    gap: 2px;
    align-items: stretch;
    height: 34px;
    width: 100%;
    min-width: 0;
}

.stsBar {
    /* --status-c is set inline per day, e.g. `--status-c: 57, 211, 83;` */
    flex: 1 1 0;
    min-width: 0;
    border-radius: 2px;
    background: rgb(var(--status-c));
    transition: transform 0.12s ease;
    cursor: pointer;
}

.stsBar:hover {
    transform: scaleY(1.18);
}

.stsBar--empty {
    background: rgba(var(--theme-text_color), 0.07);
    cursor: default;
}

.stsBar--today {
    box-shadow:
        0 0 0 2px var(--sts-surface),
        0 0 0 3px rgba(var(--theme-text_color), 0.45);
}

.stsUptimeCard__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.85em;
    font-size: 12px;
    color: var(--sts-muted);
}

.stsUptimeCard__pct {
    font-weight: 600;
    color: var(--sts-text);
}

/* ---- No search results ---- */
.stsUptime__empty {
    padding: 2em;
    text-align: center;
    color: var(--sts-muted);
    border: 1px dashed var(--sts-border);
    border-radius: 12px;
    font-size: 14px;
}

/* ---- Interactive bar tooltip (appended to <body>) ---- */
.stsBarTip {
    position: absolute;
    z-index: 9999;
    min-width: 140px;
    padding: 10px 12px;
    background: #0d1117;
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    font-size: 12px;
    line-height: 1.4;
    pointer-events: none;
}

.stsBarTip[hidden] {
    display: none;
}

.stsBarTip__date {
    font-weight: 700;
    margin-bottom: 4px;
}

.stsBarTip__row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.stsBarTip__row--empty {
    color: #9aa4b2;
    font-weight: 500;
}

.stsBarTip__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex: 0 0 auto;
}

.stsBarTip__len {
    color: #9aa4b2;
    margin-top: 2px;
}

.stsBarTip::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #0d1117;
}

/* ============================================================
 *  DESIGN: grid — status tiles dashboard (no tabs, no bars)
 * ============================================================ */
.stsGrid__page {
    box-sizing: border-box;
    max-width: 100%;
}

.stsGrid__page *,
.stsGrid__page *::before,
.stsGrid__page *::after {
    box-sizing: border-box;
}

.stsGridHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5em;
    flex-wrap: wrap;
    margin-bottom: 2.25em;
}

.stsGridHeader__intro {
    display: flex;
    flex-direction: column;
    gap: 0.9em;
}

.stsGridHeader__title {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--sts-text);
}

.stsGridLegend {
    display: flex;
    gap: 1.1em;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

/* Search (mirrors design 2; scoped so IPS's input[type="text"] can't win) */
.stsGridSearch {
    position: relative;
    flex: 0 0 320px;
    max-width: 100%;
}

.stsGridSearch i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sts-muted);
    font-size: 13px;
    z-index: 1;
    pointer-events: none;
}

.stsGrid__page input.stsGridSearch__input,
.stsDash__page input.stsGridSearch__input,
.statusCards__page input.stsGridSearch__input {
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 0 16px 0 40px;
    border: 1px solid var(--sts-border);
    border-radius: 10px;
    background: var(--sts-surface);
    color: var(--sts-text);
    font-size: 14px;
    line-height: normal;
    box-shadow: var(--sts-shadow);
    transition: 0.18s ease;
}

.stsGrid__page input.stsGridSearch__input::placeholder,
.stsDash__page input.stsGridSearch__input::placeholder,
.statusCards__page input.stsGridSearch__input::placeholder {
    color: var(--sts-muted);
    opacity: 1;
}

.stsGrid__page input.stsGridSearch__input:focus,
.stsDash__page input.stsGridSearch__input:focus,
.statusCards__page input.stsGridSearch__input:focus {
    outline: none;
    border-color: rgba(var(--theme-primary_button), 0.55);
    box-shadow: 0 0 0 3px rgba(var(--theme-primary_button), 0.15);
}

.stsGrid__empty {
    padding: 2em;
    text-align: center;
    color: var(--sts-muted);
    border: 1px dashed var(--sts-border);
    border-radius: 12px;
    font-size: 14px;
}

.stsGridLegend__item {
    /* --status-c set inline per status */
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--sts-muted);
}

.stsGridLegend__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgb(var(--status-c));
}

.stsGridLegend__item i {
    color: rgb(var(--status-c));
    font-size: 12px;
}

/* Cards design (Design 1) reuses the grid header/search; give its page the same box model. */
.statusCards__page {
    box-sizing: border-box;
    max-width: 100%;
}

.statusCards__page *,
.statusCards__page *::before,
.statusCards__page *::after {
    box-sizing: border-box;
}

.statusButton--disabled {
    background: rgba(var(--theme-text_color), 0.08);
    color: var(--sts-muted);
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
}

.stsGridGroup {
    margin-bottom: 2.25em;
}

.stsGridGroup__title {
    display: inline-block;
    margin: 0 0 1em 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--sts-text);
    text-decoration: none;
}

a.stsGridGroup__title:hover {
    color: rgb(var(--theme-primary_button));
    text-decoration: underline;
}

.stsGrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2em;
}

@media screen and (max-width: 1100px) {
    .stsGrid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 820px) {
    .stsGrid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 520px) {
    .stsGrid {
        grid-template-columns: 1fr;
    }
}

.stsTile {
    /* --status-c set inline per product; falls back to a neutral grey for unknown. */
    --status-c: 148, 155, 164;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--sts-border);
    border-radius: 14px;
    background: var(--sts-surface);
    box-shadow: var(--sts-shadow);
    overflow: hidden;
    transition: 0.2s ease;
}

.stsTile:hover {
    transform: translateY(-3px);
    box-shadow: var(--sts-shadow-hover);
    border-color: rgba(var(--status-c), 0.4);
}

/* ---- Media (product image, or a status-tinted fallback with the initial) ---- */
.stsTile__media {
    position: relative;
    display: block;
    min-height: 140px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-decoration: none;
}

.stsTile--noimg .stsTile__media {
    background-color: rgba(var(--status-c), 0.1);
    background-image:
        radial-gradient(circle at 28% 26%,
            rgba(var(--status-c), 0.38),
            transparent 58%),
        linear-gradient(135deg,
            rgba(var(--status-c), 0.22),
            rgba(var(--status-c), 0.04));
}

.stsTile__initial {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    font-weight: 800;
    color: rgb(var(--status-c));
    opacity: 0.55;
}

/* ---- Body ---- */
.stsTile__body {
    display: flex;
    flex-direction: column;
    gap: 0.75em;
    padding: 1.1em 1.15em 1.15em;
}

.stsTile__name {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--sts-text);
    text-decoration: none;
}

a.stsTile__name:hover {
    color: rgb(var(--theme-primary_button));
    text-decoration: underline;
}

.stsTile__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75em;
}

.stsTile__status {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.5em 0.8em;
    border-radius: 100px;
    background: rgba(var(--status-c), 0.12);
    color: rgb(var(--status-c));
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stsTile__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    flex: 0 0 auto;
}

.stsTile--unknown .stsTile__status {
    color: var(--sts-muted);
    background: rgba(var(--theme-text_color), 0.07);
}

.stsTile__pct {
    font-size: 12px;
    font-weight: 700;
    color: var(--sts-muted);
    white-space: nowrap;
}

.stsTile__buyRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75em;
}

.stsTile__price {
    font-size: 15px;
    font-weight: 800;
    color: var(--sts-text);
}

.stsTile__buy {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    margin-left: auto;
    padding: 0.6em 1em;
    border-radius: 8px;
    background: rgb(var(--theme-primary_button));
    color: rgb(var(--theme-primary_button_font));
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: 0.15s ease;
}

.stsTile__buy:hover {
    filter: brightness(1.06);
    box-shadow: 0 4px 12px rgba(var(--theme-primary_button), 0.3);
}

.stsTile__buy--disabled {
    background: rgba(var(--theme-text_color), 0.08);
    color: var(--sts-muted);
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
}

/* ============================================================
 *  DESIGN: timeline — reverse-chronological activity feed
 * ============================================================ */
.stsFeed__page {
    box-sizing: border-box;
    max-width: 100%;
}

.stsFeed__page *,
.stsFeed__page *::before,
.stsFeed__page *::after {
    box-sizing: border-box;
}

.stsFeed {
    list-style: none;
    margin: 0;
    padding: 0;
}

.stsFeedItem {
    /* --status-c set inline per change */
    position: relative;
    display: flex;
    gap: 1.1em;
    padding-bottom: 1.4em;
}

/* Connecting line down the marker column */
.stsFeedItem::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 12px;
    bottom: -6px;
    width: 2px;
    background: var(--sts-border);
}

.stsFeedItem:last-child::before {
    display: none;
}

.stsFeedItem__marker {
    flex: 0 0 16px;
    display: flex;
    justify-content: center;
}

.stsFeedItem__dot {
    position: relative;
    z-index: 1;
    width: 16px;
    height: 16px;
    margin-top: 8px;
    border-radius: 50%;
    background: rgb(var(--status-c));
    border: 3px solid var(--sts-surface);
    box-shadow: 0 0 0 1px rgba(var(--status-c), 0.45);
}

.stsFeedItem__card {
    flex: 1 1 auto;
    min-width: 0;
    background: var(--sts-surface);
    border: 1px solid var(--sts-border);
    border-radius: 14px;
    padding: 1.1em 1.3em;
    box-shadow: var(--sts-shadow);
    transition: 0.2s ease;
}

.stsFeedItem__card:hover {
    box-shadow: var(--sts-shadow-hover);
    border-color: rgba(var(--status-c), 0.4);
}

.stsFeedItem__head {
    display: flex;
    align-items: center;
    gap: 1em;
}

.stsFeedItem__thumb {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-color: rgba(var(--status-c), 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    color: rgb(var(--status-c));
}

.stsFeedItem__headMain {
    flex: 1 1 auto;
    min-width: 0;
}

.stsFeedItem__topline {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1em;
}

.stsFeedItem__product {
    font-size: 16px;
    font-weight: 700;
    color: var(--sts-text);
    text-decoration: none;
}

a.stsFeedItem__product:hover {
    color: rgb(var(--theme-primary_button));
    text-decoration: underline;
}

.stsFeedItem__time {
    flex: 0 0 auto;
    font-size: 12px;
    color: var(--sts-muted);
    white-space: nowrap;
}

.stsFeedItem__transition {
    display: flex;
    align-items: center;
    gap: 0.5em;
    flex-wrap: wrap;
    margin-top: 0.5em;
}

.stsFeedItem__from {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: rgb(var(--from-c));
    opacity: 0.7;
}

.stsFeedItem__arrow {
    font-size: 10px;
    color: var(--sts-muted);
}

.stsFeedItem__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.4em 0.7em;
    border-radius: 100px;
    background: rgba(var(--status-c), 0.12);
    color: rgb(var(--status-c));
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.stsFeedItem__desc {
    margin: 0.9em 0 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--sts-muted);
}

.stsFeedItem__meta {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    margin-top: 0.85em;
    font-size: 12px;
    font-weight: 600;
    color: var(--sts-muted);
}

.stsFeed__empty {
    padding: 2em;
    text-align: center;
    color: var(--sts-muted);
    border: 1px dashed var(--sts-border);
    border-radius: 12px;
    font-size: 14px;
}

/* ============================================================
 *  DESIGN: dashboard — hero + metric stats + sleek list
 * ============================================================ */
.stsDash__page {
    box-sizing: border-box;
    max-width: 100%;
}

.stsDash__page *,
.stsDash__page *::before,
.stsDash__page *::after {
    box-sizing: border-box;
}

/* Hero banner */
.stsDashHero {
    display: flex;
    align-items: center;
    gap: 0.9em;
    padding: 1.4em 1.6em;
    margin-bottom: 1.25em;
    border: 1px solid var(--sts-border);
    border-radius: 16px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.stsDashHero.is-up {
    background: rgba(46, 160, 67, 0.1);
    color: #2ea043;
    border-color: rgba(46, 160, 67, 0.25);
}

.stsDashHero.is-down {
    background: rgba(229, 72, 77, 0.1);
    color: #e5484d;
    border-color: rgba(229, 72, 77, 0.25);
}

.stsDashHero__pulse {
    position: relative;
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
}

.stsDashHero__dot {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: currentColor;
}

.stsDashHero__pulse::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.4;
    animation: stsPulse 1.8s ease-out infinite;
}

@keyframes stsPulse {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }

    100% {
        transform: scale(2.6);
        opacity: 0;
    }
}

/* Metric stat cards */
.stsDashMetrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1em;
    margin-bottom: 1.5em;
}

.stsDashStat {
    display: flex;
    flex-direction: column;
    gap: 0.3em;
    padding: 1.25em 1.4em;
    background: var(--sts-surface);
    border: 1px solid var(--sts-border);
    border-radius: 14px;
    box-shadow: var(--sts-shadow);
}

.stsDashStat__num {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--sts-text);
}

.stsDashStat__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--sts-muted);
}

.stsDashStat--up .stsDashStat__num {
    color: #2ea043;
}

.stsDashStat--down .stsDashStat__num {
    color: #e5484d;
}

/* Sleek list */
.stsDashList {
    background: var(--sts-surface);
    border: 1px solid var(--sts-border);
    border-radius: 14px;
    box-shadow: var(--sts-shadow);
    overflow: hidden;
}

.stsDashRow {
    --status-c: 148, 155, 164;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 1.25em;
    padding: 1em 1.4em;
    border-bottom: 1px solid var(--sts-border);
    transition: 0.15s ease;
}

.stsDashRow:last-child {
    border-bottom: 0;
}

.stsDashRow:hover {
    background: rgba(var(--theme-text_color), 0.02);
}

.stsDashRow__lead {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15em;
}

.stsDashRow__name {
    font-size: 15px;
    font-weight: 700;
    color: rgb(var(--theme-link));
    text-decoration: none;
}

a.stsDashRow__name:hover {
    color: rgb(var(--theme-primary_button));
    text-decoration: underline;
}

.stsDashRow__group {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--sts-muted);
}

.stsDashRow__status {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgb(var(--status-c));
    white-space: nowrap;
}

.stsDashRow__uptime {
    min-width: 52px;
    font-size: 13px;
    font-weight: 700;
    color: var(--sts-muted);
    text-align: right;
    white-space: nowrap;
}

.stsDashRow__buy {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.55em 1em;
    border-radius: 8px;
    background: rgb(var(--theme-primary_button));
    color: rgb(var(--theme-primary_button_font));
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: 0.15s ease;
}

.stsDashRow__buy:hover {
    filter: brightness(1.06);
}

.stsDashRow__buy--disabled {
    background: rgba(var(--theme-text_color), 0.08);
    color: var(--sts-muted);
    cursor: not-allowed;
    pointer-events: none;
}

@media screen and (max-width: 820px) {
    .stsDashMetrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .stsDashRow {
        grid-template-columns: 1fr auto;
        row-gap: 0.5em;
    }

    .stsDashRow__uptime {
        text-align: left;
    }
}

/* ============================================================
 *  DESIGN: legacy — the original tabbed layout: header with the
 *  status legend, one tab per group, one row per product
 *  (name | undetected since | status | purchase). Uses the shared
 *  chrome above (.statusPageHeader, .status-tabButton, ...) so
 *  themes that customised the original keep working.
 * ============================================================ */
.statusLegacy__group:not(:last-of-type) {
    margin-bottom: 2.5em;
}

.statusLegacy__list {
    border: 1px solid var(--sts-border);
    border-radius: 12px;
    background: var(--sts-surface);
    box-shadow: var(--sts-shadow);
    overflow: hidden;
}

.statusLegacy__row {
    display: flex;
    align-items: center;
    gap: 1.5em;
    padding: 1.3em 1.6em;
    transition: background 0.18s ease;
}

.statusLegacy__row + .statusLegacy__row {
    border-top: 1px solid var(--sts-border);
}

.statusLegacy__row:hover {
    background: rgba(var(--theme-text_color), 0.025);
}

.statusLegacy__lead {
    flex: 1 1 auto;
    min-width: 0;
}

.statusLegacy__name {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--sts-text);
}

.statusLegacy__desc {
    margin: 0.3em 0 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--sts-muted);
}

.statusLegacy__badges {
    display: flex;
    gap: 0.4em;
    flex-wrap: wrap;
    margin-top: 0.6em;
}

.statusLegacy__since {
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    gap: 0.3em;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: var(--sts-muted);
}

.statusLegacy__since b {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--sts-text);
}

.statusLegacy__state,
.statusLegacy__action {
    flex: 0 0 auto;
    padding-left: 1.5em;
    border-left: 1px solid var(--sts-border);
}

.statusLegacy__state {
    flex-basis: 200px;
}

/* ============================================================
 *  Unified status pill — identical across all 4 designs.
 *  Matches the store productStatus look: fully-rounded, tinted
 *  background, side-only borders, colour from --status-c, plus a
 *  faint oversized rotated "ghost" icon tucked into the right edge.
 * ============================================================ */
.stsStatus,
.stsUptimeCard__status,
.stsTile__status,
.stsDashRow__status,
.stsGridLegend__item {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.6em 0.9em;
    border-radius: 5px;
    line-height: 1;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    color: rgb(var(--status-c));
    background: rgba(var(--status-c), 0.18);
    border-left: 1px solid rgb(var(--status-c));
    border-right: 1px solid rgb(var(--status-c));
}

.sts-status__ghost {
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%) rotate(-20deg);
    font-size: 34px;
    opacity: 0.15;
    pointer-events: none;
}

.stsStatus--unknown,
.stsUptimeCard__status--unknown,
.stsTile__status--unknown,
.stsDashRow__status--unknown {
    color: var(--sts-muted);
    background: rgba(var(--theme-text_color), 0.07);
    border-left-color: var(--sts-border);
    border-right-color: var(--sts-border);
}

/* ---- Responsive ---- */
@media screen and (max-width: 880px) {
    .statusPageHeader>header {
        justify-content: center;
        text-align: center;
    }

    .statusTypes {
        justify-content: center;
    }

    .statusItem__top,
    .statusItem__bottom {
        flex-direction: column;
        align-items: stretch;
        gap: 0.9em;
    }

    .statusItem__aside {
        margin-left: 0;
        justify-content: space-between;
        width: 100%;
    }

    .statusButton {
        justify-content: center;
        flex: 1;
    }

    .stsUptimeHeader {
        align-items: flex-start;
    }

    .stsUptime__search {
        flex: 1 1 100%;
    }

    .stsUptimeCard__bars {
        height: 28px;
    }

    .statusLegacy__row {
        flex-wrap: wrap;
        gap: 0.9em;
    }

    .statusLegacy__lead {
        flex: 1 1 100%;
    }

    .statusLegacy__since,
    .statusLegacy__state,
    .statusLegacy__action {
        flex: 1 1 auto;
        padding-left: 0;
        border-left: 0;
    }

    .statusLegacy__action {
        flex: 1 1 100%;
    }

    .statusLegacy__action .statusButton {
        width: 100%;
        justify-content: center;
    }
}
