:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #eef4f0;
  --ink: #162118;
  --soft: #566157;
  --muted: #7b837b;
  --line: #d0d8d3;
  --green: #1b6b43;
  --green-dark: #0c2d1d;
  --green-soft: #e6f3ea;
  --gold: #e3a439;
  --red: #b94d43;
  --red-soft: #fbeae7;
  --shadow: 0 18px 45px rgba(20, 36, 25, .07);
  --header-frost: #ffffff;
  --menu-popup: #ffffff;
  --brand-ink: #0f442b;
  --field-filled: #ffffff;
  --analytics-track: #e8eeea;
  --accent-ink: #0c2d1d;
  --switch-track: #c9cec9;
  --sans: Onest, "Avenir Next", sans-serif;
  --serif: Onest, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #111111;
    --surface-2: #1a1a1a;
    --ink: #f2f2f2;
    --soft: #b3b3b3;
    --muted: #8c8c8c;
    --line: #2e2e2e;
    --green: #3db96d;
    --green-dark: #0f5c36;
    --green-soft: rgba(61, 185, 109, .18);
    --red-soft: rgba(185, 77, 67, .2);
    --shadow: 0 22px 50px rgba(0, 0, 0, .55);
    --header-frost: #000000;
    --menu-popup: #111111;
    --brand-ink: #b8e6c8;
    --field-filled: #161616;
    --analytics-track: #1a1a1a;
    --accent-ink: #b8e6c8;
    --switch-track: #3a3a3a;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: light dark; background: var(--bg); scrollbar-gutter: stable; }
@media (prefers-color-scheme: dark) {
  html { color-scheme: dark; }
}
html.is-nav-locked { overscroll-behavior: none; }
html.is-nav-locked body {
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}
html.is-wave-locked,
html:has(.app.is-awaiting-dossier),
html:has(.app.is-cabinet-wave),
html:has(.borrower-loan-card.is-busy) {
  overscroll-behavior: none;
}
html.is-wave-locked body,
html:has(.app.is-awaiting-dossier) body,
html:has(.app.is-cabinet-wave) body,
html:has(.borrower-loan-card.is-busy) body {
  overscroll-behavior: none;
}
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 var(--sans); }
button, input, select { color: inherit; font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, p { margin: 0; }
h1 { font: 560 clamp(32px, 4vw, 48px)/1.28 var(--serif); letter-spacing: -.035em; }
h2 { font-size: 18px; line-height: 1.25; }
svg { display: block; }

.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 76px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--header-frost);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__icon {
  display: none;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 14px;
  background: var(--green);
}
.brand > span:last-child { display: inline-grid; justify-items: stretch; transform: translateY(2px); }
.brand__name { display: block; color: var(--brand-ink); font-family: Onest, "Segoe UI", sans-serif; font-weight: 560; font-size: 28px; line-height: .9; letter-spacing: -.03em; font-synthesis: none; }
.brand small { display: block; width: 0; min-width: 100%; box-sizing: border-box; margin-top: 2px; padding-left: 2px; color: var(--brand-ink); font-family: var(--sans); font-size: 10px; font-weight: 800; line-height: 1; letter-spacing: 0; text-align: justify; text-align-last: justify; text-transform: uppercase; white-space: nowrap; }
.brand small::before, .brand small::after { content: none; }
.brand .logo__dot { display: inline-block; font-size: 1.85em; line-height: 1; vertical-align: -0.12em; }
.app-header__right { display: flex; align-items: center; gap: 10px; }
.account-menu { position: relative; }
.account-menu__list {
  position: absolute;
  z-index: 60;
  top: calc(100% + 8px);
  right: 0;
  min-width: 236px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--menu-popup);
  box-shadow: var(--shadow);
  font-size: clamp(13px, 3.4vw, 14px);
  line-height: 1.4;
}
.account-menu__list a,
.account-menu__list button,
.account-menu__identity {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--soft);
  text-align: left;
  font-weight: 600;
}
.account-menu__identity {
  align-items: center;
  color: var(--ink);
  font-weight: 600;
}
@media (hover: hover) and (pointer: fine) {
.account-menu__identity:hover {
  background: var(--surface-2);
  color: var(--ink);
}
}
.account-menu__identity [data-account-email] {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  font-size: 14px;
}
.account-menu__identity [data-account-email].is-truncated {
  text-overflow: ellipsis;
}
.account-menu__list svg { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) {
.account-menu__list a:hover,
.account-menu__list button:hover { background: var(--surface-2); color: var(--ink); }
}
.account-menu__list .account-menu__badge {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 10px;
  font-weight: 800;
}
.icon-btn, .profile-button, .menu-button {
  border: 1px solid var(--line);
  background: var(--surface);
}
.icon-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; }
.notification-button { display: none; }
.icon-btn svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dot { position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); border: 2px solid var(--surface); }
.profile-button { position: relative; height: 48px; padding: 4px 10px 4px 5px; display: flex; align-items: center; gap: 9px; border-radius: 999px; text-align: left; }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--green-dark); color: white; font-weight: 800; }
.profile-button small, .profile-button b { display: block; }
.profile-button small { color: var(--green); font-family: var(--sans); font-size: 11px; font-weight: 800; letter-spacing: .12em; line-height: 1.15; text-transform: uppercase; }
.profile-button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.menu-button {
  display: none;
  width: auto;
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
}
.menu-button__bars {
  width: 18px;
  height: 13px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.menu-button__bars > span,
.menu-button__bars > span:before,
.menu-button__bars > span:after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  position: relative;
  transition: transform .32s ease, top .32s ease, background-color .2s ease;
}
.menu-button__bars > span:before,
.menu-button__bars > span:after { content: ""; position: absolute; left: 0; }
.menu-button__bars > span:before { top: -6px; }
.menu-button__bars > span:after { top: 6px; }
.menu-button__label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
  text-transform: uppercase;
  padding-top: 2px;
  padding-bottom: 0;
}
.menu-button[aria-expanded="true"] .menu-button__bars > span { background: transparent; }
.menu-button[aria-expanded="true"] .menu-button__bars > span:before { top: 0; transform: rotate(45deg); }
.menu-button[aria-expanded="true"] .menu-button__bars > span:after { top: 0; transform: rotate(-45deg); }

.app-layout { min-height: calc(100dvh - 76px); display: grid; grid-template-columns: 288px minmax(0, 1fr); }
.sidebar {
  position: sticky;
  top: 76px;
  height: calc(100dvh - 76px);
  max-height: calc(100dvh - 76px);
  padding: 24px 20px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  overflow-y: auto;
}
html[data-boot-mode="borrower"] .app.is-booting nav[data-cabinet="lender"],
html[data-boot-mode="lender"] .app.is-booting nav[data-cabinet="borrower"] {
  display: none !important;
}
html[data-boot-mode="borrower"] .app.is-booting nav[data-cabinet="borrower"],
html[data-boot-mode="lender"] .app.is-booting nav[data-cabinet="lender"] {
  display: grid !important;
}
html[data-boot-mode="borrower"]:not([data-cabinet-entry="lender"]) .app.is-booting .page[data-cabinet="lender"] {
  display: none !important;
}
html[data-boot-mode="borrower"] .app.is-booting .page[data-page="borrower-home"] {
  display: block;
  animation: none;
}
.app.is-awaiting-dossier .app-layout,
.app.is-cabinet-wave .app-layout {
  pointer-events: none;
}
.app.is-awaiting-dossier::after,
.app.is-cabinet-wave::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 38%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: translate3d(-130%, 0, 0);
  animation: loan-pick-shimmer 2.2s linear infinite;
  will-change: transform;
  pointer-events: none;
  z-index: 60;
}
@media (prefers-color-scheme: dark) {
  .app.is-awaiting-dossier::after,
  .app.is-cabinet-wave::after,
  .page[data-page="borrower-applications"] .borrower-loan-card.is-busy::after,
  .app-sign__submit.is-loading::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18), transparent);
  }
}
.app.is-awaiting-approval nav[data-cabinet="borrower"] .nav-item {
  overflow: visible;
  opacity: 1;
  pointer-events: auto;
}
.app.is-awaiting-approval nav[data-cabinet="borrower"] .nav-item > * {
  filter: none;
}
.borrower-score strong { display: block; margin-top: 8px; font: 560 56px/1 var(--serif); color: var(--green); }
.borrower-score small, .stack { display: grid; gap: 10px; }
.loan-form { display: grid; gap: 12px; max-width: 420px; margin-top: 16px; }
.loan-form input { width: 100%; min-height: 46px; margin-top: 6px; }
.loan-limit { color: var(--soft); font-size: 13px; }
.loan-pick-wrap + .empty-state,
.loan-pick + .empty-state {
  margin-top: 18px;
}
.loan-pick-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(520px, 100%);
}
.loan-pick-wrap .loan-pick {
  width: 100%;
}
.loan-pick {
  width: min(520px, 100%);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}
.loan-pick h2 { margin: 0 0 6px; font: 600 clamp(22px, 2.2vw, 24px)/1.2 var(--sans); letter-spacing: 0; }
.loan-pick__note { margin: 0 0 18px; color: var(--soft); font-size: 13px; line-height: 1.45; font-weight: 500; }
.loan-pick__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.loan-pick__field {
  display: grid;
  gap: 0;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.loan-pick__field:last-of-type {
  margin-bottom: 4px;
}
.loan-pick > .loan-pick__field:nth-of-type(2) {
  margin-bottom: 24px;
}
.loan-pick__field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.loan-pick__field-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--green-dark);
  letter-spacing: 0;
}
.loan-pick__field-value {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-shrink: 0;
  color: var(--green-dark);
}
.loan-pick__field-value-num {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}
.loan-pick__field-value-unit {
  display: inline-flex;
  align-items: baseline;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--muted);
}
.loan-pick__field-value-unit .byn-sign {
  height: 0.9em;
  margin-left: 0;
  color: var(--muted);
}
.loan-pick__unit {
  display: flex;
  align-items: stretch;
  flex: 0 0 110px;
  width: 110px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.loan-pick__unit:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(27, 107, 67, 0.1);
}
.loan-pick__unit input {
  box-sizing: border-box;
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  max-width: 100%;
  min-height: 32px;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  appearance: textfield;
  overflow: hidden;
}
.loan-pick__unit input::-webkit-inner-spin-button,
.loan-pick__unit input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.loan-pick__unit input:focus {
  outline: none;
  box-shadow: none;
}
.loan-pick__unit b {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  min-width: 42px;
  padding: 0 6px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-align: center;
}
.loan-pick__field input[type="range"] {
  --slider-pct: 50%;
  --loan-slider-fill: var(--green-dark);
  --slider-track: #d6e9dc;
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  min-height: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
  cursor: pointer;
}
.loan-pick__field input[type="range"]:focus,
.loan-pick__field input[type="range"]:focus-visible {
  border: 0;
  box-shadow: none;
  outline: none;
}
.loan-pick__field input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--loan-slider-fill) 0%,
    var(--loan-slider-fill) var(--slider-pct),
    var(--slider-track) var(--slider-pct),
    var(--slider-track) 100%
  );
}
.loan-pick__field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -6px;
  border-radius: 50%;
  border: 2px solid var(--loan-slider-fill);
  background: #fff;
  box-shadow: 0 1px 4px rgba(21, 43, 31, 0.16);
}
.loan-pick__field input[type="range"]::-moz-range-track {
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--loan-slider-fill) 0%,
    var(--loan-slider-fill) var(--slider-pct),
    var(--slider-track) var(--slider-pct),
    var(--slider-track) 100%
  );
}
.loan-pick__field input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--loan-slider-fill);
  background: #fff;
  box-shadow: 0 1px 4px rgba(21, 43, 31, 0.16);
}
.loan-pick__scale {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.loan-pick__field small {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
}
.loan-pick__rest {
  margin: 8px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}
.loan-pick__rest .byn-sign {
  display: inline-block;
  height: 0.72em;
  height: 1cap;
  margin-left: 0.11em;
  vertical-align: baseline;
  color: inherit;
  background-color: currentColor;
}
.loan-pick__summary {
  display: grid;
  gap: 14px;
  margin-top: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.loan-pick__due {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0 12px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.loan-pick__due-icon {
  flex: 0 0 auto;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  background: none;
  color: var(--green-dark);
}
.loan-pick__due-icon[data-loan-pick-due-lottie] {
  width: 40px;
  height: 40px;
  line-height: 0;
  overflow: hidden;
  pointer-events: none;
}
.loan-pick__due-icon svg,
.loan-pick__due-icon img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.loan-pick__due-icon[data-loan-pick-due-lottie] svg {
  width: 100%;
  height: 100%;
}
.loan-pick__due-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: start;
  column-gap: 10px;
  row-gap: 6px;
  min-width: 0;
}
.loan-pick__due-label,
.loan-pick__due-date,
.loan-pick__due-hint {
  margin: 0;
  padding: 0;
  font-family: var(--sans);
}
.loan-pick__due-label {
  grid-column: 1;
  grid-row: 1;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
}
.loan-pick__due-date {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--green-dark);
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.05em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  white-space: nowrap;
}
.loan-pick__due-hint {
  grid-column: 1;
  grid-row: 2;
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.45;
}
@media (max-width: 520px) {
  .loan-pick__due-body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    row-gap: 4px;
  }
  .loan-pick__due-label {
    grid-column: 1;
    grid-row: 1;
  }
  .loan-pick__due-date {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    margin-top: 2px;
  }
  .loan-pick__due-hint {
    grid-column: 1;
    grid-row: 3;
    margin-top: 2px;
  }
}
.loan-pick__result {
  margin: 0;
  padding: 16px 18px 18px;
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.loan-pick__result div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}
.loan-pick__result b {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 0.1em;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.loan-pick__result b .byn-sign {
  display: inline-block;
  flex: 0 0 auto;
  font-size: inherit;
  line-height: 0;
  height: 0.72em;
  height: 1cap;
  margin: 0 0 0.02em 0.11em;
  vertical-align: baseline;
  color: inherit;
  background-color: currentColor;
}
.loan-pick__result .is-total {
  margin-top: 2px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.loan-pick__result .is-total b {
  color: var(--green);
  font: 800 20px/1.1 var(--sans);
  letter-spacing: -0.02em;
}
.loan-pick__actions { display: grid; gap: 10px; margin-top: 20px; }
.loan-pick__cta {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 12px 40px 12px 16px;
  box-sizing: border-box;
  overflow: hidden;
  border: 1.5px solid var(--green);
  border-radius: 14px;
  background: var(--surface);
  color: inherit;
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) and (pointer: fine) {
  .loan-pick__cta {
    transition: background .15s ease, border-color .15s ease;
  }
  .loan-pick__cta:hover { background: var(--green-soft); border-color: var(--green); }
}
.loan-pick__cta-head {
  grid-row: 2;
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
}
.loan-pick__cta-icon {
  flex: 0 0 48px;
  display: block;
  width: 48px;
  height: 48px;
  line-height: 0;
  overflow: hidden;
  pointer-events: none;
}
.loan-pick__cta-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}
.loan-pick__cta-copy {
  flex: 1 1 auto;
  display: grid;
  gap: 4px;
  min-width: 0;
}
.loan-pick__cta-copy strong {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-transform: uppercase;
}
.loan-pick__cta-copy span {
  display: block;
  margin: 0;
  color: var(--soft);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
}
.loan-pick__cta-arrow {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--green);
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
  pointer-events: none;
}
.loan-pick__cta.is-loading {
  pointer-events: none;
}
@keyframes loan-pick-shimmer {
  0% { transform: translate3d(-130%, 0, 0); }
  58% { transform: translate3d(280%, 0, 0); }
  58.01%, 100% { transform: translate3d(-130%, 0, 0); }
}
@media (prefers-color-scheme: dark) {
  .loan-pick {
    background: #000;
    border-color: var(--line);
  }
  .loan-pick h2,
  .loan-pick__field-title,
  .loan-pick__field-value,
  .loan-pick__rest,
  .loan-pick__due-label,
  .loan-pick__due-date {
    color: #fff;
  }
  .loan-pick__field-value-unit,
  .loan-pick__field-value-unit .byn-sign {
    color: var(--muted);
  }
  .loan-pick__unit {
    background: #000;
    border-color: #3a3a3a;
  }
  .loan-pick__unit:focus-within {
    box-shadow: 0 0 0 3px rgba(61, 185, 109, 0.28);
  }
  .loan-pick__unit input {
    background: #000;
    color: #fff;
    color-scheme: dark;
  }
  .loan-pick__unit b,
  .loan-pick__unit b .byn-sign {
    color: var(--muted);
  }
  .loan-pick__unit b {
    background: #000;
    border-left-color: #3a3a3a;
  }
  .loan-pick__field input[type="range"],
  .lender-offer-compose__slider input[type="range"] {
    --loan-slider-fill: var(--green);
    --slider-track: #2a332d;
  }
  .loan-pick__field input[type="range"]::-webkit-slider-thumb,
  .loan-pick__field input[type="range"]::-moz-range-thumb,
  .lender-offer-compose__slider input[type="range"]::-webkit-slider-thumb,
  .lender-offer-compose__slider input[type="range"]::-moz-range-thumb {
    background: #111;
    border-color: var(--green);
    box-shadow: none;
  }
  .loan-pick__due,
  .loan-pick__result {
    background: #000;
    border-color: var(--line);
  }
  .loan-pick__due-icon {
    color: var(--green);
  }
  .loan-pick__result b {
    color: #fff;
  }
  .loan-pick__result .is-total b {
    color: var(--green);
  }
  .loan-pick__cta {
    background: #000;
    border-color: #fff;
    color: #fff;
  }
  .loan-pick__cta-copy strong { color: #fff; }
  .loan-pick__cta-copy span { color: var(--soft); }
  .loan-pick__cta-arrow { color: var(--green); }
}
@media (prefers-color-scheme: dark) and (hover: hover) and (pointer: fine) {
  .loan-pick__cta:hover {
    background: rgba(255, 255, 255, .12);
    border-color: #fff;
  }
}
.sidebar__nav { display: grid; gap: 5px; }
.nav-item {
  width: 100%;
  min-height: 45px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--soft);
  text-align: left;
  font-weight: 700;
  transition: filter .4s ease, opacity .4s ease, background-color .2s ease, color .2s ease;
}
@media (hover: hover) and (pointer: fine) {
.nav-item:hover { background: var(--surface-2); color: var(--ink); }
}
.nav-item.is-active { position: relative; z-index: 1; background: var(--green); color: white; }
.nav-label { display: inline; }
.nav-label__line { display: inline; }
.nav-label__line--pad { display: none; }
.nav-label__line:not(:first-child):not(.nav-label__line--pad)::before { content: " "; }
.nav-label--inword .nav-label__line:not(:first-child)::before { content: none; }
.nav-label__hyphen { display: none; }
.nav-icon { width: 22px; height: 22px; flex: 0 0 22px; display: grid; place-items: center; }
.nav-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-badge { margin-left: auto; min-width: 21px; height: 21px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; background: var(--red); color: white; font-size: 10px; }
.borrower-menu-widget { display: none; }
.logout { display: inline-flex; margin: 24px 8px 0; padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 700; }

@media (min-width: 821px) {
  .sidebar__nav { gap: 4px; }
  .nav-item {
    min-height: 44px;
    padding: 0 12px;
    gap: 12px;
    border: 1px solid transparent;
    border-radius: 14px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.2;
  }
  @media (hover: hover) and (pointer: fine) {
    .nav-item:hover { background: var(--surface-2); color: var(--ink); }
  }
  .nav-item.is-active,
  .nav-item.is-active:hover {
    border-color: var(--green);
    background: var(--green);
    color: #fff;
  }
  .nav-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 10px;
    font-weight: 800;
  }
  .sidebar .logout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 16px 0 0;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--green);
    border-radius: 12px;
    background: var(--surface);
    color: var(--green-dark);
    font: 800 11px/1.2 var(--sans);
    letter-spacing: .06em;
    text-transform: uppercase;
  }
  .sidebar {
    display: flex;
    flex-direction: column;
  }
  .sidebar__panel,
  .sidebar__menu {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
  }
  .sidebar .logout { margin-top: auto; }
}

