/* SignalWake M26.12.0 — Master responsive UI foundation
   Presentation only: no trading, bot, ledger, auth, risk or DB behavior. */
:root{
  --sw-ui26-gutter:20px;
  --sw-ui26-radius:12px;
  --sw-ui26-gap:10px;
  --sw-ui26-panel:#10161f;
  --sw-ui26-border:#2b3748;
  --sw-ui26-muted:#8d9aab;
  --sw-ui26-bull:url('/assets/signalwake-bull-v1.png?v=261200');
  --sw-ui26-bear:url('/assets/signalwake-bear-v1.png?v=261200');
}
html.sw-ui26{scroll-behavior:auto;overflow-x:hidden}
html.sw-ui26 body{overflow-x:hidden}
html.sw-ui26 .wrap,html.sw-ui26 main{min-width:0}

/* Direction icon system --------------------------------------------------- */
.sw-dir-icon{display:inline-block;width:1.35em;height:1.35em;flex:0 0 auto;background:center/contain no-repeat;vertical-align:-.26em}
.sw-dir-icon.bull,.sw-bull-icon{background-image:var(--sw-ui26-bull)}
.sw-dir-icon.bear,.sw-bear-icon{background-image:var(--sw-ui26-bear)}
.sw-side-long,.sw-side-short{display:inline-flex!important;align-items:center;justify-content:center;gap:.38em}
.sw-side-long::before,.sw-side-short::before{content:"";display:inline-block;width:1.25em;height:1.25em;flex:0 0 1.25em;background:center/contain no-repeat}
.sw-side-long::before{background-image:var(--sw-ui26-bull)}
.sw-side-short::before{background-image:var(--sw-ui26-bear)}
#swRegimeButton.sw-regime-bull #swRegimeAnimal,#swRegimeButton.sw-regime-bear #swRegimeAnimal{display:inline-flex;align-items:center;justify-content:center}
#swRegimeButton #swRegimeAnimal .sw-dir-icon{width:1.55em;height:1.55em}

/* Guaranteed parent-page scroll rails ----------------------------------- */
.sw-page-scroll-rail{display:none;position:fixed;top:var(--sw-nav-h,50px);bottom:var(--sw-bottom-h,0px);width:var(--sw-ui26-gutter);z-index:9992;background:transparent;touch-action:none;user-select:none;-webkit-user-select:none}
.sw-page-scroll-rail.left{left:0}.sw-page-scroll-rail.right{right:0}
html.sw-more-open .sw-page-scroll-rail{display:none!important}
@media (pointer:coarse) and (max-width:1180px){.sw-page-scroll-rail{display:block}}
@media (max-width:520px){:root{--sw-ui26-gutter:16px}}

