.influx-demo { background:#101216; font-family:"Segoe UI",sans-serif; }
.influx-demo .header-inner { min-height:52px; }
.influx-demo .shell { width:calc(100% - 32px); max-width:none; }
.influx-demo .brand-name { font-size:15px; }
.influx-demo .preview-label { font-size:11px; }
.influx-demo .skip-link { opacity:0; pointer-events:none; z-index:10001; }
.influx-demo .skip-link:focus { opacity:1; pointer-events:auto; }
#influx { padding:0; outline:none; }
.influx-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:10px; min-height:42px; padding:6px 16px; background:#11141a; border-bottom:1px solid #292b32; font-size:12px; }
.influx-toolbar label { display:flex; align-items:center; gap:5px; }
.influx-toolbar button,.influx-toolbar select { font:inherit; color:#d4d1e4; border:1px solid #3e3b4a; border-radius:4px; background:#27252e; padding:4px 8px; cursor:pointer; }
.influx-toolbar button[aria-pressed="true"] { color:#ecdfff; border-color:#8b75aa; background:#40334f; }
.influx-views { display:flex; gap:4px; }
.influx-spacer { flex:1; }
.influx-demo-label { color:#888897; font-size:11px; margin-left:auto; }
.influx-stage { position:relative; min-height:calc(100dvh - 95px); overflow:hidden; background:radial-gradient(ellipse at 40% 25%,#27232d55,transparent 65%); }
.influx-window { position:absolute; top:24px; width:400px; height:400px; min-width:280px; min-height:100px; max-width:calc(100% - 16px); background:#101111f7; border-radius:5px; color:#f3f3f3; font-size:12px; font-weight:550; box-shadow:0 7px 25px #0004; resize:both; overflow:hidden; display:flex; flex-direction:column; }
.influx-window.configuration { width:460px; }
.influx-titlebar { display:flex; align-items:center; flex:none; height:25px; padding:2px 5px; cursor:move; user-select:none; touch-action:none; }
.influx-titlebar strong { flex:1; font-size:12px; font-weight:600; }
.influx-window button,.influx-window input,.influx-window select { font:inherit; }
.influx-window button { background:#505050; border:0; border-radius:3px; padding:3px 5px; color:#fff; cursor:pointer; }
.influx-window button:hover { background:#707070; }
.influx-window button:disabled { opacity:.45; cursor:default; }
.influx-titlebar button { background:transparent; padding:0; width:18px; height:20px; line-height:1; border-radius:2px; font-size:15px; }
.influx-content { padding:6px 8px 9px; flex:1; min-height:0; overflow:auto; scrollbar-width:thin; scrollbar-color:#454545 #151515; }
.statistics .influx-content { padding-top:6px; }
.influx-stats { width:100%; border-collapse:collapse; font-variant-numeric:tabular-nums; }
.influx-stats th { text-align:left; background:#303032; font-weight:600; padding:2px 1px; width:51%; }
.influx-stats th+th { width:49%; }
.influx-stats td { padding:3px 1px; border-bottom:1px solid #232323; }
.influx-tabs { display:flex; gap:3px; border-bottom:1px solid #6c2e2d; margin-bottom:4px; }
.influx-window .influx-tabs button { border-bottom-left-radius:0; border-bottom-right-radius:0; padding:4px 5px; background:#303030; white-space:nowrap; }
.influx-window .influx-tabs button[aria-selected="true"] { background:#782f2c; }
.influx-check { display:flex; align-items:center; gap:5px; margin:4px 0; }
.influx-check input { appearance:none; width:23px; height:23px; margin:0; background:#303031; border:0; border-radius:5px; cursor:pointer; position:relative; flex:none; }
.influx-check input:checked::after { content:""; position:absolute; left:6px; top:3px; width:8px; height:13px; border:solid #ddd; border-width:0 3px 3px 0; transform:rotate(40deg); }
.influx-field { display:flex; align-items:center; gap:5px; margin:4px 0; }
.influx-field input,.influx-field select { width:298px; max-width:70%; min-width:80px; min-height:23px; padding:2px 4px; border:0; border-radius:4px; background:#303031; color:#fafafa; }
.influx-field span { flex:1; }
.influx-window p { margin:5px 0; }
.influx-window hr { border:0; border-top:1px solid #3b3b3b; margin:10px 0; }
.influx-muted { color:#8e8e95; }.influx-green { color:#73cf91; }.influx-red { color:#ef7470; }.influx-yellow { color:#f5c84b; }
.influx-indent { padding-left:30px; }
.influx-window details { margin-bottom:4px; }
.influx-window summary { padding:3px 6px; background:#292929; border-radius:2px; cursor:pointer; }
.influx-window .character-row { display:block; width:100%; text-align:left; padding:4px 5px; margin:2px 0; background:transparent; }
.influx-window .character-row:hover { background:#363636; }
.influx-row { display:flex; align-items:center; gap:7px; flex-wrap:wrap; }
.tracked-filter { margin:3px 0; }
.influx-window.collapsed { height:auto!important; min-height:0; resize:none; }
.influx-window.collapsed .influx-content { display:none; }
.influx-window-menu { position:absolute; top:24px; right:5px; z-index:99; padding:5px; background:#252525; border:1px solid #4b4b4b; box-shadow:0 5px 15px #0008; }
.influx-window-menu button { display:block; width:100%; text-align:left; margin:2px 0; }
.dashboard-controls { display:flex; align-items:center; flex-wrap:wrap; gap:10px; padding:7px 8px; color:#a9b4ca; font-size:12px; }
.dashboard-controls strong { margin-right:auto; font-size:12px; font-weight:500; }
.dashboard-controls button,.dashboard-controls select { color:#c4cddd; background:#20242b; border:1px solid #383d47; border-radius:3px; font:inherit; padding:3px 8px; }
.dashboard-controls label { display:flex; gap:6px; align-items:center; }
.dashboard-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); grid-template-rows:repeat(3,208px); gap:6px; padding:0 6px 12px; }
.influx-panel { background:#191c1f; border:1px solid #2b2e33; color:#b9c3d9; min-width:0; overflow:hidden; position:relative; display:flex; flex-direction:column; }
.panel-heading { font:600 12px "Segoe UI",sans-serif; color:#b8c5df; background:none; border:0; padding:6px; min-height:27px; width:100%; text-align:left; cursor:pointer; white-space:nowrap; text-overflow:ellipsis; overflow:hidden; }
.panel-heading:hover { background:#23272c; }
.panel-body { flex:1; padding:5px 6px 6px; min-height:0; overflow:auto; scrollbar-width:thin; scrollbar-color:#49505c #191c1f; }
.influx-panel[data-panel="repair"] { grid-column:1; grid-row:1; }
.dashboard-stack { grid-column:2; grid-row:1; display:grid; grid-template-rows:55px 1fr; gap:6px; min-width:0; }
.influx-panel[data-panel="build"] { grid-column:3; grid-row:1; }
.influx-panel[data-panel="disabled"] { grid-column:4; grid-row:1; }
.influx-panel[data-panel="tanks"] { grid-column:1; grid-row:2; }
.influx-panel[data-panel="lowTanks"] { grid-column:2; grid-row:2; }
.influx-panel[data-panel="inventoryTotal"] { grid-column:3; grid-row:2; }
.influx-panel[data-panel="inventoryTanks"] { grid-column:4; grid-row:2; }
.influx-panel[data-panel="credits"] { grid-column:1; grid-row:3; }
.influx-panel[data-panel="creditBars"] { grid-column:2; grid-row:3; }
.influx-panel[data-panel="space"] { grid-column:3; grid-row:3; }
.price-body { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:3px 7px; height:100%; }
.price-title { font-size:clamp(15px,1.25vw,24px); font-weight:400; color:#b9c3d9; background:transparent; border:0; cursor:pointer; padding:0; text-align:left; }
.price-number { font-size:clamp(22px,1.8vw,36px); white-space:nowrap; font-weight:500; }
.price-number small { font-size:.55em; }
.no-data { display:flex; align-items:center; height:100%; gap:10px; }
.no-data::before { content:""; width:80%; height:96%; background:#22252b; border-left:2px solid #adb1c1; }
.no-data span { font-size:clamp(13px,1.15vw,22px); white-space:nowrap; }
.empty-series { height:100%; min-height:70px; }
.big-stat { display:flex; align-items:center; justify-content:center; height:100%; font-size:clamp(36px,4vw,68px); color:#d4d4e2; border-bottom:1px solid #393c42; }
.dashboard-table { width:100%; border-collapse:collapse; font-size:12px; }
.dashboard-table th { text-align:left; color:#b3c2df; border-bottom:1px solid #2a2d33; padding:5px; font-size:11px; }
.dashboard-table td { border-bottom:1px solid #2a2d33; padding:6px 5px; }
.dashboard-table .empty-row { text-align:center; height:130px; }
.dashboard-table .rank { color:#a86cdd; text-align:right; }
.dashboard-table .voyage { color:#e3bf00; }
.disabled-foot { font-size:11px; border-top:1px solid #303238; padding:6px 5px 0; margin-top:8px; color:#7f899c; }
.bar-list { display:flex; flex-direction:column; height:100%; gap:5px; justify-content:space-around; }
.bar-row { display:grid; grid-template-columns:70px minmax(10px,1fr) 55px; gap:5px; align-items:center; background:transparent; border:0; padding:0; text-align:left; color:#b8c6e4; font:12px "Segoe UI",sans-serif; cursor:pointer; min-height:12px; }
.bar-row:hover .bar-track { background:#343a44; }
.bar-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:10px; color:#8e9aaf; }
.bar-track { height:13px; background:#23262c; border-radius:1px; overflow:hidden; }
.bar-fill { height:100%; display:block; background:#5a606f; border-right:2px solid #c5cad9; min-width:2px; }
.bar-value { text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
.bar-row.warning .bar-fill { background:#66562a; border-right-color:#cba029; }.bar-row.warning .bar-value { color:#e7ae28; }
.influx-panel[data-panel="inventoryTanks"] .bar-row { grid-template-columns:1fr 78px; grid-template-rows:auto auto; gap:3px; }
.influx-panel[data-panel="inventoryTanks"] .bar-name { grid-column:1 / -1; }
.influx-panel[data-panel="inventoryTanks"] .bar-track { height:19px; }
.influx-panel[data-panel="inventoryTanks"] .bar-value { font-size:clamp(14px,1.1vw,21px); }
.series-chart { width:100%; height:100%; min-height:100px; display:block; }
.series-chart text { fill:#77859b; font:10px "Segoe UI",sans-serif; }
.series-legend { display:flex; justify-content:space-between; gap:10px; color:#8794aa; font-size:10px; }
#influx-dialog { width:min(760px,calc(100% - 24px)); max-height:85dvh; overflow:auto; border:1px solid #4b5260; border-radius:5px; background:#191c21; color:#c4cede; padding:16px; font:13px/1.5 "Segoe UI",sans-serif; }
#influx-dialog::backdrop { background:#05080dc4; }
#influx-dialog h2 { display:block; font-size:17px; letter-spacing:0; color:#dce1eb; padding-right:25px; }
#influx-dialog h2::after { display:none; }
#influx-dialog button { border:1px solid #414854; background:#303742; color:#d4dfef; border-radius:4px; font:inherit; padding:4px 9px; cursor:pointer; }
#influx-dialog .close-dialog { float:right; }
#influx-dialog .series-chart { height:250px; }
.detail-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:15px 0; }
.detail-stats div { border:1px solid #353c45; background:#21252b; padding:10px; }.detail-stats strong { display:block; font-size:19px; }
#influx-notice { position:fixed; bottom:16px; left:50%; transform:translateX(-50%); max-width:calc(100% - 24px); background:#303642; border:1px solid #576477; border-radius:4px; padding:8px 14px; color:#e2e8f2; font-size:12px; z-index:10000; pointer-events:none; }
#influx-notice:empty { display:none; }
@media (max-width:1000px) { .dashboard-grid { grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:none; grid-auto-rows:208px; }.influx-panel[data-panel],.dashboard-stack { grid-column:auto; grid-row:auto; } }
@media (max-width:920px) { .influx-stage { display:flex; flex-wrap:wrap; align-items:flex-start; gap:10px; padding:14px 8px; }.influx-window,.influx-window.configuration { position:relative!important; left:auto!important; top:auto!important; flex:none; max-width:100%; resize:none; }.influx-titlebar { cursor:default; } }
@media (max-width:600px) { .influx-demo .preview-label { display:none; }.influx-demo .shell { width:calc(100% - 20px); }.influx-toolbar { padding:6px 8px; gap:7px; }.influx-demo-label { display:none; }.influx-toolbar select { max-width:180px; }.influx-window,.influx-window.configuration { width:100%!important; }.influx-tabs { gap:2px; }.influx-window .influx-tabs button { font-size:10px; padding:5px 3px; flex:1; }.influx-field input,.influx-field select { width:68%; max-width:68%; }.influx-indent { padding-left:15px; }.dashboard-grid { grid-template-columns:1fr; }.dashboard-controls strong { width:100%; }.detail-stats { grid-template-columns:1fr; }.price-title { font-size:22px; }.price-number { font-size:32px; }.bar-name { font-size:11px; } }
