:root {
  --bg: #f3f5f9;
  --surface: #ffffff;
  --surface-soft: #f7f8fb;
  --text: #172033;
  --muted: #6d778b;
  --line: #e3e7ef;
  --primary: #5563f7;
  --primary-dark: #3f4ed7;
  --success: #16895b;
  --danger: #ca4040;
  --warning: #d28a1d;
  --sidebar: #182034;
  --sidebar-muted: #aab2c5;
  --shadow: 0 16px 42px rgba(23, 32, 51, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  color: var(--text);
  background: var(--bg);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px 18px;
  color: #fff;
  background: var(--sidebar);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, #6673ff, #8b5cf6);
  font-size: 21px;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
}

.brand small {
  margin-top: 3px;
  color: var(--sidebar-muted);
  font-size: 11px;
}

.navigation {
  display: grid;
  gap: 8px;
  margin-top: 38px;
}

.nav-item {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 13px;
  border: 0;
  border-radius: 11px;
  color: var(--sidebar-muted);
  background: transparent;
  text-align: left;
  font-weight: 700;
}

.nav-item:hover,
.nav-item.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

.nav-icon {
  width: 22px;
  text-align: center;
  font-size: 19px;
}

.sidebar-footer {
  margin-top: auto;
}

.system-status {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--warning);
}

.system-status.online .status-dot {
  background: #35d08a;
  box-shadow: 0 0 0 5px rgba(53, 208, 138, 0.13);
}

.system-status strong,
.system-status small {
  display: block;
}

.system-status strong {
  font-size: 12px;
}

.system-status small {
  margin-top: 3px;
  color: var(--sidebar-muted);
  font-size: 10px;
}

.main {
  min-width: 0;
  padding: 30px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 25px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar h1 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.03em;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.upload-layout,
.result-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: start;
}

.panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 21px 23px;
  border-bottom: 1px solid var(--line);
}

.panel-header h2,
.section-heading h3 {
  margin: 0;
}

.panel-header h2 {
  font-size: 18px;
}

.panel-header p,
.section-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.panel-body {
  padding: 23px;
}

.field {
  display: block;
  margin-bottom: 18px;
}

.field > span {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
}

.field input,
.field select {
  width: 100%;
  min-height: 47px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  color: var(--text);
  background: var(--surface-soft);
  font: inherit;
  font-size: 14px;
}

.field select {
  cursor: pointer;
}

.field input:focus,
.field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(85, 99, 247, 0.1);
}

.field input:disabled,
.field select:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.dropzone {
  position: relative;
  min-height: 270px;
  display: grid;
  place-items: center;
  padding: 25px;
  border: 2px dashed #cad1df;
  border-radius: 16px;
  background: var(--surface-soft);
  text-align: center;
  transition: 0.2s ease;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--primary);
  background: rgba(85, 99, 247, 0.04);
}

.dropzone.has-file {
  border-style: solid;
  border-color: rgba(22, 137, 91, 0.45);
  background: rgba(22, 137, 91, 0.05);
}

.file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.dropzone-content {
  pointer-events: none;
}

.dropzone-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 18px;
  color: var(--primary);
  background: rgba(85, 99, 247, 0.1);
  font-size: 28px;
  font-weight: 800;
}

.dropzone strong {
  font-size: 16px;
}

.dropzone p {
  max-width: 390px;
  margin: 8px auto 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.selected-file {
  display: none;
  margin-top: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}

.selected-file.visible {
  display: block;
}

.selected-file strong,
.selected-file span {
  display: block;
}

.selected-file strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-file span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 16px;
  border-radius: 10px;
  font-weight: 800;
}

.button-primary {
  border: 0;
  color: #fff;
  background: var(--primary);
}

.button-primary:hover:not(:disabled) {
  background: var(--primary-dark);
}

.button-secondary {
  border: 1px solid var(--line);
  color: var(--text);
  background: #fff;
}

.button.small {
  min-height: 36px;
  font-size: 12px;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.actions .button-primary {
  flex: 1;
}

.notice {
  display: none;
  margin-top: 14px;
  padding: 12px;
  border-radius: 10px;
  font-size: 12px;
}

.notice.visible {
  display: block;
}

.notice.error {
  color: #8a2525;
  background: rgba(202, 64, 64, 0.09);
}

.notice.success {
  color: #12623f;
  background: rgba(22, 137, 91, 0.09);
}

.process-empty {
  min-height: 545px;
  display: grid;
  place-content: center;
  padding: 35px;
  text-align: center;
}

.empty-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 20px;
  color: var(--primary);
  background: rgba(85, 99, 247, 0.09);
  font-size: 31px;
}

.process-empty h2 {
  margin: 0;
  font-size: 18px;
}

.process-empty p {
  max-width: 410px;
  margin: 9px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.progress-number {
  color: var(--primary);
  font-size: 23px;
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #eceff5;
}

.progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #855bf4);
  transition: width 0.35s ease;
}

.metrics,
.result-metrics,
.history-summary {
  display: grid;
  gap: 10px;
}

.metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 15px;
}

.metric,
.summary-card {
  padding: 13px;
  border-radius: 11px;
  background: var(--surface-soft);
}

.metric span,
.summary-card span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric strong,
.summary-card strong {
  display: block;
  margin-top: 6px;
  font-size: 14px;
}

.live-transcript {
  margin-top: 22px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.counter {
  height: fit-content;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 11px;
  font-weight: 700;
}

.segment-list {
  max-height: 330px;
  overflow-y: auto;
}

.empty-state,
.loading-state,
.result-loading {
  padding: 45px 20px;
  color: var(--muted);
  text-align: center;
}

.segment,
.dialog-item {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.segment:last-child,
.dialog-item:last-child {
  border-bottom: 0;
}

.segment time,
.dialog-time {
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
}

.segment p,
.dialog-text {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.6;
}

.history-header {
  align-items: center;
}

.history-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.summary-card strong {
  font-size: 22px;
}

.history-row {
  display: grid;
  grid-template-columns:
    minmax(0, 2fr)
    minmax(90px, 0.7fr)
    minmax(100px, 0.8fr)
    minmax(120px, 0.9fr)
    auto;
  gap: 14px;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}

.history-row:last-child {
  border-bottom: 0;
}

.history-file {
  min-width: 0;
}

.history-file strong,
.history-file span {
  display: block;
}

.history-file strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-file span,
.history-cell span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.history-cell strong {
  display: block;
  font-size: 12px;
}

.status-badge {
  display: inline-flex;
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.status-badge.success {
  color: #11633f;
  background: rgba(22, 137, 91, 0.1);
}

.status-badge.processing {
  color: #77500f;
  background: rgba(210, 138, 29, 0.12);
}

.status-badge.failed {
  color: #8a2525;
  background: rgba(202, 64, 64, 0.1);
}

.open-result {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font-weight: 800;
  font-size: 11px;
}

.result-toolbar {
  margin-bottom: 14px;
}

.back-button {
  padding: 0;
  border: 0;
  color: var(--primary);
  background: transparent;
  font-weight: 800;
}

.result-hero {
  padding: 23px;
}

.result-main {
  display: flex;
  align-items: center;
  gap: 15px;
}

.file-icon {
  width: 54px;
  height: 54px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 15px;
  color: var(--primary);
  background: rgba(85, 99, 247, 0.1);
  font-size: 23px;
}

.result-file {
  min-width: 0;
}

.result-file h2 {
  overflow: hidden;
  margin: 9px 0 0;
  font-size: 19px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-file p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.audio-player {
  width: 100%;
  margin-top: 20px;
}

.result-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
}

.result-tabs {
  display: flex;
  gap: 4px;
  margin: 18px 0;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.result-tab {
  min-height: 40px;
  flex: 1;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
}

.result-tab.active {
  color: var(--primary);
  background: rgba(85, 99, 247, 0.09);
}

.result-tab-content {
  display: none;
}

.result-tab-content.active {
  display: block;
}

.full-transcript {
  white-space: pre-wrap;
  font-size: 15px;
  line-height: 1.75;
}

.analysis-placeholder {
  min-height: 260px;
  display: grid;
  place-content: center;
  padding: 25px;
  color: var(--muted);
  text-align: center;
}

.analysis-placeholder.large {
  min-height: 400px;
}

.analysis-placeholder span {
  color: var(--primary);
  font-size: 33px;
}

.analysis-placeholder h3 {
  margin: 12px 0 0;
  color: var(--text);
}

.analysis-placeholder p {
  max-width: 430px;
  margin: 8px auto 0;
  font-size: 13px;
  line-height: 1.55;
}

.dialog-time {
  border: 0;
  padding: 0;
  background: transparent;
}

.dialog-time:hover {
  text-decoration: underline;
}

@media (max-width: 1050px) {
  .app-shell {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .sidebar {
    padding: 20px 12px;
  }

  .brand > span:last-child,
  .nav-item:not(.active) {
    font-size: 0;
  }

  .nav-item {
    justify-content: center;
    padding: 0;
    font-size: 0;
  }

  .nav-icon {
    font-size: 20px;
  }

  .system-status > span:last-child {
    display: none;
  }

  .upload-layout,
  .result-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 12px;
  }

  .navigation {
    display: flex;
    justify-content: center;
    margin: 0;
  }

  .nav-item {
    width: auto;
    padding: 0 14px;
    font-size: 12px;
  }

  .nav-icon {
    font-size: 17px;
  }

  .sidebar-footer {
    margin: 0;
  }

  .system-status {
    padding: 10px;
  }

  .main {
    padding: 18px 12px 35px;
  }

  .topbar {
    align-items: flex-start;
  }

  .topbar h1 {
    font-size: 24px;
  }

  .topbar-action {
    min-height: 39px;
    padding: 0 12px;
    font-size: 11px;
  }

  .history-summary,
  .metrics,
  .result-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .history-row {
    grid-template-columns: 1fr auto;
  }

  .history-row .history-cell {
    display: none;
  }

  .result-tabs {
    overflow-x: auto;
  }

  .result-tab {
    min-width: 130px;
  }
}

/* ===== Conversation analysis ===== */

.overview-analysis {
  display: grid;
  gap: 18px;
}

.quality-score {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  background: var(--surface-soft);
}

.quality-score-value {
  width: 72px;
  height: 72px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--primary);
  font-size: 24px;
  font-weight: 900;
}

.quality-score strong,
.quality-score span {
  display: block;
}

.quality-score span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.analysis-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.analysis-fact,
.analysis-kpi {
  padding: 13px;
  border-radius: 11px;
  background: var(--surface-soft);
}

.analysis-fact span,
.analysis-kpi span,
.analysis-summary > span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.analysis-fact strong,
.analysis-kpi strong {
  display: block;
  margin-top: 6px;
  font-size: 13px;
}

.analysis-summary {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.analysis-summary p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.65;
}

.quality-analysis {
  display: grid;
  gap: 18px;
}

.analysis-score-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
  border-radius: 15px;
  background:
    linear-gradient(
      135deg,
      rgba(85, 99, 247, 0.12),
      rgba(133, 91, 244, 0.07)
    );
}

.analysis-score-number {
  width: 84px;
  height: 84px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background:
    linear-gradient(
      145deg,
      var(--primary),
      #855bf4
    );
  font-size: 28px;
  font-weight: 900;
}

.analysis-score-card h3 {
  margin: 0;
}

.analysis-score-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.analysis-provider {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.75);
  font-size: 10px;
  font-weight: 800;
}

.analysis-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.analysis-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.analysis-section {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.analysis-section.full-width {
  grid-column: 1 / -1;
}

.analysis-section h3 {
  margin: 0 0 13px;
  font-size: 15px;
}

.analysis-list {
  display: grid;
  gap: 9px;
}

.analysis-list-item {
  padding: 11px 12px;
  border-radius: 10px;
  background: var(--surface-soft);
  font-size: 12px;
  line-height: 1.5;
}

.analysis-list-item.critical {
  border-left: 4px solid var(--danger);
}

.analysis-list-item.high {
  border-left: 4px solid var(--warning);
}

.analysis-list-item.medium {
  border-left: 4px solid #e0b146;
}

.analysis-list-item.success {
  border-left: 4px solid var(--success);
}

.evidence-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.evidence-item:last-child {
  border-bottom: 0;
}

.evidence-time {
  border: 0;
  padding: 0;
  color: var(--primary);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}

.evidence-text {
  font-size: 13px;
  line-height: 1.55;
}

.analysis-empty-result {
  padding: 20px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

@media (max-width: 760px) {
  .analysis-kpi-grid,
  .analysis-sections,
  .analysis-facts {
    grid-template-columns: 1fr;
  }

  .analysis-section.full-width {
    grid-column: auto;
  }

  .analysis-score-card {
    align-items: flex-start;
  }

  .analysis-provider {
    position: static;
    margin-left: auto;
  }
}

/* ===== Analytical history ===== */

.history-summary-analytics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.history-filters {
  display: grid;
  grid-template-columns:
    minmax(220px, 1.5fr)
    repeat(3, minmax(150px, 0.7fr));
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.history-search,
.history-filter {
  display: block;
}

.history-search > span,
.history-filter > span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.history-search input,
.history-filter select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  color: var(--text);
  background: var(--surface-soft);
}

.history-search input:focus,
.history-filter select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(85, 99, 247, 0.09);
}

.history-table-header,
.history-analytics-row {
  display: grid;
  grid-template-columns:
    minmax(240px, 1.8fr)
    minmax(150px, 1fr)
    90px
    120px
    120px
    82px;
  gap: 14px;
  align-items: center;
}

.history-table-header {
  padding: 11px 22px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.history-analytics-row {
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}

.history-analytics-row:hover {
  background: rgba(85, 99, 247, 0.025);
}

.history-analytics-row:last-child {
  border-bottom: 0;
}

.history-conversation {
  min-width: 0;
}

.history-conversation strong,
.history-conversation span {
  display: block;
}

.history-conversation strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-conversation span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.history-topic {
  min-width: 0;
}

.history-topic strong,
.history-topic span {
  display: block;
}

.history-topic strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-topic span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.history-score {
  width: 48px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 900;
}

.history-score.good {
  color: #12623f;
  background: rgba(22, 137, 91, 0.12);
}

.history-score.warning {
  color: #80580d;
  background: rgba(210, 138, 29, 0.14);
}

.history-score.critical {
  color: #8a2525;
  background: rgba(202, 64, 64, 0.11);
}

.history-score.none {
  color: var(--muted);
  background: var(--surface-soft);
}

.analytics-badge {
  display: inline-flex;
  width: fit-content;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.analytics-badge.positive,
.analytics-badge.low {
  color: #12623f;
  background: rgba(22, 137, 91, 0.1);
}

.analytics-badge.neutral,
.analytics-badge.medium,
.analytics-badge.unknown {
  color: #725318;
  background: rgba(210, 138, 29, 0.11);
}

.analytics-badge.negative,
.analytics-badge.high {
  color: #8a2525;
  background: rgba(202, 64, 64, 0.1);
}

.history-violations {
  margin-top: 5px;
  color: var(--danger);
  font-size: 10px;
  font-weight: 700;
}

.history-empty-filter {
  padding: 50px 20px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1150px) {
  .history-filters {
    grid-template-columns: 1fr 1fr;
  }

  .history-table-header,
  .history-analytics-row {
    grid-template-columns:
      minmax(220px, 1.6fr)
      minmax(140px, 1fr)
      80px
      110px
      78px;
  }

  .history-table-header span:nth-child(5),
  .history-analytics-row > :nth-child(5) {
    display: none;
  }
}

@media (max-width: 760px) {
  .history-summary-analytics,
  .history-filters {
    grid-template-columns: 1fr 1fr;
  }

  .history-table-header {
    display: none;
  }

  .history-analytics-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .history-analytics-row > :nth-child(2),
  .history-analytics-row > :nth-child(4),
  .history-analytics-row > :nth-child(5) {
    display: none;
  }
}

/* ===== Non-call analytical profile ===== */

.non-call-result #overviewAnalysisContent .quality-score {
  display: none;
}

.non-call-result #overviewAnalysisContent .analysis-fact:nth-child(n+2) {
  display: none;
}

.non-call-result #qualityAnalysisContent > :not(.non-call-profile-card) {
  display: none;
}

.non-call-profile-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}

.non-call-profile-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
  font-size: 24px;
  font-weight: 800;
}

.non-call-profile-content {
  min-width: 0;
}

.non-call-profile-label {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

.non-call-profile-content h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.non-call-profile-content > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.non-call-profile-next {
  display: grid;
  gap: 5px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.non-call-profile-next strong {
  font-size: 13px;
}

.non-call-profile-next span {
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 760px) {
  .non-call-profile-card {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .non-call-profile-card > .analysis-provider {
    grid-column: 2;
    justify-self: start;
  }

  .non-call-profile-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }
}


/* ===== Input mode architecture ===== */

.input-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.input-mode-button {
  min-width: 0;
  min-height: 76px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--text);
  background: var(--surface-soft);
  text-align: left;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.input-mode-button:hover {
  border-color: rgba(85, 99, 247, 0.45);
}

.input-mode-button.active {
  border-color: var(--primary);
  background: rgba(85, 99, 247, 0.08);
  box-shadow: 0 0 0 3px rgba(85, 99, 247, 0.08);
}

.input-mode-button strong {
  font-size: 14px;
}

.input-mode-button span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.input-mode-content {
  display: none;
}

.input-mode-content.active {
  display: block;
}

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 18px;
  padding: 12px 13px;
  border: 1px solid rgba(22, 137, 91, 0.18);
  border-radius: 12px;
  background: rgba(22, 137, 91, 0.06);
}

.privacy-note-icon {
  width: 25px;
  height: 25px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--success);
  font-size: 12px;
  font-weight: 900;
}

.privacy-note strong {
  display: block;
  color: #12623f;
  font-size: 12px;
}

.privacy-note p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.online-mode-placeholder {
  min-height: 385px;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 30px;
  border: 2px dashed #cad1df;
  border-radius: 16px;
  background: var(--surface-soft);
  text-align: center;
}

.online-mode-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: var(--primary);
  background: rgba(85, 99, 247, 0.1);
  font-size: 23px;
}

.online-mode-placeholder h3 {
  margin: 17px 0 0;
  font-size: 18px;
}

.online-mode-placeholder > p {
  max-width: 410px;
  margin: 9px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.online-mode-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin: 18px 0;
}

.online-mode-features span {
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--primary);
  background: rgba(85, 99, 247, 0.08);
  font-size: 10px;
  font-weight: 800;
}

@media (max-width: 560px) {
  .input-mode-switch {
    grid-template-columns: 1fr;
  }

  .input-mode-button {
    min-height: 66px;
  }

  .online-mode-placeholder {
    min-height: 340px;
    padding: 22px 16px;
  }
}


/* ===== Online recording ===== */

.online-recorder {
  position: relative;
  overflow: hidden;
  min-height: 385px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}

