:root {
  color-scheme: light;
  font-family: "Avenir Next", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --brand-navy-950: #0f1f4d;
  --brand-navy-900: #132959;
  --brand-navy-800: #1f4a74;
  --brand-cyan-500: #34b9c6;
  --brand-cyan-400: #59d6d8;
  --brand-cyan-200: #d8f4f5;
  --panel-bg: #ffffff;
  --panel-border: #d3deeb;
  --text-main: #132959;
  --text-muted: #49617f;
  --accent: var(--brand-cyan-500);
  --accent-soft: var(--brand-cyan-200);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at top left, #eff9fc 0%, #f3f7fc 45%, #eaf0f8 100%);
  color: var(--text-main);
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  transition: grid-template-columns 220ms ease;
}

.app-shell-collapsed {
  grid-template-columns: 88px minmax(0, 1fr);
}

.app-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid #d4dfeb;
  background: linear-gradient(180deg, #f9fcff 0%, #f3f8ff 100%);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition:
    padding 220ms ease,
    width 220ms ease;
}

.app-sidebar-collapsed {
  padding-inline: 10px;
}

.app-sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.app-sidebar-brand-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-brand {
  display: inline-flex;
  align-items: center;
  flex: 1 1 auto;
  padding: 8px 10px 6px;
  color: var(--brand-navy-950);
  text-decoration: none;
  border-radius: 10px;
}

.app-brand-logo-frame {
  display: inline-flex;
  align-items: center;
  max-width: 186px;
  overflow: hidden;
  transition: max-width 220ms ease;
}

.app-brand:hover {
  background: #eef5ff;
}

.app-brand-logo-svg {
  width: 186px;
  height: auto;
  display: block;
}

.app-sidebar-toggle {
  width: 36px;
  height: 36px;
  border: 1px solid #bed0e6;
  border-radius: 10px;
  background: #f7fbff;
  color: #18365f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.app-sidebar-toggle:hover {
  background: #eef5ff;
  border-color: #aecded;
}

.app-sidebar-toggle:active {
  transform: translateY(1px);
}

.app-sidebar-toggle svg {
  width: 16px;
  height: 16px;
}

.app-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.app-sidebar-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  padding: 10px 12px;
  color: #19345d;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.15s ease;
}

.app-sidebar-link-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: inherit;
}

.app-sidebar-link-icon svg {
  width: 18px;
  height: 18px;
}

.app-sidebar-link-label {
  min-width: 0;
  white-space: nowrap;
}

.app-sidebar-link:hover {
  background: #edf4ff;
}

