*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100%;
  background: #eef6ff;
  color: #0f2037;
  font-family: Arial, Helvetica, sans-serif;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

input,
select,
textarea,
button {
  max-width: 100%;
}

.voice-auth-login-body {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.96), rgba(235, 244, 255, 0.88) 42%, rgba(221, 236, 255, 0.92) 100%);
}

.voice-shell {
  min-height: 100vh;
  height: 100vh;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  background: #eef6ff;
}

.voice-page {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  padding: 10px 14px;
  overflow: hidden;
}

.voice-device {
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 18px;
}

.voice-sidebar,
.voice-chat {
  border-radius: 18px;
  overflow: hidden;
}

.voice-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 18px;
  color: #eef6ff;
  background: linear-gradient(180deg, #0b1f3a 0%, #08172b 100%);
  border: 1px solid rgba(219, 234, 254, 0.12);
  box-shadow: 0 18px 40px rgba(15, 31, 57, 0.2);
}

.voice-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.voice-sidebar-logo {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.28);
  font-size: 13px;
  font-weight: 800;
}

.voice-sidebar h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
}

.voice-sidebar p {
  margin: 4px 0 0;
  max-width: 170px;
  color: #9fb4d3;
  font-size: 12px;
  line-height: 1.45;
}

.voice-new-conversation {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 12px;
  background: #2563eb;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.24);
  cursor: pointer;
}

.voice-conversation-list {
  display: grid;
  gap: 10px;
}

.voice-conversation-item {
  min-height: 58px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(147, 197, 253, 0.2);
  background: rgba(12, 30, 58, 0.72);
}

.voice-conversation-item.is-active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.36), rgba(12, 30, 58, 0.84));
  border-color: rgba(96, 165, 250, 0.64);
}

.voice-conversation-title,
.voice-conversation-time {
  display: block;
}

.voice-conversation-title {
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.voice-conversation-time {
  margin-top: 5px;
  color: #9db5d8;
  font-size: 11px;
  font-weight: 700;
}

.voice-sidebar-settings {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.voice-session-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(147, 197, 253, 0.2);
  background: rgba(12, 30, 58, 0.72);
}

.voice-session-company {
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.voice-session-user {
  color: #c4d1e7;
  font-size: 12px;
  line-height: 1.45;
}

.voice-session-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.voice-session-logout-form {
  margin: 0;
}

.voice-session-link {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(147, 197, 253, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #eef6ff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.voice-session-link:hover {
  color: #ffffff;
  text-decoration: none;
}

.voice-session-link.is-danger {
  border-color: rgba(248, 113, 113, 0.36);
  color: #fecaca;
}

.voice-auth-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(147, 197, 253, 0.2);
  background: rgba(12, 30, 58, 0.72);
}

.voice-auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.voice-auth-title {
  margin: 0;
}

.voice-auth-status {
  min-height: 38px;
  color: #c4d1e7;
  font-size: 12px;
  line-height: 1.45;
}

.voice-auth-status.is-error {
  color: #fecaca;
}

.voice-auth-status.is-success {
  color: #bbf7d0;
}

.voice-auth-user {
  color: #dbeafe;
  font-size: 11px;
  font-weight: 800;
  text-align: right;
}

.voice-auth-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.voice-auth-login,
.voice-auth-logout {
  min-height: 38px;
  flex: 1 1 0;
  border: none;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.voice-auth-login {
  background: #2563eb;
  color: #ffffff;
}

.voice-auth-logout {
  background: rgba(255, 255, 255, 0.14);
  color: #eef6ff;
  border: 1px solid rgba(147, 197, 253, 0.28);
}

.voice-auth-page {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.voice-auth-panel {
  width: min(520px, 100%);
  display: grid;
  gap: 18px;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid #dbeafe;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 48px rgba(15, 35, 65, 0.14);
  position: relative;
  z-index: 2;
}

.voice-auth-panel-copy {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
}

.voice-auth-panel-copy h1 {
  margin: 8px 0 0;
  color: #1a2f5e;
  font-size: 26px;
  font-weight: 800;
}

.voice-auth-panel-copy p {
  margin: 2px 0 0;
  color: #6b7da6;
  font-size: 14px;
  line-height: 1.6;
}

.voice-auth-company-block {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.voice-auth-form {
  display: grid;
  gap: 12px;
}

.voice-auth-company-memory {
  display: grid;
  gap: 14px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 255, 0.92));
  box-shadow: 0 18px 34px rgba(148, 163, 184, 0.12);
}

.voice-auth-company-memory-copy {
  display: grid;
  gap: 6px;
}

.voice-auth-company-memory-label {
  color: #5f7498;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.voice-auth-company-memory-name {
  color: #17305b;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.voice-auth-company-memory-copy p {
  margin: 0;
  color: #6b7da6;
  font-size: 13px;
  line-height: 1.55;
}

.voice-auth-company-memory-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.voice-auth-company-entry[hidden] {
  display: none;
}

.voice-auth-company-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 36px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.18);
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
}

.voice-auth-feedback {
  min-height: 18px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #dbeafe;
  background: #f8fbff;
  color: #5f738d;
  font-size: 12px;
  line-height: 1.45;
}

.voice-auth-feedback.is-error {
  border-color: #fecaca;
  background: #fff5f5;
  color: #b42318;
}

.voice-auth-feedback.is-success {
  border-color: #b7e4c7;
  background: #f2fbf5;
  color: #1f7a3d;
}

.voice-auth-form-actions {
  display: flex;
  justify-content: center;
  margin-top: 2px;
}

.voice-auth-submit,
.voice-auth-secondary {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
}

.voice-auth-submit {
  border: none;
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 16px 26px rgba(37, 99, 235, 0.24);
}

.voice-auth-secondary {
  border: none;
  background: transparent;
  color: #2563eb;
  text-decoration: none;
  gap: 10px;
}

.voice-auth-secondary:hover {
  color: #1d4ed8;
  text-decoration: none;
}

.voice-auth-login-panel {
  width: min(650px, calc(100vw - 48px));
  gap: 20px;
  padding: 34px 44px 28px;
  border-radius: 26px;
  box-shadow:
    0 28px 60px rgba(36, 77, 149, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.65) inset;
}

.voice-auth-login-shell {
  background:
    radial-gradient(circle at 20% 12%, rgba(255, 255, 255, 0.98), rgba(232, 242, 255, 0.86) 34%, rgba(216, 231, 252, 0.9) 100%);
}

.voice-auth-background {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.voice-auth-molecule {
  position: absolute;
  opacity: 0.26;
  filter: blur(0.2px);
}

.voice-auth-molecule::before,
.voice-auth-molecule::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(186, 212, 245, 0.32);
}

.voice-auth-molecule-left {
  left: -18px;
  top: 70px;
  width: 260px;
  height: 460px;
  background-image:
    radial-gradient(circle at 28px 40px, rgba(191, 219, 254, 0.42) 0, rgba(191, 219, 254, 0.42) 18px, transparent 19px),
    radial-gradient(circle at 86px 96px, rgba(191, 219, 254, 0.42) 0, rgba(191, 219, 254, 0.42) 15px, transparent 16px),
    radial-gradient(circle at 150px 62px, rgba(191, 219, 254, 0.42) 0, rgba(191, 219, 254, 0.42) 13px, transparent 14px),
    radial-gradient(circle at 170px 160px, rgba(191, 219, 254, 0.42) 0, rgba(191, 219, 254, 0.42) 17px, transparent 18px),
    radial-gradient(circle at 64px 224px, rgba(191, 219, 254, 0.42) 0, rgba(191, 219, 254, 0.42) 18px, transparent 19px),
    radial-gradient(circle at 128px 284px, rgba(191, 219, 254, 0.42) 0, rgba(191, 219, 254, 0.42) 15px, transparent 16px),
    linear-gradient(25deg, transparent 47%, rgba(191, 219, 254, 0.35) 48%, rgba(191, 219, 254, 0.35) 50%, transparent 51%),
    linear-gradient(-26deg, transparent 47%, rgba(191, 219, 254, 0.3) 48%, rgba(191, 219, 254, 0.3) 50%, transparent 51%);
  background-size: auto;
  background-repeat: no-repeat;
}

.voice-auth-molecule-right {
  right: -36px;
  top: 0;
  width: 42vw;
  min-width: 320px;
  height: 100%;
  background:
    radial-gradient(circle at 100% 50%, rgba(255, 255, 255, 0.68) 0, rgba(255, 255, 255, 0.68) 22%, transparent 23%),
    radial-gradient(circle at 100% 58%, rgba(191, 219, 254, 0.28) 0, rgba(191, 219, 254, 0.28) 42%, transparent 43%);
}

.voice-auth-petal-cluster {
  position: absolute;
  right: -28px;
  bottom: -40px;
  width: 360px;
  height: 360px;
  opacity: 0.56;
}

.voice-auth-petal {
  position: absolute;
  bottom: 0;
  right: 0;
  transform-origin: bottom right;
  border-radius: 100% 0 100% 0;
  background: linear-gradient(180deg, rgba(130, 214, 245, 0.36), rgba(87, 196, 231, 0.18));
}

.petal-one {
  width: 210px;
  height: 280px;
  transform: rotate(12deg);
}

.petal-two {
  width: 170px;
  height: 250px;
  right: 52px;
  transform: rotate(26deg);
}

.petal-three {
  width: 140px;
  height: 220px;
  right: 126px;
  transform: rotate(38deg);
}

.petal-four {
  width: 236px;
  height: 170px;
  transform: rotate(-14deg);
  background: linear-gradient(180deg, rgba(83, 198, 231, 0.3), rgba(46, 173, 212, 0.12));
}

.voice-auth-brandmark {
  width: 138px;
  height: 138px;
  display: grid;
  place-items: center;
  position: relative;
}

.voice-auth-brandmark-image,
.voice-auth-brandmark-svg {
  width: 100%;
  height: 100%;
}

.voice-auth-brandmark-image {
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(73, 145, 196, 0.16));
}

