/* Each desktop/tablet pane owns its scroll; neither can move the other. */
@media(min-width:641px){
  html,body{height:100%;overflow:hidden}
  .shell{height:100vh;height:100dvh;min-height:0;overflow:hidden;align-items:stretch}
  .shell>.sidebar{position:relative;top:auto;height:100%;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
  .sidebar>*{flex-shrink:0}
  .shell>main{height:100%;min-height:0;min-width:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable}
  .sidebar .nav button{white-space:normal}
}
.rhythm-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 22px;padding-bottom:16px;border-bottom:1px solid var(--line)}
.rhythm-tabs button{background:var(--surface);color:var(--ink);border:1px solid var(--line);min-width:120px}
.rhythm-tabs button[aria-current="page"]{background:var(--soft);border-color:var(--accent)}
.rhythm-label{font-size:12px;letter-spacing:1.2px;color:var(--muted);margin:0 0 12px}
@media(max-width:640px){.sidebar .nav{overscroll-behavior-x:contain}.sidebar .nav button{flex:1 0 52px;min-width:52px;padding-inline:3px}.sidebar .nav button[data-rhythm]{font-size:9px;line-height:1.25}.sidebar .nav button[data-rhythm] span{max-width:64px;white-space:normal}}