.online-recorder.recording {
  border-color: rgba(202, 64, 64, 0.35);
  background:
    linear-gradient(
      145deg,
      rgba(202, 64, 64, 0.05),
      rgba(85, 99, 247, 0.04)
    );
}

.online-recorder.completed {
  border-color: rgba(22, 137, 91, 0.28);
  background: rgba(22, 137, 91, 0.04);
}

.online-recorder-head {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.online-recorder-head h3 {
  margin: 9px 0 0;
  font-size: 18px;
}

.online-recorder-head p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.online-microphone {
  position: relative;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
}

.online-microphone-icon {
  position: relative;
  z-index: 2;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: var(--primary);
  background: rgba(85, 99, 247, 0.1);
  font-size: 20px;
}

.online-microphone-dot {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(202, 64, 64, 0.16);
  opacity: 0;
}

.online-recorder.recording .online-microphone-icon {
  color: #ffffff;
  background: var(--danger);
}

.online-recorder.recording .online-microphone-dot {
  opacity: 1;
  animation: recording-pulse 1.6s infinite;
}

@keyframes recording-pulse {
  0% {
    transform: scale(0.72);
    opacity: 0.55;
  }

  70% {
    transform: scale(1.2);
    opacity: 0;
  }

  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

.online-status-badge {
  display: inline-flex;
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--primary);
  background: rgba(85, 99, 247, 0.1);
  font-size: 10px;
  font-weight: 800;
}

.online-recorder.recording .online-status-badge {
  color: #8a2525;
  background: rgba(202, 64, 64, 0.11);
}

.online-recorder.completed .online-status-badge {
  color: #12623f;
  background: rgba(22, 137, 91, 0.11);
}

.online-timer {
  margin: 24px 0 18px;
  font-variant-numeric: tabular-nums;
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-align: center;
}

.microphone-level {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

.microphone-level-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.microphone-level-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #eceff5;
}

.microphone-level-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      var(--success),
      var(--warning),
      var(--danger)
    );
  transition: width 0.08s linear;
}

.online-actions {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(120px, 0.55fr);
  gap: 10px;
  margin-top: 18px;
}

.online-actions #onlineSaveButton {
  grid-column: 1 / -1;
}

.button-danger {
  border: 0;
  color: #ffffff;
  background: var(--danger);
}

.button-danger:hover:not(:disabled) {
  filter: brightness(0.93);
}

.online-message {
  min-height: 18px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.online-message.success {
  color: #12623f;
}

.online-message.warning {
  color: #80580d;
}

.online-message.error {
  color: #8a2525;
}

.online-partial-line {
  margin-top: 8px;
  padding: 13px;
  border: 1px dashed rgba(85, 99, 247, 0.35);
  border-radius: 11px;
  background: rgba(85, 99, 247, 0.045);
}

.online-partial-line p {
  color: var(--muted);
  font-style: italic;
}

.online-partial-line p::after {
  content: "▋";
  margin-left: 4px;
  color: var(--primary);
  animation: online-cursor 0.9s infinite;
}

@keyframes online-cursor {
  0%,
  45% {
    opacity: 1;
  }

  46%,
  100% {
    opacity: 0;
  }
}

.online-final-line {
  padding-left: 13px;
  border-left: 3px solid var(--success);
}

.progress-bar.microphone-progress {
  background:
    linear-gradient(
      90deg,
      var(--success),
      var(--warning),
      var(--danger)
    );
  transition: width 0.08s linear;
}

@media (max-width: 560px) {
  .online-recorder {
    min-height: 350px;
    padding: 18px;
  }

  .online-recorder-head {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .online-microphone {
    width: 52px;
    height: 52px;
  }

  .online-microphone-icon {
    width: 46px;
    height: 46px;
  }

  .online-timer {
    font-size: 36px;
  }

  .online-actions {
    grid-template-columns: 1fr;
  }

  .online-actions #onlineSaveButton {
    grid-column: auto;
  }
}


/* ===== Online transcript UX fixes ===== */

.online-line-label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 7px;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.online-line-label.partial {
  color: var(--primary);
  background: rgba(85, 99, 247, 0.1);
}

.online-line-label.final {
  color: #12623f;
  background: rgba(22, 137, 91, 0.11);
}

.online-partial-line time {
  display: block;
  color: var(--muted);
}

.online-final-line time {
  display: block;
  margin-bottom: 5px;
}

.online-recorder.quiet {
  border-color: rgba(210, 138, 29, 0.52);
  background:
    linear-gradient(
      145deg,
      rgba(210, 138, 29, 0.08),
      rgba(255, 255, 255, 0.55)
    );
}

.online-recorder.quiet .microphone-level {
  border-color: rgba(210, 138, 29, 0.42);
}

.online-recorder.quiet .microphone-level-bar {
  background: var(--warning);
}

.online-recorder.quiet .online-microphone-icon {
  box-shadow:
    0 0 0 5px rgba(210, 138, 29, 0.12);
}


/* ===== Streaming transcript history result ===== */

.transcript-source-stack {
  display: grid;
  gap: 18px;
}

.transcript-source-panel {
  min-width: 0;
}

.streaming-source-panel {
  border-color: rgba(85, 99, 247, 0.28);
  background:
    linear-gradient(
      180deg,
      rgba(85, 99, 247, 0.035),
      rgba(255, 255, 255, 0) 180px
    ),
    var(--surface);
}

.transcript-source-header {
  align-items: flex-start;
}

.transcript-source-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.transcript-source-title h2 {
  margin: 0;
}

.source-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.source-badge-streaming {
  color: var(--primary);
  background: rgba(85, 99, 247, 0.11);
}

.source-badge-whisper {
  color: #11633f;
  background: rgba(22, 137, 91, 0.1);
}

.transcript-source-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.transcript-source-meta > div {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.transcript-source-meta span,
.transcript-source-meta strong {
  display: block;
}

.transcript-source-meta span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.transcript-source-meta strong {
  overflow: hidden;
  margin-top: 5px;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.streaming-full-transcript {
  padding: 16px;
  border: 1px solid rgba(85, 99, 247, 0.16);
  border-radius: 11px;
  background: rgba(85, 99, 247, 0.045);
}

.streaming-segments-section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.streaming-result-segments {
  max-height: 330px;
  overflow-y: auto;
}

.streaming-result-segment .dialog-time {
  color: var(--primary);
}

.transcript-warning {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(211, 83, 75, 0.2);
  border-radius: 11px;
  color: #84372f;
  background: rgba(211, 83, 75, 0.07);
}

.transcript-warning strong {
  display: block;
  font-size: 13px;
}

.transcript-warning p {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.55;
}

.empty-state.compact {
  padding: 22px 14px;
}

@media (max-width: 760px) {
  .transcript-source-header {
    display: grid;
    grid-template-columns: 1fr;
  }

  .transcript-source-header .button {
    width: 100%;
  }

  .transcript-source-meta {
    grid-template-columns: 1fr;
  }

  .transcript-source-meta strong {
    white-space: normal;
  }

  .streaming-full-transcript {
    padding: 13px;
  }
}


/* ===== History streaming transcript ===== */

.transcript-source-stack {
  display: grid;
  gap: 18px;
}

.transcript-source-panel {
  min-width: 0;
}

.streaming-source-panel {
  border-color: rgba(85, 99, 247, 0.3);
  background:
    linear-gradient(
      180deg,
      rgba(85, 99, 247, 0.04),
      rgba(255, 255, 255, 0) 180px
    ),
    var(--surface);
}

.transcript-source-header {
  align-items: flex-start;
}

.transcript-source-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.transcript-source-title h2 {
  margin: 0;
}

.source-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.source-badge-streaming {
  color: var(--primary);
  background: rgba(85, 99, 247, 0.11);
}

.source-badge-whisper {
  color: #11633f;
  background: rgba(22, 137, 91, 0.1);
}

.transcript-source-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.transcript-source-meta > div {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.transcript-source-meta span,
.transcript-source-meta strong {
  display: block;
}

.transcript-source-meta span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.transcript-source-meta strong {
  overflow: hidden;
  margin-top: 5px;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.streaming-full-transcript {
  padding: 16px;
  border: 1px solid rgba(85, 99, 247, 0.17);
  border-radius: 11px;
  background: rgba(85, 99, 247, 0.045);
}

.streaming-segments-section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.streaming-result-segments {
  max-height: 330px;
  overflow-y: auto;
}

.transcript-warning {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(211, 83, 75, 0.22);
  border-radius: 11px;
  color: #84372f;
  background: rgba(211, 83, 75, 0.07);
}

.transcript-warning strong {
  display: block;
  font-size: 13px;
}

.transcript-warning p {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.55;
}

.empty-state.compact {
  padding: 22px 14px;
}

@media (max-width: 760px) {
  .transcript-source-header {
    display: grid;
    grid-template-columns: 1fr;
  }

  .transcript-source-header .button {
    width: 100%;
  }

  .transcript-source-meta {
    grid-template-columns: 1fr;
  }

  .transcript-source-meta strong {
    white-space: normal;
  }

  .streaming-full-transcript {
    padding: 13px;
  }
}


/* ===== History online badge ===== */

.history-conversation-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.history-conversation-title strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-online-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 22px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--primary);
  background: rgba(85, 99, 247, 0.11);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.05em;
}

@media (max-width: 760px) {
  .history-online-badge {
    min-height: 20px;
    padding: 4px 7px;
    font-size: 8px;
  }
}

/* ===== Meeting summary profile ===== */

.meeting-summary-panel {
  margin: 22px 0;
}

.meeting-summary-header {
  align-items: center;
}

.meeting-profile-label {
  margin-bottom: 7px;
  color: var(--primary);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meeting-profile-version {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--primary);
  background: rgba(85, 99, 247, 0.1);
  font-size: 10px;
  font-weight: 900;
}

.meeting-summary-body {
  display: grid;
  gap: 16px;
}

.meeting-main-summary {
  display: grid;
  grid-template-columns:
    minmax(190px, 0.35fr)
    minmax(0, 1fr);
  gap: 14px;
}

.meeting-main-topic,
.meeting-summary-text {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.meeting-main-topic span,
.meeting-summary-text > span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.meeting-main-topic strong {
  font-size: 17px;
  line-height: 1.45;
}

.meeting-summary-text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}

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

.meeting-summary-card {
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}

.meeting-wide-card {
  grid-column: 1 / -1;
}

.meeting-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.meeting-card-heading h3 {
  margin: 0;
  font-size: 14px;
}

.meeting-card-heading > span {
  min-width: 26px;
  height: 26px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  color: var(--primary);
  background: rgba(85, 99, 247, 0.1);
  font-size: 10px;
  font-weight: 900;
}

.meeting-list {
  display: grid;
  gap: 8px;
}

.meeting-list-item {
  position: relative;
  padding: 10px 11px 10px 27px;
  border-radius: 10px;
  background: var(--surface-soft);
  font-size: 13px;
  line-height: 1.55;
}

.meeting-list-item::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.meeting-list-empty {
  padding: 15px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.meeting-action-list {
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
}

.meeting-action-item {
  display: flex;
  min-width: 0;
  gap: 11px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
}

.meeting-action-number {
  width: 25px;
  height: 25px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: var(--primary);
  font-size: 10px;
  font-weight: 900;
}

.meeting-action-content {
  min-width: 0;
}

.meeting-action-content strong,
.meeting-action-meta {
  display: block;
}

.meeting-action-content strong {
  font-size: 13px;
  line-height: 1.5;
}

.meeting-action-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .meeting-main-summary {
    grid-template-columns: 1fr;
  }

  .meeting-action-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .meeting-summary-grid {
    grid-template-columns: 1fr;
  }

  .meeting-wide-card {
    grid-column: auto;
  }

  .meeting-summary-header {
    align-items: flex-start;
  }
}



/* MEETING_ENTITIES_FRONTEND_V2 */

.meeting-card-subtitle {
  margin: 4px 0 0;
  color: #77839a;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}

.meeting-entities {
  display: grid;
  gap: 18px;
}

.meeting-entity-group {
  display: grid;
  gap: 10px;
}

.meeting-entity-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.meeting-entity-group-heading strong {
  color: #172137;
  font-size: 14px;
}

.meeting-entity-group-heading > span {
  display: inline-flex;
  min-width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eef0ff;
  color: #5965f2;
  font-size: 12px;
  font-weight: 700;
}

.meeting-entity-values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.meeting-entity-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  min-width: 145px;
  max-width: 100%;
  padding: 11px 14px;
  border: 1px solid #e2e7f1;
  border-left: 3px solid #7b83a1;
  border-radius: 12px;
  background: #f7f8fc;
}

.meeting-entity-chip > span {
  overflow-wrap: anywhere;
  color: #182137;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.meeting-entity-chip > small {
  color: #7c879c;
  font-size: 11px;
}

.meeting-entity-chip.entity-person {
  border-left-color: #5965f2;
}

.meeting-entity-chip.entity-system {
  border-left-color: #7857e8;
}

.meeting-entity-chip.entity-document {
  border-left-color: #21a366;
}

.meeting-entity-chip.entity-date {
  border-left-color: #e59d28;
}

.meeting-entity-chip.entity-money {
  border-left-color: #159b74;
}

.meeting-entity-chip.entity-organization,
.meeting-entity-chip.entity-department {
  border-left-color: #3978d4;
}

.meeting-entity-chip.entity-project {
  border-left-color: #b45cc5;
}

.meeting-entities-empty {
  width: 100%;
}

@media (max-width: 720px) {
  .meeting-entity-values {
    display: grid;
    grid-template-columns: 1fr;
  }

  .meeting-entity-chip {
    width: 100%;
    min-width: 0;
  }
}

/* =========================================================
   MEETING_PRODUCT_CARD_REDESIGN_V3
   ========================================================= */

.meeting-product-panel {
  overflow: hidden;
  border: 1px solid #dfe4f2;
  background: #ffffff;
}

.meeting-product-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 28px 30px;
  border-bottom: 1px solid #e3e7f1;
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #f5f4ff 100%
  );
}

.meeting-product-heading {
  max-width: 720px;
}

.meeting-product-heading h2 {
  margin: 7px 0 6px;
  color: #172036;
  font-size: 25px;
  line-height: 1.2;
}

.meeting-product-heading p {
  margin: 0;
  color: #6d7891;
  font-size: 14px;
  line-height: 1.55;
}

.meeting-product-header-meta {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 16px;
  min-width: 220px;
}

.meeting-product-header-meta
.meeting-profile-version {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 13px;
  border-radius: 999px;
  background: #eeecff;
  color: #5b57e8;
  font-size: 12px;
  font-weight: 800;
}

.meeting-completeness {
  width: 100%;
  max-width: 220px;
}

.meeting-completeness-value {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.meeting-completeness-value strong {
  color: #172036;
  font-size: 22px;
}

.meeting-completeness-value span {
  color: #7d879d;
  font-size: 11px;
  font-weight: 700;
}

.meeting-completeness-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e8f2;
}

.meeting-completeness-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    #665cff,
    #8c68ff
  );
  transition: width 300ms ease;
}

.meeting-product-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 26px;
}

.meeting-product-overview {
  display: grid;
  grid-template-columns:
    minmax(220px, 0.7fr)
    minmax(0, 2.3fr);
  gap: 16px;
}

.meeting-product-topic,
.meeting-product-summary {
  min-width: 0;
  padding: 20px;
  border: 1px solid #dfe4f0;
  border-radius: 16px;
  background: #f8f9fc;
}

.meeting-product-topic {
  background: linear-gradient(
    145deg,
    #f3f2ff,
    #fafaff
  );
}

.meeting-product-caption {
  display: block;
  margin-bottom: 8px;
  color: #727d94;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meeting-product-topic strong {
  display: block;
  color: #172036;
  font-size: 20px;
  line-height: 1.35;
}

.meeting-product-summary p {
  margin: 0;
  color: #293249;
  font-size: 15px;
  line-height: 1.65;
}

.meeting-product-metrics {
  display: grid;
  grid-template-columns:
    repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.meeting-product-metric {
  padding: 16px 18px;
  border: 1px solid #e1e5ef;
  border-radius: 14px;
  background: #ffffff;
}

.meeting-product-metric span {
  display: block;
  margin-bottom: 8px;
  color: #7a8499;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.meeting-product-metric strong {
  display: block;
  color: #172036;
  font-size: 25px;
  line-height: 1;
}

.meeting-priority-section,
.meeting-secondary-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.meeting-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.meeting-section-heading h3 {
  margin: 0;
  color: #172036;
  font-size: 19px;
}

.meeting-section-hint {
  padding: 7px 11px;
  border-radius: 999px;
  background: #edf8f3;
  color: #27845d;
  font-size: 11px;
  font-weight: 800;
}

.meeting-priority-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.meeting-priority-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid #dfe4ef;
  border-radius: 16px;
  background: #ffffff;
}

.meeting-card-decision {
  border-top: 3px solid #24a46d;
}

.meeting-card-question {
  border-top: 3px solid #f0a020;
}

.meeting-card-action {
  grid-column: 1 / -1;
  border-top: 3px solid #625cff;
  background: linear-gradient(
    145deg,
    #fafaff,
    #f5f4ff
  );
}

.meeting-card-risk {
  border-top: 3px solid #e15858;
}

.meeting-priority-card
.meeting-card-heading {
  margin-bottom: 14px;
}

.meeting-priority-card
.meeting-card-heading > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.meeting-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #f0efff;
  color: #6058f5;
  font-size: 14px;
  font-weight: 900;
}

.meeting-priority-card
.meeting-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meeting-priority-card
.meeting-list-item {
  border: 0;
  border-radius: 11px;
  background: #f6f7fa;
}

.meeting-priority-card
.meeting-list-empty {
  min-height: 92px;
  border-radius: 12px;
  background: #fafbfc;
}

.meeting-card-action
.meeting-action-list {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.meeting-card-action
.meeting-action-item {
  margin: 0;
  min-height: 70px;
  background: #ffffff;
}

.meeting-details-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.meeting-detail-card {
  overflow: hidden;
  border: 1px solid #dfe4ef;
  border-radius: 14px;
  background: #ffffff;
}

.meeting-detail-wide {
  grid-column: 1 / -1;
}

.meeting-detail-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  color: #263048;
  font-size: 14px;
  font-weight: 800;
  user-select: none;
}

.meeting-detail-card summary::-webkit-details-marker {
  display: none;
}

.meeting-detail-card summary::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  margin-left: auto;
  border-radius: 8px;
  background: #f0efff;
  color: #625cff;
  font-size: 17px;
}

.meeting-detail-card[open] summary::after {
  content: "−";
}

.meeting-detail-card
summary > span:last-of-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  margin-left: auto;
  padding: 0 8px;
  border-radius: 999px;
  background: #f0efff;
  color: #625cff;
  font-size: 12px;
  font-weight: 900;
}

