#schematic-workspace { position:fixed; inset:0; z-index:9000; display:flex; flex-direction:column; background:#17212b; color:#dbe6ef; font-size:12px; }
#schematic-workspace button { flex:none; font-size:12px; padding:8px 12px; border-radius:5px; }
#schematic-workspace input, #schematic-workspace select { font-size:12px; padding:7px; }
#schematic-workspace header { display:flex; align-items:center; gap:9px; padding:12px 16px; background:#1c2a37; border-bottom:1px solid #354758; flex-wrap:wrap; }
#schematic-workspace header strong { font-size:17px; margin-right:10px; color:white; }
#schematic-workspace header .sch-spacer { flex:1; }
#schematic-workspace .sch-body { display:flex; flex:1; min-height:0; }
#schematic-workspace aside { width:270px; flex:none; overflow-y:auto; padding:15px; background:#1c2a37; border-right:1px solid #354758; }
#schematic-workspace aside h3 { font-size:11px; color:#80c6e8; margin:18px 0 10px; letter-spacing:.7px; }
#schematic-workspace .sch-tool-group { padding:10px; margin-bottom:14px; border:2px solid #61788c; border-left:4px solid #80c6e8; border-radius:6px; background:#182633; }
#schematic-workspace .sch-tool-group > h3 { margin-top:0; padding-bottom:7px; border-bottom:1px solid #61788c; }
#schematic-workspace .sch-tool-group:nth-child(2) { border-left-color:#edbf74; }
#schematic-workspace .sch-tool-group:nth-child(3) { border-left-color:#91d69a; }
#schematic-workspace .sch-tool-group:nth-child(4) { border-left-color:#c4a1ed; }
#schematic-workspace aside label { display:block; color:#aebfce; margin:10px 0 5px; }
#schematic-workspace .sch-note { font-size:11px; line-height:1.6; color:#aebfce; margin:9px 0; }
#schematic-workspace .sch-button-row { display:flex; gap:6px; margin:10px 0; flex-wrap:wrap; }
#schematic-workspace .sch-button-row button { flex:1; }
#schematic-workspace .sch-canvas-wrap { flex:1; min-width:0; position:relative; background:#f4f7fb; }
#schematic-canvas { position:absolute; inset:0; }
#schematic-empty { position:absolute; top:40%; left:15%; right:15%; text-align:center; color:#506779; pointer-events:none; line-height:1.8; }
#schematic-empty b { display:block; font-size:25px; font-weight:500; margin-bottom:12px; color:#263f55; }
#schematic-workspace footer { display:flex; justify-content:space-between; gap:12px; padding:9px 16px; background:#1c2a37; border-top:1px solid #354758; min-height:35px; }
#schematic-workspace .sch-pin-row { display:flex; align-items:center; gap:5px; padding:7px 0; border-bottom:1px solid #354758; font-size:11px; }
#schematic-workspace .sch-pin-row span { flex:1; overflow-wrap:anywhere; }
#schematic-workspace .sch-pin-row button { padding:4px 7px; font-size:10px; }
#schematic-workspace .sch-good { color:#8edea5; }
#schematic-workspace .sch-bad { color:#ffb077; }
#schematic-group-dialog { position:absolute; inset:0; z-index:20; background:#0009; display:flex; align-items:center; justify-content:center; }
#schematic-group-dialog > div { width:560px; max-width:95vw; max-height:90vh; overflow:auto; padding:24px; background:#1c2a37; border:1px solid #506779; border-radius:10px; }
#schematic-group-dialog h3 { font-size:18px; margin-bottom:12px; }
#schematic-group-dialog .sch-group-row { display:flex; gap:8px; align-items:center; margin:6px 0; }
#schematic-group-dialog .sch-group-row input { width:65px; }
#schematic-group-dialog .sch-group-row span { flex:1; overflow-wrap:anywhere; }
#schematic-pcb-panel button { width:100%; margin:3px 0; }
#schematic-pcb-panel select { width:100%; margin:5px 0; padding:6px; }
#schematic-page-dialog { position:absolute; inset:0; z-index:25; background:#0009; display:flex; align-items:center; justify-content:center; }
#schematic-page-dialog > div { width:650px; max-width:95vw; max-height:90vh; overflow:auto; padding:24px; background:#1c2a37; border:1px solid #506779; border-radius:10px; }
#schematic-page-dialog h3 { font-size:18px; }
#schematic-page-dialog label { display:block; margin:12px 0 6px; }
#sch-page-target, #sch-new-page-name { width:100%; }
.sch-terminal-button { display:block; width:100%; text-align:left; margin:4px 0; }
#sch-active-cluster { padding:9px 10px; margin:8px 0; border:1px solid #506779; border-radius:5px; color:#aebfce; overflow-wrap:anywhere; }
#sch-active-cluster.sch-cluster-selected { border-color:#52dcff; background:#07536c; color:#fff; font-weight:bold; box-shadow:0 0 0 1px #2cbddd,0 0 12px #00b9ec55; }
#schematic-workspace aside label.sch-checkbox { display:flex; align-items:flex-start; gap:8px; line-height:1.5; margin-top:16px; color:#dbe6ef; }
#sch-gather-left { width:16px; height:16px; flex:none; margin-top:2px; }
.sch-extra-tools { border:1px solid #354758; border-radius:5px; padding:10px; margin:10px 0; }
.sch-extra-tools summary { cursor:pointer; color:#80c6e8; }
.sch-extra-tools button { width:100%; margin-top:10px; }
#sch-page-choices { max-height:40vh; overflow:auto; margin-top:15px; }
#sch-page-choices label { padding:10px; border-bottom:1px solid #354758; line-height:1.5; }
#schematic-pcb-note { color:#aebfce; font-size:11px; line-height:1.6; margin:6px 0; }
#sch-direct-menu { position:fixed; z-index:30; width:222px; max-height:calc(100vh - 90px); overflow:auto; padding:6px; border:1px solid #65849c; border-radius:6px; background:#203343; color:#fff; box-shadow:0 6px 24px #0005; }
#schematic-workspace #sch-direct-menu button { display:block; width:100%; text-align:left; padding:8px 10px; margin:2px 0; background:transparent; color:#e1eef6; border:0; }
#schematic-workspace #sch-direct-menu button:hover { background:#315b77; }
#sch-direct-menu p { margin:7px; font-size:12px; line-height:1.5; }
#schematic-selection-count { color:#80c6e8; margin:5px 0; line-height:1.5; }
@media(max-width:1000px) { #schematic-workspace aside { width:230px; padding:10px; } #schematic-workspace header { padding:8px; gap:5px; } #schematic-workspace header button { padding:6px; } }
