:root {
  color-scheme: light;
  --bg: #f4f7f6;
  --surface: #ffffff;
  --surface-soft: #f8fbfa;
  --ink: #17231f;
  --muted: #61706b;
  --line: #d7e0dd;
  --line-strong: #aebdb8;
  --teal: #137c72;
  --teal-deep: #0f625b;
  --teal-soft: #d9efeb;
  --red: #b94d3f;
  --red-soft: #f7ddd8;
  --amber: #a36f10;
  --amber-soft: #f8e8c7;
  --green: #377c43;
  --green-soft: #dff1e2;
  --blue: #315f8f;
  --blue-soft: #dbe8f5;
  --radius: 8px;
  --shadow: 0 14px 34px rgba(23, 35, 31, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.dash-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 247, 246, 0.98)),
    repeating-linear-gradient(90deg, rgba(23, 35, 31, 0.035) 0 1px, transparent 1px 86px);
}

.app-shell {
  width: min(1780px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 18px 0 32px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 16px 0 14px;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(1.7rem, 2.4vw, 2.55rem);
  line-height: 1.08;
}

h2 {
  margin-bottom: 4px;
  font-size: 1.18rem;
}

.meta-line {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.quick-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.quick-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 850;
  text-decoration: none;
}

.curve-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.15fr) minmax(260px, 0.65fr);
  align-items: stretch;
  gap: 14px;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid rgba(174, 189, 184, 0.76);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(217, 239, 235, 0.86), rgba(255, 255, 255, 0.94) 44%, rgba(248, 251, 250, 0.98)),
    repeating-linear-gradient(90deg, rgba(19, 124, 114, 0.04) 0 1px, transparent 1px 72px);
  box-shadow: var(--shadow);
}

.curve-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.curve-hero-copy h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 2.3vw, 2.55rem);
  line-height: 1.04;
}

.area-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.area-chip {
  display: grid;
  grid-template-columns: auto auto;
  gap: 1px 8px;
  min-width: 150px;
  padding: 10px 12px;
  border: 1px solid rgba(174, 189, 184, 0.82);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.area-chip::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--area-color, var(--teal));
  grid-row: 1 / 3;
}

.area-chip span,
.area-chip strong,
.area-chip small {
  display: block;
}

.area-chip span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.area-chip strong {
  font-size: 1rem;
  line-height: 1.05;
}

.area-chip small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 780;
}

.area-chip.active {
  border-color: color-mix(in srgb, var(--area-color, var(--teal)) 55%, white);
  background: color-mix(in srgb, var(--area-color, var(--teal)) 10%, white);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--area-color, var(--teal)) 34%, transparent);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hero-stat {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-height: 108px;
  padding: 13px;
  border: 1px solid rgba(174, 189, 184, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
}

.hero-stat .dash-icon {
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: var(--radius);
  background: var(--teal-soft);
  color: var(--teal-deep);
}

.hero-stat span,
.hero-stat small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-stat strong {
  display: block;
  margin: 4px 0 5px;
  font-size: 1.7rem;
  line-height: 1;
}

.hero-stat small {
  text-transform: none;
  line-height: 1.3;
}

.hero-stat.good .dash-icon,
.hero-note.good {
  background: var(--green-soft);
  color: var(--green);
}

.hero-stat.bad .dash-icon,
.hero-note.bad {
  background: var(--red-soft);
  color: var(--red);
}

.hero-visual {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 13px;
  padding: 14px;
  border: 1px solid rgba(174, 189, 184, 0.72);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.9), rgba(248, 251, 250, 0.98));
}

.hero-ring {
  position: relative;
  display: grid;
  grid-template-rows: auto auto;
  align-content: center;
  justify-items: center;
  gap: 6px;
  place-items: center;
  width: 168px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    conic-gradient(var(--ring-color, var(--teal)) var(--ring, 0%), #e4ece9 0);
  box-shadow: inset 0 0 0 1px rgba(174, 189, 184, 0.44), 0 18px 36px rgba(23, 35, 31, 0.12);
  isolation: isolate;
}

.hero-ring::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.96);
}

.hero-ring span,
.hero-ring small {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  text-align: center;
}

.hero-ring span {
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1;
}

.hero-ring small {
  margin-top: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-note {
  width: 100%;
  padding: 11px;
  border-radius: var(--radius);
  background: var(--amber-soft);
  color: var(--amber);
  text-align: center;
}

.hero-note strong,
.hero-note span {
  display: block;
}

.hero-note strong {
  font-size: 0.95rem;
}

.hero-note span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.kpi-card,
.panel,
.control-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.kpi-card {
  position: relative;
  min-height: 126px;
  padding: 14px;
  overflow: hidden;
}

.kpi-card::after {
  content: "";
  position: absolute;
  right: -32px;
  bottom: -38px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(19, 124, 114, 0.08);
}

.kpi-card .dash-icon {
  margin-bottom: 11px;
  color: var(--teal);
}

.kpi-card.good span {
  color: var(--green);
}

.kpi-card.bad span {
  color: var(--red);
}

.kpi-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.kpi-card span {
  display: block;
  font-size: 2rem;
  font-weight: 880;
  line-height: 1;
}

.kpi-card small {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.35;
}

.control-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
  padding: 14px;
}

label {
  display: grid;
  gap: 6px;
}

label span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

select {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(320px, 0.58fr);
  gap: 14px;
  margin-bottom: 14px;
}

.panel {
  overflow: hidden;
  margin-bottom: 14px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  min-height: 72px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 251, 250, 0.94);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend i {
  display: inline-block;
  width: 22px;
  height: 4px;
  border-radius: 999px;
}

.legend .plan {
  background: #34413d;
}

.legend .actual {
  background: var(--teal);
}

.legend .variance {
  background: var(--red);
}

.chart-wrap {
  min-height: 704px;
  padding: 18px;
  overflow-x: auto;
  background:
    radial-gradient(circle at 18% 8%, rgba(19, 124, 114, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(248, 251, 250, 0.96), rgba(255, 255, 255, 0.98));
}

.chart-svg {
  display: block;
  width: 100%;
  min-width: 1120px;
  height: 590px;
}

.chart-stat-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
  min-width: 920px;
}

.chart-stat {
  padding: 11px 13px;
  border: 1px solid rgba(174, 189, 184, 0.68);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
}

.chart-stat span,
.chart-stat small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 820;
  text-transform: uppercase;
}

.chart-stat b {
  display: block;
  margin: 4px 0 3px;
  font-size: 1.45rem;
  line-height: 1;
}

