/* One persistent navigation bar on phones and computers. */
body[data-view]{--navigation-bg:var(--style-accent,var(--green));--navigation-ink:#fff7ed;--navigation-height:88px}
body[data-profile=petroleo]{--navigation-bg:#e8b450;--navigation-ink:#173b3b}
body[data-profile=acuarela]{--navigation-bg:var(--style-soft);--navigation-ink:var(--ink)}
body[data-profile=medianoche]{--navigation-bg:#f4ddc3;--navigation-ink:#292a43}
body[data-profile=cafe]{--navigation-bg:#293e32}
body[data-profile=falsum]{--navigation-bg:#793e35}
body #app-navigation{position:fixed;inset:auto 0 0;width:100%;height:calc(var(--navigation-height) + env(safe-area-inset-bottom));display:flex;align-items:center;justify-content:center;padding:8px 20px calc(8px + env(safe-area-inset-bottom));background:var(--navigation-bg);color:var(--navigation-ink);border:0;border-top:1px solid #ffffff24;border-radius:0;box-shadow:0 -4px 24px #30152614;z-index:20}
body #app-navigation>.brand,body #app-navigation>.sidebar-bottom{display:none}
body #app-navigation nav{display:grid;grid-template-columns:1fr 1.4fr 1fr 1fr 1fr;width:100%;max-width:900px;gap:12px;margin:0;padding:0}
body #app-navigation .nav-button{display:flex;align-items:center;justify-content:center;gap:9px;min-width:0;min-height:64px;padding:8px 12px;border-radius:14px;color:var(--navigation-ink);background:transparent;box-shadow:none;font-weight:500;transition:background .15s}
body #app-navigation .nav-button img{width:34px;height:34px;flex-shrink:0;filter:none}
body #app-navigation .nav-label{display:block;width:auto;font:500 17px/1.3 var(--sans);color:inherit;letter-spacing:0}
body #app-navigation .nav-button.active{background:#ffffff1c;box-shadow:inset 0 -3px currentColor;color:var(--navigation-ink)}
body #app-navigation .nav-button:hover{background:#ffffff26}
body #app-navigation .nav-button:focus-visible{outline:2px solid currentColor;outline-offset:-2px}
body[data-view] .workspace{margin-left:0;padding-bottom:calc(var(--navigation-height) + 32px + env(safe-area-inset-bottom))}
body[data-view] .topbar .mobile-brand{display:flex!important;align-items:center;margin-right:auto}
body[data-view] .topbar .publisher-link,body[data-view] .topbar-label{display:none}
body[data-view] img[src*="/london-"]{filter:none!important}
body[data-view] #active-timer{bottom:calc(var(--navigation-height) + 14px + env(safe-area-inset-bottom));z-index:21}
body[data-view] #toast{bottom:calc(var(--navigation-height) + 16px + env(safe-area-inset-bottom))}
body[data-view].has-timer #toast{bottom:calc(var(--navigation-height) + 110px + env(safe-area-inset-bottom))}
body[data-view].has-timer .workspace{padding-bottom:calc(var(--navigation-height) + 125px + env(safe-area-inset-bottom))}
.library-tools{border-top:1px solid var(--line);margin:28px 0 0;padding:16px 0;color:var(--muted)}
.library-tools summary{cursor:pointer;min-height:44px;display:list-item;padding:10px 0}
.library-tools>div{display:flex;gap:12px 24px;flex-wrap:wrap;padding:12px 0}
.library-tools :is(a,button,label){min-height:44px;padding:10px 0;line-height:1.5;text-decoration:underline;text-underline-offset:4px;color:inherit}
@media(max-width:620px){
 body #app-navigation{padding:5px 6px calc(5px + env(safe-area-inset-bottom))}
 body #app-navigation nav{gap:2px}
 body #app-navigation .nav-button{flex-direction:column;gap:5px;padding:5px 2px;min-height:72px;border-radius:10px}
 body #app-navigation .nav-button img{width:32px;height:32px}
 body #app-navigation .nav-label{font-size:16px;letter-spacing:-.04em}
 .library-tools>div{flex-direction:column;align-items:flex-start}
}
@media(prefers-reduced-motion:reduce){body #app-navigation .nav-button{transition:none}}
/* London reference: small coloured illustrations, plum bar and cream selection. */
body[data-standalone=true]{--navigation-bg:var(--style-accent,var(--green));--navigation-ink:#fff7ed;--navigation-height:78px}
body[data-view]{--navigation-height:78px}
body #app-navigation{box-shadow:0 -3px 16px #30152612;padding-top:5px;padding-bottom:calc(5px + env(safe-area-inset-bottom))}
body #app-navigation nav{max-width:850px;gap:8px}
body #app-navigation .nav-button{flex-direction:column;min-height:66px;gap:4px;padding:5px 12px;border-radius:11px}
body #app-navigation .nav-button img{width:24px;height:24px}
body #app-navigation .nav-label{font:400 17px/1.2 var(--serif);letter-spacing:0}
body #app-navigation .nav-button.active{background:#fff3df;color:#63384f;box-shadow:none}
body #app-navigation .nav-button:hover:not(.active){background:#ffffff17}
@media(max-width:620px){
 body #app-navigation{padding-inline:6px}
 body #app-navigation nav{gap:2px}
 body #app-navigation .nav-button{padding:5px 2px;min-height:66px}
 body #app-navigation .nav-button img{width:23px;height:23px}
 body #app-navigation .nav-label{font-size:16px;letter-spacing:-.025em}
}
