.is-text-order-editor .drawer-foot{justify-content:space-between;align-items:center}
.text-order-compact .text-order-first-grid{grid-template-columns:minmax(225px,.62fr) minmax(0,1.6fr);gap:20px}
.text-order-compact .text-order-inline{position:sticky;top:0}
.text-order-compact #voice-text{height:192px;min-height:120px;max-height:300px;font-size:14px;line-height:1.7;resize:vertical}
.text-order-compact .text-order-recognition{padding-left:20px;min-width:0}
.text-order-compact .text-order-recognition-head{margin-bottom:12px}
.text-order-compact .text-order-recognition-head h3{font-size:17px}
.text-order-compact .text-order-recognition-facts{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 8px}
.text-order-compact .text-order-fact{position:relative;min-width:0}
.text-order-compact .text-order-fact:nth-child(2){grid-column:auto}
.text-order-compact .field{font-size:12px;gap:4px}
.text-order-compact input,.text-order-compact select{min-width:0;width:100%;height:36px;padding:6px 8px;border:1px solid var(--line);border-radius:6px;background:#fff;font-size:13px;font-variant-numeric:tabular-nums}
.text-order-compact [aria-invalid="true"]{border-color:var(--bad);background:var(--bad-soft);box-shadow:none}
.text-order-compact .text-order-required{font-size:12px;color:var(--bad)}
.text-order-compact [hidden]{display:none}
.text-order-derived{display:flex;flex-direction:column;gap:8px;font-size:12px}
.text-order-derived b{font-size:16px;font-weight:550}.text-order-derived small{font-size:12px;font-weight:400;color:var(--muted)}
.text-order-compact .text-order-recognition-sales{margin-top:16px}
.text-order-compact .text-order-recognition-sales-head{margin-bottom:9px;font-size:13px}
.text-order-compact .text-order-recognition-sales-head strong{font-size:20px;font-weight:550;font-variant-numeric:tabular-nums}
.text-order-compact .text-order-columns,.text-order-compact .text-order-recognition-line{display:grid;grid-template-columns:minmax(0,1fr) 58px 100px 38px;gap:6px;align-items:center}
.text-order-columns{font-size:12px;color:#666;padding:0 0 5px}
.text-order-compact .text-order-recognition-line{padding:3px 0;border:0;border-bottom:1px solid var(--line);border-radius:0}
.text-order-compact .text-order-recognition-line .btn{margin:0;padding:4px;min-height:32px;font-size:12px}
.text-order-compact .text-order-line-review:empty{display:none}
.text-order-compact .text-order-line-review{grid-column:1/-1}
.text-order-compact .text-order-field-review{display:flex;flex-wrap:wrap;gap:4px 8px;margin:0;font-size:12px;color:var(--bad)}
.text-order-compact .text-order-field-review small{font-size:12px;color:inherit}
.text-order-compact .text-order-unmatched{margin:10px 0;padding:9px;border:1px solid var(--bad);background:var(--bad-soft);border-radius:6px}
.text-order-compact .text-order-unmatched h3{font-size:12px;margin:0 0 6px}
.text-order-compact .text-order-recognition-add{display:block;margin-top:8px}
.text-order-compact .text-order-actions{align-items:center;gap:10px;margin-top:10px}
.text-order-more{font-size:12px}.text-order-more summary{cursor:pointer;padding:8px}
.text-order-compact .text-order-ai-status{font-size:12px;color:var(--muted);margin:6px 0}
.text-order-save-state{font-size:12px;color:var(--muted)}.text-order-save-state.needs-choice{color:var(--bad)}
.text-order-speaking-guide{margin-top:10px;padding-top:8px;border-top:1px solid var(--line);font-size:12px;line-height:1.6;color:var(--muted);overflow-wrap:anywhere}
.text-order-speaking-guide h3{margin:0;color:var(--text);font-size:13px;font-weight:550;line-height:1.5}
.text-order-speaking-guide .text-order-speaking-format{margin:3px 0 6px}
.text-order-speaking-guide dl{display:grid;gap:4px;margin:0}
.text-order-speaking-guide dl>div{display:grid;grid-template-columns:4em minmax(0,1fr);gap:8px}
.text-order-speaking-guide dt{font-weight:500;color:var(--text)}
.text-order-speaking-guide dd{margin:0}
.text-order-speaking-guide .text-order-speaking-note{margin:6px 0 4px}
.text-order-speaking-examples{padding:0}
.text-order-speaking-examples summary{cursor:pointer;min-height:30px;line-height:30px;color:var(--text);width:fit-content;padding:0;margin:0}
.text-order-speaking-examples summary:focus-visible{outline:2px solid var(--text);outline-offset:2px}
.text-order-speaking-examples>div{padding:3px 0 7px}
.text-order-speaking-examples h4{font-size:12px;font-weight:550;color:var(--text);margin:8px 0 3px}
.text-order-speaking-examples p{white-space:pre-line;margin:0 0 7px}
.text-order-speaking-examples small{font-size:12px}
@media(max-width:900px){.text-order-compact .text-order-first-grid{grid-template-columns:1fr;gap:14px}.text-order-compact .text-order-inline{position:static}.text-order-compact #voice-text{height:110px;min-height:100px}.text-order-compact .text-order-recognition{padding-left:0}.text-order-compact .text-order-recognition-facts{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:560px){.text-order-compact input,.text-order-compact select{font-size:16px;height:44px}.text-order-compact .text-order-recognition-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.text-order-compact .text-order-fact:nth-child(2){grid-column:auto}.text-order-compact .text-order-columns{display:none}.text-order-compact .text-order-recognition-line{grid-template-columns:64px minmax(100px,1fr) 44px;gap:6px;padding:8px 0}.text-order-compact .text-order-recognition-project{grid-column:1/-1}.text-order-compact .text-order-recognition-line .btn{min-height:44px;margin:0}.is-text-order-editor .drawer-foot{gap:6px}.is-text-order-editor .drawer-foot .row-actions{width:100%;flex-wrap:nowrap}.text-order-compact #voice-text{font-size:16px}.text-order-compact .text-order-recognition-head h3{font-size:16px}}

.text-order-catalog-picker{min-width:0;width:100%;margin:10px 0 12px}
.text-order-catalog-title{display:flex;justify-content:space-between;gap:8px;font-size:12px;margin-bottom:5px;color:var(--text)}
.text-order-catalog-title>span{color:var(--muted)}
.text-order-catalog-tabs{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}
.text-order-catalog-tabs .btn{min-width:0;min-height:34px;padding:5px 6px;font-size:12px;white-space:nowrap}
.text-order-catalog-tabs .btn.is-selected,.text-order-catalog-tabs .btn.is-selected:hover{border-color:var(--text);background:var(--text);color:var(--white)}
.text-order-catalog-tabs .btn:focus-visible{outline:2px solid var(--text);outline-offset:2px}
.text-order-catalog-picker .text-order-recognition-add{margin-top:5px}
.text-order-fact .text-order-field-review{margin-top:4px}
.text-order-fact .text-order-field-review:empty{display:none}
@media(max-width:560px){.text-order-catalog-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}.text-order-catalog-tabs .btn{min-height:44px;font-size:12px;padding:4px 2px}}
@media(max-width:900px){.text-order-speaking-guide{margin-top:10px;padding-top:9px}.text-order-speaking-guide dl{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:14px}.text-order-speaking-guide dl>div{display:block}.text-order-speaking-guide dd{margin-top:2px}.text-order-speaking-examples summary{min-height:44px;line-height:44px}}