.voice-auth-brandmark-svg {
  display: none;
}

.voice-auth-brandmark.is-fallback .voice-auth-brandmark-svg {
  display: block;
}

.voice-auth-brandmark-ring {
  fill: rgba(255, 255, 255, 0.72);
  stroke: #afc63a;
  stroke-width: 4;
}

.voice-auth-brandmark-wing {
  fill: #47c0e2;
  opacity: 0.72;
}

.voice-auth-brandmark-wing.wing-b {
  fill: #2ca7cf;
  opacity: 0.44;
}

.voice-auth-brandmark-bird {
  fill: #0c465d;
}

.voice-auth-brandtext {
  margin-top: -8px;
  color: #1a3a6d;
  font-size: 36px;
  font-weight: 500;
  line-height: 1;
}

.voice-auth-field-label {
  margin: 4px 0 0;
  color: #1c325e;
  font-size: 14px;
  font-weight: 800;
}

.voice-auth-input {
  min-height: 56px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  border-radius: 14px;
  border: 1px solid #d7e2f3;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 20px rgba(148, 163, 184, 0.08);
}

.voice-auth-input:focus-within {
  border-color: #6aa5ff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.voice-auth-input-icon,
.voice-auth-password-toggle,
.voice-auth-submit-icon,
.voice-auth-secondary-icon,
.voice-auth-footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.voice-auth-input-icon {
  color: #6981a8;
}

.voice-auth-input-icon svg,
.voice-auth-password-toggle svg,
.voice-auth-submit-icon svg,
.voice-auth-secondary-icon svg,
.voice-auth-footer-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.voice-auth-textfield {
  min-height: 54px;
  padding: 0;
  border: none;
  box-shadow: none;
  background: transparent;
  color: #213862;
  font-size: 14px;
}

.voice-auth-textfield:focus {
  box-shadow: none;
}

.voice-auth-textfield::placeholder {
  color: #95a6c5;
}

.voice-auth-password-toggle {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  color: #6981a8;
  cursor: pointer;
}

.voice-auth-select-wrap {
  grid-template-columns: 48px minmax(0, 1fr) 42px;
}

.voice-auth-select {
  appearance: none;
  cursor: pointer;
}

.voice-auth-select-caret {
  color: #6981a8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.voice-auth-select-caret svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.voice-auth-primary-submit {
  width: 100%;
  min-height: 56px;
  justify-content: space-between;
  padding: 12px 18px 12px 22px;
  border-radius: 14px;
  background: linear-gradient(180deg, #1f6fff 0%, #0c53f0 100%);
  font-size: 16px;
  box-shadow: 0 18px 30px rgba(37, 99, 235, 0.3);
}

.voice-auth-primary-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.voice-auth-memory-submit {
  min-height: 48px;
  padding: 10px 18px;
  border-radius: 14px;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.2);
}

.voice-auth-memory-change {
  min-height: 48px;
  padding: 10px 6px;
}

.voice-auth-submit-icon {
  width: 28px;
  height: 28px;
}

.voice-auth-divider {
  position: relative;
  margin: 4px 0 2px;
  text-align: center;
  color: #7c8cab;
  font-size: 12px;
  font-weight: 800;
}

.voice-auth-divider::before,
.voice-auth-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 26px);
  height: 1px;
  background: #d9e4f4;
}

.voice-auth-divider::before {
  left: 0;
}

.voice-auth-divider::after {
  right: 0;
}

.voice-auth-footer-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 6px;
  color: #667797;
  font-size: 13px;
  font-weight: 500;
}

.voice-auth-footer-icon {
  color: #5e7598;
}

.voice-auth-secondary-icon {
  color: #2f66de;
}

.voice-auth-secondary span:last-child {
  line-height: 1;
}

@media (max-width: 768px) {
  .voice-auth-page {
    padding: 18px;
  }

  .voice-auth-login-panel {
    width: min(100%, calc(100vw - 24px));
    padding: 24px 20px 22px;
    border-radius: 22px;
  }

  .voice-auth-brandmark {
    width: 116px;
    height: 116px;
  }

  .voice-auth-brandtext {
    font-size: 30px;
  }

  .voice-auth-panel-copy h1 {
    font-size: 22px;
  }

  .voice-auth-panel-copy p {
    font-size: 13px;
  }

  .voice-auth-molecule-right,
  .voice-auth-petal-cluster {
    opacity: 0.38;
  }

  .voice-auth-primary-submit {
    min-height: 52px;
    font-size: 15px;
  }

  .voice-auth-company-memory {
    padding: 16px;
  }

  .voice-auth-company-memory-name {
    font-size: 19px;
  }

  .voice-auth-company-memory-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

.voice-setting-label {
  margin: 6px 0 0;
  color: #adc0dc;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.voice-sidebar-settings .form-control {
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(147, 197, 253, 0.32);
  background: #0a1a31;
  color: #ffffff;
  font-size: 13px;
}

.premium-consent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 0;
  color: #c4d1e7;
  font-size: 12px;
  font-weight: 700;
}

.voice-chat {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  min-height: 0;
  background: #f8fbff;
  border: 1px solid #dbeafe;
  box-shadow: 0 18px 45px rgba(15, 35, 65, 0.1);
}

.voice-chat-header {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #dbeafe;
}

.voice-chat-header h2 {
  margin: 0;
  color: #10213a;
  font-size: 16px;
  font-weight: 800;
}