.app-sidebar-link-active,
.app-sidebar-link-active:hover {
  background: linear-gradient(135deg, #e5f5f8 0%, #e7efff 100%);
  color: var(--brand-navy-950);
  border: 1px solid #b8d3f0;
}

.app-sidebar-bottom {
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-sidebar-action-button,
.app-sidebar-action-link,
.app-sidebar-profile-link {
  width: 100%;
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  min-height: 40px;
  border: 1px solid #bed0e6;
  border-radius: 10px;
  background: #f7fbff;
  color: #19345d;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0 12px;
}

.app-sidebar-action-button {
  cursor: pointer;
}

.app-sidebar-action-button:hover,
.app-sidebar-action-link:hover,
.app-sidebar-profile-link:hover {
  background: #eef5ff;
}

.app-sidebar-profile-link {
  min-height: 46px;
  gap: 10px;
}

.app-sidebar-collapsed .app-brand-logo-frame {
  max-width: 42px;
}

.app-sidebar-collapsed .app-sidebar-nav,
.app-sidebar-collapsed .app-sidebar-bottom {
  align-items: center;
}

.app-sidebar-collapsed .app-sidebar-link,
.app-sidebar-collapsed .app-sidebar-action-link,
.app-sidebar-collapsed .app-sidebar-profile-link {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

.app-sidebar-collapsed .app-sidebar-link {
  width: 100%;
}

.app-sidebar-collapsed .app-sidebar-link-label,
.app-sidebar-collapsed .app-sidebar-profile-name {
  display: none;
}

.app-sidebar-collapsed .app-sidebar-profile-link {
  min-width: 0;
}

.app-sidebar-profile-name {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-avatar {
  width: 34px;
  height: 34px;
  position: relative;
  border-radius: 999px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid #9cc9e5;
  background: linear-gradient(135deg, #dff5f8 0%, #dbeafe 100%);
  color: #12355d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
}

.user-avatar-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.user-avatar-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transform: translateY(1px);
  text-transform: uppercase;
}

.app-content {
  min-width: 0;
  padding: 12px 18px 24px;
}

.public-site-shell {
  min-height: 100vh;
}

main {
  margin: 0 auto;
  max-width: 760px;
  min-height: calc(100vh - 36px);
  padding: 20px 22px;
}

.public-site-main {
  max-width: 1320px;
  min-height: auto;
  padding: 28px 22px 40px;
}

.public-site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.public-brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.public-brand-logo {
  width: min(250px, 48vw);
}

.public-header-actions,
.public-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.public-secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  text-decoration: none;
  font-weight: 700;
  border-radius: 10px;
}

.public-hero-panel {
  padding: 26px;
  margin-bottom: 18px;
  background:
    radial-gradient(circle at top right, rgba(52, 185, 198, 0.18) 0%, rgba(52, 185, 198, 0) 38%),
    linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
}

.public-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
  gap: 18px;
}

.public-kicker,
.public-card-kicker,
.public-proof-kicker {
  margin: 0 0 10px;
  color: #11759b;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.public-hero-copy h1,
.public-auth-panel h1 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.06;
}

.public-auth-panel h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.public-hero-lead {
  max-width: 70ch;
  font-size: 1.02rem;
  line-height: 1.65;
}

.public-auth-pill {
  width: fit-content;
  margin-bottom: 0;
}

.public-chip-row {
  margin-top: 16px;
}

.public-proof-card,
.public-value-card,
.public-signup-panel,
.public-auth-panel {
  padding: 20px;
}

.public-proof-card {
  border: 1px solid #dbe3ef;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef7ff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.public-proof-card h2,
.public-value-card h2,
.public-signup-panel h2 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.public-proof-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: #334a66;
}

.public-value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.public-value-card {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.public-signup-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.public-auth-page {
  max-width: 880px;
}

.public-auth-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.public-auth-form,
.public-signup-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.public-form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #143567;
  font-weight: 700;
}

.public-form-field input {
  min-height: 44px;
  border: 1px solid #cbd8e7;
  border-radius: 12px;
  background: #fbfdff;
  padding: 0 14px;
  color: #143567;
  font: inherit;
}

.public-form-field input::placeholder {
  color: #7b8ea6;
}

.public-wireframe-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.public-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.public-nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.public-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  color: #19345d;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
}

.public-nav-link-active,
.public-nav-link-active:hover {
  background: linear-gradient(135deg, #e5f5f8 0%, #edf3ff 100%);
  color: #143567;
  box-shadow: inset 0 0 0 1px #b8d3f0;
}

.public-nav-link:hover {
  background: rgba(227, 238, 250, 0.8);
}

.public-signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.public-signal-pill {
  margin: 0;
}

.public-stage-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.public-stage-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.public-stage-tab {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #d3dfef;
  background: rgba(255, 255, 255, 0.72);
  color: #4a607d;
  font-size: 0.84rem;
  font-weight: 700;
}

.public-stage-tab-active {
  border-color: #abd3ef;
  background: linear-gradient(135deg, #e5f5f8 0%, #edf3ff 100%);
  color: #143567;
}

.public-stage-card {
  border: 1px solid #dbe3ef;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(242, 248, 255, 0.96) 100%);
  padding: 20px;
  box-shadow:
    0 20px 40px rgba(19, 41, 89, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.public-stage-card h2,
.public-stat-card h3,
.public-library-card h3,
.public-process-card h3,
.public-audience-card h3,
.public-faq-card h3,
.public-value-card h3 {
  margin: 0 0 10px;
  color: #102755;
  font-size: 1.04rem;
  line-height: 1.35;
}

.public-stage-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.public-stage-meta .status-pill {
  margin: 0;
}

.public-stage-steps {
  display: grid;
  gap: 10px;
}

.public-stage-step {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border: 1px solid #dfe8f3;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  padding: 12px 13px;
  color: #38516d;
  font-size: 0.93rem;
}

.public-stage-step strong {
  color: #153661;
}

.public-proof-band,
.public-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.public-page-hero {
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(52, 185, 198, 0.12) 0%, rgba(52, 185, 198, 0) 42%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.public-page-hero h1 {
  margin: 0 0 12px;
}

.public-page-lead {
  max-width: 72ch;
  font-size: 1rem;
  line-height: 1.65;
}

.public-section-heading h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  line-height: 1.12;
  color: #102755;
}

.public-section-heading .meta {
  max-width: 76ch;
}

.public-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.public-overview-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
  padding: 20px;
  color: inherit;
  text-decoration: none;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.public-overview-card:hover {
  transform: translateY(-2px);
  border-color: #bfd5eb;
  background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.public-overview-card h3 {
  margin: 0;
  color: #102755;
  font-size: 1.03rem;
  line-height: 1.35;
}

.public-overview-link {
  margin-top: auto;
  color: #15608d;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.public-stat-grid,
.public-library-grid,
.public-process-grid,
.public-audience-grid,
.public-faq-grid {
  display: grid;
  gap: 16px;
}

.public-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.public-stat-card,
.public-library-card,
.public-process-card,
.public-audience-card,
.public-faq-card {
  padding: 18px;
}

.public-stat-value {
  margin: 0 0 8px;
  color: #0e3b63;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.public-library-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.public-library-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: #425875;
}

.public-content-section {
  margin-top: 2px;
}

.public-content-panel {
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(216, 244, 245, 0.55) 0%, rgba(235, 243, 255, 0.92) 40%, #ffffff 100%);
}

.public-source-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.public-source-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid #b9d7ea;
  background: rgba(255, 255, 255, 0.86);
  color: #18426a;
  font-size: 0.9rem;
  font-weight: 700;
}

.public-process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.public-process-step {
  margin: 0 0 10px;
  color: #0f6a8a;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.public-audience-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.public-audience-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.public-faq-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.public-faq-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.public-final-cta {
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(52, 185, 198, 0.22) 0%, rgba(52, 185, 198, 0) 42%),
    linear-gradient(180deg, #ffffff 0%, #f5faff 100%);
}

.call-page {
  max-width: 1320px;
  min-height: auto;
  display: grid;
  gap: 16px;
  align-content: start;
}

.call-hero {
  margin-bottom: 0;
}

.call-setup-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(52, 185, 198, 0.12) 0%, rgba(52, 185, 198, 0) 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 250, 255, 0.94) 100%);
}

.call-setup-hero-copy {
  max-width: 760px;
}

.call-setup-hero-copy .meta {
  margin-bottom: 0;
}

.call-setup-hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.call-page-live {
  gap: 12px;
}

.call-setup-hero-live {
  padding: 14px 18px;
  align-items: center;
}

.call-setup-hero-live h1 {
  margin-bottom: 6px;
  font-size: 1.28rem;
}

.call-setup-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr);
  gap: 16px;
  align-items: start;
}

.call-setup-mobile-summary {
  display: none;
  padding: 0;
  overflow: hidden;
}

.call-setup-mobile-summary-details {
  display: block;
}

.call-setup-mobile-summary-details summary {
  list-style: none;
}

.call-setup-mobile-summary-details summary::-webkit-details-marker {
  display: none;
}

.call-setup-mobile-summary-trigger {
  display: grid;
  gap: 12px;
  padding: 16px;
  cursor: pointer;
}

.call-setup-mobile-summary-head h3 {
  margin: 0 0 6px;
}

.call-setup-mobile-summary-head .meta {
  margin: 0;
}

.call-setup-mobile-summary-toggle {
  justify-self: flex-start;
  color: #17355d;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  background: #f8fbff;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 700;
}

.call-setup-mobile-summary-details[open] .call-setup-mobile-summary-toggle {
  background: #eff6ff;
  border-color: #bfd5eb;
}

.call-setup-mobile-summary-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.call-setup-mobile-summary-preview .status-pill {
  max-width: 100%;
}

.call-setup-mobile-summary-body {
  display: grid;
  gap: 14px;
  padding: 0 16px 16px;
  border-top: 1px solid #edf2f7;
}

.call-setup-mobile-summary-support {
  padding-top: 14px;
  border-top: 1px solid #edf2f7;
}

.call-setup-mobile-summary-support .meta {
  margin: 0 0 10px;
}

.call-setup-head {
  align-items: center;
}

.call-setup-head-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

h1 {
  margin: 0 0 12px;
  font-size: 1.5rem;
  font-family: "Trebuchet MS", "Avenir Next", sans-serif;
  letter-spacing: 0.3px;
}

.setup {
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  background: var(--panel-bg);
  padding: 16px;
  margin-bottom: 16px;
}

.setup-panel,
.ready-panel {
  overflow: hidden;
  transform-origin: top;
  max-height: 1800px;
  opacity: 1;
  transform: translateY(0);
  transition:
    max-height 320ms ease,
    opacity 220ms ease,
    transform 220ms ease,
    margin-bottom 220ms ease,
    padding 220ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.setup-panel-collapsed,
.ready-panel-collapsed {
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  margin-bottom: 0;
  padding: 0;
  border-color: transparent;
  box-shadow: none;
  pointer-events: none;
}

.panel {
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  background: var(--panel-bg);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  animation: panel-enter 260ms ease-out;
}

@keyframes panel-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.controls {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.setup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.setup-grid-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.setup-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 4px 0 8px;
}

.setup-mode-card {
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #ffffff;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
}

.setup-mode-card strong {
  color: #0f172a;
  font-size: 0.9rem;
}

.setup-mode-card small {
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.35;
}

.setup-mode-card-active {
  border-color: #84ccff;
  background: #f0f9ff;
  box-shadow: inset 0 0 0 1px #bae6fd;
}

.setup-wizard-steps {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.setup-wizard-step {
  min-width: 0;
  display: flex;
}

.setup-wizard-step-trigger {
  width: 100%;
  height: 100%;
  min-height: 124px;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  padding: 12px 12px 10px;
  text-align: left;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  grid-template-areas:
    "index text"
    ". ."
    "status status";
  grid-template-rows: auto 1fr auto;
  gap: 6px 8px;
  align-items: start;
  transition:
    border-color 0.16s ease,
    background-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.setup-wizard-step-trigger:hover:not([disabled]) {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(20, 53, 103, 0.06);
}

.setup-wizard-step-index {
  grid-area: index;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid #d1d9e8;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #334155;
  background: #f8fafc;
}

.setup-wizard-step-text {
  grid-area: text;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.setup-wizard-step-text strong {
  color: #1f2937;
  font-size: 0.78rem;
  line-height: 1.2;
}

.setup-wizard-step-text small {
  color: #64748b;
  font-size: 0.7rem;
  line-height: 1.2;
}

.setup-wizard-step-status {
  grid-area: status;
  color: #64748b;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

.setup-wizard-step-done .setup-wizard-step-trigger {
  border-color: #86efac;
  background: #ecfdf3;
}

.setup-wizard-step-done .setup-wizard-step-index {
  border-color: #34d399;
  background: #d1fae5;
  color: #065f46;
}

.setup-wizard-step-active .setup-wizard-step-trigger {
  border-color: #93c5fd;
  background: linear-gradient(135deg, #eef7ff 0%, #f5fbff 100%);
  box-shadow: 0 12px 20px rgba(29, 78, 216, 0.08);
}

.setup-wizard-step-active .setup-wizard-step-index {
  border-color: #60a5fa;
  background: #dbeafe;
  color: #1d4ed8;
}

.setup-wizard-body {
  border: 1px solid #e5eaf3;
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
  padding: 18px;
  margin-bottom: 14px;
}

.setup-wizard-body h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.setup-wizard-controls {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #edf2f7;
}

.setup-mobile-action-bar {
  display: none;
}

.call-step-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 6px;
}

.call-step-head-copy {
  min-width: 0;
}

.call-step-kicker {
  margin: 0 0 6px;
  color: #11759b;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.call-setup-side {
  padding: 18px;
  position: sticky;
  top: 12px;
}

.call-setup-side-section + .call-setup-side-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #edf2f7;
}

.call-setup-side-kicker {
  margin: 0 0 8px;
  color: #11759b;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.call-setup-side-section h3 {
  margin: 0 0 8px;
}

.call-setup-summary-list {
  display: grid;
  gap: 6px;
}

.call-setup-summary-list .meta {
  margin: 0;
}

.call-setup-side-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.setup-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin-bottom: 12px;
}

.setup-review-grid .meta {
  margin: 0;
}

.setup-review-action {
  border-style: dashed;
  border-color: #d6deeb;
  background: #ffffff;
}

.setup-review-action h3 {
  margin: 0 0 6px;
}

.customer-brief {
  border-top: 1px solid #e8ebf2;
  margin-top: 8px;
  padding-top: 14px;
}

.customer-brief-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.customer-brief-head h3 {
  margin: 0;
}

.customer-brief h3,
.customer-brief-card h3 {
  margin: 0 0 8px;
  font-size: 0.98rem;
  font-family: "Trebuchet MS", "Avenir Next", sans-serif;
  letter-spacing: 0.18px;
}

.brief-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.brief-field-wide {
  grid-column: 1 / -1;
}

.brief-grid textarea {
  min-height: 64px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

select {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 8px;
  background: #fff;
}

select:disabled {
  background: #f3f4f6;
  color: #6b7280;
}

input:not([type="file"]) {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 8px;
  background: #fff;
}

input:disabled:not([type="file"]),
textarea:disabled {
  background: #f3f4f6;
  color: #6b7280;
}

input[readonly] {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 8px;
  background: #f9fafb;
  color: #374151;
}

button {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  padding: 8px 12px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

button:hover:not([disabled]) {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.12);
}

button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.primary-button {
  border-color: #1c5b82;
  background: linear-gradient(135deg, #133a63 0%, #1c5b82 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 10px 18px rgba(19, 41, 89, 0.14);
}

.primary-button:hover:not([disabled]) {
  border-color: #154e73;
  background: linear-gradient(135deg, #123457 0%, #154e73 100%);
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(19, 41, 89, 0.18);
}

.button-danger-primary {
  border-color: #dc2626;
  background: #dc2626;
  color: #ffffff;
  font-weight: 600;
}

.button-danger-primary:hover:not([disabled]) {
  border-color: #b91c1c;
  background: #b91c1c;
}

.transcript {
  padding: 16px;
  margin-bottom: 16px;
}

.score {
  padding: 16px;
  margin-top: 0;
}

.score-panel-live {
  padding: 14px;
}

.score-head-live {
  align-items: flex-start;
  gap: 12px;
}

.score-trend-card {
  border: 1px solid #e3e8f2;
  border-radius: 10px;
  background: #f8fafc;
  padding: 10px 12px 12px;
  margin-bottom: 12px;
}

.score-trend-card-compact {
  padding: 10px;
  margin-bottom: 10px;
}

.score-trend-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 8px;
}

.score-trend-meta-compact {
  gap: 6px 12px;
}

.score-trend-meta .meta {
  margin: 0;
}

.score-trend-wrap {
  width: 100%;
  overflow-x: auto;
}

.score-trend-svg {
  display: block;
  width: 100%;
  min-width: 620px;
  max-width: 100%;
}

.score-trend-grid-line {
  stroke: #d7e0ec;
  stroke-width: 1;
}

.score-trend-axis-line {
  stroke: #b9c5d8;
  stroke-width: 1.15;
}

.score-trend-axis-label {
  fill: #475569;
  font-size: 11px;
  text-anchor: end;
}

.score-trend-axis-label-x {
  text-anchor: middle;
}

.score-trend-grid-line-x {
  stroke-dasharray: 4 3;
}

.score-trend-series-line {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.score-trend-final-point {
  stroke: #ffffff;
  stroke-width: 1;
}

.score-trend-legend {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.score-trend-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #334155;
  font-size: 0.8rem;
  border: 1px solid #d8dee9;
  border-radius: 999px;
  padding: 3px 8px;
  background: #ffffff;
}

.score-trend-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
}

.voice {
  padding: 16px;
  margin-bottom: 16px;
}

.voice-panel-live {
  padding: 14px;
}

.translation-pane {
  border: 1px solid #e7d8ba;
  border-radius: 10px;
  background: #fffaf1;
  padding: 12px;
  margin-top: 12px;
}

.session-recording-card {
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #f8fafc;
  padding: 12px;
  margin-top: 12px;
}

.live-call-head {
  align-items: flex-start;
}

.live-call-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.live-call-title-group h2,
.live-call-title-group .meta {
  margin: 0;
}

.live-call-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.78fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
}

.live-call-grid-live {
  grid-template-columns: minmax(0, 2.05fr) minmax(220px, 0.72fr);
  margin-bottom: 0;
}

.live-call-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.live-call-side-live {
  gap: 8px;
}

.call-timer-card {
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 8px 10px;
  width: 100%;
}

.call-timer-card-normal {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #eff6ff 0%, #f8fbff 100%);
}

.call-timer-card-warning {
  border-color: #fcd34d;
  background: linear-gradient(180deg, #fffbeb 0%, #fff7ed 100%);
}

.call-timer-card-urgent {
  border-color: #fca5a5;
  background: linear-gradient(180deg, #fff1f2 0%, #fff7ed 100%);
}

.call-timer-card-ended {
  border-color: #cbd5e1;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.call-timer-card-neutral {
  border-color: #dbe3ef;
}

.call-timer-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.call-timer-label {
  margin: 0;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.call-state-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid #d5dbe6;
  background: rgba(255, 255, 255, 0.62);
  color: #475569;
}

.call-state-pill-idle {
  color: #475569;
  border-color: #d5dbe6;
}

.call-state-pill-connecting {
  color: #b45309;
  border-color: #fcd34d;
  background: #fffbeb;
}

.call-state-pill-connected {
  color: #047857;
  border-color: #86efac;
  background: #ecfdf3;
}

.call-timer-primary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "label label"
    "value pill";
  column-gap: 12px;
  row-gap: 4px;
  align-items: end;
  margin-bottom: 8px;
}

.call-timer-primary-label {
  grid-area: label;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.call-timer-primary-value {
  grid-area: value;
  color: #0f172a;
  font-size: 1.42rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.call-timer-primary .call-state-pill {
  grid-area: pill;
  align-self: end;
}

.call-timer-secondary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.call-timer-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.28);
  padding: 3px 7px;
}

.call-timer-caption {
  color: #64748b;
  font-size: 0.75rem;
}

.call-timer-chip-value {
  color: #0f172a;
  font-size: 0.88rem;
  line-height: 1;
}

.live-call-controls {
  margin-bottom: 0;
  margin-left: 0;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  flex-wrap: nowrap;
}

.live-call-controls button {
  width: 100%;
}

.live-call-controls-live {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.live-call-controls-live .button-danger-primary {
  grid-column: 1 / -1;
}

.live-lines-compact {
  max-width: 100%;
}

.live-lines-live {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.live-line-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.live-line-label {
  margin: 0;
  color: #153661;
  font-size: 0.82rem;
  font-weight: 800;
}

.live-line-body {
  min-height: 112px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  padding: 12px 14px;
}

.live-line-copy {
  margin: 0;
  color: #17355d;
  line-height: 1.5;
  white-space: pre-wrap;
}

.live-score-insight-label {
  color: #5b6d86;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-score-callout {
  margin-top: 6px;
  border: 1px solid #dbe7f3;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 12px 13px;
}

.live-score-callout p {
  margin: 6px 0 0;
  color: #223a5f;
  font-size: 0.96rem;
  line-height: 1.55;
}

.session-recording-audio {
  width: 100%;
  margin-top: 10px;
}

.docs {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  padding: 16px;
  margin-bottom: 16px;
}

.docs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.doc-item {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px;
  background: #f9fafb;
}

h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-family: "Trebuchet MS", "Avenir Next", sans-serif;
  letter-spacing: 0.2px;
}

.message {
  margin: 0 0 12px;
  white-space: pre-wrap;
  line-height: 1.45;
}

.role {
  font-weight: 600;
  margin-right: 8px;
}

form {
  display: flex;
  gap: 8px;
}

textarea {
  flex: 1;
  min-height: 84px;
  resize: vertical;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 10px;
}

.field-error-input {
  border-color: #dc2626 !important;
  background: #fef2f2;
}

.error {
  color: #b91c1c;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid #fecaca;
  border-radius: 10px;
  background: #fff1f2;
}

.meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.profile-details {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0 16px;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  font-size: 1.35rem;
}

.profile-hero-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-hero-copy h2 {
  margin: 0;
  font-size: 1.15rem;
}

.profile-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #d6e0ec;
  border-radius: 999px;
  background: #f8fbff;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 600;
}

.profile-avatar-actions {
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #f8fafc;
  padding: 12px;
  margin-bottom: 12px;
}

.profile-avatar-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-file-input {
  display: none;
}

.profile-avatar-help {
  margin-top: 8px;
  margin-bottom: 0;
}

.profile-success {
  color: #166534;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  background: #f0fdf4;
}

.profile-warning {
  color: #9a3412;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid #fdba74;
  border-radius: 10px;
  background: #fff7ed;
}

.profile-field {
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #f8fafc;
  padding: 10px 12px;
}

.profile-label {
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 700;
}

.profile-value {
  margin: 0;
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 600;
  word-break: break-word;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.section-head.compact {
  align-items: center;
  margin-bottom: 10px;
}

.empty-state {
  padding: 16px;
  margin-bottom: 16px;
}

.setup-hub-page {
  max-width: 1320px;
}

.setup-hub {
  padding: 16px;
}

.setup-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.setup-hub-card {
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #f8fafc;
  padding: 14px;
}

.buyer-personas-page {
  max-width: 1320px;
}

.company-profiles-page {
  max-width: 1320px;
}

.product-profiles-detail-hero {
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(52, 185, 198, 0.14) 0%, rgba(52, 185, 198, 0) 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 250, 255, 0.94) 100%);
  border-color: #d8e4f2;
  box-shadow:
    0 18px 38px rgba(20, 53, 103, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.product-profiles-overview-hero {
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(52, 185, 198, 0.14) 0%, rgba(52, 185, 198, 0) 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 250, 255, 0.94) 100%);
  border-color: #d8e4f2;
  box-shadow:
    0 18px 38px rgba(20, 53, 103, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.product-profiles-overview-hero-copy {
  max-width: 760px;
}

.product-profiles-overview-hero-copy .meta {
  max-width: 68ch;
}

.product-profiles-overview-hero-side {
  min-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.buyer-personas-access-card {
  padding: 18px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.invite-template-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.invite-template-page-hero {
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.company-profiles-hero {
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(52, 185, 198, 0.14) 0%, rgba(52, 185, 198, 0) 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 250, 255, 0.94) 100%);
  border-color: #d8e4f2;
  box-shadow:
    0 18px 38px rgba(20, 53, 103, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.invite-template-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.invite-template-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background-color 0.12s ease,
    border-color 0.12s ease;
}

.invite-template-page-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.invite-template-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.95fr);
  gap: 14px;
  align-items: start;
}

.invite-template-sidebar {
  padding: 16px;
}

.invite-template-preview-tools {
  margin-bottom: 12px;
}

.invite-template-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.invite-template-access-card {
  padding: 18px;
}

.organization-page {
  max-width: 1200px;
}

.organization-panel {
  padding: 18px;
}

.organization-layout {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.organization-workspace {
  padding: 14px;
}

.organization-workspace-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.organization-workspace-card {
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #f8fbff;
  padding: 14px;
}

.organization-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.organization-summary-card,
.organization-directory {
  padding: 14px;
}

.organization-invites {
  padding: 14px;
}

.organization-kicker {
  margin: 0 0 8px;
  color: #0b7490;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  font-weight: 700;
}

.organization-member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
}

.organization-member-card {
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #f8fbff;
  padding: 14px;
}

.organization-member-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.organization-member-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.organization-avatar {
  width: 48px;
  height: 48px;
  font-size: 1rem;
}

.organization-team-avatar {
  width: 32px;
  height: 32px;
  font-size: 0.78rem;
}

.organization-member-name {
  margin: 0;
  font-size: 1rem;
}

.organization-member-email {
  margin-top: 4px;
  margin-bottom: 0;
  word-break: break-word;
}

.organization-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.organization-team-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.organization-team-chip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #f8fbff;
  padding: 8px 10px;
}

.organization-team-avatar {
  align-self: center;
}

.organization-team-chip-body {
  min-height: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.organization-team-chip strong,
.organization-team-chip span {
  display: block;
}

.organization-team-chip strong {
  color: #143567;
  font-size: 0.88rem;
}

.organization-team-chip span {
  color: #5a6f8a;
  font-size: 0.78rem;
  line-height: 1.35;
}

.organization-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  gap: 10px;
  margin-bottom: 14px;
  align-items: end;
}

.organization-toolbar-note {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #f8fbff;
  padding: 8px 12px;
  color: #47607f;
  font-size: 0.82rem;
  line-height: 1.45;
}

.organization-member-form {
  border-top: 1px solid #e3eaf4;
  margin-top: 10px;
  padding-top: 12px;
}

.organization-invite-form {
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #f8fbff;
  padding: 14px;
  margin-bottom: 12px;
}

.organization-template-grid {
  display: grid;
  gap: 10px;
}

.organization-template-textarea-label textarea {
  min-height: 220px;
  resize: vertical;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  line-height: 1.45;
}

.organization-template-token-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.organization-template-token {
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #ffffff;
  padding: 10px;
}

.organization-template-token code {
  display: inline-block;
  margin-bottom: 6px;
  color: #143567;
}

.organization-template-actions {
  align-items: flex-start;
}

.organization-template-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.secondary-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  text-decoration: none;
  transition:
    transform 0.14s ease,
    box-shadow 0.14s ease,
    background 0.14s ease,
    border-color 0.14s ease,
    filter 0.14s ease;
}

.secondary-button {
  background: #eef3f9;
  color: #143567;
  border: 1px solid #c7d5e6;
}

.secondary-button:hover {
  background: #e3ebf5;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(20, 53, 103, 0.08);
}

.organization-template-preview-card {
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #f8fbff;
  padding: 14px;
}

.organization-template-preview-body {
  margin: 10px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}

.organization-template-preview-html {
  margin-top: 12px;
  border-radius: 18px;
  overflow: hidden;
  background: #eef6ff;
  border: 1px solid #dbe6f3;
}

.organization-member-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.organization-workspace-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.organization-invite-form-grid {
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
}

.organization-member-actions {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.organization-inline-help {
  margin: 0;
}

.organization-workspace-actions {
  align-items: flex-start;
}

.organization-row-notice {
  margin-bottom: 0;
}

.organization-invite-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
}

.organization-invite-card {
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #f8fbff;
  padding: 14px;
}

.organization-invite-actions {
  margin-top: 10px;
}

.home-dashboard-page {
  max-width: 1320px;
  min-height: auto;
  padding-top: 16px;
  padding-bottom: 16px;
}

.dashboard-layout {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dashboard-command-strip {
  padding: 18px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) auto;
  gap: 16px;
  align-items: end;
  background:
    radial-gradient(circle at top right, rgba(89, 214, 216, 0.15) 0%, rgba(89, 214, 216, 0) 34%),
    linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
}

.dashboard-command-copy {
  min-width: 0;
}

.dashboard-command-copy h1 {
  margin: 0 0 8px;
}

.dashboard-kicker {
  margin: 0 0 6px;
  color: #16738f;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  font-weight: 700;
}

.dashboard-command-summary {
  margin: 0;
  max-width: 58ch;
  color: #47607f;
}

.dashboard-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.dashboard-command-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.dashboard-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0;
}

.dashboard-view-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-view-tab {
  border: 1px solid #d1d9e8;
  border-radius: 999px;
  background: #ffffff;
  color: #24406b;
  font-weight: 600;
  min-height: 36px;
  padding: 0 14px;
}

.dashboard-view-tab-active {
  border-color: #84ccff;
  background: linear-gradient(135deg, #e7f8fb 0%, #e9f0ff 100%);
  color: #102a53;
  box-shadow: inset 0 0 0 1px #c5def6;
}

.dashboard-primary-link,
.public-primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid #1f4a74;
  border-radius: 10px;
  background: linear-gradient(135deg, #1f4a74 0%, #132959 100%);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  padding: 0 14px;
  box-shadow: 0 10px 18px rgba(19, 41, 89, 0.14);
  transition:
    transform 0.14s ease,
    box-shadow 0.14s ease,
    filter 0.14s ease;
}

.public-primary-button {
  cursor: pointer;
  width: fit-content;
}

.dashboard-primary-link:hover,
.public-primary-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(19, 41, 89, 0.18);
  filter: brightness(1.03);
}

.public-primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  box-shadow: none;
  filter: none;
}

.dashboard-empty-panel {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dashboard-empty-panel h1,
.dashboard-empty-panel h2,
.dashboard-empty-panel .message,
.dashboard-empty-panel .meta {
  margin: 0;
}

.dashboard-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-stat-card {
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 14px;
  min-height: 108px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.dashboard-stat-label {
  margin: 0;
  color: #60738d;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.74rem;
  font-weight: 700;
}

.dashboard-stat-value {
  margin: 0;
  color: #102a53;
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 700;
}

.dashboard-stat-help {
  margin: auto 0 0;
  color: #4f627d;
  font-size: 0.8rem;
  line-height: 1.35;
}

.dashboard-overview-panel {
  padding: 16px;
}

.dashboard-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.95fr);
  gap: 14px;
  align-items: stretch;
}

.dashboard-focus-card,
.dashboard-snapshot-card {
  min-width: 0;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 16px;
}

.dashboard-focus-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-focus-title {
  margin: 0;
  color: #143567;
  font-size: 1.08rem;
  line-height: 1.3;
}

.dashboard-snapshot-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dashboard-snapshot-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.dashboard-snapshot-metric {
  border: 1px solid #dbe5f2;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.dashboard-snapshot-metric span {
  color: #60738d;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.dashboard-snapshot-metric strong {
  color: #102a53;
  font-size: 1.12rem;
}

.dashboard-insight-copy {
  margin: 0;
  color: #334b69;
  font-size: 0.88rem;
  line-height: 1.45;
}

.dashboard-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.95fr);
  gap: 16px;
  align-items: start;
}

.dashboard-side-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dashboard-panel {
  padding: 18px;
}

.dashboard-session-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dashboard-session-card {
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: #f8fbff;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dashboard-session-card h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.dashboard-session-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-session-card .session-score-pill {
  min-width: 68px;
  min-height: 68px;
}

.dashboard-session-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dashboard-session-actions a {
  color: #143567;
  font-weight: 600;
  text-decoration: none;
}

.dashboard-session-actions a:hover {
  text-decoration: underline;
}

.dashboard-band-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dashboard-band-list-compact {
  gap: 10px;
}

.dashboard-band-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dashboard-band-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #4f627d;
  font-size: 0.84rem;
}