.meeting-detail-content {
  padding: 0 16px 16px;
  border-top: 1px solid #edf0f5;
}

.meeting-detail-content.meeting-list {
  padding-top: 14px;
}

.meeting-detail-content
.meeting-list-item {
  margin-bottom: 8px;
}

.meeting-detail-content
.meeting-entity-group:first-child {
  margin-top: 14px;
}

@media (max-width: 1100px) {
  .meeting-product-metrics {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }

  .meeting-details-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .meeting-product-header {
    flex-direction: column;
    padding: 22px;
  }

  .meeting-product-header-meta {
    width: 100%;
    align-items: flex-start;
  }

  .meeting-completeness {
    max-width: none;
  }

  .meeting-product-body {
    padding: 18px;
  }

  .meeting-product-overview {
    grid-template-columns: 1fr;
  }

  .meeting-product-metrics {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .meeting-priority-grid {
    grid-template-columns: 1fr;
  }

  .meeting-card-action {
    grid-column: auto;
  }

  .meeting-card-action
  .meeting-action-list {
    grid-template-columns: 1fr;
  }

  .meeting-details-grid {
    grid-template-columns: 1fr;
  }

  .meeting-detail-wide {
    grid-column: auto;
  }

  .meeting-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .meeting-product-heading h2 {
    font-size: 21px;
  }

  .meeting-product-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .meeting-product-metric {
    padding: 14px;
  }

  .meeting-product-metric strong {
    font-size: 22px;
  }

  .meeting-priority-card {
    padding: 15px;
  }

  .meeting-product-summary p {
    font-size: 14px;
  }
}

/* ===== Operator call analysis v2 ===== */

.call-v2-report {
  display: grid;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(
      145deg,
      rgba(85, 99, 247, 0.045),
      rgba(133, 91, 244, 0.025)
    );
}

.call-v2-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.call-v2-header h3 {
  margin: 5px 0 0;
  font-size: 20px;
}

.call-v2-header p {
  max-width: 720px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.call-v2-eyebrow {
  color: var(--primary);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.call-v2-version {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--primary);
  background: rgba(85, 99, 247, 0.1);
  font-size: 10px;
  font-weight: 900;
}

.call-v2-warning {
  display: grid;
  gap: 5px;
  padding: 13px 15px;
  border-left: 4px solid var(--warning);
  border-radius: 10px;
  background: rgba(224, 177, 70, 0.1);
}

.call-v2-warning strong {
  font-size: 12px;
}

.call-v2-warning span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.call-v2-business-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.call-v2-business-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #ffffff;
}

.call-v2-business-card > span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.call-v2-business-card > strong {
  display: block;
  margin-top: 8px;
  font-size: 15px;
}

.call-v2-business-card p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
}

.call-v2-score-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.call-v2-score-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 13px;
  background: var(--surface-soft);
}

.call-v2-score-value {
  width: 58px;
  height: 58px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--muted);
  font-size: 19px;
  font-weight: 900;
}

.call-v2-score-value.good {
  background: var(--success);
}

.call-v2-score-value.warning {
  background: var(--warning);
}

.call-v2-score-value.critical {
  background: var(--danger);
}

.call-v2-score-card span,
.call-v2-score-card strong,
.call-v2-score-card small {
  display: block;
}

.call-v2-score-card span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.call-v2-score-card strong {
  margin-top: 5px;
  font-size: 14px;
}

.call-v2-score-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.call-v2-details-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.call-v2-detail-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #ffffff;
}

.call-v2-detail-card.call-v2-detail-wide {
  grid-column: 1 / -1;
}

.call-v2-detail-card summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 800;
}

.call-v2-detail-card summary::-webkit-details-marker {
  display: none;
}

.call-v2-detail-card summary strong {
  min-width: 27px;
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--primary);
  background: rgba(85, 99, 247, 0.09);
  text-align: center;
  font-size: 10px;
}

.call-v2-detail-content {
  padding: 0 16px 16px;
}

.call-v2-check-list {
  display: grid;
  gap: 8px;
}

.call-v2-check {
  display: grid;
  grid-template-columns:
    24px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 9px;
  background: var(--surface-soft);
  font-size: 11px;
}

.call-v2-check-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
}

.call-v2-check.passed .call-v2-check-icon {
  background: var(--success);
}

.call-v2-check.failed .call-v2-check-icon {
  background: var(--warning);
}

.call-v2-check strong {
  color: var(--muted);
  font-size: 10px;
}

.call-v2-list-item {
  display: grid;
  grid-template-columns:
    auto minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.call-v2-list-item:last-child {
  border-bottom: 0;
}

.call-v2-time {
  border: 0;
  padding: 3px 0;
  color: var(--primary);
  background: transparent;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.call-v2-time:hover {
  text-decoration: underline;
}

.call-v2-list-text {
  font-size: 12px;
  line-height: 1.55;
}

.call-v2-simple-list {
  display: grid;
  gap: 8px;
}

.call-v2-simple-item {
  padding: 10px 11px;
  border-radius: 9px;
  background: var(--surface-soft);
  font-size: 12px;
  line-height: 1.5;
}

.call-v2-simple-item.success {
  border-left: 4px solid var(--success);
}

.call-v2-simple-item.recommendation {
  border-left: 4px solid var(--primary);
}

.call-v2-simple-item.violation {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.call-v2-simple-item.violation.critical {
  border-left: 4px solid var(--danger);
}

.call-v2-simple-item.violation.high {
  border-left: 4px solid var(--warning);
}

.call-v2-simple-item.violation.medium {
  border-left: 4px solid #e0b146;
}

.call-v2-simple-item.violation span {
  color: var(--muted);
  font-size: 10px;
}

.call-v2-success-message {
  padding: 12px;
  border-left: 4px solid var(--success);
  border-radius: 9px;
  background: rgba(42, 166, 108, 0.08);
  font-size: 12px;
}

.call-v2-emotion-list {
  display: grid;
  gap: 9px;
}

.call-v2-emotion-item {
  display: grid;
  grid-template-columns:
    52px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border-radius: 9px;
  background: var(--surface-soft);
}

.call-v2-emotion-item.positive {
  border-left: 4px solid var(--success);
}

.call-v2-emotion-item.negative {
  border-left: 4px solid var(--warning);
}

.call-v2-emotion-item.conflict {
  border-left: 4px solid var(--danger);
}

.call-v2-emotion-item strong {
  font-size: 11px;
}

.call-v2-emotion-item p {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.5;
}

.call-v2-empty {
  padding: 14px;
  color: var(--muted);
  text-align: center;
  font-size: 11px;
}

@media (max-width: 760px) {
  .call-v2-report {
    padding: 14px;
  }

  .call-v2-header {
    display: grid;
  }

  .call-v2-version {
    justify-self: start;
  }

  .call-v2-business-grid,
  .call-v2-score-grid,
  .call-v2-details-grid {
    grid-template-columns: 1fr;
  }

  .call-v2-detail-card.call-v2-detail-wide {
    grid-column: auto;
  }

  .call-v2-score-card {
    align-items: flex-start;
  }

  .call-v2-list-item {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}


/* ===== Call Analysis V2.1 Clean Frontend ===== */

.call-v2-legacy-hidden {
  display: none !important;
}

.call-v2-reliability-card,
.call-v2-schema-notice {
  margin-bottom: 12px;
  padding: 16px;
  border: 1px solid rgba(85, 99, 247, 0.18);
  border-radius: 13px;
  background:
    linear-gradient(
      135deg,
      rgba(85, 99, 247, 0.08),
      rgba(255, 255, 255, 0.98)
    );
}

.call-v2-reliability-main {
  display: flex;
  gap: 14px;
  align-items: center;
}

.call-v2-reliability-main span,
.call-v2-reliability-main strong,
.call-v2-reliability-main small {
  display: block;
}

.call-v2-reliability-main span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.call-v2-reliability-main strong {
  margin-top: 4px;
  font-size: 15px;
}

.call-v2-reliability-main small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.call-v2-reliability-value {
  width: 64px;
  height: 64px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--muted);
  font-size: 17px;
  font-weight: 900;
}

.call-v2-reliability-value.good {
  background: var(--success);
}

.call-v2-reliability-value.warning {
  background: var(--warning);
}

.call-v2-reliability-value.critical {
  background: var(--danger);
}

.call-v2-reliability-warnings {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.call-v2-reliability-warning {
  padding: 9px 10px;
  border-left: 3px solid var(--warning);
  border-radius: 8px;
  background: rgba(245, 166, 35, 0.08);
  font-size: 11px;
  line-height: 1.45;
}

.call-v2-schema-notice {
  display: grid;
  gap: 5px;
  border-color: var(--line);
  background: var(--surface-soft);
  font-size: 12px;
}

.call-v2-schema-notice span {
  color: var(--muted);
}

.call-v2-quality-score-card {
  border: 1px solid rgba(85, 99, 247, 0.18);
  background: rgba(85, 99, 247, 0.05);
}

.call-v2-evidence-list {
  display: grid;
  gap: 10px;
}

.call-v2-evidence-item {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
}

.call-v2-evidence-header,
.call-v2-evidence-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.call-v2-evidence-type,
.call-v2-evidence-confidence {
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
}

.call-v2-evidence-type {
  color: var(--primary);
  background: rgba(85, 99, 247, 0.09);
}

.call-v2-evidence-confidence {
  color: var(--success);
  background: rgba(42, 166, 108, 0.09);
}

.call-v2-evidence-finding {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.5;
}

.call-v2-evidence-item blockquote {
  margin: 9px 0;
  padding: 10px 12px;
  border-left: 3px solid var(--primary);
  border-radius: 7px;
  background: #fff;
  font-size: 12px;
  line-height: 1.55;
}

.call-v2-evidence-meta {
  color: var(--muted);
  font-size: 10px;
}

.call-v2-emotion-stages {
  display: grid;
  gap: 10px;
}

.call-v2-emotion-stage {
  overflow: hidden;
  border: 1px solid var(--line);
  border-left: 4px solid var(--muted);
  border-radius: 11px;
  background: var(--surface-soft);
}

.call-v2-emotion-stage.positive {
  border-left-color: var(--success);
}

.call-v2-emotion-stage.tension,
.call-v2-emotion-stage.concern,
.call-v2-emotion-stage.negative {
  border-left-color: var(--warning);
}

.call-v2-emotion-stage.conflict {
  border-left-color: var(--danger);
}

.call-v2-emotion-stage-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.call-v2-emotion-stage-index,
.call-v2-emotion-stage-trend {
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(85, 99, 247, 0.08);
  color: var(--primary);
  font-size: 9px;
  font-weight: 900;
}

.call-v2-emotion-stage-body {
  padding: 12px;
}

.call-v2-emotion-stage-body > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.call-v2-emotion-stage-body strong {
  font-size: 13px;
}

.call-v2-emotion-stage-body span,
.call-v2-emotion-stage-body small {
  color: var(--muted);
  font-size: 10px;
}

.call-v2-emotion-stage-body p {
  margin: 9px 0 0;
  font-size: 12px;
  line-height: 1.55;
}

.call-v2-emotion-intensity {
  margin-top: 10px;
}

.call-v2-emotion-intensity > div {
  overflow: hidden;
  height: 6px;
  margin-top: 5px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.08);
}

.call-v2-emotion-intensity i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

@media (max-width: 760px) {
  .call-v2-reliability-main {
    align-items: flex-start;
  }

  .call-v2-emotion-stage-body > div:first-child {
    display: grid;
  }
}


/* ===== Call Analysis V2.3 canary result ===== */

.call-v23-result-card {
  grid-column: 1 / -1;
  display: grid;
  gap: 18px;
  margin: 0 0 20px;
  padding: 22px;
  border: 1px solid #dbe4f0;
  border-radius: 18px;
  background:
    linear-gradient(
      135deg,
      rgba(248, 250, 252, 0.98),
      rgba(255, 255, 255, 1)
    );
  box-shadow:
    0 12px 32px rgba(15, 23, 42, 0.06);
}

.call-v23-result-card.call-v23-status-resolved {
  border-color: #bbf7d0;
  background:
    linear-gradient(
      135deg,
      rgba(240, 253, 244, 0.98),
      rgba(255, 255, 255, 1)
    );
}

.call-v23-result-card.call-v23-status-redirected {
  border-color: #bfdbfe;
  background:
    linear-gradient(
      135deg,
      rgba(239, 246, 255, 0.98),
      rgba(255, 255, 255, 1)
    );
}

.call-v23-result-card.call-v23-status-pending {
  border-color: #fde68a;
  background:
    linear-gradient(
      135deg,
      rgba(255, 251, 235, 0.98),
      rgba(255, 255, 255, 1)
    );
}

.call-v23-result-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.call-v23-result-header > div {
  display: grid;
  gap: 5px;
}

.call-v23-result-header h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  color: #0f172a;
}

.call-v23-eyebrow {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.call-v23-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  background: #e2e8f0;
  color: #334155;
}

.call-v23-status-badge-resolved {
  background: #dcfce7;
  color: #166534;
}

.call-v23-status-badge-redirected {
  background: #dbeafe;
  color: #1d4ed8;
}

.call-v23-status-badge-informed {
  background: #e0f2fe;
  color: #0369a1;
}

.call-v23-status-badge-pending {
  background: #fef3c7;
  color: #92400e;
}

.call-v23-status-badge-unclear,
.call-v23-status-badge-not-applicable {
  background: #e2e8f0;
  color: #475569;
}

.call-v23-result-grid {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.call-v23-result-metric {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(203, 213, 225, 0.8);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.call-v23-result-metric > span,
.call-v23-result-reason > span {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  color: #64748b;
}

.call-v23-result-metric > strong {
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.35;
  color: #0f172a;
}

.call-v23-result-metric > small {
  font-size: 12px;
  line-height: 1.4;
  color: #64748b;
}

.call-v23-result-reason {
  display: grid;
  gap: 7px;
  padding: 16px 18px;
  border-left: 4px solid #3b82f6;
  border-radius: 0 12px 12px 0;
  background: rgba(239, 246, 255, 0.72);
}

.call-v23-status-resolved
.call-v23-result-reason {
  border-left-color: #22c55e;
  background: rgba(240, 253, 244, 0.76);
}

.call-v23-status-pending
.call-v23-result-reason {
  border-left-color: #f59e0b;
  background: rgba(255, 251, 235, 0.82);
}

.call-v23-result-reason p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #334155;
}

.call-v23-result-note {
  padding-top: 14px;
  border-top: 1px solid rgba(203, 213, 225, 0.75);
  font-size: 12px;
  line-height: 1.5;
  color: #64748b;
}

@media (max-width: 1100px) {
  .call-v23-result-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .call-v23-result-card {
    gap: 15px;
    padding: 17px;
    border-radius: 15px;
  }

  .call-v23-result-header {
    display: grid;
    gap: 12px;
  }

  .call-v23-status-badge {
    justify-self: start;
    white-space: normal;
  }

  .call-v23-result-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Call Analysis V2.3 interface reconciliation ===== */

.call-v23-primary-result {
  color: #166534;
  font-weight: 800;
}

.call-v23-legacy-result-card {
  border-color: #e2e8f0;
  background: #f8fafc;
}

.call-v23-legacy-result-card > span {
  color: #64748b;
}

.call-v23-legacy-result-card > strong {
  color: #475569;
  font-size: 15px;
}

.call-v23-legacy-result-card p {
  color: #64748b;
}

.call-v23-legacy-reliability {
  position: relative;
  border-color: #e2e8f0;
  background:
    linear-gradient(
      135deg,
      rgba(248, 250, 252, 0.98),
      rgba(255, 255, 255, 1)
    );
}

.call-v23-legacy-reliability::before {
  content: "Техническая оценка V2.2";
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.call-analysis-v23-active
#analysisResolved {
  color: #166534;
}

.call-analysis-v23-active
#overviewResolved {
  color: #166534;
}

@media (max-width: 700px) {
  .call-v23-legacy-reliability::before {
    position: static;
    display: inline-flex;
    width: fit-content;
    margin: 0 0 10px;
  }
}

/* CALL_ANALYSIS_V23_NORMALIZED_TRANSCRIPT_INTERFACE */

.transcript-view-controls {
  margin: 0 0 20px;
  padding: 18px;
  border: 1px solid #dbe5f0;
  border-radius: 16px;
  background:
    linear-gradient(
      135deg,
      rgba(245, 249, 255, 0.98),
      rgba(255, 255, 255, 0.98)
    );
}

.transcript-view-controls-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.transcript-view-controls-main > div:first-child {
  min-width: 0;
}

.transcript-view-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: #62748a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.transcript-view-controls-main strong {
  display: block;
  color: #16263a;
  font-size: 17px;
  line-height: 1.3;
}

.transcript-view-controls-main p {
  margin: 6px 0 0;
  color: #68778a;
  font-size: 13px;
  line-height: 1.5;
}

.transcript-view-switch {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 4px;
  padding: 4px;
  border: 1px solid #d7e1ec;
  border-radius: 12px;
  background: #eef3f8;
}

.transcript-view-switch button {
  min-height: 38px;
  padding: 8px 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #53657a;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.transcript-view-switch button:hover {
  color: #1c3657;
}

.transcript-view-switch button.active {
  background: #ffffff;
  color: #184f90;
  box-shadow:
    0 2px 8px
    rgba(31, 64, 104, 0.12);
}

.transcript-view-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.transcript-view-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid #dce5ef;
  border-radius: 999px;
  background: #ffffff;
  color: #53657a;
  font-size: 12px;
  font-weight: 700;
}

#transcriptViewStatus {
  border-color: #cfe1f5;
  background: #edf6ff;
  color: #1f5f9f;
}

.transcript-rules-details {
  margin-top: 12px;
  border-top: 1px solid #e2e9f1;
  padding-top: 12px;
}

.transcript-rules-details summary {
  color: #42566e;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.transcript-rules-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.transcript-rules-list span {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 5px 9px;
  border-radius: 8px;
  background: #edf1f6;
  color: #4b5d72;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;
  font-size: 11px;
}

.transcript-rules-list p {
  margin: 0;
  color: #68778a;
  font-size: 13px;
}

.dialog-content {
  min-width: 0;
}

.dialog-speaker {
  display: inline-flex;
  margin-bottom: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef3f8;
  color: #52667c;
  font-size: 11px;
  font-weight: 800;
}

.dialog-content .dialog-text {
  margin: 0;
}

@media (max-width: 760px) {
  .transcript-view-controls {
    padding: 15px;
  }

  .transcript-view-controls-main {
    flex-direction: column;
    gap: 14px;
  }

  .transcript-view-switch {
    display: grid;
    width: 100%;
    grid-template-columns:
      minmax(0, 1fr)
      minmax(0, 1fr);
  }

  .transcript-view-switch button {
    width: 100%;
    padding-inline: 8px;
  }

  .transcript-view-meta {
    display: grid;
    grid-template-columns:
      minmax(0, 1fr)
      minmax(0, 1fr);
  }

  #transcriptViewStatus {
    grid-column: 1 / -1;
  }
}


