/* A focused market workspace, with a persistent Research inspector. */
.predictions-page{max-width:none;padding:28px 36px 48px!important}
.prediction-toolbar{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:28px}.prediction-toolbar h1{margin:0;font-size:27px;letter-spacing:-.8px}.prediction-toolbar>div{display:flex;align-items:center;gap:12px}.prediction-toolbar [data-analysis-trigger]{margin:0;width:auto;min-height:36px!important;height:36px!important;font-size:12px!important;padding:8px 13px!important}.research-toggle{display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:8px 10px;border-radius:7px;color:var(--muted);font-size:12px}.research-toggle .icon{width:17px;height:17px}.research-toggle[aria-expanded=true]{background:var(--selected);color:var(--ink)}.research-toggle:hover{background:var(--hover);color:var(--ink)}
.prediction-layout{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:28px}.prediction-layout.has-research{grid-template-columns:minmax(0,1fr) 304px}.prediction-main{min-width:0}.portfolio-overview{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:24px 32px;padding:2px 0 28px}.portfolio-headline{display:flex;align-items:flex-start;flex-direction:column;gap:9px}.overview-label{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--sub)}.overview-label small{font-size:10px;color:var(--muted)}.overview-value{font-size:42px;font-weight:500;letter-spacing:-1.5px;line-height:1.2;font-variant-numeric:tabular-nums}.overview-return{font-size:11px;line-height:1.5;color:var(--muted)}.portfolio-metrics{display:flex;gap:32px}.portfolio-metrics>a,.portfolio-metrics>button{display:flex;flex-direction:column;text-align:left;gap:12px;min-width:105px;align-items:flex-start;color:var(--ink);padding:8px 0}.portfolio-metrics span{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted)}.portfolio-metrics b{font-size:10px;font-weight:450;background:var(--paper);border-radius:4px;padding:2px 5px}.portfolio-metrics .icon{width:13px;height:13px}.portfolio-metrics strong{font-size:19px;letter-spacing:-.3px;font-weight:450;font-variant-numeric:tabular-nums}.allocation-meter{grid-column:1/-1;background:var(--line);height:4px;border-radius:5px;overflow:hidden;display:flex;width:100%;isolation:isolate}.allocation-meter>i{height:100%;min-width:0;border-radius:inherit;flex:none;background:var(--sub)}
.predictions-page .analysis-results{width:100%;border-top:1px solid var(--line-soft)}.predictions-page .analysis-results-head{padding:23px 0 20px;min-height:0;align-items:center}.predictions-page .analysis-results-head>div{display:flex;align-items:center;gap:13px}.predictions-page .analysis-results-head h2{font-size:15px;font-weight:500;letter-spacing:-.2px}.predictions-page .analysis-results-head>div>span{font-size:10px;margin:0;color:var(--muted)}.predictions-page .analysis-results-head>.text-link{display:none}.predictions-page .analysis-table-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:0 0 17px;border:0;flex-wrap:wrap}.predictions-page .analysis-filters{display:flex;gap:3px;padding:3px;border-radius:8px;background:var(--paper);flex-shrink:0}.predictions-page .analysis-filters button{height:31px;min-height:31px;padding:6px 10px;border:0!important;border-radius:5px;gap:7px;font-size:11px;color:var(--muted);line-height:1.4}.predictions-page .analysis-filters button:after{display:none}.predictions-page .analysis-filters button.active{color:var(--ink);background:var(--selected)}.predictions-page .analysis-filters button>span{font-size:10px;color:var(--muted)}.predictions-page .analysis-search{height:35px;width:156px;flex:0 1 156px;padding:7px 10px;border-radius:7px;border:1px solid var(--line-soft);background:transparent;gap:7px}.predictions-page .analysis-search input{font-size:12px;width:100%;min-width:0}.predictions-page .analysis-search .icon{width:14px;height:14px}.predictions-page .analysis-table-scroll{max-height:none;min-height:0;overflow:auto;scrollbar-width:thin}.predictions-page .analysis-table{width:100%}.predictions-page .analysis-table td{height:62px;border-color:var(--line-soft);padding:10px 9px}.predictions-page .analysis-table th{height:34px;padding:0 9px;font-size:10px;font-weight:450;color:var(--muted)}.predictions-page .analysis-company{min-width:0;gap:11px}.predictions-page .analysis-company strong{font-size:12px;font-weight:500}.predictions-page .analysis-company small{font-size:10px}.predictions-page .analysis-table .company-logo{width:28px;height:28px}.predictions-page .analysis-table td.numeric{font-size:12px}.predictions-page .analysis-no-results{height:150px!important;font-size:12px}.predictions-page .analysis-table tr:hover{background:var(--paper)}
.research-panel{position:sticky;top:24px;align-self:start;min-width:0;height:auto;overflow:visible;background:var(--paper);border:1px solid var(--line-soft);border-radius:11px}.research-panel[hidden]{display:none!important}.research-panel-header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 15px 11px}.research-panel-header h2{font-size:14px;font-weight:550;letter-spacing:-.2px}.research-panel-header .icon-button{width:28px;height:28px;color:var(--muted)}.research-panel-header .icon{width:15px;height:15px}.research-segment{display:flex;padding:3px;margin:0 15px;gap:3px;border-radius:7px;background:var(--bg)}.research-segment>button{flex:1;min-width:0;min-height:30px;border-radius:5px;font-size:11px;color:var(--muted)}.research-segment>button[aria-pressed=true]{background:var(--selected);color:var(--ink)}.research-panel [data-inspector-pane][hidden]{display:none!important}.research-content,.research-options{padding:22px 17px 18px}.research-result{display:flex;flex-direction:column;gap:10px;margin-bottom:22px}.research-result>span{font-size:11px;color:var(--muted)}.research-result>strong{font-size:18px;line-height:1.4;font-weight:500;letter-spacing:-.3px}.research-content>.secondary,.research-content>.primary,.research-options>.secondary{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;height:37px;min-height:37px;margin:0;font-size:11px}.research-trades{margin:-5px 0 18px}.research-trades>a{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--line-soft)}.research-trades>a:last-child{border:0}.research-trades .company-logo{width:27px;height:27px;border-radius:50%;flex:0 0 27px}.research-trades>a>span:not(.company-logo){flex:1;min-width:0}.research-trades strong{font-size:12px;font-weight:500}.research-trades small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.research-budget{display:flex;flex-direction:column;gap:8px;padding-top:16px;border-top:1px solid var(--line-soft)}.research-budget>span{font-size:11px;color:var(--muted)}.research-budget>strong{font-size:27px;letter-spacing:-.6px;font-weight:500}.research-cash{display:flex;justify-content:space-between;gap:10px;font-size:10px;color:var(--muted);margin:15px 0 20px}.research-cash>strong{font-weight:450}.research-panel-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line-soft);padding:14px 17px;gap:12px}.research-panel-footer>:is(a,button){display:flex;align-items:center;gap:7px;color:var(--muted);font-size:11px;min-height:20px}.research-panel-footer .icon{width:14px;height:14px}.research-panel-footer>:is(a,button):hover{color:var(--ink)}.research-options dl{margin:0 0 20px}.research-options dl>div{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;font-size:12px;border-bottom:1px solid var(--line-soft)}.research-options dt{color:var(--muted)}.research-options dd{margin:0;text-transform:capitalize}.research-error{display:flex;gap:8px;align-items:center;justify-content:space-between;font-size:11px;line-height:1.6;color:var(--red);margin:16px 0 0}.research-error .icon{width:12px;height:12px}.research-content .run-status{padding:0;margin:0 0 20px}.research-content .activity-dot{display:none}.research-content .run-status-top strong{font-size:12px}.research-content .ai-stages{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:22px 0 10px}.research-content .ai-stages li:before{display:none}.research-content .ai-stages li>span{width:100%;height:3px;border-radius:2px;background:var(--line)}.research-content .ai-stages .done>span{background:var(--muted)}.research-content .ai-stages .current>span{background:var(--ink)}
/* Controls and forms share one box model; no browser-native select squeezing. */
.header-right>[data-action=refresh]{display:grid;place-items:center;width:32px;height:32px;padding:6px;overflow:visible}.header-right>[data-action=refresh]>.icon{display:block;width:20px;height:20px;overflow:visible;flex:none;stroke-width:1.65}.header-right>[data-action=refresh][aria-busy=true]{opacity:.6}
.preferences-page{width:100%;max-width:1260px}.preferences-list{width:100%;max-width:960px}.preference-item{padding:23px 4px}.modal.live-modal.preference-dialog{width:560px;max-width:min(560px,calc(100vw - 32px))!important;padding:26px!important}.investing-dialog #settings-form{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.investing-dialog #settings-form>label:has(textarea),.investing-dialog .preferences-save{grid-column:1/-1}.preference-editor>label>input,.preference-editor>label>select,.preference-editor>label>textarea{width:100%;box-sizing:border-box}.preference-dialog .preferences-save{width:100%}
.modal.live-modal.cash-dialog{width:520px;max-width:calc(100vw - 32px)!important;padding:26px!important}.cash-dialog .modal-top{margin-bottom:26px}.cash-editor{width:100%;margin:0}.cash-current{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:23px;font-size:12px}.cash-current>span{color:var(--muted)}.cash-current>strong{font-size:14px;font-weight:500}.cash-switch{display:flex;padding:4px;gap:4px;background:var(--bg);border:1px solid var(--line-soft);border-radius:8px;margin-bottom:26px}.cash-switch button{flex:1;height:35px;padding:7px 12px;border-radius:5px;font-size:12px;color:var(--muted)}.cash-switch button[aria-pressed=true]{background:var(--selected);color:var(--ink)}.cash-dialog .cash-amount-label{display:flex;align-items:center;justify-content:space-between;margin:0 0 9px;font-size:12px;color:var(--sub);font-weight:400}.cash-amount-label small{font-size:10px;color:var(--muted)}.cash-amount-field{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:9px;background:var(--field);padding:0 17px;min-height:76px}.cash-amount-field:focus-within{border-color:var(--focus)}.cash-amount-field>span{font-size:27px;font-weight:400;color:var(--muted)}.cash-dialog .cash-amount-field>input{width:100%;min-width:0;height:74px;min-height:0;font-size:32px;line-height:1.2;letter-spacing:-.6px;margin:0;padding:16px 0!important;border:0!important;box-shadow:none;background:transparent!important;outline:0;appearance:textfield;-moz-appearance:textfield}.cash-amount-field input::-webkit-inner-spin-button,.cash-amount-field input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.cash-amount-field input::placeholder{color:var(--muted);opacity:.6}.cash-form-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:28px}.cash-form-footer>span{font-size:11px;color:var(--muted)}.cash-dialog .cash-form-footer>.primary{width:auto;min-width:116px;min-height:39px;height:39px;margin:0;padding:9px 14px;font-size:12px}
/* Keep navigation and account controls visible; only long watchlists scroll. */
@media(min-width:761px){
 .rail{height:100dvh;padding:22px 14px 14px;overflow:hidden}
 .rail>*{flex-shrink:0}
 .rail-logo{margin-bottom:18px;line-height:32px}
 .rail nav{margin-top:20px;gap:3px}
 .rail nav a{height:38px;min-height:38px}
 .rail .sidebar-label{padding:24px 10px 10px}
 .rail .side-holdings{display:flex;flex-direction:column;gap:2px;flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
 .rail .side-holdings>button{height:34px;min-height:34px;flex:none;padding:7px 10px}
 .rail .side-holdings>button small{min-width:0;line-height:20px}
 .rail-bottom{margin-top:0;padding-top:14px;flex:none}
 .rail-bottom>button{height:36px;min-height:36px;padding:8px 10px}
 .rail-bottom .workspace-picker{height:36px;min-height:36px;margin-top:4px;padding:5px 10px}
 .rail-bottom .workspace-picker>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis}
}
@media(min-width:761px) and (max-height:760px){
 .rail{padding-top:15px;padding-bottom:10px}
 .rail-logo{margin-bottom:12px;font-size:23px;line-height:30px}
 .rail .account-switcher{min-height:34px;height:34px;padding:6px 10px}
 .rail nav{margin-top:15px;gap:2px}
 .rail nav a{height:35px;min-height:35px}
 .rail .sidebar-label{padding-top:18px;padding-bottom:8px}
 .rail .side-holdings>button{height:31px;min-height:31px;padding:5px 10px}
 .rail-bottom{padding-top:10px}
}

