/* Shared mobile rhythm and a compact phone/tablet shell. */
:root{--mobile-space-1:4px;--mobile-space-2:8px;--mobile-space-3:12px;--mobile-space-4:16px;--mobile-space-5:20px;--mobile-space-6:24px;--mobile-radius-card:20px;--mobile-radius-control:12px;--mobile-control:48px;--mobile-muted:#536b7b}
#nav button{min-height:48px}.mobile-menu,.mobile-current{display:none}.table-mobile-hint{display:none}
@media(max-width:1023px){
 html{scroll-padding-top:88px}body{display:block;min-width:0}
 body>aside,.survey-mode aside{position:sticky;top:0;z-index:900;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 12px;width:100%;padding:max(10px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 10px max(16px,env(safe-area-inset-left));background:#f8f7f6;border-bottom:1px solid #dbe1e6;box-shadow:0 2px 12px #263d5005}
 .survey-mode aside .brand,aside .brand{display:grid;grid-template-columns:44px minmax(0,1fr);grid-template-rows:auto auto;align-items:center;column-gap:10px;min-width:0;font-size:18px;line-height:1.3;color:#263d50}
 aside .brand .crest-icon-avatar{grid-row:1/3;grid-column:1;width:44px;height:42px;padding:3px;margin:0}aside .brand>span:not(.mobile-current){grid-row:1;grid-column:2;font-size:18px;margin:0;letter-spacing:-.4px}
 aside .brand small{display:none}aside .brand>.mobile-current{display:block;margin:0;grid-row:2;grid-column:2;font-size:12px;font-weight:500;color:var(--mobile-muted);line-height:1.4;overflow-wrap:anywhere}
 .mobile-menu:not([hidden]){display:inline-flex;align-items:center;justify-content:center;min-width:64px;min-height:48px;padding:10px 14px;border-radius:14px;font-size:14px;font-weight:650;align-self:center;background:#edf2f6;border:1px solid #cbd8e2;color:#284659;box-shadow:none}
 body>aside #nav{display:none;grid-column:1/-1;min-width:0;margin:0}body>aside.is-menu-open #nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px;max-height:calc(100dvh - 90px);overflow:auto;overscroll-behavior:contain;padding:3px 1px 4px}
 #nav button,.survey-mode #nav button{min-width:0;min-height:52px;white-space:normal;padding:12px;line-height:1.35;border-radius:14px;font-size:14px;font-weight:550;color:#3e5c71;background:#eef2f6;text-align:left}
 #nav button.active{background:#d9e7f1;color:#263d50;border:1px solid #9eb9cd}aside footer{display:none}
 main,.survey-mode main{margin:0;width:100%;max-width:none;min-width:0;padding:16px max(16px,env(safe-area-inset-right)) calc(96px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}
 main>header{min-width:0;gap:12px;padding-bottom:12px;align-items:center;font-size:13px}#identity{min-width:0;overflow-wrap:anywhere;line-height:1.45;color:var(--mobile-muted)}#logout{flex:0 0 auto;min-height:44px;padding:10px 12px;font-size:13px}
 #content{min-width:0;width:100%}#content h1{scroll-margin-top:88px}#content h1:focus{outline:none}#notice{font-size:14px;line-height:1.5;overflow-wrap:anywhere}#notice:empty{padding:0}
 .birdies-live{gap:12px;flex-direction:row;align-items:center;padding:12px;margin:12px 0 20px;border-radius:16px}.birdies-live>div{min-width:0}.birdies-live strong{font-size:13px;line-height:1.45}.birdies-live span{font-size:12px;line-height:1.45;color:var(--mobile-muted)}.birdies-live button{flex:0 0 auto;width:auto;max-width:105px;white-space:normal;font-size:12px;min-height:44px;padding:9px 10px}
 .feedback-launcher{left:max(12px,env(safe-area-inset-left));bottom:calc(16px + env(safe-area-inset-bottom));width:48px;height:48px;min-height:48px;padding:0;z-index:850;background:#fbfaf8;border:1px solid #d6dfe5;box-shadow:0 4px 18px #263d5019}.feedback-launcher svg{width:44px;height:44px;padding:12px;box-shadow:none;background:transparent}
 .birdies-radio{right:max(12px,env(safe-area-inset-right));bottom:calc(16px + env(safe-area-inset-bottom));max-width:calc(100vw - 24px)}.radio-dock{gap:8px}.radio-launcher{width:48px;height:48px;min-height:48px;justify-content:center;padding:7px}.radio-launch-copy{display:none}.radio-disc{width:32px;height:32px;flex-basis:32px}.radio-quick-stop{width:48px;height:48px;min-height:48px}
 .radio-panel{width:360px;max-width:calc(100vw - 24px);padding:16px;border-radius:20px;max-height:calc(100dvh - 170px - env(safe-area-inset-top) - env(safe-area-inset-bottom));margin-bottom:12px}.radio-collapse{width:44px;height:44px;min-height:44px}.radio-stop,.radio-start{min-height:48px;font-size:14px}.radio-station{min-height:72px;padding:12px}.radio-station strong{font-size:14px}.radio-station small,.radio-collection-note,.radio-status,.radio-hint,.radio-help,.radio-help p,.radio-eyebrow{font-size:12px;color:var(--mobile-muted);line-height:1.5}.radio-help>summary{min-height:44px;padding:12px 0;line-height:1.5}.radio-intro{font-size:14px;color:var(--mobile-muted)}.radio-spotify{display:inline-flex;align-items:center;min-height:44px;font-size:13px}.radio-footer{flex-wrap:wrap;gap:8px}
 .feedback-panel{left:12px;right:12px;bottom:calc(76px + env(safe-area-inset-bottom));width:auto;max-width:none;max-height:calc(100dvh - 100px - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:16px;border-radius:20px}.feedback-close{width:44px;min-height:44px}.feedback-tabs{gap:8px;display:grid;grid-template-columns:1fr 1fr}.feedback-tabs button,.feedback-panel .primary,.feedback-actions button{min-height:48px;font-size:14px;padding:12px}.feedback-form label{font-size:14px;color:var(--mobile-muted)}.feedback-form input,.feedback-form select,.feedback-form textarea{font-size:16px;padding:12px;min-height:48px}.feedback-check input{width:22px;height:22px;min-height:22px;flex:0 0 22px}.feedback-form .feedback-check{min-height:48px;align-items:center;font-size:14px}.feedback-hint,.feedback-intro{font-size:13px;line-height:1.5;color:var(--mobile-muted)}.feedback-actions{gap:12px;display:grid;grid-template-columns:1fr 1fr}.feedback-top{align-items:center}.feedback-status{font-size:14px}
 body.mobile-keyboard .birdies-radio,body.mobile-keyboard .feedback-launcher{display:none}body.mobile-keyboard .feedback-panel{bottom:12px;max-height:calc(100dvh - 24px)}
 .table-mobile-hint{display:block;margin:8px 0;color:var(--mobile-muted);font-size:13px;line-height:1.5}.table-wrap:focus-visible{outline:3px solid #87abc5;outline-offset:3px}
}
@media(max-width:359px){main,.survey-mode main{padding-left:12px;padding-right:12px}.birdies-live{flex-direction:column;align-items:stretch}.birdies-live button{width:100%;max-width:none}.radio-stations{grid-template-columns:1fr 1fr}}
@media(max-height:500px) and (max-width:1023px){aside.is-menu-open #nav{max-height:calc(100dvh - 78px)}.radio-panel{max-height:calc(100dvh - 160px)}.feedback-panel{bottom:12px;max-height:calc(100dvh - 24px)}}

@media(max-width:1023px){#content:is(.ns,.fp,.ff){padding-bottom:0}#content .brain-team{padding-bottom:0}}

@media(max-width:1023px){dialog:not(#confirmation):not(.feedback-panel){width:min(700px,calc(100vw - 24px));padding:20px;max-height:calc(100dvh - 24px);overflow-y:auto}dialog:not(#confirmation):not(.feedback-panel) h2{font-size:26px;line-height:1.25;margin-top:0}dialog:not(#confirmation):not(.feedback-panel) .ns-actions{display:grid;grid-template-columns:1fr;gap:12px}dialog:not(#confirmation):not(.feedback-panel) button{min-height:48px;width:100%;margin-left:0;padding:12px;font-size:16px}}

@media(min-width:1024px){body>aside{display:flex;flex-direction:column;overflow-y:auto}body>aside nav{flex:0 0 auto}body>aside footer{position:static;margin-top:auto;padding-top:24px}}
