/* ============================================================
   仟信 v4 · CSS phone mockups
   iPhone 15 logical ratio (393×852), thick bezel, native UI chrome.
   ============================================================ */

:root {
  --phone-w: 218px;
  --phone-ratio-w: 393;
  --phone-ratio-h: 852;
  --phone-screen-h: calc(var(--phone-w) * var(--phone-ratio-h) / var(--phone-ratio-w));
  --phone-bezel-w: 5px;
  --phone-shell-r: 44px;
  --phone-screen-r: 36px;
  --phone-bezel: #121214;
  --phone-ui-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
}

/* ── Shared phone frame ── */
.phone {
  position: absolute;
  width: var(--phone-w);
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  filter:
    drop-shadow(0 32px 48px rgba(8, 24, 28, 0.18))
    drop-shadow(0 12px 24px rgba(8, 24, 28, 0.1));
}

.phone-shell {
  position: relative;
  padding: var(--phone-bezel-w);
  border-radius: var(--phone-shell-r);
  background:
    linear-gradient(155deg, #323234 0%, #18181a 18%, #0a0a0c 42%, #222224 68%, #0e0e10 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.55),
    0 0 0 1px #000,
    0 24px 48px rgba(0, 0, 0, 0.24);
}

.phone-shell-glass {
  background:
    linear-gradient(155deg, #323234 0%, #18181a 18%, #0a0a0c 42%, #222224 68%, #0e0e10 100%);
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.phone-shell::before {
  content: "";
  position: absolute;
  top: 118px;
  right: -2px;
  z-index: 2;
  width: 3px;
  height: 54px;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(180deg, #4a4a4e 0%, #1e1e22 52%, #36363a 100%);
  box-shadow: 1px 0 2px rgba(255, 255, 255, 0.06);
}

.phone-shell::after {
  content: "";
  position: absolute;
  top: 96px;
  left: -2px;
  z-index: 2;
  width: 3px;
  height: 26px;
  border-radius: 2px 0 0 2px;
  background: linear-gradient(180deg, #4a4a4e 0%, #1e1e22 52%, #36363a 100%);
  box-shadow:
    -1px 0 2px rgba(255, 255, 255, 0.05),
    0 38px 0 0 #2a2a2e;
}

.phone-screen {
  position: relative;
  width: 100%;
  aspect-ratio: var(--phone-ratio-w) / var(--phone-ratio-h);
  min-height: var(--phone-screen-h);
  border: none;
  border-radius: var(--phone-screen-r);
  overflow: hidden;
  background: #f2f2f7;
  font-family: var(--phone-ui-font);
  -webkit-font-smoothing: antialiased;
}

.phone-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.phone-island {
  position: absolute;
  top: 9px;
  left: 50%;
  z-index: 8;
  width: 72px;
  height: 21px;
  margin-left: -36px;
  border-radius: 999px;
  background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.phone-island::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #1e2838, #0a0c10);
}

/* iOS status + home indicator */
.phone-status {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px 0;
  height: 38px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  pointer-events: none;
}

.phone-status time {
  font-variant-numeric: tabular-nums;
}

.phone-status-icons {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.phone-status-icons i {
  display: block;
  width: 16px;
  height: 10px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  position: relative;
}

.phone-status-icons i::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 2px;
  width: 2px;
  height: 4px;
  border-radius: 0 1px 1px 0;
  background: currentColor;
}

.phone-home-bar {
  position: absolute;
  left: 50%;
  bottom: 6px;
  z-index: 7;
  width: 96px;
  height: 4px;
  margin-left: -48px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

html[data-theme="dark"] .phone-screen {
  background: #0c0c0e;
}

html[data-theme="dark"] .phone-status {
  color: rgba(255, 255, 255, 0.92);
}

html[data-theme="dark"] .phone-home-bar {
  background: rgba(255, 255, 255, 0.42);
}

/* ── Hero phone stack ── */
.hero-phones {
  position: relative;
  width: min(100%, 300px);
  height: calc(var(--phone-screen-h) + 20px);
  margin-top: 4px;
}

.hero-phones::after {
  content: "";
  position: absolute;
  bottom: 24px;
  left: 50%;
  z-index: 0;
  width: 72%;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(18, 181, 173, 0.22), transparent 72%);
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-phones .phone-front {
  z-index: 2;
  transform: rotate(-4deg) translateX(-18px);
  animation: heroPhoneFloat 9s ease-in-out infinite;
}

.hero-phones .phone-back {
  z-index: 1;
  right: 38px;
  top: 48px;
  transform: rotate(8deg) translateX(12px);
  animation: heroPhoneFloat 9s ease-in-out infinite reverse;
  animation-delay: -2s;
}

@keyframes heroPhoneFloat {
  0%, 100% { transform: rotate(-4deg) translateX(-18px) translateY(0); }
  50% { transform: rotate(-4deg) translateX(-18px) translateY(-12px); }
}

.hero-phones .phone-back {
  animation-name: heroPhoneFloatBack;
}

@keyframes heroPhoneFloatBack {
  0%, 100% { transform: rotate(8deg) translateX(12px) translateY(0); }
  50% { transform: rotate(8deg) translateX(12px) translateY(-10px); }
}

/* Hero — v1 chat & shield parity */
.hero-phones .phone-screen-shield {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  background: linear-gradient(165deg, #1a1a1e 0%, #0c0c0e 100%);
}

.hero-phones .phone-screen-shield::before { display: none; }

.hero-phones .shield-backdrop {
  position: static;
  padding: 24px 16px;
  gap: 8px;
}

.hero-phones .shield-backdrop-icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
}

.hero-phones .shield-backdrop-title {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: none;
}

.hero-phones .shield-backdrop-desc {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.48);
}

.hero-phones .tg-chat {
  height: 100%;
  background: var(--surface-solid);
}

.hero-phones .tg-wallpaper { background: var(--surface-solid); }

.hero-phones .tg-glass-bg {
  display: block;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(18, 181, 173, 0.08), transparent 60%),
    radial-gradient(ellipse 70% 50% at 80% 90%, rgba(18, 181, 173, 0.06), transparent 55%),
    var(--surface-solid);
}

.hero-phones .tg-messages {
  padding: 88px 12px 72px;
  gap: 8px;
}

.hero-phones .tg-topbar {
  align-items: center;
  padding: 44px 14px 10px;
  background: var(--surface-solid);
  border-bottom: 1px solid var(--line);
}

.hero-phones .tg-top-meta b {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.hero-phones .tg-top-meta span { display: none; }

.hero-phones .tg-in {
  color: var(--ink);
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: var(--r-inner) var(--r-inner) var(--r-inner) 6px;
  box-shadow: none;
}

.hero-phones .tg-out {
  color: var(--ink);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface-solid));
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  border-radius: var(--r-inner) var(--r-inner) 6px var(--r-inner);
  box-shadow: none;
}

.hero-phones .composer { padding: 0 12px 14px; }

.hero-phones .tg-composer-lens {
  min-height: 44px;
  padding: 6px 6px 6px 14px;
  border-radius: var(--r-inner);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(22px) saturate(185%);
  -webkit-backdrop-filter: blur(22px) saturate(185%);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(255, 255, 255, 0.42),
    0 10px 28px rgba(14, 40, 42, 0.08);
}

.hero-phones .screenshot-shield {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(12, 12, 14, 0.52);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero-phones .screenshot-shield-card {
  display: block;
  width: min(100%, 220px);
  padding: 20px 18px;
  border-radius: var(--r-inner);
  text-align: center;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  box-shadow: 0 16px 44px rgba(16, 20, 23, 0.14);
}

.hero-phones .screenshot-shield-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  border-radius: 50%;
  color: var(--accent-text);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface-solid));
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
}

.hero-phones .screenshot-shield-icon svg {
  width: 22px;
  height: 22px;
}

.hero-phones .screenshot-shield-card b {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.hero-phones .screenshot-shield-card p {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

/* ── Screenshot shield (back phone) ── */
.phone-screen-shield {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #dfe6eb;
}

.phone-screen-shield::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.42);
  pointer-events: none;
}

.shield-chat-blur {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 96px 14px 80px;
  filter: blur(5px);
  opacity: 0.55;
}

.shield-blur-bubble {
  width: fit-content;
  max-width: 72%;
  padding: 8px 11px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.4;
}

.shield-blur-in {
  align-self: flex-start;
  background: #fff;
  color: #000;
}

.shield-blur-out {
  align-self: flex-end;
  background: #effdde;
  color: #000;
}

.shield-backdrop {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  padding: 16px;
}

.shield-backdrop-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.92);
  border: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.shield-backdrop-icon svg { width: 22px; height: 22px; }

