/* Keep file for optional custom polish beyond Tailwind utilities */
:root {
  --surface-0: #ffffff;
  --surface-1: #f8fafc;
  --surface-2: #eef5f1;
  --border-1: #e2e8f0;
  --border-2: #cbd5e1;
  --text-1: #1e293b;
  --text-2: #475569;
  --text-3: #64748b;
  --accent-1: #16a34a;
  --accent-2: #15803d;
  --accent-3: #166534;
  --hover-surface: #ecfdf3;
  --active-surface: #d1fae5;
  --focus-ring: rgba(34, 197, 94, 0.24);
  --tooltip-bg: rgba(255, 255, 255, 0.98);
  --tooltip-border: rgba(203, 213, 225, 0.95);
  --tooltip-text: #1e293b;
  --tooltip-muted: #64748b;
  --tooltip-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  --chart-grid: rgba(148, 163, 184, 0.2);
  --chart-axis: rgba(148, 163, 184, 0.4);
}

body {
  --focus-brand: rgba(34, 197, 94, 0.24);
  --focus-rose: rgba(244, 63, 94, 0.24);
  --focus-slate: rgba(100, 116, 139, 0.2);
  --cursor-x: 12%;
  --cursor-y: 6%;
  background-image: radial-gradient(circle at var(--cursor-x) var(--cursor-y), rgba(74, 222, 128, 0.16), transparent 24%);
}

body.is-loading-initial {
  overflow: hidden !important;
}

.app-root {
  transition: opacity 420ms ease;
  transform: none;
}

.app-root-hidden {
  opacity: 0;
  transform: none;
  pointer-events: none;
}

.app-root-ready {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

@keyframes splashSlide {
  0% {
    transform: translateX(-65%);
  }
  100% {
    transform: translateX(185%);
  }
}

.splash-shell {
  animation: none;
}

.splash-logo-square {
  width: 110px;
  height: 110px;
  box-sizing: border-box;
  border-radius: 22px;
  border: 1px solid rgba(110, 231, 183, 0.45);
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.splash-loader {
  animation: splashSlide 1.2s ease-in-out infinite;
}

tbody tr:nth-child(even) {
  background: #fcfdff;
}

tbody tr + tr td {
  border-top: 1px solid #f1f5f9;
}

tbody tr:hover {
  background: #f0fdf4;
}

.shadow-card {
  transition: transform 180ms ease, box-shadow 220ms ease, border-color 180ms ease;
  transform: translateY(0);
}

.shadow-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(22, 163, 74, 0.22);
}

.kpi-value {
  background-image: none;
  color: #0b3d20;
  -webkit-text-fill-color: #0b3d20;
  transition: color 140ms ease;
}

.kpi-card:hover .kpi-value {
  background-image: linear-gradient(130deg, #0f172a 10%, #166534 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.kpi-card:not(:hover) .kpi-value {
  background-image: none;
  color: #0b3d20;
  -webkit-text-fill-color: #0b3d20;
}

.sidebar-item {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  transition: transform 180ms ease, box-shadow 220ms ease, background-color 180ms ease, color 180ms ease,
    border-color 180ms ease;
}

.sidebar-item:hover {
  transform: translateY(-2px);
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
  box-shadow: 0 10px 18px rgba(22, 101, 52, 0.14);
}

.sidebar-item:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.sidebar-item-active {
  background: linear-gradient(135deg, #ecfdf3 0%, #d1fae5 100%);
  border-color: #86efac;
  box-shadow: 0 10px 18px rgba(22, 101, 52, 0.16);
}

.sidebar-tooltip {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  border: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.95);
  color: #334155;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 20;
}

.sidebar-tooltip.tooltip-left {
  left: auto;
  right: calc(100% + 10px);
}

.sidebar-tooltip.tooltip-measuring {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(-50%) !important;
}

.group:hover .sidebar-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.group:focus-within .sidebar-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.focus-brand:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px var(--focus-brand);
}

.focus-rose:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px var(--focus-rose);
}

.focus-slate:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px var(--focus-slate);
}

#quickFilterMenu button:focus-visible,
#analyticsViewMenu button:focus-visible,
#businessOwnerFilterMenu button:focus-visible,
#departmentFilterMenu button:focus-visible {
  outline: 0;
  background: transparent;
  color: inherit;
}

.snapshot-note-justify {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  text-align: left;
  line-height: 1.4;
}

.snapshot-note-detail {
  display: inline-block;
  min-width: 0;
}

#snapshotCard [data-snapshot-status][data-snapshot-phase] {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.1;
}

.snapshot-filter-row {
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.snapshot-filter-row:hover {
  transform: translateY(-1px);
}

.snapshot-filter-row:focus-visible {
  outline: none;
}

.snapshot-filter-row[data-snapshot-filter="ontrack"]:focus-visible,
.snapshot-filter-row[data-snapshot-filter="ontrack"].is-active {
  border-color: #94a3b8 !important;
  box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.45), 0 8px 20px rgba(148, 163, 184, 0.14);
}

.snapshot-filter-row[data-snapshot-filter="monitor"]:focus-visible,
.snapshot-filter-row[data-snapshot-filter="monitor"].is-active {
  border-color: #86efac !important;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.36), 0 8px 20px rgba(34, 197, 94, 0.14);
}

.snapshot-filter-row[data-snapshot-filter="followup"]:focus-visible,
.snapshot-filter-row[data-snapshot-filter="followup"].is-active {
  border-color: #5eead4 !important;
  box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.38), 0 8px 20px rgba(45, 212, 191, 0.14);
}

