/* ============================================================
   Dolado · Dynamic dashboard fragments
   Loaded after css/site.css — extends the same token system.
   ============================================================ */

/* Shared dash chrome */
.dash {
  border: 1px solid var(--hair-strong);
  background: var(--bg-elev);
  position: relative;
}
.dash::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent 50%);
  opacity: 0.6;
}

.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--hair);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-2);
  text-transform: uppercase;
  gap: 16px;
}
.dash-head > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-weight: 500;
}
.dash-head-meta {
  color: var(--fg-3);
  text-transform: none;
  font-size: 10.5px;
  letter-spacing: 0.06em;
}
.dash-livedot {
  width: 8px;
  height: 8px;
  background: #2bd17e;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(43, 209, 126, 0.18);
  animation: dl-pulse 2.4s ease-in-out infinite;
  display: inline-block;
}
.dash-sync {
  font-family: var(--font-mono);
  color: var(--fg-3);
  letter-spacing: 0.06em;
}

.dash-foot {
  padding: 12px 20px;
  border-top: 1px solid var(--hair);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  text-transform: uppercase;
}

/* ============================================================
   1) OPS BOARD
   ============================================================ */
.dash-ops { margin-top: 64px; }

.ops-table {
  display: flex;
  flex-direction: column;
}

.ops-row {
  display: grid;
  grid-template-columns: 1.6fr 1.5fr 1.5fr 1fr 1fr 1fr;
  border-bottom: 1px solid var(--hair);
  align-items: center;
}
.ops-row:last-child { border-bottom: none; }

.ops-row-head {
  background: var(--bg-card-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.ops-row-head .ops-cell { padding: 12px 16px; }

.ops-row:not(.ops-row-head) {
  opacity: 0;
  transform: translateY(6px);
}
.ops-row.in:not(.ops-row-head) {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
  animation-name: ops-row-in;
  animation-duration: 0ms; /* placeholder, real reveal via delay */
}
@keyframes ops-row-in {
  to { opacity: 1; transform: translateY(0); }
}

.ops-cell {
  padding: 18px 16px;
  border-right: 1px solid var(--hair);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg);
}
.ops-cell:last-child { border-right: none; }

.ops-cell-0 {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ops-mark {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #fff;
  border: 1px solid currentColor;
  flex-shrink: 0;
}
.ops-mark-ml  { background: #fff159; color: #2d3277; }
.ops-mark-amz { background: #232f3e; color: #ff9900; }
.ops-mark-shp { background: #ee4d2d; color: #fff; }
.ops-mark-tt  { background: #000; color: #fff; }

.ops-channel {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--fg);
  letter-spacing: 0;
}

.ops-gmv {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.015em;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: var(--fg);
}
.ops-gmv-cur, .ops-gmv-unit {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-3);
  letter-spacing: 0.04em;
}
.ops-spark {
  display: block;
  width: 80px;
  height: 16px;
  margin-top: 4px;
}

.ops-sla-val {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--fg);
  letter-spacing: 0.02em;
  display: block;
  margin-bottom: 6px;
}
.ops-sla-bar {
  display: block;
  height: 4px;
  background: var(--hair);
  position: relative;
}
.ops-sla-bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--accent);
  transition: width 800ms var(--ease-out) 200ms;
}
.ops-sla-bar-target {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 1px;
  background: var(--fg);
}
.ops-sla-bar-target::after {
  content: "";
  position: absolute;
  top: -3px;
  left: -2px;
  width: 5px;
  height: 5px;
  background: var(--fg);
}

.ops-rep {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border: 1px solid;
  display: inline-block;
}
.ops-rep-ok { color: #2bd17e; border-color: rgba(43, 209, 126, 0.4); }
.ops-rep-warn { color: var(--accent); border-color: var(--accent); }

.ops-listings {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--fg);
  letter-spacing: 0.02em;
}

.ops-status {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ops-status-dot {
  width: 6px;
  height: 6px;
  background: #2bd17e;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(43, 209, 126, 0.18);
}
.ops-status-warn .ops-status-dot {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 121, 0, 0.18);
}

/* ============================================================
   1b) OPS ANATOMY — asymmetric flow with hero center
   Linear left→right: small BRAND → big DOLADO hero → stacked
   small MARKETPLACES + CONSUMERS. Connectors are SVG arrows
   between columns. Dolado dominates the visual hierarchy.
   ============================================================ */
.dash-anatomy { margin-top: 64px; }

.anatomy-board {
  padding: 48px 32px 52px;
  display: grid;
  grid-template-columns: minmax(180px, 0.95fr) 80px minmax(380px, 2.4fr) 80px minmax(220px, 1.05fr);
  gap: 0;
  align-items: stretch;
}

/* Small endpoint stations (Brand / Marketplaces / Consumers) */
.anatomy-station {
  border: 1px solid var(--hair-strong);
  background: var(--bg);
  padding: 22px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 480ms var(--ease-out) var(--anatomy-delay, 0ms), transform 480ms var(--ease-out) var(--anatomy-delay, 0ms);
}
.dash-anatomy[data-visible="1"] .anatomy-station { opacity: 1; transform: translateY(0); }

.anatomy-station-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hair);
}
.anatomy-station-icon {
  color: var(--fg-2);
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.anatomy-station-icon svg { width: 28px; height: 28px; }
.anatomy-station-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
  font-weight: 600;
}
.anatomy-station-label {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -0.022em;
  color: var(--fg);
  line-height: 1;
}
.anatomy-station-sublabel {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-top: -8px;
}
.anatomy-station-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}
.anatomy-station-items span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fg-2);
  text-transform: uppercase;
}
.anatomy-station-items span::before {
  content: "+ ";
  color: var(--accent);
}
.anatomy-station-mkts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 4px;
}
.anatomy-station-mkt {
  border: 1px solid var(--hair);
  background: var(--bg-elev);
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 6px;
}
.anatomy-station-mkt img,
.anatomy-station-mkt .mp-mark-svg {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Stack for the right column (Marketplaces above, Consumers below) */
.anatomy-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.anatomy-stack-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--accent);
}
.anatomy-stack-link .flow-arrow-svg {
  transform: rotate(90deg);
}

