@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");
:root {
  --navy: #0f1a5c; --navy2: #17246f; --blue: #2e6bf0; --sky: #1aa7ff; --violet: #5b3fd9;
  --bg: #f5f7fb; --panel: #fff; --ink: #141a33; --muted: #5d6680; --line: #e1e6f0; --accent: #2e6bf0; --accent-ink: #fff;
  --high: #b42318; --high-bg: #fdecea; --req: #9a5b00; --req-bg: #fdf2dc; --ev: #1d5fb0; --ev-bg: #e6f0fb;
  --med: #5a4bb0; --med-bg: #eeebfa; --ok: #12784a; --ok-bg: #e3f5ec;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1224; --panel: #151c33; --ink: #e8ecf6; --muted: #9aa5c0; --line: #263052; --accent: #5b8cff; --accent-ink: #061030;
    --high: #ff9c91; --high-bg: #40201d; --req: #f1c26b; --req-bg: #3a2c12; --ev: #93c0f5; --ev-bg: #1b2d44;
    --med: #bdb2f5; --med-bg: #2a2545; --ok: #6fd6a3; --ok-bg: #133325;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.6 Pretendard, "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; }
input, textarea, select { width: 100%; padding: 9px 11px; margin-top: 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); font: inherit; }
input[type=checkbox], input[type=file] { width: auto; }
input[type=file] { border: 1px dashed var(--line); padding: 10px; width: 100%; }
label { display: block; font-size: 13px; color: var(--muted); margin-top: 12px; }
button, .btn { font: inherit; font-weight: 600; cursor: pointer; border-radius: 8px; padding: 9px 16px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.primary:disabled { opacity: .5; cursor: default; }
.ghost { background: transparent; }
.muted { color: var(--muted); } .small { font-size: 13px; }

/* ───────── 랜딩 ───────── */
.lnav { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; padding: 14px 32px; background: rgba(15, 26, 92, .96); color: #fff; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; text-decoration: none; }
.logo i { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, var(--sky), var(--violet)); display: grid; place-items: center; font-style: normal; font-size: 13px; color: #fff; }
.lnav nav { display: flex; gap: 22px; align-items: center; font-size: 14px; }
.lnav nav a { text-decoration: none; opacity: .85; } .lnav nav a:hover { opacity: 1; }
.lnav .btn { background: #fff; color: var(--navy); border: 0; }
.hero { background: radial-gradient(1200px 500px at 80% -10%, #2b3fa8 0%, transparent 60%), var(--navy); color: #fff; padding: 72px 32px 88px; }
.hero-in { max-width: 1120px; margin: auto; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.eyebrow { color: var(--sky); font-weight: 700; letter-spacing: .16em; font-size: 12px; text-transform: uppercase; }
.hero h1 { font-size: 44px; line-height: 1.25; margin: 14px 0 18px; }
.hero p { color: #c9d2f2; font-size: 17px; margin: 0 0 28px; }
.hero .cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .cta .btn { padding: 12px 20px; }
.hero .cta .primary { background: #fff; color: var(--navy); border: 0; }
.hero .cta .ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.mock { background: #fff; color: var(--ink); border-radius: 14px; padding: 16px; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.mock-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.mock-bar { position: relative; height: 34px; background: #eef1f8; border-radius: 6px; margin-bottom: 12px; }
.mock-bar b { position: absolute; top: 6px; bottom: 6px; border-radius: 4px; }
.mock-item { border-top: 1px solid var(--line); padding: 10px 2px; font-size: 13px; }
.mock-item .ts { font: 600 12px Consolas, monospace; margin-right: 6px; }
.mock-item del { color: var(--high); } .mock-item ins { color: var(--ok); text-decoration: none; font-weight: 600; }
.section { padding: 76px 32px; } .section.alt { background: var(--panel); }
.wrap { max-width: 1120px; margin: auto; }
.section h2 { font-size: 30px; margin: 8px 0 12px; } .lead { color: var(--muted); font-size: 16px; max-width: 760px; margin: 0 0 32px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.section.alt .card { background: var(--bg); }
.stat { font-size: 34px; font-weight: 800; color: var(--blue); }
.src { font-size: 12px; color: var(--muted); margin-top: 8px; }
.step-n { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; margin-bottom: 12px; }
.card h3 { font-size: 17px; margin-bottom: 6px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; margin-left: 6px; vertical-align: 2px; }
.badge.live { color: var(--ok); background: var(--ok-bg); } .badge.next { color: var(--req); background: var(--req-bg); }
.price { font-size: 28px; font-weight: 800; margin: 6px 0 10px; } .price small { font-size: 14px; color: var(--muted); font-weight: 500; }
.card ul { padding-left: 18px; margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.footer { background: var(--navy); color: #aab4dc; padding: 32px; font-size: 13px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ───────── 로그인 ───────── */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: var(--navy); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side h2 { font-size: 30px; line-height: 1.35; margin-top: 40px; } .auth-side p { color: #c9d2f2; }
.auth-main { display: grid; place-items: center; padding: 32px 16px; }
.auth-box { width: 100%; max-width: 380px; }
.tabs { display: flex; gap: 4px; background: var(--line); padding: 4px; border-radius: 10px; margin: 18px 0 6px; }
.tabs button { flex: 1; border: 0; background: transparent; padding: 8px; }
.tabs button.on { background: var(--panel); box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.error { color: var(--high); background: var(--high-bg); padding: 9px 12px; border-radius: 8px; font-size: 14px; margin-top: 12px; }

/* ───────── 서비스 ───────── */
.shell { display: grid; grid-template-columns: 228px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--navy); color: #c9d2f2; padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; }
.side .logo { color: #fff; margin: 2px 8px 18px; }
.side .navlabel { font-size: 11px; letter-spacing: .1em; color: #7f8bc0; margin: 14px 10px 4px; }
.side button { background: transparent; border: 0; color: inherit; justify-content: flex-start; width: 100%; font-weight: 500; padding: 9px 12px; }
.side button.on { background: rgba(255,255,255,.12); color: #fff; font-weight: 700; }
.side button .num { width: 20px; height: 20px; border-radius: 50%; border: 1px solid #7f8bc0; display: grid; place-items: center; font-size: 11px; }
.side .grow { flex: 1; }
.side .user { font-size: 13px; padding: 10px; border-top: 1px solid rgba(255,255,255,.12); }
.main { padding: 22px 28px 40px; min-width: 0; }
.topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.topline h1 { font-size: 22px; }
.status { font-size: 12px; color: var(--muted); }
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.flow .card { cursor: pointer; padding: 16px; } .flow .card:hover { border-color: var(--accent); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.two { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; align-items: start; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--line); padding: 8px 6px; }
table.list td { border-bottom: 1px solid var(--line); padding: 9px 6px; vertical-align: top; }
table.list tr.click { cursor: pointer; } table.list tr.click:hover td { background: var(--bg); }
.chip { font-size: 12px; padding: 2px 8px; border-radius: 99px; font-weight: 600; white-space: nowrap; display: inline-block; }
.chip.high { color: var(--high); background: var(--high-bg); } .chip.required { color: var(--req); background: var(--req-bg); }
.chip.evidence { color: var(--ev); background: var(--ev-bg); } .chip.medium { color: var(--med); background: var(--med-bg); }
.chip.ok { color: var(--ok); background: var(--ok-bg); } .chip.gray { color: var(--muted); background: var(--bg); }
.progress { margin: 14px 0; display: flex; gap: 12px; align-items: center; } .bar { flex: 1; height: 8px; background: var(--line); border-radius: 9px; overflow: hidden; } .bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .4s; }
.err { color: var(--high); background: var(--high-bg); padding: 10px; border-radius: 8px; }
video { width: 100%; border-radius: 10px; background: #000; display: block; }
.actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; align-items: center; }
.disclaimer { font-size: 12px; color: var(--muted); margin-top: 12px; }

/* 첨삭 작업 화면 */
.workspace { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; margin-top: 12px; align-items: start; }
.right { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; max-height: calc(100vh - 140px); overflow: auto; }
.listhead { display: flex; justify-content: space-between; padding: 12px 14px 6px; position: sticky; top: 0; background: var(--panel); z-index: 1; } .listhead span { color: var(--muted); font-size: 13px; }
.players { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } figure { margin: 0; } figcaption { font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.timeline { position: relative; margin-top: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.lane { display: flex; align-items: center; gap: 8px; height: 26px; } .lane > span { width: 44px; font-size: 12px; color: var(--muted); flex: none; }
.track { position: relative; flex: 1; height: 16px; background: var(--bg); border-radius: 3px; }
.seg { position: absolute; top: 0; bottom: 0; border-radius: 3px; cursor: pointer; border: 0; padding: 0; min-width: 4px; }
.seg.high { background: var(--high); } .seg.required { background: var(--req); } .seg.evidence { background: var(--ev); } .seg.medium { background: var(--med); } .seg.off { opacity: .25; }
#playhead { position: absolute; top: 4px; bottom: 4px; width: 2px; background: var(--ink); left: 0; pointer-events: none; }
.verify { margin-top: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.verify ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.findings { list-style: none; margin: 0; padding: 0; }
.finding { border-top: 1px solid var(--line); padding: 10px 14px; } .finding.active { background: var(--bg); } .finding.off .body { opacity: .5; }
.fhead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ts { font: 600 13px Consolas, monospace; background: none; border: 1px solid var(--line); padding: 1px 6px; color: var(--ink); }
.chan { font-size: 12px; color: var(--muted); }
.toggle { margin: 0 0 0 auto; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.quote { margin: 6px 0 2px; font-size: 14px; } .quote mark { background: var(--high-bg); color: var(--high); padding: 0 2px; }
.ruleline { font-size: 13px; margin-top: 4px; } .ruleline b { font-weight: 600; }
.ruleline details summary { cursor: pointer; color: var(--muted); font-size: 12px; } .ruleline details p { margin: 3px 0; font-size: 13px; }
.cite { color: var(--muted); font-size: 12px; display: block; }
.policy { font-size: 11px; color: var(--req); border: 1px solid var(--req); padding: 0 4px; border-radius: 3px; margin-left: 4px; }
.fixbox label { margin-top: 6px; } .fixbox textarea { font-size: 14px; }
.fixnote { font-size: 13px; color: var(--muted); margin: 6px 0 0; }

@media (max-width: 900px) {
  .hero-in, .grid3, .grid4, .two, .workspace, .flow, .auth, .grid2 { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: 32px; } .hero, .section { padding: 48px 16px; } .lnav { padding: 12px 16px; } .lnav nav a:not(.btn) { display: none; }
  .shell { grid-template-columns: minmax(0, 1fr); } .side { flex-direction: row; flex-wrap: wrap; } .side .navlabel, .side .grow { display: none; } .side button { width: auto; }
  .main { padding: 16px; } .auth-side { display: none; } .right { max-height: none; }
}

.invite { display: grid; gap: 6px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.invite h1 { margin: 0; }
.invite .or { margin: 14px 0 0; text-align: center; }
