/* v0.10.0: viewport-bounded chat on desktop AND mobile. No global inventory styling. */
body.quick-query0100{height:var(--qc-vh,100dvh);overflow:hidden;background:#fffaf5}
body.quick-query0100 #app{height:100%;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden}
body.quick-query0100 #app[hidden]{display:none}
body.quick-query0100 #main{min-height:0;width:100%;max-width:none;margin:0;padding:16px 22px;display:flex;flex-direction:column;overflow:hidden}
body.quick-query0100 #main>.breadcrumb,body.quick-query0100 #main>.heading,body.quick-query0100 #main>.tabs,body.quick-query0100 #app>footer{display:none}
body.quick-query0100 #moduleBody{min-height:0;min-width:0;flex:1;display:flex;overflow:hidden}
body.quick-query0100 .topbar{position:static;min-height:66px;padding:9px 24px;flex-shrink:0}
body.quick-query0100 .brand-button img{width:108px;height:48px;object-fit:contain}
body.quick-query0100 .brand-button span{font-size:12px}
body.quick-query0100 .top-actions{gap:8px}
body.quick-query0100 .top-actions button{min-height:40px;padding:9px 14px;font-size:12px}
body.quick-query0100 .user-pill{font-size:11px}
.qc-layout{--qc-orange:#bd5512;--qc-ink:#273732;--qc-line:#eaded3;--qc-pale:#fff2e6;display:grid;grid-template-columns:268px minmax(0,1fr);gap:16px;width:100%;height:100%;min-height:0;min-width:0;color:var(--qc-ink)}
.qc-layout button,.qc-dialog button{cursor:pointer;touch-action:manipulation}
.qc-layout button:disabled,.qc-dialog button:disabled{cursor:not-allowed;opacity:.55}
.qc-layout button:focus-visible,.qc-layout textarea:focus-visible,.qc-layout input:focus-visible,.qc-layout summary:focus-visible,.qc-dialog button:focus-visible{outline:3px solid #da853c;outline-offset:3px}
.qc-layout svg,.qc-dialog svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.qc-sr{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.qc-sidebar{display:grid;grid-template-rows:auto minmax(0,1fr) auto;border:1px solid var(--qc-line);border-radius:18px;background:#faf5ef;min-width:0;min-height:0;overflow:hidden}
.qc-sidebar-top{padding:23px 16px 15px}.qc-eyebrow{color:#a34b15;text-transform:uppercase;font-size:10px;font-weight:750;letter-spacing:1.6px}.qc-sidebar h2{font-size:21px;margin:7px 0 20px;letter-spacing:-.4px}
.qc-new{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;min-height:44px;border-radius:11px;font-size:14px;padding:10px 12px;background:#c25d18!important;color:#fff!important;box-shadow:none!important}
.qc-search-label{display:block;font-size:11px;font-weight:600;margin:22px 0 7px;color:#77716a}.qc-sidebar input{width:100%;height:40px;border:1px solid #e2d8ce;background:#fff;border-radius:10px;padding:9px 12px;font-size:13px}
.qc-history-list{min-height:0;overflow:auto;padding:0 9px 12px;overscroll-behavior:contain}.qc-history-item{display:flex;align-items:center;gap:2px;padding:4px;border:1px solid transparent;border-radius:12px;margin-bottom:6px;min-width:0}
.qc-history-item:hover{background:#f3eadd}.qc-history-item.qc-selected{background:#ffead6;border-color:#eec9a6}.qc-thread{display:flex;align-items:flex-start;text-align:left;gap:10px;background:none!important;box-shadow:none!important;border:0!important;min-width:0;flex:1;padding:10px 6px;border-radius:8px;color:#3a433e}
.qc-thread>span:first-child{padding-top:1px;color:#a57854}.qc-thread svg{width:17px;height:17px}.qc-thread-text{min-width:0}.qc-thread strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-weight:600;font-size:13px;line-height:1.45;overflow-wrap:anywhere}.qc-thread small{display:block;color:#82766b;font-size:10px;margin-top:6px}.qc-delete{width:32px;height:36px;min-height:36px;padding:7px;color:#8c7361;background:transparent;border:0!important;box-shadow:none!important}.qc-delete svg{width:16px;height:16px}.qc-delete:hover{background:#fff5ec;color:#a53e24}.qc-sidebar-foot{padding:16px 18px;border-top:1px solid #e9dfd4;color:#786f65;font-size:12px;line-height:1.55}.qc-sidebar-foot small{font-size:10px;color:#8b8177}.qc-no-history{padding:12px;color:#857a70;font-size:13px;line-height:1.6}
.qc-main{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;border:1px solid var(--qc-line);border-radius:18px;overflow:hidden;min-height:0;min-width:0;background:#fff}
.qc-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 24px;border-bottom:1px solid #f0e8df;min-height:74px;background:#fff;min-width:0}.qc-heading{display:flex;align-items:center;gap:10px;min-width:0}.qc-heading h1{font-size:18px;line-height:1.3;margin:0;letter-spacing:-.3px}.qc-heading p{font-size:11px;color:#82776c;margin:5px 0 0}.qc-toolbar-actions{display:flex;gap:8px;flex-shrink:0}.qc-icon{width:42px;height:42px;min-height:42px;display:inline-flex;align-items:center;justify-content:center;padding:10px!important;border-radius:11px!important;box-shadow:none!important;background:#fffaf6!important;color:#965021!important;border:1px solid #e7d8ca!important}.qc-icon:hover{background:#ffead6!important;border-color:#d99d6d!important}#qcHistoryButton,#qcNewMobile{display:none}
.qc-session-note{padding:8px 24px;background:#faf7f1;color:#807463;font-size:11px;line-height:1.4;border-bottom:1px solid #f2ebe2}.qc-session-note[hidden]{display:none}
.qc-log{min-height:0;overflow:auto;overflow-x:hidden;padding:22px clamp(18px,4vw,60px) 24px;display:flex;flex-direction:column;align-items:stretch;gap:20px;overscroll-behavior:contain;scrollbar-gutter:stable;position:relative;scroll-behavior:auto;background:#fff}
.qc-log:focus-visible{outline:2px solid #d9843f;outline-offset:-3px}.qc-empty{margin:auto;text-align:center;max-width:480px;padding:22px;flex-shrink:0}.qc-empty-mark{width:50px;height:50px;display:inline-flex;justify-content:center;align-items:center;background:#fff0e2;border-radius:17px;color:#c26b29}.qc-empty-mark svg{width:28px;height:28px}.qc-empty h2{font-size:27px;letter-spacing:-.75px;margin:18px 0 12px;line-height:1.25}.qc-empty p{margin:0;color:#798279;font-size:15px}.qc-empty-note{display:block;margin-top:22px;color:#9a9e96;font-size:11px;line-height:1.6}
.qc-message{min-width:0;max-width:100%;overflow-wrap:anywhere;flex-shrink:0;scroll-margin-top:18px}.qc-message p{white-space:pre-wrap;margin:0;font-size:14px;line-height:1.7}.qc-user{margin-left:auto;max-width:82%;border-radius:17px 17px 5px 17px;padding:12px 18px;background:#fff0e2;border:1px solid #f3ddc6}.qc-assistant{align-self:stretch;padding:6px 0 20px;border-bottom:1px solid #f2ece5}.qc-answer-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-bottom:14px}.qc-answer-head>strong{font-size:12px;color:#4e6152}.qc-answer-head time{font-size:10px;color:#8b8d86}.qc-filters{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}.qc-filters span{font-size:11px;color:#786452;padding:5px 9px;background:#f8f4ed;border-radius:6px;border:1px solid #eee5d8;line-height:1.4}.qc-total-label{font-size:10px;text-transform:uppercase;letter-spacing:1.1px;color:#9b7e60;margin:16px 0 7px}.qc-totals{display:flex;gap:14px;margin:0 0 16px}.qc-totals>div{border:1px solid #edd9c2;border-radius:13px;background:#fff7ee;padding:14px 20px;flex:1;min-width:0;max-width:300px}.qc-totals strong{display:block;font-size:29px;line-height:1.2;letter-spacing:-.9px;color:#99501e;font-variant-numeric:tabular-nums}.qc-totals span{font-size:12px;color:#917250;margin-top:5px;display:block}.qc-answer-text{color:#4d5b52}.qc-calculation{background:#edf5ed;border:1px solid #ccdec9;border-radius:13px;padding:15px 18px;margin:8px 0 14px}.qc-calculation>span{display:block;font-size:10px;letter-spacing:.8px;text-transform:uppercase;color:#637c57;margin-bottom:6px}.qc-calculation strong{font-size:20px;letter-spacing:-.4px;font-variant-numeric:tabular-nums;color:#355b32;line-height:1.5}
.qc-breakdown,.qc-details{margin-top:15px;padding:0;border:1px solid #e9e6dc;border-radius:11px;overflow:hidden}.qc-breakdown summary,.qc-details summary{min-height:44px;padding:12px 15px;cursor:pointer;font-size:13px;font-weight:600;list-style:revert!important;color:#5f6d5c;background:#fcfbf7}.qc-details summary>span{margin-left:7px;color:#8b9386;font-size:11px}.qc-breakdown>div{padding:12px 16px}.qc-breakdown p{font-size:12px;margin:4px 0}.qc-breakdown strong{display:inline-block;min-width:62px}.qc-cards{list-style:none;padding:12px;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.qc-stock-card{border:1px solid #ebe4da;border-radius:10px;padding:13px;min-width:0;background:#fff}.qc-card-top{display:flex;gap:8px;justify-content:space-between;align-items:flex-start}.qc-card-top h4{font-size:14px;line-height:1.4;margin:0;min-width:0}.qc-card-top>span{font-size:11px;padding:3px 6px;white-space:nowrap;background:#f4f5ef;border-radius:5px;color:#6c745f}.qc-message .qc-card-sub{font-size:11px;line-height:1.5;color:#808779;margin-top:6px}.qc-card-sub b{display:block;font-weight:600;color:#ae6528;margin-top:3px}.qc-stock-card dl{display:flex;gap:16px;margin:12px 0 8px}.qc-stock-card dl>div{flex:1;min-width:0}.qc-stock-card dt{font-size:10px;color:#8e937f}.qc-stock-card dd{font-size:23px;line-height:1.3;font-weight:700;letter-spacing:-.5px;margin:3px 0 0;font-variant-numeric:tabular-nums}.qc-message .qc-card-factor{padding-top:8px;border-top:1px solid #f0ece5;font-size:10px;color:#99917e}.qc-more{display:flex;align-items:center;justify-content:space-between;padding:0 12px 12px;gap:10px}.qc-more span{font-size:10px;color:#8d927e}.qc-more button{font-size:12px;padding:8px 12px;min-height:40px}.qc-more button[hidden]{display:none}.qc-choices{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.qc-choices button{max-width:100%;white-space:normal;text-align:left;font-size:13px;min-height:44px;line-height:1.5}.qc-answer-actions{display:flex;gap:18px;flex-wrap:wrap;margin-top:14px}.qc-text-button{display:flex;align-items:center;gap:7px;border:0!important;box-shadow:none!important;background:none!important;color:#927452;padding:7px 0!important;min-height:36px;font-size:11px}.qc-text-button:hover{color:#b34b12;text-decoration:underline}.qc-text-button svg{width:16px;height:16px}
.qc-compose{margin:0;padding:12px clamp(18px,4vw,60px) 12px;background:#fff;border-top:1px solid #eee6db;min-width:0;position:relative;z-index:1}.qc-input-row{display:flex;align-items:flex-end;gap:8px;border:1px solid #ddc9b5;border-radius:18px;background:#fffcf8;padding:6px 7px 6px 14px;box-shadow:0 3px 10px #a8682610;min-width:0}.qc-input-row:focus-within{border-color:#c97f41;box-shadow:0 0 0 3px #e69b4c18}.qc-input-row textarea{resize:none;flex:1;min-width:0;min-height:44px;height:44px;max-height:96px;overflow-y:auto;padding:10px 3px;border:0!important;border-radius:0;background:transparent;box-shadow:none!important;font-size:16px;line-height:24px;font-family:inherit;color:#304033;outline:none!important}.qc-input-row textarea::placeholder{color:#a2a28f}.qc-input-row button{width:44px;height:44px;min-width:44px;min-height:44px;padding:10px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;box-shadow:none!important}.qc-mic{border:1px solid #e3d8c5!important;color:#807055;background:#f8f3ea!important}.qc-mic:hover{background:#ffe9d0!important;color:#a85815}.qc-mic.qc-listening{border-color:#c36551!important;color:#9b3325;background:#ffddd5!important}.qc-send{background:#c15c18!important;color:white!important;border:1px solid #ae4a09!important}.qc-send:hover{background:#a5470d!important}.qc-compose-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:7px;min-height:27px;color:#9a978a;font-size:10px}.qc-compose-foot>div{display:flex;align-items:center;gap:14px;flex-shrink:0}.qc-read{display:inline-flex;align-items:center;flex-direction:row;gap:5px;cursor:pointer;font-size:11px;min-height:27px;white-space:nowrap}.qc-read input{width:15px;height:15px;min-height:15px;margin:0}.qc-stop{border:0!important;box-shadow:none!important;background:none!important;color:#8c8472;font-size:11px;min-height:27px;padding:4px 0!important;white-space:nowrap}.qc-status{font-size:12px;line-height:1.5;color:#7f856f;max-height:55px;overflow:auto;margin:0 0 8px!important}.qc-status:empty{display:none}.qc-status.qc-error{color:#af432d;padding:7px 10px;background:#fff1eb;border-radius:8px}.qc-spinner{width:18px;height:18px;border:2px solid #fff7;border-top-color:#fff;border-radius:50%;animation:qc-spin 1s linear infinite}@keyframes qc-spin{to{transform:rotate(360deg)}}
.qc-dialog{max-width:520px;width:calc(100% - 24px);max-height:calc(var(--qc-vh,100dvh) - 24px);padding:22px;border:1px solid #dfc3a9;border-radius:17px;background:#fff;box-shadow:0 24px 80px #30200e3a;overflow:auto;color:#354432}.qc-dialog::backdrop{background:#13231e75;backdrop-filter:blur(3px)}.qc-dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.qc-dialog h2{font-size:20px;margin:0}.qc-dialog .voice-controls{display:grid;gap:12px;min-width:0}.qc-dialog .voice-controls label{min-width:0}.qc-dialog .voice-controls input{font-size:16px!important}.qc-dialog .mep-select{width:100%;min-width:0}.qc-dialog .mep-select-list{position:static;max-height:180px;overflow:auto;min-width:0}.qc-dialog .mep-select-option{white-space:normal;overflow-wrap:anywhere}.qc-dialog p{font-size:13px;line-height:1.7;overflow-wrap:anywhere}.qc-dialog details{margin-top:18px;border-top:1px solid #eadfce}.qc-dialog summary{padding:14px 0;font-size:13px;cursor:pointer}.qc-sections{display:grid;gap:9px}.qc-sections button{min-height:44px;text-align:left}.qc-history-dialog nav{margin-top:15px}.qc-history-dialog .qc-delete{width:40px;min-height:40px}.qc-dialog[open]{z-index:10000}
body.quick-query0100 #toast{max-width:480px;bottom:140px;max-height:120px;overflow:auto}
@media(max-width:1100px){.qc-layout{grid-template-columns:232px minmax(0,1fr);gap:12px}.qc-log{padding:20px}.qc-compose{padding:12px 20px}.qc-toolbar{padding:12px 18px}.qc-empty h2{font-size:25px}.qc-totals strong{font-size:27px}body.quick-query0100 .user-pill{display:none}}
@media(max-width:760px){
  body.quick-query0100 #main{padding:0}body.quick-query0100 .topbar{padding:5px 10px;min-height:54px;flex-wrap:nowrap;gap:7px}body.quick-query0100 .brand-button img{width:81px;height:40px}body.quick-query0100 .brand-button span{display:none}body.quick-query0100 .top-actions{gap:5px;min-width:0}body.quick-query0100 .top-actions button{min-height:37px;padding:7px 9px;font-size:11px}body.quick-query0100 #usersButton{display:none}body.quick-query0100 .user-pill{display:none}
  .qc-layout{display:block;border-radius:0;gap:0}.qc-sidebar{display:none}.qc-main{height:100%;border:0;border-radius:0;grid-template-rows:auto auto minmax(0,1fr) auto}.qc-toolbar{padding:8px 10px;gap:8px;min-height:59px}.qc-heading{gap:8px}.qc-heading h1{font-size:15px;letter-spacing:-.2px}.qc-heading p{font-size:10px;margin-top:3px}.qc-toolbar-actions{gap:5px}.qc-icon{width:38px;min-height:38px;height:38px;padding:8px!important}.qc-icon svg{width:19px;height:19px}#qcHistoryButton,#qcNewMobile{display:inline-flex}#qcHistoryButton{border-color:transparent!important;background:none!important}
  .qc-log{padding:16px 14px 18px;gap:17px;scrollbar-gutter:auto}.qc-empty{padding:18px 10px}.qc-empty h2{font-size:24px}.qc-empty p{font-size:14px}.qc-empty-note{font-size:10px;margin-top:16px}.qc-empty-mark{width:44px;height:44px}.qc-empty-mark svg{width:24px;height:24px}.qc-user{max-width:92%;padding:10px 13px}.qc-message p{font-size:14px;line-height:1.6}.qc-assistant{padding-bottom:16px}.qc-answer-head{gap:6px;margin-bottom:10px}.qc-answer-head>strong{font-size:11px}.qc-answer-head time{font-size:9px}.qc-filters{gap:5px}.qc-filters span{font-size:10px;padding:4px 7px}.qc-totals{gap:9px;margin-bottom:14px}.qc-totals>div{padding:12px 14px}.qc-totals strong{font-size:27px}.qc-totals span{font-size:11px}.qc-cards{grid-template-columns:minmax(0,1fr);padding:10px}.qc-card-top h4{font-size:15px}.qc-stock-card{padding:12px}.qc-stock-card dl{margin:9px 0}.qc-stock-card dd{font-size:23px}.qc-calculation{padding:12px 14px}.qc-calculation strong{font-size:18px}.qc-session-note{padding:6px 14px;font-size:10px;max-height:48px;overflow:auto}
  .qc-compose{padding:9px 10px calc(7px + env(safe-area-inset-bottom,0px))}.qc-input-row{padding:5px 5px 5px 11px;border-radius:16px;gap:5px}.qc-input-row textarea{font-size:16px}.qc-input-row button{width:42px;min-width:42px;height:44px}.qc-compose-foot{margin-top:4px;gap:6px;font-size:9px;min-height:28px}.qc-compose-foot>div{gap:10px}.qc-read,.qc-stop{font-size:10px}.qc-compose-foot>span{max-width:190px;line-height:1.3}.qc-status{font-size:11px;max-height:44px}.qc-dialog{padding:17px}.qc-dialog h2{font-size:18px}body.quick-query0100 #toast{left:12px;right:12px;bottom:130px;font-size:13px}
}
@media(max-width:359px){body.quick-query0100 .top-actions{gap:3px}body.quick-query0100 .top-actions button{padding:7px;min-width:34px;font-size:10px}.qc-heading h1{font-size:13px}.qc-heading p{font-size:9px}.qc-toolbar-actions{gap:3px}.qc-icon{width:34px;min-height:38px}.qc-toolbar{padding:7px}.qc-heading{gap:3px}#qcNewMobile{display:none}.qc-totals strong{font-size:25px}.qc-compose-foot>span{max-width:146px}.qc-log{padding:13px 10px}.qc-session-note{font-size:9px}}
@media(max-height:540px){body.quick-query0100 .topbar{min-height:45px;padding-top:3px;padding-bottom:3px}body.quick-query0100 .brand-button img{height:32px;width:80px}.qc-toolbar{min-height:48px;padding-top:5px;padding-bottom:5px}.qc-heading p{display:none}.qc-empty{padding:8px}.qc-empty-mark,.qc-empty-note{display:none}.qc-empty h2{font-size:21px;margin:10px 0}.qc-compose{padding-top:6px;padding-bottom:5px}.qc-compose-foot{margin-top:2px}.qc-log{padding-top:12px;padding-bottom:12px}.qc-session-note{max-height:32px}.qc-sidebar-top{padding-top:12px}.qc-sidebar h2{margin-bottom:10px}.qc-search-label{margin-top:12px}.qc-sidebar-foot{padding:9px 15px}}
@media(prefers-reduced-motion:reduce){.qc-layout *,.qc-dialog *{animation-duration:.01ms!important;transition:none!important;scroll-behavior:auto!important}}
@media print{body.quick-query0100{height:auto;overflow:visible}body.quick-query0100 #app,body.quick-query0100 #main,body.quick-query0100 #moduleBody,.qc-layout,.qc-main,.qc-log{height:auto;display:block;overflow:visible}.qc-sidebar,.qc-compose,.qc-toolbar,.qc-answer-actions,.qc-dialog{display:none!important}.qc-message{break-inside:avoid}}
/* Explicit rows: a hidden history note must not move the composer into the flexible row. */
.qc-toolbar{grid-row:1}.qc-session-note{grid-row:2}.qc-log{grid-row:3}.qc-compose{grid-row:4}
