/* Shared compact visual language: identity, context and a clear action footer. */
.modern-shell{--card-bg:#242127;--card-border:#443c49;--card-muted:#bdb6c3;--card-radius:14px}
.modern-shell #workspace{padding-top:16px}
.modern-shell :is(.member-card,.list-card,.setlist-picker,.song-context,.portal-band-page,.profile-account,.push-settings){border-radius:var(--card-radius);border-color:var(--card-border)}
.modern-shell :is(.member-card,.list-card,.setlist-picker,.song-context){background:var(--card-bg);padding:14px}
.modern-shell :is(h2,h3){letter-spacing:0;font-weight:600}
.modern-shell .category-toggles{gap:8px;margin-bottom:10px}
.modern-shell .category-toggles .btn{border-radius:10px;font-weight:600;box-shadow:none}
.modern-shell .category-toggles [aria-pressed=true]{background:#492630;border-color:#cf7187;box-shadow:inset 0 -2px #cf7187}
.modern-shell :is(.form-field input,.form-field select,.form-field textarea,.clearable-field input){border-radius:10px}
.modern-shell :is(.page-tabs,.portal-tabs){gap:12px;margin-block:10px 16px}
.modern-shell .page-tabs>a{padding-block:8px;min-height:44px}
.modern-shell #portal-songs{display:grid;gap:10px}
:is(.modern-shell,.landing-shell) .song-row,:is(.modern-shell,.landing-shell) .song-row:not(.has-votes){display:grid;grid-template-columns:max-content minmax(0,1fr);gap:10px 8px;padding:14px;min-height:0;margin:0;border:1px solid var(--card-border);border-radius:var(--card-radius);background:var(--card-bg);align-items:start}
:is(.modern-shell,.landing-shell) .song-row.song-context-personal{background:#292125;border-color:#80505b}
:is(.modern-shell,.landing-shell) .song-row.song-context-band{background:#242129;border-color:#74567c}
:is(.modern-shell,.landing-shell) .song-row.song-context-personal.song-context-band{background:#29222c;border-color:#805e74}
:is(.modern-shell,.landing-shell) .song-row>.song-main{grid-column:1/-1;grid-row:1;position:relative;min-width:0;min-height:52px;border-bottom:1px solid var(--card-border);padding-bottom:10px}
:is(.modern-shell,.landing-shell) .song-row .song-title-row{padding-left:60px;display:flex;flex-wrap:wrap;gap:4px 8px;align-items:start;margin:0 0 2px;min-height:0}
:is(.modern-shell,.landing-shell) .song-row .song-title-row :is(h2,h3){font-size:1.05rem;font-weight:500;line-height:1.3;letter-spacing:0;flex:1;min-width:min(140px,100%)}
:is(.modern-shell,.landing-shell) .song-row .song-title-row .song-tags{max-width:100%;margin:0 0 0 auto;gap:4px}
:is(.modern-shell,.landing-shell) .song-row .song-tags .song-badge{font-size:.68rem;padding:3px 6px;border-radius:6px}
:is(.modern-shell,.landing-shell) .song-row .song-artist-line{display:flex;align-items:center;min-height:26px;padding-left:60px;gap:0;font-size:.9rem;line-height:1.4;color:var(--card-muted)}
:is(.modern-shell,.landing-shell) .song-row .song-artist-line .entity-avatar{position:absolute;left:0;top:0;width:48px;min-width:48px;height:48px;border-radius:11px;font-size:1rem;background:#432b38;color:#f1a6b7}
:is(.modern-shell,.landing-shell) .song-row .song-context-info{margin-top:12px;min-width:0}
:is(.modern-shell,.landing-shell) .song-row .song-context-info>p{font-size:.82rem;line-height:1.45;margin:0 0 8px;color:var(--card-muted)}
:is(.modern-shell,.landing-shell) .song-row .song-proposer strong{color:#d2cbd8;font-weight:600}
:is(.modern-shell,.landing-shell) .song-row>.song-votes{grid-column:1;grid-row:2;justify-self:start;align-self:start}
:is(.modern-shell,.landing-shell) .song-row>.song-actions,:is(.modern-shell,.landing-shell) .song-row:not(.has-votes)>.song-actions{grid-column:2;grid-row:2;align-self:start;display:flex;flex-direction:row;flex-wrap:wrap;align-items:flex-start!important;justify-content:flex-end;gap:4px;min-width:0}
:is(.modern-shell,.landing-shell) .song-row>.song-actions>.song-sharing{width:auto;max-width:100%;min-height:44px;gap:4px;align-self:start;flex-wrap:wrap}
:is(.modern-shell,.landing-shell) .song-row .song-actions .btn{background:transparent;border-color:transparent;border-radius:9px;padding:8px;color:#c8bfce;box-shadow:none}
:is(.modern-shell,.landing-shell) .song-row .song-actions .btn:hover{background:#3c303e;color:#f4eaf5}
:is(.modern-shell,.landing-shell) .song-row .song-actions .btn .bi{font-size:1.2rem}
:is(.modern-shell,.landing-shell) .song-row .song-actions .setlist-controls>div{gap:4px}
:is(.modern-shell,.landing-shell) .song-row:not(.has-votes)>.song-actions{grid-column:1/-1}
:is(.modern-shell,.landing-shell) .song-row:not(:has(>.song-actions button)):not(.has-votes)>.song-main{border-bottom:0;padding-bottom:0}
/* One meter only. No visible duplicate ratings or member counters. */
.modern-shell .level-summary{display:block;margin:10px 0 0;width:100%;line-height:0}
.modern-shell .level-summary meter{display:block;width:100%;height:6px;border:0;border-radius:999px;overflow:hidden;background:#4a414f;appearance:none;-webkit-appearance:none}
.modern-shell .level-summary meter::-webkit-meter-bar{background:#4a414f;border:0;border-radius:999px;box-shadow:none}
.modern-shell .level-summary meter::-webkit-meter-optimum-value{background:#bd8ecb;border-radius:999px}
.modern-shell .level-summary meter::-moz-meter-bar{background:#bd8ecb;border-radius:999px}
/* Side-by-side vote pills, with each count inside its own touch target. */
:is(.modern-shell,.landing-shell) .song-row .vote-controls{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;align-items:center;width:auto;gap:8px}
:is(.modern-shell,.landing-shell) .song-row .vote-controls .vote-column{display:flex;position:relative;width:68px;min-width:68px;height:44px;min-height:44px;gap:0}
:is(.modern-shell,.landing-shell) .song-row .vote-controls .vote-column>:is(.btn,.vote-own){display:flex;align-items:center;justify-content:flex-start;width:68px;min-width:68px;height:44px;min-height:44px;padding:7px 30px 7px 10px;border:1px solid transparent;border-radius:10px;margin:0;font-size:1.25rem;background:#302b33;color:#c5bdca;box-shadow:none}
:is(.modern-shell,.landing-shell) .song-row .vote-controls .vote-column[data-vote=no]>:is(.btn,.vote-own){background:#302b33;color:#c5bdca}
:is(.modern-shell,.landing-shell) .song-row .vote-controls .vote-column>[aria-pressed=true]{border-color:currentColor;box-shadow:inset 0 -2px currentColor}
:is(.modern-shell,.landing-shell) .song-row .vote-controls .vote-column>.btn:hover{filter:brightness(1.15)}
:is(.modern-shell,.landing-shell) .song-row .vote-controls .vote-column>.vote-count{position:absolute;left:auto;right:10px;top:50%;transform:translateY(-50%);margin:0;font-size:.82rem;font-weight:600;line-height:1.2;color:#c5bdca;pointer-events:none}
:is(.modern-shell,.landing-shell) .song-row .vote-controls .vote-column[data-vote=no]>.vote-count{color:#c5bdca}
@media(max-width:380px){:is(.modern-shell,.landing-shell) .song-row{padding:12px;gap:10px 6px}:is(.modern-shell,.landing-shell) .song-row .song-title-row{padding-left:54px}:is(.modern-shell,.landing-shell) .song-row .song-artist-line{padding-left:54px}:is(.modern-shell,.landing-shell) .song-row .song-artist-line .entity-avatar{width:44px;min-width:44px;height:44px}:is(.modern-shell,.landing-shell) .song-row .vote-controls .vote-column,:is(.modern-shell,.landing-shell) .song-row .vote-controls .vote-column>:is(.btn,.vote-own){width:62px;min-width:62px}}
@media print{:is(.modern-shell,.landing-shell) .song-row{display:block;border:0;background:transparent;box-shadow:none}:is(.modern-shell,.landing-shell) .song-row>.song-main{border:0}:is(.modern-shell,.landing-shell) .song-row .song-title-row,:is(.modern-shell,.landing-shell) .song-row .song-artist-line{padding-left:0}:is(.modern-shell,.landing-shell) .song-row .song-artist-line .entity-avatar{display:none!important}:is(.modern-shell,.landing-shell) .song-row>.song-votes,:is(.modern-shell,.landing-shell) .song-row>.song-actions{display:none!important}}

/* The opposite choice looks inactive; changing an explicit vote remains allowed. */
.modern-shell .vote-controls .vote-column.vote-unselected>:is(.btn,.vote-own),:is(.modern-shell,.landing-shell) .song-row .vote-controls .vote-column.vote-unselected>:is(.btn,.vote-own){background:#302b33;color:#c5bdca;border-color:transparent;box-shadow:none}
.modern-shell .vote-controls .vote-column.vote-unselected>.vote-count,:is(.modern-shell,.landing-shell) .song-row .vote-controls .vote-column.vote-unselected>.vote-count{color:#c5bdca}
.modern-shell .vote-controls .vote-column.vote-selected>.vote-own{border-color:currentColor;box-shadow:inset 0 -2px currentColor}

.modern-shell.track-page .vote-controls .vote-column.vote-selected>.vote-own{background:#3d242b;color:var(--text)}

/* Profile repertoire cards need the same breathing room as band and explore lists. */
.modern-shell #personal-entries{display:grid;gap:12px}.modern-shell #personal-entries>.personal-song{margin:0}.modern-shell .personal-song .personal-preparation-progress{margin:2px 0 12px}.modern-shell .personal-song .personal-preparation-progress meter{height:6px}.instrument-order{list-style:none;padding:0;margin:8px 0;display:grid;gap:8px}.instrument-order>li{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid var(--line)}.instrument-order>li>span{overflow-wrap:anywhere}.instrument-order>li>div{display:flex;gap:4px}.instrument-order button{min-width:44px;min-height:44px;padding:8px}.profile-instruments [data-do=order-instruments]{margin-left:4px}

/* One profile editor, quiet tags and compact local filters. */
.profile-identity{display:flex;gap:8px;align-items:center;justify-content:space-between;margin:12px 0 20px}.profile-identity .profile-instruments{margin:0;min-width:0}.profile-identity>.icon-action{flex-shrink:0}.instrument-label{display:inline-block}.profile-instrument-editor .instrument-order>li{grid-template-columns:44px minmax(0,1fr) auto;gap:4px}.instrument-order .instrument-grip{touch-action:none;cursor:grab}.instrument-order .is-dragging{opacity:.6;outline:1px solid var(--accent)}.add-profile-instrument{border:1px dashed var(--line);width:100%;margin-top:8px;text-align:left}.instrument-picker{border:1px solid var(--line);border-radius:10px;padding:10px;margin-top:8px}.instrument-picker [role=listbox]{max-height:220px;overflow:auto;display:grid;gap:2px}.instrument-picker [role=option]{min-height:44px;display:flex;justify-content:space-between;gap:8px;padding:8px 12px;text-align:left;border:0;border-radius:6px;background:transparent;color:var(--text)}.instrument-picker [role=option]:hover:not(:disabled),.instrument-picker [role=option]:focus-visible{background:#43252e}.instrument-picker [role=option]:disabled{color:var(--muted);opacity:.7}.personal-filters{margin:8px 0 16px}.personal-filters>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-size:.9rem}.personal-filter-fields{display:flex;gap:10px;align-items:end;flex-wrap:wrap}.personal-filter-fields .form-field{flex:1 1 180px;min-width:0}.personal-filter-fields select{width:100%;min-height:44px}.personal-filter-fields>button{margin-bottom:12px}@media(max-width:400px){.profile-instrument-editor .instrument-order>li>div{gap:0}.profile-instrument-editor .instrument-order button{padding:6px}.profile-instrument-editor .instrument-order>li{font-size:.85rem}}

.member-activity{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;margin-top:8px;color:var(--muted);font-size:.8rem}.member-activity>span{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}

#discovery-status{min-height:24px}#discovery-status [data-search-state]{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;color:var(--muted)}#discovery-status [data-search-state=loading] .bi{animation:search-spin 1s linear infinite}@keyframes search-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){#discovery-status [data-search-state=loading] .bi{animation:none}}

/* The highlighted segment is the user's weighted share of this same total. */
.modern-shell .level-summary{position:relative}
.modern-shell .level-summary .preparation-contribution{position:absolute;left:0;top:0;bottom:0;margin:0;min-width:0;border-radius:999px;background:repeating-linear-gradient(135deg,#ef8f9f 0 3px,#9e374d 3px 5px);pointer-events:none}
@media(forced-colors:active){.modern-shell .level-summary .preparation-contribution{background:Highlight;border:1px solid CanvasText;box-sizing:border-box}}

.profile-instruments .instrument-filter-tag{display:inline-flex;align-items:center;gap:8px;max-width:100%;min-height:44px;text-align:left;white-space:normal}
.instrument-filter-tag .instrument-name{overflow-wrap:anywhere;min-width:0}.instrument-song-count{font-size:.75rem;font-variant-numeric:tabular-nums;line-height:1.4;padding:1px 6px;border-radius:999px;background:#332d36;color:var(--text);flex-shrink:0}
.instrument-filter-tag[aria-pressed=true]{border-color:var(--accent);box-shadow:inset 0 -3px var(--accent)}

.administration-page{max-width:1000px;margin:0 auto}.admin-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0 20px}.admin-stats>div{padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--panel);min-width:0}.admin-stats dt{font-size:.75rem;color:var(--muted)}.admin-stats dd{font-size:1.5rem;font-weight:600;margin:6px 0 0}.admin-section{margin:20px 0;padding-top:12px;border-top:1px solid var(--line)}.admin-section h2{font-size:1rem}.admin-section>summary,.admin-report-history>summary{min-height:44px;display:flex;align-items:center;cursor:pointer}.admin-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.admin-actions a:not(.btn){min-height:44px;display:inline-flex;align-items:center}.admin-report{border:1px solid var(--line);border-radius:10px;padding:12px;margin:10px 0;min-width:0}.admin-report h3{margin:0;font-size:.95rem;overflow-wrap:anywhere}.admin-report-meta{font-size:.75rem;color:var(--muted)}.admin-report-text,.admin-report-note{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5;font-size:.85rem}.admin-report-note{border-left:2px solid var(--accent);padding-left:8px}.admin-report-history{font-size:.8rem;color:var(--muted);overflow-wrap:anywhere}.admin-section li{margin:10px 0;overflow-wrap:anywhere}.admin-pagination{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:.75rem}.admin-reports select{max-width:100%}.admin-section .btn{white-space:normal}@media(max-width:400px){.admin-stats{gap:6px}.admin-stats>div{padding:8px}.admin-stats dd{font-size:1.25rem}}

/* Shared song identity: badges never push the artist away from the title. */
:is(.modern-shell,.landing-shell) .song-row .song-identity{position:relative;display:grid;grid-template-columns:minmax(0,1fr) fit-content(110px);align-items:start;gap:8px;min-height:40px;padding-left:48px;margin:0}
.modern-shell .song-identity>.song-heading{grid-column:1;min-width:0}
:is(.modern-shell,.landing-shell) .song-row .song-identity .song-title-row{display:block;padding:0!important;margin:0 0 2px;min-height:0}
:is(.modern-shell,.landing-shell) .song-row .song-identity .song-title-row :is(h2,h3){min-width:0;margin:0;font-size:1rem;line-height:1.3;overflow-wrap:anywhere}
:is(.modern-shell,.landing-shell) .song-row .song-identity .song-artist-line{padding:0!important;min-height:0;font-size:.85rem;line-height:1.4;gap:0}
:is(.modern-shell,.landing-shell) .song-row .song-identity .song-artist-line>span:last-child{min-width:0;overflow-wrap:anywhere}
:is(.modern-shell,.landing-shell) .song-row .song-identity .song-artist-line .entity-avatar{position:absolute;left:0;top:0;width:40px;min-width:40px;height:40px;border-radius:9px;font-size:.85rem}
:is(.modern-shell,.landing-shell) .song-row .song-identity>.song-tags{position:static;grid-column:2;grid-row:1;display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:flex-end;align-self:start;min-width:0;max-width:110px;margin:0;gap:4px}
:is(.modern-shell,.landing-shell) .song-row .song-identity .personal-repertoire-tag{font-size:.7rem;line-height:1.25;padding:3px 5px;white-space:normal;overflow-wrap:anywhere}
:is(.modern-shell,.landing-shell) .song-row .song-context-info{margin-top:8px}
.modern-shell .setlist-detail .song-row .song-identity{padding-right:62px}
@media(max-width:400px){:is(.modern-shell,.landing-shell) .song-row .song-identity{grid-template-columns:minmax(0,1fr) fit-content(88px);gap:6px}:is(.modern-shell,.landing-shell) .song-row .song-identity>.song-tags{max-width:88px}}
@media print{.modern-shell .setlist-detail .song-row .song-identity{padding-right:0}}
:is(.modern-shell,.landing-shell) .song-row .song-identity .song-title-row :is(h2,h3),:is(.modern-shell,.landing-shell) .song-row .song-title-row :is(h2,h3)>a,:is(.modern-shell,.landing-shell) .song-row .song-identity .song-artist-line>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
:is(.modern-shell,.landing-shell) .song-row .song-title-row :is(h2,h3)>a{display:block;max-width:100%}

/* Explore reference: one identity block, quiet metadata and two vertical state controls. */
:is(.modern-shell,.landing-shell) .discovery-card.song-row{grid-template-columns:minmax(0,1fr) 44px!important;gap:12px;padding:12px 14px;border:1px solid #76505d;border-radius:16px;background:linear-gradient(115deg,#281b22,#181619);box-shadow:inset 3px 0 var(--accent);min-height:116px}
:is(.modern-shell,.landing-shell) .discovery-card.song-row>.song-main{align-self:center}
:is(.modern-shell,.landing-shell) .discovery-card.song-row>.song-actions{grid-column:2;align-self:center;justify-self:end}
:is(.modern-shell,.landing-shell) .discovery-card.song-row>.song-actions>.song-sharing{flex-direction:column;align-items:stretch;gap:6px;width:44px;min-height:0}
:is(.modern-shell,.landing-shell) .discovery-card.song-row .song-identity{grid-template-columns:minmax(0,1fr);padding-left:60px;min-height:48px;gap:0}
:is(.modern-shell,.landing-shell) .discovery-card.song-row .song-identity .song-artist-line .entity-avatar{width:48px;min-width:48px;height:48px;border-radius:12px;background:linear-gradient(135deg,#613042,#35212a);border:1px solid #704050;color:#ffd5df;font-size:1rem}
:is(.modern-shell,.landing-shell) .discovery-card.song-row .song-identity h2{font-size:1.08rem;line-height:1.3}
:is(.modern-shell,.landing-shell) .discovery-card.song-row .song-artist-line{color:var(--muted);font-size:.9rem}
:is(.modern-shell,.landing-shell) .discovery-card.song-row .song-context-info{padding-left:60px;margin-top:3px}
:is(.modern-shell,.landing-shell) .discovery-card.song-row .catalog-reference{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0;font-size:.82rem;color:var(--muted)}
.discovery-card .catalog-reference a{border-left:1px solid var(--line);padding-left:10px;text-underline-offset:3px}
.modern-shell .catalog-state-action,:is(.modern-shell,.landing-shell) .discovery-card .auth-required-action{width:44px;height:44px;min-width:44px;min-height:44px;padding:6px;border:1px solid #93828c;border-radius:10px;background:#221e23;color:#eee7eb;display:inline-flex;align-items:center;justify-content:center}
.modern-shell .catalog-state-action .bi,:is(.modern-shell,.landing-shell) .discovery-card .auth-required-action>.bi:first-child{font-size:1.35rem}
.modern-shell .catalog-state-action.is-saved{background:linear-gradient(140deg,#93435d,#512536);color:#fff5f8;border-color:#ed9db3;box-shadow:inset 0 1px 0 #ffffff24}
.modern-shell .catalog-state-action.is-saved:disabled{opacity:1;cursor:default}
.modern-shell .catalog-state-action:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
:is(.modern-shell,.landing-shell) .discovery-card [data-do=propose-selected]::after{content:none}
.public-page .discovery-search{max-width:none;margin:8px 0 12px}
.public-page .discovery-search input{min-height:54px;border:1px solid #ad758b;border-radius:13px;background:#1b171c;padding:12px 44px;font-size:1rem}
.public-page .discovery-search .search-field::before{content:"\f52a";font-family:bootstrap-icons;position:absolute;left:15px;top:50%;transform:translateY(-50%);color:var(--muted);pointer-events:none;font-size:1.2rem}
.public-page>.page-tabs{border-bottom:1px solid var(--line);gap:22px;margin:10px 0 14px;padding-bottom:0}
.public-page>.page-tabs>a{padding:10px 2px;border:0;border-bottom:3px solid transparent;border-radius:0;background:none;color:var(--muted)}
.public-page>.page-tabs>a[aria-current=page]{border-bottom-color:var(--accent);color:var(--text);font-weight:700}
.public-page #discovery-shuffle{display:inline-flex;align-items:center;gap:8px;border:1px solid #997384;border-radius:10px;background:linear-gradient(115deg,#342330,#221e25);padding:8px 12px}
.catalog-band-contexts{padding:0;list-style:none;display:grid;gap:12px}
.catalog-band-contexts li{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.catalog-band-contexts li>a{font-weight:650}.catalog-band-contexts small{color:var(--muted)}.catalog-band-contexts li>.btn{margin-left:auto}
@media(max-width:400px){:is(.modern-shell,.landing-shell) .discovery-card.song-row{padding:10px;gap:8px}:is(.modern-shell,.landing-shell) .discovery-card.song-row .song-identity{padding-left:48px}:is(.modern-shell,.landing-shell) .discovery-card.song-row .song-identity .song-artist-line .entity-avatar{width:40px;min-width:40px;height:44px}:is(.modern-shell,.landing-shell) .discovery-card.song-row .song-context-info{padding-left:48px}:is(.modern-shell,.landing-shell) .discovery-card.song-row .song-identity h2{font-size:1rem}}

/* Override the shared footer layout only for Explore's side action rail. */
:is(.modern-shell,.landing-shell) .discovery-card.song-row>.song-main{grid-column:1;grid-row:1;border-bottom:0;padding-bottom:0}
:is(.modern-shell,.landing-shell) .discovery-card.song-row:not(.has-votes)>.song-actions{grid-column:2;grid-row:1;align-self:center;flex-direction:column}
:is(.modern-shell,.landing-shell) .discovery-card.song-row .song-actions .catalog-state-action{background:#221e23;border:1px solid #93828c;color:#eee7eb;box-shadow:none}
:is(.modern-shell,.landing-shell) .discovery-card.song-row .song-actions .catalog-state-action.is-saved{background:linear-gradient(140deg,#93435d,#512536);border-color:#ed9db3;color:#fff5f8;box-shadow:inset 0 1px 0 #ffffff24}
:is(.modern-shell,.landing-shell) .discovery-card.song-row .song-actions .catalog-state-action .bi{font-size:1.35rem}

:is(.modern-shell,.landing-shell) .discovery-card.song-row.song-context-personal{background:linear-gradient(115deg,#2b2023,#191619);background-color:#2b2023}
:is(.modern-shell,.landing-shell) .discovery-card.song-row.song-context-band{background:linear-gradient(115deg,#28212e,#19161d);background-color:#25202c}
:is(.modern-shell,.landing-shell) .discovery-card.song-row.song-context-personal.song-context-band{background:linear-gradient(115deg,#2d202a,#1a171e);background-color:#2a2029}

/* Range inputs keep only their track; the inherited form field has no dark box. */
.modern-shell input.preparation-range{background:transparent!important;background-image:none!important;border:0;box-shadow:none;padding:0;border-radius:0}
.preparation-control{position:relative}
.preparation-preview{display:none;position:absolute;bottom:calc(100% + 6px);left:0;z-index:8;width:max-content;max-width:min(100%,400px);padding:8px 10px;border:1px solid var(--control-border);border-radius:8px;background:#30282e;color:#f8eff2;font-size:.8rem;line-height:1.4;box-shadow:0 4px 14px #0005;pointer-events:none;white-space:normal;overflow-wrap:anywhere}
.preparation-control.is-editing>.preparation-preview{display:block}

/* Keep vertical page pan; only a deliberate horizontal touch edits preparation. */
.modern-shell input.preparation-range{touch-action:pan-y pinch-zoom;user-select:none;-webkit-user-select:none}

.vote-reason-options{margin:12px 0 16px;padding:0;border:0;min-width:0}.vote-reason-options legend{font-size:.9rem;margin-bottom:6px}.vote-reason-options .checkbox{min-height:44px;padding:6px 0;align-items:center}.vote-reason-options input{flex-shrink:0}.vote-feedback-summary{margin-top:12px}.vote-feedback-details{font-size:.85rem;margin-top:8px}.vote-feedback-details summary{min-height:44px;cursor:pointer;display:flex;align-items:center}.vote-feedback-details article{padding:8px 0;border-top:1px solid var(--line)}.vote-feedback-details ul{margin:6px 0;padding-left:20px}.vote-feedback-details .song-notes{margin:6px 0;white-space:pre-wrap;overflow-wrap:anywhere}

/* Profile: compact visual chips with independent 44px touch targets. */
.modern-shell .profile-overview{display:grid;grid-template-columns:80px minmax(0,1fr);gap:16px;align-items:center;margin:4px 0 12px}
.modern-shell .profile-overview .profile-portrait{margin:0}.modern-shell .profile-overview .entity-avatar{width:80px;height:80px;border-radius:18px}
.profile-intro{min-width:0}.modern-shell .profile-intro h2{font-size:1.35rem;line-height:1.25;margin:0 0 6px;overflow-wrap:anywhere}.modern-shell .profile-intro .profile-bio{font-size:.9rem;line-height:1.5;margin:0;padding:0;text-align:left;min-height:44px;max-width:100%;color:var(--muted);background:transparent;border:0}
.modern-shell .unified-profile .profile-identity{align-items:center;gap:10px;margin:0 0 18px;padding-bottom:16px;border-bottom:1px solid var(--card-border)}
.modern-shell .profile-instruments{flex:1;gap:0 8px;align-items:center}.modern-shell .profile-instruments .instrument-filter-tag,.modern-shell .personal-song .instrument-chips .btn:not(.icon-action){position:relative;isolation:isolate;display:inline-flex;align-items:center;justify-content:flex-start;flex:0 1 auto;gap:8px;width:auto;min-width:0;max-width:100%;min-height:44px;margin:0;padding:6px 10px;border:0;background:transparent;box-shadow:none;border-radius:9px;font-size:.8125rem;line-height:1.3;color:var(--text)}
.modern-shell .profile-instruments .instrument-filter-tag:before,.modern-shell .personal-song .instrument-chips .btn:not(.icon-action):before{content:'';position:absolute;inset:5px 0;z-index:-1;background:#2d292f;border:1px solid #877a87;border-radius:9px;pointer-events:none}
.modern-shell .profile-instruments .instrument-filter-tag[aria-pressed=true]:before,.modern-shell .personal-song .instrument-chips .btn[aria-pressed=true]:not(.icon-action):before{border-color:#e58da4;background:#482b38;box-shadow:inset 0 -2px #e58da4}
.modern-shell .profile-instruments .instrument-filter-tag:hover:before,.modern-shell .personal-song .instrument-chips .btn:not(.icon-action):hover:before{background:#423340}
.modern-shell .profile-instruments .instrument-filter-tag:focus-visible,.modern-shell .personal-song .instrument-chips .btn:focus-visible{outline:2px solid var(--focus);outline-offset:1px}
.modern-shell .profile-instruments .instrument-song-count{font-size:.75rem;font-weight:650;line-height:20px;min-width:24px;height:20px;padding:0 5px;text-align:center;background:#514651;border-radius:999px}.modern-shell .profile-instruments .instrument-name{line-height:1.3}
.modern-shell .unified-profile .personal-library>.section-heading{margin:0 0 10px}.modern-shell .personal-library>.search-with-filters{margin-bottom:14px}
/* Full-width identity/preparation, instruments left and existing actions right. */
.modern-shell .personal-song.song-row,.modern-shell .personal-song.song-row:not(.has-votes){grid-template-columns:minmax(0,1fr) auto;gap:10px 8px;border-radius:16px}
.modern-shell .personal-song.song-row>.song-main,.modern-shell .personal-song.song-row .song-context-info{display:contents}
.modern-shell .personal-song.song-row .song-identity{grid-column:1/-1;grid-row:1;grid-template-columns:minmax(0,1fr);gap:0;min-height:44px;padding-left:54px}
.modern-shell .personal-song.song-row .song-identity>.song-tags{grid-column:1;grid-row:2;max-width:100%;width:100%;justify-content:flex-start;margin-top:6px}
.modern-shell .personal-song.song-row .song-identity .song-artist-line .entity-avatar{width:44px;min-width:44px;height:44px;border-radius:11px}
.modern-shell .personal-song.song-row .personal-list-preparation{grid-column:1/-1;grid-row:2;min-width:0;width:100%;max-width:100%;margin:0}
.modern-shell .personal-song.song-row .instrument-chips{grid-column:1;grid-row:3;align-self:center;gap:0 6px;margin:0;min-width:0}
.modern-shell .personal-song.song-row:not(.has-votes)>.song-actions{grid-column:2;grid-row:3;align-self:center;align-items:center!important;flex-wrap:nowrap;padding-left:6px;border-left:1px solid var(--card-border)}
.modern-shell .personal-song.song-row .song-actions .btn,.modern-shell .personal-song.song-row .instrument-chips>.icon-action{margin:0}
.modern-shell .personal-song.song-row .instrument-chips .suggested:before{border-style:dashed}
@media(max-width:360px){.modern-shell .profile-overview{grid-template-columns:64px minmax(0,1fr);gap:12px}.modern-shell .profile-overview .entity-avatar{width:64px;height:64px}.modern-shell .profile-intro h2{font-size:1.2rem}.modern-shell .personal-song.song-row{padding:10px}.modern-shell .profile-instruments .instrument-filter-tag{padding-inline:8px}}

/* Status is conveyed by name styling; no status words inside band tags. */
.modern-shell .band-song-tag[data-category="discarded"]{text-decoration:line-through;text-decoration-thickness:1.5px}
.modern-shell .band-song-tag[data-category="repertoire"]{font-weight:700;border-color:#d9bb6a;color:#f6e2a2}
/* Descriptions replace numeric captions, without changing stored values or track widths. */
.modern-shell .preparation-label{justify-content:flex-start;line-height:1.45;white-space:normal;overflow-wrap:anywhere}
.modern-shell .preparation-label output{font:inherit;color:inherit;white-space:normal}
.modern-shell .preparation-thresholds{display:none}

.preparation-control>.preparation-description{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0;padding:0}

.entity-avatar[data-artist-id]{position:relative;overflow:hidden}.entity-avatar>.artist-remote-image{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}.artist-image-credits{font-size:.75rem;color:var(--muted);margin-block:8px}.artist-image-credits summary{cursor:pointer;min-height:44px;display:flex;align-items:center}.artist-image-credits p{margin:4px 0}.artist-image-credits a{display:block;min-height:32px;overflow-wrap:anywhere}

/* Keep artist logos whole; only clients request remote artwork. */
.entity-avatar>.artist-remote-image.artist-remote-logo{object-fit:contain;background:#fff;padding:2px}
.artist-admin-preview{display:block;width:128px;height:128px;object-fit:contain;margin:0 auto 1rem;background:#fff;border-radius:8px}

/* Compact Explore search and a wrapping toolbar shared by both result tabs. */
.modern-shell .public-page .discovery-hero{padding:0;margin:0}
.public-page .discovery-search{margin:4px 0 6px;gap:6px}
.public-page .discovery-search input{height:50px;min-height:50px;padding:10px 44px}
.discovery-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 12px;margin:0 0 10px;min-width:0}
.modern-shell .discovery-toolbar .page-tabs{margin:0;gap:22px;flex:none}
.modern-shell .discovery-toolbar .page-tabs>a{padding:10px 2px;border:0;border-bottom:3px solid transparent;border-radius:0;background:none;color:var(--muted)}
.modern-shell .discovery-toolbar .page-tabs>a[aria-current=page]{border-bottom-color:var(--accent);color:var(--text);font-weight:700;box-shadow:none}
.public-page .discovery-toolbar #discovery-shuffle{min-height:44px;padding:6px 10px;font-size:.8rem;white-space:nowrap;margin-left:auto}
.discovery-toolbar:not(:has(>.page-tabs)),.public-page>.section-heading:has(>#discovery-heading:empty){display:none}
@media(max-width:399px){.public-page .discovery-toolbar #discovery-shuffle{margin-left:0}.discovery-toolbar{column-gap:24px}}

/* Stable band navigation and compact repertoire controls. */
.modern-shell.band-section-shell>.portal-header{height:64px;min-height:64px;flex-wrap:nowrap}
.modern-shell.band-section-shell #workspace{padding-top:4px}
.band-section-shell #workspace>.page-heading{display:none}
.modern-shell.band-section-shell #workspace>.page-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;width:100%;height:44px;min-height:44px;margin:0 0 8px;overflow:visible}
.modern-shell.band-section-shell #workspace>.page-tabs>a{display:flex;align-items:center;justify-content:center;min-width:0;height:44px;padding:6px 2px;font-size:.8125rem;line-height:1.2;white-space:nowrap}
.band-section-shell[data-view=songs] .repertoire>.section-heading:not(:has(button)){display:none}
.modern-shell.band-section-shell .category-toggles{gap:4px;margin:0 0 6px}
.modern-shell.band-section-shell .category-toggles>.btn{min-width:0;flex:1;padding:5px 4px;font-size:.75rem;font-weight:500;white-space:nowrap;box-shadow:none}
.modern-shell.band-section-shell .repertoire>label.search-with-filters{margin:0 0 8px;gap:8px}
.band-section-shell .search-with-filters input{height:44px;min-height:44px;padding-block:8px}
.band-section-shell .search-with-filters>.clearable-field{min-width:0}
.band-section-shell #portal-error:empty{display:none}
.modern-shell .personal-repertoire-slot>.catalog-state-action,.modern-shell .song-actions .personal-repertoire-slot>.catalog-state-action{width:44px;height:44px;min-width:44px;min-height:44px;padding:6px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #93828c;border-radius:10px;background:#221e23;color:#eee7eb}
:is(.modern-shell,.landing-shell) .song-row .personal-repertoire-slot>.catalog-state-action.is-saved,.modern-shell .personal-repertoire-slot>.catalog-state-action.is-saved{background:linear-gradient(140deg,#93435d,#512536);border-color:#ed9db3;color:#fff5f8;opacity:1;box-shadow:inset 0 1px 0 #ffffff24}
/* Color reflects the current user's decision, never the aggregate counts. */
.modern-shell .vote-controls .vote-column:not(.vote-selected)>:is(.btn,.vote-own){background:#302b33;color:#c5bdca;border-color:transparent;box-shadow:none}
.modern-shell .vote-controls .vote-column.vote-selected[data-vote=yes]>:is(.btn,.vote-own){background:#273e33;color:#9fe0b8;border:1px solid currentColor;box-shadow:inset 0 -2px currentColor}
.modern-shell .vote-controls .vote-column.vote-selected[data-vote=no]>:is(.btn,.vote-own){background:#432c38;color:#f0a1b6;border:1px solid currentColor;box-shadow:inset 0 -2px currentColor}
.modern-shell .vote-controls .vote-column.vote-selected[data-vote=yes]>.vote-count{color:#9fe0b8}
.modern-shell .vote-controls .vote-column.vote-selected[data-vote=no]>.vote-count{color:#f0a1b6}
