:root {
    --mb-navy: #061a31;
    --mb-blue: #071a31;
    --mb-panel: #12263e;
    --mb-panel-2: #10243c;
    --mb-line: rgba(255, 255, 255, 0.1);
    --mb-line-strong: rgba(255, 255, 255, 0.18);
    --mb-text: #f8fafc;
    --mb-muted: #d8e5f2;
    --mb-soft: #cbd5e1;
    --mb-gold: #ffb800;
    --mb-green: #22c55e;
    --mb-yellow: #f59e0b;
    --mb-red: #ef4444;
    --mb-gray: #64748b;
    --mb-cyan: #38bdf8;
    --mb-radius: 5px;
}

* {
    box-sizing: border-box;
}

body.ops-body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background:
        linear-gradient(90deg, rgba(6, 26, 49, 0.98), rgba(6, 26, 49, 0.9)),
        linear-gradient(135deg, var(--mb-navy) 0%, var(--mb-blue) 48%, #06172b 100%);
    color: var(--mb-text);
}

.ops-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255,255,255,0.028) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.72), transparent 78%);
}

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

.ops-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    min-height: 70px;
    padding: 13px max(28px, calc((100vw - 1180px) / 2));
    background: rgba(7, 26, 49, 0.96);
    border-top: 5px solid #686868;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
}

.ops-logo {
    width: 132px;
    height: auto;
    object-fit: contain;
    display: block;
}

.ops-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.ops-brand img {
    width: 132px;
    height: auto;
    max-width: 132px;
    object-fit: contain;
    display: block;
}

.ops-user {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    color: var(--mb-soft);
    font-size: 14px;
}

.ops-nav {
    display: flex;
    align-items: center;
    gap: 34px;
    flex-wrap: wrap;
}

.ops-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: auto;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 0;
    color: var(--mb-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    transition: color 0.18s ease;
}

.ops-nav a::after {
    display: none;
}

.ops-nav a:hover,
.ops-nav a.active {
    color: var(--mb-gold);
    background: transparent;
    border-color: transparent;
}

.ops-badge-count {
    min-width: 22px;
    padding: 4px 7px;
    border-radius: 999px;
    color: #fff;
    background: var(--mb-red);
    font-size: 12px;
    line-height: 1;
    text-align: center;
}

.ops-shell {
    width: min(1560px, calc(100% - 48px));
    margin: 0 auto;
    padding: 28px 0 44px;
}

.ops-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 18px;
    align-items: stretch;
    margin-bottom: 18px;
}

.ops-hero-main,
.ops-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--mb-line);
    border-radius: var(--mb-radius);
    background: linear-gradient(180deg, rgba(19, 41, 75, 0.92), rgba(9, 23, 43, 0.92));
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}

.ops-hero-main {
    padding: 24px;
    min-height: 236px;
}

.ops-hero-main::before,
.ops-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
}

.ops-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--mb-gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ops-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mb-green);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
    animation: opsPulse 1.8s ease-out infinite;
}

.ops-title {
    position: relative;
    margin: 0;
    max-width: 720px;
    color: #fff;
    font-size: 34px;
    line-height: 1.1;
}

.ops-subtitle {
    position: relative;
    max-width: 760px;
    margin: 12px 0 0;
    color: var(--mb-soft);
    font-size: 15px;
    line-height: 1.6;
}

.ops-hero-actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.ops-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 14px;
    border-radius: var(--mb-radius);
    border: 1px solid var(--mb-line-strong);
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.ops-button.primary {
    border-color: var(--mb-gold);
    color: var(--mb-blue);
    background: var(--mb-gold);
}

.ops-primary-action,
.ops-secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 14px;
    border-radius: var(--mb-radius);
    font-size: 14px;
    font-weight: 900;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.ops-primary-action {
    border: 1px solid var(--mb-gold);
    color: var(--mb-blue);
    background: var(--mb-gold);
}

