:root {
    --icd-navy: #082f43;
    --icd-dark: #061f2d;
    --icd-panel: #104c65;
    --icd-panel-light: #185d77;
    --icd-blue: #236d8c;
    --icd-cyan: #16b9dc;
    --icd-cyan-light: #8de7f5;
    --icd-text: #f4fafc;
    --icd-muted: #a9c5cf;
    --icd-green: #39c98a;
    --icd-yellow: #f4b942;
    --icd-red: #e05252;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: var(--icd-navy);
    color: var(--icd-text);
    font-family: Arial, Helvetica, sans-serif;
}

body {
    overflow-x: hidden;
}

.icd-app-shell {
    min-height: 100vh;
    background: linear-gradient( 135deg, #06283a 0%, var(--icd-navy) 45%, #0a3c52 100% );
}

.icd-topbar {
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 0 28px;
    background: var(--icd-dark);
    border-bottom: 2px solid var(--icd-cyan);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.35);
}

.icd-brand {
    display: flex;
    align-items: center;
    min-width: 290px;
}

.icd-logo {
    width: 70px;
    height: 56px;
    object-fit: contain;
    border-radius: 5px;
    background: white;
}

.icd-brand-text {
    margin-left: 12px;
}

.icd-title {
    color: var(--icd-cyan-light);
    font-size: 19px;
    font-weight: bold;
    letter-spacing: 1.5px;
}

.icd-subtitle {
    color: var(--icd-muted);
    font-size: 11px;
    margin-top: 4px;
}

.icd-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

    .icd-navigation a {
        color: var(--icd-muted);
        text-decoration: none;
        padding: 12px 18px;
        border-radius: 5px;
        font-size: 14px;
        font-weight: bold;
    }

        .icd-navigation a:hover {
            color: white;
            background: var(--icd-panel);
        }

        .icd-navigation a.active {
            color: white;
            background: var(--icd-blue);
            box-shadow: inset 0 -3px 0 var(--icd-cyan);
        }

.icd-system-status {
    color: var(--icd-green);
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}

.icd-status-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 6px;
    border-radius: 50%;
    background: var(--icd-green);
    box-shadow: 0 0 8px var(--icd-green);
}

.icd-main-content {
    width: 100%;
    padding: 24px;
    box-sizing: border-box;
}

.dashboard-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 20px;
}

    .dashboard-heading h1 {
        margin: 0;
        color: white;
        font-size: 28px;
    }

.dashboard-subtitle {
    color: var(--icd-muted);
    margin-top: 5px;
}

.dashboard-time {
    color: var(--icd-cyan-light);
    font-size: 12px;
    font-weight: bold;
}

.pump-dashboard-grid {
    display: grid;
    grid-template-columns: 370px minmax(400px, 1fr) 320px;
    gap: 16px;
    align-items: start;
}

.dashboard-panel {
    min-width: 0;
    background: rgba(16, 76, 101, 0.94);
    border: 1px solid rgba(141, 231, 245, 0.24);
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.pump-summary-panel,
.status-log-panel {
    min-height: 460px;
}

.telemetry-panel {
    min-height: 650px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 15px;
    background: rgba(6, 31, 45, 0.72);
    border-bottom: 1px solid rgba(141, 231, 245, 0.2);
    color: var(--icd-cyan-light);
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.8px;
}

.rent-badge {
    padding: 4px 8px;
    border-radius: 12px;
    background: #1976c9;
    color: white;
    font-size: 10px;
}

.pump-status-large {
    padding: 18px 15px 8px;
    color: var(--icd-green);
    font-size: 18px;
    font-weight: bold;
}

.summary-list {
    padding: 8px 15px;
}

    .summary-list div {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 7px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        font-size: 12px;
    }

    .summary-list span {
        color: var(--icd-muted);
    }

    .summary-list strong {
        color: white;
        text-align: right;
        font-weight: normal;
    }

.link-value {
    color: var(--icd-cyan-light) !important;
}

.unit-notes {
    margin: 12px 15px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.16);
    color: var(--icd-muted);
    font-size: 11px;
    line-height: 1.5;
}

.small-label {
    margin-bottom: 4px;
    color: var(--icd-cyan-light);
    font-size: 10px;
    font-weight: bold;
}

.rental-history {
    margin: 15px;
}

.rental-day {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--icd-muted);
    font-size: 11px;
}

.rental-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 9px;
    font-weight: bold;
}

    .rental-status.on-rent {
        background: #1976c9;
        color: white;
    }

    .rental-status.maintenance {
        background: var(--icd-yellow);
        color: #172b35;
    }

.connection-label {
    color: var(--icd-green);
    font-size: 10px;
}

/* Gauge layout */
.gauge-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    grid-auto-rows: 205px;
    gap: 12px;
    padding: 16px;
}

.gauge-card {
    min-width: 0;
    height: 205px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient( 145deg, rgba(24, 93, 119, 0.98), rgba(7, 48, 67, 0.98) );
    border: 1px solid rgba(141, 231, 245, 0.24);
    border-radius: 6px;
    box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.22), 0 3px 8px rgba(0, 0, 0, 0.18);
}

.pump-gauge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.gauge-ring {
    position: relative;
    width: 112px;
    height: 112px;
    flex: 0 0 auto;
    border-radius: 50%;
    box-shadow: 0 0 0 5px #082f43, 0 0 0 7px var(--icd-cyan), inset 0 0 20px rgba(0, 0, 0, 0.7), 0 0 14px rgba(22, 185, 220, 0.25);
}

    .gauge-ring::after {
        content: "";
        position: absolute;
        inset: 11px;
        z-index: 1;
        border-radius: 50%;
        background: radial-gradient( circle at center, #0a3448 0%, #082f43 75%, #061f2d 100% );
    }

.gauge-center {
    position: absolute;
    z-index: 3;
    inset: 0;
}

.gauge-unit {
    position: absolute;
    top: 29px;
    left: 0;
    width: 100%;
    color: var(--icd-cyan-light);
    text-align: center;
    font-size: 10px;
    font-weight: bold;
}

.gauge-value {
    position: absolute;
    left: 50%;
    bottom: 19px;
    min-width: 62px;
    padding: 5px 10px;
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    background: rgba(6, 31, 45, 0.9);
    color: white;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
}

.gauge-label {
    margin-top: 10px;
    color: var(--icd-cyan-light);
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 0.7px;
}

.gauge-range {
    margin-top: 3px;
    color: var(--icd-muted);
    font-size: 8px;
}

.gauge-needle {
    position: absolute;
    z-index: 5;
    left: calc(50% - 2px);
    bottom: 50%;
    width: 4px;
    height: 43px;
    border-radius: 4px;
    background: white;
    transform-origin: 50% 100%;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.9);
    transition: transform 0.5s ease;
}

    .gauge-needle::after {
        content: "";
        position: absolute;
        left: -4px;
        bottom: -5px;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: white;
        box-shadow: 0 0 4px black;
    }

.gauge-target {
    position: absolute;
    z-index: 6;
    left: calc(50% - 2px);
    bottom: 50%;
    width: 4px;
    height: 50px;
    border-radius: 3px;
    background: #2388ff;
    transform-origin: 50% 100%;
    opacity: 0.95;
    transition: transform 0.5s ease;
}

    .gauge-target::after {
        content: "";
        position: absolute;
        left: -4px;
        top: -3px;
        width: 12px;
        height: 7px;
        border-radius: 2px;
        background: #2388ff;
    }

/* Industrial gauge enhancements */
.gauge-card {
    background: linear-gradient(145deg, #15536b, #062b3d 72%);
    border-color: rgba(141, 231, 245, 0.42);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), inset 0 0 22px rgba(0, 0, 0, 0.34), 0 4px 10px rgba(0, 0, 0, 0.28);
}

