/* HWR compact song actions v2 — final layer; only opted-in song controls.
   Three 44px targets + two 2px gaps require 136px of available inline space.
   The ID in :is() intentionally outranks legacy generic !important rules. */
html[data-theme] body :is(#myHwrRoot,.hwr-feature-root,#weeklyStatsGrid) .hwr-song-actions,
html[data-theme] body .hwr-inline-preferences{
 display:inline-flex!important;flex-direction:row!important;flex-wrap:nowrap!important;
 align-items:center!important;justify-content:flex-start!important;gap:2px!important;
 flex:0 0 auto;box-sizing:border-box;min-width:max-content;width:max-content;
 padding:0!important;margin:0!important;white-space:nowrap;
}
html[data-theme] body :is(#myHwrRoot,.hwr-feature-root,#weeklyStatsGrid) .hwr-song-actions[hidden],
html[data-theme] body .hwr-inline-preferences[hidden]{display:none!important;}
html[data-theme] body :is(#myHwrRoot,.hwr-inline-preferences,.hwr-feature-root,#weeklyStatsGrid) button.hwr-action-icon:is([data-hwr-action-icon=playlist],[data-hwr-action-icon=save],[data-hwr-action-icon=follow],[data-hwr-action-icon=find])[type=button]{
 display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 44px!important;
 box-sizing:border-box;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;max-width:44px!important;max-height:44px!important;
 padding:13px!important;margin:0!important;position:relative!important;inset:auto!important;clip:auto!important;clip-path:none!important;
 opacity:1!important;visibility:visible!important;overflow:visible!important;
 border:0!important;border-radius:var(--hwr-radius-control,8px)!important;
 background:transparent!important;background-image:none!important;color:var(--text,#101828)!important;
 line-height:1!important;text-align:center!important;cursor:pointer;touch-action:manipulation;
 box-shadow:none!important;filter:none!important;transform:none!important;will-change:auto!important;
 transition:background-color 140ms ease,color 140ms ease!important;
}
html[data-theme] body :is(#myHwrRoot,.hwr-inline-preferences,.hwr-feature-root,#weeklyStatsGrid) button.hwr-action-icon:is([data-hwr-action-icon=playlist],[data-hwr-action-icon=save],[data-hwr-action-icon=follow],[data-hwr-action-icon=find])[type=button]:is(:hover,:active){
 background:var(--surface2,#eef3f8)!important;color:var(--text,#101828)!important;
 box-shadow:none!important;filter:none!important;transform:none!important;
}
html[data-theme] body :is(#myHwrRoot,.hwr-inline-preferences,.hwr-feature-root,#weeklyStatsGrid) button.hwr-action-icon:is([data-hwr-action-icon=playlist],[data-hwr-action-icon=save],[data-hwr-action-icon=follow],[data-hwr-action-icon=find])[type=button]:focus-visible{
 outline:2px solid var(--text,#101828)!important;outline-offset:2px!important;
 background:var(--surface2,#eef3f8)!important;color:var(--text,#101828)!important;box-shadow:none!important;
}
html[data-theme] body :is(#myHwrRoot,.hwr-inline-preferences,.hwr-feature-root,#weeklyStatsGrid) button.hwr-action-icon:is([data-hwr-action-icon=playlist],[data-hwr-action-icon=save],[data-hwr-action-icon=follow],[data-hwr-action-icon=find])[type=button] .hwr-icon{
 display:block;width:18px!important;height:18px!important;flex:none;pointer-events:none;fill:none;
}
html[data-theme] body :is(#myHwrRoot,.hwr-inline-preferences,.hwr-feature-root,#weeklyStatsGrid) button.hwr-action-icon:is([data-hwr-action-icon=playlist],[data-hwr-action-icon=save],[data-hwr-action-icon=follow],[data-hwr-action-icon=find])[type=button] .hwr-icon path{fill:none;}
html[data-theme] body :is(#myHwrRoot,.hwr-inline-preferences,.hwr-feature-root,#weeklyStatsGrid) button.hwr-action-icon[data-hwr-action-icon=save][type=button][aria-pressed=true] .hwr-icon path{fill:currentColor;}
html[data-theme] body :is(#myHwrRoot,.hwr-inline-preferences,.hwr-feature-root,#weeklyStatsGrid) button.hwr-action-icon:is([data-hwr-action-icon=playlist],[data-hwr-action-icon=save],[data-hwr-action-icon=follow],[data-hwr-action-icon=find])[type=button]:disabled{opacity:.55!important;cursor:not-allowed;}
html[data-theme] body :is(#myHwrRoot,.hwr-inline-preferences,.hwr-feature-root,#weeklyStatsGrid) button.hwr-action-icon:is([data-hwr-action-icon=playlist],[data-hwr-action-icon=save],[data-hwr-action-icon=follow],[data-hwr-action-icon=find])[type=button][hidden]{display:none!important;}
@media(prefers-reduced-motion:reduce){
 html[data-theme] body :is(#myHwrRoot,.hwr-inline-preferences,.hwr-feature-root,#weeklyStatsGrid) button.hwr-action-icon:is([data-hwr-action-icon=playlist],[data-hwr-action-icon=save],[data-hwr-action-icon=follow],[data-hwr-action-icon=find])[type=button]{transition:none!important;animation:none!important;}
}
@media(forced-colors:active){
 html[data-theme] body .hwr-action-icon{forced-color-adjust:auto;}
}
/* Compact additional-song heading uses the existing Pulse h4 typography. */
html[data-theme] body #pendingRequestedArea>h4{white-space:nowrap!important;line-height:1.25!important;}
html[data-theme] body #pendingRequestedArea>[data-pending-note][hidden]{display:none!important;}
/* Up Next actions are layout-only wrappers, never schedule badges/cards.
   Keep button hover/focus/pressed states in the shared rules above. */
html[data-theme] body #upNextList .hwr-inline-preferences{
 background:transparent!important;background-image:none!important;
 border:0!important;border-radius:0!important;box-shadow:none!important;
 outline:0!important;filter:none!important;
}
html[data-theme] body #upNextList .hwr-inline-preferences::before,
html[data-theme] body #upNextList .hwr-inline-preferences::after{content:none!important;}
/* Request/queue four-action contract: direct child .hwr-inline-preferences.
   Reserve 182px for four 44px targets and 2px gaps, never clip the row.
   Metadata keeps its own shrinking column; optional disclosures stay in copy. */
html[data-theme] body #recentList .pulse-recent-row{
 grid-template-columns:40px minmax(0,1fr) max-content!important;
 column-gap:8px!important;
}
html[data-theme] body #recentList .pulse-recent-row>.pulse-recent-main{grid-column:2!important;grid-row:1!important;min-width:0!important;}
html[data-theme] body #recentList .pulse-recent-row>img{grid-column:1!important;grid-row:1/3!important;}
html[data-theme] body #recentList .pulse-recent-row>time{grid-column:2!important;grid-row:2!important;justify-self:start!important;}
html[data-theme] body #upNextList .up-next-feature{grid-template-columns:60px minmax(0,1fr) max-content!important;}
html[data-theme] body #upNextList .up-next-feature>.up-next-feature-art{width:60px!important;height:60px!important;min-width:60px!important;max-width:60px!important;}
html[data-theme] body #upNextList .up-next-feature>.up-next-feature-copy{grid-column:2!important;grid-row:1!important;min-width:0!important;}
html[data-theme] body #upNextList .up-next-feature>.hwr-inline-preferences{grid-column:3!important;grid-row:1!important;}
html[data-theme] body #upNextList .up-next-mini{grid-template-columns:24px 34px minmax(0,1fr) max-content!important;}
html[data-theme] body #upNextList .up-next-mini>.up-next-mini-copy{grid-column:3!important;grid-row:1!important;min-width:0!important;}
html[data-theme] body #upNextList .up-next-mini>:is(.up-next-position,img){grid-row:1/3!important;}
html[data-theme] body #upNextList .up-next-mini>.up-next-time{grid-column:3!important;grid-row:2!important;justify-self:start!important;}
html[data-theme] body #recentList .pulse-recent-row>.hwr-inline-preferences{grid-column:3!important;grid-row:1/3!important;}
html[data-theme] body #upNextList .up-next-mini>.hwr-inline-preferences{grid-column:4!important;grid-row:1/3!important;}
html[data-theme] body :is(#recentList,#upNextList) .hwr-inline-preferences{justify-self:end!important;align-self:center!important;overflow:visible!important;max-width:none!important;}
html[data-theme] body :is(#recentList,#upNextList) :is(.pulse-recent-main,.up-next-feature-copy,.up-next-mini-copy)>:is(b,span,small){display:block!important;min-width:0!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
@media(max-width:600px){
 html[data-theme] body #recentList .pulse-recent-row{grid-template-columns:32px minmax(0,1fr)!important;}
 html[data-theme] body #recentList .pulse-recent-row>img{width:32px!important;height:32px!important;min-width:32px!important;max-width:32px!important;}
 html[data-theme] body #upNextList .up-next-feature{grid-template-columns:60px minmax(0,1fr)!important;}
 html[data-theme] body #upNextList .up-next-mini{grid-template-columns:20px 30px minmax(0,1fr)!important;}
 html[data-theme] body #upNextList .up-next-mini>img{width:30px!important;height:30px!important;min-width:30px!important;max-width:30px!important;}
 html[data-theme] body #recentList .pulse-recent-row>.hwr-inline-preferences,
 html[data-theme] body #upNextList :is(.up-next-feature,.up-next-mini)>.hwr-inline-preferences{grid-column:1/-1!important;grid-row:3!important;justify-self:end!important;}
}
/* Weekly recording copy stays left; one unbroken action group stays right. */
html[data-theme] body #weeklyStatsGrid .pulse-weekly-entry{grid-template-columns:24px 38px minmax(65px,1fr) auto!important;column-gap:7px!important;}
html[data-theme] body #weeklyStatsGrid .pulse-weekly-entry>.hwr-inline-preferences{grid-column:4!important;grid-row:1/3!important;justify-self:end!important;}
html[data-theme] body #weeklyStatsGrid .pulse-weekly-entry>.pulse-count{grid-column:3!important;grid-row:2!important;justify-items:start!important;display:flex!important;gap:6px!important;align-items:baseline!important;}
html[data-theme] body #weeklyStatsGrid .pulse-weekly-entry>.pulse-rank,
html[data-theme] body #weeklyStatsGrid .pulse-weekly-entry>.weekly-rank-art{grid-row:1/3!important;}
html[data-theme] body #weeklyStatsGrid .weekly-rank-main{grid-column:3!important;grid-row:1!important;min-width:0!important;}
html[data-theme] body #weeklyStatsGrid .weekly-rank-main :is(b,small){display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;min-width:0!important;}
html[data-theme] body #weeklyStatsGrid .pulse-weekly-entry>button{grid-column:3/5!important;}
@media(max-width:1100px){
 /* Two half-width queue panels cannot retain readable copy plus 182px actions. */
 html[data-theme] body .station-pulse .pulse-live-grid{grid-template-columns:minmax(0,1fr)!important;}
 html[data-theme] body .pulse-weekly-lists,html[data-theme] body #weeklyStatsGrid{grid-template-columns:minmax(0,1fr)!important;}
 html[data-theme] body .pulse-weekly-list:first-child,html[data-theme] body .pulse-weekly-list:last-child{grid-column:1!important;}
 html[data-theme] body .pulse-weekly-lists:before{display:none!important;}
}
@media(max-width:520px){
 html[data-theme] body #weeklyStatsGrid .pulse-weekly-entry{grid-template-columns:22px 28px minmax(0,1fr)!important;column-gap:5px!important;}
 html[data-theme] body #weeklyStatsGrid .pulse-weekly-entry>.hwr-inline-preferences{grid-column:1/-1!important;grid-row:auto!important;justify-self:end!important;}
 html[data-theme] body #weeklyStatsGrid .pulse-weekly-entry>button{grid-column:1/-1!important;}
}

