:root {
  color-scheme: light;
  --bg: #f4f7f6;
  --surface: #ffffff;
  --surface-soft: #f8fbfa;
  --ink: #17231f;
  --muted: #61706b;
  --line: #d7e0dd;
  --line-strong: #aebdb8;
  --teal: #137c72;
  --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;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 8%, rgba(19, 124, 114, 0.09), transparent 28%),
    radial-gradient(circle at 86% 16%, rgba(49, 95, 143, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 247, 246, 0.98));
}

.icon-sprite {
  display: none;
}

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

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

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

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

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

h1 {
  margin-bottom: 8px;
  font-size: clamp(1.8rem, 2.7vw, 3rem);
  line-height: 1.05;
}

h2 {
  margin-bottom: 5px;
  font-size: 1.24rem;
}

h3 {
  margin-bottom: 5px;
  font-size: 0.98rem;
  line-height: 1.24;
}

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

.quick-nav a:hover {
  border-color: #7bbdb5;
  background: var(--teal-soft);
}

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

.countdown-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.55fr) minmax(520px, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 14px;
  padding: 20px;
  background:
    linear-gradient(100deg, rgba(19, 124, 114, 0.14), rgba(255, 255, 255, 0.96) 58%, rgba(49, 95, 143, 0.08)),
    var(--surface);
}

.countdown-panel h2 {
  margin-bottom: 4px;
  font-size: clamp(1.35rem, 2vw, 2.25rem);
}

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

.countdown-grid article {
  min-height: 82px;
  padding: 13px 12px;
  border: 1px solid rgba(155, 207, 199, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  text-align: center;
}

.countdown-grid strong {
  display: block;
  font-size: clamp(1.85rem, 3vw, 3rem);
  line-height: 1;
}

.countdown-grid span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 0.28fr);
  gap: 20px;
  align-items: center;
  margin-bottom: 14px;
  padding: 20px;
  background:
    linear-gradient(90deg, rgba(217, 239, 235, 0.72), rgba(255, 255, 255, 0.96)),
    var(--surface);
}

.hero-copy h2 {
  margin-bottom: 8px;
  font-size: clamp(1.45rem, 2vw, 2.2rem);
}

.hero-copy p:last-child {
  max-width: 900px;
  margin-bottom: 0;
  color: var(--muted);
}

.readiness-meter {
  padding: 16px;
  border: 1px solid #9bcfc7;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
}

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

.readiness-meter strong {
  display: block;
  margin: 6px 0 10px;
  font-size: 2.25rem;
  line-height: 1;
}

.readiness-meter b,
.meter {
  display: block;
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6ecea;
}

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

.flow-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.28fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 14px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(217, 239, 235, 0.62)),
    var(--surface);
}

.flow-copy {
  padding-right: 18px;
  border-right: 1px solid var(--line);
}

.flow-copy h2 {
  font-size: 1.55rem;
}

.flow-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.flow-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.flow-rail::before {
  content: "";
  position: absolute;
  top: 31px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, #86c7bf, rgba(49, 95, 143, 0.35), rgba(185, 77, 63, 0.35));
}

.flow-step {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
  align-content: start;
  min-height: 118px;
  padding: 8px 8px 0;
}

.flow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 2px solid rgba(19, 124, 114, 0.3);
  border-radius: 999px;
  background: #fff;
  color: var(--teal);
  box-shadow: 0 12px 24px rgba(23, 35, 31, 0.08);
}

.flow-step-alert .flow-icon {
  border-color: rgba(185, 77, 63, 0.3);
  color: var(--red);
}

.flow-step strong {
  font-size: 0.92rem;
}

.flow-step small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

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

.kpi-card {
  display: flex;
  gap: 12px;
  min-height: 118px;
  padding: 14px;
}

.kpi-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: #edf4f2;
  color: var(--teal);
}

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

.kpi-card.blue .kpi-icon {
  background: var(--blue-soft);
  color: var(--blue);
}

.kpi-card.warn .kpi-icon {
  background: var(--amber-soft);
  color: var(--amber);
}

.kpi-card.danger .kpi-icon {
  background: var(--red-soft);
  color: var(--red);
}

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

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

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

.procurement-panel {
  border-color: rgba(241, 91, 34, 0.34);
  background:
    linear-gradient(135deg, rgba(255, 245, 238, 0.94), rgba(255, 255, 255, 0.98) 42%),
    var(--surface);
}

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

.procurement-head button {
  width: auto;
  min-width: 210px;
  border-color: #8f241b;
  background: #b3261e;
  color: #fff;
  box-shadow: 0 14px 28px rgba(179, 38, 30, 0.22);
}

.procurement-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 16px 14px;
  padding: 16px 18px;
  border: 2px solid #b3261e;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(179, 38, 30, 0.96), rgba(185, 77, 63, 0.9)),
    #b3261e;
  color: #fff;
  box-shadow: 0 18px 34px rgba(179, 38, 30, 0.22);
}

.procurement-alert div {
  display: grid;
  gap: 4px;
}

.procurement-alert strong {
  font-size: 0.9rem;
  font-weight: 950;
  text-transform: uppercase;
}

.procurement-alert span {
  font-size: clamp(1.28rem, 2vw, 2.1rem);
  font-weight: 950;
  line-height: 1.05;
}

.procurement-alert small {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 750;
}

.procurement-alert button {
  width: auto;
  min-width: 190px;
  border-color: rgba(255, 255, 255, 0.9);
  background: #fff;
  color: #8f241b;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.report-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 16px 14px;
  padding: 14px 16px;
  border: 1px solid rgba(179, 38, 30, 0.32);
  border-radius: var(--radius);
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.98), rgba(253, 228, 222, 0.56)),
    #fff;
}

.report-toolbar.generate-only {
  justify-content: flex-end;
  margin: 0 16px 14px;
  padding: 0;
  border: 0;
  background: transparent;
}

.report-toolbar.generate-only button {
  width: auto;
  min-width: 190px;
  border-color: #8f241b;
  background: #b3261e;
  color: #fff;
  box-shadow: 0 12px 24px rgba(179, 38, 30, 0.18);
}

.report-toolbar h3 {
  margin: 0 0 4px;
  font-size: 1.15rem;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.report-actions button {
  width: auto;
  min-width: 142px;
}

.report-actions button:first-child {
  border-color: #8f241b;
  background: #b3261e;
  color: #fff;
}

.report-review {
  margin: 0 16px 14px;
  overflow: hidden;
  border: 1px solid rgba(179, 38, 30, 0.32);
  border-radius: var(--radius);
  background: #fff;
}

.report-review[hidden] {
  display: none;
}

.report-review-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  background: rgba(253, 228, 222, 0.55);
}

.report-review-head strong {
  font-weight: 950;
}

.report-review-head span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.report-review textarea {
  width: 100%;
  min-height: 520px;
  padding: 14px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font-family: Consolas, "SFMono-Regular", ui-monospace, monospace;
  font-size: 0.88rem;
  line-height: 1.5;
  resize: vertical;
}

.section-title h3 {
  margin: 0;
  font-size: 1.08rem;
}

.procurement-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.procurement-stat {
  min-height: 106px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
}

.procurement-stat strong {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.procurement-stat span {
  display: block;
  margin: 8px 0 6px;
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1;
}

.procurement-stat small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.32;
}

