/* Compact, data-led stock details and accessible chart controls. */
.company-row-main{text-decoration:none;min-height:48px}.company-row-main:hover strong{color:var(--accent-text)}
.stock-chart-links{display:flex;gap:6px;flex-shrink:0}.stock-chart-links a{display:inline-flex;align-items:center;justify-content:center;min-width:43px;min-height:44px;padding:7px 8px;border:1px solid var(--line);border-radius:8px;color:var(--accent-text);background:var(--panel-soft);font-size:12px;line-height:1.3;text-decoration:none;white-space:nowrap}.stock-chart-links a:hover{border-color:var(--accent-line);background:var(--hover)}
.stock-detail-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 19px}.stock-detail-identity{display:flex;align-items:center;gap:11px;min-width:0}.stock-detail-identity>div{min-width:0}.stock-detail-identity h2{font-size:18px;line-height:1.5;font-weight:600;margin:0 0 3px;overflow-wrap:anywhere}.stock-detail-identity span{font-size:12px;line-height:1.5;color:var(--muted);letter-spacing:.02em}.stock-detail-identity .company-logo,.stock-detail-identity .company-monogram{height:38px;width:38px;flex-shrink:0}.stock-detail-heading>.secondary-button{flex-shrink:0;font-size:12px;min-height:42px;padding:9px 12px;white-space:nowrap}
.chart-heading{padding-bottom:16px;border-bottom:1px solid var(--line);gap:12px}.chart-heading .symbol-picker{flex:1;max-width:430px}.chart-heading .symbol-picker>span{flex-shrink:0;font-size:12px}.chart-heading .symbol-picker select{flex:1;width:100%;font-size:14px}.chart-heading>.text-button{display:flex;align-items:center;gap:6px;white-space:nowrap;min-height:44px;font-size:12px}.chart-heading>.text-button .icon{height:15px;width:15px}
.stock-quote-summary{margin:2px 0 15px;border-bottom:1px solid var(--line);padding-bottom:8px}.stock-quote-summary .tv-widget{margin-top:0}.stock-quote-summary .tradingview-widget-container{height:auto}.stock-quote-summary .tradingview-widget-container__widget{height:auto}.stock-quote-summary .widget-fallback{min-height:24px}.stock-quote-summary .widget-fallback>*{min-height:24px;font-size:11px}.stock-quote-summary .tradingview-widget-copyright{font-size:11px}
.chart-workspace{min-width:0}.chart-controls{padding:3px 0 0}.chart-control-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.chart-type-switch{display:inline-flex;align-items:center;gap:4px;padding:4px;border:1px solid var(--line);border-radius:10px;background:var(--panel-soft)}.chart-type-switch button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:8px 17px;border-radius:7px;background:transparent;color:var(--muted);font-size:13px;white-space:nowrap}.chart-type-switch button.active{background:var(--panel);color:var(--accent-text);box-shadow:var(--card-shadow)}.chart-type-switch .icon{height:17px;width:17px}.chart-expand{display:flex;align-items:center;gap:7px;min-height:44px;padding:8px 3px;background:transparent;color:var(--accent-text);font-size:12px;white-space:nowrap}.chart-expand .icon{height:17px;width:17px}
.chart-intervals{display:flex;gap:7px;margin:14px 0 0;border-bottom:1px solid var(--line);padding-bottom:12px}.chart-intervals button{flex:1;max-width:100px;min-width:0;min-height:40px;border:1px solid transparent;border-radius:8px;background:var(--panel-soft);color:var(--muted);font-size:12px;line-height:1.4;padding:8px 5px;white-space:nowrap}.chart-intervals button.active{border-color:var(--accent-line);background:var(--accent-soft);color:var(--accent-text)}.chart-intervals button:hover{color:var(--text)}.chart-expanded-symbol{font-size:12px;color:var(--muted);overflow-wrap:anywhere;text-align:right}
.chart-workspace .tv-widget{margin-top:12px}.chart-workspace .tradingview-widget-container{border:1px solid var(--line);border-radius:10px;overflow:hidden}.chart-workspace iframe{display:block}.chart-workspace .tradingview-widget-copyright{font-size:11px;padding-left:10px}.chart-help{display:flex;align-items:flex-start;gap:6px;margin:9px 0 0;font-size:11px;color:var(--subtle);line-height:1.8}.chart-help .icon{width:14px;height:14px;flex-shrink:0;margin-top:3px}.stock-company-news{margin-top:20px}.screener-search-hint{display:flex;align-items:center;gap:9px;padding:12px;border:1px solid var(--accent-line);border-radius:9px;font-size:13px;color:var(--accent-text);background:var(--accent-soft);overflow-wrap:anywhere}.screener-search-hint .icon{height:17px;width:17px;flex-shrink:0}
#app-dialog.chart-dialog{width:min(1280px,calc(100vw - 40px));max-width:none;max-height:calc(100dvh - 36px);margin:auto;padding:0;border-radius:16px;background:var(--panel);overflow:auto}#app-dialog.chart-dialog #dialog-content{padding:20px 22px 16px}#app-dialog.chart-dialog .dialog-header{margin-bottom:12px;padding-bottom:12px;border-bottom:1px solid var(--line)}#app-dialog.chart-dialog .dialog-header h2{font-size:16px;letter-spacing:.01em}#app-dialog.chart-dialog .dialog-body{padding:0}#app-dialog.chart-dialog .tradingview-widget-container{height:calc(100dvh - 300px)!important;min-height:260px}#app-dialog.chart-dialog .chart-help{margin-top:6px}#app-dialog.chart-dialog .chart-intervals{margin-top:9px;padding-bottom:9px}#app-dialog.chart-dialog .chart-workspace .tv-widget{margin-top:8px}#app-dialog.chart-dialog .widget-fallback{min-height:30px}
html[data-layout=mobile] .stock-detail-identity h2{font-size:17px}html[data-layout=mobile] .chart-heading .symbol-picker{flex-direction:column;align-items:stretch;gap:6px}html[data-layout=mobile] .chart-heading .symbol-picker select{font-size:16px}html[data-layout=mobile] .stock-chart-links{gap:5px}html[data-layout=mobile] .stock-chart-links a{min-width:39px;padding:7px 6px;font-size:11px}html[data-layout=mobile] .company-row{gap:7px}html[data-layout=mobile] .company-row-main{gap:8px}html[data-layout=mobile] .company-row-main strong{font-size:13px}html[data-layout=mobile] .company-row-main .stock-copy>span{font-size:12px}html[data-layout=mobile] .company-row-main small{font-size:10px}html[data-layout=mobile] .company-catalog .panel-header{align-items:flex-start;flex-direction:column;gap:4px}html[data-layout=mobile] .company-catalog .panel-header .meta{font-size:11px}
@media(max-width:760px){
.stock-detail-identity h2{font-size:17px}.chart-heading .symbol-picker{flex-direction:column;align-items:stretch;gap:6px}.chart-heading .symbol-picker select{font-size:16px}.stock-chart-links{gap:5px}.stock-chart-links a{min-width:39px;padding:7px 6px;font-size:11px}.company-row{gap:7px}.company-row-main{gap:8px}.company-row-main strong{font-size:13px}.company-row-main .stock-copy>span{font-size:12px}.company-row-main small{font-size:10px}.company-catalog .panel-header{align-items:flex-start;flex-direction:column;gap:4px}.company-catalog .panel-header .meta{font-size:11px}
#app-dialog.chart-dialog{width:100vw;max-width:100vw;max-height:100dvh;height:100dvh;border:0;border-radius:0;margin:0}#app-dialog.chart-dialog #dialog-content{padding:calc(12px + env(safe-area-inset-top)) 12px calc(12px + env(safe-area-inset-bottom))}#app-dialog.chart-dialog .tradingview-widget-container{height:calc(100dvh - 275px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;min-height:220px}.chart-type-switch button{padding:8px 13px}.stock-detail-heading>.secondary-button{padding:9px 10px}.chart-help{font-size:11px}.chart-workspace .widget-fallback{justify-content:space-between}
}
@media(max-width:370px){.stock-detail-heading{gap:8px}.stock-detail-identity{gap:8px}.stock-detail-identity h2{font-size:16px}.stock-detail-identity .company-logo{width:32px;height:32px}.stock-detail-heading>.secondary-button{padding:8px;gap:4px}.chart-type-switch button{padding:8px 10px}.company-row>.icon-button{width:28px!important;min-width:28px!important;flex-basis:28px!important}.company-row .company-logo{width:28px;height:28px}.stock-chart-links a{min-width:34px!important;padding:7px 4px!important}}
@media(prefers-reduced-motion:reduce){.chart-workspace *{scroll-behavior:auto!important}}

