: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;
}

.progress-hero {
  display: grid;
  grid-template-columns: minmax(430px, 1.25fr) minmax(250px, 0.45fr) minmax(440px, 0.95fr);
  align-items: stretch;
  gap: 14px;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid rgba(174, 189, 184, 0.82);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(217, 239, 235, 0.82), rgba(255, 255, 255, 0.96) 46%, rgba(248, 251, 250, 0.98)),
    repeating-linear-gradient(90deg, rgba(19, 124, 114, 0.035) 0 1px, transparent 1px 74px);
  box-shadow: var(--shadow);
}

.hero-copy {
  display: grid;
  align-content: center;
  min-width: 0;
}

.hero-copy h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 2.5vw, 2.65rem);
  line-height: 1.03;
}

.hero-narrative {
  max-width: 760px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.45;
}

.hero-bars {
  display: grid;
  max-width: 760px;
  gap: 9px;
}

.hero-bar-line {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 850;
}

.hero-track {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(230, 236, 234, 0.96);
}

.hero-track i {
  display: block;
  width: var(--value, 0%);
  height: 100%;
  border-radius: inherit;
}

.hero-track.plan i {
  background: #28312e;
}

.hero-track.actual i {
  background: linear-gradient(90deg, var(--teal), var(--teal-deep));
}

.hero-gauge {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(174, 189, 184, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
}

.progress-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(--teal) calc(var(--value, 0) * 1%), #e4ece9 0);
  box-shadow: inset 0 0 0 1px rgba(174, 189, 184, 0.45), 0 18px 36px rgba(23, 35, 31, 0.12);
  isolation: isolate;
}

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

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

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

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

.progress-ring.bad {
  background: conic-gradient(var(--red) calc(var(--value, 0) * 1%), #e4ece9 0);
}

.progress-ring.behind {
  background: conic-gradient(var(--amber) calc(var(--value, 0) * 1%), #e4ece9 0);
}

.progress-ring.good {
  background: conic-gradient(var(--green) calc(var(--value, 0) * 1%), #e4ece9 0);
}

.ring-caption {
  width: 100%;
  padding: 10px;
  border-radius: var(--radius);
  background: var(--amber-soft);
  color: var(--amber);
  text-align: center;
}

.ring-caption.bad {
  background: var(--red-soft);
  color: var(--red);
}

.ring-caption.good {
  background: var(--green-soft);
  color: var(--green);
}

.ring-caption strong,
.ring-caption span {
  display: block;
}

.ring-caption span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 760;
}

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

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

.stat-icon,
.card-icon,
.story-icon {
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--teal-soft);
  color: var(--teal-deep);
}

.stat-icon {
  width: 42px;
  height: 42px;
}

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

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

.hero-stat em {
  text-transform: none;
  line-height: 1.32;
}

.hero-stat.bad .stat-icon,
.kpi-card.bad .card-icon,
.story-item.bad .story-icon {
  background: var(--red-soft);
  color: var(--red);
}

.hero-stat.good .stat-icon,
.kpi-card.good .card-icon,
.story-item.good .story-icon {
  background: var(--green-soft);
  color: var(--green);
}

.hero-stat.behind .stat-icon,
.kpi-card.behind .card-icon,
.story-item.behind .story-icon {
  background: var(--amber-soft);
  color: var(--amber);
}

.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: 136px;
  padding: 14px;
  overflow: hidden;
}

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

.card-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
}

.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.bad span {
  color: var(--red);
}

.kpi-card.behind span {
  color: var(--amber);
}

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

.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: minmax(300px, 1.8fr) repeat(3, minmax(150px, 0.7fr));
  gap: 10px;
  margin-bottom: 14px;
  padding: 14px;
}

.insight-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1.15fr) minmax(330px, 0.8fr) minmax(360px, 0.85fr);
  gap: 14px;
  margin-bottom: 14px;
}

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

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

input,
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;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(360px, 0.8fr);
  gap: 14px;
  margin-bottom: 14px;
}

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

.panel-head {
  min-height: 72px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 251, 250, 0.94);
}

.story-list,
.status-mix,
.movement-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
}

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

.story-icon {
  width: 44px;
  height: 44px;
}

