:root {
  --bg: #05070c;
  --bg-2: #080c14;
  --panel: rgba(15, 20, 32, 0.72);
  --panel-strong: rgba(18, 24, 39, 0.92);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(112, 198, 255, 0.22);
  --text: #f7fbff;
  --muted: #8e99ac;
  --cyan: #6de6ff;
  --blue: #7194ff;
  --violet: #8d7cff;
  --danger: #ff5e6c;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --radius: 28px;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  background: #03050a;
  color-scheme: dark;
}
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 18% -5%,
      rgba(83, 122, 255, 0.16),
      transparent 31%
    ),
    radial-gradient(
      circle at 102% 26%,
      rgba(73, 212, 255, 0.1),
      transparent 26%
    ),
    linear-gradient(180deg, #060913 0%, #03050a 100%);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Inter,
    Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button,
input,
textarea {
  font: inherit;
}
button {
  color: inherit;
}
.ambient {
  position: fixed;
  pointer-events: none;
  filter: blur(70px);
  opacity: 0.28;
  z-index: 0;
}
.ambient-a {
  width: 260px;
  height: 260px;
  background: #385dff;
  top: -120px;
  left: -100px;
}
.ambient-b {
  width: 300px;
  height: 300px;
  background: #00bfe8;
  right: -190px;
  top: 280px;
  opacity: 0.14;
}
.grid-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(132, 180, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(132, 180, 255, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 84%);
  z-index: 0;
}
.mobile-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  margin: 0 auto;
  padding: calc(14px + env(safe-area-inset-top)) 16px
    calc(34px + env(safe-area-inset-bottom));
  min-height: 100vh;
}
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 2px 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand-emblem {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  padding: 1px;
  background: linear-gradient(
    145deg,
    rgba(132, 223, 255, 0.75),
    rgba(112, 105, 255, 0.3),
    rgba(255, 255, 255, 0.08)
  );
  box-shadow: 0 9px 28px rgba(74, 128, 255, 0.18);
}
.brand-emblem span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  background: linear-gradient(145deg, #141b2c, #090d15);
  font-weight: 800;
  letter-spacing: -0.5px;
  font-size: 15px;
  color: #fff;
}
.brand-copy h1 {
  font-size: 18px;
  line-height: 1.1;
  margin: 0;
  font-weight: 760;
  letter-spacing: -0.5px;
}
.brand-copy p {
  margin: 4px 0 0;
  color: #7f8ba0;
  font-size: 11px;
  letter-spacing: 2px;
}
.account-entry {
  border: 1px solid var(--line);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.025)
  );
  width: 46px;
  height: 46px;
  border-radius: 16px;
  padding: 0;
  display: grid;
  place-items: center;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.05),
    0 12px 28px rgba(0, 0, 0, 0.18);
}
.account-avatar {
  font-size: 11px;
  color: #cdd6e5;
}
.account-avatar.has-photo {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 15px;
  text-indent: -9999px;
}
.people-section {
  margin: 0 0 14px;
}
.section-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 0 2px 10px;
}
.section-title-row > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.section-title-row strong {
  font-size: 14px;
}
.section-title-row small {
  font-size: 11px;
  color: #687387;
}
.new-human-button {
  height: 34px;
  border: 1px solid rgba(109, 230, 255, 0.18);
  background: rgba(109, 230, 255, 0.06);
  border-radius: 12px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #dffaff;
}
.new-human-button span {
  font-size: 18px;
  color: var(--cyan);
  font-weight: 300;
}
.new-human-button b {
  font-size: 12px;
  font-weight: 650;
}
.default-human-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}
.default-human-card {
  appearance: none;
  border: 1px solid var(--line);
  background: linear-gradient(
    180deg,
    rgba(17, 23, 38, 0.74),
    rgba(9, 13, 22, 0.74)
  );
  border-radius: 18px;
  padding: 9px 5px 8px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  transition: 0.22s ease;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}
.default-human-card.active {
  border-color: rgba(109, 230, 255, 0.54);
  background: linear-gradient(
    180deg,
    rgba(25, 38, 60, 0.95),
    rgba(11, 17, 28, 0.94)
  );
  box-shadow:
    0 0 0 1px rgba(109, 230, 255, 0.08),
    0 12px 32px rgba(37, 143, 202, 0.12);
}
.default-human-card.active:after {
  content: "";
  position: absolute;
  top: 7px;
  right: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}
