/* «Invite a friend» panel in Profile (lions-referral.js). Dark-panel colours by default; the material skins
   (Marble, Malachite, Atlas) repaint it below with their own tokens, like the rest of the profile. */
#profile .profile-referral{margin-top:20px}
#profile .profile-referral h3{margin:0 0 12px}
#profile .ref-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:start;margin-top:14px}
#profile .ref-code{font-family:var(--font-ui);font-size:20px;font-weight:600;letter-spacing:.12em;color:#f1e0bc}
#profile .ref-link{display:block;box-sizing:border-box;width:100%;height:36px;margin:0 0 10px;padding:0 10px;border:1px solid #778a9b66;border-radius:4px;
  background:#0f1c2c;color:#c3d0df;font:14px var(--font-ui);text-overflow:ellipsis}
#profile .ref-copy,#profile .ref-claim{width:100%}
#profile .ref-reward{display:flex;flex-wrap:wrap;gap:8px 16px;margin:0 0 10px}
#profile .ref-item{display:inline-flex;align-items:center;gap:6px;color:#e5d9bc;font-size:15px}
#profile .ref-item img{width:28px;height:28px;object-fit:contain}
#profile .ref-term{margin:0 0 8px;color:#d3dfeb;font-size:15px;font-weight:500;line-height:1.4}
#profile .ref-cap{margin:4px 0 0}
#profile .ref-enter{margin-top:18px}
#profile .ref-enter p{margin:0 0 10px;color:#b0bfd0;font-size:15px}
#profile .ref-enter-row{display:flex;gap:10px}
#profile .ref-input{flex:1 1 auto;min-width:0;height:38px;padding:0 10px;border:1px solid #778a9b66;border-radius:4px;background:#0f1c2c;color:#f1e0bc;
  font:600 16px var(--font-ui);letter-spacing:.12em;text-transform:uppercase}
#profile .ref-friends{margin-top:18px}
#profile .ref-friends .kv{align-items:baseline;justify-content:space-between}
#profile .ref-list{list-style:none;margin:0 0 12px;padding:0}
#profile .ref-friend,#profile .ref-none{padding:10px 0;border-top:1px solid #8198ac30;font-size:15px;color:#c3d0df}
#profile .ref-row{display:flex;justify-content:space-between;gap:12px}
#profile .ref-progress{display:flex;align-items:center;gap:12px;margin-top:6px;color:#b0bfd0;font-size:14px}
#profile .ref-progress>span:first-child{flex:none}
#profile .ref-bar{flex:1 1 auto;height:6px;border:1px solid #778a9b55;border-radius:3px;background:#0f1c2c;overflow:hidden}
#profile .ref-bar i{display:block;height:100%;width:0;background:linear-gradient(90deg,#887445,#dcc391)}
#profile .ref-friend.done .ref-state{color:#e5d9bc}
#profile .ref-nick{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#profile .ref-state{flex:none;text-align:right}
/* Material skins: the same ink/rule/paper tokens as the other profile panels (lions-material-skins.css). */
body.pc:is(.skin-marble,.skin-malachite,.skin-atlas) #profile :is(.ref-term,.ref-item,.ref-friend,.ref-none,.ref-progress,.ref-enter p){color:var(--annals-ink-2)}
body.pc:is(.skin-marble,.skin-malachite,.skin-atlas) #profile :is(.ref-code,.ref-nick,.ref-friend.done .ref-state){color:var(--annals-ink)}
body.pc:is(.skin-marble,.skin-malachite,.skin-atlas) #profile :is(.ref-link,.ref-input){background:var(--annals-paper-hi);color:var(--annals-ink);border-color:var(--annals-rule-strong)}
body.pc:is(.skin-marble,.skin-malachite,.skin-atlas) #profile :is(.ref-friend,.ref-none){border-top-color:var(--annals-rule)}
body.pc:is(.skin-marble,.skin-malachite,.skin-atlas) #profile .ref-bar{background:var(--annals-paper-deep);border-color:var(--annals-rule);border-radius:0}
body.pc:is(.skin-marble,.skin-malachite,.skin-atlas) #profile .ref-bar i{background:var(--annals-ink-2)}
@media(max-width:999px){
  #profile .ref-grid{grid-template-columns:1fr;gap:14px}
}
