/* Procurement studio V2: an assistant workspace with a working day, not a dashboard. */
:root {
  --sidebar: 236px;
  --ink: #292e2c;
  --muted: #626b66;
  --quiet: #68706b;
  --green: #16745e;
  --green-dark: #105d4c;
  --mint: #edf5ef;
  --line: #e6eae7;
  --surface: #f6f7f6;
  --shadow: 0 16px 70px rgba(41, 55, 45, .13);
  background: #fff;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

button { transition: background .18s, color .18s, border-color .18s, transform .18s; }
button:active:not(:disabled) { transform: translateY(1px); }
.sidebar { padding: 24px 12px 14px; background: var(--surface); border: 0; overflow: hidden; }
.brand { padding: 0 11px 24px; gap: 9px; color: #24332c; font-size: 21px; font-weight: 620; letter-spacing: -.7px; }
.brand-mark { color: #2b6b53; width: 28px; }
.brand-mark svg { width: 26px; height: 26px; stroke-width: 1.8; }
.brand-ai { font-weight: 470; margin-left: 3px; letter-spacing: -.8px; }
.sidebar-collapse { display: none; margin-left: auto; }
.new-task { flex: none; box-shadow: none; background: #e9ece9; border: 1px solid #e2e6e2; font-size: 13px; font-weight: 530; margin: 0 3px 20px; min-height: 38px; border-radius: 8px; padding: 8px 12px; }
.new-task:hover { background: #e3e9e5; }
.new-task .shortcut { color: #5b6760; }
.nav-group { flex: none; margin-bottom: 20px; padding: 0 3px; }
.nav-item { min-height: 40px; border-radius: 7px; padding: 9px 12px; color: #555e58; gap: 10px; font-size: 13px; font-weight: 450; }
.nav-item.active { color: #254f3d; background: #e6ece7; font-weight: 550; }
.nav-item:hover { background: #edf0ee; color: #284733; }
.nav-item svg { width: 17px; height: 17px; stroke-width: 1.65; }
.nav-item .nav-count { background: #e9e9eb; color: #626963; font-size: 11px; }
.nav-item.active .nav-count { background: #d5e4d8; color: #365e40; }
.nav-caption { padding: 0 10px; font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.nav-tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.nav-tools-grid .nav-item { display: flex; flex-direction: column; gap: 6px; min-height: 54px; justify-content: center; padding: 9px 3px; margin: 0; font-size: 12px; }
.nav-tools-grid .nav-item svg { width: 19px; height: 19px; }
.recent-nav { padding: 2px 3px 0; }
.recent-nav button { width: 100%; text-align: left; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); min-height: 33px; padding: 6px 10px; border-radius: 5px; }
.recent-nav button:hover { background: #ecefec; color: #314b3a; }
.recent-nav button span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-dot { width: 5px; height: 5px; background: #7f9b85; border-radius: 50%; flex: none; }
.recent-dot.warm { background: #bd795e; }
.sidebar-bottom { flex: none; padding-top: 14px; }
.sidebar-guide { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); width: 100%; padding: 6px 10px; }
.sidebar-guide span { margin-left: auto; color: #5c685e; font-size: 11px; }
.profile { border-top: 0; margin-top: 6px; padding: 10px 8px 0; gap: 8px; }
.avatar { background: #e4ebe6; color: #31533e; width: 29px; height: 29px; font-size: 12px; }
.profile-text strong { font-size: 12px; font-weight: 500; }
.profile-text span { color: var(--muted); font-size: 11px; }
.profile .icon-btn { width: 24px; height: 29px; }
.topbar { height: 65px; border: 0; padding: 0 36px; }
.breadcrumb { gap: 14px; font-size: 12px; color: var(--muted); }
.breadcrumb strong { color: #555f58; font-weight: 450; }
.workspace-suffix { color: #6f7770; font-size: 12px; padding-left: 14px; border-left: 1px solid #e6e9e6; }
.top-actions { gap: 12px; }
.top-user { width: 27px; height: 27px; border-radius: 50%; background: #eaf0e9; color: #3a5840; font-size: 12px; }
.demo-pill { display: inline-flex; align-items: center; gap: 5px; border: 0; color: var(--muted); font-size: 11px; padding: 0 5px 0 0; }
.demo-pill i { width: 5px; height: 5px; background: #6d9278; border-radius: 50%; }
.topbar .icon-btn { width: 25px; height: 30px; }
.topbar .icon-btn svg { width: 16px; height: 16px; }
.notify-dot { width: 4px; height: 4px; right: 5px; top: 7px; background: #b76c52; }
main { max-width: 1420px; padding: 30px 40px 42px; }
body[data-view="home"] main { max-width: 1190px; padding-top: 15px; }
h1 { font-size: 29px; font-weight: 560; letter-spacing: -.7px; }
h2 { font-size: 18px; font-weight: 560; }
.page-head { margin: 15px 0 32px; align-items: center; }
.page-head h1 { font-size: 28px; line-height: 1.4; letter-spacing: -.6px; font-weight: 560; }
.page-head p { font-size: 13px; margin-top: 10px; color: var(--muted); }
.btn { min-height: 35px; border-radius: 8px; font-size: 12px; padding: 7px 12px; border-color: #e5e9e5; font-weight: 460; }
.btn.primary { background: var(--green); border-color: var(--green); }
.btn.primary:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn.soft { color: #245a3c; background: #eaf2e9; }
.btn.sm { min-height: 29px; font-size: 12px; padding: 4px 9px; }
.text-button { font-size: 12px; color: #2e6749; }
.tag { border-radius: 4px; font-size: 11px; padding: 2px 6px; background: #eff1f0; color: #606d62; }
.tag.green { color: #326642; background: #e8f1e8; }
.tag.red { color: #9c503d; background: #f9ece5; }
.tag.amber { color: #865c25; background: #f8f0df; }
.tag.blue { color: #46617a; background: #eaf0f7; }

/* The expert and conversation form the visual centre of the room. */
.ai-studio { max-width: 830px; margin: 0 auto; padding: 11px 0 27px; }
.expert-intro { display: flex; align-items: center; justify-content: center; gap: 22px; min-height: 102px; margin-bottom: 13px; }
.expert-avatar { width: 105px; height: 105px; flex: none; position: relative; }
.expert-avatar img { width: 124px; height: 124px; max-width: none; display: block; object-fit: contain; transform: translate(-8px,-8px); }
.expert-intro h1 { font-size: 33px; line-height: 1.45; letter-spacing: -.7px; font-weight: 580; color: #29342d; text-wrap: balance; }
.expert-intro h1 span { font-weight: 510; }
.expert-intro p { margin-top: 9px; font-size: 12px; color: var(--muted); }
.studio-composer { border: 1px solid #dfe5df; border-radius: 20px; padding: 18px 18px 13px; box-shadow: 0 6px 22px rgba(36,55,40,.045); background: #fff; }
.studio-composer:focus-within { border-color: #95b19e; box-shadow: 0 7px 24px rgba(36,55,40,.065); }
.studio-composer textarea { min-height: 49px; font-size: 14px; line-height: 1.9; color: #303a33; }
.studio-composer textarea::placeholder { color: #69736a; }
.studio-composer .composer-footer { margin-top: 12px; gap: 8px; }
.attachment-add { width: 27px; height: 27px; border: 1px solid #e8ece5; background: #fff; border-radius: 50%; color: #6c7b65; }
.attachment-add svg { width: 16px; height: 16px; }
.assistant-chip { display: inline-flex; align-items: center; gap: 5px; background: #f1f5ef; border-radius: 15px; min-height: 28px; font-size: 12px; padding: 3px 9px; color: #48613e; }
.assistant-chip>svg:first-child { color: #406a39; width: 14px; height: 14px; }
.assistant-chip span { font-size: 10px; background: #e2ebdd; color: #536e48; padding: 0 4px; border-radius: 3px; }
.assistant-chip>svg:last-child { width: 11px; height: 11px; color: #607954; }
.studio-composer .composer-context { margin-left: auto; padding: 0; background: transparent; font-size: 11px; color: #6c7965; }
.send-btn { width: 31px; height: 31px; background: #25734f; margin-left: 5px; }
.studio-shortcuts { justify-content: center; gap: 10px; margin-top: 15px; }
.studio-shortcuts .quick-action { background: #fff; border: 1px solid #e6ebe5; border-radius: 8px; color: #58644f; font-size: 12px; padding: 7px 10px; gap: 6px; }
.studio-shortcuts .quick-action:hover { background: #f2f6ef; border-color: #d3dfce; color: #325b27; }
.studio-shortcuts .quick-action svg { width: 14px; height: 14px; }
.assistant-output { max-width: 940px; margin: 0 auto; }
.insight-response { border-radius: 16px; background: #f7faf5; border: 1px solid #e3ecdc; margin-bottom: 28px; }

/* The working day is a changing canvas, rather than permanent dashboard columns. */
.day-workspace { max-width: 1040px; margin: 0 auto; }
.day-workspace-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; gap: 15px; }
.day-workspace-head h2 { font-size: 18px; color: #344430; font-weight: 570; }
.day-date { font-size: 12px; color: var(--muted); display: flex; gap: 13px; align-items: center; }
.day-save { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); }
.day-save svg { width: 12px; height: 12px; }
.work-tabs { display: flex; align-items: center; gap: 22px; border-bottom: 1px solid #e7ece4; min-height: 35px; }
.work-tabs>button[role="tab"] { padding: 0 0 11px; border-bottom: 2px solid transparent; font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.work-tabs>button[role="tab"] span { font-size: 11px; color: #536a49; background: #f1f4ed; border-radius: 4px; padding: 0 5px; }
.work-tabs>button[aria-selected="true"] { color: #305b27; font-weight: 560; border-bottom-color: #71925d; }
.work-tabs>button[aria-selected="true"] span { background: #e7efde; color: #466d31; }
.work-compose { margin-left: auto; color: var(--muted); display: flex; align-items: center; gap: 4px; font-size: 12px; padding-bottom: 9px; }
.work-compose:hover { color: #2b6022; }
.daily-controls { display: flex; align-items: center; justify-content: space-between; margin: 13px 0 12px; gap: 10px; }
.daily-controls p { color: #6c7963; font-size: 12px; }
.daily-status-switch { display: flex; gap: 12px; }
.daily-status-switch button { font-size: 11px; padding: 0; color: #5b6c50; }
.daily-status-switch button[aria-selected="true"] { color: #3e6531; }
.daily-status-switch button[aria-selected="true"]:before { content: ''; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: #618047; margin-right: 4px; vertical-align: middle; }
.daily-card-grid { display: grid; grid-template-columns: 1.06fr 1fr 1fr; gap: 15px; align-items: stretch; }
.task-row.work-card { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 17px 18px 0; border: 0; border-radius: 14px; min-height: 248px; overflow: hidden; transition: transform .18s, box-shadow .18s; }
.work-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px #344e2b0b; }
.work-card.peach { background: #fbf1e9; color: #5b493b; }
.work-card.sage { background: #f0f4eb; color: #43563b; }
.work-card.blue { background: #eff4f8; color: #43596a; }
.work-card.paper { background: #f4f2ea; color: #625e40; }
.work-card.complete { background: #f1f6ed; color: #4c6d3c; }
.work-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.work-time { display: flex; align-items: center; gap: 5px; font-size: 11px; color: inherit; }
.work-time svg { width: 13px; height: 13px; }
.work-card .check { margin: 0; width: 16px; height: 16px; background: #ffffff90; border: 1px solid #b5c2ab; border-radius: 5px; }
.work-card .check.checked { background: #65824e; border-color: #65824e; }
.work-card .check:hover { border-color: #5d7948; background: white; }
.work-card .check.checked:hover { background: #4b6a37; }
.work-card-title { display: block; text-align: left; padding: 0; font-size: 16px; line-height: 1.65; color: #2f3c31; font-weight: 570; min-height: 49px; letter-spacing: -.15px; }
.peach .work-card-title { color: #594432; }
.blue .work-card-title { color: #394f61; }
.work-card-title:hover { text-decoration: underline; text-underline-offset: 4px; }
.work-card-why { font-size: 13px; line-height: 1.8; color: inherit; margin-top: 7px; min-height: 39px; }
.delivery-mini, .quote-mini, .service-mini, .waiting-mini { margin-top: 13px; margin-bottom: 15px; min-height: 51px; }
.delivery-blocks { display: flex; gap: 5px; margin-bottom: 6px; }
.delivery-blocks>span { flex: 1; height: 21px; background: #e2c8ac; display: grid; place-items: center; border-radius: 3px; color: #785b36; }
.delivery-blocks .not-arrived { border: 1px dashed #b89470; background: #f8e5d5; }
.delivery-blocks .icon { width: 12px; height: 12px; stroke-width: 2; }
.delivery-mini>span { font-size: 10px; color: #795e43; display: flex; align-items: center; gap: 6px; }
.delivery-mini>span i { width: 3px; height: 3px; background: #9a7855; border-radius: 50%; }
.quote-mini { display: flex; gap: 7px; }
.quote-mini>div { flex: 1; border-radius: 5px; background: #e2edd8; padding: 5px 6px; }
.quote-mini span { font-size: 10px; color: #576f44; }
.quote-mini strong { font-size: 12px; color: #415b2f; float: right; font-weight: 530; }
.quote-mini small { display: block; font-size: 10px; color: #49623b; margin-top: 2px; }
.quote-mini .unconfirmed { background: #f1ead4; }
.quote-mini .unconfirmed span, .quote-mini .unconfirmed strong, .quote-mini .unconfirmed small { color: #7a632d; }
.service-mini, .waiting-mini { display: flex; align-items: center; gap: 10px; }
.calendar-leaf { display: flex; flex-direction: column; text-align: center; min-width: 43px; border-radius: 6px; background: #dce7f0; padding: 2px 8px 3px; }
.calendar-leaf small { font-size: 10px; color: #4d657a; }
.calendar-leaf strong { font-size: 22px; font-weight: 550; line-height: 1.2; color: #496278; }
.service-mini>div strong, .waiting-mini>div strong { font-size: 11px; font-weight: 500; display: block; color: inherit; }
.service-mini>div span, .waiting-mini>div span { font-size: 10px; display: block; margin-top: 5px; color: inherit; }
.waiting-mini>svg { width: 27px; height: 27px; color: #6a7d58; }
.work-card-foot { margin-top: auto; padding: 11px 0; display: flex; align-items: center; justify-content: space-between; font-size: 11px; border-top: 1px solid rgba(78,101,59,.12); color: inherit; }
.work-card-foot>button { padding: 0; display: inline-flex; align-items: center; gap: 4px; color: inherit; font-size: 12px; font-weight: 500; }
.work-card-foot>button svg { width: 13px; height: 13px; }
.day-workspace-foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 0 0; gap: 12px; font-size: 11px; color: #697b5e; }
.day-workspace-foot .text-button { font-size: 11px; color: #697b5e; }
.procurement-shelf { margin: 30px auto 0; max-width: 1040px; border-top: 1px solid #edf0e9; padding: 22px 0 0; display: flex; gap: 25px; align-items: center; }
.procurement-shelf>div:first-child { min-width: 190px; }
.procurement-shelf h2 { font-size: 14px; color: #455a39; font-weight: 540; }
.procurement-shelf p { font-size: 11px; color: #697b60; margin-top: 6px; }
.shelf-tools { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; flex: 1; }
.shelf-tools>button { display: flex; align-items: center; gap: 10px; text-align: left; border-radius: 9px; padding: 10px 8px; }
.shelf-tools>button:hover { background: #f4f7ef; }
.shelf-icon { display: grid; place-items: center; width: 33px; height: 37px; border-radius: 9px; flex: none; background: #e9f1df; color: #597640; }
.shelf-icon.supplier { background: #edf0f5; color: #536c86; }
.shelf-icon.quote { background: #f4eddf; color: #82683a; }
.shelf-icon svg { width: 18px; height: 18px; }
.shelf-tools strong { display: block; font-size: 13px; color: #3f4f38; font-weight: 530; }
.shelf-tools small { display: block; font-size: 11px; color: #617057; margin-top: 4px; }
.shelf-tools>button>svg { margin-left: auto; color: #687d5c; width: 12px; height: 12px; }
.page-footnote { font-size: 10px; color: #6b7961; margin-top: 28px; }

/* Progress and follow-ups are views of the same working canvas. */
.overview-intro { display: flex; align-items: center; justify-content: space-between; padding: 20px 0 17px; gap: 12px; }
.overview-intro p { font-size: 12px; color: #65755b; }
.overview-intro strong { color: #435f34; font-weight: 550; }
.overview-intro .text-button { font-size: 12px; }
.stage-ribbon { display: grid; grid-template-columns: repeat(5,1fr); border-radius: 11px; background: #f3f6ef; padding: 12px 13px; gap: 10px; margin-bottom: 12px; }
.stage-ribbon>button { display: flex; align-items: center; gap: 6px; padding: 4px; color: #5f7354; font-size: 12px; }
.stage-ribbon>button strong { margin-left: auto; color: #536d44; font-size: 13px; font-weight: 550; }
.stage-dot { width: 6px; height: 6px; background: #a4b692; border-radius: 50%; flex: none; }
.stage-1 { background: #839f73; }.stage-2 { background: #b4a474; }.stage-3 { background: #7d9bb3; }.stage-4 { background: #9994ab; }
.overview-item { display: flex; width: 100%; text-align: left; align-items: center; gap: 18px; padding: 14px 1px; border-bottom: 1px solid #edf1e8; }
.overview-item:hover { background: #fbfcf9; }
.overview-item-name { min-width: 0; flex: 1; }
.overview-item-name strong { font-size: 12px; color: #456237; font-weight: 500; }
.overview-item-name small { display: block; font-size: 11px; color: #687d5d; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.overview-stage-track { display: flex; gap: 3px; width: 113px; flex: none; }
.overview-stage-track i { height: 5px; flex: 1; border-radius: 3px; background: #e9eee3; }
.overview-stage-track i.past { background: #aec29d; }.overview-stage-track i.current { background: #70915a; }
.overview-stage { color: #5c784c; font-size: 12px; width: 55px; flex: none; }
.overview-item>svg { width: 13px; height: 13px; color: #6d855e; }
.follow-stream { display: grid; }
.follow-stream-item { display: flex; align-items: center; gap: 17px; padding: 19px 0; border-bottom: 1px solid #ecf0e6; }
.follow-stream-time { align-self: start; color: #687d5b; min-width: 42px; font-size: 12px; position: relative; padding-top: 2px; }
.follow-stream-time i { display: block; width: 6px; height: 6px; background: #a7b48c; border-radius: 50%; margin-top: 9px; }
.follow-stream-item.red .follow-stream-time i { background: #bf7c60; }
.follow-stream-item.blue .follow-stream-time i { background: #7b9bb6; }
.follow-stream-item>div { flex: 1; }
.follow-stream-title { color: #49643a; font-size: 13px; font-weight: 530; padding: 0; text-align: left; }
.follow-stream-item p { font-size: 12px; color: #65785a; margin-top: 6px; line-height: 1.9; max-width: 62ch; }
.follow-stream-item .btn { font-size: 12px; color: #557048; background: #f5f8ef; border: 0; }
.progress-brief { display: flex; gap: 23px; align-items: center; font-size: 12px; color: var(--muted); padding: 0 0 25px; }
.progress-brief>span { display: flex; align-items: center; gap: 6px; }
.progress-brief strong { font-size: 14px; font-weight: 550; color: #425f33; }
.progress-brief-risk { color: #996143; }
.progress-brief .text-button { margin-left: auto; font-size: 12px; }
.progress-bottom-note { margin-top: 16px; font-size: 12px; }
.filter-bar { margin-bottom: 19px; }
.filter-input-wrap { border-color: #e4e9df; border-radius: 8px; }
.filter-select { border-color: #e4e9df; font-size: 12px; border-radius: 8px; }
.filter-input-wrap input { font-size: 12px; }
.view-switch { border: 0; background: #f3f6ee; padding: 3px; }
.view-switch button { font-size: 12px; color: #526b45; }
.view-switch button.active { background: #fff; color: #3f6830; box-shadow: 0 1px 4px #263b1d0c; }
.kanban { gap: 15px; grid-template-columns: repeat(4,minmax(200px,1fr)); }
.kanban-col { background: #f5f7f1; padding: 13px 10px; border-radius: 12px; }
.kanban-col:nth-child(2) { background: #f1f6ee; }.kanban-col:nth-child(3) { background: #f0f4f7; }.kanban-col:nth-child(4) { background: #f5f2f7; }
.kanban-head { padding: 2px 4px 16px; font-size: 12px; color: #536c47; }
.kanban-head span:last-child { color: #536d46; }
.kanban-card { border: 0; border-radius: 9px; background: #fff; padding: 17px 14px; margin-bottom: 11px; box-shadow: 0 3px 9px #23341a04; }
.kanban-card:hover { box-shadow: 0 5px 14px #23341a0b; transform: translateY(-2px); }
.kanban-card h3 { font-size: 13px; line-height: 1.7; margin-top: 11px; margin-bottom: 8px; }
.kanban-card p { font-size: 12px; color: #627656; }.kanban-card .kanban-bottom { font-size: 11px; color: #627656; }
.items-countline { display: flex; gap: 13px; font-size: 12px; color: #687c5d; margin-bottom: 15px; }
.items-countline span:first-child { color: #4d6d3d; }
.purchase-gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; }
.purchase-card { padding: 19px 19px 0; background: #f7f9f3; border-radius: 12px; overflow: hidden; }
.purchase-card:nth-child(3n+2) { background: #f2f6ef; }.purchase-card:nth-child(3n) { background: #f1f5f8; }
.purchase-card.at-risk { background: #faf0e9; }
.purchase-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; color: #526b45; margin-bottom: 14px; }
.purchase-card-meta>span:first-child { display: flex; gap: 5px; align-items: center; }.purchase-card-meta svg { width: 13px; height: 13px; }
.purchase-card-title { display: block; padding: 0; font-size: 16px; font-weight: 550; line-height: 1.7; color: #3a552e; min-height: 54px; text-align: left; }
.purchase-card-title:hover { text-decoration: underline; text-underline-offset: 4px; }
.purchase-card-states { display: flex; gap: 5px; flex-wrap: wrap; margin: 13px 0; }
.purchase-card>p { font-size: 12px; line-height: 1.9; color: #5e7453; min-height: 42px; }
.purchase-card-bottom { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid #dee7d6; margin-top: 17px; }
.purchase-card-bottom>span { font-size: 11px; color: #4f6b42; display: flex; align-items: center; gap: 6px; }
.purchase-card-bottom i { font-size: 10px; font-style: normal; border-radius: 50%; display: grid; place-items: center; width: 19px; height: 19px; background: #e2eada; color: #466532; }
.purchase-card .icon-btn { width: 25px; height: 25px; color: #5e7b4d; }
.table-wrap { border-color: #e5eae0; border-radius: 12px; }
.data-table th { background: #f8faf5; font-size: 12px; color: var(--muted); }
.data-table td { border-color: #edf0e8; padding-top: 16px; padding-bottom: 16px; }
.data-table .item-name { font-weight: 470; }
.data-table tbody tr:hover { background: #fcfdf9; }
.reminder-full { border: 0; border-radius: 12px; background: #f7f9f3; margin-bottom: 15px; padding: 23px; }
.reminder-full:first-child { background: #faf2eb; }
.reminder-full:nth-child(3) { background: #f0f5f8; }
.reminder-full .inline-info { background: #ffffff80; border-radius: 7px; }
.reminder-full h3 { font-size: 15px; font-weight: 530; }
.reminder-full .reminder-copy { font-size: 12px; max-width: 65ch; color: #627456; }
.aside-note { background: #f4f7ef; border-radius: 12px; }
.tabs { gap: 24px; }.tabs button { font-size: 12px; }
.suppliers-grid { gap: 18px; }.supplier-card { border: 0; background: #f7f9f4; border-radius: 12px; padding: 22px; }
.supplier-card:nth-child(3n+2) { background: #f2f6f8; }.supplier-card:nth-child(3n) { background: #f8f5ec; }
.supplier-card:hover { background: #f0f5e9; }
.supplier-top { margin-bottom: 17px; gap: 12px; }.company-avatar { border-radius: 9px; background: #e5eddf; color: #4f6b3d; }
.supplier-top h3 { font-size: 15px; font-weight: 540; }.supplier-top p { font-size: 11px; color: #526a45; }
.supplier-card p.description { color: #5e7450; line-height: 1.9; font-size: 12px; min-height: 47px; }
.supplier-data { border-color: #e0e7d9; font-size: 11px; color: #526d42; }.supplier-data strong { color: #4f703d; font-size: 12px; }
.supplier-bottom .btn { background: #fff9; border: 0; color: #49693b; }.supplier-bottom .btn.soft { background: #e4eedc; }
.search-hero { max-width: 830px; padding: 21px 0 30px; }.search-hero h2 { font-size: 30px; color: #3f5534; font-weight: 540; }
.search-hero>p { color: #667c59; }.sourcing-input { border-radius: 19px; padding: 19px; box-shadow: 0 8px 25px #334e2205; }
.sourcing-input textarea { font-size: 14px; }.sourcing-examples { gap: 8px; margin-top: 14px; }.sourcing-examples button { background: #f0f5e9; color: #4c693a; padding: 6px 10px; }
.sourcing-categories { gap: 16px; }.category-card { border: 0; background: #f0f5e8; border-radius: 12px; padding: 20px 17px; }.category-card:nth-child(2) { background: #eff4f8; }.category-card:nth-child(3) { background: #f8f2e7; }
.category-card:hover { background: #e6efd9; }.category-icon { background: transparent; color: #658448; }.category-card p { color: #536d42; }
.source-empty { border: 0; border-radius: 15px; background: #f8faf4; padding: 35px; }
.candidate { border-color: #e2e9dc; border-radius: 13px; }.candidate-visual { height: 102px; background: #edf3e5; color: #607c49; }
.candidate-visual.blue { background: #eaf1f6; color: #5b7890; }.candidate-visual.sand { background: #f5efdf; color: #897043; }
.candidate-body { padding: 20px; }.candidate h3 { font-size: 16px; }.candidate-description { color: #5f794e; }.candidate-facts strong { color: #4c6e37; }
.quote-context { border: 0; background: #f5f8ef; border-radius: 12px; padding: 21px; }.quote-summary { border: 0; background: #edf4e4; color: #4e7039; border-radius: 10px; }
.quote-table th { background: #f2f7e9; color: #4b7034; }.quote-table .best-col { background: #f3f8ec; }.quote-table .total-row td { background: #f8faf4; }
.file-drop { border: 0; background: #f1f6e8; padding: 31px; border-radius: 16px; }.file-drop h3 { font-size: 17px; color: #4c6c35; }.file-drop p { color: #4d6b37; }
.template-tile { border: 0; background: #f5f8ef; border-radius: 11px; }.template-tile:nth-child(2) { background: #edf3f7; }.template-tile:nth-child(3) { background: #f6f0e5; }
.report-options { border: 0; background: #f4f7ed; border-radius: 13px; padding: 20px; }.report-editor { border-radius: 14px; }.report-editor-bar { background: #f8faf4; }
.report-paper { padding: 30px 35px; }.report-empty { background: #fbfcf9; }.detail-dialog { width: 620px; }.detail-top h2 { font-size: 22px; font-weight: 550; }
.form-dialog { border-radius: 17px; }.dialog-head h2 { font-size: 18px; font-weight: 550; }
.toast { left: calc(50% + 104px); background: #3d5633; font-size: 12px; }

@media(min-width:1600px) {
  body[data-view="home"] main { padding-top: 30px; }
  .ai-studio { padding-bottom: 36px; }
  .expert-intro { margin-bottom: 20px; }
  .expert-intro h1 { font-size: 35px; }
  .day-workspace { max-width: 1060px; }
  .task-row.work-card { min-height: 266px; padding-top: 20px; }
  .procurement-shelf { margin-top: 36px; max-width: 1060px; }
}
@media(max-width:1200px) {
  :root { --sidebar: 218px; }
  .sidebar { padding-left: 12px; padding-right: 12px; }
  .brand { font-size: 21px; padding-left: 9px; }
  .topbar { padding: 0 26px; }
  main { padding: 23px 27px 36px; }
  body[data-view="home"] main { padding-top: 10px; }
  .expert-intro h1 { font-size: 30px; }
  .ai-studio { max-width: 760px; padding-bottom: 25px; }
  .studio-shortcuts { gap: 7px; }
  .studio-shortcuts .quick-action { padding: 7px 8px; font-size: 11px; }
  .task-row.work-card { padding-left: 15px; padding-right: 15px; min-height: 260px; }
  .daily-card-grid { gap: 12px; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .work-card-title { font-size: 15px; }
  .quote-mini { gap: 4px; }.quote-mini>div { padding: 5px; }.quote-mini strong { font-size: 11px; }.quote-mini span { font-size: 10px; }
  .procurement-shelf { gap: 15px; }.procurement-shelf>div:first-child { min-width: 170px; }.shelf-tools { gap: 4px; }.shelf-tools>button { gap: 7px; padding: 8px 4px; }.shelf-tools>button>svg { display: none; }
  .purchase-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .toast { left: calc(50% + 109px); }
}
@media(max-width:1000px) {
  .workspace-suffix { display: none; }.recent-nav button:nth-of-type(n+3) { display: none; }
  .expert-intro h1 { font-size: 27px; }.expert-intro { gap: 15px; }.expert-avatar { width: 90px; height: 95px; }.expert-avatar img { width: 108px; height: 108px; }
  .expert-intro p { max-width: 37ch; line-height: 1.9; font-size: 12px; }
  .daily-card-grid { grid-template-columns: 1fr 1fr; }.daily-card-grid .work-card:last-child:nth-child(odd) { grid-column: 1/-1; min-height: 190px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .daily-card-grid .work-card:last-child:nth-child(odd) .work-card-top { grid-column: 1/-1; }.daily-card-grid .work-card:last-child:nth-child(odd) .work-card-title { grid-column: 1; }.daily-card-grid .work-card:last-child:nth-child(odd) .work-card-why { grid-column: 2; grid-row: 2; }.daily-card-grid .work-card:last-child:nth-child(odd) .work-card-foot { grid-column: 1/-1; }
  .procurement-shelf { display: block; }.shelf-tools { margin-top: 13px; }.shelf-tools>button { padding: 11px 4px; }
  .stage-ribbon { gap: 5px; padding: 10px; }.stage-ribbon>button { font-size: 11px; gap: 4px; }.overview-stage-track { width: 80px; }
  .overview-item { gap: 10px; }.suppliers-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:760px) {
  :root { --sidebar: 236px; }
  .sidebar { padding: 25px 17px 17px; }.sidebar-collapse { display: inline-grid; }.brand { padding-bottom: 23px; }.nav-tools-grid .nav-item { min-height: 59px; }.recent-nav button:nth-of-type(3) { display: flex; }
  .topbar { height: 57px; padding: 0 19px; }.topbar .mobile-menu { width: 26px; height: 30px; }.breadcrumb { font-size: 12px; }.top-actions { gap: 9px; }.demo-pill { font-size: 10px; }.top-user { display: none; }
  main { padding: 19px 20px 30px; }.page-head { margin-top: 7px; margin-bottom: 25px; gap: 17px; }.page-head h1 { font-size: 24px; }.page-head p { font-size: 12px; line-height: 1.85; margin-top: 8px; }.page-actions .btn { font-size: 12px; min-height: 33px; }
  body[data-view="home"] main { padding-top: 15px; }
  .ai-studio { padding-top: 5px; padding-bottom: 27px; }.expert-intro { justify-content: flex-start; gap: 13px; margin-bottom: 17px; min-height: 94px; }.expert-avatar { width: 76px; height: 88px; }.expert-avatar img { width: 96px; height: 96px; transform: translate(-8px,-2px); }
  .expert-intro h1 { font-size: 23px; line-height: 1.55; letter-spacing: -.65px; }.expert-intro h1 span { display: block; }.expert-intro p { font-size: 11px; max-width: 29ch; line-height: 1.9; margin-top: 5px; }
  .studio-composer { border-radius: 17px; padding: 15px 14px 12px; }.studio-composer textarea { font-size: 13px; line-height: 1.9; min-height: 69px; }.studio-composer .composer-footer { margin-top: 10px; gap: 7px; }.studio-composer .composer-context { display: none; }.studio-composer .send-btn { margin-left: auto; }
  .studio-shortcuts { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 12px; justify-items: stretch; }.studio-shortcuts .quick-action { font-size: 11px; justify-content: center; padding: 8px 4px; gap: 5px; background: #f4f7ef; }
  .day-workspace-head { margin-bottom: 14px; }.day-workspace-head h2 { font-size: 17px; }.day-date { font-size: 11px; }.day-save { display: none; }
  .work-tabs { gap: 20px; }.work-tabs>button[role="tab"] { font-size: 12px; padding-bottom: 11px; gap: 6px; }.work-tabs>button[role="tab"] span { font-size: 10px; }.work-compose { display: none; }
  .daily-controls { margin-top: 12px; margin-bottom: 9px; gap: 7px; }.daily-controls p { font-size: 11px; max-width: 22ch; line-height: 1.8; }.daily-status-switch { gap: 8px; }.daily-status-switch button { font-size: 10px; white-space: nowrap; }
  .daily-card-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc(100% - 31px); overflow-x: auto; gap: 12px; padding: 3px 0 12px; scroll-snap-type: x mandatory; align-items: stretch; overscroll-behavior-x: contain; }
  .task-row.work-card, .daily-card-grid .work-card:last-child:nth-child(odd) { display: flex; flex-direction: column; min-height: 252px; grid-column: auto; padding: 18px 18px 0; scroll-snap-align: start; }
  .work-card-title { font-size: 16px; min-height: 50px; }.work-card-why { font-size: 12px; }.work-card-top { margin-bottom: 12px; }.work-time { font-size: 11px; }
  .quote-mini strong { font-size: 12px; }.quote-mini span { font-size: 11px; }.quote-mini small { font-size: 10px; }.delivery-mini>span { font-size: 11px; }
  .service-mini>div strong, .waiting-mini>div strong { font-size: 12px; }.service-mini>div span, .waiting-mini>div span { font-size: 11px; }.work-card-foot { font-size: 11px; }.work-card-foot>button { font-size: 12px; }
  .day-workspace-foot { padding-top: 3px; flex-wrap: wrap; gap: 7px; }.day-workspace-foot .text-button { font-size: 10px; }
  .procurement-shelf { margin-top: 25px; padding-top: 20px; }.procurement-shelf h2 { font-size: 14px; }.procurement-shelf p { font-size: 11px; }.shelf-tools { margin-top: 13px; gap: 5px; }.shelf-tools>button { flex-direction: column; text-align: center; padding: 10px 2px; gap: 7px; }.shelf-icon { width: 34px; height: 35px; }.shelf-tools strong { font-size: 12px; }.shelf-tools small { font-size: 10px; line-height: 1.6; }
  .page-footnote { font-size: 10px; line-height: 1.9; margin-top: 24px; }
  .overview-intro { padding: 18px 0 13px; gap: 8px; }.overview-intro p { font-size: 12px; max-width: 22ch; }.overview-intro .text-button { font-size: 10px; white-space: nowrap; }
  .stage-ribbon { grid-template-columns: repeat(5,minmax(0,1fr)); padding: 11px 7px; gap: 4px; }.stage-ribbon>button { flex-wrap: wrap; justify-content: center; padding: 2px; font-size: 10px; gap: 4px; }.stage-ribbon .stage-dot { display: none; }.stage-ribbon>button strong { width: 100%; margin: 0; font-size: 15px; }
  .overview-stage-track { display: none; }.overview-item { padding: 14px 0; gap: 9px; }.overview-item-name strong { font-size: 12px; }.overview-item-name small { font-size: 10px; max-width: 30ch; }.overview-stage { font-size: 10px; width: 42px; }.overview-item>svg { width: 12px; height: 12px; }
  .follow-stream-item { gap: 10px; flex-wrap: wrap; padding: 17px 0; }.follow-stream-time { min-width: 33px; font-size: 11px; }.follow-stream-item>div { min-width: calc(100% - 52px); }.follow-stream-title { font-size: 12px; }.follow-stream-item p { font-size: 11px; line-height: 1.9; }.follow-stream-item .btn { margin-left: 43px; font-size: 11px; min-height: 30px; }
  .progress-brief { gap: 13px; flex-wrap: wrap; font-size: 12px; padding-bottom: 21px; }.progress-brief>span svg { width: 15px; height: 15px; }.progress-brief strong { font-size: 13px; }.progress-brief .text-button { font-size: 11px; margin-left: 0; }
  .filter-select { font-size: 11px; max-width: 145px; }.filter-input-wrap input { font-size: 12px; }.filter-bar { gap: 13px; }.view-switch button { font-size: 11px; }
  .kanban { grid-template-columns: repeat(4,245px); gap: 12px; }.kanban-col { min-height: 370px; }.kanban-card { padding: 16px; }.kanban-card h3 { font-size: 14px; }
  .items-countline { font-size: 11px; flex-wrap: wrap; gap: 4px 12px; }.items-countline span:last-child { font-size: 10px; }.purchase-gallery { grid-template-columns: 1fr; gap: 14px; }.purchase-card { padding: 19px 19px 0; }.purchase-card-title { min-height: 0; font-size: 17px; }.purchase-card-states { margin: 13px 0; }.purchase-card>p { min-height: 0; font-size: 12px; }.purchase-card-meta { font-size: 11px; }
  .suppliers-grid { grid-template-columns: 1fr; }.supplier-card { padding: 22px; }.supplier-card p.description { min-height: 0; }.supplier-top h3 { font-size: 16px; }
  .search-hero { padding-top: 3px; }.search-hero h2 { font-size: 24px; }.search-hero>p { font-size: 12px; }.sourcing-input { padding: 16px; border-radius: 16px; }.sourcing-input textarea { font-size: 13px; }
  .sourcing-categories { grid-template-columns: 1fr; gap: 11px; }.category-card { padding: 18px; }.candidate-visual { height: 108px; }
  .reminder-full { padding: 20px; }.reminder-full h3 { font-size: 14px; }.reminder-full .reminder-copy { font-size: 12px; }.reminder-full-footer .btn { font-size: 11px; padding: 6px 9px; }.reminder-full .inline-info { font-size: 12px; }
  .report-options { padding: 18px; }.report-paper { padding: 23px; }.toast { left: 50%; }
}
@media(prefers-reduced-motion:reduce) {
  .work-card:hover, .kanban-card:hover { transform: none; }
}

/* Conversations belong to the assistant; purchase records retain their own navigation. */
.new-task .shortcut { display: flex; }
.conversation-history { display: flex; flex-direction: column; flex: 1; min-height: 76px; margin: 2px 3px 0; }
.history-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 10px; min-height: 30px; color: var(--muted); font-size: 12px; }
.history-heading .icon-btn { width: 27px; height: 28px; color: var(--muted); }
.history-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #d2d9d2 transparent; padding-bottom: 3px; }
.history-date { color: var(--muted); font-size: 10px; padding: 12px 10px 4px; }
.history-row { display: flex; align-items: center; border-radius: 7px; margin: 2px 0; gap: 0; }
.history-row:hover { background: #ecefec; }
.history-row.active { background: #e6ece7; }
.history-open { display: flex; align-items: center; min-width: 0; flex: 1; padding: 8px 4px 8px 11px; min-height: 34px; text-align: left; color: #555f57; font-size: 12px; }
.history-open>span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-row.active .history-open { color: #294e38; font-weight: 530; }
.history-more { flex: none; width: 27px; height: 28px; margin-right: 2px; opacity: 0; color: #626c62; }
.history-row:hover .history-more, .history-row:focus-within .history-more, .history-row.active .history-more { opacity: 1; }
.history-pending { width: 5px; height: 5px; border-radius: 50%; background: var(--green); margin-left: 7px; flex: none; }
.history-empty { color: var(--muted); padding: 15px 10px; font-size: 11px; line-height: 1.8; }
.history-trash { flex: none; display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; padding: 8px 10px; text-align: left; }
.history-trash>span { margin-left: auto; }
.history-edit { display: flex; min-width: 0; align-items: center; gap: 1px; margin: 4px 0; padding: 3px; border: 1px solid #9eb3a1; border-radius: 7px; background: #fff; }
.history-edit input { min-width: 0; width: 100%; border: 0; background: transparent; font-size: 12px; padding: 5px; outline: none; }
.history-edit .icon-btn { width: 24px; height: 28px; flex: none; }
.conversation-menu { position: fixed; inset: auto; margin: 0; min-width: 172px; padding: 5px; border: 1px solid #e0e6df; border-radius: 10px; background: #fff; color: var(--ink); box-shadow: 0 8px 28px #26372a12; }
.conversation-menu:popover-open { display: grid; }
.conversation-menu::backdrop { background: transparent; }
.conversation-menu>button { display: flex; align-items: center; gap: 10px; text-align: left; font-size: 12px; padding: 9px 10px; border-radius: 6px; }
.conversation-menu>button:hover, .conversation-menu>button:focus-visible { background: #f0f4ee; }
.conversation-menu>button.menu-danger { color: #9b4a3c; }
.menu-separator { height: 1px; background: var(--line); margin: 4px 5px; }
.trash-list { display: grid; gap: 0; padding-bottom: 8px; }
.trash-list>div { display: flex; align-items: center; gap: 20px; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); }
.trash-list span { overflow-wrap: anywhere; font-size: 13px; }
.trash-list p { padding: 24px 0; color: var(--muted); font-size: 13px; }

.send-btn:disabled { opacity: 1; color: #839389; background: #e8eeea; }
.studio-composer textarea { resize: none; max-height: 160px; overflow-y: auto; }
.composer-attachments { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 8px; }
.composer-attachments>span { max-width: 100%; display: inline-flex; align-items: center; gap: 6px; background: #f2f5ef; border-radius: 6px; padding: 4px 5px 4px 8px; color: #55624e; font-size: 11px; }
.composer-attachments>span>span { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.composer-attachments .icon-btn { width: 22px; height: 22px; }
.in-conversation main { max-width: none; }
.conversation-view { max-width: 1100px; margin: 0 auto; min-height: calc(100dvh - 48px); display: flex; flex-direction: column; }
.conversation-header { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 5; background: #fff; min-height: 55px; padding: 0 0 14px; border-bottom: 1px solid var(--line); }
.conversation-heading { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.chat-expert-mark { display: grid; place-items: center; width: 32px; height: 34px; color: #49703d; background: #f0f5ec; border-radius: 9px; flex: none; }
.conversation-heading>div { min-width: 0; }
.conversation-heading>div>span { display: block; color: var(--muted); font-size: 11px; margin-bottom: 2px; }
.conversation-heading h1 { font-size: 14px; font-weight: 550; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conversation-header-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.conversation-header-actions .btn { border: 0; color: var(--muted); background: transparent; }
.conversation-header-actions .btn:hover { background: #f3f6f0; }
.conversation-header-actions .icon-btn { width: 31px; height: 33px; color: #596553; }
.conversation-messages { width: 100%; max-width: 820px; margin: 0 auto; padding: 32px 0 20px; display: flex; flex-direction: column; gap: 30px; flex: 1; }
.chat-message { min-width: 0; }
.user-message { display: flex; justify-content: flex-end; padding-left: 44px; }
.user-message-body { max-width: 85%; background: #f1f4ee; border-radius: 14px 14px 4px 14px; padding: 11px 16px; color: #34422e; font-size: 14px; line-height: 1.85; }
.user-message-body p { white-space: pre-wrap; overflow-wrap: anywhere; }
.message-attachments { display: grid; gap: 6px; padding-top: 6px; }
.message-attachments>span { display: flex; gap: 7px; align-items: center; font-size: 12px; overflow-wrap: anywhere; }
.assistant-message { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 12px; }
.chat-avatar { width: 30px; height: 34px; position: relative; }
.chat-avatar img { display: block; width: 38px; height: 38px; object-fit: contain; transform: translate(-4px,-3px); }
.assistant-message-content { min-width: 0; }
.chat-author { font-size: 12px; color: #45573d; font-weight: 550; padding: 5px 0 14px; }
.assistant-message .insight-response { border: 0; border-radius: 0; background: transparent; margin: 0; padding: 0; box-shadow: none; }
.assistant-message .insight-response h2 { font-size: 17px; font-weight: 570; line-height: 1.65; color: #2d382c; letter-spacing: -.15px; }
.assistant-message .insight-response>p { font-size: 14px; color: #414844; margin-top: 10px; line-height: 1.95; white-space: pre-wrap; overflow-wrap: anywhere; }
.assistant-message .insight-response ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 0; }
.assistant-message .insight-response li { padding: 0; border-top: 1px solid #edf0e9; }
.assistant-message .insight-response li>button { display: flex; align-items: flex-start; gap: 9px; width: 100%; padding: 12px 3px; text-align: left; color: #3d5f30; font-size: 13px; line-height: 1.9; border-radius: 5px; }
.assistant-message .insight-response li>button:hover { background: #f7f9f3; }
.assistant-message .insight-response li>button>svg { margin-top: 5px; }
.chat-quote-wrap { overflow-x: auto; margin-top: 18px; border: 1px solid #e6ebe0; border-radius: 9px; }
.chat-quote-table { border-collapse: collapse; width: 100%; font-size: 12px; font-variant-numeric: tabular-nums; }
.chat-quote-table th { background: #f7f9f2; text-align: left; padding: 10px 13px; color: #586a4d; font-weight: 500; }
.chat-quote-table td { padding: 12px 13px; border-top: 1px solid #edf0e7; color: #3d483e; }
.chat-quote-table td:last-child { font-weight: 530; }
.chat-draft { margin: 18px 0; padding: 18px 20px; border: 0; border-radius: 10px; background: #f5f8ef; color: #46573c; font-size: 13px; line-height: 1.95; white-space: pre-wrap; overflow-wrap: anywhere; }
.message-actions { display: flex; align-items: center; gap: 9px; margin-top: 5px; font-size: 10px; color: #68745f; }
.message-actions .icon-btn { width: 29px; height: 29px; color: #65745a; }
.chat-thinking { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #5f7052; padding: 2px 0 2px 42px; }
.chat-thinking>svg { margin-right: 3px; }
.chat-thinking>span { width: 3px; height: 3px; background: #8a9c7c; border-radius: 50%; }
.conversation-composer { position: sticky; bottom: 0; z-index: 4; background: #fff; width: 100%; max-width: 820px; margin: 0 auto; padding: 10px 0 0; }
.thread-composer { border-radius: 16px; padding: 15px 17px 12px; }
.thread-composer textarea { min-height: 44px; font-size: 14px; line-height: 1.8; }
.thread-composer .composer-footer { margin-top: 5px; }
.composer-key-hint { color: #68745f; display: flex; justify-content: center; align-items: center; gap: 7px; font-size: 10px; padding: 9px 0 0; }
.work-time, .day-date, .tag, .quote-mini, .data-table, .quote-table { font-variant-numeric: tabular-nums; }
.task-row.work-card { transition: box-shadow .18s, background .18s; }
.work-card:hover { transform: none; box-shadow: 0 6px 20px #344e2b08; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #86aa91; outline-offset: 3px; }
.studio-composer textarea:focus-visible { outline: 0; }
@media(hover:none) { .history-more { opacity: 1; } }
@media(max-width:760px) {
  .sidebar .nav-group { margin-bottom: 16px; }
  .sidebar .nav-tools-grid .nav-item { min-height: 52px; }
  .sidebar .new-task { margin-bottom: 16px; }
  .conversation-history { min-height: 80px; }
  .history-more { opacity: 1; width: 30px; height: 30px; }
  .history-open { min-height: 37px; }
  .in-conversation main { padding-top: 12px; }
  .conversation-view { min-height: calc(100dvh - 36px); }
  .conversation-header { gap: 7px; min-height: 50px; padding-bottom: 10px; }
  .conversation-header>.mobile-menu { flex: none; width: 27px; margin-left: -5px; }
  .chat-expert-mark, .conversation-header-actions .btn>span { display: none; }
  .conversation-heading>div>span { font-size: 10px; }
  .conversation-heading h1 { font-size: 12px; }
  .conversation-header-actions { gap: 0; }
  .conversation-header-actions .icon-btn, .conversation-header-actions .btn { min-width: 29px; width: 29px; padding: 6px; }
  .conversation-messages { padding-top: 24px; gap: 26px; }
  .user-message { padding-left: 26px; }
  .user-message-body { max-width: 94%; padding: 10px 13px; font-size: 13px; }
  .assistant-message { grid-template-columns: 24px minmax(0,1fr); gap: 9px; }
  .chat-avatar { width: 24px; }
  .chat-avatar img { width: 31px; height: 31px; transform: translate(-3px,-1px); }
  .chat-author { font-size: 11px; padding-top: 4px; padding-bottom: 12px; }
  .assistant-message .insight-response h2 { font-size: 16px; }
  .assistant-message .insight-response>p { font-size: 13px; }
  .assistant-message .insight-response li>button { font-size: 12px; }
  .chat-quote-table { font-size: 10px; }
  .chat-quote-table th, .chat-quote-table td { padding: 10px 7px; }
  .chat-draft { padding: 15px; font-size: 12px; }
  .thread-composer { border-radius: 14px; padding: 12px 13px 10px; }
  .thread-composer textarea { min-height: 44px; font-size: 13px; }
  .thread-composer .composer-footer { margin-top: 4px; }
  .composer-key-hint { display: none; }
  .composer-attachments>span>span { max-width: 235px; }
}

/* Copy cleanup: remove the old provenance/footer rows and keep the remaining actions aligned. */
.sourcing-tools{justify-content:flex-end}
.assistant-output .insight-response{padding-bottom:18px}

/* Working views start with their controls and content. There is no global title bar. */
main { max-width: none; padding: 20px 28px 28px; }
body[data-view="home"] main { max-width: 1190px; padding-top: 16px; }
.sidebar-search { margin-left: auto; width: 26px; height: 28px; }
.sidebar-search svg { width: 16px; height: 16px; }
.page-toolbar { margin: 0 0 14px; gap: 12px; align-items: center; }
.page-toolbar>.filter-group { flex-shrink: 0; }
.compact-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.compact-actions .view-switch { margin-right: 4px; }
.compact-actions .btn { min-height: 34px; }
.filter-input-wrap { padding-top: 6px; padding-bottom: 6px; }
.filter-select { padding-top: 6px; padding-bottom: 6px; }
.filter-bar .view-switch { margin-left: 0; }
.kanban { gap: 14px; }
.kanban-col { min-height: 0; padding: 12px 10px; }
.kanban-head { padding-bottom: 12px; }
.kanban-card { padding: 13px 14px; margin-bottom: 10px; }
.kanban-card h3 { margin-top: 8px; margin-bottom: 6px; }
.kanban-card .kanban-bottom { margin-top: 11px; }
.data-table td { padding-top: 11px; padding-bottom: 11px; }
.purchase-gallery, .suppliers-grid { grid-template-columns: repeat(auto-fill,minmax(270px,1fr)); gap: 14px; }
.purchase-card { padding: 15px 16px 0; }
.purchase-card-meta { margin-bottom: 10px; }
.purchase-card-title { min-height: 0; font-size: 15px; }
.purchase-card-states { margin: 10px 0; }
.purchase-card>p { min-height: 0; }
.purchase-card-bottom { margin-top: 12px; padding: 9px 0; }
.supplier-card { padding: 17px; }
.supplier-top { margin-bottom: 12px; }
.supplier-card .supplier-tags { margin-bottom: 10px; }
.supplier-card p.description { min-height: 0; margin-bottom: 12px; }
.supplier-bottom { margin-top: 12px; }

/* Reminders are compact work records; actions stay beside the related information. */
.reminder-toolbar { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); }
.reminder-tabs { flex: 1; margin: 0; border: 0; min-width: 0; }
.reminder-tabs button { padding-top: 8px; padding-bottom: 10px; }
.reminder-toolbar>[data-action="reminder-settings"] { margin-bottom: 7px; }
.reminder-list { display: grid; gap: 12px; }
.reminder-full { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px 24px; margin: 0; padding: 15px 18px; border-radius: 12px; }
.reminder-full-header { grid-column: 1; margin: 0; justify-content: flex-start; gap: 10px; }
.reminder-full h3 { font-size: 14px; }
.reminder-full .reminder-copy { grid-column: 1; max-width: none; margin: 0; line-height: 1.8; font-size: 12px; }
.reminder-meta { grid-column: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 11px; color: #5e7452; line-height: 1.7; }
.reminder-meta>svg { width: 13px; height: 13px; }
.reminder-meta>span+span { padding-left: 12px; border-left: 1px solid #cad8c1; }
.reminder-full-footer { grid-column: 2; grid-row: 1/4; display: flex; flex-direction: column-reverse; align-items: flex-end; justify-content: center; gap: 9px; margin: 0; }
.reminder-full-footer .filter-group { flex-wrap: nowrap; gap: 7px; }
.reminder-full-footer .text-button { font-size: 11px; }
.reminder-full-footer .btn { min-height: 30px; }

/* The procurement subject, rather than a repeated page title, leads the quote view. */
.quote-context { gap: 18px; padding: 12px 16px; margin: 0 0 12px; border-radius: 10px; }
.quote-subject { min-width: 0; flex: 1; }
.quote-context h3 { font-size: 15px; }
.quote-context p { margin-top: 4px; font-size: 11px; }
.quote-context-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.quote-context-actions .text-button { font-size: 11px; margin-right: 6px; }
.quote-summary { margin-bottom: 12px; padding: 9px 13px; font-size: 12px; }
.quote-table th { padding: 11px 14px; }
.quote-table td { padding: 9px 14px; }
.quote-table .value-note { margin-top: 2px; }
.quote-legend { margin-top: 10px; font-size: 11px; }

.search-hero { max-width: none; padding: 0 0 14px; }
.sourcing-input { border-radius: 14px; padding: 15px 17px; box-shadow: none; }
.sourcing-input textarea { min-height: 51px; font-size: 14px; }
.sourcing-tools { justify-content: space-between; margin-top: 10px; }
.sourcing-options { display: flex; align-items: center; gap: 8px; }
.sourcing-examples { margin-top: 10px; }
.sourcing-categories { max-width: none; margin-bottom: 0; gap: 14px; }
.candidate-grid { margin-top: 12px; }
.candidate-visual, .candidate-grid .candidate:last-child:nth-child(odd) .candidate-visual { height: 84px; }
.candidate-body { padding: 16px 18px; }
.candidate-footer { padding-bottom: 16px; }
.candidate h3 { font-size: 15px; }
.templates-section { margin-top: 24px; }
.templates-section h2 { font-size: 16px; }
.templates-section .template-grid { margin-top: 13px; }
.file-toolbar { justify-content: flex-start; }
.file-toolbar .compact-actions .filter-input-wrap { max-width: 250px; }
.report-layout { gap: 20px; }
.report-options { padding: 17px; }
.report-options-head { display: flex; align-items: center; gap: 8px; margin-bottom: 15px; }
.report-options-head h2 { font-size: 14px; font-weight: 550; }
.report-progress-link { display: flex; width: max-content; margin: 12px auto 0; font-size: 11px; }
.report-empty { padding: 40px 20px; }
.report-empty p { margin: 0 0 15px; font-size: 12px; }
.report-paper { padding: 23px 27px; }
.report-paper h2 { font-size: 18px; }

/* Preserve the approved assistant composition independently of compact business pages. */
.expert-intro { position: relative; }
.expert-intro>.mobile-menu { position: absolute; left: 0; }
.day-workspace-head { margin-bottom: 10px; }
.day-workspace-head h2 { font-size: 16px; }
.daily-controls { justify-content: flex-end; margin: 10px 0; }
.stage-ribbon { margin-top: 14px; }
.follow-stream { margin-top: 3px; }
.procurement-shelf { padding-top: 16px; margin-top: 22px; }
.shelf-tools { margin: 0; width: 100%; }
.shelf-tools>button { justify-content: flex-start; padding: 8px 12px; }

.form-more { margin: 6px 0 18px; border-top: 1px solid var(--line); }
.form-more>summary { padding: 13px 0; color: #5d6e52; font-size: 12px; cursor: pointer; }
.form-more[open]>summary { padding-bottom: 15px; }
.purchase-inline-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.purchase-context { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; font-size: 11px; color: #5e6d55; }
.purchase-context>label { display: flex; align-items: center; gap: 8px; }
.purchase-context select { max-width: 270px; }
.purchase-context>.text-button { margin-left: auto; font-size: 11px; }
.quote-item-select { max-width: 100%; width: 100%; border: 0; background: transparent; padding: 0 22px 0 0; font-size: 15px; font-weight: 550; color: #3d5134; }
.quote-column-actions { display: flex; align-items: center; gap: 9px; margin-top: 7px; }
.quote-column-actions .text-button { font-size: 11px; }
.quote-table { table-layout: fixed; min-width: calc(128px + var(--quote-cols,3)*160px); }
.quote-table th:first-child { width: 128px; min-width: 128px; }
.quote-table th:not(:first-child) { width: auto; white-space: normal; overflow-wrap: anywhere; }
.quote-table td { overflow-wrap: anywhere; }
.purchase-tool-empty { padding: 60px 20px; text-align: center; }
.purchase-tool-empty h3 { font-size: 16px; font-weight: 540; }
.purchase-tool-empty p { margin-top: 10px; font-size: 12px; color: #5d6e51; line-height: 1.8; }
@media(max-width:760px) {
  .purchase-context { align-items: flex-start; gap: 8px; padding-right: 35px; }
  .purchase-context>label { width: 100%; }
  .purchase-context select { min-width: 0; flex: 1; max-width: 100%; font-size: 11px; }
  .purchase-context>.text-button { margin-left: 0; }
  .quote-item-select { font-size: 13px; }
  .quote-column-actions { flex-wrap: wrap; gap: 5px; }
  .quote-context-actions>[data-action="open-item"] { white-space: nowrap; flex-shrink: 0; }
  .quote-context-actions>[data-action="edit-quotes"] { display: none; }
}

/* A global notification entry, without reintroducing a full-width title bar. */
.notification-trigger { position: fixed; top: 16px; right: 20px; z-index: 45; width: 34px; height: 34px; color: #626e63; background: #fff; border-radius: 9px; }
.notification-trigger:hover, .notification-trigger[aria-expanded="true"] { background: #edf3ed; color: #285e40; }
.notification-trigger>svg { width: 18px; height: 18px; }
.notification-count { position: absolute; top: 1px; right: 0; display: grid; place-items: center; min-width: 14px; height: 14px; padding: 0 3px; border-radius: 5px; background: #9d563f; color: #fff; font-size: 10px; line-height: 1; font-variant-numeric: tabular-nums; }
.notification-count[hidden] { display: none; }
main>.page-toolbar, main>.quote-context { margin-right: 48px; }
.conversation-header { padding-right: 45px; }
.notification-panel { position: fixed; inset: 57px 20px auto auto; margin: 0; padding: 0; width: 430px; max-width: calc(100vw - 32px); max-height: min(640px,calc(100dvh - 78px)); border: 1px solid #dfe6de; border-radius: 12px; background: #fff; color: var(--ink); box-shadow: 0 12px 40px #253b2b18; overflow: hidden; }
.notification-panel:popover-open { display: flex; flex-direction: column; }
.notification-panel::backdrop { background: transparent; }
.notification-header { display: flex; align-items: center; justify-content: space-between; flex: none; min-height: 52px; padding: 11px 14px 7px 18px; }
.notification-header h2 { font-size: 15px; font-weight: 570; color: #303d32; letter-spacing: 0; }
.notification-header>div { display: flex; gap: 3px; }
.notification-header .icon-btn { width: 28px; height: 30px; color: #63705f; }
.notification-tabs { display: flex; gap: 20px; flex: none; margin: 0 18px; border-bottom: 1px solid var(--line); }
.notification-tabs>button { display: inline-flex; align-items: center; gap: 6px; padding: 9px 0 11px; border-bottom: 2px solid transparent; font-size: 12px; color: #64715d; }
.notification-tabs>button[aria-selected="true"] { color: #2e6743; border-bottom-color: #4c8058; font-weight: 550; }
.notification-tabs span { min-width: 14px; text-align: center; font-size: 10px; font-variant-numeric: tabular-nums; color: #5e7153; background: #f0f4ec; border-radius: 3px; }
.notification-list { overflow-y: auto; min-height: 0; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #d5ded1 transparent; }
.notification-item { padding: 17px 18px 14px; border-bottom: 1px solid #ebeee8; }
.notification-item:last-child { border-bottom: 0; }
.notification-item-heading { display: flex; align-items: flex-start; gap: 7px; }
.notification-status { display: block; flex: none; width: 5px; height: 5px; margin-top: 8px; border-radius: 50%; background: #8e9d78; }
.notification-status.risk { background: #ba7258; }
.notification-item-heading>button { min-width: 0; padding: 0; text-align: left; font-size: 13px; font-weight: 550; line-height: 1.75; color: #303d31; }
.notification-item-heading>button:hover { text-decoration: underline; text-underline-offset: 3px; }
.notification-item-heading .tag { margin-left: auto; font-size: 10px; white-space: nowrap; flex: none; }
.notification-item>p { margin: 7px 0 8px 12px; font-size: 12px; line-height: 1.85; color: #58664f; }
.notification-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-left: 12px; font-size: 11px; color: #64715a; }
.notification-meta time { margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.notification-item-actions { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin: 10px 0 0 12px; }
.notification-item-actions>.text-button { font-size: 11px; white-space: nowrap; }
.notification-item-actions>.text-button svg { width: 12px; height: 12px; }
.notification-item-actions>div { display: flex; align-items: center; gap: 3px; }
.notification-item-actions .btn { padding: 5px 6px; min-height: 28px; font-size: 11px; border: 0; background: transparent; color: #5b6f4e; }
.notification-item-actions .btn:hover { background: #f0f5eb; }
.notification-item-actions .btn.soft { background: #edf4e8; color: #3f6b2c; }
.notification-empty { display: grid; justify-items: center; gap: 13px; padding: 54px 20px 60px; font-size: 12px; color: #637458; }
.notification-empty>svg { width: 24px; height: 24px; color: #819373; }
@media(max-width:760px) {
  .notification-trigger { top: 12px; right: 12px; width: 32px; height: 32px; }
  main>.page-toolbar, main>.quote-context { margin-right: 40px; }
  .conversation-header { padding-right: 35px; }
  .notification-panel { inset: 51px 12px auto auto; width: calc(100vw - 24px); max-width: none; max-height: min(640px,calc(100dvh - 66px)); }
  .notification-header { padding-left: 16px; padding-right: 12px; }
  .notification-tabs { margin-left: 16px; margin-right: 16px; gap: 19px; }
  .notification-item { padding: 15px 16px 13px; }
  .notification-item>p { margin-left: 0; }
  .notification-meta { margin-left: 0; font-size: 10px; }
  .notification-item-actions { margin-left: 0; gap: 5px; }
  .notification-item-actions>div { gap: 0; }
  .notification-item-actions .btn { padding-left: 5px; padding-right: 5px; min-height: 32px; }
}

@media(min-width:1600px) {
  main { padding: 20px 28px 28px; }
  body[data-view="home"] main { padding-top: 30px; }
  .procurement-shelf { margin-top: 22px; }
}
@media(max-width:1100px) {
  .page-toolbar { gap: 10px; }
  .compact-actions { flex-wrap: wrap; }
  .reminder-full { grid-template-columns: minmax(0,1fr); gap: 7px; padding: 15px 17px; }
  .reminder-full-footer { grid-column: 1; grid-row: auto; flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; margin-top: 5px; }
  .quote-context { flex-wrap: wrap; gap: 11px; }
  .quote-context-actions { margin-left: auto; }
  .supplier-card { padding: 17px; }
}
@media(max-width:760px) {
  main, body[data-view="home"] main { padding: 12px 16px 24px; }
  .brand { gap: 7px; }
  .brand .sidebar-search { margin-left: auto; }
  .brand .sidebar-collapse { margin-left: 0; }
  .page-toolbar>.mobile-menu { flex: none; align-self: flex-start; margin-top: 1px; }
  .page-toolbar>.filter-group { flex: 1; min-width: 0; flex-wrap: wrap; }
  .page-toolbar>.filter-group>.filter-input-wrap { flex-basis: 100%; max-width: none; }
  .page-toolbar .filter-select { max-width: calc(50% - 4px); flex: 1; }
  .compact-actions { width: 100%; margin-left: 0; justify-content: flex-end; gap: 7px; }
  .compact-actions .view-switch { margin-right: auto; }
  .compact-actions>[data-action="overall-summary"], .compact-actions>[data-action="go-sourcing"] { font-size: 0; width: 34px; padding: 8px; }
  .compact-actions>[data-action="overall-summary"] svg, .compact-actions>[data-action="go-sourcing"] svg { width: 15px; height: 15px; }
  .compact-actions .btn { font-size: 11px; min-height: 34px; }
  .compact-actions>[data-action="overall-summary"], .compact-actions>[data-action="go-sourcing"] { font-size: 0; }
  .kanban { gap: 12px; }
  .kanban-col { min-height: 0; }
  .kanban-card { padding: 13px 14px; }
  .purchase-gallery, .suppliers-grid { grid-template-columns: 1fr; gap: 12px; }
  .purchase-card { padding: 15px 16px 0; }
  .purchase-card-title { font-size: 16px; }
  .supplier-card { padding: 17px; }
  .reminder-toolbar { gap: 10px; flex-wrap: nowrap; margin-bottom: 12px; }
  .reminder-tabs { gap: 14px; }
  .reminder-tabs button { font-size: 11px; padding-bottom: 10px; }
  .reminder-tabs .tab-count { margin-left: 4px; }
  .reminder-toolbar>[data-action="reminder-settings"] { font-size: 0; width: 34px; min-width: 34px; padding: 8px; }
  .reminder-toolbar>[data-action="reminder-settings"] svg { width: 16px; height: 16px; }
  .reminder-full { padding: 14px 15px; gap: 7px; }
  .reminder-full h3 { font-size: 13px; }
  .reminder-full-header { gap: 7px; justify-content: space-between; }
  .reminder-full .reminder-copy { font-size: 12px; }
  .reminder-meta { gap: 5px 8px; font-size: 10px; }
  .reminder-meta>span+span { padding-left: 8px; }
  .reminder-source { display: none; }
  .reminder-full-footer { flex-wrap: wrap; margin-top: 4px; }
  .reminder-full-footer .filter-group { margin-left: auto; gap: 5px; }
  .reminder-full-footer .btn { padding: 6px 8px; min-height: 33px; font-size: 10px; }
  .reminder-full-footer .text-button { font-size: 10px; }
  .quote-context { padding: 11px 12px; gap: 10px; }
  .quote-context>.mobile-menu { align-self: flex-start; margin-left: -4px; }
  .quote-context h3 { font-size: 14px; }
  .quote-context p { font-size: 10px; line-height: 1.8; }
  .quote-context-actions { width: 100%; justify-content: flex-end; gap: 7px; }
  .quote-context-actions .text-button { margin-right: auto; font-size: 10px; }
  .quote-context-actions .btn { font-size: 10px; padding: 7px 9px; }
  .quote-summary { padding: 9px 11px; font-size: 11px; }
  .quote-table th, .quote-table td { padding: 10px 12px; }
  .search-hero { padding: 0 0 13px; }
  .sourcing-input { padding: 13px; border-radius: 13px; }
  .sourcing-input textarea { min-height: 69px; font-size: 13px; }
  .sourcing-tools { margin-top: 8px; gap: 9px; }
  .sourcing-options { gap: 5px; }
  .sourcing-options>.mobile-menu { margin-left: -5px; }
  .sourcing-options .btn { font-size: 10px; padding: 7px 8px; }
  .sourcing-tools>.btn { font-size: 11px; padding: 7px 10px; }
  .sourcing-categories { gap: 11px; }
  .candidate-grid .candidate:last-child:nth-child(odd) .candidate-visual { height: 84px; }
  .file-toolbar .segmented { flex: 1; display: flex; }
  .file-toolbar .segmented button { flex: 1; font-size: 10px; padding-left: 8px; padding-right: 8px; }
  .file-toolbar .compact-actions { flex-wrap: nowrap; }
  .file-toolbar .compact-actions .filter-input-wrap { flex: 1; max-width: none; }
  .report-options { gap: 10px; padding: 13px; }
  .report-options-head { width: 100%; margin-bottom: 0; }
  .report-options-head>.mobile-menu { margin-left: -5px; }
  .report-options-head h2 { font-size: 13px; }
  .report-options .report-progress-link { margin: 0 0 0 auto; font-size: 10px; }
  .report-empty { padding: 27px 16px; }
  .report-paper { padding: 19px; }
  .report-paper h2 { font-size: 17px; }
  .expert-intro { padding-left: 32px; gap: 10px; }
  .expert-intro>.mobile-menu { left: -4px; }
  .day-workspace-head { margin-bottom: 9px; }
  .day-workspace-head h2 { font-size: 15px; }
  .daily-controls { margin-top: 10px; margin-bottom: 9px; }
  .procurement-shelf { padding-top: 12px; margin-top: 20px; }
  .shelf-tools { margin-top: 0; }
  .shelf-tools>button { padding: 9px 2px; }
}

/* Work tools open at their source and return to the same conversation or purchase. */
.conversation-context { margin: 2px 0 28px; padding: 14px 0 15px; border-bottom: 1px solid var(--line); color: #4e5c54; }
.conversation-context>div:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.conversation-context>div:first-child>.text-button { color: #33483d; font-size: 13px; font-weight: 550; }
.conversation-context>div:first-child>span { font-size: 11px; color: #5c675f; }
.conversation-context>p { font-size: 12px; line-height: 1.8; margin: 7px 0; overflow-wrap: anywhere; }
.conversation-context>p>span { margin-left: 16px; color: #626a64; }
.context-actions { display: flex; gap: 5px; flex-wrap: wrap; margin-left: -8px; }
.composer-context { max-width: 42%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.insight-response>p { white-space: pre-line; }
.record-original { padding: 12px 0; margin: 0 0 15px; font-size: 12px; line-height: 1.8; border-bottom: 1px solid var(--line); color: #515f55; white-space: pre-wrap; overflow-wrap: anywhere; }
.record-saved { display: flex; gap: 7px; align-items: center; font-size: 12px; color: #376349; padding-top: 12px; }
.record-finish { align-items: flex-start; line-height: 1.8; }
.record-finish[hidden] { display: none; }
.record-finish>input { flex: none; margin-top: 3px; }
.purchase-picker { display: grid; }
.purchase-picker>button { position: relative; display: grid; text-align: left; gap: 5px; padding: 13px 24px 13px 2px; border-bottom: 1px solid var(--line); }
.purchase-picker>button:hover, .purchase-picker>button:focus-visible { background: #f3f6f1; }
.purchase-picker>button>strong { font-size: 13px; font-weight: 550; color: #36483c; }
.purchase-picker>button>span { font-size: 11px; line-height: 1.8; color: #5c685e; }
.purchase-picker>button>.icon { position: absolute; right: 0; top: 18px; }
.detail-dialog.tool-surface { width: min(1040px,calc(100vw - 64px)); max-width: none; display: flex; flex-direction: column; }
.detail-dialog.tool-surface:not([open]) { display: none; }
.tool-head { padding: 17px 23px; display: flex; align-items: center; justify-content: space-between; flex: none; }
.tool-head>div { display: flex; align-items: center; gap: 12px; }
.tool-head h2 { font-size: 16px; letter-spacing: 0; }
.tool-body { height: auto; flex: 1; min-height: 0; padding: 20px 23px 30px; }
.tool-body .mobile-menu { display: none; }
.tool-body .quote-context { margin: 0 0 15px; }
.tool-body .quote-context-actions { gap: 7px; flex-wrap: wrap; }
.tool-body .quote-context-actions>.text-button { white-space: nowrap; }
.tool-body .purchase-context { margin-bottom: 16px; }
.tool-body .report-layout { grid-template-columns: 185px minmax(0,1fr); gap: 18px; }
.tool-body .report-paper { padding: 20px; }
.tool-body .report-paper textarea { min-height: 470px; }
.tool-body .report-options { padding: 16px; }
.tool-body .file-toolbar { margin-top: 0; }
.tool-body .sourcing-examples { display: none; }
.tool-body .sourcing-categories { margin-top: 10px; }
.tool-body .suppliers-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.file-purchase-scope { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: 12px; color: #58655b; }
.file-purchase-scope select { max-width: min(350px,75vw); }
.tool-body .file-rows .data-table { min-width: 560px; }
@media(max-width:760px) {
 .conversation-context { padding: 8px 0 12px; margin-bottom: 19px; }
 .conversation-context>div:first-child { gap: 5px; }
 .conversation-context>div:first-child>span { width: 100%; }
 .conversation-context>p>span { display: block; margin-left: 0; }
 .composer-context { display: none; }
 .context-actions .btn { min-height: 32px; }
 .detail-dialog.tool-surface { width: 100vw; max-width: 100vw; }
 .tool-head { padding: 13px 16px; }
 .tool-body { padding: 15px 14px 24px; }
 .tool-body .suppliers-grid { grid-template-columns: 1fr; }
 .tool-body .report-layout { grid-template-columns: 1fr; }
 .tool-body .report-paper { padding: 16px; }
 .tool-body .report-options { flex-wrap: wrap; padding: 12px; }
 .tool-body .report-options .report-progress-link { display: none; }
 .tool-body .quote-item-select { max-width: 100%; }
 .tool-body .quote-context { padding: 0 0 10px; }
 .tool-body .purchase-context label { min-width: 0; width: 100%; }
 .tool-body .purchase-context select { max-width: 100%; }
 .tool-body .candidate-grid { grid-template-columns: 1fr; }
 .tool-body .candidate-footer { flex-wrap: wrap; }
 .daily-status-switch { flex-wrap: wrap; }
 .file-purchase-scope { margin-bottom: 8px; }
}

.file-toolbar .file-purchase-scope { margin:0; gap:7px; }
.file-toolbar .file-purchase-scope select { max-width:180px; }

.tool-body .quote-item-select:disabled, .tool-body [data-change="purchase-context"]:disabled { color:#354c3c; opacity:1; cursor:default; }
/* CaiMate wordmark: preserve the compact, approved workspace header. */
.brand-name{display:inline-flex;align-items:baseline;gap:6px;min-width:0;letter-spacing:-.5px}.brand-name small{font-size:11px;font-weight:500;letter-spacing:-.1px;color:#52735e}