.voice-chat-header p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.voice-online-dot {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.12);
}

.voice-chat-stream {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 0;
  padding: 34px 28px;
  overflow-y: auto;
  background-color: #eef6ff;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
}

.voice-message-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 720px;
}

.voice-message-row.is-ai {
  align-self: flex-start;
}

.voice-message-row.is-user {
  max-width: 100%;
  width: 100%;
  justify-content: flex-end;
}

.voice-chat-turn {
  max-width: 100%;
}

.voice-agent-body,
.voice-user-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.voice-agent-body {
  max-width: min(760px, 100%);
}

.voice-user-body {
  align-items: flex-end;
  max-width: min(720px, 100%);
}

.voice-message-avatar,
.voice-user-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}

.voice-message-avatar {
  background: #dbeafe;
  color: #2563eb;
}

.voice-user-avatar {
  background: #0b1f3a;
  color: #ffffff;
}

.voice-message-bubble {
  max-width: 620px;
  padding: 14px 18px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #dbeafe;
  color: #12243a;
  font-size: 14px;
  line-height: 1.55;
  box-shadow: 0 12px 28px rgba(31, 52, 86, 0.07);
}

.voice-user-bubble {
  background: linear-gradient(135deg, rgba(11, 94, 143, 0.98) 0%, rgba(11, 94, 143, 0.9) 100% );
  border-color: #2563eb;
  color: #ffffff;
}

.voice-message-meta {
  margin: 6px 0 0 4px;
  color: #2563eb;
  font-size: 11px;
  font-weight: 800;
}

.voice-user-meta {
  margin: 0 6px 0 0;
  color: #64748b;
}

.voice-crm-card {
  border-radius: 14px;
  border: 1px solid #dbeafe;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(31, 52, 86, 0.07);
}

.voice-crm-card {
  align-self: flex-start;
  width: min(760px, 100%);
  padding: 16px 18px;
}

.voice-crm-card[hidden] {
  display: none;
}

