/* Affiliate section inside the My tiles sheet. Scoped to .aff so nothing else changes. */
.aff{margin-top:18px;border-top:1px solid #d5ddd3;padding-top:12px}
/* My profile: always open, set apart by its own background. */
.aff.aff-open{border:1px solid #d9ded2;border-radius:12px;background:#eef2e4;padding:4px 16px 16px}
.aff.aff-open>h3{margin:12px 0 4px;font-size:18px;letter-spacing:-.01em}
.aff-need{font-size:13px;font-weight:400;color:#60746d}.aff-badges li.earned .aff-need{color:#3d5a4c}
.aff>summary{cursor:pointer;font-weight:650;font-size:16px;padding:8px 0;min-height:44px;display:flex;align-items:center}
.aff h4{margin:20px 0 6px;font-size:14px;color:#173930}
.aff p{font-size:14px;margin:8px 0}
.aff label{display:block;font-size:14px;margin:10px 0}
.aff select,.aff input:not([type=checkbox]){width:100%;padding:10px 11px;margin:6px 0;border:1px solid #b6c4b4;border-radius:6px;font:inherit;box-sizing:border-box;background:#fff}
.aff .aff-check{display:flex;gap:8px;align-items:flex-start}
.aff .aff-check input{margin-top:3px}
.aff-facts,.aff-note{color:#60746d}
.aff-rate{font-weight:600;margin:12px 0 4px}
.aff-sentence{font-style:italic}
.aff-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:0}
.aff-stats div{border:1px solid #d9ded2;border-radius:8px;padding:8px;background:#fffefa}
.aff-stats dt{font-size:12px;color:#60746d}.aff-stats dd{margin:2px 0 0;font-weight:650;font-size:16px}
.aff-badges,.aff-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.aff-badges li,.aff-list li{border:1px solid #d9ded2;border-radius:8px;padding:8px 10px;font-size:14px;display:flex;flex-wrap:wrap;gap:4px 10px;background:#fffefa}
.aff-badges li{align-items:center;color:#8a978f}
.aff-badges li.earned{background:#e6eddb;border-color:#82a958;color:#173930}
/* Badge pictures: grey until received. Also used in the profile block, outside .aff. */
.aff-badge-icon{display:inline-flex;width:36px;height:36px;border-radius:50%;align-items:center;justify-content:center;background:#eef0ea;color:#9aa69f;flex:none}
.earned>.aff-badge-icon{background:#173930;color:#f4f8ec}
.aff-badge-row{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px 14px}
.aff-badge-row li{display:flex;align-items:center;gap:6px;font-size:13px;color:#173930}
.aff-stats.aff-credit{grid-template-columns:1fr}
.aff-code{margin:10px 0}.aff-code>summary{cursor:pointer;font-size:14px;color:#173930;min-height:44px;display:flex;align-items:center}
.aff .optional{color:#60746d;font-size:12px}
.aff button:disabled{opacity:.5;cursor:not-allowed}
.invite-note{font-size:12px;color:#60746d;margin:8px 0}
.aff-dashboard-card{border:1px solid #d9ded2;border-radius:10px;background:#fffefa;padding:2px 14px 14px;margin:12px 0}
.aff-dashboard-card h4{margin-top:12px}
.aff-dashboard-card a{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border:1px solid #b6c4b4;border-radius:6px;background:#fff;color:#173930;font-weight:600;font-size:14px;text-decoration:none}
.aff-dashboard-card a:focus-visible{outline:3px solid #dca029;outline-offset:2px}
