/* WireMap 0.5 - consistent administration design system, asset dashboard-inspired. Not a verbatim copy of an unavailable external UI. */
:root{--wm-navy:#15243a;--wm-deep:#0e1b2d;--wm-primary:#2563eb;--wm-surface:#fff;--wm-bg:#f5f7fb;--wm-outline:#e3e9f1;--wm-green:#15956d;--wm-radius:12px;color-scheme:light}
body{background:var(--wm-bg)}
.sidebar,.admin-nav{background:var(--wm-navy)!important}
.nav-item{border-left:3px solid transparent;transition:background .12s}
.nav-item.active{border-left-color:#73a4ff;background:#2c4667}
.nav-caption,.section-title{text-transform:none;letter-spacing:.02em}
.admin-head,.header{border-bottom:1px solid var(--wm-outline);background:#fff}
.panel,.kpi,.stat,.editor-zone{border-radius:var(--wm-radius);box-shadow:0 1px 3px rgba(18,40,70,.025)}
.kpi{border-top:3px solid #3b82f6}.kpi:nth-child(2){border-top-color:#0d9488}.kpi:nth-child(3){border-top-color:#f59e0b}.kpi:nth-child(4){border-top-color:#64748b}
.btn.primary,.primary-btn{background:#2563eb;border-color:#2563eb;color:#fff}.btn.primary:hover,.primary-btn:hover{background:#1d4ed8}
.security-intro{display:flex;align-items:center;gap:16px;background:linear-gradient(105deg,#edf4ff,#fff);border:1px solid #dce8fa;border-radius:12px;padding:20px 23px;margin-bottom:18px}
.security-intro strong{font-size:17px;color:#1b395e}.security-intro p{font-size:12px;color:#627893;line-height:1.65;margin:5px 0 0}
.security-emblem{background:#d9e9ff;color:#235cc3;border-radius:12px;width:44px;height:44px;display:grid;place-items:center;font-size:22px}
.security-cards{grid-template-columns:repeat(3,minmax(0,1fr))}
.tag{border-radius:6px;padding:5px 9px;font-weight:600}
.panel-head{padding-bottom:9px;border-bottom:1px solid #edf1f6}
.panel table tr:hover td{background:#f9fbff}
.pathway-bar{top:65px;border-color:#9eddd7;color:#0b665f}
#scene [data-kind="pathway"]{cursor:pointer}
@media(max-width:800px){.security-cards{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.security-cards{grid-template-columns:1fr}.security-intro{align-items:flex-start}}

/* v0.6 - asset catalog, port visualization and rack units */
.asset-search-list{max-height:380px;overflow:auto;border:1px solid #e0e8f2;border-radius:10px;margin-top:12px;background:#fff}
.asset-result{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;border-bottom:1px solid #eef2f7}
.asset-result:last-child{border-bottom:0}.asset-result strong{font-size:12px;color:#213752}.asset-result small{display:block;font-size:11px;color:#7185a0;margin-top:4px;line-height:1.5}
.asset-result .mini-btn{flex:none}.asset-result button:disabled{opacity:.45;cursor:not-allowed}.asset-picker-field input{margin-bottom:8px}
.port-overview{background:#eef5ff;padding:13px 15px;border-radius:8px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;font-size:12px;color:#355c8c}
.port-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:7px;margin:13px 0}
.port-cell{border:1px solid #d8e3ef;border-radius:7px;background:#f8fafc;color:#738398;display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 2px;min-width:0;cursor:default}
.port-cell strong{font-size:12px}.port-cell small{font-size:9px}.port-cell.port-used{background:#e7f6ef;border-color:#9bd5b7;color:#0a8554;cursor:pointer}
.port-cell.port-used:hover{background:#cef0e0}.port-dot{width:8px;height:8px;border-radius:50%;background:#bec9d5}.port-used .port-dot{background:#18a76c}
.port-pager{display:flex;align-items:center;justify-content:center;gap:12px;color:#607995;font-size:12px;margin:8px 0 16px}.port-pager button:disabled{opacity:.4;cursor:not-allowed}
.rack-drawing{border:8px solid #303f54;background:#e8eff7;border-radius:8px;padding:8px;max-height:410px;overflow:auto}.rack-u{display:flex;align-items:center;gap:10px;min-height:34px;margin:3px 0}
.rack-u-num{font-size:10px;color:#62738b;width:34px;text-align:right;flex:none}.rack-blank{background:#f5f8fc;border:1px dashed #b7c5d6;color:#afbac8;flex:1;text-align:center;padding:7px;font-size:10px;border-radius:4px}
.rack-filled{flex:1;border:1px solid #204f88;background:#2b5d97;color:white;font-size:11px;text-align:left;padding:7px 10px;border-radius:4px}.rack-filled small{float:right;font-size:9px;opacity:.78}
@media(max-width:650px){.port-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.asset-result{align-items:flex-start;flex-direction:column}}

/* RC14: optional asset linkage registration */
.wm-asset-mode-buttons{display:flex;gap:10px;flex-wrap:wrap;margin:5px 0 8px}
.wm-asset-mode-buttons label{flex:1;min-width:140px;display:flex;align-items:center;gap:8px;background:#f6f8fc;border:1px solid #dbe4f0;border-radius:9px;padding:11px 13px;font-size:13px;font-weight:650;cursor:pointer}
.wm-asset-mode-buttons label:has(input:checked){border-color:#4d7edb;background:#eef4ff;color:#194fa2}
.wm-asset-mode-buttons input{accent-color:#2563eb;flex:0 0 auto}
.asset-picker-field[hidden]{display:none!important}
