/* The board owns the remaining viewport; footer controls have explicit compact bounds. */
html,body{height:100%;overflow:hidden}
body{min-height:0!important;height:100dvh!important;overflow:hidden!important}
#app{height:100dvh!important;min-height:0!important;overflow:hidden!important;padding-bottom:env(safe-area-inset-bottom,0px)}
#stage{flex:1 1 0!important;height:auto!important;min-height:0!important;min-width:0}
#pictureFocus{flex:0 0 auto;min-height:0!important;height:58px;margin-top:0;padding:5px 10px;gap:6px;flex-direction:row;align-items:center}
.focus-picture{flex:1 1 0;min-width:0;gap:6px;width:auto}.focus-picture img{width:52px!important;height:40px!important;flex:none}.focus-picture strong{font-size:12px;line-height:1.2;margin:2px 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.focus-picture small{font-size:10px;line-height:1.1}.focus-picture span>small:last-child{display:none}
.focus-tools{display:flex!important;flex-direction:row!important;gap:4px;width:auto;flex:none}.focus-tools button,.focus-tools a{min-height:36px;font-size:10px;line-height:1.1;padding:4px 6px;max-width:85px}
#scripturePanel{flex:0 0 auto;box-sizing:border-box;margin:0 346px 4px 8px;padding:4px 8px;border:1px solid #a68c53;border-radius:7px;background:#fff9e9;color:#292719;font:13px/1.35 Georgia,serif;min-height:0;max-height:190px;overflow:hidden;touch-action:pan-y}
#scripturePanel[hidden],#scripturePanel [hidden]{display:none!important}
.scripture-head{display:flex;gap:5px;align-items:center;height:26px;min-width:0}.scripture-title{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}.scripture-count{font:10px system-ui;white-space:nowrap}
#scripturePanel button{box-sizing:border-box;font:11px/1.1 system-ui;padding:4px 7px;min-height:28px;border:1px solid #8b794d;border-radius:5px;background:#fff;color:#302811;white-space:nowrap;cursor:pointer}
.scripture-panel-toggle{width:52px;flex:none}.scripture-preview{margin:1px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:18px;height:18px}
.scripture-body{display:flex;flex-direction:column;max-height:min(136px,22dvh);min-height:0;overflow:hidden}
.scripture-controls{display:flex;flex:none;gap:4px;align-items:center;overflow-x:auto;overflow-y:hidden;margin:3px 0;min-height:30px;scrollbar-width:thin}
.scripture-controls button{flex:none}.scripture-controls button:disabled{opacity:.5}.scripture-controls :focus-visible,.scripture-text:focus-visible,.scripture-panel-toggle:focus-visible{outline:2px solid #185bba;outline-offset:1px}
#scripturePanel .scripture-text{flex:0 1 auto;min-height:0;box-sizing:border-box;margin:2px 0;line-height:1.4;max-height:2.8em;overflow:hidden;overflow-wrap:anywhere;scrollbar-gutter:stable;touch-action:pan-y}
#scripturePanel.scripture-expanded .scripture-text{max-height:7em;overflow-y:auto}
.scripture-reference{display:none}.scripture-note,.scripture-status{display:block;flex:0 1 auto;max-height:26px;overflow:auto;font-size:10px;line-height:1.2;margin:2px 0}.scripture-note:empty,.scripture-status:empty{display:none}
@media(max-width:799px){#pictureFocus{margin:0;width:100%;height:58px!important;flex-wrap:nowrap!important}.focus-picture img{width:40px!important;height:38px!important}.focus-picture strong{font-size:11px}.focus-tools{gap:3px}.focus-tools button,.focus-tools a{width:44px;min-height:44px;font-size:9px;padding:3px}.focus-picture span{min-width:0}#scripturePanel{margin:0 6px 4px;max-height:180px}#scripturePanel button{min-height:32px;padding:4px 5px}.scripture-controls{min-height:34px}#stage{padding:6px}}
/* Short, wide phones: the board fills the left area, compact review controls sit beside it. */
@media(max-width:799px) and (orientation:landscape){#app{display:grid;grid-template-columns:minmax(0,1fr) 230px;grid-template-rows:auto 104px minmax(0,1fr)}#strip{grid-column:1/-1;grid-row:1}#mobileTermsLink{display:none}#stage{grid-column:1;grid-row:2/4;width:100%;align-self:stretch}#pictureFocus{grid-column:2;grid-row:2;height:104px!important;flex-direction:column;align-items:stretch;padding:4px;gap:2px}.focus-picture{width:100%}.focus-tools{justify-content:space-between}.focus-tools button,.focus-tools a{width:auto;flex:1;min-height:32px}#scripturePanel{grid-column:2;grid-row:3;align-self:start;margin:0 4px 4px;max-height:100%;}.scripture-body{max-height:calc(100dvh - 210px)}.scripture-head{height:26px}}
