/* Scoped to the model-comparison extension; use the workspace's existing palette. */
.model-compare {min-width:0; overflow:hidden}
.model-compare .mc-head {align-items:flex-start; padding-bottom:0}
.mc-head h2 {font-size:13px; line-height:1.6; font-weight:600; margin:0; color:var(--ink)}
.mc-head p {font-size:11.5px; color:var(--muted); margin:4px 0 0}
.mc-head .btn {flex:none}
.mc-controls {padding:18px 21px 0}
.mc-add {max-width:530px}
.mc-add > label,.mc-field label {display:block; font-size:11.5px; font-weight:500; color:var(--ink-2); margin-bottom:6px}
.mc-add-row {display:flex; align-items:stretch; gap:9px}
.mc-add-row select {display:block; width:100%; min-width:0; min-height:35px; padding:7px 30px 7px 10px; border:1px solid var(--line-strong); border-radius:8px; background:var(--input-bg); color:var(--ink); font-family:var(--mono); font-size:11.5px}
.mc-add-row .btn {height:auto; min-height:35px; flex:none}
.mc-add-row select:disabled {opacity:.55; cursor:not-allowed}
.mc-selected {display:flex; flex-wrap:wrap; gap:7px; margin-top:11px}
.mc-selected-model {display:inline-flex; align-items:center; gap:5px; max-width:100%; padding:4px 5px 4px 9px; border:1px solid var(--line); border-radius:7px; background:var(--tint); color:var(--accent-deep); font-family:var(--mono); font-size:11px}
.mc-selected-model > span {overflow-wrap:anywhere; min-width:0}
.mc-selected-model button {display:flex; align-items:center; justify-content:center; flex:none; width:25px; height:25px; padding:0; border:0; background:none; border-radius:5px; color:var(--accent-deep); cursor:pointer; font-size:19px; line-height:1}
.mc-selected-model button:hover {background:var(--tint-2)}
.mc-feedback {min-height:19px; margin:6px 0 13px; font-size:11px; color:var(--ink-2); line-height:1.7; overflow-wrap:anywhere}
.mc-inputs {display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:13px; border:0; min-width:0; padding:0; margin:0 0 17px}
.mc-inputs legend {font-size:12px; font-weight:600; color:var(--ink); padding:0 0 10px}
.mc-field {min-width:0}
.mc-field input {display:block; width:100%; min-width:0; height:38px; border:1px solid var(--line-strong); border-radius:8px; color:var(--ink); background:var(--input-bg); font-family:var(--mono); font-size:12px; padding:7px 10px; font-variant-numeric:tabular-nums}
.mc-field input[aria-invalid="true"] {border-color:var(--danger)}
.mc-error {margin:-5px 0 15px; padding:8px 10px; border-radius:7px; background:var(--danger-tint); color:var(--danger); font-size:11.5px; line-height:1.6}
.mc-table-wrap {max-width:100%; overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:thin; border-top:1px solid var(--line)}
.mc-table-wrap:focus-visible {outline:2px solid var(--accent); outline-offset:-2px}
.mc-table {width:100%; border-collapse:separate; border-spacing:0; table-layout:fixed; font-size:11.5px; color:var(--ink-2)}
.mc-table th,.mc-table td {padding:12px 16px; text-align:left; vertical-align:top; overflow-wrap:anywhere; border-bottom:1px solid var(--line); line-height:1.7}
.mc-table thead th {background:var(--soft); font-weight:600; color:var(--ink)}
.mc-table th:first-child {width:130px; position:sticky; left:0; z-index:1; background:var(--surface); font-weight:500}
.mc-table thead th:first-child {background:var(--surface); z-index:2}
.mc-table .mc-model-name {font-family:var(--mono); font-size:11.5px}
.mc-table td {font-variant-numeric:tabular-nums}
.mc-table .mc-available {color:var(--accent-deep)}
.mc-table .mc-unavailable {color:var(--muted)}
.mc-table .mc-cost td {font-family:var(--mono); color:var(--ink)}
.mc-table .mc-total th,.mc-table .mc-total td {background:var(--tint); color:var(--accent-deep); font-weight:600; border-bottom:0}
.mc-table .mc-total th:first-child {background:var(--surface); color:var(--ink)}
.mc-note {padding:13px 21px 17px; font-size:10.5px; color:var(--muted); line-height:1.8}
.mc-scroll-hint {margin:0; padding:8px 21px 0; font-size:10.5px; color:var(--muted)}
.mc-empty {padding:25px 21px; font-size:12px; color:var(--muted); text-align:center; border-top:1px solid var(--line)}
.mc-sr {position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0}
@media(max-width:760px) {
  .mc-inputs {grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px}
}
@media(max-width:560px) {
  .model-compare .mc-head {padding:16px 16px 0; gap:10px}
  .mc-head h2 {font-size:12.5px}
  .mc-head p {font-size:10.5px}
  .mc-head .btn {padding:0 10px; font-size:10.5px}
  .mc-controls {padding:15px 16px 0}
  .mc-add-row {gap:7px}
  .mc-add-row select {font-size:10.5px}
  .mc-add-row .btn {font-size:11px; padding:0 10px}
  .mc-selected-model {font-size:10px}
  .mc-selected-model button {width:27px; height:27px}
  .mc-field label {font-size:10.5px}
  .mc-field input {font-size:11.5px}
  .mc-inputs {gap:12px 10px}
  .mc-table th,.mc-table td {padding:11px 13px}
  .mc-note {padding:12px 16px 16px; font-size:10px}
  .mc-scroll-hint {padding-left:16px; padding-right:16px; font-size:10px}
}