/* Beaver 45 mobile field dashboard */
.beaver-mobile-shell { min-height: 100vh; max-width: 100%; overflow-x: clip; background: radial-gradient(circle at 70% 0, #123a4b, #05080a 55%); }.beaver-mobile-topbar { position:sticky;top:0;z-index:30;height:56px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 max(14px,env(safe-area-inset-right)) 0 max(14px,env(safe-area-inset-left));border-bottom:1px solid #335460;background:rgba(8,13,16,.94);box-shadow:0 8px 24px rgba(0,0,0,.28);backdrop-filter:blur(14px)}.beaver-mobile-brand { display:flex;align-items:center;gap:9px;color:#88e7fa;text-decoration:none}.beaver-mobile-brand img{width:38px;height:38px;object-fit:cover;border:1px solid #376877;border-radius:9px;background:#061218}.beaver-mobile-brand span{display:grid;gap:2px}.beaver-mobile-brand strong{color:#effbff;font-size:11px;letter-spacing:1px}.beaver-mobile-brand small{color:#62cde7;font-size:7px;font-weight:800;letter-spacing:1.2px}.beaver-mobile-actions{display:flex;align-items:center;gap:8px}.beaver-mobile-actions form{margin:0}.beaver-mobile-actions>a,.beaver-mobile-topbar button{border:1px solid #3b6572;border-radius:5px;padding:7px 9px;background:transparent;color:#a8d9e4;font-size:8px;font-weight:800;letter-spacing:.5px;text-decoration:none}.beaver-mobile-app-state{display:flex;align-items:center;gap:6px;color:#65e2ad;font-size:8px;font-weight:900;letter-spacing:.7px}.beaver-mobile-app-state i{width:6px;height:6px;border-radius:50%;background:#5be6ad;box-shadow:0 0 8px #5be6ad}.beaver-mobile-shell main{box-sizing:border-box;width:100%;max-width:100%;padding:14px max(14px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));overflow-x:clip}
@media(max-width:520px){.beaver-mobile-app-state{display:none}.beaver-mobile-actions{gap:5px}.beaver-mobile-actions>a,.beaver-mobile-topbar button{padding:6px 7px;font-size:7px}.beaver-mobile-shell main{padding-top:10px}}
.beaver-mobile-login { box-sizing: border-box; width: 100%; max-width: 380px; display: grid; gap: 12px; margin: 12vh auto; padding: 26px; border: 1px solid #345360; border-radius: 14px; background: #0e171b; }.beaver-mobile-login > span { color: #61dffb; font-size: 10px; font-weight: 700; letter-spacing: .1em; }.beaver-mobile-login h1 { margin: 0; color: white; font-size: 27px; }.beaver-mobile-login p { margin: -5px 0 7px; color: #9abac4; font-size: 12px; }.beaver-mobile-login form { display: grid; width: 100%; min-width: 0; gap: 10px; }.beaver-mobile-login input { width: 100%; min-width: 0; min-height: 44px; box-sizing: border-box; border: 1px solid #34525c; border-radius: 7px; padding: 0 12px; outline: none; background: #091014; color: white; }.beaver-mobile-login button { width: 100%; min-width: 0; min-height: 46px; border: 0; border-radius: 7px; background: #1aa9d1; color: white; font-weight: 700; }.beaver-mobile-login > small { color: #6f929e; font-size: 9px; text-align: center; }
.beaver-mobile-page { max-width: 760px; margin: 0 auto; padding: 4px; display: grid; gap: 12px; color: #edf8fb; }
.beaver-mobile-header { display: flex; justify-content: space-between; gap: 14px; align-items: start; padding: 16px; border: 1px solid #355561; border-radius: 12px; background: linear-gradient(135deg, #082230, #102f3f); }
.beaver-mobile-kicker, .beaver-mobile-header p, .beaver-mobile-health span, .beaver-mobile-health small { color: #9abac4; font-size: 10px; }
.beaver-mobile-kicker { color: #63dffa; font-weight: 700; letter-spacing: .08em; }
.beaver-mobile-header h1 { margin: 4px 0; font-size: 28px; letter-spacing: .04em; }
.beaver-mobile-header p { margin: 0; }
.beaver-mobile-health { min-width: 110px; display: grid; gap: 4px; text-align: right; }
.beaver-mobile-health strong { font-size: 11px; color: #f5bc4c; }.beaver-mobile-health strong.live { color: #62de9d; }
.beaver-mobile-health-rail { height: 5px; overflow: hidden; border-radius: 99px; background: #273d46; }.beaver-mobile-health-rail i { display: block; height: 100%; background: linear-gradient(90deg, #1db7df, #61dc9a); }
.beaver-mobile-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }.beaver-mobile-tabs a { min-height: 48px; display: grid; place-items: center; border: 1px solid #344d57; border-radius: 9px; background: #101b20; color: #85cfe2; font-size: 10px; font-weight: 700; text-decoration: none; }.beaver-mobile-tabs a.active { border-color: #57dffb; background: #126783; color: white; box-shadow: inset 0 -3px #24bee8; }
.beaver-mobile-error { padding: 12px; border: 1px solid #9b514b; border-radius: 9px; color: #ffc0b7; background: #2b1c1c; font-size: 11px; }
.beaver-mobile-hero, .beaver-mobile-trend, .beaver-mobile-vibration-reading { border: 1px solid #355561; border-radius: 13px; background: #0e171b; overflow: hidden; }
.beaver-mobile-hero.dredge { min-height: 260px; position: relative; background: linear-gradient(#153f51 0 58%, #55a9c3 58% 60%, #0d3d53 60%); }.beaver-mobile-dredge-art { position: absolute; inset: 4px 2px 0; width: calc(100% - 4px); height: 76%; object-fit: contain; filter: drop-shadow(0 12px 10px #0009); }
.beaver-mobile-primary { position: absolute; left: 15px; bottom: 15px; display: grid; gap: 2px; }.beaver-mobile-primary span, .beaver-mobile-primary em { color: #b7d2db; font-size: 10px; font-style: normal; }.beaver-mobile-primary strong { font-size: 35px; }.beaver-mobile-primary strong small { font-size: 14px; color: #60dff8; }
.beaver-mobile-stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }.beaver-mobile-rail-card { min-height: 103px; padding: 12px; border: 1px solid #344e58; border-radius: 11px; background: #111b20; }.beaver-mobile-rail-card > span { color: #91b5c0; font-size: 9px; font-weight: 700; }.beaver-mobile-rail-card strong { display: block; margin-top: 9px; font-size: 22px; }.beaver-mobile-rail-card strong small { color: #b3cbd2; font-size: 10px; }.beaver-mobile-range { position: relative; height: 8px; margin-top: 10px; background: linear-gradient(90deg, #21b9df, #52d1a4 45%, #f2b449 72%, #ec645b); }.beaver-mobile-range i { position: absolute; top: -4px; width: 4px; height: 16px; transform: translateX(-2px); border-radius: 2px; background: white; box-shadow: 0 0 5px white; }.beaver-mobile-rail-card footer, .beaver-mobile-gauge-card footer, .beaver-mobile-trend footer { display: flex; justify-content: space-between; margin-top: 5px; color: #88a9b3; font-size: 8px; }
.beaver-mobile-gauge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }.beaver-mobile-gauge-card { padding: 10px 6px; border: 1px solid #35515b; border-radius: 11px; background: #10191d; text-align: center; }.beaver-mobile-gauge { --gauge: #28bce3; width: min(26vw, 142px); aspect-ratio: 1; margin: 0 auto; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(from 225deg, var(--gauge) 0 var(--value), #27383f var(--value) 75%, transparent 75%); }.beaver-mobile-gauge.amber { --gauge:#f5b849; }.beaver-mobile-gauge.green { --gauge:#5dde9b; }.beaver-mobile-gauge > div { width: 72%; height: 72%; display: grid; align-content: center; border-radius: 50%; background: #10191d; }.beaver-mobile-gauge span { color: #9fc0ca; font-size: 8px; }.beaver-mobile-gauge strong { font-size: 20px; }.beaver-mobile-gauge small { color: #b3cbd2; font-size: 8px; }
.beaver-mobile-vibration-reading { padding: 24px; display: grid; gap: 5px; text-align: center; }.beaver-mobile-vibration-reading span { color: #93bac5; font-size: 10px; }.beaver-mobile-vibration-reading strong { color: #f5b849; font-size: 38px; }.beaver-mobile-vibration-reading strong small { font-size: 13px; color: #b6d3da; }.beaver-mobile-vibration-reading em { color: #8dabb5; font-size: 10px; font-style: normal; }
.beaver-mobile-trend { padding: 13px; }.beaver-mobile-trend header { display: grid; gap: 3px; }.beaver-mobile-trend header strong { color: #bceaf6; font-size: 11px; }.beaver-mobile-trend header small { color: #8faeb8; font-size: 9px; }.beaver-mobile-trend-bars { height: 54px; display: flex; align-items: end; gap: 2px; margin-top: 9px; border-bottom: 1px solid #35505a; }.beaver-mobile-bar-series { display: flex; align-items: end; width: 100%; height: 100%; gap: 2px; }.beaver-mobile-bar-series i { flex: 1; min-width: 2px; border-radius: 2px 2px 0 0; background: #2bbce3; opacity: .9; }.beaver-mobile-bar-series.amber i { background: #f5b849; }.beaver-mobile-bar-series.green i { background: #5dde9b; }.beaver-mobile-history-link { padding: 14px; border: 1px solid #3687a0; border-radius: 10px; color: #78e3fb; background: #102630; text-align: center; text-decoration: none; font-size: 11px; font-weight: 700; }
.beaver-mobile-tabs a { position: relative; min-height: 56px; border-color: #457080; background: linear-gradient(#214b5b, #10242c); box-shadow: inset 0 1px #79b7c9aa, inset 0 -3px #061115, 0 4px 0 #061115, 0 6px 10px #0007; text-shadow: 0 1px #000; transition: transform .15s ease, box-shadow .15s ease; }.beaver-mobile-tabs a::before { content: ""; position: absolute; inset: 5px 7px auto; height: 2px; border-radius: 2px; background: #64dcf6; opacity: .55; }.beaver-mobile-tabs a:active { transform: translateY(3px); box-shadow: inset 0 1px #79b7c988, 0 1px 0 #061115; }.beaver-mobile-tabs a.active { background: linear-gradient(#169ec5, #075c78); box-shadow: inset 0 1px #a0f2ff, inset 0 -3px #043342, 0 4px 0 #04212c, 0 6px 10px #0007; }
.beaver-mobile-gauge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }.beaver-mobile-gauge-grid .pump-gauge { min-height: 202px; padding: 12px 4px; border: 1px solid #4c7988; border-radius: 9px; background: linear-gradient(145deg, #155168, #062d3e); box-shadow: inset 0 1px #8de7f533, inset 0 0 22px #0007, 0 4px 10px #0005; }.beaver-mobile-gauge-grid .gauge-ring { width: 124px; height: 124px; }.beaver-mobile-gauge-grid .gauge-label { color: #fff; }.beaver-mobile-stat-grid .telemetry-bar-card { height: 93px; border-radius: 9px; background: linear-gradient(145deg, #155168, #062d3e); }.beaver-mobile-trend-bars { height: 92px; }.beaver-mobile-trend { box-shadow: inset 0 1px #8de7f522, 0 5px 12px #0004; }
@media (max-width: 640px) { .projects-topbar { min-height: auto; padding: 8px 12px; }.projects-brand { min-width: 0; }.projects-logo { width: 48px; height: 39px; }.projects-title { font-size: 13px; }.projects-subtitle, .projects-system-status { display: none; }.projects-navigation { overflow-x: auto; gap: 2px; }.projects-navigation a { padding: 8px 9px; font-size: 9px; white-space: nowrap; }.projects-main-content { padding: 12px; }.beaver-mobile-page { padding: 0; }.beaver-mobile-header h1 { font-size: 23px; }.beaver-mobile-header p { max-width: 190px; }.beaver-mobile-gauge-grid { gap: 5px; }.beaver-mobile-gauge-card { padding: 8px 3px; }.beaver-mobile-gauge { width: 27vw; }.beaver-mobile-gauge strong { font-size: 17px; } }

/* BML Lake barge workspace */
.bml-page{max-width:1500px;margin:0 auto;padding:28px;color:#eaf8fb}.bml-header{display:flex;justify-content:space-between;gap:24px;padding:12px 2px 25px}.bml-kicker{display:block;margin-top:14px;color:#54d4eb;font-size:10px;font-weight:800;letter-spacing:1.7px}.bml-header h1{margin:7px 0 4px;font-size:31px;color:#fff}.bml-header p{margin:0;color:#9dc2cc;font-size:13px}.bml-live-state{align-self:flex-end;min-width:235px;padding:12px 15px;border:1px solid #356272;border-radius:7px;background:#0c2837;display:grid;grid-template-columns:11px 1fr;column-gap:9px;position:relative}.bml-live-state>span{width:8px;height:8px;border-radius:50%;background:#f0a947;box-shadow:0 0 10px #f0a947;margin-top:8px}.bml-live-state.live>span{background:#55dd9b;box-shadow:0 0 10px #55dd9b}.bml-live-state small,.bml-panel-title small{display:block;color:#7aa1ab;font-size:9px;font-weight:700;letter-spacing:.7px}.bml-live-state strong{color:#fff;font-size:12px;letter-spacing:.6px}.bml-live-state em{grid-column:2;color:#8fb5be;font-size:10px;font-style:normal;margin-top:5px}.bml-workspace-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px}.bml-workspace-nav a{min-height:74px;padding:12px 15px;border:1px solid #315d6e;border-radius:7px;background:linear-gradient(145deg,#174b62,#0c2938);box-shadow:inset 0 1px rgba(167,237,255,.12),0 5px 10px rgba(0,0,0,.18);color:#dff7fb;text-decoration:none;display:grid;grid-template-columns:32px 1fr;align-content:center;column-gap:9px;transition:.15s}.bml-workspace-nav a:hover,.bml-workspace-nav a.active{border-color:#47c9e6;background:linear-gradient(145deg,#16789a,#10465c);transform:translateY(-1px)}.bml-workspace-nav b{grid-row:span 2;color:#54d4eb;font-size:25px;font-weight:400}.bml-workspace-nav span{font-size:12px;font-weight:800;letter-spacing:.8px}.bml-workspace-nav small{color:#a4c6ce;font-size:10px}.bml-error,.bml-waiting{margin-bottom:18px;padding:14px 16px;border-radius:6px;background:#1b3844;border:1px solid #4a7380;display:flex;gap:12px;align-items:center;font-size:12px}.bml-error{border-color:#a84b4b;color:#ffcece}.bml-waiting{color:#b8dce4}.bml-error strong,.bml-waiting strong{font-size:10px;letter-spacing:.8px}.bml-waiting code{color:#65d8eb}.bml-overview-grid{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(275px,.75fr);gap:16px}.bml-equipment-panel,.bml-live-summary,.bml-map-panel,.bml-position-details,.bml-dredging-hero{border:1px solid #315d6e;border-radius:8px;background:linear-gradient(135deg,rgba(18,68,88,.94),rgba(7,31,43,.97));overflow:hidden}.bml-panel-title{padding:13px 16px;border-bottom:1px solid #315d6e;background:rgba(3,24,35,.42);display:flex;justify-content:space-between;gap:8px}.bml-panel-title>span{color:#91e7f5;font-size:11px;font-weight:800;letter-spacing:.8px}.bml-dredge-illustration{height:290px;position:relative;overflow:hidden;background:radial-gradient(ellipse at 72% 10%,#2a7f95 0,#14485e 36%,#0c2d3d 65%)}.bml-waterline{position:absolute;left:0;right:0;bottom:76px;height:4px;background:#67e2f4;box-shadow:0 0 18px #4ed2e7}.bml-hull{position:absolute;left:15%;bottom:88px;width:52%;height:40px;background:linear-gradient(#edc249,#9f6819);clip-path:polygon(0 0,94% 0,100% 55%,87% 100%,8% 100%);border-radius:3px}.bml-hull b{color:#172d31;font-size:15px;position:absolute;left:38%;top:11px;letter-spacing:2px}.bml-hull i{position:absolute;right:8%;top:-22px;width:54px;height:25px;background:#cad7d8;border:4px solid #3c646c;border-bottom:0}.bml-cab{position:absolute;left:48%;bottom:128px;width:61px;height:35px;background:linear-gradient(135deg,#b8edf3,#436a72);border:4px solid #d1b653;transform:skewY(-9deg)}.bml-arm{position:absolute;left:64%;bottom:110px;width:210px;height:11px;background:#ddb334;transform:rotate(34deg);transform-origin:left center;box-shadow:0 0 0 2px #805d14}.bml-cutter{position:absolute;left:84%;bottom:17px;width:27px;height:27px;border:8px dotted #dfb633;border-radius:50%;box-shadow:0 0 0 3px #634f1c}.bml-primary-readings{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid #315d6e}.bml-live-summary{padding-bottom:12px}.bml-live-summary .bml-metric{margin:0 14px;border-bottom:1px solid rgba(104,161,177,.2)}.bml-metric{padding:14px 14px;position:relative}.bml-metric:before{content:"";position:absolute;left:0;top:14px;bottom:14px;width:3px;background:#4ecde5;opacity:.75}.bml-metric>span{display:block;color:#93b8c1;font-size:10px;font-weight:700;letter-spacing:.6px}.bml-metric strong{display:block;margin-top:5px;color:#fff;font-size:22px}.bml-metric strong small{color:#9ec3cc;font-size:11px;font-weight:600}.bml-metric-green:before{background:#5edc93}.bml-metric-amber:before{background:#f4b942}.bml-metric-purple:before{background:#a68af6}.bml-open-link{display:flex;justify-content:space-between;margin:15px 14px 0;padding:12px;border:1px solid #3b849a;background:#114459;color:#8be5f3;font-size:10px;font-weight:800;letter-spacing:.7px;text-decoration:none}.bml-open-link span{font-size:16px;line-height:10px}.bml-card-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin-top:16px}.bml-card-grid .bml-metric{min-height:82px;border:1px solid #315d6e;border-radius:7px;background:#0d2e3e}.bml-card-grid .bml-metric:before{left:12px;right:12px;top:0;bottom:auto;width:auto;height:3px}.bml-card-grid .bml-metric strong{font-size:25px}.bml-map-layout{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(285px,.75fr);gap:16px}.bml-map{height:520px;position:relative;overflow:hidden;background-image:linear-gradient(rgba(8,38,47,.23),rgba(8,38,47,.48)),url('/images/bml-site-map.jpg');background-size:cover;background-position:right center}.bml-map:after{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at center,transparent 40%,rgba(1,16,23,.55));pointer-events:none}.bml-map-grid{position:absolute;inset:0;background-image:linear-gradient(rgba(107,229,245,.16) 1px,transparent 1px),linear-gradient(90deg,rgba(107,229,245,.16) 1px,transparent 1px);background-size:10% 10%}.bml-map-route{position:absolute;left:22%;top:21%;width:55%;height:49%;border:2px solid rgba(109,229,246,.7);border-radius:48% 37% 43% 52%;transform:rotate(-11deg)}.bml-map-marker{position:absolute;z-index:2;transform:translate(-50%,-50%);display:grid;justify-items:center;color:#fff;font-size:9px;font-weight:800;letter-spacing:.7px;text-shadow:0 1px 4px #000}.bml-map-marker span{display:block;width:19px;height:19px;border:4px solid #ffdc53;border-radius:50% 50% 50% 0;transform:rotate(-45deg);background:#f16a4f;box-shadow:0 0 0 6px rgba(255,218,83,.2),0 0 18px #ffdc53;margin-bottom:8px}.bml-map-marker strong{background:rgba(2,25,32,.8);padding:4px 6px}.bml-map-scale{position:absolute;z-index:2;left:20px;bottom:22px;color:#d4f7fc;font-size:9px;display:flex;align-items:center;gap:7px}.bml-map-scale i{width:110px;height:5px;background:linear-gradient(90deg,#eafcfd 50%,#164758 50%);border:1px solid #eafcfd}.bml-map-note{position:absolute;z-index:2;right:18px;bottom:18px;padding:8px 10px;background:rgba(3,27,36,.84);border:1px solid #4b91a1;color:#b8eaf1;font-size:9px}.bml-position-details .bml-metric{margin:0 15px;border-bottom:1px solid rgba(104,161,177,.2)}.bml-dredging-hero{display:grid;grid-template-columns:1.2fr .8fr}.bml-bucket-geometry{min-height:275px;position:relative;background:radial-gradient(ellipse at 52% 20%,#215b72,#0a2938 68%);overflow:hidden}.bml-boom,.bml-stick,.bml-bucket{position:absolute;background:#e1b337;border:3px solid #745313;box-shadow:inset 0 0 0 2px rgba(255,255,255,.35)}.bml-boom{left:20%;bottom:38%;width:40%;height:19px;transform:rotate(-32deg);transform-origin:left}.bml-stick{left:52%;bottom:43%;width:39%;height:17px;transform:rotate(51deg);transform-origin:left}.bml-bucket{right:6%;bottom:16%;width:45px;height:37px;transform:rotate(42deg);border-radius:3px 3px 16px 16px}.bml-pivot{position:absolute;left:18%;bottom:29%;width:42px;height:42px;border-radius:50%;background:#d9b133;border:7px solid #604919;box-shadow:0 0 0 5px #b3edf4}.bml-bucket-geometry>div{position:absolute;left:24px;top:23px}.bml-bucket-geometry small{display:block;color:#9bdde7;font-size:10px;font-weight:700;letter-spacing:1px}.bml-bucket-geometry strong{display:block;margin-top:8px;color:#fff;font-size:37px}.bml-bucket-geometry em{color:#aacbd1;font-size:11px;font-style:normal}.bml-geometry-readout{display:grid;grid-template-columns:repeat(2,1fr);align-content:center}.bml-geometry-readout .bml-metric{margin:0 13px;border-bottom:1px solid rgba(104,161,177,.2)}
.bml-trend-panel{margin-top:16px;border:1px solid #315d6e;border-radius:8px;background:linear-gradient(135deg,rgba(18,68,88,.94),rgba(7,31,43,.97));overflow:hidden}.bml-trend-legend{display:flex;gap:20px;padding:13px 16px 3px;color:#b8dce4;font-size:10px;font-weight:700;letter-spacing:.5px}.bml-trend-legend i{display:inline-block;width:18px;height:3px;margin:0 5px 3px 0;vertical-align:middle}.bml-trend-legend .deviation{background:#54d4eb}.bml-trend-legend .height{background:#f4b942}.bml-trend-chart{padding:5px 15px 14px}.bml-trend-chart svg{display:block;width:100%;height:230px}.bml-trend-grid{fill:none;stroke:#4a7581;stroke-width:1;stroke-dasharray:5 7;opacity:.45}.bml-trend-deviation,.bml-trend-height{fill:none;stroke-width:4;vector-effect:non-scaling-stroke}.bml-trend-deviation{stroke:#54d4eb;filter:drop-shadow(0 0 4px #54d4eb)}.bml-trend-height{stroke:#f4b942;filter:drop-shadow(0 0 4px #f4b942)}.bml-trend-axis{display:flex;justify-content:space-between;color:#789ba5;font-size:9px;font-weight:700}.bml-trend-empty{padding:38px;color:#94b9c2;font-size:12px;text-align:center}
.bml-xpm-alert{margin-bottom:18px;padding:13px 17px;border:1px solid #f1a841;border-radius:7px;background:linear-gradient(100deg,#60330f,#3a2418);display:grid;grid-template-columns:24px 1fr auto;gap:10px;align-items:center;color:#ffe1ad;box-shadow:0 0 22px rgba(242,167,63,.16)}.bml-xpm-alert>span{color:#ffbe4f;font-size:20px}.bml-xpm-alert strong{display:block;font-size:11px;letter-spacing:1px}.bml-xpm-alert small{display:block;margin-top:4px;color:#ffd699;font-size:11px}.bml-xpm-alert>b{font-size:23px;color:#fff3d9}.bml-trend-temperature{fill:none;stroke:#5edc93;stroke-width:4;vector-effect:non-scaling-stroke;filter:drop-shadow(0 0 4px #5edc93)}.bml-xpm-trend-panel .bml-trend-chart svg{height:180px}
.bml-map{background-image:linear-gradient(rgba(8,38,47,.13),rgba(8,38,47,.24)),url('/images/bml-site-map.png');background-position:center}.bml-hull{left:13%;width:60%;height:38px;background:linear-gradient(#657a80,#293e43);border-top:3px solid #a6c4c8}.bml-hull b{left:31%;color:#d5e9eb;font-size:10px;letter-spacing:1.3px}.bml-hull i{top:-15px;width:48px;height:17px;background:#2d3738;border:3px solid #b6c8ca;border-bottom:0}.bml-cab{left:43%;bottom:126px;width:64px;height:37px;background:linear-gradient(135deg,#e5c42d 0 30%,#333f40 31% 65%,#a8d5df 66%);border:4px solid #e9bc28;z-index:2}.bml-cab b{position:absolute;left:7px;bottom:2px;color:#222;font-size:12px;letter-spacing:1px}.bml-arm{left:53%;bottom:133px;width:220px;height:15px;background:#edbf25;transform:rotate(30deg);box-shadow:0 0 0 3px #705319;z-index:1}.bml-cutter{left:85%;bottom:22px;width:46px;height:31px;background:#e1b62a;border:4px solid #755617;border-radius:3px 3px 15px 15px;box-shadow:inset 0 -8px rgba(91,67,16,.5)}
.bml-map-title label{color:#8fbac3;font-size:9px;font-weight:800;letter-spacing:.6px}.bml-map-title input{margin-left:7px;padding:5px 7px;border:1px solid #467b87;border-radius:3px;background:#0a2835;color:#d6f3f6;font:inherit}.bml-map-track{position:absolute;z-index:1;inset:0;width:100%;height:100%;pointer-events:none}.bml-map-track polyline{fill:none;stroke:#ffcc45;stroke-width:7;vector-effect:non-scaling-stroke;stroke-linejoin:round;stroke-linecap:round;filter:drop-shadow(0 0 4px rgba(26,15,0,.95)) drop-shadow(0 0 9px #ffcc45);opacity:.95}
.bml-dredge-illustration .bml-arm{left:53%;bottom:138px;width:310px;height:15px;background:#edbf25;transform:rotate(-22deg);transform-origin:left center;box-shadow:0 0 0 3px #705319;z-index:1}.bml-dredge-illustration .bml-stick{position:absolute;left:82%;bottom:90px;width:150px;height:14px;background:#edbf25;border:3px solid #705319;transform:rotate(78deg);transform-origin:left center;z-index:1}.bml-dredge-illustration .bml-bucket{position:absolute;left:95%;bottom:25px;width:50px;height:38px;background:#e1b62a;border:4px solid #755617;border-radius:3px 3px 18px 18px;box-shadow:inset 0 -8px rgba(91,67,16,.5);transform-origin:10% 10%;z-index:2}.bml-depth-panel{margin-top:16px;border:1px solid #315d6e;border-radius:8px;background:linear-gradient(135deg,rgba(18,68,88,.94),rgba(7,31,43,.97));overflow:hidden}.bml-depth-visual{height:285px;position:relative;background:linear-gradient(90deg,#071d28,#0d3444 45%,#092a38);overflow:hidden}.bml-depth-scale{position:absolute;left:17px;top:23px;bottom:20px;display:flex;flex-direction:column;justify-content:space-between;color:#63d8ec;font-weight:800;font-size:13px}.bml-depth-waterline{position:absolute;left:75px;right:0;top:25px;height:3px;background:#5edcf1;box-shadow:0 0 12px #4cd5ed}.bml-depth-waterline span{position:absolute;left:10px;top:7px;color:#9ce7f2;font-size:10px;font-weight:800;letter-spacing:.7px}.bml-depth-line{position:absolute;left:120px;top:26px;width:9px;background:#f4ca32;box-shadow:0 0 8px #f4ca32;min-height:12px}.bml-depth-line i{position:absolute;left:-5px;bottom:-7px;width:19px;height:12px;background:#e5b829;border:2px solid #72561a;border-radius:2px 2px 8px 8px}.bml-depth-line strong{position:absolute;left:22px;bottom:-6px;min-width:95px;color:#fff;font-size:21px}.bml-depth-line small{position:absolute;left:23px;bottom:-22px;color:#91ddeb;font-size:9px;font-weight:800;letter-spacing:.8px}.bml-depth-copy{position:absolute;right:7%;top:60px;width:270px;padding:18px;border:1px solid #366d7e;background:rgba(4,24,33,.72)}.bml-depth-copy>span{color:#8fddea;font-size:10px;font-weight:800;letter-spacing:.8px}.bml-depth-copy>strong{display:block;margin-top:5px;color:#fff;font-size:38px}.bml-depth-copy>strong small{font-size:15px;color:#b6e2e7}.bml-depth-copy p{margin:9px 0 0;color:#9ec3cc;font-size:11px;line-height:1.45}.bml-xpm-range{min-height:82px;border:1px solid #315d6e;border-radius:7px;background:#0d2e3e;padding:8px}.bml-xpm-range .telemetry-bar-card{padding:0;background:transparent;border:0}.bml-xpm-range .telemetry-bar-header strong{font-size:18px}.bml-xpm-range .telemetry-bar-limits{font-size:9px}
@media(max-width:850px){.bml-page{padding:16px}.bml-header{display:block}.bml-live-state{margin-top:18px;max-width:270px}.bml-overview-grid,.bml-map-layout{grid-template-columns:1fr}.bml-card-grid{grid-template-columns:repeat(2,1fr)}.bml-map{height:440px}.bml-dredging-hero{grid-template-columns:1fr}.bml-geometry-readout{padding:7px 0}.bml-workspace-nav a{padding:11px 8px}.bml-workspace-nav small{display:none}}@media(max-width:520px){.bml-header h1{font-size:24px}.bml-workspace-nav{gap:6px}.bml-workspace-nav a{grid-template-columns:1fr;text-align:center;min-height:66px}.bml-workspace-nav b{display:none}.bml-workspace-nav span{font-size:9px}.bml-primary-readings{grid-template-columns:1fr}.bml-card-grid{gap:8px}.bml-card-grid .bml-metric{padding:11px 10px}.bml-card-grid .bml-metric strong{font-size:19px}.bml-map{height:370px}.bml-map-note{display:none}.bml-error,.bml-waiting{display:block;line-height:1.5}.bml-error span,.bml-waiting span{display:block;margin-top:5px}}

.fleet-status-summary {
    display: flex;
    align-items: stretch;
    gap: 5px;
    margin-left: auto;
}

.fleet-status-counter {
    display: grid;
    grid-template-columns: 7px auto auto;
    align-items: center;
    gap: 5px;
    min-width: 76px;
    padding: 7px 8px;
    box-sizing: border-box;
    border: 1px solid rgba(141, 231, 245, 0.24);
    border-radius: 4px;
    background: rgba(16, 76, 101, 0.34);
    text-decoration: none;
}

    .fleet-status-counter:hover {
        border-color: rgba(141, 231, 245, 0.58);
        background: rgba(35, 109, 140, 0.68);
    }

    .fleet-status-counter i {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--icd-green);
        box-shadow: 0 0 6px rgba(57, 201, 138, 0.7);
    }

    .fleet-status-counter span {
        color: var(--icd-muted);
        font-size: 7px;
        font-weight: bold;
        letter-spacing: 0.45px;
    }

    .fleet-status-counter strong {
        color: white;
        font-size: 13px;
        line-height: 1;
    }

    .fleet-status-counter.offline i {
        background: #82949c;
        box-shadow: 0 0 5px rgba(130, 148, 156, 0.5);
    }

    .fleet-status-counter.alarms {
        border-color: rgba(224, 82, 82, 0.36);
        background: rgba(224, 82, 82, 0.08);
    }

        .fleet-status-counter.alarms i {
            background: #ff5555;
            box-shadow: 0 0 7px rgba(255, 85, 85, 0.72);
        }

        .fleet-status-counter.alarms strong {
            color: #ff9292;
        }

@media (max-width: 1450px) {
    .icd-navigation {
        gap: 4px;
    }

        .icd-navigation a {
            padding-right: 10px;
            padding-left: 10px;
            font-size: 11px;
        }

    .fleet-status-counter {
        grid-template-columns: 7px auto;
        min-width: 42px;
    }

        .fleet-status-counter span {
            display: none;
        }
}

@media (max-width: 900px) {
    .fleet-status-summary {
        order: 2;
    }
}

.gauge-ring {
    width: 118px;
    height: 118px;
    box-shadow: 0 0 0 4px #031923, 0 0 0 6px #86dff0, inset 0 0 20px rgba(0, 0, 0, 0.8), 0 0 16px rgba(22, 185, 220, 0.32);
}

    .gauge-ring::after {
        inset: 10px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: radial-gradient(circle at 50% 42%, #10485f 0%, #082f43 52%, #031923 100%);
    }

.gauge-ticks {
    position: absolute;
    z-index: 2;
    inset: 0;
    pointer-events: none;
}

.gauge-tick {
    position: absolute;
    left: calc(50% - 0.5px);
    bottom: 50%;
    width: 1px;
    height: 49px;
    transform-origin: 50% 100%;
}

    .gauge-tick::before {
        content: "";
        position: absolute;
        top: 0;
        width: 1px;
        height: 5px;
        background: rgba(232, 250, 255, 0.85);
    }

    .gauge-tick.major::before {
        width: 2px;
        height: 8px;
        background: white;
    }

.gauge-unit {
    top: 27px;
    color: #c8f7ff;
}

.gauge-value {
    bottom: 25px;
    border-color: rgba(141, 231, 245, 0.72);
    border-radius: 3px;
    background: #031d29;
    font-family: Consolas, "Courier New", monospace;
    font-size: 17px;
}

.gauge-state {
    position: absolute;
    bottom: 10px;
    width: 100%;
    color: #20d982;
    text-align: center;
    font-size: 7px;
    font-weight: bold;
    letter-spacing: 0.8px;
}

.gauge-warning .gauge-state {
    color: #ffbd2e;
}

.gauge-critical .gauge-state {
    color: #ff5a5a;
}

.gauge-label {
    margin-top: 11px;
    color: white;
}

.gauge-target-key {
    color: #55a7ff;
    font-weight: bold;
    letter-spacing: 0.35px;
}

.gauge-scale-min,
.gauge-scale-max {
    position: absolute;
    z-index: 3;
    bottom: 12px;
    color: rgba(220, 245, 250, 0.72);
    font-size: 7px;
    font-weight: bold;
}

.gauge-scale-min {
    left: 13px;
}

.gauge-scale-max {
    right: 13px;
}

.gauge-needle {
    left: calc(50% - 1.5px);
    width: 3px;
    height: 42px;
    border-radius: 2px 2px 0 0;
    background: linear-gradient(90deg, #b9c4ca, #fff 52%, #8a969c);
}

    .gauge-needle::after {
        left: -5px;
        bottom: -6px;
        width: 13px;
        height: 13px;
        box-sizing: border-box;
        border: 2px solid #d8edf3;
        background: #123f50;
        box-shadow: 0 0 0 2px #020d12, 0 0 5px black;
    }

.gauge-target {
    left: calc(50% - 1px);
    width: 2px;
    height: 57px;
    background: transparent;
    opacity: 1;
}

    .gauge-target::after {
        left: -4px;
        top: -4px;
        width: 0;
        height: 0;
        border-radius: 0;
        border-top: 7px solid #55a7ff;
        border-right: 5px solid transparent;
        border-left: 5px solid transparent;
        background: transparent;
        filter: drop-shadow(0 0 2px #001725);
    }

    .gauge-target span {
        position: absolute;
        top: 1px;
        left: 0;
        width: 2px;
        height: 7px;
        background: #55a7ff;
    }

/* Controls and telemetry cards */

.control-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px 16px;
}

.rpm-control {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 8px;
    color: var(--icd-muted);
    font-size: 12px;
}

    .rpm-control input {
        flex: 1;
        accent-color: var(--icd-cyan);
    }

    .rpm-control strong {
        color: white;
        min-width: 45px;
    }

.telemetry-card-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 0 16px 16px;
}

.telemetry-small-card {
    padding: 12px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(141, 231, 245, 0.16);
    border-radius: 5px;
}

    .telemetry-small-card span {
        display: block;
        color: var(--icd-muted);
        font-size: 9px;
        font-weight: bold;
    }

    .telemetry-small-card strong {
        display: block;
        margin-top: 8px;
        color: white;
        font-size: 17px;
    }

/* Status log */

.status-log {
    padding: 10px 15px;
}

.log-entry {
    display: grid;
    grid-template-columns: 48px 12px 1fr;
    align-items: start;
    gap: 7px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

    .log-entry time {
        color: var(--icd-muted);
        font-size: 9px;
    }

    .log-entry p {
        margin: 0;
        color: white;
        font-size: 11px;
        line-height: 1.4;
    }

.log-dot {
    width: 8px;
    height: 8px;
    margin-top: 3px;
    border-radius: 50%;
}

    .log-dot.green {
        background: var(--icd-green);
    }

    .log-dot.blue {
        background: var(--icd-cyan);
    }

.log-count {
    color: var(--icd-green);
    font-size: 10px;
}

/* Pump curve */

.pump-curve-section {
    margin: 12px 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(141, 231, 245, 0.25);
}

.pump-curve-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    color: var(--icd-cyan-light);
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 0.8px;
}

.curve-efficiency {
    padding: 4px 7px;
    border-radius: 10px;
    background: var(--icd-green);
    color: #062b37;
    font-size: 10px;
}

.pump-curve-image {
    position: relative;
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(141, 231, 245, 0.35);
    border-radius: 4px;
    background: white;
}

    .pump-curve-image img {
        display: block;
        width: 100%;
        height: auto;
    }

.curve-point {
    position: absolute;
    left: 53%;
    top: 48%;
    width: 15px;
    height: 15px;
    border: 3px solid white;
    border-radius: 50%;
    background: var(--icd-red);
    box-shadow: 0 0 0 3px var(--icd-red), 0 0 12px rgba(224, 82, 82, 0.9);
    transform: translate(-50%, -50%);
}

    .curve-point span {
        position: absolute;
        top: 18px;
        left: 12px;
        padding: 3px 5px;
        white-space: nowrap;
        border-radius: 3px;
        background: #172b35;
        color: white;
        font-size: 10px;
        font-weight: bold;
    }

.btn {
    white-space: nowrap;
}

/* Responsive layout */

@media (max-width: 1250px) {
    .pump-dashboard-grid {
        grid-template-columns: 250px minmax(360px, 1fr) 290px;
    }

    .gauge-card-grid {
        grid-template-columns: repeat(2, minmax(150px, 1fr));
    }
}

@media (max-width: 1050px) {
    .pump-dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }

    .status-log-panel {
        grid-column: span 2;
    }
}

@media (max-width: 700px) {
    .icd-topbar {
        min-height: 82px;
        flex-wrap: wrap;
        padding: 14px 18px;
    }

    .icd-brand {
        min-width: 0;
        flex: 1;
    }

    .icd-navigation {
        order: 3;
        width: 100%;
        overflow-x: auto;
    }

        .icd-navigation a {
            padding: 10px 12px;
            white-space: nowrap;
        }

    .icd-main-content {
        padding: 14px;
    }

    .pump-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .pump-summary-panel,
    .telemetry-panel,
    .status-log-panel {
        grid-column: span 1;
    }

    .gauge-card-grid {
        grid-template-columns: repeat(2, minmax(125px, 1fr));
        padding: 12px;
        gap: 10px;
    }

    .gauge-card {
        height: 175px;
    }

    .gauge-ring {
        width: 105px;
        height: 105px;
    }

    .gauge-value {
        font-size: 16px;
    }

    .telemetry-card-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .control-row {
        flex-wrap: wrap;
    }
}


.telemetry-bar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 0 16px 16px;
}

.telemetry-bar-wrapper {
    min-width: 0;
}

.telemetry-bar-card {
    height: 78px;
    padding: 10px 10px 8px;
    box-sizing: border-box;
    border: 1px solid rgba(141, 231, 245, 0.2);
    border-radius: 5px;
    background: linear-gradient( 145deg, rgba(24, 93, 119, 0.96), rgba(5, 43, 61, 0.98) );
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.22), 0 2px 6px rgba(0, 0, 0, 0.18);
}

.telemetry-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    height: 29px;
}

    .telemetry-bar-header span {
        color: var(--icd-cyan-light);
        font-size: 10px;
        font-weight: bold;
        letter-spacing: 0.7px;
    }

    .telemetry-bar-header strong {
        color: white;
        font-size: 16px;
        font-weight: bold;
    }

.telemetry-bar-track {
    position: relative;
    height: 11px;
    overflow: hidden;
    border: 1px solid rgba(220, 245, 250, 0.65);
    background: #123b4b;
}

.telemetry-bar-fill {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    min-width: 2px;
    transition: width 0.5s ease;
}

.telemetry-bar-marker {
    position: absolute;
    top: -3px;
    bottom: -3px;
    width: 2px;
    transform: translateX(-1px);
    box-shadow: 0 0 4px white;
    transition: left 0.5s ease;
}

.telemetry-bar-limits {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    color: var(--icd-muted);
    font-size: 10px;
    font-weight: bold;
}

@media (max-width: 1050px) {
    .telemetry-bar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .telemetry-bar-grid {
        grid-template-columns: 1fr;
    }
}

.pump-trend-panel {
    height: 238px;
    margin: 0 16px 16px;
    padding: 10px 12px;
    box-sizing: border-box;
    border: 1px solid rgba(141, 231, 245, 0.24);
    border-radius: 6px;
    background: linear-gradient( 145deg, rgba(24, 93, 119, 0.96), rgba(5, 43, 61, 0.98) );
}

.pump-trend-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 28px;
}

.trend-title {
    color: var(--icd-cyan-light);
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.8px;
}

.trend-legend {
    margin-left: 12px;
    color: var(--icd-muted);
    font-size: 10px;
}

    .trend-legend i {
        display: inline-block;
        width: 18px;
        height: 3px;
        margin-right: 4px;
        vertical-align: middle;
        border-radius: 3px;
    }

.rpm-legend i {
    background: var(--icd-cyan);
}

.load-legend i {
    background: var(--icd-yellow);
}

.trend-range-buttons {
    display: flex;
    gap: 4px;
}

.trend-range {
    padding: 3px 7px;
    border: 1px solid rgba(141, 231, 245, 0.3);
    border-radius: 3px;
    background: transparent;
    color: var(--icd-muted);
    cursor: pointer;
    font-size: 9px;
    font-weight: bold;
}

    .trend-range:hover,
    .trend-range.active {
        border-color: var(--icd-cyan);
        background: var(--icd-blue);
        color: white;
    }

.pump-trend-chart {
    display: block;
    width: 100%;
    height: 185px;
    overflow: visible;
}

.trend-grid-line {
    stroke: rgba(169, 197, 207, 0.18);
    stroke-width: 1;
    stroke-dasharray: 3 4;
}

.trend-rpm-line {
    fill: none;
    stroke: var(--icd-cyan);
    stroke-width: 3;
    stroke-linejoin: round;
    stroke-linecap: round;
    filter: drop-shadow(0 0 3px rgba(22, 185, 220, 0.7));
}

.trend-load-line {
    fill: none;
    stroke: var(--icd-yellow);
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-linecap: round;
    filter: drop-shadow(0 0 3px rgba(244, 185, 66, 0.65));
}

.trend-axis-label {
    fill: var(--icd-muted);
    font-size: 9px;
}

.trend-no-data {
    display: flex;
    height: 185px;
    justify-content: center;
    align-items: center;
    color: var(--icd-muted);
    font-size: 12px;
}

@media (max-width: 700px) {
    .pump-trend-panel {
        height: 220px;
        margin: 0 12px 12px;
    }

    .pump-trend-header {
        align-items: flex-start;
        height: 42px;
        flex-direction: column;
    }

    .trend-range-buttons {
        margin-top: 3px;
    }

    .pump-trend-chart {
        height: 165px;
    }
}

.trend-time-label {
    fill: var(--icd-muted);
    font-size: 9px;
    font-weight: bold;
}

.map-page {
    width: 100%;
}

.map-page-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 18px;
}

    .map-page-header h1 {
        margin: 0;
        color: white;
        font-size: 28px;
    }

.map-status {
    color: var(--icd-cyan-light);
    font-size: 12px;
    font-weight: bold;
}

.map-layout {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 16px;
    min-height: 680px;
}

.device-list-panel,
.map-panel {
    overflow: hidden;
    border: 1px solid rgba(141, 231, 245, 0.25);
    border-radius: 6px;
    background: rgba(16, 76, 101, 0.94);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
}

.map-panel {
    position: relative;
    min-width: 0;
    min-height: 680px;
}

#azure-map {
    width: 100%;
    height: 680px;
    min-height: 680px;
}

.map-panel-header {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(141, 231, 245, 0.2);
    background: rgba(6, 31, 45, 0.72);
    color: var(--icd-cyan-light);
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.8px;
}

.device-search {
    padding: 12px;
}

    .device-search input {
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
        border: 1px solid rgba(141, 231, 245, 0.35);
        border-radius: 4px;
        outline: none;
        background: #082f43;
        color: white;
    }

        .device-search input::placeholder {
            color: var(--icd-muted);
        }

.device-list-item {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 66px;
    padding: 10px 14px;
    box-sizing: border-box;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: white;
    text-align: left;
    cursor: pointer;
}

    .device-list-item:hover {
        background: rgba(22, 185, 220, 0.18);
    }

.device-status-dot {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    margin-right: 12px;
    border-radius: 50%;
}

.device-list-item.running .device-status-dot {
    background: var(--icd-green);
    box-shadow: 0 0 9px var(--icd-green);
}

.device-list-item.stopped .device-status-dot {
    background: #2388ff;
    box-shadow: 0 0 7px #2388ff;
}

.device-list-item.alarm .device-status-dot {
    background: var(--icd-red);
    box-shadow: 0 0 9px var(--icd-red);
}

.device-list-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

    .device-list-text strong {
        font-size: 13px;
    }

    .device-list-text small {
        color: var(--icd-muted);
        font-size: 11px;
    }

.map-legend {
    position: absolute;
    right: 18px;
    bottom: 18px;
    display: flex;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 5px;
    background: rgba(6, 31, 45, 0.88);
    color: white;
    font-size: 11px;
}

    .map-legend span {
        display: flex;
        align-items: center;
        gap: 5px;
    }

.legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

    .legend-dot.running {
        background: var(--icd-green);
    }

    .legend-dot.stopped {
        background: #2388ff;
    }

    .legend-dot.alarm {
        background: var(--icd-red);
    }

.azure-pump-marker {
    width: 22px;
    height: 22px;
    border: 3px solid white;
    border-radius: 50% 50% 50% 0;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.7);
    transform: rotate(-45deg);
    cursor: pointer;
}

    .azure-pump-marker::after {
        content: "";
        position: absolute;
        top: 6px;
        left: 6px;
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: white;
    }

    .azure-pump-marker.running {
        background: var(--icd-green);
    }

    .azure-pump-marker.stopped {
        background: #2388ff;
    }

    .azure-pump-marker.alarm {
        background: var(--icd-red);
    }

.map-device-popup {
    min-width: 210px;
    padding: 12px;
    color: #172b35;
    font-family: Arial, Helvetica, sans-serif;
}

.popup-title {
    margin-bottom: 7px;
    font-size: 16px;
    font-weight: bold;
}

.popup-status {
    display: inline-block;
    margin-bottom: 10px;
    padding: 4px 8px;
    border-radius: 10px;
    color: white;
    font-size: 10px;
    font-weight: bold;
}

    .popup-status.running {
        background: #159267;
    }

    .popup-status.stopped {
        background: #2388ff;
    }

    .popup-status.alarm {
        background: #d53f3f;
    }

.popup-data {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    font-size: 12px;
}

    .popup-data div {
        display: flex;
        justify-content: space-between;
        gap: 8px;
    }

    .popup-data span {
        color: #647780;
    }

    .popup-data strong {
        color: #172b35;
    }

.map-mini-trend {
    display: flex;
    align-items: end;
    gap: 3px;
    height: 45px;
    margin-top: 12px;
    padding: 5px;
    border-radius: 3px;
    background: #082f43;
}

    .map-mini-trend span {
        flex: 1;
        min-height: 3px;
        background: var(--icd-cyan);
    }

.popup-footer {
    margin-top: 9px;
    color: #647780;
    font-size: 10px;
}

@media (max-width: 850px) {
    .map-layout {
        grid-template-columns: 1fr;
    }

    .device-list-panel {
        min-height: auto;
    }

    .map-panel,
    #azure-map {
        min-height: 560px;
        height: 560px;
    }
}

.scada-page {
    height: calc(100vh - 130px);
    min-height: 600px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.scada-header {
    flex: 0 0 auto;
}

.scada-filter-panel {
    flex: 0 0 auto;
}

.scada-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 14px;
    min-height: 0;
    flex: 1;
}

.scada-fleet-panel,
.scada-detail-panel {
    min-height: 0;
    overflow: hidden;
    border: 1px solid rgba(141, 231, 245, 0.24);
    border-radius: 6px;
    background: rgba(16, 76, 101, 0.94);
}

.scada-fleet-panel {
    display: flex;
    flex-direction: column;
}

.scada-fleet-header,
.scada-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 0 0 42px;
    padding: 0 14px;
    border-bottom: 1px solid rgba(141, 231, 245, 0.2);
    background: rgba(6, 31, 45, 0.72);
    color: var(--icd-cyan-light);
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.7px;
}

.scada-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    align-content: start;
    gap: 10px;
    min-height: 0;
    padding: 12px;
    overflow-y: auto;
}

.scada-pump-card {
    min-width: 0;
    padding: 11px;
    border: 1px solid rgba(141, 231, 245, 0.2);
    border-radius: 5px;
    background: rgba(7, 48, 67, 0.9);
    cursor: pointer;
    transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

    .scada-pump-card:hover {
        border-color: var(--icd-cyan);
        transform: translateY(-1px);
    }

    .scada-pump-card.good-pump {
        opacity: 0.58;
    }

    .scada-pump-card.needs-attention {
        opacity: 1;
    }

    .scada-pump-card.selected-pump {
        opacity: 1;
        border: 2px solid var(--icd-cyan);
        box-shadow: 0 0 10px rgba(22, 185, 220, 0.4);
    }

.scada-detail-panel {
    display: flex;
    flex-direction: column;
}

.scada-detail-list {
    min-height: 0;
    padding: 10px;
    overflow-y: auto;
}

.scada-empty-detail {
    padding: 24px;
    color: var(--icd-muted);
    font-size: 12px;
    line-height: 1.6;
}

.scada-detail-card {
    margin-bottom: 10px;
    padding: 12px;
    border: 1px solid rgba(141, 231, 245, 0.25);
    border-radius: 5px;
    background: rgba(7, 48, 67, 0.92);
}

.scada-detail-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
}

    .scada-detail-card-header strong,
    .scada-detail-card-header small {
        display: block;
    }

    .scada-detail-card-header strong {
        color: white;
        font-size: 13px;
    }

    .scada-detail-card-header small {
        margin-top: 4px;
        color: var(--icd-muted);
        font-size: 10px;
    }

.scada-remove-button {
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 4px;
    background: var(--icd-red);
    color: white;
    cursor: pointer;
    font-size: 17px;
    line-height: 20px;
}

.scada-detail-status {
    margin: 12px 0;
    font-size: 11px;
    font-weight: bold;
}

    .scada-detail-status.running {
        color: var(--icd-green);
    }

    .scada-detail-status.stopped {
        color: #2388ff;
    }

    .scada-detail-status.alarm {
        color: var(--icd-red);
    }

.scada-detail-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

    .scada-detail-values div {
        padding: 8px;
        background: rgba(0, 0, 0, 0.18);
        border-radius: 4px;
    }

    .scada-detail-values span,
    .scada-detail-values strong {
        display: block;
    }

    .scada-detail-values span {
        color: var(--icd-muted);
        font-size: 9px;
    }

    .scada-detail-values strong {
        margin-top: 4px;
        color: white;
        font-size: 14px;
    }

.scada-detail-alert {
    margin-top: 10px;
    padding: 8px;
    border-left: 3px solid var(--icd-red);
    background: rgba(224, 82, 82, 0.15);
    color: #ffaaaa;
    font-size: 11px;
}

/* =========================================================
   SCADA COMPACT DCS-STYLE OVERRIDES
   ========================================================= */

.scada-page {
    height: calc(100vh - 118px);
    min-height: 560px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
}

.scada-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 42px;
}

    .scada-topline h1 {
        margin: 0;
        color: white;
        font-size: 22px;
        line-height: 1;
        letter-spacing: 0.5px;
    }

.scada-subtitle {
    display: block;
    margin-top: 5px;
    color: var(--icd-muted);
    font-size: 11px;
}

.scada-counts {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--icd-muted);
    font-size: 11px;
}

.summary-good {
    color: var(--icd-green);
    font-weight: bold;
}

.summary-attention {
    color: var(--icd-yellow);
    font-weight: bold;
}

/* Compact dark filter controls */

.scada-filters {
    display: flex;
    align-items: end;
    gap: 8px;
    min-height: 42px;
    padding: 7px 9px;
    border: 1px solid rgba(141, 231, 245, 0.2);
    border-radius: 5px;
    background: rgba(6, 31, 45, 0.82);
}

    .scada-filters label {
        display: flex;
        flex-direction: column;
        gap: 3px;
        color: var(--icd-cyan-light);
        font-size: 8px;
        font-weight: bold;
        letter-spacing: 0.7px;
    }

    .scada-filters select {
        min-width: 105px;
        height: 28px;
        padding: 0 26px 0 9px;
        border: 1px solid rgba(141, 231, 245, 0.38);
        border-radius: 4px;
        outline: none;
        appearance: none;
        background-color: #0b4056;
        background-image: linear-gradient(45deg, transparent 50%, #8de7f5 50%), linear-gradient(135deg, #8de7f5 50%, transparent 50%);
        background-position: calc(100% - 13px) 11px, calc(100% - 8px) 11px;
        background-size: 5px 5px;
        background-repeat: no-repeat;
        color: white;
        cursor: pointer;
        font-size: 11px;
    }

        .scada-filters select:hover,
        .scada-filters select:focus {
            border-color: var(--icd-cyan);
            background-color: #125b75;
        }

        .scada-filters select option {
            background: #0b4056;
            color: white;
        }

.attention-check {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 6px !important;
    height: 28px;
    padding: 0 8px;
    border: 1px solid rgba(244, 185, 66, 0.45);
    border-radius: 4px;
    background: rgba(244, 185, 66, 0.08);
    color: var(--icd-yellow) !important;
    cursor: pointer;
    white-space: nowrap;
}

    .attention-check input {
        accent-color: var(--icd-yellow);
    }

.scada-clear-button {
    height: 28px;
    padding: 0 12px;
    border: 1px solid rgba(141, 231, 245, 0.4);
    border-radius: 4px;
    background: transparent;
    color: var(--icd-cyan-light);
    cursor: pointer;
    font-size: 10px;
    font-weight: bold;
}

    .scada-clear-button:hover {
        background: var(--icd-blue);
        color: white;
    }

/* Main fixed workspace */

.scada-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 10px;
    min-height: 0;
    flex: 1;
    overflow: hidden;
}

.scada-fleet-panel,
.scada-detail-panel {
    min-height: 0;
    overflow: hidden;
    border: 1px solid rgba(141, 231, 245, 0.24);
    border-radius: 5px;
    background: rgba(16, 76, 101, 0.9);
}

.scada-fleet-panel {
    display: flex;
    flex-direction: column;
}

.scada-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 0 0 34px;
    padding: 0 11px;
    border-bottom: 1px solid rgba(141, 231, 245, 0.2);
    background: rgba(6, 31, 45, 0.78);
    color: var(--icd-cyan-light);
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 0.7px;
}

.scada-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    align-content: start;
    gap: 7px;
    min-height: 0;
    padding: 8px;
    overflow-y: auto;
}

/* Small fleet cards */

.scada-pump-card {
    min-width: 0;
    height: 106px;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid rgba(141, 231, 245, 0.17);
    border-radius: 5px;
    background: rgba(5, 47, 65, 0.95);
    cursor: pointer;
    transition: opacity 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

    .scada-pump-card:hover {
        border-color: var(--icd-cyan);
        background: rgba(13, 78, 101, 0.98);
    }

    .scada-pump-card.good-pump {
        opacity: 0.42;
    }

    .scada-pump-card.needs-attention {
        opacity: 1;
    }

    .scada-pump-card.selected-pump {
        opacity: 1;
        border: 2px solid var(--icd-cyan);
        box-shadow: 0 0 8px rgba(22, 185, 220, 0.4);
    }

.scada-card-top {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 22px;
    overflow: hidden;
    white-space: nowrap;
}

    .scada-card-top strong {
        overflow: hidden;
        color: white;
        text-overflow: ellipsis;
        font-size: 11px;
    }

.scada-card-site {
    overflow: hidden;
    margin-left: auto;
    color: var(--icd-muted);
    text-overflow: ellipsis;
    font-size: 9px;
}

.scada-status-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
}

    .scada-status-dot.running {
        background: var(--icd-green);
        box-shadow: 0 0 7px var(--icd-green);
    }

    .scada-status-dot.stopped {
        background: #2388ff;
        box-shadow: 0 0 5px #2388ff;
    }

    .scada-status-dot.alarm {
        background: var(--icd-red);
        box-shadow: 0 0 7px var(--icd-red);
    }

.scada-card-rpm {
    margin-top: 5px;
    color: white;
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
}

    .scada-card-rpm span {
        margin-left: 3px;
        color: var(--icd-muted);
        font-size: 9px;
        font-weight: normal;
    }

.scada-card-flags {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 21px;
    overflow: hidden;
    white-space: nowrap;
}

.scada-state-label {
    font-size: 9px;
    font-weight: bold;
}

    .scada-state-label.running {
        color: var(--icd-green);
    }

    .scada-state-label.stopped {
        color: #6daeff;
    }

    .scada-state-label.alarm {
        color: var(--icd-red);
    }

.flag {
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 8px;
    font-weight: bold;
}

.alarm-flag {
    background: rgba(224, 82, 82, 0.22);
    color: #ff9b9b;
}

.fault-flag {
    background: rgba(244, 185, 66, 0.2);
    color: var(--icd-yellow);
}

.curve-flag {
    background: rgba(141, 231, 245, 0.15);
    color: var(--icd-cyan-light);
}

.scada-card-quality {
    margin-top: 4px;
}

.quality-label {
    display: flex;
    justify-content: space-between;
    color: var(--icd-muted);
    font-size: 8px;
}

    .quality-label strong {
        color: white;
    }

.quality-track,
.detail-quality-track {
    height: 4px;
    margin-top: 3px;
    overflow: hidden;
    border-radius: 3px;
    background: #092d3c;
}

.quality-fill {
    height: 100%;
    min-width: 2px;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.quality-good {
    background: var(--icd-green);
}

.quality-warning {
    background: var(--icd-yellow);
}

.quality-bad {
    background: var(--icd-red);
}

/* Detail slots */

.scada-detail-panel {
    display: flex;
    flex-direction: column;
}

.scada-detail-slots {
    display: grid;
    grid-template-rows: repeat(5, minmax(0, 1fr));
    gap: 6px;
    min-height: 0;
    flex: 1;
    padding: 6px;
    overflow: hidden;
}

.scada-detail-card,
.scada-empty-slot {
    min-height: 0;
    overflow: hidden;
    border: 1px solid rgba(141, 231, 245, 0.2);
    border-radius: 5px;
    background: rgba(5, 47, 65, 0.96);
}

.scada-detail-card {
    position: relative;
    padding: 8px;
}

.scada-empty-slot {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-style: dashed;
    color: rgba(169, 197, 207, 0.45);
}

    .scada-empty-slot span {
        font-size: 20px;
    }

    .scada-empty-slot small {
        margin-top: 3px;
        font-size: 9px;
    }

.detail-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    min-height: 25px;
}

    .detail-card-header strong,
    .detail-card-header small {
        display: block;
    }

    .detail-card-header strong {
        overflow: hidden;
        color: white;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 12px;
    }

    .detail-card-header small {
        margin-top: 2px;
        color: var(--icd-muted);
        font-size: 9px;
    }

.detail-close-button {
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 4px;
    background: rgba(224, 82, 82, 0.85);
    color: white;
    cursor: pointer;
    font-size: 15px;
    line-height: 18px;
}

    .detail-close-button:hover {
        background: var(--icd-red);
    }

.detail-running-status {
    margin: 5px 0;
    font-size: 9px;
    font-weight: bold;
}

    .detail-running-status.running {
        color: var(--icd-green);
    }

    .detail-running-status.stopped {
        color: #6daeff;
    }

    .detail-running-status.alarm {
        color: var(--icd-red);
    }

.detail-value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

    .detail-value-grid div {
        min-width: 0;
        padding: 5px;
        border-radius: 3px;
        background: rgba(0, 0, 0, 0.18);
    }

    .detail-value-grid span,
    .detail-value-grid strong {
        display: block;
    }

    .detail-value-grid span {
        color: var(--icd-muted);
        font-size: 8px;
    }

    .detail-value-grid strong {
        overflow: hidden;
        margin-top: 2px;
        color: white;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 11px;
    }

.detail-quality-track {
    margin-top: 6px;
}

.detail-alerts {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 5px;
    overflow: hidden;
    white-space: nowrap;
}

    .detail-alerts small {
        overflow: hidden;
        color: #ffaaaa;
        text-overflow: ellipsis;
        font-size: 8px;
    }

@media (max-width: 1050px) {
    .scada-workspace {
        grid-template-columns: minmax(0, 1fr) 300px;
    }

    .scada-card-grid {
        grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    }
}

@media (max-width: 800px) {
    .scada-page {
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .scada-filters {
        flex-wrap: wrap;
    }

    .scada-workspace {
        grid-template-columns: 1fr;
        min-height: 700px;
    }

    .scada-detail-panel {
        min-height: 600px;
    }
}

/* =========================================================
   ALARM PAGE
   ========================================================= */

.alarms-page {
    height: calc(100vh - 118px);
    min-height: 620px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
}

.alarms-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 42px;
}

    .alarms-header h1 {
        margin: 0;
        color: white;
        font-size: 22px;
        line-height: 1;
    }

.alarms-subtitle {
    margin-top: 5px;
    color: var(--icd-muted);
    font-size: 11px;
}

.alarm-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--icd-muted);
    font-size: 11px;
    font-weight: bold;
}

.active-count {
    color: var(--icd-red);
}

.shelved-count {
    color: var(--icd-muted);
}

/* Tabs */

.alarm-tabs {
    display: flex;
    gap: 4px;
    flex: 0 0 34px;
    border-bottom: 1px solid rgba(141, 231, 245, 0.25);
}

.alarm-tab {
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 5px 5px 0 0;
    background: transparent;
    color: var(--icd-muted);
    cursor: pointer;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 0.6px;
}

    .alarm-tab:hover {
        background: rgba(22, 185, 220, 0.12);
        color: white;
    }

    .alarm-tab.active {
        border-color: rgba(141, 231, 245, 0.3);
        border-bottom-color: var(--icd-cyan);
        background: var(--icd-panel);
        color: white;
        box-shadow: inset 0 -3px 0 var(--icd-cyan);
    }

/* Main alarm workspace */

.alarm-workspace,
.alarm-history-workspace {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
    overflow: hidden;
    border: 1px solid rgba(141, 231, 245, 0.22);
    border-radius: 5px;
    background: rgba(16, 76, 101, 0.9);
}

/* Filters */

.alarm-filter-bar,
.history-selector-bar {
    display: flex;
    align-items: end;
    gap: 7px;
    min-height: 48px;
    padding: 7px 9px;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(141, 231, 245, 0.2);
    background: rgba(6, 31, 45, 0.8);
}

.filter-title {
    align-self: center;
    color: var(--icd-cyan-light);
    font-size: 10px;
    font-weight: bold;
}

.alarm-filter-bar select,
.history-selector-bar select,
.history-selector-bar input,
.alarm-search {
    height: 28px;
    box-sizing: border-box;
    padding: 0 9px;
    border: 1px solid rgba(141, 231, 245, 0.35);
    border-radius: 4px;
    outline: none;
    background-color: #0b4056;
    color: white;
    font-size: 10px;
}

.alarm-filter-bar select,
.history-selector-bar select {
    min-width: 125px;
    appearance: none;
    padding-right: 24px;
    background-image: linear-gradient(45deg, transparent 50%, #8de7f5 50%), linear-gradient(135deg, #8de7f5 50%, transparent 50%);
    background-position: calc(100% - 13px) 11px, calc(100% - 8px) 11px;
    background-size: 5px 5px;
    background-repeat: no-repeat;
}

    .alarm-filter-bar select:focus,
    .history-selector-bar select:focus,
    .history-selector-bar input:focus,
    .alarm-search:focus {
        border-color: var(--icd-cyan);
        background-color: #125b75;
    }

.alarm-filter-bar option,
.history-selector-bar option {
    background: #0b4056;
    color: white;
}

.alarm-search {
    width: 190px;
}

.history-selector-bar label {
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: var(--icd-cyan-light);
    font-size: 8px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

    .history-selector-bar label input,
    .history-selector-bar label select {
        margin-top: 0;
    }

.alarm-clear-button {
    height: 28px;
    padding: 0 12px;
    border: 1px solid rgba(141, 231, 245, 0.4);
    border-radius: 4px;
    background: transparent;
    color: var(--icd-cyan-light);
    cursor: pointer;
    font-size: 10px;
    font-weight: bold;
}

    .alarm-clear-button:hover {
        background: var(--icd-blue);
        color: white;
    }

.alarm-results-label,
.history-results-label {
    flex: 0 0 24px;
    padding: 6px 10px 0;
    box-sizing: border-box;
    color: var(--icd-muted);
    font-size: 10px;
}

/* Alarm table */

.alarm-table-wrap {
    min-height: 0;
    flex: 1;
    overflow: auto;
}

.alarm-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 11px;
}

    .alarm-table th {
        position: sticky;
        top: 0;
        z-index: 2;
        height: 31px;
        padding: 0 8px;
        border-bottom: 1px solid rgba(141, 231, 245, 0.25);
        background: #092c3d;
        color: var(--icd-cyan-light);
        text-align: left;
        font-size: 9px;
        font-weight: bold;
        letter-spacing: 0.5px;
        white-space: nowrap;
    }

        .alarm-table th:nth-child(1) {
            width: 32px;
        }

        .alarm-table th:nth-child(2) {
            width: 145px;
        }

        .alarm-table th:nth-child(3) {
            width: 125px;
        }

        .alarm-table th:nth-child(4) {
            width: 245px;
        }

        .alarm-table th:nth-child(5) {
            width: 75px;
        }

        .alarm-table th:nth-child(6) {
            width: 155px;
        }

        .alarm-table th:nth-child(7) {
            width: 150px;
        }

        .alarm-table th:nth-child(8) {
            width: 60px;
        }

    .alarm-table td {
        height: 34px;
        padding: 0 8px;
        overflow: hidden;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        color: white;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.alarm-row {
    cursor: pointer;
}

    .alarm-row:hover td {
        background: rgba(22, 185, 220, 0.18);
    }

.alarm-row-selected td {
    outline: 1px solid var(--icd-cyan);
    outline-offset: -1px;
}

.alarm-row-active td {
    background: rgba(176, 38, 49, 0.88);
}

.alarm-row-acknowledged td {
    background: rgba(122, 38, 47, 0.82);
}

.alarm-row-cleared td {
    background: rgba(52, 99, 164, 0.85);
}

.alarm-row-shelved td {
    background: rgba(78, 88, 98, 0.8);
}

.alarm-row input {
    accent-color: var(--icd-cyan);
}

.alarm-priority {
    font-weight: bold;
}

    .alarm-priority.critical {
        color: #ffb0b0;
    }

    .alarm-priority.high {
        color: #ffd477;
    }

    .alarm-priority.medium {
        color: #9deaff;
    }

    .alarm-priority.low {
        color: #b7e6c8;
    }

.acknowledge-button {
    height: 22px;
    padding: 0 7px;
    border: 1px solid rgba(141, 231, 245, 0.55);
    border-radius: 3px;
    background: rgba(6, 31, 45, 0.7);
    color: white;
    cursor: pointer;
    font-size: 9px;
    font-weight: bold;
}

    .acknowledge-button:hover {
        background: var(--icd-green);
        color: #062b37;
    }

/* Bottom detail panel */

.alarm-detail-panel {
    flex: 0 0 180px;
    min-height: 180px;
    overflow: hidden;
    border: 1px solid rgba(141, 231, 245, 0.24);
    border-radius: 5px;
    background: rgba(16, 76, 101, 0.94);
}

.alarm-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 32px;
    padding: 0 11px;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(141, 231, 245, 0.2);
    background: rgba(6, 31, 45, 0.78);
    color: var(--icd-cyan-light);
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 0.6px;
}

.alarm-no-selection {
    padding: 22px 12px;
    color: var(--icd-muted);
    font-size: 11px;
}

.alarm-detail-content {
    padding: 10px 12px;
}

.alarm-detail-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 9px;
}

    .alarm-detail-title h2 {
        margin: 0;
        color: white;
        font-size: 15px;
    }

    .alarm-detail-title span:last-child {
        color: var(--icd-muted);
        font-size: 10px;
    }

.detail-severity-dot {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    border-radius: 50%;
}

    .detail-severity-dot.critical {
        background: var(--icd-red);
        box-shadow: 0 0 8px var(--icd-red);
    }

    .detail-severity-dot.high {
        background: var(--icd-yellow);
        box-shadow: 0 0 7px var(--icd-yellow);
    }

    .detail-severity-dot.medium {
        background: var(--icd-cyan);
    }

    .detail-severity-dot.low {
        background: var(--icd-green);
    }

.alarm-detail-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(100px, 1fr));
    gap: 6px;
}

    .alarm-detail-grid div {
        padding: 7px;
        border-radius: 3px;
        background: rgba(0, 0, 0, 0.18);
    }

    .alarm-detail-grid label,
    .alarm-detail-grid strong {
        display: block;
    }

    .alarm-detail-grid label {
        color: var(--icd-muted);
        font-size: 8px;
        font-weight: bold;
    }

    .alarm-detail-grid strong {
        margin-top: 3px;
        overflow: hidden;
        color: white;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 10px;
    }

.alarm-detail-message {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 8px;
}

    .alarm-detail-message label {
        color: var(--icd-cyan-light);
        font-size: 9px;
        font-weight: bold;
    }

    .alarm-detail-message p {
        margin: 0;
        color: white;
        font-size: 10px;
    }

.alarm-detail-actions {
    display: flex;
    gap: 7px;
    margin-top: 9px;
}

.alarm-acknowledge-large,
.alarm-shelve-button {
    height: 26px;
    padding: 0 11px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 9px;
    font-weight: bold;
}

.alarm-acknowledge-large {
    border: 1px solid var(--icd-green);
    background: rgba(57, 201, 138, 0.16);
    color: var(--icd-green);
}

.alarm-shelve-button {
    border: 1px solid var(--icd-yellow);
    background: rgba(244, 185, 66, 0.12);
    color: var(--icd-yellow);
}

.alarm-acknowledge-large:hover {
    background: var(--icd-green);
    color: #062b37;
}

.alarm-shelve-button:hover {
    background: var(--icd-yellow);
    color: #172b35;
}

@media (max-width: 900px) {
    .alarms-page {
        height: auto;
        min-height: 800px;
        overflow: visible;
    }

    .alarm-filter-bar,
    .history-selector-bar {
        flex-wrap: wrap;
        align-items: center;
    }

    .alarm-workspace,
    .alarm-history-workspace {
        min-height: 450px;
    }

    .alarm-detail-panel {
        min-height: 250px;
    }

    .alarm-detail-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =========================================================
   PUMP LIST PAGE
   ========================================================= */

.pump-list-page {
    height: calc(100vh - 118px);
    min-height: 600px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    overflow: hidden;
}

.pump-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 42px;
}

    .pump-list-header h1 {
        margin: 0;
        color: white;
        font-size: 22px;
    }

.pump-list-subtitle {
    margin-top: 4px;
    color: var(--icd-muted);
    font-size: 11px;
}

.pump-list-count {
    color: var(--icd-cyan-light);
    font-size: 11px;
    font-weight: bold;
}

.pump-list-toolbar {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    padding: 7px 9px;
    box-sizing: border-box;
    border: 1px solid rgba(141, 231, 245, 0.2);
    border-radius: 5px;
    background: rgba(6, 31, 45, 0.82);
}

.pump-list-search,
.pump-list-filter {
    height: 28px;
    padding: 0 9px;
    box-sizing: border-box;
    border: 1px solid rgba(141, 231, 245, 0.35);
    border-radius: 4px;
    outline: none;
    background: #0b4056;
    color: white;
    font-size: 10px;
}

.pump-list-search {
    width: 220px;
}

.pump-list-filter {
    min-width: 115px;
}

.pump-list-search::placeholder {
    color: var(--icd-muted);
}

.pump-list-search:focus,
.pump-list-filter:focus {
    border-color: var(--icd-cyan);
    background: #125b75;
}

.list-toolbar-button {
    height: 28px;
    padding: 0 11px;
    border: 1px solid rgba(141, 231, 245, 0.4);
    border-radius: 4px;
    background: transparent;
    color: var(--icd-cyan-light);
    cursor: pointer;
    font-size: 10px;
    font-weight: bold;
    white-space: nowrap;
}

    .list-toolbar-button:hover,
    .list-toolbar-button:focus {
        background: var(--icd-blue);
        color: white;
    }

.export-button {
    margin-left: auto;
    border-color: var(--icd-green);
    color: var(--icd-green);
}

    .export-button:hover {
        background: var(--icd-green);
        color: #062b37;
    }

.columns-menu {
    position: relative;
}

.columns-dropdown {
    position: absolute;
    top: 34px;
    left: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: 1fr;
    min-width: 170px;
    padding: 8px;
    border: 1px solid rgba(141, 231, 245, 0.3);
    border-radius: 5px;
    background: #092f42;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

    .columns-dropdown label {
        display: flex;
        align-items: center;
        gap: 7px;
        padding: 6px 4px;
        color: white;
        cursor: pointer;
        font-size: 10px;
    }

        .columns-dropdown label:hover {
            background: rgba(22, 185, 220, 0.15);
        }

    .columns-dropdown input {
        accent-color: var(--icd-cyan);
    }

.pump-list-table-wrap {
    min-height: 0;
    flex: 1;
    overflow: auto;
    border: 1px solid rgba(141, 231, 245, 0.24);
    border-radius: 5px;
    background: rgba(16, 76, 101, 0.9);
}

.pump-list-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    font-size: 11px;
}

    .pump-list-table th {
        position: sticky;
        top: 0;
        z-index: 5;
        height: 34px;
        padding: 0 10px;
        border-bottom: 1px solid rgba(141, 231, 245, 0.3);
        background: #092f42;
        color: var(--icd-cyan-light);
        text-align: left;
        white-space: nowrap;
    }

        .pump-list-table th button {
            border: 0;
            background: transparent;
            color: inherit;
            cursor: pointer;
            font-size: 9px;
            font-weight: bold;
            letter-spacing: 0.5px;
        }

            .pump-list-table th button:hover {
                color: white;
            }

    .pump-list-table td {
        height: 36px;
        padding: 0 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        color: white;
        white-space: nowrap;
    }

    .pump-list-table tbody tr:hover td {
        background: rgba(22, 185, 220, 0.14);
    }

    .pump-list-table td strong {
        color: var(--icd-cyan-light);
    }

.number-cell {
    color: white !important;
    font-weight: bold;
    text-align: right;
}

.list-state,
.list-rental {
    display: inline-block;
    padding: 4px 7px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: bold;
}

.list-running {
    color: var(--icd-green);
}

.list-stopped {
    color: #6daeff;
}

.list-state.list-running {
    background: rgba(57, 201, 138, 0.16);
}

.list-state.list-stopped {
    background: rgba(35, 136, 255, 0.16);
}

.list-rental {
    background: rgba(35, 136, 255, 0.18);
    color: #9fcaff;
}

.list-quality {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 130px;
}

.list-quality-track {
    width: 90px;
    height: 5px;
    overflow: hidden;
    border-radius: 4px;
    background: #092d3c;
}

.list-quality-fill {
    height: 100%;
    min-width: 2px;
    border-radius: 4px;
}

@media (max-width: 850px) {
    .pump-list-page {
        height: auto;
        min-height: 700px;
        overflow: visible;
    }

    .pump-list-toolbar {
        flex-wrap: wrap;
    }

    .export-button {
        margin-left: 0;
    }
}

.mock-device-page {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mock-device-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    min-height: 45px;
}

    .mock-device-header h1 {
        margin: 0;
        color: white;
        font-size: 22px;
    }

.mock-device-subtitle {
    margin-top: 5px;
    color: var(--icd-muted);
    font-size: 11px;
}

.mock-device-header-status {
    color: var(--icd-cyan-light);
    font-size: 11px;
    font-weight: bold;
}

.mock-device-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 14px;
}

.mock-bottom-layout {
    grid-template-columns: 390px minmax(0, 1fr);
}

.mock-panel {
    overflow: hidden;
    border: 1px solid rgba(141, 231, 245, 0.24);
    border-radius: 6px;
    background: rgba(16, 76, 101, 0.94);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.22);
}

.mock-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 38px;
    padding: 0 13px;
    border-bottom: 1px solid rgba(141, 231, 245, 0.2);
    background: rgba(6, 31, 45, 0.76);
    color: var(--icd-cyan-light);
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 0.8px;
}

.mock-badge {
    padding: 3px 7px;
    border-radius: 10px;
    background: rgba(35, 136, 255, 0.26);
    color: #b9d8ff;
    font-size: 9px;
}

.mock-device-identity {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mock-device-icon {
    display: flex;
    width: 38px;
    height: 38px;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--icd-cyan);
    border-radius: 5px;
    background: rgba(22, 185, 220, 0.12);
    color: var(--icd-cyan-light);
    font-size: 22px;
}

.mock-device-identity strong,
.mock-device-identity small {
    display: block;
}

.mock-device-identity strong {
    color: white;
    font-size: 13px;
}

.mock-device-identity small {
    margin-top: 4px;
    color: var(--icd-muted);
    font-size: 10px;
}

.mock-detail-list {
    padding: 8px 15px;
}

    .mock-detail-list div {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        font-size: 11px;
    }

    .mock-detail-list span {
        color: var(--icd-muted);
    }

    .mock-detail-list strong {
        color: white;
        text-align: right;
        font-weight: normal;
    }

.mock-connection-box {
    margin: 14px;
    padding: 10px;
    border-left: 3px solid var(--icd-green);
    background: rgba(57, 201, 138, 0.08);
}

.mock-connection-state {
    margin: 6px 0;
    color: var(--icd-green);
    font-size: 11px;
    font-weight: bold;
}

.mock-connection-box small {
    color: var(--icd-muted);
    font-size: 9px;
    line-height: 1.45;
}

.mock-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 5px;
    border-radius: 50%;
}

    .mock-status-dot.running {
        background: var(--icd-green);
        box-shadow: 0 0 8px var(--icd-green);
    }

    .mock-status-dot.stopped {
        background: #6daeff;
        box-shadow: 0 0 7px #2388ff;
    }

.mock-config-content {
    padding: 15px;
}

.mock-config-section + .mock-config-section {
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid rgba(141, 231, 245, 0.17);
}

.mock-section-title {
    margin-bottom: 10px;
    color: var(--icd-cyan-light);
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 0.7px;
}

.mock-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

    .mock-form-grid label {
        display: flex;
        flex-direction: column;
        gap: 5px;
        color: var(--icd-muted);
        font-size: 9px;
        font-weight: bold;
        letter-spacing: 0.45px;
    }

    .mock-form-grid input,
    .mock-form-grid select {
        height: 31px;
        padding: 0 9px;
        box-sizing: border-box;
        border: 1px solid rgba(141, 231, 245, 0.35);
        border-radius: 4px;
        outline: none;
        background: #0b4056;
        color: white;
        font-size: 11px;
    }

        .mock-form-grid input:focus,
        .mock-form-grid select:focus {
            border-color: var(--icd-cyan);
            background: #125b75;
        }

        .mock-form-grid select option {
            background: #0b4056;
            color: white;
        }

.mock-configuration-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
}