.shield-backdrop-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

/* ── Chat UI (front phone) ── */
.tg-chat {
  position: relative;
  height: 100%;
  min-height: var(--phone-screen-h);
  overflow: hidden;
  background: #dfe6eb;
}

.tg-wallpaper {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.55), transparent 42%),
    radial-gradient(circle at 82% 88%, rgba(18, 181, 173, 0.08), transparent 38%),
    #dfe6eb;
}

html[data-theme="dark"] .tg-chat,
html[data-theme="dark"] .tg-wallpaper {
  background: #0f1418;
}

.tg-glass-bg {
  display: none;
}

.tg-messages {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 96px 12px 82px;
}

.tg-glass-bar {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: none;
}

html[data-theme="dark"] .tg-glass-bar {
  background: rgba(22, 28, 32, 0.88);
  border-color: rgba(255, 255, 255, 0.08);
}

.tg-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  gap: 8px;
  align-items: end;
  padding: 44px 14px 10px;
  border-bottom: none;
}

.tg-top-meta b {
  font-size: 15px;
  font-weight: 600;
  color: #000;
  line-height: 1.2;
}

.tg-top-meta span {
  display: block;
  margin-top: 1px;
  font-size: 11px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .tg-top-meta b { color: #fff; }
html[data-theme="dark"] .tg-top-meta span { color: rgba(255, 255, 255, 0.48); }

.tg-back {
  width: 10px;
  height: 10px;
  margin-left: 5px;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  opacity: 0.7;
}

.tg-top-meta {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  justify-self: center;
}

.tg-channel-avatar {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
}

.tg-top-spacer { width: 18px; height: 18px; }

.message {
  position: relative;
  width: fit-content;
  max-width: 82%;
  margin: 0;
  padding: 9px 11px 7px;
  font-size: 14px;
  line-height: 1.42;
}

.tg-bubble time {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  text-align: right;
  color: rgba(0, 0, 0, 0.42);
}

.tg-in {
  align-self: flex-start;
  color: #000;
  background: #fff;
  border: none;
  border-radius: 16px 16px 16px 4px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
}

.tg-out {
  align-self: flex-end;
  color: #000;
  background: #effdde;
  border: none;
  border-radius: 16px 16px 4px 16px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.tg-bubble-file {
  display: grid;
  gap: 6px;
  min-width: 148px;
}

.tg-file-chip {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.04);
}

.tg-file-chip i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
  color: #fff;
  background: #5b8def;
}

.tg-file-chip b {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #000;
}

.tg-file-chip em {
  display: block;
  margin-top: 1px;
  font-size: 10px;
  font-style: normal;
  color: rgba(0, 0, 0, 0.42);
}

.tg-out-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 4px;
}

