.tp-work-fields { flex: 0 0 100%; min-width: 0; display: grid; gap: 8px; margin-bottom: 10px; }
.tp-work-fields label { font-weight: 700; }
.tp-work-fields .input { width: 100%; max-width: 420px; }
.tp-work-help, .tp-language-results { color: var(--text-muted, #64748b); font-size: .85rem; line-height: 1.5; }
.tp-language-control { flex: 1 1 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; width: 100%; }
.tp-language-control > .input { box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; }
.tp-language-control .tp-language-search { min-height: 40px; padding: 8px 12px; font-size: .9rem; }
.tp-language-results:empty { display: none; }
.tp-language-legacy { flex-basis: 100%; border: 1px solid #b45309; border-radius: 8px; padding: 10px 12px; color: #854d0e; background: #fffbeb; }
.tp-language-legacy[hidden] { display: none; }
html[data-theme="dark"] .tp-language-legacy { color: #fde68a; background: #292014; border-color: #a16207; }
html[data-theme="dark"] .tp-work-help, html[data-theme="dark"] .tp-language-results { color: #cbd5e1; }
@media(max-width:600px) { .tp-work-fields .input { max-width:none; } .ml-base-language-selects .tp-language-control { flex-basis:100%; } }
/* The existing step form keeps a light surface even when the site header is dark. */
.tp-quote-step-preview .tp-work-fields .tp-work-help,
.tp-quote-step-preview .tp-language-control .tp-language-results { color: #475569; }

/* Service forms keep their existing surfaces and input tokens. */
#tpi-quote-page .tp-language-search { box-sizing:border-box; width:100%; min-width:0; border:1px solid var(--tpi-border); border-radius:8px; background:var(--tpi-surface-strong); color:var(--tpi-text); }
#tpi-quote-page .tp-language-results { color:var(--tpi-text-soft); }
#tpOneStopForm .tp-language-control { min-width:0; }
#tpOneStopForm .tp-language-search { box-sizing:border-box; width:100%; }
#tpOneStopForm .tp-one-stop-language-fields > label { grid-template-rows:max-content auto; }
#tpOneStopForm .tp-language-results { color:var(--os-muted); }