/* Nested scrolls hand control back naturally at their limits. */
.sw-scroll-handoff,#marketTape,.appNavMoreMenu,.sw-table-scroll{overscroll-behavior-y:auto!important;-webkit-overflow-scrolling:touch}
#marketTape{max-height:300px!important;overflow-y:auto!important;scrollbar-gutter:stable}
.sw-table-scroll{max-height:430px!important;overflow:auto!important;scrollbar-gutter:stable;border-radius:10px}
.sw-table-scroll thead th{position:sticky;top:0;z-index:2;background:#111823}

/* Shared density --------------------------------------------------------- */
html.sw-ui26 .card,html.sw-ui26 .panel{scroll-margin-top:64px}
html.sw-ui26 .sw-ui26-compact{padding-top:10px!important;padding-bottom:10px!important}
html.sw-ui26 .sw-ui26-admin-maintenance{position:relative;max-height:54px;overflow:hidden;cursor:pointer;transition:max-height .18s ease,padding .18s ease}
html.sw-ui26 .sw-ui26-admin-maintenance::after{content:'Review';position:absolute;right:10px;top:50%;transform:translateY(-50%);font-size:10px;font-weight:900;opacity:.8}
html.sw-ui26 .sw-ui26-admin-maintenance.sw-expanded{max-height:420px;cursor:default}
html.sw-ui26 .sw-ui26-admin-maintenance.sw-expanded::after{content:'Collapse'}
.sw-ui26-more-toggle{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;margin:8px 0 0;border:1px solid #334157;background:#151d28;color:#d9e4f4;border-radius:9px;min-height:42px;padding:8px 11px;font:850 12px system-ui;cursor:pointer}
.sw-ui26-limited{display:none!important}.sw-ui26-show-all .sw-ui26-limited{display:revert!important}
.sw-ui26-empty-compact{min-height:0!important;padding-top:12px!important;padding-bottom:12px!important}

/* More drawer: portrait drawer / landscape utility rail ----------------- */
html.sw-ui26 .appNavMoreMenu{width:min(420px,calc(100vw - 24px));right:10px;border-radius:14px}
html.sw-ui26 .navMenuHead{position:sticky;top:-10px;z-index:3;background:#0f151e;padding-top:10px}
html.sw-ui26 .navMenuGrid button[id$='Toggle']{border-radius:999px;min-height:42px}
html.sw-ui26 .navMenuGrid button[id$='Toggle'][aria-pressed='true']{border-color:#5578b9;background:#172841}
html.sw-ui26 .navMenuGrid button[id$='Toggle'] span{margin-left:auto;padding:2px 7px;border-radius:999px;background:#0c121a;font-size:9px}
html.sw-more-open,html.sw-more-open body{overflow:hidden!important}
#swUi26MoreBackdrop{position:fixed;inset:0;z-index:10015;background:rgba(2,6,10,.38);backdrop-filter:blur(1px);-webkit-backdrop-filter:blur(1px)}
.appNavMoreMenu{z-index:10020!important}
@media (max-width:760px){
  html.sw-ui26 .appNavMoreMenu{left:16px;right:16px;width:auto;top:52px;bottom:calc(var(--sw-bottom-h,64px) + 6px);max-height:none}
}
@media (orientation:landscape) and (min-width:700px){
  html.sw-ui26 .swMobileBottomNav{display:none!important}
  html.sw-ui26 body{padding-bottom:0!important}
  html.sw-ui26 .appNavPrimary{display:flex!important}
  html.sw-ui26 .appNavRight{display:flex!important}
  html.sw-ui26 .appNavMoreMenu{left:auto!important;right:10px!important;width:min(420px,38vw)!important;top:52px!important;bottom:10px!important;max-height:none!important}
}

/* Dashboard / Home ------------------------------------------------------- */
html.sw-page-dashboard .stats,html.sw-page-dashboard .paperSnapshot{gap:8px!important}
html.sw-page-dashboard .stat,html.sw-page-dashboard .snap{padding:10px!important}
html.sw-page-dashboard .probBoard{padding:12px!important}
html.sw-page-dashboard .probGrid{gap:8px!important}
html.sw-page-dashboard .probCard{padding:11px!important}
html.sw-page-dashboard .probReason{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
html.sw-page-dashboard .sw-mover-section h2::before,html.sw-page-dashboard .sw-mover-section h3::before{content:"";display:inline-block;width:1.25em;height:1.25em;background:center/contain no-repeat;vertical-align:-.25em;margin-right:5px}
html.sw-page-dashboard .sw-mover-gainers h2::before,html.sw-page-dashboard .sw-mover-gainers h3::before{background-image:var(--sw-ui26-bull)}
html.sw-page-dashboard .sw-mover-decliners h2::before,html.sw-page-dashboard .sw-mover-decliners h3::before{background-image:var(--sw-ui26-bear)}
@media (min-width:700px) and (max-width:1180px){html.sw-page-dashboard .sw-movers-pair{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;align-items:start}}

/* Scanner --------------------------------------------------------------- */
html.sw-page-scanner #liveRadar{gap:8px!important}
html.sw-page-scanner .radarCard{padding:10px!important}
html.sw-page-scanner .radarStats{gap:5px!important}
html.sw-page-scanner .radarStat{padding:6px!important}
html.sw-page-scanner .details{line-height:1.4}
html.sw-page-scanner .table{min-width:0}
@media (min-width:700px) and (max-width:1180px){html.sw-page-scanner #liveRadar{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* Trade / tracker / paper ----------------------------------------------- */
html.sw-page-trades .filters,html.sw-page-trades .filterRow{gap:6px!important}
html.sw-page-trades .metric,html.sw-page-paper .metric,html.sw-page-tracker .metric{padding:9px!important}
html.sw-page-trades .trade{padding:9px!important;margin-top:6px!important}
html.sw-page-trades .trade .meta{line-height:1.35!important}
html.sw-page-trades .coinPanel{padding:11px!important}
html.sw-page-paper .market-flow-card,html.sw-page-tracker .market-flow-card{padding:11px!important}
html.sw-page-paper .market-flow-metrics,html.sw-page-tracker .market-flow-metrics{gap:7px!important}
html.sw-page-paper .tape-body,html.sw-page-tracker .tape-body{font-size:12px!important}
html.sw-page-paper #paperOrdersHistory,html.sw-page-paper #tradeList,html.sw-page-tracker #paperOrdersHistory,html.sw-page-tracker #tradeList{overscroll-behavior-y:auto!important}
html.sw-page-paper .paper-order-history,html.sw-page-tracker .paper-order-history{margin-top:10px!important}

/* Prop Desk -------------------------------------------------------------- */
html.sw-page-prop .grid{gap:7px!important;margin:10px 0!important}
html.sw-page-prop .card{padding:9px!important}
html.sw-page-prop .panel{padding:10px!important;margin:9px 0!important}
html.sw-page-prop .sigGrid{gap:6px!important}
html.sw-page-prop .sig{padding:8px!important}
html.sw-page-prop .sig .meta,html.sw-page-prop .sig .note{line-height:1.35!important}
@media (min-width:700px) and (max-width:1180px){html.sw-page-prop .sigGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* Venues / simulation lab ------------------------------------------------ */
html.sw-page-venues .panel,html.sw-page-venues .card{padding:10px!important}
html.sw-page-venues table td,html.sw-page-venues table th{padding-top:6px!important;padding-bottom:6px!important}

/* Bot Control Center / Performance Lab ---------------------------------- */
html.sw-page-bot-control .panel,html.sw-page-performance .panel{padding:10px!important;margin:9px 0!important}
html.sw-page-bot-control [data-advanced='1'],html.sw-page-performance [data-advanced='1']{scroll-margin-top:68px}
html.sw-page-performance .modeGrid,html.sw-page-performance .grid{gap:7px!important}

/* Calendar --------------------------------------------------------------- */
html.sw-page-calendar .stats,html.sw-page-calendar .summaryGrid{gap:7px!important}
html.sw-page-calendar .stat,html.sw-page-calendar .metric{padding:8px!important}
html.sw-page-calendar .day,html.sw-page-calendar .calendarDay{min-height:96px!important;padding:7px!important}

/* Replay / training ------------------------------------------------------ */
html.sw-page-training .card,html.sw-page-training .panel{padding:11px!important}
html.sw-page-training .metrics{gap:7px!important}

/* Learn & Help accordion ------------------------------------------------- */
html.sw-page-help .wrap{padding-top:16px!important}
html.sw-page-help .path{gap:8px!important;margin:10px 0 14px!important}
html.sw-page-help .step{padding:11px!important}
html.sw-page-help .search{margin:12px 0!important}
html.sw-page-help .why{margin:12px 0!important;padding:11px!important}
html.sw-page-help .grid{gap:7px!important}
html.sw-page-help .item{padding:0!important;overflow:hidden}
html.sw-page-help .item>.tag,html.sw-page-help .item>h2{display:none!important}
.sw-help-toggle{width:100%;border:0;background:transparent;color:#f1f5fb;text-align:left;display:grid;grid-template-columns:1fr auto;gap:4px 10px;padding:12px;cursor:pointer;font:inherit}
.sw-help-toggle .sw-help-tag{grid-column:1;color:#86b5ff;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}
.sw-help-toggle .sw-help-title{grid-column:1;font-weight:850;font-size:14px}.sw-help-toggle .sw-help-chevron{grid-column:2;grid-row:1/3;align-self:center;color:#8795a9;font-size:20px;transition:transform .15s ease}
html.sw-page-help .item>p{display:none;padding:0 12px 12px!important;font-size:13px!important;line-height:1.45!important}
html.sw-page-help .item.sw-open>p{display:block}html.sw-page-help .item.sw-open .sw-help-chevron{transform:rotate(90deg)}
.sw-help-categories{display:flex;gap:6px;overflow:auto;padding:0 0 10px;scrollbar-width:none}.sw-help-categories::-webkit-scrollbar{display:none}.sw-help-category{flex:0 0 auto;border:1px solid #303b4d;background:#111722;color:#aeb9ca;border-radius:999px;padding:7px 10px;font:800 10px system-ui;cursor:pointer}.sw-help-category.active{background:#1d2b46;border-color:#5578b9;color:#fff}

/* Plans ------------------------------------------------------------------ */
html.sw-page-plans .plan,html.sw-page-plans .card,html.sw-page-plans .panel{padding-top:11px!important;padding-bottom:11px!important}
html.sw-page-plans li{margin-top:5px!important;margin-bottom:5px!important}
html.sw-page-plans .sw-plan-pro{border-color:#5578b9!important;box-shadow:inset 3px 0 0 #5578b9}

/* Research / bot console: dense but navigable --------------------------- */
.sw-research-nav{position:sticky;top:50px;z-index:8;display:flex;gap:6px;overflow:auto;margin:8px 0;padding:7px;background:rgba(9,13,19,.94);border:1px solid #2b3748;border-radius:10px;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);scrollbar-width:none}.sw-research-nav::-webkit-scrollbar{display:none}.sw-research-nav button{flex:0 0 auto;border:1px solid #334157;background:#111923;color:#b9c6d7;border-radius:999px;padding:7px 10px;font:850 10px system-ui;cursor:pointer}
html.sw-page-research .panel,html.sw-page-bot .panel{padding:10px!important;margin:9px 0!important}
html.sw-page-research table td,html.sw-page-research table th,html.sw-page-bot table td,html.sw-page-bot table th{padding-top:6px!important;padding-bottom:6px!important}
.sw-repeat-count{display:inline-flex;margin-left:6px;border:1px solid #5d6a7f;border-radius:999px;padding:1px 6px;color:#dbe6f5;font-size:9px;font-weight:900}
.sw-audit-grouped-row{display:none!important}.sw-audit-raw .sw-audit-grouped-row{display:table-row!important}.sw-audit-raw .sw-repeat-count{display:none!important}

/* Users / access --------------------------------------------------------- */
html.sw-page-users .card{padding:11px!important}
html.sw-page-users .user{padding-top:10px!important;padding-bottom:10px!important}

/* Public landing page ---------------------------------------------------- */
html.sw-page-public .nav{position:sticky;top:0;z-index:40;background:rgba(8,11,16,.94);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
html.sw-page-public .hero{padding-top:38px!important;padding-bottom:34px!important;gap:26px!important}
html.sw-page-public .heroLogo{width:min(560px,100%)!important;margin-bottom:12px!important}
html.sw-page-public .heroActions{margin-top:16px!important}
html.sw-page-public .cards{gap:9px!important}
html.sw-page-public .card{padding:14px!important}
html.sw-page-public .steps{position:relative;gap:8px!important}
html.sw-page-public .step{min-width:0}
@media(max-width:800px){html.sw-page-public .hero{padding-top:24px!important}.sw-page-public .heroLogo{width:min(520px,100%)!important}}

/* Small phone sanity ----------------------------------------------------- */
@media(max-width:520px){
  html.sw-ui26 .wrap{padding-left:max(12px,var(--sw-ui26-gutter))!important;padding-right:max(12px,var(--sw-ui26-gutter))!important}
  html.sw-ui26 .card,html.sw-ui26 .panel{border-radius:11px!important}
  html.sw-ui26 h1{line-height:1.08}
}
