@charset "UTF-8";
/* Keep inline icons proportional after Font Awesome 7's fixed-width default.
   Sidebar icons retain their explicit width below. */
:root {
  --fa-width: auto;
}

/* Ordinary links stay blue independently of the chosen accent. Match
   AdminLTE's exclusions so buttons, navigation and badges keep their colors. */
html {
  --app-link-color: #007bff;
  --app-link-hover-color: #0056b3;
}

html[class*=accent-] a:not(.dropdown-item):not(.btn-app):not(.nav-link):not(.brand-link):not(.page-link):not(.badge):not(.btn) {
  color: var(--app-link-color);
}
html[class*=accent-] a:not(.dropdown-item):not(.btn-app):not(.nav-link):not(.brand-link):not(.page-link):not(.badge):not(.btn):hover, html[class*=accent-] a:not(.dropdown-item):not(.btn-app):not(.nav-link):not(.brand-link):not(.page-link):not(.badge):not(.btn):focus {
  color: var(--app-link-hover-color);
}

/* Keep underlined text visible in normal, hover, and keyboard focus states. */
.text-underline,
.text-underline:hover,
.text-underline:focus {
  text-decoration: underline;
}

/* Share the brand mark between the public header and application sidebar. */
.app-brand-mark {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: #b5e61d;
  color: #1c4b42;
}

/* Place contextual Help beside the brand without nesting interactive links. */
.sidebar-brand-row {
  display: flex;
  align-items: stretch;
  white-space: nowrap;
}

.sidebar-brand-row > .brand-link {
  flex: 1 1 auto;
  min-width: 0;
  border-bottom: 0;
}

.sidebar-brand-row .brand-link .brand-image {
  width: 33px;
  height: 33px;
  font-size: 15px;
}

.sidebar-help-link {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0.8125rem 0.6rem;
  line-height: 1.5;
}

.sidebar-help-link:hover,
.sidebar-help-link:focus {
  text-decoration: none;
}

[class*=sidebar-dark] .sidebar-brand-row {
  border-bottom: 1px solid #4b545c;
}
[class*=sidebar-dark] .sidebar-brand-row > .brand-link:hover {
  /* Keep the application title at its normal color while hovered. */
  color: rgba(255, 255, 255, 0.8);
}
[class*=sidebar-dark] .sidebar-help-link {
  color: rgba(255, 255, 255, 0.8);
}
[class*=sidebar-dark] .sidebar-help-link:hover,
[class*=sidebar-dark] .sidebar-help-link:focus {
  color: #fff;
}

[class*=sidebar-light] .sidebar-brand-row {
  border-bottom: 1px solid #dee2e6;
}
[class*=sidebar-light] .sidebar-brand-row > .brand-link:hover {
  /* Match the light sidebar's normal application title color on hover. */
  color: rgba(0, 0, 0, 0.8);
}
[class*=sidebar-light] .sidebar-help-link {
  color: rgba(0, 0, 0, 0.8);
}
[class*=sidebar-light] .sidebar-help-link:hover,
[class*=sidebar-light] .sidebar-help-link:focus {
  color: #000;
}

.app-main > .app-content {
  /* Preserve space below the page content without spacer line breaks. */
  padding: 0 0 4.5em;
}

/* Clip off-screen layout elements without creating a separate scroll area;
   table headers must follow the document's vertical scroll. */
.app-wrapper {
  overflow: clip;
}

/* Spase for card header */
.card-header {
  padding: 0.7em 1.3em 0.7em 0.7em;
}

/* Overlay reusable list filters without resizing their content cards. */
.list-filter-card-header {
  display: block;
  position: relative;
}

.list-filter-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.list-filter-toolbar .card-title {
  float: none;
  margin: 0;
}

.list-filter-pagination {
  max-width: 100%;
}

.list-filter-toolbar > .card-title + .list-filter-pagination {
  margin-left: auto;
}

.list-filter-pagination .card-tools {
  float: none;
}

.list-filter-pagination .pagination {
  flex-wrap: wrap;
  margin: 0;
}

.list-filter-toggle {
  flex: 0 0 auto;
  margin-left: auto;
}

/* Filter and pagination controls share the same neutral button colors. */
.list-filter-toggle,
.list-filter-toggle:hover,
.list-filter-toggle:focus,
.list-filter-toggle:active,
.pagination .page-link,
.pagination .page-link:hover,
.pagination .page-link:focus,
.pagination .page-link:active {
  border-color: rgba(0, 0, 0, 0.2);
  background-color: #fff;
  color: #212529;
}

/* Match Filter after mouse clicks while retaining keyboard focus feedback. */
.pagination .page-link:focus:not(:focus-visible) {
  box-shadow: none;
}

.list-filter-panel {
  position: absolute;
  top: calc(100% + 0.25rem);
  right: 0.75rem;
  z-index: 1000;
  width: 24rem;
  max-width: calc(100% - 1.5rem);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0.25rem;
  background-color: #fff;
}

/* Open/close instantly instead of animating height like Bootstrap's default. */
.list-filter-panel.collapsing {
  transition: none;
}

.list-filter-form {
  display: block;
  margin: 0;
  padding: 0.75rem;
}

.list-filter-form .mb-3 {
  margin-bottom: 0.75rem;
}

.list-filter-form label {
  margin-bottom: 0.25rem;
  color: #212529;
}

/* Keep the month picker inside its filter and follow the application theme. */
.transaction-period-filter .flatpickr-wrapper {
  display: block;
  width: 100%;
}
.transaction-period-filter .flatpickr-calendar {
  max-width: 100%;
  border: 1px solid var(--bs-border-color);
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  box-shadow: var(--bs-box-shadow);
  font-family: inherit;
}
.transaction-period-filter .flatpickr-month,
.transaction-period-filter .flatpickr-current-month input.cur-year,
.transaction-period-filter .flatpickr-monthSelect-month,
.transaction-period-filter .flatpickr-prev-month,
.transaction-period-filter .flatpickr-next-month {
  color: var(--bs-body-color);
  fill: var(--bs-body-color);
}
.transaction-period-filter .flatpickr-monthSelect-month:hover,
.transaction-period-filter .flatpickr-monthSelect-month:focus {
  border-color: var(--bs-border-color);
  background: var(--bs-tertiary-bg);
}
.transaction-period-filter .flatpickr-monthSelect-month.selected {
  border-color: var(--bs-primary);
  background: var(--bs-primary);
  color: #fff;
}
.transaction-period-filter .flatpickr-monthSelect-month.flatpickr-disabled {
  color: var(--bs-secondary-color);
  opacity: 0.5;
}
.transaction-period-filter .flatpickr-calendar::before,
.transaction-period-filter .flatpickr-calendar::after {
  display: none;
}

/* Match form actions: Apply on the left and Clear on the right. */
.list-filter-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

/* Reuse filter styling while Bootstrap positions the page popup by its button. */
.pagination .pagination-panel {
  width: 24rem;
  max-width: calc(100vw - 3rem);
  padding: 0;
}

/* Match the neutral popover surface to the active dark theme. */
html[data-bs-theme="dark"] .list-filter-toggle,
html[data-bs-theme="dark"] .list-filter-toggle:hover,
html[data-bs-theme="dark"] .list-filter-toggle:focus,
html[data-bs-theme="dark"] .list-filter-toggle:active,
html[data-bs-theme="dark"] .pagination .page-link,
html[data-bs-theme="dark"] .pagination .page-link:hover,
html[data-bs-theme="dark"] .pagination .page-link:focus,
html[data-bs-theme="dark"] .pagination .page-link:active {
  border-color: #4b545c;
  background-color: #343a40;
  color: #fff;
}
html[data-bs-theme="dark"] .list-filter-panel {
  border-color: #4b545c;
  background-color: #343a40;
}
html[data-bs-theme="dark"] .list-filter-form label {
  color: #fff;
}

@media (max-width: 575.98px) {
  .list-filter-toolbar .card-title {
    max-width: calc(100% - 5.5rem);
  }
  .list-filter-pagination {
    order: 3;
    flex-basis: 100%;
    margin-left: 0;
  }
  .list-filter-pagination .card-tools {
    display: inline-block;
    max-width: 100%;
  }
  .list-filter-toggle {
    margin-left: auto;
  }
  .list-filter-panel {
    right: 0.5rem;
    width: calc(100% - 1rem);
    max-width: none;
  }
}
/* Space under horizontal line in card */
.card hr {
  margin-bottom: 0.3em;
}

html[data-bs-theme="dark"] .card hr {
  border-top-color: #6c757d;
}

/* Space between elements inside card */
.card-body {
  padding: 0.7em;
}

/* Keep a card row at its normal height even when the value is empty */
.card-body > p.text-muted {
  min-height: 1.5em;
}