.default-human-media {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(145deg, #1a2235, #0b101a);
  display: grid;
  place-items: center;
  color: #d5e5ff;
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.default-human-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.default-human-media b {
  font-size: 16px;
}
.default-human-media.violet {
  background: linear-gradient(145deg, #30365f, #161a31);
}
.default-human-media.gold {
  background: linear-gradient(145deg, #4b4339, #211d19);
}
.default-human-media.rose {
  background: linear-gradient(145deg, #5a3448, #241522);
}
.default-human-copy {
  min-width: 0;
  width: 100%;
}
.default-human-copy strong {
  display: block;
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #dce6f6;
  font-weight: 620;
}
.history-card {
  display: none !important;
}
.portrait-card {
  position: relative;
  height: clamp(470px, 64vh, 590px);
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(
    160deg,
    rgba(22, 29, 47, 0.88),
    rgba(7, 10, 17, 0.96)
  );
  box-shadow:
    var(--shadow),
    inset 0 1px rgba(255, 255, 255, 0.05);
  isolation: isolate;
}
.portrait-card:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 50% 42%,
      rgba(104, 185, 255, 0.14),
      transparent 36%
    ),
    linear-gradient(180deg, rgba(30, 43, 69, 0.18), transparent 42%);
  z-index: 0;
}
.stage-halo {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 270px;
  height: 270px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(112, 218, 255, 0.11);
  box-shadow: 0 0 80px rgba(40, 143, 255, 0.08);
  z-index: 0;
}
.stage-halo:before,
.stage-halo:after {
  content: "";
  position: absolute;
  border-radius: 50%;
  inset: 24px;
  border: 1px solid rgba(124, 147, 255, 0.08);
}
.stage-halo:after {
  inset: 58px;
  border-color: rgba(109, 230, 255, 0.09);
}
.stage-lines {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(116, 183, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(116, 183, 255, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(
    to bottom,
    transparent 4%,
    black 28%,
    black 75%,
    transparent 96%
  );
  z-index: 0;
}
.portrait-topline {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 16px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.digital-status {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(8, 12, 20, 0.58);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  color: #c4d0e0;
}
.digital-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(109, 230, 255, 0.9);
}
.replace-photo {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 11, 18, 0.58);
  backdrop-filter: blur(14px);
  border-radius: 999px;
  height: 32px;
  padding: 0 11px;
  color: #d7e0ee;
  font-size: 11px;
}
.photo-frame {
  position: absolute;
  inset: 0;
  display: block;
  cursor: pointer;
  overflow: hidden;
  z-index: 2;
}
.photo-frame input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.photo-frame > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center 48%;
  position: absolute;
  inset: 0;
  z-index: 2;
  filter: saturate(0.94) contrast(1.03);
}
.photo-empty {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  color: #e7f1ff;
}
.photo-empty strong {
  font-size: 18px;
}
.photo-empty > span {
  font-size: 12px;
  color: #7f8ba0;
}
.upload-core {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  position: relative;
  color: var(--cyan);
  margin-bottom: 7px;
}
.upload-core svg {
  width: 29px;
  position: relative;
  z-index: 2;
}
.upload-core .ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(109, 230, 255, 0.24);
}
.upload-core .r1 {
  inset: 7px;
}
.upload-core .r2 {
  inset: -5px;
  border-color: rgba(115, 138, 255, 0.15);
}
.portrait-shade {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(3, 6, 11, 0.14) 0%,
      transparent 31%,
      transparent 61%,
      rgba(3, 6, 11, 0.92) 100%
    ),
    linear-gradient(
      90deg,
      rgba(3, 6, 11, 0.12),
      transparent 28%,
      transparent 72%,
      rgba(3, 6, 11, 0.12)
    );
}
.portrait-scan {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 22%;
  height: 1px;
  z-index: 4;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(109, 230, 255, 0.5),
    transparent
  );
  box-shadow: 0 0 20px rgba(109, 230, 255, 0.25);
  opacity: 0.45;
  animation: scan 5s ease-in-out infinite;
}
@keyframes scan {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.15;
  }
  50% {
    transform: translateY(240px);
    opacity: 0.55;
  }
}
.portrait-info {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 5;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}
.portrait-info > div {
  min-width: 0;
}
.portrait-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #9beeff;
  margin-bottom: 7px;
}
.portrait-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(109, 230, 255, 0.8);
}
.portrait-info strong {
  font-size: 27px;
  line-height: 1.08;
  letter-spacing: -0.8px;
  display: block;
}
.portrait-info small {
  display: block;
  margin-top: 6px;
  color: #9aa8bc;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
}
.live-orbit {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 50%;
  border: 1px solid rgba(109, 230, 255, 0.22);
  display: grid;
  place-items: center;
  position: relative;
  background: rgba(7, 12, 20, 0.44);
  backdrop-filter: blur(10px);
}
.live-orbit:before,
.live-orbit:after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(125, 144, 255, 0.14);
}
.live-orbit:before {
  inset: 7px;
}
.live-orbit:after {
  inset: 15px;
}
.live-orbit b {
  font-size: 13px;
  z-index: 2;
}
.live-orbit i {
  position: absolute;
  width: 5px;
  height: 5px;
  background: var(--cyan);
  border-radius: 50%;
  top: 4px;
  left: 50%;
  box-shadow: 0 0 9px var(--cyan);
  animation: orbit 3.8s linear infinite;
  transform-origin: 0 25px;
}
@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}
.image-meta {
  position: absolute;
  right: 18px;
  top: 58px;
  z-index: 5;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(7, 11, 18, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 10px;
  color: #aeb9c9;
  backdrop-filter: blur(12px);
}
.settings-card {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(
    180deg,
    rgba(16, 22, 35, 0.86),
    rgba(8, 12, 20, 0.88)
  );
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.24),
    inset 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.settings-head {
  height: 60px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.settings-head strong {
  font-size: 14px;
}
.settings-head small {
  display: block;
  color: #6f7b8f;
  font-size: 10px;
  margin-top: 2px;
}
.settings-badge {
  font-size: 10px;
  color: #9beeff;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(109, 230, 255, 0.07);
  border: 1px solid rgba(109, 230, 255, 0.12);
}
.settings-dock {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.setting-tile {
  min-height: 82px;
  padding: 13px 12px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.055);
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  background: transparent;
  display: grid;
  grid-template-columns: 32px 1fr 12px;
  align-items: center;
  gap: 9px;
  text-align: left;
  position: relative;
}
.setting-tile:nth-child(2n) {
  border-right: 0;
}
.setting-tile:nth-last-child(-n + 2) {
  border-bottom: 0;
}
.setting-tile:active {
  background: rgba(109, 230, 255, 0.04);
}
.tile-icon {
  width: 32px;
  height: 32px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(
    145deg,
    rgba(113, 148, 255, 0.17),
    rgba(109, 230, 255, 0.08)
  );
  border: 1px solid rgba(126, 176, 255, 0.12);
  font-size: 11px;
  color: #d9ecff;
}
.tile-copy {
  min-width: 0;
  display: block;
}
.tile-copy small {
  display: block;
  font-size: 10px;
  color: #6f7b8e;
  margin-bottom: 4px;
}
.tile-copy strong {
  display: block;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 650;
  color: #e8eff8;
}
.tile-copy em {
  display: block;
  font-size: 9px;
  color: #536075;
  font-style: normal;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tile-arrow {
  color: #465268;
  font-size: 17px;
}
.name-tile input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #e8eff8;
  padding: 0;
  font-size: 12px;
  font-weight: 650;
  min-width: 0;
}
.name-tile input::selection {
  background: rgba(109, 230, 255, 0.2);
}
.start-button {
  margin-top: 14px;
  width: 100%;
  height: 76px;
  border: 1px solid rgba(109, 230, 255, 0.25);
  border-radius: 24px;
  background: linear-gradient(
    100deg,
    rgba(30, 55, 87, 0.92),
    rgba(25, 34, 62, 0.96) 52%,
    rgba(24, 48, 75, 0.92)
  );
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 46px 1fr 38px;
  align-items: center;
  gap: 11px;
  padding: 0 17px;
  text-align: left;
  box-shadow:
    0 16px 42px rgba(15, 87, 151, 0.2),
    inset 0 1px rgba(255, 255, 255, 0.08);
}
.start-button:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 18%,
    rgba(123, 224, 255, 0.13) 45%,
    transparent 72%
  );
  transform: translateX(-100%);
  animation: buttonSweep 4.8s ease-in-out infinite;
}
@keyframes buttonSweep {
  0%,
  40% {
    transform: translateX(-100%);
  }
  75%,
  100% {
    transform: translateX(100%);
  }
}
.button-glow {
  position: absolute;
  width: 170px;
  height: 170px;
  right: -80px;
  top: -90px;
  border-radius: 50%;
  background: rgba(91, 194, 255, 0.13);
  filter: blur(30px);
}
.start-symbol {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(140, 230, 255, 0.2);
  background: rgba(109, 230, 255, 0.07);
  position: relative;
  z-index: 1;
}
.start-symbol i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #dffcff;
  box-shadow:
    0 0 0 5px rgba(109, 230, 255, 0.12),
    0 0 18px rgba(109, 230, 255, 0.7);
}
.start-copy {
  position: relative;
  z-index: 1;
}
.start-copy strong {
  font-size: 16px;
  display: block;
}
.start-copy small {
  display: block;
  color: #9cb1c9;
  font-size: 10px;
  margin-top: 5px;
}
.start-arrow {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 1;
}
.start-arrow svg {
  width: 17px;
}
.service-card {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(12, 17, 27, 0.72);
}
.service-status i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7f8a99;
}
.service-status i.ok {
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}
.service-copy {
  min-width: 0;
  flex: 1;
}
.service-copy strong {
  font-size: 12px;
  display: block;
}
.service-copy span {
  font-size: 10px;
  color: #6e7a8d;
}
.service-card button {
  border: 0;
  background: transparent;
  color: #8fefff;
  font-size: 11px;
}
.privacy-note {
  text-align: center;
  color: #4e5a6d;
  font-size: 9px;
  margin: 14px 0 0;
}
.call-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: #03060b;
  color: #fff;
}
.call-header {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 10;
  height: 82px;
  padding: calc(12px + env(safe-area-inset-top)) 14px 8px;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  background: linear-gradient(180deg, rgba(3, 6, 11, 0.92), transparent);
}
.circle-button {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 15, 24, 0.54);
  display: grid;
  place-items: center;
}
.circle-button svg {
  width: 20px;
}
.call-heading {
  text-align: center;
}
.call-heading strong {
  display: block;
  font-size: 14px;
}
.call-heading span {
  display: block;
  color: #8d9aae;
  font-size: 10px;
  margin-top: 3px;
}
.live-stage {
  position: absolute;
  inset: 0 0 112px;
  overflow: hidden;
  background: #070a10;
}
.call-preview,
.remote-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #05070b;
}
.remote-video {
  z-index: 2;
}
.local-video {
  position: absolute;
  z-index: 7;
  width: 92px;
  height: 132px;
  right: 14px;
  bottom: 18px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #111;
}
.stage-vignette {
  position: absolute;
  z-index: 4;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(2, 5, 9, 0.2),
    transparent 25%,
    transparent 65%,
    rgba(2, 5, 9, 0.78)
  );
  pointer-events: none;
}
.live-pill {
  position: absolute;
  z-index: 6;
  top: 96px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(9, 14, 23, 0.63);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  font-size: 10px;
  color: #c7d1df;
}
.live-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f0b14e;
}
.live-pill.live i {
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}
.creation-card {
  position: absolute;
  z-index: 7;
  left: 14px;
  right: 14px;
  bottom: 18px;
  border-radius: 22px;
  padding: 15px;
  background: rgba(10, 15, 25, 0.82);
  backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
.creation-head {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 10px;
  align-items: center;
}
.creation-head strong {
  font-size: 13px;
}
.creation-head p {
  margin: 4px 0 0;
  color: #8592a6;
  font-size: 10px;
  line-height: 1.5;
}
.creation-head > b {
  font-size: 10px;
  color: #8290a5;
}
.loader-ring {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(109, 230, 255, 0.18);
  display: grid;
  place-items: center;
  animation: spin 2.2s linear infinite;
}
.loader-ring span {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(109, 230, 255, 0.18);
  border-top-color: var(--cyan);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.progress-track {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  margin: 14px 0 10px;
  overflow: hidden;
}
.progress-track i {
  display: block;
  height: 100%;
  width: 12%;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 0 14px rgba(109, 230, 255, 0.5);
  transition: width 0.35s;
}
.progress-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}
.progress-steps span {
  font-size: 9px;
  color: #505d70;
  text-align: center;
}
.progress-steps .active {
  color: #d6f8ff;
}
.progress-steps .done {
  color: #7fa4bb;
}
.talking-hint {
  position: absolute;
  z-index: 7;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(8, 14, 23, 0.74);
  border: 1px solid rgba(109, 230, 255, 0.18);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
}
.sound-wave {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 14px;
}
.sound-wave i {
  width: 2px;
  height: 5px;
  background: var(--cyan);
  border-radius: 3px;
  animation: wave 0.9s ease-in-out infinite alternate;
}
.sound-wave i:nth-child(2) {
  animation-delay: 0.12s;
}
.sound-wave i:nth-child(3) {
  animation-delay: 0.24s;
}
.sound-wave i:nth-child(4) {
  animation-delay: 0.36s;
}
.sound-wave i:nth-child(5) {
  animation-delay: 0.48s;
}
@keyframes wave {
  to {
    height: 14px;
  }
}
.elapsed {
  position: absolute;
  z-index: 7;
  left: 50%;
  top: 98px;
  transform: translateX(-50%);
  font-size: 11px;
  color: #c9d4e3;
}
.control-tray {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 112px;
  padding: 12px 46px calc(12px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 1fr 70px 1fr;
  align-items: center;
  background: linear-gradient(180deg, rgba(5, 8, 13, 0.7), #04070c 44%);
  z-index: 9;
}
.control-button {
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.control-icon {
  width: 50px;
  height: 50px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}
.control-icon svg {
  width: 22px;
}
.control-button small {
  font-size: 9px;
  color: #788598;
}
.hangup-button {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  border: 0;
  background: linear-gradient(145deg, #ff6f7d, #df4054);
  display: grid;
  place-items: center;
  box-shadow: 0 14px 28px rgba(223, 64, 84, 0.22);
}
.hangup-button svg {
  width: 25px;
}
.debug-drawer {
  position: absolute;
  z-index: 30;
  left: 10px;
  right: 10px;
  bottom: 10px;
  max-height: 64vh;
  border-radius: 24px;
  background: rgba(9, 13, 22, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 14px 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}
.drawer-handle,
.sheet-handle {
  width: 38px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  margin: 0 auto 12px;
}
.drawer-head,
.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.drawer-head strong,
.sheet-head strong {
  font-size: 16px;
}
.drawer-head button,
.sheet-head button {
  border: 0;
  background: transparent;
  color: #83e8ff;
  font-size: 12px;
}
.debug-drawer pre {
  white-space: pre-wrap;
  max-height: 46vh;
  overflow: auto;
  font-size: 10px;
  line-height: 1.6;
  color: #9aa9bc;
  background: #05080e;
  border-radius: 14px;
  padding: 10px;
}
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 94;
  background: rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(5px);
}
.bottom-sheet {
  position: fixed;
  z-index: 999;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, 480px);
  height: auto;
  max-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  border-radius: 28px 28px 0 0;
  background: linear-gradient(180deg, #141b2a, #080c14 72%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-bottom: 0;
  padding: 10px 16px calc(32px + env(safe-area-inset-bottom));
  box-shadow: 0 -24px 80px rgba(0, 0, 0, 0.45);
}
.bottom-sheet .sheet-head {
  position: sticky;
  top: -10px;
  z-index: 4;
  background: #141b2a;
}
body.sheet-open {
  overflow: hidden;
}
body.sheet-open .v13-tabbar,
body.sheet-open .mobile-bottom-nav {
  visibility: hidden !important;
  pointer-events: none !important;
}
.sheet-head {
  height: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 10px;
}
.option-list {
  display: grid;
  gap: 8px;
}
.option-item {
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 16px;
  padding: 12px 14px;
  text-align: left;
  display: grid;
  grid-template-columns: 1fr 18px;
  position: relative;
}
.option-item strong {
  font-size: 13px;
}
.option-item span {
  grid-column: 1;
  display: block;
  color: #7f8da1;
  font-size: 10px;
  margin-top: 4px;
}
.option-item i {
  grid-column: 2;
  grid-row: 1/3;
  align-self: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #4a586c;
}
.option-item.active {
  border-color: rgba(109, 230, 255, 0.26);
  background: rgba(109, 230, 255, 0.05);
}
.option-item.active i {
  border: 4px solid var(--cyan);
}
.persona-sheet-tip,
.login-note {
  font-size: 10px;
  line-height: 1.6;
  color: #748196;
}
.persona-edit-sheet textarea {
  width: 100%;
  min-height: 210px;
  resize: vertical;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #070b12;
  color: #dce6f5;
  padding: 13px;
  outline: none;
  line-height: 1.7;
  font-size: 12px;
}
.account-profile {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
}
.profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(145deg, #273653, #101624);
  display: grid;
  place-items: center;
  background-size: cover;
  background-position: center;
}
.account-profile div strong {
  display: block;
  font-size: 13px;
}
.account-profile div small {
  display: block;
  color: #758298;
  font-size: 10px;
  margin-top: 4px;
}
.account-profile button {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  border-radius: 10px;
  color: #8f9cb0;
  padding: 7px 9px;
  font-size: 10px;
}
.account-history-button {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 17px;
  padding: 12px;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 9px;
  text-align: left;
}
.account-history-icon {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(109, 230, 255, 0.06);
  color: #8ceeff;
}
.account-history-copy strong {
  display: block;
  font-size: 13px;
}
.account-history-copy small {
  display: block;
  color: #6f7c91;
  font-size: 10px;
  margin-top: 3px;
}
.login-hero {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 13px 0;
}
.login-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(
    145deg,
    rgba(109, 230, 255, 0.22),
    rgba(118, 118, 255, 0.14)
  );
  border: 1px solid rgba(135, 225, 255, 0.22);
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #dffaff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.login-hero strong {
  display: block;
  font-size: 13px;
}
.login-hero small {
  display: block;
  color: #738095;
  font-size: 10px;
  margin-top: 4px;
}
.password-auth-card {
  border: 1px solid rgba(255, 255, 255, 0.075);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.018)
  );
  border-radius: 18px;
  padding: 12px;
  margin-top: 2px;
}
.auth-mode-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  margin-bottom: 10px;
}
.auth-mode-row button {
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #718096;
  font-size: 11px;
  font-weight: 700;
}
.auth-mode-row button.active {
  background: rgba(109, 230, 255, 0.11);
  color: #dffaff;
  box-shadow: inset 0 0 0 1px rgba(109, 230, 255, 0.12);
}
.auth-field {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}
.auth-field:last-of-type {
  border-bottom: 0;
}
.auth-field span {
  font-size: 10px;
  color: #7f8da1;
}
.auth-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #edf6ff;
  font-size: 12px;
}
.auth-field input::placeholder {
  color: #4e5a6c;
}
.password-submit-button {
  width: 100%;
  height: 45px;
  border: 0;
  border-radius: 13px;
  margin-top: 10px;
  background: linear-gradient(135deg, #dff9ff, #9fd6ff);
  color: #07101b;
  font-weight: 850;
  box-shadow: 0 10px 30px rgba(106, 201, 255, 0.14);
}
.login-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #4f5d70;
  font-size: 9px;
  margin: 12px 0 2px;
}
.login-divider:before,
.login-divider:after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, 0.055);
}
.wechat-login-button,
.local-login-button {
  width: 100%;
  height: 46px;
  border-radius: 14px;
  margin-top: 8px;
}
.wechat-login-button {
  border: 1px solid rgba(71, 207, 119, 0.18);
  background: rgba(38, 188, 94, 0.1);
  color: #baf8cf;
  padding: 0 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.wechat-login-button:disabled {
  opacity: 0.4;
}
.local-login-button {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #a9b4c5;
}
.history-full-list {
  display: grid;
  gap: 9px;
}
.history-row {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 0;
}
.history-row img {
  width: 50px;
  height: 58px;
  object-fit: cover;
  border-radius: 13px;
  background: #111;
}
.history-row strong {
  display: block;
  font-size: 12px;
}
.history-row small {
  display: block;
  color: #6f7c90;
  font-size: 10px;
  margin-top: 4px;
}
.history-row-actions {
  display: flex;
  gap: 5px;
}
.history-row-actions button {
  border-radius: 9px;
  padding: 6px 8px;
  font-size: 10px;
}
.history-row-actions .use {
  border: 1px solid rgba(109, 230, 255, 0.18);
  background: rgba(109, 230, 255, 0.05);
  color: #a8f4ff;
}
.history-row-actions .delete {
  border: 1px solid rgba(255, 94, 108, 0.15);
  background: rgba(255, 94, 108, 0.04);
  color: #ff9aa5;
}
.toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px);
  max-width: calc(100vw - 32px);
  padding: 11px 14px;
  border-radius: 14px;
  background: rgba(11, 16, 25, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.35);
  color: #dce7f5;
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transition: 0.22s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (max-width: 380px) {
  .mobile-shell {
    padding-left: 12px;
    padding-right: 12px;
  }
  .default-human-strip {
    gap: 6px;
  }
  .default-human-media {
    width: 44px;
    height: 44px;
  }
  .portrait-card {
    height: 500px;
  }
  .settings-dock {
    grid-template-columns: 1fr;
  }
  .setting-tile {
    border-right: 0 !important;
  }
  .setting-tile:nth-child(3) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  }
}
@media (min-width: 481px) {
  body:before {
    content: "";
    position: fixed;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 480px;
    transform: translateX(-50%);
    border-left: 1px solid rgba(255, 255, 255, 0.035);
    border-right: 1px solid rgba(255, 255, 255, 0.035);
    pointer-events: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}

/* Login/history empty-state compatibility fix */
.history-empty-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  text-align: left;
}
.history-empty-copy strong {
  display: block;
}
.history-empty-copy small {
  display: block;
  color: var(--muted, #8a94aa);
  font-size: 11px;
  line-height: 1.35;
}

/* Live call status layout: keep badges off the avatar face. */
.call-screen .live-pill {
  top: 96px;
  left: auto;
  right: clamp(18px, 9vw, 46px);
  transform: none;
  pointer-events: none;
}
.call-screen .elapsed {
  top: 98px;
  left: clamp(18px, 9vw, 46px);
  transform: none;
  pointer-events: none;
  min-width: 44px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(9, 14, 23, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  text-align: center;
  line-height: 1;
}

/* Vidu S1 声音库与声音克隆 */
.voice-sheet {
  max-height: 88vh;
}
.voice-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  margin: 2px 0 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.voice-mode-tabs button {
  height: 38px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #7e8da3;
  font-size: 12px;
  font-weight: 700;
}
.voice-mode-tabs button.active {
  background: linear-gradient(
    135deg,
    rgba(89, 222, 255, 0.16),
    rgba(125, 116, 255, 0.13)
  );
  color: #dffaff;
  box-shadow: inset 0 0 0 1px rgba(107, 231, 255, 0.18);
}
.voice-panel-tip {
  margin: 2px 2px 10px;
  color: #718097;
  font-size: 10px;
  line-height: 1.6;
}
.voice-section-label {
  padding: 7px 2px 2px;
  color: #8ea0b8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.voice-section-label:first-child {
  padding-top: 0;
}
.option-item .voice-kind-badge {
  position: absolute;
  right: 38px;
  top: 11px;
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(113, 228, 255, 0.08);
  color: #7ddff7;
  font-size: 9px;
}
.clone-panel {
  display: grid;
  gap: 10px;
}
.clone-intro {
  padding: 13px 14px;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(83, 218, 255, 0.08),
    rgba(126, 112, 255, 0.05)
  );
  border: 1px solid rgba(111, 226, 255, 0.12);
}
.clone-intro strong {
  display: block;
  font-size: 13px;
  color: #e3f8ff;
}
.clone-intro span {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  line-height: 1.6;
  color: #8292a8;
}
.clone-upload-card {
  min-height: 104px;
  border: 1px dashed rgba(115, 223, 255, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px;
  text-align: center;
  cursor: pointer;
}
.clone-upload-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  margin-bottom: 7px;
  background: rgba(93, 225, 255, 0.1);
  color: #7ce6ff;
  font-size: 22px;
  line-height: 1;
}
.clone-upload-card strong {
  font-size: 12px;
  color: #dce9f7;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.clone-upload-card small {
  margin-top: 4px;
  color: #738196;
  font-size: 9px;
}
.clone-audio-preview {
  width: 100%;
  height: 38px;
}
.clone-field {
  display: grid;
  gap: 6px;
}
.clone-field > span {
  font-size: 10px;
  color: #91a0b4;
}
.clone-field > span em {
  font-style: normal;
  color: #657387;
}
.clone-field input,
.clone-field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: #070b12;
  color: #dce6f5;
  padding: 11px 12px;
  outline: none;
  font-size: 12px;
}
.clone-field input:focus,
.clone-field textarea:focus {
  border-color: rgba(103, 226, 255, 0.28);
  box-shadow: 0 0 0 3px rgba(103, 226, 255, 0.05);
}
.clone-field textarea {
  min-height: 82px;
  resize: vertical;
  line-height: 1.55;
}
.clone-submit-button {
  height: 46px;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(135deg, #57d7f5, #6f7cff);
  color: #07101a;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 10px 30px rgba(73, 189, 255, 0.16);
}
.clone-submit-button:disabled {
  opacity: 0.48;
  box-shadow: none;
}
.clone-status {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(108, 226, 255, 0.06);
  border: 1px solid rgba(108, 226, 255, 0.12);
  font-size: 10px;
  line-height: 1.55;
  color: #93dfee;
}
.clone-status.error {
  background: rgba(255, 99, 122, 0.06);
  border-color: rgba(255, 99, 122, 0.16);
  color: #ff9cad;
}
.clone-consent {
  margin: 0;
  color: #657387;
  font-size: 9px;
  line-height: 1.55;
  text-align: center;
}

/* Voice clone v2: upload + direct microphone recording */
.clone-source-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.clone-source-button {
  min-width: 0;
  min-height: 62px;
  border: 1px solid rgba(112, 224, 255, 0.15);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.025);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  color: #dbeafa;
  text-align: left;
  cursor: pointer;
}
.clone-source-button > span:last-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.clone-source-button strong {
  font-size: 11px;
}
.clone-source-button small {
  font-size: 9px;
  color: #738399;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.clone-source-icon {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(93, 225, 255, 0.09);
  color: #7be7ff;
  font-size: 19px;
  line-height: 1;
}
.clone-source-icon.mic {
  font-size: 12px;
  color: #ff8293;
  background: rgba(255, 101, 125, 0.09);
}
.clone-record-button.recording {
  border-color: rgba(255, 95, 120, 0.34);
  background: rgba(255, 79, 108, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 95, 120, 0.08);
}
.clone-record-button.recording .clone-source-icon {
  animation: clonePulse 1s ease-in-out infinite;
}
.clone-record-meter {
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255, 96, 119, 0.15);
  background: rgba(255, 72, 100, 0.05);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  color: #ffb1bd;
}
.clone-record-meter[hidden] {
  display: none;
}
.clone-record-meter strong {
  font-size: 10px;
}
.clone-record-meter time {
  font-size: 10px;
  color: #8d9aad;
  font-variant-numeric: tabular-nums;
}
.clone-record-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5f79;
  box-shadow: 0 0 0 5px rgba(255, 95, 121, 0.08);
  animation: clonePulse 1s ease-in-out infinite;
}
.clone-sample-card {
  min-height: 82px;
  cursor: default;
}
.clone-sample-card .clone-upload-icon {
  margin-bottom: 5px;
}
@keyframes clonePulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.88);
  }
}
@media (max-width: 360px) {
  .clone-source-actions {
    grid-template-columns: 1fr;
  }
  .clone-source-button {
    min-height: 56px;
  }
}

