.referral-page{display:grid;gap:24px;max-width:1100px;color:#18332b}
.referral-page>header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:0 0 20px;border-bottom:1px solid #dce8e2}
.referral-page>header small{font-size:11px;font-weight:700;color:#26765a}
.referral-page>header h2{margin:8px 0;font-size:27px;line-height:1.25}
.referral-page>header p{max-width:680px;margin:0;color:#64766b;line-height:1.6}
.referral-page>header .ws-icon{width:32px;height:32px;color:#e3a435;flex:none}
.referral-share{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:24px;align-items:center;border:1px solid #dce8e2;border-radius:8px;padding:24px;background:#f8fbf9}
.referral-link{min-width:0}.referral-link label,.referral-config label{display:grid;gap:8px;font-weight:600;font-size:13px}
.referral-link input,.referral-config input[type=number]{box-sizing:border-box;width:100%;padding:12px;border:1px solid #ceded4;border-radius:5px;background:#fff;color:#214335;font:inherit}
.referral-actions{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}.referral-actions button{display:inline-flex;align-items:center;gap:7px}
.referral-actions .ws-icon,.referral-config .ws-icon{width:17px;height:17px}
.referral-link small{display:block;color:#65776b;line-height:1.5}.referral-link [role=status],.referral-config [role=status]{margin:8px 0 0;color:#176b4e;min-height:1em}
.referral-qr{display:grid;justify-items:center;gap:4px}.referral-qr img{width:160px;height:160px;background:#fff}.referral-qr span{font-size:12px;color:#546d5e}
.referral-posters{min-width:0;border-top:1px solid #dce8e2;padding-top:24px}.referral-posters-head{display:flex;justify-content:space-between;align-items:start;gap:16px;margin-bottom:18px}.referral-posters-head h3{font-size:19px;margin:0 0 5px}.referral-posters-head p{margin:0;color:#64766b;font-size:13px}.referral-posters-head>span{flex:none;color:#60776a;font-size:12px}.referral-poster-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.referral-poster{min-width:0;border:1px solid #dce8e2;border-radius:7px;overflow:hidden;background:#fff}.referral-poster canvas{display:block;width:100%;height:auto;aspect-ratio:9/16;background:#edf3ef}.referral-poster-action{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px}.referral-poster-action strong{font-size:13px}.referral-poster-action button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;white-space:nowrap;font-size:12px}.referral-poster-action .ws-icon{width:15px;height:15px}.referral-poster-status{min-height:1.2em;margin:10px 0 0;color:#176b4e;font-size:13px}
.referral-history{border-top:1px solid #dce8e2;padding-top:20px}.referral-history h3{font-size:17px;margin:0 0 14px}.referral-history>p{color:#64766b}
.referral-table-wrap{overflow:auto}.referral-table-wrap table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}.referral-table-wrap th,.referral-table-wrap td{padding:12px;border-bottom:1px solid #e5ede8;vertical-align:top}.referral-table-wrap th{color:#5d7567;font-weight:600;white-space:nowrap}
.referral-review{display:grid;gap:10px;min-width:200px;margin-top:10px}.referral-review[hidden]{display:none}.referral-review label{display:grid;gap:6px}.referral-review textarea{min-height:72px;border:1px solid #ceded4;border-radius:5px;padding:9px;font:inherit}.referral-review div{display:flex;gap:6px;flex-wrap:wrap}.referral-review button{font-size:12px}.referral-review [role=status]{color:#a33b3b;margin:0}
.referral-config{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:18px;padding:20px;border:1px solid #dce8e2;border-radius:8px;background:#f8fbf9}.referral-config .referral-switch{grid-column:1/-1;display:flex;align-items:center;gap:10px}.referral-config>button{justify-self:start}.referral-config [role=status]{align-self:center}
@media(max-width:700px){.referral-share{grid-template-columns:1fr;padding:18px}.referral-qr{justify-self:start}.referral-config{grid-template-columns:repeat(2,minmax(0,1fr))}.referral-page>header h2{font-size:23px}}
@media(max-width:700px){.referral-poster-grid{grid-template-columns:none;grid-auto-columns:minmax(230px,78%);grid-auto-flow:column;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:8px}.referral-poster{scroll-snap-align:start}.referral-posters-head>span{display:none}}
@media(max-width:420px){.referral-config{grid-template-columns:1fr}}