.company-facts{margin-top:18px}.company-facts summary{display:flex;align-items:center;gap:11px;cursor:pointer;list-style:none;min-height:48px}.company-facts summary::-webkit-details-marker{display:none}.company-facts summary>.icon{width:18px;height:18px;color:var(--accent-text);flex-shrink:0}.company-facts summary>span{flex:1;font-size:14px;font-weight:500}.company-facts summary small{display:block;margin-top:5px;color:var(--muted);font-size:11px;font-weight:400;line-height:1.7}.company-facts summary>.icon:last-child{width:16px;height:16px;color:var(--muted)}.company-facts[open] summary>.icon:last-child{transform:rotate(90deg)}.company-facts-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:20px;margin-top:20px;border-top:1px solid var(--line);padding-top:16px}.company-facts-grid section{min-width:0}.company-facts-grid h3{font-size:14px;font-weight:500;margin:0}.company-facts-grid .tv-widget{margin-top:10px}html[data-layout=mobile] .company-facts-grid{grid-template-columns:1fr;gap:22px}@media(max-width:760px){.company-facts-grid{grid-template-columns:1fr;gap:22px}}

#app-dialog.chart-dialog .dialog-header{position:sticky;top:0;z-index:2;background:var(--panel)}

.chart-workspace .tv-widget[data-widget=chart] .tradingview-widget-container{height:var(--chart-height,470px)!important}
#app-dialog.chart-dialog .tv-widget[data-widget=chart] .tradingview-widget-container{height:calc(100dvh - 300px)!important}
@media(max-width:760px){#app-dialog.chart-dialog .tv-widget[data-widget=chart] .tradingview-widget-container{height:calc(100dvh - 275px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important}}
