/* Magic Touch Android: phone layout */
html.android,html.android body{height:100%;overflow:hidden;overscroll-behavior:none;-webkit-tap-highlight-color:transparent}
body{display:flex;flex-direction:column;height:100dvh;user-select:none;-webkit-user-select:none}
input,textarea{user-select:text;-webkit-user-select:text}
header{height:auto!important;min-height:0!important;padding:4px 8px!important;gap:6px!important;flex-wrap:nowrap!important}
header .logo{width:34px;height:34px}
header h1{font-size:15px;margin:0}header .nm{display:none}
header #theme,header #panelBtn,header #printTop,header #accBtn,header #aiBtn,header #open,header #closeImg{display:none}
header button{padding:6px 10px;font-size:13px}
#ticker{height:auto!important;min-height:2.4em!important;flex:none!important;font-size:12px!important;align-items:stretch!important;overflow:hidden}#ticker .tl{padding:2px 8px!important;height:auto!important;align-self:stretch;display:flex;align-items:center;line-height:1.3!important}#ticker .tt{height:auto!important;align-self:stretch;flex:1;min-width:0;overflow:hidden;position:relative}#tkInfo{display:none!important}#tk{position:absolute!important;top:0!important;bottom:0!important;display:flex!important;align-items:center;line-height:1.4!important;padding:2px 0}header,footer,#nav{flex:none!important}header{flex-wrap:wrap!important}
main{flex-direction:column!important;flex:1;min-height:0;position:relative}
#divider{display:none!important}
#stage{flex:1;min-height:0;order:1;touch-action:none}
#cv{touch-action:none}
aside{order:2;width:auto!important;height:0;padding:0!important;border:0!important;overflow:hidden;transition:height .2s}
body.sheet aside{height:42vh;padding:8px 10px!important;overflow-y:auto;border-top:2px solid var(--ac)!important;-webkit-overflow-scrolling:touch}
.tools{grid-template-columns:repeat(3,1fr)!important}
button,select{min-height:42px;font-size:14px}
.row{flex-wrap:wrap}
input[type=range]{height:30px}
#zbar{top:auto!important;bottom:8px!important;inset-inline-start:8px!important}
#zbar button{width:44px;height:44px;font-size:20px}
.fwin{left:0!important;top:0!important;width:100%!important;height:100%!important;border:0!important;resize:none!important}
.fbar{display:none!important}
.fbody{height:100%!important}
footer{height:auto!important;min-height:22px;padding:2px 10px!important;font-size:11px!important;gap:8px!important}
#offl,#info{display:none}
#ai{position:fixed!important;inset:0 0 58px 0!important;width:auto!important;z-index:30;border:0!important}
.aiin input{font-size:16px}
#modal .mbox,#accModal .abox{max-width:100vw!important;width:100vw!important;max-height:100dvh!important;overflow:auto;border-radius:0!important}
#sheetCv{max-width:100%!important;height:auto!important}
#prRow label,#printerSel,#prRefresh,#doPrintDirect,#savePdf,#accModal .kh,.kh,.kh2{display:none!important}
#nav{display:flex;gap:4px;padding:6px;background:var(--pn);border-top:1px solid var(--bd);z-index:40;flex:none}
#nav button{flex:1;min-height:46px;padding:4px 2px;font-size:12px;line-height:1.2;display:flex;flex-direction:column;align-items:center;gap:2px}
#nav button b{font-size:19px;font-weight:400}
#pg{position:fixed;inset:0;z-index:60;background:var(--bg,#111);color:var(--tx);overflow:auto;padding:14px 16px 30px;font-size:15px;line-height:1.7}
#pg[hidden]{display:none}
#pg h2{margin:0 0 8px;font-size:19px}
#pg .st{background:var(--pn);border-radius:12px;padding:10px 12px;margin:10px 0}
#pg .st button{margin:6px 4px 0 0;width:100%}
#pg .note{font-size:13px;opacity:.85;background:#f5a62326;border-radius:10px;padding:8px 10px}
#modal,#accModal,#speedModal{z-index:50!important}
#modal .mbox{padding:8px!important;box-sizing:border-box}
#modal .mt{font-size:12px}
#sheetCv{max-height:48vh;width:auto!important;object-fit:contain;display:block;margin:0 auto}
#modal .row button{flex:1 1 45%}
#zbar>:not(button){display:none!important}
/* the ticker is never covered: every full-screen window starts below it */
#modal,#accModal,#speedModal,#addModal,#ndModal,#exModal,#t3Modal,#actModal,#pg{top:var(--mtTop,0px)!important;bottom:0!important;height:auto!important;max-height:calc(100dvh - var(--mtTop,0px))!important}
#modal .mbox,#accModal .abox,#speedModal>*,#addModal>*,#ndModal>*,#exModal>*,#t3Modal>*,#actModal>*{max-height:calc(100dvh - var(--mtTop,0px))!important;box-sizing:border-box}
#ai{top:var(--mtTop,0px)!important}