@media(max-width:1200px){.predictions-page{padding-left:26px!important;padding-right:26px!important}.prediction-layout{gap:22px}.prediction-layout.has-research{grid-template-columns:minmax(0,1fr) 286px}.portfolio-overview{grid-template-columns:1fr;gap:20px;padding-bottom:24px}.portfolio-metrics{justify-content:space-between;gap:24px}.portfolio-metrics>a,.portfolio-metrics>button{flex:1}.overview-value{font-size:39px}}

@media(max-width:1000px){.prediction-layout.has-research{grid-template-columns:minmax(0,1fr)}.research-panel{position:static;grid-row:1}.prediction-main{grid-row:2}.prediction-layout:not(.has-research) .prediction-main{grid-row:1}.portfolio-overview{grid-template-columns:minmax(0,1fr) auto}.portfolio-metrics{gap:32px}.predictions-page .analysis-table .day-column{display:table-cell}.research-content{padding:20px}.research-panel-header{padding:14px 18px 10px}.research-panel .research-result{margin-bottom:18px}.research-trades{display:flex;gap:18px}.research-trades>a{flex:1;flex-wrap:wrap;border:0}.research-budget{display:flex;flex-direction:row;align-items:center;justify-content:space-between}.research-content>.primary,.research-content>.secondary{max-width:none}.research-panel-footer{padding:13px 20px}}
@media(max-width:760px){.predictions-page{padding:22px 18px 96px!important}.prediction-toolbar{align-items:flex-start;gap:14px;margin-bottom:26px;flex-wrap:wrap}.prediction-toolbar h1{font-size:25px}.prediction-toolbar>div{width:100%;justify-content:space-between;gap:10px}.prediction-toolbar [data-analysis-trigger]{font-size:12px!important}.research-toggle{font-size:12px}.portfolio-overview{grid-template-columns:1fr;gap:20px;padding:0 0 23px}.portfolio-metrics{gap:24px}.portfolio-metrics strong{font-size:18px}.portfolio-headline{gap:8px}.overview-value{font-size:38px}.prediction-layout{gap:25px}.research-panel{border-radius:10px}.research-trades{display:block}.research-trades>a{flex-wrap:nowrap;border-bottom:1px solid var(--line-soft)}.predictions-page .analysis-results-head{padding-top:22px}.predictions-page .analysis-results-head h2{font-size:14px}.predictions-page .analysis-table-toolbar{gap:11px}.predictions-page .analysis-search{flex-basis:100%;width:100%;height:36px}.predictions-page .analysis-search input{font-size:16px}.predictions-page .analysis-table th,.predictions-page .analysis-table td{padding-left:4px;padding-right:4px}.predictions-page .analysis-table .day-column{display:none}.predictions-page .analysis-company{gap:8px}.predictions-page .analysis-company small{font-size:10px;max-width:95px}.predictions-page .analysis-table .company-logo{width:26px;height:26px}.predictions-page .analysis-table td.numeric{font-size:12px}.modal.live-modal.preference-dialog,.modal.live-modal.cash-dialog{padding:22px!important;max-width:calc(100vw - 24px)!important}.investing-dialog #settings-form{grid-template-columns:1fr;gap:0}.preference-item{padding:20px 3px}.cash-current{margin-bottom:20px}.cash-switch{margin-bottom:22px}.cash-amount-field{min-height:70px;padding:0 13px}.cash-dialog .cash-amount-field>input{height:68px;font-size:29px}.cash-form-footer{gap:10px}.cash-form-footer>span{font-size:10px}.cash-dialog .cash-form-footer>.primary{min-width:110px;font-size:11px}}
.predictions-page>.prediction-toolbar{padding:0;border:0;background:none;height:auto;min-height:36px}.prediction-toolbar>.primary,.prediction-toolbar [data-analysis-trigger].primary{background:var(--ink);color:var(--bg)}
.research-result{gap:8px;margin-bottom:16px}.research-result>strong{font-size:17px;line-height:1.3}.research-trades{margin-bottom:15px}.research-trades>a{padding:8px 0}.research-trades strong{line-height:16px}.research-trades small{line-height:14px;margin-top:3px}.research-budget{flex-direction:row;align-items:center;justify-content:space-between;gap:12px;padding-top:14px}.research-budget>strong{font-size:24px;line-height:1.3;white-space:nowrap}.research-cash{margin:12px 0 16px}


/* One tall inspector: stable header, readable body, actions anchored below. */
.research-panel{display:flex;flex-direction:column;border-radius:12px;background:var(--paper)}
.research-panel-header,.research-segment,.research-panel-footer{flex:none}
.research-panel-header{padding:16px 17px 13px}
.research-segment{margin:0 17px}
.research-panel>[data-inspector-pane]{min-height:0;flex:1;display:flex;flex-direction:column}
.research-content{display:flex;flex:1;flex-direction:column;gap:24px;padding:24px 18px 20px}
.research-findings{flex:none}
.research-result>span{display:flex;align-items:center;justify-content:space-between;gap:12px}
.research-result time{font-size:10px;font-variant-numeric:tabular-nums}
.research-trades{margin:0}
.research-trades>a{padding:12px 0}
.research-decision{margin-top:auto;flex:none}
.research-decision>.secondary,.research-decision>.primary{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:38px;height:38px;margin:0;font-size:12px}
.research-decision>.primary{background:var(--ink);color:var(--bg)}
.research-budget{padding-top:20px;flex-direction:column;align-items:flex-start;gap:8px}
.research-budget>strong{font-size:30px;font-weight:450;letter-spacing:-.8px}
.research-budget+.secondary{margin-top:22px}
.research-cash{font-size:11px;margin:18px 0 20px}
.research-scope{display:flex;gap:32px;padding:20px 0 4px}
.research-scope>span{display:flex;flex-direction:column;gap:7px;font-size:11px;color:var(--muted)}
.research-scope strong{font-size:21px;font-weight:450;line-height:1.3;color:var(--sub);font-variant-numeric:tabular-nums}
.research-panel-footer{padding:15px 18px;min-height:52px}
.research-options>.secondary{margin-top:auto}
@media(min-width:1001px){
 .research-panel{position:sticky;top:24px;height:calc(100dvh - var(--research-top,153px) - 24px);min-height:340px;max-height:calc(100dvh - 48px);overflow:hidden}
 .research-panel>[data-inspector-pane]{overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
 .research-options{gap:24px}
}
@media(min-width:1001px) and (max-height:760px){
 .research-panel-header{padding:12px 15px 10px}
 .research-segment{margin:0 15px}
 .research-content{padding:19px 16px 16px;gap:18px}
 .research-trades>a{padding:8px 0}
 .research-budget{flex-direction:row;align-items:center;padding-top:14px;gap:12px}
 .research-budget>strong{font-size:24px}
 .research-cash{margin:12px 0 16px;font-size:10px}
 .research-panel-footer{min-height:46px;padding:12px 16px}
}
@media(max-width:1000px){
 .research-panel{height:auto;min-height:0;max-height:none;overflow:visible}
 .research-panel>[data-inspector-pane]{overflow:visible}
 .research-content{gap:24px}
 .research-budget{flex-direction:row;align-items:center}
 .research-budget>strong{font-size:25px}
 .research-scope{padding-top:6px}
 .research-options{gap:20px}
}

.reasoning-disclosure{margin:19px 0 0;border-top:1px solid var(--line-soft);font-size:12px;min-width:0}
.reasoning-disclosure>summary{display:flex;align-items:center;gap:9px;list-style:none;cursor:pointer;padding:14px 0 0;color:var(--sub);min-height:34px}
.reasoning-disclosure>summary::-webkit-details-marker{display:none}
.reasoning-disclosure>summary>small{margin-left:auto;font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums}
.reasoning-disclosure>summary>.icon{height:12px;width:12px;color:var(--muted);transition:transform .15s}
.reasoning-disclosure[open]>summary>.icon{transform:rotate(180deg)}
.reasoning-body{padding-top:17px}
.reasoning-caption{font-size:10px;color:var(--muted);margin-bottom:10px}
.reasoning-output{max-height:320px;overflow:auto;scrollbar-width:thin;overflow-wrap:anywhere;font-size:12px;line-height:1.8;padding-right:5px;overscroll-behavior:contain}
.reasoning-output>:first-child{margin-top:0}.reasoning-output>:last-child{margin-bottom:0}.reasoning-output ul{padding-left:17px}.reasoning-output li{margin-bottom:10px}.reasoning-output a{color:var(--sub);text-decoration:underline;text-underline-offset:3px}
.reasoning-empty{font-size:11px;color:var(--muted);line-height:1.7}
.analysis-detail-modal .reasoning-disclosure{margin:12px 0 0}.analysis-detail-modal .reasoning-output{max-height:260px;font-size:13px}
.research-content .run-status{margin-bottom:0}
@media(min-width:1001px) and (max-height:760px){.research-content{gap:14px}.research-trades>a{padding:6px 0}.reasoning-disclosure{margin-top:12px}.research-content .research-result{margin-bottom:10px}.reasoning-disclosure>summary{padding-top:11px;min-height:28px}}

.account-switcher>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-options{max-height:60dvh;overflow:auto;scrollbar-width:thin}.account-options>button>span{min-width:0}.account-options strong{overflow-wrap:anywhere}
/* Conversation workspace: a quiet titlebar and a familiar bottom composer. */
.conversation-page{max-width:none!important;height:calc(100dvh - 61px)!important;min-height:0!important;padding:0!important;display:flex;flex-direction:column;overflow:hidden}
.chat-titlebar{display:flex;align-items:center;gap:10px;height:61px;min-height:61px;padding:0 26px;border-bottom:1px solid var(--line-soft)}
.chat-titlebar h1{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px!important;letter-spacing:-.2px;font-weight:500}
.chat-titlebar>.icon-button{height:30px;width:30px;color:var(--muted)}.chat-titlebar .icon{width:17px;height:17px}
.conversation-layout{display:grid;grid-template-columns:minmax(0,1fr);flex:1;min-height:0}.conversation-layout.with-conversations{grid-template-columns:224px minmax(0,1fr)}
.conversation-sidebar{padding:18px 12px;overflow:auto;min-height:0;border-right:1px solid var(--line-soft);background:var(--bg);scrollbar-width:thin}
.conversation-sidebar-heading{display:flex;align-items:center;justify-content:space-between;padding:0 8px 15px;font-size:11px;color:var(--muted)}.conversation-sidebar-heading .icon-button{width:26px;height:26px}.conversation-sidebar-heading .icon{width:14px;height:14px}
#conversation-list{display:flex;flex-direction:column;gap:4px}#conversation-list>button{display:flex;align-items:center;gap:9px;padding:11px 10px;min-height:39px;border-radius:7px;font-size:12px;text-align:left;color:var(--sub)}#conversation-list>button.selected{background:var(--selected);color:var(--ink)}#conversation-list>button:hover{background:var(--hover)}#conversation-list>button>span{min-width:0;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#conversation-list>button>.icon{width:13px;height:13px;color:var(--muted)}#conversation-list i{height:5px;width:5px;border-radius:50%;background:var(--sub);flex:none}
.conversation-stage{display:flex;flex-direction:column;min-width:0;min-height:0;position:relative}
.conversation-stage .live-messages{flex:1;min-height:0;width:100%;max-width:none;overflow:auto;padding:24px max(26px,calc((100% - 780px)/2));scrollbar-width:thin}
.conversation-stage .live-message{max-width:100%;font-size:14px}.conversation-stage .live-message.user{max-width:85%}
.conversation-stage .live-chat-form{position:static;margin:0 auto 22px!important;width:calc(100% - 52px);max-width:780px;flex:none;background:var(--paper);border:1px solid var(--line);border-radius:15px;padding:14px 15px 10px!important}
.conversation-stage .live-chat-form textarea{padding:2px 3px!important;min-height:52px;max-height:160px;background:transparent;font-size:14px}
.conversation-stage .composer-controls{gap:8px;min-width:0}.conversation-stage .composer-controls select{width:auto;max-width:45%;min-width:0;font-size:11px;padding:6px 9px;border-radius:6px;background:transparent;border:0;color:var(--muted)}.conversation-stage .composer-controls select:hover{background:var(--hover)}.conversation-stage .composer-controls>button{margin-left:auto;flex:none}
.conversation-stage .chat-welcome{display:flex;min-height:100%;justify-content:center;align-items:flex-start;flex-direction:column;max-width:540px;width:100%;margin:0 auto;padding:30px 0 60px}
.chat-welcome .welcome-mark{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border:1px solid var(--line);border-radius:11px;color:var(--muted);margin-bottom:24px}.welcome-mark .icon{width:20px;height:20px}
.conversation-stage .chat-welcome h2{font-size:32px;letter-spacing:-1px;font-weight:500;margin:0 0 26px;text-align:left}
.conversation-stage .chat-prompts{display:flex;flex-direction:column;gap:5px;width:100%;max-width:310px;margin:0}.conversation-stage .chat-prompts>button{display:flex;align-items:center;justify-content:space-between;min-height:39px;padding:9px 0;background:none;border:0;border-radius:0;font-size:13px;color:var(--muted);text-align:left}.conversation-stage .chat-prompts>button>.icon{width:14px;height:14px;opacity:0}.conversation-stage .chat-prompts>button:hover{color:var(--ink)}.conversation-stage .chat-prompts>button:hover>.icon{opacity:1}
@media(max-width:1100px){.conversation-layout.with-conversations{grid-template-columns:200px minmax(0,1fr)}}
@media(max-width:760px){.conversation-page{height:calc(100dvh - 135px)!important}.chat-titlebar{padding:0 14px;height:52px;min-height:52px}.conversation-layout.with-conversations{grid-template-columns:1fr}.conversation-layout.with-conversations .conversation-stage{display:none}.conversation-sidebar{border:0}.conversation-stage .live-messages{padding:20px}.conversation-stage .live-chat-form{width:calc(100% - 28px);margin-bottom:12px!important;padding:12px!important}.conversation-stage .live-chat-form textarea{font-size:16px}.conversation-stage .chat-welcome h2{font-size:29px}.conversation-stage .chat-welcome{padding-bottom:30px}.conversation-stage .composer-controls select{max-width:47%;padding:6px 4px;font-size:10px}}

.portfolio-page{max-width:1500px}.portfolio-page .overview-grid{gap:28px;grid-template-columns:minmax(0,1fr) 304px}.portfolio-page .portfolio-money{padding:0}.portfolio-value-card{position:relative;padding:26px 28px;background:var(--paper);border:1px solid var(--line-soft);border-radius:12px}.portfolio-card-label{display:flex;align-items:center;gap:10px;color:var(--sub);font-size:12px}.portfolio-card-label small{font-size:10px;color:var(--muted)}.portfolio-money .balance-value{font-size:44px;margin:14px 0 6px}.portfolio-money .balance-change{font-size:11px}.portfolio-card-count{position:absolute;right:28px;bottom:28px;color:var(--muted);font-size:11px}.portfolio-money .portfolio-money-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:12px 0 0}.portfolio-money-grid>div{padding:19px 17px;background:var(--paper);border:1px solid var(--line-soft);border-radius:10px;min-width:0}.portfolio-money-grid>div>span{display:flex;justify-content:space-between;align-items:center;height:22px;font-size:11px;margin:0 0 13px;gap:6px}.portfolio-money-grid .icon-button{width:24px;height:24px}.portfolio-money-grid .icon{width:13px;height:13px}.portfolio-money-grid strong{font-size:20px;font-weight:450;letter-spacing:-.4px;overflow-wrap:anywhere}.portfolio-page .holdings-section,.portfolio-page .records-live,.portfolio-page .broker-orders{background:var(--paper);border:1px solid var(--line-soft);border-radius:12px;padding:22px;margin-top:22px}.portfolio-page .holdings-section>.section-title{margin-bottom:13px}.portfolio-page .holdings-section .empty-state{padding:35px 10px}.portfolio-page .ledger-row:last-child{border-bottom:0}.portfolio-page .records-live>h2{margin-bottom:12px}.portfolio-page .holding-row{background:transparent}
.instrument-context{background:transparent;border:0;padding:13px 22px;min-height:46px;color:var(--muted);font-size:11px}.instrument-context>.text-link{display:flex;gap:7px;align-items:center;font-size:11px}.instrument-context .icon{height:14px;width:14px}
.modal.live-modal.review-idle-modal{width:460px;max-width:calc(100vw - 24px)!important;padding:24px!important}.review-idle{padding-top:16px}.review-idle-icon{display:grid;place-items:center;width:40px;height:40px;border:1px solid var(--line);border-radius:50%;color:var(--sub);margin-bottom:20px}.review-idle h3{font-size:22px;font-weight:500;letter-spacing:-.5px}.review-idle>p{color:var(--muted);font-size:12px;margin-top:9px}.review-idle-balance{display:flex;justify-content:space-between;align-items:center;padding:22px 0;margin-top:15px;border-bottom:1px solid var(--line-soft);font-size:12px;color:var(--muted)}.review-idle-balance strong{font-size:19px;font-weight:450;color:var(--ink)}.review-idle-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:26px}.review-idle-actions>button{width:auto;min-width:90px;margin:0}.review-idle .reasoning-disclosure{border:0}
.modal.allocation-modal{width:920px!important;max-width:calc(100vw - 32px)!important;border-radius:13px!important}.allocation-modal .modal-top{padding:22px 24px!important}.allocation-modal .modal-top h2{font-size:20px!important}.allocation-modal .review-intro{padding:13px 24px!important}.allocation-modal .review-trades{padding:22px 24px!important;min-height:0!important}.allocation-modal .review-budget{padding:22px!important;background:var(--bg)}.allocation-modal .review-workspace{min-height:0!important;grid-template-columns:minmax(0,1fr) 245px}.allocation-modal .sizing-overview>div:first-child>strong{color:var(--ink)!important;font-size:30px}.allocation-modal .review-section-title{margin-bottom:18px!important}.allocation-modal .review-budget h3{font-size:14px}.allocation-modal .review-budget .sizing-budget{padding-top:18px;margin-top:18px}.allocation-modal .review-cash-available{font-size:11px}.allocation-modal .review-bottom{padding:17px 24px!important}.allocation-modal .review-footer{margin-top:17px!important}.allocation-modal .review-footer>span{font-size:11px}.allocation-modal .review-estimate-note{font-size:10px;margin-top:23px}.allocation-modal .selected-trade-summary{font-size:12px}
@media(max-width:1100px){.portfolio-page .overview-grid{grid-template-columns:1fr}.portfolio-page .overview-aside{display:block}.portfolio-page .portfolio-money-grid strong{font-size:19px}}
@media(max-width:760px){.portfolio-money .portfolio-money-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.portfolio-money-grid>div:first-child{grid-column:1/-1}.portfolio-value-card{padding:22px}.portfolio-card-count{position:static;display:block;margin-top:18px}.portfolio-money .balance-value{font-size:36px!important}.portfolio-page .holdings-section,.portfolio-page .records-live{padding:18px 14px}.allocation-modal .review-workspace{display:block}.allocation-modal .review-trades,.allocation-modal .review-budget{padding:18px!important}.allocation-modal .review-intro,.allocation-modal .review-bottom{padding:15px 18px!important}.allocation-modal .review-footer>span{display:none}}