/* Keep Markdown help headings compact and separated from preceding content. */
.help-content h3 {
  font-size: 1.5rem;
}
.help-content h2,
.help-content h3,
.help-content h4,
.help-content h5,
.help-content h6 {
  margin-top: 1.5rem;
}

/* Space of cell of first column in table */
.table td:first-child,
.table th:first-child {
  padding-left: 0.3em !important;
}

/* Space of cell of last column in table */
.table td:last-child,
.table th:last-child {
  padding-right: 0.3em !important;
}

/* Keep table header borders visible in light and dark themes */
.table-bordered thead td,
.table-bordered thead th {
  border-color: #000;
  /* Collapsed table borders otherwise stay behind when the header sticks. */
  box-shadow: inset 0 0 0 1px var(--table-header-border, #000);
}

/* Let headings wrap while keeping narrow columns readable. */
.table th {
  min-width: 3rem;
  white-space: normal;
}

/* Fit tables to the page instead of creating horizontal or vertical scrollers.
   The shared script scales only tables whose minimum width still cannot fit. */
.app-main .table-responsive {
  overflow: visible;
  max-height: none;
}

.app-main table {
  width: 100%;
  zoom: var(--table-scale, 1);
}

.app-main td {
  overflow-wrap: anywhere;
}

/* Stick the whole header so grouped headings keep all their rows together. */
.app-main .table-card-header {
  position: sticky;
  top: 0;
  z-index: 991;
  background-color: inherit;
}

/* Plain title bars use floats in AdminLTE. Let their title and pagination wrap
   onto separate rows without overlapping when the available width is narrow. */
.table-card-header:not(.list-filter-card-header) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.table-card-header > .card-tools {
  float: none;
  margin-left: auto;
}

.app-main table > thead {
  position: sticky;
  /* The title bar stays at normal size even when a dense table scales down. */
  top: calc(var(--table-toolbar-height, 0px) / var(--table-scale, 1));
  z-index: 990;
  background-color: #6c757d;
}

@media print {
  .app-main .table-card-header,
  .app-main table > thead {
    position: static;
  }
}

html[data-bs-theme="dark"] .table-bordered thead td,
html[data-bs-theme="dark"] .table-bordered thead th {
  border-color: #000;
}
html[data-bs-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) {
  /* Darker stripes distinguish rows on both dark and dim card surfaces.
     Keep this before hover styles so row highlights take precedence. */
  background-color: rgba(0, 0, 0, 0.25);
}

/* Color of highlighted item of table */
.table-hover tbody tr:hover {
  --app-link-color: #fff;
  --app-link-hover-color: #fff;
  background-color: rgb(23, 162, 184);
  color: white;
}

/* Improve row hover contrast in dark mode */
html[data-bs-theme="dark"] .table-hover tbody tr:hover {
  background-color: #375a7f;
  color: #fff;
}

/* Space between tabs */
.p0 {
  padding-right: 0;
}

/* Selecting row in the table. bg-olive = #3d9970 */
.selected-row {
  --app-link-color: #fff;
  --app-link-hover-color: #fff;
  background-color: #3d9970 !important;
  color: white;
}

ul {
  padding-left: 1em;
  margin-bottom: 0;
}

/* Center navigation icons and labels on the same baseline. */
.sidebar-menu .nav-link {
  display: flex;
  align-items: center;
  column-gap: 0.25rem;
}

.sidebar-menu .nav-link > .nav-icon {
  flex-shrink: 0;
}

/* Keep sidebar menu labels on one line; long labels are clipped with an
   ellipsis instead of wrapping to a second line. */
.sidebar-menu .nav-link p {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Keep the toggle available after AdminLTE moves the sidebar off screen. */
.sidebar-toggle-fixed {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1050;
  border: none;
  border-radius: 4px;
  padding: 10px 12px;
}

/* Empty space at the end of the sidebar menu so scrolled-up content is not
   covered by the fixed toggle button */
.sidebar-menu-spacer {
  height: 70px;
}

/* Separate contextual navigation from session actions at the menu bottom. */
.sidebar-menu-divider {
  margin: 0.5rem 0.75rem;
  border-top: 1px solid rgba(128, 128, 128, 0.45);
}

/* Use the same flat highlight for gray-accent parent items, selected
   submenu items and sidebar hover states in dim and dark modes. */
html[data-bs-theme="dark"] .sidebar-dark-dark .sidebar-menu > .nav-item > .nav-link.active {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: none;
}

/* Selected submenu items match the sidebar hover fill in dim and dark modes. */
[class*=sidebar-dark-] .nav-treeview > .nav-item > .nav-link.active,
[class*=sidebar-dark-] .nav-treeview > .nav-item > .nav-link.active:hover,
[class*=sidebar-dark-] .nav-treeview > .nav-item > .nav-link.active:focus {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff !important;
}

/* Keep top navbar dark from first paint when dark theme is active */
html[data-bs-theme="dark"] {
  --app-link-color: #7ab8ff;
  --app-link-hover-color: #7ab8ff;
}
html[data-bs-theme="dark"] .theme-sync-navbar {
  background-color: #343a40;
  border-bottom: 1px solid #4b545c;
}
html[data-bs-theme="dark"] .theme-sync-navbar .navbar-nav .nav-item,
html[data-bs-theme="dark"] .theme-sync-navbar .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.8);
}

/* Dim uses Bootstrap's dark component colors with lighter page surfaces. */
html[data-theme="dim"] {
  --app-link-color: #aed4ff;
  --app-link-hover-color: #aed4ff;
  background-color: #5c6570 !important;
  color: #f0f1f3 !important;
}
html[data-theme="dim"] .app-main {
  background-color: #5c6570 !important;
  color: #f0f1f3 !important;
}
html[data-theme="dim"] .card {
  background-color: #495159 !important;
  color: #f0f1f3 !important;
}
html[data-theme="dim"] .card .card {
  background-color: rgb(82.1925925926, 91.2, 100.2074074074) !important;
}
html[data-theme="dim"] .list-group-item {
  background-color: #495159 !important;
  border-color: #8a929a !important;
}
html[data-theme="dim"] .form-control:not(.form-control-navbar):not(.form-control-sidebar),
html[data-theme="dim"] .form-select,
html[data-theme="dim"] .input-group-text,
html[data-theme="dim"] select {
  background-color: #495159 !important;
  color: #f0f1f3 !important;
  border-color: #8a929a !important;
}
html[data-theme="dim"] .text-muted {
  color: #c0c6cc !important;
}
html[data-theme="dim"] .table-bordered,
html[data-theme="dim"] .table-bordered td,
html[data-theme="dim"] .table-bordered th {
  --table-header-border: #8a929a;
  border-color: #8a929a !important;
}

/* Keep badge links in their status foreground across themes and link states.
   !important overrides accent links and AdminLTE background utilities. */
html .badge a, html .badge a:hover, html .badge a:focus, html .badge a:visited, html .badge a:active {
  color: inherit !important;
}

/* Dark text has stronger contrast than white on success-green badges. */
html .badge.bg-success a {
  color: #111 !important;
}

/* Accent color: recolors primary buttons and backgrounds to the chosen
   `Settings.ThemeColor`. Cards use card-primary with the theme below; status
   badges, alerts, and action buttons keep their semantic colors. */
html.accent-gray .bg-primary {
  background-color: #6c757d !important;
}
html.accent-gray .btn-primary {
  background-color: #6c757d !important;
  border-color: #6c757d !important;
}
html.accent-gray .btn-primary:hover {
  background-color: rgb(89.0884120172, 96.5124463519, 103.1115879828) !important;
  border-color: rgb(84.3605150215, 91.3905579399, 97.6394849785) !important;
}
html.accent-gray .btn-primary:focus,
html.accent-gray .btn-primary.focus,
html.accent-gray .btn-primary:not(:disabled):not(.disabled):active:focus,
html.accent-gray .show > .btn-primary.dropdown-toggle:focus {
  box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.5) !important;
}
html.accent-gray .btn-primary:not(:disabled):not(.disabled):active,
html.accent-gray .btn-primary:not(:disabled):not(.disabled).active,
html.accent-gray .show > .btn-primary.dropdown-toggle {
  background-color: rgb(79.6326180258, 86.2686695279, 92.1673819742) !important;
  border-color: rgb(74.90472103, 81.1467811159, 86.69527897) !important;
}

