:root {
  --rm-bg: #f5f3ed;
  --rm-paper: #ffffff;
  --rm-ink: #111417;
  --rm-muted: #69737d;
  --rm-line: rgba(17, 20, 23, .10);
  --rm-dark: #070b0e;
  --rm-gold: #f6b72b;
  --rm-green: #2f9461;
  --rm-orange: #aa6b0b;
  --rm-red: #c94d48;
  --rm-shadow: 0 18px 46px rgba(16, 20, 24, .075);
}

.app-body {
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  color: var(--rm-ink);
  background:
    radial-gradient(circle at 30% 0%, rgba(246,183,43,.08), transparent 26%),
    linear-gradient(180deg, #faf8f2, var(--rm-bg));
  font-family: Inter, Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.app-body .app-shell {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: 100vh;
}

.app-body .app-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 16px;
  color: rgba(255,255,255,.74);
  background:
    radial-gradient(circle at 100% 0%, rgba(246,183,43,.18), transparent 33%),
    linear-gradient(180deg, #070b0e, #0b1116);
  border-right: 1px solid rgba(255,255,255,.08);
  overflow: auto;
}

.app-body .app-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px 20px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #fff;
  text-decoration: none;
}

.app-body .app-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 42px;
}

.app-body .app-brand span {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.035em;
}

.app-body .account-card {
  padding: 14px;
  margin-bottom: 18px;
  border-radius: 15px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.08);
}

.app-body .account-card small {
  display: block;
  margin-bottom: 10px;
  color: rgba(255,255,255,.52);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.app-body .account-card b {
  display: block;
  color: #fff;
  font-size: 15px;
}

.app-body .account-card span {
  display: block;
  margin-top: 5px;
  color: rgba(255,255,255,.48);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.app-body .app-nav {
  display: grid;
  gap: 4px;
}

.app-body .app-nav-label {
  margin: 18px 10px 8px;
  color: rgba(255,255,255,.36);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.app-body .app-nav a {
  min-height: 42px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: rgba(255,255,255,.68);
  background: transparent;
  text-decoration: none;
}

.app-body .app-nav a:hover,
.app-body .app-nav a.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(246,183,43,.18), rgba(246,183,43,.04));
  border-color: rgba(246,183,43,.15);
}

.app-body .nav-symbol,
.app-body .nav-icon {
  width: 25px;
  height: 25px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--rm-gold);
  background: rgba(255,255,255,.06);
  flex: 0 0 25px;
}

.app-body .nav-icon {
  padding: 6px;
  fill: currentColor;
}

.app-body .app-nav b {
  margin-left: auto;
  color: rgba(255,255,255,.42);
  font-size: 11px;
}

.app-body .app-sidebar-foot {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: grid;
  gap: 10px;
}

.app-body .app-sidebar-foot a {
  color: rgba(255,255,255,.52);
  text-decoration: none;
  font-size: 13px;
}

.app-body .app-main {
  min-width: 0;
}

.app-body .app-topbar {
  min-height: 74px;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--rm-line);
  background: rgba(250,248,242,.72);
  backdrop-filter: blur(14px);
}

.app-body .breadcrumbs {
  color: var(--rm-muted);
  font-size: 13px;
  letter-spacing: .08em;
}

.app-body .breadcrumbs b {
  color: var(--rm-ink);
}

.app-body .role-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.app-body .role-switch a {
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: #fff;
  border: 1px solid var(--rm-line);
  color: var(--rm-ink);
  text-decoration: none;
}

.app-body .app-content {
  width: min(100%, 1540px);
  margin: 0 auto;
  padding: 36px 28px 56px;
}

.app-body .section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 22px;
  padding: 24px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 82% 0%, rgba(246,183,43,.18), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,250,236,.72));
  border: 1px solid rgba(17,20,23,.08);
  box-shadow: var(--rm-shadow);
}

.app-body .section-header h1 {
  margin: 0 0 10px;
  max-width: 900px;
  font-size: clamp(38px, 4vw, 60px);
  line-height: 1.02;
  letter-spacing: -.058em;
  font-family: Inter, Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-weight: 900;
}

