.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 220px;
  display: flex;
  flex-direction: column;
  max-height: 100vh;
  overflow-y: auto;
  padding: 20px 12px 16px;
  background:
    linear-gradient(160deg, rgba(212, 175, 55, 0.12), transparent 24%),
    linear-gradient(180deg, #04101b 0%, #082238 58%, #03101a 100%);
  color: #fff;
  box-shadow: 12px 0 34px rgba(0, 0, 0, 0.18);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 8px 18px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.28);
}

.brand-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 2px solid #d4af37;
  border-radius: 12px;
  color: #d4af37;
  background: rgba(1, 11, 20, 0.78);
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: #fff;
  font-family: Georgia, serif;
  font-size: 26px;
  line-height: 1;
}

.brand strong span {
  color: #d4af37;
}

.brand small {
  margin-top: 8px;
  color: #d7dde5;
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: uppercase;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 14px;
}

.menu-section {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 6px;
}

.menu-section-label {
  padding: 8px 12px 4px;
  color: rgba(212, 175, 55, 0.55);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.menu-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 12px;
  color: rgba(241, 246, 251, 0.75);
  background: transparent;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.menu-item .material-icons-round {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(212, 175, 55, 0.7);
  font-size: 16px;
  transition: background 0.18s ease, color 0.18s ease;
}

.menu-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.menu-item:hover .material-icons-round {
  background: rgba(212, 175, 55, 0.15);
  color: #d4af37;
}

.menu-item.active {
  color: #fff;
  border-color: rgba(212, 175, 55, 0.3);
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.18), rgba(255, 255, 255, 0.05));
}

.menu-item.active .material-icons-round {
  background: rgba(212, 175, 55, 0.2);
  color: #d4af37;
}

.menu-item.active::before {
  position: absolute;
  inset: 7px auto 7px -1px;
  width: 3px;
  border-radius: 999px;
  background: #d4af37;
  content: "";
}

.sidebar-support {
  margin-top: 14px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 8px;
  padding: 14px;
  background: rgba(1, 11, 20, 0.48);
}

.sidebar-support strong,
.sidebar-support span,
.sidebar-version span,
.sidebar-version strong {
  display: block;
}

.sidebar-support strong {
  color: #fff;
  font-size: 13px;
}

.sidebar-support span {
  margin-top: 4px;
  color: #d7dde5;
  font-size: 12px;
}

.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  margin-top: 12px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 8px;
  padding: 0 14px;
  color: #fff;
  background: rgba(212, 175, 55, 0.12);
  font-weight: 800;
  cursor: pointer;
}

.sidebar-logout span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(212, 175, 55, 0.65);
  border-radius: 7px;
  color: #d4af37;
  font-size: 13px;
}

.sidebar-logout:hover {
  border-color: rgba(212, 175, 55, 0.85);
  background: rgba(212, 175, 55, 0.22);
}

.sidebar-version {
  margin-top: 14px;
  border-top: 1px solid rgba(212, 175, 55, 0.32);
  padding: 12px 8px 0;
  color: #d7dde5;
  font-size: 12px;
  text-transform: uppercase;
}

.sidebar-version strong {
  margin-top: 8px;
  color: #fff;
  font-size: 13px;
  text-transform: none;
}

.app {
  width: calc(100% - 220px);
  margin-left: 220px;
  padding: 18px 22px;
}

.view {
  display: none;
}

.view.active-view {
  display: block;
}

.topbar,
.section-heading,
.top-actions,
.legend {
  display: flex;
  align-items: center;
}

.topbar {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 16px;
}

.top-actions {
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

#launchView .topbar {
  align-items: flex-start;
}

#launchView .top-actions {
  max-width: 760px;
}

#launchView .top-actions button {
  white-space: nowrap;
}

.home-executive-dashboard {
  min-height: calc(100vh - 48px);
  border-radius: 12px;
  padding: 24px;
  color: #f7fbff;
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.14), transparent 22%),
    linear-gradient(160deg, #04101b 0%, #072236 52%, #03101a 100%);
  box-shadow: var(--shadow);
}