.story-item small,
.story-item p {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.story-item small {
  text-transform: uppercase;
}

.story-item strong {
  display: block;
  margin: 5px 0;
  font-size: 1.44rem;
  line-height: 1;
}

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

.story-item.behind strong {
  color: var(--amber);
}

.story-item.good strong {
  color: var(--green);
}

.status-mix-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.7fr) minmax(0, 1fr) 48px;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.status-mix-row strong,
.status-mix-row span,
.status-mix-row em {
  display: block;
}

.status-mix-row span,
.status-mix-row em {
  color: var(--muted);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 790;
}

.status-track,
.movement-track {
  display: block;
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6ecea;
}

.status-track i,
.movement-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.status-mix-row.critical .status-track i {
  background: var(--red);
}

.status-mix-row.behind .status-track i {
  background: var(--amber);
}

.status-mix-row.complete .status-track i {
  background: var(--green);
}

.movement-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.75fr) minmax(0, 1fr) 68px;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.movement-row strong,
.movement-row span,
.movement-row small,
.movement-row em {
  display: block;
}

.movement-row span,
.movement-row small,
.movement-row em {
  color: var(--muted);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 790;
}

.movement-row .movement-bars {
  display: grid;
  gap: 6px;
}

.movement-row.bad .movement-track i {
  background: var(--red);
}

.movement-row.behind .movement-track i {
  background: var(--amber);
}

.movement-row.good .movement-track i {
  background: var(--green);
}

.movement-row em {
  font-size: 0.92rem;
  font-weight: 880;
  text-align: right;
}

.package-list,
.attention-list,
.phase-board {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.package-card,
.attention-item,
.phase-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.package-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
}

.package-card,
.attention-item,
.phase-row,
.story-item,
.status-mix-row,
.movement-row {
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.package-card:hover,
.attention-item:hover,
.phase-row:hover,
.story-item:hover,
.status-mix-row:hover,
.movement-row:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: 0 10px 24px rgba(23, 35, 31, 0.08);
}

.package-card h3,
.attention-item h3,
.phase-row h3 {
  margin: 0;
  font-size: 0.98rem;
}

.package-card p,
.attention-item p,
.phase-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.progress-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 {
  position: relative;
  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 {
  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.good {
  background: var(--green-soft);
  color: var(--green);
}

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

.attention-item {
  padding: 11px;
}

.attention-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 850;
  white-space: nowrap;
}

.status-chip.complete {
  background: var(--green-soft);
  color: var(--green);
}

.status-chip.behind {
  background: var(--amber-soft);
  color: var(--amber);
}

.status-chip.critical {
  background: var(--red-soft);
  color: var(--red);
}

.phase-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.6fr) minmax(220px, 0.8fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px;
}

.area-pill {
  display: inline-flex;
  width: fit-content;
  min-height: 26px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-deep);
  font-size: 0.74rem;
  font-weight: 850;
}

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

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

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

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

td {
  font-size: 0.88rem;
}

td strong {
  display: block;
  margin-bottom: 3px;
}

.num {
  white-space: nowrap;
  font-weight: 830;
}

.muted {
  color: var(--muted);
  font-size: 0.78rem;
}

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

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

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

  .package-card,
  .phase-row {
    grid-template-columns: 1fr;
  }
}

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

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

  .topbar,
  .control-panel,
  .kpi-grid,
  .dashboard-grid,
  .hero-stats,
  .status-mix-row,
  .movement-row {
    grid-template-columns: 1fr;
    display: grid;
  }

  .progress-hero {
    padding: 12px;
  }

  .hero-bar-line {
    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; }
}