.tg-out-meta time {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.sent-mark {
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 800;
}

.composer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding: 0 10px 18px;
  background: transparent;
}

.tg-composer-lens {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 5px 5px 5px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

html[data-theme="dark"] .tg-composer-lens {
  background: rgba(28, 34, 38, 0.94);
  border-color: rgba(255, 255, 255, 0.08);
}

.composer-type {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  color: var(--muted);
}

.tg-composer-action {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  color: var(--muted);
}

.tg-composer-action svg { width: 16px; height: 16px; display: block; }

/* Screenshot overlay - iOS-style compact alert */
.screenshot-shield {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 88px 16px 0;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.screenshot-shield-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 14px;
  text-align: left;
  background: rgba(255, 255, 255, 0.96);
  border: none;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.screenshot-shield-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: 0;
  border-radius: 8px;
  flex-shrink: 0;
  color: var(--accent-text);
  background: color-mix(in srgb, var(--accent) 14%, #fff);
  border: none;
}

.screenshot-shield-icon svg { width: 16px; height: 16px; }

.screenshot-shield-card b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #000;
}

.screenshot-shield-card p {
  margin: 1px 0 0;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(0, 0, 0, 0.48);
}

/* ── Channel phone carousel ── */
.split-visual .channel-phone-stack {
  margin-inline: auto;
}

.channel-phone-stack {
  --ch-phone-w: 228px;
  --ch-phone-front: translateX(0) rotate(0deg) scale(1);
  --ch-phone-left: translateX(-78px) rotate(-14deg) scale(0.88);
  --ch-phone-right: translateX(78px) rotate(14deg) scale(0.88);
  position: relative;
  width: min(100%, 420px);
  min-height: calc(var(--phone-screen-h) + 40px);
  padding-bottom: 40px;
  margin-inline: auto;
  overflow: visible;
}

.channel-phone-stack .phone {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--ch-phone-w);
  margin-left: calc(var(--ch-phone-w) / -2);
  transition:
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

.channel-phone-stack .phone-shell {
  border-radius: 42px;
  padding: 3px;
  background: var(--phone-bezel);
}

.channel-phone-stack .phone-shell::before { top: 100px; height: 48px; }
.channel-phone-stack .phone-shell::after { top: 84px; height: 24px; }

.channel-phone-stack .phone-screen {
  min-height: var(--phone-screen-h);
  border-radius: 36px;
}

.channel-phone-stack .phone-island {
  width: 72px;
  height: 20px;
  top: 8px;
  margin-left: -36px;
}

.channel-phone-stack .phone-island::before {
  right: 14px;
  width: 7px;
  height: 7px;
}

.channel-phone-caption {
  position: absolute;
  left: 50%;
  bottom: -26px;
  margin: 0;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.channel-phone-stack[data-active="0"] .channel-phone[data-index="0"] .channel-phone-caption,
.channel-phone-stack[data-active="1"] .channel-phone[data-index="1"] .channel-phone-caption,
.channel-phone-stack[data-active="2"] .channel-phone[data-index="2"] .channel-phone-caption {
  opacity: 1;
}

.channel-phone-stack[data-active="0"] .channel-phone[data-index="0"] {
  z-index: 3; transform: var(--ch-phone-front); opacity: 1; filter: none;
}
.channel-phone-stack[data-active="0"] .channel-phone[data-index="1"] {
  z-index: 2; transform: var(--ch-phone-right); opacity: 0.76; filter: brightness(0.97);
}
.channel-phone-stack[data-active="0"] .channel-phone[data-index="2"] {
  z-index: 1; transform: var(--ch-phone-left); opacity: 0.62; filter: brightness(0.94);
}

.channel-phone-stack[data-active="1"] .channel-phone[data-index="1"] {
  z-index: 3; transform: var(--ch-phone-front); opacity: 1; filter: none;
}
.channel-phone-stack[data-active="1"] .channel-phone[data-index="2"] {
  z-index: 2; transform: var(--ch-phone-right); opacity: 0.76; filter: brightness(0.97);
}
.channel-phone-stack[data-active="1"] .channel-phone[data-index="0"] {
  z-index: 1; transform: var(--ch-phone-left); opacity: 0.62; filter: brightness(0.94);
}

.channel-phone-stack[data-active="2"] .channel-phone[data-index="2"] {
  z-index: 3; transform: var(--ch-phone-front); opacity: 1; filter: none;
}
.channel-phone-stack[data-active="2"] .channel-phone[data-index="0"] {
  z-index: 2; transform: var(--ch-phone-right); opacity: 0.76; filter: brightness(0.97);
}
.channel-phone-stack[data-active="2"] .channel-phone[data-index="1"] {
  z-index: 1; transform: var(--ch-phone-left); opacity: 0.62; filter: brightness(0.94);
}

.channel-phone-dots {
  position: absolute;
  bottom: 0;
  left: 50%;
  z-index: 4;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.channel-phone-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--line-strong);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.channel-phone-dot.is-active {
  background: var(--accent);
  transform: scale(1.15);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.channel-phone-dot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Channel screens */
.channel-screen-profile {
  display: flex;
  flex-direction: column;
  background: var(--surface-solid);
}

.ch-profile-cover {
  height: 88px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 28%, var(--surface-solid)) 0%, var(--surface-solid) 100%);
}

.ch-profile-body {
  flex: 1;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 6px;
  padding: 0 16px 20px;
  text-align: center;
}

.ch-profile-avatar {
  display: inline-flex;
  margin-top: -22px;
  padding: 2px;
  border-radius: 12px;
  background: var(--surface-solid);
  border: 1px solid var(--line);
}

.ch-profile-avatar img { display: block; border-radius: 9px; }

.ch-profile-body > b {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.ch-profile-subs {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.ch-profile-subs span {
  margin-left: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.ch-profile-cta {
  margin-top: 10px;
  min-width: 112px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-text);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
}

.channel-screen-announce,
.channel-screen-subgroup {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface-solid);
}

.ch-topbar {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  padding: 32px 12px 8px;
  background: var(--surface-solid);
  border-bottom: 1px solid var(--line);
}

.ch-topbar-back {
  width: 8px;
  height: 8px;
  margin-left: 4px;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  opacity: 0.65;
}

.ch-topbar-meta {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.ch-topbar-meta img { border-radius: 6px; flex-shrink: 0; }

.ch-topbar-meta b {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ch-topbar-spacer { width: 16px; }

.ch-subgroup-badge {
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 500;
  color: var(--accent-text);
  background: var(--accent-soft);
  white-space: nowrap;
}

.ch-announce-list {
  flex: 1;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 10px 12px;
  overflow: hidden;
}

.ch-announce-card {
  padding: 12px;
  border-radius: var(--r-inner);
  background: var(--bg);
  border: 1px solid var(--line);
}

.ch-announce-card.is-highlight {
  border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent);
}

.ch-announce-card.is-muted { opacity: 0.55; }

.ch-announce-tag {
  display: inline-flex;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--accent-text);
  background: var(--accent-soft);
}

.ch-announce-card p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--ink);
}

