/* Interface refinement informed by unslop by Damir Sokolovsky (@heydamir), CC BY 4.0. */
.mobile-nav{background:#fff;border-color:#e2e7e1;box-shadow:0 -2px 8px #0000000a}
.mobile-nav button,.mobile-nav button.active{min-width:0;min-height:56px;gap:4px;margin:0;padding:4px 2px;border-radius:12px;box-shadow:none;line-height:1.1}
.mobile-nav button{color:#35483c}
.mobile-nav button.active{background:#e7f2e3;color:#075b39}
.mobile-nav button svg,.mobile-nav button.active svg{width:22px;height:22px;stroke-width:1.8}
.mobile-nav button span,html:not(:lang(zh)) .mobile-nav button span{display:block;max-width:100%;margin:0;font-size:11px;font-weight:600;line-height:1.15;letter-spacing:0;white-space:normal;overflow-wrap:anywhere;word-break:normal;text-align:center;text-wrap:balance}
#main .page-top:not(.home-top){height:auto;min-height:56px;gap:8px;padding-inline:14px}
#main .page-top:not(.home-top) h1{min-width:0;margin:0;font-size:18px;font-weight:600;line-height:1.3;letter-spacing:0;overflow-wrap:anywhere}
dialog.language-dialog .language-dialog-close{flex-basis:44px;width:44px;height:44px;min-height:44px}

/* Shared navigation and dialog controls use generous, consistent touch targets. */
html:lang(zh) .mobile-nav button span{font-size:12px;line-height:16px}
:is(.install-help-head,.app-dialog-head,.legacy-shipping-head) :is(.install-help-close,.app-dialog-close,.legacy-shipping-close){flex-basis:44px;width:44px;height:44px;min-height:44px;padding:0;border-radius:8px;box-shadow:none}
:is(.install-help-head,.app-dialog-head,.legacy-shipping-head) h2{font-weight:600;letter-spacing:0}

/* Feedback stays in one compact viewport position and never moves page content. */
body #toast{position:fixed;inset:42dvh auto auto 50%;transform:translate(-50%,-50%);width:max-content;max-width:min(340px,calc(100vw - 40px));margin:0;padding:10px 16px;border:0;border-radius:10px;background:#103e2d;color:#fff;font-size:13px;line-height:1.45;text-align:center;overflow-wrap:anywhere;box-shadow:0 4px 16px #052b1b26;z-index:1200;pointer-events:none}
