/* These rules are opt-in to the web entry; existing mobile assets stay intact. */
body[data-web-layout]{--web-sidebar:224px;background:#0b1120}
body[data-web-layout] .web-panel{display:none}
body[data-web-layout] .app-shell{max-width:100%;border:0;background:#0d1423}
body[data-web-layout] .web-preview-banner{padding:12px 20px;border-bottom:1px solid #755c2e;background:#2b2519;color:#f7dfad;font-size:12px;line-height:1.65}
body[data-web-layout] .web-preview-banner strong{display:block;font-size:13px}
body[data-web-layout] .web-preview-banner a{display:inline-block;color:#c7ddff;margin-top:5px;text-decoration:underline;text-underline-offset:3px}
body[data-web-layout] .web-page-grid{min-width:0}
body[data-web-layout] .web-primary,body[data-web-layout] .web-secondary,body[data-web-layout] .web-chart-column,body[data-web-layout] .web-entry-column{min-width:0}
body[data-web-layout] .bottom-nav,body[data-web-layout] .detail-actions,body[data-web-layout] .conditions-foot{max-width:100%}
body[data-web-layout] .web-secondary .list-tools{margin-bottom:16px}
body[data-web-layout] .web-primary #stock-list{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
body[data-web-layout] .web-primary .stock-row{margin:0}
body[data-web-layout] .observation-name>span{line-height:1.5}
body[data-web-layout] .web-preview-toast{position:fixed;left:50%;bottom:94px;transform:translateX(-50%);z-index:2000;max-width:calc(100% - 32px);padding:14px 20px;border:1px solid #697d9c;border-radius:12px;background:#17263d;color:#e5efff;box-shadow:0 12px 36px #0008;font-size:14px}
@media(min-width:680px){
 body[data-web-layout]:not(.admin-mode) main{padding:28px 28px 108px}
 body[data-web-layout]:not(.admin-mode) .app-header{padding-left:28px;padding-right:28px}
 body[data-web-layout] .web-primary #stock-list{grid-template-columns:repeat(2,minmax(0,1fr))}
 body[data-web-layout] .novice-steps{max-width:700px;margin-bottom:20px}
 body[data-web-layout] .novice-step{font-size:13px;min-height:46px}
 body[data-web-layout] .coach-tip{max-width:900px;font-size:14px}
 body[data-web-layout] .web-secondary .pool-card{margin-top:20px}
 body[data-web-layout] .sheet{max-width:620px;max-height:90dvh;margin:auto;border-radius:20px;inset:0}
 body[data-web-layout] .sheet-body{max-height:calc(90dvh - 200px)}
 body[data-web-layout] .condition-tile{min-height:100px}
 body[data-web-layout] #regional-content>.settings-card:has(.observation-stock){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px}
 body[data-web-layout] #regional-content>.settings-card:has(.observation-stock)>h2,body[data-web-layout] #regional-content>.settings-card:has(.observation-stock)>p{grid-column:1/-1}
 body[data-web-layout] .observation-stock{padding-top:20px;padding-bottom:20px}
 body[data-web-layout] .feature-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
 body[data-web-layout] .pool-return-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
 body[data-web-layout][data-web-view=settings] #main{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-content:start}
 body[data-web-layout][data-web-view=settings] #main>.page-head,body[data-web-layout][data-web-view=settings] #main>.app-version{grid-column:1/-1}
 body[data-web-layout][data-web-view=settings] .settings-card{margin:0}
}
@media(min-width:1100px){
 body[data-web-layout]:not(.admin-mode){padding-left:var(--web-sidebar)}
 body[data-web-layout]:not(.admin-mode) .web-panel{position:fixed;inset:0 auto 0 0;z-index:20;display:flex;flex-direction:column;width:var(--web-sidebar);padding:28px 16px;border-right:1px solid #24314a;background:#0e1728}
 body[data-web-layout] .web-brand{display:flex;align-items:center;gap:10px;padding:0 10px 24px;font-size:21px;font-weight:750;letter-spacing:-.7px}
 body[data-web-layout] .web-brand img{width:30px;height:30px}
 body[data-web-layout] .web-brand small{display:block;color:#80a6e0;letter-spacing:2px;font-size:10px;margin-top:3px;font-weight:500}
 body[data-web-layout] .web-nav-label{padding:18px 12px 10px;font-size:11px;color:#7588a9;text-transform:uppercase;letter-spacing:1.5px}
 body[data-web-layout] .web-nav{display:flex;flex-direction:column;gap:7px}
 body[data-web-layout] .web-nav a{display:flex;align-items:center;gap:12px;padding:13px 14px;min-height:50px;border-radius:10px;color:#aabbd4;font-size:14px;font-weight:600}
 body[data-web-layout] .web-nav a .icon{width:20px;height:20px;opacity:.65}
 body[data-web-layout] .web-nav a:hover{background:#19263e}
 body[data-web-layout] .web-nav a.active{background:#1e447a;color:#eaf3ff;box-shadow:inset 3px 0 #6ba9ff}
 body[data-web-layout] .web-nav a.active .icon{opacity:1}
 body[data-web-layout] .web-panel-foot{margin-top:auto;border-top:1px solid #23314c;padding:18px 12px 0;font-size:12px;line-height:1.8;color:#8ca2c3}
 body[data-web-layout]:not(.admin-mode) .app-shell{max-width:1700px;margin:0 auto;min-height:100dvh}
 body[data-web-layout]:not(.admin-mode) .app-header{position:sticky;top:0;z-index:15;height:76px;background:#0d1423f5;backdrop-filter:blur(18px);padding:18px 36px}
 body[data-web-layout]:not(.admin-mode) .market-switcher{max-width:580px;padding:22px 36px 0}
 body[data-web-layout]:not(.admin-mode) .feature-shortcuts{display:none}
 body[data-web-layout]:not(.admin-mode) main{padding:28px 36px 48px;min-height:calc(100dvh - 220px)}
 body[data-web-layout] .page-head{margin-bottom:24px}
 body[data-web-layout] .page-head h1{font-size:30px;letter-spacing:-.7px}
 body[data-web-layout] .page-head p{font-size:14px}
 body[data-web-layout] .web-preview-banner{padding-left:36px;padding-right:36px}
 body[data-web-layout] .web-preview-banner strong{display:inline;margin-right:12px}
 body[data-web-layout] .web-preview-banner a{float:right;margin:0}
 body[data-web-layout]:not(.admin-mode) .bottom-nav{display:none}
 body[data-web-layout]:not(.admin-mode) .detail-actions{left:auto;right:36px;bottom:20px;transform:none;width:330px;max-width:calc(100vw - 300px);border:1px solid #385176;border-radius:12px;padding:10px;box-shadow:0 12px 40px #0008}
 body[data-web-layout]:not(.admin-mode) .conditions-foot{left:var(--web-sidebar);right:0;transform:none;width:auto;max-width:none}
 body[data-web-layout] .web-pool-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:26px;align-items:start;margin-top:22px}
 body[data-web-layout] .web-primary #stock-list{grid-template-columns:minmax(0,1fr)}
 body[data-web-layout] .web-secondary{position:sticky;top:96px}
 body[data-web-layout] .web-secondary .pool-card{margin-top:0}
 body[data-web-layout] .web-secondary .status-card{padding:16px}
 body[data-web-layout] .web-secondary .market-strip{flex-wrap:wrap}
 body[data-web-layout] .web-secondary .list-tools .toolbar{gap:10px}
 body[data-web-layout] .web-secondary .list-tools .toolbar select{width:100%;max-width:none;margin:0}
 body[data-web-layout] .stock-row{padding:20px;min-height:112px}
 body[data-web-layout] .stock-row .symbol{font-size:23px}
 body[data-web-layout] .stock-row .company{font-size:13px;max-width:430px}
 body[data-web-layout] .stock-price{font-size:24px}
 body[data-web-layout] .stock-change{font-size:15px}
 body[data-web-layout] .web-detail-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(310px,1fr);gap:26px;align-items:start;margin-top:24px}
 body[data-web-layout] .web-chart-column{grid-column:1;grid-row:1;padding:22px 16px;border:1px solid #293953;border-radius:16px;background:#101926}
 body[data-web-layout] .web-chart-column .chart-wrap{margin:0}
 body[data-web-layout] .web-chart-column .mtt-chart-canvas{height:clamp(420px,55vh,640px)!important}
 body[data-web-layout] .web-entry-column{grid-column:2;grid-row:1;position:sticky;top:96px;padding-bottom:80px}
 body[data-web-layout] .web-entry-column .entry-plan{margin-top:0}
 body[data-web-layout] .quote-line{gap:20px}
 body[data-web-layout] .quote-price{font-size:54px}
 body[data-web-layout] .quote-more{max-width:600px}
 body[data-web-layout] .detail-reference{padding:12px 0 0}
 body[data-web-layout] .risk-disclosure{margin-top:32px;padding-bottom:32px}
 body[data-web-layout] .policy-document{max-width:1000px}
 body[data-web-layout] .feature-metric strong{font-size:34px}
 body[data-web-layout] .report-table{font-size:14px}
 body[data-web-layout] .web-preview-toast{bottom:28px}
}
@media(min-width:1500px){
 body[data-web-layout]{--web-sidebar:242px}
 body[data-web-layout] .web-primary #stock-list{grid-template-columns:repeat(2,minmax(0,1fr))}
 body[data-web-layout] .web-pool-grid{grid-template-columns:minmax(0,1fr) 320px}
 body[data-web-layout] #regional-content>.settings-card:has(.observation-stock){grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(prefers-reduced-motion:reduce){body[data-web-layout] *,body[data-web-layout] *::before,body[data-web-layout] *::after{scroll-behavior:auto!important}}

body[data-web-layout] .web-panel-foot a{display:inline-block;margin-top:14px;color:#a8c9ff;text-decoration:underline;text-underline-offset:3px}