/* =========================================================
   HISTORY UI 14B — user-facing speaker-aware transcript
   ========================================================= */

.transcript-view-controls {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  background:
    linear-gradient(
      135deg,
      rgba(248, 250, 252, 0.98),
      rgba(241, 245, 249, 0.9)
    );
}

.transcript-view-controls-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.transcript-view-copy {
  min-width: 0;
}

.transcript-view-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
}

.transcript-view-copy p {
  margin: 0;
  max-width: 660px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.transcript-view-switch {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(226, 232, 240, 0.78);
}

.transcript-view-button {
  min-height: 36px;
  padding: 7px 13px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #475569;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.transcript-view-button:hover {
  color: #0f172a;
}

.transcript-view-button.active,
.transcript-view-button[aria-pressed="true"] {
  background: #ffffff;
  color: #0f172a;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.08),
    0 4px 12px rgba(15, 23, 42, 0.06);
}

.transcript-view-user-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 13px;
  color: #64748b;
  font-size: 12px;
}

.transcript-view-status {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.11);
  color: #15803d;
  font-weight: 700;
}

.transcript-view-safe-note::before {
  content: "•";
  margin-right: 8px;
  color: #94a3b8;
}

.transcript-technical-data {
  display: none !important;
}

/*
  Роль остаётся частью реплики, но технические значения
  operator/client пользователю не показываются.
*/

.dialog-speaker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 25px;
  margin-bottom: 7px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.dialog-speaker-operator {
  background: rgba(37, 99, 235, 0.11);
  color: #1d4ed8;
}

.dialog-speaker-client {
  background: rgba(124, 58, 237, 0.11);
  color: #6d28d9;
}

.dialog-speaker-unknown {
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
}

.dialog-segment,
.transcript-dialog-segment {
  position: relative;
}

.dialog-segment:has(.dialog-speaker-operator),
.transcript-dialog-segment:has(.dialog-speaker-operator) {
  border-left-color: rgba(37, 99, 235, 0.58);
}

.dialog-segment:has(.dialog-speaker-client),
.transcript-dialog-segment:has(.dialog-speaker-client) {
  border-left-color: rgba(124, 58, 237, 0.58);
}

/*
  Служебные карточки внутренних контрактов не должны
  появляться в пользовательской истории.
*/

#callAnalysisV23Card,
.transcript-rules-details,
#transcriptRulesDetails {
  display: none !important;
}

@media (max-width: 760px) {
  .transcript-view-controls {
    margin: 12px 0;
    padding: 13px;
    border-radius: 14px;
  }

  .transcript-view-controls-main {
    flex-direction: column;
    gap: 13px;
  }

  .transcript-view-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .transcript-view-button {
    width: 100%;
    padding-inline: 9px;
  }

  .transcript-view-user-status {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .transcript-view-safe-note::before {
    display: none;
  }
}

/* HISTORY_UI_BLOCK_14C_START */

.user-dialog-transcript {
  display: flex;
  flex-direction: column;
  gap: 14px;
  white-space: normal;
}

.user-dialog-message {
  width: min(92%, 760px);
  padding: 14px 16px;
  border: 1px solid #dfe5ef;
  border-radius: 16px;
  background: #ffffff;
  box-shadow:
    0 4px 16px
    rgba(30, 45, 75, 0.055);
}

.user-dialog-message-operator {
  align-self: flex-start;
  border-left: 4px solid #5264ff;
  background:
    linear-gradient(
      135deg,
      rgba(82, 100, 255, 0.075),
      rgba(255, 255, 255, 0.98)
    );
}

.user-dialog-message-client {
  align-self: flex-end;
  border-right: 4px solid #159a6c;
  background:
    linear-gradient(
      225deg,
      rgba(21, 154, 108, 0.075),
      rgba(255, 255, 255, 0.98)
    );
}

.user-dialog-message-unknown {
  align-self: center;
  background: #f7f8fb;
}

.user-dialog-message-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.user-dialog-speaker {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.025em;
}

.user-dialog-speaker-operator {
  color: #3648da;
  background: rgba(82, 100, 255, 0.12);
}

.user-dialog-speaker-client {
  color: #087b56;
  background: rgba(21, 154, 108, 0.12);
}

.user-dialog-speaker-unknown {
  color: #596174;
  background: #eceff5;
}

.user-dialog-time {
  color: #748096;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.user-dialog-message-text {
  margin: 0;
  color: #182237;
  font-size: 15px;
  line-height: 1.62;
  overflow-wrap: anywhere;
}

.user-business-resolved
.analysis-fact:has(
  span:first-child
) strong {
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .user-dialog-transcript {
    gap: 10px;
  }

  .user-dialog-message {
    width: 100%;
    padding: 12px 13px;
    border-radius: 14px;
  }

  .user-dialog-message-operator,
  .user-dialog-message-client,
  .user-dialog-message-unknown {
    align-self: stretch;
  }

  .user-dialog-message-header {
    align-items: flex-start;
  }

  .user-dialog-message-text {
    font-size: 14px;
    line-height: 1.55;
  }
}

/* HISTORY_UI_BLOCK_14C_END */

/* HISTORY_UI_BLOCK_14E_STYLES_START */

.history-executive-summary {
  margin: 22px 0;
  padding: 24px;
  border: 1px solid #dfe5f2;
  border-radius: 22px;
  background:
    linear-gradient(
      145deg,
      #ffffff 0%,
      #f8f9ff 56%,
      #f5fbf8 100%
    );
  box-shadow:
    0 14px 36px
    rgba(40, 52, 92, 0.07);
}

.history-executive-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.history-executive-header h2,
.history-executive-section-title h3 {
  margin: 5px 0 7px;
  color: #172037;
}

.history-executive-header h2 {
  font-size: 23px;
  line-height: 1.2;
}

.history-executive-header p {
  max-width: 710px;
  margin: 0;
  color: #69748b;
  line-height: 1.55;
}

.history-executive-eyebrow {
  display: block;
  color: #5965f3;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.history-executive-status {
  min-width: 205px;
  padding: 13px 16px;
  border-radius: 16px;
  border: 1px solid transparent;
}

.history-executive-status span {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.72;
}

.history-executive-status strong {
  font-size: 17px;
}

.history-executive-status-resolved {
  color: #08794d;
  background: #eaf9f2;
  border-color: #cceedd;
}

.history-executive-status-pending,
.history-executive-status-partial {
  color: #9a5d00;
  background: #fff7e7;
  border-color: #f4dfae;
}

.history-executive-status-unresolved {
  color: #b32936;
  background: #fff0f1;
  border-color: #f1cfd3;
}

.history-executive-status-neutral {
  color: #59657b;
  background: #f1f3f8;
  border-color: #dde1e9;
}

.history-executive-kpis {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(250px, 0.42fr);
  gap: 14px;
  margin-bottom: 14px;
}

.history-executive-kpis article {
  min-height: 88px;
  padding: 17px 18px;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #e1e5ef;
}

.history-executive-kpis span,
.history-executive-grid span {
  display: block;
  margin-bottom: 7px;
  color: #737f96;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.history-executive-topic strong {
  color: #182139;
  font-size: 19px;
  line-height: 1.35;
}

.history-executive-score {
  display: flex;
  align-items: center;
  gap: 14px;
}

.history-executive-score-value {
  display: grid;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background:
    linear-gradient(
      145deg,
      #5865f2,
      #7657ef
    );
  font-size: 21px;
  font-weight: 850;
  box-shadow:
    0 10px 22px
    rgba(88, 101, 242, 0.23);
}

.history-executive-score strong {
  color: #19223a;
  font-size: 16px;
}

.history-executive-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.history-executive-grid article {
  min-height: 132px;
  padding: 18px;
  border: 1px solid #e1e5ef;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.92);
}

.history-executive-grid p {
  margin: 0;
  color: #263149;
  font-size: 15px;
  line-height: 1.58;
}

.history-executive-timeline {
  margin-top: 20px;
  padding-top: 19px;
  border-top: 1px solid #e1e5ef;
}

.history-executive-section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.history-executive-section-title h3 {
  font-size: 18px;
}

.history-executive-timeline-hint {
  color: #778298;
  font-size: 12px;
}

.history-call-timeline {
  display: grid;
  grid-template-columns:
    repeat(
      auto-fit,
      minmax(180px, 1fr)
    );
  gap: 10px;
}

.history-call-timeline-item {
  position: relative;
  min-height: 116px;
  padding: 15px 14px 14px;
  border: 1px solid #dfe4ee;
  border-left-width: 4px;
  border-radius: 15px;
  color: #1b243b;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    border-color 150ms ease;
}

.history-call-timeline-item:hover,
.history-call-timeline-item.is-active {
  transform: translateY(-2px);
  box-shadow:
    0 10px 22px
    rgba(44, 55, 91, 0.10);
}

.history-call-timeline-item.is-active {
  outline: 2px solid rgba(88, 101, 242, 0.22);
}

.history-call-timeline-neutral {
  border-left-color: #79859a;
}

.history-call-timeline-warning {
  border-left-color: #dc9014;
}

.history-call-timeline-positive {
  border-left-color: #159967;
}

.history-call-timeline-marker {
  display: inline-grid;
  width: 25px;
  height: 25px;
  place-items: center;
  margin-right: 7px;
  border-radius: 50%;
  color: #ffffff;
  background: #5d68ed;
  font-size: 12px;
  font-weight: 800;
}

.history-call-timeline-time {
  color: #5965f3;
  font-size: 12px;
  font-weight: 800;
}

.history-call-timeline-item strong {
  display: block;
  margin-top: 11px;
  font-size: 14px;
  line-height: 1.35;
}

.history-call-timeline-item small {
  display: block;
  margin-top: 7px;
  color: #727d91;
  font-size: 12px;
  line-height: 1.42;
}

.history-analysis-empty-hidden {
  display: none !important;
}

.history-empty-sections-notice {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px dashed #d9dfeb;
  border-radius: 13px;
  color: #768198;
  background: #f8f9fc;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 900px) {
  .history-executive-header,
  .history-executive-section-title {
    align-items: stretch;
    flex-direction: column;
  }

  .history-executive-status {
    min-width: 0;
  }

  .history-executive-kpis,
  .history-executive-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .history-executive-summary {
    margin: 14px 0;
    padding: 17px;
    border-radius: 18px;
  }

  .history-executive-header {
    gap: 15px;
    margin-bottom: 16px;
  }

  .history-executive-header h2 {
    font-size: 20px;
  }

  .history-executive-grid article {
    min-height: 0;
    padding: 15px;
  }

  .history-call-timeline {
    display: flex;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
  }

  .history-call-timeline-item {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }

  .history-executive-timeline-hint {
    display: none;
  }
}

/* HISTORY_UI_BLOCK_14E_STYLES_END */

/* HISTORY_UI_BLOCK_14F_B_STYLES_START */

.history-legacy-overview-summary-hidden {
  display: none !important;
}

.history-analysis-empty-hidden {
  display: none !important;
}

#historyEmptySectionsNotice14F {
  margin-top: 14px;
}

@media (max-width: 820px) {
  #historyEmptySectionsNotice14F {
    margin-top: 10px;
  }
}

/* HISTORY_UI_BLOCK_14F_B_STYLES_END */

/* HISTORY_UI_BLOCK_14F_C_STYLES_START */

.history-14fc-empty-section-hidden,
.history-14fc-technical-hidden {
  display: none !important;
}

#historyExecutiveSummary14E
.history-executive-grid article p {
  overflow-wrap: anywhere;
}

#historyExecutiveSummary14E
.history-executive-grid article:first-child p {
  max-width: 72ch;
}

/* HISTORY_UI_BLOCK_14F_C_STYLES_END */

/* ===== Call Analysis 15F-B3 Reliability Evidence ===== */

.call-v2-reliability-evidence {
  margin-top: 14px;
  border-top: 1px solid rgba(85, 99, 247, 0.14);
}

.call-v2-reliability-evidence summary {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px 0 2px;
  cursor: pointer;
  list-style: none;
  font-size: 12px;
  font-weight: 800;
}

.call-v2-reliability-evidence summary::-webkit-details-marker {
  display: none;
}

.call-v2-reliability-evidence summary::after {
  content: "Раскрыть";
  margin-left: auto;
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
}

.call-v2-reliability-evidence[open] summary::after {
  content: "Свернуть";
}

.call-v2-reliability-evidence summary strong {
  min-width: 27px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--primary);
  background: rgba(85, 99, 247, 0.1);
  text-align: center;
  font-size: 10px;
}

.call-v2-reliability-evidence-body {
  padding-top: 12px;
}

.call-v2-reliability-evidence-note {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.call-v2-reliability-evidence-list {
  display: grid;
  gap: 9px;
}

.call-v2-reliability-evidence-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.88);
}

.call-v2-reliability-evidence-head,
.call-v2-reliability-evidence-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.call-v2-reliability-evidence-head {
  justify-content: space-between;
}

.call-v2-reliability-evidence-type,
.call-v2-reliability-evidence-confidence,
.call-v2-reliability-evidence-source {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
}

.call-v2-reliability-evidence-type {
  color: var(--primary);
  background: rgba(85, 99, 247, 0.09);
}

.call-v2-reliability-evidence-confidence {
  color: var(--success);
  background: rgba(42, 166, 108, 0.09);
}

.call-v2-reliability-evidence-source {
  color: var(--muted);
  background: rgba(17, 24, 39, 0.06);
  overflow-wrap: anywhere;
}

.call-v2-reliability-evidence-finding {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.5;
}

.call-v2-reliability-evidence-item blockquote {
  margin: 9px 0;
  padding: 10px 12px;
  border-left: 3px solid var(--primary);
  border-radius: 7px;
  background: #fff;
  font-size: 12px;
  line-height: 1.55;
}

.call-v2-reliability-evidence-meta {
  color: var(--muted);
  font-size: 10px;
}

.call-v2-reliability-evidence-empty {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(85, 99, 247, 0.14);
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 760px) {
  .call-v2-reliability-evidence summary {
    align-items: flex-start;
  }

  .call-v2-reliability-evidence summary::after {
    display: none;
  }

  .call-v2-reliability-evidence-item {
    padding: 11px;
  }

  .call-v2-reliability-evidence-head {
    align-items: flex-start;
  }

  .call-v2-reliability-evidence-meta {
    display: grid;
    justify-items: start;
  }
}

/* CALL_ANALYSIS_15H_C_RELIABILITY_CALIBRATION_UI */

.call-v2-reliability-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.call-v2-reliability-metric {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
}

.call-v2-reliability-metric-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.call-v2-reliability-metric-head span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}

.call-v2-reliability-metric-head strong {
  flex: 0 0 auto;
  font-size: 16px;
  line-height: 1;
}

.call-v2-reliability-metric small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.call-v2-reliability-progress {
  height: 6px;
  margin-top: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.08);
}

.call-v2-reliability-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--muted);
}

.call-v2-reliability-metric.good
.call-v2-reliability-metric-head strong {
  color: var(--success);
}

.call-v2-reliability-metric.good
.call-v2-reliability-progress span {
  background: var(--success);
}

.call-v2-reliability-metric.warning
.call-v2-reliability-metric-head strong {
  color: #a16207;
}

.call-v2-reliability-metric.warning
.call-v2-reliability-progress span {
  background: #d89b24;
}

.call-v2-reliability-metric.critical
.call-v2-reliability-metric-head strong {
  color: var(--danger);
}

.call-v2-reliability-metric.critical
.call-v2-reliability-progress span {
  background: var(--danger);
}

.call-v2-reliability-cap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(216, 155, 36, 0.24);
  border-radius: 11px;
  background: rgba(216, 155, 36, 0.08);
}

.call-v2-reliability-cap span {
  color: #85600f;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.call-v2-reliability-cap strong {
  color: #85600f;
  font-size: 12px;
}

.call-v2-reliability-cap small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.call-v2-reliability-evidence-confidence.good {
  color: var(--success);
  background: rgba(42, 166, 108, 0.09);
}

.call-v2-reliability-evidence-confidence.warning {
  color: #8a6105;
  background: rgba(216, 155, 36, 0.12);
}

.call-v2-reliability-evidence-confidence.critical {
  color: var(--danger);
  background: rgba(220, 53, 69, 0.1);
}

.call-v2-reliability-evidence-confidence.none {
  color: var(--muted);
  background: rgba(17, 24, 39, 0.06);
}

@media (max-width: 900px) {
  .call-v2-reliability-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .call-v2-reliability-metric {
    padding: 12px;
  }

  .call-v2-reliability-cap {
    grid-template-columns: 1fr;
  }

  .call-v2-reliability-cap small {
    grid-column: auto;
  }
}

/* CALL_ANALYSIS_16B_A_EXPLAINABILITY */

.call-v2-explainability {
  margin-top: 14px;
  border: 1px solid rgba(85, 99, 247, 0.18);
  border-radius: 13px;
  background: rgba(85, 99, 247, 0.035);
  overflow: hidden;
}

.call-v2-explainability > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.call-v2-explainability > summary::-webkit-details-marker {
  display: none;
}

.call-v2-explainability > summary > span:first-child {
  display: grid;
  gap: 3px;
}

.call-v2-explainability > summary strong {
  color: var(--text);
  font-size: 13px;
}

.call-v2-explainability > summary small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.call-v2-explainability-action {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--primary);
  background: rgba(85, 99, 247, 0.1);
  font-size: 10px;
  font-weight: 900;
}

.call-v2-explainability[open]
.call-v2-explainability-action {
  font-size: 0;
}

.call-v2-explainability[open]
.call-v2-explainability-action::after {
  content: "Свернуть";
  font-size: 10px;
}

.call-v2-explainability-body {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px;
}

.call-v2-explainability-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.call-v2-explainability-section {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
}

.call-v2-explainability-section > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.call-v2-explainability-section > header div {
  display: grid;
  gap: 3px;
}

.call-v2-explainability-section > header span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.call-v2-explainability-section > header h4 {
  margin: 0;
  font-size: 13px;
  line-height: 1.3;
}

.call-v2-explainability-section > header > strong {
  flex: 0 0 auto;
  min-width: 31px;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--primary);
  background: rgba(85, 99, 247, 0.1);
  text-align: center;
  font-size: 10px;
}

.call-v2-explainability-section.negative {
  border-color: rgba(216, 155, 36, 0.22);
}

.call-v2-explainability-section.positive {
  border-color: rgba(42, 166, 108, 0.22);
}

.call-v2-explainability-note {
  margin: -2px 0 12px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.call-v2-component-list {
  display: grid;
  gap: 11px;
}

.call-v2-component-item {
  display: grid;
  gap: 7px;
}

.call-v2-component-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.call-v2-component-head span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.call-v2-component-head strong {
  color: var(--text);
  font-size: 10px;
}

.call-v2-component-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.08);
}