.ch-announce-card time {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  color: var(--muted);
}

.channel-phone-stack[data-active="1"] .ch-announce-card.is-highlight {
  animation: chAnnouncePulse 2.4s ease-in-out infinite;
}

@keyframes chAnnouncePulse {
  0%, 100% { box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent); }
  50% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
}

.ch-chat-body {
  flex: 1;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 10px 12px 52px;
}

.ch-bubble {
  width: fit-content;
  max-width: 82%;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.45;
}

.ch-bubble-other {
  justify-self: start;
  background: var(--bg);
  border: 1px solid var(--line);
}

.ch-bubble-mine {
  justify-self: end;
  color: #fff;
  background: var(--accent);
}

.ch-sender {
  display: block;
  margin-bottom: 2px;
  font-size: 10px;
  font-weight: 600;
  opacity: 0.72;
}

.ch-bubble p { margin: 0; }

.ch-composer {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 14px;
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 18px;
  font-size: 12px;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line);
}

/* Channel broadcast screen */
.ch-screen-broadcast {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: var(--phone-screen-h);
  background: #f2f2f7;
}

html[data-theme="dark"] .ch-screen-broadcast {
  background: #0c0c0e;
}

.ch-broadcast-topbar {
  display: grid;
  grid-template-columns: 24px 1fr 24px;
  gap: 8px;
  align-items: end;
  padding: 44px 14px 10px;
  background: #f2f2f7;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

html[data-theme="dark"] .ch-broadcast-topbar {
  background: #0c0c0e;
  border-color: rgba(255, 255, 255, 0.08);
}

.ch-broadcast-topbar b {
  font-size: 15px;
  font-weight: 600;
  color: #000;
  text-align: center;
}

html[data-theme="dark"] .ch-broadcast-topbar b { color: #fff; }

.ch-broadcast-body {
  flex: 1;
  padding: 10px 12px 78px;
  overflow: hidden;
}

.ch-broadcast-card {
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.ch-broadcast-card p {
  margin: 0 0 8px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.48;
  color: #000;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

html[data-theme="dark"] .ch-broadcast-card p {
  color: #fff;
  background: #1c1c1e;
}

.ch-link-preview {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 6px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.04);
  border-left: 3px solid var(--accent);
}

.ch-link-preview-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(18, 181, 173, 0.35), rgba(18, 181, 173, 0.08)),
    #e8ecec;
}

.ch-link-preview b {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #000;
}

.ch-link-preview em {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-style: normal;
  color: rgba(0, 0, 0, 0.45);
}

.ch-broadcast-card p:last-of-type {
  margin-bottom: 8px;
}

.ch-broadcast-collapse {
  display: inline-block;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-text);
  cursor: default;
  pointer-events: none;
}

