/* ----- Theme: dark (default, OpenAI-style) ----- */
:root,
[data-theme="dark"] {
  --rx-bg: #050509;
  --rx-surface: #0f0f0f;
  --rx-surface-muted: #171717;
  --rx-border-subtle: rgba(255, 255, 255, 0.08);
  --rx-text-main: #ececec;
  --rx-text-soft: #8e8e8e;
  --rx-accent: #ececec;
  --rx-accent-soft: rgba(255, 255, 255, 0.06);
  --rx-danger: #f87171;
  --rx-radius-lg: 18px;
  --rx-body-bg: #0d0d0d;
  --rx-header-border: rgba(255, 255, 255, 0.08);
  --rx-header-bg: #0d0d0d;
  --rx-header-gradient: none;
  --rx-footer-border: rgba(255, 255, 255, 0.06);
  --rx-footer-bg: #0d0d0d;
  --rx-card-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  --rx-card-hero-gradient: none;
  --rx-card-muted-gradient: none;
  --rx-input-bg: #171717;
  --rx-input-focus: rgba(255, 255, 255, 0.2);
  --rx-tag-primary-border: rgba(255, 255, 255, 0.2);
  --rx-tag-primary-text: #ececec;
  --rx-tag-primary-bg: rgba(255, 255, 255, 0.06);
  --rx-login-card-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  --rx-metric-soft: #a3a3a3;
  --rx-metric-warn: #f87171;
  --rx-metric-good: #a3a3a3;
  --rx-chart-grid: rgba(255, 255, 255, 0.06);
  --rx-chart-tick: #8e8e8e;
  --rx-on-accent: #0d0d0d;
  --rx-btn-primary-bg: #ececec;
  --rx-btn-primary-color: #0d0d0d;
  --rx-icon-color: #ececec;
}

/* ----- Theme: light ----- */
[data-theme="light"] {
  --rx-bg: #f8fafc;
  --rx-surface: #ffffff;
  --rx-surface-muted: #f1f5f9;
  --rx-border-subtle: rgba(15, 23, 42, 0.08);
  --rx-text-main: #0f172a;
  --rx-text-soft: #64748b;
  --rx-accent: #16a34a;
  --rx-accent-soft: rgba(22, 163, 74, 0.12);
  --rx-danger: #dc2626;
  --rx-body-bg: linear-gradient(180deg, #f0fdf4 0%, #f8fafc 40%, #ffffff 100%);
  --rx-header-border: rgba(15, 23, 42, 0.08);
  --rx-header-bg: rgba(255, 255, 255, 0.9);
  --rx-header-gradient: radial-gradient(circle at top left, rgba(22, 163, 74, 0.12), transparent 45%);
  --rx-footer-border: rgba(15, 23, 42, 0.06);
  --rx-footer-bg: linear-gradient(to top, rgba(248, 250, 252, 0.95), transparent);
  --rx-card-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --rx-card-hero-gradient: radial-gradient(circle at top left, rgba(22, 163, 74, 0.08), transparent 55%);
  --rx-card-muted-gradient: radial-gradient(circle at top left, rgba(241, 245, 249, 0.9), transparent 55%);
  --rx-input-bg: #f8fafc;
  --rx-input-focus: rgba(22, 163, 74, 0.5);
  --rx-tag-primary-border: rgba(22, 163, 74, 0.6);
  --rx-tag-primary-text: #166534;
  --rx-tag-primary-bg: rgba(22, 163, 74, 0.12);
  --rx-login-card-shadow: 0 4px 24px rgba(15, 23, 42, 0.12);
  --rx-metric-soft: #4f46e5;
  --rx-metric-warn: #dc2626;
  --rx-metric-good: #16a34a;
  --rx-chart-grid: rgba(15, 23, 42, 0.08);
  --rx-chart-tick: #64748b;
  --rx-on-accent: #020617;
  --rx-btn-primary-bg: #171717;
  --rx-btn-primary-color: #f5f5f5;
  --rx-icon-color: #171717;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  transition: background-color 0.2s ease, color 0.2s ease;
}

body.rx-body {
  margin: 0;
  min-height: 100vh;
  background: var(--rx-body-bg);
  color: var(--rx-text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', sans-serif;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.rx-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}


.rx-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  padding: 0.75rem 2rem;
  border-bottom: 1px solid var(--rx-header-border);
  background: var(--rx-header-gradient);
  background-color: var(--rx-header-bg);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 20;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.rx-header-left {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.rx-nav-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--rx-border-subtle);
  border-radius: 10px;
  background: var(--rx-surface-muted);
  color: var(--rx-icon-color);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.rx-nav-menu-btn:hover {
  background: var(--rx-accent-soft);
  border-color: var(--rx-border-subtle);
}

.rx-logo {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--rx-surface-muted);
  border: 1px solid var(--rx-border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--rx-text-main);
}

.rx-title {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.rx-subtitle {
  font-size: 0.78rem;
  color: var(--rx-text-soft);
}

.rx-header-right {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.rx-icon {
  color: currentColor;
  flex-shrink: 0;
  stroke: currentColor;
}

.rx-header-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--rx-border-subtle);
  border-radius: 10px;
  background: var(--rx-surface-muted);
  color: var(--rx-icon-color);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.rx-header-icon-btn:hover {
  background: var(--rx-accent-soft);
  border-color: var(--rx-border-subtle);
  color: var(--rx-icon-color);
}

.rx-theme-toggle {
  position: relative;
  color: var(--rx-icon-color);
}

.rx-theme-toggle .rx-icon-sun,
.rx-theme-toggle .rx-icon-moon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

[data-theme="dark"] .rx-theme-toggle .rx-icon-sun {
  display: block;
}

[data-theme="dark"] .rx-theme-toggle .rx-icon-moon {
  display: none;
}

[data-theme="light"] .rx-theme-toggle .rx-icon-sun {
  display: none;
}

[data-theme="light"] .rx-theme-toggle .rx-icon-moon {
  display: block;
}

.rx-profile-wrap {
  position: relative;
}

.rx-profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--rx-surface-muted);
  border: 1px solid var(--rx-border-subtle);
  color: var(--rx-text-main);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.rx-profile-btn:hover {
  background: var(--rx-accent-soft);
  border-color: var(--rx-border-subtle);
}

.rx-profile-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--rx-text-main);
}

.rx-profile-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 12rem;
  padding: 0.5rem 0;
  background: var(--rx-surface);
  border: 1px solid var(--rx-border-subtle);
  border-radius: 10px;
  box-shadow: var(--rx-card-shadow);
  z-index: 100;
}

.rx-profile-dropdown-head {
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  color: var(--rx-text-soft);
  border-bottom: 1px solid var(--rx-border-subtle);
  word-break: break-all;
}

.rx-profile-dropdown-item {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--rx-text-main);
  text-decoration: none;
  transition: background 0.1s;
}

.rx-profile-dropdown-item:hover {
  background: var(--rx-accent-soft);
}

.rx-profile-dropdown-logout:hover {
  color: var(--rx-danger);
}

.rx-tag {
  border-radius: 999px;
  padding: 0.22rem 0.7rem;
  font-size: 0.72rem;
  border: 1px solid var(--rx-border-subtle);
  color: var(--rx-text-soft);
}

.rx-tag-primary {
  border-color: var(--rx-tag-primary-border);
  color: var(--rx-tag-primary-text);
  background: var(--rx-tag-primary-bg);
}

.rx-tag-vacant {
  color: var(--rx-metric-soft);
  border-color: var(--rx-border-subtle);
}

.rx-tag-occupied {
  color: var(--rx-metric-good, #22c55e);
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.1);
}

.rx-tag-soft {
  opacity: 0.9;
  background: var(--rx-surface-muted);
}

.rx-main {
  flex: 1;
  min-width: 0;
  padding: 2rem 2.5rem 2.5rem;
}

.rx-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2.5rem 1.5rem;
  font-size: 0.78rem;
  color: var(--rx-text-soft);
  border-top: 1px solid var(--rx-footer-border);
  background: var(--rx-footer-bg);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.rx-footer-muted {
  opacity: 0.9;
}

.rx-grid {
  display: grid;
}

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

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

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

@media (min-width: 900px) {
  .rx-grid-lg-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rx-grid-lg-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.rx-gap-lg {
  gap: 1.25rem;
}

.rx-gap-xl {
  gap: 1.5rem;
}

.rx-gap-2xl {
  gap: 2rem;
}

.rx-mb-0 {
  margin-bottom: 0 !important;
}

.rx-mb-md {
  margin-bottom: 1rem;
}

.rx-mb-xl {
  margin-bottom: 1.75rem;
}

.rx-mb-2xl {
  margin-bottom: 2.5rem;
}

.rx-mt-md {
  margin-top: 1rem;
}

/* ----- Dashboard: professional layout ----- */
.rx-dash {
  max-width: 1400px;
  margin: 0 auto;
}

.rx-dash-section-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rx-text-soft);
  margin: 0 0 0.75rem 0;
}

.rx-dash-total-rent {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  border-radius: 12px;
  background: var(--rx-surface);
  border: 1px solid var(--rx-border-subtle);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--rx-card-shadow);
}

@media (min-width: 900px) {
  .rx-dash-total-rent {
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    gap: 1.75rem;
  }

  .rx-dash-total-rent-main {
    flex: 0 1 auto;
    min-width: 0;
  }

  .rx-dash-total-rent-split {
    flex: 1 1 0;
    min-width: 0;
  }
}

.rx-dash-total-rent-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rx-text-soft);
  margin-bottom: 0.35rem;
}

.rx-dash-total-rent-currency {
  font-size: 1rem;
  font-weight: 600;
  color: var(--rx-text-soft);
  margin-right: 0.35rem;
}

.rx-dash-total-rent-value {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.rx-dash-total-rent-meta {
  font-size: 0.78rem;
  color: var(--rx-text-soft);
  margin: 0.5rem 0 0 0;
}

.rx-dash-total-rent-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 520px) {
  .rx-dash-total-rent-split {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

.rx-dash-total-rent-piece-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--rx-text-soft);
  margin-bottom: 0.25rem;
}

.rx-dash-total-rent-piece-value {
  font-size: 1rem;
  font-weight: 600;
}

.rx-dash-total-rent-piece-hint {
  font-size: 0.68rem;
  color: var(--rx-text-soft);
  margin-top: 0.2rem;
}

.rx-dash-kpis-three {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .rx-dash-kpis-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.rx-dash-hero {
  border-radius: var(--rx-radius-lg);
  background: var(--rx-card-hero-gradient), var(--rx-surface);
  border: 1px solid var(--rx-border-subtle);
  padding: 1.15rem 1.35rem;
  margin-bottom: 1.1rem;
  box-shadow: var(--rx-card-shadow);
}

.rx-dash-hero-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
}

@media (min-width: 768px) {
  .rx-dash-hero-split {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
    align-items: start;
  }

  .rx-dash-hero-panel-cash {
    border-left: 1px solid var(--rx-border-subtle);
    padding-left: 1.75rem;
    margin-left: 0;
  }
}

.rx-dash-hero-panel {
  min-width: 0;
}

.rx-dash-hero-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rx-text-soft);
  margin-bottom: 0.45rem;
}

.rx-dash-hero-metrics {
  display: grid;
  gap: 0.42rem;
}

.rx-dash-hero-metric-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px dashed var(--rx-border-subtle);
  padding-bottom: 0.32rem;
}

.rx-dash-hero-metric-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.rx-dash-hero-metric-label {
  font-size: 0.76rem;
  color: var(--rx-text-soft);
}

.rx-dash-hero-metric-value {
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.rx-dash-hero-metric-row-strong .rx-dash-hero-metric-label {
  color: var(--rx-text);
}

.rx-dash-hero-metric-row-strong .rx-dash-hero-metric-value {
  font-size: 1.06rem;
}

.rx-dash-hero-meta {
  font-size: 0.74rem;
  color: var(--rx-text-soft);
  margin-top: 0.45rem;
  margin-bottom: 0;
}

.rx-dash-hero-value {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.rx-dash-hero-currency {
  font-size: 1rem;
  font-weight: 600;
  color: var(--rx-text-soft);
  margin-right: 0.35rem;
}

.rx-dash-kpis {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.1rem;
}

@media (min-width: 640px) {
  .rx-dash-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .rx-dash-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.rx-dash-kpi {
  border-radius: 12px;
  background: var(--rx-surface-muted);
  border: 1px solid var(--rx-border-subtle);
  padding: 0.9rem 1rem;
  min-height: 4.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.rx-dash-kpi-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--rx-text-soft);
  margin-bottom: 0.4rem;
}

.rx-dash-kpi-value {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.rx-dash-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  margin-bottom: 1.1rem;
}

@media (min-width: 1024px) {
  .rx-dash-row {
    grid-template-columns: 1fr 1fr;
  }

  /* Narrower transactions + wider room for occupancy pie */
  .rx-dash-row-tx-chart {
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
    align-items: start;
  }
}

.rx-dash-row-2-1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  margin-bottom: 1.1rem;
}

@media (min-width: 1024px) {
  .rx-dash-row-2-1 {
    grid-template-columns: 2fr 1fr;
  }
}

.rx-dash-card {
  border-radius: 12px;
  background: var(--rx-surface);
  border: 1px solid var(--rx-border-subtle);
  padding: 1rem 1.15rem;
  box-shadow: var(--rx-card-shadow);
}

.rx-dash-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
}