.home-executive-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  margin-bottom: 18px;
}

.home-brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.home-brand-mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 2px solid #d4af37;
  border-radius: 10px;
  color: #d4af37;
  font-family: Georgia, serif;
  font-size: 34px;
  font-weight: 800;
}

.home-brand-lockup strong {
  display: block;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 28px;
  line-height: 1;
}

.home-brand-lockup strong span {
  color: #d4af37;
}

.home-brand-lockup small,
.home-title-block p,
.home-top-actions span,
.home-kpi-card small {
  color: #dbe5ee;
}

.home-brand-lockup small {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-title-block h1 {
  font-family: Georgia, serif;
  font-size: 34px;
  line-height: 1.1;
}

.home-title-block p {
  margin: 6px 0 0;
}

.home-top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.home-gold-button,
.home-clear-button {
  min-height: 42px;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
  text-transform: uppercase;
}

.home-gold-button {
  border: 0;
  color: #05121e;
  background: linear-gradient(135deg, #f3c35a, #d4af37);
}

.home-clear-button {
  border: 1px solid rgba(212, 175, 55, 0.55);
  color: #fff;
  background: rgba(2, 10, 18, 0.42);
}

.home-filter-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr)) auto;
  gap: 14px;
  margin-bottom: 18px;
}

.home-filter-row label {
  min-height: 62px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(1, 11, 20, 0.62);
}

.home-filter-row span,
.home-filter-row select,
.home-kpi-card span,
.home-kpi-card strong,
.home-kpi-card small {
  display: block;
}

.home-filter-row span {
  color: #d4af37;
  font-size: 11px;
  font-weight: 800;
}

.home-filter-row select {
  width: 100%;
  min-height: 28px;
  margin-top: 6px;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 19px;
  font-weight: 800;
  outline: none;
}

.home-filter-row option {
  color: #071423;
}

