@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --font-ui: "Aptos", "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --rnb-blue-700: #105ba8;
  --rnb-blue-600: #056cc1;
  --rnb-cyan-500: #04abf3;
  --rnb-cyan-400: #04b4f4;
  --rnb-blue-500: #2b72c0;
  --rnb-blue-800: #1d5998;
  --rnb-slate: #535476;
  --rnb-blue-soft: #5b96d2;
  --rnb-blue-soft-2: #88acd4;
  --rnb-blue-soft-3: #a1c9ec;
  --rnb-surface-tint: #f3fbfb;
  --bg: #f5f8fc;
  --bg-alt: #edf4fb;
  --card: rgba(255, 255, 255, 0.98);
  --card-strong: #ffffff;
  --border: #d9e6f3;
  --border-strong: #c7d8ea;
  --text: #142033;
  --text-soft: #67758d;
  --text-faint: #8fa0b7;
  --navy: #105ba8;
  --navy-strong: #0d4580;
  --teal: #056cc1;
  --teal-strong: #105ba8;
  --teal-soft: rgba(4, 171, 243, 0.1);
  --mint-row: #ffffff;
  --mint-border: #e6eff8;
  --cold: #eef6ff;
  --cold-text: #105ba8;
  --warm: #eef7ff;
  --warm-text: #056cc1;
  --hot: #dff3ff;
  --hot-text: #045bc3;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --success: #16a34a;
  --success-soft: #dcfce7;
  --warning: #f59e0b;
  --warning-soft: #fef3c7;
  --shadow: 0 16px 32px rgba(16, 91, 168, 0.08);
  --radius-card: 20px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  font-size: 15px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  line-height: 1.45;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(4, 171, 243, 0.08), transparent 24%),
    linear-gradient(180deg, #f8fbfe 0%, #f3f8fd 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.hidden,
.sr-only {
  display: none !important;
}

.app-layout {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  min-height: 100vh;
  gap: 14px;
  padding: 12px;
}

.app-layout.is-sidebar-collapsed {
  grid-template-columns: 80px minmax(0, 1fr);
}

.app-layout.is-sidebar-collapsed .sidebar {
  align-items: center;
  padding-inline: 12px;
}

.app-layout.is-sidebar-collapsed .sidebar-top {
  flex-direction: column;
  width: 100%;
}

.app-layout.is-sidebar-collapsed .sidebar-brand {
  justify-content: center;
}

.app-layout.is-sidebar-collapsed .sidebar-brand-copy,
.app-layout.is-sidebar-collapsed .nav-link-label {
  display: none;
}

.app-layout.is-sidebar-collapsed .sidebar-nav {
  width: 100%;
}

.app-layout.is-sidebar-collapsed .sidebar-foot {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.app-layout.is-sidebar-collapsed .nav-link {
  justify-content: center;
  padding: 11px;
}

.app-layout.is-sidebar-collapsed .sidebar-logout {
  min-height: 40px;
  padding: 0 8px;
  font-size: 0.76rem;
}

.app-layout.is-sidebar-collapsed .sidebar-profile {
  width: auto;
}

.app-layout.is-sidebar-collapsed .sidebar-user-chip {
  width: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  justify-content: center;
}

.app-layout.is-sidebar-collapsed .sidebar-user-chip .user-chip-copy {
  display: none;
}

.app-layout.is-sidebar-collapsed .sidebar-profile .profile-popover {
  right: auto;
  left: calc(100% + 12px);
  bottom: 0;
}

.workspace-topbar,
.surface-card,
.hero-card,
.filters-card,
.table-card,
.kanban-column,
.modal-card,
.panel-card,
.metric-card,
.statement-card,
.empty-state,
.project-highlight {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: none;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 14px;
  border-radius: 24px;
  background: linear-gradient(180deg, #0d3f73 0%, #105ba8 42%, #0d4580 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 42px rgba(16, 91, 168, 0.22);
  color: #e2e8f0;
}

.sidebar-top,
.sidebar-brand,
.brand-mark,
.workspace-topbar,
.topbar-actions,
.user-chip,
.summary-card,
.toolbar-actions,
.section-title,
.source-banner,
.modal-header,
.review-actions,
.quick-actions,
.metric-header,
.nav-link,
.page-chip,
.kanban-header,
.list-item,
.project-inline-meta {
  display: flex;
  align-items: center;
}

.sidebar-top {
  justify-content: flex-start;
  gap: 0;
}

.sidebar-brand {
  gap: 12px;
  min-width: 0;
}

.sidebar-brand-toggle {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.sidebar-brand-toggle:hover,
.sidebar-brand-toggle:focus-visible {
  opacity: 0.96;
}

.brand-mark {
  justify-content: center;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(193, 222, 235, 0.18);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-brand-copy {
  min-width: 0;
}

.sidebar-brand-title,
.user-name,
.page-eyebrow,
.page-title,
.page-subtitle,
.summary-label,
.summary-value,
.section-title strong,
.section-title span {
  margin: 0;
}

.sidebar-brand-title {
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #f8fafc;
}

.page-subtitle,
.user-meta,
.page-eyebrow,
.metric-note,
.soft-copy,
.hero-inline-copy,
.empty-state p,
.list-item-copy span,
.table-meta {
  color: var(--text-soft);
}

.nav-link-icon svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-link {
  gap: 12px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  color: #cbd5e1;
  transition: 0.2s ease;
}

.nav-link:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(148, 163, 184, 0.14);
}

.nav-link:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(197, 223, 235, 0.24);
}

.nav-link.is-active {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.nav-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  min-width: 18px;
  height: 18px;
  color: #a9bbce;
}

.nav-link.is-active .nav-link-icon {
  color: #ffffff;
}

.nav-link-label {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.sidebar-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: stretch;
  padding-top: 2px;
}

.sidebar-profile {
  width: 100%;
}

.sidebar-logout {
  width: 100%;
  min-height: 42px;
}

.workspace {
  min-width: 0;
  padding-right: 4px;
}

.workspace-topbar {
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
}

.topbar-main,
.topbar-period,
.topbar-year,
.topbar-months,
.page-heading {
  display: flex;
  align-items: center;
}

.topbar-main {
  gap: 24px;
  flex: 1;
  min-width: 0;
}

.topbar-route-tools {
  display: none;
}

.topbar-route-tools:empty {
  display: none;
}

.page-heading {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.page-subtitle--ghost {
  display: none;
}

.topbar-period {
  flex-wrap: wrap;
  gap: 12px;
}

.topbar-year {
  gap: 10px;
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 700;
}

.topbar-year select {
  height: 36px;
  min-width: 84px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--navy);
  font-weight: 700;
}

.topbar-months {
  flex-wrap: wrap;
  gap: 8px;
}

.month-chip {
  min-width: 44px;
  height: 34px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.month-chip.is-active {
  background: linear-gradient(135deg, var(--rnb-blue-600), var(--rnb-cyan-500));
  color: #fff;
  box-shadow: 0 10px 18px rgba(4, 171, 243, 0.18);
}

.topbar-actions {
  gap: 10px;
}

.topbar-chip {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 600;
}

.page-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-strong);
}

.page-title {
  margin-top: 4px;
  font-size: 1.52rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.page-subtitle {
  margin-top: 4px;
  max-width: 620px;
  font-size: 0.94rem;
  line-height: 1.55;
}

.ghost-pill,
.toolbar-button,
.secondary-button,
.mode-chip,
.format-option,
.toggle-chip,
.primary-button,
.outline-button,
.navy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card-strong);
  color: var(--text);
  box-shadow: 0 1px 0 rgba(226, 232, 240, 1);
  transition: 0.2s ease;
}

.ghost-pill,
.toolbar-button,
.secondary-button,
.outline-button,
.navy-button {
  height: 40px;
  padding: 0 16px;
  font-weight: 600;
}

.ghost-pill:hover,
.toolbar-button:hover,
.secondary-button:hover,
.mode-chip:hover,
.format-option:hover,
.outline-button:hover {
  transform: none;
  border-color: rgba(21, 96, 130, 0.24);
  color: var(--teal-strong);
}

.primary-button,
.navy-button {
  color: #fff;
  border-color: transparent;
}

.primary-button {
  background: linear-gradient(135deg, var(--rnb-blue-600), var(--rnb-cyan-500));
  box-shadow: 0 10px 22px rgba(4, 171, 243, 0.18);
}

.navy-button {
  background: linear-gradient(135deg, var(--navy), var(--navy-strong));
  box-shadow: 0 10px 22px rgba(16, 23, 51, 0.14);
}

.user-chip {
  gap: 12px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
}

.user-chip--button {
  min-height: 50px;
  padding-right: 12px;
  text-align: left;
}

.user-chip--button:hover,
.user-chip--button:focus-visible {
  border-color: rgba(16, 91, 168, 0.22);
  box-shadow: 0 10px 24px rgba(16, 91, 168, 0.12);
}

.profile-menu {
  position: relative;
}

.sidebar-user-chip {
  width: 100%;
  justify-content: flex-start;
  min-height: 62px;
  padding: 10px 12px;
}

.user-chip-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.sidebar-user-chip .user-name,
.sidebar-user-chip .user-meta {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sidebar-user-chip .user-name {
  font-size: 0.92rem;
}

.sidebar-user-chip .user-meta {
  font-size: 0.78rem;
}

.sidebar-profile .profile-popover {
  top: auto;
  right: 0;
  bottom: calc(100% + 10px);
}

.profile-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  display: grid;
  gap: 8px;
  min-width: 192px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.14);
}

.profile-action {
  width: 100%;
}

.profile-popover-note {
  font-size: 0.76rem;
  color: var(--text-soft);
  text-align: center;
}

.user-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(5, 108, 193, 0.14), rgba(4, 171, 243, 0.2));
  color: var(--navy);
  font-weight: 700;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
}

.sidebar-logout {
  width: 100%;
  justify-content: center;
  min-height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sidebar-logout:hover,
.sidebar-logout:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.32);
}

.sidebar-logout:active {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow: inset 0 2px 6px rgba(9, 30, 66, 0.18);
}

.screen-root {
  margin-top: 18px;
  padding-bottom: 28px;
}

.screen-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.screen-stack--launches {
  min-height: calc(100vh - 156px);
}

.app-layout.is-launches-route .screen-stack--launches {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

.app-layout.is-summary-route {
  grid-template-columns: 80px minmax(0, 1fr);
  min-height: 100vh;
  height: 100vh;
  gap: 0;
  padding: 0;
  background: linear-gradient(180deg, #eef3f8 0%, #f8fbff 100%);
  overflow: hidden;
}

.app-layout.is-launches-route {
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
}

.app-layout.is-summary-route .sidebar {
  gap: 16px;
  align-items: center;
  min-height: 100%;
  padding: 14px 10px;
  border-radius: 0;
  border: 0;
  background: linear-gradient(180deg, #0f4f91 0%, #165fa8 100%);
  box-shadow: none;
}

.app-layout.is-summary-route .sidebar-top,
.app-layout.is-summary-route .sidebar-brand,
.app-layout.is-summary-route .sidebar-nav {
  width: 100%;
}

.app-layout.is-summary-route .sidebar-top,
.app-layout.is-summary-route .sidebar-brand,
.app-layout.is-summary-route .sidebar-nav,
.app-layout.is-summary-route .nav-link {
  justify-content: center;
}

.app-layout.is-summary-route .sidebar-brand-copy,
.app-layout.is-summary-route .nav-link-label,
.app-layout.is-summary-route .sidebar-foot {
  display: none;
}

.app-layout.is-summary-route .brand-mark {
  width: 50px;
  height: 50px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.1);
}

.app-layout.is-summary-route .sidebar-nav {
  align-items: center;
  gap: 12px;
}

.app-layout.is-summary-route .nav-link {
  width: 54px;
  min-width: 54px;
  min-height: 42px;
  padding: 0;
  border-radius: 14px;
}

.app-layout.is-summary-route .nav-link-icon,
.app-layout.is-summary-route .nav-link-icon svg {
  width: 16px;
  height: 16px;
}

.app-layout.is-summary-route .workspace {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 100vh;
  height: 100vh;
  padding: 8px 8px 10px;
  overflow: hidden;
}

.app-layout.is-summary-route .workspace-topbar {
  gap: 14px;
  margin-top: 0;
  padding: 12px 16px;
  border-radius: 22px;
  border: 1px solid #d7e2ef;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.app-layout.is-summary-route .topbar-main {
  gap: 18px;
}

.app-layout.is-summary-route .page-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #5e6b80;
}

.app-layout.is-summary-route .topbar-year {
  gap: 8px;
  font-size: 0.78rem;
  color: #66788e;
}

.app-layout.is-summary-route .topbar-year select {
  height: 34px;
  min-width: 82px;
  border-radius: 10px;
  background: #f7faff;
}

.app-layout.is-summary-route .month-chip {
  min-width: 36px;
  height: 32px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 0.76rem;
}

.app-layout.is-summary-route .month-chip.is-active {
  box-shadow: 0 10px 18px rgba(33, 124, 224, 0.18);
}

.app-layout.is-summary-route .topbar-ai-button {
  height: 36px;
  border-radius: 11px;
  padding: 0 14px;
  font-size: 0.82rem;
}

.app-layout.is-summary-route .user-chip {
  padding: 8px 10px;
  border-radius: 14px;
}

.app-layout.is-summary-route .user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.app-layout.is-summary-route .screen-root {
  display: flex;
  min-height: 0;
  height: 100%;
  margin-top: 8px;
  padding-bottom: 0;
  overflow: hidden;
}

.dashboard-screen {
  display: grid;
  grid-template-rows: auto minmax(0, 0.84fr) minmax(0, 1fr);
  gap: 8px;
  min-height: 0;
  height: 100%;
  width: 100%;
}

.dashboard-kpi-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid #ccd8e5;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.dashboard-kpi-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 94px;
  padding: 12px 16px;
  border-right: 1px solid #e6edf5;
}

