/* The apartment remains full-screen; on short screens the note scrolls, never tools. */
html,body{overscroll-behavior:none}
.note,.talklog,.tcard{overscroll-behavior:contain;touch-action:pan-y}
button{-webkit-user-select:none;user-select:none}
@media(pointer:coarse){input{font-size:16px}}
#local-controls{position:fixed;z-index:1000;right:8px;bottom:max(8px,env(safe-area-inset-bottom));display:flex;gap:4px;align-items:center;background:#211b16e8;color:#fff5dd;border:1px solid #aa895a;border-radius:8px;padding:3px;font:11px sans-serif}
#local-controls button{min-width:44px;min-height:44px;background:#f0b85a;color:#20170e;border:0;border-radius:4px;cursor:pointer}
#local-controls button[hidden]{display:none}
#aiCost,#aiDot,#demoTag{display:none!important}
button{min-height:44px;touch-action:manipulation}
.note .notehead,.iconbtn{min-height:44px;min-width:44px}
.tools{bottom:68px}.touch .tbtns{bottom:126px}
.note{max-height:40dvh;overflow:auto}
.title,.result{overflow:auto;padding-bottom:70px}
@media(max-width:600px){#local-mode{max-width:110px}.tcard{max-height:84dvh;overflow:auto}.talk{bottom:64px}.talklog{max-height:24dvh}.meters{gap:4px}.meter{font-size:11px}}
