/* =========================================================
   ODINONE GLOBAL STYLES
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {

    --ow-primary: #0f2e5d;
    --ow-primary-hover: #0c2346;

    --ow-border: #1e293b;
    --ow-muted: #94a3b8;

    --ow-bg: #0b1120;
    --ow-card: #111827;

    --ow-white: #ffffff;

    --ow-blue-1: #1f4b8f;
    --ow-blue-2: #0b2a53;
    --ow-blue-3: #081c34;

    --ow-success: #16a34a;
    --ow-danger: #dc2626;
    --ow-warning: #f59e0b;

    --nav-width: 250px;
}

html,
body {

    width: 100%;
    min-height: 100%;

    font-family:
        Inter,
        Segoe UI,
        system-ui,
        sans-serif;

    background: var(--ow-bg);

    color: #e2e8f0;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    text-rendering: optimizeLegibility;
}

body {
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

input,
select,
textarea {
    font-family: inherit;
    outline: none;
}

#blazor-error-ui {
    display: none !important;
}

/* =========================================================
   LAYOUT
   ========================================================= */

.page {

    display: flex;

    min-height: 100vh;

    background: #f3f6fb;
}

main {

    flex: 1;

    padding: 20px;

    overflow-x: hidden;
}

/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar {

    width: var(--nav-width);

    min-height: 100vh;

    background:
        linear-gradient(
            180deg,
            #0f2e5d 0%,
            #0b2a53 55%,
            #081c34 100%
        );

    color: white;

    position: sticky;

    top: 0;

    display: flex;

    flex-direction: column;

    padding: 10px 8px;

    border-right:
        1px solid rgba(255,255,255,0.04);
}

.ow-brand {

    font-weight: 800;

    font-size: 20px;

    letter-spacing: 1px;

    padding: 16px;

    border-radius: 14px;

    margin-bottom: 20px;

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

    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.06);
}

.ow-section {

    margin:
        12px
        12px
        8px;

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 1px;

    color: rgba(255,255,255,0.55);

    font-weight: 700;
}

.ow-nav {

    display: flex;

    flex-direction: column;

    gap: 4px;
}

.ow-link {

    display: flex;

    align-items: center;

    width: 100%;

    padding:
        12px
        14px;

    border-radius: 12px;

    color: rgba(255,255,255,0.92);

    font-size: 14px;

    font-weight: 600;

    transition:
        background .15s ease,
        color .15s ease;
}

.ow-link:hover {

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

    color: white;
}

.ow-link.active {

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

    color: white;
}

.ow-logout {

    margin-top: auto;

    color: #fecaca;

    background:
        rgba(220,38,38,0.12);
}

.ow-logout:hover {

    background:
        rgba(220,38,38,0.22);

    color: white;
}

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

.ow-header {

    display: grid;

    grid-template-columns:
        1fr
        auto
        1fr;

    align-items: center;

    gap: 10px;

    background:
        linear-gradient(
            90deg,
            #0f2e5d,
            #092147
        );

    color: white;

    padding:
        14px
        18px;

    border-radius: 18px;

    margin-bottom: 18px;

    box-shadow:
        0 8px 22px rgba(0,0,0,0.10);
}

.ow-title {

    font-size: 24px;

    font-weight: 700;
}

.ow-search {

    display: flex;

    justify-content: center;

    position: relative;
}

.ow-search-input {

    width:
        clamp(
            260px,
            24vw,
            520px
        );

    height: 44px;

    border-radius: 14px;

    border:
        1px solid rgba(255,255,255,0.16);

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

    color: white;

    padding:
        0
        16px;

    transition:
        background .15s ease,
        border-color .15s ease;
}

.ow-search-input::placeholder {
    color: rgba(255,255,255,0.6);
}

.ow-search-input:focus {

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

    border-color:
        rgba(255,255,255,0.28);
}

.ow-clear {

    position: absolute;

    right: 12px;

    top: 50%;

    transform: translateY(-50%);

    border: none;

    background: transparent;

    color: rgba(255,255,255,0.7);

    font-size: 18px;

    cursor: pointer;
}

.ow-actions {

    display: flex;

    justify-content: flex-end;

    align-items: center;

    gap: 10px;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.ow-action-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    height: 44px;

    border: none;

    padding:
        0 22px;

    border-radius: 14px;

    background:
        linear-gradient(
            180deg,
            #7fc2ff,
            #57a3ff
        );

    color: #0b1a33;

    font-size: 14px;

    font-weight: 800;

    cursor: pointer;

    text-decoration: none;

    transition:
        transform .15s ease,
        opacity .15s ease,
        box-shadow .15s ease;
}

.ow-action-btn:hover {

    transform: translateY(-1px);

    opacity: .96;

    box-shadow:
        0 10px 24px rgba(87,163,255,0.28);
}

/* =========================================================
   CLIENT ROWS
   ========================================================= */

.cust-row-list {

    display: flex;

    flex-direction: column;

    gap: 14px;
}

.cust-row {

    width: 100%;

    border: none;

    background: white;

    border-radius: 18px;

    padding: 18px;

    cursor: pointer;

    text-align: left;

    transition:
        transform .15s ease,
        box-shadow .15s ease;

    border:
        1px solid #e5e7eb;

    box-shadow:
        0 2px 10px rgba(0,0,0,0.04);
}

.cust-row:hover {

    transform: translateY(-1px);

    box-shadow:
        0 10px 24px rgba(0,0,0,0.08);
}

.cust-content {

    display: grid;

    grid-template-columns:
        2fr
        1fr
        1fr
        auto;

    gap: 18px;

    align-items: center;
}

.cust-title {

    font-size: 18px;

    font-weight: 700;

    color: #0f172a;
}

.cust-sub {

    margin-top: 4px;

    font-size: 13px;

    color: #64748b;

    font-weight: 600;
}

.cust-label {

    display: block;

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: .5px;

    color: #94a3b8;

    margin-bottom: 4px;
}

.cust-val {

    color: #0f172a;

    font-size: 14px;
}

/* =========================================================
   STATUS BADGES
   ========================================================= */

.cust-badge {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 90px;

    height: 34px;

    padding: 0 14px;

    border-radius: 999px;

    font-size: 12px;

    font-weight: 700;
}

.cust-badge.ok {

    background:
        rgba(22,163,74,0.12);

    color: #15803d;
}

.cust-badge.warn {

    background:
        rgba(245,158,11,0.14);

    color: #b45309;
}

.cust-badge.off {

    background:
        rgba(220,38,38,0.12);

    color: #dc2626;
}

/* =========================================================
   MODALS
   ========================================================= */

.ow-modal-backdrop {

    position: fixed;

    inset: 0;

    background:
        rgba(0,0,0,0.62);

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 24px;

    z-index: 5000;

    overflow-y: auto;

    backdrop-filter: blur(4px);
}

.ow-modal {

    width: 100%;

    max-width: 1440px;

    background: transparent;

    border-radius: 24px;
}

.ow-modal-panel {

    position: relative;

    width:
        min(
            1440px,
            96vw
        );

    max-height: 92vh;

    overflow-y: auto;

    overflow-x: hidden;

    background: transparent;

    border-radius: 24px;

    display: flex;

    justify-content: center;
}

.ow-modal-close {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 42px;

    height: 42px;

    border: none;

    border-radius: 999px;

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

    color: white;

    font-size: 18px;

    font-weight: 700;

    cursor: pointer;

    transition:
        background .15s ease,
        transform .15s ease;
}

.ow-modal-close:hover {

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

    transform: scale(1.05);
}

.ow-modal-panel > .ow-modal-close {

    display: none;
}

.topbar-close {

    margin-left: 4px;
}

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

.detail-page {

    width: 100%;

    display: flex;

    justify-content: center;
}

.ow-card-blue {

    width: 100%;

    max-width: 980px;

    padding:
        28px
        28px
        32px;

    border-radius: 28px;

    background:
        linear-gradient(
            180deg,
            #163766,
            #102847
        );

    color: white;

    border:
        1px solid rgba(255,255,255,0.08);

    box-shadow:
        0 20px 50px rgba(0,0,0,0.35);
}

/* =========================================================
   TOP BAR
   ========================================================= */

.wd-topbar {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 24px;

    margin-bottom: 28px;
}

.wd-topbar-left {

    display: flex;

    flex-direction: column;
}

.wd-topbar-actions {

    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 12px;

    flex-wrap: wrap;
}

.header-title {

    font-size: 42px;

    line-height: 1;

    font-weight: 800;

    letter-spacing: -.5px;
}

.branch-btn {

    height: 42px;

    padding: 0 18px;

    border-radius: 999px;

    font-size: 13px;

    font-weight: 800;
}

/* =========================================================
   ACTION CHIPS
   ========================================================= */

.wd-chip {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 110px;

    height: 42px;

    border: none;

    padding:
        0 18px;

    border-radius: 999px;

    cursor: pointer;

    font-size: 14px;

    font-weight: 700;

    transition:
        transform .15s ease,
        opacity .15s ease;
}

.wd-chip:hover {

    transform: translateY(-1px);
}

.wd-chip.edit {

    background: white;

    color: #0f172a;
}

.wd-chip.save {

    background:
        linear-gradient(
            180deg,
            #7fc2ff,
            #57a3ff
        );

    color: #0b1a33;
}

.wd-chip.cancel {

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

    color: white;
}

/* =========================================================
   TABS
   ========================================================= */

.ow-tabs {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 28px;
}

.ow-tab {

    height: 42px;

    border: none;

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

    color: rgba(255,255,255,0.85);

    padding:
        0 18px;

    border-radius: 12px;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition:
        background .15s ease,
        transform .15s ease;
}

.ow-tab:hover {

    transform: translateY(-1px);
}

.ow-tab.active {

    background:
        linear-gradient(
            180deg,
            #6c8cff,
            #5572ff
        );

    color: white;
}

/* =========================================================
   FORMS
   ========================================================= */

.detail-grid {

    width: 100%;

    margin-top: 12px;
}

.row {

    display: flex;

    flex-wrap: wrap;

    gap: 18px;
}

.col-md-3 {
    flex: 1 1 calc(25% - 18px);
}

.col-md-4 {
    flex: 1 1 calc(33.333% - 18px);
}

.col-md-6 {
    flex: 1 1 calc(50% - 18px);
}

.col-12 {
    flex: 1 1 100%;
}

.form-label {

    display: block;

    color: #dbe7ff;

    font-size: 13px;

    margin-bottom: 8px;

    font-weight: 700;
}

.ow-input {

    width: 100%;

    min-height: 48px;

    border: none;

    border-radius: 14px;

    background: #f8fafc;

    color: #0f172a;

    padding:
        12px
        16px;

    font-size: 14px;

    transition:
        box-shadow .15s ease,
        transform .15s ease;
}

.ow-input:focus {

    box-shadow:
        0 0 0 3px rgba(127,194,255,0.22);
}

textarea.ow-input {

    min-height: 140px;

    resize: vertical;
}

.ow-input:disabled {

    background: #f1f5f9;

    color: #334155;

    opacity: 1;
}

/* =========================================================
   BRANCHES
   ========================================================= */

.branch-section {

    padding-top: 8px;
}

.branch-list {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(320px, 1fr)
        );

    gap: 18px;
}

.branch-card {

    border-radius: 22px;

    padding: 20px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.08),
            rgba(255,255,255,0.05)
        );

    border:
        1px solid rgba(255,255,255,0.08);

    backdrop-filter: blur(6px);

    transition:
        transform .15s ease,
        border-color .15s ease;
}

.branch-card:hover {

    transform: translateY(-2px);

    border-color:
        rgba(255,255,255,0.16);
}

.branch-card-header {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 12px;

    margin-bottom: 14px;
}

.branch-title {

    font-size: 22px;

    font-weight: 800;

    color: white;
}

.branch-actions {

    display: flex;

    align-items: center;

    gap: 8px;
}

.branch-meta {

    font-size: 13px;

    line-height: 1.7;

    color: rgba(255,255,255,0.78);
}

.branch-edit-btn,
.branch-delete-btn {

    border: none;

    height: 36px;

    padding: 0 14px;

    border-radius: 10px;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;

    transition:
        background .15s ease,
        transform .15s ease;
}

.branch-edit-btn:hover,
.branch-delete-btn:hover {

    transform: translateY(-1px);
}

.branch-edit-btn {

    background:
        rgba(96,165,250,0.18);

    color: #bfdbfe;
}

.branch-edit-btn:hover {

    background:
        rgba(96,165,250,0.30);
}

.branch-delete-btn {

    background:
        rgba(220,38,38,0.16);

    color: #fecaca;
}

.branch-delete-btn:hover {

    background:
        rgba(220,38,38,0.28);
}

/* =========================================================
   BRANCH MODAL
   ========================================================= */

.branch-modal-card {

    width: 100%;

    max-width: 760px;
}

.branch-modal-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 28px;
}

.branch-modal-actions {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-top: 8px;
}

/* =========================================================
   EMPTY / LOADING
   ========================================================= */

.ow-loading,
.ow-empty {

    padding: 40px;

    border-radius: 18px;

    background: white;

    text-align: center;

    color: #64748b;

    border:
        1px solid #e5e7eb;
}

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

@media (max-width: 1100px) {

    .ow-card-blue {

        max-width: 100%;
    }
}

@media (max-width: 900px) {

    .sidebar {

        width: 100%;

        min-height: auto;

        position: relative;
    }

    .page {
        flex-direction: column;
    }

    .ow-header {

        grid-template-columns: 1fr;

        text-align: center;
    }

    .ow-search {
        justify-content: stretch;
    }

    .ow-search-input {
        width: 100%;
    }

    .cust-content {

        grid-template-columns: 1fr;

        gap: 12px;
    }

    .wd-topbar {

        flex-direction: column;

        align-items: stretch;
    }

    .wd-topbar-actions {

        width: 100%;

        justify-content: stretch;
    }

    .branch-btn,
    .wd-chip,
    .ow-modal-close {

        flex: 1;
    }

    .col-md-3,
    .col-md-4,
    .col-md-6 {

        flex: 1 1 100%;
    }

    .branch-list {

        grid-template-columns: 1fr;
    }

    .ow-modal-panel {

        width: 98vw;
    }

    .header-title {

        font-size: 34px;
    }
}

/* =========================================================
   SITE BRANDING
   ========================================================= */

.page {

    --ow-accent-soft:
        color-mix(
            in srgb,
            var(--ow-accent) 16%,
            transparent
        );
}

