.monitor-latency-chart-layout {
    align-items: stretch;
    display: flex;
    gap: 0.75rem;
}

.monitor-metric-trends {
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    margin-top: 22px;
    padding-top: 18px;
}

.monitor-metric-trends.is-collapsible {
    margin-top: 18px;
    padding-top: 12px;
}

.monitor-metric-trends-summary {
    align-items: center;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    cursor: pointer;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(150px, 0.35fr) minmax(260px, 1fr) auto;
    list-style: none;
    padding: 10px 12px;
}

.monitor-metric-trends-summary::-webkit-details-marker {
    display: none;
}

.monitor-metric-summary-title {
    display: grid;
    gap: 2px;
}

.monitor-metric-compact-list {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.monitor-metric-compact-item,
.monitor-metric-compact-more {
    align-items: center;
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: 999px;
    color: #dbeafe;
    display: inline-flex;
    font-size: 0.78rem;
    gap: 6px;
    line-height: 1.2;
    min-width: 0;
    padding: 5px 8px;
}

.monitor-metric-compact-item.is-warning {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.28);
}

.monitor-metric-compact-item.is-critical {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.32);
}

.monitor-metric-compact-label {
    color: #94a3b8;
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.monitor-metric-compact-value {
    color: #f8fafc;
    font-weight: 800;
    white-space: nowrap;
}

.monitor-metric-expand-label {
    color: #60a5fa;
    font-size: 0.8rem;
    font-weight: 800;
    text-align: right;
    text-transform: uppercase;
}

.monitor-metric-trends[open] .monitor-metric-expand-label {
    color: #94a3b8;
}

.monitor-metric-trends[open] .monitor-metric-expand-label::before {
    content: "Collapse";
}

.monitor-metric-trends[open] .monitor-metric-expand-label {
    font-size: 0;
}

.monitor-metric-trends[open] .monitor-metric-expand-label::before {
    font-size: 0.8rem;
}

.monitor-metric-trends-body {
    padding-top: 4px;
}

.monitor-metric-trends-header,
.monitor-metric-row-header,
.monitor-metric-candidate-header,
.monitor-metric-mapping-toolbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}

.monitor-metric-window,
.monitor-metric-path,
.monitor-metric-summary {
    color: #8aa0bc;
    font-size: 0.84rem;
}

.monitor-metric-row {
    margin-top: 16px;
}

.monitor-metric-label {
    color: #f8fafc;
    font-weight: 700;
}

.monitor-metric-latest {
    color: #dbeafe;
    font-size: 1rem;
    font-weight: 700;
}

.monitor-metric-latest-wrap {
    align-items: center;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.monitor-metric-severity {
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    padding: 5px 8px;
    text-transform: uppercase;
}

.monitor-metric-severity.is-warning {
    background: rgba(241, 179, 61, 0.16);
    color: #fbbf24;
}

.monitor-metric-severity.is-critical {
    background: rgba(239, 68, 68, 0.16);
    color: #f87171;
}

.monitor-metric-chart-shell {
    margin-top: 10px;
}

.monitor-metric-svg {
    display: block;
    height: 100%;
    width: 100%;
}

.monitor-metric-line {
    fill: none;
    stroke: #60a5fa;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.5;
}

.monitor-metric-point {
    fill: #bfdbfe;
    stroke: #60a5fa;
    stroke-width: 2;
}

.monitor-metric-point:hover,
.monitor-metric-point:focus {
    fill: #ffffff;
}

.monitor-metric-threshold {
    stroke-dasharray: 6 6;
    stroke-width: 2;
}

.monitor-metric-threshold.is-warn {
    stroke: #f59e0b;
}

.monitor-metric-threshold.is-critical {
    stroke: #ef4444;
}

.monitor-metric-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 6px;
}

.monitor-metric-state-track {
    display: flex;
    gap: 3px;
    margin-top: 10px;
    min-height: 24px;
}

