/* Canonical authenticated app chrome. Keep this stylesheet last. */
html {
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  width: 0;
  height: 0;
}

#app:has(> .afterours-shell),
#app:has(> .group-themed-shell) {
  width: 100%;
  max-width: none;
  padding: 0;
}

.afterours-shell > .afterours-topbar,
.group-themed-shell.group-shell > .afterours-topbar {
  position: relative;
  inset: auto;
  z-index: 30;
  display: flex;
  width: min(100%, 720px);
  min-height: 68px;
  margin: 0 auto;
  padding: calc(18px + env(safe-area-inset-top)) 0 14px;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.afterours-shell > .afterours-topbar .afterours-wordmark,
.group-themed-shell.group-shell > .afterours-topbar .afterours-wordmark {
  display: inline-flex;
  min-width: 0;
  min-height: 36px;
  padding: 0;
  align-items: center;
  border: 0;
  border-radius: 0;
  color: #171713;
  background: transparent;
  box-shadow: none;
  font: 800 20px/1 var(--font-sans, system-ui, sans-serif);
  letter-spacing: -.055em;
  text-decoration: none;
  text-transform: none;
}

.afterours-shell > .afterours-topbar .afterours-topbar-actions,
.group-themed-shell.group-shell > .afterours-topbar .afterours-topbar-actions {
  display: flex;
  align-items: center;
}

.afterours-shell > .afterours-topbar .afterours-avatar-link,
.group-themed-shell.group-shell > .afterours-topbar .afterours-avatar-link {
  display: grid;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  place-items: center;
  border: 1px solid #dfe1da;
  border-radius: 50%;
  color: #2f4137;
  background: #e8ede7;
  box-shadow: none;
  font: 800 11px/1 var(--font-sans, system-ui, sans-serif);
  text-decoration: none;
}

.afterours-shell > .afterours-bottom-nav,
.group-themed-shell.group-shell > .afterours-bottom-nav {
  position: fixed;
  right: auto;
  bottom: calc(10px + env(safe-area-inset-bottom));
  left: 50%;
  z-index: 80;
  display: grid;
  width: min(calc(100vw - 24px), 720px);
  height: 64px;
  margin: 0;
  padding: 6px 7px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: 2px;
  transform: translateX(-50%);
  border: 1px solid #deded7;
  border-radius: 20px;
  background: rgb(255 255 252 / 96%);
  box-shadow: 0 10px 30px rgb(25 26 21 / 10%);
  backdrop-filter: blur(18px) saturate(130%);
}

.afterours-shell > .afterours-bottom-nav > :is(a, button),
.group-themed-shell.group-shell > .afterours-bottom-nav > :is(a, button) {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 5px 2px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 0;
  border-radius: 14px;
  color: #85877f;
  background: transparent;
  box-shadow: none;
  font-family: var(--font-sans, system-ui, sans-serif);
  text-decoration: none;
}

.afterours-shell > .afterours-bottom-nav > :is(a, button) > .ph,
.group-themed-shell.group-shell > .afterours-bottom-nav > :is(a, button) > .ph {
  font-size: 19px;
  line-height: 1;
}

.afterours-shell > .afterours-bottom-nav > :is(a, button) > small,
.group-themed-shell.group-shell > .afterours-bottom-nav > :is(a, button) > small {
  color: inherit;
  font-size: 9px;
  font-weight: 720;
  line-height: 1;
}

.afterours-shell > .afterours-bottom-nav > a.active,
.group-themed-shell.group-shell > .afterours-bottom-nav > a.active {
  color: #2f62e9;
  background: #edf2ff;
}

.afterours-shell > .afterours-bottom-nav > .afterours-nav-add,
.group-themed-shell.group-shell > .afterours-bottom-nav > .afterours-nav-add {
  width: 48px;
  height: 48px;
  min-height: 48px;
  margin: 2px auto;
  align-self: center;
  border-radius: 16px;
  color: #fff;
  background: #2f62e9;
  box-shadow: 0 7px 18px rgb(47 98 233 / 24%);
}

.group-themed-shell.group-shell > .header-panel { margin-top: 0; }

@media (max-width: 420px) {
  .afterours-shell > .afterours-topbar,
  .group-themed-shell.group-shell > .afterours-topbar { min-height: 64px; }
}