.rx-dash-card-subtitle {
  font-size: 0.78rem;
  color: var(--rx-text-soft);
  margin: 0 0 0.75rem 0;
}

.rx-dash-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.25rem;
}

.rx-dash-stat-label {
  font-size: 0.72rem;
  color: var(--rx-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.rx-dash-stat-value {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.15rem;
}

.rx-dash-insights-card {
  border-radius: 12px;
  background: var(--rx-surface);
  border: 1px solid var(--rx-border-subtle);
  padding: 1rem 1.15rem;
  box-shadow: var(--rx-card-shadow);
}

.rx-dash-insights-card .rx-insights-list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.84rem;
  line-height: 1.4;
}

.rx-dash-insights-card .rx-insights-list li {
  margin-bottom: 0.5rem;
}

.rx-dash-chart-card {
  border-radius: 12px;
  background: var(--rx-surface);
  border: 1px solid var(--rx-border-subtle);
  padding: 1rem 1.1rem;
  box-shadow: var(--rx-card-shadow);
  min-width: 0;
}

.rx-dash-chart-wrap {
  position: relative;
  width: 100%;
  max-width: 280px;
  height: 240px;
  margin: 0.5rem auto 0;
}

.rx-dash-chart-card-pie {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.rx-dash-chart-wrap-pie {
  max-width: min(100%, 360px);
  height: min(300px, 42vw);
  min-height: 240px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1024px) {
  .rx-dash-chart-wrap-pie {
    height: 300px;
    max-width: 380px;
  }
}

.rx-dash-table-compact .rx-dash-card-subtitle {
  margin-bottom: 0.5rem;
}

.rx-dash-table-scroll {
  max-height: 240px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.rx-dash-table-compact .rx-table-dash th,
.rx-dash-table-compact .rx-table-dash td {
  padding: 0.36rem 0.42rem;
  font-size: 0.75rem;
  vertical-align: top;
}

.rx-dash-table-compact .rx-table-dash th {
  font-size: 0.68rem;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.rx-dash-table-compact .rx-table-dash .rx-tag {
  font-size: 0.65rem;
  padding: 0.1rem 0.35rem;
}

.rx-dash-table-card {
  border-radius: 12px;
  background: var(--rx-surface);
  border: 1px solid var(--rx-border-subtle);
  padding: 1rem 1.1rem;
  box-shadow: var(--rx-card-shadow);
}

.rx-dash-table-card .rx-table-wrap {
  margin-top: 0.5rem;
  border-radius: 8px;
}

.rx-dash-table-card .rx-card-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rx-border-subtle);
}

.rx-dash-full {
  border-radius: 12px;
  background: var(--rx-surface);
  border: 1px solid var(--rx-border-subtle);
  padding: 1rem 1.1rem;
  box-shadow: var(--rx-card-shadow);
  margin-bottom: 1.1rem;
}

.rx-dash-full .rx-chart-wrap {
  height: 260px;
  margin-top: 0.5rem;
}

.rx-card {
  border-radius: var(--rx-radius-lg);
  background: var(--rx-card-hero-gradient), var(--rx-surface);
  border: 1px solid var(--rx-border-subtle);
  padding: 1.1rem 1.2rem 1.25rem;
  box-shadow: var(--rx-card-shadow);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.rx-card-hero {
  background: var(--rx-card-hero-gradient), var(--rx-surface);
}

.rx-card-muted {
  background: var(--rx-card-muted-gradient), var(--rx-surface-muted);
}

.rx-card-header {
  margin-bottom: 0.85rem;
}

.rx-card-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.rx-card-subtitle {
  margin-top: 0.1rem;
  font-size: 0.78rem;
  color: var(--rx-text-soft);
}

.rx-card-footer {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--rx-border-subtle);
}

/* Standalone form card (settings, withdraw, invoice actions) — consistent width */
.rx-card-form {
  max-width: 42rem;
}

.rx-wallet-hero {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.rx-wallet-currency {
  font-size: 1rem;
  font-weight: 600;
  color: var(--rx-text-soft);
}

.rx-wallet-value {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.rx-insights-list {
  margin: 0;
  padding-left: 1.25rem;
  list-style: disc;
}

.rx-insights-list li {
  margin-bottom: 0.4rem;
  color: var(--rx-text-main);
}

.rx-metrics-row {
  display: flex;
  gap: 1.25rem;
  margin-top: 0.65rem;
}

.rx-metrics-column {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.rx-metric {
  flex: 1;
}

.rx-metric-label {
  font-size: 0.74rem;
  color: var(--rx-text-soft);
}

.rx-metric-value {
  margin-top: 0.18rem;
  font-size: 1rem;
  font-weight: 600;
}

.rx-metric-soft {
  color: var(--rx-metric-soft);
}

.rx-metric-warn {
  color: var(--rx-metric-warn);
}

.rx-metric-good {
  color: var(--rx-metric-good);
}

@media (max-width: 720px) {
  .rx-header,
  .rx-main,
  .rx-footer {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .rx-metrics-row {
    flex-direction: column;
  }
}

/* ----- Auth pages (login / signup / OTP) — same chrome as dashboard ----- */
.rx-login-body {
  min-height: 100vh;
  background: var(--rx-body-bg);
  color: var(--rx-text-main);
}

.rx-login-body .rx-shell {
  min-height: 100vh;
  background: var(--rx-body-bg);
}

.rx-login-shell {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  min-height: 100vh;
}

.rx-login-shell-minimal {
  position: relative;
  max-width: 30rem;
}

.rx-auth-topbar {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 50;
}

.rx-login-body::before,
.rx-login-body::after {
  content: "";
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(0px);
  z-index: 0;
}

.rx-login-body::before {
  width: 34rem;
  height: 34rem;
  top: -12rem;
  left: -10rem;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.55) 0%, rgba(59, 130, 246, 0.2) 45%, rgba(59, 130, 246, 0.06) 64%, transparent 78%);
}

.rx-login-body::after {
  width: 30rem;
  height: 30rem;
  right: -8rem;
  bottom: -9rem;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.5) 0%, rgba(16, 185, 129, 0.18) 44%, rgba(16, 185, 129, 0.05) 63%, transparent 77%);
}

[data-theme="light"] .rx-login-body::before {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.38) 0%, rgba(59, 130, 246, 0.14) 48%, rgba(59, 130, 246, 0.04) 66%, transparent 78%);
}

[data-theme="light"] .rx-login-body::after {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.34) 0%, rgba(16, 185, 129, 0.12) 46%, rgba(16, 185, 129, 0.04) 64%, transparent 77%);
}

.rx-login-shell-minimal::before {
  content: "";
  position: fixed;
  width: 28rem;
  height: 28rem;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.34) 0%, rgba(139, 92, 246, 0.12) 44%, rgba(139, 92, 246, 0.03) 64%, transparent 74%);
}

[data-theme="light"] .rx-login-shell-minimal::before {
  background: radial-gradient(circle, rgba(139, 92, 246, 0.24) 0%, rgba(139, 92, 246, 0.1) 44%, rgba(139, 92, 246, 0.03) 64%, transparent 74%);
}

.rx-login-shell-minimal::after {
  content: "";
  position: fixed;
  width: 26rem;
  height: 26rem;
  right: 8%;
  top: 18%;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.26) 0%, rgba(236, 72, 153, 0.1) 42%, rgba(236, 72, 153, 0.02) 62%, transparent 74%);
}

[data-theme="light"] .rx-login-shell-minimal::after {
  background: radial-gradient(circle, rgba(236, 72, 153, 0.18) 0%, rgba(236, 72, 153, 0.08) 42%, rgba(236, 72, 153, 0.02) 62%, transparent 74%);
}

.rx-login-main::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.26;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.11) 1px, transparent 1px);
  background-size: 40px 40px;
}

[data-theme="light"] .rx-login-main::before {
  opacity: 0.18;
}

.rx-login-header {
  border-bottom: 1px solid var(--rx-header-border);
  background-color: var(--rx-header-bg);
  backdrop-filter: blur(18px);
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.rx-login-body .rx-footer {
  margin-top: auto;
  border-top: 1px solid var(--rx-footer-border);
  background: var(--rx-footer-bg);
}

.rx-login-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  position: relative;
  z-index: 1;
}

.rx-login-card {
  width: 100%;
  border-radius: var(--rx-radius-lg);
  background: var(--rx-surface);
  border: 1px solid var(--rx-border-subtle);
  padding: 2rem 1.75rem;
  box-shadow: var(--rx-login-card-shadow);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.rx-login-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.35rem 0;
  letter-spacing: -0.02em;
}

.rx-login-subtitle {
  font-size: 0.875rem;
  color: var(--rx-text-soft);
  margin: 0 0 1.5rem 0;
}

.rx-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.rx-input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
  color: var(--rx-text-main);
  background: var(--rx-input-bg);
  border: 1px solid var(--rx-border-subtle);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s, background 0.2s, color 0.2s;
}

.rx-input:focus {
  border-color: var(--rx-input-focus);
}

.rx-input::placeholder {
  color: var(--rx-text-soft);
  opacity: 0.8;
}

.rx-input-otp {
  letter-spacing: 0.35em;
  text-align: center;
}

/* OTP verification boxes */
.otp-field {
  margin: 0.75rem 0 0;
}

.otp-field__label {
  display: block;
  text-align: center;
  margin-bottom: 0.75rem;
}

.otp-field__hint {
  text-align: center;
  margin-top: 0.75rem;
  margin-bottom: 0;
  font-size: 0.85rem;
}

.otp-slots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.otp-digit {
  width: 2.75rem;
  height: 3.25rem;
  padding: 0;
  border-radius: 10px;
  border: 2px solid var(--rx-border-subtle);
  background: var(--rx-surface);
  font-size: 1.35rem;
  font-weight: 600;
  text-align: center;
  color: var(--rx-text-main);
  caret-color: var(--rx-text-main);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  -moz-appearance: textfield;
}

.otp-digit::-webkit-outer-spin-button,
.otp-digit::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.otp-digit:focus {
  outline: none;
}

.otp-digit--empty {
  border-color: var(--rx-border-subtle);
}

.otp-digit--active {
  border-color: var(--rx-input-focus);
  box-shadow: 0 0 0 3px var(--rx-accent-soft);
}

.otp-digit--filled {
  border-color: var(--rx-input-focus);
  background: var(--rx-surface-muted);
}

.otp-digit--error,
.otp-field--error .otp-digit {
  border-color: var(--rx-danger);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.25);
}

.rx-btn {
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s;
}

.rx-btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s;
}

.rx-btn-primary {
  background: var(--rx-btn-primary-bg);
  color: var(--rx-btn-primary-color);
}

.rx-btn-primary:hover {
  opacity: 0.95;
}

.rx-btn-secondary {
  background: var(--rx-surface-muted);
  color: var(--rx-text-main);
  border: 1px solid var(--rx-border-subtle);
}

.rx-btn-secondary:hover {
  background: var(--rx-accent-soft);
}

.rx-btn-ghost {
  background: transparent;
  color: var(--rx-text-main);
  border: 1px solid var(--rx-border-subtle);
}

.rx-btn-ghost:hover {
  background: var(--rx-accent-soft);
}

/* Submit in progress — /static/pma/submit-loading.js (PMA + Admin CRUD forms) */
button.rx-btn-loading,
input[type="submit"].rx-btn-loading,
input[type="image"].rx-btn-loading,
.rx-btn.rx-btn-loading {
  cursor: wait;
  pointer-events: none;
  opacity: 0.88;
}
button.rx-btn-loading::before,
input[type="submit"].rx-btn-loading::before,
input[type="image"].rx-btn-loading::before,
.rx-btn.rx-btn-loading::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 0.45em;
  vertical-align: -0.14em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: rx-btn-spin 0.55s linear infinite;
}
@keyframes rx-btn-spin {
  to {
    transform: rotate(360deg);
  }
}