.monitor-metric-state-slot {
    background: rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    flex: 1 1 0;
    min-width: 3px;
}

.monitor-metric-state-slot.has-data {
    background: #60a5fa;
}

.monitor-metric-state-slot.is-true {
    background: #34d399;
}

.monitor-metric-state-slot.is-false {
    background: #f87171;
}

.monitor-metric-mapping-editor {
    display: grid;
    gap: 16px;
}

.monitor-metric-mapping-section {
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    margin-top: 1.25rem;
    padding-top: 1.25rem;
}

.monitor-metric-mapping-list {
    display: grid;
    gap: 12px;
}

.monitor-metric-mapping-row,
.monitor-metric-candidate-panel {
    background: rgba(15, 23, 42, 0.22);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    padding: 14px;
}

.monitor-metric-mapping-row.is-highlighted {
    border-color: rgba(52, 211, 153, 0.7);
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.14);
}

.monitor-metric-mapping-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(140px, 1fr) minmax(130px, 0.8fr) minmax(220px, 1.4fr) minmax(80px, 0.45fr) minmax(100px, 0.55fr) minmax(100px, 0.55fr) minmax(90px, 0.5fr) minmax(90px, 0.5fr) auto;
}

.monitor-metric-path-field {
    min-width: 0;
}

.monitor-metric-row-actions {
    align-self: end;
}

.monitor-metric-candidate-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.monitor-metric-candidate {
    background: rgba(30, 41, 59, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 10px;
    color: #e5edf7;
    cursor: pointer;
    display: grid;
    gap: 3px;
    padding: 10px 12px;
    text-align: left;
}

.monitor-metric-candidate span {
    color: #94a3b8;
    font-size: 0.83rem;
    overflow-wrap: anywhere;
}

.monitor-metric-candidate small {
    color: #60a5fa;
    font-size: 0.78rem;
    font-weight: 700;
}

.monitor-metric-candidate.is-added {
    border-color: rgba(52, 211, 153, 0.58);
}

.monitor-metric-candidate.is-added small {
    color: #10b981;
}

.monitor-metric-candidate:hover,
.monitor-metric-candidate:focus {
    border-color: rgba(96, 165, 250, 0.58);
}

.ops-shell[data-theme="light"] .monitor-metric-label,
.ops-shell[data-theme="light"] .monitor-metric-latest {
    color: #1f2d3d;
}

.ops-shell[data-theme="light"] .monitor-metric-severity.is-warning {
    background: rgba(217, 119, 6, 0.12);
    color: #a16207;
}

.ops-shell[data-theme="light"] .monitor-metric-severity.is-critical {
    background: rgba(220, 38, 38, 0.12);
    color: #b91c1c;
}

.ops-shell[data-theme="light"] .monitor-metric-window,
.ops-shell[data-theme="light"] .monitor-metric-path,
.ops-shell[data-theme="light"] .monitor-metric-summary {
    color: #64748b;
}

.ops-shell[data-theme="light"] .monitor-metric-trends-summary {
    background: rgba(248, 250, 252, 0.72);
    border-color: rgba(148, 163, 184, 0.26);
}

.ops-shell[data-theme="light"] .monitor-metric-compact-item,
.ops-shell[data-theme="light"] .monitor-metric-compact-more {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.16);
    color: #1e3a8a;
}

.ops-shell[data-theme="light"] .monitor-metric-compact-label {
    color: #64748b;
}

.ops-shell[data-theme="light"] .monitor-metric-compact-value {
    color: #1f2d3d;
}

.ops-shell[data-theme="light"] .monitor-metric-mapping-row,
.ops-shell[data-theme="light"] .monitor-metric-candidate-panel {
    background: #f8fafc;
    border-color: rgba(148, 163, 184, 0.28);
}