.snapshot-filter-row[data-snapshot-filter="warning"]:focus-visible,
.snapshot-filter-row[data-snapshot-filter="warning"].is-active {
  border-color: #34d399 !important;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.4), 0 8px 20px rgba(16, 185, 129, 0.15);
}

.snapshot-filter-row[data-snapshot-filter="high"]:focus-visible,
.snapshot-filter-row[data-snapshot-filter="high"].is-active {
  border-color: #14532d !important;
  box-shadow: 0 0 0 2px rgba(20, 83, 45, 0.42), 0 8px 20px rgba(20, 83, 45, 0.18);
}

.toolbar-row {
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  min-width: 0;
}

.toolbar-group {
  flex-wrap: nowrap;
  justify-content: flex-start;
  flex: 1 1 auto;
  min-width: 0;
  overflow: visible;
}

.toolbar-filter-cluster {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  justify-content: flex-start;
  flex-wrap: nowrap;
  overflow: visible;
}

.toolbar-search {
  flex: 0 1 clamp(190px, 25vw, 320px);
  width: clamp(190px, 25vw, 320px);
  min-width: 160px;
  max-width: 320px;
}

.toolbar-search input {
  white-space: nowrap;
  text-overflow: ellipsis;
}

.toolbar-control {
  min-width: 0;
}

.toolbar-control-month {
  width: 140px;
}

.toolbar-control-status {
  width: 132px;
}

.toolbar-control-stage {
  width: 168px;
}

.toolbar-control-dept {
  width: 148px;
}

.toolbar-action {
  white-space: nowrap;
}

.toolbar-refresh-btn {
  min-width: 132px;
  margin-left: 0;
}

#quickFilterReset {
  width: auto;
}

.toolbar-scroll {
  scrollbar-width: none;
}

.toolbar-scroll::-webkit-scrollbar {
  display: none;
}

@media (max-width: 1480px) {
  .toolbar-search {
    width: clamp(175px, 23vw, 280px);
    max-width: 280px;
  }
}

@media (max-width: 1320px) {
  .toolbar-row,
  .toolbar-group {
    gap: 6px !important;
  }
  .toolbar-row { justify-content: space-between; }
  .toolbar-group { justify-content: flex-start; flex: 1 1 auto; }

  .toolbar-search {
    max-width: 170px;
  }
  .toolbar-control-month {
    width: 104px;
  }
  .toolbar-control-status {
    width: 96px;
  }
  .toolbar-control-stage {
    width: 132px;
  }
  .toolbar-control-dept {
    width: 118px;
  }

  .toolbar-action {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .toolbar-refresh-btn {
    min-width: 112px;
  }
}

@media (max-width: 1180px) {
  .toolbar-row,
  .toolbar-group {
    gap: 5px !important;
  }

  .toolbar-search {
    max-width: 152px;
  }
  .toolbar-control-month {
    width: 92px;
  }
  .toolbar-control-status {
    width: 84px;
  }
  .toolbar-control-stage {
    width: 116px;
  }
  .toolbar-control-dept {
    width: 104px;
  }

  .toolbar-control button,
  .toolbar-action {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .toolbar-label-text {
    font-size: 12px;
  }

  .toolbar-refresh-btn {
    min-width: 98px;
  }
}

@media (max-width: 1080px) {
  .toolbar-row { justify-content: space-between; }
  .toolbar-group { justify-content: flex-start; flex: 1 1 auto; }

  .toolbar-search {
    max-width: 132px;
  }
  .toolbar-control-month {
    width: 84px;
  }
  .toolbar-control-status {
    width: 78px;
  }
  .toolbar-control-stage {
    width: 104px;
  }
  .toolbar-control-dept {
    width: 94px;
  }

  .toolbar-btn-text {
    display: none !important;
  }

  .toolbar-action {
    justify-content: center !important;
    min-width: 42px;
  }
  .toolbar-refresh-btn {
    min-width: 42px;
  }
}

@media (max-width: 980px) {
  .toolbar-row { justify-content: space-between; }
  .toolbar-group { justify-content: flex-start; flex: 1 1 auto; }

  .toolbar-label-text,
  .toolbar-btn-text {
    display: none !important;
  }

  .toolbar-icon-label {
    justify-content: center;
    width: 100%;
  }

  .toolbar-search input {
    padding-right: 8px;
  }

  .toolbar-control-month,
  .toolbar-control-status,
  .toolbar-control-stage,
  .toolbar-control-dept {
    width: 48px;
  }

  .toolbar-control button,
  .toolbar-action {
    justify-content: center !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .toolbar-control > button > .material-symbols-outlined:last-child {
    display: none !important;
  }

  .toolbar-refresh-btn {
    min-width: 48px;
  }
}

.executive-card {
  position: relative;
  isolation: isolate;
  overflow: visible;
  transition: transform 180ms ease, box-shadow 220ms ease, border-color 180ms ease;
}

.executive-card::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 1.1rem;
  background: radial-gradient(circle at 20% 10%, rgba(74, 222, 128, 0.22), rgba(74, 222, 128, 0));
  opacity: 0;
  filter: blur(12px);
  z-index: -1;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.executive-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(22, 163, 74, 0.24);
}

.executive-card:hover::after {
  opacity: 1;
}

@keyframes askAiGradientShift {
  0% {
    background-position: 12% 50%;
  }
  100% {
    background-position: 88% 50%;
  }
}

@keyframes askAiHalo {
  0%,
  100% {
    box-shadow: 0 10px 24px rgba(34, 197, 94, 0.35), 0 0 0 0 rgba(34, 197, 94, 0.24);
  }
  50% {
    box-shadow: 0 16px 28px rgba(16, 185, 129, 0.48), 0 0 0 8px rgba(16, 185, 129, 0.08);
  }
}

@keyframes askAiSparkle {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(16deg) scale(1.08);
  }
}

.ask-ai-fab {
  border: 1px solid rgba(187, 247, 208, 0.7);
  background: linear-gradient(120deg, #0f7d3f 0%, #16a34a 35%, #0ea5a4 70%, #16a34a 100%);
  background-size: 220% 220%;
  animation: askAiGradientShift 4.8s ease-in-out infinite alternate, askAiHalo 2.4s ease-in-out infinite;
}

.ask-ai-fab:hover {
  filter: saturate(1.08) brightness(1.03);
}

.ask-ai-fab-icon {
  animation: askAiSparkle 2.1s ease-in-out infinite;
}

.ask-ai-message strong {
  font-weight: 700;
}

.ask-ai-message code {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(148, 163, 184, 0.16);
  border-radius: 6px;
  padding: 1px 5px;
  font-family: "Plus Jakarta Sans";
  font-size: 0.92em;
}

.ask-ai-message p + p {
  margin-top: 6px;
}

.ask-ai-message ul {
  margin: 4px 0 0 16px;
  list-style: disc;
}

.ask-ai-message li + li {
  margin-top: 2px;
}

:root {
  --progress-step-node-width: 52px;
  --progress-step-gap-width: 30px;
  --progress-step-connector-width: 28px;
  --progress-step-connector-side-gap: 1px;
  --progress-step-connector-thickness: 3px;
  --progress-step-connector-top: 12px;
  --ask-ai-bottom-gap: 10px;
  --ask-ai-panel-gap: 86px;
}

#askAiFab {
  right: 10px !important;
  bottom: calc(env(safe-area-inset-bottom, 0px) + var(--ask-ai-bottom-gap)) !important;
}

#askAiPanel {
  right: 10px !important;
  bottom: calc(env(safe-area-inset-bottom, 0px) + var(--ask-ai-panel-gap)) !important;
}