form.rx-form-loading {
  cursor: wait;
  opacity: 0.98;
}

.rx-error {
  font-size: 0.85rem;
  color: var(--rx-danger);
  margin: 0 0 1rem 0;
  padding: 0.5rem 0;
}

.rx-muted {
  font-size: 0.8rem;
  color: var(--rx-text-soft);
  margin-top: 1rem;
}

.rx-link {
  color: var(--rx-accent);
  text-decoration: none;
}

.rx-link:hover {
  text-decoration: underline;
}

.rx-link-bold {
  font-weight: 500;
}

.rx-table-action {
  margin-right: 0.75rem;
}

.rx-table-action:last-child {
  margin-right: 0;
}

.rx-table-col-actions {
  width: 1%;
  white-space: nowrap;
  min-width: 11.5rem;
}

.rx-table-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  white-space: nowrap;
}

.rx-table-actions .rx-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  white-space: nowrap;
  line-height: 1.2;
}

.rx-btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.rx-login-back {
  margin-top: 1.25rem;
  text-align: center;
}

.rx-login-hint {
  margin-top: 0.5rem;
  font-size: 0.8rem;
}

.rx-login-signup {
  margin-top: 1.25rem;
  text-align: center;
}

.rx-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--rx-border-subtle);
}

.rx-tab {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--rx-text-soft);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.rx-tab:hover {
  color: var(--rx-text-main);
}

.rx-tab-active {
  color: var(--rx-accent);
  border-bottom-color: var(--rx-accent);
}

/* Chart cards: fixed height so they don't stretch too tall */
.rx-chart-wrap {
  height: 200px;
  max-height: 200px;
  position: relative;
  width: 100%;
}

/* ----- Layout body (sidebar + main column) ----- */
.rx-layout-body {
  display: flex;
  flex: 1;
  min-height: 100vh;
  align-items: stretch;
}

.rx-content-column {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 100vh;
}

/* ----- Side navigation (full viewport height) ----- */
.rx-sidenav {
  display: flex;
  flex-direction: column;
  width: 14rem;
  flex-shrink: 0;
  height: 100vh;
  position: sticky;
  top: 0;
  align-self: flex-start;
  border-right: 1px solid var(--rx-border-subtle);
  background: var(--rx-surface-muted);
  overflow: hidden;
  transition: width 0.2s ease, min-width 0.2s ease;
}

.rx-sidenav-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 1rem 0.75rem;
  gap: 0.15rem;
  min-width: 14rem;
  overflow-x: hidden;
  overflow-y: auto;
}

.rx-sidenav-footer {
  flex-shrink: 0;
  padding: 0.65rem 0.75rem 0.85rem;
  border-top: 1px solid var(--rx-border-subtle);
}

.rx-sidenav-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--rx-border-subtle);
  border-radius: 8px;
  background: var(--rx-surface);
  color: var(--rx-text-soft);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.rx-sidenav-toggle-btn:hover {
  color: var(--rx-text-main);
  background: var(--rx-accent-soft);
  border-color: var(--rx-border-subtle);
}

.rx-sidenav-link {
  padding: 0.55rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--rx-text-soft);
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}

.rx-sidenav-link:hover {
  color: var(--rx-text-main);
  background: var(--rx-accent-soft);
}

.rx-sidenav-link-active,
.rx-sidenav-link[aria-current="page"] {
  color: var(--rx-accent);
  background: var(--rx-accent-soft);
}

/* Sidebar collapsed: slim rail with toggle only */
.rx-sidenav-closed .rx-sidenav {
  width: 3.25rem;
  min-width: 3.25rem;
}

.rx-sidenav-closed .rx-sidenav-brand,
.rx-sidenav-closed .rx-sidenav-inner {
  display: none;
}

.rx-sidenav-closed .rx-sidenav-footer {
  border-top: none;
  padding: 0.75rem 0.45rem;
}

.rx-sidenav-closed .rx-sidenav-toggle-btn {
  justify-content: center;
  padding: 0.55rem;
}

.rx-sidenav-closed .rx-sidenav-toggle-label {
  display: none;
}

/* Toggle icons: show expand icon when sidebar is collapsed */
.rx-sidenav-closed .rx-sidenav-icon-open {
  display: none;
}
.rx-sidenav-closed .rx-sidenav-icon-closed {
  display: block !important;
}
.rx-sidenav-icon-closed {
  display: none;
}

@media (max-width: 720px) {
  .rx-sidenav {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 30;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
  }
  .rx-content-column::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 25;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }
  .rx-body:not(.rx-sidenav-closed) .rx-content-column::before {
    opacity: 1;
    pointer-events: auto;
  }
}

/* ----- App layout (main content) ----- */
.rx-app {
  display: flex;
  flex: 1;
  min-width: 0;
  min-height: 0;
  position: relative;
  overflow-y: auto;
}

/* ----- Nav (header) ----- */
.rx-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.rx-nav a {
  font-size: 0.85rem;
  color: var(--rx-text-soft);
  text-decoration: none;
}

.rx-nav a:hover {
  color: var(--rx-text-main);
}

.rx-nav .rx-nav-logout {
  color: var(--rx-text-soft);
}

.rx-nav .rx-nav-logout:hover {
  color: var(--rx-danger);
}

/* ----- Theme toggle ----- */
.rx-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  margin: 0;
  border: 1px solid var(--rx-border-subtle);
  border-radius: 10px;
  background: var(--rx-surface-muted);
  color: var(--rx-text-main);
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.15s, border-color 0.15s;
}

.rx-theme-toggle:hover {
  background: var(--rx-accent-soft);
  border-color: var(--rx-accent);
}


/* ----- Placeholder (coming soon) pages ----- */
.rx-placeholder-page {
  max-width: 32rem;
  padding: 2rem 0;
}

.rx-placeholder-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
  color: var(--rx-text-main);
}

.rx-placeholder-text {
  font-size: 0.95rem;
  color: var(--rx-text-soft);
  margin: 0;
  line-height: 1.5;
}

/* Simple sub-navigation for section tabs (e.g. Accounting) */
.rx-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem 0;
  border-bottom: 1px solid var(--rx-border-subtle);
  padding-bottom: 0.5rem;
}

.rx-subnav-link {
  font-size: 0.9rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--rx-text-soft);
  border: 1px solid transparent;
}

.rx-subnav-link:hover {
  color: var(--rx-text-main);
  background: var(--rx-accent-soft);
}

.rx-subnav-link-active {
  color: var(--rx-text-main);
  border-color: var(--rx-accent);
  background: var(--rx-accent-soft);
}

/* ----- Data tables (list pages) ----- */
.rx-table-wrap {
  overflow-x: auto;
  border-radius: var(--rx-radius-lg);
  border: 1px solid var(--rx-border-subtle);
  background: var(--rx-surface);
}

.rx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.rx-text-right {
  text-align: right;
}

.rx-table th,
.rx-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--rx-border-subtle);
  white-space: nowrap;
}

.rx-table th {
  font-weight: 600;
  color: var(--rx-text-soft);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.rx-table tbody tr:last-child td {
  border-bottom: none;
}

.rx-table tbody tr:hover {
  background: var(--rx-accent-soft);
}

.rx-table-empty {
  text-align: center;
  padding: 1.5rem 1rem !important;
  color: var(--rx-text-soft);
}

.rx-table .rx-tag {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  border: 1px solid var(--rx-tag-primary-border);
  background: var(--rx-tag-primary-bg);
  color: var(--rx-tag-primary-text);
}

.rx-table .rx-tag-warn {
  color: var(--rx-metric-warn);
  border-color: var(--rx-metric-warn);
  background: transparent;
}

.rx-table .rx-tag-good {
  color: var(--rx-metric-good);
  border-color: var(--rx-metric-good);
  background: transparent;
}

.rx-page-header {
  margin-bottom: 1.25rem;
}

.rx-page-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
}

.rx-page-subtitle {
  font-size: 0.85rem;
  color: var(--rx-text-soft);
  margin: 0;
}

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

.rx-back-link {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--rx-text-soft);
  text-decoration: none;
  margin-bottom: 0.5rem;
}
.rx-back-link:hover {
  color: var(--rx-text-main);
}

.rx-form-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.rx-check-result-wrap {
  min-height: 1.5rem;
  margin-top: 0.5rem;
}

.rx-check-result {
  font-size: 0.82rem;
  color: var(--rx-text-soft);
}
.rx-check-result-warn {
  color: var(--rx-danger);
}
.rx-check-result-muted {
  color: var(--rx-text-soft);
}

.rx-label-optional {
  font-weight: 400;
  opacity: 0.85;
}

/* Empty state (landlords, etc.) */
.rx-empty-state {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--rx-surface-muted);
  border: 1px solid var(--rx-border-subtle);
  border-radius: var(--rx-radius-lg);
  margin-bottom: 1.5rem;
}
.rx-empty-state-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: var(--rx-text-main);
}
.rx-empty-state-text {
  font-size: 0.9rem;
  color: var(--rx-text-soft);
  margin: 0 0 1.25rem 0;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.rx-empty-state-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.rx-summary-strip {
  font-size: 0.82rem;
  color: var(--rx-text-soft);
  margin-bottom: 1rem;
}
.rx-alert-success {
  padding: 0.65rem 1rem;
  border-radius: 10px;
  background: var(--rx-accent-soft);
  color: var(--rx-text-main);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.rx-alert-error {
  padding: 0.65rem 1rem;
  border-radius: 10px;
  background: rgba(248, 113, 113, 0.15);
  color: var(--rx-danger);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.rx-alert-info {
  padding: 0.65rem 1rem;
  border-radius: 10px;
  background: var(--rx-surface-muted);
  border: 1px solid var(--rx-border-subtle);
  color: var(--rx-text-soft);
  font-size: 0.9rem;
  line-height: 1.45;
  margin-bottom: 1rem;
}

/* Inline collapsible (optional form fields) */
.rx-collapse {
  border-top: 1px solid var(--rx-border-subtle);
  padding-top: 0.65rem;
}
.rx-collapse-summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--rx-text-soft);
}
.rx-collapse-summary::-webkit-details-marker {
  display: none;
}
.rx-collapse-summary::before {
  content: "+ ";
  font-weight: 600;
}
.rx-collapse[open] .rx-collapse-summary::before {
  content: "− ";
}
.rx-collapse-summary:hover {
  color: var(--rx-text-main);
}

/* Form helper utilities (shared by add/edit/invoice forms) */
.rx-form-hint,
.rx-label-hint {
  display: block;
  font-size: 0.78rem;
  color: var(--rx-text-soft);
  margin-top: 0.25rem;
}
.rx-label-hint {
  font-weight: 400;
  margin-top: 0;
  margin-left: 0.35rem;
}
.rx-required {
  color: var(--rx-danger);
  margin-left: 0.15rem;
}
.rx-form-readonly {
  background: var(--rx-surface-muted);
  color: var(--rx-text-soft);
  cursor: not-allowed;
}

/* ----- Intelligent Add Landlord flow ----- */
.rx-intro-text {
  max-width: 42rem;
}

.rx-intel-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 720px) {
  .rx-intel-layout {
    grid-template-columns: minmax(0, 28rem) 1fr;
  }
}

.rx-intel-form-card {
  max-width: 28rem;
}

.rx-intel-step-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.35rem 0;
  color: var(--rx-text-main);
}

/* Section headings inside cards (view / edit pages) */
.rx-card-section-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
  color: var(--rx-text-main);
}

.rx-card-section-hint {
  font-size: 0.85rem;
  color: var(--rx-text-soft);
  margin: 0 0 1rem 0;
}

.rx-card-empty {
  font-size: 0.85rem;
  color: var(--rx-text-soft);
  margin: 0;
  padding: 0.35rem 0;
}

.rx-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.rx-photo-grid-lg {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.rx-photo-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--rx-surface-muted);
}

.rx-photo-thumb-lg {
  height: 180px;
}

.rx-dl-grid {
  display: grid;
  gap: 0.5rem 1.5rem;
  grid-template-columns: auto 1fr;
  margin: 0;
}

.rx-dl-grid dt,
.rx-dl-grid dd {
  margin: 0;
}

.rx-form-max-sm {
  max-width: 24rem;
}

.rx-form-max-md {
  max-width: 28rem;
}

.rx-form-max-lg {
  max-width: 32rem;
}

.rx-fx-grid-narrow {
  max-width: 42rem;
  margin-bottom: 1rem;
}

.rx-hidden {
  display: none !important;
}