.dashboard-band-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #e6edf7;
  overflow: hidden;
}

.dashboard-band-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.dashboard-band-fill-high {
  background: linear-gradient(90deg, #34d399 0%, #10b981 100%);
}

.dashboard-band-fill-medium {
  background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
}

.dashboard-band-fill-low {
  background: linear-gradient(90deg, #fb7185 0%, #e11d48 100%);
}

.dashboard-list-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dashboard-ranking-card {
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-ranking-card strong {
  color: #143567;
  font-size: 0.92rem;
}

.dashboard-ranking-card span {
  color: #51657e;
  font-size: 0.84rem;
  text-align: right;
}

.conversation-history-page {
  padding: 16px;
}

.product-profiles-page {
  width: 100%;
  max-width: none;
}

.product-profiles-overview-page {
  max-width: 1320px;
}

.profile-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.profile-list-card {
  padding: 12px;
}

.profile-list-card-active {
  border-color: #93c5fd;
  box-shadow: 0 0 0 1px #bfdbfe inset;
}

.profile-list-title {
  margin: 0 0 8px;
}

.profile-list-actions {
  margin-bottom: 0;
}

.product-profiles-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.product-profile-overview-card {
  border: 1px solid #d7e3f1;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #17355d;
  text-decoration: none;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease,
    background 0.16s ease;
}

.product-profile-overview-card:hover {
  transform: translateY(-1px);
  border-color: #bed7ee;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.product-profile-overview-card-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.product-profile-overview-avatar {
  width: 52px;
  height: 52px;
  font-size: 0.94rem;
  border-width: 2px;
  border-color: #c6dff0;
  box-shadow: 0 10px 22px rgba(20, 53, 103, 0.1);
}

.product-profile-overview-card-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.product-profile-overview-card-copy strong {
  color: #143567;
  font-size: 1rem;
  line-height: 1.3;
}

.product-profile-overview-card-company,
.product-profile-overview-card-pricing,
.product-profile-overview-card-meta {
  color: #5a6f8a;
  font-size: 0.84rem;
}

.product-profile-overview-card-summary {
  display: grid;
  gap: 6px;
}

.product-profile-overview-card-label {
  margin: 0;
  color: #47607f;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.product-profile-overview-card-snippet {
  margin: 0;
  color: #334155;
  line-height: 1.55;
}

.product-profile-overview-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.product-profile-overview-card-action {
  color: #17355d;
  font-size: 0.84rem;
  font-weight: 700;
}

.conversation-history-list-only {
  width: 100%;
  max-width: none;
}

.conversation-history-detail-page {
  width: 100%;
  max-width: 1200px;
}

.detail-analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 1fr);
  gap: 12px;
  margin-bottom: 12px;
  align-items: start;
}

.detail-main-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.detail-overview-card {
  padding: 14px;
}

.detail-overview-card .meta:last-child {
  margin-bottom: 0;
}

.detail-score-sidebar {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-overall-card {
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #f8fafc;
  padding: 12px;
}

.detail-overall-card-high {
  border-color: #86efac;
  background: #ecfdf3;
}

.detail-overall-card-medium {
  border-color: #fcd34d;
  background: #fffbeb;
}

.detail-overall-card-low {
  border-color: #fda4af;
  background: #fff1f2;
}

.detail-overall-card-empty {
  border-color: #dbe3ef;
  background: #f8fafc;
}

.detail-overall-label {
  margin: 0;
  color: #475569;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-overall-value {
  margin: 4px 0 2px;
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1;
}

.detail-overall-band {
  margin: 0 0 8px;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 600;
}

.detail-overall-insight {
  margin: 0;
  color: #334155;
  font-size: 0.86rem;
  line-height: 1.4;
}

.detail-dimension-card {
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #ffffff;
  padding: 10px 12px;
}

.detail-dimension-card h3 {
  margin: 0 0 10px;
  font-size: 0.96rem;
}

.detail-dimension-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-dimension-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 8px;
}

.detail-dimension-label {
  color: #334155;
  font-size: 0.78rem;
  line-height: 1.2;
}

.detail-dimension-track {
  height: 8px;
  border-radius: 999px;
  background: #e4eaf4;
  overflow: hidden;
}

.detail-dimension-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #22c55e 0%, #0ea5e9 100%);
}

