/* Schematic app styles
   Extracted from index.html during v82 modularization.
   Keep visual-only changes here; application logic lives in app/modules/*.js.
*/

/* style block 1  */
*{box-sizing:border-box;margin:0;padding:0}
html,body{width:100%;height:100%;overflow:hidden;background:#0b1020;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
button,input,select{font:inherit}
#app{display:flex;flex-direction:column;height:100vh;min-height:420px;width:100%;background:#111827;border-radius:0;overflow:hidden;font-family:var(--font-sans);font-size:clamp(11px,1.05vw,13px);color:#c0ccdf;position:relative;user-select:none}
#tb{display:flex;flex-direction:column;background:#1a2236;border-bottom:1px solid #1e3050;flex-shrink:0;overflow:hidden}
.tb-row{display:flex;align-items:center;gap:4px;padding:6px 8px;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}
.tb-primary{padding-bottom:5px;border-bottom:1px solid #263350}
.tb-library{padding-top:5px;background:#162034}
.t{display:flex;align-items:center;gap:4px;padding:5px 10px;border:1px solid #263350;border-radius:5px;background:#151e31;color:#b0bdd0;cursor:pointer;font-size:12px;transition:background .12s;white-space:nowrap;min-height:30px;flex:0 0 auto}
.t:hover{background:#1e3050}.t.on{background:#c05010;border-color:#c05010;color:#fff}
.t:disabled{opacity:.45;cursor:not-allowed}.t:disabled:hover{background:#151e31}
.tsel{appearance:none;padding-right:22px;background-image:linear-gradient(45deg,transparent 50%,#8090b0 50%),linear-gradient(135deg,#8090b0 50%,transparent 50%);background-position:calc(100% - 12px) 50%,calc(100% - 7px) 50%;background-size:5px 5px,5px 5px;background-repeat:no-repeat}
.tsel option{background:#1a2236;color:#c0ccdf}
.file-select{min-width:72px;width:72px;max-width:72px;padding-left:7px;padding-right:18px}
.file-select option[value="clear"]{color:#ff7070}
.add-select{min-width:96px;width:96px;max-width:96px;padding-left:8px}
.tools-select{min-width:116px;width:116px;max-width:116px;padding-left:8px}

.menu{position:relative;display:flex;align-items:center}
.menu-pop{position:absolute;top:calc(100% + 4px);left:0;min-width:185px;background:#111827;border:1px solid #263350;border-radius:7px;box-shadow:0 14px 32px rgba(0,0,0,.38);padding:5px;display:none;z-index:120}
.menu-pop.open{display:flex;flex-direction:column;gap:2px}
.mi{width:100%;padding:7px 10px;background:transparent;border:0;border-radius:5px;color:#c0ccdf;text-align:left;font-size:12px;cursor:pointer;white-space:nowrap}
.mi:hover{background:#1e3050;color:#fff}.mi.danger{color:#ff7070}.mi.danger:hover{background:#341010;color:#ffb0b0}
.mi-sep{height:1px;background:#263350;margin:4px 2px}
.tsep{width:1px;height:16px;background:#263350;margin:0 3px;flex-shrink:0}
#main{display:flex;flex:1;min-height:0;overflow:hidden}
#lib{width:clamp(230px,20vw,300px);flex-shrink:0;background:#1a2236;border-right:1px solid #1e3050;padding:12px;display:flex;flex-direction:column;gap:9px;overflow:hidden;font-size:12px;transition:width .18s ease,padding .18s ease,border-color .18s ease,opacity .14s ease}
.lib-head{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#c05010;font-size:13px;font-weight:600}
.lib-count{font-size:10px;color:#60708e;font-weight:500}
#lib .preset-search{margin-bottom:0}
#lib .preset-panel{flex:1;min-height:0}
#lib .preset-list{min-height:0;overflow-y:auto;padding-right:3px;scrollbar-width:thin}
#lib .preset-grid{grid-template-columns:1fr}
#lib .preset-brand{margin-top:12px}
#lib .preset-brand:first-child{margin-top:4px}
#lib .quick-generator{border:1px solid #263350;background:#101827;border-radius:10px;padding:9px;margin:10px 0;display:grid;gap:7px}
#lib .quick-generator-title{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:#7fa4ff}
#lib .quick-generator-input{width:100%;box-sizing:border-box;min-height:70px;resize:vertical;border:1px solid #263350;background:#0b1220;color:#d8e2f0;border-radius:8px;padding:8px 9px;font:12px/1.35 inherit;outline:none}
#lib .quick-generator-input:focus{border-color:#4a7bd8;box-shadow:0 0 0 2px rgba(74,123,216,.22)}
#lib .quick-generator-check{display:flex;align-items:center;gap:7px;font-size:12px;color:#aebbd0}
#lib .quick-generator-check input{accent-color:#2684ff}
#lib .quick-generator-btn{border:1px solid #1669d4;background:linear-gradient(180deg,#2684ff,#1669d4);color:#fff;border-radius:8px;min-height:34px;font-weight:800;cursor:pointer}
#lib .quick-generator-btn:hover{filter:brightness(1.06)}
#lib .quick-generator-btn.quick-generator-secondary{border-color:#34496d;background:#0b1220;color:#d8e2f0}
body.lib-collapsed #lib{width:0!important;min-width:0!important;max-width:0!important;height:auto!important;padding:0!important;border-width:0!important;margin:0!important;opacity:0;pointer-events:none}
body.lib-collapsed #lib>*{display:none!important}
#bt-lib-toggle.on{background:#c05010;border-color:#c05010;color:#fff}
.lib-collapse-mini{min-width:24px;height:24px;padding:0!important;font-size:13px!important;display:inline-flex;align-items:center;justify-content:center}
.quick-gen-modal{position:fixed;inset:0;background:rgba(4,8,18,.55);backdrop-filter:blur(6px);z-index:520;display:none;align-items:center;justify-content:center;padding:18px}
.quick-gen-dialog{width:min(760px,96vw);max-height:92vh;overflow:hidden;display:flex;flex-direction:column;background:#101a2c;border:1px solid #23334d;border-radius:18px;box-shadow:0 30px 80px rgba(0,0,0,.35);color:#eaf1fb}
.quick-gen-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:18px 20px;border-bottom:1px solid #23334d}
.quick-gen-head h2{margin:0;font-size:20px}.quick-gen-head p{margin:4px 0 0;color:#9eb0ca;font-size:13px}
.quick-gen-close{border:1px solid #31435f;background:#0c1628;color:#eaf1fb;border-radius:10px;width:36px;height:36px;font-size:22px;cursor:pointer}
.quick-gen-body{padding:16px 20px;overflow:auto;display:grid;gap:12px}
.gen-tabs{display:flex;gap:6px;flex-wrap:wrap}
.gen-tab{border:1px solid #31435f;background:#0c1628;color:#c8d7ec;border-radius:10px;min-height:34px;padding:6px 11px;font-size:12px;font-weight:900;cursor:pointer}
.gen-tab.on{background:#1669d4;border-color:#2684ff;color:#fff}
.quick-gen-page,.gen-page{display:none;gap:12px}
.quick-gen-page.on,.gen-page.on{display:grid}
.quick-gen-grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.quick-gen-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.quick-gen-custom{display:grid;grid-template-columns:minmax(0,1fr) 84px 110px 130px;gap:10px}
.quick-gen-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px}
.quick-gen-body label{display:grid;gap:5px;color:#9eb0ca;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.quick-gen-checks label,.quick-gen-save{display:flex!important;align-items:center;gap:8px;color:#dbe7f7!important;font-size:13px!important;text-transform:none!important;letter-spacing:0!important}
.quick-gen-input{width:100%;box-sizing:border-box;border:1px solid #31435f;background:#0c1628;color:#eaf1fb;border-radius:11px;min-height:40px;padding:8px 10px;font:14px/1.3 inherit;outline:none}
.quick-gen-input:focus{border-color:#2b6fcf;box-shadow:0 0 0 3px rgba(38,132,255,.16)}
.quick-gen-num{text-align:center;font-weight:900}
.quick-gen-summary{border:1px solid #31435f;background:#0c1628;border-radius:12px;padding:9px 11px;color:#9eb0ca;font-size:13px;font-weight:800}
.quick-gen-actions{display:flex;justify-content:flex-end;gap:10px;padding:14px 20px;border-top:1px solid #23334d}
.quick-gen-btn{border:1px solid #31435f;background:#0c1628;color:#eaf1fb;border-radius:11px;min-height:40px;padding:8px 14px;font-weight:800;cursor:pointer}
.quick-gen-btn.primary{background:linear-gradient(180deg,#2684ff,#1669d4);border-color:#1669d4;color:#fff}
.quick-gen-body input[type=checkbox]{accent-color:#2684ff}
.pass-through-dialog{width:min(1040px,97vw)}
.pass-through-body{gap:14px}
.ptg-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.ptg-preset-bar{display:grid;grid-template-columns:minmax(220px,1fr) auto auto;gap:8px;align-items:center}
.ptg-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:3px;color:#eaf1fb;font-size:13px}
.ptg-section-head>span{color:#8fa2bd;font-size:11px;font-weight:700}
.ptg-group-head,.ptg-group-row{display:grid;grid-template-columns:minmax(210px,1fr) 92px 34px;gap:8px;align-items:center}
.ptg-group-head,.ptg-port-head{padding:0 4px;color:#71839d;font-size:10px;font-weight:800;text-transform:uppercase}
.ptg-group-row{padding:7px;border:1px solid #263751;border-radius:6px;background:#0c1628}
.ptg-group-row.custom{grid-template-rows:auto auto}
.ptg-custom-fields{grid-column:1/-1;display:grid;grid-template-columns:2fr 1.4fr 54px 1fr;gap:8px}
.ptg-port-head,.ptg-port-row{display:grid;grid-template-columns:36px minmax(220px,1fr) minmax(190px,.8fr) 118px;gap:8px;align-items:center}
.ptg-port-list{display:grid;gap:6px;max-height:290px;overflow:auto;padding-right:3px}
.ptg-port-row{padding:6px 8px;border-bottom:1px solid #22314a;background:#0c1628}
.ptg-port-row>span{color:#70839e;font-size:11px;font-weight:800;text-align:center}
.ptg-port-actions{display:flex;justify-content:flex-end;gap:5px}
.ptg-icon-btn{width:32px;height:32px;border:1px solid #31435f;border-radius:6px;background:#111d31;color:#d9e5f5;font-weight:900;cursor:pointer}
.ptg-icon-btn:hover{border-color:#5791da;background:#172947}
.ptg-icon-btn.danger{color:#fb7185;border-color:#5b2530}
.ptg-qty{text-align:right}
body:not(.sch-theme-dark) .quick-gen-dialog{background:#fff;color:#081529;border-color:#d9e2ee}
body:not(.sch-theme-dark) .quick-gen-head,body:not(.sch-theme-dark) .quick-gen-actions{border-color:#d9e2ee}
body:not(.sch-theme-dark) .quick-gen-head p,body:not(.sch-theme-dark) .quick-gen-body label,body:not(.sch-theme-dark) .quick-gen-summary{color:#5f6d82}
body:not(.sch-theme-dark) .quick-gen-input,body:not(.sch-theme-dark) .quick-gen-close,body:not(.sch-theme-dark) .quick-gen-btn,body:not(.sch-theme-dark) .quick-gen-summary{background:#f8fbff;color:#081529;border-color:#c7d3e4}
body:not(.sch-theme-dark) .ptg-section-head{color:#081529}
body:not(.sch-theme-dark) .ptg-group-row,body:not(.sch-theme-dark) .ptg-port-row{background:#f8fbff;border-color:#d9e2ee}
body:not(.sch-theme-dark) .ptg-icon-btn{background:#fff;color:#14213a;border-color:#c7d3e4}
body:not(.sch-theme-dark) .quick-gen-checks label,body:not(.sch-theme-dark) .quick-gen-save{color:#081529!important}
body:not(.sch-theme-dark) .gen-tab{background:#f8fbff;color:#314158;border-color:#c7d3e4}
body:not(.sch-theme-dark) .gen-tab.on{background:#0f5cc2;border-color:#0f5cc2;color:#fff}
@media(max-width:700px){.quick-gen-grid2,.quick-gen-counts,.quick-gen-custom,.quick-gen-checks{grid-template-columns:1fr}}
@media(max-width:760px){.ptg-fields{grid-template-columns:1fr}.ptg-preset-bar{grid-template-columns:1fr}.ptg-group-head{display:none}.ptg-group-row{grid-template-columns:minmax(0,1fr) 76px 34px}.ptg-custom-fields{grid-template-columns:1fr 1fr}.ptg-port-head{display:none}.ptg-port-row{grid-template-columns:32px minmax(0,1fr) 96px}.ptg-port-row>.quick-gen-input:nth-of-type(2){grid-column:2/-1;grid-row:2}.ptg-port-actions{grid-column:3;grid-row:1}}
#cc{flex:1;position:relative;overflow:hidden;cursor:default}
svg#sv{position:absolute;inset:0;width:100%;height:100%}
#pr{width:clamp(230px,22vw,320px);flex-shrink:0;background:#1a2236;border-left:1px solid #1e3050;padding:12px;display:flex;flex-direction:column;gap:9px;overflow-y:auto;font-size:12px}
.pl{font-size:10px;color:#506080;text-transform:uppercase;letter-spacing:.04em;margin-top:3px}
.pi{width:100%;padding:3px 6px;background:#0d1520;border:1px solid #1e3050;border-radius:4px;color:#c0ccdf;font-size:12px;font-family:var(--font-sans)}
.pi:focus{outline:none;border-color:#c05010}
.pb{width:100%;padding:3px;background:transparent;border:1px solid #263350;border-radius:4px;color:#b0bdd0;cursor:pointer;font-size:12px;text-align:center;transition:background .12s}
.pb:hover{background:#1e3050}.pb.r{border-color:#4a1010;color:#d04040}.pb.r:hover{background:#280808}
.spread-control{display:grid;gap:6px;padding:8px;border:1px solid var(--sch-line,#263350);border-radius:7px;background:var(--sch-surface-2,#111827)}
.spread-control-head{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;font-weight:700;color:var(--sch-muted,#8fa3bf)}
.spread-control-head output{min-width:42px;text-align:right;color:var(--sch-text,#eaf1fb);font-variant-numeric:tabular-nums}
.spread-slider{width:100%;margin:0;accent-color:var(--sch-accent,#2684ff);cursor:ew-resize}
.spread-slider-y{cursor:ns-resize}
.spread-slider:disabled{cursor:not-allowed;opacity:.45}
.sws{display:flex;flex-wrap:wrap;gap:3px}
.sw{width:17px;height:17px;border-radius:50%;cursor:pointer;border:2px solid transparent;transition:transform .1s;flex-shrink:0}
.sw:hover{transform:scale(1.2)}.sw.on{border-color:#fff}
#st{padding:5px 10px;font-size:11px;color:#7084a3;background:#162034;border-top:1px solid #1e3050;flex-shrink:0;display:flex;justify-content:space-between;gap:16px}
#st-msg{color:#9fb0c8}
#st-hint{color:#536985;font-size:10px}
#bottomBar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:5px 8px;background:#101827;border-top:1px solid #1e3050;flex-shrink:0}
.bottom-actions,.bottom-toggles{display:flex;align-items:center;gap:4px;min-width:0;overflow-x:auto;scrollbar-width:thin}
.bottom-toggles{justify-content:flex-end}
.bottom-validation{display:flex;align-items:center;justify-content:center;min-width:190px;flex:1}
#validationBadge{display:inline-flex;align-items:center;gap:7px;min-height:28px;padding:4px 10px;border:1px solid #263350;border-radius:6px;background:#111827;color:#c0ccdf;font-size:12px;cursor:pointer;white-space:nowrap}
#validationBadge:hover{background:#1e3050;color:#fff}
#validationBadge.ok{border-color:#1c7a42;color:#78e6a0}
#validationBadge.warn{border-color:#8a7220;color:#f2d850}
#validationBadge.error{border-color:#8a2636;color:#ff8b8b}
.validation-dot{width:8px;height:8px;border-radius:50%;background:#60708e;box-shadow:0 0 0 2px rgba(96,112,142,.14)}
#validationBadge.ok .validation-dot{background:#20d870}
#validationBadge.warn .validation-dot{background:#f2d850}
#validationBadge.error .validation-dot{background:#e82040}
#bottomBar .t{min-height:28px;padding:4px 9px}
.zoom-controls{display:flex;align-items:center;gap:4px;margin-right:4px;padding-right:6px;border-right:1px solid #263350;flex:0 0 auto}
.zoom-btn{min-width:30px;justify-content:center;font-weight:700;font-size:14px}
#mod{position:absolute;inset:0;background:rgba(4,8,18,.9);display:none;align-items:center;justify-content:center;z-index:99}
#mb{background:#1a2236;border:1px solid #263350;border-radius:8px;padding:clamp(11px,1.4vw,16px);width:min(1180px,calc(100vw - 24px));max-height:calc(100vh - 24px);overflow:hidden;display:flex;flex-direction:column;gap:8px}
#mb h3{color:#c05010;font-size:13px;font-weight:500}
#saveMod{position:absolute;inset:0;background:rgba(4,8,18,.92);display:none;align-items:center;justify-content:center;z-index:180;padding:14px}
#saveBox{background:#1a2236;border:1px solid #263350;border-radius:8px;width:min(620px,94vw);max-height:min(640px,90vh);padding:14px;display:flex;flex-direction:column;gap:10px;box-shadow:0 18px 42px rgba(0,0,0,.45)}
#saveBox h3{color:#c05010;font-size:14px;font-weight:600}
.save-meta{display:flex;flex-wrap:wrap;gap:6px;color:#8fa0b8;font-size:12px}
.save-chip{border:1px solid #263350;border-radius:5px;padding:4px 7px;background:#111827}
.save-name-row{display:grid;grid-template-columns:90px 1fr;gap:8px;align-items:center;color:#8fa0b8;font-size:12px}
.save-name-row input{width:100%;box-sizing:border-box;background:#0b1220;border:1px solid #263350;border-radius:6px;color:#d8e2f0;padding:8px 9px;font-size:12px;outline:none}
.save-name-row input:focus{border-color:#4a7bd8;box-shadow:0 0 0 2px rgba(74,123,216,.17)}
#saveText{min-height:190px;max-height:330px;resize:vertical;background:#0b1220;border:1px solid #263350;border-radius:6px;color:#d8e2f0;padding:9px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11px;line-height:1.35;white-space:pre}
.save-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}
.save-primary{padding:7px 14px;background:#c05010;border:none;border-radius:5px;color:#fff;cursor:pointer;font-size:12px}
.save-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.save-secondary{padding:7px 12px;background:transparent;border:1px solid #263350;border-radius:5px;color:#c0ccdf;cursor:pointer;font-size:12px}
.save-secondary:hover{background:#1e3050}
.mr{display:flex;gap:5px;align-items:center}.mr .pi{flex:1}.mr select.pi{width:82px;flex:none}
#mpl{display:flex;flex-direction:column;gap:5px;max-height:min(340px,max(120px,calc(100vh - 580px)));overflow-y:auto;overflow-x:hidden;padding:2px 3px 2px 0;scrollbar-gutter:stable}
.modal-port-row{display:grid;grid-template-columns:30px minmax(260px,1fr) minmax(150px,220px) 34px 34px;gap:6px;align-items:center;margin-bottom:0!important}
.modal-port-row.modal-port-row-typed{grid-template-columns:30px minmax(240px,1.35fr) minmax(140px,.7fr) minmax(190px,1fr) 34px 34px}
.modal-port-row .pi{min-width:0;width:100%!important;flex:none!important}
.modal-port-name{font-weight:600}
.modal-port-side-select,.avx-port-type{white-space:nowrap;text-overflow:ellipsis}
.modal-port-action{position:relative;width:34px;height:30px;padding:0;border:1px solid #263350;border-radius:5px;background:#111827;color:#b9c8dd;cursor:pointer;flex:none}
.modal-port-action:hover{background:#1e3050;border-color:#46678f;color:#fff}
.modal-port-copy::before,.modal-port-copy::after{content:"";position:absolute;width:10px;height:10px;border:1.5px solid currentColor;border-radius:2px}
.modal-port-copy::before{left:9px;top:7px}
.modal-port-copy::after{left:13px;top:11px;background:inherit}
.modal-port-delete{background:#280808;border-color:#4a1010;color:#e05050;font-size:16px;line-height:1}
.modal-port-delete:hover{background:#431010;border-color:#7a2020;color:#ff7777}
.modal-port-bulk{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;padding:7px 8px;margin-bottom:7px;border:1px solid #263350;border-radius:6px;background:#111827;color:#8fa0b8;font-size:11px}
.modal-port-select-all{display:flex;align-items:center;gap:6px;color:#c0ccdf;white-space:nowrap;cursor:pointer}
.modal-port-select-all input,.modal-port-pick input{accent-color:#2684ff}
.modal-port-side-actions{display:flex;align-items:center;gap:4px}
.modal-port-side{width:30px;height:30px;padding:0;border:1px solid #263350;border-radius:5px;background:#0b1220;color:#c0ccdf;font-size:15px;font-weight:700;cursor:pointer}
.modal-port-side:hover{background:#1e3050;border-color:#4a7bd8;color:#fff}
.modal-port-pick{display:flex;align-items:center;justify-content:center;width:30px;height:30px;cursor:pointer}
.modal-port-pick input{width:15px;height:15px;margin:0}
.mf{display:flex;gap:6px;justify-content:flex-end;margin-top:4px}
.bp{padding:5px 14px;background:#c05010;border:none;border-radius:5px;color:#fff;cursor:pointer;font-size:12px}
.bs{padding:5px 12px;background:transparent;border:1px solid #263350;border-radius:5px;color:#c0ccdf;cursor:pointer;font-size:12px}.bs:hover{background:#1e3050}
.dp{padding:2px 6px;background:#280808;border:1px solid #4a1010;border-radius:3px;color:#d04040;cursor:pointer;font-size:11px;flex-shrink:0}

@media (max-width:900px){
  #main{flex-direction:column}
  #lib{width:100%;height:210px;border-right:0;border-bottom:1px solid #1e3050}
  #pr{width:100%;height:185px;border-left:0;border-top:1px solid #1e3050;display:block}
  #pn,#pd,#pw{max-width:none}
  #st{font-size:10px;gap:8px;align-items:center}
  #st-hint{display:none}
  #bottomBar{gap:8px}
  .bottom-validation{order:3;flex:0 0 100%;justify-content:flex-start}
  #bottomBar .t{padding:3px 7px;font-size:11px}
  #validationBadge{font-size:11px;min-height:24px}
}
@media (max-height:620px){
  #tb{max-height:30vh}
  .t{min-height:21px;padding:2px 7px}
  #bottomBar .t{min-height:22px;padding:2px 7px}
  #pr{font-size:10px;padding:6px}
  .pi,.pb{font-size:10px;padding:2px 5px}
}
.chk{display:flex;align-items:center;gap:6px;color:#b0bdd0;font-size:12px;line-height:1.35;cursor:pointer;user-select:none}
.chk input{accent-color:#c05010}
.cad-export-modal{position:fixed;inset:0;z-index:560;display:none;align-items:center;justify-content:center;padding:18px;background:rgba(8,21,41,.38);backdrop-filter:blur(7px)}
.cad-export-dialog{width:min(560px,94vw);max-height:90vh;overflow:auto;background:var(--sch-surface,#fff);border:1px solid var(--sch-line,#d9e2ee);border-radius:8px;box-shadow:0 28px 80px rgba(8,21,41,.24);padding:18px;color:var(--sch-text,#081529)}
.cad-export-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}.cad-export-head h3{margin:0;font-size:17px}.cad-export-head p{margin:4px 0 0;color:var(--sch-muted,#5f6d82);font-size:12px}
.cad-export-close{width:32px;height:32px;border:1px solid var(--sch-line-strong,#c7d3e4);border-radius:6px;background:var(--sch-surface-2,#f4f7fb);color:var(--sch-text,#081529);font-size:21px;cursor:pointer}
.cad-export-options{display:grid;grid-template-columns:1fr 1fr;gap:8px 14px}.cad-export-options label{display:flex;align-items:center;gap:8px;min-height:34px;color:var(--sch-text,#081529);font-size:12px;cursor:pointer}.cad-export-options input{accent-color:var(--sch-accent,#1674ea)}
.cad-export-note{margin-top:12px;padding-top:11px;border-top:1px solid var(--sch-line,#d9e2ee);color:var(--sch-muted,#5f6d82);font-size:11px;line-height:1.45}.cad-export-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:16px}
@media(max-width:620px){.cad-export-options{grid-template-columns:1fr}.cad-export-actions>*{flex:1}}
.tsel optgroup{background:#1a2236;color:#8090b0}
.tsel option{background:#1a2236;color:#c0ccdf}
.export-page-select{min-width:94px;max-width:112px}

@media print{
  @page{size:A4 landscape;margin:0}
  body{margin:0;background:#fff;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  #app{width:297mm!important;height:210mm!important;border-radius:0!important;background:#fff!important}
  #tb,#lib,#pr,#st,#bottomBar,#mod{display:none!important}
  #main{width:297mm!important;height:210mm!important;background:#fff!important}
  #cc{width:297mm!important;height:210mm!important;overflow:visible!important;background:#fff!important}
  #bg-rect{fill:#fff!important}
  #grid-major,#grid-minor{display:none!important}
}
body.exporting{background:#fff!important}
body.exporting #tb,body.exporting #lib,body.exporting #pr,body.exporting #st,body.exporting #bottomBar,body.exporting #mod{display:none!important}
body.exporting #app{width:297mm!important;height:210mm!important;border-radius:0!important;background:#fff!important}
body.exporting #main{width:297mm!important;height:210mm!important;background:#fff!important}
body.exporting #cc{width:297mm!important;height:210mm!important;overflow:visible!important;background:#fff!important}
body.exporting #bg-rect{fill:#fff!important}
body.exporting #grid-major,body.exporting #grid-minor{display:none!important}
#print-window-rect{pointer-events:none}
body.exporting #print-window-rect{display:none!important}
@media print{#print-window-rect{display:none!important}}


.preset-lib{position:relative;display:flex;align-items:center}
.preset-panel{display:block;min-height:0;overflow:auto;background:transparent;border:0;padding:0;scrollbar-width:thin}
.preset-panel.open{display:block}
.preset-search{width:100%;box-sizing:border-box;background:#0b1220;border:1px solid #263350;border-radius:6px;color:#d8e2f0;padding:8px 10px;font-size:12px;outline:none;margin-bottom:8px}
.preset-search:focus{border-color:#4a7bd8;box-shadow:0 0 0 2px rgba(74,123,216,.22)}
.preset-brand{margin:10px 0 4px;color:#7fa4ff;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.08em}
.preset-cat{margin:6px 0 3px;color:#7b8799;font-size:10px;text-transform:uppercase;letter-spacing:.06em}
.preset-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:4px}
.preset-item{display:flex;flex-direction:column;align-items:flex-start;gap:2px;border:1px solid #22324f;border-radius:6px;background:#121c2e;color:#d3def0;padding:7px 8px;cursor:pointer;text-align:left;font-size:12px}
.preset-item:hover{border-color:#4a7bd8;background:#172541}
.preset-item b{font-size:12px;color:#ffffff;font-weight:600}
.preset-item span{font-size:10px;color:#8f9db1;line-height:1.25}
.preset-empty{padding:12px;color:#8996aa;font-size:12px;text-align:center;border:1px dashed #263350;border-radius:6px}
.lib-title-wrap{display:flex;flex-direction:column;gap:2px;min-width:0}
.lib-tools{display:flex;align-items:center;gap:4px;flex:0 0 auto}
.lib-mini{border:1px solid #263350;background:#121c2e;color:#b8c7dc;border-radius:5px;padding:4px 6px;font-size:10px;line-height:1;cursor:pointer;white-space:nowrap}
.lib-mini:hover{background:#1e3050;color:#fff;border-color:#4a7bd8}
.preset-item-top{display:flex;align-items:flex-start;justify-content:space-between;gap:6px;width:100%}
.preset-edit{border:1px solid #2b3d5e;background:#101827;color:#8fa8c8;border-radius:4px;min-width:22px;height:20px;padding:0 4px;font-size:11px;line-height:17px;cursor:pointer;flex:0 0 auto}
.preset-edit:hover{background:#263b60;color:#fff;border-color:#4a7bd8}
.preset-badge{display:inline-flex;margin-left:5px;border:1px solid #3a5c40;background:#13281a;color:#8fe0a0;border-radius:4px;padding:1px 4px;font-size:9px;font-weight:700;vertical-align:middle}
.preset-db-box{border:1px solid #263350;background:#111827;border-radius:7px;padding:8px;display:flex;flex-direction:column;gap:7px}
.preset-db-fields{display:none;flex-direction:column;gap:6px}
.preset-db-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.preset-db-actions{display:flex;gap:6px;flex-wrap:wrap}
.db-note{font-size:10px;line-height:1.35;color:#7084a3}
.db-import-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.db-import-stat{border:1px solid #263350;background:#111827;border-radius:6px;padding:7px 8px}
.db-import-stat b{display:block;color:#fff;font-size:14px;line-height:1.1}
.db-import-stat span{display:block;color:#7f90aa;font-size:10px;text-transform:uppercase;letter-spacing:.05em;margin-top:2px}
.db-import-list{max-height:260px;overflow:auto;border:1px solid #263350;background:#0b1220;border-radius:6px;padding:8px;scrollbar-width:thin;font-size:11px;line-height:1.45;color:#c8d4e6}
.db-import-list h4{font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:#7fa4ff;margin:0 0 5px}
.db-import-list ul{margin:0 0 9px 16px;padding:0}
.db-import-list li{margin:1px 0}
.db-import-muted{color:#7084a3;font-size:11px;line-height:1.4}
@media (max-width:600px){.db-import-summary{grid-template-columns:1fr 1fr}}
.preset-danger{border-color:#4a1010;color:#ff8080}
.preset-danger:hover{background:#341010;color:#ffb0b0;border-color:#7a2020}
@media (max-width:900px){.preset-db-grid{grid-template-columns:1fr}}
@media (max-width:720px){
  #mb{width:calc(100vw - 16px);overflow-y:auto}
  .modal-port-row{grid-template-columns:30px minmax(0,1fr) 34px 34px;align-items:center}
  .modal-port-row.modal-port-row-typed{grid-template-columns:30px minmax(0,1fr) 34px 34px}
  .modal-port-row>.modal-port-pick{grid-column:1;grid-row:1}
  .modal-port-row>input.pi{grid-column:2;grid-row:1}
  .modal-port-row>select.pi{grid-column:2 / -1;grid-row:2;min-height:34px}
  .modal-port-row>.modal-port-copy{grid-column:3;grid-row:1}
  .modal-port-row>.modal-port-delete{grid-column:4;grid-row:1}
  .modal-port-row.modal-port-row-typed>.modal-port-side-select{grid-column:2 / -1;grid-row:2}
  .modal-port-row.modal-port-row-typed>.avx-port-type{grid-column:1 / -1;grid-row:3}
}


/* ── SCHEMATIC START / LOADING PAGE ───────────────────────── */
#schematicSplash{position:fixed;inset:0;z-index:5000;display:flex;align-items:center;justify-content:center;padding:24px;background:radial-gradient(circle at 20% 15%,rgba(192,80,16,.22),transparent 34%),radial-gradient(circle at 80% 20%,rgba(32,168,240,.14),transparent 34%),linear-gradient(135deg,#070b16 0%,#0f1728 48%,#121b2e 100%);color:#d8e2f0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;user-select:none}
#schematicSplash.splash-hidden{display:none!important}
.spl-card{width:min(940px,96vw);max-height:min(760px,94vh);display:grid;grid-template-columns:minmax(250px,330px) 1fr;background:rgba(17,24,39,.94);border:1px solid #263350;border-radius:22px;overflow:hidden;box-shadow:0 30px 90px rgba(0,0,0,.55)}
.spl-left{padding:30px 28px;background:linear-gradient(180deg,rgba(192,80,16,.16),rgba(18,28,46,.66));border-right:1px solid #263350;display:flex;flex-direction:column;gap:20px}
.spl-logo{width:58px;height:58px;border-radius:18px;display:flex;align-items:center;justify-content:center;background:#c05010;color:#fff;font-size:30px;font-weight:800;box-shadow:0 12px 28px rgba(192,80,16,.34)}
.spl-kicker{font-size:11px;text-transform:uppercase;letter-spacing:.16em;color:#8aa0bc;font-weight:700;margin-bottom:8px}.spl-left h1{font-size:30px;line-height:1.05;margin:0;color:#fff}.spl-version{color:#c05010;font-weight:800}.spl-desc{font-size:13px;line-height:1.55;color:#a9b8ce;margin:0}.spl-actions{display:flex;flex-direction:column;gap:9px;margin-top:4px}.spl-btn{width:100%;border:1px solid #31425f;border-radius:11px;padding:11px 13px;background:#121c2e;color:#d8e2f0;text-align:left;cursor:pointer;font-size:13px;font-weight:650;transition:transform .12s,background .12s,border-color .12s;display:flex;align-items:center;justify-content:space-between;gap:10px}.spl-btn:hover{transform:translateY(-1px);background:#172541;border-color:#4a7bd8}.spl-btn.primary{background:#c05010;border-color:#c05010;color:#fff}.spl-btn.primary:hover{background:#d66018}.spl-btn.danger{color:#ff9a9a;border-color:#4a2020}.spl-btn.danger:hover{background:#2a1010;border-color:#8a3030}.spl-foot{margin-top:auto;font-size:11px;line-height:1.45;color:#75859d}.spl-right{padding:22px;display:flex;flex-direction:column;gap:14px;min-width:0}.spl-tabs{display:flex;gap:8px;flex-wrap:wrap}.spl-tab{border:1px solid #263350;border-radius:999px;background:#0f1728;color:#aebbd0;padding:8px 13px;cursor:pointer;font-size:12px}.spl-tab.on{background:#1e3050;color:#fff;border-color:#4a7bd8}.spl-panel{display:none;overflow:auto;padding-right:4px}.spl-panel.on{display:block}.spl-panel h2{font-size:18px;margin:2px 0 10px;color:#fff}.spl-panel h3{font-size:13px;margin:16px 0 8px;color:#7fa4ff}.spl-muted{color:#8fa0b8;font-size:12px;line-height:1.55}.spl-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.spl-info{border:1px solid #263350;background:#0d1524;border-radius:14px;padding:12px}.spl-info b{display:block;color:#fff;margin-bottom:3px;font-size:13px}.spl-info span{color:#91a0b7;font-size:12px;line-height:1.4}.spl-form{display:grid;gap:9px;margin-top:8px}.spl-label{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#60708e}.spl-input,.spl-textarea,.spl-select{width:100%;border:1px solid #263350;background:#0b1220;color:#d8e2f0;border-radius:9px;padding:9px 10px;font-size:12px;outline:none}.spl-textarea{min-height:86px;resize:vertical;line-height:1.4}.spl-input:focus,.spl-textarea:focus,.spl-select:focus{border-color:#4a7bd8;box-shadow:0 0 0 2px rgba(74,123,216,.17)}.spl-inline{display:flex;gap:8px;flex-wrap:wrap}.spl-small-btn{border:1px solid #31425f;border-radius:9px;background:#121c2e;color:#d8e2f0;padding:8px 10px;font-size:12px;cursor:pointer}.spl-small-btn:hover{background:#1e3050}.spl-small-btn.primary{background:#c05010;border-color:#c05010;color:#fff}.spl-status{min-height:18px;color:#9fb0c8;font-size:12px;margin-top:3px}.spl-exit-box{display:none;border:1px solid #4a2020;background:#211018;border-radius:14px;padding:13px;color:#ffb0b0;font-size:12px;line-height:1.5;margin-top:10px}.spl-exit-box.on{display:block}.spl-loader{height:4px;border-radius:999px;background:#172541;overflow:hidden;margin-top:8px}.spl-loader:before{content:"";display:block;width:42%;height:100%;background:#c05010;border-radius:999px;animation:spl-load 1.2s ease-in-out infinite}@keyframes spl-load{0%{transform:translateX(-110%)}100%{transform:translateX(250%)}}
@media(max-width:760px){.spl-card{grid-template-columns:1fr}.spl-left{border-right:0;border-bottom:1px solid #263350;padding:22px}.spl-right{padding:18px}.spl-grid{grid-template-columns:1fr}.spl-left h1{font-size:24px}}
@media print{#schematicSplash{display:none!important}}
body.exporting #schematicSplash{display:none!important}

/* style block 2 id="avx-kozak-style" */
.avx-btn{display:flex;align-items:center;gap:4px;padding:5px 10px;border:1px solid #263350;border-radius:5px;background:#151e31;color:#b0bdd0;cursor:pointer;font-size:12px;white-space:nowrap;min-height:30px;flex:0 0 auto}.avx-btn:hover{background:#1e3050;color:#fff}.avx-btn.on{background:#c05010;border-color:#c05010;color:#fff}.avx-btn.warn{border-color:#c8b830;color:#f2d850}.avx-btn.good{border-color:#20d870;color:#75f0a0}.avx-float{position:absolute;inset:0;background:rgba(4,8,18,.91);display:none;align-items:center;justify-content:center;z-index:260;padding:14px}.avx-box{background:#141d30;border:1px solid #263350;border-radius:10px;width:min(1180px,96vw);height:min(760px,92vh);display:grid;grid-template-columns:220px 1fr;box-shadow:0 22px 55px rgba(0,0,0,.55);overflow:hidden}.avx-nav{background:#111827;border-right:1px solid #263350;padding:10px;display:flex;flex-direction:column;gap:6px;overflow:auto}.avx-title{color:#c05010;font-size:14px;font-weight:700;margin:2px 4px 8px}.avx-tab{padding:8px 9px;border:1px solid #263350;border-radius:7px;background:#151e31;color:#c0ccdf;text-align:left;cursor:pointer;font-size:12px}.avx-tab:hover{background:#1e3050}.avx-tab.on{background:#c05010;border-color:#c05010;color:#fff}.avx-content{padding:13px;overflow:auto;color:#c0ccdf;font-size:12px}.avx-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.avx-head h3{margin:0;color:#f4f7fb;font-size:16px}.avx-actions{display:flex;gap:6px;flex-wrap:wrap}.avx-mini{padding:5px 9px;border:1px solid #263350;border-radius:5px;background:#111827;color:#c0ccdf;cursor:pointer;font-size:12px}.avx-mini:hover{background:#1e3050}.avx-mini.primary{background:#c05010;border-color:#c05010;color:#fff}.avx-mini.danger{border-color:#5a1515;color:#ff8b8b}.avx-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:9px}.avx-card{background:#111827;border:1px solid #263350;border-radius:9px;padding:10px}.avx-card h4{margin:0 0 7px;color:#7fa4ff;font-size:12px;text-transform:uppercase;letter-spacing:.06em}.avx-muted{color:#7f8ca3;line-height:1.4}.avx-table{width:100%;border-collapse:collapse;background:#0b1220;border:1px solid #263350;border-radius:8px;overflow:hidden}.avx-table th,.avx-table td{border-bottom:1px solid #1f2d49;padding:6px 7px;text-align:left;vertical-align:top}.avx-table th{background:#17233a;color:#9fb7da;font-size:11px;text-transform:uppercase;letter-spacing:.04em}.avx-table tr:hover td{background:#111b2d}.avx-input,.avx-select,.avx-textarea{width:100%;background:#0b1220;border:1px solid #263350;border-radius:6px;color:#d8e2f0;padding:7px 8px;font-size:12px;outline:none}.avx-textarea{min-height:120px;resize:vertical;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.avx-row{display:grid;grid-template-columns:140px 1fr;align-items:center;gap:8px;margin:6px 0}.avx-chip{display:inline-flex;align-items:center;gap:4px;border:1px solid #263350;background:#101827;border-radius:999px;padding:3px 8px;margin:2px;color:#c0ccdf}.avx-bad{color:#ff8b8b}.avx-warn{color:#f2d850}.avx-ok{color:#78e6a0}.avx-list{display:flex;flex-direction:column;gap:6px}.avx-issue{border:1px solid #263350;background:#0b1220;border-radius:8px;padding:8px;cursor:pointer}.avx-issue:hover{border-color:#c05010}.avx-issue.error{border-left:4px solid #e82040}.avx-issue.warn{border-left:4px solid #f2d850}.avx-note{display:grid;grid-template-columns:26px 1fr auto;gap:7px;align-items:start;border:1px solid #263350;background:#0b1220;border-radius:8px;padding:8px}.avx-note.done{opacity:.55}.avx-star{border:0;background:transparent;color:#7b8799;cursor:pointer;font-size:14px;padding:0 2px}.avx-star.on{color:#f2d850}.preset-item .avx-star{margin-left:auto}.avx-layerbar{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px}.avx-kpi{font-size:24px;color:#fff;font-weight:700}.avx-small{font-size:10px;color:#7b8799}.avx-rack{background:#0b1220;border:2px solid #43506a;border-radius:8px;width:min(420px,100%);padding:10px;margin:auto}.avx-u{height:24px;border:1px solid #263350;margin-bottom:2px;border-radius:3px;background:#17233a;display:flex;align-items:center;justify-content:center;color:#d8e2f0;font-size:11px}.avx-u.empty{background:#0d1522;color:#465875}.avx-page-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:8px}.avx-page{border:1px solid #263350;border-radius:8px;background:#0b1220;padding:9px;cursor:pointer}.avx-page.on{border-color:#c05010;background:#1d2538}.avx-print-report{font-family:Arial,sans-serif;color:#111;background:#fff;padding:24px}.avx-print-report table{width:100%;border-collapse:collapse}.avx-print-report th,.avx-print-report td{border:1px solid #bbb;padding:5px;text-align:left}.avx-print-report th{background:#eee}.avx-title-svg text{font-family:Inter,Arial,sans-serif}.avx-highlight-label{paint-order:stroke;stroke:#111827;stroke-width:3px;stroke-linejoin:round}.avx-modal-close{font-size:16px;line-height:1}.avx-port-type{width:108px!important}
.avx-issue.on{border-color:#38bdf8!important;box-shadow:0 0 0 1px rgba(56,189,248,.55),0 0 18px rgba(56,189,248,.18)}

/* style block 3 id="schematic-brand-style" */
:root{--sch-bg:#eef2f6;--sch-bg-soft:#f7f9fc;--sch-surface:#ffffff;--sch-surface-2:#f4f7fb;--sch-line:#d9e2ee;--sch-line-strong:#c7d3e4;--sch-text:#081529;--sch-muted:#5f6d82;--sch-accent:#1674ea;--sch-accent-2:#0f5cc2;--sch-accent-soft:#eaf3ff;--sch-navy:#081529;--sch-success:#12b886;--sch-warn:#e6a700;--sch-danger:#e04f5f;--sch-shadow:0 18px 48px rgba(8,21,41,.08);--sch-shadow-soft:0 8px 24px rgba(8,21,41,.06);}
html,body{background:var(--sch-bg)!important;color:var(--sch-text);}
#app{background:var(--sch-bg);color:var(--sch-text);font-size:clamp(11px,1.02vw,13px);}
#tb{background:rgba(255,255,255,.9);backdrop-filter:saturate(140%) blur(10px);border-bottom:1px solid var(--sch-line);box-shadow:0 8px 24px rgba(8,21,41,.05);}
.tb-primary{border-bottom:1px solid var(--sch-line)!important;}
.tb-library{background:rgba(248,250,253,.95)!important;}
.t,.mi,.pb,.bs,.bp,.save-secondary,.save-primary,.avx-btn,.avx-mini,.avx-tab,.spl-btn,.spl-small-btn{transition:background .14s,border-color .14s,color .14s,transform .14s,box-shadow .14s;}
.t{border:1px solid var(--sch-line-strong);border-radius:10px;background:var(--sch-surface);color:var(--sch-text);box-shadow:0 2px 6px rgba(8,21,41,.03);}
.t:hover{background:var(--sch-accent-soft);border-color:#bcd4fb;color:var(--sch-accent-2);}
.t.on{background:linear-gradient(180deg,var(--sch-accent),var(--sch-accent-2));border-color:var(--sch-accent-2);color:#fff;box-shadow:0 10px 22px rgba(22,116,234,.22);}
.tsep{background:var(--sch-line);}
.tsel{background-image:linear-gradient(45deg,transparent 50%,#6d7c90 50%),linear-gradient(135deg,#6d7c90 50%,transparent 50%)!important;}
.tsel option,.tsel optgroup{background:#fff;color:#081529;}
body.sch-theme-dark .tsel option,body.sch-theme-dark .tsel optgroup{background:#101a2c;color:#eaf1fb;}
#main{background:transparent;gap:0;padding:0;}
#lib,#pr{background:var(--sch-surface);border:1px solid var(--sch-line);border-radius:18px;box-shadow:var(--sch-shadow-soft);}
#lib{border-right:1px solid var(--sch-line)!important;}
#pr{border-left:1px solid var(--sch-line)!important;}
.lib-head{color:var(--sch-text);font-size:14px;}
.lib-count,.pl,#st-hint,.save-meta,.save-chip,.avx-muted,.avx-small,.spl-muted,.db-import-muted{color:var(--sch-muted)!important;}
#cc{background:var(--sch-surface);border:0;border-radius:0;box-shadow:none;}
svg#sv{border-radius:0;}
#bg-rect{fill:#f7f9fc!important;}
#g1 path{stroke:#e2e8f0!important;}
#g2 path{stroke:#cfd8e4!important;}
#st,#bottomBar{background:rgba(255,255,255,.92);border-top:1px solid var(--sch-line);color:var(--sch-text);}
#st{border-radius:0 0 16px 16px;}
#st-msg{color:var(--sch-text)!important;font-weight:500;}
#bottomBar{border-radius:16px; margin:0 10px 10px; box-shadow:var(--sch-shadow-soft);}
.zoom-controls{border-right:1px solid var(--sch-line)!important;}
.pi,.preset-search,.spl-input,.spl-textarea,.spl-select,.avx-input,.avx-select,.avx-textarea{background:#fff;border:1px solid var(--sch-line-strong);color:var(--sch-text);border-radius:10px;}
.pi:focus,.preset-search:focus,.spl-input:focus,.spl-textarea:focus,.spl-select:focus,.avx-input:focus,.avx-select:focus,.avx-textarea:focus{border-color:#93bbf9;box-shadow:0 0 0 3px rgba(22,116,234,.12);}
.preset-search{background:var(--sch-surface-2);}
.preset-brand{color:var(--sch-accent-2)!important;}
.preset-cat{color:#75839a!important;}
.preset-item{background:linear-gradient(180deg,#fff,#f8fbff);border:1px solid var(--sch-line);border-radius:12px;color:var(--sch-text);box-shadow:0 4px 14px rgba(8,21,41,.04);}
.preset-item:hover{border-color:#9ec4fb;background:linear-gradient(180deg,#fff,#eef5ff);}
.preset-item b{color:var(--sch-text)!important;}
.preset-item span{color:var(--sch-muted)!important;}
.menu-pop,#mb,#saveBox,.db-modal-box,.avx-box{background:var(--sch-surface)!important;border:1px solid var(--sch-line)!important;box-shadow:var(--sch-shadow)!important;}
.mi{color:var(--sch-text)!important;border-radius:8px;}
.mi:hover{background:var(--sch-accent-soft)!important;color:var(--sch-accent-2)!important;}
#mod,#saveMod,.db-modal,.avx-float{background:rgba(8,21,41,.28)!important;backdrop-filter:blur(6px);}
#mb h3,#saveBox h3,.avx-head h3,.spl-panel h2{color:var(--sch-text)!important;}
.save-primary,.bp,.spl-small-btn.primary,.avx-mini.primary,.avx-btn.on,.avx-tab.on{background:linear-gradient(180deg,var(--sch-accent),var(--sch-accent-2))!important;border-color:var(--sch-accent-2)!important;color:#fff!important;}
.save-secondary,.bs,.pb,.spl-small-btn,.avx-mini,.avx-btn,.avx-tab{background:var(--sch-surface-2)!important;border:1px solid var(--sch-line)!important;color:var(--sch-text)!important;}
.pb:hover,.bs:hover,.save-secondary:hover,.spl-small-btn:hover,.avx-mini:hover,.avx-btn:hover,.avx-tab:hover{background:var(--sch-accent-soft)!important;color:var(--sch-accent-2)!important;border-color:#bcd4fb!important;}
.pb.r,.avx-mini.danger,.spl-btn.danger{border-color:#f1c2c8!important;color:#c44151!important;background:#fff6f7!important;}
.pb.r:hover,.avx-mini.danger:hover,.spl-btn.danger:hover{background:#ffedf0!important;border-color:#e6a6af!important;color:#af3241!important;}
.spl-tab{background:var(--sch-surface-2)!important;border:1px solid var(--sch-line)!important;color:var(--sch-muted)!important;}
.spl-tab.on{background:var(--sch-accent-soft)!important;border-color:#b8d2fb!important;color:var(--sch-accent-2)!important;font-weight:700;}
.spl-info,.db-import-stat,.avx-card,.avx-page,.avx-issue,.avx-note{background:var(--sch-surface-2)!important;border:1px solid var(--sch-line)!important;box-shadow:none;}
.avx-table{background:#fff!important;border:1px solid var(--sch-line)!important;}
.avx-table th{background:#eef4fb!important;color:#3f5a7e!important;border-bottom:1px solid var(--sch-line)!important;}
.avx-table td{border-bottom:1px solid #e8eef6!important;color:var(--sch-text)!important;}
.avx-table tr:hover td{background:#f8fbff!important;}
.avx-card h4,.spl-panel h3,.db-import-list h4{color:var(--sch-accent-2)!important;}
.avx-nav{background:linear-gradient(180deg,#f8fbff,#f3f7fd)!important;border-right:1px solid var(--sch-line)!important;}
.avx-title{color:var(--sch-text)!important;}
.avx-content{color:var(--sch-text)!important;}
.avx-chip{background:#fff!important;border:1px solid var(--sch-line)!important;color:var(--sch-text)!important;}
.avx-kpi{color:var(--sch-text)!important;}
.avx-page.on{background:var(--sch-accent-soft)!important;border-color:#b8d2fb!important;}
.avx-rack{background:#f8fbff!important;border-color:#c7d4e5!important;}
.avx-u{background:#fff!important;border-color:#d7e2ef!important;color:var(--sch-text)!important;}
.avx-u.empty{background:#f1f5fa!important;color:#90a0b5!important;}
.avx-highlight-label{stroke:#f7f9fc!important;}
.schematic-brand-chip{display:flex;align-items:center;gap:10px;min-width:188px;padding:4px 10px 4px 4px;border:1px solid var(--sch-line);background:linear-gradient(180deg,#fff,#f7faff);border-radius:8px;box-shadow:0 6px 18px rgba(8,21,41,.05);margin-right:4px;}
.tb-primary .schematic-brand-chip{order:99;margin-left:auto;margin-right:0;cursor:pointer;user-select:none;}
.tb-primary .schematic-brand-chip:hover{border-color:#9ec4fb;background:linear-gradient(180deg,#fff,#eef5ff);}
.tb-primary .schematic-brand-chip:focus{outline:none;box-shadow:0 0 0 3px rgba(22,116,234,.16);}
.schematic-brand-chip img{width:42px;height:42px;object-fit:contain;border-radius:6px;background:#fff;padding:5px;}
.schematic-brand-chip b{display:block;font-size:13px;line-height:1.05;color:var(--sch-text);}
.schematic-brand-chip span{display:block;font-size:10px;line-height:1.2;color:var(--sch-muted);}
#schematicHelpBtn,#schematicThemeBtn{font-weight:700;}
.tb-primary{border-bottom:0!important;}
.tb-primary .schematic-brand-chip{min-width:148px;padding-right:8px;}
.tb-primary .schematic-brand-chip span{display:none;}
#schematicSplash{background:radial-gradient(circle at 15% 18%,rgba(22,116,234,.11),transparent 28%),radial-gradient(circle at 85% 14%,rgba(8,21,41,.07),transparent 26%),linear-gradient(135deg,#f4f7fb 0%,#eef3f8 52%,#e7edf5 100%)!important;color:var(--sch-text)!important;}
.spl-card{background:rgba(255,255,255,.88)!important;border:1px solid rgba(255,255,255,.72)!important;box-shadow:0 40px 80px rgba(8,21,41,.16)!important;backdrop-filter:blur(18px) saturate(140%);}
.spl-left{background:linear-gradient(180deg,rgba(250,252,255,.95),rgba(239,244,250,.96))!important;border-right:1px solid var(--sch-line)!important;padding:34px 30px!important;}
.spl-brandmark{display:flex;align-items:center;gap:16px;margin-bottom:4px;}
.spl-brandmark img{width:min(100%,320px);height:auto;display:block;filter:drop-shadow(0 12px 26px rgba(8,21,41,.08));}
.spl-kicker{color:#5e6d81!important;letter-spacing:.18em!important;}
.spl-left h1{font-size:34px!important;line-height:1.02!important;color:var(--sch-text)!important;letter-spacing:-.03em;}
.spl-version{color:var(--sch-accent)!important;}
.spl-desc{font-size:14px!important;color:var(--sch-muted)!important;max-width:44ch;}
.spl-actions{gap:10px!important;}
.spl-btn{border:1px solid var(--sch-line)!important;background:#fff!important;color:var(--sch-text)!important;border-radius:14px!important;padding:13px 15px!important;box-shadow:0 8px 20px rgba(8,21,41,.04);}
.spl-btn:hover{transform:translateY(-1px);background:#f8fbff!important;border-color:#b9d2fb!important;color:var(--sch-accent-2)!important;}
.spl-btn.primary{background:linear-gradient(180deg,var(--sch-accent),var(--sch-accent-2))!important;border-color:var(--sch-accent-2)!important;color:#fff!important;box-shadow:0 16px 30px rgba(22,116,234,.22);}
.spl-btn.primary:hover{background:linear-gradient(180deg,#2a84f3,#1669d4)!important;color:#fff!important;}
.spl-foot{color:#6b7a90!important;background:#f8fbff;border:1px solid var(--sch-line);border-radius:14px;padding:12px 14px;}
.spl-right{padding:26px!important;}
.spl-panel{padding-right:0!important;}
.spl-panel.on{display:block;}
.spl-info{border-radius:16px!important;padding:14px!important;background:linear-gradient(180deg,#fff,#f8fbff)!important;}
.spl-info b{color:var(--sch-text)!important;}
.spl-info span{color:var(--sch-muted)!important;}
.spl-loader{height:5px!important;background:#dfe8f5!important;}
.spl-loader:before{background:linear-gradient(90deg,var(--sch-navy),var(--sch-accent))!important;}
.spl-exit-box{border:1px solid #f0c1c8!important;background:#fff6f7!important;color:#b13b49!important;}
.spl-status{color:var(--sch-muted)!important;}
@media(max-width:760px){.schematic-brand-chip{min-width:0}.spl-left{padding:24px!important}.spl-left h1{font-size:28px!important}.spl-brandmark img{max-width:260px;}}

/* style block 4 id="schematic-v37-style" */
/* v37 — launcher, intro, theme */
#schematicIntro{position:fixed;inset:0;z-index:7000;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#f7f9fc 0%,#eef3f8 55%,#e8eef7 100%);transition:opacity .45s ease,visibility .45s ease;color:var(--sch-text,#081529)}
#schematicIntro.intro-off{opacity:0;visibility:hidden;pointer-events:none}
.intro-inner{display:flex;flex-direction:column;align-items:center;gap:12px;transform:translateY(0);animation:intro-pop .72s cubic-bezier(.2,.9,.25,1) both}
.intro-logo-mount img{width:min(360px,72vw);height:auto;display:block;filter:drop-shadow(0 20px 36px rgba(8,21,41,.12))}
.intro-title{font-size:15px;font-weight:800;letter-spacing:.22em;text-transform:uppercase;color:#081529}
.intro-sub{font-size:12px;color:#60708e}
.intro-progress{width:min(320px,70vw);height:5px;border-radius:999px;overflow:hidden;background:#dbe5f1;margin-top:4px}
.intro-progress span{display:block;width:42%;height:100%;border-radius:999px;background:linear-gradient(90deg,#081529,#1674ea);animation:intro-bar 1s ease-in-out infinite}
@keyframes intro-pop{0%{opacity:0;transform:translateY(14px) scale(.98)}100%{opacity:1;transform:translateY(0) scale(1)}}
@keyframes intro-bar{0%{transform:translateX(-110%)}100%{transform:translateX(250%)}}
.spl-card{animation:spl-card-in .55s cubic-bezier(.2,.9,.25,1) both}
@keyframes spl-card-in{0%{opacity:0;transform:translateY(18px) scale(.985)}100%{opacity:1;transform:translateY(0) scale(1)}}
.spl-dashboard{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:10px;margin:4px 0 12px}
.spl-action-card{border:1px solid var(--sch-line);border-radius:18px;background:linear-gradient(180deg,#fff,#f8fbff);padding:16px;text-align:left;cursor:pointer;box-shadow:0 10px 26px rgba(8,21,41,.06)}
.spl-action-card:hover{border-color:#b8d2fb;background:#f5f9ff;transform:translateY(-1px)}
.spl-action-card.primary{background:linear-gradient(180deg,#1674ea,#0f5cc2);border-color:#0f5cc2;color:#fff;box-shadow:0 18px 36px rgba(22,116,234,.22)}
.spl-action-card b{display:block;font-size:15px;margin-bottom:5px}
.spl-action-card span{display:block;font-size:12px;line-height:1.45;color:inherit;opacity:.75}
.spl-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:0 0 12px}
.spl-stats div{border:1px solid var(--sch-line);background:rgba(255,255,255,.72);border-radius:14px;padding:10px 11px}
.spl-stats b{display:block;font-size:20px;line-height:1;color:var(--sch-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.spl-stats span{display:block;font-size:10px;color:var(--sch-muted);text-transform:uppercase;letter-spacing:.07em;margin-top:4px}
.spl-about-hero{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--sch-line);background:linear-gradient(180deg,#fff,#f8fbff);border-radius:18px;padding:16px;margin-bottom:12px}
.spl-about-hero b{display:block;font-size:18px;color:var(--sch-text);margin-bottom:4px}
.spl-about-hero span{display:block;color:var(--sch-muted);font-size:12px;line-height:1.5}
.spl-shortcuts{display:flex;flex-wrap:wrap;gap:7px}
.spl-shortcuts span{background:#fff;border:1px solid var(--sch-line);border-radius:999px;padding:6px 10px;color:var(--sch-muted);font-size:12px}
.spl-shortcuts b{color:var(--sch-accent-2);margin-right:3px}
.spl-btn.resume{border-color:#bad5fb!important;background:#f3f8ff!important;color:#0f5cc2!important}
.spl-btn.resume[disabled]{opacity:.48;cursor:not-allowed;transform:none!important}
#schematicThemeBtn{font-weight:700}
body.sch-theme-dark{--sch-bg:#07101f;--sch-bg-soft:#0b1527;--sch-surface:#101a2c;--sch-surface-2:#0c1628;--sch-line:#23334d;--sch-line-strong:#31435f;--sch-text:#eaf1fb;--sch-muted:#8fa3bf;--sch-accent:#2684ff;--sch-accent-2:#1669d4;--sch-accent-soft:#102846;--sch-navy:#eaf1fb;--sch-shadow:0 20px 52px rgba(0,0,0,.42);--sch-shadow-soft:0 10px 28px rgba(0,0,0,.28)}
body.sch-theme-dark #schematicIntro{background:linear-gradient(135deg,#07101f 0%,#0b1527 60%,#101a2c 100%);color:#eaf1fb}
body.sch-theme-dark .intro-title{color:#eaf1fb}
body.sch-theme-dark .intro-sub{color:#8fa3bf}
body.sch-theme-dark .intro-progress{background:#22324c}
body.sch-theme-dark #tb,body.sch-theme-dark #st,body.sch-theme-dark #bottomBar{background:rgba(16,26,44,.92)}
body.sch-theme-dark #cc,body.sch-theme-dark #lib,body.sch-theme-dark #pr,body.sch-theme-dark .spl-card,body.sch-theme-dark .menu-pop,body.sch-theme-dark #mb,body.sch-theme-dark #saveBox,body.sch-theme-dark .db-modal-box,body.sch-theme-dark .avx-box{background:var(--sch-surface)!important}
body.sch-theme-dark #bg-rect{fill:#0b1220!important}
body.sch-theme-dark #g1 path{stroke:#18243a!important}
body.sch-theme-dark #g2 path{stroke:#20324d!important}
body.sch-theme-dark .t,body.sch-theme-dark .pi,body.sch-theme-dark .preset-search,body.sch-theme-dark .spl-input,body.sch-theme-dark .spl-textarea,body.sch-theme-dark .spl-select,body.sch-theme-dark .avx-input,body.sch-theme-dark .avx-select,body.sch-theme-dark .avx-textarea,body.sch-theme-dark .save-secondary,body.sch-theme-dark .bs,body.sch-theme-dark .pb,body.sch-theme-dark .spl-small-btn,body.sch-theme-dark .avx-mini,body.sch-theme-dark .avx-btn,body.sch-theme-dark .avx-tab{background:var(--sch-surface-2)!important;color:var(--sch-text)!important;border-color:var(--sch-line)!important}
body.sch-theme-dark .preset-item,body.sch-theme-dark .spl-info,body.sch-theme-dark .spl-action-card,body.sch-theme-dark .spl-about-hero,body.sch-theme-dark .spl-stats div,body.sch-theme-dark .avx-card,body.sch-theme-dark .avx-page,body.sch-theme-dark .avx-issue,body.sch-theme-dark .avx-note{background:linear-gradient(180deg,#101a2c,#0c1628)!important;border-color:var(--sch-line)!important;color:var(--sch-text)!important}
body.sch-theme-dark .preset-item b,body.sch-theme-dark .spl-info b,body.sch-theme-dark .spl-stats b,body.sch-theme-dark .spl-about-hero b{color:var(--sch-text)!important}
body.sch-theme-dark .preset-item span,body.sch-theme-dark .spl-info span,body.sch-theme-dark .spl-about-hero span{color:var(--sch-muted)!important}
body.sch-theme-dark .spl-left{background:linear-gradient(180deg,#101a2c,#0c1628)!important;border-right-color:var(--sch-line)!important}
body.sch-theme-dark .spl-foot{background:#0c1628;color:var(--sch-muted)!important;border-color:var(--sch-line)}
body.sch-theme-dark .spl-right{background:#101a2c}
body.sch-theme-dark .spl-tab{background:#0c1628!important;color:var(--sch-muted)!important;border-color:var(--sch-line)!important}
body.sch-theme-dark .spl-tab.on{background:#102846!important;color:#cde2ff!important;border-color:#2b6fcf!important}
body.sch-theme-dark .avx-nav{background:linear-gradient(180deg,#0c1628,#091323)!important;border-right-color:var(--sch-line)!important}
body.sch-theme-dark .avx-table{background:#0c1628!important;border-color:var(--sch-line)!important}
body.sch-theme-dark .avx-table th{background:#13223a!important;color:#b9c9df!important}
body.sch-theme-dark .avx-table td{border-bottom-color:#1c2b44!important;color:var(--sch-text)!important}
body:not(.sch-theme-dark) #lib .quick-generator{background:#fff!important;border-color:var(--sch-line)!important}
body:not(.sch-theme-dark) #lib .quick-generator-input{background:#fff!important;border-color:var(--sch-line-strong)!important;color:var(--sch-text)!important}
body:not(.sch-theme-dark) #lib .quick-generator-check{color:var(--sch-muted)!important}
body.sch-theme-dark .avx-table tr:hover td{background:#101f36!important}
body.sch-theme-dark .schematic-brand-chip{background:linear-gradient(180deg,#101a2c,#0c1628);border-color:var(--sch-line)}
body.sch-theme-dark .tb-primary .schematic-brand-chip:hover{background:linear-gradient(180deg,#14213a,#101b31);border-color:#41669f;}
body.sch-theme-dark .schematic-brand-chip img{background:#fff}
body.sch-theme-dark .schematic-brand-chip b{color:var(--sch-text)}
body.sch-theme-dark .schematic-brand-chip span{color:var(--sch-muted)}
body.sch-theme-dark .spl-action-card.primary{background:linear-gradient(180deg,#2684ff,#1669d4)!important;color:#fff!important}
@media(max-width:900px){.spl-dashboard{grid-template-columns:1fr}.spl-stats{grid-template-columns:1fr 1fr}}

/* style block 5 id="schematic-v40-settings-style" */
.spl-settings-list{display:grid;gap:12px;margin-top:10px}.spl-setting-card{border:1px solid var(--sch-line,#d9e2ee);background:linear-gradient(180deg,#fff,#f8fbff);border-radius:16px;padding:14px;display:grid;gap:10px}.spl-setting-card h3{margin:0!important;font-size:13px!important;color:var(--sch-text,#081529)!important}.spl-setting-row{display:grid;grid-template-columns:minmax(160px,1fr) minmax(180px,260px);align-items:center;gap:12px}.spl-setting-row label{font-size:12px;color:var(--sch-muted,#5f6d82);line-height:1.35}.spl-toggle-line{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--sch-text,#081529)}.spl-toggle-line input{accent-color:var(--sch-accent,#1674ea)}.spl-exit-modal{position:fixed;inset:0;z-index:5100;display:none;align-items:center;justify-content:center;background:rgba(8,21,41,.34);backdrop-filter:blur(7px);padding:20px}.spl-exit-modal.on{display:flex}.spl-exit-dialog{width:min(520px,94vw);background:var(--sch-surface,#fff);border:1px solid var(--sch-line,#d9e2ee);border-radius:22px;box-shadow:0 34px 90px rgba(8,21,41,.22);padding:22px;color:var(--sch-text,#081529)}.spl-exit-dialog h2{margin:0 0 8px;font-size:20px;color:var(--sch-text,#081529)}.spl-exit-dialog p{margin:0 0 15px;color:var(--sch-muted,#5f6d82);font-size:13px;line-height:1.5}.spl-exit-actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}.spl-exit-actions .spl-small-btn{min-width:122px;justify-content:center}.spl-small-btn.danger{border-color:#f1c2c8!important;color:#c44151!important;background:#fff6f7!important}body.sch-theme-dark .spl-setting-card{background:linear-gradient(180deg,#101a2c,#0c1628)!important;border-color:var(--sch-line)!important}body.sch-theme-dark .spl-exit-dialog{background:var(--sch-surface)!important;border-color:var(--sch-line)!important}body.sch-theme-dark .spl-exit-modal{background:rgba(0,0,0,.46)}@media(max-width:760px){.spl-setting-row{grid-template-columns:1fr}.spl-exit-actions{justify-content:stretch}.spl-exit-actions .spl-small-btn{flex:1}}

/* style block 6 id="schematic-v41-fullscreen-dark-menu" */
/* v41 — pełnoekranowe, konsekwentnie ciemne main menu */
#schematicSplash{
  padding:0!important;
  align-items:stretch!important;
  justify-content:stretch!important;
  background:
    radial-gradient(circle at 18% 12%,rgba(38,132,255,.18),transparent 32%),
    radial-gradient(circle at 92% 5%,rgba(38,132,255,.08),transparent 30%),
    linear-gradient(135deg,#07101f 0%,#0b1527 50%,#101a2c 100%)!important;
  color:#eaf1fb!important;
}
#schematicSplash .spl-card{
  width:100vw!important;
  height:100vh!important;
  max-height:none!important;
  max-width:none!important;
  border-radius:0!important;
  border:0!important;
  display:grid!important;
  grid-template-columns:minmax(360px,430px) minmax(0,1fr)!important;
  background:#0b1527!important;
  box-shadow:none!important;
  overflow:hidden!important;
  backdrop-filter:none!important;
}
#schematicSplash .spl-left{
  min-height:0!important;
  padding:clamp(30px,4.2vw,66px)!important;
  background:linear-gradient(180deg,#101a2c 0%,#0b1527 58%,#07101f 100%)!important;
  border-right:1px solid #23334d!important;
  color:#eaf1fb!important;
  overflow:auto!important;
}
#schematicSplash .spl-right{
  min-height:0!important;
  padding:clamp(28px,3.8vw,58px)!important;
  background:linear-gradient(180deg,#0e182a 0%,#0b1527 100%)!important;
  color:#eaf1fb!important;
  overflow:auto!important;
}
#schematicSplash .spl-brandmark{
  width:100%!important;
  min-height:122px!important;
  border:1px solid #23334d!important;
  border-radius:8px!important;
  background:linear-gradient(180deg,#0d1729,#091323)!important;
  box-shadow:0 24px 60px rgba(0,0,0,.24)!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:20px!important;
  overflow:hidden!important;
}
#schematicSplash .spl-brandmark img{
  width:100%!important;
  height:auto!important;
  background:transparent!important;
  filter:none!important;
  mix-blend-mode:normal!important;
}
.wireplan-lockup{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;max-width:100%;min-width:0;}
.wireplan-mark-plate{display:flex;align-items:center;justify-content:center;flex:0 0 72px;width:72px;height:72px;padding:7px;border:1px solid #dce6f3;border-radius:8px;background:#fff;box-shadow:0 14px 34px rgba(0,0,0,.22);}
#schematicSplash .wireplan-mark-plate img{display:block;width:100%!important;height:100%!important;object-fit:contain;}
.wireplan-lockup-copy{min-width:0;text-align:left;}
.wireplan-wordmark{color:#f4f8ff;font-size:32px;font-weight:900;line-height:1;letter-spacing:0;white-space:nowrap;}
.wireplan-wordmark span{color:#238bff;}
.wireplan-tagline{margin-top:9px;color:#9eb0ca;font-size:12px;font-weight:700;line-height:1.35;letter-spacing:0;}
@media(max-width:620px){
  .wireplan-lockup{flex-direction:column;gap:14px;}
  .wireplan-mark-plate{flex-basis:72px;width:72px;height:72px;padding:7px;}
  .wireplan-lockup-copy{text-align:center;}
  .wireplan-wordmark{font-size:30px;}
  .wireplan-tagline{font-size:10px;}
}
#schematicSplash .spl-kicker{color:#8295b3!important;}
#schematicSplash .spl-left h1,
#schematicSplash .spl-panel h2,
#schematicSplash .spl-panel h3,
#schematicSplash .spl-info b,
#schematicSplash .spl-setting-card h3,
#schematicSplash .spl-about-hero b,
#schematicSplash .spl-stats b{color:#eaf1fb!important;}
#schematicSplash .spl-version{color:#2684ff!important;}
#schematicSplash .spl-desc,
#schematicSplash .spl-muted,
#schematicSplash .spl-info span,
#schematicSplash .spl-about-hero span,
#schematicSplash .spl-setting-row label,
#schematicSplash .spl-foot{color:#9eb0ca!important;}
#schematicSplash .spl-foot{
  background:#0a1425!important;
  border:1px solid #23334d!important;
  border-radius:16px!important;
}
#schematicSplash .spl-tabs{
  position:sticky!important;
  top:0!important;
  z-index:2!important;
  background:linear-gradient(180deg,#0e182a 0%,rgba(14,24,42,.92) 78%,rgba(14,24,42,0) 100%)!important;
  padding-bottom:14px!important;
  backdrop-filter:blur(8px)!important;
}
#schematicSplash .spl-tab,
#schematicSplash .spl-btn,
#schematicSplash .spl-small-btn,
#schematicSplash .spl-input,
#schematicSplash .spl-select,
#schematicSplash .spl-textarea{
  background:#0a1425!important;
  border:1px solid #23334d!important;
  color:#eaf1fb!important;
}
#schematicSplash .spl-tab:hover,
#schematicSplash .spl-btn:hover,
#schematicSplash .spl-small-btn:hover{
  background:#102846!important;
  border-color:#2b6fcf!important;
  color:#cde2ff!important;
}
#schematicSplash .spl-tab.on{
  background:#102846!important;
  border-color:#2b6fcf!important;
  color:#cde2ff!important;
  box-shadow:0 10px 26px rgba(38,132,255,.13)!important;
}
#schematicSplash .spl-btn.primary,
#schematicSplash .spl-small-btn.primary{
  background:linear-gradient(180deg,#2684ff,#1669d4)!important;
  border-color:#1669d4!important;
  color:#fff!important;
  box-shadow:0 18px 36px rgba(38,132,255,.24)!important;
}
#schematicSplash .spl-btn.resume{
  background:#102846!important;
  border-color:#2b6fcf!important;
  color:#cde2ff!important;
}
#schematicSplash .spl-btn.danger,
#schematicSplash .spl-small-btn.danger{
  background:#2a1018!important;
  border-color:#693141!important;
  color:#ffb0bd!important;
}
#schematicSplash .spl-info,
#schematicSplash .spl-setting-card,
#schematicSplash .spl-action-card,
#schematicSplash .spl-about-hero,
#schematicSplash .spl-stats div{
  background:linear-gradient(180deg,#101a2c,#0c1628)!important;
  border:1px solid #23334d!important;
  box-shadow:0 12px 34px rgba(0,0,0,.16)!important;
}
#schematicSplash .spl-grid,
#schematicSplash .spl-settings-list{max-width:980px;}
#schematicSplash .spl-panel{height:auto!important;overflow:visible!important;padding-right:0!important;}
#schematicSplash .spl-panel.on{display:block!important;}
#schematicSplash .spl-exit-box{
  background:#2a1018!important;
  border-color:#693141!important;
  color:#ffb0bd!important;
}
#schematicSplash .spl-status{color:#9eb0ca!important;}
@media(max-width:900px){
  #schematicSplash .spl-card{grid-template-columns:1fr!important;overflow:auto!important;}
  #schematicSplash .spl-left{border-right:0!important;border-bottom:1px solid #23334d!important;min-height:auto!important;}
  #schematicSplash .spl-right{min-height:auto!important;}
  #schematicSplash .spl-brandmark{min-height:120px!important;}
}

/* style block 7 id="schematic-v42-fixes" */
/* v42 — poprawki: motyw działa też na main menu, main menu jest prostsze, LINK głośnika nie jest LAN/audio */
#schematicSplash .spl-actions-simple{gap:10px!important;max-width:420px!important}
#schematicSplash .spl-tabs-simple{gap:8px!important;margin-bottom:8px!important}
#schematicSplash .spl-start-lead{margin:0 0 14px!important;max-width:680px!important}
#schematicSplash .spl-dashboard-simple{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;margin:4px 0 14px!important}
#schematicSplash .spl-stats-compact{max-width:760px!important;opacity:.92!important}
#schematicSplash .spl-loader{display:none!important}
@media(max-width:900px){#schematicSplash .spl-dashboard-simple{grid-template-columns:1fr!important}}

body:not(.sch-theme-dark) #schematicSplash{background:radial-gradient(circle at 14% 10%,rgba(22,116,234,.10),transparent 30%),linear-gradient(135deg,#f7f9fc 0%,#eef3f8 55%,#e8eef7 100%)!important;color:#081529!important}
body:not(.sch-theme-dark) #schematicSplash .spl-card{background:#f4f7fb!important;color:#081529!important;box-shadow:none!important}
body:not(.sch-theme-dark) #schematicSplash .spl-left{background:linear-gradient(180deg,#ffffff 0%,#f3f7fd 100%)!important;border-right:1px solid #d9e2ee!important;color:#081529!important}
body:not(.sch-theme-dark) #schematicSplash .spl-right{background:linear-gradient(180deg,#f8fbff 0%,#eef3f8 100%)!important;color:#081529!important}
body:not(.sch-theme-dark) #schematicSplash .spl-brandmark{background:linear-gradient(180deg,#fff,#f8fbff)!important;border:1px solid #d9e2ee!important;box-shadow:0 16px 42px rgba(8,21,41,.07)!important}
body:not(.sch-theme-dark) #schematicSplash .spl-brandmark img{filter:none!important;mix-blend-mode:normal!important}
body:not(.sch-theme-dark) #schematicSplash .wireplan-wordmark{color:#081529!important}
body:not(.sch-theme-dark) #schematicSplash .wireplan-tagline{color:#5f6d82!important}
body:not(.sch-theme-dark) #schematicSplash .spl-kicker,body:not(.sch-theme-dark) #schematicSplash .spl-desc,body:not(.sch-theme-dark) #schematicSplash .spl-muted,body:not(.sch-theme-dark) #schematicSplash .spl-info span,body:not(.sch-theme-dark) #schematicSplash .spl-about-hero span,body:not(.sch-theme-dark) #schematicSplash .spl-setting-row label,body:not(.sch-theme-dark) #schematicSplash .spl-foot{color:#5f6d82!important}
body:not(.sch-theme-dark) #schematicSplash .spl-left h1,body:not(.sch-theme-dark) #schematicSplash .spl-panel h2,body:not(.sch-theme-dark) #schematicSplash .spl-panel h3,body:not(.sch-theme-dark) #schematicSplash .spl-info b,body:not(.sch-theme-dark) #schematicSplash .spl-setting-card h3,body:not(.sch-theme-dark) #schematicSplash .spl-about-hero b,body:not(.sch-theme-dark) #schematicSplash .spl-stats b{color:#081529!important}
body:not(.sch-theme-dark) #schematicSplash .spl-version{color:#1674ea!important}
body:not(.sch-theme-dark) #schematicSplash .spl-foot{background:#fff!important;border:1px solid #d9e2ee!important;border-radius:16px!important}
body:not(.sch-theme-dark) #schematicSplash .spl-tabs{background:linear-gradient(180deg,#f8fbff 0%,rgba(248,251,255,.92) 78%,rgba(248,251,255,0) 100%)!important}
body:not(.sch-theme-dark) #schematicSplash .spl-tab,body:not(.sch-theme-dark) #schematicSplash .spl-btn,body:not(.sch-theme-dark) #schematicSplash .spl-small-btn,body:not(.sch-theme-dark) #schematicSplash .spl-input,body:not(.sch-theme-dark) #schematicSplash .spl-select,body:not(.sch-theme-dark) #schematicSplash .spl-textarea{background:#fff!important;border:1px solid #d9e2ee!important;color:#081529!important}
body:not(.sch-theme-dark) #schematicSplash .spl-tab:hover,body:not(.sch-theme-dark) #schematicSplash .spl-btn:hover,body:not(.sch-theme-dark) #schematicSplash .spl-small-btn:hover{background:#eaf3ff!important;border-color:#b8d2fb!important;color:#0f5cc2!important}
body:not(.sch-theme-dark) #schematicSplash .spl-tab.on{background:#eaf3ff!important;border-color:#b8d2fb!important;color:#0f5cc2!important;box-shadow:0 10px 26px rgba(22,116,234,.10)!important}
body:not(.sch-theme-dark) #schematicSplash .spl-btn.primary,body:not(.sch-theme-dark) #schematicSplash .spl-small-btn.primary,body:not(.sch-theme-dark) #schematicSplash .spl-action-card.primary{background:linear-gradient(180deg,#1674ea,#0f5cc2)!important;border-color:#0f5cc2!important;color:#fff!important;box-shadow:0 18px 36px rgba(22,116,234,.20)!important}
body:not(.sch-theme-dark) #schematicSplash .spl-btn.danger,body:not(.sch-theme-dark) #schematicSplash .spl-small-btn.danger{background:#fff6f7!important;border-color:#f1c2c8!important;color:#c44151!important}
body:not(.sch-theme-dark) #schematicSplash .spl-info,body:not(.sch-theme-dark) #schematicSplash .spl-setting-card,body:not(.sch-theme-dark) #schematicSplash .spl-action-card,body:not(.sch-theme-dark) #schematicSplash .spl-about-hero,body:not(.sch-theme-dark) #schematicSplash .spl-stats div{background:linear-gradient(180deg,#ffffff,#f8fbff)!important;border:1px solid #d9e2ee!important;box-shadow:0 10px 28px rgba(8,21,41,.06)!important;color:#081529!important}

/* style block 8 id="schematic-v43-device-db-style" */
/* v43 — zintegrowany edytor bazy urządzeń */
#schematicSplash .spl-dashboard-simple{grid-template-columns:repeat(4,minmax(0,1fr))!important;}
#schematicSplash .dbx-wrap{display:grid;grid-template-columns:minmax(220px,280px) minmax(300px,1fr) minmax(360px,500px);gap:14px;min-height:560px;max-width:1280px;}
#schematicSplash .dbx-card{background:linear-gradient(180deg,#101a2c,#0c1628);border:1px solid #23334d;border-radius:18px;box-shadow:0 14px 34px rgba(0,0,0,.16);min-height:0;overflow:hidden;display:flex;flex-direction:column;color:#eaf1fb;}
#schematicSplash .dbx-head{padding:14px 15px;border-bottom:1px solid #23334d;display:flex;align-items:center;justify-content:space-between;gap:10px;}
#schematicSplash .dbx-head h3{margin:0!important;font-size:14px!important;color:#eaf1fb!important;}
#schematicSplash .dbx-head span{display:block;color:#9eb0ca;font-size:11px;line-height:1.35;margin-top:2px;}
#schematicSplash .dbx-body{padding:14px;overflow:auto;min-height:0;}
#schematicSplash .dbx-stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:14px;}
#schematicSplash .dbx-stat{border:1px solid #23334d;background:#0a1425;border-radius:14px;padding:11px;}
#schematicSplash .dbx-stat b{display:block;color:#eaf1fb;font-size:22px;line-height:1;}
#schematicSplash .dbx-stat span{display:block;color:#9eb0ca;font-size:10px;text-transform:uppercase;letter-spacing:.06em;margin-top:5px;}
#schematicSplash .dbx-actions{display:grid;gap:8px;}
#schematicSplash .dbx-btn{border:1px solid #23334d;background:#0a1425;color:#eaf1fb;border-radius:12px;padding:9px 11px;min-height:38px;cursor:pointer;font-size:12px;font-weight:700;text-align:left;display:inline-flex;align-items:center;justify-content:center;gap:8px;}
#schematicSplash .dbx-btn:hover{background:#102846;border-color:#2b6fcf;color:#cde2ff;}
#schematicSplash .dbx-btn.primary{background:linear-gradient(180deg,#2684ff,#1669d4);border-color:#1669d4;color:#fff;box-shadow:0 14px 28px rgba(38,132,255,.18);}
#schematicSplash .dbx-btn.danger{background:#2a1018;border-color:#693141;color:#ffb0bd;}
#schematicSplash .dbx-btn.small{min-height:32px;padding:6px 9px;font-size:11px;border-radius:10px;}
#schematicSplash .dbx-toolbar{display:grid;grid-template-columns:minmax(160px,1fr) 150px 150px;gap:8px;padding:12px;border-bottom:1px solid #23334d;}
#schematicSplash .dbx-input,#schematicSplash .dbx-select,#schematicSplash .dbx-textarea{width:100%;border:1px solid #23334d;background:#0a1425;color:#eaf1fb;border-radius:12px;min-height:38px;padding:8px 10px;font-size:12px;outline:none;}
#schematicSplash .dbx-textarea{min-height:78px;resize:vertical;line-height:1.4;}
#schematicSplash .dbx-input:focus,#schematicSplash .dbx-select:focus,#schematicSplash .dbx-textarea:focus{border-color:#2b6fcf;box-shadow:0 0 0 3px rgba(38,132,255,.13);}
#schematicSplash .dbx-list{padding:12px;display:grid;gap:9px;overflow:auto;align-content:start;min-height:0;}
#schematicSplash .dbx-item{border:1px solid #23334d;background:#0a1425;border-radius:15px;padding:11px;display:grid;gap:7px;cursor:pointer;text-align:left;color:#eaf1fb;}
#schematicSplash .dbx-item:hover{border-color:#2b6fcf;background:#102846;}
#schematicSplash .dbx-item.on{outline:2px solid #2684ff;background:linear-gradient(135deg,rgba(38,132,255,.16),rgba(10,20,37,.96));}
#schematicSplash .dbx-item b{font-size:14px;color:#fff;overflow-wrap:anywhere;}
#schematicSplash .dbx-meta{display:flex;gap:6px;flex-wrap:wrap;color:#9eb0ca;font-size:11px;}
#schematicSplash .dbx-pill{border:1px solid #23334d;background:#07101f;border-radius:999px;padding:3px 7px;color:#9eb0ca;}
#schematicSplash .dbx-editor-empty{height:100%;min-height:380px;display:grid;place-items:center;text-align:center;color:#9eb0ca;padding:28px;}
#schematicSplash .dbx-editor-empty b{display:block;color:#eaf1fb;margin-bottom:5px;}
#schematicSplash .dbx-form{display:none;overflow:auto;min-height:0;}
#schematicSplash .dbx-form.on{display:block;}
#schematicSplash .dbx-grid2{display:grid;grid-template-columns:1fr 1fr;gap:9px;}
#schematicSplash .dbx-grid3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:9px;}
#schematicSplash .dbx-field{margin-bottom:11px;}
#schematicSplash .dbx-field label{display:block;color:#9eb0ca;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;margin:0 0 5px;}
#schematicSplash .dbx-section{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:15px 0 9px;color:#eaf1fb;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.06em;}
#schematicSplash .dbx-check{display:flex;align-items:center;gap:7px;color:#c8d7ec;font-size:12px;margin-bottom:8px;}
#schematicSplash .dbx-check input{accent-color:#2684ff;}
#schematicSplash .dbx-port-list{display:grid;gap:8px;}
#schematicSplash .dbx-port-bulk{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px;padding:8px 9px;margin:0 0 9px;border:1px solid #23334d;border-radius:8px;background:#0a1425;color:#9eb0ca;font-size:11px;}
#schematicSplash .dbx-port-bulk .dbx-check{margin:0;white-space:nowrap;}
#schematicSplash .dbx-port-side-actions{display:flex;align-items:center;gap:5px;}
#schematicSplash .dbxBulkPortSide{width:34px;min-width:34px;height:32px;padding:0;justify-content:center;font-size:15px;font-weight:900;}
#schematicSplash .dbx-port-name-label{display:flex;align-items:center;gap:7px;}
#schematicSplash .dbx-port-name-label input{width:15px;height:15px;margin:0;accent-color:#2684ff;}
#schematicSplash .dbx-port-row{border:1px solid #23334d;background:#0a1425;border-radius:14px;padding:9px;display:grid;grid-template-columns:minmax(120px,1fr) 88px 92px 118px 118px 62px 34px;gap:7px;align-items:end;}
#schematicSplash .dbx-port-row .dbx-field{margin:0;}
#schematicSplash .dbx-validation{display:grid;gap:7px;margin-top:8px;}
#schematicSplash .dbx-issue{border:1px solid #23334d;background:#0a1425;border-radius:12px;padding:8px 9px;font-size:12px;line-height:1.35;color:#9eb0ca;}
#schematicSplash .dbx-issue.ok{color:#92f3b6;border-color:#27543a;}
#schematicSplash .dbx-issue.warn{color:#ffd98a;border-color:#66471a;}
#schematicSplash .dbx-issue.danger{color:#ffb0bd;border-color:#693141;}
#schematicSplash .dbx-status{min-height:18px;margin-top:10px;color:#9eb0ca;font-size:12px;line-height:1.4;}
#schematicSplash .dbx-topline{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px;max-width:1280px;}
#schematicSplash .dbx-topline h2{margin:0!important;}
#schematicSplash .dbx-topline .spl-muted{max-width:820px;}
#schematicSplash .dbx-hidden{display:none!important;}
body:not(.sch-theme-dark) #schematicSplash .dbx-card{background:linear-gradient(180deg,#fff,#f8fbff);border-color:#d9e2ee;color:#081529;box-shadow:0 10px 28px rgba(8,21,41,.06);}
body:not(.sch-theme-dark) #schematicSplash .dbx-head{border-bottom-color:#d9e2ee;}body:not(.sch-theme-dark) #schematicSplash .dbx-head h3,body:not(.sch-theme-dark) #schematicSplash .dbx-stat b,body:not(.sch-theme-dark) #schematicSplash .dbx-item b,body:not(.sch-theme-dark) #schematicSplash .dbx-editor-empty b,body:not(.sch-theme-dark) #schematicSplash .dbx-section{color:#081529!important;}
body:not(.sch-theme-dark) #schematicSplash .dbx-head span,body:not(.sch-theme-dark) #schematicSplash .dbx-meta,body:not(.sch-theme-dark) #schematicSplash .dbx-field label,body:not(.sch-theme-dark) #schematicSplash .dbx-editor-empty,body:not(.sch-theme-dark) #schematicSplash .dbx-status{color:#5f6d82!important;}
body:not(.sch-theme-dark) #schematicSplash .dbx-stat,body:not(.sch-theme-dark) #schematicSplash .dbx-btn,body:not(.sch-theme-dark) #schematicSplash .dbx-item,body:not(.sch-theme-dark) #schematicSplash .dbx-port-row,body:not(.sch-theme-dark) #schematicSplash .dbx-issue,body:not(.sch-theme-dark) #schematicSplash .dbx-pill{background:#fff;border-color:#d9e2ee;color:#081529;}
body:not(.sch-theme-dark) #schematicSplash .dbx-input,body:not(.sch-theme-dark) #schematicSplash .dbx-select,body:not(.sch-theme-dark) #schematicSplash .dbx-textarea{background:#fff;border-color:#c7d3e4;color:#081529;}
body:not(.sch-theme-dark) #schematicSplash .dbx-toolbar{border-bottom-color:#d9e2ee;}
body:not(.sch-theme-dark) #schematicSplash .dbx-btn:hover,body:not(.sch-theme-dark) #schematicSplash .dbx-item:hover{background:#eaf3ff;border-color:#b8d2fb;color:#0f5cc2;}
body:not(.sch-theme-dark) #schematicSplash .dbx-item.on{background:#eaf3ff;outline-color:#1674ea;}
body:not(.sch-theme-dark) #schematicSplash .dbx-check{color:#081529;}
body:not(.sch-theme-dark) #schematicSplash .dbx-port-bulk{background:#fff;border-color:#d9e2ee;color:#5f6d82;}
@media(max-width:1180px){#schematicSplash .dbx-wrap{grid-template-columns:1fr 1fr;}#schematicSplash .dbx-editor{grid-column:1/-1;min-height:460px;}}
@media(max-width:900px){#schematicSplash .spl-dashboard-simple{grid-template-columns:1fr!important;}#schematicSplash .dbx-wrap{grid-template-columns:1fr;}#schematicSplash .dbx-toolbar,#schematicSplash .dbx-grid2,#schematicSplash .dbx-grid3{grid-template-columns:1fr;}#schematicSplash .dbx-port-row{grid-template-columns:1fr;}#schematicSplash .dbx-topline{display:grid;}}
@media(max-width:700px){.modal-port-bulk,#schematicSplash .dbx-port-bulk{grid-template-columns:1fr}.modal-port-side-actions,#schematicSplash .dbx-port-side-actions{justify-content:flex-start}}

/* style block 9 id="schematic-v44-modular-style" */
/* v44 — local-first modular architecture */
#schematicSplash .spl-dashboard-simple{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))!important;}
#schematicSplash .arch-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:14px;max-width:1280px;align-items:start;}
#schematicSplash .arch-card{background:linear-gradient(180deg,#101a2c,#0c1628);border:1px solid #23334d;border-radius:18px;padding:16px;box-shadow:0 14px 34px rgba(0,0,0,.16);color:#eaf1fb;}
#schematicSplash .arch-card h3{margin:0 0 8px!important;color:#eaf1fb!important;font-size:14px!important;}
#schematicSplash .arch-card p{margin:0;color:#9eb0ca;font-size:12px;line-height:1.55;}
#schematicSplash .arch-flow{display:grid;gap:10px;margin:12px 0;}
#schematicSplash .arch-step{display:grid;grid-template-columns:34px 1fr;gap:10px;align-items:start;border:1px solid #23334d;background:#0a1425;border-radius:14px;padding:11px;}
#schematicSplash .arch-step b{display:block;color:#fff;font-size:13px;margin-bottom:2px;}
#schematicSplash .arch-step span{color:#9eb0ca;font-size:12px;line-height:1.45;}
#schematicSplash .arch-dot{width:28px;height:28px;border-radius:10px;background:linear-gradient(180deg,#2684ff,#1669d4);display:grid;place-items:center;color:#fff;font-weight:900;font-size:12px;}
#schematicSplash .arch-code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:pre-wrap;background:#07101f;border:1px solid #23334d;border-radius:14px;color:#cde2ff;padding:12px;font-size:11px;line-height:1.45;overflow:auto;max-height:340px;}
#schematicSplash .arch-kpi{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px;}
#schematicSplash .arch-kpi div{border:1px solid #23334d;background:#0a1425;border-radius:14px;padding:10px;}
#schematicSplash .arch-kpi b{display:block;color:#fff;font-size:18px;line-height:1;}
#schematicSplash .arch-kpi span{display:block;color:#9eb0ca;font-size:10px;text-transform:uppercase;letter-spacing:.06em;margin-top:5px;}
#schematicSplash .storage-status{min-height:18px;color:#9eb0ca;font-size:12px;line-height:1.45;margin-top:8px;}
#schematicSplash .storage-pill{display:inline-flex;align-items:center;gap:6px;border:1px solid #23334d;background:#0a1425;border-radius:999px;color:#9eb0ca;padding:5px 9px;font-size:11px;font-weight:800;margin:2px 4px 2px 0;}
#schematicSplash .storage-pill.ok{color:#92f3b6;border-color:#27543a;}
#schematicSplash .storage-pill.warn{color:#ffd98a;border-color:#66471a;}
body:not(.sch-theme-dark) #schematicSplash .arch-card{background:linear-gradient(180deg,#fff,#f8fbff);border-color:#d9e2ee;color:#081529;box-shadow:0 10px 28px rgba(8,21,41,.06);}
body:not(.sch-theme-dark) #schematicSplash .arch-card h3,body:not(.sch-theme-dark) #schematicSplash .arch-step b,body:not(.sch-theme-dark) #schematicSplash .arch-kpi b{color:#081529!important;}
body:not(.sch-theme-dark) #schematicSplash .arch-card p,body:not(.sch-theme-dark) #schematicSplash .arch-step span,body:not(.sch-theme-dark) #schematicSplash .arch-kpi span,body:not(.sch-theme-dark) #schematicSplash .storage-status{color:#5f6d82!important;}
body:not(.sch-theme-dark) #schematicSplash .arch-step,body:not(.sch-theme-dark) #schematicSplash .arch-kpi div,body:not(.sch-theme-dark) #schematicSplash .storage-pill{background:#fff;border-color:#d9e2ee;color:#5f6d82;}
body:not(.sch-theme-dark) #schematicSplash .arch-code{background:#f8fbff;border-color:#d9e2ee;color:#0f5cc2;}
@media(max-width:1000px){#schematicSplash .arch-grid{grid-template-columns:1fr;}#schematicSplash .arch-kpi{grid-template-columns:1fr;}}

/* style block 10 id="schematic-v48-device-editor-sticky-layout" */
/* v48 — edytor urządzeń: sticky panel edycji + poprawione skalowanie prawej strony */
#schematicSplash .spl-panel[data-spl-panel="deviceEditor"].on{
  display:flex!important;
  flex-direction:column!important;
  min-height:0!important;
}
#schematicSplash .spl-panel[data-spl-panel="deviceEditor"] .dbx-topline{
  flex:0 0 auto!important;
}
#schematicSplash .dbx-wrap{
  width:100%!important;
  max-width:none!important;
  height:calc(100vh - 220px)!important;
  min-height:480px!important;
  grid-template-columns:minmax(220px,270px) minmax(320px,1fr) minmax(420px,560px)!important;
  align-items:stretch!important;
  overflow:visible!important;
}
#schematicSplash .dbx-wrap > .dbx-card{
  height:100%!important;
  min-height:0!important;
}
#schematicSplash .dbx-card > .dbx-body,
#schematicSplash .dbx-list{
  flex:1 1 auto!important;
  min-height:0!important;
}
#schematicSplash .dbx-editor{
  position:sticky!important;
  top:12px!important;
  align-self:start!important;
  max-height:calc(100vh - 220px)!important;
  min-width:0!important;
}
#schematicSplash .dbx-editor .dbx-head{
  flex:0 0 auto!important;
  position:sticky!important;
  top:0!important;
  z-index:4!important;
  background:linear-gradient(180deg,#101a2c,#0c1628)!important;
}
body:not(.sch-theme-dark) #schematicSplash .dbx-editor .dbx-head{
  background:linear-gradient(180deg,#fff,#f8fbff)!important;
}
#schematicSplash .dbx-editor .spl-inline{
  flex-wrap:wrap!important;
  justify-content:flex-end!important;
}
#schematicSplash .dbx-form.on{
  display:flex!important;
  flex-direction:column!important;
  flex:1 1 auto!important;
  min-height:0!important;
  overflow:hidden!important;
}
#schematicSplash .dbx-form.on > .dbx-body{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow:auto!important;
  padding-right:12px!important;
}
#schematicSplash .dbx-editor-empty{
  flex:1 1 auto!important;
  min-height:0!important;
}
#schematicSplash .dbx-grid2{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
#schematicSplash .dbx-grid3{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
#schematicSplash .dbx-input,
#schematicSplash .dbx-select,
#schematicSplash .dbx-textarea{
  min-width:0!important;
}
#schematicSplash .dbx-port-row{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;
  align-items:end!important;
  overflow:hidden!important;
}
#schematicSplash .dbx-port-row .dbx-field:first-child{
  grid-column:1 / -1!important;
}
#schematicSplash .dbx-port-row .dbxRemovePort{
  justify-self:end!important;
  align-self:end!important;
  width:38px!important;
  min-width:38px!important;
  min-height:38px!important;
}
#schematicSplash .dbx-port-row .dbx-field[style*="grid-column"]{
  grid-column:1 / -1!important;
}
#schematicSplash .dbx-section{
  position:sticky!important;
  top:0!important;
  z-index:2!important;
  padding:8px 0!important;
  background:linear-gradient(180deg,#101a2c 0%,rgba(16,26,44,.96) 72%,rgba(16,26,44,0) 100%)!important;
}
body:not(.sch-theme-dark) #schematicSplash .dbx-section{
  background:linear-gradient(180deg,#fff 0%,rgba(255,255,255,.96) 72%,rgba(255,255,255,0) 100%)!important;
}
@media(min-width:1500px){
  #schematicSplash .dbx-wrap{
    grid-template-columns:minmax(230px,290px) minmax(360px,1fr) minmax(520px,680px)!important;
  }
  #schematicSplash .dbx-port-row{
    grid-template-columns:minmax(140px,1fr) minmax(140px,1fr) minmax(140px,1fr)!important;
  }
}
@media(max-width:1180px){
  #schematicSplash .dbx-wrap{
    height:auto!important;
    min-height:0!important;
    grid-template-columns:1fr 1fr!important;
  }
  #schematicSplash .dbx-wrap > .dbx-card{
    height:auto!important;
    min-height:360px!important;
    max-height:none!important;
  }
  #schematicSplash .dbx-list{
    max-height:52vh!important;
  }
  #schematicSplash .dbx-editor{
    position:static!important;
    max-height:none!important;
    height:auto!important;
  }
  #schematicSplash .dbx-editor .dbx-head,
  #schematicSplash .dbx-section{
    position:static!important;
  }
}
@media(max-width:900px){
  #schematicSplash .dbx-wrap{
    grid-template-columns:1fr!important;
  }
  #schematicSplash .dbx-grid2,
  #schematicSplash .dbx-grid3,
  #schematicSplash .dbx-port-row{
    grid-template-columns:1fr!important;
  }
  #schematicSplash .dbx-port-row .dbx-field:first-child{
    grid-column:auto!important;
  }
}

/* style block 11 id="schematic-v49-device-preview-style" */
#schematicSplash .dbx-preview{border:1px solid #23334d;border-radius:16px;background:linear-gradient(180deg,#0a1425,#0d182b);padding:14px;display:grid;gap:10px;box-shadow:inset 0 1px 0 rgba(255,255,255,.02);}
#schematicSplash .dbx-preview-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;}
#schematicSplash .dbx-preview-title b{display:block;color:#eaf1fb;font-size:13px;line-height:1.2;}
#schematicSplash .dbx-preview-title span{display:block;color:#9eb0ca;font-size:11px;line-height:1.35;margin-top:3px;}
#schematicSplash .dbx-preview-badges{display:flex;flex-wrap:wrap;gap:6px;}
#schematicSplash .dbx-preview-badge{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border:1px solid #23334d;border-radius:999px;background:#0a1425;color:#9eb0ca;font-size:10px;font-weight:700;letter-spacing:.03em;text-transform:uppercase;}
#schematicSplash .dbx-preview-stage{border:1px solid #23334d;border-radius:14px;background:radial-gradient(circle at 50% 0%,rgba(38,132,255,.08),transparent 40%),linear-gradient(180deg,#0b1628,#091222);padding:10px;min-height:210px;display:flex;align-items:center;justify-content:center;overflow:auto;}
#schematicSplash .dbx-preview-stage svg{width:100%;max-width:100%;height:auto;display:block;}
#schematicSplash .dbx-preview-legend{display:flex;flex-wrap:wrap;gap:8px 12px;}
#schematicSplash .dbx-preview-legend-item{display:inline-flex;align-items:center;gap:6px;color:#9eb0ca;font-size:11px;}
#schematicSplash .dbx-preview-dot{width:10px;height:10px;border-radius:999px;border:1px solid rgba(255,255,255,.28);display:inline-block;flex:0 0 auto;}
body:not(.sch-theme-dark) #schematicSplash .dbx-preview{background:linear-gradient(180deg,#f8fbff,#eef4fb)!important;border-color:#d9e2ee!important;}
body:not(.sch-theme-dark) #schematicSplash .dbx-preview-stage{background:linear-gradient(180deg,#ffffff,#f4f8fe)!important;border-color:#d9e2ee!important;}
body:not(.sch-theme-dark) #schematicSplash .dbx-preview-title b{color:#081529!important;}
body:not(.sch-theme-dark) #schematicSplash .dbx-preview-title span,body:not(.sch-theme-dark) #schematicSplash .dbx-preview-legend-item,body:not(.sch-theme-dark) #schematicSplash .dbx-preview-badge{color:#5f6d82!important;}
body:not(.sch-theme-dark) #schematicSplash .dbx-preview-badge{background:#fff!important;border-color:#d9e2ee!important;}

/* REV 1.60 - unified project workflow and active-project context */
#schematicSplash .project-title-toggle{margin:12px 0 4px;}
#schematicSplash .project-start-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
#schematicSplash .project-start-choice{min-height:118px;border:1px solid #263350;border-radius:8px;background:#0d1524;color:#d8e2f0;padding:13px;text-align:left;cursor:pointer;display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto 1fr;column-gap:10px;align-items:start;}
#schematicSplash .project-start-choice:hover{border-color:#4a7bd8;background:#121f35;}
#schematicSplash .project-start-choice.on{border-color:#2684ff;background:#102846;box-shadow:0 0 0 2px rgba(38,132,255,.16);}
#schematicSplash .project-start-choice b{font-size:14px;line-height:28px;}
#schematicSplash .project-start-choice small{grid-column:1/-1;color:#9fb0c8;font-size:11px;line-height:1.45;margin-top:8px;}
#schematicSplash .project-start-icon{width:34px;height:28px;border:1px solid #355078;border-radius:6px;display:flex;align-items:center;justify-content:center;color:#8ec4ff;font-size:10px;font-weight:900;}
#schematicSplash .project-create-footer{margin-top:15px;padding-top:14px;border-top:1px solid #263350;display:flex;justify-content:space-between;align-items:center;gap:16px;}
#schematicSplash .project-create-button{min-width:250px;height:42px;}
#schematicSplash .workspace-active-project{display:flex;align-items:center;gap:13px;border:1px solid #2b6fcf;border-radius:8px;background:#0c1c33;padding:11px 13px;margin-bottom:16px;color:#eaf1fb;}
#schematicSplash .workspace-active-project.empty{border-color:#39465b;background:#0d1524;}
#schematicSplash .workspace-active-project-copy{min-width:0;flex:1;}
#schematicSplash .workspace-active-project-copy span{display:block;color:#7fa4d8;font-size:9px;font-weight:900;text-transform:uppercase;}
#schematicSplash .workspace-active-project-copy b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;margin-top:3px;}
#schematicSplash .workspace-active-project-copy small{display:block;color:#9fb0c8;font-size:10px;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
#schematicSplash .workspace-active-project .spl-small-btn{flex:0 0 auto;}
.wireplan-project-chip{min-width:156px;max-width:220px;height:38px;border:1px solid #2c4263;border-radius:7px;background:#0d1b30;color:#eaf1fb;padding:5px 9px;text-align:left;cursor:pointer;display:grid;align-content:center;}
.wireplan-project-chip span{display:block;color:#7fa4d8;font-size:8px;font-weight:900;text-transform:uppercase;line-height:1.1;}
.wireplan-project-chip b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;line-height:1.3;}
.wireplan-project-chip.empty b{color:#9fb0c8;}
body:not(.sch-theme-dark) #schematicSplash .project-start-choice{background:#fff;color:#081529;border-color:#d9e2ee;}
body:not(.sch-theme-dark) #schematicSplash .project-start-choice:hover{background:#f6f9fd;border-color:#a9c8f4;}
body:not(.sch-theme-dark) #schematicSplash .project-start-choice.on{background:#eef6ff;border-color:#1674ea;}
body:not(.sch-theme-dark) #schematicSplash .project-start-choice small{color:#5f6d82;}
body:not(.sch-theme-dark) #schematicSplash .project-start-icon{border-color:#bcd3f2;color:#0f5cc2;background:#fff;}
body:not(.sch-theme-dark) #schematicSplash .project-create-footer{border-top-color:#d9e2ee;}
body:not(.sch-theme-dark) #schematicSplash .workspace-active-project{background:#eef6ff;border-color:#9fc6f7;color:#081529;}
body:not(.sch-theme-dark) #schematicSplash .workspace-active-project.empty{background:#fff;border-color:#d9e2ee;}
body:not(.sch-theme-dark) #schematicSplash .workspace-active-project-copy small{color:#5f6d82;}
body:not(.sch-theme-dark) .wireplan-project-chip{background:#fff;border-color:#cbd6e4;color:#142034;}
@media(max-width:1050px){#schematicSplash .project-start-grid{grid-template-columns:1fr;}.wireplan-project-chip{min-width:120px;max-width:160px;}}
@media(max-width:620px){#schematicSplash .project-create-footer{align-items:stretch;flex-direction:column;}.project-create-button{width:100%;min-width:0!important;}.wireplan-project-chip{max-width:130px;}}

/* Hard viewport reset: the designer must touch the browser viewport edges. */
html,body{margin:0!important;padding:0!important;width:100%!important;height:100%!important;overflow:hidden!important;}
#app{position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;min-height:0!important;margin:0!important;border-radius:0!important;}
#main{gap:0!important;padding:0!important;}
#cc,svg#sv{border-radius:0!important;}

/* style block 12 id="schematic-v53-device-generator-style" */
#schematicSplash .dbx-generator-head{padding:12px 12px 0;border-bottom:0;}
#schematicSplash .dbx-generator-head .dbx-btn{width:100%;justify-content:center;}
#schematicSplash .dbx-generator-panel{display:none;margin:12px;border:1px solid #23334d;border-radius:16px;background:linear-gradient(180deg,#0a1425,#0d182b);padding:12px;box-shadow:inset 0 1px 0 rgba(255,255,255,.02);overflow:hidden;}
#schematicSplash .dbx-generator-panel.on{display:block;}
#schematicSplash .gen-tabs{margin-bottom:10px;}
#schematicSplash .gen-page{margin-bottom:10px;}
#schematicSplash .dbx-gen-counts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
#schematicSplash .dbx-gen-counts .dbx-field label{min-height:30px;line-height:1.15;white-space:normal;overflow-wrap:anywhere;}
#schematicSplash .dbx-gen-num{text-align:center;font-weight:800;font-size:15px!important;}
#schematicSplash .dbx-gen-summary{border:1px solid #23334d;background:#07101f;border-radius:12px;padding:8px 10px;color:#9eb0ca;font-size:12px;font-weight:800;margin:0 0 10px;}
#schematicSplash .dbx-gen-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 10px;margin:4px 0 10px;}
#schematicSplash .dbx-gen-custom{display:grid;grid-template-columns:minmax(0,1fr) 84px;gap:8px;}
#schematicSplash .dbx-gen-custom select{min-width:0;}
#schematicSplash .dbx-gen-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px;}
body:not(.sch-theme-dark) #schematicSplash .dbx-generator-panel{background:linear-gradient(180deg,#fff,#f8fbff)!important;border-color:#d9e2ee!important;}
body:not(.sch-theme-dark) #schematicSplash .dbx-gen-summary{background:#fff!important;border-color:#d9e2ee!important;color:#5f6d82!important;}
@media(min-width:1500px){#schematicSplash .dbx-gen-counts{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:700px){#schematicSplash .dbx-gen-counts,#schematicSplash .dbx-gen-checks,#schematicSplash .dbx-gen-custom,#schematicSplash .dbx-gen-actions{grid-template-columns:1fr;}}

/* style block 13 id="schematic-v74-changelog-style" */
#schematicSplash .spl-changelog-head{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;margin:0 0 14px;}
#schematicSplash .spl-changelog-stat{border:1px solid #23334d;background:#0a1425;border-radius:16px;padding:12px;}
#schematicSplash .spl-changelog-stat b{display:block;color:#eaf1fb;font-size:22px;line-height:1;}
#schematicSplash .spl-changelog-stat span{display:block;color:#9eb0ca;font-size:11px;line-height:1.35;margin-top:5px;}
#schematicSplash .spl-changelog-list{display:grid;gap:10px;padding-bottom:8px;}
#schematicSplash .spl-change{display:grid;grid-template-columns:120px minmax(0,1fr);gap:12px;border:1px solid #23334d;background:linear-gradient(180deg,#101a2c,#0c1628);border-radius:16px;padding:13px;color:#eaf1fb;}
#schematicSplash .spl-change-version{font-weight:900;color:#72a8ff;font-size:13px;line-height:1.25;}
#schematicSplash .spl-change-version span{display:block;color:#9eb0ca;font-size:10px;font-weight:700;margin-top:5px;text-transform:uppercase;letter-spacing:.06em;}
#schematicSplash .spl-change h3{margin:0 0 7px!important;color:#eaf1fb!important;font-size:14px!important;}
#schematicSplash .spl-change ul{margin:0;padding-left:18px;color:#c8d7ec;font-size:12px;line-height:1.45;}
#schematicSplash .spl-change li{margin:3px 0;}
body:not(.sch-theme-dark) #schematicSplash .spl-changelog-stat,
body:not(.sch-theme-dark) #schematicSplash .spl-change{background:linear-gradient(180deg,#fff,#f8fbff)!important;border-color:#d9e2ee!important;color:#081529!important;box-shadow:0 10px 28px rgba(8,21,41,.06);}
body:not(.sch-theme-dark) #schematicSplash .spl-changelog-stat b,
body:not(.sch-theme-dark) #schematicSplash .spl-change h3{color:#081529!important;}
body:not(.sch-theme-dark) #schematicSplash .spl-changelog-stat span,
body:not(.sch-theme-dark) #schematicSplash .spl-change ul,
body:not(.sch-theme-dark) #schematicSplash .spl-change-version span{color:#5f6d82!important;}
body:not(.sch-theme-dark) #schematicSplash .spl-change-version{color:#0f5cc2!important;}
@media(max-width:700px){#schematicSplash .spl-change{grid-template-columns:1fr;}}

/* style block 14 id="schematic-v50-main-menu-style" */
#schematicSplash .spl-tabs-simple{display:none!important;}
#schematicSplash .spl-actions-simple{max-width:none!important;}
#schematicSplash .spl-btn{min-height:48px!important;}
#schematicSplash .spl-btn.on{
  background:#102846!important;
  border-color:#2b6fcf!important;
  color:#cde2ff!important;
  box-shadow:0 10px 26px rgba(38,132,255,.13)!important;
}
#schematicSplash .spl-revision-foot{
  display:flex;
  flex-wrap:wrap;
  gap:8px 14px;
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid #23334d;
  color:#cde2ff;
  font-weight:700;
}
body:not(.sch-theme-dark) #schematicSplash .spl-revision-foot{
  border-top-color:#d9e2ee;
  color:#0f5cc2;
}
#schematicSplash .spl-start-state{
  max-width:760px;
}

/* style block 17 id="schematic-v49-device-preview-style" */
#schematicSplash .dbx-preview{border:1px solid #23334d;border-radius:16px;background:linear-gradient(180deg,#0a1425,#0d182b);padding:14px;display:grid;gap:10px;box-shadow:inset 0 1px 0 rgba(255,255,255,.02);}
#schematicSplash .dbx-preview-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;}
#schematicSplash .dbx-preview-title b{display:block;color:#eaf1fb;font-size:13px;line-height:1.2;}
#schematicSplash .dbx-preview-title span{display:block;color:#9eb0ca;font-size:11px;line-height:1.35;margin-top:3px;}
#schematicSplash .dbx-preview-badges{display:flex;flex-wrap:wrap;gap:6px;}
#schematicSplash .dbx-preview-badge{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border:1px solid #23334d;border-radius:999px;background:#0a1425;color:#9eb0ca;font-size:10px;font-weight:700;letter-spacing:.03em;text-transform:uppercase;}
#schematicSplash .dbx-preview-stage{border:1px solid #23334d;border-radius:14px;background:radial-gradient(circle at 50% 0%,rgba(38,132,255,.08),transparent 40%),linear-gradient(180deg,#0b1628,#091222);padding:10px;min-height:210px;display:flex;align-items:center;justify-content:center;overflow:auto;}
#schematicSplash .dbx-preview-stage svg{width:100%;max-width:100%;height:auto;display:block;}
#schematicSplash .dbx-preview-legend{display:flex;flex-wrap:wrap;gap:8px 12px;}
#schematicSplash .dbx-preview-legend-item{display:inline-flex;align-items:center;gap:6px;color:#9eb0ca;font-size:11px;}
#schematicSplash .dbx-preview-dot{width:10px;height:10px;border-radius:999px;border:1px solid rgba(255,255,255,.28);display:inline-block;flex:0 0 auto;}
body:not(.sch-theme-dark) #schematicSplash .dbx-preview{background:linear-gradient(180deg,#f8fbff,#eef4fb)!important;border-color:#d9e2ee!important;}
body:not(.sch-theme-dark) #schematicSplash .dbx-preview-stage{background:linear-gradient(180deg,#ffffff,#f4f8fe)!important;border-color:#d9e2ee!important;}
body:not(.sch-theme-dark) #schematicSplash .dbx-preview-title b{color:#081529!important;}
body:not(.sch-theme-dark) #schematicSplash .dbx-preview-title span,body:not(.sch-theme-dark) #schematicSplash .dbx-preview-legend-item,body:not(.sch-theme-dark) #schematicSplash .dbx-preview-badge{color:#5f6d82!important;}
body:not(.sch-theme-dark) #schematicSplash .dbx-preview-badge{background:#fff!important;border-color:#d9e2ee!important;}
.dbx-symbol-config{align-items:stretch}
.dbx-symbol-config small{display:block;min-height:16px;margin-top:6px;color:#7f93ad;font-size:11px}
.dbx-symbol-preview{display:grid;place-items:center;min-height:82px;border:1px solid #29405f;border-radius:6px;background:#09172a}
.dbx-symbol-preview svg{width:68px;height:68px;display:block}
