:root {
  --brand-navy: #253551;
  --brand-charcoal: #2a2829;
  --brand-cream: #e0e0db;
  --brand-signal: #f3e02b;
  --brand-white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
}

.brand-halo {
  position: fixed;
  top: -120px;
  right: -120px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(243, 224, 43, 0.38) 0%, rgba(243, 224, 43, 0) 72%);
  pointer-events: none;
  z-index: 0;
}

main,
header {
  position: relative;
  z-index: 1;
}

.reveal {
  animation: rise-in 340ms ease-out both;
}

.module-card {
  border: 1px solid rgba(42, 40, 41, 0.2);
  background: var(--brand-white);
  padding: 1.5rem;
  box-shadow: 0 20px 40px -24px rgba(37, 53, 81, 0.38);
}

.module-card h2 {
  margin-top: 0.35rem;
  margin-bottom: 0.45rem;
  font-size: 1.32rem;
  line-height: 1.25;
  font-weight: 500;
  color: var(--brand-charcoal);
}

.module-card p {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.6;
  font-weight: 300;
  color: rgba(42, 40, 41, 0.85);
}

.module-card ul {
  margin: 1rem 0 0;
  padding-left: 1rem;
}

.module-card li {
  margin: 0.24rem 0;
  font-size: 0.89rem;
  line-height: 1.45;
  color: rgba(42, 40, 41, 0.85);
}

.module-index {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: rgba(37, 53, 81, 0.85);
}

.workspace-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.workspace-tab {
  border: 1px solid rgba(42, 40, 41, 0.35);
  background: var(--brand-white);
  color: var(--brand-charcoal);
  padding: 0.5rem 0.8rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.workspace-tab:hover {
  background: rgba(37, 53, 81, 0.08);
}

.workspace-tab.is-active {
  background: var(--brand-navy);
  color: var(--brand-white);
  border-color: var(--brand-navy);
}

.workspace-tab:focus-visible {
  outline: 2px solid rgba(37, 53, 81, 0.32);
  outline-offset: 1px;
}

.case-study-control {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.case-study-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(37, 53, 81, 0.8);
}

.case-study-select {
  min-width: 220px;
  border: 1px solid rgba(42, 40, 41, 0.24);
  background: var(--brand-white);
  padding: 0.42rem 0.54rem;
  font-size: 0.78rem;
  color: var(--brand-charcoal);
}

.tab-panel {
  animation: rise-in 220ms ease-out both;
}

.tab-panel[hidden] {
  display: none !important;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767px) {
  .brand-halo {
    width: 260px;
    height: 260px;
  }

  .module-card h2 {
    font-size: 1.18rem;
  }

  .workspace-tabs {
    gap: 0.35rem;
  }

  .workspace-tab {
    font-size: 0.65rem;
    padding: 0.42rem 0.6rem;
  }

  .case-study-control {
    gap: 0.3rem;
  }

  .case-study-label {
    display: none;
  }

  .case-study-select {
    min-width: 165px;
    font-size: 0.72rem;
    padding: 0.36rem 0.45rem;
  }
}

.explorer-stat-card {
  border: 1px solid rgba(42, 40, 41, 0.2);
  background: var(--brand-cream);
  padding: 0.75rem 0.9rem;
}

.explorer-stat-card p {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(37, 53, 81, 0.82);
}

.explorer-stat-card h3 {
  margin: 0.35rem 0 0;
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 500;
  color: var(--brand-charcoal);
  word-break: break-word;
}

.methodology-panel {
  border: 1px solid rgba(37, 53, 81, 0.24);
  background: linear-gradient(180deg, #faf9f5 0%, #f1eee6 100%);
  padding: 0.95rem;
}

.methodology-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(37, 53, 81, 0.95);
}

.methodology-intro {
  margin: 0.45rem 0 0;
  max-width: 64ch;
  font-size: 0.84rem;
  line-height: 1.5;
  color: rgba(42, 40, 41, 0.84);
}

.methodology-flow {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 760px) {
  .methodology-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1180px) {
  .methodology-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.methodology-flow-step {
  border: 1px solid rgba(42, 40, 41, 0.2);
  border-top: 3px solid rgba(37, 53, 81, 0.58);
  background: rgba(255, 255, 255, 0.84);
  padding: 0.62rem 0.68rem;
  min-height: 122px;
  box-shadow: 0 6px 14px -12px rgba(37, 53, 81, 0.4);
}

.methodology-flow-step h4 {
  margin: 0.24rem 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: rgba(37, 53, 81, 0.98);
}

.methodology-flow-step p:last-child {
  margin: 0.3rem 0 0;
  font-size: 0.76rem;
  line-height: 1.42;
  color: rgba(42, 40, 41, 0.9);
}

.methodology-step-kicker {
  margin: 0;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: rgba(37, 53, 81, 0.82);
}

.methodology-visual-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 1120px) {
  .methodology-visual-grid {
    grid-template-columns: 1.4fr 1fr;
  }
}

.methodology-visual-card {
  border: 1px solid rgba(42, 40, 41, 0.2);
  background: #fbfaf7;
  padding: 0.85rem 0.9rem;
}

.methodology-visual-card h3 {
  margin: 0;
  font-size: 0.83rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(37, 53, 81, 0.94);
}

.methodology-visual-card p {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(42, 40, 41, 0.84);
}

.methodology-bullet-list {
  margin: 0.65rem 0 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.35rem;
}

.methodology-bullet-list li {
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(42, 40, 41, 0.88);
}

.methodology-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.methodology-pill {
  border: 1px solid rgba(42, 40, 41, 0.22);
  background: rgba(255, 255, 255, 0.9);
  padding: 0.3rem 0.45rem;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  color: rgba(37, 53, 81, 0.9);
}

.methodology-pill strong {
  font-size: 0.75rem;
  margin-left: 0.2rem;
}

.methodology-pill-clustering {
  border-color: rgba(54, 90, 122, 0.45);
  background: rgba(54, 90, 122, 0.1);
}

.methodology-pill-regression {
  border-color: rgba(184, 132, 56, 0.45);
  background: rgba(184, 132, 56, 0.12);
}

.methodology-input-columns {
  display: grid;
  gap: 0.58rem;
}

@media (min-width: 760px) {
  .methodology-input-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.methodology-input-col h4 {
  margin: 0;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  color: rgba(37, 53, 81, 0.9);
}

.methodology-code-list {
  margin-top: 0.32rem;
  max-height: 140px;
  overflow: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0.18rem;
  border: 1px solid rgba(42, 40, 41, 0.15);
  background: rgba(255, 255, 255, 0.78);
}

.methodology-code-chip {
  border: 1px solid rgba(42, 40, 41, 0.24);
  background: #ffffff;
  padding: 0.16rem 0.34rem;
  font-size: 0.66rem;
  line-height: 1.2;
  font-weight: 700;
  color: rgba(37, 53, 81, 0.92);
}

.methodology-code-empty {
  margin: 0;
  font-size: 0.76rem;
  color: rgba(42, 40, 41, 0.68);
}

.survey-curated-panel {
  display: grid;
  gap: 0.85rem;
}

.survey-signal-grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 1080px) {
  .survey-signal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.survey-signal-card {
  border: 1px solid rgba(42, 40, 41, 0.2);
  background: #fbfaf7;
  padding: 0.9rem;
}

.survey-signal-card-hero {
  background: linear-gradient(135deg, rgba(37, 53, 81, 0.08), rgba(226, 13, 24, 0.06));
}

.survey-signal-card h3 {
  margin: 0;
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(37, 53, 81, 0.94);
}

.survey-signal-card p {
  margin: 0.38rem 0 0;
  font-size: 0.82rem;
  line-height: 1.48;
  color: rgba(42, 40, 41, 0.86);
}

.survey-signal-stat-grid {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 840px) {
  .survey-signal-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.survey-signal-stat {
  border: 1px solid rgba(42, 40, 41, 0.18);
  background: rgba(255, 255, 255, 0.82);
  padding: 0.72rem 0.78rem;
}

.survey-signal-stat p {
  margin: 0;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: rgba(37, 53, 81, 0.75);
}

.survey-signal-stat h4 {
  margin: 0.26rem 0 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: rgba(42, 40, 41, 0.96);
}

.survey-signal-stat span {
  display: block;
  margin-top: 0.28rem;
  font-size: 0.74rem;
  line-height: 1.4;
  color: rgba(42, 40, 41, 0.7);
}

.survey-ranked-bars {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.46rem;
}

.survey-ranked-row {
  display: grid;
  gap: 0.55rem;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) 1.3fr auto;
}

.survey-ranked-label,
.survey-ranked-value {
  font-size: 0.76rem;
  color: rgba(42, 40, 41, 0.9);
}

.survey-ranked-track {
  height: 9px;
  background: rgba(42, 40, 41, 0.08);
  overflow: hidden;
}

.survey-ranked-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(37, 53, 81, 0.9), rgba(226, 13, 24, 0.9));
}

