:root {
  --bg: #0b0f14;
  --panel: #121821;
  --panel-2: #18202b;
  --line: #232d3b;
  --text: #e6edf3;
  --muted: #7d8b9c;
  --accent: #3b82f6;
  --accent-2: #2563eb;
  --ok: #22c55e;
  --bad: #ef4444;
  --warn: #fbbf24;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }

#app {
  max-width: 760px;
  height: var(--vh, 100dvh);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

/* ---------------- 顶栏 ---------------- */
header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 15, 20, .88);
  backdrop-filter: blur(8px);
  flex: 0 0 auto;
}
.logo {
  width: 30px; height: 30px; flex: 0 0 auto;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  display: grid; place-items: center;
  font-size: 15px;
}
.title { flex: 1 1 auto; min-width: 0; }
.title h1 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.title .sub {
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
}
.sep { opacity: .5; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); transition: background .2s; flex: 0 0 auto; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 3px rgba(34, 197, 94, .15); }
.dot.off { background: var(--bad); box-shadow: 0 0 0 3px rgba(239, 68, 68, .15); }
.room {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  color: var(--accent);
  font-size: 11.5px;
}
.lock { font-size: 10px; }
.admin-badge {
  font-size: 10px;
  color: #f59e0b;
  border: 1px solid #4a3a12;
  background: #1d1808;
  border-radius: 6px;
  padding: 0 5px;
  line-height: 15px;
}

.ghost {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 9px;
  padding: 7px 11px;
  font-size: 12.5px;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.ghost:hover { background: var(--panel-2); border-color: #2f3d4f; }
.ghost:active { transform: translateY(1px); }
button:disabled { opacity: .45; cursor: not-allowed; }

.badge {
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--bad);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
}

/* ---------------- 会话标签 ---------------- */
#tabs {
  display: flex;
  gap: 6px;
  padding: 8px 12px 0;
  overflow-x: auto;
  flex: 0 0 auto;
  scrollbar-width: none;
}
#tabs::-webkit-scrollbar { display: none; }
#tabs:empty { display: none; }
.tab {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 9px 9px 0 0;
  border-bottom: none;
  padding: 7px 13px;
  font-size: 12.5px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .15s, color .15s;
}
.tab:hover { background: var(--panel); color: var(--text); }
.tab.active {
  background: var(--panel-2);
  color: var(--text);
  border-color: #2c3a4d;
}
.tab .badge { height: 16px; line-height: 16px; min-width: 16px; }

/* ---------------- 消息区 ---------------- */
#stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  border-top: 1px solid var(--line);
  margin-top: -1px;
}
#log {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  scroll-behavior: smooth;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
#stage.privacy #log { filter: blur(18px); }
#log::-webkit-scrollbar { width: 8px; }
#log::-webkit-scrollbar-thumb { background: #223041; border-radius: 4px; }

.empty {
  margin: auto;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}
.empty-icon { font-size: 30px; margin-bottom: 8px; opacity: .8; }

.row { display: flex; animation: pop .16s ease-out; }
.row.me { justify-content: flex-end; }
@keyframes pop {
  from { opacity: 0; transform: translateY(4px) scale(.995); }
  to { opacity: 1; transform: none; }
}
.bubble {
  max-width: 80%;
  padding: 8px 12px 6px;
  border-radius: 14px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  overflow-wrap: anywhere;
  min-width: 90px;
}
.row.me .bubble {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  border-bottom-right-radius: 5px;
}
.row.them .bubble { border-bottom-left-radius: 5px; }
.name {
  font-size: 11.5px;
  color: #93a4b8;
  margin-bottom: 2px;
  font-weight: 600;
}
.text { white-space: pre-wrap; word-break: break-word; }
.time {
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 3px;
  text-align: right;
}
.row.me .time { color: rgba(255, 255, 255, .62); }

.sys {
  align-self: center;
  font-size: 11.5px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  max-width: 92%;
  text-align: center;
}
.sys.warn { color: var(--warn); border-color: #4a3a12; background: #1d1808; }

/* 图片 & 文件 */
.bubble.img { padding: 4px 4px 0; background: var(--panel-2); max-width: min(78%, 380px); }
.row.me .bubble.img { background: var(--panel-2); }
.bubble.img canvas.shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 11px;
  background: #0b0f14;
  cursor: zoom-in;
}
.bubble.img .time { padding-right: 6px; }

