:root {
  color-scheme: light;
  --bg: #eaf4ff;
  --ink: #152033;
  --muted: #64748b;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: rgba(255, 255, 255, 0.92);
  --border: rgba(148, 163, 184, 0.26);
  --border-strong: rgba(59, 130, 246, 0.22);
  --accent: #1463ff;
  --accent-dark: #0f46bd;
  --accent-soft: #e7f0ff;
  --danger-soft: #fee2e2;
  --danger: #b42318;
  --shadow: 0 24px 70px rgba(30, 64, 175, 0.12);
  --glass-shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% 8%, rgba(56, 189, 248, 0.48), transparent 30%),
    radial-gradient(circle at 16% 92%, rgba(37, 99, 235, 0.35), transparent 34%),
    linear-gradient(135deg, #f8fbff 0%, #e8f3ff 52%, #dcecff 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  box-shadow: 0 12px 28px rgba(20, 99, 255, 0.18);
  color: white;
  cursor: pointer;
  font-weight: 750;
  padding: 0.72rem 1rem;
}

button:hover {
  background: var(--accent-dark);
}

button.secondary {
  background: rgba(226, 232, 240, 0.9);
  box-shadow: none;
  color: var(--ink);
}

button.secondary:hover {
  background: #dbe7f6;
}

input,
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  padding: 0.72rem 0.78rem;
}

input:focus,
select:focus {
  border-color: rgba(20, 99, 255, 0.56);
  box-shadow: 0 0 0 4px rgba(20, 99, 255, 0.1);
  outline: 0;
}

label {
  display: grid;
  gap: 0.42rem;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 720;
}

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

h1 {
  font-size: 1.95rem;
  line-height: 1.05;
}

h2 {
  font-size: 1.22rem;
}