.survey-comparison-card {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.survey-comparison-side {
  border: 1px solid rgba(42, 40, 41, 0.16);
  background: rgba(255, 255, 255, 0.88);
  padding: 0.72rem;
}

.survey-comparison-side span {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: rgba(37, 53, 81, 0.72);
}

.survey-comparison-side strong {
  display: block;
  margin-top: 0.28rem;
  font-size: 1.28rem;
  color: rgba(42, 40, 41, 0.96);
}

.survey-media-matrix {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.55rem;
}

.survey-media-row {
  display: grid;
  gap: 0.6rem;
  align-items: center;
  grid-template-columns: 160px minmax(0, 1fr);
}

.survey-media-label {
  font-size: 0.74rem;
  color: rgba(42, 40, 41, 0.86);
}

.survey-media-bars {
  display: grid;
  gap: 0.3rem;
}

.survey-media-bar {
  min-height: 24px;
  padding: 0.22rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
}

.survey-media-bar.is-primary {
  background: rgba(37, 53, 81, 0.92);
}

.survey-media-bar.is-secondary {
  background: rgba(184, 132, 56, 0.88);
}

.survey-audience-definition {
  margin-top: 0.85rem;
  border: 1px solid rgba(42, 40, 41, 0.16);
  background: rgba(255, 255, 255, 0.88);
  padding: 0.8rem;
}

.survey-audience-definition h4 {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
  color: rgba(37, 53, 81, 0.95);
}

.survey-audience-definition p {
  margin: 0.45rem 0 0;
}

.methodology-next-grid {
  display: grid;
  gap: 0.38rem;
}

.methodology-next-btn {
  border: 1px solid rgba(42, 40, 41, 0.28);
  background: #ffffff;
  text-align: left;
  padding: 0.5rem 0.58rem;
  font-size: 0.73rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(37, 53, 81, 0.95);
  cursor: pointer;
}

.methodology-next-btn:hover {
  background: rgba(37, 53, 81, 0.08);
}

.creative-grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 1120px) {
  .creative-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.creative-card {
  border: 1px solid rgba(42, 40, 41, 0.2);
  background: #fbfaf7;
  padding: 0.85rem 0.9rem;
}

.creative-head {
  margin-bottom: 0.55rem;
}

.creative-title {
  margin: 0;
  font-size: 0.83rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(37, 53, 81, 0.94);
}

.creative-subtitle {
  margin: 0.34rem 0 0;
  font-size: 0.81rem;
  line-height: 1.45;
  color: rgba(42, 40, 41, 0.84);
}

.creative-matrix-wrap {
  overflow: auto;
}

.creative-matrix {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0.35rem;
  min-width: 720px;
}

.creative-matrix th,
.creative-matrix td {
  border: 1px solid rgba(42, 40, 41, 0.2);
  background: #ffffff;
  padding: 0.56rem 0.62rem;
  vertical-align: top;
}

.creative-matrix-rowhead {
  min-width: 130px;
  text-align: left;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(37, 53, 81, 0.92);
  background: rgba(37, 53, 81, 0.08) !important;
}

.creative-matrix-colhead {
  min-width: 185px;
  border-top: 4px solid rgba(37, 53, 81, 0.6) !important;
}

.creative-matrix-colname {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: rgba(42, 40, 41, 0.95);
}

.creative-matrix-colmeta {
  display: block;
  margin-top: 0.14rem;
  font-size: 0.69rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(37, 53, 81, 0.82);
}

.creative-tactic-grid {
  display: grid;
  gap: 0.55rem;
}

.creative-tactic-card {
  border: 1px solid rgba(42, 40, 41, 0.2);
  border-top: 4px solid rgba(37, 53, 81, 0.6);
  background: #ffffff;
  padding: 0.56rem 0.62rem;
}

.creative-tactic-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: baseline;
}

.creative-tactic-segment {
  margin: 0;
  font-size: 0.89rem;
  font-weight: 700;
  color: rgba(42, 40, 41, 0.95);
}

.creative-tactic-meta {
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: rgba(37, 53, 81, 0.85);
}

.creative-tactic-line {
  margin: 0.36rem 0 0;
  font-size: 0.81rem;
  line-height: 1.45;
  color: rgba(42, 40, 41, 0.88);
}

.creative-tactic-key {
  font-weight: 700;
  color: rgba(37, 53, 81, 0.95);
}

.creative-perception-board {
  display: grid;
  gap: 0.45rem;
}

.creative-perception-item {
  border: 1px solid rgba(42, 40, 41, 0.2);
  background: #ffffff;
  padding: 0.44rem 0.52rem;
}

.creative-perception-rank {
  display: inline-block;
  border: 1px solid rgba(37, 53, 81, 0.3);
  background: rgba(37, 53, 81, 0.08);
  padding: 0.08rem 0.3rem;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: rgba(37, 53, 81, 0.92);
}

.creative-perception-label {
  margin: 0.3rem 0 0;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
  color: rgba(42, 40, 41, 0.95);
}

.creative-perception-meta {
  margin: 0.2rem 0 0;
  font-size: 0.74rem;
  color: rgba(42, 40, 41, 0.76);
}

.creative-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.creative-toolbar-label {
  margin: 0;
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: rgba(37, 53, 81, 0.9);
}

.creative-segment-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.creative-segment-filter {
  border: 1px solid rgba(42, 40, 41, 0.28);
  background: #fff;
  padding: 0.34rem 0.58rem;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(37, 53, 81, 0.92);
  cursor: pointer;
}

.creative-segment-filter.is-active {
  background: var(--segment-accent, rgba(37, 53, 81, 0.12));
  color: #fff;
  border-color: var(--segment-accent, #253551);
}

.creative-asset-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 900px) {
  .creative-asset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.creative-asset-card {
  border: 1px solid rgba(42, 40, 41, 0.2);
  border-top: 4px solid rgba(37, 53, 81, 0.7);
  background: #fff;
  overflow: hidden;
}

.creative-asset-media {
  background: #f1f3f6;
  aspect-ratio: 16 / 9;
}

.creative-asset-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.creative-asset-body {
  padding: 0.6rem 0.7rem 0.75rem;
}

.creative-asset-meta {
  margin: 0;
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  color: rgba(37, 53, 81, 0.78);
}

.creative-asset-title {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  line-height: 1.3;
  font-weight: 700;
  color: rgba(42, 40, 41, 0.95);
}

.creative-asset-brief {
  margin: 0.36rem 0 0;
  font-size: 0.74rem;
  line-height: 1.4;
  color: rgba(37, 53, 81, 0.9);
  font-weight: 600;
}

.creative-asset-rationale {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(42, 40, 41, 0.87);
}

.creative-asset-prompt {
  margin: 0.36rem 0 0;
  font-size: 0.7rem;
  line-height: 1.45;
  color: rgba(42, 40, 41, 0.72);
}

.creative-asset-chips {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.33rem;
}

.creative-asset-chip {
  border: 1px solid rgba(42, 40, 41, 0.24);
  background: #fff;
  padding: 0.15rem 0.35rem;
  font-size: 0.64rem;
  font-weight: 700;
  color: rgba(37, 53, 81, 0.9);
}

.creative-asset-actions {
  margin-top: 0.55rem;
}

.creative-asset-link {
  display: inline-block;
  border: 1px solid rgba(37, 53, 81, 0.38);
  background: rgba(37, 53, 81, 0.06);
  color: rgba(37, 53, 81, 0.96);
  padding: 0.26rem 0.46rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.creative-asset-link:hover {
  background: rgba(37, 53, 81, 0.14);
}

.explorer-control {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.explorer-control span {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(37, 53, 81, 0.82);
}

.explorer-input,
.explorer-select {
  width: 100%;
  border: 1px solid rgba(42, 40, 41, 0.25);
  background: var(--brand-white);
  padding: 0.55rem 0.65rem;
  font-size: 0.9rem;
  color: var(--brand-charcoal);
}

.explorer-input:focus,
.explorer-select:focus {
  outline: 2px solid rgba(37, 53, 81, 0.28);
  outline-offset: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(42, 40, 41, 0.25);
  padding: 0.45rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-pill[data-state="info"] {
  background: #f2f2ef;
  color: #2a2829;
}

.status-pill[data-state="success"] {
  background: #d9ecdf;
  color: #184f2f;
}

.status-pill[data-state="warn"] {
  background: #f3e8cb;
  color: #5b4513;
}

.status-pill[data-state="error"] {
  background: #f3d6d6;
  color: #6a1b1b;
}

.explorer-table-wrap {
  max-height: 560px;
  overflow-y: auto;
  overflow-x: hidden;
}

.explorer-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.explorer-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  border-bottom: 1px solid rgba(42, 40, 41, 0.2);
  background: #f4f4f0;
  text-align: left;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.header-button {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0.52rem 0.62rem;
  font-weight: 700;
  color: rgba(37, 53, 81, 0.95);
}

.header-button:hover {
  background: rgba(37, 53, 81, 0.08);
}

.header-button span:first-child {
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.sort-indicator {
  color: rgba(42, 40, 41, 0.72);
  font-size: 0.64rem;
}

.explorer-table tbody td {
  border-bottom: 1px solid rgba(42, 40, 41, 0.12);
  padding: 0.45rem 0.62rem;
  max-width: 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: rgba(42, 40, 41, 0.95);
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.explorer-table tbody tr:hover td {
  background: rgba(37, 53, 81, 0.05);
}

.empty-cell {
  padding: 1rem;
  font-size: 0.88rem;
  color: rgba(42, 40, 41, 0.78);
}

.pager-button {
  border: 1px solid rgba(42, 40, 41, 0.35);
  background: var(--brand-white);
  padding: 0.35rem 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brand-charcoal);
  cursor: pointer;
}

.pager-button:hover:not(:disabled) {
  background: var(--brand-charcoal);
  color: var(--brand-white);
}

.pager-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.column-toggle-list {
  margin-top: 0.75rem;
  max-height: 240px;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0.32rem;
}

.column-toggle-group {
  border: 1px solid rgba(42, 40, 41, 0.14);
  background: #faf9f6;
  padding: 0.42rem 0.45rem;
}

.column-toggle-group-title {
  margin: 0 0 0.34rem;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: rgba(37, 53, 81, 0.9);
}

.column-toggle-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.25rem 0.05rem;
  font-size: 0.78rem;
  color: rgba(42, 40, 41, 0.9);
}

.column-toggle-item input {
  margin-top: 0.2rem;
}

.question-role-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.question-role-chip {
  border: 1px solid rgba(42, 40, 41, 0.18);
  background: #f5f4f0;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  color: rgba(37, 53, 81, 0.86);
  padding: 0.18rem 0.35rem;
}

.question-role-chip[data-role="clustering"] {
  border-color: rgba(54, 90, 122, 0.45);
  background: rgba(54, 90, 122, 0.1);
}

.question-role-chip[data-role="regression"] {
  border-color: rgba(184, 132, 56, 0.45);
  background: rgba(184, 132, 56, 0.12);
}

.question-role-chip[data-role="profile"] {
  border-color: rgba(79, 124, 151, 0.45);
  background: rgba(79, 124, 151, 0.12);
}

.question-role-chip[data-role="context"] {
  border-color: rgba(42, 40, 41, 0.24);
  background: rgba(42, 40, 41, 0.06);
}

.meta-title {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--brand-charcoal);
}

.meta-line {
  margin: 0.22rem 0;
  font-size: 0.84rem;
  line-height: 1.45;
  word-break: break-word;
}

.meta-key {
  color: rgba(37, 53, 81, 0.95);
  font-weight: 700;
}

.segment-stat-card {
  border: 1px solid rgba(42, 40, 41, 0.2);
  background: var(--brand-cream);
  padding: 0.75rem 0.9rem;
}

.segment-stat-card p {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(37, 53, 81, 0.82);
}

.segment-stat-card h3 {
  margin: 0.35rem 0 0;
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 500;
  color: var(--brand-charcoal);
  word-break: break-word;
}

.segment-table-wrap {
  max-height: 520px;
  overflow: auto;
}

.segment-table {
  width: 100%;
  border-collapse: collapse;
}

.segment-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  border-bottom: 1px solid rgba(42, 40, 41, 0.2);
  background: #f4f4f0;
  text-align: left;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.52rem 0.62rem;
  color: rgba(37, 53, 81, 0.95);
}

.segment-table tbody td {
  border-bottom: 1px solid rgba(42, 40, 41, 0.12);
  padding: 0.5rem 0.62rem;
  font-size: 0.84rem;
  color: rgba(42, 40, 41, 0.95);
  vertical-align: top;
}

.segment-table tbody tr.is-focused td {
  background: rgba(37, 53, 81, 0.08);
}

.segment-focus-list {
  font-size: 0.84rem;
  line-height: 1.55;
  color: rgba(42, 40, 41, 0.88);
}

.segment-focus-line {
  margin: 0.26rem 0;
}

.segment-focus-key {
  font-weight: 700;
  color: rgba(37, 53, 81, 0.95);
}

.segment-card-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0.55rem;
}

.segment-mini-card {
  border: 1px solid rgba(42, 40, 41, 0.18);
  background: #f8f8f5;
  padding: 0.65rem 0.7rem;
}

.segment-mini-card p {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.45;
  color: rgba(42, 40, 41, 0.86);
}

.segment-mini-card p + p {
  margin-top: 0.34rem;
}

.segment-mini-card .segment-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: rgba(37, 53, 81, 0.95);
  margin-bottom: 0.24rem;
}

