.agent-page{display:grid;gap:22px;padding-block:24px}.agent-hero{padding:clamp(24px,4vw,56px);background:#edf5ef;border-radius:24px}.agent-eyebrow{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:#47775b}.agent-hero h1{max-width:850px;margin:12px 0 18px}.agent-hero p{max-width:760px;line-height:1.8}.agent-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-top:20px}.agent-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.agent-card{border:1px solid #dce8e1;border-radius:16px;padding:22px;min-width:0;background:#fff}.agent-card h2,.agent-card h3{margin-top:0}.agent-card p{line-height:1.65}.agent-card .metric{font-size:28px;font-weight:700;display:block;margin-top:8px}.agent-form{display:grid;gap:14px;max-width:720px}.agent-form p{margin:0;display:grid;gap:6px}.agent-form input:not([type=checkbox]):not([type=hidden]),.agent-form select,.agent-form textarea{width:100%;box-sizing:border-box}.agent-form .helptext,.agent-muted{font-size:12px;color:#71838b}.agent-form ul.errorlist{color:#a43535;margin:0;padding-left:20px}.agent-terms details{border-bottom:1px solid #dce8e1;padding:18px 0}.agent-terms summary{font-size:17px;font-weight:600;cursor:pointer}.agent-terms p{line-height:1.8;max-width:1050px}.agent-scroll{overflow:auto;max-width:100%}.agent-table{border-collapse:collapse;width:100%;font-size:14px}.agent-table th,.agent-table td{text-align:left;padding:13px 12px;border:0}.agent-table th{background:#eef5f0;font-weight:600}.agent-table tbody tr:nth-child(even){background:#f7faf8}.agent-table td{vertical-align:top}.agent-table small{display:block;color:#6a7f75}.agent-link{display:block;overflow-wrap:anywhere;background:#f2f7f4;padding:14px;border-radius:10px}.agent-tabs{display:flex;gap:12px;flex-wrap:wrap;margin:16px 0}.agent-tabs a{padding:9px 14px;border-radius:10px;background:#edf5ef}.agent-notice{background:#fff5df;padding:16px;border-radius:12px}.agent-split{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.agent-card details>summary{cursor:pointer;padding:8px 0;font-weight:600}.agent-card form{margin-top:12px}.agent-card code{font-size:22px;overflow-wrap:anywhere}.agent-danger{color:#a43535}.agent-page h1{margin-bottom:8px}@media(max-width:760px){.agent-grid,.agent-split{grid-template-columns:1fr}.agent-card{padding:16px}.agent-table{min-width:580px}.agent-hero{border-radius:16px}.agent-page{padding-block:14px}}

.agent-actions .button.agent-danger{background:#fff1ee;color:#9a3f33;border:1px solid #edd0c8}

@media(max-width:760px){.site-header .site-nav{gap:10px 14px;justify-content:flex-start;flex-wrap:wrap}}

/* Compact, accessible controls use real checkboxes and native form validation. */
.agent-form input[type=checkbox]{appearance:none;-webkit-appearance:none;position:relative;width:40px!important;height:24px!important;min-width:40px;min-height:24px;border:1px solid #c7d6ce;border-radius:20px;background:#dce6e0;margin:0;cursor:pointer;padding:0;box-sizing:border-box;vertical-align:middle}
.agent-form input[type=checkbox]::before{content:'';position:absolute;width:18px;height:18px;left:2px;top:2px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #173f2626;transition:transform .15s}
.agent-form input[type=checkbox]:checked{background:#46765b;border-color:#46765b}
.agent-form input[type=checkbox]:checked::before{transform:translateX(16px)}
.agent-form p:has(>input[type=checkbox]){grid-template-columns:40px minmax(0,1fr);column-gap:12px;align-items:start}
.agent-form p:has(>input[type=checkbox])>label{grid-column:2;grid-row:1}
.agent-form p:has(>input[type=checkbox])>input{grid-column:1;grid-row:1}
.agent-form label:has(>input[type=checkbox]){display:flex;gap:12px;align-items:flex-start}
.agent-form .enhanced-select{margin:0}.agent-form input:not([type=checkbox]):not([type=hidden]),.agent-form .select-trigger{min-height:40px;padding:9px 12px;margin:0}.agent-form label{font-size:13px}.agent-card h2{font-size:21px}.agent-card h3{font-size:17px}
.agent-registration-form{max-width:none;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px}
.agent-registration-form>p:has(input[type=checkbox]),.agent-registration-form>p:not(:has(input)),.agent-registration-form>ul.errorlist,.agent-registration-form>button{grid-column:1/-1}
.agent-registration-form>button{justify-self:start;min-width:220px}
.agent-registration-form .helptext{font-size:12px}.agent-registration-form ul{padding-left:18px;margin:0}
@media(max-width:760px){.agent-registration-form{grid-template-columns:minmax(0,1fr)}.agent-form input[type=checkbox]{margin-top:2px}.agent-card .metric{font-size:25px}}

.agent-field{display:grid;gap:6px;align-content:start;min-width:0}.agent-registration-form .agent-check{grid-column:1/-1;grid-template-columns:40px minmax(0,1fr);column-gap:12px}.agent-check .errorlist{grid-column:1/-1}.agent-registration-form .agent-field input:not([type=checkbox]){min-width:0}

.agent-form label{margin:0}.agent-page>div:not(.agent-hero)>h1,.agent-page>h1{font-size:clamp(28px,3vw,38px);line-height:1.2}.agent-page>div:not(.agent-hero)>p{margin:10px 0 0}.agent-card .agent-form{margin-top:12px}

.agent-rate-filters,.agent-rate-bulk{display:grid;grid-template-columns:minmax(180px,2fr) minmax(140px,1fr) auto auto;gap:14px;align-items:end;margin:16px 0}.agent-rate-bulk{grid-template-columns:minmax(200px,1fr) 140px auto;background:#f3f8f5;padding:14px;border-radius:12px}.agent-rate-filters label{margin:0;font-size:12px}.agent-rate-filters input,.agent-rate-filters select{width:100%;box-sizing:border-box;min-height:40px;margin:6px 0 0}.agent-rate-pagination{display:flex;gap:20px;justify-content:center;align-items:center;margin-top:18px;font-size:13px}.agent-rate-bulk .helptext{font-size:12px}@media(max-width:760px){.agent-rate-filters,.agent-rate-bulk{grid-template-columns:minmax(0,1fr)}.agent-rate-pagination{gap:10px}}

.agent-profile{gap:14px;padding-block:16px}.agent-profile h1{font-size:28px;margin:4px 0 8px}.agent-profile .agent-card{padding:16px 18px;border-radius:12px}.agent-profile .agent-card h2{font-size:17px;margin:0 0 10px}.agent-profile p{font-size:13px;line-height:1.5;margin:8px 0}.agent-profile .agent-grid,.agent-profile .agent-split{gap:14px}.agent-profile .metric{font-size:25px;margin:8px 0 0}.agent-profile .agent-form{max-width:none;gap:10px}.agent-profile .agent-form button{width:auto;justify-self:start;min-height:38px;padding:9px 16px;font-size:13px}.agent-profile .agent-decision{display:grid;grid-template-columns:auto minmax(200px,1fr);gap:10px 18px;align-items:start}.agent-decision h2,.agent-decision>p{grid-column:1/-1}.agent-profile .agent-decision>form{margin:0}.agent-profile .agent-decision>details{margin:0;max-width:560px}.agent-profile .agent-decision summary{padding:8px 14px;border-radius:8px;background:#f7f0ee;color:#994a3c}.agent-profile .agent-decision textarea{min-height:70px;height:70px;margin:5px 0 0}.agent-profile .agent-table td,.agent-profile .agent-table th{padding:10px 12px}.agent-profile .agent-decision button[value=reject]{background:#944d43}.agent-profile>details>summary{font-size:13px}@media(max-width:760px){.agent-profile .agent-decision{grid-template-columns:minmax(0,1fr)}.agent-profile h1{font-size:24px}}

.agent-page #rates>.agent-form,.agent-terms-editor>.agent-form{max-width:none;min-width:0}.agent-terms-editor>.agent-form>button{justify-self:start}.agent-terms-editor .agent-card{padding:14px 18px}.agent-terms-editor h1{font-size:28px}.agent-terms-editor details summary{cursor:pointer;font-weight:600}.agent-rate-bulk>div{min-width:0}

/* Keep application actions aligned and rejection details on their own row. */
.agent-page.agent-profile .agent-decision{display:block}
.agent-profile .agent-decision-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:14px}
.agent-profile .agent-decision-actions form{margin:0;padding:0;width:auto}
.agent-profile .agent-decision-actions button{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:112px;height:38px;margin:0;padding:8px 18px;font-size:13px;border:1px solid transparent;border-radius:8px}
.agent-profile .agent-decision-actions .agent-reject-toggle{background:#f7eeec;color:#994a3c;border-color:#ecd6d1}
.agent-profile .agent-rejection-form{margin:16px 0 0;padding-top:14px;border-top:1px solid #e2e8ed;max-width:none;width:100%;gap:8px}
.agent-profile .agent-rejection-form[hidden]{display:none!important}
.agent-profile .agent-rejection-form textarea{box-sizing:border-box;width:100%;height:80px;min-height:80px;margin:0}
.agent-page.agent-profile>details.agent-card{margin:0;padding:12px 18px}
.agent-page.agent-profile>details.agent-card>summary{margin:0;padding:8px 0;background:transparent;border:0}

.login-registration-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}.login-registration-actions>.button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;white-space:normal;text-align:center}@media(max-width:640px){.login-registration-actions{flex-direction:column}.login-registration-actions>.button{width:100%;box-sizing:border-box}}
