﻿:root {
}
/* Auth overlay */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.auth-overlay.hidden {
  display: none;
}
.auth-card {
  background: #0b1221;
  color: #fff;
  padding: 24px;
  border-radius: 12px;
  width: 320px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.auth-card h2 {
  margin: 0 0 8px;
}
.auth-label {
  display: block;
  margin: 12px 0 4px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9fb1d0;
}
.auth-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #2a3a57;
  background: #0f1a2d;
  color: #e5edff;
}
.auth-error {
  color: #f07575;
  margin-top: 8px;
}
.auth-locked {
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
}
:root {
  --bg: #0c1018;
  --panel: #0f1726;
  --panel-2: #121b2d;
  --ink: #dce4ff;
  --muted: #9fb3d9;
  --accent-1: #64d8f8;
  --accent-2: #9b7bff;
  --accent-3: #f2a55d;
  --accent-4: #f85c8b;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --font: "Bahnschrift", "Segoe UI", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 20% 20%, rgba(100, 216, 248, 0.12), transparent 35%),
    radial-gradient(circle at 80% 10%, rgba(248, 92, 139, 0.1), transparent 30%),
    linear-gradient(180deg, #0a0e16, #080a10 50%, #0a0e16);
  color: var(--ink);
  font-family: var(--font);
  letter-spacing: 0.01em;
}

.logo-mark {
  position: fixed;
  top: 18px;
  left: 18px;
  width: 72px;
  height: 72px;
  z-index: 20;
  pointer-events: none;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.25));
}

.background-accent {
  position: fixed;
  inset: 0;
  background: radial-gradient(1200px at 60% 10%, rgba(155, 123, 255, 0.12), transparent 40%),
    radial-gradient(1400px at 10% 60%, rgba(100, 216, 248, 0.14), transparent 40%);
  z-index: 0;
  pointer-events: none;
}

.app {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  padding-left: 140px;
}

.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
  justify-content: space-between;
  padding: 20px 20px 10px;
}

.monthly-goal {
  display: grid;
  align-items: center;
  column-gap: 12px;
  grid-template-columns: max-content minmax(140px, 1fr) max-content;
  min-width: 320px;
  max-width: 560px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.monthly-goal-title {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
}

.monthly-goal-percent {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.monthly-goal-bar {
  flex: 1;
  min-width: 160px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: visible;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  position: relative;
}

.monthly-goal-track {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
}

.monthly-goal-bar::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(8, 12, 20, 0.92);
  color: var(--ink);
  font-size: 12px;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease, transform 120ms ease;
  transform-origin: center;
}

.monthly-goal-bar:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

.monthly-goal-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: #cfc09c;
  box-shadow: 0 0 12px rgba(207, 192, 156, 0.5);
  transition: width 240ms ease;
}

.quarterly-goal {
  display: grid;
  gap: 10px;
  min-width: 520px;
  max-width: 900px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.quarterly-goal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.quarterly-goal-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
}

.quarterly-goal-row {
  display: grid;
  align-items: center;
  column-gap: 12px;
  grid-template-columns: max-content minmax(120px, 1fr) max-content;
}

.quarterly-goal-label {
  font-size: 12px;
  color: var(--ink);
  white-space: nowrap;
}

.quarterly-goal-percent {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.quarterly-goal-bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  position: relative;
  overflow: visible;
}

.quarterly-goal-track {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
}

.quarterly-goal-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: #cfc09c;
  box-shadow: 0 0 12px rgba(207, 192, 156, 0.5);
  transition: width 240ms ease;
}

.quarterly-goal-bar::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(8, 12, 20, 0.92);
  color: var(--ink);
  font-size: 12px;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease, transform 120ms ease;
  transform-origin: center;
}

.quarterly-goal-bar:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

.fy-goals {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  min-width: 520px;
  max-width: 980px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.fy-goal-item {
  display: grid;
  align-items: center;
  column-gap: 10px;
  grid-template-columns: auto minmax(90px, 1fr) auto;
  min-width: 0;
  flex: 1 1 0;
}

.fy-goal-label {
  font-size: 12px;
  color: var(--ink);
  white-space: nowrap;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fy-goal-percent {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.fy-goal-bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  position: relative;
  overflow: visible;
}

.fy-goal-track {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
}

.fy-goal-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: #cfc09c;
  box-shadow: 0 0 12px rgba(207, 192, 156, 0.5);
  transition: width 240ms ease;
}

.fy-goal-fill.is-balanced {
  background: #6ee5b2;
  box-shadow: 0 0 12px rgba(110, 229, 178, 0.45);
}

.fy-goal-fill.is-risk {
  background: var(--accent-4);
  box-shadow: 0 0 12px rgba(248, 92, 139, 0.45);
}

.fy-goal-bar::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(8, 12, 20, 0.92);
  color: var(--ink);
  font-size: 12px;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease, transform 120ms ease;
  transform-origin: center;
}