.dashboard-kpi-item:last-child {
  border-right: 0;
}

.dashboard-kpi-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(180deg, #eef6ff 0%, #dfeefe 100%);
  color: #145aa0;
}

.dashboard-kpi-icon svg {
  width: 26px;
  height: 26px;
}

.dashboard-kpi-copy {
  display: grid;
  gap: 4px;
}

.dashboard-kpi-label,
.dashboard-kpi-delta,
.dashboard-panel-head span,
.dashboard-goal-stat span,
.dashboard-donut-core span,
.dashboard-donut-legend-item span,
.dashboard-monthly-values span,
.dashboard-horizontal-label {
  margin: 0;
  color: #8a95a6;
}

.dashboard-kpi-label {
  font-size: 0.78rem;
  font-weight: 700;
}

.dashboard-kpi-value {
  display: block;
  margin: 0;
  color: #14345a;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.dashboard-kpi-item--income .dashboard-kpi-value {
  color: #0f3c73;
}

.dashboard-kpi-item--expense .dashboard-kpi-value {
  color: #cc221c;
}

.dashboard-kpi-item--balance .dashboard-kpi-value {
  color: #1f7a32;
}

.dashboard-kpi-delta {
  font-size: 0.68rem;
  font-weight: 700;
}

.dashboard-kpi-delta.is-positive {
  color: #1e9d52;
}

.dashboard-kpi-delta.is-negative {
  color: #d64545;
}

.dashboard-kpi-delta.is-neutral {
  color: #8a95a6;
}

.dashboard-hero-grid {
  display: grid;
  grid-template-columns: clamp(300px, 18vw, 336px) minmax(0, 1fr);
  gap: 10px;
  min-height: 0;
  width: 100%;
}

.dashboard-analysis-grid {
  display: grid;
  grid-template-columns: clamp(300px, 18vw, 336px) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
  min-height: 0;
  width: 100%;
}

.dashboard-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  min-height: 0;
  padding: 12px 14px 14px;
  border-radius: 20px;
  border: 1px solid #ccd8e5;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.dashboard-panel--span-rows {
  grid-row: span 2;
}

.dashboard-panel-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dashboard-panel-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.dashboard-panel-head strong,
.dashboard-donut-legend-item strong,
.dashboard-goal-stat strong,
.dashboard-goal-percent {
  margin: 0;
}

.dashboard-panel-head strong {
  font-size: 0.95rem;
  font-weight: 800;
  color: #17263d;
}

.dashboard-panel-head span {
  font-size: 0.78rem;
  line-height: 1.35;
}

.dashboard-goal-layout {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 100%;
}

.dashboard-goal-stats {
  display: grid;
  gap: 8px;
}

.dashboard-goal-stats--footer {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-goal-stat {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid #e7eef6;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8fc 100%);
}

.dashboard-goal-stat span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-goal-stat strong {
  font-size: 1.08rem;
  font-weight: 800;
  color: #17263d;
}

.dashboard-goal-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.dashboard-goal-gauge {
  position: relative;
  width: min(100%, 238px);
  height: 154px;
  margin-inline: auto;
}

.dashboard-goal-gauge-svg {
  display: block;
  width: 100%;
  height: auto;
}

.dashboard-goal-arc-shadow,
.dashboard-goal-arc-track,
.dashboard-goal-arc-progress,
.dashboard-goal-arc-range {
  fill: none;
  stroke-linecap: round;
}

.dashboard-goal-arc-shadow {
  stroke: rgba(18, 44, 74, 0.08);
  stroke-width: 20;
}

.dashboard-goal-arc-track {
  stroke: #e6eef7;
  stroke-width: 16;
}

.dashboard-goal-arc-range {
  stroke-width: 16;
}

.dashboard-goal-arc-range--critical {
  stroke: #cf1400;
}

.dashboard-goal-arc-range--attention {
  stroke: #ffea00;
}

.dashboard-goal-arc-range--healthy {
  stroke: #1cbc57;
}

.dashboard-goal-needle-shell {
  position: absolute;
  left: 50%;
  bottom: 34px;
  width: 4px;
  height: 64px;
  border-radius: 999px;
  background: linear-gradient(180deg, #304d69 0%, #17314e 100%);
  box-shadow: 0 12px 28px rgba(23, 49, 78, 0.18);
  transform-origin: center calc(100% - 2px);
}

.dashboard-goal-cap {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 18px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #17314e;
  box-shadow: 0 0 0 6px #ffffff, 0 10px 24px rgba(23, 49, 78, 0.18);
}

.dashboard-goal-center {
  position: absolute;
  inset: auto 0 20px;
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
}

.dashboard-goal-center span,
.dashboard-goal-center small {
  margin: 0;
}

.dashboard-goal-center span {
  color: #8694a7;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dashboard-goal-center strong {
  margin: 0;
  color: #17314e;
  font-size: 1.65rem;
  font-weight: 800;
}

.dashboard-goal-center small {
  color: #7b8797;
  font-size: 0.76rem;
  font-weight: 700;
}

.dashboard-mini-bar-chart {
  width: 100%;
  height: auto;
  min-height: 100px;
}

.dashboard-goal-scale {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  justify-content: space-between;
  padding: 0 16px;
  color: #97a4b4;
  font-size: 0.68rem;
  font-weight: 700;
}

.dashboard-goal-gauge.is-healthy .dashboard-goal-center strong,
.dashboard-goal-gauge.is-healthy .dashboard-goal-center small {
  color: #1b7a44;
}

.dashboard-goal-gauge.is-attention .dashboard-goal-center strong,
.dashboard-goal-gauge.is-attention .dashboard-goal-center small {
  color: #b48800;
}

.dashboard-goal-gauge.is-critical .dashboard-goal-center strong,
.dashboard-goal-gauge.is-critical .dashboard-goal-center small {
  color: #c2412d;
}

.dashboard-monthly-chart {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  min-height: 0;
  height: 100%;
}

.dashboard-monthly-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.dashboard-monthly-focus {
  display: grid;
  gap: 4px;
}

.dashboard-monthly-focus span {
  margin: 0;
  color: #8a95a6;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dashboard-monthly-focus strong {
  margin: 0;
  color: #17263d;
  font-size: 1rem;
  font-weight: 800;
}

.dashboard-monthly-legend {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dashboard-monthly-badge {
  display: grid;
  grid-template-columns: 12px auto;
  align-items: center;
  gap: 2px 8px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid #e2ebf5;
  background: linear-gradient(180deg, #fbfdff 0%, #f5f9fd 100%);
}

.dashboard-monthly-badge--target {
  border-color: rgba(29, 92, 161, 0.16);
  background: linear-gradient(180deg, rgba(29, 92, 161, 0.08) 0%, rgba(29, 92, 161, 0.03) 100%);
}

.dashboard-monthly-badge--realized {
  border-color: rgba(134, 199, 0, 0.18);
  background: linear-gradient(180deg, rgba(134, 199, 0, 0.1) 0%, rgba(134, 199, 0, 0.04) 100%);
}

.dashboard-monthly-badge .dashboard-dot {
  grid-row: span 2;
}

.dashboard-monthly-badge small,
.dashboard-monthly-badge strong {
  margin: 0;
}

.dashboard-monthly-badge small {
  color: #8a95a6;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dashboard-monthly-badge strong {
  color: #17263d;
  font-size: 0.76rem;
  font-weight: 800;
}

.dashboard-monthly-plot {
  position: relative;
  min-height: 0;
  height: 100%;
  padding: 12px 6px 0;
  border-radius: 20px;
  border: 1px solid #edf3f9;
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 100%),
    repeating-linear-gradient(to top, rgba(206, 219, 232, 0.55) 0 1px, transparent 1px 48px);
  overflow: hidden;
}

.dashboard-monthly-plot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 90, 160, 0.05) 0%, rgba(23, 90, 160, 0) 38%);
  pointer-events: none;
}

.dashboard-monthly-bars {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  min-height: 0;
  height: 100%;
  position: relative;
  z-index: 1;
}