.ops-secondary-action {
    border: 1px solid var(--mb-line-strong);
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.ops-primary-action:hover,
.ops-secondary-action:hover {
    transform: translateY(-1px);
    border-color: var(--mb-gold);
}

.ops-button:hover {
    transform: translateY(-1px);
    border-color: var(--mb-gold);
}

.ops-status-card {
    padding: 20px;
}

.ops-gauge-wrap {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 176px;
}

.ops-gauge {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at center, #0c1b31 0 56%, transparent 57%),
        conic-gradient(var(--gauge-color) calc(var(--gauge-value) * 1%), rgba(255,255,255,0.08) 0);
    box-shadow: inset 0 0 24px rgba(255,255,255,0.08), 0 12px 26px rgba(0,0,0,0.24);
}

.ops-gauge-value {
    color: #fff;
    font-size: 34px;
    font-weight: 900;
}

.ops-gauge-label {
    margin-top: 12px;
    color: var(--mb-soft);
    text-align: center;
    line-height: 1.5;
}

.ops-kpi-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.ops-kpi {
    position: relative;
    overflow: hidden;
    min-height: 126px;
    padding: 16px;
    border: 1px solid var(--mb-line);
    border-radius: var(--mb-radius);
    background: rgba(16, 34, 60, 0.82);
    box-shadow: 0 16px 34px rgba(0,0,0,0.18);
}

.ops-kpi::after {
    content: "";
    position: absolute;
    right: -22px;
    top: -24px;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: var(--accent-soft);
}

.ops-kpi small {
    position: relative;
    display: block;
    color: var(--mb-soft);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ops-kpi strong {
    position: relative;
    display: block;
    margin-top: 10px;
    color: #fff;
    font-size: 34px;
    line-height: 1;
}

.ops-kpi span {
    position: relative;
    display: block;
    margin-top: 10px;
    color: var(--mb-muted);
    font-size: 13px;
}

.accent-red { --accent: var(--mb-red); --accent-soft: rgba(239, 68, 68, 0.18); border-top: 3px solid var(--mb-red); }
.accent-green { --accent: var(--mb-green); --accent-soft: rgba(34, 197, 94, 0.18); border-top: 3px solid var(--mb-green); }
.accent-yellow { --accent: var(--mb-yellow); --accent-soft: rgba(245, 158, 11, 0.18); border-top: 3px solid var(--mb-yellow); }
.accent-gray { --accent: var(--mb-gray); --accent-soft: rgba(100, 116, 139, 0.18); border-top: 3px solid var(--mb-gray); }
.accent-cyan { --accent: var(--mb-cyan); --accent-soft: rgba(56, 189, 248, 0.18); border-top: 3px solid var(--mb-cyan); }
.accent-gold { --accent: var(--mb-gold); --accent-soft: rgba(255, 184, 0, 0.18); border-top: 3px solid var(--mb-gold); }

.ops-grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 18px;
    margin-bottom: 18px;
}

.ops-grid-3 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    margin-bottom: 18px;
}

.ops-module-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.ops-module-card {
    position: relative;
    overflow: hidden;
    min-height: 178px;
    padding: 18px;
    border: 1px solid var(--mb-line);
    border-top: 3px solid var(--accent);
    border-radius: var(--mb-radius);
    background: linear-gradient(180deg, rgba(16, 34, 60, 0.88), rgba(9, 23, 43, 0.9));
    box-shadow: 0 16px 34px rgba(0,0,0,0.2);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.ops-module-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    background: linear-gradient(180deg, rgba(22, 45, 78, 0.94), rgba(9, 23, 43, 0.96));
}

.ops-module-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 16px;
    border-radius: var(--mb-radius);
    color: #fff;
    background: var(--accent-soft);
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 18px;
    font-weight: 900;
}

.ops-module-card h3 {
    margin: 0 0 9px;
    color: #fff;
    font-size: 18px;
}

.ops-module-card p {
    margin: 0;
    color: var(--mb-soft);
    font-size: 14px;
    line-height: 1.5;
}

.ops-module-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    color: var(--mb-gold);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ops-map-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
    align-items: start;
}

.ops-map-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ops-filter-button {
    min-height: 34px;
    padding: 8px 10px;
    border-radius: var(--mb-radius);
    border: 1px solid var(--mb-line-strong);
    color: var(--mb-soft);
    background: rgba(255,255,255,0.05);
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.ops-filter-button.active,
.ops-filter-button:hover {
    color: #fff;
    border-color: var(--mb-gold);
    background: rgba(255,184,0,0.12);
}

.ops-map-wrap {
    overflow: auto;
    padding: 12px;
    border: 1px solid var(--mb-line);
    border-radius: var(--mb-radius);
    background: rgba(5, 11, 20, 0.34);
}

.ops-map-stage {
    position: relative;
    display: inline-block;
    width: 100%;
    min-width: 760px;
}

.ops-map-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--mb-radius);
    background: #fff;
    cursor: crosshair;
}

