/* Account identity first; optional local editing lives behind one deliberate action. */
.profile-overview{display:grid;grid-template-columns:1.5fr 1fr;gap:24px;align-items:end;padding:clamp(22px,3vw,36px);margin-bottom:18px;border:1px solid #496374;border-radius:20px;background:radial-gradient(circle at 90% 10%,#315766 0,transparent 50%),linear-gradient(125deg,#132d3c,#101b2b);color:#eff6f6}
.profile-introduction h3{margin:8px 0;font:900 italic clamp(38px,5vw,64px)/1 var(--display);overflow-wrap:anywhere}.profile-introduction p{color:#b6d0d6;font:700 11px var(--body);letter-spacing:.12em}.profile-introduction small{display:block;max-width:55ch;margin-top:15px;color:#a8bdc7;line-height:1.5}.profile-hero-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.profile-overview-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.profile-overview-stats>div{padding:14px;background:#132735bb;border:1px solid #41616d;border-radius:12px}.profile-overview-stats b,.profile-overview-stats span{display:block}.profile-overview-stats b{font:900 italic 26px var(--display)}.profile-overview-stats span{font:700 9px var(--body);letter-spacing:.13em;color:#a8c3cb}.profile-layout-refined{align-items:start}.profile-settings{display:block;padding:16px;border:1px solid var(--line);border-radius:16px;background:var(--card)}.profile-settings summary{display:flex;justify-content:space-between;align-items:center;cursor:pointer;font:900 italic 19px var(--display);list-style:none}.profile-settings summary span{font-size:24px;color:#72c1ff}.profile-settings[open] summary span{transform:rotate(45deg)}.profile-settings>p{color:var(--muted);line-height:1.5;font-size:12px}.profile-settings .settings-row,.profile-settings .swatch-row{margin-top:8px}
@media(max-width:850px){.profile-overview{grid-template-columns:1fr}.profile-overview-stats{grid-template-columns:repeat(4,minmax(0,1fr))}.profile-overview-stats b{font-size:20px}}
@media(max-width:520px){.profile-overview-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-hero-actions button{flex:1 1 44%}}

/* Where the rider stands, beside their card: rank, then four tiles that each open the page they are about. */
.profile-side{display:grid;gap:14px;min-width:0;align-content:start}
.profile-progress{display:grid;gap:10px}
.profile-rank{display:grid;gap:0;width:100%;padding:0;border:0;background:none;color:inherit;text-align:left;cursor:pointer;border-radius:14px;transition:transform .18s cubic-bezier(.2,.75,.25,1)}
.profile-rank .rank-badge{margin:0;border-bottom-left-radius:0;border-bottom-right-radius:0}
.profile-rank-line{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:9px 16px;border:1px solid #ffffff1a;border-top:0;border-radius:0 0 14px 14px;background:#0f1d2ccc;font:500 12px/1.4 var(--body);color:#c7d0cb}
.profile-rank-line em{flex:none;font:800 10px var(--body);font-style:normal;letter-spacing:.14em;color:#9ed5fe}
.profile-rank:hover{transform:translateY(-2px)}.profile-rank:hover .profile-rank-line em{color:#fff}
.profile-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.profile-tile{position:relative;display:grid;gap:3px;min-width:0;padding:14px 16px 15px;text-align:left;cursor:pointer;color:#eff6f6;border-radius:14px;
  border:1px solid color-mix(in srgb,var(--tile) 30%,#2b3d4d);background:linear-gradient(140deg,color-mix(in srgb,var(--tile) 13%,#13212f),#111c2a 70%);
  transition:transform .18s cubic-bezier(.2,.75,.25,1),border-color .18s ease,box-shadow .18s ease}
.profile-tile small{font:700 10px var(--body);letter-spacing:.15em;color:color-mix(in srgb,var(--tile) 70%,#fff)}
.profile-tile b{font:900 italic 24px/1.05 var(--display);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:18px}
.profile-tile span{font:600 10px var(--body);letter-spacing:.1em;color:#a9bcc6}
.profile-tile-bar{display:block;height:5px;margin-top:9px;border-radius:3px;overflow:hidden;background:#ffffff17}
.profile-tile-bar u{display:block;height:100%;min-width:5px;border-radius:3px;background:linear-gradient(90deg,color-mix(in srgb,var(--tile) 55%,#1b2a38),var(--tile));transform-origin:left;animation:profile-fill .8s .15s cubic-bezier(.2,.75,.25,1) both}
.profile-tile em{position:absolute;top:12px;right:14px;font-style:normal;font-size:13px;color:color-mix(in srgb,var(--tile) 60%,#fff);opacity:.7;transition:transform .18s ease,opacity .18s ease}
.profile-tile:hover,.profile-tile:focus-visible{transform:translateY(-2px);border-color:var(--tile);box-shadow:0 10px 24px #0006}
.profile-tile:hover em,.profile-tile:focus-visible em{transform:translate(2px,-2px);opacity:1}
.profile-tile:active,.profile-rank:active{transform:translateY(0) scale(.985)}
@keyframes profile-fill{from{transform:scaleX(0)}to{transform:none}}
@media(max-width:520px){.profile-tile{padding:12px 12px 13px}.profile-tile b{font-size:19px}.profile-rank-line{flex-direction:column;align-items:flex-start;gap:4px}}
body.reduced-motion .profile-tile,body.reduced-motion .profile-rank,body.reduced-motion .profile-tile em{transition:none;transform:none}
body.reduced-motion .profile-tile-bar u{animation:none}
@media(prefers-reduced-motion:reduce){.profile-tile,.profile-rank,.profile-tile em{transition:none;transform:none}.profile-tile-bar u{animation:none}}