.voice-crm-card.is-loading {
  width: auto;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.voice-crm-card.is-loading .voice-transcript-label,
.voice-crm-card.is-loading .crm-feedback,
.voice-crm-card.is-loading .crm-feedback-details {
  display: none;
}

.voice-transcript-label {
  margin-bottom: 8px;
  color: #526780;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.transcription-result {
  width: 100%;
  min-height: 42px;
  max-height: 120px;
  resize: vertical;
  border: none;
  outline: none;
  background: transparent;
  padding: 10px 0 2px;
  color: #10243d;
  font-size: 14px;
  line-height: 1.45;
}

.transcription-result::placeholder {
  color: #8ea1bb;
}

.voice-input-shell {
  min-height: 28px;
  margin-top: 2px;
  padding: 0 0 8px;
  border-radius: 0;
  background: transparent;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.voice-transcription-suggestions,
.voice-selected-prospect {
  margin-top: 12px;
}

.voice-transcription-suggestion-card,
.voice-product-candidates,
.voice-selected-prospect,
.crm-feedback-group,
.crm-suggestions-card {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #dbeafe;
  background: #ffffff;
}

.voice-transcription-suggestion-card,
.crm-suggestions-card {
  border-color: #f3d08a;
  background: #fffbeb;
}

.voice-product-candidates,
.voice-selected-prospect {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.voice-transcription-suggestion-title,
.voice-selected-prospect-title,
.crm-feedback-group-title {
  color: #475c76;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.voice-transcription-suggestion-caption,
.voice-selected-prospect-note {
  margin-top: 5px;
  color: #66758c;
  font-size: 12px;
  line-height: 1.45;
}

.voice-transcription-suggestion-row,
.crm-suggestions-row,
.crm-prospect-confirm-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.voice-transcription-suggestion-chip,
.voice-product-remove,
.voice-product-add,
.voice-product-add-voice,
.crm-suggestion-chip,
.crm-confirm-prospect,
.voice-selected-prospect-reset {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid #cbdff5;
  background: #ffffff;
  color: #1d3551;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.voice-transcription-suggestion-chip:hover,
.voice-product-remove:hover,
.voice-product-add:hover,
.voice-product-add-voice:hover,
.crm-suggestion-chip.is-actionable:hover,
.crm-confirm-prospect:hover,
.voice-selected-prospect-reset:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(31, 52, 86, 0.1);
}

.voice-product-candidate {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding: 9px 10px;
  border: 1px solid #ccefd7;
  border-radius: 12px;
  background: #ffffff;
}

.voice-product-candidate.is-confirmed {
  border-color: #bbf7d0;
  background: #fbfffc;
}

.voice-product-correction-trigger {
  cursor: pointer;
}

.voice-product-index,
.voice-product-name,
.voice-selected-prospect-name {
  color: #16422d;
  font-size: 13px;
  font-weight: 800;
}

.voice-product-raw,
.voice-product-status {
  flex-basis: 100%;
  color: #4b6658;
  font-size: 12px;
}

.voice-product-remove {
  border-color: #fecaca;
  color: #b42318;
}

.voice-product-add,
.voice-product-add-voice {
  margin-top: 10px;
  border-color: #86efac;
  color: #166534;
}

.voice-selected-prospect-body {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.voice-selected-prospect-type {
  padding: 3px 8px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 12px;
  font-weight: 700;
}

.crm-feedback {
  min-height: 22px;
  margin-bottom: 12px;
  color: #405773;
  font-size: 14px;
  font-weight: 700;
}

.crm-feedback.is-error {
  color: #dc2626;
}

.crm-feedback.is-success {
  color: #15803d;
}

.crm-feedback.is-warning {
  color: #b45309;
}

.crm-feedback-details {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.crm-feedback-group.is-error {
  border-color: rgba(220, 38, 38, 0.25);
  background: #fef2f2;
}

.crm-feedback-group.is-warning {
  border-color: rgba(180, 83, 9, 0.22);
  background: #fffbeb;
}

.crm-feedback-list {
  margin: 6px 0 0;
  padding-left: 18px;
  color: #2d4059;
  font-size: 13px;
}

.crm-suggestion-caption {
  margin: 4px 0 10px;
  color: #8a5a12;
  font-size: 13px;
}

.crm-suggestion-chip {
  border-color: #f3d08a;
  color: #854d0e;
}

.crm-suggestion-chip.is-selected,
.crm-confirm-prospect.is-memory {
  background: #1e3a5f;
  border-color: #1e3a5f;
  color: #ffffff;
}

.crm-presenter {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.voice-crm-card.is-loading .crm-presenter {
  margin-top: 0;
}

.crm-loading-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.crm-loading-card {
  min-width: 66px;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid #dbeafe;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(31, 52, 86, 0.07);
}

.crm-loading-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #94a3b8;
  animation: crmTypingDot 1.05s infinite ease-in-out;
}

.crm-loading-dot:nth-child(2) {
  animation-delay: 0.16s;
}

.crm-loading-dot:nth-child(3) {
  animation-delay: 0.32s;
}

@keyframes crmTypingDot {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.crm-summary-card,
.crm-results-card {
  border-radius: 14px;
  border: 1px solid #dbeafe;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  padding: 16px;
  box-shadow: 0 8px 20px rgba(62, 84, 110, 0.045);
}

.crm-summary-card {
  border-top: 4px solid #2563eb;
}

.crm-results-card {
  border-top: 4px solid #15803d;
}

.crm-card-title {
  margin: 0 0 10px;
  color: #475c76;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.crm-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.crm-summary-item {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fbff;
  border: 1px solid #e2eefb;
}

.crm-summary-item.is-missing {
  background: #fef2f2;
  border: 2px solid #dc2626;
}

.crm-summary-item.is-clickable {
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.crm-summary-item.is-clickable:hover,
.crm-summary-item.is-clickable:focus-within {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(220, 38, 38, 0.12);
}

.crm-summary-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.crm-summary-label {
  display: block;
  color: #70849d;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.crm-summary-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #b42318;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.crm-summary-value {
  display: block;
  color: #1f344d;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

.crm-products-list {
  margin: 0;
  padding-left: 18px;
  color: #1f344d;
  font-size: 14px;
}

.crm-product-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.crm-product-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f4f8ff 0%, #eef4ff 100%);
  border: 1px solid #deebff;
  color: #1f344d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.crm-product-chip-rank,
.crm-comment-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #e3edff;
  color: #36588b;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

.crm-product-chip-name {
  font-weight: 600;
}

.crm-commentary-panel {
  background: linear-gradient(180deg, #fbfdff 0%, #f6faff 100%);
}

.crm-comment-list {
  display: grid;
  gap: 12px;
}

.crm-comment-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
}

.crm-comment-row + .crm-comment-row {
  border-top: 1px solid #e5eefb;
}

.crm-comment-body {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.crm-comment-product {
  color: #24456f;
  font-size: 13px;
  font-weight: 700;
}

.crm-comment-text {
  color: #20324b;
  font-size: 14px;
  line-height: 1.6;
}

.crm-table-wrapper {
  overflow-x: auto;
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #fbfdff;
}

.crm-results-table {
  width: 100%;
  border-collapse: collapse;
  color: #263b55;
  font-size: 13px;
}

.crm-results-table th,
.crm-results-table td {
  padding: 12px;
  border-bottom: 1px solid #e2eefb;
  text-align: left;
  vertical-align: top;
}

.crm-results-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f1f7ff;
  color: #667d97;
  font-size: 11px;
  text-transform: uppercase;
}

.crm-empty-state {
  padding: 12px;
  border-radius: 12px;
  background: #f8fbff;
  border: 1px dashed #c9ddf5;
  color: #5b708d;
  font-size: 14px;
}

.crm-product-resolution-list {
  display: grid;
  gap: 12px;
}

.crm-product-resolution-block {
  padding: 12px;
  border-radius: 12px;
  background: #fffbeb;
  border: 1px solid #f3d08a;
}

.crm-product-resolution-title {
  margin-bottom: 6px;
  color: #854d0e;
  font-size: 14px;
  font-weight: 800;
}

.crm-debug {
  margin-top: 12px;
  border-radius: 12px;
  border: 1px solid #dbeafe;
  background: #f8fbff;
  overflow: hidden;
}

.crm-debug summary {
  cursor: pointer;
  padding: 12px 14px;
  color: #2e4561;
  font-size: 13px;
  font-weight: 800;
  outline: none;
}

.crm-result {
  margin: 0;
  padding: 14px;
  max-height: 260px;
  overflow: auto;
  background: #0b1f3a;
  color: #dbeafe;
  font-size: 12px;
  line-height: 1.5;
}

.voice-status {
  min-height: 28px;
  padding: 4px 26px 0;
  color: #5b708d;
  font-size: 13px;
  font-weight: 700;
}

.voice-status.is-error {
  color: #dc2626;
}

.voice-status.is-success {
  color: #15803d;
}

.voice-status.is-warning {
  color: #b45309;
}

.voice-controlbar {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: end;
  gap: 12px;
  padding: 12px 14px;
  margin: 0 12px 12px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(31, 52, 86, 0.07);
}

.voice-button {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
  transition: transform 0.16s ease, background-color 0.16s ease, opacity 0.16s ease;
}

.voice-button.recording {
  background: #fee2e2;
  color: #dc2626;
}

.voice-button:hover,
.voice-new-conversation:hover,
.crm-process-button:hover {
  transform: translateY(-1px);
}

.voice-button:disabled,
.clear-button:disabled,
.crm-process-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.voice-icon,
.voice-icon svg {
  width: 20px;
  height: 20px;
}

.voice-icon svg {
  fill: currentColor;
}

.voice-button-label {
  display: none;
}

.voice-composer-field {
  min-width: 0;
  padding: 0 14px;
  border: 1px solid #cfe0f5;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: inset 0 1px 2px rgba(31, 52, 86, 0.035);
}

.crm-process-button {
  min-height: 44px;
  min-width: 88px;
  border: none;
  border-radius: 12px;
  padding: 0 18px;
  background: linear-gradient(135deg, #628ff1, #5981ed);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
  cursor: pointer;
}

.voice-clear-compact {
  min-height: 40px;
  border: 1px solid #d6e5f5;
  border-radius: 12px;
  padding: 0 14px;
  background: #f8fbff;
  color: #3f536d;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.voice-vocal-body {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.96), rgba(233, 244, 255, 0.92) 40%, rgba(223, 238, 255, 0.95) 100%);
}

.voice-vocal-shell {
  background: transparent;
}

.voice-vocal-body .navbar.navbar-expand-lg.navbar-light {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 220, 243, 0.72);
}

.voice-vocal-body .voice-page {
  padding: 0 14px 14px;
}

.voice-vocal-body .voice-device {
  gap: 0;
  align-items: stretch;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid #cfe1f5;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 24px 50px rgba(38, 78, 130, 0.12);
}

.voice-vocal-body .voice-sidebar,
.voice-vocal-body .voice-chat {
  border-radius: 0;
}

.voice-vocal-body .voice-sidebar {
  gap: 18px;
  padding: 16px 14px 14px;
  background:
    linear-gradient(180deg, rgba(12, 75, 124, 0.99) 0%, rgba(8, 62, 105, 1) 32%, rgba(7, 51, 89, 1) 100%);
  border-right: 1px solid rgba(128, 201, 240, 0.3);
  box-shadow: none;
}

.voice-sidebar-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.voice-sidebar-brandmark {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(173, 225, 249, 0.18);
  overflow: hidden;
}

.voice-sidebar-brandmark-image,
.voice-sidebar-brandmark-svg {
  width: 100%;
  height: 100%;
}



.voice-sidebar-brandmark-svg {
  display: none;
}

.voice-sidebar-brandmark.is-fallback .voice-sidebar-brandmark-svg {
  display: block;
}

.voice-sidebar-brandcopy {
  min-width: 0;
}

.voice-sidebar-brandtext {
  color: #33c8ee;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.1;
}

.voice-sidebar-brandcopy p {
  margin: 6px 0 0;
  max-width: none;
  color: #d8effa;
  font-size: 13px;
}

.voice-sidebar-collapse {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid rgba(164, 219, 247, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.voice-sidebar-collapse svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.voice-vocal-body .voice-new-conversation {
  min-height: 56px;
  justify-content: flex-start;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(119, 234, 255, 0.28);
  background: linear-gradient(135deg, rgba(72, 215, 229, 0.98) 0%, rgba(35, 187, 214, 0.94) 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 16px 30px rgba(18, 126, 181, 0.28);
}

.voice-vocal-body .voice-new-conversation.is-active {
  border-color: rgba(147, 236, 255, 0.78);
  box-shadow:
    0 0 0 2px rgba(155, 242, 255, 0.22),
    0 18px 34px rgba(7, 57, 100, 0.28);
}

.voice-new-conversation-icon {
  font-size: 28px;
  line-height: 1;
  font-weight: 300;
}

.voice-sidebar-section,
.voice-sidebar-panel {
  display: grid;
  gap: 12px;
}

.voice-sidebar-heading {
  color: rgba(220, 244, 255, 0.88);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.voice-vocal-body .voice-conversation-list {
  display: grid;
  gap: 10px;
  padding-right: 4px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 222, 255, 0.42) transparent;
}

.voice-vocal-body .voice-conversation-list::-webkit-scrollbar {
  width: 8px;
}

.voice-vocal-body .voice-conversation-list::-webkit-scrollbar-track {
  background: transparent;
}

.voice-vocal-body .voice-conversation-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(148, 222, 255, 0.38);
}

.voice-vocal-body .voice-conversation-item {
  min-height: 84px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(91, 179, 230, 0.16);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(17, 84, 136, 0.78), rgba(11, 66, 112, 0.84));
  box-shadow: inset 0 1px 0 rgba(186, 230, 255, 0.06);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.voice-vocal-body .voice-conversation-item:hover {
  transform: translateY(-1px);
  border-color: rgba(115, 210, 255, 0.26);
  box-shadow: 0 10px 24px rgba(6, 39, 70, 0.2);
}

.voice-vocal-body .voice-conversation-item.is-active {
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(41, 190, 226, 0.98), rgba(26, 151, 215, 0.96));
  border: 1px solid rgba(147, 236, 255, 0.78);
  box-shadow:
    0 0 0 2px rgba(155, 242, 255, 0.22),
    0 18px 34px rgba(7, 57, 100, 0.28);
}

.voice-conversation-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin-top: 2px;
  color: #e8f7ff;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.voice-conversation-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.voice-conversation-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.voice-vocal-body .voice-conversation-title {
  white-space: normal;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: #f5fbff;
}

.voice-vocal-body .voice-conversation-time {
  margin-top: 0;
  font-size: 11px;
  color: rgba(222, 240, 251, 0.8);
}

.voice-history-body .voice-conversation-item {
  text-decoration: none;
}

.voice-history-page .voice-history-panel {
  display: grid;
  gap: 18px;
  padding: 24px 26px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 251, 255, 0.96));
  box-shadow: 0 22px 50px rgba(15, 59, 96, 0.12);
}

.voice-history-page .voice-history-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.voice-history-page .voice-history-field {
  display: grid;
  gap: 6px;
  color: #29506d;
  font-size: 12px;
  font-weight: 600;
}

.voice-history-page .voice-history-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.voice-history-page .voice-history-status {
  min-height: 20px;
  color: #4e6c83;
  font-size: 13px;
  font-weight: 500;
}

.voice-history-page .voice-history-status.is-error {
  color: #c84a4a;
}

.voice-history-page .voice-history-table-shell {
  overflow-x: auto;
  border: 1px solid rgba(111, 167, 205, 0.24);
  border-radius: 20px;
  background: #ffffff;
}

.voice-history-page .voice-history-table {
  margin-bottom: 0;
}

.voice-history-page .voice-history-table thead th {
  border-top: none;
  border-bottom: 1px solid rgba(111, 167, 205, 0.24);
  color: #32526c;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.voice-history-page .voice-history-table td {
  color: #1f3e58;
  vertical-align: middle;
  font-size: 13px;
}

.voice-history-page .voice-history-empty {
  text-align: center;
  color: #6c8aa1;
  padding: 24px 18px;
}

.voice-history-page .voice-history-pagination {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
}

.voice-history-page .voice-history-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.voice-history-page .voice-history-badge.status-success {
  background: rgba(44, 171, 100, 0.12);
  color: #228252;
}

.voice-history-page .voice-history-badge.status-error {
  background: rgba(212, 74, 74, 0.12);
  color: #b73d3d;
}

.voice-history-page .voice-history-badge.status-pending {
  background: rgba(221, 162, 24, 0.14);
  color: #9b6c08;
}

.voice-history-page .voice-history-sidebar-copy {
  display: grid;
  gap: 4px;
  color: #ecf7ff;
  font-size: 13px;
}

.voice-user-card,
.voice-company-card,
.voice-vocal-body .voice-session-card {
  padding: 14px 12px;
  border-radius: 16px;
  border: 1px solid rgba(84, 194, 245, 0.32);
  background: linear-gradient(180deg, rgba(15, 115, 170, 0.8), rgba(10, 92, 144, 0.82));
}

.voice-user-card {
  display: grid;
  gap: 10px;
}

.voice-user-card-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.voice-user-badge {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #58d7f3, #2ab9dd);
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
}

.voice-user-card-name,
.voice-company-name,
.voice-vocal-body .voice-session-company {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
}

.voice-user-card-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(0, 220, 137, 0.18);
  color: #7ef1ba;
  font-size: 11px;
  font-weight: 700;
}

.voice-user-card-meta {
  display: flex;
  gap: 12px;
  color: #cae8f8;
  font-size: 12px;
}

.voice-user-card-meta strong {
  color: #ffffff;
  font-weight: 700;
}

.voice-company-name {
  margin-top: 8px;
}

.voice-session-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.voice-session-state-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #bfd400;
}

.voice-vocal-body .voice-session-user {
  color: #cfe9f8;
}

.voice-vocal-body .voice-session-actions {
  display: grid;
  gap: 10px;
}

.voice-vocal-body .voice-session-link {
  min-height: 38px;
  border-radius: 12px;
  border-color: #53d0ff;
  background: transparent;
  color: #ffffff;
  font-size: 13px;
}

.voice-vocal-body .voice-session-link.is-danger {
  border-color: #d7cb00;
  color: #ffe75d;
}

.voice-vocal-body .voice-sidebar-settings {
  gap: 6px;
  padding-top: 0;
  border-top: 0;
}

.voice-vocal-body .voice-setting-label {
  margin-top: 4px;
  color: #d8effa;
}

.voice-vocal-body .voice-sidebar-settings .form-control {
  min-height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(119, 209, 250, 0.28);
  background: rgba(7, 65, 104, 0.72);
  color: #ffffff;
}

.voice-vocal-body .premium-consent {
  color: #def2fb;
}

.voice-sidebar-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(132, 210, 246, 0.28);
  color: #d9effa;
}

.voice-sidebar-copyright {
  font-size: 12px;
}

.voice-sidebar-footnote {
  margin-top: 4px;
  font-size: 11px;
  opacity: 0.9;
}

.voice-vocal-body .voice-chat {
  grid-template-rows: auto minmax(0, 1fr);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(250, 252, 255, 0.98));
  border: none;
  box-shadow: none;
}

.voice-chat-header-card {
  min-height: 96px;
  padding: 22px 28px 18px;
  background: transparent;
  border-bottom: 1px solid rgba(211, 225, 241, 0.9);
}

.voice-chat-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.voice-chat-title-bullet {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #16a9e0 0 28%, #cdefff 29% 60%, #eef9ff 61% 100%);
  box-shadow: 0 0 0 6px rgba(205, 239, 255, 0.5);
}

.voice-vocal-body .voice-chat-header h2 {
  color: #174781;
  font-size: 20px;
}

.voice-vocal-body .voice-chat-header p {
  margin-top: 5px;
  color: #6d93ba;
  font-size: 14px;
}

.voice-chat-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.voice-toolbar-pill {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid #dce7f4;
  background: rgba(255, 255, 255, 0.88);
  color: #174781;
  font-size: 13px;
  font-weight: 500;
}

.voice-toolbar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #23d160;
}

.voice-toolbar-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-left: 8px;
}

.voice-toolbar-avatar {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #d6f5ff, #bdeefe);
  color: #20528d;
  font-size: 24px;
  font-weight: 700;
}

.voice-toolbar-usercopy {
  display: grid;
}

.voice-toolbar-usercopy strong {
  color: #173f73;
  font-size: 14px;
}

.voice-toolbar-usercopy span {
  color: #7fa0bf;
  font-size: 13px;
}

.voice-chat-stage {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
  padding: 18px;
}

.voice-chat-banner {
  width: fit-content;
  max-width: 100%;
  margin: 8px auto 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid #dce7f4;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.82);
  color: #16a0df;
  font-size: 13px;
}

.voice-chat-banner-icon {
  color: #1094d5;
}

.voice-chat-banner-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.voice-vocal-body .voice-chat-stream {
  gap: 22px;
  padding: 22px 26px;
  border: 1px solid #dce7f4;
  border-radius: 24px;
  background:
    radial-gradient(circle at 70% 50%, rgba(188, 227, 255, 0.14), transparent 28%),
    radial-gradient(circle at 82% 68%, rgba(188, 227, 255, 0.1), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.9));
}

