/* A public project directory first; the drafting surface opens after selection. */
.public-shell{display:block}.public-shell>.sidebar{display:none}.site-header{background:var(--forest);color:#f7f7ed}.site-header-inner{max-width:1280px;margin:auto;padding:20px 40px;display:flex;align-items:center;justify-content:space-between;gap:24px}.site-header nav{display:flex;align-items:center;gap:28px;font-size:14px}.site-header nav>a{color:#ecf0e7;text-decoration:none}.site-header nav>a:hover{text-decoration:underline}.site-header .brand-word{font-size:19px}.help-button{display:inline-flex;align-items:center;gap:14px;background:transparent;color:inherit;border:1px solid #ffffff45;border-radius:6px;padding:10px 14px;font-size:14px}.help-button:hover{background:#ffffff0e}.public-page .main-footer{max-width:1200px;margin:0 auto;padding:24px 0;font-size:13px;align-items:center}.public-page .main-footer .text-button{font-size:14px}.public-page .home-view{max-width:1200px;padding:42px 0 48px;margin:auto}.landing-heading{max-width:830px;margin-bottom:34px}.landing-heading .eyebrow,.objection-heading .eyebrow{font-size:12px;letter-spacing:1.6px}.landing-heading h1,.objection-heading h1{font:700 clamp(36px,4.6vw,60px)/1.13 var(--serif);letter-spacing:0;margin:14px 0 18px}.landing-heading h1 em,.objection-heading h1 em{color:#65794e}.landing-heading>p,.objection-heading>p{font-size:17px;line-height:1.7;color:#5f6f60;max-width:730px;margin:0}.project-link-entry{margin-top:17px;font-size:14px;color:#4e6841}.project-link-entry summary{cursor:pointer;width:fit-content;text-decoration:underline;text-underline-offset:4px}.project-link-entry form{display:flex;gap:10px;margin-top:16px;max-width:760px}.project-link-entry input{flex:1;padding:12px;border:1px solid var(--line);border-radius:6px;background:white;min-width:0;font-size:16px}.home-directory-heading{display:flex;gap:20px;align-items:baseline;justify-content:space-between;margin-bottom:15px}.home-directory-heading h2{font-size:20px;font-weight:550;margin:0}.home-directory-heading>span{color:#70816a;font-size:13px}.home-directory .directory-filters{margin:0}.home-directory .directory-quick-filters{margin-top:16px}.public-page .directory-view{max-width:1200px;margin:auto;padding:42px 0 48px}.public-page .directory-intro-note{display:none}.public-page .project-view{max-width:1200px;margin:auto;padding:28px 0 45px}.public-page .directory-heading h1{font-size:48px}.public-page .directory-search label,.public-page .directory-status label,.public-page .directory-status select,.public-page .directory-search input{font-size:14px}.public-page .directory-search input{font-size:16px}.public-page .directory-results.card-view{grid-template-columns:repeat(3,minmax(0,1fr))}.public-page .card-description{font-size:16px;line-height:1.65;min-height:79px}.public-page .deadline-badge{font-size:14px}.public-page .card-development-type{font-size:12px}.public-page .directory-card-footer>a{font-size:14px}.public-page .directory-card-footer{flex-wrap:wrap}.public-page .map-attribution{font-size:12px}.public-page .directory-view-switch button{font-size:14px}.public-page .directory-quick-filters button{font-size:14px}.objection-start{max-width:790px;margin:0 auto}.objection-heading{margin:22px 0}.objection-heading h1{font-size:clamp(35px,4vw,49px)}.objection-start .selected-project{margin:0 0 20px;padding:17px 20px;background:#eaf0e2}.objection-start .selected-project strong{font-size:16px}.objection-start .selected-project small{font-size:13px}.objection-start .entry-panel{padding:25px}.objection-start .field-label{font-size:16px}.objection-start #entryInput{font-size:18px;min-height:160px;padding-top:14px}.objection-start .entry-footer{padding:0 25px 22px;gap:16px}.objection-start .entry-footer>.button{margin-left:auto}.objection-start .attach-button{font-size:14px}.entry-stage-note{padding:16px 20px;background:#fff2db;border:1px solid #ead7b2;border-radius:6px;color:#795f32;font-size:15px}.draft-expectation{font-size:14px;color:#728167;line-height:1.7}.saved-draft-menu{position:relative}.saved-draft-menu summary{cursor:pointer;list-style:none}.saved-draft-list{position:absolute;right:0;top:38px;width:300px;max-height:400px;overflow:auto;background:var(--forest);padding:10px;z-index:20;border:1px solid #ffffff35;border-radius:8px;box-shadow:0 10px 35px #001b2630}.saved-draft-list button{width:100%;text-align:left}.workspace-active .public-shell{display:grid;grid-template-columns:246px minmax(0,1fr)}.workspace-active .public-shell>.sidebar{display:flex}.workspace-active .site-header-inner{padding:18px 30px}.workspace-active .site-header .brand-icon{width:30px;height:30px}.workspace-active .site-header .brand-word{font-size:16px}.workspace-active .workspace-view{max-width:1350px;margin:auto}.workspace-active .public-shell>.sidebar .brand-word{font-size:16px}.workspace-active .site-header .saved-draft-menu{display:none}.public-page .mobile-menu{display:none}.public-page .next-step-card>p,.public-page .document-scope,.public-page .section-intro,.public-page .stage-panel .project-panel-body>p{font-size:16px}.public-page .next-step-card>.button{font-size:16px}.public-page .what-happens strong{font-size:14px}.public-page .what-happens li p{font-size:14px}.public-page .project-panel-heading .source-label{font-size:12px}.public-page .project-next-step .next-step-hint{font-size:14px}.public-page .project-next-step .help-button{color:var(--forest);border-color:#bac9ad;margin-top:14px}.help-dialog{border:1px solid #cfdbc5;border-radius:14px;padding:32px;max-width:440px;width:calc(100% - 36px);color:var(--ink);background:#fff;box-shadow:0 25px 90px #09281735}.help-dialog::backdrop{background:#0a211bb8}.help-dialog h2{font:600 32px/1.2 var(--serif);margin:6px 34px 14px 0}.help-dialog p{font-size:16px;color:#687960;line-height:1.65}.help-dialog .dialog-close{position:absolute;top:14px;right:16px;padding:5px 10px;font-size:24px;background:transparent}.help-dialog .help-call{display:block;padding:14px 18px;text-align:center;text-decoration:none;font-size:20px;background:var(--forest);color:white;border-radius:7px;margin-top:22px}.help-dialog .helper{font-size:13px}.help-dialog .button{margin-top:10px}
@media(max-width:1280px){.public-page .home-view,.public-page .directory-view,.public-page .project-view{margin-inline:32px}.public-page .main-footer{margin-inline:32px}.public-page .directory-results.card-view{grid-template-columns:repeat(2,minmax(0,1fr))}.public-page .directory-card-footer{flex-direction:row}.site-header-inner{padding:18px 32px}}
@media(max-width:900px){.workspace-active .public-shell{display:block}.workspace-active .public-shell>.sidebar{display:flex}.workspace-active .mobile-menu{display:block}.workspace-active .site-header .brand{margin-right:auto}.site-header nav{gap:18px}.workspace-active .site-header-inner{gap:14px}.workspace-active .site-header nav>a{display:none}.public-page .project-next-step{position:static}.public-page .home-view{padding-top:32px}}
@media(max-width:700px){.site-header-inner{padding:16px 20px;gap:12px;flex-wrap:wrap}.site-header .brand-word{font-size:17px}.site-header .brand-icon{width:34px;height:34px}.site-header nav{gap:14px;flex-wrap:wrap;font-size:14px}.site-header .help-button{padding:8px 10px}.site-header .help-button span{display:none}.public-page .home-view,.public-page .directory-view,.public-page .project-view{margin-inline:20px;padding-top:28px}.public-page .main-footer{margin-inline:20px;gap:16px;flex-wrap:wrap}.landing-heading h1{font-size:clamp(34px,7.5vw,46px)}.landing-heading>p,.objection-heading>p{font-size:16px}.landing-heading{margin-bottom:28px}.home-directory-heading{display:block}.home-directory-heading h2{font-size:19px;margin-bottom:7px}.home-directory-heading>span{font-size:12px}.public-page .directory-results.card-view{grid-template-columns:1fr}.public-page .directory-heading h1{font-size:36px}.project-link-entry form{flex-direction:column}.project-link-entry .button{justify-content:center}.public-page .home-directory .directory-filters{gap:16px}.objection-start .entry-panel{padding:20px}.objection-start .entry-footer{padding-inline:20px;flex-wrap:wrap}.objection-start .entry-footer>.button{width:100%;justify-content:center}.objection-start .selected-project{padding:16px}.public-page .card-description{min-height:0}.saved-draft-list{right:auto;left:0;width:min(300px,calc(100vw - 40px))}.public-page .project-layout{display:flex;flex-direction:column}.public-page .project-next-step{order:-1}.public-page .what-happens{display:none}.help-dialog{padding:28px 24px}}
@media print{.site-header,.help-dialog{display:none!important}.workspace-active .public-shell{display:block}}

/* Keep account access reachable as the public navigation grows. */
@media(max-height:800px){
 .public-shell>.sidebar{padding-block:22px 16px;overflow-y:auto}
 .public-shell>.sidebar .new-matter{margin:22px 0 16px}
 .public-shell>.sidebar .nav-link{padding-block:6px}
 .public-shell>.sidebar .sidebar-section{margin:22px 12px 8px}
 .public-shell>.sidebar .sidebar-bottom{padding-top:14px}
}

/* Keep the original sidebar; omit the empty desktop context bar. */
.public-shell{display:grid;grid-template-columns:246px minmax(0,1fr)}.public-shell>.sidebar{display:flex}.public-shell>.sidebar .brand-word{font-size:16px}.public-shell>.sidebar .help-button{width:100%;justify-content:center;padding:11px 8px}.public-shell>.sidebar .sidebar-footnote{display:block;margin-top:14px}.public-page .directory-results.card-view{grid-template-columns:repeat(2,minmax(0,1fr))}.mobile-public-header{display:none}.public-page .landing-heading h1{font-size:clamp(36px,4.5vw,60px)}.public-shell>.sidebar .new-matter{font-size:14px}.public-shell>.sidebar .nav-link{font-size:14px}.public-shell>.sidebar .matter-item strong{font-size:14px}.public-shell>.sidebar .matter-item small{font-size:12px}.public-shell>.sidebar .sidebar-section{font-size:12px}.public-shell>.sidebar .matter-list>p{font-size:13px}.public-shell>.sidebar .directory-sidebar-note>span:last-child{font-size:14px}
@media(min-width:1550px){.public-page .directory-results.card-view{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:901px) and (max-width:1150px){.public-shell,.workspace-active .public-shell{grid-template-columns:220px minmax(0,1fr)}.home-directory-heading{display:block}.home-directory-heading>span{display:block;margin-top:6px}.landing-heading h1 br{display:none}}
@media(max-width:900px){.public-shell,.workspace-active .public-shell{display:block}.public-shell>.sidebar{display:flex}.mobile-public-header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 20px;border-bottom:1px solid var(--line);background:#fafbf7}.mobile-public-header>span{font-size:15px;font-weight:600}.mobile-public-header .icon-button,.mobile-public-header .text-button{font-size:14px}.mobile-public-header .icon-button span{margin-left:5px}.public-page .landing-heading h1{font-size:clamp(36px,6.6vw,54px)}}
@media(max-width:700px){.public-page .directory-results.card-view{grid-template-columns:1fr}.public-page .landing-heading h1{font-size:clamp(34px,7.5vw,46px)}.home-directory-heading>span{display:block}.public-page .project-next-step{order:-1}}
@media print{.mobile-public-header,.public-shell>.sidebar{display:none!important}.public-shell{display:block}}

/* Let the introduction breathe above the project directory on wide screens. */
@media screen and (min-width:1200px){
  .public-page[data-page="home"] #browseLanding .landing-heading{
    min-height:75vh;
    display:flex;
    flex-direction:column;
    justify-content:center;
    padding-block:48px;
    margin-bottom:0;
  }
}

/* The full set of entry controls belongs inside the spacious hero. */
.public-page[data-page="home"] #browseLanding .landing-heading{min-height:0;display:block;padding:0;margin:0 0 24px}.landing-intro{padding:10px 0 30px}.landing-intro .landing-heading h1{font-size:clamp(36px,4vw,54px);margin:12px 0 15px}.landing-intro .landing-heading>p{font-size:16px;line-height:1.65}.landing-intro .project-link-entry{font-size:13px;margin-top:12px}.open-query-form{max-width:900px;background:white;border:1px solid #b9c8b2;border-radius:14px;padding:19px 22px;box-shadow:0 5px 24px #12362008}.open-query-form>label{display:block;font-size:14px;font-weight:500;color:#4f6647}.open-query-form textarea{display:block;resize:vertical;min-height:74px;max-height:250px;width:100%;border:0;background:transparent;font-size:19px;line-height:1.6;padding:12px 0;outline-offset:2px}.open-query-footer{display:flex;align-items:center;justify-content:space-between;gap:14px}.open-query-footer>span{font-size:13px;color:#7b8772}.open-query-footer .button{padding:9px 17px;font-size:14px}.hero-project-search{margin-top:22px}.hero-search-label{font-size:12px;letter-spacing:1.2px;color:#7b896e;margin-bottom:13px}.hero-project-search .directory-filters{margin:0}.hero-project-search .directory-quick-filters{margin:12px 0 0}.hero-project-search .directory-quick-filters button span{display:none}.home-directory-heading{margin-top:5px}.workspace-active .workspace-view{padding:30px 36px 32px;max-width:990px;min-height:100vh}.workspace-view .matter-heading{margin-bottom:24px;border-bottom:1px solid var(--line);padding-bottom:18px}.workspace-view .matter-heading h1{font-family:var(--font);font-size:23px;font-weight:550;line-height:1.4;letter-spacing:-.4px;margin:7px 0}.workspace-view .matter-heading p{font-size:13px}.workspace-view .matter-heading .eyebrow{font-size:11px}.workspace-view .work-grid{display:block}.workspace-view .research-column{margin:0 0 22px;border:1px solid #dce4d4;border-radius:10px;background:#f9fbf6;overflow:hidden}.research-summary{display:flex;align-items:center;gap:12px;padding:14px 17px;cursor:pointer;list-style:none}.research-summary::-webkit-details-marker{display:none}.research-summary>span:nth-child(2){flex:1;min-width:0}.research-summary strong{font-size:14px;font-weight:550;display:block}.research-summary #researchProgress{display:block;color:#75816b;font-size:13px;line-height:1.5;margin-top:2px}.research-summary .live-label{font-size:12px}.workspace-view .research-panel{border:0;background:transparent;padding:0 18px 16px}.workspace-view .research-text{font-size:14px;max-height:none}.workspace-view .source-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.workspace-view .source-card{background:white;margin:0;padding:14px}.workspace-view .source-card h3{font-size:14px}.workspace-view .source-card p,.workspace-view .source-meta{font-size:12px}.workspace-view .scope-note{font-size:12px;padding:0 14px 10px}.workspace-view .coverage-note{margin:0 16px 12px}.workspace-view .activity-item{font-size:13px}.workspace-view .activity-feed{margin-bottom:15px}.workspace-view .answer-toolbar{padding:0;margin-bottom:9px;min-height:0}.workspace-view .answer-toolbar .answer-tab{font-size:13px}.workspace-view .paper{padding:6px 0 24px;border:0;background:transparent;box-shadow:none}.assistant-identity{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:550;margin-bottom:16px}.assistant-identity img{border-radius:5px}.workspace-view .paper-kicker,.workspace-view .paper-end{display:none}.workspace-view .answer-body{font-size:16px;line-height:1.85}.workspace-view .answer-body h2,.workspace-view .answer-body h3{font-family:var(--font);font-size:18px;font-weight:600}.workspace-view .prose .ref{font-size:12px}.workspace-view.is-draft .paper{padding:26px;background:white;border:1px solid var(--line);border-radius:10px}.workspace-view.is-draft .paper-kicker{display:flex;font-size:12px}.workspace-view.is-draft .paper-end{display:block;font-size:12px}.workspace-view.is-draft .assistant-identity{display:none}.conversation-history{display:grid;gap:24px}.conversation-exchange{display:grid;gap:20px}.chat-user-message{margin:0 0 24px auto;padding:14px 19px;background:#e6edde;border:1px solid #d9e2ce;border-radius:17px 17px 4px 17px;max-width:88%;width:fit-content;white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:1.65}.conversation-exchange .chat-user-message{margin-bottom:0}.historical-answer{padding-bottom:18px;border-bottom:1px solid #e1e6db}.historical-answer .prose{font-size:16px;line-height:1.8}.historical-answer .prose h2,.historical-answer .prose h3{font:600 18px/1.5 var(--font)}.historical-answer .text-button{font-size:13px}.historical-draft{padding:18px;border:1px solid var(--line);border-radius:9px;background:white}.historical-draft strong{display:block;font-size:15px}.historical-draft p{font-size:14px;margin:7px 0 12px;color:#78866b}.revision-details{font-size:13px;margin:10px 0 18px;color:#7a886e}.revision-details summary{cursor:pointer}.workspace-view .followup-box{position:sticky;bottom:16px;z-index:5;padding:14px 18px;background:#fff;box-shadow:0 5px 32px #16361215;border:1px solid #b9c8ac;border-radius:14px;margin-top:24px}.chat-context{display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid #ecf0e5;padding-bottom:9px}.chat-context>span{font-size:12px;color:#758367;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.chat-context>.text-button{font-size:13px;flex:none}.workspace-view .followup-box textarea{min-height:85px;max-height:220px;font-size:16px;padding:14px 0;line-height:1.6}.workspace-view .followup-actions .button{font-size:14px;padding:10px 14px}.workspace-view .review-panel .helper,.workspace-view .review-item,.workspace-view .confirm-line{font-size:13px}.workspace-view .review-panel>div>h2{font-size:16px}.project-picker{max-width:640px;width:calc(100% - 36px);max-height:85vh;border:1px solid #c8d6bd;border-radius:14px;background:#fafcf6;color:var(--ink);padding:30px;box-shadow:0 25px 80px #09281730}.project-picker::backdrop{background:#0a211bb8}.project-picker h2{font:600 34px/1.3 var(--serif);margin:12px 0}.project-picker>p{font-size:16px;line-height:1.6;color:#728266}.project-picker label{font-size:14px;display:block;margin:20px 0 8px}.project-picker .dialog-close{position:absolute;right:15px;top:12px;padding:5px 10px;background:transparent;font-size:24px}.project-picker .search-input input{font-size:16px;padding:12px;min-width:0}.chat-project-results{margin-top:18px}.chat-project-results>p{font-size:14px;color:#748268}.chat-project-result{width:100%;display:flex;align-items:center;justify-content:space-between;gap:14px;text-align:left;border:1px solid #d6e0ce;border-radius:7px;background:white;padding:15px;margin-top:10px}.chat-project-result:hover{border-color:#8ea778}.chat-project-result strong{font-size:15px;font-weight:550;display:block}.chat-project-result small{font-size:13px;color:#7c8b70;display:block;margin-top:5px}.chat-project-result>span:last-child{font-size:18px;color:#6b8156}
@media screen and (min-width:1200px){.public-page[data-page="home"] #browseLanding .landing-intro{min-height:75vh;display:flex;flex-direction:column;justify-content:center;padding-block:30px;gap:0}}
@media(max-width:900px){.workspace-active .workspace-view{padding:25px 24px}.workspace-view .followup-box{bottom:10px}.landing-intro .landing-heading h1{font-size:clamp(36px,6vw,50px)}}
@media(max-width:700px){.landing-intro{padding-top:0}.landing-intro .landing-heading h1{font-size:clamp(34px,7.5vw,46px)}.open-query-form{padding:16px}.open-query-form textarea{font-size:17px}.open-query-footer>span{max-width:150px;font-size:12px}.workspace-active .workspace-view{padding:20px 17px}.workspace-view .matter-heading h1{font-size:20px}.workspace-view .matter-heading{gap:14px}.workspace-view .matter-heading>.text-button{font-size:12px;flex:none}.workspace-view .source-list{grid-template-columns:1fr}.chat-user-message{max-width:95%;padding:13px 16px}.workspace-view .followup-box{padding:12px 14px;bottom:8px}.workspace-view .followup-actions .button{font-size:13px}.project-picker{padding:25px 20px}.project-picker .search-input{flex-wrap:wrap}.project-picker .search-input input{width:100%}.project-picker .search-input button{width:100%;justify-content:center}.workspace-view.is-draft .paper{padding:22px 19px}.research-summary{gap:8px;padding:12px}.research-summary .live-label{display:none}}
@media print{.followup-box,.conversation-history,.chat-user-message,.research-column,.revision-details,.assistant-identity{display:none!important}}
/* Share the washed development scene across the landing and conversation views. */
/* The optimized WebPs already include a 78% canvas wash. */
.public-page[data-page="home"] .public-shell>main{
  position:relative;
  isolation:isolate;
}
.public-page[data-page="home"] #browseLanding::before,
.public-page.workspace-active #workspaceView::before{
  content:"";
  position:absolute;
  z-index:-1;
  inset:0 0 auto;
  height:clamp(760px,100vh,1120px);
  pointer-events:none;
  opacity:.85;
  background-image:
    linear-gradient(180deg,transparent 72%,var(--canvas) 100%),
    url('/images/homepage-development.webp');
  background-size:cover;
  background-position:center top;
  background-repeat:no-repeat;
}
@media(max-width:700px){
  .public-page[data-page="home"] #browseLanding::before,
.public-page.workspace-active #workspaceView::before{
    height:880px;
    opacity:.75;
    background-image:
      linear-gradient(180deg,transparent 68%,var(--canvas) 100%),
      url('/images/homepage-development-mobile.webp');
    background-position:62% top;
  }
}
@media print{
  .public-page[data-page="home"] #browseLanding::before,
.public-page.workspace-active #workspaceView::before{display:none}
}
/* One entry for project search, official links and open questions. */
.hero-project-search{margin-top:0;max-width:1040px}.hero-project-search .directory-filters{padding:20px;background:#fff;border:1px solid #b9c8b2;border-radius:13px;box-shadow:0 5px 24px #12362008}.hero-project-search .directory-search label{font-size:15px;font-weight:500}.hero-project-search .search-input input{font-size:16px;padding:15px 16px;min-width:0}.hero-project-search .search-input .button{min-width:140px;justify-content:center;font-size:14px}.query-hint{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:35px;padding:8px 2px 0;font-size:13px;color:#758268}.query-hint .text-button{font-size:13px;flex:none}.directory-empty>.button+.button{margin-left:10px}.workspace-view .matter-heading .eyebrow{font-size:12px}
@media(max-width:700px){.hero-project-search .directory-filters{padding:16px}.hero-project-search .search-input{flex-wrap:wrap}.hero-project-search .search-input input{width:100%}.hero-project-search .search-input .button{width:100%}.query-hint{flex-wrap:wrap;gap:8px}.directory-empty>.button+.button{margin:10px 0 0}}
/* Conversation first: one composer, project choices in the thread, a persistent draft. */
.home-composer{max-width:940px;background:#fff;border:1px solid #b9c8b2;border-radius:16px;padding:22px 24px;box-shadow:0 8px 30px #16362009}.home-composer>label{display:block;font-size:16px;font-weight:550;color:#36513b}.home-composer textarea{display:block;width:100%;min-height:96px;resize:vertical;max-height:280px;border:0;padding:16px 0;font:400 19px/1.65 var(--font);background:transparent;outline-offset:4px}.home-composer>div{display:flex;align-items:center;justify-content:space-between;gap:20px}.home-composer>div>span{font-size:13px;line-height:1.5;color:#708168}.home-composer .button{font-size:15px;flex:none}.home-directory>.directory-filters{margin:22px 0}.workspace-active .workspace-view{max-width:1560px;padding:26px 34px 40px}.conversation-layout{max-width:800px;margin:auto}.conversation-layout.has-draft{max-width:none;display:grid;grid-template-columns:minmax(0,1fr) minmax(420px,.95fr);gap:34px;align-items:start}.chat-column{min-width:0;min-height:calc(100vh - 205px);display:flex;flex-direction:column}.empty-chat{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:35px 0 50px;min-height:270px}.empty-chat>img{border-radius:10px;margin-bottom:22px}.empty-chat h2{font:600 32px/1.3 var(--serif);margin:0 0 12px}.empty-chat>p{font-size:17px;line-height:1.7;color:#687d5e;max-width:540px;margin:0 0 25px}.chat-suggestions{display:flex;gap:10px;flex-wrap:wrap}.chat-suggestions button{font-size:14px;padding:12px 15px;border:1px solid #cfdcc4;background:#ffffffb5;border-radius:9px;color:#365a37;text-align:left}.chat-suggestions button:hover{background:#edf3e6}.workspace-view .matter-heading{max-width:none;align-items:center}.workspace-view .matter-heading h1{font-size:24px}.workspace-view .matter-heading>.button{font-size:14px;flex:none}.project-banner{display:flex;justify-content:space-between;gap:22px;align-items:center;margin-bottom:26px;background:#edf2e7;border:1px solid #d3dfc7;border-radius:10px;padding:17px 20px}.project-banner strong{display:block;margin-top:6px;font-size:16px}.project-banner p{font-size:14px;margin:7px 0 0;color:#687e5b}.project-banner a{font-size:14px;flex:none}.project-banner .eyebrow{font-size:12px}.workspace-view .followup-box{margin-top:auto;padding:15px 18px;bottom:14px}.workspace-view #activeExchange{padding-bottom:28px}.workspace-view .conversation-history{padding-bottom:18px}.workspace-view .followup-actions{gap:10px;display:flex;align-items:center}.workspace-view .followup-actions .attach-button{margin-right:auto;font-size:14px}.composer-note{font-size:12px;color:#8a977e;margin:11px 0 0}.composer-credits{font-size:12px;color:#5f7254;margin:9px 0 0}.selection-message{background:#e6ecdf;border-radius:9px;font-size:14px}.candidate-list{display:grid;gap:13px;margin-top:18px}.candidate-caption{font-size:14px;line-height:1.65;color:#6e8062;margin:0}.chat-project-card{display:grid;grid-template-columns:130px minmax(0,1fr);overflow:hidden;background:#fff;border:1px solid #d0dcc5;border-radius:11px}.chat-project-map{position:relative;min-height:150px;background:#eaf0e3;display:flex;align-items:center;justify-content:center;color:#859275;font-size:13px}.chat-project-map iframe{position:absolute;inset:0;width:100%;height:100%;border:0;pointer-events:none}.chat-project-map .map-attribution{position:absolute;bottom:0;left:0;right:0;background:#ffffffdd;font-size:12px;text-align:center;padding:2px}.chat-project-card>div:last-child{padding:16px}.chat-project-card small{display:block;font-size:12px;color:#7d8a70;line-height:1.5}.chat-project-card h3{font-size:16px;line-height:1.5;margin:7px 0 13px;font-weight:550}.candidate-actions{display:flex;align-items:center;gap:15px}.candidate-actions .button{font-size:13px;padding:9px 12px}.candidate-actions>a{font-size:13px}.historical-sources{font-size:13px;color:#74836a;margin-top:14px}.historical-sources summary{cursor:pointer}.draft-panel{position:sticky;top:22px;max-height:calc(100vh - 44px);overflow:auto;background:white;border:1px solid #cfdbc3;border-radius:14px;box-shadow:0 7px 35px #1b3d1710;padding:24px}.draft-panel-heading{display:flex;justify-content:space-between;gap:15px}.draft-panel-heading .eyebrow{font-size:12px}.draft-panel-heading h2{font:600 27px/1.3 var(--serif);margin:8px 0 15px}.draft-panel-heading>.text-button{font-size:24px;align-self:flex-start}.draft-version-row{display:flex;align-items:center;gap:9px;padding-bottom:12px;border-bottom:1px solid #e1e8d9;font-size:14px;flex-wrap:wrap}.draft-version-row select{min-width:0;max-width:200px;padding:6px;font-size:14px;border:1px solid #d4dec9;border-radius:6px;background:white}.draft-version-row .text-button{margin-left:auto;font-size:14px}.draft-body{font-size:16px;line-height:1.85;padding:12px 0 22px}.draft-body h3{font-family:var(--font);font-size:17px;font-weight:600}.draft-evidence{border-block:1px solid #e3e9dc;padding:14px 0;font-size:14px;color:#657a58}.draft-evidence summary{cursor:pointer}.workspace-view .draft-evidence .source-list{display:block;margin-top:15px}.draft-evidence .source-card{margin:10px 0}.draft-panel .review-panel{margin-top:20px;padding:0;border:0;background:transparent}.draft-panel .review-panel h3{font-size:17px}.draft-panel .review-item,.draft-panel .confirm-line{font-size:14px}.draft-panel .export-row{display:flex;gap:10px;flex-wrap:wrap}.draft-panel .export-row .button{font-size:14px}.draft-panel .helper{font-size:13px;line-height:1.7}.draft-panel #lodgementButton{font-size:14px;margin-top:18px}.draft-panel .answer-editor{font-size:16px;min-height:420px}.draft-panel .lodgement-details{font-size:14px;line-height:1.7}.historical-draft{display:flex;flex-direction:column;align-items:flex-start;gap:8px}.historical-draft p{margin:0}.workspace-view .research-column[hidden]{display:none}.workspace-view .prose p{overflow-wrap:anywhere}
@media(max-width:1279px){.conversation-layout.has-draft{display:block;max-width:800px}.draft-panel{position:static;max-height:none;margin-top:28px}.chat-column{min-height:calc(100vh - 200px)}}
@media(max-width:700px){.home-composer{padding:18px}.home-composer textarea{font-size:17px}.home-composer>div{align-items:flex-end;gap:12px}.home-composer>div>span{max-width:190px;font-size:12px}.workspace-active .workspace-view{padding:22px 18px}.workspace-view .matter-heading h1{font-size:21px}.empty-chat{padding:25px 0;min-height:250px}.empty-chat h2{font-size:29px}.empty-chat>p{font-size:16px}.chat-suggestions{gap:8px}.chat-suggestions button{font-size:13px}.project-banner{align-items:flex-start;flex-direction:column;gap:12px;padding:16px}.workspace-view .followup-actions{flex-wrap:wrap}.workspace-view .followup-actions .attach-button{font-size:13px}.workspace-view .followup-actions .button{font-size:13px}.workspace-view .followup-box{bottom:8px;padding:12px 14px}.chat-project-card{grid-template-columns:95px minmax(0,1fr)}.chat-project-card>div:last-child{padding:13px}.candidate-actions{gap:10px;flex-wrap:wrap}.candidate-actions .button{font-size:12px}.draft-panel{padding:20px}.draft-panel-heading h2{font-size:25px}.composer-note{display:none}.workspace-view .matter-heading>.button{font-size:13px;padding:9px 11px}}

/* Sorting stays available in both directory views and in chat project matches. */
.project-sort{display:flex;align-items:center;gap:8px;font-size:14px;color:#506647;flex-wrap:wrap}
.project-sort select{font:inherit;color:var(--ink);background:#fff;border:1px solid #bacbb0;border-radius:7px;padding:9px 30px 9px 10px;max-width:100%}
.directory-view-tools{flex-wrap:wrap}.directory-results-heading{gap:16px;flex-wrap:wrap}
.chat-column{overflow-anchor:none}
.jump-latest{position:absolute;bottom:calc(100% + 12px);left:50%;transform:translateX(-50%);border:1px solid #b9c8ac;border-radius:22px;background:#fff;padding:9px 16px;color:var(--ink);box-shadow:0 3px 15px #16361215;white-space:nowrap;font-size:14px}
@media(max-width:700px){.directory-view-tools{width:100%;gap:12px}.project-sort{font-size:13px}.directory-results-heading{align-items:flex-start}}

.candidate-deadline{font-size:13px;color:#506647;margin:0 0 12px}

/* Make the next step available without another conversational round trip. */
.chat-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:20px}
.chat-choice{border:1px solid #c4d3ba;background:#ffffffdf;border-radius:22px;padding:11px 16px;color:#36513b;font:500 14px/1.4 var(--font);text-align:left}
.chat-choice:hover{background:#edf3e6;border-color:#8fa67d}.chat-choice:disabled{opacity:.55;cursor:default}
.chat-actions>.button{font-size:14px;padding:11px 17px;border-radius:22px}
.empty-chat .draft-start{font-size:15px;padding:13px 19px;margin:0 0 10px}
.empty-chat .starter-hint{font-size:13px;line-height:1.6;margin:0 0 24px;color:#708168}
.starter-draft-note{background:#f0f5e9;border:1px solid #d3dfc7;border-radius:10px;padding:15px;margin:14px 0;font-size:14px;line-height:1.6}
.starter-draft-note p{margin:6px 0 12px}.starter-draft-note .button{font-size:13px}
.draft-chat-preview{font-size:15px;line-height:1.75;max-width:100%;color:#435940}.draft-chat-preview p{margin:10px 0}.draft-chat-preview h3{font-size:16px}
@media(max-width:700px){.chat-actions{gap:8px}.chat-choice,.chat-actions>.button{font-size:13px;padding:10px 13px}.empty-chat{padding-bottom:30px}.workspace-view .followup-actions{gap:8px}.workspace-view .followup-actions .attach-button{flex-basis:100%;text-align:left}}

/* Keep project context once, leaving the viewport for the conversation. */
.workspace-view .matter-heading{align-items:flex-start;gap:16px;margin-bottom:20px;padding-bottom:14px}
.workspace-view .matter-heading>div{flex:1;min-width:0}
.workspace-view .matter-heading h1{font-size:1.25rem;line-height:1.4;margin:0;overflow-wrap:anywhere}
.workspace-view .project-banner{display:flex;flex-direction:row;justify-content:flex-start;flex-wrap:wrap;align-items:baseline;gap:6px 16px;margin:7px 0 0;padding:0;border:0;border-radius:0;background:transparent;font-size:.875rem;line-height:1.5;color:#53664c}
.workspace-view .project-banner .project-reference{font-weight:550}
.workspace-view .project-banner a{font-size:.875rem;text-decoration:underline;text-underline-offset:3px}
.workspace-view .chat-column{min-height:calc(100dvh - 160px)}
.workspace-view .conversation-history{gap:22px;padding-bottom:22px}
.workspace-view .conversation-history:empty,.workspace-view .candidate-list:empty{display:none}
.conversation-layout.has-draft .draft-chat-preview{display:none}
.workspace-view .conversation-exchange{gap:16px}
.workspace-view .chat-user-message{padding:10px 15px;margin-bottom:18px;line-height:1.6}
.workspace-view .conversation-exchange .chat-user-message{margin-bottom:0}
.workspace-view .assistant-response{position:relative;padding-left:32px}
.workspace-view .assistant-identity{position:absolute;left:0;top:2px;margin:0;gap:0}
.workspace-view .assistant-identity img{width:22px;height:22px;border-radius:3px}
.workspace-view .historical-answer{border-bottom:0;padding-bottom:0}
.workspace-view .answer-body,.workspace-view .historical-answer .prose{font-size:1rem;line-height:1.7}
.workspace-view #activeExchange{padding-bottom:22px}
.workspace-view .research-column{margin:12px 0 0;background:transparent;border:0;border-radius:0}
.workspace-view .research-summary{padding:5px 0;gap:8px;justify-content:flex-start;width:fit-content;max-width:100%;color:#607452}
.workspace-view .research-summary strong{font-size:.875rem;font-weight:400}
.workspace-view .research-summary>span:first-child,.workspace-view .research-summary .live-label,.workspace-view .research-summary #researchProgress{display:none}
.workspace-view.is-researching .research-summary strong{display:none}
.workspace-view.is-researching .research-summary #researchProgress{display:block;margin:0;font-size:.875rem}
.workspace-view .research-panel{padding:12px 0 0}
.workspace-view .historical-sources{margin-top:12px;font-size:.875rem}
.workspace-view .historical-sources summary{padding:5px 0}
.workspace-view .followup-box{padding:10px 14px;bottom:12px}
.workspace-view .followup-box textarea{display:block;min-height:48px;max-height:180px;padding:8px 0;margin-bottom:6px;font-size:1rem;line-height:1.6;overflow-y:auto}
.workspace-view .followup-box:focus-within{border-color:#829c71}
.workspace-view .followup-box .file-list{padding:0}
.workspace-view .followup-actions .attach-button{flex-basis:auto;font-size:.875rem}
.workspace-view .followup-actions .button{font-size:.875rem}
@media(max-width:700px){
 .workspace-active .workspace-view{padding-top:16px}
 .workspace-view .matter-heading{flex-wrap:wrap;gap:10px;margin-bottom:18px;padding-bottom:12px}
 .workspace-view .matter-heading>div{flex-basis:100%}
 .workspace-view .matter-heading h1{font-size:1.125rem}
 .workspace-view .project-banner{gap:4px 12px}
 .workspace-view .project-banner .project-status{flex-basis:100%;order:1}
 .workspace-view .followup-box{bottom:8px;padding:9px 12px}
 .workspace-view .followup-actions{gap:8px}
 .workspace-view .followup-actions .button{padding:9px 11px}
 .workspace-view .chat-column{min-height:calc(100dvh - 210px)}
}

/* The conversation scrolls behind a stable, column-aligned composer. */
.workspace-active .main-footer{display:none}
.workspace-active .workspace-view{--composer-gap:max(12px,env(safe-area-inset-bottom));--composer-height:120px;padding-bottom:var(--composer-gap);min-height:0}
.workspace-active .chat-column{min-height:calc(100dvh - var(--chat-start,160px) - var(--composer-gap))}
.workspace-active .chat-column::after{content:'';display:block;flex:none;height:calc(var(--composer-height) + 24px);margin-top:auto}
.workspace-active .followup-box{position:fixed;left:var(--composer-left);width:var(--composer-width);bottom:calc(var(--composer-gap) + var(--composer-inset,0px));margin:0;box-sizing:border-box}
.workspace-active .followup-box textarea{max-height:min(180px,25dvh)}
@media(max-width:1279px){.workspace-active .draft-panel{margin-bottom:calc(var(--composer-height) + 24px)}}
@media(max-width:700px){.workspace-active .workspace-view{--composer-gap:max(8px,env(safe-area-inset-bottom))}}

/* A compact research action; it expands only when the user needs report detail. */
.report-tool{max-width:950px;margin:8px auto 0;width:100%;font-size:.875rem}.report-tool[hidden],.report-tool [hidden]{display:none!important}.report-toggle{padding:6px 0;color:var(--muted,#526657);font-size:.875rem}.report-tool-body{padding:16px 18px;margin:6px 0 18px;border:1px solid #cad4c3;border-radius:12px;background:#f8faf5}.report-description{margin:0 0 10px;font-size:1rem;line-height:1.5}.report-progress{margin:0 0 12px;color:#4d654f;line-height:1.5}.report-tool-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.report-tool-actions .button{font-size:.875rem;padding:10px 14px}.report-coverage{margin-top:12px;color:#536354;line-height:1.5}.report-coverage summary{cursor:pointer}.report-coverage p{max-width:65ch}.report-download{text-decoration:none}@media(max-width:680px){.report-tool{margin-top:4px}.report-tool-body{padding:14px}.report-tool-actions{align-items:stretch}.report-tool-actions>*{flex:1 1 auto;text-align:center}}

.objection-outputs{max-width:950px;margin:12px auto 22px;padding:14px 18px;border:1px solid #d2dcc9;border-radius:12px;background:#fffef6}.output-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.output-heading>strong{font-size:15px}.objection-outputs .report-tool{margin:5px 0 0}.save-objection{font-size:13px;color:#64765d;margin:12px 0 0}.save-objection button{font-size:13px}.submission-receipt{border-top:1px solid #d2dcc9;padding-top:18px;margin-top:18px;display:grid;gap:12px}.submission-receipt label{display:grid;gap:8px}.submission-receipt input{border:1px solid #becbb5;border-radius:8px;padding:10px;font:inherit;max-width:100%}.report-preview blockquote{border-left:3px solid #98aa85;padding:8px 14px;margin:14px 0;font-size:14px;line-height:1.6}.report-preview>a{font-size:13px}

/* Keep the conversation in view; research opens on demand in its own panel. */
.public-page.workspace-active #workspaceView::before{opacity:.12}
.workspace-active .workspace-view{padding-top:28px}
.workspace-view .matter-heading{margin:0 0 30px;padding-bottom:20px}
.workspace-view .matter-heading h1{font-size:1.15rem;max-width:900px}
.workspace-view .objection-outputs{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px;max-width:none;margin:16px 0 0;padding:0;border:0;border-radius:0;background:transparent}
.objection-outputs .report-tool{width:auto;max-width:none;margin:0;order:0}
.objection-outputs .output-heading{order:1}
.objection-outputs .save-objection{order:2;margin:0}
.objection-outputs .report-toggle,.objection-outputs .output-heading>.button{display:inline-flex;align-items:center;min-height:38px;padding:8px 13px;border:1px solid #cbd7c5;border-radius:8px;background:#fff;font-size:13px;font-weight:500;color:#314b3b}
.objection-outputs .report-toggle:hover{background:#eef3e9;border-color:#95aa88}
.conversation-layout{max-width:820px}
.workspace-view .answer-body,.workspace-view .historical-answer .prose{line-height:1.8}
.chat-actions.concern-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:9px;max-width:780px;margin-top:22px}
.concern-choices .chat-choice{border-radius:9px;padding:11px 13px;background:#fff;font-size:13px;line-height:1.45;min-height:44px}
.concern-choices>.button{grid-column:1/-1;justify-self:start;margin-top:5px;border-radius:8px;padding:10px 17px}
.workspace-view .research-panel{max-height:420px;overflow:auto;padding:12px 0 0}
.workspace-view .research-panel .source-list{grid-template-columns:1fr;padding:0}
.workspace-view .source-card{padding:12px 14px;border-radius:8px}
.workspace-view .followup-box{background:#fff;box-shadow:0 8px 34px #10282014;border-radius:14px}
.report-dialog{width:min(720px,calc(100vw - 40px));max-height:calc(100dvh - 64px);padding:28px;border:1px solid #d2ddcb;border-radius:18px;background:#fff;color:var(--ink);box-shadow:0 24px 100px #10282035;overflow:auto}
.report-dialog::backdrop{background:#10282065;backdrop-filter:blur(3px)}
.report-dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-bottom:20px;border-bottom:1px solid var(--line)}
.report-dialog-heading .eyebrow{font-size:11px;letter-spacing:1.1px}
.report-dialog-heading h2{font:600 27px/1.3 var(--serif);margin:8px 0 0}
.report-close{flex:none;width:36px;height:36px;border-radius:50%;background:#f1f5ed;font-size:24px;line-height:1}
.report-dialog .report-tool-body{margin:0;padding:22px 0 0;border:0;border-radius:0;background:transparent}
.report-dialog .report-description{font-size:15px;line-height:1.65;color:#586b59}
.report-dialog .report-progress{font-size:14px}
.report-dialog .report-preview{border:0;padding:0;margin:22px 0}
.report-dialog .report-preview h3{font-size:16px;margin-bottom:14px}
.report-dialog .report-preview li{margin-bottom:8px;font-size:14px;line-height:1.6}
.report-dialog .report-preview p{font-size:13px;color:#637361}
.report-dialog .report-preview blockquote{background:#f4f7ef;border-left:3px solid #9cae8d;border-radius:0 8px 8px 0;padding:14px 16px}
.report-dialog .report-tool-actions{padding-top:16px;border-top:1px solid var(--line)}
.report-dialog .report-pack-note,.report-dialog .report-coverage{font-size:12px;line-height:1.65}
@media(max-width:1100px){.chat-actions.concern-choices{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){
 .workspace-active .workspace-view{padding-top:18px}
 .workspace-view .matter-heading{margin-bottom:24px;padding-bottom:16px}
 .workspace-view .objection-outputs{gap:8px;margin-top:12px}
 .objection-outputs .report-toggle,.objection-outputs .output-heading>.button{font-size:12px;padding:7px 10px}
 .concern-choices .chat-choice{font-size:12px;padding:10px;min-height:46px}
 .report-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 24px);padding:21px;border-radius:14px}
 .report-dialog-heading h2{font-size:23px}
}
@media print{.report-dialog{display:none!important}}

.concern-choices .chat-choice[aria-pressed="true"]{background:#e3eddd;border-color:#355b40;box-shadow:inset 0 0 0 1px #355b40;color:#17372c}
.concern-choices .chat-choice[aria-pressed="true"]::before{content:'✓ ';font-weight:700}
.concern-composer{max-width:780px;margin-top:18px;display:grid;gap:10px}.concern-composer[hidden]{display:none}.concern-composer label{font-size:14px;color:#527044}.concern-composer textarea{box-sizing:border-box;width:100%;resize:vertical;min-height:100px;border:1px solid #b7c6b0;border-radius:12px;padding:14px;font:inherit;line-height:1.5;background:white;color:inherit}.concern-composer>.button{justify-self:end}.concern-composer textarea:focus{outline:2px solid #355b40;outline-offset:2px}

.draft-work{margin:18px 0 24px;padding:20px;border:1px solid #ccdac2;border-radius:14px;background:linear-gradient(140deg,#f1f6ec,#fff);font-size:13px;line-height:1.55}.draft-work[hidden]{display:none}.draft-work-heading{display:flex;gap:10px;align-items:center;font-size:16px;color:#17372c}.draft-work-pulse{width:9px;height:9px;border-radius:50%;background:#527044;box-shadow:0 0 0 5px #52704415;animation:work-pulse 1.8s ease-in-out infinite}.draft-work-counts{font-weight:650;color:#355b40}.draft-work ol{list-style:none;padding:0;margin:18px 0;display:grid;gap:10px}.draft-work li{display:grid;grid-template-columns:32px 1fr;gap:8px}.draft-work li>span:first-child{color:#75816c;font-size:11px;padding-top:2px}.draft-work-warning{color:#815d28}.draft-work .draft-work-scope{font-size:12px;color:#66755b;border-top:1px solid #dce5d5;padding-top:12px;margin-bottom:0}@keyframes work-pulse{50%{opacity:.45}}@media(prefers-reduced-motion:reduce){.draft-work-pulse{animation:none}}

.output-choices[hidden]{display:none}@media(max-width:700px){}
.objection-outputs 

.report-process{padding:16px 18px;margin:18px 0;background:#f3f6ee;border-radius:12px;border:1px solid #d5dfcd}.report-process h3{font-size:16px;margin:0 0 12px}.report-process ol{padding-left:22px;margin:0;display:grid;gap:12px}.report-process li{padding-left:4px;font-size:13px;line-height:1.5}.report-process li strong,.report-process li span{display:block}.report-process li span{color:#617257}.report-process p,.report-account-note{font-size:13px;line-height:1.5}.report-process p{margin-bottom:0}.report-account-note:empty{display:none}.report-account-note{padding:12px;border-left:3px solid #75925d;background:#fafbf6}

.objection-outputs .report-tool{flex-basis:100%;width:100%}.research-status-card{margin-top:12px;padding:14px 16px;border:1px solid #ccd9c2;border-radius:12px;background:#f6f8f1;max-width:870px}.research-status-title{font-size:15px;color:#254333}.research-status-detail{font-size:13px;line-height:1.5;margin:6px 0}.research-status-time{font-size:11px;color:#65755b;margin:5px 0}.research-status-check{font-size:12px;text-decoration:underline;padding:4px 0}

/* Objection toolbar: compact choices and a live research pill instead of stacked cards. */
.workspace-view .objection-outputs{gap:8px 10px}
.objection-outputs .output-choices{display:flex;flex-wrap:wrap;gap:8px;margin:0;order:-1}
.objection-outputs .output-choices[hidden]{display:none}
.objection-outputs .output-choices .button{min-height:38px;padding:8px 13px;gap:8px;border-radius:8px;font-size:13px}
.objection-outputs .output-choices .button span{font-size:15px}
.objection-outputs .report-tool{flex-basis:auto;width:auto}
.objection-outputs .report-toggle::before{content:'';width:8px;height:8px;border-radius:50%;background:#98a690;margin-right:9px;flex:none}
.report-tool[data-state="running"] .report-toggle::before{background:#527044;box-shadow:0 0 0 4px #52704418;animation:work-pulse 1.8s ease-in-out infinite}
.report-tool[data-state="ready"] .report-toggle::before{background:#2f6b4a}
.report-tool[data-state="failed"] .report-toggle::before,.report-tool[data-state="attention"] .report-toggle::before,.report-tool[data-state="error"] .report-toggle::before{background:#b8632f}
/* Side panel views */
.panel-tabs{display:flex;gap:2px;margin:-4px 0 18px;border-bottom:1px solid var(--line)}
.panel-tabs[hidden],.panel-tabs [hidden]{display:none}
.panel-tabs button{background:transparent;border:0;border-bottom:2px solid transparent;margin-bottom:-1px;padding:8px 12px;font-size:14px;font-weight:500;color:#5f6f5c;cursor:pointer}
.panel-tabs button[aria-selected="true"]{color:#17372c;border-bottom-color:#244b3a}
.panel-tabs button:hover{color:#17372c}
.research-view[hidden],#letterView[hidden]{display:none}
.report-side [hidden]{display:none!important}
.report-side .research-status-card{margin:0 0 14px;max-width:none;padding:16px 18px;border-color:#ccdac2;border-radius:12px;background:linear-gradient(140deg,#f1f6ec,#fff)}
.report-side .research-status-title{display:flex;align-items:center;gap:10px;font:600 18px/1.35 var(--serif);color:#17372c}
.report-side .research-status-title::before{content:'';width:9px;height:9px;border-radius:50%;background:#98a690;flex:none}
.report-side[data-state="running"] .research-status-title::before{background:#527044;box-shadow:0 0 0 5px #52704415;animation:work-pulse 1.8s ease-in-out infinite}
.report-side[data-state="ready"] .research-status-title::before{background:#2f6b4a}
.report-side[data-state="failed"] .research-status-title::before,.report-side[data-state="attention"] .research-status-title::before,.report-side[data-state="error"] .research-status-title::before{background:#b8632f}
.report-side .research-status-detail{font-size:13px;line-height:1.6;margin:8px 0 0;color:#3f5546}
.report-side .research-status-time{font-size:11px;color:#65755b;margin:8px 0 0}
.report-side .research-status-check{font-size:12px;margin-top:4px}
.report-side .report-progress{font-size:14px;line-height:1.65;color:#2b4436;margin:0 0 12px}
.report-side .report-progress:empty{display:none}
.report-side .report-background-note,.report-side .report-resume-note,.report-side .report-account-note,.report-side .report-pack-note{font-size:12px;line-height:1.65;color:#67745f;margin:0 0 12px}
.report-side .report-account-note:empty,.report-side .report-pack-note:empty{display:none}
.report-side .report-tool-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:14px 0 12px}
.report-side .report-tool-actions .button{font-size:13px;padding:9px 13px}
.report-side .report-tool-actions .text-button{font-size:12px}
.report-side .report-working-document{margin:18px 0 0;padding:14px 16px;border:1px solid #d9e1d1;border-radius:10px;background:#f7f9f3;font-size:13px;line-height:1.65}
.report-side .report-working-document h3{font:600 15px/1.4 var(--font);margin:0 0 6px}
.report-side .report-working-document p{margin:0 0 10px;color:#56654e}
.report-side .report-working-document summary{cursor:pointer;font-weight:550;color:#405539;padding:4px 0}
.report-side .report-working-document h4{font-size:14px;margin:14px 0 6px}
.report-side .report-working-document ul{padding-left:18px;margin:10px 0 0}
.report-side .report-working-document li{margin:5px 0;overflow-wrap:anywhere}
.report-side .report-working-document a{overflow-wrap:anywhere}
@media(max-width:700px){.objection-outputs .output-choices .button{font-size:12px;padding:7px 10px;min-height:34px}.panel-tabs button{font-size:13px;padding:7px 10px}}
/* Research stage tracker */
.research-stages{list-style:none;counter-reset:stage;margin:0 0 14px;padding:0;display:grid;gap:8px}
.research-stages[hidden]{display:none}
.research-stages li{display:grid;grid-template-columns:22px 1fr auto;gap:10px;align-items:center;font-size:13px;color:#6b785f}
.research-stages li::before{counter-increment:stage;content:counter(stage);width:22px;height:22px;border-radius:50%;border:1px solid #c9d5c0;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:600;background:#fff;color:#6b785f}
.research-stages li[data-state="done"]::before{content:'✓';background:#2f6b4a;border-color:#2f6b4a;color:#fff}
.research-stages li strong{font-weight:500}
.research-stages li[data-state="active"],.research-stages li[data-state="attention"]{color:#17372c}
.research-stages li[data-state="active"] strong{font-weight:600}
.research-stages li[data-state="active"]::before{background:#244b3a;border-color:#244b3a;color:#fff;box-shadow:0 0 0 4px #244b3a1a;animation:work-pulse 1.8s ease-in-out infinite}
.research-stages li[data-state="attention"]::before{background:#b8632f;border-color:#b8632f;color:#fff}
.research-stages li span{font-size:11px;color:#65755b;white-space:nowrap}
/* Live research detail */
.research-live{margin:0 0 14px;padding:14px 16px;border:1px solid #d9e1d1;border-radius:10px;background:#fff;font-size:13px;line-height:1.6}
.research-live[hidden]{display:none}
.research-live .research-now{margin:0 0 10px;color:#17372c;font-weight:550}
.research-live .research-now:empty{display:none}
.research-live .research-facts{list-style:none;margin:0 0 10px;padding:0;display:grid;gap:4px;color:#3f5546}
.research-live .research-facts:empty{display:none}
.research-live .research-facts li::before{content:'·';margin-right:8px;color:#8a9a82}
.research-live .research-evidence{margin:0 0 12px}
.research-live .research-evidence summary{cursor:pointer;font-weight:550;color:#405539;padding:4px 0}
.research-live .research-recent{margin:6px 0 0;padding-left:18px;color:#56654e}
.research-live .research-recent li{margin:3px 0;overflow-wrap:anywhere}
.research-live h4{font:600 11px/1.4 var(--font);letter-spacing:1px;text-transform:uppercase;color:#6d795e;margin:12px 0 8px}
.research-live .research-activity{list-style:none;margin:0;padding:0;display:grid;gap:6px;max-height:220px;overflow:auto}
.research-live .research-activity li{display:grid;grid-template-columns:58px 1fr;gap:8px;align-items:baseline;color:#3f5546}
.research-live .research-activity li:first-child{color:#17372c}
.research-live .research-activity time{font-size:11px;color:#65755b;white-space:nowrap;font-variant-numeric:tabular-nums}
.research-live .research-activity:empty::after{content:'Waiting for the first progress update…';color:#65755b}
/* Second-opinion scans */
.report-scans{margin:18px 0 0;padding:14px 16px;border:1px solid #d9e1d1;border-radius:10px;background:#fff;font-size:13px;line-height:1.6}
.report-scans[hidden]{display:none}
.report-scans h3{font:600 15px/1.4 var(--font);margin:0 0 6px}
.report-scans-note{margin:0 0 12px;color:#56654e}
.report-scans-controls{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center}
.report-scans-controls label{display:flex;gap:8px;align-items:center;font-weight:500;color:#2f4a3a}
.report-scans-controls select{max-width:240px;padding:7px 9px;border:1px solid #cbd7c5;border-radius:8px;background:#fff;font:inherit}
.report-scans-controls .button{font-size:13px;padding:8px 13px}
.report-scans-allowance{margin:8px 0 0;font-size:12px;color:#65755b}
.report-scans-list{display:grid;gap:12px;margin-top:12px}
.report-scan{padding:12px 14px;border:1px solid #d9e1d1;border-radius:10px;background:#f7f9f3}
.report-scan[data-status="failed"]{border-color:#e2c7b3;background:#fbf4ee}
.report-scan-head{margin:0 0 6px;font-weight:600;color:#17372c}
.report-scan-progress{margin:0 0 8px;color:#3f5546}
.report-scan-finding{margin:6px 0;padding:8px 10px;border:1px solid #d9e1d1;border-radius:8px;background:#fff}
.report-scan-finding summary{cursor:pointer;font-weight:550;color:#17372c}
.report-scan-finding[data-kind="new_issue"] summary{color:#244b3a}
.report-scan-finding[data-kind="legal"] summary{color:#5a4a1e}
.report-scan-finding p{margin:8px 0 0;color:#3f5546;overflow-wrap:anywhere}
.report-scan-refs,.report-scan-limits{font-size:12px;color:#65755b}
/* Research status chip: reaches the research view from anywhere in the chat */
.research-chip{position:fixed;left:var(--composer-left,auto);width:var(--composer-width,auto);bottom:calc(var(--composer-height,120px) + var(--composer-gap,12px) + 10px);z-index:30;display:flex;align-items:center;gap:10px;padding:9px 14px;border:1px solid #cbd7c5;border-radius:999px;background:#ffffffee;backdrop-filter:blur(6px);box-shadow:0 6px 24px #10282018;font:500 13px/1.4 var(--font);color:#17372c;cursor:pointer;text-align:left;max-width:100%}
.research-chip[hidden]{display:none}
.research-chip:hover{border-color:#95aa88;background:#f6f9f2}
.research-chip-dot{width:9px;height:9px;border-radius:50%;background:#527044;box-shadow:0 0 0 4px #52704418;animation:work-pulse 1.8s ease-in-out infinite;flex:none}
.research-chip.is-attention .research-chip-dot{background:#b8632f;animation:none}
.research-chip.is-done .research-chip-dot{background:#2f6b4a;animation:none}
.research-chip #researchChipText{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.research-chip-cta{color:#3e6532;text-decoration:underline;text-underline-offset:3px;flex:none}
.conversation-layout.has-draft .research-chip{width:auto;left:auto}
@media(min-width:1280px){.conversation-layout.has-draft .research-chip{display:none}}
/* Below the desktop breakpoint the side panel becomes a bottom sheet instead of stacking under the chat */
.panel-shade{display:none}
@media(max-width:1279px){
 .panel-shade{display:block;position:fixed;inset:0;z-index:58;border:0;padding:0;background:#10282055;cursor:pointer}
 .panel-shade[hidden]{display:none}
 .conversation-layout.has-draft .draft-panel{position:fixed;left:0;right:0;bottom:0;top:auto;margin:0;max-height:88dvh;overflow:auto;border-radius:18px 18px 0 0;border-color:#cfdbc3;box-shadow:0 -14px 44px #10282033;z-index:59;padding:16px 18px calc(24px + env(safe-area-inset-bottom))}
 .conversation-layout.has-draft .draft-panel::before{content:'';display:block;width:44px;height:4px;border-radius:2px;background:#cfdbc3;margin:0 auto 12px}
 .workspace-active .draft-panel{margin-bottom:0}
 body.panel-open{overflow:hidden}
 body.panel-open .followup-box,body.panel-open .jump-latest{visibility:hidden}
 .conversation-layout.has-draft .research-chip{display:none}
}
