.affiliate-workspace main{max-width:1240px;padding-bottom:44px}.overview-link{font-size:11px;color:var(--muted);margin:28px 10px 38px}.nav-label{font-size:9px;margin:0 12px 12px;letter-spacing:1.5px}.nav-item{display:flex;align-items:center;gap:11px;text-align:left;width:100%;padding:13px 12px;background:transparent;color:#526b7c;font-size:12px;font-weight:500}.nav-item span{font-size:19px;line-height:1;width:20px;color:#617e91}.nav-item:hover{background:#e1edf5}.nav-item.active{background:#fff;color:var(--brand);box-shadow:0 2px 4px #193f5c08}.affiliate-workspace .page-title{align-items:center}.affiliate-workspace .page-title h1{font-size:32px}.affiliate-workspace .page-title p{max-width:650px}.affiliate-workspace .page-title .primary{white-space:nowrap;font-size:12px}.affiliate-toolbar{display:flex;align-items:center;gap:12px;margin:24px 0 18px}.affiliate-toolbar label{margin:0;flex:1;max-width:360px}.affiliate-toolbar input{width:100%;font-size:12px}.record-count{font-size:11px;color:var(--muted)}.affiliate-workspace .table-wrap{background:#fff;border:1px solid var(--line);border-radius:16px}.affiliate-workspace .data-table th{padding:16px}.affiliate-workspace .data-table td{padding:20px 16px;font-size:12px}.partner-name{font-size:13px;color:var(--ink);font-weight:600;background:transparent;padding:0;display:block;text-align:left}.partner-email{display:block;font-size:11px;color:var(--muted);margin-top:6px}.status-badge{display:inline-flex;border-radius:20px;padding:5px 9px;background:#edf3f7;color:#526b7c;font-size:10px;text-transform:capitalize}.status-badge.active{background:#e9f3ec;color:#3f7153}.status-badge.invited{background:#eaf1f7;color:#426b89}.status-badge.suspended,.status-badge.terminated{background:#f8eee8;color:#8a5743}.empty-state{background:#fff;border:1px solid var(--line);border-radius:20px;padding:64px 30px;text-align:center}.empty-state h2{font-size:24px;font-weight:550;margin:16px 0 10px}.empty-state p{max-width:450px;margin:0 auto 24px;font-size:13px;color:var(--muted);line-height:1.7}.empty-icon{width:56px;height:56px;border-radius:16px;background:#edf5fa;color:var(--brand);display:grid;place-items:center;margin:auto;font-size:30px}.wizard{max-width:900px}.wizard-progress{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;list-style:none;padding:0;margin:26px 0}.wizard-progress li{border-top:3px solid #dce6ed;padding-top:13px;color:#738a98;font-size:11px;display:flex;align-items:center;gap:8px}.wizard-progress li.current{border-color:var(--brand);color:var(--brand);font-weight:600}.wizard-progress li.complete{border-color:#75a28b;color:#4e7962}.step-number{width:22px;height:22px;border-radius:50%;background:#e5edf3;display:inline-grid;place-items:center;font-size:10px}.current .step-number{background:var(--brand);color:#fff}.complete .step-number{background:#e5f1e9;color:#426e53}.wizard-panel{padding:30px;background:#fff;border:1px solid var(--line);border-radius:20px;min-height:310px}.wizard-panel h2{font-size:23px;font-weight:550;margin-bottom:9px}.section-description{font-size:12px;line-height:1.7;color:var(--muted);margin:0 0 25px;max-width:630px}.affiliate-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.affiliate-workspace label{display:block;font-size:12px;font-weight:550;color:#365364;margin:0}.affiliate-workspace label input,.affiliate-workspace label textarea,.affiliate-workspace label select{margin-top:9px}.affiliate-workspace input,.affiliate-workspace select,.affiliate-workspace textarea{display:block;width:100%;box-sizing:border-box;padding:12px 13px;border:1px solid #c7d5df;border-radius:10px;background:#fff;color:var(--ink);font:13px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.45;min-height:43px}.affiliate-workspace textarea{min-height:95px;resize:vertical}.affiliate-workspace input:focus,.affiliate-workspace textarea:focus,.affiliate-workspace select:focus{outline:2px solid #76a0bb55;outline-offset:1px;border-color:#668fa9}.field-hint{display:block;font-size:11px;color:#6b8190;line-height:1.6;margin-top:7px;font-weight:400}.optional-details{margin:28px 0 0;border-top:1px solid #e7eef3;padding-top:20px}.optional-details summary{cursor:pointer;font-size:12px;font-weight:550;color:#526b7c}.optional-details[open] summary{margin-bottom:22px}.optional-details .affiliate-grid{row-gap:20px}.full-width{grid-column:1/-1}.wizard-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:24px}.wizard-footer .primary,.wizard-footer .secondary{font-size:12px;padding:13px 20px}.wizard-footer .quiet{font-size:12px}.wizard-note{font-size:11px;color:#607b8e;line-height:1.7;margin-top:17px}.offer-preview{display:flex;gap:22px;border:1px solid #dce8ef;background:#f5f9fc;padding:22px;border-radius:13px;margin-top:24px}.offer-preview div{flex:1}.offer-preview small{font-size:10px;color:var(--muted);display:block;margin-bottom:9px}.offer-preview strong{font-size:22px;letter-spacing:-.5px;font-weight:550}.offer-preview p{font-size:11px;color:var(--muted);line-height:1.6;margin:8px 0 0}.review-list{display:grid;grid-template-columns:1fr 1fr;gap:0 28px;margin:5px 0 24px}.review-item{border-bottom:1px solid #e7eef3;padding:16px 0}.review-item dt{font-size:10px;color:var(--muted);margin-bottom:7px}.review-item dd{margin:0;font-size:13px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.notice{border:1px solid #cadce7;background:#f1f7fb;border-radius:12px;padding:17px 19px;font-size:12px;line-height:1.7;color:#426075;margin:22px 0}.notice.warn{background:#fcf7ed;border-color:#ecdfc6;color:#795f36}.notice strong{font-weight:650}.notice p:last-child{margin:0}.notice button{margin-top:12px;font-size:11px}.affiliate-workspace .check-field{display:flex;gap:10px;align-items:flex-start;font-size:12px;line-height:1.7}.check-field input{width:16px;min-height:16px;margin:3px 0 0;accent-color:var(--brand)}.onboarding-card{margin:22px 0 30px;background:white;border:1px solid var(--line);border-radius:18px;padding:24px}.onboarding-card>h2{font-size:18px;margin-bottom:7px}.onboarding-card>p{font-size:12px;color:var(--muted);line-height:1.6}.onboarding-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin-top:22px}.onboarding-step{padding:0 18px 0 0;border-right:1px solid var(--line)}.onboarding-step:last-child{border:0;padding-right:0}.onboarding-step h3{font-size:13px;line-height:1.5;margin:11px 0 8px}.onboarding-step p{font-size:11px;line-height:1.7;color:var(--muted);margin-bottom:14px}.onboarding-step button{font-size:11px}.onboarding-step .step-number{width:26px;height:26px}.onboarding-step.complete .step-number{background:#e5f1e9;color:#426e53}.affiliate-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin:20px 0}.affiliate-actions button{font-size:11px}.affiliate-stats{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin:24px 0}.affiliate-stats>div{background:#fff;border:1px solid var(--line);border-radius:14px;padding:17px;font-size:10px;color:var(--muted)}.affiliate-stats strong{font-size:22px;font-weight:550;letter-spacing:-.5px;color:var(--ink);display:block;margin-top:12px}.affiliate-card{padding:26px;margin:22px 0}.affiliate-card h2{margin-bottom:8px}.affiliate-card .affiliate-grid{margin:22px 0}.affiliate-card>button{margin-top:20px}.affiliate-workspace main>h2{margin:30px 0 14px}.affiliate-workspace .settings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.agreement-text{min-height:260px!important;font-family:inherit!important}.agreement-history{padding:20px;margin:18px 0;background:white;border:1px solid var(--line);border-radius:14px}.agreement-history summary{font-size:12px;cursor:pointer;font-weight:600}.agreement-history pre{margin-top:20px;font-size:11px;line-height:1.8}.affiliate-workspace pre{white-space:pre-wrap;overflow-wrap:anywhere}.affiliate-workspace dialog{width:min(440px,calc(100% - 32px));max-width:none;padding:28px;border-radius:20px;border:1px solid #fff;box-shadow:0 25px 100px #193f5c25}.affiliate-workspace dialog h2{font-size:25px;margin:0 0 12px}.affiliate-workspace dialog label{margin-top:18px}.affiliate-workspace dialog p{font-size:12px}.dialog-actions{display:flex;gap:10px;margin-top:24px}.dialog-actions button{font-size:12px;padding:12px 18px}.affiliate-workspace button:disabled{cursor:not-allowed;opacity:.5}#affiliate-status{position:fixed;bottom:24px;right:24px;background:#214d68;color:white;padding:15px 20px;border-radius:12px;max-width:480px;font-size:12px;line-height:1.6;box-shadow:0 8px 30px #16466a25;z-index:100}#affiliate-status.error{background:#80503d}.success-card{max-width:700px;background:#fff;border:1px solid var(--line);border-radius:22px;padding:38px}.success-card h1{font-size:30px;margin:20px 0 13px}.success-card p{font-size:13px;color:var(--muted);line-height:1.8}.success-card .primary{font-size:12px;margin-top:15px}.success-mark{width:48px;height:48px;background:#e8f3eb;color:#4e7962;border-radius:50%;display:grid;place-items:center;font-size:23px}.error-banner{border:1px solid #e8d9c8;background:#fcf7ed;color:#795b21;border-radius:12px;padding:17px;font-size:12px;line-height:1.7;margin:18px 0}.profile-contact{display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:12px;color:var(--muted)}
@media(max-width:1100px){.affiliate-stats{grid-template-columns:repeat(3,1fr)}.affiliate-workspace .settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.overview-link,.nav-label{display:none}.affiliate-workspace nav{margin-top:20px}.nav-item{width:auto;white-space:nowrap;padding:11px;font-size:11px}.nav-item span{display:none}.affiliate-workspace .page-title{align-items:flex-start}.affiliate-workspace .page-title h1{font-size:28px}.affiliate-workspace .page-title .primary{font-size:11px}.wizard-panel{padding:22px}.wizard-progress{gap:7px}.wizard-progress li{display:block;font-size:10px;line-height:1.7}.wizard-progress .step-number{display:none}.affiliate-grid,.review-list,.onboarding-steps{grid-template-columns:1fr}.onboarding-step{border-right:0;border-bottom:1px solid var(--line);padding:0 0 18px}.onboarding-step:last-child{border:0}.affiliate-workspace .settings-grid{grid-template-columns:1fr}.offer-preview{display:block}.offer-preview div+div{margin-top:22px}.affiliate-stats{grid-template-columns:repeat(2,1fr)}.affiliate-workspace dialog{padding:24px}.success-card{padding:28px}.affiliate-workspace .workspace-footer{display:block;font-size:9px;line-height:1.9}}

.affiliate-workspace .wizard-heading{max-width:900px}

/* Deliberate destructive action, separated from ordinary edits. */
.affiliate-workspace button.danger{background:transparent;border:1px solid #bd6d66;color:#9e3028}.affiliate-workspace button.danger:hover{background:#fff1ef}.status-badge.deleted{background:#edf0f2;color:#63717a}

.profile-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}

/* Shared Studio finish and clear payment-review layouts. */
.affiliate-workspace .page-title h1{font:400 clamp(32px,3.2vw,41px)/1.15 Georgia,serif;letter-spacing:-1.1px}.wizard-panel h2,.affiliate-card>h2,.onboarding-card>h2,.empty-state h2{font:26px/1.25 Georgia,serif;letter-spacing:-.4px}.affiliate-workspace .page-title{gap:24px;flex-wrap:wrap}.affiliate-toolbar{flex-wrap:wrap}.affiliate-toolbar>label:first-child{min-width:200px}.affiliate-toolbar .check-field{flex:0 1 auto;max-width:none;align-items:center;margin-left:auto}.affiliate-toolbar .check-field input{flex:0 0 16px;width:16px}.affiliate-toolbar .record-count{flex-shrink:0}.affiliate-workspace .side-bottom{border-top:1px solid #dce6ed;padding:20px 0 0}.search-empty{padding:40px 25px}.payment-controls{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.payment-controls button{font-size:12px}.payout-batch{margin:24px 0;padding:28px;border-radius:20px}.batch-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.batch-heading h2{font-size:32px;font-weight:450;letter-spacing:-.8px;margin:13px 0 9px}.batch-heading .eyebrow{font-size:9px}.batch-heading .section-description{margin:0}.batch-heading>button{font-size:11px;flex-shrink:0}.payout-batch .table-wrap{border:0;border-top:1px solid #e1eaf1;border-radius:0}.payment-summary .review-list{margin:0}.payment-summary .notice{margin-bottom:0}.payment-state .affiliate-grid{margin:24px 0}.payment-state .primary{font-size:12px}.affiliate-workspace .erasure-card{background:#f9fafb;border-color:#e1e6ea;margin-top:35px}.erasure-card h2{font:21px/1.4 Georgia,serif}.erasure-card .section-description{margin-bottom:12px}.status-badge.Confirmed{background:#e9f3ec;color:#3f7153}.agreement-history .programme-terms{font:13px/1.9 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;max-height:450px;overflow:auto;padding:24px;margin-top:18px;background:#f5f9fc;border-radius:12px;overflow-wrap:anywhere}.agreement-history .programme-terms h3{font:26px/1.3 Georgia,serif}.agreement-history .programme-terms p{margin-bottom:18px}.agreement-history .programme-terms strong{font-weight:650}.agreement-history summary{line-height:1.8}.profile-actions button{font-size:11px}.affiliate-workspace .data-table .quiet{min-height:30px}.affiliate-workspace .wizard-panel .notice{margin-bottom:0}.affiliate-workspace dialog{max-height:calc(100dvh - 32px);overflow:auto}.affiliate-workspace #affiliate-status{max-width:calc(100vw - 48px)}
@media(max-width:800px){.affiliate-workspace .overview-link{display:block;margin:18px 0 0;font-size:11px}.affiliate-workspace .page-title h1{font-size:33px}.affiliate-workspace .page-title .payment-controls{width:100%}.payment-controls .primary{max-width:100%;white-space:normal!important}.affiliate-toolbar .check-field{margin-left:0}.affiliate-toolbar>label:first-child{flex-basis:100%;max-width:none}.payout-batch{padding:23px 20px}.batch-heading{align-items:flex-start;flex-direction:column;gap:15px}.batch-heading h2{font-size:30px}.review-list{gap:0}.affiliate-workspace .overview-link+.nav-label{display:none}.affiliate-workspace .settings-grid input,.affiliate-workspace .affiliate-grid input,.affiliate-workspace .affiliate-grid select,.affiliate-workspace .affiliate-grid textarea{font-size:16px}.affiliate-workspace .page-title>.primary{white-space:normal}.wizard-panel h2{font-size:25px}.affiliate-workspace .nav-item{min-height:40px}}