.page .ow-action-btn,
.page .wd-chip.save,
.page .ow-tab.active,
.page .ow-switch input:checked + span {

    background:
        linear-gradient(
            180deg,
            var(--ow-accent-hover),
            var(--ow-accent)
        );
}

.page .ow-action-btn:hover {

    box-shadow:
        0 10px 24px
        color-mix(
            in srgb,
            var(--ow-accent) 28%,
            transparent
        );
}

.page .ow-link.active {

    box-shadow:
        inset 3px 0 0 var(--ow-accent);
}

.page .ow-input:focus,
.page .form-control.ow-input:focus,
.page .form-select.ow-input:focus {

    border-color: var(--ow-accent);

    box-shadow:
        0 0 0 3px
        color-mix(
            in srgb,
            var(--ow-accent) 18%,
            transparent
        );
}

.branding-color-picker {

    width: 100%;

    min-height: 38px;

    padding: 4px;

    border:
        1px solid #3c3c3c;

    border-radius: 11px;

    background: #1e1e1e;

    cursor: pointer;
}

.branding-color-picker:disabled {

    cursor: not-allowed;

    opacity: .62;
}

.branding-file-input {

    cursor: pointer;
}

.branding-preview {

    display: flex;

    align-items: center;

    justify-content: center;

    min-height: 54px;

    padding: 8px;

    border:
        1px solid rgba(255,255,255,0.08);

    border-radius: 11px;

    background:
        rgba(255,255,255,0.045);
}

.branding-preview img {

    display: block;

    max-width: 170px;

    max-height: 42px;

    object-fit: contain;
}

.branding-preview.favicon img {

    width: 32px;

    height: 32px;
}

.page.theme-light {

    --ow-bg: #f4f7fb;
    --ow-card: #ffffff;
    --ow-surface: #ffffff;
    --ow-surface-2: #f1f5f9;
    --ow-surface-3: #e2e8f0;
    --ow-border: #d9e2ef;
    --ow-muted: #64748b;

    background: #f4f7fb;

    color: #172033;
}

.page.theme-light main {

    background: #f4f7fb;

    color: #172033;
}

.page.theme-light .sidebar {

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f7f9fc 55%,
            #edf2f7 100%
        );

    border-right:
        1px solid #d9e2ef;

    color: #172033;
}

.page.theme-light .ow-brand,
.page.theme-light .ow-header,
.page.theme-light .settings-card,
.page.theme-light .cust-row,
.page.theme-light .ow-loading,
.page.theme-light .ow-empty,
.page.theme-light .dashboard-panel,
.page.theme-light .dashboard-metric-card,
.page.theme-light .monitor-row,
.page.theme-light .branch-card,
.page.theme-light .monitor-stat-card,
.page.theme-light .monitor-config-card,
.page.theme-light .monitor-checks-card,
.page.theme-light .monitor-compact-section,
.page.theme-light .incident-card {

    background: #ffffff;

    border:
        1px solid #d9e2ef;

    color: #172033;

    box-shadow:
        0 12px 30px rgba(15,23,42,0.08);
}

.page.theme-light .ow-header {

    color: #172033;
}

.page.theme-light .ow-section,
.page.theme-light .cust-sub,
.page.theme-light .cust-label,
.page.theme-light .monitor-url,
.page.theme-light .monitor-col-label,
.page.theme-light .dashboard-subtitle,
.page.theme-light .dashboard-row-sub,
.page.theme-light .monitor-detail-subtitle,
.page.theme-light .incident-meta {

    color: #64748b;
}

.page.theme-light .ow-link {

    color: #334155;
}

.page.theme-light .ow-link:hover,
.page.theme-light .ow-link.active {

    background: #edf2f7;

    color: #0f172a;
}

.page.theme-light .ow-logout {

    background: #fee2e2;

    color: #991b1b;
}

.page.theme-light .ow-input,
.page.theme-light .form-control.ow-input,
.page.theme-light .form-select.ow-input,
.page.theme-light .ow-search-input {

    background: #ffffff;

    border:
        1px solid #cbd5e1;

    color: #0f172a;
}

.page.theme-light .ow-input:disabled {

    background: #f1f5f9;

    color: #64748b;
}

.page.theme-light .form-label,
.page.theme-light .settings-section-title,
.page.theme-light .cust-title,
.page.theme-light .cust-val,
.page.theme-light .licence-status-grid strong {

    color: #0f172a;
}

.page.theme-light .settings-help-box,
.page.theme-light .licence-status-grid div,
.page.theme-light .branding-preview,
.page.theme-light .dashboard-row,
.page.theme-light .dashboard-empty,
.page.theme-light .monitor-muted-box,
.page.theme-light .monitor-check-row,
.page.theme-light .monitor-type {

    background: #f8fafc;

    border-color: #d9e2ef;

    color: #475569;
}

.page.theme-light .licence-status-grid span {

    color: #64748b;
}

.page.theme-light .branding-color-picker {

    background: #ffffff;

    border-color: #cbd5e1;
}

/* =========================================================
   CLIENT MODAL BUTTON FINAL FIT
   ========================================================= */

.ow-modal .detail-page .wd-topbar-actions {

    gap: 7px;

    align-items: center;
}

.ow-modal .detail-page .wd-topbar-actions .wd-chip,
.ow-modal .detail-page .wd-topbar-actions .ow-action-btn,
.ow-modal .detail-page .wd-topbar-actions .branch-btn,
.ow-modal .detail-page .status-page-share .wd-chip,
.ow-modal .branch-modal-actions .wd-chip,
.ow-modal .branch-modal-actions .ow-action-btn {

    flex: 0 0 auto;

    min-width: 0;

    width: auto;

    height: 32px;

    min-height: 32px;

    padding:
        0 12px;

    border-radius: 10px;

    font-size: 11px;

    line-height: 1;

    box-shadow: none;
}

.ow-modal .detail-page .wd-topbar-actions .ow-action-btn,
.ow-modal .detail-page .wd-topbar-actions .branch-btn,
.ow-modal .branch-modal-actions .ow-action-btn {

    padding:
        0 13px;
}

.ow-modal .detail-page .wd-topbar-actions .ow-modal-close,
.ow-modal .detail-page .wd-topbar-actions .top-close {

    width: 34px;

    height: 34px;

    min-width: 34px;

    flex-basis: 34px;

    font-size: 16px;
}

.ow-modal .detail-page .ow-tabs .ow-tab {

    height: 36px;

    padding:
        0 18px;

    border-radius: 10px;

    font-size: 12px;
}

.ow-modal .detail-page .status-page-share {

    grid-template-columns:
        minmax(260px, 1fr)
        82px
        auto
        auto
        auto;

    gap: 7px;
}

.ow-modal .detail-page .status-page-share .cust-badge {

    height: 32px;

    min-width: 78px;

    border-radius: 10px;

    font-size: 10px;
}

.ow-modal .detail-page .status-page-share .ow-input {

    min-height: 38px;
}

