* {
    box-sizing: border-box;
}


:root {

    --premier-blue: #0b2f78;
    --premier-blue-light: #1769e8;

    --text: #172033;
    --muted: #687386;

    --background: #f4f8fc;
    --card: #ffffff;

    --border: #e1e8f0;

    --green: #25a95b;
    --green-bg: #edf9f2;

    --orange: #ef9400;
    --orange-bg: #fff6e7;

    --red: #d83c3c;
    --red-bg: #fff0f0;

    --blue: #2878e5;
    --blue-bg: #edf5ff;
}


body {

    margin: 0;
    padding: 0;

    background:
        linear-gradient(
            180deg,
            #f7fbff 0%,
            #f2f6fa 100%
        );

    color: var(--text);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
}


/* ==========================================================
   HEADER
   ========================================================== */

.topbar {

    background: rgba(255, 255, 255, 0.98);

    border-bottom: 1px solid #edf1f5;
}


.topbar-inner {

    max-width: 1400px;

    margin: 0 auto;

    min-height: 82px;

    padding: 0 28px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


.brand {

    display: inline-flex;

    align-items: center;

    line-height: 0;

    text-decoration: none;
}


.brand-logo {

    display: block;

    height: 46px;
    width: auto;

    max-width: 230px;

    object-fit: contain;
}


.topbar-title {

    color: #6c7686;

    font-size: 14px;

    font-weight: 500;
}


/* ==========================================================
   PAGE
   ========================================================== */

.page {

    max-width: 1400px;

    margin: 0 auto;

    padding: 22px 28px 50px;
}


/* ==========================================================
   HERO
   ========================================================== */

.hero {

    position: relative;

    overflow: hidden;

    min-height: auto;

    padding: 32px 52px 24px;

    border-radius: 18px;

    background:
        linear-gradient(
            120deg,
            #f8fcff 0%,
            #edf6ff 50%,
            #dcecff 100%
        );

    border: 1px solid #e7f0fa;
}


.hero-content {

    position: relative;

    z-index: 2;

    max-width: 1050px;
}


.hero h1 {

    margin: 0 0 14px 0;

    color: #0c1740;

    font-size: 28px;

    line-height: 1.1;

    letter-spacing: -1.2px;

    font-weight: 750;
}


.hero p {

    max-width: 1000px;

    margin: 0;

    color: #516ba9;

    font-size: 17px;

    line-height: 1.45;
}


.hero-shape {

    position: absolute;

    right: -120px;

    border-radius: 50%;

    transform: rotate(-15deg);
}


.hero-shape-one {

    bottom: -190px;

    width: 660px;
    height: 330px;

    background:
        rgba(80, 150, 235, 0.11);
}


.hero-shape-two {

    right: 120px;
    bottom: -225px;

    width: 620px;
    height: 320px;

    background:
        rgba(80, 150, 235, 0.08);
}


/* ==========================================================
   OVERALL
   ========================================================== */

.overall {

    display: flex;

    align-items: center;

    gap: 17px;

    margin: 22px 0 28px;

    padding: 20px 25px;

    border-radius: 14px;

    border: 1px solid;
}


.overall-icon {

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    color: white;

    font-size: 25px;

    font-weight: 800;
}


.overall-title {

    font-size: 16px;

    font-weight: 700;
}


.overall-text {

    margin-top: 3px;

    font-size: 13px;

    opacity: 0.82;
}


.overall.ok {

    background: var(--green-bg);
    color: #14793e;
    border-color: #ccebd9;
}


.overall.ok .overall-icon {
    background: var(--green);
}


.overall.degraded {

    background: var(--orange-bg);
    color: #a25f00;
    border-color: #f0d7a9;
}


.overall.degraded .overall-icon {
    background: var(--orange);
}


.overall.maintenance {

    background: var(--blue-bg);
    color: #1d5fae;
    border-color: #c7dcf6;
}


.overall.maintenance .overall-icon {
    background: var(--blue);
}


.overall.error {

    background: var(--red-bg);
    color: #a32828;
    border-color: #efc3c3;
}


.overall.error .overall-icon {
    background: var(--red);
}


.overall.loading {

    background: #f0f3f6;
    color: #657080;
    border-color: #dde3e9;
}


.overall.loading .overall-icon {
    background: #8c97a5;
}


/* ==========================================================
   SECTION HEADING
   ========================================================== */

.section-heading {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 20px;

    margin: 28px 2px 14px;
}


.section-heading h2 {

    margin: 2px 0 0;

    color: #121c38;

    font-size: 23px;

    font-weight: 750;
}


.section-eyebrow {

    color: #5b72aa;

    font-size: 12px;

    font-weight: 600;
}


.section-help {

    color: #8490a0;

    font-size: 12px;
}


/* ==========================================================
   GROUP CARDS
   ========================================================== */

.group-grid {

    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 12px;
}


.group-card {

    position: relative;

    min-height: 185px;

    padding: 18px;

    background: white;

    border: 1px solid var(--border);

    border-radius: 15px;

    cursor: pointer;

    box-shadow:
        0 4px 16px rgba(29, 53, 87, 0.04);

    transition:
        transform 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}


.group-card:hover {

    transform: translateY(-2px);

    box-shadow:
        0 8px 22px rgba(29, 53, 87, 0.09);
}


.group-card:focus-visible {

    outline: 3px solid rgba(40, 120, 229, 0.20);

    outline-offset: 2px;
}


.group-card.selected {

    border-color: #75a9ee;

    box-shadow:
        0 0 0 2px rgba(40, 120, 229, 0.09),
        0 9px 26px rgba(29, 72, 130, 0.11);

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f8fbff 100%
        );
}


