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)}
.matched-material{display:inline-block;margin-top:3px;padding:2px 7px;border:1px solid #9fbea6;border-radius:5px;background:#e7f2e6;color:#214d31;font-weight:700}
.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}}

/* Sending is optimistic: the order appears immediately and the assistant holds its place. */
.optimistic-turn{pointer-events:none}
.optimistic-turn.user .message-bubble{background:#eaf1e4;color:#233d2d;border-radius:14px 14px 4px 14px}
.assistant-pending-dot{width:15px;height:15px;margin:10px 0 6px;border-radius:50%;background:#507d65;animation:pending-dot 1.15s cubic-bezier(.22,1,.36,1) infinite;transform-origin:center}
@keyframes pending-dot{0%,100%{opacity:.95;transform:scale(1)}50%{opacity:.38;transform:scale(.72)}}
@media(prefers-reduced-motion:reduce){.assistant-pending-dot{animation:none}}

/* 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; 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; }
.material-moq-details { margin-top: 6px; border-top: 1px dashed var(--line); padding-top: 5px; }
.material-moq-details summary { cursor: pointer; font-size: 11px; color: var(--green); font-weight: 650; }
.material-moq-details ul { list-style: none; margin: 5px 0 0; padding: 0; display: grid; gap: 4px; }
.material-moq-details li { font-size: 11px; line-height: 1.35; }
.material-moq-details li > span { margin-left: 5px; color: var(--muted); }
.material-moq-details small { display: block; color: var(--muted); }
.formal-pricing-editor { margin-top: 7px; border-top: 1px dashed var(--line); padding-top: 6px; }
.formal-pricing-editor > p { margin: 4px 0; line-height: 1.4; }
.formal-pricing-editor .quote-calc-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
.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}
.carton-manual-editor{margin:7px 0;padding:8px 10px;border:1px solid #d7e3d3;border-radius:8px;background:#f7faf5;color:#3c5c47}
.carton-manual-editor>b{display:block;font-size:12px;color:#244d35;margin-bottom:5px}
.carton-manual-editor>small{display:block;margin-top:5px;color:#6d8072;font-size:10px;line-height:1.4}
.carton-manual-fields{display:grid;grid-template-columns:80px repeat(4,minmax(90px,1fr)) auto;gap:5px;align-items:end}
.carton-manual-fields label{display:flex;flex-direction:column;gap:2px;min-width:0;font-size:10px;font-weight:650;color:#5b7466}
.carton-manual-fields input,.carton-manual-fields select{width:100%;min-width:0;margin:0;padding:5px 7px;font-size:11px;background:#fff}
.carton-manual-fields button{margin:0;white-space:nowrap;padding:7px 11px}
.startup-fees-panel{display:grid;gap:7px;margin:7px 0;padding:9px 10px;border:1px solid #ead7b7;border-radius:8px;background:#fff9ed;color:#76521f;font-size:12px}.startup-fee-list{display:grid;gap:4px}.startup-fee-list label{display:flex;align-items:center;gap:6px}.startup-fee-actions{display:flex;align-items:end;gap:7px}.startup-fee-actions label{display:grid;gap:3px;font-size:10px}.startup-fee-actions input{width:90px;padding:5px 7px}.startup-fee-actions button{margin:0;padding:6px 9px}.startup-fees-panel>small{color:#94744a;font-size:10px}
.production-confirmation{display:grid;grid-template-columns:1fr auto;gap:3px 10px;align-items:center;margin:7px 0;padding:8px 10px;border:1px solid #ead9a8;border-radius:8px;background:#fff9e8;color:#6c5520}
.production-confirmation.confirmed-pending{border-color:#ccd9ef;background:#eef4ff;color:#36588c}
.production-confirmation.moq-confirmation{border-color:#d9d7bd;background:#fbfaef;color:#5d5930}
.production-confirmation b{font-size:12px}.production-confirmation small{grid-column:1/2;font-size:10px;line-height:1.45}.production-confirmation button{grid-column:2;grid-row:1/3;margin:0;white-space:nowrap}
.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}.carton-manual-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.carton-manual-fields button{grid-column:1/-1;width:100%;min-height:40px}.production-confirmation{grid-template-columns:1fr}.production-confirmation small,.production-confirmation button{grid-column:1;grid-row:auto}.production-confirmation button{width:100%;min-height:40px}}
.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(2,minmax(0,1fr));align-items:start;gap:6px;margin:6px 0 2px;padding:0;background:transparent}
#quote .quote-calculation>.quote-section{padding:8px 10px;border-radius:8px;min-width:0;background:#f5f8f3;color:#3c5c47}
#quote .quote-section-geometry{grid-column:1;grid-row:1}
#quote .quote-section-pricing{grid-column:2;grid-row:1 / span 3}
#quote .quote-section-craft{grid-column:1;grid-row:2}
#quote .quote-section-special{grid-column:1;grid-row:3}
#quote .special-process-editor>summary{display:flex;align-items:center;gap:8px;cursor:pointer;list-style:none}
#quote .special-process-editor>summary::-webkit-details-marker{display:none}
#quote .special-process-editor>summary::after{content:'▾';margin-left:auto;color:#718579;font-size:10px}
#quote .special-process-editor[open]>summary::after{content:'▴'}
#quote .special-process-editor>summary span{color:#718579;font-size:10px;font-weight:400}
#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}

@media(max-width:700px){#quote .quote-calculation{grid-template-columns:1fr}#quote .quote-section-geometry,#quote .quote-section-craft,#quote .quote-section-special,#quote .quote-section-pricing{grid-column:1;grid-row:auto}}

/* 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}
.price-book-choices{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}
.price-book-choice{min-height:34px;padding:6px 10px;border:1px solid #cadbc9;border-radius:8px;background:#fff;color:#31563d;font-size:12px;text-align:left}
.price-book-choice:hover{border-color:#77987b;background:#f3f7f1}
@media(max-width:600px){.price-book-choice{width:100%;min-height:42px}}

/* Recognition ambiguity uses one focused dialog instead of scattering
   prompts through historic quote cards.  It deliberately follows the quote
   palette rather than looking like a system alert. */
.clarification-dialog{width:min(680px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;border:1px solid #d3dfcf;border-radius:22px;background:#fff;color:#1f3d2c;box-shadow:0 28px 90px #183d2d33;overflow:auto}
.clarification-dialog::backdrop{background:#18382d66;backdrop-filter:blur(2px)}
.clarification-dialog-content{position:relative;padding:30px 32px 26px}
.clarification-dialog-close{position:absolute;top:17px;right:17px;width:34px;height:34px;padding:0;border:0;border-radius:50%;background:transparent;color:#809086;font-size:26px;line-height:1;cursor:pointer}
.clarification-dialog-close:hover{background:#edf3ea;color:#244d35}
.clarification-dialog-eyebrow{margin:0 0 7px;color:#668166;font-size:11px;font-weight:750;letter-spacing:.08em}
.clarification-dialog h2{margin:0;color:#203d2d;font-size:24px;letter-spacing:-.035em;line-height:1.25}
.clarification-dialog-content>p{margin:9px 36px 20px 0;color:#687b6d;font-size:14px;line-height:1.7}
.clarification-dialog-choices{display:grid;gap:10px}
.clarification-dialog-choices fieldset{display:grid;gap:9px;margin:0;padding:0;border:0}
.clarification-dialog-choices legend{margin:0 0 3px;color:#294837;font-size:16px;font-weight:720;line-height:1.5}
.clarification-dialog-option{display:grid;grid-template-columns:22px minmax(0,1fr);align-items:center;gap:12px;min-height:66px;padding:12px 14px;border:1px solid #dbe5d7;border-radius:14px;background:#f8faf7;cursor:pointer;transition:border-color .16s ease,background .16s ease,box-shadow .16s ease}
.clarification-dialog-option:hover{border-color:#87a687;background:#f1f7ee;box-shadow:0 8px 18px #17382d0b}
.clarification-dialog-option:has(input:checked){border-color:#396c49;background:#edf6eb;box-shadow:inset 0 0 0 1px #396c49}
.clarification-dialog-option input{width:18px;height:18px;margin:0;accent-color:#285b3b}
.clarification-dialog-option b,.clarification-dialog-option small{display:block}
.clarification-dialog-option b{color:#264734;font-size:15px;line-height:1.35}
.clarification-dialog-option small{margin-top:3px;color:#718276;font-size:12px;line-height:1.45}
.clarification-dialog-question{padding:16px;border:1px solid #dbe5d7;border-radius:14px;background:#f8faf7}
.clarification-dialog-question b,.clarification-dialog-question small{display:block}
.clarification-dialog-question b{color:#294837;font-size:16px;line-height:1.5}
.clarification-dialog-question small{margin-top:5px;color:#718276;font-size:12px;line-height:1.6}
.clarification-dialog-supplement{margin-top:20px;padding-top:18px;border-top:1px solid #e3ebe0}
.clarification-dialog-supplement label{display:block;color:#44604c;font-size:13px;font-weight:720}
.clarification-dialog-supplement textarea{display:block;width:100%;min-height:76px;box-sizing:border-box;margin-top:8px;padding:11px 12px;border:1px solid #cfdccd;border-radius:12px;background:#fff;color:#274635;font:inherit;font-size:14px;line-height:1.55;resize:vertical}
.clarification-dialog-supplement textarea:focus{outline:0;border-color:#638d6b;box-shadow:0 0 0 3px #dceeda}
.clarification-dialog-supplement p{min-height:18px;margin:6px 0 0;color:#8a7353;font-size:12px;line-height:1.45}
.clarification-dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:17px}
.clarification-dialog-actions button{min-height:42px;padding:9px 17px;font-size:13px}
.recognition-clarification-open{display:block;margin-top:9px;padding:6px 10px;font-size:11px}
@media(max-width:640px){
  .clarification-dialog{width:100vw;max-width:none;max-height:calc(100dvh - 8px);margin:0 0 0;align-self:end;border-right:0;border-bottom:0;border-left:0;border-radius:22px 22px 0 0}
  .clarification-dialog-content{padding:24px 18px 18px}
  .clarification-dialog h2{font-size:21px;padding-right:32px}
  .clarification-dialog-content>p{margin-right:0;font-size:13px}
  .clarification-dialog-option{min-height:62px;padding:11px 12px}
  .clarification-dialog-actions{display:grid;grid-template-columns:1fr 1.25fr}
  .clarification-dialog-actions button{width:100%;min-height:46px}
}
@media(prefers-reduced-motion:reduce){.clarification-dialog-option{transition:none}}

/* Compact clarification card, shared material-selection entry. */
.clarification-dialog{width:min(540px,calc(100vw - 32px));border:1px solid #e7e7e7;border-radius:18px;color:#252525;box-shadow:0 16px 55px #0000001a}
.clarification-dialog::backdrop{background:#00000026;backdrop-filter:none}
.clarification-dialog-content{padding:20px}
.clarification-dialog-eyebrow{display:none}
.clarification-dialog h2{font-size:17px;line-height:1.4;letter-spacing:0;padding-right:30px;color:#252525}
.clarification-dialog-close{top:12px;right:12px;width:28px;height:28px;font-size:21px;color:#999}
.clarification-dialog-content>p{margin:6px 22px 14px 0;font-size:12px;line-height:1.5;color:#888}
.clarification-dialog-choices fieldset{gap:5px}
.clarification-dialog-choices legend{font-size:13px;color:#666;margin-bottom:7px}
.clarification-dialog-option{min-height:48px;padding:9px 10px;gap:9px;border:1px solid transparent;background:#fff;border-radius:10px;box-shadow:none}
.clarification-dialog-option:hover,.clarification-dialog-option:has(input:checked){background:#f3f3f3;border-color:transparent;box-shadow:none}
.clarification-dialog-option input{width:16px;height:16px;accent-color:#333}
.clarification-dialog-option b{font-size:14px;color:#292929;font-weight:600}
.clarification-dialog-option small{font-size:11px;color:#929292;margin-top:2px}
.clarification-dialog-question{padding:11px;border:0;background:#f5f5f5;border-radius:10px}
.clarification-dialog-question b{font-size:14px;color:#333}
.clarification-dialog-supplement{margin-top:12px;padding-top:10px;border-color:#eee}
.clarification-dialog-supplement label{font-size:11px;color:#888;font-weight:400}
.clarification-dialog-supplement textarea{min-height:38px;max-height:100px;margin-top:5px;padding:8px 10px;font-size:13px;border-color:#e7e7e7;border-radius:9px;line-height:1.5}
.clarification-dialog-supplement p{min-height:0;margin:5px 0 0;font-size:11px}
.clarification-dialog-supplement p:empty{display:none}
.clarification-dialog-actions{margin-top:12px;gap:8px}
.clarification-dialog-actions button{min-height:34px;padding:6px 13px;font-size:12px;border-radius:18px}
.clarification-dialog-actions .primary{background:#252525;border-color:#252525;color:#fff}
.recognition-unified{display:grid;grid-template-columns:1fr auto;align-items:center;gap:4px 12px;margin-top:10px;padding:10px 12px;border:1px solid #e5e2d9;border-radius:10px;background:#ffffffaa}
.recognition-unified>span{font-weight:600}
.recognition-unified>small{grid-column:1;color:#8b806c;overflow-wrap:anywhere}
.recognition-unified>.recognition-clarification-open{grid-column:2;grid-row:1 / 3;margin:0}
.recognition-unified>.candidate-choice[hidden]{display:none!important}
.composer{position:relative}
.composer-wrap #clarificationDialog{position:static;inset:auto;width:100%;max-width:none;box-sizing:border-box;margin:0 0 8px;max-height:min(440px,48dvh);z-index:auto;box-shadow:none;overflow:auto}
.composer-wrap #clarificationDialog::backdrop{background:transparent}
.composer-wrap #clarificationDialog textarea{min-height:38px;max-height:90px;border:1px solid #e7e7e7;padding:8px 10px;font-size:13px;resize:vertical}
#quote .chat-messages{min-height:0}
#quote .composer-wrap{flex-shrink:0}
@media(max-width:600px){.clarification-dialog{width:calc(100vw - 24px);margin:auto;border:1px solid #e7e7e7;border-radius:16px;max-height:calc(100dvh - 32px)}.clarification-dialog-content{padding:16px}.clarification-dialog-actions{display:flex}.clarification-dialog-actions button{width:auto;min-height:38px}.recognition-unified{grid-template-columns:1fr}.recognition-unified>.recognition-clarification-open{grid-column:1;grid-row:auto;justify-self:start}}

/* 飞 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%;border:1px solid var(--border);border-radius:9px;background:var(--surface);transition:border-color .15s,box-shadow .15s}
.term-add{align-items:start}
.term-add>label{align-self:start}
.term-combobox-label{display:block;align-self:start}
.term-combobox-label>.term-combobox{position:relative}
.term-combobox:focus-within{border-color:var(--accent,#0a84ff);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent,#0a84ff) 18%,transparent)}
.term-combobox>input[type=search]{width:100%;padding:8px 12px;border:0;border-radius:8px;background:transparent;color:inherit;font:inherit}
.term-combobox>input[type=search]:focus{outline:none}
.term-combobox-list{position:absolute;left:-1px;right:-1px;top:calc(100% + 5px);max-height:180px;overflow-y:auto;background:var(--surface-elev,#fff);border:1px solid var(--accent,#0a84ff);border-radius:8px;box-shadow:0 8px 20px rgba(0,0,0,.12);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}}
.ai-config-layout{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(300px,.82fr);gap:18px;align-items:start}.ai-primary-card,.ai-fallback-card{min-height:100%}.ai-primary-card h2{margin-bottom:12px}.ai-fallback-card{display:flex;flex-direction:column;gap:14px}.ai-fallback-card .fallback-card{margin:0}.ai-side-note{padding:14px 16px;border:1px dashed #cbdcc9;border-radius:12px;background:#f7faf5}.ai-side-note b{color:#315c3e}.ai-side-note p{margin:5px 0 0;font-size:12px}.term-memory-guide{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0;padding:10px;background:#f6f9f3;border-radius:10px}.term-memory-guide span{font-size:11px;color:#56715b;text-align:center}.term-rule-add{display:grid;grid-template-columns:minmax(140px,1fr) 130px 120px minmax(190px,1.2fr) auto;gap:8px;align-items:end;margin:12px 0 16px;padding:12px;border:1px solid #dfe9dc;border-radius:10px;background:#fafcf9}.term-rule-add label{font-size:11px}.term-rule-add button{white-space:nowrap}.term-entry{align-items:center}.term-entry span{flex:1;min-width:0;overflow-wrap:anywhere}.term-entry button{flex:none}
/* V3.1 §3/T29：术语作用域标签。个人词与公司词必须视觉可区分，
   否则销售会以为改一次就全公司生效。个人词用暖色，公司词用中性绿。 */
.term-scope{flex:none;min-width:0;padding:1px 7px;border-radius:999px;font-size:11px;line-height:18px;white-space:nowrap;overflow-wrap:normal}
.term-scope-personal{background:#fdf1e3;color:#9a5b16;border:1px solid #f3dcc0}
.term-scope-company{background:#eef4ea;color:#3f6147;border:1px solid #dbe7d7}@media(max-width:900px){.ai-config-layout{grid-template-columns:1fr}.term-rule-add{grid-template-columns:repeat(2,minmax(0,1fr))}.term-rule-add button{grid-column:1/-1;justify-self:start}}@media(max-width:650px){.term-memory-guide{grid-template-columns:1fr}.term-rule-add{grid-template-columns:1fr}.term-rule-add button{grid-column:auto;width:100%}}
.term-draft-list{margin:10px 0;padding:10px;border:1px dashed #d5c69b;border-radius:10px;background:#fffaf0}.term-draft-title{font-size:12px;font-weight:700;color:#7e641d;margin-bottom:4px}.term-draft em{font-size:11px;color:#9b5b20;font-style:normal}.term-scope-field{min-width:150px}
.term-section{padding-top:10px;margin-top:10px;border-top:1px solid #e6ece2}.term-section:first-of-type{border-top:0;margin-top:0}.term-section h3{margin:0 0 8px;font-size:13px;color:#315c3e}.term-section .catalog-inline-note{margin:0 0 9px}
.packing-trade-panel{margin-top:10px;padding:10px 12px;border:1px solid #dce6d9;border-radius:10px;background:#fafcf9}
.packing-trade-panel h4{margin:0 0 8px;font-size:13px;line-height:1.4}
.packing-trade-item>b{font-size:12px;font-weight:600}
.packing-trade-panel .packing-summary{padding:6px 0;margin:0 0 8px;border:0;background:transparent}
.packing-trade-panel .packing-summary p{margin:4px 0;font-size:12px;line-height:1.4}
.packing-trade-panel .packing-plan{padding:8px;gap:4px}
.packing-trade-panel .packing-plan b{font-size:13px}
.packing-trade-panel .packing-plan span,.packing-trade-panel .packing-plan small,.packing-notes{font-size:11px;line-height:1.4}
.trade-fees-grid{display:grid;grid-template-columns:minmax(90px,1fr) minmax(120px,1.4fr) minmax(90px,1fr) auto;align-items:end;gap:8px}
.trade-fees-grid label{display:grid;gap:4px;font-size:11px;margin:0}
.trade-fees-grid input,.trade-fees-grid select,.trade-fees-grid button{box-sizing:border-box;min-height:34px;padding:6px 8px;font-size:12px;margin:0}
.trade-fees-grid button{white-space:nowrap}
.trade-fees-notice{margin:5px 0 0;font-size:12px;color:#8c591b}
.trade-fees-panel>small{display:inline-block;margin:5px 12px 0 0;font-size:11px}
@media(max-width:600px){.trade-fees-grid{grid-template-columns:1fr 1fr}.trade-fees-grid input,.trade-fees-grid select,.trade-fees-grid button{min-height:40px}.startup-fee-actions{align-items:stretch;flex-direction:column}.startup-fee-actions input,.startup-fee-actions button{width:100%;min-height:40px}}
.composer-wrap #clarificationDialog .clarification-dialog-content{padding:12px 14px}
.composer-wrap #clarificationDialog h2{font-size:15px}
.composer-wrap #clarificationDialog .clarification-dialog-content>p{margin:4px 25px 8px 0;line-height:1.4}
.composer-wrap #clarificationDialog .clarification-dialog-option{min-height:36px;padding:6px 8px}
.clarification-dialog-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.clarification-dialog-fields[hidden]{display:none}
.clarification-dialog-fields label{display:grid;gap:3px;font-size:12px}
.clarification-dialog-fields input,.clarification-dialog-fields select{min-width:0;width:100%;padding:6px 8px;font-size:13px;box-sizing:border-box;border:1px solid #d6e0d3;border-radius:6px}
.recognition-wide{grid-column:1/-1}
.clarification-dialog-status:empty{display:none}
.clarification-dialog-status{font-size:12px;color:#9a481c;margin:6px 0}
.composer-wrap #clarificationDialog .clarification-dialog-actions{margin-top:8px}
.clarification-dialog-fields small{font-size:11px;color:#6d7e70}
@media(max-width:600px){.composer-wrap #clarificationDialog .clarification-dialog-option{min-height:42px}}
.composer-wrap #clarificationDialog[data-kind="details"]{max-height:min(230px,32dvh)}
.composer-wrap #clarificationDialog[data-kind="details"] .clarification-dialog-content{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;padding:9px 12px 8px}
.composer-wrap #clarificationDialog[data-kind="details"] h2{font-size:14px;line-height:1.25;padding-right:28px}
.composer-wrap #clarificationDialog[data-kind="details"] h2,.composer-wrap #clarificationDialog[data-kind="details"] .clarification-dialog-content>p,.composer-wrap #clarificationDialog[data-kind="details"] .clarification-dialog-choices,.composer-wrap #clarificationDialog[data-kind="details"] .clarification-dialog-status{grid-column:1/-1}
.composer-wrap #clarificationDialog[data-kind="details"] .clarification-dialog-content>p{margin:2px 28px 6px 0;font-size:11px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.composer-wrap #clarificationDialog[data-kind="details"] .clarification-dialog-close{top:7px;right:8px;width:25px;height:25px;font-size:18px}
.composer-wrap #clarificationDialog[data-kind="details"] .clarification-dialog-choices:empty{display:none}
.composer-wrap #clarificationDialog[data-kind="details"] .clarification-dialog-fields{grid-column:1;display:grid;grid-template-columns:repeat(auto-fit,minmax(105px,1fr));gap:5px 7px}
.composer-wrap #clarificationDialog[data-kind="details"] .clarification-dialog-fields label{gap:2px;font-size:11px;line-height:1.2}
.composer-wrap #clarificationDialog[data-kind="details"] .clarification-dialog-fields input,.composer-wrap #clarificationDialog[data-kind="details"] .clarification-dialog-fields select{min-height:30px;padding:4px 7px;font-size:12px}
.composer-wrap #clarificationDialog[data-kind="details"] .clarification-dialog-status{margin:3px 0;font-size:11px}
.composer-wrap #clarificationDialog[data-kind="details"] .clarification-dialog-actions{grid-column:2;align-self:end;margin:0;gap:6px;white-space:nowrap}
.composer-wrap #clarificationDialog[data-kind="details"] .clarification-dialog-actions button{min-height:31px;padding:4px 11px;font-size:11px}
@media(max-width:900px){.composer-wrap #clarificationDialog[data-kind="details"]{max-height:min(330px,44dvh)}.composer-wrap #clarificationDialog[data-kind="details"] .clarification-dialog-content{display:block}.composer-wrap #clarificationDialog[data-kind="details"] .clarification-dialog-fields{grid-template-columns:repeat(3,minmax(0,1fr))}.composer-wrap #clarificationDialog[data-kind="details"] .clarification-dialog-actions{margin-top:5px}}
@media(max-width:700px){.composer-wrap #clarificationDialog[data-kind="details"] .clarification-dialog-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.composer-wrap #clarificationDialog[data-kind="details"]{max-height:min(420px,58dvh)}.composer-wrap #clarificationDialog[data-kind="details"] .clarification-dialog-fields{grid-template-columns:1fr}.composer-wrap #clarificationDialog[data-kind="details"] .clarification-dialog-actions button{min-height:40px}}
.quote-calculation .special-process-editor{padding:8px 10px}
.special-process-editor>.quote-calc-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px;margin:6px 0}
.special-process-editor .quote-calc-fields label[hidden]{display:none}
.special-process-editor input[type=number]{padding:5px 7px;min-height:30px}
.special-process-editor .adjust-check{justify-content:flex-start;gap:5px}
.special-process-editor .packing-band-note{font-size:11px;color:#647768}
@media(max-width:600px){.special-process-editor>.quote-calc-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.special-process-editor input[type=number]{min-height:38px}}
.production-status{margin:6px 0;padding:6px 9px;border-radius:7px;background:#f3f7f0;color:#416149;font-size:12px}.production-status small{display:block;margin-top:2px;color:#718071}.production-status-pending_confirmation{background:#fff8e8;color:#8a5b22}.production-status-needs_specification{background:#fff3f0;color:#9a4c3d}.production-status-confirmed_pending{background:#eef4ff;color:#36588c}
.term-toolbar .actions{align-self:end;align-items:flex-end;min-height:0}.term-toolbar .actions button{height:38px;padding:8px 13px;font-size:12px;white-space:nowrap}