@keyframes dataProgressStripeMove {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 22px 0;
  }
}

.data-progress-fill {
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.28) 0 6px,
    rgba(255, 255, 255, 0.02) 6px 12px
  );
  background-size: 22px 100%;
  animation: dataProgressStripeMove 1.6s linear infinite;
}

.data-progress-track {
  background-image: repeating-linear-gradient(
    90deg,
    #cbd5e1 0 8px,
    transparent 8px 13px
  );
  border-radius: 999px;
  overflow: hidden;
}

.data-progress-dash {
  background-image: repeating-linear-gradient(
    90deg,
    rgba(16, 185, 129, 0.95) 0 8px,
    rgba(16, 185, 129, 0) 8px 13px
  );
}

.progress-step-node {
  width: var(--progress-step-node-width);
}

.progress-step-gap {
  width: var(--progress-step-gap-width);
}

.progress-step-connector {
  width: var(--progress-step-connector-width);
  height: var(--progress-step-connector-thickness);
  margin-left: var(--progress-step-connector-side-gap);
  margin-right: var(--progress-step-connector-side-gap);
  margin-top: var(--progress-step-connector-top);
}

.data-table-thead {
  position: relative;
  z-index: 2;
}

.data-table-th {
  background: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(10px) saturate(1.15);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
  box-shadow: inset 0 -1px 0 rgba(203, 213, 225, 0.9);
}

.data-table-head-wrap,
.data-table-scroll {
  padding-left: 0;
  padding-right: var(--spasi-scroll, var(--data-scroll-offset, 0px));
}

.data-table-head-wrap {
  position: relative;
  background: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(10px) saturate(1.15);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
}

.data-table-head-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #e2e8f0;
  z-index: 3;
  pointer-events: none;
}

.data-table-scroll {
  background: #ffffff;
}

.data-table-scroll-wrap {
  position: relative;
  border-top: 1px solid #e2e8f0;
  /* Keep pagination visible on zoom by shrinking table body with viewport. */
  height: clamp(185px, calc(100dvh - 400px), 450px);
}

.data-table-scroll {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scrollbar-gutter: stable;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.data-table-scroll::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

.data-table-body {
  width: 100%;
  margin-left: 0;
}

.project-info-cell {
  display: grid;
  gap: 8px;
}

.project-info-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-info-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border-radius: 999px;
  border: 1px solid #bbf7d0;
  background: #ecfdf3;
  padding: 2px 8px;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 600;
  color: #166534;
  white-space: nowrap;
}

.project-info-chip.is-filterable {
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.project-info-chip.is-filterable:hover {
  background: #dcfce7;
  border-color: #86efac;
  color: #14532d;
}

.project-info-chip.is-filterable:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.45);
}

.project-info-chip.is-filterable.is-active {
  background: #10b981;
  border-color: #6ee7b7;
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.project-info-chip.is-filterable.is-active:hover {
  background: #059669;
  border-color: #34d399;
  color: #ffffff;
}

.project-info-chip.is-filterable.is-active:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 0 0 2px rgba(16, 185, 129, 0.55);
}

.project-info-chip.is-filterable:focus {
  outline: none;
}

.project-info-name {
  font-size: 12px;
  line-height: 1.35;
  font-weight: 500;
  color: #334155;
  margin-left: 4px;
  overflow-wrap: anywhere;
}