.ch-broadcast-time {
  display: block;
  margin: 8px 0 0 4px;
  font-size: 11px;
  color: var(--muted);
}

.ch-broadcast-footer {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.ch-broadcast-mute {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  margin: 0;
  padding: 0 16px;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface-solid);
  box-shadow: 0 1px 4px rgba(14, 40, 42, 0.06);
  cursor: default;
  pointer-events: none;
}

.ch-broadcast-mute i {
  font-size: 16px;
  color: var(--muted);
}

.ch-broadcast-gift {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  background: var(--surface-solid);
  box-shadow: 0 1px 4px rgba(14, 40, 42, 0.06);
}

/* ── Community single-phone showcase ── */
.phone-showcase {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 0;
}

.phone-showcase::after {
  content: "";
  position: absolute;
  bottom: 8%;
  left: 50%;
  z-index: -1;
  width: 68%;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(18, 181, 173, 0.2), transparent 72%);
  transform: translateX(-50%);
  pointer-events: none;
}

.phone-showcase .phone-single {
  position: relative;
  width: var(--phone-w);
  filter:
    drop-shadow(0 28px 48px rgba(14, 70, 66, 0.16))
    drop-shadow(0 10px 18px rgba(14, 70, 66, 0.08));
}

/* Shared community screen chrome */
.cm-topbar {
  display: grid;
  grid-template-columns: 24px 1fr 24px;
  gap: 8px;
  align-items: end;
  padding: 44px 14px 10px;
  background: var(--surface-solid);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.cm-topbar-plain { grid-template-columns: 24px 1fr 16px; }

.cm-topbar b {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cm-topbar-back {
  width: 8px;
  height: 8px;
  margin-left: 4px;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  opacity: 0.65;
}

.cm-topbar-menu {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--muted);
  line-height: 1;
}

.cm-topbar-spacer { width: 16px; }

.cm-topbar-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.cm-topbar-meta b { font-size: 14px; }

.cm-member-count {
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
}

/* Groups hub (reference screenshot) */
.cm-screen-groups {
  display: flex;
  flex-direction: column;
  min-height: var(--phone-screen-h);
  background: var(--surface-solid);
}

.cm-announce-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--line);
}