.chart-stat small {
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.chart-stat.good b {
  color: var(--green);
}

.chart-stat.bad b {
  color: var(--red);
}

.plot-bg {
  fill: rgba(255, 255, 255, 0.72);
  stroke: rgba(174, 189, 184, 0.42);
  stroke-width: 1;
}

.axis {
  stroke: rgba(97, 112, 107, 0.42);
  stroke-width: 1.2;
}

.grid-line {
  stroke: rgba(97, 112, 107, 0.18);
  stroke-width: 1;
}

.line-plan,
.line-actual {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.line-plan {
  stroke: #34413d;
  stroke-width: 3.2;
  stroke-dasharray: 11 10;
  opacity: 0.78;
}

.line-actual {
  stroke: var(--teal);
  stroke-width: 6.8;
  filter: drop-shadow(0 9px 16px rgba(19, 124, 114, 0.2));
}

.actual-area {
  fill: var(--teal);
  opacity: 0.13;
}

.dot-plan,
.dot-actual {
  stroke: var(--surface);
  stroke-width: 2;
}

.dot-plan {
  fill: #34413d;
  opacity: 0.82;
}

.dot-actual {
  fill: var(--teal);
  filter: drop-shadow(0 5px 11px rgba(19, 124, 114, 0.22));
}

.variance-bar {
  fill: rgba(185, 77, 63, 0.18);
}

.variance-bar.good {
  fill: rgba(55, 124, 67, 0.18);
}

.chart-label {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.latest-guide {
  stroke: rgba(163, 111, 16, 0.55);
  stroke-dasharray: 5 8;
  stroke-width: 1.5;
}

.latest-dot {
  fill: var(--surface);
  stroke: var(--teal);
  stroke-width: 5;
  filter: drop-shadow(0 10px 20px rgba(19, 124, 114, 0.24));
}

.plan-end-dot {
  fill: var(--surface);
  stroke: #34413d;
  stroke-width: 4;
}

.latest-list,
.comparison-board {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.latest-item,
.comparison-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.latest-item {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-left: 5px solid var(--area-color, var(--teal));
}

.latest-item h3,
.comparison-row h3 {
  margin: 0;
  font-size: 0.96rem;
}

.latest-title {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.latest-title span,
.latest-readout small,
.comparison-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.latest-readout strong {
  display: block;
  font-size: 1.55rem;
  line-height: 1;
}

.latest-item.bad .latest-readout strong {
  color: var(--red);
}

.mini-meter {
  display: block;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6ecea;
}

.mini-meter i {
  display: block;
  width: var(--value, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--area-color, var(--teal));
}

.insight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
  gap: 14px;
}

.insight-list {
  display: grid;
  gap: 11px;
  padding: 14px;
}

.insight-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.insight-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--teal-soft);
  color: var(--teal-deep);
}

.insight-card span,
.insight-card small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.insight-card strong {
  display: block;
  margin: 4px 0 4px;
  font-size: 1.45rem;
  line-height: 1;
}

.insight-card small {
  text-transform: none;
  line-height: 1.35;
}

.insight-card.good .insight-icon,
.insight-card.good strong {
  color: var(--green);
}

.insight-card.good .insight-icon {
  background: var(--green-soft);
}

.insight-card.bad .insight-icon,
.insight-card.bad strong {
  color: var(--red);
}

.insight-card.bad .insight-icon {
  background: var(--red-soft);
}

.movement-board {
  padding: 14px 16px 18px;
}

.movement-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.movement-summary span {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.movement-summary b,
.movement-summary small {
  display: block;
}

.movement-summary b {
  font-size: 1.35rem;
  line-height: 1;
}

.movement-summary small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 790;
}

.movement-bars {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(56px, 1fr);
  align-items: end;
  min-height: 260px;
  gap: 8px;
  padding: 8px 4px 0;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, transparent 0 24%, rgba(97, 112, 107, 0.1) 24% 24.4%, transparent 24.4% 49%, rgba(97, 112, 107, 0.1) 49% 49.4%, transparent 49.4% 74%, rgba(97, 112, 107, 0.1) 74% 74.4%, transparent 74.4%);
}

.movement-bar {
  display: grid;
  grid-template-rows: auto minmax(72px, 1fr) auto;
  justify-items: center;
  align-items: end;
  min-height: 238px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 830;
}

.movement-bar b {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 0.74rem;
}

.movement-bar i {
  display: block;
  width: 30px;
  min-height: 4px;
  border-radius: 7px 7px 0 0;
  background: linear-gradient(180deg, var(--teal), var(--teal-deep));
  box-shadow: 0 10px 18px rgba(19, 124, 114, 0.18);
}

.movement-bar.drop i {
  background: linear-gradient(180deg, var(--red), #8f392f);
}

.movement-bar small {
  margin-top: 8px;
  white-space: nowrap;
}

.comparison-row {
  display: grid;
  grid-template-columns: minmax(210px, 0.7fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 11px;
}

.meter-pair {
  display: grid;
  gap: 8px;
}

.meter-line {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.meter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6ecea;
}

.meter > i {
  display: block;
  width: var(--value, 0%);
  max-width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.meter.plan > i {
  background: #28312e;
}

.variance-pill {
  min-width: 82px;
  padding: 9px 10px;
  border-radius: var(--radius);
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 1rem;
  font-weight: 880;
  text-align: center;
}

.variance-pill.good {
  background: var(--green-soft);
  color: var(--green);
}

.variance-pill.bad {
  background: var(--red-soft);
  color: var(--red);
}

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

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #e9f1ef;
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
}

td {
  font-size: 0.9rem;
}

.num {
  font-weight: 840;
}

.empty {
  padding: 18px;
  color: var(--muted);
}

@media (max-width: 1160px) {
  .curve-hero,
  .insight-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kpi-grid,
  .chart-grid,
  .control-panel {
    grid-template-columns: 1fr 1fr;
  }

  .chart-grid {
    grid-template-columns: 1fr;
  }

  .chart-stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .comparison-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .app-shell {
    width: min(100vw - 16px, 720px);
  }

  .topbar,
  .control-panel,
  .kpi-grid,
  .chart-grid,
  .hero-stats,
  .movement-summary {
    grid-template-columns: 1fr;
    display: grid;
  }

  .curve-hero {
    padding: 12px;
  }

  .area-chip {
    width: 100%;
  }

  .quick-nav,
  .legend {
    justify-content: flex-start;
  }

  .chart-stat-strip {
    grid-template-columns: 1fr;
  }
}
/* Tuah brand theme layer */
:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-soft: #f9fafb;
  --surface-strong: #ffffff;
  --ink: #1c242c;
  --muted: #5e6a76;
  --line: #dce3ea;
  --line-strong: #aeb8c3;
  --teal: #f15b22;
  --teal-deep: #c74412;
  --teal-soft: #ffe5d6;
  --coral: #f15b22;
  --coral-soft: #ffe5d6;
  --amber: #f15b22;
  --amber-soft: #fff0e7;
  --blue: #264a80;
  --blue-soft: #e2ebf7;
  --green: #2f7a4f;
  --green-soft: #e1f1e8;
  --red: #c8442e;
  --red-soft: #fde4de;
  --charcoal: #1c242c;
  --shadow: 0 18px 42px rgba(28, 36, 44, 0.11);
}

body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 246, 248, 0.98)),
    repeating-linear-gradient(90deg, rgba(38, 74, 128, 0.035) 0 1px, transparent 1px 86px);
}