.group-card-top {

    display: flex;

    align-items: center;

    justify-content: space-between;
}


.group-icon {

    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: #edf5ff;

    color: #2570db;

    font-size: 19px;

    font-weight: 700;
}


.group-select-indicator {

    color: #b1bccb;

    font-size: 28px;

    line-height: 1;

    transition:
        transform 0.15s ease,
        color 0.15s ease;
}


.group-card.selected .group-select-indicator {

    transform: rotate(90deg);

    color: var(--blue);
}


.group-name {

    min-height: 42px;

    margin-top: 11px;

    color: #102250;

    font-size: 14px;

    line-height: 1.3;

    font-weight: 700;
}


.group-card-status {

    margin-top: 15px;

    display: flex;

    align-items: center;

    gap: 9px;

    font-size: 14px;

    font-weight: 700;
}


.group-description {

    margin-top: 10px;

    padding: 10px 11px;

    min-height: 55px;

    border-radius: 9px;

    color: #657189;

    background: #f7f9fb;

    font-size: 12px;

    line-height: 1.4;
}


.group-card.ok .group-card-status {
    color: var(--green);
}


.group-card.degraded {
    border-color: #f1d4a3;
}


.group-card.degraded .group-card-status {
    color: var(--orange);
}


.group-card.maintenance {
    border-color: #bed8fa;
}


.group-card.maintenance .group-card-status {
    color: var(--blue);
}


.group-card.error {
    border-color: #edbcbc;
}


.group-card.error .group-card-status {
    color: var(--red);
}


/* ==========================================================
   STATUS DOT
   ========================================================== */

.status-dot {

    width: 12px;
    height: 12px;

    display: inline-block;

    flex-shrink: 0;

    border-radius: 50%;
}


.status-dot.ok {

    background: var(--green);

    box-shadow:
        0 0 0 5px rgba(37, 169, 91, 0.10);
}


.status-dot.degraded {

    background: var(--orange);

    box-shadow:
        0 0 0 5px rgba(239, 148, 0, 0.11);
}


.status-dot.maintenance {

    background: var(--blue);

    box-shadow:
        0 0 0 5px rgba(40, 120, 229, 0.11);
}


.status-dot.error {

    background: var(--red);

    box-shadow:
        0 0 0 5px rgba(216, 60, 60, 0.10);
}


/* ==========================================================
   GLOBAL ANNOUNCEMENTS
   ========================================================== */

.announcement-container {

    display: flex;

    flex-direction: column;

    gap: 10px;

    margin-top: 25px;
}


.announcement {

    display: flex;

    align-items: flex-start;

    gap: 13px;

    padding: 17px 20px;

    border-radius: 13px;

    font-size: 14px;

    line-height: 1.5;

    border: 1px solid;
}


.announcement-symbol {

    width: 25px;
    height: 25px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    margin-top: 1px;

    border: 2px solid currentColor;

    border-radius: 50%;

    font-size: 14px;

    font-weight: 800;
}


