/* 🤖 클로드 패널 (js/claude-panel.js) — 머리글 단추 + 오른쪽 서랍. PC 용. 휴대폰에서는 css/mobile.css 가 숨긴다 */
.dhc-btn { background:rgba(255,255,255,0.14); color:#fff; border:1px solid rgba(255,255,255,0.35); border-radius:6px; padding:6px 10px; font-size:13px; cursor:pointer; white-space:nowrap; }
.dhc-btn:hover { background:rgba(255,255,255,0.24); }
.dhc-btn.on { background:#fff; color:#1e3a5f; }

.dhc-panel { position:fixed; top:0; right:0; bottom:0; width:440px; max-width:100vw; background:#fff; border-left:1px solid #cbd5e1; box-shadow:-6px 0 24px rgba(15,23,42,0.15); z-index:1200; display:flex; flex-direction:column; font-size:14px; color:#1e293b; }
.dhc-panel[hidden] { display:none; }
.dhc-head { display:flex; align-items:center; gap:8px; padding:10px 12px; border-bottom:1px solid #e2e8f0; background:#f8fafc; }
.dhc-head b { font-size:15px; white-space:nowrap; }
.dhc-status { flex:1; min-width:0; font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:#64748b; }
.dhc-status.ok { color:#15803d; }
.dhc-status.bad { color:#b91c1c; }
.dhc-ib { border:1px solid #cbd5e1; background:#fff; color:#1e293b; border-radius:6px; padding:4px 8px; font-size:12px; cursor:pointer; white-space:nowrap; }
.dhc-ib:hover { background:#f1f5f9; }
select.dhc-ib { max-width:120px; padding:4px 4px; }

.dhc-body { flex:1; overflow:auto; padding:12px; display:flex; flex-direction:column; gap:10px; background:#fff; }
.dhc-msg { max-width:92%; padding:8px 12px; border-radius:12px; line-height:1.55; white-space:pre-wrap; word-break:break-word; }
.dhc-msg.user { align-self:flex-end; background:#dbeafe; color:#1e3a5f; border-bottom-right-radius:4px; }
.dhc-msg.bot { align-self:flex-start; background:#f1f5f9; color:#1e293b; border-bottom-left-radius:4px; min-width:48px; }
.dhc-msg.bot.err { background:#fef2f2; color:#991b1b; }
.dhc-msg pre { background:#0f172a; color:#e2e8f0; padding:8px 10px; border-radius:6px; overflow:auto; font-size:12px; white-space:pre; margin:4px 0; }
.dhc-msg code { background:rgba(15,23,42,0.08); padding:0 4px; border-radius:4px; font-size:12.5px; }
.dhc-msg pre code { background:none; padding:0; }
.dhc-meta { font-size:11px; color:#94a3b8; margin-top:4px; white-space:normal; }
/* 도구 실행 줄 (🔧 이름 · 인자 → 결과 크기) */
.dhc-tool { display:flex; gap:6px; align-items:baseline; font-size:12px; color:#475569; white-space:normal; margin:0 0 3px; }
.dhc-tool small { color:#94a3b8; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:300px; }
.dhc-tool.run span::after { content:' …'; }
.dhc-tool.ok span { color:#15803d; }
.dhc-tool.err span, .dhc-tool.deny span { color:#b91c1c; }
/* 바꾸는 도구 확인 카드 */
.dhc-confirm { align-self:stretch; background:#fffbeb; border:1px solid #f59e0b; border-radius:10px; padding:10px 12px; font-size:13px; }
.dhc-confirm-t { margin-bottom:6px; }
.dhc-confirm pre { background:#fff; border:1px solid #fde68a; border-radius:6px; padding:8px; white-space:pre-wrap; word-break:break-word; font:inherit; font-size:12.5px; max-height:240px; overflow:auto; margin:0 0 8px; }
.dhc-confirm-b { display:flex; gap:8px; align-items:center; }
.dhc-wait::after { content:'●'; color:#94a3b8; animation:dhcBlink 1s infinite; }
@keyframes dhcBlink { 50% { opacity:0.2; } }

.dhc-foot { border-top:1px solid #e2e8f0; padding:8px 12px 10px; background:#f8fafc; }
.dhc-ctx { font-size:12px; color:#475569; display:flex; align-items:center; gap:6px; margin-bottom:6px; cursor:pointer; }
.dhc-row { display:flex; gap:8px; align-items:flex-end; }
.dhc-attach { font-size:18px; line-height:1; padding:7px 10px; align-self:flex-end; }
.dhc-panel.dhc-drop { outline:3px dashed #60a5fa; outline-offset:-6px; }
.dhc-confirm-b.dhc-wrap { flex-wrap:wrap; }
.dhc-row textarea { flex:1; resize:none; border:1px solid #cbd5e1; border-radius:8px; padding:8px 10px; font:inherit; font-size:14px; line-height:1.4; max-height:200px; background:#fff; }
.dhc-row textarea:focus { outline:2px solid #93c5fd; border-color:#60a5fa; }
.dhc-send { background:#2563eb; color:#fff; border:0; border-radius:8px; padding:9px 14px; font-size:14px; cursor:pointer; white-space:nowrap; }
.dhc-send:hover { background:#1d4ed8; }
.dhc-send.stop { background:#dc2626; }
.dhc-hint { font-size:11px; color:#94a3b8; margin-top:6px; }
.dhc-muted { color:#64748b; font-size:12px; }

.dhc-callout { background:#fffbeb; border:1px solid #fcd34d; border-radius:8px; padding:10px 12px; font-size:13px; line-height:1.55; }
.dhc-callout.info { background:#eff6ff; border-color:#93c5fd; }
.dhc-callout code { background:rgba(15,23,42,0.08); padding:0 4px; border-radius:4px; }
.dhc-callout .dhc-ib { margin-top:6px; }

/* 설치 안내 */
.dhc-modal { position:fixed; inset:0; background:rgba(15,23,42,0.45); z-index:1300; display:flex; align-items:center; justify-content:center; padding:20px; }
.dhc-modal .box { background:#fff; border-radius:12px; max-width:660px; width:100%; max-height:90vh; overflow:auto; padding:18px 20px; font-size:13.5px; line-height:1.6; color:#1e293b; }
.dhc-modal p { margin:10px 0; }
.dhc-modal code { background:#f1f5f9; padding:0 4px; border-radius:4px; }
.dhc-mhead { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; font-size:16px; }
.dhc-mfoot { display:flex; justify-content:flex-end; gap:8px; margin-top:14px; }
.dhc-steps { padding-left:22px; margin:10px 0; }
.dhc-steps li { margin:12px 0; padding-bottom:10px; border-bottom:1px dashed #e2e8f0; }
.dhc-steps li:last-child { border-bottom:0; }
.dhc-badge { display:inline-block; font-size:11px; padding:1px 7px; border-radius:10px; background:#f1f5f9; color:#64748b; margin-left:4px; vertical-align:middle; }
.dhc-badge.ok { background:#dcfce7; color:#15803d; }
.dhc-badge.no { background:#fee2e2; color:#b91c1c; }
.dhc-mhead span { display:flex; gap:6px; }
.dhc-fg { margin:6px 0; }
.dhc-cmd { display:flex; gap:6px; align-items:center; background:#0f172a; color:#e2e8f0; border-radius:6px; padding:6px 8px 6px 10px; font-family:ui-monospace, Consolas, "SF Mono", monospace; font-size:12px; margin:4px 0; }
.dhc-cmd code { flex:1; overflow:auto; white-space:nowrap; background:none; color:inherit; padding:0; }
.dhc-modal details { margin:6px 0; }
.dhc-modal summary { cursor:pointer; }