.rx-detail-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.rx-detail-stat {
  padding: 1rem 1.1rem;
  background: var(--rx-surface);
  border: 1px solid var(--rx-border-subtle);
  border-radius: var(--rx-radius-lg);
}

.rx-detail-stat-label {
  font-size: 0.78rem;
  color: var(--rx-text-soft);
  margin: 0 0 0.35rem 0;
}

.rx-detail-stat-value {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  color: var(--rx-text-main);
}

.rx-login-form .rx-btn-primary {
  margin-top: 1rem;
}

.rx-intel-step-desc {
  font-size: 0.85rem;
  color: var(--rx-text-soft);
  margin: 0 0 1rem 0;
}

.rx-form-group {
  margin-bottom: 1rem;
}

.rx-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 520px) {
  .rx-form-row {
    grid-template-columns: 1fr;
  }
}

.rx-select {
  appearance: auto;
  cursor: pointer;
}

.rx-textarea {
  resize: vertical;
  min-height: 2.5rem;
}

.rx-hint {
  display: block;
  font-size: 0.78rem;
  color: var(--rx-text-soft);
  margin-top: 0.25rem;
}

.rx-mt-lg {
  margin-top: 1.5rem;
}

.rx-page-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.rx-intel-next-card {
  padding: 1.25rem 1.5rem;
}

.rx-intel-next-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
  color: var(--rx-text-main);
}

.rx-intel-next-list {
  font-size: 0.85rem;
  color: var(--rx-text-soft);
  margin: 0 0 0.75rem 0;
  padding-left: 1.25rem;
  line-height: 1.5;
}

.rx-intel-next-list li {
  margin-bottom: 0.35rem;
}

.rx-intel-next-foot {
  font-size: 0.8rem;
  color: var(--rx-text-soft);
  margin: 0;
  opacity: 0.9;
}

/* Smart check result (phone/email lookup) */
.rx-intel-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.6rem 0.85rem;
  margin-top: 0.5rem;
  border-radius: 10px;
  font-size: 0.85rem;
  background: var(--rx-accent-soft);
  border: 1px solid var(--rx-border-subtle);
}

.rx-intel-check-icon {
  flex-shrink: 0;
  width: 1.1rem;
  text-align: center;
  font-weight: 600;
}

.rx-intel-check-icon-neutral {
  color: var(--rx-text-soft);
}

.rx-intel-check-icon-ok {
  color: var(--rx-metric-good, #22c55e);
}

.rx-intel-check-icon-muted {
  color: var(--rx-text-soft);
}

.rx-intel-check-icon-warn {
  color: var(--rx-danger);
}

.rx-intel-check-msg {
  color: var(--rx-text-main);
  line-height: 1.4;
}

.rx-intel-check[data-status="PMA_ACCOUNT"] {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.25);
}

.rx-intel-check[data-status="ALREADY_LINKED"] {
  background: var(--rx-surface-muted);
}

.rx-intel-next-cta {
  font-size: 0.9rem;
  margin: 0.5rem 0 1rem 0;
}

.rx-intel-next-cta a {
  color: var(--rx-accent, var(--rx-text-main));
  text-decoration: none;
}

.rx-intel-next-cta a:hover {
  text-decoration: underline;
}

/* ----- Properties & Estates ----- */
.rx-property-cards {
  display: grid;
  gap: 1rem;
}

.rx-property-card {
  padding: 1.1rem 1.25rem;
}

.rx-property-card-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--rx-text-soft);
  margin-bottom: 0.35rem;
}

.rx-property-card-value {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--rx-text-main);
}

.rx-property-card-hint {
  font-size: 0.8rem;
  color: var(--rx-text-soft);
  margin-top: 0.2rem;
}

.rx-card-table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0;
}

.rx-card-table-wrap .rx-table {
  margin: 0;
}

.rx-table-cell-primary {
  font-weight: 500;
  color: var(--rx-text-main);
}

/* Name cells that are links: property, unit, tenant – clearly look clickable */
.rx-table .rx-table-name-link {
  color: var(--rx-accent);
  font-weight: 500;
  text-decoration: none;
}
.rx-table .rx-table-name-link:hover {
  text-decoration: underline;
}

.rx-table-cell-muted {
  color: var(--rx-text-soft);
  font-weight: 400;
  padding: 0 0.15rem;
}

/* Invoice table: invoice number and amount columns */
.rx-table-cell-invoice-number {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--rx-metric-soft);
}
.rx-table-cell-amount {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--rx-accent);
}
.rx-table-cell-balance {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--rx-metric-good);
}
.rx-table-cell-balance-due {
  color: var(--rx-metric-warn);
}

.rx-table th.rx-table-cell-invoice-number,
.rx-table th.rx-table-cell-amount,
.rx-table th.rx-table-cell-balance {
  font-weight: 700;
}

.rx-tag-type {
  font-size: 0.78rem;
  padding: 0.2rem 0.5rem;
}

/* Add property: sidebar stack of intel cards */
.rx-intel-sidebar-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rx-intel-explain-card .rx-intel-next-title {
  margin-bottom: 0.5rem;
}

.rx-intel-dl {
  margin: 0;
  font-size: 0.85rem;
  color: var(--rx-text-soft);
}

.rx-intel-dl dt {
  font-weight: 600;
  color: var(--rx-text-main);
  margin-top: 0.6rem;
  margin-bottom: 0.2rem;
}

.rx-intel-dl dt:first-child {
  margin-top: 0;
}

.rx-intel-dl dd {
  margin: 0 0 0 0;
  line-height: 1.4;
}

/* Notification badge (header) */
.rx-notification-link {
  position: relative;
}
.rx-notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 4px;
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1.1rem;
  text-align: center;
  color: #fff;
  background: var(--rx-danger);
  border-radius: 999px;
}

/* Toast container (fixed, top-right) */
.rx-toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 22rem;
  pointer-events: none;
}
.rx-toast {
  padding: 0.75rem 1rem;
  background: var(--rx-surface);
  border: 1px solid var(--rx-border-subtle);
  border-radius: var(--rx-radius-lg);
  box-shadow: var(--rx-card-shadow);
  pointer-events: auto;
  animation: rx-toast-in 0.25s ease;
}
.rx-toast-hide {
  opacity: 0;
  transform: translateX(1rem);
  transition: opacity 0.2s, transform 0.2s;
}
.rx-toast-title {
  display: block;
  font-size: 0.9rem;
  color: var(--rx-text-main);
  margin-bottom: 0.25rem;
}
.rx-toast-message {
  font-size: 0.8rem;
  color: var(--rx-text-soft);
  margin: 0;
  line-height: 1.35;
}
@keyframes rx-toast-in {
  from {
    opacity: 0;
    transform: translateX(1rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Notifications list page */
.rx-notification-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rx-notification-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--rx-border-subtle);
}
.rx-notification-item:last-child {
  border-bottom: none;
}
.rx-notification-unread {
  background: var(--rx-accent-soft);
}
.rx-notification-item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}
.rx-notification-time {
  font-size: 0.8rem;
  white-space: nowrap;
}
.rx-notification-message {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--rx-text-soft);
  line-height: 1.4;
}

/* In-app PDF viewer */
.rx-pdf-viewer {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 8rem);
  min-height: 400px;
}
.rx-pdf-viewer-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rx-border-subtle);
  margin-bottom: 1rem;
}
.rx-pdf-viewer-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  flex: 1;
}
.rx-pdf-viewer-frame-wrap {
  flex: 1;
  min-height: 0;
  border: 1px solid var(--rx-border-subtle);
  border-radius: 8px;
  overflow: hidden;
  background: var(--rx-bg-subtle);
}
.rx-pdf-iframe {
  width: 100%;
  height: 100%;
  min-height: 500px;
  border: none;
  display: block;
}

/* PMA dashboard — RentX knowledge base panel + charts */
.rx-dash-kb-wrap {
  margin-bottom: 1.1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--rx-radius-lg);
  background: var(--rx-surface);
  border: 1px solid var(--rx-border-subtle);
}
.rx-dash-kb-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.25rem;
  margin-bottom: 1.25rem;
}
@media (min-width: 768px) {
  .rx-dash-kb-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.rx-dash-kb-stat-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rx-text-soft);
  margin-bottom: 0.2rem;
}
.rx-dash-kb-stat-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--rx-text);
  word-break: break-word;
}
.rx-dash-row-kb-charts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 1024px) {
  .rx-dash-row-kb-charts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.rx-dash-chart-card-kb {
  border-radius: 12px;
  background: var(--rx-surface-muted);
  border: 1px solid var(--rx-border-subtle);
  padding: 1rem 1.1rem;
  min-height: 0;
}
.rx-dash-chart-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.15rem;
}
.rx-dash-chart-sub {
  font-size: 0.75rem;
  color: var(--rx-text-soft);
  margin: 0 0 0.75rem;
}
.rx-dash-chart-wrap-kb {
  height: 200px;
  position: relative;
}
.rx-dash-chart-wrap-kb-wide {
  height: 220px;
  position: relative;
}
.rx-dash-insights-empty {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
}

/* ----- Dashboard: rent vs commission clarity ----- */
.rx-dash-funds-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
@media (min-width: 768px) {
  .rx-dash-funds-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.rx-dash-funds-item {
  padding: 1rem 1.15rem;
  border-radius: var(--rx-radius-lg);
  border: 1px solid var(--rx-border-subtle);
  background: var(--rx-surface-muted);
}
.rx-dash-funds-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--rx-text-soft);
  margin-bottom: 0.35rem;
}
.rx-dash-funds-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--rx-text-main);
}
.rx-dash-funds-hint {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--rx-text-soft);
  line-height: 1.35;
}
.rx-dash-funds-value.rx-metric-good {
  color: #4ade80;
}
.rx-metric-accent {
  color: #fbbf24 !important;
}

/* ----- Reports module ----- */
.rx-reports .rx-muted {
  font-size: 0.88rem;
  color: var(--rx-text-soft);
  margin: 0 0 1rem;
}
.rx-funds-legend-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--rx-text-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}
.rx-funds-legend-list li {
  margin-bottom: 0.65rem;
}
.rx-funds-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  margin-right: 0.35rem;
  vertical-align: middle;
}
.rx-funds-landlord {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.35);
}
.rx-funds-pma {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.35);
}
.rx-funds-net {
  background: rgba(96, 165, 250, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.35);
}
.rx-period-pill {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--rx-text-soft);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--rx-border-subtle);
  vertical-align: middle;
}
.rx-metric-highlight .rx-metric-value {
  font-size: 1.25rem;
  font-weight: 700;
}
.rx-metric-hint {
  font-size: 0.78rem;
  color: var(--rx-text-soft);
  margin-top: 0.25rem;
}
.rx-card-export {
  margin: 1.5rem 0;
}
.rx-card-header-row {
  flex-direction: column;
  align-items: flex-start !important;
  gap: 0.35rem;
}
.rx-card-sub {
  margin: 0;
  font-size: 0.85rem;
  color: var(--rx-text-soft);
  max-width: 52rem;
  line-height: 1.45;
}
.rx-export-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding: 0 0 0.5rem;
}
@media (min-width: 900px) {
  .rx-export-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.rx-export-block {
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--rx-border-subtle);
  background: var(--rx-surface-muted);
}
.rx-export-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
}
.rx-export-desc {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  color: var(--rx-text-soft);
  line-height: 1.45;
}
.rx-export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.rx-table-compact th,
.rx-table-compact td {
  padding: 0.55rem 0.65rem;
  font-size: 0.82rem;
}
.rx-table .rx-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.rx-table-tfoot th {
  border-top: 2px solid var(--rx-border-subtle);
  background: var(--rx-accent-soft);
  color: var(--rx-text-main);
}

/* ----- Reports: professional sheet layout ----- */
.rx-reports-pro {
  max-width: 1200px;
}
.rx-reports-page-head {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rx-border-subtle);
}
.rx-reports-tagline {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--rx-text-soft);
  letter-spacing: 0.02em;
}
.rx-report-sheet {
  margin-bottom: 2rem;
  border-radius: var(--rx-radius-lg);
  border: 1px solid var(--rx-border-subtle);
  background: var(--rx-surface);
  overflow: hidden;
  box-shadow: var(--rx-card-shadow);
}
.rx-report-sheet-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(180deg, var(--rx-surface-muted) 0%, var(--rx-surface) 100%);
  border-bottom: 1px solid var(--rx-border-subtle);
}
.rx-report-sheet-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--rx-text-main);
}
.rx-report-sheet-meta {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--rx-text-soft);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--rx-border-subtle);
  background: var(--rx-surface);
}
.rx-report-sheet-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--rx-border-subtle);
  background: var(--rx-surface);
}
.rx-report-sheet-toolbar a.rx-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rx-report-sheet-body {
  padding: 1.25rem;
}
.rx-report-sheet-body-flush {
  padding: 0;
}
.rx-report-sheet-body-flush .rx-table-wrap {
  border: none;
  border-radius: 0;
}
.rx-report-footnote {
  margin: 0;
  padding: 0.65rem 1.25rem 1rem;
  font-size: 0.78rem;
  color: var(--rx-text-soft);
}
.rx-metric-inline {
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
  white-space: normal !important;
}

