/* Targeted repairs; approved artwork and layout retained. */
#dots button{width:auto;min-width:90px;height:auto;min-height:44px;padding:10px 18px;border-radius:22px;background:#173952;color:#fff;font-size:15px;line-height:1.3;flex:0 0 auto}
#dots{flex-wrap:wrap;align-items:center}
.footer button{min-width:0;flex:1 1 0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}
.footer button>span{display:block;position:static;font-size:clamp(11px,3.3vw,15px);line-height:1.2;white-space:nowrap}
#feedback{padding-bottom:calc(120px + env(safe-area-inset-bottom))}
.workflow-error{color:#a33221;white-space:normal;overflow-wrap:anywhere}
.workflow-error:empty{display:none}

/* Requested compact navigation; retain the approved colours, icons and shape. */
.footer{height:calc(74px + env(safe-area-inset-bottom,0px))!important;padding:3px 10px calc(3px + env(safe-area-inset-bottom,0px))!important}
.footer button,.footer button.active{height:68px!important;min-height:44px;gap:3px}
.footer button img{width:42px!important;height:42px!important;padding:7px}
.shell{padding-bottom:calc(90px + env(safe-area-inset-bottom,0px))!important}
.upload-step .content[role=button]{cursor:pointer}.upload-step .content[role=button]:focus-visible{outline:2px solid #f5822d;outline-offset:4px;border-radius:10px}
.panel-scroll{min-width:0;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin}.workflow-dialog textarea{max-width:100%}

/* Compact app navigation, with safe-area space kept separate from controls. */
.footer{height:calc(66px + env(safe-area-inset-bottom,0px))!important;padding:2px 10px calc(2px + env(safe-area-inset-bottom,0px))!important}
.footer button,.footer button.active{height:62px!important;min-height:44px;gap:2px}
.footer button img{width:36px!important;height:36px!important;padding:5px}
.footer button>span{font-size:12px!important;line-height:1.15!important}
.shell{padding-bottom:calc(82px + env(safe-area-inset-bottom,0px))!important}
#appTiles{touch-action:pan-y}
