/* One service identity across entry, analysis and account pages. */
:root{--red:#b9232a;--paper:#fffdf8;--bg:#faf6ef;--ink:#29241f;--muted:#736a60;--line:#e4dbcf}
body{background:var(--bg);color:var(--ink)}
.service-header{border-bottom:1px solid var(--line);background:var(--paper)}
.service-header-inner{max-width:1120px;margin:auto;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:24px;padding:14px 30px}
.service-brand{display:inline-flex;align-items:center;gap:9px;justify-self:start;color:var(--ink);text-decoration:none;font-weight:750;font-size:19px;letter-spacing:1px;min-height:44px}
.service-brand>span{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--red);color:#fff;font-size:20px;letter-spacing:0}
.service-nav{display:flex;gap:24px;align-items:center}
.service-nav>a,.service-nav>button{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--muted);font-size:14px;font-weight:600;padding:10px 0;min-height:44px;text-decoration:none;white-space:nowrap;border-bottom:2px solid transparent}
.service-nav>[aria-current=page]{color:var(--red);border-bottom-color:var(--red)}
.service-locale{justify-self:end;display:flex;gap:2px;border:0;background:transparent}
.service-locale>button{min-height:40px;border:0;background:transparent;box-shadow:none;font-size:12px;padding:8px;border-radius:6px;color:var(--muted);font-weight:500}
.service-locale>[aria-pressed=true]{color:var(--ink);background:#f0e9df;font-weight:650}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid var(--red);outline-offset:3px}
.member-page .button,.auth-page .button,.hero-simple .button{border-radius:9px}
.welcome-strip{order:0;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;padding:16px 0 20px;border-bottom:1px solid var(--line);margin-bottom:24px;font-size:14px}.welcome-strip [data-copy=welcomePasskey]{white-space:normal;max-width:100%;margin-inline-end:12px}
.welcome-strip p{margin:0}.welcome-strip a{white-space:nowrap;color:var(--red);margin-inline-end:16px}
.returning-home{order:1;margin:0 0 28px;padding:24px 0;border-bottom:1px solid var(--line)}
.returning-home h2{font-size:20px;margin-bottom:14px}.returning-home .history-row{padding:0;border:0}.returning-home .history-row>button{padding:10px 0}.returning-home .history-preview{display:none}
.member-home{order:0;padding:20px 0}.member-home h1{font-size:32px;margin-bottom:12px}.member-home p{color:var(--muted);max-width:52ch}.member-home .actions{display:flex;flex-wrap:wrap;gap:12px}.member-home .actions>button{min-height:48px}
body[data-view=home][data-member=member] .returning-home{display:block}
body[data-ready=true] .returning-home,body:not([data-view=prepare]) .returning-home{display:none}
.recent-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.recent-heading a{font-size:13px;color:var(--red)}
.company-hero{max-width:720px}.company-hero>p{max-width:56ch}body[data-member=member] .company-hero h1{font-size:clamp(27px,4vw,34px);text-align:left}body[data-member=member] .company-hero{margin-bottom:20px}#notice[data-tone=info]{color:var(--muted);font-size:13px;margin:0 0 14px}
.entry-note{font-size:14px;color:var(--muted);margin-top:20px}.entry-note a{white-space:nowrap}
.source-summary{margin:0 0 16px;display:grid;gap:6px}.source-summary:empty{display:none}
.source-summary-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px;background:var(--paper);border:1px solid var(--line);border-radius:8px;font-size:13px;min-width:0}
.source-summary-row>span{overflow-wrap:anywhere;min-width:0;flex:1}.source-summary-row button{flex:none;min-height:44px;padding:4px 8px;font-size:12px}.source-actions{display:flex;gap:2px;flex:none}
.source-summary-row small{display:block;color:var(--muted)}
.workspace-nav{position:sticky;top:0;z-index:5;background:var(--bg);padding-top:4px}
body[data-view=chat] .material-panel,body[data-view=chat] #job-details{display:none}
body[data-view=prepare] #chat-panel:not([hidden]){display:block}
body[data-view=chat] #chat-panel:not([hidden]){display:flex;flex-direction:column;order:4;min-height:55dvh}
body[data-view=chat] #chat-messages{flex:1}
body[data-view=chat] #ask-form{background:var(--bg);padding:12px 0 calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line)}
.chat-panel h2{font-size:22px}.chat-answer-section{margin:16px 0;padding:0 0 0 14px;border-left:3px solid var(--line)}
.chat-answer-section[data-kind=fact]{border-left-color:var(--red)}
.chat-answer-section h3{font-size:13px;margin:0 0 8px;color:var(--muted)}
.chat-answer-section p{white-space:pre-wrap;overflow-wrap:anywhere}.chat-answer-section .chat-answer{margin-bottom:12px}
.chat-answer-section .chat-answer small{font-size:11px;color:var(--muted)}
.chat-type-note{font-size:12px;color:var(--muted);margin:8px 0}
.profile-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 0 10px}.profile-section-heading h2{font-size:20px;margin:0}.profile-section-heading button{font-size:13px;padding:8px 12px}
.profile-block{border-bottom:1px solid var(--line);padding-bottom:20px}.profile-block .profile-section{border:0;padding:0}.profile-block .profile-section summary{font-size:13px;color:var(--muted)}
.profile-block .profile-record{padding:12px 0}.profile-block .profile-record:last-child{border:0}.profile-fields input,.profile-fields select,#profile-form textarea,#profile-form input{font-size:16px}
.profile-edit-title{font-size:23px;margin:24px 0}.profile-edit-records{display:grid;gap:12px}.profile-edit-records>details{padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--paper)}
.profile-edit-records>details>summary{overflow-wrap:anywhere;min-height:44px}.profile-edit-records fieldset{padding:0;border:0;min-width:0}.profile-edit-actions{position:sticky;bottom:0;background:var(--bg);padding:12px 0 calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line);display:flex;gap:12px;margin-top:20px}
.profile-section dl>div{grid-template-columns:110px minmax(0,1fr)}.profile-block .profile-summary{margin:12px 0;max-width:68ch}
.customer-filters{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:12px}.customer-filters label{font-size:13px}.customer-stage{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.customer-stage>span{font-size:12px;background:#f0e9df;padding:4px 10px;border-radius:6px}
.admin-profile-record{padding:12px 0;border-bottom:1px solid var(--line);white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:650px){
 .service-header-inner{grid-template-columns:1fr auto;gap:4px 16px;padding:8px 18px 0}
 .service-brand{font-size:17px}.service-brand>span{width:27px;height:27px;font-size:18px}
 .service-nav{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;width:100%}
 .service-nav>a,.service-nav>button{font-size:13px;min-width:0;width:100%;padding:10px 0}
 .service-locale{grid-column:2;grid-row:1}.service-locale>button{font-size:11px;padding:7px}
 main{padding-top:24px}.welcome-strip{display:block;font-size:13px}.welcome-strip a{display:inline-flex;align-items:center;min-height:44px}
 .workspace-nav button{font-size:14px}.profile-section-heading h2{font-size:18px}.profile-section-heading button{font-size:12px}
 .customer-filters{grid-template-columns:1fr 1fr}.customer-filters>label:first-child{grid-column:1/-1}
 body[data-view=chat] #chat-panel:not([hidden]){min-height:calc(100dvh - 250px)}
}
.workflow-switch{display:flex;gap:6px;align-items:center;margin:0 0 24px;flex-wrap:wrap}
.workflow-switch a,.workflow-switch>span{display:inline-flex;align-items:center;min-height:44px;padding:8px 14px;border-radius:8px;text-decoration:none;font-size:14px;color:var(--muted,#666)}
.workflow-switch a:hover,.workflow-switch [aria-current=page]{color:var(--red,#b9232a);background:rgba(185,35,42,.07)}
.service-locale button{min-width:40px;text-transform:none}
.brief-item{padding:12px 0}.brief-item+.brief-item{border-top:1px solid var(--line,#ddd)}
.basis-label{display:inline-block;font-size:12px;color:var(--muted,#666);padding:3px 7px;background:rgba(0,0,0,.04);border-radius:4px}
.basis-label[data-basis=source]{color:var(--red,#b9232a);background:rgba(185,35,42,.06)}
.brief-item p{margin:8px 0;line-height:1.7;overflow-wrap:anywhere}
.brief-sources{font-size:13px;margin:10px 0}.brief-sources summary{cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.brief-sources blockquote{margin:10px 0;padding-left:14px;border-left:2px solid var(--line,#ddd);white-space:pre-wrap;overflow-wrap:anywhere}
.meeting-page{max-width:760px}.meeting-page h1{font-size:clamp(25px,5vw,34px);line-height:1.3}.meeting-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.meeting-heading h1{min-width:0;flex:1}.meeting-page #meeting-new{flex:none;min-height:44px;max-width:94px;border:0;background:transparent;padding:0 6px;font-size:12px;color:var(--muted)}
.meeting-page input,.meeting-page textarea{max-width:100%;font-size:16px}.meeting-page label{display:grid;gap:8px;margin:12px 0}
.meeting-page .meeting-company{padding:16px 0;border:0;border-bottom:1px solid var(--line,#ddd);box-shadow:none;background:transparent;border-radius:0;margin:0 0 16px}
.meeting-company h2{font-size:20px}.meeting-company>details>summary{cursor:pointer;min-height:44px;padding:10px 0;font-size:14px}
.meeting-page .input-methods{display:flex;gap:8px;margin:10px 0}.meeting-page .input-methods button{flex:1;min-width:0;min-height:64px;font-size:14px}.meeting-page .input-method{display:flex;flex-direction:column;justify-content:center;gap:2px;padding:8px 4px;background:var(--paper)}.meeting-page .input-method small{font-size:11px;font-weight:400;color:var(--muted)}.meeting-page .input-method[aria-pressed=true]{border-color:var(--red);background:#fbefea;color:var(--red);box-shadow:inset 0 0 0 1px var(--red)}.meeting-company h2{margin-bottom:8px}.meeting-company .meeting-materials{border:0;padding:0}.meeting-materials>summary{display:flex;align-items:center;justify-content:space-between;gap:12px}.meeting-materials>summary:after{content:'+';font-size:20px}.meeting-materials[open]>summary:after{content:'−'}.meeting-materials summary small{font-weight:400;margin-left:auto}.meeting-page .meeting-input-done{display:block;margin:8px 0 12px;min-height:44px}.meeting-page .source-summary:empty{display:none}.meeting-page .source-summary{margin-top:10px}.meeting-page #meeting-purpose{min-height:88px}
.meeting-files{padding-left:20px;font-size:13px}.meeting-files li{overflow-wrap:anywhere}.meeting-files button{min-height:44px;padding:4px 10px;font-size:12px}
.meeting-page [type=submit]{width:100%;min-height:48px;margin:12px 0 24px}
.meeting-page .fact-group{border:0;border-bottom:1px solid var(--line,#ddd);padding:12px 0;margin:0}
.meeting-page .fact-group>summary{cursor:pointer;min-height:44px;padding:10px 0;font-size:17px;font-weight:600}
.meeting-page .fact-group-body{padding:10px 0 16px}.meeting-page li{line-height:1.7;margin:8px 0}
.meeting-profiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:24px 0}.meeting-profile p{overflow-wrap:anywhere;line-height:1.7}
body[data-member=guest] .workflow-switch{display:none}
@media(max-width:560px){.meeting-profiles{grid-template-columns:1fr;gap:8px}.meeting-page .meeting-company{padding-top:10px}.meeting-page .fact-group>summary{font-size:16px}}