.app-body .eyebrow {
  margin-bottom: 18px;
  color: #a8730a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.app-body .muted {
  color: var(--rm-muted);
  line-height: 1.55;
}

.app-body .button,
.app-body .btn {
  min-height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--rm-line);
  background: #fff;
  color: var(--rm-ink);
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(16,20,24,.04);
}

.app-body .button-primary,
.app-body .btn-primary {
  border-color: rgba(246,183,43,.72);
  background: linear-gradient(180deg, #ffd56e, #f6ad1c);
}

.app-body .button-secondary,
.app-body .btn-dark {
  border-color: #070b0e;
  background: #070b0e;
  color: #fff;
}

.app-body .cards-grid,
.app-body .split-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.app-body .cards-grid-tight {
  margin-bottom: 18px;
}

.app-body .metric-card,
.app-body .section-card {
  background: rgba(255,255,255,.86);
  border: 1px solid var(--rm-line);
  border-radius: 18px;
  box-shadow: var(--rm-shadow);
  padding: 22px;
  overflow: hidden;
}

.app-body .cards-grid > .metric-card:first-child {
  background:
    radial-gradient(circle at 88% 0%, rgba(246,183,43,.18), transparent 32%),
    linear-gradient(135deg, #070b0e, #111922);
  color: #fff;
}

.app-body .cards-grid > .metric-card:first-child .muted,
.app-body .cards-grid > .metric-card:first-child .metrics dt,
.app-body .cards-grid > .metric-card:first-child .plain-list {
  color: rgba(255,255,255,.62);
}

.app-body .cards-grid > .metric-card:first-child .metrics div,
.app-body .cards-grid > .metric-card:first-child .link-box {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.12);
  color: #fff;
}

.app-body .cards-grid > .metric-card:first-child .pill {
  color: #183c27;
  background: #dff8e8;
}

.app-body .metric-card h2,
.app-body .section-card h2 {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -.055em;
}

.app-body .section-header-inline,
.app-body .card-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.app-body .pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--rm-green);
  background: #eaf7ef;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.app-body .metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.app-body .metrics div {
  padding: 14px;
  border-radius: 15px;
  background: #fff;
  border: 1px solid rgba(17,20,23,.075);
}

.app-body .metrics dt {
  margin-bottom: 10px;
  color: var(--rm-muted);
  font-size: 12px;
}

.app-body .metrics dd {
  margin: 0;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.045em;
}

.app-body .link-box {
  margin-top: 14px;
  padding: 14px;
  border-radius: 15px;
  background: #fff8e8;
  border: 1px dashed rgba(246,183,43,.42);
  color: #5f4000;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.app-body .cta-row {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.app-body .plain-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--rm-muted);
  line-height: 1.55;
}

.app-body .table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 14px;
}

.app-body .data-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.app-body .data-table th,
.app-body .data-table td {
  padding: 13px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(17,20,23,.075);
  font-size: 13px;
}

.app-body .data-table th {
  color: var(--rm-muted);
  background: rgba(251,250,246,.75);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.app-body .settings-form {
  display: grid;
  gap: 12px;
}

.app-body .settings-form-inline {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.app-body label {
  color: var(--rm-muted);
  font-size: 12px;
  font-weight: 750;
}

.app-body input,
.app-body select,
.app-body textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--rm-line);
  border-radius: 11px;
  background: #fff;
  color: var(--rm-ink);
  padding: 0 12px;
}

.app-body textarea {
  padding: 12px;
  resize: vertical;
}

.app-body .check-block {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(17,20,23,.075);
}

.app-body .check-block input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.app-body .action-stack {
  display: grid;
  gap: 8px;
}

.app-body .alert {
  margin: 0 0 18px;
  padding: 13px 15px;
  border-radius: 14px;
  border: 1px solid rgba(246,183,43,.22);
  background: #fff8e8;
  color: #523600;
  font-weight: 720;
}