.rx-reports-filter-card .rx-alert-error {
  margin-bottom: 1rem;
}
.rx-reports-filter-row {
  align-items: flex-end;
}
.rx-reports-filter-grow {
  flex: 1 1 12rem;
  min-width: 10rem;
}
.rx-reports-filter-actions {
  margin-top: 0.5rem;
}
.rx-report-subject {
  font-weight: 500;
  color: var(--rx-text-soft);
}
.rx-reports-period-line {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--rx-text-soft);
}
.rx-report-kind-pill {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--rx-border-subtle);
  background: var(--rx-surface-muted);
  color: var(--rx-text-soft);
  align-self: center;
}
.rx-reports-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--rx-border-subtle);
  background: var(--rx-surface-muted);
}
.rx-reports-summary-item {
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--rx-border-subtle);
  background: var(--rx-surface);
}
.rx-reports-summary-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rx-text-soft);
  margin-bottom: 0.25rem;
}
.rx-reports-summary-value {
  font-size: 1rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.rx-toolbar-divider {
  display: inline-block;
  width: 1px;
  height: 1.5rem;
  margin: 0 0.15rem;
  background: var(--rx-border-subtle);
  vertical-align: middle;
}

/* ----- PMA Reports workspace (analytics shell) ----- */
.rx-analytics {
  max-width: 1400px;
  margin: 0 auto;
}
.rx-analytics-masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rx-border-subtle);
}
.rx-analytics-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rx-text-soft);
}
.rx-analytics-title {
  margin: 0 0 0.5rem;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--rx-text-main);
}
.rx-analytics-sub {
  margin: 0;
  max-width: 42rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--rx-text-soft);
}
.rx-analytics-masthead-meta {
  text-align: right;
}
.rx-analytics-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  background: rgba(74, 222, 128, 0.12);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.35);
}
.rx-analytics-meta-line {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--rx-text-soft);
}
.rx-analytics-layout {
  display: flex;
  gap: 0;
  align-items: stretch;
  min-height: 28rem;
  border-radius: 14px;
  border: 1px solid var(--rx-border-subtle);
  background: var(--rx-surface);
  box-shadow: var(--rx-card-shadow);
  overflow: hidden;
}
.rx-analytics-rail {
  width: 15rem;
  flex-shrink: 0;
  padding: 1rem 0.65rem;
  background: var(--rx-surface-muted);
  border-right: 1px solid var(--rx-border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.rx-analytics-rail-link {
  display: block;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--rx-text-soft);
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.rx-analytics-rail-link:hover {
  background: var(--rx-surface);
  color: var(--rx-text-main);
  border-color: var(--rx-border-subtle);
}
.rx-analytics-rail-link-active {
  background: var(--rx-surface);
  color: var(--rx-text-main);
  border-color: var(--rx-border-subtle);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}
.rx-analytics-rail-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 650;
}
.rx-analytics-rail-hint {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  opacity: 0.85;
}
.rx-analytics-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.rx-analytics-toolbar {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--rx-border-subtle);
  background: linear-gradient(180deg, var(--rx-surface-muted) 0%, var(--rx-surface) 100%);
}
.rx-analytics-presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}
.rx-analytics-presets-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rx-text-soft);
  margin-right: 0.35rem;
}
.rx-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  padding: 0.28rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid var(--rx-border-subtle);
  background: var(--rx-surface);
  color: var(--rx-text-main);
  text-decoration: none;
}
.rx-chip:hover {
  border-color: var(--rx-input-focus);
  color: var(--rx-text-main);
}
.rx-analytics-filter-form {
  margin: 0;
}
.rx-analytics-filter-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: flex-end;
}
.rx-analytics-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 8.5rem;
}
.rx-analytics-field-grow {
  flex: 1 1 12rem;
}
.rx-analytics-field-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--rx-text-soft);
}
.rx-analytics-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}
.rx-analytics-panel {
  padding: 1.25rem 1.25rem 1.5rem;
  flex: 1;
}
.rx-analytics-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.rx-analytics-panel-title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 650;
  color: var(--rx-text-main);
}
.rx-analytics-panel-subject {
  font-weight: 500;
  color: var(--rx-text-soft);
}
.rx-analytics-panel-desc {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--rx-text-soft);
  max-width: 48rem;
}
.rx-analytics-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.rx-analytics-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.1rem;
}
.rx-analytics-kpi {
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--rx-border-subtle);
  background: var(--rx-surface-muted);
}
.rx-analytics-kpi-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rx-text-soft);
  margin-bottom: 0.3rem;
}
.rx-analytics-kpi-value {
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--rx-text-main);
}
.rx-analytics-grid-wrap {
  border-radius: 12px;
  border: 1px solid var(--rx-border-subtle);
  overflow: auto;
  max-height: min(60vh, 520px);
  background: var(--rx-surface);
}
.rx-analytics-grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.rx-analytics-grid thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: left;
  padding: 0.65rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rx-text-soft);
  background: var(--rx-surface-muted);
  border-bottom: 1px solid var(--rx-border-subtle);
  white-space: nowrap;
}
.rx-analytics-grid tbody td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--rx-border-subtle);
  vertical-align: middle;
}
.rx-analytics-grid tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}
[data-theme="light"] .rx-analytics-grid tbody tr:hover td {
  background: rgba(0, 0, 0, 0.02);
}
.rx-analytics-grid .rx-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.rx-analytics-empty {
  text-align: center;
  padding: 2.5rem 1rem !important;
  color: var(--rx-text-soft);
}
.rx-analytics-bar-head {
  min-width: 6rem;
}
.rx-analytics-bar-cell {
  vertical-align: middle;
}
.rx-analytics-bar-track {
  height: 6px;
  border-radius: 999px;
  background: var(--rx-border-subtle);
  overflow: hidden;
  max-width: 120px;
}
.rx-analytics-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #4ade80);
  max-width: 100%;
}
.rx-analytics-api-foot {
  margin-top: auto;
  padding: 0.85rem 1.25rem 1.1rem;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--rx-text-soft);
  border-top: 1px solid var(--rx-border-subtle);
  background: var(--rx-surface-muted);
}
.rx-analytics-api-foot code {
  font-size: 0.68rem;
  padding: 0.1rem 0.25rem;
  border-radius: 4px;
  background: var(--rx-surface);
  border: 1px solid var(--rx-border-subtle);
}
@media (max-width: 960px) {
  .rx-analytics-layout {
    flex-direction: column;
  }
  .rx-analytics-rail {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    border-right: none;
    border-bottom: 1px solid var(--rx-border-subtle);
  }
  .rx-analytics-rail-link {
    flex: 1 1 42%;
  }
}

/* Reports: compact header + collapsible filters */
.rx-reports-head {
  margin-bottom: 1rem;
}
.rx-reports-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.75rem;
}
.rx-reports-tabs a {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--rx-text-soft);
  border: 1px solid var(--rx-border-subtle);
  background: var(--rx-surface-muted);
}
.rx-reports-tabs a:hover {
  color: var(--rx-text-main);
  border-color: var(--rx-input-focus);
}
.rx-reports-tab-active {
  color: var(--rx-text-main) !important;
  background: var(--rx-surface) !important;
  border-color: var(--rx-border-subtle) !important;
  box-shadow: var(--rx-card-shadow);
}
.rx-report-filters {
  margin-bottom: 1rem;
  border-radius: 12px;
  border: 1px solid var(--rx-border-subtle);
  background: var(--rx-surface-muted);
  overflow: hidden;
}
.rx-report-filters-summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.8rem;
  font-weight: 650;
  padding: 0.65rem 1rem;
  color: var(--rx-text-main);
}
.rx-report-filters-summary::-webkit-details-marker {
  display: none;
}
.rx-report-filters[open] .rx-report-filters-summary {
  border-bottom: 1px solid var(--rx-border-subtle);
}
.rx-report-filters .rx-analytics-filter-form {
  padding: 1rem;
}
.rx-analytics-panel-tight {
  padding: 0;
}
.rx-analytics-panel-head-tight {
  margin-bottom: 0.75rem;
}
.rx-reports-subhead {
  margin: 1.25rem 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--rx-text-main);
}

/* ----- PMA reports UI redo ----- */
.rx-reporting {
  max-width: 1360px;
  margin: 0 auto;
}
.rx-reporting-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.9rem;
}
.rx-reporting-period {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--rx-text-soft);
}
.rx-reporting-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.rx-reporting-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.8rem;
}
.rx-reporting-tabs a {
  text-decoration: none;
  padding: 0.42rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--rx-border-subtle);
  background: var(--rx-surface-muted);
  color: var(--rx-text-soft);
  font-size: 0.8rem;
  font-weight: 600;
}
.rx-reporting-tabs a:hover {
  border-color: var(--rx-input-focus);
  color: var(--rx-text-main);
}
.rx-reporting-tab-active {
  background: var(--rx-surface) !important;
  color: var(--rx-text-main) !important;
  box-shadow: var(--rx-card-shadow);
}
.rx-reporting-filters {
  margin-bottom: 0.75rem;
  border: 1px solid var(--rx-border-subtle);
  border-radius: 12px;
  overflow: hidden;
  background: var(--rx-surface-muted);
}
.rx-reporting-filters > summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.8rem;
  font-weight: 650;
  padding: 0.65rem 0.95rem;
}
.rx-reporting-filters > summary::-webkit-details-marker {
  display: none;
}
.rx-reporting-filters[open] > summary {
  border-bottom: 1px solid var(--rx-border-subtle);
}
.rx-reporting-form {
  padding: 0.9rem;
}
.rx-reporting-filter-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 0.9rem;
  align-items: flex-end;
}
.rx-reporting-form-actions {
  margin-top: 0.8rem;
  display: flex;
  gap: 0.5rem;
}
.rx-reporting-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.7rem;
}
.rx-reporting-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--rx-border-subtle);
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  font-size: 0.72rem;
  color: var(--rx-text-soft);
  background: var(--rx-surface-muted);
}
.rx-reporting-card {
  border: 1px solid var(--rx-border-subtle);
  border-radius: 12px;
  background: var(--rx-surface);
  box-shadow: var(--rx-card-shadow);
  margin-bottom: 1rem;
  overflow: hidden;
}
.rx-reporting-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--rx-border-subtle);
  background: var(--rx-surface-muted);
}
.rx-reporting-card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
}
.rx-reporting-card-subject {
  color: var(--rx-text-soft);
  font-weight: 500;
}
.rx-reporting-card-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.rx-reporting-kpis {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--rx-border-subtle);
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
}
.rx-reporting-kpi {
  border: 1px solid var(--rx-border-subtle);
  border-radius: 8px;
  padding: 0.55rem 0.6rem;
  background: var(--rx-surface-muted);
}
.rx-reporting-kpi span {
  display: block;
  font-size: 0.68rem;
  color: var(--rx-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}
.rx-reporting-kpi strong {
  font-size: 0.96rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Density + responsive tuning */
.rx-reporting .rx-analytics-grid {
  min-width: 980px;
}
.rx-reporting .rx-analytics-grid-wrap {
  border-top: 1px solid var(--rx-border-subtle);
  border-radius: 0;
}
.rx-reporting .rx-analytics-grid thead th {
  white-space: nowrap;
}

@media (min-width: 1280px) {
  .rx-reporting {
    max-width: 1460px;
  }
  .rx-reporting-card-head {
    padding: 0.75rem 0.9rem;
  }
  .rx-reporting-kpis {
    padding: 0.65rem 0.9rem;
    gap: 0.45rem;
  }
  .rx-reporting-kpi {
    padding: 0.48rem 0.55rem;
  }
  .rx-reporting .rx-analytics-grid {
    font-size: 0.78rem;
  }
  .rx-reporting .rx-analytics-grid thead th {
    font-size: 0.66rem;
    padding: 0.52rem 0.58rem;
  }
  .rx-reporting .rx-analytics-grid tbody td {
    padding: 0.46rem 0.58rem;
  }
}

@media (max-width: 1100px) {
  .rx-reporting-head {
    gap: 0.55rem 0.8rem;
  }
  .rx-reporting-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    margin-right: -0.1rem;
  }
  .rx-reporting-tabs a {
    flex: 0 0 auto;
  }
  .rx-reporting .rx-analytics-grid {
    min-width: 920px;
  }
  .rx-reporting .rx-col-secondary {
    display: none;
  }
}

@media (max-width: 820px) {
  .rx-reporting-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .rx-reporting-head-actions {
    width: 100%;
  }
  .rx-reporting-head-actions .rx-chip,
  .rx-reporting-head-actions .rx-btn {
    flex: 0 0 auto;
  }
  .rx-reporting-form {
    padding: 0.75rem;
  }
  .rx-reporting-filter-grid {
    gap: 0.55rem 0.7rem;
  }
  .rx-reporting-filter-grid .rx-analytics-field {
    min-width: 100%;
  }
  .rx-reporting-card-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .rx-reporting-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rx-reporting .rx-analytics-grid {
    min-width: 840px;
  }
  .rx-reporting .rx-col-important {
    display: none;
  }
}

@media (max-width: 560px) {
  .rx-reporting .rx-page-title {
    font-size: 1.25rem;
  }
  .rx-reporting-tabs a {
    font-size: 0.75rem;
    padding: 0.35rem 0.58rem;
  }
  .rx-reporting-kpis {
    grid-template-columns: 1fr;
  }
  .rx-reporting .rx-analytics-grid {
    min-width: 760px;
  }
  .rx-reporting .rx-col-secondary,
  .rx-reporting .rx-col-important {
    display: none;
  }
}

/* ----- PMA dashboard v2 (fintech) ----- */
.rx-dash-v2 {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.rx-fx-future {
  position: relative;
}

.rx-fx-future::before {
  content: "";
  position: absolute;
  inset: -1.5rem 0 auto;
  height: 12rem;
  pointer-events: none;
  background: radial-gradient(circle at 20% 0%, rgba(56, 189, 248, 0.13), transparent 52%),
              radial-gradient(circle at 80% 0%, rgba(99, 102, 241, 0.12), transparent 54%);
  z-index: 0;
}

.rx-fx-future > * {
  position: relative;
  z-index: 1;
}

.rx-fx-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.rx-fx-title {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.rx-fx-sub {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--rx-text-soft);
}

.rx-fx-sub-sep {
  margin: 0 0.35rem;
  opacity: 0.5;
}

.rx-fx-sub-muted {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  opacity: 0.85;
}

.rx-fx-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.rx-fx-agent-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.28));
  box-shadow: 0 8px 30px rgba(2, 6, 23, 0.2);
}

