/* Veri-Hub design system · generous spacing, legible data and consistent controls */
:root {
  --navy: #112c36;
  --teal: #087f71;
  --ink: #20383f;
  --muted: #768a90;
  --line: #e1e9e9;
  --bg: #f4f7f7;
  --shadow: 0 3px 16px #173c4010;
  --radius: 13px;
}
body {
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: -0.1px;
  background: var(--bg);
  color: var(--ink);
  font-synthesis: none;
}
h1,
h2,
h3 {
  letter-spacing: -0.035em;
  line-height: 1.35;
}
h1 {
  font-size: 31px;
  font-weight: 800;
}
h2 {
  font-size: 17px;
  font-weight: 750;
}
h3 {
  font-size: 14px;
}
button,
input,
select,
textarea {
  font-family: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 3px;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #7dcab8;
}
.muted {
  color: #7f9197;
}
p.sub {
  font-size: 13px;
  line-height: 1.8;
  color: #7b8d94;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.7px;
  font-weight: 700;
  color: #71908b;
  margin-bottom: 10px;
}
.required {
  color: #bf7766;
}
#app-sidebar {
  width: 256px;
  height: 100dvh;
  padding: 29px 18px 20px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #35545a transparent;
  border-right: 1px solid #20414b;
  z-index: 50;
  background: linear-gradient(160deg, #143640 0%, #102832 100%);
}
#app-sidebar .brand {
  font-size: 29px;
  gap: 12px;
  padding: 0 10px;
}
#app-sidebar .brand small {
  font-size: 8px;
  letter-spacing: 1.7px;
  margin-top: 7px;
}
.logo {
  width: 42px;
  height: 44px;
  background: #20534f;
  border-color: #39756b;
  border-radius: 12px;
  color: #a0e9d0;
}
.workspace {
  margin: 29px 4px 24px;
  padding: 12px;
  border-color: #36515a;
  background: #ffffff05;
  font-size: 12px;
  gap: 11px;
  line-height: 1.6;
}
.workspace small {
  font-size: 10px;
  margin-top: 3px;
}
.square {
  border-radius: 7px;
  padding: 7px 10px;
  background: #2b4a54;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.8px;
  margin: 0 0 12px 9px;
  color: #7b9a9e;
}
#nav {
  padding: 0 3px;
}
#nav a {
  font-size: 12px;
  line-height: 1.5;
  padding: 12px 13px;
  gap: 12px;
  border-radius: 9px;
  margin: 5px 0;
  color: #b5c8cc;
  position: relative;
  font-weight: 500;
  min-height: 45px;
}
#nav a:hover {
  background: #ffffff08;
  color: #e6f2ef;
}
#nav a.active {
  background: #24514f;
  color: #b9f1d7;
  box-shadow: inset 3px 0 #7fc9ad;
}
#nav a b {
  width: 20px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
#nav a em {
  font-size: 10px;
  background: #ffffff12;
  border: 1px solid #ffffff09;
  border-radius: 5px;
  padding: 1px 6px;
  color: #c1dfd4;
  font-style: normal;
  line-height: 1.6;
}
.sidebar-bottom {
  padding: 20px 5px 0;
}
.sandbox {
  font-size: 11px;
  border-color: #314c55;
  border-radius: 9px;
  padding: 14px;
  margin: 18px 0;
}
.sandbox p {
  font-size: 10px;
  line-height: 1.9;
  color: #89a7ad;
}
.profile {
  gap: 10px;
  font-size: 11px;
  border-color: #35515a;
  padding: 20px 0 0;
}
.profile > span:nth-child(2) {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.profile small {
  font-size: 10px;
  line-height: 1.5;
  color: #91abb0;
}
.avatar {
  width: 35px;
  height: 35px;
  background: #ddede6;
  color: #397568;
  font-weight: 750;
  border: 1px solid #d6e7df;
}
.avatar.small {
  width: 34px;
  height: 34px;
}
.shell {
  margin-left: 256px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.shell > header {
  height: 76px;
  min-height: 76px;
  background: #fffffff5;
  border-bottom: 1px solid var(--line);
  padding: 0 34px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 25;
  backdrop-filter: blur(16px);
  font-size: 12px;
}
.shell > header > div:first-of-type {
  flex: 1;
  min-width: 0;
}
.header-right {
  gap: 19px;
  flex-shrink: 0;
}
.slash {
  padding: 0 12px;
  color: #c1cbcd;
}
.env {
  font-size: 9px;
  letter-spacing: 1.1px;
  border: 1px solid #e3d9bd;
  padding: 5px 9px;
  color: #9c8047;
  background: #fbf8ee;
  border-radius: 5px;
}
.icon-button {
  height: 35px;
  min-width: 35px;
  display: inline-grid;
  place-items: center;
  font-size: 22px;
  padding: 0;
  position: relative;
}
.icon-button i {
  width: 5px;
  height: 5px;
  right: 6px;
  top: 4px;
  background: #d8a364;
}
.icon-button svg {
  display: block;
}
#sidebar-toggle {
  display: none;
}
#header-profile {
  display: grid;
  place-items: center;
  font-size: 11px;
}
.shell > main {
  width: 100%;
  flex: 1;
  padding: 34px clamp(22px, 3vw, 44px) 28px;
  max-width: 1620px;
}
.page-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 27px;
}
.page-top h1 {
  margin-bottom: 9px;
}
.page-top .actions {
  padding-top: 17px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}