.dashboard-monthly-column {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  gap: 8px;
  min-height: 0;
  padding: 4px 4px 0;
  border-radius: 16px;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-monthly-column.is-active {
  background: linear-gradient(180deg, rgba(25, 107, 177, 0.08) 0%, rgba(25, 107, 177, 0.02) 100%);
  box-shadow: inset 0 0 0 1px rgba(25, 107, 177, 0.12);
}

.dashboard-monthly-bar-group {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 100%;
  min-height: 124px;
}

.dashboard-monthly-bar {
  width: 18px;
  min-height: 12px;
  border-radius: 999px 999px 6px 6px;
}

.dashboard-monthly-bar--target {
  background: linear-gradient(180deg, #1d5ca1 0%, #164c87 100%);
  box-shadow: 0 10px 18px rgba(29, 92, 161, 0.16);
}

.dashboard-monthly-bar--realized {
  background: linear-gradient(180deg, #9bdc00 0%, #86c700 100%);
  box-shadow: 0 10px 18px rgba(134, 199, 0, 0.16);
}

.dashboard-monthly-label {
  color: #66788e;
  font-size: 0.74rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.dashboard-monthly-column.is-active .dashboard-monthly-label {
  color: #145aa0;
}

.dashboard-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dashboard-dot--target {
  background: #1d5ca1;
}

.dashboard-dot--realized {
  background: #9bdc00;
}

.dashboard-donut-layout {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-content: start;
  gap: 12px;
  min-height: 0;
  height: 100%;
  padding-inline: 8px;
}

.dashboard-donut-chart {
  position: relative;
  width: 154px;
  height: 154px;
  margin: 0 auto;
  border-radius: 50%;
}

.dashboard-donut-core {
  position: absolute;
  inset: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  text-align: center;
  box-shadow: inset 0 0 0 1px #e8eef5;
}

.dashboard-donut-core strong {
  font-size: 1rem;
  font-weight: 800;
  color: #17263d;
}

.dashboard-donut-core span {
  font-size: 0.72rem;
  font-weight: 700;
}

.dashboard-donut-legend {
  display: grid;
  gap: 8px;
  width: 100%;
  max-width: 240px;
}

.dashboard-donut-legend-item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.dashboard-donut-swatch {
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border-radius: 50%;
}

.dashboard-donut-legend-item strong {
  display: block;
  font-size: 0.78rem;
  color: #17263d;
}

.dashboard-donut-legend-item span {
  display: block;
  margin-top: 2px;
  font-size: 0.7rem;
  line-height: 1.3;
}

.dashboard-donut-layout--legend-horizontal .dashboard-donut-legend {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 10px 18px;
  max-width: none;
  flex-wrap: wrap;
}

.dashboard-donut-layout--legend-horizontal .dashboard-donut-legend-item {
  width: auto;
  min-width: 124px;
  grid-template-columns: 12px auto;
  align-items: center;
}

.dashboard-donut-layout--legend-horizontal .dashboard-donut-legend-item--inline {
  padding: 2px 0;
}

.dashboard-donut-layout--legend-horizontal .dashboard-donut-legend-item strong,
.dashboard-donut-layout--legend-horizontal .dashboard-donut-legend-item span {
  text-align: left;
}

.dashboard-horizontal-bars {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.dashboard-horizontal-row {
  display: grid;
  grid-template-columns: minmax(84px, 1fr) minmax(104px, 1.2fr) auto;
  align-items: center;
  gap: 8px;
}

.dashboard-horizontal-label {
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.25;
}

.dashboard-horizontal-track {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #edf3f8;
}

.dashboard-horizontal-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.dashboard-horizontal-fill--orange {
  background: linear-gradient(90deg, #ff7a23 0%, #ff9b55 100%);
}

.dashboard-horizontal-fill--blue {
  background: linear-gradient(90deg, #1b6db0 0%, #3291db 100%);
}

.dashboard-horizontal-value {
  font-size: 0.76rem;
  font-weight: 700;
  color: #1f2e43;
  white-space: nowrap;
}

.dashboard-chart-empty {
  min-height: 0;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 12px;
  border-radius: 16px;
  border: 1px dashed #d5e0ec;
  background: #fbfdff;
  text-align: center;
  color: #91a0b4;
}

.dashboard-analysis-grid .dashboard-panel-body > .dashboard-chart-empty,
.dashboard-analysis-grid .dashboard-panel-body > .dashboard-horizontal-bars,
.dashboard-analysis-grid .dashboard-panel-body > .dashboard-donut-layout {
  flex: 1 1 auto;
}

.dashboard-screen {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: auto;
}

.dashboard-kpi-strip {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid #d7e2ed;
  border-radius: 24px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
}

.dashboard-kpi-item {
  min-height: 96px;
  padding: 16px 16px;
  gap: 14px;
  border-right-color: #e9eff5;
}

.dashboard-kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #f2f7fc;
  color: #1d5ca1;
}

.dashboard-kpi-icon svg {
  width: 26px;
  height: 26px;
}

.dashboard-kpi-copy {
  gap: 6px;
}

.dashboard-kpi-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-kpi-value {
  font-size: 1.18rem;
  line-height: 1;
}

.dashboard-kpi-item--goal .dashboard-kpi-value {
  color: #0f4f91;
}

.dashboard-kpi-delta {
  font-size: 0.68rem;
}

.dashboard-kpi-delta.is-balanced {
  color: #0f4f91;
}

.dashboard-hero-grid {
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.dashboard-analysis-grid {
  grid-template-columns: 300px minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 14px;
  align-items: start;
}

.dashboard-panel {
  gap: 16px;
  padding: 18px 20px 20px;
  border-radius: 24px;
  border-color: #d7e2ed;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
}

.dashboard-panel-head {
  gap: 4px;
}

.dashboard-panel-head strong {
  font-size: 1.02rem;
  font-weight: 800;
  color: #14263d;
}

.dashboard-panel-head span {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #718196;
}

.dashboard-panel-body {
  gap: 18px;
  justify-content: flex-start;
}

.dashboard-panel--goal,
.dashboard-panel--monthly {
  min-height: 320px;
}

.dashboard-panel--bank,
.dashboard-panel--payment,
.dashboard-panel--category,
.dashboard-panel--subcategory {
  min-height: 158px;
}

.dashboard-panel--credit {
  min-height: 330px;
}

.dashboard-panel--bank .dashboard-panel-body,
.dashboard-panel--payment .dashboard-panel-body,
.dashboard-panel--category .dashboard-panel-body,
.dashboard-panel--subcategory .dashboard-panel-body,
.dashboard-panel--credit .dashboard-panel-body {
  gap: 12px;
}

.executive-panel-stack {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 18px;
  min-height: 0;
}

.executive-segmented-control {
  display: inline-flex;
  align-self: flex-start;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: #f4f7fa;
  border: 1px solid #e5ebf2;
}

.executive-segmented-option {
  min-height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #617287;
  font-size: 0.8rem;
  font-weight: 700;
}

.executive-segmented-option.is-active {
  background: #ffffff;
  color: #14345a;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.executive-goal-card {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 0;
}

.executive-goal-stats {
  display: grid;
  gap: 10px;
}

.executive-stat-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid #e5ebf2;
  background: #fbfdff;
}

.executive-stat-card span {
  color: #7b8898;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.executive-stat-card strong {
  color: #14263d;
  font-size: 1.16rem;
  font-weight: 800;
}

.executive-stat-card.is-positive strong {
  color: #18794e;
}

.executive-goal-bullet {
  padding: 10px 0 2px;
}

.executive-bullet-chart {
  width: 100%;
  height: auto;
}

.executive-goal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid #eef3f8;
}

.executive-goal-footer-copy {
  display: grid;
  gap: 2px;
}

.executive-goal-footer strong {
  color: #14263d;
  font-size: 1.28rem;
  font-weight: 800;
}

.executive-goal-footer span {
  font-size: 0.82rem;
  font-weight: 700;
  color: #617287;
}

.executive-goal-footer .is-positive {
  color: #18794e;
}

.executive-goal-footer .is-balanced {
  color: #0f4f91;
}

.executive-goal-footer .is-attention {
  color: #b56d00;
}

.executive-goal-gap {
  display: grid;
  justify-items: end;
  gap: 3px;
}

.executive-goal-gap small {
  color: #7b8898;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.executive-goal-gap strong {
  font-size: 0.98rem;
}

.executive-goal-gap.is-positive strong,
.executive-goal-gap.is-positive small {
  color: #18794e;
}

.dashboard-panel--goal .dashboard-panel-body {
  justify-content: center;
}

.dashboard-goal-summary {
  display: grid;
  gap: 18px;
  width: 100%;
  padding: 4px 2px;
}

.dashboard-goal-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.dashboard-goal-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.dashboard-goal-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(180deg, #eef6ff 0%, #dfeefe 100%);
  color: #145aa0;
}

.dashboard-goal-icon svg {
  width: 26px;
  height: 26px;
}

.dashboard-goal-label {
  color: #1f2937;
  font-size: 0.98rem;
  font-weight: 500;
  white-space: nowrap;
  min-width: 0;
}

.dashboard-goal-value-wrap {
  display: flex;
  justify-content: flex-end;
  flex: 0 1 auto;
  min-width: 0;
}

.dashboard-goal-value-line {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.dashboard-goal-value-text {
  display: grid;
  justify-items: end;
  gap: 3px;
  min-width: 0;
}

.dashboard-goal-value {
  color: #111827;
  font-size: 1.12rem;
  font-weight: 800;
  white-space: nowrap;
}

.dashboard-goal-value.is-danger,
.dashboard-goal-accent.is-danger {
  color: #dc2626;
}

.dashboard-goal-accent {
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1;
  text-align: center;
}

.dashboard-goal-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #d1d5db;
  flex: 0 0 auto;
}

.dashboard-goal-dot.is-danger {
  background: #dc2626;
}

.dashboard-goal-row--remaining .dashboard-goal-value-text {
  justify-items: center;
}

.dashboard-goal-row--remaining .dashboard-goal-copy {
  align-items: flex-start;
}

.executive-goal-card--empty {
  justify-content: center;
}

.executive-goal-empty {
  display: grid;
  gap: 10px;
  padding: 20px;
  border-radius: 18px;
  border: 1px dashed #d4dfe9;
  background: #fbfdff;
}

.executive-goal-empty strong {
  color: #14263d;
  font-size: 1rem;
}

.executive-goal-empty p {
  margin: 0;
  color: #6d7d91;
  line-height: 1.6;
}

.executive-revenue-chart-shell {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
}

.executive-revenue-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.executive-revenue-summary-copy {
  display: grid;
  gap: 4px;
}

.executive-revenue-summary-copy span,
.executive-revenue-summary-metrics small {
  color: #7b8898;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.executive-revenue-summary-copy strong {
  color: #14263d;
  font-size: 1.06rem;
  font-weight: 800;
}

.executive-revenue-summary-metrics {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.executive-revenue-summary-metrics span {
  display: grid;
  gap: 4px;
  min-width: 128px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid #e5ebf2;
  background: #fbfdff;
}

.executive-revenue-summary-metrics strong {
  color: #14263d;
  font-size: 0.92rem;
  font-weight: 800;
}

.executive-revenue-chart {
  width: 100%;
  height: auto;
  min-height: 250px;
}

.executive-revenue-plot {
  position: relative;
  width: 100%;
  padding: 0 12px;
  box-sizing: border-box;
}

.executive-revenue-hotspots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}

.executive-revenue-hotspot {
  position: absolute;
  pointer-events: auto;
  background: transparent;
}

.executive-revenue-hotspot:hover,
.executive-revenue-hotspot:focus-within {
  z-index: 4;
}

.executive-revenue-tooltip {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 236px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid #d7e2ed;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -8px);
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
  pointer-events: none;
}

.executive-revenue-tooltip.is-start {
  left: 0;
  transform: translate(0, -8px);
}

.executive-revenue-tooltip.is-end {
  left: auto;
  right: 16px;
  transform: translate(0, -8px);
}

.executive-revenue-hotspot:hover .executive-revenue-tooltip,
.executive-revenue-hotspot:focus-within .executive-revenue-tooltip {
  opacity: 1;
  visibility: visible;
}

.executive-revenue-hotspot:hover .executive-revenue-tooltip.is-center,
.executive-revenue-hotspot:focus-within .executive-revenue-tooltip.is-center {
  transform: translate(-50%, 0);
}

.executive-revenue-hotspot:hover .executive-revenue-tooltip.is-start,
.executive-revenue-hotspot:focus-within .executive-revenue-tooltip.is-start,
.executive-revenue-hotspot:hover .executive-revenue-tooltip.is-end,
.executive-revenue-hotspot:focus-within .executive-revenue-tooltip.is-end {
  transform: translate(0, 0);
}

.executive-revenue-tooltip-title {
  display: block;
  margin-bottom: 10px;
  color: #7a8ba0;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.executive-revenue-tooltip-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  color: #46627f;
  font-size: 0.8rem;
}

.executive-revenue-tooltip-row + .executive-revenue-tooltip-row {
  margin-top: 6px;
}

.executive-revenue-tooltip-row strong {
  color: #0f2640;
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.executive-revenue-tooltip-row.is-positive strong {
  color: #0fa968;
}

.executive-revenue-tooltip-row.is-negative strong {
  color: #d42c2c;
}

.executive-revenue-tooltip-row.is-neutral strong {
  color: #4f647d;
}

.executive-chart-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  color: #617287;
  font-size: 0.8rem;
  font-weight: 700;
}

.executive-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.executive-legend-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 999px;
}

.executive-legend-swatch--bar {
  background: #1d5ca1;
}

.executive-legend-swatch--line {
  background: linear-gradient(180deg, #6f7f92 0%, #6f7f92 100%);
}

.executive-chart-empty-note {
  color: #7b8898;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
}

.executive-composition-chart-shell {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}

.executive-composition-chart {
  width: 100%;
  height: auto;
}

.executive-composition-legend {
  display: grid;
  gap: 12px;
}

.executive-composition-legend--horizontal {
  display: flex;
  justify-content: center;
  gap: 14px 18px;
  flex-wrap: wrap;
}

.executive-composition-item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.executive-composition-swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 4px;
}

.executive-composition-item strong {
  display: block;
  color: #14263d;
  font-size: 0.82rem;
  font-weight: 700;
}

.executive-composition-item span {
  display: block;
  margin-top: 3px;
  color: #6d7d91;
  font-size: 0.76rem;
  line-height: 1.4;
}

.executive-ranking-chart {
  width: 100%;
  height: auto;
}

.executive-revenue-chart-shell--timeline {
  gap: 14px;
}

.executive-revenue-chart--timeline {
  min-height: 300px;
}

.executive-chart-legend--timeline {
  justify-content: center;
  gap: 18px 24px;
}

.executive-legend-swatch--meta,
.executive-legend-swatch--realized {
  width: 14px;
  height: 14px;
  border-radius: 3px;
}

.executive-legend-swatch--meta {
  background: #2f9ac4;
}

.executive-legend-swatch--realized {
  background: #e02929;
}

.executive-legend-swatch--target {
  width: 18px;
  height: 0;
  border-radius: 0;
  border-top: 2px dashed #d29a16;
}

.executive-legend-swatch--ratio {
  width: 18px;
  height: 0;
  border-radius: 0;
  border-top: 2px solid #475569;
}

.executive-status-chart {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 0;
}

.executive-status-row {
  display: grid;
  gap: 8px;
}

.executive-status-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.executive-status-head strong,
.executive-status-head span {
  margin: 0;
}

.executive-status-head strong {
  color: #14263d;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
}

.executive-status-head span {
  color: #6d7d91;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.executive-status-track {
  height: 14px;
  border-radius: 999px;
  background: #edf3f8;
  overflow: hidden;
}

.executive-status-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.dashboard-panel-body > .executive-status-chart {
  flex: 0 0 auto;
}

.app-layout.is-financial-summary-route .workspace {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 24px);
  overflow: hidden;
}

.app-layout.is-financial-summary-route .workspace-topbar {
  flex: 0 0 auto;
  padding: 12px 18px;
}

.app-layout.is-financial-summary-route .screen-root {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  margin-top: 10px;
  padding-bottom: 0;
  overflow: hidden;
}

.app-layout.is-financial-summary-route {
  --dashboard-summary-left-column: 360px;
}

.app-layout.is-financial-summary-route .dashboard-screen {
  display: grid;
  grid-template-rows: 96px 300px minmax(0, 1fr);
  gap: 10px;
  min-height: 0;
  height: 100%;
}

.app-layout.is-financial-summary-route .dashboard-kpi-strip {
  min-height: 0;
}

.app-layout.is-financial-summary-route .dashboard-kpi-item {
  min-height: 0;
  padding: 12px 14px;
}

.app-layout.is-financial-summary-route .dashboard-hero-grid {
  grid-template-columns: var(--dashboard-summary-left-column) minmax(0, 1fr);
  gap: 10px;
  min-height: 0;
}

.app-layout.is-financial-summary-route .dashboard-analysis-grid {
  grid-template-columns: var(--dashboard-summary-left-column) repeat(3, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
  gap: 10px;
  min-height: 0;
  overflow: hidden;
}

.app-layout.is-financial-summary-route .dashboard-analysis-stack {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-height: 0;
  height: 100%;
}

.app-layout.is-financial-summary-route .dashboard-panel {
  gap: 12px;
  min-height: 0;
  height: 100%;
  padding: 14px 16px;
}

.app-layout.is-financial-summary-route .dashboard-panel-head {
  gap: 2px;
}

.app-layout.is-financial-summary-route .dashboard-panel-head strong {
  font-size: 0.98rem;
}

.app-layout.is-financial-summary-route .dashboard-panel-head span {
  font-size: 0.78rem;
  line-height: 1.35;
}

.app-layout.is-financial-summary-route .dashboard-panel-body {
  gap: 8px;
  min-height: 0;
  overflow: hidden;
}

.app-layout.is-financial-summary-route .dashboard-panel--goal,
.app-layout.is-financial-summary-route .dashboard-panel--monthly,
.app-layout.is-financial-summary-route .dashboard-panel--bank,
.app-layout.is-financial-summary-route .dashboard-panel--payment,
.app-layout.is-financial-summary-route .dashboard-panel--category,
.app-layout.is-financial-summary-route .dashboard-panel--subcategory,
.app-layout.is-financial-summary-route .dashboard-panel--credit {
  min-height: 0;
  grid-column: auto;
  grid-row: auto;
}

.app-layout.is-financial-summary-route .dashboard-panel--monthly {
  padding-left: 6px;
  padding-right: 6px;
  overflow: visible;
}

.app-layout.is-financial-summary-route .dashboard-panel--monthly .dashboard-panel-head {
  padding-left: 10px;
  padding-right: 10px;
}

.app-layout.is-financial-summary-route .dashboard-panel--monthly .dashboard-panel-body {
  padding-left: 0;
  padding-right: 0;
  align-items: stretch;
  overflow: visible;
}

.app-layout.is-financial-summary-route .dashboard-analysis-stack .dashboard-panel,
.app-layout.is-financial-summary-route .dashboard-panel--credit {
  height: 100%;
}

.app-layout.is-financial-summary-route .dashboard-goal-summary {
  gap: 14px;
  padding-left: 0;
  padding-right: 0;
}

.app-layout.is-financial-summary-route .dashboard-goal-row {
  gap: 10px;
}

.app-layout.is-financial-summary-route .dashboard-goal-copy {
  gap: 10px;
}

.app-layout.is-financial-summary-route .dashboard-goal-label {
  font-size: 0.94rem;
  flex: 1 1 auto;
}

.app-layout.is-financial-summary-route .dashboard-goal-value {
  font-size: 1.08rem;
  line-height: 1.05;
}

.app-layout.is-financial-summary-route .dashboard-goal-accent {
  font-size: 0.78rem;
}

.app-layout.is-financial-summary-route .dashboard-goal-layout {
  grid-template-rows: auto auto;
  align-content: space-between;
  gap: 12px;
}

.app-layout.is-financial-summary-route .dashboard-goal-visual {
  align-items: center;
}

.app-layout.is-financial-summary-route .dashboard-goal-gauge {
  width: min(100%, 208px);
  height: 124px;
}

.app-layout.is-financial-summary-route .dashboard-goal-gauge-svg {
  height: auto;
}

.app-layout.is-financial-summary-route .dashboard-goal-needle-shell {
  bottom: 29px;
  width: 4px;
  height: 54px;
}

.app-layout.is-financial-summary-route .dashboard-goal-cap {
  bottom: 23px;
  width: 16px;
  height: 16px;
  box-shadow: 0 0 0 5px #ffffff, 0 8px 18px rgba(23, 49, 78, 0.16);
}

.app-layout.is-financial-summary-route .dashboard-goal-center {
  inset: auto 0 16px;
  gap: 3px;
}

.app-layout.is-financial-summary-route .dashboard-goal-center strong {
  font-size: 1.18rem;
}

.app-layout.is-financial-summary-route .dashboard-goal-center small {
  font-size: 0.62rem;
}

.app-layout.is-financial-summary-route .dashboard-goal-scale {
  padding: 0 14px;
  font-size: 0.62rem;
}

.app-layout.is-financial-summary-route .dashboard-goal-stat {
  padding: 9px 10px;
}

.app-layout.is-financial-summary-route .dashboard-goal-stat strong {
  font-size: 1rem;
}

.app-layout.is-financial-summary-route .executive-revenue-chart-shell--timeline {
  gap: 8px;
  height: auto;
  justify-content: flex-start;
}

.app-layout.is-financial-summary-route .executive-revenue-chart--timeline {
  flex: 0 0 220px;
  height: 220px;
  min-height: 220px;
}

.app-layout.is-financial-summary-route .executive-chart-legend--timeline {
  gap: 10px 18px;
  font-size: 0.7rem;
}

.app-layout.is-financial-summary-route .dashboard-mini-bar-chart {
  min-height: 0;
  width: 100%;
  height: 100%;
  max-height: 108px;
}

.app-layout.is-financial-summary-route .executive-status-chart {
  gap: 8px;
  flex: 1 1 auto;
  grid-auto-rows: minmax(0, 1fr);
  align-content: stretch;
}

.app-layout.is-financial-summary-route .executive-status-row {
  gap: 6px;
  align-content: center;
}

.app-layout.is-financial-summary-route .executive-status-head strong {
  font-size: 0.82rem;
  line-height: 1.2;
}

.app-layout.is-financial-summary-route .executive-status-head span {
  font-size: 0.76rem;
}

.app-layout.is-financial-summary-route .executive-status-track {
  height: 12px;
}

@media (max-width: 1480px) {
  .app-layout.is-financial-summary-route {
    --dashboard-summary-left-column: 320px;
  }

  .app-layout.is-financial-summary-route .dashboard-hero-grid {
    grid-template-columns: var(--dashboard-summary-left-column) minmax(0, 1fr);
  }

  .app-layout.is-financial-summary-route .dashboard-analysis-grid {
    grid-template-columns: var(--dashboard-summary-left-column) repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1560px) {
  .dashboard-hero-grid {
    grid-template-columns: minmax(300px, 340px) minmax(0, 1fr);
  }

  .dashboard-analysis-grid {
    grid-template-columns: minmax(260px, 0.86fr) minmax(320px, 1fr) minmax(320px, 1.1fr);
  }
}

@media (max-width: 1360px) {
  .dashboard-kpi-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-analysis-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
  }

  .dashboard-panel--span-rows {
    grid-row: auto;
  }
}

@media (max-width: 1180px) {
  .app-layout.is-summary-route .screen-root {
    overflow: auto;
  }

  .app-layout.is-financial-summary-route .workspace {
    min-height: auto;
    overflow: visible;
  }

  .app-layout.is-financial-summary-route .screen-root {
    overflow: auto;
  }

  .app-layout.is-financial-summary-route .dashboard-screen {
    grid-template-rows: auto auto auto;
    height: auto;
  }

  .app-layout.is-financial-summary-route .dashboard-kpi-strip,
  .app-layout.is-financial-summary-route .dashboard-hero-grid,
  .app-layout.is-financial-summary-route .dashboard-analysis-grid {
    grid-template-columns: 1fr;
  }

  .app-layout.is-financial-summary-route .dashboard-panel--bank,
  .app-layout.is-financial-summary-route .dashboard-panel--payment,
  .app-layout.is-financial-summary-route .dashboard-panel--category,
  .app-layout.is-financial-summary-route .dashboard-panel--credit,
  .app-layout.is-financial-summary-route .dashboard-panel--subcategory {
    grid-column: auto;
    grid-row: auto;
  }

  .dashboard-screen {
    grid-template-rows: auto auto auto;
    height: auto;
  }

  .dashboard-kpi-strip,
  .dashboard-hero-grid,
  .dashboard-analysis-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-kpi-strip {
    overflow: visible;
  }
}

.hero-card {
  display: grid;
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
  border-radius: var(--radius-card);
}

.hero-card.hero-card--launches {
  grid-template-columns: minmax(230px, 290px) 1fr auto;
}

.hero-card.hero-card--split {
  grid-template-columns: 1.3fr 0.9fr;
}

.summary-card {
  gap: 14px;
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fdfefe 0%, #f4f7fb 100%);
  border: 1px solid var(--border);
}

.summary-card.summary-card--stack {
  align-items: flex-start;
  flex-direction: column;
}

.summary-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--teal-strong);
  font-size: 0.95rem;
}

.summary-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.summary-value {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.center-modes {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hero-inline-note {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(248, 250, 252, 0.96);
}

.hero-inline-title {
  font-size: 1.1rem;
  color: var(--navy);
}

.hero-inline-copy {
  margin: 0;
  line-height: 1.6;
}

.mode-chip {
  min-width: 88px;
  padding: 11px 14px;
  font-weight: 600;
  background: var(--bg-alt);
  color: var(--text-soft);
}

.mode-chip--active {
  background: rgba(21, 96, 130, 0.12);
  border-color: rgba(21, 96, 130, 0.18);
  color: var(--teal-strong);
  box-shadow: none;
}

.mode-chip:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.primary-button:hover,
.navy-button:hover {
  color: #ffffff;
}

.toolbar-actions,
.review-actions,
.quick-actions {
  gap: 12px;
  flex-wrap: wrap;
}

.toggle-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  font-weight: 600;
}

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

.toggle-slider {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #dbe5ef;
}

.toggle-slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(31, 53, 80, 0.24);
  transition: transform 0.2s ease;
}

.toggle-chip input:checked + .toggle-slider {
  background: rgba(21, 96, 130, 0.2);
}

.toggle-chip input:checked + .toggle-slider::after {
  transform: translateX(18px);
  background: var(--teal);
}

.filters-card {
  padding: 18px;
  border-radius: 24px;
}

.filters-grid,
.metrics-grid,
.dashboard-grid,
.project-form-grid,
.cards-grid,
.details-grid {
  display: grid;
  gap: 14px;
}

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

.filters-grid--launches {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

.dashboard-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

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

.details-grid {
  grid-template-columns: 1.15fr 0.85fr;
}

.project-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
}

.field-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-soft);
  font-size: 0.86rem;
}