.app-body .level-mini {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.app-body .level-mini span {
  color: var(--rm-muted);
  font-size: 12px;
  font-weight: 760;
}

.app-body .level-mini i {
  height: 9px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--rm-gold) var(--progress), #ece8df var(--progress));
}

.app-body .qr-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(17,20,23,.075);
}

.app-body .qr-card img {
  width: 132px;
  height: 132px;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(17,20,23,.08);
}

.app-body .qr-card b {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.app-body .platform-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.app-body .platform-metric span,
.app-body .platform-metric small,
.app-body .platform-companies td small {
  display: block;
  color: var(--rm-muted);
}

.app-body .platform-metric strong {
  display: block;
  margin: 10px 0 8px;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -.06em;
}

.app-body .platform-overview {
  margin-bottom: 18px;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
}

.app-body .platform-chart {
  height: 280px;
  display: grid;
  grid-template-columns: repeat(30, minmax(8px, 1fr));
  align-items: end;
  gap: 4px;
  padding-top: 24px;
  border-bottom: 1px solid var(--rm-line);
}

.app-body .platform-chart > div {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
}

.app-body .platform-chart span {
  color: var(--rm-muted);
  font-size: 9px;
}

.app-body .platform-chart i {
  width: 72%;
  min-height: 4px;
  border-radius: 6px 6px 1px 1px;
  background: linear-gradient(180deg, #ffd56e, var(--rm-gold));
}

.app-body .platform-chart small {
  min-height: 28px;
  color: var(--rm-muted);
  font-size: 8px;
  writing-mode: vertical-rl;
}

.app-body .platform-companies .data-table {
  min-width: 1450px;
}

.app-body .platform-companies td strong {
  display: block;
  margin-bottom: 4px;
}

.app-body .company-level-panel {
  margin-bottom: 18px;
  background:
    radial-gradient(circle at 92% 0%, rgba(246,183,43,.20), transparent 35%),
    rgba(255,255,255,.94);
}

.app-body .partner-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.app-body .partner-onboarding {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 18px;
}

.app-body .partner-onboarding-main {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 62px);
  color: #fff;
  background:
    radial-gradient(circle at 92% 10%, rgba(246,183,43,.35), transparent 34%),
    linear-gradient(135deg, #070b0e, #111922);
}

.app-body .partner-onboarding-main .eyebrow,
.app-body .partner-onboarding-main p { color: rgba(255,255,255,.68); }
.app-body .partner-onboarding-main h2 { max-width: 720px; margin: 12px 0; font-size: clamp(28px, 4vw, 48px); }
.app-body .partner-onboarding-main p { max-width: 700px; margin: 0 0 24px; font-size: 16px; line-height: 1.65; }
.app-body .partner-onboarding-steps ol { display: grid; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; counter-reset: onboarding; }
.app-body .partner-onboarding-steps li { position: relative; padding: 16px 14px 16px 54px; border: 1px solid var(--rm-line); border-radius: 12px; counter-increment: onboarding; }
.app-body .partner-onboarding-steps li::before { content: counter(onboarding); position: absolute; left: 14px; top: 14px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: #211600; background: var(--rm-gold); font-weight: 900; }
.app-body .partner-onboarding-steps b,
.app-body .partner-onboarding-steps span { display: block; }
.app-body .partner-onboarding-steps span { margin-top: 4px; color: var(--rm-muted); font-size: 12px; line-height: 1.45; }

.app-body .partner-kpis article {
  padding: 18px;
}

.app-body .partner-kpis span,
.app-body .partner-kpis small {
  display: block;
  color: var(--rm-muted);
}

.app-body .partner-kpis strong {
  display: block;
  margin: 10px 0 7px;
  font-size: clamp(25px, 3vw, 38px);
  letter-spacing: -.055em;
}

.app-body .partner-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, .8fr);
  gap: 18px;
  margin-bottom: 18px;
}

.app-body .partner-side-stack {
  display: grid;
  gap: 18px;
}

.app-body .level-focus {
  color: #fff;
  background:
    radial-gradient(circle at 90% 0%, rgba(246,183,43,.34), transparent 38%),
    linear-gradient(135deg, #070b0e, #111922);
}

.app-body .level-focus .eyebrow,
.app-body .level-focus .muted,
.app-body .level-focus .level-mini span {
  color: rgba(255,255,255,.62);
}

.app-body .level-focus > strong {
  display: block;
  color: var(--rm-gold);
  font-size: 24px;
}

.app-body .reward-chart {
  height: 310px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  gap: 16px;
  padding: 30px 18px 0;
  border-bottom: 1px solid var(--rm-line);
}

.app-body .reward-chart > div {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 9px;
}

.app-body .reward-chart b {
  font-size: 12px;
  white-space: nowrap;
}

.app-body .reward-chart i {
  width: min(72px, 72%);
  min-height: 4px;
  border-radius: 12px 12px 2px 2px;
  background: linear-gradient(180deg, #ffd978, var(--rm-gold));
  box-shadow: 0 10px 25px rgba(246,183,43,.18);
}

.app-body .reward-chart span {
  min-height: 24px;
  color: var(--rm-muted);
  font-size: 12px;
}

.app-body .partner-activity,
.app-body .partner-payouts,
.app-body .partner-programs-head {
  margin-top: 18px;
}

/* Owner cabinet v2 — shared shell, compact screens and one visual language. */
.app-body .owner-hero {
  align-items: center;
}

.app-body .owner-hero h1 {
  max-width: 760px;
}

.app-body .owner-hero-actions {
  max-width: 520px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 9px;
}

.app-body .pill-success {
  color: #216f48;
  background: #dff5e8;
}

.app-body .owner-workspace-tabs,
.app-body .owner-section-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.app-body .owner-workspace-tabs {
  margin: -8px 0 18px;
  padding: 8px 0 2px;
}

.app-body .owner-workspace-tabs a {
  min-width: 190px;
  padding: 12px 14px;
  border: 1px solid var(--rm-line);
  border-radius: 14px;
  background: rgba(255,255,255,.7);
  text-decoration: none;
}

.app-body .owner-workspace-tabs a.active {
  color: #fff;
  border-color: #101820;
  background: #101820;
}

.app-body .owner-workspace-tabs span,
.app-body .owner-workspace-tabs small {
  display: block;
}

.app-body .owner-workspace-tabs span {
  font-weight: 850;
}

.app-body .owner-workspace-tabs small {
  margin-top: 4px;
  color: var(--rm-muted);
  font-size: 11px;
}

.app-body .owner-workspace-tabs a.active small {
  color: rgba(255,255,255,.55);
}

.app-body .owner-section-nav {
  position: sticky;
  top: 0;
  z-index: 12;
  margin-bottom: 18px;
  padding: 8px;
  border: 1px solid var(--rm-line);
  border-radius: 16px;
  background: rgba(250,248,242,.92);
  box-shadow: 0 12px 32px rgba(16,20,24,.055);
  backdrop-filter: blur(14px);
}

.app-body .owner-section-nav a {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  color: var(--rm-muted);
  font-size: 12px;
  font-weight: 780;
  text-decoration: none;
}

.app-body .owner-section-nav a:hover,
.app-body .owner-section-nav a.active {
  color: #fff;
  background: #101820;
}

.app-body .owner-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.app-body .owner-kpis-compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.app-body .owner-kpi {
  min-height: 146px;
  padding: 18px;
}

.app-body .owner-kpi span,
.app-body .owner-kpi small {
  display: block;
  color: var(--rm-muted);
}

.app-body .owner-kpi strong {
  display: block;
  margin: 13px 0 8px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
  letter-spacing: -.06em;
}

.app-body .owner-kpi-dark {
  color: #fff;
  background:
    radial-gradient(circle at 90% 0%, rgba(246,183,43,.3), transparent 40%),
    linear-gradient(135deg, #070b0e, #111922);
}

.app-body .owner-kpi-dark span,
.app-body .owner-kpi-dark small {
  color: rgba(255,255,255,.6);
}

.app-body .owner-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(310px, .8fr);
  gap: 18px;
  margin-bottom: 18px;
}

.app-body .owner-side-stack {
  display: grid;
  gap: 18px;
}

.app-body .owner-chart {
  height: 300px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: 18px;
  padding: 32px 12px 0;
  border-bottom: 1px solid var(--rm-line);
}

.app-body .owner-chart > div {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.app-body .owner-chart b {
  font-size: 12px;
}

.app-body .owner-chart i {
  width: min(74px, 72%);
  min-height: 5px;
  border-radius: 12px 12px 2px 2px;
  background: linear-gradient(180deg, #ffd978, var(--rm-gold));
  box-shadow: 0 10px 28px rgba(246,183,43,.2);
}

.app-body .owner-chart span {
  min-height: 24px;
  color: var(--rm-muted);
  font-size: 11px;
}

.app-body .owner-level-card {
  color: #fff;
  background:
    radial-gradient(circle at 92% 0%, rgba(246,183,43,.32), transparent 38%),
    linear-gradient(135deg, #070b0e, #111922);
}

.app-body .owner-level-card .eyebrow,
.app-body .owner-level-card .level-mini span {
  color: rgba(255,255,255,.6);
}

.app-body .owner-level-benefit {
  color: var(--rm-gold);
  font-size: 17px;
  font-weight: 850;
}

.app-body .owner-level-list {
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  list-style: none;
}

.app-body .owner-level-list li {
  padding: 9px;
  border-radius: 10px;
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.62);
  font-size: 10px;
}

.app-body .owner-level-list b {
  display: block;
  margin-bottom: 3px;
  color: #fff;
  font-size: 12px;
}

.app-body .owner-attention-card a {
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--rm-line);
  color: var(--rm-ink);
  text-decoration: none;
}

.app-body .owner-attention-card a b {
  color: var(--rm-orange);
}

.app-body .owner-recent,
.app-body .owner-launch,
.app-body .owner-levels-section,
.app-body .owner-events {
  margin-top: 18px;
}

.app-body .owner-data-table td small {
  display: block;
  margin-top: 4px;
  color: var(--rm-muted);
  font-size: 10px;
}

.app-body .owner-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: #8a5c00;
  background: #fff2cf;
  font-size: 11px;
  font-weight: 780;
  white-space: nowrap;
}

.app-body .status-approved,
.app-body .status-qualified,
.app-body .status-active,
.app-body .status-accrued,
.app-body .status-paid_confirmed,
.app-body .status-success {
  color: #216f48;
  background: #e2f5e9;
}

.app-body .status-rejected,
.app-body .status-failed,
.app-body .status-disputed {
  color: #a33e39;
  background: #ffebe9;
}

.app-body .owner-invite-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 18px;
  align-items: center;
}

.app-body .owner-invite-grid img {
  width: 132px;
  height: 132px;
  padding: 8px;
  border: 1px solid var(--rm-line);
  border-radius: 14px;
  background: #fff;
}

.app-body .owner-page-heading {
  margin: 4px 0 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
}

.app-body .owner-page-heading h1 {
  margin: 0 0 8px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
  letter-spacing: -.06em;
}

.app-body .owner-program-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, .6fr);
}

