:root {
  --ink: #17172b;
  --ink-2: #4a4a63;
  --muted: #7b7b93;
  --line: #e6e4f0;
  --bg: #f6f5fb;
  --card: #ffffff;
  --brand: #5b47e0;
  --brand-2: #7a68f0;
  --brand-soft: #efecfd;
  --ok: #138a5b;
  --ok-soft: #e5f6ee;
  --warn: #c46a00;
  --warn-soft: #fff3e0;
  --no: #c23b52;
  --no-soft: #fdecef;
  --rule: #0f6f8f;
  --rule-soft: #e3f4f9;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(23, 23, 43, .05), 0 6px 24px rgba(23, 23, 43, .06);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; letter-spacing: -0.02em; }
p { margin: 0; }
small { font-size: .82em; }

/* 상단바 */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; background: rgba(246, 245, 251, .9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; }
.logo { width: 28px; height: 28px; border-radius: 8px; background: var(--brand); position: relative; }
.logo::after { content: ''; position: absolute; left: 6px; top: 11px; width: 16px; height: 6px; border-radius: 3px; background: #fff; transform: rotate(-30deg); }
.brand-name { font-weight: 800; font-size: 18px; }
.brand-en { font-weight: 700; font-size: 12px; color: var(--muted); letter-spacing: .12em; }
.demo-badge { font-size: 12px; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 4px 10px; border-radius: 99px; }

.screen { max-width: 1180px; margin: 0 auto; padding: 32px 24px 64px; }
.eyebrow { font-size: 13px; font-weight: 700; color: var(--brand); letter-spacing: .02em; margin-bottom: 8px; }
.sec-title { font-size: 22px; margin: 48px 0 6px; }
.sec-sub { color: var(--muted); margin-bottom: 18px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 10px; border: 1px solid transparent; padding: 10px 16px; font-weight: 700; font-size: 15px; transition: transform .08s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(91, 71, 224, .28); }
.btn-primary:hover:not(:disabled) { background: #4c38d4; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover:not(:disabled) { border-color: #cfcbe6; background: #fbfaff; }
.btn-lg { padding: 14px 20px; font-size: 16px; }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn small { font-weight: 500; color: var(--muted); }

/* 홈 */
.hero { padding: 36px 0 8px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; letter-spacing: -0.035em; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 640px; margin-top: 16px; }
.lead b { color: var(--ink); }
.flow { list-style: none; display: flex; gap: 10px; padding: 0; margin: 28px 0 0; flex-wrap: wrap; }
.flow li { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.flow li b { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 13px; }
.flow li span { font-weight: 700; display: flex; flex-direction: column; line-height: 1.25; }
.flow li small { color: var(--muted); font-weight: 500; }
.flow li + li { position: relative; }

.role-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.role-card { text-align: left; display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.role-card:hover { transform: translateY(-3px); border-color: var(--brand-2); }
.role-icon { font-size: 30px; margin-bottom: 6px; }
.role-name { font-size: 20px; font-weight: 800; }
.role-org { color: var(--muted); font-size: 14px; }
.role-tag { margin-top: 10px; color: var(--ink-2); font-size: 15px; flex: 1; }
.role-go { margin-top: 14px; color: var(--brand); font-weight: 700; font-size: 14px; }

.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rcol { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; border-top: 4px solid; }
.rcol.ai { border-top-color: var(--brand); }
.rcol.rule { border-top-color: var(--rule); }
.rcol.human { border-top-color: var(--warn); }
.rcol h3 { font-size: 16px; margin-bottom: 8px; }
.rcol ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14.5px; }
.rcol li + li { margin-top: 4px; }
.foot { margin-top: 48px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); padding-top: 18px; }

/* 인트로 */
.back { background: none; border: 0; color: var(--muted); font-weight: 600; padding: 0; margin-bottom: 20px; }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.memo-card { background: #fffbe8; border: 1px solid #f1e6b0; border-radius: 6px; padding: 28px; box-shadow: 0 10px 30px rgba(120, 100, 20, .1); transform: rotate(-1deg); }
.memo-card h2 { font-size: 20px; margin-bottom: 14px; }
.memo { font-size: 22px; font-family: 'Nanum Pen Script', 'Pretendard Variable', cursive; margin: 0 0 20px; padding-left: 22px; color: #5a4d16; }
.memo li { padding: 6px 0; border-bottom: 1px dashed #e9dca0; }
.memo-q { color: var(--ink-2); }
.memo-q b { color: var(--brand); }
.persona { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin: 0 0 24px; }
.meta dt { font-size: 12px; color: var(--muted); font-weight: 700; }
.meta dd { margin: 2px 0 0; font-weight: 700; }
.intro-actions { display: flex; flex-direction: column; gap: 10px; }
.hint { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* 인터뷰 */
.screen.interview { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 20px; padding-top: 20px; padding-bottom: 20px; height: calc(100vh - 57px); }
.chat-panel, .live-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-height: 0; }
.chat-panel { display: flex; flex-direction: column; overflow: hidden; }
.chat-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.chat-title { font-weight: 800; }
.chat-title span { color: var(--muted); font-weight: 600; margin-left: 6px; }
.progress { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.progress-bar { width: 140px; height: 6px; border-radius: 9px; background: var(--brand-soft); overflow: hidden; }
.progress-bar i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .4s; }
.chat-tools { display: flex; gap: 8px; align-items: center; }
.toggle { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 12px 6px 30px; font-size: 13px; font-weight: 700; position: relative; }
.toggle::before { content: ''; position: absolute; left: 10px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: #cfcbe6; transition: background .2s; }
.toggle[aria-pressed="true"] { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.toggle[aria-pressed="true"]::before { background: var(--brand); box-shadow: 0 0 0 3px rgba(91, 71, 224, .2); }
.chat-scroll { flex: 1; overflow-y: auto; padding: 18px; scroll-behavior: smooth; }
.chat { display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 86%; padding: 12px 14px; border-radius: 14px; animation: pop .25s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.msg .who { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 4px; display: flex; gap: 6px; align-items: center; }
.msg.ai { background: var(--brand-soft); border-top-left-radius: 4px; align-self: flex-start; }
.msg.ai .who { color: var(--brand); }
.msg.me { background: #fff; border: 1px solid var(--line); border-top-right-radius: 4px; align-self: flex-end; }
.msg.me .num { color: var(--brand); background: var(--brand-soft); border-radius: 6px; padding: 0 5px; }
.msg.sys { align-self: center; max-width: 100%; background: none; padding: 0; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.msg.sys.check { align-self: stretch; background: var(--rule-soft); border: 1px solid #c2e6f0; padding: 14px 16px; align-items: stretch; }
.msg.sys.check .who { color: var(--rule); }
.msg .btn { margin-top: 10px; }
.ack { font-size: 12.5px; color: var(--ok); background: var(--ok-soft); padding: 4px 10px; border-radius: 99px; font-weight: 600; }
.ack-gap { color: var(--warn); background: var(--warn-soft); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 6px; }
.tag { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: #fff; color: var(--brand); border: 1px solid #d9d3fb; }
.tag-follow { background: var(--brand); color: #fff; border-color: var(--brand); }
.tag-gap { background: var(--warn); color: #fff; border-color: var(--warn); }
.tag-rule { background: var(--rule); color: #fff; border-color: var(--rule); }
.why { font-size: 12px; color: var(--ink-2); }
.dots { display: inline-flex; gap: 4px; padding: 4px 2px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-2); animation: blink 1s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.checklist { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; font-size: 13.5px; }
.checklist li small { color: var(--muted); display: block; padding-left: 20px; font-size: 12px; }
.checklist li b, .rules li b { display: inline-block; width: 16px; }
li.ok b { color: var(--ok); } li.no b { color: var(--no); } li.ask b { color: var(--warn); }

.composer { border-top: 1px solid var(--line); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; background: #fcfcff; }
.composer.finished { display: none; }
.ex-box { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px dashed #d4cef8; border-radius: 12px; padding: 8px 8px 8px 8px; }
.ex-preview { font-size: 13px; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.input-row { display: flex; gap: 8px; }
.input-row input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; }
.input-row input:focus { outline: 2px solid var(--brand-2); outline-offset: -1px; }

/* 실시간 문서 */
.live-panel { overflow: hidden; display: flex; flex-direction: column; }
.live-toggle { display: none; }
.live-inner { padding: 16px 18px; overflow-y: auto; flex: 1; }
.live-head { display: flex; justify-content: space-between; align-items: center; }
.live-head h3 { font-size: 16px; }
.score { display: flex; align-items: baseline; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 700; }
.score b { font-size: 20px; color: var(--rule); }
.meter { height: 6px; background: var(--rule-soft); border-radius: 9px; overflow: hidden; margin: 8px 0 10px; }
.meter i { display: block; height: 100%; width: 0; background: var(--rule); transition: width .5s; }
.live-checks { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 5px; }
.live-checks li { font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: #f1f0f6; color: var(--muted); }
.live-checks li.ok { background: var(--ok-soft); color: var(--ok); }
.live-checks li.ask { background: var(--warn-soft); color: var(--warn); }

/* 문서 공통 */
.doc-sec { margin-top: 16px; }
.doc-sec h4 { font-size: 14px; display: flex; align-items: center; gap: 6px; padding-bottom: 6px; border-bottom: 2px solid var(--ink); margin-bottom: 6px; }
.cnt { font-size: 11px; background: var(--ink); color: #fff; border-radius: 99px; padding: 1px 7px; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.doc-table th { text-align: left; font-size: 11.5px; color: var(--muted); font-weight: 700; padding: 4px 6px; border-bottom: 1px solid var(--line); }
.doc-table td { padding: 7px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-table td.c { text-align: right; white-space: nowrap; }
.doc-list { list-style: none; padding: 0; margin: 0; font-size: 13.5px; }
.doc-list li { padding: 7px 4px; border-bottom: 1px solid var(--line); }
.doc-list.caution li::before { content: '⚑ '; color: var(--no); }
.if { font-size: 11px; font-weight: 700; color: var(--brand); background: var(--brand-soft); border-radius: 5px; padding: 1px 6px; }
.then { color: var(--ink-2); }
.when { font-size: 12px; color: var(--muted); margin-top: 3px; }
.empty { color: #b3b1c4; font-size: 13px; padding: 6px 4px; }
.cad { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 5px; background: var(--brand-soft); color: var(--brand); white-space: nowrap; }
.cad-yearly, .cad-semester, .cad-quarterly { background: #e8f0ff; color: #2952c4; }
.cad-event { background: #f1f0f6; color: var(--ink-2); }
.cad-vague { background: var(--warn-soft); color: var(--warn); }
.cad-unknown { background: var(--no-soft); color: var(--no); }
.cite { border: 0; background: var(--brand-soft); color: var(--brand); font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 5px; margin-left: 2px; vertical-align: 1px; }
.cite:hover { background: var(--brand); color: #fff; }
.gaps h4 { border-color: var(--warn); color: var(--warn); }
.gaps .cnt { background: var(--warn); }
.gaps li { background: var(--warn-soft); border-bottom-color: #fbe0b8; }
.gaps .ask { color: var(--warn); font-weight: 700; font-size: 12.5px; }
.flash { animation: flash 1.6s ease-out; }
.flash-upd { animation: flashUpd 1.6s ease-out; }
@keyframes flash { 0% { background: #d9f5e7; } 100% { background: transparent; } }
@keyframes flashUpd { 0% { background: #e4dffd; } 100% { background: transparent; } }
.doc.compact .doc-sec:first-child { margin-top: 4px; }
.doc.compact .doc-table th:nth-child(3), .doc.compact .doc-table td:nth-child(3) { display: none; }

/* 결과 */
.res-top { display: grid; grid-template-columns: 1fr auto; gap: 16px 24px; align-items: end; }
.res-title h1 { font-size: 30px; }
.compare { grid-column: 1 / -1; display: grid; grid-template-columns: 220px 40px 1fr; align-items: stretch; gap: 8px; }
.before, .after { border-radius: var(--radius); padding: 16px 18px; }
.before { background: #fffbe8; border: 1px solid #f1e6b0; }
.before ul { margin: 0; padding-left: 18px; color: #5a4d16; }
.after { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.cmp-label { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.arrow { display: grid; place-items: center; font-size: 24px; color: var(--brand); font-weight: 800; }
.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.stat { display: flex; flex-direction: column; align-items: flex-start; }
.stat b { font-size: 28px; line-height: 1.1; color: var(--brand); }
.stat span { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.stat.warn b { color: var(--warn); }
.res-actions { grid-row: 1; grid-column: 2; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.tabs { display: flex; gap: 4px; margin: 28px 0 0; border-bottom: 1px solid var(--line); }
.tab { border: 0; background: none; padding: 12px 18px; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--brand); }
.panel { padding-top: 24px; }
.sheet { background: #fff; max-width: 860px; margin: 0 auto; padding: 40px 48px; border-radius: 6px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.doc-head { border-bottom: 3px solid var(--brand); padding-bottom: 14px; margin-bottom: 8px; }
.doc-kicker { font-size: 12px; font-weight: 800; color: var(--brand); letter-spacing: .1em; }
.doc-head h2 { font-size: 26px; margin-top: 2px; }
.doc-head h2 small { font-size: 15px; color: var(--muted); font-weight: 600; margin-left: 6px; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--ink-2); margin-top: 8px; }
.doc-note { font-size: 12px; color: var(--muted); margin-top: 6px; }
.sheet .doc-sec h4 { font-size: 16px; }
.sheet .doc-table, .sheet .doc-list { font-size: 14.5px; }

.gap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { font-size: 17px; display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.big { margin-left: auto; font-size: 22px; color: var(--rule); }
.rules { list-style: none; padding: 0; margin: 14px 0 0; }
.rules li { display: grid; grid-template-columns: 22px 1fr; gap: 0 4px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rules li span { font-weight: 700; }
.rules li small { grid-column: 2; color: var(--muted); }
.warn-list { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 10px; }
.warn-item { background: var(--no-soft); border-radius: 10px; padding: 12px 14px; font-size: 14.5px; }
.warn-item b { display: block; font-size: 12px; color: var(--no); margin-bottom: 2px; }
.warn-item.ask { background: var(--warn-soft); }
.warn-item.ask b { color: var(--warn); }
.warn-item.okk { background: var(--ok-soft); }
.askwho { color: var(--warn); font-weight: 700; }

.qa-wrap { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.qa-head h3 { font-size: 18px; margin-bottom: 10px; }
.qa-head h3 small { font-size: 13px; color: var(--muted); font-weight: 600; margin-left: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid #d9d3fb; background: #fff; border-radius: 99px; padding: 8px 14px; font-size: 14px; font-weight: 600; color: var(--brand); }
.chip:hover { background: var(--brand-soft); }
.qa-log { display: flex; flex-direction: column; gap: 14px; }
.qa-empty { background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--muted); }
.qa-item { display: flex; flex-direction: column; gap: 8px; animation: pop .25s ease-out; }
.qa-q { align-self: flex-end; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 14px; border-top-right-radius: 4px; max-width: 80%; }
.qa-q span { display: block; font-size: 11px; opacity: .65; font-weight: 700; }
.qa-a { align-self: flex-start; background: #fff; border: 1px solid var(--line); padding: 14px 16px; border-radius: 14px; border-top-left-radius: 4px; max-width: 92%; box-shadow: var(--shadow); }
.qa-a p { margin: 8px 0 0; }
.badge { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 6px; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-none { background: var(--warn-soft); color: var(--warn); }
.ev { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 10px; }
.ev-label { font-size: 11.5px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.ev blockquote { margin: 4px 0; padding: 6px 10px; border-left: 3px solid var(--brand-2); background: #faf9ff; font-size: 13.5px; color: var(--ink-2); }
.qa-note { margin-top: 10px; font-size: 12px; color: var(--muted); }

/* 다이얼로그 */
.dialog { border: 0; border-radius: 16px; padding: 22px; width: min(520px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(23, 23, 43, .25); }
.dialog::backdrop { background: rgba(23, 23, 43, .4); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.x { border: 0; background: none; font-size: 24px; color: var(--muted); line-height: 1; }
.ev-turn { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.ev-q, .ev-a { padding: 12px 14px; border-radius: 12px; }
.ev-q { background: var(--brand-soft); }
.ev-a { background: #fff; border: 2px solid var(--brand-2); }
.ev-q span, .ev-a span { font-size: 12px; font-weight: 700; color: var(--brand); }
.cal-list { list-style: none; padding: 0; margin: 12px 0 16px; display: flex; flex-direction: column; gap: 8px; }
.cal-list li { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.cal-list small { color: var(--muted); width: 100%; }

/* 반응형 */
@media (max-width: 900px) {
  .role-cards, .role-grid, .intro-grid, .gap-grid { grid-template-columns: 1fr; }
  .screen { padding: 20px 16px 48px; }
  .screen.interview { display: flex; flex-direction: column; height: auto; min-height: calc(100vh - 57px); padding: 12px; gap: 12px; }
  .live-panel { order: -1; }
  .live-toggle { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; padding: 12px 16px; font-weight: 800; }
  .live-toggle b { color: var(--rule); margin-left: auto; }
  .live-inner { display: none; max-height: 50vh; border-top: 1px solid var(--line); }
  body.live-open .live-inner { display: block; }
  body.live-open .chev { transform: rotate(180deg); }
  .chat-panel { height: calc(100vh - 150px); }
  .chat-head { flex-direction: column; align-items: flex-start; }
  .msg { max-width: 94%; }
  .ex-box { flex-direction: column; align-items: stretch; }
  .input-row { flex-wrap: wrap; }
  .input-row input { flex-basis: 100%; }
  .res-top { grid-template-columns: 1fr; }
  .res-actions { grid-row: auto; grid-column: 1; justify-content: flex-start; }
  .compare { grid-template-columns: 1fr; }
  .arrow { transform: rotate(90deg); height: 24px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .sheet { padding: 24px 18px; }
  .checklist { grid-template-columns: 1fr; }
  .tab { padding: 10px 10px; font-size: 14px; }
}

/* 인쇄: 인수인계서만 */
@media print {
  body { background: #fff; }
  .topbar, .res-top, .tabs, [data-panel="gaps"], [data-panel="qa"], .doc-note { display: none !important; }
  [data-screen="result"] { padding: 0; }
  [data-panel="doc"] { display: block !important; padding: 0; }
  .sheet { box-shadow: none; border: 0; padding: 0; max-width: none; }
  .cite { background: none; padding: 0; color: var(--muted); }
}
