/* ===== BC-064-B demo chat widget (design mockup) ===== */
.dc-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.dc-launch{position:fixed;z-index:50;right:calc(24px + env(safe-area-inset-right));bottom:calc(24px + env(safe-area-inset-bottom));height:56px;min-width:56px;padding:0 22px 0 18px;border:0;border-radius:28px;background:#000;color:#fff;font:600 16px/1 Inter,system-ui,sans-serif;display:inline-flex;align-items:center;gap:10px;cursor:pointer;box-shadow:0 12px 32px rgba(4,40,70,.35),0 0 0 2px rgba(255,255,255,.9)}
.dc-launch:focus-visible,.dc-panel :focus-visible{outline:3px solid #0a6aa6;outline-offset:2px}
.dc-launch:focus-visible{outline-color:#fff;box-shadow:0 0 0 6px #0a6aa6}
.dc-launch svg{flex:none}
.dc-panel{position:fixed;z-index:60;right:calc(24px + env(safe-area-inset-right));bottom:calc(96px + env(safe-area-inset-bottom));width:400px;height:min(640px,calc(100dvh - 120px));display:flex;flex-direction:column;background:#fff;border-radius:24px;overflow:hidden;box-shadow:0 12px 40px rgba(4,40,70,.28),0 0 0 1px rgba(13,27,42,.08);font-family:Inter,system-ui,sans-serif;color:#0d1b2a;transform-origin:bottom right;animation:dcin .2s cubic-bezier(.16,1,.3,1)}
.dc-panel[hidden]{display:none}
@keyframes dcin{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}
.dc-head{flex:none;height:56px;display:flex;align-items:center;gap:10px;padding:0 8px 0 16px;background:#0a6aa6;color:#fff}
.dc-av{width:32px;height:32px;border-radius:50%;background:#fff;color:#0a6aa6;font:600 13px/32px Inter,sans-serif;text-align:center;flex:none}
.dc-title{font-size:16px;font-weight:600;line-height:1.2}
.dc-sub{font-size:13px;line-height:1.2;color:#fff}
.dc-x{margin-left:auto;width:44px;height:44px;border:0;border-radius:22px;background:transparent;color:#fff;cursor:pointer;display:grid;place-items:center}
.dc-x:hover{background:rgba(255,255,255,.14)}
.dc-head .dc-x:focus-visible{outline-color:#fff}
.dc-log{flex:1 1 auto;overflow-y:auto;overscroll-behavior:contain;background:#f4f7fa;padding:16px;display:flex;flex-direction:column;gap:10px;font-size:15px;line-height:1.45}
.dc-note{background:#fff;border:1px solid #d5dde5;border-radius:16px;padding:14px 16px;font-size:14px;line-height:1.5;color:#4a5a6a}
.dc-note b{color:#0d1b2a;font-weight:600}
.dc-tag{display:inline-block;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#0b5c8f;margin-bottom:4px}
.dc-b{max-width:84%;padding:10px 14px;word-wrap:break-word;white-space:pre-wrap}
.dc-bot{align-self:flex-start;background:#fff;color:#0d1b2a;border-radius:16px 16px 16px 4px;box-shadow:0 1px 2px rgba(0,0,0,.08)}
.dc-me{align-self:flex-end;background:#0a6aa6;color:#fff;border-radius:16px 16px 4px 16px}
.dc-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:2px}
.dc-chip{min-height:44px;padding:0 16px;border-radius:22px;border:1.5px solid #6b7a89;background:#fff;color:#0b5c8f;font:600 15px/1.2 Inter,sans-serif;cursor:pointer}
.dc-chip:hover{border-color:#0a6aa6;background:#f0f7fc}
.dc-dots{display:inline-flex;gap:5px;align-items:center;height:20px}
.dc-dots i{width:8px;height:8px;border-radius:50%;background:#4a5a6a;animation:dcdot 1.2s infinite ease-in-out}
.dc-dots i:nth-child(2){animation-delay:.15s}.dc-dots i:nth-child(3){animation-delay:.3s}
@keyframes dcdot{0%,80%,100%{opacity:.35;transform:none}40%{opacity:1;transform:translateY(-3px)}}
.dc-typing-txt{font-size:13px;color:#4a5a6a;margin-left:8px}
.dc-cap{background:#fff;border:1px solid #d5dde5;border-radius:16px;padding:16px}
.dc-cap h3{margin:0 0 6px;font-size:17px;font-weight:600}
.dc-cap p{margin:0 0 14px;font-size:15px;color:#4a5a6a;line-height:1.5}
.dc-btn{display:flex;align-items:center;justify-content:center;min-height:48px;border-radius:24px;font:600 16px/1 Inter,sans-serif;padding:0 20px;border:0;cursor:pointer;text-decoration:none;width:100%;box-sizing:border-box}
.dc-btn+.dc-btn{margin-top:10px}
.dc-pri{background:#000;color:#fff}
.dc-sec{background:#fff;color:#000;box-shadow:inset 0 0 0 1.5px #0d1b2a}
.dc-alert{border:2px solid #b42318;background:#fef3f2;border-radius:12px;padding:14px 16px;color:#0d1b2a;font-size:15px;line-height:1.5}
.dc-alert h3{margin:0 0 4px;font-size:15px;font-weight:700;color:#b42318;display:flex;gap:8px;align-items:center}
.dc-alert a{color:#0b5c8f;font-weight:600;text-decoration:underline}
.dc-ico{width:18px;height:18px;border-radius:50%;background:#b42318;color:#fff;font:700 12px/18px Inter,sans-serif;text-align:center;flex:none}
.dc-alert .dc-btn{margin-top:12px;width:auto;display:inline-flex}
.dc-foot{flex:none;border-top:1px solid #e3e9ef;background:#fff;padding:12px 12px calc(12px + env(safe-area-inset-bottom))}
.dc-row{display:flex;gap:8px;align-items:flex-end}
.dc-in{flex:1;min-width:0;font:400 16px/1.4 Inter,sans-serif;color:#0d1b2a;min-height:48px;max-height:120px;box-sizing:border-box;padding:12px 14px;border:1.5px solid #6b7a89;border-radius:12px;resize:none;background:#fff}
.dc-in:focus{border-color:#0a6aa6}
.dc-in[aria-invalid=true]{border:2px solid #b42318;background:#fffbfa}
.dc-in:disabled{background:#eef2f6;border-color:#c7d0d9;color:#4a5a6a}
.dc-send{flex:none;width:48px;height:48px;border-radius:24px;border:0;background:#000;color:#fff;display:grid;place-items:center;cursor:pointer}
.dc-send[aria-disabled=true]{background:#3d4652;cursor:not-allowed}
.dc-meta{display:flex;justify-content:space-between;gap:12px;margin-top:6px;font-size:13px;line-height:1.4;color:#4a5a6a}
.dc-count{font-variant-numeric:tabular-nums;white-space:nowrap}
.dc-over .dc-count{color:#b42318;font-weight:600}
.dc-err{display:flex;gap:6px;align-items:flex-start;margin-top:6px;font-size:14px;font-weight:500;color:#b42318}
.dc-err[hidden]{display:none}
.dc-why{margin-top:6px;font-size:14px;color:#4a5a6a;display:flex;gap:6px}
@media (max-width:899.98px){
 .dc-launch{padding:0;width:56px;justify-content:center;right:calc(16px + env(safe-area-inset-right));bottom:calc(16px + env(safe-area-inset-bottom))}
 .dc-launch .dc-ltxt{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
 .dc-panel{inset:0;width:auto;height:100vh;height:100dvh;border-radius:0;animation-name:dcup}
 .dc-head{padding-top:env(safe-area-inset-top);height:calc(56px + env(safe-area-inset-top));box-sizing:border-box}
 body.dc-lock{overflow:hidden}
}
@keyframes dcup{from{transform:translateY(24px);opacity:0}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.dc-panel{animation:none}.dc-dots i{animation:none;opacity:.7}}

/* BC-064-E: visible focus ring on the scrollable log (tabindex=0), inset so overflow can't clip it */
.dc-panel .dc-log:focus-visible{outline:3px solid #0a6aa6;outline-offset:-3px}
