#workspace:has(> #buyerHome) > .workspace-head { display:none; }
#buyerHome {
  display:grid;
  grid-template-columns:minmax(185px,224px) minmax(0,1fr);
  margin:20px 0 0;
  min-height:630px;
  border:1px solid #355345;
  border-radius:20px;
  background:#f8faf7;
  overflow:clip;
}
#buyerHome .buyer-home-main { min-width:0; padding:clamp(16px,4vw,40px); color:#142c22; }
#buyerHome .buyer-home-links { border-bottom:1px solid #b4d7c933; padding-bottom:14px; margin-bottom:14px; }
.buyer-home-links button, #buyerHomeIndex button {
  display:block; background:transparent; border:0; border-radius:8px;
  color:#ecf4ef; padding:8px 10px; overflow-wrap:anywhere;
}
.buyer-home-links button[aria-current], .buyer-home-links button:hover, #buyerHomeIndex button:hover { background:#285342; }
#buyerHomeIndex details { margin:0 0 12px; padding:0; border:0; }
#buyerHomeIndex summary { color:#c0d6c9; padding:7px; cursor:pointer; font-size:.84rem; }
#buyerHomeIndex summary span { float:right; }
#buyerHomeIndex details button { font-size:.86rem; }
#buyerHome .buyer-new { margin-bottom:12px; }
#buyerHome .buyer-request-sidebar :focus-visible { outline:2px solid #dff2d8; outline-offset:2px; }

#buyerHome:not([data-mode="requests"]) #buyerHomeRequests,
#buyerHome[data-mode="requests"] #buyerHomeCompose,
#buyerHome:not([data-mode="chat"]) #concierge,
#buyerHome:not([data-mode="chat"]) #buyerCategoryPicker,
#buyerHome:not([data-mode="online"]) #productLookup,
#buyerHome:not([data-mode="guided"]) #guidedRequest { display:none; }
#buyerHome[data-mode="online"] #productLookup { margin:0; }
#buyerHome[data-mode="guided"] .buyer-home-main,
#buyerHome[data-mode="online"] .buyer-home-main { padding:clamp(10px,2vw,22px); }
#buyerHomeRequests .section-head { margin-top:0; }
#buyerHomeRequests .section-head .quiet { color:#245139; }
#buyerHomeRequests .request-list-tools label { color:#142c22; }
#buyerHomeRequests .request-tabs button { color:#295542; border-color:#c9d8cd; }
#buyerHomeRequests .request-tabs button[aria-selected="true"] { background:#214c37; color:white; }
#buyerHomeRequests .empty { color:#52675c; border-color:#c9d8cd; }
#buyerHomeRequests .request-card:not(.market-request-card) { color:#e9f1ed; }
#buyerCategoryPicker { padding:14px 0 0; color:#245139; }
#buyerCategoryPicker > summary { cursor:pointer; font-weight:650; }
#buyerCategoryPicker .request-catalog { margin:13px 0 0; }