.topbar {
  border-bottom: 4px solid var(--teal);
}

.eyebrow {
  color: var(--teal);
  letter-spacing: 0.02em;
}

h1,
h2,
h3 {
  color: var(--ink);
}

.quick-nav a,
button,
.action-button,
.open-button,
.full-toggle {
  border-color: var(--line-strong);
  color: var(--ink);
}

.quick-nav a:hover,
.quick-nav a[aria-current="page"],
button:hover,
.action-button:hover,
.open-button:hover,
.full-toggle:hover {
  border-color: var(--teal);
  background: var(--teal-soft);
  color: var(--ink);
}

.panel,
.kpi-card,
.control-panel,
.stat-card,
.metric-card,
.money-focus,
.progress-hero,
.curve-hero,
.countdown-card,
.manhours-card,
.timeline-card,
.vessel-card {
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.panel-head,
th {
  background: linear-gradient(90deg, rgba(255, 229, 214, 0.82), rgba(249, 250, 251, 0.96));
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(241, 91, 34, 0.28);
  border-color: var(--teal);
}

.status-chip.critical,
.status-pill.state-rejected,
.variance.bad,
.variance-pill.bad {
  background: var(--red-soft);
  color: var(--red);
}

/* ════════════════════════════════════════
   UNIFIED LAYOUT OVERRIDES (20260524)
   ════════════════════════════════════════ */
:root {
  --bg: #f0f4f8;
  --surface: #ffffff;
  --surface-soft: #f7f9fb;
  --surface-strong: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --ink: #1a202c;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --teal: #f15b22;
  --teal-deep: #c74412;
  --teal-soft: #fff1eb;
  --coral: #f15b22;
  --coral-soft: #fff1eb;
  --amber: #d97706;
  --amber-soft: #fffbeb;
  --green: #16a34a;
  --green-soft: #f0fdf4;
  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --red: #dc2626;
  --red-soft: #fef2f2;
  --charcoal: #1e293b;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 6px 16px rgba(0,0,0,0.04);
}
html, body { background: var(--bg); color: var(--ink); }
.app-shell {
  display: grid !important;
  grid-template-columns: 250px minmax(0, 1fr);
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100vh;
}
.main-content .topbar {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 28px;
  background: var(--surface-glass);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.main-content .topbar h1 { font-size: 1.2rem; margin-bottom: 0; }
.main-content main {
  padding: 24px 28px 40px;
  display: flex; flex-direction: column; gap: 20px;
  width: auto;
  max-width: none;
}
.quick-nav, .nav-pill, .status-stack { display: none !important; }

@media (max-width: 1024px) {
  .app-shell { grid-template-columns: 1fr !important; }
  .main-content main { padding: 18px 16px 32px; }
  .main-content .topbar { padding: 12px 16px; }
}

/* ── S-Curve mobile responsive ── */
@media (max-width: 900px) {
  .curve-hero { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .control-panel { grid-template-columns: 1fr; }
  .chart-grid { grid-template-columns: 1fr; }
  .insight-grid { grid-template-columns: 1fr; }
  .panel-head { flex-direction: column; align-items: stretch; gap: 10px; }
  .comparison-board, .movement-board { grid-template-columns: 1fr; }
  .chart-wrap { overflow-x: auto; }
  .table-wrap { overflow-x: auto; }
}
@media (max-width: 640px) {
  .kpi-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════
   S-CURVE MODERN POLISH (20260524-modern)
   Top-notch management view.
   ════════════════════════════════════════ */

/* ── Curve hero ── */
.curve-hero {
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.06) 0%, rgba(21, 29, 46, 0.4) 50%, rgba(56, 189, 248, 0.06) 100%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.6fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2), 0 8px 24px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
}
.curve-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #f97316, #38bdf8, #f97316);
  background-size: 200% 100%;
  animation: scurve-shimmer 8s ease-in-out infinite;
}
@keyframes scurve-shimmer {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 0%; }
}
.curve-hero-copy h2 {
  color: var(--ink);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}
.curve-hero-copy .eyebrow { color: #fb923c; }
.curve-hero-copy .meta-line { color: var(--muted); margin-bottom: 16px; }

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  border: 1px solid var(--line);
}
.hero-note.up,
.hero-note.good {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}
.hero-note.down,
.hero-note.bad {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}
.hero-note.flat,
.hero-note.warn {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.3);
}

/* Hero ring (progress ring) */
.hero-ring {
  width: 180px;
  height: 180px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    conic-gradient(#f97316 calc(var(--value, 0) * 1%), rgba(255,255,255,0.05) 0);
  position: relative;
  margin: 0 auto;
}
.hero-ring::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: var(--surface);
}
.hero-ring > * { position: relative; z-index: 1; }
.hero-ring strong {
  color: var(--ink);
  font-family: "JetBrains Mono", monospace;
  font-size: 2.2rem;
  font-weight: 800;
}
.hero-ring small { color: var(--muted); font-size: 0.74rem; }

