
.global-nav{display:flex;gap:5px;margin:0 32px;padding:7px;overflow-x:auto;background:rgba(6,20,34,.92);border:1px solid rgba(126,211,255,.10);border-radius:14px}
.global-nav-item{flex:0 0 auto;padding:10px 14px;color:#8aa4b8;border-radius:10px;font-size:.72rem;font-weight:800;letter-spacing:.03em;text-decoration:none}
.global-nav-item:hover{color:#eaf8ff;background:rgba(126,211,255,.05)}
.global-nav-item.active{color:#67d8ff;background:rgba(103,216,255,.10);box-shadow:inset 0 0 0 1px rgba(103,216,255,.13)}
.global-return{display:block;margin:0 12px 16px;padding:10px 12px;color:#67d8ff;background:rgba(103,216,255,.06);border:1px solid rgba(103,216,255,.10);border-radius:10px;font-size:.70rem;font-weight:800;text-decoration:none}
.monitoring-header-actions{display:flex;align-items:center;gap:18px}
.console-language>span,.equipment-picker>span{display:block;margin-bottom:5px;color:#7895aa;font-size:.64rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.console-language select,.equipment-picker select{min-width:140px;padding:9px 11px;color:#f5fbff;background:#081a2b;border:1px solid rgba(126,211,255,.18);border-radius:10px;outline:none}
.monitoring-main{display:grid;gap:16px;padding:24px 32px 42px}
.monitoring-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.monitor-stat,.console-card{background:linear-gradient(145deg,rgba(13,36,56,.95),rgba(7,24,39,.96));border:1px solid rgba(126,211,255,.10);border-radius:15px}
.monitor-stat{padding:18px}.monitor-stat span,.monitor-stat strong,.monitor-stat small{display:block}.monitor-stat span{color:#7895aa;font-size:.64rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase}.monitor-stat strong{margin-top:10px;color:#f0f9ff;font-size:1.75rem}.monitor-stat small{margin-top:7px;color:#6f899c;line-height:1.4}.monitor-good strong{color:#55dda1}.monitor-alarm strong{color:#ffbd69}
.console-section{display:grid;gap:14px}.section-heading-row{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding:10px 2px}.section-heading-row h2{margin:6px 0 0;color:#eef9ff;font-size:1.55rem}.section-heading-row p{max-width:760px;margin:8px 0 0;color:#8aa4b8;line-height:1.5}
.console-card{padding:20px}.card-head{display:flex;align-items:center;justify-content:space-between;gap:18px}.card-label{color:#7895aa;font-size:.64rem;font-weight:800;letter-spacing:.07em;text-transform:uppercase}.card-head h3,.console-card h3{margin:6px 0 0;color:#edf9ff}
.pill-row{display:flex;flex-wrap:wrap;gap:8px}.state-pill,.unit-pill,.foundation-tag{padding:7px 9px;color:#8fcfeb;background:rgba(103,216,255,.06);border:1px solid rgba(103,216,255,.11);border-radius:999px;font-size:.65rem;font-weight:800}
.alarm-category-grid,.report-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.alarm-category-grid article{padding:16px;background:rgba(9,28,45,.87);border:1px solid rgba(126,211,255,.08);border-radius:13px}.alarm-category-grid strong,.alarm-category-grid span{display:block}.alarm-category-grid strong{color:#eaf8ff}.alarm-category-grid span{margin-top:7px;color:#7f99ad;font-size:.72rem;line-height:1.45}.predictive-category{border-color:rgba(85,221,161,.18)!important}.predictive-category strong{color:#55dda1!important}
.console-empty{display:grid;place-items:center;min-height:130px;margin-top:14px;padding:22px;text-align:center;background:rgba(255,255,255,.015);border:1px dashed rgba(126,211,255,.12);border-radius:12px}.console-empty.tall{min-height:260px}.console-empty strong{color:#e9f8ff}.console-empty span{max-width:640px;margin-top:7px;color:#7f99ad;line-height:1.5}
.console-table-wrap{margin-top:14px;overflow-x:auto}.console-table{width:100%;border-collapse:collapse;font-size:.72rem}.console-table th,.console-table td{padding:12px 10px;border-bottom:1px solid rgba(126,211,255,.07);text-align:left;white-space:nowrap}.console-table th{color:#6f899c;font-size:.62rem;letter-spacing:.05em;text-transform:uppercase}.console-table td{color:#b8ccda}.console-table a{color:#67d8ff}
.escalation-wide p{margin:14px 0 0;color:#819bad;line-height:1.5}.escalation-line{display:grid;grid-template-columns:auto 1fr auto auto 1fr auto auto 1fr auto auto 1fr;gap:9px;align-items:center;margin-top:17px}.escalation-line span{display:grid;place-items:center;width:28px;height:28px;color:#67d8ff;background:rgba(103,216,255,.08);border-radius:8px;font-size:.68rem;font-weight:900}.escalation-line strong{color:#bcd2df;font-size:.72rem}.escalation-line i{color:#4c7a95;font-style:normal}
.trend-grid,.admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.trend-card{min-height:330px}.trend-chart{width:100%;height:230px;margin-top:15px;overflow:visible;background:rgba(255,255,255,.012);border-radius:10px}.chart-axis{stroke:rgba(126,211,255,.10);stroke-width:1}.chart-line{fill:none;stroke:currentColor;color:#67d8ff;stroke-width:3;vector-effect:non-scaling-stroke}.trend-card:nth-child(2) .chart-line{color:#55dda1}.trend-interpretation p{margin:10px 0 0;color:#b5cad8;line-height:1.55}
.report-card{min-height:180px}.report-icon{display:grid;place-items:center;width:34px;height:34px;color:#67d8ff;background:rgba(103,216,255,.07);border-radius:9px;font-size:.65rem;font-weight:900}.report-card strong{display:block;margin-top:15px;color:#ecf9ff}.report-card p{min-height:62px;margin:8px 0 14px;color:#819bad;font-size:.72rem;line-height:1.5}.foundation-live{color:#55dda1;border-color:rgba(85,221,161,.15)}.predictive-report{border-color:rgba(85,221,161,.18)}
.equipment-report-links,.admin-assets,.role-list{display:grid;gap:8px;margin-top:14px}.equipment-report-links a,.admin-assets a{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 13px;color:#bcd2df;background:rgba(255,255,255,.015);border:1px solid rgba(126,211,255,.07);border-radius:10px;text-decoration:none}.equipment-report-links a:hover,.admin-assets a:hover{border-color:rgba(103,216,255,.19)}
.hierarchy{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin-top:16px}.hierarchy strong{padding:9px 11px;color:#cce0eb;background:rgba(103,216,255,.05);border-radius:8px;font-size:.72rem}.hierarchy span{color:#527991}.role-list div{display:grid;gap:3px;padding:11px;background:rgba(255,255,255,.015);border-radius:9px}.role-list strong{color:#dff3fd;font-size:.76rem}.role-list span{color:#7f99ad;font-size:.68rem;line-height:1.4}.admin-assets a strong{color:#dff3fd}.admin-assets a span{flex:1;color:#7895aa;font-size:.68rem}.admin-assets a em{color:#55dda1;font-weight:800;font-style:normal}
@media(max-width:1100px){.monitoring-summary,.alarm-category-grid,.report-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.escalation-line{grid-template-columns:auto 1fr}.escalation-line i{display:none}}
@media(max-width:760px){.global-nav{margin:0 14px}.monitoring-main{padding:18px 14px 36px}.monitoring-header-actions,.section-heading-row{align-items:stretch;flex-direction:column}.monitoring-summary,.alarm-category-grid,.report-grid,.trend-grid,.admin-grid{grid-template-columns:1fr}}

.scope-explainer{
    display:flex;
    align-items:center;
    gap:9px;
    flex-wrap:wrap;
    margin-top:15px;
}
.scope-explainer span{
    padding:9px 11px;
    color:#cfe4ef;
    background:rgba(103,216,255,.05);
    border:1px solid rgba(103,216,255,.08);
    border-radius:9px;
    font-size:.7rem;
    font-weight:800;
}
.scope-explainer i{
    color:#4f7891;
    font-style:normal;
}
.schedule-help{
    margin:14px 0 0;
    color:#819bad;
    line-height:1.5;
}


.live-badge{
    padding:8px 11px;
    color:#55dda1;
    background:rgba(85,221,161,.08);
    border:1px solid rgba(85,221,161,.18);
    border-radius:999px;
    font-size:.68rem;
    font-weight:900;
}
.admin-form{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
    gap:10px;
    margin-top:16px;
    padding:14px;
    background:rgba(255,255,255,.018);
    border:1px solid rgba(126,211,255,.08);
    border-radius:12px;
}
.admin-form input,.admin-form select,.mini-form input,.mini-form select{
    min-height:42px;
    padding:9px 10px;
    color:#eaf8ff;
    background:#081a2b;
    border:1px solid rgba(126,211,255,.16);
    border-radius:9px;
}
.admin-form button,.mini-form button,.small-action{
    min-height:38px;
    padding:8px 11px;
    color:#071924;
    background:#67d8ff;
    border:0;
    border-radius:9px;
    font-weight:900;
    cursor:pointer;
}
.admin-form button:hover,.mini-form button:hover,.small-action:hover{filter:brightness(1.06)}
.small-action{min-height:30px;padding:6px 8px;font-size:.67rem}
.small-action.secondary{color:#cce4ef;background:rgba(103,216,255,.12);border:1px solid rgba(103,216,255,.16)}
.small-action.danger{color:#ffd8d8;background:rgba(255,91,91,.13);border:1px solid rgba(255,91,91,.18)}
.assignment-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}
.mini-form{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:13px;background:rgba(255,255,255,.018);border:1px solid rgba(126,211,255,.07);border-radius:11px}
.mini-form strong{width:100%;color:#dff3fd}
.mini-form label{display:flex;align-items:center;gap:5px;color:#8fa9ba;font-size:.72rem}
.row-actions{display:flex;gap:6px;flex-wrap:wrap}
.suppressed-badge{display:inline-block;margin-left:5px;padding:3px 6px;color:#ffbd69;background:rgba(255,189,105,.08);border:1px solid rgba(255,189,105,.16);border-radius:999px;font-size:.56rem;font-weight:900}
.console-toolbar{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}
.console-toolbar label span{display:block;margin-bottom:5px;color:#7895aa;font-size:.62rem;font-weight:800;text-transform:uppercase}
.console-toolbar select{min-width:180px;padding:9px 11px;color:#f5fbff;background:#081a2b;border:1px solid rgba(126,211,255,.18);border-radius:10px}
@media(max-width:850px){.assignment-grid{grid-template-columns:1fr}}

.v6-report-table { display:grid; gap:10px; }
.v6-report-row { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:12px 0; border-bottom:1px solid rgba(120,145,170,.18); }
.v6-report-actions { display:flex; flex-wrap:wrap; gap:8px; }
.v6-report-actions a { text-decoration:none; padding:7px 10px; border:1px solid rgba(120,145,170,.28); border-radius:8px; }

.alarm-config-link{margin-left:auto;display:inline-flex;text-decoration:none}.simulation-actions{display:flex;gap:12px;flex-wrap:wrap}.secondary-action{border:1px solid #aebdca;background:white;border-radius:8px;padding:10px 14px;cursor:pointer}.simulated-badge{display:inline-block;margin-left:8px;padding:2px 6px;border-radius:999px;font-size:9px;font-weight:800;letter-spacing:.08em;background:#eef5fa;color:#4a6b83;border:1px solid #ccdae4}.rule-grid small{display:block;margin-top:4px;color:#72879a;font-size:10px}

.simulation-note{margin:0 0 14px;color:#60788d;line-height:1.55;max-width:900px}
.rule-form-actions{display:flex;gap:10px;align-items:end}.rule-row:target,.console-table tr:target{outline:3px solid rgba(43,143,188,.35);background:#f0f9fd}.rule-grid [hidden]{display:none!important}
.admin-search{display:flex;gap:10px;align-items:center;margin:10px 0}.admin-search input{min-width:320px}.recipient-list{display:grid;gap:8px;margin-top:12px}.recipient-row{display:grid;grid-template-columns:90px 1fr auto;gap:12px;align-items:center;padding:10px;border-top:1px solid #e3eaf0}.implementation-note{display:block;margin-top:12px;color:#718496}
/* V6.4 stabilization */
.monitor-stat-link{display:block;text-decoration:none;color:inherit}.monitor-stat-link .monitor-stat{height:100%}.monitor-stat-link:hover .monitor-stat{transform:translateY(-1px);box-shadow:0 10px 24px rgba(22,51,75,.08)}
.alarm-detail-row td{background:#f8fbfd!important;padding:16px!important}.alarm-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.alarm-detail-grid section{background:#fff;border:1px solid #dce6ed;border-radius:12px;padding:14px}.alarm-history-item{padding:10px 0;border-bottom:1px solid #edf2f5}.alarm-history-item:last-child{border-bottom:0}.alarm-history-item strong,.alarm-history-item span,.alarm-history-item p{display:block}.alarm-history-item span{font-size:11px;color:#71869a;margin-top:3px}.alarm-history-item p{margin:5px 0 0;font-size:12px}.transport-status{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:14px;padding:12px;border:1px solid #dce6ed;border-radius:10px;background:#f8fbfd}.transport-status small{flex-basis:100%;color:#71869a}
.membership-list{display:grid;gap:8px}.membership-row{display:grid;grid-template-columns:minmax(180px,1fr) 2fr;align-items:center;gap:12px;padding:10px;border-bottom:1px solid #edf2f5}.group-chips span button{border:0;background:transparent;cursor:pointer;font-weight:800;margin-left:4px}.cascade-by-rule{display:grid;gap:12px}.cascade-rule-card{border:1px solid #dce6ed;border-radius:12px;padding:12px}.cascade-rule-card>div:first-child{display:flex;justify-content:space-between;gap:10px;margin-bottom:8px}.empty-friendly.compact{padding:8px}.schedule-row{grid-template-columns:1.1fr 1.1fr 1.2fr auto auto}
@media(max-width:900px){.alarm-detail-grid{grid-template-columns:1fr}.membership-row{grid-template-columns:1fr}.schedule-row{grid-template-columns:1fr}}