.segment-empty {
  font-size: 0.82rem;
  color: rgba(42, 40, 41, 0.75);
}

.analysis-guide {
  border: 1px solid rgba(42, 40, 41, 0.2);
  background: #f8f8f5;
  padding: 0.75rem 0.9rem;
}

.analysis-guide-title {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(37, 53, 81, 0.9);
}

.analysis-guide-step {
  margin: 0.5rem 0 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: rgba(42, 40, 41, 0.86);
}

.segment-layout {
  display: grid;
  gap: 1rem;
}

@media (min-width: 1120px) {
  .segment-layout {
    grid-template-columns: 290px minmax(0, 1fr);
  }
}

.segment-nav-panel {
  border: 1px solid rgba(42, 40, 41, 0.2);
  background: var(--brand-cream);
  padding: 0.85rem;
  height: fit-content;
}

.segment-nav-list {
  margin-top: 0.6rem;
  display: grid;
  gap: 0.42rem;
}

.segment-nav-btn {
  width: 100%;
  border: 1px solid rgba(42, 40, 41, 0.23);
  background: var(--brand-white);
  text-align: left;
  padding: 0.55rem 0.62rem;
  cursor: pointer;
}

.segment-nav-btn:hover {
  background: rgba(37, 53, 81, 0.06);
}

.segment-nav-btn.is-active {
  border-color: var(--brand-navy);
  background: rgba(37, 53, 81, 0.12);
}

.segment-nav-name {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(37, 53, 81, 0.95);
}

.segment-nav-meta {
  display: block;
  margin-top: 0.16rem;
  font-size: 0.73rem;
  color: rgba(42, 40, 41, 0.8);
}

.segment-detail-hero {
  border: 1px solid rgba(42, 40, 41, 0.18);
  background: #f4f4f0;
  overflow: hidden;
}

.segment-detail-photo {
  display: block;
  width: 100%;
  height: clamp(220px, 32vw, 300px);
  object-fit: cover;
}

.segment-metric-grid {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 860px) {
  .segment-metric-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.segment-metric {
  border: 1px solid rgba(42, 40, 41, 0.2);
  background: #f8f8f5;
  padding: 0.52rem 0.58rem;
}

.segment-metric p {
  margin: 0;
  font-size: 0.69rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: rgba(37, 53, 81, 0.82);
}

.segment-metric h4 {
  margin: 0.26rem 0 0;
  font-size: 0.94rem;
  font-weight: 700;
  color: rgba(42, 40, 41, 0.95);
}

.playbook-grid {
  display: grid;
  gap: 0.55rem;
}

@media (min-width: 1024px) {
  .playbook-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .playbook-card.playbook-card-wide {
    grid-column: span 2;
  }
}

.playbook-card {
  border: 1px solid rgba(42, 40, 41, 0.2);
  background: var(--brand-white);
  padding: 0.62rem 0.7rem;
}

.playbook-card h4 {
  margin: 0;
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  color: rgba(37, 53, 81, 0.9);
}

.playbook-card p {
  margin: 0.36rem 0 0;
  font-size: 0.82rem;
  line-height: 1.48;
  color: rgba(42, 40, 41, 0.9);
}

.signal-card {
  border: 1px solid rgba(42, 40, 41, 0.2);
  background: #f8f8f5;
  padding: 0.65rem 0.72rem;
}

.signal-card h4 {
  margin: 0;
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  color: rgba(37, 53, 81, 0.9);
}

.signal-card p {
  margin: 0.32rem 0 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(42, 40, 41, 0.9);
}

.segment-matrix-wrap {
  max-height: 360px;
  overflow: auto;
}

.segment-matrix {
  width: 100%;
  border-collapse: collapse;
}

.segment-matrix thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  border-bottom: 1px solid rgba(42, 40, 41, 0.2);
  background: #f4f4f0;
  text-align: left;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.48rem 0.58rem;
  color: rgba(37, 53, 81, 0.95);
}

.segment-matrix tbody td {
  border-bottom: 1px solid rgba(42, 40, 41, 0.12);
  padding: 0.45rem 0.58rem;
  font-size: 0.81rem;
  line-height: 1.35;
  color: rgba(42, 40, 41, 0.95);
  vertical-align: top;
}

.segment-matrix tbody tr.is-focused td {
  background: rgba(37, 53, 81, 0.08);
}