.voice-vocal-body .voice-chat-stream::after {
  content: "";
  position: absolute;
  right: 40px;
  bottom: 55px;
  width: 360px;
  height: 360px;
  opacity: 0.3;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(113, 194, 242, 0.32) 0 2px, transparent 3px),
    radial-gradient(circle at 35% 26%, rgba(113, 194, 242, 0.22) 0 2px, transparent 3px),
    radial-gradient(circle at 48% 44%, rgba(113, 194, 242, 0.24) 0 2px, transparent 3px),
    radial-gradient(circle at 67% 20%, rgba(113, 194, 242, 0.24) 0 2px, transparent 3px),
    radial-gradient(circle at 76% 42%, rgba(113, 194, 242, 0.26) 0 2px, transparent 3px),
    radial-gradient(circle at 58% 68%, rgba(113, 194, 242, 0.24) 0 2px, transparent 3px),
    linear-gradient(32deg, transparent 49%, rgba(113, 194, 242, 0.14) 50%, transparent 51%),
    linear-gradient(-30deg, transparent 49%, rgba(113, 194, 242, 0.14) 50%, transparent 51%);
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.voice-vocal-body .voice-message-row {
  position: relative;
  z-index: 1;
}

.voice-vocal-body .voice-message-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(180deg, #eefaff, #dff5ff);
  color: #16a0df;
  box-shadow: inset 0 0 0 1px rgba(181, 228, 249, 0.8);
}