.mock-button,
.mock-inline-button {
    border-radius: 4px;
    cursor: pointer;
    font-size: 10px;
    font-weight: bold;
}

.mock-button {
    height: 30px;
    padding: 0 12px;
}

    .mock-button.secondary {
        border: 1px solid rgba(141, 231, 245, 0.45);
        background: transparent;
        color: var(--icd-cyan-light);
    }

    .mock-button.primary {
        border: 1px solid var(--icd-green);
        background: rgba(57, 201, 138, 0.15);
        color: var(--icd-green);
    }

    .mock-button.secondary:hover {
        background: var(--icd-blue);
        color: white;
    }

    .mock-button.primary:hover {
        background: var(--icd-green);
        color: #062b37;
    }

.mock-unsaved {
    opacity: 0;
    color: var(--icd-yellow);
    font-size: 9px;
    transition: opacity 0.2s ease;
}

    .mock-unsaved.visible {
        opacity: 1;
    }

.mock-configuration-message {
    margin-top: 12px;
    padding: 9px 10px;
    border-left: 3px solid var(--icd-cyan);
    background: rgba(22, 185, 220, 0.1);
    color: var(--icd-cyan-light);
    font-size: 10px;
}

    .mock-configuration-message span {
        margin-right: 5px;
    }

.mock-setup-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.mock-setup-step {
    display: flex;
    min-height: 88px;
    gap: 9px;
    padding: 13px;
    border-right: 1px solid rgba(141, 231, 245, 0.15);
}

    .mock-setup-step:last-child {
        border-right: 0;
    }

.mock-step-number {
    display: flex;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--icd-muted);
    border-radius: 50%;
    color: var(--icd-muted);
    font-size: 10px;
    font-weight: bold;
}

.mock-setup-step.complete .mock-step-number {
    border-color: var(--icd-green);
    background: var(--icd-green);
    color: #062b37;
}

.mock-setup-step strong,
.mock-setup-step small {
    display: block;
}

.mock-setup-step strong {
    color: white;
    font-size: 10px;
}

.mock-setup-step small {
    margin-top: 5px;
    color: var(--icd-muted);
    font-size: 9px;
    line-height: 1.4;
}

.mock-current-value-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 11px;
}

.mock-value-card {
    padding: 10px;
    border: 1px solid rgba(141, 231, 245, 0.16);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.16);
}

    .mock-value-card span,
    .mock-value-card strong {
        display: block;
    }

    .mock-value-card span {
        color: var(--icd-muted);
        font-size: 8px;
        font-weight: bold;
    }

    .mock-value-card strong {
        margin-top: 5px;
        color: white;
        font-size: 15px;
    }

.value-running {
    color: var(--icd-green) !important;
}

.value-stopped {
    color: #6daeff !important;
}

.mock-inline-button {
    height: 24px;
    padding: 0 8px;
    border: 1px solid rgba(141, 231, 245, 0.45);
    background: transparent;
    color: var(--icd-cyan-light);
}

    .mock-inline-button:hover {
        background: var(--icd-blue);
        color: white;
    }

.mock-trend-content {
    height: 265px;
    padding: 10px 12px 4px;
    box-sizing: border-box;
}

.mock-trend-chart {
    display: block;
    width: 100%;
    height: 100%;
}

.mock-chart-grid {
    stroke: rgba(169, 197, 207, 0.18);
    stroke-width: 1;
    stroke-dasharray: 4 4;
}