.analysis-stat-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 760px) {
  .analysis-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1120px) {
  .analysis-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.analysis-stat-sub {
  margin-top: 0.28rem !important;
  font-size: 0.68rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  color: rgba(42, 40, 41, 0.72) !important;
}

.analysis-view-tabs {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 0.3rem;
  border: 1px solid rgba(42, 40, 41, 0.22);
  background: #f7f6f2;
  padding: 0.24rem;
}

.analysis-view-tab {
  border: 1px solid rgba(42, 40, 41, 0.22);
  background: transparent;
  color: rgba(37, 53, 81, 0.9);
  font-size: 0.69rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
}

.analysis-view-tab.is-active {
  background: #253551;
  color: #ffffff;
  border-color: #253551;
}

.analysis-hidden-by-view {
  display: none !important;
}

.analysis-columns {
  display: grid;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .analysis-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.analysis-driver-list {
  margin: 0.7rem 0 0;
  padding-left: 1rem;
  font-size: 0.86rem;
  line-height: 1.55;
  color: rgba(42, 40, 41, 0.9);
}

.analysis-driver-list li + li {
  margin-top: 0.36rem;
}

.analysis-section-head {
  border: 1px solid rgba(42, 40, 41, 0.16);
  background: #f8f8f5;
  padding: 0.6rem 0.72rem;
}

.analysis-section-kicker {
  margin: 0;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(37, 53, 81, 0.86);
}

.analysis-section-title {
  margin: 0.26rem 0 0;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.3;
  color: rgba(37, 53, 81, 0.96);
}

.analysis-section-copy {
  margin: 0.26rem 0 0;
  font-size: 0.76rem;
  line-height: 1.4;
  color: rgba(42, 40, 41, 0.8);
}

.analysis-viz-grid {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

@media (min-width: 1120px) {
  .analysis-viz-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.analysis-viz-card {
  border: 1px solid rgba(42, 40, 41, 0.2);
  background: var(--brand-white);
  padding: 0.8rem 0.9rem;
  min-width: 0;
}

.analysis-compare-grid {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 1180px) {
  .analysis-compare-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .analysis-compare-grid.is-single {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

.analysis-compare-card {
  border: 1px solid rgba(42, 40, 41, 0.18);
  background: #ffffff;
  padding: 0.22rem;
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

.analysis-compare-card h4 {
  margin: 0;
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: rgba(37, 53, 81, 0.92);
}

.analysis-map-inspector {
  border: 1px solid rgba(42, 40, 41, 0.16);
  background: #ffffff;
  padding: 0.52rem 0.6rem;
  font-size: 0.72rem;
  color: rgba(42, 40, 41, 0.9);
  line-height: 1.45;
}

.analysis-map-toolbar {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  border: 1px solid rgba(42, 40, 41, 0.16);
  background: #fbfbf8;
  padding: 0.55rem;
}

@media (min-width: 960px) {
  .analysis-map-toolbar {
    grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr)) auto;
    align-items: end;
  }
}

.analysis-map-stage-control {
  display: grid;
  gap: 0.22rem;
  min-width: 0;
}

.analysis-map-stage-control > span {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(37, 53, 81, 0.82);
  font-weight: 700;
}

.analysis-map-stage-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
}

.analysis-map-stage-btn {
  border: 1px solid rgba(42, 40, 41, 0.22);
  background: #ffffff;
  color: rgba(37, 53, 81, 0.9);
  font-size: 0.67rem;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  padding: 0.42rem 0.56rem;
  cursor: pointer;
}

.analysis-map-stage-btn.is-active {
  border-color: rgba(37, 53, 81, 0.72);
  background: rgba(37, 53, 81, 0.08);
}

.analysis-map-control {
  display: grid;
  gap: 0.22rem;
}

.analysis-map-control > span {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(37, 53, 81, 0.82);
  font-weight: 700;
}

.analysis-map-control input[type="search"],
.analysis-map-control select {
  border: 1px solid rgba(42, 40, 41, 0.26);
  background: #ffffff;
  font-size: 0.75rem;
  color: rgba(42, 40, 41, 0.92);
  padding: 0.34rem 0.44rem;
}

.analysis-map-control input[type="search"]::placeholder {
  color: rgba(42, 40, 41, 0.56);
}

.analysis-map-range-row {
  display: grid;
  gap: 0.42rem;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.analysis-map-range-row input[type="range"] {
  width: 100%;
}

.analysis-map-range-value {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(37, 53, 81, 0.88);
}

.analysis-map-clear-pin {
  border: 1px solid rgba(42, 40, 41, 0.28);
  background: #ffffff;
  color: rgba(37, 53, 81, 0.9);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  padding: 0.4rem 0.54rem;
  min-height: 2rem;
  cursor: pointer;
}

.analysis-map-meta {
  margin: 0;
  font-size: 0.7rem;
  color: rgba(42, 40, 41, 0.78);
  line-height: 1.35;
}

.analysis-map-group-filters {
  border: 1px solid rgba(42, 40, 41, 0.16);
  background: #ffffff;
  padding: 0.42rem 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem 0.46rem;
  align-items: center;
}

.analysis-map-group-title {
  margin: 0;
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: rgba(37, 53, 81, 0.86);
}

.analysis-map-group-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  color: rgba(42, 40, 41, 0.9);
  border: 1px solid rgba(42, 40, 41, 0.18);
  background: #f9f9f6;
  padding: 0.2rem 0.34rem;
}

.analysis-map-group-toggle input {
  margin: 0;
}

.analysis-map-group-swatch {
  width: 0.52rem;
  height: 0.52rem;
  border: 1px solid rgba(42, 40, 41, 0.28);
  display: inline-block;
  flex: none;
}

.analysis-map-group-note {
  margin: 0 0 0 auto;
  font-size: 0.64rem;
  color: rgba(42, 40, 41, 0.72);
}

.analysis-attribute-list {
  border: 1px solid rgba(42, 40, 41, 0.16);
  background: #ffffff;
  padding: 0.46rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem;
  min-height: 2.2rem;
  max-height: 7.8rem;
  overflow: auto;
}

.analysis-attr-chip {
  border: 1px solid rgba(42, 40, 41, 0.2);
  background: #f6f6f3;
  color: rgba(42, 40, 41, 0.9);
  font-size: 0.68rem;
  line-height: 1.25;
  padding: 0.24rem 0.4rem;
  cursor: pointer;
}

.analysis-attr-chip.is-visible {
  border-color: rgba(37, 53, 81, 0.5);
  background: rgba(37, 53, 81, 0.08);
}

.analysis-attr-chip.is-pinned {
  border-color: #253551;
  background: #253551;
  color: #ffffff;
}

.analysis-attr-chip-note {
  width: 100%;
  font-size: 0.66rem;
  color: rgba(42, 40, 41, 0.7);
}

.analysis-viz-copy {
  margin: 0.36rem 0 0;
  font-size: 0.76rem;
  line-height: 1.45;
  color: rgba(42, 40, 41, 0.78);
}

.analysis-share-bars {
  margin-top: 0.65rem;
}

.analysis-output-stack {
  display: flex;
  height: 12px;
  border: 1px solid rgba(42, 40, 41, 0.16);
  background: #f4f4f0;
  overflow: hidden;
}

.analysis-output-slice {
  min-width: 6px;
}

.analysis-output-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.2fr) minmax(120px, 2fr) minmax(120px, auto);
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.42rem;
}

.analysis-output-label {
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.3;
  color: rgba(37, 53, 81, 0.96);
}

.analysis-output-track {
  height: 12px;
  border: 1px solid rgba(42, 40, 41, 0.15);
  background: #f5f5f2;
}

.analysis-output-fill {
  height: 100%;
}

.analysis-output-value {
  text-align: right;
  font-size: 0.72rem;
  color: rgba(42, 40, 41, 0.82);
}

.analysis-heatmap {
  margin-top: 0.65rem;
  min-width: 0;
}

.analysis-heatmap-wrap {
  overflow: visible;
  max-height: none;
  min-width: 0;
}

.analysis-heatmap-matrix {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.analysis-heatmap-head {
  display: grid;
  grid-template-columns: minmax(120px, 1.1fr) repeat(var(--heatmap-columns, 5), minmax(0, 1fr));
  align-items: stretch;
  gap: 0.5rem;
  position: static;
  z-index: auto;
  background: transparent;
  padding-bottom: 0.25rem;
}

.analysis-heatmap-head-label,
.analysis-heatmap-head-cell {
  border-bottom: 1px solid rgba(42, 40, 41, 0.18);
  color: rgba(37, 53, 81, 0.95);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  padding: 0.42rem 0.4rem;
  line-height: 1.35;
  min-width: 0;
}

.analysis-heatmap-head-cell {
  display: flex;
  align-items: end;
  justify-content: center;
  text-align: center;
}

.analysis-heatmap-body {
  display: grid;
  gap: 0.42rem;
  min-width: 0;
}

.analysis-heatmap-row {
  display: grid;
  grid-template-columns: minmax(120px, 1.1fr) minmax(0, 1fr);
  gap: 0.5rem;
  align-items: stretch;
  min-width: 0;
}

.analysis-heatmap-segment {
  border: 1px solid rgba(42, 40, 41, 0.12);
  padding: 0.55rem 0.5rem;
  font-weight: 600;
  color: rgba(37, 53, 81, 0.95);
  background: #faf9f6;
  line-height: 1.35;
  min-width: 0;
}

.analysis-heatmap-metrics {
  display: grid;
  grid-template-columns: repeat(var(--heatmap-columns, 5), minmax(0, 1fr));
  gap: 0.38rem;
  min-width: 0;
}

.analysis-heatmap-metric {
  min-width: 0;
}

.analysis-heatmap-metric-label {
  display: none;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.3;
  color: rgba(37, 53, 81, 0.82);
  margin-bottom: 0.2rem;
}

.analysis-heatmap-cell {
  border: 1px solid rgba(42, 40, 41, 0.08);
  padding: 0.48rem 0.38rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.73rem;
  line-height: 1.25;
  min-width: 0;
  word-break: break-word;
}

.analysis-regression-overall {
  display: grid;
  gap: 0.42rem;
}

.analysis-regression-compare {
  border: 1px solid rgba(42, 40, 41, 0.16);
  background: #ffffff;
  padding: 0.44rem;
  overflow: auto;
}

.analysis-reg-compare-table {
  width: 100%;
  border-collapse: collapse;
}

.analysis-reg-compare-table thead th {
  border-bottom: 1px solid rgba(42, 40, 41, 0.2);
  background: #f6f5f2;
  text-align: left;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.38rem 0.42rem;
  color: rgba(37, 53, 81, 0.92);
  white-space: nowrap;
}

.analysis-reg-compare-table tbody td {
  border-bottom: 1px solid rgba(42, 40, 41, 0.11);
  padding: 0.35rem 0.42rem;
  font-size: 0.74rem;
  color: rgba(42, 40, 41, 0.9);
  vertical-align: middle;
}

.analysis-reg-compare-driver {
  min-width: 190px;
  font-weight: 600;
}

.analysis-reg-compare-cell {
  min-width: 120px;
}

.analysis-reg-compare-meter {
  position: relative;
  border: 1px solid rgba(42, 40, 41, 0.14);
  background: #f8f7f4;
  height: 18px;
  overflow: hidden;
}

.analysis-reg-compare-zero {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(42, 40, 41, 0.34);
}

.analysis-reg-compare-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  opacity: 0.72;
}

.analysis-reg-compare-value {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(42, 40, 41, 0.88);
}

.analysis-reg-compare-value[data-polarity="positive"] {
  color: rgba(34, 96, 56, 0.95);
}

.analysis-reg-compare-value[data-polarity="negative"] {
  color: rgba(138, 44, 44, 0.95);
}

.analysis-reg-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(120px, 2.1fr) auto;
  align-items: center;
  gap: 0.5rem;
}

.analysis-reg-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: rgba(37, 53, 81, 0.94);
  line-height: 1.3;
}

