:root {
    --navy: #001739;
    --navy-2: #06224a;
    --blue: #0169d1;
    --blue-2: #1a75ba;
    --sky: #eaf5ff;
    --teal: #0e9f8f;
    --green: #169b62;
    --amber: #d58b16;
    --purple: #7b61c9;
    --red: #d94b55;
    --ink: #10213b;
    --muted: #66758b;
    --line: #dfe7f1;
    --surface: #f4f7fb;
    --white: #fff;
    --shadow: 0 20px 50px rgba(0, 23, 57, .09);
    --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: Montserrat, Inter, "Segoe UI", Arial, sans-serif; font-size: 14px; background: var(--surface); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
pre.api-example { margin: 18px 0; padding: 16px; overflow: auto; border-radius: 9px; background: #10243b; color: #dcecff; font-size: 12px; line-height: 1.6; }

/* FEATURE HELP: accessible note icons generated from the central JS glossary. */
.help-note { position: relative; display: inline-flex; margin-left: 6px; vertical-align: middle; }
.help-note-button { width: 17px; height: 17px; padding: 0; display: inline-grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; background: transparent; color: #4383b8; font: 700 10px/1 Arial,sans-serif; cursor: help; opacity: .82; }
.help-note-text { position: absolute; z-index: 1000; left: 50%; bottom: calc(100% + 9px); width: min(260px,75vw); padding: 10px 12px; border-radius: 8px; background: #10243b; color: #fff; box-shadow: 0 10px 30px rgba(16,36,59,.22); font-size: 11px; font-weight: 500; line-height: 1.45; text-align: left; pointer-events: none; opacity: 0; visibility: hidden; transform: translate(-50%,5px); transition: .15s ease; }
.help-note-text::after { content: ''; position: absolute; top: 100%; left: 50%; border: 5px solid transparent; border-top-color: #10243b; transform: translateX(-50%); }
.help-note:hover .help-note-text,.help-note:focus-within .help-note-text,.help-note.open .help-note-text { opacity: 1; visibility: visible; transform: translate(-50%,0); }
.help-note.align-right .help-note-text { left: auto; right: -12px; transform: translateY(5px); }
.help-note.align-right:hover .help-note-text,.help-note.align-right:focus-within .help-note-text,.help-note.align-right.open .help-note-text { transform: translateY(0); }
.help-note.align-right .help-note-text::after { left: auto; right: 14px; transform: none; }
.help-note.align-left .help-note-text { left: -12px; transform: translateY(5px); }
.help-note.align-left:hover .help-note-text,.help-note.align-left:focus-within .help-note-text,.help-note.align-left.open .help-note-text { transform: translateY(0); }
.help-note.align-left .help-note-text::after { left: 14px; transform: none; }
.side-nav .help-note { margin-left: auto; }
.side-nav .help-note-button { color: #aebfd4; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, strong { letter-spacing: -.02em; }
.muted { color: var(--muted); }

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--navy); font-size: 19px; font-weight: 800; letter-spacing: -.04em; }
.brand span:last-child { display: flex; flex-direction: column; line-height: 1; }
.brand small { margin-top: 5px; font-size: 7px; letter-spacing: .19em; font-weight: 700; opacity: .64; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 38px; color: #fff; background: linear-gradient(145deg, var(--blue), #31a2e8); border-radius: 11px 11px 11px 3px; font-size: 20px; font-weight: 900; box-shadow: 0 8px 20px rgba(1,105,209,.25); }
.brand-light { color: #fff; }

.btn { min-height: 42px; padding: 10px 17px; border-radius: 10px; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 750; cursor: pointer; transition: .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--blue), #1389df); box-shadow: 0 9px 22px rgba(1,105,209,.22); }
.btn-primary:hover { box-shadow: 0 12px 28px rgba(1,105,209,.3); }
.btn-secondary { color: var(--blue); background: #edf6ff; border-color: #cfe8ff; }
.btn-outline { color: var(--navy); border-color: #b8c7d9; background: rgba(255,255,255,.55); }
.btn-white { color: var(--navy); background: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.12); }
.btn-ghost { color: var(--muted); background: transparent; border-color: var(--line); }
.btn-lg { min-height: 52px; padding: 14px 23px; border-radius: 12px; }
.btn-sm { min-height: 36px; padding: 8px 13px; border-radius: 9px; font-size: 12px; }
.btn-block { width: 100%; }

.public-body { background: #fff; }
.public-nav { height: 80px; max-width: 1240px; margin: auto; padding: 0 26px; display: flex; align-items: center; justify-content: space-between; }
.public-nav nav { display: flex; align-items: center; gap: 28px; color: #3b4e67; font-size: 13px; font-weight: 650; }
.partner-hero { min-height: 650px; max-width: 1360px; margin: 0 auto; padding: 74px max(28px,calc((100% - 1188px)/2)) 88px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center; background: radial-gradient(circle at 80% 30%,#dff2ff 0,transparent 27%),linear-gradient(130deg,#f8fbff 0%,#eff8ff 62%,#f8fcff 100%); border-radius: 0 0 38px 38px; overflow: hidden; }
.hero-tag, .section-kicker, .eyebrow { color: var(--blue); font-size: 10px; font-weight: 850; letter-spacing: .18em; }
.hero-copy h1 { max-width: 660px; margin: 17px 0 22px; color: var(--navy); font-size: clamp(43px,5.3vw,76px); line-height: .99; letter-spacing: -.06em; }
.hero-copy h1 em { color: var(--blue); font-style: normal; }
.hero-copy > p { max-width: 610px; color: #52657c; font-size: 17px; line-height: 1.75; }
.hero-actions { display: flex; gap: 12px; margin: 31px 0 25px; }
.hero-trust { display: flex; gap: 18px; flex-wrap: wrap; color: #5e6f84; font-size: 11px; font-weight: 650; }
.hero-visual { min-height: 450px; position: relative; display: grid; place-items: center; }
.hero-orbit { position: absolute; border: 1px solid rgba(1,105,209,.15); border-radius: 50%; }
.orbit-one { width: 440px; height: 440px; }
.orbit-two { width: 335px; height: 335px; border-style: dashed; }
.earning-panel { width: 365px; position: relative; z-index: 2; color: #fff; padding: 24px; border-radius: 24px; background: linear-gradient(145deg,#001739 0%,#063970 68%,#07549a 100%); box-shadow: 0 35px 70px rgba(0,23,57,.28); transform: rotate(-2deg); }
.earning-head { display: flex; justify-content: space-between; align-items: center; color: #b9cee9; font-size: 11px; }
.live-dot { color: #82f2b8; font-size: 9px; letter-spacing: .12em; }
.earning-main { padding: 34px 0 27px; border-bottom: 1px solid rgba(255,255,255,.13); }
.earning-main small { display: block; color: #a9c3e3; line-height: 1.5; }
.earning-main strong { display: block; margin-top: 10px; font-size: 43px; letter-spacing: -.05em; }
.earning-split { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding: 22px 0 8px; }
.earning-split div { padding: 13px; border-radius: 12px; background: rgba(255,255,255,.08); }
.earning-split small,.earning-split strong { display: block; }
.earning-split small { color: #bad0eb; font-size: 9px; }
.earning-split strong { margin-top: 7px; font-size: 22px; }
.mini-chart { height: 55px; display: flex; align-items: end; gap: 7px; padding-top: 8px; }
.mini-chart i { flex: 1; border-radius: 4px 4px 1px 1px; background: linear-gradient(#42baf6,#087bd2); }
.mini-chart i:nth-child(1) { height: 30%; }.mini-chart i:nth-child(2) { height: 42%; }.mini-chart i:nth-child(3) { height: 38%; }
.mini-chart i:nth-child(4) { height: 61%; }.mini-chart i:nth-child(5) { height: 75%; }.mini-chart i:nth-child(6) { height: 92%; }
.float-pill { position: absolute; z-index: 3; padding: 12px 16px; border-radius: 12px; background: #fff; box-shadow: var(--shadow); color: #617087; font-size: 10px; }
.float-pill b { display: block; color: var(--navy); font-size: 18px; }
.pill-one { top: 85px; right: 2px; }
.pill-two { bottom: 65px; left: -10px; }

.commission-strip { max-width: 1188px; margin: -27px auto 0; position: relative; z-index: 4; display: grid; grid-template-columns: repeat(3,1fr); border-radius: 18px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.commission-strip > div { min-height: 125px; padding: 28px; display: flex; gap: 16px; align-items: flex-start; border-right: 1px solid var(--line); }
.commission-strip > div:last-child { border-right: 0; }
.commission-strip > div > span { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 32px; border-radius: 50%; color: var(--blue); background: var(--sky); font-size: 10px; font-weight: 800; }
.commission-strip p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.commission-strip strong { display: block; margin-bottom: 5px; color: var(--navy); font-size: 14px; }
.content-section,.standards-section { max-width: 1188px; margin: 0 auto; padding: 110px 0; }
.section-heading { max-width: 680px; margin: 0 auto 50px; text-align: center; }
.section-heading h2 { margin: 12px 0 15px; color: var(--navy); font-size: clamp(31px,4vw,47px); line-height: 1.08; }
.section-heading p { color: var(--muted); line-height: 1.7; font-size: 15px; }
.steps-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.steps-grid article { min-height: 230px; padding: 29px; border: 1px solid var(--line); border-radius: 18px; background: #fff; transition: .2s; }
.steps-grid article:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #badcff; }
.steps-grid article > span { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: var(--blue); font-weight: 800; }
.steps-grid h3 { margin: 24px 0 10px; color: var(--navy); font-size: 17px; }
.steps-grid p { color: var(--muted); font-size: 12px; line-height: 1.7; }
.who-section { max-width: 1260px; margin: 0 auto; padding: 70px 74px; display: grid; grid-template-columns: 1fr 1fr; gap: 70px; color: #fff; border-radius: 30px; background: linear-gradient(130deg,var(--navy) 0%,#053f7f 100%); }
.section-kicker-light { color: #7fc9ff; }
.who-copy h2 { margin: 13px 0 17px; font-size: clamp(31px,3.6vw,48px); line-height: 1.08; }
.who-copy p { color: #c1d2e8; line-height: 1.7; }
.who-copy .btn { margin-top: 13px; }
.category-cloud { display: flex; gap: 10px; flex-wrap: wrap; align-content: center; }
.category-cloud span { padding: 12px 15px; border: 1px solid rgba(255,255,255,.17); border-radius: 999px; background: rgba(255,255,255,.07); color: #e5effb; font-size: 11px; }
.quality-card { display: grid; grid-template-columns: 1.25fr .75fr; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.quality-card ul { margin: 0; padding: 20px 36px; list-style: none; background: #fff; }
.quality-card li { padding: 19px 0; display: grid; grid-template-columns: .8fr 1.2fr; border-bottom: 1px solid var(--line); }
.quality-card li:last-child { border-bottom: 0; }
.quality-card b { color: var(--navy); }
.quality-card li span { color: var(--muted); }
.quality-score { padding: 40px; display: grid; place-items: center; text-align: center; color: #fff; background: linear-gradient(145deg,var(--blue),#074c99); }
.score-ring { width: 160px; height: 160px; display: grid; place-items: center; border: 15px solid rgba(255,255,255,.22); border-top-color: #fff; border-radius: 50%; transform: rotate(23deg); }
.score-ring span { font-size: 45px; font-weight: 800; transform: rotate(-23deg); }
.score-ring small { font-size: 18px; }
.quality-score p { margin: 25px 0 0; color: #cce4fa; line-height: 1.6; }
.quality-score p strong { display: block; color: #fff; font-size: 17px; }
.final-cta { max-width: 1188px; margin: 0 auto 100px; padding: 72px 30px; border-radius: 28px; text-align: center; color: #fff; background: radial-gradient(circle at 20% 10%,rgba(92,198,255,.35),transparent 25%),linear-gradient(130deg,var(--blue),#003b7c); }
.final-cta h2 { margin: 15px 0 28px; font-size: clamp(33px,4.2vw,54px); line-height: 1.08; }
.public-footer { min-height: 150px; padding: 45px max(28px,calc((100% - 1188px)/2)); display: flex; align-items: center; justify-content: space-between; color: #9eb3ce; background: var(--navy); font-size: 11px; }

.application-page { max-width: 1120px; margin: 40px auto 100px; display: grid; grid-template-columns: .75fr 1.25fr; gap: 60px; align-items: start; }
.application-intro { position: sticky; top: 30px; padding: 35px 0; }
.application-intro h1 { margin: 14px 0 20px; color: var(--navy); font-size: 44px; line-height: 1.08; }
.application-intro > p { color: var(--muted); line-height: 1.7; }
.application-note { margin-top: 28px; padding: 23px; border-radius: 15px; background: var(--sky); }
.application-note b { color: var(--navy); }
.application-note ul { padding-left: 18px; color: var(--muted); line-height: 1.8; }
.application-card,.install-card { padding: 36px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.card-heading { display: flex; gap: 15px; margin-bottom: 30px; }
.card-heading > span { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 38px; border-radius: 10px; color: #fff; background: var(--blue); font-size: 11px; font-weight: 800; }
.card-heading h2 { margin: 0 0 4px; color: var(--navy); }
.card-heading p { color: var(--muted); margin: 0; font-size: 11px; }

.auth-body { min-height: 100vh; background: #eaf1f9; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.auth-brand-panel { min-height: 100vh; padding: 58px 9vw 42px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; background: radial-gradient(circle at 20% 70%,rgba(0,151,255,.26),transparent 30%),linear-gradient(145deg,#001739,#064d94); }
.auth-brand-panel h1 { margin: 15px 0 20px; font-size: clamp(43px,5vw,70px); line-height: 1; }
.auth-brand-panel h1 em { color: #62c8ff; font-style: normal; }
.auth-brand-panel p { max-width: 500px; color: #b9cee7; line-height: 1.7; font-size: 15px; }
.auth-card { width: min(430px,calc(100% - 40px)); margin: auto; padding: 20px 0; }
.back-link { color: var(--muted); font-size: 12px; }
.auth-heading { margin: 48px 0 28px; }
.auth-heading h2 { margin: 17px 0 7px; color: var(--navy); font-size: 31px; }
.auth-heading p,.auth-foot { color: var(--muted); }
.auth-form { display: grid; gap: 18px; }
.auth-foot { margin-top: 25px; font-size: 12px; text-align: center; }
.auth-foot a { color: var(--blue); font-weight: 750; }
.install-shell { min-height: 100vh; display: grid; grid-template-columns: .8fr 1.2fr; max-width: 1200px; margin: auto; padding: 55px 25px; align-items: center; gap: 60px; }
.install-intro { min-height: 660px; padding: 55px; border-radius: 25px; display: flex; flex-direction: column; justify-content: center; color: #fff; background: linear-gradient(145deg,var(--navy),#0752a0); }
.install-intro .brand { position: absolute; align-self: flex-start; margin-top: -510px; }
.install-intro h1 { margin: 15px 0; font-size: 45px; line-height: 1.06; }
.install-intro p { color: #bed2e9; line-height: 1.7; }
.feature-checks { padding: 0; list-style: none; color: #dbe9f7; line-height: 2.1; }
.feature-checks li:before { content: "✓"; margin-right: 9px; color: #62e5b7; }
.success-panel { text-align: center; padding: 50px 20px; }
.success-panel > span { width: 70px; height: 70px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 50%; background: #e3faef; color: var(--green); font-size: 30px; }

.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { color: #354760; font-size: 11px; font-weight: 750; }
.field label small,.field > small { color: var(--muted); font-size: 9px; font-weight: 500; }
.field input,.field select,.field textarea,.filter-bar input,.filter-bar select,.inline-pay-form input { width: 100%; min-height: 43px; padding: 10px 12px; color: var(--ink); border: 1px solid #d4dfeb; border-radius: 9px; outline: 0; background: #fff; transition: .2s; }
.field textarea { resize: vertical; }
.field input:focus,.field select:focus,.field textarea:focus,.filter-bar input:focus,.filter-bar select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(1,105,209,.1); }
.field input:disabled { color: #7e8b9e; background: #f3f6fa; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid-3 { grid-template-columns: repeat(3,1fr); }
.field-full { grid-column: 1/-1; }
.field-span-2 { grid-column: span 2; }
.field-action { align-self: end; }
.form-actions { flex-direction: row; justify-content: flex-end; }
.form-divider { margin: 8px 0 0; display: flex; align-items: center; gap: 15px; color: var(--blue); font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.form-divider:before,.form-divider:after { content: ""; height: 1px; flex: 1; background: var(--line); }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 65px; }
.password-wrap button { position: absolute; top: 1px; right: 1px; height: 41px; padding: 0 13px; border: 0; border-radius: 8px; color: var(--blue); background: transparent; font-size: 10px; font-weight: 750; cursor: pointer; }
.check-row { display: flex; align-items: flex-start; gap: 11px; line-height: 1.55; font-weight: 500 !important; }
.check-row input,.check-card input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--blue); }
.check-card { padding: 14px; display: flex; align-items: flex-start; gap: 10px; border: 1px solid var(--line); border-radius: 10px; }
.check-card span { display: flex; flex-direction: column; gap: 4px; }
.check-card b { font-size: 10px; }
.check-card small { color: var(--muted); font-size: 8px; }
.check-card-danger { border-color: #f1c9cd; background: #fff6f7; }

.alert { max-width: 1188px; margin: 12px auto; padding: 13px 16px; display: flex; justify-content: space-between; align-items: center; border-radius: 10px; font-size: 12px; font-weight: 650; }
.alert button { border: 0; background: transparent; color: inherit; font-size: 18px; cursor: pointer; }
.alert-success { color: #0b7047; background: #e3f9ef; border: 1px solid #b8ecd4; }
.alert-warning { color: #8a5b0a; background: #fff7df; border: 1px solid #f0dda5; }
.alert-danger { color: #9a2731; background: #fff0f1; border: 1px solid #f3c5c9; }
.alert-info { color: #155e9b; background: #eaf5ff; border: 1px solid #c6e4fb; }

.dashboard-body { background: var(--surface); }
.sidebar { width: 246px; position: fixed; inset: 0 auto 0 0; z-index: 30; display: flex; flex-direction: column; color: #d5e3f3; background: linear-gradient(180deg,var(--navy) 0%,#031f44 100%); }
.sidebar .brand { height: 92px; padding: 0 25px; border-bottom: 1px solid rgba(255,255,255,.08); }
.side-nav { padding: 23px 13px; display: grid; gap: 4px; }
.side-nav a,.sidebar-foot button { width: 100%; min-height: 47px; padding: 0 13px; display: flex; align-items: center; gap: 13px; border: 0; border-radius: 9px; color: #aebfd4; background: transparent; font-size: 12px; font-weight: 650; cursor: pointer; }
.side-nav a:hover,.side-nav a.active { color: #fff; background: rgba(25,135,225,.22); }
.side-nav a.active { box-shadow: inset 3px 0 #35a9ef; }
.side-nav svg,.sidebar-foot svg { width: 19px; height: 19px; flex: 0 0 19px; }
.sidebar-foot { margin-top: auto; padding: 15px 13px 22px; border-top: 1px solid rgba(255,255,255,.08); }
.dashboard-shell { min-height: 100vh; margin-left: 246px; }
.topbar { min-height: 92px; padding: 18px 33px; display: flex; align-items: center; gap: 18px; justify-content: space-between; border-bottom: 1px solid var(--line); background: #fff; }
.topbar .eyebrow { display: block; margin-bottom: 5px; font-size: 8px; }
.topbar h1 { margin: 0; color: var(--navy); font-size: 24px; }
.user-chip { display: flex; align-items: center; gap: 10px; }
.user-chip > span:last-child { display: flex; flex-direction: column; }
.user-chip strong { color: var(--navy); font-size: 11px; }
.user-chip small { color: var(--muted); font-size: 9px; }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 36px; border-radius: 10px; color: #fff; background: linear-gradient(135deg,var(--blue),#32a6e8); font-size: 13px; font-weight: 800; }
.avatar-large { width: 48px; height: 48px; }
.avatar-xl { width: 72px; height: 72px; border-radius: 18px; font-size: 26px; }
.menu-toggle { display: none; width: 38px; height: 38px; padding: 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.menu-toggle span { height: 2px; margin: 4px 0; display: block; background: var(--navy); }
.dashboard-main { padding: 28px 32px 45px; }
.dashboard-main > .alert { max-width: none; margin: 0 0 18px; }
.dashboard-footer { padding: 18px 32px; color: #8390a2; border-top: 1px solid var(--line); font-size: 9px; }
.sidebar-overlay { display: none; }

.summary-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 20px; }
.summary-grid-six { grid-template-columns: repeat(5,1fr); }
.partner-welcome + .summary-grid-six { grid-template-columns: repeat(6,1fr); }
.stat-card { min-height: 126px; padding: 20px; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.stat-card:after { content: ""; width: 55px; height: 55px; position: absolute; right: -22px; top: -22px; border: 11px solid currentColor; border-radius: 50%; opacity: .08; }
.stat-label { margin-bottom: 16px; color: #6e7b8e; font-size: 9px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.stat-card strong { display: block; color: var(--navy); font-size: clamp(20px,2vw,28px); }
.stat-card small { display: block; margin-top: 7px; color: var(--muted); font-size: 9px; }
.stat-navy { color: var(--navy); }.stat-blue { color: var(--blue); }.stat-teal { color: var(--teal); }.stat-amber { color: var(--amber); }.stat-green { color: var(--green); }.stat-purple { color: var(--purple); }
.dashboard-grid { display: grid; gap: 20px; margin-bottom: 20px; }
.two-one { grid-template-columns: 2fr 1fr; }
.one-one { grid-template-columns: 1fr 1fr; }
.panel { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 5px 20px rgba(0,23,57,.025); }
.panel-head { margin-bottom: 20px; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.panel-head.wrap { flex-wrap: wrap; align-items: center; }
.panel-head h2 { margin: 5px 0 0; color: var(--navy); font-size: 17px; }
.panel-head p { margin: 6px 0 0; color: var(--muted); font-size: 10px; }
.text-link,.close-link { color: var(--blue); font-size: 10px; font-weight: 750; }
.close-link { font-size: 23px; line-height: 1; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th { padding: 11px 12px; color: #77879c; background: #f7f9fc; border-bottom: 1px solid var(--line); text-align: left; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
td { padding: 14px 12px; border-bottom: 1px solid #edf1f6; color: #41516a; font-size: 10px; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td b { color: var(--navy); }
.table-sub { margin-top: 4px; display: block; color: #8492a4; font-size: 8px; white-space: normal; max-width: 190px; }
.empty-cell { padding: 45px 15px; color: var(--muted); text-align: center; }
.entity { display: flex; align-items: center; gap: 9px; }
.entity > span { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 32px; border-radius: 9px; color: var(--blue); background: var(--sky); font-size: 11px; font-weight: 800; }
.entity > div { display: flex; flex-direction: column; gap: 3px; }
.entity small { color: #8190a3; font-size: 8px; }
.meter { width: 70px; height: 5px; display: inline-block; vertical-align: middle; overflow: hidden; border: 0; border-radius: 999px; background: #e7edf4; appearance: none; }
.meter::-webkit-progress-bar { border-radius: inherit; background: #e7edf4; }
.meter::-webkit-progress-value { border-radius: inherit; background: linear-gradient(90deg,var(--blue),#39afea); }
.meter::-moz-progress-bar { border-radius: inherit; background: linear-gradient(90deg,var(--blue),#39afea); }
.qualify small { margin-left: 5px; color: var(--muted); font-size: 8px; }
.badge { padding: 5px 8px; border-radius: 999px; display: inline-flex; font-size: 8px; font-weight: 800; }
.badge-success { color: #087146; background: #def8ec; }.badge-warning { color: #9a630a; background: #fff3d5; }.badge-danger { color: #a52d36; background: #ffe7e9; }.badge-info { color: #145f9d; background: #e4f3ff; }
.level { padding: 5px 8px; border-radius: 7px; font-size: 8px; font-weight: 800; }.level-starter { color: #58677b; background: #edf1f5; }.level-growth { color: #0b6fa9; background: #dff3ff; }.level-premier { color: #735118; background: #fff0bf; }
.activity-list { display: grid; gap: 16px; }
.activity-item { display: flex; gap: 12px; }
.activity-dot { width: 9px; height: 9px; margin-top: 4px; flex: 0 0 9px; border: 2px solid #fff; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px #dceeff; }
.activity-item b { color: var(--navy); font-size: 10px; }
.activity-item p { margin: 3px 0; color: var(--muted); font-size: 9px; }
.activity-item small { color: #98a3b2; font-size: 8px; }
.policy-banner { margin-bottom: 20px; padding: 27px 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #fff; border-radius: var(--radius); background: linear-gradient(125deg,var(--navy),#07549a); }
.policy-banner h2 { margin: 7px 0 4px; font-size: 20px; }
.policy-banner p { margin: 0; color: #b8cce4; font-size: 10px; }
.page-actions { min-height: 48px; margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.page-actions p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 11px; }
.form-panel { margin-bottom: 20px; }
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-bar input { width: 230px; }.filter-bar select { width: 145px; }
.record-count { color: var(--muted); font-size: 9px; }
.row-actions { display: flex; gap: 8px; align-items: center; }
.row-actions form,.resource-card form { margin: 0; }
.row-actions a,.row-actions button,.copy-inline,.table-button,.danger-link { padding: 0; border: 0; background: transparent; color: var(--blue); cursor: pointer; font-size: 8px; font-weight: 750; }
.copy-inline { text-align: left; }.copy-inline.copied { color: var(--green); }
.danger-link,.row-actions .danger-link { color: var(--red); }
.table-button { padding: 6px 8px; border: 1px solid #cfe4f7; border-radius: 7px; background: #eef7ff; }
.inline-pay-form { min-width: 175px; display: flex; gap: 6px; }
.inline-pay-form input { min-height: 32px; padding: 6px 8px; font-size: 9px; }
.payment-history { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.payment-history h3 { color: var(--navy); font-size: 13px; }
.commission-rule-card dl,.partner-identity-card dl { margin: 18px 0; }
.bonus-reference { margin-top: 22px; padding: 14px; display: flex; gap: 8px; flex-wrap: wrap; border-radius: 10px; background: #f5f8fc; }
.bonus-reference b { width: 100%; margin-bottom: 3px; color: var(--navy); font-size: 9px; }
.bonus-reference span { padding: 6px 8px; border-radius: 7px; color: #735118; background: #fff0bf; font-size: 8px; font-weight: 750; }
.commission-rule-card dl div,.partner-identity-card dl div { padding: 11px 0; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); }
.commission-rule-card dt,.partner-identity-card dt { color: var(--muted); font-size: 10px; }
.commission-rule-card dd,.partner-identity-card dd { margin: 0; color: var(--navy); font-size: 11px; font-weight: 800; }
.info-callout,.warning-callout { margin-top: 22px; padding: 16px; display: flex; flex-direction: column; gap: 5px; border-radius: 10px; color: #225a83; background: #e9f5ff; }
.info-callout b,.warning-callout b { color: var(--navy); }
.info-callout span,.warning-callout span { font-size: 10px; line-height: 1.55; }
.warning-callout { color: #805d1d; background: #fff5d9; }
.resource-guidance ul { color: var(--muted); padding-left: 18px; line-height: 2; }
.resource-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.resource-card { min-height: 210px; padding: 23px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.resource-type { width: max-content; padding: 5px 8px; border-radius: 7px; color: var(--blue); background: var(--sky); font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.resource-card h3 { margin: 20px 0 8px; color: var(--navy); }
.resource-card p { flex: 1; color: var(--muted); font-size: 10px; line-height: 1.6; }
.resource-card > div { display: flex; align-items: center; justify-content: space-between; }
.empty-state { min-height: 180px; display: grid; place-items: center; align-content: center; gap: 8px; color: var(--muted); text-align: center; }
.empty-state b { color: var(--navy); }.empty-state.compact { min-height: 120px; }
.settings-shell { max-width: 1050px; }
.mfa-setup { color: var(--muted); font-size: 11px; line-height: 1.7; }
.mfa-setup h3 { color: var(--navy); }.mfa-setup ol { padding-left: 20px; }
.mfa-qr-card { max-width: 330px; margin: 18px 0; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: center; }
.mfa-qr-card img { width: 260px; max-width: 100%; height: auto; display: block; margin: 0 auto 12px; border-radius: 8px; }
.mfa-qr-card p { margin: 0; }.mfa-setup details { margin-top: 18px; }.mfa-setup summary { color: var(--blue); cursor: pointer; font-weight: 750; }
.secret-box { margin: 18px 0; padding: 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 10px; background: #f7fbff; }
.secret-box small { width: 100%; color: var(--muted); }.secret-box code { color: var(--navy); font-size: 15px; font-weight: 800; letter-spacing: .12em; word-break: break-all; }
.recovery-code-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 18px; }
.recovery-code-grid code { padding: 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--navy); background: #f7fbff; text-align: center; font-size: 14px; letter-spacing: .08em; }

.partner-welcome { margin-bottom: 18px; padding: 26px 30px; display: flex; justify-content: space-between; align-items: center; color: #fff; border-radius: var(--radius); background: radial-gradient(circle at 60% 50%,rgba(32,159,235,.28),transparent 30%),linear-gradient(125deg,var(--navy),#064b8f); }
.partner-welcome h2 { margin: 7px 0 4px; font-size: 25px; }.partner-welcome p { margin: 0; color: #bdd0e7; font-size: 10px; }
.partner-code { padding: 13px 17px; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; background: rgba(255,255,255,.08); }
.partner-code small,.partner-code strong { display: block; }.partner-code small { color: #b7cce5; font-size: 8px; }.partner-code strong { margin-top: 5px; font-size: 17px; }
.link-box { padding: 10px; display: flex; gap: 10px; border: 1px solid #d6e5f4; border-radius: 11px; background: #f7fbff; }
.link-box code { min-width: 0; padding: 11px; flex: 1; overflow: hidden; text-overflow: ellipsis; color: #3c536e; white-space: nowrap; }
.referral-meta { margin-top: 20px; display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.referral-meta span { padding: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 9px; font-size: 8px; }
.referral-meta b { display: block; margin-bottom: 4px; color: var(--navy); font-size: 10px; }
.qr-card { text-align: center; }.qr-card img { width: 150px; border-radius: 8px; }.qr-card h3 { margin: 12px 0 4px; color: var(--navy); }.qr-card p { color: var(--muted); font-size: 9px; }.qr-card a { color: var(--blue); font-size: 9px; font-weight: 750; }
.kpi-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 18px; }.kpi-row > div:first-child { display: flex; flex-direction: column; }.kpi-row b { color: var(--navy); font-size: 10px; }.kpi-row small { color: var(--muted); font-size: 8px; }.kpi-row strong { color: var(--amber); }.kpi-row strong.good { color: var(--green); }.kpi-row .meter { width: 100%; grid-column: 1/-1; }.kpi-note { margin: 0; padding: 12px; color: #7c621d; border-radius: 8px; background: #fff6da; font-size: 9px; line-height: 1.5; }
.policy-mini { margin-bottom: 20px; padding: 14px 18px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: #fff; font-size: 9px; }.policy-mini b { margin-right: auto; color: var(--navy); }.policy-mini span { padding: 6px 8px; border-radius: 7px; background: var(--sky); color: var(--blue); font-weight: 700; }
.payout-hero { margin-bottom: 20px; padding: 28px 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; color: #fff; border-radius: var(--radius); background: linear-gradient(125deg,var(--navy),#0756a4); }.payout-hero strong { display: block; margin: 9px 0; font-size: 40px; }.payout-hero p { color: #bed2e9; font-size: 9px; }.payout-hero > div:last-child { padding-left: 35px; border-left: 1px solid rgba(255,255,255,.16); display: flex; flex-direction: column; gap: 6px; }.payout-hero small { color: #a9c5e3; font-size: 8px; }.payout-hero b { font-size: 16px; }.payout-hero span { color: #d3e1f0; font-size: 10px; }.payout-hero a { margin-top: 5px; color: #7fd0ff; font-size: 9px; font-weight: 750; }
.partner-identity-card { text-align: center; }.partner-identity-card .avatar { margin: auto; }.partner-identity-card h2 { margin: 14px 0 8px; }.partner-identity-card dl { text-align: left; }.panel hr { margin: 24px 0; border: 0; border-top: 1px solid var(--line); }

@media (max-width: 1180px) {
    .partner-hero,.content-section,.standards-section,.commission-strip { margin-left: 25px; margin-right: 25px; }
    .who-section,.final-cta { margin-left: 25px; margin-right: 25px; }
    .summary-grid-six,.partner-welcome + .summary-grid-six { grid-template-columns: repeat(3,1fr); }
    .summary-grid { grid-template-columns: repeat(2,1fr); }
    .form-grid-3 { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 920px) {
    .public-nav nav > a:not(.btn) { display: none; }
    .partner-hero { grid-template-columns: 1fr; text-align: center; }
    .hero-copy > p { margin-left: auto; margin-right: auto; }.hero-actions,.hero-trust { justify-content: center; }
    .commission-strip { grid-template-columns: 1fr; }.commission-strip > div { border-right: 0; border-bottom: 1px solid var(--line); }
    .steps-grid { grid-template-columns: 1fr 1fr; }.who-section { grid-template-columns: 1fr; }.quality-card { grid-template-columns: 1fr; }
    .application-page { margin-left: 25px; margin-right: 25px; grid-template-columns: 1fr; }.application-intro { position: static; }
    .auth-shell { grid-template-columns: 1fr; }.auth-brand-panel { min-height: 380px; padding: 45px 9vw; }.auth-brand-panel > div { margin-top: 60px; }.auth-brand-panel h1 { font-size: 45px; }.auth-card { padding: 50px 0; }
    .install-shell { grid-template-columns: 1fr; }.install-intro { min-height: 450px; }.install-intro .brand { position: static; margin: 0 0 70px; }
    .sidebar { transform: translateX(-100%); transition: transform .25s; }.menu-open .sidebar { transform: translateX(0); }.dashboard-shell { margin-left: 0; }.menu-toggle { display: block; }.topbar { justify-content: flex-start; }.user-chip { margin-left: auto; }.sidebar-overlay { position: fixed; inset: 0; z-index: 20; background: rgba(0,15,35,.45); }.menu-open .sidebar-overlay { display: block; }
    .two-one,.one-one { grid-template-columns: 1fr; }.resource-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 640px) {
    .public-nav { height: 70px; padding: 0 16px; }.public-nav .btn { padding: 8px 10px; font-size: 10px; }
    .partner-hero { margin: 0; padding: 55px 18px 70px; border-radius: 0 0 24px 24px; }.hero-copy h1 { font-size: 45px; }.hero-copy > p { font-size: 14px; }.hero-actions { flex-direction: column; }.hero-visual { min-height: 390px; }.earning-panel { width: 300px; }.float-pill { display: none; }.earning-main strong { font-size: 35px; }.orbit-one { width: 350px; height: 350px; }
    .commission-strip { margin: -25px 16px 0; }.content-section,.standards-section { margin: 0 16px; padding: 80px 0; }.steps-grid { grid-template-columns: 1fr; }.who-section,.final-cta { margin-left: 16px; margin-right: 16px; padding: 45px 25px; }.quality-card li { grid-template-columns: 1fr; gap: 6px; }.public-footer { padding: 35px 20px; flex-direction: column; gap: 25px; text-align: center; }
    .application-page { margin: 20px 16px 70px; gap: 25px; }.application-intro h1 { font-size: 37px; }.application-card,.install-card { padding: 23px; }.form-grid,.form-grid-3 { grid-template-columns: 1fr; }.field-span-2 { grid-column: 1; }.check-card { grid-column: 1; }
    .auth-brand-panel { min-height: 330px; padding: 35px 25px; }.auth-brand-panel > div { margin-top: 40px; }.auth-brand-panel h1 { font-size: 38px; }.install-shell { padding: 20px 14px; gap: 20px; }.install-intro { min-height: 380px; padding: 35px 25px; }.install-intro h1 { font-size: 36px; }
    .topbar { min-height: 76px; padding: 14px 16px; }.topbar h1 { font-size: 18px; }.user-chip > span:last-child { display: none; }.dashboard-main { padding: 18px 14px 35px; }.dashboard-footer { padding: 16px; }.summary-grid,.summary-grid-six,.partner-welcome + .summary-grid-six { grid-template-columns: 1fr 1fr; }.stat-card { min-height: 115px; padding: 16px; }.stat-card strong { font-size: 21px; }.panel { padding: 16px; }.policy-banner,.page-actions,.partner-welcome { align-items: flex-start; flex-direction: column; }.partner-code { width: 100%; }.filter-bar { width: 100%; }.filter-bar input,.filter-bar select,.filter-bar .btn { width: 100%; }.form-actions { flex-direction: column-reverse; }.form-actions .btn { width: 100%; }.resource-grid { grid-template-columns: 1fr; }.referral-meta { grid-template-columns: 1fr; }.link-box { flex-direction: column; }.payout-hero { grid-template-columns: 1fr; }.payout-hero > div:last-child { padding: 20px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.16); }.policy-mini { overflow-x: auto; }.policy-mini b { min-width: 105px; }.public-body .alert { margin-left: 16px; margin-right: 16px; }
}

@media print {
    .sidebar,.topbar,.page-actions,.dashboard-footer,.btn,.row-actions,.filter-bar { display: none !important; }
    .dashboard-shell { margin: 0; }.dashboard-main { padding: 0; }.panel { box-shadow: none; break-inside: avoid; }
}
