/* Shared dashboard typography, matching RapiRupa. Font license: fonts/manrope-OFL.txt. */
@font-face {
  font-family: Manrope;
  src: url('/assets/fonts/manrope-variable.ttf') format('truetype');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

body {
  font-family: Manrope, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
}
button, input, select, textarea { font-family: inherit; }
input, select, textarea { font-weight: 400; line-height: 1.5; }
h1, h2, h3, h4 { font-family: inherit; font-weight: 600; line-height: 1.3; letter-spacing: -.035em; }
b, strong { font-weight: 600; }
.topbar h2 { font-size: 28px; font-weight: 600; letter-spacing: -.045em; }
.work-welcome h1 { font-weight: 700; letter-spacing: -.045em; line-height: 1.25; }
.work-section-title h2 { font-size: 22px; font-weight: 600; }
.work-record h3, .work-member h3, .work-empty h3 { font-size: 18px; font-weight: 600; }
.modal h2, .auth-card h2 { font-weight: 600; }
.side-brand b, .brand b { font-weight: 600; letter-spacing: -.025em; }
.side-brand small, .brand small { font-weight: 400; }

/* Navigation and actions stay clear without competing with the headings. */
.sidebar .nav, .logout { font-size: 14px; font-weight: 500; line-height: 1.5; }
.sidebar .nav.active { font-weight: 600; }
.sidebar summary, .finance-tabs button, .tab, .profile-menu button,
.primary, .secondary, .work-light, .mini-link, .favorite-chip,
.analytics-toggle button { font-weight: 600; }
.primary, .secondary, .work-light { font-size: 14px; line-height: 1.5; }
.finance-tabs button { font-weight: 500; }
.finance-tabs button.active { font-weight: 600; }
.bottom-nav small { font-size: 11px; font-weight: 500; line-height: 1.5; }
.bottom-nav .active small { font-weight: 600; }
.user-badge b { font-weight: 600; font-size: 14px; }
.user-badge small { font-weight: 400; }

/* Forms, secondary labels, and running text. */
.form label, .filter-grid label, .analytics-filter-grid label,
.revenue-filters label { font-size: 12px; font-weight: 500; line-height: 1.5; }
.form label input, .form label select, .form label textarea,
.filter-grid input, .filter-grid select,
.analytics-filter-grid input, .analytics-filter-grid select { font-weight: 400; }
.work-sharing legend { font-weight: 600; }
.work-kicker, .eyebrow, .kpi-label, .wallet-hero-eyebrow,
.wallet-total-wealth small, .analytics-kpi small, .wallet-flow-row small {
  font-weight: 500;
  font-size: 11px;
}
.work-kicker, .eyebrow, .wallet-hero-eyebrow { letter-spacing: .12em; }
.work-tag, .pill, .wallet-owner-pill, .analytics-pill, .analytics-role,
.dash-trend, .analytics-active-period, .analytics-legend,
.month-inline, .closed-banner { font-weight: 500; }
.work-record p, .work-toolbar p, .work-access-intro p { font-weight: 400; font-size: 14px; line-height: 1.7; }
.work-welcome p { font-weight: 400; line-height: 1.7; }
.work-stat small, .work-record-foot, .work-hint, .work-form-note,
.work-visibility { font-weight: 400; }
.work-note-body { font-weight: 400; line-height: 1.8; }
th { font-weight: 600; }
td { font-weight: 400; }

/* Finance and sales totals use the same semibold scale as the work cards. */
.work-stat b, .revenue-total strong, .revenue-count strong,
.revenue-business-summary b, .revenue-sale-main b, .revenue-sale-amount,
.revenue-detail-amount, .money, .wallet-balance, .wallet-hero-balance,
.wallet-total-wealth strong, .analytics-kpi strong, .wallet-flow-row b {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.035em;
  line-height: 1.3;
}
.wallet-hero-name { font-weight: 600; font-size: 14px; }
.wallet-hero h2 { font-weight: 600; letter-spacing: -.04em; }
.user-badge>span, .user-avatar, .profile-avatar-large,
.notification-badge, .calendar-cell span, .security-icon,
.security-part-top span, .health-check>span { font-weight: 600; }
.revenue-sale-amount small { font-weight: 400; letter-spacing: normal; }

@media (max-width: 700px) {
  body { font-size: 14px; }
  .topbar h2 { font-size: 24px; }
  .work-welcome h1 { font-size: 29px; line-height: 1.3; }
  .work-section-title h2 { font-size: 20px; }
  .work-welcome p, .work-record p { font-size: 14px; }
  .work-welcome-actions button, .revenue-actions button { font-size: 13px; }
  .finance-tabs button { font-size: 12px; }
  .form input, .form select, .form textarea, .work-search input,
  .revenue-filters input, .revenue-filters select,
  .analytics-filter-grid input, .analytics-filter-grid select,
  .filter-grid input, .filter-grid select,
  .modal input, .modal select, .modal textarea { font-size: 16px; }
}
