.benchmark-dialog{width:min(1080px,94vw);max-height:88vh;overflow-y:auto;padding:20px;background-color:var(--cm-surface);background-image:var(--cm-panel-metal-soft);color:var(--cm-text);border:1px solid var(--cm-border);box-shadow:var(--cm-floating-shadow)}
.benchmark-dialog::backdrop{background:rgba(10,16,20,.52);backdrop-filter:blur(2px)}
.benchmark-header{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--cm-line)}
.benchmark-header h2{margin:0 0 12px;font-size:20px}
.benchmark-section{margin:18px 0;padding:16px;border:1px solid var(--cm-line);background-color:var(--cm-surface-soft);background-image:var(--cm-panel-metal-soft)}
.benchmark-section h3{margin:0 0 12px;font-size:17px}
.benchmark-section p[role=status]{min-height:1.5em;color:var(--cm-muted)}
.benchmark-section label{display:grid;gap:8px;max-width:680px}
.benchmark-section input:not([type=checkbox]):not([type=radio]),.benchmark-section select{width:100%;min-height:var(--cm-control-height);padding:8px;border:1px solid var(--cm-border);background-color:var(--cm-field-bg);color:var(--cm-text)}
.benchmark-section details{margin-top:16px}.benchmark-section summary{cursor:pointer;font-weight:600}
.benchmark-section form{display:grid;gap:12px;margin-top:12px}
.benchmark-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}.benchmark-heading .section-actions{padding:0}
.benchmark-history{max-height:330px;overflow:auto;border:1px solid var(--cm-line)}.benchmark-history table{min-width:720px}
.benchmark-history th,.benchmark-history td{white-space:normal}.benchmark-history td:first-child,.benchmark-history td:nth-child(2){width:58px;text-align:center}
.benchmark-history input[type=checkbox],.benchmark-history input[type=radio]{width:18px;height:18px;accent-color:var(--cm-cyan)}
.benchmark-comparison{min-height:1.5em;margin-top:16px;overflow-wrap:anywhere}.benchmark-comparison h4{margin:0 0 8px}
.benchmark-dialog menu.section-actions{margin:0;padding:0}
@media(max-width:700px){.benchmark-dialog{padding:12px}.benchmark-section{padding:12px}.benchmark-heading{align-items:flex-start}}