.app-body .owner-level-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.app-body .owner-level-grid article {
  padding: 16px;
  border: 1px solid var(--rm-line);
  border-radius: 14px;
  background: #fff;
}

.app-body .owner-level-grid span,
.app-body .owner-level-grid b,
.app-body .owner-level-grid strong {
  display: block;
}

.app-body .owner-level-grid span {
  color: var(--rm-muted);
  font-size: 10px;
}

.app-body .owner-level-grid b {
  margin: 12px 0 6px;
}

.app-body .owner-level-grid strong {
  color: #a8730a;
  font-size: 28px;
}

.app-body .owner-row-actions,
.app-body .owner-row-actions form,
.app-body .owner-proof-form {
  display: flex;
  align-items: center;
  gap: 7px;
}

.app-body .owner-row-actions .compact-input,
.app-body .owner-proof-form .compact-input {
  min-width: 110px;
}

.app-body .owner-integration-grid,
.app-body .owner-document-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.app-body .owner-integration-grid .metric-card,
.app-body .owner-document-grid .metric-card {
  min-height: 190px;
  color: var(--rm-ink);
  text-decoration: none;
}

.app-body .owner-integration-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #201603;
  background: var(--rm-gold);
  font-weight: 900;
}

.app-body .owner-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.app-body .owner-settings-grid .section-card {
  align-self: start;
}

