body{background:#fafbf9}aside{width:236px;background:#f0f3ed;color:#263c2e;border-right:1px solid #e2e7df;padding:28px 18px}.brand{font-size:19px}.brand span{color:#477456}.caption{color:#8c998b}nav{margin-top:28px;gap:5px}nav button{color:#586858;padding:12px 15px}nav button.active{background:#e2eadd;color:#294331}.aside-bottom{color:#84907e;font-size:12px}.chat-list-label{font-size:11px;color:#909d8c;margin:35px 15px 12px}#chatList{max-height:35vh;overflow:auto}#chatList button{display:block;width:100%;padding:10px 15px;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:transparent;color:#64705f;font-size:12px}#chatList button.current{background:#e6ecdf}main{margin-left:236px;max-width:none;padding:0 30px}header{height:66px}.chat-tab{height:calc(100dvh - 66px);display:flex;flex-direction:column;width:100%;margin:0;padding:0 24px;box-sizing:border-box}.chat-top{display:flex;justify-content:space-between;align-items:center;padding:20px 0;font-size:12px;color:#8a9584}.chat-top button{background:transparent;border-color:#dce4d5}.chat-messages{flex:1;overflow-y:auto;padding:4px 14px 14px;scroll-behavior:smooth}.chat-welcome{text-align:center;padding-top:clamp(20px,9vh,100px)}.welcome-mark{font-family:Georgia,serif;font-size:50px;color:#315a3e;font-weight:bold}.welcome-mark span{color:#b6cb88}.chat-welcome h1{font-size:32px;letter-spacing:-.8px;margin:24px 0 15px}.chat-welcome p{font-size:14px;line-height:2;color:#889280}.suggestions{display:flex;justify-content:center;gap:12px;margin-top:35px}.suggestions button{background:#fff;border:1px solid #e1e7db;text-align:left;width:190px;font-size:12px;color:#53664f;padding:20px 16px;border-radius:12px}.suggestions span{float:right;color:#95a88c}.composer-wrap{padding:14px 16px 18px;background:#fafbf9}.composer{background:#fff;border:1px solid #dce4d7;border-radius:22px;padding:15px 16px;box-shadow:0 8px 35px #243a2d07}.composer:focus-within{border-color:#9eb693}.composer textarea{border:0;background:transparent;margin:0;padding:6px;min-height:55px;max-height:190px;outline:none;resize:none;font-size:14px;line-height:1.7}.composer textarea:focus{outline:none}.composer-tools{display:flex;align-items:center;justify-content:space-between;gap:10px}.tool-button{background:transparent;color:#6b7d62;font-size:12px;padding:9px 10px;border:0}.send-button{border-radius:50%;width:38px;height:38px;padding:0;background:#1f2937 !important;color:#fff !important;line-height:1;transition:background-color 0.2s ease,transform 0.1s ease;font-size:22px}.composer-note{font-size:10px;color:#9ca492;text-align:center;margin:12px 0 0;line-height:1.7}#chatError{color:#b85b42;margin:8px 0 0;font-size:12px;white-space:pre-line}.chat-row{display:flex;gap:14px;margin:0 0 8px}.chat-row.user{justify-content:flex-end}.message-bubble{max-width:85%;line-height:1.6;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}.chat-row.user .message-bubble{padding:9px 16px;background:#eaf0e4;border-radius:14px 14px 4px 14px}.avatar{flex:0 0 30px;width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:#e3ecd9;color:#42643c;font-family:Georgia,serif;font-weight:bold;margin-top:3px}/* 飞 2026-10-16：assistant 气泡顶部用时提示（ChatGPT 风格）。无数据时不渲染。 */
.message-elapsed{font-size:10px;color:#8a9584;margin:0 0 4px;text-align:left}
.assistant-content{flex:1;min-width:0}.message-images{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}.message-images img{max-width:210px;max-height:170px;object-fit:cover;border-radius:10px;border:1px solid #dce3d5;cursor:zoom-in;transition:transform .15s ease}
.message-images img:hover{transform:scale(1.02)}
.image-lightbox{position:fixed;inset:0;z-index:200;background:rgba(20,32,24,.86);display:flex;align-items:center;justify-content:center;padding:24px}
.image-lightbox[hidden]{display:none}
.image-lightbox img{max-width:92vw;max-height:92vh;object-fit:contain;border-radius:10px;box-shadow:0 18px 60px #00000060;background:#fff}
.image-lightbox button{position:absolute;top:18px;right:22px;width:38px;height:38px;border-radius:50%;border:0;background:#fff;color:#244235;font-size:22px;line-height:1;cursor:pointer;box-shadow:0 4px 14px #00000040}
.image-lightbox button:hover{background:#e8eee3}.draft-card{white-space:normal;background:#fff;border:1px solid #dce5d6;border-radius:14px;padding:20px;margin-top:15px;max-width:650px}.draft-card h3{font-size:13px;margin:0 0 12px;color:#77836d}.draft-card dl{display:grid;grid-template-columns:100px 1fr;margin:0;font-size:12px;gap:8px}.draft-card dt{color:#87927d}.draft-card dd{margin:0;color:#364d30;overflow-wrap:anywhere}.chat-price{font-size:30px;color:#285139;margin:10px 0}.chat-price small{font-size:11px}.chat-row .cost-row{font-size:12px}.chat-row .check{font-size:11px}.chat-row .primary{font-size:12px}.attachment-preview{display:flex;gap:10px;flex-wrap:wrap}.attachment-item{position:relative;margin:0 0 12px}.attachment-item img{height:70px;width:90px;object-fit:cover;border:1px solid #d6e1cf;border-radius:10px}.attachment-item button{position:absolute;top:-7px;right:-5px;border-radius:50%;padding:0;width:21px;height:21px;background:#34513c;color:#fff}.attachment-item span{font-size:10px;display:block;max-width:90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.typing{color:#8c9d81;font-size:12px}.typing::after{content:' …';animation:breathe 1.2s infinite}@keyframes breathe{50%{opacity:.3}}.form .card{margin-bottom:20px}.failed-note{color:#b15841}.dialog-source{font-size:10px;color:#8fa180;margin-top:8px}@media(max-width:900px){aside{width:190px}main{margin-left:190px;padding:0 18px}.chat-welcome h1{font-size:27px}.suggestions{flex-wrap:wrap}.suggestions button{width:155px}.message-bubble{max-width:95%}}@media(max-width:650px){aside{position:static;width:auto;padding:16px}.brand{font-size:17px}nav{margin-top:12px;flex-wrap:wrap}nav button{font-size:11px;padding:7px}.chat-list-label,#chatList{display:none}main{margin:0;padding:0 12px}header{height:42px}.chat-tab{height:calc(100dvh - 172px);min-height:500px}.chat-top{padding:12px 0}.chat-welcome{padding-top:18px}.chat-welcome h1{font-size:23px}.suggestions{gap:8px;margin-top:18px}.suggestions button{width:auto;padding:12px}.composer-wrap{padding:10px 0}.chat-messages{padding:8px 0 20px}.chat-row{gap:9px}.tool-button{font-size:11px;padding:8px}.composer-note{font-size:9px}.badge{font-size:9px}}

/* Quoting conversation uses the same surfaces and actions as the public site. */
body { background: var(--brand-paper); }
aside { background: #fff; border-right-color: #d2ddd0; color: var(--brand-ink); }
nav { gap: 7px; }
nav button { background: #fff; border: 1px solid #cbd9c7; border-radius: 7px; color: #2d4942; font-size: 13px; font-weight: 650; }
nav button:hover:not(.active) { background: #f1f6ed; border-color: #64836c; }
nav button.active { background: #183f32; border-color: #183f32; color: #fff; }
.chat-list-label { color: #536d60; font-weight: 700; }
#chatList button { color: #536d60; }
#chatList button:hover { color: var(--brand-deep); }
#chatList button.current { background: var(--brand-mist); color: var(--brand-deep); }
main { background: var(--brand-paper); }
.chat-top { color: var(--brand-muted); }
/* 飞 2026-10-16：标题、客户名称与操作按钮融合到一行 */
.chat-context { display: flex; align-items: center; gap: 18px; flex-wrap: nowrap; min-width: 0; }
.chat-context b { white-space: nowrap; font-size: 15px; font-weight: 700; color: var(--brand-ink); }
.chat-context .customer-note { flex-wrap: nowrap; }
.chat-context .customer-note input { width: 200px; }
.chat-welcome { position: relative; background: radial-gradient(circle at 85% 10%, #deefdd80 0, transparent 44%); border-radius: 18px; padding-inline: 24px; text-align: center; }
.chat-welcome h1, .chat-welcome p { max-width: 720px; margin-left: auto; margin-right: auto; }
.welcome-mark { color: var(--brand-deep); }
.welcome-mark span { color: #a1c474; }
.chat-welcome h1 { color: var(--brand-ink); font-weight: 720; letter-spacing: -.05em; }
.chat-welcome p { color: #536d60; }
.suggestions button { color: var(--brand-deep); border-color: #d2ddd0; border-radius: 14px; font-weight: 650; }
.suggestions button:hover { border-color: #64836c; background: #f8faf6; transform: translateY(-2px); box-shadow: 0 12px 24px #1a3c2a12; }
.suggestions span { color: var(--brand-leaf); }
.composer-wrap { background: var(--brand-paper); }
.composer { border-color: #c8d8c7; border-radius: 16px; box-shadow: 0 10px 30px #1a3c2a0d; }
.composer:focus-within { border-color: #64836c; box-shadow: 0 0 0 3px #deefdd99, 0 10px 30px #1a3c2a0d; }
.composer textarea { color: var(--brand-ink); }
.tool-button { color: #507d65; }
.tool-button:hover { background: #edf2e9; }
/* 飞 2026-10-16：参照 minimax 风格的发送/停止按钮 —
   中性深灰底 + 白色 icon + 圆形 + 平滑过渡；运行中切换为实心方块 */
.send-button {
  background: #1f2937;
  color: #fff;
  border: 0;
  font-size: 22px;
  line-height: 1;
  transition: background-color 0.2s ease, transform 0.1s ease;
}
.send-button:hover:not(:disabled) { background: #374151; }
.send-button:active:not(:disabled) { transform: scale(0.95); }
.send-button:disabled { opacity: 0.45; cursor: not-allowed; }
.send-button.stop {
  background: #1f2937 !important;
  color: #fff !important;
  background: #1f2937;
  font-size: 16px;
  letter-spacing: 2px;
}
.send-button.stop:hover:not(:disabled) { background: #374151; }
.composer-note { color: #6b806f; }
.user-content { flex: 0 1 85%; min-width: 0; display: flex; flex-direction: column; align-items: flex-end; }
.chat-row.user .message-bubble { min-width: max-content; max-width: 100%; }
.message-bubble { overflow-wrap: break-word; }
.chat-row.user .message-bubble { background: #eaf1e4; color: var(--brand-ink); }
.avatar { background: var(--brand-lime); color: var(--brand-deep); }
.draft-card { border-color: #d2ddd0; box-shadow: 0 10px 26px #193d310a; }
.draft-card dt, .draft-card h3 { color: #647568; }
.draft-card dd, .chat-price { color: var(--brand-deep); }
.attachment-item img { border-color: #c8d8c7; }
.attachment-item button { background: var(--brand-deep); }
@media (max-width: 900px) {
  aside { width: 210px; }
  main { margin-left: 210px; }
}
@media (max-width: 650px) {
  aside { position: static; width: auto; padding: 16px; }
  nav { display: flex; flex-wrap: wrap; }
  nav button { font-size: 11px; padding: 8px 10px; }
  main { margin-left: 0; padding: 0 12px; }
  .chat-tab { padding: 0 12px; }
  .chat-welcome { padding-top: 22px; padding-inline: 12px; }
  .suggestions { flex-wrap: wrap; }
  .suggestions button { flex: 1 1 145px; min-width: 0; }
  .composer { padding: 12px; }
  .composer-tools > div { display: flex; flex-wrap: wrap; }
  .chat-messages { overflow-x: hidden; }
  .chat-row.user .message-bubble { min-width: 0; max-width: 100%; white-space: pre-wrap; }
}

.calc-note { font-size: 11px; color: #7b8f84; font-weight: 500; }
/* 飞 2026-10-16：报价明细默认折叠，只留品名/尺寸/单价/版费/数量 */
.batch-item-details { margin: 6px 0 0; font-size: 11px; }
/* 卷径/装箱：每款独立 inline mini-form，折叠收起点 */
.packing-inline { margin: 4px 0 0; font-size: 11px; }
.packing-inline > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border: 1px solid #d2ddd0; border-radius: 999px; background: #f7faf5; color: #3f5f4a; font-size: 10px; font-weight: 650; }
.packing-inline > summary::-webkit-details-marker { display: none; }
.packing-inline > summary::after { content: '▾'; font-size: 9px; color: #7d9483; }
.packing-inline[open] > summary::after { content: '▴'; }
.packing-inline-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 6px 10px; margin: 6px 0 4px; padding: 6px 8px; border: 1px dashed #cadbc9; border-radius: 8px; }
.packing-inline-body label { display: flex; flex-direction: column; gap: 2px; font-size: 10px; font-weight: 650; color: #5b7466; }
.packing-inline-body input { width: 100%; min-width: 0; padding: 4px 6px; font-size: 11px; line-height: 1.25; border: 1px solid #e0e7dc; border-radius: 5px; background: #fff; box-sizing: border-box; }
.packing-inline-body button { justify-self: start; padding: 4px 10px; font-size: 11px; }
.batch-item-details > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border: 1px solid #d2ddd0; border-radius: 999px; background: #f7faf5; color: #3f5f4a; font-size: 10px; font-weight: 650; }
.batch-item-details > summary::-webkit-details-marker { display: none; }
.batch-item-details > summary::after { content: '▾'; font-size: 9px; color: #7d9483; }
.batch-item-details[open] > summary::after { content: '▴'; }
.batch-item-details > summary:hover { border-color: #9eb693; background: #f0f6ec; }
.one-time-note { margin: 8px 0 0; font-size: 12px; color: var(--brand-deep); font-weight: 650; line-height: 1.6; }
.assistant-summary { max-width: 100%; width: 100%; margin-top: 10px; padding: 8px 14px; border: 1px solid #d6e4d3; border-radius: 10px; background: #f3f8ef; color: #294a36; line-height: 1.5; }
.quote-calculation{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:6px 0 2px}
.quote-calculation>div{min-width:0;padding:9px 12px;border-radius:10px;background:#f5f8f3;color:#3c5c47}
.quote-calculation b{font-size:13px;color:#244d35;font-weight:650}
.quote-calculation p{font-size:11px;line-height:1.5;margin:3px 0 0;color:#536f5d;overflow-wrap:anywhere}
/* 核价调整字段内嵌进卡片：克重→几何、基础价→价格、印刷运费→工艺 */
.quote-calc-field{margin-top:6px;padding-top:6px;border-top:1px dashed #cadbc9}
.quote-calc-field label{display:flex;flex-direction:column;gap:2px;font-size:10px;font-weight:650;color:#5b7466}
.quote-calc-field input{width:100%;min-width:0;margin:0;padding:5px 7px;font-size:11px;background:#fff}
.quote-calc-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 7px;margin-top:6px;padding-top:6px;border-top:1px dashed #cadbc9}
.quote-calc-fields label{display:flex;flex-direction:column;gap:2px;font-size:10px;font-weight:650;color:#5b7466;min-width:0}
.quote-calc-fields input,.quote-calc-fields select{width:100%;min-width:0;margin:0;padding:4px 6px;font-size:10px;background:#fff}
.quote-calc-fields .adjust-check{flex-direction:row;align-items:center;gap:5px;align-self:end;padding-bottom:2px}
.quote-calc-fields .adjust-check input{width:15px;height:15px;flex:0 0 auto}
/* 飞 2026-10-16：特殊工艺分区标题（贴在 craft fields 末尾） */
.quite-calc-fields .adjust-craft-divider{grid-column:1/-1;font-size:10px;font-weight:700;color:#7a8a78;padding:4px 0 0;margin-top:4px;border-top:1px dashed #cadbc9;flex-direction:initial}
#quote .quote-calc-fields .adjust-craft-divider{font-size:10px;line-height:1.25;padding-top:3px}
.quote-adjuster-footer{grid-column:1/-1;display:flex;align-items:center;padding:0!important;background:transparent!important}
.quote-adjuster-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;width:100%}
.quote-adjuster-actions button{margin:0;flex:0 0 auto}
.quote-adjuster-actions small{color:#6d8072;font-size:10px;line-height:1.5}
.quote-adjust-status{font-size:11px;color:#5e7465;line-height:1.5}
.batch-table-scroll{overflow-x:auto}
.batch-table-scroll table{min-width:640px}
@media(max-width:1280px){.quote-calculation{gap:8px}.quote-calculation>div{padding:9px 12px}.quote-calculation p{font-size:11px}}
@media(max-width:1100px){.quote-calculation{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.quote-calc-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.quote-calculation{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.quote-calculation>div{padding:9px 10px}.quote-calc-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.quote-calculation{grid-template-columns:1fr;gap:7px}.quote-calc-fields{grid-template-columns:1fr}.quote-adjuster-actions{align-items:stretch;flex-direction:column}.quote-adjuster-actions button{width:100%}.quote-price-head{align-items:flex-start;gap:6px}.quote-price-head strong{font-size:22px}.batch-item{padding-inline:12px}.batch-card{padding-inline:12px}.batch-item-details>summary{width:100%;justify-content:space-between;box-sizing:border-box}}
.quality-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.quality-card{padding:18px 20px;border:1px solid #d6e4d3;border-radius:12px;background:#f8faf6}
.quality-card>b,.quality-card>span{display:block;color:#536d60;font-size:12px;font-weight:650}
.quality-card>strong{display:block;margin:10px 0 4px;color:var(--brand-deep);font-size:32px;letter-spacing:-.5px}
.quality-card>p,.quality-card>small{display:block;margin:9px 0 0;color:#647568;line-height:1.7}
@media(max-width:700px){.quality-grid{grid-template-columns:1fr}}

/* Keep customer context and recheck beside the message tools. */
#quote .composer-tools{gap:10px;min-width:0}
#quote .composer-tools>.tool-button{white-space:nowrap;flex:none;padding:8px 9px}
#quote .composer-customer{display:flex;align-items:center;gap:7px;flex:0 1 245px;min-width:0;margin:0;color:#829080;font-size:11px}
#quote .composer-customer>span{flex:none}
#quote .composer-customer input{flex:1;min-width:0;width:100%;max-width:none;margin:0;border:1px solid #e0e7dc;border-radius:7px;padding:7px 9px;background:#fafcf8;font-size:11px;line-height:1.5}
#quote .composer-recheck{font-size:11px;color:#758671}
#quote .composer-tools .send-button{flex:none;margin-left:auto}
@media(max-width:700px){
  #quote .composer-tools{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:5px}
  #quote .composer-customer>span{display:none}
  #quote .composer-customer{width:100%;min-width:0}
  #quote .composer-customer input{padding:7px 6px;font-size:10px}
  #quote .composer-tools>.tool-button{padding:8px 4px;font-size:10px}
  #quote .composer-tools .send-button{width:34px;height:34px;margin-left:0}
}

/* Compact, aligned calculation cards; actions occupy their own full row. */
#quote .quote-calculation{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:6px;margin:6px 0 2px;padding:0;background:transparent}
#quote .quote-calculation>div:not(.quote-adjuster-footer){padding:8px 10px;border-radius:8px;min-width:0;display:flex;flex-direction:column}
#quote .quote-calculation b{font-size:12px;line-height:1.35}
#quote .quote-calculation p{font-size:11px;line-height:1.4;margin:3px 0 0}
#quote .quote-calc-field,#quote .quote-calc-fields{margin-top:5px;padding-top:5px;gap:4px 6px}
#quote .quote-calc-field label,#quote .quote-calc-fields label{font-size:10px;line-height:1.25;gap:2px}
#quote .quote-calc-field input,#quote .quote-calc-fields input,#quote .quote-calc-fields select{padding:3px 5px;font-size:11px;line-height:1.25;height:26px;min-height:0;border-radius:4px}
#quote .quote-calc-fields .adjust-check{align-self:center;padding:0;min-height:26px}
#quote .quote-calc-fields .adjust-check input{height:14px;width:14px}
#quote .quote-adjuster-footer{padding-top:2px!important}
#quote .quote-adjuster-actions{gap:6px 10px;align-items:center}
#quote .quote-adjuster-actions button{padding:6px 12px;font-size:11px}
#quote .quote-adjuster-actions small{flex:1;line-height:1.4}
@media(max-width:700px){
  #quote .quote-calculation{grid-template-columns:1fr;gap:7px}
  #quote .quote-calc-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
  #quote .quote-adjuster-actions{flex-direction:row;align-items:center}
  #quote .quote-adjuster-actions button{width:auto}
  #quote .quote-adjuster-actions small{flex-basis:100%}
}
#quote .quote-calc-fields .adjust-check{grid-column:1/-1;min-height:22px}

/* Compact the evidence, totals and confirmation area below each calculation. */
#quote .batch-item-details{padding-bottom:2px}
#quote .batch-details{padding:5px 0 2px;margin-top:2px}
#quote .batch-details>summary{font-size:9px;line-height:1.25}
#quote .batch-details table{font-size:9px}
#quote .batch-details td,#quote .batch-details th{padding:2px 4px;line-height:1.25}
#quote .batch-details p{margin:3px 0 1px;font-size:9px;line-height:1.3}
#quote .batch-source{margin-top:1px;padding:3px 0 2px;line-height:1.2}
#quote .batch-source>summary{font-size:9px;line-height:1.25}
#quote .batch-source p,#quote .batch-source>div{margin:1px 0;line-height:1.25}
#quote .model-data-note{margin:3px 0;line-height:1.3}
#quote .batch-total{padding:5px 0 3px;margin-top:3px}
#quote .batch-total b{font-size:18px}
#quote .batch-card>.check{margin:4px 0 3px;line-height:1.3}
#quote .batch-card>.confirm-quote{padding:6px 11px;margin:0;font-size:10px}
#quote .batch-item{padding-bottom:6px}
.field-provenance{margin:4px 0 7px;padding:3px 0;border-top:0;font-size:10px}
.field-provenance>summary{color:#718579;font-size:10px;line-height:1.3}
.field-provenance>div{display:flex;gap:5px;flex-wrap:wrap;margin-top:5px}
.provenance-chip{display:inline-flex;gap:4px;align-items:center;padding:3px 6px;border:1px solid #dce5d8;border-radius:999px;background:#f8faf6;color:#617466;line-height:1.25}
.provenance-chip b{font-size:10px;color:#385746}
.provenance-chip.status-confirmed{border-color:#bfd6c3;background:#eef6ec;color:#31583f}
.provenance-chip.status-default{border-color:#d8d4b4;background:#fbf9e9;color:#776d39}
.provenance-chip.status-pending{border-color:#e7c8a7;background:#fff6e8;color:#94642e}
.candidate-choices{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:7px;padding-top:6px;border-top:1px dashed #e4cfad}
.candidate-choices>span{font-size:10px;color:#8a6639}
.candidate-choice{padding:5px 8px;border:1px solid #d8c49c;background:#fffdf7;color:#654b25;border-radius:7px;font-size:10px}
.candidate-choice:hover:not(:disabled){border-color:#9d7a43;background:#fff8e8}
.alternative-choices{display:grid;gap:6px;margin-top:8px;padding-top:7px;border-top:1px dashed #ddb98c}
.alternative-choices>span{font-size:10px;color:#8a5a29}
.alternative-choice{padding:7px 9px;border:1px solid #d9b47e;background:#fffaf0;color:#65451f;border-radius:7px;font-size:10px;text-align:left}
.alternative-choice:hover:not(:disabled){border-color:#9a692f;background:#fff3dc}

/* 飞 2026-10-16：quote-card 块间距统一 8px（覆盖 batch-source/batch-total/check/confirm 各自不一） */
#quote .batch-item > * + *,
#quote .batch-card > * + * { margin-top: 8px; }

@media(max-width:700px){
  #quote .batch-details td,#quote .batch-details th{padding:3px 4px}
  #quote .batch-total{padding-top:6px}
  #quote .batch-card>.check{align-items:flex-start}
}

/* 备用服务商（主备降级） */
.fallback-card{margin:22px 0 10px;padding:14px 16px;border:1px solid #dce5d6;border-radius:12px;background:#fafbf9}
.fallback-title{font-size:13px;font-weight:700;color:#284e36;margin-bottom:8px}
.fallback-title span{font-weight:400;color:#6b806f;margin-left:8px;font-size:12px}
.fallback-chain{margin:0 0 12px;font-size:12px;color:#465d3f;line-height:1.7}
.fallback-list{display:grid;gap:8px}
.fallback-item{border:1px solid #e3eae0;border-radius:9px;background:#fff;overflow:hidden}
.fallback-item.on{border-color:#9eb693;background:#fbfdfa}
.fallback-row{display:flex;align-items:center;gap:10px;padding:9px 12px;font-size:13px;color:#36513c}
.fallback-pick{flex:1;display:flex;align-items:center;gap:7px;cursor:pointer;margin:0}
.fallback-order{font-size:11px;color:#507d65;min-width:64px}
.fallback-badge{font-size:11px;padding:2px 8px;border-radius:999px;background:#fef3c7;color:#92400e;white-space:nowrap}
.fallback-badge.configured{background:#d1fae5;color:#065f46}
.fallback-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:0 12px 11px}
.fallback-fields[hidden]{display:none}
.fallback-fields input{width:100%;font-size:12px;padding:7px 9px}
@media(max-width:750px){.fallback-fields{grid-template-columns:1fr}}

/* 飞 2026-10-17：术语与表达 — 可搜索 combobox */
.term-combobox{position:relative;width:100%}
.term-combobox-label{display:block}
.term-combobox-label>.term-combobox{position:relative}
.term-combobox>input[type=search]{width:100%;padding:8px 12px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:inherit;font:inherit}
.term-combobox>input[type=search]:focus{outline:2px solid var(--accent,#0a84ff);outline-offset:1px}
.term-combobox-list{position:absolute;left:0;right:0;top:calc(100% + 4px);max-height:240px;overflow-y:auto;background:var(--surface-elev,#fff);border:1px solid var(--border);border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.08);padding:4px 0;margin:0;list-style:none;z-index:50}
.term-combobox-list[hidden]{display:none}
.term-combobox-item{padding:6px 12px;cursor:pointer;font-size:14px;line-height:1.4}
.term-combobox-item:hover,.term-combobox-item:focus-visible{background:var(--accent-soft,rgba(11,132,255,.12))}
.term-combobox-empty{padding:8px 12px;color:var(--muted);font-size:13px;cursor:default}

/* 飞 2026-10-17：新报价空态参考 MiniMax Code —— logo / 标题 / 输入框 / 快捷入口作为一个整体垂直居中，
   有消息后恢复「消息滚动 + 输入框贴底」的常规布局。 */
.chat-tab.empty{justify-content:center;padding-bottom:clamp(24px,7vh,80px)}
.chat-tab.empty .chat-messages{flex:0 0 auto;overflow:visible;padding-top:0;padding-bottom:0}
.chat-tab.empty .chat-welcome{padding-top:0}
.chat-tab.empty .composer-wrap{background:transparent;width:min(860px,100%);margin:0 auto;padding:30px 0 0}
.chat-tab.empty .composer{box-shadow:0 12px 40px #243a2d0d}
.suggestion-row{display:none;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:20px}
.chat-tab.empty .suggestion-row{display:flex}
.suggestion-row button{display:inline-flex;align-items:center;gap:8px;background:#fff;border:1px solid #e3e9dd;color:#566b56;font-size:12px;padding:9px 16px;border-radius:999px}
.suggestion-row button:hover{background:#f6f9f3;border-color:#b9cdab;color:#2f5740}
.suggestion-icon{color:#8fa686;font-size:13px;line-height:1}
@media(max-width:650px){.chat-tab.empty{justify-content:flex-start;padding-top:16px}.chat-tab.empty .composer-wrap{padding-top:18px}.suggestion-row{margin-top:14px}}
/* 飞 2026-10-17：欢迎区不放 logo（左上角已有 ISEEPACK AI 品牌，避免重复），只留问候语标题 */
.chat-tab.empty .chat-welcome h1{margin-top:0}
