/* Deeper insight, with a calm conversation-first surface. */
.insight-view-tabs {
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.insight-view-tabs button {
  flex-shrink: 0;
}
.silence-intro {
  margin: 5px 0 22px;
}
.silence-intro h2 {
  font-size: 25px;
  font-weight: 500;
  margin-top: 9px;
}
.silence-intro p {
  font-size: 11px;
  color: var(--insight-muted);
  margin-top: 8px;
}
.silence-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.silence-metrics article {
  background: var(--insight-card);
  border: 1px solid var(--insight-border);
  border-radius: 11px;
  padding: 18px;
}
.silence-metrics small {
  display: block;
  font-size: 10px;
  color: var(--insight-muted);
}
.silence-metrics strong {
  display: block;
  font-size: 26px;
  font-weight: 550;
  margin: 11px 0 8px;
}
.silence-metrics article > span {
  font-size: 9px;
  color: var(--insight-muted);
}
.silence-day-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
  gap: 7px;
  margin-top: 21px;
  max-height: 340px;
  overflow: auto;
  padding: 3px;
}
.silence-day-grid > button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 41px;
  font-size: 11px;
  border-radius: 6px;
  background: #dfefe3;
  color: #598465;
  border: 1px solid #cfe5d6;
}
.silence-day-grid > button.silent {
  background: transparent;
  color: #a6b3a8;
  border: 1px dashed #c7d5c9;
}
.silence-day-grid small {
  font-size: 7px;
  color: #95ae9b;
}
.return-card,
.daily-detail-card {
  margin-top: 18px;
}
.daily-detail-card > .insight-card-heading {
  justify-content: space-between;
}
.daily-detail-card > .insight-card-heading > span {
  font-size: 10px;
  color: var(--insight-muted);
}
.daily-detail-card .table-scroll,
.return-card .table-scroll {
  max-height: 480px;
  margin-top: 18px;
}
.daily-detail-card table,
.return-card table {
  font-size: 10px;
}
.daily-detail-card td,
.return-card td {
  white-space: nowrap;
}
.daily-detail-card th,
.return-card th {
  position: sticky;
  top: 0;
  background: var(--insight-card);
  z-index: 1;
  white-space: nowrap;
}
.table-session {
  display: block;
  text-align: left;
  font-size: 9px;
  margin: 3px 0;
}
.table-session small {
  color: var(--insight-muted);
  margin-left: 5px;
}
.day-status {
  font-size: 8px;
  padding: 4px 6px;
  border-radius: 4px;
  background: #e6f2e8;
  color: #7a9f83;
}
.day-status.silent {
  background: #f0edf5;
  color: #a096b2;
}
.silent-row {
  background: #9a83bf04;
}
.return-message-link {
  display: flex;
  gap: 7px;
  align-items: center;
  text-align: left;
  font-size: 10px;
  color: #78a386;
  max-width: 220px;
  white-space: normal;
}
.return-message-link svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}
.silence-definition {
  font-size: 10px;
  color: var(--insight-muted);
  line-height: 1.8;
  margin: 17px 4px;
}
[data-theme="dark"] .silence-day-grid > button {
  background: #294934;
  border-color: #3d6446;
  color: #9dbc9f;
}
[data-theme="dark"] .silence-day-grid > button.silent {
  background: transparent;
  border-color: #46614c;
  color: #718f78;
}
[data-theme="dark"] .day-status {
  background: #304d35;
  color: #a1b8a1;
}
[data-theme="dark"] .day-status.silent {
  background: #3e3547;
  color: #b5a5be;
}
@media (max-width: 950px) {
  .silence-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .insight-view-tabs {
    gap: 18px !important;
  }
  .insight-view-tabs button {
    font-size: 10px !important;
    gap: 6px !important;
  }
  .insight-view-tabs svg {
    width: 13px !important;
    height: 13px !important;
  }
}
@media (max-width: 700px) {
  .silence-metrics {
    gap: 10px;
  }
  .silence-metrics article {
    padding: 16px;
  }
  .silence-metrics strong {
    font-size: 25px;
  }
  .silence-intro h2 {
    font-size: 24px;
  }
  .silence-day-grid {
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
  }
  .silence-day-grid > button {
    height: 36px;
    font-size: 10px;
  }
  .daily-detail-card,
  .return-card {
    padding: 18px 14px;
  }
  .insight-view-tabs {
    gap: 16px !important;
  }
  .insight-view-tabs button {
    font-size: 11px !important;
  }
}
.chat-app {
  --insight-card: #fff;
  --insight-border: #e5eeea;
  --insight-muted: #82968e;
  --insight-ink: #244b40;
  --insight-bg: #f6f9f7;
  --insight-purple: #9879cf;
  --insight-shadow: 0 4px 25px #24584404;
  grid-template-columns: 60px 294px minmax(0, 1fr);
}
.chat-main {
  position: relative;
  background:
    radial-gradient(ellipse at 88% 0, #ece8f64d, transparent 42%),
    radial-gradient(ellipse at 10% 10%, #e0f4e74d, transparent 42%), var(--insight-bg);
}
.chat-contact-header {
  background: #ffffffb8;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--insight-border);
  height: 70px;
}
.chat-sidebar {
  border-color: var(--insight-border);
}
.chat-list-header {
  height: 86px;
}
.chat-row.selected {
  background: linear-gradient(90deg, #e9f6ef, #f6faf7);
  box-shadow: inset 3px 0 #17a984;
}
.chat-row.selected .chat-avatar {
  box-shadow: 0 0 0 3px #ffffffb5;
}
.chat-avatar {
  background: linear-gradient(135deg, #d3e7df, #ecf1ed);
  color: #6a8f7a;
}
.chat-rail {
  background: #edf3ef;
  border-color: var(--insight-border);
}
.rail-logo {
  background: #d9eee3;
  color: #169d78;
}
.add-chat-button {
  background: linear-gradient(115deg, #008a6a, #12a787);
  box-shadow: 0 4px 11px #00997912;
}
.chat-bottom-note {
  display: none;
}
.insight-experience {
  max-width: 1180px;
  padding: 33px 40px 120px;
  margin: auto;
  animation: insight-arrive 0.32s ease-out;
  color: var(--insight-ink);
}
.insight-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}
.insight-eyebrow {
  font-size: 9px;
  letter-spacing: 1.6px;
  font-weight: 600;
  color: #7c9c8c;
  display: flex;
  align-items: center;
  gap: 7px;
}
.insight-eyebrow > b {
  height: 5px;
  width: 5px;
  background: #16aa82;
  border-radius: 50%;
}
.insight-heading h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 33px;
  font-weight: 650;
  letter-spacing: -1.3px;
  margin: 10px 0 6px;
  overflow-wrap: anywhere;
}
.insight-heading h1 > span:not(.heading-spark) {
  font-family: Georgia, serif;
  font-style: italic;
  color: #7ba991;
  font-weight: 400;
}
.heading-spark {
  display: grid;
  place-items: center;
  color: #aa95c0;
  margin-left: 5px;
  transform: rotate(-8deg);
}
.heading-spark svg {
  height: 21px;
  width: 21px;
}
.insight-heading p {
  font-size: 12px;
  color: var(--insight-muted);
}
.loaded-indicator {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  background: var(--insight-card);
  border: 1px solid var(--insight-border);
  border-radius: 10px;
  font-size: 11px;
  cursor: pointer;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.loaded-indicator > svg {
  color: #00a884;
  height: 18px;
  width: 18px;
}
.loaded-indicator strong {
  font-weight: 600;
}
.loaded-indicator small {
  display: block;
  margin-top: 4px;
  font-size: 9px;
  color: var(--insight-muted);
}
.loaded-indicator:hover {
  box-shadow: 0 4px 20px #00a88410;
  transform: translateY(-1px);
}
.insight-view-tabs {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid var(--insight-border);
  margin-bottom: 20px;
}
.insight-view-tabs button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 2px 13px;
  color: var(--insight-muted);
  font-size: 12px;
  position: relative;
}
.insight-view-tabs button.active {
  color: #0d8d6c;
  font-weight: 600;
}
.insight-view-tabs button.active:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: #16a981;
  border-radius: 2px;
}
.insight-view-tabs svg {
  width: 15px;
  height: 15px;
}
.insight-view-tabs span {
  padding: 2px 6px;
  background: #e7f1ea;
  border-radius: 4px;
  font-size: 9px;
  color: #699c80;
}

.dashboard-story-tab {
  max-width: 980px;
  margin-inline: auto;
}

.dashboard-summary-report,
.dashboard-asklana {
  border: 1px solid var(--insight-border);
  border-radius: 24px;
  background: var(--insight-card);
  box-shadow: 0 18px 50px rgba(25, 45, 37, 0.07);
}

.dashboard-summary-report {
  padding: clamp(22px, 4vw, 48px);
}

.dashboard-summary-report > header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--insight-border);
}

