.cf-ai-section {
  position: relative;
  padding-top: 68px;
  padding-bottom: 86px;
  isolation: isolate;
}

.cf-ai-section::before,
.cf-ai-section::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .2;
}

.cf-ai-section::before {
  width: 270px;
  height: 270px;
  top: 170px;
  left: -70px;
  background: #8a5cff;
}

.cf-ai-section::after {
  width: 240px;
  height: 240px;
  right: -55px;
  bottom: 80px;
  background: #4f9fff;
  opacity: .12;
}

.cf-ai-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 27px;
}

.cf-ai-intro>div {
  min-width: 0;
}

.cf-ai-intro p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.cf-ai-intro .wf-heading {
  margin-top: 14px;
}

.cf-ai-intro .wf-heading em {
  color: #b29aff;
}

html[data-theme="light"] .cf-ai-intro .wf-heading em {
  color: #6743bd;
}

.cf-ai-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 21px;
}

.cf-ai-proof span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 31px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 58%, transparent);
  font-size: 9px;
  letter-spacing: .025em;
}

.cf-ai-proof i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #80ddb6;
  box-shadow: 0 0 12px #80ddb655;
}

.cf-ai-dashboard {
  --ai-surface: color-mix(in srgb, var(--surface) 76%, transparent);
  --ai-surface-strong: color-mix(in srgb, var(--surface-2) 78%, transparent);
  --ai-border: color-mix(in srgb, var(--line) 82%, #9a7bff 18%);
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, #a48bff 28%, var(--line));
  border-radius: 28px;
  background: linear-gradient(135deg, color-mix(in srgb, #9676ff 5%, transparent), transparent 40%), color-mix(in srgb, var(--surface) 68%, transparent);
  box-shadow: 0 36px 100px #00000017, inset 0 1px 0 #ffffff10;
  -webkit-backdrop-filter: blur(26px) saturate(135%);
  backdrop-filter: blur(26px) saturate(135%);
}

.cf-ai-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 17px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--ai-border);
  background: color-mix(in srgb, var(--surface-2) 52%, transparent);
}

.cf-ai-product {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.cf-ai-mark {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 1px solid #a58cff55;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #a28aff, #6745d3);
  box-shadow: 0 7px 24px #825cff30;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: -.06em;
}

.cf-ai-product b {
  display: block;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: -.02em;
}

.cf-ai-product small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.cf-ai-head-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.cf-ai-select-wrap {
  display: block;
  position: relative;
}

.cf-ai-select-wrap::after {
  content: "⌄";
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-58%);
  color: var(--muted);
  font-size: 13px;
  pointer-events: none;
}

.cf-ai-dashboard select,
.cf-ai-input {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 0 31px 0 12px;
  appearance: none;
  border: 1px solid var(--ai-border);
  border-radius: 11px;
  outline: none;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  font: 500 10px var(--sans);
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.cf-ai-dashboard select:hover,
.cf-ai-input:hover {
  border-color: color-mix(in srgb, #9c80ff 60%, var(--line));
}

.cf-ai-dashboard select:focus-visible,
.cf-ai-input:focus-visible {
  border-color: #9b7bff;
  box-shadow: 0 0 0 3px #8a5cff20;
}

.cf-ai-dashboard select option {
  color: #191921;
  background: #fff;
}

.cf-ai-head-controls .cf-ai-select-wrap {
  width: 139px;
}

.cf-ai-head-controls .cf-ai-button {
  min-height: 38px;
}

.cf-ai-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 39px;
  padding: 0 13px;
  border: 1px solid var(--ai-border);
  border-radius: 11px;
  color: var(--text);
  background: color-mix(in srgb, var(--surface-2) 65%, transparent);
  font: 600 10px var(--sans);
  cursor: pointer;
  transition: transform .2s, border-color .2s, background .2s, box-shadow .2s;
}

.cf-ai-button:hover {
  border-color: #9e83ff;
  background: color-mix(in srgb, #8a5cff 10%, var(--surface));
  box-shadow: 0 8px 22px #8a5cff13;
}

.cf-ai-button:active {
  transform: translateY(1px);
}

.cf-ai-button:focus-visible {
  outline: 2px solid #a992ff;
  outline-offset: 3px;
}

.cf-ai-compare.is-on {
  color: #b5a5ff;
  border-color: color-mix(in srgb, #987aff 55%, var(--line));
  background: color-mix(in srgb, #8a5cff 12%, var(--surface));
}

.cf-ai-chart-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.cf-ai-chart-head-actions .cf-ai-button {
  min-height: 31px;
  padding-inline: 9px;
  font-size: 8px;
}

.cf-ai-button.primary {
  color: white;
  border-color: #8c6cff;
  background: linear-gradient(135deg, #9578ff, #704be3);
  box-shadow: 0 8px 24px #805cff30;
}

.cf-ai-button.primary:hover {
  background: linear-gradient(135deg, #a38aff, #7955ed);
  box-shadow: 0 10px 28px #805cff43;
}

.cf-ai-button svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.cf-ai-layout {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr) 300px;
  gap: 15px;
  padding: 16px;
  align-items: start;
}

.cf-ai-rail {
  display: grid;
  gap: 5px;
  padding: 8px;
  border: 1px solid var(--ai-border);
  border-radius: 17px;
  background: color-mix(in srgb, var(--surface-2) 46%, transparent);
}

.cf-ai-rail-label {
  padding: 8px 10px 10px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.cf-ai-view {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 41px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  text-align: left;
  font: 550 10px var(--sans);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}

.cf-ai-view-icon {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  border-radius: 8px;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface-2) 88%, transparent);
  font-size: 12px;
}

.cf-ai-view:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 58%, transparent);
}

.cf-ai-view[aria-pressed="true"] {
  color: var(--text);
  border-color: color-mix(in srgb, #9a7cff 34%, var(--line));
  background: color-mix(in srgb, #8a5cff 12%, var(--surface));
}

.cf-ai-view[aria-pressed="true"] .cf-ai-view-icon {
  color: #fff;
  background: linear-gradient(140deg, #9b82ff, #6c4cda);
}

.cf-ai-main {
  display: grid;
  gap: 13px;
  min-width: 0;
}

.cf-ai-main-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 2px 0;
}

.cf-ai-main-heading h3 {
  margin: 0 0 4px;
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 560;
  letter-spacing: -.045em;
}

.cf-ai-main-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.cf-ai-updated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  margin-top: 5px;
  color: var(--muted);
  font-size: 8px;
}

.cf-ai-updated i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7bd8ab;
}

.cf-ai-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.cf-ai-kpi {
  min-width: 0;
  padding: 14px 13px 13px;
  border: 1px solid var(--ai-border);
  border-radius: 15px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--surface) 85%, transparent), color-mix(in srgb, var(--surface-2) 54%, transparent));
  box-shadow: inset 0 1px 0 #ffffff08;
}

