:root { --bottom-navigation-height: 56px; }
html { scroll-padding-top: 120px; }
body { padding-bottom: calc(var(--bottom-navigation-height) + env(safe-area-inset-bottom, 0px)); }
.header { position: sticky; top: 0; z-index: 40; padding-top: env(safe-area-inset-top, 0px); }
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -3px 16px #081b5205;
}
.bottom-nav-inner {
  max-width: 1280px;
  min-height: var(--bottom-navigation-height);
  margin: auto;
  padding: 5px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navigation-button {
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid #dce0eb;
  border-radius: 13px;
  background: #fff;
  color: var(--navy);
  transition: background .2s, border-color .2s;
}
.navigation-button:hover:not(:disabled) { background: var(--soft); border-color: #b7c3e9; }
.navigation-button:disabled { opacity: .32; }
.navigation-button svg { width: 23px; height: 23px; }
.bottom-nav-inner { gap: 10px; }
.navigation-button { flex-shrink: 0; }
.guest-shortcuts { display: flex; flex: 1; align-items: center; justify-content: center; gap: 8px; min-width: 0; }
.guest-shortcuts[hidden] { display: none; }
.guest-shortcut { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--navy); background: #fff; font-size: 12px; line-height: 1.4; font-weight: 600; text-align: center; }
.guest-shortcut:hover,.guest-shortcut[aria-current="page"] { color: var(--blue); background: var(--soft); border-color: #b7c3e9; }
.guest-shortcut:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.client-shortcuts { display: flex; align-items: center; justify-content: center; gap: 14px; min-width: 0; }
.client-shortcuts[hidden] { display: none; }
.client-shortcut { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 5px 15px; border-radius: 10px; color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.client-shortcut svg { width: 20px; height: 20px; }
.client-shortcut:hover { color: var(--blue); background: #f7f8fc; }
.client-shortcut[aria-current="page"] { color: var(--blue); background: var(--soft); }
.toast { bottom: calc(var(--bottom-navigation-height) + env(safe-area-inset-bottom, 0px) + 14px); }
@media (min-width: 1500px) { .bottom-nav-inner { max-width: 1380px; } }
@media (max-width: 1000px) {
  .bottom-nav-inner { padding-inline: 28px; }
  body:not(.home-page) .header { padding-bottom: 44px; }
  .header-actions .region-control { position: absolute; top: calc(100% - 44px); left: 28px; right: 28px; height: 44px; padding: 0; background: #fff; }
  body:not(.home-page) .page-top { padding-top: 28px; }
}
@media (max-width: 700px) {
  .bottom-nav-inner { padding-inline: 20px; }
  .client-shortcuts { flex: 1; gap: 6px; }
  .client-shortcut { flex: 1; flex-direction: column; gap: 2px; padding: 3px 4px; font-size: 10px; line-height: 1.3; }
  .client-shortcut svg { width: 19px; height: 19px; }
  .header-actions .region-control { left: 20px; right: 20px; }
}
@media (prefers-reduced-motion: reduce) { .navigation-button { transition: none; } }
@media (max-width: 400px) {
  .bottom-nav-inner:has(.guest-shortcuts:not([hidden])) { padding-inline: 12px; gap: 6px; }
  .guest-shortcuts { gap: 6px; }
  .guest-shortcut { padding-inline: 6px; }
}

/* Account access shares the bottom bar without changing its 56px footprint. */
.bottom-nav-inner .account-button { width:44px; height:44px; min-width:44px; padding:0; border-radius:13px; flex:0 0 44px; }
.bottom-nav-inner .account-button svg { width:23px; height:23px; }
.bottom-nav-inner .account-button span { display:none; }
@media (max-width:700px) {
 .bottom-nav-inner { padding-inline:max(12px, env(safe-area-inset-left, 0px)) max(12px, env(safe-area-inset-right, 0px)); gap:6px; }
 .guest-shortcuts,.client-shortcuts { flex:1; min-width:0; gap:6px; }
 .guest-shortcut { flex:1; min-width:0; padding:3px 4px; font-size:11px; line-height:1.25; overflow-wrap:normal; }
 .client-shortcut { min-width:0; white-space:normal; text-align:center; }
}
@media (max-width:350px) {
 .bottom-nav-inner { gap:4px; }
 .guest-shortcuts,.client-shortcuts { gap:4px; }
 .guest-shortcut { padding-inline:2px; }
}