.dashboard-summary-report h2,
.dashboard-asklana h2 {
  margin: 5px 0 10px;
  font-size: clamp(1.65rem, 4vw, 2.6rem);
  letter-spacing: -0.045em;
}

.dashboard-summary-report header p,
.dashboard-story-copy p,
.dashboard-asklana > p {
  color: var(--insight-muted);
  line-height: 1.7;
}

.dashboard-lana-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  background: #dff8eb;
  color: #087647;
  font-weight: 800;
}

.dashboard-lana-avatar svg {
  width: 21px;
}

.dashboard-story-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px 0;
}

.dashboard-story-copy section {
  padding: 18px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--insight-card) 86%, var(--insight-border));
}

.dashboard-story-copy h3 {
  margin: 0 0 7px;
  font-size: 1rem;
}

.dashboard-story-copy p {
  margin: 0;
  font-size: 0.92rem;
}

.dashboard-summary-report > aside {
  padding: 22px;
  border-radius: 18px;
  background: #153f32;
  color: #fff;
}

.dashboard-summary-report > aside strong {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.dashboard-summary-report > aside p {
  margin: 8px 0 0;
  line-height: 1.65;
}

.dashboard-summary-report > details {
  margin-top: 18px;
}

.dashboard-summary-report > details summary {
  cursor: pointer;
  font-weight: 700;
}

.dashboard-summary-report > details p {
  color: var(--insight-muted);
  line-height: 1.65;
}

.dashboard-asklana {
  padding: clamp(28px, 6vw, 64px);
  text-align: center;
}

.dashboard-asklana .dashboard-lana-avatar {
  margin: 0 auto 18px;
}

.dashboard-ai-prompts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin: 24px auto;
}

.dashboard-ai-prompts span {
  padding: 9px 13px;
  border: 1px solid var(--insight-border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--insight-card) 86%, var(--insight-border));
  font-size: 0.84rem;
}

