@import url('https://fonts.loli.net/css2?family=Noto+Sans+SC:wght@400;500;600;700&family=Noto+Serif+SC:wght@600;700&display=swap');

:root {
  --ink: #14242a;
  --muted: #6b7c84;
  --line: rgba(20, 36, 42, .08);
  --surface: #ffffff;
  --bg: #e9eef1;
  --bg-soft: #f3f6f8;
  --chat-bg: #e4ecee;
  --primary: #1f6f78;
  --primary-2: #2a8a94;
  --primary-soft: #d4ebee;
  --accent: #c47a3a;
  --danger: #c94a4a;
  --bubble-me: #c8e6e3;
  --bubble-you: #ffffff;
  --bar: rgba(255, 255, 255, .86);
  --shadow: 0 10px 28px rgba(20, 36, 42, .08);
  --radius: 14px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --tab-h: 58px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Noto Serif SC", "Songti SC", serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #c5dde0 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #d7e4ea 0%, transparent 50%),
    linear-gradient(165deg, #1a3a42 0%, #243f48 40%, #1c333a 100%);
  overflow: hidden;
}
#app {
  height: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 30px 80px rgba(0,0,0,.35);
  overflow: hidden;
}
.boot {
  text-align: center; padding-top: 42vh; color: var(--muted);
  font-family: var(--display); letter-spacing: .12em;
}