/* DOLADO hero — the central block, dominant */
.anatomy-hero {
  position: relative;
  border: 1px solid var(--accent);
  background: linear-gradient(180deg, rgba(255, 121, 0, 0.10) 0%, rgba(255, 121, 0, 0.02) 60%, transparent 100%);
  padding: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 600ms var(--ease-out) var(--anatomy-delay, 0ms), transform 600ms var(--ease-out) var(--anatomy-delay, 0ms);
}
.dash-anatomy[data-visible="1"] .anatomy-hero { opacity: 1; transform: translateY(0); }
.anatomy-hero-rail {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent);
}
.anatomy-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 121, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 121, 0, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
  opacity: 0.6;
}

.anatomy-hero-head {
  padding: 22px 28px 18px;
  border-bottom: 1px solid var(--hair-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.anatomy-hero-head-left {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.anatomy-hero-icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.anatomy-hero-icon svg { width: 32px; height: 32px; }
.anatomy-hero-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.anatomy-hero-note {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.anatomy-hero-titles {
  padding: 28px 28px 12px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.anatomy-hero-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(36px, 4vw, 52px);
  letter-spacing: -0.03em;
  color: var(--fg);
  line-height: 1;
}
.anatomy-hero-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-2);
}

.anatomy-hero-disciplines {
  list-style: none;
  margin: 0;
  padding: 12px 28px 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  position: relative;
  z-index: 1;
}
.anatomy-hero-disc {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 14px;
  background: rgba(255, 121, 0, 0.04);
  border: 1px solid rgba(255, 121, 0, 0.18);
  opacity: 0;
  transform: translateY(6px);
  animation: anatomy-disc-in 480ms var(--ease-out) var(--disc-delay, 0ms) forwards;
}
.dash-anatomy[data-visible="0"] .anatomy-hero-disc { animation: none; }
@keyframes anatomy-disc-in {
  to { opacity: 1; transform: translateY(0); }
}
.anatomy-hero-disc:hover { background: rgba(255, 121, 0, 0.10); }
.anatomy-hero-disc-n {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.anatomy-hero-disc-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.014em;
  color: var(--fg);
  line-height: 1.05;
}

.anatomy-hero-caps {
  padding: 16px 28px 22px;
  border-top: 1px solid var(--hair-strong);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 12px;
  position: relative;
  z-index: 1;
}
.anatomy-hero-caps-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.anatomy-hero-caps-sep { color: var(--fg-mute); }
.anatomy-hero-caps-text {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fg);
}

/* Connectors — SVG arrow + labels stacked below */
.anatomy-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--accent);
  padding: 0 4px;
  opacity: 0;
  transition: opacity 480ms var(--ease-out) var(--anatomy-delay, 0ms);
}
.dash-anatomy[data-visible="1"] .anatomy-link { opacity: 1; }
.anatomy-link-bi { gap: 8px; }
.anatomy-link .flow-arrow-svg {
  width: 48px;
  height: 14px;
}
.anatomy-link-labels {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.anatomy-link-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-2);
  line-height: 1.3;
  max-width: 88px;
  text-wrap: balance;
}
.anatomy-link-label-mute { color: var(--fg-3); }

