/* Approved prototype V2. Shared presentation only; native/chart behavior stays intact. */
:root{--bg:#000;--panel:#080808;--line:#292929;--faint:#202020;--text:#fff;--muted:#aaa;--up:#00f080;--down:#ff3045;--ui-bg:#000;--ui-surface:#111;--ui-line:#292929;--ui-text:#fff;--ui-muted:#aaa}
body.visual-v2{font-weight:400;letter-spacing:0;line-height:1.45;color:#fff;background:#000;font-variant-numeric:tabular-nums}
body.visual-v2 button,body.visual-v2 .button{box-shadow:none;border-radius:6px;font-weight:500}
body.visual-v2 input,body.visual-v2 .custom-select-trigger{background:#141414;border:1px solid #393939;border-radius:7px;color:#eee}
body.visual-v2 button.selected,body.visual-v2 button.primary{background:#fff;color:#000;border-color:#fff;font-weight:650}
body.visual-v2 .appbar .brand strong{font-size:26px;font-weight:750;letter-spacing:-.7px}
body.visual-v2 .brand span{display:none}
body.visual-v2 .account-settings-entry{border-radius:50%;background:#fff;color:#000;border:0;width:32px;height:32px;font-size:15px!important;font-weight:700;display:flex!important;align-items:center;justify-content:center}
body.visual-v2 .appbar nav button{border:0;border-radius:0;background:transparent;color:#aaa;position:relative;box-shadow:none}
body.visual-v2 .appbar nav button.selected{color:white;font-weight:700;background:none}
body.visual-v2 .appbar nav button.selected:after{content:'';position:absolute;bottom:0;left:4px;right:4px;height:2px;background:white}
body.visual-v2 dialog{background:#111;border:1px solid #393939;border-radius:14px;color:white}
body.visual-v2 dialog::backdrop{background:#0009;backdrop-filter:blur(5px)}
body.visual-v2 dialog>header{padding:20px 24px;border-bottom:0}
body.visual-v2 dialog>header h2{font-size:20px;font-weight:700}
body.visual-v2 dialog>header button{background:transparent;border:0;color:#aaa}
body.visual-v2 .account-dialog{width:min(840px,calc(100vw - 32px));max-width:840px;background:#111}
body.visual-v2 .account-layout{grid-template-columns:175px minmax(0,1fr)}
body.visual-v2 .account-layout nav{background:#080808;border:0;padding:10px 14px}
body.visual-v2 .account-layout nav button{font-size:14px;padding:11px 14px;border:0;color:#bbb}
body.visual-v2 .account-layout nav button.active{background:#fff;color:#000;font-weight:650}
body.visual-v2 .account-content{padding:24px 30px}
body.visual-v2 .account-content h3{font-size:26px;font-weight:700;letter-spacing:-.5px}
body.visual-v2 .account-content h4{font-size:12px;font-weight:600;color:#aaa}
body.visual-v2 .account-content p{font-size:13px;color:#aaa}
body.visual-v2 .account-row{padding:20px 0;border-color:#292929}
body.visual-v2 .account-row strong{font-size:15px;font-weight:600}
body.visual-v2 .account-row small{font-size:12px;color:#aaa}
body.visual-v2 .account-content button{background:#242424;border:0;color:white}
body.visual-v2 .account-welcome h1{font-size:28px;font-weight:700}
body.visual-v2 .account-welcome input{background:#141414;border-color:#393939;border-radius:7px}
body.visual-v2 .inbox-tabs button{font-size:14px;background:none;border:0;border-radius:0;color:#aaa}
body.visual-v2 .inbox-tabs button.selected{color:white;border-bottom:2px solid white;font-weight:650}
body.visual-v2 .inbox-message{border-color:#252525}
body.visual-v2 .inbox-message p{font-size:15px;font-weight:500}
body.visual-v2 .inbox-message time,body.visual-v2 .inbox-kind{font-size:12px;color:#aaa}
@media(min-width:1000px){
 body.visual-v2:not(.mobile-app) .appbar{height:64px;padding:0 24px;gap:40px;background:#050505}
 body.visual-v2:not(.mobile-app) .appbar .brand{min-width:110px}
 body.visual-v2:not(.mobile-app) .appbar nav{height:100%;gap:28px}
 body.visual-v2:not(.mobile-app) .appbar nav button{font-size:14px;padding:0 4px;min-width:0;height:100%}
 body.visual-v2:not(.mobile-app) .app-actions{margin-left:auto}
 body.visual-v2:not(.mobile-app) .toolbar{height:52px;padding:8px 24px;gap:12px}
 body.visual-v2:not(.mobile-app) .toolbar button,body.visual-v2:not(.mobile-app) .toolbar .button{font-size:12px;border-color:transparent;background:transparent;padding:7px 10px}
 body.visual-v2:not(.mobile-app) .toolbar button.selected{color:#000;background:#fff;font-weight:650}
 body.visual-v2:not(.mobile-app) .toolbar #symbol-picker{background:#242424}
 body.visual-v2:not(.mobile-app) .chart-title{padding:14px 24px 8px;min-height:44px}
 body.visual-v2:not(.mobile-app) .chart-title strong{font-size:19px;font-weight:700}
 body.visual-v2:not(.mobile-app) .chart-title #ohlc{font-size:12px}
 body.visual-v2:not(.mobile-app) .top-ratios{margin:0 24px;padding:8px 0;border:0;gap:24px}
 body.visual-v2:not(.mobile-app) .ratio-block{font-size:12px;gap:8px}
 body.visual-v2:not(.mobile-app) .ratio-block strong{font-size:16px;font-weight:650}
 body.visual-v2:not(.mobile-app) .ratio-track{max-width:90px}
 body.visual-v2:not(.mobile-app) .chart-legend{padding:7px 24px;font-size:11px}
 body.visual-v2:not(.mobile-app) .canvas-wrap{margin-inline:10px}
 body.visual-v2:not(.mobile-app) #smart-distribution{padding:0 24px 10px;grid-template-rows:43px minmax(0,1fr)}
 body.visual-v2:not(.mobile-app) #smart-distribution h2{font-size:17px;font-weight:650}
 body.visual-v2:not(.mobile-app) #smart-distribution .smart-history{grid-template-rows:38px 50px minmax(0,1fr)}
 body.visual-v2:not(.mobile-app) #smart-distribution .smart-history-readout>div{display:block}
 body.visual-v2:not(.mobile-app) #smart-distribution .smart-history-readout strong{font-size:26px;font-weight:650;letter-spacing:-.5px}
 body.visual-v2:not(.mobile-app) #smart-distribution .smart-history-controls button,body.visual-v2:not(.mobile-app) #smart-distribution .smart-history-meta button{font-size:12px}
 body.visual-v2:not(.mobile-app) .inspector{background:#080808;border:0;border-left:1px solid #292929}
 body.visual-v2:not(.mobile-app) .watch-row{font-size:13px;min-height:42px;border-bottom:0}
 body.visual-v2:not(.mobile-app) .watch-row>span:first-child{font-weight:650}
 body.visual-v2:not(.mobile-app) .instrument h2{font-size:19px;font-weight:650}
 body.visual-v2:not(.mobile-app) .instrument .quote{font-size:28px;font-weight:650}
 body.visual-v2:not(.mobile-app) .instrument .data-pairs{font-size:12px}
 body.visual-v2:not(.mobile-app) #rankings-view,body.visual-v2:not(.mobile-app) #list-view{padding-inline:24px}
 body.visual-v2:not(.mobile-app) .rank-toolbar{min-height:58px;gap:20px}
 body.visual-v2:not(.mobile-app) .rank-toolbar #rank-periods{border:0;gap:6px}
 body.visual-v2:not(.mobile-app) .rank-toolbar #rank-periods button{padding:7px 9px;min-height:34px;border:0;border-radius:6px}
 body.visual-v2:not(.mobile-app) .rank-toolbar #rank-periods button.selected{background:#fff;color:#000;font-weight:650;box-shadow:none}
 body.visual-v2:not(.mobile-app) .rank-toolbar #rank-periods button.selected::after{content:none}
 body.visual-v2:not(.mobile-app) .rank-direction{border:0}
 body.visual-v2:not(.mobile-app) table{border:0;font-size:14px}
 body.visual-v2:not(.mobile-app) th{font-size:12px;font-weight:500;color:#aaa;background:#0a0a0a;height:40px;border:0}
 body.visual-v2:not(.mobile-app) td{font-size:14px;font-weight:450;padding:14px 12px;height:74px;border-bottom:1px solid #202020}
 body.visual-v2:not(.mobile-app) td .symbol-link,body.visual-v2:not(.mobile-app) [data-rank-symbol]:not(.rank-preview-button){font-size:17px;font-weight:700;color:#fff}
 body.visual-v2:not(.mobile-app) .rank-table td:nth-child(4),body.visual-v2:not(.mobile-app) .table-screens td:nth-child(3){font-size:18px;font-weight:600}
 body.visual-v2:not(.mobile-app) .rank-table td.rank-active{font-size:18px;font-weight:700;background:none}
 body.visual-v2:not(.mobile-app) td small{font-size:11px;color:#999}
 body.visual-v2:not(.mobile-app) tbody tr:hover{background:#141414}
 body.visual-v2:not(.mobile-app) .trend-preview{width:170px;height:50px}
 body.visual-v2:not(.mobile-app) .trend-preview svg{height:46px;width:125px}
 body.visual-v2:not(.mobile-app) #news-view{padding:0 24px}
 body.visual-v2:not(.mobile-app) #news-view .inbox-message{min-height:80px;padding:18px 12px}
 body.visual-v2:not(.mobile-app) #news-view .inbox-message header button{font-size:18px;font-weight:700}
 body.visual-v2:not(.mobile-app) .statusbar{font-size:10px;height:25px}
}
/* Native bottom bars and gesture surfaces are deliberately not restyled. */
body.visual-v2.mobile-app .m-coin-row strong,body.visual-v2.mobile-app .m-screen-row button{font-size:18px;font-weight:700}
body.visual-v2.mobile-app .m-price strong{font-size:19px;font-weight:650;letter-spacing:-.3px}
body.visual-v2.mobile-app .m-price .up,body.visual-v2.mobile-app .m-price .down{font-weight:650}
body.visual-v2.mobile-app .m-coin-row{padding-block:12px;min-height:90px}
body.visual-v2.mobile-app .m-header h1{font-weight:700}
body.visual-v2.mobile-app .m-subnav button.selected{font-weight:700}
body.visual-v2.mobile-app .account-settings-entry{position:fixed;right:16px;top:calc(env(safe-area-inset-top) + 9px);z-index:40;width:32px;height:32px}
body.visual-v2.mobile-app .m-header{padding-right:55px}
body.visual-v2.mobile-app dialog.account-dialog{width:calc(100vw - 24px);height:75dvh;max-width:none}
@media(max-width:700px){body.visual-v2 .account-layout{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}body.visual-v2 .account-layout nav{flex-direction:row;overflow:auto;padding:8px}body.visual-v2 .account-content{padding:20px}body.visual-v2 .account-layout nav button{white-space:nowrap;padding:10px 12px}}
body.visual-v2.mobile-app #m-topbar{padding-right:50px}
body.visual-v2:not(.mobile-app) .rank-scope>button{border:0;background:none;color:#aaa;border-radius:0}
body.visual-v2:not(.mobile-app) .rank-scope>button.selected{color:white;background:none;border-bottom:2px solid white}

/* Shared alignment contract: 8px rhythm, stable navigation slots, one control baseline. */
body.visual-v2{--layout-gutter:24px;--control-height:36px;--icon-size:18px}
body.visual-v2 *,body.visual-v2 *::before,body.visual-v2 *::after{box-sizing:border-box}
body.visual-v2 button,body.visual-v2 .button{line-height:1.25;vertical-align:middle}
body.visual-v2 button svg,body.visual-v2 .button svg{display:block;flex-shrink:0;vertical-align:middle}
body.visual-v2 .search-field{display:flex;align-items:center;gap:8px;padding:0 12px;height:var(--control-height);border:1px solid #393939;border-radius:7px;background:#141414}
body.visual-v2 .search-field input{flex:1;min-width:0;width:100%;height:100%;padding:0;border:0;border-radius:0;background:transparent;outline:none;line-height:normal}
body.visual-v2 .search-field input:is(:focus,:focus-visible){outline:none;box-shadow:none;border:0}
body.visual-v2 .search-field>svg{width:16px;height:16px;flex:0 0 16px;color:#aaa}
body.visual-v2 :is(#symbol-search,#news-search,input[type=search]):is(:focus,:focus-visible){outline:none;box-shadow:none;border-color:#aaa}
body.visual-v2 .search-field:focus-within{border-color:#aaa}
body.visual-v2 .custom-select-trigger{display:inline-flex;align-items:center;justify-content:space-between;gap:12px;min-height:var(--control-height);line-height:1.25}
body.visual-v2 dialog>header{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:64px}
body.visual-v2 dialog>header h2{margin:0;line-height:1.3}
body.visual-v2 dialog>header button{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;flex:0 0 32px;padding:0;line-height:1}
body.visual-v2 .account-layout nav button{font-weight:600}
@media(min-width:1000px){
 body.visual-v2:not(.mobile-app) .appbar{display:grid;grid-template-columns:110px minmax(0,1fr) auto 32px;column-gap:40px;flex-shrink:0}
 body.visual-v2:not(.mobile-app) .appbar nav{display:flex;align-items:stretch;gap:16px;min-width:0;overflow-x:auto;scrollbar-width:none}
 body.visual-v2:not(.mobile-app) .appbar nav button{flex:0 0 88px;width:88px;white-space:nowrap;font-weight:650}
 html[lang="en"] body.visual-v2:not(.mobile-app) .appbar nav{gap:10px}
html[lang="en"] body.visual-v2:not(.mobile-app) .appbar nav button{flex:0 0 auto;width:auto;padding-inline:6px;font-size:12px}
 body.visual-v2:not(.mobile-app) .appbar nav button.selected{font-weight:650}
 body.visual-v2:not(.mobile-app) .app-actions{grid-column:3;margin:0}
 body.visual-v2:not(.mobile-app) .appbar>.account-settings-entry{grid-column:4;justify-self:end}
 body.visual-v2:not(.mobile-app) .toolbar,body.visual-v2:not(.mobile-app) .rank-toolbar,body.visual-v2:not(.mobile-app) #list-view .filterbar{height:52px;min-height:52px;align-items:center;gap:16px;flex-wrap:nowrap}
 body.visual-v2:not(.mobile-app) #list-view .filterbar{overflow-x:auto;scrollbar-width:none}
 body.visual-v2:not(.mobile-app) #list-view .filterbar>label{flex-shrink:0;display:flex;align-items:center}
 body.visual-v2:not(.mobile-app) .rank-toolbar .search-field,body.visual-v2:not(.mobile-app) #list-view .filterbar .search-field{width:220px;min-width:220px;height:36px;flex:0 0 220px}
 body.visual-v2:not(.mobile-app) #list-view .filterbar .custom-select-trigger{height:36px;min-height:36px}
 body.visual-v2:not(.mobile-app) #category-tabs,body.visual-v2:not(.mobile-app) .inbox-tabs{height:44px;min-height:44px;align-items:stretch;margin:0}
 body.visual-v2:not(.mobile-app) #category-tabs button,body.visual-v2:not(.mobile-app) .inbox-tabs button{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:44px;min-height:44px;font-weight:600;border:0;border-bottom:2px solid transparent;border-radius:0;background:none;color:#aaa;padding:0 4px}
 body.visual-v2:not(.mobile-app) #category-tabs button.selected,body.visual-v2:not(.mobile-app) .inbox-tabs button.selected{color:#fff;border-bottom-color:#fff;background:none;font-weight:600}
 body.visual-v2:not(.mobile-app) #category-tabs button small{margin:0;min-width:1ch;font-variant-numeric:tabular-nums}
 body.visual-v2:not(.mobile-app) #news-view .inbox-heading,body.visual-v2:not(.mobile-app) #news-view .inbox-message{grid-template-columns:180px 230px minmax(220px,1fr) 150px;gap:24px;padding-inline:12px}
 body.visual-v2:not(.mobile-app) .rank-table th,body.visual-v2:not(.mobile-app) .rank-table td,body.visual-v2:not(.mobile-app) .table-screens th,body.visual-v2:not(.mobile-app) .table-screens td{padding-left:12px;padding-right:12px;vertical-align:middle}
 body.visual-v2:not(.mobile-app) .watch-heading,body.visual-v2:not(.mobile-app) .watch-row{padding-inline:16px;grid-template-columns:minmax(0,1fr) 85px 68px;align-items:center}
 body.visual-v2:not(.mobile-app) #smart-distribution .smart-history-readout>div{display:flex;align-items:baseline;gap:8px;min-width:0}
 body.visual-v2:not(.mobile-app) .rank-toolbar #rank-periods button{font-weight:600;min-width:40px}
}
@media(min-width:1000px) and (max-width:1250px){
 body.visual-v2:not(.mobile-app) .appbar{column-gap:24px}
 body.visual-v2:not(.mobile-app) .appbar nav{gap:8px}
 body.visual-v2:not(.mobile-app) #smart-distribution{grid-template-columns:minmax(0,1fr) 190px;column-gap:16px}
 body.visual-v2:not(.mobile-app) #smart-distribution .smart-history{grid-template-columns:minmax(0,1fr);grid-template-rows:32px 32px 44px minmax(0,1fr)}
 body.visual-v2:not(.mobile-app) #smart-distribution .smart-history-controls{grid-column:1;grid-row:1}
 body.visual-v2:not(.mobile-app) #smart-distribution .smart-history-meta{grid-column:1;grid-row:2;justify-content:space-between}
 body.visual-v2:not(.mobile-app) #smart-distribution .smart-history-readout{grid-row:3}
 body.visual-v2:not(.mobile-app) #smart-distribution .smart-history canvas{grid-row:4}
 body.visual-v2:not(.mobile-app) #smart-distribution .smart-history-readout strong{font-size:22px}
 body.visual-v2:not(.mobile-app) #news-view .inbox-heading,body.visual-v2:not(.mobile-app) #news-view .inbox-message{grid-template-columns:150px 180px minmax(180px,1fr) 130px;gap:16px}
}
@media(min-width:1000px){
 body.visual-v2:not(.mobile-app) .rank-table table{table-layout:fixed;min-width:1600px;width:100%}
 body.visual-v2:not(.mobile-app) .rank-table th:nth-child(1){width:56px}
 body.visual-v2:not(.mobile-app) .rank-table th:nth-child(2){width:170px}
 body.visual-v2:not(.mobile-app) .rank-table th:nth-child(3){width:190px}
 body.visual-v2:not(.mobile-app) .rank-table th:nth-child(4){width:140px}
 body.visual-v2:not(.mobile-app) .rank-table th:nth-child(n+5){width:96px}
 body.visual-v2:not(.mobile-app) .rank-table th:last-child{width:130px}
 body.visual-v2:not(.mobile-app) .rank-table td:nth-child(n+4),body.visual-v2:not(.mobile-app) .rank-table th:nth-child(n+4){text-align:right;white-space:nowrap}
}
body.visual-v2 .account-settings-entry{min-width:32px;min-height:32px;max-width:32px;max-height:32px;padding:0;aspect-ratio:1;line-height:1}

/* Mobile destinations share the same nav row; account never overlays its labels. */
body.visual-v2.mobile-app #m-topbar{display:grid;grid-template-columns:minmax(0,1fr) 32px;column-gap:12px;align-items:center;padding:calc(env(safe-area-inset-top) + 4px) 14px 0}
body.visual-v2.mobile-app #m-topbar[hidden]{display:none}
body.visual-v2.mobile-app #m-topbar nav{grid-column:1;grid-row:1;min-width:0;height:44px;min-height:44px;gap:24px}
body.visual-v2.mobile-app #m-topbar nav[hidden]{display:none}
body.visual-v2.mobile-app #m-topbar nav button{font-size:16px;font-weight:600;height:44px;min-height:44px;padding:0;border:0;background:none;line-height:1.25}
body.visual-v2.mobile-app #m-topbar>.account-settings-entry{position:static;grid-column:2;grid-row:1;justify-self:end;align-self:center;flex:none;width:32px;height:32px;min-width:32px;min-height:32px;max-width:32px;max-height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;padding:0}
body.visual-v2.mobile-app.m-home .m-header{padding-right:14px}
/* Focus is an in-control text cue, never an outer ring clipped by scroll strips. */
body.visual-v2 :is(button,a,[role=button],input,select,textarea,canvas,dialog):focus{outline:none}
body.visual-v2 :is(button,a,[role=button]):focus-visible{outline:none;text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px}
body.visual-v2 :is(input,select,textarea):focus-visible{outline:none;border-color:#aaa}
@media(min-width:1000px){
 body.visual-v2:not(.mobile-app) .rank-toolbar #rank-periods{height:44px;min-height:44px;align-items:center;padding-block:4px}
 body.visual-v2:not(.mobile-app) .rank-toolbar #rank-periods button{height:36px;min-height:36px;display:inline-flex;align-items:center;justify-content:center;padding:0 9px;flex-shrink:0}
}
/* Bottom sheets: one horizontal inset for heading, navigation and body. */
body.visual-v2.mobile-app dialog{inset:auto 0 0;margin:0 auto;width:100%;max-width:100%;border-radius:18px 18px 0 0}
body.visual-v2.mobile-app dialog:not(.account-dialog)>header{padding:0 0 16px;margin:0;min-height:48px}
body.visual-v2.mobile-app dialog.account-dialog{width:100%;max-width:100%;height:75dvh;padding:0!important;overflow:hidden}
body.visual-v2.mobile-app dialog.account-dialog::before{position:absolute;top:8px;left:calc(50% - 16px);margin:0}
body.visual-v2.mobile-app .account-dialog>header{height:72px;min-height:72px;margin:0;padding:20px 20px 0;border:0}
body.visual-v2.mobile-app .account-layout{height:calc(100% - 72px);grid-template-columns:minmax(0,1fr);grid-template-rows:48px minmax(0,1fr)}
body.visual-v2.mobile-app .account-layout nav{padding:0 20px;gap:24px;margin:0;background:none;border-bottom:1px solid #292929;align-items:stretch}
body.visual-v2.mobile-app .account-layout nav button{padding:0;flex:0 0 auto;height:48px;min-height:48px;font-size:14px;font-weight:600;border:0;border-radius:0;background:none;color:#aaa}
body.visual-v2.mobile-app .account-layout nav button.active{color:#fff;background:none;border-bottom:2px solid #fff}
body.visual-v2.mobile-app .account-content{padding:24px 20px calc(24px + env(safe-area-inset-bottom));min-width:0}
body.visual-v2.mobile-app .account-content h3{font-size:22px;line-height:1.3;color:#fff;margin:0 0 16px}
body.visual-v2.mobile-app .account-layout nav{overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
body.visual-v2.mobile-app .account-layout nav button{height:47px;min-height:47px}
/* Search: fixed heading/input, one results scroller, consistent symbol/price/actions. */
body.visual-v2 #search-dialog[open]{display:flex;flex-direction:column;gap:0;padding:20px;width:min(600px,calc(100vw - 32px));height:min(760px,85dvh);overflow:hidden}
body.visual-v2 #search-dialog>header{flex:none;min-height:44px;height:44px;padding:0;margin:0}
body.visual-v2 #search-dialog>header h2{font-size:20px;line-height:1.3}
body.visual-v2 #search-dialog #symbol-search{flex:none;width:100%;height:44px;min-height:44px;margin:12px 0;padding:0 12px;font-size:16px;border-radius:8px}
body.visual-v2 #search-dialog #symbol-results{flex:1;min-height:0;height:auto;max-height:none;overflow-y:auto;overflow-x:hidden;padding:0;overscroll-behavior:contain}
body.visual-v2 #search-dialog .search-history{padding:0 0 16px}
body.visual-v2 #search-dialog .search-history header{height:36px;min-height:36px;margin:0 0 8px;padding:0;font-size:12px;color:#aaa}
body.visual-v2 #search-dialog .search-history header button{height:32px;min-height:32px;padding:0 4px;background:none;border:0;color:#aaa;font-size:12px}
body.visual-v2 #search-dialog .search-history>div{display:grid;grid-template-rows:repeat(2,32px);grid-auto-flow:column;grid-auto-columns:max-content;gap:8px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
body.visual-v2 #search-dialog .search-history>div button{height:32px;min-height:32px;padding:0 10px;border:1px solid #333;border-radius:6px;background:#1b1b1b;font-size:12px;font-weight:500;white-space:nowrap}
body.visual-v2 #search-dialog .search-result{display:grid;grid-template-columns:minmax(0,1fr) 32px 32px;gap:8px;min-height:64px;padding:8px 0}
body.visual-v2 #search-dialog .search-result .choose{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;width:100%;min-height:44px;padding:0;font-size:14px;font-weight:600;text-align:left}
body.visual-v2 #search-dialog .search-result .choose>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.visual-v2 #search-dialog .search-result .choose>span:last-child{font-size:15px;text-align:right;white-space:nowrap}
body.visual-v2 #search-dialog .search-result small{font-size:11px;font-weight:400;line-height:1.5;color:#aaa}
body.visual-v2 #search-dialog .search-result>button:not(.choose){display:flex;align-items:center;justify-content:center;width:32px;min-width:32px;height:44px;min-height:44px;padding:0;font-size:22px;border:0;background:none}
body.visual-v2.mobile-app #search-dialog[open]{width:100%;max-width:100%;height:82dvh;max-height:82dvh;padding:12px 14px max(12px,env(safe-area-inset-bottom))}
body.visual-v2.mobile-app #search-dialog::before{flex:none;margin:0 auto 12px}
body.visual-v2 #search-dialog .search-history>div:not(:has(button:nth-child(2))){grid-template-rows:32px}

/* One toolbar grid across all desktop list destinations. */
body.visual-v2:not(.mobile-app) :is(#radar-view,#rankings-view,#list-view){padding-inline:20px}
body.visual-v2:not(.mobile-app) .unified-toolbar{display:grid!important;grid-template-columns:minmax(360px,650px) minmax(140px,1fr) auto 220px;gap:16px!important;align-items:center;height:56px!important;min-height:56px!important;padding:0!important;margin:0;border-bottom:1px solid #292929;flex-shrink:0;overflow:visible}
body.visual-v2 .market-slot{min-width:0;display:flex;align-items:center;height:100%;overflow:hidden}
body.visual-v2 .market-slot :is(nav,.category-tabs,.rank-scope,.radar-groups){display:flex;align-items:center;gap:8px;width:100%;min-height:44px;height:44px;padding:0;margin:0;border:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}
body.visual-v2 .market-slot button{flex-shrink:0;white-space:nowrap;height:36px;min-height:36px;padding:0 9px;border:0;border-radius:6px;background:none;color:#aaa;font-size:14px;font-weight:600;box-shadow:none}
body.visual-v2 .market-slot button.selected{background:none;color:#fff;border:0}
body.visual-v2 .market-slot button::after{content:none!important}
body.visual-v2 .market-slot-categories button{font-size:13px}
body.visual-v2 .market-slot .rank-direction{display:flex;gap:4px;margin:0}
body.visual-v2 .market-slot-search .search-field{width:100%;min-width:0;height:36px;margin:0;flex:1}
body.visual-v2 .market-slot-search input{min-width:0}
body.visual-v2 .market-filter-panel{position:fixed;inset:120px 240px auto auto;margin:0;padding:16px;background:#111;border:1px solid #333;border-radius:8px;color:#fff;width:300px}
body.visual-v2 .market-filter-panel:popover-open{display:grid;gap:12px}
body.visual-v2 .market-filter-panel label{display:flex;align-items:center;justify-content:space-between;gap:12px}
@media(max-width:1100px){body.visual-v2:not(.mobile-app) .unified-toolbar{grid-template-columns:minmax(100px,1.5fr) minmax(90px,1fr) auto 180px;gap:8px!important}}
@media(max-width:600px){body.visual-v2:not(.mobile-app) .unified-toolbar{grid-template-columns:minmax(70px,1fr) minmax(60px,.8fr) auto 80px;gap:4px!important}body.visual-v2 .market-slot input{font-size:16px}}
/* Pointer clicks never leave a focus box; keyboard navigation retains a text cue. */
body.visual-v2 :is(button,a,[role=button],input,select,textarea):focus:not(:focus-visible){outline:none!important;box-shadow:none!important;text-decoration:none}
body.visual-v2 :is(button,a,[role=button]):focus-visible{outline:none!important;box-shadow:none!important;text-decoration:underline;text-underline-offset:4px}
@media(hover:hover){body.visual-v2 :is(.market-toolbar,.market-categories) button:not(.selected):hover{background:#202020;color:#fff}}
body.visual-v2:not(.mobile-app)>.toolbar{height:56px!important;min-height:56px!important;padding-inline:20px;flex-wrap:nowrap;gap:12px}
body.visual-v2:not(.mobile-app)>.toolbar #periods{order:-1;flex:0 1 650px;min-width:0;overflow-x:auto;overflow-y:hidden;white-space:nowrap}
body.visual-v2:not(.mobile-app) .unified-toolbar [hidden]{display:none!important}
body.visual-v2:not(.mobile-app) :is(.radar-toolbar,.filterbar)[hidden]{display:none!important}
body.visual-v2 .market-slot :is(nav,.category-tabs,.rank-scope,.radar-groups) button{border-bottom:0!important}
/* Selection uses the same baseline marker as the main navigation, never a tile. */
body.visual-v2 :is(.market-slot,.toolbar #periods) button{position:relative;border-radius:0!important}
body.visual-v2 :is(.market-slot,.toolbar #periods) button.selected{background:transparent!important;color:#fff!important;border:0!important;box-shadow:none!important}
body.visual-v2 :is(.market-slot,.toolbar #periods) button.selected::after{content:''!important;position:absolute;left:9px;right:9px;bottom:0;height:2px;background:#fff}
body.visual-v2 .market-filter-panel{max-width:calc(100vw - 32px)}
@media(max-width:600px){body.visual-v2 .market-filter-panel{right:16px}}
body.visual-v2:not(.mobile-app)>.toolbar #periods{display:flex;align-items:center;gap:8px;height:44px}
body.visual-v2:not(.mobile-app)>.toolbar #periods button{flex:0 0 auto;height:36px;min-height:36px;padding:0 9px;font-size:14px;font-weight:600;border:0;box-shadow:none}

/* Chart context belongs to the title, controls keep one uninterrupted row. */
body.visual-v2:not(.mobile-app) .chart-title{display:flex;align-items:center;gap:12px;min-width:0}
body.visual-v2:not(.mobile-app) .chart-title #symbol-picker{display:inline-flex;align-items:center;justify-content:space-between;gap:12px;flex:0 0 auto;width:auto;min-width:0;max-width:240px;height:36px;padding:0 6px;background:none;border:0;border-radius:4px;color:#fff;font-size:18px;font-weight:700}
body.visual-v2:not(.mobile-app) .chart-title #symbol-picker span{font-size:16px;color:#999}
body.visual-v2:not(.mobile-app) #chart-symbol{font-size:13px;font-weight:500;color:#aaa;white-space:nowrap}
body.visual-v2:not(.mobile-app) #chart-state{font-size:12px;white-space:nowrap}
body.visual-v2:not(.mobile-app) #ohlc{margin-left:auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
body.visual-v2:not(.mobile-app)>.toolbar .chart-tool-group{display:flex;align-items:center;gap:8px;padding-left:16px;border-left:1px solid #292929;flex:none}
body.visual-v2:not(.mobile-app)>.toolbar .chart-tool-actions{display:flex;align-items:center;justify-content:flex-end;gap:16px;margin-left:auto;flex:none}
@media(hover:hover){body.visual-v2:not(.mobile-app) .chart-title #symbol-picker:hover{background:#202020}}
@media(max-width:1100px){body.visual-v2:not(.mobile-app) #chart-state{display:none}body.visual-v2:not(.mobile-app)>.toolbar .chart-tool-actions{gap:4px}body.visual-v2:not(.mobile-app)>.toolbar .chart-tool-group{gap:2px;padding-left:8px}}
