/* Copyright 2026 Michael Shaun French. Phone layout rules share device rotation. */
body.phone-device main{min-width:0;padding-left:max(8px,env(safe-area-inset-left));padding-right:max(8px,env(safe-area-inset-right))}
body.phone-device .shared-menu-card{min-width:0!important;height:auto!important}
body.phone-device .shared-menu-label{overflow-wrap:anywhere!important;word-break:normal!important;max-width:100%;font-size:calc(16px * var(--ui-reading-scale,1))!important;line-height:var(--ui-line-height,1.25)!important}
body.phone-device[data-app-orientation=portrait] :is(.app-menu-grid,.activity-menu-grid,#boardDialogList){grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:none!important;grid-auto-rows:minmax(100px,auto)!important;min-height:0!important}
body.phone-device[data-app-orientation=portrait][data-phone-menu-columns="4"] #homeMenuGrid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
body.phone-device[data-app-orientation=landscape] :is(.app-menu-grid,.activity-menu-grid,#boardDialogList){grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-template-rows:none!important;grid-auto-rows:minmax(88px,auto)!important;min-height:0!important}
body.phone-device[data-app-orientation=portrait] :is(.app-menu-grid,.activity-menu-grid,#boardDialogList)>.shared-menu-card{min-height:100px!important;padding:8px!important;gap:6px!important}
body.phone-device[data-app-orientation=landscape] :is(.app-menu-grid,.activity-menu-grid,#boardDialogList)>.shared-menu-card{min-height:88px!important;padding:6px!important;gap:4px!important}
body.phone-device :is(.app-menu-grid,.activity-menu-grid,#boardDialogList) .shared-menu-picture{width:44px!important;height:44px!important;max-height:none!important;object-fit:contain}
body.phone-device #appMainMenu>.app-menu-heading{padding-inline:4px!important}
body.phone-device.reference-composer #composer #composerActions>button{min-width:48px!important;min-height:48px!important}
body.phone-device.reference-composer[data-composer-button-style=icons] #composerActions .composer-button-label{display:none!important}
body.phone-device.reference-composer #composer{padding:4px 8px max(6px,env(safe-area-inset-bottom))!important}
body.phone-device.reference-composer #composer #messageInputRow{flex-wrap:nowrap!important;min-width:0}
body.phone-device.reference-composer #messageInputRow>.message-read-along-container{flex:1 1 0!important;min-width:0}
body.phone-device.reference-composer #messageInputRow>button{flex:0 0 48px!important;width:48px!important;max-width:48px!important}
body.phone-device.reference-composer #composer #composerActions>button{height:48px!important;padding:4px!important}
body.phone-device.reference-composer #uiMessageHeading button{min-height:40px!important;height:40px!important}
body.phone-device.reference-board #currentBoard{overflow-wrap:anywhere}
body.phone-device #settingsPage :is(input,select,textarea){max-width:100%;min-width:0;box-sizing:border-box}
body.phone-device #settingsPage :is(.settings-card,.new-settings-shell,.new-settings-detail){min-width:0;overflow-wrap:anywhere}