.home-kpi-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.home-kpi-card {
  position: relative;
  min-height: 156px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 8px;
  padding: 18px 16px 14px;
  color: #071423;
  background: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.has-tooltip {
  position: relative;
}

.home-kpi-card.has-tooltip {
  overflow: visible;
}

.home-kpi-card.has-tooltip::after,
.home-bottom-strip .has-tooltip::after {
  position: absolute;
  z-index: 5;
  right: 12px;
  bottom: calc(100% + 10px);
  width: min(260px, 90vw);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 8px;
  padding: 10px 12px;
  color: #fff;
  background: #061421;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
  content: attr(data-tooltip);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.home-kpi-card.has-tooltip:hover::after,
.home-bottom-strip .has-tooltip:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.home-kpi-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 10px;
  border: 1px solid #d4af37;
  border-radius: 50%;
  color: #d4af37;
  background: #061421;
  font-weight: 900;
}

.home-kpi-card span {
  color: #071423;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-kpi-card strong {
  margin-top: 8px;
  color: #071423;
  font-size: 22px;
}

.home-kpi-card small {
  margin-top: 4px;
  color: #344456;
  font-size: 12px;
}

.home-finance-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.home-finance-card {
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 8px;
  padding: 16px 18px;
  color: #071423;
  background: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}

.home-finance-card span,
.home-finance-card strong,
.home-finance-card small {
  display: block;
}

.home-finance-card span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-finance-card strong {
  margin-top: 8px;
  color: #071423;
  font-size: 24px;
}

.home-finance-card small {
  margin-top: 4px;
  color: #344456;
  font-size: 12px;
}

.home-kpi-change {
  position: absolute;
  top: 22px;
  right: 18px;
  color: #c88405;
  font-size: 14px;
  font-weight: 900;
  text-align: right;
}

.home-kpi-change.down {
  color: #e11d2e;
}

.home-analytics-grid {
  display: grid;
  grid-template-columns: minmax(420px, 0.92fr) minmax(500px, 1fr);
  gap: 14px;
}

.home-dashboard-panel {
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 8px;
  color: #071423;
  background: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.home-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 16px;
  color: #fff;
  background: linear-gradient(135deg, #04101b, #0b2b45);
}

.home-panel-heading h2 {
  font-size: 14px;
  text-transform: uppercase;
}

.home-dre-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 12px;
}

.home-dre-panel .table-wrapper {
  width: 100%;
  overflow-x: hidden;
}

.home-dre-table th,
.home-dre-table td {
  border-bottom: 1px solid #e4e9f0;
  padding: 9px 10px;
  text-align: right;
  white-space: nowrap;
}

.home-dre-table th:first-child,
.home-dre-table td:first-child {
  width: 15%;
  text-align: left;
  white-space: normal;
}

.home-dre-table th:nth-child(2),
.home-dre-table td:nth-child(2) {
  width: 5%;
}

.home-dre-table th:nth-child(3),
.home-dre-table td:nth-child(3) {
  width: 5%;
}

.home-dre-table th:nth-child(4),
.home-dre-table td:nth-child(4) {
  width: 75%;
}

.home-dre-table th {
  color: #172236;
  background: #f4f7fa;
  font-size: 11px;
  text-transform: uppercase;
}

.home-dre-table tr.total-row td {
  color: #a66d00;
  background: #fff8e8;
  font-weight: 900;
}

.home-dre-table tr.positive-row td {
  color: #008f3a;
  background: #eaf8ef;
  font-weight: 900;
}

.home-dre-table tr.negative-row td {
  color: #071423;
  background: #fff;
  font-weight: 400;
}

.home-chart-stack {
  display: grid;
  gap: 14px;
}

.home-line-chart,
.home-bar-chart {
  min-height: 250px;
  padding: 16px;
}

.home-line-chart svg,
.home-bar-chart svg {
  width: 100%;
  height: 250px;
}

.home-small-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.home-donut-panel {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 180px;
  padding: 16px;
}

.home-donut {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: conic-gradient(#061421 0 30%, #0f6b5b 30% 52%, #d4af37 52% 70%, #62748a 70% 100%);
}

.home-donut-list,
.home-horizontal-bars {
  display: grid;
  gap: 9px;
  padding: 16px;
  font-size: 12px;
}

.home-donut-list {
  padding: 0;
  font-size: 9px;
}

.home-legend-item,
.home-company-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
}

.home-legend-item i {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-radius: 50%;
}

.home-company-track {
  grid-column: 1 / -1;
  height: 14px;
  border-radius: 99px;
  background: #edf1f5;
  overflow: hidden;
}

.home-company-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #061421, #0d2b45);
}

.home-bottom-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin-top: 14px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 8px;
  background: rgba(1, 11, 20, 0.72);
}

.home-bottom-strip div {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-items: center;
  min-height: 76px;
  border-right: 1px solid rgba(212, 175, 55, 0.35);
  padding: 16px 18px;
}

.home-bottom-strip div:last-child {
  border-right: 0;
}

.home-bottom-strip p,
.home-bottom-strip strong {
  display: block;
}

.bottom-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid #d4af37;
  border-radius: 50%;
  color: #d4af37;
  font-size: 15px;
  font-weight: 900;
}

.home-bottom-strip p {
  margin: 0;
  color: #dbe5ee;
  font-size: 13px;
}

.home-bottom-strip strong {
  grid-column: 1 / -1;
  margin-top: 4px;
  color: #fff;
  font-size: 15px;
  padding-left: 46px;
}

.home-hidden-metrics {
  display: none;
}

.calendar-actions label {
  display: grid;
  gap: 6px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.calendar-actions select {
  min-width: 160px;
  min-height: 44px;
  border: 1px solid #d4af37;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  font-weight: 800;
}

.economic-calendar-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.economic-calendar-summary .metric {
  border-top: 3px solid #d4af37;
}

.calendar-bank-panel {
  margin-bottom: 18px;
}

.calendar-bank-grid .bank-card {
  border-top: 3px solid #d4af37;
}

.budget-filter-panel {
  margin-bottom: 18px;
}

.economic-calendar-panel {
  border: 1px solid #dfe5ed;
  border-radius: 10px;
  padding: 14px;
  background: #fff;
  overflow: auto;
}

.budget-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
}

.settings-layout {
