html:has(.sa-nav.social-dock) {
  --social-dock-row: max(64px, 4rem);
  --nav-h: var(--social-dock-row);
}
body.sa-with-social-nav { padding-bottom: calc(var(--nav-h, 64px) + env(safe-area-inset-bottom) + 12px); }
.sa-nav.social-dock {
  position: fixed;
  z-index: 12;
  inset: auto 0 0;
  padding: 0 max(4px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(4px, env(safe-area-inset-left));
  background: #fff;
  box-shadow: 0 -1px 5px #144b5818;
  color: #234c57;
}
.sa-nav.social-dock #nav-items {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 1px 0;
  min-height: var(--social-dock-row, 64px);
  height: auto;
}
.social-dock a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 44px;
  padding: 3px 1px;
  color: inherit;
  background: transparent;
  border-radius: 9px;
  font: 650 clamp(.79rem, 3.2vw, .91rem)/1.15 system-ui, sans-serif;
  text-decoration: none;
  text-align: center;
  overflow-wrap: anywhere;
  touch-action: manipulation;
}
.social-dock a:hover, .social-dock a:focus-visible { background: #e9f5f5; }
.social-dock a:focus-visible { outline: 2px solid #076978; outline-offset: -3px; }
.social-dock a[aria-current="page"] { color: #005967; background: #e9f4f4; }
.social-dock a[aria-current="page"] > span:last-child { font-weight: 780; }
.social-dock .dock-icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 31px;
  color: #126877;
}
.social-dock svg {
  display: block;
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.social-dock .dock-publish {
  width: 41px;
  height: 31px;
  border-radius: 10px;
  background: #067688;
  color: #fff;
}
.social-dock .dock-publish svg { width: 22px; height: 22px; stroke-width: 2.5; }
.social-dock a[data-social-tab="compose"] { gap: 2px; color: #075c68; }
.social-dock a[data-social-tab="compose"]:hover .dock-publish,
.social-dock a[data-social-tab="compose"]:focus-visible .dock-publish { background: #005866; }
.social-dock .dock-profile img {
  position: absolute;
  inset: 3px 4px;
  width: 26px;
  height: 26px;
  background: white;
  border: 1px solid #176978;
  border-radius: 50%;
  object-fit: cover;
}
html:has(:fullscreen) .social-dock,
body:has(.sf-player-dialog[open], .sf-gallery-dialog[open], .sf-story-dialog[open], .sc-dialog[open]) .social-dock { visibility: hidden; pointer-events: none; }
@media (max-height: 440px) {
  html:has(.sa-nav.social-dock) { --social-dock-row: max(48px, 3rem); }
  .social-dock .dock-icon, .social-dock .dock-publish { height: 25px; }
  .social-dock .dock-profile img { height: 22px; width: 22px; inset: 1px 6px; }
}
@media (forced-colors: active) {
  .social-dock { border-top: 1px solid CanvasText; }
  .social-dock .dock-publish { border: 1px solid ButtonText; }
  .social-dock a[aria-current="page"] { outline: 2px solid Highlight; outline-offset: -3px; }
}
