.vrf-cleanup-dialog { width: min(1180px, calc(100vw - 28px)); max-width: none; height: min(900px, calc(100vh - 28px)); max-height: calc(100vh - 28px); padding: 0; overflow: hidden; overscroll-behavior: none; border: 0; border-radius: 20px; color: #17313d; box-shadow: 0 28px 90px rgba(8, 35, 50, .28); }
.vrf-cleanup-dialog::backdrop { background: rgba(8, 27, 38, .62); backdrop-filter: blur(3px); }
.vrf-cleanup-shell { display: grid; grid-template-rows: auto auto auto minmax(160px, 1fr) auto; height: 100%; min-height: 0; max-height: calc(100vh - 28px); overflow: hidden; background: #f5f9fa; }
.vrf-cleanup-head { display: flex; justify-content: space-between; gap: 24px; padding: 22px 26px 18px; border-bottom: 1px solid #d6e2e6; background: linear-gradient(135deg, #e9f6fb, #fff); }
.vrf-cleanup-head h2 { margin: 3px 0 5px; font-size: 25px; letter-spacing: -.035em; }
.vrf-cleanup-head p { margin: 0; color: #617781; }
.vrf-cleanup-head .eyebrow { color: #087ebd; font-size: 11px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.vrf-cleanup-head > button { width: 38px; height: 38px; border: 1px solid #ccdadd; border-radius: 12px; background: #fff; color: #4a626d; font-size: 25px; cursor: pointer; }
.vrf-cleanup-progress { display: flex; align-items: center; justify-content: center; padding: 13px 24px; border-bottom: 1px solid #dbe5e8; background: #fff; }
.vrf-cleanup-progress span { display: flex; align-items: center; gap: 7px; color: #84959d; font-size: 12px; font-weight: 750; }
.vrf-cleanup-progress span b { font-weight: 750; }
.vrf-cleanup-progress span.active { color: #087ebd; }
.vrf-cleanup-progress span.done { color: #21875b; }
.vrf-cleanup-progress i { width: 54px; height: 1px; margin: 0 12px; background: #ccdadd; }
.vrf-cleanup-status { display: flex; gap: 12px; align-items: baseline; padding: 12px 26px; border-bottom: 1px solid #dbe5e8; background: #edf4f6; }
.vrf-cleanup-status strong { white-space: nowrap; }
.vrf-cleanup-status span { color: #526a75; }
.vrf-cleanup-status.success { background: #eaf8f1; color: #176c48; }
.vrf-cleanup-status.warning { background: #fff6dc; color: #77520a; }
.vrf-cleanup-status.error { background: #fff0ef; color: #a6342d; }
.vrf-cleanup-body { min-height: 0; padding: 20px 26px 26px; overflow: auto; overscroll-behavior: contain; }
.vrf-cleanup-safety { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 16px; padding: 13px 16px; border: 1px solid #b9dfce; border-radius: 12px; background: #effaf5; }
.vrf-cleanup-safety strong { color: #167149; }
.vrf-cleanup-safety span { color: #5d727b; }
.vrf-cleanup-scan-audit { margin-bottom: 16px; border: 1px solid #d4e0e4; border-radius: 12px; background: #fff; }
.vrf-cleanup-scan-audit > summary { padding: 12px 15px; color: #365763; font-size: 12px; font-weight: 800; cursor: pointer; }
.vrf-cleanup-scan-audit > div { max-height: 260px; overflow: auto; border-top: 1px solid #e0e8eb; }
.vrf-cleanup-scan-audit article { display: flex; justify-content: space-between; gap: 18px; padding: 9px 15px; border-top: 1px solid #edf2f3; }
.vrf-cleanup-scan-audit article:first-child { border-top: 0; }
.vrf-cleanup-scan-audit article span { display: grid; gap: 2px; }
.vrf-cleanup-scan-audit article small { color: #71858e; }
.vrf-cleanup-scan-audit article em { color: #526a75; font-size: 11px; font-style: normal; font-weight: 750; text-align: right; }
.vrf-cleanup-project { margin-top: 16px; border: 1px solid #d4e0e4; border-radius: 15px; overflow: hidden; background: #fff; }
.vrf-cleanup-project > header { display: flex; justify-content: space-between; align-items: center; padding: 14px 17px; border-bottom: 1px solid #dce6e9; background: #f9fbfc; }
.vrf-cleanup-project h3 { margin: 2px 0 0; font-size: 17px; }
.vrf-cleanup-project header small { color: #748790; font-weight: 700; }
.vrf-cleanup-project header > span { padding: 5px 9px; border-radius: 999px; background: #edf3f5; color: #526975; font-size: 11px; font-weight: 800; }
.vrf-cleanup-candidate-group + .vrf-cleanup-candidate-group { border-top: 1px solid #dce6e9; }
.vrf-cleanup-candidate-group > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px; background: #eff8f4; }
.vrf-cleanup-candidate-group.stale > header { background: #fff8df; }
.vrf-cleanup-candidate-group > header div { display: grid; gap: 2px; }
.vrf-cleanup-candidate-group > header small { color: #627780; }
.vrf-cleanup-candidate-group > header > span { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: #fff; color: #365763; font-size: 12px; font-weight: 900; }
.vrf-cleanup-candidates { display: grid; gap: 12px; padding: 14px; }
.vrf-cleanup-candidate { padding: 14px; border: 1px solid #d8e3e6; border-radius: 12px; background: #fff; }
.vrf-cleanup-candidate.duplicate { border-left: 4px solid #2b9566; }
.vrf-cleanup-candidate.stale { border-left: 4px solid #d4a42e; }
.vrf-cleanup-choice { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 9px; cursor: pointer; }
.vrf-cleanup-choice input { position: absolute; opacity: 0; pointer-events: none; }
.vrf-cleanup-choice > span { width: 19px; height: 19px; border: 2px solid #9fb3bc; border-radius: 5px; }
.vrf-cleanup-choice input:checked + span { border-color: #087ebd; background: #087ebd; box-shadow: inset 0 0 0 3px #fff; }
.vrf-cleanup-choice em { color: #a85520; font-size: 11px; font-style: normal; font-weight: 800; text-transform: uppercase; }
.vrf-cleanup-candidate dl { display: grid; grid-template-columns: .75fr 1.4fr 1.25fr 1fr; gap: 10px; margin: 13px 0 9px; }
.vrf-cleanup-candidate dl div { min-width: 0; padding: 9px 10px; border-radius: 8px; background: #f3f7f8; }
.vrf-cleanup-candidate dt { margin-bottom: 3px; color: #758991; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.vrf-cleanup-candidate dd { margin: 0; overflow-wrap: anywhere; color: #263f4a; font-size: 12px; font-weight: 700; }
.vrf-cleanup-candidate dl div.vrf-cleanup-reference { grid-column: 1 / -1; background: #fff8df; }
.vrf-cleanup-mono { font-family: Consolas, "SFMono-Regular", monospace; }
.vrf-cleanup-candidate > p { margin: 0; color: #5e727b; font-size: 12px; }
.vrf-cleanup-candidate details { margin-top: 10px; color: #42606c; font-size: 12px; }
.vrf-cleanup-candidate summary { cursor: pointer; font-weight: 800; }
.vrf-cleanup-candidate ul { margin: 8px 0 0; padding-left: 20px; }
.vrf-cleanup-candidate li span { display: block; color: #6d8089; }
.vrf-cleanup-scan-confirm { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 15px; border: 1px solid #e3c96f; border-radius: 12px; background: #fff8df; cursor: pointer; }
.vrf-cleanup-scan-confirm input { margin-top: 3px; accent-color: #087ebd; }
.vrf-cleanup-scan-confirm span { display: grid; gap: 3px; }
.vrf-cleanup-scan-confirm small { color: #706344; }
.vrf-cleanup-final-warning { display: flex; gap: 14px; padding: 16px; border: 1px solid #e4b96c; border-radius: 13px; background: #fff8e8; }
.vrf-cleanup-final-warning > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #d48b18; color: #fff; font-weight: 900; }
.vrf-cleanup-final-warning h3, .vrf-cleanup-final-warning p { margin: 0; }
.vrf-cleanup-final-warning p { margin-top: 4px; color: #725b32; }
.vrf-cleanup-final-list { display: grid; gap: 8px; margin: 14px 0; }
.vrf-cleanup-final-list article { display: grid; grid-template-columns: 1fr 1.4fr 1.2fr; gap: 12px; padding: 11px 13px; border: 1px solid #d8e3e6; border-radius: 10px; background: #fff; }
.vrf-cleanup-final-list span, .vrf-cleanup-final-list small { color: #5c717a; }
.vrf-cleanup-phrase { display: grid; gap: 6px; max-width: 520px; padding: 15px; border-radius: 12px; background: #eaf0f2; }
.vrf-cleanup-phrase strong { color: #a3312b; font-family: Consolas, monospace; font-size: 19px; letter-spacing: .06em; }
.vrf-cleanup-phrase input { padding: 11px 12px; border: 1px solid #aebfc6; border-radius: 8px; font: 700 16px Consolas, monospace; }
.vrf-cleanup-empty, .vrf-cleanup-loading { display: grid; place-items: center; min-height: 220px; text-align: center; }
.vrf-cleanup-empty > span { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #dff4e9; color: #18774e; font-size: 28px; }
.vrf-cleanup-empty h3, .vrf-cleanup-empty p { margin: 0; }
.vrf-cleanup-empty p { color: #667a83; }
.vrf-cleanup-empty.error > span { background: #ffe1df; color: #a6342d; }
.vrf-cleanup-loading { gap: 10px; color: #607680; }
.vrf-cleanup-loading i { width: 38px; height: 38px; border: 4px solid #d2e0e5; border-top-color: #087ebd; border-radius: 50%; animation: vrf-cleanup-spin .8s linear infinite; }
.vrf-cleanup-readback { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 17px; border-radius: 13px; background: #eaf8f1; }
.vrf-cleanup-readback strong { color: #147249; font-size: 25px; }
.vrf-cleanup-readback small { color: #657a83; }
.vrf-cleanup-readback.warning { background: #fff5dc; }
.vrf-cleanup-result-list { display: grid; gap: 9px; margin-top: 14px; }
.vrf-cleanup-result-list article { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid #d5e2e5; border-radius: 10px; background: #fff; }
.vrf-cleanup-result-list article > span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: #dff4e9; color: #167249; font-weight: 900; }
.vrf-cleanup-result-list article.error > span { background: #ffe1df; color: #a6342d; }
.vrf-cleanup-result-list small { display: block; color: #677b84; }
.vrf-cleanup-result-list em { color: #167249; font-size: 12px; font-style: normal; font-weight: 800; }
.vrf-cleanup-result-list article.error em { color: #a6342d; }
.vrf-cleanup-footer { display: flex; align-items: center; justify-content: flex-end; gap: 11px; min-height: 68px; padding: 13px 26px; border-top: 1px solid #d3e0e4; background: #fff; }
.vrf-cleanup-footer > span { margin-left: auto; color: #647983; }
.vrf-cleanup-footer button { min-height: 41px; padding: 0 16px; border-radius: 9px; font-weight: 800; cursor: pointer; }
.vrf-cleanup-footer button:disabled { cursor: not-allowed; opacity: .45; }
.vrf-cleanup-secondary { border: 1px solid #c6d5da; background: #fff; color: #36515d; }
.vrf-cleanup-primary { border: 1px solid #087ebd; background: #087ebd; color: #fff; }
.vrf-cleanup-danger { border: 1px solid #b43b33; background: #b43b33; color: #fff; }
@keyframes vrf-cleanup-spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) {
  .vrf-cleanup-dialog { width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; }
  .vrf-cleanup-shell { max-height: 100vh; }
  .vrf-cleanup-head { padding: 17px; }
  .vrf-cleanup-progress span b { display: none; }
  .vrf-cleanup-progress i { width: 25px; margin: 0 7px; }
  .vrf-cleanup-status, .vrf-cleanup-safety { display: grid; }
  .vrf-cleanup-body { padding: 14px; }
  .vrf-cleanup-candidate dl { grid-template-columns: 1fr 1fr; }
  .vrf-cleanup-candidate-group > header { align-items: flex-start; }
  .vrf-cleanup-final-list article { grid-template-columns: 1fr; }
  .vrf-cleanup-footer { flex-wrap: wrap; padding: 12px 14px; }
}
