/* Research is a library and a document workspace, with a quiet context rail. */
.research-workspace{max-width:1600px}.research-workspace-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}.research-workspace-heading>div{display:flex;align-items:center;gap:20px}.research-library-shell{display:grid;grid-template-columns:168px minmax(0,1fr);gap:30px}.research-library-main{min-width:0}.research-library-nav{position:sticky;top:24px;align-self:start;font-size:12px}.research-library-nav header{display:flex;align-items:center;justify-content:space-between;color:var(--muted);padding:0 8px 12px}.research-library-nav .icon-button{width:28px;height:28px}.research-library-nav .icon{width:16px;height:16px;flex:none}.research-library-nav>button,.library-folder-row>button:first-child{display:flex;align-items:center;gap:9px;width:100%;padding:11px 9px;min-height:39px;border-radius:7px;text-align:left;color:var(--sub);margin-bottom:3px}.research-library-nav button.selected{background:var(--selected);color:var(--ink)}.research-library-nav button:hover{background:var(--hover)}.research-library-nav button>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.research-library-nav button>small{margin-left:auto;color:var(--muted);font-size:10px}.library-folder-row{position:relative}.library-folder-row>button:first-child{padding-right:31px}.library-folder-row .folder-edit{position:absolute;right:2px;top:5px;opacity:0;background:var(--selected)}.library-folder-row:hover .folder-edit,.library-folder-row:focus-within .folder-edit{opacity:1}.research-library-nav .library-settings{border-top:1px solid var(--line-soft);border-radius:0;margin-top:24px;padding-top:20px;font-size:11px}
.research-composer{border:1px solid var(--line);background:var(--paper);border-radius:13px;padding:20px;margin-bottom:30px}.research-composer-top{display:flex;align-items:center;justify-content:space-between;gap:16px}.research-company-picker{display:flex;align-items:center;gap:10px;min-width:0;max-width:48%;text-align:left}.research-company-picker .company-logo{width:30px;height:30px;flex:none;border-radius:8px}.research-company-picker strong{font-size:13px;font-weight:550}.research-company-picker>span{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.research-company-picker>.icon{width:13px;height:13px;flex:none;color:var(--muted)}.research-agent-tabs{display:flex;align-items:center;padding:3px;background:var(--bg);border:1px solid var(--line-soft);border-radius:7px;gap:2px}.research-agent-tabs button{padding:7px 9px;border-radius:5px;font-size:11px;white-space:nowrap;color:var(--muted)}.research-agent-tabs button[aria-pressed=true]{background:var(--selected);color:var(--ink)}.research-composer textarea{width:100%;resize:none;min-height:92px;border:0;outline:0;padding:23px 0 16px;background:transparent;font-size:16px;line-height:1.6}.research-composer textarea:focus-visible{outline:0}.research-composer:focus-within{border-color:color-mix(in srgb,var(--focus) 60%,var(--line))}.research-composer-bottom{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.research-composer-bottom>.primary{margin-left:auto;display:flex;gap:12px;align-items:center;min-height:36px}.research-composer-bottom .primary .icon{width:15px}.research-folder-select{display:flex;gap:6px;align-items:center;min-width:0;color:var(--muted)}.research-folder-select>.icon{width:14px;height:14px}.research-folder-select select{font-size:11px;background:transparent;border:0;padding:4px;max-width:140px}.research-composer .form-error:empty{display:none}.research-collection-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 14px}.research-collection-heading h2{font-size:13px;font-weight:500}.research-collection-heading label{display:flex;gap:7px;align-items:center;width:170px;color:var(--muted)}.research-collection-heading .icon{width:15px;height:15px}.research-collection-heading input{width:100%;border:0;background:transparent;font-size:12px;min-width:0;padding:8px 0}.research-file-row{display:flex;align-items:center;gap:13px;padding:18px 4px;border-bottom:1px solid var(--line-soft);min-width:0}.research-file-row:hover{background:var(--paper)}.research-file-row>.company-logo,.research-file-symbol{width:32px;height:32px;flex:none;border-radius:8px}.research-file-symbol{display:grid;place-items:center;background:var(--paper);color:var(--muted)}.research-file-symbol>.icon{width:19px;height:19px}.research-file-name{flex:1;min-width:0}.research-file-name strong{display:block;font-size:13px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.research-file-name small{display:block;font-size:11px;color:var(--muted);margin-top:5px}.research-file-state{display:flex;gap:7px;align-items:center;max-width:30%;font-size:11px;color:var(--muted)}.research-file-row>.icon{width:13px;height:13px;color:var(--muted)}.research-running-mark{display:block;width:6px;height:6px;border-radius:50%;background:var(--focus);flex:none}.research-library-empty{padding:65px 20px;text-align:center}.research-library-empty h2{font-size:18px;letter-spacing:-.3px;font-weight:500}.research-library-empty p{font-size:12px;color:var(--muted);margin-top:9px}
.research-detail-layout{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:28px}.research-document{min-width:0}.research-document-header{margin:2px 0 25px}.research-document-header>.text-link{font-size:11px;display:inline-flex;align-items:center;gap:7px;margin-bottom:23px}.research-document-header .icon{width:13px;height:13px}.research-document-header h1{font-size:24px;letter-spacing:-.6px;line-height:1.3;overflow-wrap:anywhere}.research-document-header>span{display:block;font-size:11px;color:var(--muted);margin-top:10px}.research-document-tabs{display:flex;gap:24px;border-bottom:1px solid var(--line);margin-bottom:25px}.research-document-tabs button{position:relative;padding:11px 0;font-size:12px;color:var(--muted)}.research-document-tabs button[aria-pressed=true]{color:var(--ink)}.research-document-tabs button[aria-pressed=true]:after{content:'';position:absolute;height:2px;bottom:-1px;left:0;right:0;background:var(--ink);border-radius:2px}.research-report{font-size:13px;line-height:1.85;overflow-wrap:anywhere;max-width:740px;padding-bottom:30px}.research-report h2{font-size:19px;font-weight:550}.research-report h3{font-size:15px;font-weight:550}.research-report p{margin:14px 0}.research-report-empty{padding:38px 0;min-height:170px}.research-report-empty h2{font-size:17px}.research-report-empty p{font-size:12px;color:var(--muted)}.research-progress-line{margin-top:22px;height:2px;max-width:220px;background:var(--line);overflow:hidden}.research-progress-line:after{content:'';display:block;width:35%;height:100%;background:var(--focus);animation:research-progress 1.6s ease-in-out infinite alternate}@keyframes research-progress{to{transform:translateX(180%)}}.research-sources>a{display:flex;gap:14px;padding:18px 0;border-bottom:1px solid var(--line-soft)}.research-sources>a>span{font-size:10px;color:var(--muted);padding-top:3px}.research-sources>a>div{min-width:0;flex:1}.research-sources strong{font-size:13px;font-weight:500;line-height:1.6;overflow-wrap:anywhere}.research-sources small{display:block;color:var(--muted);font-size:11px;margin-top:5px}.research-sources p{font-size:12px;line-height:1.7;color:var(--sub);margin-top:10px}.research-sources .icon{width:14px;height:14px;flex:none;color:var(--muted)}.research-muted,.research-source-note{font-size:11px;color:var(--muted);line-height:1.7}.research-source-note{margin-top:22px}.research-note-editor{display:flex;flex-direction:column;gap:16px;min-height:360px}.research-note-editor>input{border:0;background:transparent;padding:4px 0;font-size:18px;font-weight:500;width:100%;min-width:0}.research-note-editor textarea{border:1px solid var(--line);border-radius:10px;padding:15px;min-height:270px;flex:1;resize:vertical;width:100%;font-size:13px;line-height:1.8;background:var(--field)}.research-note-editor>div{display:flex;align-items:center;justify-content:space-between;gap:15px}.research-note-editor [role=status]{font-size:11px;color:var(--muted)}.research-note-editor .primary{display:flex;align-items:center;gap:10px}.research-note-editor .icon{width:15px;height:15px}
#research-context{min-width:0}.report-inspector{position:sticky;top:24px;display:flex;flex-direction:column;gap:22px;height:calc(100dvh - var(--research-top,153px) - 24px);min-height:400px;max-height:calc(100dvh - 48px);overflow:auto;scrollbar-width:thin;background:var(--paper);border:1px solid var(--line-soft);border-radius:11px;padding:20px;font-size:12px}.report-inspector-top{display:flex;flex-wrap:wrap;gap:7px;align-items:center;justify-content:space-between}.report-inspector-top h2{font-size:13px;font-weight:500}.report-inspector-top>span{font-size:10px;color:var(--muted);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:130px}.report-company{display:flex;align-items:center;gap:10px}.report-company .company-logo{width:32px;height:32px;flex:none;border-radius:8px}.report-company>span{min-width:0;flex:1}.report-company strong{display:block;font-size:13px;font-weight:500;overflow-wrap:anywhere}.report-company small{display:block;font-size:11px;color:var(--muted);margin-top:3px}.report-company>.icon{width:14px;height:14px;color:var(--muted);flex:none}.report-forecast{border-top:1px solid var(--line-soft);padding-top:22px}.report-forecast h3{font-size:11px;font-weight:400;color:var(--muted);margin-bottom:16px}.report-forecast>div{display:grid;grid-template-columns:1fr 1fr;gap:13px}.report-forecast>div small{display:block;font-size:10px;color:var(--muted);margin-bottom:7px}.report-forecast strong{font-weight:450;font-size:22px;letter-spacing:-.6px}.report-forecast>div>p{grid-column:1/-1;font-size:11px;color:var(--muted)}.report-forecast>small{display:block;font-size:10px;color:var(--muted);margin-top:13px}.report-facts{margin:0;display:flex;flex-direction:column;gap:14px}.report-facts>div{display:flex;gap:10px;justify-content:space-between}.report-facts dt{color:var(--muted);font-size:11px}.report-facts dd{margin:0;text-align:right;overflow-wrap:anywhere;max-width:65%;font-size:11px}.report-folder-label{display:flex;flex-direction:column;gap:9px;color:var(--muted);font-size:11px}.report-folder-label select{width:100%;font-size:12px;min-height:36px;background:var(--field)}.report-inspector-bottom{margin-top:auto;display:flex;flex-direction:column;gap:14px;padding-top:16px}.report-inspector-bottom .secondary{display:flex;align-items:center;justify-content:center;gap:9px;white-space:normal}.report-inspector-bottom .icon{width:15px;height:15px}.report-inspector-bottom .text-link{display:flex;align-items:center;justify-content:center;gap:8px;font-size:11px}
/* The same inset fields and compact action area used by Paper cash. */
.modal.live-modal:has(>form):not(.allocation-modal){padding:26px!important;width:520px;max-width:calc(100vw - 32px)!important}.live-modal:has(>form)>.modal-top{margin:0 0 26px}.live-modal>form:not(.cash-editor)>label,.live-modal .form-pair>label{font-size:12px;font-weight:400;color:var(--sub);display:block;margin:0 0 20px}.live-modal>form:not(.cash-editor) :is(input:not([type=hidden]),select,textarea){display:block;box-sizing:border-box;width:100%;min-width:0;min-height:43px;margin-top:9px;padding:11px 13px;font-size:14px;line-height:1.5;border:1px solid var(--line);border-radius:8px;background:var(--field);color:var(--ink)}.live-modal>form textarea{resize:vertical;max-height:32dvh}.live-modal>form:not(.cash-editor)>.primary{display:flex;align-items:center;justify-content:center;gap:10px;margin:26px 0 0 auto;width:auto;min-width:104px;min-height:39px}.live-modal>form>.form-error:empty{display:none}.live-modal .form-pair{display:grid;grid-template-columns:1fr 1fr;gap:18px}.live-modal .form-pair>label{min-width:0}.live-modal>form .modal-note{font-size:10px}.live-modal:has(>form) .modal-top h2{font-size:20px;font-weight:550;letter-spacing:-.4px}.research-company-dialog{width:480px!important}.research-company-search{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--field);margin:22px 0 12px}.research-company-search .icon{width:17px;height:17px;color:var(--muted)}.research-company-search input{border:0!important;outline:none;background:transparent!important;padding:0!important;font-size:14px;width:100%;min-width:0}.research-company-results{max-height:48dvh;overflow:auto}.research-company-results>button{width:100%;display:flex;align-items:center;gap:12px;padding:13px 8px;text-align:left;border-radius:7px}.research-company-results>button:hover{background:var(--hover)}.research-company-results .company-logo{width:31px;height:31px;border-radius:8px}.research-company-results>button>span{flex:1;min-width:0}.research-company-results strong{font-size:12px;font-weight:500}.research-company-results small{display:block;font-size:11px;color:var(--muted);margin-top:3px}
.model-picker-trigger{display:inline-flex;align-items:center;gap:7px;font-size:11px;color:var(--sub);min-height:30px;max-width:220px;padding:5px 7px;border-radius:6px;white-space:nowrap}.model-picker-trigger:hover{background:var(--hover);color:var(--ink)}.model-picker-trigger>span{min-width:0;overflow:hidden;text-overflow:ellipsis}.model-picker-trigger>.icon{width:12px;height:12px;flex:none}.model-picker-dialog{width:420px!important;max-width:calc(100vw - 24px)!important}.model-picker-content{font-size:12px;color:var(--muted)}.model-choice-list{max-height:52dvh;overflow:auto;margin:20px -8px 0;padding:0 8px;scrollbar-width:thin}.model-choice-list>h3{font-size:11px;color:var(--muted);font-weight:400;border-top:1px solid var(--line);padding:18px 10px 6px;margin-top:12px}.model-choice-list>button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:12px 10px;border-radius:7px;text-align:left;min-height:42px;color:var(--ink)}.model-choice-list>button:hover{background:var(--hover)}.model-choice-list>button[aria-pressed=true]{background:var(--selected)}.model-choice-list strong{font-size:13px;font-weight:500}.model-choice-list small{display:block;font-size:11px;color:var(--muted);margin-top:5px}.model-choice-list .icon{width:16px;height:16px}.model-connection-note{font-size:11px;line-height:1.7;color:var(--muted);margin-top:22px}.chat-page .chat-welcome-minimal{max-width:520px;width:100%;padding:45px 0}.chat-page .chat-welcome-minimal h2{font-size:29px;font-weight:500;letter-spacing:-.8px;margin:0 0 26px}.chat-quick-actions{display:flex;gap:9px;flex-wrap:wrap}.chat-quick-actions>button,.chat-quick-actions>a{display:inline-flex;align-items:center;gap:8px;font-size:12px;padding:10px 13px;border:1px solid var(--line);border-radius:8px;color:var(--sub)}.chat-quick-actions>button:hover,.chat-quick-actions>a:hover{background:var(--paper);color:var(--ink)}.chat-quick-actions .icon{width:14px;height:14px}.chat-composer-meta>.model-picker-trigger{max-width:200px}
/* A consistent spacing rhythm across portfolio surfaces. */
.portfolio-page .overview-grid{gap:24px}.portfolio-page .portfolio-money-grid{padding-top:16px;gap:16px}.portfolio-page .holdings-section,.portfolio-page .records-live,.portfolio-page .broker-orders{margin-top:24px;padding:24px}.portfolio-page .holdings-section>.section-title{margin-bottom:12px}.portfolio-page .holdings-section .empty-state{min-height:190px;padding:38px 12px;gap:20px}.portfolio-page .portfolio-money-grid>div{padding:20px}.portfolio-value-card{padding:26px}.portfolio-card-count{right:26px;bottom:26px}
@media(min-width:1001px) and (max-width:1350px){.research-library-shell{grid-template-columns:138px minmax(0,1fr);gap:22px}.research-detail-layout{grid-template-columns:minmax(0,1fr) 220px;gap:20px}.report-inspector{padding:17px;gap:18px}.research-company-picker>span{display:none}.research-composer-top{gap:8px}.research-agent-tabs button{padding:7px}.research-library-nav .library-settings{font-size:10px}}
@media(max-width:1000px){.research-library-shell{grid-template-columns:140px minmax(0,1fr);gap:20px}.research-composer-top{flex-wrap:wrap}.research-company-picker{max-width:100%}.research-detail-layout{grid-template-columns:1fr}.report-inspector{position:static;height:auto;min-height:0;max-height:none;display:grid;grid-template-columns:1fr 1fr;gap:20px}.report-inspector-top,.report-inspector-bottom{grid-column:1/-1}.report-inspector-bottom{flex-direction:row;align-items:center;justify-content:flex-end;margin:0;padding:0}.report-forecast{padding:0;border:0}.report-facts{justify-content:center}.research-file-state{font-size:10px}.research-workspace-heading>div{gap:12px}}
@media(max-width:760px){.research-workspace-heading{align-items:flex-start;gap:15px;margin-bottom:25px}.research-workspace-heading>div{gap:8px}.research-workspace-heading>div>.text-link{font-size:0}.research-workspace-heading>div>.text-link .icon{width:18px;height:18px}.research-workspace-heading .secondary{font-size:11px;min-height:34px;padding:8px 10px}.research-library-shell{display:block}.research-library-nav{position:static;display:flex;gap:6px;overflow:auto;margin-bottom:22px;padding:0 0 7px;scrollbar-width:thin;align-items:center}.research-library-nav header{padding:0;flex:none}.research-library-nav header>span{display:none}.research-library-nav>button,.library-folder-row>button:first-child{white-space:nowrap;width:auto;margin:0;padding:9px;gap:6px;font-size:11px;min-height:34px}.research-library-nav>button{flex:none}.research-library-nav>button>small{display:none}.library-folder-row{flex:none}.library-folder-row>button:first-child{padding-right:30px}.library-folder-row .folder-edit{opacity:1;background:transparent}.library-folder-row>button:first-child>small{display:none}.research-library-nav .library-settings{margin:0;padding:9px;border:0;font-size:0}.research-library-nav .library-settings .icon{width:17px;height:17px}.research-composer{padding:16px;margin-bottom:26px}.research-composer-top{gap:18px}.research-agent-tabs{width:100%;justify-content:space-between}.research-agent-tabs button{flex:1;font-size:11px;padding:7px 6px}.research-composer textarea{font-size:16px;min-height:100px;padding-top:20px}.research-composer-bottom{gap:8px}.research-composer-bottom>.primary{font-size:11px;min-height:34px;padding:8px 10px;gap:7px}.research-composer-bottom .model-picker-trigger{max-width:145px;padding-left:0;font-size:10px}.research-folder-select{order:4;width:100%;border-top:1px solid var(--line-soft);padding-top:10px}.research-folder-select select{max-width:100%}.research-collection-heading h2{font-size:12px}.research-collection-heading label{width:110px}.research-file-row{gap:10px}.research-file-name strong{font-size:12px}.research-file-state{max-width:25%}.research-file-row>.icon{display:none}.research-document-header h1{font-size:23px}.research-detail-layout{gap:24px}.report-inspector{padding:18px;gap:20px}.research-document-header>.text-link{margin-bottom:16px}.research-report{font-size:13px}.research-note-editor textarea{font-size:16px}.research-collection-heading input{font-size:16px}.chat-page .chat-welcome-minimal{padding:24px 0}.chat-page .chat-welcome-minimal h2{font-size:25px;margin-bottom:22px}.chat-quick-actions{gap:7px}.chat-quick-actions>button,.chat-quick-actions>a{font-size:11px;padding:9px 10px}.chat-composer-meta>.model-picker-trigger{max-width:160px}.portfolio-page .portfolio-money-grid{gap:12px;padding-top:12px}.portfolio-page .holdings-section,.portfolio-page .records-live{padding:18px;margin-top:20px}.portfolio-page .portfolio-money-grid>div{padding:18px}.modal.live-modal:has(>form):not(.allocation-modal){padding:22px!important;max-width:calc(100vw - 24px)!important}.live-modal .form-pair{gap:12px}.live-modal>form:not(.cash-editor) :is(input:not([type=hidden]),select,textarea){font-size:16px}.model-choice-list{max-height:48dvh}}
@media(prefers-reduced-motion:no-preference){.research-library-nav button,.research-file-row,.model-picker-trigger,.model-choice-list>button,.chat-quick-actions>*{transition:background-color .14s,color .14s}.research-agent-tabs button,.cash-switch button{transition:background-color .14s,color .14s}.research-document,.research-composer{animation:workspace-appear .16s ease-out}@keyframes workspace-appear{from{opacity:.65;transform:translateY(3px)}to{opacity:1;transform:none}}}
@media(prefers-reduced-motion:reduce){.research-progress-line:after{animation:none;width:100%;opacity:.5}}