.app-body .owner-settings-grid .settings-form {
  margin-top: 16px;
}

.app-body .owner-settings-grid textarea {
  min-height: 116px;
}

.app-body .owner-two-fields {
  grid-template-columns: 1fr 1fr;
}

.app-body .owner-two-fields .button {
  grid-column: 1 / -1;
}

.app-body .owner-danger-card {
  border-color: rgba(201,77,72,.25);
  background: #fff8f7;
}

/* Status-aware company requisites. */
.app-body .business-profile-card {
  padding: 24px;
}

.app-body .business-profile-form {
  margin-top: 18px;
  padding: 0;
  gap: 16px;
  border: 0;
  background: transparent;
}

.app-body .business-form-section {
  min-width: 0;
  margin: 0;
  padding: 20px;
  display: grid;
  gap: 14px;
  border: 1px solid var(--rm-line);
  border-radius: 18px;
  background: rgba(255,255,255,.78);
}

.app-body .business-form-section legend {
  padding: 0 8px 0 0;
  color: var(--rm-ink);
  font-size: 16px;
  font-weight: 900;
}

.app-body .business-form-section legend span {
  width: 28px;
  height: 28px;
  margin-right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  color: #211600;
  background: var(--rm-gold);
  font-size: 12px;
}

.app-body .business-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.app-body .business-field {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 7px;
}

