:root{color-scheme:light;--ink:#183c35;--text:#253b35;--muted:#65716a;--paper:#f6f7f3;--surface:#fff;--line:#dfe5de;--accent:#e05b31;--soft:#edf2eb;--selected:#eaf1eb;--danger:#a53636;--radius:12px;--font:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--text);font:15px/1.65 var(--font);-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit;color:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:var(--ink);text-underline-offset:4px}button:disabled{cursor:wait;opacity:.55}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #d6783d;outline-offset:3px}::selection{background:#f5c5a8;color:#183c35}input,textarea{caret-color:var(--accent)}svg{width:20px;height:20px;display:block;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}h1,h2,h3,p{margin:0}h1{font-size:24px;line-height:1.3;letter-spacing:-.02em}h2{font-size:23px;line-height:1.35;letter-spacing:-.02em}h3{font-size:16px;line-height:1.5}button{transition:background .16s,color .16s}button:active{transform:translateY(1px)}[hidden]{display:none!important}.skip-link{position:fixed;top:8px;left:8px;transform:translateY(-150%);z-index:99;background:white;padding:10px}.skip-link:focus{transform:none}
.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 30px;border-bottom:1px solid #294c43;background:var(--ink);color:white;gap:16px}.brand{display:flex;align-items:center;gap:14px;color:white;text-decoration:none;font-size:18px;font-weight:600;white-space:nowrap}.brand-mark{font-size:28px;font-weight:800;letter-spacing:-.06em;color:#ffaf7e;font-style:italic}.internal-label{font-size:11px;border:1px solid #718b82;padding:1px 6px;font-weight:400;color:#d1dfd5;border-radius:4px}.header-actions{display:flex;align-items:center;gap:10px}.user-label{font-size:12px;color:#d1dfd5;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.icon-button,.quiet-button,.secondary-button,.primary-button,.text-button{min-height:42px;border:0;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;gap:7px;text-decoration:none;white-space:nowrap;font-size:14px}.icon-button{width:42px;padding:9px;background:transparent}.icon-button:hover,.quiet-button:hover{background:#edf1ec}.topbar .icon-button:hover,.topbar .quiet-button:hover{background:#31564a}.quiet-button{background:transparent;padding:8px 13px}.secondary-button{border:1px solid #bdcbbf;background:white;padding:9px 14px;color:var(--ink);font-weight:500}.secondary-button:hover{background:var(--soft)}.primary-button{background:var(--ink);color:white;padding:10px 17px;font-weight:600}.primary-button:hover{background:#285849}.text-button{padding:8px;background:transparent;color:var(--ink);text-decoration:underline;text-underline-offset:4px}.topbar .quiet-button{color:#fff}.add-button{background:var(--soft)}
.workspace{display:grid;grid-template-columns:350px minmax(0,1fr);height:calc(100dvh - 76px);max-width:1720px;margin:auto}.companies-pane{display:flex;flex-direction:column;min-height:0;background:#fff;border-right:1px solid var(--line)}.pane-heading{padding:26px 24px 20px;display:flex;align-items:center;justify-content:space-between;gap:12px}.pane-heading p{font-size:12px;color:var(--muted);margin-top:5px}.search{display:flex;align-items:center;gap:9px;margin:0 20px 17px;padding:10px 12px;border:1px solid #d7dfd5;border-radius:8px;background:#f8faf7}.search svg{width:18px;height:18px;color:#788478}.search input{width:100%;border:0;background:transparent;min-width:0;outline:none;font-size:13px;line-height:24px}.search input::placeholder{color:#68746a}.filter-tabs{display:flex;padding:0 16px;gap:2px;border-bottom:1px solid var(--line)}.filter-tab{flex:1;border:0;border-bottom:2px solid transparent;background:transparent;padding:10px 3px 13px;font-size:12px;white-space:nowrap;color:#647168}.filter-tab.active{color:var(--ink);border-bottom-color:var(--ink);font-weight:600}.filter-tab span{font-size:11px;margin-left:2px;opacity:.8;font-variant-numeric:tabular-nums}.list-filters{display:flex;gap:8px;padding:12px 20px;border-bottom:1px solid var(--line)}.list-filters select{width:50%;border:0;background:#f3f6f0;font-size:12px;padding:7px 6px;border-radius:5px;min-height:34px}.company-list{overflow-y:auto;flex:1;scrollbar-width:thin;scrollbar-color:#bbc9ba transparent}.company-row{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid #e8ece5;background:#fff;padding:17px 22px;position:relative}.company-row:hover{background:#f4f7f1}.company-row.selected{background:var(--selected)}.company-row.selected .company-name{color:#164b39}.company-first-line{display:flex;align-items:center;justify-content:space-between;gap:8px}.company-name{font-size:15px;font-weight:650;line-height:1.4;overflow:hidden;text-overflow:ellipsis}.status{display:inline-flex;align-items:center;gap:5px;font-size:11px;white-space:nowrap;font-weight:500;line-height:1.7}.status:before{content:"";width:5px;height:5px;background:currentColor;border-radius:50%;flex-shrink:0}.status-needs_us{color:#a94b1d}.status-waiting{color:#5e7060}.status-in_progress,.status-evaluating{color:#245f6c}.status-paused,.status-not_submitted{color:#77735f}.status-contracted{color:#2a6948}.row-summary{color:#667267;font-size:12px;margin-top:6px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.65}.row-bottom{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#69776c;gap:8px;margin-top:10px}.owner-inline{display:flex;align-items:center;gap:5px}.owner-dot{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#e6ece0;color:#3e5842;font-size:11px;font-weight:600}.date-urgent{color:#a94b1d}.list-footer{display:flex;justify-content:space-between;gap:8px;padding:12px 20px;background:#f9fbf6;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}.loading-state,.empty-list{padding:40px 24px;text-align:center;color:var(--muted);font-size:13px}
.detail-pane{overflow-y:auto;padding:32px 42px 80px;scrollbar-width:thin;scrollbar-color:#bbc9ba transparent}.detail-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:26px}.detail-breadcrumb{font-size:12px;color:var(--muted)}.detail-actions{display:flex;gap:8px}.mobile-back{display:none}.company-title-row{display:flex;align-items:flex-start;gap:17px;margin-bottom:16px}.company-monogram{width:54px;height:54px;flex-shrink:0;background:#e4ebe0;color:var(--ink);border-radius:12px;display:grid;place-items:center;font-size:18px;font-weight:700;letter-spacing:-.03em}.company-title-block h1{font-size:31px;margin-bottom:7px;overflow-wrap:anywhere}.detail-labels{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:12px}.detail-labels .status{font-size:12px}.company-summary{max-width:70ch;font-size:15px;line-height:1.85;margin-bottom:24px;color:#4b5d51}.next-action{background:#e8efdf;border-radius:12px;padding:20px 22px;display:grid;grid-template-columns:1fr auto;gap:10px 20px;margin:0 0 26px}.next-action-label{font-size:12px;font-weight:650;color:#3b613e;margin-bottom:5px}.next-action-content{font-size:16px;font-weight:550;line-height:1.65}.next-action-meta{font-size:12px;color:#4f6a4c;margin-top:8px;display:flex;align-items:center;gap:16px;flex-wrap:wrap}.next-action .icon-button{align-self:start;color:#3b613e;background:#f8fbf2}.detail-tabs{display:flex;gap:25px;border-bottom:1px solid #d5ded1;margin-bottom:25px}.detail-tab{border:0;border-bottom:2px solid transparent;background:transparent;padding:10px 0 13px;color:#63715f;font-size:14px}.detail-tab.active{color:var(--ink);font-weight:650;border-bottom-color:var(--ink)}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.section-heading p{font-size:12px;color:var(--muted)}.timeline{padding-left:25px;position:relative}.timeline:before{content:"";position:absolute;top:12px;bottom:22px;left:6px;width:1px;background:#d0dccb}.record{position:relative;padding:0 0 25px}.record:last-child{padding-bottom:0}.record:before{content:"";position:absolute;top:7px;left:-24px;width:11px;height:11px;border:2px solid #f6f7f3;background:#71886b;border-radius:50%}.record-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:9px;font-size:12px;color:#6a776a}.record-kind{display:inline-flex;align-items:center;gap:5px;color:#3d5744;font-weight:600}.record-kind svg{width:15px;height:15px}.record-meta time{font-variant-numeric:tabular-nums}.record-content{background:#fff;border:1px solid #dce4d8;border-radius:12px;padding:18px 20px}.record-summary{white-space:pre-wrap;line-height:1.8;font-size:14px;overflow-wrap:anywhere}.record-next{margin-top:14px;padding-top:12px;border-top:1px solid #edf0e8;display:flex;gap:8px;color:#4e6749;font-size:12px}.record-next svg{flex-shrink:0;width:16px;height:16px;margin-top:2px}.record-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px;font-size:11px;flex-wrap:wrap}.record-source{display:inline-flex;align-items:center;gap:5px;font-size:12px;max-width:100%}.record-source svg{width:14px;height:14px;flex-shrink:0}.record-controls{display:flex;gap:12px;margin-left:auto}.record-controls button{border:0;background:transparent;padding:3px 0;font-size:12px;color:#667863;min-height:28px}.record-controls button:hover{text-decoration:underline}.record-controls .delete-record{color:#9b4940}.raw-text{font-size:12px;color:#64715e;margin-top:12px}.raw-text summary{cursor:pointer}.raw-text p{white-space:pre-wrap;margin-top:7px;max-height:300px;overflow-y:auto;overflow-wrap:anywhere}.seed-note{font-size:11px;color:#7b816f;margin-top:8px}.empty-detail{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:14px;color:#66745e}.empty-mark{font-weight:800;font-style:italic;font-size:50px;letter-spacing:-.06em;color:#6b8063}.empty-detail h2{font-size:22px;color:#52634b}.empty-detail p{font-size:14px}.contact-list{display:grid;gap:0;background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden}.contact{padding:20px 22px;border-bottom:1px solid var(--line)}.contact:last-child{border:0}.contact h3{font-size:16px;margin-bottom:3px}.contact-role{font-size:12px;color:var(--muted);margin-bottom:12px}.contact-actions{display:flex;flex-wrap:wrap;gap:8px 20px}.contact-actions a{display:flex;align-items:center;gap:6px;font-size:13px;overflow-wrap:anywhere;word-break:break-word;min-height:32px}.contact-actions svg{width:16px;height:16px;flex-shrink:0}.sources-heading{margin:30px 0 12px}.sources-list{display:grid;gap:10px}.source-link{display:flex;align-items:center;justify-content:space-between;gap:15px;background:white;border:1px solid var(--line);border-radius:8px;padding:13px 16px;text-decoration:none;font-size:13px}.source-link:hover{background:#edf3e8}.source-link svg{width:16px;flex-shrink:0}.info-note{font-size:12px;color:#69765f;margin-top:14px;line-height:1.8}.price-list{background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden}.price-row{padding:17px 20px;border-bottom:1px solid #e8ede1}.price-row:last-child{border:0}.price-label{font-size:12px;color:#64765f}.price-value{font-size:18px;color:var(--ink);font-weight:650;font-variant-numeric:tabular-nums;margin-top:3px}.price-note{font-size:12px;color:var(--muted);margin-top:4px;line-height:1.8}.model-strip{display:flex;gap:15px;align-items:center;margin-bottom:20px;font-size:14px}.model-strip span{font-size:12px;color:var(--muted)}.empty-section{padding:35px 16px;text-align:center;border:1px dashed #cbd8c3;border-radius:12px;font-size:13px;color:#6b795f}.error-panel{background:#fff1eb;color:#793d29;padding:22px;border-radius:12px;margin:20px;font-size:14px}.error-panel p{margin:8px 0 12px}
.editor-dialog{width:min(660px,calc(100vw - 32px));padding:0;border:0;border-radius:16px;color:var(--text);background:var(--surface);max-height:calc(100dvh - 50px);box-shadow:0 24px 100px #10271f45}.editor-dialog::backdrop{background:#0c271d73}.editor-dialog form{display:flex;flex-direction:column;max-height:calc(100dvh - 50px)}.dialog-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:24px 25px 18px;border-bottom:1px solid var(--line)}.dialog-header p{margin-top:6px;font-size:12px;color:var(--muted)}.dialog-header .icon-button{margin-top:-5px}.dialog-body{padding:22px 25px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#bdcbb4 transparent}.dialog-footer{display:flex;justify-content:flex-end;align-items:center;gap:10px;padding:15px 25px;border-top:1px solid var(--line);background:#f9fbf6}.dialog-footer>.muted:first-child{margin-right:auto;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.field{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:550;margin-bottom:19px}.field input,.field select,.field textarea{width:100%;min-height:44px;padding:11px 12px;font-size:15px;border:1px solid #cdd8c7;border-radius:8px;background:#fff;line-height:1.6;font-weight:400;min-width:0}.field textarea{resize:vertical;min-height:95px}.field input::placeholder,.field textarea::placeholder{color:#61705b}.field-help{font-weight:400;color:#69765f;font-size:11px}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.dictation-hint{display:flex;gap:8px;font-size:12px;line-height:1.8;color:#53664a;background:#f1f5ec;padding:11px 13px;border-radius:8px;margin-top:-9px}.dictation-hint svg{width:17px;min-width:17px;height:17px;margin-top:2px}.summary-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:15px 0 24px}.summary-tools .muted{font-size:11px}.inline-notice{background:#f5eedf;border-radius:8px;font-size:12px;line-height:1.8;padding:12px 14px;margin-bottom:20px;color:#775623}.muted{font-size:12px;color:var(--muted);font-weight:400}.source-editor{margin:2px 0 17px}.source-editor>summary{font-size:12px;color:#536b49;cursor:pointer;padding:5px 0;margin-bottom:12px}.form-error{color:#923d2d;background:#fff0e9;border-radius:8px;font-size:13px;padding:12px 14px;white-space:pre-line}.small-heading{margin:5px 0 15px}.small-heading .muted{margin-left:6px}.compact-dialog{width:min(560px,calc(100vw - 32px))}.toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);background:#173d32;color:#fff;padding:12px 22px;border-radius:10px;font-size:14px;z-index:100;box-shadow:0 8px 30px #1c382130;max-width:calc(100vw - 30px);text-align:center}.toast.error{background:#883e2e}.sync-error{color:#a4412b}
@media(min-width:1500px){.workspace{grid-template-columns:380px minmax(0,1fr)}.detail-pane{padding-left:58px;padding-right:58px}.company-summary{max-width:80ch}.record-content{padding:20px 23px}}
@media(max-width:1050px){.workspace{grid-template-columns:315px minmax(0,1fr)}.detail-pane{padding:25px 25px 70px}.company-row{padding:16px 18px}.pane-heading{padding:23px 20px 17px}.company-name{font-size:14px}.company-title-block h1{font-size:27px}.detail-actions .secondary-button{padding:9px 11px}.detail-top{gap:8px}.detail-breadcrumb{font-size:11px}}
@media(max-width:760px){body{font-size:15px}.topbar{height:64px;padding:0 18px;gap:10px}.brand{font-size:16px;gap:10px}.brand-mark{font-size:26px}.header-actions{gap:1px}.user-label{display:none}.topbar .quiet-button{font-size:12px;padding:8px}.workspace{height:calc(100dvh - 64px);display:block}.companies-pane{height:100%;border:0}.detail-pane{display:none;height:100%;padding:19px 18px calc(85px + env(safe-area-inset-bottom));background:var(--paper)}.workspace.show-detail .companies-pane{display:none}.workspace.show-detail .detail-pane{display:block}.pane-heading{padding:24px 20px 19px}.pane-heading h1{font-size:25px}.pane-heading p{font-size:13px}.search{padding:10px 12px}.search input{font-size:15px}.filter-tabs{padding:0 18px}.filter-tab{font-size:13px}.list-filters{padding:12px 20px}.list-filters select{font-size:13px;min-height:39px}.company-row{padding:18px 21px}.company-first-line{gap:14px}.company-name{font-size:16px}.company-row .status{font-size:12px}.row-summary{font-size:13px;margin-top:7px;-webkit-line-clamp:2}.row-bottom{font-size:12px;margin-top:11px}.owner-dot{width:22px;height:22px;font-size:11px}.list-footer{padding-bottom:calc(12px + env(safe-area-inset-bottom))}.mobile-back{display:inline-flex;width:auto;padding:7px 8px 7px 0;gap:4px;font-size:13px}.mobile-back svg{width:17px;height:17px}.detail-breadcrumb{display:none}.detail-top{margin-bottom:23px}.detail-actions{gap:5px}.detail-actions .primary-button,.detail-actions .secondary-button{font-size:12px;padding:8px 11px;min-height:40px}.detail-actions svg{width:16px;height:16px}.company-title-row{gap:13px;margin-bottom:17px}.company-monogram{width:47px;height:47px;font-size:16px;border-radius:11px}.company-title-block h1{font-size:26px}.detail-labels{gap:10px;font-size:11px}.company-summary{font-size:14px;line-height:1.85;margin-bottom:20px}.next-action{padding:17px 18px;margin-bottom:23px;grid-template-columns:1fr auto;gap:8px 10px}.next-action-content{font-size:15px}.next-action .icon-button{width:32px;min-height:32px;height:32px;padding:7px}.next-action-meta{gap:12px}.detail-tabs{gap:25px;margin-bottom:23px}.detail-tab{font-size:13px}.record-content{padding:16px}.record-summary{font-size:14px}.record-meta{font-size:11px;gap:7px}.timeline{padding-left:22px}.timeline:before{left:5px}.record:before{left:-22px}.section-heading{margin-bottom:20px}.section-heading h3{font-size:15px}.section-heading p{font-size:11px}.contact{padding:19px 17px}.contact-actions{display:grid;gap:7px}.contact-actions a{font-size:14px;min-height:36px}.price-value{font-size:17px}.editor-dialog,.compact-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border-radius:0}.editor-dialog form{height:100dvh;max-height:100dvh}.dialog-header{padding:20px 19px 17px}.dialog-header h2{font-size:21px}.dialog-body{padding:20px 19px;flex:1}.dialog-footer{padding:13px 19px calc(13px + env(safe-area-inset-bottom))}.dialog-footer>.muted:first-child{display:none}.field input,.field select,.field textarea{font-size:16px}.field-grid{gap:12px}.summary-tools{gap:6px}.summary-tools .secondary-button{font-size:13px}.summary-tools .text-button{font-size:12px}.dialog-footer .primary-button{flex:1}.dialog-footer .quiet-button{min-width:65px}.toast{bottom:calc(18px + env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

.confirmation-dialog{width:min(430px,calc(100vw - 36px));padding:24px;border:0;border-radius:14px;background:#fff;color:var(--text);box-shadow:0 20px 80px #10271f40}.confirmation-dialog::backdrop{background:#0c271d85}.confirmation-dialog h2{font-size:20px;margin-bottom:12px}.confirmation-dialog p{font-size:14px;line-height:1.85}.confirmation-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.confirmation-actions button{min-width:76px}
/* Supplier navigation and the shared conversation layout. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
html{height:100%;overflow:hidden}
body{height:var(--app-height,100dvh);min-height:0;display:flex;flex-direction:column;overflow:hidden}
.topbar{flex:0 0 76px;min-width:0}
.workspace{width:100%;height:auto;flex:1;min-height:0;min-width:0}
.companies-pane,.company-list,.detail-pane,.detail-scroll,#detail-content{min-width:0;min-height:0}
.companies-pane>.pane-heading,.companies-pane>.search,.companies-pane>.filter-tabs,.companies-pane>.list-filters,.companies-pane>.list-footer{flex-shrink:0}
.company-list{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.company-item{position:relative;border-bottom:1px solid #e2e7e1;background:#fff}
.company-item .company-row{min-height:126px;padding:17px 61px 17px 54px;border-bottom:0;background:transparent}
.company-item .company-row:hover{background:#f4f7f1}
.company-item .company-row.selected{background:var(--selected)}
.company-number{position:absolute;left:16px;top:18px;width:24px;text-align:center;color:#566b5d;font-size:15px;font-weight:650;font-variant-numeric:tabular-nums}
.company-row-body{min-width:0}
.company-first-line{flex-wrap:wrap;gap:4px 8px}
.company-name{min-width:0;overflow-wrap:anywhere}
.company-lock{position:absolute;right:9px;top:13px;display:grid;place-items:center;min-width:44px;width:44px;min-height:44px;padding:10px;border:1px solid #cbd5cd;border-radius:8px;background:#fff;color:#3f5c49}
.company-lock:hover{background:#e6ede5}
.company-lock svg{width:18px;height:18px}
.company-item.is-contact-locked{background:#f0f2f0}
.company-item.is-contact-locked .company-row{color:#58615b}
.company-item.is-contact-locked .company-row:hover{background:#e8ece8}
.company-item.is-contact-locked .company-row.selected{background:#e0e6e1}
.company-item.is-contact-locked .company-name,.company-item.is-contact-locked .status,.company-item.is-contact-locked .row-summary,.company-item.is-contact-locked .row-bottom,.company-item.is-contact-locked .date-urgent,.company-item.is-contact-locked .company-number{color:#59635c}
.company-item.is-contact-locked .owner-dot{background:#dfe5e0;color:#4e5d53}
.company-item.is-contact-locked .company-lock{background:#e2e7e3;color:#3e5748;border-color:#b9c7bc}
.contact-lock-label,.contact-lock-note{display:inline-flex;align-items:center;gap:5px;color:#59635c;font-size:12px;font-weight:600}
.contact-lock-label svg,.contact-lock-note svg{width:14px;height:14px}
.detail-pane{display:flex;flex-direction:column;padding:0;overflow:hidden}
.detail-scroll{flex:1;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#bbc9ba transparent;padding:28px 36px 30px;scroll-padding-block:18px}
.detail-pane>.empty-detail{flex:1;padding:30px}
.detail-top{margin-bottom:19px;flex-wrap:wrap}
.detail-actions{min-width:0;flex-wrap:wrap;margin-left:auto}
.company-title-block{min-width:0}
.detail-labels{flex-wrap:wrap;gap:5px 12px}
.company-title-row{margin-bottom:15px}
.company-title-block h1{font-size:29px}
.company-summary{max-width:72ch;font-size:15px;line-height:1.75;overflow-wrap:anywhere}
.company-overview{margin:0 0 18px;background:#edf2e9;border:1px solid #d5e0d0;border-radius:10px;overflow:hidden}
.company-overview>summary{position:relative;display:flex;align-items:baseline;gap:12px;min-height:48px;padding:12px 42px 12px 16px;cursor:pointer;list-style:none}
.company-overview>summary::-webkit-details-marker{display:none}
.company-overview>summary::after{content:"";position:absolute;right:18px;top:18px;width:8px;height:8px;border-right:1.5px solid #4f6751;border-bottom:1.5px solid #4f6751;transform:rotate(45deg)}
.company-overview[open]>summary::after{transform:rotate(225deg);top:22px}
.company-overview[open]>summary{border-bottom:1px solid #d5e0d0}
.company-overview[open] .overview-preview{display:block;-webkit-line-clamp:unset;overflow:visible}
.overview-body{padding-top:12px}
.overview-label{flex-shrink:0;font-size:13px;font-weight:650;color:#3f5c42}
.overview-preview{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:14px;line-height:1.6;overflow-wrap:anywhere;color:#415744}
.company-overview .company-summary{margin:15px 16px}
.company-overview .next-action{margin:0 16px 16px;padding:14px 16px;background:#e2ebd9}
.next-action{padding:16px 18px;margin-bottom:20px;min-width:0}
.next-action-content{font-size:15px;overflow-wrap:anywhere}
.next-action .icon-button{width:44px;height:44px;min-height:44px}
.detail-tabs{gap:24px;margin-bottom:20px}
.detail-tab{min-height:44px}
.conversation-locked-notice{display:flex;align-items:flex-start;gap:8px;padding:10px 13px;background:#e9ede9;border:1px solid #ccd6ce;border-radius:8px;color:#4d5f52;font-size:14px;line-height:1.65;margin:0 0 16px;overflow-wrap:anywhere}
.conversation-locked-notice svg{width:18px;height:18px;flex-shrink:0;margin-top:3px}
/* Expanded email and record text remains in the history's own scroll flow. */
.timeline{display:flex;flex-direction:column;gap:13px;padding:0;max-width:880px;margin:0 auto}
.timeline::before,.record::before{display:none}
.record{position:relative;width:min(92%,74ch);max-width:100%;padding:0;align-self:flex-start}
.record.message-outbound{align-self:flex-end}
.record.message-internal{width:min(96%,78ch)}
.record-fold{background:#fff;border:1px solid #d8e1d4;border-radius:12px;overflow:hidden}
.message-inbound .record-fold{border-top-left-radius:4px}
.message-outbound .record-fold{background:#e5eedf;border-color:#c8d8c1;border-top-right-radius:4px}
.record-fold>summary{position:relative;cursor:pointer;list-style:none;padding:13px 41px 14px 16px;min-height:75px}
.record-fold>summary::-webkit-details-marker{display:none}
.record-fold>summary:focus-visible{outline:2px solid #326f53;outline-offset:-3px;border-radius:10px}
.record-fold .record-meta{margin-bottom:6px;font-size:12px;gap:4px 9px;color:#5e6f5c;line-height:1.65}
.record-kind{color:#3d5744}
.record-preview{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:15px;line-height:1.65;overflow-wrap:anywhere}
.record-chevron{position:absolute;right:16px;top:28px;color:#586d54;font-size:18px;line-height:1}
.record-fold[open] .record-chevron{transform:rotate(180deg);top:17px}
.record-fold[open]>summary{min-height:48px;padding-bottom:11px;border-bottom:1px solid #dce4d8;background:#f6f9f2}
.message-outbound .record-fold[open]>summary{background:#dfead8}
.record-fold[open] .record-preview{display:none}
.record-content{padding:15px 16px;border:0;border-radius:0;background:transparent}
.record-summary{font-size:15px;line-height:1.8;overflow-wrap:anywhere}
.record-original{margin-top:17px;padding-top:14px;border-top:1px solid #dfe7d9}
.record-original h4{font-size:13px;font-weight:600;color:#586b52;margin:0 0 8px}
.record-original p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.85;color:#40543e}
.record-next{font-size:14px;overflow-wrap:anywhere}
.record-footer{margin-top:8px}
.record-controls{gap:6px;flex-wrap:wrap}
.record-controls button{padding:8px;min-width:44px;min-height:44px;font-size:14px;color:#536a4b}
.record-source{min-height:44px;overflow-wrap:anywhere}
.raw-text p{max-height:none;overflow:visible}
.sources-fold{margin-top:24px}
.sources-fold>summary,.source-editor>summary{min-height:44px;cursor:pointer}
.source-link{overflow-wrap:anywhere;min-height:44px}
.source-link>span{min-width:0}
.contact-actions a{min-height:44px}
/* The composer is a flex sibling of history, keeping input in reach. */
.quick-composer{display:flex;flex-direction:column;flex:0 1 auto;min-height:0;max-height:min(55%,360px);margin:0;padding:11px 26px max(12px,env(safe-area-inset-bottom));border:0;border-top:1px solid #c9d5c4;border-radius:0;background:#f3f6ef;box-shadow:none;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b5c6ac transparent}
.quick-composer:focus-within{border-color:#98b28f;box-shadow:none}
.quick-composer>.composer-heading,.quick-composer>.composer-draft-row,.quick-composer>.composer-toolbar{flex-shrink:0}
.composer-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:7px}
.composer-heading h3{font-size:13px;font-weight:600}
.composer-heading span{font-size:12px;color:#526b49;overflow-wrap:anywhere}
.composer-heading:has(#quick-status:empty){display:none}
.composer-draft-row{display:flex;align-items:flex-end;gap:8px;min-width:0}
.composer-draft-row>textarea,.quick-composer>textarea{display:block;flex:1;min-width:0;width:100%;min-height:44px;max-height:104px;resize:vertical;border:1px solid #c8d5bf;border-radius:8px;outline:0;background:#fff;padding:9px 11px;font:inherit;font-size:16px;line-height:1.55;color:var(--text)}
.composer-draft-row>textarea:focus{border-color:#54804b;outline:2px solid #7f9f7138;outline-offset:0}
.composer-draft-row>.primary-button{flex-shrink:0;min-height:44px;padding:9px 14px;font-size:15px}
.voice-mode-button{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:44px;min-width:44px;min-height:44px;padding:10px;border:1px solid #bfcdb8;border-radius:8px;background:#fff;color:#365a35}
.voice-mode-button:hover{background:#e5eddf}
.voice-mode-button svg{width:21px;height:21px}
.voice-capture-panel{flex:1;min-width:0;width:100%}
.voice-button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:9px 12px;border:1px solid #bbceb2;background:#e7eedf;color:#34572d;border-radius:8px;font-size:15px;font-weight:550;line-height:1.45;white-space:normal;text-align:center;touch-action:manipulation}
.voice-capture-panel .voice-button{width:100%}
.voice-transcript{flex:0 1 auto;min-height:0;max-height:5.5em;margin-top:6px;padding:7px 9px;overflow-y:auto;overscroll-behavior:contain;background:#e8efdf;border-radius:6px;color:#405a37;white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:1.6}
.voice-button svg{width:18px;height:18px;flex-shrink:0}
.voice-button.listening{color:#8c3025;background:#f9e5de;border-color:#cf9a8e}
.composer-toolbar{display:flex;align-items:center;justify-content:space-between;gap:4px 12px;flex-wrap:wrap;margin-top:3px}
.quick-composer>.composer-toolbar:has(.quick-options[open]){flex-shrink:1;min-height:44px;max-height:185px;overflow-y:auto;overscroll-behavior:contain}
.composer-left,.composer-right{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0}
.composer-right{margin-left:auto}
.composer-left>select{min-width:0;max-width:125px;min-height:44px;border:0;background:transparent;font-size:14px;color:#4e6845;padding:7px 5px}
.composer-toolbar .text-button{font-size:14px;min-height:44px;padding:8px}
.quick-options{font-size:14px;color:#506747;margin:0}
.quick-options>summary{display:flex;align-items:center;min-height:44px;padding:7px 8px;cursor:pointer;list-style:none}
.quick-options>summary::-webkit-details-marker{display:none}
.quick-options[open]{flex-basis:100%}
.quick-options[open]>summary{width:fit-content}
.quick-option-fields{display:grid;grid-template-columns:1fr 1.3fr 1fr;gap:10px;margin:3px 0 8px;max-height:165px;overflow-y:auto;overscroll-behavior:contain}
.quick-option-fields label{display:grid;gap:4px;font-size:13px;min-width:0}
.quick-option-fields input,.quick-option-fields select{border:1px solid #ccd7c5;border-radius:6px;background:#fff;padding:8px;min-width:0;width:100%;max-width:100%;min-height:44px;font:inherit;font-size:15px}
.quick-summary{display:block;flex:0 1 auto;min-height:44px;max-height:min(180px,25dvh);overflow-y:auto;overscroll-behavior:contain;padding:0 2px 2px;border-top:1px solid #d7e0d0;margin-top:4px;scrollbar-width:thin;scrollbar-color:#b5c6ac transparent}
.quick-summary>summary{min-height:44px;padding:8px 3px;cursor:pointer;font-size:14px;font-weight:600;color:#47653d}
.quick-summary label{display:block;font-size:14px;color:#4e6845;margin:6px 0}
.quick-summary textarea,.quick-summary input{display:block;background:#fff;border:1px solid #ccd7c5;border-radius:6px;padding:9px;resize:vertical;min-width:0;width:100%;min-height:44px;max-height:112px;font:inherit;font-size:16px;line-height:1.65;margin-bottom:6px}
.composer-error{color:#903a2b;font-size:14px;margin-top:6px;line-height:1.6;overflow-wrap:anywhere}
.quick-composer :disabled{opacity:.6}
.quick-composer textarea:disabled{opacity:1;color:#52664c;background:#f4f6ef}
.icon-button,.quiet-button,.secondary-button,.primary-button,.text-button{min-height:44px}
.icon-button{width:44px}
@media(min-width:1500px){.detail-scroll{padding-left:54px;padding-right:54px}.quick-composer{padding-left:44px;padding-right:44px}}
@media(min-width:761px) and (max-width:1050px){.detail-scroll{padding:22px 23px 26px}.quick-composer{padding-left:18px;padding-right:18px}.company-item .company-row{padding-left:49px;padding-right:57px}.company-number{left:13px}.company-lock{right:7px}.company-title-block h1{font-size:26px}}
@media(max-width:760px){
  body{font-size:16px}
  .topbar{flex-basis:64px;height:64px;padding:0 max(12px,env(safe-area-inset-right)) 0 max(12px,env(safe-area-inset-left));gap:8px}
  .brand{font-size:16px;gap:6px;min-width:0}
  .brand-mark{font-size:24px;letter-spacing:-.04em}
  .internal-label{font-size:16px;padding:0 4px}
  .header-actions{flex-shrink:0;gap:0}
  .topbar .quiet-button{font-size:16px;padding:8px}
  .workspace{height:auto;min-height:0;display:block}
  .companies-pane{height:100%}
  .detail-pane{display:none;height:100%;padding:0}
  .workspace.show-detail .detail-pane{display:flex}
  .detail-scroll{padding:13px max(13px,env(safe-area-inset-right)) 20px max(13px,env(safe-area-inset-left));scroll-padding-block:12px}
  .pane-heading{padding:18px 16px 13px}
  .pane-heading h1{font-size:24px}
  .search{margin:0 14px 12px;min-height:46px;padding:8px 11px}
  .search input{font-size:16px}
  .filter-tabs{padding:0 10px;gap:0}
  .filter-tab{font-size:16px;min-height:48px;min-width:0;padding:9px 2px;white-space:normal;line-height:1.4}
  .filter-tab span{font-size:16px;margin-left:1px}
  .list-filters{padding:9px 14px;gap:7px}
  .list-filters select{font-size:16px;min-height:44px;padding:8px 6px;min-width:0}
  .company-item .company-row{min-height:145px;padding:15px 58px 16px 45px}
  .company-number{left:11px;top:16px;font-size:16px}
  .company-lock{top:11px;right:7px}
  .company-name{font-size:17px;line-height:1.5}
  .company-first-line{gap:3px 8px}
  .row-summary{font-size:16px;line-height:1.6;margin-top:5px}
  .row-bottom{font-size:16px;flex-wrap:wrap;gap:5px 8px;margin-top:8px;line-height:1.5}
  .owner-dot{width:24px;height:24px;font-size:16px}
  .company-row .status,.contact-lock-label,.contact-lock-note{font-size:16px;line-height:1.5}
  .list-footer{font-size:16px;padding:9px 14px max(10px,env(safe-area-inset-bottom));flex-wrap:wrap}
  .detail-top{gap:5px 8px;margin-bottom:10px;align-items:flex-start}
  .mobile-back{min-height:44px;font-size:16px;padding:7px 3px 7px 0;gap:3px}
  .detail-actions{gap:4px;justify-content:flex-end}
  .detail-actions .primary-button,.detail-actions .secondary-button{font-size:16px;min-height:44px;padding:8px}
  .detail-actions svg{width:17px;height:17px}
  .company-title-row{gap:11px;margin-bottom:12px}
  .company-monogram{width:44px;height:44px;font-size:17px;border-radius:10px}
  .company-title-block h1{font-size:25px;line-height:1.35;margin-bottom:4px}
  .detail-labels,.detail-labels .status{font-size:16px;line-height:1.55;gap:3px 10px}
  .company-overview{margin-bottom:10px}
  .company-overview>summary{display:block;min-height:48px;padding:10px 35px 10px 12px}
  .company-overview>summary::after{right:15px;top:17px}
  .company-overview[open]>summary::after{top:21px}
  .overview-label{display:block;font-size:16px;line-height:1.55}
  .overview-preview{font-size:16px;line-height:1.55;margin-top:3px}
  .company-overview .company-summary{margin:12px;font-size:16px}
  .company-overview .next-action{margin:0 11px 12px;padding:12px}
  .next-action-label,.next-action-content,.next-action-meta{font-size:16px;line-height:1.6}
  .next-action{gap:7px;grid-template-columns:minmax(0,1fr) auto}
  .next-action-meta{gap:5px 12px}
  .detail-tabs{gap:20px;margin-bottom:14px;flex-wrap:wrap}
  .detail-tab{font-size:16px;padding:8px 0 10px;min-height:44px}
  .conversation-locked-notice{font-size:16px;padding:9px 11px;margin-bottom:12px}
  .timeline{gap:12px}
  .record{width:94%}
  .record.message-internal{width:100%}
  .record-fold>summary{padding:11px 32px 12px 12px;min-height:80px}
  .record-fold .record-meta{font-size:16px;gap:3px 8px;line-height:1.5;margin-bottom:6px}
  .record-kind svg{width:16px;height:16px}
  .record-preview,.record-summary,.record-next,.record-original h4,.record-original p,.record-source,.record-controls button{font-size:16px}
  .record-chevron{right:12px;top:26px}
  .record-content{padding:12px}
  .record-original{margin-top:14px;padding-top:12px}
  .record-original p{line-height:1.8}
  .record-controls{gap:5px}
  .record-controls button{padding:8px 10px}
  .section-heading{margin-bottom:14px;flex-wrap:wrap;gap:4px}
  .section-heading h3{font-size:17px}
  .section-heading p,.pane-heading p,.loading-state,.empty-list,.company-summary,.empty-detail p,.contact-role,.contact-actions a,.source-link,.info-note,.price-label,.price-note,.model-strip,.model-strip span,.empty-section,.error-panel,.raw-text,.seed-note{font-size:16px}
  .contact{padding:17px 14px}
  .contact-actions{display:grid;gap:5px}
  .contact-actions a{font-size:16px;min-height:44px;line-height:1.6}
  .contact-list,.price-list{border-radius:10px}
  .price-row{padding:15px 14px}
  .price-value{font-size:20px;overflow-wrap:anywhere}
  .source-link{padding:12px;gap:8px}
  .quick-composer{max-height:55%;padding:8px max(10px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left))}
  .composer-draft-row{gap:6px}
  .composer-draft-row>textarea,.quick-composer>textarea{font-size:16px;min-height:44px;max-height:88px;padding:9px 10px;line-height:1.5}
  .composer-draft-row>.primary-button{font-size:16px;padding:9px 11px}
  .voice-mode-button{width:44px;min-width:44px;min-height:44px}
  .voice-button{font-size:16px;padding:9px 7px;gap:5px}
  .voice-button svg{width:17px;height:17px}
  .composer-heading{margin-bottom:5px}
  .composer-heading h3,.composer-heading span,.composer-left>select,.composer-toolbar .text-button,.quick-options,.quick-options>summary,.quick-option-fields label,.quick-option-fields input,.quick-option-fields select,.quick-summary>summary,.quick-summary label,.quick-summary textarea,.quick-summary input,.composer-error{font-size:16px}
  .composer-toolbar{margin-top:2px;gap:0 5px}
  .composer-left,.composer-right{gap:2px}
  .composer-left>select{max-width:117px;padding:7px 3px}
  .composer-toolbar .text-button,.quick-options>summary{padding:7px}
  .quick-option-fields{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;max-height:130px}
  .quick-option-fields label:last-child{grid-column:1/-1}
  .quick-summary{max-height:min(150px,22dvh);margin-top:3px}
  .quick-summary textarea{max-height:96px}
  .editor-dialog form{min-height:0}
  .dialog-header,.dialog-footer{flex-shrink:0}
  .dialog-body{min-height:0}
  .dialog-header p,.field,.field-help,.dictation-hint,.summary-tools .muted,.inline-notice,.muted,.source-editor>summary,.form-error,.summary-tools .secondary-button,.summary-tools .text-button,.dialog-footer button,.confirmation-dialog p,.confirmation-actions button,.toast{font-size:16px}
  .field-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
  .summary-tools{gap:5px}
}
@media(max-width:360px){
  .topbar{gap:5px}
  .brand{gap:4px}
  .company-item .company-row{padding-right:55px;padding-left:42px}
  .company-number{left:9px}
  .detail-scroll{padding-left:11px;padding-right:11px}
  .detail-actions .secondary-button{gap:4px}
  .detail-tabs{gap:18px}
  .record{width:96%}
  .voice-capture-panel .voice-button{overflow-wrap:anywhere}
}
@media(max-height:520px) and (max-width:760px){
  .topbar{flex-basis:52px;height:52px}
  .quick-composer{max-height:60%;padding-top:5px;padding-bottom:max(5px,env(safe-area-inset-bottom))}
  .quick-summary{max-height:80px}
  .quick-option-fields{max-height:85px}
  .composer-heading{margin-bottom:3px}
  .detail-scroll{padding-top:10px;padding-bottom:14px}
}
/* Equal side slots keep the shared title centered when actions differ in width. */
.topbar{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);column-gap:12px}
.header-start{display:flex;align-items:center;justify-self:start;min-width:0}
.header-back{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:68px;min-height:44px;padding:8px 10px;border:1px solid #769485;border-radius:8px;background:#2b5144;color:#fff;font-size:16px;font-weight:600;line-height:1.5;white-space:nowrap}
.header-back svg{width:19px;height:19px;flex-shrink:0}
.header-back:hover{background:#3a6553;border-color:#a2b9a9}
.brand{justify-self:center;gap:10px;min-width:0}
.brand-title{display:inline-flex;align-items:center;justify-content:center;gap:8px}
.header-actions{justify-self:end;justify-content:flex-end;min-width:0;max-width:100%;gap:6px}
.header-actions>.user-label{min-width:0;flex:0 1 240px}
.header-actions>button{flex-shrink:0}
/* Seven static bars become a listening indicator only after capture begins. */
.voice-wave{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;gap:2px;width:28px;height:20px;color:currentColor}
.voice-wave>span{display:block;flex:0 0 2px;width:2px;height:18px;border-radius:2px;background:currentColor;transform-origin:center;transform:scaleY(var(--wave-level,.35))}
.voice-wave>span:nth-child(1){--wave-level:.3;--wave-delay:-.56s}
.voice-wave>span:nth-child(2){--wave-level:.55;--wave-delay:-.16s}
.voice-wave>span:nth-child(3){--wave-level:.78;--wave-delay:-.68s}
.voice-wave>span:nth-child(4){--wave-level:1;--wave-delay:-.32s}
.voice-wave>span:nth-child(5){--wave-level:.78;--wave-delay:-.8s}
.voice-wave>span:nth-child(6){--wave-level:.55;--wave-delay:-.42s}
.voice-wave>span:nth-child(7){--wave-level:.3;--wave-delay:-.08s}
.voice-button-label{min-width:0;overflow-wrap:anywhere}
button[data-phase="listening"] .voice-wave>span{animation:voice-listening .96s ease-in-out var(--wave-delay,0s) infinite;will-change:transform}
@keyframes voice-listening{0%,100%{transform:scaleY(.25)}28%{transform:scaleY(.78)}52%{transform:scaleY(.4)}76%{transform:scaleY(1)}}
details.record-original{padding-top:0}
details.record-original>summary{position:relative;display:flex;align-items:center;min-height:44px;padding:9px 27px 9px 0;list-style:none;cursor:pointer;color:#48633f;font-size:14px;font-weight:600;line-height:1.6}
details.record-original>summary::-webkit-details-marker{display:none}
details.record-original>summary::after{content:"";position:absolute;right:5px;top:16px;width:8px;height:8px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg)}
details.record-original[open]>summary::after{top:20px;transform:rotate(225deg)}
.record-raw{white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal}
@media(max-width:760px){
  .topbar{padding-right:max(10px,env(safe-area-inset-right));padding-left:max(10px,env(safe-area-inset-left));column-gap:4px}
  .header-back{min-width:68px;gap:4px;padding:8px}
  .brand{gap:0;line-height:1.25}
  .brand-title{gap:4px;font-size:16px;line-height:26px}
  .brand-mark{font-size:22px;line-height:26px}
  .brand .internal-label{display:none}
  .header-actions{gap:0}
  .header-actions>.quiet-button{padding:8px;font-size:16px}
  details.record-original>summary{font-size:16px}
}
@media(prefers-reduced-motion:reduce){
  button[data-phase="listening"] .voice-wave>span{animation:none;will-change:auto;transform:scaleY(var(--wave-level,.35))}
}
/* The chat shell keeps supplier tools nearby without occupying the conversation. */
.chat-shell{--text:#2c302d;--muted:#656c66;--paper:#fff;--surface:#fff;--line:#e4e7e2;--soft:#f2f4f0;--selected:#e8ede7;--accent:#315f49;background:#fff;color:var(--text)}
.chat-shell::selection,.chat-shell ::selection{background:#d9e7d9;color:#183c35}
.chat-shell .topbar{position:relative;z-index:40;height:60px;flex-basis:60px;padding:0 20px;column-gap:12px;background:#fff;color:#303a33;border-bottom:0}
.chat-shell .brand{color:#303a33;font-size:16px;font-weight:600}
.chat-shell .brand-title{gap:6px}
.chat-shell .brand-mark{color:var(--ink);font-size:23px;letter-spacing:-.04em}
.chat-shell .internal-label{color:#606f64;border-color:#cbd4cc}
.chat-shell .nav-toggle{display:inline-flex;align-items:center;justify-content:center;min-width:44px;width:44px;min-height:44px;padding:10px;border:0;border-radius:10px;background:transparent;color:#4e5c52}
.chat-shell .nav-toggle:hover,.chat-shell .topbar .icon-button:hover,.chat-shell .topbar .quiet-button:hover{background:#eff2ed}
.chat-shell .nav-toggle[aria-expanded="true"]{background:#e8ede7;color:var(--ink)}
.chat-shell .header-actions{gap:3px}
.chat-shell .header-actions>.icon-button{color:#536158}
.chat-shell .header-menu{position:relative;min-width:44px}
.chat-shell .header-menu>summary{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:8px;border-radius:10px;list-style:none;cursor:pointer;color:#536158;font-size:16px;line-height:1.5}
.chat-shell .header-menu>summary::-webkit-details-marker{display:none}
.chat-shell .header-menu>summary:hover,.chat-shell .header-menu[open]>summary{background:#eff2ed}
.chat-shell .header-menu:not([open]) .header-menu-panel{display:none}
.chat-shell .header-menu-panel{position:absolute;right:0;top:calc(100% + 6px);z-index:60;display:grid;gap:3px;min-width:200px;width:max-content;max-width:min(280px,calc(100vw - 24px));padding:8px;background:#fff;border-radius:12px;box-shadow:0 8px 28px #1d2b2026;color:var(--text)}
.chat-shell .header-menu-panel .user-label{display:block;max-width:100%;min-width:0;padding:8px 10px;color:#657068;font-size:14px;white-space:normal;overflow-wrap:anywhere}
.chat-shell .header-menu-panel #export{display:flex;justify-content:flex-start;width:100%;min-height:44px;padding:9px 10px;color:#35473a;font-size:16px;background:transparent}
.chat-shell .header-menu-panel #export:hover{background:#eff2ed}
.chat-shell .workspace{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1fr);width:100%;max-width:none;min-height:0;margin:0;background:#fff}
.chat-shell .workspace .companies-pane{display:none;min-width:0;min-height:0;height:100%;background:#f7f7f6;border-right:1px solid #e7e9e5}
.chat-shell .workspace.sidebar-open{grid-template-columns:300px minmax(0,1fr)}
.chat-shell .workspace.sidebar-open .companies-pane{display:flex}
.chat-shell .workspace .detail-pane{display:flex;min-width:0;min-height:0;height:100%;padding:0;overflow:hidden;background:#fff}
.chat-shell .sidebar-scrim{display:none}
.chat-shell .pane-heading{padding:18px 16px 14px}
.chat-shell .pane-heading h1{font-size:21px}
.chat-shell .pane-heading p{font-size:13px;color:#687268}
.chat-shell .search{margin:0 12px 12px;background:#fff;border-color:#e0e5dc}
.chat-shell .filter-tabs{padding:0 10px}
.chat-shell .filter-tab{min-height:44px;padding:9px 2px;font-size:13px;color:#626f62}
.chat-shell .filter-tab.active{color:var(--ink);border-bottom-color:#65826b}
.chat-shell .list-filters{padding:10px 12px;gap:6px}
.chat-shell .list-filters select{min-width:0;min-height:44px;background:#eef1e9;font-size:13px}
.chat-shell .company-item{background:transparent;border-bottom:0;margin:2px 7px;border-radius:10px;overflow:hidden}
.chat-shell .company-item .company-row{min-height:120px;padding:13px 52px 13px 41px;background:transparent}
.chat-shell .company-item .company-row:hover{background:#edf1e8}
.chat-shell .company-item .company-row.selected{background:#e7ede2}
.chat-shell .company-number{left:10px;top:14px;font-size:14px;color:#657461}
.chat-shell .company-name{font-size:15px;line-height:1.5}
.chat-shell .company-first-line{gap:3px 6px}
.chat-shell .company-row .status{font-size:12px}
.chat-shell .company-lock{right:4px;top:7px;border:0;background:transparent;color:#536c52}
.chat-shell .company-lock:hover{background:#e1e9da}
.chat-shell .row-summary{font-size:13px;line-height:1.65;margin-top:4px;color:#677363}
.chat-shell .row-bottom{font-size:12px;line-height:1.6;flex-wrap:wrap;gap:4px 8px;margin-top:7px}
.chat-shell .owner-dot{background:#e4eade;color:#4d6247}
.chat-shell .company-item.is-contact-locked{background:transparent}
.chat-shell .company-item.is-contact-locked .company-row{background:#f0f2ee}
.chat-shell .company-item.is-contact-locked .company-row:hover{background:#e9ece5}
.chat-shell .company-item.is-contact-locked .company-row.selected{background:#e3e8de}
.chat-shell .company-item.is-contact-locked .company-lock{background:transparent;border:0;color:#5b6959}
.chat-shell .list-footer{background:#f7f7f6;border-top:0;padding:10px 12px max(12px,env(safe-area-inset-bottom));font-size:12px;color:#687268}
.chat-shell .conversation-header{flex:0 1 auto;align-self:center;width:calc(100% - 48px);max-width:760px;max-height:45%;min-height:0;margin:0 auto;padding:15px 0 10px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c8d0c5 transparent}
.chat-shell .conversation-title{display:flex;align-items:center;justify-content:space-between;gap:4px 14px;flex-wrap:wrap;min-width:0}
.chat-shell .conversation-header h1{margin:0 0 4px;font-size:23px;font-weight:650;line-height:1.45;overflow-wrap:anywhere}
.chat-shell .detail-company-number{color:#748070;font-weight:450}
.chat-shell .conversation-header .detail-labels{gap:4px 10px;color:#6b756a;font-size:13px;line-height:1.6}
.chat-shell .conversation-header .status{font-size:13px}
.chat-shell .company-context{min-width:0;margin-top:5px}
.chat-shell .company-context>summary{position:relative;display:flex;align-items:center;width:fit-content;min-height:44px;padding:8px 23px 8px 0;list-style:none;cursor:pointer;color:#63745e;font-size:14px;line-height:1.6}
.chat-shell .company-context>summary::-webkit-details-marker{display:none}
.chat-shell .company-context>summary::after{content:"";position:absolute;right:4px;top:16px;width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg)}
.chat-shell .company-context[open]>summary::after{top:20px;transform:rotate(225deg)}
.chat-shell .company-context-body{max-height:max(72px,min(40dvh,calc(var(--app-height,100dvh) - 240px),360px));min-width:0;padding:14px 2px 16px;margin-top:2px;border-top:1px solid #e8ebe3;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c4cebd transparent}
.chat-shell .company-context .company-overview{margin:0 0 16px;background:transparent;border:0;border-radius:0}
.chat-shell .company-context .company-overview>summary{padding-left:0;background:transparent}
.chat-shell .company-context .company-summary{margin:0 0 16px;color:#59615a;font-size:15px;line-height:1.8}
.chat-shell .company-context .overview-body{padding-top:12px}
.chat-shell .company-context .next-action{margin:0 0 18px;padding:0;background:transparent;border:0;border-radius:0}
.chat-shell .company-context .next-action-label{color:#63775a;font-size:13px}
.chat-shell .company-context .next-action-content{color:#384d30;font-size:15px}
.chat-shell .company-context .next-action-meta{color:#66795c;font-size:13px}
.chat-shell .company-context .detail-actions{justify-content:flex-start;margin:0 0 16px}
.chat-shell .company-context .secondary-button{border-color:#d7ded1;background:#fff;font-size:14px}
.chat-shell .company-context .detail-tabs{margin:0 0 14px;gap:22px;border-bottom-color:#e0e6d9}
.chat-shell .company-context .contact-list,.chat-shell .company-context .price-list{background:transparent;border:0;border-radius:0}
.chat-shell .company-context .contact,.chat-shell .company-context .price-row{padding:13px 0;border-bottom-color:#e3e8dd}
.chat-shell .company-context .source-link{padding:12px 0;background:transparent;border:0;border-bottom:1px solid #e3e8dd;border-radius:0}
.chat-shell .context-fold{margin-top:8px;border-top:1px solid #e5e9e0}
.chat-shell .context-fold>summary{position:relative;display:flex;align-items:center;min-height:44px;padding:9px 25px 9px 0;list-style:none;cursor:pointer;color:#5f6c59;font-size:15px;line-height:1.6}
.chat-shell .context-fold>summary::-webkit-details-marker{display:none}
.chat-shell .context-fold>summary::after{content:"";position:absolute;right:4px;top:16px;width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg)}
.chat-shell .context-fold[open]>summary::after{top:20px;transform:rotate(225deg)}
.chat-shell .conversation-locked-notice{background:transparent;border:0;border-radius:0;padding:0;margin:8px 0;color:#6a7566;font-size:14px}
.chat-shell .detail-scroll{flex:1;min-height:96px;padding:18px 24px 26px;background:#fff;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scroll-padding-block:16px}
.chat-shell #detail-content{width:100%;max-width:760px;margin:0 auto}
.chat-shell .timeline{width:100%;max-width:760px;margin:0 auto;gap:23px}
.chat-shell .record{width:100%;max-width:100%;align-self:flex-start}
.chat-shell .record.message-outbound,.chat-shell .record.message-internal{width:min(90%,690px);align-self:flex-end}
.chat-shell .record-fold{background:#fff;border:0;border-radius:18px}
.chat-shell .message-outbound .record-fold,.chat-shell .message-internal .record-fold{background:#f1f2f0;border:0;border-radius:18px}
.chat-shell .record-fold>summary,.chat-shell .record-fold[open]>summary{min-height:44px;padding:10px 38px 8px 16px;background:transparent;border:0}
.chat-shell .message-inbound .record-fold>summary{padding-left:4px}
.chat-shell .record-fold .record-meta{margin:0 0 3px;gap:3px 9px;color:#687168;font-size:13px;line-height:1.65}
.chat-shell .record-kind{color:#65715f;font-weight:500}
.chat-shell .record-preview{color:#3e453f;font-size:16px;line-height:1.8}
.chat-shell .record-chevron,.chat-shell .record-fold[open] .record-chevron{right:15px;top:16px;color:#788670}
.chat-shell .record-content{padding:0 16px 9px;background:transparent}
.chat-shell .message-inbound .record-content{padding:0 4px 6px}
.chat-shell .record-summary{font-size:16px;line-height:1.85;color:#303630}
.chat-shell .record-next{padding-top:0;margin-top:10px;border:0;font-size:14px;color:#526c47}
.chat-shell details.record-original{margin-top:11px;padding-top:0;border-top-color:#dce3d4}
.chat-shell details.record-original>summary{font-size:14px;font-weight:500;color:#66715f}
.chat-shell .record-original p{color:#525d4d;font-size:15px;line-height:1.85}
.chat-shell .record-footer{margin-top:2px}
.chat-shell .record-controls{gap:2px}
.chat-shell .record-controls button{min-height:44px;min-width:44px;padding:8px;font-size:13px;color:#6b7564}
.chat-shell .quick-composer{align-self:center;width:calc(100% - 48px);max-width:760px;max-height:min(55%,360px);margin:0 auto max(14px,env(safe-area-inset-bottom));padding:10px 12px;border:1px solid #e2e5dd;border-radius:24px;background:#f4f5f2;box-shadow:none}
.chat-shell .quick-composer:focus-within{border-color:#a7b69e;box-shadow:none}
.chat-shell .composer-draft-row{gap:7px;align-items:flex-end}
.chat-shell .composer-draft-row>textarea{min-height:46px;max-height:116px;padding:10px 7px;border:0;border-radius:12px;background:transparent;font-size:16px;line-height:1.65;resize:vertical}
.chat-shell .composer-draft-row>textarea:focus{border:0;outline:0}
.chat-shell .composer-draft-row>textarea:focus-visible{outline:2px solid #879e7a;outline-offset:-2px}
.chat-shell .voice-mode-button{border:0;border-radius:50%;background:transparent;color:#536b47}
.chat-shell .voice-mode-button:hover{background:#e1e8da}
.chat-shell .composer-draft-row>.primary-button{min-height:44px;padding:9px 13px;border-radius:22px;background:var(--ink);font-size:15px}
.chat-shell .voice-button{min-height:44px;background:#fff;border:1px solid #dce3d3;border-radius:20px;color:#466637;font-size:15px}
.chat-shell .voice-button.listening{background:#faefeb;border-color:#e3c6bc;color:#8c3c31}
.chat-shell .voice-transcript{background:transparent;color:#59704d;border-radius:0;padding:6px 7px;margin-top:4px}
.chat-shell .composer-heading{margin:0 6px 5px}
.chat-shell .composer-heading span{color:#5f7751;font-size:14px}
.chat-shell .composer-toolbar{margin-top:0;gap:0 6px}
.chat-shell .composer-left>select{color:#657b57;background:transparent;font-size:14px}
.chat-shell .composer-toolbar .text-button,.chat-shell .quick-options>summary{color:#607651;font-size:14px;padding:8px}
.chat-shell .quick-summary{max-height:min(180px,25dvh);margin:0 2px 6px;padding:3px 2px 4px;border-top-color:#dce4d3}
.chat-shell .quick-summary>summary{color:#45653a;font-size:15px}
.chat-shell .quick-summary label{color:#5c754d;font-size:14px}
.chat-shell .quick-summary textarea,.chat-shell .quick-summary input,.chat-shell .quick-option-fields input,.chat-shell .quick-option-fields select{border-color:#d5dfca;border-radius:10px;background:#fff}
.chat-shell .composer-error{margin:4px 6px 0;font-size:14px}
.chat-shell .empty-detail{background:#fff;color:#6b7862}
.chat-shell .empty-mark{display:none}
.chat-shell .empty-detail h2{font-size:24px;font-weight:600;color:#40533a}
.chat-shell .empty-detail p{font-size:16px;line-height:1.8}
@media(max-width:760px){
  .chat-shell .topbar{height:calc(56px + env(safe-area-inset-top));flex-basis:calc(56px + env(safe-area-inset-top));padding:env(safe-area-inset-top) max(10px,env(safe-area-inset-right)) 0 max(10px,env(safe-area-inset-left));column-gap:4px}
  .chat-shell .brand-mark{font-size:22px}
  .chat-shell .header-actions{gap:0}
  .chat-shell .header-menu-panel .user-label{font-size:16px}
  .chat-shell .workspace,.chat-shell .workspace.sidebar-open{display:grid;grid-template-columns:minmax(0,1fr)}
  .chat-shell .workspace .companies-pane{position:absolute;inset:0 auto 0 0;z-index:30;width:min(88vw,320px);height:100%;border:0;border-radius:0 14px 14px 0;box-shadow:8px 0 28px #18251b1a}
  .chat-shell .workspace.sidebar-open .sidebar-scrim{position:absolute;inset:0;z-index:20;display:block;width:100%;height:100%;min-height:44px;padding:0;border:0;border-radius:0;background:#14211947}
  .chat-shell .workspace .detail-pane{display:flex;grid-column:1;grid-row:1;height:100%}
  .chat-shell .pane-heading h1{font-size:22px}
  .chat-shell .pane-heading p,.chat-shell .filter-tab,.chat-shell .filter-tab span,.chat-shell .list-filters select{font-size:16px}
  .chat-shell .filter-tab{min-width:0;white-space:normal;line-height:1.4}
  .chat-shell .company-item .company-row{min-height:142px;padding-left:41px;padding-right:52px}
  .chat-shell .company-number,.chat-shell .company-name,.chat-shell .company-row .status,.chat-shell .row-summary,.chat-shell .row-bottom,.chat-shell .list-footer{font-size:16px}
  .chat-shell .company-number{top:14px}
  .chat-shell .company-lock{top:8px}
  .chat-shell .conversation-header{width:calc(100% - 28px);padding:9px 0 5px;max-height:45%}
  .chat-shell .conversation-header h1{font-size:21px;line-height:1.45}
  .chat-shell .conversation-header .detail-labels,.chat-shell .conversation-header .status,.chat-shell .company-context>summary,.chat-shell .context-fold>summary{font-size:16px}
  .chat-shell .company-context{margin-top:0}
  .chat-shell .company-context-body{padding-top:12px;max-height:max(64px,min(40dvh,calc(var(--app-height,100dvh) - 240px),300px))}
  .chat-shell .company-context .company-summary,.chat-shell .company-context .next-action-label,.chat-shell .company-context .next-action-content,.chat-shell .company-context .next-action-meta,.chat-shell .company-context .secondary-button,.chat-shell .conversation-locked-notice{font-size:16px}
  .chat-shell .detail-scroll{min-height:80px;padding:14px 14px 22px;scroll-padding-block:12px}
  .chat-shell .timeline{gap:19px}
  .chat-shell .record.message-outbound,.chat-shell .record.message-internal{width:94%}
  .chat-shell .record-fold>summary,.chat-shell .record-fold[open]>summary{padding:10px 32px 8px 13px}
  .chat-shell .message-inbound .record-fold>summary{padding-left:0}
  .chat-shell .record-fold .record-meta,.chat-shell .record-summary,.chat-shell .record-next,.chat-shell details.record-original>summary,.chat-shell .record-original p,.chat-shell .record-controls button{font-size:16px}
  .chat-shell .record-fold .record-meta{gap:3px 8px;line-height:1.55}
  .chat-shell .record-content{padding:0 13px 7px}
  .chat-shell .message-inbound .record-content{padding-left:0;padding-right:0}
  .chat-shell .record-summary,.chat-shell .record-original p{line-height:1.8}
  .chat-shell .quick-composer{width:calc(100% - 20px);max-height:55%;margin-bottom:max(8px,env(safe-area-inset-bottom));padding:8px;border-radius:23px}
  .chat-shell .composer-draft-row{gap:4px}
  .chat-shell .composer-draft-row>textarea{min-height:44px;max-height:96px;padding:9px 5px;font-size:16px}
  .chat-shell .composer-draft-row>.primary-button{font-size:16px;padding:9px 11px}
  .chat-shell .voice-button{font-size:16px;padding:9px 7px;gap:5px}
  .chat-shell .composer-heading span,.chat-shell .composer-left>select,.chat-shell .composer-toolbar .text-button,.chat-shell .quick-options>summary,.chat-shell .quick-summary>summary,.chat-shell .quick-summary label,.chat-shell .composer-error{font-size:16px}
  .chat-shell .composer-left>select{max-width:117px}
  .chat-shell .quick-summary{max-height:min(150px,22dvh)}
}
@media(max-height:520px) and (max-width:760px){
  .chat-shell .conversation-header{padding-top:4px;padding-bottom:2px;max-height:38%}
  .chat-shell .conversation-header h1{font-size:20px;margin-bottom:0}
  .chat-shell .company-context>summary{padding-top:6px;padding-bottom:6px}
  .chat-shell .company-context-body{max-height:80px}
  .chat-shell .detail-scroll{min-height:56px;padding-top:10px;padding-bottom:14px}
  .chat-shell .quick-composer{max-height:55%;padding-top:5px;padding-bottom:5px;margin-bottom:max(5px,env(safe-area-inset-bottom))}
  .chat-shell .quick-summary{max-height:80px}
}
/* Scroll direction hides chrome in normal flow; its contents stay measurable. */
.chat-shell .topbar{height:52px;max-height:52px;min-height:0;flex-basis:52px;padding-block:0;overflow:visible;transition:max-height .18s ease,flex-basis .18s ease,padding .18s ease}
.chat-shell #list-chrome{flex:0 1 auto;min-height:0;max-height:min(320px,55%);margin:0;padding:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c0cbb8 transparent;transition:max-height .18s ease,padding .18s ease}
.chat-shell .compact-list-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:52px;padding:4px 12px}
.chat-shell .compact-list-bar h1{min-width:0;margin:0;font-size:19px;font-weight:600;line-height:1.4}
.chat-shell .list-heading-actions{display:flex;align-items:center;gap:2px;flex-shrink:0}
.chat-shell .list-heading-actions .icon-button{width:44px;min-width:44px;min-height:44px;padding:10px;border-radius:10px;background:transparent;color:#53674d}
.chat-shell .list-heading-actions .icon-button:hover,.chat-shell #search-toggle[aria-expanded="true"]{background:#e7ece2;color:var(--ink)}
.chat-shell #list-tools{min-width:0;padding:0 0 2px}
.chat-shell #company-search{min-height:44px;margin:0 12px 8px;padding:8px 10px}
.chat-shell #company-search input{font-size:16px;line-height:26px}
.chat-shell #list-tools .filter-tabs{padding:0 10px}
.chat-shell #list-tools .filter-tab{padding:8px 2px;min-height:44px}
.chat-shell #list-tools .list-filters{padding:8px 12px}
.chat-shell .conversation-header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:0 12px;flex:0 1 auto;min-height:0;max-height:65px;padding:3px 0;margin:0 auto;overflow:hidden;transition:max-height .18s ease,flex-basis .18s ease,padding .18s ease}
.chat-shell .conversation-title{justify-content:flex-start;gap:0 10px;min-width:0}
.chat-shell .conversation-header h1{flex:0 1 auto;min-width:0;max-width:100%;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:20px;line-height:1.3}
.chat-shell .conversation-header .status{flex-shrink:0;line-height:1.4}
.chat-shell .conversation-header .company-context{min-width:0;margin:0}
.chat-shell .conversation-header .company-context>summary{min-height:44px;padding:7px 20px 7px 0;line-height:1.4;white-space:nowrap}
.chat-shell .conversation-header:has(.company-context[open]){grid-template-columns:minmax(0,1fr);max-height:45%;overflow-y:auto}
.chat-shell .conversation-header .company-context[open]{grid-column:1/-1}
.chat-shell .conversation-header .company-context-body{max-height:none;margin-top:0;overflow:visible}
body.chat-shell.chrome-collapsed .topbar{height:0;max-height:0;min-height:0;flex-basis:0;padding-block:0;margin-block:0;border:0;overflow:hidden;pointer-events:none}
body.chat-shell.chrome-collapsed #detail>.conversation-header{max-height:0;min-height:0;flex-basis:0;padding-block:0;margin-block:0;border:0;overflow:hidden;pointer-events:none}
.chat-shell aside.list-chrome-collapsed #list-chrome{max-height:0;min-height:0;padding:0;margin:0;border:0;overflow:hidden;pointer-events:none}
.chat-shell .chrome-reveal{position:fixed;z-index:65;top:max(8px,env(safe-area-inset-top));left:max(8px,env(safe-area-inset-left));display:inline-flex;align-items:center;justify-content:center;width:44px;min-width:44px;min-height:44px;padding:10px;border:1px solid #d5decf;border-radius:12px;background:#fff;color:#405d36;box-shadow:none}
.chat-shell .chrome-reveal:hover{background:#edf2e8}
.chat-shell .chrome-reveal svg{width:20px;height:20px}
@media(max-width:760px){
  .chat-shell .topbar{height:calc(48px + env(safe-area-inset-top));max-height:calc(48px + env(safe-area-inset-top));flex-basis:calc(48px + env(safe-area-inset-top));padding-top:env(safe-area-inset-top)}
  .chat-shell .compact-list-bar{min-height:48px;padding:2px 10px}
  .chat-shell .compact-list-bar h1{font-size:19px}
  .chat-shell .conversation-header{max-height:65px;padding:3px 0;column-gap:9px}
  .chat-shell .conversation-title{gap:0 8px}
  .chat-shell .conversation-header h1{flex:1 1 100%;font-size:19px;line-height:1.3}
  .chat-shell .conversation-header .status{font-size:16px;line-height:1.35}
  .chat-shell .conversation-header .company-context>summary{font-size:16px}
  .chat-shell .conversation-header:has(.company-context[open]){max-height:45%}
}
@media(prefers-reduced-motion:reduce){
  .chat-shell .topbar,.chat-shell .conversation-header,.chat-shell #list-chrome{transition:none}
}
/* Keep the default view to company names, message text and one input row. */
.chat-shell .company-item .company-row{display:flex;align-items:center;min-height:56px;padding:10px 12px 10px 42px}
.chat-shell .company-number{top:50%;left:11px;transform:translateY(-50%);font-size:15px}
.chat-shell .company-row-body{width:100%}
.chat-shell .company-first-line{flex-wrap:nowrap;gap:8px;align-items:center}
.chat-shell .company-name{flex:1;min-width:0;font-size:15px;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-shell .company-row .status{flex-shrink:0;font-size:12px;line-height:1.5}
.chat-shell #list-tools{padding:0}
.chat-shell .list-filter-toggle[aria-expanded="true"]{background:#e7ece2;color:var(--ink)}
.chat-shell .list-filter-panel{margin:0;padding:3px 0 0;border-top:1px solid #e2e7dc}
.chat-shell .record-fold>summary.record-summary{display:flex;align-items:flex-start;gap:10px;min-width:0;min-height:44px;margin:0;padding:12px 14px;list-style:none;cursor:pointer;font-size:16px;line-height:1.8;white-space:normal}
.chat-shell .record-fold>summary.record-summary::-webkit-details-marker{display:none}
.chat-shell .record-fold>summary.record-summary::marker{content:""}
.chat-shell .record-fold>summary.record-summary:hover{background:#e9ede5}
.chat-shell .record-fold>summary.record-summary:focus-visible{outline:2px solid #55794a;outline-offset:-3px;border-radius:inherit}
.chat-shell .record-summary-text{flex:1;min-width:0;white-space:pre-wrap;overflow-wrap:anywhere}
.chat-shell .record-fold>summary.record-summary>svg{flex:0 0 16px;width:16px;height:16px;margin-top:6px;color:#788670;transition:transform .16s ease}
.chat-shell .record-fold[open]>summary.record-summary>svg{transform:rotate(180deg)}
.chat-shell .message-inbound .record-fold>summary.record-summary{padding:12px 0}
.chat-shell .message-inbound .record-fold>summary.record-summary:hover{background:#f6f8f3}
.chat-shell .record-tools-body{min-width:0;margin:0 14px 12px;padding:12px 0 0;border-top:1px solid #dce4d3}
.chat-shell .message-inbound .record-tools-body{margin-right:0;margin-left:0}
.chat-shell .record-tools-body .record-meta{margin:0 0 8px;line-height:1.65}
.chat-shell .record-tools-body .record-meta>*{min-width:0;overflow-wrap:anywhere}
.chat-shell .record-tools-body .record-next{margin:8px 0}
.chat-shell .record-tools-body .record-controls{justify-content:flex-end;gap:4px;margin-top:6px}
.chat-shell .record-tools-body details.record-original{margin-top:8px}
.chat-shell .record-tools-body .record-raw{min-width:0}
.chat-shell .record-tools-body .record-raw p{margin:4px 0 0}
.chat-shell .composer-settings-toggle{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;min-width:44px;min-height:44px;padding:10px;border:0;border-radius:50%;background:transparent;color:#5b704f}
.chat-shell .composer-settings-toggle:hover,.chat-shell .composer-settings-toggle[aria-expanded="true"]{background:#e2e9da;color:#3c5b2f}
.chat-shell .composer-settings-toggle svg{width:20px;height:20px}
.chat-shell .composer-settings-panel{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;flex:0 1 auto;min-height:0;max-height:min(220px,32dvh);margin:6px 2px 0;padding:10px 2px 3px;border-top:1px solid #dce4d3;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#bdcbb4 transparent}
.chat-shell .composer-settings-panel>label{display:grid;gap:4px;min-width:0;color:#5c714f;font-size:14px;line-height:1.5}
.chat-shell .composer-settings-panel input,.chat-shell .composer-settings-panel select{width:100%;max-width:100%;min-width:0;min-height:44px;padding:8px;border:1px solid #d5dfca;border-radius:9px;background:#fff;font:inherit;font-size:16px;line-height:1.5}
.chat-shell .composer-settings-panel>.text-button{align-self:end;justify-self:start;min-height:44px;padding:8px;font-size:14px}
@media(max-width:760px){
  .chat-shell .company-item .company-row{min-height:56px;padding-left:41px;padding-right:11px}
  .chat-shell .company-number,.chat-shell .company-name,.chat-shell .company-row .status{font-size:16px}
  .chat-shell .company-number{top:50%;left:10px}
  .chat-shell .company-first-line{gap:6px}
  .chat-shell .record-tools-body .record-meta{font-size:16px}
  .chat-shell .composer-settings-panel{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px;max-height:min(210px,30dvh)}
  .chat-shell .composer-settings-panel>label:last-child{grid-column:1/-1}
  .chat-shell .composer-settings-panel>label,.chat-shell .composer-settings-panel>.text-button{font-size:16px}
  .chat-shell .composer-settings-panel>label:has(input[type="date"]){grid-column:1/-1}
}
/* Dialogs follow the visible viewport while a phone keyboard is open. */
.chat-shell .confirmation-dialog{max-height:calc(var(--app-height,100dvh) - 24px);overflow-y:auto;overscroll-behavior:contain}
@media(max-width:760px),(max-height:520px) and (max-width:1024px){
  .chat-shell .editor-dialog{width:100vw;max-width:100vw;height:var(--app-height,100dvh);max-height:var(--app-height,100dvh);margin:0;border-radius:0}
  .chat-shell .editor-dialog form{height:100%;max-height:100%;min-height:0}
  .chat-shell .editor-dialog .dialog-header{flex:0 0 auto;padding:max(12px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 12px max(16px,env(safe-area-inset-left))}
  .chat-shell .editor-dialog .dialog-header h2{font-size:21px}
  .chat-shell .editor-dialog .dialog-header .icon-button{margin-top:0}
  .chat-shell .editor-dialog .dialog-body{flex:1 1 auto;min-height:0;padding:16px max(16px,env(safe-area-inset-right)) 16px max(16px,env(safe-area-inset-left));overflow-y:auto;scroll-padding-block:12px}
  .chat-shell .editor-dialog .dialog-footer{flex:0 0 auto;gap:8px;padding:10px max(16px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}
  .chat-shell .editor-dialog .field{font-size:16px;margin-bottom:16px}
  .chat-shell .editor-dialog .field input,.chat-shell .editor-dialog .field select,.chat-shell .editor-dialog .field textarea{min-width:0;min-height:44px;font-size:16px}
  .chat-shell .editor-dialog .dialog-footer button{min-height:44px;font-size:16px}
}
@media(max-width:420px){
  .chat-shell .editor-dialog .field-grid{grid-template-columns:minmax(0,1fr);gap:0}
}