.detail-dimension-value {
  text-align: right;
  color: #1f2937;
  font-size: 0.76rem;
  font-weight: 600;
}

.detail-insights-card {
  padding: 14px;
  margin-bottom: 12px;
}

.detail-notes-card {
  padding: 14px;
  margin-bottom: 12px;
}

.detail-notes-card-compact {
  margin-bottom: 0;
}

.detail-notes-copy {
  margin: 0;
  border: 1px solid #dbe7f3;
  border-radius: 10px;
  background: #f8fafc;
  padding: 12px;
  color: #334155;
  line-height: 1.6;
  white-space: pre-wrap;
}

.detail-notes-copy-compact {
  max-height: 168px;
  overflow: auto;
}

.detail-recording-card {
  padding: 14px;
  margin-bottom: 12px;
}

.detail-buyer-belief-card {
  gap: 0;
}

.detail-buyer-belief-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.detail-buyer-belief-head h3 {
  margin: 0 0 4px;
}

.detail-buyer-belief-list {
  margin-bottom: 10px;
}

.detail-buyer-belief-track {
  height: 9px;
}

.detail-buyer-belief-fill {
  background: linear-gradient(90deg, #38bdf8 0%, #2563eb 100%);
}

.detail-buyer-belief-fill-concern {
  background: linear-gradient(90deg, #60a5fa 0%, #2563eb 100%);
}

.detail-buyer-belief-summary {
  margin: 0 0 8px;
  color: #516a8b;
  font-size: 0.84rem;
  line-height: 1.45;
}

.detail-buyer-belief-reasoning {
  margin: 0;
  color: #334155;
  font-size: 0.84rem;
  line-height: 1.5;
}

.detail-recording-panel {
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #f8fafc;
  padding: 12px;
}

.detail-recording-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.detail-recording-actions .meta {
  margin-bottom: 0;
}

.detail-recording-panel .meta:last-child {
  margin-bottom: 0;
}

.detail-insights-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.detail-insight-panel {
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #f8fafc;
  padding: 10px 12px;
}

.detail-insight-panel h3 {
  margin: 0 0 8px;
  font-size: 0.94rem;
}

.detail-insight-list {
  margin: 0;
  padding-left: 18px;
  color: #334155;
  font-size: 0.85rem;
  line-height: 1.45;
}

.detail-insight-list li + li {
  margin-top: 4px;
}

.conversation-history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.conversation-history-filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
  gap: 10px;
  margin-bottom: 12px;
}

.conversation-history-filter-bar-people {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 220px) minmax(180px, 220px);
}

.conversation-history-view-strip {
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 12px 14px;
  margin-bottom: 12px;
}

.conversation-history-view-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.conversation-history-view-tab {
  border: 1px solid #d1d9e8;
  border-radius: 999px;
  background: #ffffff;
  color: #24406b;
  font-weight: 600;
  min-height: 38px;
  padding: 0 14px;
}

.conversation-history-view-tab-active {
  border-color: #84ccff;
  background: linear-gradient(135deg, #e7f8fb 0%, #e9f0ff 100%);
  color: #102a53;
  box-shadow: inset 0 0 0 1px #c5def6;
}

.conversation-history-view-help {
  margin: 10px 0 0;
}

.history-filter {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.86rem;
  color: #475569;
}

.history-filter input,
.history-filter select {
  min-height: 38px;
}

.conversation-history-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
}

.conversation-history-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.history-open-link,
.history-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  padding: 8px 12px;
  color: #1f2937;
  text-decoration: none;
  font-size: 0.9rem;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.history-open-link:hover,
.history-back-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.12);
}

.history-delete-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
}

.session-history-item {
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #f8fafc;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.session-history-title {
  margin: 0 0 6px;
  font-weight: 600;
  color: #1f2937;
}