.announcement-title {

    margin-bottom: 2px;

    font-weight: 700;
}


.announcement.info {

    background: var(--blue-bg);
    color: #245eaa;
    border-color: #bfd7f5;
}


.announcement.warning {

    background: var(--orange-bg);
    color: #8d5900;
    border-color: #efd4a3;
}


.announcement.error {

    background: var(--red-bg);
    color: #a32e2e;
    border-color: #efc1c1;
}


.announcement.success {

    background: var(--green-bg);
    color: #187744;
    border-color: #ccebd9;
}


/* ==========================================================
   DETAIL
   ========================================================== */

.detail-container {

    display: none;

    margin-top: 25px;
}


.detail-container.visible {
    display: block;
}


.detail-panel {

    padding: 26px;

    background: white;

    border: 1px solid var(--border);

    border-radius: 16px;

    box-shadow:
        0 5px 22px rgba(29, 53, 87, 0.05);
}


.detail-header {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 25px;

    padding-bottom: 19px;

    border-bottom: 1px solid #e7edf3;
}


.detail-eyebrow {

    color: #5b72aa;

    font-size: 12px;

    font-weight: 600;
}


.detail-header h2 {

    margin: 4px 0 0;

    font-size: 24px;

    color: #10204b;
}


.detail-status {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 10px 15px;

    border-radius: 999px;

    white-space: nowrap;

    font-size: 13px;

    font-weight: 700;
}


.detail-status.ok {
    background: var(--green-bg);
    color: #168047;
}


.detail-status.degraded {
    background: var(--orange-bg);
    color: #a86500;
}


.detail-status.maintenance {
    background: var(--blue-bg);
    color: #2367ba;
}


.detail-status.error {
    background: var(--red-bg);
    color: #b13434;
}


/* ==========================================================
   CURRENT STATE
   ========================================================== */

.current-state {

    display: flex;

    align-items: flex-start;

    gap: 15px;

    margin-top: 22px;

    padding: 10px 2px 18px;

    border-bottom: 1px solid #edf1f5;
}


.current-state-symbol {

    width: 32px;
    height: 32px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    color: white;

    font-size: 17px;

    font-weight: 800;
}


.current-state-symbol.ok {
    background: var(--green);
}


.current-state-symbol.degraded {
    background: var(--orange);
}


.current-state-symbol.maintenance {
    background: var(--blue);
}


.current-state-symbol.error {
    background: var(--red);
}


.current-state-title {

    color: #172033;

    font-size: 15px;

    font-weight: 700;
}


.current-state-text {

    margin-top: 4px;

    color: #687386;

    font-size: 13px;

    line-height: 1.55;
}


/* ==========================================================
   AFFECTED SERVICES
   ========================================================== */

.affected-services {

    margin-top: 18px;

    padding: 15px 17px;

    border: 1px solid #e5eaf0;

    border-radius: 11px;

    background: #f8fafc;
}


.affected-services-label {

    margin-bottom: 10px;

    color: #657189;

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.04em;
}


.affected-service-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 7px 0;
}


.affected-service-name {

    display: flex;

    align-items: center;

    gap: 11px;

    color: #202b3f;

    font-size: 14px;

    font-weight: 650;
}


.affected-service-status {

    color: var(--red);

    font-size: 12px;

    font-weight: 700;
}


/* ==========================================================
   CURRENT CUSTOM MESSAGE
   ========================================================== */

.current-custom {

    margin-top: 18px;

    padding: 18px 20px;

    border: 1px solid #e2eaf3;

    border-radius: 11px;

    background:
        linear-gradient(
            90deg,
            #f6faff 0%,
            #fbfdff 100%
        );

    color: #25324a;
}


.current-custom-title {

    color: #162550;

    font-size: 15px;

    font-weight: 700;
}


.current-custom-text {

    margin-top: 7px;

    color: #60718a;

    font-size: 14px;

    line-height: 1.6;
}


.current-recommendation {

    display: flex;

    align-items: flex-start;

    gap: 10px;

    margin-top: 14px;

    padding-top: 13px;

    border-top: 1px solid #e2eaf3;

    color: #526884;

    font-size: 13px;

    line-height: 1.5;
}


