.comparison-controls .btn{height:40px;white-space:nowrap}#comparisonDialog{width:min(1260px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:18px;box-sizing:border-box;overflow:auto;overflow-wrap:anywhere;background:var(--paper);color:var(--text);border:2px solid var(--text);user-select:text}#comparisonDialog::backdrop{background:rgba(0,0,0,.65)}.cmp-heading{display:flex;gap:12px;align-items:center;justify-content:space-between;position:sticky;top:-18px;z-index:4;background:var(--paper);padding:10px 0;border-bottom:2px solid var(--text)}.cmp-heading h2{font-size:22px;margin:0}.cmp-heading button{flex-shrink:0}.cmp-actions,.cmp-tabs{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0}#comparisonDialog .btn{min-height:40px;max-width:100%;white-space:normal;line-height:1.3}.cmp-tabs .on{background:var(--text);color:var(--paper)}.cmp-note{color:var(--muted);font-size:12px;line-height:1.6}.cmp-scroll{overflow:auto;max-height:52vh;border:1px solid var(--line)}.cmp-table{width:100%;min-width:780px;border-collapse:collapse;font-size:13px}.cmp-table th,.cmp-table td{text-align:left;vertical-align:top;padding:10px;border-bottom:1px solid var(--line)}.cmp-table th{position:sticky;top:0;background:var(--panel);z-index:1}.cmp-table small{display:block;margin-top:5px}.cmp-table tr[data-inspected=true]{background:var(--panel)}.cmp-state{display:inline-block;font-weight:bold;padding:4px 7px;border:1px solid var(--line)}.cmp-state[data-state=admissible]{background:var(--accent);color:#111}.cmp-state[data-state=rejected]{border:2px solid var(--signal)}.cmp-details{margin-top:16px;padding:14px;border:1px solid var(--line)}.cmp-details h3{margin-top:0}.cmp-findings{max-height:36vh;overflow:auto}.cmp-findings li{margin:8px 0;line-height:1.5}.cmp-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:12px 0}.cmp-fields label{display:flex;flex-direction:column;gap:5px;font-size:13px;min-width:0}.cmp-fields input:not([type=checkbox]),.cmp-fields select,.cmp-fields textarea,.cmp-actions select{width:100%;min-height:40px;box-sizing:border-box;background:var(--paper);color:var(--text);border:2px solid var(--text);font:inherit;padding:7px}.cmp-fields .wide{grid-column:1/-1}.cmp-fields button{align-self:end}.cmp-fields .cmp-check{display:flex;flex-direction:row;align-items:center;gap:8px}.cmp-check input{width:18px;height:18px;flex-shrink:0}.cmp-status[data-error=true]{color:var(--signal)}.cmp-scope{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.cmp-progress{font-size:13px;line-height:1.6}.cmp-required{font-weight:bold}#comparisonDialog .cmp-target{max-width:400px}#comparisonDialog .cmp-ratings{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:750px){.cmp-fields,.cmp-scope{grid-template-columns:repeat(2,minmax(0,1fr))}.cmp-heading h2{font-size:18px}}@media(max-width:450px){#comparisonDialog{width:calc(100vw - 12px);max-height:calc(100dvh - 12px);padding:12px}.cmp-heading{top:-12px}.cmp-fields,.cmp-scope,#comparisonDialog .cmp-ratings{grid-template-columns:minmax(0,1fr)}.cmp-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.cmp-tabs .btn{width:100%}.cmp-details{padding:10px}}