@media (max-width: 680px) {
  .dashboard-story-copy {
    grid-template-columns: 1fr;
  }

  .dashboard-summary-report > header {
    grid-template-columns: 1fr;
  }
}
.insight-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.insight-period > span {
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--insight-muted);
  font-size: 10px;
  margin-bottom: 5px;
}
.insight-period svg {
  width: 12px;
  height: 12px;
}
.insight-period strong {
  font-size: 12px;
  font-weight: 500;
}
.insight-filter-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}
.insight-filter-actions > select {
  margin: 0;
  font-size: 11px;
  width: 125px;
  border: 1px solid var(--insight-border);
  padding: 9px;
  background: var(--insight-card);
  color: var(--insight-ink);
}
.insight-filter-button {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--insight-border);
  background: var(--insight-card);
  border-radius: 7px;
  padding: 10px 13px;
  font-size: 11px;
}
.insight-filter-button svg {
  height: 13px;
  width: 13px;
}
.insight-filter-button.has-filters {
  color: #079474;
  border-color: #b1d8c3;
  background: #f1faf4;
}
.insight-filter-button b {
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 4px;
  background: #dbeee1;
}
.insight-filter-panel {
  display: none;
  margin-top: 15px;
}
.insight-filter-panel.is-open {
  display: block;
  animation: insight-arrive 0.2s ease;
}
.insight-filter-panel form {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 13px;
  padding: 20px;
  background: var(--insight-card);
  border: 1px solid var(--insight-border);
  border-radius: 10px;
  margin: 0;
}
.insight-filter-panel label {
  font-size: 10px;
  color: var(--insight-muted);
  margin: 0;
}
.insight-filter-panel input,
.insight-filter-panel select {
  font-size: 11px;
  padding: 10px;
  border-color: var(--insight-border);
  background: var(--insight-bg);
  color: var(--insight-ink);
  min-width: 0;
}
.filter-form-bottom {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 2px;
}
.filter-form-bottom > span {
  font-size: 10px;
  color: var(--insight-muted);
}
.filter-form-bottom .button {
  font-size: 10px;
  padding: 7px 11px;
}
.filter-error {
  grid-column: 1/-1;
  font-size: 11px;
  color: #b45555;
}
.filter-error:empty {
  display: none;
}
.active-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 15px 0 21px;
  min-height: 22px;
  font-size: 10px;
  color: var(--insight-muted);
}
.active-filter-row > div {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.active-filter-row strong {
  color: #50856f;
  font-weight: 600;
}
.all-messages-label {
  font-size: 9px;
}
.filter-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 7px;
  border-radius: 5px;
  background: #eaf3ed;
  color: #51856c;
  font-size: 9px;
  line-height: 1.3;
}
.filter-chip svg {
  height: 11px;
  width: 11px;
}
.clear-filters {
  font-size: 10px;
  color: #7c6f9d;
  padding: 3px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.insight-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
}
.insight-metric {
  background: var(--insight-card);
  border: 1px solid var(--insight-border);
  border-radius: 12px;
  padding: 17px 18px;
  box-shadow: var(--insight-shadow);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.insight-metric:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 18px;
  right: 18px;
  height: 2px;
  background: linear-gradient(90deg, var(--metric-accent), transparent);
  opacity: 0.32;
}
.insight-metric.green {
  --metric-accent: #00a884;
  --metric-tint: #eaf7ef;
}
.insight-metric.violet {
  --metric-accent: #9879cf;
  --metric-tint: #f1ecfa;
}
.insight-metric.blue {
  --metric-accent: #6b9bbb;
  --metric-tint: #edf4f9;
}
.insight-metric.peach {
  --metric-accent: #c7956c;
  --metric-tint: #fbf1e8;
}
.insight-metric[role="button"] {
  cursor: pointer;
}
.insight-metric:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px #23583a08;
}
.insight-metric > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: var(--insight-muted);
  gap: 8px;
}
.insight-metric > div > b {
  height: 29px;
  width: 29px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--metric-tint);
  color: var(--metric-accent);
}
.insight-metric svg {
  width: 15px;
  height: 15px;
}
.insight-metric > strong {
  font-size: 28px;
  display: block;
  line-height: 1.2;
  letter-spacing: -0.9px;
  font-weight: 650;
  margin: 8px 0;
}
.insight-metric > strong small {
  font-size: 12px;
  letter-spacing: 0;
  font-weight: 400;
}
.insight-metric > small {
  font-size: 9px;
  color: var(--insight-muted);
}
.insight-section-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 27px 0 13px;
}
.insight-section-label h2 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
.insight-section-label > span {
  font-size: 9px;
  color: var(--insight-muted);
}
.insight-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.insight-card {
  background: var(--insight-card);
  border: 1px solid var(--insight-border);
  border-radius: 13px;
  box-shadow: var(--insight-shadow);
  padding: 21px 23px;
  min-width: 0;
}
.insight-card-heading {
  display: flex;
  align-items: center;
  gap: 9px;
}
.insight-card-heading h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.2px;
}
.soft-icon {
  height: 29px;
  width: 29px;
  display: grid;
  place-items: center;
  background: #eaf5ee;
  color: #6da689;
  border-radius: 9px;
  flex-shrink: 0;
}
.soft-icon svg {
  height: 15px;
  width: 15px;
}
.soft-icon.lavender {
  background: #f2eef9;
  color: #a18bc1;
}
.soft-icon.peach {
  background: #fbf1e8;
  color: #bd956d;
}
.hint-button {
  margin-left: auto;
  color: var(--insight-muted);
  padding: 0;
  display: grid;
  place-items: center;
}
.hint-button svg {
  height: 13px;
  width: 13px;
}
.insight-card > p,
.insight-card-heading p {
  font-size: 10px;
  color: var(--insight-muted);
  margin-top: 9px;
  line-height: 1.7;
}
.initiation-split {
  display: grid;
  grid-template-columns: 1fr 42px 1fr;
  align-items: center;
  text-align: center;
  margin: 20px 0 15px;
}
.initiation-split > div > span {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  font-size: 10px;
}
.partner-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a087cf;
  flex-shrink: 0;
}
.initiation-split strong {
  display: block;
  font-size: 31px;
  font-weight: 550;
  letter-spacing: -1px;
  margin: 5px 0;
}
.initiation-split strong small {
  font-size: 15px;
  font-weight: 400;
  color: var(--insight-muted);
}
.initiation-split > div > small {
  font-size: 9px;
  color: var(--insight-muted);
}
.split-center {
  height: 36px;
  width: 36px;
  background: linear-gradient(135deg, #e6f2e9, #f0eafa);
  border: 4px solid var(--insight-card);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #98aaa1;
}
.split-center svg {
  width: 15px;
  height: 15px;
}
.insight-split-bar {
  height: 6px;
  border-radius: 6px;
  background: #b9a4dd;
  overflow: hidden;
}
.insight-split-bar > span {
  display: block;
  background: linear-gradient(90deg, #5dc9a6, #00a884);
  height: 100%;
  border-right: 3px solid var(--insight-card);
  border-radius: 6px;
}
.insight-card-foot {
  display: block;
  font-size: 9px;
  color: var(--insight-muted);
  margin-top: 12px;
  text-align: center;
}
.message-comparison {
  margin: 22px 0;
}
.message-comparison > div:not(.comparison-track) {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
}
.message-comparison b {
  margin-left: auto;
  font-weight: 600;
}
.message-comparison small {
  min-width: 27px;
  text-align: right;
  color: var(--insight-muted);
  font-size: 10px;
}
.comparison-track {
  height: 8px;
  background: #b9a4dd;
  border-radius: 5px;
  overflow: hidden;
  margin: 12px 0;
}
.comparison-track > b {
  display: block;
  margin: 0;
  height: 100%;
  background: #42b996;
  border-radius: 5px;
}
.reply-comparison {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--insight-border);
  padding-top: 17px;
  font-size: 9px;
  color: var(--insight-muted);
  flex-wrap: wrap;
}
.reply-comparison > span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.reply-comparison svg {
  height: 13px;
  width: 13px;
}
.reply-comparison strong {
  font-weight: 400;
}
.reply-comparison b {
  font-size: 15px;
  font-weight: 550;
  color: var(--insight-ink);
  margin-left: 4px;
}
.initiation-chart-card {
  margin-top: 18px;
  padding: 24px;
}
.initiation-chart-card > .insight-card-heading {
  justify-content: space-between;
  gap: 20px;
}
.initiation-chart-card h2 {
  font-size: 16px;
  margin-top: 8px;
}
.initiation-chart-card select {
  margin: 0;
  width: 145px;
  font-size: 10px;
  padding: 9px;
  background: var(--insight-bg);
  color: var(--insight-ink);
  border-color: var(--insight-border);
  flex-shrink: 0;
}
.initiation-chart-legend {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 10px;
  margin: 20px 0 15px;
}
.initiation-chart-legend > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.initiation-chart-legend small {
  margin-left: auto;
  font-size: 9px;
  color: var(--insight-muted);
}
.initiation-chart-wrap {
  height: 240px;
}
.initiation-selection {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 10px;
  color: var(--insight-muted);
  background: var(--insight-bg);
  padding: 10px 12px;
  border-radius: 6px;
  margin-top: 12px;
  min-height: 35px;
}
.initiation-selection svg {
  width: 12px;
  height: 12px;
}
.initiation-selection strong,
.initiation-selection b {
  font-weight: 500;
  color: var(--insight-ink);
}
.initiation-selection > span {
  margin-left: auto;
}
.session-list {
  margin-top: 13px;
}
.session-list > summary {
  font-size: 9px;
  color: #83a392;
  font-weight: 400;
}
.session-list svg {
  height: 12px;
  width: 12px;
}
.session-list .table-scroll {
  max-height: 260px;
  margin-top: 14px;
}
.session-list table {
  font-size: 10px;
}
.session-list th {
  position: sticky;
  top: 0;
  background: var(--insight-card);
  z-index: 1;
}
.session-list td {
  white-space: nowrap;
}
.empty-chart-note {
  font-size: 11px;
  color: var(--insight-muted);
  padding: 15px 0;
}
.insight-rhythm-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 18px;
  margin-top: 18px;
}
.insight-rhythm-grid .insight-card-heading {
  justify-content: space-between;
  align-items: flex-start;
}
.rhythm-chart {
  height: 174px;
  margin-top: 22px;
}
.insight-segment {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--insight-border);
  border-radius: 6px;
  background: var(--insight-bg);
}
.insight-segment > button {
  font-size: 8px;
  color: var(--insight-muted);
  padding: 4px 6px;
  border-radius: 4px;
}
.insight-segment > button.selected {
  background: var(--insight-card);
  color: #009f7c;
  box-shadow: 0 1px 5px #235b3808;
}
.insight-small-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 22px 0;
  padding: 8px 6px;
}
.insight-small-facts > div {
  display: flex;
  align-items: center;
  gap: 13px;
}
.insight-small-facts > div > svg {
  height: 19px;
  width: 19px;
  color: #98b5a5;
}
.insight-small-facts small {
  font-size: 10px;
  display: block;
  color: var(--insight-muted);
  margin-bottom: 5px;
}
.insight-small-facts strong {
  font-size: 15px;
  font-weight: 550;
}
.insight-small-facts em {
  font-size: 10px;
  color: var(--insight-muted);
  font-family: inherit;
  font-style: normal;
  font-weight: 400;
}
.insight-experience .chat-more {
  border-color: var(--insight-border);
}
.insight-experience .chat-more-content {
  background: var(--insight-card);
  border-color: var(--insight-border);
}
.insight-method-note {
  font-size: 9px;
  color: var(--insight-muted);
  text-align: center;
  margin-top: 20px;
}
.insight-method-note svg {
  width: 12px;
  height: 12px;
  margin-right: 5px;
}
.insight-no-results {
  padding: 70px 20px;
  text-align: center;
  background: var(--insight-card);
  border: 1px solid var(--insight-border);
  border-radius: 12px;
}
.insight-no-results > svg {
  height: 32px;
  width: 32px;
  color: #a0b8a9;
  margin-bottom: 18px;
}
.insight-no-results h2 {
  font-size: 22px;
  font-weight: 500;
}
.insight-no-results p {
  font-size: 12px;
  color: var(--insight-muted);
  margin: 12px 0 25px;
}
/* A floating rectangular prompt bar, not a corner widget. */
.insight-ai-bar {
  position: absolute;
  z-index: 5;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: min(550px, calc(100% - 45px));
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 18px;
  border-radius: 15px;
  text-align: left;
  color: #244d41;
  background: linear-gradient(105deg, #f9fffcf5, #f7f6fdf5);
  border: 1px solid #b6dac7;
  box-shadow:
    0 8px 35px #375c3520,
    0 0 0 4px #ffffff65;
  backdrop-filter: blur(16px);
  isolation: isolate;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
  animation: ai-edge-pulse 3s ease-in-out infinite;
}
.insight-ai-bar:before,
.insight-ai-bar:after {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  width: 2px;
  border-radius: 4px;
  filter: blur(0.4px);
  background: linear-gradient(transparent, #43bf98, transparent);
  animation: ai-side-pulse 2.8s ease-in-out infinite;
  pointer-events: none;
}
.insight-ai-bar:before {
  left: -1px;
}
.insight-ai-bar:after {
  right: -1px;
  background: linear-gradient(transparent, #b48dd8, transparent);
  animation-delay: 1.3s;
}
.insight-ai-bar:hover {
  transform: translate(-50%, -3px);
  box-shadow:
    0 12px 40px #24886429,
    0 0 0 4px #cbf1e149;
}
.ai-bar-orb {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, #e0f3e7, #e8ddf5);
  color: #5c997e;
  box-shadow: inset 0 1px 0 #fff;
}
.ai-bar-orb svg {
  height: 20px;
  width: 20px;
}
.insight-ai-bar > span:nth-child(2) {
  font-size: 13px;
  font-weight: 500;
  flex: 1;
}
.insight-ai-bar small {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 400;
  color: #83a292;
  margin-top: 6px;
}
.insight-ai-bar small b {
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.7px;
  background: #e8e6f1;
  color: #a08bbc;
  padding: 3px 5px;
  border-radius: 4px;
}
.ai-bar-arrow {
  height: 29px;
  width: 29px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e6f0e9;
  color: #65967c;
}
.ai-bar-arrow svg {
  width: 16px;
  height: 16px;
}
.insight-ai-dialog {
  border: 1px solid #d8e7df;
  border-radius: 22px;
  padding: 0;
  width: min(650px, calc(100vw - 32px));
  height: min(700px, 88dvh);
  max-height: 88dvh;
  background: #fcfefd;
  color: #244b40;
  box-shadow: 0 30px 130px #16352840;
  overflow: hidden;
  animation: ai-expand 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.insight-ai-dialog[open] {
  display: flex;
  flex-direction: column;
}
.insight-ai-dialog::backdrop {
  background: #12352c40;
  backdrop-filter: blur(9px);
  animation: backdrop-in 0.25s ease;
}
.insight-ai-dialog > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 25px;
  background: linear-gradient(110deg, #f0faf4, #f5f0fb);
  border-bottom: 1px solid #e6ede8;
  flex-shrink: 0;
}
.ai-dialog-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ai-dialog-brand > span {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #d9f0df, #e5d8f4);
  color: #6f9c83;
  display: grid;
  place-items: center;
}
.ai-dialog-brand h2 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.6px;
}
.ai-dialog-brand small {
  display: block;
  font-size: 10px;
  color: #8ca697;
  margin-top: 4px;
}
.ai-demo-disclosure {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 10px;
  color: #94a39c;
  background: #f8faf8;
  line-height: 1.5;
  flex-shrink: 0;
}
.ai-demo-disclosure > b {
  font-size: 8px;
  letter-spacing: 0.5px;
  font-weight: 500;
  white-space: nowrap;
  padding: 3px 5px;
  border-radius: 4px;
  background: #eee9f6;
  color: #9a86b7;
}
.ai-context {
  margin: 0 24px;
  padding: 13px 0;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid #edf1ee;
  font-size: 11px;
  font-weight: 500;
  color: #6c917a;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.ai-context > svg {
  height: 14px;
  width: 14px;
}
.ai-context > span {
  margin-left: auto;
  font-size: 9px;
  color: #a0afa6;
  font-weight: 400;
}
.ai-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 24px;
  scrollbar-width: thin;
  scrollbar-color: #c4d8cb transparent;
}
.ai-message {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 18px;
  animation: insight-arrive 0.24s ease-out;
}
.ai-message p {
  font-size: 12px;
  line-height: 1.85;
  padding: 13px 15px;
  border-radius: 0 12px 12px 12px;
  background: #f0f5f1;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #597062;
  max-width: 90%;
}
.ai-message.user {
  justify-content: flex-end;
}
.ai-message.user p {
  background: #e5f4e9;
  color: #427a59;
  border-radius: 12px 0 12px 12px;
}
.ai-message-avatar {
  height: 25px;
  width: 25px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e9eeef;
  color: #8fa295;
  flex-shrink: 0;
}
.ai-message-avatar svg {
  height: 13px;
  width: 13px;
}
.ai-prompts {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  padding: 0 24px 14px;
  flex-shrink: 0;
}
.ai-prompts > button {
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #e1eae3;
  border-radius: 7px;
  background: #fff;
  padding: 7px 9px;
  font-size: 9px;
  color: #8ba18f;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.ai-prompts > button:hover {
  background: #eff8f2;
  border-color: #a1c6af;
}
.ai-prompts svg {
  height: 11px;
  width: 11px;
}
.ai-compose {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 24px;
  padding: 8px 9px 8px 14px;
  border: 1px solid #c8dfd0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 0 0 3px #ecf6ee;
  flex-shrink: 0;
}
.ai-compose:focus-within {
  border-color: #81b89b;
  box-shadow: 0 0 0 3px #daf0e2;
}
.ai-compose input {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 5px 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  color: #315d48;
  font-size: 12px;
}
.ai-compose button {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, #219b73, #61b48a);
  color: white;
}
.ai-compose button svg {
  width: 17px;
  height: 17px;
}
.insight-ai-dialog > footer {
  padding: 13px 20px;
  font-size: 8px;
  color: #a1b1a6;
  text-align: center;
  flex-shrink: 0;
}
.insight-ai-dialog > footer svg {
  height: 10px;
  width: 10px;
  margin-right: 4px;
}
.ai-typing {
  font-size: 10px;
  color: #a2b5a8;
  margin: 8px 0 20px 34px;
  animation: typing-pulse 1s ease-in-out infinite;
}
.ai-citations {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: -6px 0 20px 34px;
  max-width: 90%;
}
.ai-citations > button {
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  border: 1px solid #cfe0d4;
  background: #f9fdf9;
  padding: 10px;
  border-radius: 9px;
  color: #69937b;
  transition:
    background 0.2s,
    transform 0.2s;
}
.ai-citations > button:hover {
  background: #eef8ef;
  transform: translateX(2px);
}
.ai-citations > button > svg {
  height: 14px;
  width: 14px;
  flex-shrink: 0;
}
.ai-citations > button > span {
  flex: 1;
  min-width: 0;
}
.ai-citations strong {
  display: block;
  font-size: 9px;
  font-weight: 500;
}
.ai-citations small {
  display: block;
  font-size: 10px;
  color: #97a69b;
  margin-top: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Inspect the actual conversation, one page at a time. */
.message-explorer {
  border: 1px solid var(--insight-border);
  border-radius: 13px;
  background: var(--insight-card);
  overflow: hidden;
}
.message-explorer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--insight-border);
  background: var(--insight-card);
}
.message-explorer-toolbar > label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  margin: 0;
}
.message-explorer-toolbar input {
  margin: 0;
  padding: 8px 0;
  border: 0;
  background: transparent;
  font-size: 11px;
  box-shadow: none;
  color: var(--insight-ink);
}
.message-explorer-toolbar svg {
  height: 15px;
  width: 15px;
  color: var(--insight-muted);
}
.message-explorer-toolbar > span {
  font-size: 10px;
  color: var(--insight-muted);
  white-space: nowrap;
}
.message-explorer-toolbar strong {
  color: var(--insight-ink);
  font-weight: 500;
}
.message-results {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding: 18px 28px 25px;
  background: radial-gradient(#b6ccbc24 0.8px, transparent 0.8px), #f0f6ef;
  background-size: 9px 9px;
  min-height: 320px;
}
.message-day {
  align-self: center;
  position: relative;
  margin: 14px 0;
  width: 100%;
  text-align: center;
}
.message-day span {
  font-size: 9px;
  color: #8a9f8b;
  background: #e7eee4;
  display: inline-block;
  padding: 6px 13px;
  border-radius: 6px;
}
.message-bubble {
  position: relative;
  background: #fff;
  padding: 11px 14px 7px;
  border-radius: 0 10px 10px 10px;
  box-shadow: 0 1px 2px #2850330b;
  max-width: 80%;
  min-width: 130px;
  outline: 0;
  transition: box-shadow 0.2s;
}
.message-bubble.sent {
  align-self: flex-end;
  background: #ddf4df;
  border-radius: 10px 0 10px 10px;
}
.message-bubble > strong {
  font-size: 10px;
  font-weight: 600;
  color: #7a9a82;
}
.message-bubble.sent > strong {
  color: #639b6e;
}
.message-bubble > p {
  font-size: 12px;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #415944;
  margin-top: 4px;
}
.message-bubble footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  font-size: 8px;
  color: #97ad98;
}
.message-bubble footer > span {
  margin-right: auto;
  text-transform: capitalize;
}
.message-bubble footer svg {
  width: 12px;
  height: 12px;
  color: #5dbaae;
}
.message-copy {
  position: absolute;
  top: 5px;
  right: 5px;
  opacity: 0;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: #f0f8f0;
  color: #8aa28d;
}
.message-copy svg {
  width: 12px;
  height: 12px;
}
.message-bubble:hover .message-copy,
.message-copy:focus-visible {
  opacity: 1;
}
.message-bubble.highlighted {
  outline: 2px solid #89caa0;
  outline-offset: 4px;
  animation: message-highlight 1.2s ease-in-out 2;
}
.message-bubble mark {
  background: #f5e9a2;
  color: inherit;
  border-radius: 2px;
}
.message-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--insight-card);
  border-top: 1px solid var(--insight-border);
}
.message-pagination button {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #6b9c7d;
  font-size: 11px;
}
.message-pagination button svg {
  width: 13px;
  height: 13px;
}
.message-pagination > span {
  font-size: 10px;
  color: var(--insight-muted);
}
.message-pagination button:disabled {
  opacity: 0.3;
  cursor: default;
}
.message-no-results {
  align-self: center;
  padding: 60px 10px;
  color: var(--insight-muted);
  font-size: 12px;
}
@keyframes insight-arrive {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes ai-edge-pulse {
  0%,
  100% {
    box-shadow:
      0 8px 35px #375c3520,
      0 0 0 3px #b9ead520;
  }
  50% {
    box-shadow:
      0 8px 35px #375c3520,
      0 0 0 5px #b8dddb25,
      0 0 23px #87d1b523;
  }
}
@keyframes ai-side-pulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scaleY(0.55);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}
@keyframes ai-expand {
  from {
    opacity: 0;
    transform: translateY(60px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes typing-pulse {
  50% {
    opacity: 0.4;
  }
}
@keyframes message-highlight {
  50% {
    box-shadow: 0 0 0 8px #8cceaa35;
  }
}
[data-theme="dark"] .chat-app {
  --insight-card: #172725;
  --insight-border: #2a3e37;
  --insight-muted: #89a49a;
  --insight-ink: #dcece2;
  --insight-bg: #101d1a;
  --insight-shadow: 0 3px 25px #00000008;
}
.chat-app[data-theme="dark"] {
  color-scheme: dark;
}
[data-theme="dark"] .chat-main {
  background: radial-gradient(ellipse at 95% 0, #50415d1c, transparent 45%), var(--insight-bg);
}
[data-theme="dark"] .chat-contact-header {
  background: #162421d9;
  border-color: var(--insight-border);
}
[data-theme="dark"] .chat-sidebar {
  background: #14221e;
}
[data-theme="dark"] .chat-rail {
  background: #1a2b24;
}
[data-theme="dark"] .rail-logo {
  background: #2a4639;
}
[data-theme="dark"] .chat-row.selected {
  background: linear-gradient(90deg, #1c3c2d, #1c2f27);
}
[data-theme="dark"] .chat-row.selected .chat-avatar {
  box-shadow: 0 0 0 3px #44695330;
}
[data-theme="dark"] .insight-metric > div > b {
  background: #263a31;
}
[data-theme="dark"] .insight-metric.violet > div > b {
  background: #362d44;
}
[data-theme="dark"] .insight-metric.blue > div > b {
  background: #25393e;
}
[data-theme="dark"] .insight-metric.peach > div > b {
  background: #3e342a;
}
[data-theme="dark"] .soft-icon {
  background: #264131;
}
[data-theme="dark"] .soft-icon.lavender {
  background: #352d42;
}
[data-theme="dark"] .soft-icon.peach {
  background: #3e342a;
}
[data-theme="dark"] .filter-chip,
[data-theme="dark"] .insight-view-tabs span {
  background: #263d2f;
  color: #a3bba8;
}
[data-theme="dark"] .insight-filter-button.has-filters {
  background: #244334;
  border-color: #436754;
}
[data-theme="dark"] .split-center {
  background: linear-gradient(135deg, #254334, #3c3347);
}
[data-theme="dark"] .insight-ai-bar {
  background: linear-gradient(110deg, #1c382bee, #302d3fee);
  color: #dcefe2;
  border-color: #496955;
  box-shadow:
    0 12px 35px #0004,
    0 0 0 4px #3f765329;
}
[data-theme="dark"] .ai-bar-orb {
  background: linear-gradient(135deg, #355e42, #534162);
  color: #a7c6b3;
  box-shadow: inset 0 1px 0 #ffffff10;
}
[data-theme="dark"] .ai-bar-arrow {
  background: #355140;
  color: #aac6b2;
}
[data-theme="dark"] .insight-ai-bar small b {
  background: #443751;
  color: #b5a1c8;
}
[data-theme="dark"] .insight-ai-dialog {
  background: #15251f;
  color: #dcece2;
  border-color: #3c5445;
}
[data-theme="dark"] .insight-ai-dialog > header {
  background: linear-gradient(110deg, #1d3528, #332a3c);
  border-color: #334b38;
}
[data-theme="dark"] .ai-dialog-brand > span {
  background: linear-gradient(135deg, #385b42, #4b3a5b);
}
[data-theme="dark"] .ai-demo-disclosure {
  background: #1d2c24;
  color: #88a28f;
}
[data-theme="dark"] .ai-demo-disclosure > b {
  background: #403248;
  color: #b9a4c7;
}
[data-theme="dark"] .ai-context {
  border-color: #2b3f30;
}
[data-theme="dark"] .ai-message p {
  background: #23372a;
  color: #b4c5b6;
}
[data-theme="dark"] .ai-message.user p {
  background: #294b33;
  color: #bdd8c2;
}
[data-theme="dark"] .ai-message-avatar {
  background: #304237;
}
[data-theme="dark"] .ai-prompts > button {
  background: #22372a;
  border-color: #344f3a;
  color: #94ae9b;
}
[data-theme="dark"] .ai-compose {
  background: #203628;
  border-color: #42674a;
  box-shadow: 0 0 0 3px #35573b30;
}
[data-theme="dark"] .ai-compose input {
  color: #c2d9c9;
}
[data-theme="dark"] .ai-citations > button {
  background: #213a2a;
  border-color: #3b5b41;
  color: #9abca2;
}
[data-theme="dark"] .ai-citations > button:hover {
  background: #2c4734;
}
[data-theme="dark"] .message-results {
  background-color: #14251b;
}
[data-theme="dark"] .message-bubble {
  background: #243a2c;
}
[data-theme="dark"] .message-bubble.sent {
  background: #325a3b;
}
[data-theme="dark"] .message-bubble > p {
  color: #c3d4c5;
}
[data-theme="dark"] .message-day span {
  background: #223829;
  color: #95ae9a;
}
[data-theme="dark"] .message-copy {
  background: #436a48;
  color: #cee2d0;
}
@media (max-width: 1200px) {
  .chat-app {
    grid-template-columns: 55px 260px minmax(0, 1fr);
  }
  .insight-experience {
    padding: 28px 25px 120px;
  }
  .insight-metric {
    padding: 15px 13px;
  }
  .insight-metric > strong {
    font-size: 25px;
  }
  .insight-metric > div {
    font-size: 9px;
  }
  .insight-metric > small {
    font-size: 8px;
  }
  .insight-card {
    padding: 20px;
  }
  .insight-rhythm-grid {
    grid-template-columns: 1fr 1fr;
  }
  .insight-filter-panel form {
    grid-template-columns: 1fr 1fr;
  }
  .initiation-chart-card h2 {
    font-size: 14px;
  }
  .loaded-indicator {
    padding: 10px;
    font-size: 10px;
  }
  .insight-small-facts {
    gap: 10px;
  }
  .insight-small-facts > div {
    gap: 8px;
  }
  .insight-small-facts small {
    font-size: 9px;
  }
}
@media (max-width: 950px) and (min-width: 701px) {
  .chat-app {
    grid-template-columns: 48px 228px minmax(0, 1fr);
  }
  .insight-experience {
    padding-inline: 19px;
  }
  .insight-heading {
    align-items: flex-start;
  }
  .insight-heading h1 {
    font-size: 28px;
  }
  .loaded-indicator {
    font-size: 9px;
    max-width: 139px;
  }
  .loaded-indicator > svg {
    display: none;
  }
  .insight-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .insight-comparison-grid,
  .insight-rhythm-grid {
    grid-template-columns: 1fr;
  }
  .initiation-chart-card > .insight-card-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .initiation-chart-card select {
    width: 100%;
  }
  .insight-small-facts {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .insight-ai-bar > span:nth-child(2) {
    font-size: 11px;
  }
  .active-filter-row {
    align-items: flex-start;
  }
  .active-filter-row > span {
    min-width: 110px;
  }
  .insight-period strong {
    font-size: 10px;
  }
  .insight-filter-actions > select {
    width: 104px;
    font-size: 10px;
  }
  .insight-filter-button {
    padding: 9px;
    font-size: 10px;
  }
}
@media (max-width: 700px) {
  .chat-app {
    grid-template-columns: 1fr;
  }
  .insight-experience {
    padding: 24px 16px 116px;
  }
  .insight-heading {
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 23px;
  }
  .insight-heading h1 {
    font-size: 27px;
    gap: 7px;
    letter-spacing: -0.9px;
    flex-wrap: wrap;
  }
  .heading-spark {
    display: none;
  }
  .insight-eyebrow {
    font-size: 7px;
    letter-spacing: 1.3px;
  }
  .insight-heading p {
    font-size: 10px;
  }
  .loaded-indicator {
    padding: 8px;
    gap: 4px;
    font-size: 9px;
    margin-top: 4px;
    max-width: 134px;
    flex-shrink: 0;
  }
  .loaded-indicator > svg {
    height: 13px;
    width: 13px;
  }
  .loaded-indicator small {
    font-size: 8px;
  }
  .insight-view-tabs {
    gap: 23px;
    margin-bottom: 18px;
  }
  .insight-view-tabs button {
    font-size: 11px;
  }
  .insight-toolbar {
    gap: 10px;
  }
  .insight-period > span {
    font-size: 9px;
  }
  .insight-period strong {
    font-size: 10px;
    display: block;
    max-width: 150px;
    line-height: 1.6;
  }
  .insight-filter-actions {
    gap: 6px;
  }
  .insight-filter-actions > select {
    width: 108px;
    font-size: 10px;
    padding: 8px;
  }
  .insight-filter-button {
    font-size: 10px;
    padding: 9px;
    gap: 5px;
  }
  .insight-filter-button svg {
    width: 12px;
    height: 12px;
  }
  .insight-filter-panel form {
    padding: 16px;
    gap: 12px;
    grid-template-columns: 1fr 1fr;
  }
  .insight-filter-panel input,
  .insight-filter-panel select {
    font-size: 10px;
    padding: 9px 7px;
    width: 100%;
  }
  .filter-form-bottom {
    align-items: flex-end;
  }
  .filter-form-bottom > span {
    font-size: 9px;
    max-width: 170px;
  }
  .active-filter-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 9px;
    margin: 14px 0 18px;
  }
  .active-filter-row > div {
    justify-content: flex-start;
  }
  .all-messages-label {
    display: none;
  }
  .insight-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .insight-metric {
    padding: 15px;
  }
  .insight-metric > div {
    font-size: 10px;
  }
  .insight-metric > strong {
    font-size: 27px;
  }
  .insight-metric > small {
    font-size: 9px;
  }
  .insight-section-label {
    margin-top: 25px;
  }
  .insight-section-label h2 {
    font-size: 13px;
  }
  .insight-section-label > span {
    font-size: 8px;
  }
  .insight-comparison-grid,
  .insight-rhythm-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .insight-card {
    padding: 20px;
  }
  .insight-card-heading h2 {
    font-size: 14px;
  }
  .insight-card > p {
    font-size: 11px;
  }
  .initiation-split {
    margin: 22px 0 18px;
  }
  .initiation-split strong {
    font-size: 34px;
  }
  .initiation-split > div > span {
    font-size: 11px;
  }
  .initiation-split > div > small {
    font-size: 10px;
  }
  .message-comparison > div:not(.comparison-track) {
    font-size: 12px;
  }
  .message-comparison small {
    font-size: 11px;
  }
  .reply-comparison {
    font-size: 10px;
  }
  .insight-card-foot {
    font-size: 9px;
  }
  .initiation-chart-card {
    margin-top: 16px;
    padding: 19px 15px;
  }
  .initiation-chart-card > .insight-card-heading {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .initiation-chart-card h2 {
    font-size: 15px;
    line-height: 1.4;
    margin-top: 9px;
  }
  .initiation-chart-card select {
    width: 100%;
    font-size: 11px;
    padding: 10px;
  }
  .initiation-chart-wrap {
    height: 235px;
  }
  .initiation-chart-legend {
    font-size: 10px;
    gap: 13px;
  }
  .initiation-chart-legend small {
    font-size: 8px;
  }
  .initiation-selection {
    font-size: 9px;
    line-height: 1.65;
    gap: 4px;
  }
  .initiation-selection > span {
    margin-left: 0;
    width: 100%;
  }
  .session-list > summary {
    font-size: 10px;
  }
  .insight-rhythm-grid {
    margin-top: 14px;
  }
  .rhythm-chart {
    height: 170px;
  }
  .insight-small-facts {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 6px 10px;
  }
  .insight-small-facts > div {
    gap: 13px;
  }
  .insight-small-facts > div > span {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    gap: 10px;
  }
  .insight-small-facts small {
    font-size: 11px;
    margin: 0;
  }
  .insight-small-facts strong {
    font-size: 14px;
  }
  .insight-small-facts em {
    font-size: 9px;
  }
  .insight-method-note {
    font-size: 8px;
    line-height: 1.8;
  }
  .insight-ai-bar {
    bottom: max(15px, env(safe-area-inset-bottom));
    padding: 12px 13px;
    gap: 10px;
    width: calc(100% - 26px);
    border-radius: 13px;
  }
  .insight-ai-bar > span:nth-child(2) {
    font-size: 11px;
  }
  .insight-ai-bar small {
    font-size: 9px;
    margin-top: 5px;
  }
  .ai-bar-orb {
    height: 34px;
    width: 34px;
  }
  .ai-bar-orb svg {
    height: 18px;
    width: 18px;
  }
  .ai-bar-arrow {
    height: 25px;
    width: 25px;
  }
  .insight-ai-dialog {
    width: calc(100vw - 20px);
    height: 86dvh;
    max-height: 86dvh;
    border-radius: 17px;
  }
  .insight-ai-dialog > header {
    padding: 18px;
  }
  .ai-dialog-brand h2 {
    font-size: 18px;
  }
  .ai-dialog-brand small {
    font-size: 9px;
  }
  .ai-demo-disclosure {
    padding: 11px 17px;
    font-size: 9px;
    align-items: flex-start;
  }
  .ai-context {
    margin: 0 18px;
    font-size: 10px;
    gap: 6px;
  }
  .ai-context > span {
    width: 100%;
    margin-left: 20px;
    font-size: 8px;
  }
  .ai-messages {
    padding: 18px 14px;
  }
  .ai-message p {
    font-size: 12px;
    padding: 11px 12px;
    max-width: 89%;
  }
  .ai-message {
    gap: 7px;
  }
  .ai-message-avatar {
    height: 22px;
    width: 22px;
  }
  .ai-prompts {
    padding: 0 15px 13px;
    gap: 6px;
  }
  .ai-prompts > button {
    font-size: 8px;
    padding: 6px 7px;
  }
  .ai-compose {
    margin: 0 16px;
    padding: 8px 8px 8px 12px;
  }
  .ai-compose input {
    font-size: 12px;
  }
  .insight-ai-dialog > footer {
    font-size: 7px;
    padding: 11px 14px;
  }
  .ai-citations {
    margin-left: 29px;
    max-width: 89%;
  }
  .ai-citations > button {
    padding: 9px;
    gap: 6px;
  }
  .ai-citations strong {
    font-size: 8px;
    line-height: 1.5;
  }
  .ai-citations small {
    font-size: 9px;
  }
  .message-explorer-toolbar {
    padding: 13px;
    flex-wrap: wrap;
    gap: 4px;
  }
  .message-explorer-toolbar > label {
    flex-basis: 100%;
  }
  .message-explorer-toolbar input {
    font-size: 11px;
  }
  .message-explorer-toolbar > span {
    font-size: 9px;
    margin-left: 23px;
  }
  .message-results {
    padding: 12px 14px 22px;
  }
  .message-bubble {
    max-width: 88%;
    padding: 10px 12px 7px;
  }
  .message-bubble > p {
    font-size: 12px;
  }
  .message-copy {
    opacity: 1;
  }
  .message-pagination {
    padding: 14px 11px;
  }
  .message-pagination button {
    font-size: 10px;
  }
  .message-pagination > span {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .insight-experience,
  .insight-ai-bar,
  .insight-ai-bar:before,
  .insight-ai-bar:after,
  .insight-ai-dialog,
  .insight-ai-dialog::backdrop,
  .ai-message,
  .ai-typing,
  .message-bubble.highlighted {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.chat-update-area {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}
.chat-latest {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 10px;
  color: var(--muted);
}
.chat-latest strong {
  font-size: 11px;
  font-weight: 550;
  color: var(--text);
}
.update-chat-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  transition:
    background 0.2s,
    transform 0.2s;
}
.update-chat-button:hover {
  background: var(--surface-soft);
  transform: translateY(-1px);
}
.update-chat-button svg {
  width: 14px;
  height: 14px;
}
@media (max-width: 1100px) {
  .chat-update-area {
    gap: 8px;
  }
  .update-chat-button {
    max-width: 126px;
    padding: 9px;
  }
}
@media (max-width: 700px) {
  .chat-contact-header {
    flex-wrap: wrap;
    height: auto;
    min-height: 68px;
    padding-block: 12px;
  }
  .chat-contact-copy {
    flex: 1;
  }
  .chat-update-area {
    order: 3;
    width: 100%;
    border-top: 1px solid var(--border);
    padding-top: 10px;
    justify-content: space-between;
  }
  .chat-latest {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
  .chat-latest strong {
    font-size: 10px;
  }
  .update-chat-button {
    max-width: 140px;
    font-size: 10px;
    padding: 8px;
  }
  .chat-update-area + .chat-menu {
    margin-left: 0;
  }
}
