:root { --bg: #0f1115; --card: #181b22; --line: #262b35; --text: #e8eaf0; --muted: #9aa3b2; --accent: #ffcf5c; --ok: #5fd38a; --bad: #ff6b6b; --warn: #ffb347; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.45 -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: calc(env(safe-area-inset-top) + 10px) 14px 10px; background: rgba(15,17,21,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top h1 { flex: 1; margin: 0; font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon { width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--card); color: var(--text); font-size: 26px; line-height: 1; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #3a4150; }
.dot.run { background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .4; } }
main { padding: 12px 14px calc(env(safe-area-inset-bottom) + 24px); display: grid; gap: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.card h2 { margin: 0 0 6px; font-size: 16px; }
.muted { color: var(--muted); font-size: 13px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
button.btn { flex: 1; min-height: 50px; border: 0; border-radius: 14px; font-size: 16px; font-weight: 600; color: #111; background: var(--accent); }
button.btn.ok { background: var(--ok); }
button.btn.bad { background: var(--bad); color: #fff; }
button.btn.ghost { background: #262b35; color: var(--text); }
button.btn:disabled { opacity: .45; }
.list { display: grid; gap: 10px; }
.item { display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; color: var(--text); text-align: left; font: inherit; }
.item .main { flex: 1; min-width: 0; }
.item strong { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: #262b35; color: var(--muted); white-space: nowrap; }
.pill.approved { background: rgba(95,211,138,.18); color: var(--ok); }
.pill.review { background: rgba(255,207,92,.18); color: var(--accent); }
.pill.rejected, .pill.failed, .pill.stale { background: rgba(255,107,107,.18); color: var(--bad); }
.pill.rendering { background: rgba(255,179,71,.18); color: var(--warn); }
.seg-num { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; background: #262b35; }
.seg-num.approved { background: var(--ok); color: #111; }
.seg-num.review { background: var(--accent); color: #111; }
video { width: 100%; border-radius: 12px; background: #000; display: block; }
.lines { display: grid; gap: 4px; margin: 8px 0; }
.line { font-size: 14px; } .line b { color: var(--accent); font-weight: 600; margin-right: 6px; }
.check { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin: 10px 0; font-size: 13px; }
.check div { background: #12151b; border-radius: 10px; padding: 8px 10px; }
.check .v { font-weight: 700; font-size: 15px; }
.ok-text { color: var(--ok); } .bad-text { color: var(--bad); }
textarea { width: 100%; min-height: 70px; border-radius: 12px; border: 1px solid var(--line); background: #12151b; color: var(--text); padding: 10px; font: inherit; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: none; }
.thumbs button.sel { border-color: var(--accent); }
.thumbs img { width: 100%; display: block; }
.progress { height: 8px; border-radius: 4px; background: #262b35; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--ok); }
.toast { position: fixed; left: 14px; right: 14px; bottom: calc(env(safe-area-inset-bottom) + 16px); background: #262b35; color: var(--text); padding: 12px 14px; border-radius: 12px; text-align: center; z-index: 9; }
.stage { font-size: 13px; color: var(--accent); }
a.btn { display: grid; place-items: center; text-decoration: none; }
