.studio-ui #matcher-controls { padding: 16px 20px; }
.match-model-controls { min-width: 0; }
.match-model-controls > summary { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 6px 0; cursor: pointer; color: var(--muted); font-size: .875rem; }
.match-model-controls[open] > summary { margin-bottom: 12px; }
.match-model-controls .field { min-width: 0; }
.match-flow-heading { margin: 0 0 6px; font-size: 1.125rem; }
.match-flow-hint { font-size: .8125rem; margin-bottom: 12px; max-width: 80ch; }
.studio-ui .remap-actions[hidden],#match-extras[hidden] { display: none; }
.studio-ui .remap-actions { border-top: 0; }
.studio-ui .remap-actions .actions { margin-top: 12px; }
.studio-ui .remap-actions #remap-count { font-weight: 600; color: var(--text); }
.match-project > h3 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .875rem; color: var(--muted); }
.match-project .match-summary { font-size: .8125rem; gap: 6px 16px; margin-bottom: 18px; }
.match-cost-tools,#match-extras > details { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 8px; }
.match-cost-tools > summary,#match-extras > details > summary { cursor: pointer; min-height: 44px; padding: 10px 0; color: var(--text); font-size: .875rem; font-weight: 600; }
.match-cost-tools .cost-panel { border: 0; margin: 0; padding: 12px 0; }
.match-cost-tools .cost-panel > h4 { display: none; }
#match-extras .match-help { margin-bottom: 16px; }
.match-more .match-shopping { margin-top: 16px; }
#palette-review{margin:18px 0;padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
#palette-review[hidden]{display:none}
#palette-review>p{font-size:.8125rem;max-width:80ch;margin:10px 0}
.palette-keep{display:flex;align-items:center;gap:10px;min-height:44px;font-size:.875rem;margin:12px 0}
.palette-keep input{width:18px;min-height:18px;accent-color:var(--accent)}
.palette-row{display:flex;align-items:center;gap:14px;padding:12px 0;border-top:1px solid var(--line);min-width:0}
.palette-row p{font-size:.8125rem;margin-top:4px;overflow-wrap:anywhere}
.palette-swatches{display:flex;gap:4px;flex:none}
.palette-swatch{width:28px;height:38px;border:1px solid var(--muted);border-radius:5px}
.palette-shop-link{display:inline-flex;align-items:center;min-height:44px;font-size:.8125rem;overflow-wrap:anywhere}
#palette-review .palette-shopping-note{border-top:1px solid var(--line);padding-top:12px}
@media(max-width:640px) { .studio-ui #matcher-controls { padding: 12px; } .match-model-controls .match-toolbar { gap: 12px; } .match-flow-hint { line-height: 1.5; } }
@media print { .match-model-controls,#match-extras,.match-cost-tools:not([open]) { display: none !important; } }