@media (max-width: 1100px) {
  .anatomy-board {
    grid-template-columns: 1fr;
    padding: 28px 16px 36px;
    gap: 0;
  }
  .anatomy-link {
    padding: 16px 0;
  }
  .anatomy-link .flow-arrow-svg { transform: rotate(90deg); }
  .anatomy-link-labels { flex-direction: row; gap: 12px; }
  .anatomy-link-label { max-width: none; }
  .anatomy-hero-disciplines { grid-template-columns: repeat(2, 1fr); }
  .anatomy-stack { gap: 14px; }
}
@media (max-width: 640px) {
  .anatomy-hero-disciplines { grid-template-columns: 1fr; }
  .anatomy-station-mkts { grid-template-columns: 1fr; }
}

/* ============================================================
   2) PROMPT VISIBILITY MATRIX
   ============================================================ */
.dash-matrix { margin-top: 56px; }

/* Lead claim + hero stats — story FIRST, data second */
.matrix-claim {
  padding: 32px 28px 28px;
  border-bottom: 1px solid var(--hair);
  background: linear-gradient(180deg, var(--bg-card-2) 0%, transparent 100%);
}
.matrix-claim-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.36;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  color: var(--fg-2);
  text-wrap: balance;
  max-width: 880px;
}
.matrix-claim-lead { color: var(--fg-3); font-weight: 500; }
.matrix-claim-punch {
  color: var(--fg);
  font-weight: 800;
  background-image: linear-gradient(transparent 80%, rgba(255, 121, 0, 0.32) 80%);
  background-repeat: no-repeat;
  padding: 0 2px;
}
.matrix-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--hair);
}
.matrix-hero-stat {
  padding: 18px 22px;
  border-right: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.matrix-hero-stat:last-child { border-right: none; }
.matrix-hero-stat-value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--fg);
  display: inline-flex;
  align-items: baseline;
}
.matrix-hero-stat-win .matrix-hero-stat-value { color: var(--accent); }
.matrix-hero-stat-mute .matrix-hero-stat-value { color: var(--fg-2); }
.matrix-hero-stat-prefix,
.matrix-hero-stat-total {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 500;
  color: var(--fg-3);
  letter-spacing: 0;
}
.matrix-hero-stat-prefix { margin-right: 2px; }
.matrix-hero-stat-total { margin-left: 2px; }
.matrix-hero-stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
}

/* Group bracket above column headers — visually anchors "operated" */
.matrix-groups {
  display: grid;
  grid-template-columns: 240px repeat(5, 1fr);
  border-top: 1px solid var(--hair-strong);
}
.matrix-groups-spacer { border-right: 1px solid var(--hair); }
.matrix-group {
  position: relative;
  padding: 10px 16px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--hair);
}
.matrix-group:last-child { border-right: none; }
.matrix-group::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12px;
  right: 12px;
  height: 2px;
}
.matrix-group-operated::before { background: var(--accent); }
.matrix-group-competitor::before { background: var(--hair-strong); }
.matrix-group-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.matrix-group-operated .matrix-group-label { color: var(--accent); }
.matrix-group-competitor .matrix-group-label { color: var(--fg-3); }

/* The matrix grid itself */
.matrix-grid {
  display: grid;
  grid-template-columns: 240px repeat(5, 1fr);
  background: var(--bg);
}

.matrix-corner {
  border-bottom: 1px solid var(--hair);
  border-right: 1px solid var(--hair);
  background: var(--bg-card-2);
}

.matrix-col-head {
  padding: 14px 12px 16px;
  background: var(--bg-card-2);
  border-bottom: 1px solid var(--hair);
  border-right: 1px solid var(--hair);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.matrix-col-head:last-child { border-right: none; }
.matrix-col-head.operated {
  background: linear-gradient(180deg, rgba(255, 121, 0, 0.16) 0%, rgba(255, 121, 0, 0.04) 100%);
}
.matrix-col-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--fg);
}
.matrix-col-head.operated .matrix-col-name { color: var(--accent); }