.mock-chart-rpm {
    fill: none;
    stroke: var(--icd-cyan);
    stroke-width: 3;
    stroke-linejoin: round;
    stroke-linecap: round;
    filter: drop-shadow(0 0 3px rgba(22, 185, 220, 0.7));
}

.mock-chart-pressure {
    fill: none;
    stroke: var(--icd-yellow);
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-linecap: round;
    filter: drop-shadow(0 0 3px rgba(244, 185, 66, 0.6));
}

.mock-chart-label,
.mock-chart-time {
    fill: var(--icd-muted);
    font-size: 10px;
}

.mock-trend-legend {
    color: var(--icd-muted);
    font-size: 9px;
}

    .mock-trend-legend i {
        display: inline-block;
        width: 15px;
        height: 3px;
        margin: 0 4px 2px 9px;
        vertical-align: middle;
        border-radius: 3px;
    }

.mock-rpm-line {
    background: var(--icd-cyan);
}

.mock-pressure-line {
    background: var(--icd-yellow);
}

@media (max-width: 1050px) {
    .mock-device-layout,
    .mock-bottom-layout {
        grid-template-columns: 1fr;
    }

    .mock-setup-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mock-setup-step {
        border-bottom: 1px solid rgba(141, 231, 245, 0.15);
    }
}

@media (max-width: 700px) {
    .mock-device-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .mock-form-grid,
    .mock-setup-steps {
        grid-template-columns: 1fr;
    }

    .mock-setup-step {
        border-right: 0;
    }

    .mock-current-value-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.trends-page {
    height: calc(100vh - 118px);
    min-height: 650px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
}

.trends-page-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    min-height: 43px;
}

    .trends-page-header h1 {
        margin: 0;
        color: white;
        font-size: 22px;
    }

.trends-page-subtitle {
    margin-top: 5px;
    color: var(--icd-muted);
    font-size: 11px;
}

.trends-page-status {
    color: var(--icd-cyan-light);
    font-size: 10px;
    font-weight: bold;
}

.trends-live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 5px;
    border-radius: 50%;
    background: var(--icd-green);
    box-shadow: 0 0 8px var(--icd-green);
}

.trends-workspace {
    display: grid;
    grid-template-columns: 295px minmax(0, 1fr);
    min-height: 0;
    flex: 1;
    gap: 10px;
}

.trends-signal-panel,
.trends-main-panel {
    min-height: 0;
    overflow: hidden;
    border: 1px solid rgba(141, 231, 245, 0.24);
    border-radius: 6px;
    background: rgba(16, 76, 101, 0.94);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.trends-signal-panel {
    overflow-y: auto;
}

.trends-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    border-bottom: 1px solid rgba(141, 231, 245, 0.2);
    background: rgba(6, 31, 45, 0.76);
    color: var(--icd-cyan-light);
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 0.7px;
}

.trends-panel-toolbar {
    display: flex;
    gap: 6px;
    padding: 9px;
    border-bottom: 1px solid rgba(141, 231, 245, 0.14);
}

.trends-small-button,
.trends-add-unit-button,
.trends-range-button,
.trends-export-button,
.trends-remove-pen {
    cursor: pointer;
    font-size: 9px;
    font-weight: bold;
}

.trends-small-button {
    height: 26px;
    padding: 0 9px;
    border: 1px solid rgba(141, 231, 245, 0.4);
    border-radius: 4px;
    background: transparent;
    color: var(--icd-cyan-light);
}

    .trends-small-button:hover {
        background: var(--icd-blue);
        color: white;
    }

.trends-device-group {
    border-bottom: 1px solid rgba(141, 231, 245, 0.15);
}

.trends-device-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 11px 8px;
    background: rgba(6, 31, 45, 0.35);
}

    .trends-device-heading strong,
    .trends-device-heading small {
        display: block;
    }

    .trends-device-heading strong {
        color: white;
        font-size: 11px;
    }

    .trends-device-heading small {
        margin-top: 3px;
        color: var(--icd-muted);
        font-size: 9px;
    }

.trends-add-unit-button {
    height: 22px;
    padding: 0 6px;
    border: 1px solid rgba(57, 201, 138, 0.55);
    border-radius: 3px;
    background: rgba(57, 201, 138, 0.1);
    color: var(--icd-green);
}

    .trends-add-unit-button:hover {
        background: var(--icd-green);
        color: #062b37;
    }

.trends-signal-option {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 39px;
    padding: 0 11px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
}

    .trends-signal-option:hover,
    .trends-signal-option.selected {
        background: rgba(22, 185, 220, 0.12);
    }

    .trends-signal-option input {
        accent-color: var(--icd-cyan);
    }

.trends-signal-color {
    width: 8px;
    height: 24px;
    flex: 0 0 8px;
    border-radius: 3px;
}

.trends-signal-name {
    min-width: 0;
    flex: 1;
}

    .trends-signal-name strong,
    .trends-signal-name small {
        display: block;
    }

    .trends-signal-name strong {
        overflow: hidden;
        color: white;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 10px;
    }

    .trends-signal-name small {
        margin-top: 2px;
        color: var(--icd-muted);
        font-size: 8px;
    }

.trends-signal-current {
    color: var(--icd-cyan-light);
    font-size: 9px;
    font-weight: bold;
    white-space: nowrap;
}

.trends-main-panel {
    display: flex;
    flex-direction: column;
}

.trends-range-buttons {
    display: flex;
    gap: 4px;
}

.trends-range-button {
    height: 24px;
    padding: 0 8px;
    border: 1px solid rgba(141, 231, 245, 0.3);
    border-radius: 3px;
    background: transparent;
    color: var(--icd-muted);
}

    .trends-range-button:hover,
    .trends-range-button.active {
        border-color: var(--icd-cyan);
        background: var(--icd-blue);
        color: white;
    }

.trends-chart-area {
    min-height: 0;
    flex: 1;
    padding: 14px 13px 0;
}

.trends-chart {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 290px;
}

.trends-grid-line {
    stroke: rgba(169, 197, 207, 0.18);
    stroke-width: 1;
    stroke-dasharray: 4 4;
}

.trends-axis-line {
    stroke: rgba(141, 231, 245, 0.42);
    stroke-width: 1;
}

.trends-data-line {
    fill: none;
    stroke-width: 3px;
    stroke-linejoin: round;
    stroke-linecap: round;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.15));
}

.trends-axis-label,
.trends-time-label {
    fill: var(--icd-muted);
    font-size: 10px;
    font-weight: bold;
}

.trends-chart-note {
    padding: 0 15px 10px;
    color: var(--icd-muted);
    font-size: 9px;
    line-height: 1.4;
}

.trends-no-data {
    display: flex;
    height: 100%;
    min-height: 260px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--icd-muted);
}

    .trends-no-data strong {
        color: var(--icd-cyan-light);
        font-size: 13px;
    }

    .trends-no-data span {
        margin-top: 6px;
        font-size: 10px;
    }

.trends-selected-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 37px;
    padding: 0 12px;
    border-top: 1px solid rgba(141, 231, 245, 0.18);
    border-bottom: 1px solid rgba(141, 231, 245, 0.16);
    background: rgba(6, 31, 45, 0.48);
    color: var(--icd-cyan-light);
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 0.6px;
}

.trends-export-button {
    height: 25px;
    padding: 0 9px;
    border: 1px solid var(--icd-green);
    border-radius: 3px;
    background: rgba(57, 201, 138, 0.12);
    color: var(--icd-green);
}

    .trends-export-button:hover:not(:disabled) {
        background: var(--icd-green);
        color: #062b37;
    }

    .trends-export-button:disabled {
        opacity: 0.45;
        cursor: not-allowed;
    }

.trends-selected-list {
    max-height: 155px;
    overflow-y: auto;
}

.trends-pen-card {
    display: flex;
    align-items: center;
    min-height: 43px;
    gap: 9px;
    padding: 7px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.trends-pen-main {
    display: flex;
    min-width: 0;
    flex: 1;
    align-items: center;
    gap: 8px;
}

.trends-pen-color {
    width: 8px;
    height: 28px;
    flex: 0 0 8px;
    border-radius: 3px;
}

.trends-pen-main strong,
.trends-pen-main small {
    display: block;
}

.trends-pen-main strong {
    overflow: hidden;
    color: white;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
}

.trends-pen-main small {
    margin-top: 3px;
    color: var(--icd-muted);
    font-size: 8px;
}

.trends-pen-value {
    color: white;
    font-size: 10px;
    font-weight: bold;
    white-space: nowrap;
}

.trends-color-picker {
    width: 28px;
    height: 24px;
    padding: 1px;
    border: 1px solid rgba(141, 231, 245, 0.35);
    border-radius: 3px;
    background: transparent;
    cursor: pointer;
}

.trends-remove-pen {
    width: 23px;
    height: 23px;
    border: 0;
    border-radius: 3px;
    background: rgba(224, 82, 82, 0.82);
    color: white;
    font-size: 16px;
    line-height: 18px;
}

    .trends-remove-pen:hover {
        background: var(--icd-red);
    }

.trends-empty-pens {
    padding: 18px;
    color: var(--icd-muted);
    font-size: 10px;
}

@media (max-width: 900px) {
    .trends-page {
        height: auto;
        min-height: 800px;
        overflow: visible;
    }

    .trends-workspace {
        grid-template-columns: 1fr;
    }

    .trends-signal-panel {
        max-height: 450px;
    }

    .trends-chart-area {
        min-height: 330px;
    }
}

@media (max-width: 600px) {
    .trends-page-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .trends-pen-value {
        display: none;
    }

    .trends-range-button {
        padding: 0 6px;
        font-size: 8px;
    }
}

.vibration-page {
    height: calc(100vh - 118px);
    min-height: 720px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
}

.vibration-page-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    min-height: 44px;
}

    .vibration-page-header h1 {
        margin: 0;
        color: white;
        font-size: 22px;
    }

.vibration-page-subtitle {
    margin-top: 5px;
    color: var(--icd-muted);
    font-size: 11px;
}

.vibration-header-actions {
    display: flex;
    align-items: end;
    gap: 14px;
}

.vibration-unit-selector {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--icd-cyan-light);
    font-size: 8px;
    font-weight: bold;
    letter-spacing: 0.6px;
}

    .vibration-unit-selector select {
        width: 190px;
        height: 29px;
        padding: 0 8px;
        border: 1px solid rgba(141, 231, 245, 0.35);
        border-radius: 4px;
        outline: none;
        background: #0b4056;
        color: white;
        font-size: 10px;
    }

        .vibration-unit-selector select:focus {
            border-color: var(--icd-cyan);
            background: #125b75;
        }

        .vibration-unit-selector select option {
            background: #0b4056;
            color: white;
        }

.vibration-last-update {
    padding-bottom: 7px;
    color: var(--icd-cyan-light);
    font-size: 10px;
    font-weight: bold;
}

.vibration-live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 5px;
    border-radius: 50%;
    background: var(--icd-green);
    box-shadow: 0 0 8px var(--icd-green);
}

.vibration-panel {
    overflow: hidden;
    border: 1px solid rgba(141, 231, 245, 0.24);
    border-radius: 6px;
    background: rgba(16, 76, 101, 0.94);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.22);
}

.vibration-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 37px;
    padding: 0 12px;
    border-bottom: 1px solid rgba(141, 231, 245, 0.2);
    background: rgba(6, 31, 45, 0.76);
    color: var(--icd-cyan-light);
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 0.7px;
}

.vibration-overview-grid {
    display: grid;
    grid-template-columns: 1.05fr 1.2fr 1fr;
    gap: 10px;
}

.vibration-condition-content {
    padding: 13px;
}

.vibration-condition-score {
    display: inline-flex;
    height: 58px;
    min-width: 95px;
    justify-content: center;
    align-items: baseline;
    padding: 0 12px;
    border: 1px solid currentColor;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.17);
    font-size: 31px;
    font-weight: bold;
}

    .vibration-condition-score span {
        margin-left: 4px;
        font-size: 10px;
    }

    .vibration-condition-score.healthy,
    .healthy {
        color: var(--icd-green);
    }

    .vibration-condition-score.watch,
    .watch {
        color: var(--icd-yellow);
    }

    .vibration-condition-score.action,
    .action {
        color: var(--icd-red);
    }

.vibration-condition-copy {
    margin-top: 11px;
}

    .vibration-condition-copy strong {
        color: white;
        font-size: 12px;
    }

    .vibration-condition-copy p {
        margin: 5px 0 0;
        color: var(--icd-muted);
        font-size: 10px;
        line-height: 1.45;
    }

.vibration-condition-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 12px;
}

    .vibration-condition-values div {
        padding: 7px;
        border-radius: 4px;
        background: rgba(0, 0, 0, 0.16);
    }

    .vibration-condition-values span,
    .vibration-condition-values strong {
        display: block;
    }

    .vibration-condition-values span {
        color: var(--icd-muted);
        font-size: 8px;
        font-weight: bold;
    }

    .vibration-condition-values strong {
        margin-top: 4px;
        color: white;
        font-size: 10px;
    }

.vibration-condition-badge,
.vibration-recommendation-status {
    padding: 4px 7px;
    border-radius: 10px;
    font-size: 8px;
    font-weight: bold;
}

    .vibration-condition-badge.healthy,
    .vibration-recommendation-status.healthy {
        background: rgba(57, 201, 138, 0.18);
        color: var(--icd-green);
    }

    .vibration-condition-badge.watch,
    .vibration-recommendation-status.watch {
        background: rgba(244, 185, 66, 0.17);
        color: var(--icd-yellow);
    }

    .vibration-condition-badge.action,
    .vibration-recommendation-status.action {
        background: rgba(224, 82, 82, 0.17);
        color: #ff9b9b;
    }

/* Pump / skid visual */

.vibration-skid-content {
    display: grid;
    grid-template-columns: 1fr 165px;
    min-height: 207px;
}

.vibration-skid-stage {
    display: flex;
    min-height: 200px;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    perspective: 680px;
    background: linear-gradient(rgba(141, 231, 245, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(141, 231, 245, 0.08) 1px, transparent 1px), rgba(0, 0, 0, 0.12);
    background-size: 24px 24px;
}

.vibration-skid-model {
    position: relative;
    width: 245px;
    height: 120px;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.vibration-skid-base {
    position: absolute;
    right: 10px;
    bottom: 18px;
    left: 10px;
    height: 18px;
    border: 2px solid #8de7f5;
    border-radius: 4px;
    background: linear-gradient(180deg, #185d77, #082f43);
    box-shadow: 0 8px 14px rgba(0, 0, 0, 0.45);
}

.vibration-pump-body {
    position: absolute;
    bottom: 38px;
    left: 36px;
    display: flex;
    width: 72px;
    height: 48px;
    justify-content: center;
    align-items: center;
    border: 2px solid #8de7f5;
    border-radius: 50% 18% 18% 50%;
    background: linear-gradient(145deg, #237a99, #0b4056);
    color: white;
    font-size: 9px;
    font-weight: bold;
}

.vibration-coupling {
    position: absolute;
    bottom: 53px;
    left: 112px;
    width: 23px;
    height: 17px;
    border: 2px solid #f4b942;
    border-radius: 3px;
    background: #8d6521;
}

.vibration-engine-body {
    position: absolute;
    right: 30px;
    bottom: 38px;
    display: flex;
    width: 74px;
    height: 47px;
    justify-content: center;
    align-items: center;
    border: 2px solid #39c98a;
    border-radius: 6px;
    background: linear-gradient(145deg, #176b5a, #0c403b);
    color: white;
    font-size: 9px;
    font-weight: bold;
}

.vibration-skid-leg {
    position: absolute;
    bottom: 2px;
    width: 10px;
    height: 20px;
    border: 1px solid #59727d;
    background: #102c37;
}

.leg-one {
    left: 29px;
}

.leg-two {
    left: 88px;
}

.leg-three {
    right: 86px;
}

.leg-four {
    right: 29px;
}

.vibration-orientation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 10px;
    border-left: 1px solid rgba(141, 231, 245, 0.17);
}

    .vibration-orientation-grid div {
        padding: 7px;
        border-radius: 4px;
        background: rgba(0, 0, 0, 0.17);
    }

    .vibration-orientation-grid span,
    .vibration-orientation-grid strong {
        display: block;
    }

    .vibration-orientation-grid span {
        color: var(--icd-muted);
        font-size: 8px;
        font-weight: bold;
    }

    .vibration-orientation-grid strong {
        margin-top: 5px;
        color: white;
        font-size: 13px;
    }

/* Recommendation */

.vibration-recommendation-content {
    padding: 14px;
}

.vibration-recommendation-icon {
    display: flex;
    width: 31px;
    height: 31px;
    justify-content: center;
    align-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 17px;
    font-weight: bold;
}

.vibration-recommendation-content p {
    margin: 10px 0 14px;
    color: white;
    font-size: 11px;
    line-height: 1.5;
}

.vibration-recommendation-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

    .vibration-recommendation-meta div {
        padding: 7px;
        border-radius: 4px;
        background: rgba(0, 0, 0, 0.16);
    }

    .vibration-recommendation-meta span,
    .vibration-recommendation-meta strong {
        display: block;
    }

    .vibration-recommendation-meta span {
        color: var(--icd-muted);
        font-size: 8px;
        font-weight: bold;
    }

    .vibration-recommendation-meta strong {
        margin-top: 4px;
        color: white;
        font-size: 9px;
    }

/* Main detail area */

.vibration-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    min-height: 0;
    flex: 1;
    gap: 10px;
}

.vibration-scatter-panel,
.vibration-readings-panel {
    min-height: 0;
}

.vibration-scatter-panel {
    display: flex;
    flex-direction: column;
}

.vibration-scatter-legend {
    display: flex;
    gap: 10px;
    color: var(--icd-muted);
    font-size: 9px;
}

    .vibration-scatter-legend span {
        display: flex;
        align-items: center;
        gap: 4px;
    }

.vibration-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

    .vibration-legend-dot.normal {
        background: var(--icd-green);
    }

    .vibration-legend-dot.watch {
        background: var(--icd-yellow);
    }

    .vibration-legend-dot.current {
        background: white;
        box-shadow: 0 0 0 2px var(--icd-cyan);
    }

.vibration-scatter-content {
    min-height: 0;
    flex: 1;
    padding: 8px 10px 0;
}

.vibration-scatter-chart {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 280px;
}

.vibration-zone-red {
    fill: rgba(224, 82, 82, 0.14);
}

.vibration-zone-yellow {
    fill: rgba(244, 185, 66, 0.16);
}

.vibration-zone-green {
    fill: rgba(57, 201, 138, 0.18);
}

.vibration-grid-line {
    stroke: rgba(169, 197, 207, 0.17);
    stroke-width: 1;
    stroke-dasharray: 4 4;
}

.vibration-axis-line {
    stroke: rgba(141, 231, 245, 0.5);
    stroke-width: 1px;
}

.vibration-axis-label,
.vibration-chart-title,
.vibration-chart-y-title {
    fill: var(--icd-muted);
    font-size: 10px;
    font-weight: bold;
}

.vibration-scatter-point {
    stroke: #082f43;
    stroke-width: 2;
}

    .vibration-scatter-point.normal {
        fill: var(--icd-green);
    }

    .vibration-scatter-point.watch {
        fill: var(--icd-yellow);
    }

    .vibration-scatter-point.current {
        fill: white;
        stroke: var(--icd-cyan);
        stroke-width: 4;
        filter: drop-shadow(0 0 5px rgba(22, 185, 220, 0.95));
    }

.vibration-current-crosshair {
    stroke: rgba(141, 231, 245, 0.55);
    stroke-width: 1;
    stroke-dasharray: 4 4;
}

.vibration-scatter-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 8px 10px 11px;
}

    .vibration-scatter-summary div {
        padding: 7px;
        border-radius: 4px;
        background: rgba(0, 0, 0, 0.16);
    }

    .vibration-scatter-summary span,
    .vibration-scatter-summary strong {
        display: block;
    }

    .vibration-scatter-summary span {
        color: var(--icd-muted);
        font-size: 8px;
        font-weight: bold;
    }

    .vibration-scatter-summary strong {
        margin-top: 4px;
        color: white;
        font-size: 10px;
    }

/* Sensor cards */

.vibration-readings-panel {
    display: flex;
    flex-direction: column;
}

.vibration-reading-section {
    padding: 11px;
}

    .vibration-reading-section + .vibration-reading-section {
        border-top: 1px solid rgba(141, 231, 245, 0.15);
    }

.vibration-reading-section-title {
    margin-bottom: 8px;
    color: var(--icd-cyan-light);
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 0.6px;
}

.vibration-reading-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

    .vibration-reading-grid div {
        padding: 9px;
        border: 1px solid rgba(141, 231, 245, 0.14);
        border-radius: 4px;
        background: rgba(0, 0, 0, 0.16);
    }

    .vibration-reading-grid span,
    .vibration-reading-grid strong {
        display: block;
    }

    .vibration-reading-grid span {
        color: var(--icd-muted);
        font-size: 8px;
        font-weight: bold;
    }

    .vibration-reading-grid strong {
        margin-top: 5px;
        color: white;
        font-size: 15px;
    }

        .vibration-reading-grid strong small {
            color: var(--icd-muted);
            font-size: 8px;
            font-weight: normal;
        }

/* History bars */

.vibration-history-content {
    padding: 12px 14px 10px;
}

.vibration-history-bars {
    display: flex;
    height: 76px;
    align-items: end;
    gap: 5px;
    padding-bottom: 3px;
    border-bottom: 1px solid rgba(141, 231, 245, 0.32);
}

.vibration-history-bar-wrap {
    display: flex;
    height: 100%;
    flex: 1;
    align-items: end;
    min-width: 4px;
}

.vibration-history-bar {
    width: 100%;
    min-height: 3px;
    border-radius: 2px 2px 0 0;
}

    .vibration-history-bar.healthy {
        background: linear-gradient(to top, #138e62, var(--icd-green));
    }

    .vibration-history-bar.watch {
        background: linear-gradient(to top, #a67418, var(--icd-yellow));
    }

    .vibration-history-bar.action {
        background: linear-gradient(to top, #a93232, var(--icd-red));
    }

.vibration-history-scale {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    color: var(--icd-muted);
    font-size: 8px;
    font-weight: bold;
}

/* Responsive */

@media (max-width: 1100px) {
    .vibration-overview-grid {
        grid-template-columns: 1fr 1fr;
    }

    .vibration-recommendation-panel {
        grid-column: span 2;
    }

    .vibration-main-grid {
        grid-template-columns: minmax(0, 1fr) 300px;
    }
}

@media (max-width: 850px) {
    .vibration-page {
        height: auto;
        min-height: 900px;
        overflow: visible;
    }

    .vibration-overview-grid,
    .vibration-main-grid {
        grid-template-columns: 1fr;
    }

    .vibration-recommendation-panel {
        grid-column: span 1;
    }

    .vibration-readings-panel {
        min-height: auto;
    }
}

@media (max-width: 600px) {
    .vibration-page-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .vibration-header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .vibration-unit-selector select {
        width: 180px;
    }

    .vibration-skid-content {
        grid-template-columns: 1fr;
    }

    .vibration-orientation-grid {
        border-top: 1px solid rgba(141, 231, 245, 0.17);
        border-left: 0;
    }

    .vibration-scatter-summary {
        grid-template-columns: 1fr 1fr;
    }

    .vibration-scatter-legend {
        display: none;
    }
}

.portal-landing-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 28px;
    box-sizing: border-box;
    background: radial-gradient(circle at 15% 20%, rgba(22, 185, 220, 0.14), transparent 33%), radial-gradient(circle at 85% 80%, rgba(57, 201, 138, 0.11), transparent 30%), linear-gradient(135deg, #061f2d 0%, #082f43 48%, #0a3c52 100%);
}

.portal-landing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1450px;
    width: 100%;
    margin: 0 auto;
}

.portal-landing-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.portal-landing-logo {
    width: 78px;
    height: 62px;
    object-fit: contain;
    border-radius: 5px;
    background: white;
}

.portal-landing-title {
    color: var(--icd-cyan-light);
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 1.8px;
}

.portal-landing-subtitle {
    margin-top: 5px;
    color: var(--icd-muted);
    font-size: 11px;
}

.portal-landing-status {
    color: var(--icd-green);
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 0.6px;
}

.portal-status-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 6px;
    border-radius: 50%;
    background: var(--icd-green);
    box-shadow: 0 0 10px var(--icd-green);
}

.portal-choice-grid {
    width: 100%;
    max-width: 1450px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex: 1;
    gap: 20px;
    margin: 28px auto;
}

.portal-choice-card {
    position: relative;
    min-height: 475px;
    display: flex;
    flex-direction: column;
    padding: 34px;
    overflow: hidden;
    border: 1px solid rgba(141, 231, 245, 0.25);
    border-radius: 10px;
    color: white;
    text-decoration: none;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

    .portal-choice-card::before {
        content: "";
        position: absolute;
        top: -80px;
        right: -90px;
        width: 280px;
        height: 280px;
        border-radius: 50%;
        opacity: 0.65;
        filter: blur(4px);
    }

    .portal-choice-card:hover {
        border-color: var(--icd-cyan);
        transform: translateY(-5px);
        box-shadow: 0 15px 32px rgba(0, 0, 0, 0.38);
    }

.pump-portal-card {
    background: linear-gradient(145deg, rgba(17, 99, 126, 0.95), rgba(6, 43, 60, 0.98));
}

    .pump-portal-card::before {
        background: rgba(22, 185, 220, 0.25);
    }

.projects-portal-card {
    background: linear-gradient(145deg, rgba(31, 94, 80, 0.95), rgba(8, 51, 46, 0.98));
}

    .projects-portal-card::before {
        background: rgba(57, 201, 138, 0.24);
    }

.portal-choice-topline {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.portal-choice-kicker {
    color: var(--icd-cyan-light);
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1px;
}

.projects-portal-card .portal-choice-kicker {
    color: #9cebc5;
}

.portal-choice-arrow {
    display: flex;
    width: 34px;
    height: 34px;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    font-size: 21px;
    transition: background 0.2s ease;
}

.portal-choice-card:hover .portal-choice-arrow {
    background: rgba(255, 255, 255, 0.15);
}

.portal-choice-icon {
    position: relative;
    z-index: 1;
    margin-top: 47px;
    color: var(--icd-cyan-light);
    font-size: 62px;
    line-height: 1;
    text-shadow: 0 0 18px rgba(22, 185, 220, 0.35);
}

.projects-portal-card .portal-choice-icon {
    color: var(--icd-green);
    text-shadow: 0 0 18px rgba(57, 201, 138, 0.35);
}

.portal-choice-card h1 {
    position: relative;
    z-index: 1;
    margin: 20px 0 0;
    color: white;
    font-size: 31px;
}

.portal-choice-card p {
    position: relative;
    z-index: 1;
    max-width: 570px;
    margin: 13px 0 0;
    color: var(--icd-muted);
    font-size: 14px;
    line-height: 1.55;
}

.portal-feature-list {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 24px;
}

    .portal-feature-list span {
        padding: 5px 8px;
        border: 1px solid rgba(141, 231, 245, 0.26);
        border-radius: 3px;
        background: rgba(0, 0, 0, 0.12);
        color: var(--icd-cyan-light);
        font-size: 9px;
        font-weight: bold;
        letter-spacing: 0.4px;
    }

.projects-portal-card .portal-feature-list span {
    border-color: rgba(57, 201, 138, 0.3);
    color: #9cebc5;
}

.portal-choice-footer {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-top: auto;
    padding-top: 32px;
}

    .portal-choice-footer strong {
        color: white;
        font-size: 12px;
        letter-spacing: 0.6px;
    }

    .portal-choice-footer span {
        color: var(--icd-muted);
        font-size: 10px;
    }

.portal-landing-footer {
    display: flex;
    justify-content: space-between;
    max-width: 1450px;
    width: 100%;
    margin: 0 auto;
    color: var(--icd-muted);
    font-size: 10px;
}

/* =========================================================
   ICD PROJECTS PAGE
   ========================================================= */

.projects-page {
    max-width: 1450px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0 auto;
}

.projects-page-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    min-height: 57px;
}

.projects-back-link {
    color: var(--icd-cyan-light);
    text-decoration: none;
    font-size: 10px;
    font-weight: bold;
}

    .projects-back-link:hover {
        color: white;
    }

.projects-page-header h1 {
    margin: 8px 0 0;
    color: white;
    font-size: 25px;
}

.projects-page-subtitle {
    margin-top: 5px;
    color: var(--icd-muted);
    font-size: 11px;
}

.projects-development-badge {
    padding: 6px 10px;
    border: 1px solid rgba(57, 201, 138, 0.5);
    border-radius: 12px;
    background: rgba(57, 201, 138, 0.11);
    color: var(--icd-green);
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 0.7px;
}

.projects-hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 20px;
    padding: 28px;
    border: 1px solid rgba(141, 231, 245, 0.25);
    border-radius: 7px;
    background: radial-gradient(circle at 88% 24%, rgba(57, 201, 138, 0.17), transparent 25%), linear-gradient(145deg, rgba(17, 94, 79, 0.96), rgba(7, 48, 55, 0.98));
}

.projects-kicker {
    color: #9cebc5;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 0.9px;
}

.projects-hero-copy h2 {
    margin: 10px 0 0;
    color: white;
    font-size: 27px;
}

.projects-hero-copy p {
    max-width: 760px;
    margin: 12px 0 0;
    color: var(--icd-muted);
    font-size: 13px;
    line-height: 1.55;
}

.projects-flow {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 28px;
}

    .projects-flow div {
        min-width: 110px;
    }

    .projects-flow span,
    .projects-flow strong,
    .projects-flow small {
        display: block;
    }

    .projects-flow span {
        color: var(--icd-green);
        font-size: 10px;
        font-weight: bold;
    }

    .projects-flow strong {
        margin-top: 4px;
        color: white;
        font-size: 10px;
    }

    .projects-flow small {
        margin-top: 4px;
        color: var(--icd-muted);
        font-size: 9px;
    }

    .projects-flow i {
        color: var(--icd-cyan-light);
        font-size: 19px;
        font-style: normal;
    }

.projects-hero-status {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-left: 1px solid rgba(141, 231, 245, 0.18);
    text-align: center;
}

.projects-status-ring {
    display: flex;
    width: 114px;
    height: 114px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 7px solid var(--icd-green);
    border-right-color: rgba(57, 201, 138, 0.18);
    border-radius: 50%;
    color: var(--icd-green);
}

    .projects-status-ring span {
        font-size: 9px;
        font-weight: bold;
    }

    .projects-status-ring strong {
        margin-top: 3px;
        font-size: 27px;
    }

.projects-hero-status > strong {
    margin-top: 14px;
    color: white;
    font-size: 11px;
}

.projects-hero-status > small {
    margin-top: 5px;
    color: var(--icd-muted);
    font-size: 9px;
}

.projects-work-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.projects-work-card {
    position: relative;
    display: grid;
    grid-template-columns: 45px minmax(0, 1fr) auto;
    gap: 11px;
    min-height: 117px;
    padding: 16px;
    border: 1px solid rgba(141, 231, 245, 0.22);
    border-radius: 6px;
    background: rgba(16, 76, 101, 0.9);
}

.projects-work-card-icon {
    display: flex;
    width: 39px;
    height: 39px;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    font-size: 20px;
}

    .projects-work-card-icon.plc {
        background: rgba(22, 185, 220, 0.15);
        color: var(--icd-cyan-light);
    }

    .projects-work-card-icon.database {
        background: rgba(141, 140, 255, 0.17);
        color: #bab8ff;
    }

    .projects-work-card-icon.dashboard {
        background: rgba(57, 201, 138, 0.16);
        color: var(--icd-green);
    }

    .projects-work-card-icon.reports {
        background: rgba(244, 185, 66, 0.16);
        color: var(--icd-yellow);
    }

.projects-work-card span {
    color: var(--icd-cyan-light);
    font-size: 8px;
    font-weight: bold;
    letter-spacing: 0.6px;
}

.projects-work-card h2 {
    margin: 5px 0 0;
    color: white;
    font-size: 14px;
}

.projects-work-card p {
    margin: 6px 0 0;
    color: var(--icd-muted);
    font-size: 10px;
    line-height: 1.45;
}

.projects-card-state {
    align-self: start;
    padding: 4px 6px;
    border-radius: 9px;
    font-size: 8px;
    font-weight: bold;
}

    .projects-card-state.planned {
        background: rgba(244, 185, 66, 0.15);
        color: var(--icd-yellow);
    }

.projects-next-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(57, 201, 138, 0.35);
    border-radius: 6px;
    background: rgba(57, 201, 138, 0.08);
}

    .projects-next-panel span,
    .projects-next-panel strong {
        display: block;
    }

    .projects-next-panel span {
        color: #9cebc5;
        font-size: 8px;
        font-weight: bold;
        letter-spacing: 0.6px;
    }

    .projects-next-panel strong {
        margin-top: 5px;
        color: white;
        font-size: 12px;
    }

.projects-demo-link {
    padding: 9px 11px;
    border: 1px solid var(--icd-cyan);
    border-radius: 4px;
    color: var(--icd-cyan-light);
    font-size: 10px;
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap;
}

    .projects-demo-link:hover {
        background: var(--icd-cyan);
        color: #062b37;
    }

@media (max-width: 900px) {
    .portal-choice-grid {
        grid-template-columns: 1fr;
    }

    .portal-choice-card {
        min-height: 360px;
    }

    .projects-hero-panel {
        grid-template-columns: 1fr;
    }

    .projects-hero-status {
        min-height: 190px;
        border-top: 1px solid rgba(141, 231, 245, 0.18);
        border-left: 0;
    }

    .projects-work-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .portal-landing-page {
        padding: 18px;
    }

    .portal-landing-header,
    .portal-landing-footer,
    .projects-page-header,
    .projects-next-panel {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .portal-landing-status {
        margin-left: 93px;
    }

    .portal-choice-card {
        min-height: 330px;
        padding: 23px;
    }

        .portal-choice-card h1 {
            font-size: 25px;
        }

    .projects-flow {
        flex-wrap: wrap;
        gap: 8px;
    }

        .projects-flow div {
            min-width: 92px;
        }

        .projects-flow i {
            display: none;
        }

    .projects-work-card {
        grid-template-columns: 39px minmax(0, 1fr);
    }

    .projects-card-state {
        grid-column: 2;
        justify-self: start;
    }
}

/* =========================================================
   ICD PROJECTS SHELL / SEPARATE NAVIGATION
   ========================================================= */

.projects-app-shell {
    min-height: 100vh;
    background: radial-gradient(circle at 82% 10%, rgba(57, 201, 138, 0.09), transparent 28%), linear-gradient(135deg, #062d2b 0%, #073d3a 45%, #082f43 100%);
    color: var(--icd-text);
}

.projects-topbar {
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 28px;
    border-bottom: 2px solid var(--icd-green);
    background: #052825;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.35);
}

.projects-brand {
    display: flex;
    min-width: 285px;
    align-items: center;
    color: white;
    text-decoration: none;
}

.projects-logo {
    width: 70px;
    height: 56px;
    object-fit: contain;
    border-radius: 5px;
    background: white;
}

.projects-brand > div {
    margin-left: 12px;
}

.projects-title {
    color: #9cebc5;
    font-size: 19px;
    font-weight: bold;
    letter-spacing: 1.5px;
}

.projects-subtitle {
    margin-top: 4px;
    color: #93bdb2;
    font-size: 11px;
}

.projects-navigation {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 8px;
}

    .projects-navigation a,
    .projects-nav-pending {
        padding: 12px 15px;
        border-radius: 5px;
        color: #93bdb2;
        font-size: 12px;
        font-weight: bold;
        text-decoration: none;
        white-space: nowrap;
    }

        .projects-navigation a:hover {
            background: #176b5a;
            color: white;
        }

        .projects-navigation a.active {
            background: #176b5a;
            box-shadow: inset 0 -3px 0 var(--icd-green);
            color: white;
        }

.projects-nav-pending {
    opacity: 0.48;
    cursor: default;
}

.projects-system-status {
    color: var(--icd-green);
    font-size: 10px;
    font-weight: bold;
    white-space: nowrap;
}

.projects-status-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 6px;
    border-radius: 50%;
    background: var(--icd-green);
    box-shadow: 0 0 8px var(--icd-green);
}

.projects-main-content {
    width: 100%;
    padding: 24px;
    box-sizing: border-box;
}

@media (max-width: 1050px) {
    .projects-topbar {
        flex-wrap: wrap;
        padding: 14px 18px;
    }

    .projects-brand {
        flex: 1;
    }

    .projects-navigation {
        order: 3;
        width: 100%;
        overflow-x: auto;
    }

        .projects-navigation a,
        .projects-nav-pending {
            padding: 10px 12px;
        }
}

@media (max-width: 600px) {
    .projects-main-content {
        padding: 14px;
    }

    .projects-brand {
        min-width: 0;
    }

    .projects-system-status {
        display: none;
    }
}

/* =========================================================
   ICD PROJECT PORTFOLIO CARDS
   ========================================================= */

.projects-portfolio-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 9px;
}

    .projects-portfolio-summary div {
        padding: 13px;
        border: 1px solid rgba(141, 231, 245, 0.2);
        border-radius: 5px;
        background: rgba(6, 40, 37, 0.55);
    }

    .projects-portfolio-summary span,
    .projects-portfolio-summary strong {
        display: block;
    }

    .projects-portfolio-summary span {
        color: #93bdb2;
        font-size: 8px;
        font-weight: bold;
        letter-spacing: 0.5px;
    }

    .projects-portfolio-summary strong {
        margin-top: 7px;
        color: white;
        font-size: 20px;
    }

.projects-summary-building {
    color: var(--icd-green) !important;
    font-size: 13px !important;
}

.projects-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.project-card {
    min-height: 390px;
    display: flex;
    flex-direction: column;
    padding: 22px;
    border: 1px solid rgba(141, 231, 245, 0.22);
    border-radius: 7px;
    color: white;
}

.project-card-active {
    background: radial-gradient(circle at 88% 14%, rgba(57, 201, 138, 0.18), transparent 26%), linear-gradient(145deg, rgba(18, 91, 77, 0.96), rgba(6, 46, 44, 0.98));
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

    .project-card-active:hover {
        border-color: var(--icd-green);
        transform: translateY(-4px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
    }

.project-card-empty {
    border-style: dashed;
    background: rgba(7, 48, 55, 0.65);
    opacity: 0.9;
}

.project-card-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-card-number {
    color: #9cebc5;
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 0.8px;
}

.project-card-status {
    padding: 4px 7px;
    border-radius: 10px;
    font-size: 8px;
    font-weight: bold;
}

    .project-card-status.active {
        background: rgba(57, 201, 138, 0.17);
        color: var(--icd-green);
    }

    .project-card-status.upcoming {
        background: rgba(244, 185, 66, 0.15);
        color: var(--icd-yellow);
    }

.project-card-icon {
    margin-top: 34px;
    color: var(--icd-green);
    font-size: 53px;
    line-height: 1;
    text-shadow: 0 0 17px rgba(57, 201, 138, 0.28);
}

.project-card-empty .project-card-icon {
    color: var(--icd-muted);
    text-shadow: none;
}

.project-card h2 {
    margin: 16px 0 0;
    color: white;
    font-size: 24px;
}

.project-card p {
    max-width: 520px;
    margin: 10px 0 0;
    color: var(--icd-muted);
    font-size: 12px;
    line-height: 1.55;
}

.project-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 19px;
}

    .project-card-tags span {
        padding: 4px 6px;
        border: 1px solid rgba(141, 231, 245, 0.24);
        border-radius: 3px;
        background: rgba(0, 0, 0, 0.15);
        color: #9cebc5;
        font-size: 8px;
        font-weight: bold;
    }

.project-card-empty .project-card-tags span {
    color: var(--icd-muted);
}

.project-card-progress {
    margin-top: 22px;
}

.project-progress-label {
    display: flex;
    justify-content: space-between;
    color: var(--icd-muted);
    font-size: 9px;
}

    .project-progress-label strong {
        color: white;
    }

.project-progress-track {
    height: 7px;
    margin-top: 6px;
    overflow: hidden;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.3);
}

.project-progress-fill {
    height: 100%;
    border-radius: 5px;
    background: var(--icd-green);
    box-shadow: 0 0 8px rgba(57, 201, 138, 0.55);
}

.project-card-empty-state {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 90px;
    margin-top: 22px;
    border: 1px dashed rgba(141, 231, 245, 0.22);
    border-radius: 5px;
    color: var(--icd-muted);
    text-align: center;
}

    .project-card-empty-state span {
        color: var(--icd-cyan-light);
        font-size: 23px;
    }

    .project-card-empty-state strong {
        margin-top: 4px;
        color: white;
        font-size: 10px;
    }

    .project-card-empty-state small {
        max-width: 290px;
        margin-top: 5px;
        color: var(--icd-muted);
        font-size: 9px;
        line-height: 1.4;
    }

.project-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 22px;
    color: var(--icd-cyan-light);
    font-size: 10px;
}

    .project-card-footer span {
        color: var(--icd-green);
        font-size: 21px;
    }

    .project-card-footer.disabled {
        color: var(--icd-muted);
    }

        .project-card-footer.disabled span {
            color: var(--icd-muted);
        }

/* =========================================================
   ICD BEAVER 45 PROJECT WORKSPACE
   ========================================================= */

.beaver-project-page {
    max-width: 1450px;
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin: 0 auto;
}

.beaver-project-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
}

    .beaver-project-header h1 {
        margin: 8px 0 0;
        color: white;
        font-size: 25px;
    }