html.accent-indigo .bg-primary {
  background-color: #6610f2 !important;
}
html.accent-indigo .btn-primary {
  background-color: #6610f2 !important;
  border-color: #6610f2 !important;
}
html.accent-indigo .btn-primary:hover {
  background-color: rgb(85.3285714286, 11.2047619048, 205.9952380952) !important;
  border-color: rgb(81.3214285714, 10.6785714286, 196.3214285714) !important;
}
html.accent-indigo .btn-primary:focus,
html.accent-indigo .btn-primary.focus,
html.accent-indigo .btn-primary:not(:disabled):not(.disabled):active:focus,
html.accent-indigo .show > .btn-primary.dropdown-toggle:focus {
  box-shadow: 0 0 0 0.2rem rgba(102, 16, 242, 0.5) !important;
}
html.accent-indigo .btn-primary:not(:disabled):not(.disabled):active,
html.accent-indigo .btn-primary:not(:disabled):not(.disabled).active,
html.accent-indigo .show > .btn-primary.dropdown-toggle {
  background-color: rgb(77.3142857143, 10.1523809524, 186.6476190476) !important;
  border-color: rgb(73.3071428571, 9.6261904762, 176.9738095238) !important;
}

html.accent-blue .bg-primary {
  background-color: #007bff !important;
}
html.accent-blue .btn-primary {
  background-color: #007bff !important;
  border-color: #007bff !important;
}
html.accent-blue .btn-primary:hover {
  background-color: rgb(0, 103.32, 214.2) !important;
  border-color: rgb(0, 98.4, 204) !important;
}
html.accent-blue .btn-primary:focus,
html.accent-blue .btn-primary.focus,
html.accent-blue .btn-primary:not(:disabled):not(.disabled):active:focus,
html.accent-blue .show > .btn-primary.dropdown-toggle:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.5) !important;
}
html.accent-blue .btn-primary:not(:disabled):not(.disabled):active,
html.accent-blue .btn-primary:not(:disabled):not(.disabled).active,
html.accent-blue .show > .btn-primary.dropdown-toggle {
  background-color: rgb(0, 93.48, 193.8) !important;
  border-color: rgb(0, 88.56, 183.6) !important;
}

html.accent-green .bg-primary {
  background-color: #28a745 !important;
}
html.accent-green .btn-primary {
  background-color: #28a745 !important;
  border-color: #28a745 !important;
}
html.accent-green .btn-primary:hover {
  background-color: rgb(32.115942029, 134.084057971, 55.4) !important;
  border-color: rgb(30.1449275362, 125.8550724638, 52) !important;
}
html.accent-green .btn-primary:focus,
html.accent-green .btn-primary.focus,
html.accent-green .btn-primary:not(:disabled):not(.disabled):active:focus,
html.accent-green .show > .btn-primary.dropdown-toggle:focus {
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.5) !important;
}
html.accent-green .btn-primary:not(:disabled):not(.disabled):active,
html.accent-green .btn-primary:not(:disabled):not(.disabled).active,
html.accent-green .show > .btn-primary.dropdown-toggle {
  background-color: rgb(28.1739130435, 117.6260869565, 48.6) !important;
  border-color: rgb(26.2028985507, 109.3971014493, 45.2) !important;
}

html.accent-red .bg-primary {
  background-color: #dc3545 !important;
}
html.accent-red .btn-primary {
  background-color: #dc3545 !important;
  border-color: #dc3545 !important;
}
html.accent-red .btn-primary:hover {
  background-color: rgb(197.9088607595, 34.2911392405, 49.9670886076) !important;
  border-color: rgb(189.2151898734, 32.7848101266, 47.7721518987) !important;
}
html.accent-red .btn-primary:focus,
html.accent-red .btn-primary.focus,
html.accent-red .btn-primary:not(:disabled):not(.disabled):active:focus,
html.accent-red .show > .btn-primary.dropdown-toggle:focus {
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.5) !important;
}
html.accent-red .btn-primary:not(:disabled):not(.disabled):active,
html.accent-red .btn-primary:not(:disabled):not(.disabled).active,
html.accent-red .show > .btn-primary.dropdown-toggle {
  background-color: rgb(180.5215189873, 31.2784810127, 45.5772151899) !important;
  border-color: rgb(171.8278481013, 29.7721518987, 43.382278481) !important;
}

/* Theme picker: swatches preview each `Settings.ThemeSurface` /
   `Settings.ThemeColor` option as a single flat color. */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
}

.theme-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.85rem;
}
.theme-swatch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.theme-swatch-preview {
  width: 100%;
  height: 40px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.theme-swatch input:checked ~ .theme-swatch-preview {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #007bff;
}

.theme-swatch input:focus-visible ~ .theme-swatch-preview {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

.theme-swatch-light .theme-swatch-preview {
  background-color: #f8f9fa;
}

.theme-swatch-dim .theme-swatch-preview {
  background-color: #5c6570;
}

.theme-swatch-dark .theme-swatch-preview {
  background-color: #343a40;
}

.theme-swatch-gray .theme-swatch-preview {
  background-color: #6c757d;
}

.theme-swatch-indigo .theme-swatch-preview {
  background-color: #6610f2;
}

.theme-swatch-blue .theme-swatch-preview {
  background-color: #007bff;
}

.theme-swatch-green .theme-swatch-preview {
  background-color: #28a745;
}

.theme-swatch-red .theme-swatch-preview {
  background-color: #dc3545;
}

/* AdminLTE 4 uses a grid shell. Keep the document as the scroll container so
   sticky toolbars and grouped headings share the same scrolling surface. */
body.sidebar-expand-lg.layout-fixed .app-main {
  overflow: visible;
}
.app-main > .app-content {
  padding: 0.75rem 0 4.5rem;
}
.app-text-sm {
  font-size: 0.875rem;
}
.app-text-xs {
  font-size: 0.75rem;
}
a {
  text-decoration: none;
}
.card {
  margin-bottom: 1rem;
}
.card-title {
  font-size: 1.1rem;
}
/* Match table card accents and keep popup content opaque over the blur. */
.toast {
  --bs-toast-bg: var(--bs-body-bg);
  --bs-toast-header-bg: var(--app-accent, #007bff);
  --bs-toast-header-color: #fff;
  --bs-btn-close-filter: invert(1);
}
html:is(.accent-blue, .accent-green) .toast {
  --bs-toast-header-color: #000;
  --bs-btn-close-filter: none;
}
.toast-header .btn-close {
  --bs-btn-close-opacity: 1;
  --bs-btn-close-hover-opacity: 1;
  --bs-btn-close-focus-shadow: 0 0 0 0.15rem currentColor;
}
/* Blur the page behind flash messages and comment dialogs. */
.flash-backdrop,
.comment-modal {
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.flash-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1089;
  pointer-events: none;
}
.flash-backdrop:has(+ .toast-container .toast:is(.show, .showing)) {
  display: block;
}
.profile-username {
  font-size: 1.3125rem;
}
.app-sidebar {
  align-self: start;
  height: 100vh;
  background-color: var(--bs-body-bg);
  --lte-sidebar-menu-active-bg: var(--app-accent, #007bff);
  --lte-sidebar-menu-active-color: #fff;
}
/* Hide the off-screen shadow and remove collapsed links from keyboard focus. */
.sidebar-collapse .app-sidebar {
  visibility: hidden;
}
html.accent-gray { --app-accent: #6c757d; }
html.accent-indigo { --app-accent: #6610f2; }
html.accent-blue { --app-accent: #007bff; }
html.accent-green { --app-accent: #28a745; }
html.accent-red { --app-accent: #dc3545; }
.app-sidebar[data-bs-theme="dark"] {
  --lte-sidebar-menu-active-bg: var(--app-accent, #007bff);
  --lte-sidebar-menu-active-color: #fff;
  background-color: #343a40;
}
.sidebar-wrapper .nav-icon {
  width: 1.6rem;
  text-align: center;
}
.sidebar-menu .nav-treeview {
  padding-left: 0.75rem;
}
.sidebar-brand-row {
  padding-right: 0;
}
.sidebar-help-link {
  padding: 0.5rem;
}
.sidebar-toggle-fixed {
  background-color: var(--app-accent, #007bff);
  color: #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

/* Bootstrap 5 paints table cells. Set its variables so the app's surface,
   selected rows, hover colors, and opaque sticky headings remain visible. */
.table {
  --bs-table-bg: transparent;
  --bs-table-color: inherit;
  --bs-table-hover-bg: #17a2b8;
  --bs-table-hover-color: #fff;
}
.table > thead {
  --bs-table-bg: #6c757d;
  --bs-table-color: #fff;
}
html[data-bs-theme="dark"] .table {
  --bs-table-striped-bg: rgba(0, 0, 0, 0.25);
  --bs-table-hover-bg: #375a7f;
}
/* Yellow warning rows need black text, including stripes and comment links. */
.table > tbody > tr.bg-warning {
  --bs-table-color: #000;
  --bs-table-striped-color: #000;
  --app-link-color: currentColor;
  --app-link-hover-color: currentColor;
}
.table > tbody > tr.selected-row > * {
  --bs-table-bg-state: #3d9970;
  --bs-table-color-state: #fff;
}
html[data-theme="dim"] {
  --bs-body-color: #f0f1f3;
  --bs-body-bg: #495159;
  --bs-secondary-color: #c0c6cc;
  --bs-border-color: #8a929a;
  --bs-tertiary-bg: #5c6570;
}
html[data-theme="dim"] .table {
  --bs-table-border-color: #8a929a;
}
/* All application cards use AdminLTE's primary variant. */
html[class*="accent-"] .card-primary {
  --lte-card-variant-bg: var(--app-accent);
}

/* Report tabs need their own foreground on filled accent headers. Keep the
   active pill distinct from the header in every surface and accent. */
.card-header .report-tabs {
  --bs-nav-link-color: #fff;
  --bs-nav-link-hover-color: #fff;
  --bs-nav-pills-link-active-color: #212529;
  --bs-nav-pills-link-active-bg: #fff;
}
html:is(.accent-blue, .accent-green) .card-header .report-tabs {
  --bs-nav-link-color: #000;
  --bs-nav-link-hover-color: #000;
}
.report-tabs .nav-link:not(.active):hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.report-tabs .nav-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -4px;
  box-shadow: none;
}

/* Keep the existing compact detail cards and native Django form widgets. */
.list-group-unbordered > .list-group-item {
  border-left: 0;
  border-right: 0;
  border-radius: 0;
}
label:not(.form-check-label) {
  font-weight: 600;
}
/* Use normal weight for nested and separate checkbox labels. */
label.form-check-label,
label:has(input[type="checkbox"]),
input[type="checkbox"] + label {
  font-weight: 400;
}
/* FullCalendar follows the saved dashboard surface and accent. */
#cash-flow-calendar {
  --fc-border-color: var(--bs-border-color);
  --fc-page-bg-color: var(--bs-body-bg);
  --fc-neutral-bg-color: var(--bs-tertiary-bg);
  --fc-neutral-text-color: var(--bs-body-color);
  --fc-list-event-hover-bg-color: var(--bs-secondary-bg);
  --fc-event-bg-color: var(--app-accent);
  --fc-event-border-color: var(--app-accent);
  --fc-button-bg-color: var(--app-accent);
  --fc-button-border-color: var(--app-accent);
  --fc-button-hover-bg-color: color-mix(in srgb, var(--app-accent), #000 15%);
  --fc-button-hover-border-color: var(--fc-button-hover-bg-color);
  --fc-button-active-bg-color: color-mix(in srgb, var(--app-accent), #000 25%);
  --fc-button-active-border-color: var(--fc-button-active-bg-color);
  --fc-today-bg-color: color-mix(in srgb, var(--app-accent) 12%, transparent);
}
#cash-flow-calendar .fc-toolbar {
  flex-wrap: wrap;
  gap: 0.75rem;
}
#cash-flow-calendar .fc-toolbar-title {
  font-size: 1.5rem;
}
#cash-flow-calendar table > thead {
  background-color: var(--bs-tertiary-bg);
}
#cash-flow-calendar .fc-col-header-cell-cushion {
  --app-link-color: var(--bs-body-color);
}
#cash-flow-calendar .fc-daygrid-day-frame {
  min-height: 6.5rem;
}
#cash-flow-calendar .fc-daygrid-event {
  --app-link-color: #fff;
  --app-link-hover-color: #fff;
  padding: 0.2rem;
}
#cash-flow-calendar .fc-event-title,
#cash-flow-calendar .fc-list-event-title {
  text-align: right;
  white-space: nowrap;
}
#cash-flow-calendar .fc-daygrid-event .fc-event-title {
  display: block;
  width: 100%;
}
#cash-flow-calendar .fc-list-event-time {
  display: none;
}
#cash-flow-calendar .fc-list-day-cushion {
  background: var(--bs-tertiary-bg);
}
@media (max-width: 767px) {
  #cash-flow-calendar .fc-toolbar {
    justify-content: center;
  }
  #cash-flow-calendar .fc-toolbar-chunk:nth-child(2) {
    order: -1;
    width: 100%;
    text-align: center;
  }
}