.matrix-row-head {
  padding: 0 18px;
  border-bottom: 1px solid var(--hair);
  border-right: 1px solid var(--hair);
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 56px;
  background: var(--bg);
}
.matrix-row-n {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--fg-3);
}
.matrix-row-cat {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--fg);
  letter-spacing: -0.005em;
}

.matrix-cell {
  border-bottom: 1px solid var(--hair);
  border-right: 1px solid var(--hair);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 56px;
  opacity: 0;
  transform: translateY(6px) scale(0.95);
  transition: opacity 360ms var(--ease-out), transform 360ms var(--ease-out), background 200ms var(--ease-out);
}
.matrix-grid[data-visible="1"] .matrix-cell {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.matrix-cell:hover { z-index: 2; }
.matrix-cell.operated-col { background: rgba(255, 121, 0, 0.045); }

/* Rank tier treatments — sharper hierarchy: #1 is a solid badge,
   #2 and #3 step down clearly. Absent reads as quiet negative space. */
.matrix-rank-0 .matrix-cell-absent {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--fg-mute);
  opacity: 0.4;
}
.matrix-rank-1 {
  background: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.matrix-rank-1 .matrix-cell-rank {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.02em;
}
.matrix-rank-2 {
  background: rgba(255, 121, 0, 0.22);
}
.matrix-rank-2 .matrix-cell-rank {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.matrix-rank-3 {
  background: rgba(255, 121, 0, 0.09);
}
.matrix-rank-3 .matrix-cell-rank {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 121, 0, 0.7);
}

/* Op-win cells get a subtle inner glow + animated pulse on reveal */
.matrix-cell.op-win {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 0 0 rgba(255, 121, 0, 0.4);
}
.matrix-grid[data-visible="1"] .matrix-cell.op-win {
  animation: matrix-win-pulse 1.6s var(--ease-out) 1.2s;
}
@keyframes matrix-win-pulse {
  0%   { box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 0 0 0 rgba(255,121,0,.0); }
  40%  { box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 0 0 6px rgba(255,121,0,.18); }
  100% { box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 0 0 0 rgba(255,121,0,.0); }
}

/* Aggregate rows at the bottom */
.matrix-summary-head {
  border-top: 1px solid var(--hair-strong);
  border-right: 1px solid var(--hair);
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  background: var(--bg-card-2);
  display: flex;
  align-items: center;
}
.matrix-summary-cell {
  border-top: 1px solid var(--hair-strong);
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card-2);
}
.matrix-summary-cell:nth-child(6n) { border-right: none; }
.matrix-summary-cell.operated-col { background: rgba(255, 121, 0, 0.05); }
.matrix-summary-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  position: relative;
  display: block;
}
[data-theme="light"] .matrix-summary-bar { background: rgba(12, 36, 71, 0.08); }
.matrix-summary-bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--accent);
  transition: width 900ms var(--ease-out) 400ms;
}
.matrix-summary-cell:not(.operated-col) .matrix-summary-bar-fill {
  background: rgba(255, 121, 0, 0.4);
}
.matrix-summary-pct {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: 0.02em;
  min-width: 36px;
  text-align: right;
}
.matrix-summary-rank {
  justify-content: center;
}
.matrix-summary-rank .matrix-summary-rank-val {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.014em;
  color: var(--fg);
}
.matrix-summary-cell.operated-col.matrix-summary-rank .matrix-summary-rank-val {
  color: var(--accent);
}

@media (max-width: 1100px) {
  .matrix-groups,
  .matrix-grid { grid-template-columns: 160px repeat(5, 1fr); }
  .matrix-row-head { padding: 0 10px; grid-template-columns: 22px 1fr; gap: 8px; }
  .matrix-row-cat { font-size: 12.5px; }
  .matrix-hero-stat-value { font-size: 34px; }
  .matrix-rank-1 .matrix-cell-rank { font-size: 22px; }
}
@media (max-width: 700px) {
  .matrix-claim { padding: 24px 18px 20px; }
  .matrix-hero-stats { grid-template-columns: 1fr; }
  .matrix-hero-stat { border-right: none; border-bottom: 1px solid var(--hair); }
  .matrix-hero-stat:last-child { border-bottom: none; }
  .matrix-groups,
  .matrix-grid { grid-template-columns: 110px repeat(5, 1fr); }
  .matrix-cell { min-height: 44px; }
  .matrix-rank-1 .matrix-cell-rank { font-size: 18px; }
}

