.single-thread {
  padding: 18px 17px;
  border: 1px solid #99606b35;
  border-radius: 10px;
  background: linear-gradient(145deg, #6d31372b, #ffffff02);
  position: relative;
  overflow: hidden;
}

.single-thread::after {
  content: "";
  position: absolute;
  width: 70px;
  height: 70px;
  border: 1px solid #a66d7830;
  border-radius: 50%;
  right: -30px;
  top: -35px;
}

.single-thread span {
  display: block;
  color: #917b83;
  font-size: 9px;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.single-thread strong {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: #ead8d7;
}

.single-thread small {
  display: block;
  font-size: 10px;
  color: #84757e;
  margin-top: 8px;
}

.sidebar-space {
  flex: 1;
  min-height: 40px;
}

.memory-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.memory-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.8;
  color: #d3c2ca;
}

.memory-list small {
  display: block;
  color: #806f78;
  font-size: 9px;
  letter-spacing: 1px;
  margin-top: 4px;
}

.memory-status {
  color: #a98992;
  font-size: 10px;
  margin-top: 15px;
}

.app {
  height: var(--app-height, 100dvh);
}

.danger-action {
  color: #ad8589;
}

.danger-action:hover {
  color: #e1a3a5;
}

.danger-primary {
  background: #7f3542;
}

.danger-primary:hover {
  background: #99404f;
}

.call-button {
  margin-left: auto;
}

.chat-header .export-button {
  margin-left: 0;
}

.composer .voice-input {
  color: #bba9b0;
  background: transparent;
}

.composer .voice-input:hover {
  background: #ffffff0a;
}

.composer .voice-input.listening {
  color: #ffe9ea;
  background: #8c4352;
  animation: voice-pulse 1.35s ease-in-out infinite;
}

.keyboard-mode-icon {
  display: none;
}

.composer.voice-mode .voice-mode-icon {
  display: none;
}

.composer.voice-mode .keyboard-mode-icon {
  display: block;
}

.composer.voice-mode #send {
  display: none;
}

.composer .voice-hold {
  width: auto;
  height: 42px;
  flex: 1;
  border-radius: 9px;
  color: #dfd3d7;
  background: #2b272c;
  border: 1px solid #ffffff0a;
  font-size: 14px;
  letter-spacing: 2px;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.composer .voice-hold:hover {
  background: #322c32;
}

.composer .voice-hold.recording {
  color: #fff0f1;
  background: #8c4352;
  transform: scale(.99);
}

.composer .voice-hold.cancel-recording {
  background: #5b5156;
}

.bubble.voice-bubble {
  padding: 0;
  overflow: hidden;
}

.voice-play {
  width: var(--voice-width, 110px);
  min-width: 92px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 15px;
  color: #f4e7e9;
}

.voice-duration {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  opacity: .84;
}

.voice-waves {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 20px;
}

.voice-waves i {
  width: 2px;
  border-radius: 2px;
  background: currentColor;
  height: 7px;
}

.voice-waves i:nth-child(2) {
  height: 13px;
}

.voice-waves i:nth-child(3) {
  height: 19px;
}

.voice-play.playing .voice-waves i {
  animation: voice-bars .7s ease-in-out infinite alternate;
}

.voice-play.playing .voice-waves i:nth-child(2) {
  animation-delay: .15s;
}

.voice-play.playing .voice-waves i:nth-child(3) {
  animation-delay: .3s;
}

@keyframes voice-bars {
  to { transform: scaleY(.45); opacity: .6; }
}

@keyframes voice-pulse {
  50% { box-shadow: 0 0 0 8px #8c435222; }
}

.call-screen {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: center;
  padding: calc(24px + env(safe-area-inset-top)) 24px calc(24px + env(safe-area-inset-bottom));
  color: #f1e3df;
  background: radial-gradient(circle at 50% 32%, #542d3a 0, #21191f 34%, #110f12 78%);
}

.call-card {
  width: min(420px, 100%);
  min-height: min(720px, calc(100dvh - 48px));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.call-kicker {
  color: #a6818a;
  font: 9px system-ui;
  letter-spacing: 5px;
  margin-bottom: 35px;
}

.call-avatar {
  width: 116px;
  height: 116px;
  display: grid;
  place-items: center;
  position: relative;
  margin-bottom: 24px;
}

.call-avatar span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 2;
  border: 1px solid #bd89974d;
  border-radius: 50%;
  color: #f0cdc3;
  background: linear-gradient(145deg, #734653, #3a2830);
  font: 34px "Songti SC", SimSun, serif;
}

.call-avatar i {
  position: absolute;
  inset: 9px;
  border: 1px solid #aa6d7d35;
  border-radius: 50%;
  animation: call-ring 2.2s ease-out infinite;
}

.call-avatar i:last-child {
  animation-delay: 1.1s;
}

@keyframes call-ring {
  from { transform: scale(.72); opacity: .8; }
  to { transform: scale(1.22); opacity: 0; }
}

.call-card h2 {
  margin: 0;
  font: 30px "Songti SC", SimSun, serif;
  letter-spacing: 5px;
}

.call-status {
  min-height: 24px;
  margin: 13px 0 0;
  color: #d0a8b0;
  font-size: 12px;
  letter-spacing: 2px;
}

.call-transcript {
  width: 100%;
  min-height: 58px;
  margin: 26px 0 18px;
  color: #b8a8ae;
  font-size: 14px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.call-orb {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #f8e8e9;
  background: #8b4352;
  box-shadow: 0 12px 35px #0005;
}

.call-orb svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.call-orb.listening {
  animation: voice-pulse 1.35s ease-in-out infinite;
}

.call-hint {
  margin-top: 14px;
  color: #816f77;
  font-size: 9px;
  letter-spacing: 1px;
}

.call-end {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 55px;
  padding: 12px 21px;
  border-radius: 28px;
  color: #f6dedf;
  background: #74333f;
  font-size: 12px;
}

.call-end svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

@media (max-width: 600px), (pointer: coarse) and (max-width: 1200px) {
  body {
    overflow: hidden;
  }

  .app {
    position: fixed;
    top: var(--app-top, 0px);
    right: 0;
    bottom: auto;
    left: 0;
    height: var(--app-height, 100dvh);
  }

  .call-card {
    min-height: calc(var(--app-height, 100dvh) - 48px);
  }

  .call-transcript {
    margin-top: 20px;
  }
}