.cf-ai-kpi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  color: var(--muted);
  font-size: 9px;
}

.cf-ai-kpi-mark {
  color: #aa97ff;
  font-size: 12px;
}

.cf-ai-kpi strong {
  display: block;
  margin-top: 10px;
  overflow-wrap: anywhere;
  font-size: clamp(16px, 1.65vw, 22px);
  line-height: 1.05;
  font-weight: 570;
  letter-spacing: -.05em;
}

.cf-ai-kpi-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.35;
}

.cf-ai-delta {
  color: #68d6a4;
  font-weight: 650;
}

.cf-ai-delta.down {
  color: #f0a78b;
}

.cf-ai-panel {
  min-width: 0;
  border: 1px solid var(--ai-border);
  border-radius: 17px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--surface) 82%, transparent), color-mix(in srgb, var(--surface-2) 48%, transparent));
  box-shadow: inset 0 1px 0 #ffffff07;
}

.cf-ai-chart-panel {
  padding: 17px 17px 13px;
}

.cf-ai-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cf-ai-panel-heading h4 {
  margin: 0;
  font-size: 11px;
  font-weight: 650;
}

.cf-ai-panel-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.cf-ai-chart-key {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  color: var(--muted);
  font-size: 8px;
}

.cf-ai-chart-key i {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: #9a80ff;
}

