:root {
  --vave-navy: #17342b;
  --vave-mint: #dff2e8;
  --vave-gold: #c68a24;
  --vave-gold-soft: #fff3dc;
  --vave-red-soft: #fce8e6;
  --vave-blue-soft: #e8f1fb;
}

.language-switch {
  flex: 0 0 auto;
  display: inline-flex;
  height: 28px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f4f7f5;
}

.language-switch button {
  min-width: 34px;
  height: 22px;
  padding: 0 7px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.language-switch button.active {
  background: #fff;
  color: var(--green-2);
  box-shadow: 0 1px 4px rgba(18,37,28,.12);
}

.vave-admin-topbar .language-switch {
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
}

.vave-admin-topbar .language-switch button { color: #c8dad2; }
.vave-admin-topbar .language-switch button.active { background: #fff; color: #18372d; }

.vave-body {
  background: #f3f6f4;
}

.vave-body .global-bar {
  grid-template-columns: 164px minmax(560px, 1fr) auto;
}

.vave-body .module-item {
  min-width: auto;
  padding: 0 11px;
  font-size: 12px;
}

.vave-body .module-item.active {
  background: transparent;
}

.vave-body .content {
  padding: 20px 22px 32px;
}

.vave-page-head {
  align-items: center;
  margin-bottom: 18px;
}

.vave-page-head h1 {
  font-size: 22px;
  letter-spacing: 0;
}

.vave-page-head .subtle {
  max-width: 760px;
}

.tenant-dashboard {
  width: 100%;
  max-width: none;
  margin: 0;
}

.tenant-scope-note {
  min-height: 54px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 7px;
  background: #eaf5ef;
  color: #335a4b;
}

.tenant-scope-note p { margin-top: 3px; color: #617a70; font-size: 11px; }
.tenant-scope-note > span:last-child { color: #617a70; font-size: 11px; }

.tenant-scope-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #fff;
  color: var(--green-2);
  font-weight: 850;
}

.dimension-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 46px;
  margin-bottom: 12px;
  padding: 0 8px;
  border-radius: 7px;
  background: #fff;
}

.dimension-tabs button {
  height: 46px;
  padding: 0 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 780;
}

.dimension-tabs button.active { border-color: var(--green); color: var(--green-2); }
.dimension-tabs > span { margin-left: auto; padding-right: 8px; color: var(--muted); font-size: 11px; }

.overview-control-bar {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 7px;
  background: #fff;
}

.overview-mode-switch { display: flex; align-items: center; gap: 4px; }
.overview-mode-switch > span { margin-right: 5px; color: var(--muted); font-size: 11px; font-weight: 760; }
.overview-mode-switch button {
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #53635b;
  font-weight: 750;
}
.overview-mode-switch button.active { background: #dff2e8; color: #0c6842; }
.overview-mode-note { color: var(--muted); font-size: 11px; }

.dimension-tabs .new-result-tab { display: inline-flex; align-items: center; gap: 6px; }
.dimension-tabs .new-result-tab b {
  min-width: 20px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  background: #edf2ef;
  color: #4f6058;
  font-size: 10px;
}
.dimension-tabs .new-result-tab.active b { background: #dff2e8; color: #0c6842; }

.tenant-result-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr);
  gap: 12px;
}

.assembly-summary-list { display: grid; padding: 0 14px 14px; }

.assembly-filter-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 0 14px 8px;
  scrollbar-width: thin;
}

.assembly-filter-tabs button {
  flex: 0 0 auto;
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 5px;
  background: #f1f5f3;
  color: #57675f;
  font-size: 11px;
  font-weight: 720;
}
.assembly-filter-tabs button.active { background: #dff2e8; color: #0b6841; }

.assembly-summary-row {
  min-height: 50px;
  display: grid;
  grid-template-columns: 110px minmax(160px, 1fr) 100px 132px;
  align-items: center;
  gap: 12px;
  padding: 0;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  border-top: 1px solid #edf1ef;
}

.assembly-summary-row:first-child { border-top: 0; }
.assembly-summary-row.selected { margin-inline: -8px; padding-inline: 8px; border-radius: 6px; background: #edf7f2; }
.assembly-summary-row:hover strong { color: var(--green-2); }
.assembly-summary-row b { text-align: right; font-size: 14px; font-variant-numeric: tabular-nums; }
.assembly-summary-row span { color: var(--muted); font-size: 11px; text-align: right; }

.assembly-track { height: 9px; overflow: hidden; border-radius: 999px; background: #e8efeb; }
.assembly-track i { display: block; height: 100%; border-radius: inherit; background: #55a983; }

.result-category-list { display: grid; gap: 16px; padding: 6px 16px 20px; }
.result-category-list div { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding-bottom: 9px; }
.result-category-list span { color: #43524b; }
.result-category-list strong { font-variant-numeric: tabular-nums; }
.result-category-list i { position: absolute; bottom: 0; left: 0; height: 4px; border-radius: 99px; background: #78add7; }

.system-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 0 14px 12px;
}
.system-stat-grid div { min-height: 58px; padding: 9px 10px; border-radius: 6px; background: #f5f8f6; }
.system-stat-grid span { display: block; color: var(--muted); font-size: 10px; }
.system-stat-grid strong { display: block; margin-top: 5px; color: #173e2f; font-size: 15px; font-variant-numeric: tabular-nums; }
.system-stat-divider { display: flex; align-items: center; gap: 8px; padding: 1px 14px 8px; color: var(--muted); font-size: 10px; font-weight: 760; }
.system-stat-divider::after { content: ""; height: 1px; flex: 1; background: #e8eeeb; }

.vehicle-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 14px 14px;
}

.vehicle-result-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border-radius: 7px;
  background: #f5f8f6;
}
.vehicle-result-card:hover { background: #ebf5f0; }
.vehicle-result-card strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vehicle-result-card span { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.vehicle-result-img { min-height: 92px; border-radius: 5px; background: #f6fbff url("crops/vehicle-su7.png") center / contain no-repeat; }
.vehicle-result-card dl { display: grid; grid-template-columns: 1fr auto; gap: 5px 8px; margin: 10px 0 0; font-size: 11px; }
.vehicle-result-card dt { color: var(--muted); }
.vehicle-result-card dd { margin: 0; color: #183b2e; font-weight: 800; font-variant-numeric: tabular-nums; }

.year-result-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 0 14px 14px; }
.year-result-grid div { min-height: 100px; padding: 14px; border-radius: 7px; background: #f5f8f6; }
.year-result-grid span { color: var(--muted); }
.year-result-grid strong { display: block; margin-top: 12px; font-size: 20px; }
.year-result-grid b { display: block; margin-top: 8px; color: var(--green-2); font-size: 13px; }
.year-result-grid em { display: block; margin-top: 5px; color: #47715f; font-size: 11px; font-style: normal; }

.new-result-table { table-layout: fixed; }
.new-result-table th:nth-child(1) { width: 105px; }
.new-result-table th:nth-child(2) { width: 185px; }
.new-result-table th:nth-child(3) { width: 180px; }
.new-result-table th:nth-child(5) { width: 115px; }
.new-result-table th:nth-child(6),
.new-result-table th:nth-child(7) { width: 100px; }
.new-result-empty { padding: 42px 20px; color: var(--muted); text-align: center; }

.analysis-filter-band {
  display: grid;
  grid-template-columns: repeat(5, minmax(135px, 1fr)) auto;
  align-items: end;
  gap: 8px;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 7px;
  background: #fff;
}

.analysis-filter-band label { display: grid; gap: 5px; }
.analysis-filter-band label span { color: var(--muted); font-size: 10px; font-weight: 760; }
.analysis-filter-band select { width: 100%; height: 34px; min-width: 0; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }

.matrix-legend { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 10px; }
.matrix-legend span { display: flex; align-items: center; gap: 4px; }
.matrix-legend i { width: 13px; height: 13px; border-radius: 3px; }
.matrix-legend .level-1 { background: #eef8f3; }
.matrix-legend .level-2 { background: #cfeadb; }
.matrix-legend .level-3 { background: #8ecbac; }

.result-matrix-wrap { padding: 0 14px 14px; overflow: auto; }
.result-matrix { width: 100%; min-width: 1050px; border-collapse: separate; border-spacing: 3px; table-layout: fixed; }
.result-matrix th { height: 38px; padding: 5px 7px; color: var(--muted); background: #f5f7f6; font-size: 10px; text-align: right; }
.result-matrix th:first-child { width: 190px; text-align: left; }
.result-matrix td { height: 48px; padding: 7px; border-radius: 4px; background: #f7f9f8; text-align: right; font-variant-numeric: tabular-nums; }
.result-matrix td:first-child { text-align: left; background: #fff; }
.result-matrix td:first-child a { color: var(--green-2); font-weight: 780; }
.result-matrix td:first-child span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.result-matrix td.level-1 { background: #eef8f3; color: #315c49; }
.result-matrix td.level-2 { background: #cfeadb; color: #174c35; font-weight: 720; }
.result-matrix td.level-3 { background: #8ecbac; color: #103f2d; font-weight: 800; }
.result-matrix td:last-child { background: #e9f1ed; color: #173e2f; }
.result-matrix tfoot td { height: 42px; background: #193a2e; color: #fff; font-weight: 780; }
.result-matrix tfoot td:first-child { background: #193a2e; color: #fff; }

.analysis-bottom-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr); gap: 12px; margin-top: 12px; }
.assembly-summary-list.compact .assembly-summary-row { grid-template-columns: 100px minmax(120px, 1fr) 90px 48px; min-height: 46px; }

.vave-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--green-2);
  font-size: 12px;
  font-weight: 800;
}

.vave-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.vave-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-2);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.vave-status.review { background: var(--vave-gold-soft); color: #925f0c; }
.vave-status.draft { background: #ecefed; color: #59645f; }
.vave-status.risk { background: var(--vave-red-soft); color: #a4312d; }
.vave-status.done { background: var(--vave-blue-soft); color: #235e9a; }

.vave-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
  border-radius: 8px;
  background: #fff;
}

.vave-metric {
  position: relative;
  min-height: 92px;
  padding: 16px 18px;
}

.vave-metric + .vave-metric::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 0;
  width: 1px;
  background: #e7ece9;
}

.vave-metric > span {
  color: var(--muted);
  font-size: 12px;
}

.vave-metric strong {
  display: block;
  margin-top: 8px;
  color: var(--vave-navy);
  font-size: 24px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.vave-metric small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.vave-metric small.up { color: var(--green-2); }
.vave-metric small.warn { color: #9a670e; }

.vave-band {
  min-width: 0;
  border-radius: 8px;
  background: #fff;
}

.vave-band-head {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
}

.vave-band-head h2 {
  font-size: 15px;
}

.vave-band-head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.vave-phase-board {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: 6px 14px 18px;
}

.vave-phase {
  position: relative;
  min-height: 80px;
  padding: 12px 12px 10px 18px;
  background: #f6f9f7;
}

.vave-phase:first-child { border-radius: 7px 0 0 7px; }
.vave-phase:last-child { border-radius: 0 7px 7px 0; }
.vave-phase + .vave-phase::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  border-top: 40px solid transparent;
  border-bottom: 40px solid transparent;
  border-left: 12px solid #fff;
}
.vave-phase + .vave-phase::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  border-top: 40px solid transparent;
  border-bottom: 40px solid transparent;
  border-left: 12px solid #f6f9f7;
  transform: translateX(-2px);
}

.vave-phase span {
  color: var(--muted);
  font-size: 11px;
}

.vave-phase strong {
  display: block;
  margin-top: 8px;
  font-size: 15px;
}

.vave-phase em {
  display: block;
  margin-top: 6px;
  color: var(--green-2);
  font-size: 12px;
  font-style: normal;
}

.vave-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(300px, .65fr);
  gap: 14px;
  margin-top: 14px;
}

.vave-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.vave-table th,
.vave-table td {
  height: 44px;
  padding: 8px 12px;
  border-top: 1px solid #edf1ef;
  text-align: left;
  vertical-align: middle;
}

.vave-table th {
  height: 36px;
  color: var(--muted);
  background: #f7f9f8;
  font-size: 11px;
  font-weight: 800;
}

.vave-table tbody tr:hover { background: #f8fbf9; }
.vave-table a { color: var(--green-2); font-weight: 780; }
.vave-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.vave-table .muted { color: var(--muted); }

.progress-line {
  min-width: 94px;
  display: grid;
  grid-template-columns: minmax(48px, 1fr) 30px;
  align-items: center;
  gap: 7px;
}

.progress-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e3ebe7;
}

.progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.progress-line span {
  color: var(--muted);
  font-size: 11px;
}

.vave-deadline-list {
  display: grid;
  padding: 2px 16px 14px;
}

.vave-deadline {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  border-top: 1px solid #edf1ef;
}

.deadline-date {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 7px;
  background: #eff5f2;
  color: var(--green-2);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
}

.deadline-date b { font-size: 15px; }
.vave-deadline strong { display: block; font-size: 12px; }
.vave-deadline small { display: block; margin-top: 4px; color: var(--muted); }

.vave-workspace-grid {
  --vave-tree-width: 320px;
  min-height: 0;
  display: grid;
  grid-template-columns: var(--vave-tree-width) 7px minmax(0, 1fr);
}

.vave-tree-panel {
  min-height: calc(100vh - 86px);
  background: #fff;
}

.vave-tree-head {
  padding: 14px 14px 12px;
  background: #f7faf8;
}

.vave-tree-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.vave-tree-head h2 { font-size: 14px; }
.vave-tree-head p { margin-top: 4px; color: var(--muted); font-size: 11px; }

.vave-tree-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
}

.vave-tree-summary div {
  padding: 8px;
  border-radius: 6px;
  background: #fff;
}

.vave-tree-summary span { display: block; color: var(--muted); font-size: 10px; }
.vave-tree-summary strong { display: block; margin-top: 4px; font-size: 14px; }

.vave-tree-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  margin: 8px 12px 0;
  padding: 3px;
  border-radius: 6px;
  background: #edf2ef;
}
.vave-tree-mode-switch button {
  min-width: 0;
  height: 28px;
  overflow: hidden;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #617068;
  font-size: 11px;
  font-weight: 740;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vave-tree-mode-switch button.active { background: #fff; color: #0d6842; box-shadow: 0 1px 3px rgba(25,55,44,.08); }

.vave-tree-search {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  margin: 6px 12px;
  padding: 0 10px;
  border-radius: 6px;
  background: #f0f4f2;
  color: var(--muted);
}

.vave-tree-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

.vave-tree-scroll {
  height: calc(100vh - 303px);
  overflow: auto;
  padding: 4px 8px 30px;
}

.vave-tree-mode-panel[hidden] { display: none; }

.vave-original-branch { min-width: 0; }
.vave-original-branch-title {
  width: 100%;
  min-height: 31px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #35443d;
  text-align: left;
}
.vave-original-branch-title:hover { background: #f2f6f4; }
.vave-original-branch-title > span:nth-child(2) { overflow: hidden; font-size: 11px; font-weight: 760; text-overflow: ellipsis; white-space: nowrap; }
.vave-original-branch-title small { color: var(--muted); font-size: 9px; white-space: nowrap; }
.vave-original-children { margin-left: 12px; }
.vave-original-tree > .vave-original-branch > .vave-original-branch-title { color: #173e2f; }
.vave-original-tree .vave-bom-node-title { padding-left: 8px; }
.vave-original-tree .vave-node-schemes .vave-tree-leaf { padding-left: 24px; }

.vave-tree-group { margin-top: 4px; }

.vave-tree-group-title {
  width: 100%;
  height: 32px;
  display: flex;
  align-items: center;
  gap: 0;
  border-radius: 6px;
  background: transparent;
  color: #2c3934;
}

.vave-tree-group-title:hover { background: #f2f6f4; }
.vave-tree-toggle {
  width: 28px;
  height: 32px;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #526159;
}
.vave-tree-group-select {
  min-width: 0;
  height: 32px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 8px 0 0;
  border: 0;
  background: transparent;
  color: #2c3934;
  text-align: left;
}
.vave-tree-group-select strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.vave-tree-group-select.active { color: #0c6842; }
.vave-tree-toggle:focus-visible,
.vave-tree-group-select:focus-visible,
.vave-bom-node-title:focus-visible { outline: 2px solid #55a983; outline-offset: -2px; }
.vave-tree-group-title .tree-group-summary {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.vave-tree-children[hidden] { display: none; }

.vave-bom-node { margin: 2px 0; }
.vave-bom-node-title {
  width: 100%;
  min-height: 36px;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 27px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #34433c;
  text-align: left;
}
.vave-bom-node-title:hover,
.vave-bom-node-title.active { background: #edf4f0; color: #0d6641; }
.vave-bom-node-title > span:first-child { color: #809087; font-size: 11px; }
.vave-bom-node-title b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.vave-bom-node-title small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.vave-bom-node-title i { color: #8b9892; font-style: normal; }
.vave-node-schemes .vave-tree-leaf { padding-left: 43px; }

.vave-tree-leaf {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 6px 8px 6px 20px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.vave-tree-leaf:hover { background: #f1f7f4; }
.vave-tree-leaf.active { background: #dff2e8; color: #0e6341; }
.vave-tree-leaf b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.vave-tree-leaf small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.vave-tree-leaf em { color: var(--green-2); font-size: 11px; font-style: normal; font-variant-numeric: tabular-nums; }

.tree-state-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.tree-state-dot.review { background: #d99a2b; }
.tree-state-dot.draft { background: #9ba6a1; }
.tree-state-dot.risk { background: #cc4a43; }

.vave-resize-handle {
  position: relative;
  z-index: 4;
  min-height: calc(100vh - 86px);
  background: #e8efeb;
  cursor: col-resize;
}

.vave-resize-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 2px;
  width: 3px;
  height: 40px;
  border-radius: 999px;
  background: #aebfb6;
  transform: translateY(-50%);
}

.vave-workspace-main {
  min-width: 0;
  height: calc(100vh - 86px);
  overflow: auto;
  padding: 18px 20px 36px;
}

.scope-summary-view { display: grid; gap: 12px; }
.scope-summary-head { margin-bottom: 0; }
.scope-metrics { margin-bottom: 0; }
.scope-summary-table th:nth-child(1) { width: 180px; }
.scope-summary-table th:nth-child(2) { width: 170px; }
.scope-summary-table th:nth-child(3),
.scope-summary-table th:nth-child(4),
.scope-summary-table th:nth-child(5) { width: 110px; }
.scope-summary-table td:last-child { color: var(--green-2); font-weight: 740; }
.scope-scheme-link {
  max-width: 100%;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green-2);
  font-weight: 740;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scheme-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.scheme-head h1 {
  margin-top: 5px;
  font-size: 22px;
}

.scheme-id {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.scheme-head-actions { display: flex; align-items: center; gap: 8px; }

.scheme-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 12px;
}

.scheme-metrics .vave-metric {
  min-height: 78px;
  padding: 13px 15px;
}

.scheme-metrics .vave-metric strong { font-size: 19px; }

.vave-tabs-bar {
  position: sticky;
  z-index: 8;
  top: -18px;
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 46px;
  margin-bottom: 12px;
  padding: 0 8px;
  border-radius: 7px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 6px 16px rgba(24,52,43,.04);
}

.vave-tabs-bar button {
  height: 46px;
  padding: 0 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 780;
}

.vave-tabs-bar button.active { border-color: var(--green); color: var(--green-2); }

.vave-tab-panel { display: grid; gap: 12px; }

.scheme-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .7fr);
  gap: 12px;
}

.design-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 12px 12px;
}

.design-pane {
  min-width: 0;
  overflow: hidden;
  border-radius: 7px;
  background: #f4f7f5;
}

.design-image {
  width: 100%;
  aspect-ratio: 770 / 390;
  object-fit: cover;
  display: block;
  background: #edf4fa;
}

.design-pane figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  gap: 8px;
  padding: 8px 10px;
}

.design-pane figcaption span { color: var(--muted); font-size: 11px; }
.design-pane figcaption strong { font-size: 12px; }

.proposal-list {
  display: grid;
  gap: 9px;
  padding: 2px 16px 16px;
}

.proposal-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  line-height: 1.55;
}

.proposal-item b {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--green-soft);
  color: var(--green-2);
  font-size: 11px;
}

.proposal-note {
  margin: 0 16px 14px;
  padding: 10px 12px;
  border-radius: 7px;
  background: var(--vave-gold-soft);
  color: #785014;
  line-height: 1.5;
}

.impact-list { display: grid; padding: 0 16px 14px; }
.impact-row {
  min-height: 42px;
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border-top: 1px solid #edf1ef;
}

.impact-row:first-child { border-top: 0; }
.impact-row span { color: var(--muted); }
.impact-row strong { font-size: 12px; }

.relation {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: var(--green);
}
.relation.tbd { background: #e5ab24; }
.relation.none { background: #cc423b; }

.vave-change-image {
  width: calc(100% - 24px);
  max-height: 350px;
  display: block;
  margin: 0 12px 12px;
  object-fit: contain;
  border-radius: 7px;
  background: #eef5fb;
}

.change-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0 12px 12px;
}

.change-summary div {
  padding: 10px;
  border-radius: 6px;
  background: #f5f8f6;
}
.change-summary span { display: block; color: var(--muted); font-size: 11px; }
.change-summary strong { display: block; margin-top: 5px; }

.cost-layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 12px;
}

.cost-stack { display: grid; gap: 8px; padding: 0 16px 16px; }
.cost-line {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 92px;
  align-items: center;
  gap: 10px;
  min-height: 34px;
}
.cost-line span { color: var(--muted); }
.cost-line b { text-align: right; font-variant-numeric: tabular-nums; }
.cost-bar { height: 9px; overflow: hidden; border-radius: 999px; background: #e8eeeb; }
.cost-bar i { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.cost-bar i.out { background: #d39a37; }

.review-timeline { padding: 0 18px 18px; }
.review-step {
  position: relative;
  display: grid;
  grid-template-columns: 88px 18px minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 64px;
  align-items: start;
}
.review-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 20px;
  bottom: -2px;
  left: 97px;
  width: 2px;
  background: #dbe7e1;
}
.review-step > span { color: var(--muted); font-size: 11px; padding-top: 3px; }
.review-step i { position: relative; z-index: 2; width: 10px; height: 10px; margin-top: 4px; border: 2px solid #fff; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 2px #b9ddca; }
.review-step.pending i { background: #d49a2e; box-shadow: 0 0 0 2px #f1d9aa; }
.review-step strong { display: block; font-size: 12px; }
.review-step p { margin-top: 5px; color: var(--muted); line-height: 1.45; }

.benchmark-filter-bar {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) repeat(4, minmax(125px, .7fr)) auto;
  gap: 8px;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
}

.benchmark-filter-bar input,
.benchmark-filter-bar select {
  width: 100%;
  height: 34px;
  min-width: 0;
  padding: 0 10px;
  border: 1px solid #dce6e1;
  border-radius: 6px;
  background: #fff;
}

.benchmark-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.benchmark-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

.benchmark-card.selected { box-shadow: inset 0 0 0 2px var(--green); }

.benchmark-card img {
  width: 100%;
  aspect-ratio: 515 / 385;
  display: block;
  object-fit: cover;
  background: #f4f7f9;
}

.benchmark-select {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--muted);
  box-shadow: 0 3px 12px rgba(22,38,31,.16);
  font-weight: 900;
}

.benchmark-card.selected .benchmark-select { background: var(--green); color: #fff; }

.benchmark-card-body { padding: 12px; }
.benchmark-card-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.benchmark-card-title strong { font-size: 14px; }
.benchmark-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.benchmark-meta div { padding: 7px; border-radius: 6px; background: #f5f8f6; }
.benchmark-meta span { display: block; color: var(--muted); font-size: 10px; }
.benchmark-meta b { display: block; margin-top: 4px; font-size: 12px; }
.benchmark-card-body p { min-height: 38px; margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.5; }

.benchmark-selection-bar {
  position: sticky;
  z-index: 10;
  bottom: 14px;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(740px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 9px 12px 9px 16px;
  border-radius: 8px;
  background: #17342b;
  color: #fff;
  box-shadow: 0 18px 40px rgba(17,44,34,.2);
}

.benchmark-selection-bar span { color: #c9ddd4; }
.benchmark-selection-bar .btn { border-color: transparent; }

.portfolio-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.portfolio-filter { display: flex; gap: 5px; }
.portfolio-filter button {
  height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
}
.portfolio-filter button.active { background: var(--green); color: #fff; font-weight: 780; }

.portfolio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr);
  gap: 12px;
}

.saving-bars { display: grid; gap: 12px; padding: 2px 16px 18px; }
.saving-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 85px; align-items: center; gap: 10px; }
.saving-row > span { color: var(--muted); }
.saving-row > b { text-align: right; font-variant-numeric: tabular-nums; }
.saving-track { height: 20px; overflow: hidden; border-radius: 4px; background: #edf2ef; }
.saving-track i { height: 100%; display: flex; align-items: center; justify-content: flex-end; padding-right: 7px; border-radius: 4px; background: #50a47f; color: #fff; font-size: 10px; font-style: normal; }
.saving-track i.second { background: #79a8d7; }
.saving-track i.third { background: #d2a356; }

.portfolio-selection {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  background: #edf6f1;
  color: var(--green-2);
}

.portfolio-checkbox {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}

.confidence {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.confidence i { width: 16px; height: 5px; border-radius: 99px; background: #dce4e0; }
.confidence.low i:nth-child(1),
.confidence.mid i:nth-child(-n+2),
.confidence.high i { background: var(--green); }

.vave-empty-note {
  padding: 40px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1360px) {
  .vave-body .global-bar { grid-template-columns: 146px minmax(480px, 1fr) auto; }
  .vave-body .module-item { padding: 0 8px; font-size: 11px; }
  .vave-body .search { width: 170px; }
  .scheme-metrics .vave-metric { padding-inline: 11px; }
  .benchmark-card-body p { min-height: 54px; }
}

@media (max-width: 1450px) {
  .vave-body .global-bar { grid-template-columns: 146px minmax(520px, 1fr) auto; gap: 10px; }
  .vave-body .module-item { padding: 0 6px; font-size: 10px; }
  .vave-body .search { width: 176px; }
  .vave-body .top-tools { gap: 6px; }
}

/* VAVE management console */
.vave-admin-body {
  background: #f1f4f3;
}

.vave-admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 52px minmax(0, 1fr);
}

.vave-admin-topbar {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 0 18px;
  background: #18372d;
  color: #fff;
}

.vave-admin-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 820;
}

.vave-admin-brand span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #fff;
  color: #18372d;
}

.vave-admin-topnav {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100%;
}

.vave-admin-topnav a {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-bottom: 3px solid transparent;
  color: #caddd5;
  font-weight: 720;
}

.vave-admin-topnav a.active {
  border-color: #6bd2a3;
  color: #fff;
  background: rgba(255,255,255,.06);
}

.vave-admin-user {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d8e6e0;
  font-size: 12px;
}

.vave-admin-user b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #2c5a49;
  color: #fff;
}

.vave-admin-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
}

.vave-admin-sidebar {
  min-height: calc(100vh - 52px);
  padding: 14px 10px;
  background: #fff;
}

.admin-side-label {
  padding: 8px 10px 5px;
  color: #8a9691;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-side-link {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  border-radius: 6px;
  color: #495650;
  font-weight: 720;
}

.admin-side-link:hover { background: #f3f7f5; }
.admin-side-link.active { background: #dff2e8; color: #0c6642; font-weight: 820; }
.admin-side-link i { width: 17px; color: #6d7c75; font-style: normal; text-align: center; }
.admin-side-link em {
  min-width: 21px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  margin-left: auto;
  padding: 0 5px;
  border-radius: 999px;
  background: #eef2f0;
  color: #647069;
  font-size: 10px;
  font-style: normal;
}
.admin-side-link.active em { background: #fff; color: #0c6642; }

.vave-admin-main {
  min-width: 0;
  padding: 18px 20px 30px;
  overflow: auto;
}

.admin-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.admin-page-head h1 { margin: 0; font-size: 20px; }
.admin-page-head p { margin-top: 5px; color: var(--muted); }

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

.admin-kpi {
  min-height: 76px;
  padding: 12px 14px;
  border-radius: 7px;
  background: #fff;
}
.admin-kpi span { color: var(--muted); font-size: 11px; }
.admin-kpi strong { display: block; margin-top: 8px; font-size: 21px; }
.admin-kpi small { display: block; margin-top: 5px; color: var(--muted); }

.admin-filter-panel {
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 7px;
  background: #fff;
}

.admin-filter-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(130px, .7fr)) auto;
  gap: 8px;
}

.admin-filter-grid input,
.admin-filter-grid select,
.admin-field input,
.admin-field select,
.admin-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #d8e2dd;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  outline: 0;
}
.admin-filter-grid input,
.admin-filter-grid select,
.admin-field input,
.admin-field select { height: 34px; padding: 0 9px; }
.admin-field textarea { min-height: 88px; padding: 9px; resize: vertical; line-height: 1.5; }
.admin-filter-grid input:focus,
.admin-field input:focus,
.admin-field textarea:focus { border-color: #6fb995; box-shadow: 0 0 0 2px rgba(22,131,86,.08); }

.admin-list-band,
.admin-form-band,
.admin-review-band {
  border-radius: 7px;
  background: #fff;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.admin-table th,
.admin-table td {
  height: 46px;
  padding: 8px 10px;
  border-top: 1px solid #e9eeeb;
  text-align: left;
  vertical-align: middle;
}
.admin-table th { height: 36px; background: #f6f8f7; color: #66736d; font-size: 11px; }
.admin-table tbody tr:hover { background: #f8fbf9; }
.admin-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.admin-table a { color: #0e6b46; font-weight: 780; }
.admin-table small { display: block; margin-top: 3px; color: var(--muted); }

.admin-bulk-bar {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  background: #f3f8f5;
  color: #436056;
}

.admin-pagination {
  display: flex;
  align-items: center;
  gap: 5px;
}
.admin-pagination button { width: 28px; height: 28px; border: 1px solid #dce5e1; border-radius: 5px; background: #fff; }
.admin-pagination button.active { border-color: var(--green); background: var(--green); color: #fff; }

.admin-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 12px;
  border-radius: 7px;
  background: #fff;
}
.admin-step {
  position: relative;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  color: var(--muted);
}
.admin-step + .admin-step::before { content: ""; position: absolute; top: 14px; bottom: 14px; left: 0; width: 1px; background: #e2e9e5; }
.admin-step b { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: #e8eeeb; color: #6f7a75; font-size: 11px; }
.admin-step.active { color: #0f6543; font-weight: 800; }
.admin-step.active b,
.admin-step.done b { background: var(--green); color: #fff; }

.admin-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 12px;
}

.admin-form-section { padding: 0 16px 16px; }
.admin-form-section + .admin-form-section { border-top: 8px solid #f1f4f3; }
.admin-form-section-head { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-form-section-head h2 { font-size: 14px; }
.admin-form-section-head span { color: var(--muted); font-size: 11px; }

.admin-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.admin-form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-field { display: grid; gap: 6px; }
.admin-field.wide { grid-column: 1 / -1; }
.admin-field label { color: #52605a; font-size: 11px; font-weight: 780; }
.admin-field label b { color: #c33c35; }
.admin-field small { color: var(--muted); }

.admin-evidence-upload {
  min-height: 120px;
  display: grid;
  place-items: center;
  padding: 16px;
  border: 1px dashed #b9ccc2;
  border-radius: 7px;
  background: #f8fbf9;
  color: #617069;
  text-align: center;
}
.admin-evidence-upload b { display: block; margin-bottom: 6px; color: #244338; }

.admin-editor-aside { display: grid; align-content: start; gap: 10px; }
.admin-aside-card { padding: 14px; border-radius: 7px; background: #fff; }
.admin-aside-card h3 { font-size: 13px; }
.admin-aside-card p { margin-top: 7px; color: var(--muted); line-height: 1.55; }
.admin-checklist { display: grid; gap: 9px; margin-top: 12px; }
.admin-checklist label { display: flex; align-items: center; gap: 8px; color: #44524c; }
.admin-checklist input { accent-color: var(--green); }
.admin-form-actions { position: sticky; bottom: 0; min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: rgba(255,255,255,.96); box-shadow: 0 -8px 22px rgba(18,38,29,.06); }

.admin-review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 12px;
}
.admin-review-main { display: grid; gap: 12px; }
.admin-review-summary { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 14px; padding: 14px; }
.admin-review-summary img { width: 100%; aspect-ratio: 1.7; object-fit: contain; border-radius: 6px; background: #eef5fb; }
.admin-review-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.admin-review-facts div { padding: 9px; border-radius: 6px; background: #f5f8f6; }
.admin-review-facts span { display: block; color: var(--muted); font-size: 10px; }
.admin-review-facts strong { display: block; margin-top: 5px; font-size: 13px; }

.admin-review-aside { display: grid; align-content: start; gap: 10px; }
.admin-decision-box { padding: 14px; border-radius: 7px; background: #fff; }
.admin-decision-box textarea { width: 100%; min-height: 110px; margin-top: 10px; padding: 9px; border: 1px solid #d8e2dd; border-radius: 6px; resize: vertical; }
.admin-decision-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.admin-decision-actions .btn:last-child { grid-column: 1 / -1; }

.admin-signoff-list { display: grid; padding: 0 14px 14px; }
.admin-signoff-row { min-height: 50px; display: grid; grid-template-columns: 86px minmax(0, 1fr) auto; align-items: center; gap: 8px; border-top: 1px solid #e9eeeb; }
.admin-signoff-row:first-child { border-top: 0; }
.admin-signoff-row span { color: var(--muted); }
.admin-signoff-row strong { font-size: 12px; }

.admin-diff-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 14px 14px; }
.admin-diff-grid figure { margin: 0; overflow: hidden; border-radius: 6px; background: #f4f7f5; }
.admin-diff-grid img { width: 100%; aspect-ratio: 770 / 390; display: block; object-fit: cover; }
.admin-diff-grid figcaption { padding: 8px 10px; color: #415049; font-weight: 760; }

@media (max-width: 1360px) {
  .vave-admin-layout { grid-template-columns: 190px minmax(0, 1fr); }
  .admin-filter-grid { grid-template-columns: minmax(180px, 1.2fr) repeat(4, minmax(110px, .7fr)) auto; }
  .admin-review-layout { grid-template-columns: minmax(0, 1fr) 310px; }
}
