.internal-feeds{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:4;overflow:visible}.internal-feeds path{stroke-linecap:round;pointer-events:none}.panel .panel-explainer{font-weight:750!important;font-size:12px!important}.cable-jacket{filter:drop-shadow(1px 2px 1px #21334088)}.cable-specular{pointer-events:none}.ac-energy{animation:alternatingEnergy 1s ease-in-out infinite alternate;pointer-events:none}@keyframes alternatingEnergy{from{stroke-dashoffset:0}to{stroke-dashoffset:12}}
body #board .device .terminal,body #board .device .terminal:is(.connected,.selected,.voltage-present,.connection-success){box-shadow:inset 0 1px 1px #fff9,inset 0 -2px 2px #47515888,0 3px 0 #737c80,2px 5px 3px #26374066!important;background-size:112% 112%!important}
body #board .device .terminal.voltage-present{outline:2px solid #eac15b!important;outline-offset:2px!important}
#board .lamp .visible-bulb svg{filter:drop-shadow(6px 8px 3px #31495b44)}.motor-current-setting{display:flex;flex-wrap:wrap;align-items:center;gap:7px;font-size:12px;margin-top:12px;color:#e3edf2}.motor-current-setting input{width:70px;padding:7px;background:#e8efed;color:#152b38;border:1px solid #819593;border-radius:4px}.meter-modes{grid-template-columns:repeat(5,1fr)!important}
@media(prefers-reduced-motion:reduce){.ac-energy{animation:none!important}}
/* Raised cast-metal keys: a bright bevel above a thick graphite base. */
body :is(button,.btn,.task-select):not(.physical-switch-button):not(.apparatus-control){
 background:repeating-linear-gradient(173deg,transparent 0 9px,#fff1 9px 10px,transparent 10px 19px,#0002 19px 20px),linear-gradient(165deg,#89928e 0%,#596562 12%,#424e4c 44%,#283633 49%,#52615a 95%)!important;
 border:3px solid #25312f!important;border-top:3px solid #c6ccc1!important;border-left:3px solid #99a49b!important;border-radius:10px!important;
 box-shadow:inset 0 2px 2px #faffed55,inset 2px 0 2px #b6c3b355,inset 0 -4px 3px #0b191ccc,0 2px 0 #7c897f,0 7px 0 #273430,0 9px 0 #111c1b,3px 12px 7px #0006!important;
 min-height:48px;margin-bottom:7px;letter-spacing:.015em;text-shadow:0 2px 1px #000!important;color:#fffdf1!important;transform:translateY(-2px)!important;
}
body :is(button,.btn,.task-select):not(.physical-switch-button):not(.apparatus-control):active:not(:disabled){transform:translateY(5px)!important;box-shadow:inset 0 3px 5px #071414aa,0 2px 0 #1f2c28,0 3px 2px #0006!important}
body :is(button,.btn,.task-select):not(.physical-switch-button):not(.apparatus-control):is(.active,.primary,[aria-pressed="true"]){border-bottom-color:#8aac7d!important;color:#e9ffc9!important}
body :is(button,.btn):not(.apparatus-control).red{background:linear-gradient(160deg,#a1776f,#753e36 43%,#492821 49%,#805148)!important}
body :is(button,.btn):not(.apparatus-control).green{background:linear-gradient(160deg,#839a7a,#426440 43%,#294327 49%,#55784d)!important}

/* Q0 and its incoming terminals belong to the enclosure; internal buses are concealed. */
body #board .panel .input-zone{width:255px!important}
body #board .panel .main-breaker{position:absolute;left:115px;top:120px;width:112px;height:174px;z-index:4;cursor:pointer;filter:drop-shadow(4px 6px 3px #26374666)}
.main-breaker svg{width:100%;height:145px;display:block}.main-breaker strong{display:block;text-align:center;font-size:12px;color:#143149}.main-breaker:focus-visible{outline:2px dashed #47545b;outline-offset:4px}.main-breaker.on strong{color:#9b251c}
body #board .device .terminal{background-size:100% 100%!important}
body #board .lamp .visible-bulb svg{display:none!important}
.bulb-product-photo{position:relative;width:100%;height:100%;object-fit:contain;filter:drop-shadow(4px 6px 3px #26374655)}
.bulb-emission{display:none;position:absolute;left:20%;right:20%;top:44%;bottom:4%;border-radius:50%;background:radial-gradient(ellipse,#fffdeccc 0%,#ffe89488 55%,transparent 75%);box-shadow:0 0 24px 15px #ffd86b66;mix-blend-mode:screen}
.visible-bulb.illuminated .bulb-emission{display:block}
.visible-bulb.illuminated .bulb-product-photo{filter:brightness(1.2) drop-shadow(0 0 14px #ffd667)}

/* Standalone apparatus: retain physical housings, remove surrounding UI cards. */
body #board .panel .main-breaker{left:98px;top:156px;width:66px;height:151px;min-height:0;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
.main-breaker>img{display:block;width:100%;height:130px;object-fit:contain;pointer-events:none}.main-breaker:active>img{transform:translateY(2px)}
body #board .panel .power-pilot{left:174px;top:105px;z-index:6;width:96px}
body #board .device:is(.lamp,.switch,.switch2,.intermediate){background:transparent!important;background-image:none!important;border-color:transparent!important;box-shadow:none!important;backdrop-filter:none!important}
body #board .device:is(.lamp,.switch,.switch2,.intermediate) .terminal-row{background:transparent!important;border-color:transparent!important;box-shadow:none!important}
body #board .device:is(.lamp,.switch,.switch2,.intermediate) h3{background:transparent!important;border-color:transparent!important;box-shadow:none!important;text-shadow:0 1px 2px #fff,0 -1px 2px #fff}
body #board .lamp .lamp-state-notice{background:transparent!important;border-color:transparent!important;box-shadow:none!important;text-shadow:0 1px 2px #fff}
.cable-jacket{filter:drop-shadow(1.4px 2.5px 1px #1b283b99)}
.cable-specular{opacity:.55;stroke-linecap:round;filter:drop-shadow(0 .6px .25px #ffffff33)}

/* One approved breaker appearance throughout residential practices. */
body #board .panel .breaker,body #board .panel .breaker.on{background:transparent!important;border-color:transparent!important;box-shadow:none!important}
body #board .panel .breaker .clear-port-label{color:#143149!important;text-shadow:0 1px #fff}
body #board .panel .breaker:after{display:none!important}
body #board .panel .breaker-photo{left:10px;top:20px;width:66px;height:130px;background:transparent!important;border:0!important;border-radius:0!important;overflow:visible;filter:drop-shadow(3px 5px 2px #26374655)}
body #board .panel .breaker-photo img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}
#equipment svg[data-apparatus="breaker"]{filter:drop-shadow(3px 5px 2px #26374655)}
/* Physical power compartment, distinct from the low-voltage data socket. */
body #board .nvr{background:transparent!important;border-color:transparent!important;box-shadow:none!important}
body #board .nvr-hardware{padding:7px 16px}.nvr .nvr-screen{height:80px}.nvr .nvr-case{margin-top:9px;padding:7px}
.nvr-power-source{position:absolute;left:8px;top:158px;width:280px;height:162px;pointer-events:none}
.nvr-power-source img{display:block;width:100%;height:100%;object-fit:fill;filter:drop-shadow(3px 4px 2px #26374655)}
.nvr-power-source>span{position:absolute;left:4px;top:-15px;color:#213b49;font:bold 10px system-ui;text-shadow:0 1px #fff}
body #board .nvr .terminal-row{left:12px;right:6px;bottom:3px;gap:8px!important;background:transparent!important;justify-content:space-between!important}
body #board .nvr .terminal-wrap{width:68px;min-width:68px!important;font-size:12px!important;text-shadow:0 1px #fff}
body #board .nvr .terminal-wrap:last-child{margin-left:25px}