.cf-ai-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: clamp(7px, 1.3vw, 16px);
  height: 145px;
  margin-top: 15px;
  padding: 12px 4px 0;
  border-bottom: 1px solid var(--ai-border);
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 35px, color-mix(in srgb, var(--line) 80%, transparent) 36px, transparent 37px);
}

.cf-ai-bar-item {
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  min-width: 0;
  height: 100%;
  gap: 8px;
}

.cf-ai-bar-value {
  color: var(--muted);
  font-size: 8px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .2s, transform .2s;
  white-space: nowrap;
}

.cf-ai-bar-item:hover .cf-ai-bar-value,
.cf-ai-bar-item:focus-within .cf-ai-bar-value {
  opacity: 1;
  transform: none;
}

.cf-ai-bar {
  width: min(100%, 28px);
  min-height: 8px;
  height: var(--bar-height, 50%);
  position: relative;
  border-radius: 7px 7px 2px 2px;
  background: linear-gradient(180deg, #b3a2ff, #7b5ce2 80%);
  box-shadow: 0 0 20px #8b6cff17;
  transition: height .45s cubic-bezier(.2, .75, .2, 1), opacity .2s;
}

.cf-ai-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffffff23, transparent 55%);
}

.cf-ai-bar-label {
  width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-bottom: 10px;
}

.cf-ai-chart-caption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 8px;
}

.cf-ai-chart-caption strong {
  color: var(--text);
  font-weight: 600;
}

.cf-ai-table-panel {
  padding: 16px;
}

.cf-ai-table-wrap {
  margin-top: 13px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.cf-ai-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9px;
  text-align: left;
  white-space: nowrap;
}

.cf-ai-table th {
  padding: 0 10px 10px 0;
  color: var(--muted);
  font-size: 8px;
  font-weight: 600;
}

.cf-ai-table td {
  padding: 11px 10px 11px 0;
  border-top: 1px solid var(--line);
}

.cf-ai-table td:first-child {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}

.cf-ai-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 8px;
}

.cf-ai-tag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.cf-ai-tag.warn {
  color: #d9a852;
  border-color: #d9a8522a;
  background: #d9a85212;
}

.cf-ai-tag.info {
  color: #85b8ff;
  border-color: #85b8ff2a;
  background: #85b8ff12;
}

.cf-ai-tag.good {
  color: #73d4a5;
  border-color: #73d4a52a;
  background: #73d4a512;
}

.cf-ai-row-action {
  min-height: 27px;
  padding: 0 9px;
  border: 1px solid var(--ai-border);
  border-radius: 8px;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  font: 550 8px var(--sans);
  cursor: pointer;
}

.cf-ai-row-action:hover {
  border-color: #9d80ff;
}

.cf-ai-side {
  display: grid;
  gap: 13px;
  min-width: 0;
}