.analysis-reg-track {
  position: relative;
  height: 11px;
  border: 1px solid rgba(42, 40, 41, 0.16);
  background: #f5f5f2;
  overflow: hidden;
}

.analysis-reg-zero {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(42, 40, 41, 0.34);
}

.analysis-reg-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  background: #253551;
}

.analysis-reg-value {
  font-size: 0.72rem;
  color: rgba(42, 40, 41, 0.82);
  text-align: right;
}

.analysis-reg-value[data-polarity="positive"] {
  color: rgba(34, 96, 56, 0.95);
}

.analysis-reg-value[data-polarity="negative"] {
  color: rgba(138, 44, 44, 0.95);
}

.analysis-regression-segments {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 980px) {
  .analysis-regression-segments {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.analysis-reg-segment-card {
  border: 1px solid rgba(42, 40, 41, 0.16);
  background: #faf9f6;
  padding: 0.56rem 0.6rem;
}

.analysis-reg-segment-card h4 {
  margin: 0;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(37, 53, 81, 0.94);
}

.analysis-reg-segment-card .analysis-reg-row {
  margin-top: 0.42rem;
}

.analysis-reg-segment-card .analysis-reg-track {
  height: 10px;
}

.analysis-attribute-map {
  border: 1px solid rgba(42, 40, 41, 0.18);
  background: #ffffff;
  min-height: 320px;
  height: clamp(320px, 34vw, 460px);
  padding: 0;
}

.analysis-attribute-map.is-positioning {
  min-height: 360px;
  height: clamp(360px, 38vw, 520px);
  overflow: hidden;
}

.analysis-attribute-map svg {
  width: 100%;
  height: auto;
  display: block;
}

.analysis-attribute-map.is-positioning svg {
  width: 100%;
  height: 100%;
}

.analysis-positioning-map {
  width: 100%;
  height: 100%;
  display: block;
  background: #ffffff;
}

.analysis-positioning-group,
.analysis-positioning-node {
  pointer-events: none;
}

.analysis-positioning-group.is-dim,
.analysis-positioning-node.is-dim {
  opacity: 0.2;
}

.analysis-positioning-group.is-active,
.analysis-positioning-node.is-active {
  opacity: 1;
}

.analysis-positioning-group.is-active rect,
.analysis-positioning-group.is-active circle {
  stroke-width: 1.7;
}

.analysis-positioning-node.is-active circle {
  stroke-width: 1.5;
}

.analysis-positioning-label,
.analysis-positioning-label.is-group,
.analysis-positioning-label.is-winter,
.analysis-positioning-label.is-summer {
  fill: rgba(37, 53, 81, 0.96);
}

.analysis-positioning-node.is-summer .analysis-positioning-label {
  fill: rgba(37, 53, 81, 0.88);
}

.analysis-positioning-title,
.analysis-positioning-annotation,
.analysis-positioning-node text {
  font-family: "Avenir Next", "Montserrat", "Helvetica Neue", sans-serif;
  letter-spacing: 0.01em;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 639px) {
  .analysis-output-row {
    grid-template-columns: 1fr;
    gap: 0.28rem;
  }

  .analysis-output-value {
    text-align: left;
  }

  .analysis-reg-row {
    grid-template-columns: 1fr;
    gap: 0.24rem;
  }

  .analysis-reg-value {
    text-align: left;
  }

  .analysis-heatmap-head {
    display: none;
  }

  .analysis-heatmap-wrap {
    max-height: none;
  }

  .analysis-heatmap-row {
    grid-template-columns: 1fr;
    border: 1px solid rgba(42, 40, 41, 0.12);
    background: #faf9f6;
  }

  .analysis-heatmap-segment {
    border: 0;
    border-bottom: 1px solid rgba(42, 40, 41, 0.12);
    background: transparent;
  }

  .analysis-heatmap-metrics {
    grid-template-columns: 1fr;
    padding: 0.45rem;
  }

  .analysis-heatmap-metric-label {
    display: block;
  }
}

.persona-gallery {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 760px) {
  .persona-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .persona-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.persona-card {
  border: 1px solid rgba(42, 40, 41, 0.2);
  background: var(--brand-white);
  overflow: hidden;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
}

.persona-card.is-active {
  border-color: var(--brand-navy);
  box-shadow: inset 0 0 0 1px rgba(37, 53, 81, 0.24);
}

.persona-media {
  height: 100%;
  min-height: 132px;
}

.persona-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.persona-body {
  padding: 0.62rem 0.68rem;
}

.persona-title {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: rgba(37, 53, 81, 0.95);
  line-height: 1.25;
}

.persona-meta {
  margin: 0.32rem 0 0;
  font-size: 0.72rem;
  color: rgba(42, 40, 41, 0.75);
}

.persona-summary {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(42, 40, 41, 0.9);
}

.persona-open-btn {
  margin-top: 0.5rem;
  border: 1px solid rgba(42, 40, 41, 0.32);
  background: var(--brand-white);
  padding: 0.34rem 0.52rem;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: rgba(37, 53, 81, 0.95);
  cursor: pointer;
}

.persona-open-btn:hover {
  background: rgba(37, 53, 81, 0.1);
}

.targeting-controls {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 760px) {
  .targeting-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1220px) {
  .targeting-controls {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.targeting-metrics {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 920px) {
  .targeting-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.dsp-choice-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 760px) {
  .dsp-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1180px) {
  .dsp-choice-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.dsp-choice-card {
  border: 1px solid rgba(42, 40, 41, 0.22);
  background: #fff;
  padding: 0.55rem;
  display: grid;
  gap: 0.42rem;
  align-content: start;
  cursor: pointer;
}

.dsp-choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dsp-choice-card img {
  width: 100%;
  height: 44px;
  object-fit: contain;
  object-position: left center;
}

.dsp-choice-card span {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(37, 53, 81, 0.9);
}

.dsp-choice-card.is-active {
  border-color: rgba(37, 53, 81, 0.7);
  box-shadow: inset 0 0 0 1px rgba(37, 53, 81, 0.2);
  background: rgba(37, 53, 81, 0.04);
}

.targeting-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 1120px) {
  .targeting-layout {
    grid-template-columns: 1.2fr 1fr;
  }
}

.activation-framework-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 920px) {
  .activation-framework-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.activation-framework-card {
  border: 1px solid rgba(42, 40, 41, 0.18);
  background: #fbfaf7;
  padding: 0.8rem;
}

.activation-framework-card h4 {
  margin: 0;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  color: rgba(37, 53, 81, 0.94);
}

.activation-framework-card p {
  margin: 0.42rem 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(42, 40, 41, 0.88);
}

.payload-output {
  min-height: 260px;
  max-height: 420px;
  overflow: auto;
  margin: 0;
  border: 1px solid rgba(42, 40, 41, 0.2);
  background: #f8f8f5;
  padding: 0.7rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: rgba(42, 40, 41, 0.92);
  white-space: pre;
}

.journey-heading-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.journey-example-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(37, 53, 81, 0.28);
  background: rgba(243, 224, 43, 0.22);
  padding: 0.26rem 0.5rem;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(37, 53, 81, 0.94);
}

.journey-top {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 960px) {
  .journey-top {
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    align-items: stretch;
  }
}

.journey-ops-bar {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 1080px) {
  .journey-ops-bar {
    grid-template-columns: minmax(220px, 1.2fr) repeat(4, minmax(120px, 1fr));
  }
}

.journey-ops-lead,
.journey-ops-metric {
  border: 1px solid rgba(42, 40, 41, 0.16);
  background: #fbfaf7;
  padding: 0.9rem;
}

.journey-ops-lead {
  background: linear-gradient(135deg, #f4f6ec 0%, #fbfaf7 100%);
  display: grid;
  gap: 0.38rem;
}

.journey-ops-lead-top {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.journey-live-pulse {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: #1f7a42;
  box-shadow: 0 0 0 4px rgba(31, 122, 66, 0.14);
}

.journey-ops-lead-label,
.journey-ops-metric-label {
  margin: 0;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(37, 53, 81, 0.8);
}

.journey-ops-lead-value,
.journey-ops-metric-value {
  display: block;
  margin: 0;
  font-size: 1.2rem;
  line-height: 1;
  font-weight: 700;
  color: var(--brand-navy);
}

.journey-ops-lead-copy,
.journey-ops-metric-detail {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(42, 40, 41, 0.72);
}

.journey-context-kicker {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(37, 53, 81, 0.82);
}

.journey-map-shell {
  border: 1px solid rgba(42, 40, 41, 0.2);
  background: linear-gradient(180deg, #faf9f5 0%, #f0ede3 100%);
  padding: 0.8rem;
  overflow-x: auto;
}

.journey-roi-card {
  border: 1px solid rgba(42, 40, 41, 0.2);
  background: linear-gradient(180deg, #fbfaf7 0%, #f3f1ea 100%);
  padding: 1rem;
}

.journey-roi-shell {
  display: grid;
  gap: 0.85rem;
}

.journey-roi-summary-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 860px) {
  .journey-roi-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1260px) {
  .journey-roi-summary-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.journey-roi-metric {
  border: 1px solid rgba(42, 40, 41, 0.12);
  background: var(--brand-white);
  padding: 0.68rem 0.72rem;
  display: grid;
  gap: 0.16rem;
}

.journey-roi-metric-label {
  margin: 0;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(37, 53, 81, 0.72);
}

.journey-roi-metric-value {
  margin: 0;
  font-size: 1rem;
  line-height: 1.1;
  font-weight: 700;
  color: var(--brand-navy);
}

.journey-roi-metric-detail {
  margin: 0;
  font-size: 0.64rem;
  line-height: 1.35;
  color: rgba(42, 40, 41, 0.68);
}

.journey-roi-stream {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 860px) {
  .journey-roi-stream {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1260px) {
  .journey-roi-stream {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.journey-roi-step {
  border: 1px solid rgba(37, 53, 81, 0.14);
  background: rgba(255, 255, 255, 0.95);
  padding: 0.72rem 0.76rem;
  display: grid;
  gap: 0.18rem;
}

.journey-roi-step-label {
  margin: 0;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(37, 53, 81, 0.74);
}

.journey-roi-step-value {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.1;
  font-weight: 700;
  color: #1f7a42;
}

.journey-roi-step-value-label {
  margin: 0;
  font-size: 0.66rem;
  line-height: 1.35;
  color: rgba(42, 40, 41, 0.72);
}

.journey-roi-step-detail-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.24rem;
}

.journey-roi-step-detail {
  border: 1px solid rgba(42, 40, 41, 0.1);
  background: #fbfaf7;
  padding: 0.34rem 0.4rem;
  display: grid;
  gap: 0.08rem;
}

.journey-roi-step-detail-label {
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(42, 40, 41, 0.56);
}

.journey-roi-step-detail-value {
  font-size: 0.74rem;
  line-height: 1.1;
  color: var(--brand-charcoal);
}

.journey-body {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 1260px) {
  .journey-body {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 400px);
    align-items: start;
  }
}

.journey-left-column,
.journey-main-column {
  display: grid;
  gap: 1rem;
}

.journey-side-rail {
  display: grid;
  gap: 1rem;
  align-content: start;
}

@media (min-width: 1260px) {
  .journey-side-rail {
    position: sticky;
    top: 5.75rem;
  }
}

.journey-map {
  min-height: 410px;
}

.journey-map-track {
  display: inline-flex;
  align-items: stretch;
  gap: 0.75rem;
  width: max-content;
}

.journey-stage-card {
  width: 204px;
  flex: 0 0 204px;
  border: 1px solid rgba(42, 40, 41, 0.2);
  background: var(--brand-white);
  padding: 0.78rem;
  display: grid;
  gap: 0.48rem;
  box-shadow: 0 20px 40px -28px rgba(37, 53, 81, 0.3);
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.journey-stage-card.is-selected {
  border-color: rgba(37, 53, 81, 0.34);
  box-shadow: 0 26px 48px -30px rgba(37, 53, 81, 0.46);
  transform: translateY(-1px);
}

.journey-stage-card.is-dimmed {
  opacity: 0.46;
}

.journey-stage-kicker {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(37, 53, 81, 0.78);
}

.journey-stage-title {
  margin: 0.16rem 0 0;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 600;
  color: var(--brand-charcoal);
}

.journey-stage-count {
  border: 1px solid rgba(37, 53, 81, 0.16);
  background: rgba(37, 53, 81, 0.05);
  padding: 0.56rem 0.64rem;
  display: grid;
  gap: 0.16rem;
}

.journey-stage-count-label {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(37, 53, 81, 0.78);
}

.journey-stage-count-value {
  margin: 0;
  font-size: 1.32rem;
  line-height: 1;
  font-weight: 700;
  color: var(--brand-navy);
}

.journey-stage-count-detail {
  margin: 0;
  font-size: 0.67rem;
  line-height: 1.36;
  color: rgba(42, 40, 41, 0.72);
}

.journey-stage-activity {
  border: 1px solid rgba(42, 40, 41, 0.12);
  background: #fbfaf7;
  padding: 0.5rem 0.56rem;
  display: grid;
  gap: 0.42rem;
}

.journey-stage-activity-label {
  margin: 0;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(37, 53, 81, 0.78);
}

.journey-stage-activity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
}

.journey-stage-activity-stat {
  border: 1px solid rgba(42, 40, 41, 0.1);
  background: var(--brand-white);
  padding: 0.38rem 0.42rem;
  display: grid;
  gap: 0.12rem;
}

.journey-stage-activity-stat-label {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(42, 40, 41, 0.58);
}

.journey-stage-activity-stat-value {
  font-size: 0.94rem;
  line-height: 1;
  color: var(--brand-charcoal);
}

.journey-stage-activity-stat-value.is-positive {
  color: #1f7a42;
}

.journey-stage-activity-stat-value.is-negative {
  color: #9a2f2f;
}

.journey-stage-activity-stat-value.is-neutral {
  color: rgba(42, 40, 41, 0.72);
}

.journey-stage-activity-note {
  margin: 0;
  font-size: 0.64rem;
  line-height: 1.35;
  color: rgba(42, 40, 41, 0.7);
}

.journey-system-section {
  display: grid;
  gap: 0.35rem;
}

.journey-system-label {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(37, 53, 81, 0.78);
}

.journey-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
}

.journey-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(42, 40, 41, 0.16);
  padding: 0.22rem 0.38rem;
  font-size: 0.62rem;
  line-height: 1.2;
  font-weight: 600;
  color: rgba(42, 40, 41, 0.9);
}

.journey-badge.is-signal {
  background: rgba(37, 53, 81, 0.06);
  color: rgba(37, 53, 81, 0.94);
}

.journey-badge.is-signal.is-active {
  background: #d9ecdf;
  border-color: rgba(24, 79, 47, 0.22);
  color: #184f2f;
}

.journey-badge.is-inactive {
  background: rgba(42, 40, 41, 0.06);
  color: rgba(42, 40, 41, 0.5);
  border-color: rgba(42, 40, 41, 0.1);
}

.journey-stage-connector {
  min-width: 192px;
  flex: 0 0 192px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.52rem;
  padding-top: 0.28rem;
}

.journey-transition-band {
  border: 1px solid rgba(37, 53, 81, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 245, 239, 0.96) 100%);
  padding: 0.58rem 0.62rem;
  display: grid;
  gap: 0.48rem;
  box-shadow: 0 18px 34px -32px rgba(37, 53, 81, 0.38);
}

.journey-transition-header,
.journey-transition-trend-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.journey-transition-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(42, 40, 41, 0.14);
  background: var(--brand-white);
  padding: 0.22rem 0.34rem;
  font-size: 0.54rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(42, 40, 41, 0.82);
}

.journey-transition-pill.is-stable {
  color: #1f7a42;
  border-color: rgba(31, 122, 66, 0.2);
  background: rgba(31, 122, 66, 0.08);
}

.journey-transition-pill.is-building {
  color: #8f6518;
  border-color: rgba(196, 124, 23, 0.2);
  background: rgba(196, 124, 23, 0.1);
}

.journey-transition-pill.is-tight {
  color: #9a2f2f;
  border-color: rgba(154, 47, 47, 0.18);
  background: rgba(154, 47, 47, 0.08);
}

.journey-transition-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.28rem;
}

.journey-transition-metric {
  border: 1px solid rgba(42, 40, 41, 0.09);
  background: rgba(255, 255, 255, 0.92);
  padding: 0.3rem 0.34rem;
  display: grid;
  gap: 0.08rem;
}

.journey-transition-metric-label {
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(42, 40, 41, 0.58);
}

.journey-transition-metric-value {
  font-size: 0.72rem;
  line-height: 1.1;
  color: var(--brand-charcoal);
}

.journey-transition-mix {
  display: grid;
  gap: 0.22rem;
}

.journey-transition-mix-label,
.journey-transition-trend-label {
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(37, 53, 81, 0.76);
}

.journey-transition-mix-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.24rem;
}

.journey-transition-mix-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(37, 53, 81, 0.14);
  background: rgba(37, 53, 81, 0.05);
  padding: 0.18rem 0.3rem;
  font-size: 0.54rem;
  line-height: 1.1;
  font-weight: 600;
  color: rgba(37, 53, 81, 0.88);
}

.journey-transition-trend {
  border-top: 1px solid rgba(42, 40, 41, 0.08);
  padding-top: 0.38rem;
  display: grid;
  gap: 0.22rem;
}

.journey-transition-trend-delta {
  font-size: 0.56rem;
  line-height: 1;
  font-weight: 700;
}

.journey-transition-trend-delta.is-flat {
  color: rgba(42, 40, 41, 0.62);
}

.journey-transition-trend-delta.is-better {
  color: #1f7a42;
}

.journey-transition-trend-delta.is-worse {
  color: #9a2f2f;
}

.journey-transition-trend-chart {
  width: 100%;
  height: 34px;
  display: block;
}

.journey-transition-trend-guide {
  stroke: rgba(42, 40, 41, 0.12);
  stroke-width: 1;
}

.journey-transition-trend-line {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.journey-transition-trend-line.is-stable {
  stroke: #1f7a42;
}

.journey-transition-trend-line.is-building {
  stroke: #c67d1b;
}

.journey-transition-trend-line.is-tight {
  stroke: #b54848;
}

.journey-stage-arrow {
  position: relative;
  width: 100%;
  height: var(--journey-arrow-thickness, 4px);
  opacity: var(--journey-arrow-opacity, 0.8);
  background: linear-gradient(90deg, rgba(37, 53, 81, 0.2) 0%, rgba(37, 53, 81, 0.85) 100%);
}

.journey-stage-arrow::after {
  content: "";
  position: absolute;
  top: calc(-1 * var(--journey-arrow-head-height, 6px) + (var(--journey-arrow-thickness, 4px) / 2) + 1px);
  right: -1px;
  border-top: var(--journey-arrow-head-height, 6px) solid transparent;
  border-bottom: var(--journey-arrow-head-height, 6px) solid transparent;
  border-left: var(--journey-arrow-head-width, 12px) solid var(--brand-navy);
}

.journey-context-card,
.journey-copilot-card,
.journey-channel-card,
.journey-feed-card {
  border: 1px solid rgba(42, 40, 41, 0.2);
  background: var(--brand-white);
  padding: 1rem;
}

.journey-copilot-card {
  display: grid;
  align-content: start;
  gap: 0;
  min-height: calc(100vh - 5.75rem);
  border-color: rgba(37, 53, 81, 0.26);
  background: linear-gradient(180deg, rgba(244, 247, 252, 0.96) 0%, rgba(255, 255, 255, 1) 22%);
  box-shadow: 0 24px 54px -36px rgba(37, 53, 81, 0.5);
  position: relative;
}

.journey-copilot-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, rgba(37, 53, 81, 0.92) 0%, rgba(31, 122, 66, 0.9) 100%);
}

@media (min-width: 1260px) {
  .journey-copilot-card {
    max-height: calc(100vh - 5.75rem);
    grid-template-rows: auto auto minmax(0, 1fr) auto;
  }
}

.journey-context-stack {
  display: grid;
  gap: 1rem;
}

.journey-channel-board,
.journey-live-feed {
  display: grid;
  gap: 0.75rem;
}

.journey-feed-strip-card {
  display: grid;
  gap: 0.9rem;
  align-items: start;
}

.journey-live-feed-strip {
  min-width: 0;
  width: 100%;
}

.journey-channel-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 860px) {
  .journey-channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.journey-lane-card {
  border: 1px solid rgba(42, 40, 41, 0.14);
  background: #fbfaf7;
  padding: 0.85rem;
  display: grid;
  gap: 0.7rem;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.journey-lane-card.is-selected {
  border-color: rgba(37, 53, 81, 0.28);
  box-shadow: 0 18px 42px -32px rgba(37, 53, 81, 0.42);
  transform: translateY(-1px);
}

.journey-lane-card.is-dimmed {
  opacity: 0.5;
}

.journey-lane-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
}

.journey-lane-title {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.2;
  font-weight: 600;
  color: var(--brand-charcoal);
}

.journey-lane-meta {
  margin: 0.18rem 0 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: rgba(42, 40, 41, 0.68);
}

.journey-lane-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(42, 40, 41, 0.14);
  padding: 0.22rem 0.42rem;
  font-size: 0.6rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(42, 40, 41, 0.68);
}

