#diagnostic-wizard{color-scheme:dark;width:min(460px,calc(100% - 40px));max-height:min(720px,calc(100dvh - 64px));padding:0;margin:auto;overflow:auto;overscroll-behavior:contain;background:#1b1c1f;border:1px solid #ffffff24;color:var(--white);border-radius:20px}
#diagnostic-wizard::backdrop{background:#000a;backdrop-filter:blur(3px)}
#diagnostic-wizard [hidden]{display:none!important}
.dw-top{padding:18px 22px 14px;border-bottom:1px solid #ffffff17}
.dw-hdr,.dw-meta,.dw-actions,.dw-steps{display:flex;align-items:center;justify-content:space-between}
.dw-hdr{font-size:14px;font-weight:700}.dw-close{background:#303135;color:var(--white);border:0;border-radius:50%;width:36px;height:36px;font-size:23px}
.dw-top progress{display:block;appearance:none;width:100%;height:4px;border:0;margin:14px 0;background:#393a3e;color:var(--orange);border-radius:4px;overflow:hidden}
.dw-top progress::-webkit-progress-bar{background:#393a3e}.dw-top progress::-webkit-progress-value{background:var(--orange)}.dw-top progress::-moz-progress-bar{background:var(--orange)}
.dw-steps{list-style:none;margin:0 0 10px;padding:0}.dw-steps li{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#303135;color:#aaa;font-size:12px;font-weight:700}.dw-steps .current{background:var(--orange);color:#181818}.dw-steps .past{color:#ff977d}
.dw-meta,.dw-hint{font-size:12px;color:var(--muted)}.dw-body,.dw-done{padding:20px 22px 12px}
.dw-topic{color:#ff8d6e;font-size:11px;font-weight:700;letter-spacing:1px;text-transform:uppercase;margin:0 0 7px}
.dw-body fieldset{min-width:0;margin:0;padding:0;border:0}.dw-body legend,.dw-done h2{font:700 22px/1.15 Arial,Helvetica,sans-serif;letter-spacing:-.5px;margin:0 0 15px;padding:0}
.dw-options{display:grid;gap:7px}.dw-options label,.dw-field input{display:flex;align-items:center;gap:10px;padding:10px 12px;min-height:44px;border:1px solid #ffffff28;border-radius:10px;background:#222326;color:var(--white);font-size:14px;line-height:1.35}
.dw-options label{cursor:pointer}.dw-options input{accent-color:var(--orange);margin:0;flex:none;width:16px;height:16px}.dw-options label:has(:checked){border-color:var(--orange);background:#352621}.dw-options label:focus-within,.dw-field input:focus-visible{outline:2px solid #ffac91;outline-offset:1px}
.dw-actions{gap:12px;padding:8px 22px 20px}.dw-next,.dw-finish{background:#c93620;color:white;border:0;padding:12px 16px;border-radius:10px;min-height:44px;font-size:14px;font-weight:700}.dw-next{margin-left:auto}.dw-next span{margin-left:8px}.dw-back{background:none;border:0;color:var(--white);min-height:44px}
.dw-field{display:grid;gap:5px;margin:10px 0;font-size:13px}.dw-field input{width:100%;font-size:16px}.dw-error{font-size:13px;color:#ffac91}.dw-done{padding-bottom:22px}.dw-done p{color:var(--muted)}
@media(max-height:620px){#diagnostic-wizard{max-height:calc(100dvh - 36px)}.dw-top{padding-block:10px}.dw-body{padding-top:14px}}

.dw-hdr{justify-content:flex-end}.dw-field input{box-sizing:border-box;border-radius:999px}

/* Questions receive programmatic focus for screen readers, without a selection border. */
#diagnostic-wizard .dw-body legend:focus,#diagnostic-wizard .dw-done h2:focus{outline:none}
#diagnostic-wizard button:focus-visible{outline:2px solid #ffac91;outline-offset:3px}
