/*
  Fixed, as the guide card is: the space view is the canvas scrolled to its middle. Bottom right,
  clear of the dock in the middle and above the zoom controls.
*/
atomics-nudge {
  position: fixed;
  inset-block-end: 84px;
  inset-inline-end: 16px;
  z-index: 41;
  font-size: 13px;
  pointer-events: none;
}

atomics-nudge [hidden] {
  display: none !important;
}

atomics-nudge [nudge] {
  pointer-events: all;
  display: flex;
  flex-direction: column;
  gap: 10px;
  inline-size: min(340px, calc(100vw - 32px));
  padding: 14px 16px;
  border-radius: var(--ds-r-lg, 16px);
  background: var(--ds-popover, #fff);
  color: var(--ds-ink, #111);
  box-shadow: var(--ds-shadow-edge, 0 0 0 1px rgba(0, 0, 0, 0.08)), 0 12px 36px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(16px);
  animation: atomics-nudge-in 180ms ease-out;
}

@keyframes atomics-nudge-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  atomics-nudge [nudge] {
    animation: none;
  }
}

atomics-nudge .n-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

atomics-nudge .n-title {
  flex: 1;
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.3;
}

atomics-nudge .n-close {
  flex: none;
  inline-size: 28px;
  block-size: 28px;
  margin: -6px -8px 0 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--ds-mute, #555);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

atomics-nudge .n-close:hover {
  color: var(--ds-ink, #111);
  background: var(--ds-fill, rgba(0, 0, 0, 0.04));
}

atomics-nudge .n-copy,
atomics-nudge .n-note {
  margin: 0;
  color: var(--ds-mute, #555);
  line-height: 1.45;
}

atomics-nudge .n-note {
  font-size: 12px;
}

atomics-nudge .n-faces {
  display: flex;
  justify-content: space-between;
  gap: 4px;
}

atomics-nudge .n-face {
  flex: 1;
  display: grid;
  place-items: center;
  block-size: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--ds-fill, rgba(0, 0, 0, 0.04));
  color: var(--ds-mute, #555);
  cursor: pointer;
}

atomics-nudge .n-face:hover,
atomics-nudge .n-face:focus-visible {
  color: var(--ds-ink, #111);
  background: var(--ds-fill-strong, rgba(0, 0, 0, 0.08));
}

atomics-nudge .n-face[aria-checked='true'] {
  color: var(--ds-accent-ink, #fff);
  background: var(--ds-accent, #2563eb);
}

atomics-nudge .n-face svg {
  inline-size: 24px;
  block-size: 24px;
}

atomics-nudge .n-field {
  display: flex;
}

atomics-nudge .n-field textarea,
atomics-nudge .n-field input {
  inline-size: 100%;
  box-sizing: border-box;
  font: inherit;
}

atomics-nudge .n-field textarea {
  min-block-size: 72px;
  resize: vertical;
}

atomics-nudge .n-check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

atomics-nudge .n-check input {
  margin-block-start: 2px;
}

atomics-nudge .n-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

atomics-nudge .n-error {
  margin: 0;
  color: var(--ds-danger, #b42318);
}
