/* v1.7.69: alert groups must size to their contents, not neighboring groups. */
#queue161 .queue-new-list,#queue161 .queue-list,#queue161 .queue-playing1742,#queue161 .queue-events1742{
 display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:8px;align-items:start;align-content:start;margin:0 0 8px;min-width:0
}
#queue161 .source1733-queue-group{display:flex;flex-direction:column;align-self:start;gap:6px;min-width:0;margin:0;min-height:0;height:auto}
#queue161 .source1733-queue-group>.source1733-head{flex:0 0 auto;min-height:0;height:auto;margin:0;padding:7px 10px;gap:6px;line-height:1.4;border-radius:8px;align-items:center}
#queue161 .source1733-head strong{font-size:13px;min-width:0;overflow-wrap:anywhere}
#queue161 .source1733-head small{font-size:11px;white-space:nowrap}
#queue161 .source1733-queue-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));align-items:start;align-content:start;gap:6px;min-width:0}
#queue161 .queue-item{display:flex;flex-direction:column;align-items:stretch;align-self:start;gap:4px;padding:9px 11px;min-height:0;height:auto;min-width:0;border-radius:10px;font-size:13px;line-height:1.4}
#queue161 .queue-item>.source1733-tag{display:none} /* category already visible above the cards */
#queue161 .queue-item>strong,#queue161 .queue-item>b{line-height:1.4;overflow-wrap:anywhere}
#queue161 .queue-item>small{font-size:12px;line-height:1.4}
#queue161 .queue-item>.secondary,#queue161 .queue-item>.queue1717-action{margin:2px 0 0!important;width:100%;min-width:0;box-sizing:border-box}
#queue161 .queue-item>.secondary,#queue161 .queue-item .queue1717-button{min-height:40px;padding:6px 9px!important;border-radius:8px;font-size:12px;line-height:1.4;white-space:normal}
#queue161 .queue-new-list>p,#queue161 .queue-list>p,#queue161 .queue-playing1742>p,#queue161 .queue-events1742>p{grid-column:1/-1;margin:0;padding:7px 10px;font-size:12px;line-height:1.4;min-height:0}
#queue161 .portal-alert-details{gap:6px;align-content:start;margin-top:6px}
#queue161 .queue-new-head,#queue161 h3{margin:7px 0 3px;font-size:14px;line-height:1.4}
#queue161 .queue-new-head h3{margin:0}
#queue161 .queue-holds1742,#queue161 .queue-status,#queue161 .queue-audio-note{margin:2px 0;font-size:12px;line-height:1.45}
#queue161 .queue-audio-settings{margin:0;padding:0}
#queue161 .queue-audio-settings>summary{padding:7px 10px;margin:0;font-size:13px}
#queue161 .queue-events1742{max-height:320px;overflow-y:auto;overscroll-behavior:contain}
#queue161 .section-head{display:flex;align-items:center;gap:6px;margin:0 0 6px}
#queue161 .section-head h2{margin:0;font-size:17px}
#queue161 .queue-sound,#queue161 .queue-fold1722{width:auto;min-height:40px;padding:6px 11px;border-radius:8px;font-size:12px}
#queue161 .queue-audio-state{font-size:11px;overflow-wrap:anywhere}
#queue161 [hidden]{display:none!important}
/* Compact management overview: summary first, alerts second, categorized shortcuts. */
body[data-page=control] .portal-main{gap:9px;align-content:start}
body[data-page=control] .portal-main>.panel{margin:0;padding:12px;border-radius:12px;box-shadow:none}
body[data-page=control] .portal-heading{margin:0;padding:10px 13px;border-radius:12px;box-shadow:none}
body[data-page=control] .portal-heading span{padding:0;background:none}
body[data-page=control] .portal-heading h1{font-size:19px;margin:0;line-height:1.35}
body[data-page=control] .portal-heading p{display:none}
body[data-page=control] .control1769-summary h2{font-size:17px;margin:0 0 7px}
body[data-page=control] .control1769-summary .stats{grid-template-columns:repeat(auto-fit,minmax(min(100%,120px),1fr));gap:6px;margin:0 0 8px;align-items:stretch}
body[data-page=control] .control1769-summary .stats>div{padding:8px 10px;border-radius:9px;min-width:0;overflow-wrap:anywhere}
body[data-page=control] .control1769-summary .stats small{font-size:11px;line-height:1.4}
body[data-page=control] .control1769-summary .stats b{font-size:19px;line-height:1.3;letter-spacing:0;margin:3px 0 0}
body[data-page=control] .control1769-summary .cta{display:inline-flex;min-height:40px;padding:6px 12px;align-items:center;font-size:13px;border-radius:8px;box-sizing:border-box}
body[data-page=control] .portal1738-section>h2{font-size:15px;margin:0 0 6px}
body[data-page=control] .portal1738-section .portal-cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr));align-items:start;gap:6px}
body[data-page=control] .portal1738-section .portal-link{min-height:0;height:auto;padding:8px 10px;border-radius:9px;box-shadow:none;justify-content:flex-start;gap:2px}
body[data-page=control] .portal1738-section .portal-link strong{font-size:13px;line-height:1.35;margin:0;overflow-wrap:anywhere}
body[data-page=control] .portal1738-section .portal-link small{font-size:11px;line-height:1.4;overflow-wrap:anywhere}
@media(max-width:600px){
 body[data-page=control] .portal-main>.panel{padding:9px}
 body[data-page=control] .control1769-summary .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 body[data-page=control] .portal1738-section .portal-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
 #queue161 .queue-new-list,#queue161 .queue-list,#queue161 .queue-playing1742,#queue161 .queue-events1742{grid-template-columns:minmax(0,1fr)}
 #queue161 .source1733-queue-grid{grid-template-columns:minmax(0,1fr)}
}
@media print{body[data-page=control] #queue161{display:none}}