.project-info-value {
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  color: #64748b;
  margin-left: 0;
  white-space: nowrap;
  display: block;
  text-align: right;
}

.project-name-align {
  margin-top: 33px;
}

.project-value-align {
  margin-top: 43px;
}

.data-scrollbar {
  position: absolute;
  top: 10px;
  right: 4px;
  bottom: 10px;
  width: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.55), rgba(226, 232, 240, 0.42));
  box-shadow: inset 0 0 0 1px rgba(203, 213, 225, 0.55);
  backdrop-filter: blur(8px) saturate(1.08);
  -webkit-backdrop-filter: blur(8px) saturate(1.08);
}

.data-scrollbar-thumb {
  position: absolute;
  left: 1px;
  right: 1px;
  top: 0;
  min-height: 38px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.9), rgba(16, 185, 129, 0.92));
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.3), inset 0 0 0 1px rgba(240, 253, 250, 0.7);
  transition: filter 180ms ease, transform 180ms ease;
  cursor: grab;
}

.data-scrollbar-thumb:hover {
  filter: brightness(1.07) saturate(1.08);
}

.data-scrollbar-thumb:active {
  cursor: grabbing;
  filter: brightness(1.04);
}

.data-scrollbar.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.data-stepper-body {
  padding-left: 0;
  padding-right: 10px;
  transform: translateX(12px);
}

.data-stepper-head {
  padding-right: 0;
  margin-right: 0;
  transform: translateX(0);
}

.data-stepper-head .progress-step-node {
  justify-content: center !important;
  text-align: center !important;
  padding-left: 0 !important;
}

@media (max-width: 1279px) {
  :root {
    --progress-step-node-width: 46px;
    --progress-step-gap-width: 22px;
    --progress-step-connector-width: 20px;
    --progress-step-connector-top: 12px;
  }
}

@media (max-width: 1180px) and (min-width: 1024px) {
  :root {
    --progress-step-node-width: 42px;
    --progress-step-gap-width: 14px;
    --progress-step-connector-width: 16px;
  }

  .data-stepper-body {
    transform: translateX(6px);
  }
}

@media (max-width: 1023px) {
  :root {
    --progress-step-node-width: 40px;
    --progress-step-gap-width: 16px;
    --progress-step-connector-width: 14px;
    --progress-step-connector-top: 12px;
  }

  .data-table-scroll-wrap {
    height: 360px;
  }

  .data-table-scroll {
    padding-right: 0;
    -ms-overflow-style: auto;
    scrollbar-width: thin;
  }

  .data-table-scroll::-webkit-scrollbar {
    width: 8px !important;
    height: 8px !important;
    display: block !important;
  }

  .data-scrollbar {
    display: none;
  }
}

@media (max-width: 767px) {
  .data-stepper-body {
    padding-right: 6px;
    transform: translateX(6px);
  }

  .data-stepper-head {
    padding-right: 0;
    margin-right: 0;
    transform: translateX(0);
  }

  .data-table-scroll-wrap {
    height: 320px;
  }

  .data-table-th {
    font-size: 10px;
  }
}

.stage-stepper-grid {
  display: grid;
  gap: 12px;
}

:root {
  --stage-circle-size: 94px;
  --stage-circle-font-size: 22px;
  --stage-circle-size-approval: 94px;
  --stage-circle-font-size-approval: 32px;
}

@media (max-width: 1600px) {
  :root {
    --stage-circle-size: 90px;
    --stage-circle-font-size: 21px;
    --stage-circle-size-approval: 90px;
    --stage-circle-font-size-approval: 31px;
  }
}

.stage-stepper-scroll {
  width: 100%;
  overflow: visible;
  padding: 10px 6px 4px;
}

.stage-stepper-scroll::-webkit-scrollbar {
  height: 6px;
}

.stage-stepper-scroll::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.45);
  border-radius: 999px;
}

.stage-stepper-primary {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
  position: relative;
  min-height: 136px;
  width: 100%;
  min-width: 0;
}

/* Continuous connector line for horizontal desktop flow */
.stage-stepper-primary::before {
  content: "";
  position: absolute;
  left: calc(100% / 16);
  right: calc(100% / 16);
  top: calc(4px + (var(--stage-circle-size) / 2));
  height: 4px;
  background: linear-gradient(90deg, #cbd5e1 0%, #a7f3d0 50%, #cbd5e1 100%);
  background-size: 220% 100%;
  border-radius: 999px;
  z-index: 0;
  animation: stageLineFlow 3.4s linear infinite;
}

.stage-step-block {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.stage-node-item {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 12px;
  padding: 4px 4px 6px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: visible;
}

.stage-node-item.is-active:not(.is-approval-focus) .stage-node-circle {
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.22), 0 12px 24px rgba(16, 185, 129, 0.28);
  transform: none;
}

.stage-node-item.is-approval-focus .stage-node-circle {
  width: var(--stage-circle-size-approval);
  height: var(--stage-circle-size-approval);
  font-size: var(--stage-circle-font-size-approval);
  box-shadow: 0 14px 28px rgba(16, 185, 129, 0.32);
  transform: scale(1);
}

.stage-node-item.is-top-stage .stage-node-circle {
  box-shadow: 0 16px 34px rgba(16, 185, 129, 0.34);
  transform: scale(1.1);
}

.stage-node-item.is-approval-focus.is-top-stage .stage-node-circle {
  box-shadow: 0 16px 34px rgba(16, 185, 129, 0.36);
  transform: scale(1.14);
  animation: stageTopPulse 2.8s ease-in-out infinite;
}

.stage-node-item.is-approval-focus.is-top-stage.is-clickable:hover .stage-node-circle {
  animation: none;
  transform: scale(1.24);
}

.stage-node-item.is-approval-focus.is-clickable:hover .stage-node-circle {
  transform: scale(1.14);
}

.stage-node-item.is-approval-focus .stage-node-title {
  font-weight: 700;
}

.stage-node-item.is-approval-focus.is-clickable::after {
  content: "";
  position: absolute;
  width: 108px;
  height: 108px;
  top: -5px;
  left: 50%;
  border-radius: 999px;
  border-style: dashed;
  border-width: 2px;
  border-color: rgba(74, 222, 128, 0.55);
  opacity: 0;
  transform: translateX(-50%) scale(0.94);
  transition: opacity 320ms ease, transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 0;
}

.stage-node-item.is-clickable {
  cursor: pointer;
}

.stage-node-item.is-clickable:focus,
.stage-node-item.is-clickable:focus-visible {
  outline: none;
  box-shadow: none;
}

.stage-node-item.is-clickable:not(.is-approval-focus):focus-visible .stage-node-circle {
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22), 0 14px 28px rgba(16, 185, 129, 0.26);
}