.research-composer-bottom>.primary{width:auto;flex:none;margin-top:0;margin-bottom:0}.research-workspace-heading>div>.text-link{display:flex;align-items:center;gap:8px;white-space:nowrap;width:auto}.research-workspace-heading>div>.text-link>.icon{width:15px;height:15px;flex:none}
.activity-continuous{border-top:1px solid var(--line-soft)}.activity-continuous .activity-entry{border-radius:0;border-bottom:1px solid var(--line-soft)}.activity-continuous .activity-entry+.activity-entry{border-top:0}.activity-continuous .activity-entry>summary{padding:22px 10px}.activity-continuous .activity-preview{max-width:650px}.activity-continuous .activity-end time{font-size:11px}.live-modal>form select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23939ba7' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 12px center!important;padding-right:36px!important}.paper-trade-editor [hidden]{display:none!important}.paper-quote{display:grid;grid-template-columns:1fr auto;gap:8px 15px;padding:16px;background:var(--field);border:1px solid var(--line);border-radius:9px;margin-top:3px;font-size:12px}.paper-quote>span{color:var(--sub)}.paper-quote strong{font-size:22px;font-weight:450;letter-spacing:-.5px;grid-row:span 2;align-self:center}.paper-quote small{font-size:10px;color:var(--muted);line-height:1.6}.paper-price-note{font-size:10px;color:var(--muted);line-height:1.65;margin-top:13px}.paper-trade-editor .cash-form-footer>.primary{margin:0;width:auto;display:flex;gap:12px;align-items:center}.paper-trade-editor .cash-form-footer .icon{width:16px;height:16px}.paper-trade-editor .cash-current{margin-top:0}.paper-trade-editor .form-error{margin:15px 0 0;font-size:12px}.paper-trade-editor .cash-form-footer{margin-top:24px}.live-chat-form .model-picker-trigger>.icon{width:12px!important;height:12px!important;padding:0!important}.model-picker-trigger{flex-shrink:1}
@media(max-width:760px){.activity-continuous .activity-entry>summary{padding:18px 0;gap:8px}.activity-continuous .activity-end time{max-width:75px;white-space:normal;text-align:right;line-height:1.6;font-size:10px}.activity-continuous .activity-detail{padding-left:28px}.paper-quote{padding:14px}.paper-quote strong{font-size:20px}}
.research-note-editor .note-document-tools{display:flex;align-items:center;justify-content:space-between;gap:16px}.note-document-tools>span{font-size:10px;color:var(--muted)}.note-document-tools>div{display:flex;gap:3px;padding:3px;border:1px solid var(--line-soft);border-radius:6px}.note-document-tools button{font-size:11px;color:var(--muted);padding:5px 10px;border-radius:4px}.note-document-tools button[aria-pressed=true]{background:var(--selected);color:var(--ink)}.research-note-editor>input{font-size:22px;letter-spacing:-.4px;padding:10px 0 16px;border-bottom:1px solid var(--line-soft)}.research-note-editor>textarea{border:0;border-radius:0;background:transparent;padding:0 2px;min-height:300px;line-height:1.9;resize:vertical;outline-offset:6px}.research-note-editor>.note-rendered{min-height:300px;font-size:13px;line-height:1.9;overflow-wrap:anywhere}.note-rendered>p:first-child{margin-top:0}.note-document-footer{padding-top:18px;border-top:1px solid var(--line-soft)}.note-document-footer .primary{width:auto;margin:0}