.fy-goal-bar:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

.track-record-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.track-record-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.track-record-report {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.track-report-panel {
  display: grid;
  gap: 6px;
  align-items: start;
}

.track-report-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-top: -38px;
}

.track-report-menu {
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 6px;
  align-content: start;
  min-height: 297mm;
}

.track-report-menu h2 {
  font-size: 12px;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.track-report-label {
  display: grid;
  gap: 2px;
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.track-report-label select {
  width: 100%;
  padding: 6px 10px;
  font-size: 13px;
}

.track-report-sheet {
  background: #f7f7f9;
  color: #10131d;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  min-height: 297mm;
  width: 210mm;
}

.track-report-print {
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #ffffff;
  color: #222;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.track-report-print:hover {
  background: #f2f2f4;
}

.track-report-sheet .meta {
  color: #495160;
}

.track-report-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.track-report-header h2 {
  margin: 0;
}

.track-report-logo {
  width: 72px;
  height: auto;
}

.track-report-summary {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  gap: 16px;
  margin-bottom: 12px;
  align-items: start;
}

.track-report-table-wrap {
  max-height: 520px;
  overflow: auto;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.track-report-sheet .data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  color: #111;
  background: #ffffff;
}

.track-report-sheet .data-table th,
.track-report-sheet .data-table td {
  padding: 8px 10px;
  border: 1px solid #c7cad6;
  text-align: left;
  color: #111 !important;
}

.track-report-sheet .data-table td,
.track-report-sheet .data-table td * {
  color: #111 !important;
  opacity: 1 !important;
}

.track-report-sheet .data-table th {
  background: rgba(207, 192, 156, 0.55);
  color: #1b2433 !important;
  position: sticky;
  top: 0;
}

.track-report-sheet .data-table tbody tr:nth-child(odd) {
  background: rgba(207, 192, 156, 0.22);
}

@media print {
  @page {
    size: A4;
    margin: 0;
  }

  body * {
    visibility: hidden !important;
  }

  .track-report-sheet,
  .track-report-sheet * {
    visibility: visible !important;
  }

  .track-report-sheet {
    position: absolute;
    top: 0;
    left: 0;
  }

  html,
  body {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  body {
    background: #fff;
  }

  .sidebar,
  .menu,
  .background-accent,
  .track-report-menu,
  .track-report-toolbar,
  .track-record-column:first-child {
    display: none !important;
  }

  .app,
  .app-with-sidebar {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    width: 100% !important;
  }

  .layout {
    display: block;
  }

  .track-record-layout {
    display: block !important;
    grid-template-columns: 1fr;
    width: 100%;
    margin: 0;
  }

  .track-record-report {
    display: block !important;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .track-report-panel {
    max-width: none;
    width: 100%;
    display: block !important;
  }

  .track-report-sheet {
    box-shadow: none;
    border-radius: 0;
    min-height: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    zoom: 1.15;
  }

  .track-report-header,
  .track-report-summary,
  .track-report-table-wrap {
    padding-left: 12mm;
    padding-right: 12mm;
  }

  .track-report-table-wrap {
    max-height: none;
    overflow: visible;
  }
}
.page-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.update-status {
  color: var(--muted);
  font-size: 13px;
}

.hero-center {
  justify-content: center;
  text-align: center;
}

.eyebrow {
  color: var(--accent-1);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 12px;
  margin: 0 0 8px;
}

h1 {
  margin: 0 0 12px;
  font-size: 32px;
  letter-spacing: 0.02em;
}

.lede {
  margin: 0;
  max-width: 700px;
  color: var(--muted);
  line-height: 1.6;
}

.lede.small {
  max-width: none;
  font-size: 14px;
  line-height: 1.4;
}

.filters {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

select,
button {
  background: var(--panel);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: var(--font);
  font-size: 14px;
}

button {
  cursor: pointer;
  background: linear-gradient(120deg, var(--accent-2), var(--accent-1));
  border: none;
  box-shadow: var(--shadow);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(100, 216, 248, 0.22);
}

.grid {
  display: grid;
  gap: 16px;
}

.kpis {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.highlights {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  margin-top: 12px;
}

.timeline {
  grid-template-columns: 2fr 1fr;
  margin-top: 12px;
}

@media (max-width: 900px) {
  .timeline {
    grid-template-columns: 1fr;
  }

  .fy-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .app {
    padding-left: 110px;
  }
}

@media (max-width: 520px) {
  .app {
    padding-left: 90px;
  }
}

/* Sidebar layout */
.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 200px;
  height: 100vh;
  padding: 22px 16px;
  background: linear-gradient(180deg, #0f1726, #0c1018);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 8px 0 24px rgba(0, 0, 0, 0.3);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: width 220ms ease, padding 220ms ease;
  overflow: hidden;
}

.sidebar .logo-mark {
  position: relative;
  top: 0;
  left: 0;
  width: 120px;
  height: auto;
  pointer-events: auto;
  filter: none;
}

.logo-link {
  display: inline-flex;
}

.menu-heading {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.menu {
  display: grid;
  gap: 8px;
}

.sub-menu {
  display: none;
  padding-left: 8px;
  margin-top: -4px;
  margin-bottom: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.sub-menu-item {
  display: block;
  padding: 8px 10px;
  margin-left: 8px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.008);
  border: 1px solid rgba(255, 255, 255, 0.02);
  font-size: 13px;
  transition: background 120ms ease, border-color 120ms ease;
}

.sub-menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.sub-menu-item.active {
  background: #cfc09c;
  color: #0a0e16;
  border-color: #cfc09c;
  font-weight: 700;
}

.has-children::after {
  content: '▾';
  float: right;
  opacity: 0.7;
}

.menu-collapsed .sub-menu {
  display: none !important;
}

.scenario-open .scenario-sub-menu,
.lending-open .lending-sub-menu {
  display: grid;
  gap: 6px;
}

.menu-item {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 120ms ease, border-color 120ms ease;
}

.menu-item.menu-expand {
  display: none;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.menu-toggle {
  text-align: left;
  cursor: pointer;
  font-family: var(--font);
}

.menu-item.active {
  background: #cfc09c;
  color: #0a0e16;
  border-color: #cfc09c;
  font-weight: 700;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #0a0e16;
  background: #cfc09c;
  border: 1px solid #cfc09c;
  transition: background 120ms ease, border-color 120ms ease;
}

.action-btn:hover {
  background: #e2d8b5;
  border-color: #e2d8b5;
}

.app-with-sidebar {
  padding-left: 32px;
  margin-left: 220px;
  transition: margin-left 220ms ease, padding-left 220ms ease;
  min-height: 100vh;
}

.asset-management .app-with-sidebar {
  max-width: none;
  width: 100%;
  padding-right: 24px;
}

.fy-full {
  max-width: none;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.fy-full .hero {
  padding: 16px 18px 6px;
}

.fy-full h1 {
  font-size: 28px;
  margin-bottom: 8px;
}

.fy-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  flex: 1;
}

.fy-column {
  display: grid;
  gap: 12px;
}

.fy-title {
  margin: 6px 4px 0;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.fy-hero-number {
  font-size: 40px;
  font-weight: 700;
  color: #cfc09c;
  letter-spacing: 0.02em;
  margin: 0 4px;
}

.fy-hero-value {
  font-size: 20px;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: -4px 4px 0;
}

.fy-hero-average {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin: 2px 4px 0;
}

.fy-timeline {
  margin: 6px 4px 0;
  padding: 10px 10px 8px;
  border-radius: 14px;
  background: rgba(15, 23, 38, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.fy-heatmap {
  margin: 6px 4px 0;
  padding: 10px 10px 12px;
  border-radius: 14px;
  background: rgba(15, 23, 38, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.fy-heatmap-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.fy-heatmap-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.fy-heatmap-range {
  font-size: 12px;
  color: var(--muted);
}

.fy-heatmap-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  min-height: 180px;
}

.fy-heatmap-cell {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.fy-heatmap-tooltip {
  position: fixed;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.82);
  color: var(--ink);
  font-size: 12px;
  border: 1px solid #cfc09c;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 50;
  opacity: 0;
  transition: opacity 120ms ease;
}

.fy-heatmap-tooltip.visible {
  opacity: 1;
}

.fy-timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.fy-timeline-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.fy-timeline-range {
  font-size: 12px;
  color: var(--muted);
}

.fy-timeline-chart {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 5px;
  align-items: end;
  height: 144px;
}

.quarterly-snapshot .fy-timeline {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 240px;
}

.quarterly-snapshot .fy-timeline-chart {
  flex: 1;
  height: auto;
  min-height: 200px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.monthly-snapshot .fy-heatmap {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 240px;
}

.monthly-snapshot .fy-heatmap-grid {
  flex: 1;
  min-height: 200px;
}

.fy-timeline-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  height: 100%;
}

.fy-timeline-bar-fill {
  width: 100%;
  min-height: 6px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(100, 216, 248, 0.9), rgba(155, 123, 255, 0.9));
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.fy-timeline-count {
  font-size: 11px;
  color: #cfc09c;
  letter-spacing: 0.02em;
}

.fy-timeline-month {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.fy-closed-rows {
  display: grid;
  gap: 10px;
}

.fy-closed-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 12px;
  font-size: 13px;
  align-items: center;
}

.fy-closed-row span:first-child {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fy-closed-row span:last-child {
  text-align: right;
  white-space: nowrap;
}

.fy-closed-total {
  font-weight: 700;
  padding-top: 4px;
}

.fy-closed-separator {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.fy-timeline-tooltip {
  position: fixed;
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(10, 14, 22, 0.95);
  color: #f4f4f4;
  font-size: 12px;
  min-width: 180px;
  border: 1px solid #cfc09c;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
  transition: opacity 120ms ease;
}

.fy-timeline-tooltip.visible {
  opacity: 1;
}

.fy-timeline-tooltip strong {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
  color: var(--muted);
}

.fy-timeline-popup {
  position: fixed;
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  min-width: 360px;
  max-width: 520px;
  max-height: 560px;
  overflow: hidden;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(10, 14, 22, 0.97);
  color: #f4f4f4;
  font-size: 12px;
  border: 1px solid #cfc09c;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.4);
  transition: opacity 140ms ease;
}

.fy-timeline-popup.visible {
  opacity: 1;
  pointer-events: auto;
}

.fy-timeline-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.fy-timeline-popup-title {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.fy-timeline-popup-close {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--muted);
  border-radius: 999px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: none;
}

.fy-timeline-popup-list {
  display: grid;
  gap: 6px;
  max-height: 460px;
  overflow: auto;
  padding-right: 4px;
}

.fy-timeline-popup-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: #dce4ff;
}

.fy-timeline-popup-item span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fy-timeline-popup-empty {
  color: var(--muted);
  font-size: 12px;
}

.fy-tooltip-spacer {
  height: 6px;
}

.fy-map {
  margin: 0 4px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(15, 23, 38, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 10px;
  justify-items: start;
}

.fy-map-content {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.fy-map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.fy-map-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.fy-map-subtitle {
  font-size: 12px;
  color: var(--muted);
}

.fy-map-wrap {
  background: rgba(8, 12, 20, 0.6);
  border-radius: 12px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.fy-map-chart {
  padding-top: 4px;
  min-width: 180px;
}

.fy-map-chart-title {
  margin: 0 0 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.fy-donut {
  width: 150px;
  height: 150px;
}

.fy-donut svg {
  width: 100%;
  height: 100%;
}

.fy-donut-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 16;
}

.fy-donut-rot {
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.fy-donut-segment {
  fill: none;
  stroke-width: 16;
}

.fy-donut-center {
  font-size: 20px;
  fill: var(--ink);
  font-weight: 700;
}

.fy-donut-label {
  font-size: 11px;
  fill: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fy-donut-legend {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}

.fy-donut-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.fy-donut-swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.asset-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  margin-bottom: 22px;
  align-items: stretch;
}

.asset-card-donut {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
}

.asset-card-runoff {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
}

.asset-card-runoff-list {
  grid-column: 2;
  grid-row: 2;
}

.asset-card-cumulative {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  flex-direction: column;
}

.asset-card-replacement {
  grid-column: 3;
  grid-row: 2;
}

.asset-card-deals {
  grid-column: 1;
  grid-row: 2;
}

.asset-donut-row {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  flex: 1;
}

.asset-donut-row .fy-donut {
  width: 200px;
  height: 200px;
  flex: 0 0 auto;
}

.asset-donut-row .fy-donut-legend {
  margin-top: 0;
  max-width: 210px;
}

.runoff-chart {
  margin-top: 14px;
  height: 190px;
  display: grid;
  grid-auto-flow: column;
  gap: 12px;
  align-items: end;
  flex: 1;
}

.runoff-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.runoff-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px 120px;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.runoff-list-name {
  color: var(--ink);
  font-size: 13px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runoff-list-date {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
  white-space: nowrap;
}

.runoff-list-value {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
  white-space: nowrap;
}

.replacement-chart {
  margin-top: 12px;
  height: 190px;
  display: grid;
  grid-auto-flow: column;
  gap: 10px;
  align-items: end;
}

.replacement-bar {
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: end;
  gap: 6px;
  height: 100%;
  text-align: center;
  position: relative;
}

.replacement-bar-value {
  font-size: 11px;
  color: var(--muted);
}

.replacement-bar-stack {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.replacement-bar-fill {
  width: 100%;
  min-height: 6px;
  border-radius: 8px 8px 6px 6px;
  background: linear-gradient(180deg, rgba(207, 192, 156, 0.95), rgba(207, 192, 156, 0.45));
  position: absolute;
  bottom: 0;
  left: 0;
}

.replacement-bar-forecast {
  width: 100%;
  min-height: 6px;
  border-radius: 8px 8px 6px 6px;
  border: 2px dashed rgba(100, 216, 248, 0.9);
  background: transparent;
  position: absolute;
  bottom: 0;
  left: 0;
}

.replacement-bar-required {
  width: 100%;
  min-height: 6px;
  border-radius: 8px 8px 6px 6px;
  border: 2px dashed rgba(255, 123, 123, 0.9);
  background: transparent;
  position: absolute;
  bottom: 0;
  left: 0;
}

.replacement-bar-label {
  font-size: 11px;
  color: var(--muted);
}

.replacement-forecast-list {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.forecast-list-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 120px;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.forecast-list-date {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.forecast-list-name {
  color: var(--ink);
  font-size: 13px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forecast-list-value {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
  white-space: nowrap;
}

.runoff-bar {
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: end;
  gap: 8px;
  height: 100%;
}

.runoff-bar-fill {
  width: 100%;
  border-radius: 10px 10px 6px 6px;
  background: linear-gradient(180deg, rgba(207, 192, 156, 0.95), rgba(207, 192, 156, 0.4));
  min-height: 6px;
}

.runoff-bar-label {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

.asset-area-wrap {
  position: relative;
  width: 100%;
}

.asset-area-chart {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.asset-area-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}

.asset-area-fill {
  fill: url(#asset-area-fill);
}

.asset-area-forecast-fill {
  fill: url(#asset-area-forecast-fill);
}

.asset-area-line {
  fill: none;
  stroke: rgba(100, 216, 248, 0.9);
  stroke-width: 3;
}

.asset-area-budget {
  fill: none;
  stroke: rgba(255, 209, 100, 0.9);
  stroke-width: 2;
  stroke-dasharray: 6 6;
}

.asset-area-forecast {
  fill: none;
  stroke: #41dc8e;
  stroke-width: 3;
}

.asset-area-marker.actual {
  fill: rgba(100, 216, 248, 0.95);
  stroke: rgba(10, 14, 22, 0.7);
  stroke-width: 2;
}

.asset-area-marker.forecast {
  fill: #41dc8e;
  stroke: rgba(10, 14, 22, 0.6);
  stroke-width: 2;
}

.asset-area-marker.budget {
  fill: rgba(255, 209, 100, 0.95);
  stroke: rgba(10, 14, 22, 0.7);
  stroke-width: 2;
}

.asset-area-axis {
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 1;
}

.asset-area-tick {
  fill: rgba(255, 255, 255, 0.4);
}

.asset-area-legend {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.asset-area-legend-item {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.asset-area-swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.asset-area-swatch.actual {
  background: rgba(100, 216, 248, 0.9);
}

.asset-area-swatch.forecast {
  background: #41dc8e;
}

.asset-area-swatch.budget {
  background: rgba(255, 209, 100, 0.9);
}

.asset-area-months {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 4px;
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

.risk-list {
  display: grid;
  gap: 16px;
}

.risk-group-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 8px;
}

.risk-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 8px;
}

.risk-item:last-child {
  margin-bottom: 0;
}

.risk-bullet {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 50%;
}

.risk-bullet.risk-high {
  background: #ff7b7b;
}

.risk-bullet.risk-medium {
  background: #f29a5b;
}

.risk-bullet.risk-early {
  background: #ffd164;
}

.risk-name {
  color: var(--ink);
  font-size: 13px;
}

.risk-value {
  color: var(--muted);
  font-size: 12px;
}


.fy-map-image {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.fy-map-overlay {
  position: absolute;
  inset: 10px;
  pointer-events: auto;
}

.fy-map-marker {
  position: absolute;
  color: #cfc09c;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
  text-transform: uppercase;
}

.fy-map-tooltip {
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translate(-50%, -6px);
  opacity: 0;
  pointer-events: none;
  padding: 6px 8px;
  min-width: 200px;
  border-radius: 8px;
  background: rgba(10, 14, 22, 0.95);
  color: #f4f4f4;
  font-size: 11px;
  white-space: nowrap;
  text-align: center;
  line-height: 1.3;
  border: 1px solid #cfc09c;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.35);
  transition: opacity 120ms ease;
}

.fy-map-marker:hover .fy-map-tooltip {
  opacity: 1;
}

.marker-wa {
  left: 18%;
  top: 45%;
}

.marker-qld {
  left: calc(66% + 1cm);
  top: calc(38% - 0.1cm);
}

.marker-nsw {
  left: calc(68% + 1cm);
  top: calc(60% + 0.15cm);
}

.marker-vic {
  left: calc(62% + 0.75cm);
  top: calc(74% + 0.15cm);
}

.marker-sa {
  left: 52%;
  top: 52%;
}

.fy-map-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 6px 10px;
  color: var(--muted);
  font-size: 12px;
}

.fy-map-item {
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.fy-lost-reasons {
  display: grid;
  gap: 8px;
}

.fy-lost-title {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.fy-lost-list {
  display: grid;
  gap: 6px;
}

.fy-lost-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
  color: var(--ink);
}

.fy-lost-row span:last-child {
  min-width: 60px;
  text-align: right;
  white-space: nowrap;
}

.menu-collapsed .sidebar {
  width: 120px;
  align-items: center;
  padding-left: 12px;
  padding-right: 12px;
}

.menu-collapsed .menu,
.menu-collapsed .menu-heading {
  display: none;
}

.menu-collapsed .menu-expand {
  display: block;
  width: 100%;
  text-align: center;
}

.menu-collapsed .app-with-sidebar {
  margin-left: 140px;
}

@media (max-width: 700px) {
  .app-with-sidebar {
    margin-left: 200px;
  }
}

@media (max-width: 520px) {
  .app-with-sidebar {
    margin-left: 0;
    padding-left: 120px;
  }
}

.card {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  padding: 14px 14px 16px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(100, 216, 248, 0.06), rgba(155, 123, 255, 0.05));
  opacity: 0;
  transition: opacity 160ms ease;
}

.card:hover::after {
  opacity: 1;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.label {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.pill {
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pill-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.pill-subtext {
  font-size: 12px;
  color: var(--muted);
}

.pill-strong {
  background: rgba(100, 216, 248, 0.15);
  color: #9ef0ff;
}

.pill-calm {
  background: rgba(155, 123, 255, 0.16);
  color: #d7c8ff;
}

.pill-warm {
  background: rgba(242, 165, 93, 0.2);
  color: #f6d4ad;
}

.pill-alert {
  background: rgba(248, 92, 139, 0.22);
  color: #ffc7da;
}

.metric {
  margin: 8px 0 6px;
  font-size: 40px;
}

.subtitle {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.meta {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.bar-wrap {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 4px;
}

.bar-wrap.thin {
  padding: 3px;
}

.bar {
  height: 12px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  width: 0;
  transition: width 360ms ease;
}

.bar-chart {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}


.bar-row {
  display: grid;
  grid-template-columns: 60px minmax(200px, 1fr) 120px;
  gap: 12px;
  align-items: center;
  cursor: pointer;
}

.bar-label {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 3px;
}

.fy-term-sheet-title {
  margin: 0 0 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.comparison-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 10px;
  max-width: 100%;
  width: 100%;
}

.comparison-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 640px;
}

.comparison-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.comparison-fields {
  display: grid;
  gap: 12px;
  max-width: 360px;
  width: 100%;
}

.comparison-fields label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.comparison-fields input,
.comparison-fields select {
  width: 100%;
  background: rgba(15, 23, 38, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--ink);
  font-family: var(--font);
}

.comparison-fields input[type="date"] {
  pointer-events: auto;
  position: relative;
  z-index: 2;
  -webkit-appearance: auto;
  appearance: auto;
}

.comparison-placeholder {
  flex: 1;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(10, 14, 22, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.comparison-chart {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
  justify-content: center;
  height: 100%;
  color: var(--ink);
  width: 100%;
}

.comparison-chart-value {
  font-size: 44px;
  font-weight: 700;
  color: #cfc09c;
  letter-spacing: 0.02em;
  text-align: center;
  width: 100%;
}

.comparison-chart-label {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: center;
  width: 100%;
}

.comparison-chart-range {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  width: 100%;
}

.comparison-sparkline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 6px;
  align-items: end;
  height: 120px;
  width: 100%;
  margin-top: 10px;
}

.comparison-sparkline-group {
  display: grid;
  gap: 8px;
  width: 100%;
  max-width: 100%;
}

.comparison-sparkline-labels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 6px;
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.06em;
  width: 100%;
}

.comparison-spark {
  display: flex;
  align-items: flex-end;
  height: 100%;
  position: relative;
}

.comparison-spark span {
  display: block;
  width: 100%;
  min-height: 28px;
  background: none;
  border-radius: 0 !important;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

.comparison-spark span::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(180deg, #64d8f8, #9b7bff);
  border-radius: 14px 14px 0 0;
}

.comparison-spark-tooltip {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translate(-50%, 6px);
  background: rgba(8, 12, 20, 0.95);
  border: 1px solid #cfc09c;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 11px;
  color: var(--ink);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 5;
}

.comparison-spark:hover .comparison-spark-tooltip,
.comparison-spark:focus-within .comparison-spark-tooltip {
  opacity: 1;
  transform: translate(-50%, 12px);
}

.comparison-tooltip-title {
  font-weight: 600;
  letter-spacing: 0.03em;
}

.comparison-tooltip-line {
  color: var(--muted);
}

.comparison-tool .app {
  max-width: 100%;
  width: 100%;
}

@media (max-width: 900px) {
  .comparison-split {
    grid-template-columns: 1fr;
  }
}

.bar-value {
  font-size: 14px;
  text-align: right;
  white-space: nowrap;
}

.bar-won {
  background: linear-gradient(90deg, #6ee5b2, #3cc18a);
}

.bar-lost {
  background: linear-gradient(90deg, #ff7b7b, #e05858);
}

.bar-open {
  background: linear-gradient(90deg, #ffd164, #f0ad3d);
}

.chart-tooltip {
  position: fixed;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(10, 14, 22, 0.95);
  color: #f4f4f4;
  font-size: 12px;
  max-width: 520px;
  min-width: 420px;
  white-space: nowrap;
  border: 1px solid #cfc09c;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
  transition: opacity 120ms ease;
}

.chart-tooltip.visible {
  opacity: 1;
}

.chart-tooltip strong {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.chart-tooltip .tooltip-line {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.85);
}

.lost-reason-expand {
  margin-top: 8px;
  background: transparent;
  border: none;
  padding: 0;
  color: #cfc09c;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.lost-reason-popup-item {
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: #dce4ff;
}

.lost-reason-popup-item strong {
  font-size: 12px;
  color: #f4f4f4;
}

.lost-reason-popup-item span {
  color: rgba(255, 255, 255, 0.82);
  white-space: normal;
  line-height: 1.35;
}

.revenue-bar-chart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(28px, 1fr));
  gap: 5px;
  align-items: end;
  min-height: 240px;
  padding: 12px 4px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  overflow-x: visible;
  grid-auto-flow: column;
  grid-auto-columns: minmax(28px, 1fr);
}

.revenue-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-height: 200px;
}

.revenue-bar-stack {
  height: 160px;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.revenue-bar-fill {
  width: 100%;
  border-radius: 6px 6px 4px 4px;
  background: linear-gradient(180deg, #cfc09c, #b5a983);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.22);
}

.revenue-bar-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: center;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 32px;
}

.revenue-bar-value {
  font-size: 9px;
  color: #f4f4f4;
  text-align: center;
}

.sparkline {
  display: grid;
  grid-auto-flow: column;
  gap: 6px;
  align-items: end;
  height: 52px;
}

.sparkline span {
  display: block;
  width: 8px;
  background: linear-gradient(180deg, var(--accent-1), var(--accent-2));
  border-radius: 4px 4px 2px 2px;
}

.risks {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.risks .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-4);
  display: inline-block;
  margin-right: 8px;
}

.chart {
  margin-top: 12px;
  display: grid;
  grid-auto-flow: column;
  align-items: end;
  gap: 12px;
  height: 140px;
}

.chart .bar {
  height: auto;
  width: 100%;
  min-height: 10px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent-1));
  position: relative;
}

.chart .bar::after {
  content: attr(data-label);
  position: absolute;
  bottom: -20px;
  left: 0;
  width: 100%;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  padding: 10px 0 28px;
}

.tile {
  text-decoration: none;
  color: inherit;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
  justify-content: center;
}

.tile-top {
  display: flex;
  justify-content: flex-end;
}

.list,
.calls,
.notes {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 10px;
}

.status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
}

.status.good {
  background: var(--accent-1);
}

.status.warn {
  background: var(--accent-3);
}

.call-title {
  margin: 0;
  font-weight: 600;
}

.call-meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.track {
  margin-top: 12px;
}

.track-label {
  font-size: 13px;
  color: var(--muted);
}

.track-bars {
  margin-top: 8px;
  display: grid;
  gap: 10px;
}

.lane {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: center;
  gap: 12px;
}

.lane-label {
  color: var(--muted);
  font-size: 13px;
}

.lane-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  height: 12px;
}

.lane-fill {
  height: 100%;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-3));
  width: 0;
  transition: width 360ms ease;
}

.lane-fill.color-1 {
  background: linear-gradient(90deg, #64d8f8, #9b7bff);
}

.lane-fill.color-2 {
  background: linear-gradient(90deg, #f2a55d, #f85c8b);
}

.lane-fill.color-3 {
  background: linear-gradient(90deg, #64f8c1, #64d8f8);
}

.legend {
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  margin-top: 10px;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 8px;
  display: inline-block;
  margin-right: 6px;
}

.color-1 {
  background: linear-gradient(90deg, #64d8f8, #9b7bff);
}

.color-2 {
  background: linear-gradient(90deg, #f2a55d, #f85c8b);
}

.color-3 {
  background: linear-gradient(90deg, #64f8c1, #64d8f8);
}

.notes li,
.calls li {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

/* Scenario Planning axes */
.scenario-map-full {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.scenario-map-full .axes-card {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.scenario-map-full .axis-plot-wrap {
  flex: 1;
  min-height: 520px;
}

.scenario-map-full .axis-plot {
  height: 100%;
  min-height: 520px;
}

.axes-card {
  margin-top: 12px;
}

.axes-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.axes-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.toggle-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}

.toggle-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-track {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
  transition: background 160ms ease, border-color 160ms ease;
}

.toggle-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #cfc09c;
  transition: transform 160ms ease;
}

.toggle-switch input:checked + .toggle-track {
  background: rgba(207, 192, 156, 0.35);
  border-color: rgba(207, 192, 156, 0.6);
}

.toggle-switch input:checked + .toggle-track::after {
  transform: translateX(20px);
}

.toggle-switch input:focus-visible + .toggle-track {
  box-shadow: 0 0 0 3px rgba(207, 192, 156, 0.2);
}

.toggle-label {
  font-weight: 600;
  letter-spacing: 0.01em;
}

.axis-plot {
  width: 100%;
  height: auto;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
}

.axis-plot-wrap {
  position: relative;
}

.axis-line {
  stroke: rgba(255, 255, 255, 0.6);
  stroke-width: 2;
}

.tick {
  stroke: rgba(255, 255, 255, 0.6);
  stroke-width: 2;
}

.tick-label {
  fill: var(--muted);
  font-size: 12px;
  text-anchor: middle;
}

.axis-label {
  fill: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-anchor: middle;
}

.axis-label-vertical {
  writing-mode: vertical-rl;
  text-anchor: middle;
}

.placeholder {
  fill: var(--muted);
  font-size: 13px;
}

.quadrant-label {
  fill: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.quad-label {
  position: absolute;
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  white-space: nowrap;
}

.quad-label::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0;
  top: 110%;
  min-width: 220px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid #cfc09c;
  border-radius: 12px;
  color: var(--ink);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.4;
  white-space: pre-line;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.quad-label:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.quad-slow-steady::after,
.quad-last-lender::after {
  top: auto;
  bottom: 110%;
}

.quad-rising {
  top: 12%;
  left: 12%;
}

.quad-rise-reckoning {
  top: 12%;
  right: 12%;
}

.quad-slow-steady {
  bottom: 10%;
  left: 12%;
}

.quad-last-lender {
  bottom: 10%;
  right: 12%;
}

.total-point {
  fill: #cfc09c;
  stroke: #b8a476;
  stroke-width: 2;
  opacity: 0.9;
  pointer-events: all;
}

.timeline-connector {
  fill: none;
  stroke: #cfc09c;
  stroke-width: 2;
  stroke-dasharray: 6 6;
  opacity: 0.8;
}

.timeline-segment {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: draw-segment 220ms ease forwards;
}

@keyframes draw-segment {
  to {
    stroke-dashoffset: 0;
  }
}

.latest-point {
  stroke: #fff;
  stroke-width: 2.5;
  opacity: 1;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.dot-green {
  background: #64f89a;
}

.dot-amber {
  background: #f2a55d;
}

.dot-red {
  background: #f85c8b;
}

.plot-tooltip {
  position: fixed;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.82);
  color: var(--ink);
  font-size: 12px;
  border: 1px solid #cfc09c;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 50;
  opacity: 0;
  transition: opacity 120ms ease;
}

.plot-tooltip.visible {
  opacity: 1;
}

@media (max-width: 700px) {
  .scenario-map-full .axis-plot-wrap,
  .scenario-map-full .axis-plot {
    min-height: 360px;
  }
}

/* Tables */
.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--ink);
}

.data-table th,
.data-table td {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

.data-table th {
  background: rgba(255, 255, 255, 0.05);
  text-align: left;
  font-weight: 700;
}

.data-table tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.02);
}

.table-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}
