:root {
  --bg: #0f1115; --panel: #171a21; --line: #2a2f3a; --text: #e8eaf0; --muted: #9aa3b2;
  --accent: #5b8cff; --green: #2fbf71; --yellow: #f2b632; --red: #ef4f4f;
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }

.top { display: flex; justify-content: space-between; align-items: center; padding: 14px 24px; border-bottom: 1px solid var(--line); }
.brand { display: flex; gap: 10px; align-items: center; color: var(--text); text-decoration: none; font-weight: 700; }
.top nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }

main { max-width: 920px; margin: 0 auto; padding: 24px; }
.hero h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.15; margin: 24px 0 12px; }
.hero h1 em { color: var(--accent); font-style: normal; }
.lede { color: #c9cfdb; max-width: 720px; }

.drop { margin: 24px 0 8px; border: 2px dashed var(--line); border-radius: var(--radius); background: var(--panel); padding: 40px 20px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop:focus-visible, .drop.over { border-color: var(--accent); background: #1b2030; outline: none; }
.drop.busy { opacity: .6; pointer-events: none; }
.drop svg { color: var(--accent); }
.drop p { margin: 6px 0; }

progress { width: 100%; height: 8px; accent-color: var(--accent); }
.status { min-height: 1.5em; color: #c9cfdb; }

.report { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 16px 0 32px; }
.verdict { display: flex; gap: 14px; align-items: center; }
.verdict h2 { margin: 0; }
.verdict p { margin: 2px 0 0; font-size: .9rem; }
.verdict .dot { width: 22px; height: 22px; border-radius: 50%; flex: none; }
.verdict.green .dot { background: var(--green); } .verdict.green h2 { color: var(--green); }
.verdict.yellow .dot { background: var(--yellow); } .verdict.yellow h2 { color: var(--yellow); }
.verdict.red .dot { background: var(--red); } .verdict.red h2 { color: var(--red); }
.reasons { padding-left: 20px; }
.report h3 { margin: 22px 0 4px; }

.frames { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 10px; }
.frame { margin: 0; border-radius: 8px; overflow: hidden; border: 2px solid transparent; background: #000; }
.frame img { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; }
.frame figcaption { font-size: .75rem; padding: 3px 6px; background: #11141a; color: var(--muted); }
.frame.high { border-color: var(--red); } .frame.high figcaption { color: var(--red); }
.frame.watch { border-color: var(--yellow); } .frame.watch figcaption { color: var(--yellow); }

.lane { position: relative; height: 22px; background: #11141a; border-radius: 6px; margin-top: 10px; overflow: hidden; }
.lane .seg { position: absolute; top: 0; bottom: 0; background: var(--yellow); opacity: .85; }
.lane .seg.vocal { background: #ff8a3d; }
.lane .rule { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--red); opacity: .7; }
.lane-axis { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); }
.ranges { padding-left: 20px; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn { background: var(--accent); color: #fff; border: 0; border-radius: 10px; padding: 10px 16px; font: inherit; font-weight: 600; cursor: pointer; }
.btn.pro { background: #2a2f3a; color: var(--muted); cursor: not-allowed; }
.fix { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-items: end; }
.fix h3, .fix p { grid-column: 1 / -1; margin: 0; }
.fix label { display: grid; gap: 4px; font-size: .9rem; color: var(--muted); }
.fix select, .fix input { background: #11141a; color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px; font: inherit; }
.fix .btn, #fix-status .btn { display: inline-block; text-decoration: none; margin-top: 6px; }
.fine { font-size: .8rem; color: var(--muted); margin-top: 16px; }

.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 32px 0; }
.how div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.how h3 { margin: 0 0 6px; font-size: 1.05rem; }
.how p { margin: 0; color: #c9cfdb; font-size: .95rem; }

.prose { max-width: 760px; }
.prose h2 { margin-top: 32px; }
.draft-banner { background: #3a2c0a; border: 1px solid var(--yellow); color: #ffe3a3; padding: 10px 14px; border-radius: 10px; }

.foot { border-top: 1px solid var(--line); padding: 20px 24px 40px; color: var(--muted); font-size: .85rem; text-align: center; }
.foot p { margin: 4px 0; }