.investigations-page{max-width:1200px}.investigation-form{background:var(--paper);border:1px solid var(--line-soft);border-radius:12px;padding:26px;margin-bottom:32px}.investigation-form-heading{display:flex;align-items:center;gap:12px;margin-bottom:18px}.investigation-form-heading .icon{color:var(--muted);width:18px;height:18px}.investigation-form-heading h2{font-size:16px;font-weight:500}.investigation-fields{display:grid;grid-template-columns:240px minmax(0,1fr);gap:18px}.investigation-fields small{font-size:10px;color:var(--muted)}.investigation-actions{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:16px}.investigation-actions>select{width:auto;background:transparent;border:0;font-size:12px;padding:8px 0}.investigation-actions>.primary{width:auto;padding:9px 15px;margin:0}.investigation-list{display:flex;flex-direction:column;gap:9px}.investigation-row{display:flex;align-items:center;background:var(--paper);border:1px solid var(--line-soft);border-radius:10px}.investigation-row>a{display:flex;gap:14px;align-items:center;padding:20px;flex:1;min-width:0}.investigation-row a>span:not(.company-logo){min-width:0;flex:1}.investigation-row strong{font-size:14px;font-weight:500}.investigation-row small{display:block;color:var(--muted);font-size:11px;margin-top:5px}.investigation-row .company-logo{width:32px;height:32px}.investigation-row .icon{width:15px;height:15px;color:var(--muted)}.investigation-row>.icon-button{margin-right:12px}.investigation-empty{padding:30px 0;color:var(--muted);font-size:13px}
@media(max-width:760px){.investigation-fields{grid-template-columns:1fr;gap:0}.investigation-form{padding:20px}.bottom-nav a{flex:1;min-width:45px;font-size:8px}.bottom-nav{padding-left:5px;padding-right:5px}.bottom-nav .icon{width:17px;height:17px}}