.voice-message-avatar-mic svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.voice-vocal-body .voice-message-bubble {
  max-width: 540px;
  padding: 18px 24px;
  border-radius: 18px;
  border-color: #dce7f4;
  box-shadow: 0 10px 28px rgba(56, 95, 142, 0.08);
  color: #f4f4f4;
}

.voice-message-bubble-welcome strong {
  display: block;
  color: #174781;
  font-size: 17px;
  font-weight: 700;
}

.voice-message-bubble-welcome p {
  margin: 10px 0 0;
  color: #436e9e;
  font-size: 14px;
  line-height: 1.8;
}

.voice-message-bubble-welcome .voice-message-meta {
  margin: 18px 0 0;
  color: #7e9fc0;
  font-weight: 500;
}

.voice-vocal-body .voice-status {
  min-height: 22px;
  padding: 10px 10px 0;
  color: #6f92b6;
}

.voice-vocal-body .voice-controlbar {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  margin: 12px 0 0;
  padding: 14px 16px;
  border: 1px solid #dce7f4;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: none;
}

.voice-vocal-body .voice-button {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(180deg, #19a9df, #0f92d2);
  color: #ffffff;
  box-shadow: 0 0 0 8px rgba(80, 201, 247, 0.12);
}

.voice-vocal-body .voice-button.recording {
  background: linear-gradient(180deg, #ef6b6b, #d43f3f);
  color: #ffffff;
}

.voice-vocal-body .voice-icon,
.voice-vocal-body .voice-icon svg {
  width: 26px;
  height: 26px;
}

.voice-vocal-body .voice-composer-field {
  padding: 0 16px;
  border-color: #dce7f4;
  border-radius: 18px;
  box-shadow: none;
}

.voice-vocal-body .transcription-result {
  min-height: 56px;
  max-height: 150px;
  padding-top: 14px;
  color: #204f84;
  font-size: 15px;
}

.voice-vocal-body .transcription-result::placeholder {
  color: #8cadcc;
}

.voice-vocal-body .voice-input-shell {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  margin: 0 0 8px;
  padding: 0 14px;
  border-radius: 999px;
  background: #eef5fb;
  color: #295c93;
  font-size: 13px;
  font-weight: 700;
}

.voice-vocal-body .crm-process-button {
  min-width: 142px;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, #19a9df, #0c93d2);
  font-size: 15px;
  box-shadow: none;
}

.voice-vocal-body .crm-process-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.voice-chat-helper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 0 2px;
  color: #6f92b6;
  font-size: 13px;
}

.voice-chat-helper svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

@media (max-width: 992px) {
  .voice-page {
    padding: 0;
  }

  .voice-device {
    height: 100%;
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .voice-sidebar {
    display: none;
  }

  .voice-chat {
    border-radius: 0;
  }

  .voice-chat-stream {
    padding: 22px 16px;
  }

  .voice-vocal-body .voice-device {
    border-radius: 0;
  }

  .voice-chat-header-card,
  .voice-chat-stage {
    padding-left: 14px;
    padding-right: 14px;
  }

  .voice-chat-toolbar {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .voice-chat-header {
    padding: 14px 16px;
  }

  .voice-chat-header p {
    display: none;
  }

  .voice-message-row.is-user {
    gap: 8px;
  }

  .voice-user-avatar {
    display: none;
  }

  .voice-crm-card {
    width: 100%;
  }

  .voice-controlbar {
    grid-template-columns: auto 1fr auto;
  }

  .crm-process-button {
    min-width: 94px;
  }

  .crm-summary-grid {
    grid-template-columns: 1fr;
  }

  .voice-chat-header-card {
    align-items: flex-start;
  }

  .voice-chat-title-wrap {
    width: 100%;
  }

  .voice-chat-toolbar {
    width: 100%;
    gap: 8px;
  }

  .voice-toolbar-pill,
  .voice-toolbar-user {
    width: 100%;
    justify-content: flex-start;
  }

  .voice-vocal-body .voice-chat-stream {
    padding: 18px 14px;
  }

  .voice-vocal-body .voice-message-bubble {
    max-width: 100%;
    padding: 16px 18px;
  }

  .voice-vocal-body .voice-controlbar {
    grid-template-columns: 1fr;
  }

  .voice-vocal-body .voice-button,
  .voice-vocal-body .crm-process-button {
    width: 100%;
  }

  .voice-chat-helper {
    text-align: center;
  }
}

.voice-vocal-body,
.voice-vocal-body .voice-shell,
.voice-vocal-body .voice-page,
.voice-vocal-body .voice-device,
.voice-vocal-body .voice-chat,
.voice-vocal-body .voice-chat-stage {
  min-height: 0;
}

.voice-vocal-body {
  overflow: hidden;
}

.voice-vocal-body .voice-shell {
  height: 100vh;
  overflow: hidden;
}

.voice-vocal-body .voice-page {
  flex: 1 1 auto;
  padding: 0 14px 14px;
  overflow: hidden;
}

.voice-vocal-body .voice-device {
  height: 100%;
  grid-template-columns: 320px minmax(0, 1fr);
}

.voice-vocal-body .voice-sidebar {
  overflow-y: auto;
}

.voice-vocal-body .voice-chat {
  overflow: hidden;
}

.voice-vocal-body .voice-chat-header {
  flex: 0 0 auto;
}

.voice-chat-stage {
  padding: 18px 18px 16px;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
  overflow: hidden;
}

.voice-vocal-body .voice-chat-stream {
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

.voice-chat-footer {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 8px;
  flex: 0 0 auto;
}

.voice-vocal-body .voice-status {
  padding: 0 8px;
}

.voice-vocal-body .voice-controlbar {
  margin: 0;
  position: static;
  align-items: center;
}

.voice-vocal-body .voice-composer-field {
  min-width: 0;
}

.voice-vocal-body .transcription-result {
  resize: none;
}

.voice-sidebar-panel {
  gap: 16px;
}

.voice-sidebar-settings-card {
  padding: 14px 12px;
  border-radius: 16px;
  border: 1px solid rgba(84, 194, 245, 0.32);
  background: linear-gradient(180deg, rgba(15, 115, 170, 0.8), rgba(10, 92, 144, 0.82));
}

.voice-session-state-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.voice-sidebar-settings-card {
  display: grid;
  gap: 6px;
}

.voice-vocal-body .voice-sidebar-settings-card .voice-setting-label {
  margin-top: 4px;
  color: #d8effa;
}

.voice-vocal-body .voice-sidebar-settings-card .form-control {
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(119, 209, 250, 0.28);
  background: rgba(7, 65, 104, 0.72);
  color: #ffffff;
}

.voice-vocal-body .voice-sidebar-settings-card .form-control:focus {
  color: #ffffff;
  background: rgba(7, 65, 104, 0.88);
}

.voice-vocal-body .voice-chat-header-card {
  display: flex;
  align-items: center;
}

.voice-vocal-body .voice-chat-title-wrap {
  width: 100%;
}

.voice-vocal-body .voice-conversation-list {
  overflow-x: hidden;
  overflow-y: auto;
}

@media (max-width: 992px) {
  .voice-vocal-body {
    overflow-y: auto;
  }

  .voice-vocal-body .voice-shell {
    height: auto;
    min-height: 100vh;
  }

  .voice-vocal-body .voice-page {
    overflow: visible;
  }

  .voice-vocal-body .voice-chat {
    overflow: visible;
  }

  .voice-chat-stage {
    overflow: visible;
  }

  .voice-vocal-body .voice-chat-stream {
    min-height: 50vh;
  }
}

/* Final chatbot-vocal layout pass: use the full available width beside the sidebar. */
.voice-vocal-body {
  overflow: hidden;
}

.voice-vocal-body .voice-shell {
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}

.voice-vocal-body .voice-page {
  width: 100%;
  max-width: none;
  flex: 1 1 auto;
  padding: 0;
  overflow: hidden;
}

.voice-vocal-body .voice-device {
  width: 100%;
  max-width: none;
  height: 100%;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  border-radius: 0;
}

.voice-vocal-body .voice-sidebar {
  width: min(300px, 100%);
  min-width: 280px;
  max-width: 300px;
  overflow-y: auto;
}

.voice-vocal-body .voice-chat {
  width: 100%;
  min-width: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.voice-vocal-body .voice-chat-stage {
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 16px 18px 14px;
  overflow: hidden;
}

.voice-vocal-body .voice-chat-stream {
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

.voice-vocal-body .voice-chat-footer {
  width: 100%;
  min-width: 0;
}

.voice-vocal-body .voice-controlbar {
  width: 100%;
  max-width: none;
  margin: 0;
}

.voice-vocal-body .voice-composer-field {
  width: 100%;
  min-width: 0;
}

@media (max-width: 992px) {
  .voice-vocal-body {
    overflow-y: auto;
  }

  .voice-vocal-body .voice-shell {
    height: auto;
    min-height: 100vh;
  }

  .voice-vocal-body .voice-device {
    display: block;
    height: auto;
  }

  .voice-vocal-body .voice-sidebar {
    display: none;
  }

  .voice-vocal-body .voice-chat,
  .voice-vocal-body .voice-chat-stage {
    height: auto;
    overflow: visible;
  }
}

@media (max-width: 992px) {
  .voice-vocal-body {
    overflow-x: hidden;
  }

  .voice-vocal-body .voice-shell {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
  }

  .voice-vocal-body .voice-page:not(.voice-history-page) {
    padding: 0 0 16px;
    overflow: visible;
  }

  .voice-vocal-body .voice-page:not(.voice-history-page) .voice-device {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    min-height: 0;
    overflow: visible;
    border-radius: 20px;
  }

  .voice-vocal-body .voice-page:not(.voice-history-page) .voice-sidebar {
    display: flex;
    width: 100%;
    max-width: none;
    min-width: 0;
    max-height: none;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid rgba(128, 201, 240, 0.3);
  }

  .voice-vocal-body .voice-page:not(.voice-history-page) .voice-conversation-list {
    overflow: visible;
  }

  .voice-vocal-body .voice-page:not(.voice-history-page) .voice-chat {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .voice-vocal-body .voice-page:not(.voice-history-page) .voice-chat-stage {
    height: auto;
    min-height: 0;
    padding: 14px;
    overflow: visible;
  }

  .voice-vocal-body .voice-page:not(.voice-history-page) .voice-chat-stream {
    height: auto;
    min-height: 40vh;
    max-height: none;
    padding: 18px 14px;
    overflow: visible;
  }

  .voice-vocal-body .voice-page:not(.voice-history-page) .voice-chat-stream::after {
    display: none;
  }

  .voice-vocal-body .voice-page:not(.voice-history-page) .voice-chat-footer {
    gap: 10px;
  }

  .voice-vocal-body .voice-page:not(.voice-history-page) .voice-status {
    padding: 0 4px;
  }

  .voice-vocal-body .voice-page:not(.voice-history-page) .voice-controlbar {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .voice-vocal-body .voice-page:not(.voice-history-page) .voice-button,
  .voice-vocal-body .voice-page:not(.voice-history-page) .crm-process-button {
    width: 100%;
    min-height: 54px;
    height: auto;
    border-radius: 18px;
  }

  .voice-vocal-body .voice-page:not(.voice-history-page) .voice-button {
    box-shadow: 0 0 0 6px rgba(80, 201, 247, 0.12);
  }

  .voice-vocal-body .voice-page:not(.voice-history-page) .voice-composer-field {
    width: 100%;
    padding: 0 14px;
  }

  .voice-vocal-body .voice-page:not(.voice-history-page) .transcription-result {
    min-height: 96px;
  }
}

@media (max-width: 640px) {
  .voice-vocal-body .voice-page:not(.voice-history-page) .voice-sidebar {
    padding: 16px 14px 14px;
    gap: 14px;
  }

  .voice-vocal-body .voice-page:not(.voice-history-page) .voice-chat-stage {
    padding: 12px;
  }

  .voice-vocal-body .voice-page:not(.voice-history-page) .voice-chat-stream {
    min-height: 36vh;
    padding: 16px 12px;
  }

  .voice-vocal-body .voice-page:not(.voice-history-page) .voice-button,
  .voice-vocal-body .voice-page:not(.voice-history-page) .crm-process-button {
    min-height: 56px;
  }
}

.voice-history-chat-layout .voice-history-main {
  grid-template-rows: auto minmax(0, 1fr);
}

.voice-history-chat-panel {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  padding: 12px 16px 16px;
}

.voice-history-sidebar {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.voice-history-sidebar-filter {
  gap: 10px;
}

.voice-history-sidebar-button {
  width: 100%;
}

.voice-history-conversation-list {
  min-height: 0;
  overflow-y: auto;
  padding: 0 16px 16px;
}

.voice-history-conversation-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.voice-history-conversation-preview {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  color: #6b7f9a;
  margin-top: 6px;
}

.voice-history-empty-list,
.voice-history-empty-state {
  padding: 18px 16px;
  border: 1px dashed rgba(95, 132, 190, 0.24);
  border-radius: 18px;
  color: #5a7292;
  background: rgba(247, 250, 255, 0.72);
}

.voice-history-admin-table-device {
  display: grid;
  gap: 24px;
}

.voice-history-admin-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 6px 4px 0;
}

.voice-history-admin-hero-icon {
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(75, 178, 255, 0.16), rgba(75, 178, 255, 0.08));
  color: #1e79da;
  box-shadow: inset 0 0 0 1px rgba(52, 132, 221, 0.16);
}

.voice-history-admin-hero-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.voice-history-admin-hero-copy h1 {
  margin: 0 0 4px;
  color: #173f70;
  font-size: 2.1rem;
  font-weight: 800;
}

.voice-history-admin-hero-copy p {
  margin: 0;
  color: #6e88aa;
  font-size: 1.05rem;
}

.voice-history-admin-table-shell {
  padding: 20px 22px 18px;
  border: 1px solid rgba(31, 88, 139, 0.1);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.96));
  box-shadow: 0 16px 40px rgba(8, 44, 84, 0.08);
}

.voice-history-admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.voice-history-admin-toolbar-left,
.voice-history-admin-toolbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.voice-history-admin-search-wrap {
  position: relative;
  min-width: 320px;
}

.voice-history-admin-search-wrap .form-control,
.voice-history-admin-filter-wrap .form-control {
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(31, 88, 139, 0.12);
  box-shadow: none;
}

.voice-history-admin-search-wrap .form-control {
  padding-left: 48px;
}

.voice-history-admin-search-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: #6984a6;
}

.voice-history-admin-search-icon svg,
.voice-history-admin-filter-button svg,
.voice-history-admin-export-button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.voice-history-admin-filter-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.voice-history-admin-filter-button,
.voice-history-admin-export-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(31, 88, 139, 0.12);
  border-radius: 14px;
  background: #ffffff;
  color: #184878;
  font-weight: 700;
}

.voice-history-admin-export-button {
  background: linear-gradient(180deg, #35b2f4 0%, #167fd7 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(31, 112, 191, 0.18);
}

.voice-history-admin-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(31, 88, 139, 0.1);
  border-radius: 20px;
  background: #ffffff;
}

.voice-history-admin-table {
  width: 100%;
  border-collapse: collapse;
}

.voice-history-admin-table th,
.voice-history-admin-table td {
  padding: 20px 18px;
  border-bottom: 1px solid rgba(31, 88, 139, 0.08);
  vertical-align: middle;
}

.voice-history-admin-table th {
  color: #415975;
  font-size: 0.95rem;
  font-weight: 800;
  white-space: nowrap;
}

.voice-history-admin-table td {
  color: #314765;
  font-size: 0.96rem;
}

.voice-history-admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.voice-history-admin-user-cell {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 220px;
}

.voice-history-admin-user-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(69, 165, 255, 0.18), rgba(69, 165, 255, 0.08));
  color: #1d7fe1;
  font-size: 1rem;
  font-weight: 800;
}

.voice-history-admin-user-copy {
  min-width: 0;
}

.voice-history-admin-user-copy strong,
.voice-history-admin-user-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-history-admin-user-copy strong {
  color: #203f67;
  font-size: 1rem;
  font-weight: 700;
}

.voice-history-admin-user-copy span {
  color: #6f86a6;
  font-size: 0.87rem;
}

.voice-history-admin-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 700;
}

