* { box-sizing: border-box; margin: 0; }
body { font-family: system-ui, sans-serif; background: #0f1420; color: #e6e9f0; min-height: 100vh; }
header { display: flex; justify-content: space-between; align-items: center; padding: 14px 22px; background: #161d2e; border-bottom: 1px solid #26304a; }
h1 { font-size: 18px; letter-spacing: .5px; }
main { max-width: 980px; margin: 0 auto; padding: 22px; }
.step { margin-bottom: 22px; }
.step h2 { font-size: 15px; margin-bottom: 8px; color: #aab4cc; }
.step h2 small { color: #6b7690; font-weight: normal; }
.cap-area { background: #161d2e; border: 1px solid #26304a; border-radius: 10px; padding: 12px; }
.cap-area video { width: 100%; max-height: 320px; border-radius: 6px; background: #000; display: none; object-fit: contain; }
.cap-area video.live { display: block; }
.cap-area img.preview { width: 100%; max-height: 320px; object-fit: contain; border-radius: 6px; }
.cap-controls { display: flex; gap: 10px; margin-top: 10px; align-items: center; flex-wrap: wrap; }
.btn { background: #26304a; color: #e6e9f0; border: none; padding: 9px 16px; border-radius: 7px; cursor: pointer; font-size: 14px; }
.btn:hover { background: #32405f; }
.btn.primary { background: #2f6df6; font-weight: 600; width: 100%; padding: 13px; font-size: 16px; }
.btn.primary:disabled { background: #26304a; color: #6b7690; cursor: not-allowed; }
.file-label { display: inline-block; }
.status { color: #3ecf7c; font-size: 13px; }
#progress { display: flex; gap: 12px; align-items: center; margin-top: 16px; color: #aab4cc; }
.spinner { width: 20px; height: 20px; border: 3px solid #26304a; border-top-color: #2f6df6; border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#verdict-banner { padding: 18px; border-radius: 10px; font-size: 20px; font-weight: 700; text-align: center; margin-bottom: 18px; }
#verdict-banner.pass { background: #123524; color: #3ecf7c; border: 1px solid #3ecf7c; }
#verdict-banner.review { background: #33290f; color: #f0b429; border: 1px solid #f0b429; }
#verdict-banner.fail { background: #351216; color: #e35d5d; border: 1px solid #e35d5d; }
#signal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.card { background: #161d2e; border: 1px solid #26304a; border-radius: 10px; padding: 14px; }
.card h3 { font-size: 14px; color: #aab4cc; margin-bottom: 10px; }
.sig { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; border-bottom: 1px dashed #212a40; }
.sig .v { font-family: ui-monospace, monospace; }
.sig .v.good { color: #3ecf7c; } .sig .v.warn { color: #f0b429; } .sig .v.bad { color: #e35d5d; }
.bar { height: 6px; background: #0f1420; border-radius: 3px; margin: 6px 0 2px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; }
.card.wide, .explain { grid-column: 1 / -1; }
.card.wide .sig span:first-child { font-family: ui-monospace, monospace; word-break: break-all; }
.sub { color: #6b7690; font-size: 12px; margin: 8px 0 2px; }
.explain li { font-size: 13px; color: #f0b429; margin-left: 18px; padding: 2px 0; }
details { margin-top: 18px; }
summary { cursor: pointer; color: #aab4cc; }
pre { background: #0a0e17; padding: 14px; border-radius: 8px; overflow: auto; font-size: 12px; max-height: 500px; margin-top: 8px; }
#restart { margin-top: 18px; }
