:root {
  --navy: #102b45;
  --navy-2: #183d5b;
  --ink: #122033;
  --muted: #5b6b7c;
  --faint: #8a97a6;
  --line: #e4ebee;
  --page: #f4f7f8;
  --card: #ffffff;
  --blue: #187657;
  --blue-soft: #e8f4ef;
  --green: #17824a;
  --green-soft: #e8f6ee;
  --red: #c63b46;
  --red-soft: #fdecee;
  --amber: #a56b00;
  --amber-soft: #fff4d8;
  --shadow: 0 1px 2px rgb(16 43 69 / 0.03), 0 12px 28px rgb(16 43 69 / 0.045);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, sans-serif;
}

button,
input {
  font: inherit;
}

textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: #d5e7f5;
  color: var(--navy);
}

main {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgb(29 111 184 / 0.08), transparent 28%),
    var(--page);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  display: flex;
  width: 260px;
  flex-direction: column;
  background: linear-gradient(180deg, #0d2b4e 0%, var(--navy) 100%);
  color: #dbe7f2;
  transform: translateX(-100%);
  transition: transform 0.22s ease;
}

.sidebar.open {
  transform: translateX(0);
}

.brand-row {
  display: flex;
  height: 84px;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #1d6fb8;
  color: #fff;
  box-shadow: 0 8px 16px rgb(0 0 0 / 0.18);
}

.brand-name {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #fff;
}

.brand-sub {
  margin: 2px 0 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #9bb4cb;
}

.sidebar .icon-btn {
  color: #c5d5e4;
}

.sidebar-nav-wrap {
  padding: 8px 14px 0;
}

.sidebar-nav-group { margin: 0 0 14px; }
.sidebar-nav-group h2 { margin: 14px 12px 6px; color: #7f96ab; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.sidebar-nav-group nav { gap: 3px; }
.sidebar-nav-group .nav-item { height: 40px; font-size: 12px; }
.sidebar-nav-group .nav-item span { gap: 10px; }

.eyebrow {
  margin: 0 0 10px;
  padding: 0 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7f96ab;
}

nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  height: 44px;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 12px;
  background: transparent;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: #c5d5e4;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-item span {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-item:hover {
  background: rgb(255 255 255 / 0.06);
  color: #fff;
}

.nav-item.active {
  background: rgb(255 255 255 / 0.12);
  color: #fff;
}

.nav-count {
  border-radius: 999px;
  background: var(--amber-soft);
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--amber);
}

.nav-count[hidden] {
  display: none;
}

.investment-notice {
  margin: 18px 0;
  border: 1px solid #ead9ad;
  border-radius: 14px;
  background: #fff9e9;
  padding: 16px 18px;
  color: #644b17;
  line-height: 1.65;
}

.investment-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 285px), 1fr));
  gap: 16px;
}

.investment-summary {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.investment-progress {
  width: 100%;
  height: 10px;
  margin: 8px 0;
  accent-color: var(--green);
}

.investment-plan-card,
.investment-contract-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  padding: 20px;
}

.investment-plan-card h3,
.investment-contract-card h3 {
  margin: 0 0 8px;
  color: var(--navy);
}

.investment-plan-card > p:not(.page-kicker),
.investment-contract-card > p {
  line-height: 1.6;
}

.investment-plan-rate {
  display: block;
  margin: 14px 0 6px;
  color: var(--green);
  font-size: 18px;
}

.investment-request-form,
.investment-plan-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.investment-plan-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.investment-plan-form label,
.investment-request-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.investment-plan-form input,
.investment-plan-form select,
.investment-plan-form textarea,
.investment-request-form input,
.investment-request-form select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cfd9dc;
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
  color: var(--ink);
}

.investment-plan-form textarea {
  min-height: 100px;
  resize: vertical;
}

.investment-plan-form label:nth-of-type(2),
.investment-plan-form label:nth-of-type(11),
.investment-plan-form label:nth-of-type(12) {
  grid-column: 1 / -1;
}

.investment-checkbox {
  display: flex !important;
  grid-column: 1 / -1;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px !important;
  line-height: 1.55;
}

.investment-checkbox input {
  width: 18px;
  min-height: 18px;
  margin: 2px 0 0;
}

.investment-request-form details,
.investment-action {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  line-height: 1.55;
}

.investment-request-form summary,
.investment-action summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 700;
}

.investment-list {
  display: grid;
  gap: 14px;
}

.investment-contract-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.investment-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.investment-facts > div {
  display: grid;
  gap: 4px;
  border-radius: 10px;
  background: #f4f8f7;
  padding: 12px;
}

.investment-facts strong {
  overflow-wrap: anywhere;
  color: var(--navy);
}

.investment-facts span,
.investment-notification small {
  color: var(--muted);
  font-size: 12px;
}

.investment-action {
  margin-top: 14px;
}

.investment-action .investment-request-form {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.investment-notifications {
  display: grid;
  gap: 10px;
}

.investment-notification {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}

.investment-notification.unread {
  border-color: #a8cfbd;
  background: #f1faf5;
  cursor: pointer;
}

.investment-notification p {
  margin: 5px 0;
}

.investment-admin-actions {
  min-width: 220px;
}

.investment-admin-actions > * {
  display: block;
  margin: 5px 0;
}

.contribution-schedule-list,
.contribution-admin-roster {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.contribution-schedule-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
}

.contribution-payment-form,
.contribution-admin-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.contribution-payment-form input,
.contribution-payment-form select,
#adminContributionGroups select,
#adminContributionGroups input,
#adminContributionDisputes select,
#adminContributionDisputes textarea {
  min-height: 40px;
  border: 1px solid #cfd9dc;
  border-radius: 9px;
  background: white;
  padding: 8px 10px;
}

.contribution-order-editor li {
  margin: 8px 0;
}

.contribution-order-editor button {
  margin-left: 8px;
}