.ops-marker-link {
    position: absolute;
    z-index: 5;
    transform: translate(-50%, -50%);
}

.ops-marker-link.is-hidden {
    display: none;
}

.ops-marker {
    position: relative;
    display: grid;
    place-items: center;
    width: 23px;
    height: 23px;
    border: 2px solid rgba(255,255,255,0.95);
    border-radius: 50%;
    background: var(--marker);
    box-shadow: 0 0 0 5px rgba(0,0,0,0.18), 0 9px 20px rgba(0,0,0,0.38);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.ops-marker::after {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
}

.ops-marker-link.has-alert .ops-marker::before {
    content: "";
    position: absolute;
    inset: -8px;
    border: 2px solid var(--marker);
    border-radius: 50%;
    animation: opsMarkerPulse 1.5s ease-out infinite;
}

.ops-marker-link:hover,
.ops-marker-link:focus,
.ops-marker-link:focus-within {
    z-index: 100;
}

.ops-marker-link:hover .ops-marker {
    transform: scale(1.22);
    box-shadow: 0 0 0 7px rgba(255,255,255,0.1), 0 12px 26px rgba(0,0,0,0.48);
}

.ops-map-tooltip {
    position: absolute;
    left: 30px;
    top: -18px;
    width: 270px;
    padding: 13px;
    border: 1px solid var(--mb-line-strong);
    border-radius: var(--mb-radius);
    background: rgba(9, 23, 43, 0.96);
    box-shadow: 0 18px 34px rgba(0,0,0,0.36);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.ops-marker-link:hover .ops-map-tooltip,
.ops-marker-link:focus .ops-map-tooltip,
.ops-marker-link:focus-within .ops-map-tooltip {
    opacity: 1;
    transform: translateY(0);
}

.ops-map-tooltip strong {
    display: block;
    margin-bottom: 5px;
    color: #fff;
    font-size: 14px;
}

.ops-map-tooltip span {
    display: block;
    color: var(--mb-soft);
    font-size: 12px;
    line-height: 1.45;
}

.ops-side-stack {
    position: sticky;
    top: 86px;
    display: grid;
    gap: 18px;
}

.ops-coordinate-box {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--mb-line);
    border-radius: var(--mb-radius);
    background: rgba(255,255,255,0.035);
}

.ops-coordinate-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--mb-soft);
    font-size: 14px;
}

.ops-coordinate-row strong {
    color: var(--mb-gold);
}

.ops-alert-board {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}

.ops-alert-list {
    display: grid;
    gap: 12px;
}

.ops-alert-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--mb-line);
    border-left: 4px solid var(--severity);
    border-radius: var(--mb-radius);
    background: rgba(255,255,255,0.04);
}

.ops-alert-card::before {
    content: "";
    position: absolute;
    right: -28px;
    top: -28px;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: var(--severity-soft);
}

.ops-alert-main,
.ops-alert-actions {
    position: relative;
}

.ops-alert-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 8px;
}

.ops-alert-title h3 {
    margin: 0;
    color: #fff;
    font-size: 17px;
}

.ops-alert-desc {
    max-width: 900px;
    margin: 0;
    color: var(--mb-soft);
    font-size: 14px;
    line-height: 1.5;
}

.ops-alert-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.ops-alert-meta span,
.ops-alert-meta a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 9px;
    border: 1px solid var(--mb-line);
    border-radius: 999px;
    color: var(--mb-soft);
    background: rgba(255,255,255,0.035);
    font-size: 12px;
    font-weight: 800;
}

.ops-alert-meta a {
    color: var(--mb-gold);
}

.ops-alert-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    min-width: 156px;
}

.ops-alert-age {
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    text-align: right;
}

