/* Shared panel polish. Every selector stays within Refmora. */
/* The Free overview date filter also supplies the optional add-on report range. */
.refm-admin .refm-overview-title{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:24px;align-items:start}
.refm-admin .refm-overview-title>.refm-eyebrow,.refm-admin .refm-overview-title>h2,.refm-admin .refm-overview-title>p{grid-column:1}
.refm-admin .refm-range-control{grid-column:2;grid-row:1/4;align-self:center;margin:0;min-width:220px}
.refm-admin .refm-range-control label{display:block;margin-bottom:5px;color:var(--refm-ink);font-size:12px;font-weight:600}
.refm-admin .refm-range-control>div{display:flex;align-items:center;gap:8px}
.refm-admin .refm-range-control select{width:100%;min-width:0;min-height:40px;border:1px solid var(--refm-border);border-radius:8px;background-color:var(--refm-surface);color:var(--refm-ink);font-size:12px}
.refm-admin .refm-range-control select:focus-visible{outline:2px solid var(--refm-accent);outline-offset:2px}
.refm-admin .refm-range-control .refm-primary{min-height:var(--refm-field-height,43px);font-size:12px}
.refm-admin .refm-range-control small{display:block;margin-top:5px;font-size:11px;color:var(--refm-muted);text-align:right}
.refm-admin .refm-overview-title>.refm-range-notice{grid-column:1/-1;margin-top:12px;color:#996000}
.refm-admin .refm-report-note{margin:0 0 22px;font-size:11px;color:var(--refm-muted)}
@media(max-width:782px){.refm-admin .refm-overview-title{grid-template-columns:1fr}.refm-admin .refm-range-control{grid-column:1;grid-row:auto;justify-self:start;margin-top:12px;max-width:100%;min-width:0}.refm-admin .refm-range-control small{text-align:left}}
.refm{--refm-canvas:#f5f7fa;--refm-soft:#f8fafb;--refm-radius:12px;--refm-surface:#fff;--refm-highlight:#eef5ff;line-height:1.65}.refm *{box-sizing:border-box}.refm .refm-icon{display:inline-block;flex-shrink:0;vertical-align:middle}.refm .refm-eyebrow{font-size:10px;letter-spacing:1.6px}.refm .refm-heading{margin:0 0 24px}.refm .refm-heading h2{font-size:28px;letter-spacing:-.8px;margin:4px 0 8px}.refm .refm-heading p{font-size:13px;max-width:650px}.refm .refm-card{padding:24px;border-color:var(--refm-border);box-shadow:0 3px 16px #172b3805;margin-bottom:18px}.refm .refm-card h2,.refm .refm-card h3{display:flex;align-items:center;gap:10px;letter-spacing:-.2px;font-size:17px;line-height:1.4}.refm .refm-card h2>.refm-icon,.refm .refm-history h3>.refm-icon{color:var(--refm-accent);width:19px;height:19px}.refm .refm-card p{color:var(--refm-muted)}
.refm .refm-primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:8px 14px;border:1px solid var(--refm-accent);border-radius:8px;font-size:13px;line-height:1.4;text-decoration:none;box-shadow:none;font-weight:600;white-space:normal}.refm .refm-primary:hover{filter:brightness(.95)}.refm .refm-primary:disabled{filter:none}.refm .refm-primary>.refm-icon{width:17px;height:17px}.refm .refm-muted{font-size:12px}.refm input[type=checkbox]{accent-color:var(--refm-accent)}.refm .refm-field input,.refm .refm-field select,.refm .refm-withdraw select,.refm .refm-withdraw textarea,.refm .refm-copy input,.refm .refm-method-row input[type=text],.refm .refm-method-row textarea{border-color:var(--refm-border);border-radius:8px;background:var(--refm-surface);font-size:13px;min-height:43px;transition:border-color .15s}.refm .refm-field input:focus,.refm .refm-field select:focus,.refm .refm-copy input:focus,.refm .refm-withdraw textarea:focus{border-color:var(--refm-accent);box-shadow:0 0 0 3px #0066ff0d}.refm .refm-form-grid{gap:14px 24px}.refm .refm-field>label,.refm .refm-withdraw>label{font-size:12px;color:var(--refm-ink);font-weight:600}.refm .refm-field{margin-bottom:2px;min-width:0}.refm .refm-field p{font-size:11px;line-height:1.65}.refm .refm-copy{align-items:stretch;gap:8px;min-width:0}.refm .refm-copy input{flex:1 1 160px;width:auto;font-size:12px}.refm .refm-copy .refm-primary{flex:0 0 auto}.refm .refm-toggle{font-size:12px;padding:10px 12px;border:1px solid var(--refm-border);border-radius:8px;background:var(--refm-soft);width:fit-content}.refm .refm-method-row{background:var(--refm-soft);border-radius:10px}.refm .refm-method-top{gap:12px}.refm .refm-method-row label{font-size:12px}.refm .refm-actions{flex-wrap:wrap}.refm .refm-actions .refm-primary{min-height:34px;padding:6px 10px;font-size:12px}
.refm-admin{max-width:1480px;margin:20px 24px 0 4px;background:var(--refm-canvas);border:1px solid var(--refm-border);border-radius:16px;overflow:visible}.refm-admin .refm-admin-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 24px;border-bottom:1px solid var(--refm-border);background:var(--refm-surface);border-radius:16px 16px 0 0}.refm-admin .refm-brand{display:flex;align-items:center;gap:12px}.refm-admin .refm-brand-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:44px;height:44px}.refm-admin .refm-brand-icon img{display:block;width:100%;height:100%;object-fit:contain}.refm-admin .refm-brand h1{margin:0;padding:0;font-size:22px;font-weight:700;letter-spacing:-.6px;color:var(--refm-ink);line-height:1.4}.refm-admin .refm-version{font-size:10px;padding:3px 7px;background:var(--refm-soft)}.refm-admin .refm-header-actions{display:flex;align-items:center;gap:16px}.refm .refm-program-state{display:inline-flex;align-items:center;gap:7px;font-size:11px;color:var(--refm-muted);white-space:nowrap}.refm .refm-program-state>span{width:7px;height:7px;border-radius:50%;background:#a1acb8}.refm .refm-program-state.is-active>span{background:var(--refm-accent)}.refm-admin .refm-admin-layout{display:grid;grid-template-columns:200px minmax(0,1fr)}.refm-admin .refm-sidebar{padding:25px 14px;border-right:1px solid var(--refm-border);background:var(--refm-surface);border-radius:0 0 0 16px}.refm-admin .refm-sidebar>.refm-eyebrow{margin:0 10px 16px;font-size:9px;color:var(--refm-muted)}.refm-admin .refm-tabs{display:flex;flex-direction:column;gap:5px;border:0;margin:0;overflow:visible}.refm-admin .refm-tabs a{display:flex;align-items:center;gap:11px;padding:11px 12px;border:0;border-radius:8px;font-size:12px;line-height:1.4;color:var(--refm-muted)}.refm-admin .refm-tabs a svg{width:18px;height:18px}.refm-admin .refm-tabs a:hover{background:var(--refm-soft);color:var(--refm-ink)}.refm-admin .refm-tabs a.is-active{background:var(--refm-highlight);color:var(--refm-accent)}.refm-admin .refm-sidebar-note{margin:35px 10px 0;padding-top:20px;border-top:1px solid var(--refm-border);color:var(--refm-muted);font-size:11px}.refm-admin .refm-sidebar-note>.refm-icon{display:block;margin-bottom:10px;color:var(--refm-accent)}.refm-admin .refm-sidebar-note strong{display:block;color:var(--refm-ink);font-size:11px}.refm-admin .refm-sidebar-note p{margin:6px 0}.refm-admin .refm-main{min-width:0;padding:28px}.refm-admin .refm-footer{text-align:center;margin:0;padding:10px 0 0}.refm .refm-section-nav{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 18px}.refm .refm-section-nav a{font-size:11px;font-weight:600;padding:6px 11px;background:var(--refm-surface);border:1px solid var(--refm-border);border-radius:20px;text-decoration:none;color:var(--refm-muted)}.refm .refm-section-nav a:hover{color:var(--refm-accent);border-color:var(--refm-accent)}.refm .refm-settings .refm-card{scroll-margin-top:50px}.refm .refm-settings>.refm-card>h2{padding-bottom:15px;margin-bottom:18px}.refm .refm-save-bar{position:sticky;bottom:16px;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;background:var(--refm-surface);border:1px solid var(--refm-border);border-radius:12px;box-shadow:0 8px 24px #172b3810;margin-top:18px}.refm .refm-save-state{font-size:11px;color:var(--refm-muted)}.refm .refm-save-state.is-dirty{color:var(--refm-accent);font-weight:600}.refm .refm-email-template{padding:0;overflow:hidden}.refm .refm-email-template>summary{display:flex;align-items:center;gap:12px;padding:18px 20px;list-style:none;cursor:pointer;color:var(--refm-ink);font-weight:600;font-size:13px}.refm .refm-email-template>summary::-webkit-details-marker{display:none}.refm .refm-email-template>summary:after{content:'+';margin-left:auto;color:var(--refm-muted);font-size:19px}.refm .refm-email-template[open]>summary:after{content:'−'}.refm .refm-template-editor{padding:0 20px 20px}.refm .refm-template-editor .refm-field{margin:16px 0}.refm .refm-template-editor>label{display:block;font-size:12px;font-weight:600;margin-bottom:8px}.refm .refm-channel{font-size:12px;cursor:pointer;transition:border-color .15s}.refm .refm-channel:has(input:checked){border-color:var(--refm-accent);background:var(--refm-highlight)}.refm .refm-field input[type=color]{width:100%;height:48px;padding:5px;cursor:pointer}.refm .refm-design-preview{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px;border:1px solid var(--refm-border);border-radius:var(--refm-radius);background:var(--refm-surface);margin-top:20px;color:var(--refm-ink)}.refm .refm-design-preview strong{font-size:18px}.refm .refm-design-preview small{display:block;color:var(--refm-muted);font-size:11px}.refm .refm-design-sample{padding:9px 14px;background:var(--refm-accent);color:#fff;border-radius:8px;font-size:12px;font-weight:600}
.refm .refm-metrics{gap:12px;margin-bottom:14px}.refm .refm-metric{padding:19px;min-width:0;box-shadow:0 2px 12px #172b3803}.refm .refm-metric-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.refm .refm-metric-top>span:first-child{font-size:11px;font-weight:600;color:var(--refm-muted)}.refm .refm-icon-tile{display:inline-flex;align-items:center;justify-content:center;background:var(--refm-highlight);color:var(--refm-accent);width:36px;height:36px;border-radius:10px;flex-shrink:0}.refm .refm-icon-tile .refm-icon{width:18px;height:18px}.refm .refm-metric>strong{font-size:24px;letter-spacing:-.5px}.refm .refm-metric>small{display:block;font-size:10px;color:var(--refm-muted);margin-top:8px}.refm .refm-referral-metrics{gap:12px;margin-bottom:14px}.refm .refm-referral-metrics .refm-metric{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 19px}.refm .refm-referral-metrics .refm-metric-top{margin:0;flex-direction:row-reverse;justify-content:flex-end}.refm .refm-referral-metrics .refm-metric>strong{font-size:22px}.refm .refm-referral-metrics .refm-metric:first-child{background:var(--refm-surface)}
.refm-account{max-width:1120px}.refm .refm-account-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:26px 28px;background:var(--refm-highlight);border:1px solid var(--refm-border);border-radius:var(--refm-radius);margin-bottom:18px}.refm .refm-account-hero h2{margin:5px 0 8px;font-size:28px;line-height:1.3;letter-spacing:-.7px;color:var(--refm-ink)}.refm .refm-account-hero p{margin:0;font-size:13px;color:var(--refm-muted)}.refm .refm-hero-mark{display:flex;align-items:center;justify-content:center;width:60px;height:60px;border-radius:50%;background:var(--refm-surface);color:var(--refm-accent)}.refm .refm-hero-mark svg{width:29px;height:29px}.refm .refm-account-nav{display:flex;flex-wrap:wrap;gap:5px;padding:5px;background:var(--refm-soft);border:1px solid var(--refm-border);border-radius:10px;margin-bottom:22px}.refm .refm-account-nav a{padding:7px 12px;text-decoration:none;color:var(--refm-muted);font-size:11px;font-weight:600;border-radius:6px}.refm .refm-account-nav a:hover,.refm .refm-account-nav a:focus-visible{background:var(--refm-surface);color:var(--refm-accent)}.refm .refm-account-tools{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:18px;align-items:start}.refm .refm-card-heading{display:flex;align-items:center;gap:12px;margin-bottom:18px}.refm .refm-card-heading h3{margin:0 0 3px}.refm .refm-card-heading p{margin:0;font-size:11px}.refm .refm-account-tools .refm-card{min-width:0;scroll-margin-top:20px}.refm .refm-link-hint{margin-top:10px}.refm .refm-copy-feedback:empty{display:none}.refm .refm-copy-feedback{font-size:12px;margin:6px 0;color:var(--refm-accent)}.refm .refm-stat-help{margin:0 0 22px;color:var(--refm-muted);font-size:11px}.refm .refm-stat-help>summary{cursor:pointer}.refm .refm-stat-help p{padding:10px 12px;background:var(--refm-soft);border-radius:8px;margin:8px 0 0}.refm .refm-withdraw-balance{padding:16px;background:var(--refm-soft);border:1px solid var(--refm-border);border-radius:10px;margin-bottom:18px}.refm .refm-withdraw-balance>span{display:block;font-size:11px;color:var(--refm-muted)}.refm .refm-withdraw-balance>strong{display:block;font-size:28px;letter-spacing:-.5px;color:var(--refm-ink);margin:4px 0 8px}.refm .refm-withdraw-balance p{margin:0;font-size:11px}.refm .refm-withdraw-balance progress{width:100%;height:5px;display:block;appearance:none;border:0;border-radius:6px;background:var(--refm-border);margin:12px 0 9px;accent-color:var(--refm-accent)}.refm progress::-webkit-progress-bar{background:var(--refm-border);border-radius:6px}.refm progress::-webkit-progress-value{background:var(--refm-accent);border-radius:6px}.refm progress::-moz-progress-bar{background:var(--refm-accent);border-radius:6px}.refm .refm-withdraw .refm-primary{width:100%}.refm .refm-withdraw select,.refm .refm-withdraw textarea{margin-top:5px}.refm .refm-balance-note{margin:0 0 24px;padding:0 2px;font-size:11px}.refm .refm-history{scroll-margin-top:20px}.refm .refm-notice{display:flex;gap:10px;padding:12px 15px;border:1px solid #ebdfbc;background:#fff9ed;color:#76612d;font-size:12px;margin-bottom:15px}.refm .refm-onboarding,.refm .refm-application{padding:32px}.refm .refm-onboarding>h3,.refm .refm-application>h3{font-size:22px;margin:16px 0 12px}.refm .refm-onboarding>p{max-width:640px}.refm .refm-onboarding-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;counter-reset:steps;list-style:none;margin:24px 0;padding:0}.refm .refm-onboarding-steps li{counter-increment:steps;padding:18px;border:1px solid var(--refm-border);border-radius:10px;background:var(--refm-soft)}.refm .refm-onboarding-steps li:before{content:counter(steps);display:flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:var(--refm-highlight);color:var(--refm-accent);font-size:12px;font-weight:700;margin-bottom:12px}.refm .refm-onboarding-steps strong{display:block;font-size:13px;color:var(--refm-ink)}.refm .refm-onboarding-steps span{display:block;font-size:11px;color:var(--refm-muted);margin-top:4px}.refm .refm-onboarding form{margin:0 0 12px}
.refm table{font-size:12px}.refm table th{font-size:10px;background:var(--refm-soft);color:var(--refm-muted);font-weight:600}.refm table td{padding:14px;color:var(--refm-ink);border-color:var(--refm-border)}.refm .refm-table-scroll{border:1px solid var(--refm-border);border-radius:9px}.refm .refm-empty{background:var(--refm-soft);padding:32px 18px}.refm .refm-badge{font-size:10px;padding:5px 10px}.refm .refm-pagination{gap:12px;margin-top:16px}.refm .refm-pagination .refm-primary{min-height:32px;padding:6px 11px;font-size:11px}.refm .refm-section-heading form{display:flex;align-items:center;gap:8px}.refm .refm-section-heading select{min-height:35px;border:1px solid var(--refm-border);border-radius:7px;padding:4px 8px;font-size:12px}
@media(max-width:1250px){.refm-admin .refm-main{padding:22px}.refm-admin .refm-admin-layout{grid-template-columns:175px minmax(0,1fr)}.refm-admin .refm-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.refm-admin .refm-grid{grid-template-columns:1fr}}
@media(max-width:1100px){.refm .refm-account-tools{grid-template-columns:1fr}.refm .refm-onboarding-steps{grid-template-columns:1fr}.refm .refm-onboarding-steps li{padding:14px}.refm .refm-onboarding-steps li:before{float:left;margin:0 12px 0 0}.refm .refm-onboarding-steps span{padding-left:38px}}
@media(max-width:960px){.refm-admin .refm-admin-layout{grid-template-columns:minmax(0,1fr)}.refm-admin .refm-sidebar{min-width:0;border:0;border-bottom:1px solid var(--refm-border);padding:10px;border-radius:0}.refm-admin .refm-sidebar>.refm-eyebrow,.refm-admin .refm-sidebar-note{display:none}.refm-admin .refm-tabs{flex-direction:row;overflow-x:auto;gap:4px}.refm-admin .refm-tabs a{padding:9px 12px;white-space:nowrap}.refm-admin .refm-tabs a svg{display:none}.refm-admin .refm-admin-header{padding:18px}.refm-admin .refm-header-actions{gap:8px}.refm-admin .refm-header-actions>.refm-primary{display:none}.refm-admin .refm-main{padding:18px}}
@media(max-width:600px){.refm-admin{margin:12px 10px 0 0}.refm-admin .refm-main{padding:14px}.refm-admin .refm-brand h1{font-size:18px}.refm-admin .refm-brand-icon{width:36px;height:36px}.refm .refm-card{padding:18px}.refm .refm-save-bar{bottom:10px;padding:12px;gap:10px}.refm .refm-save-state{max-width:45%;font-size:10px}.refm .refm-metric{padding:14px}.refm .refm-metric>strong{font-size:21px}.refm .refm-icon-tile{width:29px;height:29px}.refm .refm-metric-top{gap:5px}.refm .refm-metric-top>.refm-icon-tile{display:none}.refm .refm-referral-metrics .refm-metric{padding:12px;flex-direction:column;align-items:start;gap:6px}.refm .refm-account-hero{padding:20px}.refm .refm-account-hero h2{font-size:24px}.refm .refm-account-hero p{font-size:12px}.refm .refm-hero-mark{width:42px;height:42px}.refm .refm-account-nav a{padding:6px 8px}.refm .refm-copy{flex-wrap:wrap}.refm .refm-copy input{flex-basis:100%}.refm .refm-copy .refm-primary{width:100%}.refm .refm-onboarding,.refm .refm-application{padding:22px}.refm .refm-email-template{padding:0}.refm .refm-template-editor{padding:0 16px 16px}.refm .refm-email-template>summary{padding:16px;font-size:12px}.refm .refm-header-actions .refm-program-state{font-size:10px}.refm .refm-onboarding>h3{font-size:19px}}
@media(prefers-reduced-motion:reduce){.refm input,.refm select,.refm .refm-channel{transition:none}}

/* Overview links and aligned payout method controls. */
.refm-admin .refm-overview-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:18px}.refm-admin .refm-overview-heading h2{margin:0}.refm-admin .refm-overview-link{color:var(--refm-accent);font-size:12px;font-weight:600;text-decoration:none;white-space:nowrap}.refm-admin .refm-overview-link:hover{text-decoration:underline}.refm-admin .refm-method-top{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:end;gap:12px}.refm-admin .refm-method-top>label:first-child{min-width:0;margin:0}.refm-admin .refm-method-top>.refm-toggle{min-height:43px;align-items:center;justify-content:center;margin:0}.refm-admin .refm-method-top>.refm-remove-method{min-height:43px;margin:0}
@media(max-width:600px){.refm-admin .refm-method-top{grid-template-columns:1fr 1fr}.refm-admin .refm-method-top>label:first-child{grid-column:1/-1}.refm-admin .refm-method-top>.refm-toggle{width:100%}}
.refm .refm-commission-items{list-style:none;margin:0;padding:0;min-width:190px;max-width:320px}.refm .refm-commission-items li+li{margin-top:10px;padding-top:10px;border-top:1px solid var(--refm-border)}.refm .refm-commission-items strong{display:block;font-size:12px;font-weight:600;overflow-wrap:anywhere}.refm .refm-commission-items small{display:block;color:var(--refm-muted);font-size:11px;margin-top:3px}

.refm .refm-best-sellers{border-top:1px solid var(--refm-border);margin-top:24px;padding-top:22px}.refm .refm-best-sellers>h3{margin:0 0 6px}.refm .refm-best-sellers>p{font-size:11px;margin:0 0 12px}.refm .refm-best-seller-list{list-style:none;margin:0;padding:0}.refm .refm-best-seller-list li{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--refm-border)}.refm .refm-best-seller-list li:last-child{border:0}.refm .refm-best-seller-rank{font-size:11px;color:var(--refm-muted);width:12px;flex-shrink:0}.refm .refm-best-seller-product{display:flex;align-items:center;gap:10px;flex:1;min-width:0;color:var(--refm-ink);text-decoration:none;font-size:12px;font-weight:600}.refm .refm-best-seller-product:hover{color:var(--refm-accent)}.refm .refm-best-seller-product span{overflow-wrap:anywhere}.refm .refm-best-seller-product img{width:38px;height:38px;object-fit:cover;border-radius:7px;flex-shrink:0}.refm .refm-best-seller-list .refm-primary{width:auto;min-height:34px;padding:6px 10px;font-size:11px;flex-shrink:0}@media(max-width:600px){.refm .refm-best-seller-list li{gap:8px}.refm .refm-best-seller-product{gap:8px}.refm .refm-best-seller-product img{width:30px;height:30px}}

