/* The existing tile footprint anchors every destination, so the bar never jumps. */
.main-navigation{width:100%;height:44px;display:flex;align-items:center;gap:8px;padding:5px 8px;border-radius:24px;background:#081a30b8;box-shadow:inset 0 1px 0 #c5e0ff08;flex:0 0 44px;min-width:0;isolation:isolate}
.nav-logo{flex:0 0 32px;display:grid;place-items:center;width:32px;height:32px;padding:4px;border:0;background:transparent;border-radius:18px;cursor:pointer}
.nav-logo img{width:24px;height:24px;object-fit:contain;opacity:.82}.nav-logo:hover{background:#34557c50}.nav-logo:hover img{opacity:1}
.nav-divider{height:20px;width:1px;flex:0 0 1px;background:#b4c9e525;margin-right:2px}
.main-navigation #hubs{flex:1 1 auto;min-width:0;width:auto;max-width:none;margin:0;padding:5px 0;background:transparent;box-shadow:none;height:44px;justify-content:flex-start;border-radius:0}
.system-navigation{flex:0 0 auto;display:flex;align-items:center;gap:4px;padding-left:6px}
.system-navigation .system-nav-button{position:static;display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border:0;border-radius:18px;background:none;color:#a3b6d0;padding:7px;cursor:pointer;opacity:1;transform:none;box-shadow:none}
.system-nav-button svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.system-navigation .system-nav-button:hover{color:#f4f7ff;background:#34557c40}
.system-navigation .system-nav-button[aria-current=page]{background:#34557c80;color:#f4f7ff}
.main-navigation button:focus-visible{outline:2px solid #8ab4ff;outline-offset:-2px}
body:not([data-destination=hub]) #hubs .hub-pill{visibility:hidden}
.destination-stage{position:relative;width:100%;min-width:0}
.hub-surface{display:flex;flex-direction:column;gap:var(--stack-gap,14px);width:100%}
.hub-bottom-spacer{height:24px;flex:0 0 24px}
body:not([data-destination=hub]) .hub-surface{visibility:hidden;pointer-events:none}
#systemPages{position:absolute;inset:0;pointer-events:none;min-width:0}
#systemPages>dialog.system-page{pointer-events:auto;position:absolute;inset:0;margin:0 auto;width:100%;max-width:100%;height:100%;max-height:100%;padding:12px 0 20px;border:0;border-radius:0;background:none;box-shadow:none;backdrop-filter:none;color:var(--fg);overflow:auto;overscroll-behavior:contain;opacity:1;transform:none}
#systemPages>dialog.system-page:not([open]){display:none}
#systemPages>dialog.system-page>h2{font-size:24px;line-height:1.3;margin:0 36px 24px;text-align:center;outline:none}
#systemPages>#settingsDialog{width:min(620px,100%);padding-inline:8px}
#systemPages>#howDialog{padding-inline:4px}
#howDialog #keyboardHint{display:flex;flex-wrap:wrap;justify-content:flex-start;margin:0 0 16px;font-size:11px;color:#b4c9e5b3;text-align:left}
#howDialog .info-sections{gap:24px}
@media(max-width:1000px){.main-navigation{gap:5px;padding-inline:6px}.main-navigation #hubs .hub-name{padding-inline:12px}.system-navigation{gap:2px;padding-left:3px}#howDialog .info-sections{grid-template-columns:1fr}#howDialog .hubspree-backup-card{align-self:auto}}
@media(prefers-reduced-motion:reduce){.system-nav-button,.nav-logo{transition:none}}
.nav-logo img{filter:brightness(0) invert(1);opacity:.9}
#systemPages>dialog.system-page{height:min(100%,var(--page-max-height,100%))}
.main-navigation{display:grid;grid-template-columns:88px minmax(0,1fr) 88px;gap:8px;padding-inline:14px}
.nav-brand{display:flex;align-items:center;gap:12px;min-width:0}
.nav-brand .nav-logo{margin-left:6px}
.nav-brand .nav-divider{margin:0}
.main-navigation #hubs{width:max-content;max-width:100%;justify-self:center;justify-content:flex-start}
.system-navigation{justify-self:end;padding-left:0}
@media(max-width:1000px){.main-navigation{padding-inline:12px;grid-template-columns:80px minmax(0,1fr) 80px}.nav-brand{gap:9px}}
/* One 34px content row inside the existing 44px bar aligns every control. */
.main-navigation{grid-template-rows:34px;padding-block:5px;align-items:center}
.main-navigation #hubs{height:34px;padding-block:0;align-self:center;align-items:center}
.main-navigation #hubs .hub-pill{top:0;height:34px}
.nav-brand,.system-navigation{align-self:center;align-items:center}
.nav-logo{padding:2px}
.nav-logo img{width:27px;height:27px}
/* The system page shell follows the actual grid rectangle, not the stage spacer. */
#systemPages{inset:auto 0 auto;top:var(--page-grid-top,32px);height:var(--page-grid-height,100%)}
#systemPages>dialog.system-page,#systemPages>#howDialog,#systemPages>#settingsDialog{width:100%;height:100%;max-height:100%;padding:26px;border-radius:20px;border:1px solid #b4c9e529;background:#183253b8;box-shadow:none;backdrop-filter:none;overflow:auto}
#settingsDialog .settings-cards{width:min(604px,100%);margin-inline:auto}
#systemPages>dialog.system-page>h2{margin-bottom:24px}
@media(max-width:1000px){#systemPages>dialog.system-page,#systemPages>#howDialog,#systemPages>#settingsDialog{padding:20px}}
.destination-stage{container-type:inline-size}
@container(max-width:760px){#howDialog .info-sections{grid-template-columns:1fr}#howDialog .hubspree-backup-card{align-self:auto}}
/* Restrained slate-blue surface, with one hover language across the bar. */
.main-navigation{background:#1c3553ed}
.main-navigation .nav-logo,.main-navigation #hubs .hub-name,.main-navigation #hubs .hub-add,.main-navigation .system-nav-button{transition:background-color 180ms ease,color 180ms ease}
.main-navigation .nav-logo:hover,.main-navigation #hubs .hub-name:hover,.main-navigation #hubs .hub-add:hover,.main-navigation .system-nav-button:hover{background:#52739a29;color:#f4f7ff}
.main-navigation .system-nav-button[aria-current=page]:hover{background:#34557c80}
/* Consolidate the duplicated summary into the existing shortcut rows. */
#howDialog #keyboardHint{display:none}
#systemPages>#howDialog{padding-block:18px}
#systemPages>#howDialog>h2{margin-bottom:14px}
#howDialog .info-sections{gap:18px}
#howDialog .info-sections h2{margin-bottom:8px}
#howDialog .help-item{grid-template-columns:88px minmax(0,1fr);gap:10px;padding:6px 0}
#howDialog .help-item .demo-key{width:88px;min-height:34px;padding:6px 3px}
#howDialog .help-item strong{margin-bottom:2px}
#howDialog .help-item small{line-height:1.45}
#howDialog .hubspree-backup-card{padding:16px}
#howDialog .hubspree-backup-card p{line-height:1.6;margin-bottom:12px}
#howDialog .privacy-settings-link{margin-top:4px;padding:8px 10px}
@container(min-width:601px){#howDialog .info-sections{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}#howDialog .hubspree-backup-card{align-self:center}}
@container(max-width:600px){#howDialog .info-sections{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.main-navigation .nav-logo,.main-navigation #hubs .hub-name,.main-navigation #hubs .hub-add,.main-navigation .system-nav-button{transition:none}}
#howDialog .help-item{grid-template-columns:96px minmax(0,1fr)}
#howDialog .help-item .demo-key{width:96px}