@media (max-width: 900px) {

    .ow-modal .detail-page .wd-topbar-actions {
        justify-content: flex-start;
    }

    .ow-modal .detail-page .status-page-share {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   BRANDING CARD AND LIGHT THEME REPAIR
   ========================================================= */

.branding-card {

    overflow: hidden;
}

.branding-settings-grid {

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

    align-items: end;
}

.branding-settings-grid .branding-field {

    min-width: 0;
}

.branding-accent-field {
    grid-column: span 2;
}

.branding-hex-field {
    grid-column: span 3;
}

.branding-theme-field {
    grid-column: span 2;
}

.branding-logo-upload-field {
    grid-column: span 5;
}

.branding-favicon-upload-field {
    grid-column: span 4;
}

.branding-logo-preview-field {
    grid-column: span 4;
}

.branding-favicon-preview-field {
    grid-column: span 2;
}

.branding-help-field {
    grid-column: span 2;
}

.branding-settings-grid .form-label {

    min-height: 16px;
}

.branding-color-picker,
.branding-settings-grid .ow-input {

    height: 38px;
}

.branding-file-input {

    width: 100%;

    overflow: hidden;

    white-space: nowrap;
}

.branding-preview {

    min-height: 38px;

    height: 38px;
}

.branding-preview img {

    max-width: min(220px, 100%);

    max-height: 30px;
}

.branding-preview.favicon img {

    width: 24px;

    height: 24px;
}

.branding-help-field .settings-help-box {

    height: 38px;

    min-height: 38px;

    overflow: hidden;
}

.page.theme-light .ow-card,
.page.theme-light .ow-card-blue,
.page.theme-light .monitor-detail-card,
.page.theme-light .maintenance-modal-card,
.page.theme-light .maintenance-detail-card,
.page.theme-light .incident-detail-card,
.page.theme-light .branch-modal-card {

    background: #ffffff;

    border:
        1px solid #d9e2ef;

    color: #172033;

    box-shadow:
        0 18px 45px rgba(15,23,42,0.12);
}

.page.theme-light .ow-modal-backdrop {

    background:
        rgba(15,23,42,0.42);
}

.page.theme-light .ow-modal-close {

    background: #e2e8f0;

    color: #0f172a;
}

.page.theme-light .header-title,
.page.theme-light .branch-title,
.page.theme-light .dashboard-panel-header h3,
.page.theme-light .dashboard-row-title,
.page.theme-light .dashboard-metric-card strong,
.page.theme-light .monitor-name,
.page.theme-light .monitor-col-value,
.page.theme-light .monitor-section-title,
.page.theme-light .monitor-info-grid strong,
.page.theme-light .monitor-health-summary-grid strong,
.page.theme-light .monitor-notification-row strong,
.page.theme-light .incident-title-cell strong,
.page.theme-light .maintenance-target-row strong,
.page.theme-light .alert-template-preview {

    color: #0f172a;
}

.page.theme-light .monitor-type,
.page.theme-light .dashboard-panel-header span,
.page.theme-light .monitor-check-row,
.page.theme-light .monitor-muted-box,
.page.theme-light .dashboard-row,
.page.theme-light .dashboard-empty,
.page.theme-light .monitor-notification-row,
.page.theme-light .monitor-client-result,
.page.theme-light .maintenance-target-row,
.page.theme-light .toggle-row,
.page.theme-light .alert-template-preview {

    background: #f8fafc;

    border-color: #d9e2ef;

    color: #334155;
}

.page.theme-light .monitor-type-sub,
.page.theme-light .monitor-stat-label,
.page.theme-light .monitor-info-grid span,
.page.theme-light .monitor-health-subtitle,
.page.theme-light .monitor-notification-row span,
.page.theme-light .monitor-notification-recipients,
.page.theme-light .dashboard-row-meta,
.page.theme-light .dashboard-row-value,
.page.theme-light .maintenance-target-row small,
.page.theme-light .branch-meta {

    color: #64748b;
}

.page.theme-light .monitor-health-tick.up,
.page.theme-light .uptime-fill {

    background: #10b981;
}

.page.theme-light .cust-badge.ok,
.page.theme-light .dashboard-health-pill.ok {

    background: #d1fae5;

    color: #047857;
}

.page.theme-light .cust-badge.warn,
.page.theme-light .dashboard-health-pill.warn {

    background: #fef3c7;

    color: #92400e;
}

.page.theme-light .cust-badge.off,
.page.theme-light .dashboard-health-pill.off,
.page.theme-light .wd-chip.off,
.page.theme-light .monitor-create-error,
.page.theme-light .monitor-error-box {

    background: #fee2e2;

    color: #991b1b;
}

.page.theme-light .wd-chip.edit {

    background: #e2e8f0;

    color: #0f172a;
}

.page.theme-light .wd-chip.cancel,
.page.theme-light .ow-tab {

    background: #f1f5f9;

    border:
        1px solid #d9e2ef;

    color: #334155;
}

.page.theme-light .ow-tab.active {

    color: #ffffff;
}

.page.theme-light .monitor-ssl-status-card.healthy {

    background: #d1fae5;

    border-color: #86efac;

    color: #047857;
}

.page.theme-light .monitor-ssl-status-card.warning {

    background: #fef3c7;

    border-color: #facc15;

    color: #92400e;
}

.page.theme-light .monitor-ssl-status-card.expired {

    background: #fee2e2;

    border-color: #fca5a5;

    color: #991b1b;
}

.page.theme-light .monitor-ssl-status-card.neutral {

    background: #f8fafc;

    border-color: #d9e2ef;

    color: #334155;
}

.page.theme-light .monitor-ssl-status-card strong,
.page.theme-light .monitor-ssl-status-card small {

    color: inherit;
}

.page.theme-light .branding-card {

    background: #ffffff;
}

.page.theme-light .branding-preview {

    background: #f8fafc;

    border-color: #d9e2ef;
}

@media (max-width: 1250px) {

    .branding-accent-field,
    .branding-theme-field,
    .branding-favicon-preview-field,
    .branding-help-field {
        grid-column: span 3;
    }

    .branding-hex-field,
    .branding-logo-upload-field,
    .branding-favicon-upload-field,
    .branding-logo-preview-field {
        grid-column: span 6;
    }
}

@media (max-width: 900px) {

    .branding-settings-grid {
        grid-template-columns: 1fr;
    }

    .branding-accent-field,
    .branding-hex-field,
    .branding-theme-field,
    .branding-logo-upload-field,
    .branding-favicon-upload-field,
    .branding-logo-preview-field,
    .branding-favicon-preview-field,
    .branding-help-field {
        grid-column: 1;
    }

    .branding-help-field .settings-help-box {
        height: auto;
        min-height: 38px;
    }
}

/* =========================================================
   MODAL ACTION BUTTON REFINEMENT
   ========================================================= */

.ow-modal .branch-modal-actions,
.ow-modal .wd-topbar-actions,
.ow-modal .monitor-detail-actions,
.ow-modal .status-page-share {

    gap: 8px;
}

.ow-modal .wd-chip,
.ow-modal .ow-action-btn,
.ow-modal .branch-btn,
.ow-modal .status-page-share .wd-chip {

    min-width: auto;

    height: 36px;

    padding:
        0 14px;

    border-radius: 12px;

    font-size: 12px;

    font-weight: 800;

    line-height: 1;
}

.ow-modal .ow-action-btn,
.ow-modal .wd-chip.save {

    box-shadow:
        0 8px 18px
        color-mix(
            in srgb,
            var(--ow-accent) 18%,
            transparent
        );
}

.ow-modal .wd-chip:hover,
.ow-modal .ow-action-btn:hover {

    transform: translateY(-1px);
}

.ow-modal .wd-chip.edit,
.ow-modal .wd-chip.cancel,
.wd-chip.neutral {

    background: #e5e7eb;

    color: #111827;
}

.ow-modal .wd-chip.neutral {

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

    color: #e5e7eb;

    border:
        1px solid rgba(255,255,255,0.12);
}

.ow-modal .wd-chip.ok {

    background:
        rgba(22,163,74,0.18);

    color: #86efac;
}

.ow-modal .wd-chip.off {

    background:
        rgba(239,68,68,0.16);

    color: #fca5a5;
}

.ow-modal .ow-modal-close,
.ow-modal .top-close,
.ow-modal .topbar-close {

    width: 38px;

    height: 38px;

    flex: 0 0 38px;

    border-radius: 999px;

    font-size: 17px;
}

.ow-modal .status-page-share {

    display: grid;

    grid-template-columns:
        minmax(260px, 1fr)
        auto
        auto
        auto
        auto;

    align-items: center;
}

.ow-modal .status-page-share .ow-input {

    min-width: 0;
}

.ow-modal .status-page-share .cust-badge {

    height: 34px;

    min-width: 82px;

    border-radius: 12px;

    font-size: 11px;
}

.page.theme-light .ow-modal .wd-chip.neutral {

    background: #f1f5f9;

    border:
        1px solid #d9e2ef;

    color: #334155;
}

.page.theme-light .ow-modal .wd-chip.edit,
.page.theme-light .ow-modal .wd-chip.cancel {

    background: #e2e8f0;

    color: #0f172a;
}

.page.theme-light .ow-modal .wd-chip.ok {

    background: #d1fae5;

    color: #047857;
}

.page.theme-light .ow-modal .wd-chip.off {

    background: #fee2e2;

    color: #991b1b;
}

@media (max-width: 900px) {

    .ow-modal .status-page-share {
        grid-template-columns: 1fr;
    }

    .ow-modal .status-page-share .wd-chip,
    .ow-modal .status-page-share .cust-badge {
        width: 100%;
    }
}

/* =========================================================
   PUBLIC STATUS PAGES
   ========================================================= */

.status-page-share {

    display: flex;

    align-items: center;

    gap: 10px;

    flex-wrap: wrap;
}

.status-page-share .ow-input {

    flex: 1 1 420px;
}

.status-page-share .cust-badge {

    flex: 0 0 auto;
}

.status-page-share .ow-input {

    flex: 1;
}

.monitor-toggle-help {

    margin-top: 8px;

    color: rgba(255,255,255,0.58);

    font-size: 11px;

    line-height: 1.35;
}

.public-status-page {

    min-height: 100vh;

    background:
        radial-gradient(
            circle at 12% 10%,
            rgba(255,76,82,0.16),
            transparent 34%
        ),
        #1b1b1d;

    color: white;

    padding:
        40px
        22px;
}

.public-status-shell {

    width: min(1120px, 100%);

    margin: 0 auto;

    background: transparent;
}

.public-status-card {

    border-radius: 22px;

    padding:
        28px
        30px;

    background:
        linear-gradient(
            180deg,
            #2c2c30,
            #242426
        );

    border:
        1px solid rgba(255,255,255,0.12);

    box-shadow:
        0 26px 70px rgba(0,0,0,0.42);
}

.public-status-header {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 22px;

    margin-bottom: 22px;
}

.public-status-logo {

    display: block;

    width: 188px;

    max-width: 100%;

    height: auto;

    margin-bottom: 24px;
}

.public-status-header h1 {

    margin: 0;

    font-size: 34px;

    line-height: 1.05;

    font-weight: 900;
}

.public-status-header p {

    margin-top: 8px;

    color: rgba(255,255,255,0.68);

    font-size: 14px;
}

.public-status-state {

    min-width: 140px;

    height: 38px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border-radius: 999px;

    padding: 0 18px;

    font-size: 13px;

    font-weight: 900;
}

.public-status-state.online,
.public-status-dot.online,
.public-status-service-meta .online {

    background:
        rgba(22,163,74,0.18);

    color: #86efac;
}

.public-status-state.degraded,
.public-status-dot.degraded,
.public-status-service-meta .degraded {

    background:
        rgba(245,158,11,0.18);

    color: #fde68a;
}

.public-status-state.offline,
.public-status-dot.offline,
.public-status-service-meta .offline {

    background:
        rgba(239,68,68,0.20);

    color: #fca5a5;
}

.public-status-state.unknown,
.public-status-dot.unknown,
.public-status-service-meta .unknown {

    background:
        rgba(148,163,184,0.18);

    color: #cbd5e1;
}

.public-status-summary {

    display: grid;

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

    gap: 12px;

    margin-bottom: 22px;
}

.public-status-summary div,
.public-status-branch,
.public-status-empty {

    border-radius: 16px;

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

    border:
        1px solid rgba(255,255,255,0.09);
}

.public-status-summary div {

    padding: 16px;
}

.public-status-summary span {

    display: block;

    color: rgba(255,255,255,0.58);

    font-size: 11px;

    font-weight: 900;

    letter-spacing: .5px;

    text-transform: uppercase;
}

.public-status-summary strong {

    display: block;

    margin-top: 8px;

    font-size: 26px;

    line-height: 1;
}

.public-status-branches {

    display: grid;

    gap: 16px;
}

.public-status-branch {

    padding: 18px;
}

.public-status-branch h2 {

    margin: 0 0 14px;

    font-size: 18px;

    font-weight: 900;
}

.public-status-services {

    display: grid;

    gap: 10px;
}

.public-status-type-group {

    display: grid;

    gap: 10px;

    margin-top: 16px;
}

.public-status-type-group:first-of-type {

    margin-top: 0;
}

.public-status-type-group h3 {

    color: rgba(255,255,255,0.68);

    font-size: 12px;

    font-weight: 900;

    letter-spacing: .7px;

    text-transform: uppercase;
}

.public-status-service {

    display: grid;

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

    align-items: center;

    gap: 16px;

    min-height: 56px;

    padding:
        10px
        12px;

    border-radius: 12px;

    background:
        rgba(255,255,255,0.055);
}

.public-status-service-main {

    display: flex;

    align-items: center;

    gap: 12px;

    min-width: 0;
}

.public-status-dot {

    width: 12px;

    height: 12px;

    flex: 0 0 12px;

    border-radius: 999px;
}

.public-status-dot.online {
    background: #16a34a;
}

.public-status-dot.degraded {
    background: #f59e0b;
}

.public-status-dot.offline {
    background: #ef4444;
}

.public-status-dot.unknown {
    background: #94a3b8;
}

.public-status-service-main strong {

    display: block;

    font-size: 14px;

    font-weight: 900;
}

.public-status-service-main span,
.public-status-service-meta span {

    display: block;

    margin-top: 3px;

    color: rgba(255,255,255,0.58);

    font-size: 12px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.public-status-service-meta {

    min-width: 160px;

    text-align: right;
}

.public-status-service-meta strong {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 90px;

    height: 28px;

    border-radius: 999px;

    margin-top: 4px;

    font-size: 12px;

    font-weight: 900;
}

.public-status-empty {

    padding: 34px;

    text-align: center;

    color: rgba(255,255,255,0.68);
}

.public-status-footer {

    margin-top: 22px;

    color: rgba(255,255,255,0.52);

    font-size: 12px;

    text-align: right;
}

/* =========================================================
   MONITOR DETAIL ALIGNMENT OVERRIDES
   ========================================================= */

.monitor-health-overview {

    grid-template-columns:
        minmax(0, 1fr)
        minmax(420px, .9fr);

    gap: 18px;

    align-items: stretch;
}

.monitor-health-summary-card,
.monitor-health-history-card {

    min-height: 0;

    padding:
        12px
        16px;
}

.monitor-health-summary-grid {

    gap:
        10px
        16px;
}

.monitor-health-summary-grid span {

    margin-bottom: 3px;
}

.monitor-health-summary-grid strong {

    font-size: 13px;

    line-height: 1.25;
}

.monitor-health-history-card {

    display: flex;

    flex-direction: column;

    justify-content: center;
}

@media (max-width: 900px) {

    .status-page-share,
    .public-status-header {

        flex-direction: column;
    }

    .status-page-share .wd-chip {

        width: 100%;
    }

    .public-status-summary,
    .public-status-service,
    .monitor-health-overview {

        grid-template-columns: 1fr;
    }

    .public-status-service-meta {

        min-width: 0;

        text-align: left;
    }
}

/* =========================================================
   MONITOR DETAIL HEALTH HISTORY
   ========================================================= */

.monitor-health-overview {

    display: grid;

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

    gap: 14px;

    margin-bottom: 18px;
}

.monitor-health-summary-card,
.monitor-health-history-card {

    min-height: 92px;

    padding:
        14px
        16px;
}

.monitor-health-summary-grid {

    display: grid;

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

    gap: 12px 18px;
}

.monitor-health-summary-grid span {

    display: block;

    margin-bottom: 4px;

    color: rgba(255,255,255,0.54);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: .6px;

    text-transform: uppercase;
}

.monitor-health-summary-grid strong {

    display: block;

    color: white;

    font-size: 15px;

    font-weight: 800;

    line-height: 1.25;

    overflow-wrap: anywhere;
}

.monitor-health-history-header {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 12px;

    margin-bottom: 12px;
}

.monitor-health-history-header strong {

    color: rgba(255,255,255,0.72);

    font-size: 12px;

    font-weight: 800;
}

.monitor-health-subtitle,
.monitor-health-empty {

    color: rgba(255,255,255,0.58);

    font-size: 11px;

    line-height: 1.35;
}

.monitor-health-empty {

    padding-top: 8px;
}

.monitor-health-ticks {

    display: grid;

    grid-template-columns:
        repeat(
            24,
            minmax(4px, 1fr)
        );

    gap: 4px;

    align-items: stretch;
}

.monitor-health-tick {

    display: block;

    height: 18px;

    border-radius: 4px;

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

    border: 1px solid rgba(255,255,255,0.08);
}

.monitor-health-tick.up {

    background: rgba(22,163,74,0.80);

    border-color: rgba(34,197,94,0.72);
}

.monitor-health-tick.down {

    background: rgba(255,82,82,0.84);

    border-color: rgba(255,82,82,0.92);
}

.monitor-health-tick.missing {

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

    border-color: rgba(255,255,255,0.12);
}

@media (max-width: 900px) {

    .monitor-health-overview,
    .monitor-health-summary-grid {

        grid-template-columns: 1fr;
    }

    .monitor-health-ticks {

        grid-template-columns:
            repeat(
                24,
                minmax(4px, 1fr)
            );
    }
}

/* =========================================================
   INCIDENTS PAGE LAYOUT
   Keep separate from monitor detail .incident-list cards.
   ========================================================= */

.incident-page-list {

    display: flex;

    flex-direction: column;

    gap: 12px;

    width: 100%;

    max-width: 100%;
}

.incident-page-row {

    display: grid;

    grid-template-columns:
        110px
        125px
        minmax(260px, 1.7fr)
        minmax(130px, .8fr)
        95px
        142px
        105px;

    gap: 12px;

    align-items: center;

    width: 100%;

    min-height: 72px;

    padding:
        13px
        16px;

    border: 1px solid #3c3c3c;

    border-radius: 16px;

    background: #252526;

    color: #f5f5f5;

    text-align: left;

    cursor: pointer;

    box-shadow:
        0 10px 24px rgba(0,0,0,0.18);

    transition:
        background .15s ease,
        border-color .15s ease,
        transform .15s ease;
}

.incident-page-row:hover {

    background: #2d2d30;

    border-color: #4d4d4d;

    transform: translateY(-1px);
}

.incident-page-row > * {

    min-width: 0;
}

.incident-page-row .incident-title-cell strong,
.incident-page-row .incident-title-cell span,
.incident-page-row .monitor-col-value {

    display: block;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.incident-page-row .cust-badge,
.incident-page-row .incident-severity {

    min-width: 82px;

    height: 30px;

    font-size: 11px;
}

@media (max-width: 1450px) {

    .incident-page-row {

        grid-template-columns:
            96px
            106px
            minmax(220px, 1fr)
            minmax(110px, .7fr)
            82px
            118px
            88px;

        gap: 10px;

        padding:
            12px
            14px;
    }
}

@media (max-width: 1180px) {

    .incident-page-row {

        grid-template-columns:
            1fr
            1fr
            2fr;
    }
}

@media (max-width: 760px) {

    .incident-page-row {

        grid-template-columns: 1fr;
    }
}

/* =========================================================
   INCIDENT LIST CORRECTIONS
   ========================================================= */

.incident-list {

    display: flex;

    flex-direction: column;

    gap: 12px;

    width: 100%;
}

.incident-row {

    width: 100%;

    display: grid;

    grid-template-columns:
        112px
        126px
        minmax(260px, 1.7fr)
        minmax(130px, .8fr)
        110px
        150px
        110px;

    gap: 14px;

    align-items: center;

    min-height: 74px;

    padding:
        14px
        18px;
}

.incident-row > * {

    min-width: 0;
}

.incident-row .monitor-col-value {

    display: block;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.incident-title-cell strong,
.incident-title-cell span {

    max-width: 100%;
}

@media (max-width: 1400px) {

    .incident-row {

        grid-template-columns:
            104px
            116px
            minmax(220px, 1fr)
            minmax(120px, .7fr)
            96px
            132px
            96px;

        gap: 10px;

        padding:
            12px
            14px;
    }
}

@media (max-width: 1050px) {

    .incident-row {

        grid-template-columns:
            1fr
            1fr;
    }
}

/* =========================================================
   EMAIL QUEUE
   ========================================================= */

.email-queue-list {

    display: flex;

    flex-direction: column;

    gap: 12px;
}

.email-queue-row {

    display: grid;

    grid-template-columns:
        110px
        minmax(260px, 1.6fr)
        minmax(180px, .9fr)
        110px
        150px
        120px;

    gap: 14px;

    align-items: center;

    width: 100%;

    min-height: 78px;

    padding:
        14px
        18px;

    border: 1px solid #3c3c3c;

    border-radius: 18px;

    background: #252526;

    color: #f5f5f5;

    box-shadow:
        0 10px 24px rgba(0,0,0,0.18);
}

.email-queue-row > * {

    min-width: 0;
}

.email-queue-actions {

    display: flex;

    justify-content: flex-end;
}

.email-queue-error {

    grid-column: 2 / -1;

    padding:
        10px
        12px;

    border-radius: 12px;

    background: rgba(255,82,82,0.14);

    border: 1px solid rgba(255,82,82,0.28);

    color: #ffb3b3;

    font-size: 12px;

    line-height: 1.4;
}

@media (max-width: 1050px) {

    .email-queue-row {

        grid-template-columns: 1fr;
    }

    .email-queue-error {

        grid-column: auto;
    }
}

/* =========================================================
   MONITORS
   ========================================================= */

.monitor-list {

    display: flex;

    flex-direction: column;

    gap: 14px;
}

.monitor-row {

    width: 100%;

    border: none;

    background:
        linear-gradient(
            180deg,
            #132848,
            #10213c
        );

    border-radius: 22px;

    padding: 22px;

    display: grid;

    grid-template-columns:
        40px
        2fr
        1fr
        140px
        180px
        140px;

    gap: 18px;

    align-items: center;

    text-align: left;

    cursor: pointer;

    transition:
        transform .15s ease,
        border-color .15s ease,
        box-shadow .15s ease;

    border:
        1px solid rgba(255,255,255,0.06);
}

.monitor-row:hover {

    transform: translateY(-2px);

    border-color:
        rgba(255,255,255,0.12);

    box-shadow:
        0 12px 28px rgba(0,0,0,0.24);
}

.monitor-dot {

    width: 14px;

    height: 14px;

    border-radius: 999px;
}

.monitor-dot.online {
    background: #22c55e;
}

.monitor-dot.degraded {
    background: #f59e0b;
}

.monitor-dot.offline {
    background: #ef4444;
}

.monitor-name {

    font-size: 18px;

    font-weight: 800;

    color: white;
}

.monitor-title-row {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 6px;
}

.monitor-type {

    padding:
        4px 10px;

    border-radius: 999px;

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

    color:
        rgba(255,255,255,0.8);

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;
}

.monitor-url {

    color:
        rgba(255,255,255,0.6);

    font-size: 13px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.monitor-col-label {

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: .5px;

    color:
        rgba(255,255,255,0.5);

    margin-bottom: 6px;
}

.monitor-col-value {

    font-size: 14px;

    font-weight: 700;

    color: white;
}

.uptime-bar {

    width: 100%;

    height: 8px;

    border-radius: 999px;

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

    overflow: hidden;

    margin-top: 10px;
}

.uptime-fill {

    height: 100%;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            #22c55e,
            #16a34a
        );
}

@media (max-width: 1200px) {

    .monitor-row {

        grid-template-columns:
            40px
            1fr;

        gap: 14px;
    }
}

/* =========================================================
   DASHBOARD
   ========================================================= */

.dashboard-header {

    grid-template-columns:
        1fr
        auto;
}

.dashboard-subtitle {

    margin-top: 6px;

    color: rgba(255,255,255,0.66);

    font-size: 13px;

    font-weight: 600;
}

.dashboard-health-pill {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 150px;

    height: 40px;

    padding: 0 18px;

    border-radius: 999px;

    font-size: 13px;

    font-weight: 800;
}

.dashboard-health-pill.ok {

    background:
        rgba(22,163,74,0.16);

    color: #bbf7d0;
}

.dashboard-health-pill.warn {

    background:
        rgba(245,158,11,0.16);

    color: #fde68a;
}

.dashboard-health-pill.off {

    background:
        rgba(220,38,38,0.16);

    color: #fecaca;
}

.dashboard-metrics {

    display: grid;

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

    gap: 14px;

    margin-bottom: 18px;
}

.dashboard-metric-card {

    min-height: 112px;

    padding: 18px;

    border-radius: 18px;

    background:
        linear-gradient(
            180deg,
            #132848,
            #10213c
        );

    border:
        1px solid rgba(255,255,255,0.06);

    box-shadow:
        0 10px 26px rgba(0,0,0,0.12);
}

.dashboard-metric-card span {

    display: block;

    margin-bottom: 12px;

    color: rgba(255,255,255,0.58);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: .6px;

    text-transform: uppercase;
}

.dashboard-metric-card strong {

    display: block;

    color: white;

    font-size: 30px;

    line-height: 1;

    font-weight: 850;
}

.dashboard-metric-card.ok strong {
    color: #86efac;
}

.dashboard-metric-card.warn strong {
    color: #fde68a;
}

.dashboard-metric-card.off strong {
    color: #fecaca;
}

.dashboard-layout {

    display: grid;

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

    gap: 18px;
}

.dashboard-panel {

    min-width: 0;

    border-radius: 20px;

    padding: 18px;

    background:
        linear-gradient(
            180deg,
            #132848,
            #10213c
        );

    border:
        1px solid rgba(255,255,255,0.06);

    box-shadow:
        0 10px 26px rgba(0,0,0,0.12);
}

.dashboard-panel.priority {

    border-color:
        rgba(245,158,11,0.18);
}

.dashboard-panel-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    margin-bottom: 14px;
}

.dashboard-panel-header h3 {

    color: white;

    font-size: 17px;

    line-height: 1.2;

    font-weight: 850;
}

.dashboard-panel-header span {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 34px;

    height: 28px;

    padding: 0 10px;

    border-radius: 999px;

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

    color: rgba(255,255,255,0.76);

    font-size: 12px;

    font-weight: 800;
}

.dashboard-list {

    display: grid;

    gap: 9px;
}

.dashboard-row {

    display: grid;

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

    align-items: center;

    gap: 14px;

    min-height: 58px;

    padding:
        11px
        12px;

    border-radius: 14px;

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

    border:
        1px solid rgba(255,255,255,0.05);
}

.dashboard-row-main {

    min-width: 0;
}

.dashboard-row-title {

    color: white;

    font-size: 14px;

    font-weight: 800;

    line-height: 1.3;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.dashboard-row-sub {

    margin-top: 4px;

    color: rgba(255,255,255,0.58);

    font-size: 12px;

    line-height: 1.35;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.dashboard-row-meta,
.dashboard-row-value {

    color: rgba(255,255,255,0.78);

    font-size: 12px;

    font-weight: 800;

    white-space: nowrap;
}

.dashboard-row-value {

    color: #dbeafe;
}

.dashboard-empty {

    min-height: 120px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 14px;

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

    color: rgba(255,255,255,0.64);

    font-size: 14px;

    font-weight: 700;
}

@media (max-width: 1300px) {

    .dashboard-metrics {

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

/* =========================================================
   CREATE MONITOR MODAL
   ========================================================= */

.monitor-create-card {

    width: 100%;

    max-width: 1040px;

    min-height: 565px;

    padding:
        30px
        34px
        32px;
}

.monitor-create-header {

    align-items: center;

    margin-bottom: 22px;
}

.monitor-create-header .header-title {

    font-size: 38px;

    line-height: 1.05;
}

.monitor-type-grid {

    display: grid;

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

    gap: 10px;

    margin-bottom: 18px;
}

.monitor-type-card {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    justify-content: center;

    min-height: 70px;

    padding:
        12px
        14px;

    border-radius: 14px;

    border:
        1px solid rgba(255,255,255,0.10);

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

    color: white;

    cursor: pointer;

    text-align: left;

    transition:
        background .15s ease,
        border-color .15s ease,
        transform .15s ease;
}

.monitor-type-card:hover {

    transform: translateY(-1px);

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

    border-color:
        rgba(255,255,255,0.18);
}

.monitor-type-card.active {

    background:
        linear-gradient(
            180deg,
            rgba(127,194,255,0.28),
            rgba(87,163,255,0.18)
        );

    border-color:
        rgba(127,194,255,0.52);

    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.08);
}

.monitor-type-title {

    font-size: 14px;

    font-weight: 800;

    line-height: 1.2;
}

.monitor-type-sub {

    margin-top: 4px;

    color: rgba(255,255,255,0.68);

    font-size: 12px;

    line-height: 1.3;
}

.monitor-create-form {

    display: grid;

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

    gap: 16px 18px;

    min-height: 250px;

    align-content: start;
}

.monitor-create-field {

    min-width: 0;
}

.monitor-create-field.span-1 {

    grid-column: span 1;
}

.monitor-create-field.span-2 {

    grid-column: span 2;
}

.monitor-create-field.span-3 {

    grid-column: span 3;
}

.monitor-create-field.span-6 {

    grid-column: span 6;
}

.monitor-create-form .form-label {

    margin-bottom: 7px;
}

.monitor-create-form .ow-input {

    min-height: 48px;
}

.monitor-create-card .branch-modal-actions {

    margin-top: 18px;
}

.monitor-client-picker {

    position: relative;
}

.monitor-client-results {

    position: absolute;

    left: 0;

    right: 0;

    top: calc(100% + 6px);

    z-index: 20;

    display: grid;

    gap: 4px;

    max-height: 260px;

    overflow-y: auto;

    padding: 6px;

    border-radius: 14px;

    background: #252526;

    border:
        1px solid #3c3c3c;

    box-shadow:
        0 18px 36px rgba(0,0,0,0.34);
}

.monitor-client-result {

    min-height: 36px;

    border: none;

    border-radius: 10px;

    padding:
        0
        12px;

    background: transparent;

    color: #d4d4d4;

    text-align: left;

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;
}

.monitor-client-result:hover {

    background: #3e3e42;
}

.monitor-create-error {

    margin-top: 16px;

    padding:
        12px
        14px;

    border-radius: 14px;

    background:
        rgba(220,38,38,0.14);

    border:
        1px solid rgba(220,38,38,0.28);

    color: #fecaca;

    font-size: 13px;

    font-weight: 700;

    line-height: 1.4;
}

/* =========================================================
   MONITOR DETAIL FIXES
   ADD TO BOTTOM OF EXISTING FILE
   ========================================================= */

.monitor-detail-card {

    width: 100%;

    max-width: 1320px;

    min-height: 0;

    padding:
        32px
        36px;

    border-radius: 24px;
}

.monitor-detail-subtitle {

    margin-top: 8px;

    color: rgba(255,255,255,0.72);

    font-size: 13px;

    line-height: 1.4;

    word-break: break-word;
}

.monitor-detail-header {

    align-items: center;

    margin-bottom: 20px;
}

.monitor-detail-header .header-title {

    font-size: 34px;

    line-height: 1.05;
}

.monitor-detail-actions {

    margin-top: 0;

    margin-bottom: 20px;

    gap: 10px;
}

.monitor-detail-actions .wd-chip {

    min-width: 92px;

    height: 36px;

    padding:
        0 16px;

    font-size: 13px;
}

/* =========================================================
   MONITOR ACTION BUTTONS
   ========================================================= */

.wd-chip.ok {

    background:
        rgba(22,163,74,0.18);

    color: #bbf7d0;
}

.wd-chip.off {

    background:
        rgba(220,38,38,0.18);

    color: #fecaca;
}

/* =========================================================
   MONITOR STATS
   ========================================================= */

.monitor-detail-stats {

    display: grid;

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

    gap: 14px;

    margin-bottom: 18px;
}

.monitor-stat-card {

    border-radius: 16px;

    padding: 16px 18px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.08),
            rgba(255,255,255,0.05)
        );

    border:
        1px solid rgba(255,255,255,0.08);

    backdrop-filter: blur(6px);
}

.monitor-stat-label {

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: .6px;

    color: rgba(255,255,255,0.55);

    margin-bottom: 8px;

    font-weight: 700;
}

.monitor-stat-value {

    font-size: 24px;

    font-weight: 800;

    color: white;
}

.monitor-stat-value-small {

    font-size: 13px;

    font-weight: 700;

    line-height: 1.5;

    color: white;
}

/* =========================================================
   MONITOR SECTIONS
   ========================================================= */

.monitor-section {

    display: flex;

    flex-direction: column;

    gap: 14px;

    margin-top: 0;
}

.monitor-section-title {

    font-size: 16px;

    font-weight: 800;

    color: white;
}

.monitor-detail-layout {

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(420px, .9fr);

    gap: 18px;

    align-items: start;
}

.monitor-config-card {

    grid-column: 1;

    grid-row: 1;
}

.monitor-checks-card {

    grid-column: 2;

    grid-row:
        1
        / 3;
}

.monitor-config-card,
.monitor-checks-card,
.monitor-compact-section {

    border-radius: 18px;

    padding: 18px;

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

    border:
        1px solid rgba(255,255,255,0.08);
}

.monitor-compact-section {

    margin-top: 18px;
}

.monitor-info-grid,
.monitor-edit-grid {

    display: grid;

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

    gap: 14px;
}

.monitor-info-grid div {

    min-width: 0;
}

.monitor-info-grid span {

    display: block;

    color: rgba(255,255,255,0.54);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: .6px;

    margin-bottom: 5px;

    text-transform: uppercase;
}

.monitor-info-grid strong {

    display: block;

    color: white;

    font-size: 14px;

    line-height: 1.4;

    overflow-wrap: anywhere;
}

.monitor-ssl-status-card {

    display: flex;

    flex-direction: column;

    gap: 5px;

    padding:
        12px
        14px;

    border-radius: 14px;

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

    border:
        1px solid rgba(255,255,255,0.10);
}

.monitor-ssl-status-card span {

    color:
        rgba(255,255,255,0.64);

    margin-bottom: 0;
}

.monitor-ssl-status-card strong {

    font-size: 16px;
}

.monitor-ssl-status-card small {

    color:
        rgba(255,255,255,0.72);

    font-size: 12px;

    line-height: 1.35;
}

.monitor-ssl-status-card.healthy {

    background:
        rgba(22,163,74,0.13);

    border-color:
        rgba(34,197,94,0.32);
}

.monitor-ssl-status-card.healthy strong {
    color: #86efac;
}

.monitor-ssl-status-card.warning {

    background:
        rgba(245,158,11,0.14);

    border-color:
        rgba(245,158,11,0.34);
}

.monitor-ssl-status-card.warning strong {
    color: #fde68a;
}

.monitor-ssl-status-card.expired {

    background:
        rgba(239,68,68,0.16);

    border-color:
        rgba(239,68,68,0.42);
}

.monitor-ssl-status-card.expired strong {
    color: #fca5a5;
}

.monitor-ssl-status-card.neutral strong {
    color: #e5e7eb;
}

.monitor-check-table {

    display: grid;

    gap: 8px;
}

.monitor-check-row {

    display: grid;

    grid-template-columns:
        90px
        minmax(140px, 1fr)
        90px;

    align-items: center;

    gap: 12px;

    min-height: 38px;

    padding:
        8px
        10px;

    border-radius: 12px;

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

    color: rgba(255,255,255,0.78);

    font-size: 13px;
}

.monitor-check-row .cust-badge {

    justify-self: start;
}

.monitor-muted-box {

    min-height: 80px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 14px;

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

    color: rgba(255,255,255,0.68);

    font-size: 14px;
}

/* =========================================================
   INCIDENTS
   ========================================================= */

.incident-list {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(240px, 1fr)
        );

    gap: 12px;
}

.incident-card {

    border-radius: 14px;

    padding: 14px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.08),
            rgba(255,255,255,0.05)
        );

    border:
        1px solid rgba(255,255,255,0.08);
}

.incident-title {

    font-size: 14px;

    font-weight: 800;

    color: white;

    margin-bottom: 8px;
}

.incident-meta {

    font-size: 12px;

    line-height: 1.5;

    color: rgba(255,255,255,0.72);
}

/* =========================================================
   MONITOR ERROR BOX
   ========================================================= */

.monitor-error-box {

    border-radius: 14px;

    padding: 14px;

    background:
        rgba(220,38,38,0.14);

    border:
        1px solid rgba(220,38,38,0.28);

    color: #fecaca;

    line-height: 1.5;

    font-size: 13px;

    white-space: pre-wrap;

    word-break: break-word;
}

.monitor-error-text {

    color: #fecaca !important;

    margin-top: 10px;
}

/* =========================================================
   MODAL FIXES
   ========================================================= */

.ow-modal {

    display: flex;

    justify-content: center;

    align-items: flex-start;
}

.ow-modal-panel {

    display: flex;

    justify-content: center;

    align-items: flex-start;

    padding-top: 30px;

    padding-bottom: 30px;
}

/* =========================================================
   FIX BOOTSTRAP OVERRIDES
   ========================================================= */

.row.g-3 {

    margin-left: 0 !important;

    margin-right: 0 !important;
}

.row.g-3 > * {

    padding-left: 0 !important;

    padding-right: 0 !important;
}

.form-control.ow-input {

    width: 100%;

    min-height: 48px;

    border: none;

    border-radius: 14px;

    background: #f8fafc;

    color: #0f172a;

    padding:
        12px
        16px;

    font-size: 14px;
}

select.form-control.ow-input {

    appearance: auto;
}

/* =========================================================
   MONITOR MODAL RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .dashboard-header,
    .dashboard-metrics,
    .dashboard-layout {

        grid-template-columns: 1fr;
    }

    .dashboard-health-pill {

        justify-self: stretch;

        width: 100%;
    }

    .dashboard-row {

        grid-template-columns: 1fr;

        align-items: start;
    }

    .monitor-create-card {

        min-height: 0;

        padding:
            22px
            18px;
    }

    .monitor-create-header .header-title {

        font-size: 32px;
    }

    .monitor-type-grid,
    .monitor-create-form {

        grid-template-columns: 1fr;
    }

    .monitor-create-field.span-1,
    .monitor-create-field.span-2,
    .monitor-create-field.span-3,
    .monitor-create-field.span-6 {

        grid-column: span 1;
    }

    .monitor-create-form {

        min-height: 0;
    }

    .monitor-detail-stats,
    .incident-list,
    .monitor-detail-layout,
    .monitor-info-grid,
    .monitor-edit-grid {

        grid-template-columns: 1fr;
    }

    .monitor-detail-card {

        padding:
            22px
            18px;
    }

    .monitor-config-card,
    .monitor-checks-card,
    .monitor-notification-card {

        grid-column: auto;

        grid-row: auto;
    }

    .monitor-detail-header {

        align-items: flex-start;
    }

    .monitor-check-row {

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

    .monitor-check-row span:nth-child(3) {

        display: none;
    }

    .monitor-row {

        grid-template-columns: 1fr;

        gap: 14px;
    }
}

/* =========================================================
   NOTIFICATIONS / SETTINGS
   ========================================================= */

.monitor-create-field.span-4,
.settings-field.span-4 {

    grid-column: span 4;
}

.monitor-toggle-field,
.settings-toggle-field {

    display: flex;

    flex-direction: column;

    justify-content: flex-end;
}

.ow-switch {

    display: inline-flex;

    align-items: center;

    width: 54px;

    height: 30px;

    cursor: pointer;
}

.ow-switch input {

    position: absolute;

    opacity: 0;

    pointer-events: none;
}

.ow-switch span {

    position: relative;

    display: block;

    width: 54px;

    height: 30px;

    border-radius: 999px;

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

    border: 1px solid rgba(255,255,255,0.12);

    transition:
        background .15s ease,
        border-color .15s ease;
}

.ow-switch span::after {

    content: "";

    position: absolute;

    top: 4px;

    left: 4px;

    width: 20px;

    height: 20px;

    border-radius: 999px;

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

    transition: transform .15s ease;
}

.ow-switch input:checked + span {

    background: rgba(255,82,82,0.82);

    border-color: rgba(255,82,82,0.95);
}

.ow-switch input:checked + span::after {

    transform: translateX(24px);
}

.monitor-notification-card {

    grid-column: 1;

    grid-row: 2;
}

.monitor-notification-list {

    display: grid;

    gap: 10px;
}

.monitor-notification-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    padding:
        10px
        12px;

    border-radius: 12px;

    background: rgba(255,255,255,0.045);
}

.monitor-notification-row span,
.monitor-notification-recipients {

    color: rgba(255,255,255,0.62);

    font-size: 12px;
}

.monitor-notification-row strong {

    color: white;

    font-size: 13px;
}

.monitor-notification-recipients {

    overflow-wrap: anywhere;
}

.settings-layout {

    display: grid;

    gap: 16px;
}

.settings-card {

    border-radius: 20px;

    padding:
        20px
        22px;

    background: var(--ow-surface, #242426);

    border: 1px solid var(--ow-line, rgba(255,255,255,0.10));

    box-shadow: 0 16px 35px rgba(0,0,0,0.22);
}

.settings-section-title {

    color: white;

    font-size: 18px;

    font-weight: 800;

    margin-bottom: 16px;
}

.settings-grid {

    display: grid;

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

    gap: 16px 18px;
}

.settings-field {

    min-width: 0;
}

.settings-field.span-1 {
    grid-column: span 1;
}

.settings-field.span-2 {
    grid-column: span 2;
}

.settings-field.span-3 {
    grid-column: span 3;
}

.settings-field.span-6 {
    grid-column: span 6;
}

.settings-message {

    border-radius: 14px;

    padding:
        12px
        14px;

    font-size: 13px;

    font-weight: 800;
}

.settings-message.ok {

    color: #bbf7d0;

    background: rgba(22,163,74,0.16);

    border: 1px solid rgba(22,163,74,0.28);
}

.settings-message.error {

    color: #fecaca;

    background: rgba(220,38,38,0.14);

    border: 1px solid rgba(220,38,38,0.28);
}

.configuration-link-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 16px;

    min-height: 52px;
}

.configuration-link-row strong,
.configuration-link-row span {

    display: block;
}

.configuration-link-row strong {

    color: white;

    font-size: 15px;

    font-weight: 800;

    margin-bottom: 4px;
}

.configuration-link-row span {

    color: rgba(255,255,255,0.62);

    font-size: 12px;
}

.permission-grid {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(180px, 1fr)
        );

    gap: 10px;
}