h3 {
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.app-shell {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: 100vh;
  padding: 24px;
}

.sidebar {
  align-self: stretch;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  gap: 34px;
  padding: 24px;
  position: sticky;
  top: 24px;
  height: calc(100vh - 48px);
  backdrop-filter: blur(22px);
}

.brand {
  align-items: center;
  display: flex;
  gap: 0.85rem;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, #1463ff, #38bdf8);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(20, 99, 255, 0.26);
  color: white;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.brand span:not(.brand-mark) {
  display: block;
  font-size: 1.08rem;
  font-weight: 900;
}

.brand strong {
  color: var(--accent);
  display: block;
  font-size: 0.72rem;
  font-weight: 850;
  margin-top: 0.12rem;
  text-transform: uppercase;
}

.side-nav {
  display: grid;
  gap: 10px;
}

.side-nav button {
  align-items: center;
  background: transparent;
  box-shadow: none;
  color: #526174;
  display: flex;
  gap: 0.7rem;
  justify-content: flex-start;
  padding: 0.82rem 0.9rem;
  text-align: left;
}

.side-nav button.active,
.side-nav button:hover {
  background: var(--accent);
  color: white;
}

.nav-icon {
  background: currentColor;
  border-radius: 6px;
  height: 14px;
  opacity: 0.75;
  width: 14px;
}

.main-content {
  display: grid;
  gap: 22px;
  min-width: 0;
  padding: 6px 0 6px 24px;
}

.topbar,
.project-header,
.section-header,
.form-actions {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.topbar {
  justify-content: flex-end;
  min-height: 64px;
}

.view-stack,
#projectDetail {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.panel,
.empty-state {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  box-shadow: var(--shadow);
  min-width: 0;
  padding: 22px;
  backdrop-filter: blur(20px);
}

.project-list-panel {
  overflow: hidden;
}

.empty-state {
  min-height: 0;
  padding: 0;
}

.analytics-heading {
  padding: 8px 4px 2px;
}

.analytics-heading h2 {
  margin-bottom: 0.35rem;
}

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

.currency-summary {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.currency-metric small {
  color: var(--muted);
  display: block;
  font-size: 0.8rem;
  line-height: 1.45;
  margin-top: 0.65rem;
}

.analytics-empty {
  padding: 16px;
}

.table-link {
  background: transparent;
  box-shadow: none;
  color: var(--accent-dark);
  padding: 0;
  text-align: left;
}

.table-link:hover {
  background: transparent;
  color: var(--accent);
  text-decoration: underline;
}

.negative-value {
  color: var(--danger) !important;
  font-weight: 750;
}

.analytics-project-history {
  scroll-margin-top: 24px;
}

.analytics-history-header {
  margin-bottom: 18px;
}

.currency-tag {
  background: var(--accent-soft);
  border-radius: 8px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 850;
  padding: 0.5rem 0.65rem;
}

.analytics-project-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 24px;
}

.analytics-project-metrics .metric {
  min-height: 105px;
}

.analytics-project-metrics .metric strong {
  font-size: 1.04rem;
}

.version-history {
  display: grid;
  gap: 18px;
  position: relative;
}

.version-history::before {
  background: rgba(20, 99, 255, 0.22);
  bottom: 30px;
  content: "";
  left: 20px;
  position: absolute;
  top: 30px;
  width: 2px;
}

.version-history-row {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(220px, 0.7fr) minmax(360px, 1.7fr);
  padding-left: 42px;
  position: relative;
}

.version-history-row::before {
  background: var(--accent);
  border: 5px solid #eaf4ff;
  border-radius: 50%;
  content: "";
  height: 16px;
  left: 13px;
  position: absolute;
  top: 24px;
  width: 16px;
  z-index: 1;
}

.version-summary-card,
.version-deliverables-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border);
  border-radius: 16px;
  min-width: 0;
  padding: 18px;
}

.version-number {
  color: var(--accent);
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.version-summary-card time {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  margin-top: 0.35rem;
}

.version-summary-card dl {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 0;
}

.version-summary-card dl div,
.version-deliverables-heading {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.version-summary-card dt,
.version-deliverables-heading span {
  color: var(--muted);
  font-size: 0.78rem;
}

.version-summary-card dd {
  font-size: 0.84rem;
  font-weight: 800;
  margin: 0;
}

.version-deliverables-card .responsive-table {
  margin-top: 10px;
}

.data-table.compact-table {
  min-width: 520px;
}

.change-breakdown-table td {
  vertical-align: top;
}

.change-breakdown-table td:first-child strong {
  display: block;
  font-size: 0.96rem;
}

.change-breakdown-table td:first-child small {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  margin-top: 0.26rem;
}

.currency-lines {
  display: grid;
  gap: 0.42rem;
}

.currency-lines span {
  align-items: baseline;
  color: #1f2937;
  display: flex;
  gap: 0.45rem;
  justify-content: space-between;
  min-width: 128px;
}

.currency-lines strong {
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
}

.hidden {
  display: none !important;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

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

.detail-layout {
  display: grid;
  gap: 18px;
}

.project-header {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  padding: 18px 20px;
}

.project-header-actions {
  align-items: center;
  display: flex;
  gap: 12px;
}

.project-header-actions label {
  min-width: 180px;
}

.field-note {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  line-height: 1.45;
  margin-top: 0.45rem;
}

.status-pill {
  background: var(--accent-soft);
  border: 1px solid rgba(20, 99, 255, 0.16);
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 850;
  padding: 0.43rem 0.74rem;
  text-transform: capitalize;
}

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

.metric {
  background: var(--panel-strong);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 20px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
  min-height: 116px;
  padding: 18px;
}

.metric span {
  color: var(--muted);
  display: block;
  font-size: 0.74rem;
  font-weight: 850;
  margin-bottom: 0.7rem;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  font-size: 1.32rem;
  line-height: 1.15;
}

.two-col {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

.three-col {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
}

.dynamic-form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
}

form {
  display: grid;
  gap: 18px;
}

form .form-actions {
  margin-top: 4px;
}

.segmented-control {
  background: rgba(226, 232, 240, 0.82);
  border-radius: 12px;
  display: flex;
  gap: 3px;
  padding: 4px;
}

.segmented-control button {
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  padding: 0.48rem 0.75rem;
}

.segmented-control button.active {
  background: white;
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.table-shell {
  margin-top: 18px;
}

.table-shell > p.muted {
  padding: 16px;
}

.responsive-table {
  max-width: 100%;
  overflow-x: auto;
}

.data-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 980px;
  width: 100%;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  padding: 0.92rem 0.82rem;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.data-table th {
  color: #778399;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.data-table td {
  color: #1f2937;
  font-size: 0.92rem;
}

.data-table tbody tr:hover,
.data-table tbody tr.selected-row {
  background: rgba(20, 99, 255, 0.055);
}

.data-table .action-table-row:hover {
  background: transparent;
}

.action-table-row td {
  padding: 0.72rem 0.82rem;
}

.add-row-button {
  align-items: center;
  background: rgba(20, 99, 255, 0.08);
  border: 1px dashed rgba(20, 99, 255, 0.34);
  box-shadow: none;
  color: var(--accent-dark);
  display: inline-flex;
  gap: 0.55rem;
  justify-content: center;
  min-height: 42px;
  width: 100%;
}

.add-row-button span {
  align-items: center;
  background: var(--accent);
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 900;
  height: 22px;
  justify-content: center;
  line-height: 1;
  width: 22px;
}

.add-row-button:hover {
  background: rgba(20, 99, 255, 0.13);
  color: var(--accent-dark);
}

.editable-table {
  min-width: 520px;
}

.editable-table input {
  min-width: 140px;
}

.link-button {
  background: transparent;
  box-shadow: none;
  color: var(--accent-dark);
  font-weight: 850;
  padding: 0;
  text-align: left;
}

.link-button:hover {
  background: transparent;
  color: var(--accent);
  text-decoration: underline;
}

.disabled-field {
  color: #98a3b3;
}

.disabled-field select {
  background: rgba(241, 245, 249, 0.84);
  color: #98a3b3;
}

.icon-button {
  align-self: end;
  background: var(--danger-soft);
  box-shadow: none;
  color: var(--danger);
  padding: 0.66rem;
}

.impact {
  display: grid;
  gap: 12px;
}

.impact-table {
  border-collapse: collapse;
  width: 100%;
}

.impact-table th,
.impact-table td {
  border-bottom: 1px solid var(--border);
  padding: 0.82rem;
  text-align: right;
  vertical-align: top;
}

.impact-table th:first-child,
.impact-table td:first-child {
  color: var(--muted);
  font-weight: 800;
  text-align: left;
}

.impact-table th {
  color: var(--ink);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.modal-backdrop {
  align-items: center;
  background: rgba(15, 23, 42, 0.36);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 20;
}

.modal {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.24);
  display: grid;
  gap: 22px;
  max-width: 780px;
  padding: 24px;
  width: min(100%, 780px);
  backdrop-filter: blur(22px);
}

.small-modal {
  max-width: 460px;
}

.toast {
  background: #152033;
  border-radius: 12px;
  bottom: 20px;
  color: white;
  left: 50%;
  padding: 12px 16px;
  position: fixed;
  transform: translateX(-50%);
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .sidebar {
    height: auto;
    position: static;
  }

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

  .main-content {
    padding: 18px 0 0;
  }

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

  .analytics-project-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

/* True final navigation/layout override */
body .app-shell {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 46px minmax(0, 1fr);
  min-height: 100vh;
  padding: 0;
}

body .sidebar {
  align-items: stretch;
  background: #fb5a00;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: row;
  gap: 0;
  height: 46px;
  justify-content: flex-start;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

body .brand {
  color: #ffffff;
  padding: 0 18px;
}

body .brand strong {
  color: #ffe4d6;
}

body .brand-mark {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 999px;
  height: 28px;
  width: 28px;
}

body .side-nav {
  display: flex;
  gap: 0;
}

body .side-nav button {
  border-radius: 0;
  color: #ffffff;
  padding: 0 14px;
}

body .side-nav button.active,
body .side-nav button:hover {
  background: #ff8652;
  color: #ffffff;
}

body .nav-icon,
body .sidebar-section {
  display: none;
}

body .main-content {
  padding: 34px 10px 40px;
}

body .view-stack,
body .analytics-heading {
  margin: 0 auto;
  max-width: 1184px;
  width: 100%;
}

body .metrics.overview-summary,
body .analytics-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Final Harvest layout override */
.app-shell {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 46px minmax(0, 1fr);
  min-height: 100vh;
  padding: 0;
}

.sidebar {
  align-items: stretch;
  background: var(--harvest-orange);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: row;
  gap: 0;
  height: 46px;
  justify-content: flex-start;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  color: #ffffff;
  padding: 0 18px;
}

.brand strong {
  color: #ffe4d6;
}

.brand-mark {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 999px;
  height: 28px;
  width: 28px;
}

.side-nav {
  display: flex;
  gap: 0;
}

.side-nav button {
  border-radius: 0;
  color: #ffffff;
  padding: 0 14px;
}

.side-nav button.active,
.side-nav button:hover {
  background: var(--harvest-orange-active);
  color: #ffffff;
}

.nav-icon,
.sidebar-section {
  display: none;
}

.main-content {
  padding: 34px 10px 40px;
}

.view-stack,
.analytics-heading {
  margin: 0 auto;
  max-width: 1184px;
  width: 100%;
}

.panel {
  border-radius: 4px;
  padding: 0;
}

.section-header {
  border-bottom: 1px solid #d7d7d2;
  padding: 14px 16px;
}

.metrics.overview-summary,
.analytics-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 760px) {
  .sidebar {
    height: auto;
    flex-wrap: wrap;
  }
}

/* Harvest-inspired flatter shell */
:root {
  --harvest-orange: #fb5a00;
  --harvest-orange-active: #ff8652;
  --bg: #f7f7f5;
}

.app-shell {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 46px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  align-items: stretch;
  background: var(--harvest-orange);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: row;
  gap: 0;
  height: 46px;
  justify-content: flex-start;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  color: #ffffff;
  gap: 0.5rem;
  padding: 0 18px;
}

.brand-mark {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 999px;
  height: 28px;
  width: 28px;
}

.brand strong {
  color: #ffe4d6;
}

.side-nav {
  display: flex;
  gap: 0;
}

.side-nav button {
  border-radius: 0;
  color: #ffffff;
  padding: 0 14px;
}

.side-nav button.active,
.side-nav button:hover {
  background: var(--harvest-orange-active);
  color: #ffffff;
}

.nav-icon,
.sidebar-section {
  display: none;
}

.main-content {
  gap: 18px;
  padding: 34px 10px 40px;
}

.view-stack {
  margin: 0 auto;
  max-width: 1184px;
  width: 100%;
}

.page-heading {
  margin: 8px 0 2px;
}

.page-heading h1 {
  font-size: 2rem;
}

.page-heading .muted,
.analytics-heading .muted {
  margin-top: 0.35rem;
}

.panel,
.project-header,
.metric,
.timeline-detail,
.timeline-item,
.insight-row {
  border-color: #d7d7d2;
  box-shadow: none;
}

.panel {
  border-radius: 4px;
  padding: 0;
}

.section-header {
  border-bottom: 1px solid #d7d7d2;
  padding: 14px 16px;
}

.project-list-panel .section-header {
  align-items: center;
  background: #ffffff;
}

.table-shell {
  margin-top: 0;
}

.responsive-table {
  background: #ffffff;
}

.data-table {
  border-collapse: collapse;
  min-width: 840px;
}

.data-table th {
  background: #ececea;
  color: #64645f;
  font-size: 0.75rem;
  letter-spacing: 0;
  text-transform: none;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid #d7d7d2;
  padding: 0.72rem 0.68rem;
}

.data-table tbody tr:hover,
.data-table tbody tr.selected-row {
  background: #fff8f2;
}

button {
  background: #168a3a;
  border-radius: 6px;
}

button:hover {
  background: #0f6f2d;
}

button.secondary,
.segmented-control button {
  background: #ffffff;
  border: 1px solid #cfcfca;
  color: var(--ink);
}

.segmented-control {
  background: transparent;
  gap: 8px;
  padding: 0;
}

.segmented-control button.active {
  background: #f3f3f0;
  box-shadow: none;
}

.metrics.overview-summary,
.analytics-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric {
  border-radius: 4px;
  min-height: 96px;
}

.metric span {
  text-transform: none;
}

.overview-focus-grid {
  display: grid;
}

.insight-list {
  margin: 0;
  padding: 12px 16px 16px;
}

.insight-row {
  border-radius: 4px;
}

.project-header {
  border-radius: 4px;
}

.tabs {
  background: #ffffff;
  border: 1px solid #d7d7d2;
  border-radius: 4px 4px 0 0;
  margin-top: 2px;
  padding: 0 14px;
}

.tabs button.active,
.tabs button:hover {
  border-color: var(--harvest-orange);
  color: #bf4300;
}

#scopePanel,
#timelinePanel,
#projectAnalyticsPanel,
#baselinePanel {
  border-radius: 0 0 4px 4px;
}

.scope-timeline-layout {
  padding: 16px;
}

.timeline-item.active,
.timeline-item:hover {
  background: #fff4ec;
  border-color: #ffb58f;
}

.analytics-heading {
  margin: 0 auto;
  max-width: 1184px;
  width: 100%;
}

@media (max-width: 760px) {
  .sidebar {
    height: auto;
    flex-wrap: wrap;
  }

  .brand,
  .side-nav button {
    min-height: 46px;
  }
}

@media (max-width: 760px) {
  .topbar,
  .project-header,
  .section-header,
  .project-header-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .dynamic-form-grid,
  .metrics,
  .analytics-summary,
  .analytics-project-metrics,
  .three-col,
  .two-col {
    grid-template-columns: 1fr;
  }

  .panel,
  .empty-state,
  .modal {
    border-radius: 18px;
    padding: 16px;
  }
}

/* Practical SaaS dashboard pass */
:root {
  --bg: #f6f8fb;
  --ink: #172033;
  --muted: #667085;
  --panel: #ffffff;
  --panel-strong: #ffffff;
  --border: #e4e7ec;
  --border-strong: #c7d7fe;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-soft: #eff6ff;
  --warning: #b7791f;
  --warning-soft: #fff7df;
  --healthy: #067647;
  --healthy-soft: #ecfdf3;
  --danger-soft: #fef3f2;
  --danger: #b42318;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 10px 24px rgba(16, 24, 40, 0.05);
  --glass-shadow: var(--shadow);
}

body {
  background: var(--bg);
}

button {
  border-radius: 8px;
  box-shadow: none;
}

input,
select {
  background: #ffffff;
  border-radius: 8px;
}

.app-shell {
  grid-template-columns: 260px minmax(0, 1fr);
  padding: 0;
}

.sidebar {
  background: #ffffff;
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
  gap: 28px;
  height: 100vh;
  padding: 22px 18px;
  top: 0;
  backdrop-filter: none;
}

.brand-mark {
  border-radius: 10px;
  box-shadow: none;
}

.side-nav {
  gap: 6px;
}

.side-nav button {
  border-radius: 8px;
  font-weight: 800;
  padding: 0.72rem 0.78rem;
}

.side-nav button.active,
.side-nav button:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.nav-icon {
  border-radius: 4px;
  height: 10px;
  width: 10px;
}

.sidebar-section {
  border-top: 1px solid var(--border);
  display: grid;
  gap: 10px;
  padding-top: 18px;
}

.sidebar-section-title {
  color: #98a2b3;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sidebar-project-list {
  display: grid;
  gap: 4px;
}

.sidebar-project {
  align-items: center;
  background: transparent;
  border-radius: 8px;
  box-shadow: none;
  color: #344054;
  display: grid;
  font-size: 0.86rem;
  gap: 0.55rem;
  grid-template-columns: auto minmax(0, 1fr);
  justify-content: start;
  padding: 0.58rem 0.6rem;
  text-align: left;
}

.sidebar-project span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-project:hover,
.sidebar-project.active {
  background: #f2f4f7;
  color: var(--ink);
}

.status-dot {
  background: #98a2b3;
  border-radius: 999px;
  height: 8px;
  width: 8px;
}

.status-dot.healthy { background: var(--healthy); }
.status-dot.warning { background: #f59e0b; }
.status-dot.danger { background: var(--danger); }

.sidebar-empty {
  font-size: 0.82rem;
  padding: 0 0.6rem;
}

.main-content {
  gap: 22px;
  padding: 28px;
}

.page-heading {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.page-heading h1 {
  font-size: 1.7rem;
  letter-spacing: 0;
}

.panel,
.empty-state,
.project-header,
.metric,
.version-summary-card,
.version-deliverables-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  backdrop-filter: none;
}

.panel,
.empty-state {
  padding: 20px;
}

.project-header {
  padding: 18px 20px;
}

.project-header h2 {
  font-size: 1.45rem;
  margin-bottom: 0.3rem;
}

.metrics.overview-summary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.metric {
  min-height: 104px;
  padding: 16px;
}

.metric small {
  color: var(--muted);
  display: block;
  font-size: 0.82rem;
  line-height: 1.35;
  margin-top: 0.58rem;
}

.two-panel-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.insight-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.insight-row {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: none;
  color: var(--ink);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.82rem;
  text-align: left;
}

.insight-row:hover {
  background: #f9fafb;
  color: var(--ink);
}

.insight-row strong,
.insight-row small {
  display: block;
}

.insight-row small,
.insight-row em {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
}

.status-badge {
  background: #f2f4f7;
  border: 1px solid #eaecf0;
  border-radius: 999px;
  color: #344054;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 850;
  padding: 0.32rem 0.56rem;
  text-transform: capitalize;
}

.status-badge.active,
.status-badge.healthy {
  background: var(--healthy-soft);
  border-color: #abefc6;
  color: var(--healthy);
}

.status-badge.warning {
  background: var(--warning-soft);
  border-color: #fedf89;
  color: var(--warning);
}

.status-badge.archived,
.status-badge.danger {
  background: var(--danger-soft);
  border-color: #fecdca;
  color: var(--danger);
}

.status-badge.neutral,
.status-badge.draft {
  background: #f2f4f7;
  border-color: #eaecf0;
  color: #475467;
}

.tabs {
  align-items: center;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 18px;
  margin-top: 4px;
}

.tabs button {
  background: transparent;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  box-shadow: none;
  color: var(--muted);
  padding: 0.82rem 0.1rem;
}

.tabs button.active,
.tabs button:hover {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent-dark);
}

.scope-timeline-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(260px, 0.85fr) minmax(380px, 1.4fr);
  margin-top: 16px;
}

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

.timeline-item {
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: none;
  color: var(--ink);
  display: grid;
  gap: 0.34rem;
  justify-items: start;
  padding: 14px;
  text-align: left;
}

.timeline-item:hover,
.timeline-item.active {
  background: var(--accent-soft);
  border-color: var(--border-strong);
  color: var(--ink);
}

.timeline-item small,
.timeline-item em {
  color: var(--muted);
  font-size: 0.8rem;
  font-style: normal;
}

.timeline-detail {
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}

.timeline-detail-header {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: space-between;
  margin-bottom: 16px;
}

.timeline-detail-header h3 {
  flex: 1 1 180px;
  font-size: 1rem;
}

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

.impact-line {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}

.impact-line span,
.timeline-detail-section h4 {
  color: var(--muted);
  display: block;
  font-size: 0.74rem;
  font-weight: 900;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.impact-line strong {
  font-size: 0.92rem;
}

.timeline-detail-section {
  border-top: 1px solid var(--border);
  margin-top: 16px;
  padding-top: 16px;
}

.project-analytics-copy {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.data-table {
  min-width: 760px;
}

.data-table th,
.data-table td {
  padding: 0.82rem 0.76rem;
}

.modal {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  backdrop-filter: none;
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-bottom: 1px solid var(--border);
    border-right: 0;
    height: auto;
  }

  .metrics.overview-summary,
  .scope-timeline-layout,
  .two-panel-grid {
    grid-template-columns: 1fr;
  }
}