/* Hero stats */
.hero-stats {
  display: grid;
  gap: 10px;
}
.hero-stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  display: grid;
  gap: 4px;
}
.hero-stat b {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero-stat strong,
.hero-stat .num {
  color: var(--ink);
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
  font-size: 1.3rem;
}
.hero-stat small { color: var(--muted); font-size: 0.74rem; }
.hero-stat.amber strong { color: #fbbf24; }
.hero-stat.red strong    { color: #f87171; }
.hero-stat.green strong  { color: #34d399; }
.hero-stat.blue strong   { color: #38bdf8; }

/* Area selector chips */
.area-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.area-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 200ms ease;
}
.area-chip:hover {
  background: rgba(249, 115, 22, 0.1);
  border-color: rgba(249, 115, 22, 0.3);
  color: #fb923c;
}
.area-chip.active {
  background: rgba(249, 115, 22, 0.18);
  border-color: rgba(249, 115, 22, 0.5);
  color: #f97316;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.15);
}

/* ── KPI cards ── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}
.kpi-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  display: grid;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: all 200ms ease;
}
.kpi-card:hover {
  border-color: rgba(249, 115, 22, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.kpi-card strong {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.kpi-card span.num {
  color: #f97316;
  font-family: "JetBrains Mono", monospace;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
}
.kpi-card small { color: var(--muted); font-size: 0.76rem; line-height: 1.4; }
.kpi-card.amber span.num { color: #fbbf24; }
.kpi-card.red span.num    { color: #f87171; }
.kpi-card.green span.num  { color: #34d399; }
.kpi-card.blue span.num   { color: #38bdf8; }

/* ── Control panel ── */
.control-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
label span {
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  text-transform: uppercase;
}
input, select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--ink);
  color-scheme: dark;
  border-radius: 8px;
  transition: all 200ms ease;
}
select option {
  background: #151d2e;
  color: #e5edf7;
}
select option:checked {
  background: #24324b;
  color: #ffffff;
}
input:focus, select:focus {
  outline: 2px solid rgba(249, 115, 22, 0.3);
  border-color: rgba(249, 115, 22, 0.5);
}

/* ── Panels ── */
.chart-grid,
.insight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 14px;
}
.chart-grid {
  grid-template-columns: 1.6fr 1fr;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.panel-head {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--line);
  padding: 16px 20px;
}
.panel-head h2 { color: var(--ink); font-weight: 800; }
.panel-head .eyebrow { color: #fb923c; }

/* ── Chart panel ── */
.chart-wrap {
  padding: 16px 20px;
  background: var(--surface);
  overflow-x: auto;
}
.chart-svg {
  width: 100%;
  height: auto;
  min-height: 280px;
  background: transparent;
}
.plot-bg {
  fill: rgba(255, 255, 255, 0.015);
}
.grid-line {
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 1;
  stroke-dasharray: 4 3;
}
.axis {
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 1;
}
.axis text,
.chart-label {
  fill: var(--muted);
  font-family: Inter, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
}
.line-plan {
  stroke: #38bdf8;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 3px rgba(56, 189, 248, 0.3));
}
.line-actual {
  stroke: #f97316;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 3px rgba(249, 115, 22, 0.3));
}
.actual-area {
  fill: url(#actual-grad);
  opacity: 0.18;
}
.dot-plan,
.dot-actual,
.plan-end-dot,
.latest-dot {
  stroke: var(--surface);
  stroke-width: 2;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}
.dot-plan, .plan-end-dot { fill: #38bdf8; }
.dot-actual, .latest-dot { fill: #f97316; }

.variance-bar {
  fill: rgba(16, 185, 129, 0.35);
}
.variance-bar.behind,
.variance-bar.negative {
  fill: rgba(239, 68, 68, 0.4);
}

/* Chart stats strip */
.chart-stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--line);
}
.chart-stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  display: grid;
  gap: 2px;
  min-width: 140px;
}
.chart-stat b {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.chart-stat span,
.chart-stat strong {
  color: var(--ink);
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
  font-size: 1rem;
}
.chart-stat.up strong,
.chart-stat.good strong { color: #34d399; }
.chart-stat.down strong,
.chart-stat.bad strong   { color: #f87171; }
.chart-stat.flat strong  { color: var(--muted); }

/* ── Chart legend ── */
.legend {
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
  align-items: center;
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.legend i {
  display: inline-block;
  width: 14px;
  height: 4px;
  border-radius: 999px;
}
.legend i.plan { background: #38bdf8; }
.legend i.actual { background: #f97316; }
.legend i.variance { background: linear-gradient(90deg, #10b981, #ef4444); height: 8px; border-radius: 2px; }

/* ── Insight list (next to chart) ── */
.insight-list {
  padding: 14px 16px;
  display: grid;
  gap: 8px;
}
.insight-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-left: 4px solid #fb923c;
  border-radius: 10px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: center;
  transition: all 200ms ease;
}
.insight-card:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(2px);
}
.insight-card.amber { border-left-color: #fbbf24; }
.insight-card.red    { border-left-color: #ef4444; }
.insight-card.green  { border-left-color: #10b981; }
.insight-card.blue   { border-left-color: #38bdf8; }
.insight-card b { color: var(--ink); font-weight: 700; font-size: 0.9rem; }
.insight-card small { color: var(--muted); font-size: 0.78rem; line-height: 1.4; }
.insight-icon {
  background: rgba(249, 115, 22, 0.12);
  color: #fb923c;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
}
.insight-card.amber .insight-icon { background: rgba(251,191,36,0.12); color: #fbbf24; }
.insight-card.red .insight-icon    { background: rgba(239,68,68,0.12); color: #f87171; }
.insight-card.green .insight-icon  { background: rgba(16,185,129,0.12); color: #34d399; }
.insight-card.blue .insight-icon   { background: rgba(56,189,248,0.12); color: #38bdf8; }

/* ── Movement board ── */
.movement-board {
  padding: 14px 16px;
  display: grid;
  gap: 8px;
}
.movement-bars {
  display: grid;
  gap: 8px;
}
.movement-bar {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.82rem;
}
.movement-bar b { color: var(--ink); font-weight: 700; }
.movement-bar span.num { color: var(--ink); font-family: "JetBrains Mono", monospace; font-weight: 800; }
.movement-bar.positive { border-left: 3px solid #10b981; }
.movement-bar.positive span.num { color: #34d399; }
.movement-bar.negative { border-left: 3px solid #ef4444; }
.movement-bar.negative span.num { color: #f87171; }
.movement-bar.flat { border-left: 3px solid #94a3b8; }

.movement-summary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--muted);
  font-size: 0.82rem;
}

/* ── Latest list ── */
.latest-list {
  padding: 14px 16px;
  display: grid;
  gap: 8px;
}
.latest-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-left: 4px solid #fb923c;
  border-radius: 10px;
  padding: 12px 14px;
  display: grid;
  gap: 8px;
  transition: all 200ms ease;
}
.latest-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}
.latest-item.up { border-left-color: #10b981; }
.latest-item.down { border-left-color: #ef4444; }
.latest-item.flat { border-left-color: #94a3b8; }
.latest-title { color: var(--ink); font-weight: 800; font-size: 0.92rem; }
.latest-readout {
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--muted);
  font-size: 0.82rem;
}
.latest-readout .num {
  color: var(--ink);
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
}
.latest-item.up .latest-readout .num { color: #34d399; }
.latest-item.down .latest-readout .num { color: #f87171; }
.latest-guide {
  background: rgba(255, 255, 255, 0.04);
  height: 6px;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}
.latest-guide::before {
  content: "";
  position: absolute;
  inset: 0 calc(100% - var(--value, 0%)) 0 0;
  background: linear-gradient(90deg, #f97316, #ea580c);
  border-radius: 999px;
}
.latest-item.up .latest-guide::before { background: linear-gradient(90deg, #10b981, #059669); }
.latest-item.down .latest-guide::before { background: linear-gradient(90deg, #ef4444, #dc2626); }

/* ── Comparison board ── */
.comparison-board {
  padding: 16px 20px;
  display: grid;
  gap: 8px;
}
.comparison-row {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: all 200ms ease;
}
.comparison-row:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(249, 115, 22, 0.25);
}
.comparison-row b { color: var(--ink); font-weight: 700; font-size: 0.86rem; }
.comparison-row small { color: var(--muted); font-size: 0.76rem; }
.comparison-row .num { color: var(--ink); font-family: "JetBrains Mono", monospace; font-weight: 800; }

.meter-pair {
  display: grid;
  gap: 5px;
}
.meter {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}
.meter::before {
  content: "";
  position: absolute;
  inset: 0 calc(100% - var(--value, 0%)) 0 0;
  background: linear-gradient(90deg, #f97316, #ea580c);
  border-radius: 999px;
}
.meter.plan {
  background: rgba(56, 189, 248, 0.12);
}
.meter.plan::before {
  background: linear-gradient(90deg, #38bdf8, #0ea5e9);
}
.mini-meter {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}
.mini-meter::before {
  content: "";
  position: absolute;
  inset: 0 calc(100% - var(--value, 0%)) 0 0;
  background: #fb923c;
  border-radius: 999px;
}

/* Variance pill */
.variance-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  border: 1px solid var(--line);
  font-family: "JetBrains Mono", monospace;
}
.variance-pill.up,
.variance-pill.good,
.variance-pill.green {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}
.variance-pill.down,
.variance-pill.bad,
.variance-pill.red {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}
.variance-pill.flat {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
}

/* ── Data points table ── */
.table-wrap {
  background: var(--surface);
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.82rem;
}
th {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  padding: 12px 14px;
}
td {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  padding: 11px 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.84rem;
}
tbody tr:nth-child(even) td { background: var(--surface-soft); }
tbody tr:hover td { background: rgba(249, 115, 22, 0.06); }

td.variance.up { color: #34d399; font-weight: 800; }
td.variance.down { color: #f87171; font-weight: 800; }
td.variance.flat { color: var(--muted); }

/* Number styling shared */
.num { font-family: "JetBrains Mono", monospace; font-weight: 800; }
.muted { color: var(--muted); }

/* Empty state */
.empty-state {
  color: var(--muted);
  text-align: center;
  padding: 24px;
  font-size: 0.84rem;
}

/* ── Mobile responsive ── */
@media (max-width: 1100px) {
  .curve-hero { grid-template-columns: 1fr; gap: 18px; padding: 18px; text-align: left; }
  .hero-ring { margin: 0 auto; }
  .chart-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .control-panel, .insight-grid { grid-template-columns: 1fr; }
  .panel-head { flex-direction: column; align-items: stretch; gap: 10px; }
  .comparison-row { grid-template-columns: 1fr; }
  .table-wrap { overflow-x: auto; }
  table { font-size: 0.75rem; }
  td { font-size: 0.78rem; }
  .movement-bar { grid-template-columns: 1fr auto; }
  .latest-readout { flex-wrap: wrap; gap: 8px; }
}
@media (max-width: 640px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .area-selector { gap: 6px; }
  .area-chip { padding: 5px 10px; font-size: 0.74rem; }
}

/* ════════════════════════════════════════
   S-CURVE CRITICAL FIX (20260524-fix2)
   - Fix white circle on hero ring
   - Restore vertical bar chart layout
   - Fix cramped stat alignment
   ════════════════════════════════════════ */

/* ── Hero ring — kill the white circle ── */
.hero-ring {
  position: relative !important;
  width: 200px !important;
  height: 200px !important;
  aspect-ratio: 1 !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 50% !important;
  background:
    conic-gradient(
      var(--ring-color, #f97316) var(--ring, 0%),
      rgba(255, 255, 255, 0.06) 0
    ) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 12px 32px rgba(0, 0, 0, 0.35),
    0 0 24px rgba(249, 115, 22, 0.08) !important;
  isolation: isolate;
}
.hero-ring::before {
  content: "" !important;
  position: absolute !important;
  inset: 16px !important;
  border-radius: 50% !important;
  background: var(--surface) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}
.hero-ring > *,
.hero-ring span,
.hero-ring strong,
.hero-ring small {
  position: relative !important;
  z-index: 1 !important;
  text-align: center;
}
.hero-ring span,
.hero-ring strong {
  color: var(--ink) !important;
  font-family: "JetBrains Mono", monospace !important;
  font-size: 2rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}
.hero-ring small {
  color: var(--muted) !important;
  font-size: 0.7rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  margin-top: 4px;
}

/* ── Behind/Plan annotation pill below ring ── */
.hero-note,
.hero-ring + .hero-note,
.hero-note.bad,
.hero-note.behind {
  background: rgba(239, 68, 68, 0.15) !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
  color: #fca5a5 !important;
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 700;
}
.hero-note.good,
.hero-note.up {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
  color: #6ee7b7 !important;
}

/* ── Hero layout — 2 columns, no cramped middle ── */
.curve-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.7fr) !important;
  gap: 28px !important;
  align-items: center !important;
}
.curve-hero-copy {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.curve-hero .hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}
.curve-hero .hero-stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  display: grid;
  gap: 4px;
}
.curve-hero .hero-stat b {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.curve-hero .hero-stat strong,
.curve-hero .hero-stat span,
.curve-hero .hero-stat .num {
  color: var(--ink);
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
  font-size: 1.2rem;
}
.curve-hero .hero-stat small {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.35;
}
.curve-hero .hero-stat.bad strong,
.curve-hero .hero-stat.bad span { color: #f87171; }
.curve-hero .hero-stat.good strong,
.curve-hero .hero-stat.good span { color: #34d399; }
.curve-hero .hero-stat.warn strong,
.curve-hero .hero-stat.warn span { color: #fbbf24; }

/* ── CRITICAL: restore vertical bar chart for movement-bar ── */
.movement-board {
  padding: 16px 20px !important;
}
.movement-bars {
  display: grid !important;
  grid-auto-flow: column !important;
  grid-auto-columns: minmax(48px, 1fr) !important;
  gap: 6px !important;
  align-items: end !important;
  min-height: 240px !important;
  padding: 16px 4px 8px !important;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg,
      transparent 0 24%,
      rgba(255, 255, 255, 0.04) 24% 24.4%,
      transparent 24.4% 49%,
      rgba(255, 255, 255, 0.04) 49% 49.4%,
      transparent 49.4% 74%,
      rgba(255, 255, 255, 0.04) 74% 74.4%,
      transparent 74.4%
    ) !important;
  overflow-x: auto;
}
.movement-bar {
  display: grid !important;
  grid-template-rows: auto minmax(60px, 1fr) auto !important;
  grid-template-columns: 1fr !important;
  justify-items: center !important;
  align-items: end !important;
  min-height: 200px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: var(--muted) !important;
  font-size: 0.7rem !important;
  font-weight: 800 !important;
}
.movement-bar b {
  color: var(--ink) !important;
  font-size: 0.74rem !important;
  font-family: "JetBrains Mono", monospace !important;
  font-weight: 800 !important;
  margin-bottom: 6px;
}
.movement-bar i,
.movement-bar > i {
  display: block !important;
  width: 30px !important;
  min-height: 6px !important;
  border-radius: 6px 6px 0 0 !important;
  background: linear-gradient(180deg, #f97316, #ea580c) !important;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.25) !important;
  align-self: end !important;
}
.movement-bar.drop i,
.movement-bar.negative i,
.movement-bar.down i {
  background: linear-gradient(180deg, #ef4444, #dc2626) !important;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25) !important;
}
.movement-bar.positive i,
.movement-bar.up i,
.movement-bar.good i {
  background: linear-gradient(180deg, #10b981, #059669) !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25) !important;
}
.movement-bar small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.movement-bar.positive small,
.movement-bar.up small { color: #34d399; }
.movement-bar.negative small,
.movement-bar.down small { color: #f87171; }

/* ── Mobile responsive for refactored hero ── */
@media (max-width: 1024px) {
  .curve-hero { grid-template-columns: 1fr !important; }
  .hero-ring { margin: 0 auto !important; }
  .curve-hero .hero-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .curve-hero .hero-stats { grid-template-columns: 1fr; }
  .movement-bar i { width: 22px !important; }
}

/* ════════════════════════════════════════
   HERO DEFINITIVE FIX (20260524-final2)
   Kill the white hero containers.
   Clean 2-column premium layout.
   ════════════════════════════════════════ */

/* ════════════════════════════════════════
   S-CURVE HERO REBUILD
   ════════════════════════════════════════ */

/* Wrapper layout: copy+stats on left, ring on right */
.curve-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, auto) !important;
  grid-template-areas: "copy ring" "stats stats" !important;
  gap: 24px !important;
  padding: 28px 32px !important;
  border: 1px solid var(--line) !important;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.05) 0%, rgba(21, 29, 46, 0.4) 50%, rgba(56, 189, 248, 0.04) 100%),
    var(--surface) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2), 0 12px 32px rgba(0,0,0,0.2) !important;
  position: relative;
  overflow: hidden;
}
.curve-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #f97316, #38bdf8, #f97316);
  background-size: 200% 100%;
  animation: hero-shimmer 8s ease-in-out infinite;
}
@keyframes hero-shimmer {
  0%,100% { background-position: 0% 0%; }
  50% { background-position: 100% 0%; }
}

.curve-hero-copy {
  grid-area: copy !important;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-width: 0;
}
.curve-hero-copy h2 {
  color: var(--ink);
  font-size: clamp(1.4rem, 2.2vw, 2rem) !important;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 0;
}
.curve-hero-copy .eyebrow { color: #fb923c; margin: 0; }
.curve-hero-copy .meta-line { color: var(--muted); margin: 0; }

/* Area selector chips */
.area-selector {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.area-chip {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--line) !important;
  color: var(--muted) !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 200ms ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.area-chip:hover {
  background: rgba(249, 115, 22, 0.1) !important;
  border-color: rgba(249, 115, 22, 0.3) !important;
  color: #fb923c !important;
}
.area-chip.active {
  background: rgba(249, 115, 22, 0.18) !important;
  border-color: rgba(249, 115, 22, 0.5) !important;
  color: #f97316 !important;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.15);
}

/* Hero stats - 4 horizontal cards spanning full width below copy */
.hero-stats {
  grid-area: stats !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin-top: 4px;
}
.hero-stat {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  display: grid !important;
  grid-template-columns: 40px 1fr !important;
  gap: 12px !important;
  align-items: center !important;
  min-width: 0;
}
.hero-stat .stat-icon,
.hero-stat .card-icon,
.hero-stat svg.dash-icon {
  background: rgba(249, 115, 22, 0.12);
  color: #fb923c;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
}
.hero-stat svg.dash-icon { background: transparent; width: 22px; height: 22px; }
.hero-stat .stat-icon svg,
.hero-stat .card-icon svg { width: 22px; height: 22px; }

.hero-stat b {
  color: var(--muted) !important;
  font-size: 0.62rem !important;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: block;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-stat strong,
.hero-stat span:not(.stat-icon):not(.card-icon),
.hero-stat .num {
  color: var(--ink) !important;
  font-family: "JetBrains Mono", monospace !important;
  font-weight: 800 !important;
  font-size: 1.3rem !important;
  line-height: 1 !important;
  display: block;
}
.hero-stat small {
  color: var(--muted) !important;
  font-size: 0.62rem !important;
  line-height: 1.3 !important;
  display: block;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.hero-stat.bad strong, .hero-stat.bad span,
.hero-stat.behind strong, .hero-stat.behind span { color: #f87171 !important; }
.hero-stat.good strong, .hero-stat.good span,
.hero-stat.up strong, .hero-stat.up span { color: #34d399 !important; }
.hero-stat.warn strong, .hero-stat.warn span { color: #fbbf24 !important; }
.hero-stat.bad .stat-icon, .hero-stat.bad .card-icon,
.hero-stat.behind .stat-icon, .hero-stat.behind .card-icon {
  background: rgba(239, 68, 68, 0.12); color: #f87171;
}
.hero-stat.good .stat-icon, .hero-stat.good .card-icon,
.hero-stat.up .stat-icon, .hero-stat.up .card-icon {
  background: rgba(16, 185, 129, 0.12); color: #34d399;
}
.hero-stat.warn .stat-icon, .hero-stat.warn .card-icon {
  background: rgba(251, 191, 36, 0.12); color: #fbbf24;
}

/* ── KILL the white hero-visual container ── */
.hero-visual {
  grid-area: ring !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  gap: 12px !important;
}

/* ── Ring caption pill below ring ── */
.hero-visual .ring-caption,
.curve-hero .ring-caption {
  background: rgba(239, 68, 68, 0.12) !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
  color: #fca5a5 !important;
  padding: 10px 16px !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
  text-align: center !important;
  line-height: 1.4 !important;
  max-width: 280px !important;
}
.hero-visual .ring-caption.good,
.hero-visual .ring-caption.up,
.curve-hero .ring-caption.good {
  background: rgba(16, 185, 129, 0.12) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
  color: #6ee7b7 !important;
}
.hero-visual .ring-caption.warn,
.hero-visual .ring-caption.behind {
  background: rgba(251, 191, 36, 0.12) !important;
  border-color: rgba(251, 191, 36, 0.3) !important;
  color: #fbbf24 !important;
}

/* ════════════════════════════════════════
   PMS HERO REBUILD
   ════════════════════════════════════════ */

.progress-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, auto) !important;
  grid-template-areas: "copy ring" "stats stats" !important;
  gap: 24px !important;
  padding: 28px 32px !important;
  border: 1px solid var(--line) !important;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.05) 0%, rgba(21, 29, 46, 0.4) 50%, rgba(56, 189, 248, 0.04) 100%),
    var(--surface) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2), 0 12px 32px rgba(0,0,0,0.2) !important;
  position: relative;
  overflow: hidden;
}
.progress-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #f97316, #fbbf24, #38bdf8);
  background-size: 200% 100%;
  animation: hero-shimmer 8s ease-in-out infinite;
}

.hero-copy {
  grid-area: copy !important;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-width: 0;
}
.hero-copy h2 {
  color: var(--ink);
  font-size: clamp(1.4rem, 2.2vw, 2rem) !important;
  font-weight: 800;
  letter-spacing: -0.015em;
}
.hero-copy .eyebrow { color: #fb923c; }
.hero-copy .meta-line,
.hero-copy .hero-narrative { color: var(--muted); }

/* Plan vs Actual bars below narrative */
.hero-bars {
  display: grid !important;
  gap: 10px !important;
  margin-top: 8px;
}
.hero-bar-line {
  display: grid !important;
  grid-template-columns: 70px 1fr 60px !important;
  gap: 12px !important;
  align-items: center !important;
  color: var(--ink);
  font-size: 0.82rem;
}
.hero-bar-line b {
  color: var(--muted) !important;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: capitalize;
}
.hero-bar-line span,
.hero-bar-line .num {
  color: var(--ink) !important;
  font-family: "JetBrains Mono", monospace !important;
  font-weight: 800;
  text-align: right;
}
.hero-track,
.meter {
  background: rgba(255, 255, 255, 0.05) !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  height: 10px !important;
  position: relative !important;
}
.hero-track.plan,
.meter.plan {
  background: rgba(56, 189, 248, 0.1) !important;
}
.hero-track.plan::before,
.meter.plan::before {
  content: "";
  position: absolute;
  inset: 0 calc(100% - var(--value, 0%)) 0 0;
  background: linear-gradient(90deg, #38bdf8, #0ea5e9);
  border-radius: 999px;
}
.hero-track.actual::before,
.meter::before {
  content: "";
  position: absolute;
  inset: 0 calc(100% - var(--value, 0%)) 0 0;
  background: linear-gradient(90deg, #f97316, #ea580c);
  border-radius: 999px;
}

/* Hero gauge: contains the ring + caption — fully transparent */
.hero-gauge {
  grid-area: ring !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  gap: 14px !important;
}

/* Hero stats spanning bottom — same as scurve */
.progress-hero .hero-stats {
  grid-area: stats !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin-top: 4px;
}

/* ════════════════════════════════════════
   PROGRESS RING / HERO RING (shared)
   Clean ring with dark center, no white
   ════════════════════════════════════════ */
.hero-ring,
.progress-ring {
  position: relative !important;
  width: 200px !important;
  height: 200px !important;
  aspect-ratio: 1 !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 50% !important;
  isolation: isolate;
  background:
    conic-gradient(
      var(--ring-color, #f97316) var(--ring, calc(var(--value, 0) * 1%)),
      rgba(255, 255, 255, 0.07) 0
    ) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 12px 32px rgba(0, 0, 0, 0.35),
    0 0 24px rgba(249, 115, 22, 0.08) !important;
  margin: 0 !important;
}
.hero-ring::before,
.progress-ring::before {
  content: "" !important;
  position: absolute !important;
  inset: 16px !important;
  border-radius: 50% !important;
  background: var(--surface) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  z-index: 0;
}
.hero-ring > *,
.progress-ring > *,
.hero-ring span,
.hero-ring strong,
.hero-ring small,
.progress-ring span,
.progress-ring strong,
.progress-ring small {
  position: relative !important;
  z-index: 1 !important;
  text-align: center !important;
}
.hero-ring span,
.hero-ring strong,
.progress-ring span,
.progress-ring strong {
  color: var(--ink) !important;
  font-family: "JetBrains Mono", monospace !important;
  font-size: 2.2rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  margin: 0 !important;
}
.hero-ring small,
.progress-ring small {
  color: var(--muted) !important;
  font-size: 0.7rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  margin-top: 6px !important;
}

/* Ring color variants */
.progress-ring.bad,
.hero-ring.bad,
.hero-ring.behind {
  background: conic-gradient(#ef4444 calc(var(--value, 0) * 1%), rgba(255,255,255,0.07) 0) !important;
}
.progress-ring.bad span, .progress-ring.bad strong,
.hero-ring.bad span, .hero-ring.bad strong { color: #fca5a5 !important; }

.progress-ring.behind,
.hero-ring.warn {
  background: conic-gradient(#fbbf24 calc(var(--value, 0) * 1%), rgba(255,255,255,0.07) 0) !important;
}
.progress-ring.behind span, .progress-ring.behind strong,
.hero-ring.warn span, .hero-ring.warn strong { color: #fbbf24 !important; }

.progress-ring.good,
.hero-ring.good,
.hero-ring.up {
  background: conic-gradient(#10b981 calc(var(--value, 0) * 1%), rgba(255,255,255,0.07) 0) !important;
}
.progress-ring.good span, .progress-ring.good strong,
.hero-ring.good span, .hero-ring.good strong { color: #6ee7b7 !important; }

/* Ring caption pill (Behind plan / Plan / remaining) */
.ring-caption {
  background: rgba(239, 68, 68, 0.12) !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
  color: #fca5a5 !important;
  padding: 10px 16px !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
  text-align: center !important;
  line-height: 1.45 !important;
  max-width: 260px !important;
  display: block !important;
  margin: 0 auto !important;
}
.ring-caption b,
.ring-caption strong {
  color: #fca5a5 !important;
  font-weight: 800;
}
.ring-caption.good {
  background: rgba(16, 185, 129, 0.12) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
  color: #6ee7b7 !important;
}
.ring-caption.good b, .ring-caption.good strong { color: #6ee7b7 !important; }
.ring-caption.behind,
.ring-caption.warn {
  background: rgba(251, 191, 36, 0.12) !important;
  border-color: rgba(251, 191, 36, 0.3) !important;
  color: #fbbf24 !important;
}

/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */
@media (max-width: 1024px) {
  .curve-hero,
  .progress-hero {
    grid-template-columns: 1fr !important;
    grid-template-areas: "copy" "ring" "stats" !important;
    padding: 20px !important;
  }
  .hero-visual,
  .hero-gauge {
    justify-self: center !important;
  }
  .curve-hero .hero-stats,
  .progress-hero .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 540px) {
  .curve-hero .hero-stats,
  .progress-hero .hero-stats {
    grid-template-columns: 1fr !important;
  }
  .hero-ring,
  .progress-ring {
    width: 170px !important;
    height: 170px !important;
  }
  .hero-ring span,
  .progress-ring span { font-size: 1.8rem !important; }
}

/* ════════════════════════════════════════
   HERO CLEANUP (20260524-clean)
   Remove the redundant ring-caption pill
   that was overlapping the stat cards.
   Tighten the hero layout.
   ════════════════════════════════════════ */

/* ── Hide the redundant ring-caption pill ── */
.progress-hero .ring-caption,
.curve-hero .ring-caption,
.hero-gauge .ring-caption,
.hero-visual .ring-caption {
  display: none !important;
}

/* ── Tighten hero-gauge / hero-visual: just the ring, centered ── */
.hero-gauge,
.hero-visual {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  gap: 0 !important;
  align-self: center !important;
}

/* ── Trim hero padding so it doesn't feel oversized ── */
.progress-hero,
.curve-hero {
  padding: 24px 28px !important;
  gap: 20px 24px !important;
}

/* ── Slightly smaller ring so it stops dominating the hero ── */
.hero-ring,
.progress-ring {
  width: 180px !important;
  height: 180px !important;
}
.hero-ring span,
.hero-ring strong,
.progress-ring span,
.progress-ring strong {
  font-size: 2rem !important;
}

/* ── Hero copy: comfortable spacing ── */
.hero-copy,
.curve-hero-copy {
  align-self: center !important;
}
.hero-copy h2,
.curve-hero-copy h2 {
  font-size: clamp(1.4rem, 2vw, 1.9rem) !important;
  line-height: 1.15 !important;
  margin-bottom: 6px !important;
}
.hero-narrative,
.curve-hero-copy .meta-line {
  font-size: 0.86rem !important;
  line-height: 1.5 !important;
  max-width: 560px;
}

/* ── Hero bars (Plan / Actual) tighter spacing ── */
.hero-bars {
  margin-top: 14px !important;
  gap: 8px !important;
}
.hero-bar-line {
  grid-template-columns: 60px 1fr 56px !important;
  gap: 12px !important;
  font-size: 0.78rem !important;
}
.hero-bar-line b {
  font-size: 0.74rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  text-transform: capitalize !important;
  color: var(--muted) !important;
}
.hero-bar-line span,
.hero-bar-line .num {
  text-align: right !important;
  color: var(--ink) !important;
  font-family: "JetBrains Mono", monospace !important;
  font-size: 0.84rem !important;
  font-weight: 800 !important;
}
.hero-track,
.meter {
  height: 9px !important;
}

/* ── Hero stats row: comfortable 4-card grid ── */
.progress-hero .hero-stats,
.curve-hero .hero-stats {
  margin-top: 10px !important;
  gap: 12px !important;
}
.hero-stat {
  padding: 14px 16px !important;
  gap: 14px !important;
  align-items: center !important;
}
.hero-stat b {
  font-size: 0.6rem !important;
  margin-bottom: 4px !important;
}
.hero-stat strong,
.hero-stat .num {
  font-size: 1.4rem !important;
  margin-bottom: 4px !important;
}
.hero-stat small {
  font-size: 0.66rem !important;
  -webkit-line-clamp: 2;
  line-height: 1.35 !important;
}

/* ── Mobile ── */
@media (max-width: 1024px) {
  .progress-hero,
  .curve-hero {
    padding: 20px !important;
    gap: 18px !important;
  }
  .hero-ring,
  .progress-ring {
    width: 170px !important;
    height: 170px !important;
  }
}

/* ════════════════════════════════════════
   S-CURVE FIT TO FRAME (20260524-fit)
   Kill the 1120px min-width forcing scroll
   ════════════════════════════════════════ */

/* Chart container — no horizontal overflow */
.chart-wrap {
  min-height: auto !important;
  height: auto !important;
  padding: 14px 18px !important;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* SVG: fill width, scale aspect, no min-width */
.chart-svg {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 380px !important;
  aspect-ratio: 2 / 1 !important;
}

.scurve-echart {
  height: 430px !important;
  min-height: 380px !important;
}

/* Tighten chart-grid for better proportions */
.chart-grid {
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.55fr) !important;
  gap: 14px !important;
}

/* Insight panel on right: cleaner sizing */
.insight-panel {
  min-width: 0;
}
.insight-list {
  padding: 14px !important;
  gap: 10px !important;
}

/* On narrower screens, stack chart over insight */
@media (max-width: 1100px) {
  .chart-grid {
    grid-template-columns: 1fr !important;
  }
  .chart-svg {
    min-height: 320px !important;
  }
}
@media (max-width: 640px) {
  .chart-svg { min-height: 260px !important; }
}