.field-stack--double {
  gap: 10px;
}

.field-stack--narrow {
  max-width: 380px;
}

.field-search-select {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-search-dropdown {
  position: relative;
}

.field-search-dropdown-trigger {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--text);
  text-align: left;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.field-search-dropdown-trigger:hover:not(:disabled) {
  border-color: rgba(21, 96, 130, 0.24);
}

.field-search-dropdown-trigger:focus-visible,
.field-search-dropdown-trigger.is-open {
  border-color: rgba(21, 96, 130, 0.28);
  box-shadow: 0 0 0 4px rgba(21, 96, 130, 0.1);
}

.field-search-dropdown-trigger:disabled {
  cursor: not-allowed;
  background: #eef4fa;
  color: var(--text-faint);
}

.field-search-dropdown-trigger-text {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.field-search-dropdown-trigger-text.is-placeholder {
  color: var(--text-faint);
}

.field-search-dropdown-chevron {
  flex: 0 0 auto;
  color: var(--text-faint);
  font-size: 0.78rem;
  transition: transform 0.16s ease;
}

.field-search-dropdown-trigger.is-open .field-search-dropdown-chevron {
  transform: rotate(180deg);
}

.field-search-dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(21, 96, 130, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.14);
}

.field-search-dropdown-search {
  position: relative;
  display: flex;
  align-items: center;
}

.field-search-dropdown-search input {
  width: 100%;
}

.field-search-dropdown-options {
  max-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  padding-right: 2px;
}

.field-search-dropdown-option {
  width: 100%;
  display: block;
  padding: 10px 12px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.field-search-dropdown-option--multi {
  display: flex;
  align-items: center;
  gap: 10px;
}

.field-search-dropdown-option--multi::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border: 1px solid rgba(21, 96, 130, 0.24);
  border-radius: 5px;
  background: #fff;
}

.field-search-dropdown-option:hover,
.field-search-dropdown-option:focus-visible {
  background: rgba(21, 96, 130, 0.08);
  outline: none;
}

.field-search-dropdown-option.is-selected {
  background: rgba(4, 171, 243, 0.12);
  color: var(--navy);
  font-weight: 700;
}

.field-search-dropdown-option--multi.is-selected::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: rgba(4, 171, 243, 0.7);
  background: #04abf3;
  color: #fff;
  font-size: 0.72rem;
  line-height: 1;
}

