.electrical-section { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 30%), repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 12px), rgba(10, 13, 18, 0.72); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 18px 36px rgba(0, 0, 0, 0.24); } .electrical-toolbar { display: flex; align-items: end; justify-content: flex-end; gap: 10px; flex-wrap: wrap; } .electrical-toolbar label { min-width: 260px; } .electrical-live-chip--sse { border-color: rgba(34, 197, 94, 0.34); background: rgba(34, 197, 94, 0.1); color: #86efac; } .electrical-layout { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 14px; flex: 1; } .electrical-canvas-shell { min-width: 0; min-height: 0; overflow: auto; border: 1px solid rgba(88, 103, 121, 0.5); border-radius: 8px; background: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px), #070b12; background-size: 28px 28px; } .electrical-canvas { position: relative; min-width: 100%; min-height: 100%; } .electrical-background { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; } .electrical-background--contain { object-fit: contain; } .electrical-background--cover { object-fit: cover; } .electrical-background--stretch { object-fit: fill; } .electrical-wires { position: absolute; inset: 0; z-index: 1; pointer-events: none; } .electrical-wire { fill: none; stroke: #94a3b8; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0.9; } .electrical-wire--power { stroke: #f97316; stroke-width: 3; } .electrical-wire--signal { stroke: #38bdf8; stroke-dasharray: 8 6; } .electrical-wire--alert { stroke: #ef4444; stroke-dasharray: 5 5; } .electrical-wire--animated { animation: electricalWireFlow 900ms linear infinite; } .electrical-node { position: absolute; z-index: 2; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 6px; overflow: hidden; padding: 10px; border: 1px solid rgba(148, 163, 184, 0.34); border-radius: 7px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 32%), rgba(15, 23, 42, 0.9); color: #e5e7eb; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 24px rgba(0, 0, 0, 0.28); } .electrical-node--decoration { border-style: dashed; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.026) 0 1px, transparent 1px 10px), rgba(15, 23, 42, 0.74); } .electrical-node--active { border-color: rgba(34, 197, 94, 0.58); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 1px rgba(34, 197, 94, 0.2), 0 0 22px rgba(34, 197, 94, 0.16); } .electrical-node--alarm { border-color: rgba(239, 68, 68, 0.76); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 1px rgba(239, 68, 68, 0.24), 0 0 26px rgba(239, 68, 68, 0.22); } .electrical-node__header, .electrical-node__footer { display: flex; align-items: center; gap: 6px; min-width: 0; } .electrical-node__header span, .electrical-node__footer span, .electrical-node__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .electrical-node__header { color: #f8fafc; font-size: 0.78rem; font-weight: 750; } .electrical-node__value { align-self: center; min-width: 0; overflow: hidden; color: #f8fafc; font-size: clamp(1.2rem, 2vw, 1.9rem); font-variant-numeric: tabular-nums; line-height: 1; text-overflow: ellipsis; white-space: nowrap; } .electrical-node__value small { margin-left: 6px; color: var(--muted); font-size: 0.72rem; font-weight: 650; } .electrical-node__text { align-self: center; color: #cbd5e1; font-size: 0.9rem; } .electrical-node__footer { color: var(--muted); font-size: 0.68rem; } .electrical-node__alarm { margin-left: auto; color: #fca5a5; } .electrical-side-panel { display: grid; align-content: start; gap: 10px; } .electrical-side-panel div { min-height: 82px; padding: 12px; border: 1px solid rgba(88, 103, 121, 0.46); border-radius: 8px; background: rgba(2, 6, 23, 0.32); } .electrical-side-panel span { display: block; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; } .electrical-side-panel strong { display: block; margin-top: 10px; color: #f8fafc; font-size: 1.18rem; line-height: 1.2; } @keyframes electricalWireFlow { to { stroke-dashoffset: -28; } } @media (max-width: 1200px) { .electrical-layout { grid-template-columns: 1fr; } .electrical-side-panel { grid-template-columns: repeat(4, minmax(0, 1fr)); } } @media (max-width: 680px) { .electrical-side-panel { grid-template-columns: 1fr 1fr; } .electrical-toolbar { align-items: stretch; flex-direction: column; } .electrical-toolbar label { min-width: 0; } }