/* Thumb-first mobile chrome. Desktop workspaces and canvas input are unchanged. */
.hm-return,#horn-mobile-command-actions{display:none}
@media(max-width:800px),(pointer:coarse){
html.horn-mobile-ui{--hm-bottom:calc(70px + env(safe-area-inset-bottom))}
html.horn-mobile-ui body[class] #webbar .web-actions>*:not(strong){display:none!important}
html.horn-mobile-ui body[class] #webbar strong{font-size:20px!important;letter-spacing:-.8px!important}
html.horn-mobile-ui body #vptabs{display:none!important}
html.horn-mobile-ui body #horn-mobile-nav{padding:5px max(6px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(6px,env(safe-area-inset-left));gap:4px;grid-template-columns:1fr 1fr 1.2fr 1fr 1fr}
html.horn-mobile-ui body #horn-mobile-nav button{min-height:58px;border-radius:7px;font-size:11px;letter-spacing:-.02em;gap:5px;color:#555550}
html.horn-mobile-ui body #horn-mobile-nav svg{width:24px;height:24px}
html.horn-mobile-ui body #horn-mobile-nav [data-route=tools]{background:#1d1d1b;color:#fff;font-weight:600}
html.horn-mobile-ui body #horn-mobile-nav [aria-current=page]:not([data-route=tools]){background:#eaeae6;color:#151515}
html.horn-mobile-ui body #horn-mobile-nav [data-route=more] svg{stroke-width:4;stroke-linecap:round}
html.horn-mobile-ui body .hp-shell.hp-floating:not([hidden]){bottom:var(--hm-bottom)!important;max-height:calc(var(--horn-viewport-height) - 62px - env(safe-area-inset-top) - var(--hm-bottom))!important}
html.horn-mobile-ui body .hp-shell.hp-floating[data-panel-id=mobile-tools]:not([hidden]){height:450px!important}
html.horn-mobile-ui body .hp-shell.hp-floating[data-panel-id=mobile-files]:not([hidden]){height:340px!important}
html.horn-mobile-ui body .hp-shell.hp-floating[data-panel-id=mobile-more]:not([hidden]){height:440px!important}
html.horn-mobile-ui body .hp-shell.hp-floating>.hm-return{display:block;flex:none;min-height:52px;width:100%;margin:0;border:0;border-top:1px solid #deded9;background:#f5f5f1;color:#292925;font:500 14px var(--font);cursor:pointer;border-radius:0}
html.horn-mobile-ui body #horn-mobile-tools{padding:16px;background:#fff}
html.horn-mobile-ui body .hm-favorites{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:12px}
html.horn-mobile-ui body #horn-mobile-tools .hm-favorite{min-height:76px!important;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:10px 4px;border-radius:5px;background:#fafaf8;font:500 15px var(--font)}
.hm-favorite svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.35;stroke-linejoin:round;stroke-linecap:round}
html.horn-mobile-ui body .hm-fold{border-top:1px solid #deded9}
html.horn-mobile-ui body .hm-fold summary{list-style:none;cursor:pointer;min-height:52px;display:flex;align-items:center;justify-content:space-between;padding:12px 1px;font:500 14px var(--font);color:#44443f}
.hm-fold summary::-webkit-details-marker{display:none}.hm-fold summary::after{content:'+';font-size:22px;font-weight:350}.hm-fold[open]>summary::after{content:'−'}
.hm-fold-body{padding:0 0 16px}.hm-fold summary:focus-visible{outline:2px solid #222;outline-offset:-2px}
html.horn-mobile-ui body .hm-simple-panel{padding:16px;font-family:var(--font)}
html.horn-mobile-ui body .hm-simple-panel button{background:#fff;color:#222;border:1px solid #deded9;border-radius:5px;padding:12px;font-size:14px;min-height:52px;cursor:pointer;text-align:left}
html.horn-mobile-ui body .hm-simple-panel .hm-file-primary{display:block;width:100%;min-height:62px;font-size:17px;font-weight:500;margin-bottom:10px}
html.horn-mobile-ui body .hm-simple-panel [data-mobile-file=save]{background:#222;color:#fff;border-color:#222}
html.horn-mobile-ui body .hm-simple-panel .hm-fold-body>button{width:100%}
.hm-mode-label{display:block;font:500 12px var(--font);color:#6b6b64;margin-bottom:16px}
html.horn-mobile-ui body #horn-mobile-more #horn-mobile-mode{display:block!important;width:100%;max-width:none;height:52px!important;margin-top:7px;padding:10px 12px;font:16px var(--font);background:#fff;color:#222;border:1px solid #deded9;border-radius:5px}
#horn-mobile-more>.hm-tool-grid{margin-bottom:14px}.hm-snaps{grid-template-columns:repeat(3,minmax(0,1fr))}
html.horn-mobile-ui.hm-command-active:not([data-hm-sheet]) #horn-mobile-command-actions,html.horn-mobile-ui.hm-command-open:not([data-hm-sheet]) #horn-mobile-command-actions{display:flex;position:fixed;bottom:var(--hm-bottom);right:max(10px,env(safe-area-inset-right));gap:8px;padding:8px 0;z-index:20004}
#horn-mobile-command-actions button{min-height:44px;min-width:64px;padding:8px 14px;border:1px solid #c8c8c2;border-radius:5px;background:#fff;color:#222;font:500 14px var(--font);box-shadow:0 2px 8px #0000000d}
html.horn-mobile-ui.hm-command-open body #cmdarea,html.horn-mobile-ui.hm-command-active body #cmdarea,html.horn-mobile-ui.hm-command-open body #workspace-task,html.horn-mobile-ui.hm-command-active body #workspace-task{position:fixed!important;bottom:calc(var(--hm-bottom) + 60px);left:0;right:0;z-index:20003;background:#fff!important;border-top:1px solid #d9d9d6;box-shadow:0 -3px 12px #0000000b;max-height:28dvh!important}
html.horn-mobile-ui[data-moosso-keyboard]{--hm-bottom:0px}
html.horn-mobile-ui[data-moosso-keyboard] #horn-mobile-command-actions{bottom:0}
}
@media(max-height:500px) and (pointer:coarse){
html.horn-mobile-ui{--hm-bottom:calc(52px + env(safe-area-inset-bottom))}
html.horn-mobile-ui body #horn-mobile-nav{padding-top:3px}
html.horn-mobile-ui body #horn-mobile-nav button{min-height:44px;flex-direction:row;gap:7px}
html.horn-mobile-ui body .hm-favorites{grid-template-columns:repeat(6,minmax(0,1fr))}
html.horn-mobile-ui body #horn-mobile-tools .hm-favorite{min-height:62px!important}
}
