/* ============================================================
   Design tokens
   ============================================================ */
:root {
  --bg-page: #04060b;
  --bg-shell: #0b0f1a;
  --panel: rgba(255, 255, 255, 0.07);
  --panel-border: rgba(255, 255, 255, 0.12);
  --panel-strong: rgba(15, 18, 30, 0.55);

  --text-0: rgba(255, 255, 255, 0.95);
  --text-1: rgba(255, 255, 255, 0.64);
  --text-2: rgba(255, 255, 255, 0.4);

  --accent: #6c7bff;       /* periwinkle — speaking / brand */
  --accent-soft: rgba(108, 123, 255, 0.38);
  --rec: #ff5b6a;          /* coral-red — listening / hang up */
  --rec-soft: rgba(255, 91, 106, 0.4);
  --ok: #35d68f;

  --radius-lg: 34px;
  --radius-md: 20px;
  --radius-sm: 12px;

  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, "PingFang TC", "Noto Sans TC", "Helvetica Neue", Arial, sans-serif;

  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  background: var(--bg-page);
  color: var(--text-0);
  font-family: var(--font-ui);
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  background:
    radial-gradient(120% 90% at 50% -10%, #14192b 0%, transparent 60%),
    var(--bg-page);
}

button {
  font-family: inherit;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

img { -webkit-user-drag: none; user-select: none; }

/* ============================================================
   Phone shell — fills the viewport on a real device / installed PWA,
   shows as a centered phone mockup on wider desktop viewports.
   ============================================================ */
.phone-shell {
  position: relative;
  width: 100%;
  height: 100dvh;
  max-width: 430px;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg-shell);
  overflow: hidden;
  isolation: isolate;
}

@media (min-width: 480px) and (min-height: 760px) {
  .phone-shell {
    max-height: 900px;
    height: 92dvh;
    border-radius: 44px;
    box-shadow:
      0 0 0 10px #0d0f14,
      0 0 0 12px #232733,
      0 40px 80px -20px rgba(0, 0, 0, 0.7);
  }
}

/* ============================================================
   Status bar
   ============================================================ */
.status-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(10px + var(--safe-t)) 24px 6px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--text-0);
  z-index: 5;
}
.status-bar__glyphs { display: flex; align-items: center; gap: 6px; }
.glyph { width: 18px; height: 11px; color: var(--text-0); }
.glyph--wifi { width: 15px; height: 11px; }
.glyph--battery { width: 23px; height: 11px; }

/* ============================================================
   Call screen
   ============================================================ */
.call-screen {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 10px 18px calc(16px + var(--safe-b));
  overflow: hidden;
}

.call-screen__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  z-index: 0;
  transition: transform 0.12s ease-out;
  will-change: transform;
}

.scrim {
  position: absolute;
  left: 0; right: 0;
  z-index: 1;
  pointer-events: none;
}
.scrim--top {
  top: 0; height: 34%;
  background: linear-gradient(to bottom, rgba(4,6,11,0.75), transparent);
}
.scrim--bottom {
  bottom: 0; height: 46%;
  background: linear-gradient(to top, rgba(4,6,11,0.85), transparent);
}

/* Dialing overlay */
.dialing {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--bg-shell);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.dialing.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.dialing__avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px var(--panel-border);
  animation: dialing-pulse 1.6s ease-in-out infinite;
}
.dialing__status {
  margin: 0;
  color: var(--text-1);
  font-size: 15px;
  letter-spacing: 0.5px;
}
@keyframes dialing-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.06); opacity: 0.75; }
}

/* Contact header */
.call-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: auto;
  padding-top: 4px;
}
.call-header__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--panel-border);
  transition: transform 0.09s ease-out, box-shadow 0.2s ease;
  will-change: transform;
}
.call-header__info { display: flex; flex-direction: column; gap: 2px; }
.call-header__name { margin: 0; font-size: 17px; font-weight: 700; }
.call-header__status {
  margin: 0;
  font-size: 13px;
  color: var(--text-1);
  font-variant-numeric: tabular-nums;
}