.field-search-dropdown-empty {
  padding: 10px 12px;
  color: var(--text-soft);
  font-size: 0.84rem;
}

.field-span-2 {
  grid-column: span 2;
}

.field-stack input,
.field-stack select,
.field-stack textarea,
.field-search-select input,
.field-search-select select,
.field-search-dropdown-search input,
.filter-inline input,
.filter-inline select,
.kanban-search,
.project-search {
  height: 46px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--text);
  outline: none;
}

.field-stack textarea {
  min-height: 96px;
  padding-top: 12px;
  resize: vertical;
}

.field-stack input:focus,
.field-stack select:focus,
.field-stack textarea:focus,
.field-search-select input:focus,
.field-search-select select:focus,
.field-search-dropdown-search input:focus,
.filter-inline input:focus,
.filter-inline select:focus {
  border-color: rgba(21, 96, 130, 0.28);
  box-shadow: 0 0 0 4px rgba(21, 96, 130, 0.1);
}

.field-stack input:disabled,
.field-stack select:disabled,
.field-search-select input:disabled,
.field-search-select select:disabled,
.field-search-dropdown-search input:disabled {
  cursor: not-allowed;
  background: #eef4fa;
  color: var(--text-faint);
  opacity: 1;
}

.field-search-select select {
  padding-right: 14px;
}

.field-helper {
  font-size: 0.8rem;
  line-height: 1.4;
}

.metric-card,
.panel-card,
.statement-card,
.project-highlight,
.empty-state {
  padding: 18px;
  border-radius: 20px;
}

.metric-card {
  background: #ffffff;
}

.metric-header {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.metric-value {
  margin: 0;
  font-size: 1.8rem;
  color: var(--navy);
}

.metric-note {
  margin-top: 8px;
  font-size: 0.92rem;
}

.metric-pulse {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--teal-soft);
  color: var(--teal-strong);
  font-weight: 700;
}

.panel-card h3,
.panel-card p,
.statement-card p,
.project-highlight h3,
.project-highlight p,
.empty-state h3,
.empty-state p {
  margin: 0;
}

.panel-card,
.project-highlight {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-highlight {
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  min-height: 220px;
}

.bar-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.bar-track {
  position: relative;
  width: 100%;
  min-height: 160px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(241, 245, 249, 0.95), rgba(248, 250, 252, 1));
  overflow: hidden;
}

.bar-fill {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(180deg, rgba(92, 141, 164, 0.86), var(--teal));
}

.bar-fill.bar-fill--expense {
  background: linear-gradient(180deg, #d9c4b5, #9d7862);
}

.bar-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-soft);
}

.bar-value {
  font-size: 0.84rem;
  font-weight: 700;
}

.list-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.list-item {
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--border);
}

.list-item-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.inline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.document-layout,
.template-grid {
  display: grid;
  gap: 14px;
}

.document-layout {
  grid-template-columns: 1fr 1fr;
}

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

.template-grid--single {
  grid-template-columns: 1fr;
}

.document-panel {
  min-height: 100%;
}

.template-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.template-card h3,
.template-card p,
.template-card ul {
  margin: 0;
}

.template-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.template-card-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.template-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.template-copy {
  color: var(--text-soft);
  line-height: 1.6;
}

.template-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.template-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(21, 96, 130, 0.08);
  color: var(--teal-strong);
  font-size: 0.82rem;
  font-weight: 700;
}

.template-list {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  color: var(--text-soft);
}

.template-list li {
  line-height: 1.5;
}

.template-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.document-workspace {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
}

.document-sidebar,
.document-sidebar-block,
.document-editor-shell,
.document-toolbar,
.document-editor-layout,
.document-record,
.document-record-copy,
.document-project-card,
.document-preview-frame,
.document-sheet-meta,
.document-party-grid,
.document-payment-grid,
.document-sheet-footer {
  display: flex;
}

.document-sidebar,
.document-editor-shell {
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.document-sidebar-block,
.document-project-card,
.document-editor-panel,
.document-preview-panel {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #ffffff;
}

.document-sidebar-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
}

.document-project-card {
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.98));
}

.document-project-card span {
  color: var(--text-soft);
}

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

.document-record {
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #f8fafc;
  color: var(--text);
  text-align: left;
}

.document-record.is-active {
  border-color: rgba(21, 96, 130, 0.24);
  background: rgba(21, 96, 130, 0.08);
}

.document-record-copy {
  flex-direction: column;
  gap: 4px;
}

.document-record-copy span,
.document-record-copy small,
.document-sidebar-empty p {
  color: var(--text-soft);
}

.document-sidebar-empty {
  padding: 16px;
  border: 1px dashed var(--border-strong);
  border-radius: 18px;
  background: #f8fafc;
}

.document-sidebar-empty strong,
.document-sidebar-empty p {
  margin: 0;
}

.document-sidebar-empty p {
  margin-top: 8px;
}

.document-toolbar {
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #ffffff;
}

.document-toolbar h3,
.document-toolbar p {
  margin: 0;
}

.document-toolbar h3 {
  margin-top: 6px;
}

.document-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 18px;
  align-items: start;
}

.document-editor-panel,
.document-preview-panel {
  padding: 20px;
}

.document-form-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

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

.document-form-grid textarea {
  min-height: 112px;
}

.document-preview-panel {
  position: sticky;
  top: 20px;
}

.document-preview-frame {
  flex-direction: column;
  gap: 16px;
  max-height: calc(100vh - 180px);
  overflow: auto;
  padding-right: 6px;
}

.document-sheet {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.document-sheet--empty {
  align-items: flex-start;
}

.document-sheet--empty h3,
.document-sheet--empty p,
.document-sheet-head h2,
.document-sheet-head p,
.document-sheet-section h3,
.document-sheet-section p,
.document-party-card p,
.document-sheet-footer strong,
.document-sheet-footer span {
  margin: 0;
}

.document-sheet-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: start;
}

.document-sheet-meta,
.document-party-grid,
.document-payment-grid,
.document-sheet-footer {
  display: grid;
  gap: 12px;
}

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

.document-sheet-meta div,
.document-party-card,
.document-payment-card {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(248, 250, 252, 0.94);
}

.document-sheet-meta span,
.document-payment-card span,
.document-sheet-footer span {
  display: block;
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.document-party-grid,
.document-payment-grid,
.document-sheet-footer {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.document-party-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.document-payment-card--wide {
  grid-column: 1 / -1;
}

.document-sheet-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.document-preview-list {
  margin: 0;
}

.page-chip,
.review-tag,
.temperature-pill,
.status-pill,
.badge,
.tiny-pill {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-width: 74px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.page-chip {
  min-width: 0;
  background: rgba(21, 96, 130, 0.08);
  color: var(--teal-strong);
}

.tiny-pill {
  min-width: 0;
  background: rgba(148, 163, 184, 0.16);
  color: #475569;
}

.temperature-pill.temperature-cold {
  background: var(--cold);
  color: var(--cold-text);
}

.temperature-pill.temperature-warm {
  background: var(--warm);
  color: var(--warm-text);
}

.temperature-pill.temperature-hot {
  background: var(--hot);
  color: var(--hot-text);
}

.badge-expense {
  background: var(--danger-soft);
  color: var(--danger);
}

.badge-income {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.status-pill {
  min-width: 86px;
  background: rgba(21, 96, 130, 0.08);
  color: var(--teal-strong);
}

.status-pill.status-draft {
  background: var(--danger-soft);
  color: var(--danger);
}

.status-pill.status-pending,
.status-pill.status-under-review {
  background: rgba(179, 139, 86, 0.16);
  color: #8f673b;
}

.status-pill.status-cancelled,
.status-pill.status-lost {
  background: rgba(173, 92, 92, 0.16);
  color: #9a5757;
}

.amount-expense {
  color: var(--danger);
  font-weight: 700;
}

.amount-income {
  color: #15745f;
  font-weight: 700;
}

.table-card {
  border-radius: var(--radius-card);
  overflow: hidden;
}

.table-scroll {
  overflow: auto;
}

.launches-table,
.projects-table,
.statements-table,
.review-table {
  width: 100%;
  min-width: 1020px;
  border-collapse: collapse;
}

.launches-table {
  min-width: 1440px;
}

.launches-table thead th,
.projects-table thead th,
.statements-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 14px;
  text-align: left;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}

.review-table thead th {
  position: sticky;
  top: 0;
  padding: 14px;
  text-align: left;
  background: #f8fafc;
  color: #64748b;
  border-bottom: 1px solid var(--border);
}

.launches-table tbody tr,
.projects-table tbody tr,
.statements-table tbody tr {
  background: #ffffff;
  border-bottom: 1px solid var(--mint-border);
}

.launches-table tbody tr.row-care {
  box-shadow: inset 4px 0 0 var(--warning);
}

.projects-table tbody tr,
.statements-table tbody tr {
  background: #ffffff;
}

.launches-table td,
.projects-table td,
.statements-table td,
.review-table td {
  padding: 12px 14px;
  font-size: 0.88rem;
  vertical-align: middle;
}

.description-cell {
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.actions-cell {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.icon-button {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--navy);
  font-size: 0.9rem;
  line-height: 1;
}

.icon-button.icon-danger {
  color: var(--danger);
}

.row-editing {
  background: #f8fafc !important;
  box-shadow: inset 0 1px 0 var(--border), inset 0 -1px 0 var(--border);
}

.launches-table .row-editing > td {
  background: #f8fafc;
}

.launches-table .row-editing .field-search-dropdown-panel {
  z-index: 50;
}

.cell-editor input,
.cell-editor select {
  width: 100%;
  min-width: 90px;
  height: 40px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
}

.cell-editor textarea {
  width: 100%;
  min-width: 170px;
  min-height: 42px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
}

.installment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(58px, 1fr));
  gap: 8px;
}

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

.kanban-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border-radius: 24px;
  min-height: 520px;
  border: 1px solid var(--border);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

.kanban-column[data-status="PROSPECTION"] {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 252, 0.98));
}

.kanban-column[data-status="PROPOSAL"] {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 248, 244, 0.98));
}

.kanban-column[data-status="CONTRACT"] {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 248, 0.98));
}

.kanban-column.is-drop-target {
  transform: translateY(-2px);
  border-color: rgba(21, 96, 130, 0.28);
  box-shadow: inset 0 0 0 1px rgba(21, 96, 130, 0.08);
}

.kanban-column.is-filter-muted {
  opacity: 0.9;
}

.kanban-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.kanban-header h3,
.kanban-header p {
  margin: 0;
}

.kanban-column-copy {
  display: grid;
  gap: 6px;
}

.kanban-count {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.98);
  border: 1px solid var(--border);
  font-weight: 700;
}

.kanban-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.035);
  cursor: grab;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

.kanban-card:active {
  cursor: grabbing;
}

.kanban-card.is-dragging {
  opacity: 0.48;
  transform: rotate(1deg) scale(0.985);
  box-shadow: none;
}

.kanban-card h4,
.kanban-card p {
  margin: 0;
}

.kanban-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

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

.kanban-card-grid--prospecting {
  padding-top: 2px;
}

.kanban-card-actions {
  padding-top: 2px;
}

.kanban-meta-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-faint);
}

.kanban-meta-value {
  margin-top: 3px;
  font-weight: 600;
}

.empty-state {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 220px;
  text-align: center;
}

.kanban-empty {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  min-height: 220px;
  padding: 22px;
  text-align: center;
  border-radius: 18px;
  border: 1px dashed var(--border-strong);
  background: rgba(255, 255, 255, 0.72);
}

.kanban-empty h4,
.kanban-empty p {
  margin: 0;
}

.kanban-empty p {
  color: var(--text-soft);
}

.kanban-empty--muted {
  background: rgba(255, 255, 255, 0.38);
}

.project-inline-meta {
  gap: 8px;
  flex-wrap: wrap;
}

.field-stack--actions {
  justify-content: flex-end;
}

.field-stack--actions .secondary-button {
  min-height: 46px;
}

.filters-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(248, 250, 252, 1);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.5;
}

.statement-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.statement-card-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

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

.review-grid {
  margin-top: 20px;
  max-height: 70vh;
  overflow: auto;
  border-radius: 22px;
  border: 1px solid var(--border);
}

.review-tag {
  min-width: 0;
  background: rgba(255, 191, 71, 0.18);
  color: #9e6302;
}

.review-tag.review-tag--done {
  background: rgba(22, 176, 124, 0.16);
  color: #13805b;
}

.loading-panel {
  padding: 32px;
  text-align: center;
  color: var(--text-soft);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.42);
  z-index: 50;
}

