/* Match the Home navigation position on every service screen. */
:root {
  --service-nav-height: 62px;
  --service-nav-tools-height: 48px;
  --service-nav-tools-gap: 14px;
  --service-nav-bottom: 23px;
  --service-nav-desktop-indicator-space: 18px;
}
@media (max-width: 600px), (hover: none) and (pointer: coarse) and (max-width: 1024px) {
  :root { --service-nav-bottom: max(23px, calc(5px + env(safe-area-inset-bottom, 0px))); }
}
.app-tabs svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.app-gnb { position: relative; margin: 0 19px calc(var(--service-nav-bottom) - var(--service-nav-desktop-indicator-space)) 14px; display: grid; grid-template-columns: minmax(0, 1fr) 60px; gap: 14px; align-items: center; }
.app-tabs { min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 4px; gap: 2px; border: 1px solid #ebedf0; border-radius: 999px; background: #fff; }
.app-tabs a { min-width: 0; min-height: 52px; display: grid; justify-items: center; align-content: center; gap: 3px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: #45474e; cursor: pointer; text-decoration: none; font-size: 10px; line-height: 12px; }
.app-tabs a[aria-current="page"] { background: #eff1f3; color: #171819; font-weight: 700; }
.beatoz-button {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 1px solid #77cbed;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff 25%, #f8fcff 65%, #edf7fc);
  box-shadow: inset 0 1px 2px #fff, inset 0 -2px 5px #52b6e01a;
  color: #279bc8;
  font-family: ui-rounded, "Arial Rounded MT Bold", Pretendard, system-ui, sans-serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer; text-decoration: none;
}
.beatoz-button[aria-current="page"] {
  background: radial-gradient(ellipse at 31% 25%, #dcf8ff 0%, #ace8fc 28%, transparent 62%),
    linear-gradient(140deg, #b0e8fb, #87d9f5 55%, #61c5ee);
  box-shadow: inset 0 1px 2px #ebfaff, inset 0 -2px 5px #52b6e02b;
  color: #fff;
}

.gnb-region .app-gnb { margin-bottom: 0; }
.gnb-region .ui69 { display: none; }

@media (max-width: 600px), (hover: none) and (pointer: coarse) and (max-width: 1024px) {
  #signed-in > .app-gnb { margin-bottom: var(--service-nav-bottom); }
}

#signed-in > .app-gnb { margin-top: var(--service-nav-tools-height); }
#signed-in:has(.messenger-list-view:not([hidden])):has(.messenger:not([hidden])) > .app-gnb { margin-top: 0; }
.app-nav-switch {
  box-sizing: border-box;
  min-width: 60px;
  min-height: 28px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1px solid #657681;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(145deg, #71838e, #586b77);
  box-shadow: 0 2px 6px rgb(22 38 51 / 15%);
  font-size: 12px;
  line-height: 18px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.app-ai-switch {
  position: absolute;
  bottom: calc(100% + var(--service-nav-tools-gap));
  right: 8px;
}
.app-ai-switch span { font-size: 15px; }

.app-nav-tools {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: var(--service-nav-tools-height);
  flex: none;
  padding-right: 27px;
}
.app-nav-tools .app-ai-switch { position: static; }
.ui2:has(.app-nav-tools) {
  --gnb-top-space: 0px;
  --gnb-region-height: calc(var(--gnb-height) + var(--gnb-bottom-space));
}
.app-nav-tools + :is(.purchase-bar, .service-footer) > .scroll-up {
  bottom: calc(100% + var(--service-nav-tools-height) + 10px);
}

.beatoz-bell-host { position: relative; }
.beatoz-bell {
  position: absolute; top: 50%; right: 46px; transform: translateY(-50%);
  z-index: 1; display: grid; place-items: center; width: 34px; height: 34px;
  border: 0; border-radius: 50%; background: transparent; color: #222; cursor: pointer;
}
.catalog-header .beatoz-bell { right: 91px; }
.app-header .beatoz-bell, .messenger-room-header .beatoz-bell { right: 10px; }
.beatoz-bell svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.beatoz-bell-badge { position: absolute; top: 1px; right: 0; min-width: 14px; height: 14px; padding: 0 3px; border-radius: 999px; background: #d9233c; color: white; font-size: 9px; line-height: 14px; text-align: center; }
.beatoz-notifications { width: min(340px, calc(100% - 32px)); padding: 16px; border: 0; border-radius: 18px; background: #fff; color: #171819; font: 14px Pretendard, system-ui, sans-serif; }
.beatoz-notifications::backdrop { background: rgb(0 0 0 / 35%); }
.beatoz-notifications-header { margin: 0; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.beatoz-notifications h2 { margin: 0; font-size: 17px; }
.beatoz-notifications button, .beatoz-notifications a { padding: 8px; color: #17658a; background: #edf8ff; border: 0; border-radius: 8px; text-decoration: none; cursor: pointer; font: inherit; }
.beatoz-notifications ul { list-style: none; padding: 0; margin: 12px 0 0; max-height: 240px; overflow: auto; }
.beatoz-notifications li { padding: 6px 0; }
.beatoz-notifications li + li { border-top: 1px solid #eef1f3; }
.beatoz-notifications li a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; color: #171819; background: none; }
.beatoz-notifications li a span { min-width: 0; overflow-wrap: anywhere; }
.beatoz-notifications li time { flex-shrink: 0; font-size: 12px; color: #62666c; white-space: nowrap; }
.beatoz-notification-confirm h2 { text-align: center; }
.beatoz-notification-confirm-actions { display: flex; gap: 8px; margin-top: 16px; }
.beatoz-notification-confirm-actions button { flex: 1; min-height: 40px; color: #171819; background: #f1f3f5; }
.beatoz-notification-confirm-actions button[value="off"] { color: #fff; background: #212121; }
.beatoz-notification-switch { appearance: none; display: grid; align-items: center; width: 42px; height: 24px; margin: 0; padding: 2px; border: 1px solid #c5ced7; border-radius: 999px; cursor: pointer; background: #e3e8ee; }
.beatoz-notification-switch::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: #fff; }
.beatoz-notification-switch:checked { justify-items: end; background: #4cc5f9; border-color: #4cc5f9; }

.screen:has(.beatoz-message-notice) { position: relative; }
.beatoz-message-notice {
  position: absolute;
  z-index: 20;
  left: 20px;
  right: 20px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgb(34 34 34 / 85%);
  color: #fff;
  font: 13px/20px Pretendard, system-ui, sans-serif;
  text-align: center;
  overflow-wrap: anywhere;
  pointer-events: none;
}

.beatoz-push-offer > p { margin: 10px 0 16px; line-height: 1.45; }
.beatoz-push-offer > div { display: flex; justify-content: flex-end; gap: 8px; }
.beatoz-push-offer .beatoz-push-status { margin-bottom: 0; color: #a22632; }
