:root {
  color-scheme: light;
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont,
    sans-serif;
  background: #f4f6f8;
  color: #17202a;
}

* {
  box-sizing: border-box;
}

[v-cloak] {
  display: none;
}

body {
  min-height: 100vh;
  margin: 0;
}

button {
  font: inherit;
}

.interview-shell {
  width: min(1120px, calc(100vw - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 32px 0;
  display: grid;
  grid-template-columns: minmax(340px, 420px) 1fr;
  gap: 24px;
}

.call-card,
.transcript-card {
  border: 1px solid #dce4ec;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(23, 32, 42, 0.08);
}

.call-card {
  min-height: 640px;
  padding: 28px;
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 24px;
  position: relative;
  overflow: hidden;
}

.call-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 170px;
  background: linear-gradient(135deg, #e8f3ff 0%, #edf8f0 55%, #fff7e8 100%);
  z-index: 0;
}

.call-card > * {
  position: relative;
  z-index: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #17202a;
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(23, 32, 42, 0.22);
}

.brand-mark-core {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 800;
}

.brand-kicker {
  margin: 0 0 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 30px;
  line-height: 1.2;
}

h2 {
  font-size: 22px;
}

.status-pill {
  width: fit-content;
  min-height: 38px;
  padding: 8px 13px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #d7e0e8;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #334155;
  font-size: 14px;
  font-weight: 650;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #94a3b8;
}

.status-dot.listening {
  background: #16a34a;
  box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.14);
}

.status-dot.speaking,
.status-dot.processing {
  background: #f59e0b;
  box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.16);
}

.voice-logo {
  align-self: center;
  justify-self: center;
  width: min(260px, 68vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  position: relative;
}

.voice-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid #b9c7d6;
  opacity: 0.82;
}

.voice-ring-a {
  inset: 10px;
}

.voice-ring-b {
  inset: 32px;
  border-color: #c8dccf;
}

.voice-face {
  width: 150px;
  height: 150px;
  border-radius: 46px;
  display: grid;
  place-items: center;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: #233142;
  color: #ffffff;
  box-shadow: 0 22px 46px rgba(35, 49, 66, 0.25);
  font-size: 42px;
  font-weight: 800;
}

.voice-logo.active .voice-ring-a {
  animation: breatheA 1.5s ease-in-out infinite;
}

.voice-logo.active .voice-ring-b {
  animation: breatheB 1.5s ease-in-out infinite;
}

.meter-wrap {
  display: grid;
  gap: 10px;
}

.meter-label {
  min-height: 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #64748b;
  font-size: 13px;
}

.meter-label strong {
  color: #334155;
  font-weight: 650;
}

.meter {
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: #edf2f7;
}

.meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #16a34a 0%, #2f80ed 100%);
  transition: width 80ms linear;
}

.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.call-button {
  width: 88px;
  height: 88px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 18px 32px rgba(23, 32, 42, 0.2);
  transition:
    transform 160ms ease,
    opacity 160ms ease,
    box-shadow 160ms ease;
}

.call-button svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.call-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 22px 38px rgba(23, 32, 42, 0.24);
}

.call-button:disabled {
  cursor: not-allowed;
  opacity: 0.36;
  box-shadow: none;
}

.call-button.start {
  width: 104px;
  height: 104px;
  background: #16a34a;
}

.call-button.start svg {
  width: 46px;
  height: 46px;
}

.call-button.hangup {
  background: #dc2626;
}

.call-button.hangup svg {
  transform: rotate(135deg);
}

.transcript-card {
  min-height: 640px;
  padding: 24px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
  overflow: hidden;
}

.transcript-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.turn-count {
  min-width: 64px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef2f6;
  color: #475569;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.message-list {
  min-height: 0;
  max-height: calc(100vh - 154px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-right: 4px;
}

.message {
  width: min(88%, 560px);
  padding: 13px 15px;
  border-radius: 8px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.message p {
  margin: 4px 0 0;
  font-size: 15px;
}

.message-role {
  display: block;
  color: inherit;
  opacity: 0.72;
  font-size: 12px;
  font-weight: 800;
}

.message.ai {
  align-self: flex-start;
  background: #eef5ff;
  color: #1d3557;
}

.message.user {
  align-self: flex-end;
  background: #ecfdf3;
  color: #14532d;
}

.message.system {
  align-self: center;
  width: auto;
  max-width: 92%;
  background: #f1f5f9;
  color: #475569;
  text-align: center;
}

.empty-state {
  height: 100%;
  min-height: 420px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  color: #64748b;
  text-align: center;
}

.empty-state p {
  margin: 0;
}

.empty-icon {
  width: 92px;
  height: 92px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  background: #edf2f7;
  color: #233142;
  font-size: 30px;
  font-weight: 900;
}

@keyframes breatheA {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.72;
  }

  50% {
    transform: scale(1.08);
    opacity: 0.3;
  }
}

@keyframes breatheB {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.72;
  }

  50% {
    transform: scale(1.13);
    opacity: 0.24;
  }
}

@media (max-width: 840px) {
  .interview-shell {
    grid-template-columns: 1fr;
    padding: 16px 0;
  }

  .call-card,
  .transcript-card {
    min-height: auto;
  }

  .call-card {
    gap: 20px;
  }

  .voice-logo {
    width: min(230px, 70vw);
  }

  .message-list {
    max-height: 480px;
  }
}

@media (max-width: 480px) {
  .interview-shell {
    width: min(100vw - 20px, 1120px);
  }

  .call-card,
  .transcript-card {
    padding: 20px;
  }

  h1 {
    font-size: 25px;
  }

  .brand-mark {
    width: 62px;
    height: 62px;
    border-radius: 16px;
  }

  .brand-mark-core {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }

  .meter-label {
    flex-direction: column;
    gap: 3px;
  }

  .call-button.start {
    width: 92px;
    height: 92px;
  }

  .call-button {
    width: 76px;
    height: 76px;
  }
}