@media (max-width: 900px) {
    .monitor-metric-trends-summary {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .monitor-metric-expand-label {
        text-align: left;
    }
}

.ops-shell[data-theme="light"] .monitor-metric-candidate {
    background: #ffffff;
    color: #1f2d3d;
}

@media (max-width: 991px) {
    .monitor-metric-mapping-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .monitor-metric-summary {
        justify-content: flex-start;
    }

    .monitor-metric-mapping-grid {
        grid-template-columns: 1fr;
    }
}

.monitor-latency-axis {
    color: #8f9db0;
    display: flex;
    flex: 0 0 4.5rem;
    flex-direction: column;
    font-size: 0.78rem;
    justify-content: space-between;
    line-height: 1;
    padding: 0.35rem 0 0.6rem;
    text-align: left;
}

.monitor-latency-axis-label {
    display: block;
}

.monitor-latency-chart-main {
    flex: 1 1 auto;
    min-width: 0;
}

.monitor-latency-footer {
    color: #8f9db0;
    display: flex;
    font-size: 0.78rem;
    justify-content: center;
    margin-top: 0.5rem;
    text-align: center;
}

.ops-shell[data-theme="light"] .monitor-latency-axis,
.ops-shell[data-theme="light"] .monitor-latency-footer {
    color: #7f91a8;
}

.monitoring-page-hero {
    gap: 12px;
}

.monitoring-page-actions {
    gap: 8px;
}

.monitoring-status-hero {
    border-radius: 20px;
    color: #f7fbff;
    padding: 24px;
}

.monitoring-status-hero.is-operational {
    background: linear-gradient(135deg, #1d9c68, #30bf7b);
}

.monitoring-status-hero.is-degraded {
    background: linear-gradient(135deg, #c9821d, #e2ab37);
}

.monitoring-status-hero.is-outage {
    background: linear-gradient(135deg, #b03f4b, #d9625d);
}

.monitoring-status-hero.is-unknown {
    background: linear-gradient(135deg, #566375, #6e7a8e);
}

.monitoring-status-hero-header {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
}

.monitoring-status-hero-summary {
    text-align: right;
}

.monitoring-status-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.monitoring-status-meta-item {
    align-items: center;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: inherit;
    display: inline-flex;
    font-size: 0.9rem;
    gap: 8px;
    padding: 8px 12px;
}

.monitoring-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr);
    overflow: visible;
}

.monitoring-window-card-body {
    gap: 16px;
}

.monitoring-range-nav {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
}

.monitoring-range-link {
    align-items: center;
    border: 1px solid rgba(120, 136, 158, 0.24);
    border-radius: 999px;
    color: #cfe0f4;
    display: inline-flex;
    justify-content: center;
    min-width: 88px;
    padding: 8px 14px;
    text-decoration: none;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.monitoring-range-link:hover,
.monitoring-range-link:focus {
    border-color: rgba(83, 166, 255, 0.45);
    color: #ffffff;
    text-decoration: none;
}

.monitoring-range-link.is-active {
    background: rgba(83, 166, 255, 0.16);
    border-color: rgba(83, 166, 255, 0.5);
    color: #ffffff;
}

.monitoring-alert-events-wrap {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.monitor-run-detail summary {
    color: #dce7f5;
    cursor: pointer;
    font-weight: 600;
}

.monitor-run-detail-label {
    color: #8f9db0;
    font-size: 0.76rem;
    font-weight: 700;
    margin: 12px 0 6px;
    text-transform: uppercase;
}

.monitor-run-code-block {
    border-radius: 8px;
    max-height: 220px;
    padding: 10px 12px;
}

.monitor-status-card {
    overflow: visible;
    padding: 20px 22px;
}

.monitor-status-card-header {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.monitor-title-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.monitor-status-summary {
    text-align: right;
}

.monitor-status-summary-note,
.monitor-status-url,
.monitor-status-scale,
.monitor-status-detail-label,
.monitor-status-legend-item,
.monitor-incident-meta,
.monitor-incident-expand-hint {
    color: #8f9db0;
}

.monitor-status-url a {
    overflow-wrap: anywhere;
}

.monitor-status-badge {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.92rem;
    font-weight: 700;
    justify-content: center;
    min-width: 108px;
    padding: 8px 14px;
}

.monitor-status-badge.is-up {
    background: rgba(48, 191, 123, 0.18);
    color: #82e8b4;
}

.monitor-status-badge.is-down {
    background: rgba(217, 98, 93, 0.18);
    color: #ffb0ab;
}

.monitor-status-badge.is-unknown {
    background: rgba(156, 169, 187, 0.18);
    color: #dce6f2;
}

.monitor-status-badge.is-inactive {
    background: rgba(226, 171, 55, 0.16);
    color: #f4d37f;
}

.monitor-status-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 0;
}

.monitor-status-chip {
    background: rgba(83, 166, 255, 0.12);
    border-radius: 999px;
    color: var(--ops-shell-anchor, #c6e0ff);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 4px 9px;
    text-transform: uppercase;
}

.monitor-status-history-wrap {
    margin-top: 18px;
    overflow: visible;
    padding-bottom: 0;
}

.monitor-status-history {
    display: grid;
    gap: 3px;
    margin-top: 18px;
    min-width: 0;
    overflow: visible;
    width: 100%;
}

.monitor-status-slot {
    align-items: flex-end;
    display: flex;
    height: 30px;
    justify-content: center;
    position: relative;
}

.monitor-status-tick {
    border-radius: 999px;
    height: 100%;
    transition: width 0.14s ease, box-shadow 0.14s ease;
    width: 3px;
}

.monitor-status-tick.is-success {
    background: linear-gradient(180deg, #32cb83, #249b62);
}

.monitor-status-tick.is-failure {
    background: linear-gradient(180deg, #ea6558, #c44a45);
}

.monitor-status-tick.is-warn {
    background: linear-gradient(180deg, #f1b33d, #cd8e1a);
}

.monitor-status-slot.has-data {
    cursor: pointer;
}

.monitor-status-slot.has-data:hover .monitor-status-tick,
.monitor-status-slot.has-data:focus-within .monitor-status-tick {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
    width: 6px;
}

.monitor-latency-chart {
    margin-top: 14px;
    padding-top: 8px;
}

.monitor-latency-chart-shell {
    background: repeating-linear-gradient(
        to bottom,
        rgba(120, 136, 158, 0.12) 0,
        rgba(120, 136, 158, 0.12) 1px,
        transparent 1px,
        transparent 26px
    );
    border-radius: 12px;
    height: 104px;
    overflow: hidden;
    position: relative;
}

.monitor-latency-svg {
    display: block;
    height: 104px;
    overflow: visible;
    width: 100%;
}

.monitor-latency-points {
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.monitor-latency-point-dot {
    appearance: none;
    background: #dff4ff;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 0 0 1px rgba(87, 179, 255, 0.35);
    cursor: pointer;
    height: 8px;
    margin-left: -4px;
    margin-top: -4px;
    padding: 0;
    pointer-events: auto;
    position: absolute;
    width: 8px;
}

.monitor-latency-point-dot.is-warn {
    background: #f1b33d;
    box-shadow: 0 0 0 1px rgba(241, 179, 61, 0.3);
}

.monitor-latency-line {
    fill: none;
    opacity: 0.9;
    stroke: #7fc6ff;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.monitor-latency-threshold {
    stroke: rgba(241, 179, 61, 0.8);
    stroke-dasharray: 5 5;
    stroke-width: 1.5;
}

.monitor-latency-summary {
    align-items: center;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
}

.monitor-floating-tooltip {
    background: rgba(12, 16, 22, 0.96);
    border: 1px solid rgba(120, 136, 158, 0.22);
    border-radius: 12px;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.26);
    color: #eef5ff;
    max-width: 240px;
    opacity: 0;
    padding: 10px 12px;
    pointer-events: none;
    position: fixed;
    transition: opacity 0.12s ease;
    z-index: 2000;
}

.monitor-floating-tooltip.is-visible {
    opacity: 1;
}

.monitor-floating-tooltip-title {
    font-size: 0.85rem;
    font-weight: 700;
}

.monitor-floating-tooltip-meta {
    color: #8f9db0;
    font-size: 0.78rem;
    margin-top: 4px;
}

.monitor-floating-tooltip-detail {
    font-size: 0.82rem;
    line-height: 1.45;
    margin-top: 8px;
}

.monitor-floating-tooltip-detail strong {
    color: #cddbed;
    font-weight: 700;
}

.monitor-status-scale {
    display: flex;
    font-size: 0.82rem;
    gap: 12px;
    justify-content: space-between;
    margin-top: 10px;
}

.monitor-status-detail {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 18px;
}

.monitor-status-detail-label {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.monitor-status-detail-value {
    font-size: 0.94rem;
    margin-top: 4px;
}

.monitor-status-action-separator {
    color: #8f9db0;
    margin: 0 0.18rem;
}

.monitor-status-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.monitor-status-legend-item {
    align-items: center;
    display: inline-flex;
    font-size: 0.82rem;
    gap: 8px;
}

.monitor-status-legend-swatch {
    border-radius: 999px;
    height: 24px;
    width: 10px;
}

.monitor-status-legend-swatch.is-success {
    background: linear-gradient(180deg, #32cb83, #249b62);
}

.monitor-status-legend-swatch.is-warn {
    background: linear-gradient(180deg, #f1b33d, #cd8e1a);
}

.monitor-status-legend-swatch.is-failure {
    background: linear-gradient(180deg, #ea6558, #c44a45);
}

.monitor-incident-list {
    border-top: 1px solid rgba(120, 136, 158, 0.16);
    margin-top: 18px;
    padding-top: 18px;
}

.monitor-incident-item + .monitor-incident-item {
    margin-top: 10px;
}

.monitor-incident-toggle {
    background: rgba(59, 68, 79, 0.24);
    border: 1px solid rgba(120, 136, 158, 0.18);
    border-radius: 12px;
    padding: 12px 14px;
    width: 100%;
}

.monitor-incident-toggle summary {
    cursor: pointer;
    list-style: none;
    outline: none;
}

.monitor-incident-toggle summary::-webkit-details-marker {
    display: none;
}

.monitor-incident-summary-row {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
}

.monitor-incident-meta {
    font-size: 0.82rem;
    margin-top: 4px;
}

.monitor-incident-expand-hint {
    font-size: 0.78rem;
}

.monitor-incident-body {
    color: #dbe4ef;
    margin-top: 12px;
}

.ops-shell[data-theme="light"] .monitoring-status-meta-item {
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.ops-shell[data-theme="light"] .monitoring-range-link {
    background: #ffffff;
    border-color: rgba(120, 136, 158, 0.22);
    color: #54697f;
}

.ops-shell[data-theme="light"] .monitoring-range-link:hover,
.ops-shell[data-theme="light"] .monitoring-range-link:focus {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.24);
    color: #103a6c;
}

.ops-shell[data-theme="light"] .monitoring-range-link.is-active {
    background: rgba(13, 97, 186, 0.12);
    border-color: rgba(13, 97, 186, 0.22);
    color: #0d4f96;
}

.ops-shell[data-theme="light"] .monitor-status-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.98));
    border-color: rgba(120, 136, 158, 0.18);
}

.ops-shell[data-theme="light"] .monitor-status-card h2,
.ops-shell[data-theme="light"] .monitor-status-detail-value,
.ops-shell[data-theme="light"] .monitor-incident-toggle strong {
    color: #1f2937;
}

.ops-shell[data-theme="light"] .monitor-status-summary-note,
.ops-shell[data-theme="light"] .monitor-status-url,
.ops-shell[data-theme="light"] .monitor-status-scale,
.ops-shell[data-theme="light"] .monitor-status-detail-label,
.ops-shell[data-theme="light"] .monitor-status-legend-item,
.ops-shell[data-theme="light"] .monitor-incident-meta,
.ops-shell[data-theme="light"] .monitor-incident-expand-hint,
.ops-shell[data-theme="light"] .monitor-status-action-separator {
    color: #64748b;
}

.ops-shell[data-theme="light"] .monitor-status-card a,
.ops-shell[data-theme="light"] .monitor-status-url a {
    color: #0d61ba;
}

.ops-shell[data-theme="light"] .monitor-status-card a:hover,
.ops-shell[data-theme="light"] .monitor-status-card a:focus,
.ops-shell[data-theme="light"] .monitor-status-url a:hover,
.ops-shell[data-theme="light"] .monitor-status-url a:focus {
    color: #0b4f96;
}

.ops-shell[data-theme="light"] .monitor-status-badge.is-up {
    background: #dcfce7;
    color: #166534;
}

.ops-shell[data-theme="light"] .monitor-status-badge.is-down {
    background: #fee2e2;
    color: #b42318;
}

.ops-shell[data-theme="light"] .monitor-status-badge.is-unknown {
    background: #e2e8f0;
    color: #475569;
}

.ops-shell[data-theme="light"] .monitor-status-badge.is-inactive {
    background: #fef3c7;
    color: #9a6700;
}

.ops-shell[data-theme="light"] .monitor-status-chip {
    background: rgba(13, 97, 186, 0.1);
    color: #0d4f96;
}

.ops-shell[data-theme="light"] .monitor-status-slot.has-data:hover .monitor-status-tick,
.ops-shell[data-theme="light"] .monitor-status-slot.has-data:focus-within .monitor-status-tick {
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.ops-shell[data-theme="light"] .monitor-latency-chart-shell {
    background:
        linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(243, 248, 255, 0.98)),
        repeating-linear-gradient(
            to bottom,
            rgba(148, 163, 184, 0.18) 0,
            rgba(148, 163, 184, 0.18) 1px,
            transparent 1px,
            transparent 26px
        );
    border: 1px solid rgba(120, 136, 158, 0.16);
}

.ops-shell[data-theme="light"] .monitor-latency-line {
    stroke: #58aaf6;
}

.ops-shell[data-theme="light"] .monitor-latency-threshold {
    stroke: rgba(217, 119, 6, 0.76);
}

.ops-shell[data-theme="light"] .monitor-latency-point-dot {
    background: #eff8ff;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.26), 0 2px 5px rgba(15, 23, 42, 0.08);
}

.ops-shell[data-theme="light"] .monitor-latency-point-dot.is-warn {
    background: #f5b53d;
    box-shadow: 0 0 0 1px rgba(217, 119, 6, 0.26), 0 2px 5px rgba(15, 23, 42, 0.08);
}

.ops-shell[data-theme="light"] .monitor-incident-toggle {
    background: rgba(241, 245, 249, 0.78);
    border-color: rgba(120, 136, 158, 0.18);
}

.ops-shell[data-theme="light"] .monitor-incident-body {
    color: #334155;
}

@media (max-width: 767.98px) {
    .monitoring-window-card-body {
        align-items: flex-start;
    }

    .monitoring-status-hero-summary {
        text-align: left;
    }

    .monitor-latency-chart-layout {
        gap: 0.5rem;
    }

    .monitor-status-card-header {
        flex-direction: column;
    }

    .monitor-status-summary {
        text-align: left;
    }

    .monitor-status-detail {
        gap: 16px 12px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .monitor-status-history {
        gap: 2px;
        margin-top: 14px;
        min-width: 0;
    }

    .monitor-status-slot {
        height: 24px;
    }

    .monitor-latency-axis {
        flex-basis: 3.5rem;
        font-size: 0.72rem;
    }

    .monitor-latency-chart-shell,
    .monitor-latency-svg {
        height: 88px;
    }

    .monitor-latency-footer {
        font-size: 0.72rem;
        justify-content: flex-start;
        text-align: left;
    }
}