#buyerHome #concierge {
  padding:0; margin:0; border:0; border-radius:0; box-shadow:none; background:none; overflow:visible;
  color:#142c22;
}
.intake-heading { display:flex; align-items:start; justify-content:space-between; gap:12px; }
.intake-heading h2 { margin:0; font-size:clamp(1.55rem,4vw,2.15rem); overflow-wrap:anywhere; }
.intake-heading p { color:#51665b; margin:6px 0 16px; }
#concierge .quiet { color:#245139; font-weight:650; }
#intakeLog { display:grid; gap:12px; margin-bottom:12px; }
#intakeLog:empty, #agentPhotos:empty, #agentStatus:empty { display:none; }
.intake-turn {
  background:#fff; border:1px solid #dbe5dd; border-radius:13px; padding:12px 16px;
  color:#142c22; max-width:min(95%,680px); overflow-wrap:anywhere;
}
.intake-turn strong { color:#245139; font-size:.84rem; }
.intake-turn p { margin:5px 0 0; line-height:1.52; white-space:pre-wrap; font-size:.94rem; }
.intake-buyer { justify-self:end; background:#e7f2e9; border-color:#c9dece; }
#intakeComposer {
  display:grid; gap:8px; padding:12px; border:1px solid #b9d1c1;
  border-radius:15px; background:#fff; box-shadow:0 8px 22px #1935290b;
}
#agentMessage {
  padding:8px; background:#fff; border:0; border-radius:6px; color:#142c22; min-height:70px;
}
#agentMessage::placeholder { color:#637970; }
.intake-composer-actions { display:flex; align-items:center; flex-wrap:wrap; gap:7px; }
.intake-photo-button { display:inline-block; color:#245139; padding:7px 4px; cursor:pointer; }
.intake-composer-actions:has(#agentPhotoInput:focus-visible) .intake-photo-button,
#buyerHome .buyer-home-main :focus-visible { outline:2px solid #448968; outline-offset:2px; }
#concierge .primary { background:#23573d; color:#fff; border-color:#23573d; padding:8px 13px; }
#agentSend { margin-left:auto; }
#intakePhotoNotice { margin:0; color:#51665b; }
#concierge #agentStatus { color:#52675c; margin:8px 0; }
#intakeStarters { margin:12px 0 4px; }
#intakeStarters button { color:#245139; border-color:#bdcec2; background:#fff; }
#intakeStarters button:hover { background:#e3f1e5; }
.intake-brief, .buyer-supplier-discussions {
  padding:12px 14px; margin:12px 0; border-radius:10px; border:1px solid #dbe5dd; background:#fff;
}
.intake-brief summary, .buyer-supplier-discussions summary {
  font-weight:700; cursor:pointer; color:#193529;
}
.intake-brief #agentDraftSummary dt, .intake-brief #agentDraftSummary dd, .intake-brief label { color:#245139; }
.intake-brief-actions { display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; margin-top:9px; }
.buyer-supplier-discussions > div { margin-top:10px; }
.buyer-request-detail .buyer-direct-messages .request-conversation { margin:0; }
@media(max-width:720px) {
  #buyerHome { grid-template-columns:minmax(0,1fr); min-height:0; }
  #buyerHome .buyer-request-sidebar { display:block; }
  #buyerHome .buyer-home-links { display:flex; flex-wrap:wrap; gap:3px 7px; padding-bottom:7px; margin-bottom:6px; }
  #buyerHome .buyer-home-links button { width:auto; padding:7px; }
  #buyerHomeIndex details { margin:0 0 4px; }
  .intake-heading { flex-wrap:wrap; }
}


.buyer-request-header .buyer-quote-count { border:1px solid #c9dece; cursor:pointer; }
.buyer-request-header .buyer-quote-count:hover { background:#dceedd; }

.buyer-chat-thread {
  display:grid;
  align-content:start;
  gap:0;
  max-height:clamp(220px, 48dvh, 580px);
  overflow-y:auto;
  overscroll-behavior-y:contain;
  scrollbar-gutter:stable;
  padding:4px 9px 8px 2px;
  scroll-padding:9px;
}
#intakeThread:has(#intakeLog:empty):has(#agentQuestions:empty):has(#agentBrief.hidden) { display:none; }
#intakeLog { margin:0; }
#intakeLog:has(.intake-thinking) { padding-bottom:7px; }
#agentQuestions:empty, #agentQuestions[hidden], #agentBrief[hidden] { display:none; }
.intake-turn { width:fit-content; }
.intake-thinking { border-color:transparent; background:transparent; color:#415e4d; }
.intake-thinking p { color:#52675c; }
.intake-heading { margin-bottom:9px; }
.intake-quick-replies {
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  max-width: min(95%,680px);
  padding:7px 0 5px 12px;
}
.intake-question-text { flex:1 0 100%; margin:0 0 4px; font-weight:650; }
.intake-quick-replies button {
  background:#fff; color:#245139; border:1px solid #b9d1c1;
  border-radius:16px; padding:7px 12px; font-size:.86rem; font-weight:600;
}
.intake-quick-replies button:hover { background:#e3f1e5; }
.intake-quick-replies input, .intake-quick-replies select {
  background:#fff; color:#142c22; border-color:#b9d1c1; padding:8px 11px;
}
.intake-quick-replies .place-lookup { width:min(100%, 360px); }
.intake-quick-replies .place-note { color:#52675c; }
.intake-quick-replies input, .intake-quick-replies select { max-width:360px; }
.intake-brief {
  display:flex; flex-wrap:wrap; align-items:flex-start; justify-content:space-between;
  width:min(95%,680px); gap:8px 14px; margin:8px 0 3px;
}
.intake-brief:has(details[open]) > details { width:100%; }
.intake-brief details > summary { padding:7px 0; }
.intake-brief-actions { margin-top:0; }
#intakeComposer { margin-top:10px; }
#agentMessage { min-height:50px; }
.buyer-saved-chat.job-agent.panel {
  padding:0; border:0; background:none; box-shadow:none; margin:0 0 15px;
  color:#142c22;
}
.buyer-saved-chat .agent-heading { margin:0 0 6px; }
.buyer-saved-chat .agent-heading h3 { margin:0; }
.buyer-saved-chat .agent-prompts[hidden] { display:none; }
.buyer-saved-chat .agent-prompts { margin:9px 0; }
.buyer-saved-chat .buyer-intake-history, .buyer-saved-chat .job-chat-pending { display:grid; gap:10px; }
.buyer-saved-chat .agent-conversation { display:grid; gap:10px; margin:0; }
.buyer-saved-chat .buyer-intake-history:not(:empty), .buyer-saved-chat .agent-conversation:not(:empty) { padding-bottom:10px; }
.buyer-saved-chat .agent-turn { display:grid; gap:8px; margin:0; padding:0; border:0; background:none; }
.buyer-saved-chat .agent-user-message { justify-self:end; width:fit-content; max-width:95%; background:#e7f2e9; color:#142c22; }
.buyer-saved-chat .agent-response { max-width:min(95%,680px); background:#fff; color:#142c22; }
.buyer-saved-chat .agent-composer {
  border:1px solid #b9d1c1; border-radius:15px; padding:10px; margin-top:10px; background:#fff;
}
.buyer-chat-message-label { display:block; font-size:0; }
.buyer-saved-chat .agent-composer textarea { background:#fff; border:0; color:#142c22; min-height:50px; font-size:.96rem; }
.buyer-saved-chat .agent-composer .actions { flex-direction:row; justify-content:flex-end; margin:0; }
.buyer-saved-chat .agent-composer .primary { background:#23573d; border-color:#23573d; color:#fff; padding:8px 13px; }
.buyer-saved-chat .agent-status:empty { display:none; }
@media(max-width:720px) {
  .buyer-chat-thread { max-height:clamp(190px, 42dvh, 415px); padding-right:5px; }
}


.intake-quick-replies .place-results { position:static; margin:5px 0; max-height:140px; }