.provider-options{display:flex;flex-direction:column;gap:9px;margin-top:22px}.provider-options>button{display:flex;align-items:center;justify-content:space-between;text-align:left;border:1px solid var(--line);border-radius:9px;padding:18px 16px}.provider-options>button[aria-pressed=true]{background:var(--selected)}.provider-options>button>span{display:flex;align-items:center;gap:14px}.provider-options .icon{width:18px;height:18px;color:var(--muted)}.provider-options strong{font-size:14px;font-weight:500}.provider-options small{display:block;font-size:11px;font-weight:400;color:var(--muted);margin-top:4px}.provider-note{font-size:11px;color:var(--muted);line-height:1.7;margin:20px 0}.provider-loading{padding:30px 0;color:var(--muted);font-size:12px}
.research-options .research-preference-visuals>div{display:grid;grid-template-columns:1fr auto;gap:10px;padding:19px 0;border:0}.research-preference-visuals dt{font-size:11px}.research-preference-visuals dd{font-size:12px}.risk-scale,.preference-track{grid-column:1/-1;display:flex;height:4px;gap:5px}.risk-scale>i{flex:1;border-radius:3px;background:var(--line)}.risk-scale>i.filled{background:var(--sub)}.preference-track{background:var(--line);border-radius:3px;overflow:hidden}.preference-track>i{height:100%;background:var(--sub);border-radius:inherit}

