.quote-dialog16{max-width:min(1380px,96vw)}.q16-head,.q16-customer-row{display:flex;align-items:end;gap:12px;justify-content:space-between}.q16-head h2{margin:0}.q16-customer-row>.q16-search-field{flex:1}.q16-customer{padding:12px 16px;background:#f5f7f8;border-radius:10px;margin:12px 0}.q16-customer p{margin:3px 0}.q16-line{display:grid;grid-template-columns:minmax(220px,2.5fr) repeat(4,minmax(80px,1fr)) auto;gap:10px;align-items:end;padding:16px 0;border-bottom:1px solid #dce2e6}.q16-product-cell{min-width:0}.q16-product-cell>.small{margin:5px 4px 0 0}.q16-search-field{position:relative;display:block}.q16-search-field input{width:100%}.q16-results{position:absolute;z-index:70;top:100%;left:0;right:0;background:white;color:#253039;box-shadow:0 8px 26px #16232e2b;max-height:260px;overflow:auto;border-radius:8px}.q16-results:empty{display:none}.q16-results [role=option]{width:100%;display:block;text-align:left;border:0;border-bottom:1px solid #e2e8ed;border-radius:0;padding:10px 12px;background:white;color:#253039}.q16-results small{display:block}.q16-results button:focus,.q16-results button:hover{background:#fff0e0}.quote16 input,.quote16 select{min-width:0;width:100%}.quote16 .form-grid{margin:12px 0}.q16-footer{position:sticky;bottom:0;padding:14px 0;background:var(--surface,#fff);z-index:3}.quote16 [data-totals16]{margin:16px 0}.q16-document-state{color:#596974}.quote16 details{margin-top:14px}.icon-close13,.dialog-close{display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:0!important;line-height:1!important;text-align:center!important}.release12-chat .messages{min-height:360px;max-height:none;flex:1}.release12-chat .chat{display:flex;flex-direction:column;min-height:70vh}.release12-chat .composer .button,.release12-chat .composer button{font-size:12px;padding:7px 10px}.release12-chat .composer textarea{min-height:74px}.inbox-tools15>.tabs{margin:0 12px}.toolbar .q16-results{position:absolute}.toolbar .search-label{position:relative}.q16-product-cell label{margin:0}.saved-document16{background:white;color:#253039;padding:16px}.q16-customer-row button{flex-shrink:0}
:root[data-theme16=dark]{color-scheme:dark;--bg:#111a23;--surface:#1b2732;--text:#e6edf3;--muted:#afc0ce;--border:#435462}html[data-theme16=dark] body,html[data-theme16=dark] .workspace,html[data-theme16=dark] main{background:#111a23;color:#e6edf3}html[data-theme16=dark] .card,html[data-theme16=dark] dialog,html[data-theme16=dark] .wb-panel,html[data-theme16=dark] .chat,html[data-theme16=dark] .thread-list,html[data-theme16=dark] .customer,html[data-theme16=dark] .capture-body,html[data-theme16=dark] .summary-card,html[data-theme16=dark] header,html[data-theme16=dark] .q16-customer{background:#1b2732;color:#e6edf3;border-color:#435462}html[data-theme16=dark] input,html[data-theme16=dark] select,html[data-theme16=dark] textarea,html[data-theme16=dark] button:not(.primary),html[data-theme16=dark] .button:not(.primary){background:#263644;color:#e6edf3;border-color:#607384}html[data-theme16=dark] .muted,html[data-theme16=dark] .subtitle,html[data-theme16=dark] .q16-document-state{color:#b9c9d6}html[data-theme16=dark] .banner{background:#3b2a1c;color:#ffe5c8}html[data-theme16=dark] th,html[data-theme16=dark] .capture-section summary,html[data-theme16=dark] .chat-head,html[data-theme16=dark] .composer,html[data-theme16=dark] .thread{background:#202e3b;color:#e6edf3;border-color:#435462}html[data-theme16=dark] .message:not(.out),html[data-theme16=dark] .bubble:not(.out){background:#293b4b;color:#f3f7fa}html[data-theme16=dark] .badge{background:#314859;color:#ecf4fa}html[data-theme16=dark] .q16-results,html[data-theme16=dark] .q16-results button{background:#233442;color:#f1f6fa}html[data-theme16=dark] .q16-results button:focus,html[data-theme16=dark] .q16-results button:hover{background:#51402d}html[data-theme16=dark] .saved-document16,html[data-theme16=dark] .document-proof,html[data-theme16=dark] .pdf-snapshot12{background:#fff!important;color:#253039!important;color-scheme:light}
@media(max-width:1000px){.q16-line{grid-template-columns:repeat(2,minmax(90px,1fr))}.q16-product-cell{grid-column:1/-1}.q16-line>button{justify-self:end}.q16-customer-row{align-items:stretch;flex-direction:column}.q16-head{align-items:start}.quote16 .q16-footer{flex-wrap:wrap}.release12-chat .messages{min-height:44vh}}
@media(prefers-reduced-motion:reduce){.q16-results,.quote-dialog16{animation:none!important;transition:none!important}}
/* Fixed viewport inbox: give history the remaining space, keep composer reachable. */
.inbox-page15 .chat{min-height:0}.inbox-page15 .messages{min-height:80px;flex:1}.inbox-page15 .composer{max-height:44%}
[data-action="chat-opportunity15"]{width:auto!important;max-width:190px;height:auto!important;min-height:34px!important;font-size:.76rem!important;line-height:1.3;padding:6px 8px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-title12{min-width:0}.chat-title12 [data-action="chat-review16"]{font-size:1rem}
html[data-theme16=dark]{--ink:#e6edf3;--line:#435462;--dark:#1b2732}
html[data-theme16=dark] label,html[data-theme16=dark] .field-hint,html[data-theme16=dark] .thread p,html[data-theme16=dark] .stat-top,html[data-theme16=dark] .lead p,html[data-theme16=dark] .template-body,html[data-theme16=dark] .empty,html[data-theme16=dark] .activity p,html[data-theme16=dark] .line-sku15{color:#b9c9d6}
html[data-theme16=dark] .messages{background:#141f29}
html[data-theme16=dark] .bubble.out{background:#55331f;color:#fff2e6;border-color:#9b6740}
html[data-theme16=dark] .bubble .muted{color:#d1dbe2}
html[data-theme16=dark] .lane{background:#17232e}
html[data-theme16=dark] .lead,html[data-theme16=dark] .wb-panel-tabs,html[data-theme16=dark] .fab-menu13,html[data-theme16=dark] .chat-tools12>div,html[data-theme16=dark] .global-results13,html[data-theme16=dark] .line-results13,html[data-theme16=dark] .ajax-results12,html[data-theme16=dark] .response-box12{background:#22323f;color:#e6edf3;border-color:#607384}
html[data-theme16=dark] .notice,html[data-theme16=dark] .draft-file12{background:#3d3023;color:#ffe8ce;border-color:#8f6b43}
html[data-theme16=dark] .thread.active{background:#49331f!important;color:#fff2e6!important;border-left-color:#f69c57}
html[data-theme16=dark] button.active,html[data-theme16=dark] .tabs button.active{background:#50321f;color:#ffe8d2;border-color:#e99555}
html[data-theme16=dark] input::placeholder,html[data-theme16=dark] textarea::placeholder{color:#b7c6d1;opacity:1}
html[data-theme16=dark] .saved-document16,html[data-theme16=dark] .saved-document16 .q16-customer,html[data-theme16=dark] .saved-document16 th{background:#fff!important;color:#253039!important}
html[data-theme16=dark] .saved-document16 .muted{color:#51616e}
@media(max-width:760px){[data-action="chat-opportunity15"]{max-width:112px;font-size:.65rem!important}.inbox-page15 .messages{min-height:50px}.inbox-page15 .composer{max-height:53%}}
@media(max-width:760px){.inbox-tools15{display:flex;gap:6px;align-items:center}.inbox-tools15 .comment-tabs14{flex:1 0 100%;display:flex}.inbox-tools15 .comment-tabs14 button{flex:1;min-height:32px;padding:5px;font-size:.7rem}.inbox-tools15>.tabs{margin:0;gap:6px}.inbox-tools15>.tabs button{font-size:.72rem;min-height:32px;padding:5px 8px}.inbox-search15{flex:1;min-width:88px}.inbox-search15>summary{max-width:none;font-size:.72rem;margin:0}.inbox-search15[open]{flex-basis:100%}.inbox-page15 .composer textarea{min-height:58px;height:58px}.inbox-page15 .composer{max-height:55%}.inbox-page15 .compose-actions12{gap:4px}.inbox-page15 .composer .compose-actions12 button{font-size:.7rem;min-height:30px;padding:5px 7px}.inbox-page15 .chat-title12{flex-wrap:wrap}.inbox-page15 .chat-title12>strong{flex:1 0 100%;line-height:1.2}.inbox-page15 .chat-head{padding:7px}}
@media print{html[data-theme16] body,html[data-theme16] .saved-document16,html[data-theme16] .document-proof{background:white!important;color:#111!important;color-scheme:light}.q16-footer,.q16-results{display:none!important}}

.source-file161{margin:16px 0;padding:12px;border:1px solid var(--line);border-radius:10px}.source-file161 img{display:block;max-width:100%;max-height:380px;object-fit:contain;margin:auto}.source-file161 figcaption{margin:10px 0;font-size:.85rem}.source-hash161{overflow-wrap:anywhere;font-family:monospace;font-size:.78rem}.source-file161 details{margin-top:10px}