.modal-card {
  position: relative;
  width: min(100%, 920px);
  padding: 28px;
  border-radius: 32px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 28px 90px rgba(2, 6, 23, 0.22);
}

.modal-card--wide {
  width: min(100%, 980px);
}

.modal-card--import {
  width: min(100%, 950px);
  max-height: calc(100vh - 16px);
  padding: 20px 22px;
  border-radius: 28px;
  overflow: auto;
}

.modal-card--import .format-grid {
  padding-right: 54px;
}

.modal-card--review {
  width: min(100%, 1200px);
}

.modal-card--project {
  width: min(100%, 940px);
}

.modal-card--installment {
  width: min(100%, 940px);
}

.modal-card--quick-register {
  width: min(100%, 1240px);
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text-soft);
  font-size: 1.4rem;
}

.modal-close--inverse {
  top: 18px;
  right: 18px;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.modal-header {
  justify-content: space-between;
  gap: 16px;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.9rem;
}

.modal-header p,
.source-banner p,
.section-title span,
.format-option span,
#dropzone-hint {
  margin: 4px 0 0;
  color: var(--text-soft);
}

.stepper {
  display: flex;
  gap: 12px;
}

.step {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(63, 102, 147, 0.14);
  color: var(--text-soft);
  font-weight: 700;
}

.step.done,
.step.active {
  color: #fff;
}

.step.done {
  background: #28c67a;
}

.step.active {
  background: #14b4df;
}

.source-banner {
  gap: 14px;
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(237, 251, 255, 0.85);
  border: 1px solid rgba(45, 186, 215, 0.24);
}

.source-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff53ad, #ff7e57);
}

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

.format-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-height: 82px;
  padding: 14px 16px;
  text-align: left;
}

.format-option--active {
  border-color: rgba(23, 191, 122, 0.6);
  box-shadow: inset 0 0 0 1px rgba(23, 191, 122, 0.25);
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(189, 108, 255, 0.25);
  background: rgba(254, 244, 255, 0.88);
  color: #b253ef;
  font-weight: 600;
}

.form-section {
  margin-top: 16px;
  padding-top: 0;
}

.section-title {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 12px;
}

.template-row {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

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

.installment-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.installment-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
  align-items: start;
}

.installment-preview-card {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(84, 127, 181, 0.16);
  background:
    linear-gradient(180deg, rgba(247, 250, 255, 0.96) 0%, rgba(239, 247, 255, 0.94) 100%);
}

.installment-preview-card strong {
  display: block;
  margin-bottom: 6px;
}

.installment-preview-card p {
  margin: 0;
  color: var(--text-soft);
}

.dropzone {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 140px;
  margin-top: 16px;
  padding: 16px;
  border-radius: 22px;
  border: 1.5px dashed rgba(107, 137, 173, 0.35);
  background: rgba(250, 252, 255, 0.95);
  text-align: center;
}

.dropzone.is-dragover {
  border-color: var(--teal);
  background: rgba(238, 255, 251, 0.96);
}

.dropzone-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(63, 102, 147, 0.08);
  color: var(--text-soft);
  font-size: 1.25rem;
}

.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

@media (max-width: 900px) {
  .modal-card--import {
    width: min(100%, 760px);
    padding: 18px;
  }

  .modal-card--import .format-grid {
    padding-right: 46px;
  }

  .import-form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .installment-form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.modal-footer--quick-register {
  margin: 0;
  padding: 20px 24px 24px;
  border-top: 1px solid rgba(84, 127, 181, 0.12);
  background: rgba(255, 255, 255, 0.62);
}

.quick-register-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #16593b 0%, #0f805e 38%, #18b59e 100%);
}

.quick-register-header h2,
.quick-register-header p {
  margin: 0;
}

.quick-register-header h2 {
  margin-top: 6px;
  font-size: 1.8rem;
}

.quick-register-header p {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.84);
}

.quick-register-kicker {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quick-register-badges {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quick-register-badge {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-weight: 700;
}

.quick-register-badge--done {
  background: #2dcb73;
  color: #fff;
}

.quick-register-badge--active {
  background: #1ba9df;
  color: #fff;
}

.quick-register-badge--ghost {
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.82);
}

.quick-register-divider {
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
}

.quick-main-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 24px 0;
}

.quick-main-tab,
.quick-subnav-item {
  border: 1px solid rgba(84, 127, 181, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-soft);
  font-weight: 700;
  transition: 0.2s ease;
}

.quick-main-tab {
  height: 52px;
}

.quick-main-tab--active {
  background: linear-gradient(135deg, #1a5b74 0%, #1d7d87 48%, #14c79d 100%);
  color: #fff;
  box-shadow: 0 14px 28px rgba(25, 119, 129, 0.22);
}

.quick-register-copy {
  margin: 14px 24px 0;
  color: var(--text-soft);
}

.quick-subnav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 18px 24px 0;
}

.quick-subnav-item {
  height: 44px;
}

.quick-subnav-item--active {
  background: linear-gradient(135deg, #1f6d63 0%, #12bf94 100%);
  color: #fff;
  border-color: transparent;
}

.quick-register-shell {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 24px 0;
}

.quick-panel {
  min-width: 0;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(84, 127, 181, 0.14);
}

.quick-panel--list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.quick-panel--form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.quick-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #175b6d 0%, #16b99d 100%);
}

.quick-panel-header h3,
.quick-panel-header p,
.quick-form-card-header h4,
.quick-form-card-header p {
  margin: 0;
}

.quick-panel-header p,
.quick-form-card-header p {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.88);
}

.quick-count {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 700;
}

.quick-add-row {
  display: flex;
  gap: 10px;
}

.quick-add-row input {
  flex: 1;
  height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(63, 102, 147, 0.18);
}

.quick-round-button {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 0;
  background: rgba(32, 196, 181, 0.28);
  color: var(--teal-strong);
  font-size: 1.2rem;
  font-weight: 700;
}

.quick-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
}

.quick-list-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: rgba(247, 250, 255, 0.96);
  text-align: left;
}

.quick-list-item span {
  font-weight: 700;
}

.quick-list-item small {
  color: var(--text-soft);
}

.quick-list-item--active {
  background: rgba(24, 191, 163, 0.1);
  border-color: rgba(24, 191, 163, 0.22);
}

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

.quick-form-card {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(84, 127, 181, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.94));
}

.quick-form-card--split {
  grid-column: span 2;
}

.quick-form-card-header {
  margin-bottom: 14px;
}

.quick-form-card-header h4 {
  font-size: 1rem;
  color: var(--navy);
}

.quick-form-card-header p {
  color: var(--text-soft);
}

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

.quick-form-split {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quick-form-fields .field-stack,
.quick-form-split .field-stack {
  gap: 6px;
}

.quick-form-fields input,
.quick-form-fields select,
.quick-form-split input,
.quick-form-split select {
  height: 44px;
}

.primary-button:disabled,
.secondary-button:disabled,
.navy-button:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.toast-stack {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 80;
}

.toast {
  min-width: 260px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(24, 52, 76, 0.96);
  color: #fff;
  box-shadow: var(--shadow);
}

.toast.toast-success {
  background: rgba(18, 166, 114, 0.96);
}

.toast.toast-error {
  background: rgba(255, 79, 79, 0.96);
}

.app-layout.is-login-route {
  grid-template-columns: 1fr;
  min-height: 100vh;
  gap: 0;
  padding: 0;
  background:
    radial-gradient(circle at top left, rgba(4, 171, 243, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(14, 228, 161, 0.12), transparent 24%),
    linear-gradient(180deg, #07101d 0%, #0b1628 52%, #08111f 100%);
}

.app-layout.is-login-route .sidebar,
.app-layout.is-login-route .workspace-topbar {
  display: none;
}

.app-layout.is-login-route .workspace {
  padding-right: 0;
}

.app-layout.is-login-route .screen-root {
  margin-top: 0;
  min-height: 100vh;
  padding-bottom: 0;
}

.login-screen {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
  font-family: var(--font-ui);
}

.login-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(3, 12, 26, 0.42), rgba(3, 12, 26, 0.06) 42%, rgba(3, 12, 26, 0.36)),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.04), transparent 62%);
  z-index: 0;
}

.login-background {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.login-background-grid,
.login-background-glow,
.login-background-orb,
.login-background-wave,
.login-floating-card {
  position: absolute;
}

.login-brand-lockup,
.login-showcase,
.login-feature-list,
.login-form,
.overview-metrics,
.overview-grid,
.finance-gauge,
.breakdown-row,
.cashflow-row,
.comparison-grid,
.launches-topbar-card {
  display: grid;
  gap: 14px;
}

.login-background-grid {
  inset: -10%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 88%);
  opacity: 0.3;
  animation: loginGridShift 22s linear infinite;
}

.login-background-glow {
  border-radius: 999px;
  filter: blur(28px);
  opacity: 0.78;
  animation: loginDrift 12s ease-in-out infinite;
}

.login-background-glow--cyan {
  top: -10%;
  left: -6%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(4, 171, 243, 0.42) 0%, rgba(4, 171, 243, 0) 72%);
}

.login-background-glow--emerald {
  right: -2%;
  bottom: 4%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(14, 228, 161, 0.26) 0%, rgba(14, 228, 161, 0) 72%);
  animation-duration: 16s;
  animation-delay: -3s;
}

.login-background-orb {
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.02) 65%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  opacity: 0.42;
  animation: loginFloat 10s ease-in-out infinite;
}

.login-background-orb--one {
  top: 16%;
  right: 28%;
  width: 124px;
  height: 124px;
}

.login-background-orb--two {
  bottom: 18%;
  right: 16%;
  width: 72px;
  height: 72px;
  animation-duration: 8s;
  animation-delay: -2s;
}

.login-background-wave {
  left: -10%;
  right: -10%;
  bottom: -18%;
  height: 48%;
  border-radius: 50%;
  background:
    radial-gradient(circle at top, rgba(4, 171, 243, 0.18), transparent 42%),
    repeating-linear-gradient(110deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 24px);
  transform: perspective(1200px) rotateX(72deg);
  transform-origin: top center;
  opacity: 0.78;
  animation: loginWaveMove 18s linear infinite;
}

.login-background-wave::after {
  content: "";
  position: absolute;
  inset: 12% 0 0;
  background: linear-gradient(180deg, rgba(7, 16, 29, 0), rgba(7, 16, 29, 0.82));
}

.login-floating-card {
  width: min(320px, calc(100vw - 48px));
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(8, 17, 31, 0.62), rgba(12, 26, 47, 0.78));
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.3);
  backdrop-filter: blur(16px);
  animation: loginFloat 11s ease-in-out infinite;
}

.login-floating-card--primary {
  top: 13%;
  right: 6%;
}

.login-floating-card--secondary {
  left: 6%;
  bottom: 13%;
  animation-delay: -4s;
  animation-duration: 13s;
}

.login-floating-label,
.login-kicker {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.login-floating-label {
  color: rgba(148, 215, 255, 0.78);
}

.login-floating-card strong,
.login-floating-card p,
.login-card-head h2,
.login-card-head p,
.login-feature-card strong,
.login-feature-card p,
.login-showcase-copy h1,
.login-showcase-copy p,
.login-brand-lockup strong,
.login-brand-lockup span {
  margin: 0;
}

.login-floating-card strong {
  display: block;
  margin-top: 10px;
  font-family: var(--font-ui);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.3;
}

.login-floating-card p {
  margin-top: 10px;
  color: rgba(223, 234, 247, 0.76);
  line-height: 1.6;
}

.login-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 56px clamp(24px, 5vw, 72px);
}

.login-content--centered {
  text-align: center;
}

.login-brand-lockup {
  width: fit-content;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(6, 14, 27, 0.32);
  backdrop-filter: blur(12px);
}

.login-brand-lockup img {
  width: 74px;
  height: 74px;
  border-radius: 20px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 26px rgba(2, 6, 23, 0.24);
}

.login-brand-lockup strong {
  display: block;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.login-brand-lockup span {
  color: rgba(223, 234, 247, 0.74);
  line-height: 1.5;
}

.login-showcase-copy {
  display: grid;
  gap: 16px;
}

.login-kicker {
  color: rgba(148, 215, 255, 0.8);
  margin: 0;
}

.login-showcase-copy h1,
.login-card-head h2 {
  font-family: var(--font-ui);
}

.login-showcase-copy h1 {
  max-width: 740px;
  font-size: clamp(2.4rem, 4.4vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.login-showcase-copy p {
  max-width: 620px;
  color: rgba(223, 234, 247, 0.76);
  font-size: 0.98rem;
  line-height: 1.72;
}

.login-feature-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.login-feature-card {
  min-height: 100%;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(10, 19, 34, 0.54), rgba(11, 24, 43, 0.72));
  box-shadow: 0 24px 50px rgba(2, 6, 23, 0.18);
  backdrop-filter: blur(14px);
}

.login-feature-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(4, 171, 243, 0.22), rgba(14, 228, 161, 0.2));
  color: #ddf7ff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.login-feature-card strong {
  display: block;
  margin-top: 22px;
  font-family: var(--font-ui);
  font-size: 0.96rem;
  font-weight: 700;
  color: #ffffff;
}