.home-page{max-width:1440px}.home-actions{display:flex;align-items:center;gap:14px}.home-actions>button{width:auto;padding:8px 12px;font-size:12px}.home-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.home-widget{background:var(--paper);border:1px solid var(--line-soft);border-radius:12px;min-width:0;padding:22px 24px}.home-widget.wide{grid-column:1/-1}.home-widget>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}.home-widget h2{font-size:13px;font-weight:500;color:var(--sub)}.home-balance{display:flex;justify-content:space-between;gap:40px;padding:4px 0 9px}.home-balance>div:first-child>span{font-size:11px;color:var(--muted)}.home-balance>div:first-child>strong{display:block;font-size:43px;font-weight:450;letter-spacing:-1.5px;margin:7px 0 12px}.home-balance a{display:flex;align-items:center;gap:12px;font-size:11px;color:var(--muted)}.home-balance a>.icon{width:13px;height:13px}.home-funds{display:grid;grid-template-columns:1fr 1fr;gap:12px 36px;align-content:center;min-width:260px}.home-funds span{font-size:11px;color:var(--muted);display:block;margin-bottom:7px}.home-funds strong{font-size:20px;font-weight:450}.home-allocation{grid-column:1/-1;border-radius:3px;overflow:hidden;height:4px;background:var(--line);margin-top:15px}.home-allocation>i{display:block;height:100%;background:var(--sub);border-radius:inherit}.home-widget:not(.wide) .home-balance{display:block}.home-widget:not(.wide) .home-funds{margin-top:22px;min-width:0}.home-rows>a{display:flex;align-items:center;gap:12px;min-height:58px;padding:11px 0;border-bottom:1px solid var(--line-soft)}.home-rows>a:last-child{border:0}.home-rows .company-logo{height:29px;width:29px}.home-rows .icon{height:17px;width:17px;color:var(--muted)}.home-rows>a>span:not(.company-logo){flex:1;min-width:0}.home-rows strong{display:block;font-size:12px;font-weight:500;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.home-rows small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.home-rows .home-price{text-align:right;flex:none!important}.home-card-link{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--sub);margin-top:22px}.home-card-link .icon{height:14px;width:14px}.home-research{display:flex;flex-direction:column;align-items:flex-start;padding-top:4px}.home-research>strong{font-size:23px;font-weight:450;letter-spacing:-.6px}.home-research>span{font-size:11px;color:var(--muted);margin-top:12px}.home-research>.secondary{margin-top:33px;padding:9px 13px;font-size:11px}.home-quiet{font-size:12px;color:var(--muted);padding:12px 0 24px}.widget-tools{display:flex;gap:2px}.widget-tools .icon-button{width:26px;height:26px;color:var(--muted)}.widget-tools .icon{height:13px;width:13px}.home-grid.is-editing .home-widget{cursor:grab;border-style:dashed;border-color:var(--line)}.home-widget.dragging{opacity:.4}.home-widget.drop-target{outline:1px solid var(--sub);outline-offset:3px}.home-panel-picker{display:flex;flex-direction:column;padding-top:18px}.home-panel-picker>button{display:flex;align-items:center;gap:14px;padding:16px 4px;font-size:13px;border-bottom:1px solid var(--line-soft)}.home-panel-picker>button>span{flex:1;text-align:left}.home-panel-picker .icon{height:17px;width:17px;color:var(--muted)}
@media(max-width:1100px){.home-balance{gap:22px}.home-funds{min-width:210px;gap:15px 20px}}
@media(max-width:760px){.home-grid{grid-template-columns:1fr;gap:14px}.home-widget{padding:20px}.home-balance{display:block}.home-funds{margin-top:22px;min-width:0}.home-balance>div:first-child>strong{font-size:37px}.home-actions{gap:7px}.home-actions>button{font-size:10px;padding:7px}.home-page .page-heading{gap:8px}.home-page h1{font-size:24px}.bottom-nav a{min-width:40px;font-size:8px}.bottom-nav .icon{width:16px;height:16px}}
/* Keep the action dock fully visible while long research remains scrollable. */
@media(min-width:1001px){
 .research-panel>#research-overview{overflow:hidden}
 .research-panel .research-content{flex:1;min-height:0;overflow:hidden}
 .research-findings{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:var(--line) transparent;padding-right:3px}
 .research-decision{padding-top:4px}
 .research-findings .reasoning-output{max-height:none;overflow:visible}
}
.research-options dl{margin-bottom:0}.research-options{gap:16px}.research-options>.secondary{flex:none}
@media(min-width:1001px) and (max-height:760px){.research-options{padding:18px 16px}.research-options .research-preference-visuals>div{padding-top:12px;padding-bottom:12px}}
/* Portfolio cards share one edge; darker secondary surfaces separate the hierarchy. */
.portfolio-page .portfolio-money-grid{width:100%;max-width:none;gap:12px}
.portfolio-page .portfolio-money-grid>div{padding:19px 17px}
.portfolio-page .holdings-section,.portfolio-page .records-live{background:var(--bg);margin-top:30px}
.portfolio-page .holdings-section .empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;min-height:165px;padding:36px 12px}
.portfolio-page .holdings-section .empty-state h2{margin:0;font-size:16px;font-weight:500}
.portfolio-page .holdings-section .empty-state>.secondary{margin:0;min-width:136px;max-width:100%}
body.dark .portfolio-page .portfolio-money-grid>div{background:#0d0f11}
@media(max-width:760px){.portfolio-page .portfolio-money-grid{gap:12px}.portfolio-page .holdings-section,.portfolio-page .records-live{margin-top:24px}}
.portfolio-page .holdings-section .empty-state>.secondary{width:auto}