[data-theme="light"] .rx-fx-agent-strip {
  background: linear-gradient(160deg, rgba(226, 232, 240, 0.6), rgba(255, 255, 255, 0.75));
}

.rx-fx-agent-live {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
}

.rx-fx-agent-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.15);
}

.rx-fx-agent-chips {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.rx-fx-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--rx-border-subtle);
  font-size: 0.74rem;
  text-decoration: none;
  color: var(--rx-text-main);
  background: rgba(148, 163, 184, 0.12);
}

.rx-fx-chip:hover {
  background: rgba(148, 163, 184, 0.2);
}

.rx-fx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--rx-border-subtle);
  transition: background 0.15s ease, color 0.15s ease;
}

.rx-fx-btn-ghost {
  background: transparent;
  color: var(--rx-text-main);
}

.rx-fx-btn-ghost:hover {
  background: var(--rx-accent-soft);
}

.rx-fx-btn-primary {
  background: var(--rx-btn-primary-bg);
  color: var(--rx-btn-primary-color);
  border-color: transparent;
}

.rx-fx-btn-primary:hover {
  filter: brightness(1.05);
}

.rx-fx-btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
}

.rx-fx-card-actions {
  margin-top: 0.75rem;
}

.rx-fx-grid {
  display: grid;
  gap: 0.85rem;
}

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

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

@media (max-width: 1024px) {
  .rx-fx-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .rx-fx-grid-4,
  .rx-fx-grid-3 {
    grid-template-columns: 1fr;
  }
}

.rx-fx-card {
  background: var(--rx-surface);
  border: 1px solid var(--rx-border-subtle);
  border-radius: var(--rx-radius-lg);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--rx-card-shadow);
  backdrop-filter: blur(6px);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.rx-fx-card:hover {
  transform: translateY(-2px);
  border-color: rgba(148, 163, 184, 0.35);
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.2);
}

.rx-fx-card-hero {
  background: linear-gradient(145deg, var(--rx-surface) 0%, var(--rx-surface-muted) 100%);
}

[data-theme="light"] .rx-fx-card-hero {
  background: var(--rx-card-hero-gradient), var(--rx-surface);
}

.rx-fx-card-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rx-text-soft);
  margin-bottom: 0.5rem;
}

.rx-fx-card-amount {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.rx-fx-curr {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--rx-text-soft);
}

.rx-fx-num {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.rx-fx-accent .rx-fx-num {
  color: var(--rx-metric-good);
}

[data-theme="dark"] .rx-fx-accent .rx-fx-num {
  color: #86efac;
}

.rx-fx-card-hint {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--rx-text-soft);
}

.rx-fx-card-compact .rx-fx-card-hint {
  font-size: 0.74rem;
}

.rx-fx-stat-line {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.rx-fx-num-sm {
  font-size: 1.2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.rx-fx-curr-sm {
  font-size: 0.78rem;
  color: var(--rx-text-soft);
  font-weight: 600;
}

.rx-fx-warn {
  color: var(--rx-metric-warn) !important;
}

.rx-fx-good {
  color: var(--rx-metric-good) !important;
}

.rx-fx-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.85rem 1.1rem;
  border-radius: var(--rx-radius-lg);
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
  font-size: 0.88rem;
}

[data-theme="light"] .rx-fx-alert {
  border-color: rgba(217, 119, 6, 0.35);
  background: rgba(254, 243, 199, 0.5);
}

.rx-fx-panel {
  background: var(--rx-surface);
  border: 1px solid var(--rx-border-subtle);
  border-radius: var(--rx-radius-lg);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--rx-card-shadow);
  backdrop-filter: blur(6px);
}

.rx-fx-panel-head {
  margin-bottom: 0.85rem;
}

.rx-fx-panel-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
}

.rx-fx-panel-sub {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: var(--rx-text-soft);
}

.rx-fx-panel-foot {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rx-border-subtle);
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.rx-fx-channel-bar {
  display: flex;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--rx-surface-muted);
}

.rx-fx-channel-seg {
  height: 100%;
  min-width: 0;
  transition: width 0.25s ease;
}

.rx-fx-ch-digital {
  background: #22c55e;
}

.rx-fx-ch-wallet {
  background: #3b82f6;
}

.rx-fx-ch-cash {
  background: #f59e0b;
}

.rx-fx-channel-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--rx-text-soft);
}

.rx-fx-channel-legend strong {
  color: var(--rx-text-main);
  font-weight: 600;
  margin-left: 0.25rem;
}

.rx-fx-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.rx-fx-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0.85rem;
  align-items: start;
}

.rx-fx-split-wide {
  grid-template-columns: 1.25fr 0.75fr;
}

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

.rx-fx-insight-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--rx-text-main);
}

.rx-fx-insight-list li {
  margin-bottom: 0.45rem;
  position: relative;
}

.rx-fx-insight-list li::marker {
  color: #60a5fa;
}

.rx-fx-insight-empty {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
}

.rx-fx-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem 0.5rem;
  margin-bottom: 0.75rem;
}

@media (max-width: 520px) {
  .rx-fx-mini-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.rx-fx-mini-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rx-text-soft);
  margin-bottom: 0.15rem;
}

.rx-fx-mini-val {
  font-size: 1rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.rx-fx-link {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--rx-accent);
  text-decoration: none;
}

[data-theme="dark"] .rx-fx-link {
  color: #a3a3a3;
}

.rx-fx-link:hover {
  text-decoration: underline;
}

.rx-fx-agent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  margin-top: 0.8rem;
  padding-top: 0.7rem;
  border-top: 1px dashed var(--rx-border-subtle);
}

.rx-fx-muted {
  color: var(--rx-text-soft);
}

.rx-fx-mono {
  font-variant-numeric: tabular-nums;
}

.rx-fx-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--rx-text-soft);
}

.rx-fx-table td {
  font-size: 0.84rem;
}

.rx-fx-chart-canvas {
  position: relative;
  height: 200px;
}

.rx-fx-chart-tall {
  height: 240px;
}

.rx-fx-occ-legend {
  display: flex;
  gap: 1.25rem;
  margin-top: 0.65rem;
  font-size: 0.8rem;
  color: var(--rx-text-soft);
}

.rx-fx-occ-legend strong {
  color: var(--rx-text-main);
  margin-left: 0.25rem;
}

/* Collapsible portfolio intelligence */
.rx-fx-details {
  border: 1px solid var(--rx-border-subtle);
  border-radius: var(--rx-radius-lg);
  background: var(--rx-surface);
  box-shadow: var(--rx-card-shadow);
  overflow: hidden;
  backdrop-filter: blur(6px);
}

.rx-fx-details-summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.15rem;
  padding-right: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  user-select: none;
  position: relative;
}

.rx-fx-details-summary::-webkit-details-marker {
  display: none;
}

.rx-fx-details-summary::after {
  content: '';
  position: absolute;
  right: 1.25rem;
  top: 1.15rem;
  border: solid var(--rx-text-soft);
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 4px;
  transform: rotate(45deg);
  opacity: 0.7;
}

.rx-fx-details {
  position: relative;
}

.rx-fx-details[open] .rx-fx-details-summary::after {
  transform: rotate(-135deg);
  top: 1.35rem;
}

.rx-fx-details-title {
  font-weight: 650;
  font-size: 0.95rem;
}

.rx-fx-details-hint {
  font-size: 0.78rem;
  color: var(--rx-text-soft);
}

.rx-fx-details-body {
  padding: 0 1.15rem 1.15rem;
  border-top: 1px solid var(--rx-border-subtle);
}

.rx-fx-details-empty {
  margin: 0;
  padding: 1rem 1.15rem;
  font-size: 0.85rem;
}

.rx-fx-kb-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.85rem 0 0.5rem;
}

.rx-fx-kb-pill {
  font-size: 0.78rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--rx-surface-muted);
  border: 1px solid var(--rx-border-subtle);
}

.rx-fx-kb-pill strong {
  margin-left: 0.25rem;
  font-weight: 650;
}

.rx-fx-kb-charts {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 1100px) {
  .rx-fx-kb-charts {
    grid-template-columns: 1fr;
  }
}

.rx-fx-panel-nested {
  padding: 0.9rem 1rem;
  margin: 0;
}

@media (min-width: 1101px) {
  .rx-fx-kb-charts {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr);
  }
}

.rx-fx-nested-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 650;
}

.rx-fx-nested-sub {
  margin: 0.2rem 0 0.5rem;
  font-size: 0.72rem;
  color: var(--rx-text-soft);
}

.rx-fx-chart-kb {
  height: 200px;
}

.rx-fx-chart-kb-wide {
  height: 220px;
}

/* ----- Searchable combobox (PMA forms) ----- */
.rx-combobox {
  position: relative;
}

.rx-combobox-input {
  width: 100%;
}

.rx-combobox-list {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 0.25rem);
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  max-height: 12rem;
  overflow-y: auto;
  background: var(--rx-surface);
  border: 1px solid var(--rx-border-subtle);
  border-radius: 10px;
  box-shadow: var(--rx-card-shadow);
}

.rx-combobox-list[hidden] {
  display: none;
}

.rx-combobox-list [role="option"] {
  padding: 0.45rem 0.75rem;
  font-size: 0.9rem;
  color: var(--rx-text-main);
  cursor: pointer;
}

.rx-combobox-list [role="option"]:hover,
.rx-combobox-list [role="option"].rx-combobox-option-active {
  background: var(--rx-accent-soft);
}

.rx-combobox-open .rx-combobox-input {
  border-color: var(--rx-input-focus);
}

/* ----- HTMX typeahead (PMA forms) ----- */
.rx-typeahead {
  position: relative;
}

.rx-typeahead-input {
  width: 100%;
}

.rx-typeahead-results {
  position: relative;
  z-index: 30;
}

.rx-typeahead-results-inner {
  margin-top: 0.35rem;
}

.rx-typeahead-list {
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  max-height: 14rem;
  overflow-y: auto;
  background: var(--rx-surface);
  border: 1px solid var(--rx-border-subtle);
  border-radius: 10px;
  box-shadow: var(--rx-card-shadow);
}