.session-history-card {
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.session-history-note {
  border-top: 1px solid #edf2f7;
  padding-top: 8px;
}

.session-history-note-label {
  margin: 0 0 4px;
  color: #60748f;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.session-history-note-preview {
  margin: 0;
  color: #334155;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.session-history-card-compact {
  border-radius: 14px;
  background: #ffffff;
}

.session-history-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.session-score-pill {
  min-width: 76px;
  min-height: 76px;
  padding: 8px;
  border-radius: 999px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
  line-height: 1.05;
  font-weight: 700;
  flex-shrink: 0;
}

.session-score-label {
  font-size: 0.78rem;
  font-weight: 600;
}

.session-score-value {
  font-size: 1.08rem;
  font-weight: 700;
}

.score-high {
  color: #065f46;
  border-color: #86efac;
  background: #ecfdf3;
}

.score-medium {
  color: #92400e;
  border-color: #fcd34d;
  background: #fffbeb;
}

.score-low {
  color: #9f1239;
  border-color: #fda4af;
  background: #fff1f2;
}

.score-empty {
  color: #334155;
  border-color: #cbd5e1;
  background: #f8fafc;
}

.session-history-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.buyer-persona-avatar-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.buyer-persona-avatar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.buyer-persona-avatar-body,
.buyer-persona-preview-card {
  display: flex;
  align-items: center;
  gap: 14px;
}

.buyer-persona-preview-card {
  padding: 12px;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  margin-bottom: 12px;
}

.brief-grid > .buyer-persona-preview-card {
  justify-self: start;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 0;
}

.buyer-persona-preview-card-compact {
  padding: 10px;
  margin-bottom: 10px;
}

.buyer-persona-avatar-copy,
.buyer-persona-preview-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.buyer-persona-preview-copy:empty {
  display: none;
}

.buyer-persona-avatar-copy:empty {
  display: none;
}

.buyer-persona-avatar-preview {
  width: 88px;
  height: 88px;
  font-size: 1.15rem;
}

.buyer-persona-avatar-preview-medium {
  width: 72px;
  height: 72px;
  font-size: 1rem;
}

.buyer-persona-avatar-preview-small {
  width: 56px;
  height: 56px;
  font-size: 0.92rem;
}

.buyer-personas-library-hero {
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(52, 185, 198, 0.14) 0%, rgba(52, 185, 198, 0) 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 250, 255, 0.94) 100%);
  border-color: #d8e4f2;
  box-shadow:
    0 18px 38px rgba(20, 53, 103, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.buyer-personas-library-hero-copy {
  max-width: 760px;
}

.buyer-personas-library-hero-copy .meta {
  max-width: 68ch;
}

.buyer-personas-library-hero-side {
  min-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}

.buyer-personas-library-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.buyer-personas-library-stat {
  padding: 14px 16px;
  border: 1px solid #dbe7f3;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.buyer-personas-library-stat span {
  display: block;
  color: #60748f;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.buyer-personas-library-stat strong {
  display: block;
  margin-top: 8px;
  color: #133a63;
  font-size: 1.4rem;
  letter-spacing: -0.04em;
}

.buyer-personas-library-hero-actions {
  justify-content: flex-end;
}

.buyer-personas-library-shell {
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.buyer-personas-library-head {
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #edf2f7;
}

.buyer-personas-library-head-copy {
  max-width: 760px;
}

.buyer-personas-library-lead {
  margin: 0 0 6px;
  color: #24466c;
  font-weight: 600;
  line-height: 1.55;
  max-width: 66ch;
}

.buyer-personas-library-toolbar {
  align-items: center;
}

.buyer-personas-library-toolbar-meta {
  min-width: 118px;
  padding: 11px 13px;
  border: 1px solid #d8e4f1;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.buyer-personas-library-toolbar-meta strong {
  color: #143567;
  font-size: 1.08rem;
  line-height: 1;
}

.buyer-personas-library-toolbar-meta span {
  color: #61748d;
  font-size: 0.78rem;
  line-height: 1.35;
}

.buyer-personas-search-field input {
  min-width: 320px;
  min-height: 46px;
  border-radius: 14px;
  padding: 0 16px;
  border: 1px solid #cfdceb;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  color: #143567;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.buyer-personas-search-field input:focus {
  outline: 2px solid rgba(52, 185, 198, 0.12);
  border-color: #87bfe8;
}

.buyer-personas-create-link {
  min-height: 46px;
  padding-inline: 16px;
  border: 1px solid #1c5b82;
  background: linear-gradient(135deg, #133a63 0%, #1c5b82 100%);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(19, 58, 99, 0.16);
}

.buyer-personas-create-link:hover {
  border-color: #154e73;
  background: linear-gradient(135deg, #123457 0%, #154e73 100%);
  color: #ffffff;
  box-shadow: 0 12px 22px rgba(19, 58, 99, 0.2);
}

.buyer-personas-overview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.buyer-personas-overview-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.buyer-personas-search input {
  min-width: 220px;
}

.buyer-personas-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.buyer-persona-overview-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 330px;
  padding: 20px;
  border: 1px solid #d8e4f1;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(52, 185, 198, 0.1) 0%, rgba(52, 185, 198, 0) 32%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  text-decoration: none;
  box-shadow:
    0 14px 26px rgba(20, 53, 103, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.buyer-persona-overview-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 18px 34px rgba(20, 53, 103, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
  border-color: #bcd3ea;
  background:
    radial-gradient(circle at top right, rgba(52, 185, 198, 0.14) 0%, rgba(52, 185, 198, 0) 34%),
    linear-gradient(180deg, #ffffff 0%, #f4faff 100%);
}

.buyer-persona-overview-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.buyer-persona-overview-card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.buyer-persona-overview-card-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.buyer-persona-overview-card-copy strong {
  color: #143567;
  font-size: 1.22rem;
  font-family: "Trebuchet MS", "Avenir Next", sans-serif;
  line-height: 1.08;
}

.buyer-persona-overview-card-copy span {
  color: #5a6f8a;
  line-height: 1.45;
}

.buyer-persona-overview-card-role {
  color: #27476d;
  font-weight: 700;
}

.buyer-persona-overview-card-company {
  color: #647a93;
}

.buyer-persona-overview-card-action {
  color: #0d6a8d;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.buyer-persona-overview-avatar {
  width: 80px;
  height: 80px;
  font-size: 1.04rem;
  border-width: 2px;
  border-color: #c6dff0;
  box-shadow: 0 12px 24px rgba(20, 53, 103, 0.1);
}

.buyer-persona-overview-card-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.buyer-persona-overview-card-traits .buyer-persona-trait-pill,
.buyer-persona-summary-traits .buyer-persona-trait-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.buyer-persona-mood-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.buyer-persona-mood-icon-face {
  fill: rgba(255, 255, 255, 0.5);
}

.buyer-persona-overview-card-traits .buyer-persona-trait-pill-mood-friendly,
.buyer-persona-summary-traits .buyer-persona-trait-pill-mood-friendly {
  color: #0d6b60;
  border-color: #a8e5db;
  background: #ebfcf8;
}

.buyer-persona-overview-card-traits .buyer-persona-trait-pill-mood-neutral,
.buyer-persona-summary-traits .buyer-persona-trait-pill-mood-neutral {
  color: #31506f;
  border-color: #d7e1ec;
  background: #f8fbff;
}

.buyer-persona-overview-card-traits .buyer-persona-trait-pill-mood-skeptical,
.buyer-persona-summary-traits .buyer-persona-trait-pill-mood-skeptical {
  color: #8b5a17;
  border-color: #f1d39d;
  background: #fff8ea;
}

.buyer-persona-overview-card-traits .buyer-persona-trait-pill-mood-rushed,
.buyer-persona-summary-traits .buyer-persona-trait-pill-mood-rushed {
  color: #9a3412;
  border-color: #fdc9b4;
  background: #fff3ee;
}

.buyer-persona-overview-card-traits .buyer-persona-trait-pill-mood-hostile,
.buyer-persona-summary-traits .buyer-persona-trait-pill-mood-hostile {
  color: #9f1239;
  border-color: #f6b0bf;
  background: #fff1f4;
}

.buyer-persona-overview-card-traits .buyer-persona-trait-pill-intensity-high,
.buyer-persona-summary-traits .buyer-persona-trait-pill-intensity-high {
  color: #1d4ed8;
  border-color: #bfd7ff;
  background: #edf4ff;
}

.buyer-persona-overview-card-traits .buyer-persona-trait-pill-intensity-medium,
.buyer-persona-summary-traits .buyer-persona-trait-pill-intensity-medium {
  color: #6d28d9;
  border-color: #d8c8fb;
  background: #f5f0ff;
}

.buyer-persona-overview-card-traits .buyer-persona-trait-pill-intensity-low,
.buyer-persona-summary-traits .buyer-persona-trait-pill-intensity-low {
  color: #0f766e;
  border-color: #b6ebe1;
  background: #effdf9;
}

.buyer-persona-overview-card-traits .buyer-persona-trait-pill-market,
.buyer-persona-summary-traits .buyer-persona-trait-pill-market {
  color: #425875;
  border-color: #d8e4ef;
  background: #f8fbff;
}

.buyer-persona-overview-card-summary {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid #edf2f7;
}

.buyer-persona-overview-card-label {
  margin: 0;
  color: #6a7e96;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.buyer-persona-overview-card-snippet {
  margin: 0;
  color: #334155;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.buyer-persona-overview-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
}

.buyer-persona-overview-card-meta {
  margin: 0;
  color: #6b7d94;
  font-size: 0.82rem;
}

.buyer-persona-creation-step-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.buyer-persona-creation-step-pill {
  border: 1px solid #d1d9e8;
  border-radius: 999px;
  background: #ffffff;
  color: #24406b;
  font-weight: 600;
  min-height: 38px;
  padding: 0 14px;
}

.buyer-persona-creation-step-pill-active {
  border-color: #84ccff;
  background: linear-gradient(135deg, #e7f8fb 0%, #e9f0ff 100%);
  color: #102a53;
  box-shadow: inset 0 0 0 1px #c5def6;
}

.buyer-persona-detail-layout {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.buyer-persona-detail-photo {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.buyer-persona-detail-photo-head {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.buyer-persona-detail-photo h4 {
  margin: 0;
  color: #143567;
  font-size: 0.92rem;
  font-family: "Trebuchet MS", "Avenir Next", sans-serif;
  letter-spacing: 0.16px;
}

.buyer-persona-detail-fields {
  align-content: start;
}

.buyer-persona-summary-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.session-buyer-summary-panel {
  gap: 10px;
  padding: 12px;
  margin-bottom: 10px;
}

.session-buyer-summary-panel .buyer-persona-summary-head {
  align-items: center;
}

.session-buyer-summary-panel .buyer-persona-summary-copy p {
  margin-top: 2px;
}

.session-buyer-summary-company {
  color: #143567;
  font-weight: 600;
}

.buyer-persona-summary-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.product-profile-summary-head {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.buyer-persona-summary-copy {
  min-width: 0;
}

.product-profile-summary-copy {
  min-width: 0;
}

.product-profile-avatar-button {
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 999px;
  flex-shrink: 0;
}

.product-profile-avatar-button:disabled {
  cursor: not-allowed;
}

.product-profile-avatar-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(20, 53, 103, 0.55);
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.16s ease;
  pointer-events: none;
}

.product-profile-avatar-button:hover .product-profile-avatar-overlay,
.product-profile-avatar-button:focus-visible .product-profile-avatar-overlay {
  opacity: 1;
}

.product-profile-avatar-button:focus-visible {
  outline: 2px solid #2a6fd6;
  outline-offset: 3px;
}

.product-profile-avatar-button:disabled .product-profile-avatar-overlay {
  opacity: 0;
}

.product-profile-avatar-overlay-icon {
  width: 28px;
  height: 28px;
}

.product-profile-avatar-overlay-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.buyer-persona-summary-copy h4 {
  margin: 0;
  color: #143567;
  font-size: 1.02rem;
  font-family: "Trebuchet MS", "Avenir Next", sans-serif;
}

.product-profile-summary-copy h3 {
  margin: 0;
  color: #143567;
  font-size: 1.02rem;
  font-family: "Trebuchet MS", "Avenir Next", sans-serif;
}

.buyer-persona-summary-copy p {
  margin: 4px 0 0;
  color: #5a6f8a;
  line-height: 1.45;
}

.product-profile-summary-copy p {
  margin: 4px 0 0;
  color: #5a6f8a;
  line-height: 1.45;
}

.buyer-persona-summary-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.buyer-persona-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.buyer-persona-detail-copy {
  margin: 0;
  color: #334155;
  line-height: 1.55;
  white-space: pre-wrap;
}

.buyer-persona-editor-shell,
.company-profile-editor-shell,
.product-profile-editor-shell {
  padding: 20px;
}

.buyer-persona-editor-access-card,
.company-profile-editor-access-card,
.product-profile-editor-access-card {
  margin-bottom: 16px;
}

.buyer-persona-editor-rail,
.company-profile-editor-rail,
.product-profile-editor-rail {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #edf2f7;
}

.buyer-persona-editor-rail-copy,
.company-profile-editor-rail-copy,
.product-profile-editor-rail-copy {
  max-width: 720px;
}

.buyer-persona-editor-rail-copy .meta,
.company-profile-editor-rail-copy .meta,
.product-profile-editor-rail-copy .meta {
  margin-bottom: 0;
}

.buyer-persona-editor-rail-controls,
.company-profile-editor-rail-controls,
.product-profile-editor-rail-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 10px;
}

.buyer-persona-editor-switcher,
.company-profile-editor-switcher,
.product-profile-editor-switcher {
  min-width: 380px;
}

.buyer-persona-editor-switcher select,
.company-profile-editor-switcher select,
.product-profile-editor-switcher select {
  width: 100%;
}

.buyer-persona-editor-status,
.company-profile-editor-status,
.product-profile-editor-status {
  margin-bottom: 14px;
}

.buyer-persona-helper-card {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 16px;
}

.buyer-persona-helper-grid {
  margin-top: 12px;
}

.buyer-persona-editor-workspace,
.company-profile-editor-workspace,
.product-profile-editor-workspace {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.buyer-persona-editor-sidebar,
.company-profile-editor-sidebar,
.product-profile-editor-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.buyer-persona-editor-summary-panel,
.company-profile-editor-summary-panel,
.company-profile-editor-support-panel,
.product-profile-editor-summary-panel,
.product-profile-editor-support-panel {
  margin-bottom: 0;
  box-shadow:
    0 10px 22px rgba(20, 53, 103, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.buyer-persona-editor-summary-head,
.company-profile-editor-summary-head,
.product-profile-editor-summary-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.buyer-persona-editor-avatar-meta {
  margin-bottom: 0;
}

.product-profile-editor-avatar-meta,
.product-profile-editor-avatar-status {
  margin-bottom: 0;
}

.product-profile-image-input {
  display: none;
}

.buyer-persona-editor-summary-meta {
  margin-bottom: 0;
}

.buyer-persona-editor-summary-footer,
.company-profile-editor-summary-footer,
.product-profile-editor-summary-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.buyer-persona-avatar-button {
  white-space: nowrap;
}

.buyer-persona-editor-card,
.company-profile-editor-card,
.company-profile-documents-card,
.product-profile-editor-card,
.product-profile-documents-card {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.buyer-persona-editor-card-head,
.company-profile-editor-card-head,
.product-profile-editor-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf2f7;
}

.buyer-persona-editor-card-head .meta,
.company-profile-editor-card-head .meta,
.product-profile-editor-card-head .meta {
  margin-bottom: 0;
}

.buyer-persona-editor-card-actions,
.company-profile-editor-card-actions,
.product-profile-editor-card-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.buyer-persona-editor-card-secondary-actions,
.company-profile-editor-card-secondary-actions,
.product-profile-editor-card-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.buyer-persona-editor-sections,
.company-profile-editor-sections,
.product-profile-editor-sections {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 18px;
}

.buyer-persona-editor-section,
.company-profile-editor-section,
.product-profile-editor-section {
  padding-top: 2px;
}

.buyer-persona-editor-section + .buyer-persona-editor-section,
.company-profile-editor-section + .company-profile-editor-section,
.product-profile-editor-section + .product-profile-editor-section {
  padding-top: 18px;
  border-top: 1px solid #edf2f7;
}

.buyer-persona-editor-section-head,
.company-profile-editor-section-head,
.product-profile-editor-section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.buyer-persona-editor-section-head h4,
.company-profile-editor-section-head h4,
.product-profile-editor-section-head h4 {
  margin: 0 0 6px;
  color: #143567;
  font-size: 0.92rem;
  font-family: "Trebuchet MS", "Avenir Next", sans-serif;
  letter-spacing: 0.16px;
}

.company-profile-editor-summary-copy,
.company-profile-editor-support-copy,
.product-profile-editor-summary-copy,
.product-profile-editor-support-copy {
  margin: 0;
}

.company-profile-editor-summary-block {
  display: grid;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid #edf2f7;
}

.product-profile-editor-summary-block {
  display: grid;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid #edf2f7;
}

.company-profile-editor-summary-label {
  margin-bottom: 0;
}

.product-profile-editor-summary-label {
  margin-bottom: 0;
}

.company-profile-editor-summary-list {
  display: grid;
  gap: 6px;
}

.product-profile-editor-summary-list {
  display: grid;
  gap: 6px;
}

.company-profile-editor-summary-line {
  margin: 0;
  color: #334155;
}

.product-profile-editor-summary-line {
  margin: 0;
  color: #334155;
}

.company-profile-editor-support-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.product-profile-editor-support-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.company-profile-editor-support-stat {
  border: 1px solid #e5eaf3;
  border-radius: 12px;
  background: #ffffff;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}

.product-profile-editor-support-stat {
  border: 1px solid #e5eaf3;
  border-radius: 12px;
  background: #ffffff;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}

.company-profile-editor-support-stat span {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.product-profile-editor-support-stat span {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.company-profile-editor-support-stat strong {
  color: #143567;
  font-size: 1.05rem;
  line-height: 1;
}

.product-profile-editor-support-stat strong {
  color: #143567;
  font-size: 1.05rem;
  line-height: 1;
}

.company-profile-positioning-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.product-profile-positioning-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.company-profile-tag-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.product-profile-tag-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.company-profile-editor-field-wide textarea {
  min-height: 168px;
}

.product-profile-editor-field-wide textarea {
  min-height: 168px;
}

.company-profile-editor-field-emphasis textarea {
  min-height: 152px;
}

.product-profile-editor-field-emphasis textarea {
  min-height: 152px;
}

.company-profile-tag-grid label textarea {
  min-height: 128px;
}

.product-profile-tag-grid label textarea {
  min-height: 128px;
}

.product-profile-step-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.product-profile-step-pill {
  border: 1px solid #d8e2f0;
  background: #f8fbff;
  color: #335277;
  border-radius: 999px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.84rem;
}

.product-profile-step-pill span {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e7eef8;
  color: #143567;
  font-size: 0.74rem;
}

.product-profile-step-pill.is-active {
  border-color: #143567;
  background: #143567;
  color: #ffffff;
}

.product-profile-step-pill.is-active span {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.product-profile-step-pill:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.product-profile-step-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.product-profile-step-progress-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.product-profile-step-dot {
  width: 28px;
  height: 28px;
  border: 1px solid #d8e2f0;
  border-radius: 999px;
  background: #f8fbff;
  color: #335277;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.78rem;
}

.product-profile-step-dot.is-active {
  border-color: #143567;
  background: #143567;
  color: #ffffff;
}

.product-profile-step-dot:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.product-profile-setup-paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.product-profile-setup-path {
  border: 1px solid #d9e3f2;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 18px;
  text-align: left;
  display: grid;
  gap: 8px;
}

.product-profile-setup-path strong {
  color: #143567;
  font-size: 1rem;
}

.product-profile-setup-path p {
  margin: 0;
}

.product-profile-setup-path.is-active {
  border-color: #143567;
  box-shadow: 0 0 0 1px rgba(20, 53, 103, 0.12);
}

.product-profile-step-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #edf2f7;
}

.product-profile-step-actions-right {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.product-profiles-page-wizard .product-profiles-detail-hero {
  padding-block: 10px;
}

.product-profiles-page-wizard {
  height: calc(100dvh - 36px);
  overflow: hidden;
  padding-bottom: 0;
}

.product-profiles-page-wizard .product-profile-editor-shell {
  min-height: 0;
  padding: 14px;
  gap: 12px;
}

.product-profiles-page-wizard .product-profile-editor-rail {
  margin-bottom: 8px;
  padding-bottom: 8px;
}

.product-profiles-page-wizard .product-profile-editor-workspace {
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 0;
}

.product-profiles-page-wizard .product-profile-editor-summary-panel,
.product-profiles-page-wizard .product-profile-editor-support-panel,
.product-profiles-page-wizard .product-profile-editor-card {
  height: 100%;
  max-height: none;
  overflow: auto;
}

.product-profiles-page-wizard .product-profile-editor-card-head {
  padding-bottom: 10px;
}

.product-profiles-page-wizard .product-profile-editor-sections {
  gap: 12px;
  margin-top: 10px;
}

.product-profiles-page-wizard .product-profile-editor-section-head {
  margin-bottom: 10px;
}

.product-profiles-page-wizard .product-profile-editor-section-head h4 {
  margin-bottom: 4px;
}

.product-profiles-page-wizard .product-profile-positioning-grid,
.product-profiles-page-wizard .product-profile-tag-grid,
.product-profiles-page-wizard .product-profile-setup-paths {
  gap: 12px;
}

.product-profiles-page-wizard .product-profile-positioning-grid label textarea,
.product-profiles-page-wizard .product-profile-tag-grid label textarea {
  min-height: 176px;
}

.product-profiles-page-wizard .product-profile-setup-path {
  padding: 16px;
  gap: 6px;
}

.product-profiles-page-wizard .product-profile-step-actions {
  margin-top: 12px;
  padding-top: 10px;
}

.product-profile-documents-toolbar-embedded {
  margin-bottom: 10px;
}

.product-profile-upload-field {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.product-profile-documents-list-embedded {
  max-height: 240px;
  overflow: auto;
}

.product-profile-suggestion-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(15, 31, 77, 0.36);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.product-profile-suggestion-modal {
  width: min(860px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid #d7e2f0;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 24px 60px rgba(15, 31, 77, 0.2);
  padding: 24px;
  display: grid;
  gap: 16px;
}

.product-profile-suggestion-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.product-profile-suggestion-toggle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #dbe4f1;
  border-radius: 16px;
  background: #ffffff;
}

.product-profile-suggestion-list {
  display: grid;
  gap: 12px;
}

.product-profile-suggestion-item {
  border: 1px solid #dbe4f1;
  border-radius: 18px;
  background: #ffffff;
  padding: 16px;
  display: grid;
  gap: 10px;
}

.product-profile-suggestion-item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.product-profile-suggestion-item-head h4 {
  margin: 0;
  color: #143567;
  font-size: 0.96rem;
}

.product-profile-suggestion-value {
  margin: 0;
  white-space: pre-wrap;
  font: inherit;
  color: #334155;
}

.product-profile-suggestion-empty {
  border: 1px solid #dbe4f1;
  border-radius: 18px;
  background: #ffffff;
  padding: 18px;
}

.product-profile-suggestion-empty h4 {
  margin: 0 0 8px;
}

.product-profile-suggestion-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.company-profile-documents-head {
  margin-bottom: 14px;
}

.product-profile-documents-head {
  margin-bottom: 14px;
}

.company-profile-documents-toolbar {
  margin-bottom: 12px;
}

.product-profile-documents-toolbar {
  margin-bottom: 12px;
}

.company-profile-document-item {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.product-profile-document-item {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

@media (max-width: 720px) {
  .buyer-persona-avatar-head,
  .buyer-persona-avatar-body,
  .buyer-persona-preview-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .buyer-personas-library-hero,
  .buyer-personas-library-hero-side {
    min-width: 0;
  }

  .buyer-personas-library-stats {
    grid-template-columns: 1fr;
  }

  .buyer-personas-overview-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .buyer-personas-overview-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .buyer-personas-library-toolbar {
    align-items: stretch;
  }

  .buyer-personas-library-toolbar-meta {
    width: 100%;
  }

  .buyer-personas-search-field {
    width: 100%;
  }

  .buyer-personas-search input {
    min-width: 0;
    width: 100%;
  }

  .buyer-persona-overview-card-top,
  .buyer-persona-summary-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .buyer-persona-editor-rail,
  .buyer-persona-editor-card-head,
  .company-profile-editor-rail,
  .company-profile-editor-card-head,
  .product-profile-editor-rail,
  .product-profile-editor-card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .buyer-persona-editor-rail-controls,
  .buyer-persona-editor-card-actions,
  .company-profile-editor-rail-controls,
  .company-profile-editor-card-actions,
  .product-profile-editor-rail-controls,
  .product-profile-editor-card-actions {
    width: 100%;
    justify-content: flex-start;
    justify-items: start;
  }

  .buyer-persona-editor-switcher,
  .company-profile-editor-switcher,
  .product-profile-editor-switcher {
    min-width: 0;
    width: 100%;
  }

  .buyer-persona-editor-summary-footer,
  .buyer-persona-editor-card-secondary-actions,
  .company-profile-editor-summary-footer,
  .company-profile-editor-card-secondary-actions,
  .product-profile-editor-summary-footer,
  .product-profile-editor-card-secondary-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .buyer-persona-editor-workspace,
  .company-profile-editor-workspace,
  .product-profile-editor-workspace,
  .buyer-persona-detail-grid {
    grid-template-columns: 1fr;
  }

  .company-profile-tag-grid {
    grid-template-columns: 1fr;
  }

  .product-profile-tag-grid {
    grid-template-columns: 1fr;
  }

  .product-profile-setup-paths {
    grid-template-columns: 1fr;
  }

  .company-profile-editor-support-stats {
    grid-template-columns: 1fr 1fr;
  }

  .product-profile-editor-support-stats {
    grid-template-columns: 1fr 1fr;
  }

  .buyer-persona-editor-sidebar,
  .company-profile-editor-sidebar,
  .product-profile-editor-sidebar,
  .buyer-persona-detail-layout {
    grid-template-columns: 1fr;
  }

  .buyer-persona-detail-photo-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-profile-step-actions,
  .product-profile-step-actions-right,
  .product-profile-step-progress {
    flex-direction: column;
    align-items: stretch;
  }

  .product-profile-step-progress-dots {
    justify-content: flex-start;
  }

  .product-profile-suggestion-modal-head,
  .product-profile-suggestion-item-head,
  .product-profile-suggestion-modal-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

.session-history-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.conversation-history-people-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.conversation-history-person-card {
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.conversation-history-person-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.conversation-history-person-copy h2 {
  margin-bottom: 6px;
}

.conversation-history-person-copy .meta {
  margin: 0;
}

.conversation-history-person-score {
  min-width: 108px;
  min-height: 108px;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  background: #f8fbff;
  padding: 10px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  flex-shrink: 0;
}

.conversation-history-person-score-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.conversation-history-person-score strong {
  font-size: 1.6rem;
  line-height: 1;
}

.conversation-history-person-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.conversation-history-person-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.conversation-history-person-session-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
}

.session-history-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.setup-collapsed-banner {
  padding: 10px 14px;
  margin-bottom: 16px;
  border-style: dashed;
  border-color: #f3c98b;
  background: #fffaf1;
}

.setup-collapsed-banner .meta {
  margin: 0;
}

.status-pill {
  margin: 0;
  font-size: 0.82rem;
  color: #243247;
  border: 1px solid #d5dbe6;
  background: #f9fbff;
  padding: 5px 10px;
  border-radius: 999px;
}

.status-active {
  color: #065f46;
  border-color: #86efac;
  background: #ecfdf3;
}

.status-ended {
  color: #9f1239;
  border-color: #fda4af;
  background: #fff1f2;
}

.cockpit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr);
  gap: 16px;
  margin-bottom: 14px;
  align-items: start;
}

.cockpit-layout-live {
  grid-template-columns: minmax(0, 1.8fr) minmax(320px, 0.92fr);
  gap: 12px;
}

.cockpit-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cockpit-main-live {
  gap: 12px;
}

.cockpit-main > .panel {
  margin-top: 0;
  margin-bottom: 0;
}

.session-side {
  padding: 16px;
  position: sticky;
  top: 12px;
}

.session-side-live {
  padding: 14px;
  overflow: visible;
}

.phase-card {
  border: 1px solid #e8ebf2;
  border-radius: 10px;
  background: #f8fafc;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.phase-card h3 {
  margin: 0 0 8px;
  font-size: 0.93rem;
}

.phase-stepper {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.phase-step {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 8px;
  align-items: start;
}

.phase-step-dot {
  width: 12px;
  height: 12px;
  margin-top: 3px;
  border-radius: 999px;
  border: 2px solid #c7d2e3;
  background: #ffffff;
}

.phase-step-label {
  margin: 0;
  text-transform: capitalize;
  color: #1f2937;
  font-size: 0.9rem;
  font-weight: 600;
}

.phase-step-hint {
  margin: 2px 0 0;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.35;
}

.phase-step-done .phase-step-dot {
  border-color: #10b981;
  background: #10b981;
}

.phase-step-active .phase-step-dot {
  border-color: #f59e0b;
  background: #fef3c7;
}

.phase-step-active .phase-step-label {
  color: #92400e;
}

.phase-step-upcoming .phase-step-label {
  color: #475569;
}

.score-mini-card {
  border: 1px solid #e8ebf2;
  border-radius: 10px;
  background: #f8fafc;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.session-notes-card {
  border: 1px solid #e8ebf2;
  border-radius: 10px;
  background: #f8fafc;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.score-mini-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.score-mini-head h3 {
  margin: 0;
  font-size: 0.93rem;
}

.session-notes-head {
  align-items: flex-start;
}

.session-notes-head .meta {
  margin: 4px 0 0;
}

.session-notes-status-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d8e4ef;
  border-radius: 999px;
  background: #ffffff;
  color: #4a607d;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 9px;
}

.session-notes-status-pill-saving {
  border-color: #fcd34d;
  background: #fffbeb;
  color: #a16207;
}

.session-notes-status-pill-saved {
  border-color: #86efac;
  background: #ecfdf3;
  color: #166534;
}

.session-notes-status-pill-error {
  border-color: #fda4af;
  background: #fff1f2;
  color: #be123c;
}

.session-notes-textarea {
  width: 100%;
  min-height: 148px;
  max-height: 148px;
  resize: none;
  border: 1px solid #cfdbeb;
  border-radius: 12px;
  background: #ffffff;
  padding: 12px 13px;
  color: #143567;
  font: inherit;
  line-height: 1.55;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.session-notes-textarea:focus {
  outline: 2px solid rgba(52, 185, 198, 0.14);
  border-color: #87bfe8;
}

.session-notes-readonly {
  margin: 0;
  min-height: 92px;
  border: 1px solid #dbe7f3;
  border-radius: 12px;
  background: #ffffff;
  padding: 12px 13px;
  color: #334155;
  line-height: 1.55;
  white-space: pre-wrap;
}

.session-notes-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-top: 8px;
}

.session-notes-footer .meta {
  margin: 0;
}

.session-notes-status-saving {
  color: #a16207;
}

.session-notes-status-saved {
  color: #166534;
}

.session-notes-status-error {
  color: #be123c;
}

.score-mini-overall {
  min-width: 34px;
  text-align: center;
  border-radius: 8px;
  padding: 3px 8px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #065f46;
  background: #dcfce7;
  border: 1px solid #86efac;
}

.score-mini-overall-empty {
  color: #475569;
  background: #f1f5f9;
  border-color: #dbe3ef;
}

.score-mini-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.score-mini-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 8px;
}

.score-mini-label {
  color: #334155;
  font-size: 0.74rem;
  line-height: 1.2;
}

.score-mini-track {
  height: 7px;
  border-radius: 999px;
  background: #e4eaf4;
  overflow: hidden;
}

.score-mini-fill {
  height: 100%;
  display: block;
  background: linear-gradient(90deg, #38bdf8 0%, #2563eb 100%);
}

.score-mini-value {
  text-align: right;
  color: #1f2937;
  font-size: 0.74rem;
  font-weight: 600;
}

.score-mini-fill-concern {
  background: linear-gradient(90deg, #f59e0b 0%, #dc2626 100%);
}

.belief-mini-card .meta {
  margin: 4px 0 0;
}

.belief-mini-meta {
  margin-top: 10px;
}


.customer-brief-card {
  border: 1px solid #e8ebf2;
  border-radius: 10px;
  background: #f8fafc;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.voice-state {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
}

.voice-state-idle {
  color: #475569;
}

.voice-state-connecting {
  color: #b45309;
}

.voice-state-connected {
  color: #047857;
}

.live-lines {
  border: 1px solid #e3e8f2;
  border-radius: 10px;
  background: #f8fafc;
  padding: 12px;
}

.transcript-log {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.transcript-log-live {
  max-height: clamp(340px, 52vh, 620px);
  overflow-y: auto;
  padding-right: 6px;
}

.transcript-head {
  align-items: flex-start;
}

.transcript-toggle-button {
  white-space: nowrap;
}

.transcript-panel-live {
  padding: 14px;
}

.transcript-panel-collapsed {
  padding-top: 12px;
  padding-bottom: 12px;
}

.transcript-panel-live .transcript-log-live {
  max-height: min(280px, 32vh);
}

.message-row {
  display: flex;
}

.message-row-user {
  justify-content: flex-end;
}

.message-row-assistant {
  justify-content: flex-start;
}

.message-row-system {
  justify-content: center;
}

.message-row .message {
  margin: 0;
  max-width: min(82ch, 88%);
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid #d8dee9;
  background: #f8fafc;
}

.message-row-user .message {
  border-color: #fed7aa;
  background: var(--accent-soft);
}

.message-row-assistant .message {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.message-row-system .message {
  border-color: #e5e7eb;
  background: #f3f4f6;
}

.phase-transition-row {
  margin: 2px auto 8px;
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  border: 1px solid #d9e2ef;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-size: 0.78rem;
  padding: 4px 10px;
}

.phase-transition-label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  font-size: 0.68rem;
}

.phase-transition-value {
  text-transform: capitalize;
  color: #1f2937;
  font-weight: 600;
}

.phase-transition-arrow {
  color: #64748b;
}

.chat-form {
  align-items: flex-end;
}

.chat-form textarea {
  min-height: 72px;
}

.knowledge-base-page {
  max-width: 1280px;
}

.knowledge-base-hero {
  padding: 22px;
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.knowledge-base-eyebrow {
  margin: 0 0 8px;
  color: #0b7490;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  font-weight: 700;
}

.knowledge-base-lead {
  max-width: 72ch;
}

.knowledge-base-hero-copy {
  min-width: 0;
}

.knowledge-base-search-card {
  margin-top: 16px;
  border: 1px solid #dbe5f1;
  border-radius: 12px;
  background: linear-gradient(180deg, #fcfeff 0%, #f6fbff 100%);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.knowledge-base-search-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #47607f;
}

.knowledge-base-search-input {
  min-height: 48px;
  border: 1px solid #c5d8ed;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 1rem;
  color: #17355d;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.knowledge-base-search-input:focus {
  outline: 2px solid rgba(52, 185, 198, 0.16);
  border-color: #5abcc7;
}

.knowledge-base-search-meta,
.knowledge-base-search-status {
  margin: 0;
}

.knowledge-base-search-status {
  color: #0b7490;
  font-size: 0.84rem;
  font-weight: 600;
}

.knowledge-base-featured-card {
  border: 1px solid #d8e7f2;
  border-radius: 16px;
  background: linear-gradient(155deg, #f8fdff 0%, #eff8ff 55%, #f9fbff 100%);
  padding: 18px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.knowledge-base-featured-kicker {
  margin: 0;
  color: #0b7490;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.knowledge-base-featured-card h2 {
  margin: 0;
  font-size: 1.2rem;
}

.knowledge-base-featured-card .meta {
  margin: 0;
}

.knowledge-base-featured-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.knowledge-base-featured-points span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #16445c;
  background: rgba(216, 244, 245, 0.9);
  border: 1px solid #bee9eb;
}

.knowledge-base-featured-action {
  align-self: flex-start;
  margin-top: 4px;
  border-color: #93c5fd;
  background: #eff6ff;
  color: #17355d;
  font-weight: 700;
}

.knowledge-base-featured-updated {
  margin: auto 0 0;
  color: #4a607d;
  font-size: 0.8rem;
}

.knowledge-base-task-strip {
  padding: 16px;
  margin-bottom: 16px;
  border-color: #dbe7f3;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.knowledge-base-task-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.knowledge-base-task-card {
  min-height: 118px;
  padding: 14px;
  border: 1px solid #d9e4f2;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.knowledge-base-task-card:hover {
  transform: translateY(-1px);
}

.knowledge-base-task-card-primary {
  border-color: #bed7ee;
  background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

.knowledge-base-task-card-primary strong {
  font-size: 0.98rem;
}

.knowledge-base-task-card-secondary {
  border-color: #e2eaf4;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.knowledge-base-task-card-secondary strong {
  color: #23406c;
}

.knowledge-base-task-card strong {
  color: #143567;
  font-size: 0.95rem;
  line-height: 1.3;
}

.knowledge-base-task-card span {
  color: #5a6f8a;
  font-size: 0.82rem;
  line-height: 1.45;
}

.knowledge-base-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.knowledge-base-sidebar {
  padding: 16px;
  position: sticky;
  top: 12px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.knowledge-base-sidebar-section + .knowledge-base-sidebar-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e4ebf4;
}

.knowledge-base-sidebar-section h2 {
  margin-bottom: 10px;
  font-size: 1rem;
}

.knowledge-base-no-results-sidebar .message,
.knowledge-base-no-results-sidebar .meta {
  margin-bottom: 8px;
}

.knowledge-base-anchor-groups {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.knowledge-base-anchor-group-title {
  margin: 0 0 6px;
  color: #4a607d;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.knowledge-base-anchor-list,
.knowledge-base-quick-answer-list,
.knowledge-base-related-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.knowledge-base-anchor-button,
.knowledge-base-quick-answer-card,
.knowledge-base-route-link,
.knowledge-base-related-link-button,
.knowledge-base-section-nav-link {
  width: 100%;
  border-radius: 10px;
  padding: 10px 12px;
  color: #17355d;
  text-decoration: none;
  background: #f7fbff;
  border: 1px solid #d8e4f3;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.knowledge-base-anchor-button:hover,
.knowledge-base-quick-answer-card:hover,
.knowledge-base-route-link:hover,
.knowledge-base-related-link-button:hover,
.knowledge-base-section-nav-link:hover {
  background: #ebf3ff;
  border-color: #c0d6ee;
}

.knowledge-base-anchor-button {
  text-align: left;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.knowledge-base-anchor-button-title {
  font-size: 0.95rem;
  line-height: 1.4;
}

.knowledge-base-anchor-button-meta {
  color: #4a607d;
  font-size: 0.76rem;
  white-space: nowrap;
}

.knowledge-base-anchor-button-active {
  background: linear-gradient(135deg, #ebf7f8 0%, #eef4ff 100%);
  border-color: #9fc9ea;
  box-shadow: inset 3px 0 0 #0b7490;
}

.knowledge-base-quick-answer-card {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.knowledge-base-quick-answer-card strong {
  color: #143567;
  font-size: 0.9rem;
  line-height: 1.35;
}

.knowledge-base-quick-answer-card span {
  color: #556b87;
  font-size: 0.8rem;
  line-height: 1.45;
}

.knowledge-base-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.knowledge-base-screen-strip {
  padding: 16px;
  border-color: #deebf6;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.knowledge-base-screen-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.knowledge-base-screen-jump-card {
  border: 1px solid #d7e3f1;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #17355d;
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.knowledge-base-screen-jump-card:hover {
  border-color: #bfd5eb;
  background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
}

.knowledge-base-screen-jump-card strong {
  font-size: 0.94rem;
  line-height: 1.3;
}

.knowledge-base-screen-jump-card span {
  color: #5a6f8a;
  font-size: 0.8rem;
  line-height: 1.45;
}

.knowledge-base-article {
  padding: 22px;
  scroll-margin-top: 18px;
}

.knowledge-base-article-active {
  border-color: #cfdeef;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.knowledge-base-article-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.knowledge-base-article-head h2 {
  margin-bottom: 10px;
}

.knowledge-base-article-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  flex-shrink: 0;
}

.knowledge-base-category {
  margin: 0 0 6px;
  color: #0b7490;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
}

.knowledge-base-read-time {
  margin: 0;
  color: #4a607d;
  background: #f4f7fb;
  border: 1px solid #dde7f2;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  white-space: nowrap;
}

.knowledge-base-updated {
  margin: 0;
  color: #61748d;
  font-size: 0.8rem;
}

.knowledge-base-summary {
  margin-bottom: 0;
}

.knowledge-base-article-applies,
.knowledge-base-section-nav {
  border-top: 1px solid #edf2f8;
  padding-top: 14px;
}

.knowledge-base-related-routes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.knowledge-base-route-link {
  width: auto;
  padding: 7px 10px;
  font-size: 0.84rem;
  font-weight: 600;
}

.knowledge-base-section-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.knowledge-base-section-nav-link {
  width: auto;
  padding: 7px 10px;
  font-size: 0.83rem;
  font-weight: 600;
}

.knowledge-base-article-sections {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 6px;
}

.knowledge-base-article-section {
  border-top: 1px solid #edf2f8;
  padding-top: 20px;
  padding-bottom: 4px;
}

.knowledge-base-article-section h3 {
  margin: 0 0 10px;
  font-size: 1.03rem;
}

.knowledge-base-paragraph {
  max-width: 76ch;
  margin-bottom: 14px;
}

.knowledge-base-list {
  margin: 0 0 14px;
  padding-left: 22px;
  color: #334155;
  font-size: 1rem;
  line-height: 1.75;
}

.knowledge-base-list li + li {
  margin-top: 8px;
}

.knowledge-base-list-numbered {
  padding-left: 24px;
}

.knowledge-base-note {
  margin: 12px 0 0;
  border: 1px solid #f2dbb1;
  border-radius: 10px;
  background: #fff8ea;
  color: #805b16;
  padding: 10px 12px;
  font-size: 0.9rem;
}

.knowledge-base-related-articles {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #edf2f8;
}

.knowledge-base-related-links {
  flex-direction: row;
  flex-wrap: wrap;
}

.knowledge-base-related-title {
  margin: 0 0 8px;
  color: #4a607d;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.knowledge-base-related-link-button {
  width: auto;
  padding: 8px 11px;
  font-size: 0.84rem;
  font-weight: 600;
}

.knowledge-base-empty-state {
  padding: 18px;
}

.training-plans-page {
  max-width: 1320px;
  min-height: auto;
  display: grid;
  gap: 16px;
  align-content: start;
}

.training-plans-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
}

.training-plans-subnav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #d7e1ed;
  background: #f7fbff;
  color: #35506d;
  font-weight: 600;
  text-decoration: none;
}

.training-plans-subnav-link:hover {
  border-color: #b6cadb;
  background: #eef6fc;
}

.training-plans-subnav-link-active {
  border-color: #34b9c6;
  background: rgba(52, 185, 198, 0.12);
  color: #163652;
}

.training-plans-page-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 18px 22px;
}

.training-plans-hero,
.training-plan-launch-banner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(52, 185, 198, 0.12) 0%, rgba(52, 185, 198, 0) 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 250, 255, 0.94) 100%);
}

.training-plans-hero-copy {
  max-width: 760px;
}

.training-plans-page-header-copy {
  max-width: 720px;
}

.training-plans-hero-meta {
  margin-top: 10px;
}

.training-plans-hero-actions,
.training-plan-template-actions,
.training-plan-assignment-step-actions,
.training-plan-builder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.training-plans-page-header-actions,
.training-plans-toolbar-actions,
.training-plan-library-side {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.training-plan-builder-panel,
.training-plan-template-panel,
.training-plan-assignment-panel,
.training-plans-next-panel {
  padding: 18px;
}

.training-plans-next-panel {
  display: grid;
  gap: 14px;
}

.training-plans-next-panel .section-head.compact {
  margin-bottom: 0;
}

.training-plans-next-panel .section-head.compact h2 {
  margin-bottom: 4px;
}

.training-plans-next-panel .section-head.compact .meta,
.training-plans-next-panel > h3,
.training-plans-next-panel > .meta {
  margin-bottom: 0;
}

.training-plans-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.training-plans-summary-grid,
.training-plans-section-grid {
  display: grid;
  gap: 16px;
}

.training-plans-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.training-plans-section-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.training-plans-summary-card {
  min-height: 100%;
  padding: 18px;
}

.training-plan-library-list {
  display: grid;
  gap: 14px;
}

.training-plan-library-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 16px;
}

.training-plan-library-main {
  display: grid;
  gap: 12px;
}

.training-plan-library-side {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  min-width: 152px;
}

.training-plan-operations-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
  gap: 16px;
}

.training-plan-assign-summary {
  align-self: stretch;
}

.training-plan-assign-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.training-plan-assign-summary-grid > div {
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: #f8fbff;
  padding: 14px;
}

.training-plan-assign-summary-grid strong {
  display: block;
  font-size: 1.4rem;
  color: #143567;
}

.training-plan-card-muted {
  opacity: 0.86;
}

.training-plan-builder-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.training-plan-field-wide {
  grid-column: 1 / -1;
}

.training-plan-step-stack,
.training-plan-card-stack,
.training-plan-assignment-step-list,
.training-plan-template-step-list {
  display: grid;
  gap: 12px;
}

.training-plan-step-card,
.training-plan-card,
.training-plan-assignment-next,
.training-plan-template-step-item,
.training-plan-assignment-step-item {
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.training-plan-step-card,
.training-plan-card,
.training-plan-assignment-next,
.training-plan-assignment-step-item {
  padding: 14px;
}

.training-plan-assignment-panel .training-plan-card,
.training-plan-assignment-panel .training-plan-assignment-next,
.training-plan-assignment-panel .training-plan-assignment-step-item {
  display: grid;
  gap: 14px;
}

.training-plan-card-head,
.training-plan-assignment-step-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.training-plan-template-step-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
}

.training-plan-assign-field {
  min-width: 210px;
  flex: 1 1 210px;
}

.training-plans-coach-note {
  margin: 0;
  border-left: 3px solid #34b9c6;
  padding-left: 10px;
}

.training-plan-assignment-panel .training-plan-assignment-step-actions {
  margin-top: 4px;
}

.training-plan-launch-banner h2,
.training-plan-card h3,
.training-plan-step-card h3 {
  margin-bottom: 6px;
}

@media (max-width: 700px) {
  .setup-grid {
    grid-template-columns: 1fr;
  }

  .setup-mode-grid {
    grid-template-columns: 1fr;
  }

  .setup-wizard-steps {
    grid-template-columns: 1fr;
  }

  .setup-review-grid {
    grid-template-columns: 1fr;
  }

  .brief-grid {
    grid-template-columns: 1fr;
  }

  .organization-workspace-grid,
  .organization-summary-grid,
  .organization-member-form-grid,
  .organization-invite-form-grid,
  .organization-workspace-form-grid {
    grid-template-columns: 1fr;
  }

  .organization-toolbar {
    grid-template-columns: 1fr;
  }

  form {
    flex-direction: column;
  }

  .knowledge-base-task-grid,
  .knowledge-base-screen-link-grid {
    grid-template-columns: 1fr;
  }

  .knowledge-base-article-head {
    flex-direction: column;
  }

  .knowledge-base-article-meta {
    align-items: flex-start;
  }

  .knowledge-base-related-links,
  .knowledge-base-section-nav-links {
    flex-direction: column;
  }

  .knowledge-base-related-link-button,
  .knowledge-base-section-nav-link,
  .knowledge-base-route-link {
    width: 100%;
  }

  .conversation-history-filter-bar,
  .conversation-history-filter-bar-people,
  .conversation-history-person-session-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .call-page {
    width: 100%;
    max-width: calc(100dvw - 20px);
    margin-inline: auto;
    overflow-x: clip;
  }

  .call-page > * {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .app-shell {
    display: block;
    grid-template-columns: 1fr;
  }

  .app-shell-collapsed {
    display: block;
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 12px;
    gap: 0;
    justify-content: flex-start;
  }

  .app-sidebar-top {
    gap: 0;
  }

  .app-sidebar-brand-row {
    justify-content: space-between;
  }

  .app-brand {
    padding: 4px 8px;
  }

  .app-brand-logo-frame,
  .app-sidebar-collapsed .app-brand-logo-frame {
    max-width: 154px;
  }

  .app-brand-logo-svg {
    width: 154px;
  }

  .app-sidebar-toggle {
    display: inline-flex;
  }

  .app-sidebar-nav,
  .app-sidebar-bottom {
    display: none;
  }

  .app-sidebar-mobile-open {
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  }

  .app-sidebar-mobile-open .app-sidebar-top {
    gap: 10px;
  }

  .app-sidebar-mobile-open .app-sidebar-nav,
  .app-sidebar-mobile-open .app-sidebar-bottom {
    display: flex;
  }

  .app-sidebar-nav {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .app-sidebar-link {
    width: 100%;
    padding: 10px 12px;
    font-size: 0.95rem;
  }

  .app-sidebar-collapsed .app-sidebar-link,
  .app-sidebar-collapsed .app-sidebar-action-link,
  .app-sidebar-collapsed .app-sidebar-profile-link {
    justify-content: flex-start;
    padding-left: 10px;
    padding-right: 10px;
  }

  .app-sidebar-collapsed .app-sidebar-nav,
  .app-sidebar-collapsed .app-sidebar-bottom {
    align-items: stretch;
  }

  .app-sidebar-collapsed .app-sidebar-link-label,
  .app-sidebar-collapsed .app-sidebar-profile-name {
    display: inline;
  }

  .app-sidebar-bottom {
    padding: 10px 0 0;
    margin-top: 10px;
    border-top: 1px solid #e5e7eb;
    align-items: stretch;
  }

  .app-sidebar-action-button,
  .app-sidebar-action-link,
  .app-sidebar-profile-link {
    width: 100%;
    min-width: 0;
  }

  .app-content {
    padding: 10px 10px 18px;
  }

  main {
    max-width: 100%;
    min-height: auto;
    padding: 10px 8px 18px;
  }

  .public-site-main {
    padding: 18px 12px 28px;
  }

  .public-nav,
  .public-site-header,
  .public-signup-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .public-nav-links {
    justify-content: flex-start;
  }

  .public-hero-grid,
  .public-value-grid,
  .public-overview-grid,
  .public-stat-grid,
  .public-library-grid,
  .public-process-grid,
  .public-audience-grid,
  .public-faq-grid {
    grid-template-columns: 1fr;
  }

  .public-hero-panel {
    padding: 20px;
  }

  .public-hero-copy h1,
  .public-auth-panel h1 {
    font-size: clamp(1.8rem, 8vw, 2.7rem);
  }

  .public-stage-card,
  .public-content-panel {
    padding: 18px;
  }

  .cockpit-layout {
    grid-template-columns: 1fr;
  }

  .session-side {
    position: static;
  }

  .session-side-live {
    max-height: none;
  }

  .section-head {
    flex-direction: column;
  }

  .live-call-grid {
    grid-template-columns: 1fr;
  }

  .live-call-grid-live {
    grid-template-columns: 1fr;
  }

  .call-setup-hero,
  .call-setup-layout,
  .call-setup-head {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .call-setup-hero-meta,
  .call-setup-head-status,
  .call-setup-side-actions {
    justify-content: flex-start;
  }

  .call-setup-side {
    display: none;
    position: static;
  }

  .call-setup-mobile-summary {
    display: block;
    width: 100%;
    max-width: 100%;
  }

  .call-setup-hero {
    padding: 18px 18px 16px;
    gap: 14px;
    width: 100%;
    max-width: 100%;
  }

  .call-setup-hero-copy {
    max-width: none;
  }

  .call-setup-hero-copy h1 {
    margin-bottom: 10px;
    font-size: clamp(2rem, 7vw, 2.6rem);
    line-height: 1.05;
  }

  .call-setup-hero-meta {
    width: 100%;
    overflow-x: visible;
    flex-wrap: wrap;
    padding-bottom: 0;
  }

  .call-setup-hero-meta .status-pill {
    white-space: normal;
    flex: 0 1 auto;
  }

  .setup.panel {
    width: 100%;
    max-width: 100%;
    padding-bottom: 92px;
  }

  .call-setup-layout {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .call-setup-head-status {
    width: 100%;
  }

  .setup-wizard-steps {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 4px;
    margin-bottom: 10px;
  }

  .setup-wizard-step-trigger {
    min-height: 0;
    min-width: 148px;
    border-radius: 14px;
    padding: 10px 12px;
    grid-template-columns: 28px minmax(0, 1fr);
    grid-template-areas:
      "index text"
      "status status";
    grid-template-rows: auto auto;
    align-items: start;
    scroll-snap-align: start;
  }

  .setup-wizard-step-index {
    width: 28px;
    height: 28px;
    font-size: 0.78rem;
  }

  .setup-wizard-step-text {
    gap: 2px;
  }

  .setup-wizard-step-text strong {
    font-size: 0.9rem;
  }

  .setup-wizard-step-text small {
    display: none;
  }

  .setup-wizard-step-status {
    justify-self: flex-start;
    font-size: 0.72rem;
    margin-top: 6px;
  }

  .setup-wizard-step {
    flex: 0 0 auto;
  }

  .setup-wizard-step-active .setup-wizard-step-trigger {
    min-width: 196px;
  }

  .setup-wizard-step-active .setup-wizard-step-text small {
    display: block;
    font-size: 0.78rem;
    line-height: 1.32;
  }

  .setup-wizard-body {
    border-radius: 16px;
    padding: 16px;
  }

  .setup-review-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .setup-review-grid .meta {
    padding: 10px 12px;
    border: 1px solid #e5eaf3;
    border-radius: 12px;
    background: #ffffff;
  }

  .setup-review-action .controls,
  .setup-wizard-controls {
    display: none;
  }

  .setup-mobile-action-bar {
    position: sticky;
    bottom: 10px;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    gap: 10px;
    padding: 12px;
    margin-top: 14px;
    border: 1px solid rgba(191, 213, 235, 0.95);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
  }

  .setup-mobile-action-bar .primary-button,
  .setup-mobile-action-bar .secondary-button {
    width: 100%;
    justify-content: center;
  }

  .call-timer-card {
    min-width: min(100%, 240px);
  }

  .live-call-controls {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .live-call-controls-live,
  .live-score-summary-grid,
  .live-score-insight-grid {
    grid-template-columns: 1fr;
  }

  .score-trend-wrap {
    overflow-x: hidden;
  }

  .score-trend-svg {
    min-width: 0;
  }

  .customer-brief-head,
  .setup-wizard-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .setup-hub-grid {
    grid-template-columns: 1fr;
  }

  .conversation-history-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .detail-analytics-grid {
    grid-template-columns: 1fr;
  }

  .detail-insights-grid {
    grid-template-columns: 1fr;
  }

  .conversation-history-filter-bar {
    grid-template-columns: 1fr;
  }

  .conversation-history-person-head {
    flex-direction: column;
  }

  .conversation-history-view-tabs {
    width: 100%;
  }

  .conversation-history-view-tab {
    flex: 1 1 0;
  }

  .organization-member-head {
    flex-direction: column;
  }

  .invite-template-page-hero {
    flex-direction: column;
  }

  .invite-template-editor-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-command-strip,
  .dashboard-overview-grid,
  .dashboard-main-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-dashboard-page {
    padding-top: 10px;
    padding-bottom: 12px;
  }

  .dashboard-command-strip {
    padding: 16px;
  }

  .dashboard-command-actions {
    align-items: flex-start;
  }

  .knowledge-base-hero,
  .knowledge-base-layout {
    grid-template-columns: 1fr;
  }

  .knowledge-base-sidebar {
    position: static;
  }

  .knowledge-base-task-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .knowledge-base-screen-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .session-history-item {
    flex-direction: column;
  }

  .profile-hero {
    align-items: flex-start;
  }

  .session-history-actions {
    justify-content: flex-start;
  }

  .session-history-card-head {
    flex-direction: column;
  }

  .dashboard-session-head,
  .dashboard-ranking-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-ranking-card span {
    text-align: left;
  }

  .training-plans-hero,
  .training-plans-page-header,
  .training-plan-launch-banner,
  .training-plan-card-head,
  .training-plan-assignment-step-head,
  .training-plan-template-step-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .training-plan-builder-grid {
    grid-template-columns: 1fr;
  }

  .training-plan-library-item,
  .training-plan-operations-grid,
  .training-plans-summary-grid,
  .training-plans-section-grid {
    grid-template-columns: 1fr;
  }

  .training-plan-library-side,
  .training-plans-page-header-actions,
  .training-plans-toolbar-actions {
    width: 100%;
  }

  .training-plan-assign-summary-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .call-setup-hero {
    padding: 16px;
  }

  .call-setup-hero-copy h1 {
    font-size: clamp(1.9rem, 9vw, 2.3rem);
  }

  .call-setup-mobile-summary-trigger {
    padding: 14px;
  }

  .call-setup-mobile-summary-body {
    padding: 0 14px 14px;
  }

  .setup.panel {
    padding: 14px 14px 92px;
  }

  .setup-wizard-step-trigger {
    min-width: 140px;
    padding: 10px 11px;
  }

  .setup-wizard-step-active .setup-wizard-step-trigger {
    min-width: 184px;
  }

  .setup-mobile-action-bar {
    grid-template-columns: 1fr;
    bottom: 8px;
  }

  .conversation-history-person-score {
    min-width: 92px;
    min-height: 92px;
  }

  .dashboard-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-band-meta,
  .dashboard-hero-actions,
  .dashboard-command-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-command-strip {
    padding: 14px;
    gap: 12px;
  }

  .dashboard-command-summary {
    display: none;
  }

  .dashboard-command-strip .status-pill:nth-child(n + 3) {
    display: none;
  }

  .dashboard-view-tabs {
    width: 100%;
  }

  .dashboard-view-tab {
    flex: 1 1 0;
  }

  .dashboard-stat-card {
    min-height: 84px;
    padding: 12px;
  }

  .dashboard-stat-value {
    font-size: 1.55rem;
  }

  .dashboard-stat-help {
    display: none;
  }

  .dashboard-overview-panel {
    display: none;
  }

  .dashboard-snapshot-metrics {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .setup-panel,
  .ready-panel {
    transition: none;
  }
}