.ops-alert-age small {
    display: block;
    margin-top: 4px;
    color: var(--mb-muted);
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ops-media-thumb {
    width: 54px;
    height: 54px;
    display: block;
    object-fit: cover;
    border-radius: var(--mb-radius);
    border: 1px solid var(--mb-line-strong);
    background: rgba(255,255,255,0.06);
}

.ops-empty-state {
    padding: 24px;
    border: 1px dashed var(--mb-line-strong);
    border-radius: var(--mb-radius);
    color: var(--mb-soft);
    background: rgba(255,255,255,0.035);
}

.ops-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 18px;
    align-items: start;
}

.ops-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ops-form-group,
.ops-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ops-form-group.full,
.ops-field.full {
    grid-column: 1 / -1;
}

.ops-label,
.ops-field label {
    margin-bottom: 8px;
    color: var(--mb-soft);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.ops-input,
.ops-select,
.ops-textarea,
.ops-file {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--mb-line-strong);
    border-radius: var(--mb-radius);
    color: #fff;
    background: rgba(5, 11, 20, 0.42);
    padding: 11px 12px;
    font: inherit;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.ops-textarea {
    min-height: 120px;
    resize: vertical;
}

.ops-file {
    padding: 10px 12px;
}

.ops-input:focus,
.ops-select:focus,
.ops-textarea:focus,
.ops-file:focus {
    border-color: var(--mb-gold);
    background: rgba(5, 11, 20, 0.58);
    box-shadow: 0 0 0 3px rgba(255, 184, 0, 0.14);
}

.ops-help {
    margin-top: 6px;
    color: var(--mb-muted);
    font-size: 12px;
    line-height: 1.45;
}

.ops-form-section {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--mb-line);
}

.ops-form-section h3 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 17px;
}

.ops-form-section p {
    margin: 0 0 14px;
    color: var(--mb-muted);
    font-size: 13px;
}

.ops-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.ops-alert-error {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(239, 68, 68, 0.28);
    border-radius: var(--mb-radius);
    color: #fecaca;
    background: rgba(239, 68, 68, 0.12);
    font-size: 14px;
    font-weight: 800;
}

.ops-alert-success,
.ops-alert-warning {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: var(--mb-radius);
    font-size: 14px;
    font-weight: 800;
}

.ops-alert-success {
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #bbf7d0;
    background: rgba(34, 197, 94, 0.12);
}

.ops-alert-warning {
    border: 1px solid rgba(245, 158, 11, 0.34);
    color: #fde68a;
    background: rgba(245, 158, 11, 0.12);
}

.ops-preview-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
    border: 1px solid var(--mb-line-strong);
    border-radius: var(--mb-radius);
    background: rgba(255,255,255,0.06);
}

.ops-card-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--mb-line);
    background: rgba(5, 11, 20, 0.28);
}

.ops-card-title {
    margin: 0;
    color: #fff;
    font-size: 17px;
}

.ops-card-note {
    color: var(--mb-muted);
    font-size: 12px;
    font-weight: 700;
}

.ops-card-body {
    position: relative;
    padding: 18px;
}

.ops-chart {
    width: 100%;
    height: 292px;
    display: block;
}

.ops-chart.small {
    height: 230px;
}

.ops-table-wrap {
    position: relative;
    overflow-x: auto;
}

.ops-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
}

.ops-table th,
.ops-table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--mb-line);
    text-align: left;
    vertical-align: middle;
}

