/* PRODUCT-165: Profile-only composition; shared shell remains predecessor-owned. */
html body .profile-page--reference { display: grid; gap: 24px; }
html body .profile-page--reference .profile-heading { text-align: left; padding-block: 20px 8px; }
html body .profile-page--reference .profile-public-identity { justify-content: flex-start; }
html body .profile-page--reference .profile-public-identity strong { font-size: clamp(1rem, 3vw, 1.6rem); }
html body .profile-page--reference .profile-identity-card { justify-self: start; text-align: left; }
html body .profile-page--reference .navigation-section { margin: 0; min-width: 0; scroll-margin-top: calc(var(--app-topbar-height) + 20px); }
html body .profile-page--reference #overview > h2 { font-size: 1rem; margin-bottom: 12px; }
html body .profile-page--reference .profile-section-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; }
html body .profile-page--reference .profile-section-tabs a { display: flex; justify-content: center; align-items: center; min-height: 48px; padding: 8px 4px; border: 1px solid var(--color-secondary); border-radius: 10px; font: 700 .75rem/1.4 var(--font-body); text-align: center; overflow-wrap: anywhere; }
html body .profile-page--reference .profile-section-tabs a:is(:hover, :focus-visible) { background: var(--color-secondary); color: #fff; }
html body .profile-page--reference .navigation-section > h2 { font-size: clamp(1rem, 2.5vw, 1.4rem); margin: 0 0 16px; }
html body .profile-page--reference .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
html body .profile-page--reference .team-option { min-width: 0; min-height: 112px; padding: 12px 6px; gap: 8px; border: 1px solid var(--color-border); border-radius: 12px; background: rgb(5 6 18 / 80%); }
html body .profile-page--reference .team-option img { width: 56px; height: 56px; }
html body .profile-page--reference .team-option span { font: 800 .8rem/1.4 var(--font-body); }
html body .profile-page--reference .team-option:has(input:checked) { border-color: var(--color-primary); box-shadow: 0 0 0 2px var(--color-primary), 0 0 15px rgb(245 196 81 / 25%); }
html body .profile-page--reference :is(#picks, #arcade, .profile-footer-actions) { padding: 18px; border: 1px solid var(--color-border); border-radius: 14px; background: rgb(5 6 18 / 80%); }
html body .profile-page--reference .profile-footer-actions { margin: 0; }
html body .profile-page--reference .arcade-moment-settings { grid-template-columns: minmax(0, 1fr); }
html body .profile-page--reference a:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 4px; }
@media (min-width: 700px) {
    html body .profile-page--reference .team-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    html body .profile-page--reference { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    html body .profile-page--reference > :is(header, nav, #overview, #team, .alert, .profile-footer-actions) { grid-column: 1 / -1; }
}

/* My Picks: a readable history row; closed states have no action. */
html body .profile-page--reference .profile-pick-list { display: grid; gap: 0; overflow: hidden; border: 1px solid var(--color-border); border-radius: 12px; background: #050b16; }
html body .profile-page--reference .profile-pick-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(88px, 40%); gap: 12px; padding: 14px 12px; border: 0; border-bottom: 1px solid var(--color-border); border-radius: 0; background: transparent; font-family: var(--font-body); }
html body .profile-page--reference .profile-pick-row__identity { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
html body .profile-page--reference .profile-pick-row__identity img { flex: 0 0 36px; object-fit: contain; }
html body .profile-page--reference .profile-pick-row h3 { margin: 0 0 6px; font: 800 .9rem/1.4 var(--font-body); overflow-wrap: anywhere; }
html body .profile-page--reference .profile-pick-row :is(time, .profile-pick-row__state) { display: block; color: var(--color-muted); font: 400 .75rem/1.5 var(--font-body); }
html body .profile-page--reference .profile-pick-row__outcome { display: grid; justify-items: end; align-content: center; gap: 6px; min-width: 0; text-align: right; }
html body .profile-page--reference .profile-pick-row__choice { max-width: 100%; padding: 3px 8px; border: 1px solid var(--color-secondary); border-radius: 6px; color: #e7baff; font: 700 .75rem/1.5 var(--font-body); overflow-wrap: anywhere; }
html body .profile-page--reference .profile-pick-row__reward strong { display: flex; align-items: center; justify-content: end; gap: 4px; font: 800 1rem/1.4 var(--font-body); }
html body .profile-page--reference .profile-pick-row__reward small { display: block; font: 400 .7rem/1.4 var(--font-body); overflow-wrap: anywhere; }
html body .profile-page--reference .profile-pick-row__reward--earned { color: #21e89b; }
html body .profile-page--reference .profile-pick-row__reward--potential { color: #ffb45a; }
html body .profile-page--reference .profile-pick-row__action { display: flex; align-items: center; justify-content: end; gap: 8px; min-height: 44px; color: #fff; font: 700 .75rem/1.4 var(--font-body); overflow-wrap: anywhere; }

html body .profile-page--reference .profile-pick-row__choice-label { color: var(--color-muted); font: 400 .65rem/1.4 var(--font-body); }
html body .profile-page--reference .profile-pick-row__result { color: #fff; font: 400 .7rem/1.4 var(--font-body); overflow-wrap: anywhere; }
html body .profile-page--reference .profile-pick-row__reward--earned:has(strong) { max-width: 100%; }

/* Large end-of-season balances must remain one readable number in Profile's shell. */
html body:has(.profile-page--reference) .app-coin-counter strong { font: 800 .9rem/1.2 var(--font-body); white-space: nowrap; }

html body .profile-page--reference .profile-pick-row:last-child { border-bottom: 0; }
html body .profile-page--reference .profile-pick-row__identity .profile-pick-row__choice { display: inline-block; margin: 0 0 6px; }
html body .profile-page--reference .profile-pick-row__publication { color: var(--color-muted); font: 400 .65rem/1.4 var(--font-body); overflow-wrap: anywhere; }
html body .profile-page--reference .profile-pick-row__reward strong { display: block; font-size: .9rem; overflow-wrap: anywhere; }

html body .profile-page--reference .profile-breadcrumb[hidden] { display: none; }

/* Keep the upcoming sound option discoverable while visibly unavailable. */
html body .profile-page--reference .arcade-moment-settings__audio:has(input:disabled) {
    color: #92929f;
    background: #171820;
    border-color: #454552;
    box-shadow: none;
    cursor: not-allowed;
}
html body .profile-page--reference .arcade-moment-settings__audio input:disabled {
    accent-color: #92929f;
    opacity: .55;
    cursor: not-allowed;
}
html body .profile-page--reference .arcade-moment-settings__audio:has(input:disabled) span {
    color: inherit;
}