/* —— Auth —— */
.auth-screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: calc(36px + var(--safe-t)) 28px 28px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% -5%, rgba(42, 138, 148, .22), transparent 60%),
    linear-gradient(180deg, #f7fafb 0%, #eef4f5 55%, #e6eef0 100%);
}
.auth-screen::before {
  content: "";
  position: absolute; inset: auto -20% -30% -20%; height: 45%;
  background: radial-gradient(ellipse at center, rgba(31, 111, 120, .12), transparent 70%);
  pointer-events: none;
  animation: drift 12s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translateX(-4%); }
  to { transform: translateX(4%); }
}
.brand-mark {
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(145deg, #2a8a94, #1a5c64);
  display: grid; place-items: center;
  margin-bottom: 18px;
  box-shadow: 0 12px 28px rgba(31, 111, 120, .28);
  animation: rise .7s ease both;
}
.brand-mark svg { width: 28px; height: 28px; }
.auth-screen h1 {
  font-family: var(--display);
  font-size: 36px; font-weight: 700; margin: 0 0 6px;
  letter-spacing: .08em;
  animation: rise .7s .08s ease both;
}
.auth-screen .sys {
  font-size: 12px; color: var(--primary); letter-spacing: .06em;
  margin: 0 0 14px; animation: rise .7s .12s ease both;
}
.auth-screen .sub {
  color: var(--muted); font-size: 14px; line-height: 1.7;
  margin: 0 0 28px; max-width: 28em;
  animation: rise .7s .16s ease both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.auth-tabs { display: flex; gap: 22px; margin-bottom: 18px; }
.auth-tabs button {
  border: 0; background: none; font-size: 16px; color: var(--muted);
  padding: 0 0 8px; cursor: pointer; border-bottom: 2px solid transparent;
  font-family: inherit;
}
.auth-tabs button.on {
  color: var(--ink); border-bottom-color: var(--primary); font-weight: 600;
}
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; letter-spacing: .04em; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; font: inherit; background: rgba(255,255,255,.9); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: rgba(31, 111, 120, .45);
  box-shadow: 0 0 0 3px rgba(31, 111, 120, .12);
}
.field textarea { min-height: 90px; resize: vertical; }
.btn-green {
  width: 100%; border: 0;
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  color: #fff; padding: 13px; border-radius: 12px; font-size: 16px;
  margin-top: 18px; cursor: pointer; font-family: inherit; font-weight: 600;
  letter-spacing: .04em;
  box-shadow: 0 10px 24px rgba(31, 111, 120, .28);
  transition: transform .15s, filter .15s;
}
.btn-green:active { transform: scale(.98); }
.btn-green:disabled { opacity: .5; }
.err-tip { color: var(--danger); font-size: 13px; min-height: 18px; margin-top: 10px; }

/* —— Shell —— */
.wx-app { height: 100%; display: flex; flex-direction: column; background: var(--bg); }
.wx-nav {
  flex-shrink: 0;
  height: calc(52px + var(--safe-t));
  padding: var(--safe-t) 14px 0;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bar);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.wx-nav .title {
  font-family: var(--display);
  font-size: 18px; font-weight: 700; flex: 1; text-align: center;
  letter-spacing: .06em;
}
.wx-nav .side { width: 72px; display: flex; gap: 2px; align-items: center; }
.wx-nav .side.right { justify-content: flex-end; }
.wx-nav button {
  border: 0; background: transparent; font-size: 15px; color: var(--ink);
  cursor: pointer; padding: 8px; font-family: inherit;
}
.wx-body { flex: 1; min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch; }
.wx-tabbar {
  flex-shrink: 0;
  height: calc(var(--tab-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.wx-tabbar button {
  border: 0; background: transparent; font-size: 10px; color: var(--muted);
  cursor: pointer; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 4px; font-family: inherit; position: relative;
}
.wx-tabbar button.on { color: var(--primary); font-weight: 600; }
.wx-tabbar button.on::before {
  content: "";
  position: absolute; top: 6px; width: 18px; height: 2px; border-radius: 2px;
  background: var(--primary);
  animation: tabin .25s ease;
}
@keyframes tabin { from { width: 0; opacity: 0; } to { width: 18px; opacity: 1; } }
.wx-tabbar .ico {
  width: 22px; height: 22px; display: block;
  background: currentColor;
  mask-size: contain; -webkit-mask-size: contain;
  mask-repeat: no-repeat; -webkit-mask-repeat: no-repeat;
  mask-position: center; -webkit-mask-position: center;
}
.wx-tabbar .ico.i-msg {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 6h16v10H8l-4 3V6z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 6h16v10H8l-4 3V6z'/%3E%3C/svg%3E");
}
.wx-tabbar .ico.i-book {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M6 4h10a2 2 0 012 2v14l-6-3-6 3V6a2 2 0 012-2z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M6 4h10a2 2 0 012 2v14l-6-3-6 3V6a2 2 0 012-2z'/%3E%3C/svg%3E");
}
.wx-tabbar .ico.i-disc {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}
.wx-tabbar .ico.i-me {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='3.5'/%3E%3Cpath d='M5 19c1.5-3.5 4-5 7-5s5.5 1.5 7 5'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='3.5'/%3E%3Cpath d='M5 19c1.5-3.5 4-5 7-5s5.5 1.5 7 5'/%3E%3C/svg%3E");
}

.sess-item {
  display: flex; gap: 12px; align-items: center; padding: 14px 16px;
  background: var(--surface); border-bottom: 1px solid var(--line); cursor: pointer;
  transition: background .15s;
}
.sess-item:active { background: var(--bg-soft); }
.av {
  width: 48px; height: 48px; border-radius: 14px; object-fit: cover; background: var(--primary-soft);
  flex-shrink: 0; display: grid; place-items: center; color: var(--primary); font-size: 18px; overflow: hidden;
  font-family: var(--display); font-weight: 700;
}
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sess-meta { flex: 1; min-width: 0; }
.sess-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sess-name { font-size: 16px; font-weight: 600; }
.sess-time { font-size: 12px; color: #9aabB2; flex-shrink: 0; }
.sess-bottom { display: flex; justify-content: space-between; margin-top: 4px; gap: 8px; }
.sess-msg { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--danger); color: #fff; font-size: 11px; line-height: 18px; text-align: center;
}
.tag-ai {
  display: inline-block; font-size: 10px; color: var(--primary);
  background: var(--primary-soft); border-radius: 4px; padding: 1px 6px;
  margin-left: 6px; vertical-align: middle; font-weight: 500;
}

.section-title { padding: 10px 16px; font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.cell {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: var(--surface); border-bottom: 1px solid var(--line); cursor: pointer;
}
.cell:active { background: var(--bg-soft); }
.cell .label { flex: 1; font-size: 16px; }
.cell .arrow { color: #c5d0d4; }
.cell.green .ico-box { background: var(--primary); color: #fff; }
.ico-box {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); font-size: 16px; flex-shrink: 0;
  font-weight: 700;
}

.chat-page {
  height: 100%; display: flex; flex-direction: column;
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(31,111,120,.08), transparent 60%),
    var(--chat-bg);
}
.msgs {
  flex: 1; overflow: auto; padding: 14px 12px 8px; -webkit-overflow-scrolling: touch;
}
.msg-row { display: flex; gap: 8px; margin-bottom: 14px; align-items: flex-start; animation: rise .35s ease both; }
.msg-row.me { flex-direction: row-reverse; }
.bubble {
  max-width: 72%; padding: 10px 13px; border-radius: 16px; font-size: 15px;
  line-height: 1.55; white-space: pre-wrap; word-break: break-word;
  min-width: 36px; color: var(--ink);
  box-shadow: 0 1px 2px rgba(20,36,42,.04);
}
.msg-row.you .bubble {
  background: var(--bubble-you);
  border-top-left-radius: 4px;
}
.msg-row.me .bubble {
  background: var(--bubble-me);
  border-top-right-radius: 4px;
}
.msg-row .av {
  width: 40px; height: 40px; border-radius: 12px; font-size: 14px;
  flex-shrink: 0;
}
.chat-tip {
  margin: 8px 12px; padding: 10px 12px;
  background: linear-gradient(135deg, #fff8ef, #fff3e0);
  color: #8a5a20; border: 1px solid rgba(196, 122, 58, .2);
  border-radius: 12px; font-size: 12px; line-height: 1.55;
}
.composer {
  display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px calc(10px + var(--safe-b));
  background: rgba(255,255,255,.92); border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.composer input {
  flex: 1; border: 1px solid var(--line); background: #fff; border-radius: 12px;
  padding: 10px 12px; font: inherit; outline: none; min-height: 42px;
}
.composer .send {
  border: 0; background: var(--primary); color: #fff; border-radius: 12px;
  padding: 0 16px; height: 42px; cursor: pointer; font-size: 15px; font-weight: 600;
}
.composer .tool {
  border: 0; background: transparent; width: 36px; height: 42px; font-size: 20px; cursor: pointer;
}
.me-head {
  background:
    linear-gradient(135deg, rgba(31,111,120,.12), transparent 55%),
    var(--surface);
  padding: 28px 16px 22px; display: flex; gap: 14px; align-items: center;
  margin-bottom: 10px; border-bottom: 1px solid var(--line);
}
.me-head .av { width: 68px; height: 68px; border-radius: 18px; }
.me-name { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: .04em; }
.me-id { font-size: 13px; color: var(--muted); margin-top: 6px; }
.call-page {
  height: 100%; background: #0d181b; color: #fff;
  display: flex; flex-direction: column;
}
.call-main {
  flex: 1; position: relative; display: grid; place-items: center; overflow: hidden;
}
.call-stage {
  position: absolute; inset: 0;
}
.call-photo {
  width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0;
  filter: brightness(.82) saturate(1.05);
  transition: filter .3s, transform .35s ease;
  transform: scale(1.02);
}
.call-photo-fallback {
  display: grid; place-items: center; background: #24353a;
  font-size: 96px; font-family: var(--display); color: #9fd4c8;
}
.call-photo.talking {
  filter: brightness(1.05) saturate(1.15);
  transform: scale(1.05);
  animation: talkPulse 1.2s ease-in-out infinite;
}
.digital-video {
  display: none;
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 2;
  background: #000;
}
@keyframes talkPulse {
  0%, 100% { filter: brightness(1.02) saturate(1.1); }
  50% { filter: brightness(1.12) saturate(1.2); }
}
.face-glow {
  position: absolute; inset: 18% 12% 28%; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(42,138,148,.18), transparent 70%);
  opacity: 0; transition: opacity .25s; pointer-events: none; z-index: 1;
}
.face-glow.on { opacity: 1; animation: glowPulse 1.1s ease-in-out infinite; }
@keyframes glowPulse {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}
.speak-wave {
  position: absolute; left: 50%; bottom: 34%; transform: translateX(-50%);
  display: none; gap: 4px; align-items: flex-end; height: 22px; z-index: 3;
}
.speak-wave.on { display: flex; }
.speak-wave i {
  width: 4px; border-radius: 2px; background: rgba(255,255,255,.85);
  animation: bar 0.55s ease-in-out infinite alternate;
}
.speak-wave i:nth-child(1) { height: 8px; animation-delay: 0s; }
.speak-wave i:nth-child(2) { height: 14px; animation-delay: .08s; }
.speak-wave i:nth-child(3) { height: 20px; animation-delay: .16s; }
.speak-wave i:nth-child(4) { height: 12px; animation-delay: .24s; }
.speak-wave i:nth-child(5) { height: 7px; animation-delay: .32s; }
@keyframes bar {
  from { transform: scaleY(.45); opacity: .55; }
  to { transform: scaleY(1); opacity: 1; }
}
.local-pip {
  display: none;
  position: absolute; right: 14px; top: calc(14px + var(--safe-t));
  width: 108px; height: 144px; object-fit: cover;
  border-radius: 14px; border: 1px solid rgba(255,255,255,.35);
  background: #000; z-index: 5; transform: scaleX(-1);
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
}
.call-center {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; text-align: center;
  padding: 28px 16px 18px;
  background: linear-gradient(transparent, rgba(8, 16, 18, .88));
}
.call-name { font-family: var(--display); font-size: 28px; font-weight: 700; letter-spacing: .06em; }
.call-status { opacity: .85; margin-top: 8px; font-size: 14px; }
.call-caption {
  margin-top: 12px; font-size: 15px; line-height: 1.55; min-height: 44px;
  opacity: .95; max-height: 120px; overflow: auto; padding: 0 8px;
}
.call-hint {
  margin-top: 8px; font-size: 11px; opacity: .55; line-height: 1.5; padding: 0 12px;
}
.call-answer-bar {
  padding: 16px 20px calc(20px + var(--safe-b));
  background: #0d181b; text-align: center;
}
.call-answer {
  width: min(280px, 80%); border: 0; border-radius: 999px;
  padding: 14px 20px; font-size: 17px; font-weight: 700; font-family: inherit;
  color: #fff; cursor: pointer;
  background: linear-gradient(135deg, #2a8a94, #1f6f78);
  box-shadow: 0 12px 28px rgba(31,111,120,.35);
}
.call-input-bar {
  display: flex; gap: 8px; padding: 10px 12px;
  background: #152428; border-top: 1px solid rgba(255,255,255,.08); align-items: center;
}
.call-input-bar input {
  flex: 1; border: 0; border-radius: 12px; padding: 10px 12px; font: inherit;
  background: #24353a; color: #fff; outline: none;
}
.call-input-bar button {
  border: 0; border-radius: 12px; padding: 0 14px; height: 40px;
  background: var(--primary); color: #fff; font: inherit; cursor: pointer;
}
.call-input-bar .mic-btn {
  flex-shrink: 0; min-width: 88px; background: #2a3c42; font-size: 13px;
}
.call-input-bar .mic-btn.on {
  background: #c94a4a; animation: micPulse .8s ease-in-out infinite;
}
@keyframes micPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
.call-bar {
  display: flex; justify-content: space-around; align-items: center;
  padding: 18px 20px calc(26px + var(--safe-b)); background: #0a1417;
}
.call-btn {
  width: 64px; height: 64px; border-radius: 50%; border: 0; color: #fff;
  font-size: 12px; cursor: pointer; background: #2a3c42;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.call-btn .big { font-size: 18px; }
.call-btn.mute.on, .call-btn.cam.on { background: #fff; color: #122024; }
.call-btn.hang { background: var(--danger); width: 70px; height: 70px; }

.mouth-wrap { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.mouth {
  position: absolute; left: 50%; top: 58%; width: 16%; height: 5.5%;
  transform: translate(-50%, -50%) scaleY(.35);
  background: radial-gradient(ellipse at center, rgba(90, 28, 28, .7), transparent 72%);
  border-radius: 50%; opacity: 0; transition: opacity .08s linear;
}
.mouth.on { opacity: 1; }

.empty {
  text-align: center; color: var(--muted); padding: 72px 24px; line-height: 1.8; font-size: 14px;
}
.notice { font-size: 12px; color: var(--muted); line-height: 1.6; padding: 12px 16px; }
.pkg {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; background: var(--surface); border-bottom: 1px solid var(--line);
}
.pay-ways { display: flex; gap: 10px; padding: 12px 16px; background: var(--surface); margin-bottom: 8px; }
.pay-ways button {
  flex: 1; border: 1px solid var(--line); background: #fff; border-radius: 12px;
  padding: 11px; cursor: pointer; font-family: inherit;
}
.pay-ways button.on {
  border-color: var(--primary); color: var(--primary); background: var(--primary-soft); font-weight: 600;
}
.mini-btn {
  border: 0; background: var(--primary); color: #fff; border-radius: 8px;
  padding: 7px 14px; font-size: 13px; cursor: pointer; font-family: inherit;
}
.mini-btn.gray { background: #e4eaec; color: var(--ink); }
.form-page { background: var(--surface); min-height: 100%; padding: 12px 16px 40px; }
.preview {
  width: 88px; height: 88px; border-radius: 16px; object-fit: cover; background: var(--primary-soft); margin-bottom: 10px;
}
.action-sheet-mask {
  position: absolute; inset: 0; background: rgba(12, 24, 28, .48); z-index: 50;
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadein .2s ease;
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.action-sheet {
  width: 100%; background: var(--bg-soft); border-radius: 18px 18px 0 0;
  padding-bottom: var(--safe-b); overflow: hidden;
  animation: sheetup .28s ease;
}
@keyframes sheetup { from { transform: translateY(24px); } to { transform: none; } }
.action-sheet button {
  display: block; width: 100%; border: 0; background: var(--surface); padding: 16px;
  font-size: 16px; border-bottom: 1px solid var(--line); cursor: pointer; font-family: inherit;
}
.action-sheet .cancel { margin-top: 8px; color: var(--ink); font-weight: 600; }

.moment-item { background: var(--surface); padding: 14px 16px; border-bottom: 1px solid var(--line); }
.moment-user { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.moment-user .av { width: 40px; height: 40px; border-radius: 12px; }
.moment-text { font-size: 15px; line-height: 1.55; white-space: pre-wrap; }
.moment-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 8px; }
.moment-imgs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.moment-actions { display: flex; gap: 16px; margin-top: 10px; color: var(--primary); font-size: 13px; }
.moment-actions button { border: 0; background: none; color: var(--primary); cursor: pointer; font: inherit; }
.moment-comments {
  background: var(--bg-soft); margin-top: 8px; padding: 8px 10px; border-radius: 8px; font-size: 13px;
}
.moment-comments div { margin: 4px 0; }

.rp {
  background: linear-gradient(145deg, #d4a04a, #b87a2e); color: #fff;
  border-radius: 12px; padding: 12px 14px; min-width: 160px; cursor: pointer;
}
.rp .t { font-size: 12px; opacity: .9; }
.rp .g { font-size: 15px; margin-top: 4px; font-weight: 600; }

.voice-bubble { display: flex; align-items: center; gap: 8px; min-width: 80px; }
.voice-bubble .wave { letter-spacing: 1px; }

.rtc-page { height: 100%; background: #122024; color: #fff; display: flex; flex-direction: column; }
.rtc-videos { flex: 1; position: relative; background: #000; }
.rtc-videos video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.rtc-videos .local {
  position: absolute; right: 12px; top: 12px; width: 28%; max-width: 140px; aspect-ratio: 3/4;
  border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.3); z-index: 3;
}
.incoming-banner {
  position: absolute; left: 12px; right: 12px; top: calc(12px + var(--safe-t));
  background: var(--surface); border-radius: 16px; padding: 12px; z-index: 60;
  box-shadow: var(--shadow); display: flex; gap: 10px; align-items: center;
}
.incoming-banner .acts { margin-left: auto; display: flex; gap: 8px; }

.copyright {
  font-size: 11px; color: #9aabB2; text-align: center;
  padding: 20px 12px 28px; line-height: 1.7;
}
.oa-card { background: var(--surface); padding: 14px 16px; border-bottom: 1px solid var(--line); }
.article { padding: 16px; background: var(--surface); line-height: 1.7; white-space: pre-wrap; }
