/* V576: shared profile layout and state indicators. */
.v576-theme-links{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.v576-collapsed>summary{cursor:pointer;font-weight:750;list-style:revert;padding:4px 0}
.v576-collapsed[open]>summary{margin-bottom:14px}
[data-v491-preview-open]{cursor:zoom-in}
[data-v491-preview-open]:focus-visible{outline:2px solid var(--accent,#f59e0b);outline-offset:5px}
html body .profile-layout-clean{grid-template-columns:minmax(0,1fr)!important}
html body .profile-layout-clean .profile-side{position:static!important;grid-row:auto}
html body .profile-layout-clean .profile-main-stack{min-width:0}
html body .profile-hero>div:first-child{flex:1;min-width:0}
html body .profile-hero>.profile-avatar-large.oct15-avatar-shell{display:grid!important;place-items:center;position:relative!important;overflow:visible!important;--v576-avatar-size:clamp(160px,20vw,240px);width:var(--v576-avatar-size)!important;height:var(--v576-avatar-size)!important;min-width:var(--v576-avatar-size)!important;min-height:var(--v576-avatar-size)!important;max-width:var(--v576-avatar-size)!important;max-height:var(--v576-avatar-size)!important;flex:0 0 var(--v576-avatar-size)!important}
html body .profile-hero>.profile-avatar-large.oct15-avatar-shell>.oct15-avatar-core{position:absolute!important;inset:var(--v576-avatar-inset,calc((100% - var(--avatar-core-ratio,66%))/2))!important;width:auto!important;height:auto!important;max-width:none!important;max-height:none!important;overflow:hidden!important;border-radius:50%!important;display:grid!important;place-items:center!important}
html body .profile-hero>.profile-avatar-large.oct15-avatar-shell[data-avatar-frame="none"]{--v576-avatar-inset:4%}
html body .profile-hero>.profile-avatar-large.oct15-avatar-shell[data-avatar-frame="sable_winter"]{--v576-avatar-inset:5%}
html body .profile-hero>.profile-avatar-large.oct15-avatar-shell>.oct15-avatar-core>img{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important}
html body .progress-subject-card{grid-template-rows:1fr auto auto!important;align-content:stretch!important}
html body .progress-subject-card>.row-chevron{grid-column:1/-1!important;grid-row:3!important;position:static!important;justify-self:end!important;align-self:end!important;margin:0!important;transform:none!important;float:none!important;inset:auto!important}
html body .progress-subject-card>.track{grid-column:1/-1!important;grid-row:2!important;align-self:end!important}
html body[data-oct30-preview="1"] .progress-subject-card>.row-chevron{justify-self:end!important;grid-column:1/-1!important}
html body .developer-appearance-card,html body .sakura-v458-settings{width:100%!important;max-width:none!important;box-sizing:border-box!important;margin-inline:auto!important}
html body .developer-appearance-card .developer-effect-options input:checked+span{outline:2px solid var(--accent,#f59e0b)!important;outline-offset:1px;font-weight:850!important}
html body .developer-appearance-card .developer-effect-options input:checked+span::after{content:" ✓";color:inherit;font-weight:900}
html body .developer-appearance-card .developer-effect-options input:focus-visible+span{outline:2px dashed var(--accent,#f59e0b)!important;outline-offset:3px}
[data-v576-grant-search]{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin-top:16px}
[data-v576-grant-search]>label:first-child{flex:2 1 260px}
[data-v576-grant-search]>label:nth-child(2){flex:1 1 160px}
[data-v576-grant-search] input,[data-v576-grant-search] select{width:100%}
[data-v576-grant-results] .dev-user-row{gap:10px}
[data-v576-grant-results] .dev-user-row>a{flex-shrink:0}
/* Keep selected radio visible in both skins and all external themes. */
html body[data-external-theme="1"]:not(#__pack_ui_guard) .lab2-main :is(.ui-settings-panel,.v498-frame-card,.profile-appearance-card,.profile-main-stack .profile-card,.cosmetic-admin,.profile-hero,.v491-frame-dialog){background:var(--card)!important;background-image:none!important;border-color:var(--line)!important;color:var(--text)!important;box-shadow:var(--shadow)!important}
html body[data-external-theme="1"]:not(#__pack_ui_guard) .lab2-main .v498-frame-card.is-selected{background:color-mix(in srgb,var(--card2) 80%,var(--accent))!important;border-color:var(--accent)!important;outline:1px solid var(--accent)!important}
html body[data-external-theme="1"]:not(#__pack_ui_guard) :is(.v450-profiler-toggle,.v547-fps-toggle,.v450-profiler-panel,.v547-fps-panel,.staging-performance-hud,.staging-performance-metric,.developer-impersonation-bar){background:var(--card2)!important;background-image:none!important;border-color:var(--line-strong)!important;color:var(--text)!important}
html body[data-external-theme="1"]:not(#__pack_ui_guard) .academic-desktop-more>summary{background:transparent!important;border:1px solid transparent!important;border-radius:10px!important;min-width:44px;padding:8px 12px!important;box-shadow:none!important}
html body[data-external-theme="1"]:not(#__pack_ui_guard) .academic-desktop-more[open]>summary,html body[data-external-theme="1"]:not(#__pack_ui_guard) .academic-desktop-more>summary:hover{background:var(--card2)!important;border-color:var(--line)!important}
html body[data-external-theme="1"]:not(#__pack_ui_guard) .developer-appearance-card .developer-effect-options input:checked+span{background:var(--pack-action)!important;color:var(--pack-action-ink)!important;border-color:var(--accent)!important;outline-color:var(--accent)!important;-webkit-text-fill-color:var(--pack-action-ink)!important}
html body[data-external-theme="1"]:not(#__pack_ui_guard) .developer-toggle input:checked+span{background:var(--pack-action)!important;border-color:var(--accent)!important}
html body[data-external-theme="1"]:not(#__pack_ui_guard) .developer-range-row output{color:var(--accent)!important}
@media(max-width:680px){html body .profile-hero>.profile-avatar-large.oct15-avatar-shell{--v576-avatar-size:min(54vw,210px)}html body .profile-hero{flex-direction:column-reverse!important;align-items:center!important}html body .progress-subject-card{grid-template-columns:minmax(0,1fr) auto!important;gap:10px!important}html body .progress-subject-card>.row-chevron{width:34px;height:34px} [data-v576-grant-results] .dev-user-row{flex-wrap:wrap;height:auto!important}}

@media(max-width:680px){html body[data-oct30-preview="1"] .profile-hero{grid-template-columns:minmax(0,1fr)!important;justify-items:center!important}html body[data-oct30-preview="1"] .profile-hero>.profile-avatar-large{grid-row:1}}
html body[data-external-theme="1"]:not(#__pack_ui_guard) .v498-frame-variant input:checked+span{background:var(--pack-action)!important;color:var(--pack-action-ink)!important;border-color:var(--accent)!important}
html body[data-external-theme="1"]:not(#__pack_ui_guard) .v498-frame-card.is-selected .v498-frame-choice-hint{color:var(--accent)!important}
html body[data-external-theme="1"]:not(#__pack_ui_guard) :is(.v450-profiler-panel,.v547-fps-panel) :is(button,.v450-profiler-numbers>div,.v547-fps-actions>button){background:var(--card)!important;color:var(--text)!important;border-color:var(--line)!important}
html body[data-external-theme="1"]:not(#__pack_ui_guard) .navbar #ucp-bell-open{background:var(--card2)!important;border-color:var(--line)!important;color:var(--text)!important}
html body[data-external-theme="1"]:not(#__pack_ui_guard) .academic-desktop-more>summary::before,html body[data-external-theme="1"]:not(#__pack_ui_guard) .academic-desktop-more>summary::after{background:none!important;box-shadow:none!important}
/* Range controls use the active theme accent, not the historical orange. */
html body .developer-appearance-card .developer-range::-webkit-slider-runnable-track{background:color-mix(in srgb,var(--accent,#f59e0b) 36%,var(--card2,#242b39))!important;border-color:var(--line)!important}
html body .developer-appearance-card .developer-range::-webkit-slider-thumb{background:var(--accent,#f59e0b)!important;border-color:var(--text,#fff)!important;box-shadow:none!important}
html body .developer-appearance-card .developer-range::-moz-range-track{background:color-mix(in srgb,var(--accent,#f59e0b) 36%,var(--card2,#242b39))!important;border-color:var(--line)!important}
html body .developer-appearance-card .developer-range::-moz-range-progress{background:var(--accent,#f59e0b)!important}
html body .developer-appearance-card .developer-range::-moz-range-thumb{background:var(--accent,#f59e0b)!important;border-color:var(--text,#fff)!important;box-shadow:none!important}
html body .developer-appearance-card .developer-range-row output{color:var(--accent,#f59e0b)!important}
.v576-appearance-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.v576-appearance-heading h2{margin:0}
