/* 卡牌作为硬件：薄玻璃屏、厚底仓、侧向接口和绕背线缆。 */
.card-face,.field-card,.setup-card-preview{clip-path:none!important;overflow:visible!important;border:0!important;background:transparent!important;box-shadow:none!important;isolation:isolate;filter:drop-shadow(3px 6px 3px #0009)}
.card-face::before,.card-face::after,.field-card::before,.field-card::after,.setup-card-preview::before,.setup-card-preview::after,.card-hardware{display:none!important}
.device-enclosure{position:absolute;top:0;left:0;width:106%;height:104.286%;z-index:0;background:url('assets/ui/card-device-shell.svg') 0 0/100% 100% no-repeat;pointer-events:none;overflow:visible}
.device-enclosure::after{display:none}
.card-art,.setup-card-preview .setup-card-art{z-index:1;border:1px solid #b8d8c28c!important;border-radius:2px;background:radial-gradient(ellipse at 60% 38%,#325f5942,#12333355 65%,#081c22b3)!important;box-shadow:inset 0 0 0 1px #001315,inset 0 0 15px #a5f7df13,1px 1px 1px #061012a0;backdrop-filter:none;isolation:isolate}
.card-art::after,.setup-card-preview .setup-card-art::after{content:"";position:absolute;inset:0;z-index:4;pointer-events:none;background:linear-gradient(112deg,#e0ffff1d 0%,#e0ffff04 31%,transparent 32% 73%,#e0ffff0c 74%,transparent 100%);box-shadow:inset 1px 1px #d7ffed26}
.card-art img,.setup-card-preview .setup-card-art>img{opacity:.94;filter:saturate(.82) contrast(1.04);padding:6%}
.card-readout{left:10%;right:9%;bottom:8.5%;height:14%;grid-template-columns:minmax(0,1fr) 22%;column-gap:5%;z-index:6;overflow:visible}
.card-readout::before{display:none}
.card-readout .card-name{font-size:clamp(4px,14cqw,22px);color:#dce9dd;text-shadow:0 1px #000,0 0 5px #c3e9c52b;letter-spacing:.01em}
.card-readout .card-value{font-size:clamp(13px,25cqw,42px);color:#eff7d7;text-shadow:0 0 5px #a8ffc92e}
.card-readout .card-protocol-value{font-size:clamp(6px,11cqw,16px);color:#9ce5df}
.card-interfaces{position:absolute;inset:0;width:100%;height:100%;z-index:5;pointer-events:none;filter:drop-shadow(.6px 1px .6px #000b)}
.card-interfaces>svg{overflow:visible;filter:none}
.interface-cable-back{fill:none;stroke:#03090b;stroke-width:5.2;stroke-linecap:round}
.interface-cable{fill:none;stroke:#50696a;stroke-width:3.9;stroke-linecap:round}
.interface-cable-highlight{fill:none;stroke:#bdc5a2;stroke-width:1;stroke-linecap:round;opacity:.68}
.interface-mount-shadow{fill:#00090dd9}.interface-mount-rail{stroke:#a8b9a2;stroke-width:.5}.edge-rail-seam{fill:none;stroke:#07161c;stroke-width:.8}.edge-feed-guide{fill:none;stroke:#50686a;stroke-width:.6}
.edge-cable-strap path{fill:#7f9387;stroke:#d0d5b4;stroke-width:.4}.edge-cable-strap circle{fill:#13292b;stroke:#c1cdb5;stroke-width:.25}
.edge-flange,.edge-neck,.edge-lock-ring,.edge-service-collar{stroke:#16292c;stroke-width:.6}.edge-collar-ribs{fill:none;stroke:#c7cdb0;stroke-width:.5;opacity:.8}.edge-socket-recess{fill:#020e15;stroke:#c7b16b;stroke-width:.55}.edge-keyway{fill:none;stroke:#80dcd3;stroke-width:.65}.edge-gold-pins{fill:none;stroke:#efd390;stroke-width:.5}.edge-bayonet{fill:none;stroke:#ecedcd;stroke-width:1.2;stroke-linecap:square}.edge-status-led{fill:none;stroke:#7ce1c9;stroke-width:1}.edge-flange-fastener{fill:#0a2027;stroke:#bccbab;stroke-width:.35}
.edge-flange,.edge-neck,.edge-lock-ring,.edge-service-collar{stroke:#0b1b29;stroke-width:.8}.edge-collar-ribs{stroke:#eff7ff;stroke-width:.8;opacity:.95}.edge-bayonet{stroke:#ffffff;stroke-width:1.35}.edge-socket-recess{fill:#02080e;stroke:#d5e4ed;stroke-width:.55}.edge-gold-pins{stroke:#ffdf88;stroke-width:.65}.interface-mount-rail{stroke:#e2edf6;stroke-width:.7}
.edge-led-ring{fill:none;stroke:#59ffd2;stroke-width:1;filter:drop-shadow(0 0 1px #30ffbd)}.edge-led-bezel{fill:#021a1c;stroke:#122c37;stroke-width:.45}.edge-status-led{fill:#5dffd6;stroke:#a2ffed;stroke-width:.25;filter:drop-shadow(0 0 1.1px #29f7bf)}.edge-led-core{fill:none;stroke:#eefff9;stroke-width:.65;stroke-linecap:round}.card-service-port .edge-status-led{fill:none;stroke:#7cddff;stroke-width:1.8;filter:drop-shadow(0 0 1px #58d7ff)}
.port-side{fill:#708079;stroke:#182529;stroke-width:.7}.port-crown{fill:#c6c8ae;stroke:#65796c;stroke-width:.35}.port-flank{fill:#415657;stroke:#15272b;stroke-width:.5}.port-socket{fill:#051115;stroke:#b8b485;stroke-width:.6}.port-contact{fill:none;stroke:#dbba71;stroke-width:.7}.port-rim{fill:none;stroke:#c3cfb5;stroke-width:.65}.port-screw{fill:#0c181d;stroke:#92a69a;stroke-width:.4}.port-mode{font:5px Consolas,monospace;fill:#d5e6cf;text-anchor:middle}
.card-model{z-index:4;left:9%;bottom:24%;font-size:clamp(4px,4cqw,8px);color:#b2bca4;text-shadow:0 1px #000}
.field-card .card-readout{left:10%;right:9%;bottom:8.5%;height:14%}
.field-card>img{position:relative;z-index:1;border:1px solid #95b8a582;border-radius:2px;background:linear-gradient(120deg,#30534855,#051b24a0);height:auto;aspect-ratio:1;object-fit:contain;box-shadow:inset 0 0 1px #d8f7da66}
.field-card>.art-grid{z-index:3;border:1px solid #bbdec173;border-radius:2px;overflow:hidden}
.field-card .card-interfaces{inset:0;width:100%;height:100%}
.setup-card-preview .card-readout{left:10%;right:9%;bottom:8.5%;height:14%}
.setup-card-preview .setup-card-top{display:none}
.hand{gap:26px;padding-left:20px;padding-right:15px}
.selection-bar{left:calc(50% + var(--hand-width) * 2.5 + 90px)}
.sample-grid{column-gap:38px;padding-left:15px;padding-right:5px}
.sample-wrap .card-face{max-width:184px}
.sample-wrap figcaption{margin-top:23px}
.art-cell.is-both::after,.setup-range .compound{border:2px solid #b4ff8d!important;background:radial-gradient(circle,#e4ffd1ab 0 1px,transparent 1.4px) 0 0/7px 7px,repeating-linear-gradient(0deg,#9df17275 0 3px,#25704b69 3px 7px)!important;box-shadow:inset 0 0 0 1px #173b21,inset 0 0 8px #adf47566!important}
.legend-both,.setup-range-legend .compound{border:1px solid #b4ff8d!important;background:radial-gradient(circle,#e4ffd1 0 .8px,transparent 1px) 0 0/4px 4px,#70c35f!important;box-shadow:none!important}
.is-selected .card-art{border-color:#e5ca77!important;box-shadow:0 0 0 1px #e5ca774a,inset 0 0 12px #eff3ad15}
@media(max-width:1120px){.selection-bar{left:min(calc(50% + var(--hand-width) * 2.5 + 65px),calc(100% - 198px))}}
@media(max-width:850px){.selection-bar{left:auto}.hand{gap:16px}}
@media(max-width:760px){.card-readout{left:10%;right:9%;bottom:8.5%;height:14%;grid-template-columns:minmax(0,1fr) 22%;gap:4%}.card-readout .card-name{font-size:clamp(4px,14cqw,22px)}.card-interfaces{inset:0;width:100%;height:100%}.sample-wrap .card-readout .card-name{font-size:clamp(4px,14cqw,22px)}.sample-grid{column-gap:27px;padding-left:12px;padding-right:2px}.art-cell.is-both::after,.setup-range .compound{border-width:1px!important}}
@media(max-width:520px){.hand{gap:12px;padding:0 10px 12px 17px}.hand-card{width:calc((100% - 48px)/5);flex:0 1 calc((100% - 48px)/5)}.card-readout .card-name{font-size:clamp(4px,14cqw,22px);line-height:1.05}.card-readout .card-value{font-size:13px}.card-model{display:none}.field-card .card-readout .card-name{font-size:clamp(4px,14cqw,22px)}.field-card .card-readout .card-value{font-size:10px}.field-card .card-interfaces{inset:0;width:100%;height:100%}.sample-wrap .card-model{display:block}}