/* Align category choices with their checkbox controls. */
#id_categories label {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}
#id_categories input[type="checkbox"] {
  flex-shrink: 0;
  margin: 0;
}
.login-box,
.register-box {
  max-width: calc(100vw - 2rem);
}

/* Keep compact authentication buttons on one line on narrow screens. */
.login-box button[type="submit"],
.register-box button[type="submit"] {
  min-width: max-content;
}

/* Legacy status colors remain readable for existing database values. */
.badge.badge-primary, .badge.bg-primary {
  background-color: #007bff !important;
  color: #fff;
}
.badge.badge-secondary, .badge.bg-secondary {
  background-color: #6c757d !important;
  color: #fff;
}
.badge.badge-success, .badge.bg-success {
  background-color: #28a745 !important;
  color: #111;
}
.badge.badge-info, .badge.bg-info {
  background-color: #17a2b8 !important;
  color: #fff;
}
.badge.badge-warning, .badge.bg-warning {
  background-color: #ffc107 !important;
  color: #1f2d3d;
}
.badge.badge-danger, .badge.bg-danger {
  background-color: #dc3545 !important;
  color: #fff;
}
.badge.badge-light, .badge.bg-light {
  background-color: #f8f9fa !important;
  color: #1f2d3d;
}
.badge.badge-dark, .badge.bg-dark {
  background-color: #343a40 !important;
  color: #fff;
}
.badge.badge-blue, .badge.bg-blue, .bg-blue {
  background-color: #007bff !important;
  color: #fff;
}
.badge.badge-indigo, .badge.bg-indigo, .bg-indigo {
  background-color: #6610f2 !important;
  color: #fff;
}
.badge.badge-purple, .badge.bg-purple, .bg-purple {
  background-color: #6f42c1 !important;
  color: #fff;
}
.badge.badge-pink, .badge.bg-pink, .bg-pink {
  background-color: #e83e8c !important;
  color: #fff;
}
.badge.badge-red, .badge.bg-red, .bg-red {
  background-color: #dc3545 !important;
  color: #fff;
}
.badge.badge-orange, .badge.bg-orange, .bg-orange {
  background-color: #fd7e14 !important;
  color: #1f2d3d;
}
.badge.badge-yellow, .badge.bg-yellow, .bg-yellow {
  background-color: #ffc107 !important;
  color: #1f2d3d;
}
.badge.badge-green, .badge.bg-green, .bg-green {
  background-color: #28a745 !important;
  color: #111;
}
.badge.badge-teal, .badge.bg-teal, .bg-teal {
  background-color: #20c997 !important;
  color: #1f2d3d;
}
.badge.badge-cyan, .badge.bg-cyan, .bg-cyan {
  background-color: #17a2b8 !important;
  color: #fff;
}
.badge.badge-white, .badge.bg-white {
  background-color: #fff !important;
  color: #1f2d3d;
}
.badge.badge-gray, .badge.bg-gray, .bg-gray {
  background-color: #6c757d !important;
  color: #fff;
}
.badge.badge-gray-dark, .badge.bg-gray-dark, .bg-gray-dark {
  background-color: #343a40 !important;
  color: #fff;
}
.badge.badge-gray-light, .badge.bg-gray-light, .bg-gray-light {
  background-color: #d3d3d3 !important;
  color: #1f2d3d;
}
.badge.badge-black, .badge.bg-black, .bg-black {
  background-color: #000 !important;
  color: #fff;
}
.badge.badge-navy, .badge.bg-navy, .bg-navy {
  background-color: #001f3f !important;
  color: #fff;
}
.badge.badge-lightblue, .badge.bg-lightblue, .bg-lightblue {
  background-color: #3c8dbc !important;
  color: #fff;
}
.badge.badge-lime, .badge.bg-lime, .bg-lime {
  background-color: #01ff70 !important;
  color: #1f2d3d;
}
.badge.badge-fuchsia, .badge.bg-fuchsia, .bg-fuchsia {
  background-color: #f012be !important;
  color: #fff;
}
.badge.badge-maroon, .badge.bg-maroon, .bg-maroon {
  background-color: #d81b60 !important;
  color: #fff;
}
.badge.badge-olive, .badge.bg-olive, .bg-olive {
  background-color: #3d9970 !important;
  color: #fff;
}
.badge.badge-transparent, .badge.bg-transparent {
  background-color: transparent !important;
  color: inherit;
}

/* Public pages have their own palette and type; workspace themes stay local
   to the authenticated layout. All public assets are served by Django. */