.beaver-project-subtitle {
    margin-top: 5px;
    color: var(--icd-muted);
    font-size: 11px;
}

.beaver-project-status {
    color: var(--icd-green);
    font-size: 10px;
    font-weight: bold;
}

.beaver-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 5px;
    border-radius: 50%;
    background: var(--icd-green);
    box-shadow: 0 0 8px var(--icd-green);
}

.beaver-hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 20px;
    padding: 25px;
    border: 1px solid rgba(141, 231, 245, 0.23);
    border-radius: 7px;
    background: radial-gradient(circle at 88% 20%, rgba(22, 185, 220, 0.14), transparent 28%), linear-gradient(145deg, rgba(12, 84, 75, 0.96), rgba(5, 43, 48, 0.98));
}

.beaver-kicker {
    color: #9cebc5;
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 0.8px;
}

.beaver-hero-panel h2 {
    margin: 10px 0 0;
    color: white;
    font-size: 25px;
}

.beaver-hero-panel p {
    max-width: 800px;
    margin: 10px 0 0;
    color: var(--icd-muted);
    font-size: 12px;
    line-height: 1.55;
}

.beaver-hero-device {
    align-self: center;
    padding: 15px;
    border: 1px solid rgba(141, 231, 245, 0.22);
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.17);
}

    .beaver-hero-device span,
    .beaver-hero-device strong,
    .beaver-hero-device small {
        display: block;
    }

    .beaver-hero-device span {
        color: var(--icd-muted);
        font-size: 8px;
        font-weight: bold;
    }

    .beaver-hero-device strong {
        margin-top: 7px;
        color: var(--icd-cyan-light);
        font-size: 15px;
    }

    .beaver-hero-device small {
        margin-top: 5px;
        color: var(--icd-muted);
        font-size: 9px;
    }

.beaver-build-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.beaver-build-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(141, 231, 245, 0.2);
    border-radius: 5px;
    background: rgba(7, 50, 56, 0.88);
}

.beaver-build-step {
    display: flex;
    width: 34px;
    height: 34px;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: rgba(22, 185, 220, 0.12);
    color: var(--icd-cyan-light);
    font-size: 11px;
    font-weight: bold;
}

.beaver-build-card span {
    color: var(--icd-muted);
    font-size: 8px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.beaver-build-card h2 {
    margin: 4px 0 0;
    color: white;
    font-size: 13px;
}

.beaver-build-card p {
    margin: 5px 0 0;
    color: var(--icd-muted);
    font-size: 10px;
    line-height: 1.4;
}

.beaver-build-card > strong {
    align-self: start;
    padding: 4px 6px;
    border-radius: 9px;
    font-size: 8px;
}

.beaver-build-card.complete > strong {
    background: rgba(57, 201, 138, 0.16);
    color: var(--icd-green);
}

.beaver-build-card.current > strong {
    background: rgba(22, 185, 220, 0.15);
    color: var(--icd-cyan-light);
}

.beaver-build-card.planned > strong {
    background: rgba(244, 185, 66, 0.14);
    color: var(--icd-yellow);
}

.beaver-data-plan-panel {
    overflow: hidden;
    border: 1px solid rgba(141, 231, 245, 0.22);
    border-radius: 6px;
    background: rgba(7, 50, 56, 0.88);
}

.beaver-data-plan-header {
    display: flex;
    justify-content: space-between;
    min-height: 36px;
    align-items: center;
    padding: 0 12px;
    border-bottom: 1px solid rgba(141, 231, 245, 0.17);
    background: rgba(5, 35, 39, 0.72);
    color: var(--icd-cyan-light);
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 0.6px;
}

.beaver-tag-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 11px;
}

    .beaver-tag-grid div {
        padding: 10px;
        border-radius: 4px;
        background: rgba(0, 0, 0, 0.15);
    }

    .beaver-tag-grid span,
    .beaver-tag-grid strong {
        display: block;
    }

    .beaver-tag-grid span {
        color: var(--icd-muted);
        font-size: 8px;
        font-weight: bold;
    }

    .beaver-tag-grid strong {
        margin-top: 5px;
        color: white;
        font-size: 11px;
    }

@media (max-width: 850px) {
    .projects-portfolio-summary,
    .projects-portfolio-grid,
    .beaver-build-grid {
        grid-template-columns: 1fr;
    }

    .beaver-hero-panel {
        grid-template-columns: 1fr;
    }

    .beaver-project-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .beaver-tag-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 550px) {
    .projects-portfolio-summary {
        grid-template-columns: 1fr 1fr;
    }

    .beaver-tag-grid {
        grid-template-columns: 1fr;
    }

    .beaver-data-plan-header {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 3px;
        padding: 8px 12px;
    }
}

/* =========================================================
   ICD BEAVER 45 - DREDGE OVERVIEW
   ========================================================= */

.beaver-project-page {
    max-width: 1500px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 auto;
}

.beaver-project-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    min-height: 52px;
}

    .beaver-project-header h1 {
        margin: 8px 0 0;
        color: white;
        font-size: 25px;
    }

.beaver-project-subtitle {
    margin-top: 5px;
    color: var(--icd-muted);
    font-size: 11px;
}

.beaver-project-status {
    padding-bottom: 5px;
    color: var(--icd-green);
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.beaver-status-dot,
.beaver-running-dot {
    display: inline-block;
    border-radius: 50%;
    background: var(--icd-green);
    box-shadow: 0 0 8px var(--icd-green);
}

.beaver-status-dot {
    width: 8px;
    height: 8px;
    margin-right: 5px;
}

.beaver-hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 20px;
    padding: 24px;
    border: 1px solid rgba(141, 231, 245, 0.23);
    border-radius: 7px;
    background: radial-gradient(circle at 88% 22%, rgba(22, 185, 220, 0.16), transparent 27%), linear-gradient(145deg, rgba(12, 84, 75, 0.97), rgba(5, 43, 48, 0.98));
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.beaver-kicker {
    color: #9cebc5;
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 0.8px;
}

.beaver-hero-panel h2 {
    margin: 10px 0 0;
    color: white;
    font-size: 25px;
}

.beaver-hero-panel p {
    max-width: 800px;
    margin: 10px 0 0;
    color: var(--icd-muted);
    font-size: 12px;
    line-height: 1.55;
}

.beaver-hero-device {
    align-self: center;
    padding: 15px;
    border: 1px solid rgba(141, 231, 245, 0.22);
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.17);
}

    .beaver-hero-device span,
    .beaver-hero-device strong,
    .beaver-hero-device small {
        display: block;
    }

    .beaver-hero-device span {
        color: var(--icd-muted);
        font-size: 8px;
        font-weight: bold;
        letter-spacing: 0.5px;
    }

    .beaver-hero-device strong {
        margin-top: 7px;
        color: var(--icd-cyan-light);
        font-size: 15px;
    }

    .beaver-hero-device small {
        margin-top: 5px;
        color: var(--icd-muted);
        font-size: 9px;
    }

/* =========================================================
   OPERATING STATUS STRIP
   ========================================================= */

.beaver-operating-strip {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1.25fr 1.25fr 1fr;
    gap: 1px;
    overflow: hidden;
    border: 1px solid rgba(141, 231, 245, 0.22);
    border-radius: 6px;
    background: rgba(141, 231, 245, 0.13);
}

    .beaver-operating-strip > div {
        min-height: 58px;
        padding: 10px 12px;
        box-sizing: border-box;
        background: rgba(7, 50, 56, 0.95);
    }

    .beaver-operating-strip span,
    .beaver-operating-strip strong,
    .beaver-operating-strip small {
        display: block;
    }

    .beaver-operating-strip span,
    .beaver-operating-strip small {
        color: var(--icd-muted);
        font-size: 8px;
        font-weight: bold;
        letter-spacing: 0.5px;
    }

    .beaver-operating-strip strong {
        margin-top: 6px;
        color: white;
        font-size: 11px;
    }

.beaver-operating-state {
    display: flex;
    align-items: center;
    gap: 9px;
}

.beaver-running-dot {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
}

.beaver-operating-state strong {
    color: var(--icd-green);
}

/* =========================================================
   DREDGE MODEL + DEPTH CONTROLS
   ========================================================= */

.beaver-dredge-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 11px;
}

.beaver-dredge-panel,
.beaver-depth-controls,
.beaver-data-panel {
    overflow: hidden;
    border: 1px solid rgba(141, 231, 245, 0.23);
    border-radius: 6px;
    background: rgba(16, 76, 101, 0.93);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.18);
}

.beaver-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 37px;
    padding: 0 12px;
    border-bottom: 1px solid rgba(141, 231, 245, 0.18);
    background: rgba(6, 31, 45, 0.78);
    color: var(--icd-cyan-light);
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 0.7px;
}

    .beaver-section-header span:last-child {
        color: var(--icd-muted);
        font-size: 8px;
    }

/* Scene */

.beaver-dredge-scene {
    position: relative;
    height: 400px;
    overflow: hidden;
    background: #0a3a4c;
}

.beaver-sky {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 47%;
    background: radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.18), transparent 9%), linear-gradient(180deg, #175a75 0%, #0d4d66 100%);
}

    .beaver-sky::before {
        content: "";
        position: absolute;
        top: 28px;
        left: 10%;
        width: 110px;
        height: 17px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.13);
        box-shadow: 145px 23px 0 -2px rgba(255, 255, 255, 0.1), 265px -3px 0 -1px rgba(255, 255, 255, 0.1);
    }

    .beaver-sky span {
        position: absolute;
        top: 14px;
        left: 18px;
        color: rgba(255, 255, 255, 0.54);
        font-size: 10px;
        font-weight: bold;
        letter-spacing: 1.3px;
    }

.beaver-water {
    position: absolute;
    top: 47%;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    background: repeating-linear-gradient( 0deg, rgba(141, 231, 245, 0.07) 0, rgba(141, 231, 245, 0.07) 1px, transparent 1px, transparent 17px ), linear-gradient(180deg, #0b7891 0%, #075267 48%, #063d50 100%);
}

    .beaver-water::after {
        content: "";
        position: absolute;
        top: 20px;
        right: 0;
        left: 0;
        height: 2px;
        background: rgba(141, 231, 245, 0.24);
        box-shadow: 0 29px 0 rgba(141, 231, 245, 0.11), 0 61px 0 rgba(141, 231, 245, 0.1), 0 91px 0 rgba(141, 231, 245, 0.08);
    }

.beaver-water-line {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--icd-cyan-light);
    box-shadow: 0 0 9px rgba(141, 231, 245, 0.7);
}

.beaver-seabed {
    position: absolute;
    right: 0;
    left: 0;
    height: 45%;
    border-top: 2px solid #b99555;
    background: radial-gradient(circle at 20% 12%, rgba(230, 198, 130, 0.18), transparent 4%), radial-gradient(circle at 42% 35%, rgba(230, 198, 130, 0.13), transparent 5%), radial-gradient(circle at 74% 20%, rgba(230, 198, 130, 0.12), transparent 4%), linear-gradient(180deg, #655338 0%, #403721 100%);
    transition: top 0.35s ease;
}

    .beaver-seabed span {
        position: absolute;
        top: 8px;
        right: 13px;
        color: rgba(255, 236, 185, 0.72);
        font-size: 8px;
        font-weight: bold;
        letter-spacing: 0.7px;
    }

/* Dredge body */

.beaver-dredge-model {
    position: absolute;
    left: 7%;
    bottom: 39%;
    width: 370px;
    height: 175px;
}

.beaver-hull {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 230px;
    height: 45px;
    border: 2px solid #e9f6f9;
    border-radius: 10px 12px 30px 15px;
    background: linear-gradient(180deg, #ef5149 0%, #b22f31 58%, #6f232b 59%, #6f232b 100%);
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.28);
}

    .beaver-hull::before {
        content: "";
        position: absolute;
        top: -14px;
        right: 18px;
        left: 8px;
        height: 16px;
        border: 2px solid #dceff3;
        border-bottom: 0;
        border-radius: 6px 6px 0 0;
        background: #cbdfe4;
    }

    .beaver-hull span {
        position: absolute;
        bottom: 10px;
        left: 23px;
        color: white;
        font-size: 10px;
        font-weight: bold;
        letter-spacing: 0.7px;
    }

.beaver-cabin {
    position: absolute;
    bottom: 43px;
    left: 75px;
    width: 65px;
    height: 59px;
    border: 3px solid #e7f7fa;
    border-radius: 4px 4px 2px 2px;
    background: linear-gradient(90deg, #badbe2 0%, #83b7c5 20%, #e9f6f9 21%, #e9f6f9 27%, #4e8b9c 28%, #4e8b9c 100%);
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.22);
}

    .beaver-cabin::before {
        content: "";
        position: absolute;
        top: -9px;
        left: -9px;
        width: 76px;
        height: 9px;
        border-radius: 3px 3px 0 0;
        background: #db4c45;
    }

    .beaver-cabin span {
        position: absolute;
        bottom: 7px;
        left: 12px;
        color: #062b37;
        font-size: 9px;
        font-weight: bold;
    }

.beaver-a-frame {
    position: absolute;
    right: 65px;
    bottom: 38px;
    width: 92px;
    height: 120px;
    border-right: 7px solid #d7443f;
    border-left: 7px solid #d7443f;
    transform: skewX(-19deg);
}

    .beaver-a-frame::before {
        content: "";
        position: absolute;
        top: 0;
        left: -5px;
        width: 96px;
        height: 7px;
        background: #d7443f;
    }

.beaver-ladder-pivot {
    position: absolute;
    right: 58px;
    bottom: 44px;
    z-index: 4;
    width: 23px;
    height: 23px;
    border: 4px solid #f7e3b3;
    border-radius: 50%;
    background: #bd3d37;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.45);
}

.beaver-ladder {
    position: absolute;
    right: -29px;
    bottom: 49px;
    z-index: 3;
    width: 300px;
    height: 48px;
    transform-origin: 0 50%;
    transition: transform 0.35s ease;
}

.beaver-ladder-pipe {
    position: absolute;
    top: 17px;
    left: 0;
    width: 260px;
    height: 18px;
    border: 2px solid #dceff3;
    border-radius: 10px;
    background: linear-gradient(180deg, #bdcdd1 0%, #68848e 52%, #46656f 100%);
    box-shadow: 0 4px 7px rgba(0, 0, 0, 0.32);
}

    .beaver-ladder-pipe::before,
    .beaver-ladder-pipe::after {
        content: "";
        position: absolute;
        top: -13px;
        width: 2px;
        height: 43px;
        background: rgba(230, 242, 244, 0.64);
    }

    .beaver-ladder-pipe::before {
        left: 58px;
    }

    .beaver-ladder-pipe::after {
        left: 157px;
    }

.beaver-cutter-head {
    position: absolute;
    top: 4px;
    right: 0;
    display: flex;
    width: 48px;
    height: 48px;
    justify-content: center;
    align-items: center;
    border: 5px dashed #ed6a56;
    border-radius: 50%;
    background: #536d74;
    color: #ffd26d;
    font-size: 18px;
    box-shadow: 0 0 0 3px rgba(5, 43, 61, 0.72);
}

.beaver-depth-line {
    position: absolute;
    right: 68px;
    width: 1px;
    height: 122px;
    border-left: 2px dashed rgba(255, 235, 177, 0.92);
    transition: bottom 0.35s ease;
}

    .beaver-depth-line::before,
    .beaver-depth-line::after {
        content: "";
        position: absolute;
        left: -5px;
        width: 9px;
        height: 2px;
        background: #ffe2a1;
    }

    .beaver-depth-line::before {
        top: 0;
    }

    .beaver-depth-line::after {
        bottom: 0;
    }

    .beaver-depth-line span {
        position: absolute;
        top: 40%;
        left: 8px;
        padding: 3px 5px;
        border-radius: 3px;
        background: rgba(5, 35, 39, 0.9);
        color: #ffe2a1;
        font-size: 9px;
        font-weight: bold;
        white-space: nowrap;
    }

.beaver-cutter-callout {
    position: absolute;
    right: 14px;
    bottom: 16px;
    min-width: 125px;
    padding: 8px;
    border: 1px solid rgba(244, 185, 66, 0.6);
    border-radius: 4px;
    background: rgba(5, 35, 39, 0.88);
}

    .beaver-cutter-callout span,
    .beaver-cutter-callout strong,
    .beaver-cutter-callout small {
        display: block;
    }

    .beaver-cutter-callout span {
        color: var(--icd-muted);
        font-size: 8px;
        font-weight: bold;
    }

    .beaver-cutter-callout strong {
        margin-top: 4px;
        color: #ffe2a1;
        font-size: 18px;
    }

    .beaver-cutter-callout small {
        margin-top: 3px;
        color: var(--icd-muted);
        font-size: 8px;
    }

/* Depth result cards */

.beaver-depth-result-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(141, 231, 245, 0.13);
}

.beaver-depth-result {
    padding: 10px;
    background: rgba(7, 50, 56, 0.95);
}

    .beaver-depth-result span,
    .beaver-depth-result strong,
    .beaver-depth-result small {
        display: block;
    }

    .beaver-depth-result span {
        color: var(--icd-muted);
        font-size: 8px;
        font-weight: bold;
    }

    .beaver-depth-result strong {
        margin-top: 4px;
        color: white;
        font-size: 17px;
    }

        .beaver-depth-result strong small {
            display: inline;
            color: var(--icd-muted);
            font-size: 9px;
            font-weight: normal;
        }

    .beaver-depth-result > small {
        margin-top: 5px;
        overflow: hidden;
        color: var(--icd-cyan-light);
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 8px;
    }

    .beaver-depth-result.primary {
        background: rgba(15, 89, 82, 0.98);
    }

        .beaver-depth-result.primary strong {
            color: #ffe2a1;
        }

/* =========================================================
   DEPTH CONTROLS
   ========================================================= */

.beaver-depth-controls {
    display: flex;
    flex-direction: column;
}

.beaver-calculation-formula {
    margin: 12px;
    padding: 10px;
    border-left: 3px solid var(--icd-cyan);
    background: rgba(22, 185, 220, 0.1);
}

    .beaver-calculation-formula span,
    .beaver-calculation-formula strong {
        display: block;
    }

    .beaver-calculation-formula span {
        color: var(--icd-cyan-light);
        font-size: 9px;
        font-weight: bold;
    }

    .beaver-calculation-formula strong {
        margin-top: 5px;
        color: white;
        font-size: 10px;
        line-height: 1.45;
    }

.beaver-slider-group {
    padding: 11px 13px;
    border-top: 1px solid rgba(141, 231, 245, 0.13);
}

    .beaver-slider-group label {
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: var(--icd-muted);
        font-size: 9px;
        font-weight: bold;
    }

        .beaver-slider-group label strong {
            color: white;
            font-size: 12px;
        }

    .beaver-slider-group input[type="range"] {
        width: 100%;
        margin: 10px 0 5px;
        accent-color: var(--icd-cyan);
        cursor: pointer;
    }

    .beaver-slider-group small {
        color: var(--icd-cyan-light);
        font-size: 8px;
    }

.beaver-calculation-output {
    margin: auto 12px 12px;
    padding: 12px;
    border: 1px solid rgba(57, 201, 138, 0.36);
    border-radius: 5px;
    background: rgba(57, 201, 138, 0.09);
}

    .beaver-calculation-output span,
    .beaver-calculation-output strong,
    .beaver-calculation-output small {
        display: block;
    }

    .beaver-calculation-output span {
        color: #9cebc5;
        font-size: 8px;
        font-weight: bold;
    }

    .beaver-calculation-output strong {
        margin-top: 7px;
        color: var(--icd-green);
        font-size: 25px;
    }

    .beaver-calculation-output small {
        margin-top: 6px;
        color: var(--icd-muted);
        font-size: 9px;
        line-height: 1.4;
    }

    .beaver-calculation-output code {
        color: var(--icd-cyan-light);
        font-size: 8px;
    }

/* =========================================================
   DATA GROUPS / DATA CARDS
   ========================================================= */

.beaver-data-groups {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
}

.beaver-data-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
    padding: 10px;
}