.app-body .business-field-wide {
  grid-column: 1 / -1;
}

.app-body .business-field > span {
  color: var(--rm-ink);
  font-size: 12px;
  font-weight: 800;
}

.app-body .business-field small,
.app-body .form-help {
  margin: 0;
  color: var(--rm-muted);
  font-size: 12px;
  line-height: 1.45;
}

.app-body .business-option-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.app-body .business-option-grid .check-chip {
  min-height: 58px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 13px;
  background: #fff;
}

.app-body .business-option-grid .check-chip input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  flex: 0 0 18px;
  accent-color: var(--rm-gold);
}

.app-body .business-option-grid .check-chip span {
  line-height: 1.35;
}

.app-body .business-bank-fields {
  padding: 17px;
  border-radius: 15px;
  border: 1px solid rgba(246,183,43,.25);
  background: #fffaf0;
}

.app-body .business-bank-fields h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.app-body .business-bank-fields .business-form-grid {
  margin-top: 14px;
}

.app-body .business-consents {
  gap: 10px;
}

.app-body .business-form-actions {
  margin-top: 0;
}

.app-body [hidden] {
  display: none !important;
}

@media (max-width: 1120px) {
  .app-body .app-shell {
    grid-template-columns: 1fr;
  }
  .app-body .app-sidebar {
    position: static;
    height: auto;
  }
  .app-body .app-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .app-body .app-nav-label,
  .app-body .app-sidebar-foot {
    grid-column: 1 / -1;
  }
  .app-body .platform-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .app-body .partner-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .app-body .partner-dashboard-grid {
    grid-template-columns: 1fr;
  }
  .app-body .partner-onboarding {
    grid-template-columns: 1fr;
  }
  .app-body .owner-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .app-body .owner-overview-grid,
  .app-body .owner-program-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .app-body .app-topbar,
  .app-body .section-header,
  .app-body .section-header-inline,
  .app-body .card-topline {
    display: grid;
  }
  .app-body .app-topbar {
    min-height: 60px;
    height: auto;
    padding: 10px 14px;
    display: flex;
    justify-content: center;
  }
  .app-body .breadcrumbs {
    display: none;
  }
  .app-body .role-switch {
    width: 100%;
    padding: 0;
    flex-wrap: nowrap;
    justify-content: center;
    overflow-x: auto;
    background: transparent;
  }
  .app-body .role-switch a {
    flex: 0 0 auto;
  }
  .app-body .app-content {
    padding: 24px 14px 84px;
  }
  .app-body .section-header,
  .app-body .section-header > *,
  .app-body .section-card,
  .app-body .partner-kpis article {
    min-width: 0;
  }
  .app-body .section-header {
    gap: 18px;
    padding: 20px;
  }
  .app-body .section-header h1 {
    max-width: 100%;
    font-size: clamp(28px, 9vw, 36px);
    line-height: 1.02;
    overflow-wrap: anywhere;
  }
  .app-body .section-header p,
  .app-body .partner-kpis span,
  .app-body .partner-kpis strong,
  .app-body .partner-kpis small {
    overflow-wrap: anywhere;
  }
  .app-body .owner-hero-actions {
    max-width: none;
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }
  .app-body .owner-hero-actions > * {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }
  .app-body .owner-section-nav {
    margin-inline: -4px;
  }
  .app-body .owner-kpis,
  .app-body .owner-kpis-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .app-body .owner-kpi {
    min-height: 128px;
  }
  .app-body .owner-chart {
    height: 240px;
    gap: 7px;
    padding-inline: 0;
  }
  .app-body .owner-page-heading {
    display: grid;
    align-items: start;
  }
  .app-body .owner-page-heading .button {
    width: 100%;
  }
  .app-body .owner-integration-grid,
  .app-body .owner-document-grid,
  .app-body .owner-settings-grid {
    grid-template-columns: 1fr;
  }
  .app-body .owner-level-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .app-body .owner-row-actions,
  .app-body .owner-row-actions form,
  .app-body .owner-proof-form {
    align-items: stretch;
    flex-direction: column;
  }
  .app-body .business-form-grid,
  .app-body .business-option-grid {
    grid-template-columns: 1fr;
  }
  .app-body .business-field-wide {
    grid-column: auto;
  }
  .app-body .business-profile-card,
  .app-body .business-form-section {
    padding: 16px;
  }
  .app-body .partner-hero .cta-row {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
  .app-body .partner-hero .cta-row > * {
    width: 100%;
    min-width: 0;
    white-space: normal;
    text-align: center;
  }
  .app-body .partner-onboarding-main .cta-row {
    display: grid;
    grid-template-columns: 1fr;
  }
  .app-body .partner-onboarding-main .cta-row > * {
    width: 100%;
    min-width: 0;
  }
  .app-body .cards-grid,
  .app-body .split-layout,
  .app-body .metrics,
  .app-body .settings-form-inline {
    grid-template-columns: 1fr;
  }
  .app-body .platform-metrics,
  .app-body .platform-overview {
    grid-template-columns: 1fr;
  }
  .app-body .partner-kpis {
    grid-template-columns: 1fr 1fr;
  }
  .app-body .platform-chart {
    grid-template-columns: repeat(30, minmax(3px, 1fr));
    gap: 2px;
  }
  .app-body .reward-chart {
    height: 250px;
    gap: 6px;
    padding-inline: 0;
  }
  .app-body .reward-chart b {
    font-size: 9px;
  }
  .app-body .mobile-nav {
    height: 60px;
    padding: 0 4px;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    overflow-x: auto;
  }
  .app-body .mobile-nav a {
    min-width: 64px;
    flex: 1 0 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .app-body .partner-kpis {
    grid-template-columns: 1fr;
  }
  .app-body .owner-kpis,
  .app-body .owner-kpis-compact,
  .app-body .owner-level-grid,
  .app-body .owner-two-fields {
    grid-template-columns: 1fr;
  }
  .app-body .owner-invite-grid {
    grid-template-columns: 1fr;
  }
  .app-body .owner-invite-grid img {
    width: 112px;
    height: 112px;
  }
  .app-body .owner-level-list {
    grid-template-columns: 1fr;
  }
}