@font-face {
  font-family: "Work Sans Public";
  src: url("../vendor/work-sans/WorkSans-Variable.eec91aaffb70.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/* Keep public page widths stable when a vertical scrollbar is not needed. */
.public-root {
  scrollbar-gutter: stable;
}

.public-site {
  --public-green: #1c4b42;
  --public-green-hover: #123a32;
  --public-lime: #b5e61d;
  --public-muted: #52665f;
  --public-surface: #f6f5f2;
  --public-border: #dce3de;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: #fff;
  color: var(--public-green);
  font-family: "Work Sans Public", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
.public-site a {
  color: var(--public-green);
}
.public-site a:hover {
  color: var(--public-green-hover);
}
.public-site :is(a, button, input, summary):focus-visible {
  outline: 3px solid var(--public-green);
  outline-offset: 4px;
}
.public-site .public-main {
  flex: 1;
}
.public-site .public-shell {
  width: calc(100% - 96px);
  max-width: 1280px;
  margin-inline: auto;
}
.public-site .public-skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  padding: 10px 20px;
  transform: translateY(-150%);
  border-radius: 8px;
  background: var(--public-lime);
}
.public-site .public-skip-link:focus {
  transform: translateY(0);
}
.public-site .public-header {
  border-bottom: 1px solid var(--public-border);
}
.public-site .public-language-form {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
}
.public-site .public-language-menu {
  position: relative;
}
.public-site .public-language-menu summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 16px;
  padding: 5px 5px 5px 20px;
  border: 1px solid var(--public-green);
  border-radius: 40px;
  background: var(--public-green);
  color: #fff;
  cursor: pointer;
  list-style: none;
}
.public-site .public-language-menu summary::-webkit-details-marker {
  display: none;
}
.public-site .public-language-menu summary:hover,
.public-site .public-language-menu[open] summary {
  background: var(--public-green-hover);
}
.public-site .public-language-flag {
  display: block;
  flex: 0 0 auto;
  width: 30px;
  height: 20px;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgb(28 75 66 / 16%);
}
.public-site .public-language-code {
  min-width: 30px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}
.public-site .public-language-chevron {
  width: 32px;
  height: 32px;
  padding: 6px;
  border-radius: 50%;
  background: var(--public-lime);
  color: var(--public-green);
}
.public-site .public-language-menu[open] .public-language-chevron {
  transform: rotate(180deg);
}
.public-site .public-language-options {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  width: min(128px, calc(100vw - 40px));
  padding: 8px;
  border: 1px solid var(--public-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(0 0 0 / 12%);
}
.public-site .public-language-options button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--public-green);
  cursor: pointer;
}
.public-site .public-language-options button:hover,
.public-site .public-language-options button[aria-current="true"] {
  background: var(--public-border);
}
.public-site .public-language-options button:disabled {
  cursor: wait;
  opacity: 0.6;
}
.public-site .public-language-options button:focus-visible {
  outline-offset: -3px;
}
.public-site .public-language-form .errorlist {
  flex-basis: 100%;
  margin: 0;
}
.public-site .public-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 96px;
}
.public-site .public-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -1px;
  text-decoration: none;
  white-space: nowrap;
}
.public-site .public-brand-mark {
  width: 42px;
  height: 42px;
  font-size: 19px;
}
.public-site .public-header-actions {
  display: flex;
  align-items: center;
  gap: 32px;
}
.public-site .public-header-actions > a {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.public-site a[aria-current="page"]:not(.public-button),
.public-site .public-header-login:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}
.public-site .public-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 54px;
  padding: 5px 5px 5px 24px;
  border: 1px solid var(--public-green);
  border-radius: 40px;
  background: var(--public-green);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 150ms ease, color 150ms ease;
}
.public-site .public-button:hover {
  background: var(--public-green-hover);
  color: #fff;
}
.public-site .public-button-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--public-lime);
  color: var(--public-green);
  font-size: 25px;
  font-weight: 400;
}
.public-site .public-button-small {
  min-height: 44px;
  padding-left: 20px;
  gap: 16px;
}
.public-site .public-button-small .public-button-icon {
  width: 32px;
  height: 32px;
  font-size: 21px;
}
.public-site .public-button-outline {
  padding: 14px 24px;
  background: transparent;
  color: var(--public-green);
}
.public-site .public-button-outline:hover {
  background: var(--public-surface);
  color: var(--public-green);
}
.public-site .public-eyebrow {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.1px;
  line-height: 1.6;
  text-transform: uppercase;
}
.public-site h1,
.public-site h2 {
  font-weight: 500;
}
.public-site .public-hero-intro {
  padding: 28px 0;
}
.public-site .public-hero-intro h1 {
  margin: 0;
  font-size: clamp(44px, 4.7vw, 68px);
  letter-spacing: -2.8px;
  line-height: 1.08;
}
.public-site .public-hero-summary > p {
  max-width: 460px;
  margin-bottom: 26px;
  color: var(--public-muted);
  font-size: 18px;
  line-height: 1.6;
}
.public-site .public-hero-summary > p:last-child {
  margin-bottom: 0;
}
.public-site .public-auth-layout {
  display: flex;
  justify-content: center;
  padding: 48px 0 64px;
}
.public-site .public-auth-column {
  width: 100%;
  max-width: 480px;
  min-width: 0;
  margin-inline: auto;
}
.public-site .public-auth-card {
  padding: 36px;
  border: 1px solid var(--public-border);
  border-radius: 24px;
  background: var(--public-surface);
}
.public-site .public-auth-card .public-eyebrow {
  margin-bottom: 14px;
  font-size: 11px;
}
.public-site .public-auth-card h1,
.public-contacts h1,
.public-cookie h1 {
  margin-bottom: 14px;
  font-size: 39px;
  line-height: 1.12;
  letter-spacing: -1.8px;
}
.public-site .public-form-intro {
  margin-bottom: 28px;
  color: var(--public-muted);
  font-size: 15px;
}
.public-site .public-contact-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  font-style: normal;
}
.public-site .public-contact-details > span {
  color: var(--public-muted);
  font-size: 14px;
}
.public-site .public-contact-details a {
  width: fit-content;
  max-width: 100%;
  font-size: 20px;
  font-weight: 500;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.public-site .public-cookie-content {
  max-width: 760px;
}
.public-site .public-cookie-content > p {
  margin: 0 0 24px;
  color: var(--public-muted);
  line-height: 1.8;
}
.public-site .public-error-card {
  text-align: center;
}
.public-site .public-error-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 48px;
  padding: 8px 16px;
  margin: 0 0 24px;
  border-radius: 999px;
  background: var(--public-lime);
  color: var(--public-green);
  font-size: 24px;
  font-weight: 600;
}
.public-site .public-error-card .public-form-errors {
  text-align: left;
}
.public-site .public-auth-card .form-control {
  min-height: 52px;
  padding: 12px 16px;
  border-color: var(--public-border);
  border-right: 0;
  border-radius: 10px 0 0 10px;
  background: #fff;
  color: var(--public-green);
  font-size: 15px;
  box-shadow: none;
}
.public-site .public-auth-card .form-control::placeholder {
  color: #687b73;
  opacity: 1;
}
.public-site .public-auth-card .input-group-text {
  width: 46px;
  justify-content: center;
  border-color: var(--public-border);
  border-left: 0;
  border-radius: 0 10px 10px 0;
  background: #fff;
  color: #6a7f75;
  font-size: 14px;
}
.public-site .public-auth-card .input-group:focus-within {
  border-radius: 10px;
  box-shadow: 0 0 0 3px rgb(28 75 66 / 18%);
}
.public-site .public-auth-card .form-control:focus {
  border-color: var(--public-green);
  outline: none;
}
.public-site .public-auth-card .form-control:focus + .input-group-text {
  border-color: var(--public-green);
}
.public-site .public-consent {
  color: var(--public-muted);
  font-size: 14px;
}
.public-site .public-consent a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.public-site .public-consent .form-check {
  min-height: 24px;
}
.public-site .public-consent .form-check-input {
  width: 17px;
  height: 17px;
  margin-top: 3px;
  border-color: #9caea4;
  cursor: pointer;
}
.public-site .public-consent .form-check-input:checked {
  border-color: var(--public-green);
  background-color: var(--public-green);
}
.public-site .public-consent .form-check-input:focus {
  box-shadow: 0 0 0 3px rgb(28 75 66 / 15%);
}
.public-site .public-form-actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}
.public-site .public-form-errors,
.public-site .public-field-errors {
  color: #9b2833;
  font-size: 13px;
}
.public-site .public-form-errors {
  padding: 14px;
  margin-bottom: 20px;
  border: 1px solid #e5bfc3;
  border-radius: 10px;
  background: #fff7f7;
}
.public-site .public-field-errors {
  margin-top: 8px;
  margin-bottom: 16px;
}
.public-site :is(.public-form-errors, .public-field-errors) ul {
  margin: 0;
  padding-left: 18px;
}
.public-site .public-page-heading {
  padding: 64px 0;
  background: var(--public-surface);
}
.public-site .public-page-heading h1 {
  margin-bottom: 20px;
  font-size: 60px;
  line-height: 1.1;
  letter-spacing: -2px;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.public-site .public-page-heading p:last-child {
  max-width: 590px;
  margin: 0;
  color: var(--public-muted);
  font-size: 18px;
}
.public-site .public-terms-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 80px;
  padding: 56px 0 72px;
}
.public-site .public-terms-nav {
  position: sticky;
  top: 32px;
  display: flex;
  flex-direction: column;
  align-self: start;
  align-items: flex-start;
  gap: 14px;
  font-size: 14px;
}
.public-site .public-terms-nav .public-eyebrow {
  margin-bottom: 6px;
}
.public-site .public-terms-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.public-site .public-terms-content {
  max-width: 760px;
}
.public-site .public-terms-content section {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--public-border);
  scroll-margin-top: 32px;
}
.public-site .public-terms-content h2 {
  margin-bottom: 16px;
  font-size: 26px;
  letter-spacing: -0.7px;
}
.public-site .public-terms-content section p {
  margin: 0;
  color: var(--public-muted);
  line-height: 1.8;
}
.public-site .public-terms-acceptance {
  padding: 24px;
  margin: 0;
  border-radius: 16px;
  background: var(--public-surface);
  font-weight: 500;
}
.public-site .public-footer {
  border-top: 1px solid var(--public-border);
}
.public-site .public-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 26px;
  color: var(--public-muted);
  font-size: 13px;
}
.public-site .public-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 1100px) {
  .public-site .public-shell {
    width: calc(100% - 64px);
  }
  /* Keep the language selector beside the account action on narrow headers. */
  .public-site .public-header-inner {
    gap: 20px;
  }
  .public-site .public-header-actions {
    gap: 16px;
  }
  .public-site .public-auth-card {
    padding: 28px;
  }
  .public-site .public-auth-card h1,
  .public-contacts h1,
  .public-cookie h1 {
    font-size: 35px;
  }
  .public-site .public-terms-layout {
    gap: 48px;
    grid-template-columns: 220px minmax(0, 1fr);
  }
}
@media (max-width: 767px) {
  .public-site .public-shell {
    width: calc(100% - 40px);
  }
  .public-site .public-header-inner {
    flex-wrap: wrap;
    gap: 12px 24px;
    padding-block: 18px;
  }
  .public-site .public-brand {
    font-size: 25px;
  }
  .public-site .public-brand-mark {
    width: 36px;
    height: 36px;
    font-size: 17px;
  }
  .public-site .public-header-actions {
    flex-wrap: wrap;
    margin-left: auto;
    gap: 18px;
  }
  .public-site .public-hero-intro {
    padding: 20px 0;
  }
  .public-site .public-hero-intro h1 {
    font-size: 52px;
    letter-spacing: -2px;
  }
  .public-site .public-hero-summary > p {
    font-size: 16px;
    margin-bottom: 22px;
  }
  .public-site .public-auth-layout {
    padding: 36px 0 44px;
  }
  .public-site .public-auth-card {
    padding: 32px;
  }
  .public-site .public-page-heading {
    padding: 44px 0;
  }
  .public-site .public-page-heading h1 {
    font-size: clamp(36px, 10vw, 46px);
  }
  .public-site .public-page-heading p:last-child {
    font-size: 16px;
  }
  .public-site .public-terms-layout {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 36px 0 44px;
  }
  .public-site .public-terms-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px 20px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--public-border);
  }
  .public-site .public-terms-nav .public-eyebrow {
    width: 100%;
  }
  .public-site .public-terms-content h2 {
    font-size: 24px;
  }
}
@media (max-width: 480px) {
  /* Share the header grid so sign-in can sit beside the brand. */
  .public-site .public-header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 4px;
  }
  .public-site .public-header-actions {
    display: contents;
  }
  .public-site .public-header-login {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
  .public-site .public-header-actions .public-button-small {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    gap: 8px;
    padding-left: 12px;
    font-size: 13px;
  }
  .public-site .public-language-form {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
  }
  .public-site .public-language-menu summary {
    gap: 8px;
    padding-left: 12px;
  }
  .public-site .public-hero-intro h1 {
    font-size: 46px;
  }
  .public-site .public-auth-card {
    padding: 28px 20px;
    border-radius: 20px;
  }
  .public-site .public-auth-card h1,
  .public-contacts h1,
  .public-cookie h1 {
    font-size: 34px;
    letter-spacing: -1.5px;
  }
  .public-site .public-auth-card .form-control {
    padding-inline: 12px;
    font-size: 16px;
  }
  .public-site .public-auth-card .input-group-text {
    width: 38px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .public-site .public-button {
    transition: none;
  }
}

/* Product walkthrough on the public homepage. */
.public-home {
  --home-chart: #579b2a;
  --home-section-space: 64px;
  --home-content-space: 32px;
}
/* Typography, containers, and buttons use the shared public-page styles. */
.public-home .home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 38px;
  padding-block: 28px var(--home-section-space);
  scroll-margin-top: 24px;
}
.public-home .home-hero-copy h1 {
  margin: 0 0 28px;
}
.public-home .home-hero-copy h1 span {
  display: block;
}
.public-home .home-text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.public-home .home-text-link i {
  font-size: 14px;
}
.public-home .home-demo-stage {
  min-width: 0;
  padding: 26px 30px 18px;
  border-radius: 24px;
  background: var(--public-surface);
}
.public-home .home-demo {
  padding: 22px 18px 18px;
  border: 1px solid var(--public-border);
  border-radius: 20px;
  background: #fff;
  scroll-margin-top: 28px;
}
.public-home .home-demo [hidden] {
  display: none !important;
}
.public-home .home-demo-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.public-home .home-demo-heading h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.5px;
  line-height: 1.3;
}
.public-home .home-demo-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--public-lime);
  font-size: 16px;
}
.public-home .home-sample-label {
  color: var(--public-muted);
  font-size: 14px;
  line-height: 1.3;
}
.public-home .home-demo-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.public-home .home-demo-tabs button {
  padding: 9px 22px;
  border: 1px solid var(--public-border);
  border-radius: 14px;
  background: #fff;
  color: var(--public-green);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}
