.system-state-shell {
    --system-state-ink: #171940;
    --system-state-muted: #526171;
    --system-state-teal: #006d6f;
    --system-state-green: #08a88a;
    --system-state-border: rgba(0, 109, 111, .13);
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: min(720px, calc(100vh - 11rem));
    padding-bottom: 4rem;
    padding-top: 4rem;
}

.system-state-card {
    background:
        radial-gradient(circle at 12% 10%, rgba(8, 168, 138, .15), transparent 18rem),
        radial-gradient(circle at 90% 12%, rgba(0, 109, 111, .13), transparent 16rem),
        linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(246, 251, 251, .94));
    border: 1px solid var(--system-state-border);
    border-radius: 18px;
    box-shadow: 0 28px 80px rgba(23, 25, 64, .13);
    color: var(--system-state-ink);
    max-width: 760px;
    overflow: hidden;
    padding: clamp(1.4rem, 4vw, 2.5rem);
    position: relative;
    text-align: center;
    width: 100%;
}

.system-state-glow {
    border-radius: 999px;
    filter: blur(2px);
    opacity: .7;
    pointer-events: none;
    position: absolute;
}

.system-state-glow-primary {
    background: rgba(8, 168, 138, .16);
    height: 9rem;
    left: -4rem;
    top: -4rem;
    width: 9rem;
}

.system-state-glow-secondary {
    background: rgba(245, 166, 35, .12);
    bottom: -5rem;
    height: 11rem;
    right: -5rem;
    width: 11rem;
}

.system-state-logo-wrap {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(23, 25, 64, .08);
    border-radius: 14px;
    box-shadow: 0 14px 36px rgba(23, 25, 64, .09);
    display: inline-flex;
    justify-content: center;
    margin-bottom: 1.35rem;
    padding: .75rem 1rem;
    position: relative;
    z-index: 1;
}

.system-state-logo {
    max-height: 48px;
    max-width: 230px;
}

.system-state-icon {
    align-items: center;
    background: rgba(0, 109, 111, .09);
    border: 1px solid rgba(0, 109, 111, .18);
    border-radius: 50%;
    color: var(--system-state-teal);
    display: inline-flex;
    height: 58px;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
    width: 58px;
    z-index: 1;
}

.system-state-icon i {
    font-size: 1.25rem;
    line-height: 1;
}

.system-state-copy {
    position: relative;
    z-index: 1;
}

.system-state-eyebrow {
    color: var(--system-state-teal);
    display: inline-flex;
    font-size: .74rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.system-state-code {
    color: rgba(23, 25, 64, .12);
    font-size: clamp(4.25rem, 12vw, 7.4rem);
    font-weight: 900;
    letter-spacing: -.06em;
    line-height: .82;
    margin: .5rem 0 .2rem;
}

.system-state-copy h1 {
    color: var(--system-state-ink);
    font-size: clamp(1.55rem, 3vw, 2.25rem);
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.1;
    margin: 0;
}

.system-state-copy p {
    color: var(--system-state-muted);
    font-size: 1rem;
    line-height: 1.65;
    margin: .75rem auto 0;
    max-width: 540px;
}

.system-state-request {
    align-items: center;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(23, 25, 64, .08);
    border-radius: 999px;
    color: #5d6a78;
    display: inline-flex;
    flex-wrap: wrap;
    font-size: .82rem;
    font-weight: 750;
    gap: .45rem;
    justify-content: center;
    margin-top: 1.25rem;
    max-width: 100%;
    padding: .48rem .72rem;
    position: relative;
    z-index: 1;
}

.system-state-request span {
    color: var(--system-state-teal);
    text-transform: uppercase;
}

.system-state-request code {
    color: #344054;
    white-space: normal;
    word-break: break-word;
}

.system-state-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    justify-content: center;
    margin-top: 1.6rem;
    position: relative;
    z-index: 1;
}

.system-state-actions .tv-action-btn {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: .88rem;
    font-weight: 850;
    gap: .45rem;
    justify-content: center;
    min-height: 42px;
    padding: .72rem 1.05rem;
    text-decoration: none;
}