.beaver-data-card {
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(141, 231, 245, 0.14);
    border-radius: 4px;
    background: linear-gradient(145deg, rgba(20, 86, 105, 0.75), rgba(5, 47, 65, 0.88));
}

    .beaver-data-card span,
    .beaver-data-card strong,
    .beaver-data-card small {
        display: block;
    }

    .beaver-data-card span {
        overflow: hidden;
        color: var(--icd-muted);
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 8px;
        font-weight: bold;
        letter-spacing: 0.3px;
    }

    .beaver-data-card strong {
        margin-top: 6px;
        overflow: hidden;
        color: white;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 20px;
    }

        .beaver-data-card strong small {
            display: inline;
            color: var(--icd-muted);
            font-size: 9px;
            font-weight: normal;
        }

    .beaver-data-card > small {
        overflow: hidden;
        margin-top: 6px;
        color: var(--icd-cyan-light);
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 8px;
    }

.beaver-vibration-summary .beaver-data-card {
    border-color: rgba(244, 185, 66, 0.26);
    background: linear-gradient(145deg, rgba(91, 76, 35, 0.58), rgba(52, 49, 35, 0.78));
}

    .beaver-vibration-summary .beaver-data-card strong {
        color: #ffe2a1;
    }

/* =========================================================
   BEAVER RESPONSIVE
   ========================================================= */

@media (max-width: 1150px) {
    .beaver-dredge-layout {
        grid-template-columns: 1fr;
    }

    .beaver-depth-controls {
        min-height: 350px;
    }

    .beaver-dredge-model {
        left: 11%;
    }
}

@media (max-width: 900px) {
    .beaver-project-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .beaver-hero-panel {
        grid-template-columns: 1fr;
    }

    .beaver-operating-strip {
        grid-template-columns: 1fr 1fr;
    }

    .beaver-data-groups {
        grid-template-columns: 1fr;
    }

    .beaver-dredge-model {
        left: 6%;
    }
}

@media (max-width: 620px) {
    .beaver-project-page {
        gap: 9px;
    }

    .beaver-hero-panel {
        padding: 16px;
    }

        .beaver-hero-panel h2 {
            font-size: 21px;
        }

    .beaver-operating-strip {
        grid-template-columns: 1fr;
    }

    .beaver-dredge-scene {
        height: 330px;
    }

    .beaver-dredge-model {
        left: -45px;
        bottom: 40%;
        transform: scale(0.78);
        transform-origin: left bottom;
    }

    .beaver-cutter-callout {
        right: 8px;
        bottom: 8px;
        min-width: 105px;
    }

    .beaver-depth-line {
        right: 46px;
    }

    .beaver-depth-result-row {
        grid-template-columns: 1fr 1fr;
    }

    .beaver-data-card-grid {
        grid-template-columns: 1fr 1fr;
    }

    .beaver-data-card strong {
        font-size: 17px;
    }
}


/* =========================================================
   SECURITY ADMINISTRATION PAGE
   ========================================================= */

.security-page {
    max-width: 1500px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 auto;
}

.security-page-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    min-height: 54px;
}

    .security-page-header h1 {
        margin: 8px 0 0;
        color: white;
        font-size: 25px;
    }

.security-page-subtitle {
    margin-top: 5px;
    color: var(--icd-muted);
    font-size: 11px;
}

.security-admin-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border: 1px solid rgba(244, 185, 66, 0.55);
    border-radius: 12px;
    background: rgba(244, 185, 66, 0.12);
    color: var(--icd-yellow);
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 0.7px;
}

.security-admin-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--icd-yellow);
    box-shadow: 0 0 8px var(--icd-yellow);
}

/* =========================================================
   SHARED PANELS
   ========================================================= */

.security-panel {
    overflow: hidden;
    border: 1px solid rgba(141, 231, 245, 0.24);
    border-radius: 6px;
    background: rgba(16, 76, 101, 0.93);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.2);
}

.security-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 37px;
    padding: 0 12px;
    border-bottom: 1px solid rgba(141, 231, 245, 0.18);
    background: rgba(6, 31, 45, 0.78);
    color: var(--icd-cyan-light);
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 0.7px;
}

    .security-panel-header span:last-child {
        color: var(--icd-muted);
        font-size: 8px;
    }

/* =========================================================
   TOP SECURITY SUMMARY
   ========================================================= */

.security-summary-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: 11px;
}

/* =========================================================
   SIGNED-IN USER
   ========================================================= */

.security-user-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border-bottom: 1px solid rgba(141, 231, 245, 0.14);
}

.security-user-avatar {
    display: flex;
    width: 49px;
    height: 49px;
    flex: 0 0 49px;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--icd-cyan);
    border-radius: 50%;
    background: radial-gradient(circle at 34% 27%, #3999b6, #0a4057 68%);
    color: white;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 0 12px rgba(22, 185, 220, 0.28);
}

.security-user-main {
    min-width: 0;
}

    .security-user-main strong,
    .security-user-main span,
    .security-user-main small {
        display: block;
    }

    .security-user-main strong {
        overflow: hidden;
        color: white;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 14px;
    }

    .security-user-main span {
        overflow: hidden;
        margin-top: 4px;
        color: var(--icd-cyan-light);
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 10px;
    }

    .security-user-main small {
        margin-top: 4px;
        color: var(--icd-muted);
        font-size: 9px;
    }

.security-detail-list {
    padding: 7px 14px 12px;
}

    .security-detail-list div {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

        .security-detail-list div:last-child {
            border-bottom: 0;
        }

    .security-detail-list span {
        color: var(--icd-muted);
        font-size: 8px;
        font-weight: bold;
    }

    .security-detail-list strong {
        max-width: 62%;
        overflow: hidden;
        color: white;
        text-align: right;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 10px;
    }

.security-mono {
    font-family: Consolas, "Courier New", monospace;
    font-size: 9px !important;
}

/* =========================================================
   ROLE CARDS / POLICY CHECKS
   ========================================================= */

.security-role-content {
    min-height: 102px;
    padding: 10px;
}

.security-role-card {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px;
    border-radius: 4px;
}

    .security-role-card.admin {
        border: 1px solid rgba(244, 185, 66, 0.4);
        background: rgba(244, 185, 66, 0.11);
    }

    .security-role-card.internal {
        border: 1px solid rgba(57, 201, 138, 0.38);
        background: rgba(57, 201, 138, 0.1);
    }

    .security-role-card.client {
        border: 1px solid rgba(22, 185, 220, 0.38);
        background: rgba(22, 185, 220, 0.1);
    }

    .security-role-card.unknown {
        border: 1px solid rgba(169, 197, 207, 0.28);
        background: rgba(169, 197, 207, 0.08);
    }

.security-role-icon {
    display: flex;
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: #172b35;
    font-size: 13px;
    font-weight: bold;
}

.security-role-card.admin .security-role-icon {
    background: var(--icd-yellow);
}

.security-role-card.internal .security-role-icon {
    background: var(--icd-green);
}

.security-role-card.client .security-role-icon {
    background: var(--icd-cyan);
}

.security-role-card.unknown .security-role-icon {
    background: var(--icd-muted);
}

.security-role-card strong,
.security-role-card small {
    display: block;
}

.security-role-card strong {
    color: white;
    font-size: 11px;
}

.security-role-card small {
    margin-top: 3px;
    color: var(--icd-muted);
    font-size: 9px;
    line-height: 1.35;
}

.security-no-roles {
    display: flex;
    min-height: 85px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--icd-red);
    text-align: center;
    font-size: 10px;
}

    .security-no-roles small {
        max-width: 235px;
        margin-top: 7px;
        color: var(--icd-muted);
        font-size: 9px;
        line-height: 1.4;
    }

.security-policy-checks {
    padding: 0 10px 10px;
}

.security-policy-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 31px;
    padding: 0 8px;
    border-top: 1px solid rgba(141, 231, 245, 0.11);
    background: rgba(0, 0, 0, 0.12);
}

    .security-policy-row span {
        color: var(--icd-muted);
        font-size: 8px;
        font-weight: bold;
    }

    .security-policy-row strong {
        font-size: 9px;
        letter-spacing: 0.3px;
    }

/* =========================================================
   STATUS / ROADMAP
   ========================================================= */

.security-next-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
}

.security-progress-ring {
    display: flex;
    width: 61px;
    height: 61px;
    flex: 0 0 61px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 5px solid var(--icd-green);
    border-top-color: rgba(57, 201, 138, 0.18);
    border-right-color: rgba(57, 201, 138, 0.18);
    border-radius: 50%;
    color: var(--icd-green);
}

    .security-progress-ring strong {
        font-size: 20px;
        line-height: 1;
    }

    .security-progress-ring span {
        margin-top: 3px;
        font-size: 7px;
        font-weight: bold;
    }

.security-next-content > div:last-child strong {
    display: block;
    color: white;
    font-size: 11px;
}

.security-next-content > div:last-child p {
    margin: 5px 0 0;
    color: var(--icd-muted);
    font-size: 9px;
    line-height: 1.42;
}

.security-roadmap {
    padding: 0 13px 13px;
}

    .security-roadmap div {
        display: flex;
        align-items: center;
        gap: 7px;
        min-height: 27px;
        color: var(--icd-muted);
        font-size: 9px;
    }

    .security-roadmap span {
        display: flex;
        width: 17px;
        height: 17px;
        justify-content: center;
        align-items: center;
        border: 1px solid rgba(169, 197, 207, 0.4);
        border-radius: 50%;
        color: var(--icd-muted);
        font-size: 8px;
    }

    .security-roadmap strong {
        font-size: 9px;
    }

    .security-roadmap .complete {
        color: var(--icd-green);
    }

        .security-roadmap .complete span {
            border-color: var(--icd-green);
            background: var(--icd-green);
            color: #062b37;
        }

    .security-roadmap .current {
        color: var(--icd-cyan-light);
    }

        .security-roadmap .current span {
            border-color: var(--icd-cyan);
            background: rgba(22, 185, 220, 0.16);
            color: var(--icd-cyan-light);
        }

/* =========================================================
   CLAIMS TABLE
   ========================================================= */

.security-claims-note {
    padding: 11px 13px;
    border-bottom: 1px solid rgba(141, 231, 245, 0.15);
    color: var(--icd-muted);
    font-size: 10px;
    line-height: 1.45;
}

    .security-claims-note strong {
        color: white;
    }

    .security-claims-note code {
        padding: 1px 3px;
        border-radius: 2px;
        background: rgba(0, 0, 0, 0.24);
        color: var(--icd-cyan-light);
        font-size: 9px;
    }

.security-claims-table-wrap {
    max-height: 290px;
    overflow: auto;
}

.security-claims-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 10px;
}

    .security-claims-table th {
        position: sticky;
        top: 0;
        z-index: 2;
        height: 31px;
        padding: 0 11px;
        border-bottom: 1px solid rgba(141, 231, 245, 0.22);
        background: #092f42;
        color: var(--icd-cyan-light);
        text-align: left;
        font-size: 8px;
        letter-spacing: 0.6px;
    }

        .security-claims-table th:first-child {
            width: 43%;
        }

    .security-claims-table td {
        height: 31px;
        padding: 0 11px;
        overflow: hidden;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        color: white;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

        .security-claims-table td:first-child {
            color: var(--icd-muted);
            font-family: Consolas, "Courier New", monospace;
            font-size: 9px;
        }

.security-role-claim-row td {
    background: rgba(244, 185, 66, 0.11);
    color: #ffe2a1 !important;
    font-weight: bold;
}

/* =========================================================
   SIGN-OUT PANEL
   ========================================================= */

.security-signout-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px;
    border-color: rgba(224, 82, 82, 0.3);
    background: rgba(91, 32, 39, 0.28);
}

    .security-signout-panel div span,
    .security-signout-panel div strong {
        display: block;
    }

    .security-signout-panel div span {
        color: #ffaaaa;
        font-size: 8px;
        font-weight: bold;
        letter-spacing: 0.5px;
    }

    .security-signout-panel div strong {
        margin-top: 4px;
        color: white;
        font-size: 11px;
    }

.security-signout-button {
    padding: 8px 11px;
    border: 1px solid var(--icd-red);
    border-radius: 4px;
    color: #ffaaaa;
    font-size: 9px;
    font-weight: bold;
    text-decoration: none;
}

    .security-signout-button:hover {
        background: var(--icd-red);
        color: white;
    }

/* =========================================================
   SHARED SECURITY STATUS COLORS
   ========================================================= */

.security-good {
    color: var(--icd-green) !important;
}

.security-denied {
    color: #ffaaaa !important;
}

/* =========================================================
   RESPONSIVE SECURITY PAGE
   ========================================================= */

@media (max-width: 1100px) {
    .security-summary-grid {
        grid-template-columns: 1fr 1fr;
    }

    .security-next-panel {
        grid-column: span 2;
    }
}

@media (max-width: 760px) {
    .security-page-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .security-summary-grid {
        grid-template-columns: 1fr;
    }

    .security-next-panel {
        grid-column: span 1;
    }

    .security-signout-panel {
        align-items: flex-start;
        flex-direction: column;
        gap: 11px;
    }
}

@media (max-width: 500px) {
    .security-user-content {
        align-items: flex-start;
    }

    .security-detail-list div {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .security-detail-list strong {
        max-width: 100%;
        text-align: left;
    }

    .security-claims-table th:first-child {
        width: 55%;
    }
}

/* =========================================================
   PROJECT ACCESS ADMINISTRATION
   ========================================================= */

.access-admin-grid {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 11px;
    min-height: 450px;
}

.access-user-panel,
.access-assignment-panel {
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.access-user-search {
    padding: 10px;
    border-bottom: 1px solid rgba(141, 231, 245, 0.14);
}

    .access-user-search input {
        width: 100%;
        height: 30px;
        padding: 0 9px;
        box-sizing: border-box;
        border: 1px solid rgba(141, 231, 245, 0.35);
        border-radius: 4px;
        outline: none;
        background: #0b4056;
        color: white;
        font-size: 10px;
    }

        .access-user-search input::placeholder {
            color: var(--icd-muted);
        }

        .access-user-search input:focus {
            border-color: var(--icd-cyan);
            background: #125b75;
        }

.access-user-list {
    min-height: 0;
    flex: 1;
    overflow-y: auto;
}

.access-user-row {
    width: 100%;
    min-height: 61px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 11px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    color: white;
    text-align: left;
    cursor: pointer;
}

    .access-user-row:hover {
        background: rgba(22, 185, 220, 0.12);
    }

    .access-user-row.selected {
        background: rgba(22, 185, 220, 0.18);
        box-shadow: inset 3px 0 0 var(--icd-cyan);
    }

.access-user-avatar {
    display: flex;
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--icd-cyan);
    border-radius: 50%;
    background: rgba(22, 185, 220, 0.14);
    color: var(--icd-cyan-light);
    font-size: 10px;
    font-weight: bold;
}

    .access-user-avatar.large {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        color: white;
        font-size: 15px;
    }

.access-user-details {
    min-width: 0;
    flex: 1;
}

    .access-user-details strong,
    .access-user-details small {
        display: block;
    }

    .access-user-details strong {
        overflow: hidden;
        color: white;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 11px;
    }

    .access-user-details small {
        overflow: hidden;
        margin-top: 4px;
        color: var(--icd-muted);
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 8px;
    }

.access-user-type {
    padding: 3px 5px;
    border-radius: 8px;
    font-size: 7px;
    font-weight: bold;
    white-space: nowrap;
}

    .access-user-type.internal {
        background: rgba(57, 201, 138, 0.16);
        color: var(--icd-green);
    }

    .access-user-type.client {
        background: rgba(22, 185, 220, 0.14);
        color: var(--icd-cyan-light);
    }

/* =========================================================
   SELECTED USER / ASSIGNMENT TABLE
   ========================================================= */

.access-selected-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid rgba(141, 231, 245, 0.14);
    background: rgba(0, 0, 0, 0.1);
}

    .access-selected-user > div:last-child {
        min-width: 0;
    }

    .access-selected-user strong,
    .access-selected-user span,
    .access-selected-user small {
        display: block;
    }

    .access-selected-user strong {
        overflow: hidden;
        color: white;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 12px;
    }

    .access-selected-user span {
        overflow: hidden;
        margin-top: 3px;
        color: var(--icd-cyan-light);
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 9px;
    }

    .access-selected-user small {
        margin-top: 4px;
        color: var(--icd-muted);
        font-size: 8px;
    }

.access-assignment-table-wrap {
    min-height: 0;
    flex: 1;
    overflow: auto;
}

.access-assignment-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    font-size: 10px;
}

    .access-assignment-table th {
        position: sticky;
        top: 0;
        z-index: 2;
        height: 31px;
        padding: 0 9px;
        border-bottom: 1px solid rgba(141, 231, 245, 0.22);
        background: #092f42;
        color: var(--icd-cyan-light);
        text-align: left;
        font-size: 8px;
        font-weight: bold;
        letter-spacing: 0.5px;
        white-space: nowrap;
    }

    .access-assignment-table td {
        height: 40px;
        padding: 0 9px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        color: white;
        white-space: nowrap;
    }

        .access-assignment-table td:first-child {
            min-width: 170px;
        }

        .access-assignment-table td strong,
        .access-assignment-table td small {
            display: block;
        }

        .access-assignment-table td strong {
            overflow: hidden;
            color: white;
            text-overflow: ellipsis;
            white-space: nowrap;
            font-size: 10px;
        }

        .access-assignment-table td small {
            overflow: hidden;
            margin-top: 3px;
            color: var(--icd-muted);
            text-overflow: ellipsis;
            white-space: nowrap;
            font-size: 8px;
        }

    .access-assignment-table tbody tr:hover td {
        background: rgba(22, 185, 220, 0.1);
    }

.access-row-revoked td {
    color: var(--icd-muted);
    background: rgba(0, 0, 0, 0.15);
    opacity: 0.65;
}

.access-no-rows {
    height: 130px !important;
    color: var(--icd-muted) !important;
    text-align: center;
}

.access-active-badge,
.access-revoked-badge {
    display: inline-block;
    padding: 3px 5px;
    border-radius: 8px;
    font-size: 7px;
    font-weight: bold;
}

.access-active-badge {
    background: rgba(57, 201, 138, 0.16);
    color: var(--icd-green);
}

.access-revoked-badge {
    background: rgba(224, 82, 82, 0.16);
    color: #ffaaaa;
}

.access-edit-button {
    height: 23px;
    padding: 0 7px;
    border: 1px solid rgba(141, 231, 245, 0.45);
    border-radius: 3px;
    background: rgba(6, 31, 45, 0.6);
    color: var(--icd-cyan-light);
    cursor: pointer;
    font-size: 8px;
    font-weight: bold;
}

    .access-edit-button:hover {
        border-color: var(--icd-cyan);
        background: var(--icd-blue);
        color: white;
    }

/* =========================================================
   PROJECT ACCESS EDITOR
   ========================================================= */

.access-editor-content {
    padding: 14px;
}

.access-editor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

    .access-editor-grid label,
    .access-notes-field {
        display: flex;
        flex-direction: column;
        gap: 5px;
        color: var(--icd-cyan-light);
        font-size: 8px;
        font-weight: bold;
        letter-spacing: 0.5px;
    }

        .access-editor-grid select,
        .access-notes-field textarea {
            box-sizing: border-box;
            border: 1px solid rgba(141, 231, 245, 0.35);
            border-radius: 4px;
            outline: none;
            background: #0b4056;
            color: white;
            font-size: 10px;
        }

    .access-editor-grid select {
        height: 31px;
        padding: 0 8px;
    }

        .access-editor-grid select:focus,
        .access-notes-field textarea:focus {
            border-color: var(--icd-cyan);
            background: #125b75;
        }

        .access-editor-grid select option {
            background: #0b4056;
            color: white;
        }

.access-permission-checks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-top: 13px;
}

    .access-permission-checks label {
        display: flex;
        min-height: 50px;
        align-items: flex-start;
        gap: 8px;
        padding: 9px;
        border: 1px solid rgba(141, 231, 245, 0.15);
        border-radius: 4px;
        background: rgba(0, 0, 0, 0.13);
        cursor: pointer;
    }

        .access-permission-checks label:hover {
            border-color: rgba(22, 185, 220, 0.45);
            background: rgba(22, 185, 220, 0.08);
        }

    .access-permission-checks input {
        margin: 1px 0 0;
        accent-color: var(--icd-cyan);
    }

    .access-permission-checks span {
        min-width: 0;
    }

    .access-permission-checks strong,
    .access-permission-checks small {
        display: block;
    }

    .access-permission-checks strong {
        color: white;
        font-size: 9px;
    }

    .access-permission-checks small {
        margin-top: 4px;
        color: var(--icd-muted);
        font-size: 8px;
        line-height: 1.35;
    }

.access-notes-field {
    margin-top: 13px;
}

    .access-notes-field textarea {
        min-height: 68px;
        padding: 8px;
        resize: vertical;
        font-family: Arial, Helvetica, sans-serif;
        line-height: 1.4;
    }

.access-editor-message {
    margin-top: 11px;
    padding: 9px;
    border-left: 3px solid;
    font-size: 10px;
}

    .access-editor-message.success {
        border-left-color: var(--icd-green);
        background: rgba(57, 201, 138, 0.1);
        color: var(--icd-green);
    }

    .access-editor-message.error {
        border-left-color: var(--icd-red);
        background: rgba(224, 82, 82, 0.1);
        color: #ffaaaa;
    }

.access-editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
    margin-top: 14px;
}

    .access-editor-actions button {
        height: 29px;
        padding: 0 11px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 9px;
        font-weight: bold;
    }

.access-save-button {
    border: 1px solid var(--icd-green);
    background: rgba(57, 201, 138, 0.12);
    color: var(--icd-green);
}

    .access-save-button:hover {
        background: var(--icd-green);
        color: #062b37;
    }

.access-cancel-button {
    border: 1px solid rgba(141, 231, 245, 0.4);
    background: transparent;
    color: var(--icd-cyan-light);
}

    .access-cancel-button:hover {
        background: var(--icd-blue);
        color: white;
    }

.access-revoke-button {
    margin-right: auto;
    border: 1px solid var(--icd-red);
    background: rgba(224, 82, 82, 0.11);
    color: #ffaaaa;
}

    .access-revoke-button:hover {
        background: var(--icd-red);
        color: white;
    }

/* =========================================================
   RESPONSIVE PROJECT ACCESS ADMIN
   ========================================================= */

@media (max-width: 1000px) {
    .access-admin-grid {
        grid-template-columns: 280px minmax(0, 1fr);
    }
}

@media (max-width: 780px) {
    .access-admin-grid {
        grid-template-columns: 1fr;
    }

    .access-user-panel {
        max-height: 350px;
    }

    .access-assignment-panel {
        min-height: 320px;
    }

    .access-permission-checks {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .access-editor-grid {
        grid-template-columns: 1fr;
    }

    .access-editor-actions {
        flex-wrap: wrap;
    }

    .access-revoke-button {
        width: 100%;
        margin-right: 0;
    }

    .access-assignment-table th:nth-child(3),
    .access-assignment-table td:nth-child(3),
    .access-assignment-table th:nth-child(4),
    .access-assignment-table td:nth-child(4) {
        display: none;
    }
}

/* =========================================================
   BEAVER 45 OPERATIONS / HANDOVER PAGE
   ========================================================= */

.beaver-operations-page {
    max-width: 1500px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 auto;
}

.beaver-operations-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    min-height: 52px;
}

    .beaver-operations-header h1 {
        margin: 8px 0 0;
        color: white;
        font-size: 25px;
    }

.beaver-operations-subtitle {
    margin-top: 5px;
    color: var(--icd-muted);
    font-size: 11px;
}

.beaver-operations-status {
    padding-bottom: 5px;
    color: var(--icd-green);
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 0.6px;
}

/* =========================================================
   OPERATIONS SUMMARY
   ========================================================= */

.beaver-operations-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    overflow: hidden;
    border: 1px solid rgba(141, 231, 245, 0.22);
    border-radius: 6px;
    background: rgba(141, 231, 245, 0.13);
}

    .beaver-operations-summary div {
        min-height: 59px;
        padding: 10px 12px;
        box-sizing: border-box;
        background: rgba(7, 50, 56, 0.95);
    }

    .beaver-operations-summary span,
    .beaver-operations-summary strong {
        display: block;
    }

    .beaver-operations-summary span {
        color: var(--icd-muted);
        font-size: 8px;
        font-weight: bold;
        letter-spacing: 0.5px;
    }

    .beaver-operations-summary strong {
        margin-top: 6px;
        overflow: hidden;
        color: white;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 12px;
    }

/* =========================================================
   NOTE ENTRY FORM
   ========================================================= */

.beaver-note-editor-content {
    padding: 14px;
}

.beaver-note-editor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

    .beaver-note-editor-grid label,
    .beaver-note-title-field,
    .beaver-note-body-field {
        display: flex;
        flex-direction: column;
        gap: 5px;
        color: var(--icd-cyan-light);
        font-size: 8px;
        font-weight: bold;
        letter-spacing: 0.5px;
    }

        .beaver-note-editor-grid select,
        .beaver-note-editor-grid input,
        .beaver-note-title-field input,
        .beaver-note-body-field textarea {
            box-sizing: border-box;
            border: 1px solid rgba(141, 231, 245, 0.35);
            border-radius: 4px;
            outline: none;
            background: #0b4056;
            color: white;
            font-size: 10px;
        }

        .beaver-note-editor-grid select,
        .beaver-note-editor-grid input,
        .beaver-note-title-field input {
            height: 31px;
            padding: 0 8px;
        }

            .beaver-note-editor-grid select option {
                background: #0b4056;
                color: white;
            }

            .beaver-note-editor-grid select:focus,
            .beaver-note-editor-grid input:focus,
            .beaver-note-title-field input:focus,
            .beaver-note-body-field textarea:focus {
                border-color: var(--icd-cyan);
                background: #125b75;
            }

.beaver-note-title-field {
    margin-top: 12px;
}

.beaver-note-body-field {
    margin-top: 12px;
}

    .beaver-note-body-field textarea {
        min-height: 105px;
        padding: 9px;
        resize: vertical;
        font-family: Arial, Helvetica, sans-serif;
        line-height: 1.45;
    }

.beaver-note-pin-check {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    color: var(--icd-yellow);
    font-size: 9px;
    font-weight: bold;
    cursor: pointer;
}

    .beaver-note-pin-check input {
        accent-color: var(--icd-yellow);
    }

.beaver-note-editor-message {
    margin-top: 12px;
    padding: 9px;
    border-left: 3px solid;
    font-size: 10px;
}

    .beaver-note-editor-message.success {
        border-left-color: var(--icd-green);
        background: rgba(57, 201, 138, 0.1);
        color: var(--icd-green);
    }

    .beaver-note-editor-message.error {
        border-left-color: var(--icd-red);
        background: rgba(224, 82, 82, 0.1);
        color: #ffaaaa;
    }

.beaver-note-editor-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
}

.beaver-note-save-button {
    height: 30px;
    padding: 0 12px;
    border: 1px solid var(--icd-green);
    border-radius: 4px;
    background: rgba(57, 201, 138, 0.12);
    color: var(--icd-green);
    cursor: pointer;
    font-size: 9px;
    font-weight: bold;
}

    .beaver-note-save-button:hover {
        background: var(--icd-green);
        color: #062b37;
    }

/* =========================================================
   OPERATIONS LOG
   ========================================================= */

.beaver-no-notes {
    display: flex;
    min-height: 180px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: var(--icd-muted);
    text-align: center;
}

    .beaver-no-notes strong {
        color: var(--icd-cyan-light);
        font-size: 12px;
    }

    .beaver-no-notes span {
        max-width: 430px;
        margin-top: 8px;
        font-size: 10px;
        line-height: 1.45;
    }

.beaver-operations-note-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
}

.beaver-operations-note {
    min-width: 0;
    padding: 13px;
    border: 1px solid rgba(141, 231, 245, 0.18);
    border-radius: 5px;
    background: linear-gradient(145deg, rgba(13, 75, 91, 0.88), rgba(5, 45, 59, 0.94));
}

    .beaver-operations-note.pinned {
        border-color: rgba(244, 185, 66, 0.62);
        background: linear-gradient(145deg, rgba(97, 78, 32, 0.4), rgba(33, 47, 44, 0.94));
        box-shadow: inset 3px 0 0 var(--icd-yellow);
    }

.beaver-note-topline {
    display: flex;
    align-items: center;
    gap: 7px;
}