.stage-node-item.is-clickable:not(.is-approval-focus):hover .stage-node-circle {
  border-color: rgba(22, 163, 74, 0.42) !important;
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.18), 0 14px 28px rgba(16, 185, 129, 0.32);
  transform: scale(1.1);
}

.stage-node-item.is-clickable:not(.is-approval-focus):hover .stage-node-title {
  color: #166534;
}

.stage-node-item.is-clickable:not(.is-approval-focus):hover .stage-node-note {
  color: #166534;
}

.stage-node-item.is-clickable:not(.is-approval-focus)::after {
  content: none;
  position: absolute;
  width: 108px;
  height: 108px;
  border-radius: 999px;
  top: -5px;
  left: 50%;
  transform: translateX(-50%) scale(0.94);
  border: 1px dashed rgba(22, 163, 74, 0.3);
  opacity: 0;
  transition: opacity 320ms ease, transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 0;
}

.stage-node-item.is-clickable:not(.is-approval-focus):hover::after {
  opacity: 0;
  transform: translateX(-50%) scale(1);
  animation: none;
}

.stage-node-item.is-approval-focus.is-clickable:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1.25);
  animation: stageDashPulse 2.6s ease-in-out infinite, stageDashSpinFocus 9s linear infinite;
}

.stage-node-item.is-clickable:hover .stage-node-circle {
  box-shadow: 0 16px 34px rgba(16, 185, 129, 0.36);
  transform: scale(1.1);
}

.stage-node-item.is-clickable:hover .stage-node-title {
  color: #166534;
}

.stage-node-item.is-clickable:hover .stage-node-note {
  color: #166534;
}

.stage-node-circle {
  width: var(--stage-circle-size);
  height: var(--stage-circle-size);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(34, 197, 94, 0.2);
  background: #f8fafc;
  font-size: var(--stage-circle-font-size);
  line-height: 1;
  font-weight: 700;
  color: #0b3d20;
  transition: background-color 260ms ease, border-color 260ms ease, color 260ms ease, box-shadow 420ms ease,
    transform 460ms cubic-bezier(0.16, 1, 0.3, 1), filter 300ms ease;
}

.stage-node-value {
  display: inline-block;
  line-height: 1;
  transform: translateY(-1px);
  font-variant-numeric: tabular-nums;
}

.stage-node-percent-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  line-height: 1;
  font-weight: 700;
  color: #0b3d20;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(220, 252, 231, 0.78));
  border: 1px solid rgba(34, 197, 94, 0.35);
  backdrop-filter: blur(4px) saturate(1.08);
  -webkit-backdrop-filter: blur(4px) saturate(1.08);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  z-index: 3;
  opacity: 0;
  transform: translateY(2px) scale(0.92);
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.stage-node-item.is-clickable:hover .stage-node-percent-badge,
.stage-node-item.is-clickable:focus-visible .stage-node-percent-badge,
.stage-node-item.is-clickable:focus-within .stage-node-percent-badge {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.stage-node-meta {
  margin-top: 0;
  min-height: 0;
  width: 100%;
  padding-top: 30px;
  display: grid;
  grid-template-rows: 14px auto auto;
  align-items: start;
  justify-content: start;
  gap: 6px;
  text-align: center;
}

.stage-node-index {
  margin-top: 0;
  font-size: 10px;
  line-height: 1;
  color: #64748b;
  font-weight: 600;
  letter-spacing: 0.02em;
  min-height: 14px;
}

.stage-node-title {
  margin-top: 0;
  font-size: 11px;
  line-height: 1.2;
  color: #334155;
  font-weight: 600;
  min-height: 0;
  align-self: start;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stage-node-title.is-full {
  display: block;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
}

.stage-node-title.is-single-row {
  display: block;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
  font-size: 11px;
  line-height: 1.2;
}

.stage-node-title.is-two-line {
  display: block;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
  line-height: 1.2;
}

.stage-node-note {
  margin-top: 0;
  font-size: 10px;
  line-height: 1.2;
  color: #3f7f5c;
  min-height: 0;
}

@keyframes stageDashSpin {
  0% {
    transform: translateX(-50%) rotate(0deg) scale(1.25);
  }
  100% {
    transform: translateX(-50%) rotate(360deg) scale(1.25);
  }
}

@keyframes stageDashSpinFocus {
  0% {
    transform: translateX(-50%) rotate(0deg) scale(1.25);
  }
  100% {
    transform: translateX(-50%) rotate(360deg) scale(1.25);
  }
}

@keyframes stageDashPulse {
  0%,
  100% {
    filter: drop-shadow(0 0 0 rgba(74, 222, 128, 0));
  }
  50% {
    filter: drop-shadow(0 0 8px rgba(74, 222, 128, 0.55));
  }
}

@keyframes stageTopPulse {
  0%,
  100% {
    transform: scale(1.14);
    filter: drop-shadow(0 0 0 rgba(74, 222, 128, 0));
  }
  50% {
    transform: scale(1.17);
    filter: drop-shadow(0 0 8px rgba(74, 222, 128, 0.45));
  }
}

.stage-node-note.is-empty {
  display: none;
}

@keyframes stageLineFlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 220% 50%;
  }
}