.call-v2-component-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.call-v2-explainability-list {
  display: grid;
  gap: 8px;
}

.call-v2-explainability-item {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  gap: 9px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(17, 24, 39, 0.025);
}

.call-v2-explainability-icon {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
}

.call-v2-explainability-item strong {
  display: block;
  font-size: 11px;
  line-height: 1.4;
}

.call-v2-explainability-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.call-v2-explainability-item small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
}

.call-v2-explainability-item.strength
.call-v2-explainability-icon {
  color: var(--success);
  background: rgba(42, 166, 108, 0.12);
}

.call-v2-explainability-item.warning
.call-v2-explainability-icon {
  color: #8a6105;
  background: rgba(216, 155, 36, 0.14);
}

.call-v2-explainability-item.critical
.call-v2-explainability-icon {
  color: var(--danger);
  background: rgba(220, 53, 69, 0.12);
}

.call-v2-explainability-item.info
.call-v2-explainability-icon {
  color: var(--primary);
  background: rgba(85, 99, 247, 0.1);
}

.call-v2-explainability-empty {
  padding: 11px;
  border-radius: 9px;
  color: var(--muted);
  background: rgba(17, 24, 39, 0.025);
  font-size: 10px;
  line-height: 1.45;
}

.call-v2-executive-summary {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(85, 99, 247, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(
      135deg,
      rgba(85, 99, 247, 0.055),
      rgba(255, 255, 255, 0.94)
    );
}

.call-v2-executive-summary > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.call-v2-executive-summary > header div {
  display: grid;
  gap: 3px;
}

.call-v2-executive-summary > header span {
  color: var(--primary);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.045em;
}

.call-v2-executive-summary > header h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
}

.call-v2-summary-status {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.call-v2-summary-status.success {
  color: var(--success);
  background: rgba(42, 166, 108, 0.1);
}

.call-v2-summary-status.critical {
  color: var(--danger);
  background: rgba(220, 53, 69, 0.1);
}

.call-v2-summary-status.neutral {
  color: var(--muted);
  background: rgba(17, 24, 39, 0.06);
}

.call-v2-executive-summary-text {
  margin: 13px 0 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.55;
}

.call-v2-executive-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.call-v2-executive-summary-grid article {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.88);
}

.call-v2-executive-summary-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}

.call-v2-executive-summary-grid p {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  .call-v2-executive-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .call-v2-explainability-columns {
    grid-template-columns: 1fr;
  }

  .call-v2-explainability > summary {
    align-items: flex-start;
  }

  .call-v2-executive-summary > header {
    display: grid;
  }

  .call-v2-summary-status {
    justify-self: start;
  }
}

@media (max-width: 520px) {
  .call-v2-explainability > summary {
    padding: 13px;
  }

  .call-v2-explainability-action {
    display: none;
  }

  .call-v2-explainability-body {
    padding: 0 11px 11px;
  }

  .call-v2-explainability-section {
    padding: 12px;
  }

  .call-v2-executive-summary {
    padding: 13px;
  }

  .call-v2-executive-summary-grid {
    grid-template-columns: 1fr;
  }
}

/* CALL_ANALYSIS_V25_DETERMINISTIC_REPLAY_CSS */

.call-v2-replay-section {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid rgba(85, 99, 247, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(
      180deg,
      rgba(247, 248, 255, 0.98),
      rgba(255, 255, 255, 0.98)
    );
  box-shadow:
    0 14px 34px rgba(17, 24, 39, 0.06);
}

.call-v2-replay-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.call-v2-replay-header h4 {
  margin: 4px 0 7px;
  color: var(--text);
  font-size: 19px;
  line-height: 1.25;
}

.call-v2-replay-header p {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.call-v2-replay-eyebrow {
  color: var(--primary);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.call-v2-replay-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.call-v2-replay-badges span {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--primary);
  background: rgba(85, 99, 247, 0.09);
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
}

.call-v2-replay-notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 15px;
  padding: 11px 13px;
  border: 1px solid rgba(42, 166, 108, 0.16);
  border-radius: 12px;
  background: rgba(42, 166, 108, 0.06);
}

.call-v2-replay-notice strong {
  flex: 0 0 auto;
  color: var(--success);
  font-size: 10px;
  font-weight: 900;
}

.call-v2-replay-notice span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.call-v2-replay-list {
  display: grid;
  gap: 13px;
  margin-top: 15px;
}

.call-v2-replay-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
}

.call-v2-replay-item-head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: flex-start;
}

.call-v2-replay-item-head h5 {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
}

.call-v2-replay-index {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.call-v2-replay-priority {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
}

.call-v2-replay-priority.is-high {
  color: var(--danger);
  background: rgba(218, 64, 64, 0.09);
}

.call-v2-replay-priority.is-medium {
  color: #a56a00;
  background: rgba(239, 163, 42, 0.11);
}

.call-v2-replay-priority.is-low {
  color: var(--success);
  background: rgba(42, 166, 108, 0.09);
}

.call-v2-replay-description {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.call-v2-replay-comparison {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    34px
    minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  margin-top: 14px;
}

.call-v2-replay-column {
  min-width: 0;
  padding: 13px;
  border-radius: 12px;
}

.call-v2-replay-column.is-actual {
  border: 1px solid rgba(218, 64, 64, 0.13);
  background: rgba(218, 64, 64, 0.035);
}

.call-v2-replay-column.is-better {
  border: 1px solid rgba(42, 166, 108, 0.16);
  background: rgba(42, 166, 108, 0.045);
}

.call-v2-replay-column.is-empty {
  color: var(--muted);
}

.call-v2-replay-column-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.call-v2-replay-column blockquote {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.6;
}

.call-v2-replay-column p {
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
}

.call-v2-replay-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 22px;
  font-weight: 900;
}

.call-v2-replay-time {
  margin-top: 10px;
  padding: 0;
  border: 0;
  color: var(--primary);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 900;
}

.call-v2-replay-time:hover {
  text-decoration: underline;
}

.call-v2-replay-effect {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 10px;
  margin-top: 11px;
  padding: 11px 12px;
  border-radius: 11px;
  background: rgba(85, 99, 247, 0.055);
}

.call-v2-replay-effect span {
  color: var(--primary);
  font-size: 10px;
  font-weight: 900;
}

.call-v2-replay-effect p {
  margin: 0;
  color: var(--text);
  font-size: 11px;
  line-height: 1.5;
}

.call-v2-replay-code {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 9px;
  overflow-wrap: anywhere;
}

.call-v2-replay-footer {
  margin-top: 12px;
  color: var(--muted);
  font-size: 9px;
  text-align: right;
}

@media (max-width: 760px) {
  .call-v2-replay-section {
    padding: 15px;
    border-radius: 15px;
  }

  .call-v2-replay-header {
    display: grid;
  }

  .call-v2-replay-badges {
    justify-content: flex-start;
  }

  .call-v2-replay-notice {
    display: grid;
  }

  .call-v2-replay-item {
    padding: 13px;
  }

  .call-v2-replay-item-head {
    display: grid;
  }

  .call-v2-replay-priority {
    justify-self: start;
  }

  .call-v2-replay-comparison {
    grid-template-columns: 1fr;
  }

  .call-v2-replay-arrow {
    min-height: 22px;
    transform: rotate(90deg);
  }

  .call-v2-replay-effect {
    grid-template-columns: 1fr;
  }

  .call-v2-replay-footer {
    text-align: left;
  }
}

/* MISSION_CONTROL_FRONTEND_17C_D_STYLES_START */

.mc-view {
  --mc-red: #c83b4f;
  --mc-red-soft: #fff2f4;
  --mc-orange: #c97616;
  --mc-orange-soft: #fff7eb;
  --mc-green: #16895b;
  --mc-green-soft: #edf9f4;
  --mc-blue: #5563f7;
  --mc-ink: #182033;
  --mc-muted: #6d778b;
  --mc-line: #e2e6ef;
  --mc-surface: #ffffff;
  --mc-soft: #f7f8fb;
}

.mc-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 18px;
}

.mc-page-copy {
  max-width: 680px;
}

