/* Copyright 2026 Michael Shaun French, United Kingdom. */
body[data-theme]:is([data-layout="2x2"],[data-layout="3x3"],[data-layout="4x4"],[data-layout="5x5"],[data-layout="6x6"],.dense-board-grid) #boardPage #grid .tile{
 height:var(--tile-height);min-height:var(--tile-height);box-sizing:border-box;justify-content:center;align-items:center;overflow:visible;
}
body[data-theme]:is([data-layout="2x2"],[data-layout="3x3"],[data-layout="4x4"],[data-layout="5x5"],[data-layout="6x6"],.dense-board-grid) #boardPage #grid .tile-caption{
 height:var(--tile-caption-height,auto);min-height:var(--tile-caption-height,0);flex:0 0 auto;display:block;align-content:center;line-height:1.2;max-width:100%;overflow-wrap:anywhere;white-space:normal;
}
body.tablet-landscape-board #composer #composerActions{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
body.tablet-landscape-board #composerActions>#bottomControls{display:grid;grid-column:span 3;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
body.tablet-landscape-board #composer #composerActions button{min-height:60px;font-size:20px;line-height:1.15;padding:6px}
body.tablet-landscape-board #composer .composer-button-icon{font-size:26px}
body.tablet-landscape-board #composer #message,body.tablet-landscape-board #composer :is(#toggleBottomBar,#expandMessage,#flipMessage,#shareMessage){min-height:56px;box-sizing:border-box}
body.tablet-landscape-board #composer #message{font-size:20px}
#status:empty{display:none}

body[data-theme][data-layout] #boardPage #grid .tile-caption{overflow:visible;-webkit-line-clamp:unset;line-clamp:unset;min-width:0;box-sizing:border-box}
body[data-theme][data-layout] #boardPage #grid .bilingual-label :is(.english-label,.translation-label){display:block;-webkit-line-clamp:unset;line-clamp:unset;flex-shrink:0;min-width:0;max-width:100%;overflow-wrap:anywhere}

body[data-theme][data-layout] #boardPage #grid .tile-caption{word-break:break-word}

body.tablet-landscape-board #composer #composerActions #bottomControls button{height:60px;min-height:60px;font-size:20px}

/* Keep desktop scrollbar space constant as the message bar changes visibility. */
main{overflow-y:scroll;scrollbar-gutter:stable}