.login-feature-card p {
  margin-top: 10px;
  color: rgba(223, 234, 247, 0.72);
  line-height: 1.7;
}

.login-card-shell {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 460px;
}

.login-card-shell--centered {
  margin-inline: auto;
}

.login-card {
  position: relative;
  width: min(100%, 460px);
  padding: 32px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(6, 14, 27, 0.76), rgba(9, 21, 39, 0.94));
  box-shadow: 0 36px 80px rgba(1, 6, 16, 0.42);
  backdrop-filter: blur(22px);
  isolation: isolate;
  color: #fff;
}

.login-card--glass {
  overflow: hidden;
}

.login-card--compact {
  padding-top: 36px;
}

.login-logo-badge {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  margin: 0 auto 24px;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.login-logo-badge img {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  object-fit: cover;
}

.login-card-glow {
  position: absolute;
  top: -12%;
  right: -4%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(4, 171, 243, 0.42) 0%, rgba(4, 171, 243, 0) 72%);
  filter: blur(16px);
  opacity: 0.78;
  z-index: 0;
  animation: loginPulse 8s ease-in-out infinite;
}

.login-card-head,
.login-form,
.login-card-footer {
  position: relative;
  z-index: 1;
}

.login-card-head {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.login-card-head h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 2.6rem);
  line-height: 1;
}

.login-card-head p {
  margin: 0;
}

.login-form {
  margin-top: 28px;
  gap: 16px;
  text-align: left;
}

.field-stack--login {
  gap: 10px;
  color: rgba(223, 234, 247, 0.74);
}

.field-stack--login span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.field-stack--login input {
  height: 56px;
  padding: 0 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(7, 14, 26, 0.44);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.field-stack--login input::placeholder {
  color: rgba(223, 234, 247, 0.4);
}

.field-stack--login input:focus {
  border-color: rgba(4, 180, 244, 0.64);
  box-shadow: 0 0 0 4px rgba(4, 180, 244, 0.12), 0 18px 32px rgba(2, 6, 23, 0.24);
}

.login-submit {
  width: 100%;
  min-height: 54px;
  margin-top: 4px;
  border-radius: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 20px 40px rgba(4, 171, 243, 0.22);
}

.login-card-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.login-card-footer p {
  margin: 0;
  color: rgba(223, 234, 247, 0.62);
  font-size: 0.88rem;
  line-height: 1.6;
}

.login-card-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(14, 228, 161, 1), rgba(4, 171, 243, 1));
  box-shadow: 0 0 0 6px rgba(14, 228, 161, 0.12);
  flex: 0 0 auto;
}

@keyframes loginFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -16px, 0);
  }
}

@keyframes loginDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(22px, -18px, 0) scale(1.05);
  }
}

@keyframes loginGridShift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-28px, 20px, 0);
  }
}

@keyframes loginWaveMove {
  from {
    background-position: center top, 0 0;
  }
  to {
    background-position: center top, 180px 0;
  }
}

@keyframes loginPulse {
  0%,
  100% {
    opacity: 0.56;
  }
  50% {
    opacity: 0.92;
  }
}

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

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

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

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

.overview-grid--top {
  grid-template-columns: 0.9fr 1.1fr;
}

.finance-gauge {
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
}

.finance-gauge-ring {
  --gauge: 0%;
  width: 168px;
  height: 168px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--rnb-cyan-500) var(--gauge), rgba(161, 201, 236, 0.32) 0);
}

.finance-gauge-core {
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  gap: 2px;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  box-shadow: inset 0 0 0 1px rgba(16, 91, 168, 0.06);
}

.finance-gauge-copy strong,
.finance-gauge-copy span,
.dre-group h3,
.dre-row span,
.dre-row strong,
.comparison-card span,
.comparison-card strong,
.comparison-card small,
.cashflow-row strong,
.cashflow-row span {
  display: block;
  margin: 0;
}

.finance-gauge-copy span,
.comparison-card small,
.cashflow-row span {
  color: var(--text-soft);
}

.breakdown-list,
.cashflow-list,
.dre-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.breakdown-row {
  grid-template-columns: minmax(0, 1fr);
}

.breakdown-copy {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.breakdown-copy span {
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 600;
}

.breakdown-bar {
  height: 9px;
  border-radius: 999px;
  background: rgba(161, 201, 236, 0.28);
  overflow: hidden;
}

.breakdown-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--rnb-blue-600), var(--rnb-cyan-500));
}

.dre-group {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(248, 251, 255, 0.96);
}

.dre-group h3 {
  margin-bottom: 12px;
  color: var(--navy);
}

.dre-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(217, 230, 243, 0.72);
}

.dre-row:last-child {
  border-bottom: 0;
}

.dre-row--result {
  padding: 16px;
  border-radius: 18px;
  background: var(--rnb-surface-tint);
}

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

.comparison-card {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: #fff;
}

.comparison-card strong {
  margin-top: 8px;
  color: var(--navy);
  font-size: 1.4rem;
}

.cashflow-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(248, 251, 255, 0.96);
}

.launches-topbar-card {
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-radius: var(--radius-card);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.summary-card--compact {
  padding: 10px 14px;
}

.summary-card--toolbar {
  min-width: 160px;
  padding: 7px 8px;
  border-radius: 18px;
  gap: 6px;
  flex: 0 0 auto;
}

.summary-card--toolbar .summary-icon {
  width: 30px;
  height: 32px;
  border-radius: 11px;
  font-size: 0.82rem;
}

.summary-card--toolbar .summary-label {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
}

.summary-card--toolbar .summary-value {
  margin-top: 2px;
  font-size: 0.94rem;
  line-height: 1.15;
}

.app-layout.is-launches-route .workspace-topbar {
  gap: 12px;
}

.app-layout.is-launches-route .workspace {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
}

.app-layout.is-launches-route .screen-root {
  display: flex;
  min-height: 0;
  height: 100%;
  padding-bottom: 0;
  overflow: hidden;
}

.app-layout.is-launches-route .topbar-main {
  flex: 1;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px 18px;
}

.app-layout.is-launches-route .page-title {
  font-size: 1.28rem;
  white-space: nowrap;
}

.app-layout.is-launches-route .topbar-period {
  gap: 8px 10px;
  flex-wrap: nowrap;
}

.app-layout.is-launches-route .topbar-year {
  gap: 8px;
  font-size: 0.76rem;
  white-space: nowrap;
}

.app-layout.is-launches-route .topbar-year select {
  min-width: 78px;
  height: 34px;
  padding: 0 10px;
}

.app-layout.is-launches-route .topbar-months {
  flex-wrap: nowrap;
  gap: 4px;
}

.app-layout.is-launches-route .month-chip {
  min-width: 34px;
  height: 32px;
  padding: 0 6px;
  font-size: 0.66rem;
}

.app-layout.is-launches-route .topbar-route-tools {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
}

.launches-topbar-inline {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: nowrap;
  width: 100%;
}

.launches-topbar-options {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
  margin-left: auto;
}

.launches-selection-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px dashed rgba(21, 96, 130, 0.2);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-faint);
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
  flex: 0 0 auto;
}

.launches-selection-count.is-active {
  border-color: rgba(4, 171, 243, 0.24);
  background: rgba(4, 171, 243, 0.08);
  color: var(--navy);
}

.toolbar-button--toggle,
.toolbar-button--installment,
.toolbar-button--recurring,
.toolbar-button--danger,
.primary-button--compact {
  min-height: 34px;
  height: 32px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.toolbar-select-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  height: 32px;
  padding: 0 8px 0 10px;
  border: 1px solid rgba(21, 96, 130, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-faint);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  flex: 0 0 auto;
}