.voice-history-admin-status-badge.is-active {
  background: rgba(45, 166, 109, 0.12);
  color: #17935b;
}

.voice-history-admin-status-badge.is-inactive {
  background: rgba(128, 145, 167, 0.14);
  color: #6d7787;
}

.voice-history-admin-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.voice-history-admin-history-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  background: #167fe0;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.voice-history-admin-history-link:hover {
  color: #ffffff;
  text-decoration: none;
  background: #126dbe;
}

.voice-history-admin-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 4px 2px;
  color: #5f7897;
  font-size: 0.95rem;
}

.voice-history-admin-pagination {
  display: flex;
  align-items: center;
  gap: 10px;
}

.voice-history-admin-page-button {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(31, 88, 139, 0.12);
  border-radius: 10px;
  background: #ffffff;
  color: #2a5f94;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
}

.voice-history-admin-page-button:hover:not(:disabled) {
  background: #eef5ff;
}

.voice-history-admin-page-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.voice-history-admin-page-indicator {
  min-width: 92px;
  text-align: center;
  color: #5f7897;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .voice-history-admin-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .voice-history-admin-toolbar-left,
  .voice-history-admin-toolbar-right {
    width: 100%;
  }

  .voice-history-admin-search-wrap {
    min-width: 0;
    flex: 1 1 auto;
  }

  .voice-history-admin-filter-wrap {
    flex-wrap: wrap;
  }

  .voice-history-admin-table-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .voice-history-admin-table-shell {
    padding: 16px;
    border-radius: 22px;
  }

  .voice-history-admin-hero {
    align-items: flex-start;
  }

  .voice-history-admin-hero-copy h1 {
    font-size: 1.8rem;
  }
}