/* Legacy billing styles; V4 overrides below */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.billing-entry {
  height: 46px;
  min-width: 76px;
  border: 1px solid rgba(109, 230, 255, 0.15);
  border-radius: 16px;
  background: linear-gradient(
    180deg,
    rgba(109, 230, 255, 0.07),
    rgba(109, 230, 255, 0.025)
  );
  padding: 5px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
}
.billing-entry small {
  font-size: 8px;
  color: #718097;
  line-height: 1;
}
.billing-entry strong {
  margin-top: 4px;
  font-size: 11px;
  color: #aaf4ff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.quota-remaining {
  position: absolute;
  left: 50%;
  top: 96px;
  transform: translateX(-50%);
  z-index: 9;
  min-width: 88px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(9, 14, 23, 0.68);
  border: 1px solid rgba(109, 230, 255, 0.16);
  backdrop-filter: blur(14px);
  color: #c8f8ff;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.billing-sheet {
  max-height: 92vh;
  overflow-y: auto;
}
.billing-balance-card {
  padding: 15px 16px;
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(78, 210, 255, 0.11),
    rgba(115, 105, 255, 0.08)
  );
  border: 1px solid rgba(106, 226, 255, 0.16);
  display: grid;
  gap: 5px;
}
.billing-balance-card span {
  font-size: 10px;
  color: #8192a9;
}
.billing-balance-card strong {
  font-size: 25px;
  letter-spacing: -0.6px;
  color: #e7fbff;
  font-variant-numeric: tabular-nums;
}
.billing-balance-card small {
  font-size: 9px;
  color: #75849a;
  line-height: 1.45;
}
.billing-plan-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 11px;
}
.billing-plan {
  min-width: 0;
  min-height: 90px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.025);
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  transition: 0.18s;
}
.billing-plan.active {
  border-color: rgba(109, 230, 255, 0.42);
  background: linear-gradient(
    145deg,
    rgba(80, 218, 255, 0.11),
    rgba(111, 111, 255, 0.07)
  );
  box-shadow: inset 0 0 0 1px rgba(109, 230, 255, 0.07);
}
.billing-plan.disabled {
  opacity: 0.45;
}
.billing-plan span b {
  display: block;
  font-size: 12px;
}
.billing-plan span small {
  display: block;
  margin-top: 4px;
  color: #718097;
  font-size: 8px;
  line-height: 1.35;
}
.billing-plan > strong {
  font-size: 18px;
  color: #f2fbff;
}
.billing-plan > strong em {
  font-style: normal;
  font-size: 9px;
  color: #82e8ff;
  margin-left: 6px;
}
.billing-pay-card {
  margin-top: 11px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 20px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.018)
  );
  padding: 13px;
}
.billing-selected-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.billing-selected-head span {
  font-size: 12px;
  font-weight: 750;
}
.billing-selected-head strong {
  font-size: 18px;
  color: #8cecff;
}
.billing-qr {
  display: block;
  width: min(100%, 290px);
  max-height: 330px;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 15px;
  background: #fff;
}
.billing-no-qr {
  min-height: 160px;
  border: 1px dashed rgba(255, 194, 87, 0.25);
  border-radius: 15px;
  background: rgba(255, 183, 66, 0.05);
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: #eac788;
  font-size: 11px;
  line-height: 1.65;
}
.billing-pay-card > p {
  margin: 9px 2px 10px;
  text-align: center;
  color: #8998ad;
  font-size: 9px;
}
.billing-note-field {
  display: grid;
  gap: 6px;
}
.billing-note-field span {
  font-size: 9px;
  color: #7e8da2;
}
.billing-note-field input {
  width: 100%;
  height: 43px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  background: #070b12;
  color: #e2edf8;
  padding: 0 11px;
  outline: 0;
  font-size: 11px;
}
.billing-note-field input:focus {
  border-color: rgba(109, 230, 255, 0.3);
  box-shadow: 0 0 0 3px rgba(109, 230, 255, 0.05);
}
.billing-submit {
  width: 100%;
  height: 46px;
  margin-top: 10px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #59ddf8, #7479ff);
  color: #06101a;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(75, 187, 255, 0.16);
}
.billing-submit:disabled {
  opacity: 0.42;
  box-shadow: none;
}
.billing-order-status {
  margin-top: 9px;
  padding: 10px 11px;
  border-radius: 12px;
  background: rgba(255, 190, 74, 0.07);
  border: 1px solid rgba(255, 190, 74, 0.15);
  color: #efc97d;
  font-size: 9px;
  line-height: 1.55;
}
.billing-review-tip {
  margin: 10px 3px 2px;
  color: #657387;
  font-size: 9px;
  line-height: 1.55;
  text-align: center;
}
@media (max-width: 370px) {
  .billing-entry {
    min-width: 68px;
    padding: 5px 7px;
  }
  .billing-plan-list {
    grid-template-columns: 1fr;
  }
  .quota-remaining {
    top: 132px;
  }
  .call-screen .live-pill,
  .call-screen .elapsed {
    top: 96px;
  }
}