.ops-table th {
    color: var(--mb-soft);
    background: rgba(255,255,255,0.035);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ops-table td {
    color: #f8fafc;
    font-size: 14px;
}

.ops-table tr:hover td {
    background: rgba(255,255,255,0.035);
}

.ops-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.pill-green { background: rgba(34,197,94,0.16); color: #bbf7d0; }
.pill-yellow { background: rgba(245,158,11,0.16); color: #fde68a; }
.pill-red { background: rgba(239,68,68,0.16); color: #fecaca; }
.pill-gray { background: rgba(100,116,139,0.2); color: #e2e8f0; }
.pill-cyan { background: rgba(56,189,248,0.16); color: #bae6fd; }

.ops-focus-list {
    display: grid;
    gap: 10px;
}

.ops-focus-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--mb-line);
    border-radius: var(--mb-radius);
    background: rgba(255,255,255,0.035);
}

.ops-focus-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--dot);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.ops-focus-label {
    color: var(--mb-soft);
    font-size: 13px;
}

.ops-focus-value {
    color: #fff;
    font-size: 18px;
    font-weight: 900;
}

.ops-progress {
    width: 100%;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
}

.ops-progress span {
    display: block;
    height: 100%;
    width: var(--value);
    border-radius: inherit;
    background: var(--bar);
    animation: opsGrow 0.8s ease both;
}

.ops-state-form {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ops-icon-button {
    min-width: 34px;
    height: 34px;
    border: 1px solid var(--mb-line-strong);
    border-radius: var(--mb-radius);
    color: #fff;
    background: rgba(255,255,255,0.06);
    cursor: pointer;
}

.ops-icon-button:hover {
    border-color: var(--mb-gold);
}

@keyframes opsPulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.52); }
    70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@keyframes opsGrow {
    from { width: 0; }
}

@keyframes opsMarkerPulse {
    0% { opacity: 0.75; transform: scale(0.72); }
    100% { opacity: 0; transform: scale(1.72); }
}

/* MBYTES visual unification */
:root {
    --mb-paper: #f6f9fc;
    --mb-paper-text: #08213a;
    --mb-paper-muted: #456174;
    --mb-footer: #06172b;
    --mb-shadow: 0 24px 54px rgba(0, 0, 0, 0.24);
    --mb-shadow-soft: 0 14px 32px rgba(6, 26, 49, 0.16);
}

body.ops-body {
    position: relative;
    isolation: isolate;
    background: var(--mb-navy);
}

body.ops-body::before {
    content: "";
    position: fixed;
    inset: 70px -28px -28px;
    z-index: -3;
    background:
        linear-gradient(90deg, rgba(6, 26, 49, 0.96) 0%, rgba(6, 26, 49, 0.86) 46%, rgba(6, 26, 49, 0.76) 100%),
        linear-gradient(180deg, rgba(6, 26, 49, 0.05) 0%, rgba(6, 26, 49, 0.95) 100%),
        url("../img/hero-infraestructura-light.png") center top / cover no-repeat;
    transform: scale(1.03);
    animation: opsHeroDrift 18s ease-in-out infinite alternate;
}

body.ops-body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255,255,255,0.028) 1px, transparent 1px);
    background-size: 74px 74px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.64), transparent 78%);
}

.ops-bg {
    background:
        radial-gradient(circle at 12% 12%, rgba(255, 184, 0, 0.12), transparent 28%),
        linear-gradient(180deg, transparent 0%, rgba(6, 23, 43, 0.72) 74%);
    background-size: auto;
    mask-image: none;
}

.ops-topbar {
    min-height: 70px;
    height: 70px;
    background: #071a31;
    box-shadow: none;
}

.ops-brand {
    min-width: 132px;
}

.ops-user > div {
    display: none;
}

.ops-public-link {
    color: inherit !important;
    background: transparent !important;
    border-color: transparent !important;
}

.ops-shell {
    width: min(1180px, calc(100% - 70px));
    padding: 34px 0 58px;
}

.ops-hero {
    gap: 16px;
    margin-bottom: 20px;
}

.ops-hero-main {
    min-height: 246px;
    padding: clamp(24px, 3.2vw, 34px);
    border-color: rgba(255, 255, 255, 0.18);
    background:
        linear-gradient(90deg, rgba(6, 26, 49, 0.86), rgba(18, 38, 62, 0.76)),
        linear-gradient(135deg, rgba(255, 184, 0, 0.1), transparent 34%);
    box-shadow: var(--mb-shadow);
}

.ops-hero-main::before {
    background:
        linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.68), transparent 76%);
}

.ops-hero-main::after {
    content: "";
    position: absolute;
    left: clamp(24px, 3.2vw, 34px);
    bottom: clamp(20px, 2.6vw, 26px);
    width: 54px;
    height: 3px;
    border-radius: 5px;
    background: var(--mb-gold);
}

.ops-kicker {
    color: var(--mb-muted);
    font-size: 11px;
}

.ops-live-dot {
    background: var(--mb-gold);
    box-shadow: 0 0 0 7px rgba(255, 184, 0, 0.16);
    animation: none;
}

.ops-title {
    max-width: 700px;
    font-size: clamp(32px, 4.1vw, 44px);
    line-height: 1.18;
    font-weight: 750;
    letter-spacing: 0;
}