.cf-ai-assistant {
  position: relative;
  overflow: hidden;
  padding: 17px;
  border: 1px solid color-mix(in srgb, #a087ff 42%, var(--line));
  border-radius: 18px;
  background: radial-gradient(ellipse at 0 0, #9e7dff1b, transparent 72%), color-mix(in srgb, var(--surface) 72%, transparent);
  box-shadow: inset 0 1px 0 #ffffff0c, 0 17px 48px #0000000b;
}

.cf-ai-assistant::after {
  content: "";
  position: absolute;
  top: -57px;
  right: -53px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px solid #ad99ff20;
  box-shadow: 0 0 0 13px #a38aff08, 0 0 0 27px #a38aff05;
  pointer-events: none;
}

.cf-ai-assistant-head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.cf-ai-assistant-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  border: 1px solid #a38aff45;
  border-radius: 10px;
  color: #d8ceff;
  background: linear-gradient(145deg, #9e81ff34, #7654d11a);
}

.cf-ai-assistant-head b {
  display: block;
  font-size: 11px;
  font-weight: 650;
}

.cf-ai-assistant-head small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

.cf-ai-model-pill {
  margin-left: auto;
  padding: 5px 7px;
  border: 1px solid #7adab12d;
  border-radius: 999px;
  color: #78d7a8;
  background: #7adab10d;
  font-size: 7px;
  white-space: nowrap;
}

.cf-ai-insight-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 22px;
  color: #ab96ff;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cf-ai-insight-label i {
  width: 14px;
  height: 1px;
  background: #ab96ff;
}

.cf-ai-insight-title {
  margin: 9px 0 8px;
  font-size: 16px;
  line-height: 1.23;
  font-weight: 570;
  letter-spacing: -.04em;
}

.cf-ai-insight-copy {
  min-height: 82px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
}

.cf-ai-confidence {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 8px;
}

.cf-ai-confidence-track {
  height: 4px;
  flex: 1;
  overflow: hidden;
  border-radius: 9px;
  background: color-mix(in srgb, var(--muted) 20%, transparent);
}

.cf-ai-confidence-track span {
  display: block;
  width: 86%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9e83ff, #6ed9b4);
}

.cf-ai-recommendation {
  margin-top: 13px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-2) 54%, transparent);
}

.cf-ai-recommendation small {
  display: block;
  color: var(--muted);
  font-size: 8px;
}

.cf-ai-recommendation p {
  margin: 5px 0 10px;
  font-size: 10px;
  line-height: 1.65;
}

.cf-ai-recommendation .cf-ai-button {
  width: 100%;
  min-height: 35px;
  font-size: 9px;
}

.cf-ai-query {
  padding: 15px;
  border: 1px solid var(--ai-border);
  border-radius: 17px;
  background: color-mix(in srgb, var(--surface-2) 43%, transparent);
}

.cf-ai-query-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 11px;
}

.cf-ai-query-heading b {
  font-size: 10px;
  font-weight: 650;
}

.cf-ai-query-heading span {
  color: var(--muted);
  font-size: 8px;
}

.cf-ai-query-field {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px;
  border: 1px solid var(--ai-border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 75%, transparent);
}

.cf-ai-query-field .cf-ai-input {
  min-height: 35px;
  padding: 0 7px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.cf-ai-query-field .cf-ai-button {
  width: 35px;
  min-height: 35px;
  flex: 0 0 35px;
  padding: 0;
  border-radius: 9px;
}

.cf-ai-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.cf-ai-prompt {
  min-height: 27px;
  padding: 0 8px;
  border: 1px solid var(--ai-border);
  border-radius: 999px;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 46%, transparent);
  font: 500 8px var(--sans);
  cursor: pointer;
}

.cf-ai-prompt:hover {
  color: var(--text);
  border-color: #9c80ff;
}

.cf-ai-query-response {
  display: none;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #9579ff35;
  border-radius: 10px;
  color: var(--muted);
  background: #8a5cff0b;
  font-size: 9px;
  line-height: 1.7;
}

.cf-ai-query-response.is-visible {
  display: block;
  animation: cf-ai-in .28s ease both;
}

