/* Equotient brand system — navy + gold, Bebas Neue wordmark + Oswald headings + Source Sans 3 */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

/* === EQUOTIENT DESIGN TOKENS ===
   Gold = unified "top importance" (methodology, primary CTAs, Enterprise tier).
   Tier palette = grayscale + gold (methodology v1.1.0).
*/
:root {
  /* Brand identity */
  --brand-gold: #C9A84C;       /* unified top-importance: methodology, CTAs, Enterprise tier */
  --brand-navy: #0A1628;       /* primary surface */
  --brand-white: #FFFFFF;      /* primary text */
  /* Canonical 5-color ordinal palette (methodology v1.1.0) — grayscale + gold */
  --ordinal-1: #EF4444;        /* red — Critical (instant-scan problems) */
  --ordinal-2: #6B7280;        /* gray-500 — Absent */
  --ordinal-3: #9CA3AF;        /* gray-400 — Reactive */
  --ordinal-4: #FFFFFF;        /* white — Developing */
  --ordinal-5: #C9A84C;        /* gold — Enterprise (same as --brand-gold) */
  /* Equotient Score tier mapping (thresholds 0/20/40/60/80) */
  --tier-critical: var(--ordinal-1);
  --tier-absent: var(--ordinal-2);
  --tier-reactive: var(--ordinal-3);
  --tier-developing: var(--ordinal-4);
  --tier-enterprise: var(--ordinal-5);
  /* Operational utilization mapping (thresholds 60/70/80/90) */
  --util-critical: var(--ordinal-1);
  --util-watch: var(--ordinal-2);
  --util-healthy: var(--ordinal-3);
  --util-strong: var(--ordinal-4);
  --util-peak: var(--ordinal-5);
  /* KPI change direction (System 3 — separate from tier palette) */
  --change-positive: #22C55E;
  --change-negative: #EF4444;
  --state-positive: var(--change-positive);
  --state-negative: var(--change-negative);
  /* UI chrome — muted secondary text, dividers, inactive states (NOT a data signal) */
  --ui-muted-text: #64748B;
  /* Confidence markers — applied on top of tier color */
  --confidence-low-opacity: 0.65;
  --confidence-low-pattern: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 4px,
    rgba(0, 0, 0, 0.15) 4px,
    rgba(0, 0, 0, 0.15) 8px
  );

  /* Legacy aliases — prefer --brand-* / --tier-* in new code */
  --aeq-page: var(--brand-navy);
  --aeq-card: #0F1E35;
  --aeq-card-border: rgba(201, 168, 76, 0.22);
  --aeq-navy-soft: #142a52;
  --aeq-gold: var(--brand-gold);
  --gold: var(--brand-gold);
  --gold-l: var(--brand-gold);
  --aeq-gold-bright: var(--brand-gold);
  --aeq-ink: var(--brand-navy);
  --aeq-text: #EAEEF6;
  --aeq-muted: #8A97AE;
  --green-l: #22C55E;
  --yellow-l: var(--tier-reactive);
  --orange-l: var(--tier-absent);
  --red-l: var(--tier-critical);
  --eq-bar-dark: #4A5568;
  --eq-bar-light: #94A3B8;
  --eq-bar-white: var(--brand-white);
  /* Chart palette — blue family (segment differentiation only, no tier signal) */
  --chart-1: #1E40AF;
  --chart-2: #1D4ED8;
  --chart-3: #2563EB;
  --chart-4: #3B82F6;
  --chart-5: #60A5FA;
  --chart-6: #93C5FD;
  /* Sequential blue gradient (value-magnitude charts) */
  --chart-sequential-1: #1E40AF;
  --chart-sequential-2: #1D4ED8;
  --chart-sequential-3: #2563EB;
  --chart-sequential-4: #3B82F6;
  --chart-sequential-5: #60A5FA;
  --chart-sequential-6: #93C5FD;
  --chart-sequential-7: #DBEAFE;
  --chart-sequential-8: #DBEAFE;

  --font-display: "Oswald", "Helvetica Neue", Arial, sans-serif;
  --font-wordmark: "Bebas Neue", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Equotient wordmark — Bebas Neue only; EQ gold + UOTIENT white */
.equotient-wordmark {
  font-family: var(--font-wordmark);
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  line-height: 1;
}
.equotient-wordmark-eq { color: var(--brand-white); }
.equotient-wordmark--header .equotient-wordmark-eq,
.equotient-wordmark--sidebar .equotient-wordmark-eq,
.equotient-wordmark--footer .equotient-wordmark-eq { color: var(--brand-gold); }
.equotient-wordmark-rest { color: var(--brand-white); }
.equotient-wordmark-tm {
  font-family: Arial, sans-serif;
  font-size: 0.45em;
  color: rgba(201, 168, 76, 0.5);
  vertical-align: super;
  margin-left: 2px;
  letter-spacing: 0;
  text-transform: none;
}
.equotient-wordmark--header { font-size: 20px; }
.equotient-wordmark--sidebar { font-size: 14px; }
.equotient-wordmark--footer { font-size: 16px; }
.equotient-wordmark--banner { font-size: 72px; }

.equotient-powered-by-prefix {
  font-size: 8px;
  color: var(--ui-muted-text);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1;
}

.equotient-powered-by-lockup {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.equotient-powered-by-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.equotient-staircase-mark {
  flex-shrink: 0;
  display: block;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--aeq-text);
  background: var(--aeq-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.aeq-body { min-height: 100vh; background: var(--aeq-page); }

/* ---------- Shared header ---------- */
.aeq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px;
  border-bottom: 1px solid var(--aeq-card-border);
  background: var(--aeq-card);
}

.aeq-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aeq-gold);
}

.aeq-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 32px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--aeq-text);
  margin-top: 0;
}

.aeq-muted { color: var(--aeq-muted); }
.aeq-center { text-align: center; }

.aeq-card {
  background: var(--aeq-card);
  border: 1px solid var(--aeq-card-border);
  border-radius: 12px;
  padding: 22px 26px;
  margin: 18px 0;
}

.aeq-card h2 {
  margin: 0 0 10px;
  color: var(--aeq-gold);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.aeq-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 15px;
}
.aeq-table th, .aeq-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--aeq-card-border);
}
.aeq-table th {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--aeq-gold);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.aeq-link {
  background: none;
  border: none;
  color: var(--aeq-gold-bright);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 0;
  text-decoration: none;
}
.aeq-link:hover { color: #fff; text-decoration: underline; }

/* ---------- Login page ---------- */
.aeq-login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  background:
    radial-gradient(1100px 600px at 20% -10%, rgba(201, 168, 76, 0.10), transparent 60%),
    radial-gradient(900px 600px at 110% 110%, rgba(20, 42, 82, 0.55), transparent 55%),
    var(--aeq-page);
}

