
:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#080f1c;color:#f3f7fd;font-size:14px;color-scheme:dark}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}a{color:#87b4ff}h1{font-size:clamp(24px,3vw,34px);letter-spacing:-.85px;margin:5px 0 10px}h2{font-size:18px;letter-spacing:-.25px;margin:0 0 12px}h3{font-size:15px;margin:0 0 10px}p{line-height:1.55;color:#a8b8ce;margin:5px 0 14px}.muted{color:#91a4be}.tiny{color:#8ca1bb;font-size:12px}.caps{font-size:10px;letter-spacing:1.8px;color:#81aeff;font-weight:800;text-transform:uppercase}.layout{display:grid;grid-template-columns:245px minmax(0,1fr);min-height:100dvh}.sidebar{border-right:1px solid #22344f;background:#0d1728;position:sticky;top:0;height:100dvh;padding:23px 13px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:11px;padding:6px 10px 27px;font-size:21px;font-weight:850;letter-spacing:-.7px}.brandmark{width:38px;height:38px;background:linear-gradient(135deg,#4483ed,#74c3e7);border-radius:12px;display:grid;place-items:center;font-size:21px;color:#fff}.nav{display:flex;flex-direction:column;gap:5px}.nav button{text-align:left;background:transparent;color:#a8bad3;border:0;padding:12px 13px;border-radius:9px;font-weight:650}.nav button.on,.nav button:hover{color:#f4f8ff;background:#1a2c48}.nav button .sym{display:inline-block;width:29px}.asidefoot{margin-top:auto;padding:18px 12px;color:#7288a6;font-size:11px;line-height:1.6}.main{min-width:0}.top{height:76px;position:sticky;top:0;z-index:9;border-bottom:1px solid #26354d;background:rgba(11,20,35,.98);display:flex;align-items:center;justify-content:space-between;padding:10px 29px;gap:14px}.top b{display:block;font-size:16px;margin-top:3px}.right{display:flex;align-items:center;gap:10px;min-width:0}.page{max-width:1310px;margin:0 auto;padding:28px 29px 70px}.intro{display:flex;justify-content:space-between;align-items:flex-end;gap:14px;margin-bottom:24px}.intro p{margin-bottom:0}.btn{background:#568ffb;border:1px solid #669efa;color:#fff;font-weight:750;border-radius:10px;padding:10px 14px;white-space:nowrap}.btn:hover{filter:brightness(1.1)}.btn.alt{background:#182941;border-color:#344b69;color:#dceafa}.btn.danger{background:#43242e;border-color:#6d3648;color:#ffccd3}.btn.mini{padding:7px 9px;font-size:12px}.panel,.stat,.module{background:#111f33;border:1px solid #283b55;border-radius:15px}.panel{padding:22px;margin-bottom:16px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:20px}.stat{padding:19px}.stat .v{font-size:32px;font-weight:850;line-height:1.3;letter-spacing:-1px}.stat .t{font-size:11px;color:#8da4c0;font-weight:700;letter-spacing:.7px;text-transform:uppercase}.stat .sub{font-size:12px;color:#8399b5;margin-top:9px}.grid{display:grid;grid-template-columns:1.3fr 1fr;gap:16px}.modules{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-top:18px}.module{padding:22px}.module .big{font-size:25px;color:#81b0ff}.module p{min-height:58px}.subnav{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px}.tablewrap{overflow-x:auto}.table{border-collapse:collapse;width:100%;min-width:570px}.table th{text-align:left;color:#8ca3c0;font-size:10px;letter-spacing:1px;text-transform:uppercase;font-weight:800}.table th,.table td{border-bottom:1px solid #263850;padding:12px 10px;vertical-align:top}.table td{font-size:13px;color:#d6e2f2}.table tr:last-child td{border-bottom:0}.tag{display:inline-block;border:1px solid #455875;color:#d8e7ff;border-radius:50px;padding:5px 9px;font-size:11px;font-weight:650}.tag.red{color:#ffa6a6;background:#3a202b;border-color:#7c3c4a}.tag.green{color:#8fe0bd;background:#173c36;border-color:#275e50}.tag.amber{color:#ffcc85;background:#392e22;border-color:#796044}.headrow,.item{display:flex;justify-content:space-between;align-items:center;gap:12px}.item{padding:13px 0;border-bottom:1px solid #293950}.item:last-child{border-bottom:0}.item strong{display:block}.item small{display:block;color:#9db0c8;margin-top:5px;line-height:1.5}.notice{background:#1a2b42;border-left:3px solid #74a5fb;border-radius:8px;padding:13px 16px;color:#c6d7eb;margin:13px 0 21px;line-height:1.6;font-size:13px}.notice.warn{border-color:#ffbb72;background:#2e2830}.notice.good{border-color:#60c6a0;background:#17312f}.empty{padding:32px;text-align:center;color:#8ba1bb}.form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.field{display:flex;flex-direction:column;gap:7px;min-width:0}.field.wide{grid-column:1/-1}label{font-size:12px;color:#b1c3dc;font-weight:650}input,textarea,select{background:#0b1729;color:#f1f7ff;border:1px solid #37506f;border-radius:10px;padding:11px 12px;min-height:43px;width:100%;outline:none}input:focus,textarea:focus,select:focus{border-color:#6b9eff;box-shadow:0 0 0 2px #578eff22}textarea{resize:vertical;min-height:94px}.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:15px}.modalbg{position:fixed;inset:0;background:#02060bc9;display:grid;place-items:center;z-index:30;padding:14px}.modal{max-width:660px;width:100%;max-height:90dvh;overflow:auto;background:#142238;border:1px solid #3a5171;border-radius:16px;padding:24px}.modaltop{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.authbg{min-height:100dvh;display:grid;place-items:center;padding:20px;background:radial-gradient(ellipse at 40% 10%,#1a3154,transparent 54%),#090f1c}.auth{max-width:460px;width:100%;padding:35px;border:1px solid #36506e;background:#111f33;border-radius:19px;box-shadow:0 30px 80px #0005}.auth .brand{padding:0 0 22px}.toast{position:fixed;bottom:calc(env(safe-area-inset-bottom) + 20px);left:50%;transform:translateX(-50%);background:#193d39;color:#e3fff3;padding:13px 22px;border:1px solid #3c8c78;border-radius:10px;box-shadow:0 12px 34px #0008;display:none;z-index:50;max-width:90%;text-align:center}.toast.error{background:#42252b;border-color:#9a5360}.mobilebar{display:none}.select{max-width:230px}.kicker{color:#89bdff;font-weight:800;font-size:11px;text-transform:uppercase;letter-spacing:1.5px}.airesult{background:#0e1c2e;padding:15px;border-radius:11px;border:1px solid #35526e;margin:10px 0}.airesult p{margin:4px 0}.footer{color:#788fac;font-size:11px;padding-top:20px}.rowgap{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.data-note{font-size:12px;color:#9caec5;line-height:1.6}.loader{display:flex;align-items:center;justify-content:center;min-height:50dvh;font-size:18px;color:#a9c0dc}
@media(max-width:920px){.layout{grid-template-columns:1fr}.sidebar{position:relative;height:auto;border-right:0;border-bottom:1px solid #263951;padding:10px 12px}.brand{padding:4px 8px 10px}.nav{flex-direction:row;overflow:auto;scrollbar-width:none}.nav button{flex:0 0 auto;padding:10px 12px}.nav button .sym{width:auto;margin-right:5px}.asidefoot{display:none}.top{top:0;height:auto;min-height:65px;padding:11px 16px}.page{padding:20px 16px 80px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.grid{grid-template-columns:1fr}.modules{grid-template-columns:1fr}.module p{min-height:0}.right .tiny{display:none}}
@media(max-width:540px){.intro{align-items:flex-start;flex-direction:column}.stats{gap:9px}.stat{padding:15px}.stat .v{font-size:26px}.stat .t{font-size:10px}.panel{padding:15px}.form{grid-template-columns:1fr}.field.wide{grid-column:auto}.auth{padding:24px}.right .select{max-width:155px}.right .btn{padding:8px}.modal{padding:17px}.top b{font-size:14px}.nav button{font-size:12px}}
@media print{.sidebar,.top,.btn,.modalbg{display:none!important}.layout{display:block}.page{padding:0}.panel,.stat{break-inside:avoid}body{background:white;color:black}.panel,.stat{color:black;border-color:#bbb;background:white}p,.tiny{color:#444}}

/* QA release refinements */
select:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid #79bcff;outline-offset:3px}
@media(max-width:700px){.top .right{flex-wrap:wrap;gap:6px}.top .right select{max-width:45vw;min-width:110px}}

/* Layout Preview v0.5 */
.layout-empty{padding:32px;min-height:240px}.layout-empty .big{font-size:38px;color:#89bdff;margin-bottom:12px}
.layout-summary{display:flex;gap:18px;justify-content:space-between;align-items:center;margin-bottom:16px;background:#172841;border:1px solid #355171;border-radius:15px;padding:17px 20px}
.layout-summary h2{font-size:21px;margin:6px 0}.layout-summary p{margin:0}.layout-imagewrap{position:relative;width:100%;overflow:hidden;background:#0b1729;border:1px solid #334b68;border-radius:12px;min-height:110px}
.layout-imagewrap img{display:block;width:100%;height:auto;object-fit:contain}.layout-imagewrap svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}
.layout-overlay .svglabel{font-family:Arial,sans-serif;font-size:20px;font-weight:800;fill:#fff;stroke:#081625;stroke-width:5px;paint-order:stroke fill;letter-spacing:.2px}
.layout-legend{display:flex;gap:18px;flex-wrap:wrap;padding:14px 1px;font-size:12px;color:#b9cde4}.layout-legend span{display:flex;gap:8px;align-items:center}.legend-line{width:22px;height:0;border-top:3px dashed #52a9ff;display:inline-block}.legend-square{display:inline-block;width:17px;height:14px;border:2px solid #ffba71;background:#ffba7135;border-radius:2px}
.layout-list{padding-left:22px;color:#dce7f7;line-height:1.55;margin:4px 0 19px}.layout-list li{margin-bottom:7px}
.layout-summary .tag{flex-shrink:0}.layout-summary .rowgap{justify-content:flex-end}
@media(max-width:620px){.layout-summary{align-items:flex-start;flex-direction:column}.layout-summary .rowgap{justify-content:flex-start}.layout-overlay .svglabel{font-size:25px}.layout-empty{padding:18px}}
.layout-evidence{border:1px solid #293d59;border-radius:10px;padding:6px 13px;margin-bottom:13px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.layout-evidence-row{display:flex;align-items:start;gap:9px;padding:8px 0}.layout-evidence-row b{font-size:12px}.layout-evidence-row small{display:block;color:#99aec7;line-height:1.4;margin-top:2px}.layout-dot{display:inline-block;width:9px;height:9px;flex-shrink:0;margin-top:4px;border-radius:2px}.layout-dot.blue{background:#52a9ff}.layout-dot.amber{background:#ffba71}
@media(max-width:650px){.layout-evidence{grid-template-columns:1fr}}

/* TradeOS 0.5.2 — responsive containment for every screen.
   At tablet/mobile widths the single-column grid must be allowed to shrink;
   otherwise the horizontally scrollable navigation expands the whole document. */
html, body, #app { width:100%; min-width:0; max-width:100%; }
html { overflow-x:clip; }
body { overflow-x:clip; }
#app { overflow-x:clip; }
.layout, .main, .sidebar, .page, .top, .nav, .panel, .stat, .module,
.intro, .intro > div, .headrow, .item, .layout-summary, .layout-empty,
.layout-evidence, .layout-imagewrap, .tablewrap, .right { min-width:0; }
.layout, .page, .top, .sidebar, .panel, .tablewrap, .layout-imagewrap { max-width:100%; }
.panel, .stat, .module, .notice, .item, .airesult, .layout-summary, .layout-evidence,
.layout-empty, .intro, .top { overflow-wrap:anywhere; }
button, .btn { max-width:100%; }
.btn { white-space:normal; overflow-wrap:break-word; text-align:center; }
select { text-overflow:ellipsis; }
.grid, .modules, .stats { min-width:0; }
.rowgap { min-width:0; }
.tablewrap { overflow-x:auto; overscroll-behavior-inline:contain; -webkit-overflow-scrolling:touch; }
.layout-imagewrap svg { max-width:100%; }

@media (max-width:920px) {
  .layout { grid-template-columns:minmax(0,1fr); }
  .sidebar { width:100%; overflow:hidden; }
  .nav { display:flex; width:100%; max-width:100%; min-width:0; overflow-x:auto; overflow-y:hidden;
         flex-wrap:nowrap; -webkit-overflow-scrolling:touch; overscroll-behavior-x:contain;
         scrollbar-width:thin; scrollbar-color:#496589 transparent; }
  .nav button { flex:0 0 auto; white-space:nowrap; }
  .main { width:100%; }
  .top { width:100%; }
  .top > div:first-child { min-width:0; }
  .top .right { min-width:0; }
}
@media (max-width:620px) {
  :root { -webkit-text-size-adjust:100%; text-size-adjust:100%; }
  .sidebar { padding:10px 12px; }
  .brand { font-size:18px; padding:4px 5px 11px; }
  .brandmark { width:34px; height:34px; font-size:18px; }
  .nav { gap:5px; }
  .nav button { padding:10px 12px; border-radius:9px; }
  .top { position:relative; top:auto; display:flex; flex-direction:column; align-items:stretch;
         justify-content:flex-start; gap:10px; padding:14px 16px 16px; height:auto; }
  .top .caps { font-size:10px; }
  .top .right { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-start;
                width:100%; max-width:100%; gap:8px; }
  .top .right select, .top .right .select { flex:1 1 120px; width:auto; min-width:0;
                         max-width:100%; min-height:42px; }
  .top .right .btn { flex:0 0 auto; min-height:41px; padding:9px 12px; }
  .page { padding:20px 15px 60px; }
  .intro { gap:12px; margin-bottom:18px; }
  .intro .rowgap { width:100%; }
  .intro .rowgap .btn { flex:0 1 auto; }
  .panel { padding:16px; }
  .notice { padding:12px 13px; line-height:1.55; }
  .grid, .modules { grid-template-columns:minmax(0,1fr); }
  .layout-empty { min-height:0; padding:18px; }
  .layout-summary { padding:14px; }
  h1 { font-size:clamp(23px,7vw,30px); line-height:1.18; letter-spacing:-.5px; }
  h2 { line-height:1.3; }
  .headrow, .item { align-items:flex-start; }
  .item > div { min-width:0; }
  .layout-list { padding-left:20px; }
  .modal { width:min(100%,620px); padding:16px; }
  .modalbg { align-items:center; padding:12px; }
  .tablewrap::after { content:'Swipe table sideways to see more columns ↔'; display:block; margin:7px 0 1px;
                      font-size:11px; color:#92a9c5; }
}
@media (max-width:375px) {
  .top .right { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .top .right select:first-child { grid-column:1 / -1; width:100%; }
  .top .right .btn { width:100%; }
  .page { padding-left:12px; padding-right:12px; }
  .stats { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .stat { padding:12px; }
  .stat .t { font-size:9px; letter-spacing:.2px; }
  .stat .v { font-size:25px; }
  .modal { padding:14px; }
}
@media print {
  html,body,#app { overflow:visible; }
}
@media(max-width:920px){
  /* iOS Safari zooms the entire page when focusing controls below 16px. */
  input, select, textarea { font-size:16px; }
}
@media(max-width:620px){
  .sidebar { padding-left:max(12px,env(safe-area-inset-left)); padding-right:max(12px,env(safe-area-inset-right)); }
  .page { padding-left:max(15px,env(safe-area-inset-left)); padding-right:max(15px,env(safe-area-inset-right)); }
  .top { padding-left:max(16px,env(safe-area-inset-left)); padding-right:max(16px,env(safe-area-inset-right)); }
  .nav { padding-bottom:3px; }
  .nav::-webkit-scrollbar { height:3px; }
  .nav::-webkit-scrollbar-thumb { background:#496589; border-radius:10px; }
}

/* v0.5.5: clear Auth mode labels and durable, accessible signup status */
.auth-status{margin:16px 0 3px;padding:13px 15px;border-radius:10px;border:1px solid #315d56;background:#153a33;color:#dcfff4;font-size:13px;line-height:1.55;overflow-wrap:anywhere}
.auth-status[hidden]{display:none}
.auth-status.error{background:#41232d;border-color:#9b5865;color:#ffe8ee}
.auth .actions .btn{white-space:normal;line-height:1.3;text-align:center}
@media(max-width:360px){.auth .actions{display:grid;grid-template-columns:minmax(0,1fr)}.auth .actions .btn{width:100%}}


/* Non-navigation record actions */
.check-line,.need-line{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;border-top:1px solid #283a50;padding:10px 0}
.check-line small,.need-line small{flex:1;min-width:130px}
.check-line .btn,.need-line .btn,.item .btn{font-size:12px;padding:7px 9px}
.table td .btn{margin:2px}
.danger{border-color:#a05258!important;color:#ffbec4!important;background:#421d2c!important}
.danger:hover{background:#602639!important}
.build-version{display:block;font-size:11px;color:#91a4be;margin-top:3px;letter-spacing:.15px}
.mobile-menu-toggle,.quick-home{display:none}


/* v0.6.2 — one fixed mobile chrome for BOTH navigation and company/project controls.
   Previous builds fixed only the TradeOS logo/menu and left project settings
   in the scrolling document. Both are now siblings in a single viewport-fixed
   body-level portal, with reserved document space measured via ResizeObserver. */
.mobile-menu-toggle,.quick-home{display:none}
@media screen and (max-width:620px){
  html{min-height:100%;height:auto!important;width:100%;overflow-x:clip!important;overflow-y:auto!important;overscroll-behavior-y:none!important;scroll-behavior:auto!important}
  body.tradeos-shell{height:auto!important;min-height:100%!important;max-height:none!important;position:static!important;overflow:visible!important;transform:none!important;contain:none!important;isolation:auto!important;overscroll-behavior-y:none!important;touch-action:auto!important}
  body.tradeos-shell #app{width:100%!important;max-width:100%!important;min-height:0!important;height:auto!important;position:static!important;overflow:visible!important;transform:none!important;contain:none!important}
  body.tradeos-shell #app>.layout{display:block!important;position:static!important;width:100%!important;min-height:100vh!important;height:auto!important;max-width:100%!important;overflow:visible!important;transform:none!important;contain:none!important;margin:0!important;padding:var(--tradeos-chrome-height,172px) 0 0!important}
  body.tradeos-shell #app>.layout>.main{display:block!important;position:static!important;width:100%!important;min-width:0!important;min-height:0!important;height:auto!important;max-width:100%!important;overflow:visible!important;transform:none!important;contain:none!important;padding:0!important}
  body.tradeos-shell #app>.layout>.main>.page{width:100%!important;max-width:100%!important;min-width:0!important;margin:0 auto!important;padding:19px 13px 55px!important;overflow:visible!important;transform:none!important;contain:none!important}
  body.tradeos-shell #tradeosFixedChrome{position:fixed!important;top:0!important;left:0!important;right:0!important;z-index:150!important;width:100%!important;max-width:100%!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;background:var(--sidebar-bg)!important;box-shadow:0 5px 16px #0008!important;transform:none!important;contain:none!important;overflow:visible!important;isolation:isolate!important}
  body.tradeos-shell #tradeosFixedChrome>.sidebar{position:relative!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;flex-wrap:nowrap!important;gap:7px!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;z-index:3!important;width:100%!important;max-width:100%!important;height:calc(56px + env(safe-area-inset-top,0px))!important;min-height:calc(56px + env(safe-area-inset-top,0px))!important;padding:calc(7px + env(safe-area-inset-top,0px)) max(10px,env(safe-area-inset-right,0px)) 7px max(10px,env(safe-area-inset-left,0px))!important;margin:0!important;border:0!important;border-bottom:1px solid var(--line)!important;background:var(--sidebar-bg)!important;box-shadow:none!important;overflow:visible!important;transform:none!important;contain:none!important}
  body.tradeos-shell #tradeosFixedChrome>.sidebar>.brand{display:flex!important;align-items:center!important;flex:1 1 auto!important;min-width:0!important;font-size:clamp(14px,4vw,18px)!important;line-height:1.2!important;white-space:nowrap!important;gap:7px!important;padding:0!important;margin:0!important}
  body.tradeos-shell #tradeosFixedChrome>.sidebar>.brand .brandmark{width:31px!important;height:31px!important;flex:0 0 31px!important;font-size:16px!important;border-radius:9px!important}
  body.tradeos-shell #tradeosFixedChrome>.sidebar>.quick-home,
  body.tradeos-shell #tradeosFixedChrome>.sidebar>.mobile-menu-toggle{display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;min-height:38px!important;height:38px!important;max-width:none!important;padding:7px 9px!important;margin:0!important;border:1px solid var(--line)!important;border-radius:10px!important;background:var(--panel-bg)!important;color:var(--text)!important;font-size:13px!important;font-weight:750!important;white-space:nowrap!important;line-height:1.15!important}
  body.tradeos-shell #tradeosFixedChrome>.sidebar>.nav{display:none!important}
  body.tradeos-shell #tradeosFixedChrome>.sidebar.menu-open>.nav{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;position:absolute!important;top:calc(100% - 1px)!important;left:0!important;right:0!important;z-index:6!important;gap:5px!important;margin:0!important;padding:10px!important;width:100%!important;max-height:min(63svh,485px)!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior-y:contain!important;background:var(--sidebar-bg)!important;border:1px solid var(--line)!important;border-top:0!important;border-radius:0 0 12px 12px!important;box-shadow:0 20px 30px #0009!important}
  body.tradeos-shell #tradeosFixedChrome>.sidebar.menu-open>.nav button{min-width:0!important;min-height:42px!important;padding:9px!important;font-size:12px!important;text-align:left!important;white-space:normal!important;overflow-wrap:anywhere!important}
  body.tradeos-shell #tradeosFixedChrome>.sidebar.menu-open>.nav button .sym{width:auto!important;margin-right:5px!important}
  body.tradeos-shell #tradeosFixedChrome>.sidebar .nav-appearance{grid-column:1/-1!important;padding:8px 6px 2px!important;margin:0!important;min-width:0!important}
  body.tradeos-shell #tradeosFixedChrome>.sidebar .nav-appearance select{font-size:16px!important}
  body.tradeos-shell #tradeosFixedChrome>.top{position:relative!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:7px!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;z-index:2!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;padding:9px 12px 11px!important;margin:0!important;background:var(--top-bg)!important;border:0!important;border-bottom:1px solid var(--line)!important;overflow:visible!important;transform:none!important;contain:none!important;box-shadow:none!important}
  body.tradeos-shell #tradeosFixedChrome>.top>.right{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:center!important;justify-content:flex-start!important;gap:6px!important;width:100%!important;min-width:0!important;max-width:100%!important}
  body.tradeos-shell #tradeosFixedChrome>.top .caps{font-size:10px!important;letter-spacing:1.6px!important}
  body.tradeos-shell #tradeosFixedChrome>.top b{font-size:13px!important;margin:0!important}
  body.tradeos-shell #tradeosFixedChrome>.top>.right>select{flex:1 1 96px!important;width:auto!important;min-width:90px!important;max-width:100%!important;height:39px!important;min-height:39px!important;padding:7px 8px!important;margin:0!important;font-size:16px!important}
  body.tradeos-shell #tradeosFixedChrome>.top>.right>.btn{flex:0 0 auto!important;width:auto!important;min-height:39px!important;padding:7px 9px!important;margin:0!important;font-size:11px!important;line-height:1.2!important}
  body.tradeos-shell .modalbg{z-index:240!important}
  body.tradeos-shell .toast{z-index:260!important}
  body.tradeos-shell input,body.tradeos-shell select,body.tradeos-shell textarea{font-size:16px!important}
  body.tradeos-shell #app :is(input,select,textarea,button){scroll-margin-top:calc(var(--tradeos-chrome-height,172px) + 12px)!important}
  body.tradeos-shell .intro{flex-wrap:wrap!important;align-items:flex-start!important}
  body.tradeos-shell .grid,body.tradeos-shell .modules{grid-template-columns:minmax(0,1fr)!important}
  body.tradeos-shell .stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.tradeos-shell .tablewrap{max-width:100%!important;overflow-x:auto!important}
  body.tradeos-shell h1{font-size:clamp(22px,6.4vw,29px)!important;line-height:1.18!important}
  body.tradeos-shell .panel{padding:14px!important}
  body.tradeos-shell .stat{padding:12px!important}
  body.tradeos-shell .stat .v{font-size:26px!important}
  body.tradeos-shell .item,body.tradeos-shell .headrow{flex-wrap:wrap!important}
}
@media(max-width:360px){
  body.tradeos-shell #tradeosFixedChrome>.sidebar>.brand{font-size:13px!important;gap:5px!important}
  body.tradeos-shell #tradeosFixedChrome>.sidebar>.brand .brandmark{width:28px!important;height:28px!important;flex-basis:28px!important}
  body.tradeos-shell #tradeosFixedChrome>.sidebar>.quick-home,body.tradeos-shell #tradeosFixedChrome>.sidebar>.mobile-menu-toggle{font-size:12px!important;padding:6px 7px!important}
}
@media (min-width:621px){#tradeosFixedChrome{display:none!important}}
@media print{body.tradeos-shell #tradeosFixedChrome{display:none!important}body.tradeos-shell #app>.layout{padding-top:0!important}}


/* v0.6.3: A small, reversible dashboard hero on upward scroll only.
   Visible under mobile fixed chrome when the original hero is out of view. */
#tradeosDashboardReturn{display:none;}
@media screen and (max-width:620px){
 body.tradeos-shell #tradeosDashboardReturn{
   position:fixed;
   z-index:149;
   display:flex;
   gap:9px;
   flex-wrap:wrap;
   justify-content:space-between;
   align-items:center;
   top:var(--tradeos-chrome-height,172px);
   left:0;
   right:0;
   padding:9px max(12px,env(safe-area-inset-right,0px)) 9px max(12px,env(safe-area-inset-left,0px));
   background:var(--top-bg,#111b2b);
   border-bottom:1px solid var(--line,#293b52);
   box-shadow:0 12px 22px #0009;
   max-width:100%;
   opacity:0;
   visibility:hidden;
   pointer-events:none;
   transform:translateY(-8px);
   transition:opacity .16s ease,transform .16s ease,visibility .16s;
 }
 body.tradeos-shell #tradeosDashboardReturn[data-visible="true"]{
   opacity:1;
   visibility:visible;
   pointer-events:auto;
   transform:translateY(0);
 }
 #tradeosDashboardReturn .dashboard-return-copy{min-width:0;flex:1 1 120px;display:flex;flex-direction:column;gap:2px;}
 #tradeosDashboardReturn .dashboard-return-copy strong{font-size:clamp(13px,3.5vw,15px);letter-spacing:-.15px;color:var(--text,#f5f8ff);line-height:1.25}
 #tradeosDashboardReturn .dashboard-return-copy small{font-size:10px;color:var(--muted,#a0aec3);line-height:1.3}
 #tradeosDashboardReturn .dashboard-return-actions{display:flex;gap:6px;flex:0 0 auto;max-width:100%;}
 #tradeosDashboardReturn .dashboard-return-actions button{min-height:36px;font-size:11px;white-space:nowrap;padding:7px 9px!important}
 #tradeosDashboardReturn .dashboard-review{background:var(--accent,#ff8c40);color:var(--accent-text,#0b121c);border-color:transparent;}
 #tradeosDashboardReturn .dashboard-back{background:var(--panel-bg,#172235);color:var(--text,#f5f8ff);}
}
@media(max-width:375px){
 #tradeosDashboardReturn .dashboard-return-copy small{display:none}
 #tradeosDashboardReturn .dashboard-return-actions{gap:4px}
 #tradeosDashboardReturn .dashboard-return-actions button{font-size:10px;padding:7px 6px!important}
}
@media(prefers-reduced-motion:reduce){#tradeosDashboardReturn{transition:none!important}}
