@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");
:root {
  --blue: #147bff;
  --blue2: #00aeef;
  --navy: #000a28;
  --navy2: #07163a;
  --bg: #f3f8ff;
  --soft: #f8fbff;
  --card: #ffffff;
  --line: #d9e7f7;
  --line2: #e8f1fa;
  --text: #000a28;
  --muted: #607095;
  --green: #13a36f;
  --green-bg: #e8fff5;
  --orange: #c67a00;
  --orange-bg: #fff4d6;
  --red: #d83a3a;
  --red-bg: #fff0f0;
  --purple: #635bff;
  --cyan: #00aeef;
  --azure: #147bff;
  --light-gray: #f2f7fa;
  --shadow: 0 16px 42px rgba(0, 10, 40, 0.08);
  --radius: 14px;
  --font:
    Inter, Sora, "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #03102c;
}
.brand-mark {
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  color: var(--blue);
  letter-spacing: -0.16em;
}
.brand-word {
  font-size: 31px;
}
.brand-sub {
  display: block;
  color: var(--blue);
  font-size: 10px;
  letter-spacing: 0.66em;
  margin-top: -7px;
  margin-left: 74px;
  font-weight: 800;
}
.topbar {
  height: 58px;
  background: #f3fbff;
  border-bottom: 3px solid var(--blue);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.rolebar {
  height: 42px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1ba5ff;
  font-size: 12px;
  font-weight: 800;
}
.rolebar span {
  background: #0b2b59;
  padding: 15px 38px;
  border-bottom: 3px solid #00a7ff;
}
.profile-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 15px;
  border: 1px solid #c6d8ef;
  border-radius: 28px;
  background: white;
  box-shadow: 0 7px 22px rgba(8, 35, 80, 0.08);
  font-size: 13px;
  font-weight: 800;
}
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #058dff, #11b8f6);
  color: white;
  font-weight: 900;
}
.layout {
  display: grid;
  grid-template-columns: 186px 1fr;
  min-height: calc(100vh - 100px);
}
.sidebar {
  background: white;
  border-right: 1px solid var(--line);
  padding: 24px 10px;
}
.hamb {
  width: 42px;
  height: 42px;
  border: 1px solid #bed4ee;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 26px;
  margin: 0 0 18px;
  background: #fff;
}
.menu {
  display: grid;
  gap: 12px;
}
.menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 800;
  color: #15305c;
}
.menu a.active {
  background: #e8f3ff;
  border: 1px solid #8fc2ff;
  box-shadow: inset 4px 0 0 #5a6dff;
  color: #0066ef;
}
.badge {
  margin-left: auto;
  background: #e63838;
  color: white;
  border-radius: 50%;
  font-size: 11px;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  box-shadow: 0 3px 7px rgba(214, 36, 36, 0.35);
}
.main {
  padding: 24px 36px 36px;
}
.page-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}
.kicker {
  font-size: 11px;
  color: #006eff;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 900;
}
.page-head h1 {
  margin: 6px 0 4px;
  font-size: 28px;
  letter-spacing: -0.04em;
}
.page-head p {
  margin: 0;
  color: #4d5e86;
}
.progress {
  text-align: right;
  min-width: 210px;
}
.progress-line {
  height: 7px;
  background: #d7e4f5;
  border-radius: 999px;
  overflow: hidden;
  margin: 10px 0 8px;
}
.progress-line span {
  display: block;
  height: 100%;
  width: 88%;
  background: linear-gradient(90deg, #197af5, #00b5f6);
  border-radius: 999px;
}
.btn {
  border: 1px solid #bdd3ee;
  background: #fff;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 900;
  color: #07163a;
  cursor: pointer;
}
.btn.primary {
  border: 0;
  background: linear-gradient(135deg, #1887ff, #075cf0);
  color: white;
  box-shadow: 0 8px 22px rgba(24, 118, 240, 0.22);
}
.btn.small {
  padding: 8px 14px;
  font-size: 12px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 900;
}
.pill.green {
  background: var(--green-bg);
  color: #008251;
}
.pill.blue {
  background: #e8f3ff;
  color: #0062d6;
}
.pill.orange {
  background: var(--orange-bg);
  color: var(--orange);
}
.pill.red {
  background: var(--red-bg);
  color: var(--red);
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.accordion {
  background: white;
  border: 2px solid #1d82ff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 0 4px rgba(29, 130, 255, 0.06);
}
.acc-head {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid var(--line2);
  font-weight: 900;
}
.step-no {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, #1d83ff, #a73ac9);
  color: white;
  font-size: 12px;
  margin-right: 10px;
}
.acc-body {
  padding: 16px 18px 0;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 12px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field.full {
  grid-column: 1/-1;
}
.label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #53618d;
  font-weight: 900;
}
.input,
select,
textarea {
  width: 100%;
  border: 1px solid #bcd2ec;
  border-radius: 8px;
  background: #fbfdff;
  height: 38px;
  padding: 0 12px;
  font-weight: 600;
  color: #07163a;
}
textarea {
  height: 70px;
  padding: 12px;
  resize: vertical;
}
.radio-row {
  display: flex;
  gap: 18px;
  margin-bottom: 10px;
}
.radio-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.radio-tile.active {
  background: #eef6ff;
}
.upload-box {
  border: 1.5px dashed #6bc9ff;
  background: #e7f8ff;
  border-radius: 9px;
  text-align: center;
  padding: 18px;
  color: #0069ef;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 900;
}
.hint {
  color: #4d5e86;
  font-size: 12px;
  margin: 12px 0 14px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.section-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: 16px;
  overflow: hidden;
}
.section-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line2);
}
.section-head .kicker {
  letter-spacing: 0.16em;
}
.section-head h3 {
  margin: 7px 0 6px;
  font-size: 18px;
}
.guidance {
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  margin: 14px 0;
}
.guidance h3 {
  margin: 0 0 10px;
  font-size: 16px;
}
.guidance li {
  margin: 8px 0;
  color: #18336b;
}
.document-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 18px;
}
.doc-card {
  border: 1px solid #bdd5f0;
  border-radius: 10px;
  background: #fff;
  min-height: 130px;
  padding: 18px;
}
.doc-card.done {
  background: #f1fff8;
  border-color: #75d9a8;
}
.file-chip {
  margin-top: 12px;
  border: 1px solid #7ad9a6;
  background: #f1fff8;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}
.file-type {
  background: #cdf7e1;
  border-radius: 7px;
  padding: 8px;
  color: #008c58;
  font-size: 11px;
}
.sticky-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: rgba(255, 255, 255, 0.94);
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  margin: 18px -18px 0;
  backdrop-filter: blur(6px);
}
.photo-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 30px;
  align-items: center;
  padding: 20px;
}
.photo-box {
  height: 156px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f3f7fc;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 900;
}
.photo-box span {
  font-size: 28px;
  display: block;
  margin-bottom: 24px;
}
.hero {
  min-height: 720px;
  background: radial-gradient(
    circle at right,
    #b7e2ff 0,
    #edf7ff 34%,
    #fff 62%
  );
  padding: 34px 12vw 0;
}
.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.landing-links {
  display: flex;
  gap: 70px;
  font-weight: 900;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 70px;
  align-items: center;
  padding-top: 90px;
}
.hero h1 {
  font-size: 68px;
  line-height: 1.1;
  margin: 0 0 28px;
  letter-spacing: -0.05em;
}
.hero h1 span {
  color: #116cff;
}
.hero p {
  font-size: 21px;
  line-height: 1.45;
  color: #17305d;
  max-width: 570px;
}
.hero-cta {
  display: inline-flex;
  background: linear-gradient(90deg, #19b9ef, #075bf0);
  color: white;
  border-radius: 8px;
  padding: 19px 28px;
  margin: 28px 0;
  font-weight: 900;
}
.hero-card {
  background: white;
  border-radius: 18px;
  transform: rotate(5deg);
  padding: 26px;
  box-shadow: var(--shadow);
  font-weight: 900;
  font-size: 34px;
}
.dark-section {
  background: #061336;
  color: white;
  padding: 70px 12vw;
}
.dark-section p {
  color: #d8e8ff;
}
.process {
  background: white;
  text-align: center;
  padding: 60px 12vw;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px;
  margin-top: 42px;
}
.circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  background: #eef6ff;
  border: 1px solid #d5e6fb;
  color: #0073ff;
  font-size: 30px;
}
.login-page {
  min-height: calc(100vh - 0px);
  display: grid;
  grid-template-columns: 1fr 470px;
  background: linear-gradient(90deg, #eaf8ff, #e7f2ff 68%, #fff 68%);
}
.login-left {
  padding: 70px 9vw;
}
.login-left h1 {
  font-size: 48px;
  line-height: 1.25;
  letter-spacing: -0.05em;
  margin: 170px 0 20px;
}
.tag {
  display: inline-flex;
  border: 1px solid #8ac8ff;
  border-radius: 999px;
  padding: 8px 14px;
  color: #005df0;
  background: white;
  font-weight: 900;
}
.login-panel {
  padding: 150px 44px;
}
.login-panel h2 {
  font-size: 24px;
}
.stepper {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 25px 0;
}
.stepper span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #b7cae5;
  background: #fff;
}
.stepper span.active {
  background: #197af5;
  border-color: #197af5;
}
.stepper i {
  height: 2px;
  background: #ccd8ea;
  flex: 1;
}
.login-input {
  height: 48px;
}
.link-center {
  text-align: center;
  color: #0067ee;
  font-weight: 900;
  margin: 22px 0;
}
.table-card {
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-bottom: 26px;
}
.stat {
  height: 120px;
  padding: 22px;
  border: 1px solid var(--line);
  border-top: 3px solid #6255ff;
  border-radius: 10px;
  background: white;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.stat:after {
  content: "";
  position: absolute;
  right: -15px;
  top: -22px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #eeeaff;
}
.stat h4 {
  margin: 18px 0 8px;
  color: #8b98bd;
  font-size: 12px;
  letter-spacing: 0.16em;
}
.stat strong {
  font-size: 28px;
}
.filters {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}
.queue-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.search-row {
  display: flex;
  gap: 12px;
}
.search-row input,
.search-row select {
  width: 330px;
}
.app-table {
  width: 100%;
  border-collapse: collapse;
}
.app-table th {
  text-align: left;
  color: #9ba6c4;
  font-size: 11px;
  letter-spacing: 0.18em;
  padding: 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f7f9fd;
}
.app-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}
.riskbar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #dffbf5;
  border-radius: 999px;
  padding: 7px 14px;
}
.mini-bar {
  width: 42px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #00945e 45%, #d54a2a 45%);
}
.review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
}
.right-stack {
  display: grid;
  gap: 18px;
  align-content: start;
}
.matrix {
  padding: 0;
  overflow: hidden;
}
.matrix-head {
  background: #f1f3ff;
  padding: 17px 22px;
  display: flex;
  justify-content: space-between;
  font-weight: 900;
}
.stage-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  padding: 20px;
}
.stage {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 18px 14px;
  min-height: 130px;
}
.stage .num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--purple);
  color: white;
  font-weight: 900;
  margin-bottom: 18px;
}
.risk-card {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  padding: 24px;
}
.risk-score {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 11px solid #6558e8;
  border-left-color: #e6e7fa;
  color: #6558e8;
  font-size: 28px;
  font-weight: 900;
  position: relative;
}
.risk-score small {
  position: absolute;
  bottom: -26px;
  color: #e0446a;
  font-size: 12px;
  letter-spacing: 0.05em;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
}
.metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f6f8ff;
}
.metric strong {
  display: block;
  font-size: 16px;
}
.metric span {
  font-size: 11px;
  color: #8793b6;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.dark-head {
  background: var(--navy);
  color: white;
  padding: 14px 20px;
  border-radius: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 900;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 18px;
}
.summary-box {
  border: 1px solid #bde3e9;
  background: #f4fffd;
  border-radius: 9px;
  padding: 18px;
}
.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 0 18px 18px;
}
.note-box {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 18px;
  background: #fff;
}
.profile-card {
  overflow: hidden;
}
.profile-top {
  background: #27328b;
  color: white;
  padding: 26px;
  display: flex;
  gap: 18px;
  align-items: center;
}
.profile-photo {
  width: 105px;
  height: 105px;
  border-radius: 8px;
  background: linear-gradient(135deg, #8257f2, #ed4c9a);
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 900;
}
.profile-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 16px;
  background: white;
}
.info-box {
  background: #f7faff;
  border-radius: 8px;
  padding: 12px;
}
.info-box span {
  display: block;
  font-size: 11px;
  color: #95a0bd;
  letter-spacing: 0.14em;
  font-weight: 900;
}
.doc-list {
  padding: 0 16px 14px;
}
.doc-row {
  display: grid;
  grid-template-columns: 34px 1fr 34px 34px;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.pdf {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #ece8ff;
  color: #5a4dff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
}
.co-review {
  padding: 20px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.chip {
  border: 1px solid #c7d9f0;
  border-radius: 999px;
  padding: 8px 12px;
  color: #6a4fff;
  font-weight: 800;
  background: white;
}
.msg {
  height: 130px;
}
.terms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.terms-card {
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.offer {
  border: 2px solid #ff4c4c;
  border-radius: 14px;
  background: white;
  padding: 16px;
}
.offer-head {
  display: flex;
  justify-content: space-between;
}
.offer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 26px 0;
}
.offer-box {
  border: 1px solid #a6ecc6;
  border-radius: 8px;
  padding: 14px;
}
.signed-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #75d9a8;
  border-radius: 8px;
  padding: 16px;
  color: #006b44;
  font-weight: 900;
}
.modal-demo {
  background: rgba(4, 15, 41, 0.66);
  min-height: calc(100vh - 100px);
  display: grid;
  place-items: start center;
  padding-top: 70px;
}
.modal {
  width: 850px;
  background: white;
  border-radius: 12px;
  padding: 20px;
}
.pdf-frame {
  height: 520px;
  background: #303030;
  border-radius: 3px;
  color: white;
  display: grid;
  grid-template-columns: 260px 1fr;
}
.pdf-side {
  border-right: 2px solid #111;
  padding: 35px;
}
.pdf-page-thumb {
  height: 210px;
  background: white;
  margin: 0 auto;
  width: 130px;
  border: 6px solid #80aaff;
}
.pdf-page {
  background: white;
  color: #076bff;
  margin: 95px 22px 20px;
  padding: 30px;
  font-size: 20px;
  font-weight: 900;
}
.hide-desktop {
  display: none;
}
@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 70px 1fr;
  }
  .sidebar .menu span.txt {
    display: none;
  }
  .menu a {
    justify-content: center;
  }
  .hero-grid,
  .login-page,
  .review-layout {
    grid-template-columns: 1fr;
  }
  .right-stack {
    grid-template-columns: 1fr;
  }
  .stats,
  .stage-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .document-grid,
  .metric-grid,
  .summary-grid,
  .offer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .landing-links {
    display: none;
  }
}
@media (max-width: 700px) {
  .main {
    padding: 18px;
  }
  .field-grid,
  .document-grid,
  .process-grid,
  .terms-grid,
  .two-cols {
    grid-template-columns: 1fr;
  }
  .page-head {
    display: block;
  }
  .topbar {
    padding: 0 14px;
  }
  .brand-word {
    font-size: 24px;
  }
  .brand-mark {
    font-size: 32px;
  }
  .hero h1 {
    font-size: 44px;
  }
  .hero {
    padding: 28px;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .search-row {
    display: block;
  }
  .search-row input,
  .search-row select {
    width: 100%;
    margin-bottom: 10px;
  }
  .app-table {
    font-size: 12px;
  }
  .pdf-frame {
    grid-template-columns: 1fr;
  }
  .pdf-side {
    display: none;
  }
}

/* Update v2: pure HTML profile menu and role links */
.profile-menu {
  position: relative;
}
.profile-menu details {
  position: relative;
}
.profile-menu summary {
  list-style: none;
}
.profile-menu summary::-webkit-details-marker {
  display: none;
}
.profile-dropdown {
  position: absolute;
  right: 0;
  top: 54px;
  width: 270px;
  background: #fff;
  border: 1px solid #c7d8ee;
  border-radius: 14px;
  box-shadow: 0 22px 55px rgba(8, 35, 80, 0.18);
  padding: 14px;
  z-index: 90;
}
.profile-dropdown-head {
  display: flex;
  gap: 13px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.profile-dropdown .big-avatar {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 18px;
}
.profile-dropdown b {
  display: block;
}
.profile-dropdown small {
  color: #64748b;
}
.signout-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  border: 1px solid #cbd9ed;
  border-radius: 9px;
  padding: 12px;
  font-weight: 900;
  color: #07163a;
  background: #f9fbff;
}
.signout-btn:hover {
  background: #eaf3ff;
}
.rolebar {
  gap: 0;
}
.rolebar a {
  color: #88ccff;
  padding: 15px 38px;
  font-weight: 800;
  border-bottom: 3px solid transparent;
}
.rolebar a.active {
  background: #0b2b59;
  color: #1ba5ff;
  border-bottom-color: #00a7ff;
}
.rolebar a:hover {
  background: #102d5b;
  color: white;
}
details.accordion {
  display: block;
  margin-bottom: 10px;
}
details.accordion > summary.acc-head {
  cursor: pointer;
  list-style: none;
}
details.accordion > summary.acc-head::-webkit-details-marker {
  display: none;
}
details.accordion:not([open]) {
  border-color: #d5e2f3;
  box-shadow: none;
}
details.accordion:not([open]) .acc-head {
  border-bottom: 0;
}
details.accordion:not([open]) .acc-head .chev {
  transform: rotate(-90deg);
}
.section-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 0 0;
}
.info-note {
  padding: 12px 14px;
  border-radius: 8px;
  background: #eff7ff;
  border: 1px solid #c7ddf6;
  color: #17305d;
  font-weight: 700;
  margin: 10px 0;
}
.consent-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f1f5fb;
  border-radius: 9px;
  padding: 14px;
  font-weight: 800;
}
.fee-card {
  background: #fff4cc;
  border: 1px solid #f5d98d;
  border-radius: 10px;
  overflow: hidden;
  margin: 12px 0;
}
.fee-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff0bd;
  padding: 18px 22px;
}
.fee-price {
  background: white;
  border-radius: 10px;
  padding: 18px 24px;
  box-shadow: var(--shadow);
  text-align: center;
}
.fee-price strong {
  display: block;
  color: #d97706;
  font-size: 28px;
}
.wide-link-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.wide-link-row a {
  min-width: 190px;
  text-align: center;
}
@media (max-width: 700px) {
  .rolebar a {
    padding: 14px 12px;
  }
  .profile-dropdown {
    right: -10px;
    width: 250px;
  }
}

.login-role-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 18px 0 6px;
  padding: 5px;
  border: 1px solid #cfe0f5;
  border-radius: 12px;
  background: #f5f9ff;
}
.login-role-tabs a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 9px;
  color: #24416f;
  font-weight: 900;
}
.login-role-tabs a.active {
  background: linear-gradient(135deg, #1887ff, #075cf0);
  color: white;
  box-shadow: 0 8px 20px rgba(24, 118, 240, 0.18);
}
.demo-box {
  border: 1px solid #ff9b9b;
  color: #d71d1d;
  background: #fff5f5;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  font-weight: 800;
  line-height: 1.6;
}
.demo-box a {
  color: #0067ee;
  text-decoration: underline;
}
.demo-box.officer {
  border-color: #9ed0ff;
  background: #f4faff;
  color: #0b418c;
}

/* ===== v4 refinements: single login, protected-style role bars, deeper review page ===== */
body {
  font-family:
    "Inter",
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  font-weight: 500;
}
.rolebar span {
  background: #0b2b59;
  padding: 15px 38px;
  border-bottom: 3px solid #00a7ff;
  color: #1ba5ff;
  font-weight: 800;
}
.rolebar a {
  display: none;
}
.rolebar .locked-note {
  font-size: 11px;
  color: #89a8d5;
  margin-left: 14px;
  background: transparent;
  padding: 0;
  border: 0;
}
.login-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 18px 0 6px;
  padding: 5px;
  border: 1px solid #cfe0f5;
  border-radius: 12px;
  background: #f5f9ff;
}
.login-switch label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 9px;
  color: #24416f;
  font-weight: 900;
  cursor: pointer;
}
.login-role-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
#loginSponsor:checked ~ .login-switch label[for="loginSponsor"],
#loginOfficer:checked ~ .login-switch label[for="loginOfficer"] {
  background: linear-gradient(135deg, #1887ff, #075cf0);
  color: white;
  box-shadow: 0 8px 20px rgba(24, 118, 240, 0.18);
}
.login-form-panel {
  display: none;
}
.login-form-panel .demo-box {
  margin-top: 14px;
}
#loginSponsor:checked ~ .sponsor-login-form,
#loginOfficer:checked ~ .officer-login-form {
  display: block;
}
.login-helper {
  margin: 12px 0 0;
  color: #5b6b8e;
  font-size: 12px;
  line-height: 1.5;
}
.login-panel {
  padding-top: 110px;
}
.login-left h1 {
  font-weight: 900;
}
.login-panel h2 {
  font-weight: 900;
}
.profile-dropdown .signout-btn[href="login.html"] {
  color: #07163a;
}
.review-layout.deep-review {
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
}
.review-toolbar {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.review-toolbar .ref {
  color: #3a5590;
}
.left-stack,
.right-stack {
  min-width: 0;
}
.right-stack {
  position: sticky;
  top: 118px;
}
.stage b {
  line-height: 1.18;
  display: block;
}
.stage p {
  margin: 8px 0 0;
  color: #273e70;
  font-weight: 700;
}
.risk-card .kicker {
  letter-spacing: 0.13em;
}
.status-orange {
  color: #ff9700;
}
.ai-section-copy {
  padding: 20px;
  line-height: 1.55;
}
.flag-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.flag-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8fbff;
  padding: 16px;
}
.recommendation {
  border-left: 4px solid #14a2ff;
  background: #f6fbff;
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 14px;
  font-weight: 700;
  color: #17305d;
}
.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 18px;
}
.check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #85ddb4;
  background: #f0fff7;
  border-radius: 9px;
  padding: 12px;
}
.check-item.pending {
  border-color: #ffc46b;
  background: #fffaf0;
}
.check-square {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: #0c8cff;
  color: white;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
}
.check-item.pending .check-square {
  background: #fff;
  border: 1px solid #ffc46b;
  color: #c67a00;
}
.check-copy {
  flex: 1;
}
.check-copy b {
  display: block;
}
.check-copy small {
  color: #5c6f99;
}
.review-status {
  font-size: 11px;
  font-weight: 900;
  border-radius: 999px;
  padding: 6px 10px;
  background: #dffbf0;
  color: #008251;
}
.check-item.pending .review-status {
  background: #fff0d6;
  color: #b66b00;
}
.review-list {
  padding: 0 18px 18px;
}
.review-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}
.review-row span:last-child {
  font-size: 11px;
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff3d8;
  color: #bf7600;
}
.review-row .ok {
  background: #e8fff5 !important;
  color: #008251 !important;
}
.remarks {
  padding: 16px;
}
.remark {
  border-left: 3px solid #4094ff;
  padding: 8px 0 8px 10px;
  margin-bottom: 8px;
}
.remark b {
  display: block;
}
.remark small {
  color: #6e7a99;
}
.side-note-card {
  padding: 18px;
}
.side-note-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: #18336b;
}
.borrower-criteria {
  padding: 18px;
}
.borrower-criteria li {
  margin: 6px 0;
  color: #18336b;
}
.doc-row small {
  color: #5f6f91;
}
.summary-grid.compact {
  grid-template-columns: repeat(4, 1fr);
}
.summary-grid.compact .note-box {
  min-height: 92px;
}
.score-wheel {
  background: conic-gradient(#6255e8 0 25%, #e9eafc 25% 100%);
}
.score-wheel.score-38 {
  background: conic-gradient(#6255e8 0 38%, #e9eafc 38% 100%);
}
@media (max-width: 1180px) {
  .review-layout.deep-review {
    grid-template-columns: 1fr;
  }
  .right-stack {
    position: static;
    grid-template-columns: 1fr 1fr;
  }
  .flag-grid {
    grid-template-columns: 1fr;
  }
  .check-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .login-page {
    grid-template-columns: 1fr;
  }
  .login-panel {
    padding: 34px 24px;
  }
  .login-left {
    display: none;
  }
  .right-stack {
    grid-template-columns: 1fr;
  }
  .summary-grid.compact {
    grid-template-columns: 1fr 1fr;
  }
  .stage-grid {
    grid-template-columns: 1fr;
  }
  .review-toolbar {
    align-items: flex-start;
  }
  .flag-grid,
  .check-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== v5 document-aligned platform rules UI ===== */
.rule-banner,
.policy-strip {
  background: linear-gradient(90deg, #eff6ff, #eefdfa);
  border: 1px solid #b9dcff;
  border-left: 4px solid #1686ff;
  border-radius: 10px;
  padding: 13px 16px;
  margin: 0 0 14px;
  color: #14315f;
  font-weight: 700;
  line-height: 1.5;
}
.rep-panel {
  border: 1px solid #c7ddf6;
  background: #f8fbff;
  border-radius: 10px;
  padding: 14px;
  margin: 12px 0 16px;
}
.radio-tile.active-blue {
  background: #edf5ff;
  border-color: #1686ff;
  color: #075cf0;
}
.policy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 16px;
}
.policy-tile {
  background: #f7fbff;
  border: 1px solid #d7e7f8;
  border-radius: 10px;
  padding: 14px;
  min-height: 78px;
}
.policy-tile span,
.category-grid span {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #7a8bae;
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 7px;
}
.policy-tile b,
.category-grid b {
  font-size: 14px;
  color: #061b46;
}
.policy-tile.action {
  display: grid;
  place-items: center;
}
.guidance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 14px 0;
}
.guidance {
  border: 1px solid #d6e2f3;
  background: #fbfdff;
  border-radius: 10px;
  padding: 16px;
}
.guidance h3 {
  margin-bottom: 10px;
}
.guidance ul,
.fee-card-body ul {
  padding-left: 20px;
  color: #18336b;
  line-height: 1.7;
}
.document-progress {
  padding: 16px;
  border: 1px solid #d6e2f3;
  border-radius: 9px;
  margin: 14px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}
.document-progress .progress-line {
  grid-column: 1/-1;
}
.fee-card-body {
  padding: 22px;
}
.compliance.check-grid {
  padding: 0;
  margin-top: 15px;
}
.approval-authority {
  margin-top: 18px;
}
.committee-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 16px;
}
.committee-list span {
  background: #f5f8ff;
  border: 1px solid #dce8f8;
  border-radius: 999px;
  padding: 8px 12px;
  color: #18336b;
  font-weight: 800;
}
.stage small {
  display: inline-block;
  margin-top: 10px;
  background: #e8fff5;
  color: #0b8a55;
  border-radius: 999px;
  padding: 5px 10px;
  font-weight: 900;
}
.stage.active {
  border-color: #1887ff;
  box-shadow: 0 10px 24px rgba(24, 135, 255, 0.12);
}
.stage.completed {
  background: #fbfffd;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 18px;
}
.category-grid > div {
  border: 1px solid #d6e2f3;
  background: #fbfdff;
  border-radius: 10px;
  padding: 15px;
}
.decline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 18px;
}
.decline-grid > div {
  border-radius: 10px;
  padding: 14px;
  font-weight: 800;
}
.decline-grid b {
  display: block;
  margin-top: 8px;
}
.decline-ok {
  border: 1px solid #92e5bd;
  background: #effff7;
  color: #075f3c;
}
.decline-warn {
  border: 1px solid #ffcd73;
  background: #fff8e8;
  color: #9b5b00;
}
.decline-grid.manual > div {
  border: 1px solid #d6e2f3;
  background: #fbfdff;
  color: #18336b;
}
.reporting-card {
  margin: 18px 0;
}
.dashboard-report {
  grid-template-columns: repeat(4, 1fr);
}
.mini-class {
  font-size: 12px;
  color: #18336b;
  background: #f4f8ff;
  border: 1px solid #d6e2f3;
  border-radius: 999px;
  padding: 7px 10px;
  font-weight: 800;
  display: inline-block;
}
.app-table th,
.app-table td {
  vertical-align: middle;
}
.field textarea {
  min-height: 74px;
}
.section-card {
  margin-top: 16px;
}
.acc-body .section-card + .section-card {
  margin-top: 14px;
}
@media (max-width: 1180px) {
  .policy-grid,
  .category-grid,
  .dashboard-report {
    grid-template-columns: repeat(2, 1fr);
  }
  .guidance-grid,
  .decline-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  .policy-grid,
  .category-grid,
  .dashboard-report,
  .guidance-grid,
  .decline-grid {
    grid-template-columns: 1fr;
  }
  .document-progress {
    grid-template-columns: 1fr;
  }
  .committee-list {
    display: block;
  }
  .committee-list span {
    display: block;
    margin-bottom: 8px;
  }
}

/* ===== v7 dynamic mockup interactions ===== */
.upload-box,
.doc-card,
.photo-box {
  cursor: pointer;
}
.upload-box:hover,
.doc-card:hover,
.photo-box:hover {
  outline: 2px solid #1686ff;
  outline-offset: 2px;
}
.upload-box.uploaded {
  background: #eafff6;
  border-color: #39c98a;
  color: #087345;
}
.sg-file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.sg-uploaded-chip {
  border-color: #8ee4b6;
  background: #f0fff7;
}
.photo-box.has-photo {
  background: #eef5ff;
  border-color: #93c5fd;
  overflow: hidden;
}
.photo-box.has-photo img {
  width: 120px;
  height: 154px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #cbdaf0;
  display: block;
  margin: 0 auto 8px;
}
.photo-box.has-photo span {
  display: block;
  text-align: center;
  font-size: 11px;
  color: #17305d;
  font-weight: 900;
}
.sg-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99999;
  min-width: 250px;
  max-width: 360px;
  padding: 13px 16px;
  border-radius: 12px;
  background: #062056;
  color: white;
  font-weight: 900;
  box-shadow: 0 16px 40px rgba(7, 22, 58, 0.24);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: 0.22s ease;
}
.sg-toast.show {
  transform: translateY(0);
  opacity: 1;
}
.sg-toast.warning {
  background: #9b5b00;
}
.sg-camera-modal {
  position: fixed;
  inset: 0;
  background: rgba(3, 12, 34, 0.68);
  z-index: 99990;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}
.sg-camera-modal.open {
  display: flex;
}
.sg-camera-card {
  width: min(96vw, 520px);
  background: white;
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.sg-camera-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid #dbe7f5;
}
.sg-camera-head b {
  display: block;
  font-size: 17px;
  color: #061b46;
}
.sg-camera-head small {
  display: block;
  color: #5f6f91;
  margin-top: 3px;
}
.sg-camera-close {
  width: 34px;
  height: 34px;
  border: 1px solid #cfe0f5;
  background: #f8fbff;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  color: #17305d;
}
.sg-camera-stage {
  position: relative;
  background: #07163a;
  height: 430px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.sg-camera-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}
.sg-passport-frame {
  position: absolute;
  width: 250px;
  height: 322px;
  border: 3px solid #fff;
  border-radius: 14px;
  box-shadow:
    0 0 0 999px rgba(0, 0, 0, 0.28),
    0 0 0 6px rgba(22, 134, 255, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 12px;
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
}
.sg-passport-frame:before {
  content: "";
  position: absolute;
  top: 48px;
  left: 50%;
  width: 92px;
  height: 112px;
  border: 2px dashed rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  transform: translateX(-50%);
}
.sg-camera-message {
  padding: 12px 18px;
  color: #17305d;
  font-weight: 800;
  background: #f5f9ff;
}
.sg-camera-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 15px 18px;
  border-top: 1px solid #dbe7f5;
}
.btn.connected {
  background: #eafff6 !important;
  color: #087345 !important;
  border-color: #8ee4b6 !important;
}
@media (max-width: 560px) {
  .sg-camera-stage {
    height: 360px;
  }
  .sg-passport-frame {
    width: 210px;
    height: 270px;
  }
  .sg-camera-actions {
    flex-direction: column;
  }
  .sg-camera-actions .btn {
    width: 100%;
  }
}

/* ===== v9: v7-preserved polish and broken layout fixes ===== */
.is-hidden {
  display: none !important;
}
.radio-row {
  align-items: stretch;
}
.radio-tile {
  user-select: none;
}
.radio-tile input {
  accent-color: #1478f2;
}
.radio-tile.active,
.radio-tile.active-blue {
  border-color: #1478f2 !important;
  background: #eef6ff !important;
  color: #075cf0 !important;
  box-shadow: 0 8px 20px rgba(20, 120, 242, 0.08);
}
.rep-panel {
  transition: 0.18s ease;
}
.field-grid {
  align-items: start;
}
.field .input,
.field select,
.field textarea {
  min-height: 42px;
}
.field.full {
  grid-column: 1/-1;
}
.hint {
  line-height: 1.45;
}
.document-guidance-dynamic {
  margin: 10px 0 14px;
  padding: 12px 14px;
  border: 1px solid #cfe0f5;
  border-left: 4px solid #1478f2;
  background: #f7fbff;
  border-radius: 9px;
  color: #18336b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}
.document-guidance-dynamic b {
  color: #061b46;
}
.document-guidance-dynamic ul {
  margin: 7px 0 0 18px;
  font-weight: 600;
}
.document-guidance-dynamic li {
  margin: 3px 0;
}
.table-card {
  overflow: hidden;
}
.table-card .app-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}
.table-card .app-table th,
.table-card .app-table td {
  vertical-align: middle;
  line-height: 1.35;
  word-break: normal;
}
.table-card .app-table th:nth-child(1),
.table-card .app-table td:nth-child(1) {
  width: 150px;
}
.table-card .app-table th:nth-child(2),
.table-card .app-table td:nth-child(2) {
  width: 130px;
}
.table-card .app-table th:nth-child(3),
.table-card .app-table td:nth-child(3) {
  width: 105px;
}
.table-card .app-table th:nth-child(4),
.table-card .app-table td:nth-child(4) {
  width: 175px;
}
.table-card .app-table th:nth-child(5),
.table-card .app-table td:nth-child(5) {
  width: 210px;
}
.table-card .app-table th:nth-child(6),
.table-card .app-table td:nth-child(6) {
  width: 115px;
}
.table-card .app-table th:nth-child(7),
.table-card .app-table td:nth-child(7) {
  width: 90px;
}
.table-card .app-table th:nth-child(8),
.table-card .app-table td:nth-child(8) {
  width: 105px;
}
.mini-class {
  white-space: normal;
  line-height: 1.35;
  display: inline-block;
}
.riskbar {
  white-space: nowrap;
}
.queue-head {
  gap: 14px;
}
.search-row {
  min-width: 360px;
}
.search-row .input {
  min-width: 210px;
}
.summary-grid.compact .note-box {
  min-height: 108px;
}
.review-layout.deep-review {
  gap: 18px;
}
.right-stack .card,
.left-stack .card {
  margin-bottom: 16px;
}
.ai-section-copy p,
.ai-section-copy li {
  line-height: 1.55;
}
.profile-info-grid {
  grid-template-columns: 1fr 1fr;
}
.doc-row {
  gap: 10px;
}
.doc-row div {
  min-width: 0;
}
.doc-row b,
.doc-row small {
  overflow-wrap: anywhere;
}
@media (max-width: 1180px) {
  .table-card {
    overflow-x: auto;
  }
  .table-card .app-table {
    min-width: 1080px;
  }
  .queue-head {
    align-items: flex-start;
  }
  .search-row {
    width: 100%;
    min-width: 0;
  }
  .review-layout.deep-review {
    grid-template-columns: 1fr;
  }
  .right-stack {
    position: static;
  }
}
@media (max-width: 760px) {
  .field-grid {
    grid-template-columns: 1fr !important;
  }
  .queue-head {
    display: block;
  }
  .search-row {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .filters {
    overflow-x: auto;
  }
  .policy-grid,
  .category-grid {
    grid-template-columns: 1fr !important;
  }
}

/* v10 restore-from-v7 polish: keep layout, remove clutter, fix collapses and alignment */
.accordion {
  margin-bottom: 14px;
  border-color: #1784ff;
}
.accordion:not([open]) {
  border-color: #d7e6f8;
  box-shadow: none;
}
.accordion:not([open]) .acc-head {
  border-bottom: 0;
}
.accordion[open] .chev {
  transform: rotate(180deg);
}
.chev {
  display: inline-block;
  transition: 0.18s ease;
}
.acc-head {
  cursor: pointer;
  user-select: none;
}
.acc-head::-webkit-details-marker {
  display: none;
}
.acc-body {
  padding-bottom: 0;
}
.section-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 0 18px;
  border-top: 1px solid var(--line2);
}
.input,
select,
textarea {
  font-size: 13px;
  font-weight: 600;
}
.field-grid {
  align-items: start;
}
.hint.small-hint {
  font-size: 11px;
  margin: 8px 0 0;
}
.compact-docs-card {
  background: #fff;
}
.compact-head h3 {
  font-size: 16px;
  margin-bottom: 4px;
}
.compact-head p {
  margin: 0;
  color: #607095;
  font-size: 12px;
}
.compact-doc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  padding: 18px;
}
.doc-guide-panel {
  border: 1px solid #cfe0f5;
  border-radius: 10px;
  background: #f7fbff;
  padding: 16px;
  color: #18336b;
}
.doc-guide-panel b {
  display: block;
  margin-bottom: 8px;
}
.doc-guide-panel ul {
  margin: 0;
  padding-left: 18px;
}
.doc-guide-panel li {
  margin: 6px 0;
}
.upload-panel {
  border: 1px dashed #86cfff;
  background: #f1fbff;
  border-radius: 10px;
  padding: 16px;
}
.sg-file-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.upload-box.uploaded {
  background: #ecfff7;
  color: #007d4f;
  border-color: #73d5a4;
}
.document-guidance-dynamic {
  font-size: 13px;
  line-height: 1.45;
}
.policy-grid {
  grid-template-columns: repeat(3, 1fr);
}
.category-grid {
  grid-template-columns: repeat(4, 1fr);
}
.category-grid div {
  min-height: 64px;
}
.review-layout.deep-review {
  grid-template-columns: minmax(0, 1fr) 340px;
}
.left-stack {
  display: grid;
  gap: 16px;
}
.right-stack {
  gap: 16px;
}
.card {
  overflow: hidden;
}
.matrix-head {
  font-size: 13px;
}
.review-row {
  font-size: 13px;
}
.doc-row {
  grid-template-columns: 34px minmax(0, 1fr) 34px 34px;
}
.doc-row b,
.doc-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}
.co-review p {
  font-size: 12px;
  color: #607095;
  line-height: 1.45;
}
.remarks {
  padding: 18px;
}
.remark {
  background: #f8fbff;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
/* Approval matrix tracker */
.approval-tracker-card {
  padding: 0;
}
.tracker-wrap {
  background: #fff;
  border-radius: 12px;
  padding: 20px 24px;
}
.tracker-title {
  font-size: 14px;
  font-weight: 900;
  color: #06163b;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tracker-title span {
  font-size: 11px;
  font-weight: 800;
  color: #607095;
}
.stepper-track {
  display: flex;
  align-items: flex-start;
  position: relative;
}
.stepper-track .line-track {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: #dbe8f7;
  z-index: 0;
}
.stepper-track .line-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  background: #534ab7;
  transition: width 0.3s;
}
.stepper-track .step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}
.stepper-track .step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  border: 2px solid transparent;
  background: #fff;
}
.stepper-track .dot-done {
  background: #534ab7;
  border-color: #534ab7;
  color: #fff;
}
.stepper-track .dot-active {
  background: #fff;
  border-color: #534ab7;
  color: #534ab7;
  box-shadow: 0 0 0 3px #eeedfe;
}
.stepper-track .dot-pending {
  background: #f7fbff;
  border-color: #dbe8f7;
  color: #607095;
}
.stepper-track .step-body {
  margin-top: 10px;
  text-align: center;
  padding: 0 4px;
}
.stepper-track .step-num {
  font-size: 10px;
  color: #607095;
  margin-bottom: 2px;
}
.stepper-track .step-name {
  font-size: 12px;
  font-weight: 900;
  color: #06163b;
  line-height: 1.3;
  margin-bottom: 4px;
}
.stepper-track .step-sub {
  font-size: 11px;
  color: #607095;
  margin-bottom: 6px;
}
.stepper-track .chip {
  display: inline-block;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 20px;
  font-weight: 900;
}
.stepper-track .chip-done {
  background: #e1f5ee;
  color: #0f6e56;
}
.stepper-track .chip-active {
  background: #eeedfe;
  color: #3c3489;
}
.stepper-track .chip-pending {
  background: #f7fbff;
  color: #607095;
  border: 1px solid #dbe8f7;
}
/* Review score as 1-100 scale */
.risk-card {
  grid-template-columns: 190px 1fr;
  align-items: center;
}
.risk-score-scale {
  width: 170px;
  height: auto;
  border: 0;
  border-radius: 12px;
  background: #f7fbff;
  border: 1px solid #dbe8f7;
  padding: 14px;
  display: block;
  color: #06163b;
}
.risk-score-scale .score-number {
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
  color: #534ab7;
}
.risk-score-scale .score-caption {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #607095;
  font-weight: 900;
  margin: 4px 0 12px;
}
.risk-score-scale .score-range {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #13a36f 0 40%,
    #ffc35c 40% 70%,
    #d83a3a 70% 100%
  );
  position: relative;
}
.risk-score-scale .score-range span {
  position: absolute;
  top: -5px;
  width: 16px;
  height: 16px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #534ab7;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.22);
  transform: translateX(-50%);
}
.risk-score-scale .score-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: #607095;
  font-size: 10px;
  font-weight: 800;
}
.risk-score-scale small {
  position: static;
  color: inherit;
  letter-spacing: 0;
}
.summary-grid.compact .note-box {
  padding: 14px;
}
.flag-grid {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 900px) {
  .compact-doc-layout {
    grid-template-columns: 1fr;
  }
  .stepper-track {
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .stepper-track .step {
    min-width: 135px;
  }
  .risk-card {
    grid-template-columns: 1fr;
  }
  .risk-score-scale {
    width: 100%;
  }
  .category-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== v12 targeted polish: keep v7 UI, fix document logic, officer list, review/KYC and login alignment ===== */
.login-page {
  min-height: 100vh;
  grid-template-columns: minmax(0, 1fr) 460px;
  background: linear-gradient(90deg, #eaf8ff 0%, #edf6ff 62%, #fff 62%);
}
.login-left {
  display: flex;
  flex-direction: column;
  padding: 54px clamp(34px, 7vw, 110px);
}
.login-copy {
  margin: auto 0;
  max-width: 640px;
}
.login-copy h1 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.16;
  margin: 22px 0 16px;
}
.login-copy p {
  max-width: 560px;
  color: #17305d;
  line-height: 1.6;
}
.login-panel {
  padding: clamp(42px, 11vh, 110px) 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-panel h2 {
  margin: 6px 0 2px;
}
.login-submit {
  width: 100%;
  text-align: center;
  margin-top: 22px;
  display: block;
}
.otp-field {
  margin-top: 18px;
}
.login-role-tabs,
.login-switch {
  margin: 18px 0 12px;
}
@media (max-width: 820px) {
  .login-page {
    grid-template-columns: 1fr;
    background: #fff;
  }
  .login-left {
    display: none;
  }
  .login-panel {
    min-height: 100vh;
    padding: 34px 24px;
  }
}

.upload-workbench {
  background: #fff;
}
.upload-workbench > .document-guidance-dynamic {
  margin: 16px 18px 0;
}
.conditional-doc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0 18px 18px;
}
.conditional-doc-grid .doc-card {
  min-height: 150px;
  cursor: pointer;
  transition: 0.16s ease;
  position: relative;
}
.conditional-doc-grid .doc-card:hover {
  border-color: #1686ff;
  box-shadow: 0 10px 22px rgba(20, 120, 242, 0.08);
  transform: translateY(-1px);
}
.conditional-doc-grid .doc-card h4 {
  margin: 8px 0 8px;
  color: #061b46;
  font-size: 15px;
}
.conditional-doc-grid .doc-card p {
  margin: 0 0 8px;
  color: #3e527f;
  line-height: 1.45;
  font-size: 12px;
}
.conditional-doc-grid .doc-card small {
  color: #7383a5;
  font-weight: 800;
}
.req {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 9px;
  background: #e7fff3;
  color: #087345;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.req.amber {
  background: #fff5df;
  color: #9c6200;
}
.req.grey {
  background: #eef3f9;
  color: #607095;
}
.inline-upload-panel {
  margin: 0 18px 18px;
}
.document-progress {
  margin: 14px 18px;
}
.document-progress .progress-line span {
  width: 0%;
}
.document-progress b {
  color: #061b46;
}
.doc-card .file-chip {
  font-size: 12px;
  padding: 8px;
  margin-top: 10px;
}
.doc-card.is-not-required {
  opacity: 0.72;
  background: #fbfdff;
}
.doc-card.is-required-now {
  outline: 2px solid rgba(22, 134, 255, 0.16);
}
@media (max-width: 980px) {
  .conditional-doc-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .conditional-doc-grid {
    grid-template-columns: 1fr;
  }
}

.table-card {
  overflow-x: auto;
}
.table-card .app-table {
  min-width: 1120px;
}
.app-table th,
.app-table td {
  font-size: 12px;
}
.mini-class {
  border-radius: 8px;
  line-height: 1.35;
  max-width: 100%;
  white-space: normal;
}
.queue-risk-scale {
  display: grid;
  grid-template-columns: auto auto;
  gap: 4px 8px;
  align-items: center;
  min-width: 98px;
  background: #f4f8ff;
  border: 1px solid #d6e2f3;
  border-radius: 10px;
  padding: 7px 9px;
}
.queue-risk-scale b {
  font-size: 13px;
  color: #061b46;
}
.queue-risk-scale em {
  font-style: normal;
  font-size: 10px;
  font-weight: 900;
  color: #087345;
}
.queue-risk-scale i {
  grid-column: 1/-1;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #13a36f 0 40%,
    #ffc35c 40% 70%,
    #d83a3a 70% 100%
  );
  overflow: hidden;
}
.queue-risk-scale u {
  display: block;
  height: 100%;
  background: rgba(83, 74, 183, 0.65);
  border-radius: 999px;
  text-decoration: none;
}
.queue-head .search-row {
  flex-wrap: wrap;
}
.queue-head .search-row input,
.queue-head .search-row select {
  max-width: 100%;
}

.scroll-doc-list {
  max-height: 222px;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
}
.scroll-doc-list .doc-row {
  min-height: 66px;
}
.scroll-doc-list::-webkit-scrollbar {
  width: 8px;
}
.scroll-doc-list::-webkit-scrollbar-thumb {
  background: #b8cbe3;
  border-radius: 999px;
}
.scroll-note {
  padding: 0 18px 16px;
  margin: 0 !important;
  color: #617297 !important;
  font-size: 11px !important;
  font-weight: 800;
}
.realistic-check-card .matrix-head {
  padding: 14px 16px;
}
.verification-list {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
}
.verification-list > div {
  border: 1px solid #d7e6f8;
  border-radius: 9px;
  background: #fbfdff;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 8px;
}
.verification-list b {
  color: #061b46;
  font-size: 13px;
}
.verification-list small {
  grid-column: 1/-1;
  color: #607095;
  line-height: 1.35;
}
.verification-list span {
  font-size: 11px;
  border-radius: 999px;
  padding: 5px 9px;
  font-weight: 900;
}
.verification-list .ok {
  background: #e8fff5;
  color: #008251;
}
.verification-list .warn {
  background: #fff3d8;
  color: #bf7600;
}
.risk-score-scale .score-number:after {
  content: " / 100";
  font-size: 14px;
  color: #607095;
  margin-left: 3px;
}

/* ===== v13 fix: review page must fit screen, no cropped right panel ===== */
body {
  overflow-x: hidden;
}
.main {
  min-width: 0;
}
.layout {
  min-width: 0;
}
.review-layout.deep-review {
  width: 100%;
  max-width: 100%;
  grid-template-columns: minmax(0, 1fr) 300px !important;
  gap: 16px;
  overflow: visible;
}
.left-stack,
.right-stack,
.review-layout.deep-review > .card,
.review-layout.deep-review section,
.review-layout.deep-review aside {
  min-width: 0;
  max-width: 100%;
}
.review-layout.deep-review .card {
  max-width: 100%;
  min-width: 0;
}
.right-stack {
  width: 300px;
  min-width: 0;
  position: sticky;
  top: 118px;
}
.profile-top {
  padding: 22px 18px;
  gap: 14px;
}
.profile-photo {
  width: 92px;
  height: 92px;
  font-size: 25px;
}
.profile-top h2 {
  font-size: 22px;
  margin: 0;
}
.profile-top p {
  font-size: 12px;
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}
.profile-info-grid {
  grid-template-columns: 1fr 1fr;
  padding: 12px;
  gap: 8px;
}
.info-box {
  padding: 10px;
  min-width: 0;
}
.info-box b {
  overflow-wrap: anywhere;
  font-size: 13px;
}
.info-box span {
  font-size: 10px;
  letter-spacing: 0.1em;
}
.risk-card {
  grid-template-columns: 180px minmax(0, 1fr) !important;
  gap: 18px;
  padding: 20px !important;
  align-items: center;
}
.risk-card > div {
  min-width: 0;
}
.risk-card h2 {
  font-size: 24px;
  line-height: 1.15;
  margin: 8px 0;
}
.risk-card p {
  font-size: 14px;
  line-height: 1.35;
}
.risk-card .kicker {
  font-size: 11px;
  letter-spacing: 0.13em;
}
.risk-card .pill.green {
  flex: 0 0 auto;
  align-self: flex-start;
  margin-top: 4px;
  white-space: nowrap;
  border-radius: 999px;
  padding: 7px 12px;
  min-width: 0;
  min-height: 0;
  background: #e6fff3 !important;
  color: #008251 !important;
}
.risk-score-scale {
  width: 160px !important;
  padding: 14px !important;
}
.risk-score-scale .score-number {
  font-size: 34px !important;
}
.risk-score-scale .score-labels small {
  font-size: 10px !important;
}
.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px;
}
.metric {
  padding: 12px;
  min-width: 0;
}
.metric strong {
  font-size: 16px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.metric span {
  font-size: 10px;
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
}
.summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}
.summary-box {
  min-width: 0;
  padding: 14px;
}
.summary-box h2 {
  font-size: 20px;
  margin: 8px 0;
}
.two-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
.flag-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
.category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}
.check-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
.dark-head {
  min-width: 0;
  gap: 12px;
}
.dark-head span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.scroll-doc-list {
  max-height: 214px;
}
.doc-row {
  grid-template-columns: 32px minmax(0, 1fr) 32px 32px !important;
}
.doc-row .btn.small {
  padding: 7px 8px;
}
.pdf {
  width: 32px;
  height: 32px;
}

@media (max-width: 1250px) {
  .main {
    padding: 22px 24px 34px;
  }
  .review-layout.deep-review {
    grid-template-columns: minmax(0, 1fr) 280px !important;
    gap: 14px;
  }
  .right-stack {
    width: 280px;
    position: static;
  }
  .risk-card {
    grid-template-columns: 165px minmax(0, 1fr) !important;
    padding: 18px !important;
  }
  .risk-score-scale {
    width: 150px !important;
  }
  .profile-photo {
    width: 80px;
    height: 80px;
  }
  .profile-top {
    padding: 18px 14px;
  }
}
@media (max-width: 1050px) {
  .review-layout.deep-review {
    grid-template-columns: 1fr !important;
  }
  .right-stack {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .risk-card {
    grid-template-columns: 170px minmax(0, 1fr) !important;
  }
}
@media (max-width: 780px) {
  .right-stack {
    grid-template-columns: 1fr;
  }
  .risk-card {
    grid-template-columns: 1fr !important;
  }
  .risk-score-scale {
    width: 100% !important;
  }
  .metric-grid,
  .summary-grid,
  .two-cols,
  .flag-grid,
  .check-grid,
  .category-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ===== v14: make risk score scale clearly visible ===== */
.risk-title-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.risk-score-scale .score-zone-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 900;
  color: #06163b;
}
.risk-scale-full {
  margin: 14px 0 16px;
  padding: 14px;
  border: 1px solid #c9dcf4;
  border-radius: 12px;
  background: #f8fbff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.risk-scale-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: #06163b;
}
.risk-scale-head b {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #006eff;
}
.risk-scale-head span {
  font-size: 12px;
  color: #607095;
}
.risk-scale-head strong {
  font-size: 15px;
  color: #534ab7;
}
.risk-scale-track {
  height: 18px;
  border-radius: 999px;
  display: grid;
  grid-template-columns: 40fr 30fr 30fr;
  position: relative;
  overflow: visible;
  background: #eef3fb;
  border: 1px solid #d7e4f5;
}
.risk-scale-track .zone {
  display: block;
  height: 100%;
}
.risk-scale-track .zone.low {
  background: #12a873;
  border-radius: 999px 0 0 999px;
}
.risk-scale-track .zone.medium {
  background: #ffc44d;
}
.risk-scale-track .zone.high {
  background: #d83a3a;
  border-radius: 0 999px 999px 0;
}
.risk-scale-track i {
  position: absolute;
  top: -8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #534ab7;
  border: 4px solid #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.24);
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  font-style: normal;
  z-index: 2;
}
.risk-scale-track i em {
  position: absolute;
  top: -28px;
  background: #06163b;
  color: #fff;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
  font-style: normal;
  white-space: nowrap;
}
.risk-scale-ticks {
  display: grid;
  grid-template-columns: 40fr 30fr 30fr 1px;
  margin-top: 12px;
  color: #607095;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
}
.risk-scale-ticks span:nth-child(1) {
  text-align: left;
}
.risk-scale-ticks span:nth-child(2) {
  text-align: left;
  transform: translateX(-8px);
}
.risk-scale-ticks span:nth-child(3) {
  text-align: left;
  transform: translateX(-8px);
}
.risk-scale-ticks span:nth-child(4) {
  text-align: right;
  min-width: 70px;
  justify-self: end;
}
.risk-scale-ticks b {
  color: #06163b;
  font-size: 10px;
}
@media (max-width: 780px) {
  .risk-title-row,
  .risk-scale-head {
    display: block;
  }
  .risk-title-row .pill {
    margin-top: 10px;
  }
  .risk-scale-ticks {
    font-size: 10px;
  }
}

/* v15 document-flow and review polish */
.flow-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 14px 0 18px;
}
.flow-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid #d6e2f3;
  background: #f8fbff;
  border-radius: 10px;
  padding: 12px;
}
.flow-item b {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #0d78ff;
  color: #fff;
  font-size: 12px;
}
.flow-item span {
  font-weight: 800;
  color: #18336b;
  line-height: 1.4;
}
.rule-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 16px 18px 0;
}
.rule-summary-grid div {
  border: 1px solid #d8e5f6;
  border-radius: 10px;
  background: #fbfdff;
  padding: 10px 12px;
}
.rule-summary-grid span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b7aa0;
  font-weight: 900;
  margin-bottom: 4px;
}
.rule-summary-grid b {
  color: #07163a;
}
.bank-choice-card {
  margin: 0 18px 18px;
  border: 1px solid #d7e6f8;
  border-radius: 12px;
  background: #fbfdff;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
}
.bank-choice-card h4 {
  margin: 4px 0 8px;
  font-size: 17px;
}
.bank-choice-card p {
  margin: 0;
  color: #4f628b;
  line-height: 1.5;
}
.bank-choice-actions {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.bank-choice-status {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
  color: #17305d;
}
.conditional-doc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0 18px 18px;
}
.doc-card {
  position: relative;
}
.doc-state {
  position: absolute;
  right: 14px;
  top: 14px;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 10px;
  font-weight: 900;
}
.state-missing {
  background: #ffe8e8;
  color: #c53535;
}
.state-uploaded {
  background: #e8fff5;
  color: #008251;
}
.state-optional {
  background: #eef3fb;
  color: #62759a;
}
.req.grey {
  background: #eef3fb;
  color: #62759a;
}
.doc-card h4 {
  margin: 24px 0 8px;
  font-size: 16px;
}
.doc-card p {
  margin: 0 0 8px;
  color: #1f3567;
  line-height: 1.45;
}
.doc-card small {
  display: block;
  color: #64749a;
  line-height: 1.4;
}
.document-status-table {
  margin: 0 18px 18px;
  border: 1px solid #d7e6f8;
  border-radius: 12px;
  overflow: hidden;
}
.document-status-head,
.document-status-row {
  display: grid;
  grid-template-columns: 1.2fr 1.7fr auto;
  gap: 12px;
  padding: 12px 14px;
  align-items: center;
}
.document-status-head {
  background: #f5f9ff;
  color: #5e6f96;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 900;
}
.document-status-row {
  border-top: 1px solid #e7eef8;
}
.document-status-row b {
  color: #06163b;
}
.document-status-row small {
  color: #5f7096;
  line-height: 1.4;
}
.pill.red-lite {
  background: #ffe8e8;
  color: #c53535;
}
.doc-panel-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px 0;
  align-items: flex-start;
}
.doc-panel-meta b {
  display: block;
  margin-bottom: 4px;
}
.doc-panel-meta small {
  color: #607095;
}
.doc-row-status {
  grid-template-columns: 32px minmax(0, 1fr) 88px 32px !important;
}
.mini-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 900;
}
.mini-status.received {
  background: #e8f3ff;
  color: #005fd4;
}
.mini-status.verified {
  background: #e8fff5;
  color: #008251;
}
.mini-status.pending {
  background: #fff3d8;
  color: #b87800;
}
.mini-status.legal {
  background: #eef2ff;
  color: #5546d1;
}
.scroll-doc-list {
  max-height: 206px;
}
@media (max-width: 980px) {
  .flow-strip,
  .rule-summary-grid,
  .conditional-doc-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bank-choice-card {
    grid-template-columns: 1fr;
  }
  .document-status-head,
  .document-status-row {
    grid-template-columns: 1fr;
  }
  .document-status-head span:last-child,
  .document-status-row span:last-child {
    justify-self: start;
  }
}
@media (max-width: 760px) {
  .flow-strip,
  .rule-summary-grid,
  .conditional-doc-grid {
    grid-template-columns: 1fr;
  }
  .doc-panel-meta {
    display: block;
  }
  .doc-row-status {
    grid-template-columns: 32px minmax(0, 1fr) !important;
  }
  .mini-status {
    grid-column: 2/3;
    justify-self: start;
    margin-top: 4px;
  }
}

/* v16 sponsor KYC/AML realism */
.identity-flow-banner {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  background: #f8fbff;
  border: 1px solid #d5e4f6;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.identity-flow-banner b {
  display: block;
  color: #06163b;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.identity-flow-banner span {
  color: #4f628b;
  font-weight: 700;
  line-height: 1.45;
}
.identity-block {
  margin-bottom: 16px;
}
.id-guide-strip {
  margin: 14px 18px 0;
  padding: 10px 12px;
  border: 1px solid #dce7f7;
  background: #fbfdff;
  border-radius: 10px;
  color: #50628a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}
.kyc-doc-grid {
  padding-top: 18px;
}
.compliance-photo-row {
  padding-top: 16px;
}
.compliance-photo-row h3 {
  margin: 0 0 8px;
}
.declaration-grid {
  margin-bottom: 12px;
}
.consent-stack {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.kyc-status-banner {
  margin-top: 14px;
  border: 1px solid #d6e2f4;
  background: #f7fbff;
  border-radius: 10px;
  padding: 12px 14px;
  display: grid;
  gap: 4px;
}
.kyc-status-banner b {
  color: #06163b;
}
.kyc-status-banner small {
  color: #607095;
  line-height: 1.4;
}
.small-hint {
  font-size: 11px !important;
  color: #6a7898 !important;
}
@media (max-width: 760px) {
  .identity-flow-banner {
    display: block;
  }
  .identity-flow-banner span {
    display: block;
    margin-top: 6px;
  }
}

/* v17 Shortgap brand guideline alignment */
body {
  background: linear-gradient(180deg, #f6fbff 0%, #eef5fc 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
.brand {
  letter-spacing: -0.045em;
}
.brand-mark {
  font-size: 38px;
  background: linear-gradient(135deg, var(--azure), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}
.brand-word {
  color: var(--navy);
  font-weight: 900;
}
.brand-sub {
  color: var(--azure);
  letter-spacing: 0.62em;
}
.topbar {
  height: 64px;
  background: rgba(248, 251, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--azure), var(--cyan)) 1;
  box-shadow: 0 10px 28px rgba(0, 10, 40, 0.04);
}
.rolebar {
  height: 44px;
  background: var(--navy);
  box-shadow: 0 10px 24px rgba(0, 10, 40, 0.12);
}
.rolebar span:first-child {
  background: linear-gradient(
    135deg,
    rgba(20, 123, 255, 0.28),
    rgba(0, 174, 239, 0.16)
  );
  border-bottom-color: var(--cyan);
  color: #ddf5ff;
}
.locked-note {
  opacity: 0.72;
  color: #a9c7e8;
}
.sidebar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}
.menu a {
  border: 1px solid transparent;
}
.menu a.active {
  background: linear-gradient(135deg, #f2f8ff, #eaf7ff);
  border-color: #a9d7ff;
  box-shadow:
    inset 4px 0 0 var(--azure),
    0 8px 20px rgba(20, 123, 255, 0.08);
  color: var(--navy);
}
.btn.primary,
.hero-cta {
  background: linear-gradient(135deg, var(--azure), var(--cyan));
  box-shadow: 0 12px 28px rgba(20, 123, 255, 0.22);
  border: 0;
  color: #fff;
}
.btn.primary:hover,
.hero-cta:hover {
  filter: saturate(1.08) brightness(0.98);
}
.card,
.accordion,
.section-card,
.table-card,
.stat,
.doc-card,
.summary-box,
.metric,
.info-box,
.flag-card,
.note-box {
  border-color: var(--line);
  box-shadow: 0 14px 34px rgba(0, 10, 40, 0.06);
  border-radius: 14px;
}
.accordion {
  box-shadow:
    0 0 0 4px rgba(20, 123, 255, 0.055),
    0 14px 34px rgba(0, 10, 40, 0.06);
}
.acc-head {
  background: #fff;
}
.kicker {
  color: var(--azure);
}
.step-no,
.avatar,
.big-avatar {
  background: linear-gradient(135deg, var(--azure), var(--cyan));
}
.pill.blue {
  background: #eaf6ff;
  color: #0065d8;
}
.pill.green {
  background: #e8fff5;
  color: #008251;
}
.hero {
  background:
    radial-gradient(
      circle at 88% 20%,
      rgba(0, 174, 239, 0.26) 0,
      rgba(0, 174, 239, 0) 31%
    ),
    linear-gradient(135deg, #ffffff 0%, #f1f8ff 49%, #dff3ff 100%);
  min-height: 720px;
}
.landing-nav {
  padding: 4px 0;
}
.landing-links a {
  color: var(--navy);
  opacity: 0.88;
}
.landing-links a:hover {
  color: var(--azure);
}
.hero h1 {
  color: var(--navy);
}
.hero h1 span {
  color: var(--azure);
}
.hero p {
  color: #24395f;
}
.hero-card {
  border: 1px solid rgba(20, 123, 255, 0.16);
  background: rgba(255, 255, 255, 0.92);
}
.dark-section {
  background: linear-gradient(135deg, var(--navy), #061b46 64%, #082d64);
  color: #fff;
}
.dark-section .btn {
  background: #fff;
  color: var(--navy);
}
.process {
  background: linear-gradient(180deg, #fff 0%, #f7fbff 100%);
}
.circle {
  background: #f0f7ff;
  color: var(--azure);
  border-color: #d5e8fa;
}
.login-page {
  background: linear-gradient(90deg, #f0f9ff 0%, #eaf6ff 62%, #ffffff 62%);
}
.login-panel {
  background: rgba(255, 255, 255, 0.96);
}
.tag {
  border-color: #b7e3ff;
  background: #fff;
  color: var(--azure);
}
.login-switch {
  background: #f3f8ff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px;
}
.login-switch label {
  border-radius: 9px;
}
.login-role-radio#loginSponsor:checked
  ~ .login-switch
  label[for="loginSponsor"],
.login-role-radio#loginOfficer:checked
  ~ .login-switch
  label[for="loginOfficer"] {
  background: linear-gradient(135deg, var(--azure), var(--cyan));
  color: #fff;
}
.profile-pill {
  border-color: #c9e4ff;
  box-shadow: 0 10px 28px rgba(0, 10, 40, 0.08);
}
.profile-dropdown {
  box-shadow: 0 20px 48px rgba(0, 10, 40, 0.16);
}
.risk-scale-track .zone.low {
  background: #13a36f;
}
.risk-scale-track .zone.medium {
  background: #ffc44d;
}
.risk-scale-track .zone.high {
  background: #d83a3a;
}
.risk-scale-track i {
  background: var(--azure);
}
.document-guidance-dynamic,
.flow-item,
.bank-choice-card,
.risk-scale-full,
.verification-list > div,
.rule-summary-grid div {
  background: #fbfdff;
  border-color: #d7e8f8;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(20, 123, 255, 0.18);
  border-color: var(--azure);
  background: #fff;
}
@media (max-width: 760px) {
  .topbar {
    padding: 0 18px;
  }
  .brand-mark {
    font-size: 32px;
  }
  .brand-word {
    font-size: 26px;
  }
  .landing-links {
    display: none;
  }
  .hero h1 {
    font-size: 42px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    padding-top: 50px;
  }
  .main {
    padding: 18px;
  }
  .layout {
    grid-template-columns: 72px 1fr;
  }
}

/* v18 exact login / otp / create account mockup */
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 436px;
  background: linear-gradient(
    90deg,
    #eef7ff 0%,
    #eef7ff 68.2%,
    #ffffff 68.2%,
    #ffffff 100%
  );
}
.login-left {
  display: flex;
  flex-direction: column;
  padding: 56px 62px 56px 62px;
}
.login-left .brand {
  align-self: flex-start;
}
.login-copy {
  margin: auto 0;
  max-width: 620px;
  padding-left: 78px;
}
.login-copy .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #9fd1ff;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 800;
  color: #147bff;
  background: #f6fbff;
}
.login-copy h1 {
  font-size: 58px;
  line-height: 1.06;
  letter-spacing: -0.055em;
  margin: 28px 0 20px;
  color: #000a28;
  max-width: 560px;
}
.login-copy p {
  max-width: 560px;
  font-size: 18px;
  line-height: 1.6;
  color: #1e355a;
}
.login-panel {
  padding: 0 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.auth-shell {
  width: 100%;
  max-width: 344px;
}
.auth-shell .kicker {
  font-size: 12px;
  letter-spacing: 0.16em;
  margin-bottom: 10px;
}
.auth-shell h2 {
  margin: 0 0 18px;
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #06163b;
}
.auth-divider {
  height: 1px;
  background: #dbe5f1;
  margin: 10px 0 18px;
}
.auth-stepper {
  display: grid;
  grid-template-columns: 18px 1fr 18px 1fr 18px;
  align-items: center;
  gap: 0;
  margin: 14px 0 22px;
}
.auth-stepper .dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #ccd8e8;
  background: #fff;
  display: block;
}
.auth-stepper .dot.active {
  background: #2c7eff;
  border-color: #2c7eff;
  box-shadow: 0 0 0 2px rgba(44, 126, 255, 0.08);
}
.auth-stepper .dot.current {
  border-color: #2c7eff;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(44, 126, 255, 0.08);
}
.auth-stepper .bar {
  height: 2px;
  background: #d7e1ee;
  display: block;
}
.auth-stepper .bar.active {
  background: #2c7eff;
}
.login-panel .field {
  margin-bottom: 16px;
}
.login-panel .label {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #667899;
  margin-bottom: 8px;
}
.login-panel .input {
  height: 38px;
  border: 1px solid #c6d6e9;
  border-radius: 10px;
  background: #f8fbff;
  padding: 0 14px;
  color: #06163b;
  font-weight: 600;
}
.login-panel .input::placeholder {
  color: #8b98b2;
}
.inline-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}
.slim-btn {
  height: 38px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #c6d6e9;
  border-radius: 10px;
  background: #fff;
  color: #166bee;
  font-weight: 800;
  white-space: nowrap;
}
.otp-input {
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.login-submit {
  width: 100%;
  height: 38px;
  border-radius: 10px;
  padding: 0 18px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.auth-link-row {
  margin-top: 18px;
  text-align: center;
  color: #166bee;
  font-weight: 800;
}
.auth-link-row a {
  color: #166bee;
  font-weight: 900;
}
.demo-box.auth-demo {
  margin-top: 28px;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  line-height: 1.45;
}
.demo-box.auth-demo.danger {
  border: 1px solid #f0a6a6;
  background: #fff9f9;
  color: #d92525;
}
.otp-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 8px;
  color: #53678e;
  font-size: 13px;
  font-weight: 700;
}
.otp-note {
  margin: 0 0 14px;
  color: #166bee;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}
.auth-grid {
  grid-template-columns: 1fr 1fr;
  gap: 14px 10px;
}
.auth-grid .full {
  grid-column: 1/-1;
}
@media (max-width: 1024px) {
  .login-page {
    grid-template-columns: 1fr 410px;
  }
  .login-copy {
    padding-left: 34px;
  }
  .login-copy h1 {
    font-size: 52px;
  }
}
@media (max-width: 820px) {
  .login-page {
    grid-template-columns: 1fr;
    background: #fff;
    flex-direction: column;
    display: flex;
  }
  .login-left {
    display: flex;
    padding: 40px 24px;
    background: linear-gradient(135deg, #b7e2ff 0, #edf7ff 34%, #fff 62%);
    flex: 0 0 auto;
  }
  .login-panel {
    flex: 1;
    padding: 24px;
    min-height: auto;
  }
  .auth-shell {
    max-width: 100%;
  }
}

/* v19 pixel-polish for login / OTP / create account screenshots */
body:has(.login-page) {
  overflow: auto;
  background: #fff;
  height: auto !important;
  min-height: 100vh !important;
}
.login-page {
  min-height: 100vh !important;
  height: 100vh !important;
  display: grid !important;
  grid-template-columns: 68.1% 31.9% !important;
  background: linear-gradient(
    90deg,
    #eef8ff 0%,
    #e8f4ff 68.1%,
    #ffffff 68.1%,
    #ffffff 100%
  ) !important;
}
.login-left {
  padding: 66px 0 0 62px !important;
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
}
.login-left .brand {
  transform: scale(1.03);
  transform-origin: left top;
}
.login-left .brand-mark {
  font-size: 46px !important;
  line-height: 0.9 !important;
}
.login-left .brand-word {
  font-size: 34px !important;
  letter-spacing: -0.05em !important;
}
.login-left .brand-sub {
  font-size: 9px !important;
  letter-spacing: 0.68em !important;
  margin-left: 80px !important;
  margin-top: -4px !important;
}

.login-copy {
  margin: 0 !important;
  padding-left: 78px !important;
  padding-top: 119px !important;
  max-width: 620px !important;
}
.login-copy .tag {
  height: 28px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  line-height: 28px !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}
.login-copy h1 {
  font-size: 40px !important;
  line-height: 1.12 !important;
  letter-spacing: -0.055em !important;
  max-width: 560px !important;
  margin: 26px 0 15px !important;
  font-weight: 900 !important;
}
.login-copy p {
  max-width: 560px !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
  font-weight: 700 !important;
  color: #00163e !important;
}
.login-panel {
  padding: 0 47px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
}
.auth-shell {
  width: 100% !important;
  max-width: 343px !important;
  transform: translateY(-1px);
}
.auth-shell .kicker {
  font-size: 10px !important;
  letter-spacing: 0.16em !important;
  margin: 0 0 13px !important;
  color: #006eff !important;
  font-weight: 900 !important;
}
.auth-shell h2 {
  font-size: 21px !important;
  margin: 0 0 18px !important;
  line-height: 1.2 !important;
  font-weight: 900 !important;
}
.auth-divider {
  margin: 12px 0 18px !important;
  background: #d9e1ec !important;
}
.auth-stepper {
  margin: 0 0 21px !important;
  grid-template-columns: 18px 1fr 18px 1fr 18px !important;
}
.auth-stepper .dot {
  width: 16px !important;
  height: 16px !important;
  border: 1px solid #c3d2e5 !important;
}
.auth-stepper .dot.active {
  border: 2px solid #fff !important;
  background: #147bff !important;
  box-shadow: 0 0 0 1px #147bff !important;
}
.auth-stepper .dot.current {
  border: 2px solid #147bff !important;
  background: #fff !important;
  box-shadow: 0 0 0 1px rgba(20, 123, 255, 0.08) !important;
}
.auth-stepper .bar {
  height: 2px !important;
  background: #d4dfec !important;
}
.auth-stepper .bar.active {
  background: #147bff !important;
}
.login-panel .field {
  margin-bottom: 18px !important;
}
.login-panel .label {
  font-size: 10px !important;
  letter-spacing: 0.14em !important;
  color: #62759a !important;
  margin-bottom: 7px !important;
  font-weight: 800 !important;
}
.login-panel .input {
  height: 38px !important;
  border-radius: 8px !important;
  border: 1px solid #c8d8ea !important;
  background: #f8fbff !important;
  padding: 0 13px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #06163b !important;
}
.login-panel .input:focus {
  outline: 2px solid rgba(20, 123, 255, 0.22) !important;
  border-color: #147bff !important;
  background: #fff !important;
}
.inline-field {
  grid-template-columns: minmax(0, 1fr) 62px !important;
  gap: 8px !important;
}
.slim-btn {
  height: 38px !important;
  border-radius: 8px !important;
  padding: 0 13px !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}
.login-submit {
  height: 38px !important;
  border-radius: 7px !important;
  margin-top: 18px !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  box-shadow: 0 10px 24px rgba(20, 123, 255, 0.18) !important;
}
.auth-link-row {
  margin-top: 22px !important;
  font-size: 12px !important;
}
.demo-box.auth-demo {
  margin-top: 34px !important;
  min-height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 10px 15px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
}
.otp-field {
  margin-top: 31px !important;
  margin-bottom: 10px !important;
}
.otp-input {
  text-align: center !important;
  font-weight: 800 !important;
  color: #7b8498 !important;
}
.otp-meta {
  margin: 18px 0 10px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #3b4e75 !important;
}
.otp-note {
  font-size: 11px !important;
  font-weight: 900 !important;
  color: #006eff !important;
  margin: 0 0 22px !important;
}
.auth-grid {
  grid-template-columns: 1fr 1fr !important;
  gap: 21px 10px !important;
  margin-top: 28px !important;
}
.auth-grid .field {
  margin-bottom: 0 !important;
}
#createAccountBtn.login-submit {
  margin-top: 36px !important;
}
body:has(#createAccountBtn) .auth-shell {
  transform: translateY(-5px);
}
body:has(#createAccountBtn) .auth-shell h2 {
  margin-bottom: 8px !important;
}
body:has(#createAccountBtn) .auth-divider {
  margin: 11px 0 18px !important;
}
body:has(#createAccountBtn) .login-submit {
  height: 38px !important;
}
@media (max-width: 1100px) {
  .login-page {
    grid-template-columns: 64% 36% !important;
  }
  .login-copy {
    padding-left: 48px !important;
  }
  .login-copy h1 {
    font-size: 36px !important;
  }
  .login-panel {
    padding: 0 34px !important;
  }
}
@media (max-width: 820px) {
  body:has(.login-page) {
    overflow: auto;
  }
  .login-page {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: 100vh !important;
    background: #fff !important;
    grid-template-columns: 1fr !important;
  }
  .login-left {
    display: flex !important;
    padding: 40px 24px !important;
    background: linear-gradient(
      135deg,
      #b7e2ff 0,
      #edf7ff 34%,
      #fff 62%
    ) !important;
    flex: 0 0 auto !important;
  }
  .login-panel {
    flex: 1 !important;
    padding: 24px !important;
    min-height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .auth-shell {
    max-width: 100% !important;
    transform: none !important;
  }
  .auth-grid {
    grid-template-columns: 1fr !important;
  }
}

/* v22 landing page — detailed PDF mockup recreation */
body.landing-body {
  margin: 0;
  background: #eceff4;
  color: #000a28;
  overflow-x: hidden;
}
.landing-pdf-page {
  width: 100%;
  min-height: 100vh;
  background: #fff;
  font-family: var(--font);
}
.pdf-nav {
  height: 72px;
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 42px;
  background: #fff;
  gap: 28px;
}
.pdf-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  line-height: 1;
  flex: 0 0 auto;
}
.pdf-logo-mark {
  display: inline-flex;
  align-items: center;
  font-weight: 900;
  font-size: 34px;
  letter-spacing: -0.2em;
  padding-right: 0.18em;
  line-height: 0.85;
  background: linear-gradient(135deg, #147bff 8%, #00aeef 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pdf-logo-text b {
  display: block;
  font-size: 24px;
  letter-spacing: -0.055em;
  color: #000a28;
  font-weight: 900;
}
.pdf-logo-text small {
  display: block;
  margin-left: 3px;
  margin-top: 0;
  font-size: 7px;
  letter-spacing: 0.52em;
  color: #147bff;
  font-weight: 900;
}
.pdf-nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 32px;
  color: #000a28;
  font-size: 11px;
  font-weight: 900;
}
.pdf-nav-links a {
  color: inherit;
  opacity: 0.92;
}
.pdf-nav-links a:hover {
  color: #147bff;
}
.pdf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  border: 0;
}
.pdf-btn.nav-btn {
  height: 40px;
  padding: 0 20px;
  color: #fff;
  background: linear-gradient(135deg, #147bff, #075cf0);
  box-shadow: 0 10px 26px rgba(20, 123, 255, 0.22);
  font-size: 11px;
}
.pdf-hero {
  position: relative;
  overflow: hidden;
  min-height: 498px;
  background:
    radial-gradient(
      circle at 73% 17%,
      rgba(255, 255, 255, 0.16) 0,
      rgba(255, 255, 255, 0) 25%
    ),
    radial-gradient(
      circle at 85% 84%,
      rgba(255, 255, 255, 0.1) 0,
      rgba(255, 255, 255, 0) 32%
    ),
    linear-gradient(135deg, #147bff 0%, #0867ff 48%, #0d8eff 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  align-items: center;
  padding: 54px max(42px, calc((100vw - 1160px) / 2 + 42px)) 118px;
}
.pdf-hero-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background:
    linear-gradient(
      120deg,
      transparent 72%,
      rgba(255, 255, 255, 0.2) 72.2%,
      transparent 72.5%
    ),
    radial-gradient(
      circle at 100% 100%,
      transparent 0 48%,
      rgba(255, 255, 255, 0.2) 48.2% 48.7%,
      transparent 49%
    );
}
.pdf-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 610px;
}
.pdf-hero-copy h1 {
  margin: 0 0 20px;
  color: #fff;
  font-size: 62px;
  line-height: 1.04;
  letter-spacing: -0.068em;
  font-weight: 900;
}
.pdf-hero-copy p {
  margin: 0;
  max-width: 440px;
  color: #e7f4ff;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 600;
}
.pdf-hero-copy p b {
  color: #fff;
}
.pdf-btn.cyan-btn {
  height: 48px;
  margin-top: 28px;
  padding: 0 24px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #20d0f3, #00aeef);
  box-shadow: 0 13px 28px rgba(0, 10, 40, 0.16);
  font-size: 13px;
}
.pdf-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 550px;
  margin-top: 34px;
}
.benefit-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 9px;
  align-items: start;
  color: #e3f2ff;
}
.benefit-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  font-size: 14px;
}
.benefit-item b {
  display: block;
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
  margin: 1px 0 3px;
}
.benefit-item small {
  display: block;
  color: #dceeff;
  font-size: 10px;
  line-height: 1.35;
  font-weight: 700;
}
.pdf-line-art {
  position: relative;
  z-index: 2;
  min-height: 338px;
}
.landing-illustration {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 12px 34px rgba(0, 10, 40, 0.1));
}
.pdf-experience-card {
  position: relative;
  z-index: 4;
  max-width: 1002px;
  min-height: 132px;
  margin: -64px auto 0;
  padding: 24px 40px;
  border-radius: 16px;
  background: linear-gradient(135deg, #000a28 0%, #06183c 100%);
  color: #fff;
  display: grid;
  grid-template-columns: 118px 1fr 1px 1.28fr;
  align-items: center;
  gap: 34px;
  box-shadow: 0 28px 52px rgba(0, 10, 40, 0.26);
}
.experience-badge {
  width: 100px;
  height: 100px;
  border: 2px solid #00aeef;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #00aeef;
  text-align: center;
}
.experience-badge strong {
  display: block;
  font-size: 36px;
  line-height: 0.9;
  font-weight: 900;
}
.experience-badge span {
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: 0.14em;
  font-weight: 900;
  color: #8ddfff;
}
.experience-text h2 {
  margin: 0;
  color: #fff;
  font-size: 29px;
  line-height: 1.07;
  letter-spacing: -0.052em;
  font-weight: 900;
}
.experience-text p {
  margin: 12px 0 0;
  color: #d9e8ff;
  font-size: 14px;
  line-height: 1.45;
}
.experience-text.wide h2 {
  font-size: 28px;
}
.experience-text.wide b {
  color: #00aeef;
}
.experience-divider {
  height: 92px;
  background: rgba(0, 174, 239, 0.48);
}
.pdf-how {
  max-width: 1050px;
  margin: 0 auto;
  text-align: center;
  padding: 74px 42px 42px;
}
.pdf-kicker {
  margin: 0;
  color: #147bff;
  font-size: 11px;
  letter-spacing: 0.2em;
  font-weight: 900;
  text-transform: uppercase;
}
.pdf-how h2,
.pdf-solutions h2 {
  margin: 10px 0 0;
  font-size: 34px;
  line-height: 1.12;
  color: #000a28;
  letter-spacing: -0.055em;
  font-weight: 900;
}
.pdf-steps {
  margin-top: 42px;
  display: grid;
  grid-template-columns: 1fr 36px 1fr 36px 1fr 36px 1fr;
  align-items: start;
}
.pdf-steps article {
  text-align: center;
}
.pdf-step-circle {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  border: 1px solid #d5e6fb;
  background: #f0f7ff;
  color: #147bff;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
}
.pdf-step-circle svg {
  width: 38px;
  height: 38px;
}
.pdf-steps article > span {
  display: block;
  color: #147bff;
  font-size: 18px;
  font-weight: 900;
}
.pdf-steps h3 {
  margin: 8px 0 6px;
  color: #000a28;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 900;
}
.pdf-steps p {
  margin: 0 auto;
  max-width: 140px;
  color: #53698e;
  font-size: 12.5px;
  line-height: 1.45;
  font-weight: 600;
}
.pdf-steps > i {
  color: #00aeef;
  font-style: normal;
  font-size: 34px;
  line-height: 86px;
  font-weight: 300;
}
.pdf-solutions {
  max-width: 1050px;
  margin: 0 auto;
  padding: 12px 42px 42px;
  text-align: center;
}
.pdf-solution-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 24px;
}
.pdf-solution-grid div {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #dce8f7;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(0, 10, 40, 0.035);
  color: #147bff;
}
.pdf-solution-grid span {
  font-size: 18px;
  line-height: 1;
}
.pdf-solution-grid b {
  color: #000a28;
  font-size: 12.5px;
  line-height: 1;
}
.pdf-cta {
  max-width: 1002px;
  min-height: 132px;
  margin: 0 auto 34px;
  padding: 29px 42px;
  border-radius: 16px;
  background:
    radial-gradient(
      circle at 92% 22%,
      rgba(255, 255, 255, 0.14) 0,
      rgba(255, 255, 255, 0) 34%
    ),
    linear-gradient(135deg, #00aeef 0%, #075cf0 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  overflow: hidden;
  position: relative;
}
.pdf-cta:after {
  content: "";
  position: absolute;
  width: 315px;
  height: 315px;
  border-radius: 50%;
  right: -104px;
  top: -136px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 18px rgba(255, 255, 255, 0.025);
}
.pdf-cta h2 {
  margin: 0 0 8px;
  font-size: 31px;
  line-height: 1.08;
  letter-spacing: -0.055em;
  color: #fff;
  font-weight: 900;
}
.pdf-cta p {
  margin: 0;
  color: #e2f3ff;
  font-size: 13.5px;
  line-height: 1.45;
  font-weight: 600;
}
.pdf-btn.white-btn {
  height: 48px;
  padding: 0 26px;
  border-radius: 8px;
  background: #fff;
  color: #147bff;
  font-size: 13px;
  z-index: 2;
  position: relative;
}
.pdf-footer {
  background: #000a28;
  color: #c8dcf5;
  display: grid;
  grid-template-columns: 2.05fr 1fr 1fr 1fr;
  gap: 34px;
  padding: 33px max(42px, calc((100vw - 1160px) / 2 + 42px)) 26px;
  position: relative;
}
.footer-logo {
  transform: scale(0.78);
  transform-origin: left top;
  margin-bottom: 6px;
}
.footer-logo .pdf-logo-text b,
.footer-logo .pdf-logo-text small {
  color: #fff;
}
.footer-intro p {
  max-width: 292px;
  margin: 8px 0 0;
  color: #c8dcf5;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 600;
}
.footer-links h4 {
  margin: 0 0 12px;
  color: #00aeef;
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 900;
}
.footer-links a {
  display: block;
  margin-bottom: 8px;
  color: #c8dcf5;
  font-size: 11.5px;
  font-weight: 600;
}
.social-row {
  display: flex;
  gap: 8px;
}
.social-row span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #147bff;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}
.blackowl,
.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
  margin-top: 6px;
  color: #8eaad1;
  font-size: 11px;
  font-weight: 600;
}
.blackowl {
  grid-column: 1/3;
}
.copyright {
  grid-column: 3/5;
  text-align: right;
}
@media (max-width: 900px) {
  .pdf-nav {
    padding: 0 22px;
  }
  .pdf-nav-links {
    display: none;
  }
  .pdf-hero {
    grid-template-columns: 1fr;
    padding: 40px 24px 102px;
  }
  .pdf-hero-copy h1 {
    font-size: 45px;
  }
  .pdf-hero-copy p {
    font-size: 15px;
  }
  .pdf-line-art {
    display: none;
  }
  .pdf-benefits {
    grid-template-columns: 1fr;
    max-width: 340px;
  }
  .pdf-experience-card {
    margin: -48px 20px 0;
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .experience-divider {
    display: none;
  }
  .pdf-steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .pdf-steps > i {
    display: none;
  }
  .pdf-solution-grid {
    grid-template-columns: 1fr 1fr;
  }
  .pdf-cta {
    margin: 0 20px 26px;
    display: block;
  }
  .pdf-cta .white-btn {
    margin-top: 18px;
  }
  .pdf-footer {
    grid-template-columns: 1fr 1fr;
    padding: 30px 24px;
  }
  .blackowl,
  .copyright {
    grid-column: 1/-1;
    text-align: left;
  }
}
@media (max-width: 560px) {
  .pdf-nav {
    height: 66px;
  }
  .pdf-logo {
    transform: scale(0.84);
    transform-origin: left center;
  }
  .pdf-btn.nav-btn {
    height: 36px;
    padding: 0 12px;
    font-size: 10px;
  }
  .pdf-hero-copy h1 {
    font-size: 37px;
  }
  .pdf-solution-grid {
    grid-template-columns: 1fr;
  }
  .pdf-footer {
    grid-template-columns: 1fr;
  }
}

/* v23 full-app polish: official logo, aligned theme, responsive fixes */
.sg-logo-img {
  display: block;
  width: clamp(154px, 15vw, 210px);
  height: auto;
  object-fit: contain;
}
.topbar .sg-logo-img {
  width: 176px;
}
.sidebar {
  box-shadow: 8px 0 28px rgba(0, 10, 40, 0.035);
}
body:not(.landing-body) .topbar {
  background: #f3faff;
  border-bottom: 3px solid #147bff;
}
body:not(.landing-body) .rolebar {
  background: #000a28;
}
body:not(.landing-body) .rolebar span:first-child,
body:not(.landing-body) .rolebar span {
  background: #071a44;
  border-bottom-color: #00aeef;
}
body:not(.landing-body) .main {
  background: linear-gradient(180deg, #f6fbff 0%, #eef4fb 100%);
}
.menu a.active {
  box-shadow:
    inset 4px 0 0 #147bff,
    0 8px 22px rgba(20, 123, 255, 0.08) !important;
}
.btn.primary,
.login-submit,
.pdf-btn.nav-btn {
  background: linear-gradient(135deg, #147bff, #075cf0) !important;
}

/* Login/sign-up/OTP theme now matches the navy + blue brand direction */
body:has(.login-page) {
  background: #fff;
}
.login-page {
  background: linear-gradient(
    90deg,
    #000a28 0%,
    #071a44 68.1%,
    #ffffff 68.1%,
    #ffffff 100%
  ) !important;
}
.login-left {
  color: #fff;
  position: relative;
  overflow: hidden;
}
.login-left:before {
  content: "";
  position: absolute;
  inset: -20% 10% -40% -20%;
  background:
    radial-gradient(circle at 18% 32%, rgba(0, 174, 239, 0.2), transparent 30%),
    radial-gradient(
      circle at 62% 70%,
      rgba(255, 67, 174, 0.12),
      transparent 28%
    );
  pointer-events: none;
}
.login-left .brand,
.login-copy {
  position: relative;
  z-index: 1;
}
.login-left .brand {
  background: rgba(255, 255, 255, 0.96);
  padding: 10px 14px;
  border-radius: 14px;
  width: max-content;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.16);
}
.login-copy h1 {
  color: #fff !important;
}
.login-copy p {
  color: #dcebff !important;
}
.login-copy .tag {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #e7f8ff !important;
  border-color: rgba(0, 174, 239, 0.55) !important;
}
.demo-box.auth-demo.danger {
  background: #fff8f8 !important;
  color: #d92525 !important;
}

/* Landing exact logo sizing and footer logo */
.pdf-logo .sg-logo-img {
  width: 190px;
}
.footer-logo .sg-logo-img {
  width: 170px;
  filter: brightness(0) invert(1);
}
.landing-header .sg-logo-img,
.pdf-nav .sg-logo-img {
  width: 178px;
}

/* Landing mobile: steps appear in pairs of 2 */
@media (max-width: 900px) {
  .pdf-steps {
    grid-template-columns: 1fr 1fr !important;
    gap: 22px 16px !important;
  }
  .pdf-steps > i {
    display: none !important;
  }
  .pdf-step-circle {
    width: 74px !important;
    height: 74px !important;
  }
}
@media (max-width: 560px) {
  .pdf-steps {
    grid-template-columns: 1fr 1fr !important;
  }
  .pdf-steps h3 {
    font-size: 14px !important;
  }
  .pdf-steps p {
    font-size: 11px !important;
  }
}

/* Officer dashboard: fixed view button, scrollable applications list and aligned widgets */
.table-card {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.app-table {
  min-width: 1080px;
}
.app-table th,
.app-table td {
  vertical-align: middle;
  white-space: normal;
}
.app-table td:last-child,
.app-table th:last-child {
  position: sticky;
  right: 0;
  background: #fff;
  z-index: 2;
}
.app-table th:last-child {
  background: #f7f9fd;
}
.app-table .btn {
  min-width: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  position: relative;
  z-index: 5;
}
.queue-risk-scale {
  width: 118px;
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 2px 8px;
}
.queue-risk-scale b {
  font-size: 13px;
  line-height: 1;
  color: #000a28;
}
.queue-risk-scale em {
  font-style: normal;
  justify-self: end;
  font-size: 10px;
  font-weight: 900;
  color: #46608a;
}
.queue-risk-scale i {
  grid-column: 1/-1;
  height: 7px;
  border-radius: 999px;
  background: #e8eff8;
  overflow: hidden;
  display: block;
}
.queue-risk-scale u {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #13a36f 0%, #f4b642 60%, #d83a3a 100%);
  text-decoration: none;
}
.mini-class {
  display: inline-block;
  max-width: 190px;
  line-height: 1.35;
  font-size: 11px;
  color: #41577e;
  background: #f4f8ff;
  border: 1px solid #dce8f7;
  border-radius: 999px;
  padding: 6px 9px;
}

/* Review page: smaller risk score scale and better spacing */
.review-layout.deep-review {
  grid-template-columns: minmax(0, 1fr) 318px !important;
  gap: 18px !important;
}
.risk-card {
  grid-template-columns: 140px minmax(0, 1fr) !important;
  padding: 18px !important;
  gap: 18px !important;
}
.risk-score-scale {
  width: 126px !important;
  min-width: 126px !important;
  padding: 12px !important;
  border-radius: 14px !important;
}
.risk-score-scale .score-number {
  font-size: 38px !important;
  line-height: 1 !important;
}
.risk-score-scale .score-caption {
  font-size: 10px !important;
  letter-spacing: 0.12em !important;
}
.score-range {
  margin: 10px 0 6px !important;
}
.score-labels,
.score-zone-labels {
  font-size: 9px !important;
}
.risk-title-row h2 {
  font-size: 24px !important;
  line-height: 1.1 !important;
}
.risk-scale-full {
  padding: 10px 12px !important;
  margin: 12px 0 !important;
}
.risk-scale-head {
  font-size: 12px !important;
}
.risk-scale-track {
  height: 9px !important;
  margin: 8px 0 6px !important;
}
.risk-scale-track i {
  width: 14px !important;
  height: 14px !important;
  top: -3px !important;
}
.risk-scale-track i em {
  top: -23px !important;
  font-size: 10px !important;
  padding: 2px 5px !important;
}
.risk-scale-ticks span {
  font-size: 9px !important;
}

/* Terms preview and overview */
.term-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.term-sheet-grid .wide {
  grid-column: 1/-1;
}
.term-note {
  margin: 16px 0;
  padding: 14px 16px;
  background: #f7fbff;
  border: 1px solid #dce8f7;
  border-radius: 10px;
  color: #40567e;
  line-height: 1.55;
}
.terms-preview-page {
  min-height: calc(100vh - 100px);
  padding: 22px;
  background: #eef4fb;
}
.terms-preview-shell {
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #d9e7f7;
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(0, 10, 40, 0.08);
  overflow: hidden;
}
.preview-head {
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  border-bottom: 1px solid #e8f1fa;
}
.preview-head h2 {
  margin: 4px 0;
}
.preview-head p {
  margin: 0;
  color: #607095;
}
.terms-pdf-viewer {
  display: block;
  width: 100%;
  height: calc(100vh - 205px);
  min-height: 620px;
  border: 0;
}
.term-mini-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 16px 16px;
}
.term-side-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 16px 16px;
}
.term-side-body div {
  background: #f7faff;
  border: 1px solid #e3edf8;
  border-radius: 10px;
  padding: 10px;
}
.term-side-body span {
  display: block;
  font-size: 10px;
  color: #7e8dac;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 900;
  margin-bottom: 5px;
}
.term-side-body b {
  color: #000a28;
}
.term-side-body .btn {
  grid-column: 1/-1;
}

/* Mobile app layout fixes */
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr !important;
  }
  .sidebar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar .hamb {
    display: none;
  }
  .menu {
    display: flex !important;
    gap: 10px !important;
    min-width: max-content;
  }
  .menu a {
    white-space: nowrap;
  }
  .main {
    padding: 16px !important;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .review-layout.deep-review {
    grid-template-columns: 1fr !important;
  }
  .right-stack {
    position: static !important;
  }
  .risk-card {
    grid-template-columns: 1fr !important;
  }
  .risk-score-scale {
    width: 100% !important;
  }
  .metric-grid,
  .summary-grid,
  .two-cols,
  .offer-grid,
  .term-sheet-grid {
    grid-template-columns: 1fr !important;
  }
  .preview-head {
    display: block;
  }
  .term-actions {
    justify-content: flex-start;
    margin-top: 12px;
  }
}
@media (max-width: 560px) {
  .topbar {
    padding: 0 14px !important;
  }
  .topbar .sg-logo-img {
    width: 142px;
  }
  .rolebar {
    font-size: 10px !important;
  }
  .rolebar span {
    padding: 12px 14px !important;
  }
  .page-head {
    display: block !important;
  }
  .page-head h1 {
    font-size: 24px !important;
  }
  .stats {
    grid-template-columns: 1fr 1fr !important;
  }
  .stat {
    height: auto !important;
    min-height: 104px;
    padding: 16px !important;
  }
  .app-table {
    min-width: 940px;
  }
  .terms-pdf-viewer {
    min-height: 520px;
  }
}

/* v24 icon system + sizing polish */
.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-block;
  vertical-align: middle;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.inline-icon {
  width: 14px;
  height: 14px;
  margin-right: 4px;
  vertical-align: -2px;
}
.nav-icon {
  width: 18px;
  height: 18px;
  color: inherit;
}
.nav-toggle-icon {
  width: 18px;
  height: 18px;
}
.badge-icon {
  width: 14px;
  height: 14px;
  color: inherit;
}
.btn,
.signout-btn,
.upload-box,
.menu a,
.pdf-btn,
.profile-pill,
.doc-row .pdf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn {
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 800;
  line-height: 1.15;
}
.btn.small {
  min-height: 34px;
  padding: 8px 12px;
  font-size: 12px;
}
.btn.slim-btn {
  min-height: 36px;
  padding: 8px 12px;
}
.btn .icon {
  width: 16px;
  height: 16px;
}
.btn.small .icon {
  width: 14px;
  height: 14px;
}
.btn.icon-only {
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  gap: 0;
  border-radius: 9px;
}
.btn.icon-only .icon {
  width: 16px;
  height: 16px;
}
.signout-btn {
  justify-content: center;
}
.menu a {
  min-height: 44px;
  padding: 11px 14px;
}
.menu a .txt {
  flex: 1;
}
.upload-box {
  min-height: 56px;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-weight: 900;
  color: #147bff;
  border-style: dashed;
}
.upload-box .icon {
  width: 20px;
  height: 20px;
}
.hamb {
  display: grid;
  place-items: center;
}
.hamb .icon {
  width: 20px;
  height: 20px;
}
.doc-row .pdf {
  min-width: 64px;
  justify-content: center;
  gap: 6px;
}
.doc-row .btn.small {
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.doc-row .btn.small.icon-only {
  margin-left: auto;
}
.topbar,
.rolebar,
.main,
.sidebar,
.card,
.stat,
.btn,
.upload-box,
.menu a,
.profile-pill {
  box-sizing: border-box;
}
.stat {
  padding: 18px;
}
.card {
  border-radius: 16px;
}
.field input,
.field select,
.field textarea,
.input,
select,
textarea {
  min-height: 44px;
  font-size: 14px;
}
textarea {
  min-height: 104px;
}
.field label,
.label {
  margin-bottom: 8px;
  display: block;
}
.matrix-head span,
.dark-head span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.term-actions .btn,
.term-mini-actions .btn {
  white-space: nowrap;
}
.signed-row a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.profile-dropdown a,
.profile-dropdown button {
  min-height: 40px;
}
.term-side-card .term-side-body .btn {
  margin-top: 4px;
}
.scroll-doc-list {
  padding-right: 4px;
}
.scroll-doc-list::-webkit-scrollbar,
.sidebar::-webkit-scrollbar,
.table-card::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.scroll-doc-list::-webkit-scrollbar-thumb,
.sidebar::-webkit-scrollbar-thumb,
.table-card::-webkit-scrollbar-thumb {
  background: #c7d7ec;
  border-radius: 999px;
}
.app-table .btn {
  white-space: nowrap;
}
.doc-row {
  grid-template-columns: 72px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
}
@media (max-width: 900px) {
  .menu a {
    min-height: 40px;
    padding: 10px 12px;
  }
  .doc-row {
    grid-template-columns: 64px minmax(0, 1fr) auto auto;
  }
  .btn {
    min-height: 38px;
    padding: 9px 12px;
  }
}
@media (max-width: 640px) {
  .btn {
    font-size: 13px;
  }
  .btn .icon {
    width: 15px;
    height: 15px;
  }
  .card {
    border-radius: 14px;
  }
  .upload-box {
    min-height: 52px;
    font-size: 12px;
    letter-spacing: 0.09em;
  }
  .doc-row {
    grid-template-columns: 58px 1fr auto;
    grid-template-areas: "type meta action" "type status action";
    align-items: center;
  }
  .doc-row .pdf {
    grid-area: type;
  }
  .doc-row > div {
    grid-area: meta;
  }
  .doc-row .mini-status {
    grid-area: status;
    justify-self: start;
    margin-left: 0;
  }
  .doc-row .btn.small {
    grid-area: action;
    justify-self: end;
  }
}

.stat .avatar.icon-chip {
  display: grid;
  place-items: center;
}
.stat-icon {
  width: 18px;
  height: 18px;
}
.social-chip {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}
.social-icon {
  width: 15px;
  height: 15px;
  color: #fff;
}
.social-row {
  display: flex;
  gap: 8px;
}

/* v25 accordion, table, list and status-chip icon pass */
.accordion .acc-head > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.accordion-icon {
  width: 18px;
  height: 18px;
  color: #147bff;
  background: #eaf6ff;
  border: 1px solid #cde7ff;
  border-radius: 8px;
  padding: 3px;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
}
.chev {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #f5f9ff;
  border: 1px solid #dce8f7;
  color: #147bff;
}
.chevron-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.18s ease;
}
details[open] .chevron-icon {
  transform: rotate(90deg);
}
.status-icon {
  width: 13px;
  height: 13px;
  margin-right: 5px;
  flex: 0 0 13px;
  vertical-align: -2px;
}
.pill,
.chip,
.mini-status,
.review-status,
.doc-state,
.req,
.badge {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 4px;
  line-height: 1.1;
}
.th-icon {
  width: 14px;
  height: 14px;
  margin-right: 6px;
  color: #147bff;
  vertical-align: -2px;
}
.app-table th {
  white-space: nowrap;
}
.row-id-icon {
  width: 14px;
  height: 14px;
  color: #147bff;
  margin-right: 5px;
  vertical-align: -2px;
}
.filter-icon {
  width: 14px;
  height: 14px;
}
.doc-title-icon {
  width: 15px;
  height: 15px;
  color: #147bff;
  margin-right: 5px;
  vertical-align: -2px;
}
.doc-type-icon {
  width: 14px;
  height: 14px;
}
.doc-row .pdf {
  border-radius: 10px;
  background: #f0f7ff;
  color: #147bff;
  border: 1px solid #d9eafe;
  font-weight: 900;
}
.doc-row b {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.step-no {
  flex: 0 0 auto;
}
.check-square {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}
.check-grid .check-item {
  align-items: center;
}
.table-card .queue-head {
  gap: 16px;
}
.search-row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.search-row:before {
  /* content:"";
  width:18px;
  height:18px;
  flex:0 0 18px;
  background:#147BFF;
  -webkit-mask:url("assets/icons.svg#search"); */
}
@media (max-width: 760px) {
  .accordion-icon {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }
  .acc-head {
    gap: 10px;
  }
  .status-icon {
    width: 12px;
    height: 12px;
  }
}

/* v26 compact officer UI + logo patch + remove extra role text */
.locked-note {
  display: none !important;
}
.topbar {
  height: 54px !important;
  padding: 0 32px !important;
}
.topbar .sg-logo-img {
  width: 158px !important;
}
.profile-pill {
  padding: 7px 13px !important;
  font-size: 12px !important;
}
.avatar {
  width: 28px !important;
  height: 28px !important;
}
.rolebar {
  height: 36px !important;
}
.rolebar span {
  padding: 11px 32px !important;
}
.layout {
  min-height: calc(100vh - 90px) !important;
}
.main {
  padding: 18px 22px !important;
}
.page-head h1 {
  font-size: 25px !important;
}
.page-head p {
  font-size: 13px !important;
  margin-top: 5px !important;
}
.stats {
  gap: 14px !important;
  margin: 18px 0 !important;
}
.stat {
  min-height: 92px !important;
  padding: 14px !important;
}
.stat .avatar {
  width: 28px !important;
  height: 28px !important;
}
.stat h4 {
  margin: 10px 0 6px !important;
  font-size: 11px !important;
}
.stat strong {
  font-size: 22px !important;
}
.filters {
  gap: 10px !important;
  margin-bottom: 18px !important;
}
.filters .btn {
  min-height: 34px !important;
  padding: 7px 12px !important;
  font-size: 12px !important;
}
.table-card {
  padding: 18px !important;
}
.queue-head {
  margin-bottom: 14px !important;
}
.queue-head h2 {
  font-size: 18px !important;
}
.search-row input,
.search-row select {
  min-height: 38px !important;
  height: 38px !important;
  font-size: 12px !important;
}
.app-table {
  min-width: 940px !important;
  font-size: 12px !important;
}
.app-table th {
  font-size: 11px !important;
  padding: 12px 12px !important;
  letter-spacing: 0.12em !important;
}
.app-table td {
  padding: 12px 12px !important;
}
.app-table td b {
  font-size: 12px !important;
}
.app-table td small {
  font-size: 10.5px !important;
}
.app-table .pill {
  font-size: 11px !important;
  padding: 7px 9px !important;
  max-width: 170px;
  line-height: 1.15;
}
.mini-class {
  max-width: 190px !important;
  padding: 6px 9px !important;
  font-size: 10.5px !important;
}
.queue-risk-scale {
  width: 112px !important;
  gap: 2px 6px !important;
}
.queue-risk-scale b {
  font-size: 12px !important;
}
.queue-risk-scale em {
  font-size: 9px !important;
}
.queue-risk-scale i {
  height: 6px !important;
}
.app-table .btn {
  min-width: 90px !important;
  min-height: 34px !important;
  padding: 7px 10px !important;
  font-size: 12px !important;
}
.app-table td:last-child,
.app-table th:last-child {
  min-width: 112px !important;
}
.sg-logo-img {
  background: transparent !important;
}
.login-left .brand {
  background: rgba(255, 255, 255, 0.92) !important;
}
.pdf-logo .sg-logo-img,
.footer-logo .sg-logo-img {
  background: transparent !important;
}
@media (max-width: 900px) {
  .main {
    padding: 14px !important;
  }
  .app-table {
    min-width: 860px !important;
  }
  .table-card {
    padding: 14px !important;
  }
}
@media (max-width: 560px) {
  .topbar {
    padding: 0 14px !important;
  }
  .topbar .sg-logo-img {
    width: 132px !important;
  }
  .profile-pill {
    padding: 6px 9px !important;
  }
}

/* v27 layout, logo, compact typography and scroll-management fixes */

/* Official logo sizing without large white patch */
.sg-logo-img {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.topbar .sg-logo-img {
  width: 150px !important;
}
.login-left .brand {
  width: 220px !important;
  height: 72px !important;
  padding: 10px 14px !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 255, 255, 0.96) !important;
}
.login-left .brand .sg-logo-img {
  width: 190px !important;
}
.pdf-nav .sg-logo-img,
.landing-header .sg-logo-img {
  width: 166px !important;
}
.footer-logo .sg-logo-img {
  width: 150px !important;
}

/* Login text fixes */
.auth-shell h2 {
  word-spacing: 2px !important;
  letter-spacing: -0.02em !important;
}
.demo-box.auth-demo {
  white-space: normal !important;
  word-break: normal !important;
  line-height: 1.45 !important;
  gap: 4px !important;
}

/* Global app shell: left aside + right main body maintained on all screens */
body:not(.landing-body):not(:has(.login-page)) {
  overflow: hidden !important;
}
body:not(.landing-body):not(:has(.login-page)) .layout {
  height: calc(100vh - 90px) !important;
  min-height: 0 !important;
  overflow: hidden !important;
  display: grid !important;
  grid-template-columns: 176px minmax(0, 1fr) !important;
}
body:not(.landing-body):not(:has(.login-page)) .sidebar {
  height: 100% !important;
  overflow: hidden auto !important;
  position: relative !important;
}
body:not(.landing-body):not(:has(.login-page)) .main {
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 16px 20px !important;
}

/* Consistent smaller font and softer weight */
body:not(.landing-body) {
  font-size: 13px !important;
}
.page-head h1 {
  font-size: 24px !important;
  line-height: 1.15 !important;
}
.page-head p {
  font-size: 12.5px !important;
}
.kicker {
  font-size: 11px !important;
}
h1,
h2,
h3 {
  font-weight: 850 !important;
}
.btn {
  font-weight: 750 !important;
}

/* Officer dashboard single-screen layout */
.officer-dashboard-page {
  height: 100vh !important;
  overflow: hidden !important;
}
.officer-dashboard-page .main {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}
.officer-dashboard-page .page-head {
  margin: 0 !important;
  flex: 0 0 auto !important;
}
.officer-dashboard-page .stats {
  flex: 0 0 auto !important;
  margin: 8px 0 !important;
  gap: 12px !important;
}
.officer-dashboard-page .filters {
  flex: 0 0 auto !important;
  margin: 0 0 4px !important;
}
.officer-dashboard-page .table-card {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  padding: 14px 16px !important;
}
.officer-dashboard-page .queue-head {
  flex: 0 0 auto !important;
  margin: 0 0 10px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid #e5edf7 !important;
}
.queue-table-scroll {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: auto !important;
  border: 1px solid #e1ebf7 !important;
  border-radius: 12px !important;
}
.queue-table-scroll .app-table {
  margin: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  min-width: 920px !important;
}
.queue-table-scroll thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 5 !important;
  background: #f7faff !important;
  border-bottom: 1px solid #d9e7f7 !important;
}
.officer-dashboard-page .queue-footer {
  flex: 0 0 auto !important;
  margin: 10px 0 0 !important;
  padding: 0 2px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 12px !important;
  font-size: 12px !important;
}
.queue-pagination {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
.officer-dashboard-page .app-table th {
  padding: 10px 11px !important;
  font-size: 10.5px !important;
  letter-spacing: 0.1em !important;
}
.officer-dashboard-page .app-table td {
  padding: 10px 11px !important;
  font-size: 12px !important;
}
.officer-dashboard-page .app-table td b {
  font-size: 12px !important;
}
.officer-dashboard-page .app-table td small {
  font-size: 10px !important;
}
.officer-dashboard-page .app-table .pill {
  padding: 6px 8px !important;
  font-size: 10.5px !important;
  max-width: 160px !important;
}
.officer-dashboard-page .mini-class {
  font-size: 10px !important;
  max-width: 170px !important;
  padding: 5px 8px !important;
}
.officer-dashboard-page .queue-risk-scale {
  width: 104px !important;
}
.officer-dashboard-page .queue-risk-scale b {
  font-size: 11.5px !important;
}
.officer-dashboard-page .queue-risk-scale em {
  font-size: 8.5px !important;
}
.officer-dashboard-page .app-table .btn {
  min-width: 82px !important;
  min-height: 32px !important;
  padding: 6px 9px !important;
  font-size: 11.5px !important;
}
.officer-dashboard-page .stat {
  min-height: 82px !important;
  padding: 12px !important;
}
.officer-dashboard-page .stat h4 {
  font-size: 10.5px !important;
  margin: 8px 0 4px !important;
}
.officer-dashboard-page .stat strong {
  font-size: 20px !important;
}

/* Review page: no page-level overflow; sections scroll inside columns */
.review-file-page {
  height: 100vh !important;
  overflow: hidden !important;
}
.review-file-page .main {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}
.review-file-page .review-toolbar {
  flex: 0 0 auto !important;
}
.review-file-page .review-layout.deep-review {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  grid-template-columns: minmax(0, 1fr) 300px !important;
}
.review-file-page .left-stack,
.review-file-page .right-stack {
  min-height: 0 !important;
  overflow: auto !important;
  padding-right: 4px !important;
}
.review-file-page .right-stack {
  position: relative !important;
  top: auto !important;
}
.review-file-page .risk-card {
  grid-template-columns: 122px minmax(0, 1fr) !important;
  padding: 14px !important;
  gap: 14px !important;
}
.review-file-page .risk-score-scale {
  width: 112px !important;
  min-width: 112px !important;
  padding: 10px !important;
}
.review-file-page .risk-score-scale .score-number {
  font-size: 32px !important;
}
.review-file-page .risk-title-row h2 {
  font-size: 20px !important;
}
.review-file-page .metric-grid {
  gap: 8px !important;
}
.review-file-page .metric {
  padding: 10px !important;
}
.review-file-page .metric strong {
  font-size: 18px !important;
}
.review-file-page .metric span {
  font-size: 10px !important;
}

/* Restore compact officer document panel look */
.compact-doc-meta {
  padding: 10px 14px !important;
  align-items: center !important;
}
.compact-doc-meta b {
  font-size: 12.5px !important;
}
.compact-doc-meta small {
  display: block !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
}
.compact-count {
  font-size: 10.5px !important;
  padding: 6px 8px !important;
  white-space: nowrap !important;
}
.scroll-doc-list {
  max-height: 190px !important;
  overflow: auto !important;
  padding: 0 10px !important;
}
.compact-doc-row {
  grid-template-columns: 44px minmax(0, 1fr) 76px 34px !important;
  gap: 8px !important;
  min-height: 52px !important;
  padding: 8px 0 !important;
}
.compact-doc-row .pdf {
  min-width: 40px !important;
  height: 28px !important;
  padding: 0 !important;
  font-size: 10px !important;
}
.compact-doc-row b {
  font-size: 12px !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.compact-doc-row small {
  font-size: 11px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  display: block !important;
  max-width: 120px !important;
}
.compact-doc-row .mini-status {
  font-size: 9.5px !important;
  padding: 5px 7px !important;
}
.compact-doc-row .btn.icon-only {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
}
.scroll-note {
  font-size: 11px !important;
  line-height: 1.35 !important;
  padding: 0 14px !important;
}

/* Mobile: keep left aside like desktop, icon-collapsed, and let inner content scroll */
@media (max-width: 900px) {
  body:not(.landing-body):not(:has(.login-page)) .layout {
    grid-template-columns: 68px minmax(0, 1fr) !important;
    height: calc(100vh - 90px) !important;
  }
  body:not(.landing-body):not(:has(.login-page)) .sidebar {
    display: block !important;
    padding: 12px 8px !important;
    overflow: hidden auto !important;
    border-right: 1px solid var(--line) !important;
    border-bottom: 0 !important;
  }
  body:not(.landing-body):not(:has(.login-page)) .hamb {
    display: grid !important;
    width: 42px !important;
    height: 42px !important;
    margin: 0 auto 14px !important;
  }
  body:not(.landing-body):not(:has(.login-page)) .menu {
    display: grid !important;
    gap: 10px !important;
    min-width: 0 !important;
  }
  body:not(.landing-body):not(:has(.login-page)) .menu a {
    width: 48px !important;
    min-height: 44px !important;
    padding: 0 !important;
    justify-content: center !important;
    border-radius: 12px !important;
  }
  body:not(.landing-body):not(:has(.login-page)) .menu a .txt,
  body:not(.landing-body):not(:has(.login-page)) .menu a .badge {
    display: none !important;
  }
  body:not(.landing-body):not(:has(.login-page)) .main {
    padding: 12px !important;
  }
  .officer-dashboard-page .page-head p {
    display: none !important;
  }
  .officer-dashboard-page .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .officer-dashboard-page .filters {
    overflow: auto !important;
    display: flex !important;
  }
  .queue-head {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
  .search-row {
    width: 100% !important;
  }
  .search-row input,
  .search-row select {
    width: 100% !important;
  }
  .review-file-page .review-layout.deep-review {
    grid-template-columns: 1fr !important;
  }
  .review-file-page .right-stack {
    max-height: 38vh !important;
  }
  .review-file-page .left-stack {
    max-height: calc(62vh - 120px) !important;
  }
}
@media (max-width: 560px) {
  .topbar .sg-logo-img {
    width: 126px !important;
  }
  .profile-pill small {
    display: none !important;
  }
  .profile-pill {
    font-size: 11px !important;
  }
  .officer-dashboard-page .stats {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  .officer-dashboard-page .stat {
    min-height: 74px !important;
    padding: 10px !important;
  }
  .queue-table-scroll .app-table {
    min-width: 820px !important;
  }
  .compact-doc-row {
    grid-template-columns: 40px minmax(0, 1fr) 30px !important;
    grid-template-areas: "type meta action" "type status action" !important;
  }
  .compact-doc-row .mini-status {
    grid-area: status !important;
    justify-self: start !important;
    margin-top: 2px !important;
  }
  .compact-doc-row .pdf {
    grid-area: type !important;
  }
  .compact-doc-row > div {
    grid-area: meta !important;
  }
  .compact-doc-row .btn {
    grid-area: action !important;
  }
}

/* v28 required marker removal + compact sponsor/officer typography */
.label::after,
label::after {
  content: none !important;
}
.label,
.field label,
.login-panel .label {
  color: #5e6e93 !important;
}
body:not(.landing-body) {
  font-size: 12.5px !important;
  line-height: 1.45 !important;
}
body:not(.landing-body) h1 {
  font-size: 24px !important;
}
body:not(.landing-body) h2 {
  font-size: 18px !important;
}
body:not(.landing-body) h3 {
  font-size: 15px !important;
}
body:not(.landing-body) p,
body:not(.landing-body) small,
body:not(.landing-body) li {
  font-size: 12px !important;
}
body:not(.landing-body) .main {
  padding: 14px 18px !important;
}
.accordion {
  margin-bottom: 10px !important;
}
.acc-head {
  min-height: 44px !important;
  padding: 10px 14px !important;
  font-size: 13px !important;
}
.acc-body {
  padding: 14px !important;
}
.field-grid {
  gap: 12px !important;
}
.field input,
.field select,
.field textarea,
.input,
select,
textarea {
  min-height: 38px !important;
  font-size: 12.5px !important;
  border-radius: 9px !important;
}
textarea {
  min-height: 86px !important;
}
.section-actions {
  padding-top: 12px !important;
  gap: 8px !important;
}
.btn {
  min-height: 34px !important;
  padding: 8px 12px !important;
  font-size: 12px !important;
  border-radius: 9px !important;
}
.btn.primary {
  font-weight: 800 !important;
}
.section-card,
.card,
.table-card,
.offer,
.accordion {
  border-radius: 13px !important;
}
.page-head {
  margin-bottom: 12px !important;
}
.page-head h1 {
  margin-bottom: 4px !important;
}

/* Sponsor static UI compacting */
body:has(.sponsor-page) .main,
body:has(.accordion) .main {
  font-size: 12.5px !important;
}
.loan-policy-note,
.policy-strip,
.info-note,
.guidance,
.document-guidance-dynamic,
.rule-summary-grid div,
.bank-choice-card,
.id-guide-strip,
.identity-flow-banner {
  font-size: 12px !important;
  line-height: 1.45 !important;
}
.conditional-doc-grid {
  gap: 10px !important;
}
.doc-card {
  padding: 12px !important;
  min-height: auto !important;
}
.doc-card h4 {
  font-size: 13.5px !important;
  margin: 20px 0 6px !important;
}
.doc-card p {
  font-size: 11.5px !important;
  margin-bottom: 6px !important;
}
.doc-card small {
  font-size: 10.5px !important;
}
.req,
.doc-state {
  font-size: 9px !important;
  padding: 4px 7px !important;
}
.upload-box {
  min-height: 48px !important;
  font-size: 11px !important;
}

/* Credit officer review document panel correction */
.doc-clean-head {
  padding: 14px 16px !important;
}
.doc-clean-head span:first-child {
  font-size: 17px !important;
  font-weight: 850 !important;
}
.doc-review-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 14px 10px;
}
.doc-summary-pill {
  border: 1px solid #dce8f7;
  border-radius: 10px;
  padding: 8px 6px;
  background: #f7fbff;
  text-align: center;
}
.doc-summary-pill b {
  display: block;
  font-size: 16px;
  line-height: 1;
  color: #000a28;
}
.doc-summary-pill span {
  display: block;
  margin-top: 3px;
  font-size: 9.5px;
  font-weight: 800;
  color: #627399;
}
.doc-summary-pill.green {
  background: #ecfff6;
  border-color: #bfebd7;
}
.doc-summary-pill.orange {
  background: #fff7e6;
  border-color: #f4d699;
}
.doc-review-hint {
  margin: 0 14px 10px !important;
  color: #667699 !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
}
.clean-doc-list {
  max-height: 190px !important;
  padding: 0 10px 8px !important;
}
.clean-doc-row {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) 72px 30px !important;
  gap: 8px !important;
  align-items: center !important;
  min-height: 48px !important;
  padding: 7px 0 !important;
  border-bottom: 1px solid #e6eef8 !important;
}
.doc-type-mini {
  min-width: 38px !important;
  height: 26px !important;
  border-radius: 8px !important;
  font-size: 9.5px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.doc-meta-clean {
  min-width: 0 !important;
}
.doc-meta-clean b {
  display: block !important;
  font-size: 12px !important;
  line-height: 1.15 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.doc-meta-clean small {
  display: block !important;
  margin-top: 3px !important;
  font-size: 10.5px !important;
  line-height: 1.1 !important;
  color: #6a7898 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.clean-doc-row .mini-status {
  font-size: 9px !important;
  padding: 4px 6px !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
}
.clean-doc-row .btn.icon-only {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
}
.clean-doc-row .btn.icon-only .icon {
  width: 14px !important;
  height: 14px !important;
}

/* Keep mobile readable but compact */
@media (max-width: 900px) {
  body:not(.landing-body) .main {
    padding: 12px !important;
  }
  .acc-head {
    font-size: 12.5px !important;
  }
  .acc-body {
    padding: 12px !important;
  }
  .clean-doc-row {
    grid-template-columns: 38px minmax(0, 1fr) 28px !important;
    grid-template-areas: "type meta action" "type status action" !important;
  }
  .clean-doc-row .doc-type-mini {
    grid-area: type !important;
  }
  .clean-doc-row .doc-meta-clean {
    grid-area: meta !important;
  }
  .clean-doc-row .mini-status {
    grid-area: status !important;
    justify-self: start !important;
    margin-top: 3px !important;
  }
  .clean-doc-row .btn {
    grid-area: action !important;
  }
}

/* v29 login logo patch + better left hero text */
body:has(.login-page) .login-left .brand {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  width: auto !important;
  height: auto !important;
}
body:has(.login-page) .login-left .brand .sg-logo-img {
  width: 230px !important;
  max-width: 230px !important;
  height: auto !important;
  background: transparent !important;
  filter: none !important;
}
body:has(.login-page) .login-copy {
  max-width: 690px !important;
  padding-top: 112px !important;
}
body:has(.login-page) .login-copy .tag {
  font-size: 13px !important;
  height: 30px !important;
  line-height: 30px !important;
  padding: 0 16px !important;
  margin-bottom: 0 !important;
}
body:has(.login-page) .login-copy h1 {
  font-size: 46px !important;
  line-height: 1.08 !important;
  letter-spacing: -0.045em !important;
  max-width: 650px !important;
  margin: 26px 0 18px !important;
  color: #fff !important;
  font-weight: 900 !important;
  text-wrap: balance;
}
body:has(.login-page) .login-copy p {
  max-width: 660px !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
  font-weight: 650 !important;
  color: #e5f1ff !important;
  margin: 0 !important;
}
body:has(.login-page) .auth-shell h2 {
  font-size: 22px !important;
  letter-spacing: -0.02em !important;
  word-spacing: 1px !important;
}
@media (max-width: 1100px) {
  body:has(.login-page) .login-copy h1 {
    font-size: 40px !important;
  }
  body:has(.login-page) .login-copy p {
    font-size: 14px !important;
  }
}
@media (max-width: 820px) {
  body:has(.login-page) .login-left .brand .sg-logo-img {
    width: 190px !important;
  }
  .login-left {
    background: transparent !important;
  }
}

/* v30 officer queue + review risk-score visibility fix */

/* Officer dashboard: keep at least 3 queue rows visible and scroll inside the table only */
.officer-dashboard-page .main {
  gap: 8px !important;
}
.officer-dashboard-page .page-head {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
}
.officer-dashboard-page .page-head h1 {
  font-size: 22px !important;
}
.officer-dashboard-page .page-head p {
  font-size: 12px !important;
}
.officer-dashboard-page .stats {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin: 6px 0 !important;
}
.officer-dashboard-page .stat {
  min-height: 68px !important;
  padding: 10px 12px !important;
}
.officer-dashboard-page .stat .avatar {
  width: 24px !important;
  height: 24px !important;
}
.officer-dashboard-page .stat h4 {
  margin: 6px 0 3px !important;
  font-size: 10px !important;
}
.officer-dashboard-page .stat strong {
  font-size: 18px !important;
}
.officer-dashboard-page .filters {
  margin: 0 !important;
  gap: 8px !important;
}
.officer-dashboard-page .filters .btn {
  min-height: 30px !important;
  padding: 6px 10px !important;
  font-size: 11.5px !important;
}
.officer-dashboard-page .table-card {
  padding: 12px 14px !important;
  min-height: 330px !important;
}
.officer-dashboard-page .queue-head {
  margin: 0 0 8px !important;
  padding-bottom: 8px !important;
}
.officer-dashboard-page .queue-head h2 {
  font-size: 16px !important;
}
.officer-dashboard-page .search-row input,
.officer-dashboard-page .search-row select {
  height: 34px !important;
  min-height: 34px !important;
}
.officer-dashboard-page .queue-table-scroll {
  flex: 1 1 auto !important;
  min-height: 238px !important; /* header + at least 3 visible rows */
  max-height: calc(100vh - 348px) !important;
  overflow: auto !important;
}
.officer-dashboard-page .app-table th {
  padding: 8px 10px !important;
  height: 38px !important;
}
.officer-dashboard-page .app-table td {
  padding: 8px 10px !important;
  height: 56px !important;
}
.officer-dashboard-page .queue-footer {
  min-height: 32px !important;
  margin-top: 8px !important;
}
.officer-dashboard-page .queue-pagination .btn {
  min-height: 30px !important;
  padding: 6px 10px !important;
}

/* Review file: risk score summary must stay visible at top; details scroll below */
.review-file-page .main {
  overflow: hidden !important;
}
.review-file-page .review-toolbar {
  flex: 0 0 auto !important;
  margin-bottom: 6px !important;
}
.review-file-page .review-layout.deep-review {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 300px !important;
  gap: 14px !important;
  height: calc(100vh - 118px) !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
.review-file-page .left-stack {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  overflow: hidden !important;
  gap: 10px !important;
}
.review-file-page .left-stack > .risk-card {
  flex: 0 0 auto !important;
}
.review-file-page .left-stack > .card:not(.risk-card) {
  flex: 0 0 auto !important;
}
.review-file-page .left-stack {
  overflow: auto !important;
}
.review-file-page .risk-card {
  position: sticky !important;
  top: 0 !important;
  z-index: 8 !important;
  background: #fff !important;
  grid-template-columns: 110px minmax(0, 1fr) !important;
  padding: 12px !important;
  gap: 12px !important;
  box-shadow: 0 10px 28px rgba(0, 10, 40, 0.08) !important;
}
.review-file-page .risk-score-scale {
  width: 100px !important;
  min-width: 100px !important;
  padding: 8px !important;
}
.review-file-page .risk-score-scale .score-number {
  font-size: 28px !important;
}
.review-file-page .risk-score-scale .score-caption {
  font-size: 8px !important;
}
.review-file-page .score-labels,
.review-file-page .score-zone-labels {
  font-size: 8px !important;
}
.review-file-page .risk-title-row {
  align-items: flex-start !important;
  gap: 8px !important;
}
.review-file-page .risk-title-row h2 {
  font-size: 18px !important;
}
.review-file-page .risk-title-row .pill {
  font-size: 10px !important;
  padding: 5px 8px !important;
}
.review-file-page .metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}
.review-file-page .risk-scale-full {
  padding: 8px 10px !important;
}
.review-file-page .right-stack {
  overflow: auto !important;
  min-height: 0 !important;
}
@media (max-width: 900px) {
  body:has(.login-page) .login-copy {
    padding-top: 36px !important;
  }
  .officer-dashboard-page .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .officer-dashboard-page .queue-table-scroll {
    min-height: 238px !important;
    max-height: calc(100vh - 360px) !important;
  }
  .review-file-page .review-layout.deep-review {
    grid-template-columns: 1fr !important;
    height: calc(100vh - 116px) !important;
    overflow: auto !important;
  }
  .review-file-page .left-stack,
  .review-file-page .right-stack {
    max-height: none !important;
    overflow: visible !important;
  }
  .review-file-page .risk-card {
    position: relative !important;
  }
}
@media (max-width: 560px) {
  .officer-dashboard-page .table-card {
    min-height: 330px !important;
  }
  .officer-dashboard-page .queue-table-scroll {
    min-height: 230px !important;
  }
  .review-file-page .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* v31 sponsor page scroll + terms overview actions fix */
body.sponsor-page {
  height: 100vh !important;
  overflow: hidden !important;
}
body.sponsor-page .layout {
  height: calc(100vh - 90px) !important;
  min-height: 0 !important;
  overflow: hidden !important;
  display: grid !important;
  grid-template-columns: 176px minmax(0, 1fr) !important;
}
body.sponsor-page .sidebar {
  height: 100% !important;
  overflow: hidden auto !important;
}
body.sponsor-page .main {
  height: 100% !important;
  min-height: 0 !important;
  overflow: auto !important;
  padding: 14px 18px 28px !important;
}
body.sponsor-page .main::-webkit-scrollbar,
body.sponsor-page .sidebar::-webkit-scrollbar {
  width: 8px;
}
body.sponsor-page .main::-webkit-scrollbar-thumb,
body.sponsor-page .sidebar::-webkit-scrollbar-thumb {
  background: #c7d7ec;
  border-radius: 999px;
}
body.sponsor-page .offer,
body.sponsor-page .term-offer-card {
  overflow: visible !important;
  max-height: none !important;
}
body.sponsor-page .term-offer-card {
  border: 2px solid #f04747 !important;
  padding: 14px !important;
  margin-bottom: 28px !important;
}
body.sponsor-page .offer-head {
  align-items: flex-start !important;
  gap: 16px !important;
}
body.sponsor-page .open-app-btn {
  color: #5a48ff !important;
  border-color: #bfd4ff !important;
  background: #fff !important;
  white-space: nowrap !important;
}
body.sponsor-page .term-actions {
  flex: 0 0 auto !important;
}
body.sponsor-page .offer-grid {
  margin: 20px 0 !important;
  gap: 8px !important;
}
body.sponsor-page .offer-box {
  padding: 11px !important;
}
body.sponsor-page .offer-box .label {
  font-size: 10px !important;
}
body.sponsor-page .offer-box b {
  font-size: 12px !important;
}
body.sponsor-page .term-note {
  font-size: 11.5px !important;
  padding: 10px 12px !important;
  margin: 12px 0 !important;
}
body.sponsor-page .signed-row {
  min-height: 48px !important;
  padding: 10px 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  border: 1px solid #75d9a8 !important;
  border-radius: 9px !important;
  background: #fbfffd !important;
}
.signed-doc-title {
  min-width: 0 !important;
  display: grid !important;
  gap: 3px !important;
}
.signed-doc-title b {
  font-size: 13px !important;
  color: #006b44 !important;
}
.signed-doc-title small {
  font-size: 10.5px !important;
  color: #607095 !important;
}
.doc-actions-icon {
  display: flex !important;
  gap: 8px !important;
  flex: 0 0 auto !important;
}
.doc-actions-icon .btn.icon-only {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  border-color: #bfd4ff !important;
  color: #147bff !important;
  background: #f8fbff !important;
}
.terms-grid {
  gap: 10px !important;
  margin-bottom: 12px !important;
}
.terms-card {
  padding: 14px !important;
}
.terms-card strong {
  font-size: 22px !important;
}
@media (max-width: 900px) {
  body.sponsor-page .layout {
    grid-template-columns: 68px minmax(0, 1fr) !important;
  }
  body.sponsor-page .sidebar {
    display: block !important;
    padding: 12px 8px !important;
    border-right: 1px solid var(--line) !important;
    border-bottom: 0 !important;
  }
  body.sponsor-page .hamb {
    display: grid !important;
    width: 42px !important;
    height: 42px !important;
    margin: 0 auto 14px !important;
  }
  body.sponsor-page .menu {
    display: grid !important;
    gap: 10px !important;
    min-width: 0 !important;
  }
  body.sponsor-page .menu a {
    width: 48px !important;
    min-height: 44px !important;
    padding: 0 !important;
    justify-content: center !important;
  }
  body.sponsor-page .menu a .txt,
  body.sponsor-page .menu a .badge {
    display: none !important;
  }
  body.sponsor-page .term-sheet-grid,
  body.sponsor-page .offer-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  body.sponsor-page .terms-grid {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 560px) {
  body.sponsor-page .term-sheet-grid,
  body.sponsor-page .offer-grid {
    grid-template-columns: 1fr !important;
  }
  body.sponsor-page .offer-head {
    display: block !important;
  }
  body.sponsor-page .term-actions {
    margin-top: 10px !important;
    justify-content: flex-start !important;
  }
}

/* v32 working hamburger/sidebar toggle */
.hamb {
  cursor: pointer !important;
  user-select: none !important;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease !important;
}
.hamb:hover {
  background: #eaf6ff !important;
  border-color: #9ed3ff !important;
  transform: translateY(-1px);
}
body.sidebar-collapsed:not(.landing-body):not(:has(.login-page)) .layout {
  grid-template-columns: 68px minmax(0, 1fr) !important;
}
body.sidebar-collapsed:not(.landing-body):not(:has(.login-page)) .sidebar {
  padding-left: 8px !important;
  padding-right: 8px !important;
}
body.sidebar-collapsed:not(.landing-body):not(:has(.login-page)) .menu a {
  width: 48px !important;
  min-height: 44px !important;
  padding: 0 !important;
  justify-content: center !important;
  border-radius: 12px !important;
}
body.sidebar-collapsed:not(.landing-body):not(:has(.login-page)) .menu a .txt,
body.sidebar-collapsed:not(.landing-body):not(:has(.login-page))
  .menu
  a
  .badge {
  display: none !important;
}
body.sidebar-collapsed:not(.landing-body):not(:has(.login-page)) .hamb {
  width: 42px !important;
  height: 42px !important;
  margin: 0 auto 14px !important;
}
body.sidebar-collapsed:not(.landing-body):not(:has(.login-page)) .nav-icon {
  width: 19px !important;
  height: 19px !important;
}
body.sidebar-collapsed:not(.landing-body):not(:has(.login-page))
  .hamb
  .nav-toggle-icon {
  transform: rotate(90deg);
}

/* Mobile default is collapsed, hamburger expands to full menu when clicked */
@media (max-width: 900px) {
  body:not(.landing-body):not(:has(.login-page)) .layout {
    grid-template-columns: 68px minmax(0, 1fr) !important;
  }
  body:not(.landing-body):not(:has(.login-page)) .sidebar {
    padding: 12px 8px !important;
  }
  body:not(.landing-body):not(:has(.login-page)) .menu a {
    width: 48px !important;
    min-height: 44px !important;
    padding: 0 !important;
    justify-content: center !important;
    border-radius: 12px !important;
  }
  body:not(.landing-body):not(:has(.login-page)) .menu a .txt,
  body:not(.landing-body):not(:has(.login-page)) .menu a .badge {
    display: none !important;
  }
  body:not(.landing-body):not(:has(.login-page)) .hamb {
    width: 42px !important;
    height: 42px !important;
    margin: 0 auto 14px !important;
  }

  body:not(.sidebar-collapsed):not(.landing-body):not(:has(.login-page))
    .layout {
    grid-template-columns: 176px minmax(0, 1fr) !important;
  }
  body:not(.sidebar-collapsed):not(.landing-body):not(:has(.login-page))
    .sidebar {
    padding: 12px 10px !important;
  }
  body:not(.sidebar-collapsed):not(.landing-body):not(:has(.login-page))
    .menu
    a {
    width: auto !important;
    min-height: 44px !important;
    padding: 10px 12px !important;
    justify-content: flex-start !important;
  }
  body:not(.sidebar-collapsed):not(.landing-body):not(:has(.login-page))
    .menu
    a
    .txt {
    display: inline !important;
  }
  body:not(.sidebar-collapsed):not(.landing-body):not(:has(.login-page))
    .menu
    a
    .badge {
    display: inline-flex !important;
  }
}

/* Very small screens: expanded sidebar becomes overlay so main content is still usable */
@media (max-width: 560px) {
  body:not(.sidebar-collapsed):not(.landing-body):not(:has(.login-page))
    .layout {
    grid-template-columns: 68px minmax(0, 1fr) !important;
  }
  body:not(.sidebar-collapsed):not(.landing-body):not(:has(.login-page))
    .sidebar {
    position: absolute !important;
    left: 0;
    top: 90px;
    bottom: 0;
    width: 176px !important;
    z-index: 60;
    background: #fff;
    box-shadow: 14px 0 34px rgba(0, 10, 40, 0.16);
  }
}

/* v33 scroll restoration + clear queue pagination */

/* Restore page scrolling for sponsor pages and review page.
   Sidebar/topbar stays fixed-like, main content scrolls normally inside the app shell. */
body.sponsor-page,
body.review-file-page {
  height: 100vh !important;
  overflow: hidden !important;
}
body.sponsor-page .layout,
body.review-file-page .layout {
  height: calc(100vh - 90px) !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
body.sponsor-page .main,
body.review-file-page .main {
  height: 100% !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding-bottom: 34px !important;
}
body.sponsor-page .main::-webkit-scrollbar,
body.review-file-page .main::-webkit-scrollbar {
  width: 10px !important;
}
body.sponsor-page .main::-webkit-scrollbar-thumb,
body.review-file-page .main::-webkit-scrollbar-thumb {
  background: #bfd0e8 !important;
  border-radius: 999px !important;
  border: 2px solid #eef4fb !important;
}
body.sponsor-page .main::-webkit-scrollbar-track,
body.review-file-page .main::-webkit-scrollbar-track {
  background: #eef4fb !important;
}

/* Sponsor pages: remove forced no-scroll constraints from older passes */
body.sponsor-page .offer,
body.sponsor-page .term-offer-card,
body.sponsor-page .table-card,
body.sponsor-page .card {
  max-height: none !important;
}
body.sponsor-page .terms-card,
body.sponsor-page .offer,
body.sponsor-page .term-offer-card {
  flex: initial !important;
}
body.sponsor-page .page-head {
  position: relative !important;
}

/* Review page: whole AI review page scrolls again, not only inner cards */
.review-file-page .review-layout.deep-review {
  height: auto !important;
  min-height: auto !important;
  overflow: visible !important;
  grid-template-columns: minmax(0, 1fr) 300px !important;
}
.review-file-page .left-stack,
.review-file-page .right-stack {
  overflow: visible !important;
  max-height: none !important;
  min-height: auto !important;
}
.review-file-page .risk-card {
  position: relative !important;
  top: auto !important;
}
.review-file-page .right-stack {
  position: relative !important;
}

/* If content is long, document list still has its own small scroll, but page can also scroll */
.review-file-page .clean-doc-list,
.review-file-page .scroll-doc-list {
  max-height: 190px !important;
  overflow: auto !important;
}

/* Officer active queue stays single-screen with internal table scroll */
.officer-dashboard-page {
  height: 100vh !important;
  overflow: hidden !important;
}
.officer-dashboard-page .main {
  overflow: hidden !important;
}
.officer-dashboard-page .queue-table-scroll {
  overflow: auto !important;
}

/* Clear Prev / Next footer */
.queue-footer {
  background: #fff !important;
  border-top: 1px solid #dde9f7 !important;
  padding-top: 10px !important;
  margin-top: 10px !important;
  color: #42587f !important;
}
.queue-pagination {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  white-space: nowrap !important;
}
.queue-pagination b {
  color: #000a28 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  min-width: 50px !important;
  text-align: center !important;
}
.queue-pagination .btn,
.officer-dashboard-page .queue-pagination .btn {
  min-width: 72px !important;
  height: 34px !important;
  min-height: 34px !important;
  border: 1px solid #afc9ea !important;
  background: #ffffff !important;
  color: #0b234f !important;
  border-radius: 10px !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  box-shadow: 0 4px 10px rgba(0, 10, 40, 0.05) !important;
}
.queue-pagination .btn:hover {
  border-color: #147bff !important;
  color: #147bff !important;
  background: #f4faff !important;
}
.queue-pagination .btn:first-child::before {
  content: "‹";
  font-size: 18px;
  line-height: 1;
  margin-right: 6px;
}
.queue-pagination .btn:last-child::after {
  content: "›";
  font-size: 18px;
  line-height: 1;
  margin-left: 6px;
}

/* Mobile: sponsor/review main scroll remains available */
@media (max-width: 900px) {
  body.sponsor-page .layout,
  body.review-file-page .layout {
    height: calc(100vh - 90px) !important;
    overflow: hidden !important;
  }
  body.sponsor-page .main,
  body.review-file-page .main {
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
  .review-file-page .review-layout.deep-review {
    display: block !important;
  }
  .review-file-page .right-stack {
    margin-top: 14px !important;
  }
}

/* v34 sponsor desktop normal page scroll fix
   Sponsor Static UI pages now scroll with the browser again on desktop,
   instead of trapping scroll inside the main panel. */
@media (min-width: 901px) {
  body.sponsor-page {
    height: auto !important;
    min-height: 100vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
  body.sponsor-page .layout {
    height: auto !important;
    min-height: calc(100vh - 90px) !important;
    overflow: visible !important;
    display: grid !important;
    grid-template-columns: 176px minmax(0, 1fr) !important;
  }
  body.sponsor-page .sidebar {
    height: auto !important;
    min-height: calc(100vh - 90px) !important;
    overflow: visible !important;
    position: relative !important;
  }
  body.sponsor-page .main {
    height: auto !important;
    min-height: calc(100vh - 90px) !important;
    overflow: visible !important;
    padding-bottom: 40px !important;
  }
  body.sponsor-page .rolebar,
  body.sponsor-page .topbar {
    position: relative !important;
    z-index: 10 !important;
  }

  /* when hamburger is collapsed on desktop, keep browser/page scroll working */
  body.sidebar-collapsed.sponsor-page .layout {
    grid-template-columns: 68px minmax(0, 1fr) !important;
  }
}

/* v35 Initial Officer dashboard fixed viewport + review page scroll correction */

/* Officer dashboard should behave like a single app screen:
   no browser/body scroll; Active Queue card owns the scroll;
   header, filters and pagination remain visible. */
body.officer-dashboard-page {
  height: 100vh !important;
  overflow: hidden !important;
}
body.officer-dashboard-page .layout {
  height: calc(100vh - 90px) !important;
  min-height: 0 !important;
  overflow: hidden !important;
  display: grid !important;
}
body.officer-dashboard-page .sidebar {
  height: 100% !important;
  overflow: hidden auto !important;
}
body.officer-dashboard-page .main {
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  padding: 12px 18px !important;
}
body.officer-dashboard-page .page-head {
  flex: 0 0 auto !important;
  margin: 0 !important;
}
body.officer-dashboard-page .page-head h1 {
  font-size: 21px !important;
  margin: 4px 0 !important;
}
body.officer-dashboard-page .page-head p {
  font-size: 11.5px !important;
  margin: 0 !important;
}
body.officer-dashboard-page .stats {
  flex: 0 0 auto !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin: 6px 0 !important;
}
body.officer-dashboard-page .stat {
  min-height: 64px !important;
  padding: 9px 12px !important;
}
body.officer-dashboard-page .stat .avatar {
  width: 22px !important;
  height: 22px !important;
}
body.officer-dashboard-page .stat h4 {
  margin: 5px 0 2px !important;
  font-size: 9.5px !important;
}
body.officer-dashboard-page .stat strong {
  font-size: 17px !important;
}
body.officer-dashboard-page .filters {
  flex: 0 0 auto !important;
  margin: 0 !important;
  gap: 8px !important;
}
body.officer-dashboard-page .filters .btn {
  min-height: 29px !important;
  height: 29px !important;
  padding: 5px 10px !important;
  font-size: 11px !important;
}
body.officer-dashboard-page .table-card {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 12px 14px !important;
  border-radius: 12px !important;
}
body.officer-dashboard-page .queue-head {
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 0 8px !important;
  border-bottom: 1px solid #dfe9f6 !important;
  display: grid !important;
  grid-template-columns: auto minmax(420px, 1fr) !important;
  gap: 14px !important;
  align-items: center !important;
}
body.officer-dashboard-page .queue-head h2 {
  font-size: 16px !important;
  white-space: nowrap !important;
}
body.officer-dashboard-page .search-row {
  display: grid !important;
  grid-template-columns: minmax(220px, 1fr) 210px !important;
  gap: 10px !important;
  align-items: center !important;
}
body.officer-dashboard-page .search-row input,
body.officer-dashboard-page .search-row select {
  height: 32px !important;
  min-height: 32px !important;
  font-size: 11.5px !important;
  border-radius: 8px !important;
}
body.officer-dashboard-page .queue-table-scroll {
  flex: 1 1 auto !important;
  min-height: 180px !important;
  max-height: none !important;
  overflow: auto !important;
  margin-top: 8px !important;
  border: 1px solid #dde8f5 !important;
  border-radius: 10px !important;
}
body.officer-dashboard-page .queue-table-scroll .app-table {
  min-width: 900px !important;
  margin: 0 !important;
}
body.officer-dashboard-page .queue-table-scroll thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 8 !important;
  background: #f7faff !important;
}
body.officer-dashboard-page .app-table th {
  height: 34px !important;
  padding: 7px 10px !important;
  font-size: 10px !important;
}
body.officer-dashboard-page .app-table td {
  height: 50px !important;
  padding: 7px 10px !important;
  font-size: 11.5px !important;
}
body.officer-dashboard-page .app-table td b {
  font-size: 11.5px !important;
}
body.officer-dashboard-page .app-table td small {
  font-size: 9.5px !important;
}
body.officer-dashboard-page .app-table .pill {
  font-size: 10px !important;
  padding: 5px 8px !important;
  max-width: 150px !important;
}
body.officer-dashboard-page .mini-class {
  font-size: 9.5px !important;
  padding: 5px 8px !important;
  max-width: 160px !important;
}
body.officer-dashboard-page .queue-risk-scale {
  width: 98px !important;
}
body.officer-dashboard-page .queue-risk-scale b {
  font-size: 11px !important;
}
body.officer-dashboard-page .queue-risk-scale em {
  font-size: 8px !important;
}
body.officer-dashboard-page .app-table .btn {
  min-width: 78px !important;
  min-height: 30px !important;
  height: 30px !important;
  padding: 5px 9px !important;
  font-size: 11px !important;
}

/* Footer is outside table scroll and always visible */
body.officer-dashboard-page .queue-footer {
  flex: 0 0 auto !important;
  min-height: 36px !important;
  margin: 8px 0 0 !important;
  padding: 8px 2px 0 !important;
  border-top: 1px solid #dde9f7 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  background: #fff !important;
}
body.officer-dashboard-page .queue-pagination {
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
}
body.officer-dashboard-page .queue-pagination b {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 50px !important;
  height: 30px !important;
  color: #000a28 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}
body.officer-dashboard-page .queue-pagination .btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  min-width: 72px !important;
  height: 32px !important;
  min-height: 32px !important;
  border: 1px solid #afc9ea !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: #0b234f !important;
  font-size: 11.5px !important;
  font-weight: 850 !important;
  box-shadow: 0 4px 10px rgba(0, 10, 40, 0.05) !important;
  opacity: 1 !important;
}

/* Review File / AI review should scroll with the page/main panel. */
body.review-file-page {
  height: 100vh !important;
  overflow: hidden !important;
}
body.review-file-page .layout {
  height: calc(100vh - 90px) !important;
  overflow: hidden !important;
}
body.review-file-page .main {
  height: 100% !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  display: block !important;
  padding-bottom: 42px !important;
}
body.review-file-page .review-layout.deep-review {
  height: auto !important;
  min-height: auto !important;
  overflow: visible !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 300px !important;
  gap: 14px !important;
}
body.review-file-page .left-stack,
body.review-file-page .right-stack {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}
body.review-file-page .risk-card {
  position: relative !important;
  top: auto !important;
  z-index: auto !important;
}

/* responsive officer dashboard */
@media (max-width: 900px) {
  body.officer-dashboard-page .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  body.officer-dashboard-page .queue-head {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  body.officer-dashboard-page .search-row {
    grid-template-columns: 1fr !important;
  }
  body.officer-dashboard-page .queue-table-scroll .app-table {
    min-width: 820px !important;
  }
  body.review-file-page .review-layout.deep-review {
    display: block !important;
  }
  body.review-file-page .right-stack {
    margin-top: 14px !important;
  }
}

/* v36 global typography reduction:
   15% smaller app fonts, lighter body weight, bold only for headings / key labels. */
:root {
  --app-font-scale: 0.85;
}

/* Base app typography */
body:not(.landing-body) {
  font-size: 10.8px !important;
  font-weight: 500 !important;
  line-height: 1.42 !important;
}
body:not(.landing-body) * {
  font-weight: 500 !important;
}

/* Headings only remain bold */
body:not(.landing-body) h1,
body:not(.landing-body) h2,
body:not(.landing-body) h3,
body:not(.landing-body) h4,
body:not(.landing-body) h5,
body:not(.landing-body) h6,
body:not(.landing-body) .page-head h1,
body:not(.landing-body) .section-head h3,
body:not(.landing-body) .matrix-head span:first-child,
body:not(.landing-body) .dark-head span:first-child,
body:not(.landing-body) .acc-head,
body:not(.landing-body) .brand-word,
body:not(.landing-body) .kicker {
  font-weight: 800 !important;
}

/* Smaller sizes across the app */
body:not(.landing-body) h1 {
  font-size: 20px !important;
}
body:not(.landing-body) h2 {
  font-size: 15.5px !important;
}
body:not(.landing-body) h3 {
  font-size: 13px !important;
}
body:not(.landing-body) h4 {
  font-size: 12px !important;
}
body:not(.landing-body) p,
body:not(.landing-body) li,
body:not(.landing-body) small,
body:not(.landing-body) span,
body:not(.landing-body) a,
body:not(.landing-body) button,
body:not(.landing-body) input,
body:not(.landing-body) select,
body:not(.landing-body) textarea,
body:not(.landing-body) td,
body:not(.landing-body) th,
body:not(.landing-body) label {
  font-size: 10.7px !important;
}
body:not(.landing-body) .label,
body:not(.landing-body) .field label,
body:not(.landing-body) .login-panel .label {
  font-size: 9.4px !important;
  font-weight: 650 !important;
  letter-spacing: 0.12em !important;
}
body:not(.landing-body) .kicker {
  font-size: 9.4px !important;
  letter-spacing: 0.18em !important;
}
body:not(.landing-body) b,
body:not(.landing-body) strong {
  font-weight: 650 !important;
}
body:not(.landing-body) .page-head h1,
body:not(.landing-body) .offer h3,
body:not(.landing-body) .queue-head h2,
body:not(.landing-body) .card h2,
body:not(.landing-body) .card h3 {
  font-weight: 800 !important;
}

/* Buttons and navigation should not look overly bold */
body:not(.landing-body) .btn,
body:not(.landing-body) .menu a,
body:not(.landing-body) .profile-pill,
body:not(.landing-body) .pill,
body:not(.landing-body) .chip,
body:not(.landing-body) .mini-status,
body:not(.landing-body) .doc-state,
body:not(.landing-body) .req,
body:not(.landing-body) .badge {
  font-weight: 650 !important;
  font-size: 10.5px !important;
}

/* Compact fields */
body:not(.landing-body) input,
body:not(.landing-body) select,
body:not(.landing-body) textarea,
body:not(.landing-body) .input {
  min-height: 34px !important;
  height: auto !important;
  padding: 7px 10px !important;
}
body:not(.landing-body) textarea {
  min-height: 76px !important;
}

/* Tables */
body:not(.landing-body) .app-table th {
  font-size: 9px !important;
  font-weight: 650 !important;
}
body:not(.landing-body) .app-table td {
  font-size: 10px !important;
}
body:not(.landing-body) .app-table td b {
  font-size: 10.2px !important;
  font-weight: 650 !important;
}
body:not(.landing-body) .app-table td small {
  font-size: 8.8px !important;
}

/* Officer dashboard refinement after smaller fonts */
.officer-dashboard-page .page-head h1 {
  font-size: 19px !important;
}
.officer-dashboard-page .stat h4 {
  font-size: 8.8px !important;
  font-weight: 650 !important;
}
.officer-dashboard-page .stat strong {
  font-size: 16px !important;
  font-weight: 650 !important;
}
.officer-dashboard-page .queue-head h2 {
  font-size: 14px !important;
}
.officer-dashboard-page .app-table th {
  font-size: 8.8px !important;
}
.officer-dashboard-page .app-table td {
  font-size: 9.8px !important;
}
.officer-dashboard-page .app-table .pill {
  font-size: 9px !important;
}
.officer-dashboard-page .mini-class {
  font-size: 8.8px !important;
}
.officer-dashboard-page .queue-risk-scale b {
  font-size: 10px !important;
  font-weight: 650 !important;
}
.officer-dashboard-page .queue-risk-scale em {
  font-size: 7.8px !important;
  font-weight: 650 !important;
}
.officer-dashboard-page .app-table .btn {
  font-size: 9.8px !important;
  font-weight: 650 !important;
}

/* Sponsor and review pages */
.sponsor-page .acc-head {
  font-size: 11px !important;
}
.sponsor-page .doc-card h4 {
  font-size: 11.5px !important;
}
.sponsor-page .doc-card p {
  font-size: 9.8px !important;
}
.sponsor-page .doc-card small {
  font-size: 8.8px !important;
}
.review-file-page .risk-title-row h2 {
  font-size: 15.5px !important;
}
.review-file-page .metric strong {
  font-size: 15px !important;
  font-weight: 650 !important;
}
.review-file-page .metric span {
  font-size: 8.8px !important;
}
.review-file-page .risk-score-scale .score-number {
  font-size: 25px !important;
  font-weight: 650 !important;
}
.review-file-page .risk-score-scale .score-caption {
  font-size: 7.5px !important;
}
.clean-doc-row .mini-status {
  font-size: 8px !important;
}
.clean-doc-row b {
  font-size: 10.2px !important;
  font-weight: 650 !important;
}
.clean-doc-row small {
  font-size: 9px !important;
}

/* Login pages: only reduce a little; keep hero readable */
body:has(.login-page) .login-copy h1 {
  font-size: 45px !important;
  font-weight: 800 !important;
}
body:has(.login-page) .login-copy p {
  font-size: 13px !important;
  font-weight: 500 !important;
}
body:has(.login-page) .auth-shell h2 {
  font-size: 19px !important;
  font-weight: 800 !important;
}
body:has(.login-page) .login-submit {
  font-weight: 650 !important;
}

/* Keep landing page marketing copy as designed, not affected by app compact mode */
.landing-body,
.landing-body * {
  font-weight: initial;
}

@media (max-width: 560px) {
  body:has(.login-page) .login-copy h1 {
    font-size: 36px !important;
    font-weight: 800 !important;
  }
}

/* v37 restore normal page scrolling for Sponsor Static UI and AI Review pages
   These pages should scroll with the browser/page normally.
   Only Initial Officer Dashboard keeps its own internal table scroll. */

/* Sponsor pages: normal browser/page scroll */
body.sponsor-page {
  height: auto !important;
  min-height: 100vh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}
body.sponsor-page .layout {
  height: auto !important;
  min-height: calc(100vh - 90px) !important;
  overflow: visible !important;
  display: grid !important;
}
body.sponsor-page .sidebar {
  min-height: calc(100vh - 90px) !important;
  height: auto !important;
  overflow: visible !important;
  position: relative !important;
}
body.sponsor-page .main {
  height: auto !important;
  min-height: calc(100vh - 90px) !important;
  overflow: visible !important;
  padding-bottom: 56px !important;
}

/* Review / AI review page: normal browser/page scroll */
body.review-file-page {
  height: auto !important;
  min-height: 100vh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}
body.review-file-page .layout {
  height: auto !important;
  min-height: calc(100vh - 90px) !important;
  overflow: visible !important;
  display: grid !important;
}
body.review-file-page .sidebar {
  min-height: calc(100vh - 90px) !important;
  height: auto !important;
  overflow: visible !important;
  position: relative !important;
}
body.review-file-page .main {
  height: auto !important;
  min-height: calc(100vh - 90px) !important;
  overflow: visible !important;
  display: block !important;
  padding-bottom: 56px !important;
}
body.review-file-page .review-layout.deep-review {
  height: auto !important;
  min-height: auto !important;
  overflow: visible !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 300px !important;
}
body.review-file-page .left-stack,
body.review-file-page .right-stack {
  height: auto !important;
  max-height: none !important;
  min-height: auto !important;
  overflow: visible !important;
}
body.review-file-page .risk-card {
  position: relative !important;
  top: auto !important;
  z-index: auto !important;
}

/* Keep only officer dashboard locked to viewport */
body.officer-dashboard-page {
  height: 100vh !important;
  overflow: hidden !important;
}
body.officer-dashboard-page .layout {
  height: calc(100vh - 90px) !important;
  overflow: hidden !important;
}
body.officer-dashboard-page .main {
  height: 100% !important;
  overflow: hidden !important;
}

/* Mobile: still allow page scroll for sponsor/review */
@media (max-width: 900px) {
  body.sponsor-page,
  body.review-file-page {
    height: auto !important;
    min-height: 100vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
  body.sponsor-page .layout,
  body.review-file-page .layout {
    height: auto !important;
    min-height: calc(100vh - 90px) !important;
    overflow: visible !important;
  }
  body.sponsor-page .main,
  body.review-file-page .main {
    height: auto !important;
    overflow: visible !important;
  }
  body.review-file-page .review-layout.deep-review {
    display: block !important;
  }
}

/* v38 hard fix: Review File page normal scrolling.
   This overrides all earlier app-shell overflow rules for review-file.html. */
html:has(body.review-file-page) {
  height: auto !important;
  min-height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}
body.review-file-page {
  height: auto !important;
  min-height: 100vh !important;
  max-height: none !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  position: static !important;
}
body.review-file-page .topbar,
body.review-file-page .rolebar {
  position: relative !important;
  top: auto !important;
  z-index: 20 !important;
}
body.review-file-page .layout {
  height: auto !important;
  min-height: calc(100vh - 90px) !important;
  max-height: none !important;
  overflow: visible !important;
  display: grid !important;
  grid-template-columns: 68px minmax(0, 1fr) !important;
}
body.review-file-page .sidebar {
  height: auto !important;
  min-height: calc(100vh - 90px) !important;
  max-height: none !important;
  overflow: visible !important;
  position: relative !important;
}
body.review-file-page .main {
  height: auto !important;
  min-height: calc(100vh - 90px) !important;
  max-height: none !important;
  overflow: visible !important;
  display: block !important;
  padding-bottom: 90px !important;
}
body.review-file-page .review-toolbar,
body.review-file-page .review-layout,
body.review-file-page .review-layout.deep-review,
body.review-file-page .left-stack,
body.review-file-page .right-stack,
body.review-file-page .card,
body.review-file-page .risk-card {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  position: relative !important;
  top: auto !important;
}
body.review-file-page .review-layout.deep-review {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 300px !important;
  align-items: start !important;
}
body.review-file-page .right-stack {
  align-self: start !important;
}
body.review-file-page .scroll-doc-list,
body.review-file-page .clean-doc-list {
  max-height: 190px !important;
  overflow-y: auto !important;
}
body.review-file-page::after {
  content: "";
  display: block;
  height: 1px;
}
@media (max-width: 900px) {
  body.review-file-page .layout {
    grid-template-columns: 68px minmax(0, 1fr) !important;
  }
  body.review-file-page .review-layout.deep-review {
    display: block !important;
  }
  body.review-file-page .right-stack {
    margin-top: 14px !important;
  }
}

/* v39 guaranteed functional scroll for Review File page.
   The main content panel itself scrolls; wheel/key events are also handled in JS. */
body.review-file-page {
  height: 100vh !important;
  overflow: hidden !important;
}
body.review-file-page .layout {
  height: calc(100vh - 100px) !important;
  min-height: 0 !important;
  overflow: hidden !important;
  display: grid !important;
  grid-template-columns: 68px minmax(0, 1fr) !important;
}
body.review-file-page .sidebar {
  height: 100% !important;
  overflow: hidden auto !important;
}
body.review-file-page .main {
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-y: scroll !important;
  overflow-x: hidden !important;
  display: block !important;
  padding-bottom: 120px !important;
  overscroll-behavior: contain !important;
  /* scroll-behavior: smooth !important; */
}
body.review-file-page .main::-webkit-scrollbar {
  width: 12px !important;
}
body.review-file-page .main::-webkit-scrollbar-track {
  background: #eaf1f8 !important;
}
body.review-file-page .main::-webkit-scrollbar-thumb {
  background: #9fb5d2 !important;
  border-radius: 999px !important;
  border: 3px solid #eaf1f8 !important;
}
body.review-file-page .review-layout.deep-review,
body.review-file-page .left-stack,
body.review-file-page .right-stack,
body.review-file-page .card,
body.review-file-page .risk-card {
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
  position: relative !important;
  top: auto !important;
}
body.review-file-page .review-layout.deep-review {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 300px !important;
  align-items: start !important;
}
body.review-file-page .right-stack {
  align-self: start !important;
}
body.review-file-page .main::after {
  content: "";
  display: block;
  height: 80px;
}
@media (max-width: 900px) {
  body.review-file-page .layout {
    height: calc(100vh - 90px) !important;
    grid-template-columns: 68px minmax(0, 1fr) !important;
  }
  body.review-file-page .review-layout.deep-review {
    display: block !important;
  }
}

/* v40 profile dropdown + active queue footer/table correction */

/* Profile dropdown should open above all panels and should not look hidden/cut */
.profile-menu {
  position: relative !important;
  z-index: 10000 !important;
}
.profile-dropdown {
  z-index: 10001 !important;
  right: 0 !important;
  left: auto !important;
  top: calc(100% + 10px) !important;
  width: 270px !important;
  max-width: calc(100vw - 24px) !important;
  border: 1px solid #cfe0f4 !important;
  box-shadow: 0 24px 70px rgba(0, 10, 40, 0.24) !important;
}
.profile-menu details[open] .profile-dropdown {
  display: block !important;
}
.profile-dropdown-head {
  display: grid !important;
  grid-template-columns: 54px minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: center !important;
}
.profile-dropdown-head small {
  display: block !important;
  max-width: 170px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.profile-dropdown .signout-btn {
  width: 100% !important;
  margin-top: 12px !important;
  min-height: 40px !important;
  background: #fff !important;
}

/* Make Initial Officer Dashboard exactly app-like: no page scrollbar, queue footer always visible */
html:has(body.officer-dashboard-page) {
  height: 100% !important;
  overflow: hidden !important;
}
body.officer-dashboard-page {
  height: 100vh !important;
  overflow: hidden !important;
}
body.officer-dashboard-page .topbar {
  height: 52px !important;
  flex: 0 0 52px !important;
}
body.officer-dashboard-page .rolebar {
  height: 36px !important;
  flex: 0 0 36px !important;
}
body.officer-dashboard-page .layout {
  height: calc(100vh - 88px) !important;
  min-height: 0 !important;
  overflow: hidden !important;
  display: grid !important;
  grid-template-columns: 68px minmax(0, 1fr) !important;
}
body.officer-dashboard-page .sidebar {
  height: 100% !important;
  overflow: hidden !important;
}
body.officer-dashboard-page .main {
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  padding: 12px 16px !important;
}

/* compact top area so table/footer always fits */
body.officer-dashboard-page .page-head {
  flex: 0 0 auto !important;
  margin: 0 !important;
}
body.officer-dashboard-page .page-head h1 {
  font-size: 19px !important;
  line-height: 1.1 !important;
  margin: 3px 0 !important;
}
body.officer-dashboard-page .page-head p {
  font-size: 10.5px !important;
  margin: 0 !important;
}
body.officer-dashboard-page .stats {
  flex: 0 0 auto !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 9px !important;
  margin: 5px 0 !important;
}
body.officer-dashboard-page .stat {
  min-height: 58px !important;
  padding: 8px 10px !important;
}
body.officer-dashboard-page .stat .avatar {
  width: 21px !important;
  height: 21px !important;
}
body.officer-dashboard-page .stat h4 {
  margin: 4px 0 1px !important;
  font-size: 8.5px !important;
}
body.officer-dashboard-page .stat strong {
  font-size: 15px !important;
}
body.officer-dashboard-page .filters {
  flex: 0 0 auto !important;
  margin: 0 !important;
  gap: 8px !important;
}
body.officer-dashboard-page .filters .btn {
  min-height: 27px !important;
  height: 27px !important;
  padding: 4px 9px !important;
  font-size: 10px !important;
}

/* queue card owns remaining height */
body.officer-dashboard-page .table-card {
  flex: 1 1 auto !important;
  min-height: 300px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
}
body.officer-dashboard-page .queue-head {
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 0 7px !important;
  border-bottom: 1px solid #dfe9f6 !important;
  display: grid !important;
  grid-template-columns: auto minmax(420px, 1fr) !important;
  gap: 12px !important;
  align-items: center !important;
}
body.officer-dashboard-page .queue-head h2 {
  font-size: 14px !important;
  white-space: nowrap !important;
}
body.officer-dashboard-page .search-row {
  display: grid !important;
  grid-template-columns: minmax(220px, 1fr) 210px !important;
  gap: 10px !important;
  align-items: center !important;
}
body.officer-dashboard-page .search-row input,
body.officer-dashboard-page .search-row select {
  height: 30px !important;
  min-height: 30px !important;
  font-size: 10px !important;
  border-radius: 8px !important;
}

/* table area: fixed header + internal scroll, at least 3 rows visible */
body.officer-dashboard-page .queue-table-scroll {
  flex: 1 1 auto !important;
  min-height: 214px !important;
  max-height: none !important;
  overflow: auto !important;
  margin-top: 8px !important;
  border: 1px solid #dde8f5 !important;
  border-radius: 10px !important;
  background: #fff !important;
  scrollbar-gutter: stable !important;
}
body.officer-dashboard-page .queue-table-scroll .app-table {
  min-width: 890px !important;
  width: 100% !important;
  margin: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}
body.officer-dashboard-page .queue-table-scroll thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 20 !important;
  background: #f7faff !important;
}
body.officer-dashboard-page .app-table th {
  height: 32px !important;
  padding: 6px 9px !important;
  font-size: 8.8px !important;
  line-height: 1.15 !important;
  border-bottom: 1px solid #dde8f5 !important;
}
body.officer-dashboard-page .app-table td {
  height: 48px !important;
  padding: 6px 9px !important;
  font-size: 9.6px !important;
  line-height: 1.18 !important;
}
body.officer-dashboard-page .app-table td b {
  font-size: 9.8px !important;
}
body.officer-dashboard-page .app-table td small {
  font-size: 8.4px !important;
}
body.officer-dashboard-page .app-table .pill {
  font-size: 8.8px !important;
  padding: 5px 7px !important;
  max-width: 148px !important;
}
body.officer-dashboard-page .mini-class {
  font-size: 8.5px !important;
  padding: 5px 7px !important;
  max-width: 158px !important;
}
body.officer-dashboard-page .queue-risk-scale {
  width: 94px !important;
}
body.officer-dashboard-page .queue-risk-scale b {
  font-size: 9.5px !important;
}
body.officer-dashboard-page .queue-risk-scale em {
  font-size: 7.5px !important;
}
body.officer-dashboard-page .app-table .btn {
  min-width: 76px !important;
  min-height: 28px !important;
  height: 28px !important;
  padding: 4px 8px !important;
  font-size: 9.5px !important;
}

/* footer/pagination always clear and visible */
body.officer-dashboard-page .queue-footer {
  flex: 0 0 38px !important;
  height: 38px !important;
  margin: 8px 0 0 !important;
  padding: 6px 2px 0 !important;
  border-top: 1px solid #dde9f7 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  background: #fff !important;
  color: #42587f !important;
  font-size: 10px !important;
}
body.officer-dashboard-page .queue-pagination {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  white-space: nowrap !important;
}
body.officer-dashboard-page .queue-pagination b {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 48px !important;
  height: 28px !important;
  color: #000a28 !important;
  font-size: 10.5px !important;
  font-weight: 750 !important;
}
body.officer-dashboard-page .queue-pagination .btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 66px !important;
  height: 30px !important;
  min-height: 30px !important;
  border: 1px solid #afc9ea !important;
  border-radius: 9px !important;
  background: #ffffff !important;
  color: #0b234f !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 10px rgba(0, 10, 40, 0.06) !important;
  opacity: 1 !important;
  visibility: visible !important;
}
body.officer-dashboard-page .queue-pagination .btn:first-child::before {
  content: "‹" !important;
  font-size: 16px !important;
  margin-right: 5px !important;
}
body.officer-dashboard-page .queue-pagination .btn:last-child::after {
  content: "›" !important;
  font-size: 16px !important;
  margin-left: 5px !important;
}

/* Do not allow profile menu to create horizontal/vertical layout jumps */
body.officer-dashboard-page .profile-dropdown,
body.review-file-page .profile-dropdown {
  position: absolute !important;
}

/* Review page profile should not cover the right card awkwardly */
body.review-file-page .profile-menu details[open] .profile-dropdown {
  right: 0 !important;
}

/* responsive */
@media (max-width: 900px) {
  body.officer-dashboard-page .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  body.officer-dashboard-page .queue-head {
    grid-template-columns: 1fr !important;
    gap: 7px !important;
  }
  body.officer-dashboard-page .search-row {
    grid-template-columns: 1fr !important;
  }
  body.officer-dashboard-page .queue-table-scroll .app-table {
    min-width: 800px !important;
  }
}

/* v41 officer active queue alignment and visible pagination */
body.officer-dashboard-page .main {
  padding: 12px 18px 14px !important;
  gap: 7px !important;
}
body.officer-dashboard-page .page-head {
  margin: 0 0 2px !important;
}
body.officer-dashboard-page .page-head h1 {
  font-size: 17px !important;
  margin: 2px 0 2px !important;
}
body.officer-dashboard-page .page-head p {
  font-size: 10px !important;
  line-height: 1.35 !important;
}
body.officer-dashboard-page .stats {
  gap: 10px !important;
  margin: 4px 0 6px !important;
}
body.officer-dashboard-page .stat {
  min-height: 68px !important;
  height: 68px !important;
  padding: 10px 11px !important;
}
body.officer-dashboard-page .stat:after {
  width: 62px !important;
  height: 62px !important;
  right: -14px !important;
  top: -18px !important;
}
body.officer-dashboard-page .stat h4 {
  margin: 7px 0 2px !important;
  font-size: 8px !important;
}
body.officer-dashboard-page .stat strong {
  font-size: 14px !important;
}
body.officer-dashboard-page .filters {
  margin: 0 0 6px !important;
  gap: 8px !important;
}
body.officer-dashboard-page .filters .btn {
  padding: 4px 9px !important;
}
body.officer-dashboard-page .table-card {
  padding: 10px 12px 8px !important;
  min-height: 0 !important;
}
body.officer-dashboard-page .queue-head {
  display: grid !important;
  grid-template-columns: auto 500px !important;
  align-items: center !important;
  gap: 14px !important;
  padding-bottom: 8px !important;
  margin: 0 !important;
}
body.officer-dashboard-page .queue-head h2 {
  margin: 0 !important;
  align-self: center !important;
}
body.officer-dashboard-page .search-row {
  width: 500px !important;
  min-width: 500px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 170px !important;
  gap: 10px !important;
  justify-self: end !important;
  align-items: center !important;
}
body.officer-dashboard-page .search-row input,
body.officer-dashboard-page .search-row select {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}
body.officer-dashboard-page .queue-table-scroll {
  min-height: 226px !important;
  height: 226px !important;
  max-height: 226px !important;
  margin-top: 7px !important;
}
body.officer-dashboard-page .app-table th {
  padding: 6px 8px !important;
}
body.officer-dashboard-page .app-table td {
  padding: 5px 8px !important;
  height: 46px !important;
}
body.officer-dashboard-page .queue-footer {
  flex: 0 0 34px !important;
  height: 34px !important;
  margin-top: 6px !important;
  padding: 6px 0 0 !important;
  position: relative !important;
  z-index: 5 !important;
}
body.officer-dashboard-page .queue-pagination {
  gap: 6px !important;
}
body.officer-dashboard-page .queue-pagination .btn {
  min-width: 70px !important;
  height: 28px !important;
  font-size: 10px !important;
  border-color: #9ebfe6 !important;
  background: #fff !important;
}
body.officer-dashboard-page .queue-pagination b {
  min-width: 54px !important;
}

@media (max-width: 1260px) {
  body.officer-dashboard-page .queue-head {
    grid-template-columns: 1fr !important;
  }
  body.officer-dashboard-page .search-row {
    justify-self: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
  }
}
@media (max-width: 760px) {
  body.officer-dashboard-page .stats {
    grid-template-columns: 1fr 1fr !important;
  }
  body.officer-dashboard-page .queue-head {
    display: block !important;
  }
  body.officer-dashboard-page .search-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    min-width: 0 !important;
    margin-top: 10px !important;
  }
}

/* v42 smaller widgets/cards height */
body.officer-dashboard-page .stats {
  margin: 3px 0 5px !important;
  gap: 9px !important;
}
body.officer-dashboard-page .stat {
  min-height: 54px !important;
  height: 54px !important;
  padding: 7px 10px !important;
}
body.officer-dashboard-page .stat .avatar {
  width: 19px !important;
  height: 19px !important;
}
body.officer-dashboard-page .stat .stat-icon {
  width: 13px !important;
  height: 13px !important;
}
body.officer-dashboard-page .stat h4 {
  margin: 4px 0 1px !important;
  font-size: 7.8px !important;
  letter-spacing: 0.12em !important;
}
body.officer-dashboard-page .stat strong {
  font-size: 13px !important;
  line-height: 1 !important;
}
body.officer-dashboard-page .stat:after {
  width: 52px !important;
  height: 52px !important;
  right: -13px !important;
  top: -17px !important;
}

/* smaller review widgets/cards too */
.review-file-page .profile-card .profile-top {
  padding: 18px !important;
}
.review-file-page .profile-photo {
  width: 78px !important;
  height: 78px !important;
  font-size: 22px !important;
}
.review-file-page .profile-info-grid {
  gap: 8px !important;
  padding: 12px !important;
}
.review-file-page .info-box {
  padding: 9px !important;
}
.review-file-page .card {
  border-radius: 12px !important;
}
.review-file-page .matrix-head,
.review-file-page .dark-head {
  padding: 12px 16px !important;
}
.review-file-page .metric {
  padding: 9px !important;
}
.review-file-page .summary-box {
  padding: 12px !important;
}

/* sponsor form widgets/cards smaller */
.sponsor-page .accordion {
  margin-bottom: 8px !important;
}
.sponsor-page .acc-head {
  min-height: 40px !important;
  height: 40px !important;
  padding: 8px 12px !important;
}
.sponsor-page .accordion-icon {
  width: 22px !important;
  height: 22px !important;
  flex-basis: 22px !important;
}
.sponsor-page .step-no {
  width: 20px !important;
  height: 20px !important;
  font-size: 10px !important;
}
.sponsor-page .acc-body {
  padding: 12px !important;
}
.sponsor-page .section-card,
.sponsor-page .card {
  border-radius: 11px !important;
}
.sponsor-page .doc-card {
  padding: 10px !important;
}
.sponsor-page .upload-box {
  min-height: 42px !important;
  padding: 10px !important;
}

/* dashboard table gets a little more room because cards are smaller */
body.officer-dashboard-page .queue-table-scroll {
  height: 240px !important;
  max-height: 240px !important;
}

/* v43 FINAL: Sponsor Static UI normal scroll fix
   Applies to New Application, All Sections, My Applications, Terms & Overview and Terms Preview.
   The page must scroll normally with mouse wheel / touchpad / keyboard.
   Only the officer dashboard queue should keep internal scrolling. */
html:has(body.sponsor-page) {
  height: auto !important;
  min-height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}
body.sponsor-page {
  height: auto !important;
  min-height: 100vh !important;
  max-height: none !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}
body.sponsor-page .layout {
  height: auto !important;
  min-height: calc(100vh - 100px) !important;
  max-height: none !important;
  overflow: visible !important;
  align-items: stretch !important;
}
body.sponsor-page .sidebar {
  height: auto !important;
  min-height: calc(100vh - 100px) !important;
  max-height: none !important;
  overflow: visible !important;
  position: relative !important;
}
body.sponsor-page .main {
  height: auto !important;
  min-height: calc(100vh - 100px) !important;
  max-height: none !important;
  overflow: visible !important;
  padding-bottom: 64px !important;
}
body.sponsor-page .table-card {
  max-height: none !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
}
body.sponsor-page .accordion,
body.sponsor-page .acc-body,
body.sponsor-page .offer,
body.sponsor-page .term-offer-card,
body.sponsor-page .terms-card,
body.sponsor-page .card {
  max-height: none !important;
  overflow: visible !important;
}
@media (max-width: 900px) {
  html:has(body.sponsor-page),
  body.sponsor-page,
  body.sponsor-page .layout,
  body.sponsor-page .sidebar,
  body.sponsor-page .main {
    height: auto !important;
    max-height: none !important;
    overflow-y: visible !important;
  }
  body.sponsor-page {
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
  body.sponsor-page .layout {
    min-height: calc(100vh - 100px) !important;
  }
}

/* v44 Sponsor submit footer + profile dropdown fix */
body.sponsor-page .topbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 10000 !important;
  overflow: visible !important;
}
body.sponsor-page .rolebar {
  position: relative !important;
  z-index: 10 !important;
}
body.sponsor-page .profile-menu,
body.sponsor-page .profile-menu details {
  position: relative !important;
  z-index: 10002 !important;
  overflow: visible !important;
}
body.sponsor-page .profile-menu details[open] .profile-dropdown {
  display: block !important;
  position: absolute !important;
  right: 0 !important;
  top: calc(100% + 10px) !important;
  z-index: 10003 !important;
  transform: none !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
body.sponsor-page .sponsor-submit-cta {
  margin: 14px 0 50px !important;
  min-height: 58px !important;
  padding: 14px 16px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #243184, #15366f) !important;
  color: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  box-shadow: 0 16px 34px rgba(9, 26, 74, 0.16) !important;
}
body.sponsor-page .sponsor-submit-cta h3 {
  margin: 0 0 3px !important;
  font-size: 14px !important;
  line-height: 1.15 !important;
  color: #fff !important;
}
body.sponsor-page .sponsor-submit-cta p {
  margin: 0 !important;
  color: #eaf4ff !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}
body.sponsor-page .sponsor-submit-cta .btn {
  flex: 0 0 auto !important;
  min-width: 120px !important;
  justify-content: center !important;
  padding: 10px 16px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
}
@media (max-width: 760px) {
  body.sponsor-page .profile-menu details[open] .profile-dropdown {
    right: 0 !important;
    width: 260px !important;
  }
  body.sponsor-page .sponsor-submit-cta {
    align-items: flex-start !important;
    flex-direction: column !important;
  }
  body.sponsor-page .sponsor-submit-cta .btn {
    width: 100% !important;
  }
}

/* v45 FINAL: Sponsor tab content scroll fix
   Keep Sponsor header/rolebar visible and make the application content area scrollable.
   This fixes opened accordion/tab content being cut off on desktop screens. */
body.sponsor-page {
  height: 100vh !important;
  min-height: 100vh !important;
  overflow: hidden !important;
}
body.sponsor-page .topbar {
  flex: 0 0 64px !important;
}
body.sponsor-page .rolebar {
  flex: 0 0 44px !important;
}
body.sponsor-page .layout {
  height: calc(100vh - 108px) !important;
  min-height: 0 !important;
  max-height: calc(100vh - 108px) !important;
  overflow: hidden !important;
}
body.sponsor-page .sidebar {
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}
body.sponsor-page .main {
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  /* scroll-behavior: smooth !important; */
  padding-bottom: 96px !important;
}
body.sponsor-page .main::-webkit-scrollbar {
  width: 10px !important;
}
body.sponsor-page .main::-webkit-scrollbar-thumb {
  background: #b8c9e2 !important;
  border-radius: 999px !important;
  border: 2px solid #eef5fc !important;
}
body.sponsor-page .accordion,
body.sponsor-page .acc-body,
body.sponsor-page details.accordion[open] {
  overflow: visible !important;
  max-height: none !important;
}
body.sponsor-page .section-actions,
body.sponsor-page .sticky-actions {
  position: static !important;
}
@media (max-width: 900px) {
  body.sponsor-page {
    height: auto !important;
    min-height: 100vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
  body.sponsor-page .layout,
  body.sponsor-page .main,
  body.sponsor-page .sidebar {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

/* v46 FINAL: Sponsor Static UI normal page scroll fix.
   This must stay at the end of the file so it wins over older scroll-lock rules. */
html:has(body.sponsor-page) {
  height: auto !important;
  min-height: 100% !important;
  max-height: none !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}
body.sponsor-page {
  height: auto !important;
  min-height: 100vh !important;
  max-height: none !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}
body.sponsor-page .layout {
  height: auto !important;
  min-height: calc(100vh - 108px) !important;
  max-height: none !important;
  overflow: visible !important;
}
body.sponsor-page .main {
  height: auto !important;
  min-height: calc(100vh - 108px) !important;
  max-height: none !important;
  overflow-y: visible !important;
  overflow-x: hidden !important;
  padding-bottom: 110px !important;
}
body.sponsor-page .sidebar {
  height: auto !important;
  min-height: calc(100vh - 108px) !important;
  max-height: none !important;
  overflow: visible !important;
}
body.sponsor-page .accordion,
body.sponsor-page .acc-body,
body.sponsor-page details.accordion[open],
body.sponsor-page .section-card,
body.sponsor-page .card {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}
body.sponsor-page .topbar {
  position: relative !important;
  z-index: 1000 !important;
  overflow: visible !important;
}
body.sponsor-page .rolebar {
  position: relative !important;
  z-index: 900 !important;
}
body.sponsor-page .profile-menu,
body.sponsor-page .profile-menu details {
  position: relative !important;
  z-index: 2000 !important;
  overflow: visible !important;
}
body.sponsor-page .profile-menu details[open] .profile-dropdown {
  position: absolute !important;
  top: calc(100% + 10px) !important;
  right: 0 !important;
  z-index: 3000 !important;
}

/* v47 FINAL: Sponsor accordion/tab content must scroll inside the main content area.
   Header + rolebar + sidebar remain visible. Wheel/touchpad over opened tab body scrolls .main. */
html:has(body.sponsor-page) {
  height: 100% !important;
  min-height: 100% !important;
  max-height: 100% !important;
  overflow: hidden !important;
}
body.sponsor-page {
  height: 100vh !important;
  min-height: 100vh !important;
  max-height: 100vh !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}
body.sponsor-page .topbar {
  flex: 0 0 58px !important;
  height: 58px !important;
  position: relative !important;
  z-index: 3000 !important;
  overflow: visible !important;
}
body.sponsor-page .rolebar {
  flex: 0 0 42px !important;
  height: 42px !important;
  position: relative !important;
  z-index: 2500 !important;
}
body.sponsor-page .layout {
  flex: 1 1 auto !important;
  height: calc(100vh - 100px) !important;
  min-height: 0 !important;
  max-height: calc(100vh - 100px) !important;
  overflow: hidden !important;
  display: grid !important;
  grid-template-columns: 186px minmax(0, 1fr) !important;
}
body.sponsor-page.sidebar-collapsed .layout {
  grid-template-columns: 68px minmax(0, 1fr) !important;
}
body.sponsor-page .sidebar {
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}
body.sponsor-page .main {
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  overflow-y: scroll !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
  padding-bottom: 120px !important;
}
body.sponsor-page .main::-webkit-scrollbar {
  width: 10px !important;
}
body.sponsor-page .main::-webkit-scrollbar-thumb {
  background: #b8c9e2 !important;
  border-radius: 999px !important;
  border: 2px solid #eef5fc !important;
}
body.sponsor-page .main::-webkit-scrollbar-track {
  background: #eef5fc !important;
}
body.sponsor-page .accordion,
body.sponsor-page details.accordion[open],
body.sponsor-page .acc-body,
body.sponsor-page .section-card,
body.sponsor-page .card {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}
body.sponsor-page .section-actions,
body.sponsor-page .sticky-actions {
  position: static !important;
}
body.sponsor-page .profile-menu,
body.sponsor-page .profile-menu details {
  overflow: visible !important;
  z-index: 4000 !important;
}
body.sponsor-page .profile-menu details[open] .profile-dropdown {
  z-index: 5000 !important;
}
@media (max-width: 900px) {
  html:has(body.sponsor-page) {
    height: auto !important;
    max-height: none !important;
    overflow-y: auto !important;
  }
  body.sponsor-page {
    height: auto !important;
    max-height: none !important;
    overflow-y: auto !important;
    display: block !important;
  }
  body.sponsor-page .layout {
    height: auto !important;
    max-height: none !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    overflow: visible !important;
  }
  body.sponsor-page .sidebar,
  body.sponsor-page .main {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

/* v48 FINAL: Sponsor My Applications + Terms pages scroll fix.
   Main content must scroll from anywhere inside My Applications table or Terms cards.
   Table cards may scroll horizontally only; vertical wheel is handled by .main. */
body.sponsor-page .main {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-gutter: stable !important;
}
body.sponsor-page .table-card,
body.sponsor-page .terms-grid,
body.sponsor-page .term-offer-card,
body.sponsor-page .offer,
body.sponsor-page .terms-card {
  overflow-y: visible !important;
  max-height: none !important;
}
body.sponsor-page .table-card {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
}
body.sponsor-page .app-table {
  margin-bottom: 40px !important;
}
body.sponsor-page .term-offer-card {
  margin-bottom: 80px !important;
}
body.sponsor-page .main * {
  overscroll-behavior: auto !important;
}

/* v49 FINAL: Sponsor Static UI smooth normal page scroll for all sponsor pages.
   Fixes: left side clipping, jerky wheel behavior, and opened accordion/tab content not scrolling. */
html:has(body.sponsor-page) {
  height: auto !important;
  min-height: 100% !important;
  max-height: none !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  /* scroll-behavior: smooth !important; */
}
body.sponsor-page {
  height: auto !important;
  min-height: 100vh !important;
  max-height: none !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  display: block !important;
  /* scroll-behavior: smooth !important; */
}
body.sponsor-page .topbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 5000 !important;
  overflow: visible !important;
}
body.sponsor-page .rolebar {
  position: sticky !important;
  top: 58px !important;
  z-index: 4500 !important;
}
body.sponsor-page .layout {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: calc(100vh - 100px) !important;
  max-height: none !important;
  overflow: visible !important;
  display: grid !important;
  grid-template-columns: 176px minmax(0, 1fr) !important;
  align-items: start !important;
}
body.sidebar-collapsed.sponsor-page .layout {
  grid-template-columns: 68px minmax(0, 1fr) !important;
}
body.sponsor-page .sidebar {
  position: sticky !important;
  top: 100px !important;
  align-self: start !important;
  height: calc(100vh - 100px) !important;
  min-height: 0 !important;
  max-height: calc(100vh - 100px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  z-index: 100 !important;
}
body.sponsor-page .main {
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: calc(100vh - 100px) !important;
  max-height: none !important;
  overflow-y: visible !important;
  overflow-x: hidden !important;
  padding: 18px 30px 110px !important;
  margin: 0 !important;
  overscroll-behavior: auto !important;
}
body.sponsor-page .main,
body.sponsor-page .main * {
  -webkit-overflow-scrolling: touch !important;
}
body.sponsor-page .accordion,
body.sponsor-page details.accordion[open],
body.sponsor-page .acc-body,
body.sponsor-page .section-card,
body.sponsor-page .card,
body.sponsor-page .terms-grid,
body.sponsor-page .terms-card,
body.sponsor-page .term-offer-card,
body.sponsor-page .terms-card-grid {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}
body.sponsor-page .table-card {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  padding: 18px 18px 24px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  scrollbar-gutter: stable !important;
}
body.sponsor-page .app-table {
  width: 100% !important;
  min-width: 1100px !important;
  table-layout: auto !important;
  margin: 0 !important;
}
body.sponsor-page .app-table th,
body.sponsor-page .app-table td {
  white-space: normal !important;
  vertical-align: middle !important;
}
body.sponsor-page .section-actions,
body.sponsor-page .sticky-actions {
  position: static !important;
}
body.sponsor-page .profile-menu,
body.sponsor-page .profile-menu details {
  position: relative !important;
  z-index: 7000 !important;
  overflow: visible !important;
}
body.sponsor-page .profile-menu details[open] .profile-dropdown {
  z-index: 8000 !important;
}
@media (max-width: 900px) {
  body.sponsor-page .topbar,
  body.sponsor-page .rolebar {
    position: relative !important;
    top: auto !important;
  }
  body.sponsor-page .layout {
    grid-template-columns: 68px minmax(0, 1fr) !important;
  }
  body.sponsor-page .sidebar {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    max-height: none !important;
  }
  body.sponsor-page .main {
    padding: 16px 14px 90px !important;
  }
}

/* v50 FINAL MOBILE FIX: Sponsor + Credit Officer hamburger/sidebar layout
   On phones/tablets, do not keep a 176px left rail beside the content.
   Convert navigation into a compact horizontal bar so the page/table/form gets full width. */
@media (max-width: 900px) {
  html,
  body:not(.landing-body):not(:has(.login-page)),
  body.sponsor-page,
  body.officer-dashboard-page {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 100vh !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  body:not(.landing-body):not(:has(.login-page)) .topbar {
    height: 58px !important;
    padding: 0 12px !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 6000 !important;
    overflow: visible !important;
  }
  body:not(.landing-body):not(:has(.login-page)) .rolebar {
    height: 40px !important;
    position: sticky !important;
    top: 58px !important;
    z-index: 5500 !important;
    overflow: visible !important;
  }
  body:not(.landing-body):not(:has(.login-page)) .rolebar span {
    padding: 13px 24px !important;
    white-space: nowrap !important;
  }

  body:not(.landing-body):not(:has(.login-page)) .layout,
  body.sidebar-collapsed:not(.landing-body):not(:has(.login-page)) .layout,
  body:not(.sidebar-collapsed):not(.landing-body):not(:has(.login-page))
    .layout,
  body.sponsor-page .layout,
  body.sidebar-collapsed.sponsor-page .layout,
  body.officer-dashboard-page .layout {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  body:not(.landing-body):not(:has(.login-page)) .sidebar,
  body.sidebar-collapsed:not(.landing-body):not(:has(.login-page)) .sidebar,
  body:not(.sidebar-collapsed):not(.landing-body):not(:has(.login-page))
    .sidebar,
  body.sponsor-page .sidebar,
  body.officer-dashboard-page .sidebar {
    position: sticky !important;
    top: 98px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 5200 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 8px 10px !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--line) !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 8px 22px rgba(0, 10, 40, 0.06) !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    -webkit-overflow-scrolling: touch !important;
  }

  body:not(.landing-body):not(:has(.login-page)) .hamb,
  body.sidebar-collapsed:not(.landing-body):not(:has(.login-page)) .hamb,
  body:not(.sidebar-collapsed):not(.landing-body):not(:has(.login-page)) .hamb {
    flex: 0 0 40px !important;
    width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    border-radius: 10px !important;
  }

  body:not(.landing-body):not(:has(.login-page)) .menu,
  body.sidebar-collapsed:not(.landing-body):not(:has(.login-page)) .menu,
  body:not(.sidebar-collapsed):not(.landing-body):not(:has(.login-page)) .menu {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: max-content !important;
    min-width: max-content !important;
    overflow: visible !important;
  }

  body:not(.landing-body):not(:has(.login-page)) .menu a,
  body.sidebar-collapsed:not(.landing-body):not(:has(.login-page)) .menu a,
  body:not(.sidebar-collapsed):not(.landing-body):not(:has(.login-page))
    .menu
    a {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 44px !important;
    min-height: 40px !important;
    padding: 9px 12px !important;
    justify-content: center !important;
    border-radius: 12px !important;
    white-space: nowrap !important;
  }

  body:not(.landing-body):not(:has(.login-page)) .menu a .txt,
  body.sidebar-collapsed:not(.landing-body):not(:has(.login-page)) .menu a .txt,
  body:not(.sidebar-collapsed):not(.landing-body):not(:has(.login-page))
    .menu
    a
    .txt {
    display: inline !important;
    font-size: 12px !important;
  }
  body:not(.landing-body):not(:has(.login-page)) .menu a .badge,
  body.sidebar-collapsed:not(.landing-body):not(:has(.login-page))
    .menu
    a
    .badge,
  body:not(.sidebar-collapsed):not(.landing-body):not(:has(.login-page))
    .menu
    a
    .badge {
    display: grid !important;
  }

  body:not(.landing-body):not(:has(.login-page)) .main,
  body.sponsor-page .main,
  body.officer-dashboard-page .main {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 14px 12px 90px !important;
    margin: 0 !important;
  }

  body.officer-dashboard-page .stats,
  body.sponsor-page .stats {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  body.officer-dashboard-page .filters,
  body.sponsor-page .filters {
    overflow-x: auto !important;
    padding-bottom: 4px !important;
  }
  body.officer-dashboard-page .table-card,
  body.sponsor-page .table-card {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
  }
  body.officer-dashboard-page .queue-table-scroll {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
  }
}

@media (max-width: 420px) {
  body:not(.landing-body):not(:has(.login-page)) .brand-word {
    font-size: 20px !important;
  }
  body:not(.landing-body):not(:has(.login-page)) .brand-sub {
    font-size: 8px !important;
    margin-left: 50px !important;
  }
  body:not(.landing-body):not(:has(.login-page)) .profile-pill {
    padding: 6px 9px !important;
    font-size: 10.5px !important;
    gap: 6px !important;
  }
  body:not(.landing-body):not(:has(.login-page)) .avatar {
    width: 26px !important;
    height: 26px !important;
  }
  body:not(.landing-body):not(:has(.login-page)) .page-head {
    display: block !important;
  }
  body:not(.landing-body):not(:has(.login-page)) .progress {
    min-width: 0 !important;
    margin-top: 10px !important;
  }
  body:not(.landing-body):not(:has(.login-page)) .menu a .txt {
    font-size: 11px !important;
  }
}

/* v51 FINAL: mobile hamburger must hide/unhide menu on Sponsor + Credit Officer pages */
@media (max-width: 900px) {
  /* collapsed state: show only hamburger row, hide nav links */
  body.sidebar-collapsed:not(.landing-body):not(:has(.login-page)) .sidebar {
    width: 64px !important;
    max-width: 64px !important;
    min-width: 64px !important;
    padding: 8px 10px !important;
    overflow: visible !important;
  }
  body.sidebar-collapsed:not(.landing-body):not(:has(.login-page)) .menu {
    display: none !important;
  }
  body.sidebar-collapsed:not(.landing-body):not(:has(.login-page)) .hamb {
    margin: 0 !important;
  }

  /* expanded state: show hamburger + full horizontal nav */
  body:not(.sidebar-collapsed):not(.landing-body):not(:has(.login-page))
    .sidebar {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
  }
  body:not(.sidebar-collapsed):not(.landing-body):not(:has(.login-page)) .menu {
    display: flex !important;
  }
}

/* v52 FINAL RESPONSIVE PACKAGE: whole mockup mobile + desktop smooth scrolling
   Covers Sponsor Static UI, Credit Officer UI, Review File, My Applications, Terms, Login and Landing pages. */
html {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  /* scroll-behavior: smooth !important; */
}
body {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 100vh !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
}
body:not(.landing-body) .layout {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}
body:not(.landing-body) .main {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}
img,
video,
canvas,
iframe,
object,
embed {
  max-width: 100% !important;
}
input,
select,
textarea,
button {
  max-width: 100% !important;
}
.table-card,
.matrix,
.card,
.section-card,
.accordion,
.terms-card,
.term-offer-card,
.terms-preview-shell {
  max-width: 100% !important;
}
.table-card {
  overflow-x: auto !important;
  overflow-y: visible !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-x pan-y !important;
}
.app-table,
.queue-table,
.comparison-table {
  min-width: 980px !important;
}
.field-grid,
.document-grid,
.conditional-doc-grid,
.terms-card-grid,
.rule-summary-grid,
.metric-grid,
.stats,
.filters,
.review-layout,
.review-layout.deep-review,
.hero-grid,
.process-grid {
  min-width: 0 !important;
}
.acc-body,
.section-card,
.card,
.terms-grid,
.terms-card,
.term-offer-card,
details.accordion[open] {
  overflow: visible !important;
}
.sticky-actions,
.section-actions {
  position: sticky !important;
  bottom: 0 !important;
  z-index: 50 !important;
}

@media (min-width: 901px) {
  body.sponsor-page .layout,
  body.officer-dashboard-page .layout,
  body.review-file-page .layout {
    display: grid !important;
    grid-template-columns: 176px minmax(0, 1fr) !important;
    align-items: start !important;
  }
  body.sidebar-collapsed.sponsor-page .layout,
  body.sidebar-collapsed.officer-dashboard-page .layout,
  body.sidebar-collapsed.review-file-page .layout {
    grid-template-columns: 68px minmax(0, 1fr) !important;
  }
  body.sponsor-page .main,
  body.officer-dashboard-page .main,
  body.review-file-page .main {
    padding-left: 28px !important;
    padding-right: 28px !important;
  }
}

@media (max-width: 900px) {
  html,
  body {
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }
  body:not(.landing-body) .topbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 9000 !important;
    height: 58px !important;
    padding: 0 10px !important;
    gap: 8px !important;
  }
  body:not(.landing-body) .topbar .sg-logo-img {
    width: 132px !important;
    height: auto !important;
  }
  body:not(.landing-body) .profile-pill {
    flex: 0 0 auto !important;
    max-width: 150px !important;
    padding: 6px 9px !important;
    gap: 6px !important;
    font-size: 11px !important;
    white-space: nowrap !important;
  }
  body:not(.landing-body) .profile-pill span:not(.avatar) {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  body:not(.landing-body) .avatar {
    width: 28px !important;
    height: 28px !important;
    flex: 0 0 28px !important;
  }
  body:not(.landing-body) .rolebar {
    position: sticky !important;
    top: 58px !important;
    z-index: 8500 !important;
    height: 40px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
  }
  body:not(.landing-body) .rolebar span {
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 24px !important;
    white-space: nowrap !important;
  }
  body:not(.landing-body) .layout,
  body.sidebar-collapsed:not(.landing-body) .layout {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
  }
  body:not(.landing-body) .sidebar {
    position: sticky !important;
    top: 98px !important;
    z-index: 8000 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: none !important;
    padding: 8px 10px !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--line) !important;
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 8px 22px rgba(0, 10, 40, 0.07) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
  }
  body:not(.landing-body) .hamb {
    flex: 0 0 40px !important;
    width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    border-radius: 10px !important;
    font-size: 23px !important;
  }
  body:not(.landing-body) .menu {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: max-content !important;
    min-width: max-content !important;
  }
  body:not(.landing-body) .menu a {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 44px !important;
    min-height: 40px !important;
    padding: 9px 12px !important;
    white-space: nowrap !important;
    justify-content: center !important;
  }
  body:not(.landing-body) .menu a .txt {
    display: inline !important;
    font-size: 12px !important;
  }
  body.sidebar-collapsed:not(.landing-body) .sidebar {
    width: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
    overflow: visible !important;
  }
  body.sidebar-collapsed:not(.landing-body) .menu {
    display: none !important;
  }
  body:not(.landing-body) .main,
  body.sponsor-page .main,
  body.officer-dashboard-page .main,
  body.review-file-page .main {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    padding: 14px 12px 96px !important;
    margin: 0 !important;
  }
  .page-head {
    display: block !important;
    margin-bottom: 14px !important;
  }
  .page-head h1 {
    font-size: 22px !important;
    line-height: 1.16 !important;
    margin: 5px 0 !important;
  }
  .page-head p {
    font-size: 12px !important;
    line-height: 1.45 !important;
  }
  .progress {
    min-width: 0 !important;

    margin-top: 12px !important;
  }
  .field-grid,
  .review-layout,
  .review-layout.deep-review,
  .terms-grid,
  .terms-card-grid,
  .hero-grid,
  .process-grid {
    grid-template-columns: 1fr !important;
  }
  .document-grid,
  .conditional-doc-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .stats {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  .stat {
    height: auto !important;
    min-height: 92px !important;
    padding: 16px !important;
  }
  .filters,
  .queue-head,
  .search-row,
  .doc-panel-meta,
  .radio-row {
    flex-wrap: wrap !important;
  }
  .search-row input,
  .search-row select,
  .filters input,
  .filters select {
    width: 100% !important;
    min-width: 180px !important;
  }
  .table-card {
    padding: 12px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 12px !important;
  }
  .app-table,
  .queue-table,
  .comparison-table {
    min-width: 860px !important;
    font-size: 12px !important;
  }
  .app-table th,
  .app-table td,
  .queue-table th,
  .queue-table td {
    padding: 10px 12px !important;
  }
  .acc-head {
    min-height: 44px !important;
    height: auto !important;
    padding: 10px 12px !important;
    gap: 8px !important;
  }
  .acc-body {
    padding: 12px !important;
  }
  .sticky-actions,
  .section-actions {
    margin-left: -12px !important;
    margin-right: -12px !important;
    padding: 10px 12px !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
  }
  .sticky-actions .btn,
  .section-actions .btn {
    flex: 1 1 140px !important;
  }
  .login-page {
    display: block !important;
    min-height: 100vh !important;
    /* background:#eef7ff!important; */
    background: linear-gradient(
      180deg,
      #000a28 0%,
      #071a44 68.1%,
      #ffffff 68.1%,
      #ffffff 100%
    ) !important;
  }
  .login-left {
    padding: 28px 18px !important;
  }
  .login-left h1 {
    margin: 32px 0 12px !important;
    font-size: 34px !important;
    line-height: 1.15 !important;
  }
  .login-panel {
    padding: 24px 18px 42px !important;
  }
  .hero {
    min-height: auto !important;
    padding: 22px 18px 44px !important;
  }
  .hero h1 {
    font-size: 40px !important;
    line-height: 1.12 !important;
  }
  .hero p {
    font-size: 16px !important;
  }
  .landing-links {
    display: none !important;
  }
}

@media (max-width: 560px) {
  body:not(.landing-body) .topbar {
    height: 56px !important;
  }
  body:not(.landing-body) .rolebar {
    top: 56px !important;
    height: 38px !important;
  }
  body:not(.landing-body) .sidebar {
    top: 94px !important;
  }
  body:not(.landing-body) .topbar .sg-logo-img {
    width: 118px !important;
  }
  body:not(.landing-body) .profile-pill {
    max-width: 126px !important;
    font-size: 10px !important;
  }
  body:not(.landing-body) .main {
    padding: 12px 10px 92px !important;
  }
  .page-head h1 {
    font-size: 20px !important;
  }
  .stats,
  .document-grid,
  .conditional-doc-grid,
  .metric-grid,
  .rule-summary-grid {
    grid-template-columns: 1fr !important;
  }
  .field-grid {
    gap: 12px !important;
  }
  .radio-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .radio-tile {
    width: 100% !important;
    justify-content: flex-start !important;
  }
  .app-table,
  .queue-table,
  .comparison-table {
    min-width: 760px !important;
  }
  .btn {
    padding: 9px 12px !important;
    font-size: 12px !important;
  }
  .input,
  select,
  textarea {
    font-size: 13px !important;
  }
  .profile-dropdown {
    right: 0 !important;
    max-width: calc(100vw - 20px) !important;
  }
}

@media (max-width: 380px) {
  body:not(.landing-body) .topbar .sg-logo-img {
    width: 104px !important;
  }
  body:not(.landing-body) .profile-pill {
    max-width: 112px !important;
    padding: 5px 7px !important;
  }
  body:not(.landing-body) .menu a .txt {
    font-size: 11px !important;
  }
  .page-head h1 {
    font-size: 18px !important;
  }
}

/* v53 HARD FIX: stable app-shell scrolling + correct hamburger position
   Applies to Sponsor Static UI, Credit Officer UI and review pages.
   Header/rolebar/sidebar stay visible; only main content scrolls.
   This avoids body-scroll conflicts and fixes the hamburger appearing too low. */
@media (min-width: 901px) {
  html:has(body.sponsor-page),
  html:has(body.officer-dashboard-page),
  html:has(body.review-file-page) {
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
  }
  body.sponsor-page,
  body.officer-dashboard-page,
  body.review-file-page {
    height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }
  body.sponsor-page .topbar,
  body.officer-dashboard-page .topbar,
  body.review-file-page .topbar {
    flex: 0 0 58px !important;
    height: 58px !important;
    min-height: 58px !important;
    position: relative !important;
    top: auto !important;
    z-index: 7000 !important;
  }
  body.sponsor-page .rolebar,
  body.officer-dashboard-page .rolebar,
  body.review-file-page .rolebar {
    flex: 0 0 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    position: relative !important;
    top: auto !important;
    z-index: 6500 !important;
  }
  body.sponsor-page .layout,
  body.officer-dashboard-page .layout,
  body.review-file-page .layout {
    flex: 1 1 auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
    display: grid !important;
    grid-template-columns: 176px minmax(0, 1fr) !important;
    align-items: stretch !important;
  }
  body.sidebar-collapsed.sponsor-page .layout,
  body.sidebar-collapsed.officer-dashboard-page .layout,
  body.sidebar-collapsed.review-file-page .layout {
    grid-template-columns: 68px minmax(0, 1fr) !important;
  }
  body.sponsor-page .sidebar,
  body.officer-dashboard-page .sidebar,
  body.review-file-page .sidebar {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 14px 10px !important;
    align-self: stretch !important;
  }
  body.sponsor-page .hamb,
  body.officer-dashboard-page .hamb,
  body.review-file-page .hamb {
    margin: 0 0 14px 0 !important;
  }
  body.sidebar-collapsed.sponsor-page .hamb,
  body.sidebar-collapsed.officer-dashboard-page .hamb,
  body.sidebar-collapsed.review-file-page .hamb {
    margin-left: auto !important;
    margin-right: auto !important;
  }
  body.sponsor-page .main,
  body.officer-dashboard-page .main,
  body.review-file-page .main {
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    padding: 18px 28px 110px !important;
    margin: 0 !important;
    /* scroll-behavior: smooth !important; */
    scrollbar-gutter: stable !important;
  }
  body.sponsor-page .accordion,
  body.sponsor-page details.accordion[open],
  body.sponsor-page .acc-body,
  body.sponsor-page .section-card,
  body.sponsor-page .card,
  body.sponsor-page .terms-grid,
  body.sponsor-page .terms-card,
  body.sponsor-page .term-offer-card,
  body.officer-dashboard-page .card,
  body.officer-dashboard-page .table-card {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
  body.sponsor-page .table-card,
  body.officer-dashboard-page .table-card,
  body.review-file-page .table-card {
    overflow-x: auto !important;
    overflow-y: visible !important;
    max-width: 100% !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

@media (max-width: 900px) {
  html:has(body.sponsor-page),
  html:has(body.officer-dashboard-page),
  html:has(body.review-file-page) {
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
  }
  body.sponsor-page,
  body.officer-dashboard-page,
  body.review-file-page {
    height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }
  body.sponsor-page .topbar,
  body.officer-dashboard-page .topbar,
  body.review-file-page .topbar {
    flex: 0 0 56px !important;
    height: 56px !important;
    min-height: 56px !important;
    position: relative !important;
    top: auto !important;
    z-index: 9000 !important;
  }
  body.sponsor-page .rolebar,
  body.officer-dashboard-page .rolebar,
  body.review-file-page .rolebar {
    flex: 0 0 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    position: relative !important;
    top: auto !important;
    z-index: 8500 !important;
  }
  body.sponsor-page .layout,
  body.sidebar-collapsed.sponsor-page .layout,
  body.officer-dashboard-page .layout,
  body.sidebar-collapsed.officer-dashboard-page .layout,
  body.review-file-page .layout,
  body.sidebar-collapsed.review-file-page .layout {
    flex: 1 1 auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  body.sponsor-page .sidebar,
  body.officer-dashboard-page .sidebar,
  body.review-file-page .sidebar,
  body.sidebar-collapsed.sponsor-page .sidebar,
  body.sidebar-collapsed.officer-dashboard-page .sidebar,
  body.sidebar-collapsed.review-file-page .sidebar {
    flex: 0 0 auto !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 8px 10px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    background: rgba(255, 255, 255, 0.98) !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--line) !important;
    box-shadow: 0 8px 22px rgba(0, 10, 40, 0.07) !important;
  }
  body.sponsor-page .hamb,
  body.officer-dashboard-page .hamb,
  body.review-file-page .hamb,
  body.sidebar-collapsed.sponsor-page .hamb,
  body.sidebar-collapsed.officer-dashboard-page .hamb,
  body.sidebar-collapsed.review-file-page .hamb {
    flex: 0 0 40px !important;
    width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
  }
  body.sponsor-page .menu,
  body.officer-dashboard-page .menu,
  body.review-file-page .menu {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: max-content !important;
    min-width: max-content !important;
  }
  body.sidebar-collapsed.sponsor-page .menu,
  body.sidebar-collapsed.officer-dashboard-page .menu,
  body.sidebar-collapsed.review-file-page .menu {
    display: none !important;
  }
  body.sponsor-page .menu a,
  body.officer-dashboard-page .menu a,
  body.review-file-page .menu a {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 44px !important;
    min-height: 40px !important;
    padding: 9px 12px !important;
    white-space: nowrap !important;
    justify-content: center !important;
  }
  body.sponsor-page .menu a .txt,
  body.officer-dashboard-page .menu a .txt,
  body.review-file-page .menu a .txt {
    display: inline !important;
    font-size: 12px !important;
  }
  body.sponsor-page .main,
  body.officer-dashboard-page .main,
  body.review-file-page .main {
    flex: 1 1 auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px 12px 96px !important;
    margin: 0 !important;
    /* scroll-behavior: smooth !important; */
    scrollbar-gutter: stable !important;
  }
  body.sponsor-page .accordion,
  body.sponsor-page details.accordion[open],
  body.sponsor-page .acc-body,
  body.sponsor-page .section-card,
  body.sponsor-page .card,
  body.sponsor-page .terms-grid,
  body.sponsor-page .terms-card,
  body.sponsor-page .term-offer-card,
  body.officer-dashboard-page .card,
  body.officer-dashboard-page .table-card {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
  body.sponsor-page .table-card,
  body.officer-dashboard-page .table-card,
  body.review-file-page .table-card {
    overflow-x: auto !important;
    overflow-y: visible !important;
    max-width: 100% !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

/* v54 SPONSOR STATIC UI ONLY: final normal page scroll fix
   Keeps the current look, but removes scroll-lock from Sponsor pages only. */
html:has(body.sponsor-page) {
  height: auto !important;
  min-height: 100% !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: scroll !important;
}
body.sponsor-page {
  height: auto !important;
  min-height: 100vh !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
  display: block !important;
  overscroll-behavior: auto !important;
  /* scroll-behavior: smooth !important; */
}
body.sponsor-page .topbar,
body.sponsor-page .rolebar {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
}
body.sponsor-page .layout,
body.sidebar-collapsed.sponsor-page .layout {
  height: auto !important;
  min-height: calc(100vh - 100px) !important;
  max-height: none !important;
  overflow: visible !important;
  display: grid !important;
  align-items: start !important;
}
body.sponsor-page .layout {
  grid-template-columns: 176px minmax(0, 1fr) !important;
}
body.sidebar-collapsed.sponsor-page .layout {
  grid-template-columns: 68px minmax(0, 1fr) !important;
}
body.sponsor-page .sidebar,
body.sidebar-collapsed.sponsor-page .sidebar {
  position: sticky !important;
  top: 0 !important;
  align-self: start !important;
  height: auto !important;
  min-height: calc(100vh - 100px) !important;
  max-height: none !important;
  overflow: visible !important;
  z-index: 1000 !important;
}
body.sponsor-page .hamb,
body.sidebar-collapsed.sponsor-page .hamb {
  margin-top: 14px !important;
}
body.sponsor-page .main {
  height: auto !important;
  min-height: calc(100vh - 100px) !important;
  max-height: none !important;
  overflow: visible !important;
  overflow-x: hidden !important;
  padding-bottom: 130px !important;
  overscroll-behavior: auto !important;
}
body.sponsor-page details,
body.sponsor-page details[open],
body.sponsor-page .accordion,
body.sponsor-page .acc-body,
body.sponsor-page .section-card,
body.sponsor-page .card,
body.sponsor-page .terms-grid,
body.sponsor-page .terms-card,
body.sponsor-page .term-offer-card {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}
body.sponsor-page .table-card,
body.sponsor-page .data-table-wrap {
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  -webkit-overflow-scrolling: touch !important;
}
@media (max-width: 900px) {
  body.sponsor-page .layout,
  body.sidebar-collapsed.sponsor-page .layout {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  body.sponsor-page .sidebar,
  body.sidebar-collapsed.sponsor-page .sidebar {
    position: sticky !important;
    top: 0 !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    z-index: 5000 !important;
  }
  body.sponsor-page .hamb,
  body.sidebar-collapsed.sponsor-page .hamb {
    margin: 0 !important;
    flex: 0 0 40px !important;
  }
  body.sponsor-page .main {
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto !important;
    overflow: visible !important;
    padding-bottom: 120px !important;
  }
}

/* v55 MOBILE OPTIMIZATION: ENTIRE APP RESPONSIVE FOR PHONE + TABLET
   Landing, Login, Sponsor, Officer, Review pages all scroll naturally on mobile.
   Forms, tables, and buttons are touch-friendly. All content fits within 375px-480px viewports. */

@media (max-width: 768px) {
  /* ===== LANDING PAGE ===== */
  .hero {
    min-height: auto !important;
    padding: 30px 14px !important;
    background: radial-gradient(
      circle at right,
      #b7e2ff 0,
      #edf7ff 34%,
      #fff 62%
    ) !important;
  }
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
    padding-top: 20px !important;
    align-items: center !important;
  }
  .hero-grid > * {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .hero h1 {
    font-size: clamp(28px, 6vw, 44px) !important;
    line-height: 1.15 !important;
    margin: 16px 0 12px !important;
    color: #03102c !important;
  }
  .hero p {
    font-size: 15px !important;
    line-height: 1.5 !important;
    max-width: 100% !important;
    color: #17305d !important;
  }
  .hero-cta {
    display: inline-block !important;
    padding: 14px 20px !important;
    font-size: 13px !important;
    margin: 18px 0 !important;
  }
  .hero-card {
    font-size: 24px !important;
    padding: 18px !important;
    transform: rotate(0deg) !important;
    width: 100% !important;
    text-align: center !important;
  }
  .hero-card {
    margin: 20px auto !important;
    max-width: 300px !important;
  }
  .process-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
    margin-top: 24px !important;
  }
  .circle {
    width: 70px !important;
    height: 70px !important;
    margin: 0 auto 12px !important;
    font-size: 26px !important;
  }
  .dark-section {
    padding: 40px 12vw !important;
  }
  .pdf-benefits {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    margin-top: 16px !important;
  }
  .benefit-item {
    display: flex !important;
    gap: 12px !important;
    align-items: flex-start !important;
  }
  .benefit-icon {
    font-size: 24px !important;
    flex: 0 0 30px !important;
  }

  /* ===== LOGIN PAGES ===== */
  .login-left {
    padding: 30px 16px !important;
  }
  .login-left .brand {
    transform: scale(0.9) !important;
    transform-origin: left top !important;
  }
  .login-copy {
    padding-left: 0 !important;
    padding-top: 16px !important;
    max-width: 100% !important;
  }
  .login-copy h1 {
    font-size: clamp(26px, 5vw, 38px) !important;
    margin: 100px 0 12px !important;
    color: #000a28 !important;
    font-weight: 900 !important;
    letter-spacing: -0.055em !important;
  }
  .login-copy p {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #1e355a !important;
    max-width: 100% !important;
    font-weight: 600 !important;
  }
  .tag {
    padding: 6px 10px !important;
    font-size: 11px !important;
    color: #147bff !important;
    font-weight: 800 !important;
  }
  .login-panel h2 {
    font-size: 20px !important;
    margin: 4px 0 1px !important;
    color: #06163b !important;
    font-weight: 900 !important;
  }
  .login-input,
  .input,
  select,
  textarea {
    min-height: 44px !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
  }
  .login-panel {
    padding: 28px 20px !important;
  }
  .link-center {
    font-size: 12px !important;
    margin: 16px 0 !important;
  }

  /* ===== FIELD GRIDS & FORMS ===== */
  .field-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .field {
    margin-bottom: 6px !important;
  }
  .label {
    font-size: 11px !important;
    margin-bottom: 6px !important;
    letter-spacing: 0.12em !important;
  }
  .hint {
    font-size: 11px !important;
    margin: 8px 0 10px !important;
    line-height: 1.4 !important;
  }
  textarea {
    min-height: 80px !important;
    padding: 10px 12px !important;
  }

  /* ===== BUTTONS & INTERACTIONS ===== */
  .btn {
    min-height: 44px !important;
    padding: 11px 16px !important;
    font-size: 13px !important;
    border-radius: 10px !important;
  }
  .btn.primary {
    padding: 13px 18px !important;
  }
  .btn.small {
    min-height: 40px !important;
    padding: 9px 12px !important;
    font-size: 12px !important;
  }
  .sticky-actions,
  .section-actions {
    flex-direction: column !important;
    gap: 8px !important;
  }
  .sticky-actions .btn,
  .section-actions .btn {
    width: 100% !important;
    text-align: center !important;
  }

  /* ===== CARDS & CONTAINERS ===== */
  .card {
    border-radius: 14px !important;
    padding: 16px !important;
  }
  .accordion {
    margin-bottom: 12px !important;
    border-radius: 12px !important;
  }
  .acc-head {
    min-height: 48px !important;
    padding: 0 14px !important;
    font-size: 13px !important;
  }
  .acc-body {
    padding: 14px 12px !important;
  }
  .section-card {
    margin-top: 12px !important;
    padding: 0 !important;
  }
  .section-head {
    padding: 14px 16px !important;
  }
  .section-head h3 {
    font-size: 16px !important;
    margin: 4px 0 3px !important;
  }

  /* ===== TYPOGRAPHY ===== */
  .page-head h1 {
    font-size: clamp(20px, 4vw, 26px) !important;
    margin: 4px 0 2px !important;
  }
  .page-head p {
    font-size: 12px !important;
    line-height: 1.4 !important;
  }
  h1 {
    font-size: 22px !important;
  }
  h2 {
    font-size: 18px !important;
  }
  h3 {
    font-size: 15px !important;
  }
  p,
  li,
  small {
    font-size: 13px !important;
    line-height: 1.45 !important;
  }

  /* ===== TABLES ===== */
  .app-table th,
  .app-table td {
    padding: 10px 8px !important;
    font-size: 11px !important;
  }
  .app-table th {
    font-size: 10px !important;
  }
  .mini-class {
    font-size: 10px !important;
    padding: 5px 8px !important;
  }
  .table-card {
    padding: 12px 10px !important;
    border-radius: 12px !important;
  }

  /* ===== DOCUMENT GRID ===== */
  .document-grid,
  .conditional-doc-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .doc-card {
    min-height: 120px !important;
    padding: 14px !important;
  }
  .doc-card h4 {
    font-size: 13px !important;
    margin: 6px 0 4px !important;
  }
  .doc-card p {
    font-size: 11px !important;
  }

  /* ===== RADIO & CHECKBOX ===== */
  .radio-row {
    flex-direction: column !important;
    gap: 8px !important;
  }
  .radio-tile {
    min-height: 44px !important;
    padding: 12px !important;
    font-size: 12px !important;
  }

  /* ===== STATS & PILLS ===== */
  .stats {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  .stat {
    min-height: 100px !important;
    padding: 14px !important;
  }
  .stat h4 {
    font-size: 10px !important;
    margin: 6px 0 3px !important;
  }
  .stat strong {
    font-size: 18px !important;
  }
  .pill {
    font-size: 11px !important;
    padding: 6px 10px !important;
  }

  /* ===== MODALS & DROPDOWNS ===== */
  .profile-dropdown {
    width: calc(100vw - 20px) !important;
    right: 10px !important;
  }

  /* ===== REVIEW PAGE ===== */
  .review-layout.deep-review {
    grid-template-columns: 1fr !important;
  }
  .right-stack {
    position: static !important;
    grid-template-columns: 1fr !important;
  }
  .left-stack,
  .right-stack {
    gap: 14px !important;
  }
  .risk-card {
    grid-template-columns: 1fr !important;
    padding: 14px !important;
  }
  .risk-score-scale {
    width: 100% !important;
    min-width: 100% !important;
  }
  .metric-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  .flag-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .check-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .summary-grid,
  .summary-grid.compact {
    grid-template-columns: 1fr !important;
  }

  /* ===== OFFICER DASHBOARD ===== */
  .officer-dashboard-page .stats {
    grid-template-columns: 1fr 1fr !important;
  }
  .officer-dashboard-page .table-card {
    min-height: 280px !important;
  }
  .queue-head {
    display: block !important;
    margin-bottom: 12px !important;
  }
  .search-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin-top: 8px !important;
  }

  /* ===== SPONSOR PAGES ===== */
  .sponsor-page .terms-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .sponsor-page .term-sheet-grid,
  .sponsor-page .offer-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .signed-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    align-items: stretch !important;
  }
  .sponsor-page .sponsor-submit-cta {
    flex-direction: column !important;
    gap: 8px !important;
    align-items: stretch !important;
  }
}

@media (max-width: 560px) {
  /* EXTRA SMALL: 375px-480px phones */

  /* Hero & landing */
  .hero {
    min-height: auto !important;
    padding: 24px 12px !important;
    background: radial-gradient(
      circle at right,
      #b7e2ff 0,
      #edf7ff 34%,
      #fff 62%
    ) !important;
  }
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding-top: 12px !important;
  }
  .hero h1 {
    font-size: 24px !important;
    margin: 12px 0 8px !important;
    line-height: 1.15 !important;
    color: #03102c !important;
    max-width: 100% !important;
  }
  .hero p {
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: #17305d !important;
    max-width: 100% !important;
  }
  .hero-cta {
    padding: 12px 16px !important;
    font-size: 12px !important;
    margin: 14px 0 !important;
    display: inline-block !important;
  }
  .hero-card {
    font-size: 20px !important;
    padding: 14px !important;
    width: 100% !important;
    max-width: 280px !important;
    margin: 14px auto !important;
    transform: rotate(0deg) !important;
  }
  .pdf-benefits {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin-top: 12px !important;
  }
  .benefit-item {
    gap: 10px !important;
  }
  .benefit-icon {
    font-size: 20px !important;
  }
  .dark-section {
    padding: 30px 14px !important;
  }
  .process-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    margin-top: 14px !important;
  }
  .circle {
    width: 56px !important;
    height: 56px !important;
    font-size: 22px !important;
  }
  .landing-nav {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
  .landing-links {
    display: none !important;
  }
  .pdf-btn {
    min-height: 40px !important;
    padding: 9px 12px !important;
    font-size: 12px !important;
  }

  /* Login & signup on mobile */
  .login-left {
    padding: 24px 14px !important;
    flex-direction: column !important;
  }
  .login-copy {
    padding-left: 0 !important;
    padding-top: 10px !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  .login-copy .tag {
    display: inline-flex !important;
    font-size: 10px !important;
    color: #147bff !important;
    margin-bottom: 12px !important;
    font-weight: 800 !important;
  }
  .login-copy h1 {
    font-size: 22px !important;
    margin: 12px 0 10px !important;
    color: #000a28 !important;
    line-height: 1.15 !important;
    max-width: 100% !important;
    font-weight: 900 !important;
    letter-spacing: -0.055em !important;
  }
  .login-copy p {
    font-size: 12px !important;
    color: #1e355a !important;
    line-height: 1.6 !important;
    max-width: 100% !important;
    font-weight: 600 !important;
  }
  .login-left .brand {
    transform: scale(0.85) !important;
    transform-origin: left top !important;
    margin-bottom: 8px !important;
  }
  .login-panel {
    padding: 20px 14px !important;
  }
  .auth-shell {
    max-width: 100% !important;
    width: 100% !important;
  }
  .auth-shell h2 {
    font-size: 18px !important;
    margin-bottom: 14px !important;
    color: #06163b !important;
    font-weight: 900 !important;
  }
  .auth-shell .kicker {
    font-size: 10px !important;
    margin-bottom: 8px !important;
    font-weight: 800 !important;
    color: #147bff !important;
  }
  .input,
  .form-input {
    min-height: 44px !important;
    font-size: 14px !important;
  }
  .btn.primary,
  .login-submit {
    min-height: 44px !important;
    font-size: 13px !important;
    width: 100% !important;
  }

  /* Topbar & navigation */
  .topbar {
    height: 56px !important;
    padding: 0 10px !important;
    gap: 6px !important;
  }
  .topbar .sg-logo-img {
    width: 110px !important;
  }
  .profile-pill {
    max-width: 120px !important;
    font-size: 10px !important;
    padding: 5px 8px !important;
  }
  .rolebar {
    height: 36px !important;
  }
  .rolebar span {
    padding: 8px 16px !important;
    font-size: 11px !important;
  }

  /* Hero & landing */
  .hero {
    padding: 20px 16px !important;
  }
  .hero h1 {
    font-size: 24px !important;
    margin: 12px 0 8px !important;
  }
  .hero p {
    font-size: 13px !important;
  }
  .hero-cta {
    padding: 12px 16px !important;
    font-size: 12px !important;
    margin: 14px 0 !important;
  }
  .hero-card {
    font-size: 20px !important;
    padding: 14px !important;
  }
  .process-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    margin-top: 18px !important;
  }
  .circle {
    width: 60px !important;
    height: 60px !important;
    margin-bottom: 10px !important;
  }

  /* Login */
  .login-left h1 {
    font-size: 22px !important;
    margin: 60px 0 10px !important;
  }
  .login-left p {
    font-size: 13px !important;
  }
  .login-panel {
    padding: 20px 16px !important;
  }
  .login-panel h2 {
    font-size: 18px !important;
  }
  .input,
  select,
  textarea,
  .login-input {
    font-size: 14px !important;
    padding: 9px 11px !important;
  }

  /* Forms & fields */
  .field-grid {
    gap: 12px !important;
  }
  .label {
    font-size: 10px !important;
  }
  .hint {
    font-size: 10px !important;
    margin: 6px 0 8px !important;
  }

  /* Buttons */
  .btn {
    min-height: 42px !important;
    padding: 10px 14px !important;
    font-size: 12px !important;
  }
  .btn.primary {
    padding: 12px 16px !important;
  }
  .btn.small {
    min-height: 38px !important;
    padding: 8px 10px !important;
    font-size: 11px !important;
  }
  .btn .icon {
    width: 16px !important;
    height: 16px !important;
    margin-right: 4px !important;
  }

  /* Typography */
  .page-head h1 {
    font-size: 20px !important;
    line-height: 1.2 !important;
  }
  .page-head p {
    font-size: 11px !important;
  }
  .kicker {
    font-size: 9px !important;
    letter-spacing: 0.14em !important;
  }
  h1 {
    font-size: 20px !important;
  }
  h2 {
    font-size: 16px !important;
  }
  h3 {
    font-size: 13px !important;
  }
  p,
  li,
  small {
    font-size: 12px !important;
    line-height: 1.4 !important;
  }
  strong,
  b {
    font-weight: 600 !important;
  }

  /* Cards */
  .card {
    padding: 12px !important;
    border-radius: 12px !important;
  }
  .accordion {
    margin-bottom: 10px !important;
  }
  .acc-head {
    min-height: 44px !important;
    padding: 0 12px !important;
    font-size: 12px !important;
  }
  .acc-body {
    padding: 12px 10px !important;
  }
  .section-head {
    padding: 12px 14px !important;
  }
  .section-head h3 {
    font-size: 14px !important;
  }

  /* Tables */
  .app-table th,
  .app-table td {
    padding: 8px 6px !important;
    font-size: 10px !important;
  }
  .table-card {
    padding: 10px 8px !important;
    margin-bottom: 12px !important;
  }
  .app-table,
  .queue-table,
  .comparison-table {
    min-width: 720px !important;
    font-size: 11px !important;
  }

  /* Documents */
  .doc-card {
    min-height: 110px !important;
    padding: 12px !important;
  }
  .doc-card h4 {
    font-size: 12px !important;
    margin: 4px 0 2px !important;
  }
  .doc-card p {
    font-size: 10px !important;
    line-height: 1.4 !important;
  }

  /* Radio & checks */
  .radio-tile {
    min-height: 40px !important;
    padding: 10px !important;
    font-size: 11px !important;
  }

  /* Stats */
  .stat {
    min-height: 88px !important;
    padding: 12px !important;
  }
  .stat h4 {
    font-size: 9px !important;
    margin: 4px 0 2px !important;
  }
  .stat strong {
    font-size: 16px !important;
  }

  /* Upload box */
  .upload-box {
    min-height: 48px !important;
    padding: 14px !important;
    font-size: 11px !important;
    border-radius: 10px !important;
  }

  /* Main padding */
  body:not(.landing-body) .main {
    padding: 12px 10px 90px !important;
  }

  /* Review page */
  .risk-card {
    padding: 12px !important;
  }
  .risk-score-scale {
    padding: 10px !important;
  }
  .risk-score-scale .score-number {
    font-size: 22px !important;
  }
  .metric-grid {
    gap: 8px !important;
  }
  .metric {
    padding: 8px !important;
    font-size: 11px !important;
  }

  /* Profile card */
  .profile-card .profile-top {
    padding: 16px !important;
    gap: 10px !important;
  }
  .profile-photo {
    width: 70px !important;
    height: 70px !important;
    font-size: 22px !important;
  }
  .profile-info-grid {
    grid-template-columns: 1fr !important;
    padding: 10px !important;
    gap: 6px !important;
  }
  .info-box {
    padding: 8px !important;
  }

  /* Sponsor-specific */
  .sponsor-page .terms-grid,
  .sponsor-page .term-sheet-grid,
  .sponsor-page .offer-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .offer-head {
    display: block !important;
  }
  .term-actions {
    margin-top: 10px !important;
  }

  /* Footer/actions spacing */
  .sticky-actions,
  .section-actions {
    padding: 10px 0 12px !important;
    gap: 6px !important;
  }
  .sticky-actions .btn,
  .section-actions .btn {
    min-height: 40px !important;
    font-size: 12px !important;
  }

  /* Overflow safety */
  body {
    overflow-x: hidden !important;
  }
  * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* v54 mobile table cards: convert every .app-table into stacked cards only on mobile */
@media (max-width: 768px) {
  body:not(.landing-body) .table-card {
    overflow: visible !important;
    max-height: none !important;
    padding: 10px !important;
  }

  body:not(.landing-body) .queue-table-scroll,
  body:not(.landing-body) .data-table-wrap {
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
    min-height: 0 !important;
  }

  body:not(.landing-body) .app-table {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: transparent !important;
  }

  body:not(.landing-body) .app-table thead {
    display: none !important;
  }

  body:not(.landing-body) .app-table tbody {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100% !important;
  }

  body:not(.landing-body) .app-table tbody tr {
    display: block !important;
    width: 100% !important;
    border: 1px solid #d7e6f8 !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 10px 24px rgba(8, 35, 80, 0.07) !important;
    padding: 10px 12px !important;
  }

  body:not(.landing-body) .app-table tbody tr[style*="display: none"] {
    display: none !important;
  }

  body:not(.landing-body) .app-table td {
    display: grid !important;
    grid-template-columns: minmax(96px, 38%) minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 10px !important;
    width: 100% !important;
    border: 0 !important;
    border-bottom: 1px solid #edf3fb !important;
    padding: 10px 0 !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    text-align: right !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }

  body:not(.landing-body) .app-table td:last-child {
    border-bottom: 0 !important;
  }

  body:not(.landing-body) .app-table td::before {
    content: attr(data-label);

    color: #5e6f96 !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    letter-spacing: 0.08em !important;
    line-height: 1.25 !important;
    text-transform: uppercase !important;
  }

  body:not(.landing-body) .app-table td > * {
    justify-self: end !important;
    max-width: 100% !important;
  }

  body:not(.landing-body) .app-table td b,
  body:not(.landing-body) .app-table td small {
    display: inline !important;
  }

  body:not(.landing-body) .app-table .pill,
  body:not(.landing-body) .app-table .mini-class,
  body:not(.landing-body) .app-table .queue-risk-scale {
    justify-self: end !important;
    max-width: 100% !important;
    white-space: normal !important;
  }

  body:not(.landing-body) .app-table .btn {
    width: auto !important;
    max-width: 100% !important;
    justify-content: center !important;
    white-space: normal !important;
  }

  body.officer-dashboard-page .queue-footer {
    margin-top: 12px !important;
  }
}

@media (max-width: 420px) {
  body:not(.landing-body) .app-table td {
    grid-template-columns: 1fr !important;

    gap: 5px !important;
  }

  body:not(.landing-body) .app-table td > *,
  body:not(.landing-body) .app-table .pill,
  body:not(.landing-body) .app-table .mini-class,
  body:not(.landing-body) .app-table .queue-risk-scale {
    justify-self: start !important;
  }
}

/* v54 mobile card support for document status grid table */
@media (max-width: 768px) {
  body:not(.landing-body) .document-status-table {
    border: 0 !important;
    background: transparent !important;
    display: grid !important;
    gap: 12px !important;
    margin: 0 0 14px !important;
    overflow: visible !important;
  }

  body:not(.landing-body) .document-status-head {
    display: none !important;
  }

  body:not(.landing-body) .document-status-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 9px !important;
    border: 1px solid #d7e6f8 !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 10px 24px rgba(8, 35, 80, 0.07) !important;
    padding: 12px !important;
  }

  body:not(.landing-body) .document-status-row > b,
  body:not(.landing-body) .document-status-row > small {
    display: grid !important;
    grid-template-columns: minmax(96px, 38%) minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: start !important;
    width: 100% !important;
    margin: 0 !important;
    white-space: normal !important;
    text-align: right !important;
  }

  body:not(.landing-body) .document-status-row > b::before {
    content: "Requirement";
  }
  body:not(.landing-body) .document-status-row > small::before {
    content: "Examples";
  }

  body:not(.landing-body) .document-status-row > b::before,
  body:not(.landing-body) .document-status-row > small::before {
    color: #5e6f96 !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    letter-spacing: 0.08em !important;
    line-height: 1.25 !important;
    text-transform: uppercase !important;
  }

  body:not(.landing-body) .document-status-row > .pill {
    justify-self: end !important;
    max-width: 100% !important;
    white-space: normal !important;
  }
}

@media (max-width: 420px) {
  body:not(.landing-body) .document-status-row > b,
  body:not(.landing-body) .document-status-row > small {
    grid-template-columns: 1fr !important;

    gap: 5px !important;
  }

  body:not(.landing-body) .document-status-row > .pill {
    justify-self: start !important;
  }
}

/* v56 FINAL MOBILE RESPONSIVE SCROLL + TABLE CARD FIX
   Mobile uses a bounded app shell: topbar, rolebar and navigation stay stable;
   the main content area scrolls vertically. Table-card rows stay responsive and
   never create page-level horizontal overflow. Desktop rules remain unchanged. */
@media (max-width: 900px) {
  html:has(body.sponsor-page),
  html:has(body.officer-dashboard-page),
  html:has(body.review-file-page) {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
  }

  body.sponsor-page,
  body.officer-dashboard-page,
  body.review-file-page {
    width: 100% !important;
    height: 100dvh !important;
    min-height: 100svh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    overscroll-behavior: none !important;
  }

  body.sponsor-page .topbar,
  body.officer-dashboard-page .topbar,
  body.review-file-page .topbar {
    flex: 0 0 56px !important;
    height: 56px !important;
    min-height: 56px !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    z-index: 9000 !important;
  }

  body.sponsor-page .rolebar,
  body.officer-dashboard-page .rolebar,
  body.review-file-page .rolebar {
    flex: 0 0 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    position: relative !important;
    top: auto !important;
    z-index: 8500 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
  }

  body.sponsor-page .layout,
  body.sidebar-collapsed.sponsor-page .layout,
  body.officer-dashboard-page .layout,
  body.sidebar-collapsed.officer-dashboard-page .layout,
  body.review-file-page .layout,
  body.sidebar-collapsed.review-file-page .layout {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
  }

  body.sponsor-page .sidebar,
  body.sidebar-collapsed.sponsor-page .sidebar,
  body.officer-dashboard-page .sidebar,
  body.sidebar-collapsed.officer-dashboard-page .sidebar,
  body.review-file-page .sidebar,
  body.sidebar-collapsed.review-file-page .sidebar {
    flex: 0 0 auto !important;
    position: relative !important;
    top: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 8px 10px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    background: rgba(255, 255, 255, 0.98) !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--line) !important;
    box-shadow: 0 8px 22px rgba(0, 10, 40, 0.07) !important;
    z-index: 8000 !important;
    -webkit-overflow-scrolling: touch !important;
  }

  body.sponsor-page .main,
  body.officer-dashboard-page .main,
  body.review-file-page .main {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    padding: 14px 12px 104px !important;
    margin: 0 !important;
    scrollbar-gutter: stable !important;
  }

  body.sponsor-page .table-card,
  body.officer-dashboard-page .table-card,
  body.review-file-page .table-card,
  body.sponsor-page .queue-table-scroll,
  body.officer-dashboard-page .queue-table-scroll,
  body.review-file-page .queue-table-scroll,
  body.sponsor-page .data-table-wrap,
  body.officer-dashboard-page .data-table-wrap,
  body.review-file-page .data-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
  }
}

@media (max-width: 768px) {
  body:not(.landing-body) .app-table {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    table-layout: auto !important;
    overflow: visible !important;
  }

  body:not(.landing-body) .app-table tbody {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body:not(.landing-body) .app-table tbody tr {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  body:not(.landing-body) .app-table td {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }

  body:not(.landing-body) .app-table td > *,
  body:not(.landing-body) .app-table .pill,
  body:not(.landing-body) .app-table .mini-class,
  body:not(.landing-body) .app-table .queue-risk-scale,
  body:not(.landing-body) .app-table .btn {
    max-width: 100% !important;
    white-space: normal !important;
    min-width: 0 !important;
  }
}

/* v57 MOBILE ONLY: rolebar hamburger dropdown + guaranteed vertical main scroll
   Desktop is intentionally untouched. On phones/tablets the hamburger moves into
   the same row as the role heading, and the navigation opens as a themed dropdown. */
@media (max-width: 900px) {
  html:has(body.sponsor-page),
  html:has(body.officer-dashboard-page),
  html:has(body.review-file-page) {
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
  }

  body.sponsor-page,
  body.officer-dashboard-page,
  body.review-file-page {
    height: 100dvh !important;
    min-height: 100svh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    background: var(--bg) !important;
  }

  body.sponsor-page .topbar,
  body.officer-dashboard-page .topbar,
  body.review-file-page .topbar {
    flex: 0 0 56px !important;
    height: 56px !important;
    min-height: 56px !important;
    position: relative !important;
    top: auto !important;
    z-index: 9000 !important;
  }

  body.sponsor-page .rolebar,
  body.officer-dashboard-page .rolebar,
  body.review-file-page .rolebar {
    flex: 0 0 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    position: relative !important;
    top: auto !important;
    z-index: 8800 !important;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    padding-left: 54px !important;
    overflow: visible !important;
  }

  body.sponsor-page .rolebar span,
  body.officer-dashboard-page .rolebar span,
  body.review-file-page .rolebar span {
    height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    max-width: calc(100vw - 64px) !important;
    padding: 0 14px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    border-bottom: 3px solid var(--cyan) !important;
  }

  body.sponsor-page .layout,
  body.sidebar-collapsed.sponsor-page .layout,
  body.officer-dashboard-page .layout,
  body.sidebar-collapsed.officer-dashboard-page .layout,
  body.review-file-page .layout,
  body.sidebar-collapsed.review-file-page .layout {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    display: block !important;
    position: relative !important;
    grid-template-columns: none !important;
  }

  body.sponsor-page .main,
  body.officer-dashboard-page .main,
  body.review-file-page .main {
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    padding: 14px 12px 104px !important;
    margin: 0 !important;
    scrollbar-gutter: stable !important;
    touch-action: pan-y !important;
  }

  body.sponsor-page .main::-webkit-scrollbar,
  body.officer-dashboard-page .main::-webkit-scrollbar,
  body.review-file-page .main::-webkit-scrollbar {
    width: 7px !important;
  }
  body.sponsor-page .main::-webkit-scrollbar-thumb,
  body.officer-dashboard-page .main::-webkit-scrollbar-thumb,
  body.review-file-page .main::-webkit-scrollbar-thumb {
    background: #b8c9e2 !important;
    border-radius: 999px !important;
  }
  body.sponsor-page .main::-webkit-scrollbar-track,
  body.officer-dashboard-page .main::-webkit-scrollbar-track,
  body.review-file-page .main::-webkit-scrollbar-track {
    background: #eef5fc !important;
  }

  body.sponsor-page .sidebar,
  body.sidebar-collapsed.sponsor-page .sidebar,
  body.officer-dashboard-page .sidebar,
  body.sidebar-collapsed.officer-dashboard-page .sidebar,
  body.review-file-page .sidebar,
  body.sidebar-collapsed.review-file-page .sidebar {
    position: absolute !important;
    inset: 0 auto auto 0 !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
    z-index: 9500 !important;
    display: block !important;
  }

  body.sponsor-page .hamb,
  body.sidebar-collapsed.sponsor-page .hamb,
  body.officer-dashboard-page .hamb,
  body.sidebar-collapsed.officer-dashboard-page .hamb,
  body.review-file-page .hamb,
  body.sidebar-collapsed.review-file-page .hamb {
    position: fixed !important;
    left: 10px !important;
    top: 57px !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;
    display: grid !important;
    place-items: center !important;
    border: 1px solid rgba(160, 211, 255, 0.7) !important;
    border-radius: 10px !important;
    color: #ddf5ff !important;
    background: rgba(11, 43, 89, 0.86) !important;
    box-shadow: 0 8px 20px rgba(0, 10, 40, 0.18) !important;
    z-index: 9900 !important;
  }

  body.sponsor-page .hamb .icon,
  body.officer-dashboard-page .hamb .icon,
  body.review-file-page .hamb .icon {
    width: 19px !important;
    height: 19px !important;
  }

  body:not(.sidebar-collapsed).sponsor-page .hamb,
  body:not(.sidebar-collapsed).officer-dashboard-page .hamb,
  body:not(.sidebar-collapsed).review-file-page .hamb {
    top: 112px !important;
    left: 22px !important;
    border-color: transparent !important;
    background: transparent !important;
    color: #ffffff !important;
    box-shadow: none !important;
  }

  body.sponsor-page .menu,
  body.officer-dashboard-page .menu,
  body.review-file-page .menu {
    position: fixed !important;
    top: 104px !important;
    left: 12px !important;
    width: min(250px, calc(100vw - 24px)) !important;
    min-width: 0 !important;
    max-width: calc(100vw - 24px) !important;
    max-height: calc(100dvh - 116px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    padding: 48px 12px 14px !important;
    border: 1px solid rgba(169, 215, 255, 0.24) !important;
    border-radius: 14px !important;
    background:
      radial-gradient(
        circle at 95% 8%,
        rgba(0, 174, 239, 0.16),
        transparent 34%
      ),
      radial-gradient(
        circle at 5% 96%,
        rgba(90, 72, 255, 0.14),
        transparent 32%
      ),
      linear-gradient(145deg, #071a44 0%, #050b24 100%) !important;
    box-shadow: 0 24px 60px rgba(0, 10, 40, 0.32) !important;
    z-index: 9800 !important;
    -webkit-overflow-scrolling: touch !important;
  }

  body.sidebar-collapsed.sponsor-page .menu,
  body.sidebar-collapsed.officer-dashboard-page .menu,
  body.sidebar-collapsed.review-file-page .menu {
    display: none !important;
  }

  body.sponsor-page .menu::before,
  body.officer-dashboard-page .menu::before,
  body.review-file-page .menu::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 14px;
    pointer-events: none;
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.06),
      rgba(255, 255, 255, 0)
    );
  }

  body.sponsor-page .menu a,
  body.officer-dashboard-page .menu a,
  body.review-file-page .menu a {
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 40px !important;
    padding: 10px 11px !important;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 10px !important;
    border-radius: 10px !important;
    border: 1px solid transparent !important;
    color: #c9d7f1 !important;
    background: transparent !important;
    white-space: normal !important;
    box-shadow: none !important;
  }

  body.sponsor-page .menu a.active,
  body.officer-dashboard-page .menu a.active,
  body.review-file-page .menu a.active {
    color: #ffffff !important;
    background: rgba(20, 123, 255, 0.14) !important;
    border-color: rgba(169, 215, 255, 0.22) !important;
    box-shadow: inset 3px 0 0 var(--cyan) !important;
  }

  body.sponsor-page .menu a:hover,
  body.officer-dashboard-page .menu a:hover,
  body.review-file-page .menu a:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.07) !important;
  }

  body.sponsor-page .menu a .txt,
  body.officer-dashboard-page .menu a .txt,
  body.review-file-page .menu a .txt {
    display: inline !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body.sponsor-page .menu a .badge,
  body.officer-dashboard-page .menu a .badge,
  body.review-file-page .menu a .badge {
    display: grid !important;
    flex: 0 0 auto !important;
  }

  body.sponsor-page .nav-icon,
  body.officer-dashboard-page .nav-icon,
  body.review-file-page .nav-icon {
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 18px !important;
  }

  body.sponsor-page .table-card,
  body.officer-dashboard-page .table-card,
  body.review-file-page .table-card,
  body.sponsor-page .queue-table-scroll,
  body.officer-dashboard-page .queue-table-scroll,
  body.review-file-page .queue-table-scroll,
  body.sponsor-page .data-table-wrap,
  body.officer-dashboard-page .data-table-wrap,
  body.review-file-page .data-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
  }
}

@media (max-width: 420px) {
  body.sponsor-page .rolebar,
  body.officer-dashboard-page .rolebar,
  body.review-file-page .rolebar {
    padding-left: 50px !important;
  }
  body.sponsor-page .menu,
  body.officer-dashboard-page .menu,
  body.review-file-page .menu {
    width: min(230px, calc(100vw - 20px)) !important;
    left: 10px !important;
  }
}

/* v58 MOBILE ONLY REPAIR: scrollable content, rolebar dropdown hamburger, restored table cards.
   Desktop styles stay untouched because every rule below is max-width:900/768 only. */
@media (max-width: 900px) {
  html:has(body.sponsor-page),
  html:has(body.officer-dashboard-page),
  html:has(body.review-file-page) {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
  }

  body.sponsor-page,
  body.officer-dashboard-page,
  body.review-file-page {
    width: 100% !important;
    height: 100dvh !important;
    min-height: 100svh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    background: var(--bg) !important;
    overscroll-behavior: none !important;
  }

  body.sponsor-page .topbar,
  body.officer-dashboard-page .topbar,
  body.review-file-page .topbar {
    flex: 0 0 56px !important;
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    z-index: 9000 !important;
  }

  body.sponsor-page .rolebar,
  body.officer-dashboard-page .rolebar,
  body.review-file-page .rolebar {
    flex: 0 0 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    z-index: 8800 !important;
    overflow: visible !important;
    display: flex !important;
    align-items: center !important;
    padding-left: 52px !important;
  }

  body.sponsor-page .rolebar span,
  body.officer-dashboard-page .rolebar span,
  body.review-file-page .rolebar span {
    height: 38px !important;
    max-width: calc(100vw - 62px) !important;
    padding: 0 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.sponsor-page .layout,
  body.sidebar-collapsed.sponsor-page .layout,
  body.officer-dashboard-page .layout,
  body.sidebar-collapsed.officer-dashboard-page .layout,
  body.review-file-page .layout,
  body.sidebar-collapsed.review-file-page .layout {
    flex: 1 1 auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    display: block !important;
    position: relative !important;
    grid-template-columns: none !important;
  }

  body.sponsor-page .main,
  body.officer-dashboard-page .main,
  body.review-file-page .main {
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    touch-action: pan-y !important;
    padding: 14px 12px 108px !important;
    margin: 0 !important;
    scrollbar-width: thin !important;
    scrollbar-gutter: stable !important;
  }

  body.sponsor-page .main::-webkit-scrollbar,
  body.officer-dashboard-page .main::-webkit-scrollbar,
  body.review-file-page .main::-webkit-scrollbar {
    width: 6px !important;
  }
  body.sponsor-page .main::-webkit-scrollbar-thumb,
  body.officer-dashboard-page .main::-webkit-scrollbar-thumb,
  body.review-file-page .main::-webkit-scrollbar-thumb {
    background: #b8c9e2 !important;
    border-radius: 999px !important;
  }
  body.sponsor-page .main::-webkit-scrollbar-track,
  body.officer-dashboard-page .main::-webkit-scrollbar-track,
  body.review-file-page .main::-webkit-scrollbar-track {
    background: #eef5fc !important;
  }

  body.sponsor-page .sidebar,
  body.sidebar-collapsed.sponsor-page .sidebar,
  body.officer-dashboard-page .sidebar,
  body.sidebar-collapsed.officer-dashboard-page .sidebar,
  body.review-file-page .sidebar,
  body.sidebar-collapsed.review-file-page .sidebar {
    position: absolute !important;
    inset: 0 auto auto 0 !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
    display: block !important;
    z-index: 9600 !important;
  }

  body.sponsor-page .hamb,
  body.sidebar-collapsed.sponsor-page .hamb,
  body:not(.sidebar-collapsed).sponsor-page .hamb,
  body.officer-dashboard-page .hamb,
  body.sidebar-collapsed.officer-dashboard-page .hamb,
  body:not(.sidebar-collapsed).officer-dashboard-page .hamb,
  body.review-file-page .hamb,
  body.sidebar-collapsed.review-file-page .hamb,
  body:not(.sidebar-collapsed).review-file-page .hamb {
    position: fixed !important;
    top: 58px !important;
    left: 10px !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;
    display: grid !important;
    place-items: center !important;
    border: 1px solid rgba(145, 207, 255, 0.55) !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    background: rgba(0, 10, 40, 0.72) !important;
    box-shadow: 0 8px 22px rgba(0, 10, 40, 0.18) !important;
    z-index: 9990 !important;
    cursor: pointer !important;
  }

  body.sponsor-page.mobile-menu-open .hamb,
  body.officer-dashboard-page.mobile-menu-open .hamb,
  body.review-file-page.mobile-menu-open .hamb {
    background: #071a44 !important;
    border-color: rgba(174, 222, 255, 0.34) !important;
    box-shadow: 0 16px 38px rgba(0, 10, 40, 0.28) !important;
  }

  body.sponsor-page .hamb .icon,
  body.officer-dashboard-page .hamb .icon,
  body.review-file-page .hamb .icon {
    width: 18px !important;
    height: 18px !important;
  }

  body.sponsor-page .menu,
  body.officer-dashboard-page .menu,
  body.review-file-page .menu,
  body.sidebar-collapsed.sponsor-page .menu,
  body.sidebar-collapsed.officer-dashboard-page .menu,
  body.sidebar-collapsed.review-file-page .menu {
    display: none !important;
  }

  body.sponsor-page.mobile-menu-open .menu,
  body.officer-dashboard-page.mobile-menu-open .menu,
  body.review-file-page.mobile-menu-open .menu {
    position: fixed !important;
    top: 100px !important;
    left: 10px !important;
    width: min(252px, calc(100vw - 20px)) !important;
    min-width: 0 !important;
    max-width: calc(100vw - 20px) !important;
    max-height: calc(100dvh - 112px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    padding: 14px 12px !important;
    border: 1px solid rgba(169, 215, 255, 0.24) !important;
    border-radius: 16px !important;
    background:
      radial-gradient(
        circle at 92% 8%,
        rgba(0, 174, 239, 0.17),
        transparent 36%
      ),
      radial-gradient(
        circle at 10% 96%,
        rgba(25, 111, 255, 0.17),
        transparent 34%
      ),
      linear-gradient(145deg, #071a44 0%, #03091d 100%) !important;
    box-shadow: 0 24px 60px rgba(0, 10, 40, 0.34) !important;
    z-index: 9980 !important;
    -webkit-overflow-scrolling: touch !important;
  }

  body.sponsor-page.mobile-menu-open .menu a,
  body.officer-dashboard-page.mobile-menu-open .menu a,
  body.review-file-page.mobile-menu-open .menu a {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 40px !important;
    padding: 10px 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    border-radius: 11px !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    color: #c9d7f1 !important;
    white-space: normal !important;
    box-shadow: none !important;
  }

  body.sponsor-page.mobile-menu-open .menu a.active,
  body.officer-dashboard-page.mobile-menu-open .menu a.active,
  body.review-file-page.mobile-menu-open .menu a.active {
    color: #ffffff !important;
    background: rgba(20, 123, 255, 0.16) !important;
    border-color: rgba(169, 215, 255, 0.24) !important;
    box-shadow: inset 3px 0 0 var(--cyan) !important;
  }

  body.sponsor-page.mobile-menu-open .menu a .txt,
  body.officer-dashboard-page.mobile-menu-open .menu a .txt,
  body.review-file-page.mobile-menu-open .menu a .txt {
    display: inline !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body.sponsor-page.mobile-menu-open .menu a .badge,
  body.officer-dashboard-page.mobile-menu-open .menu a .badge,
  body.review-file-page.mobile-menu-open .menu a .badge {
    display: grid !important;
    flex: 0 0 auto !important;
  }

  body.sponsor-page.mobile-menu-open .nav-icon,
  body.officer-dashboard-page.mobile-menu-open .nav-icon,
  body.review-file-page.mobile-menu-open .nav-icon {
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 18px !important;
  }

  body.sponsor-page .page-head,
  body.officer-dashboard-page .page-head,
  body.review-file-page .page-head {
    display: block !important;
    margin-bottom: 14px !important;
  }
}

@media (max-width: 768px) {
  body:not(.landing-body) .table-card,
  body:not(.landing-body) .queue-table-scroll,
  body:not(.landing-body) .data-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
    padding: 10px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 14px !important;
  }

  body:not(.landing-body) .app-table {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    border: 0 !important;
    background: transparent !important;
    table-layout: auto !important;
    overflow: visible !important;
  }

  body:not(.landing-body) .app-table thead {
    display: none !important;
  }

  body:not(.landing-body) .app-table tbody {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body:not(.landing-body) .app-table tbody tr {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 12px !important;
    border: 1px solid #d7e6f8 !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    box-shadow: 0 10px 24px rgba(8, 35, 80, 0.07) !important;
    overflow: hidden !important;
  }

  body:not(.landing-body) .app-table tbody tr[style*="display: none"] {
    display: none !important;
  }

  body:not(.landing-body) .app-table td {
    display: grid !important;
    grid-template-columns: minmax(104px, 38%) minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: start !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 9px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #edf3fb !important;
    text-align: right !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }

  body:not(.landing-body) .app-table td:last-child {
    border-bottom: 0 !important;
  }

  body:not(.landing-body) .app-table td::before {
    content: attr(data-label) !important;
    color: #5e6f96 !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    letter-spacing: 0.08em !important;
    line-height: 1.25 !important;
    text-transform: uppercase !important;
  }

  body:not(.landing-body) .app-table td > *,
  body:not(.landing-body) .app-table .pill,
  body:not(.landing-body) .app-table .mini-class,
  body:not(.landing-body) .app-table .queue-risk-scale,
  body:not(.landing-body) .app-table .btn {
    justify-self: end !important;
    max-width: 100% !important;
    min-width: 0 !important;
    white-space: normal !important;
  }

  body:not(.landing-body) .app-table .btn {
    width: auto !important;
    justify-content: center !important;
  }
}

@media (max-width: 420px) {
  body.sponsor-page .main,
  body.officer-dashboard-page .main,
  body.review-file-page .main {
    padding: 12px 10px 104px !important;
  }
  body.sponsor-page .rolebar,
  body.officer-dashboard-page .rolebar,
  body.review-file-page .rolebar {
    padding-left: 50px !important;
  }
  body.sponsor-page.mobile-menu-open .menu,
  body.officer-dashboard-page.mobile-menu-open .menu,
  body.review-file-page.mobile-menu-open .menu {
    left: 8px !important;
    width: min(238px, calc(100vw - 16px)) !important;
  }
  body:not(.landing-body) .app-table td {
    grid-template-columns: 1fr !important;

    gap: 5px !important;
  }
  body:not(.landing-body) .app-table td > *,
  body:not(.landing-body) .app-table .pill,
  body:not(.landing-body) .app-table .mini-class,
  body:not(.landing-body) .app-table .queue-risk-scale,
  body:not(.landing-body) .app-table .btn {
    justify-self: start !important;
  }
}

/* v59 MOBILE ONLY OVERRIDE: higher specificity to beat older mobile/sidebar rules. */
@media (max-width: 900px) {
  body.sponsor-page:not(.landing-body),
  body.officer-dashboard-page:not(.landing-body),
  body.review-file-page:not(.landing-body) {
    width: 100% !important;
    height: 100dvh !important;
    min-height: 100svh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }

  body.sponsor-page:not(.landing-body) > .topbar,
  body.officer-dashboard-page:not(.landing-body) > .topbar,
  body.review-file-page:not(.landing-body) > .topbar {
    flex: 0 0 56px !important;
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    position: relative !important;
    top: auto !important;
  }

  body.sponsor-page:not(.landing-body) > .rolebar,
  body.officer-dashboard-page:not(.landing-body) > .rolebar,
  body.review-file-page:not(.landing-body) > .rolebar {
    flex: 0 0 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    position: relative !important;
    top: auto !important;
    overflow: visible !important;
    padding-left: 52px !important;
    display: flex !important;
    align-items: center !important;
  }

  body.sponsor-page:not(.landing-body) > .layout,
  body.sidebar-collapsed.sponsor-page:not(.landing-body) > .layout,
  body.officer-dashboard-page:not(.landing-body) > .layout,
  body.sidebar-collapsed.officer-dashboard-page:not(.landing-body) > .layout,
  body.review-file-page:not(.landing-body) > .layout,
  body.sidebar-collapsed.review-file-page:not(.landing-body) > .layout {
    flex: 1 1 auto !important;
    height: calc(100vh - 94px) !important;
    height: calc(100dvh - 94px) !important;
    min-height: 0 !important;
    max-height: calc(100dvh - 94px) !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    display: block !important;
    position: relative !important;
    grid-template-columns: none !important;
  }

  body.sponsor-page:not(.landing-body) > .layout > main.main,
  body.sidebar-collapsed.sponsor-page:not(.landing-body) > .layout > main.main,
  body.officer-dashboard-page:not(.landing-body) > .layout > main.main,
  body.sidebar-collapsed.officer-dashboard-page:not(.landing-body)
    > .layout
    > main.main,
  body.review-file-page:not(.landing-body) > .layout > main.main,
  body.sidebar-collapsed.review-file-page:not(.landing-body)
    > .layout
    > main.main {
    display: block !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    touch-action: pan-y !important;
    padding: 14px 12px 108px !important;
    margin: 0 !important;
    scrollbar-width: thin !important;
    scrollbar-gutter: stable !important;
  }

  body.sponsor-page:not(.landing-body) > .layout > aside.sidebar,
  body.sidebar-collapsed.sponsor-page:not(.landing-body)
    > .layout
    > aside.sidebar,
  body.officer-dashboard-page:not(.landing-body) > .layout > aside.sidebar,
  body.sidebar-collapsed.officer-dashboard-page:not(.landing-body)
    > .layout
    > aside.sidebar,
  body.review-file-page:not(.landing-body) > .layout > aside.sidebar,
  body.sidebar-collapsed.review-file-page:not(.landing-body)
    > .layout
    > aside.sidebar {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
    display: block !important;
    transform: none !important;
    z-index: 9600 !important;
  }

  body.sponsor-page:not(.landing-body) > .layout > aside.sidebar > .hamb,
  body.sidebar-collapsed.sponsor-page:not(.landing-body)
    > .layout
    > aside.sidebar
    > .hamb,
  body:not(.sidebar-collapsed).sponsor-page:not(.landing-body)
    > .layout
    > aside.sidebar
    > .hamb,
  body.officer-dashboard-page:not(.landing-body)
    > .layout
    > aside.sidebar
    > .hamb,
  body.sidebar-collapsed.officer-dashboard-page:not(.landing-body)
    > .layout
    > aside.sidebar
    > .hamb,
  body:not(.sidebar-collapsed).officer-dashboard-page:not(.landing-body)
    > .layout
    > aside.sidebar
    > .hamb,
  body.review-file-page:not(.landing-body) > .layout > aside.sidebar > .hamb,
  body.sidebar-collapsed.review-file-page:not(.landing-body)
    > .layout
    > aside.sidebar
    > .hamb,
  body:not(.sidebar-collapsed).review-file-page:not(.landing-body)
    > .layout
    > aside.sidebar
    > .hamb {
    position: fixed !important;
    top: 58px !important;
    left: 10px !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;
    display: grid !important;
    place-items: center !important;
    border: 1px solid rgba(145, 207, 255, 0.55) !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    background: rgba(0, 10, 40, 0.72) !important;
    box-shadow: 0 8px 22px rgba(0, 10, 40, 0.18) !important;
    z-index: 9990 !important;
    cursor: pointer !important;
  }

  body.sponsor-page:not(.landing-body) > .layout > aside.sidebar > nav.menu,
  body.sidebar-collapsed.sponsor-page:not(.landing-body)
    > .layout
    > aside.sidebar
    > nav.menu,
  body.officer-dashboard-page:not(.landing-body)
    > .layout
    > aside.sidebar
    > nav.menu,
  body.sidebar-collapsed.officer-dashboard-page:not(.landing-body)
    > .layout
    > aside.sidebar
    > nav.menu,
  body.review-file-page:not(.landing-body) > .layout > aside.sidebar > nav.menu,
  body.sidebar-collapsed.review-file-page:not(.landing-body)
    > .layout
    > aside.sidebar
    > nav.menu {
    display: none !important;
  }

  body.sponsor-page.mobile-menu-open:not(.landing-body)
    > .layout
    > aside.sidebar
    > nav.menu,
  body.officer-dashboard-page.mobile-menu-open:not(.landing-body)
    > .layout
    > aside.sidebar
    > nav.menu,
  body.review-file-page.mobile-menu-open:not(.landing-body)
    > .layout
    > aside.sidebar
    > nav.menu {
    position: fixed !important;
    top: 100px !important;
    left: 10px !important;
    width: min(252px, calc(100vw - 20px)) !important;
    min-width: 0 !important;
    max-width: calc(100vw - 20px) !important;
    max-height: calc(100dvh - 112px) !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 14px 12px !important;
    border: 1px solid rgba(169, 215, 255, 0.24) !important;
    border-radius: 16px !important;
    background:
      radial-gradient(
        circle at 92% 8%,
        rgba(0, 174, 239, 0.17),
        transparent 36%
      ),
      radial-gradient(
        circle at 10% 96%,
        rgba(25, 111, 255, 0.17),
        transparent 34%
      ),
      linear-gradient(145deg, #071a44 0%, #03091d 100%) !important;
    box-shadow: 0 24px 60px rgba(0, 10, 40, 0.34) !important;
    z-index: 9980 !important;
    -webkit-overflow-scrolling: touch !important;
  }

  body.sponsor-page.mobile-menu-open:not(.landing-body)
    > .layout
    > aside.sidebar
    > nav.menu
    > a,
  body.officer-dashboard-page.mobile-menu-open:not(.landing-body)
    > .layout
    > aside.sidebar
    > nav.menu
    > a,
  body.review-file-page.mobile-menu-open:not(.landing-body)
    > .layout
    > aside.sidebar
    > nav.menu
    > a {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 40px !important;
    padding: 10px 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    border-radius: 11px !important;
    color: #c9d7f1 !important;
    white-space: normal !important;
  }

  body.sponsor-page.mobile-menu-open:not(.landing-body)
    > .layout
    > aside.sidebar
    > nav.menu
    > a.active,
  body.officer-dashboard-page.mobile-menu-open:not(.landing-body)
    > .layout
    > aside.sidebar
    > nav.menu
    > a.active,
  body.review-file-page.mobile-menu-open:not(.landing-body)
    > .layout
    > aside.sidebar
    > nav.menu
    > a.active {
    color: #ffffff !important;
    background: rgba(20, 123, 255, 0.16) !important;
    border-color: rgba(169, 215, 255, 0.24) !important;
    box-shadow: inset 3px 0 0 var(--cyan) !important;
  }
}

/* v60 MOBILE ONLY: remove sidebar backdrop filter so fixed hamburger/dropdown are viewport-based. */
@media (max-width: 900px) {
  body.sponsor-page:not(.landing-body) > .layout > aside.sidebar,
  body.sidebar-collapsed.sponsor-page:not(.landing-body)
    > .layout
    > aside.sidebar,
  body.officer-dashboard-page:not(.landing-body) > .layout > aside.sidebar,
  body.sidebar-collapsed.officer-dashboard-page:not(.landing-body)
    > .layout
    > aside.sidebar,
  body.review-file-page:not(.landing-body) > .layout > aside.sidebar,
  body.sidebar-collapsed.review-file-page:not(.landing-body)
    > .layout
    > aside.sidebar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* v61 MOBILE ONLY: text fallback for hamburger icon so it never appears blank. */
@media (max-width: 900px) {
  body.sponsor-page:not(.landing-body)
    > .layout
    > aside.sidebar
    > .hamb::before,
  body.officer-dashboard-page:not(.landing-body)
    > .layout
    > aside.sidebar
    > .hamb::before,
  body.review-file-page:not(.landing-body)
    > .layout
    > aside.sidebar
    > .hamb::before {
    content: "☰" !important;
    font-size: 19px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    color: currentColor !important;
  }
  body.sponsor-page.mobile-menu-open:not(.landing-body)
    > .layout
    > aside.sidebar
    > .hamb::before,
  body.officer-dashboard-page.mobile-menu-open:not(.landing-body)
    > .layout
    > aside.sidebar
    > .hamb::before,
  body.review-file-page.mobile-menu-open:not(.landing-body)
    > .layout
    > aside.sidebar
    > .hamb::before {
    content: "×" !important;
    font-size: 25px !important;
    font-weight: 400 !important;
  }
  body.sponsor-page:not(.landing-body)
    > .layout
    > aside.sidebar
    > .hamb
    > .icon,
  body.officer-dashboard-page:not(.landing-body)
    > .layout
    > aside.sidebar
    > .hamb
    > .icon,
  body.review-file-page:not(.landing-body)
    > .layout
    > aside.sidebar
    > .hamb
    > .icon {
    display: none !important;
  }
}

/* v62 MOBILE ONLY: override older officer queue min-width so active queue stays card sized. */
@media (max-width: 768px) {
  body.officer-dashboard-page:not(.landing-body) .queue-table-scroll .app-table,
  body.officer-dashboard-page:not(.landing-body)
    .queue-table-scroll
    .app-table
    tbody,
  body.officer-dashboard-page:not(.landing-body)
    .queue-table-scroll
    .app-table
    tbody
    tr {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

/* v63 MOBILE ONLY polish fixes:
   - sponsor action buttons smaller and centered
   - doc action icons perfectly centered
   - officer queue card application/applicant spacing cleanup
   - review profile card moved visually under approval tracker (JS handles DOM move)
   - review risk card spacing tightened on mobile
   Desktop remains untouched. */
@media (max-width: 900px) {
  body.sponsor-page:not(.landing-body) .section-actions,
  body.sponsor-page:not(.landing-body) .sticky-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 12px 0 14px !important;
  }

  body.sponsor-page:not(.landing-body) .section-actions .btn,
  body.sponsor-page:not(.landing-body) .sticky-actions .btn {
    width: min(210px, calc(100% - 28px)) !important;
    min-height: 42px !important;
    padding: 10px 16px !important;
    margin: 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    border-radius: 12px !important;
    flex: 0 0 auto !important;
  }

  body.sponsor-page:not(.landing-body) .section-actions .btn.primary,
  body.sponsor-page:not(.landing-body) .sticky-actions .btn.primary {
    min-height: 44px !important;
  }

  body.sponsor-page:not(.landing-body) .section-actions .btn .icon,
  body.sponsor-page:not(.landing-body) .sticky-actions .btn .icon {
    margin-right: 6px !important;
  }

  body:not(.landing-body) .doc-actions-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
  }

  body:not(.landing-body) .doc-actions-icon .btn.icon-only {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
  }

  body:not(.landing-body) .doc-actions-icon .btn.icon-only .icon {
    margin: 0 !important;
  }

  body.officer-dashboard-page:not(.landing-body)
    .app-table
    td[data-label="Application"] {
  }

  body.officer-dashboard-page:not(.landing-body)
    .app-table
    td[data-label="Application"]
    > *,
  body.officer-dashboard-page:not(.landing-body)
    .app-table
    td[data-label="Applicant"]
    > * {
    justify-self: start !important;
  }

  body.officer-dashboard-page:not(.landing-body)
    .app-table
    td[data-label="Application"]
    b {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    color: #06163b !important;
  }

  body.officer-dashboard-page:not(.landing-body)
    .app-table
    td[data-label="Application"]
    small {
    display: block !important;
    margin-top: 4px !important;
    color: #607095 !important;
    line-height: 1.35 !important;
  }

  body.officer-dashboard-page:not(.landing-body)
    .app-table
    td[data-label="Applicant"] {
    align-items: center !important;
  }

  body.officer-dashboard-page:not(.landing-body)
    .app-table
    td[data-label="Applicant"]::before {
    align-self: center !important;
  }

  body.officer-dashboard-page:not(.landing-body)
    .app-table
    td[data-label="Applicant"] {
    font-weight: 700 !important;
    color: #06163b !important;
  }

  body.review-file-page:not(.landing-body) .left-stack,
  body.review-file-page:not(.landing-body) .right-stack {
    display: grid !important;
    gap: 14px !important;
  }

  body.review-file-page:not(.landing-body) .risk-card {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: flex-start !important;
    padding: 14px !important;
  }

  body.review-file-page:not(.landing-body) .risk-card .risk-score-scale {
    width: 100% !important;
    max-width: 170px !important;
    margin: 0 auto !important;
  }

  body.review-file-page:not(.landing-body) .risk-card > div:last-child {
    min-width: 0 !important;
  }
}

@media (min-width: 561px) and (max-width: 900px) {
  body.review-file-page:not(.landing-body) .risk-card {
    grid-template-columns: 138px minmax(0, 1fr) !important;
    gap: 14px !important;
  }

  body.review-file-page:not(.landing-body) .risk-card .risk-score-scale {
    width: 138px !important;
    max-width: 138px !important;
    margin: 0 !important;
  }
}

/* v64 final polish fixes
   - officer mobile applicant/application overlap resolved
   - officer/review profile dropdown aligned like sponsor on mobile
   - sponsor identity & compliance spacing improved on mobile
   - mandatory required badge shown as * where requested
   - review risk score mobile readability improved */

.req-star {
  min-width: 22px !important;
  height: 22px !important;
  padding: 0 7px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  background: #e7fff3 !important;
  color: #087345 !important;
  font-size: 16px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

@media (max-width: 900px) {
  body.officer-dashboard-page .profile-menu details[open] .profile-dropdown,
  body.review-file-page .profile-menu details[open] .profile-dropdown {
    top: calc(100% + 8px) !important;
    right: 10px !important;
    left: auto !important;
    width: min(270px, calc(100vw - 20px)) !important;
    max-width: calc(100vw - 20px) !important;
    min-width: 0 !important;
    z-index: 10050 !important;
  }

  body.officer-dashboard-page .profile-dropdown-head,
  body.review-file-page .profile-dropdown-head {
    grid-template-columns: 54px minmax(0, 1fr) !important;
    align-items: center !important;
  }

  body.officer-dashboard-page .app-table td[data-label="Application"],
  body.officer-dashboard-page .app-table td[data-label="Applicant"] {
    align-items: start !important;
  }

  body.officer-dashboard-page .app-table td[data-label="Application"] b,
  body.officer-dashboard-page .app-table td[data-label="Applicant"] b,
  body.officer-dashboard-page .app-table td[data-label="Applicant"] > * {
    line-height: 1.35 !important;
  }

  body.officer-dashboard-page .app-table td[data-label="Application"] small {
    display: block !important;
    margin-top: 5px !important;
    line-height: 1.35 !important;
    color: #6a7898 !important;
  }

  body.officer-dashboard-page .app-table td[data-label="Applicant"] {
    padding-top: 10px !important;
    margin-top: 0 !important;
  }

  body.officer-dashboard-page .queue-footer > span:first-child {
    white-space: nowrap !important;
  }

  body.sponsor-page .identity-block {
    padding: 0 !important;
    overflow: hidden !important;
  }

  body.sponsor-page .identity-block .section-head.compact-head {
    padding: 14px 14px 10px !important;
  }

  body.sponsor-page .identity-block .section-head.compact-head h3 {
    margin: 4px 0 4px !important;
    line-height: 1.2 !important;
  }

  body.sponsor-page .identity-block .section-head.compact-head p {
    margin: 0 !important;
    line-height: 1.45 !important;
  }

  body.sponsor-page .identity-block .id-guide-strip {
    margin: 0 12px 12px !important;
    padding: 10px 12px !important;
    border-radius: 10px !important;
    line-height: 1.45 !important;
  }

  body.sponsor-page .identity-block .conditional-doc-grid.kyc-doc-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 0 12px 12px !important;
  }

  body.sponsor-page .identity-block .doc-card {
    min-height: 0 !important;
    padding: 14px !important;
  }

  body.sponsor-page .identity-block .doc-card h4 {
    margin: 22px 0 6px !important;
    font-size: 15px !important;
  }

  body.sponsor-page .identity-block .doc-state {
    right: 12px !important;
    top: 12px !important;
  }

  body.sponsor-page .compliance-photo-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    align-items: start !important;
    padding: 0 12px 12px !important;
  }

  body.sponsor-page .compliance-photo-row .photo-box {
    width: 100% !important;
    min-height: 132px !important;
    border-radius: 10px !important;
  }

  body.sponsor-page .compliance-photo-row > div:last-child h3 {
    margin: 0 0 6px !important;
    line-height: 1.25 !important;
  }

  body.sponsor-page .compliance-photo-row > div:last-child p {
    margin: 0 0 10px !important;
    line-height: 1.45 !important;
  }

  body.sponsor-page .compliance-photo-row .selfie-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin-top: 8px !important;
  }

  body.sponsor-page .compliance-photo-row .selfie-actions .btn {
    width: 100% !important;
    min-height: 42px !important;
    justify-content: center !important;
  }

  body.sponsor-page .declaration-grid,
  body.sponsor-page .consent-stack {
    gap: 10px !important;
  }

  body.review-file-page .risk-score-scale .score-number {
    font-size: 28px !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
  }

  body.review-file-page .risk-scale-head {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
  }

  body.review-file-page .risk-scale-head span,
  body.review-file-page .risk-scale-head strong {
    white-space: nowrap !important;
  }

  body.review-file-page .risk-scale-track {
    margin-top: 4px !important;
    overflow: visible !important;
  }

  body.review-file-page .risk-scale-track i {
    width: 30px !important;
    height: 30px !important;
  }

  body.review-file-page .risk-scale-track i em {
    top: -31px !important;
    min-width: 34px !important;
    text-align: center !important;
    padding: 4px 8px !important;
    font-size: 12px !important;
    line-height: 1 !important;
  }

  body.review-file-page .risk-scale-ticks {
    grid-template-columns: 40fr 30fr 30fr 1px !important;
    column-gap: 0 !important;
    margin-top: 14px !important;
  }

  body.review-file-page .risk-scale-ticks span,
  body.review-file-page .risk-scale-ticks b,
  body.review-file-page .score-labels small,
  body.review-file-page .score-zone-labels small {
    white-space: nowrap !important;
    font-size: 10px !important;
  }
}

@media (max-width: 560px) {
  body.officer-dashboard-page .profile-pill,
  body.review-file-page .profile-pill {
    max-width: 126px !important;
  }

  body.review-file-page .risk-card {
    gap: 14px !important;
    padding: 14px !important;
  }

  body.review-file-page .risk-score-scale {
    width: 100% !important;
    max-width: 170px !important;
    margin: 0 auto !important;
    padding: 12px !important;
  }

  body.review-file-page .risk-scale-full {
    padding: 12px !important;
  }

  body.review-file-page .metric-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  body.review-file-page .metric strong {
    font-size: 15px !important;
  }
}

/* v66 requested final changes:
   - Mobile only: .main padding-bottom is 0.
   - Whole app: Required badge displays as red mandatory *.
   - Removed mobile card text-align-left override. */
.req.req-star,
.req-star {
  min-width: 18px !important;
  height: 18px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #dc2626 !important;
  font-size: 18px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  vertical-align: top !important;
}

@media (max-width: 900px) {
  body:not(.landing-body) .main,
  body.sponsor-page:not(.landing-body) > .layout > main.main,
  body.officer-dashboard-page:not(.landing-body) > .layout > main.main,
  body.review-file-page:not(.landing-body) > .layout > main.main {
    padding-bottom: 0 !important;
  }
}

/* v67 mobile table-card alignment + main padding final fix
   Mobile card headings stay left, values stay right.
   Mobile main tag padding-bottom is forced to 0. */
@media (max-width: 900px) {
  main.main,
  body:not(.landing-body) main.main,
  body.sponsor-page:not(.landing-body) > .layout > main.main,
  body.officer-dashboard-page:not(.landing-body) > .layout > main.main,
  body.review-file-page:not(.landing-body) > .layout > main.main {
    padding-bottom: 0 !important;
  }
}

@media (max-width: 420px) {
  body:not(.landing-body) .app-table td {
    text-align: right !important;
  }

  body:not(.landing-body) .app-table td::before {
    justify-self: start !important;
    text-align: left !important;
    width: 100% !important;
  }

  body:not(.landing-body) .app-table td > *,
  body:not(.landing-body) .app-table .pill,
  body:not(.landing-body) .app-table .mini-class,
  body:not(.landing-body) .app-table .queue-risk-scale,
  body:not(.landing-body) .app-table .btn {
    justify-self: end !important;
    text-align: right !important;
  }

  body:not(.landing-body) .app-table .btn {
    text-align: center !important;
  }
}

/* v24 marketing page rebuild from supplied content docs */
.sg-marketing-body {
  background: #f6fbff;
  color: #000a28;
}
.sg-marketing-body main {
  overflow: hidden;
}
.sg-site-header {
  height: 76px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0 max(20px, calc((100vw - 1180px) / 2));
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #e4edf8;
  box-shadow: 0 10px 28px rgba(0, 10, 40, 0.04);
}
.sg-site-logo img {
  width: 176px;
  display: block;
}
.sg-site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 12px;
  font-weight: 900;
}
.sg-site-nav a {
  padding: 28px 0 24px;
  border-bottom: 3px solid transparent;
}
.sg-site-nav a.active,
.sg-site-nav a:hover {
  color: #147bff;
  border-bottom-color: #147bff;
}
.sg-primary-btn,
.sg-white-btn,
.sg-outline-btn,
.sg-outline-blue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  font-weight: 900;
  text-decoration: none;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  cursor: pointer;
}
.sg-primary-btn {
  background: linear-gradient(135deg, #147bff, #075cf0);
  color: white;
  box-shadow: 0 14px 28px rgba(20, 123, 255, 0.22);
}
.sg-white-btn {
  background: #fff;
  color: #147bff;
}
.sg-white-btn.secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}
.sg-outline-btn {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
}
.sg-outline-blue {
  background: #fff;
  color: #147bff;
  border: 1px solid #a9cef9;
}
.sg-header-btn {
  min-height: 40px;
  font-size: 11px;
}
.sg-menu-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid #d8e6f5;
  background: #fff;
  border-radius: 10px;
  width: 42px;
  height: 42px;
  font-size: 23px;
  color: #147bff;
}
.sg-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 52px;
  align-items: center;
  min-height: 590px;
  padding: 70px max(24px, calc((100vw - 1180px) / 2)) 92px;
  background:
    radial-gradient(
      circle at 88% 12%,
      rgba(255, 255, 255, 0.22),
      transparent 25%
    ),
    linear-gradient(135deg, #000a28 0%, #07306c 48%, #147bff 100%);
  color: #fff;
}
.sg-hero-copy {
  max-width: 680px;
  position: relative;
  z-index: 2;
}
.sg-eyebrow {
  margin: 0 0 12px;
  color: #147bff;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 900;
  font-size: 11px;
}
.sg-hero .sg-eyebrow,
.sg-dark-hero .sg-eyebrow,
.sg-experience .sg-eyebrow {
  color: #67d9ff;
}
.sg-hero h1,
.sg-page-hero h1 {
  margin: 0 0 20px;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.07em;
  font-weight: 900;
}
.sg-hero p,
.sg-page-hero p {
  font-size: 17px;
  line-height: 1.62;
  color: #dcecff;
  max-width: 620px;
}
.sg-trust-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 34px;
}
.sg-trust-bar article {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 18px;
}
.sg-trust-bar span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0, 174, 239, 0.2);
  margin-bottom: 12px;
}
.sg-trust-bar b,
.sg-trust-bar small {
  display: block;
}
.sg-trust-bar small {
  color: #c7def8;
  font-size: 12px;
  line-height: 1.45;
  margin-top: 5px;
}
.sg-hero-visual {
  display: grid;
  place-items: center;
}
.sg-device-card {
  width: min(100%, 340px);
  min-height: 250px;
  border-radius: 28px;
  background: #fff;
  color: #000a28;
  padding: 32px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
  transform: rotate(3deg);
}
.sg-device-card span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: #147bff;
  color: #fff;
  font-weight: 900;
  font-size: 22px;
}
.sg-device-card b {
  display: block;
  font-size: 30px;
  line-height: 1.05;
  margin: 24px 0 8px;
}
.sg-device-card small {
  color: #607095;
  font-weight: 700;
}
.sg-bars {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}
.sg-bars i {
  height: 12px;
  border-radius: 20px;
  background: #e8f1fa;
}
.sg-bars i:nth-child(1) {
  width: 92%;
}
.sg-bars i:nth-child(2) {
  width: 72%;
}
.sg-bars i:nth-child(3) {
  width: 84%;
}
.sg-section {
  padding: 76px max(24px, calc((100vw - 1120px) / 2));
}
.sg-centered {
  text-align: center;
}
.sg-section h2,
.sg-experience h2,
.sg-cta-panel h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}
.sg-section h3 {
  letter-spacing: -0.025em;
}
.sg-section-lead {
  max-width: 710px;
  margin: 0 auto;
  color: #607095;
  font-size: 16px;
  line-height: 1.62;
}
.sg-step-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 34px;
}
.sg-step-grid article,
.sg-card-grid article,
.sg-icon-grid article,
.sg-contact-cards article {
  background: #fff;
  border: 1px solid #dce8f7;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 14px 30px rgba(0, 10, 40, 0.045);
}
.sg-step-grid span,
.sg-contact-cards span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #e9f4ff;
  color: #147bff;
  font-weight: 900;
  margin-bottom: 16px;
}
.sg-step-grid h3 {
  margin: 0 0 8px;
}
.sg-step-grid p,
.sg-card-grid p,
.sg-icon-grid small,
.sg-contact-cards p {
  color: #607095;
  line-height: 1.55;
}
.sg-experience {
  margin: 20px auto 50px;
  max-width: 1120px;
  border-radius: 24px;
  padding: 46px;
  background: linear-gradient(135deg, #000a28, #06204e);
  color: #fff;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 34px;
  box-shadow: 0 28px 58px rgba(0, 10, 40, 0.22);
}
.sg-experience p {
  color: #dcecff;
  line-height: 1.62;
}
.sg-audience-card {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.06);
}
.sg-cta-panel {
  margin: 0 auto 52px;
  max-width: 1120px;
  border-radius: 22px;
  padding: 34px 42px;
  background: linear-gradient(135deg, #00aeef, #075cf0);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 24px 50px rgba(20, 123, 255, 0.2);
}
.sg-cta-panel p,
.sg-cta-panel small {
  color: #e6f7ff;
  display: block;
  line-height: 1.55;
}
.sg-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.sg-page-hero {
  padding: 86px max(24px, calc((100vw - 1120px) / 2));
  background: linear-gradient(135deg, #eff7ff, #ffffff);
  position: relative;
}
.sg-page-hero p {
  color: #4f6388;
}
.sg-page-hero.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: center;
  gap: 40px;
}
.sg-dark-hero {
  background: linear-gradient(135deg, #000a28, #06245c 60%, #147bff);
  color: #fff;
}
.sg-dark-hero p {
  color: #dcecff;
}
.sg-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  align-items: start;
}
.sg-card {
  background: #fff;
  border: 1px solid #dce8f7;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 14px 30px rgba(0, 10, 40, 0.045);
}
.sg-card.dark {
  background: #000a28;
  color: #fff;
}
.sg-card.dark p {
  color: #dcecff;
}
.sg-soft {
  background: #eef6ff;
}
.sg-check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.sg-check-list li {
  background: #fff;
  border: 1px solid #dce8f7;
  border-radius: 12px;
  padding: 13px 15px;
  color: #15305c;
  font-weight: 800;
}
.sg-check-list li:before {
  content: "✓";
  color: #147bff;
  margin-right: 10px;
  font-weight: 900;
}
.sg-icon-grid,
.sg-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 26px;
}
.sg-icon-grid.five,
.sg-card-grid.five {
  grid-template-columns: repeat(5, 1fr);
}
.sg-icon-grid.six,
.sg-card-grid.six {
  grid-template-columns: repeat(6, 1fr);
}
.sg-icon-grid article {
  font-weight: 900;
  color: #000a28;
}
.sg-card-grid ul {
  padding-left: 18px;
  color: #607095;
}
.sg-timeline-section {
  padding: 70px max(24px, calc((100vw - 1060px) / 2));
  background: #fff;
}
.sg-timeline {
  display: grid;
  gap: 28px;
  position: relative;
}
.sg-timeline:before {
  content: "";
  position: absolute;
  left: 30px;
  top: 26px;
  bottom: 26px;
  width: 3px;
  background: #d6e7fb;
}
.sg-timeline article {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr 320px;
  gap: 22px;
  align-items: start;
}
.sg-timeline article > span {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #eef6ff;
  border: 3px solid #147bff;
  color: #147bff;
  font-weight: 900;
}
.sg-timeline article > div {
  padding-top: 4px;
}
.sg-timeline h3 {
  margin: 0 0 8px;
  font-size: 24px;
}
.sg-timeline p {
  color: #607095;
  line-height: 1.55;
}
.sg-timeline ul {
  margin: 0;
  background: #f7fbff;
  border: 1px solid #dce8f7;
  border-radius: 16px;
  padding: 20px 20px 20px 38px;
  color: #53698e;
  font-weight: 700;
}
.sg-faq-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
.sg-faq-list details {
  background: #fff;
  border: 1px solid #dce8f7;
  border-radius: 14px;
  overflow: hidden;
}
.sg-faq-list summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 900;
  list-style: none;
}
.sg-faq-list summary::-webkit-details-marker {
  display: none;
}
.sg-faq-list summary:after {
  content: "+";
  float: right;
  color: #147bff;
}
.sg-faq-list details[open] summary:after {
  content: "−";
}
.sg-faq-list p {
  margin: 0;
  padding: 0 22px 20px;
  color: #607095;
  line-height: 1.6;
}
.sg-scenario-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 22px;
}
.sg-scenario-grid span {
  background: #fff;
  border: 1px solid #dce8f7;
  border-radius: 14px;
  min-height: 70px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 12px;
  font-weight: 900;
  color: #15305c;
}
.sg-scenario-grid.compact {
  grid-template-columns: repeat(3, 1fr);
}
.sg-property-visual {
  min-height: 300px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(20, 123, 255, 0.12), rgba(0, 174, 239, 0.22)),
    linear-gradient(
      145deg,
      #dce8f7 0 20%,
      #fff 20% 32%,
      #6f85a4 32% 47%,
      #ffffff 47% 52%,
      #15305c 52% 70%,
      #e8f1fa 70%
    );
  box-shadow: 0 24px 52px rgba(0, 10, 40, 0.1);
}
.sg-help-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 28px;
}
.sg-help-nav {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 8px;
  align-self: start;
}
.sg-help-nav a {
  background: #fff;
  border: 1px solid #dce8f7;
  border-radius: 12px;
  padding: 13px 15px;
  font-weight: 900;
  color: #15305c;
}
.sg-faq-large {
  margin-top: 0;
}
.sg-contact-hero {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 44px;
  align-items: center;
  background: linear-gradient(135deg, #000a28, #06245c);
  color: #fff;
}
.sg-contact-hero p {
  color: #dcecff;
}
.sg-contact-hero .sg-eyebrow {
  color: #67d9ff;
}
.sg-chat-phone {
  min-height: 360px;
  border: 10px solid #0b1732;
  border-radius: 38px;
  background: #0e2d69;
  color: #fff;
  padding: 80px 24px 24px;
  box-shadow: 0 32px 62px rgba(0, 0, 0, 0.25);
  transform: rotate(4deg);
}
.sg-chat-phone span {
  font-weight: 900;
}
.sg-chat-phone p {
  background: #fff;
  color: #15305c;
  border-radius: 14px;
  padding: 14px;
  margin-top: 18px;
  font-size: 13px;
}
.sg-contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.sg-contact-cards article a:not(.sg-primary-btn) {
  display: block;
  padding: 12px 0;
  border-top: 1px solid #e5edf7;
  font-weight: 900;
  color: #15305c;
}
.sg-quiet-office {
  padding-top: 10px;
  color: #607095;
}
.sg-quiet-office h3 {
  color: #15305c;
}
.sg-footer-top {
  display: grid;
  grid-template-columns: 1.25fr 1.6fr 1fr;
  gap: 44px;
}
.sg-site-footer {
  background: #000a28;
  color: #c8dcf5;
  padding: 46px max(24px, calc((100vw - 1120px) / 2)) 30px;
}
.sg-footer-brand img {
  width: 180px;
  filter: brightness(0) invert(1);
  margin-bottom: 18px;
}
.sg-footer-brand h3 {
  color: #fff;
  margin: 0 0 14px;
  font-size: 24px;
  letter-spacing: -0.04em;
}
.sg-footer-brand p,
.sg-footer-info p {
  font-size: 12px;
  line-height: 1.65;
  color: #c8dcf5;
}
.sg-socials {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.sg-socials a {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #147bff;
  color: #fff;
  font-weight: 900;
}
.sg-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 28px;
}
.sg-footer-links h4,
.sg-footer-info h4 {
  grid-column: 1/-1;
  margin: 0 0 10px;
  color: #67d9ff;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.sg-footer-links a {
  font-weight: 900;
  margin-top: 10px;
  color: #fff;
}
.sg-footer-links small {
  display: block;
  color: #94abc9;
  font-size: 11px;
}
.sg-footer-legal {
  display: block;
}
.sg-footer-legal a {
  display: block;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.sg-footer-info {
  margin-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
}
.sg-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  color: #9ab0ce;
  font-size: 11px;
  line-height: 1.5;
}
@media (max-width: 1024px) {
  .sg-site-header {
    padding: 0 20px;
  }
  .sg-site-nav {
    gap: 14px;
  }
  .sg-hero,
  .sg-page-hero.split,
  .sg-contact-hero {
    grid-template-columns: 1fr;
  }
  .sg-hero-visual {
    display: none;
  }
  .sg-step-grid,
  .sg-card-grid,
  .sg-icon-grid,
  .sg-icon-grid.five,
  .sg-card-grid.five,
  .sg-icon-grid.six,
  .sg-card-grid.six {
    grid-template-columns: repeat(2, 1fr);
  }
  .sg-experience,
  .two-col,
  .sg-help-layout {
    grid-template-columns: 1fr;
  }
  .sg-help-nav {
    position: static;
    grid-template-columns: repeat(2, 1fr);
  }
  .sg-timeline article {
    grid-template-columns: 64px 1fr;
  }
  .sg-timeline ul {
    grid-column: 2;
  }
  .sg-footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .sg-footer-legal {
    grid-column: 1/-1;
  }
  .sg-trust-bar {
    grid-template-columns: 1fr;
  }
  .sg-scenario-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 820px) {
  .sg-menu-toggle {
    display: block;
  }
  .sg-site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 76px;
    background: #fff;
    padding: 14px 22px 22px;
    display: none;
    box-shadow: 0 18px 30px rgba(0, 10, 40, 0.09);
    grid-template-columns: 1fr;
    gap: 0;
  }
  .sg-site-nav.open {
    display: grid;
  }
  .sg-site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid #e4edf8;
  }
  .sg-header-btn {
    display: none;
  }
  .sg-hero {
    grid-template-columns: 1fr;
    padding-top: 54px;
  }
  .sg-cta-panel {
    margin-left: 20px;
    margin-right: 20px;
    display: block;
  }
  .sg-cta-panel .sg-white-btn {
    margin-top: 20px;
  }
  .sg-footer-bottom {
    display: block;
  }
  .sg-contact-cards {
    grid-template-columns: 1fr;
  }
  .sg-chat-phone {
    display: none;
  }
  .sg-section {
    padding-top: 54px;
    padding-bottom: 54px;
  }
  .sg-site-logo img {
    width: 154px;
  }
}
@media (max-width: 560px) {
  .sg-hero h1,
  .sg-page-hero h1 {
    font-size: 40px;
  }
  .sg-step-grid,
  .sg-card-grid,
  .sg-icon-grid,
  .sg-icon-grid.five,
  .sg-card-grid.five,
  .sg-icon-grid.six,
  .sg-card-grid.six,
  .sg-scenario-grid,
  .sg-scenario-grid.compact,
  .sg-help-nav {
    grid-template-columns: 1fr;
  }
  .sg-footer-top {
    grid-template-columns: 1fr;
  }
  .sg-footer-links {
    grid-template-columns: 1fr;
  }
  .sg-timeline:before {
    left: 22px;
  }
  .sg-timeline article {
    grid-template-columns: 48px 1fr;
    gap: 14px;
  }
  .sg-timeline article > span {
    width: 48px;
    height: 48px;
  }
  .sg-timeline ul {
    grid-column: 1/-1;
  }
  .sg-cta-panel {
    padding: 28px 24px;
  }
  .sg-site-header {
    height: 68px;
  }
  .sg-site-nav {
    top: 68px;
  }
  .sg-menu-toggle {
    width: 38px;
    height: 38px;
  }
  .sg-page-hero {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

/* v25 screenshot-alignment pass: closer to supplied page examples, exact copy coverage, responsive marketing pages */
.sg-page-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 430px;
  gap: 42px;
  align-items: center;
  overflow: hidden;
}
.sg-abstract-visual {
  min-height: 330px;
  border-radius: 28px;
  background:
    radial-gradient(
      circle at 22% 24%,
      rgba(20, 123, 255, 0.28),
      transparent 19%
    ),
    radial-gradient(circle at 70% 60%, rgba(0, 174, 239, 0.2), transparent 24%),
    linear-gradient(135deg, #ffffff, #dcecff);
  box-shadow: 0 25px 70px rgba(20, 123, 255, 0.14);
  position: relative;
}
.sg-abstract-visual:after {
  content: "";
  position: absolute;
  inset: 48px 36px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid #d9e8fa;
  box-shadow: 0 16px 40px rgba(0, 10, 40, 0.08);
}
.sg-section-lead.left {
  text-align: left;
  margin-left: 0;
}
.sg-icon-grid.seven {
  grid-template-columns: repeat(7, 1fr);
}
.sg-icon-grid article,
.sg-card-grid article {
  position: relative;
}
.sg-icon-grid article:before,
.borrower-cards article > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e8f3ff;
  color: #147bff;
  margin: 0 auto 13px;
  font-weight: 900;
}
.sg-icon-grid article:before {
  content: "✓";
}
.sg-icon-grid small {
  display: block;
  margin-top: 10px;
}
.sg-note {
  display: block;
  margin-top: 12px;
  color: #5e7698;
  font-weight: 800;
}
.sg-primary-btn.mini {
  min-height: 38px;
  font-size: 12px;
  padding: 0 16px;
  margin-top: 8px;
}
.sg-how-hero {
  background: linear-gradient(120deg, #fff 0%, #f5fbff 68%, #e1f0ff 68% 100%);
}
.sg-timeline article > ul b {
  display: block;
  margin: 0 0 8px;
  color: #15305c;
}
.sg-timeline li {
  margin: 6px 0;
}
.sg-borrower-hero {
  background: linear-gradient(115deg, #fff 0 62%, #eaf5ff 62%);
}
.sg-property-visual {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    150deg,
    #d9ecff 0 38%,
    #ffffff 38% 46%,
    #0d3268 46% 70%,
    #eef7ff 70%
  );
}
.sg-property-visual:before {
  content: "";
  position: absolute;
  right: 30px;
  bottom: 35px;
  width: 270px;
  height: 190px;
  background:
    linear-gradient(
      90deg,
      #162f58 0 12%,
      transparent 12% 18%,
      #162f58 18% 30%,
      transparent 30% 36%,
      #162f58 36% 48%,
      transparent 48%
    ),
    linear-gradient(#d8a35a, #d8a35a);
  clip-path: polygon(8% 35%, 50% 0, 92% 35%, 92% 100%, 8% 100%);
  box-shadow: 0 22px 40px rgba(0, 10, 40, 0.24);
}
.borrower-cards article {
  text-align: left;
}
.borrower-cards article > span {
  margin-left: 0;
}
.borrower-cards b {
  font-size: 12px;
  color: #15305c;
}
.borrower-cards li {
  margin: 6px 0;
  color: #607095;
}
.sg-dark-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.sg-dark-list li {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #dcecff;
  font-weight: 800;
}
.borrower-why {
  align-items: center;
}
.sg-referral-body {
  background: #000a28;
}
.sg-referral-body .sg-site-header {
  background: #fff;
}
.sg-referral-hero {
  min-height: 620px;
  padding-top: 72px;
  padding-bottom: 72px;
}
.sg-referral-photo {
  min-height: 390px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(0, 10, 40, 0.15), rgba(20, 123, 255, 0.28)),
    linear-gradient(135deg, #1c5a8d, #090f24);
  box-shadow: 0 34px 76px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}
.sg-referral-photo:before {
  content: "";
  position: absolute;
  right: 55px;
  bottom: 0;
  width: 220px;
  height: 290px;
  border-radius: 100px 100px 0 0;
  background: linear-gradient(#f0d0af, #c78c62);
}
.sg-referral-photo:after {
  content: "";
  position: absolute;
  left: 34px;
  bottom: 0;
  width: 210px;
  height: 255px;
  border-radius: 90px 90px 0 0;
  background: linear-gradient(#0d234e, #020817);
}
.sg-referral-photo div {
  position: absolute;
  right: 22px;
  bottom: 34px;
  background: #071739;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 18px;
  color: #fff;
  font-weight: 900;
  max-width: 230px;
}
.sg-mini-trust {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.sg-mini-trust span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
  font-size: 12px;
  color: #cfe5ff;
}
.referral-dark-section {
  background: #000a28;
  color: #fff;
}
.referral-dark-section h2,
.referral-dark-section h3,
.referral-dark-section article {
  color: #fff;
}
.referral-dark-section .sg-card-grid article,
.referral-dark-section .sg-card.dark {
  background: #061532;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}
.referral-dark-section .sg-card-grid article small {
  display: block;
  color: #a8bfdd;
  margin-top: 10px;
  line-height: 1.5;
}
.referral-dark-section .sg-scenario-grid span {
  background: #061532;
  color: #dcecff;
  border-color: rgba(255, 255, 255, 0.14);
}
.sg-horizontal-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.sg-horizontal-steps article {
  background: #061532;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  padding: 22px;
  color: #fff;
  position: relative;
}
.sg-horizontal-steps span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #147bff;
  margin-bottom: 14px;
  font-weight: 900;
}
.sg-horizontal-steps p {
  color: #a8bfdd;
}
.referral-back {
  margin-top: 0;
  background: linear-gradient(135deg, #071739, #061532);
}
.sg-contact-hero {
  padding: 76px max(24px, calc((100vw - 1120px) / 2));
  background:
    radial-gradient(
      circle at 88% 20%,
      rgba(20, 123, 255, 0.2),
      transparent 30%
    ),
    linear-gradient(135deg, #000a28, #06245c);
}
.sg-chat-phone .blue-bubble {
  background: #147bff;
  color: #fff;
  margin-left: 30px;
}
.sg-contact-cards article {
  min-height: 235px;
}
.sg-contact-cards .sg-primary-btn,
.sg-contact-cards .sg-outline-blue {
  margin-top: 10px;
}
.sg-card > a:not(.sg-primary-btn):not(.sg-outline-blue) {
  display: block;
  padding: 14px 0;
  border-top: 1px solid #e4edf7;
  color: #15305c;
  font-weight: 900;
}
.sg-quiet-office {
  padding-top: 10px;
  padding-bottom: 36px;
}
.sg-help-group {
  scroll-margin-top: 100px;
  margin-bottom: 36px;
}
.sg-help-group h2 {
  font-size: 24px;
  border-bottom: 1px solid #dce8f7;
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.sg-faq-large details {
  box-shadow: 0 8px 22px rgba(0, 10, 40, 0.035);
}
.sg-home-hero.sg-screenshot-home {
  background:
    radial-gradient(circle at 92% 8%, rgba(0, 174, 239, 0.24), transparent 22%),
    linear-gradient(135deg, #000a28, #06245c 52%, #147bff);
}
.sg-home-hero .sg-device-card {
  transform: none;
}
.sg-footer-brand img {
  filter: none;
}
.sg-footer-top {
  align-items: start;
}
.sg-socials a:nth-child(2) {
  background: #0e5ecb;
}
.sg-socials a:nth-child(3) {
  background: #073c85;
}
@media (max-width: 1120px) {
  .sg-icon-grid.seven {
    grid-template-columns: repeat(3, 1fr);
  }
  .sg-horizontal-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .sg-page-hero-split {
    grid-template-columns: 1fr;
  }
  .sg-referral-photo,
  .sg-abstract-visual {
    display: none;
  }
  .sg-referral-body {
    background: #f6fbff;
  }
  .referral-dark-section {
    background: #000a28;
  }
  .sg-card-grid.six {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 760px) {
  .sg-icon-grid.seven,
  .sg-horizontal-steps,
  .sg-card-grid.six {
    grid-template-columns: 1fr;
  }
  .sg-referral-hero,
  .sg-contact-hero {
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .sg-mini-trust {
    display: grid;
  }
  .sg-contact-cards {
    grid-template-columns: 1fr;
  }
  .sg-page-hero p,
  .sg-hero p {
    font-size: 15px;
  }
  .sg-site-logo img {
    width: 140px;
  }
  .sg-header-btn {
    display: none;
  }
  .sg-help-layout {
    display: block;
  }
  .sg-help-nav {
    display: none;
  }
  .sg-footer-brand img {
    width: 150px;
  }
  .sg-footer-bottom {
    display: block;
  }
  .sg-footer-bottom span {
    display: block;
    margin: 8px 0;
  }
}

/* v26 screenshot-matched marketing page layout refinement
   Preserves all existing page copy and application behaviour. */

/* Shared marketing header polish */
.sg-marketing-body {
  background: #fff;
  color: #061535;
}
.sg-site-header {
  height: 72px;
  padding: 0 max(28px, calc((100vw - 1220px) / 2));
  gap: 28px;
  box-shadow: 0 2px 14px rgba(5, 31, 78, 0.05);
}
.sg-site-logo img {
  width: 170px;
}
.sg-site-nav {
  gap: 27px;
  font-size: 12px;
}
.sg-site-nav a {
  padding: 26px 0 22px;
}
.sg-header-btn {
  min-height: 42px;
  border-radius: 8px;
  padding: 0 20px;
}

/* Shared footer - same layout on every page */
.sg-site-footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #00102d 0%, #000923 100%);
  color: #d5e5fb;
  padding: 54px max(30px, calc((100vw - 1200px) / 2)) 30px;
}
.sg-site-footer:before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -180px;
  top: -250px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(20, 123, 255, 0.13),
    transparent 68%
  );
  pointer-events: none;
}
.sg-footer-top {
  position: relative;
  display: grid;
  grid-template-columns: 1.12fr 0.95fr 0.82fr;
  gap: 66px;
  align-items: start;
}
.sg-footer-brand img {
  width: 190px;
  height: auto;
  filter: none !important;
  margin: 0 0 22px;
}
.sg-footer-brand h3 {
  margin: 0 0 15px;
  color: #fff;
  font-size: 22px;
  line-height: 1.22;
  letter-spacing: -0.025em;
}
.sg-footer-brand p {
  max-width: 320px;
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: #bbcee8;
}
.sg-footer-links,
.sg-footer-legal {
  display: block;
}
.sg-footer-links h4,
.sg-footer-info h4 {
  margin: 0 0 18px;
  color: #2f87ff;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.sg-footer-link-group {
  position: relative;
  padding: 0 0 12px 35px;
  margin: 0 0 3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.sg-footer-link-group:before,
.sg-footer-legal > a:before {
  position: absolute;
  left: 0;
  top: 9px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: #2f87ff;
  font-size: 17px;
  line-height: 1;
}
.sg-footer-link-group:nth-of-type(1):before {
  content: "⌂";
}
.sg-footer-link-group:nth-of-type(2):before {
  content: "⚙";
}
.sg-footer-link-group:nth-of-type(3):before {
  content: "♙";
}
.sg-footer-link-group:nth-of-type(4):before {
  content: "◇";
}
.sg-footer-link-group:nth-of-type(5):before {
  content: "?";
  font-weight: 900;
}
.sg-footer-link-group > a,
.sg-footer-legal > a {
  display: block;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}
.sg-footer-link-group > a {
  margin: 0;
  padding: 9px 0 4px;
}
.sg-footer-link-group small {
  display: inline;
  color: #8198b9;
  font-size: 10px;
  line-height: 1.45;
}
.sg-footer-link-group small:not(:last-child):after {
  content: " · ";
  color: #4a6284;
}
.sg-footer-legal > a {
  position: relative;
  margin: 0;
  padding: 12px 0 12px 35px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.sg-footer-legal > a:nth-of-type(1):before {
  content: "♢";
}
.sg-footer-legal > a:nth-of-type(2):before {
  content: "▤";
}
.sg-footer-legal > a:nth-of-type(3):before {
  content: "▣";
}
.sg-footer-legal > a:nth-of-type(4):before {
  content: "!";
  font-weight: 900;
}
.sg-footer-legal > a:nth-of-type(5):before {
  content: "✉";
}
.sg-socials {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}
.sg-socials a {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent !important;
  color: #fff;
  font-size: 12px;
}
.sg-footer-info {
  position: relative;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}
.sg-footer-info h4 {
  padding-left: 30px;
  position: relative;
}
.sg-footer-info h4:before {
  content: "i";
  position: absolute;
  left: 0;
  top: -3px;
  width: 18px;
  height: 18px;
  border: 1px solid #2f87ff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #2f87ff;
  font-size: 11px;
  text-transform: none;
}
.sg-footer-info p {
  margin: 8px 0;
  font-size: 11px;
  line-height: 1.55;
  color: #b7c9e3;
}
.sg-footer-bottom {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 28px;
  margin-top: 24px;
  padding-top: 20px;
  padding-right: 120px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #8da4c3;
  font-size: 10px;
}

/* How it works */
.how-it-works-page .sg-how-hero {
  min-height: 430px;
  padding: 70px max(24px, calc((100vw - 980px) / 2)) 62px;
  background:
    radial-gradient(
      circle at 106% 70%,
      rgba(112, 165, 255, 0.22) 0 28%,
      transparent 28.3%
    ),
    linear-gradient(180deg, #fff 0%, #fbfdff 100%);
}
.how-it-works-page .sg-how-hero .sg-eyebrow {
  margin-bottom: 18px;
}
.how-it-works-page .sg-how-hero h1 {
  max-width: 620px;
  margin: 0 auto 20px;
  font-size: 56px;
  line-height: 1.02;
  letter-spacing: -0.055em;
  text-transform: none;
}
.how-it-works-page .sg-how-hero > p {
  max-width: 710px;
  margin: 0 auto 9px;
  color: #596b8a;
  font-size: 16px;
  line-height: 1.55;
}
.how-it-works-page .sg-how-hero .sg-primary-btn {
  margin-top: 20px;
  min-width: 250px;
}
.how-it-works-page .sg-note {
  font-size: 11px;
  margin-top: 11px;
}
.how-it-works-page .sg-timeline-section {
  padding: 58px max(24px, calc((100vw - 1040px) / 2)) 46px;
}
.how-it-works-page .sg-timeline {
  gap: 24px;
}
.how-it-works-page .sg-timeline:before {
  left: 57px;
  top: 54px;
  bottom: 54px;
  width: 2px;
  background: #367cff;
}
.how-it-works-page .sg-timeline article {
  grid-template-columns: 116px minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: center;
  min-height: 166px;
}
.how-it-works-page .sg-timeline article > span {
  position: relative;
  width: 92px;
  height: 92px;
  margin-left: 11px;
  border: 1px solid #c9dcfb;
  background: linear-gradient(145deg, #f8fbff, #edf5ff);
  color: transparent;
  font-size: 0;
  box-shadow: 0 10px 24px rgba(21, 82, 174, 0.06);
}
.how-it-works-page .sg-timeline article > span:before {
  color: #126bff;
  font-size: 40px;
  line-height: 1;
  font-weight: 500;
}
.how-it-works-page .sg-timeline article:nth-child(1) > span:before {
  content: "✓";
}
.how-it-works-page .sg-timeline article:nth-child(2) > span:before {
  content: "⇧";
}
.how-it-works-page .sg-timeline article:nth-child(3) > span:before {
  content: "✣";
}
.how-it-works-page .sg-timeline article:nth-child(4) > span:before {
  content: "♧";
}
.how-it-works-page .sg-timeline article:nth-child(5) > span:before {
  content: "▱";
}
.how-it-works-page .sg-timeline article > div {
  padding: 0;
}
.how-it-works-page .sg-timeline h3 {
  margin: 0 0 9px;
  font-size: 27px;
  line-height: 1.08;
  color: #08183b;
}
.how-it-works-page .sg-timeline p {
  margin: 7px 0;
  color: #607095;
  font-size: 13px;
  line-height: 1.52;
}
.how-it-works-page .sg-timeline .sg-eyebrow {
  margin-bottom: 8px;
  font-size: 10px;
}
.how-it-works-page .sg-timeline ul {
  min-height: 130px;
  margin: 0;
  padding: 19px 20px 17px 38px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #f7fbff, #eef5ff);
  color: #53698e;
  font-size: 12px;
  line-height: 1.4;
}
.how-it-works-page .sg-timeline article > ul b {
  color: #1670ff;
  font-size: 11px;
}
.how-it-works-page .sg-primary-btn.mini {
  display: none;
}
.how-it-works-page .sg-section.sg-soft {
  padding-top: 52px;
  padding-bottom: 52px;
  background: linear-gradient(180deg, #f6faff, #eef5ff);
}
.how-it-works-page .sg-section.sg-soft h2 {
  font-size: 34px;
}
.how-it-works-page .sg-icon-grid.seven {
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  margin-top: 28px;
}
.how-it-works-page .sg-icon-grid.seven article {
  min-height: 128px;
  padding: 18px 10px;
  border-radius: 12px;
  font-size: 11px;
  line-height: 1.35;
}
.how-it-works-page .sg-section.sg-centered:not(.sg-soft) {
  padding-top: 58px;
  padding-bottom: 62px;
  background: #f7f9fd;
}
.how-it-works-page .sg-section.sg-centered:not(.sg-soft) h2 {
  font-size: 38px;
}
.how-it-works-page .sg-faq-list {
  max-width: 960px;
  margin: 24px auto 0;
}
.how-it-works-page .sg-faq-list details {
  margin: 8px 0;
  border: 1px solid #e3ebf6;
  border-radius: 8px;
  box-shadow: none;
}
.how-it-works-page .sg-faq-list summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  font-size: 13px;
}
.how-it-works-page .sg-cta-panel {
  max-width: none;
  margin: 0;
  border-radius: 0;
  padding: 40px max(24px, calc((100vw - 1040px) / 2));
  background: linear-gradient(105deg, #075ce9, #3095ff);
}

/* Borrowers */
.borrowers-page .sg-borrower-hero {
  min-height: 420px;
  grid-template-columns: minmax(0, 1fr) 510px;
  gap: 36px;
  padding: 46px max(24px, calc((100vw - 1200px) / 2));
  background: linear-gradient(115deg, #fff 0 60%, #edf5ff 60% 100%);
}
.borrowers-page .sg-borrower-hero > div:first-child {
  max-width: 600px;
  position: relative;
  z-index: 2;
}
.borrowers-page .sg-borrower-hero h1 {
  max-width: 560px;
  font-size: 52px;
  line-height: 1.02;
  letter-spacing: -0.055em;
}
.borrowers-page .sg-borrower-hero p {
  max-width: 570px;
  margin: 9px 0;
  color: #53698e;
  font-size: 14px;
  line-height: 1.55;
}
.borrowers-page .sg-borrower-hero .sg-primary-btn {
  margin-top: 9px;
}
.borrowers-page .sg-property-visual {
  align-self: stretch;
  min-height: 330px;
  border-radius: 0;
  background: url("assets/borrower-house-reference.png") center/cover no-repeat;
  box-shadow: none;
}
.borrowers-page .sg-property-visual:before {
  display: none;
}
.borrowers-page .sg-section {
  padding-top: 48px;
  padding-bottom: 48px;
}
.borrowers-page .borrower-cards {
  gap: 12px;
  margin-top: 18px;
}
.borrowers-page .borrower-cards article {
  min-height: 365px;
  padding: 18px 16px;
  border-radius: 10px;
  border-color: #dce7f5;
  box-shadow: 0 9px 22px rgba(8, 40, 89, 0.035);
  font-size: 11px;
}
.borrowers-page .borrower-cards article > span {
  width: 36px;
  height: 36px;
  margin: 0 0 11px;
  font-size: 15px;
}
.borrowers-page .borrower-cards h3 {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.25;
}
.borrowers-page .borrower-cards p,
.borrowers-page .borrower-cards li {
  font-size: 10px;
  line-height: 1.47;
}
.borrowers-page .borrower-cards ul {
  padding-left: 15px;
  margin-bottom: 0;
}
.borrowers-page .borrower-cards b {
  font-size: 10px;
  color: #147bff;
}
.borrowers-page .sg-soft {
  background: linear-gradient(180deg, #f5f9ff, #edf4fc);
}
.borrowers-page .sg-soft h2 {
  max-width: 780px;
  margin: 0 auto 24px;
  color: #5c6b85;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0;
}
.borrowers-page .sg-icon-grid.five {
  gap: 0;
  margin-top: 12px;
}
.borrowers-page .sg-icon-grid.five article {
  min-height: 125px;
  padding: 15px 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 12px;
}
.borrowers-page .sg-icon-grid.five article:not(:last-child) {
  border-right: 1px solid #dce7f5;
}
.borrowers-page .sg-icon-grid.five article:before {
  width: 42px;
  height: 42px;
  margin-bottom: 10px;
  border: 1px solid #c9dbfb;
  background: #fff;
  color: #147bff;
  font-size: 18px;
}
.borrowers-page .sg-icon-grid.five article:nth-child(1):before {
  content: "◇";
}
.borrowers-page .sg-icon-grid.five article:nth-child(2):before {
  content: "◔";
}
.borrowers-page .sg-icon-grid.five article:nth-child(3):before {
  content: "▤";
}
.borrowers-page .sg-icon-grid.five article:nth-child(4):before {
  content: "↪";
}
.borrowers-page .sg-icon-grid.five article:nth-child(5):before {
  content: "□";
}
.borrowers-page .sg-icon-grid.five small {
  font-size: 9px;
  line-height: 1.45;
}
.borrowers-page .sg-scenario-grid {
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  margin-top: 20px;
}
.borrowers-page .sg-scenario-grid span {
  position: relative;
  min-height: 86px;
  padding: 48px 12px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 10px;
  line-height: 1.25;
}
.borrowers-page .sg-scenario-grid span:not(:nth-child(6n)) {
  border-right: 1px solid #e0e8f3;
}
.borrowers-page .sg-scenario-grid span:nth-child(-n + 6) {
  border-bottom: 1px solid #e0e8f3;
}
.borrowers-page .sg-scenario-grid span:before {
  content: "◇";
  position: absolute;
  left: 50%;
  top: 11px;
  transform: translateX(-50%);
  color: #147bff;
  font-size: 25px;
  font-weight: 400;
}
.borrowers-page .sg-scenario-grid span:nth-child(2n):before {
  content: "♒";
}
.borrowers-page .sg-scenario-grid span:nth-child(3n):before {
  content: "↗";
}
.borrowers-page .sg-scenario-grid span:nth-child(4n):before {
  content: "▱";
}
.borrowers-page .borrower-why {
  grid-template-columns: 1fr 2.2fr;
  gap: 34px;
  max-width: 1120px;
  margin: 8px auto 18px;
  padding: 34px;
  border-radius: 14px;
}
.borrowers-page .borrower-why h2 {
  font-size: 31px;
}
.borrowers-page .borrower-why p {
  font-size: 11px;
}
.borrowers-page .borrower-why .sg-dark-list {
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.borrowers-page .borrower-why .sg-dark-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  padding: 10px 14px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0;
  background: transparent;
  text-align: center;
  font-size: 9px;
  line-height: 1.35;
}
.borrowers-page .sg-cta-panel {
  min-height: 88px;
  margin-bottom: 26px;
  padding: 22px 30px;
  border-radius: 12px;
}
.borrowers-page .sg-cta-panel h2 {
  font-size: 24px;
  margin-bottom: 4px;
}
.borrowers-page .sg-cta-panel p {
  font-size: 10px;
}

/* Contact */
.contact-page .sg-contact-hero {
  min-height: 430px;
  grid-template-columns: minmax(0, 1fr) 470px;
  gap: 60px;
  align-items: center;
  padding: 62px max(28px, calc((100vw - 1200px) / 2));
  background: linear-gradient(115deg, #00102d, #06326d);
}
.contact-page .sg-contact-hero > div:first-child {
  max-width: 590px;
}
.contact-page .sg-contact-hero .sg-eyebrow {
  display: none;
}
.contact-page .sg-contact-hero h1 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 54px;
  line-height: 1.03;
  letter-spacing: -0.045em;
}
.contact-page .sg-contact-hero p {
  margin: 12px 0;
  color: #fff;
  font-size: 17px;
  line-height: 1.55;
}
.contact-page .sg-chat-phone {
  width: 100%;
  min-height: 300px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: url("assets/contact-assistant-reference.png") center/contain
    no-repeat;
  box-shadow: none;
  transform: none;
}
.contact-page .sg-chat-phone > * {
  display: none;
}
.contact-page .sg-contact-cards {
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 12px;
}
.contact-page .sg-contact-cards article {
  position: relative;
  min-height: 176px;
  padding: 27px 28px 24px 105px;
  border-radius: 10px;
}
.contact-page .sg-contact-cards article > span {
  position: absolute;
  left: 27px;
  top: 27px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  font-size: 0;
}
/* .contact-page .sg-contact-cards article:nth-child(1)>span:before{content:"✓";font-size:23px}
.contact-page .sg-contact-cards article:nth-child(2)>span:before{content:"✦";font-size:23px}
.contact-page .sg-contact-cards h3{
  margin:0 0 12px;
  font-size:22px;
} */
.contact-page .sg-contact-cards p {
  font-size: 13px;
  line-height: 1.5;
}
.contact-page .sg-contact-cards .sg-primary-btn,
.contact-page .sg-contact-cards .sg-outline-blue {
  min-height: 40px;
  margin-top: 8px;
  padding: 0 20px;
  font-size: 11px;
}
.contact-page .sg-section.two-col {
  grid-template-columns: 1fr 1.05fr;
  gap: 52px;
  align-items: start;
  padding-top: 32px;
  padding-bottom: 34px;
}
.contact-page .sg-section.two-col .sg-card {
  min-height: 320px;
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 24px 12px;
}
.contact-page .sg-section.two-col .sg-card:first-child .sg-eyebrow {
  color: #061535;
  letter-spacing: 0;
  text-transform: none;
  font-size: 28px;
  margin-bottom: 14px;
}
.contact-page .sg-section.two-col .sg-card:first-child h2 {
  display: none;
}
.contact-page .sg-section.two-col .sg-card:first-child p {
  margin: 12px 0;
  padding-left: 70px;
  min-height: 46px;
  position: relative;
  color: #203252;
  font-size: 13px;
  line-height: 1.48;
}
.contact-page .sg-section.two-col .sg-card:first-child p:first-of-type {
  padding-left: 0;
  min-height: 0;
}
.contact-page
  .sg-section.two-col
  .sg-card:first-child
  p:nth-of-type(n + 2):before {
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #eef5ff;
  display: grid;
  place-items: center;
  color: #147bff;
  font-size: 21px;
}
.contact-page .sg-section.two-col .sg-card:first-child p:nth-of-type(2):before {
  content: "⌕";
}
.contact-page .sg-section.two-col .sg-card:first-child p:nth-of-type(3):before {
  content: "✉";
}
.contact-page .sg-section.two-col .sg-card:first-child p:nth-of-type(4):before {
  content: "▤";
}
.contact-page .sg-section.two-col .sg-card:first-child .sg-primary-btn {
  margin-left: 70px;
}
.contact-page .sg-section.two-col .sg-card:last-child {
  padding: 34px 38px;
  border-radius: 10px;
  background: linear-gradient(145deg, #f9fbff, #f1f5fb);
}
.contact-page .sg-section.two-col .sg-card:last-child h3 {
  font-size: 20px;
  margin-top: 0;
}
.contact-page .sg-card > a:not(.sg-primary-btn):not(.sg-outline-blue) {
  padding: 16px 0;
  position: relative;
}
.contact-page .sg-card > a:not(.sg-primary-btn):not(.sg-outline-blue):after {
  content: "›";
  position: absolute;
  right: 3px;
  color: #10274f;
  font-size: 22px;
}
.contact-page .sg-cta-panel {
  max-width: 1120px;
  min-height: 130px;
  margin: 0 auto 24px;
  padding: 28px 34px 28px 130px;
  color: #07163a;
  background: linear-gradient(110deg, #f0f6ff, #e8f2ff);
  border: 1px solid #d7e5f7;
}
.contact-page .sg-cta-panel:before {
  content: "↗";
  position: absolute;
  left: 34px;
  top: 22px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: #147bff;
  font-size: 38px;
}
.contact-page .sg-cta-panel h2 {
  color: #07163a;
  font-size: 28px;
}
.contact-page .sg-cta-panel p {
  color: #243b62;
  font-size: 12px;
}
.contact-page .sg-cta-panel .sg-white-btn {
  background: #147bff;
  color: #fff;
}
.contact-page .sg-quiet-office {
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 0 30px;
}
.contact-page .sg-quiet-office h3 {
  font-size: 14px;
}
.contact-page .sg-quiet-office p {
  font-size: 11px;
}

/* Referral partners */
.referral-partners-page main {
  background: #00102d;
}
.referral-partners-page .sg-referral-hero {
  min-height: 510px;
  grid-template-columns: minmax(0, 1fr) 530px;
  gap: 42px;
  padding: 42px max(24px, calc((100vw - 1220px) / 2));
  background: linear-gradient(105deg, #00102d 0%, #021738 100%);
}
.referral-partners-page .sg-referral-hero h1 {
  max-width: 650px;
  font-size: 51px;
  line-height: 1.04;
  letter-spacing: -0.045em;
}
.referral-partners-page .sg-referral-hero p {
  max-width: 620px;
  margin: 8px 0;
  color: #d1def0;
  font-size: 13px;
  line-height: 1.55;
}
.referral-partners-page .sg-referral-photo {
  min-height: 390px;
  border-radius: 0;
  background: url("assets/referral-meeting-reference.png") center/cover
    no-repeat;
  box-shadow: none;
}
.referral-partners-page .sg-referral-photo:before,
.referral-partners-page .sg-referral-photo:after,
.referral-partners-page .sg-referral-photo > div {
  display: none;
}
.referral-partners-page .sg-hero-actions {
  margin-top: 17px;
}
.referral-partners-page .sg-mini-trust {
  gap: 0;
  margin-top: 22px;
}
.referral-partners-page .sg-mini-trust span {
  position: relative;
  padding: 8px 18px 8px 32px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0;
  background: transparent;
  color: #dbe8fb;
  font-size: 10px;
}
.referral-partners-page .sg-mini-trust span:before {
  content: "◇";
  position: absolute;
  left: 9px;
  color: #2c82ff;
  font-size: 17px;
}
.referral-partners-page .referral-dark-section {
  padding-top: 34px;
  padding-bottom: 34px;
  background: #00102d;
}
.referral-partners-page .referral-dark-section > .sg-eyebrow {
  margin-bottom: 20px;
}
.referral-partners-page .sg-card-grid.six {
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.referral-partners-page .sg-card-grid.six article {
  min-height: 190px;
  padding: 70px 16px 18px;
  border-radius: 8px;
  text-align: center;
  font-size: 13px;
}
.referral-partners-page .sg-card-grid.six article:before {
  content: "♙";
  position: absolute;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  color: #2f87ff;
  font-size: 37px;
  font-weight: 400;
}
.referral-partners-page .sg-card-grid.six article:nth-child(2):before {
  content: "▦";
}
.referral-partners-page .sg-card-grid.six article:nth-child(3):before {
  content: "⚖";
}
.referral-partners-page .sg-card-grid.six article:nth-child(4):before {
  content: "▥";
}
.referral-partners-page .sg-card-grid.six article:nth-child(5):before {
  content: "⌂";
}
.referral-partners-page .sg-card-grid.six article:nth-child(6):before {
  content: "▣";
}
.referral-partners-page .sg-card-grid.six article small {
  font-size: 10px;
  line-height: 1.45;
}
.referral-partners-page .referral-dark-section.two-col {
  grid-template-columns: 0.95fr 1.25fr;
  gap: 16px;
}
.referral-partners-page .referral-dark-section .sg-card.dark {
  padding: 24px 28px;
  border-radius: 8px;
}
.referral-partners-page .referral-dark-section .sg-card.dark h2 {
  max-width: 400px;
  font-size: 30px;
}
.referral-partners-page .referral-dark-section .sg-card.dark p {
  font-size: 11px;
  line-height: 1.5;
}
.referral-partners-page .referral-dark-section .sg-dark-list {
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
  margin-top: 18px;
}
.referral-partners-page .referral-dark-section .sg-dark-list li {
  position: relative;
  padding: 8px 0 8px 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 11px;
}
.referral-partners-page .referral-dark-section .sg-dark-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #2f87ff;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 10px;
}
.referral-partners-page .sg-scenario-grid.compact {
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 18px;
}
.referral-partners-page .sg-scenario-grid.compact span {
  position: relative;
  min-height: 80px;
  padding: 42px 10px 8px;
  border-radius: 0;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: transparent;
  font-size: 9px;
}
.referral-partners-page .sg-scenario-grid.compact span:before {
  content: "◇";
  position: absolute;
  left: 50%;
  top: 11px;
  transform: translateX(-50%);
  color: #2f87ff;
  font-size: 25px;
}
.referral-partners-page .sg-horizontal-steps {
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}
.referral-partners-page .sg-horizontal-steps:before {
  content: "";
  position: absolute;
  left: 9%;
  right: 9%;
  top: 30px;
  border-top: 2px dashed rgba(255, 255, 255, 0.45);
}
.referral-partners-page .sg-horizontal-steps article {
  min-height: 130px;
  padding: 0 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
  z-index: 1;
}
.referral-partners-page .sg-horizontal-steps span {
  width: 58px;
  height: 58px;
  margin: 0 0 12px;
  border: 2px solid #7aa8ff;
  background: #075ce9;
  box-shadow: 0 0 0 7px #00102d;
}
.referral-partners-page .sg-horizontal-steps h3 {
  margin: 0 0 5px;
  font-size: 14px;
}
.referral-partners-page .sg-horizontal-steps p {
  margin: 0;
  font-size: 10px;
  line-height: 1.45;
}
.referral-partners-page .referral-dark-section.two-col:nth-of-type(5) {
  grid-template-columns: 1.25fr 0.75fr;
}
.referral-partners-page
  .referral-dark-section.two-col:nth-of-type(5)
  .sg-card:first-child {
  min-height: 235px;
  padding-right: 48%;
  background: #061532 url("assets/referral-dashboard-reference.png") right
    bottom/48% auto no-repeat;
}
.referral-partners-page
  .referral-dark-section.two-col:nth-of-type(5)
  .sg-dark-list {
  grid-template-columns: 1fr 1fr;
  gap: 0 15px;
}
.referral-partners-page
  .referral-dark-section.two-col:nth-of-type(5)
  .sg-dark-list
  li {
  font-size: 9px;
}
.referral-partners-page .referral-dark-section .sg-faq-list details {
  margin: 7px 0;
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: #061532;
}
.referral-partners-page .referral-dark-section .sg-faq-list summary {
  padding: 13px 14px;
  color: #fff;
  font-size: 11px;
}
.referral-partners-page .referral-back {
  max-width: 1120px;
  margin: 10px auto 14px;
  padding: 22px 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  grid-template-columns: 1.2fr 0.8fr;
  box-shadow: none;
}
.referral-partners-page .referral-back p {
  font-size: 10px;
}
.referral-partners-page .sg-cta-panel {
  max-width: 1120px;
  min-height: 88px;
  margin: 0 auto 18px;
  padding: 18px 28px;
  border-radius: 8px;
}
.referral-partners-page .sg-cta-panel h2 {
  font-size: 24px;
  margin-bottom: 3px;
}
.referral-partners-page .sg-cta-panel p {
  font-size: 10px;
}
.referral-partners-page .sg-cta-actions {
  display: flex;
  gap: 10px;
}
.referral-partners-page .sg-cta-actions .sg-white-btn {
  min-height: 38px;
  font-size: 10px;
}

@media (max-width: 1100px) {
  .sg-footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 42px;
  }
  .sg-footer-legal {
    grid-column: 2;
  }
  .sg-footer-brand {
    grid-row: 1 / span 2;
  }
  .how-it-works-page .sg-timeline article {
    grid-template-columns: 100px 1fr 270px;
  }
  .borrowers-page .sg-borrower-hero,
  .contact-page .sg-contact-hero,
  .referral-partners-page .sg-referral-hero {
    grid-template-columns: 1fr 390px;
  }
  .borrowers-page .borrower-why .sg-dark-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .sg-site-header {
    padding: 0 20px;
  }
  .sg-footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .sg-footer-brand {
    grid-row: auto;
    grid-column: 1/-1;
  }
  .sg-footer-bottom {
    grid-template-columns: 1fr;
    padding-right: 0;
  }
  .how-it-works-page .sg-timeline article {
    grid-template-columns: 84px 1fr;
  }
  .how-it-works-page .sg-timeline article > ul {
    grid-column: 2;
  }
  .how-it-works-page .sg-timeline:before {
    left: 45px;
  }
  .how-it-works-page .sg-timeline article > span {
    width: 72px;
    height: 72px;
    margin-left: 9px;
  }
  .how-it-works-page .sg-timeline article > span:before {
    font-size: 30px;
  }
  .how-it-works-page .sg-icon-grid.seven {
    grid-template-columns: repeat(3, 1fr);
  }
  .borrowers-page .sg-borrower-hero,
  .contact-page .sg-contact-hero,
  .referral-partners-page .sg-referral-hero {
    grid-template-columns: 1fr;
  }
  .borrowers-page .sg-property-visual,
  .contact-page .sg-chat-phone,
  .referral-partners-page .sg-referral-photo {
    display: block;
    min-height: 300px;
  }
  .borrowers-page .borrower-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .borrowers-page .sg-scenario-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .borrowers-page .sg-scenario-grid span:not(:nth-child(6n)) {
    border-right: 0;
  }
  /* .borrowers-page .sg-scenario-grid span:not(:nth-child(3n)){border-right:1px solid #e0e8f3} */
  .borrowers-page .sg-scenario-grid span:nth-child(-n + 9) {
    border-bottom: 1px solid #e0e8f3;
  }
  .borrowers-page .borrower-why {
    grid-template-columns: 1fr;
  }
  .contact-page .sg-contact-cards,
  .contact-page .sg-section.two-col,
  .referral-partners-page .referral-dark-section.two-col,
  .referral-partners-page .referral-dark-section.two-col:nth-of-type(5) {
    grid-template-columns: 1fr;
  }
  .referral-partners-page .sg-card-grid.six {
    grid-template-columns: repeat(3, 1fr);
  }
  .referral-partners-page .sg-horizontal-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .referral-partners-page .sg-horizontal-steps:before {
    display: none;
  }
  .referral-partners-page
    .referral-dark-section.two-col:nth-of-type(5)
    .sg-card:first-child {
    padding-right: 28px;
    background-image: none;
  }
}

@media (max-width: 620px) {
  .sg-site-header {
    height: 68px;
  }
  .sg-site-logo img {
    width: 145px;
  }
  .sg-site-nav {
    top: 68px;
  }
  .sg-site-footer {
    padding: 40px 22px 24px;
  }
  .sg-footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .sg-footer-legal {
    grid-column: auto;
  }
  .sg-footer-brand img {
    width: 165px;
  }
  .how-it-works-page .sg-how-hero {
    min-height: 0;
    padding: 52px 22px;
  }
  .how-it-works-page .sg-how-hero h1,
  .borrowers-page .sg-borrower-hero h1,
  .contact-page .sg-contact-hero h1,
  .referral-partners-page .sg-referral-hero h1 {
    font-size: 38px;
  }
  .how-it-works-page .sg-timeline-section {
    padding: 40px 20px;
  }
  .how-it-works-page .sg-timeline article {
    grid-template-columns: 58px 1fr;
    gap: 14px;
    align-items: start;
  }
  .how-it-works-page .sg-timeline article > span {
    width: 52px;
    height: 52px;
    margin: 0;
  }
  .how-it-works-page .sg-timeline article > span:before {
    font-size: 23px;
  }
  .how-it-works-page .sg-timeline:before {
    left: 25px;
  }
  .how-it-works-page .sg-timeline article > ul {
    grid-column: 1/-1;
    margin-left: 58px;
  }
  .how-it-works-page .sg-timeline h3 {
    font-size: 21px;
  }
  .how-it-works-page .sg-icon-grid.seven {
    grid-template-columns: 1fr 1fr;
  }
  .borrowers-page .sg-borrower-hero,
  .contact-page .sg-contact-hero,
  .referral-partners-page .sg-referral-hero {
    padding: 42px 22px;
  }
  .borrowers-page .sg-property-visual,
  .contact-page .sg-chat-phone,
  .referral-partners-page .sg-referral-photo {
    min-height: 230px;
  }
  .borrowers-page .borrower-cards,
  .borrowers-page .sg-icon-grid.five,
  .borrowers-page .sg-scenario-grid,
  .referral-partners-page .sg-card-grid.six,
  .referral-partners-page .sg-scenario-grid.compact,
  .referral-partners-page .sg-horizontal-steps {
    grid-template-columns: 1fr 1fr;
  }
  .borrowers-page .sg-icon-grid.five article:not(:last-child),
  .borrowers-page .sg-scenario-grid span,
  .referral-partners-page .sg-scenario-grid.compact span {
    border-right: 0;
    border-bottom: 1px solid #dce7f5;
  }
  .borrowers-page .borrower-why .sg-dark-list {
    grid-template-columns: 1fr;
  }
  .borrowers-page .borrower-why .sg-dark-list li {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }
  .contact-page .sg-contact-cards article {
    padding-left: 88px;
  }
  .contact-page .sg-contact-cards article > span {
    left: 20px;
  }
  .contact-page .sg-section.two-col .sg-card:first-child p {
    padding-left: 60px;
  }
  .contact-page .sg-section.two-col .sg-card:first-child .sg-primary-btn {
    margin-left: 60px;
  }
  .contact-page .sg-cta-panel {
    margin-left: 18px;
    margin-right: 18px;
    padding: 100px 24px 25px;
  }
  .contact-page .sg-cta-panel:before {
    left: 24px;
    top: 20px;
  }
  .referral-partners-page .sg-mini-trust {
    display: block;
  }
  .referral-partners-page .sg-mini-trust span {
    display: block;
    border-right: 0;
  }
}

/* Keep desktop header artwork clipped to the header boundary. */
@media (min-width: 821px) {
  .sg-site-header {
    overflow: hidden;
  }
}
.contact-page .sg-cta-panel {
  position: relative;
}

/* v27 precision alignment and icon pass */
.sg-ui-icon,
.sg-footer-nav-icon,
.sg-social-icon,
.sg-contact-card-icon,
.sg-contact-detail-icon,
.sg-common-icon,
.sg-cta-svg,
.sg-office-svg,
.sg-step-svg,
.sg-feature-svg,
.sg-borrower-card-icon,
.sg-scenario-svg,
.sg-partner-svg,
.sg-mini-svg,
.sg-referral-step-svg,
.sg-audience-svg,
.sg-help-hero-svg,
.sg-help-nav-svg {
  width: 24px;
  height: 24px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Shared footer: preserve all copy, align it to the supplied footer reference. */
.sg-site-footer.sg-footer-iconized {
  background: #00102d;
  padding: 54px max(30px, calc((100vw - 1200px) / 2)) 28px;
}
.sg-footer-iconized .sg-footer-top {
  grid-template-columns: minmax(245px, 1.05fr) minmax(360px, 1.25fr) minmax(
      245px,
      0.9fr
    );
  gap: 58px;
}
.sg-footer-iconized .sg-footer-brand img {
  width: 188px;
  max-height: 58px;
  object-fit: contain;
  object-position: left center;
  filter: none !important;
}
.sg-footer-iconized .sg-footer-link-group,
.sg-footer-iconized .sg-footer-legal > a {
  position: relative;
}
.sg-footer-iconized .sg-footer-link-group {
  padding-left: 38px;
}
.sg-footer-iconized .sg-footer-link-group:before,
.sg-footer-iconized .sg-footer-legal > a:before,
.sg-footer-iconized .sg-footer-info h4:before {
  display: none !important;
  content: none !important;
}
.sg-footer-iconized .sg-footer-item-icon {
  position: absolute;
  left: 0;
  top: 9px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #2382ff;
}
.sg-footer-iconized .sg-footer-nav-icon {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}
.sg-footer-iconized .sg-footer-legal > a {
  padding-left: 38px;
}
.sg-footer-iconized .sg-footer-legal > a .sg-footer-item-icon {
  top: 50%;
  transform: translateY(-50%);
}
.sg-footer-iconized .sg-footer-links h4,
.sg-footer-iconized .sg-footer-info h4 {
  color: #2d86ff;
  font-weight: 800;
}
.sg-footer-iconized .sg-footer-link-group > a,
.sg-footer-iconized .sg-footer-legal > a {
  color: #fff;
  font-weight: 650;
}
.sg-footer-iconized .sg-footer-link-group small {
  color: #8ea4c3;
}
.sg-footer-iconized .sg-socials a {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
}
.sg-footer-iconized .sg-social-icon {
  width: 15px;
  height: 15px;
  stroke-width: 2;
}
.sg-footer-iconized .sg-footer-heading-icon {
  position: absolute;
  left: 0;
  top: -3px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: #2d86ff;
}
.sg-footer-iconized .sg-footer-info h4 {
  padding-left: 30px;
}
.sg-footer-iconized .sg-footer-bottom {
  padding-right: 0;
}
.sg-footer-office {
  position: relative;
  max-width: none !important;
  margin: 22px 0 0 !important;
  padding: 20px 0 0 38px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #dce8f8 !important;
}
.sg-footer-office .sg-office-icon {
  position: absolute;
  left: 0;
  top: 20px;
  width: 25px;
  height: 25px;
  color: #2382ff;
}
.sg-footer-office .sg-office-svg {
  width: 23px;
  height: 23px;
}
.sg-footer-office h3,
.sg-footer-office p {
  color: #dce8f8 !important;
  margin: 0 !important;
}
.sg-footer-office h3 {
  font-size: 12px !important;
  margin-bottom: 4px !important;
}
.sg-footer-office p {
  font-size: 10px !important;
  line-height: 1.5 !important;
}

/* Contact page: match the supplied dark hero, two-card row, team/help row and CTA. */
.contact-page {
  background: #fff;
}
.contact-page main {
  background: #fff;
}
.contact-page .sg-site-header {
  background: #00102d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: none;
}
.contact-page .sg-site-logo img {
  width: 180px;
  max-height: 54px;
  object-fit: contain;
}
.contact-page .sg-site-nav a {
  color: #fff;
}
.contact-page .sg-site-nav a.active,
.contact-page .sg-site-nav a:hover {
  color: #2c8cff;
  border-bottom-color: #2c8cff;
}
.contact-page .sg-contact-hero {
  min-height: 460px;
  grid-template-columns: minmax(0, 1fr) 520px;
  gap: 54px;
  padding: 54px max(28px, calc((100vw - 1240px) / 2)) 0;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 72% 30%,
      rgba(24, 112, 255, 0.14),
      transparent 31%
    ),
    linear-gradient(106deg, #00102d 0%, #062653 66%, #001b42 100%);
}
.contact-page .sg-contact-hero > div:first-child {
  max-width: 560px;
  align-self: center;
  padding-bottom: 54px;
}
.contact-page .sg-contact-hero h1 {
  font-size: 52px;
  margin-bottom: 18px;
}
.contact-page .sg-contact-hero p {
  max-width: 550px;
  font-size: 17px;
  line-height: 1.58;
}
.contact-page .sg-chat-phone {
  align-self: stretch;
  min-height: 406px;
  margin: 0;
  background: url("assets/contact-assistant-reference.png") center bottom/cover
    no-repeat;
}
.contact-page main > .sg-section:not(.two-col):not(.sg-quiet-office) {
  padding-top: 38px;
  padding-bottom: 20px;
  background: #fff;
}
.contact-page .sg-contact-cards {
  max-width: 1120px;
  margin: 0 auto;
  gap: 28px;
  padding: 0;
}
.contact-page .sg-contact-cards article {
  min-height: 182px;
  padding: 30px 30px 26px 124px;
  border: 1px solid #dce7f4;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 25, 67, 0.08);
}
.contact-page .sg-contact-cards article > span {
  left: 30px;
  top: 30px;
  width: 66px;
  height: 66px;
  background: #0f6ff5;
  color: #fff;
  box-shadow: 0 10px 25px rgba(15, 111, 245, 0.22);
}
.contact-page .sg-contact-card-icon {
  width: 31px;
  height: 31px;
  stroke-width: 1.7;
}
.contact-page .sg-contact-cards h3 {
  margin: 0 0 11px;
  font-size: 21px;
  line-height: 1.2;
}
.contact-page .sg-contact-cards article h3:before {
  content: attr(data-step) ". ";
}
.contact-page .sg-contact-cards p {
  margin: 0 0 12px;
  color: #243858;
  font-size: 13px;
  line-height: 1.55;
}
.contact-page .sg-contact-cards .sg-primary-btn,
.contact-page .sg-contact-cards .sg-outline-blue {
  min-height: 40px;
  margin-top: 0;
  padding: 0 24px;
  border-radius: 7px;
  font-size: 11px;
  text-transform: uppercase;
}
.contact-page .sg-section.two-col {
  max-width: 1120px;
  margin: 0 auto;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 18px 0 38px;
  background: #fff;
}
.contact-page .sg-section.two-col .sg-card {
  min-height: 352px;
  padding: 28px 12px;
}
.contact-page .sg-section.two-col .sg-card:first-child .sg-eyebrow {
  font-size: 0;
  margin: 0 0 18px;
}
.contact-page .sg-section.two-col .sg-card:first-child .sg-eyebrow:before {
  content: "3. Speak With Our Team";
  color: #07183b;
  font-size: 29px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.contact-page .sg-section.two-col .sg-card:first-child p {
  padding-left: 70px;
  min-height: 54px;
  display: block;
  margin: 12px 0;
}
.contact-page .sg-section.two-col .sg-card:first-child p:first-of-type {
  padding-left: 0;
  min-height: 0;
  max-width: 330px;
  margin-bottom: 16px;
}
.contact-page
  .sg-section.two-col
  .sg-card:first-child
  p:nth-of-type(n + 2):before {
  display: none !important;
  content: none !important;
}
.contact-page .sg-contact-detail-icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  padding: 12px;
  border-radius: 50%;
  background: #eef5ff;
  color: #126dff;
  stroke-width: 1.8;
}
.contact-page .sg-section.two-col .sg-card:first-child .sg-primary-btn {
  margin-left: 70px;
  min-height: 38px;
  padding: 0;
  background: transparent;
  color: #0e68f1;
  box-shadow: none;
  text-transform: uppercase;
}
.contact-page .sg-section.two-col .sg-card:last-child {
  position: relative;
  padding: 42px 42px 32px 104px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fbff, #eef4fd);
}
.contact-page .sg-common-title-icon {
  position: absolute;
  left: 42px;
  top: 34px;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e3efff;
  color: #126dff;
}
.contact-page .sg-common-icon {
  width: 25px;
  height: 25px;
}
.contact-page .sg-section.two-col .sg-card:last-child h3 {
  margin: 0 0 8px;
  font-size: 20px;
}
.contact-page .sg-section.two-col .sg-card:last-child > p {
  margin: 0 0 12px;
  color: #334766;
  font-size: 12px;
}
.contact-page
  .sg-section.two-col
  .sg-card:last-child
  > a:not(.sg-outline-blue) {
  padding: 14px 0;
  font-size: 12px;
}
.contact-page .sg-section.two-col .sg-card:last-child .sg-outline-blue {
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  text-transform: uppercase;
}
.contact-page .sg-cta-panel {
  position: relative;
  max-width: 1120px;
  min-height: 138px;
  margin: 0 auto 26px;
  padding: 30px 34px 30px 30px;
  border-radius: 12px;
  background:
    radial-gradient(
      circle at 96% 50%,
      rgba(35, 130, 255, 0.13),
      transparent 24%
    ),
    linear-gradient(110deg, #eff6ff, #e9f2ff);
}
.contact-page .sg-cta-panel:before {
  display: none !important;
  content: none !important;
}
.contact-page .sg-cta-icon {
  position: absolute;
  /* left:34px;
  top:25px; */
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #126dff;
  box-shadow: 0 10px 28px rgba(8, 70, 160, 0.08);
}
.contact-page .sg-cta-svg {
  width: 44px;
  height: 44px;
  stroke-width: 1.65;
}
.contact-page .sg-cta-panel h2 {
  font-size: 28px;
  margin-bottom: 8px;
}
.contact-page .sg-cta-panel p {
  max-width: 560px;
  font-size: 12px;
}
.contact-page .sg-cta-panel .sg-white-btn {
  min-width: 260px;
  min-height: 46px;
  border-radius: 7px;
  text-transform: uppercase;
}

/* How It Works: use real line icons in the supplied timeline layout. */
.how-it-works-page .sg-timeline article > span:before {
  display: none !important;
  content: none !important;
}
.how-it-works-page .sg-step-svg {
  width: 42px;
  height: 42px;
  color: #126dff;
  stroke-width: 1.55;
}
.how-it-works-page .sg-feature-icon,
.about-page .sg-feature-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin: 0 auto 13px;
  border: 1px solid #ccdef8;
  border-radius: 50%;
  color: #126dff;
  background: #f8fbff;
}
.how-it-works-page .sg-feature-svg,
.about-page .sg-feature-svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.7;
}

/* Borrowers: replace text glyphs with consistent finance line icons. */
.borrowers-page .borrower-cards article > span {
  background: #0f6ff5;
  color: #fff;
  border-radius: 50%;
}
.borrowers-page .sg-borrower-card-icon {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
}
.borrowers-page .sg-icon-grid.five article:before,
.borrowers-page .sg-scenario-grid span:before {
  display: none !important;
  content: none !important;
}
.borrowers-page .sg-icon-grid.five .sg-feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
  border: 1px solid #c9dbfb;
  border-radius: 50%;
  background: #fff;
  color: #147bff;
}
.borrowers-page .sg-feature-svg {
  width: 21px;
  height: 21px;
}
.sg-scenario-icon {
  padding: 0 !important;
  position: absolute;
  /* left:50%;
  top:12px; */
  /* transform: translateX(0%); */
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #147bff;
}
.sg-scenario-svg {
  width: 25px;
  height: 25px;
  stroke-width: 1.6;
}

/* Referral Partners: use proper icons and maintain the supplied dark grid alignment. */
.referral-partners-page .sg-card-grid.six article:before,
.referral-partners-page .sg-scenario-grid.compact span:before,
.referral-partners-page .sg-mini-trust span:before {
  display: none !important;
  content: none !important;
}
.referral-partners-page .sg-partner-icon {
  position: absolute;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #2f87ff;
}
.referral-partners-page .sg-partner-svg {
  width: 35px;
  height: 35px;
  stroke-width: 1.45;
}
.referral-partners-page .sg-mini-trust span {
  padding-left: 42px;
}
.referral-partners-page .sg-mini-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: #2f87ff;
}
.referral-partners-page .sg-mini-svg {
  width: 18px;
  height: 18px;
}
.referral-partners-page .sg-referral-step-svg {
  width: 27px;
  height: 27px;
  color: #fff;
  stroke-width: 1.8;
}

/* About page: align it with the same visual system as the supplied pages. */
.about-page main {
  background: #fff;
}
.about-page .sg-about-hero {
  min-height: 470px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 58px;
  align-items: center;
  padding: 62px max(28px, calc((100vw - 1160px) / 2));
  background:
    radial-gradient(
      circle at 77% 26%,
      rgba(30, 129, 255, 0.23),
      transparent 22%
    ),
    linear-gradient(108deg, #00102d 0%, #062653 68%, #0b57bf 100%);
  color: #fff;
}
.about-page .sg-about-hero > div:first-child {
  max-width: 670px;
}
.about-page .sg-about-hero h1 {
  max-width: 650px;
  font-size: 54px;
  line-height: 1.02;
  letter-spacing: -0.05em;
}
.about-page .sg-about-hero p {
  color: #d7e7fb;
  font-size: 15px;
  line-height: 1.6;
}
.about-page .sg-abstract-visual {
  display: block;
  min-height: 340px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(
      135deg,
      transparent 0 40%,
      rgba(255, 255, 255, 0.08) 40% 41%,
      transparent 41% 100%
    ),
    radial-gradient(circle at 32% 32%, #1d84ff 0 10%, transparent 10.5%),
    radial-gradient(circle at 62% 54%, #00b8ef 0 12%, transparent 12.5%),
    radial-gradient(circle at 40% 75%, #fff 0 7%, transparent 7.5%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(0, 15, 45, 0.3));
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.22);
}
.about-page .sg-section {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 62px;
  padding-bottom: 62px;
}
.about-page .sg-section.sg-soft {
  max-width: none;
  padding-left: max(24px, calc((100vw - 1120px) / 2));
  padding-right: max(24px, calc((100vw - 1120px) / 2));
  background: linear-gradient(180deg, #f6faff, #edf5ff);
}
.about-page .sg-card {
  border-radius: 12px;
  padding: 32px;
}
.about-page .sg-card.dark {
  background: linear-gradient(135deg, #00102d, #062653);
}
.about-page .sg-icon-grid.seven {
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}
.about-page .sg-icon-grid.seven article {
  min-height: 148px;
  padding: 20px 12px;
  border-radius: 12px;
  text-align: center;
  font-size: 11px;
  line-height: 1.4;
}
.about-page .sg-card-grid.five article {
  position: relative;
  min-height: 220px;
  padding: 76px 18px 22px;
  border-radius: 12px;
  text-align: center;
}
.about-page .sg-audience-icon {
  position: absolute;
  left: 50%;
  top: 22px;
  transform: translateX(-50%);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #147bff;
}
.about-page .sg-audience-svg {
  width: 34px;
  height: 34px;
  stroke-width: 1.55;
}
.about-page .sg-card-grid.five h3 {
  font-size: 16px;
  line-height: 1.25;
}
.about-page .sg-card-grid.five p {
  font-size: 11px;
  line-height: 1.5;
}
.about-page .sg-cta-panel {
  max-width: 1120px;
}

/* Help Centre: cleaner max-width, aligned sidebar and consistent FAQ cards. */
.help-centre-page main {
  background: #f7faff;
}
.help-centre-page .sg-page-hero {
  min-height: 370px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 58px 24px;
  background:
    radial-gradient(
      circle at 90% 70%,
      rgba(38, 132, 255, 0.15),
      transparent 23%
    ),
    linear-gradient(180deg, #fff, #f4f8ff);
}
.help-centre-page .sg-help-hero-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #e9f3ff;
  color: #126dff;
}
.help-centre-page .sg-help-hero-svg {
  width: 31px;
  height: 31px;
  stroke-width: 1.7;
}
.help-centre-page .sg-page-hero h1 {
  max-width: 780px;
  margin: 0 auto 16px;
  font-size: 50px;
  line-height: 1.04;
  text-align: center;
}
.help-centre-page .sg-page-hero > p:last-child {
  max-width: 760px;
  margin: 0 auto;
  color: #526784;
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
}
.help-centre-page main > .sg-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 40px 72px;
}
.help-centre-page .sg-help-layout {
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}
.help-centre-page .sg-help-nav {
  top: 96px;
  gap: 7px;
  padding: 15px;
  border: 1px solid #dce7f5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 25, 67, 0.06);
}
.help-centre-page .sg-help-nav a {
  position: relative;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #213757;
  font-size: 11px;
  line-height: 1.35;
}
.help-centre-page .sg-help-nav a:hover {
  background: #edf5ff;
  color: #126dff;
}
.help-centre-page .sg-help-nav-icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #edf5ff;
  color: #126dff;
}
.help-centre-page .sg-help-nav-svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.8;
}
.help-centre-page .sg-help-group {
  margin: 0 0 24px;
  padding: 28px;
  border: 1px solid #e0e9f5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 25, 67, 0.045);
}
.help-centre-page .sg-help-group h2 {
  margin: 0 0 16px;
  padding: 0 0 12px;
  border-bottom: 1px solid #e4ebf4;
  color: #0b1a3c;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: 0.02em;
}
.help-centre-page .sg-faq-large details {
  margin: 8px 0;
  border: 1px solid #e3ebf5;
  border-radius: 9px;
  box-shadow: none;
}
.help-centre-page .sg-faq-large summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 13px 16px;
  color: #13294d;
  font-size: 12px;
  line-height: 1.45;
}
.help-centre-page .sg-faq-list summary:after {
  margin-left: auto;
  padding-left: 18px;
}
.help-centre-page .sg-faq-large p {
  padding: 0 16px 17px;
  color: #526784;
  font-size: 12px;
  line-height: 1.65;
}

@media (max-width: 1100px) {
  .sg-footer-iconized .sg-footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 42px;
  }
  .sg-footer-iconized .sg-footer-brand {
    grid-row: 1 / span 2;
  }
  .sg-footer-iconized .sg-footer-legal {
    grid-column: 2;
  }
  .contact-page .sg-contact-hero {
    grid-template-columns: 1fr 440px;
  }
  .contact-page .sg-section.two-col {
    padding-left: 28px;
    padding-right: 28px;
  }
  .contact-page .sg-cta-panel {
    margin-left: 28px;
    margin-right: 28px;
  }
  .about-page .sg-about-hero {
    grid-template-columns: 1fr 360px;
  }
  .about-page .sg-icon-grid.seven {
    grid-template-columns: repeat(4, 1fr);
  }
  .about-page .sg-card-grid.five {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .contact-page .sg-site-header {
    background: #fff;
  }
  .contact-page .sg-site-logo img {
    content: url("assets/shortgap-logo-cropped-transparent.png");
  }
  .contact-page .sg-menu-toggle {
    color: #147bff;
    background: #fff;
  }
  .contact-page .sg-contact-hero {
    grid-template-columns: 1fr;
    padding-top: 48px;
  }
  .contact-page .sg-chat-phone {
    min-height: 340px;
    background-size: contain;
  }
  .contact-page .sg-section.two-col {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .contact-page .sg-cta-panel {
    align-items: flex-start;
  }
  .about-page .sg-about-hero {
    grid-template-columns: 1fr;
  }
  .about-page .sg-abstract-visual {
    min-height: 260px;
  }
  .help-centre-page .sg-help-layout {
    grid-template-columns: 1fr;
  }
  .help-centre-page .sg-help-nav {
    position: static;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {

  .sg-footer-iconized .sg-footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .sg-footer-iconized .sg-footer-brand {
    grid-row: auto;
  }
  .sg-footer-iconized .sg-footer-legal {
    grid-column: auto;
  }
  .contact-page .sg-contact-hero h1,
  .about-page .sg-about-hero h1,
  .help-centre-page .sg-page-hero h1 {
    font-size: 38px;
  }
  .contact-page .sg-contact-cards {
    grid-template-columns: 1fr;
  }
  .contact-page .sg-contact-cards article {
    padding: 26px 22px 24px 100px;
  }
  .contact-page .sg-contact-cards article > span {
    left: 22px;
    top: 25px;
    width: 58px;
    height: 58px;
  }
  .contact-page .sg-section.two-col {
    padding-left: 20px;
    padding-right: 20px;
  }
  .contact-page .sg-section.two-col .sg-card:last-child {
    padding: 88px 24px 28px;
  }
  .contact-page .sg-common-title-icon {
    left: 24px;
    top: 25px;
  }
  .contact-page .sg-cta-panel {
    margin-left: 18px;
    margin-right: 18px;
    padding: 126px 24px 28px;
  }
  /* .contact-page .sg-cta-icon{left:24px;top:24px} */
  .contact-page .sg-cta-panel .sg-white-btn {
    min-width: 0;
    width: 100%;
  }
  .about-page .sg-icon-grid.seven,
  .about-page .sg-card-grid.five {
    grid-template-columns: 1fr 1fr;
  }
  .help-centre-page main > .sg-section {
    padding: 34px 18px 52px;
  }
  .help-centre-page .sg-help-nav {
    grid-template-columns: 1fr;
  }
  .help-centre-page .sg-help-group {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .about-page .sg-icon-grid.seven,
  .about-page .sg-card-grid.five {
    grid-template-columns: 1fr;
  }
  .contact-page .sg-section.two-col .sg-card:first-child p {
    padding-left: 58px;
  }
  .contact-page .sg-contact-detail-icon {
    width: 42px;
    height: 42px;
    padding: 10px;
  }
  .contact-page .sg-section.two-col .sg-card:first-child .sg-primary-btn {
    margin-left: 58px;
  }
}

/* v27.1 visual corrections after page-by-page comparison */
.contact-page .sg-contact-cards article h3:before {
  content: "";
}
.contact-page .sg-contact-cards article:nth-child(1) h3:before {
  content: "1. ";
}
.contact-page .sg-contact-cards article:nth-child(2) h3:before {
  content: "2. ";
}
.how-it-works-page .sg-icon-grid.seven article:before,
.about-page .sg-icon-grid.seven article:before {
  display: none !important;
  content: none !important;
}
.about-page .sg-abstract-visual:after {
  display: none !important;
  content: none !important;
}
.referral-partners-page .sg-mini-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 620px;
  gap: 0;
}
.referral-partners-page .sg-mini-trust > span {
  position: relative;
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 8px 18px 8px 42px;
}
.referral-partners-page .sg-mini-trust .sg-mini-icon {
  position: absolute !important;
  left: 10px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 23px !important;
  height: 23px !important;
  min-height: 0 !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #2f87ff !important;
}
.referral-partners-page .sg-mini-trust .sg-mini-svg {
  width: 19px !important;
  height: 19px !important;
}
@media (max-width: 620px) {
  .referral-partners-page .sg-mini-trust {
    grid-template-columns: 1fr;
  }
}
.sg-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.referral-partners-page .sg-horizontal-steps article > span {
  position: relative;
}
.referral-partners-page .sg-step-number-badge {
  position: absolute !important;
  right: -6px;
  bottom: -5px;
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 50% !important;
  background: #fff !important;
  color: #126dff !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Keep the legacy application mobile typography rules from overriding public marketing pages. */
@media (max-width: 560px) {
  body.sg-marketing-body .sg-hero h1,
  body.sg-marketing-body .sg-page-hero h1,
  body.sg-marketing-body .sg-how-hero h1,
  body.sg-marketing-body .sg-borrower-hero h1,
  body.sg-marketing-body .sg-contact-hero h1,
  body.sg-marketing-body .sg-referral-hero h1,
  body.sg-marketing-body .sg-about-hero h1 {
    font-size: 36px !important;
    line-height: 1.05 !important;
    font-weight: 850 !important;
  }
  body.sg-marketing-body .sg-section h2,
  body.sg-marketing-body .sg-experience h2,
  body.sg-marketing-body .sg-cta-panel h2 {
    font-size: 25px !important;
    line-height: 1.1 !important;
    font-weight: 850 !important;
  }
  body.sg-marketing-body .sg-section h3,
  body.sg-marketing-body .sg-card h3 {
    font-size: 16px !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
  }
  body.sg-marketing-body main p,
  body.sg-marketing-body main li,
  body.sg-marketing-body main small {
    font-size: 13px !important;
    line-height: 1.5 !important;
  }
  body.sg-marketing-body .sg-eyebrow {
    font-size: 10px !important;
    line-height: 1.3 !important;
    font-weight: 800 !important;
  }
  body.contact-page .sg-section.two-col .sg-card:first-child .sg-eyebrow {
    font-size: 0 !important;
  }
  body.contact-page
    .sg-section.two-col
    .sg-card:first-child
    .sg-eyebrow:before {
    font-size: 28px !important;
    line-height: 1.15 !important;
  }
  body.contact-page .sg-contact-cards h3 {
    font-size: 17px !important;
  }
  body.help-centre-page .sg-help-group h2 {
    font-size: 18px !important;
  }
  body.sg-marketing-body .sg-primary-btn,
  body.sg-marketing-body .sg-white-btn,
  body.sg-marketing-body .sg-outline-btn,
  body.sg-marketing-body .sg-outline-blue {
    font-weight: 800 !important;
  }
  body.sg-marketing-body .sg-site-footer h3 {
    font-size: 20px !important;
    font-weight: 800 !important;
  }
  body.sg-marketing-body .sg-site-footer h4 {
    font-size: 11px !important;
    font-weight: 800 !important;
  }
  body.sg-marketing-body .sg-site-footer p,
  body.sg-marketing-body .sg-site-footer small,
  body.sg-marketing-body .sg-site-footer a,
  body.sg-marketing-body .sg-site-footer span {
    font-size: 10.5px !important;
    line-height: 1.5 !important;
  }
  body.sg-marketing-body .sg-footer-link-group > a,
  body.sg-marketing-body .sg-footer-legal > a {
    font-size: 12px !important;
  }
}

/* v28 reference alignment, icon visibility and borrower-document behaviour */

/* Shared public-page typography and section colours */
body.sg-marketing-body .sg-eyebrow {
  color: #086cff;
  font-weight: 850;
  letter-spacing: 0.15em;
}
body.sg-marketing-body .sg-section h2,
body.sg-marketing-body .sg-section h3,
body.sg-marketing-body .sg-page-hero h1 {
  color: #061535;
}
body.sg-marketing-body .sg-primary-btn,
body.sg-marketing-body .sg-white-btn,
body.sg-marketing-body .sg-outline-blue,
body.sg-marketing-body .sg-outline-btn {
  letter-spacing: 0;
}
body.sg-marketing-body svg {
  shape-rendering: geometricPrecision;
}

/* Footer: same four-column desktop alignment on every public page. */
.sg-site-footer.sg-footer-four-column {
  padding: 48px max(28px, calc((100vw - 1260px) / 2)) 26px;
  background: #00102d;
}
.sg-footer-four-column .sg-footer-top {
  display: grid;
  grid-template-columns: minmax(210px, 0.92fr) minmax(220px, 0.92fr) minmax(
      205px,
      0.8fr
    ) minmax(320px, 1.45fr);
  gap: 42px;
  align-items: start;
}
.sg-footer-four-column .sg-footer-brand img {
  width: 188px;
  max-height: 58px;
  object-fit: contain;
  object-position: left center;
  filter: none !important;
}
.sg-footer-four-column .sg-footer-brand h3 {
  color: #fff;
  font-size: 20px;
  line-height: 1.22;
}
.sg-footer-four-column .sg-footer-links h4,
.sg-footer-four-column .sg-footer-info h4 {
  margin-bottom: 16px;
  color: #2d86ff;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.1em;
}
.sg-footer-four-column .sg-footer-link-group {
  min-height: 49px;
  padding-left: 34px;
}
.sg-footer-four-column .sg-footer-link-group > a,
.sg-footer-four-column .sg-footer-legal > a {
  color: #f7fbff;
  font-size: 12px;
  line-height: 1.35;
}
.sg-footer-four-column .sg-footer-link-group small {
  font-size: 8.5px;
  line-height: 1.38;
}
.sg-footer-four-column .sg-footer-item-icon {
  width: 22px;
  height: 22px;
  color: #2584ff;
}
.sg-footer-four-column .sg-footer-nav-icon {
  width: 17px;
  height: 17px;
  stroke-width: 1.7;
}
.sg-footer-four-column .sg-footer-info {
  margin: 0;
  padding: 0;
  border: 0;
}
.sg-footer-four-column .sg-footer-info h4 {
  position: relative;
  padding-left: 28px;
}
.sg-footer-four-column .sg-footer-info p {
  margin: 7px 0;
  color: #c4d3e8;
  font-size: 9.5px;
  line-height: 1.48;
}
.sg-footer-four-column .sg-socials {
  margin-top: 18px;
}
.sg-footer-four-column .sg-socials a {
  width: 31px;
  height: 31px;
  border-color: rgba(255, 255, 255, 0.6);
}
.sg-footer-four-column .sg-social-icon {
  width: 15px;
  height: 15px;
  color: #fff;
}
.sg-footer-four-column .sg-footer-bottom {
  grid-column: 1/-1;
  margin-top: 26px;
  padding: 18px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: #a9bad1;
  font-size: 9px;
}
.sg-footer-four-column .sg-footer-office {
  max-width: 1260px !important;
  margin: 22px auto 0 !important;
}

/* Contact reference alignment */
.contact-page .sg-contact-hero {
  min-height: 455px;
  grid-template-columns: minmax(0, 1fr) 530px;
  gap: 44px;
  padding-top: 50px;
}
.contact-page .sg-contact-hero > div:first-child {
  max-width: 570px;
}
.contact-page .sg-contact-hero h1 {
  color: #fff !important;
  font-size: 54px;
  line-height: 1.03;
}
.contact-page .sg-chat-phone {
  width: calc(100% + 48px);
  min-height: 405px;
  margin-right: -48px;
  background-position: center bottom;
  background-size: contain;
  background-repeat: no-repeat;
}
.contact-page .sg-contact-cards article {
  overflow: visible;
}
.contact-page .sg-contact-cards article > span {
  display: grid;
  place-items: center;
}
.contact-page .sg-contact-cards article .sg-outline-blue {
  display: inline-flex !important;
  width: auto !important;
  min-width: 190px;
  padding: 0 24px !important;
  border: 1px solid #126dff !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: #126dff !important;
  box-shadow: none !important;
}
.contact-page
  .sg-section.two-col
  .sg-card:last-child
  > a:not(.sg-outline-blue) {
  position: relative;
  padding-right: 24px;
}
.contact-page
  .sg-section.two-col
  .sg-card:last-child
  > a:not(.sg-outline-blue):after {
  content: "›";
  position: absolute;
  right: 2px;
  color: #07183b;
  font-size: 20px;
  line-height: 1;
}
.contact-page .sg-section.two-col .sg-card:last-child .sg-outline-blue {
  display: inline-flex !important;
  width: auto !important;
  color: #086cff !important;
}
.contact-page .sg-cta-panel {
  overflow: hidden;
}
.contact-page .sg-cta-panel:after {
  content: "";
  position: absolute;
  right: -34px;
  top: -34px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  border: 1px solid rgba(18, 109, 255, 0.13);
  box-shadow:
    0 0 0 18px rgba(18, 109, 255, 0.035),
    0 0 0 40px rgba(18, 109, 255, 0.025);
}
.contact-page .sg-cta-panel > * {
  position: relative;
  z-index: 1;
}

/* Borrower page icon and layout precision */
.borrowers-page .sg-borrower-hero h1 {
  color: #061535;
}
.borrowers-page .borrower-cards article > span {
  width: 43px;
  height: 43px;
  box-shadow: 0 8px 18px rgba(15, 111, 245, 0.2);
}
.borrowers-page .sg-borrower-card-icon {
  width: 22px;
  height: 22px;
}
.borrowers-page .sg-icon-grid.five .sg-feature-icon {
  color: #126dff;
}
.borrowers-page .sg-scenario-icon {
  color: #126dff;
}
.borrowers-page .sg-scenario-svg {
  width: 27px;
  height: 27px;
  stroke-width: 1.7;
}
.borrowers-page .borrower-why .sg-dark-list li {
  position: relative;
  flex-direction: column;
  gap: 8px;
  min-height: 92px;
  color: #fff;
}
.borrowers-page .sg-benefit-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #8bbcff;
}
.borrowers-page .sg-benefit-svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.borrowers-page .sg-cta-panel,
.how-it-works-page .sg-cta-panel,
.about-page .sg-cta-panel,
.help-centre-page .sg-cta-panel {
  position: relative;
  overflow: hidden;
  padding-left: 128px;
}
.sg-page-cta-icon {
  position: absolute;
  left: 34px;
  top: 50%;
  transform: translateY(-50%);
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.46);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.sg-page-cta-svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.borrowers-page .sg-cta-panel:after,
.how-it-works-page .sg-cta-panel:after,
.about-page .sg-cta-panel:after,
.help-centre-page .sg-cta-panel:after,
.referral-partners-page .sg-cta-panel:after {
  content: "";
  position: absolute;
  right: -90px;
  top: -130px;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.17);
  box-shadow:
    0 0 0 24px rgba(255, 255, 255, 0.025),
    0 0 0 52px rgba(255, 255, 255, 0.02);
  pointer-events: none;
}

/* How it works: larger real icons and closer timeline/card alignment. */
.how-it-works-page .sg-timeline article {
  grid-template-columns: 130px minmax(0, 1fr) 320px;
  gap: 32px;
}
.how-it-works-page .sg-timeline:before {
  left: 64px;
}
.how-it-works-page .sg-timeline article > span {
  width: 104px;
  height: 104px;
  margin-left: 12px;
  border: 1px solid #c8dcfb;
  background: linear-gradient(145deg, #fbfdff, #edf5ff);
}
.how-it-works-page .sg-step-svg {
  width: 47px;
  height: 47px;
  color: #086cff;
  stroke-width: 1.55;
}
.how-it-works-page .sg-timeline h3 {
  color: #061535;
  font-size: 28px;
}
.how-it-works-page .sg-timeline ul {
  min-height: 140px;
  background: linear-gradient(135deg, #f8fbff, #eef5ff);
  color: #21395f;
}
.how-it-works-page .sg-timeline li::marker {
  color: #086cff;
}
.how-it-works-page .sg-faq-list summary:after {
  color: #086cff;
  font-size: 20px;
}

/* Referral partner page: accent word, electric-blue labels and visible icons. */
.referral-partners-page .sg-referral-hero h1 {
  color: #fff !important;
}
.referral-partners-page .sg-referral-hero .sg-accent-word {
  color: #0a70ff;
}
.referral-partners-page .sg-eyebrow {
  color: #2f87ff !important;
}
.referral-partners-page .sg-partner-icon,
.referral-partners-page .sg-scenario-icon,
.referral-partners-page .sg-mini-icon {
  color: #2f87ff;
}
.referral-partners-page .sg-card-grid.six article {
  padding-top: 78px;
}
.referral-partners-page .sg-partner-svg {
  width: 39px;
  height: 39px;
  stroke-width: 1.5;
}
.referral-partners-page .sg-scenario-svg {
  width: 28px;
  height: 28px;
  color: #2f87ff;
}
.referral-partners-page .sg-horizontal-steps article > span {
  box-shadow: 0 9px 22px rgba(17, 111, 255, 0.25);
}
.referral-partners-page .referral-back {
  position: relative;
  grid-template-columns: 1.15fr 1fr auto;
  align-items: center;
}
.referral-partners-page .sg-back-icon-row {
  display: grid;
  grid-template-columns: repeat(3, 48px);
  gap: 14px;
}
.referral-partners-page .sg-back-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  color: #2f87ff;
}
.referral-partners-page .sg-back-icon-svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.referral-partners-page .sg-cta-panel > * {
  position: relative;
  z-index: 1;
}

/* About and help centre: keep the same visual language as the supplied pages. */
.about-page .sg-about-hero h1,
.help-centre-page .sg-page-hero h1 {
  color: #061535;
}
.about-page .sg-icon-grid article,
.about-page .sg-card-grid article,
.help-centre-page .sg-help-group,
.help-centre-page .sg-help-nav {
  border-color: #d9e6f5;
  box-shadow: 0 10px 26px rgba(0, 25, 67, 0.055);
}
.help-centre-page .sg-help-group h2 {
  color: #086cff;
}
.help-centre-page .sg-faq-large summary {
  color: #07183b;
}

/* Sponsor application: selected borrower requirements are real upload cards. */
.conditional-doc-grid .borrower-specific-doc {
  border-color: #cfe1fb;
  background: linear-gradient(180deg, #fff, #f8fbff);
  box-shadow: 0 10px 24px rgba(21, 82, 174, 0.055);
}
.conditional-doc-grid .borrower-specific-doc h4 {
  color: #0a2a58;
}
.conditional-doc-grid .borrower-specific-doc:before {
  content: "Borrower-specific";
  display: inline-flex;
  margin: 0 0 10px;
  color: #126dff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.document-status-row.borrower-status-row {
  background: #fbfdff;
}

@media (max-width: 1180px) {
  .sg-footer-four-column .sg-footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .sg-footer-four-column .sg-footer-info {
    grid-column: 1/-1;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
  }
  .contact-page .sg-contact-hero {
    grid-template-columns: 1fr 430px;
  }
  .how-it-works-page .sg-timeline article {
    grid-template-columns: 110px 1fr 290px;
  }
  .referral-partners-page .referral-back {
    grid-template-columns: 1fr 1fr;
  }
  .referral-partners-page .sg-back-icon-row {
    grid-column: 1/-1;
  }
}

@media (max-width: 900px) {
  .sg-footer-four-column .sg-footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .contact-page .sg-chat-phone {
    width: 100%;
    margin-right: 0;
  }
  .how-it-works-page .sg-timeline article {
    grid-template-columns: 90px 1fr;
  }
  .how-it-works-page .sg-timeline article > ul {
    grid-column: 2;
  }
  .how-it-works-page .sg-timeline:before {
    left: 45px;
  }
  .how-it-works-page .sg-timeline article > span {
    width: 76px;
    height: 76px;
    margin-left: 7px;
  }
  .how-it-works-page .sg-step-svg {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 700px) {
  
  .sg-footer-four-column .sg-footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .sg-footer-four-column .sg-footer-info {
    grid-column: auto;
  }
  .borrowers-page .sg-cta-panel,
  .how-it-works-page .sg-cta-panel,
  .about-page .sg-cta-panel,
  .help-centre-page .sg-cta-panel {
    padding: 102px 24px 26px;
  }
  .sg-page-cta-icon {
    left: 24px;
    top: 22px;
    transform: none;
  }
  .referral-partners-page .referral-back {
    grid-template-columns: 1fr;
  }
  .referral-partners-page .sg-back-icon-row {
    grid-column: auto;
  }
}

/* v28.1 referral dark-section correction */
.referral-partners-page .referral-dark-section h2,
.referral-partners-page .referral-dark-section h3,
.referral-partners-page .referral-dark-section article,
.referral-partners-page .sg-horizontal-steps h3 {
  color: #fff !important;
}
.referral-partners-page .sg-cta-panel {
  overflow: hidden;
}
body.sg-marketing-body {
  overflow-x: hidden;
}

/* v28.2 preserve readable headings on dark About sections */
.about-page .sg-about-hero h1,
.about-page .sg-card.dark h2,
.about-page .sg-card.dark h3 {
  color: #fff !important;
}
.about-page .sg-about-hero .sg-eyebrow,
.about-page .sg-card.dark .sg-eyebrow {
  color: #2f87ff !important;
}

/* v29 final alignment, responsive upload workbench and contact-message modal */

/* Shared icon alignment: keep every SVG centered inside its visual container. */
.icon,
.sg-contact-card-icon,
.sg-contact-detail-icon,
.sg-common-icon,
.sg-contact-send-icon,
.sg-social-icon,
.sg-footer-nav-icon,
.sg-footer-heading-icon,
.sg-page-cta-svg,
.sg-cta-svg,
.sg-step-svg,
.sg-partner-svg,
.sg-scenario-svg,
.sg-benefit-svg,
.sg-back-icon-svg {
  display: block;
  flex: 0 0 auto;
  margin: 0;
  vertical-align: middle;
}

.btn > .icon,
.signout-btn > .icon,
.upload-box > .icon,
.acc-head .accordion-icon,
.acc-head .chevron-icon,
.doc-state > .icon,
.req > .icon,
.pill > .icon {
  align-self: center;
  margin: 0 !important;
}

.btn,
.signout-btn,
.upload-box,
.profile-pill,
.menu a,
.sg-primary-btn,
.sg-white-btn,
.sg-outline-btn,
.sg-outline-blue {
  line-height: 1.2;
}

.btn > span,
.upload-box > span,
.sg-primary-btn > span,
.sg-outline-blue > span {
  min-width: 0;
}

img {
  max-width: 100%;
  height: auto;
}

/* Sponsor upload section: equal cards, aligned badges and a stable bulk-upload area. */
body.sponsor-page .upload-workbench {
  min-width: 0;
  overflow: hidden;
}

body.sponsor-page .upload-workbench .section-head {
  display: block;
}

body.sponsor-page .document-guidance-dynamic {
  margin: 14px 18px 0;
  padding: 14px 16px;
  border: 1px solid #d8e7f7;
  border-radius: 11px;
  background: #f8fbff;
  color: #18336b;
}

body.sponsor-page .document-guidance-dynamic b {
  display: block;
  margin-bottom: 8px;
  color: #061b46;
}

body.sponsor-page .document-guidance-dynamic ul {
  margin: 0;
  padding-left: 19px;
}

body.sponsor-page .document-guidance-dynamic li {
  margin: 5px 0;
}

body.sponsor-page .document-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 14px;
  margin: 14px 18px;
  min-width: 0;
}

body.sponsor-page .document-progress > b,
body.sponsor-page .document-progress > span {
  line-height: 1.3;
}

body.sponsor-page .document-progress > span {
  justify-self: end;
  color: #607095;
  white-space: nowrap;
}

body.sponsor-page .document-progress .progress-line {
  grid-column: 1/-1;
  width: 100%;
  margin: 0;
}

body.sponsor-page .conditional-doc-grid {
  align-items: stretch;
  grid-auto-rows: 1fr;
}

body.sponsor-page .conditional-doc-grid .doc-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  height: 100%;
  padding: 14px !important;
  overflow: hidden;
}

body.sponsor-page .conditional-doc-grid .doc-card > .req {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

body.sponsor-page .conditional-doc-grid .doc-card > .doc-state {
  top: 12px !important;
  right: 12px !important;
  left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: calc(100% - 52px);
  white-space: nowrap;
}

body.sponsor-page .conditional-doc-grid .doc-card h4 {
  margin: 30px 0 7px !important;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

body.sponsor-page .conditional-doc-grid .doc-card p {
  line-height: 1.48 !important;
  overflow-wrap: anywhere;
}

body.sponsor-page .conditional-doc-grid .doc-card small {
  margin-top: auto;
  padding-top: 7px;
  overflow-wrap: anywhere;
}

body.sponsor-page .conditional-doc-grid .doc-card .file-chip {
  width: 100%;
  min-width: 0;
  margin-top: 10px;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.sponsor-page .conditional-doc-grid .doc-card:focus-visible,
body.sponsor-page .upload-box:focus-visible {
  outline: 3px solid rgba(20, 123, 255, 0.28);
  outline-offset: 2px;
}

body.sponsor-page .inline-upload-panel {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 14px;
}

body.sponsor-page .inline-upload-panel .label,
body.sponsor-page .inline-upload-panel .hint {
  margin: 0 !important;
}

body.sponsor-page .upload-box {
  width: 100%;
  min-width: 0;
  display: flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-align: center;
  overflow-wrap: anywhere;
}

body.sponsor-page .upload-box .upload-icon {
  width: 20px !important;
  height: 20px !important;
  flex: 0 0 20px;
}

body.sponsor-page .sg-file-list {
  min-width: 0;
}

body.sponsor-page .sg-file-list .file-chip {
  width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Contact modal interaction and success state. */
.sg-open-contact-modal {
  font: inherit;
}

.sg-contact-modal {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

.sg-contact-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sg-contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 10, 40, 0.68);
  backdrop-filter: blur(5px);
}

.sg-contact-modal-card {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(760px, calc(100dvh - 48px));
  overflow: auto;
  border: 1px solid #d5e5f7;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 10, 40, 0.34);
  -webkit-overflow-scrolling: touch;
}

.sg-contact-modal-head {
  position: relative;
  padding: 28px 72px 20px 28px;
  border-bottom: 1px solid #e1eaf5;
  background: linear-gradient(135deg, #f7fbff, #edf5ff);
}

.sg-contact-modal-head .sg-eyebrow {
  margin-bottom: 8px;
}

.sg-contact-modal-head h2 {
  margin: 0 0 8px;
  color: #061535;
  font-size: 28px;
  line-height: 1.12;
}

.sg-contact-modal-head p:last-child {
  margin: 0;
  color: #53698e;
  line-height: 1.5;
}

.sg-contact-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #cbdcf0;
  border-radius: 50%;
  background: #fff;
  color: #07183b;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.sg-contact-modal-close:hover,
.sg-contact-modal-close:focus-visible {
  border-color: #147bff;
  color: #147bff;
  outline: none;
}

.sg-contact-form {
  padding: 24px 28px 28px;
}

.sg-contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.sg-contact-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #102c59;
  font-size: 12px;
  font-weight: 800;
}

.sg-contact-form input,
.sg-contact-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #bdd1e8;
  border-radius: 10px;
  background: #fbfdff;
  color: #07183b;
  font: inherit;
  outline: none;
}

.sg-contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.sg-contact-form input:focus,
.sg-contact-form textarea:focus {
  border-color: #147bff;
  box-shadow: 0 0 0 3px rgba(20, 123, 255, 0.12);
}

.sg-contact-form-full {
  grid-column: 1/-1;
}

.sg-contact-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.sg-contact-form-actions .sg-primary-btn,
.sg-contact-form-actions .sg-outline-blue {
  min-width: 150px;
}

.sg-contact-send-icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sg-contact-form button.is-sending {
  opacity: 0.72;
  cursor: wait;
}

.sg-contact-success {
  padding: 48px 28px;
  text-align: center;
}

.sg-contact-success[hidden],
.sg-contact-form[hidden] {
  display: none !important;
}

.sg-contact-success-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #e8fff5;
  color: #008251;
}

.sg-contact-success-icon svg {
  width: 38px;
  height: 38px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sg-contact-success h3 {
  margin: 0 0 10px;
  color: #061535;
  font-size: 25px;
}

.sg-contact-success p {
  max-width: 460px;
  margin: 0 auto 22px;
  color: #566b90;
  line-height: 1.55;
}

.sg-contact-success .sg-primary-btn {
  min-width: 140px;
}

body.sg-modal-open {
  overflow: hidden !important;
}

/* Responsive alignment pass for application and marketing pages. */
@media (max-width: 1100px) {
  body.sponsor-page .conditional-doc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  body:not(.landing-body) .topbar {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  body:not(.landing-body) .main {
    width: 100%;
    min-width: 0;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  body:not(.landing-body) .page-head {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  body:not(.landing-body) .page-head .progress {
    width: 100%;
    min-width: 0;
    text-align: left;
  }

  body:not(.landing-body) .acc-head {
    height: auto !important;
    min-height: 46px !important;
    align-items: center !important;
  }

  body:not(.landing-body) .acc-head > div {
    min-width: 0;
    line-height: 1.3;
  }

  body:not(.landing-body) .acc-head .step-no,
  body:not(.landing-body) .acc-head .accordion-icon,
  body:not(.landing-body) .acc-head .chev {
    flex: 0 0 auto;
  }

  body.sponsor-page .document-guidance-dynamic,
  body.sponsor-page .document-progress {
    margin-left: 12px;
    margin-right: 12px;
  }

  body.sponsor-page .conditional-doc-grid {
    padding-left: 12px !important;
    padding-right: 12px !important;
    gap: 12px !important;
  }

  body.sponsor-page .inline-upload-panel {
    margin-left: 12px !important;
    margin-right: 12px !important;
  }

  body.sponsor-page .section-actions,
  body.sponsor-page .sticky-actions {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body.sponsor-page .section-actions .btn,
  body.sponsor-page .sticky-actions .btn {
    width: auto !important;
    min-width: 150px !important;
    max-width: 220px !important;
    margin: 0 !important;
  }

  .contact-page .sg-site-nav a {
    color: #07183b !important;
  }

  .contact-page .sg-contact-cards article {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: 16px;
    align-items: start;
    min-height: 0;
    padding: 24px !important;
  }

  .contact-page .sg-contact-cards article > span {
    position: static !important;
    grid-column: 1;
    grid-row: 1/3;
    width: 58px !important;
    height: 58px !important;
    margin: 0 !important;
  }

  .contact-page .sg-contact-cards article h3,
  .contact-page .sg-contact-cards article p,
  .contact-page .sg-contact-cards article > a {
    grid-column: 2;
    min-width: 0;
  }

  .contact-page .sg-contact-cards article h3 {
    margin-top: 2px !important;
  }

  .contact-page .sg-contact-cards article p {
    margin-bottom: 12px !important;
  }

  .contact-page .sg-contact-cards article > a {
    justify-self: start;
    width: auto !important;
    max-width: 100%;
  }

  .contact-page
    .sg-section.two-col
    .sg-card:first-child
    p:has(.sg-contact-detail-icon) {
    position: relative;
    min-height: 46px;
    padding-left: 58px !important;
  }

  .contact-page
    .sg-section.two-col
    .sg-card:first-child
    p:not(:has(.sg-contact-detail-icon)) {
    padding-left: 0 !important;
  }

  .contact-page
    .sg-section.two-col
    .sg-card:first-child
    .sg-contact-detail-icon {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0 !important;
  }

  .contact-page .sg-section.two-col .sg-card:first-child .sg-primary-btn {
    margin-left: 0 !important;
  }
}

@media (max-width: 700px) {
  body.sponsor-page .conditional-doc-grid {
    grid-template-columns: 1fr !important;
  }

  body:not(.landing-body) .field-grid {
    grid-template-columns: 1fr !important;
  }

  body:not(.landing-body) .field.full {
    grid-column: auto !important;
  }

  body:not(.landing-body) .radio-row {
    flex-wrap: wrap;
  }

  body:not(.landing-body) .radio-tile {
    flex: 1 1 180px;
    min-width: 0;
  }

  .sg-contact-modal {
    padding: 14px;
  }

  .sg-contact-modal-card {
    max-height: calc(100dvh - 28px);
    border-radius: 16px;
  }

  .sg-contact-modal-head {
    padding: 24px 64px 18px 20px;
  }

  .sg-contact-modal-head h2 {
    font-size: 24px;
  }

  .sg-contact-form {
    padding: 20px;
  }

  .sg-contact-form-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .sg-contact-form-full {
    grid-column: auto;
  }

  .sg-contact-form-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .sg-contact-form-actions .sg-primary-btn,
  .sg-contact-form-actions .sg-outline-blue {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 560px) {
  body:not(.landing-body) .topbar .sg-logo-img {
    max-width: 128px;
  }

  body:not(.landing-body) .profile-pill {
    max-width: 132px;
    min-width: 0;
  }

  body:not(.landing-body) .profile-pill > span:not(.avatar) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.sponsor-page .document-progress {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  body.sponsor-page .document-progress > span {
    justify-self: start;
  }

  body.sponsor-page .document-progress .progress-line {
    grid-column: 1;
  }

  body.sponsor-page .section-actions,
  body.sponsor-page .sticky-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100%;
  }

  body.sponsor-page .section-actions .btn,
  body.sponsor-page .sticky-actions .btn {
    width: min(210px, 100%) !important;
    min-width: 0 !important;
    justify-self: center;
  }

  .contact-page .sg-contact-cards article {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 10px;
  }

  .contact-page .sg-contact-cards article > span,
  .contact-page .sg-contact-cards article h3,
  .contact-page .sg-contact-cards article p,
  .contact-page .sg-contact-cards article > a {
    grid-column: 1;
    grid-row: auto;
  }

  .contact-page .sg-contact-cards article > span {
    width: 54px !important;
    height: 54px !important;
  }

  .contact-page .sg-contact-cards article > a {
    width: 100% !important;
    justify-self: stretch;
  }

  .sg-contact-form-actions {
    grid-template-columns: 1fr;
  }

  .sg-contact-success {
    padding: 38px 20px;
  }
}
