#panel-research.if-techplan{background:#0c1620;color:#e3ebf1;--tp-gold:#dfbd80;--tp-border:#405361;overflow:hidden}
#panel-research.if-techplan .wot-research-layout{height:100%;min-height:0;grid-template-columns:170px minmax(0,1fr)}
#panel-research.if-techplan .wot-research-sidebar{background:#101e29;border-right:1px solid #405361}
#panel-research.if-techplan .wot-research-main{display:flex;flex-direction:column;min-width:0;min-height:0;position:relative;overflow:hidden}
#panel-research.if-techplan .wot-tree-head{padding:15px 20px;border-bottom:1px solid #405361;background:#13232f}
#panel-research.if-techplan .wot-tree-head h2{font-size:25px;letter-spacing:-.6px;color:#f1e2c6}
#panel-research.if-techplan .wot-tree-toolbar{padding:10px 20px;background:#101d28;border-bottom:1px solid #405361;flex-shrink:0}
#panel-research.if-techplan .wot-tree-scroll{position:relative;flex:1;min-height:100px;overflow:auto;overscroll-behavior:contain;background-image:radial-gradient(ellipse at 40% 30%,#29405288,transparent 65%),linear-gradient(#101e29,#0c151e)!important;background-attachment:local!important;cursor:grab;touch-action:pan-x pan-y}
#panel-research.if-techplan .wot-tree-flagbg{opacity:.05;pointer-events:none}
#panel-research.if-techplan .tp-stage{position:relative;flex:none;min-width:0;min-height:0}
#panel-research.if-techplan #wot-tree-grid{position:absolute;top:0;left:0;transform-origin:0 0;min-width:0;width:max-content;padding:22px 26px 40px}
#panel-research.if-techplan .wot-tree-master{gap:24px}
#panel-research.if-techplan .wot-tree-master-head,#panel-research.if-techplan .wot-tree-master-row{grid-template-columns:125px repeat(10,190px);gap:20px;align-items:start}
#panel-research.if-techplan .wot-tree-has-star .wot-tree-master-head,#panel-research.if-techplan .wot-tree-has-star .wot-tree-master-row{grid-template-columns:125px repeat(11,190px)}
#panel-research.if-techplan .wot-tree-master-cell{display:flex;flex-direction:column;gap:14px;min-width:0}
#panel-research.if-techplan .wot-tree-slot{display:flex;flex-direction:column;align-items:stretch;gap:14px;min-width:190px;width:190px}
#panel-research.if-techplan .wot-tree-branch-col{position:static;min-height:135px;display:flex;justify-content:center;white-space:normal;color:#bdcbd4;background:#152632;border:1px solid #405361;border-left:3px solid #b79963;border-radius:6px;font-size:13px;padding:12px}
#panel-research.if-techplan .wot-tier-col-label{font-size:16px;color:#dfbd80;text-align:center}
#panel-research.if-techplan .wot-tree-node{width:190px!important;min-width:190px;height:auto!important;min-height:160px;display:flex;flex-direction:column;align-items:stretch;padding:12px;border:1px solid #516575;border-radius:7px;background:linear-gradient(145deg,#263b4b,#12222e);box-shadow:0 8px 16px #0003;position:relative;cursor:pointer;white-space:normal;overflow:hidden;opacity:1;filter:none}
#panel-research.if-techplan .wot-tree-node-visual{height:53px;display:flex;align-items:center;justify-content:center;margin:2px 0 8px}
#panel-research.if-techplan .wot-tree-node-visual .tank-icon{transform:scale(1.2)}
#panel-research.if-techplan .wot-tree-node-meta{display:flex;flex-direction:column;gap:5px;padding:0;position:static;text-align:left}
#panel-research.if-techplan .wot-tree-node-name{font:700 14px/1.25 system-ui;color:#f2ede2;white-space:normal;overflow:visible;text-overflow:clip}
#panel-research.if-techplan .wot-tree-node-tier{font-size:12px;color:#e5c994}
#panel-research.if-techplan .wot-tree-node-cost{font-size:11px;line-height:1.4;color:#b8cad6;white-space:normal}
#panel-research.if-techplan .wot-tree-node-type{font-size:9px;color:#adc3d2}
#panel-research.if-techplan .wot-tree-node-veil{display:none}
#panel-research.if-techplan .tp-status{font:600 10px/1.4 system-ui;margin-top:9px;border-top:1px solid #4e637366;padding-top:7px;color:#bacbd7}
#panel-research.if-techplan [data-tp-status=owned]{border-color:#6d9b7b;background:linear-gradient(145deg,#264139,#152b28)}
#panel-research.if-techplan [data-tp-status=owned] .tp-status{color:#b7e1c2}
#panel-research.if-techplan [data-tp-status=ready]{border-color:#d6b376}
#panel-research.if-techplan [data-tp-status=ready] .tp-status{color:#f2d59e}
#panel-research.if-techplan .wot-tree-node.selected,#panel-research.if-techplan .tp-goal{outline:3px solid #e8c581;outline-offset:3px}
#panel-research.if-techplan .tp-route{box-shadow:0 0 0 2px #b39256,0 0 25px #d9b77c33}
#panel-research.if-techplan .tp-muted{opacity:.23}
#panel-research.if-techplan .wot-tree-node-empty{opacity:.25;min-height:160px}
#panel-research.if-techplan .wot-tree-lines{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;overflow:visible}
#panel-research.if-techplan .tp-link{fill:none;stroke:#657989;stroke-width:2;stroke-linejoin:round;opacity:.7}
#panel-research.if-techplan .tp-link-owned{stroke:#80b095}
#panel-research.if-techplan .tp-link-focus{stroke:#f0ca80;stroke-width:4;opacity:1}
#panel-research.if-techplan .tp-controls{display:flex;flex-wrap:wrap;gap:9px;align-items:end;padding:12px 20px;background:#101d28;border-bottom:1px solid #405361;flex-shrink:0}
#panel-research.if-techplan .tp-controls label{display:flex;flex-direction:column;gap:5px;font:700 9px/1.4 system-ui;letter-spacing:1.4px;color:#a8bdca}
#panel-research.if-techplan .tp-controls input,#panel-research.if-techplan .tp-controls select{height:36px;padding:0 9px;background:#09151f;color:#edf0ef;border:1px solid #506675;border-radius:4px;font:12px system-ui;max-width:210px}
#panel-research.if-techplan .tp-controls button,#panel-research.if-techplan .tp-goalbar button,#panel-research.if-techplan .tp-goal-button,#panel-research.if-techplan .tp-model-controls button{min-height:36px;padding:6px 10px;background:#263c4d;color:#e6d5b7;border:1px solid #647784;border-radius:4px;cursor:pointer;font:600 11px system-ui}
#panel-research.if-techplan .tp-zoom{display:flex;align-items:center;gap:5px}.tp-scale{min-width:44px;text-align:center;font:12px system-ui;color:#d8c09b}
#panel-research.if-techplan .tp-results{font:11px/1.5 system-ui;color:#9eb6c7;align-self:center}
#panel-research.if-techplan .tp-goalbar{padding:8px 20px;background:#403724;color:#f1d49f;font:12px/1.5 system-ui;display:flex;gap:14px;align-items:center;flex-shrink:0}
#panel-research.if-techplan .tp-goalbar[hidden]{display:none}
#panel-research.if-techplan #tree-detail{position:absolute;right:12px;top:12px;bottom:12px;width:min(430px,calc(100% - 24px));max-height:calc(100% - 24px);margin:0;padding:26px 18px 18px;overflow-y:auto;display:flex;flex-direction:column;gap:10px;z-index:20;background:#10212ff7;border:1px solid #c3a065;border-radius:8px;box-shadow:-20px 0 60px #0008}
#panel-research.if-techplan #tree-detail.hidden{display:none}
#panel-research.if-techplan #detail-preview{min-height:100px;width:100%;display:flex;align-items:center;justify-content:center}
#panel-research.if-techplan #detail-preview>.tank-icon{transform:scale(1.8);margin:25px}
#panel-research.if-techplan #detail-preview canvas{width:100%;height:auto;aspect-ratio:12/7;touch-action:none;cursor:grab;border-radius:5px}
#panel-research.if-techplan .tree-detail-body{padding:0;min-width:0}
#panel-research.if-techplan #detail-name{font-size:26px;line-height:1.2;margin:8px 0;color:#f3e5cc}
#panel-research.if-techplan #detail-meta{font-size:12px;color:#afc5d5}
#panel-research.if-techplan .detail-stats{gap:8px;padding:12px 0}
#panel-research.if-techplan .detail-stats>div{padding:7px;background:#1c3343;border-radius:3px;font-size:12px}
#panel-research.if-techplan .detail-req{font-size:12px;line-height:1.7;color:#bdceda}
#panel-research.if-techplan .detail-actions{display:flex;flex-wrap:wrap;gap:9px;padding-top:12px;border-top:1px solid #415766}
#panel-research.if-techplan .detail-actions>button{min-height:40px;padding:10px;font-size:11px}
#panel-research.if-techplan .tree-detail-close{position:sticky;align-self:flex-end;right:0;top:0;width:32px;height:32px;flex-shrink:0;margin-bottom:-34px;font-size:20px;z-index:5;background:#152c3d}
#panel-research.if-techplan .tp-costs{padding:12px;background:#091722;border:1px solid #3c5262;border-radius:5px;margin-top:12px}
#panel-research.if-techplan .tp-costs>div{display:flex;justify-content:space-between;gap:12px;margin:6px 0;font:11px/1.5 system-ui}
#panel-research.if-techplan .tp-costs span{color:#a8becd}#panel-research.if-techplan .tp-costs strong{color:#ecd3a8;text-align:right;overflow-wrap:anywhere}
#panel-research.if-techplan .tp-model-controls{display:flex;gap:6px;justify-content:center}#panel-research.if-techplan .tp-model-hint{font-size:10px;text-align:center;color:#a7bcca;margin:0}
#panel-research.if-techplan :focus-visible{outline:3px solid #e6c487;outline-offset:3px}
@media(max-width:800px){#panel-research.if-techplan .wot-nation-playable-block,#panel-research.if-techplan .wot-nation-soon-block{display:contents}#panel-research.if-techplan .wot-nation-section-label{display:none}#panel-research.if-techplan .wot-research-nations .wot-research-nation{width:auto;min-width:105px;flex:0 0 auto}#panel-research.if-techplan .tp-controls{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden}#panel-research.if-techplan .tp-controls>label,#panel-research.if-techplan .tp-controls>button,#panel-research.if-techplan .tp-controls>.tp-zoom,#panel-research.if-techplan .tp-controls>output{flex-shrink:0}}
@media(max-width:800px){#panel-research.if-techplan .wot-research-layout{display:flex;flex-direction:column}#panel-research.if-techplan .wot-research-sidebar{flex-shrink:0;padding:8px;border-right:0;border-bottom:1px solid #405361;max-height:100px}#panel-research.if-techplan .wot-research-sidebar-title{display:none}#panel-research.if-techplan .wot-research-nations{display:flex;flex-direction:row;overflow-x:auto;gap:6px}#panel-research.if-techplan .wot-research-nations>button{flex-shrink:0;min-width:90px}#panel-research.if-techplan .wot-research-main{flex:1}#panel-research.if-techplan .wot-tree-head{padding:10px 12px}#panel-research.if-techplan .wot-tree-head h2{font-size:19px}#panel-research.if-techplan .tree-legend{display:none}#panel-research.if-techplan .wot-tree-toolbar{padding:8px 12px;max-height:100px;overflow:auto}#panel-research.if-techplan .tp-controls{padding:8px 12px;max-height:170px;overflow:auto;gap:7px}#panel-research.if-techplan .tp-controls input{width:140px}#panel-research.if-techplan .tp-controls select{max-width:140px}#panel-research.if-techplan .tp-results{font-size:10px}#panel-research.if-techplan #tree-detail{top:auto;left:0;right:0;bottom:0;width:100%;max-height:75%;border-radius:10px 10px 0 0}#panel-research.if-techplan .tp-goalbar{padding:7px 12px;font-size:11px;max-height:80px;overflow:auto}}
@media(max-width:800px){#panel-research.if-techplan #research-nation-tabs{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important}#panel-research.if-techplan #research-nation-tabs .wot-nation-playable-block,#panel-research.if-techplan #research-nation-tabs .wot-nation-soon-block{display:contents!important}#panel-research.if-techplan #research-nation-tabs .wot-research-nation{flex:0 0 auto!important;width:auto!important;min-width:105px!important}}

/* V2 replaces the horizontal card wall with a vertical technology board. */
#panel-research.if-techplan{background:#14191d;--tp-gold:#d4b27a;--tp-border:#3d454b;font-family:Inter,system-ui,sans-serif}
#panel-research.if-techplan .wot-research-layout{display:flex;flex-direction:column;gap:0}
#panel-research.if-techplan .wot-research-sidebar{flex:none;width:100%;padding:0 18px;border:0;border-bottom:1px solid #3d454b;background:#171d22;position:relative;z-index:30;max-height:none}
#panel-research.if-techplan .wot-research-sidebar-title{display:none}
#panel-research.if-techplan #research-nation-tabs{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;justify-content:flex-start!important;width:100%;gap:3px;padding:9px 0;overflow-x:auto;align-items:center}
#panel-research.if-techplan #research-nation-tabs .wot-nation-playable-block{display:contents!important}
#panel-research.if-techplan #research-nation-tabs .wot-nation-section-label{display:none}
#panel-research.if-techplan #research-nation-tabs .wot-research-nation{width:auto!important;min-width:93px!important;flex:0 0 auto!important;padding:9px 10px;border:0;border-bottom:2px solid transparent;background:transparent;color:#aeb9c1;display:flex;gap:7px;align-items:center;min-height:38px;border-radius:0}
#panel-research.if-techplan #research-nation-tabs .wot-research-nation.selected{background:#d4b27a10;color:#f1dfc1;border-bottom-color:#d4b27a}
#panel-research.if-techplan .wot-nat-name{font-size:11px;white-space:nowrap}
#panel-research.if-techplan .t2-future{flex-shrink:0;position:static}
#panel-research.if-techplan .t2-future summary{cursor:pointer;padding:8px 10px;color:#aeb9c1;font:11px system-ui;list-style:none;border:1px solid #40494f;border-radius:3px}
#panel-research.if-techplan #research-nation-tabs .t2-future .wot-nation-soon-block{display:grid!important;grid-template-columns:repeat(3,minmax(100px,1fr));position:fixed;top:125px;right:20px;width:min(560px,calc(100vw - 40px));max-height:55vh;overflow-y:auto;padding:16px;background:#1c252d;border:1px solid #7b6b51;border-radius:5px;box-shadow:0 15px 50px #0009;z-index:130}
#panel-research.if-techplan #research-nation-tabs .t2-future:not([open]) .wot-nation-soon-block{display:none!important}
#panel-research.if-techplan .wot-research-main{flex:1;display:grid;grid-template-columns:minmax(0,1fr) 330px;grid-template-rows:auto auto auto auto minmax(0,1fr);gap:0;background:#11181e}
#panel-research.if-techplan .wot-tree-head{grid-column:1/-1;grid-row:1;padding:14px 20px;background:#1b242c;border-bottom:1px solid #353f47;min-height:58px;display:flex;align-items:center}
#panel-research.if-techplan .wot-tree-head h2{font-size:22px;letter-spacing:.2px;color:#f1e6d4;font-weight:700;text-transform:none}
#panel-research.if-techplan .wot-tree-head-nation{color:#f1e6d4}
#panel-research.if-techplan .tree-legend{display:none}
#panel-research.if-techplan .wot-tree-toolbar{grid-column:1/-1;grid-row:2;padding:8px 20px;background:#172029;max-height:82px;overflow:auto}
#panel-research.if-techplan .wot-tree-progress{font-size:11px;color:#b4c0ca;padding:0;border:0;background:transparent}
#panel-research.if-techplan .wot-tree-progress-bar{background:#aabf9e}
#panel-research.if-techplan .wot-tree-toolbar-row{gap:8px;margin-top:7px}
#panel-research.if-techplan .wot-tree-filter-btn{padding:6px 10px;background:#1e2b34;border:1px solid #3e4d57;border-radius:3px;color:#aebdc8;font:11px system-ui}
#panel-research.if-techplan .wot-tree-filter-btn.selected{background:#d4b27a18;border-color:#967c51;color:#e7cfab}
#panel-research.if-techplan #btn-tree-next{padding:6px 12px;min-height:28px;font:11px system-ui;border-radius:3px;max-width:240px;margin-left:auto}
#panel-research.if-techplan .tp-controls{grid-column:1/-1;grid-row:3;padding:10px 20px;gap:10px;flex-wrap:nowrap;overflow-x:auto;background:#111b23;border-bottom:1px solid #3b474f;align-items:center}
#panel-research.if-techplan .tp-controls label{flex-shrink:0;gap:0;font-size:0;letter-spacing:0}
#panel-research.if-techplan .tp-controls input,#panel-research.if-techplan .tp-controls select{height:33px;border-color:#3a4a56;background:#172630;font:11px system-ui;max-width:175px}
#panel-research.if-techplan .tp-controls input{width:165px}
#panel-research.if-techplan .tp-controls button{min-height:32px;font-size:10px;padding:6px 9px;background:#1e2d37;border-color:#40515d;white-space:nowrap}
#panel-research.if-techplan .tp-controls .tp-results{white-space:nowrap;font-size:10px;margin-left:auto}
#panel-research.if-techplan .tp-controls [data-tp=reset]{font-size:0;width:31px;min-width:31px}
#panel-research.if-techplan .tp-controls [data-tp=reset]::after{content:'↺';font-size:18px}
#panel-research.if-techplan .tp-controls [data-tp=normal]{display:none}
#panel-research.if-techplan .tp-zoom{gap:4px;flex-shrink:0}
#panel-research.if-techplan .tp-scale{font-size:10px;min-width:35px}
#panel-research.if-techplan .t2-switch{display:flex;flex-shrink:0;padding-right:10px;border-right:1px solid #3c4a54;gap:3px}
#panel-research.if-techplan .t2-switch button{border-color:transparent;background:transparent;color:#95a8b8}
#panel-research.if-techplan .t2-switch button.selected{background:#d4b27a22;color:#f0d6aa;border-color:#8b754e}
#panel-research.if-techplan .tp-goalbar{grid-column:1;grid-row:4;padding:8px 20px;background:#443b2a;font-size:10px;border-bottom:1px solid #655334}
#panel-research.if-techplan .tp-goalbar button{font-size:10px;padding:4px 8px;min-height:25px;margin-left:auto;white-space:nowrap}
#panel-research.if-techplan .wot-tree-scroll{grid-column:1;grid-row:5;min-height:0;margin:0;border:0;background-color:#141e27;background-image:radial-gradient(ellipse at 20% 0,#36495744,transparent 70%),repeating-linear-gradient(90deg,transparent 0 39px,#c8d2d603 40px),repeating-linear-gradient(0deg,transparent 0 39px,#c8d2d603 40px)!important}
#panel-research.if-techplan .wot-tree-flagbg{display:none}
#panel-research.if-techplan #wot-tree-grid{padding:18px 20px 35px;width:900px;min-width:0;min-height:100px}
#panel-research.if-techplan .t2-board{display:flex;flex-direction:column;gap:44px;position:relative;z-index:1}
#panel-research.if-techplan .t2-board[hidden],#panel-research.if-techplan .t2-premium[hidden]{display:none!important}
#panel-research.if-techplan .t2-row{display:grid;grid-template-columns:42px repeat(var(--t2-cols,5),minmax(0,1fr));gap:15px;align-items:start}
#panel-research.if-techplan .t2-head{background:#1e2d39;border-bottom:1px solid #53616a;align-items:center;min-height:40px;margin-bottom:-20px;position:sticky;top:0;z-index:6}
#panel-research.if-techplan .t2-class-head{font-size:11px;letter-spacing:.5px;text-transform:uppercase;color:#afc0cd;padding:10px 3px;text-align:center;font-weight:700}
#panel-research.if-techplan .t2-rank{display:flex;align-items:center;justify-content:center;min-height:136px;font:600 17px system-ui;color:#8a9aa8;border-right:1px solid #4c5b6544}
#panel-research.if-techplan .t2-head .t2-rank{min-height:40px;font-size:8px;letter-spacing:1px}
#panel-research.if-techplan .t2-cell{display:flex;flex-direction:column;gap:14px;min-width:0}
#panel-research.if-techplan .t2-empty{height:136px;display:flex;align-items:center;justify-content:center;color:#4d6272;font-size:18px}
#panel-research.if-techplan .wot-tree-node{position:relative;width:100%!important;min-width:0!important;min-height:136px;max-width:none;border:1px solid #50626e;border-radius:3px;background:linear-gradient(140deg,#314450,#1d2d37);padding:8px 9px;box-shadow:0 5px 9px #0003;gap:0;overflow:hidden;transition:border-color .12s,background .12s}
#panel-research.if-techplan .wot-tree-node-visual{height:68px;margin:0 0 5px;min-height:0;background:radial-gradient(ellipse at 50% 80%,#10151b77,transparent 66%)}
#panel-research.if-techplan .wot-tree-node-visual .t2-tank-art{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 6px 4px #0008)}
#panel-research.if-techplan .wot-tree-node-meta{gap:3px}
#panel-research.if-techplan .wot-tree-node-name{font-size:11px;font-weight:700;line-height:1.2;min-height:14px;letter-spacing:.1px}
#panel-research.if-techplan .wot-tree-node-tier{display:none}
#panel-research.if-techplan .wot-tree-node-type{top:5px;left:7px;font-size:8px;line-height:1.2;padding:2px 3px;color:#b2c5d2;background:#10192266;border-radius:2px}
#panel-research.if-techplan .wot-tree-node-cost{font-size:9px;color:#b7c7d1}
#panel-research.if-techplan .tp-status{font-size:8px;margin-top:6px;padding-top:5px;border-top-color:#6f879333;white-space:normal;line-height:1.2}
#panel-research.if-techplan [data-tp-status=owned]{border-color:#6a917b;background:linear-gradient(135deg,#304a41,#243a33)}
#panel-research.if-techplan [data-tp-status=ready]{border-color:#9cae8f;background:linear-gradient(135deg,#394d43,#263c36)}
#panel-research.if-techplan [data-tp-status=locked]{background:linear-gradient(135deg,#303e49,#202f3a);border-color:#4b5b68}
#panel-research.if-techplan [data-tp-status=premium]{background:linear-gradient(135deg,#504832,#302c23);border-color:#786544}
#panel-research.if-techplan .wot-tree-node.selected{outline:2px solid #e5bf7d;outline-offset:2px;box-shadow:0 0 25px #d5aa5933}
#panel-research.if-techplan .tp-route{box-shadow:0 0 0 1px #b39762}
#panel-research.if-techplan .tp-muted{opacity:.18}
#panel-research.if-techplan .tp-link{stroke:#71818d;stroke-width:1.5;opacity:.55}
#panel-research.if-techplan .tp-link-owned{stroke:#8db89c}
#panel-research.if-techplan .tp-link-focus{stroke:#e0bd7a;stroke-width:3;opacity:1}
#panel-research.if-techplan .t2-premium{position:relative;z-index:1}
#panel-research.if-techplan .t2-premium h3{font:600 17px system-ui;color:#e2c58e;margin:4px 0 22px}
#panel-research.if-techplan .t2-premium-rack{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:18px}
#panel-research.if-techplan .t2-inspector-empty{grid-column:2;grid-row:4/6;padding:35px 25px;background:#1b2c38;border-left:1px solid #4c5a65;color:#9cb3c2;font:13px/1.7 system-ui;display:flex;flex-direction:column;justify-content:center;text-align:center}#panel-research.if-techplan .t2-inspector-empty strong{color:#e3d2b4;font-size:20px}#panel-research.if-techplan .t2-inspector-empty[hidden]{display:none!important}
#panel-research.if-techplan #tree-detail{grid-column:2;grid-row:4/6;position:relative;inset:auto;align-self:stretch;overflow-y:auto;width:100%;height:100%;max-height:none;margin:0;padding:14px 16px 20px;border:0;border-left:1px solid #4c5a65;border-radius:0;background:linear-gradient(#273b48,#192b37 70%);box-shadow:-10px 0 35px #0002;gap:5px;min-height:0}
#panel-research.if-techplan #detail-preview{min-height:155px;max-height:200px;margin:0 -5px;background:radial-gradient(ellipse at 50% 80%,#101a2277,transparent 65%)}
#panel-research.if-techplan #detail-preview .t2-detail-art{display:block;width:100%;height:170px;object-fit:contain;filter:drop-shadow(0 14px 9px #0006)}
#panel-research.if-techplan #detail-preview canvas{max-height:200px}
#panel-research.if-techplan .tree-detail-close{width:25px;height:25px;font-size:16px;min-height:25px;margin-bottom:-25px;opacity:.8}
#panel-research.if-techplan #detail-name{font-size:24px;font-weight:700;margin:3px 0 6px;letter-spacing:-.5px}
#panel-research.if-techplan #detail-meta{font-size:10px;color:#9fb6c7;margin:0 0 10px}
#panel-research.if-techplan .detail-stats{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:10px 0;padding:0}
#panel-research.if-techplan .detail-stats>div{font-size:10px;padding:8px;background:#0d202d66;border:1px solid #536c7d33;min-width:0;text-align:left}
#panel-research.if-techplan .detail-stats>div strong{font-size:13px;color:#f0e5d2;display:block;margin-top:2px}
#panel-research.if-techplan .detail-stats:not(.t2-all-stats)>div:nth-child(n+5){display:none}
#panel-research.if-techplan .t2-stats-toggle{padding:4px 0;border:0;background:transparent;color:#9fc0d5;font:10px system-ui;cursor:pointer;text-align:left;text-decoration:underline;text-underline-offset:3px}
#panel-research.if-techplan .tp-costs{margin-top:12px;padding:10px 11px;border:1px solid #6d7f8933;background:#0e202cb3;border-radius:3px}
#panel-research.if-techplan .tp-costs>div{font-size:10px;margin:5px 0}
#panel-research.if-techplan .detail-actions{padding:12px 0;margin-top:2px;border:0;gap:6px}
#panel-research.if-techplan .detail-actions>button{padding:8px 10px;font-size:9px;min-height:33px;flex:1 0 auto}
#panel-research.if-techplan .detail-actions>.tp-goal-button{flex-basis:100%;background:#263e4e;border-color:#71808b;color:#e6d7bb}
#panel-research.if-techplan .detail-req{font-size:10px;color:#90a9bc;border-top:1px solid #54677544;padding-top:12px}
#panel-research.if-techplan .detail-playstyle,#panel-research.if-techplan .detail-traits,#panel-research.if-techplan .detail-lore{font-size:10px;margin-top:12px;color:#afc4d1}
#panel-research.if-techplan .detail-playstyle h4,#panel-research.if-techplan .detail-traits h4{font-size:9px;letter-spacing:1px;color:#bdcbd5}
@media(max-width:1050px){#panel-research.if-techplan .wot-research-main{grid-template-columns:minmax(0,1fr) 290px}#panel-research.if-techplan .tp-controls{padding:9px 12px}}
@media(max-width:800px){#panel-research.if-techplan .wot-research-main{display:flex;flex-direction:column;overflow:hidden}#panel-research.if-techplan .wot-research-sidebar{padding:0 10px;max-height:none}#panel-research.if-techplan .wot-tree-head{padding:10px 12px;min-height:46px;flex-shrink:0}#panel-research.if-techplan .wot-tree-head h2{font-size:17px}#panel-research.if-techplan .wot-tree-toolbar{padding:7px 12px;max-height:75px;flex-shrink:0}#panel-research.if-techplan .tp-controls{flex-shrink:0;max-height:none;overflow-x:auto}#panel-research.if-techplan .tp-goalbar{flex-shrink:0}#panel-research.if-techplan .wot-tree-scroll{flex:1;min-height:80px}#panel-research.if-techplan #tree-detail{position:absolute;left:0;right:0;top:auto;bottom:0;width:100%;max-height:78%;height:auto;border-top:1px solid #a68b60;border-radius:8px 8px 0 0;z-index:40;padding:14px 18px}#panel-research.if-techplan #detail-preview{min-height:130px}#panel-research.if-techplan #research-nation-tabs .t2-future .wot-nation-soon-block{grid-template-columns:repeat(2,minmax(100px,1fr));top:110px}#panel-research.if-techplan #wot-tree-grid{width:900px}}
@media(prefers-reduced-motion:reduce){#panel-research.if-techplan .wot-tree-node{transition:none}}
@media(max-width:800px){#panel-research.if-techplan .t2-inspector-empty{display:none}}

/* V3: compact command header, starter hub, navigable overview, fixed action area. */
#panel-research.if-techplan .wot-research-sidebar,#panel-research.if-techplan #wot-tree-toolbar{display:none!important}
#panel-research.if-techplan .wot-research-main{grid-template-columns:minmax(0,1fr) 350px;grid-template-rows:86px auto auto auto minmax(0,1fr);background:#101a23}
#panel-research.if-techplan .wot-tree-head{grid-column:1/-1;grid-row:1;display:grid;grid-template-columns:250px minmax(0,1fr) 220px;grid-template-rows:20px 1fr;padding:12px 20px 8px;gap:0 20px;min-height:0;border-bottom:1px solid #4c5e6c;background:linear-gradient(100deg,#283d4c,#172630 65%)}
#panel-research.if-techplan .t3-brand{grid-column:1;grid-row:1;font:700 9px/1.4 system-ui;letter-spacing:2px;color:#a0b4c3}
#panel-research.if-techplan .wot-tree-head-left{grid-column:1;grid-row:2;min-width:0}
#panel-research.if-techplan .wot-tree-head h2{font-size:23px;line-height:1.2;white-space:nowrap;margin:0}
#panel-research.if-techplan .wot-tree-head-label,#panel-research.if-techplan .wot-tree-head-sep{display:none}
#panel-research.if-techplan #research-nation-tabs{grid-column:2;grid-row:1/3;padding:0;gap:3px;align-self:center;overflow-x:auto;scrollbar-width:thin}
#panel-research.if-techplan #research-nation-tabs .wot-research-nation{min-width:36px!important;width:36px!important;max-width:150px;height:38px;padding:7px 8px;border:1px solid #4a6071;border-radius:4px;justify-content:center;background:#0f202c66}
#panel-research.if-techplan #research-nation-tabs .wot-research-nation .wot-nat-name,#panel-research.if-techplan #research-nation-tabs .wot-research-nation .wot-ea-tab{display:none}
#panel-research.if-techplan #research-nation-tabs .wot-research-nation.selected{border-color:#d6b27a;background:#d0ae6e22}
#panel-research.if-techplan .t2-future summary{font-size:9px;width:70px;white-space:normal;line-height:1.3;text-align:center;padding:5px 7px}
#panel-research.if-techplan #research-nation-tabs .t2-future .wot-nation-soon-block{top:125px}
#panel-research.if-techplan #research-nation-tabs .t2-future .wot-research-nation{width:auto!important;min-width:120px!important;justify-content:start}
#panel-research.if-techplan #research-nation-tabs .t2-future .wot-nat-name{display:inline!important}
#panel-research.if-techplan .t3-context{grid-column:3;grid-row:1/3;display:flex;flex-direction:column;align-items:stretch;gap:7px;min-width:0}
#panel-research.if-techplan .t3-context[hidden]{display:none}
#panel-research.if-techplan #wot-tree-progress{padding:0;background:transparent;border:0;margin:0;display:block;line-height:1.4;min-height:0}
#panel-research.if-techplan .wot-tree-progress-bar-wrap,#panel-research.if-techplan .wot-tree-progress-next{display:none}
#panel-research.if-techplan .wot-tree-progress-text{font:10px system-ui;color:#b7cad7;white-space:nowrap}
#panel-research.if-techplan #btn-tree-next{margin:0;max-width:none;width:100%;border:1px solid #64828c;background:#28484e;color:#d7eee8;min-height:28px;font:700 9px system-ui}
#panel-research.if-techplan .tp-controls{grid-column:1;grid-row:2;gap:7px;padding:9px 16px;border-bottom:0;background:#12212b}
#panel-research.if-techplan .tp-controls input{width:145px}
#panel-research.if-techplan .tp-controls select{max-width:100px}
#panel-research.if-techplan .tp-controls [data-tp=next]{display:block;width:30px;min-width:30px;font-size:0}
#panel-research.if-techplan .tp-controls [data-tp=next]::after{content:'⌕';font-size:18px}
#panel-research.if-techplan .tp-controls .tp-results{display:none}
#panel-research.if-techplan .t2-switch{padding-right:7px}
#panel-research.if-techplan .t2-switch button{font-size:9px;padding:6px 8px}
#panel-research.if-techplan .tp-scale{font-size:9px;min-width:30px}
#panel-research.if-techplan .tp-controls button{font-size:9px;padding:5px 8px}
#panel-research.if-techplan .t3-branchbar{grid-column:1;grid-row:3;display:flex;align-items:center;gap:12px;padding:0 16px 10px;background:#12212b;border-bottom:1px solid #405564;overflow-x:auto;min-height:35px}
#panel-research.if-techplan #wot-tree-branch-filter{display:flex;flex-wrap:nowrap;gap:5px}
#panel-research.if-techplan .wot-tree-filter-btn{padding:5px 9px;min-height:26px;font-size:9px;white-space:nowrap;border-color:#314a5b;color:#8eaabb;background:#132a39}
#panel-research.if-techplan .wot-tree-filter-btn.selected{background:#29465a;border-color:#5f8ca5;color:#e1edf4}
#panel-research.if-techplan [data-tree-branch=premium]{display:none}
#panel-research.if-techplan .t3-center{margin-left:auto;flex-shrink:0;min-height:26px;padding:4px 8px;font:10px system-ui;color:#c6d7e1;background:transparent;border:1px solid #4b687a;border-radius:3px;cursor:pointer}
#panel-research.if-techplan .tp-goalbar{grid-column:1;grid-row:4;font-size:10px;padding:8px 16px;border-bottom:1px solid #937a51;background:linear-gradient(90deg,#4e422a,#302d25)}
#panel-research.if-techplan .wot-tree-scroll{grid-column:1;grid-row:5;background-image:radial-gradient(ellipse at 20% 0,#44677d33,transparent 70%),repeating-linear-gradient(90deg,transparent 0 47px,#9cc6d005 48px),repeating-linear-gradient(0deg,transparent 0 47px,#9cc6d005 48px)!important}
#panel-research.if-techplan #wot-tree-grid{padding:15px 18px 45px}
#panel-research.if-techplan .t2-board{gap:34px}
#panel-research.if-techplan .t2-head{min-height:34px;background:#233c4e;border-bottom-color:#708b9b;box-shadow:0 6px 12px #09121a55}
#panel-research.if-techplan .t2-class-head{font-size:10px;letter-spacing:.4px;color:#afcbdc}
#panel-research.if-techplan .t2-head .t2-rank{min-height:34px}
#panel-research.if-techplan .t2-row{gap:16px}
#panel-research.if-techplan .t2-rank{font-size:19px;color:#8096a7;min-height:150px}
#panel-research.if-techplan .t2-empty{height:150px;color:#496479}
#panel-research.if-techplan .wot-tree-node{min-height:150px;border-radius:5px;border-color:#486477;background:linear-gradient(145deg,#314d61,#1b3040);box-shadow:0 6px 16px #02080d66}
#panel-research.if-techplan .wot-tree-node-visual{height:78px;margin-bottom:7px;background:radial-gradient(ellipse at 50% 65%,#8daabe18,transparent 70%)}
#panel-research.if-techplan .wot-tree-node-name{font-size:12px;font-weight:700;letter-spacing:0}
#panel-research.if-techplan .wot-tree-node-cost{font-size:10px;color:#a9c1d0;line-height:1.4}
#panel-research.if-techplan .tp-status{font-size:8px;padding-top:6px;margin-top:6px}
#panel-research.if-techplan [data-tp-status=owned]{border-color:#739e8d;background:linear-gradient(145deg,#315649,#1b3a32)}
#panel-research.if-techplan [data-tp-status=ready]{border-color:#6a9ca0;background:linear-gradient(145deg,#2e5360,#1b3c4a)}
#panel-research.if-techplan [data-tp-status=locked]{background:linear-gradient(145deg,#2d4253,#1b2d3c);border-color:#425969}
#panel-research.if-techplan .wot-tree-node.selected{outline:2px solid #edc887;outline-offset:2px;box-shadow:0 0 0 6px #dbad5c14,0 0 25px #c99b4b22}
#panel-research.if-techplan .tp-link{stroke:#53748a;stroke-width:1.5;opacity:.7}
#panel-research.if-techplan .tp-link-focus{stroke:#e5bf7d;stroke-width:3;opacity:1}
#panel-research.if-techplan .t3-starter-cell{grid-column:2/-1;display:flex;justify-content:center;align-items:center;min-height:88px}
#panel-research.if-techplan .t3-starter{width:250px!important;min-height:88px!important;display:grid;grid-template-columns:100px minmax(0,1fr);grid-template-rows:auto auto;gap:0 9px;padding:9px 12px}
#panel-research.if-techplan .t3-starter .wot-tree-node-visual{grid-column:1;grid-row:1/3;height:68px;margin:0}
#panel-research.if-techplan .t3-starter .wot-tree-node-meta{grid-column:2;grid-row:1;align-self:end;padding-bottom:4px}
#panel-research.if-techplan .t3-starter .tp-status{grid-column:2;grid-row:2;align-self:start;margin:0;padding-top:4px}
#panel-research.if-techplan .t2-row[data-tier="1"]>.t2-rank{min-height:88px}
#panel-research.if-techplan #tree-detail{grid-column:2;grid-row:2/6;display:block;padding:10px 15px 0;border-left:1px solid #628096;background:linear-gradient(160deg,#2d4a5e,#172e40 70%)}
#panel-research.if-techplan #tree-detail.hidden{display:none}
#panel-research.if-techplan #detail-preview{height:190px;min-height:190px;max-height:210px;background:radial-gradient(ellipse at 50% 60%,#9ab7c12b,transparent 65%);margin:0 -10px}
#panel-research.if-techplan #detail-preview .t2-detail-art{height:190px;filter:drop-shadow(0 18px 12px #0007)}
#panel-research.if-techplan #detail-name{font-size:28px;margin:4px 0 7px}
#panel-research.if-techplan #detail-meta{letter-spacing:.5px;color:#adc9dc;font-size:10px;margin-bottom:12px}
#panel-research.if-techplan .detail-stats{gap:7px;margin:9px 0}
#panel-research.if-techplan .detail-stats>div{background:#10243599;border:1px solid #7395ab33;padding:8px 10px;font-size:9px}
#panel-research.if-techplan .detail-stats>div strong{font-size:17px;margin-top:1px;color:#e5edf1}
#panel-research.if-techplan .tp-costs{border-color:#6b8da544;background:#0d2333b3;margin-top:10px;padding:10px 12px}
#panel-research.if-techplan .tp-costs>div{font-size:10px;margin:5px 0}
#panel-research.if-techplan .detail-actions{position:sticky;bottom:0;background:#132b3ef5;border-top:1px solid #638095;padding:12px 0;margin:14px 0 0;z-index:7;box-shadow:0 -12px 18px #142c3d88;display:flex;flex-wrap:wrap}
#panel-research.if-techplan .detail-actions>button{min-height:36px;font-size:10px;border-radius:3px}
#panel-research.if-techplan #btn-research-tank{background:linear-gradient(#e7c183,#c99b54);color:#182330;border:1px solid #e4c38b;font-weight:800}
#panel-research.if-techplan .tp-goal-button{font-size:10px!important}
#panel-research.if-techplan .tree-detail-close{display:block;margin-left:auto;margin-bottom:-26px;position:sticky;top:0;z-index:8}
#panel-research.if-techplan .t2-inspector-empty{grid-column:2;grid-row:2/6;background:#1c3447}
#panel-research.if-techplan .t3-minimap{grid-column:1;grid-row:5;align-self:end;justify-self:end;width:174px;margin:12px;padding:7px;background:#142b3beF;border:1px solid #608298;border-radius:5px;z-index:12;box-shadow:0 8px 25px #0007}
#panel-research.if-techplan .t3-minimap[hidden]{display:none}
#panel-research.if-techplan .t3-minimap header{font:700 8px/1.5 system-ui;color:#d4be97;letter-spacing:1px;display:flex;flex-direction:column;margin-bottom:5px}
#panel-research.if-techplan .t3-minimap header span{color:#8da9bc;font-size:8px;letter-spacing:0;font-weight:400}
#panel-research.if-techplan .t3-minimap canvas{display:block;width:160px;height:100px;cursor:crosshair;border:1px solid #354f61}
@media(max-width:1150px){#panel-research.if-techplan .wot-research-main{grid-template-columns:minmax(0,1fr) 310px}#panel-research.if-techplan .wot-tree-head{grid-template-columns:230px minmax(0,1fr) 185px;gap:0 12px}#panel-research.if-techplan .t3-context .wot-tree-progress-text{font-size:9px}#panel-research.if-techplan #detail-name{font-size:24px}}
@media(max-width:800px){#panel-research.if-techplan .wot-research-main{display:flex;flex-direction:column}#panel-research.if-techplan .wot-tree-head{display:grid;grid-template-columns:1fr auto;grid-template-rows:16px 30px 42px;gap:0;padding:9px 12px 5px;flex-shrink:0;min-height:102px}#panel-research.if-techplan .t3-brand{grid-column:1;grid-row:1;font-size:8px}#panel-research.if-techplan .wot-tree-head-left{grid-column:1;grid-row:2}#panel-research.if-techplan .wot-tree-head h2{font-size:21px}#panel-research.if-techplan #research-nation-tabs{grid-column:1/-1;grid-row:3;align-self:center;min-width:0;width:100%;padding:3px 0}#panel-research.if-techplan #research-nation-tabs .wot-research-nation{height:32px!important;width:34px!important;min-width:34px!important}#panel-research.if-techplan .t3-context{grid-column:2;grid-row:1/3;max-width:155px;gap:5px}#panel-research.if-techplan .t3-context .wot-tree-progress-text{font-size:8px}#panel-research.if-techplan #btn-tree-next{font-size:8px;min-height:24px}#panel-research.if-techplan .tp-controls{padding:7px 10px;flex-shrink:0;max-height:none}#panel-research.if-techplan .t3-branchbar{padding:0 10px 7px;min-height:33px;flex-shrink:0;gap:8px}#panel-research.if-techplan .t3-center{display:none}#panel-research.if-techplan .wot-tree-scroll{flex:1}#panel-research.if-techplan #tree-detail{position:absolute;top:auto;bottom:0;left:0;right:0;max-height:80%;width:100%;height:auto;padding:9px 16px 0;border-radius:9px 9px 0 0;border-top:1px solid #8ba2b0;z-index:40}#panel-research.if-techplan .t3-minimap{display:none}#panel-research.if-techplan .t2-inspector-empty{display:none}#panel-research.if-techplan #detail-preview{height:155px;min-height:155px}#panel-research.if-techplan #detail-preview .t2-detail-art{height:155px}}