.voice-history-chat-stream {
  min-height: 0;
  overflow-y: auto;
  padding: 6px 2px 8px;
}

.voice-history-message {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.voice-history-message.role-user {
  align-items: flex-end;
}

.voice-history-message.role-assistant {
  align-items: flex-start;
}

.voice-history-message-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #6c7e97;
  padding: 0 6px;
}

.voice-history-message-role {
  font-weight: 700;
  color: #1a3f7a;
}

.voice-history-message-bubble {
  max-width: min(760px, 92%);
  padding: 14px 16px;
  border-radius: 20px;
  box-shadow: 0 14px 32px rgba(31, 87, 150, 0.08);
}

.voice-history-message.role-user .voice-history-message-bubble {
  background: linear-gradient(135deg, #1370af 0%, #0f4f8f 100%);
  color: #fff;
  border-top-right-radius: 8px;
}

.voice-history-message.role-assistant .voice-history-message-bubble {
  background: #fff;
  color: #20334b;
  border: 1px solid rgba(148, 180, 216, 0.28);
  border-top-left-radius: 8px;
}

.voice-history-message-bubble p {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.65;
}

.voice-history-mobile-back {
  display: none;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(31, 88, 139, 0.16);
  border-radius: 12px;
  background: #ffffff;
  color: #1c4f86;
  font-size: 0.92rem;
  font-weight: 700;
}

.voice-chat-history-filter {
  margin-bottom: 12px;
}

@media (max-width: 992px) {
  .voice-history-chat-layout .voice-device {
    display: block;
    height: auto;
  }

  .voice-history-chat-layout .voice-history-sidebar {
    display: grid;
    width: 100%;
    max-width: none;
    min-width: 0;
    min-height: calc(100vh - 110px);
    border-radius: 0;
    overflow: hidden;
  }

  .voice-history-chat-layout .voice-history-main {
    display: none;
    min-height: calc(100vh - 110px);
    border-radius: 0;
  }

  .voice-history-chat-layout.is-mobile-detail .voice-history-sidebar {
    display: none;
  }

  .voice-history-chat-layout.is-mobile-detail .voice-history-main {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .voice-history-chat-layout .voice-history-chat-panel {
    height: auto;
    min-height: 0;
    padding: 12px 14px 14px;
    overflow: hidden;
  }

  .voice-history-chat-layout .voice-history-chat-stream {
    min-height: calc(100vh - 230px);
    height: auto;
    overflow-y: auto;
    padding: 4px 0 10px;
  }

  .voice-history-chat-layout .voice-chat-header-card {
    border-radius: 0;
  }

  .voice-history-chat-layout .voice-chat-title-wrap {
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }

  .voice-history-mobile-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

.voice-history-status-sidebar {
  margin-top: 10px;
}

.voice-chat-inline-empty {
  margin: 24px;
}

.voice-history-turn .voice-message-meta {
  font-size: 12px;
}

.voice-history-assistant-bubble p {
  margin: 8px 0 0;
}