/* Reply / state label */
.reply-label {
  position: relative;
  z-index: 2;
  margin: 0 auto 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-1);
  min-height: 18px;
  transition: color 0.25s ease;
}
.reply-label.is-listening { color: var(--rec); }
.reply-label.is-speaking { color: var(--accent); }
.reply-label.is-warning { color: #ffcc66; }

/* Controls row */
.call-controls {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.side-btn {
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 60px;
  padding: 10px 0 8px;
  border-radius: var(--radius-sm);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.2s ease, transform 0.15s ease;
}
.side-btn:active { transform: scale(0.94); }
.side-btn[aria-pressed="false"] { background: var(--panel); }
.side-btn.is-off { background: rgba(255, 91, 106, 0.16); border-color: rgba(255,91,106,0.35); }
.side-btn__icon { width: 20px; height: 20px; color: var(--text-0); }
.side-btn.is-off .side-btn__icon { color: var(--rec); }
.side-btn__label { font-size: 10.5px; color: var(--text-1); }

/* Talk (push-to-talk) button — signature element */
.talk-btn-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.talk-rings {
  position: absolute;
  top: 0; left: 50%;
  width: 88px; height: 88px;
  transform: translate(-50%, 0);
  pointer-events: none;
}
.ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--accent-soft);
  opacity: 0;
}
.talk-btn-wrap.is-idle .talk-rings .ring--1 {
  opacity: 1;
  animation: breathe 2.6s ease-in-out infinite;
}
.talk-btn-wrap.is-listening .talk-rings .ring--1,
.talk-btn-wrap.is-listening .talk-rings .ring--2 {
  border-color: var(--rec-soft);
  animation: pulse-ring 1.15s ease-out infinite;
}
.talk-btn-wrap.is-listening .talk-rings .ring--2 { animation-delay: 0.4s; }
.talk-btn-wrap.is-speaking .talk-rings .ring--1,
.talk-btn-wrap.is-speaking .talk-rings .ring--2 {
  border-color: var(--accent-soft);
  animation: pulse-ring 1.15s ease-out infinite;
}
.talk-btn-wrap.is-speaking .talk-rings .ring--2 { animation-delay: 0.4s; }

@keyframes breathe {
  0%, 100% { transform: scale(0.86); opacity: 0.55; }
  50% { transform: scale(1.04); opacity: 1; }
}
@keyframes pulse-ring {
  0% { transform: scale(0.7); opacity: 0.9; }
  100% { transform: scale(1.55); opacity: 0; }
}

.talk-btn {
  position: relative;
  width: 88px; height: 88px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 10px 24px -6px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255,255,255,0.06);
  transition: background 0.2s ease, transform 0.12s ease, box-shadow 0.2s ease;
}
.talk-btn:active { transform: scale(0.96); }
.talk-btn__mic {
  width: 30px; height: 30px;
  color: #12141c;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.talk-btn__bars {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.talk-btn__bars span {
  width: 4px;
  height: 8px;
  border-radius: 3px;
  background: #12141c;
  transform-origin: center;
  transition: height 0.09s ease;
}

.talk-btn-wrap.is-listening .talk-btn,
.talk-btn-wrap.is-speaking .talk-btn {
  background: #ffffff;
}
.talk-btn-wrap.is-listening .talk-btn__mic,
.talk-btn-wrap.is-speaking .talk-btn__mic {
  opacity: 0;
  transform: scale(0.7);
}
.talk-btn-wrap.is-listening .talk-btn__bars,
.talk-btn-wrap.is-speaking .talk-btn__bars {
  opacity: 1;
  transform: scale(1);
}
.talk-btn-wrap.is-listening .talk-btn__bars span { background: var(--rec); }
.talk-btn-wrap.is-speaking .talk-btn__bars span { background: var(--accent); }

.talk-btn-wrap.is-thinking .talk-btn__mic { opacity: 0.25; }
.talk-btn-wrap.is-thinking .talk-btn { animation: think-tilt 1s ease-in-out infinite; }
@keyframes think-tilt {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.97); }
}

.talk-btn-wrap.is-disabled .talk-btn {
  background: rgba(255,255,255,0.35);
  box-shadow: none;
}
.talk-btn-wrap.is-disabled .talk-btn__mic { color: rgba(18,20,28,0.4); }

.talk-hint {
  margin: 0;
  font-size: 11.5px;
  color: var(--text-2);
  letter-spacing: 0.3px;
}