.beaver-note-type {
    padding: 4px 6px;
    border-radius: 3px;
    font-size: 8px;
    font-weight: bold;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

    .beaver-note-type.handover {
        background: rgba(22, 185, 220, 0.16);
        color: var(--icd-cyan-light);
    }

    .beaver-note-type.operations {
        background: rgba(57, 201, 138, 0.16);
        color: var(--icd-green);
    }

    .beaver-note-type.maintenance {
        background: rgba(244, 185, 66, 0.18);
        color: var(--icd-yellow);
    }

    .beaver-note-type.commissioning {
        background: rgba(141, 140, 255, 0.18);
        color: #bab8ff;
    }

    .beaver-note-type.telemetry {
        background: rgba(22, 185, 220, 0.16);
        color: #93ebff;
    }

    .beaver-note-type.safety {
        background: rgba(224, 82, 82, 0.2);
        color: #ffaaaa;
    }

    .beaver-note-type.general {
        background: rgba(169, 197, 207, 0.16);
        color: var(--icd-muted);
    }

.beaver-note-time {
    margin-left: auto;
    color: var(--icd-muted);
    font-size: 8px;
    white-space: nowrap;
}

.beaver-note-pinned {
    padding: 3px 5px;
    border-radius: 8px;
    background: rgba(244, 185, 66, 0.16);
    color: #ffe2a1;
    font-size: 7px;
    font-weight: bold;
}

.beaver-operations-note h2 {
    margin: 11px 0 0;
    overflow: hidden;
    color: white;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.beaver-operations-note p {
    min-height: 42px;
    margin: 8px 0 0;
    color: #d6e7eb;
    font-size: 10px;
    line-height: 1.5;
    white-space: pre-line;
}

.beaver-note-footer {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 8px;
    margin-top: 13px;
    padding-top: 9px;
    border-top: 1px solid rgba(141, 231, 245, 0.12);
}

    .beaver-note-footer > span {
        overflow: hidden;
        color: var(--icd-muted);
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 8px;
    }

        .beaver-note-footer > span strong {
            color: var(--icd-cyan-light);
            font-size: 8px;
        }

.beaver-note-actions {
    display: flex;
    gap: 5px;
}

    .beaver-note-actions button {
        height: 23px;
        padding: 0 7px;
        border: 1px solid rgba(141, 231, 245, 0.4);
        border-radius: 3px;
        background: rgba(6, 31, 45, 0.6);
        color: var(--icd-cyan-light);
        cursor: pointer;
        font-size: 8px;
        font-weight: bold;
    }

        .beaver-note-actions button:hover {
            border-color: var(--icd-cyan);
            background: var(--icd-blue);
            color: white;
        }

        .beaver-note-actions button.archive {
            border-color: rgba(224, 82, 82, 0.62);
            color: #ffaaaa;
        }

            .beaver-note-actions button.archive:hover {
                border-color: var(--icd-red);
                background: var(--icd-red);
                color: white;
            }

/* =========================================================
   RESPONSIVE OPERATIONS PAGE
   ========================================================= */

@media (max-width: 900px) {
    .beaver-operations-summary {
        grid-template-columns: 1fr 1fr;
    }

    .beaver-operations-note-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .beaver-operations-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .beaver-note-editor-grid {
        grid-template-columns: 1fr;
    }

    .beaver-operations-summary {
        grid-template-columns: 1fr;
    }

    .beaver-note-topline {
        flex-wrap: wrap;
    }

    .beaver-note-time {
        width: 100%;
        margin-left: 0;
    }

    .beaver-note-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =========================================================
   BEAVER 45 LIVE OPERATIONS TRENDS
   ========================================================= */

.beaver-trends-page {
    max-width: 1500px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 auto;
}

.beaver-trends-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    min-height: 52px;
}

    .beaver-trends-header h1 {
        margin: 8px 0 0;
        color: white;
        font-size: 25px;
    }

.beaver-trends-subtitle {
    margin-top: 5px;
    color: var(--icd-muted);
    font-size: 11px;
}

.beaver-trends-header-status {
    padding-bottom: 5px;
    color: var(--icd-green);
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 0.6px;
}

/* =========================================================
   WORKSPACE
   ========================================================= */

.beaver-trends-workspace {
    display: grid;
    grid-template-columns: 295px minmax(0, 1fr);
    min-height: 0;
    gap: 11px;
}

.beaver-trend-signal-panel,
.beaver-trend-main-panel {
    min-height: 0;
    overflow: hidden;
    border: 1px solid rgba(141, 231, 245, 0.24);
    border-radius: 6px;
    background: rgba(16, 76, 101, 0.94);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.2);
}

.beaver-trend-signal-panel {
    max-height: calc(100vh - 180px);
    overflow-y: auto;
}

.beaver-trend-main-panel {
    display: flex;
    flex-direction: column;
}

.beaver-trend-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    border-bottom: 1px solid rgba(141, 231, 245, 0.18);
    background: rgba(6, 31, 45, 0.78);
    color: var(--icd-cyan-light);
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 0.7px;
}

.beaver-trend-signal-toolbar {
    display: flex;
    gap: 6px;
    padding: 9px;
    border-bottom: 1px solid rgba(141, 231, 245, 0.13);
}

    .beaver-trend-signal-toolbar button {
        height: 25px;
        padding: 0 8px;
        border: 1px solid rgba(141, 231, 245, 0.4);
        border-radius: 4px;
        background: transparent;
        color: var(--icd-cyan-light);
        cursor: pointer;
        font-size: 8px;
        font-weight: bold;
    }

        .beaver-trend-signal-toolbar button:hover {
            background: var(--icd-blue);
            color: white;
        }

.beaver-trend-signal-group {
    border-bottom: 1px solid rgba(141, 231, 245, 0.13);
}

.beaver-trend-signal-group-header {
    padding: 9px 11px 6px;
    background: rgba(6, 31, 45, 0.28);
    color: var(--icd-cyan-light);
    font-size: 8px;
    font-weight: bold;
    letter-spacing: 0.7px;
}

.beaver-trend-signal-option {
    display: flex;
    min-height: 40px;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
}

    .beaver-trend-signal-option:hover,
    .beaver-trend-signal-option.selected {
        background: rgba(22, 185, 220, 0.12);
    }

    .beaver-trend-signal-option input {
        margin: 0;
        accent-color: var(--icd-cyan);
    }

.beaver-trend-signal-color {
    width: 8px;
    height: 23px;
    flex: 0 0 8px;
    border-radius: 3px;
}

.beaver-trend-signal-name {
    min-width: 0;
    flex: 1;
}

    .beaver-trend-signal-name strong,
    .beaver-trend-signal-name small {
        display: block;
    }

    .beaver-trend-signal-name strong {
        overflow: hidden;
        color: white;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 10px;
    }

    .beaver-trend-signal-name small {
        margin-top: 2px;
        color: var(--icd-muted);
        font-size: 8px;
    }

.beaver-trend-signal-current {
    color: var(--icd-cyan-light);
    font-size: 9px;
    font-weight: bold;
    white-space: nowrap;
}

/* =========================================================
   RANGE BUTTONS / STATUS STRIP
   ========================================================= */

.beaver-trend-range-buttons {
    display: flex;
    gap: 4px;
}

.beaver-trend-range-button {
    height: 24px;
    padding: 0 7px;
    border: 1px solid rgba(141, 231, 245, 0.3);
    border-radius: 3px;
    background: transparent;
    color: var(--icd-muted);
    cursor: pointer;
    font-size: 8px;
    font-weight: bold;
}

    .beaver-trend-range-button:hover,
    .beaver-trend-range-button.active {
        border-color: var(--icd-cyan);
        background: var(--icd-blue);
        color: white;
    }

.beaver-trend-date-selector {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 9px 12px;
    border-bottom: 1px solid rgba(141, 231, 245, 0.14);
    background: rgba(6, 31, 45, 0.58);
}

.mobile-users-admin {
    display: grid;
    gap: 16px;
}

.mobile-user-message {
    padding: 11px 14px;
    border: 1px solid rgba(86, 212, 145, .5);
    background: rgba(45, 155, 102, .15);
    color: #8af0b8;
}

    .mobile-user-message.error {
        border-color: rgba(239, 92, 92, .55);
        background: rgba(176, 45, 45, .15);
        color: #ffaaaa;
    }

.mobile-user-create-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(170px, 1fr));
    gap: 12px;
    padding: 16px;
    align-items: end;
}

    .mobile-user-create-grid label,
    .mobile-user-row label {
        display: grid;
        gap: 6px;
        color: var(--icd-cyan-light);
        font-size: 9px;
        font-weight: 700;
    }

    .mobile-user-create-grid input,
    .mobile-password-reset input {
        min-height: 36px;
        padding: 7px 9px;
        border: 1px solid rgba(113, 205, 229, .38);
        border-radius: 3px;
        background: rgba(4, 29, 42, .62);
        color: white;
    }

    .mobile-user-create-grid .mobile-check {
        display: flex;
        align-items: center;
        min-height: 36px;
    }

.mobile-password-rule {
    padding: 0 16px 16px;
    color: var(--icd-muted);
    font-size: 10px;
}

.mobile-user-list {
    display: grid;
}

.mobile-user-row {
    display: grid;
    grid-template-columns: minmax(190px, 1.5fr) repeat(4, auto) auto minmax(250px, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(113, 205, 229, .18);
}

.mobile-user-identity {
    display: grid;
    gap: 3px;
}

    .mobile-user-identity span,
    .mobile-user-identity small {
        color: var(--icd-muted);
    }

.mobile-password-reset {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 7px;
}

@media (max-width: 1050px) {
    .mobile-user-create-grid {
        grid-template-columns: repeat(2, minmax(170px, 1fr));
    }

    .mobile-user-row {
        grid-template-columns: repeat(4, 1fr);
    }

    .mobile-user-identity,
    .mobile-password-reset {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .mobile-user-create-grid,
    .mobile-user-row {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   PUMP JOURNEY TRACKER / PERFORMANCE
   ========================================================= */
.dashboard-feature-links {
    display: flex;
    align-items: center;
    gap: 7px;
}

    .dashboard-feature-links a {
        padding: 8px 10px;
        border: 1px solid rgba(141, 231, 245, 0.42);
        border-radius: 4px;
        color: var(--icd-cyan-light);
        font-size: 8px;
        font-weight: bold;
        text-decoration: none;
    }

        .dashboard-feature-links a:hover {
            background: var(--icd-blue);
            color: white;
        }

.pump-feature-page {
    display: grid;
    gap: 14px;
    max-width: 1540px;
    margin: 0 auto;
}

.pump-feature-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

    .pump-feature-header h1 {
        margin: 5px 0 4px;
        color: white;
        font-size: 25px;
    }

    .pump-feature-header p {
        margin: 0;
        color: var(--icd-muted);
        font-size: 11px;
    }

.pump-feature-back {
    color: var(--icd-cyan-light);
    font-size: 9px;
    font-weight: bold;
    text-decoration: none;
}

.pump-demo-data-badge {
    padding: 7px 10px;
    border: 1px solid rgba(244, 185, 66, 0.55);
    border-radius: 4px;
    background: rgba(244, 185, 66, 0.1);
    color: var(--icd-yellow);
    font-size: 8px;
    font-weight: bold;
    letter-spacing: 0.7px;
}

.tracker-controls {
    display: flex;
    align-items: flex-end;
    gap: 9px;
    padding: 12px;
    border: 1px solid rgba(141, 231, 245, 0.22);
    border-radius: 6px;
    background: rgba(6, 31, 45, 0.86);
}

    .tracker-controls label {
        display: grid;
        gap: 4px;
        color: var(--icd-muted);
        font-size: 8px;
        font-weight: bold;
    }

    .tracker-controls input,
    .tracker-controls button {
        min-height: 32px;
        box-sizing: border-box;
        border: 1px solid rgba(141, 231, 245, 0.42);
        border-radius: 4px;
        background: #082f43;
        color: white;
        color-scheme: dark;
    }

    .tracker-controls button {
        padding: 0 11px;
        border-color: var(--icd-cyan);
        background: var(--icd-blue);
        cursor: pointer;
        font-size: 8px;
        font-weight: bold;
    }

        .tracker-controls button.secondary {
            background: transparent;
            color: var(--icd-cyan-light);
        }

.tracker-summary-chip {
    display: grid;
    gap: 2px;
    min-width: 95px;
    margin-left: auto;
    padding: 4px 10px;
    border-left: 1px solid rgba(141, 231, 245, 0.22);
}

    .tracker-summary-chip + .tracker-summary-chip {
        margin-left: 0;
    }

    .tracker-summary-chip strong {
        color: white;
        font-size: 15px;
    }

    .tracker-summary-chip span {
        color: var(--icd-muted);
        font-size: 7px;
        font-weight: bold;
    }

.tracker-message {
    padding: 10px 12px;
    border: 1px solid rgba(244, 185, 66, 0.45);
    background: rgba(244, 185, 66, 0.08);
    color: var(--icd-yellow);
    font-size: 10px;
}

.tracker-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    min-height: 570px;
    border: 1px solid rgba(141, 231, 245, 0.24);
    border-radius: 7px;
    overflow: hidden;
    background: var(--icd-dark);
}

.tracker-map-panel {
    position: relative;
    min-width: 0;
}

#pump-tracker-map {
    width: 100%;
    height: 100%;
    min-height: 570px;
}

.tracker-map-legend {
    position: absolute;
    z-index: 3;
    right: 12px;
    bottom: 12px;
    display: flex;
    gap: 12px;
    padding: 8px 10px;
    border: 1px solid rgba(141, 231, 245, 0.3);
    border-radius: 4px;
    background: rgba(6, 31, 45, 0.9);
    color: white;
    font-size: 8px;
}

    .tracker-map-legend i {
        display: inline-block;
        margin-right: 4px;
        vertical-align: middle;
    }

    .tracker-map-legend .route-line {
        width: 18px;
        border-top: 3px solid #22d7f4;
    }

    .tracker-map-legend .stop-dot,
    .tracker-map-legend .current-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--icd-yellow);
    }

    .tracker-map-legend .current-dot {
        background: var(--icd-green);
    }

.tracker-selected-marker {
    width: 19px;
    height: 19px;
    border: 3px solid white;
    border-radius: 50%;
    background: var(--icd-green);
    box-shadow: 0 0 0 5px rgba(57, 201, 138, 0.25), 0 0 12px #000;
}

.tracker-event-panel {
    min-width: 0;
    border-left: 1px solid rgba(141, 231, 245, 0.2);
    background: rgba(6, 31, 45, 0.96);
}

.tracker-panel-title,
.performance-panel-header {
    display: flex;
    justify-content: space-between;
    padding: 11px 12px;
    border-bottom: 1px solid rgba(141, 231, 245, 0.18);
    color: var(--icd-cyan-light);
    font-size: 8px;
    font-weight: bold;
    letter-spacing: 0.65px;
}

.tracker-event-list {
    max-height: 525px;
    overflow-y: auto;
}

.tracker-event {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 8px;
    width: 100%;
    padding: 10px;
    border: 0;
    border-bottom: 1px solid rgba(141, 231, 245, 0.1);
    background: transparent;
    color: white;
    cursor: pointer;
    text-align: left;
}

    .tracker-event:hover,
    .tracker-event.active {
        background: rgba(35, 109, 140, 0.55);
    }

    .tracker-event strong,
    .tracker-event small,
    .tracker-event em {
        display: block;
    }

    .tracker-event strong {
        font-size: 10px;
    }

    .tracker-event small {
        margin-top: 3px;
        color: var(--icd-muted);
        font-size: 8px;
    }

    .tracker-event em {
        margin-top: 5px;
        color: var(--icd-yellow);
        font-size: 7px;
        font-style: normal;
        font-weight: bold;
    }

.tracker-sequence {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 1px solid var(--icd-cyan);
    border-radius: 50%;
    color: var(--icd-cyan-light);
    font-size: 8px;
    font-weight: bold;
}

.tracker-playback {
    display: grid;
    grid-template-columns: auto minmax(160px, 1fr) auto minmax(220px, auto);
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid rgba(141, 231, 245, 0.22);
    border-radius: 6px;
    background: rgba(6, 31, 45, 0.9);
}

    .tracker-playback button {
        min-height: 30px;
        border: 1px solid rgba(141, 231, 245, 0.4);
        border-radius: 4px;
        background: var(--icd-blue);
        color: white;
        cursor: pointer;
        font-size: 8px;
        font-weight: bold;
    }

    .tracker-playback span {
        color: var(--icd-muted);
        font-size: 9px;
        text-align: right;
    }

.performance-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

    .performance-kpi-grid article {
        min-width: 0;
        padding: 15px;
        border: 1px solid rgba(141, 231, 245, 0.27);
        border-radius: 6px;
        background: linear-gradient(145deg, rgba(24, 93, 119, 0.96), rgba(6, 31, 45, 0.98));
    }

    .performance-kpi-grid span,
    .performance-kpi-grid strong,
    .performance-kpi-grid small {
        display: block;
    }

    .performance-kpi-grid span {
        color: var(--icd-cyan-light);
        font-size: 8px;
        font-weight: bold;
    }

    .performance-kpi-grid strong {
        margin-top: 9px;
        color: white;
        font-size: 25px;
    }

    .performance-kpi-grid small {
        margin-top: 7px;
        color: var(--icd-muted);
        font-size: 8px;
    }

.performance-progress {
    height: 5px;
    margin-top: 8px;
    overflow: hidden;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.35);
}

    .performance-progress i {
        display: block;
        height: 100%;
        background: var(--icd-green);
    }

    .performance-progress.target i {
        background: var(--icd-cyan);
    }

.performance-layout {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 12px;
}

.performance-panel {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(141, 231, 245, 0.24);
    border-radius: 7px;
    background: rgba(6, 31, 45, 0.9);
}

    .performance-panel-header span:last-child {
        color: var(--icd-muted);
    }

.utilization-chart,
.performance-flow-chart {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    align-items: end;
    gap: 12px;
    height: 260px;
    padding: 22px 20px 12px;
    box-sizing: border-box;
    background-image: repeating-linear-gradient(to top, transparent 0, transparent 51px, rgba(141, 231, 245, 0.09) 52px);
}

.utilization-day,
.flow-day {
    display: grid;
    align-items: end;
    justify-items: center;
    height: 100%;
    min-width: 0;
}

.utilization-column {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-start;
    width: min(35px, 70%);
    height: 180px;
    overflow: hidden;
    border-radius: 3px 3px 0 0;
    background: rgba(0, 0, 0, 0.22);
}

    .utilization-column i {
        display: block;
        width: 100%;
    }

    .utilization-column .running,
    .performance-legend i.running {
        background: var(--icd-green);
    }

    .utilization-column .idle,
    .performance-legend i.idle {
        background: var(--icd-yellow);
    }

    .utilization-column .offline,
    .performance-legend i.offline {
        background: #5d7480;
    }

    .utilization-day strong,
    .flow-day strong {
        margin-top: 5px;
        color: white;
        font-size: 9px;
    }

    .utilization-day span,
    .flow-day small {
        margin-top: 3px;
        color: var(--icd-cyan-light);
        font-size: 8px;
        font-weight: bold;
    }

    .utilization-day small {
        color: var(--icd-muted);
        font-size: 7px;
    }

.performance-legend {
    display: flex;
    justify-content: center;
    gap: 18px;
    padding: 9px;
    border-top: 1px solid rgba(141, 231, 245, 0.14);
    color: var(--icd-muted);
    font-size: 8px;
}

    .performance-legend i {
        display: inline-block;
        width: 8px;
        height: 8px;
        margin-right: 4px;
    }

.flow-day {
    position: relative;
    grid-template-rows: 1fr auto auto;
}

    .flow-day > i {
        align-self: end;
        width: min(34px, 70%);
        min-height: 2px;
        border-radius: 3px 3px 0 0;
        background: var(--icd-yellow);
    }

        .flow-day > i.on-target {
            background: var(--icd-cyan);
        }

.flow-target-line {
    position: absolute;
    right: 0;
    left: 0;
    border-top: 1px dashed var(--icd-green);
}

.flow-target-key {
    padding: 9px 12px;
    border-top: 1px solid rgba(141, 231, 245, 0.14);
    color: var(--icd-green);
    font-size: 8px;
    font-weight: bold;
    text-align: center;
}

.performance-table-wrap {
    overflow-x: auto;
}

.performance-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 9px;
}

    .performance-table th,
    .performance-table td {
        padding: 10px 12px;
        border-bottom: 1px solid rgba(141, 231, 245, 0.1);
        text-align: right;
    }

    .performance-table th:first-child,
    .performance-table td:first-child {
        text-align: left;
    }

    .performance-table th {
        color: var(--icd-muted);
        font-size: 7px;
    }

    .performance-table td {
        color: white;
    }

.target-pill {
    padding: 3px 6px;
    border-radius: 10px;
    font-weight: bold;
}

    .target-pill.good {
        background: rgba(57, 201, 138, 0.15);
        color: var(--icd-green);
    }

    .target-pill.watch {
        background: rgba(244, 185, 66, 0.15);
        color: var(--icd-yellow);
    }

@media (max-width: 1050px) {
    .tracker-layout,
    .performance-layout {
        grid-template-columns: 1fr;
    }

    .tracker-event-panel {
        border-top: 1px solid rgba(141, 231, 245, 0.2);
        border-left: 0;
    }

    .tracker-event-list {
        max-height: 330px;
    }

    .performance-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .pump-feature-header,
    .tracker-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .tracker-summary-chip {
        margin-left: 0;
    }

    .tracker-playback {
        grid-template-columns: 1fr 1fr;
    }

        .tracker-playback input,
        .tracker-playback span {
            grid-column: 1 / -1;
            text-align: left;
        }

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

    .utilization-chart,
    .performance-flow-chart {
        gap: 4px;
        padding-right: 8px;
        padding-left: 8px;
    }

    .performance-legend {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }
}

/* =========================================================
   PUMP AVAILABILITY
   ========================================================= */
.pump-availability {
    margin: 4px 10px 12px;
    padding: 11px;
    border: 1px solid rgba(141, 231, 245, 0.26);
    border-radius: 5px;
    background: rgba(4, 27, 39, 0.58);
}

.availability-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

    .availability-header span,
    .availability-header strong {
        display: block;
    }

    .availability-header span,
    .availability-five-day-title {
        color: var(--icd-cyan-light);
        font-size: 8px;
        font-weight: bold;
        letter-spacing: 0.65px;
    }

    .availability-header strong {
        margin-top: 3px;
        color: white;
        font-size: 9px;
    }

.availability-navigation {
    display: flex;
    gap: 4px;
}

    .availability-navigation button {
        width: 29px;
        height: 27px;
        border: 1px solid rgba(141, 231, 245, 0.4);
        border-radius: 3px;
        background: var(--icd-blue);
        color: white;
        cursor: pointer;
        font-weight: bold;
    }

        .availability-navigation button:disabled {
            cursor: not-allowed;
            opacity: 0.35;
        }

.availability-summary {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin-top: 10px;
}

    .availability-summary strong {
        color: var(--icd-green);
        font-size: 20px;
    }

    .availability-summary span {
        color: var(--icd-green);
        font-size: 8px;
        font-weight: bold;
    }

    .availability-summary small {
        margin-left: auto;
        color: var(--icd-muted);
        font-size: 7px;
        font-weight: bold;
    }

.availability-strip-scroll {
    width: 100%;
    margin-top: 8px;
    padding-bottom: 3px;
    overflow-x: auto;
}

.availability-strip {
    display: flex;
    gap: 0.25px;
    width: 252px;
    height: 27px;
    padding: 3px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    background: #020f16;
}

    .availability-strip > i {
        display: block;
        flex: 0 0 3px;
        height: 100%;
        border-radius: 0.5px;
    }

    .availability-strip .online,
    .availability-legend i.online {
        background: #20d982;
        box-shadow: 0 0 2px rgba(32, 217, 130, 0.45);
    }

    .availability-strip .offline,
    .availability-legend i.offline {
        background: #ff4545;
        box-shadow: 0 0 3px rgba(255, 69, 69, 0.6);
    }

.availability-time-axis {
    display: flex;
    justify-content: space-between;
    width: 252px;
    max-width: 100%;
    margin-top: 2px;
    color: #829ea9;
    font-size: 7px;
}

.availability-legend {
    display: flex;
    gap: 12px;
    margin-top: 7px;
    color: var(--icd-muted);
    font-size: 7px;
}

    .availability-legend i {
        display: inline-block;
        width: 7px;
        height: 7px;
        margin-right: 3px;
        vertical-align: middle;
    }

    .availability-legend span:last-child {
        margin-left: auto;
    }

.availability-five-day-title {
    margin-top: 13px;
    padding-top: 10px;
    border-top: 1px solid rgba(141, 231, 245, 0.13);
}

.availability-day-cards {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
    margin-top: 7px;
}

.availability-day-card {
    min-width: 0;
    padding: 7px 4px;
    border: 1px solid rgba(141, 231, 245, 0.18);
    border-radius: 4px;
    background: rgba(16, 76, 101, 0.46);
    color: white;
    cursor: pointer;
    text-align: left;
}

    .availability-day-card:hover,
    .availability-day-card.active {
        border-color: var(--icd-cyan);
        background: rgba(35, 109, 140, 0.78);
    }

    .availability-day-card span,
    .availability-day-card strong,
    .availability-day-card small {
        display: block;
    }

    .availability-day-card span {
        color: var(--icd-muted);
        font-size: 7px;
        font-weight: bold;
    }

    .availability-day-card strong {
        margin-top: 4px;
        color: white;
        font-size: 11px;
    }

    .availability-day-card small {
        margin-top: 2px;
        color: var(--icd-muted);
        font-size: 7px;
    }

.availability-mini-bar {
    display: block;
    height: 3px;
    margin-top: 6px;
    overflow: hidden;
    border-radius: 3px;
    background: rgba(255, 69, 69, 0.65);
}

    .availability-mini-bar em {
        display: block;
        height: 100%;
        background: var(--icd-green);
    }

@media (max-width: 1250px) and (min-width: 1051px) {
    .pump-dashboard-grid {
        grid-template-columns: 330px minmax(360px, 1fr) 290px;
    }
}

@media (max-width: 520px) {
    .availability-day-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .availability-legend {
        flex-wrap: wrap;
    }

        .availability-legend span:last-child {
            width: 100%;
            margin-left: 0;
        }
}

/* =========================================================
   PUMP DASHBOARD ALARM SUMMARY
   ========================================================= */
.pump-alarm-summary {
    margin: 16px 10px 12px;
    overflow: hidden;
    border: 1px solid rgba(141, 231, 245, 0.25);
    border-radius: 5px;
    background: rgba(4, 27, 39, 0.52);
}

.pump-alarm-header,
.alarm-history-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 10px;
    border-bottom: 1px solid rgba(141, 231, 245, 0.15);
    color: var(--icd-cyan-light);
    font-size: 8px;
    font-weight: bold;
    letter-spacing: 0.65px;
}

    .pump-alarm-header a {
        color: var(--icd-cyan-light);
        font-size: 7px;
        text-decoration: none;
    }

.current-alarm-box {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    align-items: center;
    gap: 8px;
    margin: 9px;
    padding: 10px;
    border: 1px solid rgba(57, 201, 138, 0.4);
    border-radius: 4px;
    background: rgba(57, 201, 138, 0.08);
}

    .current-alarm-box.active {
        border-color: rgba(255, 69, 69, 0.65);
        background: rgba(224, 82, 82, 0.12);
    }

.current-alarm-icon {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--icd-green);
    color: #042017;
    font-size: 13px;
    font-weight: bold;
}

    .current-alarm-box.active .current-alarm-icon {
        background: #ff4545;
        color: white;
        box-shadow: 0 0 9px rgba(255, 69, 69, 0.55);
    }

    .current-alarm-box span,
    .current-alarm-box strong,
    .current-alarm-box small {
        display: block;
    }

    .current-alarm-box span {
        color: var(--icd-muted);
        font-size: 7px;
        font-weight: bold;
    }

    .current-alarm-box strong {
        margin-top: 3px;
        color: white;
        font-size: 9px;
    }

    .current-alarm-box small {
        margin-top: 2px;
        color: var(--icd-muted);
        font-size: 7px;
    }

    .current-alarm-box > em {
        color: var(--icd-green);
        font-size: 7px;
        font-style: normal;
        font-weight: bold;
    }

    .current-alarm-box.active > em {
        color: #ff7777;
    }

.alarm-history-heading {
    border-top: 1px solid rgba(141, 231, 245, 0.15);
    color: var(--icd-muted);
    letter-spacing: 0.4px;
}

    .alarm-history-heading strong {
        color: white;
        font-size: 7px;
    }

.alarm-history-list {
    padding: 0 9px 7px;
}

.alarm-history-item {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr) auto;
    gap: 7px;
    padding: 9px 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

    .alarm-history-item:last-child {
        border-bottom: 0;
    }

    .alarm-history-item > i {
        width: 7px;
        height: 7px;
        margin-top: 2px;
        border-radius: 50%;
        background: var(--icd-yellow);
    }

    .alarm-history-item.critical > i {
        background: #ff4545;
    }

    .alarm-history-item.communication > i {
        background: var(--icd-cyan);
    }

    .alarm-history-item.advisory > i {
        background: #a6b9c1;
    }

    .alarm-history-item strong,
    .alarm-history-item span,
    .alarm-history-item small {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .alarm-history-item strong {
        color: white;
        font-size: 8px;
    }

    .alarm-history-item span {
        margin-top: 3px;
        color: var(--icd-muted);
        font-size: 7px;
    }

    .alarm-history-item small {
        margin-top: 4px;
        color: #819da8;
        font-size: 6px;
        font-weight: bold;
    }

    .alarm-history-item > em {
        color: var(--icd-yellow);
        font-size: 6px;
        font-style: normal;
        font-weight: bold;
    }

    .alarm-history-item.critical > em {
        color: #ff7777;
    }

    .alarm-history-item.communication > em {
        color: var(--icd-cyan-light);
    }

    .alarm-history-item.advisory > em {
        color: #a6b9c1;
    }

    .beaver-trend-date-selector label {
        display: grid;
        gap: 4px;
        color: var(--icd-muted);
        font-size: 8px;
        font-weight: bold;
        letter-spacing: 0.6px;
    }

    .beaver-trend-date-selector input {
        min-height: 30px;
        padding: 4px 8px;
        border: 1px solid rgba(141, 231, 245, 0.35);
        border-radius: 4px;
        background: rgba(7, 50, 56, 0.95);
        color: white;
        color-scheme: dark;
    }

.beaver-trend-refresh-button.secondary {
    border-color: rgba(141, 231, 245, 0.35);
    background: transparent;
    color: var(--icd-cyan-light);
}

.beaver-trend-historical-badge {
    align-self: center;
    color: #f4b942;
    font-size: 8px;
    font-weight: bold;
    letter-spacing: 0.7px;
}

.beaver-trend-current-strip {
    display: grid;
    grid-template-columns: 1fr 1.6fr 0.7fr auto;
    gap: 1px;
    border-bottom: 1px solid rgba(141, 231, 245, 0.14);
    background: rgba(141, 231, 245, 0.1);
}

    .beaver-trend-current-strip > div,
    .beaver-trend-current-strip > button {
        min-height: 52px;
        padding: 9px 11px;
        box-sizing: border-box;
        background: rgba(7, 50, 56, 0.95);
    }

    .beaver-trend-current-strip span,
    .beaver-trend-current-strip strong {
        display: block;
    }

    .beaver-trend-current-strip span {
        color: var(--icd-muted);
        font-size: 8px;
        font-weight: bold;
    }

    .beaver-trend-current-strip strong {
        margin-top: 5px;
        overflow: hidden;
        color: white;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 11px;
    }

        .beaver-trend-current-strip strong.mft {
            color: var(--icd-green);
        }

        .beaver-trend-current-strip strong.water {
            color: #6daeff;
        }

        .beaver-trend-current-strip strong.dilute {
            color: var(--icd-yellow);
        }

.beaver-trend-refresh-button {
    border: 1px solid var(--icd-cyan);
    border-radius: 4px;
    background: var(--icd-dark);
    color: white;
    cursor: pointer;
    font-size: 9px;
    font-weight: bold;
}

    .beaver-trend-refresh-button:hover {
        background: var(--icd-blue);
        color: white;
    }

.beaver-trend-date-selector .beaver-trend-refresh-button.secondary {
    border-color: rgba(141, 231, 245, 0.45);
    background: rgba(7, 50, 56, 0.95);
    color: var(--icd-cyan-light);
}

/* =========================================================
   CHART
   ========================================================= */

.beaver-trend-chart-wrap {
    min-height: 0;
    flex: 1;
    padding: 12px 12px 0;
}

.beaver-trend-chart {
    display: block;
    width: 100%;
    min-height: 300px;
    height: 100%;
}

.beaver-trend-grid-line {
    stroke: rgba(169, 197, 207, 0.17);
    stroke-width: 1px;
    stroke-dasharray: 4 4;
}

.beaver-trend-axis-line {
    stroke: rgba(141, 231, 245, 0.46);
    stroke-width: 1px;
}

.beaver-trend-data-line {
    fill: none;
    stroke-width: 3px;
    stroke-linejoin: round;
    stroke-linecap: round;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.12));
}