.notification-center { position: relative; }
.notification-bell { position: relative; display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 13px; border: 1px solid var(--border, #d9e2ec); border-radius: 12px; background: #fff; color: var(--ink, #18334c); font: inherit; font-weight: 700; cursor: pointer; }
.notification-bell:hover, .notification-bell[aria-expanded="true"] { background: #f3f7fb; }
.notification-count { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: #bd3c37; color: #fff; font-size: 11px; line-height: 1; }
.notification-panel { position: absolute; z-index: 100; top: calc(100% + 12px); right: 0; width: min(390px, calc(100vw - 32px)); max-height: min(600px, calc(100vh - 110px)); overflow: hidden; border: 1px solid #dce5ed; border-radius: 16px; background: #fff; box-shadow: 0 18px 50px rgba(18, 42, 64, .2); }
.notification-panel[hidden] { display: none; }
.notification-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; border-bottom: 1px solid #e9eef3; }
.notification-panel-head strong, .notification-panel-head small { display: block; }
.notification-panel-head strong { color: #18334c; font-size: 15px; }
.notification-panel-head small { margin-top: 3px; color: #6d7d8c; font-size: 12px; }
.notification-mark-all { padding: 5px 0; border: 0; background: transparent; color: #1b5f91; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.notification-mark-all[hidden] { display: none; }
.notification-list { max-height: min(520px, calc(100vh - 180px)); overflow-y: auto; }
.notification-empty, .notification-error { margin: 0; padding: 25px 18px; color: #697988; font-size: 13px; }
.notification-error { color: #a3312e; }
.notification-entry { border-bottom: 1px solid #edf1f4; }
.notification-entry.unread { background: #f4f8fc; }
.notification-entry-content { display: grid; gap: 5px; padding: 13px 18px; color: inherit; text-decoration: none; }
.notification-entry-content[href]:hover { background: #edf4fa; }
.notification-category { color: #27719d; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.notification-entry-content strong { color: #17344c; font-size: 13px; }
.notification-message { color: #586a79; font-size: 12px; line-height: 1.5; }
.notification-time { color: #81909c; font-size: 10px; }
@media (max-width: 600px) {
  .top-actions { gap: 8px; }
  .notification-bell { width: 42px; height: 42px; justify-content: center; padding: 0; }
  .notification-bell > span:not(.notification-count) { display: none; }
  .notification-count { position: absolute; top: -6px; right: -7px; }
}

.investment-admin-actions span {
  max-width: 280px;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.investment-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(170px, 260px);
  gap: 12px;
  margin: 14px 0;
}

.investment-filters label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.investment-filters input,
.investment-filters select {
  min-height: 42px;
  border: 1px solid #cfd9dc;
  border-radius: 10px;
  background: #fff;
  padding: 8px 10px;
}

@media (max-width: 640px) {
  .investment-plan-form { grid-template-columns: 1fr; }
  .investment-plan-form label { grid-column: 1 / -1; }
  .investment-contract-head { align-items: flex-start; }
  .investment-filters { grid-template-columns: 1fr; }
}

.sidebar-bottom {
  margin-top: auto;
  padding: 0 14px 20px;
}

.help-card {
  margin-bottom: 12px;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 14px;
  background: rgb(255 255 255 / 0.06);
  padding: 16px;
}

.help-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.help-copy {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #b4c6d6;
}

.text-link {
  margin-top: 12px;
  border: 0;
  background: none;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  color: #7ec2f2;
}

.text-link svg {
  margin-left: 4px;
  display: inline;
  vertical-align: -2px;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  border: 0;
  background: rgb(11 37 69 / 0.35);
}

.backdrop[hidden] {
  display: none;
}

.content {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  height: 84px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgb(230 235 241 / 0.9);
  background: rgb(255 255 255 / 0.82);
  padding: 0 20px;
  backdrop-filter: blur(16px);
}

.welcome {
  display: flex;
  align-items: center;
  gap: 12px;
}

.date-line {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.topbar h1 {
  margin: 3px 0 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.top-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  display: flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
}

.icon-btn:hover {
  border-color: var(--line);
  background: #fff;
  color: var(--navy);
}

.notify-btn {
  position: relative;
  background: #fff;
  border-color: var(--line);
}

.dot {
  position: absolute;
  top: 10px;
  right: 11px;
  width: 7px;
  height: 7px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--red);
}

.notification {
  display: none;
  position: absolute;
  right: 0;
  top: 54px;
  width: 300px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 16px 18px;
  box-shadow: var(--shadow);
}

.notification.open {
  display: block;
}

.notification-title {
  margin: 0;
  font-weight: 700;
  color: var(--navy);
}

.notification p:last-child {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.divider {
  display: none;
  width: 1px;
  height: 28px;
  background: var(--line);
}

.profile-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 4px 10px 4px 4px;
  text-align: left;
  color: inherit;
}

.avatar {
  display: flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--blue-soft);
  font-size: 11px;
  font-weight: 800;
  color: var(--navy);
}

.profile {
  display: none;
}

.profile-name {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.profile-role {
  margin: 0;
  font-size: 11px;
  color: var(--faint);
}

.chevron {
  color: var(--faint);
}

.page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 20px 40px;
}

.page-heading {
  display: flex;
  margin-bottom: 24px;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.status {
  display: inline-flex;
  margin-bottom: 10px;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: var(--green-soft);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
}

.status span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgb(23 130 74 / 0.15);
}

.page-heading h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--navy);
}

.page-heading p,
.card-heading p {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.card-heading p {
  font-size: 13px;
}

.primary-btn {
  display: flex;
  height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  background: var(--navy);
  padding: 0 18px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 10px 20px rgb(11 37 69 / 0.18);
  transition: transform 0.15s ease, background 0.15s ease;
}

.primary-btn:hover {
  background: var(--navy-2);
  transform: translateY(-1px);
}

.metrics {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.metric,
.card {
  border: 1px solid rgb(230 235 241 / 0.9);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.metric {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.metric:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgb(11 37 69 / 0.08);
}

.metric-label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.metric-value {
  margin: 14px 0 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--navy);
}

.metric-note {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.metric-note strong {
  font-weight: 800;
  color: var(--green);
}

.metric-icon {
  display: flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
}

.metric-icon.red {
  background: var(--red-soft);
  color: var(--red);
}

.main-grid {
  display: grid;
  margin-top: 20px;
  gap: 20px;
}

.card {
  padding: 22px;
}

.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.card-heading h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
}

.ghost-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.ghost-btn:hover {
  border-color: #cdd7e2;
  color: var(--navy);
}

.chart {
  display: flex;
  margin-top: 24px;
  align-items: flex-end;
  gap: 12px;
}

.bar {
  display: flex;
  flex: 1;
  min-width: 0;
  height: 176px;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.track {
  display: flex;
  width: 100%;
  max-width: 42px;
  height: 100%;
  align-items: flex-end;
  border-radius: 999px;
  background: #f1f5f9;
  overflow: hidden;
}

.bar i {
  display: block;
  height: var(--height);
  width: 100%;
  min-height: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #8ebfe0, #5a9cc9);
}

.bar span {
  font-size: 11px;
  font-weight: 600;
  color: var(--faint);
}

.bar.featured i {
  background: linear-gradient(180deg, #2b6aa3, var(--navy));
}

.legend {
  display: flex;
  flex-wrap: wrap;
  margin-top: 18px;
  align-items: center;
  gap: 8px 22px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 12px;
  color: var(--muted);
}

.legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 999px;
}

.legend .navy {
  background: var(--navy);
}

.legend .blue {
  background: #8ebfe0;
}

.pending-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at top right, rgb(29 111 184 / 0.45), transparent 42%),
    linear-gradient(180deg, #13345c, var(--navy));
  padding: 24px;
  color: #fff;
  box-shadow: 0 16px 32px rgb(11 37 69 / 0.2);
}

.pending-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.pending-label {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: rgb(255 255 255 / 0.72);
}

.pending-value {
  margin: 14px 0 0;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.pending-note {
  margin: 8px 0 0;
  font-size: 13px;
  color: rgb(255 255 255 / 0.62);
}

.pending-icon {
  display: flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgb(255 255 255 / 0.12);
  color: #ffd36a;
}

.pending-footer {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid rgb(255 255 255 / 0.12);
}

.pending-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgb(255 255 255 / 0.65);
}

.today {
  font-weight: 700;
  color: #ffd36a;
}

.white-btn {
  display: flex;
  height: 42px;
  width: 100%;
  margin-top: 16px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

.white-btn:hover {
  background: #eef5fb;
}

.white-btn:disabled {
  opacity: 0.8;
  cursor: default;
}

.repayments {
  margin-top: 20px;
  padding: 0;
  overflow: hidden;
}

.repayments-head {
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 22px;
}

.tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search {
  position: relative;
  flex: 1;
}

.search svg {
  position: absolute;
  top: 11px;
  left: 12px;
  color: var(--faint);
}

.search input {
  height: 40px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
  padding: 0 12px 0 38px;
  font-size: 13px;
  outline: none;
}

.search input::placeholder {
  color: var(--faint);
}

.search input:focus {
  border-color: #9fc3e0;
  background: #fff;
  box-shadow: 0 0 0 4px rgb(29 111 184 / 0.12);
}

.filter-btn {
  display: none;
  height: 40px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  text-align: left;
}

th {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--faint);
}

th:first-child,
td:first-child {
  padding-left: 24px;
}

th:last-child,
td:last-child {
  padding-right: 24px;
}

td {
  padding: 16px;
  border-bottom: 1px solid #f0f3f7;
  font-size: 13px;
  color: var(--muted);
}

tr:last-child td {
  border-bottom: 0;
}

tr:hover {
  background: #f8fbfe;
}

.borrower {
  display: flex;
  align-items: center;
  gap: 12px;
}

.person {
  display: flex;
  width: 36px;
  height: 36px;
  flex: none;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--blue-soft);
  font-size: 11px;
  font-weight: 800;
  color: var(--blue);
}

.borrower-name {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.loan-id {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--faint);
}

.amount {
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
}

.badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
}

.success {
  background: var(--green-soft);
  color: var(--green);
}

.warning {
  background: var(--amber-soft);
  color: var(--amber);
}

.secondary-btn {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0 14px;
  color: var(--navy);
  font-weight: 700;
}

.secondary-btn:hover {
  border-color: #b9c9d8;
  background: #f8fbfe;
}

.secondary-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.agent-route-card,
.collection-entry {
  display: grid;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 16px;
}

.agent-route-card {
  grid-template-columns: minmax(180px, 1.4fr) repeat(2, minmax(130px, 1fr)) auto;
}

.agent-route-customer,
.agent-route-amount {
  display: grid;
  gap: 5px;
}

.agent-route-customer strong,
.agent-route-amount strong {
  color: var(--navy);
  font-size: 13px;
}

.agent-route-customer span,
.agent-route-amount span {
  color: var(--muted);
  font-size: 12px;
}

.collection-form {
  max-width: 900px;
}

.collection-entry {
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 0.55fr) auto;
}

.remove-collection-row {
  min-height: 42px;
  align-self: end;
  border: 1px solid #f0c6ca;
  border-radius: 10px;
  background: #fff;
  padding: 0 12px;
  color: var(--red);
  font-weight: 700;
}

.collection-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 12px;
  background: var(--blue-soft);
  padding: 16px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
}

.collection-total strong {
  font-size: 20px;
}

.collection-form > .primary-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.admin-collection-card {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 20px;
}

.admin-collection-heading,
.admin-collection-footer,
.admin-collection-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-collection-heading h3 {
  margin: 0;
  color: var(--navy);
  font-size: 16px;
}

.admin-collection-heading .metric-note,
.admin-collection-footer .metric-note {
  margin: 5px 0 0;
}

.admin-collection-items {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.admin-collection-item > div {
  display: grid;
  gap: 4px;
}

.admin-collection-item strong {
  color: var(--navy);
  font-size: 13px;
}

.admin-collection-item span {
  color: var(--muted);
  font-size: 12px;
}

.admin-collection-footer .primary-btn {
  flex: none;
}

.loan-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 190px;
}

.loan-admin-actions .secondary-btn {
  min-height: 34px;
  padding: 0 9px;
  font-size: 11px;
}

.admin-fine-form {
  max-width: 760px;
  margin-bottom: 20px;
}

.admin-fine-form h2,
.admin-fine-form p {
  margin-top: 0;
}

.application-review-request {
  display: grid;
  gap: 10px;
}

.application-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 220px) auto;
  align-items: end;
  gap: 12px;
  margin: 18px 0;
}

.application-filters label { display: grid; gap: 7px; }
.admin-list-search { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 9px; margin: 14px 0; }
.admin-list-search label { display: grid; flex: 1 1 280px; gap: 6px; }
.admin-list-search input { width: 100%; min-height: 42px; border: 1px solid #d8e5db; border-radius: 10px; background: #fbfdfb; padding: 0 12px; color: #263c2e; font: inherit; font-size: 12px; }
.admin-list-search button { min-height: 40px; }
.admin-list-search > span { flex: 1 1 100%; }
.application-status-summary { display: grid; grid-template-columns: repeat(5, minmax(110px, 1fr)); gap: 10px; margin: 0 0 18px; }
.application-status-filter { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 54px; padding: 10px 12px; border: 1px solid #d8e5db; border-radius: 10px; background: #fbfdfb; color: var(--navy); font: inherit; text-align: left; cursor: pointer; }
.application-status-filter strong { font-size: 18px; }
.application-status-filter[aria-pressed="true"] { border-color: var(--green); background: #edf7ef; box-shadow: inset 0 0 0 1px var(--green); }
.application-pagination { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 18px; }
.application-pagination > div { display: flex; gap: 8px; }
.application-pagination button { min-width: 90px; }
.application-detail { min-width: 150px; }
.application-compact-card { padding: 14px 18px; gap: 10px; }
.application-compact-card .admin-collection-heading { align-items: center; }
.application-compact-card .admin-collection-heading h3 { margin: 0; font-size: 14px; }
.application-compact-card .application-detail-body { max-width: 760px; }
.application-detail summary { color: var(--navy); cursor: pointer; font-weight: 700; }
.application-detail[open] { min-width: min(500px, 70vw); }
.application-detail-body { padding: 14px 0 4px; white-space: normal; }
.application-detail-body > p { margin: 8px 0; }

@media (max-width: 640px) {
  .application-filters { grid-template-columns: 1fr; }
  .application-status-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .application-status-filter:first-child { grid-column: 1 / -1; }
  .application-pagination { align-items: flex-start; flex-direction: column; }
  .application-detail[open] { min-width: min(280px, 68vw); }
}

.application-review-request > strong {
  color: var(--navy);
  font-size: 18px;
}

.application-review-request > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.application-review-request > .alert {
  margin: 0;
}

.application-review-form {
  margin-top: 8px;
}

.application-review-form textarea {
  min-height: 80px;
}

.application-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.danger-btn {
  min-height: 42px;
  border: 1px solid #f0c6ca;
  border-radius: 12px;
  background: #fff;
  padding: 0 14px;
  color: var(--red);
  font-weight: 700;
}

.danger-btn:hover {
  background: var(--red-soft);
}

.danger-btn:disabled,
.application-review-actions button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.rejected {
  background: var(--red-soft);
  color: var(--red);
}

.more {
  text-align: right;
}

.more .icon-btn {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border: 0;
  color: var(--faint);
}

.more .icon-btn:hover {
  color: var(--navy);
  background: #eef3f8;
}

.empty {
  margin: 0;
  padding: 40px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.secure {
  display: flex;
  margin: 18px 0 0;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.secure svg {
  color: var(--green);
}

.mobile-only {
  display: flex;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgb(11 37 69 / 0.4);
  padding: 0;
}

.modal[hidden] {
  display: none;
}

.modal-card {
  width: 100%;
  max-width: 32rem;
  border-radius: 20px 20px 0 0;
  background: #fff;
  padding: 24px;
  box-shadow: 0 24px 60px rgb(11 37 69 / 0.2);
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.dialog-kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.dialog-head h2 {
  margin: 6px 0 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.info-grid {
  display: grid;
  margin-top: 22px;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.info-grid div {
  border-radius: 14px;
  background: #f5f8fb;
  padding: 14px;
}

.info-grid p {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--faint);
}

.info-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

.collection-item {
  display: flex;
  margin-top: 16px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

.collection-name {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.collection-time {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.dialog-actions {
  display: flex;
  margin-top: 22px;
  gap: 10px;
}

.dialog-actions .primary-btn {
  flex: 1;
}

.ghost-btn.tall {
  height: 46px;
  padding: 0 18px;
}

@media (min-width: 640px) {
  .metrics {
    grid-template-columns: 1fr 1fr;
  }

  .chart {
    gap: 18px;
  }

  .top-actions {
    gap: 14px;
  }

  .divider,
  .profile {
    display: block;
  }

  .modal {
    align-items: center;
    padding: 16px;
  }

  .modal-card {
    border-radius: 20px;
  }
}

@media (min-width: 768px) {
  .topbar,
  .page {
    padding-left: 32px;
    padding-right: 32px;
  }

  .page {
    padding-top: 32px;
  }

  .page-heading {
    flex-direction: row;
    align-items: flex-end;
  }

  .page-heading h2 {
    font-size: 32px;
  }

  .card {
    padding: 24px;
  }

  .repayments-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
  }

  .search {
    width: 250px;
    flex: none;
  }

  .filter-btn {
    display: flex;
  }
}

@media (min-width: 1024px) {
  .sidebar {
    transform: translateX(0);
  }

  .mobile-only,
  .backdrop {
    display: none !important;
  }

  .content {
    padding-left: 260px;
  }
}

@media (min-width: 1280px) {
  .metrics {
    grid-template-columns: repeat(4, 1fr);
  }

  .main-grid {
    grid-template-columns: 1.65fr 1fr;
  }
}

a.nav-item {
  text-decoration: none;
}

.demo-bar {
  position: sticky;
  top: 0;
  z-index: 70;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  background: #08192e;
  color: #c5d5e4;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
}

.demo-bar a {
  color: #fff;
  background: rgb(255 255 255 / 0.1);
  border-radius: 999px;
  padding: 4px 10px;
  text-decoration: none;
}

.public-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 16px 24px;
}

.brand-link {
  text-decoration: none;
  color: inherit;
}

.public-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.public-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.public-nav a.is-active,
.public-nav a:hover {
  color: var(--navy);
}

.header-btn {
  text-decoration: none;
  height: 42px;
  padding: 0 14px;
}

.public-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}

.hero {
  display: grid;
  gap: 24px;
  padding: 24px 0 12px;
}

.hero h1 {
  margin: 8px 0;
  font-size: 42px;
  letter-spacing: -0.04em;
  color: var(--navy);
}

.hero p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.product-grid,
.split-grid {
  display: grid;
  gap: 16px;
}

.product-card,
.form-card,
.info-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 22px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

label span,
.field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
  padding: 0 12px;
}

textarea {
  height: 110px;
  padding: 12px;
  resize: vertical;
}

.calc-result {
  margin-top: 16px;
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
  padding: 18px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-grid b,
.day {
  text-align: center;
  font-size: 12px;
}

.day {
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  min-height: 72px;
  padding: 8px;
}

.day.paid {
  background: var(--green-soft);
  border-color: #cdead7;
}

.day.due {
  background: var(--amber-soft);
}

.day.missed {
  background: var(--red-soft);
}

.login-card {
  max-width: 460px;
  margin: 40px auto;
}

.auth-page {
  padding: 10px 0;
}

.auth-card {
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
}

.auth-card h1 {
  margin: 0;
  color: #102b45;
  font-size: 28px;
  letter-spacing: -0.05em;
}

.auth-intro {
  margin: -7px 0 2px;
  color: #66798a;
  font-size: 13px;
  line-height: 1.6;
}

.auth-card input {
  height: 46px;
  border-color: #dce5e9;
  background: #fbfcfd;
}

.auth-card .password-input-control {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin: 0;
}

.auth-card .password-input-control input {
  min-width: 0;
  flex: 1;
}

.auth-card .password-visibility-toggle {
  min-width: 64px;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid #dce5e9;
  border-radius: 12px;
  background: #fff;
  color: #234b35;
  font-size: 13px;
  font-weight: 700;
}

.auth-card .password-visibility-toggle:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.auth-card button {
  min-height: 48px;
}

.auth-card button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.auth-message {
  margin: 0;
}

.auth-switch,
.auth-note {
  margin: 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
}

.auth-switch {
  color: #5f7284;
}

.auth-switch a,
.auth-secondary {
  color: #126c4c;
  font-weight: 800;
  text-decoration: none;
}

.auth-note {
  border-top: 1px solid #e8edf0;
  padding-top: 13px;
  color: #7a8998;
  font-size: 10px;
}

.auth-secondary {
  display: inline-flex;
  justify-content: center;
  margin-top: 8px;
}

.role-picks {
  display: grid;
  gap: 10px;
}

.role-picks a,
.role-picks button {
  display: block;
  width: 100%;
  text-align: left;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 14px;
  color: inherit;
}

.alert {
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
}

.alert.ok {
  background: var(--green-soft);
  color: var(--green);
}

.alert.warn {
  background: var(--amber-soft);
  color: var(--amber);
}

.alert.bad {
  background: var(--red-soft);
  color: var(--red);
}

.collect-list {
  display: grid;
  gap: 12px;
}

.collect-row {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 14px;
}

.total-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding: 16px;
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
}

.audit li {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

@media (min-width: 800px) {
  .hero,
  .split-grid,
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }

  .product-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-grid.two {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Public pages */
.demo-bar {
  position: relative;
  justify-content: flex-end;
  gap: 6px;
  background: #102b45;
  padding: 7px max(20px, calc((100vw - 1200px) / 2));
  font-size: 11px;
}

.demo-label {
  margin-right: auto;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.demo-hint {
  margin-right: 3px;
  color: #9db0c3;
  font-weight: 500;
}

.demo-bar a {
  border: 1px solid rgb(255 255 255 / 0.12);
  background: rgb(255 255 255 / 0.06);
  padding: 4px 9px;
  transition: background 0.15s ease;
}

.demo-bar a:hover {
  background: rgb(255 255 255 / 0.16);
}

.public-header {
  position: relative;
  z-index: 5;
  min-height: 78px;
  padding: 14px max(20px, calc((100vw - 1200px) / 2));
}

.public-header .brand-mark {
  border-radius: 11px;
}

.public-nav {
  gap: 8px 22px;
  flex-direction: row;
}

.public-nav a {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.public-nav a.is-active {
  color: var(--blue);
}

.public-login {
  padding: 10px 2px;
}

.public-nav .public-apply {
  color: #fff;
  padding: 0 16px;
}

.public-nav .public-apply:hover {
  color: #fff;
}

.public-wrap {
  max-width: 1200px;
  padding: 54px 28px 72px;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  align-items: center;
  gap: clamp(36px, 7vw, 92px);
  padding: 28px 0 52px;
}

.home-copy h1 {
  max-width: 650px;
  margin: 20px 0 16px;
  color: #102b45;
  font-size: clamp(42px, 5.2vw, 66px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 1.04;
}

.home-copy > p:not(.home-assurance) {
  max-width: 540px;
  margin: 0;
  color: #526579;
  font-size: 17px;
  line-height: 1.75;
}

.home-copy .hero-actions {
  gap: 12px;
  margin-top: 28px;
}

.home-copy .header-btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 0 18px;
  font-size: 13px;
}

.home-copy .ghost-btn {
  border: 1px solid #d6e0e8;
  background: #fff;
  color: #183a59;
}

.home-assurance {
  margin: 25px 0 0;
  color: #718194;
  font-size: 12px;
  font-weight: 600;
}

.home-assurance span {
  padding: 0 6px;
  color: #16a06a;
}

.home-summary {
  position: relative;
  overflow: hidden;
  border: 1px solid #dfe8e9;
  border-radius: 20px;
  background: linear-gradient(145deg, #fff 15%, #f2f8f6 100%);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 24px 60px rgb(16 43 69 / 0.1);
}

.home-summary::after {
  position: absolute;
  top: -72px;
  right: -64px;
  width: 190px;
  height: 190px;
  border: 1px solid rgb(22 160 106 / 0.13);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.summary-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.summary-label {
  margin: 0 0 8px;
  color: #16835d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.summary-heading h2 {
  margin: 0;
  color: #102b45;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.summary-mark {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #e0f3eb;
  color: #16835d;
  font-weight: 800;
}

.summary-steps {
  display: grid;
  gap: 0;
  margin: 24px 0 20px;
}

.summary-step {
  display: flex;
  gap: 16px;
  border-top: 1px solid #e3ebea;
  padding: 17px 0;
}

.step-number {
  padding-top: 2px;
  color: #16835d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.summary-step strong {
  color: #17344e;
  font-size: 14px;
}

.summary-step p {
  margin: 5px 0 0;
  color: #65778a;
  font-size: 12px;
  line-height: 1.5;
}

.summary-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #dfe8e6;
  padding-top: 17px;
  color: #126c4c;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.summary-link span {
  font-size: 19px;
}

.home-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  border-top: 1px solid #dfe6eb;
  padding-top: 28px;
}

.benefit-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid #e2e9ed;
  border-radius: 14px;
  background: #fff;
  padding: 20px;
}

.benefit-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  background: #e9f5ef;
  color: #16835d;
  font-size: 17px;
  font-weight: 800;
}

.benefit-card h3 {
  margin: 1px 0 6px;
  color: #18344d;
  font-size: 14px;
}

.benefit-card p {
  margin: 0;
  color: #65778a;
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .public-header {
    align-items: flex-start;
  }

  .public-nav {
    justify-content: flex-end;
    gap: 8px 14px;
  }

  .home-hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
    gap: 32px;
  }
}

.page-intro {
  max-width: 720px;
  margin: 6px 0 30px;
}

.page-kicker {
  margin: 0 0 9px;
  color: #16835d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.page-intro h1 {
  margin: 0;
  color: #102b45;
  font-size: clamp(34px, 4vw, 48px);
  letter-spacing: -0.055em;
  line-height: 1.1;
}

.page-intro > p:last-child {
  max-width: 600px;
  margin: 13px 0 0;
  color: #5c6f81;
  font-size: 15px;
  line-height: 1.65;
}

.loan-product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.loan-product-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  padding: 24px;
  box-shadow: 0 8px 24px rgb(16 43 69 / 0.045);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.loan-product-card:hover {
  transform: translateY(-3px);
  border-color: #c9ded5;
  box-shadow: 0 15px 34px rgb(16 43 69 / 0.09);
}

.product-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-frequency {
  border-radius: 999px;
  background: #eaf5ef;
  padding: 6px 10px;
  color: #16734f;
  font-size: 11px;
  font-weight: 700;
}

.product-indicator {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #e5ecef;
  border-radius: 50%;
  color: #527086;
}

.loan-product-card h2 {
  margin: 20px 0 15px;
  color: #15334d;
  font-size: 20px;
  letter-spacing: -0.035em;
}

.product-amount-label {
  margin: 0 0 4px;
  color: #718194;
  font-size: 11px;
  font-weight: 600;
}

.product-amount {
  margin: 0;
  color: #102b45;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.product-description {
  min-height: 42px;
  margin: 12px 0 16px;
  color: #617386;
  font-size: 12px;
  line-height: 1.65;
}

.product-rate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #e9eef0;
  padding: 13px 0;
  color: #718194;
  font-size: 11px;
}

.product-rate strong {
  color: #183b57;
  font-size: 12px;
}

.product-apply {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  border-top: 1px solid #e9eef0;
  padding-top: 14px;
  color: #126c4c;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.product-apply span {
  font-size: 18px;
  transition: transform 0.15s ease;
}

.product-apply:hover span {
  transform: translateX(3px);
}

.products-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 26px;
  border: 1px solid #dfe8e9;
  border-radius: 16px;
  background: #f5faf7;
  padding: 22px 24px;
}

.products-footer h2 {
  margin: 0;
  color: #15334d;
  font-size: 16px;
}

.products-footer p {
  margin: 6px 0 0;
  color: #65778a;
  font-size: 12px;
}

.products-footer .header-btn {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}

.calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: stretch;
  gap: 20px;
}

.calculator-form {
  align-content: start;
  gap: 18px;
  padding: 26px;
}

.calculator-form select,
.calculator-form input {
  height: 48px;
  border-color: #dce5e9;
  background: #fbfcfd;
}

.field-hint {
  margin-top: 7px;
  color: #7a8998;
  font-size: 11px;
  font-weight: 500;
}

.calculator-submit {
  min-height: 48px;
  margin-top: 3px;
}

.calculator-result {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  border: 1px solid #244765;
  background: linear-gradient(150deg, #143958, #0b2545 72%);
  padding: clamp(24px, 3.5vw, 38px);
}

.result-kicker {
  margin: 0 0 30px;
  color: #a9c9d4;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.result-label {
  margin: 0;
  color: #d5e2ec;
  font-size: 13px;
}

.calculator-result h2 {
  margin: 8px 0 24px;
  color: #fff;
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.055em;
}

.result-installment {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 12px;
  background: rgb(255 255 255 / 0.07);
  padding: 14px 16px;
  color: #d4e3ec;
  font-size: 12px;
}

.result-installment strong {
  color: #fff;
  font-size: 16px;
  white-space: nowrap;
}

.result-breakdown {
  display: grid;
  gap: 0;
  margin: 17px 0 0;
}

.result-breakdown div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgb(255 255 255 / 0.12);
  padding: 12px 0;
  font-size: 12px;
}

.result-breakdown dt {
  color: #b6c9d8;
}

.result-breakdown dd {
  margin: 0;
  color: #fff;
  font-weight: 700;
  text-align: right;
}

.result-apply {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  border-radius: 10px;
  background: #fff;
  padding: 13px 15px;
  color: #123653;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.result-apply span {
  font-size: 18px;
}

.result-disclaimer {
  margin: 12px 0 0;
  color: #afc2d1;
  font-size: 10px;
  line-height: 1.5;
}

.application-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  align-items: start;
  gap: 20px;
}

.application-form {
  gap: 20px;
  padding: clamp(22px, 3vw, 30px);
}

.application-message {
  margin: 0;
}

.application-message a {
  color: inherit;
  font-weight: 800;
}

.application-form-heading h2 {
  margin: 0;
  color: #15334d;
  font-size: 19px;
  letter-spacing: -0.035em;
}

.application-form-heading p {
  margin: 6px 0 0;
  color: #758596;
  font-size: 11px;
}

.application-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.application-fields input,
.application-fields select {
  height: 48px;
  border-color: #dce5e9;
  background: #fbfcfd;
}

.application-fields textarea {
  min-height: 116px;
  border-color: #dce5e9;
  background: #fbfcfd;
}

.application-purpose {
  grid-column: 1 / -1;
}

.application-daily-fields {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
  border: 1px solid #dce9e0;
  border-radius: 12px;
  padding: 16px;
}

.application-daily-fields legend,
.application-daily-fields h3,
.application-daily-fields > .field-hint,
.application-daily-fields > .form-check {
  grid-column: 1 / -1;
}

.application-daily-fields legend {
  padding: 0 6px;
  color: #173c2c;
  font-weight: 700;
}

.application-daily-fields input[type="file"] {
  max-width: 100%;
}

.passport-upload-card {
  position: relative;
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 14px;
  min-width: 0;
  min-height: 92px;
  border: 1px dashed #9ab9a4;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fcf8, #f0f7f1);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.passport-upload-card:hover,
.passport-upload-card:focus-within {
  border-color: #28724e;
  background: #f0f8f2;
  box-shadow: 0 0 0 3px rgb(40 114 78 / 10%);
}

.passport-upload-icon {
  display: grid;
  width: 48px;
  height: 58px;
  flex: 0 0 48px;
  place-items: center;
  border: 1px solid #c9ddcd;
  border-radius: 8px;
  background: #e6f1e8;
  color: #28724e;
}

.passport-upload-icon svg {
  width: 25px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.passport-upload-copy {
  display: grid;
  flex: 1 1 auto;
  gap: 3px;
  min-width: 0;
  color: #244735;
}

.passport-upload-copy strong {
  font-size: 12px;
}

.passport-upload-copy small,
.passport-upload-filename {
  overflow: hidden;
  color: #718177;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.passport-upload-filename {
  color: #28724e;
}

.passport-upload-card.has-file {
  border-style: solid;
  border-color: #8db59a;
  background: #f0f8f2;
}

.passport-upload-card.has-file .passport-upload-icon {
  border-color: #9dc5a6;
  background: #dcefe0;
}

.passport-upload-card.has-file .passport-upload-filename {
  font-weight: 700;
}

.passport-upload-action {
  flex: 0 0 auto;
  border: 1px solid #c9ddcd;
  border-radius: 7px;
  background: #fff;
  padding: 8px 11px;
  color: #176442;
  font-size: 10px;
  font-weight: 700;
}

.passport-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.application-daily-fields[hidden] {
  display: none;
}

.application-daily-review {
  display: grid;
  gap: 5px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid #dce9e0;
  border-radius: 10px;
  background: #f7faf7;
}

.application-daily-review h4,
.application-daily-review p {
  margin: 3px 0;
}

.application-daily-review a {
  width: fit-content;
  margin: 3px 0;
}

.application-submit {
  min-height: 48px;
}

.application-footnote {
  margin: -8px 0 0;
  color: #7a8998;
  font-size: 10px;
  line-height: 1.55;
}

.application-aside {
  border: 1px solid #dfe8e9;
  border-radius: 16px;
  background: linear-gradient(155deg, #fff, #f2f8f6);
  padding: 24px;
}

.application-aside-icon {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 12px;
  background: #e3f3eb;
  color: #16835d;
  font-weight: 800;
}

.application-aside h2 {
  margin: 0;
  color: #15334d;
  font-size: 20px;
  letter-spacing: -0.04em;
}

.application-aside ul {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.application-aside li {
  position: relative;
  padding-left: 18px;
  color: #5f7284;
  font-size: 12px;
  line-height: 1.55;
}

.application-aside li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: #16835d;
  content: "✓";
  font-weight: 800;
}

.application-aside-note {
  display: grid;
  gap: 9px;
  margin-top: 24px;
  border-top: 1px solid #dfe8e6;
  padding-top: 17px;
  color: #18344d;
  font-size: 12px;
}

.application-aside-note a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #126c4c;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 680px) {
  .loan-product-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .loan-product-card {
    min-height: 0;
    padding: 20px;
  }

  .product-description {
    min-height: 0;
  }

  .products-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px;
  }

  .products-footer .header-btn {
    width: 100%;
  }

  .calculator-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .calculator-form {
    padding: 20px;
  }

  .calculator-result {
    min-height: 0;
  }

  .application-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .application-fields,
  .application-daily-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .application-purpose {
    grid-column: auto;
  }
}

@media (max-width: 680px) {
  .demo-bar {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 7px 14px;
    white-space: nowrap;
  }

  .demo-label {
    margin-right: 4px;
  }

  .demo-hint {
    display: none;
  }

  .public-header {
    gap: 10px;
    padding: 14px 18px 12px;
  }

  .public-header .brand {
    gap: 9px;
  }

  .public-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 4px 16px;
    border-top: 1px solid #eef1f3;
    padding-top: 10px;
  }

  .public-nav a {
    font-size: 12px;
  }

  .public-nav .public-login {
    padding: 5px 0;
  }

  .public-nav .public-apply {
    height: 36px;
    margin-left: auto;
    padding: 0 11px;
    font-size: 11px;
  }

  .public-wrap {
    padding: 30px 18px 48px;
  }

  .home-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 18px 0 32px;
  }

  .home-copy h1 {
    margin-top: 17px;
    font-size: clamp(39px, 10vw, 54px);
  }

  .home-copy > p:not(.home-assurance) {
    font-size: 15px;
  }

  .home-copy .hero-actions {
    margin-top: 22px;
  }

  .home-copy .header-btn {
    flex: 1 1 180px;
  }

  .home-assurance {
    font-size: 11px;
    line-height: 1.8;
  }

  .home-benefits {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding-top: 20px;
  }
}

@media (max-width: 380px) {
  .public-nav {
    gap: 4px 11px;
  }

  .public-nav .public-apply {
    width: 100%;
    margin-left: 0;
  }

  .home-copy .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

body.session-pending > main {
  visibility: hidden;
}

body.session-verified > main {
  visibility: visible;
}

.customer-welcome {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  border: 1px solid #dfe8e9;
  border-radius: 16px;
  background: linear-gradient(120deg, #fff, #f2f8f6);
  padding: 22px 24px;
}

.customer-welcome .page-kicker,
.dashboard-panel .page-kicker {
  margin-bottom: 5px;
}

.customer-welcome h2 {
  margin: 0;
  color: #15334d;
  font-size: 22px;
  letter-spacing: -0.045em;
}

.customer-welcome p:last-child {
  margin: 6px 0 0;
  color: #687b8d;
  font-size: 12px;
}

.customer-welcome .header-btn {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}

.customer-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 20px;
}

.customer-metrics[hidden],
.dashboard-panel[hidden],
.dashboard-empty[hidden] {
  display: none;
}

.dashboard-message {
  margin-bottom: 18px;
}

.dashboard-panel {
  min-width: 0;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 22px;
  box-shadow: var(--shadow);
}

.dashboard-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 17px;
}

.dashboard-panel-heading h2 {
  margin: 0;
  color: #15334d;
  font-size: 18px;
  letter-spacing: -0.035em;
}

.dashboard-panel-heading a {
  color: #126c4c;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.customer-loan-list {
  display: grid;
  gap: 10px;
}

.customer-loan-card {
  display: grid;
  grid-template-columns: minmax(130px, 1.1fr) minmax(130px, 1fr) minmax(120px, 0.85fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid #e7ecef;
  border-radius: 12px;
  padding: 15px;
}

.customer-loan-card h3 {
  margin: 0;
  color: #18344d;
  font-size: 13px;
}

.loan-reference {
  margin: 5px 0 0;
  color: #7a8998;
  font-size: 10px;
}

.loan-balance,
.loan-due {
  display: grid;
  gap: 5px;
}

.loan-balance span,
.loan-due span {
  color: #778797;
  font-size: 10px;
}

.loan-balance strong,
.loan-due strong {
  color: #17344e;
  font-size: 12px;
}

.status-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  background: #fff4d8;
  padding: 5px 9px;
  color: #8a5c00;
  font-size: 10px;
  font-weight: 800;
  text-transform: capitalize;
}

.status-pill.approved,
.status-pill.active {
  background: #e8f6ee;
  color: #17824a;
}

.status-pill.review {
  background: #e8f1f8;
  color: #1d6fb8;
}

.status-pill.declined,
.status-pill.overdue {
  background: #fdecee;
  color: #b4323d;
}

.customer-application-table {
  min-width: 600px;
}

.customer-application-table th,
.customer-application-table td {
  white-space: nowrap;
}

.customer-application-table td {
  font-size: 11px;
}

.dashboard-empty {
  margin-top: 20px;
  border: 1px solid #dfe8e9;
  border-radius: 16px;
  background: #fff;
  padding: 26px;
  text-align: center;
}

.dashboard-empty .application-aside-icon {
  margin: 0 auto 14px;
}

.dashboard-empty h2 {
  margin: 0;
  color: #15334d;
  font-size: 18px;
}

.dashboard-empty p {
  max-width: 450px;
  margin: 9px auto 17px;
  color: #65778a;
  font-size: 12px;
  line-height: 1.6;
}

.dashboard-empty .header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sign-out-button {
  width: 100%;
  cursor: pointer;
  color: #c5d5e4;
  text-align: left;
}

.sign-out-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.customer-loan-details {
  display: grid;
  gap: 16px;
}

.loan-detail-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: clamp(20px, 3vw, 28px);
  box-shadow: var(--shadow);
}

.loan-detail-heading,
.loan-detail-balance,
.calendar-toolbar,
.history-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.loan-detail-heading h3,
.history-toolbar h3 {
  margin: 0;
  color: #15334d;
  font-size: 17px;
}

.loan-detail-heading p,
.history-toolbar p {
  margin: 5px 0 0;
  color: #7a8998;
  font-size: 11px;
}

.loan-detail-balance {
  align-items: flex-end;
  margin: 22px 0 18px;
  border-radius: 12px;
  background: #f2f8f6;
  padding: 16px;
}

.loan-detail-balance span {
  color: #64788a;
  font-size: 12px;
}

.loan-detail-balance strong {
  color: #123d31;
  font-size: clamp(20px, 4vw, 28px);
  letter-spacing: -0.04em;
  text-align: right;
}

.loan-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.loan-detail-item {
  display: grid;
  gap: 6px;
  border-bottom: 1px solid #edf0f2;
  padding: 11px 0;
}

.loan-detail-item span {
  color: #7a8998;
  font-size: 10px;
}

.loan-detail-item strong {
  color: #18344d;
  font-size: 12px;
  text-transform: capitalize;
}

.customer-loan-offer {
  display: grid;
  gap: 18px;
  border: 1px solid #dce8e1;
  border-radius: 18px;
  background: #fff;
  padding: clamp(18px, 3vw, 28px);
  box-shadow: 0 14px 36px rgb(20 48 32 / 0.07);
}

.customer-loan-offer > h3 { margin: 0; color: #183c2c; font-size: 18px; }
.offer-intro { margin: -10px 0 0; color: #68796f; font-size: 13px; line-height: 1.65; }
.offer-payout-summary { display: grid; gap: 7px; border-radius: 15px; background: #edf6ef; padding: 18px 20px; }
.offer-payout-summary > span { color: #436451; font-size: 12px; font-weight: 700; }
.offer-payout-summary > strong { color: #155d3b; font-size: clamp(27px, 5vw, 38px); letter-spacing: -0.04em; }
.offer-payout-summary > small { color: #64776b; font-size: 11px; line-height: 1.5; }
.offer-terms-section { display: grid; gap: 4px; }
.offer-terms-section h4 { margin: 0; color: #233d30; font-size: 14px; }
.offer-breakdown-grid { grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 4px 18px; }
.offer-repayment-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 4px 18px; }
.offer-terms-section .loan-detail-item { border-bottom: 1px solid #edf1ed; }
.offer-terms-section .loan-detail-item strong { line-height: 1.5; text-transform: none; }
.offer-agreement { align-items: flex-start; border-top: 1px solid #edf1ed; padding-top: 16px; color: #334a3c; font-size: 12px; line-height: 1.6; }
.offer-agreement input { margin-top: 3px; }
.offer-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.offer-actions button { min-width: 145px; }

@media (max-width: 560px) {
  .customer-loan-offer { gap: 15px; }
  .offer-actions { display: grid; grid-template-columns: 1fr; }
  .offer-actions button { width: 100%; }
}

.loan-history-link {
  display: inline-flex;
  margin-top: 18px;
  color: #126c4c;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.history-toolbar {
  align-items: flex-end;
  margin-bottom: 18px;
}

.history-filter {
  display: grid;
  min-width: min(100%, 250px);
  gap: 3px;
}

.history-filter select {
  height: 40px;
  border-color: #dce5e9;
  background: #fbfcfd;
}

.history-filter select:disabled {
  color: #7a8998;
}

.history-empty {
  border-top: 1px solid #edf0f2;
  padding: 28px 12px 12px;
  text-align: center;
}

.history-empty h3 {
  margin: 0;
  color: #18344d;
  font-size: 15px;
}

.history-empty p {
  margin: 8px 0 0;
  color: #6b7d8d;
  font-size: 12px;
}

.calendar-panel {
  padding: clamp(16px, 3vw, 26px);
}

.calendar-toolbar {
  flex-wrap: wrap;
  margin-bottom: 17px;
}

.calendar-month-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.calendar-month-controls h3 {
  min-width: 145px;
  margin: 0;
  color: #18344d;
  font-size: 15px;
  text-align: center;
}

.calendar-nav {
  width: 36px;
  height: 36px;
  border-color: var(--line);
  background: #fff;
  font-size: 24px;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 14px;
  color: #64788a;
  font-size: 10px;
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e6ebef;
}

.legend-dot.paid {
  background: #17824a;
}

.legend-dot.due {
  background: #d29418;
}

.legend-dot.missed {
  background: #c63b46;
}

.live-calendar {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.live-calendar > b {
  padding: 8px 2px;
  color: #718194;
  font-size: 10px;
}

.calendar-day {
  display: flex;
  min-height: 78px;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  border: 1px solid #e7ecef;
  border-radius: 10px;
  background: #fff;
  padding: 8px;
}

.calendar-day > strong {
  color: #19364f;
  font-size: 12px;
}

.calendar-day > span {
  color: #718194;
  font-size: 9px;
}

.calendar-day > small {
  color: #4e6376;
  font-size: 9px;
}

.calendar-day.paid {
  border-color: #cdead7;
  background: #e8f6ee;
}

.calendar-day.paid > span {
  color: #17824a;
  font-weight: 800;
}

.calendar-day.due {
  border-color: #f0d99f;
  background: #fff8e7;
}

.calendar-day.due > span {
  color: #946100;
  font-weight: 800;
}

.calendar-day.missed {
  border-color: #f4c9ce;
  background: #fff0f1;
}

.calendar-day.missed > span {
  color: #b4323d;
  font-weight: 800;
}

.calendar-note {
  margin: 14px 0 0;
  color: #7a8998;
  font-size: 10px;
  line-height: 1.55;
}

@media (max-width: 680px) {
  .customer-welcome {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px;
  }

  .customer-welcome .header-btn {
    width: 100%;
  }

  .customer-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-panel {
    padding: 16px;
  }

  .dashboard-panel-heading {
    align-items: flex-start;
  }

  .customer-loan-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .customer-loan-card .status-pill {
    grid-column: 1 / -1;
  }

  .customer-application-table {
    min-width: 560px;
  }

  .loan-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .loan-detail-balance {
    align-items: flex-start;
    flex-direction: column;
  }

  .loan-detail-balance strong {
    text-align: left;
  }

  .history-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .history-filter {
    width: 100%;
  }

  .calendar-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .calendar-month-controls {
    justify-content: space-between;
  }

  .calendar-day {
    min-height: 60px;
    padding: 6px 4px;
  }

  .live-calendar {
    gap: 3px;
  }
}

@media (min-width: 681px) and (max-width: 1023px) {
  .customer-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Shared finish across public, customer, agent, and admin screens. */
html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  background:
    radial-gradient(circle at 92% 0, rgb(24 118 87 / 0.055), transparent 25rem),
    var(--page);
}

.sidebar {
  background: linear-gradient(180deg, #12344a 0%, #0d263e 100%);
}

.sidebar .brand-mark,
.public-header .brand-mark {
  background: linear-gradient(145deg, #1b8a65, #126247);
}

.public-header .brand-name {
  color: #102b45;
}

.public-header .brand-sub {
  color: #718194;
}

.nav-item {
  min-height: 44px;
  border: 1px solid transparent;
  letter-spacing: -0.01em;
}

.nav-item.active {
  border-color: rgb(255 255 255 / 0.08);
  background: rgb(255 255 255 / 0.11);
  box-shadow: inset 3px 0 #48c28b;
}

.nav-icon {
  flex: 0 0 auto;
  opacity: 0.86;
}

.nav-item.active .nav-icon,
.nav-item:hover .nav-icon {
  opacity: 1;
}

.topbar {
  min-height: 78px;
  border-bottom-color: #e8eef0;
  background: rgb(255 255 255 / 0.9);
}

.topbar h1 {
  letter-spacing: -0.045em;
}

.page {
  padding: clamp(22px, 3vw, 34px) clamp(16px, 2.5vw, 32px) 48px;
}

.public-header {
  position: sticky;
  top: 0;
  border-bottom: 1px solid rgb(228 235 238 / 0.88);
  background: rgb(255 255 255 / 0.94);
  backdrop-filter: blur(16px);
}

.public-nav a:not(.header-btn) {
  transition: color 0.16s ease, background 0.16s ease;
}

.public-nav a:not(.header-btn):hover,
.public-nav a.is-active {
  color: #126c4c;
}

.public-nav .public-login {
  border-radius: 9px;
  padding: 10px 13px;
}

.public-nav .public-login:hover {
  background: #f0f7f3;
}

.public-nav .public-apply,
.primary-btn {
  box-shadow: 0 7px 16px rgb(16 43 69 / 0.13);
}

.public-wrap {
  max-width: 1260px;
}

.home-summary,
.benefit-card,
.loan-product-card,
.products-footer,
.calculator-form,
.application-form,
.application-aside,
.customer-welcome,
.dashboard-panel,
.metric,
.form-card,
.card {
  border-color: #e4ebee;
  border-radius: 17px;
  box-shadow: 0 5px 22px rgb(16 43 69 / 0.045);
}

.metric:hover,
.loan-product-card:hover {
  box-shadow: 0 14px 34px rgb(16 43 69 / 0.09);
}

.dashboard-panel {
  background: #fff;
}

.dashboard-panel-heading {
  border-bottom-color: #edf1f2;
}

.data-table th {
  background: #f6f9f9;
  color: #667b87;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.data-table td {
  border-bottom-color: #edf1f2;
}

.data-table tbody tr:hover {
  background: #f8fbf9;
}

.table-wrap {
  border-radius: 12px;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
  border-color: #4b9b79 !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgb(24 118 87 / 0.12);
  outline: none;
}

input:disabled,
select:disabled,
textarea:disabled,
button:disabled {
  cursor: not-allowed;
}

button:disabled,
.primary-btn:disabled {
  box-shadow: none;
  transform: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgb(24 118 87 / 0.3);
  outline-offset: 2px;
}

.empty {
  border: 1px dashed #d8e3e3;
  border-radius: 12px;
  background: #f8fbfa;
  padding: 22px;
  color: #667b87;
  line-height: 1.6;
  text-align: center;
}

.alert {
  border: 1px solid transparent;
  line-height: 1.55;
}

.alert.ok {
  border-color: #cfe8da;
}

.alert.warn {
  border-color: #f1dfb4;
}

.alert.bad {
  border-color: #f1cdd1;
}

@media (max-width: 680px) {
  .content {
    padding-left: 0 !important;
  }

  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .mobile-only {
    display: flex;
  }

  .backdrop {
    display: block;
  }

  .public-header {
    position: relative;
  }

  .public-nav .public-login {
    padding: 5px 8px;
  }

  .page {
    padding: 18px 14px 34px;
  }

  .topbar {
    min-height: 70px;
    padding-inline: 14px;
  }

  .topbar h1 {
    font-size: 19px;
  }

  .date-line {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 680px) {
  .agent-route-card,
  .collection-entry {
    grid-template-columns: 1fr;
  }

  .admin-collection-heading,
  .admin-collection-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .remove-collection-row {
    justify-self: start;
  }
}

@media (min-width: 1024px) {
  .public-header { display: flex; flex-wrap: nowrap; align-items: center; gap: clamp(16px, 2vw, 28px); }
  .public-header .brand-link { flex: 0 0 auto; }
  .public-menu-toggle { display: none; }
  .public-nav { width: auto; flex: 1 1 auto; justify-content: flex-end; gap: 8px clamp(8px, 1.35vw, 20px); border-top: 0; padding-top: 0; }
  .public-nav a:not(.public-apply) { padding: 9px 0; }
  .public-nav .public-apply { flex: 0 0 auto; white-space: nowrap; }
  .welcome { min-width: 0; }
  .welcome > div { min-width: 0; }
  .date-line { white-space: nowrap; }
  .top-actions, .profile-btn { flex: 0 0 auto; }
  .profile-name, .profile-role { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 1023px) {
  .public-header { position: sticky; top: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; overflow: visible; white-space: normal; }
  .public-header .brand-link { flex: 0 0 auto; }
  .public-menu-toggle { display: inline-flex; width: 42px; height: 42px; flex: 0 0 42px; align-items: center; justify-content: center; margin-left: auto; border: 1px solid #dfe9e3; border-radius: 12px; background: #fff; color: #183a50; }
  .public-menu-toggle:hover, .public-menu-toggle[aria-expanded="true"] { border-color: #c7ddd2; background: #f2f8f5; color: #126c4c; }
  .public-nav { position: absolute; top: calc(100% + 8px); right: 16px; z-index: 60; display: none; width: min(360px, calc(100vw - 32px)); flex: 0 0 auto; flex-direction: column; align-items: stretch; gap: 4px; border: 1px solid #e1eae4; border-radius: 16px; background: #fff; margin: 0; padding: 9px; box-shadow: 0 20px 48px rgb(16 43 69 / .16); }
  .public-header.menu-open .public-nav { display: flex; }
  .public-nav a:not(.public-apply) { display: flex; min-height: 44px; align-items: center; border-radius: 10px; padding: 0 12px; }
  .public-nav a:not(.public-apply):hover, .public-nav a:not(.public-apply).is-active { background: #f1f7f3; color: #126c4c; }
  .public-nav .public-login { padding: 0 12px; }
  .public-nav .public-apply { display: flex; min-height: 46px; align-items: center; justify-content: center; margin: 5px 0 0; white-space: nowrap; }
  .welcome { min-width: 0; }
  .welcome > div { min-width: 0; }
  .date-line { white-space: nowrap; }
  .top-actions, .profile-btn { flex: 0 0 auto; }
  .profile-name, .profile-role { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 680px) {
  .public-header { gap: 0 10px; padding: 12px 16px; }
  .public-header .brand-mark { width: 36px; height: 36px; }
  .public-header .brand-name { font-size: 12px; }
  .public-header .brand-sub { font-size: 9px; }
  .public-nav { right: 12px; width: calc(100vw - 24px); }
  .public-nav .public-login { padding: 0 12px; }
}
@media (max-width: 380px) {
  .public-header { padding-inline: 12px; }
  .public-header .brand { gap: 8px; }
  .public-menu-toggle { width: 40px; height: 40px; flex-basis: 40px; }
  .public-nav { right: 8px; width: calc(100vw - 16px); }
  .topbar { gap: 8px; padding-inline: 10px; }
  .welcome { gap: 7px; }
  .welcome .date-line { font-size: 9px; }
  .topbar h1 { font-size: 18px; }
}
.sidebar-nav-wrap {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgb(255 255 255 / 0.22) transparent;
  scrollbar-width: thin;
}

.sidebar-bottom {
  flex: 0 0 auto;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  padding-top: 12px;
}

.sidebar-bottom .nav-item {
  color: #c5d5e4;
  font-size: 13px;
}

.sidebar-bottom .nav-item:hover {
  color: #fff;
}

.sidebar-bottom .nav-icon {
  width: 17px;
  height: 17px;
}

.agent-route-card,
.collection-entry {
  border-color: #e4ebee;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgb(16 43 69 / 0.025);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.agent-route-card:hover,
.collection-entry:focus-within {
  border-color: #c9ded5;
  box-shadow: 0 7px 20px rgb(16 43 69 / 0.055);
}

.agent-route-amount strong,
.collection-total strong {
  font-variant-numeric: tabular-nums;
}

.collection-total {
  border: 1px solid #cfe6d9;
  background: linear-gradient(110deg, #edf8f1, #e5f3ec);
  color: #194c39;
}

.collection-total strong {
  color: #123d31;
  font-size: clamp(19px, 3vw, 24px);
  letter-spacing: -0.035em;
}

.collection-form > .metric-note {
  max-width: 680px;
  line-height: 1.65;
}

.admin-collection-card {
  border-color: #e4ebee;
  border-radius: 17px;
}

.admin-collection-items {
  border-color: #e9eff0;
}

.admin-collection-item {
  border-radius: 10px;
  background: #f8fbfa;
  padding: 12px 14px;
}

.admin-collection-footer {
  padding-top: 2px;
}

.admin-fine-form {
  padding: clamp(20px, 3vw, 28px);
}

.admin-fine-form > h2 {
  margin-bottom: 0;
  color: #15334d;
  font-size: 18px;
  letter-spacing: -0.035em;
}

.admin-fine-form > p {
  max-width: 650px;
  line-height: 1.65;
}

.admin-fine-form form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-fine-form form label:first-child {
  grid-column: 1 / -1;
}

.admin-fine-form form .primary-btn {
  min-width: 150px;
}

.empty[hidden] {
  display: none;
}

@media (max-width: 680px) {
  .admin-fine-form form {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-fine-form form label:first-child {
    grid-column: auto;
  }

  .admin-fine-form form .primary-btn {
    width: 100%;
  }

  .admin-collection-footer .primary-btn {
    width: 100%;
  }
}

/* Homepage design */
body[data-page="home"] { background: #f8faf8; }
body[data-page="home"] .public-header { border-bottom: 1px solid #e8eeea; background: #fff; }
body[data-page="home"] .home-page { max-width: 1200px; padding: 42px 28px 74px; }
body[data-page="home"] .home-hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(330px, .82fr); align-items: center; gap: clamp(34px, 6vw, 80px); position: relative; overflow: hidden; margin: 0 0 62px; border: 1px solid #e0e9e3; border-radius: 26px; background: linear-gradient(125deg, #eef6f0 0%, #f7faf7 58%, #edf5ef 100%); padding: clamp(30px, 5.2vw, 64px); box-shadow: 0 16px 42px rgb(16 43 69 / .055); }
body[data-page="home"] .home-hero::after { position: absolute; top: -160px; right: -80px; width: 360px; height: 360px; border: 1px solid rgb(23 130 74 / .09); border-radius: 50%; content: ""; pointer-events: none; }
body[data-page="home"] .home-copy, body[data-page="home"] .home-summary { position: relative; z-index: 1; }
body[data-page="home"] .home-eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0; border: 1px solid #d9e8dd; border-radius: 999px; background: rgb(255 255 255 / .8); padding: 8px 12px; color: #31694e; font-size: 11px; font-weight: 700; }
body[data-page="home"] .home-eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: #42a96a; box-shadow: 0 0 0 4px #eaf5ed; }
body[data-page="home"] .home-copy h1 { max-width: 610px; margin: 23px 0 14px; color: #102b45; font-size: clamp(44px, 5.3vw, 68px); font-weight: 800; letter-spacing: -.065em; line-height: 1.04; }
body[data-page="home"] .home-lead { max-width: 510px; margin: 0; color: #556b7a; font-size: 15px; line-height: 1.8; }
body[data-page="home"] .hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 26px; }
body[data-page="home"] .hero-actions .primary-btn { display: inline-flex; min-height: 49px; align-items: center; justify-content: center; border-radius: 10px; padding: 0 19px; box-shadow: 0 5px 15px rgb(23 130 74 / .15); }
body[data-page="home"] .home-secondary-link { color: #245b43; font-size: 13px; font-weight: 700; text-decoration: none; }
body[data-page="home"] .home-secondary-link span { padding-left: 4px; color: #17824a; }
body[data-page="home"] .home-assurance { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 24px 0 0; padding: 0; list-style: none; color: #6d7f89; font-size: 11px; font-weight: 600; }
body[data-page="home"] .home-assurance li::before { margin-right: 7px; color: #17824a; content: "✓"; font-weight: 800; }
body[data-page="home"] .home-summary { border: 1px solid #e1e9e4; border-radius: 20px; background: #fff; padding: clamp(22px, 3vw, 32px); box-shadow: 0 16px 38px rgb(16 43 69 / .08); }
body[data-page="home"] .summary-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
body[data-page="home"] .summary-label { margin: 0 0 7px; color: #17824a; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
body[data-page="home"] .summary-heading h2 { margin: 0; color: #102b45; font-size: 21px; letter-spacing: -.04em; }
body[data-page="home"] .summary-mark { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; border-radius: 50%; background: #eaf5ee; color: #16835d; font-weight: 800; }
body[data-page="home"] .summary-steps { display: grid; gap: 0; margin: 20px 0 15px; padding: 0; list-style: none; }
body[data-page="home"] .summary-step { display: flex; gap: 13px; border-top: 1px solid #edf1ee; padding: 14px 0; }
body[data-page="home"] .step-number { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border-radius: 10px; background: #eff6f1; color: #24704d; font-size: 10px; font-weight: 800; }
body[data-page="home"] .summary-step strong { color: #17344e; font-size: 12px; }
body[data-page="home"] .summary-step p { margin: 4px 0 0; color: #687b89; font-size: 11px; line-height: 1.55; }
body[data-page="home"] .summary-link { display: flex; min-height: 44px; align-items: center; justify-content: space-between; border-top: 1px solid #e8eeea; padding-top: 12px; color: #176d4a; font-size: 12px; font-weight: 800; text-decoration: none; }
body[data-page="home"] .summary-link span { font-size: 18px; }
body[data-page="home"] .home-benefits { display: block; border: 0; padding: 0; }
body[data-page="home"] .benefits-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 20px; }
body[data-page="home"] .benefits-eyebrow { margin: 0 0 8px; color: #17824a; font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
body[data-page="home"] .benefits-heading h2 { max-width: 570px; margin: 0; color: #102b45; font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -.05em; line-height: 1.15; }
body[data-page="home"] .benefits-heading > p { max-width: 370px; margin: 0 0 2px; color: #65778a; font-size: 12px; line-height: 1.7; }
body[data-page="home"] .benefits-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
body[data-page="home"] .benefit-card { display: flex; min-width: 0; min-height: 130px; align-items: flex-start; gap: 14px; border: 1px solid #e2eae5; border-radius: 16px; background: #fff; padding: 19px; box-shadow: 0 6px 20px rgb(16 43 69 / .035); }
body[data-page="home"] .benefit-icon { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border: 1px solid #dcece1; border-radius: 12px; background: #eff6f1; color: #16835d; font-size: 16px; font-weight: 800; }
body[data-page="home"] .benefit-card h3 { margin: 1px 0 6px; color: #18344d; font-size: 13px; }
body[data-page="home"] .benefit-card p { margin: 0; color: #65778a; font-size: 11px; line-height: 1.6; }
body[data-page="home"] .site-footer { position: relative; border-top: 1px solid #e3ebe6; background: #fff; color: #102b45; }
body[data-page="home"] .site-footer::before { position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, #17824a, #a7d4b6 55%, #e6bb62); content: ""; }
body[data-page="home"] .site-footer-inner { max-width: 1200px; margin: 0 auto; padding: 32px 28px 20px; }
body[data-page="home"] .site-footer-top { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-bottom: 24px; }
body[data-page="home"] .site-footer-brand { display: inline-flex; align-items: center; gap: 10px; color: #102b45; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-decoration: none; }
body[data-page="home"] .footer-brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid #dce9e0; border-radius: 12px; background: #eff6f1; color: #24704d; font-size: 17px; }
body[data-page="home"] .footer-brand-copy small { display: block; margin-top: 3px; color: #718194; font-size: 8px; letter-spacing: .15em; }
body[data-page="home"] .site-footer-about p { margin: 9px 0 0; color: #65778a; font-size: 11px; }
body[data-page="home"] .site-footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 22px; }
body[data-page="home"] .site-footer-links a { color: #526579; font-size: 11px; font-weight: 600; text-decoration: none; }
body[data-page="home"] .site-footer-links a:hover { color: #16835d; }
body[data-page="home"] .site-footer-bottom { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid #e9efeb; padding-top: 14px; color: #81909c; }
body[data-page="home"] .site-footer-bottom small, body[data-page="home"] .site-footer-bottom > span { font-size: 10px; }
@media (max-width: 900px) {
  body[data-page="home"] .home-hero { grid-template-columns: minmax(0, 1fr); gap: 26px; margin-bottom: 48px; }
  body[data-page="home"] .home-copy h1 { max-width: 650px; }
  body[data-page="home"] .home-summary { max-width: 620px; }
  body[data-page="home"] .benefits-grid { grid-template-columns: 1fr; gap: 10px; }
  body[data-page="home"] .benefit-card { min-height: 0; align-items: center; }
}

@media (max-width: 520px) {
  .passport-upload-card {
    gap: 10px;
    padding: 12px;
  }

  .passport-upload-icon {
    width: 40px;
    height: 50px;
    flex-basis: 40px;
  }

  .passport-upload-action {
    padding: 7px 8px;
  }
}
@media (max-width: 600px) {
  body[data-page="home"] .home-page { padding: 24px 16px 46px; }
  body[data-page="home"] .home-hero { gap: 22px; margin-bottom: 38px; border-radius: 20px; padding: 23px 19px; }
  body[data-page="home"] .home-hero::after { top: -210px; right: -170px; }
  body[data-page="home"] .home-eyebrow { font-size: 10px; }
  body[data-page="home"] .home-copy h1 { margin-top: 19px; font-size: clamp(36px, 10vw, 49px); letter-spacing: -.06em; line-height: 1.06; }
  body[data-page="home"] .home-lead { font-size: 14px; line-height: 1.7; }
  body[data-page="home"] .hero-actions { align-items: stretch; flex-direction: column; gap: 13px; margin-top: 22px; }
  body[data-page="home"] .hero-actions .primary-btn { width: 100%; min-height: 49px; }
  body[data-page="home"] .home-secondary-link { min-height: 40px; text-align: center; }
  body[data-page="home"] .home-assurance { gap: 7px 12px; margin-top: 17px; font-size: 10px; }
  body[data-page="home"] .home-summary { border-radius: 16px; padding: 19px; }
  body[data-page="home"] .summary-heading h2 { font-size: 19px; }
  body[data-page="home"] .summary-step { gap: 11px; padding: 12px 0; }
  body[data-page="home"] .summary-step p { font-size: 11px; }
  body[data-page="home"] .benefits-heading { align-items: flex-start; flex-direction: column; gap: 9px; margin-bottom: 15px; }
  body[data-page="home"] .benefits-heading h2 { font-size: 27px; }
  body[data-page="home"] .benefits-heading > p { font-size: 12px; }
  body[data-page="home"] .benefit-card { border-radius: 14px; padding: 16px; }
  body[data-page="home"] .site-footer-inner { padding: 27px 18px 18px; }
  body[data-page="home"] .site-footer-top { align-items: flex-start; flex-direction: column; gap: 20px; padding-bottom: 19px; }
  body[data-page="home"] .site-footer-links { justify-content: flex-start; gap: 12px 18px; }
  body[data-page="home"] .site-footer-bottom { flex-direction: column; gap: 6px; }
}
@media (max-width: 360px) {
  body[data-page="home"] .home-page { padding-inline: 12px; }
  body[data-page="home"] .home-hero { padding: 20px 16px; }
  body[data-page="home"] .home-copy h1 { font-size: 35px; }
  body[data-page="home"] .home-assurance { flex-direction: column; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { body[data-page="home"] .home-page *, body[data-page="home"] .site-footer * { scroll-behavior: auto; } }/* Loan products page refresh */
.products-intro { display: flex; align-items: end; justify-content: space-between; gap: 32px; max-width: none; margin: 0 0 32px; border-bottom: 1px solid #e2eae6; padding-bottom: 28px; }
.products-intro-copy { max-width: 650px; }
.products-intro .page-kicker { display: inline-flex; align-items: center; border: 1px solid #d8e9de; border-radius: 999px; background: #f2f8f4; padding: 7px 11px; }
.products-intro h1 { margin-top: 8px; font-size: clamp(38px, 4.4vw, 54px); }
.products-intro > .products-intro-copy > p:last-child { font-size: 14px; }
.products-intro-note { display: flex; min-width: 270px; align-items: center; gap: 13px; border: 1px solid #e0e9e4; border-radius: 16px; background: #fff; padding: 16px 18px; box-shadow: 0 8px 22px rgb(16 43 69 / .045); }
.intro-note-icon { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border-radius: 13px; background: #eaf5ef; color: #16835d; font-size: 18px; font-weight: 800; }
.products-intro-note strong, .products-intro-note div > span { display: block; }
.products-intro-note strong { color: #18344d; font-size: 12px; }
.products-intro-note div > span { margin-top: 5px; color: #718194; font-size: 11px; line-height: 1.45; }
.loan-product-grid { gap: 18px; }
.loan-product-card { min-height: 314px; border: 1px solid #e0e9e4; border-radius: 20px; background: linear-gradient(155deg, #fff 40%, #f8fbf9 100%); padding: 26px; box-shadow: 0 10px 28px rgb(16 43 69 / .05); }
.loan-product-card:hover { transform: translateY(-4px); border-color: #c8dfd2; box-shadow: 0 18px 36px rgb(16 43 69 / .1); }
.product-frequency { border: 1px solid #dcece2; background: #f0f7f2; }
.product-indicator { border-color: #dfe9e3; background: #fff; color: #16835d; }
.loan-product-card h2 { margin: 18px 0 13px; font-size: 21px; }
.product-amount-label { text-transform: uppercase; letter-spacing: .08em; font-size: 10px; }
.product-amount { font-size: clamp(23px, 2.5vw, 29px); }
.product-description { min-height: 40px; margin: 11px 0 15px; }
.product-rate { border-top-color: #e5ede8; padding: 14px 0; }
.product-rate strong { border-radius: 999px; background: #eef6f0; padding: 6px 10px; color: #28674f; }
.product-apply { border-top-color: #e5ede8; padding-top: 16px; }
.products-footer { margin-top: 28px; border-color: #dce8e0; border-radius: 20px; background: linear-gradient(110deg, #f1f8f3, #fbfcfb); padding: 25px 28px; }
.products-footer h2 { font-size: 18px; letter-spacing: -.025em; }
.products-footer .header-btn { min-height: 46px; border-radius: 999px; padding: 0 18px; }
@media (max-width: 760px) { .products-intro { align-items: flex-start; flex-direction: column; gap: 20px; } .products-intro-note { min-width: 0; width: 100%; max-width: 440px; } }
@media (max-width: 680px) { .loan-product-card { min-height: 0; padding: 22px; } .products-footer { align-items: stretch; } }
@media (prefers-reduced-motion: reduce) { .loan-product-card { transition: none; } .loan-product-card:hover { transform: none; } }
/* Small-screen product page refinements */
@media (max-width: 680px) {
  .products-intro { margin-bottom: 22px; padding-bottom: 22px; }
  .products-intro h1 { font-size: clamp(34px, 9vw, 44px); line-height: 1.05; }
  .products-intro > .products-intro-copy > p:last-child { font-size: 14px; line-height: 1.65; }
  .products-intro-note { max-width: none; border-radius: 14px; padding: 14px; }
  .loan-product-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .loan-product-card { min-width: 0; border-radius: 17px; padding: 20px; }
  .loan-product-card h2 { margin: 16px 0 12px; font-size: 19px; }
  .product-amount { overflow-wrap: anywhere; font-size: clamp(20px, 6vw, 25px); line-height: 1.2; }
  .product-description { margin: 10px 0 12px; font-size: 12px; }
  .product-rate { padding: 13px 0; }
  .product-apply { min-height: 44px; padding-top: 12px; }
  .products-footer { gap: 16px; margin-top: 20px; border-radius: 17px; padding: 20px; }
  .products-footer .header-btn { min-height: 48px; }
}
@media (max-width: 360px) {
  .products-intro-note { align-items: flex-start; }
  .intro-note-icon { width: 38px; height: 38px; flex-basis: 38px; }
  .loan-product-card { padding: 18px; }
  .product-amount { font-size: 20px; }
}
/* Shared site chrome */
body[data-role] .public-header, body[data-role] .topbar { border-bottom: 1px solid #e5ece8; background: #fff; }
body[data-role] .site-footer { position: relative; border-top: 1px solid #e3ebe6; background: #fff; color: #102b45; }
body[data-role] .site-footer::before { position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, #17824a, #a7d4b6 55%, #e6bb62); content: ""; }
body[data-role] .site-footer-inner { max-width: 1200px; margin: 0 auto; padding: 32px 28px 20px; }
body[data-role] .site-footer-top { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-bottom: 24px; }
body[data-role] .site-footer-brand { display: inline-flex; color: inherit; text-decoration: none; }
body[data-role] .site-footer-brand .brand { gap: 10px; }
body[data-role] .site-footer-brand .brand-mark { width: 38px; height: 38px; border-radius: 12px; }
body[data-role] .site-footer-brand .brand-name { color: #102b45; font-size: 12px; }
body[data-role] .site-footer-brand .brand-sub { margin-top: 3px; color: #718194 !important; font-size: 8px; }
body[data-role] .site-footer-about p { margin: 9px 0 0; color: #65778a; font-size: 11px; }
body[data-role] .site-footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 22px; }
body[data-role] .site-footer-links a { color: #526579; font-size: 11px; font-weight: 600; text-decoration: none; }
body[data-role] .site-footer-links a:hover { color: #16835d; }
body[data-role] .site-footer-bottom { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid #e9efeb; padding-top: 14px; color: #81909c; }
body[data-role] .site-footer-bottom small, body[data-role] .site-footer-bottom > span { font-size: 10px; }
@media (max-width: 680px) {
  body[data-role] .site-footer-inner { padding: 26px 18px 18px; }
  body[data-role] .site-footer-top { align-items: flex-start; flex-direction: column; gap: 20px; padding-bottom: 19px; }
  body[data-role] .site-footer-links { justify-content: flex-start; gap: 12px 18px; }
  body[data-role] .site-footer-bottom { flex-direction: column; gap: 6px; }
}
@media (max-width: 1023px) {
  .public-nav .public-apply {
    width: auto;
    min-height: 42px;
    height: 42px;
    align-self: flex-start;
    margin: 5px 0 0;
    padding: 0 15px;
    font-size: 12px;
  }
}
@media (max-width: 600px) {
  body[data-page="home"] .hero-actions { align-items: flex-start; }
  body[data-page="home"] .hero-actions .primary-btn { width: auto; min-height: 44px; padding: 0 17px; font-size: 12px; }
  body[data-page="home"] .home-secondary-link { min-height: 36px; text-align: left; }
}
/* Homepage hero redesign */
body[data-page="home"] .home-hero { grid-template-columns: minmax(0, 1.1fr) minmax(320px, .82fr); gap: clamp(32px, 6vw, 78px); margin: 0 0 58px; border: 0; border-radius: 0; background: transparent; padding: clamp(28px, 4vw, 48px) 0; box-shadow: none; }
body[data-page="home"] .home-hero::after { top: -150px; right: -100px; width: 360px; height: 360px; border-color: rgb(23 130 74 / .07); }
body[data-page="home"] .home-copy h1 { max-width: 590px; margin: 24px 0 15px; font-size: clamp(45px, 5.4vw, 68px); line-height: 1.02; }
body[data-page="home"] .home-lead { max-width: 490px; font-size: 15px; }
body[data-page="home"] .hero-actions { gap: 20px; margin-top: 25px; }
body[data-page="home"] .hero-actions .primary-btn { min-height: 46px; padding: 0 18px; font-size: 12px; }
body[data-page="home"] .home-secondary-link { display: inline-flex; min-height: 44px; align-items: center; gap: 4px; }
body[data-page="home"] .home-assurance { gap: 8px 16px; margin-top: 20px; font-size: 10px; }
body[data-page="home"] .home-summary { overflow: hidden; border-radius: 18px; background: linear-gradient(145deg, #fff 0%, #f8fbf8 100%); padding: clamp(22px, 3vw, 30px); box-shadow: 0 14px 36px rgb(16 43 69 / .07); }
body[data-page="home"] .journey-overline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; color: #74838a; font-size: 9px; font-weight: 700; letter-spacing: .08em; }
body[data-page="home"] .journey-overline span:first-child { color: #17824a; letter-spacing: .13em; }
body[data-page="home"] .home-summary > h2 { margin: 0; color: #102b45; font-size: clamp(20px, 2vw, 24px); letter-spacing: -.045em; }
body[data-page="home"] .summary-steps { position: relative; gap: 0; margin: 14px 0 12px; }
body[data-page="home"] .summary-steps::before { position: absolute; top: 30px; bottom: 30px; left: 15px; border-left: 1px dashed #d2e2d7; content: ""; }
body[data-page="home"] .summary-step { position: relative; align-items: center; gap: 13px; border-top: 1px solid #edf1ee; padding: 13px 0; }
body[data-page="home"] .summary-step:first-child { border-top: 0; }
body[data-page="home"] .step-number { width: 32px; height: 32px; flex-basis: 32px; border: 1px solid #dcece1; border-radius: 50%; background: #fff; }
body[data-page="home"] .summary-step strong { font-size: 12px; }
body[data-page="home"] .summary-step p { font-size: 11px; }
body[data-page="home"] .summary-link { min-height: 42px; padding-top: 10px; }
@media (max-width: 900px) {
  body[data-page="home"] .home-hero { grid-template-columns: minmax(0, 1fr); gap: 26px; margin-bottom: 44px; padding: 28px 0 38px; }
  body[data-page="home"] .home-copy h1 { max-width: 660px; }
  body[data-page="home"] .home-summary { width: 100%; max-width: 650px; }
}
@media (max-width: 600px) {
  body[data-page="home"] .home-hero { gap: 23px; margin-bottom: 36px; padding: 19px 0 30px; }
  body[data-page="home"] .home-eyebrow { font-size: 9px; }
  body[data-page="home"] .home-copy h1 { margin: 19px 0 12px; font-size: clamp(37px, 10vw, 48px); letter-spacing: -.06em; line-height: 1.05; }
  body[data-page="home"] .home-lead { font-size: 14px; line-height: 1.7; }
  body[data-page="home"] .hero-actions { align-items: flex-start; flex-direction: column; gap: 6px; margin-top: 19px; }
  body[data-page="home"] .hero-actions .primary-btn { width: auto; min-height: 44px; padding: 0 16px; }
  body[data-page="home"] .home-secondary-link { min-height: 40px; }
  body[data-page="home"] .home-assurance { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; margin-top: 16px; font-size: 9px; }
  body[data-page="home"] .home-summary { border-radius: 16px; padding: 19px; }
  body[data-page="home"] .journey-overline { margin-bottom: 10px; }
  body[data-page="home"] .summary-steps { margin-top: 11px; }
  body[data-page="home"] .summary-step { padding: 11px 0; }
  body[data-page="home"] .summary-step p { font-size: 10px; }
}
@media (min-width: 901px) {
  body[data-page="home"] .home-welcome-visual { aspect-ratio: 1.12; }
}
/* Match the public loan journey pages to the homepage refresh. */
body[data-page="products"], body[data-page="calculator"], body[data-page="apply"] { background: #fbfcfa; }
body[data-page="products"] .public-header, body[data-page="calculator"] .public-header, body[data-page="apply"] .public-header { border-bottom-color: #e8ede8; background: #fff; }
.finance-page { width: 100%; max-width: 1240px; box-sizing: border-box; margin: 0 auto; padding: clamp(30px, 5vw, 58px) clamp(18px, 4vw, 42px) 74px; }
.finance-page .page-kicker { color: #28724e; }
.finance-page-intro { max-width: none; margin: 0 0 31px; }
.finance-page-intro .page-kicker { display: inline-flex; border: 1px solid #dceae0; border-radius: 999px; background: #f0f6f1; padding: 7px 11px; }
.finance-page-intro h1, .products-intro h1 { max-width: 780px; margin: 10px 0 12px; color: #153c2c; font-size: clamp(38px, 5vw, 58px); letter-spacing: -.065em; line-height: 1.04; }
.finance-page-intro > p:last-child, .products-intro-copy > p:last-child { max-width: 650px; margin: 0; color: #68796f; font-size: 13px; line-height: 1.7; }
.products-intro { align-items: center; margin-bottom: 28px; border-bottom: 0; padding: 0 0 8px; }
.products-intro-note { min-width: 250px; border-color: #e0e9e2; border-radius: 13px; box-shadow: 0 8px 22px rgb(20 48 32 / 4%); }
.products-intro-note .intro-note-icon { border-radius: 11px; background: #eaf4ed; color: #176442; }
.products-intro-note strong { color: #173c2c; }
.products-intro-note div > span { color: #718077; }
.loan-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.loan-product-grid .loan-product-card { display: flex; min-width: 0; min-height: 330px; flex-direction: column; border: 1px solid #e0e9e2; border-radius: 16px; background: #fff; padding: 22px; box-shadow: 0 8px 24px rgb(20 48 32 / 4%); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.loan-product-grid .loan-product-card:hover { transform: translateY(-3px); border-color: #bfd7c5; box-shadow: 0 14px 28px rgb(20 48 32 / 9%); }
.loan-product-grid .product-frequency { border-color: #e0ece3; background: #f2f7f3; color: #39724f; }
.loan-product-grid .loan-product-card h2 { color: #173c2c; }
.loan-product-grid .product-amount { color: #173c2c; font-size: clamp(22px, 2.7vw, 29px); letter-spacing: -.05em; }
.loan-product-grid .product-description { flex: 1 1 auto; color: #718077; line-height: 1.65; }
.loan-product-grid .product-rate { border-top-color: #e7eee9; }
.loan-product-grid .product-rate span { color: #77877d; }
.loan-product-grid .product-rate strong { border-radius: 999px; background: #eef6f0; color: #28674f; }
.loan-product-grid .product-apply { border-top-color: #e7eee9; color: #176442; }
.products-footer { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 28px; border-radius: 15px; background: #eef5f0; padding: 23px 25px; }
.products-footer h2 { margin: 0 0 5px; color: #173c2c; font-size: 18px; letter-spacing: -.035em; }
.products-footer p { margin: 0; color: #68796f; font-size: 11px; }
.products-footer .primary-btn { display: inline-flex; min-height: 43px; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; background: #176442; padding: 0 15px; font-size: 11px; text-decoration: none; white-space: nowrap; }
.calculator-page .finance-page-intro { margin-bottom: 27px; }
.calculator-layout { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); align-items: stretch; gap: 15px; }
.calculator-form, .application-form { border: 1px solid #e0e9e2; border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgb(20 48 32 / 4%); }
.calculator-form { gap: 16px; padding: clamp(19px, 3vw, 27px); }
.finance-form-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 2px; }
.finance-step { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border: 1px solid #dce9e0; border-radius: 10px; background: #eff6f1; color: #267149; font-size: 10px; font-weight: 800; }
.finance-form-heading h2, .application-form-heading h2 { margin: 0; color: #173c2c; font-size: 16px; letter-spacing: -.035em; }
.finance-form-heading p, .application-form-heading p { margin: 4px 0 0; color: #78877e; font-size: 10px; line-height: 1.5; }
.calculator-form select, .calculator-form input, .application-fields input, .application-fields select, .application-fields textarea { border-color: #dce5de; border-radius: 8px; background: #fbfcfa; color: #183b2b; }
.calculator-form select:focus, .calculator-form input:focus, .application-fields input:focus, .application-fields select:focus, .application-fields textarea:focus { outline: 3px solid rgb(40 114 78 / 14%); border-color: #68a17d; }
.calculator-submit, .application-submit { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 8px; background: #176442; font-size: 11px; }
.finance-form-footnote { margin: -2px 0 0; color: #78877e; font-size: 10px; line-height: 1.55; }
.calculator-result { border: 1px solid #174c35; border-radius: 16px; background: linear-gradient(145deg, #1d543b, #123b2b 78%); padding: clamp(21px, 3.5vw, 34px); }
.result-kicker { margin-bottom: 23px; color: #b8d7c2; }
.result-label { color: #e0ebe3; }
.calculator-result h2 { color: #fff; }
.result-installment { border-color: rgb(255 255 255 / 18%); background: rgb(255 255 255 / 7%); }
.result-breakdown div { border-color: rgb(255 255 255 / 14%); }
.result-apply { border-radius: 8px; color: #17432f; }
.result-disclaimer { color: #c2d7ca; }
.finance-back-link { margin: 18px 0 0; }
.finance-back-link a { color: #28724e; font-size: 11px; font-weight: 700; text-decoration: none; }
.finance-back-link a:hover { text-decoration: underline; text-underline-offset: 3px; }
.application-layout { grid-template-columns: minmax(0, 1.25fr) minmax(270px, .75fr); gap: 15px; }
.application-form { gap: 18px; padding: clamp(19px, 3vw, 28px); }
.application-form-heading { display: flex; align-items: center; gap: 11px; }
.application-fields { gap: 14px; }
.application-form .application-submit { width: 100%; min-height: 47px; }
.application-aside { position: relative; overflow: hidden; border: 1px solid #dce9e0; border-radius: 16px; background: #eef5f0; padding: 23px; }
.application-aside::after { position: absolute; top: -62px; right: -60px; width: 150px; height: 150px; border: 1px solid rgb(40 114 78 / 12%); border-radius: 50%; content: ""; }
.application-aside-icon { margin-bottom: 17px; border-radius: 10px; background: #dfeee3; color: #176442; }
.application-aside h2 { color: #173c2c; font-size: 21px; }
.application-aside li { color: #617468; font-size: 11px; }
.application-aside li::before { color: #28724e; }
.application-aside-note { border-color: #d9e5dc; color: #244735; }
.application-aside-note a { color: #176442; }
.apply-page .finance-back-link { margin-top: 16px; }
@media (max-width: 900px) {
  .loan-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .loan-product-grid .loan-product-card:last-child { grid-column: 1 / -1; }
  .calculator-layout { grid-template-columns: minmax(0, 1fr); }
  .calculator-result { min-height: 0; }
}
@media (max-width: 680px) {
  .finance-page { padding: 28px 18px 48px; }
  .finance-page-intro { margin-bottom: 23px; }
  .finance-page-intro h1, .products-intro h1 { font-size: clamp(36px, 10vw, 48px); }
  .finance-page-intro > p:last-child, .products-intro-copy > p:last-child { font-size: 12px; }
  .products-intro { align-items: flex-start; gap: 15px; margin-bottom: 20px; }
  .products-intro-note { width: 100%; box-sizing: border-box; }
  .loan-product-grid { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .loan-product-grid .loan-product-card, .loan-product-grid .loan-product-card:last-child { min-height: 0; grid-column: auto; padding: 19px; }
  .products-footer { align-items: stretch; flex-direction: column; gap: 14px; padding: 19px; }
  .products-footer .primary-btn { width: 100%; }
  .calculator-form, .application-form { padding: 18px; }
  .calculator-result { padding: 21px 18px; }
  .application-layout { grid-template-columns: minmax(0, 1fr); }
  .application-fields { grid-template-columns: minmax(0, 1fr); }
  .application-purpose { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .loan-product-grid .loan-product-card { transition: none; }
}
@media (max-width: 360px) {
  body[data-page="home"] .home-assurance { grid-template-columns: 1fr; gap: 6px; }
}@media (max-width: 600px) {
  body[data-page="home"] .hero-actions .primary-btn { flex: 0 0 auto; align-self: flex-start; }
}
/* Admin overview dashboard */
body[data-role="admin"][data-page="overview"] .admin-overview-welcome { align-items: flex-end; margin-bottom: 22px; border: 0; border-bottom: 1px solid #e3eae6; border-radius: 0; background: transparent; padding: 0 0 22px; box-shadow: none; }
body[data-role="admin"][data-page="overview"] .admin-overview-welcome .page-kicker { color: #17824a; }
body[data-role="admin"][data-page="overview"] .admin-overview-welcome h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.055em; }
body[data-role="admin"][data-page="overview"] .admin-overview-welcome p:last-child { max-width: 620px; font-size: 13px; line-height: 1.65; }
body[data-role="admin"][data-page="overview"] .admin-overview-welcome .header-btn { min-height: 44px; border-radius: 10px; padding: 0 16px; font-size: 12px; }
body[data-role="admin"][data-page="overview"] .admin-overview-metrics { gap: 14px; margin-bottom: 22px; }
body[data-role="admin"][data-page="overview"] .admin-overview-metrics .metric { min-width: 0; min-height: 132px; border: 1px solid #e2eae5; border-top: 3px solid #b4d5c0; border-radius: 14px; background: #fff; padding: 17px 18px; box-shadow: 0 7px 20px rgb(16 43 69 / .04); }
body[data-role="admin"][data-page="overview"] .admin-overview-metrics .metric:nth-child(2) { border-top-color: #e7c77d; }
body[data-role="admin"][data-page="overview"] .admin-overview-metrics .metric:nth-child(3) { border-top-color: #9bc9db; }
body[data-role="admin"][data-page="overview"] .admin-overview-metrics .metric-label { color: #5f7280; font-size: 11px; }
body[data-role="admin"][data-page="overview"] .admin-overview-metrics .metric-value { margin-top: 11px; font-size: clamp(24px, 3vw, 31px); overflow-wrap: anywhere; }
body[data-role="admin"][data-page="overview"] .admin-overview-metrics .metric-note { margin-top: 6px; font-size: 10px; }
body[data-role="admin"][data-page="overview"] .admin-pending-panel { margin-top: 0; border-color: #e1e9e4; border-radius: 16px; padding: 20px; }
body[data-role="admin"][data-page="overview"] .admin-pending-panel .dashboard-panel-heading { margin-bottom: 14px; }
body[data-role="admin"][data-page="overview"] .admin-pending-panel .dashboard-panel-heading h2 { font-size: 19px; }
body[data-role="admin"][data-page="overview"] .admin-pending-table { min-width: 960px; }
body[data-role="admin"][data-page="overview"] .admin-pending-table th { background: #f7faf8; }
body[data-role="admin"][data-page="overview"] .admin-pending-table td { padding-top: 13px; padding-bottom: 13px; font-size: 12px; }
body[data-role="admin"][data-page="overview"] .admin-pending-table td:last-child .text-link { display: inline-flex; min-height: 34px; align-items: center; border-radius: 8px; background: #eff6f1; padding: 0 11px; color: #176d4a; text-decoration: none; }
body[data-role="admin"][data-page="overview"] .admin-overview-customer-list { display: grid; gap: 7px; min-width: 230px; margin: 0; padding: 0; list-style: none; }
body[data-role="admin"][data-page="overview"] .admin-overview-customer-list li { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid #edf1ee; padding-bottom: 7px; }
body[data-role="admin"][data-page="overview"] .admin-overview-customer-list li:last-child { border-bottom: 0; padding-bottom: 0; }
body[data-role="admin"][data-page="overview"] .admin-overview-customer-details { display: grid; gap: 2px; min-width: 0; }
body[data-role="admin"][data-page="overview"] .admin-overview-customer-details strong { overflow-wrap: anywhere; color: #243b32; }
body[data-role="admin"][data-page="overview"] .admin-overview-customer-details small { color: #718079; font-size: 10px; }
body[data-role="admin"][data-page="overview"] .admin-overview-customer-amount { flex: 0 0 auto; color: #263d33; font-size: 11px; }
body[data-role="admin"][data-page="overview"] .admin-overview-status { width: fit-content; white-space: nowrap; }
@media (max-width: 680px) {
  body[data-role="admin"][data-page="overview"] .admin-overview-welcome { align-items: flex-start; gap: 14px; padding-bottom: 18px; }
  body[data-role="admin"][data-page="overview"] .admin-overview-welcome h2 { font-size: 25px; line-height: 1.15; }
  body[data-role="admin"][data-page="overview"] .admin-overview-welcome .header-btn { width: auto; min-height: 42px; align-self: flex-start; }
  body[data-role="admin"][data-page="overview"] .admin-overview-metrics { grid-template-columns: 1fr; gap: 9px; }
  body[data-role="admin"][data-page="overview"] .admin-overview-metrics .metric { min-height: 0; padding: 14px 16px; }
  body[data-role="admin"][data-page="overview"] .admin-overview-metrics .metric-value { margin-top: 7px; font-size: 25px; }
  body[data-role="admin"][data-page="overview"] .admin-pending-panel { padding: 15px; }
  body[data-role="admin"][data-page="overview"] .admin-pending-panel .dashboard-panel-heading { align-items: center; }
  body[data-role="admin"][data-page="overview"] .admin-pending-panel .table-wrap { overflow: visible; }
  body[data-role="admin"][data-page="overview"] .admin-pending-table { min-width: 0; border-collapse: separate; border-spacing: 0; }
  body[data-role="admin"][data-page="overview"] .admin-pending-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
  body[data-role="admin"][data-page="overview"] .admin-pending-table tbody { display: grid; gap: 10px; }
  body[data-role="admin"][data-page="overview"] .admin-pending-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 7px 12px; border: 1px solid #e4ebe6; border-radius: 12px; background: #fff; padding: 12px; }
  body[data-role="admin"][data-page="overview"] .admin-pending-table tbody td { display: flex; min-width: 0; flex-direction: column; gap: 4px; border: 0; padding: 4px 0; overflow-wrap: anywhere; font-size: 11px; }
  body[data-role="admin"][data-page="overview"] .admin-pending-table tbody td::before { color: #7b8a91; content: attr(data-label); font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
  body[data-role="admin"][data-page="overview"] .admin-pending-table tbody td:nth-child(4) { grid-column: 1 / -1; }
  body[data-role="admin"][data-page="overview"] .admin-overview-customer-list { min-width: 0; }
  body[data-role="admin"][data-page="overview"] .admin-pending-table tbody td:last-child { grid-column: 1 / -1; align-items: flex-end; border-top: 1px solid #edf1ee; padding-top: 8px; }
}
/* Customer dashboard */
body[data-role="customer"][data-page="dashboard"] .customer-dashboard-welcome { border-color: #e1e9e4; border-radius: 16px; background: linear-gradient(120deg, #fff, #f3f8f4); }
body[data-role="customer"][data-page="dashboard"] .customer-dashboard-welcome h2 { font-size: clamp(22px, 2.5vw, 29px); }
body[data-role="customer"][data-page="dashboard"] .customer-dashboard-welcome h2 span { color: #176d4a; }
body[data-role="customer"][data-page="dashboard"] .customer-dashboard-welcome p:last-child { max-width: 520px; line-height: 1.6; }
body[data-role="customer"][data-page="dashboard"] .customer-dashboard-welcome .header-btn { min-height: 44px; border-radius: 10px; padding: 0 16px; font-size: 12px; }
body[data-role="customer"][data-page="dashboard"] .customer-dashboard-metrics { gap: 14px; margin-bottom: 22px; }
body[data-role="customer"][data-page="dashboard"] .customer-dashboard-metrics .metric { min-width: 0; min-height: 128px; border: 1px solid #e2eae5; border-top: 3px solid #a9d2b6; border-radius: 14px; padding: 17px 18px; box-shadow: 0 7px 20px rgb(16 43 69 / .04); }
body[data-role="customer"][data-page="dashboard"] .customer-dashboard-metrics .metric:nth-child(2) { border-top-color: #86b8cc; }
body[data-role="customer"][data-page="dashboard"] .customer-dashboard-metrics .metric:nth-child(3) { border-top-color: #e6c678; }
body[data-role="customer"][data-page="dashboard"] .customer-dashboard-metrics .metric-value { margin-top: 11px; font-size: clamp(24px, 3vw, 31px); overflow-wrap: anywhere; }
body[data-role="customer"][data-page="dashboard"] .customer-dashboard-metrics .metric-note { margin-top: 6px; font-size: 10px; line-height: 1.5; }
body[data-role="customer"][data-page="dashboard"] .customer-loan-panel, body[data-role="customer"][data-page="dashboard"] .customer-applications-panel { margin-top: 0; margin-bottom: 18px; border-color: #e1e9e4; border-radius: 16px; padding: 20px; }
body[data-role="customer"][data-page="dashboard"] .customer-loan-card { min-width: 0; border-color: #e4ebe6; border-radius: 13px; background: #fff; padding: 16px; }
body[data-role="customer"][data-page="dashboard"] .customer-loan-card h3 { font-size: 13px; }
body[data-role="customer"][data-page="dashboard"] .customer-loan-card .status-pill { justify-self: start; }
body[data-role="customer"][data-page="dashboard"] .customer-dashboard-table { min-width: 620px; }
body[data-role="customer"][data-page="dashboard"] .customer-dashboard-table th { background: #f7faf8; }
body[data-role="customer"][data-page="dashboard"] .customer-dashboard-table td { padding-top: 13px; padding-bottom: 13px; font-size: 12px; }
body[data-role="customer"][data-page="dashboard"] .customer-dashboard-empty { border: 1px solid #e1e9e4; border-radius: 18px; background: linear-gradient(145deg, #fff, #f5f9f6); padding: clamp(24px, 5vw, 42px); }
body[data-role="customer"][data-page="dashboard"] .customer-dashboard-empty h2 { color: #102b45; letter-spacing: -.04em; }
body[data-role="customer"][data-page="dashboard"] .customer-dashboard-empty p { max-width: 440px; margin-inline: auto; line-height: 1.7; }
@media (max-width: 680px) {
  body[data-role="customer"][data-page="dashboard"] .customer-dashboard-welcome { align-items: flex-start; gap: 14px; padding: 18px; }
  body[data-role="customer"][data-page="dashboard"] .customer-dashboard-welcome h2 { font-size: 23px; line-height: 1.2; overflow-wrap: anywhere; }
  body[data-role="customer"][data-page="dashboard"] .customer-dashboard-welcome .header-btn { width: auto; min-height: 42px; align-self: flex-start; }
  body[data-role="customer"][data-page="dashboard"] .customer-dashboard-metrics { grid-template-columns: 1fr; gap: 9px; }
  body[data-role="customer"][data-page="dashboard"] .customer-dashboard-metrics .metric { min-height: 0; padding: 13px 15px; }
  body[data-role="customer"][data-page="dashboard"] .customer-dashboard-metrics .metric-value { margin-top: 7px; font-size: 24px; }
  body[data-role="customer"][data-page="dashboard"] .customer-loan-panel, body[data-role="customer"][data-page="dashboard"] .customer-applications-panel { padding: 15px; }
  body[data-role="customer"][data-page="dashboard"] .customer-loan-card { grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px; }
  body[data-role="customer"][data-page="dashboard"] .customer-loan-card > div:first-child { grid-column: 1 / -1; }
  body[data-role="customer"][data-page="dashboard"] .customer-loan-card .status-pill { grid-column: 1 / -1; }
  body[data-role="customer"][data-page="dashboard"] .customer-dashboard-table { min-width: 0; border-collapse: separate; border-spacing: 0; }
  body[data-role="customer"][data-page="dashboard"] .customer-dashboard-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
  body[data-role="customer"][data-page="dashboard"] .customer-dashboard-table tbody { display: grid; gap: 10px; }
  body[data-role="customer"][data-page="dashboard"] .customer-dashboard-table tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 12px; border: 1px solid #e4ebe6; border-radius: 12px; padding: 12px; }
  body[data-role="customer"][data-page="dashboard"] .customer-dashboard-table tbody td { display: flex; min-width: 0; flex-direction: column; gap: 4px; border: 0; padding: 4px 0; overflow-wrap: anywhere; font-size: 11px; }
  body[data-role="customer"][data-page="dashboard"] .customer-dashboard-table tbody td::before { color: #7b8a91; content: attr(data-label); font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
  body[data-role="customer"][data-page="dashboard"] .customer-dashboard-empty { padding: 28px 20px; }
}
/* Customer dashboard visual refinement */
body[data-role="customer"][data-page="dashboard"] .customer-dashboard-welcome { position: relative; overflow: hidden; border: 1px solid #dce9e0; border-radius: 18px; background: radial-gradient(ellipse at 100% 0%, #e9f4ec 0%, transparent 42%), linear-gradient(110deg, #fff, #f6faf7); padding: 25px 28px; }
body[data-role="customer"][data-page="dashboard"] .customer-dashboard-welcome::after { position: absolute; top: -105px; right: 95px; width: 220px; height: 220px; border: 1px solid rgb(23 130 74 / .08); border-radius: 50%; content: ""; pointer-events: none; }
body[data-role="customer"][data-page="dashboard"] .customer-dashboard-welcome > div, body[data-role="customer"][data-page="dashboard"] .customer-dashboard-welcome > a { position: relative; z-index: 1; }
body[data-role="customer"][data-page="dashboard"] .customer-dashboard-welcome .page-kicker { font-size: 10px; letter-spacing: .13em; }
body[data-role="customer"][data-page="dashboard"] .customer-dashboard-welcome h2 { font-size: clamp(25px, 3vw, 34px); line-height: 1.12; }
body[data-role="customer"][data-page="dashboard"] .customer-dashboard-welcome p:last-child { margin-top: 8px; font-size: 12px; }
body[data-role="customer"][data-page="dashboard"] .customer-dashboard-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
body[data-role="customer"][data-page="dashboard"] .customer-dashboard-metrics .metric { position: relative; min-height: 118px; border: 1px solid #e3eae5; border-radius: 15px; background: #fff; padding: 17px 18px; box-shadow: 0 5px 18px rgb(16 43 69 / .035); }
body[data-role="customer"][data-page="dashboard"] .customer-dashboard-metrics .metric:first-child { background: linear-gradient(140deg, #fff, #f7fbf8); }
body[data-role="customer"][data-page="dashboard"] .customer-dashboard-metrics .metric:nth-child(2) { background: linear-gradient(140deg, #fff, #fbf9f2); }
body[data-role="customer"][data-page="dashboard"] .customer-dashboard-metrics .metric:nth-child(3) { background: linear-gradient(140deg, #fff, #f3f8fa); }
body[data-role="customer"][data-page="dashboard"] .customer-dashboard-metrics .metric-value { margin-top: 10px; color: #102b45; font-size: clamp(25px, 2.5vw, 32px); }
body[data-role="customer"][data-page="dashboard"] .customer-dashboard-metrics .metric-label { font-size: 11px; }
body[data-role="customer"][data-page="dashboard"] .customer-loan-panel { padding: 22px; }
body[data-role="customer"][data-page="dashboard"] .customer-loan-list { gap: 12px; }
body[data-role="customer"][data-page="dashboard"] .customer-loan-card { grid-template-columns: minmax(160px, 1.3fr) minmax(155px, 1fr) minmax(135px, .9fr) auto; align-items: center; gap: 14px; border: 1px solid #e2eae5; border-radius: 15px; background: linear-gradient(110deg, #fff, #f9fbf9); padding: 17px; box-shadow: 0 5px 16px rgb(16 43 69 / .035); }
body[data-role="customer"][data-page="dashboard"] .customer-loan-card h3 { font-size: 14px; letter-spacing: -.02em; }
body[data-role="customer"][data-page="dashboard"] .loan-reference { margin-top: 6px; }
body[data-role="customer"][data-page="dashboard"] .loan-balance { gap: 5px; border-left: 2px solid #b5d6c0; padding-left: 13px; }
body[data-role="customer"][data-page="dashboard"] .loan-balance strong { font-size: 15px; }
body[data-role="customer"][data-page="dashboard"] .loan-due { gap: 5px; }
body[data-role="customer"][data-page="dashboard"] .loan-due strong { font-size: 13px; }
body[data-role="customer"][data-page="dashboard"] .customer-applications-panel { padding: 22px; }
body[data-role="customer"][data-page="dashboard"] .customer-dashboard-empty { border-radius: 20px; }
@media (max-width: 900px) {
  body[data-role="customer"][data-page="dashboard"] .customer-dashboard-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body[data-role="customer"][data-page="dashboard"] .customer-loan-card { grid-template-columns: minmax(140px, 1.2fr) minmax(130px, 1fr) minmax(120px, 1fr); }
  body[data-role="customer"][data-page="dashboard"] .customer-loan-card .status-pill { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 680px) {
  body[data-role="customer"][data-page="dashboard"] .customer-dashboard-welcome { padding: 20px; }
  body[data-role="customer"][data-page="dashboard"] .customer-dashboard-welcome h2 { font-size: 25px; }
  body[data-role="customer"][data-page="dashboard"] .customer-dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  body[data-role="customer"][data-page="dashboard"] .customer-dashboard-metrics .metric { min-height: 104px; padding: 14px; }
  body[data-role="customer"][data-page="dashboard"] .customer-dashboard-metrics .metric:nth-child(3) { grid-column: 1 / -1; min-height: 90px; }
  body[data-role="customer"][data-page="dashboard"] .customer-dashboard-metrics .metric-value { font-size: 24px; }
  body[data-role="customer"][data-page="dashboard"] .customer-loan-panel, body[data-role="customer"][data-page="dashboard"] .customer-applications-panel { padding: 16px; }
  body[data-role="customer"][data-page="dashboard"] .customer-loan-card { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 14px; }
  body[data-role="customer"][data-page="dashboard"] .customer-loan-card > div:first-child { grid-column: 1; }
  body[data-role="customer"][data-page="dashboard"] .customer-loan-card .status-pill { grid-column: 2; grid-row: 1; justify-self: end; }
  body[data-role="customer"][data-page="dashboard"] .loan-balance { grid-column: 1 / -1; grid-template-columns: 1fr auto; align-items: center; margin-top: 2px; border: 0; border-radius: 11px; background: #f1f7f3; padding: 11px 12px; }
  body[data-role="customer"][data-page="dashboard"] .loan-balance strong { text-align: right; }
  body[data-role="customer"][data-page="dashboard"] .loan-due { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid #edf1ee; padding-top: 10px; }
}
@media (max-width: 380px) {
  body[data-role="customer"][data-page="dashboard"] .customer-dashboard-metrics .metric { padding: 12px; }
  body[data-role="customer"][data-page="dashboard"] .customer-dashboard-welcome { padding: 17px; }
}
/* Field agent dashboard */
body[data-role="agent"][data-page="route"] #page-slot { display: grid; gap: 18px; }
body[data-role="agent"][data-page="route"] .agent-dashboard-welcome { order: 0; }
body[data-role="agent"][data-page="route"] #agentError { order: 1; }
body[data-role="agent"][data-page="route"] #agentMetrics { order: 2; }
body[data-role="agent"][data-page="route"] .agent-route-panel { order: 3; }
body[data-role="agent"][data-page="route"] .agent-daily-report-panel { order: 4; }
body[data-role="agent"][data-page="route"] .agent-submission-history { order: 5; }
body[data-role="agent"][data-page="route"] .agent-application-panel { order: 6; }
body[data-role="agent"][data-page="route"] .agent-application-history { order: 7; }
body[data-role="agent"][data-page="route"] .agent-dashboard-welcome { align-items: flex-end; border: 1px solid #dce9e0; border-radius: 17px; background: radial-gradient(ellipse at 100% 0%, #e9f4ec 0%, transparent 42%), linear-gradient(110deg, #fff, #f6faf7); padding: 22px 24px; }
body[data-role="agent"][data-page="route"] .agent-dashboard-welcome h2 { font-size: clamp(23px, 2.8vw, 31px); letter-spacing: -.05em; }
body[data-role="agent"][data-page="route"] .agent-dashboard-welcome p:last-child { max-width: 580px; font-size: 12px; line-height: 1.6; }
body[data-role="agent"][data-page="route"] .agent-dashboard-welcome .header-btn { min-height: 44px; border-radius: 10px; padding: 0 16px; font-size: 12px; }
body[data-role="agent"][data-page="route"] .agent-dashboard-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
body[data-role="agent"][data-page="route"] .agent-dashboard-metrics .metric { min-width: 0; min-height: 116px; border: 1px solid #e2eae5; border-radius: 14px; background: linear-gradient(140deg, #fff, #f7fbf8); padding: 16px 17px; box-shadow: 0 5px 18px rgb(16 43 69 / .035); }
body[data-role="agent"][data-page="route"] .agent-dashboard-metrics .metric:nth-child(2) { background: linear-gradient(140deg, #fff, #fbf9f2); }
body[data-role="agent"][data-page="route"] .agent-dashboard-metrics .metric:nth-child(3) { background: linear-gradient(140deg, #fff, #f3f8fa); }
body[data-role="agent"][data-page="route"] .agent-dashboard-metrics .metric-value { margin-top: 9px; font-size: clamp(24px, 2.6vw, 31px); overflow-wrap: anywhere; }
body[data-role="agent"][data-page="route"] .agent-route-panel, body[data-role="agent"][data-page="route"] .agent-submissions-panel { margin-top: 0; margin-bottom: 18px; border: 1px solid #e1e9e4; border-radius: 16px; padding: 20px; }
body[data-role="agent"][data-page="route"] .agent-route-panel .dashboard-panel-heading { margin-bottom: 14px; }
body[data-role="agent"][data-page="route"] #agentRouteDate { border-radius: 999px; background: #f1f7f3; padding: 7px 10px; color: #426c56; font-size: 10px; font-weight: 700; }
body[data-role="agent"][data-page="route"] .agent-route-quick-actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 14px; }
body[data-role="agent"][data-page="route"] .agent-route-quick-actions a { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; border-radius: 10px; padding: 0 14px; font-size: 11px; text-decoration: none; }
body[data-role="agent"][data-page="route"] .agent-route-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
body[data-role="agent"][data-page="route"] .agent-route-filter { display: inline-flex; min-height: 38px; align-items: center; gap: 8px; border: 1px solid #dce6df; border-radius: 999px; background: #fff; padding: 0 13px; color: #315340; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
body[data-role="agent"][data-page="route"] .agent-route-filter span { display: inline-grid; min-width: 20px; min-height: 20px; place-items: center; border-radius: 999px; background: #f0f5f1; padding: 0 5px; font-size: 10px; }
body[data-role="agent"][data-page="route"] .agent-route-filter[aria-pressed="true"] { border-color: #28794b; background: #edf7ef; color: #1d603a; }
body[data-role="agent"][data-page="route"] .agent-route-filter[aria-pressed="true"] span { background: #d7eddd; }
body[data-role="agent"][data-page="route"] .agent-route-search { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: end; gap: 10px; margin: 0 0 6px; }
body[data-role="agent"][data-page="route"] .agent-route-search label { display: grid; gap: 6px; min-width: 0; }
body[data-role="agent"][data-page="route"] .agent-route-search input { width: 100%; min-height: 44px; border: 1px solid #dce6df; border-radius: 10px; background: #fff; padding: 0 13px; color: #173b2b; font: inherit; }
body[data-role="agent"][data-page="route"] .agent-route-search input:focus { outline: 3px solid rgb(30 125 74 / .14); border-color: #28794b; }
body[data-role="agent"][data-page="route"] .agent-route-search button { min-height: 44px; }
body[data-role="agent"][data-page="route"] .agent-route-search-summary { min-height: 18px; margin: 7px 0 10px; font-size: 11px; }
body[data-role="agent"][data-page="route"] #agentRouteNoMatches[hidden] { display: none; }
body[data-role="agent"][data-page="route"] .agent-route-list { display: grid; gap: 10px; }
body[data-role="agent"][data-page="route"] .agent-route-card { grid-template-columns: minmax(180px, 1.5fr) minmax(140px, .9fr) minmax(140px, .9fr) auto; gap: 14px; border-color: #e2eae5; border-radius: 14px; background: linear-gradient(110deg, #fff, #f9fbf9); padding: 16px; }
body[data-role="agent"][data-page="route"] .agent-route-customer strong { font-size: 13px; }
body[data-role="agent"][data-page="route"] .agent-route-customer span { overflow-wrap: anywhere; font-size: 10px; }
body[data-role="agent"][data-page="route"] .agent-route-amount strong { font-size: 13px; font-variant-numeric: tabular-nums; }
body[data-role="agent"][data-page="route"] .agent-route-amount span { font-size: 10px; }
body[data-role="agent"][data-page="route"] .agent-route-card > .badge { justify-self: end; }
body[data-role="agent"][data-page="route"] .agent-route-card-actions { display: flex; flex-wrap: wrap; grid-column: 1 / -1; gap: 8px; }
body[data-role="agent"][data-page="route"] .agent-route-card-actions a { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; border-radius: 9px; padding: 0 12px; font-size: 10px; text-decoration: none; }
body[data-role="agent"][data-page="route"] .agent-submissions-table { min-width: 620px; }
body[data-role="agent"][data-page="route"] .agent-submissions-table th { background: #f7faf8; }
body[data-role="agent"][data-page="route"] .agent-submissions-table td { padding-top: 13px; padding-bottom: 13px; font-size: 12px; }
@media (max-width: 900px) {
  body[data-role="agent"][data-page="route"] .agent-route-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  body[data-role="agent"][data-page="route"] .agent-route-customer { grid-column: 1 / -1; }
  body[data-role="agent"][data-page="route"] .agent-route-card > .badge { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 680px) {
  body[data-role="agent"][data-page="route"] .agent-dashboard-welcome { align-items: flex-start; gap: 14px; padding: 18px; }
  body[data-role="agent"][data-page="route"] .agent-dashboard-welcome h2 { font-size: 24px; line-height: 1.2; }
  body[data-role="agent"][data-page="route"] .agent-dashboard-welcome .header-btn { width: auto; min-height: 42px; align-self: flex-start; }
  body[data-role="agent"][data-page="route"] #page-slot { gap: 13px; }
  body[data-role="agent"][data-page="route"] .agent-dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  body[data-role="agent"][data-page="route"] .agent-dashboard-metrics .metric { min-height: 100px; padding: 13px; }
  body[data-role="agent"][data-page="route"] .agent-dashboard-metrics .metric:nth-child(3) { grid-column: 1 / -1; min-height: 88px; }
  body[data-role="agent"][data-page="route"] .agent-dashboard-metrics .metric-value { font-size: 23px; }
  body[data-role="agent"][data-page="route"] .agent-route-panel, body[data-role="agent"][data-page="route"] .agent-submissions-panel { padding: 15px; }
  body[data-role="agent"][data-page="route"] .agent-route-quick-actions { display: grid; grid-template-columns: 1fr; }
  body[data-role="agent"][data-page="route"] .agent-route-quick-actions a { width: 100%; }
  body[data-role="agent"][data-page="route"] .agent-route-panel .dashboard-panel-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
  body[data-role="agent"][data-page="route"] .agent-route-search { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  body[data-role="agent"][data-page="route"] .agent-route-search label { grid-column: 1 / -1; }
  body[data-role="agent"][data-page="route"] .agent-route-search button { width: 100%; }
  body[data-role="agent"][data-page="route"] #agentRouteDate { max-width: 100%; }
  body[data-role="agent"][data-page="route"] .agent-route-card { gap: 10px; padding: 13px; }
  body[data-role="agent"][data-page="route"] .agent-route-customer strong { font-size: 12px; }
  body[data-role="agent"][data-page="route"] .agent-route-amount strong { font-size: 12px; }
  body[data-role="agent"][data-page="route"] .agent-route-amount span { font-size: 9px; }
  body[data-role="agent"][data-page="route"] .agent-submissions-panel .table-wrap { overflow: visible; }
  body[data-role="agent"][data-page="route"] .agent-submissions-table { min-width: 0; border-collapse: separate; border-spacing: 0; }
  body[data-role="agent"][data-page="route"] .agent-submissions-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
  body[data-role="agent"][data-page="route"] .agent-submissions-table tbody { display: grid; gap: 9px; }
  body[data-role="agent"][data-page="route"] .agent-submissions-table tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 12px; border: 1px solid #e4ebe6; border-radius: 12px; padding: 12px; }
  body[data-role="agent"][data-page="route"] .agent-submissions-table tbody td { display: flex; min-width: 0; flex-direction: column; gap: 4px; border: 0; padding: 4px 0; overflow-wrap: anywhere; font-size: 11px; }
  body[data-role="agent"][data-page="route"] .agent-submissions-table tbody td::before { color: #7b8a91; content: attr(data-label); font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
  body[data-role="agent"][data-page="route"] .agent-submissions-table tbody td:last-child { grid-column: 1 / -1; }
}
/* Admin disbursement workflow */
body[data-role="admin"][data-page="disbursements"] .disbursement-queue-panel,
body[data-role="admin"][data-page="disbursements"] .disbursement-history-panel { margin-bottom: 18px; }
body[data-role="admin"][data-page="disbursements"] .disbursement-workflow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; border: 1px solid #e1e9e4; border-radius: 14px; padding: 16px; }
body[data-role="admin"][data-page="disbursements"] .disbursement-workflow > div { display: grid; align-content: start; gap: 6px; border-left: 3px solid #d6e8db; padding: 2px 12px; }
body[data-role="admin"][data-page="disbursements"] .disbursement-workflow span { color: #28724e; font-size: 10px; font-weight: 800; text-transform: uppercase; }
body[data-role="admin"][data-page="disbursements"] .disbursement-workflow strong { color: #173d2b; font-size: 12px; }
body[data-role="admin"][data-page="disbursements"] .disbursement-workflow a,
body[data-role="admin"][data-page="disbursements"] .disbursement-workflow small { color: #64766a; font-size: 10px; line-height: 1.5; }
body[data-role="admin"][data-page="disbursements"] .disbursement-page-shortcuts { display: flex; flex-wrap: wrap; grid-column: 1 / -1; gap: 8px; border-top: 1px solid #e9efeb; padding-top: 10px; }
body[data-role="admin"][data-page="disbursements"] .disbursement-page-shortcuts a { display: inline-flex; min-height: 34px; align-items: center; border: 1px solid #dce6df; border-radius: 999px; padding: 0 12px; color: #315340; font-weight: 700; text-decoration: none; }
body[data-role="admin"][data-page="disbursements"] .disbursement-guidance { margin: -3px 0 16px; line-height: 1.6; }
body[data-role="admin"][data-page="disbursements"] .disbursement-card { border-color: #e1e9e4; border-radius: 14px; }
body[data-role="admin"][data-page="disbursements"] .disbursement-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-top: 17px; }
body[data-role="admin"][data-page="disbursements"] .disbursement-card { gap: 10px; padding: 15px 18px; }
body[data-role="admin"][data-page="disbursements"] .disbursement-details { border-top: 1px solid #e9efeb; padding-top: 10px; }
body[data-role="admin"][data-page="disbursements"] .disbursement-details summary { color: #176442; cursor: pointer; font-size: 12px; font-weight: 800; }
body[data-role="admin"][data-page="disbursements"] .disbursement-details[open] summary { margin-bottom: 8px; }
body[data-role="admin"][data-page="disbursements"] .disbursement-queue-search { grid-template-columns: minmax(240px, 480px) auto; }
body[data-role="admin"][data-page="disbursements"] .disbursement-queue-amount { margin: 4px 0 0; color: #214937; font-size: 12px; font-weight: 800; }
body[data-role="admin"][data-page="disbursements"] .disbursement-next-action { margin: 8px 0 0; border-left: 3px solid #28794b; border-radius: 0 8px 8px 0; background: #f1f8f3; padding: 8px 10px; color: #27563b; font-size: 11px; font-weight: 700; line-height: 1.5; }
body[data-role="admin"][data-page="borrowers"] .borrower-portfolio-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
body[data-role="admin"][data-page="borrowers"] .borrower-portfolio-metrics .metric { min-width: 0; min-height: 88px; border: 1px solid #e1e9e4; border-radius: 12px; padding: 13px 15px; }
body[data-role="admin"][data-page="borrowers"] .borrower-portfolio-metrics .metric-value { margin-top: 6px; font-size: clamp(20px, 2vw, 27px); overflow-wrap: anywhere; }
body[data-role="admin"][data-page="borrowers"] .borrower-quick-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
body[data-role="admin"][data-page="borrowers"] .borrower-quick-filter { min-height: 36px; border: 1px solid #dce6df; border-radius: 999px; background: #fff; padding: 0 13px; color: #315340; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
body[data-role="admin"][data-page="borrowers"] .borrower-quick-filter[aria-pressed="true"] { border-color: #28794b; background: #edf7ef; color: #1d603a; }
body[data-role="admin"][data-page="agents"] .agent-admin-shortcuts { position: sticky; top: 8px; z-index: 3; display: flex; flex-wrap: wrap; gap: 8px; border: 1px solid #e1e9e4; border-radius: 12px; background: rgb(255 255 255 / .96); padding: 9px; box-shadow: 0 5px 16px rgb(16 43 69 / .05); }
body[data-role="admin"][data-page="agents"] .agent-admin-shortcuts a { display: inline-flex; min-height: 36px; align-items: center; border: 1px solid #dce6df; border-radius: 999px; padding: 0 13px; color: #315340; font-size: 11px; font-weight: 700; text-decoration: none; }
body[data-role="admin"][data-page="agents"] .agent-admin-shortcuts a:hover,
body[data-role="admin"][data-page="agents"] .agent-admin-shortcuts a:focus-visible { border-color: #28794b; background: #edf7ef; }
body[data-role="admin"][data-page="applications"] .application-filters { grid-template-columns: minmax(220px, 1fr) minmax(160px, 220px) auto auto; }
body[data-role="admin"][data-page="disbursements"] .disbursement-actions { grid-column: 1 / -1; justify-content: flex-end; margin-top: 2px; }
body[data-role="admin"][data-page="disbursements"] .disbursement-form input,
body[data-role="admin"][data-page="disbursements"] .disbursement-form select { min-width: 0; }
body[data-role="admin"][data-page="disbursements"] .disbursement-history-panel .table-wrap { overflow-x: auto; }
@media (max-width: 680px) {
  body[data-role="admin"][data-page="disbursements"] .disbursement-workflow { grid-template-columns: 1fr; gap: 14px; }
  body[data-role="admin"][data-page="borrowers"] .borrower-portfolio-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-role="admin"][data-page="borrowers"] .borrower-portfolio-metrics .metric:last-child { grid-column: 1 / -1; }
  body[data-role="admin"][data-page="agents"] .agent-admin-shortcuts { top: 4px; }
  body[data-role="admin"][data-page="agents"] .agent-admin-shortcuts a { flex: 1 1 40%; justify-content: center; }
  body[data-role="admin"][data-page="applications"] .application-filters { grid-template-columns: 1fr; }
  body[data-role="admin"][data-page="disbursements"] .disbursement-form { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  body[data-role="admin"][data-page="disbursements"] .disbursement-actions { grid-column: auto; }
  body[data-role="admin"][data-page="disbursements"] .disbursement-actions button { width: 100%; }
}
/* Cash collection mobile refinements */
@media (max-width: 680px) {
  body[data-role="agent"][data-page="collect"] .collection-form { gap: 14px; padding: 15px; }
  body[data-role="agent"][data-page="collect"] .collection-form > .dashboard-panel-heading { align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 3px; }
  body[data-role="agent"][data-page="collect"] .collection-form > .dashboard-panel-heading > div { flex: 1 1 170px; min-width: 0; }
  body[data-role="agent"][data-page="collect"] .collection-form > .dashboard-panel-heading h2 { font-size: 16px; line-height: 1.3; }
  body[data-role="agent"][data-page="collect"] #addCollectionRow { min-height: 40px; flex: 0 0 auto; padding: 0 12px; }
  body[data-role="agent"][data-page="collect"] .collection-entry { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; padding: 12px; }
  body[data-role="agent"][data-page="collect"] .collection-entry-customer { grid-column: 1 / -1; min-width: 0; }
  body[data-role="agent"][data-page="collect"] .collection-entry > label:not(.collection-entry-customer) { min-width: 0; }
  body[data-role="agent"][data-page="collect"] .remove-collection-row { min-height: 43px; align-self: end; justify-self: end; padding: 0 13px; }
  body[data-role="agent"][data-page="collect"] .collection-total { gap: 10px; padding: 14px; }
  body[data-role="agent"][data-page="collect"] .collection-form > button[type="submit"] { width: 100%; min-height: 48px; }

  body[data-role="admin"][data-page="pending"] #adminCollectionsList { gap: 11px; }
  body[data-role="admin"][data-page="pending"] .admin-collection-card { gap: 13px; padding: 14px; }
  body[data-role="admin"][data-page="pending"] .admin-collection-heading { align-items: flex-start; flex-direction: row; gap: 10px; }
  body[data-role="admin"][data-page="pending"] .admin-collection-heading > div { min-width: 0; overflow-wrap: anywhere; }
  body[data-role="admin"][data-page="pending"] .admin-collection-heading h3 { font-size: 14px; line-height: 1.4; }
  body[data-role="admin"][data-page="pending"] .admin-collection-heading .badge { flex: 0 0 auto; white-space: nowrap; }
  body[data-role="admin"][data-page="pending"] .admin-collection-item { align-items: flex-start; gap: 10px; padding: 11px 10px; }
  body[data-role="admin"][data-page="pending"] .admin-collection-item > div { min-width: 0; overflow-wrap: anywhere; }
  body[data-role="admin"][data-page="pending"] .admin-collection-item > strong { flex: 0 0 auto; white-space: nowrap; }
  body[data-role="admin"][data-page="pending"] .admin-collection-footer .metric-note { min-width: 0; overflow-wrap: anywhere; }
}
@media (max-width: 680px) {
  body[data-role="agent"][data-page="collect"] > main,
  body[data-role="admin"][data-page="pending"] > main { width: 100%; min-width: 0; }
  body[data-role="agent"][data-page="collect"] .content,
  body[data-role="admin"][data-page="pending"] .content,
  body[data-role="agent"][data-page="collect"] .page,
  body[data-role="admin"][data-page="pending"] .page,
  body[data-role="agent"][data-page="collect"] #page-slot,
  body[data-role="admin"][data-page="pending"] #page-slot { width: 100%; min-width: 0; }
  body[data-role="agent"][data-page="collect"] .customer-welcome > div,
  body[data-role="agent"][data-page="collect"] .collection-form > *,
  body[data-role="admin"][data-page="pending"] .customer-welcome > div,
  body[data-role="admin"][data-page="pending"] #adminCollectionsList > * { min-width: 0; max-width: 100%; }
  body[data-role="agent"][data-page="collect"] .collection-entry select,
  body[data-role="agent"][data-page="collect"] .collection-entry input { width: 100%; min-width: 0; max-width: 100%; }
  body[data-role="agent"][data-page="collect"] .collection-total strong { min-width: 0; overflow-wrap: anywhere; text-align: right; }
}
/* Customer Paystack checkout */
.payment-layout { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(250px,.8fr); gap:16px; align-items:start; }
.payment-panel,.payment-aside { border:1px solid #e1e9e4; border-radius:16px; padding:clamp(18px,3vw,26px); }
.payment-form { display:grid; gap:18px; max-width:620px; }
.payment-form .form-field { display:grid; gap:8px; }
.payment-form select,.payment-form input { width:100%; min-height:48px; border:1px solid #d8e2dc; border-radius:10px; background:#fff; padding:0 13px; color:#102b45; font:inherit; }
.payment-amount-input { display:flex; align-items:center; gap:10px; border:1px solid #d8e2dc; border-radius:10px; padding-left:14px; color:#52665e; }
.payment-amount-input input { border:0; padding-left:0; }
.payment-balance { border-radius:10px; background:#f1f7f3; padding:13px 14px; color:#183b2a; font-size:13px; font-weight:700; line-height:1.55; }
.payment-form small,.payment-security-note { color:#6e7d77; font-size:11px; line-height:1.6; }
.payment-aside { background:linear-gradient(145deg,#fff,#f5f9f6); }
.payment-aside h2 { margin:6px 0 14px; color:#102b45; font-size:19px; }
.payment-aside ol { display:grid; gap:13px; margin:0 0 18px; padding-left:20px; color:#53645d; font-size:12px; line-height:1.6; }
.payment-aside a { color:#147a46; font-size:12px; font-weight:700; text-decoration:none; }
.payment-result-panel { max-width:650px; margin:clamp(28px,8vh,90px) auto; padding:clamp(24px,5vw,44px); text-align:center; }
.payment-result-mark { display:grid; width:54px; height:54px; place-items:center; margin:0 auto 18px; border-radius:50%; background:#e9f4ec; color:#147a46; font-size:26px; font-weight:800; }
.payment-result-panel h2 { color:#102b45; font-size:clamp(22px,4vw,30px); }
.payment-result-panel p:not(.page-kicker) { max-width:470px; margin:10px auto 22px; color:#62716b; font-size:13px; line-height:1.7; }
.payment-result-actions { display:flex; justify-content:center; gap:10px; flex-wrap:wrap; }
.payment-result-actions .primary-btn,.payment-result-actions .secondary-btn { display:inline-flex; align-items:center; justify-content:center; min-height:44px; border-radius:10px; padding:0 15px; text-decoration:none; }
.customer-loan-actions { display:flex; justify-content:flex-end; }
.customer-loan-actions .primary-btn { display:inline-flex; align-items:center; justify-content:center; min-height:40px; border-radius:9px; padding:0 13px; text-decoration:none; font-size:11px; }
@media(max-width:760px) { .payment-layout { grid-template-columns:1fr; } .payment-aside { order:2; } }
@media(max-width:680px) { .customer-loan-actions { grid-column:1/-1; justify-content:stretch; } .customer-loan-actions .primary-btn { width:100%; } .payment-result-actions { flex-direction:column; } }
/* Admin agent management */
.agent-admin-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin-bottom:16px; }
.agent-admin-panel { min-width:0; border:1px solid #e1e9e4; border-radius:15px; padding:20px; }
.agent-admin-form { display:grid; gap:12px; }
.agent-admin-form label { display:grid; gap:7px; }
.agent-admin-form input,.agent-admin-form select { width:100%; min-height:44px; border:1px solid #d8e2dc; border-radius:9px; padding:0 12px; color:#102b45; font:inherit; }
.agent-admin-form textarea { width:100%; min-height:100px; border:1px solid #d8e2dc; border-radius:9px; padding:10px 12px; color:#102b45; font:inherit; }
.agent-admin-form .form-check { display:flex; align-items:flex-start; gap:10px; color:#405451; font-size:12px; line-height:1.5; }
.agent-admin-form .form-check input { width:18px; height:18px; min-height:18px; flex:0 0 18px; margin:2px 0 0; padding:0; }
.agent-admin-form .form-check span { margin:0; }
#newAssistedCustomerFields[hidden] { display:none; }
.agent-admin-form .primary-btn { justify-self:start; min-height:42px; border-radius:9px; padding:0 15px; }
.agent-admin-form .form-hint { margin:0; color:#6e7d77; font-size:11px; line-height:1.55; }
#assistedApplicationMessage.is-loading,
#assistedApplicationMessage.is-success {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 54px;
  color: #176b43;
  background: #effaf3;
  border-color: #c8e8d4;
}
#assistedApplicationMessage.is-loading::before {
  content: "";
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  border: 2px solid #b7ddc5;
  border-top-color: #16824d;
  border-radius: 50%;
  animation: assisted-application-spin 0.8s linear infinite;
}
#assistedApplicationMessage.is-success::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  color: #fff;
  background: #16824d;
  font-size: 14px;
  font-weight: 800;
}
@keyframes assisted-application-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  #assistedApplicationMessage.is-loading::before { animation-duration: 2s; }
}
#adminSectionSuccess { overflow-wrap:anywhere; }
@media(max-width:760px) { .agent-admin-grid { grid-template-columns:1fr; } .agent-admin-panel { padding:16px; } .agent-admin-form .primary-btn { width:100%; } }
/* Homepage photo: natural crop, subtle caption, and no decorative overlays. */
.home-welcome-visual { position: relative; margin: -7px 0 20px; overflow: hidden; border-radius: 12px; background: #e8eee9; }
.home-welcome-visual img { display: block; width: 100%; height: clamp(155px, 19vw, 205px); object-fit: cover; object-position: center 43%; }
.home-visual-caption { position: absolute; right: 0; bottom: 0; left: 0; display: flex; align-items: end; justify-content: space-between; gap: 10px; margin: 0; padding: 25px 14px 12px; background: linear-gradient(transparent, rgb(13 31 23 / 0.65)); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .01em; }
@media (max-width: 680px) {
  .home-welcome-visual { margin: -4px 0 17px; }
  .home-welcome-visual img { height: 168px; object-position: center 44%; }
  .home-visual-caption { padding: 24px 12px 10px; font-size: 11px; }
}
/* Homepage FAQ */
.home-faq { display: grid; grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr); gap: clamp(28px, 7vw, 92px); border-top: 1px solid #dfe6eb; margin-top: 52px; padding-top: 42px; }
.home-faq-intro h2 { max-width: 360px; margin: 8px 0 12px; color: #102b45; font-size: clamp(25px, 3vw, 34px); letter-spacing: -.045em; line-height: 1.15; }
.home-faq-intro > p:not(.benefits-eyebrow) { max-width: 340px; margin: 0; color: #65778a; font-size: 13px; line-height: 1.7; }
.home-faq-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; color: #126c4c; font-size: 12px; font-weight: 700; text-decoration: none; }
.home-faq-link span { font-size: 17px; }
.home-faq-list { border-top: 1px solid #dfe6eb; }
.home-faq-item { border-bottom: 1px solid #dfe6eb; }
.home-faq-item summary { position: relative; display: flex; min-height: 58px; align-items: center; padding: 14px 34px 14px 0; color: #18344d; cursor: pointer; font-size: 13px; font-weight: 700; line-height: 1.5; list-style: none; }
.home-faq-item summary::-webkit-details-marker { display: none; }
.home-faq-item summary::after { position: absolute; right: 5px; color: #16835d; content: "+"; font-size: 21px; font-weight: 400; }
.home-faq-item[open] summary::after { content: "−"; }
.home-faq-item p { max-width: 620px; margin: -2px 30px 18px 0; color: #65778a; font-size: 12px; line-height: 1.7; }
.home-faq-item summary:focus-visible, .home-faq-link:focus-visible { outline: 3px solid rgb(22 131 93 / .3); outline-offset: 3px; border-radius: 3px; }
@media (max-width: 680px) {
  .home-faq { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 34px; padding-top: 26px; }
  .home-faq-intro h2 { max-width: 300px; font-size: 27px; }
  .home-faq-link { margin-top: 15px; }
  .home-faq-item summary { min-height: 55px; font-size: 12px; }
}
/* Homepage loan product preview */
.home-products { margin-top: 52px; border-top: 1px solid #dfe6eb; padding-top: 34px; }
.home-products-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 21px; }
.home-products-heading h2 { margin: 7px 0 7px; color: #102b45; font-size: clamp(25px, 3vw, 34px); letter-spacing: -.045em; line-height: 1.15; }
.home-products-heading p:not(.benefits-eyebrow) { margin: 0; color: #65778a; font-size: 13px; line-height: 1.6; }
.home-products-all { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; padding-bottom: 3px; color: #126c4c; font-size: 12px; font-weight: 700; text-decoration: none; }
.home-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.home-product-card { min-width: 0; min-height: 0; padding: 19px; border-radius: 15px; }
.home-product-card h3 { min-height: 42px; margin: 17px 0 12px; color: #15334d; font-size: 16px; letter-spacing: -.025em; line-height: 1.35; }
.home-product-card .product-amount { font-size: clamp(17px, 1.7vw, 21px); line-height: 1.35; overflow-wrap: anywhere; }
.home-product-card .product-description { min-height: 58px; margin: 10px 0 15px; font-size: 11px; }
.home-product-card .product-apply { font-size: 11px; }
@media (max-width: 980px) { .home-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .home-products { margin-top: 35px; padding-top: 26px; }
  .home-products-heading { align-items: flex-start; flex-direction: column; gap: 13px; margin-bottom: 17px; }
  .home-products-heading h2 { font-size: 27px; }
  .home-product-grid { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .home-product-card { padding: 17px; }
  .home-product-card h3 { min-height: 0; margin: 13px 0 10px; }
  .home-product-card .product-description { min-height: 0; }
  .home-products-all { min-height: 40px; }
}
/* Final homepage hero refinements */
body[data-page="home"] .home-hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center; gap: clamp(36px, 5vw, 68px); overflow: visible; margin: 0 0 48px;
  border: 0; border-radius: 0; background: transparent; padding: clamp(28px, 4vw, 46px) 0 38px; box-shadow: none;
}
body[data-page="home"] .home-hero::after { display: none; }
body[data-page="home"] .home-copy, body[data-page="home"] .home-summary { position: relative; z-index: 1; min-width: 0; }
body[data-page="home"] .home-eyebrow { display: block; margin: 0; border: 0; border-radius: 0; background: transparent; padding: 0; color: #28724e; font-size: 11px; font-weight: 700; letter-spacing: .1em; line-height: 1.5; text-transform: uppercase; }
body[data-page="home"] .home-eyebrow span { display: none; }
body[data-page="home"] .home-copy h1 { max-width: 600px; margin: 20px 0 17px; color: #102b45; font-size: clamp(44px, 4.1vw, 58px); font-weight: 800; letter-spacing: -.055em; line-height: 1.08; }
body[data-page="home"] .home-copy h1 span { display: block; }
body[data-page="home"] .home-lead { max-width: 500px; margin: 0; color: #526579; font-size: 15px; line-height: 1.72; }
body[data-page="home"] .hero-actions { display: flex; align-items: center; gap: 18px; margin-top: 25px; }
body[data-page="home"] .hero-actions .primary-btn { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; border: 1px solid #102b45; border-radius: 9px; background: #102b45; padding: 0 19px; box-shadow: none; color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; transition: background-color .15s ease, border-color .15s ease; }
body[data-page="home"] .hero-actions .primary-btn:hover { border-color: #183d5b; background: #183d5b; }
body[data-page="home"] .hero-actions .primary-btn:active { background: #0b2136; }
body[data-page="home"] .hero-actions .primary-btn:focus-visible, body[data-page="home"] .home-secondary-link:focus-visible, body[data-page="home"] .summary-link:focus-visible { outline: 3px solid rgb(23 130 74 / .35); outline-offset: 3px; }
body[data-page="home"] .home-secondary-link { display: inline-flex; min-height: 44px; align-items: center; gap: 4px; color: #246a49; font-size: 13px; font-weight: 700; text-decoration: none; }
body[data-page="home"] .home-secondary-link span { color: #17824a; }
body[data-page="home"] .home-secondary-link:hover, body[data-page="home"] .summary-link:hover { color: #0d5034; text-decoration: underline; text-underline-offset: 3px; }
body[data-page="home"] .home-assurance { display: flex; flex-wrap: wrap; gap: 9px 18px; margin: 23px 0 0; padding: 0; color: #647581; font-size: 11px; font-weight: 600; list-style: none; }
body[data-page="home"] .home-assurance li::before { margin-right: 7px; color: #17824a; content: "✓"; font-weight: 800; }
body[data-page="home"] .home-summary { display: flex; flex-direction: column; gap: 0; max-width: none; overflow: visible; margin: 0; border: 0; border-radius: 0; background: transparent; padding: 0; box-shadow: none; }
body[data-page="home"] .home-welcome-visual { width: 100%; aspect-ratio: 1.68; overflow: hidden; margin: 0; border-radius: 13px; background: #e8eee9; }
body[data-page="home"] .home-welcome-visual img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 43%; }
body[data-page="home"] .journey-panel { padding-top: 20px; }
body[data-page="home"] .journey-overline { display: block; margin: 0 0 6px; color: #28724e; font-size: 10px; font-weight: 700; letter-spacing: .1em; line-height: 1.5; text-transform: uppercase; }
body[data-page="home"] .home-summary > .journey-panel > h2 { margin: 0; color: #102b45; font-size: clamp(21px, 2.2vw, 25px); font-weight: 750; letter-spacing: -.04em; line-height: 1.2; }
body[data-page="home"] .summary-steps { position: relative; display: grid; gap: 0; margin: 13px 0 10px; padding: 0; list-style: none; }
body[data-page="home"] .summary-steps::before { position: absolute; top: 20px; bottom: 20px; left: 12px; border-left: 1px solid #dce7df; content: ""; }
body[data-page="home"] .summary-step { position: relative; display: flex; align-items: flex-start; gap: 13px; border: 0; padding: 9px 0; }
body[data-page="home"] .step-number { display: block; width: 25px; height: auto; flex: 0 0 25px; border: 0; border-radius: 0; background: transparent; padding: 1px 0 0; color: #28724e; font-size: 10px; font-weight: 700; letter-spacing: .03em; text-align: left; }
body[data-page="home"] .summary-step strong { color: #17344e; font-size: 12px; line-height: 1.45; }
body[data-page="home"] .summary-step p { margin: 3px 0 0; color: #647581; font-size: 11px; line-height: 1.5; }
body[data-page="home"] .summary-link { display: flex; min-height: 44px; align-items: center; justify-content: space-between; border-top: 1px solid #e3e9e5; padding-top: 9px; color: #246a49; font-size: 12px; font-weight: 700; text-decoration: none; }
body[data-page="home"] .summary-link span { font-size: 17px; }
@media (max-width: 900px) {
  body[data-page="home"] .home-hero { grid-template-columns: minmax(0, 1fr); gap: 27px; margin-bottom: 42px; padding: 24px 0 32px; }
  body[data-page="home"] .home-copy h1 { max-width: 700px; font-size: clamp(44px, 6.2vw, 58px); }
  body[data-page="home"] .home-summary { width: 100%; max-width: 650px; }
  body[data-page="home"] .home-welcome-visual { aspect-ratio: 1.85; }
}
@media (max-width: 600px) {
  body[data-page="home"] .home-page { padding: 24px 16px 46px; }
  body[data-page="home"] .home-hero { gap: 22px; margin-bottom: 35px; padding: 16px 0 26px; }
  body[data-page="home"] .home-eyebrow { font-size: 10px; letter-spacing: .08em; }
  body[data-page="home"] .home-copy h1 { margin: 16px 0 12px; font-size: clamp(37px, 9.3vw, 47px); letter-spacing: -.055em; line-height: 1.07; }
  body[data-page="home"] .home-copy h1 span { display: inline; }
  body[data-page="home"] .home-lead { font-size: 14px; line-height: 1.65; }
  body[data-page="home"] .hero-actions { align-items: flex-start; flex-direction: column; gap: 7px; margin-top: 19px; }
  body[data-page="home"] .hero-actions .primary-btn { width: 100%; min-height: 48px; align-self: stretch; padding: 0 18px; font-size: 13px; }
  body[data-page="home"] .home-secondary-link { min-height: 44px; }
  body[data-page="home"] .home-assurance { display: grid; grid-template-columns: repeat(2, max-content); gap: 8px 14px; margin-top: 16px; font-size: 10px; }
  body[data-page="home"] .home-assurance li:nth-child(3) { display: none; }
  body[data-page="home"] .home-summary { max-width: none; }
  body[data-page="home"] .home-welcome-visual { aspect-ratio: 1.55; border-radius: 11px; }
  body[data-page="home"] .journey-panel { padding-top: 17px; }
  body[data-page="home"] .home-summary > .journey-panel > h2 { font-size: 21px; }
  body[data-page="home"] .summary-steps { margin-top: 10px; }
  body[data-page="home"] .summary-step { gap: 11px; padding: 8px 0; }
  body[data-page="home"] .summary-step p { font-size: 11px; }
}
@media (max-width: 360px) {
  body[data-page="home"] .home-page { padding-inline: 12px; }
  body[data-page="home"] .home-copy h1 { font-size: 36px; }
  body[data-page="home"] .home-assurance { grid-template-columns: 1fr; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .hero-actions .primary-btn { transition: none; }
}/* Hero timeline uses separators instead of decorative connector lines. */
body[data-page="home"] .home-assurance li::before { content: "✓"; }
body[data-page="home"] .summary-steps::before { display: none; }
body[data-page="home"] .summary-step + .summary-step { border-top: 1px solid #e3e9e5; }/* Mobile text wrapping corrections from browser preview */
body[data-page="home"] .home-page { width: 100%; min-width: 0; box-sizing: border-box; }
body[data-page="home"] .home-copy, body[data-page="home"] .home-summary, body[data-page="home"] .journey-panel { min-width: 0; }
body[data-page="home"] .summary-step > div { min-width: 0; flex: 1 1 auto; }
body[data-page="home"] .summary-step p { overflow-wrap: anywhere; }
body[data-page="home"] .benefits-heading, body[data-page="home"] .benefits-heading > div, body[data-page="home"] .benefits-heading h2, body[data-page="home"] .benefits-heading > p { min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
body[data-page="home"] .benefit-card > div { min-width: 0; }
body[data-page="home"] .benefit-card p { overflow-wrap: anywhere; }/* Keep all homepage section copy within the mobile content column. */
@media (max-width: 600px) {
  body[data-page="home"] .benefits-heading > div, body[data-page="home"] .benefits-heading > p { width: 100%; flex: 0 0 auto; align-self: stretch; }
  body[data-page="home"] .benefit-card { width: 100%; }
  body[data-page="home"] .benefit-card > div { width: auto; max-width: 100%; flex: 1 1 0%; }
  body[data-page="home"] .home-products-heading > div, body[data-page="home"] .home-faq-intro { width: 100%; min-width: 0; }
}/* Remove the former decorative ring from the hero process panel. */
body[data-page="home"] .home-summary::after { display: none; }/* Keep the desktop headline to two deliberate lines at wide resolutions. */
@media (min-width: 901px) {
  body[data-page="home"] .home-copy h1 { font-size: clamp(44px, 4.1vw, 52px); }
}
/* Public homepage redesign */
body[data-page="home"] { background: #fbfcfa; }
body[data-page="home"] .public-header { border-bottom-color: #e8ede8; background: rgb(255 255 255 / .96); }
body[data-page="home"] .home-page { max-width: 1240px; padding: clamp(28px, 5vw, 64px) clamp(18px, 4vw, 42px) 76px; }
body[data-page="home"] .home-hero { grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(34px, 6vw, 82px); overflow: visible; margin: 0 0 clamp(62px, 9vw, 108px); padding: 12px 0 0; }
body[data-page="home"] .home-hero::after { display: none; }
body[data-page="home"] .home-copy { max-width: 600px; }
body[data-page="home"] .home-eyebrow { gap: 10px; border: 0; border-radius: 0; background: none; padding: 0; color: #28724e; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
body[data-page="home"] .home-eyebrow span { width: 8px; height: 8px; background: #358a5d; box-shadow: 0 0 0 5px #e8f2eb; }
body[data-page="home"] .home-copy h1 { max-width: 620px; margin: 24px 0 18px; color: #143b2b; font-size: clamp(46px, 6vw, 76px); letter-spacing: -.075em; line-height: .99; }
body[data-page="home"] .home-lead { max-width: 480px; color: #596c61; font-size: 15px; line-height: 1.8; }
body[data-page="home"] .hero-actions { gap: 21px; margin-top: 27px; }
body[data-page="home"] .hero-actions .primary-btn { min-height: 51px; border: 1px solid #176442; border-radius: 8px; background: #176442; padding: 0 19px; box-shadow: 0 7px 16px rgb(23 100 66 / .14); font-size: 12px; }
body[data-page="home"] .hero-actions .primary-btn:hover { border-color: #0e5033; background: #0e5033; }
body[data-page="home"] .home-secondary-link { min-height: 44px; gap: 5px; color: #244d39; font-size: 12px; }
body[data-page="home"] .home-secondary-link:hover { color: #176442; text-decoration: underline; text-underline-offset: 4px; }
body[data-page="home"] .home-assurance { gap: 9px 18px; margin-top: 25px; color: #6b7b71; font-size: 10px; }
body[data-page="home"] .home-assurance li::before { color: #358a5d; }
body[data-page="home"] .home-summary { display: flex; max-width: none; flex-direction: column; gap: 0; overflow: visible; border: 0; border-radius: 0; background: transparent; padding: 0; box-shadow: none; }
body[data-page="home"] .home-welcome-visual { position: relative; width: 100%; aspect-ratio: 1.12; overflow: hidden; margin: 0; border-radius: 20px 20px 4px 20px; background: #dce8de; }
body[data-page="home"] .home-welcome-visual::after { position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgb(14 39 27 / .62)); content: ""; }
body[data-page="home"] .home-welcome-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }
body[data-page="home"] .home-welcome-visual figcaption { position: absolute; z-index: 1; right: 18px; bottom: 17px; left: 18px; color: #fff; font-size: 12px; font-weight: 650; }
body[data-page="home"] .home-offer-note { position: relative; z-index: 2; display: flex; max-width: 385px; align-items: flex-start; gap: 12px; margin: -42px 14px 0 auto; border: 1px solid #e0e9e2; border-radius: 13px; background: #fff; padding: 15px; box-shadow: 0 13px 32px rgb(20 48 32 / .13); }
body[data-page="home"] .home-offer-icon { display: grid; width: 37px; height: 37px; flex: 0 0 37px; place-items: center; border-radius: 11px; background: #eaf4ed; color: #176442; font-size: 16px; font-weight: 800; }
body[data-page="home"] .home-offer-note strong { color: #173c2c; font-size: 12px; }
body[data-page="home"] .home-offer-note p { margin: 5px 0 0; color: #68796f; font-size: 10px; line-height: 1.6; }
body[data-page="home"] .home-products { margin: 0 0 88px; border: 0; padding: 0; }
body[data-page="home"] .home-products-heading { align-items: end; margin-bottom: 23px; }
body[data-page="home"] .home-products-heading h2 { max-width: 570px; margin: 5px 0 8px; color: #153c2c; font-size: clamp(27px, 3.2vw, 38px); letter-spacing: -.055em; line-height: 1.12; }
body[data-page="home"] .home-products-heading p:not(.benefits-eyebrow) { color: #6a7a70; font-size: 12px; }
body[data-page="home"] .home-products-all { min-height: 42px; align-items: center; padding: 0 0 2px 10px; color: #176442; font-size: 11px; }
body[data-page="home"] .home-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
body[data-page="home"] .home-product-card { min-height: 268px; border: 1px solid #e0e9e2; border-radius: 15px; background: #fff; padding: 20px; box-shadow: 0 8px 24px rgb(20 48 32 / .045); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
body[data-page="home"] .home-product-card:hover { transform: translateY(-3px); border-color: #bfd7c5; box-shadow: 0 14px 28px rgb(20 48 32 / .09); }
body[data-page="home"] .home-product-card .product-frequency { border: 1px solid #e0ece3; background: #f2f7f3; color: #39724f; font-size: 9px; font-weight: 700; }
body[data-page="home"] .home-product-card h3 { min-height: 0; margin: 17px 0 14px; color: #173c2c; font-size: 17px; }
body[data-page="home"] .home-product-card .product-amount-label { color: #839087; font-size: 9px; letter-spacing: .09em; }
body[data-page="home"] .home-product-card .product-amount { margin: 5px 0 0; color: #173c2c; font-size: clamp(17px, 1.8vw, 22px); font-weight: 800; letter-spacing: -.045em; }
body[data-page="home"] .home-product-actions { display: flex; align-items: center; gap: 18px; }
body[data-page="home"] .home-carousel-controls { display: flex; gap: 7px; }
body[data-page="home"] .home-carousel-controls[hidden] { display: none; }
body[data-page="home"] .home-carousel-controls button { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid #d9e5dc; border-radius: 50%; background: #fff; color: #176442; cursor: pointer; font-size: 17px; transition: background .16s ease, border-color .16s ease, color .16s ease; }
body[data-page="home"] .home-carousel-controls button:hover:not(:disabled) { border-color: #176442; background: #176442; color: #fff; }
body[data-page="home"] .home-carousel-controls button:disabled { color: #aab6ae; cursor: default; }
body[data-page="home"] .home-carousel-controls button:focus-visible,
body[data-page="home"] #homeProductGrid:focus-visible { outline: 3px solid rgb(40 114 78 / 28%); outline-offset: 3px; }
body[data-page="home"] #homeProductGrid { grid-template-columns: none; grid-auto-columns: calc((100% - 18px) / 2); grid-auto-flow: column; overflow-x: auto; overscroll-behavior-inline: contain; scroll-behavior: smooth; scroll-snap-type: inline mandatory; scrollbar-width: thin; scrollbar-color: #bdd7c4 transparent; padding: 3px 2px 15px; }
body[data-page="home"] #homeProductGrid .home-product-card { min-width: 0; scroll-snap-align: start; }
@media (max-width: 900px) {
  body[data-page="home"] #homeProductGrid { grid-auto-columns: 68%; }
}
@media (max-width: 680px) {
  body[data-page="home"] .home-products-heading { align-items: flex-start; }
  body[data-page="home"] .home-product-actions { width: 100%; justify-content: space-between; gap: 10px; }
  body[data-page="home"] .home-carousel-controls button { width: 35px; height: 35px; }
  body[data-page="home"] #homeProductGrid { grid-auto-columns: 86%; gap: 12px; padding-bottom: 12px; }
}

/* Preserve the distinct page accents after the shared dashboard layer. */
body[data-page="agents"] .agent-setup-card,
body[data-page="agents"] .agent-directory-panel { background: #fff; }
body[data-page="agents"] .agent-assignment-card { background: linear-gradient(145deg, #fff, #f5faf6); }
body[data-page="agent-reports"] .agent-report-controls { background: linear-gradient(125deg, #fff 0%, #f5faf6 100%); }
body[data-page="agent-reports"] .agent-report-card { background: #fff; }

/* Final palette pass: remove the leftover navy/blue look from legacy screens. */
body[data-role="admin"] :is(h1, h2, h3, h4),
body[data-role="agent"] :is(h1, h2, h3, h4),
body[data-role="customer"] :is(h1, h2, h3, h4) { color: #173d2b; }
body[data-role="admin"] .notification-bell,
body[data-role="agent"] .notification-bell,
body[data-role="customer"] .notification-bell { border-color: #d9e7dc; color: #285c3c; }
body[data-role="admin"] .notification-bell:hover,
body[data-role="admin"] .notification-bell[aria-expanded="true"],
body[data-role="agent"] .notification-bell:hover,
body[data-role="agent"] .notification-bell[aria-expanded="true"],
body[data-role="customer"] .notification-bell:hover,
body[data-role="customer"] .notification-bell[aria-expanded="true"] { background: #f0f7f2; }
body[data-role="admin"] .notification-panel,
body[data-role="agent"] .notification-panel,
body[data-role="customer"] .notification-panel { border-color: #dce9df; box-shadow: 0 18px 50px rgb(22 75 54 / .16); }
body[data-role="admin"] .notification-mark-all,
body[data-role="agent"] .notification-mark-all,
body[data-role="customer"] .notification-mark-all,
body[data-role="admin"] .notification-category,
body[data-role="agent"] .notification-category,
body[data-role="customer"] .notification-category { color: #18764c; }
body[data-role="admin"] .notification-entry-content strong,
body[data-role="agent"] .notification-entry-content strong,
body[data-role="customer"] .notification-entry-content strong { color: #173d2b; }
body[data-role="admin"] .notification-entry.unread,
body[data-role="agent"] .notification-entry.unread,
body[data-role="customer"] .notification-entry.unread { background: #f1f7f2; }
body[data-role="admin"] .notification-entry-content[href]:hover,
body[data-role="agent"] .notification-entry-content[href]:hover,
body[data-role="customer"] .notification-entry-content[href]:hover { background: #eaf3ec; }
body[data-role="home"] { color: #20352a; }
body[data-page="home"] .home-copy h1,
body[data-page="home"] .summary-heading h2,
body[data-page="home"] .benefits-heading h2,
body[data-page="home"] .home-summary > h2 { color: #173d2b; }
body[data-page="home"] .summary-step strong,
body[data-page="home"] .benefit-card h3,
body[data-page="home"] .site-footer-brand { color: #234735; }
body[data-page="home"] .home-lead,
body[data-page="home"] .summary-step p,
body[data-page="home"] .benefits-heading > p,
body[data-page="home"] .benefit-card p,
body[data-page="home"] .site-footer-about p { color: #63766a; }
body[data-page="home"] .site-footer { color: #234735; }
body[data-page="home"] .site-footer-links a { color: #526b5a; }
body[data-role="admin"][data-page="overview"] .admin-overview-metrics .metric:nth-child(3) { border-top-color: #a9d1b5; }
body[data-role="admin"][data-page="overview"] .admin-overview-metrics .metric-label { color: #63766a; }
body[data-role="admin"][data-page="agents"] .agent-assignment-card { background: linear-gradient(145deg, #fff, #f5faf6); }
body[data-role="admin"][data-page="agent-reports"] .agent-report-controls { background: linear-gradient(125deg, #fff, #f5faf6); }
body[data-role="admin"] .sr-only,
body[data-role="agent"] .sr-only,
body[data-role="customer"] .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
/* Agent administration: clearer action flow, operational metrics, and staff directory. */
body[data-page="agents"] #page-slot { display: grid; gap: 18px; }
body[data-page="agents"] .agent-page-welcome { margin: 0; }
body[data-page="agents"] .agent-management-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
body[data-page="agents"] .agent-management-stat { display: flex; min-width: 0; min-height: 106px; align-items: flex-start; justify-content: space-between; gap: 12px; border: 1px solid #dce9df; border-radius: 15px; background: linear-gradient(135deg, #fff, #f4f9f5); padding: 16px 18px; box-shadow: 0 5px 18px rgb(22 75 54 / .045); }
body[data-page="agents"] .agent-management-stat-label { display: block; color: #5f7566; font-size: 11px; font-weight: 700; }
body[data-page="agents"] .agent-management-stat-value { display: block; margin: 8px 0 3px; color: #174a31; font-size: 27px; letter-spacing: -.05em; line-height: 1; }
body[data-page="agents"] .agent-management-stat small { color: #819087; font-size: 10px; }
body[data-page="agents"] .agent-management-stat-mark { display: grid; width: 35px; height: 35px; flex: 0 0 35px; place-items: center; border: 1px solid #d8e9dc; border-radius: 11px; background: #eaf5ed; color: #28724e; font-size: 14px; font-weight: 800; }
body[data-page="agents"] .agent-admin-grid { gap: 14px; margin: 0; }
body[data-page="agents"] .agent-admin-panel { border-color: #dfeae2; border-radius: 16px; padding: 20px; box-shadow: 0 6px 22px rgb(22 75 54 / .05); }
body[data-page="agents"] .agent-admin-panel .dashboard-panel-heading { align-items: flex-start; margin-bottom: 14px; }
body[data-page="agents"] .agent-admin-panel .dashboard-panel-heading h2 { font-size: 17px; }
body[data-page="agents"] .agent-panel-description { max-width: 440px; margin: 6px 0 0; color: #6a7d70; font-size: 11px; line-height: 1.55; }
body[data-page="agents"] .agent-panel-icon { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border: 1px solid #d5e7d9; border-radius: 11px; background: #eaf5ed; color: #28724e; font-size: 20px; font-weight: 600; }
body[data-page="agents"] .agent-assignment-card { background: linear-gradient(145deg, #fff, #f5faf6); }
body[data-page="agents"] .agent-admin-form { gap: 13px; }
body[data-page="agents"] .agent-admin-form input,
body[data-page="agents"] .agent-admin-form select { min-height: 45px; border-color: #d8e5db; border-radius: 10px; background-color: #fbfdfb; color: #263c2e; }
body[data-page="agents"] .agent-admin-form .primary-btn { min-height: 43px; border-radius: 10px; }
body[data-page="agents"] .agent-unassigned-queue { display: grid; gap: 10px; margin-top: 20px; border-top: 1px solid #e0ebe2; padding-top: 16px; }
body[data-page="agents"] .agent-unassigned-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
body[data-page="agents"] .agent-unassigned-heading h3 { margin: 0; color: #173d2b; font-size: 14px; }
body[data-page="agents"] .agent-unassigned-heading p { margin: 4px 0 0; color: #718176; font-size: 11px; }
body[data-page="agents"] .agent-unassigned-search { display: block; width: min(390px, 100%); }
body[data-page="agents"] .agent-unassigned-search input { width: 100%; min-height: 42px; border: 1px solid #d8e5db; border-radius: 10px; background: #fbfdfb; padding: 0 12px; color: #263c2e; font: inherit; font-size: 12px; }
body[data-page="agents"] #unassignedLoanQueue .data-table { min-width: 900px; }
body[data-page="agents"] #unassignedLoanQueue select { min-width: 175px; min-height: 38px; border: 1px solid #d8e5db; border-radius: 9px; background: #fbfdfb; padding: 0 8px; color: #263c2e; font: inherit; font-size: 11px; }
body[data-page="agents"] #unassignedLoanQueue .primary-btn { min-height: 36px; padding: 0 11px; white-space: nowrap; }
body[data-page="agents"] .agent-directory-panel { margin-top: 0; }
body[data-page="agents"] .agent-directory-heading { align-items: center !important; }
body[data-page="agents"] .agent-directory-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 12px; }
body[data-page="agents"] .agent-directory-tools label { width: min(360px, 100%); }
body[data-page="agents"] .agent-directory-tools input { width: 100%; min-height: 42px; box-sizing: border-box; border: 1px solid #d8e5db; border-radius: 10px; background: #fbfdfb; padding: 0 12px; color: #263c2e; font: inherit; font-size: 12px; }
body[data-page="agents"] .agent-directory-summary { flex: 0 0 auto; color: #78897e; font-size: 11px; font-weight: 650; }
body[data-page="agents"] .agent-directory-actions { display: flex; flex-wrap: wrap; gap: 6px; }
body[data-page="agents"] .agent-directory-actions button { min-height: 36px; padding: 0 10px; white-space: nowrap; }
body[data-page="agents"] .agent-borrowers-action { display: inline-flex; align-items: center; gap: 6px; }
body[data-page="agents"] .agent-borrowers-action svg { width: 16px; height: 16px; }
body[data-page="agents"] #adminSectionContent { border-radius: 12px; }
body[data-page="agents"] #adminSectionContent .data-table { min-width: 760px; }
body[data-page="agents"] #adminSectionContent .data-table th { position: sticky; top: 0; z-index: 1; }
body[data-page="agents"] #adminSectionContent .data-table td:last-child { min-width: 112px; }
body[data-page="agents"] .agent-borrower-panel { scroll-margin-top: 18px; }
body[data-page="agents"] .agent-borrower-panel > .agent-management-stats { grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); margin-bottom: 14px; }
body[data-page="agents"] #agentBorrowerLoans .data-table { min-width: 900px; }
body[data-page="agents"] .agent-assignment-search { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin-bottom: 12px; }
body[data-page="agents"] .agent-assignment-search label { flex: 1 1 260px; }
body[data-page="agents"] .agent-assignment-search input { width: 100%; min-height: 42px; border: 1px solid #d8e5db; border-radius: 10px; background: #fbfdfb; padding: 0 12px; color: #263c2e; font: inherit; font-size: 12px; }
body[data-page="agents"] .agent-assignment-search button { min-height: 40px; }
body[data-page="borrowers"] .admin-borrower-search { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin: 0 0 14px; }
body[data-page="borrowers"] .admin-borrower-search label { flex: 1 1 300px; }
body[data-page="borrowers"] .admin-borrower-search input { width: 100%; min-height: 42px; border: 1px solid #d8e5db; border-radius: 10px; background: #fbfdfb; padding: 0 12px; color: #263c2e; font: inherit; font-size: 12px; }
body[data-page="borrowers"] .admin-borrower-search button { min-height: 40px; }
.agent-submitted-applications { display: grid; gap: 12px; }
.agent-submitted-application { display: grid; gap: 9px; border: 1px solid #dfeae2; border-radius: 12px; background: #fff; padding: 14px; }
.agent-submitted-application-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.agent-submitted-application-heading strong { color: #173d2b; font-size: 13px; }
.agent-submitted-application > .metric-note { margin: 0; }
.agent-application-documents,
.application-documents { display: grid; gap: 9px; margin-top: 8px; }
.agent-application-documents h4,
.application-documents h4 { margin: 0; color: #234b35; font-size: 13px; }
.agent-application-document,
.application-document { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; border: 1px solid #e1ebe4; border-radius: 10px; background: #fbfdfb; padding: 9px; }
.agent-application-document > img,
.application-document > img { width: 120px; height: 120px; flex: 0 0 120px; border: 1px solid #d8e5db; border-radius: 8px; background: #fff; object-fit: contain; }
.agent-application-document > span,
.application-document > span { flex: 1 1 180px; overflow-wrap: anywhere; color: #46594d; font-size: 11px; font-weight: 650; }
.agent-application-document > .agent-application-document-preview-error,
.application-document > .application-document-preview-error { flex: 0 1 160px; color: #8a351e; font-weight: 700; }
.agent-application-document-actions,
.application-document-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.agent-application-document-actions a,
.application-document-actions a { display: inline-flex; min-height: 34px; align-items: center; padding: 0 10px; text-decoration: none; font-size: 11px; }

/* Daily report: clearer date/export toolbar and stronger scan hierarchy. */
body[data-page="agent-reports"] #page-slot { gap: 16px; }
body[data-page="agent-reports"] .agent-report-controls { border-color: #dce9df; background: linear-gradient(125deg, #fff 0%, #f5faf6 100%); padding: 19px 21px; }
body[data-page="agent-reports"] .agent-report-controls-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
body[data-page="agent-reports"] .agent-report-controls-heading .page-kicker { margin-bottom: 4px; }
body[data-page="agent-reports"] .agent-report-controls-heading h2 { margin: 0; color: #173d2b; font-size: 17px; letter-spacing: -.035em; }
body[data-page="agent-reports"] .agent-report-controls-heading p:last-child { margin: 4px 0 0; color: #718176; font-size: 11px; }
body[data-page="agent-reports"] .agent-report-date-mark { display: grid; width: 45px; height: 45px; flex: 0 0 45px; place-items: center; border: 1px solid #d5e6d9; border-radius: 13px; background: #eaf5ed; color: #28724e; font-size: 10px; font-weight: 850; letter-spacing: .08em; }
body[data-page="agent-reports"] .agent-report-filter { gap: 10px; }
body[data-page="agent-reports"] .agent-report-filter label { width: min(245px, 100%); }
body[data-page="agent-reports"] .agent-report-filter input { border-color: #d7e5db; border-radius: 10px; background: #fff; color: #263c2e; }
body[data-page="agent-reports"] .agent-report-filter .primary-btn,
body[data-page="agent-reports"] .agent-report-filter .secondary-btn { min-height: 43px; border-radius: 10px; }
body[data-page="agent-reports"] .agent-report-filter .secondary-btn { border-color: #d7e5db; color: #285c3c; }
body[data-page="agent-reports"] .agent-report-filter .secondary-btn:hover { border-color: #94bea0; background: #eff7f1; }
body[data-page="agent-reports"] .agent-report-search { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: end; gap: 10px; margin-top: 15px; border-top: 1px solid #e5eee7; padding-top: 14px; }
body[data-page="agent-reports"] .agent-report-search label { display: grid; min-width: 0; gap: 6px; }
body[data-page="agent-reports"] .agent-report-search input { box-sizing: border-box; width: 100%; min-height: 43px; border: 1px solid #d7e5db; border-radius: 10px; background: #fff; padding: 0 12px; color: #263c2e; font: inherit; }
body[data-page="agent-reports"] .agent-report-search input:focus { outline: 3px solid rgb(40 114 78 / .14); border-color: #28724e; }
body[data-page="agent-reports"] .agent-report-search button { min-height: 43px; border-radius: 10px; }
body[data-page="agent-reports"] .agent-report-search-summary { min-height: 16px; margin: 8px 0 0; font-size: 11px; }
body[data-page="agent-reports"] #agentReportsNoMatches[hidden] { display: none; }
body[data-page="agent-reports"] .agent-report-card[hidden] { display: none; }
body[data-page="agent-reports"] .agent-report-table tbody tr[hidden] { display: none; }
body[data-page="agent-reports"] .agent-report-summary-card { position: relative; overflow: hidden; border-color: #dce9df; border-radius: 14px; box-shadow: 0 5px 18px rgb(22 75 54 / .045); }
body[data-page="agent-reports"] .agent-report-summary-card::before { position: absolute; top: 0; right: 0; left: 0; height: 3px; background: #83b995; content: ""; }
body[data-page="agent-reports"] .agent-report-summary-card:nth-child(3)::before { background: #2c8a5a; }
body[data-page="agent-reports"] .agent-report-summary-card:nth-child(4)::before { background: #d4a94f; }
body[data-page="agent-reports"] .agent-report-card { border-color: #dfe9e2; border-radius: 16px; box-shadow: 0 7px 22px rgb(22 75 54 / .05); }
body[data-page="agent-reports"] .agent-report-agent-title h2 { color: #173d2b; }
body[data-page="agent-reports"] .agent-report-outcome-card { border: 1px solid #e5eee7; background: #f7faf7; }
body[data-page="agent-reports"] .agent-report-outcome-card.outcome-card-collected { background: #eff7f1; }
body[data-page="agent-reports"] .agent-report-outcome-card.outcome-card-no_payment { background: #fcf7eb; }
body[data-page="agent-reports"] .agent-report-outcome-card.outcome-card-not_visited { background: #f5f7f5; }
body[data-page="agent-reports"] .agent-report-details summary { color: #176b46; }
body[data-page="agent-reports"] .agent-report-admin-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid #edf0ee; padding-top: 10px; }
body[data-page="agent-reports"] .agent-report-admin-actions small { color: #7d887f; font-size: 10px; line-height: 1.45; }
body[data-page="agent-reports"] .agent-report-remove { min-height: 34px; flex: 0 0 auto; border-radius: 9px; padding: 0 11px; font-size: 10px; }
body[data-page="agent-reports"] .agent-report-status.is-removed { background: #f1f4f1; color: #5d6d61; }
body[data-page="agent-reports"] .agent-report-removed-note { margin: 0; border: 1px solid #e1e9e2; border-radius: 10px; background: #f6f8f6; padding: 10px 12px; color: #5c6d61; font-size: 11px; line-height: 1.55; }
@media (max-width: 760px) {
  body[data-page="agents"] .agent-management-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  body[data-page="agents"] .agent-management-stat { min-height: 98px; padding: 12px; }
  body[data-page="agents"] .agent-management-stat-mark { display: none; }
  body[data-page="agents"] .agent-management-stat-value { font-size: 23px; }
  body[data-page="agents"] .agent-directory-heading { align-items: flex-start !important; }
}
@media (max-width: 600px) {
  body[data-page="agents"] #page-slot { gap: 13px; }
  body[data-page="agents"] .agent-directory-tools { align-items: stretch; flex-direction: column; }
  body[data-page="agents"] .agent-directory-tools label { width: 100%; }
  body[data-page="agent-reports"] .agent-report-controls { padding: 15px; }
  body[data-page="agent-reports"] .agent-report-controls-heading { margin-bottom: 12px; }
  body[data-page="agent-reports"] .agent-report-controls-heading p:last-child { max-width: 270px; line-height: 1.5; }
  body[data-page="agent-reports"] .agent-report-filter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-page="agent-reports"] .agent-report-filter label,
  body[data-page="agent-reports"] .agent-report-filter .primary-btn { grid-column: 1 / -1; width: 100%; }
  body[data-page="agent-reports"] .agent-report-filter .secondary-btn { width: 100%; }
  body[data-page="agent-reports"] .agent-report-search { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  body[data-page="agent-reports"] .agent-report-search label { grid-column: 1 / -1; }
  body[data-page="agent-reports"] .agent-report-search button { width: 100%; }
  body[data-page="agent-reports"] .agent-report-admin-actions { align-items: flex-start; flex-direction: column; }
  body[data-page="agent-reports"] .agent-report-remove { width: 100%; }
}
body[data-role="admin"] .status-pill.review,
body[data-role="agent"] .status-pill.review,
body[data-role="customer"] .status-pill.review { background: #edf5ef; color: #536b5a; }
body[data-page="home"] .home-copy .ghost-btn { border-color: #d7e5da; color: #285c3c; }
body[data-page="home"] .home-copy .ghost-btn:hover { background: #f0f7f2; color: #174a2e; }
body[data-page="home"] :is(a, button):focus-visible { outline-color: rgb(40 114 78 / .34); }
body[data-page="home"] .home-product-card .home-product-rate { display: flex; flex-direction: column; gap: 4px; margin: 10px 0 0; border-top: 1px solid #edf1ee; padding-top: 9px; }
body[data-page="home"] .home-product-card .home-product-rate span { color: #839087; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
body[data-page="home"] .home-product-card .home-product-rate strong { color: #28724e; font-size: 11px; line-height: 1.5; }
body[data-page="home"] .home-product-card .product-description { min-height: 48px; margin: 10px 0 13px; color: #718077; font-size: 10px; line-height: 1.6; }
body[data-page="home"] .home-product-card .product-apply { display: flex; min-height: 40px; align-items: center; justify-content: space-between; border-top: 1px solid #edf1ee; padding-top: 10px; color: #176442; font-size: 10px; font-weight: 700; text-decoration: none; }
body[data-page="home"] .home-product-card .product-apply:hover { color: #0e5033; }
body[data-page="home"] .home-process { display: grid; grid-template-columns: minmax(190px, .7fr) minmax(0, 1.3fr); gap: clamp(24px, 5vw, 68px); margin: 0 0 83px; border-radius: 18px; background: #eef5f0; padding: clamp(22px, 4vw, 38px); }
body[data-page="home"] .home-process-heading h2 { margin: 6px 0 9px; color: #153c2c; font-size: clamp(25px, 3vw, 34px); letter-spacing: -.05em; line-height: 1.12; }
body[data-page="home"] .home-process-heading > p:last-child { max-width: 300px; margin: 0; color: #65776a; font-size: 11px; line-height: 1.7; }
body[data-page="home"] .home-process-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 22px; margin: 0; padding: 0; list-style: none; }
body[data-page="home"] .home-process-steps li { display: flex; align-items: flex-start; gap: 11px; }
body[data-page="home"] .home-process-steps li > span { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border: 1px solid #d5e4d9; border-radius: 9px; background: #fff; color: #267149; font-size: 9px; font-weight: 800; }
body[data-page="home"] .home-process-steps h3 { margin: 2px 0 4px; color: #244735; font-size: 11px; }
body[data-page="home"] .home-process-steps p { margin: 0; color: #697b70; font-size: 10px; line-height: 1.55; }
body[data-page="home"] .home-faq { margin: 0 0 75px; border-top: 0; padding: 0; }
body[data-page="home"] .home-faq-intro h2 { color: #153c2c; font-size: clamp(27px, 3vw, 36px); letter-spacing: -.055em; }
body[data-page="home"] .home-faq-intro > p:not(.benefits-eyebrow) { color: #697a70; font-size: 12px; }
body[data-page="home"] .home-faq-item { border-color: #e3eae5; }
body[data-page="home"] .home-faq-item summary { color: #234333; font-size: 12px; }
body[data-page="home"] .home-faq-item p { color: #6b7b71; font-size: 11px; }
body[data-page="home"] .home-final-cta { display: flex; align-items: center; justify-content: space-between; gap: 25px; border-radius: 17px; background: #173e2d; padding: clamp(22px, 4vw, 38px); }
body[data-page="home"] .home-final-cta .benefits-eyebrow { color: #a5d1b2; }
body[data-page="home"] .home-final-cta h2 { max-width: 570px; margin: 0 0 8px; color: #fff; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.05em; line-height: 1.12; }
body[data-page="home"] .home-final-cta p:last-child { margin: 0; color: #d0dfd4; font-size: 11px; line-height: 1.6; }
body[data-page="home"] .home-final-cta .primary-btn { display: inline-flex; min-height: 45px; flex: 0 0 auto; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; background: #fff; padding: 0 15px; color: #17432f; font-size: 11px; font-weight: 800; text-decoration: none; }
body[data-page="home"] .home-final-cta .primary-btn:hover { background: #eaf4ed; }
body[data-page="home"] .home-loan-example { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: 30px; margin: -48px 0 80px; border: 1px solid #dce9df; border-radius: 16px; background: #f4f8f4; padding: clamp(20px, 3.5vw, 32px); }
body[data-page="home"] .home-loan-example h2 { margin: 5px 0 8px; color: #173c2c; font-size: clamp(20px, 2.4vw, 27px); letter-spacing: -.04em; line-height: 1.2; }
body[data-page="home"] .home-loan-example > div > p:last-child { margin: 0; color: #68796f; font-size: 11px; line-height: 1.65; }
body[data-page="home"] .home-example-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
body[data-page="home"] .home-example-figures > div { min-width: 0; border: 1px solid #e0e9e2; border-radius: 10px; background: #fff; padding: 13px; }
body[data-page="home"] .home-example-figures dt { color: #718077; font-size: 9px; line-height: 1.5; }
body[data-page="home"] .home-example-figures dd { margin: 7px 0 0; color: #173c2c; font-size: clamp(15px, 1.8vw, 20px); font-weight: 800; letter-spacing: -.03em; }
body[data-page="home"] .home-example-figures .home-example-payout { border-color: #bdd7c4; background: #eaf4ed; }
body[data-page="home"] .home-example-figures .home-example-payout dd { color: #176442; }
@media (max-width: 900px) {
  body[data-page="home"] .home-hero { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: 30px; margin-bottom: 70px; }
  body[data-page="home"] .home-copy h1 { font-size: clamp(43px, 6vw, 58px); }
  body[data-page="home"] .home-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-page="home"] .home-product-card:last-child { grid-column: 1 / -1; }
  body[data-page="home"] .home-process { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}
@media (max-width: 680px) {
  body[data-page="home"] .home-page { padding: 29px 18px 48px; }
  body[data-page="home"] .home-loan-example { gap: 15px; margin: -25px 0 45px; padding: 18px 14px; }
  body[data-page="home"] .home-example-figures { grid-template-columns: minmax(0, 1fr); }
  body[data-page="home"] .home-example-figures > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  body[data-page="home"] .home-example-figures dd { margin: 0; font-size: 16px; white-space: nowrap; }
  body[data-page="home"] .home-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-bottom: 58px; padding: 0; }
  body[data-page="home"] .home-copy h1 { max-width: 530px; margin: 19px 0 13px; font-size: clamp(42px, 11vw, 56px); }
  body[data-page="home"] .home-lead { font-size: 13px; }
  body[data-page="home"] .hero-actions { align-items: stretch; flex-direction: column; gap: 6px; margin-top: 20px; }
  body[data-page="home"] .hero-actions .primary-btn { width: 100%; }
  body[data-page="home"] .home-secondary-link { justify-content: center; }
  body[data-page="home"] .home-assurance { gap: 8px 13px; margin-top: 15px; font-size: 9px; }
  body[data-page="home"] .home-welcome-visual { aspect-ratio: 1.28; border-radius: 15px 15px 4px 15px; }
  body[data-page="home"] .home-offer-note { max-width: calc(100% - 26px); margin: -29px 7px 0 auto; padding: 12px; }
  body[data-page="home"] .home-offer-note p { font-size: 9px; }
  body[data-page="home"] .home-products { margin-bottom: 58px; }
  body[data-page="home"] .home-products-heading { align-items: flex-start; flex-direction: column; gap: 8px; margin-bottom: 16px; }
  body[data-page="home"] .home-products-heading h2 { font-size: 28px; }
  body[data-page="home"] .home-products-all { min-height: 36px; padding-left: 0; }
  body[data-page="home"] .home-product-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  body[data-page="home"] .home-product-card, body[data-page="home"] .home-product-card:last-child { min-height: 0; grid-column: auto; padding: 18px; }
  body[data-page="home"] .home-product-card .product-description { min-height: 0; }
  body[data-page="home"] .home-process { gap: 18px; margin-bottom: 58px; border-radius: 14px; padding: 20px 17px; }
  body[data-page="home"] .home-process-heading h2 { font-size: 28px; }
  body[data-page="home"] .home-process-steps { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  body[data-page="home"] .home-faq { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-bottom: 54px; }
  body[data-page="home"] .home-faq-intro h2 { font-size: 29px; }
  body[data-page="home"] .home-final-cta { align-items: stretch; flex-direction: column; gap: 17px; border-radius: 14px; padding: 22px 18px; }
  body[data-page="home"] .home-final-cta h2 { font-size: 27px; }
  body[data-page="home"] .home-final-cta .primary-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .home-product-card { transition: none; }
}
/* One-time agent credential handoff */
.agent-credentials-panel {
  display: grid;
  gap: 18px;
  margin: 0 0 18px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid #c8ddd0;
  border-radius: 16px;
  background: linear-gradient(135deg, #f7fbf8 0%, #edf5ef 100%);
  box-shadow: 0 12px 28px rgb(20 54 37 / 7%);
}
.agent-credentials-panel[hidden] { display: none; }
.agent-credentials-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.agent-credentials-heading h2 { margin: 2px 0 6px; color: #183b2b; font-size: clamp(19px, 2vw, 24px); }
.agent-credentials-heading p:not(.agent-credentials-eyebrow) { margin: 0; color: #596b60; font-size: 14px; }
.agent-credentials-eyebrow { margin: 0; color: #397651; font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }

@media print {
  body.print-statement * { visibility: hidden !important; }
  body.print-statement .loan-detail-card.print-target,
  body.print-statement .loan-detail-card.print-target * { visibility: visible !important; }
  body.print-statement .loan-detail-card.print-target { position: absolute; inset: 0 auto auto 0; width: 100%; max-width: none; box-shadow: none; border: 0; }
  body.print-statement .statement-print-button,
  body.print-statement .loan-history-link { display: none !important; }
  body.print-receipt * { visibility: hidden !important; }
  body.print-receipt #printReceiptCard,
  body.print-receipt #printReceiptCard * { visibility: visible !important; }
  body.print-receipt #printReceiptCard { display: block !important; position: absolute; inset: 0 auto auto 0; width: 100%; max-width: none; box-shadow: none; border: 0; }
}
.agent-credentials-close, .agent-secret-control button { min-height: 38px; padding: 0 12px; border: 1px solid #cad8ce; border-radius: 9px; background: #fff; color: #234b35; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.agent-credentials-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.agent-credential-item { display: grid; align-content: start; gap: 7px; min-width: 0; padding: 13px; border: 1px solid #dce8df; border-radius: 11px; background: #fff; }
.agent-credential-item > span, .agent-credential-item > label { color: #69796f; font-size: 11px; font-weight: 700; }
.agent-credential-item > strong { overflow-wrap: anywhere; color: #183b2b; font-size: 14px; }
.agent-secret-control { display: flex; gap: 8px; }
.agent-secret-control input { width: 100%; min-width: 0; min-height: 40px; border: 1px solid #d5e0d8; border-radius: 8px; padding: 0 10px; color: #183b2b; font: 600 14px ui-monospace, SFMono-Regular, Consolas, monospace; }
.agent-credentials-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.agent-credentials-actions .primary-btn, .agent-credentials-actions .secondary-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 15px; border-radius: 9px; text-decoration: none; font-size: 13px; font-weight: 700; }
.agent-credentials-actions > span { flex-basis: 100%; color: #2d6945; font-size: 12px; font-weight: 600; }
.agent-credentials-note { margin: 0; color: #65756a; font-size: 12px; line-height: 1.55; }
@media (max-width: 760px) {
  .agent-credentials-grid { grid-template-columns: 1fr; }
  .agent-credentials-actions { align-items: stretch; }
  .agent-credentials-actions .primary-btn, .agent-credentials-actions .secondary-btn { width: 100%; }
}
/* Admin agent daily reports */
body[data-page="agent-reports"] #page-slot { display: grid; gap: 18px; }
.agent-report-welcome { margin-bottom: 0; }
.agent-report-controls { padding: 16px 20px; }
.agent-report-filter { display: flex; align-items: end; flex-wrap: wrap; gap: 11px; }
.agent-report-filter label { display: grid; width: min(230px, 100%); gap: 6px; }
.agent-report-filter input { width: 100%; min-height: 43px; box-sizing: border-box; border: 1px solid #d8e2dc; border-radius: 9px; background: #fff; padding: 0 11px; color: #102b45; font: inherit; }
.agent-report-filter .primary-btn, .agent-report-filter .secondary-btn { display: inline-flex; min-height: 43px; align-items: center; justify-content: center; gap: 8px; border-radius: 9px; padding: 0 14px; text-decoration: none; font-size: 12px; font-weight: 700; white-space: nowrap; }
.agent-report-filter .secondary-btn { border: 1px solid #d8e2dc; background: #fff; color: #244437; }
.agent-report-filter .secondary-btn:hover { border-color: #9cbaa8; background: #f7faf8; }
.agent-report-filter button:disabled { opacity: .65; cursor: wait; }
.agent-report-divider { align-self: stretch; width: 1px; min-height: 28px; margin: 0 3px 7px; background: #e3eae5; }
.agent-report-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.agent-report-summary[hidden] { display: none; }
.agent-report-summary-card { display: grid; min-width: 0; gap: 6px; border: 1px solid #e0e8e3; border-radius: 13px; background: #fff; padding: 16px; box-shadow: 0 4px 14px rgb(24 47 35 / 3%); }
.agent-report-summary-label { color: #687a70; font-size: 11px; font-weight: 700; }
.agent-report-summary-value { overflow-wrap: anywhere; color: #183b2b; font-size: clamp(19px, 2vw, 25px); letter-spacing: -.04em; line-height: 1.2; }
.agent-report-summary-note { color: #819087; font-size: 10px; }
.agent-report-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; }
.agent-report-card { display: flex; flex-direction: column; gap: 15px; padding: 17px; box-shadow: 0 5px 18px rgb(22 48 34 / 3%); }
.agent-report-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.agent-report-identity { display: flex; min-width: 0; align-items: center; gap: 11px; }
.agent-report-avatar { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border-radius: 12px; background: #eaf3ed; color: #28724e; font-size: 16px; font-weight: 800; }
.agent-report-agent-title { min-width: 0; }
.agent-report-agent-title h2 { overflow-wrap: anywhere; margin: 0 0 3px; color: #15334d; font-size: 15px; letter-spacing: -.02em; }
.agent-report-agent-title p { margin: 0; color: #7a8981; font-size: 11px; }
.agent-report-status { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; border-radius: 20px; padding: 6px 9px; font-size: 10px; font-weight: 700; }
.agent-report-status::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ""; }
.agent-report-status.is-submitted { background: #eaf5ed; color: #28724e; }
.agent-report-status.is-missing { background: #fff3e4; color: #95621d; }
.agent-report-route { display: grid; gap: 8px; }
.agent-report-route-header { display: flex; justify-content: space-between; gap: 8px; color: #284536; font-size: 11px; }
.agent-report-route-header span { color: #75847b; }
.agent-report-progress { height: 6px; overflow: hidden; border-radius: 10px; background: #edf1ee; }
.agent-report-progress span { display: block; height: 100%; border-radius: inherit; background: #2c8a5a; }
.agent-report-outcomes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.agent-report-outcome-card { display: grid; gap: 2px; border-radius: 10px; background: #f7f9f7; padding: 10px; }
.agent-report-outcome-card strong { color: #183b2b; font-size: 18px; line-height: 1.2; }
.agent-report-outcome-card span { color: #77847c; font-size: 10px; }
.agent-report-cash { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; border-top: 1px solid #edf0ee; padding-top: 12px; }
.agent-report-cash-item { display: grid; min-width: 0; gap: 4px; }
.agent-report-cash-item span { color: #77847c; font-size: 10px; }
.agent-report-cash-item strong { overflow-wrap: anywhere; color: #244437; font-size: 12px; }
.agent-report-cash .cash-pending strong { color: #95621d; }
.agent-report-cash .cash-rejected strong { color: #a34646; }
.agent-report-submitted-at { margin: -3px 0 0; color: #849188; font-size: 10px; }
.agent-report-details { border-top: 1px solid #edf0ee; padding-top: 11px; }
.agent-report-details summary { display: flex; min-height: 34px; align-items: center; justify-content: space-between; gap: 12px; color: #236543; cursor: pointer; font-size: 11px; font-weight: 700; list-style: none; }
.agent-report-details summary::-webkit-details-marker { display: none; }
.agent-report-details summary::after { color: #236543; content: "+"; font-size: 18px; font-weight: 400; }
.agent-report-details[open] summary::after { content: "−"; }
.agent-report-detail-count { margin-left: auto; color: #849188; font-size: 10px; font-weight: 500; }
.agent-report-table-wrap { max-height: 300px; overflow: auto; margin-top: 8px; }
.agent-report-table { min-width: 500px; }
.agent-report-table th, .agent-report-table td { padding: 9px 10px; font-size: 11px; }
.agent-report-outcome { display: inline-flex; border-radius: 20px; background: #eef4ef; padding: 4px 8px; color: #466351; font-size: 10px; font-weight: 700; text-transform: capitalize; }
.agent-report-outcome.outcome-collected { background: #eaf5ed; color: #28724e; }
.agent-report-outcome.outcome-no_payment { background: #fff3e4; color: #95621d; }
.agent-report-outcome.outcome-not_visited { background: #f0f1f2; color: #69737b; }
.agent-report-no-items { margin: 0; border-top: 1px solid #edf0ee; padding-top: 11px; color: #849188; font-size: 11px; line-height: 1.5; }
.agent-report-empty { margin: 0; }
@media (max-width: 900px) {
  .agent-report-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agent-report-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  body[data-page="agent-reports"] #page-slot { gap: 13px; }
  .agent-report-controls { padding: 14px; }
  .agent-report-filter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .agent-report-filter label { grid-column: 1 / -1; width: 100%; }
  .agent-report-filter .primary-btn { grid-column: 1 / -1; width: 100%; }
  .agent-report-divider { display: none; }
  .agent-report-filter .secondary-btn { min-width: 0; min-height: 42px; padding: 0 8px; white-space: normal; text-align: center; }
  .agent-report-summary { gap: 8px; }
  .agent-report-summary-card { padding: 12px; }
  .agent-report-summary-label { font-size: 10px; }
  .agent-report-summary-value { font-size: 18px; }
  .agent-report-summary-note { font-size: 9px; }
  .agent-report-card { gap: 13px; padding: 14px; }
  .agent-report-status { padding: 5px 7px; font-size: 9px; }
  .agent-report-outcomes, .agent-report-cash { gap: 6px; }
  .agent-report-outcome-card { padding: 8px; }
  .agent-report-outcome-card strong { font-size: 16px; }
  .agent-report-outcome-card span, .agent-report-cash-item span { font-size: 9px; }
  .agent-report-cash-item strong { font-size: 10px; }
}
/* Balance the desktop hero columns by keeping the image and process notes compact. */
@media (min-width: 901px) {
  body[data-page="home"] .home-welcome-visual { aspect-ratio: 1.95; }
  body[data-page="home"] .journey-panel { display: grid; grid-template-columns: 1fr; gap: 12px; padding-top: 17px; }
  body[data-page="home"] .summary-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin: 0; }
  body[data-page="home"] .summary-step { flex-direction: column; gap: 4px; padding: 0; }
  body[data-page="home"] .summary-step + .summary-step { border-top: 0; border-left: 1px solid #e3e9e3; padding-left: 12px; }
  body[data-page="home"] .step-number { width: auto; flex-basis: auto; }
  body[data-page="home"] .summary-step p { font-size: 10px; }
}
/* Keep the redesigned photo crop after all legacy homepage rules. */
@media (min-width: 901px) {
  body[data-page="home"] .home-welcome-visual { aspect-ratio: 1.12; }
}
/* Shared public site header and footer */
.public-header { min-height: 74px; border-bottom: 1px solid #e6ede8; background: rgb(255 255 255 / 96%); box-shadow: 0 4px 18px rgb(19 48 33 / 3%); }
.public-header .brand { gap: 11px; }
.public-header .brand-mark { width: 39px; height: 39px; border: 1px solid #2a7950; border-radius: 12px; background: #176442; box-shadow: 0 4px 10px rgb(23 100 66 / 16%); }
.public-header .brand-name { color: #163b2b; font-size: 13px; letter-spacing: .12em; }
.public-header .brand-sub { color: #77867d; font-size: 8px; letter-spacing: .12em; }
.public-nav { gap: 7px clamp(8px, 1.1vw, 17px); }
.public-nav a:not(.header-btn) { min-height: 38px; display: inline-flex; align-items: center; border-radius: 8px; padding: 0 10px; color: #5e7065; font-size: 11px; font-weight: 650; transition: color .16s ease, background-color .16s ease; }
.public-nav a:not(.header-btn):hover, .public-nav a.is-active { background: #eff6f1; color: #176442; }
.public-nav .public-login { color: #234735; font-weight: 750; }
.public-nav .public-apply { min-height: 41px; border: 1px solid #176442; border-radius: 8px; background: #176442; box-shadow: 0 5px 13px rgb(23 100 66 / 15%); padding-inline: 15px; font-size: 11px; font-weight: 750; }
.public-nav .public-apply:hover { border-color: #0e5033; background: #0e5033; }
.public-menu-toggle { border-color: #dbe8df; color: #176442; }
.public-header a:focus-visible, .public-menu-toggle:focus-visible { outline: 3px solid rgb(40 114 78 / 28%); outline-offset: 3px; }
body[data-role] .site-footer { position: relative; overflow: hidden; border: 0; background: #143b2b; color: #fff; }
body[data-role] .site-footer::before { height: 3px; background: linear-gradient(90deg, #54a876, #a6cfad 52%, #ddba69); }
body[data-role] .site-footer-inner { max-width: 1240px; padding: 37px clamp(18px, 4vw, 42px) 20px; }
body[data-role] .site-footer-top { display: grid; grid-template-columns: minmax(220px, .85fr) minmax(0, 1.15fr); align-items: start; gap: 32px; padding-bottom: 30px; }
body[data-role] .site-footer-brand .brand-mark { border: 1px solid rgb(255 255 255 / 17%); background: rgb(255 255 255 / 10%); box-shadow: none; }
body[data-role] .site-footer-brand .brand-name { color: #fff; }
body[data-role] .site-footer-brand .brand-sub { color: #b1cabc !important; }
body[data-role] .site-footer-about p { max-width: 300px; margin-top: 12px; color: #c0d2c7; font-size: 11px; line-height: 1.7; }
body[data-role] .site-footer-navigation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; justify-self: end; min-width: min(100%, 380px); }
body[data-role] .site-footer-link-group { display: grid; align-content: start; justify-items: start; gap: 10px; }
body[data-role] .site-footer-link-group strong { margin-bottom: 3px; color: #a9cbb5; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
body[data-role] .site-footer-link-group a { color: #edf4ef; font-size: 11px; font-weight: 550; text-decoration: none; transition: color .15s ease; }
body[data-role] .site-footer-link-group a:hover { color: #a9d5b5; text-decoration: underline; text-underline-offset: 3px; }
body[data-role] .site-footer-bottom { border-top: 1px solid rgb(255 255 255 / 15%); padding-top: 15px; color: #adc3b5; }
body[data-role] .site-footer-bottom small, body[data-role] .site-footer-bottom > span { font-size: 9px; }
@media (min-width: 1024px) {
  .public-header { padding-inline: max(24px, calc((100vw - 1240px) / 2)); }
}
@media (max-width: 1023px) {
  .public-header { min-height: 68px; }
  .public-nav a:not(.header-btn) { justify-content: flex-start; }
  .public-nav .public-login { background: #f7faf7; }
}
@media (max-width: 680px) {
  body[data-role] .site-footer-inner { padding: 28px 19px 17px; }
  body[data-role] .site-footer-top { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-bottom: 21px; }
  body[data-role] .site-footer-navigation { justify-self: stretch; min-width: 0; }
  body[data-role] .site-footer-bottom { flex-direction: column; gap: 7px; }
}

/* Keep the public pages on the green brand palette, including legacy components. */
body[data-role="public"] {
  --navy: #153c2c;
  --navy-2: #1d543b;
  --blue: #28724e;
  --blue-soft: #eff6f1;
  --muted: #607468;
  --faint: #849188;
  --line: #e1e9e2;
  --page: #fbfcfa;
}
body[data-role="public"] .page-intro h1,
body[data-role="public"] .loan-product-card h2 { color: #153c2c; }
body[data-role="public"] .page-intro > p:last-child,
body[data-role="public"] .loan-product-card .product-description { color: #68796f; }
body[data-role="public"] .primary-btn:hover { background: #0e5033; }

/* Shared green visual theme for signed-in dashboards. Public pages keep their own styling. */
body[data-role="admin"],
body[data-role="agent"],
body[data-role="customer"] {
  --navy: #164b36;
  --navy-2: #1d6547;
  --ink: #1c3025;
  --muted: #63766a;
  --line: #dfeae2;
  --page: #f4f8f5;
  --blue: #18764c;
  --blue-soft: #e8f4ec;
  --green: #17824a;
  --green-soft: #e8f6ee;
  --shadow: 0 2px 5px rgb(22 75 54 / .035), 0 12px 30px rgb(22 75 54 / .055);
}

body[data-role="admin"] .sidebar,
body[data-role="agent"] .sidebar,
body[data-role="customer"] .sidebar {
  background: linear-gradient(180deg, #164b36 0%, #103a2a 100%);
}

body[data-role="admin"] .sidebar .brand-mark,
body[data-role="agent"] .sidebar .brand-mark,
body[data-role="customer"] .sidebar .brand-mark {
  background: linear-gradient(145deg, #39a56e, #1b7650);
}

body[data-role="admin"] .nav-item.active,
body[data-role="agent"] .nav-item.active,
body[data-role="customer"] .nav-item.active {
  border-color: rgb(151 220 178 / .18);
  background: rgb(94 180 126 / .18);
  box-shadow: inset 3px 0 #63c58a;
}

body[data-role="admin"] .topbar,
body[data-role="agent"] .topbar,
body[data-role="customer"] .topbar {
  border-bottom-color: #dfeae2;
  background: rgb(255 255 255 / .96);
}

body[data-role="admin"] .dashboard-panel,
body[data-role="agent"] .dashboard-panel,
body[data-role="customer"] .dashboard-panel,
body[data-role="admin"] .customer-welcome,
body[data-role="agent"] .customer-welcome,
body[data-role="customer"] .customer-welcome,
body[data-role="admin"] .metric,
body[data-role="agent"] .metric,
body[data-role="customer"] .metric {
  border-color: #dfe9e2;
  box-shadow: 0 6px 22px rgb(22 75 54 / .045);
}

body[data-role="admin"][data-page="overview"] .admin-overview-metrics .metric:nth-child(2),
body[data-role="admin"][data-page="overview"] .admin-overview-metrics .metric:nth-child(3),
body[data-role="customer"][data-page="dashboard"] .customer-dashboard-metrics .metric:nth-child(2),
body[data-role="customer"][data-page="dashboard"] .customer-dashboard-metrics .metric:nth-child(3),
body[data-role="agent"][data-page="route"] .agent-dashboard-metrics .metric:nth-child(2),
body[data-role="agent"][data-page="route"] .agent-dashboard-metrics .metric:nth-child(3) {
  border-top-color: #a9d1b5;
  background: linear-gradient(140deg, #fff, #f3f8f4);
}

body[data-role="admin"] .dashboard-panel-heading,
body[data-role="agent"] .dashboard-panel-heading,
body[data-role="customer"] .dashboard-panel-heading {
  border-bottom-color: #e8efe9;
}

body[data-role="admin"] .primary-btn,
body[data-role="agent"] .primary-btn,
body[data-role="customer"] .primary-btn {
  background: #176b46;
  box-shadow: 0 7px 17px rgb(23 107 70 / .16);
}

body[data-role="admin"] .primary-btn:hover,
body[data-role="agent"] .primary-btn:hover,
body[data-role="customer"] .primary-btn:hover {
  background: #105637;
}

body[data-role="admin"] .page-kicker,
body[data-role="agent"] .page-kicker,
body[data-role="customer"] .page-kicker,
body[data-role="admin"] .text-link,
body[data-role="agent"] .text-link,
body[data-role="customer"] .text-link {
  color: #18764c;
}

body[data-role="admin"] .data-table th,
body[data-role="agent"] .data-table th,
body[data-role="customer"] .data-table th { background: #eff5f0; color: #52705e; }
body[data-role="admin"] .data-table tbody tr:hover,
body[data-role="agent"] .data-table tbody tr:hover,
body[data-role="customer"] .data-table tbody tr:hover { background: #f4f9f5; }
body[data-role="admin"] .notification-mark-all,
body[data-role="agent"] .notification-mark-all,
body[data-role="customer"] .notification-mark-all,
body[data-role="admin"] .notification-category,
body[data-role="agent"] .notification-category,
body[data-role="customer"] .notification-category { color: #18764c; }
body[data-role="admin"] .notification-entry.unread,
body[data-role="agent"] .notification-entry.unread,
body[data-role="customer"] .notification-entry.unread { background: #f1f7f2; }
body[data-role="admin"] .notification-entry-content[href]:hover,
body[data-role="agent"] .notification-entry-content[href]:hover,
body[data-role="customer"] .notification-entry-content[href]:hover { background: #eaf3ec; }
body[data-role="admin"] :is(input, select, textarea):focus,
body[data-role="agent"] :is(input, select, textarea):focus,
body[data-role="customer"] :is(input, select, textarea):focus {
  border-color: #4a9c6d;
  box-shadow: 0 0 0 3px rgb(53 143 88 / .14);
  outline: none;
}

/* Consistent page-level polish for every dashboard, including older sections. */
body[data-role="admin"],
body[data-role="agent"],
body[data-role="customer"] { color: #20352a; }
body[data-role="admin"] main,
body[data-role="agent"] main,
body[data-role="customer"] main {
  background:
    radial-gradient(ellipse at 90% 0, rgb(45 133 83 / .075), transparent 32rem),
    #f4f8f5;
}
body[data-role="admin"] #page-slot,
body[data-role="agent"] #page-slot,
body[data-role="customer"] #page-slot { width: 100%; }
body[data-role="admin"] .customer-welcome,
body[data-role="agent"] .customer-welcome,
body[data-role="customer"] .customer-welcome {
  position: relative;
  overflow: hidden;
  border: 1px solid #d8e8dc;
  border-radius: 18px;
  background: linear-gradient(112deg, #fff 0%, #f5faf6 72%, #edf6ef 100%);
  box-shadow: 0 8px 26px rgb(22 75 54 / .055);
}
body[data-role="admin"] .customer-welcome::after,
body[data-role="agent"] .customer-welcome::after,
body[data-role="customer"] .customer-welcome::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: linear-gradient(#55ad76, #176b46);
  content: "";
}
body[data-role="admin"] .customer-welcome h1,
body[data-role="agent"] .customer-welcome h1,
body[data-role="customer"] .customer-welcome h1,
body[data-role="admin"] .customer-welcome h2,
body[data-role="agent"] .customer-welcome h2,
body[data-role="customer"] .customer-welcome h2,
body[data-role="admin"] .dashboard-panel-heading h2,
body[data-role="agent"] .dashboard-panel-heading h2,
body[data-role="customer"] .dashboard-panel-heading h2 { color: #173d2b; }
body[data-role="admin"] .dashboard-panel,
body[data-role="agent"] .dashboard-panel,
body[data-role="customer"] .dashboard-panel {
  border-radius: 16px;
  background: rgb(255 255 255 / .97);
  box-shadow: 0 5px 20px rgb(25 75 47 / .045);
}
body[data-role="admin"] .dashboard-panel-heading,
body[data-role="agent"] .dashboard-panel-heading,
body[data-role="customer"] .dashboard-panel-heading { padding-bottom: 13px; }
body[data-role="admin"] .secondary-btn,
body[data-role="agent"] .secondary-btn,
body[data-role="customer"] .secondary-btn {
  border-color: #d5e4d9;
  background: #fff;
  color: #285c3c;
}
body[data-role="admin"] .secondary-btn:hover,
body[data-role="agent"] .secondary-btn:hover,
body[data-role="customer"] .secondary-btn:hover {
  border-color: #91bd9d;
  background: #f1f8f3;
  color: #174a2e;
}
body[data-role="admin"] .table-wrap,
body[data-role="agent"] .table-wrap,
body[data-role="customer"] .table-wrap { border: 1px solid #e1ebe3; }
body[data-role="admin"] .data-table th,
body[data-role="agent"] .data-table th,
body[data-role="customer"] .data-table th {
  border-bottom: 1px solid #dce9df;
  background: #f0f6f1;
}
body[data-role="admin"] .data-table td,
body[data-role="agent"] .data-table td,
body[data-role="customer"] .data-table td { border-bottom-color: #edf2ee; }
body[data-role="admin"] :is(.admin-collection-card, .customer-loan-card, .investment-plan-card, .investment-list-card, .repayment-card, .history-card, .calendar-card),
body[data-role="agent"] :is(.admin-collection-card, .customer-loan-card, .investment-plan-card, .investment-list-card, .repayment-card, .history-card, .calendar-card),
body[data-role="customer"] :is(.admin-collection-card, .customer-loan-card, .investment-plan-card, .investment-list-card, .repayment-card, .history-card, .calendar-card) {
  border-color: #e0eae2;
  box-shadow: 0 3px 12px rgb(24 73 45 / .035);
}
body[data-role="admin"] .page-kicker,
body[data-role="agent"] .page-kicker,
body[data-role="customer"] .page-kicker { letter-spacing: .11em; }
@media (max-width: 680px) {
  body[data-role="admin"] .customer-welcome,
  body[data-role="agent"] .customer-welcome,
  body[data-role="customer"] .customer-welcome { border-radius: 14px; }
  body[data-role="admin"] .dashboard-panel,
  body[data-role="agent"] .dashboard-panel,
  body[data-role="customer"] .dashboard-panel { border-radius: 14px; }
}

/* Public loan, calculator, application, and sign-in pages share the same brand language. */
body[data-role="public"] { color: #20352a; }
body[data-role="public"] main,
body[data-role="public"] .public-wrap {
  background-color: #fbfcfa;
}
body[data-role="public"] .page-intro {
  border-color: #deeadf;
  background: linear-gradient(125deg, #fff, #f2f8f3);
}
body[data-role="public"] .page-intro h1 { color: #173d2b; }
body[data-role="public"] :is(.loan-product-card, .calculator-form, .application-form, .application-aside, .form-card, .benefit-card, .products-footer) {
  border-color: #dfebe1;
  box-shadow: 0 8px 26px rgb(22 75 54 / .055);
}
body[data-role="public"] .primary-btn,
body[data-role="public"] .header-btn { background: #176b46; }
body[data-role="public"] .primary-btn:hover,
body[data-role="public"] .header-btn:hover { background: #105637; }
body[data-role="public"] :is(input, select, textarea):focus {
  border-color: #4a9c6d;
  box-shadow: 0 0 0 3px rgb(53 143 88 / .14);
  outline: none;
}

/* Homepage loan options carousel: manual controls, touch scrolling, no autoplay. */
body[data-page="home"] .home-product-actions { display: flex; align-items: center; gap: 18px; }
body[data-page="home"] .home-carousel-controls { display: flex; gap: 7px; }
body[data-page="home"] .home-carousel-controls[hidden] { display: none; }
body[data-page="home"] .home-carousel-controls button { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid #d9e5dc; border-radius: 50%; background: #fff; color: #176442; cursor: pointer; font-size: 17px; transition: background .16s ease, border-color .16s ease, color .16s ease; }
body[data-page="home"] .home-carousel-controls button:hover:not(:disabled) { border-color: #176442; background: #176442; color: #fff; }
body[data-page="home"] .home-carousel-controls button:disabled { color: #aab6ae; cursor: default; }
body[data-page="home"] .home-carousel-controls button:focus-visible,
body[data-page="home"] #homeProductGrid:focus-visible { outline: 3px solid rgb(40 114 78 / 28%); outline-offset: 3px; }
body[data-page="home"] #homeProductGrid { grid-template-columns: none; grid-auto-columns: calc((100% - 18px) / 2); grid-auto-flow: column; overflow-x: auto; overscroll-behavior-inline: contain; scroll-behavior: smooth; scroll-snap-type: inline mandatory; scrollbar-width: thin; scrollbar-color: #bdd7c4 transparent; padding: 3px 2px 15px; }
body[data-page="home"] #homeProductGrid .home-product-card { min-width: 0; scroll-snap-align: start; }
@media (max-width: 900px) {
  body[data-page="home"] #homeProductGrid { grid-auto-columns: 68%; }
}
@media (max-width: 680px) {
  body[data-page="home"] .home-products-heading { align-items: flex-start; }
  body[data-page="home"] .home-product-actions { width: 100%; justify-content: space-between; gap: 10px; }
  body[data-page="home"] .home-carousel-controls button { width: 35px; height: 35px; }
  body[data-page="home"] #homeProductGrid { grid-auto-columns: 86%; gap: 12px; padding-bottom: 12px; }
}

/* Homepage loan options carousel: manual controls, touch scrolling, no autoplay. */
body[data-page="home"] .home-products-heading { gap: 16px; }
body[data-page="home"] .home-product-actions { display: flex; align-items: center; gap: 18px; }
body[data-page="home"] .home-carousel-controls { display: flex; gap: 7px; }
body[data-page="home"] .home-carousel-controls[hidden] { display: none; }
body[data-page="home"] .home-carousel-controls button { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid #d9e5dc; border-radius: 50%; background: #fff; color: #176442; cursor: pointer; font-size: 17px; transition: background .16s ease, border-color .16s ease, color .16s ease; }
body[data-page="home"] .home-carousel-controls button:hover:not(:disabled) { border-color: #176442; background: #176442; color: #fff; }
body[data-page="home"] .home-carousel-controls button:disabled { color: #aab6ae; cursor: default; }
body[data-page="home"] .home-carousel-controls button:focus-visible,
body[data-page="home"] #homeProductGrid:focus-visible { outline: 3px solid rgb(40 114 78 / 28%); outline-offset: 3px; }
body[data-page="home"] #homeProductGrid { grid-template-columns: none; grid-auto-columns: calc((100% - 18px) / 2); grid-auto-flow: column; overflow-x: auto; overscroll-behavior-inline: contain; scroll-behavior: smooth; scroll-snap-type: inline mandatory; scrollbar-width: thin; scrollbar-color: #bdd7c4 transparent; padding: 3px 2px 15px; }
body[data-page="home"] #homeProductGrid .home-product-card { min-width: 0; scroll-snap-align: start; }
@media (max-width: 900px) {
  body[data-page="home"] #homeProductGrid { grid-auto-columns: 68%; }
}
@media (max-width: 680px) {
  body[data-page="home"] .home-products-heading { align-items: flex-start; }
  body[data-page="home"] .home-product-actions { width: 100%; justify-content: space-between; gap: 10px; }
  body[data-page="home"] .home-carousel-controls button { width: 35px; height: 35px; }
  body[data-page="home"] #homeProductGrid { grid-auto-columns: 86%; gap: 12px; padding-bottom: 12px; }
}
/* Admin operational data reset */
.admin-overview-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.admin-overview-actions .header-btn { width: auto; min-height: 42px; }
.reset-scope-grid,
.reset-counts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.reset-scope-grid article,
.reset-count-card {
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid #dce9e0;
  border-radius: 14px;
  background: #f7fbf8;
}
.reset-scope-grid strong { color: #173d2b; }
.reset-scope-grid p { margin: 7px 0 0; color: #53675b; line-height: 1.65; }
.reset-counts { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.reset-count-card { display: flex; flex-direction: column; gap: 9px; }
.reset-count-card span { color: #53675b; font-size: 12px; line-height: 1.45; text-transform: capitalize; }
.reset-count-card strong { color: #173d2b; font-size: 24px; font-variant-numeric: tabular-nums; }
.reset-danger-panel { border-color: #efd5cd; }
.reset-submit { background: #a33a28; border-color: #a33a28; }
.reset-submit:hover { background: #842d20; border-color: #842d20; }
@media (max-width: 680px) {
  .admin-overview-actions { width: 100%; align-items: flex-start; }
  .admin-overview-actions .header-btn { width: auto; }
  .reset-scope-grid { grid-template-columns: 1fr; }
  .reset-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Shared small-screen layout for signed-in dashboards and their operational pages. */
@media (max-width: 1023px) {
  body[data-role="admin"] .content,
  body[data-role="agent"] .content,
  body[data-role="customer"] .content { width: 100%; min-width: 0; padding-left: 0; }
  body[data-role="admin"] .topbar,
  body[data-role="agent"] .topbar,
  body[data-role="customer"] .topbar { width: 100%; min-width: 0; }
}
@media (max-width: 680px) {
  body[data-role="admin"] .topbar,
  body[data-role="agent"] .topbar,
  body[data-role="customer"] .topbar {
    height: auto;
    min-height: 66px;
    gap: 8px;
    padding: 9px 12px;
  }
  body[data-role="admin"] .welcome,
  body[data-role="agent"] .welcome,
  body[data-role="customer"] .welcome { flex: 1 1 auto; gap: 8px; min-width: 0; }
  body[data-role="admin"] .welcome > div,
  body[data-role="agent"] .welcome > div,
  body[data-role="customer"] .welcome > div { min-width: 0; }
  body[data-role="admin"] .date-line,
  body[data-role="agent"] .date-line,
  body[data-role="customer"] .date-line { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body[data-role="admin"] .topbar h1,
  body[data-role="agent"] .topbar h1,
  body[data-role="customer"] .topbar h1 { max-width: 100%; overflow-wrap: anywhere; font-size: clamp(16px, 4.4vw, 19px); line-height: 1.2; }
  body[data-role="admin"] .top-actions,
  body[data-role="agent"] .top-actions,
  body[data-role="customer"] .top-actions { flex: 0 0 auto; gap: 5px; }
  body[data-role="admin"] .notification-bell,
  body[data-role="agent"] .notification-bell,
  body[data-role="customer"] .notification-bell { display: grid; width: 40px; height: 40px; place-items: center; padding: 0; }
  body[data-role="admin"] .notification-bell > span:not(.notification-count),
  body[data-role="agent"] .notification-bell > span:not(.notification-count),
  body[data-role="customer"] .notification-bell > span:not(.notification-count) { display: none; }
  body[data-role="admin"] .profile-btn,
  body[data-role="agent"] .profile-btn,
  body[data-role="customer"] .profile-btn { flex: 0 0 auto; gap: 0; padding: 0; }
  body[data-role="admin"] .profile-btn .profile,
  body[data-role="agent"] .profile-btn .profile,
  body[data-role="customer"] .profile-btn .profile { display: none; }
  body[data-role="admin"] .avatar,
  body[data-role="agent"] .avatar,
  body[data-role="customer"] .avatar { width: 36px; height: 36px; }
  body[data-role="admin"] .notification-panel,
  body[data-role="agent"] .notification-panel,
  body[data-role="customer"] .notification-panel { position: fixed; top: 72px; right: 10px; width: min(390px, calc(100vw - 20px)); }

  body[data-role="admin"] .page,
  body[data-role="agent"] .page,
  body[data-role="customer"] .page { width: 100%; min-width: 0; padding: 15px 12px 28px; }
  body[data-role="admin"] #page-slot,
  body[data-role="agent"] #page-slot,
  body[data-role="customer"] #page-slot { width: 100%; min-width: 0; max-width: 100%; }
  body[data-role="admin"] :is(.dashboard-panel, .customer-welcome, .form-card),
  body[data-role="agent"] :is(.dashboard-panel, .customer-welcome, .form-card),
  body[data-role="customer"] :is(.dashboard-panel, .customer-welcome, .form-card) { min-width: 0; max-width: 100%; }
  body[data-role="admin"] .dashboard-panel,
  body[data-role="agent"] .dashboard-panel,
  body[data-role="customer"] .dashboard-panel { padding: 15px; }
  body[data-role="admin"] .dashboard-panel-heading,
  body[data-role="agent"] .dashboard-panel-heading,
  body[data-role="customer"] .dashboard-panel-heading { min-width: 0; flex-wrap: wrap; align-items: flex-start; gap: 9px 12px; }
  body[data-role="admin"] .dashboard-panel-heading > div,
  body[data-role="agent"] .dashboard-panel-heading > div,
  body[data-role="customer"] .dashboard-panel-heading > div { min-width: 0; max-width: 100%; }
  body[data-role="admin"] .dashboard-panel-heading h2,
  body[data-role="agent"] .dashboard-panel-heading h2,
  body[data-role="customer"] .dashboard-panel-heading h2 { overflow-wrap: anywhere; font-size: clamp(16px, 4.5vw, 19px); line-height: 1.3; }
  body[data-role="admin"] .customer-welcome,
  body[data-role="agent"] .customer-welcome,
  body[data-role="customer"] .customer-welcome { min-width: 0; flex-wrap: wrap; gap: 13px; padding: 17px; }
  body[data-role="admin"] .customer-welcome > div,
  body[data-role="agent"] .customer-welcome > div,
  body[data-role="customer"] .customer-welcome > div { min-width: 0; max-width: 100%; }
  body[data-role="admin"] .customer-welcome :is(h1, h2),
  body[data-role="agent"] .customer-welcome :is(h1, h2),
  body[data-role="customer"] .customer-welcome :is(h1, h2) { overflow-wrap: anywhere; }
  body[data-role="admin"] .metrics:not(.admin-overview-metrics),
  body[data-role="agent"] .metrics:not(.agent-dashboard-metrics),
  body[data-role="customer"] .metrics:not(.customer-dashboard-metrics) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  body[data-role="admin"] .metric,
  body[data-role="agent"] .metric,
  body[data-role="customer"] .metric { min-width: 0; padding: 13px; }
  body[data-role="admin"] .metric-value,
  body[data-role="agent"] .metric-value,
  body[data-role="customer"] .metric-value { overflow-wrap: anywhere; font-size: clamp(19px, 6vw, 25px); }

  body[data-role="admin"] .form-grid,
  body[data-role="agent"] .form-grid,
  body[data-role="customer"] .form-grid { grid-template-columns: minmax(0, 1fr); }
  body[data-role="admin"] .form-grid > *,
  body[data-role="agent"] .form-grid > *,
  body[data-role="customer"] .form-grid > * { min-width: 0; max-width: 100%; grid-column: auto; }
  body[data-role="admin"] :is(input, select, textarea),
  body[data-role="agent"] :is(input, select, textarea),
  body[data-role="customer"] :is(input, select, textarea) { min-width: 0; max-width: 100%; }
  body[data-role="admin"] .table-wrap,
  body[data-role="agent"] .table-wrap,
  body[data-role="customer"] .table-wrap { width: 100%; min-width: 0; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
  body[data-role="admin"] .table-wrap table,
  body[data-role="agent"] .table-wrap table,
  body[data-role="customer"] .table-wrap table { max-width: 100%; }
  body[data-role="admin"] :is(.main-grid, .section-grid, .dashboard-grid),
  body[data-role="agent"] :is(.main-grid, .section-grid, .dashboard-grid),
  body[data-role="customer"] :is(.main-grid, .section-grid, .dashboard-grid) { grid-template-columns: minmax(0, 1fr); }
  body[data-role="admin"] :is(.button-row, .action-row, .form-actions),
  body[data-role="agent"] :is(.button-row, .action-row, .form-actions),
  body[data-role="customer"] :is(.button-row, .action-row, .form-actions) { min-width: 0; flex-wrap: wrap; }
  body[data-role="admin"] .site-footer-inner,
  body[data-role="agent"] .site-footer-inner,
  body[data-role="customer"] .site-footer-inner { padding-right: 16px; padding-left: 16px; }
}
@media (max-width: 380px) {
  body[data-role="admin"] .page,
  body[data-role="agent"] .page,
  body[data-role="customer"] .page { padding-right: 9px; padding-left: 9px; }
  body[data-role="admin"] .page .dashboard-panel,
  body[data-role="agent"] .page .dashboard-panel,
  body[data-role="customer"] .page .dashboard-panel { padding: 12px; }
  body[data-role="admin"] .metrics:not(.admin-overview-metrics),
  body[data-role="agent"] .metrics:not(.agent-dashboard-metrics),
  body[data-role="customer"] .metrics:not(.customer-dashboard-metrics) { grid-template-columns: minmax(0, 1fr); }
  body[data-role="admin"] .notification-panel,
  body[data-role="agent"] .notification-panel,
  body[data-role="customer"] .notification-panel { right: 6px; width: calc(100vw - 12px); }
}

/* Mobile dashboard app navigation replaces the full website footer. */
.mobile-app-nav { display: none; }
@media (max-width: 680px) {
  body[data-role="admin"] .sidebar,
  body[data-role="agent"] .sidebar,
  body[data-role="customer"] .sidebar {
    z-index: 1000;
    width: min(340px, 88vw);
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 18px 0 48px rgb(8 28 18 / 28%);
  }
  body[data-role="admin"] .brand-row,
  body[data-role="agent"] .brand-row,
  body[data-role="customer"] .brand-row { flex: 0 0 auto; padding-top: env(safe-area-inset-top); }
  body[data-role="admin"] .sidebar-nav-wrap,
  body[data-role="agent"] .sidebar-nav-wrap,
  body[data-role="customer"] .sidebar-nav-wrap {
    min-height: 0;
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    padding-bottom: 14px;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  body[data-role="admin"] .sidebar-bottom,
  body[data-role="agent"] .sidebar-bottom,
  body[data-role="customer"] .sidebar-bottom {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    margin-top: 0;
    border-top: 1px solid rgb(255 255 255 / 14%);
    background: #103a2a;
    padding: 9px 14px 10px;
  }
  body[data-role="admin"].sidebar-open,
  body[data-role="agent"].sidebar-open,
  body[data-role="customer"].sidebar-open { overflow: hidden; }
  body[data-role="admin"].sidebar-open .mobile-app-nav,
  body[data-role="agent"].sidebar-open .mobile-app-nav,
  body[data-role="customer"].sidebar-open .mobile-app-nav { visibility: hidden; pointer-events: none; }
  body[data-role="admin"] .site-footer,
  body[data-role="agent"] .site-footer,
  body[data-role="customer"] .site-footer { display: none; }
  body[data-role="admin"] .content,
  body[data-role="agent"] .content,
  body[data-role="customer"] .content { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  body[data-role="admin"] .mobile-app-nav,
  body[data-role="agent"] .mobile-app-nav,
  body[data-role="customer"] .mobile-app-nav {
    position: fixed;
    z-index: 900;
    right: auto;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 50%;
    display: flex;
    flex-direction: row;
    width: min(560px, calc(100vw - 24px));
    min-height: 68px;
    align-items: stretch;
    justify-content: space-around;
    gap: 2px;
    border: 1px solid #e0e9e2;
    border-radius: 22px;
    background: rgb(255 255 255 / 97%);
    padding: 7px 8px;
    box-shadow: 0 12px 36px rgb(18 55 37 / 18%);
    backdrop-filter: blur(16px);
    transform: translateX(-50%);
  }
  body[data-role="admin"] .mobile-app-nav .nav-item,
  body[data-role="agent"] .mobile-app-nav .nav-item,
  body[data-role="customer"] .mobile-app-nav .nav-item,
  body[data-role="admin"] .mobile-app-more,
  body[data-role="agent"] .mobile-app-more,
  body[data-role="customer"] .mobile-app-more {
    position: relative;
    display: flex;
    width: auto;
    height: auto;
    min-width: 0;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    padding: 5px 2px;
    color: #718176;
    font: inherit;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  body[data-role="admin"] .mobile-app-nav .nav-item > span,
  body[data-role="agent"] .mobile-app-nav .nav-item > span,
  body[data-role="customer"] .mobile-app-nav .nav-item > span,
  body[data-role="admin"] .mobile-app-more > span,
  body[data-role="agent"] .mobile-app-more > span,
  body[data-role="customer"] .mobile-app-more > span { display: flex; flex-direction: column; align-items: center; gap: 3px; white-space: nowrap; }
  body[data-role="admin"] .mobile-app-nav .nav-icon,
  body[data-role="agent"] .mobile-app-nav .nav-icon,
  body[data-role="customer"] .mobile-app-nav .nav-icon { width: 19px; height: 19px; }
  body[data-role="admin"] .mobile-app-nav .nav-item.active,
  body[data-role="agent"] .mobile-app-nav .nav-item.active,
  body[data-role="customer"] .mobile-app-nav .nav-item.active,
  body[data-role="admin"] .mobile-app-more.active,
  body[data-role="agent"] .mobile-app-more.active,
  body[data-role="customer"] .mobile-app-more.active { background: #edf6ef; color: #176442; }
  body[data-role="admin"] .mobile-app-nav .nav-count,
  body[data-role="agent"] .mobile-app-nav .nav-count,
  body[data-role="customer"] .mobile-app-nav .nav-count { position: absolute; top: 0; left: calc(50% + 7px); min-width: 16px; padding: 2px 4px; background: #b63832; color: white; font-size: 9px; text-align: center; }
  body[data-role="admin"] .mobile-app-nav :focus-visible,
  body[data-role="agent"] .mobile-app-nav :focus-visible,
  body[data-role="customer"] .mobile-app-nav :focus-visible { outline: 3px solid rgb(40 114 78 / 30%); outline-offset: -2px; }
}

/* Keep dashboard names clear of decorative brand color. */
body[data-role="customer"][data-page="dashboard"] .customer-dashboard-welcome {
  border-color: #e3e9e4;
  background: #fff;
  box-shadow: 0 8px 24px rgb(28 55 39 / 5%);
}
body[data-role="customer"][data-page="dashboard"] .customer-dashboard-welcome::after { display: none; }
body[data-role="customer"][data-page="dashboard"] .customer-dashboard-welcome h2,
body[data-role="customer"][data-page="dashboard"] .customer-dashboard-welcome h2 span { color: #20352a; }