.toolbar-select-field span {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toolbar-select-field select {
  min-width: 132px;
  height: 100%;
  border: none;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  outline: none;
  cursor: pointer;
}

.toolbar-select-field select:focus-visible {
  outline: 2px solid rgba(4, 171, 243, 0.24);
  outline-offset: 2px;
  border-radius: 999px;
}

.toolbar-button--toggle.is-selected {
  background: rgba(4, 171, 243, 0.1);
  border-color: rgba(4, 171, 243, 0.28);
  color: var(--navy);
}

.toolbar-button--danger {
  border-color: var(--danger);
  background: var(--danger);
  color: #fff;
  box-shadow: 0 10px 18px rgba(220, 38, 38, 0.18);
}

.toolbar-button--installment {
  border-color: #f97316;
  background: #f97316;
  color: #fff;
  box-shadow: 0 10px 18px rgba(249, 115, 22, 0.22);
}

.toolbar-button--installment:hover {
  border-color: #ea580c;
  background: #ea580c;
  color: #fff;
}

.toolbar-button--recurring {
  border-color: #7c3aed;
  background: #7c3aed;
  color: #fff;
  box-shadow: 0 10px 18px rgba(124, 58, 237, 0.22);
}

.toolbar-button--recurring:hover {
  border-color: #6d28d9;
  background: #6d28d9;
  color: #fff;
}

.toolbar-button--danger:hover {
  border-color: #b91c1c;
  background: #b91c1c;
  color: #fff;
}

.launches-topbar-options .toolbar-button:disabled,
.launches-topbar-options .primary-button:disabled {
  opacity: 0.52;
  cursor: not-allowed;
  pointer-events: none;
}

.launches-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.launches-toolbar-actions .toolbar-button,
.launches-toolbar-actions .primary-button {
  height: 40px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 14px;
}

.launches-toolbar-actions .primary-button {
  box-shadow: 0 10px 20px rgba(4, 171, 243, 0.16);
}

.cell-wrap {
  overflow-wrap: anywhere;
}

.th-stack {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
}

.launches-table {
  min-width: 0;
  table-layout: fixed;
}

.launches-table col.col-select {
  width: 3.5%;
}

.launches-table col.col-type {
  width: 5.5%;
}

.launches-table col.col-category {
  width: 11%;
}

.launches-table col.col-subcategory {
  width: 12%;
}

.launches-table col.col-counterparty {
  width: 11.5%;
}

.launches-table col.col-institution {
  width: 6.5%;
}

.launches-table col.col-payment {
  width: 6.75%;
}

.launches-table col.col-launch {
  width: 6%;
}

.launches-table col.col-settled {
  width: 6.5%;
}

.launches-table col.col-amount {
  width: 7%;
}

.launches-table col.col-balance {
  width: 8%;
}

.launches-table col.col-description {
  width: 10.5%;
}

.launches-table col.col-installment {
  width: 3.75%;
}

.launches-table col.col-status {
  width: 6%;
}

.launches-table col.col-actions {
  width: 3.5%;
}

.launches-table--bank-statement col.col-select {
  width: 4%;
}

.launches-table--bank-statement col.col-type {
  width: 8%;
}

.launches-table--bank-statement col.col-institution {
  width: 8.5%;
}

.launches-table--bank-statement col.col-payment {
  width: 8%;
}

.launches-table--bank-statement col.col-launch {
  width: 7.5%;
}

.launches-table--bank-statement col.col-amount {
  width: 7.5%;
}

.launches-table--bank-statement col.col-balance {
  width: 8%;
}

.launches-table--bank-statement col.col-description {
  width: 41%;
}

.launches-table--bank-statement col.col-actions {
  width: 7.5%;
}

.table-scroll {
  overflow-x: hidden;
}

.table-card--launches {
  display: flex;
  flex: 1;
  min-height: 0;
}

.table-card--launches .table-scroll {
  flex: 1;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 18px;
  box-sizing: border-box;
  scrollbar-gutter: stable both-edges;
}

.launches-table thead th {
  padding: 12px 8px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  white-space: normal;
  text-align: center;
}

.launches-sort-button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.launches-sort-button:hover {
  color: var(--navy);
}

.launches-sort-button:focus-visible {
  outline: 2px solid rgba(4, 171, 243, 0.32);
  outline-offset: 3px;
  border-radius: 10px;
}

.launches-sort-button.is-active {
  color: var(--navy);
}

.launches-sort-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.launches-sort-label--stack {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.08;
}

.launches-sort-indicator {
  flex: 0 0 auto;
  font-size: 0.88rem;
  color: rgba(100, 116, 139, 0.85);
}

.launches-sort-button.is-active .launches-sort-indicator {
  color: var(--rnb-blue-600);
}

.launches-select-header,
.selection-cell {
  text-align: center;
}

.launches-selection-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.launches-select-toggle {
  width: 16px;
  height: 16px;
  accent-color: var(--rnb-blue-600);
  cursor: pointer;
}

.selection-cell--placeholder {
  pointer-events: none;
}

.launches-table td {
  padding: 10px 8px;
  font-size: 0.8rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.launches-table .cell-taxonomy {
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: auto;
}

.launches-table .taxonomy-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.launches-table .cell-editor--taxonomy select,
.launches-table .cell-editor--taxonomy .field-search-dropdown-trigger,
.launches-table .cell-editor--taxonomy .field-search-dropdown-search input,
.launches-table .cell-editor--taxonomy .field-search-dropdown-option {
  font-size: 0.76rem;
}

.launches-table tbody tr:last-child td {
  padding-bottom: 22px;
}

.launches-table .description-cell {
  max-width: none;
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.launches-table .statement-balance-cell {
  font-weight: 700;
}

.launches-table .statement-empty-cell {
  display: inline-block;
  min-width: 0.5rem;
  color: var(--text-faint);
}

.launches-table .statement-opening-row {
  background: rgba(148, 163, 184, 0.08);
}

.launches-table .statement-opening-row td {
  color: var(--text-faint);
}

.launches-table .statement-opening-row .statement-balance-cell {
  color: inherit;
}

.launches-table .statement-opening-row .statement-balance-cell .amount-income,
.launches-table .statement-opening-row .statement-balance-cell .amount-expense {
  color: var(--text-faint);
}

.launches-table .statement-opening-description {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.launches-table .actions-cell {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
}

.launches-table .actions-cell-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.launches-table--bank-statement td {
  padding: 7px 10px;
  line-height: 1.2;
}

.launches-table--bank-statement .description-cell {
  max-width: none;
  white-space: normal;
  overflow: visible;
}

.launches-table--bank-statement .description-cell-copy {
  display: block;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.launches-table--bank-statement .actions-cell {
  padding-left: 8px;
  padding-right: 10px;
}

.launches-table--bank-statement .actions-cell-inner {
  gap: 6px;
}

.launches-table .icon-button {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  font-size: 0.82rem;
}

.launches-table .status-pill,
.launches-table .badge {
  min-width: 0;
  padding: 6px 8px;
  font-size: 0.72rem;
}

.launches-table .cell-editor input,
.launches-table .cell-editor select,
.launches-table .cell-editor textarea {
  min-width: 0;
  font-size: 0.78rem;
}

.launches-table .cell-editor {
  overflow: hidden;
}

.launches-table .cell-editor.cell-editor--lookup {
  position: relative;
  overflow: visible;
}

.launches-table .cell-editor--lookup .field-search-dropdown-trigger {
  min-height: 40px;
  padding: 0 10px;
  border-radius: 12px;
  background: #ffffff;
}

.launches-table .cell-editor--lookup .field-search-dropdown-panel {
  z-index: 40;
  padding: 10px;
  border-radius: 14px;
}

.launches-table .cell-editor--lookup .field-search-dropdown-trigger-text,
.launches-table .cell-editor--lookup .field-search-dropdown-search input,
.launches-table .cell-editor--lookup .field-search-dropdown-option,
.launches-table .cell-editor--lookup .field-search-dropdown-empty {
  font-size: 0.78rem;
}

.launches-table .th-stack {
  align-items: center;
}

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

  .app-layout.is-sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .sidebar {
    padding: 18px;
  }

  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .app-layout.is-sidebar-collapsed .sidebar {
    align-items: stretch;
    padding: 18px;
  }

  .app-layout.is-sidebar-collapsed .sidebar-top {
    flex-direction: row;
  }

  .app-layout.is-sidebar-collapsed .sidebar-brand-copy {
    display: block;
  }

  .app-layout.is-sidebar-collapsed .sidebar-foot {
    display: flex;
  }

  .app-layout.is-sidebar-collapsed .nav-link-label {
    display: inline;
  }

  .app-layout.is-sidebar-collapsed .nav-link {
    justify-content: flex-start;
    padding: 11px 12px;
  }
}

@media (max-width: 1180px) {
  .hero-card.hero-card--launches,
  .hero-card.hero-card--split,
  .dashboard-grid,
  .details-grid,
  .document-layout,
  .document-workspace,
  .document-editor-layout,
  .quick-register-shell {
    grid-template-columns: 1fr;
  }

  .center-modes,
  .toolbar-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .login-content,
  .overview-grid--top,
  .finance-gauge,
  .launches-topbar-card {
    grid-template-columns: 1fr;
  }

  .metrics-grid,
  .cards-grid,
  .statement-grid,
  .template-grid,
  .quick-form-grid,
  .quick-form-fields,
  .quick-form-split,
  .overview-metrics,
  .overview-metrics--three,
  .overview-metrics--four,
  .overview-grid,
  .comparison-grid,
  .login-feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .login-content {
    padding-top: 110px;
    padding-bottom: 54px;
  }

  .login-card-shell {
    justify-content: center;
  }

  .login-showcase-copy h1 {
    max-width: 680px;
  }

  .login-floating-card--secondary {
    left: auto;
    right: 6%;
    bottom: 12%;
  }

  .quick-form-card--split {
    grid-column: span 1;
  }

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

  .app-layout.is-launches-route .topbar-route-tools {
    flex-basis: 100%;
  }

  .table-card--launches {
    min-height: 0;
  }
}

@media (max-width: 920px) {
  .workspace-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .launches-topbar-inline,
  .launches-topbar-options {
    width: 100%;
  }

  .toolbar-select-field {
    width: 100%;
    justify-content: space-between;
  }

  .toolbar-select-field select {
    min-width: 0;
    width: 100%;
  }

  .launches-topbar-options {
    margin-left: 0;
  }

  .launches-topbar-options .toolbar-button,
  .launches-topbar-options .primary-button {
    flex: 1 1 160px;
  }

  .table-card--launches {
    min-height: 0;
  }

  .filters-grid,
  .project-form-grid,
  .kanban-shell,
  .template-grid,
  .document-layout,
  .document-form-grid,
  .document-sheet-head,
  .document-sheet-meta,
  .document-party-grid,
  .document-payment-grid,
  .document-sheet-footer,
  .quick-subnav,
  .quick-main-tabs,
  .quick-form-grid,
  .quick-form-fields,
  .quick-form-split,
  .overview-metrics,
  .overview-metrics--three,
  .overview-metrics--four,
  .overview-grid,
  .comparison-grid,
  .login-feature-list {
    grid-template-columns: 1fr;
  }

  .login-content {
    gap: 28px;
    padding-top: 96px;
  }

  .login-brand-lockup {
    width: 100%;
  }

  .login-floating-card {
    width: min(300px, calc(100vw - 36px));
  }

  .field-span-2 {
    grid-column: span 1;
  }

  .topbar-main,
  .topbar-period {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-months {
    width: 100%;
  }

  .login-floating-card--primary {
    top: 10%;
    right: 24px;
  }

  .login-floating-card--secondary {
    display: none;
  }
}

@media (max-width: 640px) {
  .app-layout {
    padding: 14px;
    gap: 14px;
  }

  .app-layout.is-login-route {
    padding: 0;
    gap: 0;
  }

  .sidebar,
  .workspace-topbar,
  .hero-card,
  .panel-card,
  .metric-card,
  .project-highlight,
  .statement-card,
  .modal-card {
    border-radius: 22px;
  }

  .format-grid,
  .import-form-grid,
  .installment-form-grid,
  .metrics-grid,
  .cards-grid,
  .statement-grid,
  .document-workspace,
  .quick-form-grid,
  .quick-form-fields,
  .quick-form-split,
  .overview-metrics,
  .overview-metrics--three,
  .overview-metrics--four,
  .overview-grid,
  .comparison-grid,
  .login-feature-list {
    grid-template-columns: 1fr;
  }

  .login-content {
    padding: 92px 18px 28px;
  }

  .modal-card--import .format-grid {
    padding-right: 0;
  }

  .login-brand-lockup {
    grid-template-columns: 60px minmax(0, 1fr);
    padding: 14px;
  }

  .login-brand-lockup img {
    width: 60px;
    height: 60px;
    border-radius: 18px;
  }

  .login-showcase-copy h1 {
    font-size: 2.3rem;
  }

  .login-showcase-copy p {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .login-card {
    width: 100%;
    padding: 26px 20px;
    border-radius: 26px;
  }

  .login-floating-card--primary {
    top: 16px;
    left: 18px;
    right: 18px;
    width: auto;
  }

  .login-background-grid {
    background-size: 56px 56px;
  }

  .modal-footer,
  .modal-header,
  .document-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .quick-register-header {
    flex-direction: column;
  }

  .quick-register-badges {
    justify-content: flex-start;
  }

  .launches-table,
  .launches-table thead,
  .launches-table tbody,
  .launches-table tr,
  .launches-table td {
    display: block;
    width: 100%;
  }

  .launches-table thead {
    display: none;
  }

  .launches-table tr {
    padding: 12px;
    border-bottom: 1px solid var(--border);
  }

  .launches-table td {
    padding: 6px 0;
    border: 0;
  }

  .launches-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--text-faint);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
}

@media (max-width: 1380px) {
  .dashboard-kpi-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-kpi-item:nth-child(3n) {
    border-right: 0;
  }

  .dashboard-kpi-item:nth-child(n + 4) {
    border-top: 1px solid #e6edf5;
  }

  .dashboard-hero-grid {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .dashboard-analysis-grid {
    grid-template-columns: 280px minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 1320px) {
  .app-layout.is-summary-route {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .app-layout.is-summary-route .sidebar {
    align-items: center;
    min-height: 100vh;
    padding: 14px 10px;
  }

  .app-layout.is-summary-route .sidebar-top {
    flex-direction: column;
  }

  .app-layout.is-summary-route .sidebar-nav {
    flex-direction: column;
    flex-wrap: nowrap;
  }
}

@media (max-width: 1180px) {
  .app-layout.is-summary-route {
    grid-template-columns: 72px minmax(0, 1fr);
    height: auto;
    overflow: visible;
  }

  .app-layout.is-summary-route .workspace {
    display: block;
    min-height: auto;
    height: auto;
    overflow: visible;
  }

  .app-layout.is-summary-route .screen-root {
    display: block;
    height: auto;
    overflow: visible;
    padding-bottom: 16px;
  }

  .dashboard-screen {
    display: flex;
    height: auto;
  }

  .dashboard-hero-grid,
  .dashboard-analysis-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-donut-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-panel--span-rows {
    grid-row: auto;
  }
}

@media (max-width: 920px) {
  .app-layout.is-summary-route {
    grid-template-columns: 1fr;
  }

  .app-layout.is-summary-route .sidebar {
    min-height: auto;
    padding: 12px;
    border-radius: 0 0 18px 18px;
  }

  .app-layout.is-summary-route .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .app-layout.is-summary-route .workspace {
    padding: 0 10px 14px;
  }

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

  .dashboard-kpi-item {
    border-right: 1px solid #e6edf5;
  }

  .dashboard-kpi-item:nth-child(2n) {
    border-right: 0;
  }

  .dashboard-kpi-item:nth-child(n + 3) {
    border-top: 1px solid #e6edf5;
  }

  .dashboard-monthly-bars {
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
  }
}

@media (max-width: 640px) {
  .app-layout.is-summary-route .workspace-topbar {
    padding: 12px;
    border-radius: 0 0 18px 18px;
  }

  .dashboard-kpi-strip {
    grid-template-columns: 1fr;
  }

  .dashboard-kpi-item,
  .dashboard-kpi-item:nth-child(2n),
  .dashboard-kpi-item:nth-child(3n) {
    border-right: 0;
  }

  .dashboard-kpi-item:nth-child(n + 2) {
    border-top: 1px solid #e6edf5;
  }

  .dashboard-kpi-item {
    grid-template-columns: 48px minmax(0, 1fr);
    min-height: 98px;
    padding: 14px;
  }

  .dashboard-kpi-icon {
    width: 48px;
    height: 48px;
  }

  .dashboard-kpi-value {
    font-size: 1.5rem;
  }

  .dashboard-panel {
    padding: 14px;
  }

  .dashboard-goal-gauge {
    width: min(100%, 190px);
    height: 150px;
  }

  .dashboard-goal-center strong {
    font-size: 1.5rem;
  }

  .dashboard-goal-center small {
    font-size: 0.72rem;
  }

  .dashboard-monthly-topline {
    align-items: stretch;
  }

  .dashboard-monthly-badge {
    min-width: 126px;
  }

  .dashboard-monthly-bars {
    grid-template-columns: repeat(12, minmax(48px, 1fr));
  }

  .dashboard-monthly-bar {
    width: 18px;
  }

  .dashboard-donut-chart {
    width: 152px;
    height: 152px;
  }

  .dashboard-donut-core {
    inset: 22px;
  }

  .dashboard-horizontal-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .dashboard-horizontal-value {
    justify-self: start;
  }
}