.refm #refm-exchange-rates{border:1px solid var(--refm-border);border-radius:8px;padding:10px 12px;background:var(--refm-surface);color:var(--refm-ink);font-size:12px;resize:vertical}

.refm-license-summary{padding:20px;margin:20px 0;background:var(--refm-surface,#f7fafb);border:1px solid var(--refm-border,#dce6e9);border-radius:12px}.refm-license-summary dl{display:grid;grid-template-columns:minmax(130px,1fr) 2fr;gap:14px;margin:20px 0 0}.refm-license-summary dt{color:var(--refm-muted,#617686)}.refm-license-summary dd{margin:0;overflow-wrap:anywhere}.refm-license-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}.refm-license-actions form{margin:0}.refm-license-connection{margin-top:24px}.refm-license-connection summary{cursor:pointer;color:var(--refm-primary);font-weight:600}.refm-license-connection code{overflow-wrap:anywhere;white-space:normal}@media(max-width:600px){.refm-license-summary dl{grid-template-columns:1fr;gap:6px}.refm-license-summary dd{margin-bottom:10px}}
.refm-admin .refm-license-notice{display:block;margin:0 0 24px;border-radius:10px}.refm-admin .refm-license-notice p{margin:0;line-height:1.7}.refm-admin .refm-license-notice a{font-weight:600;text-underline-offset:3px}

.refm-admin .refm-tabs .refm-nav-count{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;margin-left:auto;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:var(--refm-accent);color:#fff;font-size:11px;font-weight:600;line-height:1}@media(max-width:960px){.refm-admin .refm-tabs .refm-nav-count{margin-left:4px}}

.refm .refm-join-terms{margin:24px 0;text-align:left}.refm .refm-terms-content{max-height:260px;overflow:auto;padding:18px 20px;border:1px solid var(--refm-border,#dce5eb);border-radius:12px;background:#f8fafb;overflow-wrap:anywhere}.refm .refm-terms-content>:first-child{margin-top:0}.refm .refm-terms-content>:last-child{margin-bottom:0}.refm .refm-terms-content ul,.refm .refm-terms-content ol{padding-left:24px;list-style-position:outside}.refm .refm-terms-accept{display:flex;align-items:flex-start;gap:10px;margin:16px 0;font-weight:500}.refm .refm-terms-accept input{flex:0 0 auto;width:18px;height:18px;margin:3px 0 0}.refm .refm-terms-content:focus-visible{outline:2px solid var(--refm-primary,#101e8e);outline-offset:2px}

.refm [hidden]{display:none!important}
/* Keep tool actions immediately after their associated fields. */
.refm-admin .refm-tools-action-row{display:flex;align-items:flex-end;gap:12px}.refm-admin .refm-tools-action-row>.refm-field{flex:1;min-width:0;margin:0}.refm-admin .refm-tools-action-row>.refm-primary{flex:0 0 auto;margin:0;white-space:nowrap}.refm-admin .refm-tools-action-row input{box-sizing:border-box;width:100%}@media(max-width:600px){.refm-admin .refm-tools-action-row{flex-direction:column;align-items:stretch}.refm-admin .refm-tools-action-row>.refm-field{width:100%}.refm-admin .refm-tools-action-row>.refm-primary{align-self:flex-start}}

/* Keep settings actions visible beyond the form, including recovery tools. */
.refm-admin .refm-save-bar.refm-save-bar-fixed{position:fixed;bottom:16px;right:auto;box-sizing:border-box;margin:0;z-index:100;box-shadow:0 8px 30px rgba(15,35,55,.12)}.refm-admin .refm-save-bar-slot{margin-top:18px}.refm-admin .refm-save-bar.refm-save-bar-docked{position:static;box-sizing:border-box;margin:0;width:100%}@media(max-width:600px){.refm-admin .refm-save-bar.refm-save-bar-fixed{bottom:10px}}

/* Dashboard metrics: calm white cards with distinct, accessible icon accents. */
.refm .refm-metric.refm-metric-tone-amber{--refm-metric-tint:#fff4dc;--refm-metric-color:#a96308}
.refm .refm-metric.refm-metric-tone-green{--refm-metric-tint:#e3f7ed;--refm-metric-color:#16804a}
.refm .refm-metric.refm-metric-tone-blue{--refm-metric-tint:#e7f1ff;--refm-metric-color:#245bdb}
.refm .refm-metric.refm-metric-tone-purple{--refm-metric-tint:#f0e9ff;--refm-metric-color:#7333c5}
.refm .refm-metric.refm-metric-tone-slate{--refm-metric-tint:#edf3f9;--refm-metric-color:#42658e}
.refm .refm-metric .refm-icon-tile{background:var(--refm-metric-tint);color:var(--refm-metric-color)}
.refm .refm-metric,.refm .refm-metric:first-child{background:#fff;border-color:var(--refm-border)}
.refm.refm-account .refm-account-hero{background:#fff}
.refm-admin .refm-metrics>.refm-metric{display:grid;grid-template-columns:44px minmax(0,1fr);column-gap:14px;row-gap:5px;align-items:center;padding:20px}
.refm-admin .refm-metrics .refm-metric-top{display:contents}
.refm-admin .refm-metrics .refm-metric-top>span:first-child{grid-column:2;grid-row:1;line-height:1.5;font-weight:500}
.refm-admin .refm-metrics .refm-icon-tile{display:inline-flex;grid-column:1;grid-row:1/3;width:44px;height:44px;border-radius:50%}
.refm-admin .refm-metrics .refm-icon-tile svg{width:22px;height:22px}
.refm-admin .refm-metrics .refm-metric>strong{grid-column:2;grid-row:2;font-size:23px;line-height:1.3;letter-spacing:-.5px}
.refm-admin .refm-referral-metrics .refm-icon-tile{width:34px;height:34px;border-radius:50%}
.refm-account .refm-metric{box-shadow:0 2px 10px rgba(23,43,56,.025)}
.refm-account .refm-metric-top>.refm-icon-tile{display:inline-flex}
@media(max-width:600px){.refm-admin .refm-metrics>.refm-metric{grid-template-columns:34px minmax(0,1fr);column-gap:10px;padding:15px}.refm-admin .refm-metrics .refm-icon-tile{width:34px;height:34px}.refm-admin .refm-metrics .refm-icon-tile svg{width:18px;height:18px}.refm-admin .refm-metrics .refm-metric>strong{font-size:20px}.refm-account .refm-metric-top>.refm-icon-tile{width:30px;height:30px}}
.refm-admin .refm-referral-metrics .refm-metric-top>.refm-icon-tile{display:inline-flex}@media(max-width:600px){.refm-admin .refm-metrics .refm-icon-tile{grid-row:1}.refm-admin .refm-metrics .refm-metric>strong{grid-column:1/-1;grid-row:2;margin-top:5px}.refm-admin .refm-referral-metrics .refm-metric-top{gap:8px;align-items:center}.refm-admin .refm-referral-metrics .refm-icon-tile{width:28px;height:28px}}

/* Admin action feedback: outside the title flow and clear of the bottom save bar. */
.refm-admin .refm-toast-stack{position:fixed;top:20px;right:24px;width:min(410px,calc(100vw - 32px));display:flex;flex-direction:column;gap:12px;z-index:10001;pointer-events:none}
body.admin-bar .refm-admin .refm-toast-stack{top:48px}
.refm-admin .refm-toast{display:flex;align-items:flex-start;gap:12px;background:#fff;border:1px solid #dce6ef;border-left:4px solid #0066ff;border-radius:12px;padding:16px;box-shadow:0 10px 35px rgba(16,36,71,.15);pointer-events:auto;margin:0 0 16px;animation:refm-toast-in .2s ease-out}
.refm-admin .refm-toast-stack .refm-toast{margin:0}
.refm-admin .refm-toast-icon{display:flex;align-items:center;justify-content:center;flex:0 0 34px;height:34px;border-radius:50%;background:#eef5ff;color:#0066ff}
.refm-admin .refm-toast-content{flex:1;min-width:0}.refm-admin .refm-toast-content strong{display:block;font-size:13px;line-height:1.5;color:var(--refm-ink)}
.refm-admin .refm-toast-content p{margin:4px 0 0;font-size:12px;line-height:1.65;color:var(--refm-muted);overflow-wrap:anywhere}
.refm-admin .refm-toast-error{border-left-color:#c43a3a}.refm-admin .refm-toast-error .refm-toast-icon{background:#fff0f0;color:#b32f2f}
.refm-admin .refm-toast-dismiss{display:flex;align-items:center;justify-content:center;flex:0 0 30px;width:30px;height:30px;min-height:30px;padding:0;background:transparent;border:0;border-radius:6px;color:#627380;cursor:pointer;box-shadow:none}
.refm-admin .refm-toast-dismiss:hover{background:#f1f5f9;color:#172b38}.refm-admin .refm-toast-dismiss:focus-visible{outline:2px solid #0066ff;outline-offset:2px}.refm-admin .refm-toast-dismiss svg{width:16px;height:16px}
.refm-admin .refm-toast.is-leaving{opacity:0;transform:translateX(12px);transition:opacity .18s,transform .18s}
@keyframes refm-toast-in{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:782px){body.admin-bar .refm-admin .refm-toast-stack{top:62px}.refm-admin .refm-toast-stack{right:12px;width:calc(100vw - 24px)}.refm-admin .refm-toast{padding:14px;gap:10px}}
@media(prefers-reduced-motion:reduce){.refm-admin .refm-toast{animation:none}.refm-admin .refm-toast.is-leaving{transition:none;transform:none}}
.refm-admin .refm-toast .refm-toast-dismiss.refm-primary{background:transparent!important;color:#627380!important;border:0;min-height:30px;filter:none}.refm-admin .refm-toast .refm-toast-dismiss.refm-primary:hover{background:#f1f5f9!important;color:#172b38!important}

.refm-admin .refm-admin-pagination{justify-content:space-between;flex-wrap:wrap;gap:12px}.refm-admin .refm-page-summary{font-size:12px;color:var(--refm-muted)}.refm-admin .refm-page-links{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:6px}.refm-admin .refm-page-links .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:34px;min-height:34px;padding:6px 10px;border:1px solid var(--refm-border);border-radius:7px;font-size:12px;line-height:1.4;text-decoration:none}.refm-admin .refm-page-links a.refm-primary{background:#fff!important;color:var(--refm-ink)!important;border:1px solid var(--refm-border)}.refm-admin .refm-page-links a.refm-primary:hover{border-color:var(--refm-accent);color:var(--refm-accent)!important;filter:none}.refm-admin .refm-page-links .current{background:var(--refm-accent);border-color:var(--refm-accent);color:#fff;font-weight:600}.refm-admin .refm-page-links .dots{border-color:transparent;min-width:20px;padding:6px 2px}@media(max-width:600px){.refm-admin .refm-admin-pagination{justify-content:center}.refm-admin .refm-page-summary{flex-basis:100%;text-align:center}.refm-admin .refm-page-links{justify-content:center}}

.refm-admin .refm-list-filters{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin:0}.refm-admin .refm-list-filters input[type=search]{width:240px;max-width:100%;min-height:40px;border:1px solid var(--refm-border);border-radius:8px;padding:8px 12px;background:var(--refm-surface);color:var(--refm-ink);font-size:12px}.refm-admin .refm-list-filters select{min-height:40px;max-width:160px;border:1px solid var(--refm-border);border-radius:8px;padding:7px 28px 7px 10px;background-color:var(--refm-surface);color:var(--refm-ink);font-size:12px}.refm-admin .refm-list-filters input:focus-visible,.refm-admin .refm-list-filters select:focus-visible{outline:2px solid var(--refm-accent);outline-offset:2px}.refm-admin .refm-filter-reset{font-size:12px;color:var(--refm-accent);text-underline-offset:3px}@media(max-width:600px){.refm-admin .refm-list-filters{width:100%;justify-content:flex-start}.refm-admin .refm-list-filters input[type=search]{width:100%;flex-basis:100%}.refm-admin .refm-list-filters select{flex:1;max-width:none}}

.refm-admin .refm-card-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:18px}.refm-admin .refm-card-toolbar>h2{margin:0;flex-shrink:0}.refm-admin .refm-card-toolbar>.refm-list-filters{flex:1}@media(max-width:600px){.refm-admin .refm-card-toolbar{gap:14px}.refm-admin .refm-card-toolbar>.refm-list-filters{flex-basis:100%}}

/* One-line controls share a height, even when the theme adds select padding. */
.refm:is(.refm-admin,.refm-account){--refm-field-height:43px}
.refm-admin .refm-list-filters{--refm-field-height:40px}
.refm:is(.refm-admin,.refm-account) input:is([type=text],[type=search],[type=email],[type=url],[type=number],[type=tel],[type=password],[type=date],[type=datetime-local],[type=time]),
.refm:is(.refm-admin,.refm-account) select:not([multiple]):not([size]),
.refm:is(.refm-admin,.refm-account) select[size="1"]:not([multiple]){box-sizing:border-box;height:var(--refm-field-height)!important;min-height:var(--refm-field-height)!important;max-height:var(--refm-field-height)!important;padding-top:0!important;padding-bottom:0!important;line-height:normal}/* Optional affiliate application fields. */
.refm-account .refm-onboarding .refm-field{margin:0 0 18px}.refm-account .refm-onboarding .refm-field>label{display:block;margin-bottom:6px}.refm-account .refm-onboarding .refm-field input[type=url],.refm-account .refm-onboarding .refm-field textarea{width:100%;padding:10px 12px;border:1px solid var(--refm-border);border-radius:8px;background:var(--refm-surface);color:var(--refm-ink);font:inherit}.refm-account .refm-onboarding .refm-field textarea{min-height:110px;resize:vertical}.refm-account .refm-onboarding .refm-field textarea:focus{border-color:var(--refm-accent);box-shadow:0 0 0 3px #0066ff0d}

/* Optional payout providers and their new ledger states. */
.refm .refm-gateway-settings, div#refm-manual-methods{margin:28px 0px;padding-top:20px;border-top:1px solid var(--refm-border)}.refm .refm-gateway-card{margin:18px 0;padding:20px;border:1px solid var(--refm-border);border-radius:12px;background:var(--refm-soft)}.refm .refm-gateway-card h4{margin:0 0 16px;font-size:16px}.refm .refm-gateway-card code{overflow-wrap:anywhere;white-space:normal}.refm .refm-gateway-card input[type=password]{width:100%;height:43px;padding:10px 12px;border:1px solid var(--refm-border);border-radius:8px;background:var(--refm-surface);font:inherit}.refm .refm-stripe-connect{margin:18px 0;padding:16px;border:1px solid var(--refm-border);border-radius:10px}.refm .refm-badge.refm-processing{background:#eef5ff;color:#075bcc}.refm .refm-badge.refm-tested{background:#f1ebff;color:#6631aa}.refm .refm-badge.refm-failed{background:#fff0f0;color:#b42318}

.refm .refm-gateway-currency{grid-column:1/-1}.refm .refm-gateway-credentials{margin:20px 0 0;padding-top:16px;border-top:1px solid var(--refm-border)}.refm .refm-gateway-credentials h5{margin:0 0 12px;font-size:13px;color:var(--refm-ink)}.refm .refm-gateway-card .refm-field select{display:block;width:100%;margin-top:6px}.refm .refm-gateway-card .refm-field>label:has(input[type=checkbox]){margin-top:6px;font-weight:400}

.refm .refm-gateway-card .refm-field>label.refm-gateway-clear{display:flex;align-items:center;gap:8px;width:fit-content;margin:8px 0 0;font-weight:400}.refm .refm-gateway-clear input[type=checkbox]{width:16px!important;min-width:16px!important;max-width:16px!important;height:16px!important;min-height:16px!important;max-height:16px!important;padding:0;margin:0;flex:0 0 16px}.refm .refm-withdraw [hidden]{display:none!important}

.refm .refm-stripe-connect select{display:block;width:100%;margin:8px 0 12px}.refm .refm-stripe-connect h4{margin:0 0 10px}.refm .refm-gateway-card details{margin:16px 0}.refm .refm-gateway-card details>summary{cursor:pointer}

.refm .refm-premium-badge,.refm .refm-tier-badge{display:inline-flex;align-items:center;vertical-align:middle;white-space:nowrap;margin-left:8px;border:1px solid #d6c8ff;border-radius:999px;padding:3px 9px;color:#6941c6;background:#f4f0ff;font-size:11px;font-weight:600;line-height:1.6}.refm .refm-tier-badge{border-color:#cce0ff;background:#eef5ff;color:#0066ff}.refm .refm-premium-card h2,.refm .refm-premium-card h3{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.refm .refm-free-notice{background:#f1f7ff;border-color:#d3e4ff;color:var(--refm-ink)}.refm fieldset[disabled]{opacity:.65}