.stage-step-children {
  margin-top: 2px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.approval-detail-panel {
  margin-top: 2px;
  border: 1px solid #dbe6f1;
  border-radius: 14px;
  background: #f8fafc;
  padding: 12px;
}

.approval-modal-stepper {
  display: grid;
  gap: 12px;
}

.approval-modal-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.approval-modal-row::before {
  content: "";
  position: absolute;
  left: calc(100% / 14);
  right: calc(100% / 14);
  top: 30px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d1fae5 0%, #86efac 50%, #d1fae5 100%);
  background-size: 220% 100%;
  animation: stageLineFlow 3.2s linear infinite;
}

.approval-modal-node {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 108px;
}

.approval-modal-circle {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: #0b3d20;
  border: 1px solid rgba(34, 197, 94, 0.2);
  background: #ecfdf3;
  box-shadow: 0 8px 16px rgba(16, 185, 129, 0.18);
}

.approval-modal-meta {
  width: 100%;
  margin-top: 20px;
  display: grid;
  grid-template-rows: 14px 28px 14px;
  gap: 3px;
  align-items: start;
}

.approval-modal-step {
  font-size: 10px;
  line-height: 1;
  color: #64748b;
  font-weight: 600;
}

.approval-modal-label {
  font-size: 12px;
  line-height: 1.2;
  color: #334155;
  font-weight: 600;
}

.approval-modal-pct {
  font-size: 10px;
  line-height: 1;
  color: #166534;
  font-weight: 600;
}

.approval-modal-pct.is-empty {
  visibility: hidden;
}

.approval-modal-step.is-optional,
.approval-modal-label.is-optional {
  font-style: italic;
}

.approval-modal-note {
  margin-top: 8px;
  margin-left: auto;
  width: fit-content;
  text-align: right;
  font-size: 10px;
  line-height: 1.25;
  font-weight: 400;
  color: #be185d;
  font-style: italic;
  border: 1px solid #f9a8d4;
  background: #fdf2f8;
  border-radius: 999px;
  padding: 4px 10px;
}

.legend-line-sample {
  width: 20px;
  height: 0;
  border-top-width: 3px;
  border-top-style: solid;
  border-top-color: currentColor;
  border-radius: 999px;
  display: inline-block;
}

.legend-line-sample.is-dashed {
  border-top-style: dashed;
}

.legend-line-sample.is-dots {
  width: 20px;
  height: 6px;
  border-top: 0;
  background-image: radial-gradient(circle, currentColor 2px, transparent 2.6px);
  background-size: 8px 6px;
  background-repeat: repeat-x;
  background-position: center;
}

@media (max-width: 1024px) {
  .approval-modal-card {
    max-height: min(84vh, 760px);
    overflow: auto;
  }

  .approval-modal-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .approval-modal-row::before {
    display: none;
  }
}

.approval-detail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px dashed #bbf7d0;
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.approval-detail-title {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.approval-detail-total {
  font-size: 12px;
  font-weight: 600;
  color: #166534;
}

.stage-step-child-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid #d5e8dd;
}

.stage-step-child-label {
  font-size: 11px;
  color: #335a45;
  line-height: 1.2;
}

.stage-step-child-meta {
  font-size: 11px;
  font-weight: 700;
  color: #166534;
  white-space: nowrap;
}

.stage-step-child-meta small {
  font-size: 10px;
  font-weight: 600;
  color: #3f7f5c;
}

@media (max-width: 1024px) {
  :root {
    --stage-circle-size: 86px;
    --stage-circle-font-size: 21px;
    --stage-circle-size-approval: 86px;
    --stage-circle-font-size-approval: 30px;
  }

  .stage-stepper-primary {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 10px;
  }

  .stage-step-block {
    padding-right: 0;
  }

  .stage-step-children {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stage-stepper-primary::before,
  .stage-node-circle {
    animation: none !important;
  }
}

@media (max-width: 640px) {
  .stage-stepper-primary {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  :root {
    --stage-circle-size: 62px;
    --stage-circle-font-size: 20px;
    --stage-circle-size-approval: 62px;
    --stage-circle-font-size-approval: 24px;
  }

  .stage-node-circle {
    width: var(--stage-circle-size);
    height: var(--stage-circle-size);
    font-size: var(--stage-circle-font-size);
  }

  .stage-step-children {
    grid-template-columns: 1fr;
  }
}

/* Dark theme */
html.theme-dark body {
  color: #d8e3f1;
  background-color: #070f1d;
  background-image: radial-gradient(circle at var(--cursor-x) var(--cursor-y), rgba(34, 197, 94, 0.12), transparent 30%);
}

html.theme-dark .bg-slate-100 {
  background-color: #070f1d !important;
}

html.theme-dark .bg-white,
html.theme-dark .bg-white\/80,
html.theme-dark .bg-white\/85,
html.theme-dark .bg-slate-50 {
  background-color: #0d1628 !important;
}

html.theme-dark .border-slate-200,
html.theme-dark .border-slate-200\/70,
html.theme-dark .border-slate-100 {
  border-color: #233047 !important;
}

html.theme-dark .text-slate-900 {
  color: #f1f5f9 !important;
}

html.theme-dark .text-slate-800,
html.theme-dark .text-slate-700,
html.theme-dark .text-slate-600 {
  color: #d4deec !important;
}

html.theme-dark .text-slate-500,
html.theme-dark .text-slate-400 {
  color: #94a3b8 !important;
}

html.theme-dark input,
html.theme-dark textarea,
html.theme-dark #quickFilterBtn,
html.theme-dark #analyticsViewBtn,
html.theme-dark #businessOwnerFilterBtn,
html.theme-dark #departmentFilterBtn,
html.theme-dark #themeToggle {
  background-color: #101b31 !important;
  color: #dde7f4 !important;
  border-color: #2a3a56 !important;
}

html.theme-dark input::placeholder,
html.theme-dark textarea::placeholder {
  color: #8fa0b5 !important;
}

html.theme-dark .shadow-card {
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.48);
}

html.theme-dark .shadow-card:hover {
  box-shadow: 0 18px 36px rgba(2, 6, 23, 0.62);
}

html.theme-dark tbody tr:nth-child(even) {
  background: #0f1b31;
}

html.theme-dark tbody tr + tr td {
  border-top: 1px solid #22324a;
}

html.theme-dark tbody tr:hover {
  background: #123727;
}

html.theme-dark .sidebar-item {
  background: #0f1a2f;
  border-color: #24334b;
  color: #9fb0c6;
}

html.theme-dark .sidebar-item:hover {
  background: #12402b;
  border-color: #228f52;
  color: #b4f6cb;
}

html.theme-dark .sidebar-item-active {
  background: linear-gradient(135deg, #12402b 0%, #165c39 100%);
  border-color: #2fb36a;
}

html.theme-dark .sidebar-tooltip {
  border-color: #2a3a50;
  background: rgba(10, 18, 34, 0.96);
  color: #d0dced;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.55);
}

html.theme-dark #quickFilterMenu,
html.theme-dark #analyticsViewMenu,
html.theme-dark #businessOwnerFilterMenu,
html.theme-dark #departmentFilterMenu {
  background: #0f1a2f !important;
  border-color: #273852 !important;
}

html.theme-dark #quickFilterMenu button:hover,
html.theme-dark #analyticsViewMenu button:hover,
html.theme-dark #businessOwnerFilterMenu button:hover,
html.theme-dark #departmentFilterMenu button:hover {
  background: #14233d !important;
}

