:root {
  --bg: #fdf7fb;
  --panel: #ffffff;
  --ink: #2a2233;
  --muted: #8a7f96;
  --line: #f0e4ef;
  --pink: #ff6fae;
  --pink-soft: #ffe3f0;
  --lilac: #a98bff;
  --lilac-soft: #efe9ff;
  --ok: #2fb380;
  --bad: #e5484d;
  --radius: 16px;
  font-family: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; }
.hidden { display: none !important; }
code, pre { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; }
code { background: var(--lilac-soft); padding: 1px 6px; border-radius: 6px; }
pre { background: #2a2233; color: #ffd6ea; padding: 14px; border-radius: 12px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
h1, h2, h3 { margin: 0; }
h2 { font-size: 24px; }
h3 { font-size: 16px; margin-bottom: 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.error { color: var(--bad); min-height: 1em; }

.layout { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.sidebar { background: linear-gradient(180deg, #fff 0%, #fff4fa 100%); border-right: 1px solid var(--line); padding: 22px 16px; display: flex; flex-direction: column; gap: 22px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; gap: 10px; align-items: center; }
.brand b { display: block; font-size: 18px; }
.brand small { color: var(--muted); }
.logo { font-size: 30px; width: 46px; height: 46px; display: grid; place-items: center; background: var(--pink-soft); border-radius: 14px; }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.sidebar nav a { color: var(--ink); text-decoration: none; padding: 9px 12px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.sidebar nav a:hover { background: var(--pink-soft); }
.sidebar nav a.active { background: var(--pink); color: #fff; }

main { padding: 32px clamp(16px, 4vw, 48px); max-width: 1100px; width: 100%; }
.page-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 18px; }
.page-head p { margin: 0; flex: 1 1 100%; }
.page-head select { margin-left: auto; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; box-shadow: 0 2px 0 #f6e9f2; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 16px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.stat span { color: var(--muted); font-size: 13px; font-weight: 600; }
.stat b { font-size: 26px; }
.stat small { color: var(--muted); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--lilac-soft); }
.chip.on { background: #dff7ec; color: #17734f; }
.chip.off { background: #f3eef3; color: var(--muted); text-decoration: line-through; }

label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
label small { font-weight: 400; color: var(--muted); font-size: 12px; }
label.inline { flex-direction: row; align-items: center; gap: 10px; }
input, select, textarea { font: inherit; font-weight: 400; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-soft); }
textarea { resize: vertical; line-height: 1.5; }
input[type="range"] { padding: 0; accent-color: var(--pink); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 18px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 18px; }
.actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; }

.btn { text-decoration: none; display: inline-block; font: inherit; font-weight: 700; border: 0; border-radius: 999px; padding: 10px 18px; cursor: pointer; transition: transform .08s; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--pink); color: #fff; }
.btn.primary:hover { background: #ff579f; }
.btn.ghost { background: var(--pink-soft); color: #c2306f; }
.btn.danger { background: #fde8e8; color: var(--bad); }
.btn.small { padding: 6px 12px; font-size: 13px; }

.toggle-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.toggle-row:last-child { border-bottom: 0; }
.toggle-row p { margin: 4px 0 0; }
.switch { position: relative; width: 48px; height: 28px; margin: 0; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #e8dde6; border-radius: 999px; cursor: pointer; transition: .2s; }
.switch span::before { content: ""; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.switch input:checked + span { background: var(--pink); }
.switch input:checked + span::before { transform: translateX(20px); }
.switch input:focus-visible + span { box-shadow: 0 0 0 3px var(--pink-soft); }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 8px; border-bottom: 1px solid var(--line); }
.table td { padding: 8px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.table input { width: 100%; padding: 6px 8px; }

.platform { display: flex; flex-direction: column; gap: 10px; }
.platform .row { display: flex; align-items: center; justify-content: space-between; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; background: #ccc; }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 3px #dff7ec; }
.dot.bad { background: var(--bad); }

.bars { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 10px; }
.bar { flex: 1; max-width: 64px; background: linear-gradient(180deg, var(--pink), var(--lilac)); border-radius: 6px 6px 2px 2px; min-height: 2px; position: relative; }
.bar span { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--muted); white-space: nowrap; }
.bar:hover::after { content: attr(data-v); position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font-size: 11px; background: var(--ink); color: #fff; padding: 2px 6px; border-radius: 6px; white-space: nowrap; }
#u-chart { margin-bottom: 20px; }

.mem-list { display: flex; flex-direction: column; gap: 10px; }
.mem { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; }
.mem p { margin: 4px 0 0; font-size: 13.5px; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--lilac-soft); color: #6b4fd8; margin-left: 6px; text-transform: uppercase; }

.chat { display: flex; flex-direction: column; height: 60vh; min-height: 380px; }
.chat-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px; }
.msg { max-width: 78%; padding: 10px 14px; border-radius: 18px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; font-size: 14.5px; }
.msg.me { align-self: flex-end; background: var(--pink); color: #fff; border-bottom-right-radius: 6px; }
.msg.bot { align-self: flex-start; background: var(--lilac-soft); border-bottom-left-radius: 6px; }
.msg.meta { align-self: center; background: none; color: var(--muted); font-size: 12px; padding: 0; }
.msg img { max-width: 180px; border-radius: 10px; display: block; margin-top: 6px; }
.chat-input { display: flex; gap: 8px; margin-top: 12px; }
.chat-input input { flex: 1; }
.attach { display: grid; place-items: center; margin: 0; }

.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at 20% 20%, #ffe3f0, transparent 50%), radial-gradient(circle at 80% 80%, #efe9ff, transparent 50%), var(--bg); }
.login-card { width: min(380px, 100%); display: flex; flex-direction: column; gap: 12px; text-align: center; }
.logo-big { font-size: 52px; }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(80px); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; transition: transform .25s; z-index: 10; }
.toast.show { transform: translateX(-50%) translateY(0); }

@media (max-width: 760px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px; gap: 10px; }
  .sidebar nav { flex-direction: row; overflow-x: auto; flex-basis: 100%; order: 3; }
  .sidebar nav a { white-space: nowrap; }
  #logout { margin-left: auto; }
}

.why { background: linear-gradient(135deg, #fff 0%, #fff0f7 60%, #f3eeff 100%); }
.why h3 { font-size: 18px; margin-bottom: 4px; }
.why .slogan { color: #c2306f; font-weight: 700; margin: 0 0 14px; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 14px; }
.why-grid div { background: rgba(255,255,255,.75); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.why-grid b { display: block; margin-bottom: 4px; }
.why-grid p { margin: 0; font-size: 13.5px; color: #4b4257; line-height: 1.5; }
.fk-badge { display: block; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.fk-badge b { display: block; font-size: 15px; letter-spacing: -.01em; }
.fk-badge small { color: var(--muted); font-size: 12px; }
.fk-badge:hover { border-color: var(--pink); }
@media (max-width: 760px) { .fk-badge { display: none; } }

.alert { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); background: linear-gradient(90deg, #fff0f7, #f3eeff); border: 1.5px solid #ffc2dc; border-radius: var(--radius); padding: 14px 18px; margin-bottom: 16px; }
.alert small { color: var(--muted); }
.alert .btn { margin-left: auto; white-space: nowrap; }
.alert-icon { font-size: 26px; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 4px 12px; align-items: start; }
.steps li::before { content: counter(s); grid-row: span 4; width: 30px; height: 30px; border-radius: 50%; background: var(--pink-soft); color: #c2306f; font-weight: 800; display: grid; place-items: center; }
.steps li > * { grid-column: 2; }
.steps li > .btn { justify-self: start; margin-top: 4px; }
.steps p { margin: 2px 0 0; }
.key-form { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.key-form input { flex: 1 1 260px; font-family: ui-monospace, Menlo, monospace; }
.key-status { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.key-status .big { font-size: 28px; }
.key-status code { font-size: 13px; }
.key-status .btn { margin-left: auto; }
.why-mini p { margin: 6px 0 0; font-size: 14px; color: #4b4257; }
.why-mini .slogan { color: #c2306f; font-weight: 700; }
.sidebar nav a .dot { width: 7px; height: 7px; margin: 0 0 1px 4px; vertical-align: middle; }
.sidebar nav a.active .dot.ok { box-shadow: none; }

/* ── multi-bot ─────────────────────────────────────────────── */
.actions.left { justify-content: flex-start; }
.nav-bots { display: flex; flex-direction: column; gap: 1px; margin: 2px 0 8px 10px; padding-left: 8px; border-left: 2px solid var(--line); }
.nav-bots a { font-weight: 500; font-size: 13.5px; padding: 6px 10px; display: flex; align-items: center; gap: 8px; }
.mini-avatar { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 13px; background: color-mix(in srgb, var(--c) 18%, white); flex: none; }
.sidebar nav a.active .mini-avatar { background: rgba(255,255,255,.3); }

.avatar { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: color-mix(in srgb, var(--c, var(--pink)) 16%, white); border: 2px solid color-mix(in srgb, var(--c, var(--pink)) 35%, white); flex: none; }
.avatar.big { width: 60px; height: 60px; font-size: 32px; border-radius: 18px; }
.tag.qa { background: #e8f0ff; color: #3355cc; }
.tag.companion { background: var(--pink-soft); color: #c2306f; }

.bot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 18px; }
.bot-card { background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--c, var(--pink)); border-radius: var(--radius); padding: 16px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 10px; transition: transform .12s, box-shadow .12s; font: inherit; text-align: left; cursor: pointer; }
.bot-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(42,34,51,.08); }
.bot-head { display: flex; gap: 12px; align-items: center; }
.bot-head b { font-size: 16px; display: block; }
.bot-head .tag { margin-left: 0; margin-top: 3px; }
.bot-card .desc { margin: 0; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chan-row { display: flex; gap: 6px; }
.chan { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #f4eef3; filter: grayscale(1); opacity: .45; font-size: 15px; }
.chan.idle { opacity: .8; filter: grayscale(.3); }
.chan.on { background: #dff7ec; filter: none; opacity: 1; }
.bot-stats { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--muted); }
.bot-card.new { border: 2px dashed #f0cfe0; border-top-width: 2px; align-items: center; justify-content: center; text-align: center; background: #fffafd; min-height: 190px; }
.bot-card.new .plus { font-size: 30px; color: var(--pink); }

.modal { position: fixed; inset: 0; background: rgba(42,34,51,.35); display: grid; place-items: center; z-index: 20; padding: 20px; }
.modal-card { width: min(720px, 100%); max-height: 90vh; overflow-y: auto; margin: 0; }
.preset-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 14px 0; }
.preset { border: 2px solid var(--line); border-radius: 14px; padding: 12px; cursor: pointer; flex-direction: column; gap: 4px; margin: 0; font-weight: 400; }
.preset input { display: none; }
.preset:has(input:checked) { border-color: var(--pink); background: #fff5fa; }
.preset-avatar { font-size: 26px; }
.preset b { font-size: 14px; }
.doc-preview { background: #faf6fa; color: var(--ink); max-height: 55vh; overflow-y: auto; font-size: 13px; }

.bot-header { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.bot-header h2 { display: flex; align-items: center; gap: 8px; }
.bot-header p { margin: 4px 0 0; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 700; font-size: 14px; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a.active { color: var(--ink); border-bottom-color: var(--pink); }

.persona-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.persona-preview { position: sticky; top: 16px; }
.persona-preview pre { background: #faf6fa; color: #4b4257; max-height: 46vh; overflow-y: auto; font-size: 12px; word-break: normal; overflow-wrap: anywhere; }
.identity-row { display: flex; gap: 12px; align-items: flex-end; }
.identity-row .grow { flex: 1; }
.emoji-input { width: 64px; text-align: center; font-size: 22px; padding: 6px; }
input[type="color"] { width: 56px; height: 44px; padding: 4px; cursor: pointer; }
details summary { cursor: pointer; font-weight: 700; color: #c2306f; margin: 6px 0 10px; }
.sticky-save { position: sticky; bottom: 12px; display: flex; justify-content: flex-end; pointer-events: none; }
.sticky-save .btn { pointer-events: auto; box-shadow: 0 6px 18px rgba(255,111,174,.35); }
.wprev { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.wprev-head { color: #fff; padding: 12px 14px; display: flex; gap: 10px; align-items: center; font-size: 20px; }
.wprev-head b { font-size: 15px; display: block; }
.wprev-head small { font-size: 11.5px; opacity: .9; display: block; line-height: 1.3; }
.wprev-body { background: #fdf7fb; padding: 14px; min-height: 80px; }
.wprev-msg { background: var(--lilac-soft); border-radius: 14px 14px 14px 4px; padding: 9px 12px; font-size: 14px; display: inline-block; max-width: 90%; }

.subtabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.subtabs button { font: inherit; font-weight: 700; font-size: 13.5px; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; cursor: pointer; color: var(--muted); }
.subtabs button.active { border-color: var(--pink); color: #c2306f; background: #fff5fa; }
.dropzone { border: 2px dashed #f0cfe0; border-radius: 14px; padding: 28px; text-align: center; align-items: center; cursor: pointer; background: #fffafd; }
.dropzone.over { border-color: var(--pink); background: var(--pink-soft); }
#upload-log div { margin-top: 4px; }
.hit { border-left: 3px solid var(--lilac); padding: 6px 12px; margin-top: 10px; background: #faf8ff; border-radius: 0 10px 10px 0; }
.hit p { margin: 4px 0 0; font-size: 13.5px; white-space: pre-wrap; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }

.channel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.channel { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.channel .row { display: flex; align-items: center; justify-content: space-between; }
.channel > .btn { align-self: flex-start; }
.ch-title { font-size: 16px; }
.howto { margin: 0 0 12px; padding-left: 20px; font-size: 13.5px; line-height: 1.6; color: #4b4257; }
.howto code { font-size: 11.5px; }
.snippet { font-size: 11.5px; margin: 0; }
.danger-zone { border-color: #fbd5d5; }
.filters { margin-left: auto; display: flex; gap: 8px; }

@media (max-width: 980px) {
  .persona-layout { grid-template-columns: 1fr; }
  .persona-preview { position: static; }
}
@media (max-width: 760px) {
  .nav-bots { display: none; }
}

.model-picker { display: flex; flex-direction: column; gap: 6px; }
.model-picker select { font-weight: 500; }
.model-picker input { font-family: ui-monospace, Menlo, monospace; font-size: 13px; }

/* Custom select chevron with breathing room (native arrow hugs the edge on macOS). */
select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238a7f96' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
  cursor: pointer;
}
select:focus { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23ff6fae' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
select::-ms-expand { display: none; }

.sidebar-foot { display: flex; gap: 8px; align-items: center; }
.sidebar-foot .lang-select { flex: 1; padding: 6px 30px 6px 10px; font-size: 13px; background-position: right 10px center; }
.login-card .lang-select { align-self: center; padding: 6px 34px 6px 12px; font-size: 13px; border-color: transparent; background-color: transparent; color: var(--muted); }
#logout { white-space: nowrap; }
/* Callout used by channels that need a publicly reachable server (LINE). */
.callout {
  border: 1px solid #f0c9a8;
  background: #fff7ec;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 10px 0 14px;
}
.callout b { display: block; margin-bottom: 4px; }
.callout .actions { margin-top: 8px; }
/* Storage page */
.dot.warn { background: #f5a623; box-shadow: 0 0 0 3px #fff1d6; }
.tips { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tip { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: #f7f5fa; line-height: 1.5; }
.tip.warn { background: #fff6e5; border: 1px solid #f7d79a; }
.tip.ok { background: #effaf4; }
.table.kv th { width: 34%; text-align: left; font-weight: 600; vertical-align: top; }
.banner { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 18px; border-radius: 14px; background: #fff6e5; border: 1px solid #f7d79a; }
.banner .actions { margin: 0; }
.card.backup .actions { align-items: center; flex-wrap: wrap; }
.check { display: inline-flex; gap: 6px; align-items: center; }
label.check { flex-direction: row; align-items: center; gap: 6px; margin: 0; font-weight: 500; }
label.check input { width: auto; margin: 0; }

/* Persona: character uploads and the live character preview */
.upload-row { display: flex; gap: 8px; align-items: stretch; margin-top: 6px; }
.upload-row input { flex: 1; min-width: 0; margin-top: 0; }
.upload-row .btn { white-space: nowrap; }
.wprev.room { border: 0; border-radius: 16px; overflow: visible; }
.cp-scene { position: relative; height: 470px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff 0%, #fdf2f8 100%); }
.cp-stage { position: absolute; left: 0; right: 0; top: 34px; bottom: 58px; display: grid; place-items: center; }
.cp-stage canvas { width: 100%; height: 100%; display: block; cursor: pointer; }
.cp-msg { padding: 0 18px; text-align: center; }
.cp-msg.err { color: #c0395e; }
.cp-name { position: absolute; top: 10px; left: 10px; display: flex; align-items: center; gap: 7px; font-size: 13px; padding: 5px 12px 5px 10px;
  border-radius: 999px; background: rgba(255, 255, 255, .9); box-shadow: 0 4px 16px rgba(42, 34, 51, .14); }
.cp-name i { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); }
.cp-bubble { position: absolute; left: 10px; bottom: 64px; max-width: 80%; font-size: 13.5px; padding: 7px 12px; border-radius: 16px 16px 16px 5px;
  background: rgba(255, 255, 255, .94); box-shadow: 0 4px 14px rgba(42, 34, 51, .13); }
.cp-input { position: absolute; left: 10px; right: 10px; bottom: 12px; padding: 9px 14px; border-radius: 999px; font-size: 13px; color: #9a8fa6;
  background: rgba(255, 255, 255, .94); box-shadow: 0 6px 20px rgba(42, 34, 51, .16); }
.cp-hint { margin: 8px 2px 0; }
.wpeek { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 10px 0 0 12px;
  border-radius: 14px; border: 1px dashed var(--line); background: #fff; overflow: hidden; }
.wpeek span { align-self: center; }
.wpeek img { height: 96px; width: auto; max-width: 60%; object-fit: contain; object-position: right bottom; display: block; }
