:root{
 --bg:#070d13;--panel:#101922;--panel2:#121f2a;--line:#2a3a49;--text:#e9f2f8;
 --muted:#95a6b5;--blue:#1a8cff;--blue2:#0a5ebc;--green:#37d86b;--red:#ff4d55;
 --amber:#f2bc3f;--purple:#c164e8
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:radial-gradient(circle at 55% -10%,#122436 0,#070d13 42%);color:var(--text);font:14px/1.4 Inter,Segoe UI,Arial,sans-serif}
button,input,select{font:inherit}
.topbar{height:64px;padding:0 16px;display:flex;align-items:center;gap:24px;border-bottom:1px solid #263442;background:rgba(7,13,19,.96);position:sticky;top:0;z-index:20}
.brand{display:flex;align-items:center;gap:10px;color:white;text-decoration:none;min-width:310px}.brand-mark{font-size:30px;color:#2fa5ff;transform:rotate(-8deg)}.brand strong{display:block;font-size:19px}.brand small,.free-badge small{display:block;color:var(--muted)}
nav{display:flex;gap:28px;flex:1;justify-content:center}nav a{color:#cdd8e0;text-decoration:none;font-size:12px;font-weight:700}nav a:hover{color:#58b6ff}
.free-badge{text-align:center;border:1px solid #274359;border-radius:7px;padding:5px 12px}.free-badge b{color:#62b8ff}
.icon-button{background:transparent;border:0;color:white;font-size:22px;cursor:pointer}
.dashboard{max-width:1900px;margin:auto;padding:10px;display:grid;grid-template-columns:31% minmax(620px,1fr) 255px;gap:10px}
.left-column,.center-column,.right-column{display:flex;flex-direction:column;gap:10px;min-width:0}
.panel{background:linear-gradient(180deg,rgba(17,29,39,.98),rgba(11,20,28,.98));border:1px solid var(--line);border-radius:7px;box-shadow:0 8px 25px rgba(0,0,0,.18);overflow:hidden}
.block{padding:0 12px 12px}.panel>h2,.block>h2,.explanation-wrap>h2{margin:0 -12px 10px;padding:8px 12px;background:rgba(19,31,42,.85);border-bottom:1px solid var(--line);font-size:13px;color:#50aaff}.panel>h2 span,.block>h2 span{color:#42a5ff}
.driver-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.driver-card{position:relative;padding:0 8px 8px;border-right:1px solid #223442}.driver-card:last-child{border:0}.driver-card h3{font-size:11px;text-align:center;margin:0 0 7px}
.driver-photo{float:left;width:76px;height:76px;margin:2px 10px 8px 0;border:1px solid #465f70;border-radius:10px;overflow:hidden;background:#071019;box-shadow:inset 0 0 18px #000,0 4px 14px rgba(0,0,0,.25)}
.driver-photo img{width:100%;height:100%;display:block;object-fit:cover}
label{display:block;color:#c8d5df;font-size:11px;margin:7px 0;position:relative}input,select{width:100%;margin-top:4px;padding:7px 8px;color:white;background:#0a131b;border:1px solid #304454;border-radius:4px;outline:none}input:focus,select:focus{border-color:#268fff}
.mini-grid{clear:both;display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.mini-grid label{margin:0}.mini-grid em{position:absolute;right:7px;bottom:7px;color:#97a7b3;font-style:normal}.mini-grid input{padding-right:26px}
.quality{display:block;color:#43dd76;font-size:10px;margin-top:7px;min-height:15px}
.frequency>span{display:grid;grid-template-columns:1fr 42px;align-items:center;gap:7px}.frequency input{font-size:19px;text-align:center}.frequency b{font-size:13px}
.filter-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.option-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.option-card{padding:8px;border:1px solid #293d4c;border-radius:5px;background:#0c161e}.option-card>span:first-child{display:flex;gap:6px;align-items:center}.option-card input[type=checkbox]{width:auto;margin:0;accent-color:#199cff}.option-card>span:last-child{display:grid;grid-template-columns:1fr auto;gap:6px;align-items:center}
.calculate{width:72%;display:block;margin:14px auto 0;padding:14px;border:1px solid #278ef0;border-radius:5px;background:linear-gradient(180deg,#167de5,#0a4fa8);color:white;font-weight:800;cursor:pointer;box-shadow:0 0 22px rgba(23,133,237,.18)}
.calculate:hover{filter:brightness(1.12)}.calc-status{text-align:center;color:var(--muted);min-height:18px;font-size:11px;margin-top:5px}.calc-status.ok{color:var(--green)}.calc-status.error{color:var(--red)}
.result-head{min-height:46px;padding:7px 10px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);color:#a8c8e0}.result-head b{color:#52aaff}.actions{display:flex;gap:7px}.actions button{padding:7px 11px;border:1px solid #21629e;border-radius:5px;background:#0d345b;color:#e8f4ff;cursor:pointer}
.warnings-inline{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:7px}.warning{padding:7px 9px;border-left:3px solid var(--amber);background:#2a2414;color:#ffe5a2;font-size:11px}.warning.good{border-color:var(--green);background:#10281a;color:#b8f3c8}.warning.danger{border-color:var(--red);background:#2d1518;color:#ffc1c5}
.schematic{min-height:390px;padding:3px 8px 8px;overflow:auto;background:#071019}.schematic svg{width:100%;height:auto;min-width:820px;display:block}
.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.metrics article{padding:12px;text-align:center;border:1px solid #263c4a;border-radius:6px;background:linear-gradient(180deg,#111d27,#0b141c)}.metrics small{display:block;color:#8ea4b4;font-size:10px}.metrics strong{display:block;margin-top:5px;color:#55d880;font-size:16px}.metrics article:nth-child(2) strong{color:#5fa7ff}.metrics article:nth-child(3) strong{color:#e6b94c}.metrics article:nth-child(4) strong{color:#ca72e6}
.lower-grid{display:grid;grid-template-columns:39% 61%;gap:10px}.lower-grid>.panel{padding:0 9px 9px}.lower-grid>.panel>h2{margin:0 -9px 8px;padding:7px 9px}.lower-grid h2 small{color:#5fa1d4;font-weight:400}
.parts-cards{display:grid;gap:7px}.branch-card{border:1px solid #2a3c49;border-radius:5px;overflow:hidden}.branch-card h3{margin:0;padding:6px 8px;background:#101f2b;color:#5eb5ff;font-size:11px}.parts-grid{display:grid;grid-template-columns:repeat(2,1fr)}.part-card{display:grid;grid-template-columns:30px 42px 1fr;gap:4px;align-items:center;padding:5px 7px;border-bottom:1px solid #22333f}.part-icon{font-size:17px}.part-card .symbol{font-weight:800}.part-card .value{color:#dbe9f1}.part-card .meta{display:none}
.graph-panel canvas{width:100%;height:280px;background:#081119;border:1px solid #253644}.legend{display:flex;justify-content:center;gap:24px;font-size:11px}.legend span:before{content:"";display:inline-block;width:26px;height:3px;margin-right:6px;vertical-align:middle}.legend .low:before{background:var(--green)}.legend .high:before{background:var(--red)}.legend .sum:before{background:#168dff}
.right-column .panel{padding:0 12px 12px}.right-column .panel>h2{margin:0 -12px 10px;padding:9px 12px;color:white}.right-column p,.right-column #calcInfo{font-size:11px;color:#c1ccd4;line-height:1.7}.legend-card i{display:inline-block;width:38px;color:#e2a35f;font-style:normal;font-size:17px}.important h2{color:#ff8a55!important}.important{border-color:#4e332b}
.explanation-wrap{max-width:1880px;margin:0 auto 10px;padding:0 12px 12px;border:1px solid var(--line);border-radius:7px;background:#0d171f}.explanation-wrap>h2{margin:0 -12px 10px}.explanation{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}.explanation article{padding:10px;border-right:1px solid #263744}.explanation article:last-child{border:0}.explanation h4{margin:0 0 6px;color:white;font-size:12px}.explanation p{margin:0;color:#aebdc8;font-size:10px;line-height:1.6}
footer{text-align:center;color:#738694;padding:12px}
.control-disabled{opacity:.4}
body.light{--bg:#dce6ee;--panel:#f7fbff;--panel2:#edf4f8;--line:#b7c8d5;--text:#13222e;--muted:#5f7484;background:#dce6ee;color:var(--text)}body.light .topbar{background:#eef5f9}body.light .brand,body.light nav a,body.light .icon-button{color:#10212e}body.light .panel,body.light .metrics article,body.light .explanation-wrap{background:#f7fbff}body.light input,body.light select{background:white;color:#16232d}body.light .schematic{background:#071019}
@media(max-width:1400px){.dashboard{grid-template-columns:360px minmax(600px,1fr)}.right-column{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,1fr)}.explanation{grid-template-columns:repeat(3,1fr)}}
@media(max-width:980px){.topbar nav,.free-badge{display:none}.brand{min-width:0}.dashboard{grid-template-columns:1fr}.lower-grid{grid-template-columns:1fr}.right-column{grid-template-columns:1fr}.metrics{grid-template-columns:1fr 1fr}.explanation{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.driver-grid,.option-grid,.filter-grid,.metrics,.explanation{grid-template-columns:1fr}.dashboard{padding:5px}.actions{flex-wrap:wrap}.calculate{width:100%}}
@media print{.topbar,.left-column,.right-column,.actions,.warnings-inline,footer{display:none!important}.dashboard{display:block;padding:0}.center-column{display:block}.panel{border:0;box-shadow:none}.schematic{overflow:visible}.explanation-wrap{page-break-before:always}}

.branch-tabs{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:0 0 7px}
.branch-tab{padding:8px 6px;border:1px solid #2b5270;border-radius:4px;background:#0a1924;color:#a7c5da;font-weight:800;font-size:11px;cursor:pointer}
.branch-tab.active{background:linear-gradient(180deg,#197dcc,#0b4f91);color:white;border-color:#359cf0}
.parts-panel .parts-cards{min-height:190px}
.parts-panel .branch-card{display:none}
.parts-panel .branch-card.active{display:block}
.parts-grid{grid-template-columns:1fr}
.part-card{grid-template-columns:32px 48px 1fr 82px}
.part-card .meta{display:block!important;text-align:right;font-size:10px;color:#7f93a2}
.graph-details{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-top:7px}
.graph-detail{padding:7px;border:1px solid #29404f;border-radius:4px;background:#0a141c;text-align:center}
.graph-detail small{display:block;color:#8297a8;font-size:9px}
.graph-detail b{display:block;margin-top:3px;color:white;font-size:12px}
.graph-note{grid-column:1/-1;color:#9dafbc;font-size:10px;line-height:1.45;padding:5px 2px}
@media(max-width:700px){.graph-details{grid-template-columns:1fr 1fr}}

.part-icon{width:34px;height:28px;display:grid;place-items:center;overflow:hidden}
.part-icon img{width:100%;height:100%;object-fit:contain;display:block}
.schematic image{pointer-events:none}

/* ===== CAD UI v1 ===== */
:root{
  --cad-grid:rgba(69,116,148,.10);
  --cad-grid-major:rgba(69,116,148,.18);
}
body{overflow-x:hidden}
.workspace-bar{
  max-width:1900px;margin:8px auto 0;padding:7px 12px;
  display:flex;justify-content:space-between;align-items:center;
  border:1px solid #294153;border-radius:7px;
  background:linear-gradient(180deg,#101d27,#0a141c);
  box-shadow:0 8px 24px rgba(0,0,0,.24)
}
.workspace-title{display:flex;align-items:center;gap:8px}
.workspace-title b{font-size:12px;color:#dce9f1;letter-spacing:.06em}
.workspace-title small{color:#8398a8;border-left:1px solid #314554;padding-left:8px}
.status-dot{width:8px;height:8px;border-radius:50%;background:#38d96c;box-shadow:0 0 10px #38d96c}
.workspace-tools{display:flex;align-items:center;gap:5px}
.workspace-tools button{
  border:1px solid #2c536e;background:#0b2130;color:#d9ebf6;
  border-radius:4px;padding:6px 9px;cursor:pointer
}
.workspace-tools button:hover{background:#123650}
#zoomValue{min-width:46px;text-align:center;color:#62b6ed;font-size:11px;font-weight:800}

.dashboard{align-items:start}
.left-column,.right-column{position:sticky;top:72px;max-height:calc(100vh - 84px);overflow:auto;padding-right:2px}
.center-column{min-width:0}
.result-panel{border-color:#31536c}
.schematic-stage{
  position:relative;overflow:hidden;
  background-color:#071019;
  background-image:
    linear-gradient(var(--cad-grid-major) 1px,transparent 1px),
    linear-gradient(90deg,var(--cad-grid-major) 1px,transparent 1px),
    linear-gradient(var(--cad-grid) 1px,transparent 1px),
    linear-gradient(90deg,var(--cad-grid) 1px,transparent 1px);
  background-size:80px 80px,80px 80px,20px 20px,20px 20px;
  min-height:560px
}
.schematic{
  min-height:560px;padding:58px 12px 18px;
  transform-origin:top left;transition:transform .18s ease;
  background:transparent
}
.schematic svg{min-width:900px;filter:drop-shadow(0 8px 16px rgba(0,0,0,.24))}
.schematic-corner{
  position:absolute;left:0;right:0;top:0;z-index:3;
  display:flex;align-items:center;gap:16px;text-align:left;
  min-height:44px;padding:8px 14px;border-bottom:1px solid #2c4556;
  background:rgba(5,13,19,.94);pointer-events:none
}
.schematic-corner span{display:block;color:#78bfea;font-size:13px;letter-spacing:.035em;font-weight:900;white-space:nowrap}
.schematic-corner small{display:block;color:#8fa6b5;font-size:10px;margin:0;line-height:1.3}

.schematic .component-hit{
  cursor:pointer;outline:none
}
.schematic .component-hit:hover{
  filter:brightness(1.22) drop-shadow(0 0 8px rgba(52,166,255,.6))
}
.schematic .component-hit:focus{
  filter:brightness(1.25) drop-shadow(0 0 10px rgba(255,199,65,.8))
}

.component-inspector{
  position:fixed;right:18px;bottom:18px;z-index:40;
  width:min(420px,calc(100vw - 36px));
  display:grid;grid-template-columns:120px 1fr;gap:14px;
  padding:16px;border:1px solid #3d647f;border-radius:10px;
  background:linear-gradient(180deg,rgba(17,31,42,.98),rgba(7,16,23,.98));
  box-shadow:0 20px 60px rgba(0,0,0,.58);
  transform:translateY(130%);opacity:0;pointer-events:none;
  transition:.22s ease
}
.component-inspector.open{transform:translateY(0);opacity:1;pointer-events:auto}
.inspector-close{
  position:absolute;right:8px;top:6px;border:0;background:transparent;color:#9fb2c0;
  font-size:25px;cursor:pointer
}
.inspector-image{display:grid;place-items:center;min-height:130px;border:1px solid #2b4455;border-radius:8px;background:#071019}
.inspector-image img{max-width:105px;max-height:110px}
.inspector-copy small{color:#4db0ef;font-weight:800}
.inspector-copy h3{margin:4px 0;color:white}
.inspector-copy>strong{display:block;color:#63dc8a;font-size:24px;margin-bottom:9px}
.inspector-copy dl{margin:0;display:grid;grid-template-columns:1fr 1fr;gap:6px}
.inspector-copy dl div{padding:7px;border:1px solid #263d4c;border-radius:5px;background:#0a151d}
.inspector-copy dt{font-size:9px;color:#8195a4}.inspector-copy dd{margin:2px 0 0;color:#e8f2f7;font-size:12px;font-weight:700}
.inspector-copy p{margin:9px 0 0;color:#8ea0ad;font-size:10px}

.parts-panel .part-card{
  cursor:pointer;transition:.15s ease;border-left:3px solid transparent
}
.parts-panel .part-card:hover{
  background:#102533;border-left-color:#38a7ee
}
.parts-panel .part-card.selected{
  background:#102a39;border-left-color:#ffbf43
}
.metrics article{position:relative;overflow:hidden}
.metrics article:after{
  content:"";position:absolute;left:0;right:0;bottom:0;height:2px;
  background:linear-gradient(90deg,transparent,#3aa8ef,transparent);opacity:.55
}
.result-head{background:linear-gradient(90deg,#112334,#0d1821)}
.graph-panel{min-height:360px}
.graph-panel canvas{height:300px}
.explanation-wrap{box-shadow:0 8px 26px rgba(0,0,0,.18)}

@media(max-width:1400px){
  .left-column,.right-column{position:static;max-height:none;overflow:visible}
}
@media(max-width:760px){
  .workspace-bar{margin:5px;align-items:flex-start;gap:8px}
  .workspace-title small{display:none}
  .workspace-tools button:first-child{display:none}
  .component-inspector{grid-template-columns:85px 1fr}
  .inspector-image{min-height:100px}
}

/* ===== Current analysis v1.1 ===== */
.wire-settings{margin:10px 0 12px;padding:10px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;border:1px solid #294657;border-radius:6px;background:#09151e}
.wire-settings-title{grid-column:1/-1;color:#4ab0f1;font-size:10px;font-weight:800;letter-spacing:.08em}
.wire-settings label{font-size:10px;color:#a9bbc7}.wire-settings select{width:100%;margin-top:5px}
.current-analysis{margin-top:10px;overflow:hidden}.current-analysis .panel-title{padding:10px 12px;color:#4ab0f1;font-weight:800;border-bottom:1px solid #294657}
.current-analysis .panel-title small{font-weight:400;color:#7f96a5;margin-left:7px;text-transform:none}
.current-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:10px}
.current-summary article{padding:10px;border:1px solid #294657;border-radius:6px;background:#09151e;text-align:center}
.current-summary small{display:block;color:#8499a8;font-size:9px}.current-summary strong{display:block;margin-top:4px;color:#e9f4fa;font-size:15px}
.current-summary .safe strong{color:#56dc82}.current-summary .caution strong{color:#ffc44d}.current-summary .danger strong{color:#ff6269}
.current-warnings{padding:0 10px}.current-alert{margin-bottom:7px;padding:8px 10px;border-left:3px solid #ffc44d;background:#2a2412;color:#f0d785;font-size:11px}
.current-alert.danger{border-left-color:#ff565f;background:#2b1418;color:#ff9ca1}.current-alert.good{border-left-color:#43d875;background:#102b1b;color:#92ebb0}
.current-table-wrap{padding:5px 10px 10px;overflow:auto}.current-table{width:100%;border-collapse:collapse;min-width:820px;font-size:11px}
.current-table th{padding:7px;background:#102331;color:#77bde9;text-align:left;border:1px solid #294251}.current-table td{padding:7px;border:1px solid #223945;color:#dce8ef}
.current-table tr:nth-child(even) td{background:#09151e}.current-table .ok{color:#55dc80;font-weight:800}.current-table .warn{color:#ffc44d;font-weight:800}.current-table .bad{color:#ff6269;font-weight:800}
.engineering-note{margin:0;padding:0 10px 11px;color:#879aa7;font-size:10px}
@media(max-width:900px){.wire-settings,.current-summary{grid-template-columns:1fr}}


/* ===== Pertinaks CAD v1.3 ===== */
.board-designer{max-width:1900px;margin:12px auto;padding:0;overflow:hidden}
.board-head{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:13px 15px;border-bottom:1px solid #294657;background:linear-gradient(90deg,#102434,#0a151d)}
.board-head h2{margin:0;color:#55b9f5;font-size:15px}.board-head p{margin:4px 0 0;color:#8da0ad;font-size:11px}
.board-actions{display:flex;gap:7px;flex-wrap:wrap}.board-actions button{border:1px solid #33617e;background:#0a2130;color:#e3f2fa;border-radius:5px;padding:9px 12px;font-weight:800;cursor:pointer}.board-actions .calculate{width:auto;margin:0;background:linear-gradient(180deg,#1a83cf,#0b5795)}
.board-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:10px 14px;border-bottom:1px solid #243d4d;background:#09151e}
.board-controls label{font-size:10px;color:#a9bbc7}.board-controls label span{display:flex;align-items:center;gap:5px;margin-top:4px}.board-controls input[type=number]{width:85px}.board-controls .check{display:flex;align-items:center;gap:7px;padding-top:17px}
.board-workspace{display:grid;grid-template-columns:390px minmax(600px,1fr);min-height:600px}.physical-panel{padding:12px;border-right:1px solid #294657;background:#0a151d}.physical-panel h3{margin:0;color:#50b5f2;font-size:12px}.physical-panel>p{color:#8da0ad;font-size:10px;line-height:1.45}
.physical-table-wrap{overflow:auto;max-height:470px}.physical-table{width:100%;border-collapse:collapse;font-size:10px;min-width:360px}.physical-table th,.physical-table td{border:1px solid #29404f;padding:5px}.physical-table th{background:#102331;color:#78bde8}.physical-table input{width:58px;padding:5px;font-size:10px}.physical-table small{display:block;color:#7f95a4}.physical-table b{color:#e7f2f8}
.board-warnings{margin-top:10px}.board-warning{padding:8px;margin-bottom:6px;border-left:3px solid #ffc34a;background:#2b2411;color:#ecd27d;font-size:10px}.board-warning.good{border-color:#45da79;background:#102b1b;color:#95ebb2}.board-warning.danger{border-color:#ff5b64;background:#2c1519;color:#ffa2a8}
.board-canvas-wrap{min-width:0;background:#061018}.board-tabs{display:flex;gap:4px;padding:8px;background:#0a161f;border-bottom:1px solid #284251}.board-tab{padding:7px 10px;border:1px solid #31546b;background:#0b1c27;color:#9fb9ca;border-radius:4px;cursor:pointer;font-size:10px;font-weight:800}.board-tab.active{background:#176fae;color:white;border-color:#3b9ddd}
.board-canvas{height:535px;overflow:auto;padding:20px;background-color:#071019;background-image:linear-gradient(rgba(80,130,160,.10) 1px,transparent 1px),linear-gradient(90deg,rgba(80,130,160,.10) 1px,transparent 1px);background-size:10mm 10mm}
.board-canvas svg{display:block;margin:auto;background:#d5ad63;box-shadow:0 10px 35px rgba(0,0,0,.55);user-select:none}.board-canvas svg.mirrored{transform:scaleX(-1)}
.board-help{padding:7px 12px;color:#7f95a4;font-size:10px;border-top:1px solid #263d4b}.board-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding:11px 14px;border-top:1px solid #294657}.board-summary article{padding:9px;border:1px solid #294657;border-radius:5px;background:#09151e;text-align:center}.board-summary small{display:block;color:#8195a4;font-size:9px}.board-summary strong{display:block;color:#edf6fa;margin-top:4px;font-size:14px}
.board-component{cursor:move}.board-component:hover .component-body{stroke:#ffea78;stroke-width:1.2}.board-label{font-size:3.2px;font-weight:700;pointer-events:none}.board-dim{font-size:3px;fill:#18232a}.copper{fill:none;stroke:#9d4e22;stroke-linecap:round;stroke-linejoin:round}.pad{fill:#c6732c;stroke:#6c3317;stroke-width:.5}.drill{fill:#fff;stroke:#1d2930;stroke-width:.5}.mount-hole{fill:#fff;stroke:#333;stroke-width:.8}.orientation-mark{stroke:#192b35;stroke-width:1.2}.board-outline{fill:#d9b269;stroke:#1d252a;stroke-width:1}.keepout{fill:none;stroke:#c34b3f;stroke-width:.45;stroke-dasharray:2 1}.terminal{fill:#263b45;stroke:#10171b;stroke-width:.6}.terminal-text{fill:#fff;font-size:2.7px;font-weight:700}
@media(max-width:1050px){.board-workspace{grid-template-columns:1fr}.physical-panel{border-right:0;border-bottom:1px solid #294657}.board-controls{grid-template-columns:1fr 1fr}.board-summary{grid-template-columns:1fr 1fr}.board-head{align-items:flex-start;flex-direction:column}}
@media print{body.print-board-only>*:not(#boardDesigner){display:none!important}body.print-board-only #boardDesigner{display:block!important;margin:0;border:0}body.print-board-only .board-head,body.print-board-only .board-controls,body.print-board-only .physical-panel,body.print-board-only .board-tabs,body.print-board-only .board-help,body.print-board-only .board-summary{display:none!important}body.print-board-only .board-workspace{display:block}body.print-board-only .board-canvas{padding:0;height:auto;overflow:visible;background:none}body.print-board-only .board-canvas svg{box-shadow:none;margin:0;page-break-inside:avoid}}

/* ===== Safe beginner mode v1.4 ===== */
.mode-bar{max-width:1900px;margin:8px auto 0;padding:10px 14px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.mode-bar b{display:block;color:#55b9f5;font-size:12px}.mode-bar small{display:block;margin-top:3px;color:#879ba8}
.mode-buttons{display:flex;gap:6px}.mode-buttons button{padding:8px 11px;border:1px solid #31546b;border-radius:5px;background:#0a1a24;color:#a9c1d0;font-weight:800;cursor:pointer}.mode-buttons button.active{background:#176fae;color:#fff;border-color:#43a6e8}
.beginner-notice{max-width:1900px;margin:6px auto;padding:10px 14px;border-left:4px solid #45d979;background:#102b1b;color:#a2edba;font-size:12px}
body.beginner-mode .expert-only,body.beginner-mode .expert-detail{display:none!important}
body.beginner-mode .left-column{align-self:start}
body.beginner-mode #drivers h2 span{display:none}
.board-controls select{margin-top:4px;min-width:130px}
@media(max-width:800px){.mode-bar{align-items:flex-start;flex-direction:column}.mode-buttons{width:100%;flex-direction:column}}

/* v1.6.0 engineering corrections */
.unified-filter-grid{grid-template-columns:1fr 1fr!important}.filter-rule{margin:12px 0 0;padding:10px 12px;border-left:4px solid #f1c84b;background:#201c0d}.schematic-stage{min-height:430px}.schematic svg{display:block;width:100%;height:auto}.part-card .value{font-size:15px;line-height:1.35}.driver-card h3{letter-spacing:.02em}

/* v1.7.1 — funkcionalni radionički raspored */
.options-panel{position:relative}
body.beginner-mode .options-panel .option-grid,
body.beginner-mode .options-panel .wire-settings{display:none!important}
body.beginner-mode .options-panel h2{display:none}
body.beginner-mode .options-panel{padding:10px}
body.beginner-mode .options-panel .calculate{margin-top:0;width:100%;font-size:15px}
body.beginner-mode .options-panel .calc-status{margin-top:8px}

.lower-grid{display:flex!important;flex-direction:column;gap:10px}
.lower-grid .graph-panel{order:-1}
.graph-panel{border:2px solid #d8bf00;box-shadow:0 0 0 1px rgba(255,223,0,.12) inset}
.graph-panel h2{font-size:15px}
.graph-panel canvas{height:340px!important}
.parts-panel{margin-top:0}

.click-info{padding:0!important;overflow:hidden}
.click-info summary{cursor:pointer;list-style:none;padding:12px 14px;color:#65bfff;font-weight:800;border-bottom:1px solid transparent;user-select:none}
.click-info summary::-webkit-details-marker{display:none}
.click-info summary:after{content:'+';float:right;color:#7f9caf;font-size:18px;line-height:14px}
.click-info[open] summary{border-bottom-color:#294657;background:#0b1d29}
.click-info[open] summary:after{content:'−'}
.click-info>p,.click-info>div{margin:0;padding:12px 14px;color:#c4d3dc;line-height:1.45;font-size:12px}
#importantAdvice{color:#ffd75a}

.current-analysis.is-collapsed .current-summary,
.current-analysis.is-collapsed .current-warnings,
.current-analysis.is-collapsed .current-table-wrap,
.current-analysis.is-collapsed .engineering-note{display:none}
.current-analysis .panel-title{cursor:pointer;user-select:none}
.current-analysis .panel-title:after{content:'−';float:right;font-size:18px}
.current-analysis.is-collapsed .panel-title:after{content:'+'}
.current-analysis.is-collapsed .panel-title{border-bottom:0}

@media(min-width:981px){
  .dashboard{grid-template-columns:minmax(270px,310px) minmax(620px,1fr) minmax(250px,300px)}
}

/* ===== Dual UI / Amaterski prikaz v1.8.0 ===== */
[hidden]{display:none!important}
.pro-amateur-switch{padding:8px 11px;border:1px solid #2f6d98;border-radius:5px;background:#0b2638;color:#8fd1ff;font-weight:800;cursor:pointer}
.pro-amateur-switch:hover{background:#12364d;color:#fff}

.amateur-workspace{min-height:100vh;background:radial-gradient(circle at 55% -12%,#102537 0,#061019 45%,#050c12 100%);color:#eaf3f8}
.am-topbar{height:58px;display:flex;align-items:center;gap:22px;padding:0 22px;border-bottom:1px solid #294150;background:rgba(5,14,22,.97);position:sticky;top:0;z-index:60}
.am-brand{display:flex;align-items:center;gap:18px;min-width:390px}.am-brand strong{font-size:21px;letter-spacing:-.02em}.am-brand span{padding:4px 10px;border:1px solid #1167be;border-radius:11px;background:#073c86;color:#fff;font-weight:800}
.am-nav{display:flex;align-self:stretch;flex:1;justify-content:center;gap:2px}.am-nav button{min-width:125px;padding:0 18px;border:0;border-bottom:3px solid transparent;background:transparent;color:#c7d3dc;font-weight:700;cursor:pointer}.am-nav button:hover,.am-nav button.active{background:#102536;color:#fff;border-bottom-color:#168cff}
.am-top-actions{display:flex;align-items:center;gap:10px}.am-mode-switch{padding:7px 13px;border:1px solid #1d72ad;border-radius:6px;background:#0d2d43;color:#a9ddff;font-weight:900;cursor:pointer}.am-mode-switch:hover{background:#155074;color:#fff}.am-icon-button{border:0;background:transparent;color:#e8f1f6;font-size:23px;cursor:pointer}

.am-dashboard{max-width:1900px;margin:0 auto;padding:13px;display:grid;grid-template-columns:minmax(285px,315px) minmax(650px,1fr) minmax(330px,365px);gap:12px;align-items:start}
.am-panel{background:linear-gradient(180deg,rgba(14,31,43,.98),rgba(7,20,29,.98));border:1px solid #29485c;border-radius:9px;box-shadow:0 10px 30px rgba(0,0,0,.22);overflow:hidden}
.am-left-panel{position:sticky;top:71px;max-height:calc(100vh - 86px);overflow:auto}.am-center-column,.am-right-column{display:flex;flex-direction:column;gap:12px;min-width:0}.am-right-column{position:sticky;top:71px;max-height:calc(100vh - 86px);overflow:auto;padding-right:1px}
.am-control-section{padding:11px 16px;border-bottom:1px solid #213b4c}.am-control-section h2,.am-components-panel>h2,.am-schematic-card>h2,.am-graph-card>h2{display:flex;align-items:center;gap:6px;margin:0;color:#72bfff;font-size:14px;letter-spacing:.01em}.am-control-section h2 small{color:#8eb3c9;font-weight:600;font-size:12px}.am-info{margin-left:auto;border:0;background:transparent;color:#7fc6f6;font-size:15px;cursor:help}
.am-inline-options{display:flex;gap:48px;margin-top:11px}.am-inline-options label{display:flex;align-items:center;gap:8px;margin:0;font-size:14px;color:#f1f5f7}.am-inline-options input{width:19px;height:19px;margin:0;accent-color:#1f82ff}
.am-disabled{opacity:.48;cursor:not-allowed}
.am-order-buttons{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-top:10px}.am-order-buttons button{padding:8px 4px;border:1px solid #345268;border-radius:5px;background:#0b1b27;color:#e7eef3;font-weight:800;cursor:pointer}.am-order-buttons button.active{border-color:#2584ed;background:linear-gradient(180deg,#1b70db,#0c46a4);box-shadow:0 0 14px rgba(24,117,255,.22)}
.am-control-section select,.am-control-section input[type=number]{margin-top:8px;padding:8px 10px;border:1px solid #314d60;border-radius:5px;background:#091823;color:#fff}
.am-value-row{display:grid;grid-template-columns:42px 1fr 34px;align-items:center;gap:10px;margin:7px 0 0;color:#c5d5df;font-size:13px}.am-value-row input,.am-value-row select{margin:0;font-size:16px}.am-value-row b{font-weight:500;color:#9bb2c1}
.am-driver-control>select{font-size:11px}.am-driver-values{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:7px}.am-driver-values span{padding:7px 8px;border:1px solid #284557;border-radius:5px;background:#091722;color:#9eb5c3;font-size:11px}.am-driver-values b{float:right;color:#fff;font-size:13px}
.am-check-row{display:grid;grid-template-columns:20px 1fr auto;align-items:center;gap:7px;margin:8px 0;color:#d7e1e7;font-size:12px}.am-check-row>input{width:18px;height:18px;margin:0;accent-color:#268bff}.am-check-row>span{display:flex;align-items:center;gap:5px}.am-check-row input[type=number]{width:64px;margin:0;padding:5px}.am-check-row select{width:112px;margin:0;padding:5px;font-size:11px}
.am-action-stack{padding:12px 16px}.am-calculate,.am-reset{width:100%;display:flex;align-items:center;justify-content:center;gap:12px;border-radius:6px;padding:13px 16px;color:#fff;font-weight:900;cursor:pointer}.am-calculate{border:1px solid #24a64c;background:linear-gradient(90deg,#1cad43 0,#24a93c 78%,#0e6830 78%)}.am-reset{margin-top:10px;border:1px solid #334c5b;background:#1a2b37}.am-calculate span,.am-reset span{margin-left:auto}

.am-status-bar{min-height:46px;display:flex;align-items:center;gap:10px;padding:7px 14px;border:1px solid #15783e;border-radius:9px;background:linear-gradient(90deg,#08391d,#09261a);color:#4bea78}.am-status-bar>span{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#34ce5f;color:#062311;font-size:17px;font-weight:900}.am-status-bar strong{font-size:14px}.am-status-bar>div{display:flex;gap:7px;margin-left:auto}.am-status-bar button{padding:7px 12px;border:1px solid #26754b;border-radius:6px;background:#0d2c22;color:#cde9d7;cursor:pointer}.am-status-bar.warning{border-color:#a37a13;background:linear-gradient(90deg,#3b2c08,#251e0b);color:#ffd35c}.am-status-bar.warning>span{background:#ffc842}.am-status-bar.danger{border-color:#a43939;background:linear-gradient(90deg,#3b1115,#241014);color:#ff8d94}.am-status-bar.danger>span{background:#ff5d65;color:#fff}.am-status-bar.working{opacity:.72}
.am-schematic-card>h2,.am-graph-card>h2,.am-components-panel>h2{padding:13px 15px;border-bottom:1px solid #29485c;background:#0c2130}.am-schematic{min-height:360px;padding:4px 8px;background-color:#071722;background-image:radial-gradient(#16394d 1px,transparent 1px);background-size:16px 16px;overflow:auto}.am-schematic svg{display:block;width:100%!important;min-width:720px;height:auto;transform:none!important}.am-chips{display:flex;gap:8px;flex-wrap:wrap;padding:10px 15px 13px;border-top:1px solid #29485c}.am-chips span{padding:6px 10px;border:1px solid #315165;border-radius:5px;background:#0c1b25;color:#d9e6ed;font-size:12px}
.am-graph-card>h2 small{color:#8fb4c9;font-weight:500}.am-graph-layout{display:grid;grid-template-columns:minmax(0,1fr) 165px;gap:10px;padding:9px}.am-graph-layout canvas{width:100%;height:270px;border:1px solid #29465a;background:#071119}.am-graph-details{display:flex;flex-direction:column;gap:7px;padding:8px;border:1px solid #274658;border-radius:6px;background:#091a25}.am-graph-details .graph-detail{padding:6px;border-bottom:1px solid #213c4e}.am-graph-details small{display:block;color:#84abc3;font-size:9px}.am-graph-details b{display:block;margin-top:3px;color:#edf4f7}.am-graph-details .graph-note{font-size:10px;color:#9eb1bd;line-height:1.45}.am-graph-legend{display:flex;gap:22px;justify-content:center;padding:8px;color:#aebfca;font-size:11px}.am-graph-legend span:before{content:"";display:inline-block;width:25px;height:3px;margin-right:6px;vertical-align:middle}.am-graph-legend .nt:before{background:#37d86b}.am-graph-legend .vt:before{background:#ff4d55}.am-graph-legend .sum:before{background:#168dff}.am-graph-legend .fk:before{height:0;border-top:2px dashed #fff}

.am-components-head,.am-component-row{display:grid;grid-template-columns:78px 96px 1fr;gap:8px;align-items:center}.am-components-head{padding:8px 13px;color:#76aacc;font-size:11px;border-bottom:1px solid #29485c}.am-component-row{width:100%;padding:8px 13px;border:0;border-bottom:1px solid #20394a;background:transparent;color:#e4edf2;text-align:left;cursor:pointer}.am-component-row:hover,.am-component-row.selected{background:#102c3e}.am-component-row span:first-child{font-size:13px}.am-component-row small{display:block;color:#6fa6c6;font-size:9px}.am-component-row span:nth-child(2){color:#d5e2e9}.am-component-row span:nth-child(3){color:#b2c2cc;font-size:11px}.am-sensitivity-warning{margin:8px;border:1px solid #8a6d19;border-radius:7px;padding:11px;background:#271f08;color:#ffd255}.am-sensitivity-warning b{display:block;font-size:13px}.am-sensitivity-warning p{margin:7px 0 0;font-size:11px;line-height:1.55}.am-sensitivity-warning.danger{border-color:#a65d12;background:#2e2107;color:#ffd45f}.am-sensitivity-warning.good{border-color:#267b48;background:#0d2a19;color:#91e7ae}
.am-analysis-cards{display:flex;flex-direction:column;gap:9px}.am-analysis-card summary{padding:12px 15px;color:#75bded;font-weight:800;cursor:pointer;list-style:none}.am-analysis-card summary::-webkit-details-marker{display:none}.am-analysis-card summary:after{content:"⌄";float:right;color:#7191a4}.am-analysis-card[open] summary{border-bottom:1px solid #29485c;background:#0b2030}.am-analysis-card>div{padding:12px 15px;color:#c4d2db;font-size:11px;line-height:1.6}.am-analysis-card p{margin:0 0 7px}
.am-bottom-status{max-width:1874px;margin:0 auto 12px;display:flex;align-items:center;gap:10px;padding:10px 15px;border:1px solid #168044;border-radius:8px;background:#092b18;color:#b8eac8}.am-bottom-status>span:first-child{color:#39df71}.am-bottom-status.warning{border-color:#9a761d;background:#302608;color:#f4d471}.am-bottom-status.danger{border-color:#9c3f43;background:#351317;color:#ff9aa0}

body.light .amateur-workspace{background:#dce8f0;color:#172732}body.light .am-topbar{background:#edf5f9}body.light .am-brand strong,body.light .am-nav button,body.light .am-icon-button{color:#132633}body.light .am-panel{background:#f7fbfd;border-color:#aac1cf}body.light .am-control-section,body.light .am-schematic-card>h2,body.light .am-graph-card>h2,body.light .am-components-panel>h2{border-color:#b4c8d3}body.light .am-control-section select,body.light .am-control-section input[type=number]{background:#fff;color:#12222d}body.light .am-component-row{color:#172832;border-color:#c2d2dc}body.light .am-component-row span:nth-child(2),body.light .am-component-row span:nth-child(3){color:#314a59}

@media(max-width:1350px){.am-brand{min-width:300px}.am-nav button{min-width:auto;padding:0 12px}.am-dashboard{grid-template-columns:290px minmax(610px,1fr)}.am-right-column{position:static;max-height:none;overflow:visible;grid-column:1/-1;display:grid;grid-template-columns:1.3fr 1fr}.am-analysis-cards{display:grid;grid-template-columns:1fr 1fr}.am-components-panel{grid-row:span 3}}
@media(max-width:980px){.am-topbar{padding:0 12px}.am-brand{min-width:0}.am-brand strong{font-size:17px}.am-nav{display:none}.am-dashboard{grid-template-columns:1fr}.am-left-panel,.am-right-column{position:static;max-height:none;overflow:visible}.am-right-column{display:flex}.am-analysis-cards{display:flex}.am-graph-layout{grid-template-columns:1fr}.am-graph-details{display:grid;grid-template-columns:1fr 1fr}}
@media(max-width:600px){.am-dashboard{padding:6px}.am-brand span{display:none}.am-top-actions{margin-left:auto}.am-status-bar{flex-wrap:wrap}.am-status-bar>div{width:100%;margin-left:35px}.am-schematic svg{min-width:640px}.am-components-head,.am-component-row{grid-template-columns:58px 82px 1fr}.am-driver-values{grid-template-columns:1fr}.am-graph-details{grid-template-columns:1fr}}
@media print{body.interface-amateur #proWorkspace{display:none!important}body.interface-amateur .am-topbar,body.interface-amateur .am-left-panel,body.interface-amateur .am-right-column,body.interface-amateur .am-status-bar button,body.interface-amateur .am-bottom-status{display:none!important}body.interface-amateur .am-dashboard{display:block;padding:0}body.interface-amateur .am-center-column{display:block}body.interface-amateur .am-panel{border:0;box-shadow:none;page-break-inside:avoid}body.interface-amateur .am-graph-card{page-break-before:always}}
/* Kompaktovanje amaterske leve kolone za rad na 1080p ekranima. */
.am-control-section{padding:8px 16px}
.am-inline-options{margin-top:7px}
.am-order-buttons{margin-top:7px}
.am-control-section select,.am-control-section input[type=number]{margin-top:5px;padding-top:6px;padding-bottom:6px}
.am-value-row{margin-top:5px}
.am-driver-values{margin-top:5px}.am-driver-values span{padding:5px 8px}
.am-check-row{margin:5px 0}.am-action-stack{padding:8px 16px}.am-calculate,.am-reset{padding:10px 16px}.am-reset{margin-top:7px}

/* Tražena korekcija: uklonjen prazan prostor ispod električne šeme. */
.schematic-stage{min-height:0!important}
.schematic{min-height:0!important}

/* Baza zvučnika — pregled tip > proizvođač > model > datasheet */
.pro-db-nav{border:0;background:transparent;color:inherit;font:inherit;font-weight:800;letter-spacing:.04em;cursor:pointer;padding:0}
.pro-db-nav:hover{color:var(--accent,#df8b22)}
body.driver-db-open{overflow:hidden}
.driver-db-modal{position:fixed;inset:0;z-index:5000;background:rgba(5,9,14,.88);padding:24px;display:grid;place-items:center}
.driver-db-modal[hidden]{display:none}
.driver-db-shell{width:min(1500px,98vw);height:min(900px,95vh);background:#101720;border:1px solid #344456;border-radius:12px;box-shadow:0 24px 90px #000;display:grid;grid-template-rows:auto auto 1fr;overflow:hidden;color:#e9eef4}
.driver-db-header{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:18px 22px;border-bottom:1px solid #2a3949;background:#151f2a}
.driver-db-header h2{margin:0;font-size:22px;letter-spacing:.07em}.driver-db-header p{margin:4px 0 0;color:#9eacba}
.driver-db-header button{width:42px;height:42px;border:1px solid #465667;border-radius:8px;background:#202c38;color:#fff;font-size:30px;cursor:pointer}
.driver-db-toolbar{display:flex;justify-content:space-between;align-items:end;gap:20px;padding:12px 22px;border-bottom:1px solid #293746;background:#111a24}
.driver-db-toolbar label{display:grid;gap:5px;font-size:12px;color:#aeb9c5}.driver-db-toolbar input{width:min(460px,60vw);background:#0b1118;color:#fff;border:1px solid #405064;border-radius:6px;padding:10px 12px;font:inherit}
.driver-db-toolbar span{font-weight:800;color:#f0a22e}
.driver-db-layout{min-height:0;display:grid;grid-template-columns:190px 230px 330px 1fr}
.driver-db-layout>aside,.driver-db-layout>section{min-width:0;overflow:auto;border-right:1px solid #293746;padding:16px}
.driver-db-layout>section:last-child{border-right:0}.driver-db-layout h3{margin:0 0 12px;font-size:12px;color:#8ea0b1;letter-spacing:.12em}
.driver-db-types button,.driver-db-makers button,.driver-db-models button{width:100%;text-align:left;border:1px solid transparent;border-radius:7px;background:transparent;color:#dce5ed;cursor:pointer}
.driver-db-types button{display:grid;gap:2px;padding:13px 12px;margin-bottom:8px}.driver-db-types button b{font-size:18px}.driver-db-types button span{font-size:11px;color:#94a4b4}
.driver-db-types button.active,.driver-db-makers button.active,.driver-db-models button.active{background:#253444;border-color:#52687e;box-shadow:inset 3px 0 #f0a22e}
.driver-db-makers button{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px;margin-bottom:5px}.driver-db-maker-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.driver-db-maker-counts{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex:0 0 auto;font-variant-numeric:tabular-nums}.driver-db-makers button .driver-db-maker-total{color:#f2f5f8}.driver-db-makers button .driver-db-maker-section{color:#f0a22e}
.driver-db-series{margin-bottom:18px}.driver-db-series h4{margin:0 0 6px;padding:0 6px;color:#f0a22e;font-size:12px;text-transform:uppercase}
.driver-db-models button{display:grid;gap:3px;padding:10px;margin-bottom:4px}.driver-db-models button small{color:#8f9ead;font-size:10px}
.driver-db-details{padding:24px!important}.driver-db-detail-head{border-bottom:1px solid #344354;padding-bottom:16px;margin-bottom:18px}.driver-db-detail-head small{color:#f0a22e;font-weight:800}.driver-db-detail-head h3{margin:5px 0 10px;font-size:27px;color:#fff;letter-spacing:0}.driver-db-detail-head .status{display:inline-block;padding:5px 9px;border-radius:20px;background:#273848;font-size:11px;font-weight:800}.driver-db-detail-head .status.current{background:#17452d;color:#a9f1c8}.driver-db-detail-head .status.discontinued{background:#594314;color:#ffdd8a}
.driver-db-key-grid{display:grid;grid-template-columns:repeat(2,minmax(160px,1fr));gap:8px}.driver-db-key-grid>div{display:flex;justify-content:space-between;gap:15px;padding:11px 12px;background:#17222d;border:1px solid #2c3b4b;border-radius:6px}.driver-db-key-grid span{color:#9baab8}.driver-db-key-grid b{text-align:right}
.driver-db-note,.driver-db-source{margin-top:18px;padding:15px;background:#141f29;border-left:3px solid #f0a22e}.driver-db-note h4,.driver-db-source h4{margin:0 0 7px;font-size:11px;color:#f0a22e;letter-spacing:.1em}.driver-db-note p,.driver-db-source p{margin:0;color:#c7d0d9;line-height:1.5}
.driver-db-datasheet{display:inline-block;margin-top:12px;padding:10px 14px;border-radius:6px;background:#d98720;color:#10151a!important;font-weight:900;text-decoration:none}.driver-db-no-sheet{display:inline-block;margin-top:10px;color:#8b98a5}.driver-db-empty,.driver-db-placeholder{color:#8e9bab;padding:15px}
@media(max-width:1000px){.driver-db-layout{grid-template-columns:150px 190px 1fr}.driver-db-details{grid-column:1/-1;border-top:1px solid #293746}.driver-db-shell{height:96vh}.driver-db-key-grid{grid-template-columns:1fr 1fr}}

/* Serija 11: hijerarhijski i pretraživ izbor drajvera */
.driver-picker{display:grid;gap:9px;margin-top:7px;padding:10px;border:1px solid var(--line,#344154);border-radius:9px;background:rgba(0,0,0,.08)}
.driver-picker-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.driver-picker label,.driver-model-label{display:grid;gap:4px;font-size:11px;font-weight:700;letter-spacing:.04em;color:var(--muted,#aeb8c8)}
.driver-picker select,.driver-picker input{width:100%;min-width:0}
.driver-model-label{margin-top:1px}
.driver-search-label input{padding-left:10px}
.driver-picker-facts{display:grid;gap:2px;padding:7px 8px;border-radius:6px;background:rgba(0,0,0,.13);font-size:11px;line-height:1.35}
.driver-picker-facts b{color:var(--text,#eef3f9)}
.driver-picker-facts span{color:var(--muted,#aeb8c8)}
.am-driver-control>.driver-picker{margin-top:8px}
.am-driver-control>.driver-picker+.am-driver-values{margin-top:8px}
@media(max-width:760px){.driver-picker-grid{grid-template-columns:1fr}}

/* Faza 3 — pravi 3-way izbor */
.system-way-switch{display:flex;gap:12px;margin:0 0 16px;padding:10px 12px;border:1px solid var(--line,#284252);border-radius:8px;background:rgba(20,40,52,.45)}
.system-way-switch label{display:flex;align-items:center;gap:7px;font-weight:800;cursor:pointer}
.three-way-frequency-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
body.system-3way .driver-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
body.system-3way #midDriverCard,body.system-3way #fc3WayWrap,body.system-3way #midBranchTab{display:block!important}
body.system-3way #fc2WayWrap{display:none!important}
body.system-3way #projectCaption::after{content:" · NT / MID / VT"}
.driver-card.three-way-only[hidden],.branch-tab.three-way-only[hidden]{display:none}
@media(max-width:1200px){body.system-3way .driver-grid{grid-template-columns:1fr}.three-way-frequency-grid{grid-template-columns:1fr}}
.am-mid-visible{display:block!important}
#amFc3Wrap .am-value-row{margin-top:8px}

/* Serija 18 — procena RMS snage i približnog SPL-a kutije */
.power-spl-analysis{margin-top:16px}
.power-spl-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0}
.power-spl-summary article,.power-spl-branches article{padding:13px;border:1px solid var(--line,#344154);border-radius:8px;background:rgba(0,0,0,.12)}
.power-spl-summary small,.power-spl-branches small{display:block;color:var(--muted,#aeb8c8);font-size:10px;font-weight:800;letter-spacing:.06em}
.power-spl-summary strong{display:block;margin-top:5px;font-size:21px}
.power-spl-branches{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:12px}
.power-spl-branches h3{margin:0 0 8px;font-size:14px;color:var(--accent,#df8b22)}
.power-spl-data{display:grid;gap:5px;font-size:12px}
.power-spl-data div{display:flex;justify-content:space-between;gap:10px;border-bottom:1px dashed rgba(150,165,180,.22);padding-bottom:4px}
.power-spl-data b{text-align:right}
.power-spl-limit{border-color:#a97620!important;box-shadow:inset 3px 0 #df8b22}
@media(max-width:900px){.power-spl-summary,.power-spl-branches{grid-template-columns:1fr}}

/* Serija 19 — radionički izveštaj i informativni footer */
.project-report{margin-top:18px}.project-report-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:15px}.project-report-grid label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700}.project-report-grid input,.project-report-grid textarea{width:100%;box-sizing:border-box}.project-notes{grid-column:1/-1}.project-report-actions{display:flex;gap:10px;flex-wrap:wrap;padding:0 15px 15px}.project-report-preview{margin:0 15px 15px;padding:16px;border:1px solid var(--line,#384758);background:rgba(0,0,0,.12);border-radius:8px}.report-title,.report-summary,.report-meta{display:flex;gap:14px;justify-content:space-between;flex-wrap:wrap}.report-title{font-size:18px;border-bottom:1px solid currentColor;padding-bottom:8px}.report-meta,.report-summary{margin-top:10px;font-size:12px}.report-table{width:100%;border-collapse:collapse;margin-top:12px}.report-table th,.report-table td{padding:7px;border:1px solid rgba(128,128,128,.35);text-align:left;font-size:12px}.report-notes{margin-top:12px;padding:10px;border-left:3px solid currentColor;font-size:12px}.app-footer{margin-top:24px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;padding:22px;border-top:1px solid rgba(128,128,128,.45);font-size:12px}.app-footer>div{display:flex;flex-direction:column;gap:5px}.app-footer b{font-size:11px;letter-spacing:.08em}.app-footer span{opacity:.82;line-height:1.5}.footer-bottom{grid-column:1/-1!important;flex-direction:row!important;justify-content:space-between;border-top:1px solid rgba(128,128,128,.3);padding-top:12px}
@media(max-width:900px){.project-report-grid{grid-template-columns:1fr 1fr}.app-footer{grid-template-columns:1fr}.footer-bottom{grid-column:1!important;flex-direction:column!important}.report-table{display:block;overflow-x:auto}}
@media(max-width:560px){.project-report-grid{grid-template-columns:1fr}.project-notes{grid-column:auto}.project-report-actions button{width:100%}}
@media print{body.print-project-report-only>*{display:none!important}body.print-project-report-only #proWorkspace{display:block!important}body.print-project-report-only #proWorkspace>*{display:none!important}body.print-project-report-only #projectReportSection{display:block!important;border:0!important;box-shadow:none!important}body.print-project-report-only #projectReportSection .project-report-grid,body.print-project-report-only #projectReportSection .project-report-actions,body.print-project-report-only #projectReportSection .engineering-note{display:none!important}body.print-project-report-only #projectReportSection .project-report-preview{display:block!important;margin:0;border:0;background:#fff;color:#000}body.print-project-report-only #projectReportSection .panel-title{display:block!important;color:#000}}

/* Serija 20 — autorski footer */
.app-footer a{color:inherit;text-decoration:none;font-weight:800}.app-footer a:hover,.app-footer a:focus{text-decoration:underline}.app-footer strong{color:var(--text,#dce8ef)}.app-footer em{opacity:.78;line-height:1.5}.footer-version{font-size:11px;font-weight:800;letter-spacing:.06em}.footer-identity,.footer-collaboration,.footer-notice{justify-content:flex-start}

/* Serija 21 — isti autorski footer u početničkom i PRO prikazu */
.beginner-footer{max-width:1874px;margin:24px auto 14px;box-sizing:border-box}
@media print{body.interface-amateur .beginner-footer{display:none!important}}


/* Serija 22 — stabilizacija tačno označenih delova interfejsa */
html,body{max-width:100%;overflow-x:hidden}
body.interface-pro #amateurWorkspace{display:none!important}
body.interface-amateur #proWorkspace{display:none!important}
body.interface-pro #proWorkspace,body.interface-amateur #amateurWorkspace{display:block!important}

/* Početnički prikaz: kompaktniji, jasniji i bez horizontalnog sečenja. */
.am-dashboard{grid-template-columns:minmax(250px,285px) minmax(540px,1fr) minmax(285px,330px)}
.am-left-panel{min-width:0}
.am-control-section{padding:8px 12px}
.am-control-section h2{font-size:12px;line-height:1.25}
.am-control-section h2 small{font-size:10px}
.am-control-section select,.am-control-section input[type=number]{min-width:0;max-width:100%;font-size:12px}
.am-value-row{grid-template-columns:minmax(54px,auto) minmax(0,1fr) auto}
.am-check-row{gap:7px;font-size:11px}.am-check-row>span{margin-left:auto;min-width:0}
.am-driver-values{font-size:10px}.am-driver-values span{min-width:0}
@media(max-width:1350px){.am-dashboard{grid-template-columns:minmax(250px,275px) minmax(0,1fr)}.am-center-column{min-width:0}.am-right-column{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}}
@media(max-width:980px){.am-dashboard{grid-template-columns:minmax(0,1fr)}.am-left-panel{width:100%}.am-schematic{overflow:auto}}

/* Šema: svaki deo ostaje dostupan unutar kontejnera. */
.schematic-stage{overflow:auto!important;padding-bottom:10px;box-sizing:border-box}
.schematic{box-sizing:border-box;padding-bottom:34px!important}
.schematic svg{max-width:none}

/* Grafikon: više prostora i bolji kontrast teksta. */
.graph-panel canvas{min-height:360px}
.graph-panel h2 small{color:#c1d2dd}

/* Radionički izveštaj: vizuelna hijerarhija umesto zbijenog sirovog teksta. */
.project-report{overflow:hidden}
.project-report-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;background:rgba(7,17,25,.35)}
.project-notes{grid-column:1/-1}
.project-report-grid label{color:#9fb3c1;font-size:11px}
.project-report-grid input,.project-report-grid textarea{padding:9px 10px;border-radius:5px}
.project-report-actions{padding-top:14px;border-top:1px solid rgba(128,160,180,.18)}
.project-report-actions button{padding:9px 13px;font-weight:800}
.project-report-preview{padding:0;border:0;background:transparent}
.report-title{align-items:center;padding:15px 16px;border:1px solid #355267;border-radius:8px;background:#0b1b27}
.report-title>div{display:grid;gap:3px}.report-title small{color:#77bce7;font-size:10px;letter-spacing:.12em}.report-title strong{font-size:19px}.report-title>span{padding:6px 9px;border-radius:5px;background:#132b3a;color:#c7d8e2;font-size:12px}
.report-block{margin-top:10px;padding:13px 14px;border:1px solid #2b4658;border-radius:8px;background:#091721}
.report-block h3{margin:0 0 10px;color:#6fc1f3;font-size:11px;letter-spacing:.08em}
.report-meta,.report-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0}
.report-meta span,.report-summary span{display:grid;gap:4px;min-width:0;padding:9px;border:1px solid #243d4d;border-radius:6px;background:#0c1d28;color:#eef5f8;font-size:12px}
.report-meta b,.report-summary b{color:#8fa9b9;font-size:9px;text-transform:uppercase;letter-spacing:.05em}
.report-table-wrap{overflow-x:auto}.report-table{margin:0}.report-table th{background:#102735;color:#8fd0f5;font-size:10px;text-transform:uppercase}.report-table td{background:#0a1822;font-size:12px}.report-notes{margin:0;padding:11px;border-left:3px solid #ef9c2c;background:#101c23;color:#d7e2e8;line-height:1.55}
@media(max-width:900px){.project-report-grid,.report-meta,.report-summary{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.project-report-grid,.report-meta,.report-summary{grid-template-columns:1fr}.project-notes{grid-column:auto}}

/* Build 1.16.0 — šema uvek staje u desktop kontejner bez klizača. */
.schematic-stage{
  overflow:hidden!important;
  min-height:0!important;
  padding:0!important;
  box-sizing:border-box;
}
.schematic{
  min-height:0!important;
  overflow:visible!important;
  box-sizing:border-box;
  padding:52px 8px 8px!important;
}
.schematic svg{
  display:block;
  width:100%;
  min-width:0!important;
  max-width:100%!important;
  height:auto;
}
@media (min-width:981px){
  .schematic-stage{overflow:hidden!important}
}

/* Build 1.14.1 — kompaktan radni raspored i racionalnije korišćenje visine. */
@media (min-width:981px){
  /* Početnički prikaz: manje praznog hoda, više sadržaja u prvom ekranu. */
  .am-dashboard{
    padding:8px 10px 6px;
    gap:8px;
    grid-template-columns:minmax(270px,300px) minmax(560px,1fr) minmax(300px,340px);
  }
  .am-center-column,.am-right-column{gap:8px}
  .am-left-panel,.am-right-column{
    top:66px;
    max-height:calc(100vh - 74px);
  }
  .am-control-section{padding:6px 11px}
  .am-control-section h2{font-size:11px}
  .am-control-section h2 small{font-size:9px}
  .am-inline-options{margin-top:5px;gap:24px}
  .am-inline-options label{font-size:12px}
  .am-order-buttons{margin-top:5px;gap:5px}
  .am-order-buttons button{padding:6px 3px}
  .am-control-section select,.am-control-section input[type=number]{margin-top:4px;padding:5px 7px}
  .am-value-row{margin-top:4px;gap:7px;font-size:12px}
  .am-value-row input,.am-value-row select{font-size:13px}
  .am-driver-values{gap:5px;margin-top:4px}
  .am-driver-values span{padding:4px 6px;font-size:10px}
  .am-driver-values b{font-size:11px}
  .am-check-row{margin:4px 0;font-size:11px}
  .am-action-stack{padding:7px 11px}
  .am-calculate,.am-reset{padding:8px 11px}
  .am-reset{margin-top:5px}
  .am-status-bar{min-height:38px;padding:5px 10px}
  .am-status-bar strong{font-size:12px}
  .am-status-bar button{padding:5px 8px}
  .am-schematic-card>h2,.am-graph-card>h2,.am-components-panel>h2{padding:9px 11px;font-size:12px}
  .am-schematic{min-height:0;padding:2px 6px}
  .am-schematic svg{min-width:620px}
  .am-chips{padding:6px 10px 8px;gap:5px}
  .am-chips span{padding:4px 7px;font-size:10px}
  .am-graph-layout{grid-template-columns:minmax(0,1fr) 145px;gap:7px;padding:7px}
  .am-graph-layout canvas{height:220px}
  .am-graph-details{gap:4px;padding:5px}
  .am-graph-details .graph-detail{padding:4px}
  .am-graph-legend{padding:5px;gap:14px;font-size:10px}
  .am-components-head,.am-component-row{grid-template-columns:68px 82px 1fr;gap:6px}
  .am-components-head{padding:6px 9px;font-size:10px}
  .am-component-row{padding:6px 9px}
  .am-sensitivity-warning{margin:6px;padding:8px}
  .am-analysis-cards{gap:6px}
  .am-analysis-card summary{padding:8px 10px;font-size:11px}
  .am-analysis-card>div{padding:8px 10px}
  .beginner-footer{margin:8px auto 6px}
  .app-footer{padding:12px 16px;gap:10px;font-size:10px}
  .footer-bottom{padding-top:8px}
  .am-bottom-status{margin:0 auto 6px;padding:7px 11px;font-size:11px}

  /* PRO prikaz: paneli i grafika ne razvlače stranicu bez potrebe. */
  .dashboard{padding:7px 9px;gap:8px}
  .panel{margin-bottom:8px}
  .wire-settings{margin:7px 0 8px;padding:8px;gap:6px}
  .graph-panel{min-height:0}
  .graph-panel canvas{height:240px;min-height:240px}
  .parts-panel .parts-cards{min-height:0}
  .lower-grid{gap:8px}
  .explanation-wrap{margin-bottom:7px}
  .project-report{margin-top:10px}
  #proWorkspace>.app-footer{margin-top:10px}
}

/* Srednje desktop širine: zadrži tri funkcionalne kolone dok god realno staju. */
@media (min-width:1180px) and (max-width:1400px){
  .am-dashboard{grid-template-columns:minmax(255px,275px) minmax(500px,1fr) minmax(270px,305px)}
  .am-right-column{position:sticky;top:66px;max-height:calc(100vh - 74px);overflow:auto;display:flex;grid-column:auto}
  .am-analysis-cards{display:flex}
  .am-components-panel{grid-row:auto}
}

/* Build 1.14.4 — početnički levi panel mora biti ceo vidljiv.
   Na desktopu skroluje cela stranica; panel više nema fiksnu visinu ni unutrašnji skrol. */
@media (min-width:981px){
  body.interface-amateur .am-left-panel{
    position:static!important;
    top:auto!important;
    max-height:none!important;
    height:auto!important;
    overflow:visible!important;
    align-self:start!important;
  }
}


/* Build 1.14.5 — PRO radna površina ponovo složena kao kompaktan inženjerski ekran. */
@media (min-width:981px){
  body.interface-pro .dashboard{
    max-width:1460px;
    margin:0 auto;
    padding:8px 10px;
    display:grid;
    grid-template-columns:minmax(285px,310px) minmax(0,1fr);
    gap:10px;
    align-items:start;
  }
  body.interface-pro .left-column{grid-column:1;grid-row:1;min-width:0}
  body.interface-pro .center-column{grid-column:2;grid-row:1 / span 2;min-width:0;display:grid;gap:10px;align-content:start}
  body.interface-pro .right-column{
    grid-column:1;grid-row:2;
    position:static!important;top:auto!important;
    max-height:none!important;overflow:visible!important;
    display:grid!important;grid-template-columns:1fr!important;
    gap:8px;align-self:start;min-width:0;
  }
  body.interface-pro .right-column .panel{margin:0}
  body.interface-pro .right-column .info-card,
  body.interface-pro .right-column .click-info{font-size:11px}
  body.interface-pro .right-column summary,
  body.interface-pro .right-column h2{padding:8px 10px;font-size:11px}
  body.interface-pro .right-column p,
  body.interface-pro .right-column #calcInfo,
  body.interface-pro .right-column #improvementAdvice{padding:8px 10px;line-height:1.45}

  body.interface-pro .result-panel,
  body.interface-pro .metrics,
  body.interface-pro .lower-grid,
  body.interface-pro .engineering-grid,
  body.interface-pro .project-report{margin:0}
  body.interface-pro .lower-grid{
    display:grid;
    grid-template-columns:minmax(300px,.82fr) minmax(0,1.55fr);
    gap:10px;
    align-items:start;
  }
  body.interface-pro .graph-panel canvas{height:270px!important;min-height:270px!important}
  body.interface-pro .parts-panel .parts-cards{min-height:0!important}
  body.interface-pro .part-card{padding:5px 7px}

  body.interface-pro .engineering-grid{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:10px;
    align-items:start;
  }
  body.interface-pro .engineering-grid>.panel{margin:0;min-width:0}
  body.interface-pro .current-summary,
  body.interface-pro .power-spl-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.interface-pro .power-spl-branches{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.interface-pro .current-table-wrap{max-height:260px;overflow:auto}

  body.interface-pro .project-report-grid{grid-template-columns:1fr 1fr;padding:10px;gap:8px}
  body.interface-pro .project-report-actions{padding:0 10px 10px}
  body.interface-pro .project-report-preview{margin:0 10px 10px;max-height:360px;overflow:auto}

  body.interface-pro .board-designer,
  body.interface-pro .explanation-wrap,
  body.interface-pro #proWorkspace>.app-footer{max-width:1460px;margin-left:auto;margin-right:auto}
  body.interface-pro .board-workspace{grid-template-columns:330px minmax(0,1fr);min-height:0}
  body.interface-pro .physical-table-wrap{max-height:390px;overflow:auto}
  body.interface-pro .board-canvas{height:420px;padding:14px}
  body.interface-pro .board-controls{grid-template-columns:repeat(4,minmax(0,1fr))}
  body.interface-pro .board-summary{padding:8px 10px;gap:6px}
  body.interface-pro .board-summary article{padding:7px}
  body.interface-pro .explanation{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (min-width:981px) and (max-width:1220px){
  body.interface-pro .dashboard{grid-template-columns:minmax(270px,290px) minmax(0,1fr)}
  body.interface-pro .lower-grid,
  body.interface-pro .engineering-grid{grid-template-columns:1fr}
  body.interface-pro .board-workspace{grid-template-columns:300px minmax(0,1fr)}
}

/* Build 1.14.6 — stabilan PRO raspored bez razbacanih i nedovršenih radioničkih blokova. */
@media (min-width:981px){
  body.interface-pro .dashboard{
    grid-template-columns:300px minmax(0,1fr)!important;
    gap:12px!important;
    align-items:start!important;
  }
  body.interface-pro .center-column{
    display:block!important;
  }
  body.interface-pro .center-column > *{
    margin-bottom:10px!important;
  }
  body.interface-pro .lower-grid{
    display:block!important;
  }
  body.interface-pro .lower-grid > .panel{
    width:100%!important;
    margin:0 0 10px!important;
  }
  body.interface-pro .parts-panel{
    width:100%!important;
  }
  body.interface-pro .parts-panel .parts-cards{
    width:100%!important;
  }
  body.interface-pro .engineering-grid{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:10px!important;
  }
  body.interface-pro .project-report{
    width:100%!important;
  }
  body.interface-pro .project-report-preview{
    max-height:280px!important;
  }
  body.interface-pro #boardDesigner{
    display:none!important;
  }
  body.interface-pro .explanation-wrap{
    margin-top:10px!important;
  }
}
@media (min-width:981px) and (max-width:1220px){
  body.interface-pro .engineering-grid{
    grid-template-columns:1fr!important;
  }
}

/* Build 1.14.7 — PRO raspored bez mrtvih vertikalnih rupa. */
@media (min-width:981px){
  body.interface-pro .dashboard{
    display:grid!important;
    grid-template-columns:300px minmax(0,1fr)!important;
    gap:12px!important;
    align-items:start!important;
    max-width:1500px!important;
  }
  body.interface-pro .left-column{
    grid-column:1!important;
    grid-row:1!important;
    position:static!important;
    top:auto!important;
    max-height:none!important;
    height:auto!important;
    overflow:visible!important;
    align-self:start!important;
    display:flex!important;
    flex-direction:column!important;
    gap:10px!important;
  }
  body.interface-pro .center-column{
    grid-column:2!important;
    grid-row:1!important;
    min-width:0!important;
  }
  body.interface-pro .left-info-stack{
    display:flex;
    flex-direction:column;
    gap:8px;
    margin-top:0;
  }
  body.interface-pro .left-info-stack>.panel{margin:0!important}
  body.interface-pro .left-info-stack summary,
  body.interface-pro .left-info-stack h2{padding:8px 10px;font-size:11px}
  body.interface-pro .left-info-stack p,
  body.interface-pro .left-info-stack #calcInfo,
  body.interface-pro .left-info-stack #improvementAdvice{padding:8px 10px;line-height:1.45;font-size:11px}

  body.interface-pro .project-report-collapsible{
    overflow:hidden!important;
    margin:10px 0 0!important;
    padding:0!important;
  }
  body.interface-pro .project-report-summary{
    list-style:none;
    cursor:pointer;
    padding:11px 13px;
    color:#56b8ff;
    font-weight:800;
    font-size:12px;
    background:#102330;
    border-bottom:0;
  }
  body.interface-pro .project-report-summary::-webkit-details-marker{display:none}
  body.interface-pro .project-report-summary::after{content:'+';float:right;font-size:18px;line-height:12px}
  body.interface-pro .project-report-collapsible[open]>.project-report-summary{border-bottom:1px solid #29485b}
  body.interface-pro .project-report-collapsible[open]>.project-report-summary::after{content:'−'}
  body.interface-pro .project-report-collapsible>.panel-title{display:none!important}
  body.interface-pro .project-report-grid{padding:10px!important;background:#091721!important}
  body.interface-pro .project-report-grid input,
  body.interface-pro .project-report-grid textarea{
    width:100%;
    box-sizing:border-box;
    color:#eaf3f8!important;
    background:#07141d!important;
    border:1px solid #315064!important;
    border-radius:5px!important;
  }
  body.interface-pro .project-report-grid textarea{min-height:74px!important;resize:vertical}
  body.interface-pro .project-report-actions{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:8px!important;
    padding:0 10px 10px!important;
    background:#091721!important;
  }
  body.interface-pro .project-report-actions button{
    color:#eaf3f8!important;
    background:#123249!important;
    border:1px solid #3c7192!important;
    border-radius:5px!important;
    padding:8px 11px!important;
  }
  body.interface-pro .project-report-preview{
    margin:0 10px 10px!important;
    max-height:420px!important;
    overflow:auto!important;
    border:1px solid #29485b!important;
    border-radius:6px!important;
    background:#07141d!important;
  }
  body.interface-pro .project-report-collapsible>.engineering-note{margin:0 10px 10px!important}
}

@media (max-width:980px){
  body.interface-pro .left-info-stack{display:flex;flex-direction:column;gap:8px}
  body.interface-pro .project-report-summary{padding:10px 12px;color:#56b8ff;font-weight:800}
}

/* Build 1.15.0 — jedinstveni glavni prikaz i PCB odmah ispod odziva. */
#openProMode,#openAmateurMode{display:none!important}
body.interface-pro #boardDesigner{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  margin:10px 0 0!important;
}
body.interface-pro .center-column #boardDesigner{
  box-sizing:border-box;
}
body.interface-pro .board-workspace{
  grid-template-columns:minmax(330px,390px) minmax(0,1fr)!important;
  min-height:600px!important;
}
body.interface-pro .physical-table-wrap{max-height:535px!important;overflow:auto!important}
body.interface-pro .board-canvas{height:535px!important;padding:20px!important}
@media(max-width:1220px){
  body.interface-pro .board-workspace{grid-template-columns:1fr!important}
  body.interface-pro .physical-panel{border-right:0;border-bottom:1px solid #294657}
}

/* Build 1.15.1 — uredan modul Sistem i zvučnici u uskoj levoj koloni. */
@media (min-width:981px){
  body.interface-pro .dashboard{
    grid-template-columns:340px minmax(0,1fr)!important;
  }
  body.interface-pro #drivers .driver-grid,
  body.interface-pro.system-3way #drivers .driver-grid{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
  }
  body.interface-pro #drivers .driver-card{
    display:grid!important;
    grid-template-columns:92px minmax(0,1fr)!important;
    grid-template-areas:
      "title title"
      "photo model"
      "photo data"
      "quality quality"!important;
    column-gap:12px!important;
    row-gap:6px!important;
    padding:10px!important;
    border:1px solid #29485b!important;
    border-radius:8px!important;
    background:linear-gradient(180deg,#0c1c27,#09151e)!important;
    min-width:0!important;
  }
  body.interface-pro #drivers .driver-card h3{
    grid-area:title!important;
    margin:0!important;
    padding:0 0 7px!important;
    text-align:left!important;
    border-bottom:1px solid #223f51!important;
    font-size:11px!important;
    line-height:1.25!important;
    color:#eef7fc!important;
  }
  body.interface-pro #drivers .driver-photo{
    grid-area:photo!important;
    float:none!important;
    width:92px!important;
    height:92px!important;
    margin:0!important;
    align-self:start!important;
    border-radius:10px!important;
  }
  body.interface-pro #drivers .driver-photo img{
    object-fit:contain!important;
    padding:4px!important;
  }
  body.interface-pro #drivers .driver-card > label{
    grid-area:model!important;
    margin:0!important;
    min-width:0!important;
  }
  body.interface-pro #drivers .driver-card > label select{
    min-width:0!important;
    width:100%!important;
  }
  body.interface-pro #drivers .driver-card .mini-grid{
    grid-area:data!important;
    clear:none!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:5px!important;
    min-width:0!important;
  }
  body.interface-pro #drivers .driver-card .mini-grid label{
    font-size:9px!important;
    min-width:0!important;
  }
  body.interface-pro #drivers .driver-card .mini-grid input{
    padding:6px 19px 6px 6px!important;
    min-width:0!important;
    font-size:10px!important;
  }
  body.interface-pro #drivers .driver-card .mini-grid em{
    right:5px!important;
    bottom:6px!important;
    font-size:9px!important;
  }
  body.interface-pro #drivers .driver-card .quality{
    grid-area:quality!important;
    margin:0!important;
    padding-top:6px!important;
    border-top:1px solid #1d3544!important;
    min-height:0!important;
    line-height:1.4!important;
  }
  body.interface-pro #drivers .system-way-switch{
    justify-content:center!important;
    margin-bottom:10px!important;
  }
}
@media (min-width:981px) and (max-width:1220px){
  body.interface-pro .dashboard{grid-template-columns:320px minmax(0,1fr)!important}
  body.interface-pro #drivers .driver-card{
    grid-template-columns:82px minmax(0,1fr)!important;
  }
  body.interface-pro #drivers .driver-photo{width:82px!important;height:82px!important}
}


/* Build 1.15.2 — izbor po proizvođaču bez serija; čist modul zvučnika. */
@media (min-width:981px){
  body.interface-pro .dashboard{
    grid-template-columns:360px minmax(0,1fr)!important;
  }
  body.interface-pro #drivers .driver-card{
    display:block!important;
    padding:10px!important;
  }
  body.interface-pro #drivers .driver-photo{
    display:none!important;
  }
  body.interface-pro #drivers .driver-picker{
    width:100%!important;
    min-width:0!important;
  }
  body.interface-pro #drivers .driver-picker-grid{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:7px!important;
  }
  body.interface-pro #drivers .driver-picker-grid label,
  body.interface-pro #drivers .driver-search-label{
    display:block!important;
    width:100%!important;
    min-width:0!important;
  }
  body.interface-pro #drivers .driver-maker,
  body.interface-pro #drivers .driver-search,
  body.interface-pro #drivers .driver-model-select{
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
  }
  body.interface-pro #drivers .driver-model-label{
    display:block!important;
    margin-top:8px!important;
  }
  body.interface-pro #drivers .driver-picker-facts{
    margin-top:7px!important;
    padding:8px!important;
    min-height:0!important;
  }
  body.interface-pro #drivers .driver-picker-facts b,
  body.interface-pro #drivers .driver-picker-facts span{
    overflow-wrap:anywhere!important;
    word-break:normal!important;
  }
  body.interface-pro #drivers .driver-card .mini-grid{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:6px!important;
    margin-top:8px!important;
  }
  body.interface-pro #drivers .driver-card .quality{
    display:block!important;
    margin-top:8px!important;
    padding-top:8px!important;
  }
}
@media (min-width:981px) and (max-width:1220px){
  body.interface-pro .dashboard{grid-template-columns:340px minmax(0,1fr)!important}
}

/* Build 1.15.3 — prikaz ne sme biti odsečen pre ručnog refresh-a. */
html,body{max-width:100%;overflow-x:auto}
body.interface-pro .dashboard{width:100%;box-sizing:border-box}
body.interface-pro .left-column,
body.interface-pro .center-column,
body.interface-pro .result-panel,
body.interface-pro .schematic-stage,
body.interface-pro .lower-grid,
body.interface-pro .graph-panel{min-width:0;box-sizing:border-box}
body.interface-pro .schematic{max-width:100%;overflow:auto}
body.interface-pro .graph-panel canvas{display:block;width:100%!important;max-width:100%;box-sizing:border-box}
body.interface-pro.system-3way .graph-panel .legend .low::after{content:' / MID';color:#f2c94c}
@media (min-width:981px){
  body.interface-pro .dashboard{grid-template-columns:minmax(300px,340px) minmax(0,1fr)!important}
}


/* Build 1.15.4 — završne SVG ikonice i uredne 2-way/3-way kontrole */
.ui-icon-sprite{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}
.ui-icon{width:1.05em;height:1.05em;display:inline-block;vertical-align:-.16em;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
button .ui-icon+span{display:inline-block}
.actions button,.workspace-tools button,.calculate,.am-action-stack button,.am-status-bar button{display:inline-flex;align-items:center;justify-content:center;gap:7px}
.icon-button,.am-icon-button{display:inline-grid;place-items:center}
.icon-button .ui-icon,.am-icon-button .ui-icon{width:20px;height:20px}
.system-way-switch{display:grid!important;grid-template-columns:1fr 1fr;gap:8px}
.system-way-switch label,.am-inline-options label{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px 10px;border:1px solid #294b61;border-radius:7px;background:#0b1e2a;color:#dcebf4;font-weight:800;cursor:pointer;user-select:none}
.system-way-switch label:hover,.am-inline-options label:hover{border-color:#3e7ba3;background:#0d2838}
.system-way-switch input[type=radio],.am-inline-options input[type=radio]{appearance:none;-webkit-appearance:none;width:16px;height:16px;margin:0;border:2px solid #a8bdcb;border-radius:50%;background:#07131c;box-shadow:inset 0 0 0 3px #07131c;transition:.15s ease}
.system-way-switch input[type=radio]:checked,.am-inline-options input[type=radio]:checked{border-color:#57b6ff;background:#168cff;box-shadow:inset 0 0 0 3px #07131c,0 0 0 2px rgba(22,140,255,.14)}
.system-way-switch label:has(input:checked),.am-inline-options label:has(input:checked){border-color:#2d84c3;background:#0c2b40;color:#fff}
body.light .system-way-switch label,body.light .am-inline-options label{background:#f4f9fc;color:#183241;border-color:#a9c2d1}
body.light .system-way-switch label:has(input:checked),body.light .am-inline-options label:has(input:checked){background:#e2f2fc;border-color:#2784bd}
@media(max-width:520px){.system-way-switch{grid-template-columns:1fr}.actions button span,.workspace-tools button span{display:none}}

/* Build 1.15.6 — 3-way grafikon odmah ispod šeme/metrika, pre duge liste komponenti. */
body.interface-pro.system-3way .lower-grid{
  display:flex!important;
  flex-direction:column!important;
  gap:10px!important;
}
body.interface-pro.system-3way .lower-grid .graph-panel{
  order:-1!important;
  width:100%!important;
  margin:0 0 10px!important;
}
body.interface-pro.system-3way .lower-grid .parts-panel{
  order:0!important;
  width:100%!important;
}


/* Build 1.15.7 — nagib skretnice uvek vidljiv uz izbor 2-way / 3-way. */
.quick-filter-order{margin:10px 0 0;padding:10px;border:1px solid #294b61;border-radius:7px;background:#091a25}
.quick-filter-order>span{display:block;margin-bottom:8px;color:#8fc8ec;font-size:11px;font-weight:800;letter-spacing:.03em}
.quick-filter-buttons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.quick-filter-buttons button{min-width:0;padding:9px 4px;border:1px solid #31566e;border-radius:5px;background:#0b2130;color:#dcebf4;font-size:11px;font-weight:800;cursor:pointer}
.quick-filter-buttons button:hover{border-color:#55a9dc;background:#0e2c3e}
.quick-filter-buttons button.active{border-color:#2da6f7;background:#0874bd;color:#fff;box-shadow:0 0 0 1px rgba(45,166,247,.2) inset}
body.light .quick-filter-order{background:#eef7fc;border-color:#a9c5d5}
body.light .quick-filter-buttons button{background:#fff;color:#173344;border-color:#a9c5d5}
body.light .quick-filter-buttons button.active{background:#168dcc;color:#fff;border-color:#168dcc}
@media(max-width:520px){.quick-filter-buttons{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Build 1.15.8 — jasan naziv kontrole reda filtera. */
.quick-filter-order>span{font-size:12px!important;color:#56b8ff!important;text-transform:uppercase!important}

/* Build 1.16.0 — grafikon je u oba režima odmah ispod metrika, pre komponenti. */
body.interface-pro .lower-grid,
body.interface-pro.system-3way .lower-grid{
  display:flex!important;
  flex-direction:column!important;
  gap:10px!important;
}
body.interface-pro .lower-grid .graph-panel,
body.interface-pro.system-3way .lower-grid .graph-panel{
  order:-1!important;
  display:block!important;
  visibility:visible!important;
  width:100%!important;
  min-height:390px!important;
  margin:0 0 10px!important;
}
body.interface-pro .lower-grid .graph-panel canvas,
body.interface-pro.system-3way .lower-grid .graph-panel canvas{
  display:block!important;
  width:100%!important;
  height:330px!important;
  min-height:330px!important;
  opacity:1!important;
}
body.interface-pro .lower-grid .parts-panel,
body.interface-pro.system-3way .lower-grid .parts-panel{
  order:0!important;
  width:100%!important;
}

/* Faza 2 — vidljiv status jedinstvenog real-time proračunskog toka */
.realtime-engine-status{position:fixed;right:14px;bottom:14px;z-index:4900;padding:8px 12px;border-radius:999px;border:1px solid #2f5168;background:#0d1922;color:#bfe9ff;font-size:11px;font-weight:900;letter-spacing:.06em;box-shadow:0 8px 28px rgba(0,0,0,.35);pointer-events:none}
.realtime-engine-status[data-state="ok"]{border-color:#2f7e55;color:#a9f1c8}
.realtime-engine-status[data-state="busy"]{border-color:#8a6724;color:#ffd98b}
.realtime-engine-status[data-state="error"]{border-color:#8d3434;color:#ffb6b6}
@media print{.realtime-engine-status{display:none!important}}


/* ==========================================================
   PHASE 3 — jednostavan funkcionalni UI
   ========================================================== */
.interface-amateur{background:#eef2f6;color:#15202b}
.interface-amateur .realtime-engine-status{position:fixed;right:18px;bottom:16px;top:auto;z-index:6000;border-radius:999px;padding:8px 13px;font-size:11px;box-shadow:0 8px 24px rgba(0,0,0,.22)}
.interface-amateur .am-topbar{position:sticky;top:0;z-index:1000;min-height:64px;padding:0 24px;background:#111820;border-bottom:3px solid #e19320;display:flex;align-items:center;gap:28px}
.interface-amateur .am-brand{min-width:250px}.interface-amateur .am-brand strong{font-size:18px}.interface-amateur .am-brand span{color:#f0a22e;font-weight:900}
.interface-amateur .phase3-menu{display:flex;align-items:stretch;gap:2px;flex:1;height:64px}
.interface-amateur .phase3-menu button{border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;color:#dce4ec;padding:0 18px;font-weight:800;letter-spacing:.03em;cursor:pointer}
.interface-amateur .phase3-menu button:hover,.interface-amateur .phase3-menu button.active{color:#fff;border-bottom-color:#f0a22e;background:#1c2732}
.interface-amateur .am-top-actions{margin-left:auto}.interface-amateur #openProMode{display:none!important}
.interface-amateur .am-dashboard{width:min(1680px,calc(100% - 32px));margin:18px auto;display:grid;grid-template-columns:310px minmax(520px,1fr) 360px;gap:16px;align-items:start}
.interface-amateur .am-panel{background:#fff;border:1px solid #cad3dc;border-radius:8px;box-shadow:0 4px 16px rgba(22,34,45,.08)}
.interface-amateur .am-left-panel{padding:0;overflow:hidden;position:sticky;top:82px;max-height:calc(100vh - 100px);overflow:auto}
.interface-amateur .am-control-section{padding:14px 16px;border-bottom:1px solid #dce3e9}
.interface-amateur .am-control-section h2{font-size:12px;letter-spacing:.08em;color:#3e4d5b;margin:0 0 9px}
.interface-amateur .am-inline-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.interface-amateur .am-inline-options label{background:#edf2f6;border:1px solid #c7d1da;border-radius:7px;padding:12px;text-align:center;font-size:16px;font-weight:900}
.interface-amateur .am-inline-options label:has(input:checked){background:#172431;color:#fff;border-color:#f0a22e;box-shadow:inset 0 -3px #f0a22e}
.interface-amateur .am-order-buttons{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.interface-amateur .am-order-buttons button{padding:9px 3px}
.interface-amateur .am-driver-control select,.interface-amateur .am-value-row input,.interface-amateur .am-value-row select{min-height:40px;border:1px solid #aebbc7;border-radius:6px;background:#fff;color:#15202b}
.interface-amateur .phase3-advanced,.interface-amateur .phase3-hidden-actions{display:none!important}
.interface-amateur .am-center-column{display:grid;gap:16px;min-width:0}.interface-amateur .am-status-bar{border-radius:8px;background:#e8f6ed;border:1px solid #91c8a5;padding:11px 14px}
.interface-amateur .am-status-bar>div{display:none}
.interface-amateur .am-schematic-card{min-height:410px;padding:16px}.interface-amateur .am-schematic{height:330px;min-height:330px;overflow:auto;background:#f8fafc;border:1px solid #d4dde5;border-radius:6px}
.interface-amateur .am-schematic svg{width:100%;height:100%;max-width:none}
.interface-amateur .am-graph-card{padding:16px}.interface-amateur .am-graph-layout{grid-template-columns:1fr}.interface-amateur .am-graph-details{display:none}
.interface-amateur .am-right-column{position:sticky;top:82px;display:grid;gap:16px;max-height:calc(100vh - 100px);overflow:auto}
.interface-amateur .am-components-panel{padding:16px}.interface-amateur .am-component-row{background:#f8fafb;border-color:#d5dde4;color:#17212b}.interface-amateur .am-component-row:hover{background:#eef4f8}
.interface-amateur .am-analysis-cards{display:none}
.interface-amateur .phase3-pcb-cta{width:100%;margin-top:14px;border:0;border-radius:8px;background:#172431;color:#fff;padding:14px;text-align:left;display:grid;grid-template-columns:auto 1fr;column-gap:10px;cursor:pointer;box-shadow:inset 0 -3px #f0a22e}
.interface-amateur .phase3-pcb-cta span{grid-row:1/3;background:#f0a22e;color:#172431;border-radius:5px;padding:8px;font-weight:1000}.interface-amateur .phase3-pcb-cta b{font-size:14px}.interface-amateur .phase3-pcb-cta small{color:#aebdca}
.interface-amateur .beginner-footer{display:none}.interface-amateur .am-bottom-status{position:static;width:min(1680px,calc(100% - 32px));margin:0 auto 18px;border-radius:8px}
@media(max-width:1180px){.interface-amateur .am-dashboard{grid-template-columns:280px minmax(0,1fr)}.interface-amateur .am-right-column{grid-column:1/-1;position:static;max-height:none}.interface-amateur .am-components-panel{display:grid;grid-template-columns:1fr 260px;gap:12px}.interface-amateur .am-components-panel h2{grid-column:1/-1}}
@media(max-width:760px){.interface-amateur .am-topbar{padding:0 12px;flex-wrap:wrap}.interface-amateur .am-brand{min-width:0}.interface-amateur .phase3-menu{order:3;width:100%;height:auto;overflow:auto}.interface-amateur .phase3-menu button{padding:12px}.interface-amateur .am-dashboard{width:calc(100% - 16px);grid-template-columns:1fr;margin:8px auto}.interface-amateur .am-left-panel,.interface-amateur .am-right-column{position:static;max-height:none}.interface-amateur .am-components-panel{display:block}.interface-amateur .am-schematic{height:280px;min-height:280px}}

/* Phase 4 — velika, čitljiva električna šema */
.interface-amateur .am-schematic-card{min-height:520px}
.interface-amateur .am-schematic{height:440px;min-height:440px;padding:8px;background:#07111a;overflow:auto}
.interface-amateur .am-schematic svg{width:100%;height:auto;min-width:980px;max-width:none}
.interface-pro .schematic-stage{min-height:540px}
.interface-pro .schematic{min-height:500px;padding:8px;background:#07111a;overflow:auto}
.interface-pro .schematic svg{width:100%;height:auto;min-width:1050px;max-width:none}
@media(max-width:900px){
  .interface-amateur .am-schematic{height:390px;min-height:390px}
  .interface-amateur .am-schematic svg,.interface-pro .schematic svg{min-width:900px}
}
/* Phase 5 — grafovi i validacija */
.phase5-tabs{display:flex;gap:6px;margin:0 0 10px;padding:0 2px}.phase5-tabs button{border:1px solid #cbd4dd;background:#f4f7f9;color:#52606d;border-radius:5px;padding:7px 14px;font-weight:900;font-size:11px;letter-spacing:.06em;cursor:pointer}.phase5-tabs button.active{background:#253746;color:#fff;border-color:#253746;box-shadow:inset 0 -3px #e99a2f}.phase5-metric{display:grid;gap:3px;padding:9px 10px;border:1px solid #d7dee5;border-radius:6px;background:#f8fafb}.phase5-metric small{font-size:10px;color:#6d7884;font-weight:800}.phase5-metric b{font-size:13px;color:#263747}.phase5-note{grid-column:1/-1;padding:10px 12px;border-left:3px solid #e99a2f;background:#fff8ed;color:#59636e;font-size:11px;line-height:1.45}.am-graph-details,.graph-details{display:grid!important;grid-template-columns:repeat(2,minmax(150px,1fr));gap:7px}.am-graph-card canvas,.graph-panel canvas{width:100%;height:360px;display:block;background:#fff;border:1px solid #d8e0e7;border-radius:5px}@media(max-width:760px){.phase5-tabs{overflow:auto}.am-graph-details,.graph-details{grid-template-columns:1fr}.am-graph-card canvas,.graph-panel canvas{height:300px}}


/* ==========================================================
   PHASE 6 — čitljivost i potpuna vidljivost interfejsa
   Funkcije i proračun nisu menjani.
   ========================================================== */
.interface-amateur{font-size:14px;line-height:1.42}
.interface-amateur .am-topbar{min-height:68px}
.interface-amateur .am-brand{min-width:285px;display:flex;align-items:center;gap:12px;white-space:nowrap}
.interface-amateur .am-brand strong{font-size:18px;color:#f4f8fb;letter-spacing:-.01em}
.interface-amateur .am-brand span{display:inline-flex;align-items:center;min-height:28px;padding:3px 11px;border:1px solid #2584d6;border-radius:8px;background:#0e5598;color:#fff;font-size:13px;letter-spacing:.04em}
.interface-amateur .phase3-menu button{font-size:13px;color:#edf4f9;padding-inline:22px}
.interface-amateur .am-dashboard{grid-template-columns:330px minmax(650px,1fr) 350px;gap:16px}
.interface-amateur .am-left-panel,.interface-amateur .am-right-column{scrollbar-color:#81909c #e7edf2;scrollbar-width:auto}
.interface-amateur .am-control-section{padding:15px 16px}
.interface-amateur .am-control-section h2,.interface-amateur .am-components-panel>h2,.interface-amateur .am-schematic-card>h2,.interface-amateur .am-graph-card>h2{color:#174f7b;font-size:13px;font-weight:900;letter-spacing:.045em}
.interface-amateur .am-control-section h2 small{color:#537287;font-size:11px}
.interface-amateur .am-info{color:#1976c5;font-size:16px;font-weight:900}
.interface-amateur label,.interface-amateur .am-value-row,.interface-amateur .am-check-row{color:#243746;font-weight:700}
.interface-amateur .am-inline-options label{color:#243746;background:#f0f4f7;border-color:#aebdca}
.interface-amateur .am-inline-options label:has(input:checked){color:#fff;background:#17334b}
.interface-amateur .am-order-buttons button{min-height:40px;font-size:14px;font-weight:900;color:#fff;background:#102b3d;border:1px solid #27485e}
.interface-amateur .am-order-buttons button.active{background:#1266bd;border-color:#298bec;box-shadow:inset 0 -3px #f0a22e}
.interface-amateur input,.interface-amateur select,.interface-amateur button{font-family:inherit}
.interface-amateur .am-driver-control select,.interface-amateur .am-value-row input,.interface-amateur .am-value-row select{font-size:13px;font-weight:700;color:#142634;background:#fff;border-color:#8fa3b3}
.interface-amateur .am-driver-control select:focus,.interface-amateur .am-value-row input:focus,.interface-amateur .am-value-row select:focus{outline:3px solid rgba(23,119,202,.22);border-color:#1977c9}
.interface-amateur .am-driver-control option{color:#142634;background:#fff}
.interface-amateur .am-driver-values{grid-template-columns:1fr 1fr;gap:7px}
.interface-amateur .am-driver-values span{padding:7px 8px;color:#30495b;background:#edf3f7;border-color:#bac8d2;font-size:11px;font-weight:700}
.interface-amateur .am-driver-values b{color:#071c2b;font-size:13px}
.interface-amateur .am-disabled{opacity:.72;color:#6d7882}
.interface-amateur input:disabled,.interface-amateur select:disabled,.interface-amateur button:disabled{opacity:.7;color:#6b7883;-webkit-text-fill-color:#6b7883}
.interface-amateur .am-status-bar{color:#14743a;font-size:13px;font-weight:800;background:#e6f7ec;border-color:#79bf91}
.interface-amateur .am-schematic-card,.interface-amateur .am-graph-card,.interface-amateur .am-components-panel{color:#172a38}
.interface-amateur .am-chips span{color:#f2f7fa;background:#173044;border-color:#345a73;font-size:11px;font-weight:800}
.interface-amateur .am-components-head{grid-template-columns:70px 105px minmax(135px,1fr);padding:9px 8px;color:#45667d;font-size:11px;font-weight:900;border-color:#bdcad4}
.interface-amateur .am-component-row{grid-template-columns:70px 105px minmax(135px,1fr);padding:10px 8px;color:#172a38;background:#fff;border-color:#ccd6de}
.interface-amateur .am-component-row span:first-child{color:#122c40;font-size:14px;font-weight:900}
.interface-amateur .am-component-row span:nth-child(2){color:#183e59;font-size:13px;font-weight:850}
.interface-amateur .am-component-row span:nth-child(3){color:#3c5567;font-size:11px;line-height:1.4;overflow-wrap:anywhere}
.interface-amateur .am-component-row small{color:#39729a;font-size:10px;font-weight:800}
.interface-amateur .am-sensitivity-warning{font-size:12px;line-height:1.5}
.interface-amateur .phase4-pcb-cta{width:100%;margin-top:14px;padding:14px 15px;border:1px solid #172f43;border-radius:7px;background:#172f43;color:#fff;display:grid;grid-template-columns:52px minmax(0,1fr);grid-template-rows:auto auto;gap:3px 11px;text-align:left;cursor:pointer;box-shadow:inset 0 -4px #e99a2f}
.interface-amateur .phase4-pcb-cta span{grid-row:1/3;display:grid;place-items:center;border-radius:6px;background:#e99a2f;color:#172431;font-size:13px;font-weight:1000}
.interface-amateur .phase4-pcb-cta b{display:block;color:#fff;font-size:14px;line-height:1.25;white-space:normal}
.interface-amateur .phase4-pcb-cta small{display:block;color:#c6d4de;font-size:11px;line-height:1.35;white-space:normal}
.interface-amateur .phase5-tabs button{color:#324c5f;background:#f5f8fa;border-color:#aebdca;font-size:12px}
.interface-amateur .phase5-tabs button.active{color:#fff;background:#213f55}
.interface-amateur .phase5-metric{background:#f5f8fa;border-color:#bcc9d3}
.interface-amateur .phase5-metric small{color:#4d6474;font-size:11px}
.interface-amateur .phase5-metric b{color:#102e43;font-size:14px}
.interface-amateur .phase5-note{color:#354b5c;background:#fff5e7;font-size:12px}
.interface-amateur .am-graph-legend{color:#344f61;font-size:11px;font-weight:800;flex-wrap:wrap}
.interface-amateur .realtime-engine-status{font-size:11px;font-weight:900}
@media(max-width:1380px){.interface-amateur .am-dashboard{grid-template-columns:310px minmax(560px,1fr) 330px}.interface-amateur .phase3-menu button{padding-inline:14px}}
@media(max-width:1180px){.interface-amateur .am-dashboard{grid-template-columns:320px minmax(0,1fr)}.interface-amateur .am-right-column{grid-column:1/-1}.interface-amateur .am-components-panel{grid-template-columns:minmax(0,1fr) 300px}}
@media(max-width:760px){.interface-amateur{font-size:13px}.interface-amateur .am-brand{min-width:0}.interface-amateur .am-brand strong{font-size:16px}.interface-amateur .am-brand span{font-size:11px}.interface-amateur .am-dashboard{grid-template-columns:1fr}.interface-amateur .am-components-head,.interface-amateur .am-component-row{grid-template-columns:60px 90px minmax(110px,1fr)}}

/* Phase 7 — baza i standardni meni */
.driver-db-toolbar-stats{display:flex;flex-direction:column;align-items:flex-end;gap:4px}.driver-db-toolbar-stats #driverDbStatusSummary{font-size:11px;color:#9fb0bf;font-weight:600}.driver-db-project-actions{margin:0 0 16px;padding:12px;background:#111c26;border:1px solid #2c4052;border-radius:7px}.driver-db-project-actions button{width:100%;padding:11px 14px;border:1px solid #2ea66a;border-radius:6px;background:#17633f;color:#fff;font-weight:900;cursor:pointer}.driver-db-project-actions button:hover{background:#1c7650}.driver-db-project-actions span{color:#f1c46d;font-weight:700}.driver-db-makers button:focus-visible,.driver-db-models button:focus-visible,.driver-db-types button:focus-visible{outline:2px solid #3ba6ff;outline-offset:1px}
@media(max-width:760px){.driver-db-modal{padding:0}.driver-db-shell{width:100vw;height:100vh;border-radius:0}.driver-db-toolbar{align-items:stretch;flex-direction:column}.driver-db-toolbar input{width:100%}.driver-db-toolbar-stats{align-items:flex-start}.driver-db-layout{grid-template-columns:1fr;grid-template-rows:auto 220px 260px 1fr}.driver-db-layout>aside,.driver-db-layout>section{border-right:0;border-bottom:1px solid #293746}.driver-db-types{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.driver-db-types h3{grid-column:1/-1}.driver-db-types button{margin:0}.driver-db-key-grid{grid-template-columns:1fr}}

/* PHASE 7 korekcija: kontrast drajvera i stabilan PCB prikaz. */
.interface-amateur .driver-picker-facts{background:#dce4ea!important;border:1px solid #95a7b5!important;color:#102332!important;opacity:1!important}
.interface-amateur .driver-picker-facts b{color:#071923!important;font-size:12px!important;font-weight:900!important}
.interface-amateur .driver-picker-facts span{color:#294554!important;font-size:11px!important;font-weight:750!important;line-height:1.45!important}
.interface-amateur .am-unavailable-option{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 9px;margin-top:5px;border:1px dashed #8a9aa7;border-radius:5px;background:#eef2f5;color:#2e4655}
.interface-amateur .am-unavailable-option b{font-size:12px;color:#193548}.interface-amateur .am-unavailable-option span{font-size:10px;font-weight:800;color:#6b4d16}
body.pcb-view-active #boardDesigner{contain:layout paint;overflow-anchor:none}
body.pcb-view-active .board-canvas{overflow-anchor:none}


/* Phase 7 correction 3: stable PCB modal + schematic readability */
body.pcb-modal-open{overflow:hidden!important}
.board-modal[hidden]{display:none!important}
.board-modal{position:fixed!important;inset:18px!important;z-index:9000!important;margin:0!important;max-width:none!important;border:1px solid #42647a!important;border-radius:10px!important;background:#07121a!important;box-shadow:0 24px 90px rgba(0,0,0,.8)!important;overflow:auto!important}
.board-modal::before{content:"";position:fixed;inset:0;z-index:-1;background:rgba(1,6,10,.82);backdrop-filter:blur(3px)}
.board-modal-close{position:sticky;float:right;top:8px;right:10px;z-index:20;width:42px;height:42px;margin:8px 9px -50px 0;border:1px solid #55758a;border-radius:7px;background:#122430;color:#fff;font-size:29px;line-height:1;cursor:pointer}
.board-modal .board-head{padding-right:68px;position:sticky;top:0;z-index:10}
.board-modal .board-workspace{grid-template-columns:340px minmax(620px,1fr);min-height:520px}
.board-modal .physical-table-wrap{max-height:390px}
.board-modal .board-canvas{height:500px}
.board-modal .board-tabs{position:sticky;top:73px;z-index:9}
.board-modal .board-summary{position:sticky;bottom:0;background:#08131b;z-index:8}
@media(max-width:1000px){.board-modal{inset:6px!important}.board-modal .board-workspace{grid-template-columns:1fr}.board-modal .board-canvas{height:430px}.board-modal .board-tabs{top:117px}}
/* keep schematic heading clear of first branch */
.am-schematic svg,.schematic svg{overflow:visible}


/* Phase 7 correction 4: PCB modal detached from hidden legacy container + Phase UI database skin */
.interface-amateur .driver-db-modal{background:rgba(8,18,27,.72);backdrop-filter:blur(4px);padding:24px}
.interface-amateur .driver-db-shell{width:min(1500px,96vw);height:min(860px,92vh);background:#f6f8fa;color:#102332;border:1px solid #9fb0bd;border-radius:10px;box-shadow:0 24px 80px rgba(0,0,0,.45)}
.interface-amateur .driver-db-header{background:#0d2839;border-bottom:3px solid #f0a22e;color:#fff;padding:16px 20px}
.interface-amateur .driver-db-header h2{color:#fff}.interface-amateur .driver-db-header p{color:#c9d6df}
.interface-amateur .driver-db-header button{background:#18384b;border-color:#5f7c8f;color:#fff}
.interface-amateur .driver-db-toolbar{background:#eaf0f4;border-bottom:1px solid #a8bac7}
.interface-amateur .driver-db-toolbar label,.interface-amateur .driver-db-toolbar-stats #driverDbStatusSummary{color:#294555}
.interface-amateur .driver-db-toolbar input{background:#fff;color:#102332;border-color:#8098aa}
.interface-amateur .driver-db-layout>aside,.interface-amateur .driver-db-layout>section{background:#f6f8fa;border-color:#b7c5cf}
.interface-amateur .driver-db-layout h3{color:#31556a}
.interface-amateur .driver-db-types button,.interface-amateur .driver-db-makers button,.interface-amateur .driver-db-models button{color:#163247}
.interface-amateur .driver-db-types button span,.interface-amateur .driver-db-models button small{color:#597284}
.interface-amateur .driver-db-types button.active,.interface-amateur .driver-db-makers button.active,.interface-amateur .driver-db-models button.active{background:#dceaf3;border-color:#5e8aa6;box-shadow:inset 4px 0 #f0a22e}
.interface-amateur .driver-db-series h4{color:#b96800}
.interface-amateur .driver-db-detail-head{border-color:#aebdca}.interface-amateur .driver-db-detail-head h3{color:#102332}.interface-amateur .driver-db-detail-head small{color:#a85d00}
.interface-amateur .driver-db-key-grid>div{background:#fff;border-color:#bccad4;color:#102332}
.interface-amateur .driver-db-key-grid span{color:#526c7c}.interface-amateur .driver-db-key-grid b{color:#102332}
.interface-amateur .driver-db-note,.interface-amateur .driver-db-source{background:#e9f0f4;color:#173447}
.interface-amateur .driver-db-note p,.interface-amateur .driver-db-source p{color:#294555}
.interface-amateur .driver-db-project-actions{background:#edf3f6;border-color:#aebfca}
.interface-amateur .driver-db-placeholder,.interface-amateur .driver-db-empty{color:#506979}
.interface-amateur .driver-db-maker-total{color:#163247!important}.interface-amateur .driver-db-maker-section{color:#c97600!important}

/* Modal is appended to BODY on open, so it remains visible regardless of hidden professional container. */
body > #boardDesigner.board-modal{display:block}
body > #boardDesigner.board-modal[hidden]{display:none!important}

/* Phase 7 correction 5 — phone-first responsive workspace. UI only. */
@media (max-width:760px){
  html,body{max-width:100%;overflow-x:hidden}
  .interface-amateur{font-size:14px;background:#07131c}
  .interface-amateur .am-topbar{position:sticky;top:0;z-index:120;display:grid;grid-template-columns:minmax(0,1fr) auto;padding:8px 10px 0;gap:6px;background:#0e1b25;border-bottom:2px solid #e99a2f}
  .interface-amateur .am-brand{padding:2px 0 7px;line-height:1.1}
  .interface-amateur .am-brand strong{font-size:15px;white-space:nowrap}
  .interface-amateur .am-brand span{font-size:9px;letter-spacing:.06em}
  .interface-amateur .am-top-actions{align-self:start}
  .interface-amateur .am-icon-button{width:38px;height:38px}
  .interface-amateur .phase4-menu{grid-column:1/-1;display:flex;width:100%;height:44px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;border-top:1px solid #263845}
  .interface-amateur .phase4-menu::-webkit-scrollbar{display:none}
  .interface-amateur .phase4-menu button{flex:0 0 auto;min-width:max-content;padding:0 14px;font-size:11px;white-space:nowrap}

  .interface-amateur .am-dashboard{display:flex;flex-direction:column;width:100%;margin:0;padding:8px;gap:9px}
  .interface-amateur .am-left-panel,.interface-amateur .am-center-column,.interface-amateur .am-right-column{width:100%;min-width:0;position:static;max-height:none;overflow:visible}
  .interface-amateur .am-left-panel{order:1}
  .interface-amateur .am-center-column{order:2;display:contents}
  .interface-amateur .am-right-column{order:3;display:contents}
  .interface-amateur .am-status-bar{order:0;padding:10px 12px;border-radius:7px;font-size:12px}
  .interface-amateur .am-status-bar>div{display:none}
  .interface-amateur .am-schematic-card{order:2}
  .interface-amateur .am-components-panel{order:3}
  .interface-amateur .am-graph-card{order:4}
  .interface-amateur .am-analysis-cards{order:5}

  .interface-amateur .am-panel{border-radius:8px}
  .interface-amateur .am-control-section{padding:12px 12px}
  .interface-amateur .am-control-section h2,.interface-amateur .am-panel>h2{font-size:13px;line-height:1.3}
  .interface-amateur .am-inline-options{grid-template-columns:1fr 1fr;gap:8px}
  .interface-amateur .am-inline-options label{min-height:48px;font-size:16px}
  .interface-amateur .am-order-buttons{grid-template-columns:repeat(4,1fr);gap:6px}
  .interface-amateur .am-order-buttons button{min-height:45px;font-size:15px}
  .interface-amateur .am-value-row{grid-template-columns:55px minmax(0,1fr) 32px;gap:8px}
  .interface-amateur .am-value-row input,.interface-amateur .am-value-row select,.interface-amateur .am-driver-control select{min-height:46px;font-size:16px}
  .interface-amateur .am-driver-control{padding:12px}
  .interface-amateur .am-driver-values{grid-template-columns:1fr 1fr}
  .interface-amateur .am-driver-values span{font-size:12px;min-height:42px}
  .interface-amateur .driver-picker-shell{grid-template-columns:58px minmax(0,1fr)!important;gap:9px!important}
  .interface-amateur .driver-picker-image{width:58px!important;height:58px!important}
  .interface-amateur .driver-picker-grid{grid-template-columns:1fr!important}
  .interface-amateur .driver-picker-facts{padding:9px!important}

  .interface-amateur .am-schematic-card{padding:8px}
  .interface-amateur .am-schematic-card>h2{padding:10px 10px;margin:0}
  .interface-amateur .am-schematic{height:auto!important;min-height:0!important;overflow-x:auto!important;overflow-y:hidden!important;-webkit-overflow-scrolling:touch;background:#07131c;border-radius:5px}
  .interface-amateur .am-schematic svg{display:block;width:920px!important;min-width:920px!important;height:auto!important;max-width:none!important}
  .interface-amateur .am-chips{display:flex;overflow-x:auto;gap:5px;padding:7px 1px 1px;scrollbar-width:none}
  .interface-amateur .am-chips::-webkit-scrollbar{display:none}
  .interface-amateur .am-chips span{flex:0 0 auto;font-size:10px}

  .interface-amateur .am-components-panel{display:block;padding:10px}
  .interface-amateur .am-components-head{display:none}
  .interface-amateur .am-component-rows{display:grid;grid-template-columns:1fr;gap:7px}
  .interface-amateur .am-component-row{display:grid;grid-template-columns:60px minmax(85px,.75fr) minmax(0,1.4fr);gap:8px;border:1px solid #b8c7d2;border-radius:6px;padding:10px;background:#fff}
  .interface-amateur .am-component-row span:first-child{font-size:15px}
  .interface-amateur .am-component-row span:nth-child(2){font-size:14px}
  .interface-amateur .am-component-row span:nth-child(3){font-size:11px}
  .interface-amateur .phase4-pcb-cta{position:sticky;bottom:8px;z-index:25;margin-top:12px;box-shadow:0 8px 24px rgba(0,0,0,.28),inset 0 -4px #e99a2f}

  .interface-amateur .am-graph-card{padding:8px}
  .interface-amateur .am-graph-layout{display:block}
  .interface-amateur .am-graph-card canvas{height:270px!important;min-width:720px;width:720px!important}
  .interface-amateur .am-graph-layout>div:first-child{overflow-x:auto;-webkit-overflow-scrolling:touch}
  .interface-amateur .am-graph-details{grid-template-columns:1fr!important;margin-top:8px}
  .interface-amateur .phase5-tabs{overflow-x:auto;white-space:nowrap;scrollbar-width:none}

  .interface-amateur .am-analysis-cards{display:grid;gap:7px}
  .interface-amateur .am-analysis-card summary{min-height:44px;padding:12px;font-size:12px}
  .interface-amateur .am-analysis-card>div{font-size:12px;line-height:1.55}

  .interface-amateur .app-footer{grid-template-columns:1fr!important;padding:18px 14px 72px;gap:14px;text-align:left}
  .interface-amateur .footer-bottom{grid-column:auto!important;display:grid!important;gap:5px!important}
  .interface-amateur .am-bottom-status{position:fixed;left:8px;right:8px;bottom:8px;z-index:90;width:auto;max-width:none;justify-content:center;padding:9px 12px;font-size:10px;box-shadow:0 5px 20px rgba(0,0,0,.38)}

  .driver-db-modal{padding:0!important}
  .driver-db-shell{width:100vw!important;height:100dvh!important;max-height:none!important;border-radius:0!important}
  .driver-db-header{padding:12px 14px!important}
  .driver-db-header h2{font-size:17px!important}
  .driver-db-header p{font-size:11px!important}
  .driver-db-toolbar{padding:10px 12px!important}
  .driver-db-layout{display:block!important;overflow-y:auto!important}
  .driver-db-layout>aside,.driver-db-layout>section{max-height:none!important;overflow:visible!important;padding:12px!important}
  .driver-db-types{position:sticky;top:0;z-index:4;background:#f6f8fa!important;display:grid!important;grid-template-columns:repeat(3,1fr)!important}
  .driver-db-makers{max-height:240px!important;overflow-y:auto!important}
  .driver-db-models{max-height:300px!important;overflow-y:auto!important}
  .driver-db-details{padding:14px!important}
  .driver-db-key-grid{grid-template-columns:1fr!important}

  .board-modal{inset:0!important;border-radius:0!important;border:0!important;width:100vw!important;height:100dvh!important;overflow:auto!important}
  .board-modal .board-head{padding:12px 56px 10px 12px!important;position:sticky;top:0}
  .board-modal-close{position:fixed!important;top:7px!important;right:7px!important;margin:0!important}
  .board-modal .board-workspace{display:block!important;min-height:0!important}
  .board-modal .physical-panel{padding:12px!important}
  .board-modal .physical-table-wrap{max-height:280px!important}
  .board-modal .board-tabs{top:64px!important;overflow-x:auto!important;white-space:nowrap!important}
  .board-modal .board-canvas{height:390px!important;min-width:760px!important}
  .board-modal .board-canvas-wrap{overflow-x:auto!important;-webkit-overflow-scrolling:touch}
  .board-modal .board-summary{position:static!important;grid-template-columns:1fr 1fr!important}
}

@media (max-width:420px){
  .interface-amateur .am-dashboard{padding:6px}
  .interface-amateur .am-brand strong{font-size:14px}
  .interface-amateur .phase4-menu button{padding:0 11px;font-size:10px}
  .interface-amateur .am-inline-options label{font-size:15px}
  .interface-amateur .am-component-row{grid-template-columns:52px 82px minmax(0,1fr);gap:6px;padding:9px 7px}
  .interface-amateur .am-component-row span:nth-child(3){font-size:10px}
  .interface-amateur .phase4-pcb-cta{grid-template-columns:44px minmax(0,1fr);padding:12px}
  .interface-amateur .phase4-pcb-cta b{font-size:13px}
  .interface-amateur .phase4-pcb-cta small{font-size:10px}
}
.phase-db-editor-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;font:inherit;color:inherit;padding:.55rem .8rem;border-radius:.55rem;border:1px solid currentColor}

/* UI2026 — complete presentation layer reconstruction. Core calculation and database remain unchanged. */
body.ui2026.interface-amateur{margin:0;background:#050708;color:#e8eaec;font-family:Inter,Segoe UI,Arial,sans-serif;overflow-x:hidden}
body.ui2026 *{box-sizing:border-box}
body.ui2026 #proWorkspace{display:none!important}
body.ui2026 .amateur-workspace{min-height:100vh;background:linear-gradient(#050708,#080b0d);color:#e8eaec}
body.ui2026 .am-topbar{position:sticky;top:0;z-index:100;height:70px;padding:0 18px;display:grid;grid-template-columns:minmax(270px,1.2fr) 230px minmax(260px,.8fr) 120px 180px 150px;gap:12px;align-items:center;background:linear-gradient(180deg,#090b0c,#050607);border-bottom:1px solid #26292b;box-shadow:0 6px 20px #0008}
.u26-brand{display:flex;align-items:center;gap:12px;min-width:0}.u26-wave{font-size:42px;color:#f0bd00;line-height:1;transform:rotate(-6deg)}.u26-brand div{display:grid;min-width:0}.u26-brand strong{font-size:19px;white-space:nowrap}.u26-brand small{font-size:10px;color:#7f8284;letter-spacing:.05em;white-space:nowrap}
.u26-tools{display:grid;grid-template-columns:repeat(4,1fr);gap:3px}.u26-tools button,.u26-header-actions button{border:0;background:transparent;color:#d7d9da;display:grid;place-items:center;gap:3px;font-size:20px;cursor:pointer}.u26-tools span,.u26-header-actions span{font-size:10px;color:#9da0a2}.u26-tools button:hover,.u26-header-actions button:hover{color:#f7c20a}
.u26-project,.u26-engine,.u26-live{height:52px;border:1px solid #24282a;border-radius:4px;background:#080a0b;padding:7px 12px}.u26-project{display:grid;grid-template-columns:1fr auto}.u26-project small,.u26-live small{grid-column:1/-1;font-size:9px;color:#888}.u26-project b{font-size:14px}.u26-project em,.u26-live em{font-size:10px;color:#17c95d;font-style:normal}.u26-engine{display:grid;grid-template-columns:1fr 1fr;gap:8px}.u26-engine span{display:grid}.u26-engine small{font-size:9px;color:#96999b}.u26-engine b{font-size:11px}.u26-live{display:grid;grid-template-columns:1fr auto}.u26-live b{color:#1fe463;font-size:12px}.u26-header-actions{display:grid;grid-template-columns:1fr 1fr;gap:14px}
body.ui2026 .am-dashboard{width:100%;max-width:none;margin:0;padding:8px;display:grid;grid-template-columns:320px minmax(620px,1fr) 440px;gap:8px;align-items:start}
body.ui2026 .am-panel,body.ui2026 .u26-config,body.ui2026 .u26-overview,body.ui2026 .u26-pcb-preview{background:linear-gradient(180deg,#101214,#0b0d0f);border:1px solid #262a2d;border-radius:5px;box-shadow:none;color:#e8eaec;overflow:hidden}
body.ui2026 .am-left-panel{position:sticky;top:78px;max-height:calc(100vh - 86px);overflow:auto;padding:0;background:#0b0d0f;border:1px solid #24282b;border-radius:5px;scrollbar-width:thin}
.u26-db-head>div:first-child{height:38px;display:flex;align-items:center;justify-content:space-between;padding:0 12px;border-bottom:1px solid #25292c;font-size:12px}.u26-db-head button{border:0;background:transparent;color:#ccc;cursor:pointer}.u26-db-head nav{display:grid;grid-template-columns:1fr 1fr;padding:10px 10px 7px}.u26-db-head nav button{height:38px;border-bottom:2px solid transparent}.u26-db-head nav .active{color:#f1bf00;border-color:#f1bf00}.u26-search{margin:0 10px 7px;height:34px;padding:0 10px;border:1px solid #2d3337;border-radius:4px;display:flex;align-items:center;justify-content:space-between;color:#777;font-size:11px}.u26-filter-row{display:grid;gap:5px;padding:0 10px 8px}.u26-filter-row button{height:30px;padding:0 10px;border:1px solid #2a3034;border-radius:4px;text-align:left;color:#bbb}.u26-type-tabs{display:grid;grid-template-columns:1fr 1fr 1fr;gap:5px;padding:0 10px 8px}.u26-type-tabs button{height:30px;border:1px solid;border-radius:4px;font-weight:700}.u26-type-tabs .lf{color:#2d9cff;border-color:#1377c6}.u26-type-tabs .mid{color:#25d257;border-color:#168d37}.u26-type-tabs .hf{color:#f3c20a;border-color:#b88d00}.u26-list-head{display:flex;justify-content:space-between;padding:6px 12px;border-top:1px solid #24282b;border-bottom:1px solid #24282b;font-size:9px;color:#aaa}
body.ui2026 .am-left-panel>.am-control-section:not(.am-driver-control),body.ui2026 .am-left-panel>.phase4-hidden-actions{display:none!important}
body.ui2026 .u26-driver-card{position:relative;min-height:118px;padding:10px 10px 10px 105px;border-bottom:1px solid #24282b;background:#0d0f11}.u26-driver-card h2{font-size:11px!important;color:#d9dcde!important;padding:0!important;margin:0 0 5px!important}.u26-driver-image{position:absolute;left:12px;top:34px;width:82px;height:70px;display:grid;place-items:center}.u26-driver-image img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 5px 8px #000)}body.ui2026 .u26-driver-card .driver-picker{margin:0!important;padding:0!important;border:0!important;background:transparent!important;gap:4px}body.ui2026 .u26-driver-card .driver-picker-grid{display:none!important}body.ui2026 .u26-driver-card .driver-model-label{font-size:0}body.ui2026 .u26-driver-card .driver-model-label select{height:28px;margin:0!important;font-size:11px;background:#101519;color:#fff;border:1px solid #2d3940}body.ui2026 .u26-driver-card .driver-picker-facts{padding:5px 6px!important;font-size:9px!important;line-height:1.2!important;background:#151a1d!important;border:0!important}body.ui2026 .u26-driver-card>.am-driver-values{display:none!important}
.u26-data-status{padding:10px 12px}.u26-data-status h3{font-size:10px;margin:0 0 9px;color:#9a9da0}.u26-data-status h3 small{font-weight:400}.u26-data-status p{display:grid;grid-template-columns:10px 1fr auto;gap:7px;align-items:center;margin:8px 0;font-size:10px;color:#9fa2a4}.u26-data-status i{width:8px;height:8px;border:2px solid;border-radius:50%}.u26-data-status .ok{border-color:#33df58}.u26-data-status .warn{border-color:#f2cc00}.u26-data-status .catalog{border-color:#ff9c00}.u26-data-status .bad{border-color:#ef3939}.u26-data-status>div{display:flex;justify-content:space-between;padding:10px 0 0;border-top:1px solid #25292c;font-size:11px}
body.ui2026 .am-center-column,body.ui2026 .am-right-column{display:grid;gap:8px;min-width:0}.u26-config{height:78px}.u26-config-title{height:30px;padding:9px 12px;font-size:11px;font-weight:700;border-bottom:1px solid #24282a}.u26-config{display:grid;grid-template-columns:1fr 260px}.u26-config-title{grid-column:1/-1}.u26-config-controls{display:flex;align-items:center;gap:6px;padding:6px 12px;overflow:hidden}.u26-config-controls .am-control-section{display:block!important;padding:0!important;border:0!important;background:transparent!important}.u26-config-controls .am-control-section h2{display:none!important}.u26-config-controls .am-inline-options,.u26-config-controls .am-order-buttons{display:flex!important;gap:4px!important;margin:0!important}.u26-config-controls label,.u26-config-controls button,.u26-config-controls select,.u26-config-controls input{height:30px!important;margin:0!important;padding:5px 10px!important;border:1px solid #303538!important;border-radius:4px!important;background:#111416!important;color:#d6d8d9!important;font-size:10px!important}.u26-config-controls input[type=radio]{display:none}.u26-config-controls label:has(input:checked),.u26-config-controls button.active{border-color:#c59b00!important;color:#f3c000!important}.u26-config-controls .am-value-row{display:flex!important;gap:4px!important}.u26-config-controls .am-value-row span,.u26-config-controls .am-value-row b{display:none}.u26-config-meta{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:6px 10px}.u26-config-meta span{display:grid;grid-template-columns:auto 1fr;column-gap:6px;font-size:14px}.u26-config-meta small{font-size:8px;color:#888}.u26-config-meta b{font-size:10px}
body.ui2026 .u26-status{display:none}.u26-overview h2{height:30px;margin:0;padding:9px 12px;font-size:11px;border-bottom:1px solid #25292c}.u26-overview>div{height:46px;display:grid;grid-template-columns:repeat(4,1fr) 1.4fr}.u26-overview span{display:grid;padding:7px 12px;border-right:1px solid #222628}.u26-overview small{font-size:8px;color:#888}.u26-overview b{font-size:12px}.u26-overview .danger,.u26-metric-strip .danger{color:#ff4a43}.u26-overview strong{display:grid;place-items:center;color:#1fd262;font-size:11px}
body.ui2026 .am-schematic-card>h2,body.ui2026 .am-components-panel>h2{height:34px;padding:10px 12px;border-bottom:1px solid #25292c;background:#0d1012;color:#e6e8e9;font-size:11px}.am-schematic{height:340px;min-height:340px!important;padding:0!important;background:#0b0d0f!important;overflow:auto}.am-schematic svg{width:100%!important;min-width:760px!important;height:100%!important}.am-chips{display:flex;padding:7px 12px!important;gap:6px!important;white-space:nowrap;overflow:auto;border-top:1px solid #24282a!important}.am-chips span{font-size:9px!important;padding:4px 7px!important;background:#111416!important;border-color:#2c3235!important}
body.ui2026 .am-graph-card{min-height:360px}.u26-graph-tabs{height:38px;display:flex;gap:3px;padding:5px;border-bottom:1px solid #262a2d}.u26-graph-tabs button{border:1px solid #30363a;border-radius:3px;background:#111416;color:#aeb1b3;padding:0 12px;font-size:9px}.u26-graph-tabs .active{border-color:#1382d5;color:#9dd5ff}.am-graph-layout{display:grid!important;grid-template-columns:minmax(0,1fr) 150px!important;gap:6px!important;padding:6px!important}.am-graph-layout canvas{width:100%!important;height:270px!important;background:#0b0e10!important;border-color:#242a2e!important}.am-graph-legend{font-size:9px!important}.am-graph-details{font-size:9px!important}.u26-metric-strip{height:58px;display:grid;grid-template-columns:repeat(6,1fr) 1.3fr;border-top:1px solid #25292c}.u26-metric-strip span{display:grid;align-content:center;gap:3px;padding:6px 12px;border-right:1px solid #25292c;font-size:8px;color:#85898c}.u26-metric-strip b{font-size:10px;color:#e4e6e7}.u26-metric-strip span:nth-child(1) b{color:#2bdd55}.u26-metric-strip span:nth-child(2) b{color:#f2c000}.u26-metric-strip .ok{color:#31d75f;font-size:10px}.u26-metric-strip small{font-size:8px;color:#45bd67}
body.ui2026 .am-right-column{position:sticky;top:78px;max-height:calc(100vh - 86px);overflow:auto;scrollbar-width:thin}.u26-component-actions{height:42px;display:grid;grid-template-columns:1fr 1fr 34px;gap:8px;padding:6px 10px}.u26-component-actions button{border:1px solid #303639;border-radius:4px;background:#111416;color:#d0d2d4;font-size:10px}.u26-component-actions button:first-child{border-color:#b98f00;color:#f0bd00}.am-components-head{grid-template-columns:48px 1fr 90px!important;padding:6px 10px!important;font-size:8px!important}.am-component-row{grid-template-columns:48px 1fr 90px!important;padding:5px 10px!important;font-size:10px!important;min-height:29px!important;background:#0d1012!important;border-color:#24282b!important;color:#dfe1e2!important}.am-component-row span:nth-child(2),.am-component-row span:nth-child(3){color:#babdbe!important}.am-sensitivity-warning,.phase4-pcb-cta{display:none!important}.u26-branch-controls{border-top:1px solid #25292c}.u26-branch-controls h3{margin:0;padding:8px 10px;font-size:10px}.u26-branch-controls>div{display:grid;grid-template-columns:1fr 1fr 1fr;gap:5px;padding:0 8px 8px}.u26-branch-controls button{height:28px;background:#101416;border:1px solid;border-radius:4px;font-size:9px}.u26-branch-controls .lf{color:#2d9cff;border-color:#1776b8}.u26-branch-controls .mid{color:#2bd457;border-color:#198c38}.u26-branch-controls .hf{color:#f0bf00;border-color:#aa8300}.u26-branch-controls section{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:0 8px 8px}.u26-branch-controls label{display:flex;justify-content:space-between;align-items:center;height:28px;font-size:9px;color:#999}.u26-branch-controls label span,.u26-branch-controls label b{background:#15191b;padding:5px 7px;border-radius:3px;color:#d8dadb}.u26-branch-controls label .on{color:#2dbbff}.u26-pcb-preview{min-height:330px}.u26-pcb-head,.u26-pcb-toolbar,.u26-pcb-foot{display:flex;align-items:center;justify-content:space-between}.u26-pcb-head{height:34px;padding:0 10px;border-bottom:1px solid #25292c;font-size:10px}.u26-pcb-head button{border:0;background:transparent;color:#aaa}.u26-pcb-toolbar{height:38px;padding:0 10px;font-size:8px;color:#9ca0a2}.u26-pcb-toolbar b{padding:5px 8px;background:#171a1c;color:#dfe1e2}.u26-board{position:relative;height:220px;margin:0 8px;border:1px solid #173c22;border-radius:4px;background:radial-gradient(circle at 20% 30%,#246b36 0 2px,transparent 3px),linear-gradient(135deg,#194a28,#0f3a20);box-shadow:inset 0 0 25px #001a08}.u26-board:before,.u26-board:after{content:"";position:absolute;left:38px;right:38px;height:2px;background:#c99e45;top:63px;box-shadow:0 72px #c99e45,0 138px #c99e45}.hole{position:absolute;width:12px;height:12px;border-radius:50%;background:#080b08;border:2px solid #304d35}.h1{left:10px;top:10px}.h2{right:10px;top:10px}.h3{left:10px;bottom:10px}.h4{right:10px;bottom:10px}.term{position:absolute;z-index:2;padding:5px;background:#121613;border:1px solid #a98235;border-radius:3px;font-size:8px;line-height:1.8}.term.in{left:14px;top:75px}.term.out{right:12px;top:24px}.coil{position:absolute;z-index:2;width:62px;height:62px;border-radius:50%;border:7px double #c16c23;box-shadow:inset 0 0 0 7px #2f1308,0 2px 6px #000}.coil.c1{left:88px;top:15px}.coil.c2{left:170px;top:88px}.part{position:absolute;z-index:2;min-width:68px;padding:8px 6px;text-align:center;background:linear-gradient(#f3f2e6,#bfbcae);border:1px solid #777;color:#111;font-size:8px;border-radius:2px}.p1{left:230px;top:22px}.p2{left:92px;top:100px;background:linear-gradient(#f9ce46,#bd7c00)}.p3{left:277px;top:100px}.p4{left:92px;bottom:12px;background:linear-gradient(#f9ce46,#bd7c00)}.p5{left:192px;bottom:12px}.p6{left:286px;bottom:12px}.u26-pcb-foot{height:38px;padding:0 10px;font-size:8px}.u26-pcb-foot button{border:1px solid #343a3d;background:#111416;color:#ddd;padding:6px 10px}.u26-hidden-analysis{display:none!important}
body.ui2026 .realtime-engine-status{top:70px!important;right:12px!important;font-size:9px!important;background:transparent!important;color:#3ce56b!important;border:0!important}
body.ui2026 .driver-db-modal[hidden],body.ui2026 .board-modal[aria-hidden="true"]{display:none!important}
@media(max-width:1450px){body.ui2026 .am-topbar{grid-template-columns:minmax(250px,1fr) 190px 250px 100px 150px 120px}.u26-brand strong{font-size:16px}body.ui2026 .am-dashboard{grid-template-columns:285px minmax(540px,1fr) 360px}.u26-config{grid-template-columns:1fr 190px}.u26-config-controls{gap:3px;padding-inline:7px}.u26-config-controls label,.u26-config-controls button,.u26-config-controls select,.u26-config-controls input{padding-inline:6px!important}.am-schematic{height:300px}.u26-board{height:190px}.coil{transform:scale(.82)}.p1{left:205px}.p3{left:235px}.p6{left:245px}}
@media(max-width:1180px){body.ui2026 .am-topbar{grid-template-columns:1fr 210px 230px 120px}.u26-engine,.u26-header-actions{display:none}body.ui2026 .am-dashboard{grid-template-columns:280px minmax(0,1fr)}body.ui2026 .am-right-column{grid-column:1/-1;position:static;max-height:none;display:grid;grid-template-columns:1fr 1fr}.u26-overview{grid-column:1/-1}.u26-pcb-preview{min-height:0}.am-components-panel{grid-row:auto!important}.u26-project{display:grid}.am-schematic{height:340px}}
@media(max-width:820px){body.ui2026 .am-topbar{height:auto;min-height:64px;grid-template-columns:1fr auto;padding:8px 10px}.u26-tools{display:none}.u26-project,.u26-live{display:none}.u26-brand strong{font-size:14px}.u26-brand small{font-size:8px}body.ui2026 .am-dashboard{grid-template-columns:1fr;padding:6px}.am-left-panel,body.ui2026 .am-right-column{position:static;max-height:none}.am-left-panel{order:2}.am-center-column{order:1}.am-right-column{order:3!important;display:grid!important;grid-template-columns:1fr!important}.u26-overview{grid-column:auto}.u26-config{height:auto;grid-template-columns:1fr}.u26-config-meta{display:none}.u26-config-controls{overflow-x:auto}.u26-config-controls>*{flex:0 0 auto}.am-schematic{height:300px;overflow-x:auto}.am-schematic svg{min-width:760px!important}.am-graph-layout{grid-template-columns:1fr!important}.am-graph-details{display:grid!important;grid-template-columns:1fr 1fr!important}.u26-metric-strip{height:auto;grid-template-columns:repeat(2,1fr)}.u26-pcb-preview{display:block}.u26-board{min-width:400px}.u26-pcb-preview{overflow-x:auto}}
@media(max-width:500px){.u26-brand small{display:none}.u26-header-actions{display:flex}.u26-header-actions span{display:none}.u26-db-head nav,.u26-filter-row,.u26-type-tabs{position:relative}.u26-driver-card{padding-left:92px!important}.u26-driver-image{width:70px}.am-graph-layout canvas{min-width:650px}.am-graph-layout>div:first-child{overflow-x:auto}.u26-overview>div{grid-template-columns:repeat(2,1fr);height:auto}.u26-overview strong{min-height:38px}.u26-metric-strip{grid-template-columns:1fr}.u26-board{min-width:430px}}
body.ui2026 .u26-live-options{display:grid!important;grid-template-columns:1fr 1fr;gap:5px;padding:8px!important;border-top:1px solid #25292c!important;background:#0b0e10!important}
body.ui2026 .u26-live-options h2{grid-column:1/-1;display:flex!important;font-size:9px!important;color:#999!important}
body.ui2026 .u26-live-options .am-check-row{margin:0!important;min-height:30px;padding:4px 6px;border:1px solid #242a2d;border-radius:3px;font-size:8px!important}
body.ui2026 .u26-live-options .am-unavailable-option{display:none!important}
body.ui2026 .u26-live-options input,body.ui2026 .u26-live-options select{margin:0!important;padding:3px!important;font-size:8px!important;height:24px!important}

/* UI2026 RELAYOUT — izbor drajvera iz leve kolone premešten iznad topologije. */
body.ui2026 .am-dashboard{
  grid-template-columns:minmax(720px,1fr) minmax(340px,430px)!important;
  align-items:start;
}
body.ui2026 .am-center-column{min-width:0}
body.ui2026 .u26-selection-panel{
  position:static!important;
  top:auto!important;
  width:100%!important;
  max-height:none!important;
  margin:0!important;
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:0;
  overflow:visible!important;
  border:1px solid #252b2f!important;
  border-radius:5px!important;
  background:#0c0f11!important;
}
body.ui2026 .u26-selection-panel>.u26-db-head{
  grid-column:1/-1;
  border-bottom:1px solid #252b2f;
}
body.ui2026 .u26-selection-panel>.am-driver-control{
  min-width:0;
  border-right:1px solid #252b2f!important;
  border-bottom:0!important;
  padding:10px 12px!important;
}
body.ui2026 .u26-selection-panel>.am-driver-control:nth-of-type(3){border-right:0!important}
body.ui2026 .u26-selection-panel>.am-action-stack,
body.ui2026 .u26-selection-panel>.u26-data-status{
  grid-column:1/-1;
}
body.ui2026 .u26-selection-panel>.am-action-stack{
  display:flex!important;
  gap:8px;
  padding:8px 10px!important;
  border-top:1px solid #252b2f;
}
body.ui2026 .u26-selection-panel>.am-action-stack button{flex:1}
body.ui2026 .u26-selection-panel>.u26-data-status{
  display:grid!important;
  grid-template-columns:auto repeat(4,minmax(0,1fr)) auto;
  align-items:center;
  gap:8px;
  padding:7px 10px!important;
  border-top:1px solid #252b2f;
}
body.ui2026 .u26-selection-panel>.u26-data-status h3{margin:0;white-space:nowrap}
body.ui2026 .u26-selection-panel>.u26-data-status p{margin:0;min-width:0}
body.ui2026 .u26-selection-panel>.u26-data-status>div{margin:0!important;border:0!important;padding:0!important}
body.ui2026 .u26-selection-panel .u26-driver-card{
  padding-left:96px!important;
  min-height:126px;
}
body.ui2026 .u26-selection-panel .u26-driver-image{
  left:12px!important;
  top:42px!important;
  width:72px!important;
  height:64px!important;
}
body.ui2026 .u26-selection-panel .am-driver-values{grid-template-columns:1fr 1fr!important}
body.ui2026 .u26-selection-panel + .am-schematic-card{margin-top:0}

@media(max-width:1380px){
  body.ui2026 .am-dashboard{grid-template-columns:minmax(620px,1fr) 350px!important}
  body.ui2026 .u26-selection-panel{grid-template-columns:repeat(3,minmax(180px,1fr));overflow-x:auto!important}
  body.ui2026 .u26-selection-panel>.u26-db-head,
  body.ui2026 .u26-selection-panel>.am-action-stack,
  body.ui2026 .u26-selection-panel>.u26-data-status{min-width:720px}
}
@media(max-width:1180px){
  body.ui2026 .am-dashboard{grid-template-columns:1fr!important}
  body.ui2026 .am-right-column{grid-column:1!important}
}
@media(max-width:820px){
  body.ui2026 .u26-selection-panel{grid-template-columns:1fr!important;overflow:visible!important}
  body.ui2026 .u26-selection-panel>.u26-db-head,
  body.ui2026 .u26-selection-panel>.am-action-stack,
  body.ui2026 .u26-selection-panel>.u26-data-status{min-width:0}
  body.ui2026 .u26-selection-panel>.am-driver-control{border-right:0!important;border-bottom:1px solid #252b2f!important}
  body.ui2026 .u26-selection-panel>.u26-data-status{grid-template-columns:1fr 1fr!important}
  body.ui2026 .u26-selection-panel>.u26-data-status h3,
  body.ui2026 .u26-selection-panel>.u26-data-status>div{grid-column:1/-1}
}

/* UI2026 NORMALIZED LAYOUT — compact, usable desktop and fluid reduced windows. */
body.ui2026{overflow-x:hidden!important}
body.ui2026 .am-dashboard{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 380px!important;
  gap:10px!important;
  padding:10px!important;
  align-items:start!important;
}
body.ui2026 .am-center-column{min-width:0!important;display:flex!important;flex-direction:column!important;gap:10px!important}
body.ui2026 .am-right-column{min-width:0!important;width:auto!important;position:sticky!important;top:76px!important;max-height:calc(100vh - 86px)!important;overflow:auto!important;align-self:start!important;scrollbar-width:thin}
body.ui2026 .u26-config{order:0!important}
body.ui2026 .u26-selection-panel{order:1!important}
body.ui2026 .am-schematic-card{order:2!important}
body.ui2026 .am-graph-card{order:3!important}

/* Compact driver selector: no giant pseudo-database block. */
body.ui2026 .u26-selection-panel{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:8px!important;
  padding:8px!important;
  overflow:visible!important;
  background:#0b0e10!important;
  border:1px solid #252b2f!important;
  border-radius:5px!important;
}
body.ui2026 .u26-selection-panel>.u26-db-head{
  grid-column:1/-1!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  min-height:34px!important;
  padding:0 4px 6px!important;
  border:0!important;
  background:transparent!important;
}
body.ui2026 .u26-db-head>div{width:100%!important;display:flex!important;align-items:center!important;justify-content:space-between!important}
body.ui2026 .u26-db-head>div b{font-size:11px!important;color:#e4e7e9!important}
body.ui2026 .u26-db-head nav,
body.ui2026 .u26-db-head .u26-search,
body.ui2026 .u26-db-head .u26-filter-row,
body.ui2026 .u26-db-head .u26-type-tabs,
body.ui2026 .u26-db-head .u26-list-head{display:none!important}
body.ui2026 .u26-selection-panel>.am-driver-control{
  min-width:0!important;
  min-height:166px!important;
  padding:10px 10px 10px 88px!important;
  border:1px solid #252b2f!important;
  border-radius:4px!important;
  background:#0e1215!important;
  overflow:hidden!important;
}
body.ui2026 .u26-selection-panel .u26-driver-image{
  left:10px!important;top:42px!important;width:66px!important;height:66px!important;
  display:grid!important;place-items:center!important;background:#101820!important;border:1px solid #21303a!important;border-radius:7px!important
}
body.ui2026 .u26-selection-panel .u26-driver-image img{max-width:62px!important;max-height:62px!important}
body.ui2026 .u26-selection-panel .am-driver-control h2{font-size:10px!important;margin:0 0 8px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.ui2026 .u26-selection-panel .driver-picker-shell{display:block!important}
body.ui2026 .u26-selection-panel .driver-picker-image{display:none!important}
body.ui2026 .u26-selection-panel .driver-picker-grid{display:grid!important;grid-template-columns:1fr!important;gap:6px!important}
body.ui2026 .u26-selection-panel .driver-picker-grid label{font-size:8px!important;margin:0!important}
body.ui2026 .u26-selection-panel input,
body.ui2026 .u26-selection-panel select{height:32px!important;min-height:32px!important;font-size:11px!important;padding:4px 7px!important}
body.ui2026 .u26-selection-panel .driver-picker-facts{margin-top:6px!important;padding:6px 7px!important;min-height:37px!important;font-size:8px!important;line-height:1.25!important;overflow:hidden!important}
body.ui2026 .u26-selection-panel .am-driver-values{display:none!important}
body.ui2026 .u26-selection-panel>.am-action-stack{
  grid-column:1/3!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;padding:0!important;border:0!important
}
body.ui2026 .u26-selection-panel>.am-action-stack button{height:38px!important;margin:0!important}
body.ui2026 .u26-selection-panel>.u26-data-status{
  grid-column:3/4!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;padding:0 6px!important;border:0!important;min-height:38px!important
}
body.ui2026 .u26-data-status h3{display:none!important}
body.ui2026 .u26-data-status p{display:none!important}
body.ui2026 .u26-data-status>div{display:flex!important;align-items:center!important;gap:7px!important;border:0!important;padding:0!important;margin:0!important;white-space:nowrap!important}
body.ui2026 .u26-data-status>div span{font-size:8px!important;color:#8b949a!important}
body.ui2026 .u26-data-status>div b{font-size:15px!important;color:#fff!important}

/* Keep topology and plots fully visible without uncontrolled empty canvas. */
body.ui2026 .am-schematic-card{min-width:0!important;margin:0!important;padding:8px!important}
body.ui2026 .am-schematic{height:auto!important;min-height:320px!important;max-height:500px!important;overflow:auto!important}
body.ui2026 .am-schematic svg{display:block!important;width:100%!important;height:auto!important;min-width:760px!important;max-width:none!important}
body.ui2026 .am-graph-card{min-width:0!important;margin:0!important}
body.ui2026 .am-graph-layout{min-width:0!important}
body.ui2026 .am-graph-layout canvas{max-width:100%!important}
body.ui2026 .u26-metric-strip{overflow-x:auto!important}

/* Right rail must remain usable, never become a black overlay. */
body.ui2026 .am-right-column>*{width:100%!important;box-sizing:border-box!important}
body.ui2026 .u26-overview{position:static!important}
body.ui2026 .am-components-panel{max-height:none!important;overflow:visible!important}
body.ui2026 .u26-pcb-preview{min-height:310px!important;overflow:hidden!important}
body.ui2026 .u26-board{height:210px!important;min-width:0!important}
body.ui2026 .realtime-engine-status{position:absolute!important;right:12px!important;top:4px!important;pointer-events:none!important}

@media(max-width:1350px){
  body.ui2026 .am-dashboard{grid-template-columns:minmax(0,1fr) 330px!important}
  body.ui2026 .u26-selection-panel{grid-template-columns:repeat(3,minmax(210px,1fr))!important;overflow-x:auto!important}
  body.ui2026 .u26-selection-panel>.u26-db-head{min-width:680px!important}
  body.ui2026 .u26-selection-panel>.am-action-stack{grid-column:1/3!important}
  body.ui2026 .u26-selection-panel>.u26-data-status{grid-column:3/4!important}
}
@media(max-width:1050px){
  body.ui2026 .am-dashboard{grid-template-columns:1fr!important}
  body.ui2026 .am-right-column{position:static!important;top:auto!important;max-height:none!important;overflow:visible!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important}
  body.ui2026 .u26-overview{grid-column:1/-1!important}
  body.ui2026 .u26-selection-panel{grid-template-columns:repeat(3,minmax(200px,1fr))!important}
}
@media(max-width:760px){
  body.ui2026 .am-dashboard{padding:6px!important;gap:7px!important}
  body.ui2026 .u26-selection-panel{grid-template-columns:1fr!important;overflow:visible!important}
  body.ui2026 .u26-selection-panel>.u26-db-head{min-width:0!important}
  body.ui2026 .u26-selection-panel>.am-driver-control{padding-left:88px!important}
  body.ui2026 .u26-selection-panel>.am-action-stack,
  body.ui2026 .u26-selection-panel>.u26-data-status{grid-column:1!important}
  body.ui2026 .am-right-column{grid-template-columns:1fr!important}
  body.ui2026 .u26-overview{grid-column:auto!important}
  body.ui2026 .am-schematic{min-height:0!important;max-height:none!important}
  body.ui2026 .am-schematic svg{width:900px!important;min-width:900px!important}
}

/* UI2026 usability correction — no clipped functions, no internal layout scrollbars. */
body.ui2026 .am-topbar{
  position:sticky!important;top:0!important;z-index:1000!important;height:auto!important;min-height:78px!important;
  padding:8px 14px!important;display:grid!important;
  grid-template-columns:minmax(260px,1fr) 210px minmax(240px,.8fr) 120px 170px!important;
  grid-template-areas:"brand tools project engine live" "nav nav nav nav nav"!important;
  gap:6px 12px!important;align-items:center!important;
}
body.ui2026 .u26-brand{grid-area:brand}.u26-tools{grid-area:tools}.u26-project{grid-area:project}.u26-engine{grid-area:engine}.u26-live{grid-area:live}
body.ui2026 .u26-nav-host{grid-area:nav;display:flex;align-items:center;justify-content:space-between;min-width:0;border-top:1px solid #202529;padding-top:5px}
body.ui2026 .u26-nav-host .am-nav{display:flex!important;flex-wrap:wrap!important;gap:4px!important;min-width:0!important}
body.ui2026 .u26-nav-host .am-nav button,body.ui2026 .u26-nav-host .am-nav a{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:28px!important;padding:5px 10px!important;font-size:9px!important;white-space:nowrap!important}
body.ui2026 .u26-nav-host .am-top-actions{display:flex!important;position:static!important;margin-left:auto!important}

body.ui2026 .am-dashboard{grid-template-columns:minmax(0,1fr) 360px!important;gap:8px!important;padding:8px!important}
body.ui2026 .am-right-column{position:static!important;top:auto!important;max-height:none!important;overflow:visible!important;align-self:start!important}
body.ui2026 .am-right-column,.body.ui2026 .am-center-column{min-width:0!important}
body.ui2026 .am-components-panel{overflow:hidden!important}
body.ui2026 .am-components-list,body.ui2026 .am-components-table{overflow:visible!important;max-height:none!important}
body.ui2026 .u26-branch-controls>div{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px!important}
body.ui2026 .u26-branch-controls button{min-width:0!important;padding:6px 3px!important;font-size:8px!important;white-space:normal!important}
body.ui2026 .u26-branch-controls section{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important;overflow:visible!important}
body.ui2026 .u26-branch-controls section label{min-width:0!important;white-space:normal!important}
body.ui2026 .u26-pcb-preview{display:block!important;min-height:280px!important}

body.ui2026 .u26-config{height:auto!important;min-height:78px!important;grid-template-columns:minmax(0,1fr) 220px!important}
body.ui2026 .u26-config-controls{display:flex!important;flex-wrap:wrap!important;overflow:visible!important;align-content:center!important}
body.ui2026 .u26-config-controls .am-control-section{min-width:max-content!important}
body.ui2026 .u26-config-controls input[type=number]{width:90px!important;min-width:90px!important;color:#fff!important;background:#101519!important}
body.ui2026 .u26-config-controls select{min-width:90px!important}

body.ui2026 .u26-selection-panel{grid-template-columns:repeat(3,minmax(0,1fr))!important;overflow:visible!important}
body.ui2026 .u26-selection-panel>.u26-db-head{min-width:0!important}
body.ui2026 .u26-selection-panel>.am-driver-control{min-width:0!important}

body.ui2026 .am-schematic-card{overflow:hidden!important}
body.ui2026 .am-schematic{
  width:100%!important;height:clamp(330px,34vw,510px)!important;min-height:0!important;max-height:none!important;
  overflow:hidden!important;display:flex!important;align-items:center!important;justify-content:center!important;background:#07131e!important
}
body.ui2026 .am-schematic svg{width:100%!important;height:100%!important;min-width:0!important;max-width:100%!important;display:block!important}
body.ui2026 .am-chips{overflow:visible!important;flex-wrap:wrap!important;white-space:normal!important}
body.ui2026 .am-graph-card,body.ui2026 .am-graph-layout{overflow:hidden!important;min-width:0!important}
body.ui2026 .u26-metric-strip{overflow:visible!important;grid-template-columns:repeat(7,minmax(0,1fr))!important}

@media(max-width:1450px){
 body.ui2026 .am-topbar{grid-template-columns:minmax(230px,1fr) 190px minmax(210px,.8fr) 105px 150px!important}
 body.ui2026 .am-dashboard{grid-template-columns:minmax(0,1fr) 330px!important}
 body.ui2026 .u26-selection-panel{grid-template-columns:repeat(3,minmax(0,1fr))!important;overflow:visible!important}
 body.ui2026 .u26-selection-panel>.u26-db-head{min-width:0!important}
 body.ui2026 .u26-project,.u26-engine,.u26-live{padding:6px 8px!important}
}
@media(max-width:1180px){
 body.ui2026 .am-topbar{grid-template-columns:1fr 200px 220px!important;grid-template-areas:"brand tools project" "engine live nav"!important}
 body.ui2026 .u26-nav-host{border-top:0!important;padding-top:0!important}
 body.ui2026 .am-dashboard{grid-template-columns:1fr!important}
 body.ui2026 .am-right-column{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
 body.ui2026 .u26-overview{grid-column:1/-1!important}
 body.ui2026 .am-schematic{height:clamp(320px,48vw,520px)!important}
}
@media(max-width:820px){
 body.ui2026 .am-topbar{position:static!important;grid-template-columns:1fr!important;grid-template-areas:"brand" "tools" "project" "engine" "live" "nav"!important}
 body.ui2026 .u26-tools{max-width:360px}.u26-nav-host{display:block!important}.u26-nav-host .am-nav{margin-bottom:5px!important}
 body.ui2026 .u26-selection-panel{grid-template-columns:1fr!important}
 body.ui2026 .u26-selection-panel>.am-action-stack,body.ui2026 .u26-selection-panel>.u26-data-status{grid-column:1!important}
 body.ui2026 .am-right-column{grid-template-columns:1fr!important}
 body.ui2026 .u26-overview{grid-column:auto!important}
 body.ui2026 .u26-config{grid-template-columns:1fr!important}.u26-config-meta{justify-content:flex-start!important}
 body.ui2026 .am-schematic{height:58vw!important;min-height:260px!important}
 body.ui2026 .u26-metric-strip{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* UI2026 final layout correction requested after annotated desktop review. */
body.ui2026 .u26-nav-host .am-nav button,
body.ui2026 .u26-nav-host .am-nav a{
  color:#9bc8ad!important;
  text-shadow:none!important;
  font-weight:700!important;
  opacity:1!important;
}
body.ui2026 .u26-nav-host .am-nav .active,
body.ui2026 .u26-nav-host .am-nav [aria-current="page"]{
  color:#e9fff2!important;
  background:#143126!important;
  border-color:#3e7f62!important;
}

/* Configuration stays in one compact row on desktop; no dead empty block. */
body.ui2026 .u26-config{
  display:grid!important;
  grid-template-columns:max-content minmax(0,1fr) max-content!important;
  grid-template-areas:"title title title" "controls filler meta"!important;
  column-gap:14px!important;
  row-gap:5px!important;
  min-height:0!important;
  padding:8px 12px!important;
}
body.ui2026 .u26-config-title{grid-area:title!important;margin:0!important}
body.ui2026 .u26-config-controls{
  grid-area:controls!important;
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  gap:6px!important;
  width:max-content!important;
  max-width:100%!important;
}
body.ui2026 .u26-config-controls .am-control-section{
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
  min-width:0!important;
  width:auto!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
}
body.ui2026 .u26-config-controls .am-frequency-row,
body.ui2026 .u26-config-controls .am-frequency-fields,
body.ui2026 .u26-config-controls .am-number-stack{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:5px!important;
}
body.ui2026 .u26-config-controls input[type=number]{width:86px!important;min-width:86px!important;height:36px!important}
body.ui2026 .u26-config-controls select{height:36px!important;min-width:92px!important}
body.ui2026 .u26-config-meta{
  grid-area:meta!important;
  justify-self:end!important;
  align-self:center!important;
  display:flex!important;
  gap:22px!important;
  width:max-content!important;
  padding:0!important;
}

/* The right rail is compact and ends with its content instead of stretching. */
body.ui2026 .am-dashboard{grid-template-columns:minmax(0,1fr) 330px!important}
body.ui2026 .am-right-column{align-content:start!important;grid-auto-rows:max-content!important}
body.ui2026 .u26-overview{min-height:0!important}
body.ui2026 .am-components-panel{height:auto!important;min-height:0!important;padding-bottom:8px!important}
body.ui2026 .am-components-panel h2{margin-bottom:5px!important}
body.ui2026 .u26-component-actions{margin-bottom:5px!important}
body.ui2026 .am-components-list,
body.ui2026 .am-components-table{font-size:10px!important;line-height:1.15!important}
body.ui2026 .am-components-table td,
body.ui2026 .am-components-table th{padding:5px 6px!important}
body.ui2026 .u26-branch-controls{padding-top:6px!important;margin-top:4px!important}
body.ui2026 .u26-branch-controls section{gap:4px!important}
body.ui2026 .u26-branch-controls section label{padding:4px!important;font-size:8px!important}

/* PCB preview: smaller, clearer, top/bottom switch, and believable component rendering. */
body.ui2026 .u26-pcb-preview{min-height:0!important;height:auto!important;padding-bottom:6px!important}
body.ui2026 .u26-pcb-toolbar{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:5px!important;font-size:8px!important}
body.ui2026 .u26-view-switch{display:flex!important;align-items:center!important;gap:3px!important}
body.ui2026 .u26-view-switch button{
  border:1px solid #38444d!important;background:#0e151a!important;color:#aebbc4!important;
  border-radius:3px!important;padding:3px 5px!important;font-size:8px!important
}
body.ui2026 .u26-view-switch button.active{border-color:#d9a900!important;color:#fff!important;background:#2b240a!important}
body.ui2026 .u26-board{
  height:176px!important;min-height:176px!important;margin:5px 7px!important;
  background:linear-gradient(145deg,#174c29,#0d341c)!important;
  border:1px solid #4c765a!important;box-shadow:inset 0 0 22px #061d10,0 2px 7px #000!important;
}
body.ui2026 .u26-board .coil{
  border:4px solid #a74f12!important;
  box-shadow:0 0 0 3px #d88427,inset 0 0 0 4px #401c08,0 4px 8px #0008!important;
  background:repeating-radial-gradient(circle,#1c0c04 0 7px,#d4721e 8px 10px,#5e2808 11px 13px)!important;
}
body.ui2026 .u26-board .coil span{display:block;width:38%;height:38%;border-radius:50%;background:#15241b;position:absolute;inset:31%;box-shadow:inset 0 0 7px #000}
body.ui2026 .u26-board .part{
  border-radius:3px!important;border:1px solid #c4c8c8!important;
  box-shadow:0 4px 7px #0008,inset 0 1px #ffffff70!important;
  text-shadow:none!important;font-weight:700!important
}
body.ui2026 .u26-board .part.cap{background:linear-gradient(135deg,#f3cf53,#b9820b)!important;color:#171100!important}
body.ui2026 .u26-board .part.resistor{background:linear-gradient(135deg,#f4f4ed,#b7b9b2)!important;color:#111!important}
body.ui2026 .u26-board .term{box-shadow:0 3px 6px #0009!important}
body.ui2026 .u26-copper-traces{display:none;position:absolute;inset:12px;z-index:1}
body.ui2026 .u26-board.bottom-view{background:#152518!important}
body.ui2026 .u26-board.bottom-view>div:not(.u26-copper-traces),
body.ui2026 .u26-board.bottom-view>.coil,
body.ui2026 .u26-board.bottom-view>.part{opacity:.13!important;filter:grayscale(1)!important}
body.ui2026 .u26-board.bottom-view .u26-copper-traces{display:block!important;opacity:1!important;filter:none!important}
body.ui2026 .u26-copper-traces i{position:absolute;height:5px;background:linear-gradient(#f0a13a,#9c4b10);border-radius:4px;box-shadow:0 0 0 1px #5f2a08,0 0 5px #e57a1d80;transform-origin:left center}
body.ui2026 .u26-copper-traces i:nth-child(1){left:5%;top:19%;width:80%;transform:rotate(1deg)}
body.ui2026 .u26-copper-traces i:nth-child(2){left:7%;top:49%;width:72%;transform:rotate(-2deg)}
body.ui2026 .u26-copper-traces i:nth-child(3){left:8%;top:79%;width:76%;transform:rotate(1deg)}
body.ui2026 .u26-copper-traces i:nth-child(4){left:28%;top:18%;width:31%;transform:rotate(90deg)}
body.ui2026 .u26-copper-traces i:nth-child(5){left:54%;top:48%;width:28%;transform:rotate(90deg)}
body.ui2026 .u26-copper-traces i:nth-child(6){left:76%;top:18%;width:61%;transform:rotate(90deg)}
body.ui2026 .u26-pcb-foot{padding:2px 7px!important;font-size:8px!important}

/* Keep the response/analysis zone fully visible and unchanged. */
body.ui2026 .am-graph-card{display:block!important;visibility:visible!important;min-height:0!important}
body.ui2026 .am-graph-layout{display:grid!important;visibility:visible!important}

@media(max-width:1180px){
  body.ui2026 .u26-config{grid-template-columns:1fr!important;grid-template-areas:"title" "controls" "meta"!important}
  body.ui2026 .u26-config-controls{flex-wrap:wrap!important;width:100%!important}
  body.ui2026 .u26-config-meta{justify-self:start!important}
  body.ui2026 .am-dashboard{grid-template-columns:1fr!important}
  body.ui2026 .am-right-column{grid-template-columns:1fr 1fr!important}
}
@media(max-width:760px){
  body.ui2026 .u26-config-controls{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.ui2026 .u26-config-controls .am-control-section{width:100%!important;flex-wrap:wrap!important}
  body.ui2026 .u26-config-controls input[type=number],body.ui2026 .u26-config-controls select{width:100%!important;min-width:0!important}
  body.ui2026 .am-right-column{grid-template-columns:1fr!important}
}

/* UI2026 LOCKED PASS — final spatial and PCB corrections only. */
body.ui2026 .u26-nav-host .am-nav button,
body.ui2026 .u26-nav-host .am-nav a{color:#e4ece7!important;background:transparent!important;text-shadow:none!important;opacity:1!important}
body.ui2026 .u26-nav-host .am-nav .active,
body.ui2026 .u26-nav-host .am-nav [aria-current="page"]{color:#fff!important;background:#153626!important;border-color:#4a8e69!important}

body.ui2026 .u26-config{grid-template-columns:minmax(0,1fr) max-content!important;grid-template-areas:"title title" "controls meta"!important}
body.ui2026 .u26-config-controls{width:100%!important;max-width:none!important;display:flex!important;flex-wrap:wrap!important;gap:6px!important}
body.ui2026 .u26-config-controls .am-control-section{flex:0 0 auto!important}
body.ui2026 .u26-config-meta{min-width:170px!important}

body.ui2026 .am-dashboard{grid-template-columns:minmax(0,1fr) 350px!important;align-items:start!important}
body.ui2026 .am-right-column{width:350px!important;min-width:350px!important;max-width:350px!important;overflow:visible!important}
body.ui2026 .am-components-panel{overflow:hidden!important}
body.ui2026 .u26-branch-controls section{overflow:hidden!important}

body.ui2026 .u26-pcb-preview{width:100%!important;overflow:hidden!important;padding-bottom:0!important}
body.ui2026 .u26-pcb-toolbar{height:auto!important;min-height:34px!important;padding:5px 8px!important;flex-wrap:wrap!important}
body.ui2026 .u26-board{box-sizing:border-box!important;width:calc(100% - 12px)!important;height:238px!important;min-height:238px!important;min-width:0!important;margin:6px!important;overflow:hidden!important;isolation:isolate!important}
body.ui2026 .u26-board:before,body.ui2026 .u26-board:after{display:none!important}
body.ui2026 .u26-netmap{position:absolute;inset:10px;z-index:1;width:calc(100% - 20px);height:calc(100% - 20px);overflow:visible}
body.ui2026 .u26-netmap .net{fill:none;stroke-width:5;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 2px #000)}
body.ui2026 .u26-netmap .lf{stroke:#2d9cff}.u26-netmap .mid{stroke:#32d45c}.u26-netmap .hf{stroke:#f3bd00}.u26-netmap .common{stroke:#e7e7df}.u26-netmap .branch{stroke:#cf8740;stroke-width:3}
body.ui2026 .u26-netmap circle{fill:#f6f1d7;stroke:#1b2427;stroke-width:2}
body.ui2026 .u26-board .term{display:grid!important;gap:2px!important;padding:5px 6px!important;line-height:1.2!important;background:#0e1512e8!important;z-index:5!important}
body.ui2026 .u26-board .term b{font-size:7px;color:#9eb0a5}.u26-board .term span{font-size:8px;font-weight:800;white-space:nowrap}
body.ui2026 .u26-board .term.in{left:8px!important;top:86px!important}.u26-board .term.out{right:7px!important;top:50px!important}
body.ui2026 .u26-board .term.out .lf{color:#2d9cff}.u26-board .term.out .mid{color:#32d45c}.u26-board .term.out .hf{color:#f3bd00}
body.ui2026 .u26-board .coil,body.ui2026 .u26-board .part{z-index:3!important;transform:scale(.78)!important;transform-origin:center!important}
body.ui2026 .u26-board .coil small{position:absolute;left:50%;bottom:-18px;transform:translateX(-50%);font-size:8px;color:#f2f2e8;font-weight:800}
body.ui2026 .u26-board .coil.c1{left:60px!important;top:20px!important}.u26-board .coil.c2{left:165px!important;top:91px!important}
body.ui2026 .u26-board .p1{left:220px!important;top:18px!important}.u26-board .p2{left:78px!important;top:92px!important}.u26-board .p3{left:245px!important;top:93px!important}.u26-board .p4{left:78px!important;bottom:8px!important}.u26-board .p5{left:178px!important;bottom:8px!important}.u26-board .p6{left:266px!important;bottom:8px!important}
body.ui2026 .u26-net-legend{position:absolute;left:50%;bottom:4px;transform:translateX(-50%);z-index:6;display:flex;gap:8px;padding:3px 7px;border-radius:10px;background:#07100cbb;font-size:7px;font-weight:800}
body.ui2026 .u26-net-legend .lf{color:#2d9cff}.u26-net-legend .mid{color:#32d45c}.u26-net-legend .hf{color:#f3bd00}.u26-net-legend .common{color:#eee}
body.ui2026 .u26-pcb-foot{height:auto!important;min-height:34px!important;display:grid!important;grid-template-columns:1fr auto auto!important;gap:6px!important;padding:5px 8px!important;white-space:nowrap!important}
body.ui2026 .u26-pcb-foot button{min-width:0!important}
body.ui2026 .u26-board.bottom-view>div:not(.u26-net-legend),body.ui2026 .u26-board.bottom-view>.coil,body.ui2026 .u26-board.bottom-view>.part{opacity:.08!important;filter:grayscale(1)!important}
body.ui2026 .u26-board.bottom-view .u26-netmap{z-index:8!important;opacity:1!important;filter:none!important}
body.ui2026 .u26-board.bottom-view .u26-netmap .net{stroke-width:9!important}
body.ui2026 .u26-board.bottom-view .u26-netmap .branch{stroke-width:6!important}
body.ui2026 .u26-board.bottom-view .u26-net-legend{z-index:9!important;opacity:1!important;filter:none!important}

body.ui2026 .am-graph-layout{grid-template-columns:minmax(0,1fr) 180px!important;align-items:stretch!important}
body.ui2026 .am-graph-details{min-width:0!important;overflow:visible!important;display:flex!important;flex-direction:column!important;gap:6px!important;padding:6px!important}
body.ui2026 .am-graph-details .graph-detail,body.ui2026 .am-graph-details .graph-note{box-sizing:border-box!important;width:100%!important;min-width:0!important;overflow-wrap:anywhere!important;word-break:normal!important;height:auto!important;min-height:0!important}
body.ui2026 .am-graph-details .graph-note{display:block!important;color:#26343c!important;background:#fff4e3!important;padding:10px!important;border-left:3px solid #e69a27!important;line-height:1.4!important}

@media(max-width:1180px){
 body.ui2026 .am-dashboard{grid-template-columns:1fr!important}
 body.ui2026 .am-right-column{width:100%!important;min-width:0!important;max-width:none!important;grid-template-columns:1fr 1fr!important}
 body.ui2026 .u26-pcb-preview{grid-column:auto!important}
}
@media(max-width:760px){
 body.ui2026 .u26-config{grid-template-columns:1fr!important;grid-template-areas:"title" "controls" "meta"!important}
 body.ui2026 .u26-config-meta{min-width:0!important}
 body.ui2026 .am-right-column{grid-template-columns:1fr!important}
 body.ui2026 .u26-board{height:220px!important;min-height:220px!important}
 body.ui2026 .am-graph-layout{grid-template-columns:1fr!important}
 body.ui2026 .am-graph-details{display:grid!important;grid-template-columns:1fr 1fr!important}
}
@media(max-width:500px){body.ui2026 .am-graph-details{grid-template-columns:1fr!important}}

/* FINAL UI CLEANUP — no fabricated metrics, no PCB presentation, mobile theme parity. */
body.ui2026 .u26-overview,
body.ui2026 .u26-pcb-preview,
body.ui2026 .phase4-pcb-cta,
body.ui2026 .board-modal,
body.ui2026 .pcb-modal,
body.ui2026 .u26-component-actions,
body.ui2026 .u26-branch-controls,
body.ui2026 .u26-metric-strip,
body.ui2026 .u26-graph-tabs{display:none!important}

body.ui2026 .am-topbar{
  grid-template-columns:minmax(250px,1fr) auto auto minmax(180px,auto)!important;
  grid-template-areas:"brand tools project nav"!important;
  min-height:64px!important;
  height:auto!important;
}
body.ui2026 .u26-brand{grid-area:brand}.u26-tools{grid-area:tools}.u26-project{grid-area:project}.u26-nav-host{grid-area:nav}
body.ui2026 .u26-live{display:none!important}
body.ui2026 .u26-config{grid-template-columns:1fr!important;grid-template-areas:"title" "controls"!important;height:auto!important;min-height:74px!important}
body.ui2026 .u26-config-title{grid-area:title!important}
body.ui2026 .u26-config-controls{grid-area:controls!important;overflow:visible!important}
body.ui2026 .am-right-column{position:static!important;max-height:none!important;overflow:visible!important}
body.ui2026 .am-components-panel{margin:0!important}

/* Light theme must work identically on desktop and mobile. */
body.ui2026.light{background:#e8eef2!important;color:#17242c!important}
body.ui2026.light .amateur-workspace{background:#e8eef2!important;color:#17242c!important}
body.ui2026.light .am-topbar{background:#f7fafc!important;border-color:#c7d2d9!important;box-shadow:0 3px 12px #52606b22!important}
body.ui2026.light .u26-brand strong,
body.ui2026.light .u26-brand small,
body.ui2026.light .u26-project,
body.ui2026.light .u26-project small,
body.ui2026.light .u26-project b{color:#17242c!important}
body.ui2026.light .u26-tools button,
body.ui2026.light .u26-nav-host .am-nav button,
body.ui2026.light .u26-nav-host .am-nav a,
body.ui2026.light .u26-nav-host .am-icon-button{background:#fff!important;color:#20313b!important;border-color:#b8c7d0!important}
body.ui2026.light .u26-nav-host .am-nav .active,
body.ui2026.light .u26-nav-host .am-nav [aria-current="page"]{background:#e2f1e8!important;color:#174c30!important;border-color:#75a88a!important}
body.ui2026.light .am-panel,
body.ui2026.light .u26-config,
body.ui2026.light .am-left-panel{background:#f8fbfc!important;color:#17242c!important;border-color:#c2d0d7!important}
body.ui2026.light .u26-config-title,
body.ui2026.light .am-schematic-card>h2,
body.ui2026.light .am-components-panel>h2{background:#eef4f7!important;color:#17242c!important;border-color:#c7d3d9!important}
body.ui2026.light .u26-driver-card{background:#f8fbfc!important;border-color:#d2dde2!important}
body.ui2026.light .u26-driver-card h2{color:#20313b!important}
body.ui2026.light .u26-driver-card .driver-model-label select,
body.ui2026.light .u26-config-controls label,
body.ui2026.light .u26-config-controls button,
body.ui2026.light .u26-config-controls select,
body.ui2026.light .u26-config-controls input{background:#fff!important;color:#17242c!important;border-color:#b8c7d0!important}
body.ui2026.light .u26-driver-card .driver-picker-facts{background:#edf3f6!important;color:#304752!important}
body.ui2026.light .am-component-row{background:#fff!important;color:#17242c!important;border-color:#d4dee3!important}
body.ui2026.light .am-component-row span:nth-child(2),
body.ui2026.light .am-component-row span:nth-child(3){color:#304752!important}
body.ui2026.light .am-schematic{background:#f5f8f9!important}
body.ui2026.light .am-graph-layout canvas{background:#fff!important;border-color:#c7d3d9!important}
body.ui2026.light .am-graph-details .graph-detail{background:#f5f8fa!important;color:#20313b!important;border-color:#cbd7dd!important}

@media(max-width:760px){
  body.ui2026 .am-topbar{
    grid-template-columns:1fr!important;
    grid-template-areas:"brand" "tools" "project" "nav"!important;
    padding:10px!important;
    gap:8px!important;
  }
  body.ui2026 .u26-tools{width:100%!important;display:grid!important;grid-template-columns:repeat(4,1fr)!important;max-width:none!important}
  body.ui2026 .u26-tools button{min-width:0!important}
  body.ui2026 .u26-nav-host{width:100%!important}
  body.ui2026 .u26-nav-host .am-nav{display:flex!important;flex-wrap:wrap!important;gap:5px!important}
  body.ui2026 .u26-nav-host .am-nav button,
  body.ui2026 .u26-nav-host .am-nav a{flex:1 1 42%!important;min-width:0!important;text-align:center!important}
  body.ui2026 .u26-config-controls{display:grid!important;grid-template-columns:1fr 1fr!important;width:100%!important;padding:8px!important}
  body.ui2026 .u26-config-controls .am-control-section{width:100%!important;min-width:0!important}
  body.ui2026 .u26-config-controls label,
  body.ui2026 .u26-config-controls button,
  body.ui2026 .u26-config-controls select,
  body.ui2026 .u26-config-controls input[type=number]{width:100%!important;min-width:0!important}
  body.ui2026 .am-dashboard{padding:6px!important}
  body.ui2026 .am-schematic{height:auto!important;min-height:300px!important}
}

@media(max-width:480px){
  body.ui2026 .u26-config-controls{grid-template-columns:1fr!important}
  body.ui2026 .u26-nav-host .am-nav button,
  body.ui2026 .u26-nav-host .am-nav a{flex-basis:100%!important}
}

/* UI FIX 2 — realistične referentne slike tipova drajvera; nisu fotografije konkretnog izabranog modela. */
body.ui2026 .u26-driver-image{overflow:hidden;border:1px solid #31373a;border-radius:5px;background:#b8b5aa;}
body.ui2026 .u26-driver-image img{width:100%;height:100%;object-fit:cover;object-position:center;filter:none!important;}
body.ui2026.light .u26-driver-image{border-color:#c7d0d5;background:#d8d6cc;}
.driver-photo img[src*="assets/drivers/"]{object-fit:cover;object-position:center;}


/* UI FIX 3 — light schematic parity + remove empty right-column ghost + realistic driver references. */
body.ui2026 .am-right-column::before,body.ui2026 .am-right-column::after{content:none!important;display:none!important}
body.ui2026 .am-right-column{background:transparent!important;box-shadow:none!important;border-radius:0!important}
body.ui2026.light .am-schematic{background:#f5f8f9!important}
body.ui2026.light .am-schematic svg>rect:first-of-type{fill:#f5f8f9!important}
body.ui2026.light .am-schematic svg .p4-title,
body.ui2026.light .am-schematic svg .p4-name,
body.ui2026.light .am-schematic svg .p4-driver-name,
body.ui2026.light .am-schematic svg .p4-terminal,
body.ui2026.light .am-schematic svg .p4-chip{fill:#17242c!important}
body.ui2026.light .am-schematic svg .p4-subtitle,
body.ui2026.light .am-schematic svg .p4-branch-sub,
body.ui2026.light .am-schematic svg .p4-note-small,
body.ui2026.light .am-schematic svg .p4-foot{fill:#607783!important}
body.ui2026.light .am-schematic svg .p4-label{fill:#ffffff!important;stroke:#9db2bf!important}
body.ui2026.light .am-schematic svg .p4-driver-frame{fill:#dedbd1!important;stroke:#8196a3!important}
body.ui2026.light .am-schematic svg g>rect[rx="15"]{fill:#eef4f7!important;stroke:#8ea8b7!important}
body.ui2026.light .am-schematic svg text[fill="#fff"],
body.ui2026.light .am-schematic svg text[fill="#ffffff"]{fill:#17242c!important}
body.ui2026.light .am-schematic svg .label-box{fill:#ffffff!important;stroke:#9db2bf!important}
body.ui2026.light .am-schematic svg .part-name,
body.ui2026.light .am-schematic svg .speaker-label,
body.ui2026.light .am-schematic svg .terminal{fill:#17242c!important}
body.ui2026.light .am-schematic svg .topology-name,
body.ui2026.light .am-schematic svg .note{fill:#607783!important}


/* UI FIX 5 — završna korekcija: bez ghost panela, light šema, kompaktan prikaz drajvera. */
body.ui2026 .am-right-column::before,
body.ui2026 .am-right-column::after{content:none!important;display:none!important}
body.ui2026 .am-right-column{background:transparent!important;box-shadow:none!important;border-radius:0!important}
body.ui2026 .component-inspector:not(.open){display:none!important}
body.ui2026 .u26-driver-image{overflow:hidden!important}
body.ui2026 .u26-driver-image img{object-fit:cover!important;object-position:center!important}

body.ui2026.light .am-schematic{background:#f7fafb!important;background-image:none!important}
body.ui2026.light .am-schematic svg>rect:first-of-type{fill:#f7fafb!important}
body.ui2026.light .am-schematic svg .p4-title,
body.ui2026.light .am-schematic svg .p4-name,
body.ui2026.light .am-schematic svg .p4-driver-name,
body.ui2026.light .am-schematic svg .p4-terminal,
body.ui2026.light .am-schematic svg .p4-chip{fill:#17242c!important}
body.ui2026.light .am-schematic svg .p4-subtitle,
body.ui2026.light .am-schematic svg .p4-branch-sub,
body.ui2026.light .am-schematic svg .p4-note-small,
body.ui2026.light .am-schematic svg .p4-foot,
body.ui2026.light .am-schematic svg .p4-meta{fill:#607783!important}
body.ui2026.light .am-schematic svg .p4-label{fill:#fff!important;stroke:#8fa8b6!important}
body.ui2026.light .am-schematic svg .p4-driver-frame{fill:#e7e4da!important;stroke:#839aa7!important}
body.ui2026.light .am-schematic svg g>rect[rx="15"]{fill:#eef4f7!important;stroke:#8ea8b7!important}

/* Stvarna štampa: samo korisni rezultat, bez aplikacionog menija i praznih površina. */
.u26-print-summary{display:none}
@media print{
  @page{size:A4 portrait;margin:10mm}
  html,body{background:#fff!important;color:#111!important;height:auto!important;overflow:visible!important}
  body *{box-shadow:none!important}
  body.ui2026 .realtime-engine-status,
  body.ui2026 .am-topbar,
  body.ui2026 .u26-config,
  body.ui2026 .u26-selection-panel,
  body.ui2026 .am-status-bar,
  body.ui2026 .am-bottom-status,
  body.ui2026 .beginner-footer,
  body.ui2026 .app-footer,
  body.ui2026 .driver-db-modal,
  body.ui2026 .component-inspector{display:none!important}

  body.ui2026 .amateur-workspace{display:block!important;background:#fff!important;color:#111!important;min-height:0!important}
  body.ui2026 .am-dashboard{display:block!important;max-width:none!important;margin:0!important;padding:0!important}
  body.ui2026 .am-center-column{display:block!important;width:100%!important}
  body.ui2026 .am-right-column{display:block!important;position:static!important;max-height:none!important;overflow:visible!important;width:100%!important;margin-top:7mm!important}
  body.ui2026 .u26-print-summary{display:block!important;margin:0 0 6mm!important;padding:0 0 4mm!important;border-bottom:1px solid #777!important}
  body.ui2026 .u26-print-summary h1{margin:0 0 2mm!important;font:700 18pt/1.2 Arial,sans-serif!important;color:#111!important}
  body.ui2026 .u26-print-summary p{margin:1mm 0!important;font:10pt/1.35 Arial,sans-serif!important;color:#222!important}

  body.ui2026 .am-schematic-card,
  body.ui2026 .am-graph-card,
  body.ui2026 .am-components-panel{display:block!important;background:#fff!important;color:#111!important;border:1px solid #aaa!important;border-radius:0!important;margin:0 0 6mm!important;overflow:visible!important;break-inside:avoid!important}
  body.ui2026 .am-schematic-card>h2,
  body.ui2026 .am-graph-card>h2,
  body.ui2026 .am-components-panel>h2{display:block!important;background:#fff!important;color:#111!important;border-bottom:1px solid #aaa!important;padding:3mm!important;font:700 11pt Arial,sans-serif!important}
  body.ui2026 .am-schematic{display:block!important;height:auto!important;min-height:0!important;overflow:visible!important;background:#fff!important;background-image:none!important;padding:0!important}
  body.ui2026 .am-schematic svg{display:block!important;width:100%!important;height:auto!important;min-width:0!important;max-width:100%!important}
  body.ui2026 .am-schematic svg>rect:first-of-type{fill:#fff!important}
  body.ui2026 .am-schematic svg .p4-title,
  body.ui2026 .am-schematic svg .p4-name,
  body.ui2026 .am-schematic svg .p4-driver-name,
  body.ui2026 .am-schematic svg .p4-terminal,
  body.ui2026 .am-schematic svg .p4-chip{fill:#111!important}
  body.ui2026 .am-schematic svg .p4-subtitle,
  body.ui2026 .am-schematic svg .p4-branch-sub,
  body.ui2026 .am-schematic svg .p4-note-small,
  body.ui2026 .am-schematic svg .p4-foot,
  body.ui2026 .am-schematic svg .p4-meta{fill:#444!important}
  body.ui2026 .am-schematic svg .p4-label{fill:#fff!important;stroke:#777!important}
  body.ui2026 .am-schematic svg g>rect[rx="15"]{fill:#fff!important;stroke:#777!important}
  body.ui2026 .am-chips{display:flex!important;background:#fff!important;color:#111!important;border-top:1px solid #aaa!important;padding:2mm!important}
  body.ui2026 .am-chips span{background:#fff!important;color:#111!important;border:1px solid #999!important}

  body.ui2026 .am-graph-card{break-before:page!important}
  body.ui2026 .am-graph-layout{display:block!important;padding:3mm!important}
  body.ui2026 .am-graph-details{display:grid!important;grid-template-columns:repeat(2,1fr)!important;background:#fff!important;color:#111!important;border:0!important}
  body.ui2026 .am-graph-details .graph-detail{background:#fff!important;color:#111!important;border-color:#bbb!important}
  body.ui2026 .am-graph-legend{color:#111!important}

  body.ui2026 .am-components-head,
  body.ui2026 .am-component-row{display:grid!important;grid-template-columns:22mm 32mm 1fr!important;background:#fff!important;color:#111!important;border-color:#bbb!important}
  body.ui2026 .am-component-row span:nth-child(2),
  body.ui2026 .am-component-row span:nth-child(3){color:#111!important}
  body.ui2026 .am-sensitivity-warning{display:none!important}
}

/* =========================================================
   UI2026 REBUILD — TRUE UI, desktop first
   Visual shell rebuilt from scratch. Existing engine/DB DOM IDs remain.
   ========================================================= */
.u26-rebuild{background:#edf2f5!important;color:#13283a!important;min-width:1180px}
.u26-rebuild #amateurWorkspace{display:block!important;background:#edf2f5!important;min-height:100vh}
.u26-rebuild .u26-legacy-hidden,.u26-rebuild .u26-bottom-hidden{display:none!important}
.u26-rebuild .u26-shell{display:grid;grid-template-columns:230px minmax(0,1fr);min-height:100vh}
.u26-rebuild .u26-sidebar{position:sticky;top:0;height:100vh;background:linear-gradient(180deg,#07131e,#0b1d2c);color:#fff;padding:22px 16px;box-sizing:border-box;display:flex;flex-direction:column;gap:20px;z-index:20}
.u26-rebuild .u26-side-brand,.u26-rebuild .u26-title{display:flex;align-items:center;gap:12px}
.u26-rebuild .u26-logo-mark{font-size:34px;line-height:1;color:#7bdc35;font-weight:900;transform:rotate(-8deg);display:inline-block}
.u26-rebuild .u26-side-brand strong{font-size:17px;letter-spacing:.3px}.u26-rebuild .u26-side-brand small{display:block;font-size:11px;color:#9db0c0;letter-spacing:1.6px}
.u26-rebuild .u26-primary{height:48px;border:0;border-radius:5px;background:#51c52b;color:#fff;font-weight:800;font-size:14px;display:flex;align-items:center;justify-content:center;gap:8px;box-shadow:0 7px 18px rgba(81,197,43,.18)}
.u26-rebuild .u26-side-group{display:grid;gap:7px}.u26-rebuild .u26-side-group>small{color:#8ea2b3;font-size:10px;font-weight:800;letter-spacing:1.1px;margin:2px 6px 5px}
.u26-rebuild .u26-side-group button{border:0;background:transparent;color:#dbe6ee;text-align:left;padding:11px 10px;border-radius:5px;font-weight:700;cursor:pointer}.u26-rebuild .u26-side-group button:hover{background:#122b3e;color:#fff}
.u26-rebuild .u26-side-group button span{display:inline-block;width:24px;color:#7bdc35}
.u26-rebuild .u26-side-status{margin-top:auto;border-top:1px solid #1c3446;padding:16px 8px 0;display:grid;gap:4px}.u26-rebuild .u26-side-status small{font-size:9px;color:#71899c;letter-spacing:1.2px}.u26-rebuild .u26-side-status strong{font-size:22px;color:#fff}.u26-rebuild .u26-side-status span{font-size:11px;color:#7bdc35}
.u26-rebuild .u26-main{min-width:0}.u26-rebuild .u26-topbar{height:64px;background:#fff;border-bottom:1px solid #d6e0e7;display:flex;align-items:center;padding:0 20px;gap:24px;position:sticky;top:0;z-index:15;box-shadow:0 2px 8px rgba(21,47,66,.05)}
.u26-rebuild .u26-title strong{display:block;font-size:18px;letter-spacing:.2px}.u26-rebuild .u26-title small{display:block;font-size:9px;color:#607487;letter-spacing:.7px;margin-top:2px}.u26-rebuild .u26-title .u26-logo-mark{font-size:28px}
.u26-rebuild .u26-nav{margin-left:auto;display:flex;align-items:stretch;height:100%}.u26-rebuild .u26-nav button,.u26-rebuild .u26-nav a{display:flex;align-items:center;border:0;border-bottom:3px solid transparent;background:transparent;color:#20384b;padding:0 18px;text-decoration:none;font:700 12px/1 Arial,sans-serif;cursor:pointer}.u26-rebuild .u26-nav button:hover,.u26-rebuild .u26-nav a:hover,.u26-rebuild .u26-nav .active{border-bottom-color:#51c52b;color:#102b40}
.u26-rebuild .u26-theme{width:39px;height:39px;border:1px solid #cfdae2;background:#fff;border-radius:50%;font-size:20px;color:#1d3a4e;cursor:pointer}
.u26-rebuild .u26-content{padding:14px 16px 30px}.u26-rebuild .u26-dashboard{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:12px;align-items:start;max-width:1640px;margin:0 auto}.u26-rebuild .u26-center{min-width:0;display:flex;flex-direction:column;gap:10px}.u26-rebuild .u26-right{min-width:0;position:sticky;top:78px}
.u26-rebuild .u26-card,.u26-rebuild .u26-config-card,.u26-rebuild .u26-driver-card,.u26-rebuild .u26-options-card{background:#fff;border:1px solid #d0dce4;border-radius:5px;box-shadow:0 1px 3px rgba(20,50,70,.04)}
.u26-rebuild .u26-config-card>h2,.u26-rebuild .u26-options-card>h2,.u26-rebuild .u26-components-card>h2,.u26-rebuild .u26-schematic-card>h2,.u26-rebuild .u26-graph-card>h2{margin:0;padding:11px 14px;border-bottom:1px solid #d7e1e8;font-size:12px;font-weight:900;letter-spacing:.25px;color:#173246;background:#f7fafb;border-radius:5px 5px 0 0}
.u26-rebuild .u26-config-grid{display:grid;grid-template-columns:1.1fr 1.4fr 1.5fr 1.6fr 1.2fr;gap:8px;padding:10px}
.u26-rebuild .u26-config-grid .am-control-section{margin:0!important;padding:0!important;border:0!important;background:none!important;min-width:0}.u26-rebuild .u26-config-grid .am-control-section h2{font-size:10px;margin:0 0 7px;color:#334d60;background:none;padding:0;border:0}.u26-rebuild .u26-config-grid .am-info{display:none!important}
.u26-rebuild .am-inline-options,.u26-rebuild .am-order-buttons{display:flex!important;gap:5px!important;flex-wrap:nowrap!important}.u26-rebuild .am-inline-options label,.u26-rebuild .am-order-buttons button{height:35px!important;min-width:46px!important;border:1px solid #c7d4de!important;background:#fff!important;border-radius:4px!important;color:#163247!important;font-weight:800!important;display:flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box}.u26-rebuild .am-inline-options label:has(input:checked),.u26-rebuild .am-order-buttons button.active{background:#173b68!important;color:#fff!important;border-color:#173b68!important;box-shadow:inset 0 -3px 0 #7bdc35}.u26-rebuild .am-inline-options input{position:absolute;opacity:0;pointer-events:none}
.u26-rebuild .u26-config-grid select,.u26-rebuild .u26-config-grid input,.u26-rebuild .u26-driver-card select,.u26-rebuild .u26-driver-card input,.u26-rebuild .u26-options-card select,.u26-rebuild .u26-options-card input{height:35px!important;border:1px solid #b9c9d5!important;border-radius:4px!important;background:#fff!important;color:#13283a!important;padding:0 9px!important;box-sizing:border-box!important;font-weight:700!important}.u26-rebuild .am-value-row{display:grid!important;grid-template-columns:auto 1fr auto!important;gap:5px!important;align-items:center!important}.u26-rebuild .am-value-row span,.u26-rebuild .am-value-row b{font-size:11px;color:#425c70}
.u26-rebuild .u26-driver-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.u26-rebuild body.system-3way .u26-driver-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.u26-rebuild .u26-driver-card{position:relative!important;margin:0!important;padding:13px 14px 13px 118px!important;min-height:155px!important;box-sizing:border-box!important}.u26-rebuild .u26-driver-card h2{margin:0 0 10px!important;padding:0!important;border:0!important;background:none!important;font-size:12px!important;color:#17364d!important}.u26-rebuild .u26-driver-card h2 small{color:#5b7486}.u26-rebuild .u26-driver-card .am-info{position:absolute;right:12px;top:11px}.u26-rebuild .u26-driver-image{position:absolute;left:13px;top:43px;width:88px;height:88px;display:flex;align-items:center;justify-content:center;background:#f7f9fa;border:1px solid #cfdae1;border-radius:5px;overflow:hidden}.u26-rebuild .u26-driver-image img{width:100%;height:100%;object-fit:contain;image-rendering:auto;filter:none!important}.u26-rebuild .u26-driver-card select{width:100%;margin-bottom:8px}.u26-rebuild .u26-driver-card .am-driver-values{display:flex;gap:10px;background:#f0f5f7;border-radius:4px;padding:7px 9px;font-size:10px;color:#29465a}
.u26-rebuild .u26-options-body>.am-control-section{margin:0!important;padding:10px 12px!important;border:0!important;background:#fff!important}.u26-rebuild .u26-options-body>.am-control-section>h2{display:none}.u26-rebuild .u26-options-body .am-check-row{display:inline-grid!important;grid-template-columns:auto auto 1fr!important;align-items:center!important;gap:8px!important;margin-right:24px!important;font-size:11px!important;color:#233f53!important}.u26-rebuild .u26-options-body .am-check-row span{display:flex!important;align-items:center!important;gap:5px!important}
.u26-rebuild .u26-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.u26-rebuild .u26-actions button{height:43px!important;border-radius:4px!important;font-size:13px!important;font-weight:900!important}.u26-rebuild #amCalculate{background:#23b33d!important;color:#fff!important;border:0!important}.u26-rebuild #amReset{background:#112b3c!important;color:#fff!important;border:0!important}
.u26-rebuild .u26-status{min-height:35px!important;margin:0!important;border:1px solid #d0dce4!important;border-radius:4px!important;background:#f8fbfc!important;padding:7px 10px!important;box-sizing:border-box!important;color:#2e5a3f!important}.u26-rebuild .u26-hidden-real-actions{display:none!important}
.u26-rebuild .u26-schematic-card,.u26-rebuild .u26-graph-card{overflow:hidden}.u26-rebuild #amSchematic{height:430px!important;min-height:430px!important;padding:6px 8px!important;box-sizing:border-box;background:#07131e!important}.u26-rebuild #amSchematic svg{display:block!important;width:100%!important;height:100%!important;max-width:none!important;filter:none!important}.u26-rebuild .u26-schematic-card .am-chips{padding:7px 10px!important;background:#fff!important}
.u26-rebuild .u26-components-card{overflow:hidden}.u26-rebuild .am-components-head{display:grid!important;grid-template-columns:70px 95px 1fr!important;padding:9px 10px!important;background:#f7fafb!important;border-bottom:1px solid #d6e0e7!important;font-size:9px!important;font-weight:800!important}.u26-rebuild .am-component-row{display:grid!important;grid-template-columns:70px 95px 1fr!important;padding:11px 10px!important;border-bottom:1px solid #e1e8ed!important;align-items:center!important;min-height:49px!important;box-sizing:border-box!important}.u26-rebuild .am-component-row>*{min-width:0}.u26-rebuild .am-component-row b{font-size:13px!important}.u26-rebuild .am-component-row small{font-size:9px!important}.u26-rebuild .am-sensitivity-warning{padding:10px!important;font-size:10px!important}
.u26-rebuild .u26-graph-card .am-graph-layout{padding:8px 10px 12px!important}.u26-rebuild #amResponseGraph{width:100%!important;height:300px!important}.u26-rebuild .app-footer{margin-left:230px!important;background:#fff!important;border-top:1px solid #d5e0e7!important;color:#52697a!important}
.u26-rebuild .u26-footer-compact{display:grid!important;grid-template-columns:1fr 1fr 1.5fr!important;gap:18px!important;padding:18px 24px!important}.u26-rebuild .footer-bottom{grid-column:1/-1!important}
.u26-rebuild #u26PrintHeader{display:none}

/* Light theme is genuinely light, including schematic. */
.u26-rebuild.light{background:#edf2f5!important}.u26-rebuild.light #amSchematic{background:#f8fbfc!important}.u26-rebuild.light #amSchematic svg text{fill:#173246!important}.u26-rebuild.light #amSchematic svg .schematic-card,.u26-rebuild.light #amSchematic svg [class*="label"] rect{fill:#fff!important;stroke:#8fa8ba!important}
/* Dark theme preserves the same geometry, only palette changes. */
.u26-rebuild:not(.light){background:#0a1117!important}.u26-rebuild:not(.light) #amateurWorkspace{background:#0a1117!important}.u26-rebuild:not(.light) .u26-topbar,.u26-rebuild:not(.light) .u26-card,.u26-rebuild:not(.light) .u26-config-card,.u26-rebuild:not(.light) .u26-driver-card,.u26-rebuild:not(.light) .u26-options-card{background:#101922!important;border-color:#263745!important;color:#e8f0f5!important}.u26-rebuild:not(.light) .u26-content{background:#0a1117!important}.u26-rebuild:not(.light) .u26-config-card>h2,.u26-rebuild:not(.light) .u26-options-card>h2,.u26-rebuild:not(.light) .u26-components-card>h2,.u26-rebuild:not(.light) .u26-schematic-card>h2,.u26-rebuild:not(.light) .u26-graph-card>h2{background:#13222e!important;color:#e8f0f5!important;border-color:#263745!important}.u26-rebuild:not(.light) .u26-title strong,.u26-rebuild:not(.light) .u26-nav button,.u26-rebuild:not(.light) .u26-nav a,.u26-rebuild:not(.light) .u26-driver-card h2{color:#eaf2f7!important}.u26-rebuild:not(.light) .u26-theme{background:#13222e;color:#fff;border-color:#33495a}.u26-rebuild:not(.light) .u26-config-grid select,.u26-rebuild:not(.light) .u26-config-grid input,.u26-rebuild:not(.light) .u26-driver-card select,.u26-rebuild:not(.light) .u26-options-card select,.u26-rebuild:not(.light) .u26-options-card input{background:#0b151d!important;color:#edf4f7!important;border-color:#395064!important}

/* No ghost rail, pseudo panel or off-canvas decorative shape. */
.u26-rebuild #amateurWorkspace::before,.u26-rebuild #amateurWorkspace::after,.u26-rebuild .u26-shell::before,.u26-rebuild .u26-shell::after{content:none!important;display:none!important}
.u26-rebuild .am-right-column::before,.u26-rebuild .am-right-column::after,.u26-rebuild .u26-right::before,.u26-rebuild .u26-right::after{content:none!important;display:none!important}

@media print{
  @page{size:A4 landscape;margin:8mm}
  body.u26-rebuild{background:#fff!important;min-width:0!important;color:#000!important}
  .u26-rebuild .u26-sidebar,.u26-rebuild .u26-topbar,.u26-rebuild .u26-config-card,.u26-rebuild .u26-driver-grid,.u26-rebuild .u26-options-card,.u26-rebuild .u26-actions,.u26-rebuild .u26-status,.u26-rebuild .u26-graph-card,.u26-rebuild .app-footer,.u26-rebuild .realtime-engine-status{display:none!important}
  .u26-rebuild .u26-shell,.u26-rebuild .u26-dashboard{display:block!important}.u26-rebuild .u26-content{padding:0!important}.u26-rebuild .u26-right{position:static!important;margin-top:5mm}.u26-rebuild #u26PrintHeader{display:flex!important;justify-content:space-between!important;align-items:flex-end!important;border-bottom:1px solid #888!important;padding:0 0 3mm!important;margin-bottom:4mm!important;font:10pt Arial!important}.u26-rebuild #u26PrintHeader strong{font-size:15pt!important}.u26-rebuild .u26-schematic-card,.u26-rebuild .u26-components-card{box-shadow:none!important;border:1px solid #aaa!important;break-inside:avoid!important}.u26-rebuild #amSchematic{height:115mm!important;min-height:115mm!important;background:#fff!important}.u26-rebuild #amSchematic svg text{fill:#000!important}.u26-rebuild .u26-right{width:100%!important}.u26-rebuild .u26-components-card{margin-top:4mm!important}.u26-rebuild .am-component-row{grid-template-columns:30mm 35mm 1fr!important;min-height:8mm!important;padding:2mm 3mm!important}.u26-rebuild .am-components-head{grid-template-columns:30mm 35mm 1fr!important;padding:2mm 3mm!important}
}
/* UI REBUILD verification fixes */
body.u26-rebuild header.am-topbar.u26-legacy-hidden{display:none!important;height:0!important;min-height:0!important;padding:0!important;border:0!important;overflow:hidden!important}
body.u26-rebuild #realtimeEngineStatus{position:fixed!important;top:7px!important;right:12px!important;bottom:auto!important;width:auto!important;height:auto!important;min-height:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#38bf63!important;font-size:9px!important;line-height:1!important;z-index:30!important}
body.u26-rebuild.light .u26-content{background:#edf2f5!important}
body.u26-rebuild.light #amateurWorkspace{background:#edf2f5!important;color:#13283a!important}
body.u26-rebuild.light .u26-card,body.u26-rebuild.light .u26-config-card,body.u26-rebuild.light .u26-driver-card,body.u26-rebuild.light .u26-options-card{background:#fff!important;color:#13283a!important}
body.u26-rebuild.light .u26-topbar{background:#fff!important;color:#13283a!important}
body.u26-rebuild.light #amSchematic{background:#f7fafb!important}
body.u26-rebuild.light .am-component-row{background:#fff!important;color:#173246!important;border-color:#dce5ea!important}
body.u26-rebuild.light .am-component-row span:nth-child(2),body.u26-rebuild.light .am-component-row span:nth-child(3){color:#334f62!important}
body.u26-rebuild .am-bottom-status.u26-bottom-hidden{display:none!important}
body.u26-rebuild .app-footer.u26-footer-compact{display:none!important}

/* Rebuild: real hierarchical driver selection — maker search -> maker -> model search -> model. */
.u26-rebuild .u26-driver-card{min-height:270px!important}
.u26-rebuild .u26-driver-card .driver-picker{display:grid!important;gap:7px!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important}
.u26-rebuild .u26-driver-card .driver-maker-search-label,
.u26-rebuild .u26-driver-card .driver-search-label,
.u26-rebuild .u26-driver-card .driver-picker-grid label,
.u26-rebuild .u26-driver-card .driver-model-label{display:grid!important;gap:4px!important;margin:0!important;font-size:10px!important;font-weight:800!important;letter-spacing:0!important;color:#334d60!important}
.u26-rebuild .u26-driver-card .driver-picker-grid{display:grid!important;grid-template-columns:1fr!important;gap:0!important}
.u26-rebuild .u26-driver-card .driver-maker-search,
.u26-rebuild .u26-driver-card .driver-search,
.u26-rebuild .u26-driver-card .driver-maker,
.u26-rebuild .u26-driver-card .driver-model-select{display:block!important;width:100%!important;height:35px!important;min-height:35px!important;margin:0!important;font-size:11px!important}
.u26-rebuild .u26-driver-card .driver-model-label{font-size:10px!important}
.u26-rebuild .u26-driver-card .driver-picker-facts{display:grid!important;gap:2px!important;margin:1px 0 0!important;padding:7px 9px!important;min-height:42px!important;border:0!important;border-radius:4px!important;background:#f0f5f7!important;color:#29465a!important;font-size:10px!important;line-height:1.35!important}
.u26-rebuild .u26-driver-card .driver-picker-facts b{color:#17364d!important;font-size:10px!important}
.u26-rebuild .u26-driver-card .driver-picker-facts span{color:#29465a!important;font-size:10px!important}
.u26-rebuild:not(.light) .u26-driver-card .driver-maker-search-label,
.u26-rebuild:not(.light) .u26-driver-card .driver-search-label,
.u26-rebuild:not(.light) .u26-driver-card .driver-picker-grid label,
.u26-rebuild:not(.light) .u26-driver-card .driver-model-label{color:#a9bcc9!important}
.u26-rebuild:not(.light) .u26-driver-card .driver-picker-facts{background:#13222e!important;color:#cbd8e0!important}
.u26-rebuild:not(.light) .u26-driver-card .driver-picker-facts b{color:#edf4f7!important}
.u26-rebuild:not(.light) .u26-driver-card .driver-picker-facts span{color:#b8c7d1!important}
@media(max-width:900px){.u26-rebuild .u26-driver-card{min-height:285px!important}}

/* =========================================================
   UI2026 REBUILD 4 — RESPONSIVE ONLY
   Desktop geometry above 900px is intentionally untouched.
   No engine, database or feature behavior is changed here.
   ========================================================= */
@media (max-width:900px){
  html,body{max-width:100%;overflow-x:hidden}
  body.u26-rebuild{min-width:0!important;width:100%!important}
  .u26-rebuild #amateurWorkspace{width:100%!important;min-width:0!important;overflow-x:hidden!important}
  .u26-rebuild .u26-shell{display:block!important;min-width:0!important;width:100%!important}

  /* Project actions become a compact mobile action strip instead of a desktop rail. */
  .u26-rebuild .u26-sidebar{
    position:static!important;width:100%!important;height:auto!important;min-height:0!important;
    padding:8px 10px!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;
    gap:7px!important;background:#07131e!important
  }
  .u26-rebuild .u26-side-brand{display:none!important}
  .u26-rebuild .u26-primary{height:42px!important;width:100%!important;font-size:13px!important}
  .u26-rebuild .u26-side-group{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}
  .u26-rebuild .u26-side-group>small{grid-column:1/-1!important;margin:0 2px!important;font-size:9px!important}
  .u26-rebuild .u26-side-group button{min-width:0!important;padding:10px 8px!important;text-align:center!important;font-size:12px!important;border:1px solid #1d394d!important;background:#0d2231!important}
  .u26-rebuild .u26-side-group button span{width:auto!important;margin-right:4px!important}
  .u26-rebuild .u26-side-status{margin:0!important;padding:7px 2px 0!important;border-top:1px solid #1c3446!important;grid-template-columns:auto auto 1fr!important;align-items:center!important;gap:7px!important}
  .u26-rebuild .u26-side-status small{font-size:8px!important}.u26-rebuild .u26-side-status strong{font-size:15px!important}.u26-rebuild .u26-side-status span{font-size:10px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}

  /* Main product header is compact and wraps cleanly. */
  .u26-rebuild .u26-topbar{
    position:static!important;height:auto!important;min-height:0!important;padding:9px 10px!important;
    display:grid!important;grid-template-columns:minmax(0,1fr) 42px!important;
    grid-template-areas:"title theme" "nav nav"!important;gap:8px!important
  }
  .u26-rebuild .u26-title{grid-area:title!important;min-width:0!important;gap:8px!important}
  .u26-rebuild .u26-title .u26-logo-mark{font-size:24px!important}
  .u26-rebuild .u26-title strong{font-size:15px!important;white-space:normal!important;line-height:1.1!important}
  .u26-rebuild .u26-title small{font-size:8px!important;line-height:1.2!important}
  .u26-rebuild .u26-theme{grid-area:theme!important;width:38px!important;height:38px!important;justify-self:end!important}
  .u26-rebuild .u26-nav{grid-area:nav!important;margin:0!important;width:100%!important;height:auto!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important}
  .u26-rebuild .u26-nav button,.u26-rebuild .u26-nav a{min-width:0!important;min-height:40px!important;padding:8px 6px!important;justify-content:center!important;text-align:center!important;border:1px solid #d1dde5!important;border-bottom-width:2px!important;border-radius:4px!important;font-size:10px!important;line-height:1.2!important;white-space:normal!important}

  .u26-rebuild .u26-content{padding:7px!important;min-width:0!important;width:100%!important;box-sizing:border-box!important}
  .u26-rebuild .u26-dashboard{display:flex!important;flex-direction:column!important;width:100%!important;max-width:none!important;gap:8px!important;min-width:0!important}
  .u26-rebuild .u26-center,.u26-rebuild .u26-right{width:100%!important;min-width:0!important;max-width:100%!important}
  .u26-rebuild .u26-right{position:static!important;top:auto!important;order:2!important}
  .u26-rebuild .u26-center{order:1!important;gap:8px!important}

  .u26-rebuild .u26-card,.u26-rebuild .u26-config-card,.u26-rebuild .u26-driver-card,.u26-rebuild .u26-options-card{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
  .u26-rebuild .u26-config-card>h2,.u26-rebuild .u26-options-card>h2,.u26-rebuild .u26-components-card>h2,.u26-rebuild .u26-schematic-card>h2,.u26-rebuild .u26-graph-card>h2{padding:10px!important;font-size:11px!important}

  /* Configuration: two sensible columns on tablets. */
  .u26-rebuild .u26-config-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;padding:9px!important;gap:10px 8px!important}
  .u26-rebuild .u26-config-grid .am-control-section{width:100%!important;min-width:0!important}
  .u26-rebuild .u26-config-grid .am-control-section h2{font-size:10px!important;line-height:1.2!important}
  .u26-rebuild .u26-config-grid select,.u26-rebuild .u26-config-grid input{width:100%!important;min-width:0!important}
  .u26-rebuild .am-inline-options,.u26-rebuild .am-order-buttons{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important;gap:5px!important}
  .u26-rebuild .am-inline-options label,.u26-rebuild .am-order-buttons button{width:100%!important;min-width:0!important}

  /* Driver cards stack; image stays compact and controls stay full-width. */
  .u26-rebuild .u26-driver-grid,.u26-rebuild body.system-3way .u26-driver-grid{grid-template-columns:1fr!important;gap:8px!important}
  .u26-rebuild .u26-driver-card{padding:12px 12px 12px 96px!important;min-height:0!important}
  .u26-rebuild .u26-driver-image{left:10px!important;top:41px!important;width:72px!important;height:72px!important}
  .u26-rebuild .u26-driver-card h2{font-size:11px!important;margin-bottom:8px!important}
  .u26-rebuild .u26-driver-card .driver-maker-search,.u26-rebuild .u26-driver-card .driver-search,.u26-rebuild .u26-driver-card .driver-maker,.u26-rebuild .u26-driver-card .driver-model-select{height:38px!important;min-height:38px!important;font-size:12px!important}
  .u26-rebuild .u26-driver-card .driver-picker-facts{font-size:10px!important;min-height:0!important}

  .u26-rebuild .u26-options-body>.am-control-section{padding:9px!important}
  .u26-rebuild .u26-options-body .am-check-row{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;width:100%!important;margin:0 0 8px!important;gap:7px!important}
  .u26-rebuild .u26-actions{grid-template-columns:1fr!important;gap:6px!important}
  .u26-rebuild .u26-actions button{height:44px!important}
  .u26-rebuild .u26-status{font-size:10px!important;line-height:1.35!important;height:auto!important}

  /* Schematic is contained in its card. Only the drawing itself may scroll horizontally. */
  .u26-rebuild .u26-schematic-card{overflow:hidden!important}
  .u26-rebuild #amSchematic{width:100%!important;height:auto!important;min-height:330px!important;max-height:none!important;overflow:auto!important;padding:4px!important;-webkit-overflow-scrolling:touch!important}
  .u26-rebuild #amSchematic svg{width:760px!important;min-width:760px!important;height:auto!important;min-height:320px!important;max-width:none!important}
  .u26-rebuild .u26-schematic-card .am-chips{overflow-x:auto!important;flex-wrap:nowrap!important;-webkit-overflow-scrolling:touch!important}

  /* BOM is a real table/list but no longer forces page width. */
  .u26-rebuild .u26-components-card{overflow:hidden!important}
  .u26-rebuild .am-components-head,.u26-rebuild .am-component-row{grid-template-columns:54px 78px minmax(0,1fr)!important;padding-left:8px!important;padding-right:8px!important;gap:5px!important}
  .u26-rebuild .am-component-row{min-height:44px!important}
  .u26-rebuild .am-component-row b{font-size:12px!important}.u26-rebuild .am-component-row span:nth-child(3){font-size:10px!important;overflow-wrap:anywhere!important}

  /* Graph remains readable without making the whole document wider than the viewport. */
  .u26-rebuild .u26-graph-card{overflow:hidden!important}
  .u26-rebuild .u26-graph-card .am-graph-layout{display:block!important;padding:7px!important;min-width:0!important}
  .u26-rebuild .u26-graph-card .am-graph-layout>div:first-child{width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important}
  .u26-rebuild #amResponseGraph{width:720px!important;min-width:720px!important;height:300px!important;max-width:none!important}
  .u26-rebuild .am-graph-details{grid-template-columns:1fr!important;width:100%!important}

  body.u26-rebuild #realtimeEngineStatus{position:static!important;width:100%!important;padding:5px 8px!important;text-align:center!important;background:#07131e!important;color:#45cf69!important;font-size:8px!important;line-height:1.2!important;box-sizing:border-box!important}
}

@media (max-width:520px){
  .u26-rebuild .u26-sidebar{padding:7px!important}
  .u26-rebuild .u26-side-group{grid-template-columns:1fr 1fr!important}
  .u26-rebuild .u26-side-group button{font-size:11px!important;padding:9px 4px!important}
  .u26-rebuild .u26-side-status{grid-template-columns:auto auto!important}.u26-rebuild .u26-side-status span{grid-column:1/-1!important}
  .u26-rebuild .u26-topbar{padding:8px!important}
  .u26-rebuild .u26-title strong{font-size:14px!important}.u26-rebuild .u26-title small{font-size:7px!important}
  .u26-rebuild .u26-nav{grid-template-columns:1fr 1fr!important}
  .u26-rebuild .u26-nav button,.u26-rebuild .u26-nav a{font-size:9px!important;min-height:38px!important;padding:6px 4px!important}
  .u26-rebuild .u26-content{padding:5px!important}
  .u26-rebuild .u26-config-grid{grid-template-columns:1fr!important;padding:8px!important}
  .u26-rebuild .am-inline-options,.u26-rebuild .am-order-buttons{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .u26-rebuild .am-inline-options label,.u26-rebuild .am-order-buttons button{font-size:11px!important;min-width:0!important}
  .u26-rebuild .u26-driver-card{padding:10px!important}
  .u26-rebuild .u26-driver-card h2{padding-right:30px!important}
  .u26-rebuild .u26-driver-image{position:relative!important;left:auto!important;top:auto!important;width:74px!important;height:74px!important;float:left!important;margin:0 10px 7px 0!important}
  .u26-rebuild .u26-driver-card .driver-picker{display:grid!important;clear:none!important}
  .u26-rebuild .u26-driver-card .driver-picker-facts{clear:both!important}
  .u26-rebuild #amSchematic{min-height:300px!important}
  .u26-rebuild #amSchematic svg{width:720px!important;min-width:720px!important;min-height:300px!important}
  .u26-rebuild .am-components-head,.u26-rebuild .am-component-row{grid-template-columns:46px 72px minmax(0,1fr)!important;font-size:9px!important}
  .u26-rebuild #amResponseGraph{width:650px!important;min-width:650px!important;height:270px!important}
}

/* REBUILD 6: jedna stvarna globalna pretraga po grani. Rezultati su stvarni calc_ready zapisi iz baze. */
.u26-rebuild .u26-driver-card .driver-picker{position:relative!important;overflow:visible!important}
.u26-rebuild .driver-global-search-label{position:relative;z-index:12}
.u26-rebuild .driver-search-results{position:absolute;z-index:80;left:0;right:0;top:58px;max-height:300px;overflow:auto;border:1px solid #8fa5b5;border-radius:5px;background:#fff;box-shadow:0 12px 28px rgba(0,0,0,.22);padding:4px}
.u26-rebuild .driver-search-results[hidden]{display:none!important}
.u26-rebuild .driver-search-result{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:12px!important;align-items:center!important;width:100%!important;min-height:36px!important;padding:7px 9px!important;border:0!important;border-bottom:1px solid #e4eaee!important;border-radius:3px!important;background:#fff!important;color:#102332!important;text-align:left!important;cursor:pointer!important}
.u26-rebuild .driver-search-result:hover,.u26-rebuild .driver-search-result:focus{background:#eaf5ff!important;outline:1px solid #208fe0!important}
.u26-rebuild .driver-search-result strong{font-size:11px!important;color:#0a2538!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.u26-rebuild .driver-search-result span{font-size:10px!important;color:#456170!important;text-align:right}
.u26-rebuild .driver-search-empty,.u26-rebuild .driver-search-more{padding:9px!important;font-size:10px!important;color:#49616f!important;background:#f5f8fa!important}
.u26-rebuild:not(.light) .driver-search-results{background:#101820;border-color:#37536a}
.u26-rebuild:not(.light) .driver-search-result{background:#101820!important;color:#e8f0f5!important;border-bottom-color:#263947!important}
.u26-rebuild:not(.light) .driver-search-result:hover,.u26-rebuild:not(.light) .driver-search-result:focus{background:#173247!important}
.u26-rebuild:not(.light) .driver-search-result strong{color:#f1f6f9!important}
.u26-rebuild:not(.light) .driver-search-result span,.u26-rebuild:not(.light) .driver-search-empty,.u26-rebuild:not(.light) .driver-search-more{color:#b8cbd7!important;background:#101820!important}
@media(max-width:900px){.u26-rebuild .driver-search-results{top:62px;max-height:44vh}.u26-rebuild .driver-search-result{grid-template-columns:1fr!important;gap:2px!important}.u26-rebuild .driver-search-result span{text-align:left!important}}


/* Manufacturer picker: database-driven brand logo + name. */
.brand-picker{position:relative;width:100%}
.brand-native-select{display:none!important;position:absolute!important;opacity:0!important;pointer-events:none!important;width:1px!important;height:1px!important}
.brand-picker-button{width:100%;min-height:44px;display:flex;align-items:center;gap:12px;padding:6px 10px;border:1px solid #aebdca;border-radius:4px;background:#fff;color:#0b1d2a;font:inherit;font-weight:600;text-align:left;cursor:pointer}
.brand-picker-button .brand-arrow{margin-left:auto;font-size:11px}
.brand-picker-menu{position:absolute;z-index:10000;left:0;right:0;top:calc(100% + 2px);max-height:360px;overflow:auto;background:#fff;border:1px solid #aebdca;border-radius:4px;box-shadow:0 8px 22px rgba(0,0,0,.16);padding:4px}
.brand-picker-item{width:100%;display:flex;align-items:center;gap:12px;min-height:40px;padding:5px 9px;border:0;border-radius:3px;background:#fff;color:#0b1d2a;font:inherit;font-weight:600;text-align:left;cursor:pointer}
.brand-picker-item:hover,.brand-picker-item:focus{background:#e9f1f7;outline:none}
.brand-logo{width:60px;height:30px;object-fit:contain;object-position:center;flex:0 0 60px}