/* ── PMS mobile responsive ── */
@media (max-width: 900px) {
  .progress-hero { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .control-panel { grid-template-columns: 1fr; }
  .insight-grid { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .panel-head { flex-direction: column; align-items: stretch; gap: 10px; }
  .phase-board { grid-template-columns: 1fr; }
  .table-wrap { overflow-x: auto; }
  .table-wrap table { font-size: 0.75rem; }
}
@media (max-width: 640px) {
  .kpi-grid { grid-template-columns: 1fr; }
}

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

/* ── Progress hero — premium feel ── */
.progress-hero {
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.06) 0%, rgba(21, 29, 46, 0.4) 50%, rgba(56, 189, 248, 0.05) 100%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto minmax(220px, 0.7fr);
  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;
}
.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: pms-shimmer 8s ease-in-out infinite;
}
@keyframes pms-shimmer {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 0%; }
}
.hero-copy h2 {
  color: var(--ink);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.hero-copy .eyebrow { color: #fb923c; margin-bottom: 6px; }
.hero-narrative {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 16px;
  max-width: 560px;
}

.hero-bars {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
.hero-bar-line,
.meter-line {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 12px;
  align-items: center;
  font-size: 0.82rem;
  color: var(--ink);
}
.hero-bar-line b,
.meter-line b {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero-bar-line span,
.meter-line span {
  font-family: "JetBrains Mono", monospace;
  color: var(--ink);
  font-weight: 800;
}

.hero-track,
.meter {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  overflow: hidden;
  height: 10px;
  position: relative;
}
.hero-track.plan,
.meter.plan {
  background: rgba(56, 189, 248, 0.15);
}
.hero-track.actual {
  background: rgba(249, 115, 22, 0.15);
}
.hero-track::before,
.hero-track.actual::before {
  content: "";
  position: absolute;
  inset: 0 calc(100% - var(--value, 0%)) 0 0;
  background: linear-gradient(90deg, #f97316, #ea580c);
  border-radius: 999px;
}
.hero-track.plan::before {
  background: linear-gradient(90deg, #38bdf8, #0ea5e9);
}

/* Hero gauge */
.hero-gauge,
.hero-ring {
  width: 160px;
  height: 160px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.06), transparent 70%);
}

/* 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 span.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 { background: rgba(251,191,36,0.08); border-color: rgba(251,191,36,0.25); }
.hero-stat.amber strong { color: #fbbf24; }
.hero-stat.red    { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.3); }
.hero-stat.red strong { color: #f87171; }
.hero-stat.green  { background: rgba(16,185,129,0.08); border-color: rgba(16,185,129,0.25); }
.hero-stat.green strong { color: #34d399; }
.hero-stat.blue   { background: rgba(56,189,248,0.08); border-color: rgba(56,189,248,0.25); }
.hero-stat.blue strong { color: #38bdf8; }

/* ── 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;
  position: relative;
  overflow: hidden;
}
.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,
.kpi-card div > span,
.kpi-card span:not(.card-icon):not(.muted) {
  color: #f97316;
  font-family: "JetBrains Mono", monospace;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
}
.kpi-card small,
.kpi-card .muted {
  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; }

.card-icon,
.stat-icon {
  background: rgba(249, 115, 22, 0.12);
  color: #fb923c;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
}
.kpi-card.amber .card-icon,
.kpi-card.amber .stat-icon { background: rgba(251,191,36,0.12); color: #fbbf24; }
.kpi-card.red .card-icon,
.kpi-card.red .stat-icon    { background: rgba(239,68,68,0.12); color: #f87171; }
.kpi-card.green .card-icon,
.kpi-card.green .stat-icon  { background: rgba(16,185,129,0.12); color: #34d399; }
.kpi-card.blue .card-icon,
.kpi-card.blue .stat-icon   { background: rgba(56,189,248,0.12); color: #38bdf8; }

/* ── Filter / 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(200px, 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);
}
input::placeholder { color: rgba(255,255,255,0.35); }

/* ── Insight grid (Readout / Status Mix / Movement) ── */
.insight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}
.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; }

.phase-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.phase-location-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.phase-location-button {
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.phase-location-button:hover {
  border-color: rgba(249, 115, 22, 0.75);
  color: var(--ink);
}

.phase-location-button.active {
  border-color: rgba(249, 115, 22, 0.95);
  background: rgba(249, 115, 22, 0.16);
  color: #fb923c;
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.22);
}

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

/* Status mix rows */
.status-mix {
  padding: 14px 16px;
  display: grid;
  gap: 8px;
}
.status-mix-row {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: all 200ms ease;
}
.status-mix-row:hover {
  background: rgba(255, 255, 255, 0.05);
}
.status-mix-row b { color: var(--ink); font-weight: 700; font-size: 0.84rem; }
.status-mix-row span.num { color: var(--ink); font-family: "JetBrains Mono", monospace; font-weight: 800; }
.status-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  overflow: hidden;
  height: 8px;
  position: relative;
}
.status-track::before {
  content: "";
  position: absolute;
  inset: 0 calc(100% - var(--value, 0%)) 0 0;
  background: linear-gradient(90deg, #f97316, #ea580c);
  border-radius: 999px;
}
.status-mix-row.complete .status-track::before { background: linear-gradient(90deg, #10b981, #059669); }
.status-mix-row.behind .status-track::before    { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.status-mix-row.critical .status-track::before  { background: linear-gradient(90deg, #ef4444, #dc2626); }
.status-mix-row.progress .status-track::before  { background: linear-gradient(90deg, #38bdf8, #0ea5e9); }

/* Weekly movement panel */
.movement-panel {
  padding: 14px 16px;
  display: grid;
  gap: 8px;
}
.movement-bars {
  display: grid;
  gap: 8px;
}
.movement-row {
  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;
  color: var(--ink);
}
.movement-row b { color: var(--ink); font-weight: 700; }
.movement-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
  position: relative;
}
.movement-track::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #f97316, #ea580c);
  width: var(--value, 0%);
  border-radius: 999px;
}
.movement-row.up { border-left: 3px solid #10b981; }
.movement-row.up .movement-track::before { background: linear-gradient(90deg, #10b981, #059669); }
.movement-row.down { border-left: 3px solid #ef4444; }
.movement-row.down .movement-track::before { background: linear-gradient(90deg, #ef4444, #dc2626); }
.movement-row.flat { border-left: 3px solid #94a3b8; }
.movement-row span.num { color: var(--ink); font-family: "JetBrains Mono", monospace; font-weight: 800; }
.movement-row.up span.num   { color: #34d399; }
.movement-row.down span.num { color: #f87171; }

/* ── Dashboard grid (Package + Attention) ── */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 14px;
}
.package-list {
  padding: 14px 16px;
  display: grid;
  gap: 8px;
}
.package-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  display: grid;
  gap: 6px;
  transition: all 200ms ease;
}
.package-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(249, 115, 22, 0.3);
  transform: translateY(-1px);
}
.package-card b { color: var(--ink); font-weight: 800; font-size: 0.92rem; }
.package-card small { color: var(--muted); font-size: 0.76rem; }

.progress-pair {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}
.progress-ring {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background:
    conic-gradient(#f97316 calc(var(--value, 0) * 1%), rgba(255,255,255,0.06) 0);
  position: relative;
}
.progress-ring::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--surface);
}
.progress-ring b {
  position: relative;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  z-index: 1;
}
.progress-ring.amber  { background: conic-gradient(#fbbf24 calc(var(--value, 0) * 1%), rgba(255,255,255,0.06) 0); }
.progress-ring.red     { background: conic-gradient(#ef4444 calc(var(--value, 0) * 1%), rgba(255,255,255,0.06) 0); }
.progress-ring.green   { background: conic-gradient(#10b981 calc(var(--value, 0) * 1%), rgba(255,255,255,0.06) 0); }
.progress-ring.blue    { background: conic-gradient(#38bdf8 calc(var(--value, 0) * 1%), rgba(255,255,255,0.06) 0); }
.ring-caption { color: var(--muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; }
.ring-caption.amber { color: #fbbf24; }
.ring-caption.red    { color: #f87171; }
.ring-caption.green  { color: #34d399; }
.ring-caption.blue   { color: #38bdf8; }

.attention-list {
  padding: 14px 16px;
  display: grid;
  gap: 8px;
}
.attention-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-left: 4px solid #fb923c;
  border-radius: 10px;
  padding: 12px 14px;
  transition: all 200ms ease;
}
.attention-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(249, 115, 22, 0.3);
}
.attention-item.critical { border-left-color: #ef4444; }
.attention-item.warn     { border-left-color: #fbbf24; }
.attention-item.good     { border-left-color: #10b981; }
.attention-top { color: var(--ink); font-weight: 700; }
.attention-item small { color: var(--muted); font-size: 0.76rem; line-height: 1.4; }

/* ── Phase board ── */
.phase-board {
  padding: 16px 20px;
  display: grid;
  gap: 6px;
}
.phase-row {
  display: grid;
  grid-template-columns: 160px repeat(auto-fit, minmax(80px, 1fr));
  gap: 6px;
  align-items: stretch;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.78rem;
  color: var(--ink);
}
.phase-row b { color: var(--ink); font-weight: 700; }
.phase-row small { color: var(--muted); font-size: 0.72rem; }
.phase-row > div {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  padding: 6px 8px;
  text-align: center;
}

/* ── Activity table ── */
.table-wrap {
  background: var(--surface);
  padding: 0;
  border-radius: 0;
  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;
}
tbody tr:nth-child(even) td { background: var(--surface-soft); }
tbody tr:hover td { background: rgba(249, 115, 22, 0.06); }

/* Variance cell colors */
.variance { font-family: "JetBrains Mono", monospace; font-weight: 800; }
.variance.up,
.variance.good { color: #34d399; }
.variance.down,
.variance.bad { color: #f87171; }
.variance.flat { color: var(--muted); }

/* Status chips inside table */
.status-chip {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
}
.status-chip.complete,
.status-chip.green {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.25);
}
.status-chip.behind,
.status-chip.amber {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.25);
}
.status-chip.critical,
.status-chip.red {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}
.status-chip.slate,
.status-chip.closed {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.3);
}

/* Area pills (selector chips) */
.area-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 200ms ease;
}
.area-pill:hover {
  background: rgba(249, 115, 22, 0.08);
  border-color: rgba(249, 115, 22, 0.3);
  color: #fb923c;
}
.area-pill.active {
  background: rgba(249, 115, 22, 0.15);
  border-color: rgba(249, 115, 22, 0.45);
  color: #f97316;
}

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

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

/* ── Mobile responsive ── */
@media (max-width: 1024px) {
  .progress-hero { grid-template-columns: 1fr; gap: 18px; padding: 18px; }
  .hero-gauge { margin: 0 auto; }
}
@media (max-width: 900px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .control-panel, .insight-grid, .dashboard-grid { grid-template-columns: 1fr; }
  .panel-head { flex-direction: column; align-items: stretch; gap: 10px; }
  .phase-row { grid-template-columns: 1fr; }
  .table-wrap { overflow-x: auto; }
  table { font-size: 0.75rem; }
  .hero-bar-line, .meter-line, .status-mix-row, .movement-row { grid-template-columns: 1fr auto; }
}
@media (max-width: 640px) {
  .kpi-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════
   PMS CRITICAL FIX (20260524-fix2)
   - Kill white hero-gauge background
   - Fix progress-ring center white circle
   - Fix variance/ring-caption olive pill
   ════════════════════════════════════════ */

/* ── Hero gauge: kill the white card ── */
.hero-gauge {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}

/* ── Progress ring inside hero gauge ── */
.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;
  background:
    conic-gradient(
      var(--ring-color, #f97316) calc(var(--value, 0) * 1%),
      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;
}
.progress-ring.bad {
  background: conic-gradient(
    #ef4444 calc(var(--value, 0) * 1%),
    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(239, 68, 68, 0.1) !important;
}
.progress-ring.behind {
  background: conic-gradient(
    #fbbf24 calc(var(--value, 0) * 1%),
    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(251, 191, 36, 0.1) !important;
}
.progress-ring.good {
  background: conic-gradient(
    #10b981 calc(var(--value, 0) * 1%),
    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(16, 185, 129, 0.1) !important;
}

.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;
}
.progress-ring > *,
.progress-ring span,
.progress-ring strong,
.progress-ring small {
  position: relative !important;
  z-index: 1 !important;
  text-align: center;
}
.progress-ring span {
  color: var(--ink) !important;
  font-family: "JetBrains Mono", monospace !important;
  font-size: 2rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}
.progress-ring.bad span    { color: #fca5a5 !important; }
.progress-ring.behind span { color: #fbbf24 !important; }
.progress-ring.good span   { color: #6ee7b7 !important; }

.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: 4px;
}

/* ── Ring caption (Behind plan -8.2%...) — kill olive-green ── */
.ring-caption {
  width: 100% !important;
  max-width: 220px;
  padding: 10px 14px !important;
  border-radius: 10px !important;
  background: rgba(251, 191, 36, 0.1) !important;
  border: 1px solid rgba(251, 191, 36, 0.3) !important;
  color: #fbbf24 !important;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.35;
}
.ring-caption.bad,
.ring-caption.behind {
  background: rgba(239, 68, 68, 0.12) !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
  color: #fca5a5 !important;
}
.ring-caption.good {
  background: rgba(16, 185, 129, 0.1) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
  color: #6ee7b7 !important;
}

/* ── Progress hero layout — 2 column clean ── */
.progress-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.7fr) !important;
  gap: 28px !important;
  align-items: center !important;
}

/* ── Hero stats grid (the 4 small cards: PLAN/THIS WEEK/CRITICAL DELAY/ACTIVITIES) ── */
.hero-stats {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.hero-stats .hero-stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: center;
}
.hero-stats .hero-stat .stat-icon,
.hero-stats .hero-stat .card-icon {
  background: rgba(249, 115, 22, 0.12);
  color: #fb923c;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
}
.hero-stats .hero-stat b {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero-stats .hero-stat strong,
.hero-stats .hero-stat .num {
  color: var(--ink);
  font-family: "JetBrains Mono", monospace;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
}
.hero-stats .hero-stat small {
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.3;
}
.hero-stats .hero-stat.amber strong { color: #fbbf24; }
.hero-stats .hero-stat.red strong    { color: #f87171; }
.hero-stats .hero-stat.green strong  { color: #34d399; }
.hero-stats .hero-stat.blue strong   { color: #38bdf8; }
.hero-stats .hero-stat.amber .stat-icon,
.hero-stats .hero-stat.amber .card-icon { background: rgba(251,191,36,0.12); color: #fbbf24; }
.hero-stats .hero-stat.red .stat-icon,
.hero-stats .hero-stat.red .card-icon    { background: rgba(239,68,68,0.12); color: #f87171; }
.hero-stats .hero-stat.green .stat-icon,
.hero-stats .hero-stat.green .card-icon  { background: rgba(16,185,129,0.12); color: #34d399; }
.hero-stats .hero-stat.blue .stat-icon,
.hero-stats .hero-stat.blue .card-icon   { background: rgba(56,189,248,0.12); color: #38bdf8; }

/* ── Mobile responsive for refactored hero ── */
@media (max-width: 1024px) {
  .progress-hero { grid-template-columns: 1fr !important; }
  .hero-gauge { margin: 0 auto; }
  .hero-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════
   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;
  }
}

/* PMS alignment correction 20260610 */
.kpi-grid {
  grid-template-columns: repeat(5, minmax(210px, 1fr)) !important;
  align-items: stretch !important;
}

.kpi-card {
  display: grid !important;
  grid-template-columns: max-content minmax(0, 1fr) !important;
  grid-template-areas:
    "icon title"
    "value note" !important;
  column-gap: 14px !important;
  row-gap: 8px !important;
  align-items: center !important;
  min-height: 98px !important;
  padding: 14px 16px !important;
}

.kpi-card .card-icon {
  grid-area: icon !important;
  width: 38px !important;
  height: 38px !important;
  margin: 0 !important;
  align-self: center !important;
}

.kpi-card > strong {
  grid-area: title !important;
  min-width: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  color: var(--muted) !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.kpi-card > span:not(.card-icon) {
  grid-area: value !important;
  width: auto !important;
  min-width: 5.2ch !important;
  margin: 0 !important;
  color: #f97316 !important;
  font-family: "JetBrains Mono", monospace !important;
  font-size: clamp(1.35rem, 1.25vw, 1.72rem) !important;
  font-weight: 880 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.kpi-card.bad > span:not(.card-icon),
.kpi-card.behind > span:not(.card-icon) {
  color: #f87171 !important;
}

.kpi-card.good > span:not(.card-icon) {
  color: #34d399 !important;
}

.kpi-card > small {
  grid-area: note !important;
  min-width: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  color: var(--muted) !important;
  font-size: 0.76rem !important;
  line-height: 1.28 !important;
  text-overflow: ellipsis !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
}

.package-panel .package-list {
  gap: 10px !important;
  padding: 14px 16px !important;
}

.package-panel .package-card {
  display: grid !important;
  grid-template-columns: minmax(170px, 0.8fr) minmax(300px, 1.25fr) minmax(88px, auto) !important;
  gap: 18px !important;
  align-items: center !important;
  min-height: 92px !important;
  padding: 16px 18px !important;
  text-align: left !important;
}

.package-panel .package-card > div:first-child {
  min-width: 0 !important;
}

.package-panel .package-card h3 {
  margin: 0 !important;
  overflow: hidden !important;
  color: var(--ink) !important;
  font-size: 1rem !important;
  line-height: 1.2 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.package-panel .package-card p {
  margin: 5px 0 0 !important;
  color: var(--muted) !important;
  font-size: 0.82rem !important;
  line-height: 1.25 !important;
}

.package-panel .progress-pair {
  min-width: 0 !important;
  margin: 0 !important;
  gap: 8px !important;
}

.package-panel .meter-line {
  grid-template-columns: 60px minmax(0, 1fr) 68px !important;
  gap: 10px !important;
}

.package-panel .meter-line span:first-child {
  color: var(--muted) !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

.package-panel .meter-line span:last-child {
  color: var(--ink) !important;
  font-family: "JetBrains Mono", monospace !important;
  font-size: 0.78rem !important;
  text-align: right !important;
}

.package-panel .variance {
  justify-self: end !important;
  min-width: 86px !important;
  padding: 9px 12px !important;
  border-radius: 8px !important;
  text-align: center !important;
  font-size: 0.92rem !important;
}

@media (max-width: 1500px) {
  .kpi-grid {
    grid-template-columns: repeat(3, minmax(210px, 1fr)) !important;
  }
}

@media (max-width: 1180px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(210px, 1fr)) !important;
  }

  .package-panel .package-card {
    grid-template-columns: minmax(180px, 0.85fr) minmax(240px, 1fr) minmax(86px, auto) !important;
  }
}

@media (max-width: 760px) {
  .kpi-grid {
    grid-template-columns: 1fr !important;
  }

  .package-panel .package-card {
    grid-template-columns: 1fr !important;
    align-items: start !important;
  }

  .package-panel .variance {
    justify-self: start !important;
  }
}

/* PMS KPI alignment hardening 20260611 */
.kpi-grid {
  grid-template-columns: repeat(5, minmax(230px, 1fr)) !important;
  gap: 14px !important;
  align-items: stretch !important;
}

.kpi-card {
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) !important;
  grid-template-areas:
    "icon title"
    "icon value"
    "icon note" !important;
  column-gap: 16px !important;
  row-gap: 4px !important;
  align-content: center !important;
  align-items: center !important;
  min-height: 92px !important;
  padding: 16px 18px !important;
}

.kpi-card::after {
  content: none !important;
  display: none !important;
}

.kpi-card .card-icon {
  grid-area: icon !important;
  align-self: center !important;
  justify-self: center !important;
  width: 40px !important;
  height: 40px !important;
  margin: 0 !important;
}

.kpi-card > strong {
  grid-area: title !important;
  min-width: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  color: var(--muted) !important;
  font-size: 0.68rem !important;
  line-height: 1.1 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.kpi-card > span:not(.card-icon) {
  grid-area: value !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  color: #f97316 !important;
  font-family: "JetBrains Mono", monospace !important;
  font-size: clamp(1.45rem, 1.45vw, 1.9rem) !important;
  font-weight: 880 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.kpi-card.bad > span:not(.card-icon),
.kpi-card.behind > span:not(.card-icon) {
  color: #f87171 !important;
}

.kpi-card.good > span:not(.card-icon) {
  color: #34d399 !important;
}

.kpi-card > small {
  grid-area: note !important;
  min-width: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  color: var(--muted) !important;
  font-size: 0.72rem !important;
  line-height: 1.28 !important;
  text-overflow: ellipsis !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
}

@media (max-width: 1500px) {
  .kpi-grid {
    grid-template-columns: repeat(3, minmax(230px, 1fr)) !important;
  }
}

@media (max-width: 1180px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(230px, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .kpi-grid {
    grid-template-columns: 1fr !important;
  }
}
