#discovery-dialog{border:1px solid #e2e8f0;border-radius:28px;padding:0;width:min(780px,calc(100vw - 32px));max-height:calc(100dvh - 40px);background:#f8fafc;color:#0f172a;box-shadow:0 32px 120px #02061766;overflow:auto;overscroll-behavior:contain;scroll-behavior:smooth}
#discovery-dialog::backdrop{background:#0f172abd;backdrop-filter:blur(9px)}
.discovery-header{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;padding:18px 30px;background:#f8fafcf5;border-bottom:1px solid #e2e8f0}.discovery-header button{min-height:44px;padding:8px 12px;border-radius:12px}.discovery-header button:hover{background:#e2e8f0}.discovery-body{padding:32px 40px 40px}.discovery-body h2{font-family:Orbitron,sans-serif;font-size:clamp(20px,3vw,28px);line-height:1.35;font-weight:700}.discovery-intro{margin-top:12px;color:#536174;font-size:15px}#discovery-progress{margin:26px 0}#discovery-step-count{font-family:'JetBrains Mono',monospace;font-size:11px;color:#536174;margin-bottom:10px}#discovery-progress-bar{display:block;width:100%;height:4px;border:none;border-radius:8px;overflow:hidden;background:#e2e8f0;accent-color:#bc2929}#discovery-progress-bar::-webkit-progress-bar{background:#e2e8f0}#discovery-progress-bar::-webkit-progress-value{background:#bc2929;transition:width .4s}#discovery-progress-bar::-moz-progress-bar{background:#bc2929}.discovery-step{border:0;padding:0;margin:0;min-width:0;min-height:260px}.discovery-step legend{font-size:clamp(21px,4vw,28px);font-weight:600;line-height:1.35;padding:0;margin-bottom:16px;max-width:100%;letter-spacing:-.025em}.discovery-step>p{font-size:14px;color:#536174;margin-bottom:24px}.discovery-options{display:grid;gap:10px}.discovery-choice{display:flex;align-items:center;gap:14px;background:white;border:1px solid #cbd5e1;border-radius:14px;padding:16px 18px;cursor:pointer;transition:border-color .2s,background .2s}.discovery-choice:has(input:checked){background:#fff1f2;border-color:#bc2929;box-shadow:0 0 0 1px #bc2929}.discovery-choice input{accent-color:#bc2929;width:19px;height:19px;flex-shrink:0}.discovery-choice span{font-weight:500;font-size:16px}.discovery-controls{display:flex;gap:16px;justify-content:space-between;align-items:center;margin-top:28px;border-top:1px solid #e2e8f0;padding-top:22px}.discovery-controls button{min-height:48px}.discovery-controls button:disabled{opacity:.4;cursor:default}.discovery-note{font-size:12px;color:#536174;margin-top:22px}.discovery-body .audit-results{margin-top:24px}.discovery-body #review-request summary{color:#bc2929}.discovery-body #review-request .field-grid{grid-template-columns:1fr}.discovery-body #ux-check[hidden]{display:none}
@media(max-width:600px){#discovery-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:20px}.discovery-header{padding:10px 18px}.discovery-body{padding:24px 20px}.discovery-step{min-height:0}.discovery-controls{gap:10px}.discovery-controls .primary-button{padding:14px;font-size:14px}.discovery-controls .package-button{padding:14px}.discovery-intro{font-size:14px}}
@media(prefers-reduced-motion:reduce){#discovery-dialog{scroll-behavior:auto}#discovery-progress-bar::-webkit-progress-value{transition:none}}
#project-dialog{border:1px solid #e2e8f0;border-radius:28px;padding:0;width:min(780px,calc(100vw - 32px));max-height:calc(100dvh - 40px);background:#f8fafc;color:#0f172a;box-shadow:0 32px 120px #02061766;overflow:auto;overscroll-behavior:contain}
#project-dialog::backdrop{background:#0f172abd;backdrop-filter:blur(9px)}.project-fields{display:grid;gap:18px}#project-progress{margin:26px 0}#project-step-count{font-family:'JetBrains Mono',monospace;font-size:11px;color:#536174;margin-bottom:10px}#project-progress-bar{width:100%;height:4px;display:block;accent-color:#bc2929}.project-summary{display:grid;grid-template-columns:100px 1fr;gap:10px 16px;font-size:14px;margin-bottom:24px}.project-summary dt{color:#536174}.project-summary dd{overflow-wrap:anywhere;font-weight:500}
@media(max-width:600px){#project-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:20px}.project-summary{grid-template-columns:1fr;gap:4px}.project-summary dd{margin-bottom:10px}}