.procurement-stat.danger {
  border-color: rgba(179, 38, 30, 0.46);
  background: linear-gradient(180deg, rgba(253, 228, 222, 0.92), #fff);
  box-shadow: inset 0 0 0 1px rgba(179, 38, 30, 0.08);
}

.procurement-stat.danger span {
  color: var(--red);
}

.procurement-stat.warn {
  border-color: rgba(241, 91, 34, 0.28);
  background: linear-gradient(180deg, rgba(255, 229, 214, 0.78), #fff);
}

.procurement-stat.warn span {
  color: var(--amber);
}

.procurement-stat.good span {
  color: var(--green);
}

.procurement-stat.blue span {
  color: var(--blue);
}

.procurement-layout {
  display: grid;
  grid-template-columns: minmax(680px, 1fr) minmax(300px, 0.34fr);
  gap: 14px;
  padding: 16px;
}

.procurement-priority,
.procurement-side > div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  padding: 14px;
}

.procurement-side {
  display: grid;
  gap: 14px;
  align-content: start;
}

.procurement-list {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.procurement-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) minmax(128px, 0.24fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 76px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-left: 7px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.procurement-item:hover,
.timeline-dot:hover {
  border-color: var(--teal);
  box-shadow: 0 12px 28px rgba(28, 36, 44, 0.12);
}

.procurement-item.critical,
.procurement-item.after-mob,
.procurement-item.overdue {
  border-color: rgba(179, 38, 30, 0.34);
  border-left-color: #b3261e;
  background: linear-gradient(90deg, rgba(253, 228, 222, 0.96), #fff 42%);
  box-shadow: 0 10px 26px rgba(179, 38, 30, 0.12);
}

.procurement-item.watch {
  border-left-color: var(--amber);
  background: linear-gradient(90deg, rgba(255, 229, 214, 0.78), #fff 38%);
}

.procurement-item.done {
  border-left-color: var(--green);
}

.rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.procurement-copy,
.procurement-due {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.procurement-copy b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.procurement-alert-badge {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--line);
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.procurement-alert-badge.red {
  background: #b3261e;
  color: #fff;
}

.procurement-alert-badge.watch {
  background: var(--amber-soft);
  color: var(--amber);
}

.procurement-alert-badge.none,
.procurement-alert-badge.tba,
.procurement-alert-badge.text {
  background: var(--red-soft);
  color: var(--red);
}

.procurement-copy small,
.procurement-due small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.28;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.procurement-due {
  justify-items: end;
  text-align: right;
}

.procurement-due i {
  color: var(--ink);
  font-style: normal;
  font-size: 1rem;
  font-weight: 900;
}

.step-strip {
  display: inline-flex;
  align-items: stretch;
  max-width: 430px;
  overflow: hidden;
  border: 1px solid rgba(18, 56, 51, 0.1);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(18, 56, 51, 0.07);
}

.register-steps .step-strip {
  max-width: 100%;
}

.step-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 66px;
  min-height: 34px;
  padding: 7px 10px;
  border-right: 1px solid rgba(18, 56, 51, 0.08);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.step-chip:last-child {
  border-right: 0;
}

.step-chip i {
  display: inline-block;
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 999px;
  background: #bac8c5;
  box-shadow: 0 0 0 4px rgba(186, 200, 197, 0.18);
}

.step-chip.completed {
  background: linear-gradient(180deg, rgba(33, 159, 94, 0.18), rgba(33, 159, 94, 0.08));
  color: #0d6d45;
}

.step-chip.completed i {
  background: #1f9d58;
  box-shadow: 0 0 0 4px rgba(31, 157, 88, 0.18);
}

.step-chip.ongoing {
  background: linear-gradient(180deg, rgba(241, 91, 34, 0.18), rgba(241, 91, 34, 0.08));
  color: var(--orange);
}

.step-chip.ongoing i {
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(241, 91, 34, 0.18);
}

.step-chip.blocked {
  background: linear-gradient(180deg, rgba(193, 75, 58, 0.18), rgba(193, 75, 58, 0.08));
  color: var(--red);
}

.step-chip.blocked i {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(193, 75, 58, 0.17);
}

.step-chip.pending {
  background: rgba(232, 239, 237, 0.58);
  color: var(--muted);
}

.step-empty {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.procurement-timeline,
.procurement-pic-load {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.timeline-dot {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 8px 12px;
  width: 100%;
  min-height: 72px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-left: 7px solid var(--blue);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.timeline-dot.critical {
  border-left-color: var(--red);
}

.timeline-dot.watch {
  border-left-color: var(--amber);
}

.timeline-dot b {
  grid-row: span 2;
  align-self: center;
  color: var(--ink);
  font-size: 0.95rem;
}

.timeline-dot span {
  font-weight: 900;
}

.timeline-dot small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pic-load-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.pic-load-row b {
  display: block;
}

.pic-load-row small {
  color: var(--muted);
  font-size: 0.74rem;
}

.pic-load-row span {
  font-size: 1.12rem;
  font-weight: 900;
}

.pic-load-row i {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 7px;
  height: 6px;
  border-radius: 999px;
  background: #edf1f0;
}

.pic-load-row i::after {
  content: "";
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.pic-load-row.watch i::after {
  background: var(--amber);
}

.pic-load-row.critical i::after {
  background: var(--red);
}

.empty-card {
  margin: 10px 0 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: #fff;
}

.control-panel {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(190px, 0.28fr) minmax(210px, 0.28fr) minmax(220px, 0.3fr);
  gap: 10px;
  margin-bottom: 14px;
  padding: 14px;
}

.register-filter-panel {
  margin-bottom: 0;
  border-width: 0 0 1px;
  border-radius: 0;
  background: linear-gradient(90deg, rgba(255, 229, 214, 0.38), rgba(255, 255, 255, 0.98));
  box-shadow: none;
}

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

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

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

button {
  cursor: pointer;
  background: var(--teal-soft);
  border-color: #9bcfc7;
  color: #0f5f58;
  font-weight: 880;
}

button:disabled {
  cursor: wait;
  opacity: 0.58;
}

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

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

.step-legend {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.step-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(18, 56, 51, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.step-legend i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #bac8c5;
}

.step-legend i.completed {
  background: #1f9d58;
}

.step-legend i.ongoing {
  background: var(--orange);
}

.editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.editor-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(220px, 0.35fr) minmax(220px, 0.32fr) minmax(220px, 0.28fr);
  gap: 10px;
  padding: 14px;
}

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

.editor-buttons {
  display: grid;
  gap: 8px;
  align-content: end;
}

.editor-buttons button:last-child {
  background: #fff;
  color: var(--muted);
}

.edit-message {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  text-align: right;
}

.edit-message[data-tone="success"] {
  color: var(--green);
}

.edit-message[data-tone="error"] {
  color: var(--red);
}

.edit-message[data-tone="warn"] {
  color: var(--amber);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 8px;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 850;
}

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

.pill.tba,
.pill.open {
  background: var(--amber-soft);
  color: var(--amber);
}

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

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

.due-pill {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 6px;
  background: #edf4f2;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.due-pill.planned {
  background: var(--blue-soft);
  color: var(--blue);
}

.due-pill.watch {
  background: var(--amber-soft);
  color: var(--amber);
}

.due-pill.critical,
.due-pill.after-mob,
.due-pill.overdue {
  background: var(--red-soft);
  color: var(--red);
}

.due-pill.done {
  background: var(--green-soft);
  color: var(--green);
}

.due-pill.tba,
.due-pill.text {
  background: var(--amber-soft);
  color: var(--amber);
}

.status-cell {
  display: grid;
  gap: 7px;
  justify-items: start;
}

.status-cell .pill {
  margin-bottom: 0;
}

.override-note {
  margin-top: 0;
  color: var(--teal);
  font-weight: 800;
}

.table-wrap {
  max-height: 760px;
  overflow: auto;
  padding: 14px;
  background: linear-gradient(180deg, rgba(248, 251, 250, 0.7), rgba(255, 255, 255, 0.98));
}

.register-list {
  display: grid;
  gap: 10px;
}

.register-title-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  padding: 14px 16px 10px;
  border-top: 1px solid var(--line);
  background: rgba(248, 251, 250, 0.84);
}

.register-title-row > div {
  min-width: 0;
}

.register-title-row h2 {
  margin-bottom: 0;
}

.register-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.register-open-button {
  width: auto;
  min-width: 160px;
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
  box-shadow: 0 12px 24px rgba(241, 91, 34, 0.16);
}

.register-header {
  display: grid;
  grid-template-columns: minmax(86px, 0.45fr) minmax(230px, 1.2fr) minmax(190px, 0.85fr) minmax(120px, 0.55fr) minmax(155px, 0.7fr) minmax(150px, 0.65fr);
  gap: 12px;
  align-items: center;
  padding: 10px 14px 10px 19px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  position: sticky;
  top: 0;
  z-index: 4;
}
.register-header > span {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.register-card {
  display: grid;
  grid-template-columns: minmax(86px, 0.45fr) minmax(230px, 1.2fr) minmax(190px, 0.85fr) minmax(120px, 0.55fr) minmax(155px, 0.7fr) minmax(150px, 0.65fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 5px solid rgba(19, 124, 114, 0.38);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 26px rgba(23, 35, 31, 0.055);
}

.register-card.critical,
.register-card.overdue,
.register-card.after-mob {
  border-left-color: var(--red);
}

.register-card.watch {
  border-left-color: var(--amber);
}

.register-card.planned {
  border-left-color: var(--blue);
}

.register-workstream,
.register-activity,
.register-steps,
.register-status,
.register-dates,
.register-owners {
  min-width: 0;
}

.register-workstream b,
.register-activity strong {
  display: block;
  color: var(--ink);
  line-height: 1.24;
}

.register-workstream b {
  font-size: 0.9rem;
}

.register-workstream small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 780;
}

.register-activity strong {
  max-width: 520px;
  font-size: 0.95rem;
}

.register-activity ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.34;
}

.date-stack,
.owner-stack {
  display: grid;
  gap: 8px;
}

.date-stack span,
.owner-stack span {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.date-stack b,
.owner-stack b {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.date-stack i,
.owner-stack em {
  min-width: 0;
  overflow: hidden;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.date-stack small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 760;
}

.register-notes {
  grid-column: 2 / -1;
  display: grid;
  gap: 7px;
  padding-top: 10px;
  border-top: 1px solid rgba(215, 224, 221, 0.72);
}

.register-notes span {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.register-notes b {
  color: var(--red);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.issue-text {
  color: var(--red);
}

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

.register-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  padding: 18px;
  background: rgba(28, 36, 44, 0.42);
  backdrop-filter: blur(7px);
}

.register-modal[hidden] {
  display: none;
}

.register-modal-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 28px 70px rgba(28, 36, 44, 0.28);
}

.register-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(255, 229, 214, 0.82), rgba(249, 250, 251, 0.98));
}

.register-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.register-modal-actions button {
  width: auto;
  min-width: 136px;
}

.register-modal-actions .save-register-button {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.register-modal-actions #exportRegisterExcelBtn {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.register-editor-status {
  padding: 9px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.9);
}

.register-editor-status[data-tone="good"] {
  color: var(--green);
}

.register-editor-status[data-tone="warn"] {
  color: var(--amber);
}

.register-editor-status[data-tone="bad"] {
  color: var(--red);
}

.register-editor-scroll {
  min-height: 0;
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(248, 251, 250, 0.72), rgba(255, 255, 255, 0.98)),
    var(--surface);
}

.register-editor-table {
  min-width: 1960px;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.78rem;
}

.register-editor-table th {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid rgba(220, 227, 234, 0.86);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 950;
  text-align: left;
  text-transform: uppercase;
  vertical-align: bottom;
}

.register-editor-table td {
  padding: 8px;
  border-bottom: 1px solid rgba(220, 227, 234, 0.86);
  border-right: 1px solid rgba(220, 227, 234, 0.54);
  background: rgba(255, 255, 255, 0.92);
  vertical-align: top;
}

.register-editor-table tbody tr:nth-child(even) td {
  background: rgba(249, 250, 251, 0.96);
}

.register-editor-table input,
.register-editor-table select,
.register-editor-table textarea {
  width: 100%;
  min-height: 36px;
  padding: 7px 8px;
  border-color: rgba(174, 184, 195, 0.84);
  border-radius: 7px;
  background: #fff;
  font-size: 0.78rem;
}

.register-editor-table textarea {
  min-height: 74px;
  resize: vertical;
}

.register-editor-table .narrow-cell {
  width: 92px;
}

.register-editor-table .phase-cell {
  width: 170px;
}

.register-editor-table .activity-cell {
  width: 300px;
}

.register-editor-table .details-cell {
  width: 250px;
}

.register-editor-table .step-cell {
  width: 152px;
  min-width: 152px;
}

.step-editor {
  display: grid;
  gap: 6px;
}

.step-editor input {
  min-height: 32px;
  font-weight: 850;
}

.step-editor select.completed {
  background: var(--green-soft);
  color: var(--green);
}

.step-editor select.ongoing {
  background: var(--amber-soft);
  color: var(--amber);
}

.step-editor select.blocked {
  background: var(--red-soft);
  color: var(--red);
}

@media (max-width: 1100px) {
  .kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .hero-panel,
  .flow-panel,
  .procurement-layout,
  .countdown-panel,
  .control-panel,
  .editor-grid {
    grid-template-columns: 1fr;
  }

  .flow-copy {
    padding-right: 0;
    padding-bottom: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .procurement-head {
    align-items: stretch;
    flex-direction: column;
  }

  .procurement-head button {
    width: 100%;
  }

  .procurement-alert {
    align-items: stretch;
    flex-direction: column;
  }

  .procurement-alert button {
    width: 100%;
  }

  .report-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .report-actions,
  .report-actions button {
    width: 100%;
  }

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

  .register-card {
    grid-template-columns: minmax(120px, 0.36fr) minmax(280px, 1fr) minmax(240px, 0.9fr);
  }

  .register-notes {
    grid-column: 1 / -1;
  }

  .register-modal {
    padding: 10px;
  }

  .register-modal-head {
    align-items: stretch;
    flex-direction: column;
  }

  .register-modal-actions,
  .register-modal-actions button {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .app-shell {
    width: min(100vw - 18px, 760px);
    padding-top: 10px;
  }

  .topbar {
    display: grid;
  }

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

  .kpi-grid,
  .procurement-stats,
  .flow-rail {
    grid-template-columns: 1fr;
  }

  .procurement-item,
  .timeline-dot {
    grid-template-columns: 1fr;
  }

  .procurement-alert {
    margin: 0 10px 12px;
    padding: 14px;
  }

  .report-toolbar,
  .report-review {
    margin: 0 10px 12px;
  }

  .report-review-head {
    flex-direction: column;
  }

  .procurement-due {
    justify-items: start;
    text-align: left;
  }

  .table-wrap {
    max-height: none;
  }

  .register-card {
    grid-template-columns: 1fr;
  }

  .register-actions {
    justify-content: flex-start;
  }

  .register-open-button {
    width: 100%;
  }

  .register-notes {
    grid-column: 1;
  }

  .flow-rail::before {
    display: none;
  }

  .flow-step {
    min-height: auto;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
  }

  .flow-step small {
    grid-column: 2;
  }
}
/* 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);
}

.campaign-panel {
  border-color: rgba(241, 91, 34, 0.2);
  background:
    linear-gradient(110deg, rgba(255, 245, 238, 0.76), rgba(255, 255, 255, 0.98) 38%, rgba(226, 235, 247, 0.38)),
    var(--surface);
}

.campaign-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--line);
}

.campaign-score {
  min-width: 214px;
  padding: 12px 16px;
  border: 1px solid rgba(241, 91, 34, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  text-align: right;
  box-shadow: 0 12px 28px rgba(28, 36, 44, 0.08);
}

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

.campaign-score strong {
  display: block;
  margin: 2px 0 4px;
  color: var(--teal);
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  font-weight: 950;
  line-height: 0.95;
}

.campaign-score.danger strong {
  color: var(--red);
}

.campaign-score.good strong {
  color: var(--green);
}

.campaign-score.watch strong {
  color: var(--amber);
}

.campaign-runway {
  --runway-progress: 0%;
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 22px 18px 18px;
}

.campaign-runway::before,
.campaign-runway::after {
  content: "";
  position: absolute;
  top: 48px;
  left: clamp(36px, 4.7vw, 76px);
  height: 5px;
  border-radius: 999px;
}

.campaign-runway::before {
  right: clamp(36px, 4.7vw, 76px);
  background: linear-gradient(90deg, rgba(241, 91, 34, 0.22), rgba(174, 184, 195, 0.36));
}

.campaign-runway::after {
  width: calc((100% - clamp(72px, 9.4vw, 152px)) * var(--runway-progress) / 100);
  background: linear-gradient(90deg, var(--teal), #b3261e);
  box-shadow: 0 10px 20px rgba(241, 91, 34, 0.16);
}

.campaign-node {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 0;
  padding: 0 8px;
  text-align: center;
}

.campaign-node-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 2px solid rgba(241, 91, 34, 0.24);
  border-radius: 999px;
  background: #fff;
  color: var(--teal);
  box-shadow: 0 12px 26px rgba(28, 36, 44, 0.1);
}

.campaign-node b {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.campaign-node strong {
  max-width: 100%;
  overflow: hidden;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.campaign-node small {
  max-width: 170px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 760;
  line-height: 1.25;
}

.campaign-node.danger .campaign-node-icon {
  border-color: rgba(200, 68, 46, 0.34);
  background: var(--red-soft);
  color: var(--red);
}

.campaign-node.watch .campaign-node-icon {
  border-color: rgba(241, 91, 34, 0.34);
  background: var(--amber-soft);
  color: var(--amber);
}

.campaign-node.good .campaign-node-icon {
  border-color: rgba(47, 122, 79, 0.28);
  background: var(--green-soft);
  color: var(--green);
}

.campaign-node.target .campaign-node-icon {
  background: var(--charcoal);
  color: #fff;
}

.campaign-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0 18px 18px;
}

.campaign-tile {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-height: 88px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
}

.campaign-tile > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--teal);
}

.campaign-tile b,
.campaign-tile small {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.campaign-tile strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  margin: 4px 0 3px;
  color: var(--ink);
  font-size: clamp(1.15rem, 1.6vw, 1.58rem);
  font-weight: 950;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.campaign-tile small {
  font-size: 0.72rem;
  line-height: 1.25;
  text-transform: none;
}

.campaign-tile.danger {
  border-color: rgba(200, 68, 46, 0.3);
  background: linear-gradient(90deg, rgba(253, 228, 222, 0.72), rgba(255, 255, 255, 0.9));
}

.campaign-tile.danger > span {
  background: var(--red-soft);
  color: var(--red);
}

.campaign-tile.watch > span {
  background: var(--amber-soft);
  color: var(--amber);
}

.campaign-tile.good > span {
  background: var(--green-soft);
  color: var(--green);
}

@media (max-width: 1100px) {
  .campaign-head {
    align-items: stretch;
    flex-direction: column;
  }

  .campaign-score {
    text-align: left;
  }

  .campaign-runway {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .campaign-runway::before,
  .campaign-runway::after {
    display: none;
  }

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

@media (max-width: 760px) {
  .campaign-runway,
  .campaign-tiles {
    grid-template-columns: 1fr;
    padding-right: 10px;
    padding-left: 10px;
  }

  .campaign-node {
    grid-template-columns: 56px minmax(0, 1fr);
    justify-items: start;
    text-align: left;
  }

  .campaign-node b,
  .campaign-node strong,
  .campaign-node small {
    grid-column: 2;
  }

  .campaign-node-icon {
    grid-row: 1 / span 3;
  }
}

.campaign-runway {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 16px 18px 14px;
}

.campaign-runway::before,
.campaign-runway::after {
  display: none;
}

.phase-race-head {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0 206px 2px 256px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}

.race-lane {
  --lane-progress: 0%;
  display: grid;
  grid-template-columns: minmax(230px, 0.28fr) minmax(420px, 1fr) minmax(190px, 0.22fr);
  gap: 16px;
  align-items: center;
  min-height: 86px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 7px solid rgba(241, 91, 34, 0.45);
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 245, 238, 0.58));
  box-shadow: 0 12px 30px rgba(28, 36, 44, 0.07);
}

.race-lane.danger {
  border-color: rgba(200, 68, 46, 0.3);
  border-left-color: var(--red);
  background: linear-gradient(90deg, rgba(253, 228, 222, 0.76), rgba(255, 255, 255, 0.98) 36%);
}

.race-lane.good {
  border-left-color: var(--green);
}

.race-lane.watch {
  border-left-color: var(--amber);
}

.race-label {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-width: 0;
}

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

.race-label b,
.race-status b {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 950;
  line-height: 1.16;
}

.race-label small,
.race-status small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.25;
}

.race-track {
  position: relative;
  min-width: 0;
  height: 50px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(241, 91, 34, 0.14), rgba(174, 184, 195, 0.22)),
    #f7faf9;
}

.race-track::before {
  content: "";
  position: absolute;
  top: 22px;
  right: 22px;
  left: 22px;
  height: 6px;
  border-radius: 999px;
  background: rgba(174, 184, 195, 0.28);
}

.race-fill {
  position: absolute;
  top: 22px;
  left: 0;
  z-index: 1;
  width: var(--lane-progress);
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--teal-deep));
  box-shadow: 0 10px 20px rgba(241, 91, 34, 0.18);
}

.race-lane.danger .race-fill {
  background: linear-gradient(90deg, var(--red), #ef7a4e);
}

.race-lane.good .race-fill {
  background: linear-gradient(90deg, var(--green), #56aa78);
}

.race-marker {
  position: absolute;
  top: 50%;
  left: clamp(54px, var(--lane-progress), calc(100% - 82px));
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 78px;
  min-height: 38px;
  padding: 7px 10px;
  border: 2px solid rgba(241, 91, 34, 0.36);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 12px 22px rgba(28, 36, 44, 0.13);
  transform: translate(-50%, -50%);
}

.race-marker i {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 24px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-deep);
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 950;
}

.race-marker b {
  font-size: 0.88rem;
  font-weight: 950;
}

.race-lane.danger .race-marker {
  border-color: rgba(200, 68, 46, 0.46);
}

.race-lane.danger .race-marker i {
  background: var(--red-soft);
  color: var(--red);
}

.race-checkpoint,
.race-gate {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
}

.race-checkpoint {
  width: 11px;
  height: 11px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #bac8c5;
  box-shadow: 0 0 0 1px rgba(174, 184, 195, 0.35);
}

.race-checkpoint.start {
  left: 22px;
}

.race-checkpoint.mid-a {
  left: 30%;
}

.race-checkpoint.mid-b {
  left: 55%;
}

.race-checkpoint.ready {
  left: 78%;
}

.race-gate {
  right: 10px;
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 34px;
  border-radius: 10px;
  background: var(--charcoal);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0;
}

.race-status {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(174, 184, 195, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
}

.race-lane.danger .race-status b {
  color: var(--red);
}

@media (max-width: 1100px) {
  .phase-race-head {
    display: none;
  }

  .race-lane {
    grid-template-columns: minmax(220px, 0.35fr) minmax(360px, 1fr);
  }

  .race-status {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .race-lane {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .race-track {
    height: 54px;
  }
}

/* ════════════════════════════════════════
   UNIFIED LAYOUT OVERRIDES (20260524)
   Neutralizes conflicting base styles so
   /shared/layout.css can take over.
   ════════════════════════════════════════ */
: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;
  --orange: #f15b22;
  --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; }
}

/* ── Mobile responsive for RTM-specific components ── */
@media (max-width: 900px) {
  .countdown-panel { grid-template-columns: 1fr; padding: 16px; }
  .countdown-grid { grid-template-columns: repeat(4, 1fr); }
  .countdown-grid strong { font-size: 1.4rem; }
  .procurement-head { flex-direction: column; align-items: stretch; }
  .procurement-head button { width: 100%; }
  .control-panel { grid-template-columns: 1fr 1fr; }
  .register-card { grid-template-columns: 1fr; gap: 8px; }
  .register-notes { grid-column: 1; }
  .campaign-runway { grid-template-columns: 1fr; }
  .campaign-tiles { grid-template-columns: 1fr 1fr; }
  .register-title-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .table-wrap { padding: 8px; }
}
@media (max-width: 640px) {
  .countdown-grid { grid-template-columns: 1fr 1fr; }
  .control-panel { grid-template-columns: 1fr; }
  .campaign-tiles { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════
   RTM MODERN POLISH (20260524-modern)
   Refined palette for management view.
   Soften bright reds, unify dark surfaces,
   modernize pills/cards/progress.
   ════════════════════════════════════════ */

/* ── Procurement RED ALERT panel — refined urgency ── */
.procurement-panel {
  background: var(--surface);
  border: 1px solid rgba(239, 68, 68, 0.25);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3), 0 0 0 1px rgba(239, 68, 68, 0.08) inset;
}

.procurement-head {
  background: rgba(239, 68, 68, 0.05);
  border-bottom: 1px solid rgba(239, 68, 68, 0.15);
}

.procurement-head button,
.report-toolbar.generate-only button,
#procurementTriggerBtn,
#generateReportBtn {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border: 1px solid rgba(239, 68, 68, 0.6);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3), 0 4px 12px rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  padding: 10px 16px;
  transition: all 200ms ease;
}
.procurement-head button:hover,
.report-toolbar.generate-only button:hover,
#procurementTriggerBtn:hover,
#generateReportBtn:hover {
  background: linear-gradient(135deg, #f87171, #ef4444);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3), 0 8px 20px rgba(239, 68, 68, 0.3);
}

/* The big RED ALERT banner — refined, no bright pure red */
.procurement-alert {
  background:
    linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.18)),
    var(--surface);
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-left: 4px solid #ef4444;
  border-radius: 10px;
  margin: 14px 20px;
  padding: 16px 20px;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.15);
  color: var(--ink);
}
.procurement-alert strong {
  color: #fca5a5;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
  text-transform: uppercase;
}
.procurement-alert span {
  color: var(--ink);
  font-weight: 800;
}
.procurement-alert small {
  color: rgba(255, 255, 255, 0.7);
}
.procurement-alert button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--ink);
  font-weight: 700;
}
.procurement-alert button:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Report review/textarea panel */
.report-review {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 14px 20px;
  overflow: hidden;
}
.report-review-head {
  background: rgba(239, 68, 68, 0.08);
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
}
.report-review-head strong {
  color: var(--ink);
  font-weight: 700;
}
.report-review-head span {
  color: var(--muted);
}
.report-review textarea {
  background: var(--surface);
  color: var(--ink);
  border: 0;
  padding: 14px 16px;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.55;
}

/* ── Procurement stats — modern grid cards ── */
.procurement-stats {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--line);
}
.procurement-stat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: all 200ms ease;
}
.procurement-stat:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}
.procurement-stat strong {
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.06em;
}
.procurement-stat span {
  color: var(--ink);
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
}
.procurement-stat small {
  color: var(--muted);
}
.procurement-stat.danger {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.3);
  box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.05);
}
.procurement-stat.danger span { color: #fca5a5; }
.procurement-stat.warn {
  background: rgba(251, 191, 36, 0.06);
  border-color: rgba(251, 191, 36, 0.25);
}
.procurement-stat.warn span { color: #fbbf24; }
.procurement-stat.good {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.25);
}
.procurement-stat.good span { color: #34d399; }
.procurement-stat.blue {
  background: rgba(56, 189, 248, 0.06);
  border-color: rgba(56, 189, 248, 0.25);
}
.procurement-stat.blue span { color: #38bdf8; }

/* ── Procurement items / timeline / pic-load — clean cards ── */
.procurement-item,
.timeline-dot,
.pic-load-row,
.empty-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  transition: all 200ms ease;
}
.procurement-item:hover,
.timeline-dot:hover {
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  transform: translateY(-1px);
}
.procurement-item.critical,
.procurement-item.after-mob,
.procurement-item.overdue {
  background:
    linear-gradient(90deg, rgba(239, 68, 68, 0.12), rgba(21, 29, 46, 0.4) 60%),
    var(--surface);
  border-color: rgba(239, 68, 68, 0.35);
  border-left: 4px solid #ef4444;
}
.procurement-item.watch {
  background:
    linear-gradient(90deg, rgba(251, 191, 36, 0.1), rgba(21, 29, 46, 0.4) 60%),
    var(--surface);
  border-left: 4px solid #fbbf24;
}
.procurement-item.done {
  border-left: 4px solid #10b981;
}

.timeline-dot {
  border-left: 4px solid #38bdf8;
}
.timeline-dot.critical { border-left-color: #ef4444; }
.timeline-dot.watch { border-left-color: #fbbf24; }
.timeline-dot b { color: var(--ink); font-weight: 700; }
.timeline-dot small { color: var(--muted); }

/* Pic load progress bars */
.pic-load-row {
  background: var(--surface);
  border: 1px solid var(--line);
}
.pic-load-row b { color: var(--ink); }
.pic-load-row small { color: var(--muted); }
.pic-load-row span { color: var(--ink); font-weight: 800; }
.pic-load-row i {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
}
.pic-load-row i::after {
  background: linear-gradient(90deg, #38bdf8, #0ea5e9);
  border-radius: 999px;
}
.pic-load-row.watch i::after {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
}
.pic-load-row.critical i::after {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

/* ── Rank badge — refined ── */
.rank {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(249, 115, 22, 0.3);
  border-radius: 8px;
  width: 36px;
  height: 36px;
}

/* ── Alert badges in procurement copy ── */
.procurement-alert-badge {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.procurement-alert-badge.red {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
}
.procurement-alert-badge.watch {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}
.procurement-alert-badge.none,
.procurement-alert-badge.tba,
.procurement-alert-badge.text {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}

/* ── Status pills (issue/target/done/open/etc) ── */
.pill {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 6px;
}
.pill.issue {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.25);
}
.pill.tba, .pill.open {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.25);
}
.pill.target {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.25);
}
.pill.done {
  background: rgba(100, 116, 139, 0.15);
  color: #94a3b8;
  border-color: rgba(100, 116, 139, 0.3);
}
.pill.completion {
  margin-left: 0;
}
.pill.complete {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.25);
}
.pill.ongoing {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.25);
}
.pill.critical {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.25);
}
.pill.unset {
  background: rgba(148, 163, 184, 0.08);
  color: #94a3b8;
  border-color: rgba(148, 163, 184, 0.18);
}

/* Due pills */
.due-pill {
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border: 1px solid var(--line);
  font-weight: 700;
}
.due-pill.planned {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.25);
}
.due-pill.watch {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.25);
}
.due-pill.critical,
.due-pill.after-mob,
.due-pill.overdue {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.3);
}
.due-pill.done {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.25);
}
.due-pill.tba, .due-pill.text {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.25);
}