.beaver-trend-axis-label,
.beaver-trend-time-label {
    fill: var(--icd-muted);
    font-size: 10px;
    font-weight: bold;
}

.beaver-trend-chart-note {
    padding: 0 15px 11px;
    color: var(--icd-muted);
    font-size: 9px;
    line-height: 1.4;
}

.beaver-trend-loading,
.beaver-trend-error {
    display: flex;
    min-height: 340px;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: var(--icd-muted);
    text-align: center;
    font-size: 11px;
}

    .beaver-trend-error strong {
        color: #ffaaaa;
        font-size: 13px;
    }

    .beaver-trend-error span {
        max-width: 540px;
        margin-top: 8px;
        line-height: 1.5;
    }

/* =========================================================
   ACTIVE PENS / EXPORT
   ========================================================= */

.beaver-trend-selected-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 37px;
    padding: 0 12px;
    border-top: 1px solid rgba(141, 231, 245, 0.17);
    border-bottom: 1px solid rgba(141, 231, 245, 0.15);
    background: rgba(6, 31, 45, 0.48);
    color: var(--icd-cyan-light);
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 0.6px;
}

.beaver-trend-export-button {
    height: 25px;
    padding: 0 9px;
    border: 1px solid var(--icd-green);
    border-radius: 3px;
    background: rgba(57, 201, 138, 0.11);
    color: var(--icd-green);
    cursor: pointer;
    font-size: 8px;
    font-weight: bold;
}

    .beaver-trend-export-button:hover {
        background: var(--icd-green);
        color: #062b37;
    }

.beaver-trend-pen-list {
    max-height: 160px;
    overflow-y: auto;
}

.beaver-trend-pen-card {
    display: flex;
    min-height: 43px;
    align-items: center;
    gap: 9px;
    padding: 7px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.beaver-trend-pen-color {
    width: 8px;
    height: 27px;
    flex: 0 0 8px;
    border-radius: 3px;
}

.beaver-trend-pen-main {
    min-width: 0;
    flex: 1;
}

    .beaver-trend-pen-main strong,
    .beaver-trend-pen-main small {
        display: block;
    }

    .beaver-trend-pen-main strong {
        overflow: hidden;
        color: white;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 10px;
    }

    .beaver-trend-pen-main small {
        margin-top: 3px;
        color: var(--icd-muted);
        font-size: 8px;
    }

.beaver-trend-pen-current {
    color: white;
    font-size: 10px;
    white-space: nowrap;
}

.beaver-trend-color-picker {
    width: 28px;
    height: 24px;
    padding: 1px;
    border: 1px solid rgba(141, 231, 245, 0.35);
    border-radius: 3px;
    background: transparent;
    cursor: pointer;
}

.beaver-trend-remove-button {
    width: 23px;
    height: 23px;
    border: 0;
    border-radius: 3px;
    background: rgba(224, 82, 82, 0.82);
    color: white;
    cursor: pointer;
    font-size: 16px;
    line-height: 18px;
}

    .beaver-trend-remove-button:hover {
        background: var(--icd-red);
    }

/* =========================================================
   RESPONSIVE BEAVER TRENDS
   ========================================================= */

@media (max-width: 1000px) {
    .beaver-trends-workspace {
        grid-template-columns: 260px minmax(0, 1fr);
    }

    .beaver-trend-current-strip {
        grid-template-columns: 1fr 1fr;
    }

    .beaver-trend-refresh-button {
        min-height: 42px !important;
    }
}

@media (max-width: 800px) {
    .beaver-trends-workspace {
        grid-template-columns: 1fr;
    }

    .beaver-trend-signal-panel {
        max-height: 410px;
    }

    .beaver-trend-main-panel {
        min-height: 660px;
    }
}

@media (max-width: 600px) {
    .beaver-trends-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .beaver-trend-panel-header {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        padding: 8px 12px;
    }

    .beaver-trend-range-buttons {
        width: 100%;
    }

    .beaver-trend-range-button {
        flex: 1;
        padding: 0 3px;
    }

    .beaver-trend-date-selector {
        align-items: stretch;
        flex-direction: column;
    }

    .beaver-trend-current-strip {
        grid-template-columns: 1fr;
    }

    .beaver-trend-chart {
        min-height: 260px;
    }

    .beaver-trend-pen-current {
        display: none;
    }
}

/* =========================================================
   BEAVER 45 LIVE ADX STATUS / DATA QUALITY
   ========================================================= */

.beaver-live-status,
.beaver-live-status strong {
    color: var(--icd-green) !important;
}

.beaver-delayed-status,
.beaver-delayed-status strong {
    color: var(--icd-yellow) !important;
}

.beaver-stale-status,
.beaver-stale-status strong {
    color: #ff9b9b !important;
}

.beaver-running-dot.beaver-delayed-status,
.beaver-status-dot.beaver-delayed-status {
    background: var(--icd-yellow);
    box-shadow: 0 0 8px var(--icd-yellow);
}

.beaver-running-dot.beaver-stale-status,
.beaver-status-dot.beaver-stale-status {
    background: var(--icd-red);
    box-shadow: 0 0 8px var(--icd-red);
}

.beaver-mft-status {
    color: var(--icd-green) !important;
}

.beaver-dilute-status {
    color: var(--icd-yellow) !important;
}

.beaver-water-status {
    color: #8fc9ff !important;
}

.beaver-no-data-status {
    color: var(--icd-muted) !important;
}

.beaver-live-error {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 11px 13px;
    border-left: 3px solid var(--icd-red);
    border-radius: 4px;
    background: rgba(224, 82, 82, 0.12);
    color: #ffaaaa;
    font-size: 10px;
}

    .beaver-live-error strong {
        color: #ffaaaa;
        font-size: 10px;
        letter-spacing: 0.5px;
    }

.beaver-live-depth-summary {
    margin: 12px;
    padding: 13px;
    border: 1px solid rgba(57, 201, 138, 0.4);
    border-radius: 5px;
    background: rgba(57, 201, 138, 0.09);
}

    .beaver-live-depth-summary span,
    .beaver-live-depth-summary strong,
    .beaver-live-depth-summary small {
        display: block;
    }

    .beaver-live-depth-summary span {
        color: #9cebc5;
        font-size: 8px;
        font-weight: bold;
        letter-spacing: 0.5px;
    }

    .beaver-live-depth-summary strong {
        margin-top: 7px;
        color: #ffe2a1;
        font-size: 28px;
        line-height: 1;
    }

        .beaver-live-depth-summary strong small {
            display: inline;
            color: var(--icd-muted);
            font-size: 11px;
            font-weight: normal;
        }

    .beaver-live-depth-summary > small {
        margin-top: 8px;
        color: var(--icd-muted);
        font-size: 9px;
        line-height: 1.45;
    }

    .beaver-live-depth-summary code,
    .beaver-live-data-note code {
        color: var(--icd-cyan-light);
        font-family: Consolas, "Courier New", monospace;
        font-size: 8px;
    }

.beaver-live-detail-list {
    padding: 0 12px 12px;
}

    .beaver-live-detail-list div {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 2px;
        border-bottom: 1px solid rgba(141, 231, 245, 0.13);
    }

    .beaver-live-detail-list span {
        color: var(--icd-muted);
        font-size: 8px;
        font-weight: bold;
    }

    .beaver-live-detail-list strong {
        color: white;
        font-size: 11px;
        text-align: right;
    }

.beaver-live-data-note {
    margin: auto 12px 12px;
    padding: 11px;
    border-left: 3px solid var(--icd-cyan);
    background: rgba(22, 185, 220, 0.1);
}

    .beaver-live-data-note span,
    .beaver-live-data-note strong,
    .beaver-live-data-note small {
        display: block;
    }

    .beaver-live-data-note span {
        color: var(--icd-cyan-light);
        font-size: 8px;
        font-weight: bold;
        letter-spacing: 0.5px;
    }

    .beaver-live-data-note strong {
        margin-top: 5px;
        color: white;
        font-size: 10px;
    }

    .beaver-live-data-note small {
        margin-top: 6px;
        color: var(--icd-muted);
        font-size: 9px;
        line-height: 1.45;
    }

.beaver-sensor-unavailable {
    border-color: rgba(224, 82, 82, 0.58) !important;
    background: linear-gradient( 145deg, rgba(112, 43, 46, 0.72), rgba(53, 33, 38, 0.88) ) !important;
}

    .beaver-sensor-unavailable strong {
        color: #ffaaaa !important;
        font-size: 14px !important;
        letter-spacing: 0.2px;
    }

    .beaver-sensor-unavailable > small {
        overflow: visible !important;
        white-space: normal !important;
        color: #ffb0b0 !important;
        line-height: 1.35;
    }

@media (max-width: 620px) {
    .beaver-live-depth-summary strong {
        font-size: 24px;
    }
}

.bml-dumps-panel{margin-top:16px;border:1px solid #315d6e;border-radius:8px;background:linear-gradient(135deg,rgba(18,68,88,.94),rgba(7,31,43,.97));overflow:hidden}.bml-dumps-title label{color:#8fbac3;font-size:9px;font-weight:800;letter-spacing:.6px}.bml-dumps-title input{margin-left:7px;padding:5px 7px;border:1px solid #467b87;border-radius:3px;background:#0a2835;color:#d6f3f6;font:inherit}.bml-dumps-summary{display:grid;grid-template-columns:repeat(3,1fr);margin:14px 15px;border:1px solid rgba(87,145,159,.38);background:rgba(4,28,38,.5)}.bml-dumps-summary>div{padding:10px 14px;border-right:1px solid rgba(87,145,159,.25)}.bml-dumps-summary>div:last-child{border:0}.bml-dumps-summary span{display:block;color:#93b8c1;font-size:9px;font-weight:700;letter-spacing:.7px}.bml-dumps-summary strong{display:block;margin-top:5px;color:#fff;font-size:15px}.bml-dumps-summary small{font-size:10px;color:#a9cbd1}.bml-dump-bars{height:240px;margin:4px 15px 17px;padding:12px 8px 26px;border-bottom:1px solid #44717c;background:repeating-linear-gradient(to top,transparent 0,transparent 47px,rgba(92,153,166,.22) 48px);display:flex;gap:4px;align-items:flex-end}.bml-dump-bar-slot{height:100%;flex:1;min-width:4px;position:relative;display:flex;align-items:flex-end;justify-content:center}.bml-dump-bar-slot i{width:100%;min-height:4px;background:linear-gradient(180deg,#ffe15b,#f3a92f);border:1px solid #ffd86e;box-shadow:0 0 9px rgba(255,205,66,.58)}.bml-dump-bar-slot span{position:absolute;bottom:-19px;color:#7fa3ac;font-size:8px;white-space:nowrap}.bml-dump-bar-slot:nth-child(even) span{display:none}.bml-month-dump-bars{height:230px;margin:12px 15px 17px;padding:15px 7px 28px;border-bottom:1px solid #44717c;background:repeating-linear-gradient(to top,transparent 0,transparent 46px,rgba(92,153,166,.22) 47px);display:flex;gap:5px;align-items:flex-end}.bml-month-dump-slot{height:100%;min-width:18px;flex:1;position:relative;display:flex;align-items:flex-end;justify-content:center}.bml-month-dump-slot i{width:100%;min-height:4px;background:linear-gradient(180deg,#59d9ef,#167b9a);border:1px solid #80e9f7;box-shadow:0 0 9px rgba(75,215,238,.55)}.bml-month-dump-slot strong{position:absolute;bottom:calc(var(--bar-height) + 4px);display:none}.bml-month-dump-slot span{position:absolute;bottom:-20px;color:#87adb5;font-size:8px;white-space:nowrap}
.bml-dredge-illustration .bml-arm{left:48%;bottom:145px;width:245px;height:16px;transform:rotate(-23deg);transform-origin:left center}.bml-dredge-illustration .bml-stick{left:69%;bottom:219px;width:145px;height:15px;transform:rotate(68deg);transform-origin:left center}.bml-dredge-illustration .bml-bucket{left:84%;bottom:53px;width:48px;height:38px;transform:rotate(24deg);transform-origin:10% 10%}.bml-lake-bottom{position:absolute;left:76px;right:42%;height:3px;background:#a47a3b;box-shadow:0 0 8px rgba(197,145,72,.8)}.bml-lake-bottom i{position:absolute;left:45px;top:-4px;width:9px;height:9px;border-radius:50%;background:#c89548}.bml-lake-bottom strong{position:absolute;left:65px;top:-16px;color:#f1d29c;font-size:11px;white-space:nowrap}.bml-lake-bottom small{position:absolute;left:65px;top:2px;color:#c4aa80;font-size:9px;white-space:nowrap}
.bml-dredge-illustration .bml-arm{left:46.5%;bottom:145px;width:245px}.bml-dredge-illustration .bml-stick{left:67.1%;bottom:219px;width:145px}.bml-dredge-illustration .bml-bucket{left:70.8%;bottom:48px;width:104px;height:55px;background:transparent;border:0;box-shadow:none;transform:none;z-index:3}.bml-dredge-illustration .bml-bucket:before,.bml-dredge-illustration .bml-bucket:after{content:"";position:absolute;top:8px;width:49px;height:44px;background:linear-gradient(145deg,#f1cc4b,#bf8523);border:4px solid #765417;box-shadow:inset 0 -8px rgba(93,66,13,.45)}.bml-dredge-illustration .bml-bucket:before{left:0;clip-path:polygon(0 8%,100% 42%,100% 100%,20% 88%);border-radius:5px 4px 9px 17px}.bml-dredge-illustration .bml-bucket:after{right:0;clip-path:polygon(0 42%,100% 8%,80% 88%,0 100%);border-radius:4px 5px 17px 9px}.bml-dredge-illustration .bml-bucket{filter:drop-shadow(0 2px 1px rgba(0,0,0,.45))}
.bml-house{position:absolute;left:47.5%;bottom:132px;width:110px;height:42px;border:4px solid #e3b62b;border-bottom-width:6px;background:linear-gradient(135deg,#4a5658 0 54%,#1d292c 55%);border-radius:4px 10px 4px 4px;z-index:1}.bml-house:before{content:"";position:absolute;left:-18px;bottom:-11px;width:117px;height:11px;background:#d0a924;border:3px solid #725417;border-radius:50%}.bml-house i{position:absolute;right:13px;top:8px;width:22px;height:12px;border:2px solid #98d8e1;background:#1b343b;transform:skewX(-17deg)}.bml-dredge-illustration .bml-cab{left:54%;bottom:143px;z-index:2}.bml-dredge-illustration .bml-arm{left:46.5%;bottom:145px;width:245px;z-index:3}.bml-dredge-illustration .bml-stick{left:68.1%;bottom:245px;width:205px;height:15px;transform:rotate(65deg);z-index:3}.bml-dredge-illustration .bml-arm:before{content:"";position:absolute;left:-10px;top:2px;width:20px;height:20px;border-radius:50%;background:#f0c941;border:4px solid #725417;box-shadow:0 0 0 2px #d8e3d9}.bml-dredge-illustration .bml-arm:after{content:"";position:absolute;right:-12px;top:-4px;width:22px;height:22px;border-radius:50%;background:#f0c941;border:4px solid #725417;box-shadow:0 0 0 2px #d8e3d9}.bml-dredge-illustration .bml-stick:before{content:"";position:absolute;left:-12px;top:-4px;width:22px;height:22px;border-radius:50%;background:#f0c941;border:4px solid #725417;box-shadow:0 0 0 2px #d8e3d9}.bml-dredge-illustration .bml-stick:after{content:"";position:absolute;right:-11px;top:-4px;width:21px;height:21px;border-radius:50%;background:#f0c941;border:4px solid #725417;box-shadow:0 0 0 2px #d8e3d9}.bml-dredge-illustration .bml-bucket i{position:absolute;left:calc(50% - 13px);top:18px;width:18px;height:18px;border-radius:50%;background:#f0c941;border:4px solid #725417;z-index:4;box-shadow:0 0 0 2px #d8e3d9}
/* Public Beaver 45 technician curve screen. */
.beaver-curve-page { min-height: 100vh; background: radial-gradient(circle at 50% -15%, #195b78, #07151d 50%, #03080c); color: #effbff; font-family: Arial, Helvetica, sans-serif; }
.beaver-curve-header { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px clamp(16px, 4vw, 64px); border-bottom: 1px solid #297291; background: rgba(4, 20, 29, .92); }
.beaver-curve-brand { display: flex; align-items: center; gap: 14px; }
.beaver-curve-brand img { width: 70px; height: 54px; object-fit: contain; }
.beaver-curve-brand span, .beaver-curve-kicker, .beaver-curve-controls label span, .beaver-curve-status span, .beaver-curve-summary span { color: #76dffb; font-size: 10px; font-weight: 800; letter-spacing: 1.2px; }
.beaver-curve-brand h1 { margin: 3px 0 0; color: #fff; font-size: clamp(19px, 3vw, 28px); letter-spacing: .8px; }
.beaver-curve-live { display: grid; grid-template-columns: 8px auto; column-gap: 8px; align-items: center; color: #7de3ff; font-size: 11px; font-weight: bold; letter-spacing: .6px; }
.beaver-curve-live i { width: 8px; height: 8px; border-radius: 50%; background: #65f1a6; box-shadow: 0 0 12px #65f1a6; }
.beaver-curve-live strong { grid-column: 2; color: #fff; font-size: 13px; letter-spacing: 0; }
.beaver-curve-nav { display: flex; gap: 7px; padding: 8px clamp(16px, 4vw, 64px); border-bottom: 1px solid #285d72; background: #09202b; }.beaver-curve-nav a { min-width: 84px; padding: 8px 12px; border: 1px solid #356e84; background: linear-gradient(#163a4a, #0c2936); color: #a9dae9; font-size: 11px; font-weight: bold; letter-spacing: .7px; text-align: center; text-decoration: none; }.beaver-curve-nav a:hover { border-color: #69d5f0; color: #fff; }.beaver-curve-nav a.active { border-color: #5ce1f7; background: linear-gradient(#2795b8, #176985); color: #fff; box-shadow: inset 0 1px rgba(255,255,255,.25); }
.beaver-curve-content { max-width: 1320px; margin: auto; padding: clamp(18px, 3vw, 38px); }
.beaver-curve-intro { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 16px; }
.beaver-curve-intro h2 { margin: 5px 0; font-size: clamp(25px, 4vw, 39px); }
.beaver-curve-intro p { max-width: 690px; margin: 0; color: #b7d4df; line-height: 1.45; }
.beaver-curve-status { min-width: 178px; padding: 13px 16px; border-left: 3px solid #16c8ed; background: rgba(18, 67, 87, .64); }
.beaver-curve-status strong { display: block; margin: 4px 0; font-size: 25px; }.beaver-curve-status small { color: #9bc3d1; font-size: 11px; }
.beaver-curve-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin: 16px 0; padding: 15px; border: 1px solid #285f78; background: #0c2430; }
.beaver-curve-controls label { display: grid; gap: 6px; }.beaver-curve-controls input { min-height: 38px; padding: 0 10px; border: 1px solid #4c98b6; background: #07161e; color: #fff; color-scheme: dark; font: inherit; }
.beaver-curve-controls button { min-height: 38px; padding: 0 15px; border: 1px solid #55c9e9; background: linear-gradient(#268bb0, #16617f); color: #fff; font-size: 11px; font-weight: bold; letter-spacing: .5px; cursor: pointer; }.beaver-curve-controls button.secondary { background: #173846; border-color: #416f82; }.beaver-curve-controls button:disabled { opacity: .65; cursor: wait; }
.beaver-curve-error { margin: 12px 0; padding: 12px; border: 1px solid #ec6f62; background: #421f24; color: #ffd0cb; }
.beaver-curve-chart-card { overflow: hidden; border: 1px solid #3d89a8; border-radius: 7px; background: #0b1e28; box-shadow: 0 16px 32px rgba(0,0,0,.25); }
.beaver-curve-chart-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 13px 18px; border-bottom: 1px solid #315d70; background: #0d2a38; }.beaver-curve-chart-heading strong { display: block; color: #84e4ff; font-size: 12px; letter-spacing: .8px; }.beaver-curve-chart-heading span { color: #afccd7; font-size: 11px; }
.beaver-curve-legend { display: flex; flex-wrap: wrap; gap: 10px; white-space: nowrap; }.beaver-curve-legend span::before { content: ''; display: inline-block; width: 18px; height: 3px; margin: 0 5px 3px 0; vertical-align: middle; }.beaver-curve-legend .reference::before { background: #111; }.beaver-curve-legend .trace::before { background: #00e6ef; }.beaver-curve-legend .current::before { width: 9px; height: 9px; border: 2px solid #fff; border-radius: 50%; background: #f32658; }
.beaver-curve-chart-wrap { position: relative; background: #fff; }.beaver-curve-chart { display: block; width: 100%; max-height: min(76vw, 920px); }.beaver-curve-trace-line { fill: none; stroke: #00dce9; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; opacity: .78; filter: drop-shadow(0 0 3px #007f92); }.beaver-curve-trace-dot { fill: #62f4fb; stroke: #003643; stroke-width: 1.5; }.beaver-curve-selected-halo { fill: rgba(255, 194, 61, .18); stroke: #ffb000; stroke-width: 3; }.beaver-curve-current-halo { fill: rgba(243, 38, 88, .25); stroke: #fff; stroke-width: 3; }.beaver-curve-current-dot { fill: #f32658; stroke: #4b0014; stroke-width: 2; }.beaver-curve-current-label { fill: #8c001f; font: bold 11px Arial, sans-serif; text-anchor: middle; dominant-baseline: central; pointer-events: none; }.beaver-curve-loading { position: absolute; inset: 0; display: grid; place-items: center; color: #0f4660; font-weight: bold; background: rgba(255,255,255,.7); }
.beaver-curve-point-picker { display: grid; grid-template-columns: 120px 1fr minmax(220px, auto); align-items: center; gap: 16px; margin-top: 14px; padding: 13px 16px; border: 1px solid #386e83; background: #0c2633; }.beaver-curve-point-picker > div > span { display: block; color: #80dff7; font-size: 10px; font-weight: bold; letter-spacing: 1px; }.beaver-curve-point-picker strong { color: #fff; font-size: 16px; }.beaver-curve-point-picker input { width: 100%; accent-color: #ffb000; }.beaver-curve-point-readout { text-align: right; }.beaver-curve-point-readout span { color: #b6d4df !important; font-size: 11px !important; letter-spacing: 0 !important; }.beaver-curve-point-readout small { color: #79dff8; font-size: 11px; }
.beaver-curve-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }.beaver-curve-summary article { min-height: 70px; padding: 12px; border: 1px solid #2b6078; background: linear-gradient(140deg, #12384a, #0a1e29); }.beaver-curve-summary strong { display: block; margin-top: 6px; font-size: 18px; }.beaver-curve-summary small { color: #a9c9d5; font-size: 11px; }.beaver-curve-summary .good { color: #61eaa3; }.beaver-curve-summary .warning { color: #ffc45b; }
@media (max-width: 700px) { .beaver-curve-header, .beaver-curve-intro, .beaver-curve-chart-heading { align-items: flex-start; flex-direction: column; }.beaver-curve-header { padding: 10px 16px; }.beaver-curve-live { align-self: stretch; }.beaver-curve-nav { padding: 8px 12px; overflow-x: auto; }.beaver-curve-nav a { min-width: 76px; padding: 8px 10px; }.beaver-curve-content { padding: 18px 12px; }.beaver-curve-controls label { width: 100%; }.beaver-curve-controls input { width: 100%; box-sizing: border-box; }.beaver-curve-controls button { flex: 1 1 45%; }.beaver-curve-summary { grid-template-columns: repeat(2, 1fr); }.beaver-curve-point-picker { grid-template-columns: 1fr; gap: 8px; }.beaver-curve-point-readout { text-align: left; }.beaver-curve-chart { min-width: 650px; max-width: none; }.beaver-curve-chart-wrap { overflow-x: auto; } }
/* Beaver mobile MFT curve. */
.beaver-mobile-tabs { grid-template-columns: repeat(2, 1fr); }
.beaver-mobile-curve { overflow: hidden; border: 1px solid #3b6675; border-radius: 13px; background: #10171b; box-shadow: inset 0 1px #8de7f522, 0 5px 12px #0004; }
.beaver-mobile-curve header { display: grid; gap: 3px; padding: 12px 13px; background: #102b38; }.beaver-mobile-curve header strong { color: #bceaf6; font-size: 11px; }.beaver-mobile-curve header small { color: #8faeb8; font-size: 9px; }
.beaver-mobile-curve-chart { position: relative; background: #fff; }.beaver-mobile-curve-chart img { display: block; width: 100%; }.beaver-mobile-curve-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }.beaver-mobile-curve-trace { fill: none; stroke: #00dce9; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 3px #007f92); }.beaver-mobile-curve-now { fill: #f32658; stroke: #fff; stroke-width: 3; }
.beaver-mobile-curve footer { display: flex; justify-content: space-between; gap: 8px; padding: 10px 13px; color: #9dc4d0; font-size: 9px; }.beaver-mobile-curve footer span:last-child { color: #ff8aa5; font-weight: bold; text-align: right; }

/* Unified local portal utilities. */
.portal-page-title { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 19px; padding-bottom: 17px; border-bottom: 1px solid rgba(104,185,211,.21); }
.portal-page-title .eyebrow,
.eyebrow { color: #59d8f8; font-size: 9px; font-weight: 900; letter-spacing: 1.6px; }
.portal-page-title h1 { margin: 5px 0 5px; color: #f5fcff; font-size: clamp(25px,3vw,38px); letter-spacing: -.8px; }
.portal-page-title p { margin: 0; color: #82a7b4; font-size: 12px; line-height: 1.45; }
.portal-access-message { display: grid; width: min(520px,calc(100% - 40px)); min-height: 360px; place-content: center; justify-items: center; margin: 8vh auto; padding: 30px; box-sizing: border-box; border: 1px solid #295b6c; background: linear-gradient(145deg,#0e2f3c,#07161d); color: #eafaff; text-align: center; }
.portal-access-message.in-shell { width: 100%; min-height: 520px; margin: 0; }
.portal-access-message .access-symbol { display: grid; width: 56px; height: 56px; place-items: center; border: 1px solid #ffc156; border-radius: 50%; color: #ffc156; font-size: 30px; }
.portal-access-message h1 { margin: 18px 0 7px; }
.portal-access-message p { max-width: 400px; margin: 0; color: #93b4c0; line-height: 1.5; }
.portal-access-message a { margin-top: 20px; padding: 10px 16px; border: 1px solid #50cee9; background: #116985; color: white; font-size: 10px; font-weight: 900; letter-spacing: 1px; text-decoration: none; }

.portal-login-page { display: grid; min-height: 100vh; place-content: center; justify-items: stretch; gap: 25px; padding: 28px; box-sizing: border-box; background: radial-gradient(circle at 20% 10%,rgba(38,173,210,.2),transparent 33%),#061218; color: #eefbff; }
.portal-login-brand { display: flex; align-items: center; gap: 13px; color: white; text-decoration: none; }
.portal-login-brand img { width: 57px; height: 46px; object-fit: cover; border: 1px solid #2b7990; border-radius: 4px; }
.portal-login-brand span { display: grid; gap: 5px; }
.portal-login-brand strong { font-size: 13px; letter-spacing: 1.4px; }
.portal-login-brand small { color: #729ba9; font-size: 9px; }
.portal-login-card { width: min(460px,calc(100vw - 56px)); padding: 32px; box-sizing: border-box; border: 1px solid rgba(92,200,231,.3); background: linear-gradient(145deg,rgba(17,59,74,.92),rgba(6,21,28,.97)); box-shadow: 0 30px 90px rgba(0,0,0,.38),inset 0 2px #43d5f4; }
.portal-login-card .login-status { display: flex; align-items: center; gap: 8px; color: #68e9b8; font-size: 9px; font-weight: 900; letter-spacing: 1.1px; }
.portal-login-card .login-status i { width: 7px; height: 7px; border-radius: 50%; background: #5be8b3; box-shadow: 0 0 10px #5be8b3; }
.portal-login-card h1 { margin: 23px 0 7px; font-size: 34px; }
.portal-login-card > p { margin: 0 0 22px; color: #8cabb6; font-size: 12px; line-height: 1.5; }
.portal-login-card form { display: grid; gap: 14px; }
.portal-login-card label { display: grid; gap: 7px; color: #75a4b3; font-size: 8px; font-weight: 900; letter-spacing: 1.2px; }
.portal-login-card input { height: 45px; box-sizing: border-box; border: 1px solid #315c6b; outline: none; background: #06171e; color: white; padding: 0 12px; }
.portal-login-card input:focus { border-color: #55dafa; box-shadow: 0 0 0 2px rgba(85,218,250,.08); }
.portal-login-card button { height: 46px; margin-top: 4px; border: 1px solid #55dafa; background: linear-gradient(#1988aa,#0e617d); color: white; cursor: pointer; font-size: 10px; font-weight: 900; letter-spacing: 1.1px; }
.portal-login-card button span { float: right; margin-right: 8px; }
.portal-login-help { display: block; margin-top: 18px; color: #678c99; font-size: 9px; text-align: center; }
.portal-login-error { margin-bottom: 15px; padding: 10px; border: 1px solid #ae4d50; background: rgba(117,31,35,.3); color: #ffb7b7; font-size: 11px; line-height: 1.45; }

@media(max-width:650px){.portal-page-title{align-items:flex-start;flex-direction:column}.portal-login-card{padding:24px}}