/* ============================================================
   3) GMV TIMELINE
   ============================================================ */
.dash-timeline { margin-top: 56px; }

.timeline-stage {
  position: relative;
  padding: 24px 16px 16px;
}

.timeline-total {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
  padding: 12px 16px;
  border: 1px solid var(--hair-strong);
  background: var(--bg);
}
.timeline-total-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 6px;
}
.timeline-total-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--fg);
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.timeline-total-cur, .timeline-total-unit {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.timeline-svg {
  width: 100%;
  height: auto;
  display: block;
}
.timeline-anno {
  transition: opacity 400ms var(--ease-out);
}

/* ============================================================
   4) COHORT TRACKER
   ============================================================ */
.dash-cohort {
  margin: 0; /* Embedded inside .lab-left, no outer margin */
}

.cohort-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--hair);
}
.cohort-kpi {
  padding: 16px 14px;
  border-right: 1px solid var(--hair);
}
.cohort-kpi:last-child { border-right: none; }
.cohort-kpi-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 6px;
  line-height: 1.3;
}
.cohort-kpi-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--fg);
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.cohort-kpi-suffix {
  font-size: 14px;
  color: var(--fg-3);
  font-weight: 500;
  letter-spacing: 0;
}

.cohort-slots {
  padding: 18px 16px 16px;
  border-bottom: 1px solid var(--hair);
}
.cohort-slots-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 12px;
}
.cohort-slots-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
}
.cohort-slot {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--hair-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-3);
  position: relative;
  opacity: 0;
  transform: scale(0.7);
  transition: all 360ms var(--ease-out);
}
.cohort-slot.in {
  opacity: 1;
  transform: scale(1);
}
.cohort-slot-confirmed {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.cohort-slot-review {
  background: rgba(255, 121, 0, 0.16);
  border-color: var(--accent);
  color: var(--accent);
}
.cohort-slot-open {
  background-image: repeating-linear-gradient(135deg, transparent 0 4px, var(--hair) 4px 5px);
}
.cohort-slot-n { line-height: 1; }

.cohort-slots-legend {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.cohort-slot-leg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cohort-slot-leg::before {
  content: "";
  width: 10px;
  height: 10px;
  display: inline-block;
}
.cohort-slot-leg-confirmed::before { background: var(--accent); }
.cohort-slot-leg-review::before {
  background: rgba(255, 121, 0, 0.16);
  border: 1px solid var(--accent);
}
.cohort-slot-leg-open::before {
  background-image: repeating-linear-gradient(135deg, transparent 0 3px, var(--hair-strong) 3px 4px);
  border: 1px solid var(--hair-strong);
}

.cohort-pipeline {
  padding: 18px 16px;
}
.cohort-pipeline-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 12px;
}
.cohort-pipe-row {
  display: grid;
  grid-template-columns: 110px 1fr 50px;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  font-family: var(--font-mono);
  font-size: 12px;
}
.cohort-pipe-name {
  color: var(--fg-2);
  letter-spacing: 0.02em;
}
.cohort-pipe-bar {
  display: block;
  height: 14px;
  background: var(--hair);
  position: relative;
}
.cohort-pipe-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, rgba(255, 121, 0, 0.5), var(--accent));
  transition: width 900ms var(--ease-out);
}
.cohort-pipe-fill.final {
  background: var(--accent);
}
.cohort-pipe-val {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg);
  text-align: right;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  .ops-row {
    grid-template-columns: 1.4fr 1.2fr 1.2fr 1fr;
  }
  .ops-cell-4, .ops-cell-5 { display: none; }
  .ops-row-head .ops-cell-4, .ops-row-head .ops-cell-5 { display: none; }
  .matrix-grid { grid-template-columns: 160px repeat(5, 1fr); }
  .matrix-foot { grid-template-columns: 1fr; }
  .matrix-stats { border-right: none; border-bottom: 1px solid var(--hair); }
  .cohort-kpis { grid-template-columns: repeat(2, 1fr); }
  .cohort-kpi:nth-child(2n) { border-right: none; }
}
@media (max-width: 700px) {
  .ops-row { grid-template-columns: 1.4fr 1fr 1fr; }
  .ops-cell-3 { display: none; }
  .ops-row-head .ops-cell-3 { display: none; }
  .matrix-grid { grid-template-columns: 120px repeat(5, 1fr); }
  .matrix-row-head { padding: 12px 8px; font-size: 11px; }
  .timeline-total { position: static; margin-bottom: 16px; }
}
