@charset "UTF-8";
/* A readable Vietnamese interface, with tabular proportional numerals. */
:root{--bg:#f4f6f5;--surface:#fff;--soft:#f7f9f8;--ink:#202e2c;--muted:#73807c;--line:#e5ebe8;--accent:#226658;--accent-soft:#eaf3ee;--red:#b6595b;--red-soft:#f9edef;--gold:#9c773e;--shadow:0 3px 16px #162f2314;color-scheme:light;font-family:"Segoe UI",Arial,sans-serif;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-size:14px;line-height:1.5}button,input,select{font:inherit}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,tr:focus-visible{outline:3px solid #5b9d88;outline-offset:3px}svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}button{border:0;background:none}a{color:inherit;text-decoration:none}button:disabled{cursor:not-allowed}h1,h2,h3,p{margin:0}h2{font-size:17px;font-weight:600;letter-spacing:-.3px}.skip{position:absolute;top:-100px;padding:15px;background:var(--surface);z-index:100}.skip:focus{top:0}.sidebar{width:226px;position:fixed;inset:0 auto 0 0;background:var(--surface);border-right:1px solid var(--line);padding:33px 19px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:10px;padding:0 10px;font-size:25px;font-weight:700;letter-spacing:-1.1px}.brand-light{font-weight:400}.brand small{font-size:8px;letter-spacing:1.6px;display:block;color:var(--muted);margin-top:2px;font-weight:600}.brand-mark{display:grid;place-items:center;width:35px;height:39px;border-radius:10px;background:var(--accent);color:white;flex-shrink:0}.brand-mark svg{width:25px;stroke-width:2.4}.nav-label{font-size:9px;letter-spacing:1.3px;color:var(--muted);padding:53px 13px 14px;font-weight:600}.nav-item{display:flex;gap:12px;align-items:center;width:100%;padding:14px 13px;border-radius:9px;text-align:left;margin-bottom:7px;font-size:13px;font-weight:500;transition:background .15s}.nav-item svg{width:18px;height:18px;flex-shrink:0}.nav-item:hover{background:var(--soft)}.nav-item.active{background:var(--accent-soft);color:var(--accent);font-weight:650}.nav-arrow{margin-left:auto;opacity:0}.nav-item.active .nav-arrow{opacity:1}.sidebar-bottom{margin-top:auto}.preview-note{font-size:9px;letter-spacing:.9px;font-weight:700;padding:19px 12px;border-bottom:1px solid var(--line);color:var(--gold)}.tiny-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--gold);margin-right:6px}.preview-note p{font-size:11px;line-height:1.8;font-weight:400;letter-spacing:0;color:var(--muted);margin-top:10px}.account{display:flex;align-items:center;gap:10px;text-align:left;padding:20px 10px 0;width:100%;font-weight:600;font-size:13px}.account small{display:block;font-size:10px;color:var(--muted);font-weight:400;margin-top:2px}.account>span:last-child{margin-left:auto}.avatar{background:var(--accent-soft);color:var(--accent);width:33px;height:33px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;font-size:12px}.workspace{margin-left:226px}.topbar{height:72px;border-bottom:1px solid var(--line);padding:0 34px;display:flex;justify-content:space-between;align-items:center;background:var(--surface)}.breadcrumb{font-size:12px;color:var(--muted)}.breadcrumb span{margin:0 15px;color:#a1b2aa}.breadcrumb strong{color:var(--ink);font-weight:500}.top-actions{display:flex;gap:22px;align-items:center}.snapshot{font-size:11px;color:var(--muted)}.snapshot i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#869990;margin-right:8px}.icon-button{font-size:23px;width:32px;height:32px;border-radius:50%}.icon-button:hover{background:var(--soft)}main{max-width:1900px;margin:0 auto;padding:30px 34px 18px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.eyebrow{font-size:9px;letter-spacing:1.6px;font-weight:700;color:var(--muted)}h1{font-size:31px;line-height:1.3;letter-spacing:-1px;font-weight:650;margin:8px 0}h1 span{color:var(--accent)}.page-heading p{color:var(--muted);font-size:12px}.session-stamp{text-align:right;flex-shrink:0;padding-left:20px}.session-stamp>span{display:block;font-size:9px;letter-spacing:1.3px;color:var(--muted)}.session-stamp strong{display:block;font-size:27px;letter-spacing:-1px;font-weight:500;margin-top:6px;font-variant-numeric:tabular-nums}.session-stamp small{font-size:14px;letter-spacing:0;color:var(--muted);font-weight:400}.context-line{display:flex;gap:25px;align-items:center;font-size:11px;color:var(--muted);margin:24px 0 27px}.context-line b{color:var(--ink);font-size:12px;margin-right:5px;font-weight:650}.context-warning{margin-left:auto;color:var(--gold);font-size:10px}.controls{display:flex;align-items:center;gap:12px;margin-bottom:18px;flex-wrap:wrap}.search-box{display:flex;gap:10px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:7px;padding:0 12px;min-width:200px;flex:1;max-width:345px;height:40px}.search-box svg{width:16px;color:var(--muted)}input{width:100%;min-width:0;border:0;color:var(--ink);background:none;outline:none;font-size:12px}input::placeholder{color:var(--muted)}kbd{border:1px solid var(--line);padding:0 5px;font-size:10px;color:var(--muted);border-radius:3px}select{background:var(--surface);color:var(--muted);border:1px solid var(--line);border-radius:7px;height:40px;padding:0 26px 0 12px;font-size:12px;max-width:190px}.timeframes{display:flex;gap:3px;margin-left:auto;background:#e8eeeb;padding:4px;border-radius:7px}.timeframes button{font-size:11px;font-weight:650;padding:6px 11px;border-radius:5px;white-space:nowrap}.timeframes button span{font-weight:400;margin-left:4px;color:var(--muted);font-size:10px}.timeframes button.active{background:var(--surface);color:var(--accent);box-shadow:0 1px 4px #132d2020}.analysis-layout{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(300px,1fr);gap:20px;align-items:start}.panel{background:var(--surface);border:1px solid var(--line);border-radius:12px;overflow:hidden}.panel-heading{padding:20px 20px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-heading p{font-size:10px;color:var(--muted);margin-top:4px}.count-badge{background:var(--soft);border:1px solid var(--line);border-radius:6px;padding:4px 8px;font-size:10px;color:var(--muted);white-space:nowrap}.table-scroll{overflow:auto;max-height:570px;scrollbar-width:thin;scrollbar-color:#cbd5cf transparent;min-height:240px}table{width:100%;border-collapse:separate;border-spacing:0;font-variant-numeric:tabular-nums;white-space:nowrap;font-size:12px}thead{position:sticky;top:0;z-index:2}th{text-align:right;color:var(--muted);font-size:10px;font-weight:550;background:var(--soft);padding:12px 10px;border-bottom:1px solid var(--line)}th:first-child{text-align:left;padding-left:20px}th button{font-size:inherit;color:inherit;padding:0;white-space:nowrap}td{padding:14px 10px;text-align:right;border-bottom:1px solid var(--line);height:57px}td:first-child{text-align:left;padding-left:20px;font-weight:650}tbody tr{cursor:pointer}tbody tr:hover{background:var(--soft)}tbody tr.selected{background:var(--accent-soft)}tbody tr.selected td:first-child{box-shadow:inset 3px 0 var(--accent)}td small{font-size:9px;color:var(--muted);display:block;font-weight:400;margin-top:2px}.score{display:inline-flex;min-width:27px;justify-content:center;font-size:12px;font-weight:650;padding:3px 6px;border-radius:4px}.up{color:var(--accent)}.down{color:var(--red)}.score.up{background:var(--accent-soft)}.score.down{background:var(--red-soft)}.score.neutral{background:#eef0ef;color:#6a7872}.table-footer{padding:13px 20px;display:flex;justify-content:space-between;gap:10px;font-size:9px;color:var(--muted);border-top:1px solid var(--line)}.detail-column{display:flex;flex-direction:column;gap:15px}.stock-card{padding:22px;background:#223d35;color:#fff;border-radius:12px;position:relative;overflow:hidden}.stock-card:after{content:"";position:absolute;border:1px solid #ffffff0c;width:190px;height:190px;border-radius:50%;right:-80px;top:-110px;pointer-events:none}.stock-title{display:flex;align-items:center;justify-content:space-between;gap:15px}.symbol-large{font-size:24px;letter-spacing:.5px;font-weight:650}.sector-tag{font-size:9px;background:#ffffff12;color:#c3d7cd;padding:5px 8px;border-radius:4px;max-width:180px}.company-name{font-size:11px;color:#b0c5ba;line-height:1.5;margin-top:5px;min-height:30px}.stock-price{display:flex;gap:12px;align-items:baseline;margin:13px 0 18px;font-size:31px;font-weight:550;font-variant-numeric:tabular-nums;letter-spacing:-.8px}.stock-price small{font-size:10px;font-weight:400;color:#b0c5ba;letter-spacing:0}.stock-bottom{display:flex;justify-content:space-between;border-top:1px solid #ffffff1c;padding-top:14px;font-size:10px;color:#b0c5ba}.stock-bottom strong{color:#fff;font-size:12px;font-weight:500}.card-body{padding:17px 20px}.mini-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.mini-title h3{font-size:13px;font-weight:600}.mini-title span{font-size:10px;color:var(--muted)}.flow-totals{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-bottom:17px}.flow-totals>div+div{border-left:1px solid var(--line);padding-left:16px}.flow-totals small{display:block;color:var(--muted);font-size:10px;margin-bottom:4px}.flow-totals strong{font-size:20px;font-weight:550;font-variant-numeric:tabular-nums}.flow-totals strong em{font-style:normal;font-size:10px;color:var(--muted);font-weight:400}.split-bar{height:5px;border-radius:4px;display:flex;gap:3px;overflow:hidden}.split-bar>span{background:#529a7c}.split-bar>span+span{background:#ce8386}.band-legend{display:flex;gap:15px;font-size:9px;color:var(--muted);margin-bottom:12px}.band-legend i{display:inline-block;width:6px;height:6px;border-radius:2px;margin-right:5px;background:var(--red)}.band-legend span:last-child i{background:var(--accent)}.band-row{display:grid;grid-template-columns:65px 1fr 52px;gap:10px;align-items:center;min-height:27px;border-bottom:1px solid var(--line);font-size:9px}.band-row:last-child{border:0}.band-label{color:var(--muted);font-size:9px}.band-track{display:flex;height:9px;gap:2px}.band-half{width:50%;display:flex;align-items:center;background:var(--soft)}.band-half:first-child{justify-content:flex-end}.band-half>span{height:100%;border-radius:2px;background:#ca8183}.band-half+div>span{background:#609d85}.band-net{text-align:right;font-variant-numeric:tabular-nums}.quality{font-size:10px;line-height:1.65;color:var(--muted);border-top:1px solid var(--line);margin-top:16px;padding-top:12px}.quality strong{display:block;font-size:10px;color:var(--ink);font-weight:600;margin-bottom:4px}.mean-row{display:flex;align-items:center;justify-content:space-between;margin-top:15px;font-size:10px;color:var(--muted);border-top:1px solid var(--line);padding-top:13px}.mean-row strong{font-size:12px;font-weight:600}.page-footer{display:flex;justify-content:space-between;align-items:center;gap:20px;padding-top:23px;color:var(--muted);font-size:9px}.footer-line{margin:0 8px;color:#b6c3bc}.page-footer>span:first-child{letter-spacing:.2px}#empty{text-align:center;padding:65px 20px;color:var(--muted);line-height:2}#empty button{color:var(--accent);text-decoration:underline}.vwap-layout .analysis-layout{grid-template-columns:minmax(0,1fr) 300px}.vwap-value{font-size:12px;font-weight:500}.delta{display:block;font-size:10px;font-weight:500;margin-top:3px}.deviation-row{padding:14px 0;border-bottom:1px solid var(--line)}.deviation-row:last-child{border:0}.deviation-head{display:flex;justify-content:space-between;font-size:11px;margin-bottom:9px}.deviation-track{height:7px;background:var(--soft);position:relative;border-radius:4px}.deviation-track:before{content:"";position:absolute;left:50%;width:1px;background:#a5b4ac;top:-3px;height:13px}.deviation-track span{height:7px;position:absolute;border-radius:3px}.deviation-note{font-size:9px;color:var(--muted);margin-top:7px}.guide-layout{display:grid;grid-template-columns:1fr 1.5fr;gap:50px;padding:22px 0;max-width:1100px}.guide-intro h2{font-size:35px;line-height:1.3;margin:15px 0;font-weight:550;letter-spacing:-1px}.guide-intro p{font-size:13px;color:var(--muted);max-width:330px;line-height:1.9}.guide-formula{margin-top:30px;padding:24px;background:#223d35;color:#c3d7cd;font-size:12px;border-radius:12px}.guide-formula strong{display:block;font-size:18px;margin:10px 0;color:white;font-weight:500}.guide-formula span{font-size:10px}.guide-questions details{padding:20px 0;border-bottom:1px solid var(--line)}summary{display:flex;gap:18px;font-size:11px;color:var(--muted);cursor:pointer;list-style:none}summary span{font-size:14px;font-weight:550;color:var(--ink);flex:1}summary:after{content:"+";font-size:20px}details[open] summary:after{content:"−"}details p{font-size:12px;line-height:1.9;color:var(--muted);margin:15px 0 3px;padding-left:31px}dialog{border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--ink);padding:36px;max-width:430px;width:calc(100% - 32px);text-align:center;box-shadow:0 30px 120px #0003}dialog::backdrop{background:#0b261e66;backdrop-filter:blur(4px)}.dialog-close{position:absolute;right:15px;top:10px;font-size:25px;color:var(--muted)}.dialog-monogram{display:inline-grid;place-items:center;border-radius:12px;width:52px;height:52px;background:var(--accent);color:white;font-size:30px;letter-spacing:-2px;margin-bottom:20px}dialog h2{font-size:25px}dialog p{font-size:12px;line-height:1.7;color:var(--muted);margin-top:12px}.account-preview{display:grid;grid-template-columns:1fr 1fr;gap:13px;text-align:left;background:var(--soft);padding:18px;border-radius:8px;font-size:11px;margin:23px 0}.account-preview span{color:var(--muted)}.account-preview strong{font-weight:550;text-align:right}dialog .dialog-warning{color:var(--gold);font-size:11px}.primary-button{display:block;width:100%;margin-top:22px;background:var(--accent);color:#fff;padding:12px;border-radius:7px;font-size:12px}[hidden]{display:none!important}
html[data-theme="dark"]{--bg:#111b18;--surface:#182520;--soft:#1d2c25;--ink:#e0e9e4;--muted:#9aaea3;--line:#2a3b32;--accent:#83c8aa;--accent-soft:#233e31;--red:#e09b9d;--red-soft:#3e2c2c;--gold:#d0b486;color-scheme:dark}html[data-theme="dark"] .timeframes{background:#20352a}html[data-theme="dark"] .brand-mark,html[data-theme="dark"] .primary-button,html[data-theme="dark"] .dialog-monogram{color:#10271d}html[data-theme="dark"] .score.neutral{background:#2e3c34;color:#aabbb1}
@media(min-width:1600px){.sidebar{width:240px}.workspace{margin-left:240px}main{padding:37px 42px}h1{font-size:36px}.analysis-layout{grid-template-columns:minmax(0,1.8fr) minmax(360px,1fr)}.table-scroll{max-height:670px}td{height:63px;padding-top:16px;padding-bottom:16px}table{font-size:14px}.score{font-size:14px}th{font-size:11px}.band-row{min-height:31px;font-size:11px}.band-label{font-size:10px}}
@media(max-width:1190px){.sidebar{width:190px;padding:28px 12px}.workspace{margin-left:190px}.brand{font-size:22px;padding:0 7px}.brand-mark{width:30px;height:34px}.nav-label{font-size:8px}.nav-item{font-size:12px;gap:9px}main{padding:26px 23px}.topbar{padding:0 23px}.timeframes button{padding:6px 9px}.timeframes button span{display:none}.analysis-layout{grid-template-columns:minmax(0,1.6fr) 290px;gap:15px}.panel-heading{padding:17px}.table-scroll{max-height:620px}.card-body{padding:16px}.vwap-layout .analysis-layout{grid-template-columns:minmax(0,1fr) 270px}td,th{padding-left:8px;padding-right:8px}.context-line{gap:17px}.context-warning{font-size:9px}}
@media(max-width:960px){.sidebar{width:175px}.workspace{margin-left:175px}.brand{font-size:20px;gap:7px}.brand small{font-size:6px}.nav-label{letter-spacing:.7px}.nav-item{padding:13px 9px;font-size:11px}.analysis-layout,.vwap-layout .analysis-layout{grid-template-columns:1fr}.detail-column{display:grid;grid-template-columns:1fr 1fr;align-items:start}.detail-column .stock-card{grid-column:1 / -1}.company-name{min-height:0}.stock-price{margin:8px 0}.stock-bottom{margin-top:0}.table-scroll{max-height:425px}.guide-layout{grid-template-columns:1fr;gap:15px}.guide-intro h2 br{display:none}.guide-intro p{max-width:none}.context-line{flex-wrap:wrap;gap:9px 18px}.context-warning{margin-left:0;flex-basis:100%}.session-stamp{display:none}h1{font-size:29px}.snapshot{font-size:10px}}
@media(max-width:640px){.sidebar{position:sticky;top:0;width:100%;height:auto;padding:13px 16px 0;border-right:0;border-bottom:1px solid var(--line);display:block}.brand{font-size:22px;padding:0 0 11px}.brand small{display:none}.brand-mark{width:29px;height:30px}.nav-label,.sidebar-bottom{display:none}nav{display:flex;gap:5px}.nav-item{justify-content:center;font-size:11px;padding:11px 8px;margin:0;border-radius:7px 7px 0 0;gap:6px;white-space:nowrap}.nav-item svg{width:15px}.nav-arrow{display:none}.workspace{margin:0}.topbar{height:44px;padding:0 18px}.breadcrumb{font-size:10px}.top-actions{gap:10px}.snapshot{font-size:9px}.icon-button{font-size:19px}main{padding:22px 16px}.eyebrow{font-size:8px}h1{font-size:27px}.page-heading p{font-size:11px;max-width:310px}.context-line{margin:17px 0}.controls{gap:8px}.search-box{min-width:0;max-width:none;height:38px;flex:1}select{width:135px;max-width:135px;height:38px;font-size:10px;padding-left:8px}.timeframes{width:100%;justify-content:space-between;gap:3px}.timeframes button{flex:1;padding:6px;font-size:11px}.timeframes button span{display:inline;font-size:9px}.panel-heading{padding:16px}.panel-heading h2{font-size:16px}.detail-column{display:flex}.table-scroll{max-height:430px}table{min-width:565px}.vwap-layout table{min-width:630px}.table-footer{font-size:8px;padding:12px}.stock-card{padding:20px}.stock-title{max-width:none}.company-name{min-height:0}.card-body{padding:20px}.band-row{min-height:31px;font-size:11px}.band-label{font-size:10px}.page-footer{flex-direction:column;align-items:flex-start;gap:6px;font-size:8px}.guide-intro h2{font-size:29px}.guide-layout{padding-top:5px}.guide-questions details{padding:18px 0}summary span{font-size:13px}.guide-formula strong{font-size:16px}.account-mobile{display:inline}.quality{font-size:11px}kbd{display:none}}
.account-mobile{display:none}.nav-item{font-size:14px}.nav-item span:not(.nav-arrow){white-space:nowrap}table,.vwap-value,.score{font-size:14px}th{font-size:11px}td small{font-size:10px}.search-box input,select{font-size:13px}.panel-heading p,.table-footer,.mini-title span,.band-legend,.quality,.mean-row{font-size:11px}.mini-title h3{font-size:14px}.band-label,.band-row{font-size:11px}.band-row{grid-template-columns:74px 1fr 57px;min-height:29px}.company-name{font-size:12px}.stock-card{padding:19px}.stock-price{margin:8px 0 12px}.stock-bottom{padding-top:11px}.quality strong{font-size:11px}.context-warning{font-size:11px}.table-scroll td:first-child{position:sticky;left:0;background:var(--surface);z-index:1}.table-scroll tr.selected td:first-child{background:var(--accent-soft)}.table-scroll th:first-child{position:sticky;left:0;z-index:3}.panel-heading h2{font-size:18px}.snapshot{font-size:12px}
@media(max-width:1190px){.nav-item{font-size:12px}.nav-item span:not(.nav-arrow){white-space:normal}.snapshot{font-size:11px}}
@media(max-width:640px){.account-mobile{display:block;font-size:11px;color:var(--accent)}.snapshot{display:none}.nav-item{font-size:11px}.nav-item span:not(.nav-arrow){white-space:nowrap}.context-warning{font-size:10px}.search-box input,select{font-size:12px}table,.score,.vwap-value{font-size:13px}.band-label,.band-row{font-size:11px}.top-actions{gap:12px}}

/* Compact workspace: reserve the viewport for analysis, not the heading. */
.vwap-layout .market-panel table{min-width:820px}
.vwap-layout .market-panel .group-start{border-left:2px solid #ccd9d2}
html[data-theme="dark"] .vwap-layout .market-panel .group-start{border-left-color:#496153}
.vwap-layout .market-panel .group-head th[colspan]{text-align:center;font-size:11px;font-weight:650;height:27px;padding:5px 7px}
.vwap-layout .market-panel .metric-head th{height:29px;padding:5px 7px;font-weight:500;text-align:right;position:static;width:auto;min-width:0;max-width:none}
.vwap-layout .market-panel .metric-head th button{white-space:nowrap}
.vwap-layout .market-panel .deviation-cell .delta{font-size:12px;display:inline;margin:0;font-weight:600}
.vwap-layout .market-panel th.frame-cell{background:var(--soft)}
.vwap-layout .market-panel td.frame-cell{background:inherit}
.vwap-layout .market-panel .pinned-row td.frame-cell{background:var(--soft)}
.vwap-layout .market-panel .pinned-row.selected td{background:var(--accent-soft)}
.topbar{height:42px;padding:0 20px}.top-actions{gap:12px}
main{padding:12px 20px 8px}.page-heading{margin-bottom:10px}
h1{font-size:23px;letter-spacing:-.5px;margin:0}.page-heading p{display:none}
.session-stamp{padding:0}.session-stamp>span{font-size:11px;letter-spacing:0;color:var(--ink)}
.session-stamp>small{font-size:10px;color:var(--gold)}
.controls{margin-bottom:10px;gap:8px}.search-box,select{height:34px}.timeframes{padding:3px}
.panel-heading{padding:10px 14px}.panel-heading h2{font-size:15px}.panel-heading p{margin-top:1px}
.table-footer{padding:7px 12px}.page-footer{padding-top:6px;font-size:9px}
.analysis-layout{gap:12px;grid-template-columns:minmax(0,1.9fr) minmax(310px,1fr)}
.detail-column{gap:9px}.stock-card{padding:12px 15px}.symbol-large{font-size:21px}
.company-name{min-height:0;margin-top:1px;font-size:11px}.stock-price{font-size:25px;margin:2px 0 5px}
.stock-bottom{padding-top:5px}.card-body{padding:10px 14px}.mini-title{margin-bottom:6px}
.flow-totals{margin-bottom:6px;gap:10px}.flow-totals small{margin-bottom:0}.flow-totals strong{font-size:18px}
.mean-row{margin-top:6px;padding-top:5px}.band-legend{margin-bottom:5px}.band-row{min-height:22px}
.quality{margin-top:6px;padding-top:6px;line-height:1.4;font-size:10px}.quality strong{margin-bottom:1px}
.deviation-row{padding:8px 0}.deviation-head{margin-bottom:5px}.deviation-note{margin-top:4px}
table{--row-height:56px;--head-height:36px;font-size:13px}
th{height:var(--head-height);padding:8px 7px}td{height:var(--row-height);padding:7px}
td small{font-size:9px}.score{font-size:13px;padding:2px 5px}
th:first-child,.table-scroll td:first-child{padding:0;width:36px;min-width:36px;text-align:center}
.pin-button{width:32px;height:32px;font-size:21px;color:var(--muted);border-radius:5px}
.pin-button:hover{background:var(--accent-soft)}.pin-button.active{color:var(--gold)}
.symbol-cell,th:nth-child(2){text-align:left;font-weight:650;max-width:120px}
.symbol-cell small{overflow:hidden;text-overflow:ellipsis;max-width:110px}
.table-scroll .symbol-cell,.table-scroll th:nth-child(2){position:sticky;left:36px;background:var(--surface);z-index:1}
.table-scroll th:nth-child(2){background:var(--soft);z-index:3}
.table-scroll tr.selected .symbol-cell{background:var(--accent-soft)}
.ratio-cell{font-weight:650}.pinned-row td{background:var(--soft)}
.table-scroll .pinned-row .symbol-cell,.table-scroll .pinned-row td:first-child{background:var(--soft)}
.table-scroll .pinned-row.selected td{background:var(--accent-soft)}
/* Pinned rows have their own bounded area, so even a long watchlist cannot cover the other rows. */
.table-scroll{position:relative}
.market-panel table{table-layout:fixed;min-width:640px}.vwap-layout .market-panel table{min-width:820px}
.market-panel th{font-size:10px}.market-panel th button{white-space:normal}
.table-header-scroll{overflow:hidden;flex-shrink:0;scrollbar-width:thin;scrollbar-gutter:stable}
.pinned-scroll{overflow:auto;max-height:168px;flex-shrink:0;border-bottom:2px solid var(--line);scrollbar-width:thin;scrollbar-gutter:stable}
.table-scroll{scrollbar-gutter:stable}.pinned-scroll td:first-child{position:sticky;left:0;z-index:1}
.pinned-scroll .symbol-cell{position:sticky;left:36px;z-index:1;background:var(--soft)}
.pinned-scroll tr.selected .symbol-cell{background:var(--accent-soft)}
.pinned-scroll td:first-child{width:36px;min-width:36px;text-align:center;padding:0}
.table-header-scroll th:first-child{position:sticky;left:0;z-index:3}
.table-header-scroll th:nth-child(2){position:sticky;left:36px;z-index:3}
@media(min-width:1100px) and (min-height:650px){
  body:not(.guide-layout-active){height:100dvh;overflow:hidden}
  .workspace{height:100dvh;display:flex;flex-direction:column}
  main{width:100%;flex:1;min-height:0;display:flex;flex-direction:column}
  .page-heading,.controls,.page-footer{flex-shrink:0}
  .analysis-layout{flex:1;min-height:0;align-items:stretch}
  .market-panel{display:flex;flex-direction:column;min-height:0}
  .panel-heading,.table-footer{flex-shrink:0}
  .table-scroll{flex:1;min-height:0;max-height:none}
  .pinned-scroll{max-height:30%}
  .detail-column{min-height:0}
  .detail-column>.panel:last-child{flex:1;display:flex;flex-direction:column}
  .detail-column .band-row{flex:1;min-height:18px}
  .detail-column .deviation-row{flex:1}
  .guide-layout-active .workspace{height:auto;min-height:100dvh}
}
@media(min-width:1100px) and (max-height:760px){
  .topbar{height:34px;flex-shrink:0}main{padding-top:8px}.page-heading{margin-bottom:7px}
  .stock-card{padding:8px 12px}.stock-bottom{padding-top:3px}.stock-price{font-size:22px}
  .stock-card{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:10px}
  .stock-title{grid-column:1;grid-row:1}.stock-title .sector-tag{display:none}
  .company-name{grid-column:1;grid-row:2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .stock-price{grid-column:2;grid-row:1 / 3;align-self:center;display:block;margin:0;text-align:right}
  .stock-price small{display:block;font-size:8px}.stock-bottom{grid-column:1 / -1;margin-top:5px}
  .card-body{padding:8px 12px}.detail-column{gap:6px}.quality{font-size:9px}.quality strong{font-size:10px}
  .mini-title h3{font-size:12px}.flow-totals strong{font-size:16px}.band-row{font-size:10px}
  .page-footer{display:none}
}
@media(min-width:1100px) and (min-height:650px) and (max-height:699px){
  .flow-totals{margin-bottom:3px}.flow-totals>div{display:flex;align-items:baseline;justify-content:space-between;gap:5px}
  .detail-column .band-row{min-height:16px;font-size:10px}.band-label{font-size:10px}
  .quality{line-height:1.25;margin-top:4px;padding-top:4px}.mini-title{margin-bottom:4px}
}
@media(max-width:1099px){
  .analysis-layout,.vwap-layout .analysis-layout{grid-template-columns:1fr}
  .table-scroll{max-height:440px}.detail-column{display:grid;grid-template-columns:1fr 1fr}
  .detail-column .stock-card{grid-column:1 / -1}.band-row{min-height:26px}
}
@media(max-width:640px){
  main{padding:10px 12px}.topbar{height:34px}.page-heading{margin-bottom:8px}h1{font-size:21px}
  .session-stamp{display:block}.session-stamp>span{font-size:9px}.session-stamp>small{font-size:8px;display:block;max-width:110px}
  .controls{gap:6px}.detail-column{display:flex}.timeframes button{padding:5px}.panel-heading p{font-size:10px}
  table{min-width:720px}.vwap-layout table{min-width:660px}.band-row{min-height:26px}
}
/* VWAP detail uses content height and compact aligned rows, independent of chart height. */
.vwap-layout .detail-column{align-self:start;max-height:100%;overflow:auto}
.vwap-layout .detail-column>.panel:last-child{flex:0 0 auto;display:block}
.vwap-summary-head,.vwap-summary-row{display:grid;grid-template-columns:minmax(0,1.2fr) 1fr 1fr;gap:6px;align-items:center;text-align:right}
.vwap-summary-head{font-size:10px;color:var(--muted);padding:8px 7px 6px}
.vwap-summary-head> :first-child,.vwap-summary-row> :first-child{text-align:left}
.vwap-summary-row{width:100%;padding:11px 7px;border-top:1px solid var(--line);font-size:13px;border-radius:5px;font-variant-numeric:tabular-nums}
.vwap-summary-row.active{background:var(--accent-soft)}
.vwap-summary-row:hover{background:var(--soft)}
.vwap-summary-row small{display:block;color:var(--muted);font-size:9px;margin-top:3px;font-weight:400}
.vwap-summary-row>span:not(:first-child){white-space:nowrap;font-weight:600}
.vwap-source{margin-top:9px;padding:11px 8px 4px;border-top:1px solid var(--line)}
.vwap-source p,.vwap-explanation p{font-size:11px;line-height:1.55;color:var(--muted);margin:5px 0}
.vwap-source h3,.vwap-explanation h3{font-size:12px}
.vwap-layout .detail-column>.vwap-explanation{padding:12px 14px}
@media(max-width:1099px) and (min-width:641px){.vwap-layout .detail-column{align-self:auto;max-height:none}.vwap-summary,.vwap-explanation{align-self:start}}
.vwap-layout .detail-column>article{flex-shrink:0}
.vwap-summary-row{padding:8px 7px}
.premium-label{display:inline-block;padding:4px 9px;border:1px solid var(--line);border-radius:6px;color:var(--gold);background:var(--soft);font-size:10px;font-weight:600;white-space:nowrap}
.market-panel td.premium-cell{text-align:center;background:var(--soft)}
.market-panel .premium-cell small{color:var(--muted);margin-top:3px}
.market-panel th.premium-heading{text-align:center}
.timeframes .premium-frame{color:var(--gold)}
.premium-detail-row>.premium-label{grid-column:2 / 4;justify-self:end}
.pending-vwap{text-align:center;font-size:11px;color:var(--muted)}
#premium-dialog h2{font-size:24px;margin-top:14px}
#premium-dialog p{line-height:1.6;color:var(--muted);margin:14px 0}

/* The same quote columns lead both analysis tables: symbol, current price, daily move. */
.market-panel table{min-width:900px}
.vwap-layout .market-panel table{min-width:960px}
.market-panel th{font-size:10px;line-height:1.4}
.market-panel th:nth-child(3),.market-panel .group-head th:nth-child(3){text-align:right}
.market-panel .symbol-cell{font-size:13px;letter-spacing:.15px}
.market-panel .symbol-cell small{max-width:90px;letter-spacing:0;font-weight:400}
.market-panel .current-price{font-weight:600;font-variant-numeric:tabular-nums;text-align:right}
.market-panel .day-change-cell{text-align:right;border-right:1px solid var(--line);padding-right:9px}
.day-change{display:inline-block;min-width:64px;padding:4px 5px;border-radius:5px;font-size:12px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.day-change.up{background:var(--accent-soft)}
.day-change.down{background:var(--red-soft)}
.day-change.neutral{color:var(--muted);background:var(--soft)}
.market-panel thead>tr:first-child>th:nth-child(4){border-right:1px solid var(--line);text-align:right;padding-right:10px}
.vwap-layout .market-panel .group-start{border-left-width:1px}
.market-panel td{font-variant-numeric:tabular-nums}
@media(min-width:1100px){.analysis-layout,.vwap-layout .analysis-layout{grid-template-columns:minmax(0,1fr) 300px}}
@media(min-width:1600px){.analysis-layout,.vwap-layout .analysis-layout{grid-template-columns:minmax(0,1fr) 340px}}

/* Single-line metrics remain vertically centered beside stock names. */
.market-panel td{vertical-align:middle}
/* Price-limit locks: no aggressor side, score hidden (price-limits.js). */
.lock-chip{display:inline-block;padding:3px 8px;border-radius:6px;font-size:10px;font-weight:600;white-space:nowrap;border:1px solid currentColor}.lock-chip.lock-floor{color:var(--red);background:var(--red-soft)}.lock-chip.lock-ceiling{color:var(--accent);background:var(--accent-soft)}.lock-chip.lock-mixed{color:var(--gold);background:var(--soft)}
.lock-mark{display:block;margin-top:2px;font-size:9px;color:var(--gold);white-space:nowrap}
.lock-banner{border-left:3px solid var(--gold)}.lock-banner strong{display:block;color:var(--gold);font-size:12px}.lock-banner p{margin:3px 0 0;font-size:11px;line-height:1.4;color:var(--muted)}
/* Queue pressure v2 (pressure-model.js) and low classified coverage. */
.pressure-panel{border-left:3px solid var(--gold)}.pressure-panel strong{display:block;font-size:12px}.pressure-panel strong span{font-weight:400;color:var(--muted)}.pressure-panel p{margin:3px 0 0;font-size:11px;line-height:1.4;color:var(--muted)}.pressure-panel.pressure-sell{border-left-color:var(--red)}.pressure-panel.pressure-sell strong{color:var(--red)}.pressure-panel.pressure-buy{border-left-color:var(--accent)}.pressure-panel.pressure-buy strong{color:var(--accent)}.pressure-panel.pressure-missing strong{color:var(--gold)}
.score.low-confidence{opacity:.62;border-style:dashed}