.journey-lane-status.is-live {
  background: #e8f4eb;
  border-color: rgba(31, 122, 66, 0.18);
  color: #1f7a42;
}

.journey-lane-status.is-watch {
  background: #fff4e8;
  border-color: rgba(181, 103, 20, 0.2);
  color: #9b5b13;
}

.journey-lane-stats {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.journey-lane-stat {
  border: 1px solid rgba(42, 40, 41, 0.1);
  background: var(--brand-white);
  padding: 0.42rem 0.46rem;
  display: grid;
  gap: 0.1rem;
}

.journey-lane-stat-label {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(42, 40, 41, 0.56);
}

.journey-lane-stat-value {
  font-size: 0.92rem;
  line-height: 1;
  color: var(--brand-charcoal);
}

.journey-lane-source-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  align-items: center;
  min-height: 2rem;
}

.journey-lane-efficiency {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
  border: 1px solid rgba(31, 122, 66, 0.14);
  background: rgba(31, 122, 66, 0.06);
  padding: 0.42rem 0.5rem;
}

.journey-lane-efficiency-label {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1f7a42;
}

.journey-lane-efficiency-value {
  font-size: 0.9rem;
  line-height: 1;
  color: #184f2f;
}

.journey-lane-efficiency-detail {
  font-size: 0.62rem;
  line-height: 1.2;
  color: rgba(24, 79, 47, 0.76);
}

