/* 직접 대화 화면 — style.css 위에 얹는 세 칸 배치. 글자 12·14·16·20, 두께 500·600, 무채색만, 왼쪽 색 띠 없음 */
body.three { background: var(--surface); }
.shell { height: 100%; display: grid; grid-template-columns: 300px minmax(360px, 1fr) 340px; }
.shell > * { min-height: 0; }
.setup, .report { padding: 20px 16px; overflow-y: auto; background: var(--surface); }
.setup { border-right: 1px solid var(--line); }
.report { border-left: 1px solid var(--line); }
.h20 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.muted { font-size: 14px; color: var(--text-2); }
.small { font-size: 12px; color: var(--text-3); margin-top: 12px; }
.form { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--text-2); }
.field select, .field input { min-height: 40px; padding: 0 12px; border: 1px solid var(--line-input); border-radius: 8px; background: var(--bg); font-size: 14px; color: var(--text); }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.primary { min-height: 40px; padding: 0 16px; border: 0; border-radius: 8px; background: var(--ink); color: var(--on-ink); font-size: 14px; font-weight: 600; }
.primary:disabled, .ghost:disabled { opacity: .4; cursor: default; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }

/* 가운데 대화 */
.chat .top, .chat .log, .chat .ans { padding-left: 24px; padding-right: 24px; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 8px; }
.choice { min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg); font-size: 16px; }
.choice:hover { background: var(--surface); }
.inputrow { display: flex; gap: 8px; padding-block: 8px 16px; align-items: center; }
.syms { display: flex; gap: 4px; }
.sym { min-width: 40px; min-height: 40px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg); font-size: 16px; }
.inputrow input { flex: 1; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-input); border-radius: 12px; background: var(--bg); font-size: 16px; }
.dbg { margin-top: 6px; font-size: 12px; color: var(--text-3); white-space: pre-wrap; }
.alert { align-self: stretch; font-size: 14px; color: var(--text-2); background: var(--surface-2); border-radius: 12px; padding: 8px 12px; }

/* 오른쪽 보고 */
.rep-body { display: flex; flex-direction: column; gap: 8px; }
.rep { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.rep h3 { font-size: 14px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.rep p, .rep li { font-size: 14px; }
.rep .big { font-size: 20px; font-weight: 600; }
.rep ul { list-style: none; }
.rep li { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
.rep li span:last-child { color: var(--text-2); text-align: right; }
.bar { height: 6px; border-radius: 3px; background: var(--line); margin-top: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ink); transition: width .3s; }
.lv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 8px; }
.lv span { font-size: 12px; color: var(--text-2); }
.lv b { font-weight: 600; }

@media (max-width: 1100px) {
  .shell { grid-template-columns: 1fr; grid-template-rows: auto minmax(360px, 1fr) auto; }
  .setup { border-right: 0; border-bottom: 1px solid var(--line); }
  .report { border-left: 0; border-top: 1px solid var(--line); }
}

/* 말풍선 — 공용 style.css 가 메신저 꼴(.ai-row/.me-row 감싸개)로 바뀌어, 감싸개 없이 쓰는 이 화면은 여기서 자리·너비를 정한다(2026-11-04) */
.chat .log > .ai { align-self: flex-start; max-width: 85%; border-radius: 4px 12px 12px 12px; }
.chat .log > .me { align-self: flex-end; max-width: 80%; border-radius: 12px 4px 12px 12px; }
.chat .log > .note { align-self: center; }