/* End call */
.end-call {
  position: relative;
  z-index: 2;
  align-self: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--rec);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px -6px rgba(255, 91, 106, 0.55);
  transition: transform 0.12s ease;
}
.end-call:active { transform: scale(0.92); }
.end-call__icon { width: 24px; height: 24px; color: #fff; }

/* Toast */
.toast {
  position: absolute;
  left: 50%;
  bottom: calc(96px + var(--safe-b));
  transform: translate(-50%, 8px);
  z-index: 20;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(20, 22, 32, 0.92);
  border: 1px solid var(--panel-border);
  color: var(--text-0);
  font-size: 12.5px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ============================================================
   Bottom tab bar (app chrome)
   ============================================================ */
.tab-bar {
  position: relative;
  z-index: 4;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(11, 15, 26, 0.94);
  border-top: 1px solid var(--panel-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 8px 4px calc(8px + var(--safe-b));
}
.tab-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px 0;
  color: var(--text-2);
  font-size: 10.5px;
  transition: color 0.2s ease;
}
.tab-bar__icon { width: 22px; height: 22px; }
.tab-bar__item.is-active { color: var(--accent); }
.tab-bar__item:active { opacity: 0.7; }

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .dialing__avatar,
  .ring,
  .talk-btn-wrap.is-thinking .talk-btn {
    animation: none !important;
  }
}

/* ============================================================
   boss — 老闆信箱新增樣式
   ============================================================ */

/* 管理按鈕（通話標頭右側） */
.manage-btn {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  color: var(--text-1);
  font-size: 12px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.manage-btn:active { transform: scale(0.95); }
.manage-btn__icon { width: 15px; height: 15px; }

/* 留言資訊卡（身份 / 類型 / 稱呼） */
.meta-card {
  position: relative;
  z-index: 2;
  background: var(--panel-strong);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.meta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.seg {
  display: flex;
  gap: 6px;
  flex: 1 1 auto;
}
.seg-btn {
  flex: 1 1 auto;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--text-1);
  background: rgba(255,255,255,0.06);
  border: 1px solid transparent;
  white-space: nowrap;
}
.seg-btn.is-on {
  color: #fff;
  background: rgba(108,123,255,0.28);
  border-color: rgba(108,123,255,0.55);
}
.meta-name {
  width: 100%;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--panel-border);
  background: rgba(255,255,255,0.06);
  color: var(--text-0);
  font-size: 13px;
  font-family: inherit;
}
.meta-name::placeholder { color: var(--text-2); }
.meta-name:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

/* 錄音紅點 */
.rec-dot {
  position: absolute;
  top: -4px;
  right: calc(50% - 52px);
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--rec);
  opacity: 0;
  box-shadow: 0 0 10px var(--rec);
}
.rec-dot.is-on { opacity: 1; animation: blink 1s ease-in-out infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* 已送出資訊 */
.sent-info { position: relative; z-index: 2; text-align: center; }
.sent-info__count { margin: 0; font-size: 12px; color: var(--text-1); }
.sent-info__last { margin: 3px 0 0; font-size: 11.5px; color: var(--text-2); min-height: 14px; }

/* 視圖切換 */
.is-hidden-view { display: none !important; }

/* ---------------- 管理畫面 ---------------- */
.admin-screen {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #101425 0%, var(--bg-shell) 30%);
  overflow: hidden;
}
.admin-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--panel-border);
}
.admin-back {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  font-size: 20px;
  line-height: 1;
  color: var(--text-0);
}
.admin-header__info { flex: 1 1 auto; }
.admin-header__title { margin: 0; font-size: 16px; }
.admin-header__sub { margin: 2px 0 0; font-size: 12px; color: var(--text-1); }
.admin-logout {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-1);
  background: var(--panel);
  border: 1px solid var(--panel-border);
}
.admin-toolbar {
  padding: 10px 14px;
  border-bottom: 1px solid var(--panel-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.admin-filters { display: flex; gap: 8px; }
.admin-filters select,
.admin-filters input {
  font-family: inherit;
  font-size: 12.5px;
  color: var(--text-0);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 7px 9px;
}
.admin-filters select { flex: 0 0 auto; max-width: 96px; }
.admin-filters select option { color: #111; }
.admin-filters input { flex: 1 1 auto; min-width: 0; }
.retry-btn {
  align-self: flex-start;
  font-size: 12px;
  color: var(--accent);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(108,123,255,0.4);
  background: rgba(108,123,255,0.12);
}

.msg-list {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 12px 14px calc(16px + var(--safe-b));
  display: flex;
  flex-direction: column;
  gap: 12px;
  -webkit-overflow-scrolling: touch;
}
.empty-state { text-align: center; padding: 34px 20px; color: var(--text-1); }
.empty-state__big { font-size: 15px; margin: 0 0 6px; color: var(--text-0); }
.empty-state__small { font-size: 12.5px; margin: 0; line-height: 1.7; }

.msg-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 12px;
}
.msg-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.msg-card__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--panel-border);
  color: var(--text-1);
}
.tag--role { color: #fff; border-color: rgba(108,123,255,0.5); background: rgba(108,123,255,0.2); }
.tag--topic-抱怨 { color: #ffb3bb; border-color: rgba(255,91,106,0.45); background: rgba(255,91,106,0.14); }
.tag--topic-提案 { color: #9be8c3; border-color: rgba(53,214,143,0.4); background: rgba(53,214,143,0.12); }
.badge { font-size: 11px; color: var(--text-2); white-space: nowrap; }
.badge--ok { color: var(--ok); }
.badge--warn { color: #ffcc66; }
.msg-card__meta { margin: 8px 0; font-size: 12px; color: var(--text-1); }
.msg-card__audio { width: 100%; height: 36px; }
.msg-card__noaudio { font-size: 12px; color: #ffcc66; }
.msg-card__label { display: block; margin: 10px 0 5px; font-size: 12px; color: var(--text-1); }
.msg-card__text {
  width: 100%;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-0);
  background: rgba(0,0,0,0.28);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 8px 10px;
  resize: vertical;
}
.msg-card__text:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.msg-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip-btn {
  font-size: 12.5px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--panel-border);
  color: var(--text-0);
}
.chip-btn:active { transform: scale(0.95); }
.chip-btn:disabled { opacity: 0.5; }
.chip-btn--primary { background: rgba(108,123,255,0.28); border-color: rgba(108,123,255,0.55); }
.chip-btn--danger { color: #ffb3bb; border-color: rgba(255,91,106,0.4); }

/* ---------------- 客製化彈窗（密碼 / 轉發共用） ---------------- */
.modal {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(3, 5, 10, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal-card {
  width: 100%;
  max-width: 330px;
  max-height: 92%;
  overflow-y: auto;
  background: #151a2c;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 22px;
  padding: 22px 20px 18px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
  transform: translateY(10px) scale(0.98);
  transition: transform 0.22s ease;
}
.modal.is-open .modal-card { transform: none; }
.modal-card--wide { max-width: 360px; text-align: left; }
.modal-card.shake { animation: shake 0.35s ease; }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-7px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-4px); }
}
.modal-avatar {
  width: 56px; height: 56px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(108,123,255,0.16);
  border: 1px solid rgba(108,123,255,0.45);
  color: var(--accent);
}
.modal-avatar svg { width: 26px; height: 26px; }
.modal-title { margin: 0; font-size: 17px; }
.modal-sub { margin: 6px 0 12px; font-size: 12.5px; color: var(--text-1); }
.modal-card--wide .modal-title,
.modal-card--wide .modal-sub { text-align: center; }
.modal-input {
  width: 100%;
  padding: 11px 13px;
  font-size: 15px;
  font-family: inherit;
  text-align: center;
  letter-spacing: 2px;
  color: var(--text-0);
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
}
.modal-card--wide .modal-input { text-align: left; letter-spacing: normal; font-size: 13.5px; }
.modal-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.modal-err { min-height: 18px; margin: 8px 0 0; font-size: 12.5px; color: #ff8f9c; }
.modal-actions { display: flex; gap: 8px; margin-top: 10px; }
.modal-btn {
  flex: 1 1 auto;
  padding: 11px 8px;
  border-radius: 12px;
  font-size: 13.5px;
  white-space: nowrap;
}
.modal-btn--primary { background: var(--accent); color: #fff; font-weight: 700; }
.modal-btn--primary:active { transform: scale(0.97); }
.modal-btn--ghost { background: rgba(255,255,255,0.08); border: 1px solid var(--panel-border); color: var(--text-0); }
.modal-btn--soft { background: rgba(53,214,143,0.15); border: 1px solid rgba(53,214,143,0.4); color: #9be8c3; }
.modal-hint { margin: 12px 0 0; font-size: 11px; color: var(--text-2); line-height: 1.6; }
.fwd-label { display: block; margin: 10px 0 5px; font-size: 12.5px; color: var(--text-1); }
.modal-textarea {
  width: 100%;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-0);
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 10px 12px;
  resize: vertical;
}
.modal-textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

/* 通話畫面在小高度裝置上避免擠壓 */
@media (max-height: 700px) {
  .call-screen { gap: 10px; }
  .meta-card { padding: 8px 10px; }
  .talk-btn { width: 76px; height: 76px; }
  .talk-rings { width: 76px; height: 76px; }
  .end-call { width: 48px; height: 48px; }
}