.system-state-actions .tv-action-btn-primary {
    background: linear-gradient(135deg, #006d6f, #08a88a);
    border: 1px solid rgba(0, 109, 111, .2);
    box-shadow: 0 14px 32px rgba(0, 109, 111, .18);
    color: #fff;
}

.system-state-actions .tv-action-btn-secondary {
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(0, 109, 111, .18);
    color: #075f61;
}

.system-state-actions .tv-action-btn:hover,
.system-state-actions .tv-action-btn:focus {
    transform: translateY(-1px);
}

@media (max-width: 575px) {
    .system-state-shell {
        min-height: auto;
        padding-bottom: 2rem;
        padding-top: 2rem;
    }

    .system-state-card {
        border-radius: 14px;
    }

    .system-state-actions .tv-action-btn {
        width: 100%;
    }
}

:root {
    --portal-gateway-ink: #171940;
    --portal-gateway-text: #263238;
    --portal-gateway-muted: #667085;
    --portal-gateway-line: rgba(23, 25, 64, 0.1);
    --portal-gateway-soft: #f7fbfb;
    --portal-gateway-teal: #006d6f;
    --portal-gateway-green: #08a88a;
    --portal-gateway-amber: #f5a623;
}

.portal-gateway-header-actions {
    align-items: center;
    display: inline-flex;
    gap: .6rem;
    margin-left: 1rem;
}

.portal-gateway-header-actions .btn {
    line-height: 1.25;
    white-space: nowrap;
}

.trueviewly-maintenance-banner {
    align-items: center;
    background: linear-gradient(90deg, #171940 0%, #006d6f 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 14px 36px rgba(23, 25, 64, 0.12);
    color: #fff;
    display: flex;
    font-size: 0.88rem;
    font-weight: 600;
    gap: 0.65rem;
    justify-content: center;
    min-height: 40px;
    padding: 0.5rem 1rem;
    position: relative;
    text-align: center;
    z-index: 2;
}

#header .trueviewly-maintenance-banner.header-top {
    min-height: 0;
    overflow: hidden;
}

.trueviewly-maintenance-banner .container,
.trueviewly-maintenance-banner__inner {
    align-items: center;
    display: flex;
    gap: 0.65rem;
    justify-content: center;
    min-height: 40px;
    padding-bottom: 0.5rem;
    padding-top: 0.5rem;
    text-align: center;
}

.trueviewly-maintenance-banner__icon {
    align-items: center;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: inline-flex;
    flex: 0 0 auto;
    height: 26px;
    justify-content: center;
    width: 26px;
}

.trueviewly-maintenance-banner__message {
    line-height: 1.45;
}

@media (max-width: 575px) {
    .trueviewly-maintenance-banner {
        font-size: 0.82rem;
    }

    .trueviewly-maintenance-banner .container,
    .trueviewly-maintenance-banner__inner {
        align-items: flex-start;
        justify-content: flex-start;
        text-align: left;
    }
}

.portal-gateway-hero {
    background:
        radial-gradient(circle at 10% 10%, rgba(8, 168, 138, .16), transparent 26rem),
        radial-gradient(circle at 88% 16%, rgba(245, 166, 35, .14), transparent 24rem),
        linear-gradient(180deg, #fbfcfc 0%, #eff1f3 100%);
    overflow: hidden;
    padding: 9rem 0 6rem;
}

.portal-gateway-eyebrow {
    color: var(--portal-gateway-teal);
    display: inline-flex;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    margin-bottom: .9rem;
    text-transform: uppercase;
}

.portal-gateway-hero h1,
.portal-gateway-section h2,
.portal-gateway-band h2 {
    color: var(--portal-gateway-ink);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.04;
}

.portal-gateway-hero h1 {
    font-size: clamp(2.35rem, 3.8vw, 4.2rem);
    margin-bottom: 1.25rem;
}

.portal-gateway-copy,
.portal-gateway-section p,
.portal-gateway-band p {
    color: var(--portal-gateway-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.portal-gateway-actions,
.portal-gateway-band-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    margin-top: 1.8rem;
}

.portal-gateway-links {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: 1.2rem;
}

.portal-gateway-links a {
    color: var(--portal-gateway-teal);
    font-weight: 800;
    text-decoration: none;
}

.portal-gateway-links span {
    background: rgba(0, 109, 111, .25);
    border-radius: 50%;
    height: 5px;
    width: 5px;
}

.portal-gateway-preview {
    background:
        radial-gradient(circle at 90% 0%, rgba(245, 166, 35, .18), transparent 15rem),
        linear-gradient(145deg, #fff 0%, #f7fbfb 100%);
    border: 1px solid rgba(23, 25, 64, .08);
    border-radius: 18px;
    box-shadow: 0 34px 90px rgba(23, 25, 64, .18);
    overflow: hidden;
}

.portal-gateway-preview-top {
    align-items: center;
    background: var(--portal-gateway-ink);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem 1.15rem;
}

.portal-gateway-preview-top span,
.portal-gateway-main-card span,
.portal-gateway-side-card span,
.portal-gateway-risk-row span,
.portal-gateway-code-card span {
    color: var(--portal-gateway-muted);
    display: block;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.portal-gateway-preview-top span {
    color: rgba(255, 255, 255, .58);
}

.portal-gateway-preview-top strong {
    color: #fff;
    display: block;
    font-size: 1.05rem;
}

.portal-gateway-preview-top em {
    background: rgba(245, 166, 35, .95);
    border-radius: 999px;
    color: #171940;
    font-style: normal;
    font-weight: 900;
    padding: .45rem .8rem;
    white-space: nowrap;
}

.portal-gateway-preview-body {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1.7fr) minmax(215px, .7fr);
    padding: 1.15rem;
}

.portal-gateway-main-card,
.portal-gateway-side-card,
.portal-gateway-code-card,
.portal-gateway-grid > div {
    background: rgba(255, 255, 255, .94);
    border: 1px solid var(--portal-gateway-line);
    border-radius: 14px;
    box-shadow: 0 18px 48px rgba(23, 25, 64, .07);
}

.portal-gateway-main-card {
    padding: 1.25rem;
}

.portal-gateway-main-card strong {
    color: var(--portal-gateway-ink);
    display: block;
    font-size: 1.45rem;
    line-height: 1.2;
    margin: .25rem 0 .65rem;
}

.portal-gateway-main-card p {
    color: var(--portal-gateway-muted);
    line-height: 1.6;
}

.portal-gateway-risk-row {
    display: grid;
    gap: .55rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1rem;
}

.portal-gateway-risk-row div {
    border: 1px solid #edf0f4;
    border-radius: 12px;
    min-width: 0;
    padding: .75rem;
}

.portal-gateway-risk-row span {
    display: block;
    overflow-wrap: anywhere;
}

.portal-gateway-risk-row strong {
    color: var(--portal-gateway-ink);
    display: block;
    font-size: 1.6rem;
    margin: .15rem 0 0;
}

.portal-gateway-side-card {
    padding: 1.1rem;
}

.portal-gateway-side-card ul {
    display: grid;
    gap: .75rem;
    list-style: none;
    margin: .8rem 0 0;
    padding: 0;
}

.portal-gateway-side-card li {
    align-items: center;
    color: #3f4a54;
    display: flex;
    font-weight: 700;
    gap: .55rem;
}

.portal-gateway-side-card i {
    color: var(--portal-gateway-green);
}

.portal-gateway-section {
    background: #fff;
    padding: 5.5rem 0;
}

.portal-gateway-section-compact {
    background: var(--portal-gateway-soft);
}

.portal-gateway-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, 1fr);
}

.portal-gateway-grid > div {
    height: 100%;
    padding: 1.55rem;
}

.portal-gateway-grid i {
    align-items: center;
    background: #e7f4f4;
    border-radius: 12px;
    color: var(--portal-gateway-teal);
    display: inline-flex;
    font-size: 1.25rem;
    height: 48px;
    justify-content: center;
    margin-bottom: 1rem;
    width: 48px;
}

.portal-gateway-grid h3 {
    color: var(--portal-gateway-ink);
    font-size: 1.08rem;
    font-weight: 800;
    margin-bottom: .45rem;
}

.portal-gateway-grid p {
    font-size: .95rem;
    margin-bottom: 0;
}

.portal-gateway-band {
    background:
        radial-gradient(circle at 12% 18%, rgba(8, 168, 138, .18), transparent 18rem),
        linear-gradient(135deg, var(--portal-gateway-ink), #23275a);
    padding: 4rem 0;
}

.portal-gateway-band-inner {
    align-items: center;
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1fr) auto;
}

.portal-gateway-band .portal-gateway-eyebrow {
    color: #94f1db;
}

.portal-gateway-band h2,
.portal-gateway-band p {
    color: #fff;
}

.portal-gateway-band p {
    margin-bottom: 0;
    opacity: .78;
}

.portal-gateway-code-card {
    display: grid;
    gap: .75rem;
    padding: 1.25rem;
}

.portal-gateway-code-card div {
    align-items: center;
    background: #fff;
    border: 1px solid #edf0f4;
    border-radius: 12px;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: .9rem 1rem;
}

.portal-gateway-code-card span {
    color: var(--portal-gateway-teal);
}

.portal-gateway-code-card strong {
    color: var(--portal-gateway-ink);
    font-family: Consolas, Monaco, monospace;
    font-size: .95rem;
    text-align: right;
}

.portal-gateway-code-card a {
    color: var(--portal-gateway-teal);
    font-weight: 900;
    margin-top: .25rem;
    text-align: right;
    text-decoration: none;
}

@media (max-width: 991px) {
    .portal-gateway-header-actions {
        gap: .45rem;
        margin-left: .5rem;
    }

    .portal-gateway-header-actions .btn {
        padding-left: .9rem !important;
        padding-right: .9rem !important;
    }

    .portal-gateway-hero {
        padding: 7rem 0 4rem;
    }

    .portal-gateway-preview-body,
    .portal-gateway-band-inner,
    .portal-gateway-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .portal-gateway-header-actions .btn {
        font-size: .78rem !important;
        padding-left: .7rem !important;
        padding-right: .7rem !important;
    }

    .portal-gateway-hero h1 { font-size: 2.25rem; }

    .portal-gateway-risk-row,
    .portal-gateway-code-card div { grid-template-columns: 1fr; }

    .portal-gateway-code-card div { align-items: flex-start; }

    .portal-gateway-code-card strong { text-align: left; }
}