/* Mobile adaptation is scoped: desktop calendar/list geometry stays unchanged. */
.mobile-controls{display:none}
@media screen and (max-width:650px){
 .menubar{height:44px;display:flex;overflow-x:auto;overflow-y:hidden;white-space:nowrap;padding:0}
 .menuitem{position:static;flex:none;height:44px}
 .menutrigger{height:44px;padding:8px 12px}
 .dropdown{position:fixed;top:44px;left:8px;right:8px;min-width:0;max-height:calc(100dvh - 60px)}
 .dropdown button{white-space:normal;min-height:44px}
 .toolbar{height:68px;padding:2px 4px}
 .mobile-controls{height:44px;display:flex;gap:6px;align-items:center;padding:2px 6px;background:#edf0f4;border-bottom:1px solid #b5bac0}
 .mobile-controls button{min-height:40px;flex:1}
 .workspace{height:calc(100dvh - 156px);overflow-y:auto}
 .left{display:none;position:fixed;top:156px;bottom:0;left:0;width:210px;overflow-y:auto;z-index:35;box-shadow:4px 0 15px #0004}
 body.mobile-sidebar .left{display:flex}
 .main{min-height:490px}
 .calendarrow{min-height:250px}
 .rooms{width:125px}
 .calendar{overscroll-behavior:contain}
 .listarea{height:235px;min-height:235px}
 .listtools{gap:4px;padding:4px}
 .listtools select{max-width:100%}
 .listtools .search{width:100%;display:flex;align-items:center;gap:4px}
 .listtools .search input{min-width:0;flex:1}
 .footer{flex-wrap:wrap}
 .footer .count{width:100%}
 .overlay{z-index:70;padding:8px;align-items:center}
 .modal,.settings-modal{width:100%;max-height:calc(100dvh - 16px)}
 .modalhead{font-size:16px;padding:12px}
 .modalbody,.settings-modal .modalbody{padding:10px}
 .modalbody input:not([type=checkbox]),.modalbody select,.modalbody textarea{font-size:16px;min-width:0;max-width:100%}
 .modalbody button,.modalbody .button{min-height:44px}
 .modalbody .fieldgrid{grid-template-columns:minmax(0,1fr);gap:6px}
 .fieldgrid textarea{grid-column:1/-1}
 .formrow,.settings-row{flex-direction:column;align-items:stretch;gap:5px}
 .formrow label,.settings-row>label{min-width:0}
 .roomform{grid-template-columns:24px minmax(0,1fr) 48px 76px;gap:4px}
 .roomform input{width:100%}
 .steps{gap:3px;margin-bottom:10px}
 .steps button{min-width:0;padding:5px 2px;overflow-wrap:anywhere}
 .actions,.tabs,.settings-tabs{flex-wrap:wrap;gap:5px}
 .actions button{flex:1}
 .settings-layout{grid-template-columns:minmax(0,1fr)}
 .settings-nav{display:flex;gap:4px;max-height:110px;overflow:auto}
 .settings-nav button{width:auto;min-width:145px;font-size:12px}
 .settings-modal .settings-nav{max-height:110px}
 .settings-modal .settings-scroll{max-height:none;overflow:visible;padding:0}
 .text-pair{grid-template-columns:minmax(0,1fr)}
 .checkline{min-height:40px}
 .bookingbar{touch-action:pan-x pan-y;cursor:pointer}
 .statusline{z-index:90}
}