.ops-subtitle {
    max-width: 660px;
    color: var(--mb-muted);
    font-size: 14px;
    line-height: 1.62;
}

.ops-card,
.ops-kpi,
.ops-module-card,
.ops-alert-card,
.ops-map-wrap,
.ops-coordinate-box,
.ops-empty-state,
.ops-details {
    border-color: rgba(255, 255, 255, 0.14);
    border-radius: 5px;
    background: rgba(246, 249, 252, 0.1);
    box-shadow: var(--mb-shadow-soft);
    backdrop-filter: blur(14px);
}

.ops-card,
.ops-details {
    background:
        linear-gradient(180deg, rgba(246, 249, 252, 0.13), rgba(18, 38, 62, 0.74));
}

.ops-card::before,
.ops-kpi::before,
.ops-module-card::before {
    background:
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.5), transparent 76%);
}

.ops-card-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
    background: rgba(7, 26, 49, 0.36);
}

.ops-card-title {
    color: #fff;
    font-size: 14px;
    line-height: 1.25;
    font-weight: 800;
}

.ops-card-note,
.ops-help {
    color: rgba(216, 229, 242, 0.78);
}

.ops-status-card {
    background:
        linear-gradient(180deg, rgba(246, 249, 252, 0.18), rgba(18, 38, 62, 0.72));
}

.ops-kpi {
    min-height: 118px;
    padding: 16px 18px;
    background: rgba(246, 249, 252, 0.92);
    color: var(--mb-paper-text);
}

.ops-kpi::after {
    right: -24px;
    top: -28px;
    width: 94px;
    height: 94px;
    opacity: 0.72;
}

.ops-kpi small {
    color: var(--mb-paper-muted);
    font-size: 11px;
    line-height: 1.25;
    font-weight: 800;
}

.ops-kpi strong {
    color: var(--mb-paper-text);
    font-size: 27px;
}

.ops-kpi span {
    color: var(--mb-paper-muted);
    font-size: 12px;
    line-height: 1.45;
}

.ops-module-card {
    min-height: 168px;
    padding: 19px 18px 21px;
    background:
        linear-gradient(180deg, rgba(246, 249, 252, 0.93), rgba(246, 249, 252, 0.86));
    color: var(--mb-paper-text);
}

.ops-module-card:hover {
    background: var(--mb-paper);
    box-shadow: 0 22px 46px rgba(6, 26, 49, 0.24);
}

.ops-module-card h3 {
    color: var(--mb-paper-text);
    font-size: 13px;
    line-height: 1.25;
    font-weight: 800;
}

.ops-module-card p {
    color: var(--mb-paper-muted);
    font-size: 11px;
    line-height: 1.55;
    font-weight: 700;
}

.ops-module-icon {
    color: var(--mb-paper-text);
    background: rgba(255, 184, 0, 0.18);
    border-color: rgba(8, 33, 58, 0.12);
}

.ops-module-meta {
    color: #8a6400;
    font-size: 11px;
    font-weight: 700;
}

.ops-button,
.ops-primary-action,
.ops-secondary-action,
.ops-filter-button,
.ops-icon-button {
    border-radius: 5px;
    font-size: 12px;
    letter-spacing: 0;
    text-transform: none;
}

.ops-button.primary,
.ops-primary-action {
    color: var(--mb-paper-text);
    background: var(--mb-gold);
    border-color: var(--mb-gold);
}