.journey-lane-source-empty {
  font-size: 0.66rem;
  line-height: 1.3;
  font-weight: 600;
  color: rgba(42, 40, 41, 0.58);
}

.journey-lane-activity {
  border: 1px solid rgba(42, 40, 41, 0.1);
  background: var(--brand-white);
  padding: 0.5rem 0.56rem;
  display: grid;
  gap: 0.4rem;
}

.journey-lane-activity-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.journey-lane-activity-label,
.journey-lane-activity-time {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.journey-lane-activity-label {
  color: rgba(42, 40, 41, 0.56);
}

.journey-lane-activity-time {
  color: rgba(37, 53, 81, 0.76);
}

.journey-lane-heartbeat {
  width: 100%;
  height: 56px;
  display: block;
}

.journey-lane-heartbeat-guide {
  stroke: rgba(42, 40, 41, 0.1);
  stroke-width: 1;
}

.journey-lane-heartbeat-line {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.journey-lane-heartbeat-line.is-tone-1 {
  stroke: #1f7a42;
}

.journey-lane-heartbeat-line.is-tone-2 {
  stroke: #4c9a68;
}

.journey-lane-heartbeat-line.is-tone-3 {
  stroke: #75b58a;
}

.journey-lane-heartbeat-line.is-tone-4 {
  stroke: #9dcfb0;
}

.journey-lane-heartbeat-line.is-watch {
  stroke: #c67d1b;
}

.journey-lane-heartbeat-line.is-issue {
  stroke: #b54848;
}

.journey-lane-heartbeat-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem 0.6rem;
}

.journey-lane-heartbeat-key {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  min-width: 0;
}

.journey-lane-heartbeat-key-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  flex: 0 0 auto;
}

.journey-lane-heartbeat-key-dot.is-tone-1 {
  background: #1f7a42;
}

.journey-lane-heartbeat-key-dot.is-tone-2 {
  background: #4c9a68;
}

.journey-lane-heartbeat-key-dot.is-tone-3 {
  background: #75b58a;
}

.journey-lane-heartbeat-key-dot.is-tone-4 {
  background: #9dcfb0;
}

.journey-lane-heartbeat-key-dot.is-watch {
  background: #c67d1b;
}

.journey-lane-heartbeat-key-dot.is-issue {
  background: #b54848;
}

.journey-lane-heartbeat-key-label {
  font-size: 0.6rem;
  line-height: 1.2;
  font-weight: 600;
  color: rgba(42, 40, 41, 0.74);
}

.journey-lane-current {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.3;
  font-weight: 600;
  color: rgba(42, 40, 41, 0.78);
}

.journey-segment-card {
  border: 1px solid rgba(42, 40, 41, 0.16);
  background: #fbfaf7;
  padding: 0.9rem;
}

.journey-segment-card h4 {
  margin: 0.28rem 0 0;
  font-size: 1.08rem;
  line-height: 1.2;
  font-weight: 600;
  color: var(--brand-charcoal);
}

.journey-segment-summary {
  margin: 0.42rem 0 0;
  font-size: 0.76rem;
  line-height: 1.5;
  color: rgba(42, 40, 41, 0.84);
}

.journey-system-grid {
  display: grid;
  gap: 0.9rem;
}

.journey-system-group {
  display: grid;
  gap: 0.6rem;
}

.journey-system-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.journey-system-group-title {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(37, 53, 81, 0.78);
}

.journey-system-group-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 1.9rem;
  padding: 0 0.7rem;
  border: 1px solid rgba(42, 40, 41, 0.12);
  background: rgba(37, 53, 81, 0.05);
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(37, 53, 81, 0.86);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.journey-system-group-state::before {
  content: "";
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: rgba(42, 40, 41, 0.22);
  box-shadow: 0 0 0 3px rgba(42, 40, 41, 0.06);
}

.journey-system-group-state.is-active {
  border-color: rgba(31, 122, 66, 0.18);
  background: rgba(31, 122, 66, 0.08);
  color: #1f7a42;
}

.journey-system-group-state.is-active::before {
  background: #1f7a42;
  box-shadow: 0 0 0 3px rgba(31, 122, 66, 0.12);
}

.journey-system-group-state.is-empty {
  color: rgba(42, 40, 41, 0.66);
}

.journey-system-grid-panel {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 720px) {
  .journey-system-grid-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1180px) {
  .journey-system-grid-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.journey-system-fold {
  border-top: 1px solid rgba(42, 40, 41, 0.12);
  padding-top: 0.8rem;
}

.journey-system-fold-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
}

.journey-system-fold-summary::-webkit-details-marker {
  display: none;
}

.journey-system-fold-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(37, 53, 81, 0.8);
}

.journey-system-fold-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2rem;
  padding: 0 0.78rem;
  border: 1px solid rgba(42, 40, 41, 0.14);
  background: #f6f4ee;
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(42, 40, 41, 0.76);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.journey-system-fold-action::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 160ms ease;
}

.journey-system-fold[open] .journey-system-fold-action::after {
  transform: rotate(225deg) translateY(-1px);
}

.journey-system-fold .journey-system-grid-panel {
  margin-top: 0.8rem;
}

.journey-system-card {
  border: 1px solid rgba(42, 40, 41, 0.14);
  background: #fbfaf7;
  padding: 0.75rem;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  min-height: 102px;
}

.journey-system-card.is-inactive {
  background: #f7f5ef;
}

