:root {
  --watchme-nav-height: calc(66px + env(safe-area-inset-bottom, 0px));
}
.navbar[data-nav-layout="uniform"]:not(.hidden) {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  align-items: center;
  gap: 1px;
  box-sizing: border-box;
  height: var(--watchme-nav-height);
  padding: 0 3px env(safe-area-inset-bottom, 0px);
  border-top: 1px solid #ead7e5;
  background: #fffafd;
  box-shadow: 0 -3px 16px #4b244310;
}
.navbar[data-nav-layout] .nav-item {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  height: 56px;
  padding: 4px 1px;
  gap: 4px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: #5d4160;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  touch-action: manipulation;
}
.navbar[data-nav-layout] .nav-item.active {
  background: #f5dfeb;
  border-color: #edd2e1;
  color: #801c55;
}
.navbar[data-nav-layout] .nav-item:focus-visible {
  outline: 2px solid #6b3670;
  outline-offset: -2px;
}
.navbar[data-nav-layout] .nav-item:active { background: #f0d9e8; }
.navbar[data-nav-layout] .nav-label {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.navbar[data-nav-layout] .nav-icon {
  display: block;
  inline-size: 24px;
  block-size: 24px;
  flex: none;
}
.navbar[data-nav-layout] .nav-icon::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: currentColor;
  clip-path: var(--tab-icon);
}
[data-tab-icon="home"] {
  --tab-icon: path("M12 2.5 22 11H19V21H14V15H10V21H5V11H2Z");
}
[data-tab-icon="groups"] {
  --tab-icon: path("M9 4a3.5 3.5 0 1 1 0 7 3.5 3.5 0 0 1 0-7Zm8 .5a3 3 0 1 1 .2 6 5.6 5.6 0 0 0-.7-6ZM2 19c0-4 3-6 7-6s7 2 7 6v1H2Zm15.5 1v-1c0-2.8-1.1-4.7-3.1-6 4.8-.7 7.6 1.5 7.6 5.5V20Z");
}
[data-tab-icon="live"] {
  --tab-icon: path("M3 7h18v14H3z M7 10v8h10v-8z M6 3h12v2H6z M9 12h6v4H9z");
}
[data-tab-icon="nummy"] {
  --tab-icon: path("M10 3.2c1.1 4.8 2.2 5.9 7 7-4.8 1.1-5.9 2.2-7 7-1.1-4.8-2.2-5.9-7-7 4.8-1.1 5.9-2.2 7-7Zm8.7 10.5c.5 2.5 1.2 3.2 3.7 3.7-2.5.6-3.2 1.2-3.7 3.7-.6-2.5-1.2-3.1-3.7-3.7 2.5-.5 3.1-1.2 3.7-3.7Z");
}
[data-tab-icon="friends"] {
  --tab-icon: path("M12 21.3 3.7 13C-1 8.1 6 1.1 11 6.2l1 1 1-1C18 1.1 25 8.1 20.3 13Z");
}
[data-tab-icon="profile"] {
  --tab-icon: path("M12 2.8a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9ZM4 21v-2c0-3.4 3.8-5.7 8-5.7s8 2.3 8 5.7v2Z");
}
[data-tab-icon="settings"] {
  --tab-icon: path(evenodd, "M10 2h4l.5 2.8 1.6.9 2.7-1 2 3.5-2.2 1.8v1.9l2.2 1.9-2 3.5-2.7-1-1.6.9-.5 2.8h-4l-.5-2.8-1.6-.9-2.7 1-2-3.5 2.2-1.9V10L3.2 8.2l2-3.5 2.7 1 1.6-.9ZM12 8.4a3.6 3.6 0 1 0 0 7.2 3.6 3.6 0 0 0 0-7.2Z");
}
#friendNavTab { position: relative; }
#friendNavTab[data-unread]:not([data-unread=""])::after {
  content: attr(data-unread);
  position: absolute;
  inset-block-start: 1px;
  inset-inline-start: calc(50% + 5px);
  z-index: 2;
  min-width: 15px;
  padding: 1px 3px;
  border: 1px solid #fffafd;
  border-radius: 999px;
  background: #851e58;
  color: white;
  font-size: 9px;
  line-height: 1.25;
  text-align: center;
  text-shadow: none;
  pointer-events: none;
}


.wm-floating-tool {
  touch-action: none;
  cursor: grab;
  transform: translate(var(--floating-x, 0px), var(--floating-y, 0px));
}
.wm-floating-tool:focus-visible { outline: 3px solid #2164af; outline-offset: 3px; }
.wm-floating-tool.dragging { cursor: grabbing; transition: none; }
body > .wm-floating-tool {
  position: fixed;
  bottom: calc(var(--watchme-nav-height) + 8px);
  z-index: 20;
  right: max(12px, env(safe-area-inset-right));
}
body > .wm-floating-tool[data-floating-tool="tutorial"] {
  right: max(70px, calc(env(safe-area-inset-right) + 58px));
}
.wm-floating-tool[data-floating-tool="settings"], body > .wm-floating-tool {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid #ead7e5;
  border-radius: 50%;
  color: white;
  background: #4a2247;
  box-shadow: 0 8px 24px #4a22474a;
  font: bold 21px system-ui, sans-serif;
}
.phone > .settings-floating-fab {
  position: absolute;
  right: max(10px, env(safe-area-inset-right));
  top: calc(env(safe-area-inset-top, 0px) + 62px);
  bottom: auto;
  z-index: 120;
}
.wm-floating-tool.hidden { display: none !important; }
.wm-floating-tool .nav-icon { width: 24px; height: 24px; }
.wm-floating-tool .nav-icon::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: currentColor;
  clip-path: var(--tab-icon);
}