.current-recommendation-icon {

    width: 23px;
    height: 23px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border: 2px solid #5f8fd0;

    border-radius: 50%;

    color: #3974c3;

    font-size: 12px;

    font-weight: 800;
}


/* ==========================================================
   TIMELINE
   ========================================================== */

.timeline-section {

    margin-top: 28px;

    padding-top: 23px;

    border-top: 1px solid #e7edf3;
}


.timeline-heading {

    margin-bottom: 18px;

    color: #10204b;

    font-size: 18px;

    font-weight: 700;
}


.timeline {

    position: relative;

    max-width: 1050px;
}


.timeline-entry {

    position: relative;

    display: grid;

    grid-template-columns:
        26px
        minmax(0, 1fr);

    gap: 13px;

    padding-bottom: 12px;
}


.timeline-entry:last-child {
    padding-bottom: 2px;
}


.timeline-marker {

    position: relative;

    display: flex;

    justify-content: center;
}


.timeline-marker::after {

    content: "";

    position: absolute;

    top: 17px;
    bottom: -12px;

    width: 2px;

    background: #dfe7ef;
}


.timeline-entry:last-child
.timeline-marker::after {

    display: none;
}


.timeline-marker span {

    position: relative;

    z-index: 2;

    width: 12px;
    height: 12px;

    margin-top: 16px;

    border-radius: 50%;

    background: var(--blue);

    box-shadow:
        0 0 0 4px white;
}


.timeline-marker.warning span {
    background: var(--orange);
}


.timeline-marker.error span {
    background: var(--red);
}


.timeline-marker.success span {
    background: var(--green);
}


.timeline-content {

    padding: 11px 12px 14px;

    border-radius: 10px;
}


.timeline-entry.latest .timeline-content {

    background:
        linear-gradient(
            90deg,
            #eef6ff 0%,
            #f7fbff 100%
        );
}


.timeline-date {

    margin-bottom: 5px;

    color: #6e87ae;

    font-size: 12px;

    font-weight: 600;
}


.timeline-title {

    color: #152650;

    font-size: 14px;

    font-weight: 700;
}


.timeline-text {

    margin-top: 5px;

    color: #617493;

    font-size: 13px;

    line-height: 1.6;

    white-space: pre-line;
}


.timeline-recommendation {

    margin-top: 9px;

    color: #526884;

    font-size: 12.5px;

    line-height: 1.5;
}


/* ==========================================================
   FOOTER
   ========================================================== */

footer {

    max-width: 1400px;

    margin: 0 auto;

    padding:
        0 28px
        35px;

    text-align: center;

    color: #85909d;

    font-size: 12px;
}


.footer-company {
    margin-top: 7px;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 1200px) {

    .group-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}


@media (max-width: 850px) {

    .group-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .hero-content {
        max-width: 100%;
    }


    .hero h1 {
        font-size: 27px;
    }


    .hero p {

        max-width: 100%;

        font-size: 16.5px;
    }
}


@media (max-width: 600px) {

    .topbar-inner {

        min-height: 68px;

        padding: 0 18px;
    }


    .brand-logo {

        height: 34px;

        max-width: 180px;
    }


    .topbar-title {
        display: none;
    }


    .page {

        padding:
            15px
            15px
            35px;
    }


    .hero {

        min-height: auto;

        padding:
            24px
            26px
            20px;
    }


    .hero h1 {
        font-size: 25px;
    }


    .hero p {
        font-size: 16px;
    }


    .group-grid {
        grid-template-columns: 1fr;
    }


    .group-card {
        min-height: auto;
    }


    .group-name {
        min-height: auto;
    }


    .group-description {
        min-height: auto;
    }


    .section-heading {

        align-items: flex-start;

        flex-direction: column;

        gap: 5px;
    }


    .section-help {
        font-size: 12px;
    }


    .detail-panel {
        padding: 19px;
    }


    .detail-header {

        flex-direction: column;

        gap: 14px;
    }


    .detail-header h2 {
        font-size: 22px;
    }


    .current-state {

        gap: 12px;

        padding-top: 5px;
    }


    .current-custom {
        padding: 16px;
    }


    .affected-service-row {

        align-items: flex-start;

        flex-direction: column;

        gap: 5px;
    }


    .timeline-section {
        margin-top: 22px;
    }
}