.public-home .home-demo-tabs button:hover {
  background: var(--public-surface);
}
.public-home .home-demo-tabs button[aria-selected="true"] {
  border-color: var(--public-green);
  background: var(--public-green);
  color: #fff;
}
.public-home .home-demo-panel {
  min-height: 394px;
}
.public-home .home-demo-panel + .home-demo-panel {
  margin-top: 16px;
}
.public-home .home-demo-tabs:not([hidden]) ~ .home-demo-panel {
  margin-top: 0;
}
.public-home .home-demo-metrics {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.public-home .home-demo-metrics > div {
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--public-border);
  border-radius: 12px;
}
.public-home .home-demo dt {
  font-weight: 400;
}
.public-home .home-demo-metrics dt {
  color: var(--public-muted);
  font-size: 15px;
}
.public-home .home-demo-metrics dd {
  margin: 4px 0 0;
  font-size: clamp(19px, 2.1vw, 32px);
  font-weight: 650;
  letter-spacing: -0.8px;
  line-height: 1.4;
}
.public-home .home-demo-metrics small {
  font-size: 0.78em;
}
.public-home .home-demo-chart {
  padding: 14px 14px 4px;
  border: 1px solid var(--public-border);
  border-radius: 12px 12px 0 0;
}
.public-home .home-demo-chart h3 {
  margin: 0 0 2px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.35px;
}
.public-home .home-demo-chart > p {
  margin: 0 0 12px;
  color: var(--public-muted);
  font-size: 14px;
  line-height: 1.4;
}
.public-home .home-line-chart,
.public-home .home-income-chart {
  display: block;
  width: 100%;
  height: 195px;
  overflow: visible;
}
.public-home .home-chart-grid {
  fill: none;
  stroke: #e1e7e2;
  stroke-width: 1;
}
.public-home .home-chart-axis,
.public-home .home-chart-months {
  fill: var(--public-muted);
  font-size: 12px;
  font-family: "Work Sans Public", system-ui, sans-serif;
}
.public-home .home-chart-months {
  text-anchor: middle;
}
.public-home .home-chart-axis-compact {
  display: none;
}
.public-home .home-chart-area {
  fill: var(--public-lime);
  fill-opacity: 0.18;
}
.public-home .home-chart-line {
  fill: none;
  stroke: var(--home-chart);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.public-home .home-chart-points {
  fill: #fff;
  stroke: var(--home-chart);
  stroke-width: 2;
}
.public-home .home-demo-allocation {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 14px 0;
  border: 1px solid var(--public-border);
  border-top: 0;
  border-radius: 0 0 12px 12px;
}
.public-home .home-demo-allocation > div {
  min-width: 0;
  padding-inline: 18px;
}
.public-home .home-demo-allocation > div + div {
  border-left: 1px solid var(--public-border);
}
.public-home .home-demo-allocation dt {
  font-size: 15px;
  line-height: 1.5;
}
.public-home .home-demo-allocation dd {
  margin: 0;
  color: #387a27;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
}
.public-home .home-demo-allocation > div:nth-child(2) dd {
  color: #647f64;
}
.public-home .home-demo-allocation > div:nth-child(3) dd {
  color: #618315;
}
.public-home .home-demo-disclaimer {
  margin: 14px 0 0;
  color: var(--public-muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}
.public-home .home-income-received {
  fill: var(--public-green);
}
.public-home .home-income-scheduled {
  fill: var(--public-lime);
}
.public-home .home-demo-notes {
  min-height: 78px;
  padding: 14px;
  border: 1px solid var(--public-border);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  color: var(--public-muted);
  font-size: 12px;
}
.public-home .home-demo-notes p {
  margin: 6px 0 0;
}
.public-home .home-chart-legend,
.public-home .home-chart-legend > span,
.public-home .home-risk-legend dt {
  display: flex;
  align-items: center;
  gap: 8px;
}
.public-home .home-chart-legend {
  flex-wrap: wrap;
  gap: 10px 20px;
}
.public-home .home-chart-legend > span:last-child {
  margin-left: auto;
}
.public-home .home-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
}
.public-home .home-dot-green {
  background: var(--public-green);
}
.public-home .home-dot-lime {
  background: var(--public-lime);
}
.public-home .home-dot-amber {
  background: #c78b42;
}
.public-home .home-risk-chart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  min-height: 195px;
  padding-block: 12px;
}
.public-home .home-risk-donut {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 162px;
  height: 162px;
  border-radius: 50%;
  background: conic-gradient(var(--public-green) 0 72%, var(--public-lime) 72% 95%, #c78b42 95% 100%);
}
.public-home .home-risk-donut > span {
  display: grid;
  place-items: center;
  width: 114px;
  height: 114px;
  border-radius: 50%;
  background: #fff;
  font-size: 15px;
  font-weight: 500;
}
.public-home .home-risk-legend {
  flex: 1;
  max-width: 200px;
  margin: 0;
  font-size: 14px;
}
.public-home .home-risk-legend > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--public-border);
}
.public-home .home-risk-legend dd {
  margin: 0;
  font-weight: 600;
}
.public-home .home-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: 60px;
  padding-block: 0 var(--home-content-space);
}
.public-home .home-section-heading h2,
.public-home .home-comparison h2,
.public-home .home-getting-started h2,
.public-home .home-plans h2,
.public-home .home-faq h2,
.public-home .home-start h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -1.2px;
  line-height: 1.2;
}
.public-home .home-section-heading > p {
  margin: 0;
  color: var(--public-muted);
  font-size: 18px;
  line-height: 1.6;
}
.public-home .home-workflow {
  padding-bottom: var(--home-section-space);
  scroll-margin-top: 24px;
}
.public-home .home-workflow .home-section-heading {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
}
.public-home .home-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 30px 0 0;
  border-top: 4px solid var(--public-lime);
  list-style: none;
}
.public-home .home-step-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  border: 2px solid var(--public-lime);
  border-radius: 50%;
  font-size: 16px;
  font-weight: 500;
}
.public-home .home-steps h3 {
  margin: 0 0 12px;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.public-home .home-steps p {
  margin: 0;
  color: var(--public-muted);
  font-size: 15px;
  line-height: 1.6;
}
.public-home .home-risk-notice {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-top: var(--home-content-space);
  padding: 24px 28px;
  border: 1px solid #d6b17b;
  border-radius: 18px;
  background: #fff9ef;
  color: #75521f;
  scroll-margin-top: 32px;
}
.public-home .home-risk-notice > i {
  flex: 0 0 auto;
  color: #b47a27;
  font-size: 21px;
  line-height: 1.4;
}
.public-home .home-risk-notice > div {
  min-width: 0;
}
.public-home .home-risk-notice h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}
.public-home .home-risk-notice p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}
.public-home .home-comparison {
  padding-bottom: var(--home-section-space);
  scroll-margin-top: 32px;
}
.public-home .home-comparison-heading {
  max-width: 760px;
  margin: 0 auto var(--home-content-space);
  text-align: center;
}
.public-home .home-comparison-heading > p {
  margin: 16px 0 0;
  color: var(--public-muted);
  font-size: 16px;
  line-height: 1.6;
}
.public-home .home-comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 880px;
  margin-inline: auto;
}
.public-home .home-comparison-card {
  min-width: 0;
  padding: 28px;
  border: 2px solid var(--public-border);
  border-radius: 20px;
  background: var(--public-surface);
}
.public-home .home-comparison-featured {
  border-color: var(--public-lime);
}
.public-home .home-comparison-card h3 {
  min-height: 2.6em;
  margin: 0 0 20px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
}
.public-home .home-comparison-rate {
  margin: 0;
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -1.2px;
  line-height: 1.2;
}
.public-home .home-comparison-rate-label {
  margin: 8px 0 0;
  color: var(--public-muted);
  font-size: 14px;
  line-height: 1.5;
}
.public-home .home-comparison-details {
  margin: 24px 0 0;
  font-size: 14px;
  line-height: 1.5;
}
.public-home .home-comparison-details > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
  border-top: 1px solid var(--public-border);
}
.public-home .home-comparison-details > div:last-child {
  padding-bottom: 0;
  font-weight: 600;
}
.public-home .home-comparison-details dt {
  color: var(--public-muted);
  font-weight: inherit;
}
.public-home .home-comparison-details dd {
  flex-shrink: 0;
  min-width: 7em;
  margin: 0;
  text-align: right;
  white-space: nowrap;
}
.public-home .home-comparison-result {
  max-width: 880px;
  margin: var(--home-content-space) auto 0;
  text-align: center;
}
.public-home .home-comparison-result strong {
  display: block;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
}
/* The numbered timeline follows the public page's green and lime palette. */
.public-home .home-getting-started {
  padding-block: 0 var(--home-section-space);
  scroll-margin-top: 32px;
}
.public-home .home-getting-started h2 {
  margin-bottom: var(--home-content-space);
  text-align: center;
}
.public-home .home-start-steps {
  display: grid;
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.public-home .home-start-steps > li {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}
.public-home .home-start-steps > li:not(:last-child)::before {
  position: absolute;
  top: 44px;
  bottom: -24px;
  inset-inline-start: 20px;
  width: 4px;
  background: var(--public-lime);
  content: "";
}
.public-home .home-start-steps .home-step-number {
  margin-bottom: 0;
}
.public-home .home-start-card {
  min-width: 0;
  padding: 22px 24px;
  border: 1px solid var(--public-border);
  border-radius: 18px;
  background: var(--public-surface);
}
.public-home .home-start-card h3 {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.35;
}
.public-home .home-start-card p {
  margin: 0;
  color: var(--public-muted);
  font-size: 15px;
  line-height: 1.6;
}
.public-home .home-plans {
  padding-bottom: var(--home-section-space);
  scroll-margin-top: 32px;
}
.public-home .home-plans h2 {
  margin-bottom: var(--home-content-space);
  text-align: center;
}
.public-home .home-trial {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 880px;
  margin: 0 auto var(--home-content-space);
  padding: 28px 32px;
  border: 2px solid var(--public-lime);
  border-radius: 20px;
  background: var(--public-surface);
}
.public-home .home-trial h3 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
}
.public-home .home-trial p {
  margin: 0;
  color: var(--public-muted);
  font-size: 15px;
}
.public-home .home-trial .public-button {
  flex-shrink: 0;
}
.public-home .home-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1120px;
  margin-inline: auto;
}
.public-home .home-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px 24px 24px;
  border: 2px solid var(--public-border);
  border-radius: 20px;
  background: var(--public-surface);
}
.public-home .home-plan-featured {
  border-color: var(--public-lime);
}
.public-home .home-plan-badge {
  position: absolute;
  top: 0;
  left: 50%;
  padding: 5px 14px;
  border-radius: 20px;
  background: var(--public-lime);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}