.journey-system-logo-wrap {
  width: 84px;
  height: 84px;
  border: 1px solid rgba(42, 40, 41, 0.14);
  background: var(--brand-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0.55rem;
}

.journey-system-logo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.journey-system-fallback {
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(37, 53, 81, 0.88);
}

.journey-system-copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.journey-system-name {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.2;
  font-weight: 600;
  color: var(--brand-charcoal);
}

.journey-system-use-case {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: rgba(42, 40, 41, 0.68);
}

.journey-system-side {
  display: grid;
  justify-items: end;
  gap: 0.45rem;
}

.journey-system-state-row {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.journey-system-light {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  background: rgba(42, 40, 41, 0.24);
  box-shadow: 0 0 0 3px rgba(42, 40, 41, 0.06);
}

.journey-system-light.is-active {
  background: #1f7a42;
  box-shadow: 0 0 0 3px rgba(31, 122, 66, 0.12);
}

.journey-system-state-label {
  font-size: 0.64rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(42, 40, 41, 0.66);
}

.journey-connector-toggle {
  min-width: 98px;
}

.journey-feed-viewport {
  max-height: 700px;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 1) 8%, rgba(0, 0, 0, 1) 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 1) 8%, rgba(0, 0, 0, 1) 92%, transparent 100%);
}

.journey-feed-strip-card .journey-feed-viewport {
  max-height: none;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 1) 6%, rgba(0, 0, 0, 1) 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 1) 6%, rgba(0, 0, 0, 1) 94%, transparent 100%);
}

.journey-feed-list {
  display: grid;
  gap: 0.65rem;
  padding-right: 0.12rem;
}

.journey-feed-strip-card .journey-feed-list {
  display: flex;
  gap: 0;
  width: max-content;
  padding-right: 0;
}

.journey-feed-sequence {
  display: contents;
}

.journey-feed-strip-card .journey-feed-sequence {
  display: flex;
  gap: 0.75rem;
  flex: 0 0 auto;
  padding-right: 0.75rem;
}

.journey-feed-list.is-live-marquee {
  animation: journeyFeedMarquee var(--journey-feed-duration, 28s) linear infinite;
  will-change: transform;
}

.journey-feed-strip-card .journey-feed-list.is-live-marquee {
  animation-name: journeyFeedMarqueeX;
}

.journey-feed-viewport:hover .journey-feed-list.is-live-marquee {
  animation-play-state: paused;
}

.journey-feed-item {
  border: 1px solid rgba(42, 40, 41, 0.14);
  background: #fbfaf7;
  padding: 0.8rem;
  display: grid;
  gap: 0.42rem;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.journey-feed-strip-card .journey-feed-item {
  padding: 0.65rem 0.72rem;
  gap: 0.34rem;
  flex: 0 0 320px;
}

.journey-feed-item.is-selected {
  border-color: rgba(37, 53, 81, 0.28);
  box-shadow: 0 18px 42px -32px rgba(37, 53, 81, 0.42);
  transform: translateY(-1px);
}

.journey-feed-item.is-dimmed {
  opacity: 0.45;
}

.journey-feed-strip-card .journey-feed-title {
  font-size: 0.84rem;
}

.journey-feed-strip-card .journey-feed-message,
.journey-feed-strip-card .journey-feed-meta {
  font-size: 0.68rem;
}

.journey-feed-item.is-watch {
  border-color: rgba(181, 103, 20, 0.22);
  background: #fffaf3;
}

.journey-feed-item.is-issue {
  border-color: rgba(153, 50, 50, 0.22);
  background: #fff6f6;
}

.journey-feed-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.journey-feed-status {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(42, 40, 41, 0.14);
  padding: 0.18rem 0.38rem;
  font-size: 0.58rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.journey-feed-status.is-live {
  background: #e8f4eb;
  border-color: rgba(31, 122, 66, 0.18);
  color: #1f7a42;
}

.journey-feed-status.is-watch {
  background: #fff4e8;
  border-color: rgba(181, 103, 20, 0.2);
  color: #9b5b13;
}

.journey-feed-status.is-issue {
  background: #fdeaea;
  border-color: rgba(153, 50, 50, 0.18);
  color: #9a2f2f;
}

.journey-feed-time {
  font-size: 0.68rem;
  line-height: 1;
  font-weight: 600;
  color: rgba(42, 40, 41, 0.62);
}

.journey-feed-title {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.2;
  font-weight: 600;
  color: var(--brand-charcoal);
}

.journey-feed-message,
.journey-feed-meta {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.42;
  color: rgba(42, 40, 41, 0.72);
}

.journey-feed-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
  align-items: center;
}

.journey-feed-pill,
.journey-feed-metric {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(42, 40, 41, 0.12);
  padding: 0.2rem 0.36rem;
  font-size: 0.6rem;
  line-height: 1.2;
  font-weight: 600;
  color: rgba(42, 40, 41, 0.82);
  background: var(--brand-white);
}

.journey-feed-metric {
  background: rgba(37, 53, 81, 0.05);
  border-color: rgba(37, 53, 81, 0.12);
  color: rgba(37, 53, 81, 0.88);
}

@keyframes journeyFeedMarquee {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}

@keyframes journeyFeedMarqueeX {
  from {
    transform: translateX(calc(-1 * var(--journey-feed-cycle-width, 0px)));
  }
  to {
    transform: translateX(0);
  }
}

.journey-empty-state {
  border: 1px dashed rgba(42, 40, 41, 0.22);
  background: rgba(255, 255, 255, 0.75);
  padding: 1rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(42, 40, 41, 0.82);
}

.journey-map > .journey-empty-state {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

@media (max-width: 919px) {
  .journey-map-shell {
    overflow-x: visible;
  }

  .journey-map-track {
    min-width: 0;
    flex-direction: column;
  }

  .journey-stage-card {
    width: 100%;
    flex-basis: auto;
  }

  .journey-transition-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .journey-stage-connector {
    min-width: 0;
    flex-basis: auto;
    width: 100%;
    margin: 0;
    padding-top: 0;
    align-items: stretch;
  }

  .journey-stage-arrow {
    width: 2px;
    height: 48px;
    opacity: 1;
    align-self: center;
    background: linear-gradient(180deg, rgba(37, 53, 81, 0.2) 0%, rgba(37, 53, 81, 0.85) 100%);
  }

  .journey-stage-arrow::after {
    top: auto;
    right: -4px;
    bottom: -1px;
    border-top: 10px solid var(--brand-navy);
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
    border-bottom: 0;
  }

  .journey-feed-viewport {
    max-height: none;
    overflow: visible;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .journey-feed-list.is-live-marquee {
    animation: none;
  }
}

.journey-copilot-card .chat-quick-actions {
  align-self: start;
  padding-bottom: 0.2rem;
}

.journey-copilot-card .chat-messages {
  min-height: 0;
  background: rgba(248, 249, 245, 0.92);
  border-color: rgba(37, 53, 81, 0.18);
}

@media (min-width: 1260px) {
  .journey-copilot-card .chat-messages {
    min-height: 0;
    max-height: none;
    height: 100%;
  }
}

.chat-top {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 1060px) {
  .chat-top {
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: end;
  }
}

.chat-connector {
  border: 1px solid rgba(42, 40, 41, 0.2);
  background: #fbfaf7;
  padding: 0.9rem;
}

.chat-connector-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 920px) {
  .chat-connector-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .chat-connector-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.chat-connector-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chat-connector-hint {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.45;
  color: rgba(42, 40, 41, 0.78);
}

.chat-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chat-prompt-editor {
  border: 1px solid rgba(42, 40, 41, 0.18);
  background: #fbfaf7;
  padding: 0.55rem 0.65rem;
}

.chat-prompt-editor > summary {
  cursor: pointer;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(37, 53, 81, 0.9);
}

.chat-prompt-copy {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(42, 40, 41, 0.76);
}

.chat-prompt-grid {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: 1fr;
}

@media (min-width: 1140px) {
  .chat-prompt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.chat-prompt-field {
  display: grid;
  gap: 0.35rem;
}

.chat-prompt-field > span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(42, 40, 41, 0.86);
}

.chat-prompt-input {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  border: 1px solid rgba(42, 40, 41, 0.2);
  background: #fff;
  padding: 0.45rem 0.52rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(42, 40, 41, 0.95);
}

.chat-prompt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.chat-prompt-status {
  font-size: 0.7rem;
  color: rgba(42, 40, 41, 0.7);
}

.chat-messages {
  border: 1px solid rgba(42, 40, 41, 0.2);
  background: #f8f8f5;
  min-height: 340px;
  max-height: 500px;
  overflow: auto;
  padding: 0.75rem;
  display: grid;
  gap: 0.55rem;
}

.chat-msg {
  display: flex;
}

.chat-msg.is-user {
  justify-content: flex-end;
}

.chat-msg.is-assistant {
  justify-content: flex-start;
}

.chat-msg.is-pending .chat-bubble {
  background: rgba(37, 53, 81, 0.06);
  border-color: rgba(37, 53, 81, 0.22);
  color: rgba(37, 53, 81, 0.9);
}

.chat-bubble {
  margin: 0;
  max-width: min(80ch, 85%);
  padding: 0.55rem 0.62rem;
  font-size: 0.82rem;
  line-height: 1.48;
  border: 1px solid rgba(42, 40, 41, 0.18);
  background: var(--brand-white);
  color: rgba(42, 40, 41, 0.92);
}

.chat-msg.is-user .chat-bubble {
  background: rgba(37, 53, 81, 0.12);
  border-color: rgba(37, 53, 81, 0.3);
}

.chat-form {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: 1fr auto;
  align-items: center;
}

.chat-form .pager-button:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}