.aeq-login-card {
  width: 100%;
  max-width: 440px;
  background: var(--aeq-card);
  border: 1px solid var(--aeq-card-border);
  border-radius: 18px;
  padding: 44px 40px 36px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.03) inset,
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(201, 168, 76, 0.04);
}

.aeq-login-brand {
  text-align: center;
  margin-bottom: 32px;
}

.aeq-mark {
  width: 56px;
  height: 56px;
  display: block;
  margin: 0 auto 18px;
}

.aeq-wordmark {
  margin: 0;
  font-family: var(--font-wordmark);
  font-weight: 400;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.aeq-wordmark-anchor { color: #FFFFFF; }
.aeq-wordmark-eq { color: #C9A84C; }
.aeq-wordmark .equotient-wordmark-tm { font-size: 0.35em; }

.aeq-tagline {
  color: var(--aeq-muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 14px auto 0;
  max-width: 320px;
}

.aeq-login-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.aeq-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--aeq-gold);
  margin-top: 16px;
  margin-bottom: 6px;
}

.aeq-input {
  background: var(--aeq-page);
  border: 1px solid rgba(201, 168, 76, 0.28);
  border-radius: 8px;
  color: var(--aeq-text);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.aeq-input::placeholder { color: rgba(138, 151, 174, 0.6); }
.aeq-input:focus {
  border-color: var(--aeq-gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.18);
}

.aeq-button {
  margin-top: 28px;
  background: var(--gold);
  color: #0A1628;
  border: none;
  border-radius: 8px;
  padding: 14px 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.05s ease;
}
.aeq-button:hover { background: #D6B65A; }
.aeq-button:active { transform: translateY(1px); }
.aeq-button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.aeq-footnote {
  margin-top: 28px;
  font-size: 13px;
}

/* ---------- Practice selection landing ---------- */
.aeq-practices-body {
  min-height: 100vh;
  background:
    radial-gradient(1100px 600px at 20% -10%, rgba(201, 168, 76, 0.10), transparent 60%),
    radial-gradient(900px 600px at 110% 110%, rgba(20, 42, 82, 0.55), transparent 55%),
    var(--aeq-page);
  color: var(--aeq-text);
}

.aeq-practices-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 40px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.12);
}

.aeq-practices-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.aeq-practices-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 10px;
  color: #fff;
}

.aeq-practices-subtitle {
  color: var(--aeq-muted);
  font-size: 15px;
  margin: 0 0 36px;
  max-width: 560px;
}

.aeq-practices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.aeq-practice-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 22px;
  background: var(--aeq-card);
  border: 1px solid var(--aeq-card-border);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
}
.aeq-practice-card:hover {
  border-color: rgba(201, 168, 76, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.aeq-practice-card--analytics {
  border-color: rgba(201, 168, 76, 0.35);
  background: linear-gradient(145deg, rgba(201, 168, 76, 0.08), var(--aeq-card));
}

.aeq-practice-card__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}

.aeq-practice-card__meta {
  font-size: 13px;
  color: var(--aeq-muted);
  line-height: 1.4;
}

.aeq-practice-card__cta {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--aeq-gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.aeq-practices-empty {
  background: var(--aeq-card);
  border: 1px solid var(--aeq-card-border);
  border-radius: 14px;
  padding: 36px 32px;
  max-width: 520px;
}
.aeq-practices-empty p { margin: 0 0 12px; line-height: 1.55; }
.aeq-practices-logout { margin: 0; }

/* Platform Analytics — Version A (Phase A.3) */
.pa-body {
  min-height: 100vh;
  background: var(--aeq-page);
  color: var(--aeq-text);
  font-family: 'Source Sans 3', system-ui, sans-serif;
}
.pa-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 1px solid var(--aeq-card-border);
  background: var(--aeq-card);
}
.pa-header__left {
  display: flex;
  align-items: center;
  gap: 20px;
}
.pa-back {
  font-size: 0.9rem;
  color: var(--aeq-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.pa-back:hover { color: var(--aeq-text); }
.pa-wordmark { margin: 0; }
.pa-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 28px 64px;
}
.pa-hero { margin-bottom: 28px; }
.pa-title {
  margin: 0 0 8px;
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.pa-subtitle {
  margin: 0;
  color: var(--aeq-muted);
  font-size: 1.02rem;
  line-height: 1.5;
  max-width: 52ch;
}
.pa-card {
  background: var(--aeq-card);
  border: 1px solid var(--aeq-card-border);
  border-radius: 12px;
  padding: 22px 24px;
}
.pa-card--lifted {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}
.pa-card__toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 16px;
  font-size: 0.82rem;
}
.pa-muted { color: var(--aeq-muted); }
.pa-table-wrap {
  overflow-x: auto;
  margin: 0 -4px;
}
.pa-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.94rem;
}
.pa-th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--aeq-muted);
  padding: 0 14px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}
.pa-th--sortable {
  cursor: pointer;
  user-select: none;
  transition: color 0.15s;
}
.pa-th--sortable:hover { color: var(--aeq-text); }
.pa-th--active { color: var(--aeq-gold); }
.pa-th--active[data-dir="asc"]::after { content: ' ↑'; opacity: 0.7; }
.pa-th--active[data-dir="desc"]::after { content: ' ↓'; opacity: 0.7; }
.pa-th__hint {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.75;
}
.pa-row {
  cursor: pointer;
  transition: background 0.12s;
}
.pa-row:hover { background: rgba(255, 255, 255, 0.03); }
.pa-td {
  padding: 18px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}