.bubble.media { padding: 8px 8px 4px; max-width: min(80%, 400px); background: var(--panel-2); }
.bubble.media video {
  display: block;
  width: 100%;
  max-height: 340px;
  border-radius: 10px;
  background: #000;
}
.bubble.media audio { display: block; width: 250px; max-width: 100%; }

.file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 0 2px;
  min-width: 200px;
}
.file .fi {
  width: 34px; height: 34px; flex: 0 0 auto;
  border-radius: 9px;
  background: rgba(255, 255, 255, .1);
  display: grid; place-items: center;
  font-size: 16px;
}
.file .meta { min-width: 0; }
.file .fn {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}
.file .fs { font-size: 11px; opacity: .72; }
.prog {
  margin-top: 6px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .18);
  overflow: hidden;
}
.prog i { display: block; height: 100%; width: 0; background: currentColor; transition: width .12s linear; }
.row.them .prog i { background: var(--accent); }
.dl { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.row.them .dl { color: var(--accent); }

.linkbtn {
  background: none;
  border: none;
  padding: 0;
  font-size: 11px;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.row.me .linkbtn { color: #fff; }

/* ---------------- 水印 & 失焦遮罩 ---------------- */
.wm {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 4;
}
.wm span {
  position: absolute;
  font-size: 11.5px;
  line-height: 1;
  color: rgba(255, 255, 255, .04);
  transform: rotate(-24deg);
  white-space: nowrap;
  letter-spacing: .5px;
}

.privacy-veil {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  background: rgba(11, 15, 20, .35);
  backdrop-filter: blur(2px);
}
.privacy-veil[hidden] { display: none; }
.pv-icon { font-size: 30px; }

/* ---------------- 文本查看器 ---------------- */
.viewer {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(3px);
}
.viewer[hidden] { display: none; }
.viewer-box {
  width: min(680px, 100%);
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
}
.viewer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.viewer-body {
  margin: 0;
  padding: 14px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font: 12.5px/1.7 ui-monospace, Consolas, monospace;
  color: #c9d6e4;
  user-select: none;
  -webkit-user-select: none;
}

/* ---------------- 输入区 ---------------- */
footer {
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--bg);
  flex: 0 0 auto;
}
form#composer { display: flex; gap: 8px; align-items: center; }

.round-ico {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel-2);
  display: grid;
  place-items: center;
  font-size: 17px;
  line-height: 1;
  color: var(--text);
  transition: background .15s, transform .1s;
}
.round-ico:hover { background: #202b38; }
.round-ico:active { transform: scale(.94); }

#input {
  flex: 1 1 auto;
  min-width: 0;
  font: inherit;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 9px 12px;
  outline: none;
  transition: border-color .15s, background .15s;
}
#input::placeholder { color: #5c6b7d; }
#input:focus { border-color: #33507a; background: #1b2531; }

.hold-btn {
  flex: 1 1 auto;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  font-size: 13.5px;
  color: var(--text);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.hold-btn.rec { background: #3b1f22; border-color: #7f2d33; color: #ffb4b4; }
.hold-btn.cancel { background: #33302a; border-color: #6b5b2a; color: #fbbf24; }

/* 拍照 */
.camera {
  position: fixed;
  inset: 0;
  z-index: 78;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(3, 5, 8, .96);
}
.camera[hidden] { display: none; }
.camera-box {
  width: min(560px, 100%);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.camera-box video {
  width: 100%;
  max-height: 68vh;
  object-fit: cover;
  border-radius: 12px;
  background: #000;
  transition: transform .18s;
}
.camera-box video.mirror { transform: scaleX(-1); }
.camera-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cam-flip { min-width: 64px; }
.shutter {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: rgba(255, 255, 255, .18);
  transition: transform .1s, background .15s;
}
.shutter:hover { background: rgba(255, 255, 255, .32); }
.shutter:active { transform: scale(.92); }

.send-btn {
  flex: 0 0 auto;
  height: 38px;
  padding: 0 16px;
  border: none;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 600;
  font-size: 13.5px;
}
.send-btn:hover { filter: brightness(1.08); }
.send-btn[hidden] { display: none; }

/* 附件面板（微信那个 + 弹出来的样子） */
.plus-panel {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 78px;
  max-width: 430px;
  margin: 0 auto;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  animation: pop .16s ease-out;
}
.plus-panel[hidden] { display: none; }
.plus-panel button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
  font-size: 12px;
  color: var(--muted);
}
.plus-panel button:hover { border-color: #3b5a86; color: var(--text); }
.plus-panel .pi { font-size: 22px; line-height: 1; }

/* 语音气泡 */
.bubble.voice { padding: 4px; background: var(--panel-2); }
.voice-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 92px;
  padding: 9px 12px;
  border: none;
  border-radius: 11px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
}
.row.me .voice-btn { color: #fff; }
.voice-btn .vw { font-size: 15px; }
.voice-btn[data-ready="0"] { opacity: .5; }
.voice-btn.playing .vw { animation: vpulse 1s infinite; }
@keyframes vpulse { 50% { opacity: .3; } }

.fineprint {
  margin: 8px 2px 0;
  font-size: 10.5px;
  color: #5c6b7d;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

/* ---------------- 成员抽屉 ---------------- */
.scrim {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(2px);
  z-index: 40;
  animation: fade .15s ease-out;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.drawer[hidden], .scrim[hidden], .toast[hidden] { display: none !important; }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(370px, 88vw);
  background: #0f151d;
  border-left: 1px solid var(--line);
  z-index: 41;
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 10px;
  animation: slide .18s ease-out;
  box-shadow: -20px 0 50px rgba(0, 0, 0, .45);
}
@keyframes slide { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-tip { font-size: 12px; color: var(--muted); line-height: 1.7; }
.member-list { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.member {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
}
.member .av {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #334155, #1e293b);
  font-size: 13px;
  flex: 0 0 auto;
}
.member .nm { flex: 1 1 auto; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member .nm small { display: block; color: var(--muted); font-size: 10.5px; }
.member button { padding: 5px 10px; font-size: 12px; }

/* ---------------- 密码门 ---------------- */
.gate {
  position: fixed; inset: 0;
  background: radial-gradient(1200px 600px at 50% -10%, #16233a 0%, #0b0f14 60%);
  display: none;
  place-items: center;
  z-index: 60;
  padding: 20px;
}
.gate.show { display: grid; }
.gate-card {
  width: min(400px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  animation: pop .2s ease-out;
}
.gate-icon { font-size: 26px; }
.gate-card h2 { margin: 0; font-size: 19px; }
.gate-desc { margin: 0 0 4px; font-size: 12.5px; color: var(--muted); line-height: 1.75; }
.gate-card input {
  font: inherit;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px 13px;
  outline: none;
  letter-spacing: .5px;
}
.gate-card input:focus { border-color: #33507a; box-shadow: 0 0 0 3px rgba(59, 130, 246, .12); }
.gate-err { color: #f87171; font-size: 12px; min-height: 16px; }
.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  border-radius: 11px;
  padding: 11px;
  font-weight: 600;
  font-size: 14.5px;
}
.primary:hover { filter: brightness(1.08); }
.gate-note { margin: 2px 0 0; font-size: 10.5px; color: #5c6b7d; text-align: center; }

/* ---------------- 阅后即焚 ---------------- */
.burn-chip {
  background: none;
  border: none;
  padding: 0;
  font-size: 10.5px;
  color: #5c6b7d;
  cursor: pointer;
  transition: color .15s;
}
.burn-chip:hover { color: var(--muted); }
.burn-chip.on { color: #f59e0b; }

.burn-menu {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 76px;
  max-width: 430px;
  margin: 0 auto;
  z-index: 50;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  animation: pop .16s ease-out;
}
.burn-menu[hidden] { display: none; }
.burn-title { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.burn-opts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.burn-opts button {
  border: 1px solid var(--line);
  background: var(--panel-2);
  border-radius: 9px;
  padding: 9px 0;
  font-size: 12.5px;
}
.burn-opts button:hover { border-color: #3b5a86; }
.burn-opts button.sel { border-color: #f59e0b; color: #fbbf24; }
.burn-custom { display: flex; gap: 8px; margin-top: 10px; }
.burn-custom input {
  flex: 1 1 auto;
  min-width: 0;
  font: inherit;
  font-size: 12.5px;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 10px;
  outline: none;
}
.burn-custom input:focus { border-color: #33507a; }
.burn-note { margin-top: 9px; font-size: 10.5px; color: #5c6b7d; }

.sealed { padding: 6px !important; background: var(--panel) !important; border: 1px dashed #3a4a5f !important; }
.seal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
  min-width: 168px;
  padding: 10px 16px;
  border: 1px solid #2a3a4f;
  border-radius: 11px;
  background: linear-gradient(180deg, #1a2431, #141d28);
  color: var(--text);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.seal:hover { border-color: #3b5a86; background: linear-gradient(180deg, #1d2a3a, #16202c); }
.seal-fire { font-size: 19px; line-height: 1.1; }
.seal-main { font-size: 13px; font-weight: 600; }
.seal-sub { font-size: 11px; color: var(--muted); }

.burn-tag { font-size: 10.5px; color: #f59e0b; margin-right: 5px; }
.burned { opacity: .5; }
.burned-tag { font-size: 12.5px; color: var(--muted); font-style: italic; }

/* ---------------- 图片放大（只在页面内看，不产生可保存的地址） ---------------- */
.img-viewer {
  position: fixed;
  inset: 0;
  z-index: 75;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 2vh 2vw;
  background: rgba(4, 6, 9, .94);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
  animation: fade .14s ease-out;
}
.img-viewer[hidden] { display: none; }
.img-viewer canvas {
  max-width: 96vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  background: #0b0f14;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .7);
}
.img-hint { font-size: 11.5px; color: var(--muted); }

/* ---------------- 发送前预览 ---------------- */
.preview {
  position: fixed;
  inset: 0;
  z-index: 76;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(3, 5, 8, .95);
  backdrop-filter: blur(4px);
}
.preview[hidden] { display: none; }
.preview-box {
  width: min(560px, 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.preview-media {
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 66vh;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}
.preview-media canvas,
.preview-media video {
  display: block;
  max-width: 100%;
  max-height: 66vh;
  width: auto;
  height: auto;
  border-radius: 12px;
}
.preview-media .file {
  padding: 18px;
  background: var(--panel-2);
  border-radius: 12px;
  width: 100%;
}
.preview-meta {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  word-break: break-all;
}
.preview-actions { display: flex; gap: 10px; }
.preview-actions button { flex: 1 1 0; padding: 11px 0; }
.preview-actions .ghost { justify-content: center; border-radius: 11px; }
.preview-actions .primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border: none; border-radius: 11px; font-weight: 600; }

/* ---------------- Toast ---------------- */.toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%);
  background: #1f2937;
  border: 1px solid #2f3d4f;
  color: var(--text);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  z-index: 80;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  animation: pop .18s ease-out;
  max-width: 86vw;
  text-align: center;
}

@media (max-width: 520px) {
  header { padding: calc(10px + env(safe-area-inset-top)) 12px 10px; gap: 8px; }
  .title h1 { font-size: 13px; }
  #btnMembers span:first-child { display: none; }
  #btnMembers::before { content: "👥"; font-size: 14px; }
  #btnCopy { padding: 7px 9px; font-size: 12px; }
  #log { padding: 12px; }
  .bubble { max-width: 86%; }

  /* iOS 上输入框字号 < 16px 会触发自动放大 */
  #input { font-size: 16px; }
  .round-ico { width: 40px; height: 40px; font-size: 18px; }
  .hold-btn, .send-btn { height: 40px; }
  .camera { padding: 0; }
  .camera-box { width: 100%; gap: 0; }
  .camera-box video { max-height: 74vh; border-radius: 0; }
  .camera-bar {
    padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
    background: rgba(0, 0, 0, .5);
  }
  .shutter { width: 64px; height: 64px; }
}