.permission-grid-wide {

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(240px, 1fr)
        );
}

.permission-check {

    display: flex;

    align-items: center;

    gap: 10px;

    min-height: 42px;

    padding:
        10px
        12px;

    border-radius: 12px;

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

    border: 1px solid rgba(255,255,255,0.08);

    color: rgba(255,255,255,0.86);

    font-size: 13px;

    font-weight: 800;
}

.permission-check input {

    width: 16px;

    height: 16px;

    accent-color: #ff5252;
}

/* =========================================================
   INCIDENT CENTER
   ========================================================= */

.incident-page-subtitle {

    margin-top: 4px;

    color: rgba(255,255,255,0.58);

    font-size: 12px;

    font-weight: 700;
}

.incident-summary-grid {

    display: grid;

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

    gap: 14px;

    margin-bottom: 18px;
}

.incident-filter-row {

    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(180px, 260px)
        );

    gap: 12px;

    margin-bottom: 18px;
}

.incident-list {

    display: grid;

    gap: 12px;
}

.incident-row {

    width: 100%;

    border: 1px solid rgba(255,255,255,0.08);

    border-radius: 18px;

    background: var(--ow-surface, #242426);

    color: white;

    display: grid;

    grid-template-columns:
        120px
        140px
        minmax(260px, 1fr)
        180px
        120px
        170px
        120px;

    gap: 16px;

    align-items: center;

    padding:
        16px
        18px;

    text-align: left;

    cursor: pointer;

    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

.incident-row:hover {

    border-color: rgba(255,255,255,0.16);
}

.incident-title-cell {

    display: flex;

    flex-direction: column;

    gap: 4px;

    min-width: 0;
}

.incident-title-cell strong {

    font-size: 15px;

    font-weight: 900;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.incident-title-cell span {

    color: rgba(255,255,255,0.58);

    font-size: 12px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.incident-severity {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 82px;

    height: 32px;

    padding:
        0
        12px;

    border-radius: 999px;

    font-size: 12px;

    font-weight: 900;
}

.incident-severity.critical {
    background: rgba(220,38,38,0.22);
    color: #fecaca;
}

.incident-severity.high {
    background: rgba(255,82,82,0.20);
    color: #fecaca;
}

.incident-severity.medium {
    background: rgba(245,158,11,0.18);
    color: #fde68a;
}

.incident-severity.low {
    background: rgba(96,165,250,0.16);
    color: #bfdbfe;
}

.incident-severity.info {
    background: rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.76);
}

.incident-detail-card {

    width: 100%;

    max-width: 1320px;
}

.incident-detail-grid {

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(420px, .9fr);

    gap: 18px;

    align-items: start;
}

.incident-summary-text {

    margin-top: 14px;

    padding: 14px;

    border-radius: 12px;

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

    color: rgba(255,255,255,0.72);

    font-size: 13px;

    line-height: 1.5;
}

.incident-timeline,
.incident-notes {

    display: grid;

    gap: 10px;
}

.incident-timeline-item,
.incident-note {

    border-radius: 12px;

    padding:
        11px
        12px;

    background: rgba(255,255,255,0.055);
}

.incident-timeline-item strong {

    display: block;

    color: white;

    font-size: 13px;

    margin-bottom: 4px;
}

.incident-timeline-item span,
.incident-note span {

    display: block;

    color: rgba(255,255,255,0.48);

    font-size: 11px;
}

.incident-timeline-item p,
.incident-note p {

    color: rgba(255,255,255,0.72);

    font-size: 12px;

    line-height: 1.45;

    margin:
        6px
        0
        0;
}

.incident-note-input {

    min-height: 94px !important;

    margin:
        12px
        0;
}

.incident-actions {

    margin-top: 18px;

    flex-wrap: wrap;
}

.incident-resolution-input {

    max-width: 340px;
}

@media (max-width: 1200px) {

    .incident-row {

        grid-template-columns:
            1fr
            1fr;
    }
}

@media (max-width: 900px) {

    .incident-summary-grid,
    .incident-filter-row,
    .incident-detail-grid {

        grid-template-columns: 1fr;
    }
}

/* =========================================================
   LOGIN
   ========================================================= */

.auth-bg {

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 32px;

    background:
        radial-gradient(
            circle at 20% 15%,
            rgba(255,82,82,0.10),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #151515,
            #242426 52%,
            #151515
        );
}

.auth-shell {

    width:
        min(
            980px,
            94vw
        );

    min-height: 560px;

    display: grid;

    grid-template-columns:
        1.25fr
        .85fr;

    overflow: hidden;

    border-radius: 16px;

    background: #2b2b2e;

    border: 1px solid rgba(255,255,255,0.10);

    box-shadow: 0 28px 70px rgba(0,0,0,0.45);
}

.auth-visual {

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    padding: 36px;

    background:
        linear-gradient(
            135deg,
            rgba(255,82,82,0.35),
            rgba(255,82,82,0.02) 34%,
            rgba(255,255,255,0.06)
        ),
        repeating-linear-gradient(
            135deg,
            rgba(255,255,255,0.08) 0,
            rgba(255,255,255,0.08) 1px,
            transparent 1px,
            transparent 16px
        ),
        #1d1d1f;
}

.auth-visual-logo {

    display: block;

    width:
        min(
            260px,
            78%
        );

    height: auto;

    max-height: 88px;

    object-fit: contain;
}

.auth-visual-brand {

    color: white;

    font-size: 34px;

    font-weight: 900;

    letter-spacing: 0;

    margin-bottom: 12px;
}

.auth-visual-copy {

    max-width: 420px;

    color: rgba(255,255,255,0.68);

    font-size: 14px;

    line-height: 1.6;
}

.auth-card {

    display: flex;

    flex-direction: column;

    justify-content: center;

    padding:
        48px
        44px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.04),
            rgba(255,255,255,0.015)
        ),
        #2d2d30;
}

.auth-logo {

    color: rgba(255,255,255,0.7);

    font-size: 13px;

    font-weight: 900;

    letter-spacing: 1px;

    margin-bottom: 22px;
}

.auth-title {

    color: white;

    font-size: 30px;

    line-height: 1.1;

    font-weight: 900;

    margin-bottom: 8px;
}

.auth-sub {

    color: rgba(255,255,255,0.56);

    font-size: 13px;

    line-height: 1.5;

    margin-bottom: 26px;
}

.auth-form {

    display: grid;

    gap: 18px;
}

.auth-label {

    display: block;

    color: rgba(255,255,255,0.72);

    font-size: 12px;

    font-weight: 800;

    margin-bottom: 7px;
}

.auth-input {

    width: 100%;

    height: 46px;

    border: none;

    border-bottom: 1px solid rgba(255,255,255,0.24);

    background: rgba(0,0,0,0.18);

    color: white;

    padding:
        0
        12px;

    border-radius: 8px 8px 0 0;
}

.auth-input:focus {

    border-bottom-color: #ff5252;

    box-shadow: 0 1px 0 #ff5252;
}

.auth-btn {

    height: 46px;

    border: none;

    border-radius: 999px;

    background:
        linear-gradient(
            180deg,
            #ff6b6b,
            #ff5252
        );

    color: white;

    font-size: 13px;

    font-weight: 900;

    cursor: pointer;

    margin-top: 4px;
}

.auth-error {

    padding:
        10px
        12px;

    border-radius: 10px;

    background: rgba(220,38,38,0.16);

    border: 1px solid rgba(220,38,38,0.28);

    color: #fecaca;

    font-size: 13px;

    font-weight: 800;

    margin-bottom: 18px;
}

@media (max-width: 800px) {

    .auth-shell {

        grid-template-columns: 1fr;

        min-height: 0;
    }

    .auth-visual {

        min-height: 220px;
    }

    .auth-card {

        padding:
            34px
            24px;
    }
}

@media (max-width: 900px) {

    .monitor-create-field.span-4,
    .settings-field.span-1,
    .settings-field.span-2,
    .settings-field.span-3,
    .settings-field.span-4,
    .settings-field.span-6 {

        grid-column: span 1;
    }

    .settings-grid {

        grid-template-columns: 1fr;
    }
}

/* =========================================================
   VS CODE GREY THEME OVERRIDES
   ========================================================= */

:root {

    --ow-primary: #2d2d30;
    --ow-primary-hover: #3e3e42;

    --ow-bg: #1e1e1e;
    --ow-card: #252526;
    --ow-surface: #2d2d30;
    --ow-surface-2: #333337;
    --ow-surface-3: #3e3e42;

    --ow-border: #3c3c3c;
    --ow-muted: #a6a6a6;

    --ow-accent: #f14c4c;
    --ow-accent-hover: #ff6666;
    --ow-accent-soft: rgba(241,76,76,0.16);
}

html,
body {

    background: var(--ow-bg);

    color: #d4d4d4;
}

.page,
main {

    background: #1f1f1f;
}

.sidebar {

    background:
        linear-gradient(
            180deg,
            #181818 0%,
            #1e1e1e 55%,
            #111111 100%
        );

    border-right:
        1px solid #2d2d30;
}

.ow-brand {

    background:
        #252526;

    border:
        1px solid #3c3c3c;

    box-shadow: none;
}

.ow-section {

    color: #858585;
}

.ow-link {

    color: #d4d4d4;
}

.ow-link:hover {

    background: #2a2d2e;

    color: #ffffff;
}

.ow-link.active {

    background: #37373d;

    color: #ffffff;

    box-shadow:
        inset 3px 0 0 var(--ow-accent);
}

.ow-logout {

    background: var(--ow-accent-soft);

    color: #ffb3b3;
}

.ow-logout:hover {

    background:
        rgba(241,76,76,0.26);
}

.sidebar-logout-nav {

    margin-top: auto;

    padding-top: 18px;
}

.ow-header {

    background:
        #252526;

    border:
        1px solid #3c3c3c;

    box-shadow:
        0 8px 22px rgba(0,0,0,0.22);
}

.ow-search-input {

    background: #1e1e1e;

    border:
        1px solid #3c3c3c;

    color: #d4d4d4;
}

.ow-search-input:focus {

    background: #252526;

    border-color: var(--ow-accent);
}

.ow-action-btn,
.wd-chip.save {

    background:
        linear-gradient(
            180deg,
            var(--ow-accent-hover),
            var(--ow-accent)
        );

    color: #ffffff;
}

.ow-action-btn:hover {

    box-shadow:
        0 10px 24px rgba(241,76,76,0.28);
}

.ow-tab {

    background: #2d2d30;

    color: #d4d4d4;

    border:
        1px solid #3c3c3c;

    box-shadow: none;
}

.ow-tab:hover {

    background: #3e3e42;

    color: #ffffff;

    border-color: #555555;
}

.ow-tab.active {

    background: var(--ow-accent);

    color: #ffffff;

    border-color: var(--ow-accent-hover);
}

.cust-row,
.ow-loading,
.ow-empty {

    background: #252526;

    color: #d4d4d4;

    border:
        1px solid #3c3c3c;

    box-shadow:
        0 2px 12px rgba(0,0,0,0.20);
}

.cust-title,
.cust-val {

    color: #ffffff;
}

.cust-sub,
.cust-label {

    color: #a6a6a6;
}

.ow-card,
.ow-card-blue,
.monitor-row,
.dashboard-metric-card,
.dashboard-panel,
.branch-card,
.monitor-stat-card,
.monitor-config-card,
.monitor-checks-card,
.monitor-compact-section,
.incident-card {

    background:
        linear-gradient(
            180deg,
            #2d2d30,
            #252526
        );

    border:
        1px solid #3c3c3c;

    box-shadow:
        0 12px 30px rgba(0,0,0,0.28);
}

.monitor-row:hover,
.branch-card:hover {

    border-color: #555555;

    box-shadow:
        0 14px 32px rgba(0,0,0,0.36);
}

.monitor-type,
.dashboard-panel-header span,
.monitor-check-row,
.monitor-muted-box,
.dashboard-row,
.dashboard-empty {

    background: #333337;

    border-color: #3c3c3c;
}

.monitor-url,
.monitor-col-label,
.dashboard-subtitle,
.dashboard-row-sub,
.monitor-detail-subtitle,
.incident-meta {

    color: #a6a6a6;
}

.ow-input,
.form-control.ow-input,
.form-select.ow-input {

    background: #1e1e1e;

    color: #d4d4d4;

    border:
        1px solid #3c3c3c;
}

.ow-input:focus,
.form-control.ow-input:focus,
.form-select.ow-input:focus {

    border-color: var(--ow-accent);

    box-shadow:
        0 0 0 3px rgba(241,76,76,0.18);
}

.ow-input:disabled {

    background: #2d2d30;

    color: #a6a6a6;
}

.monitor-type-card {

    background: #2d2d30;

    color: #d4d4d4;

    border-color: #3c3c3c;
}

.monitor-type-card:hover {

    background: #3e3e42;

    border-color: #555555;
}

.monitor-type-card.active {

    background:
        linear-gradient(
            180deg,
            rgba(241,76,76,0.26),
            rgba(241,76,76,0.14)
        );

    border-color: var(--ow-accent);
}

.monitor-type-sub,
.monitor-stat-label,
.monitor-info-grid span {

    color: #a6a6a6;
}

.wd-chip.edit {

    background: #d4d4d4;

    color: #1e1e1e;
}

.wd-chip.cancel {

    background: #3e3e42;

    color: #ffffff;
}

.wd-chip.ok {

    background:
        rgba(22,163,74,0.18);

    color: #89d185;
}

.wd-chip.off {

    background: var(--ow-accent-soft);

    color: #ffb3b3;
}

.cust-badge.ok {

    background:
        rgba(22,163,74,0.16);

    color: #89d185;
}

.cust-badge.warn {

    background:
        rgba(245,158,11,0.16);

    color: #cca700;
}

.cust-badge.off {

    background: var(--ow-accent-soft);

    color: #ff8080;
}

.monitor-dot.offline,
.dashboard-health-pill.off,
.dashboard-metric-card.off strong {

    color: #ff8080;
}

.dashboard-health-pill.off {

    background: var(--ow-accent-soft);
}

.monitor-create-error,
.monitor-error-box {

    background: var(--ow-accent-soft);

    border-color:
        rgba(241,76,76,0.36);

    color: #ffb3b3;
}

.monitor-row {

    min-height: 86px;

    padding:
        16px
        20px;

    border-radius: 18px;
}

.monitor-list {

    gap: 12px;
}

.monitor-name {

    font-size: 16px;
}

.monitor-url,
.monitor-col-value {

    font-size: 12px;
}

.monitor-col-label {

    margin-bottom: 4px;

    font-size: 10px;
}

.monitor-type {

    padding:
        3px
        8px;

    font-size: 10px;
}

.cust-badge {

    min-width: 82px;

    height: 32px;

    font-size: 11px;
}

.detail-page .ow-card-blue {

    max-width: 980px;

    padding:
        24px
        28px;

    border-radius: 18px;
}

.detail-page .header-title {

    font-size: 34px;
}

.detail-page .wd-topbar {

    margin-bottom: 18px;
}

.detail-page .ow-tabs {

    margin-bottom: 18px;
}

.detail-page textarea.ow-input {

    min-height: 92px;
}

.detail-page .ow-input {

    min-height: 42px;

    padding:
        9px
        14px;
}

.detail-page .row {

    gap: 14px;
}

.detail-page .form-label {

    margin-bottom: 5px;

    font-size: 12px;
}

.detail-page .wd-chip,
.detail-page .ow-action-btn {

    height: 38px;

    min-width: 96px;

    padding:
        0 16px;

    font-size: 13px;
}

/* =========================================================
   MAINTENANCE CENTER
   ========================================================= */

.maintenance-list {

    display: flex;

    flex-direction: column;

    gap: 12px;
}

.maintenance-row {

    width: 100%;

    min-height: 88px;

    border: 1px solid #3c3c3c;

    border-radius: 18px;

    padding:
        16px
        18px;

    background: #252526;

    display: grid;

    grid-template-columns:
        110px
        130px
        minmax(240px, 1.5fr)
        130px
        150px
        150px
        110px
        170px;

    gap: 14px;

    align-items: center;

    color: #f5f5f5;

    text-align: left;

    cursor: pointer;

    box-shadow:
        0 10px 24px rgba(0,0,0,0.18);

    transition:
        background .15s ease,
        border-color .15s ease,
        transform .15s ease;
}

.maintenance-row:hover {

    background: #2d2d30;

    border-color: #4d4d4d;

    transform: translateY(-1px);
}

.maintenance-modal-card,
.maintenance-detail-card {

    max-width: 1180px;

    background:
        linear-gradient(
            180deg,
            #2d2d30,
            #252526
        );

    border-color: #3c3c3c;
}

.maintenance-modal-card {

    padding:
        30px
        34px;
}

.maintenance-detail-card {

    padding:
        32px
        36px;
}

.maintenance-form-grid {

    display: grid;

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

    gap:
        16px
        18px;
}

.maintenance-textarea {

    min-height: 82px !important;

    resize: vertical;
}

.maintenance-toggle-grid {

    display: grid;

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

    gap: 10px;
}

.toggle-row,
.maintenance-target-row {

    display: flex;

    align-items: center;

    gap: 10px;

    border: 1px solid #3c3c3c;

    border-radius: 12px;

    background: #333337;

    color: #f5f5f5;
}

.toggle-row {

    min-height: 44px;

    padding:
        10px
        12px;

    font-size: 13px;

    font-weight: 800;
}

.maintenance-target-list {

    display: grid;

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

    gap: 10px;

    margin-top: 10px;

    max-height: 220px;

    overflow-y: auto;
}

.maintenance-target-list.readonly {

    max-height: 270px;
}

.maintenance-target-row {

    min-height: 54px;

    padding:
        10px
        12px;
}

.maintenance-target-row span {

    display: flex;

    min-width: 0;

    flex-direction: column;

    gap: 3px;
}

.maintenance-target-row strong {

    overflow: hidden;

    color: #ffffff;

    font-size: 13px;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.maintenance-target-row small {

    overflow: hidden;

    color: #a6a6a6;

    font-size: 11px;

    text-overflow: ellipsis;

    white-space: nowrap;
}

/* =========================================================
   COMPACT OPERATIONAL VIEWS
   ========================================================= */

* {

    scrollbar-width: none;
}

*::-webkit-scrollbar {

    width: 0;

    height: 0;
}

.dashboard-page {

    padding-top: 14px !important;

    padding-bottom: 14px !important;
}

.dashboard-page .ow-header {

    min-height: 74px;

    padding:
        12px
        18px;

    margin-bottom: 14px;
}

.dashboard-metric-card {

    min-height: 84px;

    padding:
        14px
        16px;

    border: 1px solid #3c3c3c;

    color: inherit;

    text-align: left;

    cursor: pointer;
}

.dashboard-metric-card:hover {

    border-color: #555555;

    transform: translateY(-1px);
}

.dashboard-metric-card span {

    margin-bottom: 9px;

    font-size: 10px;
}

.dashboard-metric-card strong {

    font-size: 25px;
}

.dashboard-metrics {

    gap: 12px;

    margin-bottom: 14px;
}

.dashboard-layout {

    gap: 14px;
}

.dashboard-panel {

    padding: 14px;

    border-radius: 16px;
}

.dashboard-panel-header {

    margin-bottom: 10px;
}

.dashboard-panel-header h3 {

    font-size: 15px;
}

.dashboard-list {

    gap: 8px;
}

.dashboard-row {

    min-height: 46px;

    padding:
        8px
        12px;

    border-radius: 12px;
}

.dashboard-row-title {

    font-size: 13px;
}

.dashboard-row-sub {

    margin-top: 2px;

    font-size: 11px;
}

.dashboard-row-meta,
.dashboard-row-value {

    font-size: 11px;
}

.dashboard-empty {

    min-height: 82px;
}

.monitor-row {

    min-height: 64px;

    padding:
        10px
        18px;

    border-radius: 14px;

    gap: 14px;
}

.monitor-list {

    gap: 9px;
}

.monitor-dot {

    width: 12px;

    height: 12px;
}

.monitor-title-row {

    margin-bottom: 4px;
}

.monitor-name {

    font-size: 14px;
}

.monitor-url,
.monitor-col-value {

    font-size: 11px;
}

.monitor-col-label {

    margin-bottom: 3px;

    font-size: 9px;
}

.monitor-type {

    padding:
        2px
        7px;

    font-size: 9px;
}

.uptime-bar {

    height: 6px;

    margin-top: 7px;
}

.monitor-row .cust-badge {

    min-width: 78px;

    height: 30px;

    font-size: 10px;
}

.ow-modal-backdrop,
.ow-modal-panel {

    scrollbar-width: none;
}

@media (max-width: 1300px) {

    .maintenance-row {

        grid-template-columns:
            1fr
            1fr
            2fr;
    }
}

@media (max-width: 900px) {

    .maintenance-row,
    .maintenance-form-grid,
    .maintenance-toggle-grid,
    .maintenance-target-list {

        grid-template-columns: 1fr;
    }

    .maintenance-modal-card,
    .maintenance-detail-card {

        padding:
            22px
            18px;
    }
}

/* =========================================================
   INCIDENTS PAGE LAYOUT FINAL OVERRIDE
   ========================================================= */

.incident-page-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 100%;
}

.incident-page-row {
    display: grid;
    grid-template-columns: 110px 125px minmax(260px, 1.7fr) minmax(130px, .8fr) 95px 142px 105px;
    gap: 12px;
    align-items: center;
    width: 100%;
    min-height: 72px;
    padding: 13px 16px;
    border: 1px solid #3c3c3c;
    border-radius: 16px;
    background: #252526;
    color: #f5f5f5;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.incident-page-row:hover {
    background: #2d2d30;
    border-color: #4d4d4d;
    transform: translateY(-1px);
}

.incident-page-row > * {
    min-width: 0;
}

.incident-page-row .incident-title-cell strong,
.incident-page-row .incident-title-cell span,
.incident-page-row .monitor-col-value {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.incident-page-row .cust-badge,
.incident-page-row .incident-severity {
    min-width: 82px;
    height: 30px;
    font-size: 11px;
}

@media (max-width: 1450px) {
    .incident-page-row {
        grid-template-columns: 96px 106px minmax(220px, 1fr) minmax(110px, .7fr) 82px 118px 88px;
        gap: 10px;
        padding: 12px 14px;
    }
}

@media (max-width: 1180px) {
    .incident-page-row {
        grid-template-columns: 1fr 1fr 2fr;
    }
}

@media (max-width: 760px) {
    .incident-page-row {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   ALERT TEMPLATE PREVIEW
   ========================================================= */

.alert-template-preview {
    display: flex;
    justify-content: center;
    padding: 24px;
    border: 1px solid #3c3c3c;
    border-radius: 18px;
    background: #252526;
    box-shadow: 0 12px 30px rgba(0,0,0,0.22);
}

.alert-template-preview table {
    color: initial;
}

/* =========================================================
   LICENCE SETTINGS
   ========================================================= */

.settings-action-field {

    display: flex;

    flex-direction: column;
}

.settings-action-field .wd-chip {

    width: 100%;

    min-width: 0;
}

.licence-status-grid {

    display: grid;

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

    gap: 10px;
}

.licence-status-grid div {

    min-width: 0;

    padding: 12px;

    border-radius: 12px;

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

    border:
        1px solid rgba(255,255,255,0.08);
}

.licence-status-grid span {

    display: block;

    margin-bottom: 5px;

    color:
        rgba(255,255,255,0.54);

    font-size: 11px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .5px;
}

.licence-status-grid strong {

    display: block;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    color: white;

    font-size: 13px;
}

.settings-message.warn {

    background:
        rgba(245,158,11,0.14);

    border:
        1px solid rgba(245,158,11,0.26);

    color: #fde68a;
}

@media (max-width: 900px) {

    .licence-status-grid {

        grid-template-columns: 1fr;
    }
}

/* =========================================================
   CONFIGURATION COMPACT SURFACE
   ========================================================= */

.settings-layout {

    gap: 10px;
}

.settings-card {

    border-radius: 14px;

    padding:
        12px
        14px;
}

.settings-card-compact {

    padding:
        10px
        14px;
}

.settings-section-title {

    font-size: 15px;

    margin-bottom: 10px;
}

.settings-grid {

    gap:
        10px
        12px;

    align-items: end;
}

.settings-grid .form-label {

    margin-bottom: 4px;

    font-size: 11px;
}

.settings-grid .ow-input {

    min-height: 38px;

    padding:
        8px
        12px;

    border-radius: 11px;

    font-size: 12px;
}

.settings-help-box {

    min-height: 38px;

    display: flex;

    align-items: center;

    padding:
        8px
        11px;

    border-radius: 11px;

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

    border:
        1px solid rgba(255,255,255,0.08);

    color:
        rgba(255,255,255,0.72);

    font-size: 11px;

    line-height: 1.35;
}

.settings-toggle-field {

    display: flex;

    flex-direction: column;

    justify-content: flex-end;
}

.licence-status-grid div {

    padding: 8px 10px;
}

.licence-status-grid {

    gap: 8px;
}

.licence-status-grid span {

    margin-bottom: 3px;

    font-size: 10px;
}

.licence-status-grid strong {

    font-size: 12px;
}

.configuration-link-row {

    min-height: 40px;
}

/* =========================================================
   CLIENT LIST COMPACT SURFACE
   ========================================================= */

.clients-page .ow-header {

    padding:
        12px
        18px;

    margin-bottom: 16px;
}

.clients-page .cust-row-list {

    gap: 10px;
}

.clients-page .cust-row {

    border-radius: 14px;

    padding:
        14px
        18px;
}

.clients-page .cust-content {

    gap: 14px;
}

.clients-page .cust-title {

    font-size: 16px;
}

.clients-page .cust-sub,
.clients-page .cust-val {

    font-size: 12px;
}

.clients-page .cust-label {

    margin-bottom: 3px;

    font-size: 10px;
}

.clients-page .cust-badge {

    min-width: 78px;

    height: 30px;

    font-size: 10px;
}

/* =========================================================
   BRAND / SIDEBAR FINAL FIT
   ========================================================= */

.sidebar {

    height: 100vh;

    min-height: 0;

    overflow-y: auto;

    padding-bottom: 16px;
}

.ow-brand {

    display: flex;

    align-items: center;

    justify-content: center;

    min-height: 60px;

    padding:
        10px
        12px;

    overflow: hidden;
}

.ow-brand-logo {

    display: block;

    width: 100%;

    max-width: 190px;

    max-height: 46px;

    object-fit: contain;
}

.sidebar-logout-nav {

    margin-top: auto;

    padding-top: 18px;

    padding-bottom: 12px;

    flex-shrink: 0;
}

.sidebar-logout-nav .ow-logout {

    margin-top: 0;
}

@media (max-width: 900px) {

    .sidebar {

        height: auto;

        min-height: auto;
    }

    .sidebar-logout-nav {

        margin-top: 12px;
    }
}

/* =========================================================
   SITE BRANDING FINAL OVERRIDES
   ========================================================= */

.page {

    --ow-accent-soft:
        color-mix(
            in srgb,
            var(--ow-accent) 16%,
            transparent
        );
}

.page .ow-action-btn,
.page .wd-chip.save,
.page .ow-tab.active,
.page .ow-switch input:checked + span {

    background:
        linear-gradient(
            180deg,
            var(--ow-accent-hover),
            var(--ow-accent)
        );
}

.page .ow-action-btn:hover {

    box-shadow:
        0 10px 24px
        color-mix(
            in srgb,
            var(--ow-accent) 28%,
            transparent
        );
}

.page .ow-link.active {

    box-shadow:
        inset 3px 0 0 var(--ow-accent);
}

.page .ow-input:focus,
.page .form-control.ow-input:focus,
.page .form-select.ow-input:focus {

    border-color: var(--ow-accent);

    box-shadow:
        0 0 0 3px
        color-mix(
            in srgb,
            var(--ow-accent) 18%,
            transparent
        );
}

.page .monitor-type-card.active {

    border-color: var(--ow-accent);
}

.page .ow-logout,
.page .dashboard-health-pill.off,
.page .wd-chip.off,
.page .monitor-create-error,
.page .monitor-error-box {

    background: var(--ow-accent-soft);
}

.branding-color-picker {

    width: 100%;

    min-height: 38px;

    padding: 4px;

    border:
        1px solid #3c3c3c;

    border-radius: 11px;

    background: #1e1e1e;

    cursor: pointer;
}

.branding-color-picker:disabled {

    cursor: not-allowed;

    opacity: .62;
}

.branding-file-input {

    cursor: pointer;
}

.branding-preview {

    display: flex;

    align-items: center;

    justify-content: center;

    min-height: 54px;

    padding: 8px;

    border:
        1px solid rgba(255,255,255,0.08);

    border-radius: 11px;

    background:
        rgba(255,255,255,0.045);
}

.branding-preview img {

    display: block;

    max-width: 170px;

    max-height: 42px;

    object-fit: contain;
}

.branding-preview.favicon img {

    width: 32px;

    height: 32px;
}

.page.theme-light {

    --ow-bg: #f4f7fb;
    --ow-card: #ffffff;
    --ow-surface: #ffffff;
    --ow-surface-2: #f1f5f9;
    --ow-surface-3: #e2e8f0;
    --ow-border: #d9e2ef;
    --ow-muted: #64748b;

    background: #f4f7fb;

    color: #172033;
}

.page.theme-light main {

    background: #f4f7fb;

    color: #172033;
}

.page.theme-light .sidebar {

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f7f9fc 55%,
            #edf2f7 100%
        );

    border-right:
        1px solid #d9e2ef;

    color: #172033;
}

.page.theme-light .ow-brand,
.page.theme-light .ow-header,
.page.theme-light .settings-card,
.page.theme-light .cust-row,
.page.theme-light .ow-loading,
.page.theme-light .ow-empty,
.page.theme-light .dashboard-panel,
.page.theme-light .dashboard-metric-card,
.page.theme-light .monitor-row,
.page.theme-light .branch-card,
.page.theme-light .monitor-stat-card,
.page.theme-light .monitor-config-card,
.page.theme-light .monitor-checks-card,
.page.theme-light .monitor-compact-section,
.page.theme-light .incident-card {

    background: #ffffff;

    border:
        1px solid #d9e2ef;

    color: #172033;

    box-shadow:
        0 12px 30px rgba(15,23,42,0.08);
}

.page.theme-light .ow-header {

    color: #172033;
}

.page.theme-light .ow-section,
.page.theme-light .cust-sub,
.page.theme-light .cust-label,
.page.theme-light .monitor-url,
.page.theme-light .monitor-col-label,
.page.theme-light .dashboard-subtitle,
.page.theme-light .dashboard-row-sub,
.page.theme-light .monitor-detail-subtitle,
.page.theme-light .incident-meta {

    color: #64748b;
}

.page.theme-light .ow-link {

    color: #334155;
}

.page.theme-light .ow-link:hover,
.page.theme-light .ow-link.active {

    background: #edf2f7;

    color: #0f172a;
}

.page.theme-light .ow-logout {

    background: #fee2e2;

    color: #991b1b;
}

.page.theme-light .ow-input,
.page.theme-light .form-control.ow-input,
.page.theme-light .form-select.ow-input,
.page.theme-light .ow-search-input {

    background: #ffffff;

    border:
        1px solid #cbd5e1;

    color: #0f172a;
}

.page.theme-light .ow-input:disabled {

    background: #f1f5f9;

    color: #64748b;
}

.page.theme-light .form-label,
.page.theme-light .settings-section-title,
.page.theme-light .cust-title,
.page.theme-light .cust-val,
.page.theme-light .licence-status-grid strong {

    color: #0f172a;
}

.page.theme-light .settings-help-box,
.page.theme-light .licence-status-grid div,
.page.theme-light .branding-preview,
.page.theme-light .dashboard-row,
.page.theme-light .dashboard-empty,
.page.theme-light .monitor-muted-box,
.page.theme-light .monitor-check-row,
.page.theme-light .monitor-type {

    background: #f8fafc;

    border-color: #d9e2ef;

    color: #475569;
}

.page.theme-light .licence-status-grid span {

    color: #64748b;
}

.page.theme-light .branding-color-picker {

    background: #ffffff;

    border-color: #cbd5e1;
}
/* =========================================================
   CLIENT MODAL BUTTON TRUE FINAL FIT
   ========================================================= */

.ow-modal .detail-page .wd-topbar-actions {
    gap: 7px;
    align-items: center;
}

.ow-modal .detail-page .wd-topbar-actions .wd-chip,
.ow-modal .detail-page .wd-topbar-actions .ow-action-btn,
.ow-modal .detail-page .wd-topbar-actions .branch-btn,
.ow-modal .detail-page .status-page-share .wd-chip,
.ow-modal .branch-modal-actions .wd-chip,
.ow-modal .branch-modal-actions .ow-action-btn {
    flex: 0 0 auto;
    min-width: 0;
    width: auto;
    height: 32px;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 11px;
    line-height: 1;
    box-shadow: none;
}

.ow-modal .detail-page .wd-topbar-actions .ow-action-btn,
.ow-modal .detail-page .wd-topbar-actions .branch-btn,
.ow-modal .branch-modal-actions .ow-action-btn {
    padding: 0 13px;
}

.ow-modal .detail-page .wd-topbar-actions .ow-modal-close,
.ow-modal .detail-page .wd-topbar-actions .top-close {
    width: 34px;
    height: 34px;
    min-width: 34px;
    flex-basis: 34px;
    font-size: 16px;
}

.ow-modal .detail-page .ow-tabs .ow-tab {
    height: 36px;
    padding: 0 18px;
    border-radius: 10px;
    font-size: 12px;
}

.ow-modal .detail-page .status-page-share {
    grid-template-columns: minmax(260px, 1fr) 82px auto auto auto;
    gap: 7px;
}

.ow-modal .detail-page .status-page-share .cust-badge {
    height: 32px;
    min-width: 78px;
    border-radius: 10px;
    font-size: 10px;
}

.ow-modal .detail-page .status-page-share .ow-input {
    min-height: 38px;
}

@media (max-width: 900px) {
    .ow-modal .detail-page .wd-topbar-actions {
        justify-content: flex-start;
    }

    .ow-modal .detail-page .status-page-share {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   GLOBAL BRANDING TRUE FINAL OVERRIDES
   ========================================================= */

body {
    --ow-accent-soft:
        color-mix(
            in srgb,
            var(--ow-accent) 16%,
            transparent
        );
}

.auth-bg {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-shell {
    flex: 0 0 auto;
}

.auth-visual {
    background:
        radial-gradient(
            circle at 8% 18%,
            color-mix(
                in srgb,
                var(--ow-accent) 26%,
                transparent
            ),
            transparent 34%
        ),
        repeating-linear-gradient(
            135deg,
            rgba(255,255,255,0.06) 0,
            rgba(255,255,255,0.06) 1px,
            transparent 1px,
            transparent 13px
        ),
        #242426;
}

.auth-input:focus {
    border-bottom-color: var(--ow-accent);
    box-shadow: 0 1px 0 var(--ow-accent);
}

.auth-btn,
.page .ow-action-btn,
.page .wd-chip.save,
.page .ow-tab.active,
.page .ow-switch input:checked + span,
.ow-switch input:checked + span {
    background:
        linear-gradient(
            180deg,
            var(--ow-accent-hover),
            var(--ow-accent)
        );
}

.auth-btn:hover,
.page .ow-action-btn:hover {
    box-shadow:
        0 10px 24px
        color-mix(
            in srgb,
            var(--ow-accent) 28%,
            transparent
        );
}

.form-check-input {
    accent-color: var(--ow-accent);
}

.monitor-health-tick.down {
    background: var(--ow-accent);
}

.monitor-health-tick.missing {
    background:
        color-mix(
            in srgb,
            var(--ow-accent) 36%,
            #2d2d30
        );
}

.wd-chip.off,
.cust-badge.off,
.monitor-create-error,
.monitor-error-box,
.ow-logout {
    background: var(--ow-accent-soft);
}

.odin-footer {
    margin-top: 18px;
    padding: 10px 4px 0;
    color: rgba(255,255,255,0.46);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.auth-footer {
    width: 100%;
    margin-top: 26px;
    padding-bottom: 18px;
}

.page.theme-light .odin-footer,
body.theme-light .odin-footer {
    color: #64748b;
}

.public-status-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

@media (max-width: 700px) {
    .public-status-footer {
        flex-direction: column;
    }
}

/* =========================================================
   SEMANTIC STATUS COLORS TRUE FINAL OVERRIDES
   ========================================================= */

body {
    --ow-danger: #ef4444;
    --ow-danger-soft: rgba(239,68,68,0.16);
    --ow-danger-border: rgba(239,68,68,0.34);
    --ow-danger-text: #fca5a5;
    --ow-success: #10b981;
    --ow-success-soft: rgba(16,185,129,0.16);
    --ow-success-text: #86efac;
    --ow-warning: #f59e0b;
    --ow-warning-soft: rgba(245,158,11,0.16);
    --ow-warning-text: #fcd34d;
    --ow-neutral-line: rgba(255,255,255,0.10);
}

body.theme-light {
    --ow-danger-soft: #fee2e2;
    --ow-danger-border: #fca5a5;
    --ow-danger-text: #991b1b;
    --ow-success-soft: #d1fae5;
    --ow-success-text: #047857;
    --ow-warning-soft: #fef3c7;
    --ow-warning-text: #92400e;
    --ow-neutral-line: #d9e2ef;
}

.monitor-health-tick.up,
.monitor-dot.online,
.uptime-fill {
    background: var(--ow-success);
    border-color: var(--ow-success);
}

.monitor-health-tick.down,
.monitor-dot.offline,
.public-status-dot.offline {
    background: var(--ow-danger);
    border-color: var(--ow-danger);
}

.monitor-health-tick.missing {
    background: #475569;
    border-color: #475569;
}

.cust-badge.ok,
.wd-chip.ok,
.dashboard-health-pill.ok,
.public-status-state.online {
    background: var(--ow-success-soft);
    color: var(--ow-success-text);
}

.cust-badge.warn,
.dashboard-health-pill.warn,
.public-status-state.degraded {
    background: var(--ow-warning-soft);
    color: var(--ow-warning-text);
}

.cust-badge.off,
.wd-chip.off,
.dashboard-health-pill.off,
.public-status-state.offline,
.monitor-check-row .cust-badge.off,
.monitor-create-error,
.monitor-error-box,
.auth-error,
.ow-logout,
.branch-delete-btn {
    background: var(--ow-danger-soft);
    border-color: var(--ow-danger-border);
    color: var(--ow-danger-text);
}

.monitor-check-row .cust-badge.ok {
    background: var(--ow-success-soft);
    color: var(--ow-success-text);
}

.monitor-check-row,
.monitor-stat-card,
.monitor-config-card,
.monitor-checks-card,
.monitor-notification-card,
.monitor-compact-section,
.dashboard-panel,
.dashboard-metric-card,
.settings-card,
.cust-row,
.branch-card,
.incident-card,
.maintenance-row,
.maintenance-modal-card,
.maintenance-detail-card,
.ow-card-blue {
    border-color: var(--ow-neutral-line);
}

.ow-input,
.form-control.ow-input,
.form-select.ow-input,
.ow-search-input,
.auth-input {
    border-color: var(--ow-neutral-line);
}

.ow-input:focus,
.form-control.ow-input:focus,
.form-select.ow-input:focus,
.ow-search-input:focus,
.auth-input:focus {
    border-color: var(--ow-accent);
}

.page .ow-link.active,
.ow-link.active {
    box-shadow: inset 3px 0 0 var(--ow-accent);
}

.page.theme-light .monitor-health-tick.missing,
body.theme-light .monitor-health-tick.missing {
    background: #cbd5e1;
    border-color: #cbd5e1;
}

/* =========================================================
   PUBLIC STATUS DETAIL + INTERNAL STATUS BOARD
   ========================================================= */

.public-status-service {
    width: 100%;
    border: none;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.public-status-service:hover {
    transform: translateY(-1px);
    border-color: rgba(255,255,255,0.18);
}

.public-status-detail-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0,0,0,0.68);
    backdrop-filter: blur(5px);
}

.public-status-detail-card {
    position: relative;
    width: min(920px, 96vw);
    max-height: 90vh;
    overflow: auto;
    background: #2b2b2f;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 22px;
    padding: 26px;
    box-shadow: 0 24px 70px rgba(0,0,0,0.45);
    color: white;
}

.public-status-detail-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    color: white;
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
}

.public-status-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
    padding-right: 46px;
}

.public-status-detail-header span {
    display: block;
    color: rgba(255,255,255,0.56);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .6px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.public-status-detail-header h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.05;
    color: white;
}

.public-status-detail-header p {
    margin-top: 8px;
    color: rgba(255,255,255,0.66);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.public-status-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 14px;
}

.public-status-detail-panel {
    border-radius: 16px;
    padding: 16px;
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.08);
}

.public-status-detail-kpis {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.public-status-detail-kpis span {
    display: block;
    color: rgba(255,255,255,0.54);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .6px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.public-status-detail-kpis strong {
    display: block;
    color: white;
    font-size: 13px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.public-status-detail-panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.public-status-detail-panel-title h3 {
    margin: 0;
    color: white;
    font-size: 15px;
}

.public-status-detail-panel-title span {
    color: rgba(255,255,255,0.72);
    font-size: 12px;
    font-weight: 900;
}

.public-status-ticks {
    display: grid;
    grid-template-columns: repeat(24, minmax(0, 1fr));
    gap: 5px;
}

.public-status-tick {
    height: 18px;
    border-radius: 5px;
    background: #52525b;
}

.public-status-tick.online {
    background: #10b981;
}

.public-status-tick.offline {
    background: #ef4444;
}

.public-status-tick.unknown {
    background: #52525b;
    opacity: .55;
}

.public-status-checks {
    display: grid;
    gap: 8px;
}

.public-status-check-row {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr) 80px;
    align-items: center;
    gap: 12px;
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255,255,255,0.055);
    color: rgba(255,255,255,0.78);
    font-size: 12px;
}

.public-status-check-row strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
}

.public-status-check-row strong.online {
    background: rgba(16,185,129,0.18);
    color: #86efac;
}

.public-status-check-row strong.offline {
    background: rgba(239,68,68,0.20);
    color: #fca5a5;
}

.public-status-empty.compact {
    padding: 18px;
}

.status-board-page {
    min-height: calc(100vh - 40px);
}

.status-board-header-meta {
    margin-top: 4px;
    color: rgba(255,255,255,0.62);
    font-size: 12px;
    font-weight: 700;
}

.status-board-pill {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: white;
    font-size: 12px;
    font-weight: 900;
}

.status-board-groups {
    display: grid;
    gap: 14px;
}

.status-board-client-group {
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 18px;
    padding: 14px;
    background: rgba(255,255,255,0.035);
}

.status-board-client-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.status-board-client-header h2 {
    margin: 0;
    color: white;
    font-size: 16px;
    line-height: 1.2;
}

.status-board-client-header span {
    color: rgba(255,255,255,0.58);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.status-board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.status-board-card {
    min-height: 94px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 11px;
    background: #2f2f34;
    color: white;
    cursor: pointer;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.status-board-card:hover {
    transform: translateY(-1px);
    border-color: rgba(255,255,255,0.18);
}

.status-board-card.offline {
    background: rgba(220,38,38,0.30);
    border-color: rgba(255,90,90,0.55);
}

.status-board-card.degraded {
    background: rgba(245,158,11,0.18);
    border-color: rgba(245,158,11,0.40);
}

.status-board-card-name {
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.status-board-card-target {
    margin-top: 4px;
    color: rgba(255,255,255,0.68);
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.status-board-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: white;
    font-size: 11px;
    font-weight: 900;
}

.status-board-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
}

.status-board-status.online {
    background: rgba(16,185,129,0.18);
    color: #86efac;
}

.status-board-status.degraded {
    background: rgba(245,158,11,0.18);
    color: #fde68a;
}

.status-board-status.offline {
    background: rgba(239,68,68,0.22);
    color: #fca5a5;
}

.monitor-detail-card .monitor-health-overview {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 14px !important;
    align-items: stretch !important;
    margin-bottom: 18px !important;
}

.monitor-detail-card .monitor-health-summary-card,
.monitor-detail-card .monitor-health-history-card {
    min-height: 120px !important;
    padding: 16px 18px !important;
    border-radius: 16px !important;
}

.monitor-detail-card .monitor-health-summary-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px 18px !important;
}

.monitor-detail-card .monitor-health-summary-label,
.monitor-detail-card .monitor-health-history-title {
    font-size: 10px !important;
    letter-spacing: .6px !important;
    margin-bottom: 6px !important;
}

.monitor-detail-card .monitor-health-summary-value {
    font-size: 15px !important;
    line-height: 1.25 !important;
}

.monitor-detail-card .monitor-health-history-count {
    font-size: 12px !important;
}

.monitor-detail-card .monitor-health-history-subtitle {
    font-size: 11px !important;
    margin-bottom: 12px !important;
}

.monitor-detail-card .monitor-health-ticks.hourly {
    grid-template-columns: repeat(24, minmax(0, 1fr)) !important;
    gap: 6px !important;
}

.monitor-detail-card .monitor-health-tick.hourly {
    width: auto !important;
    height: 18px !important;
    border-radius: 5px !important;
}

@media (max-width: 900px) {
    .public-status-detail-grid,
    .monitor-detail-card .monitor-health-overview {
        grid-template-columns: 1fr !important;
    }

    .public-status-check-row {
        grid-template-columns: 80px minmax(0, 1fr);
    }

    .public-status-check-row span:last-child {
        display: none;
    }

    .status-board-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

/* =========================================================
   PUBLIC STATUS + STATUS BOARD COMPACT FIXES
   ========================================================= */

.public-status-service,
.public-status-service-main,
.public-status-service-main strong {
    color: white;
}

.public-status-service-main span,
.public-status-service-meta span {
    color: rgba(255,255,255,0.68);
}

.status-board-card {
    min-height: 108px;
}

.status-board-card-top {
    min-width: 0;
}

.status-board-card-name {
    color: white;
}

.status-board-card-target {
    display: none;
}

.status-board-card-ticks {
    display: grid;
    grid-template-columns: repeat(24, minmax(0, 1fr));
    gap: 2px;
    width: 100%;
    margin: 8px 0 10px;
}

.status-board-tick {
    min-width: 0;
    height: 8px;
    border-radius: 2px;
    background: #52525b;
    opacity: .75;
}

.status-board-tick.online {
    background: #10b981;
    opacity: 1;
}

.status-board-tick.offline {
    background: #ef4444;
    opacity: 1;
}

.status-board-tick.unknown {
    background: #52525b;
    opacity: .32;
}

/* STATUS BOARD CONTROLS */
.status-board-actions {
    gap: 8px;
    flex-wrap: wrap;
}

.status-board-control {
    min-height: 36px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: white;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.status-board-control:hover:not(:disabled),
.status-board-control.active {
    background: rgba(255,82,82,0.88);
    border-color: rgba(255,82,82,0.55);
}

.status-board-control:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.status-board-interval {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.68);
    padding: 0 10px 0 14px;
    font-size: 11px;
    font-weight: 900;
}

.status-board-interval input {
    width: 62px;
    height: 26px;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 999px;
    background: rgba(0,0,0,0.24);
    color: white;
    padding: 0 8px;
    font: inherit;
    text-align: center;
}

/* =========================================================
   PUBLIC STATUS COMPACT SERVICE CARDS
   ========================================================= */

.public-status-shell {
    width: min(80vw, 1500px);
    max-width: 1500px;
}

.public-status-card {
    width: 100%;
}

.public-status-logo {
    width: min(190px, 42vw);
    max-height: 58px;
    object-fit: contain;
    object-position: left center;
}

.public-status-services {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.public-status-service.public-status-service-compact {
    min-height: 108px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    padding: 11px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    background: #2f2f34;
    color: white;
    overflow: hidden;
}

.public-status-service.public-status-service-compact.offline {
    background: rgba(220,38,38,0.30);
    border-color: rgba(255,90,90,0.55);
}

.public-status-service.public-status-service-compact.degraded {
    background: rgba(245,158,11,0.18);
    border-color: rgba(245,158,11,0.40);
}

.public-status-service.public-status-service-compact:hover {
    transform: translateY(-1px);
    border-color: rgba(255,255,255,0.18);
}

.public-status-service-compact .public-status-service-main {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.public-status-service-compact .public-status-service-main > div {
    min-width: 0;
}

.public-status-service-compact .public-status-service-main strong {
    display: block;
    color: white;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-status-service-ticks {
    display: grid;
    grid-template-columns: repeat(24, minmax(0, 1fr));
    gap: 2px;
    width: 100%;
}

.public-status-service-tick {
    min-width: 0;
    height: 8px;
    border-radius: 2px;
    background: #52525b;
    opacity: .35;
}

.public-status-service-tick.online {
    background: #10b981;
    opacity: 1;
}

.public-status-service-tick.offline {
    background: #ef4444;
    opacity: 1;
}

.public-status-service-tick.unknown {
    background: #52525b;
    opacity: .35;
}

.public-status-service-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: rgba(255,255,255,0.68);
    font-size: 10px;
    font-weight: 800;
}

.public-status-service-footer strong {
    min-width: 58px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
}

.public-status-service-footer strong.online {
    background: rgba(16,185,129,0.18);
    color: #86efac;
}

.public-status-service-footer strong.degraded {
    background: rgba(245,158,11,0.18);
    color: #fde68a;
}

.public-status-service-footer strong.offline {
    background: rgba(239,68,68,0.22);
    color: #fca5a5;
}

.public-status-detail-card {
    width: min(80vw, 1280px);
}

@media (max-width: 900px) {
    .public-status-shell,
    .public-status-detail-card {
        width: min(96vw, 1280px);
    }

    .public-status-services {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

/* Public status compact card tuning */
.public-status-services {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.public-status-service-compact .public-status-dot {
    display: none;
}

@media (max-width: 1300px) {
    .public-status-services {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .public-status-services {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .public-status-services {
        grid-template-columns: 1fr;
    }
}
