/* Espace T.I. — operational console */
:root {
  font-family: Jakarta, system-ui, sans-serif;
  --green: #147a9a;
  --brand: #1c99c0;
  --ink: #1f2937;
  --muted: #718095;
  --line: #e2e7ed;
  background: #f5f7fa;
  color: var(--ink);
  font-size: 13px;
}
body {
  background: #f5f7fa;
}
h1,
h2,
h3 {
  color: #1f2937;
}
h1 {
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -0.8px;
}
h2 {
  font-weight: 650;
}
button,
input,
select,
textarea {
  font-family: inherit;
}
input,
textarea,
select {
  border-color: #dbe2ea;
  border-radius: 4px;
  color: #243140;
  font-size: 12px;
  padding: 10px 11px;
  background: #fff;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #1c99c0;
  box-shadow: 0 0 0 3px #1c99c014;
}
label {
  font-size: 11px;
  font-weight: 600;
  gap: 7px;
}
label small,
.muted {
  color: #748195;
}
small {
  line-height: 1.6;
}
svg {
  flex-shrink: 0;
  vertical-align: middle;
}
.shell {
  grid-template-columns: 224px 1fr;
}
.sidebar {
  width: 224px;
  background: #1f2937;
  border-right: 0;
  color: #cbd5e1;
  padding: 22px 16px 0;
  overflow-y: auto;
}
.brand {
  margin: 0 5px 12px;
  display: block;
}
.brand img {
  display: block;
  width: 154px;
  height: auto;
}
.product-name {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.6px;
  color: #d2d9e3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
  margin-bottom: 35px;
}
.nav-label {
  color: #78889d;
  font-size: 8px;
  letter-spacing: 1.4px;
  margin: 0 12px 11px;
}
nav {
  gap: 4px;
}
nav button {
  color: #aab7c8;
  border-radius: 4px;
  padding: 11px 12px;
  font-size: 11px;
  gap: 11px;
  min-height: 40px;
  border-left: 2px solid transparent;
}
nav button:hover {
  background: #273647;
  color: #fff;
}
nav button.active {
  background: #213f50;
  color: #8bd9ee;
  border-left-color: #1c99c0;
  font-weight: 600;
}
.nav-icon {
  display: flex;
  align-items: center;
  width: 18px;
  height: 18px;
}
.sidebar-bottom {
  padding-top: 24px;
}
.hosting {
  border: 1px solid #374355;
  background: #253140;
  border-radius: 4px;
  padding: 13px 10px;
  margin: 0 2px 17px;
  color: #c8d5df;
  font-size: 10px;
  gap: 8px;
}
.hosting > span {
  color: #69bcd4;
}
.hosting small {
  color: #8294a8;
  font-size: 9px;
}
.sidebar-bottom > button {
  padding: 10px 12px;
  color: #93a3b8;
  font-size: 10px;
}
.sidebar-bottom > button:hover {
  color: #fff;
}
.sidebar-bottom > button svg {
  height: 14px;
  width: 14px;
}
.account {
  border-color: #374355;
  padding: 17px 0;
  margin-top: 12px;
}
.avatar {
  border-radius: 4px;
  background: #344758;
  color: #a9dce9;
  height: 30px;
  width: 30px;
}
.account strong {
  color: #d9e2ea;
  font-weight: 500;
  font-size: 9px;
  max-width: 125px;
}
.account small {
  color: #8093a7;
  font-size: 8px;
}
.account button {
  color: #9cacc0;
  padding: 5px;
}
.account button svg {
  width: 16px;
}
.main {
  min-width: 0;
}
.topbar {
  height: 65px;
  padding: 0 28px;
  border-bottom: 1px solid #e1e6ed;
  background: #fff;
  gap: 18px;
}
.breadcrumb {
  font-size: 10px;
  color: #8a97a8;
  white-space: nowrap;
}
.breadcrumb strong {
  color: #344256;
  font-weight: 600;
}
.breadcrumb span {
  margin: 0 10px;
  color: #c6d0db;
}
.top-status {
  font-size: 9px;
  color: #8b98aa;
  margin-left: auto;
}
.workspace-control {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 18px;
  border-left: 1px solid #e3e8ef;
  margin-left: auto;
  color: #8391a4;
}
.workspace-control select {
  border: 0;
  background: transparent;
  font-weight: 550;
  font-size: 10px;
  width: 172px;
  padding: 5px;
}
.workspace-control select:focus {
  box-shadow: none;
}
.workspace-control svg {
  width: 15px;
}
main {
  padding: 29px 28px 25px;
  max-width: 1800px;
  min-height: calc(100vh - 111px);
}
.page-head {
  align-items: center;
  margin-bottom: 24px;
}
.page-head h1 {
  margin-bottom: 7px;
}
.page-head p {
  font-size: 11px;
  color: #7b889a;
}
.page-head .eyebrow {
  display: none;
}
.primary,
.secondary,
.danger {
  font-size: 10px;
  font-weight: 600;
  border-radius: 4px;
  padding: 10px 14px;
  min-height: 35px;
  box-shadow: none;
  gap: 8px;
}
.primary {
  background: #147a9a;
  border-color: #147a9a;
}
.primary:hover {
  background: #116781;
}
.secondary {
  border-color: #dbe2ea;
  color: #536579;
  background: #fff;
}
.secondary:hover {
  background: #f6f9fb;
}
.danger {
  color: #bd5151;
  background: #fff6f6;
  border-color: #f1d3d3;
}
.text-button {
  border: 0;
  background: transparent;
  color: #147a9a;
  font-size: 10px;
  font-weight: 600;
  padding: 6px;
}
.metrics {
  gap: 13px;
  margin: 0 0 21px;
}
.metric {
  border: 1px solid #e1e6ed;
  border-radius: 5px;
  padding: 18px 18px 16px;
  box-shadow: 0 1px 2px #142b3c03;
  position: relative;
}
.metric .label {
  font-size: 10px;
  color: #6f7f93;
  align-items: center;
  gap: 7px;
  min-height: 17px;
}
.metric .label svg {
  color: #92a4b7;
}
.metric strong {
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -1px;
  color: #263548;
  margin-top: 13px;
  line-height: 1.25;
}
.metric small {
  font-size: 8px;
  color: #8b99ab;
  margin-top: 7px;
}
.metrics.extended {
  grid-template-columns: repeat(6, 1fr);
}
.panel {
  border-radius: 5px;
  border-color: #e1e6ed;
  margin-bottom: 21px;
  box-shadow: 0 1px 2px #142b3c03;
}
.panel-head {
  padding: 18px 20px 14px;
  align-items: center;
  gap: 10px;
}
.panel-head h2 {
  font-size: 12px;
  font-weight: 650;
  margin-bottom: 5px;
}
.panel-head p {
  font-size: 9px;
  color: #8c99aa;
}
.panel-body {
  padding: 20px;
}
.analytics-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr);
  gap: 20px;
}
.analytics-main-grid > .panel {
  min-width: 0;
}
.split-panels {
  gap: 20px;
}
.analytics-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid #e1e6ed;
  border-radius: 4px;
  padding: 10px 12px;
  background: #fff;
  margin-bottom: 20px;
}
.filter-group {
  display: flex;
  gap: 8px;
  flex: 1;
}
.filter-group select {
  font-size: 10px;
  min-width: 130px;
  max-width: 195px;
  padding: 7px 26px 7px 9px;
  height: 32px;
  background: #fbfcfe;
  border-color: #e1e7ee;
}
.error-log-filters .filter-group {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  flex: 1 1 0;
  min-width: 0;
}
.error-log-filters .filter-group select {
  min-width: 0;
  max-width: none;
  width: 100%;
}
@media (max-width: 1000px) {
  .error-log-filters {
    flex-wrap: wrap;
  }
  .error-log-filters .filter-group {
    flex-basis: 100%;
  }
}
@media (max-width: 600px) {
  .error-log-filters .filter-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 380px) {
  .error-log-filters .filter-group {
    grid-template-columns: 1fr;
  }
}
.range-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}
.range-tabs button,
.chart-tabs button {
  background: transparent;
  border: 0;
  border-radius: 3px;
  color: #8391a3;
  font-size: 9px;
  padding: 7px 10px;
  min-height: 30px;
}
.range-tabs button:hover,
.chart-tabs button:hover {
  background: #f2f7fa;
  color: #147a9a;
}
.range-tabs button.active,
.chart-tabs button.active {
  color: #147a9a;
  background: #eaf5f9;
  font-weight: 650;
}
.refresh-button {
  width: 30px;
  height: 30px;
  padding: 5px;
  background: white;
  border: 1px solid #e1e7ee;
  border-radius: 3px;
  color: #8092a6;
}
.refresh-button svg {
  width: 15px;
}
.chart-tabs {
  display: flex;
  background: #f6f8fb;
  border: 1px solid #edf0f5;
  border-radius: 4px;
  padding: 2px;
  gap: 1px;
}
.chart-tabs button {
  padding: 5px 9px;
  font-size: 8px;
  min-height: 25px;
}
.chart-host {
  padding: 6px 13px 10px;
  position: relative;
  min-height: 260px;
}
.volume-chart {
  display: block;
  width: 100%;
  height: 260px;
  overflow: visible;
}
.volume-chart text {
  font-size: 9px;
  fill: #91a0b2;
  font-family: Jakarta, system-ui, sans-serif;
}
.chart-grid {
  stroke: #edf1f5;
  stroke-dasharray: 3 4;
}
.volume-bar {
  fill: #1c99c0;
  transition: opacity 0.15s;
}
.volume-bar:hover {
  fill: #147a9a;
}
.error-bar {
  fill: #cf7176;
}
.chart-empty {
  position: absolute;
  left: 50%;
  top: 43%;
  transform: translateX(-50%);
  color: #9ba9b8;
  font-size: 10px;
  background: #ffffffde;
  padding: 7px 12px;
  border: 1px solid #edf1f5;
  border-radius: 3px;
  white-space: nowrap;
}
.world-map {
  padding: 0 14px;
  margin-bottom: 1px;
  min-height: 155px;
}
.world-map svg {
  display: block;
  width: 100%;
  height: 170px;
}
.country {
  fill: #eef2f6;
  stroke: #d4dde7;
  stroke-width: 0.6;
  stroke-linejoin: round;
}
.country.active {
  stroke: #fff;
  stroke-width: 1;
}
.country:hover {
  fill: #c7e5ef;
  stroke: #6fbdcf;
}
.country-list {
  padding: 0 20px 8px;
}
.country-row {
  display: grid;
  grid-template-columns: 28px 1fr auto 35px;
  align-items: center;
  gap: 9px;
  border-top: 1px solid #eef2f6;
  padding: 9px 0;
  font-size: 9px;
  color: #67788d;
}
.country-row strong {
  color: #32455c;
  font-weight: 600;
  text-align: right;
}
.country-row > .muted {
  text-align: right;
  font-size: 8px;
}
.country-code {
  font-size: 8px;
  color: #8c9cad;
  background: #f2f5f8;
  border: 1px solid #e2e8f0;
  border-radius: 3px;
  padding: 3px 0;
  text-align: center;
}
.geo-empty {
  font-size: 9px;
  color: #8999ac;
  line-height: 1.8;
  border-top: 1px solid #edf1f5;
  padding-top: 12px;
  margin: 0 0 8px;
}
.geo-footnote {
  font-size: 8px;
  color: #94a2b3;
  padding: 0 20px 14px;
}
.heatmap-scroll {
  padding: 5px 22px 9px;
  overflow: auto;
}
.heatmap-grid {
  display: grid;
  grid-template-columns: 32px repeat(24, minmax(13px, 1fr));
  gap: 5px;
  min-width: 620px;
}
.heatmap-hour {
  font-size: 8px;
  color: #95a3b4;
  text-align: center;
  padding: 0 0 5px;
}
.heatmap-day {
  font-size: 8px;
  color: #8c9cae;
  align-self: center;
}
.heatmap-cell {
  height: 18px;
  border-radius: 2px;
  border: 1px solid #dde6ee2a;
}
.heatmap-cell:hover {
  outline: 1px solid #6bb6ce;
}
.heatmap-legend {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  align-items: center;
  padding: 3px 23px 17px;
  color: #90a0b3;
  font-size: 8px;
}
.heatmap-legend i {
  display: block;
  width: 13px;
  height: 9px;
  border-radius: 1px;
}
.heatmap-legend > span {
  margin-left: 4px;
}
.distribution {
  display: flex;
  gap: 28px;
  align-items: center;
  padding: 12px 24px 26px;
  min-height: 175px;
}
.donut {
  height: 117px;
  width: 117px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transform: rotate(-90deg);
}
.donut-center {
  height: 88px;
  width: 88px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transform: rotate(90deg);
}
.donut-center strong {
  font-size: 23px;
  color: #33455c;
  letter-spacing: -0.8px;
  font-weight: 600;
}
.donut-center small {
  color: #9aa8b9;
  font-size: 8px;
}
.distribution-legend {
  flex: 1;
  min-width: 0;
}
.distribution-legend > div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: #8191a4;
  padding: 6px 0;
}
.distribution-legend i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  flex-shrink: 0;
}
.distribution-legend strong {
  font-weight: 600;
  color: #495d73;
  margin-left: auto;
}
.error-row {
  display: grid;
  grid-template-columns: 130px 1fr 25px;
  gap: 15px;
  align-items: center;
  font-size: 10px;
  color: #6c7d92;
  padding: 12px 0;
}
.error-row strong {
  text-align: right;
  color: #bc6266;
  font-size: 11px;
}
.error-track {
  height: 5px;
  background: #faedf0;
  border-radius: 2px;
  overflow: hidden;
}
.error-track i {
  height: 100%;
  display: block;
  background: #d17c82;
}
.healthy-empty {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  color: #7f929e;
  min-height: 135px;
  font-size: 11px;
}
.healthy-empty svg {
  color: #3f9e87;
}
th {
  font-size: 8px;
  color: #8a9aad;
  background: #f8fafc;
  border-color: #e8edf3;
  padding: 12px 20px;
  letter-spacing: 0.7px;
  white-space: nowrap;
}
td {
  padding: 15px 20px;
  border-color: #edf1f5;
  color: #6f8094;
  font-size: 10px;
}
td strong {
  color: #374b63;
  font-size: 11px;
}
.numeric {
  font-variant-numeric: tabular-nums;
  color: #465b73;
}
td .subtext {
  font-size: 8px;
  color: #9ba9b9;
  margin-top: 5px;
}
.bot-icon {
  height: 34px;
  width: 34px;
  border-radius: 4px;
  color: #4f90a5;
  background: #edf6f9;
}
.bot-cell {
  gap: 11px;
}
.table-actions {
  gap: 6px;
}
.table-actions button {
  border-color: #dfe6ed;
  border-radius: 3px;
  color: #698095;
  background: #fff;
  font-size: 9px;
  padding: 7px 9px;
  display: flex;
  align-items: center;
}
.table-actions button:hover {
  color: #147a9a;
  border-color: #9fcedc;
  background: #f5fbfd;
}
.pill {
  background: #eaf5f0;
  color: #3f8e6f;
  border-radius: 3px;
  font-size: 8px;
  padding: 4px 7px;
  gap: 4px;
}
.pill.off {
  background: #f6f1e7;
  color: #a18a5f;
}
.table-note {
  font-size: 9px;
  color: #8e9eb0;
  padding: 14px 20px;
  margin: 0;
  border-top: 1px solid #eef2f6;
}
.toolbar input,
.toolbar select {
  font-size: 10px;
}
.toolbar {
  gap: 9px;
}
.editor {
  grid-template-columns: minmax(350px, 1fr) 360px;
  gap: 22px;
}
.editor .panel-body {
  padding: 24px;
}
.editor-tabs {
  padding: 0 15px;
  border-color: #e3eaf1;
}
.editor-tabs button {
  font-size: 10px;
  color: #8c9caf;
  padding: 16px 13px;
}
.editor-tabs button.active {
  color: #147a9a;
  border-color: #1c99c0;
}
.preview-label {
  font-size: 8px;
  color: #8397ab;
  letter-spacing: 1px;
}
.preview-stage {
  border-radius: 5px;
  background-color: #edf2f6;
  background-image:
    linear-gradient(90deg, #dde5ed66 1px, transparent 1px),
    linear-gradient(#dde5ed66 1px, transparent 1px);
  background-size: 24px 24px;
  border-color: #dbe4ed;
  min-height: 550px;
  padding: 20px;
}
.preview-caption {
  font-size: 9px;
  color: #8fa1b5;
}
.preview iframe {
  border-radius: 8px;
}
.preview-live-stage {
  padding: 0;
  height: 680px;
  min-height: 680px;
  overflow: hidden;
}
.preview-live-stage iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
}
.notice {
  background: #eff7fa;
  border-color: #dbeaf1;
  border-radius: 4px;
  color: #688394;
  font-size: 10px;
  padding: 13px 15px;
}
.integration-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.field-grid.bot-limits-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 12px;
}
.bot-limits-grid > label {
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(48px, auto) auto 1fr;
  align-content: start;
}
.bot-limits-grid > label > span {
  align-self: end;
}
@media (max-width: 1100px) {
  .field-grid.bot-limits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 500px) {
  .field-grid.bot-limits-grid {
    grid-template-columns: 1fr;
  }
}
.code-box {
  border-radius: 4px;
  background: #f6f8fb;
  border-color: #e1e8f0;
  color: #526e85;
  font-size: 10px;
}
.check-label {
  display: grid;
  grid-template-columns: 17px 1fr;
  align-items: start;
  gap: 8px;
}
.check-label small {
  grid-column: 2;
}
.check-label input {
  margin-top: 2px;
}
.client-card .initial {
  border-radius: 4px;
  background: #eaf5f9;
  color: #5095ac;
}
.client-card {
  padding: 21px;
}
.client-card h3 {
  font-size: 14px;
}
.client-card p {
  color: #8ca0b5;
  font-size: 10px;
}
.client-card .icon-button {
  font-size: 9px;
  padding: 12px 0 0;
  color: #8094a8;
}
.empty {
  padding: 44px 22px;
}
.empty .empty-icon {
  color: #91aec0;
  font-size: 23px;
}
.empty h3 {
  font-size: 13px;
}
.empty p {
  font-size: 10px;
  color: #8d9fb3;
}
.page-footer {
  padding: 17px 28px;
  border-color: #e2e8f0;
  font-size: 8px;
  color: #a1aebe;
  letter-spacing: 1.3px;
}
.page-footer span {
  color: #9ba9ba;
  font-size: 8px;
}
dialog {
  border-radius: 7px;
  border-color: #dce4ed;
  padding: 25px;
  max-height: 90vh;
  overflow: auto;
}
.modal-head {
  gap: 15px;
  margin-bottom: 23px;
}
.modal-head h2 {
  font-size: 18px;
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
}
.modal-head > button {
  flex-shrink: 0;
}
.modal-head p {
  font-size: 10px;
  margin: 6px 0 0;
}
.modal-actions {
  border-top: 1px solid #e6edf4;
  padding-top: 18px;
}
.icon-button {
  color: #8ba0b3;
}
.conversation-dialog {
  width: min(680px, calc(100vw - 28px));
  padding: 24px;
}
.conversation-transcript {
  max-height: 64vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 17px;
  padding: 5px;
}
.transcript-row {
  max-width: 89%;
  align-self: flex-start;
}
.transcript-row.user {
  align-self: flex-end;
}
.transcript-meta {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  font-size: 9px;
  color: #93a4b7;
  margin-bottom: 6px;
}
.transcript-meta strong {
  color: #70859c;
  font-weight: 550;
}
.transcript-text {
  padding: 13px 16px;
  border: 1px solid #e3eaf2;
  border-radius: 6px;
  background: #f8fafc;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.8;
  font-size: 11px;
}
.user .transcript-text {
  background: #edf7fa;
  border-color: #dceef4;
}
.error {
  color: #bd5b65;
  font-size: 11px;
}
#toast {
  background: #263e52;
  border-radius: 5px;
  font-size: 11px;
  padding: 13px 20px;
}
.login {
  grid-template-columns: 1fr 1fr;
  background: white;
}
.login-card {
  width: min(440px, 92%);
  padding: 50px 25px;
}
.login-logo {
  width: 190px;
  display: block;
  margin-bottom: 46px;
}
.login-card .eyebrow {
  font-size: 9px;
  color: #1c99c0;
  letter-spacing: 2px;
}
.login-card h1 {
  font-size: 27px;
  letter-spacing: -0.9px;
  margin-bottom: 13px;
}
.login-card > .muted {
  font-size: 12px;
  line-height: 1.8;
}
.login-card label {
  font-size: 11px;
}
.login-card form {
  margin-top: 30px;
}
.login-card input {
  padding: 13px 12px;
}
.login-card .primary {
  font-size: 12px;
  padding: 14px 17px;
  margin-top: 8px;
}
.login-card small {
  color: #95a6b8;
  font-size: 9px;
}
.login-art {
  background: #1f2937;
  padding: 65px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  color: #a8c1d4;
}
.login-art > span {
  font-size: 8px;
  letter-spacing: 1.8px;
  position: absolute;
  top: 45px;
  left: 50px;
}
.login-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#3a4c5b55 1px, transparent 1px),
    linear-gradient(90deg, #3a4c5b55 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: linear-gradient(0deg, transparent, #000);
}
.login-console {
  z-index: 1;
  border: 1px solid #405466;
  background: #253746;
  padding: 27px;
  display: flex;
  gap: 20px;
  align-items: center;
  border-left: 3px solid #1c99c0;
  max-width: 420px;
}
.login-console > span {
  color: #50b7d5;
}
.login-console > span svg {
  width: 35px;
  height: 35px;
}
.login-console strong {
  display: block;
  color: #d9e6f0;
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}
.login-art h2 {
  position: relative;
  color: #d0deea;
  font-family: Jakarta, sans-serif;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -1px;
  line-height: 1.5;
  margin: 35px 0 0;
}
@media (min-width: 1600px) {
  main {
    padding-top: 32px;
  }
  .volume-chart {
    height: 285px;
  }
  .chart-host {
    min-height: 285px;
  }
  .world-map svg {
    height: 195px;
  }
}
@media (max-width: 1400px) {
  .metrics.extended {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 1200px) {
  .analytics-main-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 1fr);
  }
  .editor {
    grid-template-columns: 1fr 300px;
  }
  .range-tabs button {
    padding: 7px;
  }
  .filter-group select {
    max-width: 160px;
    min-width: 110px;
  }
  .analytics-filters {
    gap: 7px;
  }
  .distribution {
    gap: 18px;
    padding-left: 20px;
  }
  .donut {
    height: 98px;
    width: 98px;
  }
  .donut-center {
    height: 73px;
    width: 73px;
  }
  .panel-head {
    padding: 17px 17px 12px;
  }
  .metric {
    padding: 17px 14px;
  }
}
@media (max-width: 1020px) {
  .shell {
    grid-template-columns: 196px 1fr;
  }
  .sidebar {
    width: 196px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .brand img {
    width: 147px;
  }
  .product-name {
    font-size: 8px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .analytics-main-grid {
    grid-template-columns: 1fr;
  }
  .world-map svg {
    height: 230px;
  }
  .world-map {
    max-width: 600px;
    margin: auto;
    width: 100%;
  }
  .analytics-filters {
    flex-wrap: wrap;
  }
  .filter-group {
    flex-basis: 100%;
  }
  .filter-group select {
    flex: 1;
    max-width: none;
  }
  .editor {
    grid-template-columns: 1fr;
  }
  .preview {
    position: static;
    max-width: 420px;
  }
  .split-panels {
    grid-template-columns: 1fr;
  }
  .top-status {
    display: none;
  }
  .workspace-control {
    border: 0;
    padding: 0;
  }
  .workspace-control select {
    width: 150px;
  }
  .topbar {
    padding: 0 23px;
  }
  main {
    padding: 24px 23px;
  }
  .chart-tabs button {
    font-size: 8px;
  }
  .page-footer {
    padding: 17px 23px;
  }
}
@media (max-width: 700px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: relative;
    width: 100%;
    padding: 14px 16px 8px;
    overflow: visible;
  }
  .brand {
    margin: 0 0 10px;
  }
  .brand img {
    width: 130px;
  }
  .product-name {
    position: absolute;
    top: 32px;
    right: 16px;
    margin: 0;
    padding: 0;
    font-size: 8px;
  }
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  nav {
    flex-direction: row;
    overflow: auto;
    gap: 2px;
    padding-top: 4px;
  }
  nav button {
    padding: 9px 11px;
    font-size: 9px;
    min-height: 36px;
    white-space: nowrap;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 3px 3px 0 0;
  }
  nav button.active {
    border-bottom-color: #1c99c0;
  }
  .nav-icon {
    display: none;
  }
  .topbar {
    height: 50px;
    padding: 0 17px;
    gap: 8px;
  }
  .breadcrumb {
    font-size: 8px;
  }
  .workspace-control > span {
    display: none;
  }
  .workspace-control select {
    font-size: 9px;
    max-width: 136px;
  }
  .page-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 19px;
  }
  h1 {
    font-size: 23px;
  }
  .page-head p {
    font-size: 10px;
  }
  .page-head .actions {
    align-self: stretch;
    justify-content: flex-start;
  }
  .analytics-filters {
    padding: 8px;
    gap: 7px;
  }
  .range-tabs {
    flex: 1;
  }
  .range-tabs button {
    font-size: 8px;
    padding: 6px 7px;
    min-height: 30px;
  }
  .refresh-button {
    width: 29px;
  }
  .metrics {
    gap: 9px;
  }
  .metrics.extended {
    grid-template-columns: repeat(2, 1fr);
  }
  .metric {
    padding: 14px 12px;
  }
  .metric .label {
    font-size: 8px;
    min-height: 23px;
  }
  .metric .label svg {
    width: 14px;
  }
  .metric strong {
    font-size: 25px;
    margin-top: 10px;
  }
  .metric small {
    font-size: 7px;
  }
  .panel-head {
    padding: 16px 14px;
    flex-wrap: wrap;
    gap: 9px;
  }
  .panel-head h2 {
    font-size: 12px;
  }
  .panel-head p {
    font-size: 8px;
  }
  .chart-tabs {
    margin-left: auto;
  }
  .chart-tabs button {
    font-size: 8px;
  }
  .volume-chart {
    height: 210px;
  }
  .chart-host {
    padding: 0 10px;
    min-height: 220px;
  }
  .world-map svg {
    height: 175px;
  }
  .country-list {
    padding: 0 16px 8px;
  }
  .country-row {
    font-size: 9px;
  }
  main {
    padding: 23px 16px;
  }
  .table-wrap th,
  .table-wrap td {
    padding: 13px 14px;
  }
  .editor {
    display: block;
  }
  .editor-tabs {
    padding: 0 7px;
  }
  .editor-tabs button {
    padding: 14px 11px;
    font-size: 10px;
  }
  .editor .panel-body {
    padding: 19px 17px;
  }
  .preview {
    margin-top: 24px;
  }
  .field-grid {
    grid-template-columns: 1fr;
  }
  .client-grid {
    grid-template-columns: 1fr;
  }
  .page-footer {
    padding: 16px;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-art {
    display: none;
  }
  .login-card {
    padding: 40px 24px;
  }
  .login-card h1 {
    font-size: 25px;
  }
  .login-logo {
    margin-bottom: 38px;
  }
  .distribution {
    padding: 5px 20px 24px;
  }
  .conversation-dialog {
    padding: 20px 15px;
  }
  .transcript-row {
    max-width: 95%;
  }
  .transcript-text {
    font-size: 11px;
  }
  .heatmap-scroll {
    padding: 3px 16px 10px;
  }
  .primary,
  .secondary {
    font-size: 10px;
  }
  .error-row {
    grid-template-columns: 100px 1fr 20px;
    font-size: 9px;
    gap: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
/* Readable working density on desktop and compact displays. */
nav button {
  font-size: 12px;
}
.page-head p {
  font-size: 12px;
}
.metric .label {
  font-size: 11px;
}
.metric small {
  font-size: 9px;
}
.panel-head h2 {
  font-size: 13px;
}
.panel-head p {
  font-size: 10px;
}
.volume-chart text {
  font-size: 11px;
}
td {
  font-size: 11px;
}
td .subtext {
  font-size: 9px;
}
.country-row {
  font-size: 10px;
}
.geo-empty {
  font-size: 10px;
}
.geo-footnote {
  font-size: 9px;
}
.distribution-legend > div {
  font-size: 11px;
}
.heatmap-day,
.heatmap-hour {
  font-size: 9px;
}
.table-note {
  font-size: 10px;
}
@media (max-width: 700px) {
  nav button {
    font-size: 10px;
  }
  .metric .label {
    font-size: 9px;
  }
  .metric small {
    font-size: 8px;
  }
  .page-head p {
    font-size: 11px;
  }
  .panel-head h2 {
    font-size: 12px;
  }
  .panel-head p {
    font-size: 9px;
  }
  .volume-chart text {
    font-size: 12px;
  }
}
.mfa-status {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 0 0 17px;
  margin-bottom: 18px;
  border-bottom: 1px solid #e6edf4;
  color: #5a90aa;
}
.mfa-status strong {
  display: block;
  font-size: 12px;
  color: #345167;
}
.mfa-status p {
  font-size: 10px;
  margin: 5px 0 0;
}
.mfa-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.totp-qr {
  width: 200px;
  height: 200px;
  margin: 20px auto;
  padding: 8px;
  background: white;
  border: 1px solid #dde7f0;
  border-radius: 4px;
}
.totp-qr svg {
  width: 100%;
  height: 100%;
}
.totp-secret {
  display: block;
  font-size: 13px;
  letter-spacing: 1px;
  text-align: center;
  padding: 13px;
  background: #f4f7fa;
  border: 1px solid #dfe7f0;
  border-radius: 4px;
  margin-bottom: 22px;
  overflow-wrap: anywhere;
}
.recovery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 20px 0;
}
.recovery-grid code {
  font-size: 10px;
  background: #f4f7fb;
  padding: 10px;
  text-align: center;
  border: 1px solid #e0e8f0;
  border-radius: 3px;
}
.recovery-dialog > p {
  font-size: 11px;
  line-height: 1.8;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 19px;
  border-top: 1px solid #e8eef5;
  font-size: 9px;
  color: #92a1b4;
  gap: 12px;
}
.pagination-controls {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.pagination button {
  border: 1px solid #dce5ee;
  background: #fff;
  border-radius: 3px;
  font-size: 9px;
  color: #688095;
  padding: 6px 9px;
}
.pagination button:disabled {
  opacity: 0.4;
  cursor: default;
}
.ranking-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.ranking-controls input {
  font-size: 10px;
  padding: 7px 8px;
  max-width: 160px;
}
.ranking-controls select {
  font-size: 9px;
  padding: 7px 8px;
  max-width: 155px;
}
.ranking-header .panel-head {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}
.ranking-header .panel-head > div:first-child {
  min-width: 120px;
}
.ranking-header {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.ranking-header .table-wrap {
  flex: 1;
}
.ranking-header table {
  table-layout: fixed;
}
.ranking-header th,
.ranking-header td {
  padding: 12px 8px;
  line-height: 18px;
}
.ranking-header th:first-child {
  width: 55%;
}
.ranking-by-bot th:first-child {
  width: 28%;
}
.ranking-by-bot th:nth-child(2) {
  width: 27%;
}
.ranking-name {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.count-label {
  font-size: 9px;
  color: #99a9ba;
}
@media (max-width: 700px) {
  .recovery-grid {
    grid-template-columns: 1fr;
  }
  .ranking-controls {
    width: 100%;
  }
  .ranking-controls input {
    max-width: none;
    flex: 1;
  }
  .pagination {
    padding: 12px 14px;
    font-size: 8px;
  }
  .ranking-controls select {
    max-width: 150px;
  }
}

.impersonation-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff4db;
  color: #735018;
  padding: 12px 28px;
  border-bottom: 1px solid #e9d39f;
  font-size: 11px;
}
.client-bot-list {
  max-width: 290px;
}
.bot-tag {
  display: inline-block !important;
  margin: 2px 4px 2px 0;
  background: #eef6fa !important;
  border: 1px solid #d5e5ef !important;
  color: #315c72 !important;
  font-size: 10px !important;
  padding: 5px 8px !important;
  border-radius: 3px !important;
}
.platform-save {
  display: block;
  margin-top: 28px;
}
.email-preview-body {
  padding: 20px 28px;
  max-width: 620px;
}
.email-preview-body img {
  width: 180px;
}
.email-preview-text {
  white-space: pre-wrap;
  font:
    12px/1.8 'Jakarta',
    sans-serif;
  overflow-wrap: anywhere;
  background: #f6f8fb;
  padding: 18px;
}
.mail-preview {
  max-width: 720px;
  width: 90vw;
  border: 0;
  padding: 22px;
}
.session-id {
  font-family: monospace;
  font-size: 10px;
  overflow-wrap: anywhere;
  max-width: 190px;
}
.conversation-context {
  font-size: 10px;
  color: #667889;
  overflow-wrap: anywhere;
  line-height: 1.7;
}
.response-duration {
  display: inline-block;
  font-size: 9px;
  background: #eef4f8;
  border: 1px solid #dce7ef;
  color: #587186;
  padding: 4px 7px;
  border-radius: 3px;
  margin-top: 7px;
}
.ranking-empty {
  padding: 24px !important;
  text-align: center;
  color: #748597;
}
.compare-select {
  font-size: 10px;
  max-width: 210px;
}
.comparison-caption {
  font-size: 10px;
  color: #687f94;
  margin: 0 0 14px;
  line-height: 1.7;
}
.metric-trend {
  display: block;
  font-size: 9px;
  color: #6c7c8b;
  margin-top: 8px;
}
.metric-trend.up {
  color: #20765b;
}
.metric-trend.down {
  color: #b45b43;
}
.comparison-legend {
  font-size: 9px;
  color: #7b6b91;
  padding: 0 14px 10px;
}
.print-report {
  display: none;
}
button.platform-save {
  margin-top: 26px;
}
#forgot-password {
  margin-top: 15px;
}
#content form h3 {
  margin-top: 28px;
}
#content form h4 {
  font-size: 13px;
  margin-top: 24px;
}
@media (max-width: 900px) {
  .impersonation-banner {
    padding: 10px 14px;
    flex-wrap: wrap;
  }
  .ranking-controls {
    width: 100%;
  }
  .ranking-controls input {
    flex: 1;
    max-width: none;
  }
  .analytics-filters {
    flex-wrap: wrap;
  }
  .range-tabs {
    flex-wrap: wrap;
  }
}

.product-name .platform-label {
  display: block;
  background: none;
  border: 0;
  color: inherit;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.6;
  padding: 0;
  margin-bottom: 0;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-bottom button[data-view='platform'].active {
  background: #203d4d;
  color: #8ed7ea;
  border-radius: 3px;
}
input[readonly] {
  background: #f4f7fa;
  color: #687f91;
  cursor: default;
}

.sidebar {
  overflow-y: auto;
}
.sidebar-bottom {
  padding-top: 24px;
}
#configuration-menu[hidden],
#configuration-submenu[hidden],
#log-menu[hidden],
#log-submenu[hidden] {
  display: none !important;
}
.admin-menu-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: none;
  color: #92a6b8;
  padding: 10px 12px;
  font-size: 11px;
  border-radius: 3px;
}
.admin-menu-toggle:hover {
  background: #273849;
  color: #e8f2f7;
}
.admin-menu-toggle.active {
  background: #203d4d;
  color: #8ed7ea;
}
.configuration-chevron {
  font-size: 14px;
  transition: transform 0.15s;
}
.admin-menu-toggle[aria-expanded='true'] .configuration-chevron {
  transform: rotate(180deg);
}
.configuration-submenu {
  gap: 2px;
  margin: 5px 0 12px 9px;
  padding: 3px 0 3px 9px;
  border-left: 1px solid #405062;
}
.configuration-submenu button {
  font-size: 10px;
  line-height: 1.5;
  padding: 7px 8px;
  color: #95a8b9;
  white-space: normal;
  border-radius: 3px;
}
.configuration-submenu button:hover {
  background: #273849;
  color: #e5f1f7;
}
.configuration-submenu button.active {
  background: #284859;
  color: #b9e7f3;
}
.configuration-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.configuration-shortcut {
  border: 1px solid #dde6ef;
  background: #fff;
  border-radius: 4px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
  color: #4f7790;
}
.configuration-shortcut > span {
  flex: 1;
}
.configuration-shortcut strong {
  display: block;
  font-size: 12px;
  color: #2b4458;
}
.configuration-shortcut small {
  display: block;
  font-size: 10px;
  color: #7e91a2;
  margin-top: 6px;
  line-height: 1.6;
}
.configuration-shortcut:hover {
  border-color: #76b7cf;
  background: #fbfdfe;
}
.delivery-filter {
  max-width: 240px;
  margin: 10px 0 6px;
}
.delivery-status {
  font-size: 10px;
  padding: 4px 7px;
  border-radius: 3px;
  background: #eff4f8;
  color: #58778c;
}
.delivery-status.sent {
  background: #edf6f0;
  color: #357653;
}
.delivery-status.failed {
  background: #fff1ed;
  color: #a55d48;
}
@media (max-width: 900px) {
  .configuration-shortcuts {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .configuration-chevron {
    transition: none;
  }
}

.sidebar-bottom > button.active {
  background: #203d4d;
  color: #8ed7ea;
  border-radius: 3px;
}

.conversation-dialog {
  width: min(760px, calc(100vw - 28px));
}
.conversation-dialog[open] {
  display: flex;
  flex-direction: column;
}
.conversation-dialog .modal-head {
  flex-shrink: 0;
  align-items: flex-start;
  margin-bottom: 17px;
}
.conversation-title {
  min-width: 0;
  flex: 1;
}
.conversation-details {
  margin: 13px 0 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.conversation-detail {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  font-size: 10px;
  line-height: 1.6;
}
.conversation-detail dt {
  color: #8092a4;
  font-weight: 500;
}
.conversation-detail dd {
  margin: 0;
  color: #425e74;
  overflow-wrap: anywhere;
}
.conversation-session dd,
.conversation-visitor dd {
  font-family: ui-monospace, monospace;
  font-size: 9px;
}
.conversation-transcript {
  min-height: 0;
  flex: 1;
}
.transcript-meta {
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}
.transcript-meta strong {
  margin-right: auto;
}
.transcript-meta time {
  white-space: nowrap;
}
.transcript-meta .response-duration {
  margin: 0;
  padding: 2px 6px;
  font-size: 9px;
  line-height: 1.5;
  white-space: nowrap;
  border-radius: 4px;
}
@media (max-width: 700px) {
  .conversation-detail {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 7px;
  }
  .conversation-dialog {
    width: calc(100vw - 20px);
  }
  .transcript-meta {
    gap: 6px;
  }
}

.client-toolbar {
  margin: 0;
  padding: 0 20px 20px;
}
.client-toolbar input {
  width: 100%;
  max-width: 480px;
  min-height: 38px;
  font-size: 11px;
}
.client-table table {
  table-layout: fixed;
  min-width: 900px;
}
.client-table th,
.client-table td {
  padding: 14px 12px;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.client-table th:nth-child(1) {
  width: 20%;
}
.client-table th:nth-child(2) {
  width: 16%;
}
.client-table th:nth-child(3) {
  width: 19%;
}
.client-table th:nth-child(4) {
  width: 8%;
}
.client-table th:nth-child(5) {
  width: 18%;
}
.client-table th:nth-child(6) {
  width: 19%;
}
.client-actions,
.client-consultation {
  display: grid;
  gap: 6px;
  min-width: 0;
  justify-content: stretch;
}
.client-actions button,
.client-consultation button {
  width: 100%;
  justify-content: center;
  min-height: 32px;
}
.client-consultation select {
  width: 100%;
  min-width: 0;
  min-height: 32px;
  padding: 6px 8px;
  font-size: 10px;
  text-overflow: ellipsis;
}
.client-identity {
  min-width: 0;
}
.client-identity .subtext,
.client-access-list .subtext {
  overflow-wrap: anywhere;
}
.client-table .bot-tag {
  max-width: 100%;
  white-space: normal;
  text-align: left;
}
.question-count {
  display: block;
  color: #7b8fa2;
  font-size: 10px;
  margin-top: 4px;
}
.logo-field {
  border: 1px solid var(--line, #dce4eb);
  padding: 13px;
  margin: 10px 0;
  border-radius: 5px;
}
.logo-upload-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}
.logo-upload-preview {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: contain;
  background: transparent;
}
.logo-upload-row input {
  min-width: 140px;
  flex: 1;
  width: 150px;
  font-size: 11px;
}
.preview-stage {
  flex-direction: column;
  align-items: stretch;
}
.logo-icon-choices {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
}
.logo-icon-choice {
  padding: 8px 4px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  display: grid;
  place-items: center;
  gap: 5px;
  min-height: 70px;
}
.logo-icon-choice img {
  width: 40px;
  height: 40px;
}
.logo-icon-name {
  font-size: 10px;
  line-height: 1.2;
  color: var(--ink);
}
.css-doc-link {
  display: inline-block;
  margin: 0 0 18px;
  font-size: 11px;
  color: var(--green);
  text-underline-offset: 3px;
}
.css-doc-entry {
  display: inline-block;
  margin-bottom: 12px;
}
.css-reference {
  max-width: 1120px;
}
.css-doc-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.css-doc-table {
  width: 100%;
  min-width: 600px;
  table-layout: fixed;
}
.css-doc-table th,
.css-doc-table td {
  padding: 12px;
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.7;
}
.css-doc-table code {
  display: inline-block;
  margin: 2px 4px 2px 0;
  font-size: 11px;
}
.css-doc-example {
  margin: 16px 0;
}
.css-doc-example h4 {
  margin: 0;
}
.css-doc-example pre {
  overflow-x: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f4f7fa;
  line-height: 1.7;
}
.css-doc-example pre code {
  background: transparent;
  padding: 0;
}
.css-doc-reference {
  display: block;
  margin: 10px 0;
  font-size: 12px;
}
.logo-icon-choice:hover,
.logo-icon-choice:focus-visible {
  border-color: #1c99c0;
}
.logo-icon-choice[aria-pressed='true'] {
  border-color: #147a9a;
  background: #e8f5fa;
  box-shadow: inset 0 0 0 1px #147a9a;
}
.initial-setup-form label small {
  font-size: 11px;
  line-height: 1.5;
}
.initial-setup-form button.primary {
  width: 100%;
  margin-top: 6px;
}