.public-home .home-plan h3 {
  margin: 0 0 18px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
}
.public-home .home-plan-price {
  margin: 0 0 4px;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.3;
}
.public-home .home-plan-period {
  margin: 0;
  color: var(--public-muted);
  font-size: 14px;
}
.public-home .home-plan-monthly {
  margin: 18px 0 28px;
  font-size: 15px;
  font-weight: 500;
}
.public-home .home-plan .public-button {
  margin-top: auto;
  padding: 14px 20px;
  white-space: normal;
}
/* Native disclosures keep the FAQ usable with the keyboard and without JS. */
.public-home .home-faq {
  padding-bottom: var(--home-section-space);
  scroll-margin-top: 32px;
}
.public-home .home-faq h2 {
  margin-bottom: var(--home-content-space);
  text-align: center;
}
.public-home .home-faq-list {
  max-width: 880px;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--public-border);
  border-radius: 20px;
  background: var(--public-surface);
}
.public-home .home-faq-item + .home-faq-item {
  border-top: 1px solid var(--public-border);
}
.public-home .home-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 18px 24px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  list-style: none;
  cursor: pointer;
}
.public-home .home-faq-item summary::-webkit-details-marker {
  display: none;
}
.public-home .home-faq-item summary::after {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  margin: 0 4px 4px 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: rotate(45deg);
}
.public-home .home-faq-item summary:hover {
  color: var(--public-green-hover);
}
.public-home .home-faq-item summary:focus-visible {
  outline-offset: -4px;
}
.public-home .home-faq-item[open] {
  background: #fff;
}
.public-home .home-faq-item[open] summary::after {
  margin-block: 4px 0;
  transform: rotate(225deg);
}
.public-home .home-faq-answer {
  padding: 0 24px 22px;
  color: var(--public-muted);
  font-size: 15px;
  line-height: 1.7;
}
.public-home .home-faq-answer p {
  margin: 0;
}
.public-home .home-faq-answer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.public-home .home-faq-answer > a {
  display: inline-block;
  margin-top: 10px;
}
.public-home .home-start {
  padding-bottom: var(--home-section-space);
}
.public-home .home-start-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--home-content-space);
  text-align: center;
}
.public-home .home-start-inner > div > p {
  margin: var(--home-content-space) 0 0;
  color: var(--public-muted);
  font-size: 18px;
}
.public-home .home-start-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
@media (max-width: 1200px) {
  .public-home .home-hero {
    gap: 26px;
  }
  .public-home .home-demo-stage {
    padding-inline: 18px;
  }
  .public-home .home-demo-heading h2 {
    font-size: 18px;
  }
  .public-home .home-demo-metrics > div {
    padding-inline: 10px;
  }
  .public-home .home-section-heading {
    gap: 40px;
  }
  .public-home .home-demo-metrics dd {
    font-size: 22px;
  }
}
@media (max-width: 1050px) {
  .public-home .home-section-heading {
    gap: 30px;
  }
}
@media (max-width: 991.98px) {
  .public-home .home-hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  /* Fill the tablet intro row before the preview moves underneath it. */
  .public-home .home-hero-copy {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: start;
    column-gap: 32px;
  }
  .public-home .home-hero-copy h1 {
    margin: 0;
  }
  .public-home .home-demo-stage {
    padding: 26px 30px 18px;
  }
  .public-home .home-demo-heading h2 {
    font-size: 21px;
  }
  .public-home .home-demo-metrics dd {
    font-size: 30px;
  }
  .public-home .home-demo-chart > p,
  .public-home .home-demo-metrics dt,
  .public-home .home-demo-allocation dt {
    font-size: 14px;
  }
}
@media (max-width: 767px) {
  .public-home {
    --home-section-space: 48px;
    --home-content-space: 24px;
  }
  .public-home .home-hero {
    gap: 36px;
    padding-block: 20px var(--home-section-space);
  }
  .public-home .home-hero-copy {
    display: block;
  }
  .public-home .home-hero-copy h1 {
    margin-bottom: 28px;
  }
  .public-home .home-demo-stage {
    padding: 14px 12px 12px;
    border-radius: 20px;
  }
  .public-home .home-demo {
    padding: 18px 12px 12px;
    border-radius: 16px;
  }
  .public-home .home-demo-heading h2 {
    gap: 8px;
    font-size: 18px;
    letter-spacing: -0.5px;
  }
  .public-home .home-demo-mark {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }
  .public-home .home-sample-label {
    font-size: 10px;
    max-width: 65px;
  }
  .public-home .home-demo-tabs {
    gap: 8px;
  }
  .public-home .home-demo-tabs button {
    flex: 1;
    min-height: 44px;
    padding: 8px 10px;
    border-radius: 11px;
    font-size: 13px;
  }
  .public-home .home-demo-metrics {
    gap: 8px;
  }
  .public-home .home-demo-metrics > div {
    padding: 10px;
  }
  .public-home .home-demo-metrics dt {
    font-size: 11px;
    min-height: 32px;
  }
  .public-home .home-demo-metrics dd {
    font-size: clamp(16px, 4.5vw, 25px);
    letter-spacing: -0.5px;
  }
  .public-home .home-demo-chart {
    padding: 12px 10px 4px;
  }
  .public-home .home-demo-chart h3 {
    font-size: 15px;
  }
  .public-home .home-demo-chart > p {
    font-size: 11px;
  }
  .public-home .home-line-chart,
  .public-home .home-income-chart {
    height: auto;
    min-height: 135px;
  }
  .public-home .home-chart-axis,
  .public-home .home-chart-months {
    font-size: 24px;
  }
  .public-home .home-chart-axis-full {
    display: none;
  }
  .public-home .home-chart-axis-compact {
    display: inline;
  }
  .public-home .home-demo-allocation > div {
    padding-inline: 10px;
  }
  .public-home .home-demo-allocation dt {
    font-size: 10px;
    min-height: 30px;
  }
  .public-home .home-demo-allocation dd {
    font-size: 23px;
  }
  .public-home .home-demo-panel {
    min-height: 350px;
  }
  .public-home .home-demo-disclaimer {
    font-size: 10px;
  }
  .public-home .home-risk-chart {
    gap: 18px;
    min-height: 145px;
  }
  .public-home .home-risk-donut {
    width: 116px;
    height: 116px;
  }
  .public-home .home-risk-donut > span {
    width: 80px;
    height: 80px;
    font-size: 12px;
  }
  .public-home .home-risk-legend {
    font-size: 12px;
  }
  .public-home .home-risk-legend > div {
    gap: 10px;
  }
  .public-home .home-demo-notes {
    padding: 10px;
    font-size: 11px;
  }
  .public-home .home-section-heading,
  .public-home .home-workflow .home-section-heading {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-block: 0 var(--home-content-space);
  }
  .public-home .home-section-heading h2,
  .public-home .home-comparison h2,
  .public-home .home-getting-started h2,
  .public-home .home-plans h2,
  .public-home .home-faq h2,
  .public-home .home-start h2 {
    font-size: 32px;
  }
  .public-home .home-section-heading > p {
    font-size: 16px;
  }
  .public-home .home-steps {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 24px;
  }
  .public-home .home-step-number {
    margin-bottom: 16px;
    width: 36px;
    height: 36px;
  }
  .public-home .home-risk-notice {
    gap: 12px;
    padding: 20px 18px;
    border-radius: 16px;
  }
  .public-home .home-risk-notice h3 {
    font-size: 17px;
  }
  .public-home .home-risk-notice p {
    font-size: 14px;
  }
  .public-home .home-comparison-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
  .public-home .home-comparison-card {
    padding: 24px 20px;
  }
  .public-home .home-comparison-card h3 {
    min-height: 0;
  }
  .public-home .home-comparison-result strong {
    font-size: 22px;
  }
  .public-home .home-start-steps {
    gap: 20px;
  }
  .public-home .home-start-steps > li {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 16px;
  }
  .public-home .home-start-steps > li:not(:last-child)::before {
    top: 36px;
    bottom: -20px;
    inset-inline-start: 16px;
  }
  .public-home .home-start-card {
    padding: 18px;
    border-radius: 16px;
  }
  .public-home .home-start-card h3 {
    font-size: 19px;
  }
  .public-home .home-start-card p {
    font-size: 14px;
  }
  /* Keep stacked pricing cards close to their desktop column width. */
  .public-home .home-trial,
  .public-home .home-plan-grid {
    max-width: 360px;
  }
  .public-home .home-trial {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }
  .public-home .home-trial .public-button {
    max-width: 100%;
    gap: 16px;
    white-space: normal;
  }
  .public-home .home-plan-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .public-home .home-faq-item summary {
    gap: 18px;
    padding-inline: 18px;
    font-size: 16px;
  }
  .public-home .home-faq-answer {
    padding: 0 18px 20px;
    font-size: 14px;
  }
  .public-home .home-start-inner > div > p {
    font-size: 16px;
  }
}
@media (max-width: 480px) {
  .public-home .home-risk-chart {
    flex-direction: column;
  }
  .public-home .home-risk-legend {
    flex: none;
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .public-home .home-demo-tabs button {
    transition: none;
  }
}
@media (max-width: 380px) {
  .public-home .home-start-steps > li {
    gap: 12px;
  }
  .public-home .home-start-card {
    padding: 16px 14px;
  }
  .public-home .home-start-card h3 {
    font-size: 17px;
  }
  .public-home .home-hero-copy h1 {
    font-size: clamp(40px, 12vw, 46px);
  }
  .public-home .home-demo-metrics {
    grid-template-columns: 1fr;
  }
  .public-home .home-demo-metrics > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .public-home .home-demo-metrics dt {
    min-height: 0;
  }
  .public-home .home-demo-metrics dd {
    margin: 0;
    font-size: 20px;
  }
}

/* Keep the price chart readable across account-page viewport sizes. */
.price-chart {
    position: relative;
    height: clamp(260px, 50vh, 480px);
}
