.dialog.sales-voice-panel {
  width: min(600px, 100vw);
  max-width: 100vw;
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-height: 100dvh;
  color: var(--np-text, #18334f);
  background: var(--np-bg, #fff);
  font-size: 15px;
  line-height: 1.7;
}
.sales-voice-panel * {
  box-sizing: border-box;
}
.sales-voice-panel button {
  font: inherit;
  cursor: pointer;
}
.sales-voice-panel button:disabled {
  cursor: default;
  opacity: 0.5;
}
.sales-voice-panel .dialog-head {
  padding: 20px 24px;
  margin: 0;
  border-bottom: 1px solid var(--np-line, #dae3f0);
  flex: none;
}
.sales-voice-panel .dialog-head h2 {
  font-size: 18px;
  margin: 0;
}
.sales-voice-panel .dialog-head .eyebrow {
  display: none;
}
.sales-voice-panel .sv-topline {
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--np-line, #dae3f0);
  flex: none;
  color: #1e8076;
  background: #edf7f3;
  font-size: 13px;
}
.sv-topline > span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sales-voice-panel .sv-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 26px 24px 28px;
  overscroll-behavior: contain;
  scroll-padding: 16px;
}
.sales-voice-panel h2,
.sales-voice-panel h3,
.sales-voice-panel p {
  margin: 0;
}
.sales-voice-panel h2 {
  font-size: 19px;
  line-height: 1.55;
}
.sales-voice-panel h3 {
  font-size: 16px;
  line-height: 1.6;
}
.sales-voice-panel .sv-welcome > p {
  margin: 8px 0 24px;
  color: var(--np-muted, #6a7b95);
}
.sv-examples {
  display: grid;
  gap: 10px;
}
.sv-examples button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  background: var(--np-card, #fff);
  border: 1px solid var(--np-line, #d9e3f0);
  border-radius: 10px;
  text-align: left;
  color: inherit;
  min-height: 54px;
}
.sv-examples button:hover {
  background: #f3f6ff;
  border-color: #a4b6e8;
}
.sv-examples button > svg:last-child {
  margin-left: auto;
  color: #7f91ad;
}
.sv-examples button > svg:first-child {
  color: #3e66ce;
}
.sales-voice-panel .sv-example-note {
  color: var(--np-muted, #6a7b95);
  font-size: 13px;
  margin-top: 20px;
  line-height: 1.8;
}
.sv-history {
  font-size: 13px;
  color: var(--np-muted, #6a7b95);
  margin-bottom: 18px;
}
.sv-history summary {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.sv-history > div {
  padding: 12px 0;
  border-bottom: 1px solid var(--np-line, #d9e3f0);
}
.sales-voice-panel .sv-history-user {
  font-weight: 600;
  margin-bottom: 6px;
}
.sv-current-user {
  background: #eef3ff;
  border: 1px solid #dae4fb;
  border-radius: 10px;
  padding: 13px 16px;
  margin-bottom: 22px;
  overflow-wrap: anywhere;
}
.sv-current-user > span {
  display: block;
  font-size: 12px;
  color: #6e809d;
  margin-bottom: 4px;
}
.sales-voice-panel .sv-answer {
  font-size: 16px;
  margin-bottom: 16px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.sv-question {
  padding: 18px;
  border: 1px solid #e9ce78;
  background: #fff9e7;
  border-radius: 11px;
  margin-bottom: 22px;
}
.sales-voice-panel .sv-question h2 {
  font-size: 18px;
  margin: 6px 0 16px;
}
.sales-voice-panel .sv-question > p {
  color: #7a6840;
  font-size: 12px;
  margin-top: 14px;
}
.sv-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.sv-choices button {
  color: #725a17;
  background: #fff;
  border: 1px solid #d8bd6f;
  border-radius: 8px;
  padding: 10px 14px;
  min-height: 43px;
  text-align: left;
}
.sv-choices button:hover {
  border-color: #9b7c2c;
  background: #fffdf5;
}
.sv-caption {
  color: var(--np-muted, #6a7b95);
  font-size: 12px;
  display: block;
}
.sv-section-head {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #1d8077;
  margin-bottom: 12px;
}
.sales-voice-panel .sv-section-head h2 {
  font-size: 16px;
}
.sv-operation {
  padding: 17px 18px;
  border: 1px solid var(--np-line, #d9e3f0);
  border-radius: 11px;
  margin-bottom: 12px;
  background: var(--np-card, #fff);
  overflow-wrap: anywhere;
}
.sv-op-top {
  display: flex;
  gap: 11px;
  align-items: flex-start;
}
.sv-number {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  background: #eaf0ff;
  color: #345cc4;
  border-radius: 6px;
  font-size: 13px;
  flex: none;
}
.sales-voice-panel .sv-linked {
  font-size: 13px;
  color: var(--np-muted, #6a7b95);
  margin: 10px 0 0;
}
.sv-operation dl {
  margin: 13px 0 0;
  display: grid;
  gap: 10px;
}
.sv-operation dl > div {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
}
.sv-operation dt {
  font-size: 13px;
  color: var(--np-muted, #6a7b95);
}
.sv-operation dd {
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 15px;
}
.sv-operation dd > strong {
  font-weight: 650;
}
.sv-before {
  color: #8290a3;
  text-decoration: line-through;
}
.sv-evidence {
  font-size: 12px;
  color: var(--np-muted, #6a7b95);
  margin: 10px 0;
}
.sv-evidence summary {
  cursor: pointer;
}
.sales-voice-panel .sv-evidence p {
  white-space: pre-wrap;
  margin-top: 9px;
}
.sv-schedule {
  padding: 18px;
  border: 1px solid var(--np-line, #d9e3f0);
  border-radius: 11px;
}
.sales-voice-panel .sv-scope {
  color: var(--np-muted, #6a7b95);
  font-size: 13px;
  margin-bottom: 12px;
}
.sv-schedule-row {
  padding: 15px 0;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 16px;
  border-top: 1px solid var(--np-line, #d9e3f0);
  overflow-wrap: anywhere;
}
.sv-date {
  color: #496489;
  font-size: 14px;
}
.sv-date strong {
  display: block;
  font-size: 13px;
}
.sales-voice-panel .sv-schedule-row p {
  font-size: 12px;
  color: var(--np-muted, #6a7b95);
  margin-top: 4px;
}
.sales-voice-panel .sv-empty {
  font-size: 14px;
  margin: 15px 0;
}
.sv-followups {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}
.sv-followups button {
  font-size: 12px;
  border: 0;
  background: #eff4fa;
  color: #3e597d;
  padding: 6px 10px;
  border-radius: 6px;
}
.sv-compose {
  flex: none;
  border-top: 1px solid var(--np-line, #d9e3f0);
  padding: 16px 24px 18px;
  background: var(--np-card, #fff);
}
.sv-compose > label {
  font-size: 13px;
  color: var(--np-muted, #6a7b95);
  display: block;
  margin-bottom: 8px;
}
.sv-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sv-input-row textarea {
  font: inherit;
  font-size: 16px;
  line-height: 1.65;
  padding: 11px 12px;
  border: 1px solid #c9d7eb;
  border-radius: 9px;
  background: var(--np-bg, #fff);
  color: inherit;
  resize: vertical;
  min-width: 0;
  width: 100%;
  min-height: 76px;
  max-height: 160px;
}
.sv-mic {
  background: #eef3ff;
  border: 1px solid #d5e0f8;
  color: #3d63cf;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  flex: none;
}
.sv-mic.is-recording {
  background: #fff0ef;
  border-color: #e3ada8;
  color: #b34c49;
}
.sv-send {
  background: #3263da;
  border: 0;
  color: #fff;
  width: 40px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: none;
}
.sv-save-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}
.sv-save-row > span {
  font-size: 12px;
  color: var(--np-muted, #6a7b95);
}
.sv-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  background: #3263da;
  color: #fff;
  border: 0;
  border-radius: 9px;
  font-weight: 650 !important;
  min-height: 48px;
}
.sv-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid #cbd9ed;
  border-radius: 8px;
  background: var(--np-card, #fff);
  color: #315b9a;
  min-height: 42px;
}
.sv-text-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: #56739c;
  padding: 0;
  font-size: 12px !important;
  white-space: nowrap;
}
.sv-compose-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.sv-file {
  position: relative;
  overflow: hidden;
  font-size: 12px;
  color: #657d9f;
  cursor: pointer;
}
.sv-file input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  cursor: pointer;
}
.sv-recording {
  font-size: 13px;
  color: #ab5047;
  padding-bottom: 10px;
}
.sv-working {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 18px 0;
  color: #59749b;
  font-size: 14px;
}
.sv-error {
  background: #fff8ec;
  border: 1px solid #e5d3ab;
  padding: 14px;
  border-radius: 9px;
  margin: 14px 0;
  color: #795d24;
}
.sv-error > span {
  display: block;
  font-size: 12px;
  margin-top: 8px;
}
.sv-success {
  padding: 26px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  color: #20836e;
}
.sales-voice-panel .sv-success p {
  font-size: 15px;
  color: var(--np-muted, #6a7b95);
}
body[data-theme="dark"] .sales-voice-panel .sv-topline {
  background: #193e39;
  color: #90d9c1;
}
body[data-theme="dark"] .sales-voice-panel .sv-question {
  background: #393321;
  color: #f0dea8;
}
body[data-theme="dark"] .sales-voice-panel .sv-current-user {
  background: #213459;
  border-color: #3a4f75;
}
@media (max-width: 520px) {
  .sales-voice-panel .dialog-head {
    padding: 17px 18px;
  }
  .sales-voice-panel .sv-topline {
    padding: 12px 18px;
    font-size: 12px;
  }
  .sales-voice-panel .sv-scroll {
    padding: 20px 16px;
  }
  .sales-voice-panel .sv-compose {
    padding: 13px 16px 14px;
  }
  .sv-operation dl > div {
    grid-template-columns: 94px 1fr;
    gap: 8px;
  }
  .sv-operation {
    padding: 14px;
  }
  .sv-question {
    padding: 15px;
  }
  .sv-input-row {
    gap: 7px;
  }
  .sv-mic {
    width: 40px;
    height: 40px;
  }
  .sv-send {
    width: 36px;
  }
  .sales-voice-panel .sv-welcome h2 {
    font-size: 21px;
  }
  .sv-topline > span {
    gap: 5px;
  }
}

/* Voice consultation: one obvious speaking entry, then a persistent composer. */
.sv-mic-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  margin: 26px 0 30px;
}
.sales-voice-panel .sv-mic {
  width: 64px;
  height: 64px;
  background: #3863d4;
  color: #fff;
  border: 1px solid #3863d4;
  box-shadow: 0 4px 12px #315fc726;
  position: relative;
}
.sales-voice-panel .sv-mic-large {
  width: 88px;
  height: 88px;
}
.sv-mic-hero > strong {
  font-size: 16px;
  color: var(--np-text, #18334f);
}
.sv-mic-hero > span {
  font-size: 13px;
  color: var(--np-muted, #6a7b95);
}
.sales-voice-panel .sv-mic.is-recording {
  color: #fff;
  background: #b9514e;
  border-color: #b9514e;
}
.sales-voice-panel .sv-mic.is-recording::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 2px solid #b9514e66;
  border-radius: 50%;
  animation: sv-listening-ring 1.6s ease-out infinite;
  pointer-events: none;
}
@keyframes sv-listening-ring {
  0% {
    transform: scale(0.98);
    opacity: 0.85;
  }
  100% {
    transform: scale(1.15);
    opacity: 0;
  }
}
.sales-voice-panel .sv-examples {
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.sales-voice-panel .sv-examples button {
  padding: 11px 12px;
  font-size: 14px;
  min-height: 48px;
  gap: 8px;
}
.sales-voice-panel .sv-examples button > svg {
  flex-shrink: 0;
}
.sales-voice-panel .sv-example-note {
  font-size: 13px;
  white-space: pre-line;
}
.sales-voice-panel .sv-recording {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  font-size: 14px;
  color: #a64744;
}
.sv-recording > span:last-child {
  width: 100%;
  font-size: 12px;
  color: var(--np-muted, #6a7b95);
}
.sv-record-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.sv-wave {
  display: flex;
  align-items: center;
  height: 24px;
  gap: 3px;
  margin-left: 5px;
}
.sv-wave i {
  display: block;
  width: 3px;
  height: 24px;
  border-radius: 3px;
  background: currentColor;
  transform: scaleY(var(--voice-level, 0.12));
  transition: transform 80ms linear;
}
.sv-consultation {
  padding: 18px;
  border: 1px solid var(--np-line, #d9e3f0);
  border-radius: 11px;
  background: var(--np-card, #fff);
}
.sales-voice-panel .sv-consultation h2 {
  margin: 4px 0 6px;
  font-size: 18px;
  color: #1d8077;
}
.sales-voice-panel .sv-consult-scope {
  font-size: 12px;
  color: var(--np-muted, #6a7b95);
  margin-bottom: 16px;
}
.sv-consult-answer {
  font-size: 16px;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.sv-consult-answer strong {
  font-weight: 700;
}
.sv-consult-row {
  padding: 14px 0;
  border-top: 1px solid var(--np-line, #d9e3f0);
  margin-top: 14px;
}
.sales-voice-panel .sv-consult-row p {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.sv-consult-row .sv-secondary {
  margin-top: 10px;
  font-size: 14px;
}
.sv-tone-negative {
  color: #bb464f;
}
.sv-tone-positive {
  color: #20845a;
}
.sv-draft-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 12px 14px;
  margin-top: 16px;
  background: #fff9e8;
  border: 1px solid #ead7a3;
  border-radius: 8px;
  font-size: 13px;
  color: #715e2d;
}
html[data-theme="dark"] .sv-consultation h2 {
  color: #8bdcc6;
}
html[data-theme="dark"] .sv-tone-negative {
  color: #ffa4ac;
}
html[data-theme="dark"] .sv-tone-positive {
  color: #86d8ad;
}
html[data-theme="dark"] .sv-draft-notice {
  background: #393321;
  border-color: #806f46;
  color: #efdfb6;
}
html[data-theme="dark"] .sv-recording {
  color: #ffa4ac;
}
@media (max-width: 520px) {
  .sales-voice-panel .sv-mic {
    width: 58px;
    height: 58px;
  }
  .sales-voice-panel .sv-mic-large {
    width: 84px;
    height: 84px;
  }
  .sales-voice-panel .sv-examples button {
    font-size: 13px;
    padding: 10px;
  }
  .sv-consultation {
    padding: 15px;
  }
  .sv-mic-hero {
    margin: 22px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sales-voice-panel .sv-mic.is-recording::after {
    animation: none;
    opacity: 0.6;
  }
  .sv-wave i {
    transition: none;
  }
}