html.theme-dark .kpi-card .bg-brand-50,
html.theme-dark #overviewCard .bg-brand-50,
html.theme-dark #overviewCard .bg-slate-100,
html.theme-dark #criticalityCard .bg-slate-100,
html.theme-dark #dataOwnerCard .bg-slate-100,
html.theme-dark #implementationCard .bg-slate-100,
html.theme-dark #maturityCard .bg-slate-100,
html.theme-dark #statusCard .bg-slate-100 {
  background-color: #123727 !important;
  color: #bbf7d0 !important;
  border-color: #1f8a4d !important;
}

html.theme-dark #summarySection .kpi-card.bg-white,
html.theme-dark #summarySection .kpi-card .bg-white,
html.theme-dark #summarySection .kpi-card .bg-slate-50 {
  background-color: #0f1a2f !important;
  border-color: #2a3d59 !important;
  color: #d8e6f7 !important;
}

html.theme-dark #summarySection .kpi-card .bg-emerald-50 {
  background-color: #173a2a !important;
  border-color: #1f8a4d !important;
}

html.theme-dark #summarySection .kpi-card .text-slate-900,
html.theme-dark #summarySection .kpi-card .text-slate-800 {
  color: #ecf3ff !important;
}

html.theme-dark #summarySection .kpi-card .text-slate-500 {
  color: #9fb0c6 !important;
}

html.theme-dark #summarySection .kpi-card .text-emerald-700 {
  color: #86efac !important;
}

html.theme-dark .kpi-value {
  color: #22c55e;
  -webkit-text-fill-color: #22c55e;
}

html.theme-dark #snapshotCard .bg-emerald-50 {
  background-color: #173a2a !important;
  border-color: #1f8a4d !important;
}

html.theme-dark #snapshotCard .bg-green-50 {
  background-color: #1a3b2c !important;
  border-color: #23784a !important;
}

html.theme-dark #snapshotCard .text-emerald-700,
html.theme-dark #snapshotCard .text-green-700 {
  color: #bbf7d0 !important;
}

html.theme-dark #snapshotCard .bg-slate-50,
html.theme-dark #snapshotCard .text-slate-700 {
  background-color: #101b31 !important;
  color: #d5e1ef !important;
}

html.theme-dark #quickFilterReset {
  background-color: #3a1a1f !important;
  border-color: #7f1d1d !important;
  color: #fecaca !important;
}

html.theme-dark #askAiPanel article,
html.theme-dark #askAiForm,
html.theme-dark #askAiInput {
  background-color: #0d1628 !important;
}

