/* Responsive layout overrides shared by every terminal route. */
.mobile-dock{display:none}
@media(max-width:1100px){
  body .primary-nav,body .breadcrumb{display:none}
  body .nav-toggle{display:grid;place-items:center;flex:none;min-width:38px;min-height:38px}
  body .header-location{flex:1 1 auto;min-width:38px;gap:10px}
  body .top-actions{flex:0 0 auto;justify-content:flex-end;gap:9px}
  body.menu-open .sidebar{display:flex;z-index:110;width:min(300px,86vw)}
  body.menu-open .nav-scrim:not([hidden]){display:block;left:min(300px,86vw);z-index:109}
  body .shell>main{min-width:0}
  body .page-heading{align-items:flex-start}
  body .toolbar-wide,body .fomo-lead,body .wallet-lead{flex-wrap:wrap}
  body .tools{flex-wrap:wrap}
  body .tools input{min-width:160px;max-width:100%}
  body.token-route .token-detail-top{grid-template-columns:minmax(0,1fr)}
  body.token-route .token-detail-layout{grid-template-columns:minmax(0,1fr) minmax(245px,30%)}
}
@media(min-width:701px) and (max-width:1100px){
  body .page-jump{display:block}
  body .header-brand{display:inline-flex;margin:0}
  body .header-brand span{display:inline}
  body .shell>header{padding-inline:18px}
  body .shell>main{padding-inline:18px}
  body .research-hub,body .comparison{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
  html,body{max-width:100%;overflow-x:clip}
  body{font-size:13px}
  body .shell>header{height:58px;min-height:58px;padding:0 12px;gap:7px;flex-wrap:nowrap}
  body .header-location{flex:0 0 auto;min-width:0;width:auto;gap:7px}
  body .nav-toggle{display:flex;width:auto;min-width:68px;height:38px;margin:0;padding:0 9px;align-items:center;justify-content:center;gap:6px;border-radius:8px}
  body .nav-toggle-label{font-size:11px;font-weight:750}
  body .header-brand{display:inline-flex!important;margin:0!important}
  body .header-brand img{width:28px;height:28px}
  body .header-brand span{display:none!important}
  body .top-actions{display:flex;flex:0 0 auto;align-items:center;justify-content:flex-end;gap:7px;margin-left:auto;width:auto;max-width:calc(100% - 86px)}
  body .page-jump{display:none!important}
  body .terminal-account-link{min-height:38px;padding:0 9px;font-size:10px}
  body .alerts-control,body .alerts-toggle{flex:none;width:38px;height:38px}
  body .top-actions>.primary.small{width:38px;min-width:38px;height:38px;min-height:38px;padding:0;overflow:hidden;font-size:0;white-space:nowrap}
  body .top-actions>.primary.small::after{content:'+';font-size:22px;font-weight:500;line-height:1}
  body .terminal-strip{height:auto;min-height:25px;padding:4px 12px;gap:8px;font-size:8px}
  body .terminal-strip span:nth-child(2),body .terminal-strip a{display:none}
  body .shell>main,body.launches-page main{width:100%;padding:14px 11px 28px}
  body .page-heading{flex-direction:column;gap:8px}
  body .heading-side{align-items:flex-start}
  body .page-guide{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
  body .page-guide a{flex:none;min-height:38px}
  body .data-notice{align-items:flex-start}
  body .toolbar-wide{align-items:stretch;flex-direction:column}
  body .toolbar-wide .tools{width:100%;justify-content:stretch}
  body .toolbar-wide .tools>*{flex:1 1 145px;min-width:0}
  body .toolbar-wide .tools:last-child{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
  body .toolbar-wide .tools:last-child .check-field{display:flex;align-items:center;justify-content:flex-start;gap:9px;width:100%;min-height:42px;white-space:normal}
  body .toolbar-wide .tools:last-child .check-field input{flex:none;width:16px!important;height:16px;margin:0}
  body .toolbar-wide .tools:last-child>button{width:100%;min-height:42px;justify-content:center}
  body .fomo-lead>div:last-child,body .wallet-lead>div:last-child{width:100%;flex-wrap:wrap;white-space:normal}
  body .fomo-lead a,body .wallet-lead a,body .wallet-lead button{min-height:42px;justify-content:center}
  body .panel-head{gap:9px;padding:15px}
  body .panel-foot{flex-wrap:wrap;gap:9px;padding:11px 15px}
  body .research-hub,body[data-view="overview"] .research-hub{grid-template-columns:repeat(2,minmax(0,1fr))}
  body .research-hub a,body[data-view="overview"] .research-hub a{min-height:145px}
  body .stats,.wallet-signal-bar,.market-highlights{grid-template-columns:repeat(2,minmax(0,1fr))}
  body .bottom-grid,body .overview-grid,body .comparison,body .lab-layout{grid-template-columns:minmax(0,1fr)}
  body .compare-controls{flex-direction:column;gap:7px}
  body .compare-controls select{width:100%;max-width:none}
  body .compare-controls span{padding:0;text-align:center}
  body .save-coin-form label,body .save-coin-form .save-coin-address,body .save-coin-form button{width:100%;min-width:0}
  body .saved-coins-list{grid-template-columns:1fr}
  body .saved-coin-entry .discovery-signal{min-width:0}
  body.launches-page .discovery-hero{grid-template-columns:minmax(0,1fr);margin-bottom:13px}
  body.launches-page .discovery-hero-copy{padding:22px 18px}
  body.launches-page .discovery-hero h2{font-size:clamp(29px,8vw,37px)}
  body.launches-page .discovery-hero-art{min-height:175px}
  body.launches-page .discovery-board{gap:12px}
  body.launches-page .discovery-networks,body.launches-page .discovery-quick,body.launches-page .discovery-windows{overflow-x:auto;flex-wrap:nowrap;scrollbar-width:thin}
  body.launches-page .discovery-networks button,body.launches-page .discovery-quick>*,body.launches-page .discovery-windows button{flex:none;min-height:38px}
  body.launches-page .discovery-indexed .discovery-signal-list,body.launches-page .discovery-movers .discovery-signal-list{grid-template-columns:minmax(0,1fr);max-height:620px}
  body.launches-page .discovery-signal{min-height:155px;padding:14px}
  body.launches-page .discovery-signal-value>strong{font-size:17px}
  body.token-route .token-detail-top{display:flex;flex-direction:column;align-items:stretch;gap:9px}
  body.token-route .token-detail-kicker{height:auto;min-height:29px;flex-wrap:wrap;gap:5px 12px;padding:7px 2px;font-size:8px;line-height:1.35}
  body.token-route .token-detail-identity{width:100%;min-width:0}
  body.token-route .token-detail-address{margin:0;padding:0;max-width:100%;flex-wrap:wrap}
  body.token-route .token-summary-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;width:100%;margin:0;overflow:visible}
  body.token-route .token-summary-metrics>div{min-width:0;min-height:62px;text-align:left}
  body.token-route .token-detail-actions{margin:0;justify-content:flex-start;flex-wrap:wrap}
  body.token-route .token-detail-actions a,body.token-route .token-detail-actions button{min-height:38px}
  body.token-route .token-detail-layout{display:flex;flex-direction:column}
  body.token-route .token-detail-main,body.token-route .token-detail-chart{min-width:0;width:100%}
  body.token-route .token-chart{height:clamp(340px,56dvh,540px);min-height:340px;touch-action:pan-y}
  body.token-route .token-chart-toolbar{flex-wrap:wrap;gap:10px}
  body.token-route .token-detail-side{display:grid;grid-template-columns:minmax(0,1fr);position:static;width:100%;padding:10px 0 0;border:0}
  body.token-route .token-pool-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.token-route .token-pool-flow{grid-template-columns:minmax(0,1fr)}
  body #modal{width:min(100% - 20px,520px);max-width:520px;max-height:min(88dvh,900px);margin:auto;padding:16px;overflow:auto}
  body .alerts-panel{position:fixed;top:58px;right:9px;left:9px;width:auto;max-height:calc(100dvh - 150px);overflow:auto}
  body #toast{left:12px;right:12px;bottom:18px;width:auto;max-width:none;text-align:center}
  .mobile-dock{position:static;top:auto;z-index:auto;display:flex;flex-direction:row;align-items:center;gap:5px;width:100%;height:48px;margin:0;padding:5px 8px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;border-bottom:1px solid #315741;background:#091610}
  .mobile-dock::-webkit-scrollbar{display:none}
  .mobile-dock a{display:grid;place-items:center;flex:1 0 auto;min-width:62px;min-height:36px;padding:5px 9px;border:1px solid transparent;border-radius:7px;color:#a5c1b0;text-align:center;font-size:10px;font-weight:750;text-decoration:none;white-space:nowrap}
  .mobile-dock a.active{background:#173b27;color:#66f0a0;border-color:#286544}
  .mobile-dock a:focus-visible{outline-offset:-2px}
  .mobile-dock a:focus-visible{outline-offset:-2px}
  .table-scroll:has(>table.responsive-cards){overflow:visible}
  table.responsive-cards{display:block;width:100%;min-width:0!important;white-space:normal}
  table.responsive-cards thead{display:none}
  table.responsive-cards tbody{display:grid;gap:9px;padding:9px}
  table.responsive-cards tr{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 12px;padding:13px;border:1px solid #2b4638;border-radius:9px;background:#102019}
  table.responsive-cards td{display:flex;flex-direction:column;justify-content:flex-start;min-width:0;padding:0;border:0!important;white-space:normal;overflow-wrap:anywhere;font-size:12px}
  table.responsive-cards td::before{content:attr(data-label);display:block;margin-bottom:4px;color:#80a893;font:700 9px ui-monospace,Consolas,monospace;letter-spacing:.3px;text-transform:uppercase}
  table.responsive-cards td:first-child{grid-column:1/-1}
  table.responsive-cards td:first-child::before{display:none}
  table.responsive-cards td:last-child:has(button),table.responsive-cards td:last-child:has(a){grid-column:1/-1}
  table.responsive-cards td:last-child button,table.responsive-cards td:last-child a{min-height:36px}
  table.responsive-cards tr:has([colspan]){display:block}
  table.responsive-cards tr:has([colspan]) td{display:block}
  table.fomo-table.responsive-cards td.rank{position:absolute;top:14px;right:14px;z-index:1;width:auto;font-weight:900;color:#65e9a2}
  table.fomo-table.responsive-cards td:nth-child(2),table.market-table.responsive-cards td:nth-child(2){grid-column:1/-1;padding-right:22px}
  table.fomo-table.responsive-cards td:nth-child(2)::before,table.market-table.responsive-cards td:nth-child(2)::before{display:none}
  table.fomo-table.responsive-cards .fomo-trader-cell{min-width:0}
  table.fomo-table.responsive-cards .fomo-trader-actions button{min-height:36px;font-size:11px}
  table.market-table.responsive-cards td:first-child{position:absolute;top:14px;right:14px;width:auto}
  table.market-table.responsive-cards td:first-child::before{display:none}
  body .matrix{min-width:580px}
  body .table-scroll:has(>.matrix){overflow-x:auto}
}
@media(max-width:390px){
  body .header-brand{display:none!important}
  body .terminal-account-link{font-size:9px;padding:0 7px}
  body .top-actions{gap:5px}
  body .research-hub,body[data-view="overview"] .research-hub{grid-template-columns:1fr}
  body .research-hub a,body[data-view="overview"] .research-hub a{min-height:116px}
  body.launches-page .discovery-signal{grid-template-columns:42px minmax(0,1fr) auto;gap:7px}
  .mobile-dock a{min-width:58px;padding-inline:7px;font-size:9px}
}
