:root{color-scheme:dark;--bg:#071017;--panel:#0d1922;--line:#21313d;--txt:#e9f2f7;--muted:#8196a5;--cyan:#40e9ff;--green:#62f5a6}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 15% 0,#102a38,#071017 36%);color:var(--txt);font-family:Inter,Segoe UI,Arial,sans-serif}main{max-width:1500px;margin:auto;padding:28px}.hero{display:flex;justify-content:space-between;align-items:end;margin-bottom:18px}.hero h1{letter-spacing:.08em;margin:0;font-size:34px}.hero h1 span{color:var(--cyan)}.hero p,.foot{color:var(--muted)}.pill{border:1px solid var(--line);background:#0a151d;padding:12px 18px;border-radius:999px}.panel{background:rgba(13,25,34,.92);border:1px solid var(--line);border-radius:15px;box-shadow:0 15px 45px #0005}.controls{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;padding:18px}label{font-size:12px;color:var(--muted);display:flex;flex-direction:column;gap:7px}input,select{background:#071119;color:var(--txt);border:1px solid #263b49;border-radius:8px;padding:11px}button{background:var(--cyan);color:#001014;border:0;border-radius:8px;padding:12px 18px;font-weight:800;cursor:pointer}.secondary{background:#172733;color:var(--txt);border:1px solid #2b414f}.actions{display:flex;gap:8px;align-items:end}.status{padding:14px 4px;color:var(--muted)}.tablewrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:1050px}th,td{padding:12px 14px;border-bottom:1px solid #172733;text-align:right;font-variant-numeric:tabular-nums}th{font-size:11px;text-transform:uppercase;color:#7e98a8;position:sticky;top:0;background:#0d1922}th:nth-child(2),td:nth-child(2){text-align:left}tbody tr:hover{background:#10232e}.profit{color:var(--green);font-weight:750}.roi{color:var(--cyan);font-weight:750}.item{font-weight:650}.type{color:#617988;font-size:11px}@media(max-width:900px){.controls{grid-template-columns:1fr 1fr}.hero{align-items:flex-start;gap:12px;flex-direction:column}}
button:disabled { opacity: .55; cursor: wait; }
.empty { text-align:center; padding:28px !important; opacity:.8; }
.diag{padding:14px 18px;margin-bottom:14px;line-height:1.7}.diag small{color:var(--muted)}.good{color:var(--green);font-weight:800}.bad{color:#ff7b7b;font-weight:800}
.buylog{white-space:nowrap;padding:7px 10px;font-size:11px;background:#0f766e;color:#fff;border:0;border-radius:6px;cursor:pointer}.buylog:hover{filter:brightness(1.15)}

th.sortable{cursor:pointer;user-select:none;white-space:nowrap}th.sortable:hover{color:var(--cyan);background:#12232e}

.tabs{display:flex;gap:8px;margin:14px 0}.tab{background:#17202d;border:1px solid #334155;color:#cbd5e1}.tab.active{background:#2563eb;color:white;border-color:#3b82f6}

.journalTable{width:100%;border-collapse:collapse;min-width:1180px}
.journalTable th,.journalTable td{padding:8px 10px;border-top:1px solid #263142;text-align:left;vertical-align:middle}
.journalTable th{font-size:12px;opacity:.85;white-space:nowrap}
.journalTable button{margin:2px;font-size:11px;padding:7px 9px}
.journalTable button:disabled{opacity:.35;cursor:not-allowed}

.heroStats{display:flex;gap:10px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
.profitPill b{font-size:1.08em}
.profitPositive{color:#58e6a9}
.profitNegative{color:#ff6b6b}
@media(max-width:720px){.heroStats{justify-content:flex-start}}
.tabs{flex-wrap:wrap}
.contractDesc{text-align:left!important;min-width:360px;max-width:560px}
.contractItem{font-size:12px;line-height:1.45;margin-top:3px;color:#d6e4ec}
.contractItem span{color:var(--muted);margin-left:6px;white-space:nowrap}
.contractTitle{font-size:12px;color:var(--cyan);font-weight:650;margin-top:2px}
.controls small{color:var(--muted);line-height:1.4}

/* V1.9.6 Auto-scan */
.autoPanel{border:1px solid rgba(255,255,255,.12)}
.autoHead{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}.autoHead>div{display:flex;flex-direction:column;gap:4px}.autoHead small{opacity:.72}.autoGrid{display:flex;flex-wrap:wrap;align-items:end;gap:10px}.autoGrid label{min-width:140px}.autoGrid .check{min-width:auto}.autoStatus{margin-top:10px;font-size:13px;opacity:.85}.autoHead button.danger{background:#6f2830}


/* V1.10.2 - full-window market workspace */
main{max-width:none;width:100%;margin:0;padding:14px 16px 24px}
.hero{margin-bottom:10px}
.hero h1{font-size:30px}
.tabs{margin:10px 0}
.tablewrap{width:100%;max-width:none;overflow:auto;max-height:calc(100vh - 210px);border-radius:12px}
.tablewrap table{width:max-content;min-width:100%}
.tablewrap th{position:sticky;top:0;z-index:5;box-shadow:0 1px 0 #263b49}
.tablewrap th:nth-child(2),.tablewrap td:nth-child(2){position:sticky;left:0;z-index:3;background:#0d1922;box-shadow:1px 0 0 #263b49}
.tablewrap th:nth-child(2){z-index:7}
.tablewrap tbody tr:hover td:nth-child(2){background:#10232e}
.controls{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:9px;padding:12px}
.controls input,.controls select{padding:8px}
.controls.collapsed{display:none}
.controlToggle{margin:6px 0 8px;padding:7px 12px;font-size:11px;background:#172733;color:var(--txt);border:1px solid #2b414f}
.status{padding:8px 4px}
th,td{padding:9px 10px;white-space:nowrap}
.contractDesc{white-space:normal}
#purchaseHistory{overflow:auto;max-height:calc(100vh - 250px)}
#purchaseHistory .journalTable{width:max-content;min-width:100%}
#purchaseHistory .journalTable th{position:sticky;top:0;z-index:5;background:#0d1922}
#purchaseHistory .journalTable th:nth-child(2),#purchaseHistory .journalTable td:nth-child(2){position:sticky;left:0;z-index:3;background:#0d1922;box-shadow:1px 0 0 #263b49}
#purchaseHistory .journalTable th:nth-child(2){z-index:7}
@media(max-width:900px){main{padding:8px}.controls{grid-template-columns:repeat(auto-fit,minmax(135px,1fr))}.tablewrap{max-height:calc(100vh - 180px)}}

/* ===== V1.12.2 EVE-style interface ===== */
:root{--eve-bg:#090b0c;--eve-panel:#151819;--eve-panel2:#1b1f21;--eve-line:#353b3e;--eve-text:#c7ccce;--eve-muted:#81898d}
html,body{background:#090b0c!important;color:var(--eve-text)!important;font-family:"Arial Narrow","Roboto Condensed","Segoe UI",Arial,sans-serif!important;font-size:12px!important}
.shell{width:90vw!important;max-width:none!important;margin:10px auto!important;padding-left:154px!important;box-sizing:border-box!important;position:relative!important}
header{padding:5px 8px!important;border-bottom:1px solid var(--eve-line)!important;background:transparent!important}
h1{font-size:16px!important;letter-spacing:.7px!important}h2,h3{font-size:13px!important}
.panel{background:var(--eve-panel)!important;border:1px solid var(--eve-line)!important;border-radius:0!important;box-shadow:none!important}
.controls{padding:7px!important;gap:5px 8px!important}
label,input,select,button,.status,table{font-size:11px!important}
input,select{background:#0d0f10!important;color:#c7ccce!important;border:1px solid #454b4e!important;border-radius:0!important;padding:3px 5px!important}
button,.tab{background:linear-gradient(#2b2f31,#17191a)!important;color:#c9ced0!important;border:1px solid #454b4e!important;border-radius:0!important;padding:5px 8px!important;font-weight:500!important}
button:hover,.tab:hover,.tab.active{background:#343a3d!important;color:#fff!important;border-color:#697378!important}
.actions{display:flex!important;justify-content:flex-start!important;align-items:center!important;gap:5px!important;margin-left:0!important;margin-right:auto!important}
.tablewrap{overflow:auto!important;max-height:70vh!important}
table{width:100%!important;border-collapse:collapse!important;white-space:nowrap!important}
th{background:#101214!important;color:#aeb4b7!important;font-size:10px!important;font-weight:500!important;text-align:left!important;padding:4px 6px!important;border-bottom:1px solid #414649!important;position:sticky!important;top:0!important;z-index:2}
td{font-size:11px!important;padding:3px 6px!important;border-bottom:1px solid #262a2c!important;color:#c8ccce!important}
tbody tr:nth-child(even){background:#111315!important}tbody tr:hover{background:#252a2d!important}
.status{padding:5px 8px!important;color:#98a1a5!important}.profit{color:#72d7aa!important}.roi{color:#a8c9d8!important}
.premium-opportunity{outline:1px solid #746a45!important;background:#242218!important}

/* left market navigation */
.tabs{position:absolute!important;left:0!important;top:52px!important;width:142px!important;display:flex!important;flex-direction:column!important;gap:2px!important;z-index:50!important}
.tabs>.tab,.tabs>.hub-wrap{width:100%!important;box-sizing:border-box!important}
.tabs .tab{width:100%!important;text-align:left!important;box-sizing:border-box!important}
.hub-wrap{position:relative!important}
.hub-fly{display:none;position:absolute;left:100%;top:0;width:110px;background:#151819;border:1px solid #4b5154;padding:2px;z-index:200}
.hub-wrap:hover>.hub-fly{display:flex;flex-direction:column}
.hub-fly button{width:100%!important;text-align:left!important;margin:0!important;border-width:0 0 1px 0!important}
@media(max-width:900px){.shell{width:98vw!important;padding-left:0!important}.tabs{position:static!important;width:100%!important;flex-direction:row!important}.hub-fly{display:none!important}}

/* V1.12.3 hierarchical navigation: reserved column, no overlay */
.shell{display:grid!important;grid-template-columns:150px minmax(0,1fr)!important;column-gap:10px!important;padding-left:0!important}
.shell>header,.shell>.auto-panel,.shell>.panel,.shell>.status,.shell>#jitaPane,.shell>#regionsPane,.shell>#amarrPaneV1118,.shell>#dodixiePaneV1118,.shell>#genericMarketPaneV123{grid-column:2!important}
.market-nav{grid-column:1!important;grid-row:1 / span 30!important;position:sticky!important;left:auto!important;top:10px!important;width:150px!important;height:max-content!important;align-self:start!important;display:flex!important;flex-direction:column!important;gap:3px!important;z-index:5!important}
.nav-group{position:relative!important;width:100%!important}
.nav-root{width:100%!important;text-align:left!important}
.nav-sub{display:none;position:absolute;left:100%;top:0;width:120px;background:#151819;border:1px solid #4b5154;padding:2px;z-index:100}
.nav-group:hover>.nav-sub{display:flex;flex-direction:column}
.nav-sub button{width:100%!important;text-align:left!important}
@media(max-width:900px){.shell{display:block!important}.market-nav{position:static!important;width:100%!important}.nav-sub{position:static!important;width:100%!important}}

/* ===== V1.12.4 single-line command bar ===== */
.shell{
 display:block!important;
 width:98vw!important;
 max-width:none!important;
 margin:4px auto!important;
 padding:0!important;
}
.eve-topbar-v124{
 display:grid!important;
 grid-template-columns:minmax(440px,1.25fr) minmax(420px,1.1fr) minmax(520px,1.35fr) minmax(420px,1.1fr)!important;
 gap:5px!important;
 align-items:stretch!important;
 width:100%!important;
 margin:0 0 6px 0!important;
}
.eve-topbar-v124 .topcell{
 min-width:0!important;
 background:#141718!important;
 border:1px solid #353b3e!important;
 padding:4px!important;
 box-sizing:border-box!important;
 display:flex!important;
 align-items:center!important;
 overflow:visible!important;
}
.eve-topbar-v124 .navcell{align-items:stretch!important}
.eve-topbar-v124 .market-nav,
.eve-topbar-v124 .tabs{
 position:static!important;
 width:100%!important;
 height:auto!important;
 display:flex!important;
 flex-direction:row!important;
 gap:2px!important;
 grid-column:auto!important;
 grid-row:auto!important;
 align-self:center!important;
 z-index:50!important;
}
.eve-topbar-v124 .nav-group{width:auto!important;flex:1 1 auto!important;min-width:72px!important}
.eve-topbar-v124 .nav-root{height:100%!important;white-space:nowrap!important;padding:4px 6px!important;font-size:10px!important}
.eve-topbar-v124 .nav-sub{left:0!important;top:100%!important;width:120px!important}
.eve-topbar-v124 .eve-topbar-v124 .autocell>.panel{
 width:100%!important;margin:0!important;border:0!important;background:transparent!important;padding:0!important;
 display:flex!important;align-items:center!important;gap:5px!important;flex-wrap:wrap!important
}
.eve-topbar-v124 .autocell label{margin:0!important}
.eve-topbar-v124 .autocell input{max-width:105px!important}
.eve-topbar-v124 .esicell header{
 width:100%!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;min-height:0!important
}
.eve-topbar-v124 .esicell h1{font-size:12px!important;margin:0 0 3px!important}
.eve-topbar-v124 .esicell p{font-size:9px!important;margin:0!important}
#jitaPane,#regionsPane,#amarrPaneV1118,#dodixiePaneV1118,#genericMarketPaneV123{width:100%!important}
@media(max-width:1550px){
 .eve-topbar-v124{grid-template-columns:1.15fr 1fr 1.25fr 1fr!important}
 .eve-topbar-v124 .nav-root{font-size:9px!important;padding:3px 4px!important}
}
@media(max-width:1100px){
 .eve-topbar-v124{display:flex!important;overflow-x:auto!important}
 .eve-topbar-v124 .topcell{min-width:380px!important}
}

/* ===== V1.12.5 FIX: actual root is <main>, not .shell ===== */
body>main{width:98vw!important;max-width:none!important;margin:4px auto!important;padding:0!important;display:block!important}
.eve-topbar-v125{
 width:100%!important;display:grid!important;
 grid-template-columns:minmax(470px,1.35fr) minmax(430px,1.15fr) minmax(560px,1.5fr) minmax(390px,1fr)!important;
 gap:4px!important;align-items:stretch!important;margin:0 0 5px!important;
}
.eve-topbar-v125>.topcell{min-width:0!important;background:#141718!important;border:1px solid #353b3e!important;padding:3px!important;box-sizing:border-box!important;display:flex!important;align-items:center!important}
.eve-topbar-v125 .market-nav{position:static!important;inset:auto!important;width:100%!important;height:auto!important;display:flex!important;flex-direction:row!important;gap:2px!important;z-index:50!important}
.eve-topbar-v125 .nav-group{width:auto!important;flex:1 1 0!important;min-width:70px!important}
.eve-topbar-v125 .nav-root{width:100%!important;height:100%!important;white-space:nowrap!important;font-size:9px!important;padding:4px!important}
.eve-topbar-v125 .nav-sub{left:0!important;top:100%!important}
.eve-topbar-v125 .eve-topbar-v125 .eve-topbar-v125 .autoPanel{width:100%!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important}
.eve-topbar-v125 .autoHead{display:flex!important;align-items:center!important;gap:5px!important}
.eve-topbar-v125 .autoHead small{display:none!important}
.eve-topbar-v125 .autoGrid{display:flex!important;align-items:end!important;gap:4px!important;flex-wrap:nowrap!important}
.eve-topbar-v125 .autoGrid label{font-size:8px!important;min-width:0!important}
.eve-topbar-v125 .autoGrid input{width:82px!important;min-width:0!important;padding:2px 3px!important}
.eve-topbar-v125 .autoStatus{font-size:8px!important;margin-top:2px!important}
.eve-topbar-v125 .diag{width:100%!important;margin:0!important;padding:3px!important;border:0!important;background:transparent!important;font-size:9px!important}
.eve-topbar-v125 .diag small{font-size:8px!important}
.hero{margin-top:0!important}
@media(max-width:1450px){
 .eve-topbar-v125{display:flex!important;overflow-x:auto!important}
 .eve-topbar-v125>.topcell{min-width:360px!important}
}

/* ===== V1.12.6 — near-black EVE window palette ===== */
:root{
 --eve-bg:#080909!important;
 --eve-panel:#0c0d0d!important;
 --eve-panel2:#101111!important;
 --eve-line:#252829!important;
 --eve-text:#b9bdbf!important;
 --eve-muted:#6f7679!important;
 --eve-hover:#17191a!important;
}
html,body{background:#070808!important;color:#b9bdbf!important}
body>main{background:#070808!important}
.panel,.eve-topbar-v125>.topcell{background:#0c0d0d!important;border-color:#252829!important}
header,.diag,.autoPanel{background:#0c0d0d!important;border-color:#252829!important}
input,select{background:#090a0a!important;border-color:#303334!important;color:#b9bdbf!important}
button,.tab,.nav-root{
 background:linear-gradient(#171919,#0d0e0e)!important;
 border-color:#303334!important;color:#b9bdbf!important
}
button:hover,.tab:hover,.tab.active,.nav-root:hover{
 background:#1b1d1e!important;border-color:#484d4f!important;color:#e0e2e3!important
}
.nav-sub,.hub-fly{background:#0d0e0e!important;border-color:#303334!important}
th{background:#0b0c0c!important;border-color:#2a2d2e!important;color:#9ea4a6!important}
td{border-color:#1b1d1e!important;color:#b9bdbf!important}
tbody tr:nth-child(even){background:#090a0a!important}
tbody tr:hover{background:#151718!important}
.tablewrap{background:#080909!important}
.status{color:#858d90!important}

/* ===== V1.13.0 app layout ===== */
body{padding-left:176px!important;background:#0b0c0c!important}
#side130{position:fixed;left:0;top:0;bottom:0;width:166px;background:#202121;border-right:1px solid #343738;z-index:2000;padding:8px 7px;box-sizing:border-box;color:#cfd3d4;font-size:12px}
.brand130{font-size:20px;font-weight:800;margin:4px 5px 17px;color:#eee}.brand130 span{font-size:12px;letter-spacing:2px;color:#25d8bb}.nt130{font-weight:800;margin:12px 6px 3px;color:#eee}.sb130{display:block;width:100%;text-align:left;border:0!important;background:transparent!important;color:#25d8bb!important;padding:5px 8px!important}.sb130:hover,.sb130.active{background:#303232!important;color:white!important}.foot130{position:absolute;bottom:12px;left:12px;color:#687174;font-size:9px;line-height:16px}
body>main,.page130{width:calc(100vw - 186px)!important;max-width:none!important;margin:5px 5px 5px 0!important;box-sizing:border-box}.ph130{height:42px;background:#171919;border:1px solid #303334;padding:8px 12px;display:flex;align-items:center;gap:12px;box-sizing:border-box}.ph130 b{font-size:14px}.ph130 span{font-size:10px;color:#788286}
.cards130{display:grid;grid-template-columns:repeat(6,1fr);gap:6px;margin:7px 0}.cards130>div{background:#1b1c1c;border:1px solid #303334;padding:11px 12px;min-height:62px}.cards130 span{display:block;font-size:10px;font-weight:700;color:#aeb4b6;margin-bottom:7px}.cards130 b{font-size:19px}.cards130>div:first-child b,.cards130>div:nth-child(3) b,.g130{color:#25d8bb!important}
.charts130{display:grid;grid-template-columns:1fr 1fr;gap:7px}.charts130>div{height:335px;background:#1b1c1c;border:1px solid #303334;padding:10px}.charts130 canvas{width:100%;height:290px}.bottom130{display:grid;grid-template-columns:1fr 2fr;gap:7px;margin-top:7px}.bottom130>div{background:#1b1c1c;border:1px solid #303334;padding:10px;min-height:100px}.bottom130 #recent130 div{border-bottom:1px solid #292c2d;padding:4px}.bottom130 #recent130 span{float:right;color:#889295}
.tools130{display:flex;gap:5px;padding:6px;background:#141616;border:1px solid #303334;border-top:0}.tools130 input{width:320px!important}.sheetWrap130{overflow:auto;height:calc(100vh - 105px);background:#0d0e0e;border:1px solid #303334}.sheet130{width:100%;border-collapse:collapse}.sheet130 th{position:sticky;top:0;background:#232525!important;border:1px solid #3a3d3e!important;padding:5px 7px!important}.sheet130 td{border:1px solid #292c2d!important;padding:4px 7px!important;min-width:72px;height:20px}.excel130 td{cursor:cell}.excel130 td:hover{outline:1px solid #25d8bb;outline-offset:-1px}.ce130{width:100%!important;height:20px!important;padding:1px 3px!important;border:1px solid #25d8bb!important}
.pick130{position:relative;min-width:270px}.pick130>input{width:260px!important}.pick130>div{position:absolute;left:0;top:24px;width:330px;max-height:260px;overflow:auto;background:#101212;border:1px solid #424748;z-index:3000}.pick130 button{display:block;width:100%;text-align:left;border:0!important;border-bottom:1px solid #292c2d!important;background:#151717!important}.pick130 button:hover{background:#292d2e!important;color:#25d8bb!important}
@media(max-width:1150px){.cards130{grid-template-columns:repeat(3,1fr)}.charts130{grid-template-columns:1fr}}

/* ===== V1.14.0 genuine multi-page shell ===== */
body{padding-left:176px!important;background:#0b0c0c!important;margin:0!important;color:#c8ccce!important}
.app-side{position:fixed;left:0;top:0;bottom:0;width:166px;background:#202121;border-right:1px solid #353839;z-index:9999;padding:9px 7px;box-sizing:border-box;font-size:12px}
.app-brand{font-size:20px;font-weight:800;color:#eee;margin:3px 5px 18px}.app-brand span{font-size:12px;letter-spacing:2px;color:#27d9bd}.nav-title{font-weight:800;color:#eee;margin:12px 7px 3px}.app-side>a{display:block;color:#27d9bd;text-decoration:none;padding:5px 8px}.app-side>a:hover,.app-side>a.active{background:#303232;color:#fff}.side-auth{position:absolute;bottom:14px;left:12px;right:10px;color:#778184;font-size:9px}.side-auth a{display:block;color:#27d9bd;margin-top:5px}
.app-main{width:calc(100vw - 186px)!important;max-width:none!important;margin:5px!important;padding:0!important;display:block!important}.app-page-head{height:42px;background:#171919;border:1px solid #303334;padding:11px 12px;box-sizing:border-box;font-size:14px}
.kpis{display:grid;grid-template-columns:repeat(6,1fr);gap:6px;margin:7px 0}.kpis>div{background:#1b1c1c;border:1px solid #303334;padding:11px}.kpis span{display:block;font-size:10px;font-weight:700;margin-bottom:7px}.kpis b{font-size:19px}.kpis>div:first-child b,.kpis>div:nth-child(3) b{color:#27d9bd}
.dash-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:7px}.dash-card{height:335px;background:#1b1c1c;border:1px solid #303334;padding:10px;box-sizing:border-box}.dash-card canvas{width:100%;height:280px}.dash-grid.small .dash-card{height:135px}.recent-row{padding:4px;border-bottom:1px solid #292c2d}.recent-row b{float:right}
.page-tools{display:flex;align-items:center;gap:5px;background:#151717;border:1px solid #303334;border-top:0;padding:6px}.page-tools input{width:320px!important}.sheet-wrap{height:calc(100vh - 92px);overflow:auto;border:1px solid #303334;background:#0d0e0e}.data-sheet{width:100%;border-collapse:collapse;font-size:11px}.data-sheet th{position:sticky;top:0;background:#232525!important;border:1px solid #3a3d3e!important;padding:5px 7px!important}.data-sheet td{border:1px solid #292c2d!important;padding:4px 7px!important}.data-sheet tr:hover td{background:#171919!important}.buy{color:#62a9e8}.sell{color:#df8c6e}.excel td{cursor:cell}.excel td:hover{outline:1px solid #27d9bd;outline-offset:-1px}.excel td>input{width:100%!important;box-sizing:border-box}.picker{position:relative;min-width:280px}.picker>input{width:270px!important}.picker>div{position:absolute;top:24px;left:0;width:350px;max-height:280px;overflow:auto;background:#101212;border:1px solid #444;z-index:999}.picker button{display:block;width:100%;text-align:left;border:0!important;border-bottom:1px solid #292c2d!important}.notice{padding:8px;color:#7f898d;font-size:10px}
body[data-page="trading"]>main.app-main{width:calc(100vw - 186px)!important;margin:5px!important}
@media(max-width:1200px){.kpis{grid-template-columns:repeat(3,1fr)}.dash-grid{grid-template-columns:1fr}}

/* ===== V1.14.1 ===== */
.side-trading-group{position:relative}
.side-trading-root{display:flex!important;justify-content:space-between;color:#27d9bd!important;text-decoration:none;padding:5px 8px}
.side-trading-group:hover>.side-trading-root,body[data-page="trading"] .side-trading-root{background:#303232;color:#fff!important}
.side-trading-fly{display:none;position:absolute;left:100%;top:-8px;width:420px;background:#171919;border:1px solid #3a3e3f;box-shadow:0 8px 24px #000;z-index:12000;padding:8px;grid-template-columns:repeat(4,1fr);gap:5px}
.side-trading-group:hover .side-trading-fly{display:grid}
.fly-group{border-right:1px solid #303334;padding:2px 6px}.fly-group:last-of-type{border-right:0}.fly-group b{display:block;font-size:9px;color:#aeb5b7;margin-bottom:5px}.fly-group a,.fly-region{display:block;color:#27d9bd;text-decoration:none;padding:4px;font-size:10px}.fly-group a:hover,.fly-region:hover{background:#303232;color:#fff}.fly-region{grid-column:1/-1;border-top:1px solid #303334;margin-top:2px}
.trading-footer{font-size:9px;color:#596164;border-top:1px solid #202425;margin-top:12px;padding:7px 3px;text-align:right}

/* Trading page: no dashboard/header chrome, only scanner content */
body[data-page="trading"] .app-page-head{display:none!important}
body[data-page="trading"] .cards130,
body[data-page="trading"] .premium-legend,
body[data-page="trading"] .autoPanel,
body[data-page="trading"] .diag{display:none!important}

/* Dashboard recent positions graphical fix */
body[data-page="dashboard"] .dash-grid.small{align-items:stretch}
body[data-page="dashboard"] .dash-grid.small .dash-card{height:170px!important;min-height:170px!important;overflow:hidden!important}
body[data-page="dashboard"] #recent{height:122px!important;overflow-y:auto!important;overflow-x:hidden!important;padding-right:4px}
body[data-page="dashboard"] .recent-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:12px!important;min-height:22px!important;padding:3px 4px!important;box-sizing:border-box!important;white-space:nowrap!important}
body[data-page="dashboard"] .recent-row span{overflow:hidden!important;text-overflow:ellipsis!important;min-width:0!important}
body[data-page="dashboard"] .recent-row b{float:none!important;text-align:right!important;min-width:85px!important;color:#dce1e2!important}

/* V1.14.2: purchase history belongs ONLY to /history */
body[data-page="trading"] #purchasesPanel,
body[data-page="trading"] #purchasePanel,
body[data-page="trading"] #journalPanel,
body[data-page="trading"] .purchase-journal,
body[data-page="trading"] .journal-panel{display:none!important}

.data-sheet .row-actions{white-space:nowrap;min-width:125px}.row-actions button{font-size:9px!important;padding:3px 7px!important;margin-right:4px!important}

/* V1.14.4 history calculated columns */
.data-sheet td.calc-cell{background:#111414!important;font-variant-numeric:tabular-nums}
.data-sheet td.profit-pos{color:#27d9bd!important;font-weight:700}
.data-sheet td.profit-neg{color:#d96b72!important;font-weight:700}

/* V1.14.5 — history is read-only except explicit action buttons */
body[data-page="history"] .excel td{cursor:default!important}
body[data-page="history"] .excel td:hover{outline:none!important}
body[data-page="history"] .row-actions{min-width:205px!important}
.qty-na{color:#4b5153;font-size:10px}

/* V1.14.8 — active/archive history tabs */
.history-tabs{display:flex;gap:2px;background:#0d0f0f;border:1px solid #303334;border-bottom:0;padding:5px 6px 0}
.history-tabs button{border:1px solid #303334!important;border-bottom:0!important;background:#171919!important;color:#7f898c!important;padding:6px 13px!important}
.history-tabs button.active{background:#242727!important;color:#27d9bd!important}
.history-tabs span{font-size:9px;color:#6f797c;margin-left:4px}
.row-actions{min-width:270px!important}
.row-actions .archive-btn{color:#d7b15b!important}

/* V1.14.9 — global readability +25%
   Use zoom so text and its controls/rows scale together without breaking the dense EVE layout. */
html{zoom:1.25}
body{width:80vw!important;min-height:80vh}
.app-side{height:80vh}

/* V1.14.10 — draggable column widths */
body[data-page="history"] .sheet-wrap{overflow:auto!important}
body[data-page="history"] .data-sheet{width:max-content!important;min-width:100%!important;table-layout:fixed}
body[data-page="history"] .data-sheet th{position:sticky;overflow:visible!important}
body[data-page="history"] .data-sheet td{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body[data-page="history"] .col-resizer{position:absolute;right:-3px;top:0;width:7px;height:100%;cursor:col-resize;z-index:20;user-select:none}
body[data-page="history"] .col-resizer:hover{background:rgba(39,217,189,.35)}
body.resizing-col{cursor:col-resize!important;user-select:none!important}
body.resizing-col *{cursor:col-resize!important}

/* V1.14.11 — compact history */
body[data-page="history"] .data-sheet th,
body[data-page="history"] .data-sheet td{padding-left:5px!important;padding-right:5px!important}
body[data-page="history"] .data-sheet th:first-child{width:24px!important}

/* V1.14.12 — dense history table: keep +25% readable text, remove wasted cell space */
body[data-page="history"] .sheet-wrap{height:calc(100vh - 84px)!important}
body[data-page="history"] .data-sheet{
  width:100%!important;
  min-width:100%!important;
  table-layout:auto!important;
}
body[data-page="history"] .data-sheet th{
  height:22px!important;
  line-height:14px!important;
  padding:2px 4px!important;
  white-space:nowrap!important;
}
body[data-page="history"] .data-sheet td{
  height:21px!important;
  min-height:21px!important;
  line-height:14px!important;
  padding:1px 4px!important;
  white-space:nowrap!important;
}
body[data-page="history"] .data-sheet .row-actions{
  min-width:0!important;
  width:1%!important;
}
body[data-page="history"] .row-actions button{
  padding:1px 5px!important;
  margin:0 2px 0 0!important;
  line-height:14px!important;
  min-height:18px!important;
}
/* Let text-heavy columns take what they need; numeric columns stay tight. */
body[data-page="history"] .data-sheet th:nth-child(2),
body[data-page="history"] .data-sheet td:nth-child(2){width:1%;white-space:nowrap}
body[data-page="history"] .data-sheet th:nth-child(4),
body[data-page="history"] .data-sheet td:nth-child(4){width:1%;white-space:nowrap}
body[data-page="history"] .data-sheet th:nth-child(n+5):not(:last-child),
body[data-page="history"] .data-sheet td:nth-child(n+5):not(:last-child){width:1%;white-space:nowrap}

/* V1.14.13 — ITEM no longer absorbs all remaining screen width */
body[data-page="history"] .data-sheet{
  width:max-content!important;
  min-width:0!important;
  table-layout:auto!important;
}
body[data-page="history"] .data-sheet th,
body[data-page="history"] .data-sheet td{width:auto!important;max-width:none}
body[data-page="history"] .data-sheet th:nth-child(3),
body[data-page="history"] .data-sheet td:nth-child(3){
  width:250px!important;
  min-width:250px!important;
  max-width:250px!important;
  text-align:left!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
body[data-page="history"] .data-sheet th:nth-child(4),
body[data-page="history"] .data-sheet td:nth-child(4){
  width:145px!important;
  min-width:145px!important;
  max-width:145px!important;
}
body[data-page="history"] .data-sheet th:nth-child(13),
body[data-page="history"] .data-sheet td:nth-child(13){
  width:150px!important;
  min-width:150px!important;
  max-width:150px!important;
}

/* V1.14.14 — sortable headers */
body[data-page="history"] .sortable-head{cursor:pointer!important;padding-right:15px!important}
body[data-page="history"] .sortable-head:after{content:"↕";position:absolute;right:7px;color:#566064;font-size:9px}
body[data-page="history"] .sortable-head.sort-asc:after{content:"▲";color:#27d9bd}
body[data-page="history"] .sortable-head.sort-desc:after{content:"▼";color:#27d9bd}

/* V1.14.15 — Trading scanner navigation lives ONLY in left sidebar */
body[data-page="trading"] .market-nav,
body[data-page="trading"] .tabs,
body[data-page="trading"] .eve-topbar-v124,
body[data-page="trading"] .eve-topbar-v125,
body[data-page="trading"] #eveTopBarV124,
body[data-page="trading"] #eveTopBarV125{
  display:none!important;
}
body[data-page="trading"] main{
  padding-top:0!important;
  margin-top:0!important;
}

/* V1.14.16 — ALL columns resizable via colgroup */
body[data-page="history"] .data-sheet{
  table-layout:fixed!important;
  width:max-content!important;
  min-width:0!important;
}
body[data-page="history"] .data-sheet col{min-width:0!important}
body[data-page="history"] .data-sheet th,
body[data-page="history"] .data-sheet td{
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
body[data-page="history"] .data-sheet th{position:sticky!important;overflow:visible!important}
body[data-page="history"] .data-sheet .col-resizer{
  display:block!important;
  position:absolute!important;
  right:-4px!important;
  top:0!important;
  bottom:0!important;
  width:9px!important;
  height:auto!important;
  cursor:col-resize!important;
  z-index:50!important;
  user-select:none!important;
}
body[data-page="history"] .data-sheet .col-resizer:hover{
  background:rgba(39,217,189,.45)!important;
}

/* V1.14.17 — sortable Trading Scanner table headers */
body[data-page="trading"] th.trade-sortable{
  cursor:pointer!important;
  position:relative!important;
  padding-right:15px!important;
  user-select:none!important;
}
body[data-page="trading"] th.trade-sortable:after{
  content:"↕";position:absolute;right:4px;color:#4f595c;font-size:9px;
}
body[data-page="trading"] th.trade-sortable.sort-asc:after{content:"▲";color:#27d9bd}
body[data-page="trading"] th.trade-sortable.sort-desc:after{content:"▼";color:#27d9bd}

/* V1.14.18 — identical left-aligned SCAN action placement on every scanner */
body[data-page="trading"] .scan-actions-left{
  display:flex!important;
  flex-direction:row!important;
  justify-content:flex-start!important;
  align-items:center!important;
  text-align:left!important;
  gap:4px!important;
}
body[data-page="trading"] .primary-scan-left{
  order:-999!important;
  margin-left:0!important;
  margin-right:4px!important;
  float:none!important;
}

/* V1.14.19 — SCAN row is always a full-width row aligned to the LEFT */
body[data-page="trading"] section.controls > .actions,
body[data-page="trading"] .controls > .actions,
body[data-page="trading"] .scan-actions-left{
  grid-column:1 / -1!important;
  width:100%!important;
  flex-basis:100%!important;
  display:flex!important;
  justify-content:flex-start!important;
  align-items:center!important;
  text-align:left!important;
  margin-left:0!important;
  padding-left:0!important;
  float:none!important;
}
body[data-page="trading"] section.controls > .actions > button:first-child,
body[data-page="trading"] .controls > .actions > button:first-child,
body[data-page="trading"] .primary-scan-left{
  margin-left:0!important;
  order:-9999!important;
}
/* All scanner result tables now share one visual column model */
body[data-page="trading"] .tablewrap table{table-layout:auto!important}
body[data-page="trading"] .tablewrap th,
body[data-page="trading"] .tablewrap td{white-space:nowrap!important}

.market-mover-banner{height:38px;display:flex;align-items:center;border:1px solid #30383a;background:#101415;margin:0 0 10px;overflow:hidden}.mover-label{height:100%;display:flex;align-items:center;padding:0 11px;font-size:10px;font-weight:800;letter-spacing:1px;color:#27d9bd;background:#151b1c;border-right:1px solid #30383a;white-space:nowrap;z-index:2}.mover-viewport{flex:1;overflow:hidden;height:100%;display:flex;align-items:center}.mover-track{white-space:nowrap;min-width:100%;font-size:11px}.mover-loop{display:inline-block;min-width:max-content;animation:marketTicker 80s linear infinite;padding-left:100%}.mover-loop:hover{animation-play-state:paused}.mover-item{display:inline-flex;align-items:center;gap:5px;margin:0 10px;color:#cbd2d4}.mover-item small{color:#778184}.mover-up b{color:#27d9bd}.mover-down b{color:#e06572}.mover-dot{color:#414b4e}.mover-loading{color:#697477;padding-left:12px}.mover-progress{font-size:9px;color:#657073;padding:0 8px;border-left:1px solid #30383a;white-space:nowrap}@keyframes marketTicker{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* V1.14.22 — Dashboard ESI account controls */
.esi-character{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:46px}
.esi-character strong{font-size:12px;color:#d8dfe0}.esi-character span{font-size:10px;color:#8b9699}
.esi-connect,.esi-disconnect{display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:0 12px;border:1px solid #2d8f83;background:#142522;color:#27d9bd!important;font:700 10px "Arial Narrow","Segoe UI",sans-serif;letter-spacing:.7px;text-decoration:none;cursor:pointer;white-space:nowrap}
.esi-connect:hover,.esi-disconnect:hover{border-color:#27d9bd;background:#19312d}
.esi-disconnect{border-color:#70444a;background:#251719;color:#e47a85!important}
.esi-disconnect:hover{border-color:#e06572;background:#321c20}

/* V1.14.23 — Rentability Calculator */
.calc-layout{display:grid;grid-template-columns:minmax(420px,.9fr) minmax(440px,1.1fr);gap:10px}.calc-card{border:1px solid #30383a;background:#111516;padding:14px}.calc-card h3{font-size:10px;letter-spacing:1px;color:#8d999c;margin:0 0 10px}.calc-card h3:not(:first-child){margin-top:18px}.calc-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.calc-grid label{font-size:10px;color:#879194;display:flex;flex-direction:column;gap:5px}.calc-grid input,.calc-grid select,.tax-toggle input:not([type=checkbox]){height:31px;background:#090c0d;border:1px solid #343c3e;color:#d9e0e1;padding:0 9px;font:600 12px "Segoe UI",sans-serif}.tax-grid{display:grid;gap:6px}.tax-toggle{display:grid;grid-template-columns:20px 1fr 90px 20px;align-items:center;gap:7px;border:1px solid #293032;background:#0d1112;padding:6px 8px;font-size:10px;color:#aab3b5}.tax-toggle em{font-style:normal;color:#667174}.calc-presets{display:flex;align-items:center;gap:6px;margin-top:10px}.calc-presets button{height:28px}.calc-presets span{font-size:9px;color:#657073;margin-left:5px}.calc-kpis{display:grid;grid-template-columns:1fr 1fr;gap:7px}.calc-kpis>div{border:1px solid #293133;background:#0c1011;padding:10px;min-height:58px;display:flex;flex-direction:column;justify-content:center}.calc-kpis span{font-size:9px;color:#707b7e;letter-spacing:.6px}.calc-kpis b{font-size:16px;color:#d8dfe0;margin-top:4px}.calc-kpis small{font-size:11px;color:#27d9bd;margin-top:3px}.calc-kpis .calc-profit,.calc-kpis .calc-roi{border-color:#24685f}.calc-kpis .calc-profit b,.calc-kpis .calc-roi b{color:#27d9bd}.calc-kpis .negative{border-color:#70444a}.calc-kpis .negative b,.calc-kpis .negative small{color:#e06572}.calc-formula{margin-top:10px;border-top:1px solid #293133;padding-top:10px;color:#697477;font:10px monospace}@media(max-width:1000px){.calc-layout{grid-template-columns:1fr}.calc-grid{grid-template-columns:1fr}}

/* V1.14.24 — compact Rentability Calculator, designed to fit one desktop viewport */
body[data-page="calculator"] .app-main{padding-top:6px!important;padding-bottom:6px!important}
body[data-page="calculator"] .app-page-head{height:28px!important;min-height:28px!important;margin-bottom:6px!important}
body[data-page="calculator"] .calc-layout{gap:7px!important;grid-template-columns:minmax(360px,.92fr) minmax(390px,1.08fr)!important}
body[data-page="calculator"] .calc-card{padding:9px!important}
body[data-page="calculator"] .calc-card h3{margin:0 0 6px!important;font-size:9px!important}
body[data-page="calculator"] .calc-card h3:not(:first-child){margin-top:10px!important}
body[data-page="calculator"] .calc-grid{gap:6px!important}
body[data-page="calculator"] .calc-grid label{gap:3px!important;font-size:9px!important}
body[data-page="calculator"] .calc-grid input,
body[data-page="calculator"] .calc-grid select,
body[data-page="calculator"] .tax-toggle input:not([type=checkbox]){height:26px!important;font-size:10px!important;padding:0 7px!important}
body[data-page="calculator"] .tax-grid{gap:4px!important}
body[data-page="calculator"] .tax-toggle{padding:3px 6px!important;min-height:26px!important;font-size:9px!important;grid-template-columns:18px 1fr 72px 18px!important}
body[data-page="calculator"] .calc-presets{margin-top:6px!important;gap:4px!important}
body[data-page="calculator"] .calc-presets button{height:24px!important;font-size:9px!important;padding:0 8px!important}
body[data-page="calculator"] .calc-presets span{font-size:8px!important}
body[data-page="calculator"] .calc-kpis{gap:5px!important}
body[data-page="calculator"] .calc-kpis>div{padding:6px 8px!important;min-height:44px!important}
body[data-page="calculator"] .calc-kpis span{font-size:8px!important}
body[data-page="calculator"] .calc-kpis b{font-size:13px!important;margin-top:2px!important}
body[data-page="calculator"] .calc-kpis small{font-size:9px!important;margin-top:1px!important}
body[data-page="calculator"] .calc-formula{margin-top:6px!important;padding-top:6px!important;font-size:9px!important}
@media(max-height:760px) and (min-width:1001px){
 body[data-page="calculator"]{zoom:.92!important}
}

/* V1.14.25 — Calculator no longer stretches over the full monitor */
body[data-page="calculator"] .app-page-head{
  width:min(100%,1080px)!important;
  box-sizing:border-box!important;
}
body[data-page="calculator"] .calc-layout{
  width:min(100%,1080px)!important;
  max-width:1080px!important;
  grid-template-columns:520px 550px!important;
  justify-content:start!important;
  align-items:start!important;
  box-sizing:border-box!important;
}
body[data-page="calculator"] .calc-card{width:auto!important;min-width:0!important;box-sizing:border-box!important}
body[data-page="calculator"] .calc-grid{grid-template-columns:1fr 1fr!important}
body[data-page="calculator"] .calc-results{max-width:550px!important}
@media(max-width:1180px){
 body[data-page="calculator"] .app-page-head,
 body[data-page="calculator"] .calc-layout{width:100%!important;max-width:100%!important}
 body[data-page="calculator"] .calc-layout{grid-template-columns:1fr 1fr!important}
}
@media(max-width:820px){
 body[data-page="calculator"] .calc-layout{grid-template-columns:1fr!important}
 body[data-page="calculator"] .calc-results{max-width:none!important}
}

/* V1.14.26 — Price Check */
body[data-page="price-check"] .app-main{max-width:1180px}.pc-card{border:1px solid #30383a;background:#111516;padding:10px;margin-bottom:8px}.pc-toolbar{display:flex;align-items:end;gap:7px;margin-bottom:8px}.pc-toolbar label{display:flex;flex-direction:column;gap:3px;color:#768184;font-size:9px;letter-spacing:.6px}.pc-toolbar select{height:28px;min-width:150px;background:#090c0d;border:1px solid #343c3e;color:#dce2e3;padding:0 8px}.pc-toolbar button{height:28px;color:#27d9bd}.pc-toolbar span{font-size:9px;color:#697477;margin:0 0 7px 5px}.pc-card textarea{width:100%;height:125px;resize:vertical;box-sizing:border-box;background:#090c0d;border:1px solid #343c3e;color:#dce2e3;padding:9px;font:11px monospace}.pc-summary{display:grid;grid-template-columns:100px 140px repeat(3,1fr);gap:5px;margin-bottom:7px}.pc-summary>div{border:1px solid #293133;background:#0c1011;padding:7px}.pc-summary span{display:block;color:#687376;font-size:8px}.pc-summary b{display:block;color:#d8dfe0;font-size:13px;margin-top:2px}.pc-tablewrap{overflow:auto}.pc-table{width:100%;border-collapse:collapse;font-size:10px}.pc-table th{color:#7e898c;text-align:left;font-size:8px;letter-spacing:.6px;padding:6px;border-bottom:1px solid #30383a}.pc-table td{padding:7px 6px;border-bottom:1px solid #242b2d;white-space:nowrap}.pc-table td:first-child{min-width:220px}.pc-table td b{display:block;color:#dce2e3}.pc-table td small{display:block;color:#657073;font-size:8px;margin-top:2px}.pc-table .pc-selected{background:#12201e;color:#27d9bd}.pc-empty{text-align:center!important;color:#657073!important;padding:25px!important}
.contract-controls label{display:flex;flex-direction:column;gap:3px;font-size:8px;color:#778285}.contract-controls input{width:110px;height:26px;background:#090c0d;border:1px solid #343c3e;color:#dce2e3;padding:0 7px}.contract-controls button{height:28px}.contract-controls span{font-size:9px;color:#697477;margin-bottom:7px}.contract-tablewrap{overflow:auto;border:1px solid #30383a}.contract-table{width:100%;border-collapse:collapse;font-size:10px}.contract-table th,.contract-table td{padding:6px;border-bottom:1px solid #293133;text-align:left;white-space:nowrap}.contract-items{white-space:normal!important;min-width:220px}.positive{color:#27d9bd}.negative{color:#e06572}
/* V1.14.31 */
body[data-page="dashboard"] #buyOrders small,body[data-page="dashboard"] #sellOrders small{font-size:9px;color:#7f8b8e;font-weight:500;white-space:nowrap}
body[data-page="orders"] th.sortable-head{cursor:pointer;user-select:none}
body[data-page="orders"] th.sort-asc:after{content:' ▲';color:#27d9bd}
body[data-page="orders"] th.sort-desc:after{content:' ▼';color:#27d9bd}

.buy-order-import{border:1px solid #5d5532;background:#17160f;margin:0 0 7px;padding:7px}.buy-order-import-head{display:flex;align-items:center;gap:10px;margin-bottom:5px}.buy-order-import-head b{font-size:9px;letter-spacing:.7px;color:#e1c95c}.buy-order-import-head span{font-size:8px;color:#8f896b}.buy-order-import-body{display:flex;gap:6px;align-items:stretch}.buy-order-import textarea{flex:1;height:36px;min-height:36px;max-height:90px;resize:vertical;background:#0b0b08;border:1px solid #514b2f;color:#d9d5bd;padding:6px;font:9px monospace;box-sizing:border-box}.buy-order-import button{width:135px;border-color:#71652e;color:#e1c95c;background:#211f12}.buy-order-import-status{font-size:8px;color:#9e9671;margin-top:4px;min-height:10px}body[data-page="history"] tr.open-buy-order-row td{background:rgba(222,190,65,.10)!important}body[data-page="history"] tr.open-buy-order-row:hover td{background:rgba(222,190,65,.17)!important}body[data-page="history"] tr.open-buy-order-row td:first-child{box-shadow:inset 3px 0 0 #c8aa3f}

body[data-page="history"] .buy-filled-btn{border-color:#b89c35!important;color:#f0d65c!important;background:#29240f!important;font-weight:700!important}
body[data-page="history"] .buy-filled-btn:hover{background:#3a3212!important}

/* V1.14.35 — compact BUY order import */
body[data-page="history"] .buy-order-import{width:min(720px,calc(100vw - 250px));max-width:720px;box-sizing:border-box}
body[data-page="history"] .buy-order-import-head{max-width:700px}
body[data-page="history"] .buy-order-import-body{display:grid;grid-template-columns:minmax(280px,560px) 135px;gap:6px;width:100%;align-items:stretch}
body[data-page="history"] .buy-order-import textarea{width:100%;min-width:0}
body[data-page="history"] .buy-order-import button{width:135px;min-width:135px}
@media(max-width:900px){body[data-page="history"] .buy-order-import{width:100%;max-width:100%}body[data-page="history"] .buy-order-import-body{grid-template-columns:1fr 125px}}

body[data-page="dashboard"] #buyOrders,body[data-page="dashboard"] #sellOrders{display:flex;flex-direction:column;align-items:flex-start;gap:2px}
body[data-page="dashboard"] #buyOrders small,body[data-page="dashboard"] #sellOrders small{display:block;font-size:9px;color:#899496}
body[data-page="history"] .delete-forever-btn{border-color:#743d43!important;color:#e47b84!important;background:#241416!important}
body[data-page="history"] .delete-forever-btn:hover{background:#3a191d!important}

/* V1.14.40 — fast item search in History */
body[data-page="history"] #filter{min-width:230px;max-width:330px}
body[data-page="history"] .history-search-count{font-size:8px;color:#7f8b8e;margin-left:6px;white-space:nowrap}

body[data-page="trading"] td.eve-market-link{cursor:pointer;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:2px}
body[data-page="trading"] td.eve-market-link:hover{filter:brightness(1.35)}

.eve-market-link{cursor:pointer;text-decoration:underline dotted;text-underline-offset:2px}
.eve-market-link:hover{filter:brightness(1.35)}

/* V1.14.59 — draggable persistent column widths */
.col-resize-grip{
 position:absolute;right:-3px;top:0;width:7px;height:100%;
 cursor:col-resize;z-index:20;user-select:none;
}
.col-resize-grip:hover{border-right:1px solid #55d9d2}
body[data-page="trading"] main table,
body[data-page="history"] main table{table-layout:fixed}
body[data-page="trading"] main .tablewrap,
body[data-page="history"] main .tablewrap,
body[data-page="trading"] main .table-wrap,
body[data-page="history"] main .table-wrap{overflow-x:auto!important}

.orders-split{display:flex;flex-direction:column;gap:18px}.orders-panel{border:1px solid #353b3e;background:#111516}.orders-section-title{font-weight:700;letter-spacing:.08em;padding:9px 11px;border-bottom:1px solid #353b3e}.buy-panel .orders-section-title{color:#e4c96b}.sell-panel .orders-section-title{color:#55d9d2}.orders-scroll{overflow-x:auto;width:100%}.orders-table{width:max-content;min-width:100%;white-space:nowrap}

/* V1.14.65 — History BUY / SELL split */
.history-order-panel{margin-top:14px;border:1px solid #353b3e;background:#111516}
.history-order-title{padding:9px 11px;font-weight:700;letter-spacing:.08em;border-bottom:1px solid #353b3e}
.history-buy-panel .history-order-title{color:#e4c96b}
.history-sell-panel .history-order-title{color:#55d9d2}
.history-order-panel .sheet-wrap{margin:0;overflow-x:auto}

/* V1.14.66 — History SELL first + compact stacked tables */
.history-order-panel{margin-top:0!important;margin-bottom:0!important}
.history-sell-panel{margin-top:8px!important}
.history-buy-panel{margin-top:-1px!important}
.history-sell-panel + .history-buy-panel{border-top-color:#353b3e}
.history-order-title{padding-top:6px!important;padding-bottom:6px!important}

/* V1.14.67 — History tables flow naturally like EVE Market Data.
   Critical: undo any inherited/flex/min-height rule that stretches the SELL panel. */
body[data-page="history"] .app-main{
  display:block!important;
  min-height:0!important;
}
body[data-page="history"] .history-order-panel{
  display:block!important;
  position:relative!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  flex:none!important;
  margin:0!important;
  padding:0!important;
}
body[data-page="history"] .history-sell-panel{
  margin-top:6px!important;
}
body[data-page="history"] .history-buy-panel{
  margin-top:-1px!important;
}
body[data-page="history"] .history-order-panel .sheet-wrap{
  display:block!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow-x:auto!important;
  overflow-y:visible!important;
  margin:0!important;
  padding:0!important;
}
body[data-page="history"] .history-order-panel table{
  margin:0!important;
  height:auto!important;
}
body[data-page="history"] .history-order-panel tbody{
  height:auto!important;
}
body[data-page="history"] .history-order-title{
  margin:0!important;
  padding:5px 8px!important;
  min-height:0!important;
  line-height:16px!important;
}

/* V1.14.68 — History BUY and SELL always share the same table width.
   Both wrappers use the full available History width; columns may still be resized independently. */
body[data-page="history"] .history-order-panel{
  width:100%!important;
  box-sizing:border-box!important;
}
body[data-page="history"] .history-order-panel .sheet-wrap{
  width:100%!important;
  box-sizing:border-box!important;
}
body[data-page="history"] .history-order-panel table.data-sheet{
  width:100%!important;
  min-width:100%!important;
  box-sizing:border-box!important;
}

/* V1.14.70 — BUY copies SELL geometry */
body[data-page="history"] .history-buy-panel,
body[data-page="history"] .history-sell-panel{width:100%!important;box-sizing:border-box!important}
body[data-page="history"] .history-buy-panel .sheet-wrap,
body[data-page="history"] .history-sell-panel .sheet-wrap{width:100%!important;box-sizing:border-box!important}

/* V1.14.71 — BUY/SELL same outer width, independent column schemas */
body[data-page="history"] .history-buy-panel table.data-sheet,
body[data-page="history"] .history-sell-panel table.data-sheet{
  width:100%!important;
  min-width:100%!important;
  table-layout:auto!important;
}
body[data-page="history"] .history-buy-panel th,
body[data-page="history"] .history-buy-panel td{
  white-space:nowrap;
}

/* V1.14.73 — resize grip for History */
body[data-page="history"] th{position:relative}
body[data-page="history"] .history-col-grip{
 position:absolute;right:-3px;top:0;width:7px;height:100%;
 cursor:col-resize;z-index:50;user-select:none;
}
body[data-page="history"] .history-col-grip:hover{border-right:1px solid #55d9d2}
body[data-page="history"].resizing-col,
body[data-page="history"].resizing-col *{cursor:col-resize!important;user-select:none!important}
body[data-page="history"] .history-order-panel table.data-sheet{table-layout:fixed!important}

/* V1.14.74 — History strictly contained in viewport: no horizontal overflow. */
body[data-page="history"]{overflow-x:hidden!important}
body[data-page="history"] .app-main,
body[data-page="history"] main,
body[data-page="history"] .history-order-panel,
body[data-page="history"] .history-order-panel .sheet-wrap{
 width:100%!important;max-width:100%!important;min-width:0!important;
 overflow-x:hidden!important;box-sizing:border-box!important;
}
body[data-page="history"] .history-order-panel table.data-sheet{
 display:table!important;width:100%!important;max-width:100%!important;min-width:0!important;
 table-layout:fixed!important;border-collapse:collapse!important;box-sizing:border-box!important;
}
body[data-page="history"] .history-order-panel colgroup{display:none!important}
body[data-page="history"] .history-order-panel th,
body[data-page="history"] .history-order-panel td{
 min-width:0!important;max-width:none!important;width:auto!important;
 padding:2px 3px!important;font-size:9px!important;line-height:14px!important;height:18px!important;
 box-sizing:border-box!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
}
body[data-page="history"] .history-order-panel th{font-size:8px!important;letter-spacing:0!important}
body[data-page="history"] .history-order-panel button{
 font-size:8px!important;line-height:12px!important;height:15px!important;min-height:15px!important;
 padding:0 2px!important;margin:0!important;white-space:nowrap!important;
}
/* SELL: exactly 100% */
body[data-page="history"] .history-sell-panel th:nth-child(1){width:2%!important}
body[data-page="history"] .history-sell-panel th:nth-child(2){width:4%!important}
body[data-page="history"] .history-sell-panel th:nth-child(3){width:14%!important}
body[data-page="history"] .history-sell-panel th:nth-child(4){width:10%!important}
body[data-page="history"] .history-sell-panel th:nth-child(5){width:5%!important}
body[data-page="history"] .history-sell-panel th:nth-child(6){width:6%!important}
body[data-page="history"] .history-sell-panel th:nth-child(7){width:6%!important}
body[data-page="history"] .history-sell-panel th:nth-child(8){width:5%!important}
body[data-page="history"] .history-sell-panel th:nth-child(9){width:5%!important}
body[data-page="history"] .history-sell-panel th:nth-child(10){width:6%!important}
body[data-page="history"] .history-sell-panel th:nth-child(11){width:5%!important}
body[data-page="history"] .history-sell-panel th:nth-child(12){width:7%!important}
body[data-page="history"] .history-sell-panel th:nth-child(13){width:7%!important}
body[data-page="history"] .history-sell-panel th:nth-child(14){width:6%!important}
body[data-page="history"] .history-sell-panel th:nth-child(15){width:12%!important}
/* BUY: exactly 100% */
body[data-page="history"] .history-buy-panel th:nth-child(1){width:2%!important}
body[data-page="history"] .history-buy-panel th:nth-child(2){width:6%!important}
body[data-page="history"] .history-buy-panel th:nth-child(3){width:20%!important}
body[data-page="history"] .history-buy-panel th:nth-child(4){width:22%!important}
body[data-page="history"] .history-buy-panel th:nth-child(5){width:8%!important}
body[data-page="history"] .history-buy-panel th:nth-child(6){width:9%!important}
body[data-page="history"] .history-buy-panel th:nth-child(7){width:9%!important}
body[data-page="history"] .history-buy-panel th:nth-child(8){width:12%!important}
body[data-page="history"] .history-buy-panel th:nth-child(9){width:12%!important}
body[data-page="history"] .history-col-grip{display:none!important}

/* V1.14.75 — History width = 95% of available screen */
body[data-page="history"] .history-order-panel{
  width:95%!important;
  max-width:95%!important;
  margin-left:0!important;
  margin-right:auto!important;
}
body[data-page="history"] .history-order-panel .sheet-wrap{
  width:100%!important;
  max-width:100%!important;
}
body[data-page="history"] .history-order-panel table.data-sheet{
  width:100%!important;
  max-width:100%!important;
}

/* V1.14.78 — History-style viewport fit for ALL Trading Scanners */
body[data-page="trading"]{overflow-x:hidden!important}
body[data-page="trading"] .app-main,
body[data-page="trading"] main{
 max-width:100%!important;min-width:0!important;overflow-x:hidden!important;box-sizing:border-box!important;
}
body[data-page="trading"] .panel.tablewrap,
body[data-page="trading"] .tablewrap{
 width:95%!important;max-width:95%!important;min-width:0!important;
 margin-left:0!important;margin-right:auto!important;overflow-x:hidden!important;box-sizing:border-box!important;
}
body[data-page="trading"] table{
 display:table!important;width:100%!important;max-width:100%!important;min-width:0!important;
 table-layout:fixed!important;border-collapse:collapse!important;box-sizing:border-box!important;
}
body[data-page="trading"] table colgroup{display:none!important}
body[data-page="trading"] table th,
body[data-page="trading"] table td{
 width:auto!important;min-width:0!important;max-width:none!important;
 overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
 box-sizing:border-box!important;padding:2px 3px!important;height:19px!important;line-height:14px!important;font-size:9px!important;
}
body[data-page="trading"] table th{font-size:8px!important;letter-spacing:0!important}
body[data-page="trading"] table td .item,
body[data-page="trading"] table td .type{
 max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
}
body[data-page="trading"] table td .type{font-size:7px!important}
body[data-page="trading"] table td button{
 display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;
 height:16px!important;min-height:16px!important;padding:0 2px!important;margin:0!important;
 overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:8px!important;line-height:13px!important;
}
body[data-page="trading"] .actions,
body[data-page="trading"] .scan-actions-left{
 width:95%!important;max-width:95%!important;justify-content:flex-start!important;box-sizing:border-box!important;
}
body[data-page="trading"] .actions button,
body[data-page="trading"] .scan-actions-left button{width:auto!important;max-width:180px!important}

/* Canonical scanner: 17 columns, exactly 100% of its 95%-wide table. */
body[data-page="trading"] table[data-viewport-fit="main"] th:nth-child(1){width:2%!important}
body[data-page="trading"] table[data-viewport-fit="main"] th:nth-child(2){width:13%!important}
body[data-page="trading"] table[data-viewport-fit="main"] th:nth-child(3){width:6%!important}
body[data-page="trading"] table[data-viewport-fit="main"] th:nth-child(4){width:6%!important}
body[data-page="trading"] table[data-viewport-fit="main"] th:nth-child(5){width:6%!important}
body[data-page="trading"] table[data-viewport-fit="main"] th:nth-child(6){width:6%!important}
body[data-page="trading"] table[data-viewport-fit="main"] th:nth-child(7){width:6%!important}
body[data-page="trading"] table[data-viewport-fit="main"] th:nth-child(8){width:6%!important}
body[data-page="trading"] table[data-viewport-fit="main"] th:nth-child(9){width:5%!important}
body[data-page="trading"] table[data-viewport-fit="main"] th:nth-child(10){width:6%!important}
body[data-page="trading"] table[data-viewport-fit="main"] th:nth-child(11){width:5%!important}
body[data-page="trading"] table[data-viewport-fit="main"] th:nth-child(12){width:5%!important}
body[data-page="trading"] table[data-viewport-fit="main"] th:nth-child(13){width:5%!important}
body[data-page="trading"] table[data-viewport-fit="main"] th:nth-child(14){width:6%!important}
body[data-page="trading"] table[data-viewport-fit="main"] th:nth-child(15){width:5%!important}
body[data-page="trading"] table[data-viewport-fit="main"] th:nth-child(16){width:6%!important}
body[data-page="trading"] table[data-viewport-fit="main"] th:nth-child(17){width:6%!important}

/* Generic route: 12 columns, exactly 100%. */
body[data-page="trading"] #gmTable th:nth-child(1){width:20%!important}
body[data-page="trading"] #gmTable th:nth-child(2){width:8%!important}
body[data-page="trading"] #gmTable th:nth-child(3){width:8%!important}
body[data-page="trading"] #gmTable th:nth-child(4){width:8%!important}
body[data-page="trading"] #gmTable th:nth-child(5){width:8%!important}
body[data-page="trading"] #gmTable th:nth-child(6){width:7%!important}
body[data-page="trading"] #gmTable th:nth-child(7){width:7%!important}
body[data-page="trading"] #gmTable th:nth-child(8){width:7%!important}
body[data-page="trading"] #gmTable th:nth-child(9){width:8%!important}
body[data-page="trading"] #gmTable th:nth-child(10){width:8%!important}
body[data-page="trading"] #gmTable th:nth-child(11){width:5%!important}
body[data-page="trading"] #gmTable th:nth-child(12){width:6%!important}
body[data-page="trading"] .tablewrap::-webkit-scrollbar:horizontal{height:0!important}

/* ============================================================
   V1.14.79 — Scanner parameters use the same 95% viewport-fit rule
   ============================================================ */
body[data-page="trading"] .active-scanner-header{
 width:95%!important;max-width:95%!important;box-sizing:border-box!important;
 margin:4px 0 6px 0!important;padding:5px 8px!important;
 border:1px solid #30383b!important;background:#111516!important;
 overflow:hidden!important;white-space:nowrap!important;text-overflow:ellipsis!important;
 font-size:11px!important;line-height:16px!important;
}
body[data-page="trading"] .active-scanner-kicker{
 color:#6d858d!important;font-size:9px!important;margin-right:8px!important;
}
body[data-page="trading"] #activeScannerName{color:#59ddd5!important;font-weight:600!important}

/* Parameter/form areas: strictly 95%, never enlarge the page. */
body[data-page="trading"] .controls,
body[data-page="trading"] .filters,
body[data-page="trading"] .scanner-controls,
body[data-page="trading"] .scan-controls,
body[data-page="trading"] .toolbar,
body[data-page="trading"] form{
 width:95%!important;max-width:95%!important;min-width:0!important;
 box-sizing:border-box!important;overflow:hidden!important;
}

/* Dense grid like the History table: all controls stay inside the viewport. */
body[data-page="trading"] .controls,
body[data-page="trading"] .filters,
body[data-page="trading"] .scanner-controls,
body[data-page="trading"] .scan-controls{
 display:grid!important;
 grid-template-columns:repeat(6,minmax(0,1fr))!important;
 gap:5px 8px!important;
 align-items:end!important;
}
body[data-page="trading"] .controls > *,
body[data-page="trading"] .filters > *,
body[data-page="trading"] .scanner-controls > *,
body[data-page="trading"] .scan-controls > *{
 min-width:0!important;max-width:100%!important;box-sizing:border-box!important;
}
body[data-page="trading"] .controls label,
body[data-page="trading"] .filters label,
body[data-page="trading"] .scanner-controls label,
body[data-page="trading"] .scan-controls label{
 min-width:0!important;max-width:100%!important;
 overflow:hidden!important;text-overflow:ellipsis!important;
 font-size:9px!important;line-height:12px!important;
}
body[data-page="trading"] input,
body[data-page="trading"] select{
 width:100%!important;max-width:100%!important;min-width:0!important;
 height:22px!important;padding:1px 4px!important;
 box-sizing:border-box!important;font-size:10px!important;
 overflow:hidden!important;text-overflow:ellipsis!important;
}
body[data-page="trading"] input[type="checkbox"]{
 width:13px!important;height:13px!important;
}

/* Parameter action rows stay left aligned and within the same 95%. */
body[data-page="trading"] .controls .actions,
body[data-page="trading"] .filters .actions,
body[data-page="trading"] .scanner-controls .actions,
body[data-page="trading"] .scan-controls .actions{
 display:flex!important;width:auto!important;max-width:100%!important;
 gap:5px!important;justify-content:flex-start!important;align-items:center!important;
}
body[data-page="trading"] .controls button,
body[data-page="trading"] .filters button,
body[data-page="trading"] .scanner-controls button,
body[data-page="trading"] .scan-controls button{
 width:auto!important;max-width:100%!important;height:22px!important;
 padding:0 7px!important;font-size:9px!important;white-space:nowrap!important;
 overflow:hidden!important;text-overflow:ellipsis!important;
}

/* Smaller screens: retain 95%, just reduce columns instead of overflowing. */
@media(max-width:1500px){
 body[data-page="trading"] .controls,
 body[data-page="trading"] .filters,
 body[data-page="trading"] .scanner-controls,
 body[data-page="trading"] .scan-controls{grid-template-columns:repeat(5,minmax(0,1fr))!important}
}
@media(max-width:1150px){
 body[data-page="trading"] .controls,
 body[data-page="trading"] .filters,
 body[data-page="trading"] .scanner-controls,
 body[data-page="trading"] .scan-controls{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}

/* V1.14.80 — all 17 scanner columns must remain visible inside 95%. */
body[data-page="trading"] .tablewrap{
 width:95%!important;max-width:95%!important;overflow:hidden!important;
}
body[data-page="trading"] table[data-viewport-fit="main"]{
 width:100%!important;max-width:100%!important;min-width:0!important;
 table-layout:fixed!important;
}
body[data-page="trading"] table[data-viewport-fit="main"] th,
body[data-page="trading"] table[data-viewport-fit="main"] td{
 overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
 min-width:0!important;max-width:none!important;
}
/* 17 columns = exactly 100%; all are explicitly represented. */
body[data-page="trading"] table[data-viewport-fit="main"] th:nth-child(1){width:2%!important}
body[data-page="trading"] table[data-viewport-fit="main"] th:nth-child(2){width:14%!important}
body[data-page="trading"] table[data-viewport-fit="main"] th:nth-child(3){width:6%!important}
body[data-page="trading"] table[data-viewport-fit="main"] th:nth-child(4){width:6%!important}
body[data-page="trading"] table[data-viewport-fit="main"] th:nth-child(5){width:6%!important}
body[data-page="trading"] table[data-viewport-fit="main"] th:nth-child(6){width:6%!important}
body[data-page="trading"] table[data-viewport-fit="main"] th:nth-child(7){width:6%!important}
body[data-page="trading"] table[data-viewport-fit="main"] th:nth-child(8){width:6%!important}
body[data-page="trading"] table[data-viewport-fit="main"] th:nth-child(9){width:5%!important}
body[data-page="trading"] table[data-viewport-fit="main"] th:nth-child(10){width:6%!important}
body[data-page="trading"] table[data-viewport-fit="main"] th:nth-child(11){width:5%!important}
body[data-page="trading"] table[data-viewport-fit="main"] th:nth-child(12){width:5%!important}
body[data-page="trading"] table[data-viewport-fit="main"] th:nth-child(13){width:5%!important}
body[data-page="trading"] table[data-viewport-fit="main"] th:nth-child(14){width:6%!important}
body[data-page="trading"] table[data-viewport-fit="main"] th:nth-child(15){width:5%!important}
body[data-page="trading"] table[data-viewport-fit="main"] th:nth-child(16){width:6%!important}
body[data-page="trading"] table[data-viewport-fit="main"] th:nth-child(17){width:5%!important}

/* V1.14.85 — Dashboard 95% + trading profile */
body[data-page="dashboard"] .app-main{width:calc((100vw - 186px)*.95)!important;max-width:calc((100vw - 186px)*.95)!important;min-width:0!important;box-sizing:border-box!important;overflow-x:hidden!important}
body[data-page="dashboard"] .trading-profile-line{width:100%;max-width:100%;box-sizing:border-box;min-height:28px;margin:0 0 7px;padding:5px 8px;background:#111516;border:1px solid #303334;display:flex;align-items:center;gap:8px;overflow:hidden;white-space:nowrap;font-size:9px;color:#9ba5a7}
body[data-page="dashboard"] .profile-label{color:#28d7bd;font-weight:700;letter-spacing:.8px}
body[data-page="dashboard"] .skill-low{color:#ff646d;background:#271416;border:1px solid #612a30;padding:2px 5px}
body[data-page="dashboard"] .skill-ok{color:#52dfb7;background:#10211d;border:1px solid #245849;padding:2px 5px}
body[data-page="dashboard"] .profile-sep{height:15px;border-left:1px solid #3a4244;margin:0 2px}
body[data-page="dashboard"] .standing b{color:#dce3e4}
body[data-page="dashboard"] .standing-na{color:#6f797b}

/* V1.14.86 — Dashboard is 95% of TOTAL viewport, including sidebar in the 100vw reference.
   With the fixed sidebar, content width is therefore 95vw - sidebar offset, never 95% of remaining area. */
body[data-page="dashboard"] .app-main{
 width:calc(95vw - 186px)!important;
 max-width:calc(95vw - 186px)!important;
 min-width:0!important;
 box-sizing:border-box!important;
 overflow-x:hidden!important;
}
body[data-page="dashboard"] .app-main>*{max-width:100%!important;box-sizing:border-box!important}
body[data-page="dashboard"] .dash-grid,
body[data-page="dashboard"] .kpis,
body[data-page="dashboard"] .market-mover-banner,
body[data-page="dashboard"] .app-page-head,
body[data-page="dashboard"] .trading-profile-line{width:100%!important;max-width:100%!important}
.chart-tooltip{
 position:fixed;z-index:99999;display:none;pointer-events:none;
 padding:6px 9px;border:1px solid #3c5d59;background:#0b1111;color:#dce7e5;
 font:600 11px "Segoe UI",Arial,sans-serif;white-space:nowrap;
 box-shadow:0 3px 12px rgba(0,0,0,.45)
}
.chart-tooltip.show{display:block}

/* V1.14.89 — TRUE 95% physical viewport width.
   The whole UI uses html{zoom:1.25}; therefore 95vw in CSS renders as 118.75% visually.
   76vw * 1.25 = 95vw physical screen width. */
body[data-page="dashboard"] .app-main{
 width:calc(76vw - 186px)!important;
 max-width:calc(76vw - 186px)!important;
 min-width:0!important;
 box-sizing:border-box!important;
 overflow-x:hidden!important;
}
body[data-page="dashboard"] .app-main>*,
body[data-page="dashboard"] .dash-grid,
body[data-page="dashboard"] .kpis,
body[data-page="dashboard"] .market-mover-banner,
body[data-page="dashboard"] .app-page-head,
body[data-page="dashboard"] .trading-profile-line{
 max-width:100%!important;
 box-sizing:border-box!important;
}

/* V1.14.90 — reliable Daily Profits hover hit-zones */
body[data-page="dashboard"] .profit-hit-zone{
 position:absolute;z-index:20;background:transparent;cursor:pointer;pointer-events:auto;
}
body[data-page="dashboard"] .profit-hit-zone:hover{
 outline:1px solid rgba(255,255,255,.10);
}
#profitBarTooltip.chart-tooltip{
 position:fixed!important;z-index:2147483647!important;display:none!important;pointer-events:none!important;
 padding:7px 10px!important;background:#080d0d!important;border:1px solid #2bd3bb!important;
 color:#e5f4f1!important;font-size:11px!important;font-weight:700!important;white-space:nowrap!important;
}
#profitBarTooltip.chart-tooltip.show{display:block!important}

/* V1.14.92 — small X button for text/search fields */
.input-clear-wrap{position:relative!important;display:inline-flex;align-items:center;min-width:0}
.input-clear-wrap>input[type="text"],.input-clear-wrap>input[type="search"]{padding-right:22px!important;width:100%;box-sizing:border-box}
.input-clear-x{
 position:absolute;right:5px;top:50%;transform:translateY(-50%);z-index:5;
 display:none;width:14px;height:14px;padding:0;border:0;background:transparent;
 color:#758184;font:700 12px/14px Arial,sans-serif;text-align:center;cursor:pointer;
}
.input-clear-x:hover{color:#ff6670}
.input-clear-wrap.has-value>.input-clear-x{display:block}

/* V1.14.93 — clear button in every clearable entry area */
.clear-field-host{position:relative!important}
.clear-field-host>input:not([type]),
.clear-field-host>input[type="text"],.clear-field-host>input[type="search"],
.clear-field-host>input[type="number"],.clear-field-host>input[type="date"],
.clear-field-host>input[type="datetime-local"],.clear-field-host>input[type="time"],
.clear-field-host>input[type="email"],.clear-field-host>input[type="url"],
.clear-field-host>input[type="tel"],.clear-field-host>textarea{padding-right:22px!important;box-sizing:border-box!important}
.input-clear-x-v2{
 position:absolute!important;right:4px!important;top:50%!important;transform:translateY(-50%)!important;
 z-index:50!important;display:none!important;width:15px!important;height:15px!important;padding:0!important;
 margin:0!important;border:0!important;background:#111719!important;color:#899496!important;
 font:700 12px/15px Arial,sans-serif!important;text-align:center!important;cursor:pointer!important;
}
.input-clear-x-v2.show{display:block!important}
.input-clear-x-v2:hover{color:#ff6570!important;background:#241315!important}

.top24-banner{width:100%;height:28px;box-sizing:border-box;display:flex;align-items:center;overflow:hidden;background:#0d1213;border:1px solid #2b3234;font-size:9px;white-space:nowrap}.top24-banner>b{height:100%;display:flex;align-items:center;padding:0 10px;color:#28d7bd;border-right:1px solid #2b3234}.top24-track{display:flex;gap:8px;padding:0 10px;overflow:hidden;color:#c6cecf}.top24-track strong{color:#28d7bd}.top24-track em{color:#7f8a8c;font-style:normal}.top24-track i{color:#465052;font-style:normal}

.app-footer{width:100%!important;box-sizing:border-box!important;text-align:center!important;margin:24px auto 0!important;padding:10px 0 6px!important;color:#64777c!important;font-size:9px!important;line-height:14px!important;background:transparent!important;border:0!important;clear:both!important}

/* V1.14.96 — clear X physically inside its input */
.input-clear-x-v2{
 top:0!important;left:0!important;right:auto!important;transform:none!important;
}

/* V1.14.97 — connected character card in sidebar */
.side-auth{display:flex!important;flex-direction:column!important;gap:7px!important;padding:9px 8px!important;box-sizing:border-box!important}
.side-character{display:flex;align-items:center;gap:7px;min-width:0}
.side-character-avatar{width:34px;height:34px;flex:0 0 34px;object-fit:cover;border:1px solid #35484a;background:#0b0e0f}
.side-character-info{display:flex;flex-direction:column;min-width:0;gap:2px}
.side-character-info strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#cbd5d6;font-size:9px;font-weight:600}
.side-character-info span{color:#28d7bd;font-size:7px;letter-spacing:.5px}
.side-logout,.side-login{width:100%!important;box-sizing:border-box!important;min-height:22px!important;padding:4px 6px!important;text-align:center!important;border:1px solid #493034!important;background:#141011!important;color:#e76470!important;font-size:8px!important;cursor:pointer!important;text-decoration:none!important}
.side-logout:hover{border-color:#8b3c45!important;background:#241416!important;color:#ff7a84!important}
.side-login{border-color:#28544e!important;background:#0e1716!important;color:#2bd3bb!important}
.side-login:hover{border-color:#2bd3bb!important}

.vol-up{color:#28d7bd;font-weight:700;margin-left:3px}

/* V1.14.104 — BUY import textarea clear button */
.buy-order-import-field{padding-right:24px!important;box-sizing:border-box!important}
.input-clear-x-v2.buy-import-clear-x{
 width:17px!important;height:17px!important;min-width:17px!important;
 padding:0!important;line-height:15px!important;text-align:center!important;
 z-index:20!important;
}

/* V1.14.106 — Contracts page aligned with the 95% application viewport */
.contracts-page main,
.contracts-page .main,
.contracts-page .content,
.contracts-page .page-content,
.contracts-page .contracts-wrap,
/* Clear × belongs inside each Contracts input, not in the label / outside the field. */
/* V1.14.108 — clear X is only for editable text/value fields, never checkboxes */
body[data-page="calculator"] input[type="checkbox"] ~ .input-clear-x-v2,
body[data-page="calculator"] input[type="radio"] ~ .input-clear-x-v2,
body[data-page="calculator"] .check-row .input-clear-x-v2,
body[data-page="calculator"] label:has(input[type="checkbox"]) .input-clear-x-v2{
 display:none!important;
}

/* V1.14.109 — universal clear-X */
.input-clear-x-v2{
 width:17px!important;height:17px!important;min-width:17px!important;max-width:17px!important;
 padding:0!important;margin:0!important;line-height:15px!important;text-align:center!important;
 box-sizing:border-box!important;z-index:50!important;
}


/* Archived rows need a slightly wider action slot without reintroducing horizontal scrolling. */
body[data-page="history"] table th:last-child,
body[data-page="history"] table td:last-child{
 width:15%!important;
}

/* V1.14.112 — History archive ACTIONS containment fix */
body[data-page="history"] table{
 table-layout:fixed!important;
 width:100%!important;
 max-width:100%!important;
}
body[data-page="history"] th:last-child,
body[data-page="history"] td:last-child{
 width:13%!important;
 max-width:13%!important;
 overflow:hidden!important;
 text-overflow:clip!important;
 white-space:nowrap!important;
 box-sizing:border-box!important;
 padding-left:2px!important;
 padding-right:2px!important;
}
body[data-page="history"] td:last-child button{
 display:inline-block!important;
 width:auto!important;
 min-width:0!important;
 max-width:none!important;
 box-sizing:border-box!important;
 font-size:6.4px!important;
 line-height:12px!important;
 height:15px!important;
 padding:0 2px!important;
 margin:0 1px 0 0!important;
 vertical-align:middle!important;
}
body[data-page="history"] td:last-child button:last-child{
 margin-right:0!important;
}

/* V1.14.113 — definitive global clear-X geometry.
   Position is supplied by JS from input.offset* in the host coordinate system. */
.clear-field-host{position:relative!important}
.input-clear-x-v2{
 position:absolute!important;
 right:auto!important;
 bottom:auto!important;
 transform:none!important;
 width:17px!important;height:17px!important;
 min-width:17px!important;max-width:17px!important;
 padding:0!important;margin:0!important;
 line-height:15px!important;text-align:center!important;
 box-sizing:border-box!important;
 z-index:100!important;
}

/* V1.14.114 — X physically anchored to EACH field */
.clear-input-wrap{
 position:relative!important;
 display:inline-block!important;
 vertical-align:middle!important;
 box-sizing:border-box!important;
}
.clear-input-wrap > input,
.clear-input-wrap > textarea{
 width:100%!important;
 max-width:100%!important;
 box-sizing:border-box!important;
 padding-right:20px!important;
}
.clear-input-wrap > .input-clear-x-v2{
 position:absolute!important;
 left:auto!important;
 right:1px!important;
 top:50%!important;
 bottom:auto!important;
 transform:translateY(-50%)!important;
 width:17px!important;
 height:17px!important;
 min-width:17px!important;
 max-width:17px!important;
 padding:0!important;
 margin:0!important;
 line-height:15px!important;
 text-align:center!important;
 box-sizing:border-box!important;
 z-index:100!important;
}

/* V1.14.122 — ESI Orders: 95% viewport width, columns and content contained */
body:has(.esi-orders-page),
body:has(#esiOrders),
body:has(#buyOrders),
body:has(#sellOrders){
    overflow-x:hidden!important;
}

/* Orders page main content: keep everything inside 95% of the viewport */
.esi-orders-page,
#esiOrders,
.orders-page,
.orders-wrap,
.orders-container{
    width:95%!important;
    max-width:95%!important;
    box-sizing:border-box!important;
}

/* Both ESI order tables */
#buyOrders,
#sellOrders,
#buyOrdersTable,
#sellOrdersTable,
.esi-orders-table,
table.orders-table{
    width:95%!important;
    max-width:95%!important;
    table-layout:fixed!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
}

/* If tables are nested in panels, panel remains within the same 95% content area */
.orders-panel,
.esi-orders-panel{
    width:95%!important;
    max-width:95%!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
}

/* All ESI order cells stay inside their assigned column */
#buyOrders th,#buyOrders td,
#sellOrders th,#sellOrders td,
#buyOrdersTable th,#buyOrdersTable td,
#sellOrdersTable th,#sellOrdersTable td,
.esi-orders-table th,.esi-orders-table td,
table.orders-table th,table.orders-table td{
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    box-sizing:border-box!important;
    max-width:0!important;
}

/* Stable proportions for the 8 ESI columns */
.esi-orders-table th:nth-child(1),.esi-orders-table td:nth-child(1),
table.orders-table th:nth-child(1),table.orders-table td:nth-child(1){width:28%!important}
.esi-orders-table th:nth-child(2),.esi-orders-table td:nth-child(2),
table.orders-table th:nth-child(2),table.orders-table td:nth-child(2){width:8%!important}
.esi-orders-table th:nth-child(3),.esi-orders-table td:nth-child(3),
table.orders-table th:nth-child(3),table.orders-table td:nth-child(3){width:8%!important}
.esi-orders-table th:nth-child(4),.esi-orders-table td:nth-child(4),
table.orders-table th:nth-child(4),table.orders-table td:nth-child(4){width:16%!important}
.esi-orders-table th:nth-child(5),.esi-orders-table td:nth-child(5),
table.orders-table th:nth-child(5),table.orders-table td:nth-child(5){width:10%!important}
.esi-orders-table th:nth-child(6),.esi-orders-table td:nth-child(6),
table.orders-table th:nth-child(6),table.orders-table td:nth-child(6){width:10%!important}
.esi-orders-table th:nth-child(7),.esi-orders-table td:nth-child(7),
table.orders-table th:nth-child(7),table.orders-table td:nth-child(7){width:12%!important}
.esi-orders-table th:nth-child(8),.esi-orders-table td:nth-child(8),
table.orders-table th:nth-child(8),table.orders-table td:nth-child(8){width:8%!important}

/* V1.14.129 — ESI History: true 95% of the available main content (not viewport). */
.esi95-shell{
    width:95%!important;
    max-width:95%!important;
    min-width:0!important;
    margin-left:0!important;
    margin-right:5%!important;
    box-sizing:border-box!important;
    overflow-x:hidden!important;
}
.esi95-shell .panel,
.esi95-shell .card,
.esi95-shell .orders-panel,
.esi95-shell .esi-orders-panel,
.esi95-shell .table-wrap,
.esi95-shell .table-container{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
    overflow-x:hidden!important;
}
.esi95-shell table,
.esi95-shell .esi-history-table,
.esi95-shell .esi-orders-table{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    table-layout:fixed!important;
    box-sizing:border-box!important;
    margin:0!important;
}
.esi95-shell table th,
.esi95-shell table td{
    box-sizing:border-box!important;
    min-width:0!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
}

/* V1.14.129 — Eveleen */
.eveleen-brand{display:flex!important;align-items:center!important;gap:8px!important;width:100%!important;min-height:54px!important;padding:6px 7px 8px!important;margin:0 0 8px!important;box-sizing:border-box!important;border-bottom:1px solid rgba(91,201,224,.18)!important;overflow:hidden!important}
.eveleen-brand-logo{display:block!important;width:58px!important;height:42px!important;flex:0 0 58px!important;object-fit:contain!important;filter:drop-shadow(0 0 5px rgba(89,207,230,.18))!important}
.eveleen-brand-copy{min-width:0!important;display:flex!important;flex-direction:column!important;justify-content:center!important}
.eveleen-brand-name{color:#e7f6f8!important;font-family:"Arial Narrow","Roboto Condensed","Segoe UI",Arial,sans-serif!important;font-size:15px!important;font-weight:800!important;letter-spacing:3px!important;line-height:1!important;white-space:nowrap!important}
.eveleen-brand-tagline{margin-top:4px!important;color:#6f9ba3!important;font-size:6px!important;font-weight:600!important;letter-spacing:.65px!important;line-height:1.15!important;white-space:nowrap!important}

/* V1.14.129 — Eveleen sidebar alignment */
.eveleen-brand{
    display:grid!important;
    grid-template-columns:52px 1fr!important;
    align-items:center!important;
    justify-content:center!important;
    column-gap:8px!important;
    width:calc(100% - 12px)!important;
    max-width:calc(100% - 12px)!important;
    min-height:58px!important;
    margin:0 6px 8px 6px!important;
    padding:6px 4px 8px 4px!important;
    box-sizing:border-box!important;
    border-bottom:1px solid rgba(91,201,224,.18)!important;
}
.eveleen-brand-logo{
    width:48px!important;
    height:48px!important;
    max-width:48px!important;
    object-fit:contain!important;
    justify-self:center!important;
}
.eveleen-brand-copy{
    width:100%!important;
    min-width:0!important;
    align-items:flex-start!important;
    justify-content:center!important;
    overflow:hidden!important;
}
.eveleen-brand-name{
    width:100%!important;
    text-align:left!important;
    font-size:14px!important;
    letter-spacing:2.6px!important;
}
.eveleen-brand-tagline{
    width:100%!important;
    text-align:left!important;
    font-size:5.5px!important;
    letter-spacing:.45px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:clip!important;
}
/* Hide obsolete sidebar title if an old template variant still renders it. */
.sidebar-brand-old,.legacy-brand,.eve-trader-brand{display:none!important}

/* V1.14.129 — Eveleen header: center the complete logo+wordmark group */
.eveleen-brand{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:center!important;
    gap:7px!important;
    width:100%!important;
    max-width:100%!important;
    min-height:58px!important;
    margin:0 0 8px 0!important;
    padding:6px 8px 8px 8px!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
}
.eveleen-brand-logo{
    display:block!important;
    width:43px!important;
    height:43px!important;
    min-width:43px!important;
    max-width:43px!important;
    flex:0 0 43px!important;
    object-fit:contain!important;
    margin:0!important;
    padding:0!important;
}
.eveleen-brand-copy{
    display:flex!important;
    flex:0 0 auto!important;
    width:auto!important;
    min-width:0!important;
    max-width:112px!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    justify-content:center!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
}
.eveleen-brand-name{
    width:auto!important;
    margin:0!important;
    padding:0!important;
    text-align:left!important;
    font-size:14px!important;
    letter-spacing:2.45px!important;
    line-height:15px!important;
}
.eveleen-brand-tagline{
    width:auto!important;
    max-width:112px!important;
    margin:3px 0 0 0!important;
    padding:0!important;
    text-align:left!important;
    font-size:5.2px!important;
    letter-spacing:.34px!important;
    line-height:7px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
}
/* The combined visual block is ~162px wide and is centered by justify-content:center. */

/* V1.14.129 — larger History action buttons */
#sellTable td:last-child button,
#buyTable td:last-child button,
#archiveTable td:last-child button,
.history-table td:last-child button,
.history-actions button,
td.actions button{
    min-height:22px!important;
    height:22px!important;
    padding:0 5px!important;
    margin:1px!important;
    font-size:7.4px!important;
    line-height:20px!important;
    font-weight:600!important;
    box-sizing:border-box!important;
    vertical-align:middle!important;
}

/* V1.14.169 — sortable Trading Scanner headers */
th.eveleen-sortable{cursor:pointer!important;user-select:none!important}
th.eveleen-sortable[data-sort-direction="asc"]::after{content:" ▲";font-size:.72em;opacity:.8}
th.eveleen-sortable[data-sort-direction="desc"]::after{content:" ▼";font-size:.72em;opacity:.8}

/* V1.14.169 — compact scanner progress */
.scan-progress-wrap{width:95%;box-sizing:border-box;margin:5px 0 7px 0}
.scan-progress-meta{display:flex;justify-content:space-between;align-items:center;margin-bottom:3px;font-size:8px;letter-spacing:.5px;color:#9eb9bd}
.scan-progress-track{height:5px;width:100%;overflow:hidden;border:1px solid #314044;background:#0b0f10;box-sizing:border-box}
.scan-progress-bar{height:100%;width:0%;background:#58c8d8;transition:width .22s linear}

/* V1.14.169 — live EVE sidebar info */
.eve-live-strip{margin:0 14px 9px;padding:7px 0;border-top:1px solid rgba(91,201,224,.16);border-bottom:1px solid rgba(91,201,224,.16);font-size:7px;line-height:1.65;letter-spacing:.5px;color:#91a9ad}
.eve-live-strip>div{display:flex;align-items:center;justify-content:space-between;gap:7px}
.eve-live-dot{display:inline-block;width:5px;height:5px;margin-right:5px;border-radius:50%;background:#55d4c8}
.eve-clock-label{color:#68898f}
#eveTimeClock{color:#d7ecef;font-variant-numeric:tabular-nums;letter-spacing:.8px}
#eveOnlinePlayers{color:#83d8d3}
th.eveleen-sortable{cursor:pointer!important;user-select:none!important}
th.eveleen-sortable[data-sort-direction="asc"]::after{content:" ▲";font-size:.72em;opacity:.8}
th.eveleen-sortable[data-sort-direction="desc"]::after{content:" ▼";font-size:.72em;opacity:.8}

/* V1.14.169 — keep EVE status attached to account controls */
.eve-live-strip{
  flex:0 0 auto!important;
  margin:0 18px 6px 18px!important;
  padding:6px 0!important;
  width:auto!important;
  min-height:0!important;
  align-self:stretch!important;
}
.eve-live-strip + div{margin-top:0!important}

/* V1.14.169 — persistent account status + persistent sorting */
.eveleen-account-status{
  margin-top:auto!important;
  margin-bottom:6px!important;
  flex:0 0 auto!important;
  align-self:stretch!important;
}
[data-eveleen-eve-time]{color:#d7ecef;font-variant-numeric:tabular-nums;letter-spacing:.8px}
[data-eveleen-pilots]{color:#83d8d3}
th.eveleen-sortable{cursor:pointer!important;user-select:none!important}
th.eveleen-sortable[data-sort-direction="asc"]::after{content:" ▲";font-size:.72em;opacity:.8}
th.eveleen-sortable[data-sort-direction="desc"]::after{content:" ▼";font-size:.72em;opacity:.8}

/* V1.14.169 — donation */
.eveleen-donate-btn{
  display:block!important;width:100%!important;height:22px!important;margin:6px 0 0!important;
  padding:0 7px!important;box-sizing:border-box!important;border:1px solid #35535a!important;
  background:#101719!important;color:#79dbe0!important;font-size:7px!important;font-weight:600!important;
  letter-spacing:.55px!important;line-height:20px!important;cursor:pointer!important;
}
.eveleen-donate-btn:hover{border-color:#62cbd2!important;background:#142024!important;color:#d7f7f8!important}
.eveleen-donate-btn:disabled{opacity:.65!important;cursor:default!important}

/* V1.14.169 — approved ISK donation artwork */
.eveleen-donate-btn{
  height:auto!important;
  min-height:0!important;
  padding:0!important;
  margin:6px 0 0!important;
  border:0!important;
  background:transparent!important;
  line-height:0!important;
  overflow:hidden!important;
}
.eveleen-donate-btn img{
  display:block!important;
  width:100%!important;
  height:auto!important;
  max-width:100%!important;
  object-fit:contain!important;
  transition:filter .15s ease,opacity .15s ease,transform .15s ease!important;
}
.eveleen-donate-btn:hover img{filter:brightness(1.13)!important}
.eveleen-donate-btn:active img{transform:scale(.985)!important}
.eveleen-donate-btn.is-opening img{opacity:.72!important}
.eveleen-donate-btn.is-opened img{filter:brightness(1.2)!important}
.eveleen-donate-btn.is-error img{filter:brightness(.75)!important}

/* V1.14.169 — Discord community link */
.eveleen-discord-link{
  display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;
  width:100%!important;height:25px!important;margin:5px 0 0!important;padding:0 8px!important;
  box-sizing:border-box!important;border:1px solid rgba(88,101,242,.55)!important;
  background:rgba(88,101,242,.08)!important;color:#cfd4ff!important;text-decoration:none!important;
  font-size:7px!important;font-weight:700!important;letter-spacing:.65px!important;line-height:23px!important;
  transition:background .15s ease,border-color .15s ease,filter .15s ease!important;
}
.eveleen-discord-link img{display:block!important;width:17px!important;height:13px!important;object-fit:contain!important;flex:0 0 auto!important}
.eveleen-discord-link:hover{background:rgba(88,101,242,.18)!important;border-color:#5865F2!important;color:#fff!important}

/* V1.14.169 — Price Check uses 95% of the available page width */
body[data-page="price-check"] .main,
body[data-page="price-check"] main,
body[data-page="price-check"] .content,
.price-check-page,
.pc-page{
  width:95%!important;max-width:95%!important;min-width:0!important;
  margin-left:0!important;margin-right:5%!important;box-sizing:border-box!important;
}
.pc-card,.pc-results{width:100%!important;max-width:none!important;box-sizing:border-box!important}
.pc-results{overflow-x:hidden!important}
.pc-results table{width:100%!important;max-width:100%!important;table-layout:fixed!important}

/* V1.14.172 — History ITEM column: fixed compact width.
   Keep the structural override that defeats the old percentage-based History
   widths, but cap ITEM at 200 px in both SELL and BUY tables. */
body[data-page="history"] .history-order-panel .sheet-wrap{
  overflow-x:auto!important;
}
body[data-page="history"] .history-order-panel table.data-sheet{
  width:max-content!important;
  max-width:none!important;
  min-width:100%!important;
  table-layout:auto!important;
}
body[data-page="history"] .history-order-panel th:nth-child(2),
body[data-page="history"] .history-order-panel td:nth-child(2){
  width:200px!important;
  min-width:200px!important;
  max-width:200px!important;
}
body[data-page="history"] .history-order-panel .history-item-cell,
body[data-page="history"] .history-order-panel .history-item-cell.eve-market-link{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}


/* V1.14.178 — scan duration notice */
.scan-time-notice{margin:8px 0 10px;font-size:12px;line-height:1.35;opacity:.75;}