/* ── Step strip / step chips — clean modern look ── */
.step-strip {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
}
.step-chip {
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
  background: transparent;
}
.step-chip i {
  background: #475569;
  box-shadow: 0 0 0 3px rgba(71, 85, 105, 0.2);
}
.step-chip.completed {
  background: rgba(16, 185, 129, 0.08);
  color: #34d399;
}
.step-chip.completed i {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}
.step-chip.ongoing {
  background: rgba(249, 115, 22, 0.1);
  color: #fb923c;
}
.step-chip.ongoing i {
  background: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}
.step-chip.blocked {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
}
.step-chip.blocked i {
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}
.step-chip.pending {
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
}
.step-empty {
  color: var(--muted);
}

/* Step legend (top right of register) */
.step-legend span {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 10px;
}
.step-legend i { background: #475569; }
.step-legend i.completed { background: #10b981; }
.step-legend i.ongoing { background: #f97316; }
.step-legend i.pending { background: #64748b; }

/* ── Campaign Movement panel — clean, no aggressive gradients ── */
.campaign-panel {
  background: var(--surface);
  border: 1px solid var(--line);
}
.campaign-head {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--line);
}

.campaign-tile {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: all 200ms ease;
}
.campaign-tile:hover {
  border-color: rgba(249, 115, 22, 0.3);
  background: rgba(255, 255, 255, 0.05);
}
.campaign-tile > span {
  background: rgba(249, 115, 22, 0.12);
  color: #fb923c;
  border-radius: 10px;
}
.campaign-tile b, .campaign-tile small {
  color: var(--muted);
}
.campaign-tile strong {
  color: var(--ink);
  font-weight: 800;
}
.campaign-tile.danger {
  background:
    linear-gradient(90deg, rgba(239, 68, 68, 0.08), rgba(255, 255, 255, 0.02));
  border-color: rgba(239, 68, 68, 0.3);
}
.campaign-tile.danger > span {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}
.campaign-tile.watch > span {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}
.campaign-tile.good > span {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

/* Race lanes */
.race-lane {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid rgba(249, 115, 22, 0.5);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.race-lane:hover,
.race-lane:focus-visible {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 10px 28px rgba(0,0,0,0.22), 0 0 0 1px rgba(56, 189, 248, 0.18);
  outline: none;
  transform: translateY(-1px);
}
.race-lane.danger {
  border-color: rgba(239, 68, 68, 0.25);
  border-left-color: #ef4444;
  background:
    linear-gradient(90deg, rgba(239, 68, 68, 0.08), rgba(21, 29, 46, 0.4) 40%),
    var(--surface);
}
.race-lane.good { border-left-color: #10b981; }
.race-lane.watch { border-left-color: #fbbf24; }

.race-icon {
  background: rgba(249, 115, 22, 0.12);
  color: #fb923c;
  border-radius: 12px;
}
.race-label b, .race-status b { color: var(--ink); font-weight: 800; }
.race-label small, .race-status small { color: var(--muted); }

.race-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 999px;
}
.race-track::before {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}
.race-fill {
  background: linear-gradient(90deg, #f97316, #ea580c);
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.25);
  border-radius: 999px;
}
.race-lane.danger .race-fill {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}
.race-lane.good .race-fill {
  background: linear-gradient(90deg, #10b981, #059669);
}
.race-lane.watch .race-fill {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.race-checkpoint {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid var(--surface);
}
.race-gate {
  background: #f97316;
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}
.race-marker {
  background: var(--surface);
  border: 2px solid rgba(249, 115, 22, 0.5);
  color: var(--ink);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.race-marker i {
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
  border-radius: 999px;
}
.race-marker b { color: var(--ink); font-weight: 800; }
.race-status {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.race-lane.danger .race-status b { color: #fca5a5; }

/* ── Action Register filter panel ── */
.control-panel,
.register-filter-panel {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 14px;
  box-shadow: none;
}
.register-filter-panel {
  border-radius: 0;
  border-width: 0 0 1px;
  background: rgba(255, 255, 255, 0.02);
}

label {
  color: var(--ink);
}
label span {
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.06em;
}

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);
  background: rgba(255, 255, 255, 0.06);
}
input::placeholder { color: rgba(255, 255, 255, 0.35); }

/* Generic buttons (NOT alert buttons) */
button {
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.25);
  color: #fb923c;
  font-weight: 700;
  border-radius: 8px;
  transition: all 200ms ease;
}
button:hover:not(:disabled) {
  background: rgba(249, 115, 22, 0.15);
  border-color: rgba(249, 115, 22, 0.4);
  color: #f97316;
}

/* Register title row */
.register-title-row {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--line);
}
.register-title-row h2 { color: var(--ink); }

.register-open-button {
  background: linear-gradient(135deg, #f97316, #ea580c);
  border: 1px solid rgba(249, 115, 22, 0.6);
  color: #fff;
  font-weight: 800;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.2);
  letter-spacing: 0.02em;
}
.register-open-button:hover {
  background: linear-gradient(135deg, #fb923c, #f97316);
  transform: translateY(-1px);
  color: #fff;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.3);
}

/* ── Register cards ── */
.table-wrap {
  background: transparent;
  padding: 14px 16px;
  max-height: none;
}

.register-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid rgba(249, 115, 22, 0.5);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: all 200ms ease;
}
.register-card[data-action-id] {
  cursor: pointer;
}
.register-card[data-action-id]:focus-visible {
  outline: 2px solid rgba(249, 115, 22, 0.75);
  outline-offset: 3px;
}
.register-card:hover {
  border-color: rgba(249, 115, 22, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.register-card.critical,
.register-card.overdue,
.register-card.after-mob {
  border-left-color: #ef4444;
}
.register-card.watch { border-left-color: #fbbf24; }
.register-card.planned { border-left-color: #38bdf8; }

.register-workstream b,
.register-activity strong {
  color: var(--ink);
  font-weight: 700;
}
.register-workstream small,
.register-activity ul {
  color: var(--muted);
}
.register-activity ul {
  font-size: 0.78rem;
  line-height: 1.45;
}

.date-stack b,
.owner-stack b {
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.06em;
}
.date-stack i,
.owner-stack em {
  color: var(--ink);
  font-weight: 600;
}
.date-stack small { color: var(--muted); }

.register-notes {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.register-notes b {
  color: #f87171;
  letter-spacing: 0.06em;
}
.register-notes span { color: var(--ink); font-size: 0.84rem; line-height: 1.5; }
.issue-text { color: #f87171; }
.empty { color: var(--muted); }

.status-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(8px);
}
.status-detail-modal[hidden] {
  display: none;
}
.status-detail-panel {
  width: min(720px, 100%);
  max-height: min(78vh, 680px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.status-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(249, 115, 22, 0.04);
}
.status-detail-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.12rem;
}
.status-detail-head button {
  width: auto;
  min-width: 96px;
  border-radius: 8px;
  border: 1px solid rgba(249, 115, 22, 0.5);
  background: rgba(249, 115, 22, 0.12);
  color: var(--orange);
  font-weight: 900;
}
.status-detail-body {
  padding: 20px;
  overflow: auto;
}
.status-detail-body strong {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.status-detail-body p {
  margin: 0;
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.035);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

/* ── Register modal (full editor) ── */
.register-modal {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}
.register-modal-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.register-modal-head {
  background: rgba(249, 115, 22, 0.04);
  border-bottom: 1px solid var(--line);
}
.register-modal-actions button {
  border-radius: 8px;
  font-weight: 700;
}
.register-modal-actions .save-register-button {
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: rgba(16, 185, 129, 0.6);
  color: #fff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}
.register-modal-actions .save-register-button:hover {
  background: linear-gradient(135deg, #34d399, #10b981);
  color: #fff;
  transform: translateY(-1px);
}
.register-modal-actions #exportRegisterExcelBtn {
  background: linear-gradient(135deg, #f97316, #ea580c);
  border-color: rgba(249, 115, 22, 0.6);
  color: #fff;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.25);
}
.register-modal-actions #exportRegisterExcelBtn:hover {
  background: linear-gradient(135deg, #fb923c, #f97316);
  color: #fff;
  transform: translateY(-1px);
}
.register-modal-actions #closeRegisterModalBtn {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--ink);
}
.register-modal-actions #closeRegisterModalBtn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.register-editor-status {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.register-editor-status[data-tone="good"] { color: #34d399; }
.register-editor-status[data-tone="warn"] { color: #fbbf24; }
.register-editor-status[data-tone="bad"] { color: #f87171; }
.register-editor-scroll { background: var(--surface-soft); }

.register-editor-table th {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.06em;
}
.register-editor-table td {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
.register-editor-table tbody tr:nth-child(even) td {
  background: var(--surface-soft);
}
.register-editor-table tbody tr:hover td {
  background: rgba(249, 115, 22, 0.06);
}
.register-editor-table input,
.register-editor-table select,
.register-editor-table textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 6px;
}
.step-editor select.completed { background: rgba(16, 185, 129, 0.1); color: #34d399; }
.step-editor select.ongoing { background: rgba(251, 191, 36, 0.1); color: #fbbf24; }
.step-editor select.blocked { background: rgba(239, 68, 68, 0.1); color: #f87171; }

/* ── Countdown panel modernization ── */
.countdown-panel {
  background:
    linear-gradient(120deg, rgba(249, 115, 22, 0.08) 0%, rgba(21, 29, 46, 0.6) 55%, rgba(56, 189, 248, 0.06) 100%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2), 0 8px 24px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
}
.countdown-panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #f97316, #fbbf24, #f97316);
  background-size: 200% 100%;
  animation: countdown-shimmer 8s ease-in-out infinite;
}
.countdown-panel.rtm-countdown-mermaid::before {
  background: linear-gradient(90deg, #38bdf8, #22c55e, #38bdf8);
  background-size: 200% 100%;
}
.rtm-countdown-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 1100px) {
  .rtm-countdown-wrap { grid-template-columns: 1fr; }
}
.rtm-countdown-wrap .countdown-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 18px 22px;
}
.rtm-countdown-wrap .countdown-panel h2 { font-size: 1.4rem; margin-bottom: 4px; }
.rtm-countdown-wrap .countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  justify-content: flex-start;
}
.rtm-countdown-wrap .countdown-grid article {
  padding: 12px 6px;
  text-align: center;
}
.rtm-countdown-wrap .countdown-grid strong {
  font-size: 2.2rem;
  display: block;
  line-height: 1;
}
.rtm-countdown-wrap .countdown-grid span {
  font-size: 0.65rem;
  letter-spacing: 0.06em;
}

/* Vessel section headers */
.vessel-section-header {
  display: flex; align-items: baseline; flex-wrap: wrap;
  gap: 10px 16px;
  padding: 6px 4px 4px;
  margin-top: 10px;
  border-bottom: 1px dashed var(--line);
}
.vessel-section-header h2 { font-size: 1.05rem; margin: 0; }
.vessel-section-header .vessel-deeplink {
  margin-left: auto;
  font-size: 0.78rem; font-weight: 700;
  color: #f97316;
  text-decoration: none;
}
.vessel-section-header .vessel-deeplink:hover { text-decoration: underline; }
.vessel-mermaid-eyebrow { color: #38bdf8 !important; }
.vessel-boka-eyebrow { color: #f97316 !important; }

/* Mermaid empty state */
.vessel-empty-state {
  padding: 28px 24px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.04), rgba(34, 197, 94, 0.03)),
    var(--surface-soft);
}
.vessel-empty-state h3 { font-size: 1.05rem; margin: 8px 0; color: var(--ink); }
.vessel-empty-state code {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
  font-size: 0.78rem;
  color: #fbbf24;
}
.vessel-empty-state .vessel-deeplink.primary {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, #38bdf8, #22c55e);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
}
@keyframes countdown-shimmer {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 0%; }
}
.countdown-panel h2 { color: var(--ink); }
.countdown-grid article {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.countdown-grid strong {
  color: #f97316;
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
}
.countdown-grid span {
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* Override remnant property panel cleanup */
.flow-step strong { color: var(--ink); }
.flow-step small { color: var(--muted); }
.flow-icon {
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(249, 115, 22, 0.3);
  color: #fb923c;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.flow-step-alert .flow-icon {
  border-color: rgba(239, 68, 68, 0.35);
  color: #f87171;
}

/* ── Generic panel head titles ── */
.panel,
.panel.procurement-panel,
.panel.campaign-panel {
  border-radius: 14px;
}
.panel-head {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--line);
}
.panel-head h2 {
  color: var(--ink);
  font-weight: 800;
}
.panel-head .eyebrow {
  color: #fb923c;
}

/* Edit message tones */
.edit-message[data-tone="success"] { color: #34d399; }
.edit-message[data-tone="error"] { color: #f87171; }
.edit-message[data-tone="warn"] { color: #fbbf24; }
.edit-message { color: var(--muted); }

/* Override note */
.override-note { color: #fb923c; font-weight: 800; }

/* Source meta and small text */
.meta-line { color: var(--muted); }

/* ════════════════════════════════════════
   RTM LAYOUT CHANGES (20260525-changes)
   - Generate Report in topbar
   - Hide campaign tiles bottom row
   - Pending step chip = RED (critical)
   ════════════════════════════════════════ */

/* Topbar Generate Report button */
.topbar-generate-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  border: 1px solid rgba(239, 68, 68, 0.6) !important;
  color: #fff !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em;
  border-radius: 10px;
  padding: 10px 18px;
  cursor: pointer;
  transition: all 200ms ease;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}
.topbar-generate-btn:hover {
  background: linear-gradient(135deg, #f87171, #ef4444) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}
.topbar-generate-btn .dash-icon { width: 16px; height: 16px; }

/* Hide the bottom row of campaign tiles (Phase Lead, Biggest Load, Next Cut-Off, Mob Gate) */
.campaign-tiles {
  display: none !important;
}

/* Pending step chip — RED (CRITICAL) instead of grey */
.step-chip.pending {
  background: rgba(239, 68, 68, 0.1) !important;
  color: #f87171 !important;
  border-right-color: rgba(239, 68, 68, 0.2) !important;
}
.step-chip.pending i {
  background: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

/* Report-review panel sits standalone, only shows when generated */
.report-review:not([hidden]) {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid #ef4444;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
}
.report-review-head {
  background: rgba(239, 68, 68, 0.08);
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.report-review-head strong {
  color: var(--ink);
  font-weight: 800;
}
.report-review-head span {
  color: var(--muted);
  font-size: 0.78rem;
}
.report-review textarea {
  width: 100%;
  background: var(--surface);
  color: var(--ink);
  border: 0;
  padding: 16px;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.55;
  resize: vertical;
  min-height: 320px;
}

/* Keep RTM action-register context visible during page scroll */
.rtm-register-panel {
  --rtm-sticky-top: 66px;
  --rtm-register-title-top: 178px;
  --rtm-register-header-top: 250px;
  overflow: visible !important;
}

.rtm-register-panel .register-filter-panel {
  position: sticky;
  top: var(--rtm-sticky-top);
  z-index: 46;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: #182235 !important;
  box-shadow: 0 10px 24px rgba(2, 8, 23, 0.28);
}

.filter-reset-button {
  align-self: end;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid rgba(249, 115, 22, 0.55);
  border-radius: 8px;
  background: rgba(249, 115, 22, 0.10);
  color: #fb923c;
  font-weight: 900;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.filter-reset-button:hover,
.filter-reset-button:focus-visible {
  background: rgba(249, 115, 22, 0.18);
  border-color: rgba(249, 115, 22, 0.85);
  color: #fed7aa;
}

.filter-reset-button:disabled {
  cursor: default;
  opacity: 0.45;
}

.rtm-register-panel .register-title-row {
  position: sticky;
  top: var(--rtm-register-title-top);
  z-index: 45;
  border-radius: 0;
  background: #182235 !important;
  box-shadow: 0 10px 24px rgba(2, 8, 23, 0.28);
}

.rtm-register-panel .table-wrap {
  overflow: visible !important;
  max-height: none !important;
}

.rtm-register-panel .register-header {
  display: grid;
  grid-template-columns: minmax(86px, 0.45fr) minmax(230px, 1.2fr) minmax(190px, 0.85fr) minmax(120px, 0.55fr) minmax(155px, 0.7fr) minmax(150px, 0.65fr);
  gap: 12px;
  align-items: center;
  position: sticky;
  top: var(--rtm-register-header-top);
  z-index: 44;
  margin-bottom: 8px;
  padding: 10px 14px 10px 19px;
  border: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
  background: #1c293d !important;
  box-shadow: inset 0 -1px 0 var(--line), 0 8px 18px rgba(2, 8, 23, 0.22);
}

.rtm-register-panel .register-header > span {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Explain the mobilization phase markers without changing the runway data. */
.phase-race-head {
  gap: 10px;
  margin: 0 18px 12px;
  color: var(--ink);
  text-transform: none;
}

.race-stage {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 8px;
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
}

.race-stage b {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.14);
  color: #fb923c;
  font-size: 0.72rem;
  font-weight: 900;
}

.race-stage strong {
  min-width: 0;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.race-stage small {
  min-width: 0;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Column J status colors and legend. */
.pill.done {
  background: rgba(34, 197, 94, 0.14);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.34);
}

.pill.open {
  background: rgba(239, 68, 68, 0.14);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.34);
}

.pill.ongoing {
  background: rgba(249, 115, 22, 0.14);
  color: #fb923c;
  border-color: rgba(249, 115, 22, 0.34);
}

.rtm-status-chart {
  margin: 4px 18px 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.56));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.rtm-status-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.rtm-status-chart-head strong {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
}

.rtm-status-chart-head span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.rtm-status-bar {
  display: grid;
  grid-template-columns: minmax(0, var(--completed)) minmax(0, var(--ongoing)) minmax(0, var(--open));
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(71, 85, 105, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.rtm-status-bar span {
  min-width: 0;
}

.rtm-status-bar .completed { background: linear-gradient(90deg, #22c55e, #4ade80); }
.rtm-status-bar .ongoing { background: linear-gradient(90deg, #f59e0b, #fb923c); }
.rtm-status-bar .open { background: linear-gradient(90deg, #ef4444, #fb7185); }

.rtm-status-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.rtm-status-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
}

.rtm-status-card:hover,
.rtm-status-card:focus-visible,
.rtm-status-card.active {
  outline: none;
  border-color: currentColor;
  background: rgba(255, 255, 255, 0.06);
}

.rtm-status-card b {
  font-size: 1.12rem;
  font-weight: 950;
  line-height: 1;
}

.rtm-status-card span {
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.rtm-status-card small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.rtm-status-card.completed { color: #4ade80; }
.rtm-status-card.ongoing { color: #fb923c; }
.rtm-status-card.open { color: #f87171; }

@media (max-width: 760px) {
  .rtm-status-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .register-header,
  .register-card,
  .rtm-register-panel .register-header {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  .register-header,
  .register-card,
  .rtm-register-panel .register-header {
    grid-template-columns: 1fr !important;
  }
}