@media(min-width:1001px){.report-inspector{height:var(--research-height,calc(100dvh - var(--research-top,153px) - 24px));min-height:0}}
.portfolio-book{margin-top:24px;border:1px solid var(--line);border-radius:12px;background:var(--bg);overflow:hidden}.portfolio-book-tabs{display:flex;align-items:center;gap:6px;padding:14px 18px;border-bottom:1px solid var(--line-soft);background:var(--paper)}.portfolio-book-tabs>button{font-size:12px;color:var(--muted);padding:9px 13px;border-radius:7px;display:flex;gap:9px;align-items:center;min-height:34px}.portfolio-book-tabs>button[aria-pressed=true]{background:var(--selected);color:var(--ink)}.portfolio-book-tabs>button>span{font-size:10px;color:var(--muted)}.portfolio-book-tabs>.icon-button{margin-left:auto;color:var(--muted);width:30px;height:30px;display:grid;place-items:center}.portfolio-book-tabs .icon{width:16px;height:16px}.portfolio-book [hidden]{display:none!important}.portfolio-page .portfolio-book .holdings-section,.portfolio-page .portfolio-book .broker-orders{margin:0;border:0;border-radius:0;padding:20px 24px;background:transparent}.portfolio-book .holdings-section>.section-title{display:none}.portfolio-page .portfolio-book .empty-state{min-height:230px}.portfolio-ledger{padding:0 24px;max-height:460px;overflow:auto}.portfolio-transaction{display:flex;gap:12px;align-items:center;padding:20px 0;border-bottom:1px solid var(--line-soft);font-size:12px}.portfolio-transaction:last-child{border:0}.transaction-mark{width:30px;height:30px;display:grid;place-items:center;background:var(--paper);border-radius:7px;color:var(--muted);flex:none}.transaction-mark .icon{width:15px;height:15px}.transaction-main{flex:1;min-width:0}.transaction-main>strong{font-weight:500}.transaction-main>small{display:block;font-size:11px;color:var(--muted);margin-top:5px}.portfolio-transaction>time{font-size:11px;color:var(--muted);margin-right:16px}.transaction-amount{min-width:90px;text-align:right;font-weight:500;font-variant-numeric:tabular-nums}.activity-continuous{background:var(--paper);border:1px solid var(--line-soft);border-radius:13px;padding:5px}.activity-continuous .activity-entry{border:0;border-radius:9px}.activity-continuous .activity-entry+.activity-entry{border-top:1px solid var(--line-soft)}.activity-continuous .activity-entry>summary{padding:18px 15px}.activity-continuous .activity-title strong{font-size:14px}.activity-continuous .activity-preview{font-size:12px;line-height:1.7;color:var(--sub)}.activity-filters{padding:4px;background:var(--paper);border-radius:9px;gap:3px}.activity-filters button[aria-pressed=true]{background:var(--selected)}.chat-title-identity{display:flex;align-items:center;gap:14px;flex:1;min-width:0}.chat-titlebar .chat-title-identity h1{flex:0 1 auto;max-width:380px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-titlebar .model-picker-trigger{font-size:12px;padding:6px 9px;max-width:220px}.chat-titlebar .model-picker-trigger .icon{width:12px!important;height:12px!important;transform:none!important}.live-chat-form .composer-controls{justify-content:flex-start;gap:12px}.live-chat-form .composer-controls>.primary{margin-left:auto!important}.conversation-stage.is-empty{justify-content:center;padding-bottom:min(13dvh,100px);gap:0}.conversation-stage.is-empty .live-messages{order:2;flex:0 0 auto;min-height:0;overflow:visible;padding:0 22px;margin:0 auto;width:100%;max-width:780px}.conversation-stage.is-empty .live-chat-form{order:1;flex:none;margin:0 auto;width:calc(100% - 44px);max-width:780px;border-radius:14px!important;padding:20px}.conversation-stage.is-empty .live-chat-form textarea{min-height:85px;font-size:16px}.conversation-stage.is-empty .chat-welcome-minimal{padding:18px 0;margin:0;max-width:none}.conversation-stage.is-empty .chat-welcome-minimal h2{display:none}.conversation-stage.is-empty .chat-quick-actions{justify-content:center}.conversation-stage.is-empty .chat-quick-actions>*{border-color:var(--line-soft);padding:8px 12px;font-size:11px}.library-folders-heading{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:var(--muted);padding:22px 8px 8px}.research-library-nav header{padding-bottom:12px}.research-library-nav .library-settings{font-size:11px;margin-top:20px;padding-top:18px}.research-document-header{margin-bottom:18px}.research-document-header>.text-link{margin-bottom:18px}.research-document-header h1{font-size:23px}.research-document-tabs{margin-bottom:20px}.report-inspector-top h2{font-size:12px;color:var(--sub)}.report-inspector{gap:20px}.report-forecast h3{margin-bottom:13px}.report-facts{padding-top:18px;border-top:1px solid var(--line-soft)}.report-folder-label select,.research-folder-select select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23939ba7' stroke-width='1.7'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 9px center;padding-right:28px;min-height:34px}.report-folder-label{gap:8px}#research-live-status .run-status{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 0 20px;margin:0;border:0;background:transparent}#research-live-status [data-run-content]{min-width:0;flex:1}#research-live-status .run-status-top{gap:10px;align-items:center;margin:0}#research-live-status .run-status-top strong{font-size:12px;font-weight:450}#research-live-status .run-status-top time{font-size:10px}#research-live-status .run-cancel{margin:0;font-size:10px;padding:4px;min-height:26px}.agent-preference-choice{border:0;padding:0;margin:0 0 23px;min-width:0}.agent-preference-choice>legend{font-size:12px;color:var(--sub);padding:0;margin-bottom:11px}.agent-preference-choice .research-agent-tabs{width:100%;padding:4px}.agent-preference-choice .research-agent-tabs button{flex:1;font-size:12px;min-height:35px}.research-preferences-form .cash-form-footer{margin-top:24px}.research-preferences-form .cash-form-footer .primary{margin:0;width:auto;display:flex;align-items:center;gap:10px;min-width:100px;justify-content:center}.research-preferences-form .cash-form-footer .icon{width:15px;height:15px}.research-preferences-form .cash-form-footer>span{font-size:11px}.research-result>span:empty{display:none}
@media(max-width:760px){.portfolio-book-tabs{padding:12px}.portfolio-page .portfolio-book .holdings-section{padding:17px 12px}.portfolio-ledger{padding:0 15px}.portfolio-transaction{gap:10px;flex-wrap:wrap}.portfolio-transaction>time{display:none}.transaction-amount{min-width:75px;font-size:12px}.portfolio-page .portfolio-book .empty-state{min-height:200px}.chat-title-identity{gap:5px}.chat-titlebar .chat-title-identity h1{max-width:95px}.chat-titlebar .model-picker-trigger{font-size:10px;max-width:140px;padding:6px}.conversation-stage.is-empty{padding-bottom:45px}.conversation-stage.is-empty .live-chat-form{width:calc(100% - 24px);padding:16px}.conversation-stage.is-empty .live-messages{padding:0 12px}.conversation-stage.is-empty .live-chat-form textarea{min-height:85px}.conversation-stage.is-empty .chat-quick-actions{gap:6px}.conversation-stage.is-empty .chat-quick-actions>*{font-size:10px;padding:8px 9px}.research-library-nav header,.library-folders-heading>span{display:none}.library-folders-heading{padding:0;flex:none}.research-library-nav .library-settings{margin:0;padding:9px;font-size:0}.agent-preference-choice .research-agent-tabs button{font-size:11px;padding:7px 6px}.activity-continuous .activity-entry>summary{padding:16px 9px}}
.home-manager-actions{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin-top:24px}.home-manager-actions .primary{width:auto;margin:0}.home-manager-actions>.text-link{display:flex;align-items:center;gap:8px;font-size:12px}.home-manager-actions .icon{width:15px;height:15px}.home-research>span:empty{display:none}.home-widget[data-home-widget=research]{background:var(--paper)}.home-widget[data-home-widget=research].wide .home-research{display:grid;grid-template-columns:1fr auto;gap:8px 24px;align-items:center}.home-widget[data-home-widget=research].wide .home-manager-actions{grid-column:2;grid-row:1/3;margin:0}.home-widget[data-home-widget=research].wide .home-research>strong{font-size:26px;letter-spacing:-.6px}
@media(max-width:760px){.home-widget[data-home-widget=research].wide .home-research{display:block}.home-widget[data-home-widget=research].wide .home-manager-actions{margin-top:24px}.home-widget[data-home-widget=research].wide .home-research>strong{font-size:22px}}