.mc-eyebrow,
.mc-section-heading span {
  display: block;
  color: var(--mc-blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mc-page-header h2 {
  margin: 7px 0 8px;
  color: var(--mc-ink);
  font-size: clamp(25px, 3vw, 34px);
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.mc-page-header p {
  margin: 0;
  color: var(--mc-muted);
  font-size: 13px;
  line-height: 1.6;
}

.mc-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.mc-mode-switch {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--mc-line);
  border-radius: 12px;
  background: #f2f4f8;
}

.mc-mode-switch button {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  color: var(--mc-muted);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.mc-mode-switch button.active {
  color: var(--mc-ink);
  background: #ffffff;
  box-shadow:
    0 1px 2px rgba(20, 29, 48, 0.08),
    0 4px 12px rgba(20, 29, 48, 0.06);
}

.mc-period-control {
  display: grid;
  gap: 3px;
}

.mc-period-control > span {
  color: var(--mc-muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.mc-period-control select {
  min-height: 36px;
  padding: 0 34px 0 11px;
  border: 1px solid var(--mc-line);
  border-radius: 10px;
  color: var(--mc-ink);
  background: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.mc-refresh-button {
  align-self: flex-end;
  min-height: 36px;
}

.mc-mode-message {
  margin-bottom: 16px;
  padding: 11px 14px;
  border: 1px solid #dfe4f3;
  border-radius: 11px;
  color: #59657b;
  background: #f6f8fc;
  font-size: 11px;
  line-height: 1.5;
}

.mc-loading,
.mc-error {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 120px;
  padding: 24px;
  border: 1px solid var(--mc-line);
  border-radius: 16px;
  background: var(--mc-surface);
}

.mc-loading > span {
  color: var(--mc-blue);
  font-size: 30px;
}

.mc-loading strong,
.mc-error strong {
  color: var(--mc-ink);
  font-size: 14px;
}

.mc-loading p,
.mc-error p {
  margin: 5px 0 0;
  color: var(--mc-muted);
  font-size: 12px;
}

.mc-error {
  align-items: flex-start;
  flex-direction: column;
  border-color: rgba(200, 59, 79, 0.24);
  background: var(--mc-red-soft);
}

.mc-content {
  display: grid;
  gap: 18px;
}

.mc-summary-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1.65fr)
    repeat(3, minmax(145px, 0.65fr));
  gap: 12px;
}

.mc-health-card,
.mc-kpi-card,
.mc-section,
.mc-readiness {
  border: 1px solid var(--mc-line);
  border-radius: 16px;
  background: var(--mc-surface);
  box-shadow: 0 8px 26px rgba(26, 36, 58, 0.045);
}

.mc-health-card {
  display: grid;
  grid-template-columns: 135px minmax(0, 1fr);
  gap: 22px;
  padding: 22px;
}

.mc-health-score {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 132px;
  padding: 14px;
  border-radius: 14px;
  background:
    linear-gradient(
      145deg,
      #f0f2ff,
      #fafaff
    );
}

.mc-health-score span {
  color: var(--mc-muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.mc-health-score strong {
  margin-top: 6px;
  color: var(--mc-ink);
  font-size: 43px;
  letter-spacing: -0.06em;
  line-height: 1;
}

.mc-health-score small {
  margin-top: 7px;
  color: var(--mc-muted);
  font-size: 10px;
  text-align: center;
}

.mc-health-description {
  align-self: center;
  min-width: 0;
}

.mc-health-description h3 {
  margin: 13px 0 7px;
  color: var(--mc-ink);
  font-size: 18px;
  letter-spacing: -0.025em;
}

.mc-health-description p {
  margin: 0;
  color: var(--mc-muted);
  font-size: 12px;
  line-height: 1.6;
}

.mc-status-pill {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  color: #4e5a70;
  background: #edf0f5;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.mc-status-pill.good {
  color: #126b48;
  background: var(--mc-green-soft);
}

.mc-status-pill.warning {
  color: #91550c;
  background: var(--mc-orange-soft);
}

.mc-status-pill.critical {
  color: #a8293c;
  background: var(--mc-red-soft);
}

.mc-kpi-card {
  min-width: 0;
  padding: 18px;
}

.mc-kpi-card > span {
  display: block;
  color: var(--mc-muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.mc-kpi-card > strong {
  display: block;
  margin-top: 13px;
  color: var(--mc-ink);
  font-size: 30px;
  letter-spacing: -0.045em;
}

.mc-kpi-card p {
  margin: 10px 0 0;
  color: var(--mc-muted);
  font-size: 11px;
  line-height: 1.5;
}

.mc-readiness {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  padding: 16px 19px;
}

.mc-readiness.limited {
  border-left: 4px solid var(--mc-orange);
}

.mc-readiness.ready {
  border-left: 4px solid var(--mc-green);
}

.mc-readiness div {
  display: grid;
  gap: 4px;
}

.mc-readiness span {
  color: var(--mc-muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.mc-readiness strong {
  color: var(--mc-ink);
  font-size: 15px;
}

.mc-readiness p {
  margin: 0;
  color: var(--mc-muted);
  font-size: 12px;
  line-height: 1.55;
}

.mc-section {
  overflow: hidden;
  padding: 20px;
}

.mc-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.mc-section-heading.compact {
  margin-bottom: 14px;
}

.mc-section-heading h3 {
  margin: 5px 0 0;
  color: var(--mc-ink);
  font-size: 18px;
  letter-spacing: -0.025em;
}

.mc-section-heading p {
  max-width: 470px;
  margin: 0;
  color: var(--mc-muted);
  font-size: 11px;
  line-height: 1.55;
  text-align: right;
}

.mc-attention-list {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mc-attention-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--mc-line);
  border-left: 4px solid #8b95a8;
  border-radius: 13px;
  background: #ffffff;
}

.mc-attention-card.critical {
  border-left-color: var(--mc-red);
  background:
    linear-gradient(
      135deg,
      #ffffff,
      #fff8f9
    );
}

.mc-attention-card.high {
  border-left-color: #de5c3f;
}

.mc-attention-card.warning {
  border-left-color: var(--mc-orange);
}

.mc-attention-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.mc-attention-card header span,
.mc-attention-card header b {
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.mc-attention-card header span {
  color: var(--mc-muted);
}

.mc-attention-card header b {
  color: #99570b;
}

.mc-attention-card header b.confirmed {
  color: var(--mc-green);
}

.mc-attention-card h4 {
  margin: 14px 0 7px;
  color: var(--mc-ink);
  font-size: 14px;
}

.mc-attention-card p {
  margin: 0;
  color: var(--mc-muted);
  font-size: 11px;
  line-height: 1.55;
}

.mc-attention-card footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 14px;
  color: #7c8698;
  font-size: 9px;
  font-weight: 700;
}

.mc-risk-list {
  display: grid;
  gap: 12px;
}

.mc-risk-card {
  overflow: hidden;
  border: 1px solid var(--mc-line);
  border-radius: 14px;
  background: #ffffff;
}

.mc-risk-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 18px;
  border-bottom: 1px solid var(--mc-line);
}

.mc-risk-card > header span {
  color: var(--mc-red);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.mc-risk-card > header h4 {
  margin: 5px 0 0;
  color: var(--mc-ink);
  font-size: 15px;
}

.mc-risk-card > header > strong {
  color: var(--mc-red);
  font-size: 29px;
}

.mc-risk-metrics {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--mc-line);
}

.mc-risk-metrics > div {
  padding: 13px 18px;
  border-right: 1px solid var(--mc-line);
}

.mc-risk-metrics > div:last-child {
  border-right: 0;
}

.mc-risk-metrics span {
  display: block;
  color: var(--mc-muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.mc-risk-metrics strong {
  display: block;
  margin-top: 5px;
  color: var(--mc-ink);
  font-size: 20px;
}

.mc-risk-metrics .confirmed strong {
  color: var(--mc-green);
}

.mc-risk-metrics .verification strong {
  color: var(--mc-orange);
}

.mc-risk-calls {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 14px;
  background: var(--mc-soft);
}

.mc-risk-call {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    auto;
  gap: 3px 10px;
  align-items: center;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--mc-line);
  border-radius: 10px;
  color: var(--mc-ink);
  background: #ffffff;
  cursor: pointer;
  text-align: left;
  transition:
    transform 120ms ease,
    border-color 120ms ease,
    box-shadow 120ms ease;
}

.mc-risk-call:hover {
  transform: translateY(-1px);
  border-color: rgba(85, 99, 247, 0.35);
  box-shadow: 0 7px 16px rgba(29, 40, 68, 0.07);
}

.mc-risk-call span {
  overflow: hidden;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mc-risk-call small {
  grid-column: 1;
  color: var(--mc-muted);
  font-size: 9px;
}

.mc-risk-call b {
  grid-column: 2;
  grid-row: 1 / 3;
  padding: 4px 6px;
  border-radius: 999px;
  font-size: 8px;
  text-transform: uppercase;
}

.mc-risk-call b.confirmed {
  color: #126b48;
  background: var(--mc-green-soft);
}

.mc-risk-call b.verification {
  color: #93570c;
  background: var(--mc-orange-soft);
}

.mc-bottom-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1.15fr)
    minmax(340px, 0.85fr);
  gap: 18px;
}

.mc-topic-list,
.mc-data-grid {
  display: grid;
  gap: 9px;
}

.mc-topic-row {
  display: grid;
  grid-template-columns:
    minmax(170px, 1fr)
    minmax(120px, 0.9fr)
    48px;
  gap: 13px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid #edf0f5;
}

.mc-topic-row:last-child {
  border-bottom: 0;
}

.mc-topic-row > div:first-child {
  min-width: 0;
}

.mc-topic-row strong {
  display: block;
  overflow: hidden;
  color: var(--mc-ink);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mc-topic-row span {
  color: var(--mc-muted);
  font-size: 9px;
}

.mc-topic-row > b {
  color: var(--mc-ink);
  font-size: 11px;
  text-align: right;
}

.mc-topic-track {
  overflow: hidden;
  height: 6px;
  border-radius: 999px;
  background: #e9edf4;
}

.mc-topic-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      var(--mc-blue),
      #8a70ed
    );
}

.mc-data-grid {
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
}

.mc-data-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--mc-line);
  border-radius: 12px;
  background: var(--mc-soft);
}

.mc-data-card > span {
  display: block;
  color: var(--mc-muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.mc-data-card > strong {
  display: block;
  margin-top: 9px;
  color: var(--mc-ink);
  font-size: 20px;
}

.mc-data-card > strong.good {
  color: var(--mc-green);
}

.mc-data-card > strong.warning {
  color: var(--mc-orange);
}

.mc-data-card > strong.critical {
  color: var(--mc-red);
}

.mc-data-card p {
  margin: 7px 0 0;
  color: var(--mc-muted);
  font-size: 10px;
  line-height: 1.45;
}

.mc-empty {
  padding: 24px;
  border: 1px dashed #d9dee8;
  border-radius: 12px;
  color: var(--mc-muted);
  background: #fafbfc;
  font-size: 11px;
  text-align: center;
}

.mc-empty.compact {
  grid-column: 1 / -1;
  padding: 14px;
}

@media (max-width: 1180px) {
  .mc-page-header {
    flex-direction: column;
  }

  .mc-controls {
    justify-content: flex-start;
  }

  .mc-summary-grid {
    grid-template-columns:
      minmax(0, 1fr)
      repeat(3, minmax(135px, 0.45fr));
  }

  .mc-health-card {
    grid-column: 1 / -1;
  }

  .mc-risk-calls {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .mc-summary-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .mc-health-card {
    grid-column: 1 / -1;
  }

  .mc-attention-list {
    grid-template-columns: 1fr;
  }

  .mc-bottom-grid {
    grid-template-columns: 1fr;
  }

  .mc-risk-calls {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .mc-page-header {
    gap: 18px;
  }

  .mc-controls,
  .mc-mode-switch {
    width: 100%;
  }

  .mc-mode-switch button {
    flex: 1;
  }

  .mc-period-control,
  .mc-period-control select,
  .mc-refresh-button {
    width: 100%;
  }

  .mc-summary-grid,
  .mc-health-card,
  .mc-readiness,
  .mc-risk-metrics,
  .mc-data-grid {
    grid-template-columns: 1fr;
  }

  .mc-health-score {
    min-height: 105px;
  }

  .mc-section-heading {
    flex-direction: column;
    gap: 8px;
  }

  .mc-section-heading p {
    text-align: left;
  }

  .mc-risk-metrics > div {
    border-right: 0;
    border-bottom: 1px solid var(--mc-line);
  }

  .mc-risk-metrics > div:last-child {
    border-bottom: 0;
  }

  .mc-risk-calls {
    grid-template-columns: 1fr;
  }

  .mc-topic-row {
    grid-template-columns:
      minmax(0, 1fr)
      46px;
  }

  .mc-topic-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

/* MISSION_CONTROL_FRONTEND_17C_D_STYLES_END */

/* ===== CALL ANALYTICS BLOCK 17E CSS START ===== */

#vc-management-dashboard-17e {
  width: 100%;
  min-width: 0;
  color: #111a2d;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

.vc17e-management-mounted {
  width: 100%;
  max-width: none !important;
  padding: 0 !important;
}

.vc17e-dashboard-shell {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 34px 32px 64px;
  box-sizing: border-box;
}

.vc17e-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 24px;
}

.vc17e-header h1 {
  margin: 6px 0 8px;
  color: #111a2d;
  font-size: clamp(32px, 3vw, 48px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.vc17e-header p {
  max-width: 850px;
  margin: 0;
  color: #68748b;
  font-size: 16px;
  line-height: 1.55;
}

.vc17e-eyebrow {
  display: block;
  color: #5368ff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.vc17e-header-actions {
  flex: 0 0 auto;
}

.vc17e-primary-button,
.vc17e-secondary-button,
.vc17e-close-detail,
.vc17e-error button {
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  padding: 0 19px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.vc17e-primary-button {
  background: #5368f5;
  color: #fff;
  box-shadow: 0 10px 24px rgba(83, 104, 245, 0.22);
}

.vc17e-primary-button span {
  margin-right: 7px;
  font-size: 20px;
}

.vc17e-secondary-button,
.vc17e-close-detail {
  border: 1px solid #d9dfec;
  background: #fff;
  color: #182137;
}

.vc17e-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 20px;
}

.vc17e-segmented-control {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid #dce2ed;
  border-radius: 13px;
  background: #edf0f6;
}

.vc17e-segmented-control button {
  min-height: 39px;
  border: 0;
  border-radius: 9px;
  padding: 0 17px;
  background: transparent;
  color: #69748b;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}

.vc17e-segmented-control button.is-active {
  background: #fff;
  color: #172036;
  box-shadow: 0 2px 8px rgba(23, 32, 54, 0.1);
}

.vc17e-period-control {
  display: grid;
  gap: 5px;
}

.vc17e-period-control span {
  color: #657087;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vc17e-period-control select {
  min-width: 135px;
  min-height: 46px;
  border: 1px solid #d9dfec;
  border-radius: 12px;
  padding: 0 38px 0 14px;
  background: #fff;
  color: #172036;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

.vc17e-kpi-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.vc17e-metric-card {
  display: flex;
  min-width: 0;
  min-height: 154px;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid #dce2ed;
  border-radius: 18px;
  padding: 20px;
  background: #fff;
  color: inherit;
  text-align: left;
  box-shadow: 0 8px 24px rgba(29, 40, 70, 0.045);
}

button.vc17e-metric-card {
  cursor: pointer;
}

button.vc17e-metric-card:hover {
  border-color: #b9c4dc;
  transform: translateY(-1px);
}

.vc17e-metric-label {
  min-height: 32px;
  color: #667188;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.vc17e-metric-value {
  margin: 9px 0 8px;
  color: #131c31;
  font-size: clamp(28px, 2.4vw, 40px);
  font-weight: 820;
  line-height: 1;
  letter-spacing: -0.045em;
}

.vc17e-metric-description {
  margin-top: auto;
  color: #7a859a;
  font-size: 12px;
  line-height: 1.45;
}

.vc17e-tone-positive .vc17e-metric-value {
  color: #179564;
}

.vc17e-tone-negative .vc17e-metric-value {
  color: #d63d55;
}

.vc17e-tone-warning .vc17e-metric-value {
  color: #ce770d;
}

.vc17e-section {
  margin-bottom: 20px;
  border: 1px solid #dce2ed;
  border-radius: 20px;
  padding: 26px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(29, 40, 70, 0.04);
}

.vc17e-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.vc17e-section-heading h2 {
  margin: 5px 0 5px;
  color: #141d31;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.vc17e-section-heading p {
  margin: 0;
  color: #758096;
  font-size: 14px;
  line-height: 1.5;
}

.vc17e-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.vc17e-table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
  table-layout: fixed;
}

.vc17e-table th,
.vc17e-table td {
  padding: 15px 13px;
  border-bottom: 1px solid #e7ebf2;
  text-align: right;
  vertical-align: middle;
}

.vc17e-table th {
  color: #69748a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.vc17e-table th:first-child,
.vc17e-table td:first-child {
  width: 35%;
  padding-left: 0;
  text-align: left;
}

.vc17e-table th:last-child,
.vc17e-table td:last-child {
  padding-right: 0;
}

.vc17e-table tbody tr:last-child td {
  border-bottom: 0;
}

.vc17e-clickable-row {
  cursor: pointer;
}

.vc17e-clickable-row:hover td {
  background: #fafbff;
}

.vc17e-topic-cell {
  display: grid;
  gap: 9px;
}

.vc17e-topic-cell strong {
  overflow: hidden;
  color: #192237;
  font-size: 14px;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.vc17e-topic-bar {
  width: 100%;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8ebf3;
}

.vc17e-topic-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    #5368f5,
    #8864ed
  );
}

.vc17e-positive {
  color: #168e61;
  font-weight: 800;
}

.vc17e-negative {
  color: #d13a53;
  font-weight: 800;
}

.vc17e-muted {
  color: #8a94a7;
}

.vc17e-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 20px;
}

.vc17e-outcomes {
  display: grid;
  gap: 5px;
}

.vc17e-outcome-row {
  display: grid;
  grid-template-columns: minmax(190px, 0.85fr) minmax(240px, 1.15fr);
  align-items: center;
  gap: 20px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #e8ebf2;
  padding: 15px 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.vc17e-outcome-row:last-child {
  border-bottom: 0;
}

.vc17e-outcome-copy {
  display: grid;
  gap: 4px;
}

.vc17e-outcome-copy strong {
  color: #1a2338;
  font-size: 14px;
}

.vc17e-outcome-copy small {
  color: #808a9e;
  font-size: 12px;
}

.vc17e-outcome-visual {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) 58px;
  align-items: center;
  gap: 12px;
}

.vc17e-outcome-visual > strong {
  text-align: right;
  font-size: 13px;
}

.vc17e-outcome-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8ebf2;
}

.vc17e-outcome-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    #5368f5,
    #8864ed
  );
}

.vc17e-agreement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.vc17e-agreement-card {
  display: grid;
  min-height: 135px;
  gap: 7px;
  align-content: center;
  border: 1px solid #dde3ee;
  border-radius: 16px;
  padding: 18px;
  background: #f8f9fc;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.vc17e-agreement-card span {
  color: #657087;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.vc17e-agreement-card strong {
  color: #192237;
  font-size: 32px;
  line-height: 1;
}

.vc17e-agreement-card small {
  color: #7c879b;
  font-size: 12px;
}

.vc17e-agreement-positive strong {
  color: #179564;
}

.vc17e-agreement-negative strong {
  color: #d63d55;
}

.vc17e-agreement-partial strong {
  color: #d18016;
}

.vc17e-agreement-unknown strong {
  color: #7f899d;
}

.vc17e-data-note {
  margin-top: 14px;
  border-radius: 12px;
  padding: 13px 15px;
  background: #f2f4f9;
  color: #707b90;
  font-size: 12px;
  line-height: 1.5;
}

.vc17e-data-note strong {
  color: #1d263a;
}

.vc17e-attention-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.vc17e-attention-card {
  display: flex;
  min-height: 225px;
  flex-direction: column;
  border: 1px solid #e0e5ee;
  border-top-width: 4px;
  border-radius: 16px;
  padding: 20px;
  background: #fff;
}

.vc17e-attention-critical {
  border-top-color: #d83952;
}

.vc17e-attention-warning {
  border-top-color: #d47a11;
}

.vc17e-attention-info {
  border-top-color: #5268f5;
}

.vc17e-attention-success {
  border-top-color: #169363;
}

.vc17e-attention-priority {
  margin-bottom: 11px;
  color: #748096;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.075em;
}

.vc17e-attention-card h3 {
  margin: 0 0 9px;
  color: #182137;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
}

.vc17e-attention-card p {
  margin: 0;
  color: #737e92;
  font-size: 13px;
  line-height: 1.55;
}

.vc17e-attention-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}

.vc17e-attention-footer span {
  color: #6b768b;
  font-size: 11px;
  line-height: 1.45;
}

.vc17e-attention-footer button {
  flex: 0 0 auto;
  border: 0;
  padding: 0;
  background: transparent;
  color: #4d63e9;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.vc17e-detail-section {
  border-color: #bfc9e8;
  box-shadow: 0 16px 40px rgba(39, 54, 100, 0.1);
}

.vc17e-call-list {
  display: grid;
  gap: 9px;
}

.vc17e-call-card {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto;
  align-items: center;
  gap: 18px;
  border: 1px solid #e1e6ef;
  border-radius: 14px;
  padding: 14px 16px;
  background: #fafbfe;
}

.vc17e-call-main {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.vc17e-call-main strong,
.vc17e-call-main span,
.vc17e-call-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vc17e-call-main strong {
  color: #1a2338;
  font-size: 14px;
}

.vc17e-call-main span {
  color: #5e6980;
  font-size: 12px;
}

.vc17e-call-main small {
  color: #8a94a6;
  font-size: 11px;
}

.vc17e-call-facts {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.vc17e-call-facts > span {
  border-radius: 999px;
  padding: 7px 10px;
  background: #edf0f6;
  color: #566176;
  font-size: 11px;
  font-weight: 750;
}

.vc17e-call-facts .vc17e-chip-positive {
  background: #e7f6ef;
  color: #147b55;
}

.vc17e-call-facts .vc17e-chip-negative {
  background: #fdecef;
  color: #bf3249;
}

.vc17e-call-facts .vc17e-chip-neutral {
  background: #eef1f6;
  color: #677287;
}

.vc17e-call-facts button {
  min-height: 34px;
  border: 1px solid #cfd6e4;
  border-radius: 9px;
  padding: 0 12px;
  background: #fff;
  color: #4258d5;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.vc17e-data-quality {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border: 1px solid #dce2ed;
  border-radius: 18px;
  padding: 19px 22px;
  background: #f8f9fc;
}

.vc17e-data-quality > div {
  display: grid;
  gap: 5px;
}

.vc17e-data-quality > div span {
  color: #69748a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.vc17e-data-quality > div strong {
  color: #20293d;
  font-size: 14px;
}

.vc17e-data-quality dl {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
}

.vc17e-data-quality dl > div {
  display: grid;
  gap: 4px;
}

.vc17e-data-quality dt {
  color: #768196;
  font-size: 11px;
}

.vc17e-data-quality dd {
  margin: 0;
  color: #20293d;
  font-size: 15px;
  font-weight: 800;
}

.vc17e-empty,
.vc17e-error,
.vc17e-loading {
  display: grid;
  min-height: 180px;
  place-content: center;
  gap: 9px;
  border: 1px dashed #cfd6e4;
  border-radius: 16px;
  padding: 26px;
  color: #707b90;
  text-align: center;
}

.vc17e-loading {
  min-height: 520px;
  border: 0;
}

.vc17e-loading strong,
.vc17e-error strong {
  color: #1d263a;
  font-size: 18px;
}

.vc17e-loading span,
.vc17e-error span {
  font-size: 13px;
}

.vc17e-loader {
  width: 36px;
  height: 36px;
  margin: 0 auto 8px;
  border: 4px solid #e3e7f0;
  border-top-color: #5368f5;
  border-radius: 50%;
  animation: vc17e-spin 0.85s linear infinite;
}

.vc17e-error button {
  margin: 9px auto 0;
  background: #5368f5;
  color: #fff;
}

@keyframes vc17e-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1440px) {
  .vc17e-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .vc17e-attention-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .vc17e-dashboard-shell {
    padding: 28px 22px 50px;
  }

  .vc17e-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .vc17e-two-column {
    grid-template-columns: 1fr;
  }

  .vc17e-data-quality {
    align-items: flex-start;
    flex-direction: column;
  }

  .vc17e-data-quality dl {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 760px) {
  .vc17e-dashboard-shell {
    padding: 22px 14px 40px;
  }

  .vc17e-header {
    flex-direction: column;
  }

  .vc17e-header-actions {
    width: 100%;
  }

  .vc17e-primary-button {
    width: 100%;
  }

  .vc17e-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .vc17e-segmented-control {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .vc17e-period-control select,
  .vc17e-secondary-button {
    width: 100%;
  }

  .vc17e-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vc17e-section {
    padding: 20px 16px;
  }

  .vc17e-agreement-grid,
  .vc17e-attention-grid {
    grid-template-columns: 1fr;
  }

  .vc17e-call-card {
    grid-template-columns: 1fr;
  }

  .vc17e-call-facts {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .vc17e-data-quality dl {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .vc17e-kpi-grid {
    grid-template-columns: 1fr;
  }

  .vc17e-metric-card {
    min-height: 130px;
  }

  .vc17e-header h1 {
    font-size: 34px;
  }
}

/* ===== CALL ANALYTICS BLOCK 17E CSS END ===== */

/* ===== CALL ANALYTICS BLOCK 18A CSS START ===== */

.vc18a-kpi-grid {
  grid-template-columns:
    repeat(7, minmax(150px, 1fr));
}

.vc18a-kpi-grid .vc17e-metric-card {
  min-height: 148px;
  border-radius: 16px;
  padding: 18px;
}

.vc18a-kpi-grid .vc17e-metric-label {
  min-height: 34px;
  color: #606b80;
  font-size: 10px;
  letter-spacing: 0.075em;
}

.vc18a-kpi-grid .vc17e-metric-value {
  margin-top: 7px;
  margin-bottom: 7px;
  font-size: clamp(30px, 2.35vw, 42px);
}

.vc18a-kpi-grid .vc17e-tone-negative {
  border-color: #f0c4cc;
  background:
    linear-gradient(
      180deg,
      #fff 0%,
      #fff8f9 100%
    );
}

.vc18a-kpi-grid .vc17e-tone-warning {
  border-color: #efd6b4;
  background:
    linear-gradient(
      180deg,
      #fff 0%,
      #fffaf3 100%
    );
}

.vc18a-kpi-grid .vc17e-tone-positive {
  border-color: #bfe4d5;
  background:
    linear-gradient(
      180deg,
      #fff 0%,
      #f6fcf9 100%
    );
}

@media (max-width: 1440px) {
  .vc18a-kpi-grid {
    grid-template-columns:
      repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .vc18a-kpi-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .vc18a-kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== CALL ANALYTICS BLOCK 18A CSS END ===== */

/* ===== CALL ANALYTICS BLOCK 18B CSS START ===== */

.vc18b-topic-ranking {
  display: grid;
  gap: 12px;
}

.vc18b-topic-card {
  display: grid;
  grid-template-columns:
    minmax(0, 1.35fr)
    minmax(500px, 0.95fr);
  gap: 24px;
  width: 100%;
  min-height: 126px;
  align-items: center;
  border: 1px solid #dde3ed;
  border-left-width: 5px;
  border-radius: 16px;
  padding: 18px 20px;
  background: #fff;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.vc18b-topic-card:hover {
  border-color: #b9c4dc;
  box-shadow:
    0 12px 28px
    rgba(29, 40, 70, 0.08);
  transform: translateY(-1px);
}

.vc18b-topic-card:focus-visible {
  outline:
    3px solid
    rgba(83, 104, 245, 0.24);
  outline-offset: 2px;
}

.vc18b-topic-critical {
  border-left-color: #d83a54;
  background:
    linear-gradient(
      90deg,
      #fff8f9 0,
      #fff 18%
    );
}

.vc18b-topic-warning {
  border-left-color: #d58216;
  background:
    linear-gradient(
      90deg,
      #fffaf3 0,
      #fff 18%
    );
}

.vc18b-topic-stable {
  border-left-color: #1a9969;
  background:
    linear-gradient(
      90deg,
      #f7fcfa 0,
      #fff 18%
    );
}

.vc18b-topic-card-main {
  display: grid;
  min-width: 0;
  gap: 17px;
}

.vc18b-topic-header {
  display: grid;
  grid-template-columns:
    38px
    minmax(0, 1fr)
    auto;
  align-items: center;
  gap: 14px;
}

.vc18b-topic-rank {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: #eef1f7;
  color: #536077;
  font-size: 13px;
  font-weight: 850;
}

.vc18b-topic-title {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.vc18b-topic-title strong {
  overflow: hidden;
  color: #172036;
  font-size: 16px;
  font-weight: 820;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vc18b-topic-status {
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.vc18b-topic-status-critical {
  background: #fdebed;
  color: #bd3048;
}

.vc18b-topic-status-warning {
  background: #fff1dd;
  color: #ac650d;
}

.vc18b-topic-status-stable {
  background: #e5f5ee;
  color: #147a55;
}

.vc18b-topic-volume {
  display: grid;
  min-width: 72px;
  gap: 2px;
  text-align: right;
}

.vc18b-topic-volume strong {
  color: #172036;
  font-size: 28px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.035em;
}

.vc18b-topic-volume span {
  color: #7e899c;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.vc18b-topic-load {
  display: grid;
  grid-template-columns:
    minmax(100px, 1fr)
    auto;
  align-items: center;
  gap: 12px;
}

.vc18b-topic-load-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8ebf2;
}

.vc18b-topic-load-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      #5368f5,
      #8467ed
    );
}

.vc18b-topic-share {
  color: #69748a;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.vc18b-topic-facts {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(80px, 1fr))
    minmax(120px, auto);
  align-items: stretch;
  gap: 9px;
}

.vc18b-topic-fact {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 4px;
  border: 1px solid #e4e8f0;
  border-radius: 12px;
  padding: 11px 12px;
  background: #f8f9fc;
}

.vc18b-topic-fact span {
  overflow: hidden;
  color: #7a8599;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.045em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.vc18b-topic-fact strong {
  color: #1b2438;
  font-size: 20px;
  font-weight: 840;
  line-height: 1;
}

.vc18b-topic-fact small {
  color: #8791a3;
  font-size: 10px;
  font-weight: 700;
}

.vc18b-topic-fact-positive {
  border-color: #cbe9dc;
  background: #f4fbf8;
}

.vc18b-topic-fact-positive strong {
  color: #17885e;
}

.vc18b-topic-fact-negative {
  border-color: #f0cbd1;
  background: #fff7f8;
}

.vc18b-topic-fact-negative strong {
  color: #cd3b52;
}

.vc18b-topic-open {
  display: flex;
  min-width: 128px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 12px;
  padding: 11px 13px;
  background: #edf0ff;
  color: #4d62df;
}

.vc18b-topic-open span {
  font-size: 11px;
  font-weight: 820;
  white-space: nowrap;
}

.vc18b-topic-open strong {
  font-size: 20px;
  line-height: 1;
}

@media (max-width: 1320px) {
  .vc18b-topic-card {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .vc18b-topic-facts {
    grid-template-columns:
      repeat(4, minmax(0, 1fr))
      minmax(120px, 0.8fr);
  }
}

@media (max-width: 850px) {
  .vc18b-topic-facts {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .vc18b-topic-open {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .vc18b-topic-card {
    padding: 16px;
  }

  .vc18b-topic-header {
    grid-template-columns:
      34px
      minmax(0, 1fr);
  }

  .vc18b-topic-rank {
    width: 34px;
    height: 34px;
  }

  .vc18b-topic-volume {
    grid-column: 2;
    text-align: left;
  }

  .vc18b-topic-title strong {
    white-space: normal;
  }

  .vc18b-topic-load {
    grid-template-columns: 1fr;
  }

  .vc18b-topic-share {
    white-space: normal;
  }

  .vc18b-topic-facts {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== CALL ANALYTICS BLOCK 18B CSS END ===== */

/* ===== CALL ANALYTICS BLOCK 18C CSS START ===== */

.vc18c-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.vc18c-action-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  border: 1px solid #dfe4ed;
  border-top-width: 5px;
  border-radius: 18px;
  padding: 22px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(31, 43, 72, 0.045);
}

.vc18c-action-critical { border-top-color: #d83a54; }
.vc18c-action-warning { border-top-color: #d38418; }
.vc18c-action-info { border-top-color: #5268f5; }
.vc18c-action-success { border-top-color: #169463; }

.vc18c-action-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.vc18c-action-priority {
  color: #6f7a90;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.vc18c-action-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #a9b2c2;
}

.vc18c-action-critical .vc18c-action-dot { background: #d83a54; }
.vc18c-action-warning .vc18c-action-dot { background: #d38418; }
.vc18c-action-info .vc18c-action-dot { background: #5268f5; }
.vc18c-action-success .vc18c-action-dot { background: #169463; }

.vc18c-action-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
}

.vc18c-action-heading h3 {
  margin: 0 0 8px;
  color: #172036;
  font-size: 19px;
  font-weight: 820;
  line-height: 1.25;
}

.vc18c-action-heading p {
  margin: 0;
  color: #748096;
  font-size: 13px;
  line-height: 1.55;
}

.vc18c-action-value {
  display: grid;
  min-width: 120px;
  gap: 4px;
  text-align: right;
}

.vc18c-action-value strong {
  color: #172036;
  font-size: 34px;
  font-weight: 860;
  line-height: 1;
  letter-spacing: -0.04em;
}

.vc18c-action-value span {
  color: #7c879a;
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.vc18c-action-critical .vc18c-action-value strong { color: #cf364f; }
.vc18c-action-warning .vc18c-action-value strong { color: #bd6f10; }
.vc18c-action-info .vc18c-action-value strong { color: #4e63df; }
.vc18c-action-success .vc18c-action-value strong { color: #16865d; }

.vc18c-action-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 20px;
}

.vc18c-action-facts > div {
  display: grid;
  min-width: 0;
  gap: 5px;
  border: 1px solid #e5e9f0;
  border-radius: 11px;
  padding: 11px 12px;
  background: #f8f9fc;
}

.vc18c-action-facts span {
  overflow: hidden;
  color: #7a8599;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.035em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.vc18c-action-facts strong {
  overflow: hidden;
  color: #20293d;
  font-size: 14px;
  font-weight: 820;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vc18c-action-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 22px;
}

.vc18c-action-footer > span:first-child {
  color: #7c879b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.vc18c-action-footer button {
  display: inline-flex;
  min-height: 39px;
  align-items: center;
  gap: 9px;
  border: 1px solid #cfd6e5;
  border-radius: 10px;
  padding: 0 13px;
  background: #fff;
  color: #485edb;
  font: inherit;
  font-size: 11px;
  font-weight: 820;
  cursor: pointer;
}
.vc18c-action-footer button:hover {
  border-color: #9eadd4;
  background: #f7f8ff;
}

.vc18c-action-footer button strong {
  font-size: 17px;
  line-height: 1;
}

.vc18c-no-action {
  color: #16865d !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

@media (max-width: 1100px) {
  .vc18c-action-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .vc18c-action-card {
    min-height: 0;
    padding: 18px;
  }

  .vc18c-action-heading {
    grid-template-columns: 1fr;
  }

  .vc18c-action-value {
    min-width: 0;
    text-align: left;
  }

  .vc18c-action-facts {
    grid-template-columns: 1fr;
  }

  .vc18c-action-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .vc18c-action-footer button {
    width: 100%;
    justify-content: center;
  }
}

/* ===== CALL ANALYTICS BLOCK 18C CSS END ===== */

/* ===== CALL ANALYTICS BLOCK 18D CSS START ===== */

.vc18d-executive-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(520px, 0.8fr);
  gap: 22px;
  margin-bottom: 20px;
  border: 1px solid #d9e0ec;
  border-radius: 20px;
  padding: 26px;
  background: linear-gradient(135deg, #ffffff 0%, #f5f7ff 100%);
  box-shadow: 0 10px 28px rgba(29, 40, 70, 0.05);
}

.vc18d-summary-main h2 {
  margin: 6px 0 8px;
  color: #131c31;
  font-size: 27px;
  font-weight: 830;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.vc18d-summary-main > p {
  max-width: 720px;
  margin: 0;
  color: #6f7b91;
  font-size: 14px;
  line-height: 1.55;
}

.vc18d-summary-focus {
  display: grid;
  gap: 5px;
  margin-top: 20px;
  border-left: 4px solid #d47a11;
  border-radius: 0 12px 12px 0;
  padding: 13px 15px;
  background: #fff8ed;
}

.vc18d-summary-focus span {
  color: #8c642e;
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.vc18d-summary-focus strong {
  color: #442d10;
  font-size: 15px;
  line-height: 1.4;
}

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

.vc18d-summary-facts > div {
  display: grid;
  min-height: 94px;
  align-content: center;
  gap: 6px;
  border: 1px solid #e0e5ef;
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.vc18d-summary-facts span {
  color: #7a859a;
  font-size: 9px;
  font-weight: 820;
  line-height: 1.25;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.vc18d-summary-facts strong {
  overflow: hidden;
  color: #192237;
  font-size: 20px;
  font-weight: 840;
  line-height: 1.15;
  text-overflow: ellipsis;
}

.vc18d-actions-grid {
  display: grid;
  gap: 12px;
}

.vc18d-action-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) minmax(140px, auto);
  gap: 17px;
  align-items: center;
  border: 1px solid #dfe5ef;
  border-radius: 16px;
  padding: 18px;
  background: #fff;
}

.vc18d-action-number {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 13px;
  background: #edf0ff;
  color: #5065e7;
  font-size: 17px;
  font-weight: 850;
}

.vc18d-action-copy {
  display: grid;
  gap: 5px;
}

.vc18d-action-copy > span {
  color: #657188;
  font-size: 9px;
  font-weight: 830;
  letter-spacing: 0.065em;
}

.vc18d-action-copy h3 {
  margin: 0;
  color: #172036;
  font-size: 17px;
  font-weight: 820;
  line-height: 1.3;
}

.vc18d-action-copy p {
  margin: 0;
  color: #717d92;
  font-size: 13px;
  line-height: 1.5;
}

.vc18d-action-copy small {
  margin-top: 3px;
  color: #8a94a6;
  font-size: 11px;
  line-height: 1.4;
}

.vc18d-action-result {
  display: grid;
  min-width: 140px;
  justify-items: end;
  gap: 3px;
}

.vc18d-action-result > strong {
  color: #182137;
  font-size: 30px;
  font-weight: 850;
  line-height: 1;
}

.vc18d-action-result > span {
  color: #7c879b;
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.vc18d-action-result button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  border: 1px solid #ccd5e7;
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
  color: #4d62df;
  font: inherit;
  font-size: 11px;
  font-weight: 820;
  cursor: pointer;
}

.vc18d-action-result button b {
  font-size: 17px;
}

@media (max-width: 1240px) {
  .vc18d-executive-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .vc18d-summary-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vc18d-action-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .vc18d-action-result {
    grid-column: 2;
    justify-items: start;
  }
}

@media (max-width: 480px) {
  .vc18d-executive-summary {
    padding: 20px 16px;
  }

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

  .vc18d-action-card {
    grid-template-columns: 1fr;
  }

  .vc18d-action-number,
  .vc18d-action-result {
    grid-column: auto;
  }

  .vc18d-action-result {
    justify-items: start;
  }
}

/* ===== CALL ANALYTICS BLOCK 18D CSS END ===== */

/* ===== CALL ANALYTICS BLOCK 18E CSS START ===== */

.vc18e-hidden-duplicate-header {
  display: none !important;
}

html.vc18e-dashboard-design-active body {
  background: #f4f6fb;
}

#vc-management-dashboard-17e .vc17e-dashboard-shell {
  max-width: 1480px;
  padding-top: 26px;
}

#vc-management-dashboard-17e .vc17e-header {
  align-items: center;
  margin-bottom: 20px;
}

#vc-management-dashboard-17e .vc17e-header h1 {
  font-size: clamp(34px, 3vw, 50px);
  letter-spacing: -0.045em;
}

#vc-management-dashboard-17e .vc17e-header p {
  max-width: 930px;
  font-size: 15px;
}

#vc-management-dashboard-17e .vc17e-toolbar {
  margin-bottom: 22px;
}

#vc-management-dashboard-17e .vc17e-primary-button {
  min-height: 50px;
  border-radius: 13px;
  padding: 0 22px;
  background: linear-gradient(
    135deg,
    #5868ff 0%,
    #4b5df0 100%
  );
  box-shadow: 0 12px 28px rgba(77, 94, 239, 0.26);
}

#vc-management-dashboard-17e .vc18d-executive-summary {
  grid-template-columns:
    minmax(0, 1.05fr)
    minmax(500px, 0.95fr);
  border-color: #dfe5f0;
  background:
    linear-gradient(
      135deg,
      #ffffff 0%,
      #f7f8ff 100%
    );
  box-shadow:
    0 14px 36px
    rgba(40, 53, 92, 0.07);
}

#vc-management-dashboard-17e .vc18d-summary-main h2 {
  max-width: 560px;
  font-size: clamp(27px, 2.2vw, 36px);
}

#vc-management-dashboard-17e .vc18d-summary-facts > div {
  min-height: 104px;
  box-shadow:
    0 6px 18px
    rgba(35, 46, 80, 0.035);
}

#vc-management-dashboard-17e .vc18a-kpi-grid {
  grid-template-columns:
    repeat(7, minmax(145px, 1fr));
  gap: 14px;
}

#vc-management-dashboard-17e
.vc18a-kpi-grid
.vc17e-metric-card {
  position: relative;
  min-height: 190px;
  justify-content: flex-start;
  overflow: hidden;
  border-radius: 18px;
  padding: 20px;
  background: #fff;
  box-shadow:
    0 9px 26px
    rgba(33, 44, 78, 0.05);
}

#vc-management-dashboard-17e
.vc18a-kpi-grid
.vc17e-metric-card::after {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin-top: 14px;
  border-radius: 50%;
  background: #eef1ff;
  color: #5368f5;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  content: "●";
}

#vc-management-dashboard-17e
.vc18a-kpi-grid
.vc17e-metric-card:nth-child(1)::after {
  content: "☎";
}

#vc-management-dashboard-17e
.vc18a-kpi-grid
.vc17e-metric-card:nth-child(2)::after {
  content: "◷";
}

#vc-management-dashboard-17e
.vc18a-kpi-grid
.vc17e-metric-card:nth-child(3)::after {
  content: "✓";
  background: #e8f7f0;
  color: #159467;
}

#vc-management-dashboard-17e
.vc18a-kpi-grid
.vc17e-metric-card:nth-child(4)::after {
  content: "×";
  background: #f1f3f7;
  color: #667188;
}

#vc-management-dashboard-17e
.vc18a-kpi-grid
.vc17e-metric-card:nth-child(5)::after {
  content: "●●";
  background: #fdecef;
  color: #d33f57;
  font-size: 15px;
  letter-spacing: -3px;
}

#vc-management-dashboard-17e
.vc18a-kpi-grid
.vc17e-metric-card:nth-child(6)::after {
  content: "↑";
  background: #fff4e6;
  color: #d57a11;
}

#vc-management-dashboard-17e
.vc18a-kpi-grid
.vc17e-metric-card:nth-child(7)::after {
  content: "!";
  background: #fff1df;
  color: #d47a11;
}

#vc-management-dashboard-17e
.vc18a-kpi-grid
.vc17e-metric-description {
  order: 5;
  margin-top: 12px;
}

#vc-management-dashboard-17e .vc17e-section {
  border-radius: 22px;
  box-shadow:
    0 10px 30px
    rgba(37, 48, 82, 0.045);
}

#vc-management-dashboard-17e .vc18b-topic-card {
  border-radius: 18px;
  box-shadow:
    0 7px 20px
    rgba(35, 47, 82, 0.035);
}

#vc-management-dashboard-17e .vc18d-action-card,
#vc-management-dashboard-17e .vc18c-action-card {
  border-radius: 18px;
  box-shadow:
    0 7px 20px
    rgba(35, 47, 82, 0.035);
}

@media (max-width: 1440px) {
  #vc-management-dashboard-17e .vc18a-kpi-grid {
    grid-template-columns:
      repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  #vc-management-dashboard-17e
  .vc18d-executive-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  #vc-management-dashboard-17e .vc18a-kpi-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  #vc-management-dashboard-17e
  .vc18a-kpi-grid
  .vc17e-metric-card {
    min-height: 170px;
  }
}

@media (max-width: 480px) {
  #vc-management-dashboard-17e .vc18a-kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== CALL ANALYTICS BLOCK 18E CSS END ===== */

/* ===== CALL ANALYTICS BLOCK 19A CSS START ===== */

.vc19a-trends-section {
  margin-bottom: 20px;
  border: 1px solid #dce3ef;
  border-radius: 22px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(37, 48, 82, .045);
}

.vc19a-trends-header {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 20px;
}

.vc19a-trends-header h2 {
  margin: 5px 0;
  color: #141d31;
  font-size: 25px;
  line-height: 1.18;
}

.vc19a-trends-header p {
  margin: 0;
  color: #758096;
  font-size: 13px;
}

.vc19a-previous-sample {
  display: grid;
  min-width: 170px;
  gap: 4px;
  border: 1px solid #e0e5ef;
  border-radius: 13px;
  padding: 12px 14px;
  background: #f7f8fc;
}

.vc19a-previous-sample span {
  color: #7b869a;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.vc19a-previous-sample strong {
  color: #1a2338;
  font-size: 15px;
}

.vc19a-trend-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.vc19a-trend-card {
  display: grid;
  min-height: 148px;
  gap: 8px;
  border: 1px solid #e0e5ef;
  border-top-width: 4px;
  border-radius: 15px;
  padding: 17px;
  background: #fafbfe;
}

.vc19a-trend-good { border-top-color: #179467; }
.vc19a-trend-bad { border-top-color: #d33e56; }
.vc19a-trend-neutral { border-top-color: #7b879c; }

.vc19a-trend-card > span {
  min-height: 28px;
  color: #68748a;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.vc19a-trend-card > strong {
  color: #172036;
  font-size: 30px;
  line-height: 1;
}

.vc19a-trend-card > div {
  width: max-content;
  border-radius: 999px;
  padding: 5px 8px;
  background: #eef1f6;
  color: #667287;
  font-size: 11px;
  font-weight: 800;
}

.vc19a-trend-good > div {
  background: #e7f6ef;
  color: #147c56;
}

.vc19a-trend-bad > div {
  background: #fdecef;
  color: #bd334a;
}

.vc19a-trend-card small {
  margin-top: auto;
  color: #818c9f;
  font-size: 10px;
}

.vc19a-topic-trends {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 18px;
  margin-top: 16px;
  border-top: 1px solid #e6eaf1;
  padding-top: 16px;
}

.vc19a-topic-trends-title {
  display: grid;
  align-content: start;
  gap: 4px;
}

.vc19a-topic-trends-title strong {
  color: #1b2438;
  font-size: 14px;
}

.vc19a-topic-trends-title span {
  color: #8791a3;
  font-size: 11px;
}

.vc19a-topic-trends-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.vc19a-topic-trend {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #e1e6ef;
  border-radius: 12px;
  padding: 11px 13px;
  background: #fafbfe;
}

.vc19a-topic-trend > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.vc19a-topic-trend strong {
  overflow: hidden;
  color: #1a2338;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vc19a-topic-trend span {
  color: #8791a3;
  font-size: 10px;
}

.vc19a-topic-trend b {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 8px;
  background: #eef1f6;
  color: #68748a;
  font-size: 10px;
}

.vc19a-topic-good b {
  background: #e7f6ef;
  color: #147c56;
}

.vc19a-topic-bad b {
  background: #fdecef;
  color: #bd334a;
}

.vc19a-empty {
  grid-column: 1 / -1;
  border-radius: 12px;
  padding: 15px;
  background: #f5f7fb;
  color: #7d889b;
  font-size: 12px;
}

@media (max-width: 1240px) {
  .vc19a-trend-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .vc19a-trends-header {
    flex-direction: column;
  }

  .vc19a-topic-trends {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .vc19a-trend-grid,
  .vc19a-topic-trends-list {
    grid-template-columns: 1fr;
  }
}

/* ===== CALL ANALYTICS BLOCK 19A CSS END ===== */

/* ===== CALL ANALYTICS BLOCK 19B CSS START ===== */

.vc19b-date-range {
  display: none;
  align-items: flex-end;
  gap: 9px;
}

.vc19b-date-range.is-visible {
  display: flex;
}

.vc19b-date-range label {
  display: grid;
  gap: 5px;
}

.vc19b-date-range label span {
  color: #657087;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.vc19b-date-range input {
  min-height: 46px;
  border: 1px solid #d9dfec;
  border-radius: 12px;
  padding: 0 12px;
  background: #fff;
  color: #172036;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.vc19b-date-range input:focus {
  outline: 3px solid rgba(83, 104, 245, 0.16);
  border-color: #8694f7;
}

.vc19b-apply-dates {
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  padding: 0 16px;
  background: #5368f5;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.vc19b-apply-dates:hover {
  background: #465bea;
}

@media (max-width: 980px) {
  .vc19b-date-range.is-visible {
    width: 100%;
    flex-wrap: wrap;
  }

  .vc19b-date-range label {
    flex: 1 1 180px;
  }

  .vc19b-date-range input,
  .vc19b-apply-dates {
    width: 100%;
  }
}

/* ===== CALL ANALYTICS BLOCK 19B CSS END ===== */

/* ===== CALL ANALYTICS BLOCK 19C CSS START ===== */

.vc19c-no-comparison {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  border: 1px solid #dfe4ed;
  border-radius: 14px;
  padding: 14px 16px;
  background: #f7f8fb;
}

.vc19c-no-comparison-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 50%;
  background: #e9edf4;
  color: #7b879a;
  font-size: 22px;
  font-weight: 800;
}

.vc19c-no-comparison strong {
  display: block;
  color: #263146;
  font-size: 14px;
}

.vc19c-no-comparison p {
  margin: 3px 0 0;
  color: #7c8799;
  font-size: 12px;
  line-height: 1.45;
}

.vc19a-trend-grid.is-comparison-disabled
.vc19a-trend-card {
  border-top-color: #8b96a8;
}

.vc19a-trend-grid.is-comparison-disabled
.vc19a-trend-card > div {
  background: #edf0f5;
  color: #7c8799;
}

.vc19a-trend-grid.is-comparison-disabled
.vc19a-trend-card > div b,
.vc19a-trend-grid.is-comparison-disabled
.vc19a-trend-card > div {
  font-size: 0;
}

.vc19a-trend-grid.is-comparison-disabled
.vc19a-trend-card > div::after {
  content: "Нет данных";
  font-size: 11px;
}

.vc17e-period-control select {
  min-width: 210px;
}

/* ===== CALL ANALYTICS BLOCK 19C CSS END ===== */

/* ===== CALL ANALYTICS BLOCK 20A CSS START ===== */

.vc20a-executive-health {
  display: grid;
  grid-template-columns:
    minmax(250px, 0.7fr)
    minmax(320px, 0.9fr)
    minmax(360px, 1.4fr);
  gap: 18px;
  margin-bottom: 20px;
  border: 1px solid #dce3ef;
  border-radius: 22px;
  padding: 22px;
  background:
    linear-gradient(
      135deg,
      #ffffff 0%,
      #f6f8ff 100%
    );
  box-shadow:
    0 12px 34px
    rgba(36, 48, 84, 0.06);
}

.vc20a-health-score {
  display: grid;
  align-content: start;
  gap: 8px;
  border-radius: 17px;
  padding: 20px;
  background: #172036;
  color: #fff;
}

.vc20a-score-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 8px;
}

.vc20a-score-row strong {
  font-size: 62px;
  font-weight: 880;
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.vc20a-score-row span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 20px;
  font-weight: 750;
}

.vc20a-health-score > b {
  font-size: 15px;
  line-height: 1.35;
}

.vc20a-health-score > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  line-height: 1.5;
}

.vc20a-health-good .vc20a-health-score {
  background:
    linear-gradient(
      145deg,
      #117b58 0%,
      #159467 100%
    );
}

.vc20a-health-warning .vc20a-health-score {
  background:
    linear-gradient(
      145deg,
      #a65c0b 0%,
      #d27a13 100%
    );
}

.vc20a-health-critical .vc20a-health-score {
  background:
    linear-gradient(
      145deg,
      #a92e43 0%,
      #d33f57 100%
    );
}

.vc20a-health-dimensions {
  display: grid;
  gap: 9px;
}

.vc20a-health-dimension {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    auto;
  gap: 8px 12px;
  border: 1px solid #e0e5ef;
  border-radius: 14px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.88);
}

.vc20a-health-dimension > div:first-child {
  display: grid;
  gap: 2px;
}

.vc20a-health-dimension span {
  color: #6c788d;
  font-size: 9px;
  font-weight: 820;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.vc20a-health-dimension strong {
  color: #1c263b;
  font-size: 12px;
}

.vc20a-health-dimension > b {
  color: #182137;
  font-size: 21px;
  line-height: 1;
}

.vc20a-health-progress {
  grid-column: 1 / -1;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8ecf3;
}

.vc20a-health-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      #5868ff 0%,
      #7b61ff 100%
    );
}

.vc20a-management-summary {
  display: grid;
  align-content: start;
  gap: 8px;
  border-left: 1px solid #e1e6ef;
  padding: 7px 4px 7px 20px;
}

.vc20a-management-summary h2 {
  margin: 2px 0 0;
  color: #141d31;
  font-size: 25px;
  font-weight: 840;
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.vc20a-management-summary > p {
  margin: 0;
  color: #6f7b91;
  font-size: 13px;
  line-height: 1.55;
}

.vc20a-main-action {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  border-left: 4px solid #5868ff;
  border-radius: 0 12px 12px 0;
  padding: 13px 15px;
  background: #f0f2ff;
}

.vc20a-main-action span {
  color: #5968dc;
  font-size: 9px;
  font-weight: 840;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.vc20a-main-action strong {
  color: #1a2340;
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 1200px) {
  .vc20a-executive-health {
    grid-template-columns:
      minmax(230px, 0.8fr)
      minmax(0, 1.2fr);
  }

  .vc20a-management-summary {
    grid-column: 1 / -1;
    border-top: 1px solid #e1e6ef;
    border-left: 0;
    padding: 18px 4px 4px;
  }
}

@media (max-width: 760px) {
  .vc20a-executive-health {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .vc20a-management-summary {
    grid-column: auto;
  }
}

/* ===== CALL ANALYTICS BLOCK 20A CSS END ===== */

/* ===== CALL ANALYTICS BLOCK 20B CSS START ===== */

.vc20b-comparison-meta {
  display: grid;
  width: 260px;
  flex: 0 0 260px;
  gap: 9px;
}

.vc20b-comparison-meta
.vc19a-previous-sample {
  width: 100%;
  min-width: 0;
}

.vc20b-comparison-quality {
  display: grid;
  gap: 3px;
  border: 1px solid #dfe4ed;
  border-radius: 13px;
  padding: 12px 14px;
  background: #f7f8fc;
}

.vc20b-comparison-quality > span,
.vc20b-representativeness span {
  color: #7b869a;
  font-size: 9px;
  font-weight: 820;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.vc20b-comparison-quality > strong {
  color: #263146;
  font-size: 13px;
  line-height: 1.3;
}

.vc20b-comparison-quality > small {
  color: #808b9d;
  font-size: 10px;
  line-height: 1.4;
}

.vc20b-quality-valid {
  border-color: #bfe7d6;
  background: #edf9f4;
}

.vc20b-quality-valid > strong {
  color: #147c56;
}

.vc20b-quality-small {
  border-color: #f0d7aa;
  background: #fff8eb;
}

.vc20b-quality-small > strong {
  color: #a65f0b;
}

.vc20b-quality-no-base {
  border-color: #dfe4ed;
  background: #f3f5f8;
}

.vc20b-quality-no-base > strong {
  color: #69758a;
}

.vc20b-quality-insufficient {
  border-color: #efbdc5;
  background: #fff0f2;
}

.vc20b-quality-insufficient > strong {
  color: #bd334a;
}

.vc20b-representativeness {
  display: grid;
  gap: 8px;
  border: 1px solid #dfe4ed;
  border-radius: 13px;
  padding: 12px 14px;
  background: #fff;
}

.vc20b-representativeness > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.vc20b-representativeness strong {
  color: #1a2338;
  font-size: 17px;
}

.vc20b-representativeness-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7ebf2;
}

.vc20b-representativeness-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      #5868ff 0%,
      #7b61ff 100%
    );
}

@media (max-width: 900px) {
  .vc20b-comparison-meta {
    width: 100%;
    flex: 1 1 100%;
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .vc20b-comparison-meta {
    grid-template-columns: 1fr;
  }
}

/* ===== CALL ANALYTICS BLOCK 20B CSS END ===== */

/* ===== CALL ANALYTICS BLOCK 20C CSS START ===== */

.vc20c-header {
  align-items: flex-start;
}

.vc20c-confidence {
  display: grid;
  width: 285px;
  flex: 0 0 285px;
  gap: 6px;
  border: 1px solid #dfe4ed;
  border-radius: 16px;
  padding: 15px;
  background: #f7f8fc;
}

.vc20c-confidence > span,
.vc20c-panel-heading > span,
.vc20c-narrative > span {
  color: #748096;
  font-size: 9px;
  font-weight: 830;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.vc20c-confidence > strong {
  color: #172036;
  font-size: 30px;
  line-height: 1;
}

.vc20c-confidence > b {
  color: #263146;
  font-size: 13px;
}

.vc20c-confidence > small {
  color: #7a8699;
  font-size: 10px;
  line-height: 1.45;
}

.vc20c-confidence-bar {
  height: 7px;
  overflow: hidden;
  margin-top: 2px;
  border-radius: 999px;
  background: #e7ebf2;
}

.vc20c-confidence-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      #5868ff 0%,
      #7b61ff 100%
    );
}

.vc20c-confidence dl {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 4px 0 0;
}

.vc20c-confidence dl div {
  display: grid;
  gap: 2px;
  border-radius: 10px;
  padding: 8px;
  background: rgba(255,255,255,.78);
}

.vc20c-confidence dt {
  color: #8691a3;
  font-size: 8px;
  line-height: 1.2;
}

.vc20c-confidence dd {
  margin: 0;
  color: #1c263b;
  font-size: 13px;
  font-weight: 820;
}

.vc20c-confidence-valid {
  border-color: #bfe7d6;
  background: #edf9f4;
}

.vc20c-confidence-limited {
  border-color: #efd8aa;
  background: #fff8eb;
}

.vc20c-confidence-insufficient {
  border-color: #efbdc5;
  background: #fff0f2;
}

.vc20c-confidence-no-base {
  border-color: #dfe4ed;
  background: #f3f5f8;
}

.vc20c-narrative {
  display: grid;
  gap: 6px;
  margin: 16px 0;
  border-left: 4px solid #5868ff;
  border-radius: 0 14px 14px 0;
  padding: 14px 16px;
  background: #f1f3ff;
}

.vc20c-narrative strong {
  color: #1b2540;
  font-size: 14px;
  line-height: 1.5;
}

.vc20c-explanation-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1.15fr)
    minmax(0, .85fr);
  gap: 16px;
  margin-top: 18px;
}

.vc20c-panel,
.vc20c-actions {
  border: 1px solid #e0e5ef;
  border-radius: 16px;
  padding: 16px;
  background: #fff;
}

.vc20c-panel-heading {
  display: grid;
  gap: 3px;
  margin-bottom: 12px;
}

.vc20c-panel-heading strong {
  color: #172036;
  font-size: 16px;
}

.vc20c-driver-list,
.vc20c-signal-list,
.vc20c-action-list {
  display: grid;
  gap: 9px;
}

.vc20c-driver {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(120px, .75fr);
  align-items: center;
  gap: 12px;
}

.vc20c-driver-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.vc20c-driver-copy strong {
  color: #202a40;
  font-size: 12px;
}

.vc20c-driver-copy span {
  color: #7a8699;
  font-size: 10px;
  font-weight: 760;
}

.vc20c-driver-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8ecf3;
}

.vc20c-driver-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.vc20c-driver.is-growth
.vc20c-driver-bar i {
  background: #e14a61;
}

.vc20c-driver.is-decline
.vc20c-driver-bar i {
  background: #1f9c70;
}

.vc20c-signal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 11px;
  padding: 10px 12px;
  background: #f7f8fb;
}

.vc20c-signal span {
  color: #263146;
  font-size: 12px;
  font-weight: 720;
}

.vc20c-signal b {
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 9px;
}

.vc20c-signal .is-confirmed {
  background: #e5f7ef;
  color: #147c56;
}

.vc20c-signal .is-noise {
  background: #edf0f5;
  color: #748096;
}

.vc20c-signal .is-limited {
  background: #fff1d9;
  color: #a65f0b;
}

.vc20c-signal .is-unknown {
  background: #f0f2f6;
  color: #7a8699;
}

.vc20c-actions {
  margin-top: 16px;
}

.vc20c-action-list article {
  display: grid;
  grid-template-columns: 36px minmax(0,1fr);
  align-items: start;
  gap: 11px;
  border-radius: 12px;
  padding: 11px;
  background: #f7f8fc;
}

.vc20c-action-list article > div {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: #e9ecff;
  color: #5368f5;
  font-weight: 850;
}

.vc20c-action-list p {
  display: grid;
  gap: 3px;
  margin: 0;
}

.vc20c-action-list p span {
  color: #68758b;
  font-size: 9px;
  font-weight: 820;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.vc20c-action-list p strong {
  color: #1d273c;
  font-size: 12px;
  line-height: 1.45;
}

.vc20c-empty {
  color: #7b879a;
  font-size: 12px;
}

@media (max-width: 980px) {
  .vc20c-confidence {
    width: 100%;
    flex: 1 1 100%;
  }

  .vc20c-explanation-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .vc20c-confidence dl {
    grid-template-columns: 1fr;
  }

  .vc20c-driver {
    grid-template-columns: 1fr;
  }
}

/* ===== CALL ANALYTICS BLOCK 20C CSS END ===== */

/* ===== CALL ANALYTICS V3.1 CSS START ===== */

.vc31-mission-control {
  display: grid;
  gap: 16px;
  margin-bottom: 22px;
}

.vc31-operational-strip {
  display: grid;
  grid-template-columns: minmax(240px, .85fr) minmax(0, 2.15fr);
  gap: 18px;
  border: 1px solid #dfe4ed;
  border-radius: 18px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(36, 45, 72, .055);
}

.vc31-operational-status {
  display: grid;
  align-content: center;
  gap: 8px;
  border-right: 1px solid #e7ebf2;
  padding-right: 18px;
}

.vc31-status-title {
  display: flex;
  align-items: center;
  gap: 9px;
}

.vc31-status-title i {
  display: block;
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  border-radius: 999px;
  background: #8792a4;
  box-shadow: 0 0 0 5px rgba(135, 146, 164, .12);
}

.vc31-status-title strong {
  color: #182238;
  font-size: 19px;
  line-height: 1.25;
}

.vc31-operational-status p {
  margin: 0;
  color: #758196;
  font-size: 11px;
  line-height: 1.45;
}

.vc31-status-warning .vc31-status-title i {
  background: #d88b22;
  box-shadow: 0 0 0 5px rgba(216, 139, 34, .14);
}

.vc31-status-critical .vc31-status-title i {
  background: #d94359;
  box-shadow: 0 0 0 5px rgba(217, 67, 89, .14);
}

.vc31-status-stable .vc31-status-title i {
  background: #19986b;
  box-shadow: 0 0 0 5px rgba(25, 152, 107, .14);
}

.vc31-operational-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.vc31-operational-kpis article {
  display: grid;
  align-content: center;
  min-height: 92px;
  gap: 3px;
  border-radius: 13px;
  padding: 13px;
  background: #f7f8fb;
}

.vc31-operational-kpis span {
  color: #748095;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.vc31-operational-kpis strong {
  color: #172137;
  font-size: 25px;
  line-height: 1;
}

.vc31-operational-kpis small {
  color: #8a94a6;
  font-size: 9px;
  line-height: 1.35;
}

.vc31-attention-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.vc31-attention-heading h2 {
  margin: 4px 0 0;
  color: #182238;
  font-size: 20px;
}

.vc31-attention-heading > small {
  max-width: 300px;
  color: #8490a3;
  font-size: 10px;
  line-height: 1.45;
  text-align: right;
}

.vc31-problem-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.vc31-problem-card {
  display: grid;
  min-height: 174px;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
  overflow: hidden;
  border: 1px solid #e0e5ee;
  border-top: 4px solid #8792a4;
  border-radius: 15px;
  padding: 15px;
  background: #fff;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.vc31-problem-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(34, 43, 68, .08);
}

.vc31-problem-warning { border-top-color: #d88b22; }
.vc31-problem-critical { border-top-color: #d94359; }
.vc31-problem-info { border-top-color: #5868ef; }
.vc31-problem-stable { border-top-color: #19986b; }

.vc31-problem-copy {
  display: grid;
  align-content: start;
  gap: 6px;
}

.vc31-problem-copy > span {
  color: #6f7b90;
  font-size: 9px;
  font-weight: 830;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.vc31-problem-copy > strong {
  color: #172137;
  font-size: 26px;
  line-height: 1;
}

.vc31-problem-copy > p {
  margin: 2px 0 0;
  color: #7d899c;
  font-size: 10px;
  line-height: 1.45;
}

.vc31-problem-card button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  border-radius: 10px;
  padding: 10px 11px;
  background: #f0f2f7;
  color: #26334b;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.vc31-problem-card button:hover { background: #e8ebf2; }
.vc31-problem-card button b { font-size: 14px; }

.vc31-no-action {
  display: block;
  border-radius: 10px;
  padding: 10px 11px;
  background: #edf7f3;
  color: #197b59;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 1180px) {
  .vc31-problem-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .vc31-operational-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .vc31-operational-strip { grid-template-columns: 1fr; }

  .vc31-operational-status {
    border-right: 0;
    border-bottom: 1px solid #e7ebf2;
    padding-right: 0;
    padding-bottom: 15px;
  }

  .vc31-problem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vc31-attention-heading { display: grid; }

  .vc31-attention-heading > small {
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .vc31-operational-kpis,
  .vc31-problem-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== CALL ANALYTICS V3.1 CSS END ===== */
