/* One navigation for every account. Fixed at the visible viewport, outside app content. */
:root{--nav-ink:#12262e;--nav-muted:#4b6168;--nav-height:74px;--nav-edge:10px}
body>.portal-nav{position:fixed;z-index:1000;top:auto;bottom:calc(var(--nav-edge) + env(safe-area-inset-bottom,0px));left:0;right:0;width:max-content;max-width:calc(100% - 24px);margin:0 auto;display:flex;align-items:center;gap:4px;padding:5px 8px;border-radius:40px;border:1px solid #ffffffce;background:linear-gradient(130deg,#ffffff63,#e0f3ec42 52%,#e8effc58);-webkit-backdrop-filter:blur(28px) saturate(1.8);backdrop-filter:blur(28px) saturate(1.8);box-shadow:inset 0 1px 0 #ffffff,inset 0 -1px 0 #ffffff90,0 8px 30px #12262e24,0 1px 4px #12262e12;transform:none;isolation:isolate}
body>.portal-nav:before{content:'';position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;background:linear-gradient(165deg,#ffffff8c 0%,#ffffff0a 40%,#ffffff00 60%,#ffffff5e);box-shadow:inset 1px 1px 1px #ffffff,inset -1px -1px 1px #ffffffb3}
body>.portal-nav button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:46px;min-width:82px;padding:9px 14px;border:0;border-radius:32px;background:transparent;color:var(--nav-muted);font:500 13px/1.2 'Exo 2',sans-serif;touch-action:manipulation;transition:background .16s ease,box-shadow .16s ease,color .16s ease}
body>.portal-nav button>.nav-icon{display:grid;place-items:center;width:26px;height:26px;color:inherit;background:none;border:0;min-width:0}
body>.portal-nav svg{width:24px;height:24px;display:block}
body>.portal-nav button[aria-current=page]{color:#ffffff;background:#12262e;box-shadow:0 3px 8px #12262e26}
body>.portal-nav button[aria-current=page] svg{stroke-width:2.2}
body>.portal-nav button:focus-visible{outline:3px solid #2f6bd8;outline-offset:3px}
.portal-app>main{padding-bottom:calc(var(--nav-height) + 35px + env(safe-area-inset-bottom,0px))}
[data-app-icon] svg{width:23px;height:23px;display:block}.portal-header .avatar svg{width:21px;height:21px}.portal-header .round-button{display:grid;place-items:center}.portal-header .portal-search>span svg{width:18px;height:18px}
.quick-actions.app-actions{grid-template-columns:repeat(2,minmax(0,1fr));max-width:290px;margin:0 auto}.quick-actions.app-actions button{font-size:13px}.quick-actions.app-actions span{width:48px;height:48px}.quick-actions.app-actions svg{width:22px;height:22px}
.personal-upload-status{font-size:13px;color:#4b6168}.app-direction-note{font-size:13px;color:#4b6168}
.login-open> .portal-nav{display:none}
body:has(#pair:not([hidden]))>.portal-nav{display:none}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){body>.portal-nav{background:#e6ebeaf5}}
@media(max-width:750px){body>.portal-nav{height:var(--nav-height);left:12px;right:12px;width:auto;max-width:420px;min-height:var(--nav-height);padding:5px 6px;gap:2px}body>.portal-nav button{flex:1;min-width:0;min-height:62px;padding:7px 3px;font-size:11px;flex-direction:column;gap:5px}body>.portal-nav button>.nav-icon{width:28px;height:28px}body>.portal-nav svg{width:25px;height:25px}.portal-header .portal-search input{font-size:16px}}
@media(max-width:750px){body>.portal-nav--owner button{padding-inline:1px;font-size:clamp(9px,2.55vw,11px);letter-spacing:-.02em}}
@media(prefers-reduced-motion:reduce){body>.portal-nav button{transition:none}}
@media(prefers-reduced-transparency:reduce){body>.portal-nav{background:#e6ebea}}
/* Tema scuro (sfondo Hong Kong, data-tono impostato da sfondo.js): la stessa barra in vetro scuro. */
html[data-tono="scuro"] body>.portal-nav{background:linear-gradient(130deg,#12262ebd,#12262ea6 52%,#12262eb0);border-color:#ffffff2e;box-shadow:inset 0 1px 0 #ffffff1f,0 8px 30px #12262e59}
html[data-tono="scuro"] body>.portal-nav:before{opacity:.18}
html[data-tono="scuro"] body>.portal-nav button{color:#d2dcd9}
html[data-tono="scuro"] body>.portal-nav button[aria-current=page]{color:#ffffff;background:linear-gradient(145deg,#ffffff30,#ffffff12);box-shadow:inset 0 1px 1px #ffffff26,0 2px 9px #12262e33}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){html[data-tono="scuro"] body>.portal-nav{background:#12262ef5}}
@media(prefers-reduced-transparency:reduce){html[data-tono="scuro"] body>.portal-nav{background:#12262e}}

/* Keyboard positioning is temporary; normal pages retain native bottom anchoring. */
@media(max-width:750px){body>.portal-nav.portal-nav--keyboard{top:max(var(--nav-edge),calc(var(--nav-viewport-bottom,100%) - var(--nav-height) - var(--nav-edge) - env(safe-area-inset-bottom,0px)));bottom:auto}}