html.theme-dark #askAiFab {
  border-color: rgba(52, 211, 153, 0.5);
  background: linear-gradient(120deg, #127a47 0%, #16a34a 35%, #0ea5a4 70%, #22c55e 100%);
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.5);
}

html.theme-dark .ask-ai-message code {
  border-color: rgba(71, 85, 105, 0.7);
  background: rgba(15, 23, 42, 0.65);
}

/* Theme tokens and semantic runtime classes */
html.theme-dark {
  --surface-0: #0d1628;
  --surface-1: #101d31;
  --surface-2: #123326;
  --border-1: #25364e;
  --border-2: #2f4a65;
  --text-1: #e7effa;
  --text-2: #c7d6e8;
  --text-3: #9fb0c6;
  --accent-1: #34d399;
  --accent-2: #22c55e;
  --accent-3: #15803d;
  --hover-surface: #13372a;
  --active-surface: #145838;
  --focus-ring: rgba(52, 211, 153, 0.3);
  --tooltip-bg: rgba(10, 22, 34, 0.98);
  --tooltip-border: rgba(71, 85, 105, 0.82);
  --tooltip-text: #f1f5f9;
  --tooltip-muted: #c4d2e4;
  --tooltip-shadow: 0 12px 28px rgba(2, 6, 23, 0.62);
  --chart-grid: rgba(148, 163, 184, 0.22);
  --chart-axis: rgba(148, 163, 184, 0.55);
}

.ui-card {
  background: var(--surface-0);
  border-color: var(--border-1);
}

.ui-text-strong {
  color: var(--text-1);
}

.ui-text-body {
  color: var(--text-2);
}

.ui-text-muted {
  color: var(--text-3);
}

.ui-btn-page {
  background: var(--surface-0);
  border-color: var(--border-1);
  color: var(--text-2);
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.ui-btn-page:hover {
  border-color: var(--accent-1);
  background: var(--hover-surface);
  color: var(--accent-3);
}

.ui-btn-page.ui-btn-page-active {
  border-color: var(--accent-1);
  background: var(--active-surface);
  color: var(--accent-3);
}

.ui-dropdown-option {
  color: var(--text-2);
}

.ui-dropdown-option:hover {
  background: var(--hover-surface);
  color: var(--accent-3);
}

.ui-btn-soft {
  background: var(--active-surface);
  border-color: var(--accent-1);
  color: var(--accent-3);
}

.ui-skeleton-line {
  background: var(--surface-1);
}

.ask-ai-bubble-assistant {
  background: var(--surface-1);
  color: var(--text-2);
}

.ask-ai-time {
  color: var(--text-3);
}

.ext-tooltip {
  min-width: 132px;
  border-radius: 14px;
  border: 1px solid var(--tooltip-border);
  background: var(--tooltip-bg);
  box-shadow: var(--tooltip-shadow);
  padding: 10px 12px;
}

.ext-tooltip-monthly {
  min-width: 132px;
}

.ext-tooltip-treemap {
  min-width: 170px;
}

.ext-tooltip-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--tooltip-text);
  margin-bottom: 6px;
}

.ext-tooltip-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ext-tooltip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  white-space: nowrap;
}

.ext-tooltip-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--tooltip-muted);
  font-size: 12px;
  font-weight: 500;
}

.ext-tooltip-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  display: inline-block;
}

.ext-tooltip-value {
  color: var(--tooltip-text);
  font-size: 12px;
  font-weight: 700;
}

html.theme-dark .project-info-chip {
  background: #122236;
  border-color: #2a3f59;
  color: #c8d8ec;
}

html.theme-dark .project-info-chip.is-filterable:hover {
  background: #163e2e;
  border-color: #2ca461;
  color: #c9f6dc;
}

html.theme-dark .project-info-chip.is-active {
  background: #165737;
  border-color: #2ec66c;
  color: #e8fff2;
}

html.theme-dark .project-info-name,
html.theme-dark .project-info-value {
  color: #e8effb;
}

html.theme-dark .stage-stepper-primary::before {
  background: linear-gradient(90deg, #2d465d 0%, #4b8f6b 50%, #2d465d 100%);
}

html.theme-dark .stage-node-index {
  color: #9fb0c6;
}

html.theme-dark .stage-node-title {
  color: #dce8f8;
}

html.theme-dark .stage-node-note {
  color: #89caa8;
}

html.theme-dark .data-table-head-wrap,
html.theme-dark .data-table-th,
html.theme-dark .data-table-scroll,
html.theme-dark .data-table-body {
  background: #0f1a2f;
}

html.theme-dark .data-table-head-wrap::after {
  background: #2a3a55;
}

html.theme-dark .data-scrollbar {
  background: rgba(148, 163, 184, 0.14);
}

html.theme-dark .data-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(52, 211, 153, 0.95), rgba(22, 163, 74, 0.95));
}

html.theme-dark .approval-modal-card {
  background: #0f1a2f;
  border-color: #2a3f58;
}

html.theme-dark .approval-modal-step,
html.theme-dark .approval-modal-note,
html.theme-dark .approval-detail-title {
  color: #9fb0c6;
}

html.theme-dark .approval-modal-label,
html.theme-dark .approval-detail-total {
  color: #d9e7f7;
}

html.theme-dark .approval-modal-pct {
  color: #86efac;
}

html.theme-dark #snapshotGlossaryModal article {
  background: #0f1a2f;
  border-color: #2a3f58;
}