.rx-typeahead-option {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: none;
  background: transparent;
  color: var(--rx-text-main);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.rx-typeahead-option:hover,
.rx-typeahead-option:focus {
  background: var(--rx-accent-soft);
  outline: none;
}

.rx-typeahead-list-compact {
  max-height: 11rem;
}

.rx-typeahead-option-compact {
  padding: 0.42rem 0.68rem;
  font-size: 0.84rem;
  line-height: 1.3;
}

.rx-typeahead-option-stacked {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  text-align: left;
}

.rx-typeahead-option-title {
  font-weight: 500;
}

.rx-typeahead-option-meta {
  font-size: 0.8rem;
}

.rx-typeahead-empty {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
}

.rx-typeahead-clear {
  margin-left: 0.35rem;
  font-size: inherit;
  vertical-align: baseline;
}

.rx-typeahead-hint {
  margin-top: 0.35rem;
}

.rx-typeahead-samples {
  margin-top: 0.45rem;
}

.rx-typeahead-sample-list {
  margin-top: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.rx-typeahead-sample {
  border: 1px solid var(--rx-border-subtle);
  background: var(--rx-surface-muted);
  color: var(--rx-text-main);
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
  font-size: 0.75rem;
  cursor: pointer;
}

.rx-typeahead-sample:hover {
  background: var(--rx-accent-soft);
}

.rx-typeahead-sample-default {
  border-color: var(--rx-input-focus);
  background: var(--rx-accent-soft);
  font-weight: 600;
}

/* Lease create form refresh */
.rx-lease-layout {
  align-items: start;
}

.rx-lease-form-card {
  max-width: 36rem;
}

@media (min-width: 900px) {
  .rx-lease-layout {
    grid-template-columns: minmax(0, 36rem) minmax(16rem, 1fr);
  }
}

.rx-lease-section {
  border: 1px solid var(--rx-border-subtle);
  border-radius: 12px;
  padding: 0.9rem 0.95rem;
  background: var(--rx-surface-muted);
}

.rx-lease-section + .rx-lease-section {
  margin-top: 0.25rem;
}

.rx-lease-section-title {
  margin: 0 0 0.75rem 0;
  font-size: 0.84rem;
  color: var(--rx-text-main);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.rx-lease-amount-row {
  grid-template-columns: minmax(0, 1fr) 9rem;
}

.rx-form-group-amount .rx-hint {
  margin-bottom: 0;
}

.rx-date-input,
.rx-amount-input {
  background: linear-gradient(180deg, var(--rx-input-bg) 0%, var(--rx-surface) 100%);
}

.rx-date-input::-webkit-calendar-picker-indicator {
  opacity: 0.75;
  cursor: pointer;
}

[data-theme="light"] .rx-date-input::-webkit-calendar-picker-indicator {
  opacity: 0.6;
}

.rx-date-input:focus,
.rx-amount-input:focus {
  box-shadow: 0 0 0 3px var(--rx-accent-soft);
}

.rx-lease-side-card {
  position: sticky;
  top: 5.5rem;
}

@media (max-width: 900px) {
  .rx-lease-form-card {
    max-width: none;
    padding: 0.95rem 0.95rem 1.05rem;
  }

  .rx-lease-side-card {
    position: static;
    top: auto;
    padding: 0.95rem 1rem;
  }

  .rx-lease-section {
    padding: 0.72rem 0.78rem;
    border-radius: 10px;
  }

  .rx-lease-section-title {
    margin-bottom: 0.55rem;
    font-size: 0.8rem;
  }

  .rx-form-actions {
    gap: 0.55rem;
  }

  .rx-form-actions .rx-btn {
    flex: 1 1 0;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .rx-lease-amount-row {
    grid-template-columns: 1fr;
  }

  .rx-lease-form-card .rx-input {
    padding: 0.58rem 0.74rem;
    font-size: 0.9rem;
  }

  .rx-typeahead-list-compact {
    max-height: 10rem;
  }

  .rx-typeahead-option-compact {
    padding: 0.38rem 0.6rem;
    font-size: 0.82rem;
  }
}

.rx-image-thumb-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.rx-image-thumb {
  border: 1px solid var(--rx-border-subtle);
  border-radius: 10px;
  background: var(--rx-surface);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  position: relative;
}

.rx-image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rx-image-thumb-remove {
  position: absolute;
  right: 0.35rem;
  bottom: 0.35rem;
  border: 1px solid var(--rx-border-subtle);
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
  cursor: pointer;
}

.rx-image-thumb-remove:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* ===== PMA dashboard v3 — OpenAI-style fintech (minimal, neutral) ===== */
.rx-dash3 {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.rx-dash3-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.rx-dash3-title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.rx-dash3-sub {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: var(--rx-text-soft);
}

.rx-dash3-head-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Segmented control (period + queue switcher) */
.rx-segmented {
  display: inline-flex;
  padding: 0.2rem;
  gap: 0.15rem;
  border: 1px solid var(--rx-border-subtle);
  border-radius: 10px;
  background: var(--rx-surface-muted);
}

.rx-segmented-item {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--rx-text-soft);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.rx-segmented-item:hover {
  color: var(--rx-text-main);
}

.rx-segmented-item.is-active {
  background: var(--rx-surface);
  color: var(--rx-text-main);
  box-shadow: var(--rx-card-shadow);
}

/* KPI band: flat stat cells */
.rx-stat-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--rx-border-subtle);
  border: 1px solid var(--rx-border-subtle);
  border-radius: var(--rx-radius-lg);
  overflow: hidden;
}

@media (min-width: 820px) {
  .rx-stat-band {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.rx-stat {
  background: var(--rx-surface);
  padding: 1.05rem 1.15rem 1.15rem;
  min-width: 0;
}

.rx-stat-label {
  font-size: 0.74rem;
  color: var(--rx-text-soft);
  margin-bottom: 0.5rem;
}

.rx-stat-value {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.rx-stat-unit {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--rx-text-soft);
  margin-right: 0.3rem;
}

.rx-stat-foot {
  margin-top: 0.5rem;
  font-size: 0.74rem;
  color: var(--rx-text-soft);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

/* Delta chip */
.rx-delta {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.72rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--rx-border-subtle);
}

.rx-delta-up {
  color: var(--rx-metric-good);
  border-color: color-mix(in srgb, var(--rx-metric-good) 35%, transparent);
  background: color-mix(in srgb, var(--rx-metric-good) 10%, transparent);
}

.rx-delta-down {
  color: var(--rx-metric-warn);
  border-color: color-mix(in srgb, var(--rx-metric-warn) 35%, transparent);
  background: color-mix(in srgb, var(--rx-metric-warn) 10%, transparent);
}

.rx-delta-flat {
  color: var(--rx-text-soft);
}

/* Clean list rows (needs-attention, landlords, activity) */
.rx-list {
  display: flex;
  flex-direction: column;
}

.rx-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.25rem;
  border-bottom: 1px solid var(--rx-border-subtle);
}

.rx-list-row:last-child {
  border-bottom: none;
}

.rx-list-main {
  min-width: 0;
  flex: 1;
}

.rx-list-title {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--rx-text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rx-list-meta {
  font-size: 0.76rem;
  color: var(--rx-text-soft);
  margin-top: 0.15rem;
}

.rx-list-amount {
  font-size: 0.88rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rx-list-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  opacity: 0.55;
  transition: opacity 0.15s;
}

.rx-list-row:hover .rx-list-actions,
.rx-list-row:focus-within .rx-list-actions {
  opacity: 1;
}

.rx-list-empty {
  padding: 1.5rem 0.5rem;
  text-align: center;
  color: var(--rx-text-soft);
  font-size: 0.85rem;
}

.rx-list-btn {
  appearance: none;
  border: 1px solid var(--rx-border-subtle);
  background: var(--rx-surface);
  color: var(--rx-text-main);
  font: inherit;
  font-size: 0.76rem;
  padding: 0.28rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}

.rx-list-btn:hover {
  background: var(--rx-accent-soft);
}

.rx-list-btn-inline {
  display: inline;
}

/* Money + content grid */
.rx-dash3-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .rx-dash3-grid-2 {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}

.rx-dash3-card {
  border: 1px solid var(--rx-border-subtle);
  border-radius: var(--rx-radius-lg);
  background: var(--rx-surface);
  padding: 1.1rem 1.2rem 1.2rem;
}

.rx-dash3-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.rx-dash3-card-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.rx-dash3-card-sub {
  margin: 0.15rem 0 0;
  font-size: 0.76rem;
  color: var(--rx-text-soft);
}

.rx-dash3-chart {
  position: relative;
  height: 180px;
}

.rx-dash3-chart-sm {
  height: 150px;
}

.rx-dash3-balance {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.rx-dash3-queue-panels > [hidden] {
  display: none;
}

/* ----- Nav v2: slim header + grouped sidebar ----- */
.rx-sidenav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  padding: 1rem 0.85rem 0.85rem;
  border-bottom: 1px solid var(--rx-border-subtle);
}

.rx-sidenav-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rx-sidenav-brand-name {
  font-size: 0.85rem;
  font-weight: 600;
}

.rx-sidenav-brand-sub {
  font-size: 0.72rem;
  color: var(--rx-text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rx-nav-group {
  margin: 0.1rem 0;
}

.rx-nav-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.5rem 0.85rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--rx-text-soft);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-align: left;
}

.rx-nav-group-toggle:hover {
  background: var(--rx-accent-soft);
  color: var(--rx-text-main);
}

.rx-nav-group-toggle::after {
  content: '';
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.15s;
  flex-shrink: 0;
}

.rx-nav-group.is-open .rx-nav-group-toggle::after {
  transform: rotate(45deg);
}

.rx-nav-sub {
  display: none;
  flex-direction: column;
  gap: 0.05rem;
  padding: 0.15rem 0 0.35rem 0.5rem;
}

.rx-nav-group.is-open .rx-nav-sub {
  display: flex;
}

.rx-nav-sub-link {
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--rx-text-soft);
  text-decoration: none;
  border-radius: 8px;
}

.rx-nav-sub-link:hover {
  color: var(--rx-text-main);
  background: var(--rx-accent-soft);
}

.rx-nav-sub-link-active {
  color: var(--rx-accent);
  background: var(--rx-accent-soft);
}

.rx-profile-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* ----- Modal ----- */
.rx-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.rx-modal-overlay[hidden] {
  display: none !important;
}

.rx-modal {
  width: min(28rem, 100%);
  max-height: min(85vh, 32rem);
  overflow: auto;
  background: var(--rx-surface);
  border: 1px solid var(--rx-border-subtle);
  border-radius: var(--rx-radius-lg);
  box-shadow: var(--rx-card-shadow);
  padding: 1.25rem;
}

.rx-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.rx-modal-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.rx-modal-close {
  border: none;
  background: var(--rx-surface-muted);
  border-radius: 8px;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  color: var(--rx-text-soft);
  font-size: 1.1rem;
  line-height: 1;
}

.rx-modal-meta {
  font-size: 0.78rem;
  color: var(--rx-text-soft);
  margin-bottom: 0.75rem;
}

.rx-modal-body {
  font-size: 0.9rem;
  line-height: 1.55;
  white-space: pre-wrap;
  margin-bottom: 1rem;
}

.rx-modal-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ----- Reports workspace ----- */
.rx-reports-workspace {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 1280px;
}

.rx-reports-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rx-border-subtle);
}

.rx-reports-topbar-title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.rx-reports-topbar-sub {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--rx-text-soft);
}

.rx-reports-topbar-back {
  color: var(--rx-text-soft);
  text-decoration: none;
}

.rx-reports-topbar-back:hover {
  color: var(--rx-accent);
}

.rx-reports-topbar-sep {
  margin: 0 0.2rem;
  opacity: 0.55;
}

.rx-reports-topbar-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rx-reports-period-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--rx-border-subtle);
  border-radius: var(--rx-radius-lg);
  background: var(--rx-surface);
}

.rx-reports-period-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  flex: 1 1 auto;
}

.rx-reports-period-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 9.5rem;
}

.rx-reports-period-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rx-text-soft);
}

.rx-reports-hub-intro {
  margin: 0;
  font-size: 0.88rem;
  color: var(--rx-text-soft);
  line-height: 1.5;
  max-width: 42rem;
}

.rx-reports-hub {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.rx-reports-hub-section {
  margin: 0;
}

.rx-reports-hub-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rx-text-soft);
  margin: 0 0 0.75rem;
}

.rx-reports-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr));
  gap: 0.75rem;
}