.cm-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cm-avatar-ai {
  background:
    radial-gradient(circle at 35% 35%, rgba(120, 200, 255, 0.9), transparent 55%),
    radial-gradient(circle at 65% 70%, rgba(180, 120, 255, 0.85), transparent 50%),
    linear-gradient(135deg, #1a2a4a 0%, #2d1a4a 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.cm-avatar-wand {
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 220, 120, 0.95), transparent 45%),
    linear-gradient(145deg, #3a5a8a 0%, #5a3a8a 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.cm-announce-copy b {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.cm-announce-copy p {
  margin: 3px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text);
}

.cm-announce-row time {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 2px;
}

.cm-section-label {
  margin: 0;
  padding: 16px 14px 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.cm-group-list {
  list-style: none;
  margin: 0;
  padding: 0 14px;
  display: grid;
  gap: 0;
}

.cm-group-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.cm-group-unread {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 600;
  line-height: 22px;
  text-align: center;
  color: #fff;
  background: var(--accent);
  font-variant-numeric: tabular-nums;
}

.cm-group-preview {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.42);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cm-group-meta { min-width: 0; }

.cm-group-title {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.cm-tag-private {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  font-style: normal;
  color: #7c5cbf;
  background: rgba(124, 92, 191, 0.12);
  border: 1px solid rgba(124, 92, 191, 0.22);
}

.cm-group-sub {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.cm-create-btn {
  display: block;
  width: calc(100% - 28px);
  margin: auto 14px 18px;
  min-height: 44px;
  border: none;
  border-radius: 22px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(180deg, var(--accent-2) 0%, var(--accent) 100%);
  box-shadow: 0 8px 24px rgba(18, 181, 173, 0.35);
  cursor: default;
  pointer-events: none;
}

/* Super group chat */
.cm-screen-super {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: var(--phone-screen-h);
  background: var(--surface-solid);
}

.cm-screen-super .cm-chat-body {
  flex: 1;
  display: grid;
  align-content: end;
  gap: 6px;
  padding: 12px 12px 78px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.4), transparent 40%),
    #dfe6eb;
}

html[data-theme="dark"] .cm-screen-super .cm-chat-body {
  background: #0f1418;
}

.ch-bubble {
  max-width: 78%;
  padding: 8px 11px 7px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.42;
}

.ch-bubble-other {
  justify-self: start;
  background: #fff;
  color: #000;
  border-radius: 16px 16px 16px 4px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.ch-bubble-mine {
  justify-self: end;
  background: #effdde;
  color: #000;
  border-radius: 16px 16px 4px 16px;
}

.ch-sender {
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: 600;
  color: #5b8def;
}

.ch-bubble-mine .ch-sender { color: #3d9a52; }

.ch-bubble time {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  color: rgba(0, 0, 0, 0.38);
  text-align: right;
}

/* Admin settings */
.cm-screen-admin {
  display: flex;
  flex-direction: column;
  min-height: var(--phone-screen-h);
  background: var(--surface-solid);
}

.cm-settings-list {
  list-style: none;
  margin: 0;
  padding: 8px 14px 20px;
  display: grid;
  gap: 0;
}

.cm-setting-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cm-setting-row b {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.cm-setting-row p {
  margin: 3px 0 0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

.cm-toggle {
  position: relative;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: var(--line-strong);
  flex-shrink: 0;
}

.cm-toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.cm-toggle.is-on {
  background: var(--accent);
}

.cm-toggle.is-on::after {
  transform: translateX(18px);
}

html[data-theme="dark"] .cm-tag-private {
  color: #b89cf0;
  background: rgba(184, 156, 240, 0.14);
  border-color: rgba(184, 156, 240, 0.28);
}

/* ── Wallet phone carousel ── */
.split-visual .wallet-phone-stack {
  margin-inline: auto;
}

.wallet-phone-stack {
  --wl-phone-w: 228px;
  --wl-phone-front: translateX(0) translateY(0) rotate(0deg) scale(1);
  --wl-phone-left: translateX(-108px) translateY(20px) rotate(-5deg) scale(0.8);
  --wl-phone-right: translateX(108px) translateY(20px) rotate(5deg) scale(0.8);
  position: relative;
  width: min(100%, 420px);
  min-height: calc(var(--phone-screen-h) + 40px);
  padding-bottom: 40px;
  margin-inline: auto;
  overflow: visible;
}

.wallet-phone-stack::before {
  content: "";
  position: absolute;
  bottom: 52px;
  left: 50%;
  z-index: 0;
  width: 70%;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(18, 181, 173, 0.18), transparent 72%);
  transform: translateX(-50%);
  pointer-events: none;
}

.wallet-phone-stack .phone {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--wl-phone-w);
  margin-left: calc(var(--wl-phone-w) / -2);
  transition:
    transform 0.68s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.68s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.68s cubic-bezier(0.22, 1, 0.36, 1);
}

.wallet-phone-stack .phone-shell {
  border-radius: 42px;
  padding: 3px;
  background: var(--phone-bezel);
}

.wallet-phone-stack .phone-shell::before { top: 100px; height: 48px; }
.wallet-phone-stack .phone-shell::after { top: 84px; height: 24px; }

.wallet-phone-stack .phone-screen {
  min-height: var(--phone-screen-h);
  border-radius: 36px;
}

.wallet-phone-stack .phone-island {
  width: 72px;
  height: 20px;
  top: 8px;
  margin-left: -36px;
}

.wallet-phone-stack .phone-island::before {
  right: 14px;
  width: 7px;
  height: 7px;
}

.wallet-phone-caption {
  position: absolute;
  left: 50%;
  bottom: -26px;
  margin: 0;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.wallet-phone-stack[data-active="0"] .wallet-phone[data-index="0"] .wallet-phone-caption,
.wallet-phone-stack[data-active="1"] .wallet-phone[data-index="1"] .wallet-phone-caption,
.wallet-phone-stack[data-active="2"] .wallet-phone[data-index="2"] .wallet-phone-caption {
  opacity: 1;
}

.wallet-phone-stack[data-active="0"] .wallet-phone[data-index="0"],
.wallet-phone-stack[data-active="1"] .wallet-phone[data-index="1"],
.wallet-phone-stack[data-active="2"] .wallet-phone[data-index="2"] {
  z-index: 3;
  transform: var(--wl-phone-front);
  opacity: 1;
  filter: none;
}

.wallet-phone-stack[data-active="0"] .wallet-phone[data-index="1"],
.wallet-phone-stack[data-active="1"] .wallet-phone[data-index="2"],
.wallet-phone-stack[data-active="2"] .wallet-phone[data-index="0"] {
  z-index: 2;
  transform: var(--wl-phone-right);
  opacity: 0.94;
  filter: brightness(0.99);
}

.wallet-phone-stack[data-active="0"] .wallet-phone[data-index="2"],
.wallet-phone-stack[data-active="1"] .wallet-phone[data-index="0"],
.wallet-phone-stack[data-active="2"] .wallet-phone[data-index="1"] {
  z-index: 1;
  transform: var(--wl-phone-left);
  opacity: 0.9;
  filter: brightness(0.98);
}

.wallet-phone-dots {
  position: absolute;
  bottom: 0;
  left: 50%;
  z-index: 4;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.wallet-phone-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--line-strong);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.wallet-phone-dot.is-active {
  background: var(--accent);
  transform: scale(1.15);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.wallet-phone-dot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Wallet screens */
.wallet-screen-balance,
.wallet-screen-ledger,
.wallet-screen-risk {
  display: flex;
  flex-direction: column;
  background: var(--surface-solid);
}

.wl-topbar {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  padding: 32px 14px 12px;
  background: var(--surface-solid);
  border-bottom: 1px solid var(--line);
}

.wl-topbar > b {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.wl-topbar-nav {
  grid-template-columns: 24px 1fr 16px;
  gap: 6px;
}

.wl-topbar-nav > b {
  grid-column: auto;
}

.wl-topbar-back {
  width: 8px;
  height: 8px;
  margin-left: 4px;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  opacity: 0.65;
}

.wl-topbar-spacer { width: 16px; }

.wl-balance-card {
  margin: 16px 12px 0;
  padding: 18px 14px;
  border-radius: var(--r-inner);
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 14%, var(--surface-solid)), var(--surface-solid));
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  box-shadow: 0 12px 32px rgba(18, 181, 173, 0.1);
}

.wl-balance-card span {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.wl-balance-card b {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.wl-balance-card p {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.wl-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 12px 0;
}

.wl-quick-actions span {
  min-height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
}

.wl-ledger-list {
  list-style: none;
  margin: 0;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.wl-ledger-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--r-inner);
  background: var(--bg);
  border: 1px solid var(--line);
}

.wl-ledger-item b {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.wl-ledger-item p {
  margin: 2px 0 0;
  font-size: 10px;
  color: var(--muted);
}

.wl-ledger-item > span {
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.wl-ledger-item.is-income > span {
  color: var(--accent-text);
}

.wl-ledger-item.is-out > span {
  color: var(--muted);
}

.wl-risk-panel {
  margin: 16px 12px;
  padding: 16px 14px;
  border-radius: var(--r-inner);
  background: var(--bg);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
}

.wl-risk-badge {
  display: inline-flex;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--accent-text);
  background: var(--accent-soft);
}

.wl-risk-panel > b {
  display: block;
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.wl-risk-panel > p {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text);
}

.wl-risk-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.wl-risk-cancel,
.wl-risk-confirm {
  min-height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
}

.wl-risk-cancel {
  color: var(--text);
  background: var(--surface-solid);
  border: 1px solid var(--line);
}

.wl-risk-confirm {
  color: #fff;
  background: var(--ink);
}

.wallet-phone-stack[data-active="2"] .wl-risk-panel {
  animation: chAnnouncePulse 2.4s ease-in-out infinite;
}

/* Wallet - native list screen (minimal, realistic) */
.wl-screen {
  display: flex;
  flex-direction: column;
  min-height: var(--phone-screen-h);
  background: #f2f2f7;
}

html[data-theme="dark"] .wl-screen {
  background: #000;
}

.wl-nav {
  padding: 44px 16px 6px;
  text-align: center;
}

.wl-nav b {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  letter-spacing: -0.02em;
}

html[data-theme="dark"] .wl-nav b { color: #fff; }

.wl-balance {
  padding: 18px 20px 22px;
  text-align: center;
}

.wl-balance span {
  display: block;
  font-size: 13px;
  color: rgba(60, 60, 67, 0.6);
}

html[data-theme="dark"] .wl-balance span { color: rgba(235, 235, 245, 0.6); }

.wl-balance strong {
  display: block;
  margin-top: 6px;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #000;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}

html[data-theme="dark"] .wl-balance strong { color: #fff; }

.wl-balance strong::before {
  content: "¥";
  margin-right: 2px;
  font-size: 0.72em;
  font-weight: 500;
  opacity: 0.72;
}

.wl-group {
  margin: 0 14px;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.wl-section-label {
  margin: 10px 0 6px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 400;
  color: rgba(60, 60, 67, 0.6);
}

html[data-theme="dark"] .wl-section-label { color: rgba(235, 235, 245, 0.6); }

html[data-theme="dark"] .wl-group {
  background: #1c1c1e;
}

.wl-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wl-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 11px 16px;
  border-top: 0.5px solid rgba(60, 60, 67, 0.12);
}

.wl-row:first-child { border-top: none; }

html[data-theme="dark"] .wl-row {
  border-color: rgba(84, 84, 88, 0.65);
}

.wl-row-main b {
  display: block;
  font-size: 15px;
  font-weight: 400;
  color: #000;
}

html[data-theme="dark"] .wl-row-main b { color: #fff; }

.wl-row-main em {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-style: normal;
  color: rgba(60, 60, 67, 0.6);
}

html[data-theme="dark"] .wl-row-main em { color: rgba(235, 235, 245, 0.6); }

.wl-row-amt {
  font-size: 15px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.wl-row-amt.is-plus { color: #34c759; }
.wl-row-amt.is-minus { color: #000; }
html[data-theme="dark"] .wl-row-amt.is-minus { color: #fff; }

.wl-footnote {
  margin: 10px 20px 0;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(60, 60, 67, 0.45);
  text-align: center;
}

html[data-theme="dark"] .wl-footnote { color: rgba(235, 235, 245, 0.45); }

/* ── Responsive ── */
@media (max-width: 960px) {
  :root {
    --phone-w: 198px;
  }

  .hero-art-stack {
    transform: scale(0.88);
    transform-origin: top center;
    margin: 0 auto;
  }

  .hero-phones {
    width: min(100%, 240px);
    height: calc(var(--phone-screen-h) + 12px);
    margin-inline: auto;
  }

  .hero-phones .phone {
    width: var(--phone-w);
  }

  .hero-slogan {
    width: min(100%, 240px);
  }

  .channel-phone-stack {
    --ch-phone-w: 200px;
    --ch-phone-left: translateX(-64px) rotate(-12deg) scale(0.86);
    --ch-phone-right: translateX(64px) rotate(12deg) scale(0.86);
    min-height: calc(var(--phone-screen-h) + 24px);
  }

  .phone-showcase .phone-single {
    width: var(--phone-w);
  }

  .wallet-phone-stack {
    --wl-phone-w: 200px;
    --wl-phone-left: translateX(-92px) translateY(18px) rotate(-5deg) scale(0.78);
    --wl-phone-right: translateX(92px) translateY(18px) rotate(5deg) scale(0.78);
    min-height: calc(var(--phone-screen-h) + 24px);
  }
}

@media (max-width: 480px) {
  .hero-art-stack {
    transform: scale(0.8);
  }

  .hero-phones {
    width: min(100%, 220px);
  }

  .hero-phones .phone-front {
    transform: rotate(-3deg) translateX(-8px);
  }

  .hero-phones .phone-back {
    right: 16px;
    top: 16px;
    transform: rotate(6deg) translateX(4px);
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .hero-phones .phone-front,
  .hero-phones .phone-back,
  .channel-phone-stack[data-active="1"] .ch-announce-card.is-highlight {
    animation: none;
  }

  .channel-phone-stack .phone,
  .wallet-phone-stack .phone {
    transition: none;
  }
}