.ops-button,
.ops-secondary-action,
.ops-filter-button,
.ops-icon-button {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.ops-button:hover,
.ops-primary-action:hover,
.ops-secondary-action:hover,
.ops-filter-button:hover,
.ops-filter-button.active,
.ops-icon-button:hover {
    transform: translateY(-1px);
    border-color: var(--mb-gold);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.ops-gauge {
    background:
        radial-gradient(circle at center, var(--mb-paper) 0 55%, transparent 56%),
        conic-gradient(var(--gauge-color) calc(var(--gauge-value, var(--gauge, 0)) * 1%), rgba(255,255,255,0.14) 0);
}

.ops-gauge-value {
    color: var(--mb-paper-text);
}

.ops-gauge-label {
    color: var(--mb-muted);
}

.ops-table th {
    color: var(--mb-muted);
    background: rgba(7, 26, 49, 0.5);
}

.ops-table td {
    color: #fff;
}

.ops-table tr {
    transition: background 0.18s ease;
}

.ops-table tr:hover td {
    background: rgba(255, 255, 255, 0.045);
}

.ops-table-compact {
    min-width: 760px;
}

.ops-table-compact th,
.ops-table-compact td {
    padding: 10px 10px;
}

.ops-table-compact th {
    color: rgba(216, 229, 242, 0.86);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.ops-table-compact td {
    color: rgba(248, 250, 252, 0.9);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
}

.ops-table-compact td a {
    font-size: 12px;
    font-weight: 700 !important;
}

.ops-table-compact .ops-pill {
    padding: 5px 8px;
    font-size: 10px;
    font-weight: 800;
}

.ops-input,
.ops-select,
.ops-textarea,
.ops-file {
    color: var(--mb-paper-text);
    background: rgba(246, 249, 252, 0.94);
    border-color: rgba(8, 33, 58, 0.18);
}

.ops-input:focus,
.ops-select:focus,
.ops-textarea:focus,
.ops-file:focus {
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 184, 0, 0.18);
}

.ops-label,
.ops-field label {
    color: var(--mb-muted);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ops-empty-state {
    color: var(--mb-muted);
    background: rgba(246, 249, 252, 0.1);
}

.ops-alert-error,
.ops-alert-success,
.ops-alert-warning {
    border-radius: 5px;
}

.ops-chart {
    min-height: 292px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    background: rgba(7, 26, 49, 0.28);
}

.ops-focus-item {
    background: rgba(246, 249, 252, 0.1);
}

.ops-alert-card {
    background: rgba(246, 249, 252, 0.1);
}

.ops-alert-meta span,
.ops-alert-meta a {
    border-radius: 5px;
    background: rgba(246, 249, 252, 0.08);
}

.ops-map-tooltip {
    background: rgba(7, 26, 49, 0.96);
}

.ops-footer {
    position: relative;
    z-index: 1;
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
    background: var(--mb-footer);
}

.ops-footer-inner {
    width: min(1180px, calc(100% - 70px));
    margin: 0 auto;
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #a8c0d7;
    font-size: 11px;
}

.ops-footer-inner strong {
    display: block;
    margin-bottom: 5px;
    color: #fff;
    font-size: 12px;
}

.ops-footer-inner div > span {
    display: block;
    color: #a8c0d7;
    font-size: 11px;
}

.ops-footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--mb-gold);
    font-weight: 400;
}

.ops-footer-inner > span {
    color: #a8c0d7;
    font-size: 11px;
}

@keyframes opsHeroDrift {
    from { transform: scale(1.03) translate3d(0, 0, 0); }
    to { transform: scale(1.07) translate3d(-18px, -10px, 0); }
}

@media (max-width: 1180px) {
    .ops-hero,
    .ops-grid-2,
    .ops-grid-3,
    .ops-map-layout,
    .ops-alert-board,
    .ops-form-layout {
        grid-template-columns: 1fr;
    }

    .ops-side-stack {
        position: static;
    }

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

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

@media (max-width: 780px) {
    .ops-topbar {
        position: static;
        height: auto;
        align-items: flex-start;
        flex-direction: column;
        padding: 16px max(16px, calc((100vw - 1180px) / 2));
    }

    .ops-user,
    .ops-nav {
        width: 100%;
    }

    .ops-shell {
        width: min(100% - 28px, 1560px);
        padding-top: 18px;
    }

    .ops-title {
        font-size: 29px;
    }

    .ops-nav {
        gap: 18px;
    }

    .ops-kpi-grid {
        grid-template-columns: 1fr;
    }

    .ops-module-grid {
        grid-template-columns: 1fr;
    }

    .ops-form-grid {
        grid-template-columns: 1fr;
    }

    .ops-card-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .ops-alert-card {
        grid-template-columns: 1fr;
    }

    .ops-alert-actions {
        align-items: stretch;
    }

    .ops-alert-age {
        text-align: left;
    }

    .ops-footer-inner {
        width: min(100% - 32px, 1180px);
        padding: 16px 0;
        flex-direction: column;
        align-items: flex-start;
    }
}
