.referrals{display:grid;gap:20px;max-width:100%;min-width:0}.referral-rule{background:#e8f7f3;border-radius:18px;padding:24px;color:#003e30}.referral-rule strong{font-size:1.22rem}.referral-rule p{margin:8px 0 0;line-height:1.6}.referral-toolbar,.referral-card-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.referral-toolbar button{width:auto;min-height:44px}.referral-form{display:grid;gap:16px;background:#fff;border:1px solid #dce5e1;border-radius:16px;padding:24px;max-width:720px}.referral-form[hidden]{display:none}.referral-form label{display:grid;gap:7px;font-weight:500}.referral-form input,.referral-form select,.referral-form textarea{font:inherit;color:inherit;background:white;border:1px solid #b4c7bf;border-radius:8px;padding:12px;width:100%;box-sizing:border-box;min-height:44px}.referral-form textarea{min-height:100px;resize:vertical}.referral-form .referral-check{display:flex;align-items:flex-start;gap:12px;line-height:1.5}.referral-check input[type=checkbox]{width:20px;height:20px;min-height:20px;flex-shrink:0;margin-top:2px;accent-color:#003e30}.referral-help{color:#54655e;font-size:.95rem;line-height:1.6}.referral-notice{margin:0;line-height:1.6}.referral-notice:empty{display:none}.referral-list{display:grid;gap:16px}.referral-card{background:#fff;border:1px solid #dce5e1;border-radius:16px;padding:24px;min-width:0;overflow-wrap:anywhere}.referral-card h3{font-size:1.3rem;margin:0}.referral-card p{margin:10px 0 0;line-height:1.6}.referral-badge{background:#edf4f1;padding:7px 12px;border-radius:24px;font-size:.9rem}.referral-reward{background:#97dacf;padding:14px 18px;border-radius:12px;font-weight:600}.referral-review{margin-top:20px;border-top:1px solid #dce5e1;padding-top:16px}.referral-review summary{cursor:pointer;font-weight:600;min-height:44px}.referral-review form{margin-top:16px}.referral-note{white-space:pre-wrap}.referral-empty{padding:24px;background:#f0f6f3;border-radius:16px;line-height:1.7}.referrals button:disabled{opacity:.6;cursor:wait}.referrals :focus-visible{outline:3px solid #008b73;outline-offset:3px}#admin-referrals{margin-top:56px;padding-top:32px;border-top:1px solid #c9d9d1}@media(max-width:640px){.referral-form,.referral-card,.referral-rule{padding:18px}.referral-toolbar{align-items:stretch}.referral-toolbar button{width:100%}.referral-badge{max-width:100%}.referral-card-heading{align-items:flex-start}}

@media(max-width:899px){.portal-authenticated .section-tabs:has(#referrals-tab:not([hidden])){grid-template-columns:repeat(6,minmax(0,1fr))}.portal-authenticated .section-tabs:has(#referrals-tab:not([hidden])):has(#invoices-tab[hidden]){grid-template-columns:repeat(5,minmax(0,1fr))}}
