:where(.ds-root) .ds-notifications {
  position: relative;
}
:where(.ds-root) .ds-notifications > summary {
  list-style: none;
  position: relative;
}
:where(.ds-root) .ds-notifications > summary::-webkit-details-marker {
  display: none;
}
:where(.ds-root) .ds-notifications__count {
  position: absolute;
  top: -4px;
  right: -6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  background: var(--ds-accent, #b32350);
  color: white;
  font-size: 11px;
  line-height: 1;
}
:where(.ds-root) .ds-notifications__count[hidden] {
  display: none;
}
:where(.ds-root) .ds-notifications__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 100;
  width: min(360px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg, 12px);
  background: var(--ds-surface);
  box-shadow: 0 8px 24px #0002;
  display: grid;
  gap: 12px;
}
:where(.ds-root) .ds-notifications__item {
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--ds-border);
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
  overflow-wrap: anywhere;
}
:where(.ds-root) .ds-notice-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--ds-border);
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  :where(.ds-root) .ds-notifications__panel {
    position: fixed;
    right: 16px;
    top: 68px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }
}

:where(.ds-root) .ds-notice-toasts {
  position: fixed;
  right: var(--ds-space-5);
  bottom: var(--ds-space-5);
  z-index: 110;
  display: grid;
  gap: var(--ds-space-3);
  width: min(360px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: var(--ds-space-2);
}
:where(.ds-root) .ds-notice-toast {
  position: relative;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg);
  background: var(--ds-surface);
  color: var(--ds-text);
  box-shadow: var(--ds-shadow-md);
}
:where(.ds-root) .ds-notice-toast__action {
  display: flex;
  align-items: flex-start;
  gap: var(--ds-space-3);
  width: 100%;
  padding: var(--ds-space-4);
  padding-right: 44px;
  border: 0;
  border-radius: var(--ds-radius-lg);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
:where(.ds-root) .ds-notice-toast:hover,
:where(.ds-root) .ds-notice-toast:focus-within {
  border-color: var(--ds-accent);
}
:where(.ds-root) .ds-notice-toast__icon {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  height: 36px;
  border-radius: var(--ds-radius-md);
  background: var(--ds-accent-soft);
  color: var(--ds-accent);
}
:where(.ds-root) .ds-notice-toast__icon svg {
  width: 18px;
  height: 18px;
}
:where(.ds-root) .ds-notice-toast__body {
  display: grid;
  min-width: 0;
  gap: var(--ds-space-1);
  overflow-wrap: anywhere;
}
:where(.ds-root) .ds-notice-toast__category {
  color: var(--ds-text-secondary);
  font-size: var(--ds-text-xs);
  line-height: 1.5;
}
:where(.ds-root) .ds-notice-toast__title {
  font-size: var(--ds-text-base);
  font-weight: var(--ds-weight-bold);
  line-height: 1.5;
}
:where(.ds-root) .ds-notice-toast__hint {
  margin-top: var(--ds-space-1);
  color: var(--ds-accent);
  font-size: var(--ds-text-xs);
  line-height: 1.5;
}
:where(.ds-root) .ds-notice-toast__close {
  position: absolute;
  right: var(--ds-space-2);
  top: var(--ds-space-2);
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: var(--ds-radius-sm);
  background: transparent;
  color: var(--ds-text-secondary);
  font-size: 20px;
  cursor: pointer;
}
:where(.ds-root) .ds-notice-toast__close:hover {
  color: var(--ds-accent);
}
@media (max-width: 640px) {
  :where(.ds-root) .ds-notice-toasts {
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    width: min(360px, calc(100vw - 16px));
  }
}
