/* Contrast and surface consistency for the live CyberCompany Signature call-centre demo.
 * Kept separate from the generated canonical app.css so demo synchronisation is safe. */

/* The simulated customer website remains a light website in either app theme. */
.app-shell:not(.is-preview) .website-simulator {
  color: #26313c;
}
.app-shell:not(.is-preview) .website-simulator .address-bar {
  background: #43455c;
  color: #fff;
}
.app-shell:not(.is-preview) .simulated-site header nav {
  color: #eeebf1;
}
.app-shell:not(.is-preview) .simulated-site section > span,
.app-shell:not(.is-preview) .site-search svg {
  color: #97365c;
}
.app-shell:not(.is-preview) .site-search {
  color: #52606a;
}
.app-shell:not(.is-preview) .chat-window .quick-questions button {
  color: #923256;
  border-color: #c7a2b7;
}

/* Signature ambient light, following the ecosystem's approved corner treatment. */
.app-shell:not(.is-preview) .sidebar {
  background-image:
    radial-gradient(ellipse 90% 35% at 0 0, rgb(189 64 120 / 13%), transparent 82%),
    var(--call-rail);
}
.app-shell:not(.is-preview) .topbar {
  background-image: radial-gradient(ellipse 37% 140% at 100% 0, rgb(189 64 120 / 9%), transparent 90%);
}
.app-shell:not(.is-preview) .welcome-card {
  background-image:
    radial-gradient(circle at 100% 0, rgb(189 64 120 / 11%), transparent 51%),
    linear-gradient(145deg, var(--call-raised), var(--surface));
}
.app-shell.theme-dark:not(.is-preview) .sidebar {
  background-image:
    radial-gradient(ellipse 90% 38% at 0 0, rgb(234 105 159 / 22%), transparent 82%),
    var(--call-rail);
}
.app-shell.theme-dark:not(.is-preview) .topbar {
  background-image: radial-gradient(ellipse 37% 140% at 100% 0, rgb(234 105 159 / 15%), transparent 90%);
}
.app-shell.theme-dark:not(.is-preview) .welcome-card {
  background-image:
    radial-gradient(circle at 100% 0, rgb(234 105 159 / 17%), transparent 51%),
    linear-gradient(145deg, var(--call-raised), var(--surface));
}

/* Keep the 40/30/20 chart axis clear of the chart heading in both themes. */
.app-shell:not(.is-preview) .chart-panel .call-volume-chart {
  margin-top: 10px;
}

/* The canonical demo embeds decorative bar widths that are not proportional to
 * the displayed counts. Keep the visual scale honest for each channel view.
 * Values here describe the existing synthetic demo dataset, not live metrics. */
.app-shell:not(.is-preview) .topic-analysis .horizontal-bars > div:first-child i b {
  width: 100% !important;
}

/* Small KPI commentary must remain readable on pale and graphite cards. */
.app-shell:not(.is-preview) .metric-card small,
.app-shell:not(.is-preview) .knowledge-health span {
  color: #276b55;
}
.app-shell.theme-dark:not(.is-preview) .metric-card small,
.app-shell.theme-dark:not(.is-preview) .knowledge-health span {
  color: #9fe0c0;
}
.app-shell:not(.is-preview) :is(.channel-pill.chat,.case-id) {
  color: #693b95;
}
.app-shell:not(.is-preview) :is(.status-pill.transfer,.queue-count) {
  color: #854810;
}
.app-shell:not(.is-preview) .priority.high {
  color: #912d3b;
}

/* In dark Signature, avoid pale warning pills and low-contrast rose buttons. */
.app-shell.theme-dark:not(.is-preview) .simulated-site header button,
.app-shell.theme-dark:not(.is-preview) .segment button.active,
.app-shell.theme-dark:not(.is-preview) .report-tabs button.active,
.app-shell.theme-dark:not(.is-preview) .add-knowledge {
  background: #9b2e60;
  color: #fff;
}
.app-shell.theme-dark:not(.is-preview) .channel-pill.voice {
  background: #392735;
  color: #ffd2e4;
}
.app-shell.theme-dark:not(.is-preview) .channel-pill.chat {
  background: #342a43;
  color: #e9d4ff;
}
.app-shell.theme-dark:not(.is-preview) :is(.status-pill.transfer,.queue-count) {
  background: #392d25;
  color: #ffdda9;
}
.app-shell.theme-dark:not(.is-preview) .priority {
  background: #35363c;
  color: #f1f1f4;
}
.app-shell.theme-dark:not(.is-preview) .priority.high {
  background: #43232e;
  color: #ffbdca;
}
.app-shell.theme-dark:not(.is-preview) .copilot-live {
  background: #3c2736;
  color: #ffd0e6;
}
.app-shell.theme-dark:not(.is-preview) .case-id {
  background: #392638;
  color: #f3c6e3;
}
.app-shell.theme-dark:not(.is-preview) .report-risk,
.app-shell.theme-dark:not(.is-preview) .gap-status.novo,
.app-shell.theme-dark:not(.is-preview) .gap-status.u-obradi,
.app-shell.theme-dark:not(.is-preview) .gap-reason {
  background: #3a2d24;
  color: #f4d4ad;
}
.app-shell.theme-dark:not(.is-preview) .gap-status.u-obradi {
  background: #34343a;
  color: #f1f1f4;
}
.app-shell.theme-dark:not(.is-preview) .safety-grid span {
  background: #39242c;
  border: 1px solid #69404d;
  color: #f6c9d4;
  filter: none;
}
.app-shell.theme-dark:not(.is-preview) .emergency-rule {
  background: #3b2c23;
  border: 1px solid #765237;
  color: #f5d1a0;
  filter: none;
}
.app-shell.theme-dark:not(.is-preview) .emergency-rule p {
  color: #ecd0ad;
}