.actions {
  gap: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.btn {
  font-size: 12px;
  font-weight: 650;
  min-height: 39px;
  padding: 9px 15px;
  border: 1px solid #dce6e5;
  border-radius: 7px;
  line-height: 1.5;
  color: #4b656d;
  background: white;
  gap: 7px;
  white-space: normal;
  text-align: center;
  box-shadow: 0 1px 2px #193e3e04;
  transition:
    background 0.16s,
    border 0.16s,
    transform 0.16s;
}
.btn:hover:not(:disabled) {
  border-color: #adcfc3;
  background: #f8fcfa;
  filter: none;
  transform: translateY(-1px);
}
.btn.primary {
  background: #137d6b;
  border-color: #137d6b;
  color: white;
  box-shadow: 0 3px 6px #137d6b13;
}
.btn.primary:hover:not(:disabled) {
  background: #0b6d5d;
  border-color: #0b6d5d;
}
.btn.danger {
  color: #ae625d;
  border-color: #ebd9d5;
}
.text-link {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
  color: #168272;
  padding: 4px 5px;
  border-radius: 4px;
  white-space: normal;
}
.text-link:hover {
  background: #edf7f1;
}
.danger {
  color: #b26b64;
}
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 5px #163e3e03;
}
.card-head {
  padding: 22px 24px;
  gap: 18px;
  align-items: center;
}
.card-head h2 {
  font-size: 16px;
  letter-spacing: -0.025em;
}
.card-head p {
  font-size: 11px;
  line-height: 1.7;
  color: #91a0a5;
  margin-top: 6px;
}
.hero {
  padding: 28px 30px;
  border: 1px solid #d6e7de;
  border-radius: 12px;
  background: linear-gradient(110deg, #e9f3ee, #f0f7f2);
  gap: 25px;
  margin-bottom: 25px;
}
.hero h2 {
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -0.7px;
  margin-bottom: 10px;
}
.hero p {
  font-size: 12px;
  line-height: 1.9;
  color: #779189;
  max-width: 550px;
}
.hero .eyebrow {
  color: #4d8f7e;
}
.hero-art {
  padding: 0 12px;
  gap: 12px;
}
.art-node {
  width: 51px;
  height: 51px;
  border-radius: 14px;
  font-size: 24px;
}
.art-node.large {
  width: 68px;
  height: 68px;
  background: #257e68;
  font-size: 32px;
}
.stats {
  gap: 18px;
  margin-bottom: 25px;
}
.stat,
.institution-stats .stat {
  padding: 21px 23px;
}
.stat-top {
  font-size: 12px;
  line-height: 1.6;
  color: #829499;
}
.stat-value,
.institution-stats .stat-value {
  font-size: 31px;
  line-height: 1.4;
  font-weight: 800;
  color: #264149;
  letter-spacing: -1px;
  margin: 10px 0 7px;
}
.stat-bottom {
  font-size: 10px;
  line-height: 1.7;
  color: #8c9da3;
}
.stat-icon {
  padding: 8px 10px;
  background: #eef5f2;
  border-radius: 9px;
  color: #659485;
}
.grid {
  gap: 22px;
}
.right-col {
  min-width: 0;
}
.card .empty {
  font-size: 12px;
  line-height: 1.8;
  padding: 40px 24px;
  color: #90a1a6;
}
.perspective {
  background: #f0f5f4;
  border-color: #e0e9e6;
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.8;
  margin-bottom: 24px;
  gap: 16px;
}
.perspective strong {
  font-weight: 650;
  color: #48636b;
}
.perspective .text-link {
  font-size: 10px;
  white-space: nowrap;
}
.perspective .dot {
  width: 5px;
  height: 5px;
}
.notice {
  background: #f1f7f2;
  border-color: #e0ece1;
  color: #729080;
  border-radius: 8px;
  padding: 16px 18px;
  font-size: 12px;
  line-height: 1.85;
  margin-bottom: 22px;
}
.notice strong {
  color: #48775c;
}
.notice.amber {
  background: #fcf8ef;
  border-color: #eee4cd;
  color: #9b8256;
}
.notice.amber strong {
  color: #a08044;
}
.info-mark {
  border: 1px solid #bfd6cb;
  color: #5c8c75;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font: 700 11px Manrope;
  flex-shrink: 0;
}
.prototype-note {
  font-size: 10px;
  line-height: 1.9;
  color: #91a19e;
  margin-top: 23px;
}
.shell > footer {
  padding: 4px clamp(22px, 3vw, 44px) 24px;
  font-size: 10px;
  color: #94a4a6;
  gap: 14px;
  line-height: 1.8;
}
.entity-tabs,
.profile-tabs {
  gap: 24px;
  border-bottom-color: #dde6e4;
  margin: 4px 0 24px;
}
.entity-tabs button,
.profile-tabs button {
  font-size: 12px;
  padding: 15px 4px;
  color: #8a9b9f;
  min-height: 47px;
}
.entity-tabs button.selected,
.profile-tabs button.selected {
  color: #287e69;
  border-bottom: 2px solid #478f77;
  font-weight: 700;
}
.tab-count {
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 9px;
  background: #e7f2e9;
}
.entity-tabs > .text-link {
  margin-left: auto;
  align-self: center;
}
.toolbar,
.entity-toolbar {
  padding: 0 24px 20px;
  gap: 12px;
}
.search {
  padding: 11px 13px;
  min-height: 41px;
  font-size: 12px;
  background: #fcfdfd;
  border-color: #e1e9e7;
  border-radius: 7px;
}
.search::placeholder {
  color: #a0afb3;
  font-size: 11px;
}
select {
  padding: 9px 12px;
  font-size: 11px;
  color: #607a81;
  border-color: #dde6e4;
  min-height: 39px;
}
table {
  border-spacing: 0;
  width: 100%;
  font-variant-numeric: tabular-nums;
}
.table-wrap {
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: thin;
  scrollbar-color: #d0dfd6 transparent;
}
th {
  font-size: 9px;
  letter-spacing: 0.65px;
  line-height: 1.8;
  font-weight: 650;
  background: #f7fafa;
  color: #8a9ca2;
  padding: 12px 18px;
  border-color: #e6edeb;
  text-align: left;
  white-space: nowrap;
}
td,
.entity-table td {
  font-size: 12px;
  line-height: 1.7;
  padding: 17px 18px;
  border-bottom: 1px solid #edf2f0;
  vertical-align: middle;
  overflow-wrap: anywhere;
  color: #5f747c;
}
td:first-child {
  color: #43656c;
}
tbody tr {
  transition: background 0.14s;
  cursor: default;
}
tbody tr:hover {
  background: #fafcfb;
}
.cell-small {
  font-size: 10px;
  line-height: 1.7;
  color: #99a7ab;
  display: block;
  margin-top: 4px;
}
.entity-name {
  font-size: 12px;
  color: #42646d;
  line-height: 1.6;
  gap: 12px;
}
.entity-name small {
  font-size: 10px;
  line-height: 1.7;
}
.entity-monogram {
  width: 36px;
  height: 36px;
  background: #eef5f0;
  color: #6a9684;
  font-size: 12px;
  border: 1px solid #e2ece5;
  border-radius: 9px;
}
.entity-monogram.big {
  width: 53px;
  height: 53px;
  font-size: 20px;
}
.request-reference {
  font-size: 11px;
  font-weight: 650;
  line-height: 1.8;
}
.table-bottom {
  padding: 17px 23px;
  font-size: 10px;
  color: #92a3a6;
  gap: 12px;
  line-height: 1.8;
}
.badge {
  font-size: 9px;
  line-height: 1.6;
  font-weight: 550;
  padding: 4px 8px;
  border-radius: 5px;
  vertical-align: middle;
  letter-spacing: 0;
  background: #f0f4f4;
  color: #7d9297;
}
.badge.active,
.badge.approved,
.badge.verified,
.badge.verification-completed,
.badge.paid {
  background: #eaf5ed;
  color: #5b9871;
}
.badge.pending,
.badge.unpaid,
.badge.pending-consent,
.badge.pending-approval {
  background: #faf3e5;
  color: #b4985f;
}
.badge.cancelled,
.badge.expired {
  background: #f0f3f3;
  color: #94a2a6;
}
.badge.processing-error,
.badge.rejected,
.badge.suspended,
.badge.verification-failed {
  background: #fbefeb;
  color: #b8867c;
}
.entity-field label,
.field-label,
.form-row label {
  font-size: 12px;
  font-weight: 550;
  color: #71868b;
  line-height: 1.5;
}
.entity-field {
  gap: 8px;
  min-width: 0;
}
.entity-field input,
.entity-field select,
.entity-field textarea,
.full-select,
.form-row input,
.form-row select {
  min-height: 42px;
  border: 1px solid #dfe7e5;
  border-radius: 7px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.6;
  color: #4d6870;
  background: #fff;
  width: 100%;
  max-width: 100%;
}
.entity-field input::placeholder,
.full-select::placeholder,
.form-row input::placeholder {
  font-size: 11px;
  color: #adbabe;
}
.entity-field small {
  font-size: 10px;
  line-height: 1.7;
  color: #9aa9ad;
}
.entity-form-grid {
  gap: 20px 19px;
  margin: 20px 0;
}
.form-row {
  margin: 18px 0;
}
.form-row label {
  margin-bottom: 9px;
}
.full-select {
  margin-bottom: 4px;
}
.field-error {
  font-size: 11px;
  color: #b9766c;
  line-height: 1.8;
}
.check {
  font-size: 12px;
  line-height: 1.9;
  color: #81958d;
  gap: 10px;
  align-items: flex-start;
  margin: 18px 0;
}
.check input {
  margin-top: 5px;
  flex-shrink: 0;
}
.service-options legend {
  font-size: 12px;
  font-weight: 650;
  color: #5a747a;
}
.service-options label {
  font-size: 12px;
  gap: 9px;
  line-height: 1.8;
  padding: 10px 18px 10px 0;
}
.service-options small {
  font-size: 11px;
}
.obligations {
  background: #f6f9f7;
  padding: 15px;
  border-radius: 8px;
  gap: 12px;
}
.obligations label {
  font-size: 11px;
  line-height: 1.8;
}
.obligations small {
  font-size: 10px;
}
.history-filters {
  padding: 0 24px 23px;
  gap: 19px;
}
.history-filters .entity-field input,
.history-filters .entity-field select {
  font-size: 12px;
}
.history-filters > .btn {
  height: 42px;
}
.history-pagination .btn {
  font-size: 11px;
  padding: 7px 12px;
  min-height: 34px;
}
.history-pagination {
  font-size: 10px;
}
.history-table td {
  font-size: 11px;
  padding: 17px;
}
.history-filter-error {
  font-size: 12px;
  padding: 0 24px 18px;
}
.entity-profile-header {
  padding: 25px;
  gap: 17px;
}
.entity-profile-header h2 {
  font-size: 22px;
}
.entity-profile-header p {
  font-size: 11px;
  line-height: 1.8;
  color: #91a3a6;
}
.profile-header-status {
  gap: 23px;
  flex-shrink: 0;
}
.profile-header-status > div {
  font-size: 10px;
  line-height: 1.7;
}
.profile-padding {
  padding: 0 24px 25px;
}
.summary-grid {
  gap: 26px;
}
.summary-block h3 {
  font-size: 14px;
  line-height: 1.6;
  margin-top: 15px;
  padding-bottom: 11px;
  color: #5c777d;
}
.summary-block > div {
  display: grid;
  grid-template-columns: minmax(120px, 0.85fr) minmax(0, 1.25fr);
  gap: 18px;
  align-items: baseline;
  padding: 10px 0;
  font-size: 12px;
  line-height: 1.8;
  border-bottom: 1px solid #f0f4f1;
}
.summary-block > div > span {
  max-width: none;
  color: #91a2a7;
}
.summary-block strong {
  font-weight: 550;
  max-width: none;
  text-align: right;
  color: #58767d;
  overflow-wrap: anywhere;
}
.summary-block p {
  font-size: 12px;
  line-height: 1.9;
}
.meta-grid {
  gap: 20px;
}
.meta-grid > div {
  font-size: 12px;
  line-height: 1.7;
  min-width: 0;
}
.meta-grid strong {
  overflow-wrap: anywhere;
}
.request-detail-reference {
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: -0.4px;
}
.timeline-item {
  padding: 17px 0;
  gap: 13px;
}
.timeline-item strong {
  font-size: 12px;
  line-height: 1.8;
  font-weight: 550;
  color: #6d858b;
}
.timeline-item p {
  font-size: 10px;
  line-height: 1.8;
  margin-top: 5px;
}
.request-history {
  max-height: 400px;
  margin: 15px 0;
}
.agent-banner {
  background: #edf5ef;
  border-color: #dceadf;
  padding: 23px;
  gap: 18px;
  border-radius: 11px;
}
.agent-banner h2 {
  font-size: 18px;
}
.agent-banner p {
  font-size: 12px;
  line-height: 1.8;
}
.agent-banner .commission-counter-pair {
  margin: 10px 0;
}
.agent-directory-card {
  padding: 25px;
}
.agent-directory-card h2 {
  font-size: 19px;
  line-height: 1.6;
}
.agent-directory-card p {
  font-size: 12px;
  line-height: 1.9;
}
.agent-directory-card .detail-line {
  font-size: 12px;
}
.agent-card-title {
  margin-bottom: 23px;
}
.agent-directory {
  gap: 22px;
}
.operator-table td {
  font-size: 11px;
  padding: 18px;
}
.operator-table td:last-child .text-link {
  display: block;
  white-space: nowrap;
}
.operator-group-member {
  padding: 18px 0;
  font-size: 12px;
}
.operator-group-member small {
  font-size: 11px;
  line-height: 1.8;
}
.agent-placeholder {
  padding: 60px 30px;
  background: linear-gradient(145deg, #fafdfb, #f5f9f6);
  border-style: dashed;
  min-height: 350px;
}
.agent-placeholder h2 {
  font-size: 23px;
}
.agent-placeholder p {
  font-size: 13px;
  line-height: 1.9;
  color: #9aaca4;
}
.lookup-card {
  top: 96px;
}
.lookup-card .field-label {
  margin: 18px 0 9px;
}
.lookup-footnote {
  font-size: 11px;
  line-height: 1.9;
  padding: 18px 24px;
}
.agent-request-card .card-head h2 {
  font-size: 15px;
}
.consent-statement {
  padding: 21px;
  border-radius: 9px;
}
.consent-statement p {
  font-size: 12px;
  line-height: 1.9;
}
.readiness-list > div {
  font-size: 12px;
  line-height: 1.7;
  padding: 15px 0;
}
.readiness-list small {
  font-size: 10px;
}
.detail-line {
  font-size: 12px;
  line-height: 1.8;
  gap: 20px;
  align-items: baseline;
}
.detail-line strong {
  font-weight: 550;
  text-align: right;
  overflow-wrap: anywhere;
}
.health-row {
  font-size: 12px;
}
.activity-item p {
  font-size: 12px;
  line-height: 1.8;
}
.activity-item small {
  font-size: 10px;
}
.callout p,
.health-note {
  font-size: 11px;
  line-height: 1.9;
}
.callout h3 {
  font-size: 14px;
}
.journey-card {
  padding: 25px;
}
.journey-card .number {
  font-size: 30px;
  color: #b5d2c1;
  line-height: 1.4;
}
.journey-card h2 {
  font-size: 17px;
}
.journey-card p {
  font-size: 12px;
  line-height: 1.9;
  color: #8fa29a;
}
.journey-grid,
.entity-grid {
  gap: 22px;
}
.entity {
  padding: 26px;
}
.entity h2 {
  font-size: 18px;
}
.entity p {
  font-size: 12px;
  line-height: 1.9;
}
.qr-card {
  padding: 23px 18px;
  background: #f2f7f3;
}
.qr-card h3 {
  font-size: 15px;
}
.qr-card p {
  font-size: 12px;
}
.qr-card small {
  font-size: 10px;
  line-height: 1.8;
}
.qr-card .btn {
  font-size: 11px;
  min-height: 36px;
  padding: 8px 10px;
}
.qr-image {
  border-color: #dfe9e1;
}
.request-detail-grid {
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 26px;
}
.delivery-list > div {
  font-size: 12px;
  padding: 15px 0;
}
.response-card {
  padding: 24px;
  border-radius: 9px;
  background: #f7fbf8;
}
.response-card > p {
  font-size: 12px;
}
.api-example {
  font-size: 12px;
  line-height: 1.9;
  border-radius: 8px;
  padding: 22px;
}
.section-heading {
  font-size: 14px;
  margin: 26px 0 15px;
}
.document-slot {
  border-radius: 9px;
  padding: 17px;
  background: #fbfdfb;
}
.document-slot strong {
  font-size: 12px;
  line-height: 1.8;
}
.document-slot .cell-small {
  font-size: 10px;
}
.upload-label {
  font-size: 11px;
  border-radius: 6px;
  padding: 9px 12px;
}
.document-attached .text-link {
  font-size: 10px;
}
.setting-toggle strong {
  font-size: 13px;
  line-height: 1.7;
}
.setting-toggle small {
  font-size: 11px;
  line-height: 1.9;
}
.document-settings > div {
  font-size: 12px;
  line-height: 1.8;
  padding: 15px 0;
}
.document-settings select {
  min-width: 170px;
  font-size: 11px;
}
.notification-item strong {
  font-size: 13px;
}
.notification-item small {
  font-size: 11px;
}
.history-entry h3 {
  font-size: 13px;
}
.history-entry p {
  font-size: 11px;
  line-height: 1.9;
}
.history-entry small {
  font-size: 10px;
  line-height: 1.8;
}
dialog {
  padding: 29px;
  border: 1px solid #dce6df;
  border-radius: 15px;
  box-shadow: 0 24px 100px #102d3550;
  color: var(--ink);
  max-height: 90dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #102d3575;
  backdrop-filter: blur(4px);
}
dialog h2 {
  font-size: 23px;
  line-height: 1.5;
  letter-spacing: -0.7px;
}
dialog p {
  font-size: 12px;
  line-height: 1.9;
  color: #8b9e97;
}
.wide-dialog {
  width: 1000px;
  max-height: 92dvh;
  padding: 0;
}
.wide-dialog > div {
  padding: 30px;
}
.wide-dialog:has(.editor-layout) > div {
  padding: 0;
}
.editor-heading {
  padding: 24px 29px 19px;
}
.editor-heading h2 {
  font-size: 22px;
}
.editor-heading p {
  font-size: 12px;
  line-height: 1.8;
}
.editor-layout {
  grid-template-columns: 215px minmax(0, 1fr);
  max-height: calc(92dvh - 235px);
}
.editor-steps {
  padding: 19px 12px;
  background: #f7faf8;
  border-color: #e4ece5;
}
.editor-steps button {
  font-size: 11px;
  line-height: 1.8;
  padding: 12px 9px;
  gap: 10px;
}
.editor-steps button span {
  font-size: 10px;
  width: 24px;
  height: 24px;
}
.editor-steps button.current {
  background: #e9f3eb;
  color: #54836a;
}
.editor-steps button.current span {
  background: #5b9476;
}
.editor-body {
  padding: 25px 28px;
}
.editor-body > h2 {
  font-size: 20px;
}
.editor-body > p {
  font-size: 12px;
  line-height: 1.8;
}
.editor-footer {
  padding: 17px 25px;
  gap: 15px;
}
.editor-footer .btn {
  font-size: 12px;
}
.editor-footer > span {
  font-size: 10px;
  line-height: 1.8;
}
.dialog-actions {
  gap: 11px;
  margin-top: 25px;
  flex-wrap: wrap;
}
.error-summary {
  font-size: 12px;
  line-height: 1.8;
  padding: 17px;
}
.error-summary button {
  font-size: 11px;
  line-height: 1.8;
}
#toast {
  font-size: 12px;
  line-height: 1.6;
  max-width: min(520px, 90vw);
  padding: 14px 21px;
  box-shadow: 0 8px 26px #12363e30;
  border-radius: 9px;
  z-index: 100;
}
/* Counter and commission components */
.commission-counter-pair {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.counter-pill,
.earning-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  border: 1px solid #dce9e2;
  background: #f0f7f2;
  color: #5a8f73;
}
.earning-pill {
  background: #f8f5e9;
  border-color: #eae2c9;
  color: #a58c55;
}
.counter-dot {
  width: 5px;
  height: 5px;
  background: #6ca184;
  border-radius: 50%;
}
.counter-lifetime {
  flex-basis: 100%;
  font-size: 10px;
  color: #94a79c;
  line-height: 1.8;
}
.counter-pill.loading,
.muted-pill {
  background: #f4f6f4;
  color: #a0aea4;
  border-color: #e8ede8;
}
.earning-pill.inverted {
  color: #e9f2d2;
  border-color: #ffffff25;
  background: #ffffff13;
  font-size: 16px;
  padding: 8px 12px;
}
.commission-overview-card {
  padding: 24px 27px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 23px;
  border-left: 3px solid #84b49b;
  background: linear-gradient(110deg, #fff, #f8fbf7);
}
.commission-overview-card h2 {
  font-size: 18px;
  margin: 0;
}
.commission-overview-card p {
  font-size: 12px;
  color: #91a39a;
  margin: 6px 0 0;
}
.commission-overview-card .eyebrow {
  font-size: 9px;
  margin-bottom: 6px;
}
.ledger-summary {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 18px;
  margin-bottom: 25px;
}
.ledger-hero-card {
  padding: 24px 26px;
  border-radius: 13px;
  background: linear-gradient(135deg, #245447, #47755b);
  color: #eff6ee;
  box-shadow: 0 7px 20px #254d3c10;
}
.ledger-hero-card .eyebrow {
  color: #b3cfb8;
  font-size: 9px;
}
.ledger-primary-value {
  font: 800 38px/1.4 Manrope;
  letter-spacing: -1px;
}
.ledger-primary-value > span {
  display: block;
  font: 400 11px/1.7 "DM Sans";
  letter-spacing: 0;
  color: #c0d8c1;
  margin-top: 2px;
}
.ledger-hero-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.ledger-hero-bottom > span:last-child {
  font-size: 9px;
  color: #bad2bd;
  line-height: 1.8;
}
.ledger-metric {
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 11px;
}
.metric-label {
  font-size: 12px;
  color: #8c9e95;
}
.ledger-metric > strong {
  font: 750 clamp(20px, 2vw, 28px)/1.45 Manrope;
  letter-spacing: -0.7px;
  color: #54715e;
  overflow-wrap: anywhere;
}
.ledger-metric small {
  font-size: 10px;
  line-height: 1.9;
  color: #9aac9e;
}
.ledger-toolbar {
  margin-bottom: 0;
}
.ledger-tabs {
  margin-bottom: 22px;
}
.ledger-filters {
  padding: 23px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  border-bottom: 1px solid #e6eee7;
  align-items: end;
  background: #fbfdfa;
  border-radius: 13px 13px 0 0;
}
.ledger-filters > .entity-field {
  flex: 1;
  min-width: 150px;
}
.ledger-filters > .entity-field:has(#ledger-search) {
  flex: 1.4;
  min-width: 210px;
}
.ledger-filters .btn {
  height: 42px;
}
.ledger-table {
  min-width: 850px;
}
.ledger-table .amount-cell {
  font-weight: 700;
  white-space: nowrap;
  color: #7c946b;
}
.ledger-panel {
  overflow: hidden;
}
.commission-agent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 23px 23px 3px;
}
.commission-agent-card {
  padding: 22px;
  border: 1px solid #e0eade;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff, #fcfdf8);
}
.agent-initial {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #edf3e6;
  color: #8da26c;
  border: 1px solid #e1e9d5;
  font: 700 12px Manrope;
}
.commission-agent-card h2 {
  font-size: 18px;
  line-height: 1.6;
  margin: 6px 0 13px;
  color: #5f785f;
}
.commission-agent-card .eyebrow {
  font-size: 8px;
  letter-spacing: 1px;
}
.agent-lifetime {
  font-size: 10px;
  line-height: 1.8;
  color: #9fb096;
  margin: 10px 0 17px;
}
.rate-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #e8edde;
  padding: 14px 0;
  font-size: 10px;
  line-height: 1.8;
  color: #99a98f;
}
.rate-line strong {
  font-weight: 650;
  color: #809469;
  text-align: right;
  white-space: nowrap;
}
.agent-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 5px;
}
.agent-card-actions .btn {
  font-size: 11px;
  padding: 8px 11px;
  flex: 1;
  min-width: 100px;
}
.agent-card-actions > .muted {
  font-size: 10px;
  line-height: 1.8;
}
.ledger-explainer {
  display: flex;
  gap: 12px;
  margin-top: 23px;
  padding: 18px 20px;
  border: 1px solid #e0eadd;
  border-radius: 9px;
  color: #8fa088;
  background: #f4f8ef;
  font-size: 11px;
  line-height: 1.9;
}
.ledger-explainer strong {
  color: #7a916a;
  font-weight: 650;
}
.commission-audit {
  padding: 0 25px 25px;
  max-height: 700px;
  overflow: auto;
}
.ledger-event {
  display: flex;
  gap: 15px;
  padding: 19px 0;
  border-bottom: 1px solid #edf1e8;
  align-items: start;
}
.event-symbol {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #eff5e9;
  border: 1px solid #e2ead8;
  color: #95ac7b;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 17px;
}
.ledger-event h3 {
  font-size: 12px;
  font-weight: 650;
  line-height: 1.8;
  margin: 0;
  color: #7c946c;
}
.ledger-event p {
  font-size: 11px;
  line-height: 1.9;
  color: #9aaa94;
  margin: 5px 0;
}
.ledger-event small {
  font-size: 10px;
  line-height: 1.9;
  color: #b0bca6;
}
.payment-amount-preview {
  padding: 21px 24px;
  border: 1px solid #e0e9d5;
  background: #f5f8ed;
  border-radius: 9px;
  margin: 22px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.payment-amount-preview strong {
  font: 750 29px Manrope;
  color: #78925c;
}
.payment-amount-preview span {
  font-size: 12px;
  color: #a5b68f;
}
.ledger-loading {
  padding: 55px;
  text-align: center;
  min-height: 280px;
  color: #8c9f88;
}
.ledger-loading h2 {
  font-size: 20px;
  color: #789270;
}
.ledger-loading p {
  font-size: 12px;
  color: #adbaa5;
}
.loading-orbit {
  display: block;
  width: 31px;
  height: 31px;
  border: 2px solid #e0e9d6;
  border-top-color: #9db383;
  border-radius: 50%;
  margin: 0 auto 23px;
  animation: orbit 1s linear infinite;
}
@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}
#sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: #102e3670;
  backdrop-filter: blur(2px);
  z-index: 45;
}
@media (min-width: 1600px) {
  .shell > main {
    padding-top: 40px;
  }
  h1 {
    font-size: 34px;
  }
  .card-head {
    padding: 24px 27px;
  }
  td {
    padding: 19px 20px;
  }
}
@media (max-width: 1250px) {
  .ledger-summary {
    grid-template-columns: 1fr 1fr;
  }
  .commission-agent-grid {
    grid-template-columns: 1fr 1fr;
  }
  .entity-page-top .actions {
    flex-direction: row;
  }
  .page-top h1 {
    font-size: 28px;
  }
  .page-top .actions {
    max-width: 320px;
  }
  .request-detail-grid {
    grid-template-columns: minmax(0, 1fr) 245px;
  }
}
@media (max-width: 1050px) {
  .agent-work-grid {
    grid-template-columns: 1fr;
  }
  .lookup-card {
    position: static;
  }
  .summary-grid {
    grid-template-columns: 1fr;
  }
  .agent-directory {
    grid-template-columns: 1fr 1fr;
  }
  .hero-art {
    display: none;
  }
  .onboarding-grid {
    grid-template-columns: 1fr;
  }
  .page-top {
    gap: 20px;
  }
  .page-top .actions {
    max-width: 270px;
  }
  .history-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .request-detail-grid {
    grid-template-columns: 1fr;
  }
  .qr-card {
    max-width: 100%;
  }
  .ledger-filters > .entity-field {
    min-width: 170px;
  }
}
@media (max-width: 920px) {
  #app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 280px;
    height: 100dvh;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    padding: 26px 19px;
    display: flex;
  }
  body.mobile-nav-open #app-sidebar {
    transform: translateX(0);
  }
  #app-sidebar .workspace,
  #app-sidebar .nav-label,
  #app-sidebar .sidebar-bottom {
    display: block;
  }
  #app-sidebar .workspace {
    display: flex;
  }
  #app-sidebar .brand small {
    display: block;
  }
  #nav {
    display: block;
    overflow: visible;
  }
  #nav a b,
  #nav a em {
    display: flex;
  }
  #nav a {
    white-space: normal;
    min-height: 45px;
  }
  #nav a b {
    font-size: 18px;
  }
  .shell {
    margin-left: 0;
  }
  .shell > header {
    height: 67px;
    min-height: 67px;
    padding: 0 21px;
    gap: 12px;
  }
  #sidebar-toggle {
    display: grid;
    flex-shrink: 0;
  }
  #crumb {
    font-size: 11px;
  }
  .shell > header .muted {
    display: none;
  }
  .shell > header .slash {
    display: none;
  }
  .header-right {
    gap: 12px;
  }
  .shell > main {
    padding: 28px 24px;
  }
  .shell > footer {
    padding: 5px 24px 24px;
  }
  .workspace {
    margin: 25px 4px;
  }
  .profile {
    display: flex;
  }
  .stats {
    gap: 15px;
  }
  .agent-directory {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .agent-directory-card h2 {
    font-size: 17px;
  }
  .page-top .actions {
    max-width: 350px;
  }
  .onboarding-grid {
    grid-template-columns: 1fr 1fr;
  }
  .summary-grid {
    grid-template-columns: 1fr 1fr;
  }
  .request-detail-grid {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
}
@media (max-width: 760px) {
  .shell > main {
    padding: 25px 18px;
  }
  .shell > header {
    padding: 0 16px;
  }
  .shell > footer {
    padding: 5px 18px 22px;
    font-size: 9px;
    flex-wrap: wrap;
  }
  .page-top {
    flex-direction: column;
    gap: 14px;
    margin-bottom: 22px;
  }
  .page-top h1,
  .entity-page-top h1 {
    font-size: 28px;
    line-height: 1.35;
  }
  .page-top .actions {
    padding-top: 0;
    max-width: none;
    justify-content: flex-start;
    width: 100%;
    flex-direction: row;
    gap: 9px;
  }
  .page-top .actions .btn {
    min-height: 39px;
    font-size: 11px;
    padding: 9px 12px;
  }
  .perspective {
    align-items: center;
    font-size: 10px;
    padding: 11px 13px;
    gap: 12px;
  }
  .perspective strong {
    display: block;
  }
  .perspective .muted {
    font-size: 9px;
  }
  .perspective .text-link {
    font-size: 9px;
    max-width: 110px;
    text-align: right;
    white-space: normal;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .stat,
  .institution-stats .stat {
    padding: 18px;
  }
  .stat-value,
  .institution-stats .stat-value {
    font-size: 29px;
  }
  .stat-top {
    font-size: 11px;
  }
  .stat-bottom {
    font-size: 9px;
  }
  .card-head {
    padding: 21px 19px;
    gap: 14px;
  }
  .card-head h2 {
    font-size: 15px;
  }
  .card-head p {
    font-size: 11px;
  }
  .hero {
    padding: 23px;
  }
  .hero h2 {
    font-size: 22px;
  }
  .hero p {
    font-size: 12px;
  }
  .hero .btn {
    width: 100%;
    font-size: 12px;
  }
  .notice {
    font-size: 11px;
    padding: 15px 16px;
  }
  .entity-tabs,
  .profile-tabs {
    gap: 18px;
  }
  .entity-tabs button,
  .profile-tabs button {
    font-size: 11px;
  }
  .toolbar,
  .entity-toolbar {
    padding: 0 19px 18px;
  }
  .entity-toolbar .search {
    flex-basis: 100%;
  }
  .entity-toolbar select {
    max-width: none;
    flex: 1;
  }
  .search {
    font-size: 12px;
  }
  .history-filters {
    grid-template-columns: 1fr 1fr;
    padding: 0 18px 19px;
    gap: 16px;
  }
  .history-filters .entity-field label {
    font-size: 11px;
  }
  .history-filters .entity-field input,
  .history-filters .entity-field select {
    font-size: 12px;
  }
  .history-pagination {
    align-items: stretch;
    padding: 16px 18px;
  }
  .history-pagination .btn {
    font-size: 10px;
  }
  .table-bottom {
    font-size: 9px;
  }
  .agent-directory,
  .entity-grid,
  .journey-grid,
  .commission-agent-grid {
    grid-template-columns: 1fr;
  }
  .agent-directory-card {
    padding: 23px;
  }
  .agent-directory-card h2 {
    font-size: 20px;
  }
  .agent-banner {
    padding: 19px;
    gap: 14px;
    flex-wrap: wrap;
  }
  .agent-banner h2 {
    font-size: 18px;
  }
  .agent-banner p {
    font-size: 11px;
  }
  .agent-banner > .badge {
    margin-left: 0;
  }
  .agent-banner .commission-counter-pair {
    gap: 6px;
  }
  .agent-placeholder {
    min-height: 280px;
    padding: 40px 25px;
  }
  .agent-placeholder h2 {
    font-size: 20px;
  }
  .agent-placeholder p {
    font-size: 12px;
  }
  .profile-padding {
    padding: 0 19px 21px;
  }
  .request-detail-grid,
  .summary-grid,
  .onboarding-grid {
    grid-template-columns: 1fr;
  }
  .summary-block > div {
    font-size: 11px;
    grid-template-columns: minmax(110px, 0.8fr) minmax(0, 1.2fr);
    gap: 14px;
  }
  .entity-profile-header {
    padding: 21px;
    gap: 14px;
  }
  .entity-profile-header h2 {
    font-size: 20px;
  }
  .entity-profile-header .profile-header-status {
    gap: 25px;
  }
  .meta-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .meta-grid > div {
    font-size: 11px;
  }
  .wide-dialog {
    width: calc(100vw - 24px);
    max-height: 92dvh;
  }
  .wide-dialog > div {
    padding: 23px;
  }
  .wide-dialog:has(.editor-layout) > div {
    padding: 0;
  }
  dialog {
    padding: 24px;
    max-width: calc(100vw - 24px);
    border-radius: 12px;
  }
  dialog h2 {
    font-size: 21px;
  }
  .editor-layout {
    display: flex;
    flex-direction: column;
    max-height: calc(92dvh - 275px);
  }
  .editor-steps {
    padding: 10px 12px;
    flex-direction: row;
    flex-shrink: 0;
    gap: 6px;
  }
  .editor-steps button {
    font-size: 10px;
    padding: 8px;
    white-space: nowrap;
  }
  .editor-heading {
    padding: 21px;
  }
  .editor-heading h2 {
    font-size: 20px;
  }
  .editor-heading p {
    font-size: 11px;
  }
  .editor-body {
    padding: 21px;
  }
  .editor-footer {
    padding: 14px 17px;
    flex-direction: column;
    gap: 10px;
  }
  .editor-footer .btn {
    font-size: 11px;
    padding: 9px 12px;
  }
  .editor-footer .actions {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
  .editor-footer > span {
    font-size: 9px;
  }
  .entity-form-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .entity-field label {
    font-size: 12px;
  }
  .entity-field input,
  .entity-field select,
  .entity-field textarea,
  .full-select {
    font-size: 13px;
    min-height: 43px;
  }
  .dialog-actions {
    gap: 9px;
  }
  .dialog-actions .btn {
    font-size: 11px;
    flex: 1;
    min-width: 100px;
  }
  .document-settings > div {
    font-size: 11px;
    gap: 10px;
  }
  .document-settings select {
    min-width: 130px;
    font-size: 10px;
  }
  .setting-toggle {
    padding: 18px;
    gap: 16px;
  }
  .setting-toggle strong {
    font-size: 12px;
  }
  .setting-toggle small {
    font-size: 10px;
  }
  .commission-overview-card {
    padding: 22px;
    align-items: start;
    flex-direction: column;
    gap: 18px;
  }
  .commission-overview-card .btn {
    width: 100%;
    font-size: 11px;
  }
  .ledger-summary {
    gap: 12px;
    grid-template-columns: 1fr 1fr;
  }
  .ledger-hero-card {
    padding: 21px;
    grid-column: 1/-1;
  }
  .ledger-primary-value {
    font-size: 37px;
  }
  .ledger-hero-bottom {
    margin-top: 14px;
  }
  .ledger-metric {
    padding: 20px 17px;
    gap: 10px;
  }
  .ledger-metric:last-child {
    grid-column: 1/-1;
  }
  .ledger-metric > strong {
    font-size: 24px;
  }
  .metric-label {
    font-size: 11px;
  }
  .ledger-metric small {
    font-size: 10px;
  }
  .ledger-tabs {
    gap: 17px;
    white-space: nowrap;
    overflow: auto;
  }
  .ledger-tabs button {
    font-size: 11px;
  }
  .ledger-filters {
    padding: 18px;
    gap: 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .ledger-filters > .entity-field {
    min-width: 0;
  }
  .ledger-filters > .entity-field:has(#ledger-search) {
    min-width: 0;
    grid-column: 1/-1;
  }
  .ledger-filters > .entity-field:has(#ledger-agent) {
    grid-column: 1/-1;
  }
  .ledger-filters .entity-field label {
    font-size: 11px;
  }
  .ledger-filters > .btn {
    grid-column: 1/-1;
  }
  .commission-agent-grid {
    padding: 18px 18px 0;
    gap: 16px;
  }
  .commission-agent-card {
    padding: 21px;
  }
  .ledger-explainer {
    font-size: 10px;
    padding: 17px;
    gap: 10px;
  }
  .ledger-event {
    gap: 12px;
    padding: 17px 0;
  }
  .ledger-event h3 {
    font-size: 12px;
  }
  .ledger-event p {
    font-size: 11px;
  }
  .ledger-event small {
    font-size: 9px;
  }
  .commission-audit {
    padding: 0 19px 20px;
  }
  .counter-pill,
  .earning-pill {
    font-size: 10px;
    padding: 5px 8px;
  }
  .counter-lifetime {
    font-size: 9px;
  }
  .ledger-table td {
    font-size: 11px;
  }
  .ledger-loading {
    padding: 40px 22px;
  }
  .ledger-loading h2 {
    font-size: 18px;
  }
  .receipt-page .summary-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 420px) {
  .header-right .env {
    display: none;
  }
  .header-right {
    gap: 9px;
  }
  .shell > header {
    gap: 9px;
  }
  .shell > header > div:first-of-type {
    line-height: 1.5;
  }
  .page-top h1 {
    font-size: 26px;
  }
  .brand {
    font-size: 27px;
  }
  .shell > main {
    padding: 23px 15px;
  }
  .shell > footer {
    padding: 4px 16px 20px;
  }
  .page-top .actions .btn {
    flex: 1;
  }
  .perspective .text-link {
    max-width: 95px;
  }
  .ledger-primary-value {
    font-size: 35px;
  }
  .ledger-metric > strong {
    font-size: 22px;
  }
  .ledger-summary {
    gap: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  #app-sidebar,
  .shell > header,
  #sidebar-backdrop,
  #toast,
  .no-print {
    display: none !important;
  }
  .shell {
    margin: 0 !important;
  }
  .shell > main {
    padding: 0 !important;
  }
  .receipt-page .summary-block > div {
    font-size: 10px;
  }
  .receipt-page .btn {
    display: none !important;
  }
  .receipt-page .receipt-shell {
    padding: 0 !important;
    margin: 0 !important;
  }
  .receipt-page .qr-image img {
    display: block !important;
    visibility: visible !important;
  }
}
/* Detail refinements after full-page review */
.commission-agent-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.commission-agent-card:only-child {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 45px;
  align-items: center;
  padding: 25px 27px;
}
.commission-agent-card:only-child .agent-card-title {
  margin-bottom: 18px;
}
.commission-agent-card:only-child h2 {
  max-width: 500px;
  margin-bottom: 12px;
}
.commission-agent-card:only-child .agent-lifetime {
  margin: 0;
}
.commission-agent-card:only-child .commission-agent-position {
  padding-left: 28px;
  border-left: 1px solid #e3ebdc;
}
.commission-agent-position .commission-counter-pair {
  margin-top: 0;
}
.agent-total-label {
  font-size: 9px;
  letter-spacing: 1px;
  color: #8c9f80;
  display: block;
  margin-bottom: 12px;
}
.ledger-event p,
.ledger-event small {
  color: #819578;
}
.metric-label {
  color: #6e8577;
}
.rate-line {
  color: #829577;
}
.rate-line strong {
  color: #637d4d;
}
.agent-lifetime {
  color: #879d7c;
}
.ledger-metric small {
  color: #869d86;
}
.commission-audit .ledger-event h3 {
  color: #59774c;
}
.ledger-explainer {
  color: #78906f;
}
.entity-field label,
.field-label,
.form-row label {
  color: #5d7780;
}
@media (max-width: 1050px) {
  .commission-agent-card:only-child {
    gap: 25px;
    padding: 23px;
  }
  .commission-agent-card:only-child .commission-agent-position {
    padding-left: 23px;
  }
}
@media (max-width: 760px) {
  .commission-agent-card:only-child {
    display: block;
    padding: 22px;
  }
  .commission-agent-card:only-child .commission-agent-position {
    padding: 20px 0 0;
    margin-top: 17px;
    border-left: 0;
    border-top: 1px solid #e3ebdc;
  }
  .commission-agent-card:only-child h2 {
    font-size: 19px;
  }
  .agent-total-label {
    font-size: 8px;
  }
}
/* Financial data keeps higher contrast than decorative labels. */
.counter-pill {
  color: #3d7757;
}
.earning-pill {
  color: #866b30;
}
.counter-lifetime {
  color: #718675;
}
.ledger-table .amount-cell {
  color: #587743;
}
.ledger-metric small {
  color: #758d76;
}
.agent-lifetime {
  color: #758a6b;
}
.badge {
  font-size: 10px;
}
.cell-small {
  font-size: 11px;
}
th {
  font-size: 10px;
}
.agent-card-actions > .muted {
  color: #748775;
}
.ledger-primary-value {
  font-variant-numeric: tabular-nums;
}
@media (max-width: 760px) {
  .cell-small {
    font-size: 10px;
  }
  .badge {
    font-size: 9px;
  }
  .counter-pill,
  .earning-pill {
    font-size: 11px;
  }
}
.ledger-freshness {
  display: block;
  margin-top: 8px;
  font-size: 9px;
  color: #8b9e82;
  line-height: 1.8;
}
@media (max-width: 920px) {
  body.mobile-nav-open {
    overflow: hidden;
  }
}
@media (max-width: 920px) {
  #app-sidebar {
    transition: none;
  }
  body.mobile-nav-open #app-sidebar {
    transition: transform 0.2s ease;
  }
}

.simulation-banner {display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:24px;padding:24px;border:1px solid #c5dcd3;background:linear-gradient(115deg,#eef8f2,#f8fafc)}
.simulation-banner h2{margin:6px 0 8px}.simulation-banner p{max-width:760px;margin:0 0 8px}.simulation-banner .btn{flex-shrink:0}.simulation-banner small{color:#586c66}
@media(max-width:760px){.simulation-banner{align-items:stretch;flex-direction:column}}

.units-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px;margin:20px 0}.unit-account{padding:24px}.unit-account h2{margin:10px 0 20px}.unit-account-number{font-size:42px;font-weight:750;letter-spacing:-1px;color:#285c4b}.unit-account-number span{display:block;font-size:13px;letter-spacing:0;font-weight:500;color:#617670;margin:6px 0 16px}.unit-account .btn{margin-top:8px}.units-low{border-color:#e5c88e!important;background:#fffbf2!important}.units-heading{display:flex;gap:28px;align-items:center;justify-content:space-between;padding:24px}.units-heading label{min-width:260px;display:grid;gap:8px}.units-heading select{width:100%}.units-heading p{max-width:550px;margin:6px 0 12px;color:#657b73}.unit-balance-banner{display:flex;align-items:center;gap:18px;flex-wrap:wrap;border:1px solid #c8ddd4;background:#edf7f2;padding:18px 22px;border-radius:12px;margin:20px 0}.unit-balance-banner span{font-size:13px;color:#65756f}.unit-balance-banner a{margin-left:auto}.units-grid + .card{margin-bottom:20px}#units-content td small{display:block;margin-top:6px;color:#73837e;overflow-wrap:anywhere}#unit-topup-form label,#unit-threshold-form label{display:grid;gap:8px;margin-top:18px}#unit-topup-form textarea{min-height:90px}#unit-form-error{color:#ad3434}
@media(max-width:700px){.units-heading{flex-direction:column;align-items:stretch}.units-heading label{min-width:0}.unit-balance-banner{align-items:flex-start;flex-direction:column}.unit-balance-banner a{margin-left:0}}