.workspace { min-width: 0; overflow-x: clip; padding: 36px clamp(20px, 4vw, 58px) 70px; }
.page { display: none; width: min(1160px, 100%); margin: 0 auto; }
.page.is-active { display: block; }
.page.is-entering { animation: page-in .28s ease both; }
@keyframes page-in { from { opacity: 0; transform: translateY(5px); } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-head > div { flex: 1; min-width: 0; }
.page-head h1 { margin-left: -0.05em; }
.page-head__title-row {
  --page-title-size: clamp(32px, 4vw, 48px);
  --page-title-icon: clamp(64px, 12vw, 80px);
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding-right: calc(var(--page-title-icon) + 8px);
}
.page-head__title-row h1 {
  margin: 0 0 0 -0.05em;
  max-width: 100%;
  font-size: var(--page-title-size);
  line-height: 1.28;
}
.page-head__lottie {
  position: absolute;
  right: 0;
  top: calc((var(--page-title-size) * 1.28 - var(--page-title-icon)) / 2);
  left: auto;
  display: block;
  width: var(--page-title-icon);
  height: var(--page-title-icon);
  margin: 0;
  line-height: 0;
  overflow: hidden;
  pointer-events: none;
  transform: none;
}
.page-head__lottie svg {
  display: block;
  width: 100%;
  height: 100%;
}
.page-head--notifications .page-head__title-row {
  align-self: stretch;
  width: 100%;
  max-width: 100%;
}
.page-head p:not(.eyebrow):not(.page-head__lead) { margin-top: 10px; color: var(--soft); font-size: 15px; }
.page-head__lead {
  margin-top: 10px;
  max-width: 40em;
  display: grid;
  gap: 4px;
  font-size: clamp(13px, 3.4vw, 15px);
  line-height: 1.45;
}
.page-head__lead-primary {
  display: block;
  color: var(--ink);
  font-weight: 600;
}
.page-head__lead-secondary {
  display: block;
  color: var(--soft);
  font-weight: 500;
}
.page-head__lead-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
@media (hover: hover) and (pointer: fine) {
.page-head__lead-link:hover {
  color: var(--green-dark);
}
}
.page-head__lead--success .page-head__lead-primary { color: var(--green-dark); }
.page-head__lead--pending .page-head__lead-primary { color: var(--green-dark); }
.page-head__lead--progress .page-head__lead-primary { color: var(--green-dark); }
.page-head__lead--revision .page-head__lead-primary { color: var(--gold); }
.page-head__lead--danger .page-head__lead-primary { color: var(--red); }
.page-head--notifications {
  display: block;
  margin-bottom: 18px;
}
.page-head--notifications .page-head__stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 40em;
}
.page-head--notifications .page-head__lead {
  margin-top: 10px;
  width: 100%;
}
.page-head--notifications [data-read-all] {
  margin-top: 16px;
  padding: 0;
  min-height: 44px;
  align-self: flex-start;
}
.page[data-page="notifications"] .notification-list {
  gap: 12px;
}
.eyebrow { margin-bottom: 7px; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.button { min-height: 44px; padding: 11px 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; border: 1px solid transparent; font-weight: 800; }
.button--primary { background: var(--green); color: white; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) and (pointer: fine) {
.button--primary:hover { background: var(--green-dark); }
}
.button.is-loading { pointer-events: none; opacity: .88; }
.button.is-loading::before { content: ""; width: 16px; height: 16px; flex: 0 0 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: button-spin .7s linear infinite; }
@keyframes button-spin { to { transform: rotate(360deg); } }
.button--ghost { background: transparent; border-color: var(--line); }
.button--block { width: 100%; }
.text-button { border: 0; background: none; color: var(--green); font-weight: 800; padding: 8px 2px; min-height: 44px; cursor: pointer; -webkit-tap-highlight-color: transparent; }

.status-card {
  margin-bottom: 18px;
  padding: 22px;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  border-radius: 22px;
  background: var(--green-dark);
  color: white;
}
.status-card__label { display: block; margin-bottom: 6px; color: #bdcbbf; font-size: 12px; }
.status-card strong { font: 560 24px/1.2 var(--serif); }
.status-list { margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; list-style: none; font-size: 12px; }
.status-list span { color: var(--gold); font-weight: 800; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.metric-grid--three { grid-template-columns: repeat(3, 1fr); }
.metric { min-height: 145px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.metric--dark { background: var(--green); border-color: transparent; color: white; }
.metric span { color: var(--muted); font-size: 12px; }
.metric--dark span, .metric--dark small { color: #d8e8de; }
.metric strong { font: 560 clamp(22px, 2.4vw, 31px)/1 var(--serif); letter-spacing: -.02em; }
.metric small { color: var(--muted); }
.metric .positive { color: var(--green); font-weight: 800; }

.borrower-home { display: grid; gap: 14px; max-width: min(1100px, 100%); width: 100%; }
.borrower-summary-card__role {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.borrower-summary-card__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.borrower-summary-card__cell {
  min-width: 0;
  min-height: 88px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.borrower-metric-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 2.5em;
}
.borrower-summary-card__metric-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 2.5em;
}
.borrower-summary-card__metric-head .borrower-metric-label {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
}
.borrower-summary-card__metric-lottie {
  display: block;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  line-height: 0;
  overflow: hidden;
  pointer-events: none;
}
.borrower-summary-card__metric-lottie svg {
  display: block;
  width: 100%;
  height: 100%;
}
.borrower-metric-label__line {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
}
.borrower-summary-card .borrower-metric-label__line {
  color: var(--soft);
}
.borrower-summary-card__cell > b {
  color: var(--green-dark);
  font: 600 clamp(22px, 3vw, 28px)/1.1 var(--serif);
  overflow-wrap: anywhere;
}
.borrower-summary-card__cell > b[data-rating-grade="A"],
.borrower-menu-widget__cell > b[data-rating-grade="A"] { color: #2f6fd4; }
.borrower-summary-card__cell > b[data-rating-grade="B"],
.borrower-menu-widget__cell > b[data-rating-grade="B"] { color: var(--green); }
.borrower-summary-card__cell > b[data-rating-grade="C"],
.borrower-menu-widget__cell > b[data-rating-grade="C"] { color: #e2a33a; }
.borrower-summary-card__cell > b[data-rating-grade="D"],
.borrower-menu-widget__cell > b[data-rating-grade="D"] { color: #e07a2f; }
.borrower-summary-card__cell > b[data-rating-grade="E"],
.borrower-menu-widget__cell > b[data-rating-grade="E"] { color: #c9413d; }
.borrower-summary-card__cell[data-rating-grade="A"] { border-color: #2f6fd4; }
.borrower-summary-card__cell[data-rating-grade="B"] { border-color: var(--green); }
.borrower-summary-card__cell[data-rating-grade="C"] { border-color: #e2a33a; }
.borrower-summary-card__cell[data-rating-grade="D"] { border-color: #e07a2f; }
.borrower-summary-card__cell[data-rating-grade="E"] { border-color: #c9413d; }
.borrower-menu-widget__cell[data-rating-grade="A"] { border-color: #2f6fd4; }
.borrower-menu-widget__cell[data-rating-grade="B"] { border-color: var(--green); }
.borrower-menu-widget__cell[data-rating-grade="C"] { border-color: #e2a33a; }
.borrower-menu-widget__cell[data-rating-grade="D"] { border-color: #e07a2f; }
.borrower-menu-widget__cell[data-rating-grade="E"] { border-color: #c9413d; }
.borrower-actions { scroll-margin-top: 96px; }
.borrower-actions h2,
.borrower-rating-card h2,
.borrower-how h2,
.borrower-status-card h2,
.lender-how__intro h2,
.service-analytics__title h2,
.issued-loans__head b,
.portfolio-structure__head h2,
.borrower-home-debts .debt-card__title {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--ink);
}
.borrower-actions h2,
.borrower-rating-card h2,
.borrower-how h2,
.borrower-status-card h2 { margin: 0 0 14px; }
.lender-how__intro h2,
.service-analytics__title h2 { margin: 0; }
.lender-how__intro > p,
.service-analytics__note {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--soft);
  max-width: none;
}
.borrower-actions .borrower-actions__block > p {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--soft);
}
.borrower-actions__block { display: grid; gap: 14px; align-items: stretch; }
.borrower-actions .borrower-outline-btn {
  display: flex;
  width: 100%;
  max-width: min(22.5rem, 100%);
  margin-inline: auto;
  box-sizing: border-box;
}
.borrower-actions__block--split { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--green); }
.borrower-outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  padding: 10px 18px;
  border: 1.5px solid var(--green);
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font: 800 13px/1.15 var(--sans);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) and (pointer: fine) {
.borrower-outline-btn {
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.borrower-outline-btn:hover { background: var(--green-soft); }
}
.lender-offers-feed__filter-actions .borrower-outline-btn,
.lender-offers-feed__match.borrower-outline-btn {
  font: 600 12px/1.35 var(--sans);
  letter-spacing: .04em;
}
.borrower-outline-btn.borrower-summary-card__more,
.loan-pick__cta.borrower-summary-card__more {
  position: relative;
  width: 100%;
  max-width: none;
  margin-top: 14px;
  box-sizing: border-box;
  overflow: visible;
}
.borrower-outline-btn--light { border-color: rgba(255, 255, 255, .75); color: #fff; }
@media (hover: hover) and (pointer: fine) {
.borrower-outline-btn--light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
}
@media (hover: none) and (pointer: coarse) {
  .borrower-outline-btn:hover:not(:active):not(:disabled):not(.is-on) { background: transparent; }
  .borrower-outline-btn.lender-offer-compose__submit:hover:not(:active):not(:disabled) { background: var(--surface); }
  .bank-card--add:hover:not(:active) {
    border-color: #aeb9b1;
    background: var(--surface);
  }
  .lender-loan-offers__tab:hover:not(:active):not(.is-active) { background: var(--surface); }
  .lender-offer-income__tab:hover:not(:active):not(.is-active):not(:disabled) { background: var(--surface); }
  .security-row:hover:not(:active) {
    border-color: var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
  }
  button.borrower-status-step__box:hover:not(:active) {
    background: var(--surface);
    box-shadow: 0 8px 22px rgba(20, 36, 25, .06);
  }
  .borrower-outline-btn:active:not(:disabled) { background: var(--green-soft); }
  .borrower-outline-btn--light:active:not(:disabled) {
    background: rgba(255, 255, 255, .12);
    color: #fff;
  }
  .borrower-outline-btn.lender-offer-compose__submit:active:not(:disabled) { background: var(--green-soft); }
  .bank-card--add:active { background: var(--green-soft); }
  .lender-loan-offers__tab:active { background: var(--green-soft); }
  .lender-offer-income__tab:active:not(:disabled) { background: var(--green-soft); }
  .lpo__remove:active { background: var(--red-soft); }
  .button--primary:active { background: var(--green-dark); }
  .security-row:active {
    background: var(--green-soft);
  }
  button.borrower-status-step__box:active {
    background: var(--green-soft);
    box-shadow: 0 10px 26px rgba(20, 36, 25, .08);
  }
  .issued-loan__deal.borrower-outline-btn:active:not(:disabled) { background: var(--green-soft); }
  .profile-stack .contact-panel__form .borrower-outline-btn:active:not(:disabled) { background: var(--green-soft); }
  .loan-pick__cta:active:not(:disabled) { background: var(--green-soft); }
  .lender-offers-feed__cta.role-card:active { background: var(--green-soft); }
  .account-menu__list a:active,
  .account-menu__list button:active { background: var(--surface-2); }
  .lpo__remove:hover:not(:active) { background: var(--surface); color: var(--red); }
}
@media (prefers-color-scheme: dark) and (hover: none) and (pointer: coarse) {
  .borrower-outline-btn:hover:not(:active):not(:disabled):not(.is-on) {
    background: transparent;
    color: #e8f0eb;
  }
  .borrower-outline-btn.lender-offer-compose__submit:hover:not(:active):not(:disabled) {
    background: #000;
    color: #fff;
  }
  .bank-card--add:hover:not(:active) {
    border-color: #aeb9b1;
    background: #000;
  }
  .lender-loan-offers__tab:hover:not(:active):not(.is-active) {
    background: #000;
    color: #fff;
    border-color: #fff;
  }
  .lender-offer-income__tab:hover:not(:active):not(.is-active):not(:disabled) {
    background: #000;
    color: #fff;
  }
  .security-row:hover:not(:active) {
    border-color: var(--line);
    background: var(--surface);
  }
  button.borrower-status-step__box:hover:not(:active) {
    background: #000;
    box-shadow: none;
  }
  .borrower-outline-btn:active:not(:disabled) {
    background: rgba(255, 255, 255, .12);
    color: #fff;
  }
  .borrower-outline-btn.lender-offer-compose__submit:active:not(:disabled) {
    background: rgba(255, 255, 255, .1);
    color: #fff;
  }
  .bank-card--add:active {
    background: rgba(255, 255, 255, .12);
  }
  .lender-loan-offers__tab:active {
    background: rgba(255, 255, 255, .12);
    color: #fff;
  }
  .lender-offer-income__tab:active:not(:disabled) {
    background: rgba(255, 255, 255, .1);
    color: #fff;
  }
  .security-row:active {
    background: rgba(255, 255, 255, .12);
  }
  button.borrower-status-step__box:active {
    background: rgba(255, 255, 255, .1);
    box-shadow: none;
  }
  .profile-stack .contact-panel__form .borrower-outline-btn:active:not(:disabled) {
    background: rgba(255, 255, 255, .12);
    color: #fff;
  }
  .issued-loan__deal.borrower-outline-btn:active:not(:disabled) {
    background: rgba(255, 255, 255, .12);
    color: #fff;
  }
  .lpo__remove:active {
    background: rgba(255, 92, 82, .16);
  }
  .button--primary:active {
    background: color-mix(in srgb, var(--green) 78%, #fff);
  }
  .loan-pick__cta:active:not(:disabled) {
    background: rgba(255, 255, 255, .12);
  }
  .lender-offers-feed__cta.role-card:active {
    background: rgba(255, 255, 255, .12);
  }
  .account-menu__list a:active,
  .account-menu__list button:active {
    background: rgba(255, 255, 255, .1);
  }
}
.borrower-home-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: stretch; }
.borrower-home-pair > .panel { min-width: 0; height: 100%; box-sizing: border-box; }
.borrower-home-pair .borrower-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.borrower-home-pair .borrower-actions .borrower-outline-btn {
  max-width: none;
  margin-inline: 0;
}
.lender-home-debts,
.borrower-home-debts {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
  height: 100%;
}
.borrower-home-debts {
  grid-template-rows: repeat(3, minmax(0, 1fr));
}
.borrower-home-debts .debt-card {
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.borrower-home-debts .debt-card__top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  align-content: center;
  column-gap: 12px;
  row-gap: 2px;
  height: 100%;
}
.borrower-home-debts .debt-card__head {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  min-width: 0;
}
.borrower-home-debts .debt-card__amount {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  align-self: stretch;
  margin: 0;
  padding-block: 2px;
  font-family: var(--sans);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--green-dark);
}
.borrower-home-debts .debt-card__icon {
  grid-row: 1 / span 2;
  align-self: center;
  display: block;
  width: 52px;
  height: 52px;
  line-height: 0;
  overflow: hidden;
  pointer-events: none;
  flex: 0 0 52px;
}
.borrower-home-debts .debt-card__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}
.borrower-home-debts .debt-card__title {
  display: block;
  margin: 0;
  text-transform: none;
}
.borrower-home-debts .debt-card__hint {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  min-height: 1.2em;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--muted);
}
.borrower-home > [data-lender-service-analytics] {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  max-width: none;
}
.issued-loans {
  display: grid;
  gap: 14px;
  padding: 18px 18px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.issued-loans__top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 2px;
}
.issued-loans__icon {
  grid-row: 1 / span 2;
  align-self: center;
  display: block;
  width: 52px;
  height: 52px;
  line-height: 0;
  overflow: hidden;
  pointer-events: none;
}
.issued-loans__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}
.issued-loans__head {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  min-width: 0;
}
.issued-loans__head b {
  margin: 0;
  min-width: 0;
}
.issued-loans__count {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  align-self: stretch;
  margin: 0;
  padding-block: 2px;
  font-family: var(--sans);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--green-dark);
}
.issued-loans__hint {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--muted);
}
.issued-loans__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.issued-loans__chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: none;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}
.issued-loans__chip--active {
  color: #c48a22;
}
.issued-loans__chip--closed {
  color: var(--green);
}
.issued-loans__chip--late {
  color: var(--red);
}
.lender-home-debts .issued-loans,
.lender-home-debts .portfolio-structure {
  min-height: 0;
  box-sizing: border-box;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.lender-home-debts .portfolio-structure {
  height: 100%;
  padding: 16px 18px 14px;
  justify-content: flex-start;
}
.lender-home-debts .portfolio-structure__head {
  margin-bottom: 12px;
}
.lender-home-debts .portfolio-structure__chips {
  margin-bottom: 0;
}
.lender-home-debts .portfolio-structure__body {
  flex: 1;
  justify-content: space-between;
  gap: 0;
  padding-top: 16px;
}
.lender-home-debts .portfolio-structure__meter {
  flex: 1;
  min-height: 0;
  justify-content: center;
}
.lender-home-debts .portfolio-structure .legend {
  margin-top: 12px;
}
.borrower-home-pair--status > .borrower-status-card {
  display: flex;
  flex-direction: column;
}
.borrower-home-pair--status .borrower-status-steps {
  flex: 1;
  grid-template-rows: repeat(5, minmax(0, 1fr));
}
.borrower-home-pair--status .borrower-status-step,
.borrower-home-pair--status .borrower-status-step__box {
  height: 100%;
}
.borrower-home-pair--status:has(.lender-home-debts) {
  align-items: start;
}
.borrower-home-pair--status:has(.lender-home-debts) > .borrower-status-card {
  height: auto;
  align-self: start;
}
.borrower-home-pair--status:has(.lender-home-debts) .borrower-status-steps {
  flex: none;
  grid-template-rows: none;
}
.borrower-home-pair--status:has(.lender-home-debts) .borrower-status-step,
.borrower-home-pair--status:has(.lender-home-debts) .borrower-status-step__box {
  height: auto;
}
.borrower-rating-card__body { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.borrower-rating-card__links { display: grid; gap: 8px; margin: 0; }
.borrower-rating-card__links a { color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; }
.borrower-rating-card__links span { color: var(--muted); font-size: 13px; font-weight: 600; line-height: 1.35; text-transform: none; letter-spacing: 0; }
.borrower-support__list { margin: 14px 0 0; display: grid; gap: 12px; }
.borrower-support__list div { display: grid; gap: 4px; }
.borrower-support__list dt { margin: 0; font-size: 12px; font-weight: 600; color: var(--muted); }
.borrower-support__list dd { margin: 0; font-size: 15px; font-weight: 700; color: var(--ink); }
.borrower-support__list a { color: var(--green); text-decoration: none; }
.borrower-support__links { display: grid; gap: 10px; margin: 0; }
.borrower-docs__contracts {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.borrower-docs__contract {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}
.borrower-docs__contract b {
  display: block;
  font-size: 15px;
  color: var(--ink);
}
.borrower-docs__contract small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.borrower-docs__accordion {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}
.borrower-docs__details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 0 14px;
}
.borrower-docs__details summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.borrower-docs__details summary::-webkit-details-marker { display: none; }
.borrower-docs__details summary::after {
  content: "+";
  margin-left: auto;
  font-size: 18px;
  font-weight: 600;
  color: var(--green);
}
.borrower-docs__details[open] summary::after { content: "−"; }
.borrower-docs__details p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--soft);
}
.borrower-rating-card.is-muted-score .borrower-score-ring { opacity: .45; }
.borrower-score-ring {
  --score: 0;
  flex: 0 0 auto;
  width: 92px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--green) calc(var(--score) * 1%), var(--surface-2) 0);
}
.borrower-score-ring::before { content: ""; grid-area: 1/1; width: 68px; aspect-ratio: 1; border-radius: 50%; background: var(--surface); }
.borrower-score-ring span { z-index: 1; grid-area: 1/1; }
.borrower-score-ring b { font: 560 26px/1 var(--serif); }
.borrower-stat-card {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(145deg, var(--green), #2d8f5c);
  color: #fff;
  box-shadow: var(--shadow);
}
.borrower-stat-card span { font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: rgba(255, 255, 255, .82); }
.borrower-stat-card strong { font: 560 clamp(26px, 3vw, 34px)/1 var(--serif); color: #fff; }
.borrower-how {
  border-color: transparent;
  background: var(--green-soft);
  box-shadow: none;
}
.borrower-how p { margin: 0 0 16px; color: var(--soft); max-width: 52ch; }
.lender-how {
  display: grid;
  gap: 16px;
  box-shadow: none;
}
.lender-how__steps {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  list-style: none;
}
.lender-how__card {
  min-width: 0;
  padding: 16px 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.lender-how__card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.lender-how__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green);
  flex: 0 0 42px;
}
.lender-how__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lender-how__pdf {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  line-height: 1;
}
.lender-how__n {
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.lender-how__card strong {
  display: block;
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
}
.lender-how__card p {
  margin: 0;
  color: var(--soft);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}
.lender-how__arrow {
  display: grid;
  place-items: center;
  align-self: center;
  width: 22px;
  color: var(--green);
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
  pointer-events: none;
}
.borrower-status { display: grid; gap: 0; width: min(640px, 100%); min-width: 0; max-width: 100%; }
#anketa-block > .panel { margin-top: 24px; }
.msi-gated.is-msi-locked {
  overflow: hidden;
  margin-inline: -14px;
  padding: 10px 14px 88px;
  pointer-events: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 160px), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 160px), transparent 100%);
}
.msi-gated.is-msi-locked .msi-gated__inner {
  filter: blur(6px);
  opacity: .72;
}
.borrower-status > .msi-gated + #methods-block {
  margin-top: 24px;
  pointer-events: auto;
  user-select: auto;
}
.borrower-status-steps {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  list-style: none;
  width: 100%;
  max-width: 100%;
}
.borrower-status-step__box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 10px 40px 10px 12px;
  margin: 0;
  border: 1.5px solid var(--green);
  border-radius: 18px;
  background: var(--surface);
  color: inherit;
  font: inherit;
  text-align: left;
  box-shadow: 0 8px 22px rgba(20, 36, 25, .06);
  box-sizing: border-box;
}
button.borrower-status-step__box { cursor: pointer; }
@media (hover: hover) and (pointer: fine) {
  button.borrower-status-step__box {
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
  }
  button.borrower-status-step__box:hover { background: var(--green-soft); box-shadow: 0 10px 26px rgba(20, 36, 25, .08); }
}
.borrower-status-step__art {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}
.borrower-status-step__art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 0;
  mix-blend-mode: multiply;
  transform-origin: center;
}
.borrower-status-step__art--terms img { transform: scale(1.32); }
.borrower-status-step__art--consent img { transform: scale(.8); }
.borrower-status-step__art--msi img { transform: scale(1.2); }
.borrower-status-step__art--anketa img { transform: scale(1.12); }
.borrower-status-step__art--payments img { transform: scale(1.32); }
.borrower-status-step__art--lottie .borrower-status-step__lottie {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
  overflow: hidden;
  pointer-events: none;
}
.borrower-status-step__art--terms.borrower-status-step__art--lottie .borrower-status-step__lottie svg {
  display: block;
  width: 100%;
  height: 100%;
  transform: scale(1.32);
  transform-origin: center;
}
.borrower-status-step__art--consent.borrower-status-step__art--lottie .borrower-status-step__lottie svg {
  display: block;
  width: 100%;
  height: 100%;
  transform: scale(.8);
  transform-origin: center;
}
.borrower-status-step__art--msi.borrower-status-step__art--lottie .borrower-status-step__lottie svg {
  display: block;
  width: 100%;
  height: 100%;
  transform: scale(1.2);
  transform-origin: center;
}
.borrower-status-step__art--anketa.borrower-status-step__art--lottie .borrower-status-step__lottie svg {
  display: block;
  width: 100%;
  height: 100%;
  transform: scale(1.12);
  transform-origin: center;
}
.borrower-status-step__art--payments.borrower-status-step__art--lottie .borrower-status-step__lottie svg {
  display: block;
  width: 100%;
  height: 100%;
  transform: scale(1.32);
  transform-origin: center;
}
.borrower-status-step__label {
  flex: 1;
  min-width: 0;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--ink);
}
.borrower-status-step__arrow {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--green);
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
}
.borrower-status-step__badge {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow);
  pointer-events: none;
}
.borrower-status-step__badge svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.borrower-status-step__badge--done { color: var(--green); border: 2px solid var(--green); }
.borrower-status-step__badge--review { color: var(--gold); border: 2px solid var(--gold); }
.borrower-status-step__badge--rejected { color: #e15b52; border: 2px solid #e15b52; }
.borrower-status-step.is-rejected .borrower-status-step__box { border-color: #e15b52; }
.borrower-status-step.is-review .borrower-status-step__box { border-color: var(--gold); }
.borrower-status-step.is-done .borrower-status-step__box { border-color: var(--green); }
.borrower-status-step.is-done button.borrower-status-step__box { padding-right: 12px; }
.debt-card { padding: 18px 20px; display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.debt-card span { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.debt-card small { color: var(--soft); }
.debt-card strong { font: 560 32px/1 var(--serif); }
.byn-sign {
  display: inline-block;
  height: 0.66em;
  aspect-ratio: 549 / 641;
  width: auto;
  margin-left: 0.1em;
  vertical-align: baseline;
  background: currentColor;
  -webkit-mask: url("../img/byn-sign.png?v=2") center / 100% 100% no-repeat;
  mask: url("../img/byn-sign.png?v=2") center / 100% 100% no-repeat;
}
.debt-card strong .byn-sign,
.borrower-summary-card__cell > b .byn-sign,
.borrower-menu-widget__cell > b .byn-sign,
.borrower-stat-card strong .byn-sign,
.loan-pick__result b .byn-sign,
.payment__amount strong .byn-sign,
.service-analytics__metric-foot strong .byn-sign,
.issued-loan__sum strong .byn-sign {
  color: inherit;
  font-size: inherit;
}
.service-analytics.panel { padding: 22px; display: grid; gap: 16px; box-shadow: none; }
.service-analytics__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.service-analytics__title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.service-analytics__icon {
  display: block;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  line-height: 0;
  overflow: hidden;
  pointer-events: none;
}
.service-analytics__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}
.service-analytics__stamp { margin: 2px 0 0; font-size: 13px; font-weight: 500; color: var(--muted); }
.service-analytics__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-top: 4px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--soft);
  background: none;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.service-analytics__badge svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-analytics__metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}
.service-analytics__metric {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px 16px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.service-analytics__metric h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
}
.service-analytics__metric-value {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.08em;
  font: 600 clamp(22px, 1.8vw, 26px)/1.1 var(--sans);
  letter-spacing: -.02em;
  color: var(--ink);
}
.service-analytics__metric-value.is-empty,
.service-analytics__metric-foot strong.is-empty {
  color: var(--muted);
}
.service-analytics__metric-value .byn-sign { height: 0.62em; flex: 0 0 auto; }
.service-analytics__metric > p {
  margin: 8px 0 16px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}
.service-analytics__metric-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.service-analytics__metric-foot span {
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}
.service-analytics__metric-foot strong {
  display: flex;
  align-items: baseline;
  gap: 0.08em;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}
.service-analytics__period {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.service-analytics__metrics--yesterday {
  margin: 0;
}
.service-analytics__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.service-analytics__stat { display: grid; gap: 4px; min-width: 0; }
.service-analytics__stat span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}
.service-analytics__stat strong {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.08em;
  font: 700 clamp(22px, 2vw, 32px)/1.1 var(--sans);
  letter-spacing: -.03em;
  color: var(--ink);
}
.service-analytics__stat strong .byn-sign { height: 0.62em; flex: 0 0 auto; }
.service-analytics__stat small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.service-analytics__charts { display: grid; gap: 12px; }
.service-analytics__panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px 14px;
}
.service-analytics__panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.service-analytics__panel h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}
.service-analytics__panel-head p,
.service-analytics__panel-lead { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.service-analytics__panel-head p { margin: 0; white-space: nowrap; }
.service-analytics__bar {
  display: flex;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  margin: 14px 0 12px;
  background: var(--analytics-track);
}
.service-analytics__bar > span { flex: 0 0 var(--share); min-width: 3px; }
.service-analytics__bar [data-grade="A"] { background: #2f6fd4; }
.service-analytics__bar [data-grade="B"] { background: var(--green); }
.service-analytics__bar [data-grade="C"] { background: #e2a33a; }
.service-analytics__bar [data-grade="D"] { background: #e07a2f; }
.service-analytics__bar [data-grade="E"] { background: #c9413d; }
.service-analytics__bar [data-kind="rated"] { background: #2f6fd4; }
.service-analytics__bar [data-kind="stop"] { background: #d64545; }
.service-analytics__legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.service-analytics__legend--duo { justify-content: space-between; }
.service-analytics__legend li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.service-analytics__legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: block;
  flex: 0 0 auto;
}
.service-analytics__legend [data-grade="A"] { background: #2f6fd4; }
.service-analytics__legend [data-grade="B"] { background: var(--green); }
.service-analytics__legend [data-grade="C"] { background: #e2a33a; }
.service-analytics__legend [data-grade="D"] { background: #e07a2f; }
.service-analytics__legend [data-grade="E"] { background: #c9413d; }
.service-analytics__legend [data-kind="rated"] { background: #2f6fd4; }
.service-analytics__legend [data-kind="stop"] { background: #d64545; }
.service-analytics__legend b { font-size: 13px; font-weight: 800; color: var(--ink); }
@media (prefers-color-scheme: dark) {
  .service-analytics.panel {
    background: #000;
    border-color: var(--line);
    box-shadow: none;
  }
  .service-analytics__title h2,
  .service-analytics__metric h3,
  .service-analytics__metric-value,
  .service-analytics__metric-foot strong,
  .service-analytics__panel h3,
  .service-analytics__stat strong,
  .service-analytics__legend li,
  .service-analytics__legend b { color: #fff; }
  .service-analytics__metric {
    background: #000;
    border-color: var(--line);
  }
  .service-analytics__metric-foot {
    border-top-color: var(--line);
  }
  .service-analytics__metric-value.is-empty,
  .service-analytics__metric-foot strong.is-empty {
    color: var(--muted);
  }
  .service-analytics__badge {
    color: #fff;
    border-color: #fff;
  }
}
.dashboard-grid, .two-columns, .card-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; margin-bottom: 18px; }
.two-columns { grid-template-columns: 1fr .8fr; }
.profile-stack { display: grid; gap: 36px; }
.profile-stack > .contact-panel,
.profile-stack > .security-panel,
.profile-stack > .session-panel { margin: 0; }

@media (prefers-color-scheme: dark) {
  .eyebrow,
  .page-head .eyebrow { color: #fff; }
  .page-head h1 { color: #f2f7f4; }
  .page-head__lead-secondary { color: var(--soft); }
  .page-head__lead-link {
    color: #fff;
  }
  @media (hover: hover) and (pointer: fine) {
    .page-head__lead-link:hover {
      color: #fff;
      opacity: .82;
    }
  }
  .page-head__lead-primary { color: #fff; }
  .page-head__lead--success .page-head__lead-primary,
  .page-head__lead--pending .page-head__lead-primary,
  .page-head__lead--progress .page-head__lead-primary { color: #fff; }
  .borrower-summary-card__role { color: #fff; }
  .page-head__lead--danger .page-head__lead-primary { color: var(--red); }
  .page-head__lead--revision .page-head__lead-primary { color: var(--gold); }
  .borrower-status-step__art img {
    mix-blend-mode: normal;
    filter: brightness(0) invert(1);
  }
  .borrower-status-card.panel {
    background: #000;
    border-color: var(--line);
  }
  .issued-loans,
  .lender-home-debts .issued-loans,
  .lender-home-debts .portfolio-structure,
  .borrower-home-debts .debt-card {
    background: #000;
    border-color: var(--line);
    box-shadow: none;
  }
  .borrower-home-debts .debt-card__title,
  .borrower-home-debts .debt-card__hint {
    color: #fff;
  }
  .borrower-home-debts .debt-card__amount {
    color: var(--green);
  }
  .issued-loans__head b,
  .issued-loans__hint {
    color: #fff;
  }
  .issued-loans__count,
  .portfolio-structure__total b { color: var(--green); }
  .portfolio-structure__total small { color: #fff; }
  .issued-loans__chip--active {
    background: none;
    color: #e8c896;
  }
  .portfolio-structure__bar { background: var(--surface-2); }
  .portfolio-structure__head h2,
  .portfolio-structure .legend span { color: #fff; }
  .portfolio-structure .legend em { color: var(--green); }
  .portfolio-structure .legend b { color: var(--muted); }
  .borrower-status-step__box,
  .borrower-status-step.is-done .borrower-status-step__box,
  .borrower-status-step.is-review .borrower-status-step__box {
    border-color: #fff;
    background: #000;
  }
  .borrower-status-step.is-rejected .borrower-status-step__box {
    border-color: #e15b52;
    background: #000;
  }
  @media (hover: hover) and (pointer: fine) {
    button.borrower-status-step__box:hover {
      background: rgba(255, 255, 255, .08);
    box-shadow: none;
    }
  }
  .borrower-status-step__badge {
    background: #000;
  }
  .borrower-status-step__badge--done,
  .borrower-status-step__badge--review {
    color: #fff;
    border-color: #fff;
  }
  .borrower-status-step__badge--rejected {
    color: #e15b52;
    border-color: #e15b52;
  }
  .borrower-status-step__arrow { color: #fff; }
  .borrower-status-step__label { color: #fff; }
  .round-icon--gold { background: rgba(227, 164, 57, .18); }
  .security-row__badge--off { background: rgba(227, 164, 57, .22); color: #e8c896; }
  .logout { color: var(--accent-ink); }
  input:focus,
  select:focus { box-shadow: 0 0 0 3px rgba(61, 185, 109, .28); }
  .anketa-field,
  .anketa-choice,
  .anketa-checks,
  .step-box { border-color: var(--line); }
  .anketa-field.is-locked { background: var(--surface-2); }
  .panel {
    background: var(--surface);
    border-color: var(--line);
    box-shadow: var(--shadow);
  }
  input,
  select {
    background: var(--surface-2);
    border-color: var(--line);
    color: var(--ink);
  }
  input::placeholder { color: var(--muted); }
  .settings-form input:read-only {
    background: var(--surface-2);
    color: var(--ink);
  }
  .profile-stack .contact-panel__form.settings-form input:read-only {
    background: var(--surface-2);
    color: var(--ink);
    border-color: var(--line);
  }
  .profile-stack .contact-panel__form.settings-form input:read-only:not(:placeholder-shown) {
    background: var(--field-filled);
    color: var(--ink);
    border-color: var(--line);
  }
  .borrower-outline-btn {
    border-color: rgba(110, 207, 150, .45);
    color: #e8f0eb;
  }
  @media (hover: hover) and (pointer: fine) {
    .borrower-outline-btn:hover {
      background: rgba(255, 255, 255, .1);
      color: #fff;
    }
  }
  .borrower-outline-btn:disabled {
    border-color: rgba(110, 207, 150, .35);
    color: var(--muted);
    opacity: .55;
  }
  .session-tile > .borrower-outline-btn:disabled {
    border-color: rgba(110, 207, 150, .45);
    background: transparent;
    color: #b8e6c8;
    opacity: 1;
  }
  .session-tile > .borrower-outline-btn[data-session-end] {
    border-color: rgba(232, 120, 108, .5);
    color: #f0a69c;
  }
  @media (hover: hover) and (pointer: fine) {
    .session-tile > .borrower-outline-btn[data-session-end]:hover {
      background: rgba(185, 77, 67, .15);
      border-color: #e8786c;
      color: #f0a69c;
    }
  }
  .session-refresh-btn {
    border-color: var(--line);
    background: var(--surface-2);
    color: #6ecf96;
  }
  .session-tile {
    background: var(--surface);
    border-color: var(--line);
    box-shadow: none;
  }
  .session-tile--current {
    border-color: rgba(110, 207, 150, .45);
  }
  .session-tile__icon { background: transparent; color: #6ecf96; }
  .session-tile__badge {
    border-color: rgba(110, 207, 150, .45);
    background: var(--surface);
    color: #b8e6c8;
  }
  .session-tile__badge--muted {
    border-color: var(--line);
    background: var(--surface);
    color: var(--muted);
  }
  .security-row {
    background: var(--surface);
    border-color: var(--line);
    color: var(--ink);
    box-shadow: none;
  }
  @media (hover: hover) and (pointer: fine) {
    .security-row:hover {
      border-color: rgba(110, 207, 150, .45);
      background: var(--green-soft);
    }
  }
  .security-row__icon { background: transparent; color: #6ecf96; }
  .security-row__badge {
    background: var(--surface-2);
    color: var(--muted);
  }
  .security-row__badge--off {
    background: rgba(227, 164, 57, .22);
    color: #e8c896;
  }
  .security-row__badge--on {
    border: none;
    background: rgba(47, 158, 87, .22);
    color: #b8e6c8;
  }
  .empty-state {
    border-color: var(--line);
    background: rgba(255, 255, 255, .02);
  }
  .empty-state h2 { color: var(--ink); }
  .empty-state p { color: var(--soft); }
  .empty-state__actions .borrower-outline-btn {
    border-color: #fff;
    color: #fff;
  }
  @media (hover: hover) and (pointer: fine) {
    .empty-state__actions .borrower-outline-btn:hover {
      background: rgba(255, 255, 255, .12);
      border-color: #fff;
      color: #fff;
    }
  }
  .session-tile--current .session-tile__icon { color: var(--ink); }
  .borrower-menu-widget__cell > b[data-rating-grade="C"],
  .borrower-menu-widget__cell > b[data-rating-grade="D"],
  .borrower-menu-widget__cell > b[data-rating-grade="E"],
  .borrower-menu-widget__cell > b[data-menu-score] { color: #fff; }
  .borrower-menu-widget__cell[data-rating-grade="C"],
  .borrower-menu-widget__cell[data-rating-grade="D"],
  .borrower-menu-widget__cell[data-rating-grade="E"],
  .borrower-menu-widget__quick .borrower-menu-widget__cell { border-color: #fff; }
  .borrower-summary-card__cell > b[data-rating-grade="C"],
  .borrower-summary-card__cell > b[data-rating-grade="D"],
  .borrower-summary-card__cell > b[data-rating-grade="E"] { color: #fff; }
  .borrower-summary-card__cell[data-rating-grade="C"],
  .borrower-summary-card__cell[data-rating-grade="D"],
  .borrower-summary-card__cell[data-rating-grade="E"] { border-color: #fff; }
  .borrower-menu-widget__role {
    border: 1px solid #fff;
    color: #fff;
  }
  .borrower-menu-widget__cell > span {
    color: #fff;
  }
  .account-menu__list {
    background: #000;
    border-color: var(--line);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .55);
  }
  .account-menu__list a,
  .account-menu__list button,
  .account-menu__identity,
  .account-menu__identity [data-account-email] {
    color: #fff;
  }
  @media (hover: hover) and (pointer: fine) {
    .account-menu__list a:hover,
    .account-menu__list button:hover,
    .account-menu__identity:hover {
      background: rgba(255, 255, 255, .1);
      color: #fff;
    }
  }
  .account-menu__list .account-menu__badge {
    background: #fff;
    color: #000;
  }
}
@media (prefers-color-scheme: dark) and (hover: hover) and (pointer: fine) {
  .session-refresh-btn:hover {
    border-color: rgba(110, 207, 150, .55);
    background: var(--green-soft);
    color: #d8ffe6;
  }
}
@media (prefers-color-scheme: dark) and (hover: none) {
  .session-refresh-btn:active {
    border-color: var(--line);
    background: var(--surface-2);
    color: #6ecf96;
  }
}
.session-panel { display: grid; gap: 16px; margin: 0; padding: 0; background: transparent; border: none; box-shadow: none; font: inherit; }
.session-panel__head { display: grid; gap: 8px; }
.session-panel__title-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.session-panel__title-row h2 { margin: 0; font: inherit; font-size: 18px; line-height: 1.25; font-weight: 800; }
.session-panel__lead { margin: 0; max-width: 44em; color: var(--soft); font-size: 14px; line-height: 1.45; }
.session-refresh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  min-height: 26px;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--green);
  font: 800 11px/1.2 var(--sans);
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.session-refresh-btn--text { min-height: 26px; }
.session-refresh-btn__icon-wrap {
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.session-refresh-btn__glyph {
  width: 15px;
  height: 15px;
  display: block;
}
.session-refresh-btn__glyph circle {
  fill: currentColor;
}
@keyframes session-refresh-spin { to { transform: rotate(360deg); } }
.session-refresh-btn.is-refreshing .session-refresh-btn__icon-wrap {
  animation: session-refresh-spin .55s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .session-refresh-btn.is-refreshing .session-refresh-btn__icon-wrap { animation: none; }
}
@media (hover: hover) and (pointer: fine) {
  .session-refresh-btn {
    transition: border-color .15s ease, background .15s ease, color .15s ease, opacity .15s ease;
  }
  .session-refresh-btn:hover {
    border-color: rgba(27, 107, 67, .45);
    background: var(--green-soft);
    color: var(--green-dark);
  }
}
@media (hover: none) {
  .session-refresh-btn:active {
    border-color: var(--line);
    background: var(--surface);
    color: var(--green);
  }
  .session-refresh-btn:disabled,
  .session-refresh-btn.is-refreshing:disabled {
    opacity: 1;
    cursor: default;
  }
}
.session-refresh-btn:disabled { opacity: .55; cursor: wait; }
.session-list {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
.session-list > .empty-state { grid-column: 1 / -1; }
.session-tile {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-sizing: border-box;
  box-shadow: var(--shadow);
  font: inherit;
}
.session-tile--current { border-color: rgba(27, 107, 67, .32); }
.session-tile__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.session-tile__device { display: flex; align-items: flex-start; gap: 12px; min-width: 0; flex: 1 1 auto; }
.session-tile__icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: transparent;
  color: var(--green);
}
.session-tile__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.session-tile__title { margin: 0; font: 800 15px/1.3 var(--sans); color: var(--ink); }
.session-tile__meta { margin: 6px 0 0; color: var(--soft); font-size: 12px; line-height: 1.45; }
.session-tile__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 26px;
  padding: 4px 11px;
  border: 1px solid rgba(27, 107, 67, .45);
  border-radius: 999px;
  background: var(--surface);
  color: var(--green);
  font: 800 11px/1.2 var(--sans);
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}
.session-tile__badge--muted {
  border-color: var(--line);
  background: var(--surface);
  color: var(--muted);
}
.session-tile__facts {
  margin: 0;
  padding: 2px 0 0;
  display: grid;
  gap: 14px;
  list-style: none;
  flex: 1 1 auto;
}
.session-tile__facts li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.session-tile__facts b { color: var(--ink); font-size: 13px; font-weight: 700; text-align: right; word-break: break-word; }
.session-tile__tech { margin: 2px 0 0; }
.session-tile__tech summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--soft);
  font-size: 13px;
  font-weight: 700;
  user-select: none;
}
.session-tile__tech summary::-webkit-details-marker { display: none; }
.session-tile__chevron {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .15s ease;
}
.session-tile__tech[open] .session-tile__chevron { transform: rotate(90deg); }
.session-tile__agent {
  margin: 12px 0 0;
  padding: 0;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.55;
  word-break: break-word;
}
.session-tile > .borrower-outline-btn {
  display: flex;
  width: 100%;
  max-width: none;
  margin-top: auto;
  box-sizing: border-box;
}
.session-tile > .borrower-outline-btn:disabled {
  border-color: var(--green);
  background: transparent;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
  opacity: 1;
  cursor: default;
}
.session-tile > .borrower-outline-btn[data-session-end] {
  border-color: rgba(185, 77, 67, .55);
  color: var(--red);
}
@media (hover: hover) and (pointer: fine) {
.session-tile > .borrower-outline-btn[data-session-end]:hover {
  background: var(--red-soft);
  border-color: var(--red);
  color: var(--red);
}
}
.panel { padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.panel-head { min-height: 45px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.panel-head span { color: var(--muted); font-size: 12px; }
.panel-head h2 { margin-top: 3px; }
.chip { padding: 7px 10px; border-radius: 999px; background: var(--surface-2); white-space: nowrap; }
.chart { height: 210px; padding: 25px 5px 0; }
.chart__bars { height: 100%; display: flex; align-items: flex-end; gap: clamp(8px, 2vw, 22px); border-bottom: 1px solid var(--line); }
.chart__bars i { position: relative; height: var(--h); flex: 1; border-radius: 10px 10px 0 0; background: linear-gradient(180deg, var(--green), #77aa89); }
.chart__bars i:last-child { background: linear-gradient(180deg, var(--gold), #f0c876); }
.chart__bars span { position: absolute; top: calc(100% + 7px); left: 50%; color: var(--muted); font: 10px var(--sans); transform: translateX(-50%); }
.donut-row { min-height: 210px; display: flex; align-items: center; justify-content: space-around; gap: 22px; }
.donut { width: 142px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--green) 0 47.8%, var(--gold) 47.8% 97.2%, var(--red) 97.2%); }
.donut::before { content: ""; grid-area: 1/1; width: 88px; aspect-ratio: 1; border-radius: 50%; background: var(--surface); }
.donut span { z-index: 1; grid-area: 1/1; font: 560 30px var(--serif); text-align: center; }
.donut small { display: block; color: var(--muted); font: 10px var(--sans); }
.legend { min-width: 145px; margin: 0; padding: 0; display: grid; gap: 13px; list-style: none; }
.legend li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; }
.legend__dot { width: 9px; height: 9px; border-radius: 50%; }
.legend__dot--green { background: var(--green); }.legend__dot--gold { background: var(--gold); }.legend__dot--red { background: var(--red); }
.portfolio-structure {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
}
.portfolio-structure__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}
.portfolio-structure__lottie {
  display: block;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  line-height: 0;
  overflow: hidden;
  pointer-events: none;
}
.portfolio-structure__lottie svg {
  display: block;
  width: 100%;
  height: 100%;
}
.portfolio-structure__head h2 {
  margin: 0;
  white-space: nowrap;
}
.portfolio-structure__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
}
.portfolio-structure__body {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
  padding: 12px 0 0;
}
.portfolio-structure__meter {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  width: 100%;
  min-height: 112px;
}
.portfolio-structure__total {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  width: min(100%, 320px);
  margin-inline: auto;
}
.portfolio-structure__total b {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--green-dark);
}
.portfolio-structure__total small {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
@media (prefers-color-scheme: dark) {
  .portfolio-structure__total b { color: var(--green); }
  .portfolio-structure__total small { color: #fff; }
}
.portfolio-structure__bar {
  display: flex;
  align-self: stretch;
  width: 100%;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}
.portfolio-structure__seg { min-width: 0; }
.portfolio-structure__seg--active { background: var(--gold); }
.portfolio-structure__seg--closed { background: var(--green); }
.portfolio-structure__seg--late { background: var(--red); }
.portfolio-structure .legend {
  width: 100%;
  min-width: 0;
  max-width: none;
  gap: 0;
  margin-top: 0;
  flex-shrink: 0;
  padding-bottom: 0;
}
.portfolio-structure .legend li {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}
.portfolio-structure .legend li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.portfolio-structure .legend span {
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--ink);
}
.portfolio-structure .legend em {
  font-style: normal;
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  color: var(--green-dark);
  min-width: 1.25em;
  text-align: right;
}
.portfolio-structure .legend b {
  min-width: 4.4em;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--muted);
}
@media (prefers-color-scheme: dark) {
  .portfolio-structure .legend em { color: var(--green); }
}

.compact-list { margin-top: 8px; }
.compact-list > div { padding: 13px 0; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.compact-list > div:last-child { border-bottom: 0; }
.compact-list small { display: block; color: var(--muted); margin-top: 2px; }
.compact-list > div > strong { color: var(--green); }
.round-icon, .large-icon { display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-weight: 800; }
.round-icon { width: 36px; height: 36px; min-width: 36px; min-height: 36px; flex: 0 0 36px; overflow: hidden; }
.round-icon svg { width: 16px; height: 16px; margin: auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.round-icon--gold { background: #fbf1dc; color: var(--gold); }
.large-icon { width: 54px; height: 54px; font-size: 22px; }

.settings-form { display: grid; gap: 16px; }
.settings-form > h2 { margin-bottom: 4px; }
.settings-form > .borrower-outline-btn,
.settings-form > .button--primary {
  display: flex;
  width: 100%;
  max-width: none;
  margin-top: 4px;
  box-sizing: border-box;
}
.settings-form > .button--primary {
  min-height: 46px;
  border-radius: 12px;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.settings-form input:read-only {
  background: var(--surface-2);
  color: var(--ink);
  cursor: default;
}
.settings-form input:read-only::placeholder { color: var(--muted); }
.settings-form label > span, .modal label > span, .filters-panel label > span { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 800; }
.settings-form__hint { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1.4; }
input, select { width: 100%; max-width: 100%; min-width: 0; min-height: 46px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); outline: none; font-size: 16px; }
select { overflow: hidden; text-overflow: ellipsis; }
input:focus, select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(27,107,67,.1); }
.input-with-unit, .range-fields { display: flex; align-items: center; gap: 8px; }
.input-with-unit b { min-width: 48px; color: var(--muted); }
.range-fields input { min-width: 0; }
.range-fields em { font-style: normal; }
.range-fields b { color: var(--muted); white-space: nowrap; }
.hint-panel .large-icon { margin-bottom: 18px; }
.hint-panel p { margin-top: 10px; color: var(--soft); }
.check-list { margin: 20px 0 0; padding: 0; display: grid; gap: 11px; list-style: none; }
.check-list li { display: flex; align-items: flex-start; gap: 8px; }
.check-list .check { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 1px; display: grid; place-items: center; color: #2f9e57; font-style: normal; }
.check-list .check svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch span { width: 58px; height: 32px; display: block; border-radius: 999px; background: var(--switch-track); padding: 4px; transition: background .2s; }
.switch span::after { content: ""; width: 24px; height: 24px; display: block; border-radius: 50%; background: white; box-shadow: 0 2px 5px rgba(0,0,0,.14); transition: transform .2s; }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(26px); }

.filters-panel { margin-bottom: 16px; padding: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.lender-offers-feed {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.lender-offers-feed__filters {
  margin: 0 0 18px;
  padding: 16px 18px;
  display: flex;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.lender-offers-feed__filter { display: grid; gap: 8px; flex: 1 1 200px; min-width: 0; }
.lender-offers-feed__filter-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: inherit;
}
.lender-offers-feed__range {
  display: grid;
  grid-template-columns: minmax(72px, 1fr) 12px minmax(72px, 1fr);
  gap: 8px;
  align-items: center;
}
.lender-offers-feed__range em { font-style: normal; color: #8b978f; font-weight: 700; text-align: center; }
.lender-offers-feed__bound {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(27, 107, 67, .08);
}
.lender-offers-feed__bound b {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  text-transform: lowercase;
}
.lender-offers-feed__bound input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 2.5em;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  font-weight: 700;
  appearance: textfield;
}
.lender-offers-feed__bound input::placeholder { color: #a8b3ac; font-weight: 600; }
.lender-offers-feed__bound input::-webkit-outer-spin-button,
.lender-offers-feed__bound input::-webkit-inner-spin-button { appearance: none; margin: 0; }
.lender-offers-feed__filter--rating { flex: 1.15 1 220px; }
.lender-offers-feed__filter-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
  align-self: flex-end;
  flex: 0 1 248px;
  min-width: 220px;
  margin-left: auto;
}
.lender-offers-feed__filter-actions .borrower-outline-btn {
  display: flex;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  box-sizing: border-box;
}
.lender-offers-feed__match-row {
  margin: 0 0 14px;
}
.lender-offers-feed__match.borrower-outline-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  box-sizing: border-box;
}
.lender-offers-feed__match.borrower-outline-btn.is-on {
  background: var(--green-soft);
  color: inherit;
}
.lender-offers-feed__match-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}
.lender-offers-feed__toolbar {
  margin: 0 0 14px;
  padding: 0 2px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 12px;
}
.lender-offers-feed__toolbar p {
  margin: 0;
  min-width: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
}
.lender-offers-feed__sort {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin: 0;
  justify-self: stretch;
}
.lender-offers-feed__sort.issued-loan-filters {
  grid-template-columns: 1fr 1fr;
}
.lender-offers-feed__sort .borrower-outline-btn {
  display: flex;
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: 44px;
  color: var(--green-dark);
}
.lender-offers-feed__sort .borrower-outline-btn.is-on {
  background: var(--green-soft);
  border-color: var(--green);
  color: var(--green-dark);
}
.lender-offers-feed__list { display: grid; gap: 12px; }
.lender-offers-feed__card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(28, 24, 48, .05);
  color: var(--ink);
  font-family: var(--sans);
}
.lender-offers-feed__card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.lender-offers-feed__card-sum strong {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 0.16em;
  font-size: clamp(26px, 7vw, 30px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
  color: var(--ink);
  font-variant-numeric: normal;
  white-space: nowrap;
}
.lender-offers-feed__card-sum strong .byn-sign,
.lender-offers-feed__stat b .byn-sign,
.lender-offers-feed__stat small .byn-sign {
  display: inline-block;
  flex: 0 0 auto;
  width: auto;
  font-size: inherit;
  font-weight: inherit;
  line-height: 0;
  height: 0.72em;
  height: 1cap;
  margin: 0 0 0.02em 0.11em;
  align-self: baseline;
  vertical-align: baseline;
  color: inherit;
  background-color: currentColor;
}
.lender-offers-feed__card-rating {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex: 0 0 auto;
  max-width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-sizing: border-box;
}
.lender-offers-feed__card-rating-label {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1.3;
  white-space: nowrap;
}
.lender-offers-feed__card-rating-value {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.lender-offers-feed__card-rating-value b {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0;
  line-height: 1.2;
}
.lender-offers-feed__card-rule {
  height: 1px;
  background: #e6ebe8;
}
.lender-offers-feed__card-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 10px;
  align-items: stretch;
}
.lender-offers-feed__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  line-height: 1;
}
.lender-offers-feed__stat-label,
.lender-offers-feed__stat b,
.lender-offers-feed__stat small {
  margin: 0;
  line-height: 1;
}
.lender-offers-feed__stat-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .02em;
}
.lender-offers-feed__stat:nth-child(1) {
  align-items: flex-start;
  text-align: left;
}
.lender-offers-feed__stat:nth-child(2) {
  align-items: center;
  justify-content: center;
  text-align: center;
}
.lender-offers-feed__stat:nth-child(3) {
  align-items: flex-end;
  text-align: right;
}
.lender-offers-feed__stat b {
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 0.12em;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0;
  font-variant-numeric: normal;
  white-space: nowrap;
  max-width: 100%;
}
.lender-offers-feed__stat small {
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 0.12em;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .01em;
  white-space: nowrap;
  max-width: 100%;
}
.lender-offers-feed__stat:nth-child(1) small { justify-content: flex-start; }
.lender-offers-feed__stat:nth-child(3) small { justify-content: flex-end; width: 100%; }
.lender-offers-feed__bar {
  width: 56px;
  height: 6px;
  border-radius: 999px;
  border: 0;
  background: var(--analytics-track);
  box-sizing: border-box;
  overflow: hidden;
}
.lender-offers-feed__bar i { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.lender-offers-feed__bar i[data-rating-tone="high"] { background: var(--green); }
.lender-offers-feed__bar i[data-rating-tone="mid"] { background: #e2a33a; }
.lender-offers-feed__bar i[data-rating-tone="low"] { background: #e07a2f; }
.lender-offers-feed__bar i[data-rating-tone="poor"] { background: #c9413d; }
.pay-btn__label {
  position: relative;
  display: inline-block;
}
.lender-offers-feed__pay {
  position: absolute;
  right: calc(100% + 8px);
  top: 50%;
  display: block;
  width: 36px;
  height: 36px;
  line-height: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(-50%);
}
.lender-offers-feed__pay svg {
  display: block;
  width: 100%;
  height: 100%;
}
.lender-offers-feed__cta.role-card {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 12px 40px 12px 16px;
  box-sizing: border-box;
  border: 1.5px solid var(--green);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: none;
  color: inherit;
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.lender-offers-feed__cta.role-card .role-card__head {
  grid-row: 2;
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  margin: 0;
}
.lender-offers-feed__cta.role-card .role-card__icon {
  flex: 0 0 48px;
  display: block;
  width: 48px;
  height: 48px;
  overflow: hidden;
  color: var(--ink);
}
.lender-offers-feed__cta.role-card .role-card__icon svg,
.lender-offers-feed__cta.role-card .role-card__lottie svg {
  display: block;
  width: 48px;
  height: 48px;
}
.lender-offers-feed__cta.role-card .role-card__lottie {
  line-height: 0;
  pointer-events: none;
}
.lender-offers-feed__cta.role-card .role-card__copy {
  flex: 1 1 auto;
  display: grid;
  min-width: 0;
}
.lender-offers-feed__cta.role-card .role-card__copy strong {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-transform: uppercase;
}
.lender-offers-feed__cta.role-card .role-card__arrow {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--green);
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .lender-offers-feed__cta.role-card:hover {
    border-color: var(--green);
    background: var(--green-soft);
  }
}
.lender-offers-feed__empty { margin: 8px 0 0; color: var(--muted); font-size: 14px; font-weight: 600; }

@media (min-width: 900px) {
  .lender-offers-feed__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

.offer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.offer-grid .empty-state,
.offer-grid .lender-offers-feed__empty,
.lender-offers-feed__list > .empty-state,
.lender-offers-feed__list > .lender-offers-feed__empty { grid-column: 1 / -1; }
.offer-card { padding: 20px; border: 1px solid var(--line); border-radius: 21px; background: var(--surface); box-shadow: var(--shadow); }
.offer-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.offer-card__top span { display: block; color: var(--muted); font-size: 11px; }
.offer-card__top strong { display: block; margin-top: 4px; font: 560 27px var(--serif); }
.rating { padding: 7px 10px; border-radius: 12px; background: var(--surface-2); color: var(--muted); font-size: 10px; text-align: right; }
.rating b { color: var(--ink); }
.lender-loan-offers__composer { margin-bottom: 22px; max-width: 560px; }
.lender-offer-compose { display: grid; gap: 14px; }
.lender-offer-compose__aside { display: grid; gap: 14px; min-width: 0; }
@media (min-width: 1100px) {
  .lender-loan-offers__composer { max-width: none; }
  .lender-offer-compose {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 18px;
  }
  .lender-offer-compose__card {
    align-self: stretch;
    align-content: start;
    padding-top: 67px;
    padding-bottom: 71px;
  }
  .lender-offer-compose__aside {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    align-self: stretch;
    gap: 14px;
    min-width: 0;
    min-height: 0;
    height: 100%;
  }
  .lender-offer-compose__submit { margin: 0; }
}
.lender-offer-compose__card {
  display: grid;
  gap: 14px;
  padding: 22px 20px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.lender-offer-compose__title,
.lender-offer-income__title {
  margin: 0;
  font: 600 clamp(22px, 2.2vw, 24px)/1.2 var(--sans);
  letter-spacing: 0;
}
.lender-offer-compose__title { color: var(--ink); }
.lender-offer-compose__intro {
  margin: -2px 0 4px;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
}
.lender-offer-compose__field {
  display: grid;
  gap: 8px;
  margin: 0;
}
.lender-offer-compose__field > span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.lender-offer-compose__field small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.lender-offer-compose__unit {
  display: flex;
  align-items: stretch;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.lender-offer-compose__unit:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(27, 107, 67, 0.1);
}
@media (prefers-color-scheme: dark) {
  .lender-offer-compose__unit:focus-within {
    box-shadow: 0 0 0 3px rgba(61, 185, 109, 0.28);
  }
}
.lender-offer-compose__unit input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  font-variant-numeric: normal;
  appearance: textfield;
}
.lender-offer-compose__unit input::-webkit-inner-spin-button,
.lender-offer-compose__unit input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.lender-offer-compose__unit input:focus {
  outline: none;
  box-shadow: none;
}
.lender-offer-compose__slider {
  margin-top: 10px;
}
.lender-offer-compose__slider input[type="range"] {
  --slider-pct: 50%;
  --loan-slider-fill: var(--green-dark);
  --slider-track: #d6e9dc;
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  min-height: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
  cursor: pointer;
}
.lender-offer-compose__slider input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--loan-slider-fill) 0%,
    var(--loan-slider-fill) var(--slider-pct),
    var(--slider-track) var(--slider-pct),
    var(--slider-track) 100%
  );
}
.lender-offer-compose__slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -6px;
  border-radius: 50%;
  border: 2px solid var(--loan-slider-fill);
  background: #fff;
  box-shadow: 0 1px 4px rgba(21, 43, 31, 0.16);
}
.lender-offer-compose__slider input[type="range"]::-moz-range-track {
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--loan-slider-fill) 0%,
    var(--loan-slider-fill) var(--slider-pct),
    var(--slider-track) var(--slider-pct),
    var(--slider-track) 100%
  );
}
.lender-offer-compose__slider input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--loan-slider-fill);
  background: #fff;
  box-shadow: 0 1px 4px rgba(21, 43, 31, 0.16);
}
.lender-offer-compose__slider .lender-offer-compose__scale {
  margin-top: 6px;
}
.lender-offer-compose__unit b {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 52px;
  padding: 0 12px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-align: center;
}
.lender-offer-compose__unit > b:has(> .byn-sign),
.loan-pick__unit > b:has(> .byn-sign) {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--muted);
}
.lender-offer-compose__unit > b:has(> .byn-sign) .byn-sign,
.loan-pick__unit > b:has(> .byn-sign) .byn-sign {
  display: inline-block;
  height: 0.72em;
  height: 1cap;
  margin-left: 0;
  vertical-align: baseline;
  color: inherit;
  background-color: currentColor;
}
.lender-offer-compose__unit b.lender-offer-compose__unit-pct,
.loan-pick__unit b.loan-pick__unit-pct {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--muted);
}
.lender-offer-compose__pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.lender-offer-compose__rating {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: end;
}
.lender-offer-compose__rating-num {
  width: 58px;
  min-height: 50px;
  margin-bottom: 22px;
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  font-variant-numeric: normal;
  text-align: center;
  appearance: textfield;
}
.lender-offer-compose__rating-num::-webkit-inner-spin-button,
.lender-offer-compose__rating-num::-webkit-outer-spin-button { appearance: none; margin: 0; }
.lender-offer-compose__rating-meter {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.lender-offer-compose__rating-meter .issued-loan__meter {
  padding-top: 34px;
}
.lender-offer-compose__rating-meter .issued-loan__meter-track {
  overflow: visible;
}
.lender-offer-compose__rating-meter input[type="range"] {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  top: 50%;
  width: 100%;
  height: 28px;
  margin: 0;
  transform: translateY(-50%);
  opacity: 0;
  cursor: pointer;
}
.lender-offer-compose__scale {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.lender-offer-compose__stepper {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  gap: 0;
  align-items: stretch;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.lender-offer-compose__stepper:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(27, 107, 67, 0.1);
}
@media (prefers-color-scheme: dark) {
  .lender-offer-compose__stepper:focus-within {
    box-shadow: 0 0 0 3px rgba(61, 185, 109, 0.28);
  }
}
.lender-offer-compose__step {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.lender-offer-compose__step:focus {
  outline: none;
}
.lender-offer-compose__step:focus-visible {
  outline: none;
  box-shadow: none;
}
.lender-offer-compose__qty-input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 10px 8px;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  text-align: center;
  appearance: textfield;
}
.lender-offer-compose__qty-input::-webkit-inner-spin-button,
.lender-offer-compose__qty-input::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}
.lender-offer-compose__qty-input:focus {
  outline: none;
  box-shadow: none;
  border-left-color: var(--line);
  border-right-color: var(--line);
  background: transparent;
}
.lender-offer-compose__field--rating .lender-offer-compose__rating { margin-top: 2px; }
.lender-offer-compose__submit.borrower-outline-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  min-height: 44px;
  margin: 0;
  box-sizing: border-box;
  padding: 4px 18px;
  border: 1.5px solid var(--green);
  border-radius: 12px;
  background: var(--surface);
  color: var(--green-dark);
}
@media (hover: hover) and (pointer: fine) {
  .lender-offer-compose__submit.borrower-outline-btn:hover {
    background: var(--green-soft);
    color: var(--green-dark);
  }
}
@media (prefers-color-scheme: dark) {
  .lender-offer-compose__card {
    background: #000;
    border-color: #3a3a3a;
    box-shadow: none;
  }
  .lender-offer-compose__title {
    color: #fff;
  }
  .lender-offer-compose__field > span,
  .lender-offer-compose__field small,
  .lender-offer-compose__scale,
  .lender-offer-compose__unit b,
  .lender-offer-compose__unit b .byn-sign {
    color: var(--muted);
  }
  .lender-offer-compose__unit,
  .lender-offer-compose__rating-num,
  .lender-offer-compose__stepper {
    background: #000;
    border-color: #3a3a3a;
  }
  .lender-offer-compose__unit input,
  .lender-offer-compose__rating-num,
  .lender-offer-compose__qty-input,
  .lender-offer-compose__step {
    background: #000;
    color: #fff;
    color-scheme: dark;
  }
  .lender-offer-compose__unit b {
    background: #000;
    border-left-color: #3a3a3a;
  }
  .lender-offer-compose__qty-input {
    border-left-color: #3a3a3a;
    border-right-color: #3a3a3a;
  }
  .lender-offer-compose__qty-input:focus {
    border-left-color: #3a3a3a;
    border-right-color: #3a3a3a;
    background: #000;
  }
  .lender-offer-compose__card .lender-offer-compose__slider input[type="range"] {
    --loan-slider-fill: var(--green);
    --slider-track: #2a2a2a;
  }
  .lender-offer-compose__card .lender-offer-compose__slider input[type="range"]::-webkit-slider-runnable-track,
  .lender-offer-compose__card .lender-offer-compose__slider input[type="range"]::-moz-range-track {
    background: linear-gradient(
      to right,
      var(--green) 0%,
      var(--green) var(--slider-pct),
      #2a2a2a var(--slider-pct),
      #2a2a2a 100%
    );
  }
  .lender-offer-compose__card .lender-offer-compose__slider input[type="range"]::-webkit-slider-thumb,
  .lender-offer-compose__card .lender-offer-compose__slider input[type="range"]::-moz-range-thumb {
    background: #000;
    border-color: var(--green);
    box-shadow: 0 0 0 1px #000;
  }
  .lender-offer-compose__submit.borrower-outline-btn {
    border-color: #fff;
    background: #000;
    color: #fff;
  }
}
@media (prefers-color-scheme: dark) and (hover: hover) and (pointer: fine) {
  .lender-offer-compose__submit.borrower-outline-btn:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
  }
}
.lender-offer-income {
  display: grid;
  gap: 18px;
  padding: 28px 26px 30px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.lender-offer-income [data-offer-out] {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: 0;
}
.lender-offer-income__head {
  display: grid;
  gap: 14px;
}
.lender-offer-income__title { color: var(--green-dark); }
.lender-offer-income__toggle {
  display: flex;
  align-items: stretch;
  width: 100%;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  box-sizing: border-box;
}
.lender-offer-income__toggle-slider { display: none; }
.lender-offer-income__toggle.is-single .lender-offer-income__tab[data-offer-preview-mode="one"] {
  flex: 1 1 100%;
  cursor: default;
  pointer-events: none;
}
.lender-offer-income__tab {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--green);
  border-radius: 12px;
  background: var(--surface);
  color: var(--green-dark);
  font: 700 13px/1.15 var(--sans);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
}
.lender-offer-income__tab.is-active {
  background: var(--green-soft);
  color: var(--green-dark);
  border-color: var(--green);
  box-shadow: none;
}
@media (hover: hover) and (pointer: fine) {
.lender-offer-income__tab:not(.is-active):hover {
  background: var(--green-soft);
}
}
.lender-offer-income__tab:disabled {
  opacity: 0.42;
  cursor: default;
}
.lender-offer-income__check { display: grid; gap: 12px; }
.lender-offer-income__cols {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px 0;
  align-items: start;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.lender-offer-income__cols::after { content: none; }
.lender-offer-income__col {
  min-width: 0;
  box-sizing: border-box;
}
.lender-offer-income__col:first-child { padding-right: 0; }
.lender-offer-income__col + .lender-offer-income__col {
  padding: 14px 0 8px;
  border-top: 1px solid var(--line);
}
.lender-offer-income__section {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.lender-offer-income__rows {
  display: grid;
  gap: 16px;
  margin: 0;
}
.lender-offer-income__rows > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  column-gap: 12px;
  min-height: 2.5em;
}
.lender-offer-income__rows dt {
  margin: 0;
  color: var(--soft);
  font-family: Manrope, var(--sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}
.lender-offer-income__rows dd {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  justify-self: end;
  align-self: center;
  gap: 0.12em;
  margin: 0;
  color: var(--ink);
  font-family: Manrope, var(--sans);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.lender-offer-income__rows dd .byn-sign {
  display: inline-block;
  flex: 0 0 auto;
  font-size: inherit;
  font-weight: inherit;
  line-height: 0;
  height: 0.72em;
  height: 1cap;
  margin: 0 0 0.02em 0.11em;
  align-self: baseline;
  vertical-align: baseline;
  color: inherit;
  background-color: currentColor;
}
.lender-offer-income__total {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "note note"
    "label sum";
  align-items: center;
  column-gap: 16px;
  row-gap: 0;
  margin-top: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.lender-offer-income__hero-label {
  display: block;
  grid-area: label;
  max-width: 11em;
  margin: 0;
  color: var(--ink);
  font: 700 12px/1.35 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.lender-offer-income__total-sum {
  display: contents;
}
.lender-offer-income__hero-sum {
  display: flex;
  grid-area: sum;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.12em;
  margin: 0;
  color: var(--green-dark);
  font: 800 clamp(28px, 3.2vw, 36px)/1 var(--sans);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.lender-offer-income__hero-sum .byn-sign {
  display: inline-block;
  flex: 0 0 auto;
  font-size: inherit;
  line-height: 0;
  height: 0.72em;
  height: 1cap;
  margin: 0 0 0.02em 0.11em;
  align-self: baseline;
  vertical-align: baseline;
  color: inherit;
  background-color: currentColor;
}
.lender-offer-income__hero-note,
.lender-offer-income__hero-note:not(:empty) {
  grid-area: note;
  justify-self: end;
  min-height: 1.35em;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--soft);
  font: 400 14px/1.35 var(--sans);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
  transition: opacity .24s ease;
}
.lender-offer-income__hero-note { opacity: 0; }
.lender-offer-income__hero-note:not(:empty) { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .lender-offer-income__hero-note { transition: none; }
}
.lender-offer-income__hero-note .byn-sign {
  display: inline-block;
  font-size: inherit;
  line-height: 0;
  height: 0.72em;
  height: 1cap;
  margin-left: 0.11em;
  vertical-align: baseline;
  background-color: currentColor;
}
@media (prefers-color-scheme: dark) {
  .lender-offer-income {
    background: #000;
    border-color: #2a2a2a;
    box-shadow: none;
  }
  .lender-offer-income__title,
  .lender-offer-income__hero-sum,
  .lender-offer-income__hero-sum .byn-sign,
  .lender-offer-income__hero-label,
  .lender-offer-income__rows dd {
    color: #fff;
  }
  .lender-offer-income__toggle {
    background: none;
    border: 0;
  }
  .lender-offer-income__tab,
  .lender-offer-income__tab:not(.is-active):hover {
    background: #000;
    color: #fff;
    border-color: #fff;
  }
  .lender-offer-income__tab.is-active,
  .lender-offer-income__tab.is-active:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
  }
}
@media (max-width: 720px) {
  .lender-offer-income {
    gap: 14px;
    padding: 20px 18px 18px;
  }
  .lender-offer-income__rows,
  .lender-offer-income__col + .lender-offer-income__col .lender-offer-income__rows { gap: 12px; }
  .lender-offer-income__rows > div { min-height: 0; }
  .lender-offer-income__rows dt br { display: none; }
  .lender-offer-income__rows dt { white-space: nowrap; }
}
@media (max-width: 1099px) {
  .lender-loan-offers__composer { margin-bottom: 28px; }
  .lender-loan-offers__switch { margin-top: 4px; }
  .lender-loan-offers__tabs .lender-loan-offers__lead.is-split {
    margin-top: 14px;
    margin-bottom: 20px;
  }
  .lender-loan-offers__stage { margin-top: 16px; }
  .lender-loan-offers__catalog { margin-top: 0; }
}
@media (max-width: 420px) {
  .lender-offer-compose__title,
  .lender-offer-income__title { font-size: clamp(22px, 6vw, 24px); }
  .lender-offer-compose__card { padding: 24px 20px 26px; border-radius: 20px; }
  .lender-offer-income { border-radius: 20px; }
}
@media (min-width: 1100px) {
  .lender-offer-income {
    height: 100%;
    min-height: 0;
    align-content: stretch;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 14px;
    padding: 22px 22px 18px;
  }
  .lender-offer-income__head { gap: 12px; }
  .lender-offer-compose__title,
  .lender-offer-income__title { font-size: 24px; }
  .lender-offer-income__section { margin: 0 0 12px; font-size: 11px; }
  .lender-offer-income__rows {
    display: grid;
    gap: 16px;
    flex: none;
    align-content: start;
  }
  .lender-offer-income__rows > div {
    display: grid;
    flex: none;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: center;
  }
  .lender-offer-income__rows dt { font-size: 13px; white-space: nowrap; }
  .lender-offer-income__rows dt br { display: none; }
  .lender-offer-income__rows dd { font-size: 14px; }
  .lender-offer-income__cols {
    display: grid;
    height: auto;
    min-height: 0;
    align-content: start;
    gap: 14px 0;
    padding-top: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
  }
  .lender-offer-income__col { display: block; }
  .lender-offer-income__col + .lender-offer-income__col {
    padding: 14px 0 0;
    border-top: 1px solid var(--line);
  }
  .lender-offer-income__hero-label { font-size: 11px; }
  .lender-offer-income__hero-sum { font-size: 28px; }
  .lender-offer-income__total { margin-top: auto; padding-top: 0; border-top: 0; }
  .lender-offer-income__toggle { width: 100%; }
  .lender-offer-income__tab {
    flex: 1 1 0;
    width: auto;
  }
  .lender-offer-income__toggle.is-single .lender-offer-income__tab[data-offer-preview-mode="one"] {
    flex: 1 1 100%;
    width: 100%;
  }
  .lender-offer-income__check {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
  }
}
.lender-loan-offers__preview { margin: 4px 0 12px; }
.lender-loan-offers__preview + .lender-loan-offers__preview { margin-top: 0; }
.lender-loan-offers__preview-title { margin: 0 0 8px; color: var(--ink); font: 600 16px/1.25 var(--sans); }
.lender-loan-offers__from { margin: 4px 0 0; color: var(--muted); font-size: 13px; font-style: italic; }
.lender-loan-offers__composer .settings-form__intro { margin: 0 0 14px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.lender-loan-offers__tabs { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; margin: 0; }
.lender-loan-offers__tab-col { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.lender-loan-offers__tab-full { display: none; }
.lender-loan-offers__tab-short { display: inline; }
.lender-loan-offers__switch { display: block; width: 100%; max-width: 560px; }
@media (min-width: 721px) {
  .lender-loan-offers__tabs {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    width: 100%;
    max-width: none;
  }
  .lender-loan-offers__tab-col { display: contents; }
  .lender-loan-offers__tab[data-lender-loan-offers-tab="all"] { grid-column: 1 / -1; }
  .lender-loan-offers__tabs .lender-loan-offers__lead { grid-column: 1 / -1; }
  .lender-loan-offers__tab {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
  }
}
@media (min-width: 1100px) {
  .lender-loan-offers__switch { max-width: calc((100% - 18px) / 2); }
  .lender-loan-offers__stage { margin-top: 22px; }
}
@media (max-width: 720px) {
  .lender-loan-offers__tabs {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    width: 100%;
    max-width: none;
  }
  .lender-loan-offers__tab-col { display: contents; }
  .lender-loan-offers__tab[data-lender-loan-offers-tab="all"] { grid-column: 1 / -1; }
  .lender-loan-offers__tabs .lender-loan-offers__lead { grid-column: 1 / -1; }
}
.lender-loan-offers__tabs .lender-loan-offers__lead {
  flex: 1 1 100%;
  width: 100%;
  margin: 12px 0 0;
}
.lender-loan-offers__tabs .lender-loan-offers__lead.is-split {
  margin-bottom: 18px;
}
.lender-loan-offers__stage { margin-top: 18px; }
.lender-loan-offers__tab {
  padding: 12px 14px;
  border: 1px solid var(--green);
  border-radius: 12px;
  background: var(--surface);
  color: var(--green-dark);
  font: 700 13px/1.15 var(--sans);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) and (pointer: fine) {
  .lender-loan-offers__tab {
    transition: border-color .15s, color .15s, background .15s;
  }
  .lender-loan-offers__tab:hover { background: var(--green-soft); border-color: var(--green); color: var(--green-dark); }
}
.lender-loan-offers__tab.is-active { border-color: var(--green); background: var(--green-soft); color: var(--green-dark); }
@media (prefers-color-scheme: dark) {
  .lender-loan-offers__tab,
  .lender-loan-offers__tab:hover {
    background: #000;
    color: #fff;
    border-color: #fff;
  }
  .lender-loan-offers__tab.is-active,
  .lender-loan-offers__tab.is-active:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
  }
}
.lender-loan-offers__stage,
.lender-loan-offers__lead,
.issued-loan-stage,
[data-issued-body] { transition: opacity .22s ease, transform .22s ease; }
.lender-loan-offers__stage.is-out,
.lender-loan-offers__stage.is-in,
.lender-loan-offers__lead.is-out,
.lender-loan-offers__lead.is-in,
.issued-loan-stage.is-out,
.issued-loan-stage.is-in,
[data-issued-body].is-out,
[data-issued-body].is-in { opacity: 0; transform: translateY(8px); }
.lender-loan-offers__lead { margin: 22px 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.lender-loan-offers__lead.is-split { display: grid; gap: 4px; max-width: 40em; font-size: clamp(13px, 3.4vw, 15px); line-height: 1.45; }
.lender-loan-offers__lead-title { margin: 0; color: var(--green-dark); font-size: clamp(13px, 3.4vw, 15px); font-weight: 600; line-height: 1.45; }
.lender-loan-offers__lead-sub { margin: 0; color: var(--soft); font-size: clamp(13px, 3.4vw, 15px); font-weight: 500; line-height: 1.45; }
.lender-loan-offers__lead-sub-short { display: none; }
@media (min-width: 1100px) {
  .lender-loan-offers__lead-sub-full { display: none; }
  .lender-loan-offers__lead-sub-short { display: inline; }
}
@media (prefers-color-scheme: dark) {
  .lender-loan-offers__lead-title { color: #fff; }
}
.lender-loan-offers__catalog { margin-bottom: 18px; }
.lender-loan-offers__list { display: grid; gap: 14px; }
@media (min-width: 960px) {
  .lender-loan-offers__list { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
  .lender-loan-offers__list > .empty-state { grid-column: 1 / -1; }
  .lender-published-offer { height: 100%; }
}
.lpo__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lender-published-offer__mine { display: inline-flex; align-items: center; gap: 6px; width: fit-content; margin: 0; min-height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--green-soft); color: var(--green-dark); font: 600 12px/1.2 var(--sans); letter-spacing: .01em; }
.lender-published-offer__mine::before { content: ""; width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: currentColor; }
.lender-published-offer__archive-note { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.lender-published-offer { display: grid; gap: 16px; padding: 24px; }
.lpo__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.lpo__head span:not(.lender-published-offer__mine):not(.byn-sign),
.lpo__sum > div > span:not(.byn-sign),
.lpo__cell > span:not(.byn-sign),
.lpo__rate > span:not(.byn-sign) {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}
.lpo__rate span,
.lpo__sum .lpo__term { display: block; color: var(--muted); font: 500 13px/1.3 var(--sans); }
.lpo__head strong { display: block; margin-top: 2px; color: var(--ink); font: 700 26px/1.08 var(--sans); letter-spacing: -.02em; }
.lpo__rate { padding: 10px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); text-align: center; }
.lpo__rate b { display: block; margin-top: 2px; color: var(--ink); font: 800 18px/1.1 var(--sans); }
.lpo__status { display: inline-flex; align-items: center; gap: 6px; width: fit-content; margin: 0; min-height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--green-soft); color: var(--green-dark); font: 600 12px/1.2 var(--sans); letter-spacing: .01em; }
.lpo__status::before { content: ""; width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: currentColor; }
.lpo__status--closed { background: #fbf0da; color: #9a6b16; }
.lpo__status--removed { background: var(--surface-2); color: var(--muted); }
.lpo__sum { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.lpo__sum strong {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 0.12em;
  margin-top: 2px;
  color: var(--ink);
  font: 800 28px/1.05 var(--sans);
  letter-spacing: -.03em;
  white-space: nowrap;
}
.lender-published-offer .lpo__sum strong .byn-sign,
.lender-published-offer .lpo__cell--money > b .byn-sign {
  display: inline-block;
  flex: 0 0 auto;
  width: auto;
  font-size: inherit;
  font-weight: inherit;
  line-height: 0;
  height: 0.72em;
  height: 1cap;
  margin: 0 0 0.02em 0.11em;
  align-self: baseline;
  vertical-align: baseline;
  color: inherit;
  background-color: currentColor;
}
.lpo__term { flex: 0 0 auto; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.lpo__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: stretch; }
.lpo__grid > .lpo__cell { min-height: 6.25rem; }
.lpo__cell {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-height: 0;
  height: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-sizing: border-box;
}
.lpo__cell--money > span,
.lpo__cell--rating > span,
.lpo__cell:has(.lpo__bar) > span { min-height: 0; }
.lpo__cell--money,
.lpo__cell--rating,
.lpo__cell:has(.lpo__bar) { gap: 4px; }
.lpo__cell--money { gap: 12px; }
.lpo__cell--money > b { font-weight: 800; }
.lpo__cell--money::after { content: ""; display: block; flex: 1 1 auto; min-height: 0; }
.lpo__cell--rating > b,
.lpo__cell:has(.lpo__bar) > b { margin-top: auto; }
.lpo__cell--rating::after {
  content: "";
  display: block;
  flex: 0 0 auto;
  height: 8px;
}
.lpo__cell b {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 0.12em;
  color: var(--ink);
  font: 700 20px/1.12 var(--sans);
  white-space: nowrap;
}
.lpo__cell--rating[data-rating-grade="A"] { border-color: #2f6fd4; }
.lpo__cell--rating[data-rating-grade="B"] { border-color: var(--green); }
.lpo__cell--rating[data-rating-grade="C"] { border-color: #e2a33a; }
.lpo__cell--rating[data-rating-grade="D"] { border-color: #e07a2f; }
.lpo__cell--rating[data-rating-grade="E"] { border-color: #c9413d; }
.lpo__cell--rating > b[data-rating-grade="A"] { color: #2f6fd4; }
.lpo__cell--rating > b[data-rating-grade="B"] { color: var(--green); }
.lpo__cell--rating > b[data-rating-grade="C"] { color: #e2a33a; }
.lpo__cell--rating > b[data-rating-grade="D"] { color: #e07a2f; }
.lpo__cell--rating > b[data-rating-grade="E"] { color: #c9413d; }
.lpo__bar { display: block; height: 4px; margin-top: 4px; border-radius: 999px; background: #d7ebe0; overflow: hidden; }
.lpo__bar i { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.lpo__cell--rating:has(.lpo__bar)::after { display: none; }
.lpo__cell--rating[data-rating-grade="A"] .lpo__bar > i { background: #2f6fd4; }
.lpo__cell--rating[data-rating-grade="B"] .lpo__bar > i { background: var(--green); }
.lpo__cell--rating[data-rating-grade="C"] .lpo__bar > i { background: #e2a33a; }
.lpo__cell--rating[data-rating-grade="D"] .lpo__bar > i { background: #e07a2f; }
.lpo__cell--rating[data-rating-grade="E"] .lpo__bar > i { background: #c9413d; }
.lpo__date { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--soft); font-size: 14px; font-weight: 500; }
.lpo__date svg { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; }
.lpo__remove {
  width: 100%;
  margin-top: auto;
  padding: 12px 14px;
  border: 1px solid var(--red);
  border-radius: 12px;
  background: var(--surface);
  color: var(--red);
  font: 700 13px/1.15 var(--sans);
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.issued-loan__deal.borrower-outline-btn.is-cancelled {
  border-color: var(--red);
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .01em;
  cursor: default;
}
.issued-loan__deal.borrower-outline-btn.is-cancelled:disabled {
  opacity: 1;
}
.issued-loan__deal.borrower-outline-btn.is-cancelled:disabled:hover {
  background: transparent;
  border-color: var(--red);
  color: var(--red);
}
.page[data-page="borrower-applications"] .borrower-loan-card.issued-loan,
.page[data-page="borrower-loans"] .borrower-loan-card.issued-loan {
  gap: 8px;
  padding: 12px 12px 10px;
}
.page[data-page="borrower-applications"] .borrower-loan-card > .issued-loan__payout,
.page[data-page="borrower-loans"] .borrower-loan-card > .issued-loan__payout {
  padding: 10px 12px;
  gap: 8px;
}
.issued-loan__deal.borrower-outline-btn.is-cancelled-spacer {
  visibility: hidden;
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .lpo__remove {
    transition: background .15s ease, color .15s ease;
  }
  .lpo__remove:hover { background: var(--red-soft); color: var(--red); }
}
@media (prefers-color-scheme: dark) {
  .lender-published-offer {
    background: #000;
    border-color: #2a2a2a;
    box-shadow: none;
  }
  .lpo__rate,
  .lpo__sum,
  .lpo__term { background: #000; }
  .lpo__rate span,
  .lpo__sum .lpo__term { color: var(--muted); }
  .lpo__head strong,
  .lpo__sum strong,
  .lpo__rate b,
  .lpo__cell b,
  .lender-published-offer .byn-sign { color: #fff; }
  .lender-published-offer .byn-sign { background-color: #fff; }
  .lpo__bar { background: #1d3328; }
  .lpo__status,
  .lender-published-offer__mine { background: var(--green-soft); border: 1.5px solid var(--green); color: #6ecf96; }
  .lpo__status--closed { background: rgba(226, 163, 58, .18); border-color: #e2a33a; color: #e8c896; }
  .lpo__status--removed { background: #161616; border-color: #2a2a2a; color: var(--muted); }
  .lpo__remove { border-color: #ff5c52; background: #000; color: #ff5c52; }
  .lpo__cell--rating > b[data-rating-grade="C"],
  .lpo__cell--rating > b[data-rating-grade="D"],
  .lpo__cell--rating > b[data-rating-grade="E"] { color: #fff; }
  .lpo__cell--rating[data-rating-grade="C"],
  .lpo__cell--rating[data-rating-grade="D"],
  .lpo__cell--rating[data-rating-grade="E"] { border-color: currentColor; }
  .lpo__cell--rating[data-rating-grade="C"] { border-color: #e2a33a; }
  .lpo__cell--rating[data-rating-grade="D"] { border-color: #e07a2f; }
  .lpo__cell--rating[data-rating-grade="E"] { border-color: #ff5c52; }
  .lpo__cell--rating[data-rating-grade="A"] { border-color: #5b8fd9; }
  .lpo__cell--rating[data-rating-grade="B"] { border-color: #6ecf96; }
  .lpo__cell--rating > b[data-rating-grade="A"] { color: #8eb5f0; }
  .lpo__cell--rating > b[data-rating-grade="B"] { color: #6ecf96; }
  .lpo__cell--rating[data-rating-grade="A"] .lpo__bar > i { background: #5b8fd9; }
  .lpo__cell--rating[data-rating-grade="B"] .lpo__bar > i { background: #6ecf96; }
  .lpo__cell--rating[data-rating-grade="C"] .lpo__bar > i { background: #e2a33a; }
  .lpo__cell--rating[data-rating-grade="D"] .lpo__bar > i { background: #e07a2f; }
  .lpo__cell--rating[data-rating-grade="E"] .lpo__bar > i { background: #ff5c52; }
}
@media (prefers-color-scheme: dark) and (hover: hover) and (pointer: fine) {
  .lpo__remove:hover { background: rgba(255, 92, 82, .16); color: #ff5c52; }
}
@media (min-width: 960px) {
  .lender-loan-offers__list .lender-published-offer { gap: 11px; padding: 14px 12px 12px; }
  .lender-loan-offers__list .lpo__head strong { font-size: 18px; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; }
  .lender-loan-offers__list .lpo__sum { padding: 10px 11px; }
  .lender-loan-offers__list .lpo__sum strong { font-size: 23px; font-weight: 800; line-height: 1.08; letter-spacing: -.02em; }
  .lender-loan-offers__list .lpo__rate { padding: 8px 10px; }
  .lender-loan-offers__list .lpo__rate b { font-size: 15px; font-weight: 700; line-height: 1.2; }
  .lender-loan-offers__list .lpo__cell b { font-size: 17px; font-weight: 700; line-height: 1.12; }
  .lender-loan-offers__list .lpo__head span:not(.lender-published-offer__mine):not(.byn-sign),
  .lender-loan-offers__list .lpo__sum > div > span:not(.byn-sign),
  .lender-loan-offers__list .lpo__cell > span:not(.byn-sign),
  .lender-loan-offers__list .lpo__rate > span:not(.byn-sign),
  .lender-loan-offers__list .lpo__sum .lpo__term { font-size: 11px; font-weight: 500; letter-spacing: .02em; line-height: 1.25; }
  .lender-loan-offers__list .lpo__sum .lpo__term { font-size: 11px; }
  .lender-loan-offers__list .lpo__status,
  .lender-loan-offers__list .lender-published-offer__mine { gap: 4px; min-height: 26px; padding: 0 9px; font-size: 11px; font-weight: 600; }
  .lender-loan-offers__list .lpo__status::before,
  .lender-loan-offers__list .lender-published-offer__mine::before { width: 6px; height: 6px; }
  .lender-loan-offers__list .lpo__grid > .lpo__cell { min-height: 5.65rem; }
  .lender-loan-offers__list .lpo__cell { gap: 5px; padding: 10px 11px; }
  .lender-loan-offers__list .lpo__cell--money > span,
  .lender-loan-offers__list .lpo__cell--rating > span,
  .lender-loan-offers__list .lpo__cell:has(.lpo__bar) > span { min-height: 0; }
  .lender-loan-offers__list .lpo__cell--rating,
  .lender-loan-offers__list .lpo__cell:has(.lpo__bar) { gap: 3px; }
  .lender-loan-offers__list .lpo__cell--money { gap: 10px; }
  .lender-loan-offers__list .lpo__cell--money > b { font-weight: 800; }
  .lender-loan-offers__list .lpo__grid { gap: 8px; }
  .lender-loan-offers__list .lpo__date { font-size: 12px; }
  .lender-loan-offers__list .lpo__date svg { width: 15px; height: 15px; }
  .lender-loan-offers__list .lpo__remove { min-height: 38px; padding: 8px 12px; font-size: 13px; font-weight: 700; }
}
.offer-card dl, .payment dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.offer-card dl { margin: 18px 0; }
.offer-card dl div, .payment dl div { padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
dt { color: var(--muted); font-size: 10px; } dd { margin: 2px 0 0; font-weight: 800; }
.borrower { margin-bottom: 16px; padding: 11px; display: flex; align-items: center; gap: 9px; border-radius: 13px; background: var(--surface-2); }
.borrower small, .borrower b { display: block; }
.borrower small { color: var(--muted); font-size: 10px; }

.toolbar { margin-bottom: 15px; display: grid; grid-template-columns: 1fr 220px; gap: 12px; }
.search { position: relative; display: block; }
.search span { position: absolute; left: 14px; top: 50%; color: var(--muted); font-size: 19px; transform: translateY(-50%); }
.search input { padding-left: 42px; }
.search--full { margin-bottom: 14px; }
.investment-list, .payment-list, .notification-list { display: grid; gap: 10px; }
.issued-loan-tools { display: grid; gap: 12px; margin-bottom: 14px; }
.issued-loan-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.page[data-page="borrower-loans"] .issued-loan-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.page[data-page="borrower-loans"] .issued-loan-filters .borrower-outline-btn,
.page[data-page="borrower-applications"] .issued-loan-filters .borrower-outline-btn {
  padding: 10px 8px;
  font-size: 12px;
  letter-spacing: .03em;
  line-height: 1.2;
  text-wrap: balance;
}
.page[data-page="borrower-applications"] .issued-loan-filters {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 900px) {
  .page[data-page="borrower-applications"] .issued-loan-filters {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .page[data-page="borrower-loans"] .issued-loan-filters { grid-template-columns: 1fr; }
  .page[data-page="borrower-applications"] .issued-loan-filters .borrower-outline-btn[data-status="expired"] {
    grid-column: 1 / -1;
  }
}
.issued-loan-filters .borrower-outline-btn {
  display: flex;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  min-height: 44px;
  color: var(--green-dark);
}
.issued-loan-filters .borrower-outline-btn.is-on {
  background: var(--green-soft);
  border-color: var(--green);
  color: var(--green-dark);
}
.issued-loan-tools .search span {
  left: 14px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: var(--muted);
  line-height: 0;
}
.issued-loan-tools .search span svg {
  display: block;
  width: 16px;
  height: 16px;
}
.issued-loan-tools .search input {
  width: 100%;
  min-height: 48px;
  padding-left: 42px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 16px;
  box-shadow: none;
}
.issued-loan-tools .search input:focus,
.issued-loan-tools .search input.is-filled {
  border-color: var(--green);
  background: var(--green-soft);
  box-shadow: none;
}
.issued-loan-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}
@media (min-width: 900px) {
  .issued-loan-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.issued-loan {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 18px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(28, 24, 48, .05);
  color: var(--ink);
  font-family: var(--sans);
  --issued-split-h: 140px;
}
.issued-loan__top {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin: 0;
  max-width: calc(100% - 32px);
}
.issued-loan__sum > span,
.issued-loan__cell > span,
.issued-loan__who > span,
.issued-loan__track > div > span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1.3;
}
.issued-loan__sum { display: grid; gap: 6px; padding-right: 92px; }
.issued-loan__sum strong {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 0.12em;
  margin: 0;
  color: var(--ink);
  font-size: clamp(26px, 7vw, 28px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.05;
  font-variant-numeric: normal;
  white-space: nowrap;
}
.issued-loan__sum strong .byn-sign,
.issued-loan__payout-main .byn-sign {
  display: inline-block;
  flex: 0 0 auto;
  width: auto;
  font-size: inherit;
  font-weight: inherit;
  line-height: 0;
  height: 0.72em;
  height: 1cap;
  margin: 0 0 0.02em 0.11em;
  align-self: baseline;
  vertical-align: baseline;
  color: inherit;
  background-color: currentColor;
}
.issued-loan__cells {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}
.issued-loan__cell {
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  gap: 6px;
  height: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.issued-loan__cell b,
.issued-loan__track b {
  display: block;
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  font-variant-numeric: normal;
}
.issued-loan__cell b {
  white-space: nowrap;
}
.issued-loan__track {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
  align-items: stretch;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.issued-loan__track-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
}
.issued-loan__track-dot {
  flex: 0 0 11px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--green);
}
.issued-loan__track-bar {
  flex: 1 1 auto;
  min-width: 0;
  height: 4px;
  border-radius: 999px;
  background: var(--green);
}
.issued-loan__track > div:not(.issued-loan__track-head) {
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  gap: 6px;
}
.issued-loan__track > div:not(.issued-loan__track-head):last-child { text-align: right; }
.issued-loan__split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.issued-loan__payout {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-height: 0;
  height: auto;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.page[data-page="offers"] .offer-card.issued-loan > .issued-loan__payout {
  align-self: start;
}
.page[data-page="offers"] .offer-card.issued-loan > .borrower-loan-card__app-no {
  margin-top: 2px;
}
.page[data-page="borrower-applications"] .borrower-loan-card > .issued-loan__payout,
.page[data-page="borrower-loans"] .borrower-loan-card > .issued-loan__payout {
  align-self: stretch;
  width: 100%;
}
.issued-loan__payout-block {
  display: grid;
  gap: 6px;
  flex: 0 0 auto;
}
.issued-loan__payout-rule {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  width: 100%;
}
.issued-loan__payout-rule::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: var(--line);
}
.issued-loan__payout-label {
  display: block;
  margin: 0;
  line-height: 1.25;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .02em;
}
.issued-loan__payout-main,
.issued-loan__payout-extra strong {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 0.12em;
  margin: 0;
  padding: 0;
  border: 0;
  white-space: nowrap;
  line-height: 1.25;
}
.issued-loan__payout-main {
  font-size: clamp(20px, 5.4vw, 22px);
  font-weight: 800;
  letter-spacing: -.02em;
  font-variant-numeric: normal;
  color: var(--ink);
}
.issued-loan__payout-extra {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35em;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
}
.issued-loan__payout-extra strong {
  font-size: inherit;
  font-weight: 600;
  color: inherit;
}
.issued-loan__person {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: var(--issued-split-h);
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.issued-loan__who { display: grid; gap: 6px; }
.investment.issued-loan .issued-loan__who b {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.issued-loan__who b {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  line-height: 1.25;
}
.investment.issued-loan .issued-loan__who small,
.issued-loan__who small {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .01em;
}
.issued-loan__score {
  display: block;
  width: 100%;
  margin-top: auto;
  padding-top: 0;
}
.issued-loan__score[data-rating-grade="A"] { --score-color: #2f6fd4; }
.issued-loan__score[data-rating-grade="B"] { --score-color: var(--green); }
.issued-loan__score[data-rating-grade="C"] { --score-color: #e2a33a; }
.issued-loan__score[data-rating-grade="D"] { --score-color: #e07a2f; }
.issued-loan__score[data-rating-grade="E"] { --score-color: var(--red); }
.issued-loan__pill,
.issued-loan__score-badge {
  font: 600 11px/1.2 var(--sans);
  letter-spacing: .01em;
  text-transform: none;
}
.issued-loan__score-badge {
  position: absolute;
  left: var(--score-pos, 0%);
  bottom: calc(100% + 10px);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 4px 8px;
  border-radius: 999px;
  box-sizing: border-box;
  background: var(--green-soft);
  color: var(--score-color, var(--green));
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
}
.issued-loan__score[data-rating-grade="A"] .issued-loan__score-badge { background: #e8f0fb; }
.issued-loan__score[data-rating-grade="C"] .issued-loan__score-badge { background: #fbf0da; color: #9a6b16; }
.issued-loan__score[data-rating-grade="D"] .issued-loan__score-badge { background: #fde8d8; color: #b85a1e; }
.issued-loan__score[data-rating-grade="E"] .issued-loan__score-badge { background: var(--red-soft); color: #a53e36; }
.issued-loan__meter { width: 100%; padding: 34px 2px 0; }
.issued-loan__meter-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: #e8ece9;
  box-shadow: inset 0 1px 2px rgba(21, 34, 24, .08);
  overflow: visible;
}
.issued-loan__meter-zones {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    rgba(201, 65, 61, .42) 0 35%,
    rgba(224, 122, 47, .34) 35% 50%,
    rgba(226, 163, 58, .3) 50% 65%,
    rgba(63, 143, 92, .26) 65% 80%,
    rgba(47, 111, 212, .24) 80% 100%
  );
}
.issued-loan__meter-marker {
  position: absolute;
  top: 50%;
  left: var(--score-pos);
  z-index: 2;
  width: 2px;
  height: 16px;
  border-radius: 1px;
  background: var(--score-color, var(--green));
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 2px #fff, 0 1px 2px rgba(20, 33, 23, .15);
}
.issued-loan__meter-labels {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}
.issued-loan__warn-slot {
  display: block;
  width: 100%;
  min-height: 0;
}
.issued-loan__warn {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #b89518;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}
.issued-loan__warn.is-reserved {
  visibility: hidden;
}
.issued-loan__warn i { width: 8px; height: 8px; border-radius: 50%; background: #e8c84a; flex: 0 0 auto; }
.issued-loan__pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
}
.page[data-page="offers"] .offer-card.issued-loan .issued-loan__pill[data-rating-grade],
.page[data-page="borrower-applications"] .borrower-loan-card .issued-loan__pill,
.page[data-page="borrower-loans"] .borrower-loan-card .issued-loan__pill,
.page[data-page="investments"] .investment.issued-loan .issued-loan__pill,
.page[data-page="offers"] .offer-card.issued-loan .issued-loan__score-badge,
.page[data-page="investments"] .investment.issued-loan .issued-loan__score-badge {
  font: 600 11px/1.2 var(--sans);
  letter-spacing: .01em;
}
.issued-loan__pill svg { width: 14px; height: 14px; }
.issued-loan__pill.is-closed {
  background: var(--green-soft);
  color: var(--green-dark);
}
.issued-loan__pill.is-cancelled {
  background: var(--red-soft);
  color: var(--red);
}
.issued-loan__pill.is-active {
  background: #fbf0da;
  color: #9a6b16;
}
.issued-loan__pill.is-late {
  background: var(--red-soft);
  color: #a53e36;
}
.issued-loan__pill.is-open {
  background: var(--green-soft);
  color: var(--green-dark);
}
.offer-card .issued-loan__pill[data-rating-grade="A"] { background: #e8f0fb; color: #2f6fd4; }
.offer-card .issued-loan__pill[data-rating-grade="B"] { background: var(--green-soft); color: var(--green); }
.offer-card .issued-loan__pill[data-rating-grade="C"] { background: #fbf0da; color: #9a6b16; }
.offer-card .issued-loan__pill[data-rating-grade="D"] { background: #fde8d8; color: #b85a1e; }
.offer-card .issued-loan__pill[data-rating-grade="E"] { background: var(--red-soft); color: #a53e36; }
.offer-card__score {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.page[data-page="offers"] .offer-card.issued-loan .offer-card__score.issued-loan__score {
  margin-top: 8px;
  margin-bottom: 6px;
}
.page[data-page="offers"] .offer-card.issued-loan .issued-loan__meter {
  padding-top: 40px;
  padding-bottom: 4px;
}
.page[data-page="offers"] .offer-card.issued-loan .issued-loan__score-badge {
  bottom: calc(100% + 14px);
}
.page[data-page="offers"] .offer-card.issued-loan .issued-loan__meter-labels {
  margin-top: 12px;
}
@media (min-width: 900px) {
  .page[data-page="offers"] .offer-card.issued-loan .issued-loan__meter {
    padding-top: 32px;
    padding-bottom: 4px;
  }
  .page[data-page="offers"] .offer-card.issued-loan .issued-loan__score-badge {
    bottom: calc(100% + 12px);
  }
  .page[data-page="offers"] .offer-card.issued-loan .issued-loan__meter-labels {
    margin-top: 10px;
  }
}
.issued-loan__deal.borrower-outline-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: none;
  margin-top: 0;
  margin-inline: 0;
  min-height: 44px;
  color: var(--green-dark);
  font: 700 13px/1.15 var(--sans);
  letter-spacing: .01em;
  text-transform: none;
}
@media (hover: hover) and (pointer: fine) {
.issued-loan__deal.borrower-outline-btn:hover {
  background: var(--green-soft);
  color: var(--green-dark);
}
}
.issued-loan__deal svg { width: 18px; height: 18px; flex-shrink: 0; }
.page[data-page="borrower-applications"] .borrower-loan-card.is-busy {
  overflow: hidden;
  pointer-events: none;
}
.page[data-page="borrower-applications"] .borrower-loan-card.is-busy::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: translate3d(-130%, 0, 0);
  animation: loan-pick-shimmer 2.2s linear infinite;
  will-change: transform;
  pointer-events: none;
  z-index: 6;
}
.page[data-page="borrower-applications"] .issued-loan__deal.is-loading::before {
  display: none;
}
.borrower-applications-wait {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 220px;
  padding: 32px 16px;
  color: var(--soft);
  font: 600 15px/1.4 var(--sans);
  text-align: center;
}
.borrower-applications-wait p { margin: 0; }
.borrower-applications-wait__spin {
  width: 28px;
  height: 28px;
  border: 2.5px solid var(--green);
  border-right-color: transparent;
  border-radius: 50%;
  animation: button-spin .7s linear infinite;
}

@media (min-width: 900px) {
  .issued-loan {
    gap: 11px;
    padding: 14px 12px 12px;
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(28, 24, 48, .04);
    --issued-split-h: 124px;
  }
  .issued-loan__top { top: 12px; right: 12px; }
  .issued-loan__sum { padding-right: 76px; gap: 4px; }
  .issued-loan__sum strong {
    font-size: 23px;
    line-height: 1.08;
    letter-spacing: -.02em;
  }
  .issued-loan__sum > span,
  .issued-loan__cell > span,
  .issued-loan__who > span,
  .issued-loan__track > div > span,
  .issued-loan__payout-label {
    font-size: 11px;
    line-height: 1.25;
  }
  .issued-loan__cell b,
  .issued-loan__track b { font-size: 14px; }
  .issued-loan__cells { gap: 8px; }
  .issued-loan__cell,
  .issued-loan__track,
  .issued-loan__payout,
  .issued-loan__person {
    padding: 10px 11px;
    border-radius: 13px;
  }
  .issued-loan__track { gap: 5px 10px; }
  .issued-loan__track > div:not(.issued-loan__track-head) { gap: 5px; }
  .issued-loan__split { gap: 10px; }
  .issued-loan__payout-block { gap: 4px; }
  .issued-loan__payout-main { font-size: 18px; }
  .issued-loan__payout { gap: 10px; }
  .issued-loan__person { gap: 5px; }
  .issued-loan__who { gap: 4px; }
  .investment.issued-loan .issued-loan__who b {
    font-size: 11px;
    line-height: 1.25;
  }
  .issued-loan__who b {
    font-size: 11px;
    line-height: 1.25;
  }
  .issued-loan__who small,
  .investment.issued-loan .issued-loan__who small { font-size: 11px; }
  .issued-loan__score-badge {
    bottom: calc(100% + 8px);
    padding: 3px 7px;
  }
  .issued-loan__meter { padding: 26px 2px 0; }
  .issued-loan__meter-track { height: 8px; }
  .issued-loan__meter-marker { height: 13px; }
  .issued-loan__meter-labels {
    margin-top: 6px;
    font-size: 11px;
  }
  .issued-loan__track-head { gap: 8px; }
  .issued-loan__track-dot {
    flex: 0 0 9px;
    width: 9px;
    height: 9px;
  }
  .issued-loan__track-bar { height: 3px; }
  .issued-loan__pill {
    gap: 7px;
    min-height: 26px;
    padding: 0 9px;
  }
  .issued-loan__pill svg { width: 11px; height: 11px; }
  .issued-loan__deal.borrower-outline-btn {
    gap: 6px;
    min-height: 38px;
    font: 700 13px/1.15 var(--sans);
  }
  .issued-loan__deal svg { width: 15px; height: 15px; }
  .issued-loan__warn {
    gap: 6px;
    font-size: 11px;
  }
}

.issued-loan__open {
  width: 100%;
  min-height: 46px;
  border: 1.5px solid var(--green);
  border-radius: 12px;
  background: #fff;
  color: var(--green);
  font: 800 13px/1.15 var(--sans);
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}
.page[data-page="issued-deal"] .issued-loan-screen { display: block; }
.issued-loan-screen__back { margin-bottom: 8px; }
.issued-loan-screen .eyebrow { margin-bottom: 8px; }
.issued-loan-screen__title {
  margin: 0 0 16px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0;
}
.issued-loan-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.issued-loan-tabs .borrower-outline-btn {
  display: inline-flex;
  width: auto;
  min-height: 40px;
  padding: 8px 16px;
  box-sizing: border-box;
}
.issued-loan-tabs .borrower-outline-btn.is-on {
  background: transparent;
  border-color: var(--green);
  color: var(--green);
}
.issued-loan-screen__to-list {
  margin-top: 22px;
}
.issued-detail { display: grid; gap: 16px; }
.issued-detail > h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.issued-dl-list,
.issued-return__card {
  display: grid;
  gap: 12px;
}
.issued-dl {
  display: grid;
  grid-template-columns: auto minmax(16px, 1fr) auto;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.issued-dl__label {
  color: var(--soft);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}
.issued-dl__dots {
  min-width: 16px;
  border-bottom: 1px dotted #c5cdc8;
  transform: translateY(-0.45em);
}
.issued-dl__value {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.issued-dl--ok .issued-dl__value { color: var(--green); }
.issued-dl--warn .issued-dl__value { color: var(--red); }
.issued-dl--total .issued-dl__label,
.issued-dl--total .issued-dl__value {
  color: var(--ink);
  font-weight: 800;
}
.issued-dl__link {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--green);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.issued-contacts {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 20px;
}
.issued-contacts[hidden] { display: none !important; }
.issued-contacts__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 21, 13, .45);
  backdrop-filter: blur(6px);
}
.issued-contacts__card {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-height: min(86vh, 720px);
  overflow: auto;
  padding: 36px 40px 28px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(20, 36, 25, .18);
}
.issued-contacts__card h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.03em;
  text-align: center;
}
.issued-contacts__copy {
  display: grid;
  gap: 14px;
  margin: 0 0 22px;
}
.issued-contacts__copy p {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}
.issued-contacts__fields {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
}
.issued-contacts__close {
  display: flex;
  min-width: 180px;
  margin: 8px auto 0;
}
.issued-dl__help {
  width: 18px;
  height: 18px;
  margin-left: 4px;
  padding: 0;
  border: 1px solid #8b93a7;
  border-radius: 50%;
  background: transparent;
  color: #8b93a7;
  font-size: 11px;
  line-height: 16px;
  vertical-align: middle;
  cursor: pointer;
}
.issued-detail__group {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.issued-detail__group:not(:last-of-type) {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.issued-payment .issued-detail__group,
.issued-return__card .issued-detail__group {
  padding-bottom: 0;
  border-bottom: 0;
}
.issued-detail__group-title {
  margin: 12px 0 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.3;
  font-style: italic;
}
.issued-detail__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  padding: 0;
  border: 0;
}
.issued-detail__row span {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--soft);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.35;
}
.issued-detail__row b {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0.12em;
  margin: 0;
  margin-left: auto;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.issued-detail__row b .byn-sign {
  flex: 0 0 auto;
  font-size: 1em;
  height: 0.68em;
  margin-left: 0.11em;
  align-self: baseline;
  vertical-align: baseline;
}
.issued-detail__box, .issued-payment, .issued-doc, .issued-detail__note {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.issued-detail__split { margin: 8px 0 0; font-weight: 800; }
.issued-payment { display: grid; gap: 0; }
.issued-payment .issued-detail__group { gap: 10px; }
.issued-payment--rest {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding: 16px 18px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: transparent;
}
.issued-rest {
  margin-top: 8px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}
.issued-rest__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin: 0;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.issued-rest__head span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.35;
}
.issued-rest__head strong {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.issued-rest__chevron {
  display: block;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: .7;
}
.issued-rest.is-open .issued-rest__chevron {
  transform: rotate(-135deg) translateY(-1px);
}
.issued-rest__body {
  display: grid;
  gap: 12px;
  padding: 0 20px 18px;
}
.issued-rest__body .issued-detail__group-title {
  margin: 0;
}
.issued-early {
  display: grid;
  gap: 16px;
  margin-top: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.issued-early h3 {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.issued-early__quote {
  margin: 0;
  padding: 2px 0 2px 16px;
  border-left: 3px solid var(--line);
  color: var(--soft);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
}
.issued-early__status {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}
.issued-doc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
}
.issued-doc div { display: grid; gap: 4px; min-width: 0; }
.issued-doc b {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
}
.issued-doc small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.issued-doc .borrower-outline-btn,
.issued-detail__note .borrower-outline-btn {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 14px;
}
.issued-detail__note { display: grid; gap: 10px; }
.issued-detail__note h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}
.issued-detail__note p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.35;
}
.issued-detail .issued-loan__open { margin-top: 8px; }
.issued-return { gap: 16px; }
.issued-return__card {
  display: grid;
  gap: 12px;
  padding: 18px 20px;
  border: 0;
  border-radius: 18px;
  background: #f3f4f6;
}
.issued-return__card .issued-detail__group-title {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
  font-weight: 500;
}
.issued-paytable-wrap {
  overflow-x: auto;
  margin: 0 -4px;
  padding: 0 4px 8px;
}
.issued-paytable {
  width: 100%;
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0 8px;
}
.issued-paytable th {
  padding: 0 12px 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}
.issued-paytable td {
  padding: 16px 12px;
  background: #f3f4f6;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  vertical-align: middle;
}
.issued-paytable td:first-child { border-radius: 14px 0 0 14px; }
.issued-paytable td:last-child { border-radius: 0 14px 14px 0; }
.issued-paytable__date { line-height: 1.25; }
.issued-paytable__date small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.issued-paytable__type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}
.issued-paytable__type::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}
.issued-paytable__type--out { color: var(--green); }
.issued-paytable__type--out::before { transform: rotate(45deg); }
.issued-paytable__type--back { color: var(--green); }
.issued-paytable__type--back::before { transform: rotate(-135deg); }
.issued-paytable__actions { position: relative; }
.issued-paytable__menu-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.issued-paytable__menu-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.issued-paytable__menu {
  position: absolute;
  z-index: 4;
  top: 100%;
  left: 0;
  min-width: 210px;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(20, 36, 25, .14);
}
.issued-paytable__menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font: 600 14px/1.3 var(--sans);
  text-align: left;
  cursor: pointer;
}
.issued-paytable__menu button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
.issued-paytable__card-type {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
}
.issued-paytable__card-type svg {
  width: 22px;
  height: 22px;
  stroke: #2f6fd4;
  fill: #2f6fd4;
}
.issued-docs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.issued-doc-card {
  display: grid;
  gap: 10px;
  padding: 16px 16px 14px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.issued-doc-card__head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.issued-doc-card__pdf {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
}
.issued-doc-card b {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.3;
}
.issued-doc-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.issued-doc-card__dl {
  justify-self: start;
  margin: 4px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--green);
  font: 800 13px/1.2 var(--sans);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.issued-docs-request {
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  justify-items: start;
}
.issued-docs-request h3 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
}
.issued-docs-request p {
  margin: 0;
  padding-left: 14px;
  border-left: 3px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  max-width: 62ch;
}
.investment small { display: block; color: var(--muted); font-size: 10px; }
.investment a { color: var(--green); font-weight: 800; text-decoration: none; }
.status { padding: 7px 10px; border-radius: 999px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.status--active, .status--closed { background: var(--green-soft); color: var(--green); }
.status--idle { background: var(--surface-2); color: var(--muted); }
.borrower-loan-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
  width: 100%;
  max-width: min(560px, 100%);
}
.borrower-loan-list > .empty-state,
.page[data-page="borrower-loans"] .issued-loan-stage > .empty-state,
.page[data-page="borrower-applications"] .issued-loan-stage > .empty-state {
  grid-column: 1 / -1;
  max-width: none;
}
.page[data-page="borrower-loans"] .issued-loan-tools,
.page[data-page="borrower-loans"] .issued-loan-stage,
.page[data-page="borrower-applications"] .issued-loan-tools,
.page[data-page="borrower-applications"] .issued-loan-stage {
  width: 100%;
  max-width: min(560px, 100%);
}
.page[data-page="borrower-applications"].is-active {
  min-height: calc(100dvh - 96px);
}
.page[data-page="borrower-applications"] .page-head {
  margin-bottom: 24px;
}
.page[data-page="borrower-applications"] .issued-loan-tools {
  margin-bottom: 14px;
}
.page[data-page="borrower-applications"] .issued-loan-stage {
  min-height: min(90vh, 1100px);
  padding-bottom: 220px;
}
@media (min-width: 900px) {
  .borrower-loan-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: none;
  }
  .page[data-page="borrower-loans"] .issued-loan-tools,
  .page[data-page="borrower-loans"] .issued-loan-stage,
  .page[data-page="borrower-applications"] .issued-loan-tools,
  .page[data-page="borrower-applications"] .issued-loan-stage {
    max-width: none;
  }
}
@media (max-width: 899px) {
  .borrower-loan-list {
    align-items: start;
  }
  .borrower-loan-card.issued-loan {
    height: auto;
  }
  .borrower-loan-card__foot {
    margin-top: 0;
  }
}
.borrower-loan-card.issued-loan {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
}
.borrower-loan-card__foot {
  margin-top: auto;
  display: grid;
  gap: inherit;
  width: 100%;
}
.borrower-loan-card__note,
.borrower-loan-card__foot > .borrower-loan__meta {
  padding: 10px 6px 14px;
}
.page[data-page="borrower-applications"] .borrower-loan-card.issued-loan,
.page[data-page="borrower-loans"] .borrower-loan-card.issued-loan {
  --app-card-note-h: calc(10px + (13px * 1.45 * 5) + 14px);
  --app-card-btn-h: 44px;
}
.page[data-page="borrower-applications"] .borrower-loan-card .borrower-loan-card__foot,
.page[data-page="borrower-loans"] .borrower-loan-card .borrower-loan-card__foot {
  display: grid;
  grid-template-rows: var(--app-card-note-h) var(--app-card-btn-h) var(--app-card-btn-h);
  align-content: start;
  align-items: stretch;
  gap: 8px;
  margin-top: auto;
  flex: 0 0 auto;
}
.page[data-page="borrower-applications"] .borrower-loan-card__note,
.page[data-page="borrower-applications"] .borrower-loan-card__foot > .borrower-loan__meta,
.page[data-page="borrower-loans"] .borrower-loan-card__note,
.page[data-page="borrower-loans"] .borrower-loan-card__foot > .borrower-loan__meta {
  height: 100%;
  min-height: 0;
  padding: 10px 6px 14px;
  overflow: hidden;
}
.page[data-page="borrower-applications"] .borrower-loan-card__note .borrower-loan__meta,
.page[data-page="borrower-loans"] .borrower-loan-card__note .borrower-loan__meta {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}
@media (min-width: 900px) {
  .page[data-page="borrower-applications"] .borrower-loan-card.issued-loan,
  .page[data-page="borrower-loans"] .borrower-loan-card.issued-loan {
    --app-card-btn-h: 38px;
  }
}
.borrower-loan-card__status-slot {
  position: relative;
  display: grid;
}
.borrower-loan-card__status-slot > .issued-loan__deal {
  visibility: hidden;
  pointer-events: none;
}
.borrower-loan-card__status-slot .borrower-loan__meta {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 2px;
  text-align: center;
}
.borrower-loan-card__refs {
  display: grid;
  gap: 4px;
  margin: 0;
}
.borrower-loan-card__app-no,
.borrower-loan-card__contract {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 0 2px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}
.borrower-loan-card__app-no b,
.borrower-loan-card__contract b {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}
.borrower-loan-card__closed > span {
  font-weight: 400;
}
.borrower-loan-card .borrower-loan__meta {
  margin: 0;
  padding: 0 2px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}
.borrower-loan-card__note .borrower-loan__meta {
  padding: 0;
}
.borrower-loan-card__closed {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0 2px;
}
.borrower-loan-card__closed > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.borrower-loan-card__closed .borrower-loan__meta {
  padding: 0;
}
.borrower-loan-card .text-button {
  margin: 0;
  padding: 0 2px;
}
.borrower-loan__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.borrower-loan__head h2 { margin: 0; font: 560 20px/1.2 var(--serif); }
.borrower-loan__head .status { flex: 0 0 auto; font-size: 11px; padding: 4px 10px; border-radius: 999px; font-weight: 800; }
.borrower-loan__meta { margin-top: 10px; color: var(--soft); font-size: 13px; font-weight: 600; }
.analytics-summary { display: grid; gap: 10px; margin-top: 8px; }
.analytics-summary div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-size: 13px; color: var(--muted); }
.analytics-summary b { color: var(--ink); font-size: 17px; }
.analytics-summary .is-total { padding-top: 8px; border-top: 1px solid var(--line); }
.analytics-summary .is-total b { color: var(--green); font: 560 22px/1.1 var(--serif); }
.panel-note { margin: 0; color: var(--soft); font-size: 14px; font-weight: 600; }
.payment dl { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) {
  .payment dl { grid-template-columns: repeat(3, 1fr); }
}
.status--late { background: var(--red-soft); color: var(--red); }
.empty-state { padding: 55px 28px; text-align: center; border: 1px dashed var(--line); border-radius: 20px; background: transparent; }
.empty-state h2 { margin: 0; font-family: var(--serif); font-weight: 560; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.2; color: var(--ink); }
.empty-state p { margin-top: 8px; color: var(--muted); font-size: 15px; font-weight: 500; line-height: 1.45; max-width: 36em; margin-inline: auto; }
.empty-state__actions { margin-top: 18px; display: flex; justify-content: center; width: 100%; }
.empty-state__actions .borrower-outline-btn {
  display: inline-flex;
  width: min(22.5rem, 100%);
  max-width: 100%;
  box-sizing: border-box;
}
.stack > .empty-state,
.payment-list > .empty-state { width: 100%; }

.payment { padding: 18px; display: grid; grid-template-columns: 180px 1fr; gap: 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.payment__amount { display: flex; flex-direction: column; padding-right: 18px; border-right: 1px solid var(--line); }
.payment__amount small, .payment__amount span { color: var(--muted); }
.payment__amount strong { margin: 4px 0 auto; font: 560 28px var(--serif); }
.payment dl { margin: 0; grid-template-columns: repeat(4, 1fr); }

.timeline { margin-top: 22px; display: grid; grid-template-columns: repeat(4, 1fr); }
.timeline > div { position: relative; display: flex; gap: 10px; }
.timeline > div:not(:last-child)::after { content: ""; position: absolute; left: 38px; right: 8px; top: 15px; height: 1px; background: var(--line); }
.timeline i { position: relative; z-index: 1; width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); font-style: normal; }
.timeline .is-done i, .timeline .is-current i { border-color: var(--green); background: var(--green); color: white; }
.timeline b, .timeline small { display: block; }
.timeline small { margin-top: 4px; color: var(--muted); font-size: 10px; }

.line-chart { height: 235px; margin-top: 14px; }
.line-chart svg { width: 100%; height: 100%; overflow: visible; }
.line-chart .area { fill: url(#area); }
.line-chart .line { fill: none; stroke: var(--green); stroke-width: 4; stroke-linecap: round; }
.bar-list { margin-top: 25px; display: grid; gap: 22px; }
.bar-list span { display: flex; justify-content: space-between; margin-bottom: 7px; color: var(--soft); }
.bar-list i { height: 10px; display: block; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar-list em { height: 100%; display: block; border-radius: inherit; background: var(--green); }
.bar-list em.red { background: var(--red); }

.notice { position: relative; padding: 18px; display: flex; align-items: flex-start; gap: 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.notice.is-unread { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.notice.is-unread:active { background: var(--surface-2); }
.notice > div { min-width: 0; }
.notice.is-unread::after { content: ""; position: absolute; right: 16px; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.notice h2 {
  padding-right: 20px;
  margin: 0;
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(13px, 3.4vw, 15px);
  line-height: 1.45;
  letter-spacing: 0;
  color: var(--green-dark);
}
.notice p {
  margin: 4px 0 0;
  color: var(--soft);
  font-size: clamp(13px, 3.4vw, 15px);
  font-weight: 500;
  line-height: 1.45;
}
@media (prefers-color-scheme: dark) {
  .notice h2 { color: #fff; }
}
.notice small { color: var(--muted); }

.card-grid { grid-template-columns: 1fr 1fr; }
.bank-card {
  min-height: 260px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  border-radius: 25px;
  background: linear-gradient(135deg, #205f40, #0c2d1d);
  color: white;
  box-shadow: var(--shadow);
  box-sizing: border-box;
}
.bank-card__top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  flex: 0 0 auto;
}
.bank-card__body {
  flex: 1 1 auto;
  display: flex;
  align-items: flex-end;
  min-height: 56px;
  margin: 8px 0 14px;
}
.bank-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  color: #d6e2d9;
  font-size: 11px;
  letter-spacing: .08em;
  flex: 0 0 auto;
}
.bank-card__label { color: #c7d9cc; }
.bank-card__holder,
.bank-card__exp,
.bank-card__pan-mask { font: inherit; }
.card-chip { flex: 0 0 auto; width: 45px; height: 34px; border-radius: 8px; background: linear-gradient(135deg, #f5ce6f, var(--gold)); }
.bank-card__pan,
.bank-card > strong { font: 560 clamp(25px, 3vw, 35px) var(--serif); letter-spacing: .04em; line-height: 1.15; }
.bank-card__pan { display: block; margin: 0; }
.bank-card--add {
  width: min(380px, 100%);
  min-height: 0;
  aspect-ratio: 1.586;
  border: 1.5px dashed #aeb9b1;
  background: var(--surface);
  color: var(--soft);
  box-shadow: 0 0 0 1px rgba(20, 36, 25, .04);
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) and (pointer: fine) {
.bank-card--add {
  transition: border-color .15s ease, background .15s ease;
}
}
.bank-card--add .bank-card__label { color: var(--muted); }
.bank-card--add .card-chip { background: transparent; border: 1.5px dashed #d3cbbd; }
.bank-card__cta {
  display: block;
  margin: 0;
  color: var(--ink);
  font: 700 22px/1.2 var(--sans);
  letter-spacing: 0;
}
.bank-card--add .bank-card__foot { color: var(--muted); }
.bank-card--add .bank-card__pan-mask { font-weight: 700; }
.bank-card--add .bank-card__exp { font-weight: 400; }
@media (hover: hover) and (pointer: fine) {
.bank-card--add:hover { border-color: var(--green); background: var(--green-soft); }
}
.card-grid { align-items: stretch; }
.bank-card-slot {
  position: relative;
  width: 100%;
  aspect-ratio: 1.586;
  overflow: hidden;
  contain: layout style;
  flex: 0 0 auto;
}
.bank-card-slot > .bank-card,
.bank-card-slot > .bank-card--add,
.bank-card-slot > article.bank-card,
.bank-card-slot > button.bank-card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  box-sizing: border-box;
}
.bank-card-slot .bank-card:not(.bank-card--add) { border: none; }
.bank-card-slot .bank-card--add {
  border: 1.5px dashed #aeb9b1;
  box-shadow: 0 0 0 1px rgba(20, 36, 25, .04);
}
.card-grid .bank-card,
.card-grid .bank-card--add { width: 100%; min-height: 0; aspect-ratio: 1.586; }
.card-grid .bank-card-slot > .bank-card,
.card-grid .bank-card-slot > .bank-card--add,
.methods-stack .bank-card-slot > .bank-card,
.methods-stack .bank-card-slot > .bank-card--add {
  aspect-ratio: auto;
  min-height: 0;
  max-height: 100%;
}
.card-grid .method-info {
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.methods-stack { display: grid; gap: 16px; width: min(640px, 100%); }
.methods-stack > .borrower-outline-btn { width: 100%; max-width: none; }
.methods-stack .bank-card,
.methods-stack .bank-card--add { width: 100%; max-width: none; min-height: 0; aspect-ratio: 1.586; }
.methods-stack .bank-card-slot .bank-card,
.methods-stack .bank-card-slot .bank-card--add { aspect-ratio: auto; }
#methods-block .method-info {
  width: 100%;
  min-height: auto;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border: 1px solid #d9e0ea;
  border-radius: 16px;
  box-shadow: none;
}
.method-info h2 { margin: 0; }
.method-info p { margin-top: 9px; color: var(--soft); }
.method-info .check-list { margin-top: 16px; }

.identity { margin-bottom: 15px; display: flex; gap: 14px; align-items: center; }
.identity p { margin-top: 5px; color: var(--muted); }
.contact-panel {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  font: inherit;
}
.contact-panel__head { display: grid; gap: 8px; }
.contact-panel__head h2 {
  margin: 0;
  font: inherit;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 800;
}
.contact-panel__form { margin: 0; }

.profile-stack .contact-panel,
.profile-stack .security-panel,
.profile-stack .session-panel { gap: 12px; }
.profile-stack .contact-panel__form.settings-form { gap: 12px; }
.profile-stack .contact-panel__form label > span {
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.profile-stack .contact-panel__form input {
  min-height: 42px;
  padding: 9px 12px;
  font-size: 15px;
}
.profile-stack .contact-panel__form.settings-form input:read-only {
  background: var(--surface-2);
  color: var(--ink);
}
.profile-stack .contact-panel__form.settings-form input:read-only:not(:placeholder-shown) {
  background: var(--field-filled);
  color: var(--ink);
}
.profile-stack .contact-panel__form.settings-form > .borrower-outline-btn {
  display: flex;
  width: 100%;
  max-width: none;
  margin-top: 4px;
  box-sizing: border-box;
}
.profile-stack .security-panel__head { gap: 4px; }
.profile-stack .security-panel__lead { font-size: 13px; line-height: 1.4; }
.profile-stack .security-panel__list { gap: 10px; }
.profile-stack .security-row {
  padding: 14px 16px;
  border-radius: 16px;
  box-shadow: none;
  gap: 10px;
}
.profile-stack .security-row__icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 0;
  background: transparent;
}
.profile-stack .security-row__icon svg { width: 18px; height: 18px; }
.profile-stack .security-row__badge { padding: 4px 9px; font-size: 11px; }

.profile-stack .contact-panel__head h2,
.profile-stack .security-panel__head h2,
.profile-stack .session-panel__title-row h2 {
  font-weight: 600;
}
.profile-stack .security-panel__lead,
.profile-stack .session-panel__lead {
  font-weight: 400;
}
.profile-stack .contact-panel__form label > span {
  font-weight: 600;
}
.profile-stack .contact-panel__form input {
  font-weight: 400;
}
.profile-stack .contact-panel__form.settings-form > .borrower-outline-btn {
  font-weight: 700;
}
.profile-stack .security-row__label {
  font-weight: 600;
}
.profile-stack .security-row__hint {
  font-weight: 400;
}
.profile-stack .security-row__badge {
  font-weight: 600;
}
.profile-stack .security-row__badge--on {
  font-size: 11px;
  line-height: 1.2;
}
.profile-stack .session-refresh-btn {
  min-height: 28px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  gap: 7px;
}
.profile-stack .session-refresh-btn__icon-wrap {
  width: 15px;
  height: 15px;
}
.profile-stack .session-refresh-btn__glyph {
  width: 15px;
  height: 15px;
}
.profile-stack .session-list .session-tile__title {
  font-weight: 600;
}
.profile-stack .session-list .session-tile__meta {
  font-weight: 400;
}
.profile-stack .session-list .session-tile__badge {
  font-weight: 600;
}
.profile-stack .session-list .session-tile__facts li {
  font-weight: 400;
}
.profile-stack .session-list .session-tile__facts b {
  font-weight: 500;
}
.profile-stack .session-list .session-tile__tech summary {
  font-weight: 600;
}

.security-panel {
  display: grid;
  gap: 16px;
  align-content: start;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  font: inherit;
}
.security-panel__head { display: grid; gap: 8px; }
.security-panel__head h2 {
  margin: 0;
  font: inherit;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 800;
}
.security-panel__lead { margin: 0; max-width: 44em; color: var(--soft); font-size: 14px; line-height: 1.45; }
.security-panel__list { display: grid; gap: 16px; grid-template-columns: 1fr; }
.security-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  font: inherit;
  box-sizing: border-box;
  box-shadow: var(--shadow);
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) and (pointer: fine) {
.security-row {
  transition: border-color .15s ease, background .15s ease;
}
.security-row:hover { border-color: rgba(27, 107, 67, .32); background: var(--green-soft); }
.security-row:hover .security-row__chevron { stroke: var(--green); }
}
.security-row__icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: transparent;
  color: var(--green);
}
.security-row__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.security-row__body { flex: 1; min-width: 0; display: grid; gap: 3px; }
.security-row__label { font: 800 14px/1.25 var(--sans); color: var(--ink); }
.security-row__hint { font-size: 12px; font-weight: 600; line-height: 1.35; color: var(--muted); }
.security-row__chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.security-row__badge {
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}
.security-row__badge--off { background: #f5ead8; color: #8a5c28; border: none; }
.security-row__badge--on {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 4px 11px;
  border: none;
  border-radius: 999px;
  background: #e8f3eb;
  color: #1d5335;
}

.offer-sign { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; }
.offer-sign[hidden] { display: none !important; }
.offer-sign__backdrop { position: absolute; inset: 0; background: rgba(8, 21, 13, .62); backdrop-filter: blur(4px); }
.offer-sign__card { position: relative; z-index: 1; width: min(440px, 100%); padding: 28px 22px 22px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: 0 30px 90px rgba(0, 0, 0, .28); }
.offer-sign__card h2 { margin: 0 0 18px; text-align: center; font-size: 22px; line-height: 1.25; }
.offer-sign__actions { display: grid; gap: 10px; }
.offer-sign__wide { display: flex; width: 100%; max-width: none; margin-inline: 0; box-sizing: border-box; }
.offer-sign__check { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0; color: var(--ink); font-size: 14px; line-height: 1.45; }
.offer-sign__check input { width: 18px; height: 18px; min-height: 18px; margin-top: 2px; flex: none; accent-color: var(--green); }
.offer-sign__who { margin: 0 0 16px; color: var(--soft); }
.offer-sign__who b { color: var(--ink); font-weight: 700; }
.offer-sign__code { display: flex; justify-content: center; gap: 8px; margin: 4px 0 14px; }
.offer-sign__digit { width: 42px; height: 48px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); text-align: center; font-size: 20px; font-weight: 700; }
.offer-sign__digit:focus { border-color: var(--green); outline: none; box-shadow: none; }
.offer-sign__resend { display: block; width: 100%; margin: 0 0 16px; padding: 0; border: 0; background: none; color: var(--green); font: 700 14px/1.3 var(--sans); text-align: left; cursor: pointer; }
.offer-sign__wide:disabled { opacity: .45; cursor: default; }
.issued-loan__pill.is-unsigned {
  background: #fbf0da;
  color: #9a6b16;
}
.app.is-signing {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}
.app.is-signing .app-layout {
  grid-template-columns: minmax(0, 1fr);
  height: calc(100dvh - 76px);
  min-height: 0;
  max-height: calc(100dvh - 76px);
}
.app.is-signing .sidebar,
.app.is-signing .app-header > .sidebar,
.app.is-signing .menu-button { display: none !important; }
.app.is-signing .workspace {
  padding: 0 !important;
  overflow: hidden;
  height: 100%;
  min-height: 0;
  max-height: 100%;
}
.page.page--sign {
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: 0;
  height: 100%;
}
.page.page--sign.is-active {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.app-sign {
  --sign: var(--green);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  background: var(--bg);
  overflow: hidden;
  overscroll-behavior: none;
}
.app-sign[hidden] { display: none !important; }
.app-sign__page {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg);
}
.page[data-page="lender-invest"] .app-sign__page {
  max-width: 880px;
}
.app-sign__head {
  flex: none;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
  min-height: 76px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.app-sign__nav,
.app-sign__nav-space {
  width: 44px;
  height: 44px;
}
.app-sign__nav {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
}
.app-sign__nav::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-left: 3px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.app-sign__title {
  margin: 0;
  text-align: center;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.app-sign__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: 18px 20px 22px;
}
.app-sign__dock {
  flex: none;
  padding: 12px 20px calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.app-sign__dock .app-sign__actions {
  margin-top: 0;
}
.app-sign__table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
}
.app-sign__lead {
  margin: 0 0 14px;
  color: var(--soft);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
}
.app-sign__party {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}
.app-sign__sheet-wrap {
  overflow-x: auto;
  margin: 0 -4px 8px;
  padding: 0 4px;
}
.app-sign__sheet {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
}
.app-sign__sheet th,
.app-sign__sheet td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  vertical-align: top;
  text-align: left;
}
.app-sign__sheet th {
  background: var(--surface-2);
  font-weight: 700;
}
.app-sign__sheet td:first-child,
.app-sign__sheet th:first-child {
  width: 56px;
  text-align: center;
  white-space: nowrap;
}
.app-sign__sheet td:nth-child(2),
.app-sign__sheet th:nth-child(2) {
  width: 32%;
  font-weight: 700;
}
.app-sign__foot {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.app-sign__sign-block {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
}
.app-sign__sign-block h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}
.app-sign__sign-block p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}
html.modal-open {
  overflow: hidden;
  overscroll-behavior: none;
}
html.modal-open body {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}
.app-sign__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 8px;
  align-items: baseline;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}
.app-sign__row:first-child { border-top: 0; }
.app-sign__row span {
  grid-column: 1 / -1;
  color: var(--soft);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}
.app-sign__row b,
.app-sign__row strong {
  grid-column: 1;
  min-width: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.app-sign__row:not(:has(small)) b,
.app-sign__row:not(:has(small)) strong {
  grid-column: 1 / -1;
}
.app-sign__row small {
  grid-column: 2;
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  line-height: 1.4;
}
.app-sign__row:not(:has(b)):not(:has(strong)) small {
  grid-column: 1 / -1;
}
.app-sign__row:has(.app-sign__under) b,
.app-sign__row:has(.app-sign__under) strong {
  grid-column: 1 / -1;
}
.app-sign__row small.app-sign__under {
  grid-column: 1 / -1;
}
.app-sign__value { color: var(--green); }
.app-sign__doc,
.app-sign__note {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
}
.app-sign__doc-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}
.app-sign__doc-head span,
.app-sign__note,
.app-sign__switch span {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.app-sign__pdf {
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  cursor: pointer;
}
.app-sign__switch {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  cursor: pointer;
}
.app-sign__switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.app-sign__knob {
  flex: none;
  width: 42px;
  height: 24px;
  margin-top: 2px;
  border-radius: 999px;
  background: var(--switch-track);
  transition: background .16s ease;
}
.app-sign__knob::after {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  margin: 2px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
  transition: transform .16s ease;
}
.app-sign__switch input:checked + .app-sign__knob {
  background: var(--sign);
}
.app-sign__switch input:checked + .app-sign__knob::after {
  transform: translateX(18px);
}
.app-sign__note {
  color: var(--soft);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}
.app-sign__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.app-sign__actions--single {
  grid-template-columns: 1fr;
}
.app-sign__switch input:disabled + .app-sign__knob {
  opacity: 1;
}
.app-sign__back,
.app-sign__submit {
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 999px;
  font: 800 14px/1.1 var(--sans);
  cursor: pointer;
}
.app-sign__back {
  border: 1px solid var(--green);
  background: var(--surface);
  color: var(--green);
}
.app-sign__submit {
  position: relative;
  border: 0;
  background: var(--green);
  color: #fff;
}
.app-sign__submit:disabled {
  opacity: .45;
  cursor: default;
}
.app-sign__submit.is-loading,
.app-sign__submit.is-loading:disabled {
  overflow: hidden;
  opacity: 1;
  pointer-events: none;
}
.app-sign__submit.is-loading::before {
  display: none;
}
.app-sign__submit.is-loading::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .4), transparent);
  transform: translate3d(-130%, 0, 0);
  animation: loan-pick-shimmer 2.2s linear infinite;
  will-change: transform;
  pointer-events: none;
  z-index: 1;
}
.app-sign__sms {
  margin: 0 0 14px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
}
.app-sign__resend {
  display: block;
  width: 100%;
  margin: 0 0 14px;
  padding: 8px 2px;
  border: 0;
  background: none;
  color: var(--green);
  font: 800 14px/1.3 var(--sans);
  text-align: center;
  cursor: pointer;
}
.app-sign.is-otp .app-sign__otp {
  position: fixed;
  z-index: 40;
}
.app-sign__otp {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  overscroll-behavior: none;
}
.app-sign__otp-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(8, 21, 13, .48);
  cursor: pointer;
}
.app-sign__otp-sheet {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: max(12px, env(safe-area-inset-top)) 20px 18px;
  border-radius: 0 0 22px 22px;
  background: var(--bg);
  box-shadow: 0 18px 50px rgba(12, 45, 29, .16);
}
.app-sign__otp-handle {
  order: 10;
  width: 36px;
  height: 4px;
  margin: 12px auto 2px;
  border-radius: 99px;
  background: var(--line);
}
.app-sign__otp-title {
  margin: 0 0 8px;
  text-align: center;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.25;
}
.app-sign__otp-input {
  display: block;
  width: 100%;
  height: 52px;
  margin: 0 0 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--field-filled);
  color: var(--ink);
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .28em;
  touch-action: manipulation;
  scroll-margin: 0;
}
.app-sign__otp-input:focus {
  border-color: var(--green);
  outline: none;
  box-shadow: 0 0 0 3px var(--green-soft);
}
@media (hover: hover) and (pointer: fine) {
  .app-sign__nav:hover { background: var(--green-soft); }
  .app-sign__back:hover { background: var(--green-soft); }
  .app-sign__submit:hover { background: var(--green-dark); }
  .app-sign__resend:hover { color: var(--green-dark); }
  .app-sign__pdf:hover { background: var(--green); color: #fff; }
}
@media (hover: none) and (pointer: coarse) {
  .app-sign__nav:active { background: var(--green-soft); }
  .app-sign__back:active { background: var(--green-soft); }
  .app-sign__submit:active { background: var(--green-dark); }
}
@media (max-width: 820px) {
  .app-sign__head {
    height: 76px;
    min-height: 76px;
    padding: 0 20px;
  }
  .app-sign__dock {
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .app-sign__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}
@media (max-width: 720px) {
  .app-sign__title { font-size: 14px; }
  .app-sign__scroll { padding: 16px 14px 20px; }
  .app-sign__dock { padding-left: 14px; padding-right: 14px; }
}
@media (max-width: 640px) {
  .app-sign__head {
    padding-left: 14px;
    padding-right: 14px;
  }
}
@media (min-width: 821px) {
  .app-sign {
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
    background: rgba(8, 21, 13, .42);
    height: 100%;
    min-height: 0;
    max-height: 100%;
  }
  .app-sign__page {
    height: min(860px, 100%);
    max-height: 100%;
    min-height: 0;
    flex: 1 1 auto;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 30px 90px rgba(20, 18, 40, .22);
  }
  .app-sign__head {
    padding: 0 22px;
    border-radius: 24px 24px 0 0;
  }
  .app-sign__scroll { padding: 22px 22px 24px; }
  .app-sign__dock { padding: 14px 22px 18px; }
  .app-sign__row:has(b),
  .app-sign__row:has(strong) {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 0.9fr);
    gap: 6px 10px;
  }
  .app-sign__row:has(b) span,
  .app-sign__row:has(strong) span {
    grid-column: 1;
    grid-row: 1;
  }
  .app-sign__row:has(b) b,
  .app-sign__row:has(b) strong,
  .app-sign__row:has(strong) b,
  .app-sign__row:has(strong) strong {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
  }
  .app-sign__row:has(b) small,
  .app-sign__row:has(strong) small {
    grid-column: 3;
    grid-row: 1;
    text-align: left;
  }
  .app-sign__row:has(b):not(:has(small)) b,
  .app-sign__row:has(strong):not(:has(small)) strong {
    grid-column: 2 / -1;
  }
  .app-sign__row:has(.app-sign__under) b,
  .app-sign__row:has(.app-sign__under) strong {
    grid-column: 2 / -1;
  }
  .app-sign__row small.app-sign__under {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: left;
  }
  .app-sign__dock {
    border-radius: 0 0 24px 24px;
  }
  .app-sign__otp {
    align-items: center;
    padding: 28px 20px 0;
  }
  .app-sign__otp-sheet {
    width: min(420px, 100%);
    border-radius: 22px;
    padding: 16px 20px 18px;
  }
  .app-sign__otp-handle {
    margin-top: 10px;
  }
}
@media (prefers-color-scheme: dark) {
  .app-sign__otp-scrim { background: rgba(0, 0, 0, .55); }
  .app-sign__pdf { color: var(--green); }
}
.modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 20px; }
.modal.is-open { display: grid; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(8, 21, 13, .6); backdrop-filter: blur(4px); }
.modal__card { position: relative; z-index: 1; width: min(450px, 100%); padding: 26px; border-radius: 24px; background: var(--surface); box-shadow: 0 30px 90px rgba(0,0,0,.25); }
.modal__close { position: absolute; right: 14px; top: 14px; width: 35px; height: 35px; border: 0; border-radius: 50%; background: var(--surface-2); font-size: 22px; }
.modal__card .large-icon { margin-bottom: 16px; }
.modal__card p { margin: 10px 0 18px; color: var(--soft); }
.modal__card label { display: block; margin-bottom: 14px; }
.anketa { width: min(640px, 100%); max-width: 100%; min-width: 0; display: grid; gap: 12px; }
.anketa-title { margin: 0 0 12px; color: var(--soft); font-size: 15px; font-weight: 400; line-height: 1.25; }
.borrower-status #msi-block > .anketa-title:first-child,
.borrower-status #anketa-block > .anketa-title:first-child,
.borrower-status #anketa-block > .anketa-preview > .anketa-title:first-child,
.borrower-status #methods-block > .anketa-title:first-child {
  margin-top: 24px;
}
.anketa-section { margin: 8px 0 0; font-size: 22px; line-height: 1.15; }
.anketa > .anketa-section:first-child,
.anketa-preview .anketa-title + .anketa-section { margin-top: 0; }
.anketa-preview { display: grid; gap: 0; width: min(640px, 100%); max-width: 100%; }
.page-head:has(+ .anketa-preview) { margin-bottom: 0; }
.anketa-preview .anketa { width: 100%; }
.anketa.is-preview .anketa-field,
.anketa.is-preview .anketa-choice,
.anketa.is-preview .anketa-checks {
  pointer-events: none;
  border-color: #c5ddcc;
  background: var(--green-soft);
}
.anketa.is-preview > p { margin: 8px 0 0; color: var(--soft); }
@media (prefers-color-scheme: dark) {
  .anketa.is-preview .anketa-field,
  .anketa.is-preview .anketa-choice,
  .anketa.is-preview .anketa-checks {
    border-color: var(--line);
    background: var(--surface);
    box-shadow: none;
  }
  .anketa.is-preview .anketa-field span,
  .anketa.is-preview .anketa-choice legend,
  .anketa.is-preview .anketa-q,
  .anketa.is-preview .anketa-checks label span {
    color: var(--muted);
  }
  .anketa.is-preview .anketa-field input,
  .anketa.is-preview .anketa-field select,
  .anketa.is-preview .anketa-select select {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    color: var(--ink);
    -webkit-text-fill-color: var(--ink);
  }
  .anketa.is-preview .anketa-select,
  .anketa.is-preview .anketa-select__label {
    background: transparent;
    color: var(--ink);
  }
  .anketa.is-preview .anketa-choice label,
  .anketa.is-preview .anketa-checks label {
    color: var(--ink);
  }
  .anketa.is-preview .anketa-choice input[type="radio"],
  .anketa.is-preview .anketa-choice input[type="checkbox"],
  .anketa.is-preview .anketa-checks input[type="checkbox"] {
    accent-color: var(--green);
  }
  .anketa.is-preview .anketa-section {
    color: var(--ink);
  }
}
.anketa-preview .anketa-section { margin-top: 0; }
.step-box { width: min(640px, 100%); padding: 16px 18px; display: grid; gap: 12px; justify-items: start; border: 1px solid #d9e0ea; border-radius: 16px; background: var(--surface); }
.step-box p { margin: 0; color: var(--soft); font-size: 15px; line-height: 1.45; }
.step-box .borrower-outline-btn {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}
.step-box--done,
.step-box--wait,
.step-box--rejected {
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
}
.step-box--done .check,
.step-box--wait .check,
.step-box--rejected .check {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  margin: 0;
  display: grid;
  place-items: center;
  align-self: center;
  font-style: normal;
}
.step-box--done p,
.step-box--wait p,
.step-box--rejected p {
  flex: 1;
  min-width: 0;
  align-self: center;
}
.step-box--done .check { color: #2f9e57; }
.step-box--wait .check { color: var(--gold); }
.step-box--rejected .check { color: #e15b52; }
.step-box--rejected p { color: #e15b52; }
.step-box--done .check svg,
.step-box--wait .check svg,
.step-box--rejected .check svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.anketa-actions { display: flex; gap: 10px; margin-top: 4px; }
.anketa-actions .borrower-outline-btn {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  display: flex;
  max-width: none;
  margin-inline: 0;
  box-sizing: border-box;
}
.anketa h1 { margin-bottom: 8px; text-align: center; font-size: clamp(32px, 6vw, 42px); }
.anketa-back { width: 100%; background: var(--surface); }
.anketa-alert, .anketa-banner { display: flex; align-items: center; gap: 8px; color: var(--red); font-weight: 800; }
.anketa-alert { justify-content: center; margin: 4px 0; }
.anketa-alert span { width: 22px; height: 22px; display: grid; place-items: center; border: 1.5px solid var(--red); border-radius: 50%; font-size: 12px; }
.anketa-banner { margin-bottom: 16px; align-items: flex-start; flex-direction: column; padding: 18px; border: 1px solid #f0c7c2; border-radius: 18px; background: var(--red-soft); color: var(--ink); }
.anketa-banner b { color: var(--red); }
.anketa-banner p { color: var(--soft); font-weight: 600; }
.anketa-field, .anketa-choice { margin: 0; padding: 10px 16px 12px; border: 1px solid #d9e0ea; border-radius: 16px; background: var(--surface); transition: border-color .15s ease; }
.anketa:not(.is-preview) .anketa-field:focus-within:not(.is-hidden):not(.is-invalid),
.anketa:not(.is-preview) .anketa-choice:focus-within:not(.is-invalid),
.anketa:not(.is-preview) .anketa-checks:focus-within:not(.is-invalid) {
  border-color: var(--green);
}
.anketa-field input:focus,
.anketa-field select:focus,
.anketa-select select:focus {
  box-shadow: none;
  outline: none;
}
.anketa-field { display: flex; flex-direction: column; gap: 2px; min-width: 0; max-width: 100%; overflow: visible; }
.anketa-field span { overflow-wrap: break-word; }
.anketa-field span, .anketa-choice legend { color: #8b93a7; font-size: 13px; }
.anketa-field input, .anketa-field select { width: 100%; max-width: 100%; min-width: 0; min-height: 28px; padding: 0; border: 0; background: transparent; outline: none; font-size: 16px; font-weight: 700; line-height: 24px; }
.anketa-field input { padding: 2px 2px 2px 1px; border-radius: 0; }
.anketa-select { position: relative; display: block; width: 100%; min-width: 0; color: var(--ink); background: inherit; }
.anketa-select select {
  position: relative;
  z-index: 1;
  padding-right: 22px;
  appearance: none;
  -webkit-appearance: none;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background: transparent;
}
.anketa-field select:focus,
.anketa-select select:focus {
  border-color: transparent;
  box-shadow: none;
  outline: none;
}
.anketa-select select option { color: var(--ink); -webkit-text-fill-color: var(--ink); }
.anketa-select::after {
  content: "";
  position: absolute;
  z-index: 3;
  right: 2px;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translateY(-50%);
  pointer-events: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' stroke='black' stroke-width='2.4' stroke-linejoin='round' stroke-linecap='round' d='M2.6 6.2h10.8L8 12.4z'/%3E%3C/svg%3E") center / 10px 10px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' stroke='black' stroke-width='2.4' stroke-linejoin='round' stroke-linecap='round' d='M2.6 6.2h10.8L8 12.4z'/%3E%3C/svg%3E") center / 10px 10px no-repeat;
}
.anketa-select__label {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 22px;
  top: 0;
  height: 28px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: inherit;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  font-style: normal;
  line-height: 28px;
  pointer-events: none;
}
.anketa-field input[type="number"] { appearance: textfield; }
.anketa-field input[type="number"]::-webkit-inner-spin-button,
.anketa-field input[type="number"]::-webkit-outer-spin-button { appearance: none; margin: 0; }
.anketa-field small { color: var(--muted); font-size: 12px; font-weight: 600; }
.anketa-choice { display: flex; flex-direction: column; gap: 8px; min-width: 0; max-width: 100%; overflow: hidden; }
.anketa-q { margin: 0; color: #8b93a7; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.anketa-choice label { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.anketa-choice input { width: 18px; min-height: 18px; padding: 0; border-radius: 50%; flex: none; }
.anketa-field.is-invalid, .anketa-choice.is-invalid, .anketa-checks.is-invalid { border-color: var(--red); }
.anketa-checks { margin: 0; padding: 10px 16px 12px; border: 1px solid #d9e0ea; border-radius: 16px; background: var(--surface); display: flex; flex-direction: column; gap: 8px; min-width: 0; max-width: 100%; overflow: hidden; transition: border-color .15s ease; }
.anketa-checks label { display: flex; align-items: flex-start; gap: 8px; min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.anketa-checks input { width: 18px; min-height: 18px; margin-top: 2px; padding: 0; flex: none; }
.anketa-field.is-hidden,
.anketa-choice.is-hidden { display: none; }
.anketa-field.is-locked { min-height: 52px; justify-content: center; background: #eef1ef; }
.anketa-field span label { color: inherit; font: inherit; }
.anketa-field.is-locked input { cursor: default; }
.anketa-field .req, .anketa-choice .req, .anketa-checks .req { color: #c4493c; font-weight: 700; }
.anketa-help { width: 18px; height: 18px; margin-left: 4px; padding: 0; border: 1px solid #8b93a7; border-radius: 50%; background: transparent; color: #8b93a7; font-size: 12px; line-height: 16px; vertical-align: middle; }
.anketa-note { color: var(--soft); font-size: 12px; font-weight: 600; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.toast { position: fixed; z-index: 120; left: 50%; bottom: 24px; width: min(640px, calc(100% - 48px)); padding: 13px 18px; border-radius: 13px; background: var(--green-dark); color: white; box-shadow: var(--shadow); opacity: 0; transform: translate(-50%, 10px); pointer-events: none; transition: .25s ease; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@supports (font: -apple-system-body) {
  html, body { min-height: -webkit-fill-available; }
  .app { min-height: var(--vvh, 100dvh); }
  .app-layout { min-height: calc(var(--vvh, 100dvh) - 76px); }
  .sidebar {
    height: calc(var(--vvh, 100dvh) - 76px);
    max-height: calc(var(--vvh, 100dvh) - 76px);
  }
}

@media (min-width: 821px) {
  @supports (font: -apple-system-body) {
    .toast { bottom: max(24px, calc(24px + 100vh - var(--vvh, 100vh))); }
  }
  .profile-button {
    height: 48px;
    padding: 4px 12px 4px 5px;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
  }
  .profile-button__text { min-width: 0; }
  .profile-button .avatar {
    width: 36px;
    height: 36px;
    background: var(--green-dark);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
  }
  html[data-cabinet-entry="borrower"] .profile-button .avatar { background: var(--green); }
  .profile-button .dot {
    top: 8px;
    right: auto;
    left: 30px;
    border-color: var(--surface);
  }
  .profile-button small {
    color: var(--green);
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: .12em;
    text-transform: uppercase;
  }
  .profile-button b {
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
  }
  .profile-button > svg { color: var(--muted); }
}

@media (prefers-color-scheme: dark) and (min-width: 821px) {
  .brand__name,
  .brand small,
  .brand .logo__dot { color: #fff; }
  .notification-button {
    border-color: #fff;
    background: #000;
    color: #fff;
  }
  .profile-button {
    border-color: #fff;
    background: #000;
    color: #fff;
  }
  .profile-button .avatar,
  html[data-cabinet-entry="borrower"] .profile-button .avatar {
    background: #fff;
    color: #000;
  }
  .profile-button .dot { border-color: #000; }
  .profile-button small { color: #fff; }
  .profile-button b { color: #fff; }
  .profile-button > svg { color: #fff; }
  .sidebar {
    background: #000;
    border-right-color: #2e2e2e;
  }
  .sidebar__nav .nav-item,
  .sidebar__nav .nav-item:not(.is-active) {
    background: #000;
    color: #fff;
  }
  @media (hover: hover) and (pointer: fine) {
    .sidebar__nav .nav-item:hover { background: #1a1a1a; color: #fff; }
  }
  .sidebar__nav .nav-item.is-active,
  .sidebar__nav .nav-item.is-active:hover {
    background: #fff;
    border-color: #fff;
    color: #000;
  }
  .sidebar .logout {
    border-color: #fff;
    background: #000;
    color: #fff;
  }
}

@media (max-width: 1050px) {
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .service-analytics__metrics { grid-template-columns: 1fr 1fr; }
  .lender-how__steps {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .lender-how__arrow {
    display: grid;
    width: 100%;
    transform: rotate(90deg);
    padding: 2px 0;
  }
  .lender-offers-feed__filters { display: grid; grid-template-columns: 1fr; gap: 14px; }
  .lender-offers-feed__filter-actions { width: 100%; min-width: 0; margin-left: 0; }
  .lender-offers-feed__toolbar { grid-template-columns: 1fr; }
  .lender-offers-feed__sort,
  .lender-offers-feed__sort.issued-loan-filters {
    justify-self: stretch;
    width: 100%;
    grid-template-columns: 1fr;
  }
  .offer-grid { grid-template-columns: 1fr 1fr; }
  .investment { grid-template-columns: 1fr 1.4fr 1fr auto; }
  .investment > div:nth-child(4) { display: none; }
  .payment dl { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .toast {
    left: 0;
    right: 0;
    width: auto;
    top: 0;
    bottom: auto;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    min-height: calc(76px + env(safe-area-inset-top, 0px));
    padding: env(safe-area-inset-top, 0px) 20px 0;
    border-radius: 0;
    font: 650 16px/1.3 var(--sans);
    letter-spacing: -.01em;
    transform: translateY(-10px);
  }
  .toast.is-on { transform: none; }
  .app-header { position: sticky; height: auto; min-height: 76px; padding: 0 20px; background: var(--surface); flex-wrap: wrap; }
  .brand { height: 76px; }
  .app-header__right { gap: 8px; }
  .notification-button { display: none; }
  .profile-button__text, .profile-button svg { display: none; }
  .profile-button {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    justify-content: center;
  }
  .profile-button .avatar { width: 32px; height: 32px; background: var(--green-dark); font-size: 16px; }
  html[data-cabinet-entry="borrower"] .profile-button .avatar { background: var(--green); }
  .menu-button { display: inline-flex; }
  .app-layout { display: block; }
  .app-header > .sidebar {
    flex: 1 0 100%;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0;
  }
  .sidebar {
    display: grid;
    grid-template-rows: 0fr;
    position: relative;
    top: auto;
    z-index: auto;
    width: 100%;
    height: auto;
    max-height: none;
    padding: 0;
    background: transparent;
    border: 0;
    overflow: hidden;
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: grid-template-rows .42s cubic-bezier(.22, 1, .36, 1);
  }
  .sidebar.is-open { grid-template-rows: 1fr; }
  .app-header.is-menu-open:not(.is-overlay) {
    border-bottom: 1px solid var(--line);
  }
  .app-header.is-menu-open:not(.is-overlay) .sidebar.is-open {
    border-bottom: none;
    background: var(--surface);
  }
  .app-header.is-overlay { border-bottom-color: transparent; }
  .app-header.is-overlay .sidebar {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 40;
    flex: none;
    overflow: hidden;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
    background: var(--surface);
    box-shadow: none;
  }
  .app-header.is-overlay .sidebar .sidebar__panel { min-height: min-content; }
  .app-header.is-overlay .sidebar.is-open {
    grid-template-rows: 1fr;
    border-bottom: none;
    overflow: visible;
  }
  .app-header.is-menu-open.is-overlay .sidebar.is-open::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    z-index: 2;
    width: 100vw;
    transform: translateX(-50%);
    border-bottom: 1px solid var(--line);
    pointer-events: none;
  }
  .app-header.is-overlay .sidebar:not(.is-open) { pointer-events: none; }
  .sidebar__panel { min-height: 0; overflow: hidden; }
  .sidebar__menu {
    min-height: 0;
    overflow: hidden;
    padding: 16px 0 20px;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .28s ease, transform .42s cubic-bezier(.22, 1, .36, 1);
  }
  .sidebar.is-open .sidebar__menu {
    opacity: 1;
    transform: none;
  }
  .sidebar.is-open .nav-item,
  .sidebar.is-open .logout {
    animation: cabinet-menu-rise .46s cubic-bezier(.22, 1, .36, 1) both;
  }
  .sidebar.is-open .nav-item:nth-child(2) { animation-delay: .03s; }
  .sidebar.is-open .nav-item:nth-child(3) { animation-delay: .06s; }
  .sidebar.is-open .nav-item:nth-child(4) { animation-delay: .09s; }
  .sidebar.is-open .nav-item:nth-child(5) { animation-delay: .12s; }
  .sidebar.is-open .nav-item:nth-child(6) { animation-delay: .15s; }
  .sidebar.is-open .nav-item:nth-child(7) { animation-delay: .18s; }
  .sidebar.is-open .nav-item:nth-child(8) { animation-delay: .21s; }
  .sidebar.is-open .nav-item:nth-child(9) { animation-delay: .24s; }
  .sidebar.is-open .nav-item:nth-child(10) { animation-delay: .27s; }
  .sidebar.is-open .nav-item:nth-child(11) { animation-delay: .30s; }
  .sidebar.is-open .nav-item:nth-child(12) { animation-delay: .33s; }
  .sidebar.is-open .logout { animation-delay: .1s; }
  .app-header:not(.is-overlay) > .sidebar .sidebar__menu { padding-left: 0; padding-right: 0; }
  .borrower-menu-widget {
    display: block;
    margin: 0 0 12px;
  }
  .borrower-menu-widget__shell {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 10px 24px rgba(20, 36, 25, .06);
    overflow: hidden;
  }
  .borrower-menu-widget__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .borrower-menu-widget__role {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    color: var(--green);
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
  }
  .borrower-menu-widget__toggle {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(27, 107, 67, .18);
    border-radius: 10px;
    background: rgba(255, 255, 255, .9);
    color: var(--green);
  }
  .borrower-menu-widget__toggle svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .25s ease;
  }
  .borrower-menu-widget__toggle.is-open svg { transform: rotate(180deg); }
  .borrower-menu-widget__quick,
  .borrower-menu-widget__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .borrower-menu-widget__quick { margin-top: 12px; }
  .borrower-menu-widget__cell {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, .88);
  }
  .borrower-menu-widget__cell > span {
    font-size: clamp(10px, 2.6vw, 11px);
    font-weight: 600;
    line-height: 1.2;
    color: var(--muted);
  }
  .borrower-menu-widget__cell > b {
    font: 600 clamp(17px, 4.8vw, 19px)/1.15 var(--serif);
    color: var(--ink);
    overflow-wrap: anywhere;
  }
  .borrower-menu-widget__body {
    margin-top: 10px;
    padding-top: 0;
  }
  .borrower-menu-widget__cell--detail > b {
    font-size: 16px;
  }
  .borrower-menu-widget__more {
    width: 100%;
    min-height: 44px;
    margin-top: 10px;
    padding: 0 12px;
    border: 1px solid var(--green);
    border-radius: 12px;
    background: var(--surface);
    color: var(--green-dark);
    font: 700 12px/1.35 var(--sans);
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  .borrower-menu-widget[hidden] { display: none !important; }
  .sidebar__nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .nav-item:not(.is-active) {
    color: var(--ink);
  }
  .nav-item,
  .nav-item.is-active {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    min-height: 0;
    padding: 10px 6px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--bg);
    text-align: center;
    font-size: clamp(10px, 2.85vw, 11px);
    font-weight: 650;
    line-height: 1.2;
    box-sizing: border-box;
  }
  .nav-item.is-active {
    border-color: var(--green);
    background: var(--green);
    color: #fff;
    box-shadow: 0 8px 22px rgba(20, 36, 25, .08);
  }
  .nav-item .nav-icon {
    width: clamp(28px, 7.5vw, 30px);
    height: clamp(28px, 7.5vw, 30px);
    flex: 0 0 auto;
  }
  .nav-item .nav-icon svg {
    width: clamp(24px, 6.5vw, 26px);
    height: clamp(24px, 6.5vw, 26px);
  }
  .nav-item .nav-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 100%;
    hyphens: none;
  }
  .nav-item .nav-label__line {
    display: block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .nav-item .nav-label__line:not(:first-child)::before { content: none; }
  .nav-item .nav-label__hyphen { display: inline; }
  .nav-item .nav-label__hyphen::before { content: " "; }
  .nav-item .nav-label__line--pad {
    display: block;
    visibility: hidden;
    user-select: none;
    pointer-events: none;
  }
  .nav-item .nav-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    font-size: 9px;
    margin-left: 0;
  }
  .logout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 12px 0 0;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--green);
    border-radius: 12px;
    background: var(--surface);
    color: var(--green-dark);
    font: 800 11px/1.2 var(--sans);
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    box-sizing: border-box;
  }
  .workspace { padding: 28px 20px 60px; }
  .bank-card--add { width: 100%; }
  .dashboard-grid, .two-columns, .card-grid { grid-template-columns: 1fr; }
  .borrower-home-pair { grid-template-columns: 1fr; }
  .lender-how__steps {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .lender-how__arrow {
    display: grid;
    width: 100%;
    transform: rotate(90deg);
    padding: 2px 0;
  }
  .lender-home-debts,
  .borrower-home-debts {
    height: auto;
    align-self: start;
    grid-template-rows: auto auto;
  }
  .borrower-home-debts {
    grid-template-rows: auto;
  }
  .lender-home-debts .portfolio-structure {
    height: fit-content;
    align-self: start;
  }
  .issued-loans {
    padding: 16px 16px 14px;
    gap: 12px;
  }
  .issued-loans__icon {
    width: 52px;
    height: 52px;
  }
  .issued-loans__head b,
  .borrower-home-debts .debt-card__title,
  .issued-loans__count,
  .borrower-home-debts .debt-card__amount { font-size: 20px; }
  .borrower-home-debts .debt-card__icon {
    width: 52px;
    height: 52px;
  }
  .issued-loans__chip {
    padding: 5px 10px;
    font-size: 12px;
  }
  .portfolio-structure {
    padding: 18px;
  }
  .portfolio-structure__head h2 {
    white-space: normal;
  }
  .portfolio-structure__chips { gap: 8px; }
  .portfolio-structure__body {
    flex: none;
    min-height: 0;
    gap: 14px;
    padding: 10px 0 0;
  }
  .portfolio-structure__meter {
    flex: none;
    min-height: 0;
    padding: 8px 0 2px;
  }
  .portfolio-structure .legend {
    width: 100%;
    flex: none;
    margin-top: 0;
    padding-bottom: 0;
  }
  .service-analytics__metrics { grid-template-columns: 1fr; }
  .issued-docs-grid { grid-template-columns: 1fr; }
  .service-analytics__head,
  .service-analytics__panel-head { flex-wrap: wrap; }
  .service-analytics__panel-head p { white-space: normal; }
  .borrower-actions .borrower-outline-btn {
    max-width: none;
    margin-inline: 0;
  }
  .borrower-status-steps,
  .borrower-status {
    width: 100%;
    max-width: none;
  }
  button.borrower-status-step__box:active {
    background: var(--green-soft);
    box-shadow: 0 10px 26px rgba(20, 36, 25, .08);
  }
  .borrower-rating-card__body { flex-wrap: wrap; }
  .offer-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 18px; }
  .timeline > div:not(:last-child)::after { left: 15px; right: auto; top: 30px; bottom: -18px; width: 1px; height: auto; }
}

@media (prefers-color-scheme: dark) and (max-width: 820px) {
  .app-header {
    background: #000;
    border-bottom-color: #2e2e2e;
  }
  .brand__name,
  .brand small { color: #fff; }
  .menu-button {
    border-color: #fff;
    background: #000;
    color: #fff;
  }
  .profile-button {
    border-color: #fff;
    background: #000;
  }
  .profile-button .avatar,
  html[data-cabinet-entry="borrower"] .profile-button .avatar {
    background: #fff;
    color: #000;
  }
  .app-header.is-menu-open:not(.is-overlay) .sidebar.is-open,
  .app-header.is-overlay .sidebar,
  .app-header.is-overlay .sidebar .sidebar__panel {
    background: #000;
  }
  .borrower-menu-widget__shell {
    background: #000;
    border-color: #3a3a3a;
    box-shadow: none;
  }
  .borrower-menu-widget__role {
    background: #000;
    border: 1px solid #fff;
    color: #fff;
  }
  .borrower-menu-widget__toggle {
    border-color: #3a3a3a;
    background: #000;
    color: #fff;
  }
  .borrower-menu-widget__cell {
    background: #000;
    border-color: #fff;
  }
  .borrower-menu-widget__cell > span { color: #fff; }
  .borrower-menu-widget__cell > b { color: #fff; }
  .borrower-menu-widget__cell > b[data-menu-score] { color: #fff; }
  .borrower-menu-widget__quick .borrower-menu-widget__cell { border-color: #fff; }
  .borrower-menu-widget__cell > b[data-rating-grade="E"],
  .borrower-menu-widget__cell > b[data-rating-grade="D"] { color: #fff; }
  .borrower-menu-widget__cell[data-rating-grade="E"],
  .borrower-menu-widget__cell[data-rating-grade="D"] { border-color: #fff; }
  .borrower-menu-widget__more {
    border-color: #fff;
    background: #000;
    color: #fff;
  }
  .sidebar__nav .nav-item,
  .sidebar__nav .nav-item:not(.is-active) {
    background: #000;
    border-color: #3a3a3a;
    color: #fff;
    box-shadow: none;
  }
  .sidebar__nav .nav-item.is-active {
    background: #fff;
    border-color: #fff;
    color: #000;
    box-shadow: none;
  }
  .sidebar__nav .nav-item .nav-icon svg { stroke: currentColor; }
  .sidebar__nav .nav-item.is-active .nav-icon svg { stroke: #000; }
  .sidebar__nav .nav-item .nav-badge {
    background: #fff;
    color: #000;
    border: 1px solid #000;
  }
  .sidebar__nav .nav-item.is-active .nav-badge {
    background: #000;
    color: #fff;
    border-color: #000;
  }
  .sidebar__menu .logout {
    border-color: #fff;
    background: #000;
    color: #fff;
  }
}

@media (max-width: 640px) {
  .toast { padding-left: 14px; padding-right: 14px; }
  .service-analytics__metrics { grid-template-columns: 1fr; }
  .service-analytics__legend,
  .service-analytics__legend--duo { grid-template-columns: 1fr; }
  .app-header { padding-left: 14px; padding-right: 14px; }
  .app-header > .sidebar { padding-left: 0; padding-right: 0; }
  .app-header.is-overlay .sidebar { padding-left: 14px; padding-right: 14px; }
  .workspace { padding-left: 14px; padding-right: 14px; }
  .lender-how__steps { grid-template-columns: 1fr; }
  .page-head { align-items: flex-start; flex-direction: column; margin-bottom: 22px; }
  .page-head__lottie { top: -15px; }
  .page-head > div { width: 100%; }
  .page-head > .button,
  .page-head > .borrower-outline-btn,
  .page-head > select { width: 100%; max-width: none; }
  .status-card { flex-direction: column; }
  .status-list { display: grid; grid-template-columns: 1fr; }
  .metric-grid, .metric-grid--three { grid-template-columns: 1fr; }
  .metric { min-height: 125px; }
  .donut-row { flex-direction: column; }
  .portfolio-structure .legend { max-width: none; width: 100%; flex: none; }
  .compact-list > div { grid-template-columns: auto 1fr; }
  .compact-list > div > strong { grid-column: 2; }
  .filters-panel { display: none; grid-template-columns: 1fr; }
  .filters-panel.is-open { display: grid; }
  .toolbar { grid-template-columns: 1fr; }
  .investment { grid-template-columns: 1fr auto; }
  .investment > div { display: none; }
  .investment > div:nth-child(1), .investment > div:nth-child(2) { display: block; }
  .investment .status { grid-column: 2; grid-row: 1 / span 2; }
  .payment { grid-template-columns: 1fr; }
  .payment__amount { padding: 0 0 14px; border: 0; border-bottom: 1px solid var(--line); }
  .payment__amount strong { margin: 4px 0; }
  .payment dl { grid-template-columns: 1fr 1fr; }
  .panel { padding: 18px; }
  .session-list { grid-template-columns: 1fr; }
  #methods-block .method-info,
  .card-grid .method-info {
    padding: 18px 20px;
  }
}

@media (prefers-color-scheme: dark) {
  #msi-block .anketa-title,
  #anketa-block .anketa-title,
  #methods-block .anketa-title,
  .borrower-status .anketa-title {
    color: var(--soft);
  }
  #msi-block .step-box,
  #anketa-block .step-box,
  .borrower-status .step-box {
    background: transparent;
    box-shadow: none;
    border: 1px solid var(--line);
  }
  #msi-block .step-box--done .check,
  #msi-block .step-box--wait .check,
  #anketa-block .step-box--done .check,
  #anketa-block .step-box--wait .check,
  .borrower-status .step-box--done .check,
  .borrower-status .step-box--wait .check {
    color: #fff;
  }
  #anketa-block .step-box--rejected .check,
  .borrower-status .step-box--rejected .check {
    color: #e15b52;
  }
  #msi-block .step-box p,
  #anketa-block .step-box p,
  .borrower-status .step-box p,
  #methods-block .method-info h2,
  .methods-stack .method-info h2 {
    color: var(--soft);
  }
  #msi-block .step-box .borrower-outline-btn,
  #anketa-block .step-box .borrower-outline-btn,
  #anketa-block .anketa-actions .borrower-outline-btn,
  .borrower-status .step-box .borrower-outline-btn,
  .borrower-status .anketa-actions .borrower-outline-btn,
  .borrower-status .methods-stack > .borrower-outline-btn {
    border-color: #fff;
    color: #fff;
  }
  @media (hover: hover) and (pointer: fine) {
    #msi-block .step-box .borrower-outline-btn:hover,
    #anketa-block .step-box .borrower-outline-btn:hover,
    #anketa-block .anketa-actions .borrower-outline-btn:hover,
    .borrower-status .step-box .borrower-outline-btn:hover,
    .borrower-status .anketa-actions .borrower-outline-btn:hover,
    .borrower-status .methods-stack > .borrower-outline-btn:hover {
      background: rgba(255, 255, 255, .1);
      border-color: #fff;
      color: #fff;
    }
  }
  #anketa-block .step-box--rejected p,
  .borrower-status .step-box--rejected p {
    color: #e15b52;
  }
  #methods-block .method-info p,
  #methods-block .method-info li,
  .methods-stack .method-info p,
  .methods-stack .method-info li {
    color: var(--muted);
  }
  #methods-block .method-info,
  .methods-stack .method-info,
  .card-grid .method-info {
    background: transparent;
    box-shadow: none;
    border-color: var(--line);
  }
  #methods-block .check-list .check,
  .methods-stack .check-list .check,
  .method-info .check-list .check {
    color: #fff;
  }
  .borrower-summary-card.panel {
    background: #000;
    border-color: var(--line);
    box-shadow: none;
  }
  .borrower-summary-card__cell {
    background: #000;
    border-color: var(--line);
  }
  .borrower-summary-card .borrower-metric-label__line {
    color: #fff;
  }
  .borrower-summary-card__cell > b,
  .borrower-summary-card__cell > b[data-rating-grade="A"],
  .borrower-summary-card__cell > b[data-rating-grade="B"],
  .borrower-summary-card__cell > b[data-rating-grade="C"],
  .borrower-summary-card__cell > b[data-rating-grade="D"],
  .borrower-summary-card__cell > b[data-rating-grade="E"] {
    color: #fff;
  }
  .borrower-summary-card__cell[data-rating-grade="A"],
  .borrower-summary-card__cell[data-rating-grade="B"],
  .borrower-summary-card__cell[data-rating-grade="C"],
  .borrower-summary-card__cell[data-rating-grade="D"],
  .borrower-summary-card__cell[data-rating-grade="E"] {
    border-color: var(--line);
  }
  .borrower-outline-btn.borrower-summary-card__more {
    border-color: #fff;
    color: #fff;
  }
  @media (hover: hover) and (pointer: fine) {
    .borrower-outline-btn.borrower-summary-card__more:hover {
      background: rgba(255, 255, 255, .1);
      border-color: #fff;
      color: #fff;
    }
  }
  .borrower-actions.panel {
    background: #000;
    border-color: var(--line);
    box-shadow: none;
  }
  .lender-how.panel,
  .service-analytics.panel {
    background: #000;
    border-color: var(--line);
    box-shadow: none;
  }
  .borrower-actions h2,
  .borrower-status-card h2,
  .lender-how__intro h2,
  .service-analytics__title h2,
  .lender-how__card strong {
    color: #fff;
  }
  .borrower-actions .borrower-actions__block > p {
    color: var(--soft);
  }
  .lender-how__intro > p,
  .service-analytics__note,
  .lender-how__card p {
    color: var(--soft);
  }
  .lender-how__card {
    background: #000;
    border-color: var(--line);
  }
  .lender-how__icon {
    background: rgba(255, 255, 255, .08);
    color: #fff;
  }
  .lender-how__n {
    color: #fff;
  }
  .lender-how__arrow {
    color: var(--green);
  }
  .borrower-actions__block--split {
    border-top-color: #fff;
  }
  .borrower-actions .borrower-outline-btn {
    border-color: #fff;
    color: #fff;
  }
  .lender-offers-feed .borrower-outline-btn {
    border-color: #fff;
    color: #fff;
  }
  @media (hover: hover) and (pointer: fine) {
    .borrower-actions .borrower-outline-btn:hover {
      background: rgba(255, 255, 255, .1);
      color: #fff;
    }
    .lender-offers-feed .borrower-outline-btn:hover {
      background: rgba(255, 255, 255, .1);
      color: #fff;
    }
  }
  .lender-offers-feed__match.borrower-outline-btn.is-on {
    background: rgba(255, 255, 255, .12);
    color: #fff;
  }
  .lender-offers-feed__filters {
    background: #000;
    border-color: var(--line);
  }
  .lender-offers-feed__filter-label {
    color: #fff;
  }
  .lender-offers-feed__range em {
    color: #fff;
  }
  .lender-offers-feed__bound {
    background: #000;
    box-shadow: none;
    border: 1px solid var(--line);
  }
  .lender-offers-feed__bound b,
  .lender-offers-feed__bound input {
    color: #fff;
    -webkit-text-fill-color: #fff;
  }
  .lender-offers-feed__bound input::placeholder {
    color: var(--muted);
    -webkit-text-fill-color: var(--muted);
    opacity: 1;
  }
  .lender-offers-feed__toolbar p {
    color: #fff;
  }
  .lender-offers-feed__sort .borrower-outline-btn.is-on {
    background: #fff;
    border-color: #fff;
    color: #000;
  }
  .lender-offers-feed__card {
    background: #000;
    border-color: var(--line);
    box-shadow: none;
    color: var(--ink);
  }
  .lender-offers-feed__card-sum strong,
  .lender-offers-feed__card-rating-value b,
  .lender-offers-feed__stat b {
    color: #fff;
  }
  .lender-offers-feed__card-rating-label,
  .lender-offers-feed__stat-label,
  .lender-offers-feed__stat small {
    color: var(--soft);
  }
  .lender-offers-feed__card-rule {
    background: var(--line);
  }
  .lender-offers-feed__card-rating {
    background: transparent;
    border: 0;
  }
  .lender-offers-feed__bar {
    background: var(--analytics-track);
    border: 0;
  }
  .lender-offers-feed__cta.role-card {
    background: transparent;
    border-color: #fff;
    color: #fff;
  }
  .lender-offers-feed__cta.role-card .role-card__copy strong,
  .lender-offers-feed__cta.role-card .role-card__icon {
    color: #fff;
  }
  .lender-offers-feed__cta.role-card .role-card__arrow {
    color: #fff;
  }
  .issued-loan__deal.borrower-outline-btn,
  .page[data-page="investments"] .issued-loan-filters .borrower-outline-btn,
  .page[data-page="borrower-loans"] .issued-loan-filters .borrower-outline-btn,
  .page[data-page="borrower-applications"] .issued-loan-filters .borrower-outline-btn {
    background: transparent;
    border-color: #fff;
    color: #fff;
  }
  @media (hover: hover) and (pointer: fine) {
    .lender-offers-feed__cta.role-card:hover {
      background: rgba(255, 255, 255, .1);
      border-color: #fff;
      color: #fff;
    }
    .issued-loan__deal.borrower-outline-btn:hover,
    .page[data-page="investments"] .issued-loan-filters .borrower-outline-btn:hover:not(.is-on),
    .page[data-page="borrower-loans"] .issued-loan-filters .borrower-outline-btn:hover:not(.is-on),
    .page[data-page="borrower-applications"] .issued-loan-filters .borrower-outline-btn:hover:not(.is-on) {
      background: rgba(255, 255, 255, .1);
      border-color: #fff;
      color: #fff;
    }
  }
  .issued-loan__deal.borrower-outline-btn.is-cancelled,
  .issued-loan__deal.borrower-outline-btn.is-cancelled:disabled,
  .issued-loan__deal.borrower-outline-btn.is-cancelled:disabled:hover {
    background: transparent;
    border-color: #ff5c52;
    color: #ff5c52;
  }
  .page[data-page="investments"] .issued-loan-filters .borrower-outline-btn.is-on,
  .page[data-page="borrower-loans"] .issued-loan-filters .borrower-outline-btn.is-on,
  .page[data-page="borrower-applications"] .issued-loan-filters .borrower-outline-btn.is-on {
    background: #fff;
    border-color: #fff;
    color: #000;
  }
  .issued-loan-tools .search input {
    background: #000;
    border: 1.5px solid var(--line);
    color: var(--ink);
    box-shadow: none;
  }
  .issued-loan-tools .search input:focus,
  .issued-loan-tools .search input.is-filled {
    border-color: #fff;
    background: #000;
    box-shadow: none;
  }
  .issued-loan-tools .search span {
    color: var(--muted);
  }
  .issued-loan {
    background: #000;
    border-color: var(--line);
    box-shadow: none;
    color: var(--ink);
  }
  .issued-loan__cell,
  .issued-loan__track,
  .issued-loan__payout,
  .issued-loan__person {
    background: #000;
    border-color: var(--line);
  }
  .issued-loan__payout-rule::before {
    background: var(--line);
  }
  .issued-loan__sum span,
  .issued-loan__cell span,
  .issued-loan__who span,
  .issued-loan__track span,
  .issued-loan__payout-label,
  .issued-loan__meter-labels {
    color: var(--soft);
  }
  .issued-loan__sum strong,
  .issued-loan__cell b,
  .issued-loan__track b,
  .issued-loan__payout-main,
  .issued-loan__who b {
    color: #fff;
  }
  .investment.issued-loan .issued-loan__who small {
    color: var(--muted);
  }
  .issued-loan__meter-track {
    background: var(--surface-2);
    box-shadow: none;
  }
  .issued-loan__meter-marker {
    box-shadow: 0 0 0 2px #000, 0 1px 2px rgba(0, 0, 0, .35);
  }
  .issued-loan__pill {
    background: var(--green-soft);
    border: 1.5px solid var(--green);
    color: #6ecf96;
  }
  .issued-loan__pill.is-closed {
    background: var(--green-soft);
    border-color: var(--green);
    color: #6ecf96;
  }
  .issued-loan__pill.is-cancelled {
    background: var(--red-soft);
    border-color: var(--red);
    color: #f0a69c;
  }
  .issued-loan__pill.is-active {
    background: rgba(226, 163, 58, .18);
    border-color: #e2a33a;
    color: #e8c896;
  }
  .issued-loan__pill.is-late {
    background: var(--red-soft);
    border-color: var(--red);
    color: #f0a69c;
  }
  .issued-loan__pill.is-open {
    background: var(--green-soft);
    border-color: var(--green);
    color: #6ecf96;
  }
  .issued-loan__pill.is-unsigned {
    background: rgba(226, 163, 58, .18);
    border-color: #e2a33a;
    color: #e8c896;
  }
  .offer-card .issued-loan__pill[data-rating-grade="A"] {
    background: rgba(47, 111, 212, .18);
    border-color: #2f6fd4;
    color: #8cb4f0;
  }
  .offer-card .issued-loan__pill[data-rating-grade="B"] {
    background: var(--green-soft);
    border-color: var(--green);
    color: #6ecf96;
  }
  .offer-card .issued-loan__pill[data-rating-grade="C"] {
    background: rgba(226, 163, 58, .18);
    border-color: #e2a33a;
    color: #e8c896;
  }
  .offer-card .issued-loan__pill[data-rating-grade="D"] {
    background: rgba(224, 122, 47, .18);
    border-color: #e07a2f;
    color: #f0b27a;
  }
  .offer-card .issued-loan__pill[data-rating-grade="E"] {
    background: var(--red-soft);
    border-color: var(--red);
    color: #f0a69c;
  }
  .issued-loan__score-badge {
    border: 1.5px solid var(--line);
  }
  .issued-loan__score[data-rating-grade="A"] .issued-loan__score-badge {
    background: rgba(47, 111, 212, .18);
    border-color: #2f6fd4;
    color: #8cb4f0;
  }
  .issued-loan__score[data-rating-grade="B"] .issued-loan__score-badge {
    background: var(--green-soft);
    border-color: var(--green);
    color: #6ecf96;
  }
  .issued-loan__score[data-rating-grade="C"] .issued-loan__score-badge {
    background: rgba(226, 163, 58, .18);
    border-color: #e2a33a;
    color: #e8c896;
  }
  .issued-loan__score[data-rating-grade="D"] .issued-loan__score-badge {
    background: rgba(224, 122, 47, .18);
    border-color: #e07a2f;
    color: #f0b27a;
  }
  .issued-loan__score[data-rating-grade="E"] .issued-loan__score-badge {
    background: var(--red-soft);
    border-color: var(--red);
    color: #f0a69c;
  }
  .issued-loan__pill svg {
    color: currentColor;
  }
  .issued-loan__warn {
    color: #f2dc8c;
  }
  .issued-loan__warn i {
    background: #e8c84a;
  }
  .issued-loan-screen__title {
    color: #f2f7f4;
  }
  .issued-contacts__card {
    background: #111;
    border: 1px solid var(--line);
  }
  .issued-contacts__card h2,
  .issued-contacts__copy p {
    color: #fff;
  }
  .issued-contacts__close {
    border-color: #fff;
    color: #fff;
  }
  .issued-loan-tabs button {
    background: #000;
    border-color: #fff;
    color: #fff;
  }
  .issued-loan-tabs button.is-on {
    border-color: #fff;
    color: #fff;
    background: transparent;
  }
  .issued-detail h3,
  .issued-detail__row b,
  .issued-dl__value,
  .issued-dl--total .issued-dl__label,
  .issued-payment h3,
  .issued-payment--rest strong,
  .issued-payment--rest span,
  .issued-rest__head span,
  .issued-rest__head strong,
  .issued-early h3,
  .issued-early__status,
  .issued-doc-card b,
  .issued-docs-request h3 {
    color: #fff;
  }
  .issued-dl--ok .issued-dl__value { color: #fff; }
  .issued-dl__dots { border-bottom-color: #5a5a5a; }
  .issued-dl__link,
  .issued-doc-card__dl { color: #fff; }
  .issued-return__card {
    background: #111;
  }
  .issued-paytable td {
    background: #111;
    color: #fff;
  }
  .issued-paytable__menu {
    background: #111;
    border: 1px solid var(--line);
  }
  .issued-paytable__menu button { color: #fff; }
  .issued-detail__box,
  .issued-payment:not(.issued-payment--rest),
  .issued-detail__note {
    background: #000;
    border: 1px solid var(--line);
    border-radius: 16px;
  }
  .issued-payment--rest {
    background: transparent;
    border-color: #fff;
  }
  .issued-rest {
    background: #111;
    border-color: #fff;
  }
  .issued-early {
    border-bottom-color: #2e2e2e;
  }
  .issued-early__quote {
    border-left-color: #5a5a5a;
    color: #b3b3b3;
  }
  .app-sign__sheet th,
  .app-sign__sheet td {
    border-color: #2e2e2e;
  }
  .app-sign__sheet th {
    background: #111;
    color: #fff;
  }
  .app-sign__sign-block,
  .app-sign__sign-block h3,
  .app-sign__sign-block p,
  .app-sign__party {
    color: #fff;
  }
  .issued-doc,
  .issued-doc-card {
    background: #000;
    border-color: #fff;
  }
  .issued-doc button,
  .issued-detail__note button,
  .issued-docs-request .borrower-outline-btn {
    color: #fff;
    border-color: #fff;
  }
  .issued-loan__open {
    background: #000;
    border-color: #fff;
    color: #fff;
  }
  .issued-loan-screen__back {
    color: #b8e6c8;
  }
  .notification-list .notice {
    background: #000;
    box-shadow: none;
  }
  .notification-list .notice.is-unread:active {
    background: #0a0a0a;
  }
  .page[data-page="notifications"] [data-read-all] {
    color: #fff;
  }
  .notification-list .round-icon:not(.round-icon--gold) {
    background: rgba(255, 255, 255, .12);
    color: #fff;
  }
}

@keyframes cabinet-menu-rise {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
.investment.issued-loan { display: grid; grid-template-columns: 1fr; }
.investment.issued-loan > div { display: block; }
.investment.issued-loan > .issued-loan__top,
.investment.issued-loan > .issued-loan__deal { display: flex; }
.investment.issued-loan > .issued-loan__sum,
.investment.issued-loan > .issued-loan__split,
.investment.issued-loan > .issued-loan__cells,
.investment.issued-loan > .issued-loan__track,
.investment.issued-loan > .borrower-loan-card__refs { display: grid; }
.investment.issued-loan > .borrower-loan-card__refs {
  gap: 4px;
  padding: 0 2px;
}
.investment.issued-loan .issued-loan__split > .issued-loan__payout,
.investment.issued-loan .issued-loan__split > .issued-loan__person { display: flex; }

html[data-cabinet-entry="lender"] .profile-button small {
  color: #0c2d1d;
}
html[data-cabinet-entry="lender"] .borrower-menu-widget__role,
html[data-cabinet-entry="lender"] .borrower-summary-card__role {
  color: var(--green);
}
@media (prefers-color-scheme: dark) {
  html[data-cabinet-entry="lender"] .profile-button small,
  html[data-cabinet-entry="lender"] .borrower-menu-widget__role,
  html[data-cabinet-entry="lender"] .borrower-summary-card__role {
    color: #fff;
  }
}
.investment.issued-loan .issued-loan__score { display: block; }
.investment.issued-loan .issued-loan__who small { font-size: 11px; color: #8d8a96; }