.rx-reports-card {
  display: flex;
  flex-direction: column;
  min-height: 8.5rem;
  padding: 1rem 1.1rem 1.05rem;
  border: 1px solid var(--rx-border-subtle);
  border-radius: var(--rx-radius-lg);
  background: var(--rx-surface);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.rx-reports-card:hover {
  border-color: var(--rx-accent);
  box-shadow: var(--rx-card-shadow);
}

.rx-reports-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.rx-reports-card-desc {
  font-size: 0.82rem;
  color: var(--rx-text-soft);
  margin: 0 0 auto;
  line-height: 1.45;
  flex: 1 1 auto;
}

.rx-reports-card-cta {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--rx-accent);
}

.rx-reports-card-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--rx-border-subtle);
  color: var(--rx-text-soft);
  margin-bottom: 0.5rem;
}

.rx-reports-layout {
  display: grid;
  grid-template-columns: 14.5rem minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.rx-reports-rail {
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 0.85rem;
  border: 1px solid var(--rx-border-subtle);
  border-radius: var(--rx-radius-lg);
  background: var(--rx-surface);
}

.rx-reports-rail-group + .rx-reports-rail-group {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rx-border-subtle);
}

.rx-reports-rail-heading {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rx-text-soft);
}

.rx-reports-rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.rx-reports-rail-link {
  display: block;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--rx-text-soft);
  text-decoration: none;
  line-height: 1.35;
  transition: background 0.12s, color 0.12s;
}

.rx-reports-rail-link:hover {
  color: var(--rx-text-main);
  background: var(--rx-surface-muted);
}

.rx-reports-rail-link.is-active {
  color: var(--rx-text-main);
  background: var(--rx-surface-muted);
  box-shadow: inset 2px 0 0 var(--rx-accent);
}

.rx-reports-canvas {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rx-reports-canvas-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rx-border-subtle);
}

.rx-reports-canvas-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.rx-reports-canvas-desc {
  margin: 0.35rem 0 0;
  font-size: 0.86rem;
  color: var(--rx-text-soft);
  line-height: 1.45;
  max-width: 36rem;
}

.rx-reports-canvas-period {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  color: var(--rx-text-soft);
}

.rx-reports-canvas-currency {
  color: var(--rx-text-main);
  font-weight: 500;
}

.rx-reports-canvas-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.rx-reports-filters {
  border: 1px solid var(--rx-border-subtle);
  border-radius: var(--rx-radius-lg);
  background: var(--rx-surface);
  padding: 0;
}

.rx-reports-filters > summary {
  cursor: pointer;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  list-style: none;
}

.rx-reports-filters > summary::-webkit-details-marker {
  display: none;
}

.rx-reports-filters[open] > summary {
  border-bottom: 1px solid var(--rx-border-subtle);
}

.rx-reports-filters-form {
  padding: 0.85rem 1rem 1rem;
}

.rx-reports-filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: 0.75rem;
}

.rx-reports-kpis {
  margin: 0;
}

.rx-reports-document {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.rx-reports-document .rx-report-sheet {
  margin-bottom: 0;
}

.rx-report-sheet-subsection {
  border-top: 1px solid var(--rx-border-subtle);
  padding: 1rem 1.25rem 1.15rem;
}

.rx-report-sheet-subsection-title {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.rx-reports-document .rx-report-footnote {
  margin: 0;
}

/* Collections by channel report */
.rx-channel-mix-report .rx-channel-mix-visual {
  padding: 1rem 1.25rem 0.25rem;
  border-bottom: 1px solid var(--rx-border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.rx-channel-mix-bar-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.rx-channel-mix-bar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.rx-channel-mix-bar-meta {
  font-size: 0.78rem;
  color: var(--rx-text-soft);
  font-variant-numeric: tabular-nums;
}

.rx-channel-mix-bar-track {
  height: 0.45rem;
  border-radius: 999px;
  background: var(--rx-surface-muted);
  overflow: hidden;
}

.rx-channel-mix-bar-fill {
  height: 100%;
  border-radius: 999px;
  min-width: 2px;
  transition: width 0.25s ease;
}

.rx-channel-bar-cash,
.rx-channel-tag-cash {
  --rx-channel-accent: #6b8f71;
}

.rx-channel-bar-momo,
.rx-channel-tag-momo {
  --rx-channel-accent: #3d8fd4;
}

.rx-channel-bar-wallet,
.rx-channel-tag-wallet {
  --rx-channel-accent: #9b7ed9;
}

.rx-channel-bar-ussd,
.rx-channel-tag-ussd {
  --rx-channel-accent: #c9a227;
}

.rx-channel-bar-other,
.rx-channel-tag-other {
  --rx-channel-accent: var(--rx-text-soft);
}

.rx-channel-mix-bar-fill.rx-channel-bar-cash,
.rx-channel-mix-bar-fill.rx-channel-bar-momo,
.rx-channel-mix-bar-fill.rx-channel-bar-wallet,
.rx-channel-mix-bar-fill.rx-channel-bar-ussd,
.rx-channel-mix-bar-fill.rx-channel-bar-other {
  background: var(--rx-channel-accent, var(--rx-accent));
}

.rx-channel-tag.rx-channel-tag {
  font-size: 0.72rem;
  font-weight: 600;
  border-color: transparent;
  background: color-mix(in srgb, var(--rx-channel-accent, var(--rx-accent)) 14%, var(--rx-surface));
  color: var(--rx-text-main);
}

.rx-channel-share-cell {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  min-width: 5.5rem;
}

.rx-channel-share-mini {
  display: inline-block;
  height: 0.35rem;
  max-width: 3.5rem;
  border-radius: 999px;
  background: var(--rx-channel-accent, var(--rx-accent));
  opacity: 0.85;
}

@media (max-width: 960px) {
  .rx-reports-layout {
    grid-template-columns: 1fr;
  }

  .rx-reports-rail {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .rx-reports-rail-group {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }

  .rx-reports-rail-group + .rx-reports-rail-group {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
  }

  .rx-reports-rail-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .rx-reports-rail-link.is-active {
    box-shadow: none;
    border: 1px solid var(--rx-accent);
  }
}

@media (max-width: 640px) {
  .rx-reports-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .rx-reports-period-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .rx-reports-period-fields {
    flex-direction: column;
  }

  .rx-reports-period-field {
    min-width: 0;
    width: 100%;
  }

  .rx-reports-canvas-head {
    flex-direction: column;
  }

  .rx-reports-hub-grid {
    grid-template-columns: 1fr;
  }
}

.rx-notification-item-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.rx-notification-item-btn:hover .rx-notification-item-head strong {
  color: var(--rx-accent);
}

.rx-profile-photo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.rx-profile-photo-preview {
  flex-shrink: 0;
}

.rx-profile-photo-large {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--rx-border-subtle);
}

.rx-profile-photo-fallback {
  width: 5rem;
  height: 5rem;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rx-capability-matrix {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.rx-capability-group-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--rx-text-secondary);
}

.rx-capability-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rx-checkbox-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--rx-border-subtle);
  border-radius: var(--rx-radius-md);
  cursor: pointer;
}

.rx-checkbox-row input {
  margin-top: 0.2rem;
}

.rx-checkbox-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.rx-checkbox-label {
  font-weight: 500;
}

.rx-checkbox-desc,
.rx-checkbox-pages {
  font-size: 0.8125rem;
}

.rx-table-cell-wrap {
  max-width: 16rem;
  white-space: normal;
}

.rx-table-cell-sub {
  display: block;
  font-size: 0.8125rem;
  margin-top: 0.15rem;
}

.rx-form-static {
  margin: 0;
  padding: 0.5rem 0;
}

/* Custom role form — wide, compact */
.rx-role-form-layout {
  width: 100%;
  max-width: none;
}

.rx-role-form-card {
  max-width: none;
  width: 100%;
}

.rx-role-form-head {
  margin-bottom: 0.75rem;
}

.rx-role-form-desc {
  margin-bottom: 0;
}

.rx-role-form-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .rx-role-form-top {
    grid-template-columns: minmax(10rem, 1fr) minmax(14rem, 1.4fr) minmax(10rem, 0.9fr);
  }
}

@media (min-width: 960px) {
  .rx-role-form-top {
    grid-template-columns: minmax(12rem, 1fr) minmax(16rem, 1.6fr) minmax(11rem, 0.85fr);
  }
}

.rx-role-form .rx-form-group {
  margin-bottom: 0;
}

.rx-role-perms-section {
  margin-bottom: 1rem;
}

.rx-role-perms-section > .rx-label {
  margin-bottom: 0.5rem;
}

/* Granular permission matrix (view / create / edit / delete) */
.rx-permission-matrix {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.rx-permission-matrix-group-title {
  font-size: 0.8125rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--rx-text-secondary);
}

.rx-perm-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--rx-border-subtle);
  border-radius: var(--rx-radius-md);
}

.rx-perm-table {
  width: 100%;
  min-width: 28rem;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.rx-perm-table thead {
  background: var(--rx-surface-muted, rgba(0, 0, 0, 0.03));
}

.rx-perm-table th,
.rx-perm-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--rx-border-subtle);
  text-align: center;
  vertical-align: middle;
}

.rx-perm-table-resource {
  text-align: left;
  font-weight: 500;
  min-width: 9rem;
}

.rx-perm-table-action {
  width: 4.25rem;
}

.rx-perm-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  cursor: pointer;
}

.rx-perm-check input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  cursor: pointer;
}

.rx-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.rx-capability-matrix--compact {
  gap: 0.75rem;
  margin-top: 0;
}

.rx-capability-matrix--compact .rx-capability-group-title {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.rx-capability-matrix--compact .rx-capability-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
}

@media (min-width: 720px) {
  .rx-capability-matrix--compact .rx-capability-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .rx-capability-matrix--compact .rx-capability-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.rx-checkbox-row--compact {
  padding: 0.45rem 0.6rem;
  gap: 0.5rem;
  align-items: center;
  margin: 0;
}

.rx-checkbox-row--compact input {
  margin-top: 0;
  flex-shrink: 0;
}

.rx-checkbox-row--compact .rx-checkbox-body {
  gap: 0.1rem;
  min-width: 0;
}

.rx-checkbox-row--compact .rx-checkbox-label {
  font-size: 0.875rem;
  line-height: 1.25;
}

.rx-checkbox-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.5rem;
  align-items: baseline;
}

.rx-checkbox-row--compact .rx-checkbox-desc,
.rx-checkbox-row--compact .rx-checkbox-pages {
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--rx-text-soft);
}

.rx-checkbox-row--compact .rx-checkbox-pages::before {
  content: "·";
  margin-right: 0.35rem;
  color: var(--rx-text-soft);
}

/* Public landing page (/) */
.rx-landing-body {
  min-height: 100vh;
  background: var(--rx-body-bg);
  color: var(--rx-text-main);
}

.rx-landing-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
}

.rx-landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rx-border-subtle);
}

.rx-landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.rx-landing-brand-name {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.rx-landing-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.rx-landing-main {
  flex: 1;
  padding: 2.5rem 0 3rem;
}

.rx-landing-hero {
  max-width: 40rem;
  margin-bottom: 3rem;
}

.rx-landing-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rx-accent);
  margin: 0 0 0.75rem;
}

.rx-landing-headline {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.rx-landing-lead {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--rx-text-soft);
  margin: 0 0 1.5rem;
}

.rx-landing-cta {
  margin-bottom: 0.75rem;
}

.rx-landing-cta-hint {
  font-size: 0.875rem;
  color: var(--rx-text-soft);
  margin: 0;
  max-width: 32rem;
}

.rx-landing-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .rx-landing-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.rx-landing-card {
  padding: 1.25rem 1.35rem;
  border-radius: var(--rx-radius-lg, 0.75rem);
  border: 1px solid var(--rx-border-subtle);
  background: var(--rx-surface-elevated, var(--rx-card-bg));
}

.rx-landing-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.rx-landing-card-text {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--rx-text-soft);
  margin: 0;
}

.rx-landing-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rx-border-subtle);
  font-size: 0.875rem;
  color: var(--rx-text-soft);
}

.rx-landing-body::before,
.rx-landing-body::after {
  content: "";
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  z-index: -1;
  filter: blur(60px);
  opacity: 0.55;
}

.rx-landing-body::before {
  width: 32rem;
  height: 32rem;
  top: -10rem;
  left: -8rem;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.35) 0%, transparent 70%);
}

.rx-landing-body::after {
  width: 28rem;
  height: 28rem;
  right: -6rem;
  bottom: 10%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.28) 0%, transparent 70%);
}