.pa-td--name a {
  color: var(--aeq-text);
  text-decoration: none;
  font-weight: 600;
}
.pa-td--name a:hover { color: var(--aeq-gold); }
.pa-td--num {
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.88);
}
.pa-engage {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 72px;
}
.pa-engage__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pa-engage__dot--high { background: #5cb87a; }
.pa-engage__dot--mid { background: #6b8fbd; }
.pa-engage__dot--low { background: #8a7a5c; }
.pa-engage__dot--none { background: rgba(255, 255, 255, 0.18); }
.pa-engage__bar {
  display: block;
  width: 48px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.pa-engage__fill {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
}
.pa-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--aeq-muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.pa-badge--wide { margin-top: 14px; }
.pa-footnote {
  margin: 18px 4px 0;
  font-size: 0.82rem;
  color: var(--aeq-muted);
  line-height: 1.5;
}
.pa-detail-grid {
  display: grid;
  gap: 20px;
}
.pa-stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px 24px;
}
.pa-stat__label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--aeq-muted);
  margin-bottom: 6px;
}
.pa-stat__value {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}
.pa-section-title {
  margin: 0 0 6px;
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}
.pa-section-desc {
  margin: 0 0 16px;
  font-size: 0.88rem;
  color: var(--aeq-muted);
  line-height: 1.45;
}
.pa-series { display: flex; flex-direction: column; gap: 8px; }
.pa-series__row {
  display: grid;
  grid-template-columns: 92px 1fr 36px;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
}
.pa-series__label {
  color: var(--aeq-muted);
  font-variant-numeric: tabular-nums;
}
.pa-series__track {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.pa-series__bar {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.32);
}
.pa-series__val {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.pa-rank {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pa-rank__item {
  display: grid;
  grid-template-columns: 1fr minmax(80px, 140px) 40px;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}
.pa-rank__name { font-weight: 600; }
.pa-rank__track {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.pa-rank__bar {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.28);
}
.pa-rank__val {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--aeq-muted);
}
.pa-login-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
}
.pa-login-list time { color: rgba(255, 255, 255, 0.88); }
.pa-card--trend .pa-series__bar { background: rgba(255, 255, 255, 0.2); }

/* Command Center — Equotient logo equalizer loader (back-and-forth cascade + gold pulse while thinking) */
@keyframes cc-equalizer-wave {
  0%, 100% { height: 30%; }
  50% { height: 100%; }
}

@keyframes cc-gold-pulse {
  0%, 100% {
    box-shadow: 0 0 8px rgba(201, 168, 76, 0.4);
  }
  50% {
    box-shadow: 0 0 16px rgba(201, 168, 76, 0.7);
  }
}

.cc-equalizer {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  width: 40px;
  height: 32px;
  flex-shrink: 0;
}

.cc-equalizer-bar {
  width: 6px;
  height: 30%;
  border-radius: 1px;
  animation: cc-equalizer-wave 1s ease-in-out infinite;
}

.cc-equalizer-bar:nth-child(1) { background: var(--eq-bar-dark);  animation-delay: 0s; }
.cc-equalizer-bar:nth-child(2) { background: var(--eq-bar-light); animation-delay: 0.15s; }
.cc-equalizer-bar:nth-child(3) { background: var(--eq-bar-white); animation-delay: 0.30s; }
.cc-equalizer-bar:nth-child(4) {
  background: var(--text);
  animation-delay: 0.45s;
}

/* Gold pulse — active AI processing only (indicator removed from DOM when complete) */
.cc-thinking.thinking-indicator-active .cc-equalizer-bar {
  animation:
    cc-equalizer-wave 1s ease-in-out infinite,
    cc-gold-pulse 1.2s ease-in-out infinite;
}

.cc-thinking.thinking-indicator-active .cc-equalizer-bar:nth-child(1) {
  animation-delay: 0s, 0s;
}

.cc-thinking.thinking-indicator-active .cc-equalizer-bar:nth-child(2) {
  animation-delay: 0.15s, 0.1s;
}

.cc-thinking.thinking-indicator-active .cc-equalizer-bar:nth-child(3) {
  animation-delay: 0.30s, 0.2s;
}

.cc-thinking.thinking-indicator-active .cc-equalizer-bar:nth-child(4) {
  background: var(--brand-gold);
  animation-delay: 0.45s, 0.3s;
}

.cc-thinking {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cc-thinking-label {
  font-size: 11px;
  color: var(--aeq-muted);
  line-height: 1.3;
}

/* Command Center — rendered Markdown in assistant messages */
.cc-message-assistant {
  font-size: 12px;
  color: #CCC;
  line-height: 1.6;
}
.cc-message-assistant > *:first-child { margin-top: 0; }
.cc-message-assistant > *:last-child { margin-bottom: 0; }
.cc-message-assistant p { margin: 0.6em 0; }
.cc-message-assistant h1,
.cc-message-assistant h2,
.cc-message-assistant h3,
.cc-message-assistant h4 {
  font-family: 'Oswald', 'Source Sans 3', sans-serif;
  font-weight: 600;
  margin: 1em 0 0.45em;
  line-height: 1.25;
}
.cc-message-assistant h1 { color: var(--gold-l, #C9A84C); font-size: 1.35em; }
.cc-message-assistant h2 { color: var(--gold-l, #C9A84C); font-size: 1.2em; }
.cc-message-assistant h3 { color: var(--gold-l, #C9A84C); font-size: 1.08em; }
.cc-message-assistant h4 { color: var(--text, #E8EEF4); font-size: 1em; }
.cc-message-assistant strong { color: #fff; font-weight: 700; }
.cc-message-assistant em { color: var(--muted, #5A6E88); font-style: italic; }
.cc-message-assistant ul,
.cc-message-assistant ol {
  margin: 0.5em 0 0.75em;
  padding-left: 1.4em;
}
.cc-message-assistant ul { list-style: none; }
.cc-message-assistant ul > li {
  position: relative;
  margin: 0.4em 0;
  padding-left: 0.2em;
}
.cc-message-assistant ul > li::before {
  content: '▸';
  position: absolute;
  left: -1.1em;
  color: var(--text);
  font-weight: 700;
}
.cc-message-assistant ol { list-style: none; counter-reset: cc-ol; }
.cc-message-assistant ol > li {
  position: relative;
  margin: 0.4em 0;
  padding-left: 0.2em;
  counter-increment: cc-ol;
}
.cc-message-assistant ol > li::before {
  content: counter(cc-ol) '.';
  position: absolute;
  left: -1.4em;
  color: var(--text);
  font-weight: 700;
}
.cc-message-assistant code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.92em;
  background: #1A2A44;
  color: var(--text);
  padding: 0.1em 0.35em;
  border-radius: 2px;
}
.cc-message-assistant pre {
  background: #0A1628;
  border-left: 3px solid var(--gold, #C9A84C);
  padding: 12px 14px;
  margin: 0.75em 0;
  overflow-x: auto;
}
.cc-message-assistant pre code {
  background: transparent;
  padding: 0;
  color: #DDD;
}
.cc-message-assistant blockquote {
  border-left: 3px solid var(--gold, #C9A84C);
  margin: 0.75em 0;
  padding: 0.25em 0 0.25em 12px;
  color: var(--muted, #5A6E88);
  font-style: italic;
}
.cc-message-assistant table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75em 0;
  font-size: 11px;
}
.cc-message-assistant th,
.cc-message-assistant td {
  border: 1px solid rgba(201, 168, 76, 0.25);
  padding: 6px 8px;
  text-align: left;
}
.cc-message-assistant th {
  color: var(--text);
  background: rgba(201, 168, 76, 0.08);
}
.cc-message-assistant tr:nth-child(even) td {
  background: rgba(15, 31, 61, 0.5);
}
.cc-message-assistant a {
  color: var(--text);
  text-decoration: underline;
}

/* Command Center — dynamic suggestion cards */
.cc-suggestions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 768px) {
  .cc-suggestions-grid { grid-template-columns: 1fr; }
}
.cc-suggestion-card {
  background: var(--bg2, #0A1628);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-left: 3px solid var(--gold, #C9A84C);
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.cc-suggestion-card:hover {
  background: rgba(201, 168, 76, 0.08);
  border-color: rgba(201, 168, 76, 0.35);
}
.cc-suggestion-category {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.2);
  padding: 2px 8px;
  margin-bottom: 8px;
}
.cc-suggestion-label {
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text, #E8EEF4);
  line-height: 1.3;
}
.cc-suggestions-loader {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg2, #0A1628);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.cc-suggestions-loader-label {
  font-size: 11px;
  color: var(--muted, #5A6E88);
}

/* program rows — margin % as bar data label, price-only right column */
.bar-row--programs {
  gap: 6px;
}

.bar-row--programs .bar-item.bar-item--program {
  display: grid;
  grid-template-columns: minmax(110px, 22%) minmax(0, 1fr) minmax(160px, 28%);
  align-items: center;
  gap: 8px 12px;
  min-height: 44px;
  padding: 4px 0;
}

.bar-row-legend {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 10px;
  color: var(--muted);
}

.bar-row-legend__label {
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.bar-track-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.bar-value-outside {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 700;
  min-width: 36px;
  text-align: right;
}

.fill.fill--verified {
  background: #C9A84C;
  opacity: 1;
}

.fill.fill--estimated {
  background: repeating-linear-gradient(
    -45deg,
    #9CA3AF,
    #9CA3AF 4px,
    #6B7280 4px,
    #6B7280 8px
  );
  opacity: 1;
}

.bar-row--programs .bar-fill-label {
  display: none;
}

.bar-row--programs .bar-value-outside {
  color: var(--text);
}

.opportunity-card {
  background: var(--bg3);
  padding: 10px 12px;
  border: 1px solid var(--border);
}

.opportunity-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.opportunity-card__title {
  font-size: 11px;
  font-weight: 700;
}

.opportunity-card__amount {
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.opportunity-card__desc {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.45;
}

.opportunity-card--actionable {
  cursor: pointer;
  border-left: 3px solid var(--brand-gold);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.opportunity-card--actionable:hover,
.opportunity-card--actionable:focus-visible {
  background: rgba(201, 168, 76, 0.06);
  border-color: var(--brand-gold);
  outline: none;
}

.opportunity-card__cta {
  margin-top: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--brand-gold);
}

.fin-program-attach-cta {
  cursor: pointer;
}

.methodology-hint-btn {
  background: transparent;
  border: none;
  color: var(--brand-gold);
  cursor: help;
  font-size: 12px;
  padding: 0;
  line-height: 1;
}

.bar-row--programs .bar-label {
  font-size: 11px;
  color: var(--muted, #5A6E88);
  line-height: 1.25;
}

.bar-row--programs .bar-label--primary {
  color: var(--text, #E8EEF4);
  font-weight: 700;
}

.bar-row--programs .track--program {
  min-width: 0;
  height: 8px;
  background: var(--bg3, #0F1F3D);
  overflow: hidden;
  border-radius: 2px;
}

.bar-row--programs .track--program .fill {
  height: 100%;
  min-width: 2px;
  border-radius: 2px;
}

.bar-row--programs .bar-fill-label {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 5px;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.bar-fill-label--gold { color: var(--gold-l, #C9A84C); }
.bar-fill-label--blue { color: var(--blue-l, #2A58A8); }
.bar-fill-label--green { color: var(--green-l, #22A868); }
.bar-fill-label--yellow { color: var(--yellow-l, #C9A84C); }
.bar-fill-label--orange { color: var(--orange-l, #C06828); }
.bar-fill-label--muted { color: var(--muted, #5A6E88); }

.bar-fill-label--tier-enterprise { color: var(--brand-navy); }
.bar-fill-label--tier-developing { color: var(--brand-navy); }
.bar-fill-label--tier-reactive { color: var(--brand-navy); }
.bar-fill-label--tier-absent { color: var(--tier-absent); }
.bar-fill-label--tier-critical { color: var(--tier-critical); }

/* Tier bar fills */
.f-tier-enterprise { background: var(--tier-enterprise); }
.f-tier-developing { background: var(--tier-developing); }
.f-tier-reactive { background: var(--tier-reactive); }
.f-tier-absent { background: var(--tier-absent); }
.f-tier-critical { background: var(--tier-critical); }

/* Tier pills */
.pill-tier-enterprise {
  background: color-mix(in srgb, var(--tier-enterprise) 22%, transparent);
  color: var(--tier-enterprise);
}
.pill-tier-developing { background: color-mix(in srgb, var(--tier-developing) 14%, transparent); color: var(--tier-developing); border: 1px solid rgba(255, 255, 255, 0.22); }
.pill-tier-reactive { background: color-mix(in srgb, var(--tier-reactive) 22%, transparent); color: var(--tier-reactive); }
.pill-tier-absent { background: color-mix(in srgb, var(--tier-absent) 22%, transparent); color: var(--tier-absent); }
.pill-tier-critical { background: color-mix(in srgb, var(--tier-critical) 22%, transparent); color: var(--tier-critical); }

/* Utilization heat maps — bold colored text on dark cell (program Room + Peak Hour) */
.heat-map-cell {
  text-align: center;
  vertical-align: middle;
  padding: 8px 4px;
  background: var(--bg3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  min-width: 38px;
}

/* Canonical operational text scale (non–heat-map metrics) */
.util-val {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
}

.util-val--critical { color: var(--util-critical); }
.util-val--watch { color: var(--util-watch); }
.util-val--healthy { color: var(--util-healthy); }
.util-val--strong { color: var(--util-strong); }
.util-val--peak { color: var(--util-peak); }
.util-val--empty {
  color: rgba(255, 255, 255, 0.28);
  font-weight: 600;
}

.heat-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 13px;
}

.heat-legend__label {
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  font-family: 'Source Sans 3', sans-serif;
}

.heat-legend__dot {
  color: var(--muted);
  font-weight: 400;
  padding: 0 2px;
}

/* Heat map utilization text — uses canonical ordinal palette via util-* tokens */
.hm-val {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
}

.hm-val--critical { color: var(--util-critical); }
.hm-val--watch { color: var(--util-watch); }
.hm-val--healthy { color: var(--util-healthy); }
.hm-val--strong { color: var(--util-strong); }
.hm-val--peak { color: var(--util-peak); }
.hm-val--empty {
  color: rgba(255, 255, 255, 0.28);
  font-weight: 600;
}

.heat-map-window-badge {
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

.heat-map-methodology-note {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 12px;
}


/* Low-confidence overlay on tier bars */
.fill.confidence-low {
  opacity: var(--confidence-low-opacity);
  background-image: var(--confidence-low-pattern);
  background-size: auto;
}

.f-util-peak { background: var(--util-peak); }
.f-util-strong { background: var(--util-strong); }
.f-util-healthy { background: var(--util-healthy); }
.f-util-watch { background: var(--util-watch); }
.f-util-critical { background: var(--util-critical); }

/* Legacy fill aliases — map to tier or neutral semantics where possible */
.f-gold { background: var(--brand-gold); }
.f-green { background: var(--green-l); }
.f-orange { background: var(--tier-absent); }
.f-yellow { background: var(--tier-reactive); }
.f-red { background: var(--tier-critical); }
.f-blue { background: var(--ui-muted-text); }
.f-purple { background: var(--ui-muted-text); }

/* Methodology-backed data container — gold border marks this card
   as an Equotient-verified data unit. Static treatment, no animation. */
.methodology-card {
  border: 2px solid var(--brand-gold);
  border-radius: 12px;
}

.panel.methodology-card {
  background: #0D1319;
}

.g2.methodology-card,
#pulse-main-panel.methodology-card {
  background: transparent;
}

.kpi.methodology-card {
  border: 2px solid var(--brand-gold);
  border-radius: 12px;
}

.kpi.methodology-card--empty {
  border: 1px solid var(--border);
  border-radius: 12px;
}

/* Primary action buttons — solid gold fill platform-wide */
.btn-primary-gold {
  background-color: var(--brand-gold) !important;
  color: var(--brand-navy) !important;
  border: 2px solid var(--brand-gold) !important;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 14px 28px;
  border-radius: 6px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.btn-primary-gold:hover {
  background-color: #D4B768 !important;
  color: var(--brand-navy) !important;
  border-color: #D4B768 !important;
}

.btn-primary-gold:focus,
.btn-primary-gold:focus-visible {
  outline: 2px solid var(--brand-white);
  outline-offset: 2px;
}

.btn-primary-gold--send {
  padding: 12px 22px;
  font-size: 13px;
  letter-spacing: 1px;
  height: 60px;
}

.btn-primary-gold--sm {
  padding: 6px 14px;
  font-size: 11px;
  letter-spacing: 1px;
}

.btn-primary-gold--md {
  padding: 8px 18px;
  font-size: 12px;
  letter-spacing: 1px;
}

.btn-primary-gold--modal {
  padding: 10px 24px;
  font-size: 12px;
  letter-spacing: 1px;
}

/* Direction of change — only on KPI delta arrows */
.kpi-delta.up { color: var(--change-positive); }
.kpi-delta.dn { color: var(--change-negative); }
.kpi-delta.positive { color: var(--muted); }

.positive {
  color: var(--text);
}

/* Legend mini container swatch — rectangular gold border (matches .methodology-card) */
.color-key__swatch.color-key__swatch--methodology-card {
  width: 28px;
  height: 16px;
  border-radius: 8px;
  background: transparent;
  border: 2px solid var(--brand-gold);
  box-shadow: none;
  animation: none;
}

.bar-row--programs .bar-price {
  text-align: right;
  min-width: 180px;
  max-width: 220px;
  justify-self: end;
  font-size: 13px;
  color: rgba(232, 238, 244, 0.72);
  white-space: nowrap;
  line-height: 1.3;
}

@media (max-width: 1100px) {
  .bar-row--programs .bar-item.bar-item--program {
    grid-template-columns: minmax(90px, 28%) minmax(0, 1fr) minmax(170px, 34%);
    min-height: 50px;
  }

  .bar-row--programs .bar-price {
    min-width: 170px;
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  .bar-row--programs .bar-item.bar-item--program {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto;
    min-height: 68px;
    row-gap: 6px;
  }

  .bar-row--programs .bar-item--program .bar-label {
    grid-column: 1;
    grid-row: 1;
  }

  .bar-row--programs .bar-item--program .bar-price {
    grid-column: 2;
    grid-row: 1;
    min-width: 160px;
    max-width: none;
  }

  .bar-row--programs .bar-item--program .track--program {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

/* program Capacity & Margin Profile — 2-col compact tiles */
.program-cap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 32px;
}

.program-cap-tile {
  min-width: 0;
}

.program-cap-tile__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.program-cap-tile__name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
}

.program-cap-tile__price {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  text-align: right;
}

.program-cap-metric {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 5px;
}

.program-cap-metric__label {
  width: 70px;
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 2px;
}

.program-cap-metric__track-row {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.track--capacity-compact {
  width: 62%;
  flex-shrink: 0;
  height: 7px;
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
  border-radius: 1px;
}

.track--capacity-compact .fill {
  height: 100%;
  min-width: 2px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.program-cap-metric__value {
  flex: 1;
  min-width: 0;
  text-align: right;
  line-height: 1.15;
}

.program-cap-metric__pct {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.program-cap-metric__sub {
  display: block;
  margin-top: 1px;
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
}

.program-cap-footer {
  margin-top: 14px;
  padding: 10px 12px;
  background: var(--bg3);
  font-size: 10px;
  color: #CCC;
  line-height: 1.55;
}

@media (max-width: 768px) {
  .program-cap-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Legacy capacity profile rows (retained for other bar-row usages) */
.bar-row--capacity-profile {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.program-profile-row {
  padding: 10px 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.program-profile-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.program-profile-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.program-profile-name {
  font-size: 11px;
  color: var(--muted, #5A6E88);
  font-weight: 600;
  line-height: 1.25;
}

.program-profile-name--primary {
  color: var(--text);
  font-weight: 700;
}

.program-profile-price {
  font-size: 13px;
  color: rgba(232, 238, 244, 0.72);
  white-space: nowrap;
  text-align: right;
}

.metric-bar-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) minmax(170px, 34%);
  align-items: center;
  gap: 8px 10px;
  margin-top: 6px;
}

.metric-bar-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(106, 125, 148, 0.95);
  text-transform: uppercase;
}

.track--capacity {
  min-width: 0;
  height: 6px;
  background: var(--bg3, #0F1F3D);
  overflow: hidden;
}

.track--capacity .fill {
  height: 100%;
  min-width: 2px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}


.metric-bar-value {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: rgba(232, 238, 244, 0.92);
  text-align: right;
  line-height: 1.2;
  white-space: nowrap;
}

.metric-bar-context {
  display: block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 10px;
  font-weight: 400;
  color: var(--muted, #5A6E88);
  margin-top: 2px;
  white-space: normal;
}

.program-profile-source {
  margin-top: 6px;
  font-size: 10px;
  color: rgba(106, 125, 148, 0.9);
  line-height: 1.4;
}

@media (max-width: 900px) {
  .metric-bar-row {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .metric-bar-value {
    grid-column: 2;
    text-align: left;
    margin-top: 2px;
  }
}

/* program Operational Health Score — Program Performance tab */
.program-health-subhead {
  font-size: 11px;
  color: rgba(106, 125, 148, 0.95);
  line-height: 1.55;
  margin-bottom: 14px;
}

.program-health-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.program-health-row {
  background: var(--bg3, #0F1F3D);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px 14px;
}

.program-health-row-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.program-health-row-title {
  font-size: 12px;
  font-weight: 700;
  color: rgba(232, 238, 244, 0.92);
  line-height: 1.3;
}

.program-health-row-scoreblock {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.program-health-composite {
  font-family: 'Oswald', sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
}

.program-health-track {
  margin-bottom: 8px;
}

.program-health-components {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.program-health-component-pill {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(106, 125, 148, 0.95);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 3px 7px;
}

.program-health-note {
  font-size: 10px;
  font-style: italic;
  color: rgba(106, 125, 148, 0.95);
  line-height: 1.45;
}

.program-health-footer {
  margin-top: 12px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 10px;
  color: #ccc;
  line-height: 1.5;
}

#svc-program-health-badge .methodology-badge-version {
  text-transform: lowercase;
  letter-spacing: 0.08em;
}

/* Action cards — horizontal metadata footer */
.action-cards {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.action-card {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
  padding: 28px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.action-card__index {
  font-family: 'Oswald', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  padding-top: 2px;
}

.action-card__content {
  min-width: 0;
}

.action-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text, #E8EEF4);
  line-height: 1.35;
  margin-bottom: 8px;
}

.action-card__description {
  font-size: 13px;
  color: rgba(232, 238, 244, 0.62);
  line-height: 1.55;
  padding-bottom: 14px;
  border-bottom: 1px solid #1A2A44;
  margin-bottom: 12px;
}

.action-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  font-size: 13px;
  line-height: 1.45;
}

.action-card__meta-item {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px;
  flex: 0 1 auto;
}

.action-card__meta-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(106, 125, 148, 0.95);
}

.action-card__meta-value--impact {
  color: #93C5FD;
}

.action-card__meta-value--impact-eq {
  color: #C9A84C;
  font-weight: 700;
}

/* Fix 25 — Equotient Score 11D / 4 categories */
.eq-composite-meta {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 14px 18px;
}

.eq-composite-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
}

.eq-composite-label {
  font-family: 'Oswald', sans-serif;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
}

.eq-composite-value {
  font-family: 'Oswald', sans-serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
}

.eq-composite-divisor {
  font-size: 18px;
  color: var(--muted);
}

.eq-composite-tier {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
}

.eq-composite-coverage {
  font-size: 11px;
  color: #ccc;
  line-height: 1.5;
  margin-top: 6px;
}

.ai-business-partner-section {
  scroll-margin-top: 80px;
}

.eq-category-section {
  margin-bottom: 22px;
}

.eq-category-title {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(106, 125, 148, 0.85);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.eq-category-grid,
.dimension-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

@media (max-width: 1100px) {
  .eq-category-grid,
  .dimension-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .eq-category-grid,
  .dimension-row {
    grid-template-columns: 1fr;
  }
}

.eq-dimension-card,
.dimension-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 1.5rem;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.eq-dimension-card.active {
  opacity: 1;
  min-height: 320px;
}

.eq-dimension-card.inactive {
  opacity: 0.55;
  min-height: 320px;
  border: 1px solid var(--border);
}

.eq-will-measure {
  flex: 0 0 auto;
}

.eq-dimension-card.inactive .eq-dimension-icon {
  filter: grayscale(1);
}

.eq-dimension-header {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}

.eq-dimension-icon {
  font-size: 18px;
  line-height: 1;
}

.eq-dimension-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}

.eq-dimension-sub {
  font-size: 10px;
  color: var(--muted);
  margin: 0 0 10px;
  line-height: 1.4;
}

.eq-dimension-score-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.eq-dimension-score-value {
  font-family: 'Oswald', sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.eq-dimension-score-meta {
  font-size: 9px;
  color: var(--muted);
}

.eq-insight-depth {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.eq-insight-depth-label {
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  text-align: center;
  max-width: 72px;
  line-height: 1.2;
}

.eq-dimension-bar {
  height: 5px;
  background: var(--bg3);
  margin-bottom: 8px;
}

.eq-dimension-bar-fill {
  height: 100%;
}

.eq-dimension-detail {
  font-size: 10px;
  color: #ccc;
  line-height: 1.5;
  margin: 0 0 8px;
}

.eq-card-cta-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: auto;
}

.eq-card-cta-stack .sub-components-toggle {
  margin-top: 12px;
}

.eq-deepen-cta-wrap,
.eq-connection-cta-wrap {
  width: 100%;
  flex-shrink: 0;
}

.eq-deepen-cta {
  border-color: rgba(201, 168, 76, 0.45);
  color: var(--brand-gold);
  background: rgba(201, 168, 76, 0.08);
  font-size: 11px;
}

.eq-dimension-card.inactive > .eq-connection-cta-wrap,
.eq-card-cta-stack .eq-connection-cta-wrap {
  margin-top: 0.75rem;
}

.eq-dimension-card.inactive > .eq-connection-cta-wrap {
  margin-top: auto;
}

.eq-dimension-card.eq-awaiting-card {
  border-color: rgba(201, 168, 76, 0.35);
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.06) 0%, var(--bg2) 100%);
}

.eq-awaiting-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.75rem 0 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  border: 1px solid rgba(201, 168, 76, 0.4);
  background: rgba(201, 168, 76, 0.08);
  color: var(--brand-gold);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
}

.conn-row--awaiting {
  border-color: rgba(201, 168, 76, 0.28);
}

.conn-awaiting-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
  border: 1px solid rgba(201, 168, 76, 0.4);
  background: rgba(201, 168, 76, 0.08);
  color: var(--brand-gold);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
  text-align: right;
  max-width: 220px;
}

.conn-section__empty {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.eq-dimension-card .connection-cta,
.dimension-card .connection-cta {
  margin-top: 0;
  max-width: none;
}

.connection-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  background: #c9a84c;
  border: 1px solid #c9a84c;
  border-radius: 4px;
  color: #0a1628;
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  width: 100%;
  max-width: 360px;
  text-align: center;
  box-sizing: border-box;
}

.connection-cta:hover {
  background: #b89640;
  border-color: #b89640;
  color: #0a1628;
}

.eq-tier-stepper-wrap {
  margin-top: 0;
}

.eq-tier-stepper__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 12px;
}

.eq-tier-stepper__title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.eq-tier-stepper__trailing {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.eq-tier-stepper__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.eq-tier-stepper__col {
  padding: 10px 8px 12px;
  min-height: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.eq-tier-stepper__col:last-child {
  border-right: none;
}

.eq-tier-stepper__name {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 4px;
}

.eq-tier-stepper__range {
  font-size: 9px;
  color: var(--muted);
  margin-bottom: 8px;
}

.eq-tier-stepper__markers {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.eq-tier-stepper__marker {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.eq-tier-stepper__marker--you {
  color: var(--text);
}

.eq-tier-stepper__marker--target {
  color: var(--brand-gold);
}

.eq-tier-stepper__dot,
.eq-tier-stepper__flag {
  display: block;
  font-size: 11px;
  margin-bottom: 2px;
}

.connection-wizard-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.connection-wizard-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.connection-wizard-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  padding: 24px;
  background: var(--bg2);
  border: 1px solid var(--border);
}

.connection-wizard-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

.connection-wizard-modal__title {
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px;
  padding-right: 28px;
}

/* Fix 25.7 — Capital-Ready Reporting + lender/investor preview modals */
.capital-reporting-section__title,
.capital-reporting-section .section-title {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-gold);
  margin: 0 0 12px;
}

.capital-reporting-section__description,
.capital-reporting-section .section-description {
  font-size: 13px;
  color: #ccc;
  line-height: 1.65;
  margin: 0;
  max-width: 720px;
}

.capital-reporting-ctas {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.capital-reporting-ctas .connection-cta {
  flex: 1 1 320px;
  max-width: 440px;
}

@media (max-width: 768px) {
  .capital-reporting-ctas {
    flex-direction: column;
  }
  .capital-reporting-ctas .connection-cta {
    max-width: 100%;
  }
}

.capital-snapshot-modal__panel {
  max-width: 720px;
  max-height: min(90vh, 880px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #0a1628;
  border-color: rgba(201, 168, 76, 0.35);
  padding: 0;
}

.capital-gate-header h1 {
  margin-bottom: 10px;
}

.capital-gate-structure-label {
  font-size: 12px;
  color: var(--brand-gold);
  line-height: 1.55;
  margin: 0 0 16px;
}

.capital-gate-message {
  margin-bottom: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.capital-gate-message p {
  margin: 0 0 8px;
  font-size: 12px;
  color: #ccc;
  line-height: 1.6;
}

.capital-gate-ships {
  font-size: 11px !important;
  color: var(--muted) !important;
  margin-bottom: 0 !important;
}

.capital-structure-fields {
  margin: 0;
  padding: 0 0 0 18px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.65;
}

.capital-structure-fields li {
  margin-bottom: 4px;
}

.capital-gate-section h3 {
  color: rgba(255, 255, 255, 0.55);
}

.capital-gate-footer {
  margin-top: 8px;
}

.capital-gate-footer .connection-cta {
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

.capital-snapshot-body {
  overflow-y: auto;
  padding: 20px 24px 24px;
  flex: 1;
}

.snapshot-header h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
}

.snapshot-header .doc-meta,
.lender-doc-header .lender-doc-meta {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 18px;
}

.snapshot-section {
  margin-bottom: 18px;
}

.snapshot-section h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 8px;
}

.snapshot-section table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.snapshot-section th,
.snapshot-section td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.snapshot-section th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-align: left;
}

.snapshot-section td:first-child {
  color: var(--muted);
  width: 55%;
}

.snapshot-section td:last-child {
  text-align: right;
  color: var(--text);
  font-weight: 600;
}

.snapshot-section .gold,
.snapshot-val-gold {
  color: var(--brand-gold) !important;
}

.snapshot-disclaimer {
  font-size: 10px;
  color: rgba(204, 204, 204, 0.75);
  line-height: 1.55;
  margin-bottom: 16px;
}

.snapshot-disclaimer p {
  margin: 0 0 8px;
}

.snapshot-footer {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.snapshot-footer p {
  font-size: 12px;
  color: #ccc;
  line-height: 1.6;
  margin: 0 0 14px;
}

.snapshot-use-cases {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 12px;
  color: #ccc;
  line-height: 1.65;
}

.snapshot-use-cases li {
  margin-bottom: 10px;
}

.capital-snapshot-loading,
.capital-snapshot-error {
  font-size: 13px;
  color: var(--muted);
  padding: 24px 0;
}

/* Fix 25.8 — Your Equotient Roadmap */
.equotient-roadmap-section__title {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-gold);
  margin: 0 0 12px;
}

.equotient-roadmap-section__description {
  font-size: 13px;
  color: #ccc;
  line-height: 1.65;
  margin: 0 0 16px;
  max-width: 720px;
}

.priority-card {
  background: rgba(30, 64, 175, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 8px;
  padding: 1.5rem 2rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.priority-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.priority-badge {
  color: #c9a84c;
  font-weight: 700;
}

.priority-score-weight .gold {
  color: var(--brand-gold);
  font-weight: 700;
}

.priority-dimension-name {
  font-family: 'Oswald', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.priority-reason {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  margin: 0;
}

.priority-card .connection-cta {
  align-self: flex-start;
  margin-top: 0.5rem;
  max-width: 100%;
}

.roadmap-footer {
  margin-top: 1.5rem;
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.roadmap-footer .footer-prompt {
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.cc-connection-ctas .btn-primary-gold {
  align-self: flex-start;
}

.eq-will-measure {
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 8px 10px;
  margin-bottom: 16px;
  font-size: 10px;
  color: #ccc;
  line-height: 1.5;
  flex-shrink: 0;
}

.eq-breakdown-row--pending td {
  opacity: 0.85;
}

.eq-will-measure strong {
  color: var(--text);
  font-style: normal;
}

.eq-will-measure ul {
  margin: 6px 0 0;
  padding-left: 16px;
}

.sub-components-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: transparent;
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 4px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: border-color 200ms ease, color 200ms ease, background 200ms ease;
  align-self: flex-start;
  margin-top: 12px;
}

.sub-components-toggle:hover {
  border-color: rgba(201, 168, 76, 0.6);
  color: rgba(255, 255, 255, 0.9);
  background: rgba(201, 168, 76, 0.05);
}

.sub-components-toggle:focus-visible {
  outline: none;
  border-color: #c9a84c;
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.2);
}

.sub-components-toggle .toggle-chevron {
  transition: transform 200ms ease;
  color: currentColor;
  flex-shrink: 0;
}

.sub-components-toggle[aria-expanded='true'] {
  border-color: rgba(201, 168, 76, 0.5);
  color: rgba(255, 255, 255, 0.95);
}

.sub-components-toggle[aria-expanded='true'] .toggle-chevron {
  transform: rotate(180deg);
}

.sub-components-detail {
  display: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sub-components-detail h4 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 10px;
}

.sub-components-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sub-components-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.sub-components-list li:last-child {
  border-bottom: none;
}

.sub-components-list .sub-component-weight {
  color: #c9a84c;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.methodology-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  color: #c9a84c;
  text-decoration: none;
  border-bottom: 1px dashed rgba(201, 168, 76, 0.4);
  padding-bottom: 1px;
}

.methodology-link:hover {
  border-bottom-style: solid;
}

.eq-methodology-footer-eq {
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 16px 18px;
  font-size: 11px;
  color: #ccc;
  line-height: 1.65;
}

.eq-methodology-footer-eq h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 10px;
}

.eq-methodology-sources {
  margin-top: 10px;
  font-size: 10px;
  color: var(--muted);
}

.action-card__meta-value--owner {
  color: #fff;
  font-weight: 700;
}

.action-card__meta-value--deadline {
  color: var(--text);
  font-weight: 700;
}

.action-card__meta-sep {
  color: rgba(106, 125, 148, 0.55);
  user-select: none;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .action-card {
    padding: 22px;
    gap: 12px;
  }

  .action-card__meta-sep {
    display: none;
  }

  .action-card__meta-item {
    flex: 1 1 100%;
  }
}

/* ---------- Dashboard color key (persistent legend) ---------- */
body.dashboard-has-color-key {
  padding-bottom: var(--color-key-height, 40px);
}

.color-key {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 250;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--aeq-muted);
}

.color-key__inner {
  display: flex;
  align-items: center;
  gap: 12px 16px;
  flex-wrap: wrap;
  padding: 8px 20px;
  max-width: 100%;
}

.color-key__heading {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(138, 151, 174, 0.85);
  flex-shrink: 0;
}

.color-key__groups {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  flex: 1;
  min-width: 0;
}

.color-key__group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.color-key__group-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(138, 151, 174, 0.65);
  margin-right: 2px;
}

.color-key__sep {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.color-key__item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.color-key__label {
  color: rgba(234, 238, 246, 0.82);
  font-size: 12px;
}

.color-key__range {
  color: var(--aeq-muted);
  font-size: 11px;
}

.color-key__swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.color-key__swatch--tier-enterprise { background: var(--tier-enterprise); }
.color-key__swatch--tier-developing { background: var(--tier-developing); border-color: rgba(255, 255, 255, 0.45); }
.color-key__swatch--tier-reactive { background: var(--tier-reactive); }
.color-key__swatch--tier-absent { background: var(--tier-absent); }
.color-key__swatch--tier-critical { background: var(--tier-critical); }
.color-key__swatch--brand {
  display: inline-block;
}

.color-key__swatch--direction-up {
  background: transparent;
  color: var(--tier-developing);
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  border: none;
  border-radius: 0;
  width: auto;
  height: auto;
}

.color-key__swatch--direction-down {
  background: transparent;
  color: var(--tier-critical);
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  border: none;
  border-radius: 0;
  width: auto;
  height: auto;
}

.color-key__swatch--chart-palette {
  width: 56px;
  height: 12px;
  border-radius: 2px;
  border: none;
  background: linear-gradient(
    90deg,
    var(--chart-1) 0% 20%,
    var(--chart-2) 20% 40%,
    var(--chart-3) 40% 60%,
    var(--chart-4) 60% 80%,
    var(--chart-5) 80% 100%
  );
}

.color-key__toggle {
  display: none;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 4px 10px;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--aeq-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  cursor: pointer;
}

.color-key__toggle:hover {
  color: rgba(234, 238, 246, 0.9);
  border-color: rgba(255, 255, 255, 0.14);
}

.color-key__panel[hidden] {
  display: none !important;
}

@media (max-width: 768px) {
  body.dashboard-has-color-key {
    padding-bottom: var(--color-key-height-mobile, 36px);
  }

  .color-key__inner {
    padding: 6px 12px;
    gap: 8px;
  }

  .color-key__heading {
    display: none;
  }

  .color-key__toggle {
    display: inline-flex;
  }

  .color-key__groups:not(.color-key__groups--open) {
    display: none;
  }

  .color-key__groups.color-key__groups--open {
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    max-height: min(50vh, 280px);
    overflow-y: auto;
    padding-top: 4px;
  }

  .color-key__sep {
    display: none;
  }

  .color-key__group {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}