.cf-ai-toast {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: fit-content;
  max-width: calc(100% - 28px);
  margin: 0;
  padding: 10px 14px;
  border: 1px solid color-mix(in srgb, #80ddb6 38%, var(--line));
  border-radius: 999px;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  box-shadow: 0 12px 30px #0002;
  backdrop-filter: blur(22px);
  font-size: 9px;
  opacity: 0;
  transform: translateY(7px);
  pointer-events: none;
  transition: opacity .22s, transform .22s;
}

.cf-ai-toast.is-visible {
  opacity: 1;
  transform: none;
}

.cf-ai-queue-counter.has-actions b {
  color: #78d7a8;
}

.cf-ai-footer-note {
  display: flex;
  align-items: start;
  gap: 8px;
  margin: 13px 4px 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
}

.cf-ai-footer-note span {
  color: #aa96ff;
}

.cf-ai-dashboard .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@keyframes cf-ai-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

html[data-theme="light"] .cf-ai-dashboard {
  --ai-border: color-mix(in srgb, var(--line) 90%, #9a7bff 10%);
  box-shadow: 0 30px 90px #29204b0c, inset 0 1px 0 #ffffffcf;
}

html[data-theme="light"] .cf-ai-kpi,
html[data-theme="light"] .cf-ai-panel,
html[data-theme="light"] .cf-ai-query {
  box-shadow: inset 0 1px 0 #ffffffbf, 0 8px 25px #29204b06;
}

html[data-theme="light"] .cf-ai-assistant {
  box-shadow: inset 0 1px 0 #ffffffd9, 0 18px 42px #29204b0a;
}

@media (max-width: 1120px) {
  .cf-ai-layout {
    grid-template-columns: 1fr 290px;
  }

  .cf-ai-rail {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .cf-ai-rail-label {
    flex: 0 0 auto;
    padding: 0 8px;
  }

  .cf-ai-view {
    flex: 0 0 auto;
    width: auto;
    min-height: 38px;
    padding-right: 13px;
  }
}

@media (max-width: 820px) {
  .cf-ai-intro {
    display: block;
  }

  .cf-ai-intro p {
    max-width: 580px;
    margin-top: 17px;
  }

  .cf-ai-layout {
    grid-template-columns: 1fr;
  }

  .cf-ai-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .cf-ai-assistant {
    min-height: 100%;
  }

  .cf-ai-insight-copy {
    min-height: 95px;
  }
}

@media (max-width: 600px) {
  .cf-ai-section {
    padding-top: 45px;
    padding-bottom: 60px;
  }

  .cf-ai-dashboard {
    border-radius: 19px;
  }

  .cf-ai-topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px;
  }

  .cf-ai-head-controls {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
  }

  .cf-ai-head-controls .cf-ai-select-wrap {
    width: 100%;
  }

  .cf-ai-head-controls .cf-ai-select-wrap:first-child {
    grid-column: 1;
  }

  .cf-ai-head-controls .cf-ai-button {
    width: 100%;
  }

  .cf-ai-head-controls .cf-ai-button.primary {
    grid-column: 1 / -1;
  }

  .cf-ai-layout {
    padding: 10px;
    gap: 11px;
  }

  .cf-ai-rail {
    padding: 6px;
  }

  .cf-ai-rail-label {
    display: none;
  }

  .cf-ai-view {
    gap: 7px;
    padding-inline: 8px;
    font-size: 9px;
  }

  .cf-ai-view-icon {
    width: 23px;
    height: 23px;
    flex-basis: 23px;
  }

  .cf-ai-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .cf-ai-kpi {
    padding: 12px;
  }

  .cf-ai-kpi strong {
    font-size: 20px;
  }

  .cf-ai-chart-panel,
  .cf-ai-table-panel {
    padding: 13px;
  }

  .cf-ai-chart {
    height: 125px;
    gap: 6px;
  }

  .cf-ai-side {
    grid-template-columns: 1fr;
  }

  .cf-ai-assistant {
    min-height: auto;
  }

  .cf-ai-insight-copy {
    min-height: 0;
  }

  .cf-ai-main-heading {
    flex-direction: column;
  }

  .cf-ai-updated {
    margin-top: 0;
  }

  .cf-ai-panel-heading {
    flex-direction: column;
  }

  .cf-ai-chart-key {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {

  .cf-ai-dashboard *,
  .cf-ai-dashboard *::before,
  .cf-ai-dashboard *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