/* Points + conversation recording v4 */
.header-actions .billing-entry {
  min-width: 92px;
  align-items: flex-end;
}
.header-actions .billing-entry strong {
  font-size: 11px;
  white-space: nowrap;
}
.quota-remaining {
  min-width: 128px;
  top: 132px;
  font-size: 12px;
  color: #d8fbff;
}
.recording-indicator {
  position: absolute;
  z-index: 9;
  left: clamp(18px, 9vw, 46px);
  top: 132px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(20, 7, 12, 0.7);
  border: 1px solid rgba(255, 95, 119, 0.22);
  backdrop-filter: blur(14px);
  font-size: 10px;
  color: #ffb1bd;
}
.recording-indicator i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff5f79;
  box-shadow: 0 0 0 4px rgba(255, 95, 121, 0.1);
  animation: clonePulse 1s ease-in-out infinite;
}
.recording-indicator time {
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.control-tray {
  grid-template-columns: 1fr 1fr 72px 1fr;
  gap: 3px;
  padding-left: 14px;
  padding-right: 14px;
}
.control-button .record-dot-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ff6278;
  box-shadow: 0 0 0 5px rgba(255, 98, 120, 0.08);
}
.record-control.recording .control-icon {
  border-color: rgba(255, 98, 120, 0.38);
  background: rgba(255, 98, 120, 0.1);
}
.record-control.recording .record-dot-icon {
  border-radius: 4px;
  animation: clonePulse 1s ease-in-out infinite;
}
.record-control.recording small {
  color: #ff9cab;
}
.last-recording-entry {
  width: 100%;
  min-height: 64px;
  margin-top: 10px;
  border: 1px solid rgba(255, 99, 122, 0.14);
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(255, 91, 118, 0.07),
    rgba(115, 105, 255, 0.05)
  );
  display: grid;
  grid-template-columns: 42px 1fr 18px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  text-align: left;
}
.last-recording-icon {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: rgba(255, 91, 118, 0.1);
  display: grid;
  place-items: center;
  color: #ff91a1;
  font-size: 9px;
  font-weight: 900;
}
.last-recording-entry strong {
  display: block;
  font-size: 11px;
}
.last-recording-entry small {
  display: block;
  margin-top: 4px;
  color: #758399;
  font-size: 9px;
}
.last-recording-entry > b {
  color: #718099;
  font-size: 18px;
}
.recording-sheet {
  max-height: 92vh;
}
.recording-result-card {
  display: grid;
  gap: 11px;
}
.recording-result-card video {
  width: 100%;
  max-height: 58vh;
  border-radius: 18px;
  background: #020408;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.recording-result-meta {
  padding: 10px 12px;
  border-radius: 13px;
  background: rgba(106, 226, 255, 0.05);
  border: 1px solid rgba(106, 226, 255, 0.11);
  color: #9edfeb;
  font-size: 10px;
  text-align: center;
}
.recording-actions {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 8px;
}
.recording-actions button {
  min-height: 46px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 850;
}
.recording-save {
  border: 0;
  background: linear-gradient(135deg, #59ddf8, #7479ff);
  color: #06101a;
}
.recording-discard {
  border: 1px solid rgba(255, 105, 126, 0.18);
  background: rgba(255, 105, 126, 0.06);
  color: #ff9cac;
}
.recording-result-card > p {
  margin: 0;
  color: #657387;
  font-size: 9px;
  line-height: 1.55;
  text-align: center;
}
.billing-plan > strong em {
  font-size: 10px;
}
.billing-balance-card strong {
  font-size: 24px;
}
.billing-balance-card small {
  color: #8495ab;
}
@media (max-width: 370px) {
  .control-tray {
    padding-left: 6px;
    padding-right: 6px;
  }
  .control-icon {
    width: 46px;
    height: 46px;
  }
  .hangup-button {
    width: 58px;
    height: 58px;
  }
  .quota-remaining {
    top: 132px;
  }
  .recording-indicator {
    top: 132px;
  }
  .recording-actions {
    grid-template-columns: 1fr;
  }
}


/* V11.5 mobile-first navigation refresh */
.mobile-shell {
  padding-bottom: calc(106px + env(safe-area-inset-bottom));
}
.app-header {
  padding-bottom: 16px;
}
.header-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.header-online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(109, 230, 255, 0.14);
  border-radius: 999px;
  background: rgba(9, 18, 30, 0.58);
  color: #8fa5bc;
  font-size: 10px;
  letter-spacing: .2px;
  box-shadow: inset 0 1px rgba(255,255,255,.035);
}
.header-online i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #62e7b1;
  box-shadow: 0 0 10px rgba(98,231,177,.72);
}
.mobile-bottom-nav {
  position: fixed;
  z-index: 45;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, 480px);
  height: calc(72px + env(safe-area-inset-bottom));
  padding: 7px 8px env(safe-area-inset-bottom);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: linear-gradient(180deg, rgba(7,11,18,.82), rgba(5,8,14,.98) 28%);
  border-top: 1px solid rgba(124, 198, 255, .11);
  box-shadow: 0 -18px 42px rgba(0,0,0,.34);
  backdrop-filter: blur(22px) saturate(125%);
  -webkit-backdrop-filter: blur(22px) saturate(125%);
}
.mobile-nav-item {
  appearance: none;
  border: 0;
  min-width: 0;
  padding: 0;
  background: transparent;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #65758a;
  cursor: pointer;
}
.mobile-nav-item small {
  font-size: 9px;
  line-height: 1;
  font-weight: 650;
  letter-spacing: .1px;
  white-space: nowrap;
}
.mobile-nav-icon {
  width: 29px;
  height: 29px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  color: #72849a;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  transition: .18s ease;
}
.mobile-nav-item.active,
.mobile-nav-item:active,
.mobile-nav-item:hover {
  color: #c8f8ff;
}
.mobile-nav-item.active .mobile-nav-icon {
  color: #d9fbff;
  border-color: rgba(109,230,255,.2);
  background: linear-gradient(145deg, rgba(41,104,137,.62), rgba(76,68,150,.38));
  box-shadow: 0 7px 20px rgba(56,163,218,.13), inset 0 1px rgba(255,255,255,.05);
}
.mobile-nav-play {
  font-size: 11px;
  padding-left: 2px;
}
.mobile-bottom-nav .account-avatar {
  width: 29px;
  height: 29px;
  border-radius: 10px;
  font-size: 12px;
  color: inherit;
}
.mobile-bottom-nav .account-avatar.has-photo {
  border-radius: 10px;
}
@media (min-width: 520px) {
  .mobile-bottom-nav {
    bottom: 10px;
    border: 1px solid rgba(124,198,255,.12);
    width: min(calc(100% - 20px), 460px);
    border-radius: 22px;
    padding-bottom: 7px;
    height: 72px;
  }
}
