/* Vertical mobile-first constructor */

.niti-builder-page,
.niti-map-page {
  --niti-red: #c62828;
  --niti-gold: #c9a96e;
  background: #0a0a0a;
  min-height: 100dvh;
}

.niti-map-page {
  background: #ffffff;
  color: #1a1a1a;
  height: 100svh;
  max-height: 100svh;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.nb-app {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  max-width: none;
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.nb-map-col {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Moodboard-style viewport */
.nb-viewport {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.06) 1px, transparent 0) 0 0 / 28px 28px,
    #fff;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.nb-viewport.is-panning {
  cursor: grabbing;
}

.nb-viewport.is-drop {
  outline: 2px dashed var(--niti-red);
  outline-offset: -6px;
}

.nb-camera {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
}

.nb-world {
  position: relative;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}

.nb-canvas-hint {
  position: absolute;
  left: 0.6rem;
  bottom: 0.45rem;
  margin: 0;
  z-index: 5;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  color: rgba(0, 0, 0, 0.38);
  pointer-events: none;
  background: rgba(255, 255, 255, 0.75);
  padding: 0.15rem 0.35rem;
}

.nb-drop {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.72);
  color: var(--niti-red);
  font-family: var(--serif);
  font-size: 1.1rem;
  pointer-events: none;
}

.nb-drop[hidden] {
  display: none !important;
}

.nb-chrome {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem 0.45rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
}

.nb-chrome-actions {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  width: 100%;
}

.nb-chip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 1.85rem;
  padding: 0 0.55rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: #333;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

#nb-add-event-btn {
  background: var(--niti-gold);
  border-color: #b8944f;
  color: #1f1608;
  font-weight: 600;
}

#nb-add-event-btn:hover {
  filter: brightness(1.06);
}

#nb-add-event-btn:active {
  filter: brightness(0.96);
}

.nb-top {
  position: sticky;
  top: 0;
  z-index: 40;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 52px;
  padding: 0 0.75rem;
  padding-top: env(safe-area-inset-top);
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(245, 240, 235, 0.92);
}

.nb-top--light {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: rgba(0, 0, 0, 0.06);
  color: #1a1a1a;
}

.nb-top--compact {
  height: 42px;
}

.nb-top--compact .nb-top-title {
  font-size: 0.95rem;
}

.niti-map-toolbar {
  position: relative;
  z-index: 40;
  flex: 0 0 auto;
  background: #fff;
}

.niti-map-toolbar .back-breadcrumb {
  width: 100%;
  max-width: min(1180px, calc(100% - 40px));
  box-sizing: border-box;
}

.niti-map-toolbar .nb-top-mode {
  position: absolute;
  right: 2.55rem;
  top: 50%;
  transform: translateY(-50%);
}

.niti-map-toolbar .nb-top-menu {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 768px) {
  .niti-map-toolbar .back-breadcrumb {
    padding-right: 2.75rem;
  }
}

.nb-top-back {
  width: 2rem;
  font-size: 1.25rem;
  color: inherit;
  opacity: 0.7;
}

.nb-top-title {
  flex: 1;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  text-align: center;
}

.nb-top-center {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.nb-top-center .nb-top-title {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nb-top-mode {
  flex: 0 0 auto;
  font-family: var(--sans, system-ui, sans-serif);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  padding: 0.14rem 0.42rem;
  border-radius: 980px;
  white-space: nowrap;
  border-bottom: none;
  margin: 0;
}

.nb-top-spacer,
.nb-top-menu {
  width: 2rem;
  text-align: center;
  font-size: 1.35rem;
  line-height: 1;
}

.nb-start {
  padding: 1.5rem 1.15rem 3rem;
  max-width: 420px;
  margin: 0 auto;
}

.nb-start-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.85rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.65rem;
  color: #f5f0eb;
}

.nb-start-lead {
  color: rgba(245, 240, 235, 0.55);
  margin: 0 0 1.5rem;
  font-size: 0.98rem;
}

.nb-start-note {
  margin: 0 0 1.35rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 77, 0, 0.22);
  background: rgba(255, 77, 0, 0.06);
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.68);
}

.nb-start-note p {
  margin: 0;
}

.nb-start-note__secondary {
  margin-top: 0.65rem !important;
  font-size: 0.84rem;
  color: rgba(0, 0, 0, 0.52);
}

.nb-start-note a {
  color: var(--color-accent, #ff4d00);
  font-weight: 600;
  text-decoration: none;
}

.nb-start-note a:hover {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.nb-start-subtitle {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 4.5vw, 1.85rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 1.15rem;
  color: #f5f0eb;
}

.nb-start-foot {
  margin: 1.35rem 0 0;
  font-size: 0.9rem;
  color: rgba(245, 240, 235, 0.5);
  text-align: center;
}

.nb-start-foot a {
  color: rgba(245, 240, 235, 0.88);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.nb-start .auth-divider {
  text-align: center;
  margin: 1.75rem 0 0;
  position: relative;
  color: var(--color-gray-dark, #666);
  font-size: 14px;
}

.nb-start .auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-gray-medium, #ddd);
}

.nb-start .auth-divider span {
  background: #fff;
  padding: 0 16px;
  position: relative;
}

.nb-start .auth-footer {
  text-align: center;
  margin: 0 -1.15rem -3rem;
  padding: 20px 1.15rem 30px;
  background: #fafafa;
  border-top: 1px solid var(--color-gray-medium, #e9ecef);
}

.nb-start .auth-footer p {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--color-gray-dark, #666);
}

.nb-start .auth-footer .auth-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--color-accent, #ff4d00);
  font-weight: 600;
  text-decoration: none;
}

.nb-start .auth-footer .auth-link:hover {
  color: #e03e00;
}

.nb-start-foot-secondary {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.82rem;
}

.nb-start-foot-secondary a {
  color: rgba(0, 0, 0, 0.55);
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.nb-start-foot-secondary a:hover {
  color: rgba(0, 0, 0, 0.78);
}

.niti-app-page .nb-start .auth-divider {
  color: var(--color-gray-dark, #666);
}

.niti-app-page .nb-start .auth-divider::before {
  background: var(--color-gray-medium, #ddd);
}

.niti-app-page .nb-start .auth-divider span {
  background: #fff;
}

.niti-app-page .nb-start .auth-footer {
  background: #fafafa;
  border-top: 1px solid var(--color-gray-medium, #e9ecef);
}

.niti-app-page .nb-start-foot-secondary {
  color: rgba(0, 0, 0, 0.5);
}

.niti-app-page .nb-start-foot-secondary a {
  color: rgba(0, 0, 0, 0.55);
}

.niti-app-page .nb-start-foot-secondary a:hover {
  color: var(--ym-accent);
}

.nb-form {
  display: grid;
  gap: 0.9rem;
}

.nb-field {
  display: grid;
  gap: 0.35rem;
}

.nb-field span {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 240, 235, 0.45);
}

.niti-map-page .nb-field span {
  color: rgba(0, 0, 0, 0.45);
}

.nb-field input[type="text"],
.nb-field input:not([type]),
.nb-field input[type="email"],
.nb-field input[type="password"],
.nb-field input[type="tel"],
.nb-field input[type="date"],
.nb-field input[type="month"],
.nb-field input[type="file"] {
  width: 100%;
  font: inherit;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #f5f0eb;
  border-radius: 0;
}

/* Дата: клик по всему полю + видимая иконка календаря */
.niti-builder-page .nb-field input[type="date"],
.niti-builder-page .nb-field input[type="month"],
.niti-join-page .nb-field input[type="date"],
.niti-join-page .nb-field input[type="month"],
.niti-map-page .nb-field input[type="date"],
.niti-map-page .nb-field input[type="month"],
.nb-dock .nb-field input[type="date"],
.nb-dock .nb-field input[type="month"] {
  position: relative;
  cursor: pointer;
  padding-right: 2.75rem;
}

.niti-builder-page .nb-field input[type="date"],
.niti-builder-page .nb-field input[type="month"],
.niti-join-page .nb-field input[type="date"],
.niti-join-page .nb-field input[type="month"] {
  color-scheme: dark;
  background: rgba(255, 255, 255, 0.04) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5f0eb' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E") no-repeat right 0.85rem center / 1.15rem;
}

.niti-map-page .nb-field input[type="date"],
.niti-map-page .nb-field input[type="month"],
.nb-dock .nb-field input[type="date"],
.nb-dock .nb-field input[type="month"] {
  color-scheme: light;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E") no-repeat right 0.85rem center / 1.15rem;
}

.niti-builder-page .nb-field input[type="date"]::-webkit-calendar-picker-indicator,
.niti-builder-page .nb-field input[type="month"]::-webkit-calendar-picker-indicator,
.niti-join-page .nb-field input[type="date"]::-webkit-calendar-picker-indicator,
.niti-join-page .nb-field input[type="month"]::-webkit-calendar-picker-indicator,
.niti-map-page .nb-field input[type="date"]::-webkit-calendar-picker-indicator,
.niti-map-page .nb-field input[type="month"]::-webkit-calendar-picker-indicator,
.nb-dock .nb-field input[type="date"]::-webkit-calendar-picker-indicator,
.nb-dock .nb-field input[type="month"]::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}

.niti-map-page .nb-field input,
.niti-map-page .nb-field select,
.nb-dock .nb-field input,
.nb-dock .nb-field select {
  border-color: rgba(0, 0, 0, 0.12);
  background: #fff;
  color: #1a1a1a;
}

.niti-map-page .nb-field input[type="date"],
.niti-map-page .nb-field input[type="month"],
.nb-dock .nb-field input[type="date"],
.nb-dock .nb-field input[type="month"] {
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E") no-repeat right 0.85rem center / 1.15rem;
}

.nb-submit {
  width: 100%;
  margin-top: 0.35rem;
}

.nb-status {
  min-height: 1.2em;
  font-size: 0.9rem;
  color: rgba(245, 240, 235, 0.55);
}

.nb-status.is-error { color: #e8a0a0; }
.nb-status.is-ok { color: #b7d7a8; }

.niti-map-page .nb-status {
  flex: 0 0 auto;
  color: rgba(0, 0, 0, 0.5);
  padding: 0 0.5rem;
  min-height: 0;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
  font-size: 0.72rem;
}

.niti-map-page .nb-status.is-error {
  color: #b71c1c;
  font-weight: 500;
}

.niti-map-page .nb-status.is-ok {
  color: #2e7d32;
}

.nb-mode-banner {
  flex: 0 0 auto;
  width: 0.5rem;
  height: 0.5rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
  color: transparent;
  background: #d1d5db;
}

.nb-top-mode.nb-mode-banner {
  padding: 0;
  border-bottom: none;
}

.nb-mode-banner.is-view {
  background: #d1d5db;
}

.nb-mode-banner.is-edit {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22);
}

.nb-is-view-only .nb-dock {
  opacity: 0.55;
}

.nb-is-view-only #nb-add-event-btn {
  display: none;
}

.nb-fieldset {
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.75rem 0.9rem;
}

.nb-fieldset legend {
  padding: 0 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 240, 235, 0.45);
}

.nb-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.35rem 0;
  color: rgba(245, 240, 235, 0.8);
}

.nb-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.2rem 0 0.25rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(245, 240, 235, 0.72);
}

.nb-consent input {
  margin-top: 0.15rem;
  flex: 0 0 auto;
}

.nb-consent a {
  color: var(--color-accent, #ff4d00);
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.niti-map-page .nb-consent {
  color: rgba(0, 0, 0, 0.62);
}

.niti-map-page .nb-consent a {
  color: #7f5a1d;
}

/* Vertical stage */
.nb-shell {
  max-width: 480px;
  margin: 0 auto;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom));
}

.nb-shell--dock {
  padding-bottom: 0;
}

.nb-stage-wrap {
  display: contents;
}

.nb-stage {
  width: 100%;
  height: 100%;
  margin: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
  position: relative;
}

.nb-stage--clean {
  background: #ffffff;
  touch-action: manipulation;
}

.nb-threads,
.nb-threads-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.nb-threads {
  shape-rendering: geometricPrecision;
}

.nb-threads[hidden],
.nb-threads-canvas[hidden] {
  display: none !important;
}

.nb-thread-path {
  stroke-dasharray: none;
  stroke-dashoffset: 0;
}

.nb-thread-rope .nb-thread-fill {
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: nb-draw 1.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes nb-draw {
  to { stroke-dashoffset: 0; }
}

.nb-stickers {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* Dot sits on the thread; card hangs to the side */
.nb-node {
  position: absolute;
  z-index: 3;
  width: 1px;
  height: 1px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.nb-node-dot {
  display: none;
}

.nb-node-av {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 60px;
  height: 60px;
  transform: translate(-50%, -50%) translateZ(0);
  border-radius: 50%;
  overflow: hidden;
  border: 2.5px solid #fff;
  box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.35);
  z-index: 4;
  background: #e8e4de;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.nb-node-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.nb-node-fallback {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-family: var(--serif);
  color: #666;
}

/* Couple portraits only at the start of each thread */
.nb-node--start {
  z-index: 5;
}

.nb-node-av--start {
  width: 64px;
  height: 64px;
  box-shadow:
    0 0 0 2px rgba(198, 40, 40, 0.4),
    0 6px 18px rgba(0, 0, 0, 0.16);
}

.nb-node--bride .nb-node-av--start {
  box-shadow:
    0 0 0 2px rgba(201, 169, 110, 0.55),
    0 6px 18px rgba(0, 0, 0, 0.16);
}

.nb-start-card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(calc(-100% + 32px), -50%);
  display: grid;
  grid-template-columns: auto 64px;
  align-items: center;
  column-gap: 0.45rem;
  direction: ltr;
  pointer-events: auto;
  z-index: 5;
}

.nb-start-name {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  white-space: nowrap;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(40, 30, 24, 0.72);
  font-family: var(--serif);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
  pointer-events: none;
  text-align: right;
  justify-self: end;
  max-width: 8.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nb-node--start .nb-node-av--start {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  flex-shrink: 0;
  justify-self: center;
}

button.nb-node-av.nb-start-photo-btn {
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
}

button.nb-node-av.nb-start-photo-btn:hover {
  filter: brightness(1.06);
}

button.nb-node-av.nb-start-photo-btn:focus-visible {
  outline: 2px solid rgba(198, 40, 40, 0.65);
  outline-offset: 2px;
}

/* Fate-knot mark on the thread at each event */
.nb-node-knot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
  z-index: 4;
  display: grid;
  place-items: center;
  pointer-events: auto;
  cursor: grab;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.18));
}

.nb-knot-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.nb-knot-halo {
  fill: #fffaf4;
  stroke: rgba(198, 40, 40, 0.28);
  stroke-width: 1.2;
}

.nb-knot-rope {
  fill: none;
  stroke: #c62828;
  stroke-width: 2.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nb-knot-rope--cross {
  stroke-width: 2.1;
  opacity: 0.92;
}

.nb-knot-core {
  fill: #8e1b1b;
  stroke: #fff8f0;
  stroke-width: 1.1;
}

.nb-node-knot--joint {
  width: 34px;
  height: 34px;
}

.nb-node-knot--joint .nb-knot-halo {
  fill: #fff6e8;
  stroke: rgba(201, 169, 110, 0.7);
  stroke-width: 1.45;
}

.nb-node-knot--joint .nb-knot-rope {
  stroke: #a67c2e;
}

.nb-node-knot--joint .nb-knot-core {
  fill: #c9a96e;
  stroke: #fffaf0;
}

.nb-node--crossing .nb-node-knot .nb-knot-halo {
  stroke: rgba(198, 40, 40, 0.55);
  stroke-width: 1.6;
}

.nb-node-av--joint {
  background: #f3e6c8;
  box-shadow: 0 0 0 2px rgba(201, 169, 110, 0.45);
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
}

.nb-node-av--joint .nb-node-av-split {
  width: 100%;
  height: 100%;
}

.nb-node-av-split {
  display: flex;
  width: 100%;
  height: 100%;
}

.nb-node-av-half {
  flex: 0 0 50%;
  width: 50%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.nb-node-av-half--groom {
  border-left: 1px solid rgba(255, 255, 255, 0.9);
}

.nb-node-av-half img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nb-node-av-half .nb-node-fallback {
  font-size: 0.95rem;
}

.nb-node-av-half--bride .nb-node-fallback {
  background: #f0e6dc;
}

.nb-node-av-half--groom .nb-node-fallback {
  background: #e8e4de;
}

.nb-node-av--joint .nb-node-fallback {
  color: var(--niti-gold);
}

.nb-node-av--crossing {
  background: #fff;
  border: 3px solid var(--niti-red);
  box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.2);
  z-index: 6;
}

.nb-node-dot--crossing {
  display: none;
}

.nb-sticker--crossing {
  border-color: rgba(198, 40, 40, 0.35);
  box-shadow: 0 3px 12px rgba(198, 40, 40, 0.12);
}

.nb-thread-path--guest {
  stroke-dasharray: none;
}

.nb-thread-path--loop {
  stroke-dasharray: none;
  animation: none;
  stroke-dashoffset: 0;
}

.nb-node--anchored-dot .nb-node-dot {
  left: calc(var(--nb-dot-dx, 0) * 1%);
  top: calc(var(--nb-dot-dy, 0) * 1%);
}

.nb-node-stem {
  position: absolute;
  top: 0;
  height: 1px;
  background: rgba(198, 40, 40, 0.28);
  z-index: 2;
}

.nb-node--left .nb-node-stem {
  right: 0;
  width: 14px;
  transform: translateX(100%);
}

.nb-node--right .nb-node-stem {
  left: 0;
  width: 14px;
  transform: translateX(-100%);
}

/* Guest events ? compact sticky paper notes */
.nb-node--guest .devlab-item {
  position: absolute;
  top: 0;
  display: flex;
  flex-direction: column;
  width: min(164px, 42vw);
  min-height: 68px;
  border-radius: 1px 1px 3px 4px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  overflow: visible;
  pointer-events: auto;
  z-index: 3;
  transform: translateY(-50%) rotate(var(--nb-note-tilt, -0.6deg));
  transform-origin: center center;
}

.nb-node--guest .devlab-item--note {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, transparent 12%),
    repeating-linear-gradient(
      transparent,
      transparent 18px,
      rgba(0, 0, 0, 0.024) 19px
    ),
    linear-gradient(155deg, #fffef9 0%, #fff6e3 42%, #fffef7 100%);
  color: #111111;
  box-shadow:
    1px 2px 0 rgba(0, 0, 0, 0.04),
    3px 4px 0 rgba(0, 0, 0, 0.025),
    4px 8px 14px rgba(0, 0, 0, 0.12);
}

.nb-node--guest .devlab-item--note::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 34px;
  height: 11px;
  transform: translateX(-50%) rotate(1.5deg);
  background: linear-gradient(180deg, rgba(255, 244, 200, 0.92), rgba(255, 230, 160, 0.78));
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  opacity: 0.95;
  pointer-events: none;
  z-index: 2;
}

.nb-node--guest .devlab-item--note::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 14px;
  height: 14px;
  background: linear-gradient(
    135deg,
    transparent 48%,
    rgba(0, 0, 0, 0.07) 48%,
    #f3ead0 50%,
    #fff8e8 100%
  );
  pointer-events: none;
}

.nb-node--guest .devlab-item--note.is-selected {
  border-color: #2563eb;
  box-shadow:
    0 0 0 2px rgba(37, 99, 235, 0.22),
    4px 10px 18px rgba(0, 0, 0, 0.16);
}

.nb-node--guest .devlab-item__bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.22rem 0.4rem;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  background: linear-gradient(180deg, #f9f4e8, #f3ecda);
  color: #71717a;
  font-size: 0.54rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nb-node--guest .nb-guest-note__handle {
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.nb-node--guest.is-dragging .nb-guest-note__handle {
  cursor: grabbing;
}

.nb-node--guest.nb-node--pinned .nb-guest-note__handle {
  box-shadow: inset 0 -2px 0 rgba(201, 169, 110, 0.55);
}

.nb-node--guest .devlab-item__body {
  flex: 1;
  min-height: 0;
  padding: 0.38rem 0.42rem 0.45rem;
}

.nb-guest-note__content {
  overflow: hidden;
}

.nb-guest-note__photo {
  display: block;
  float: left;
  width: 36px;
  height: 36px;
  margin: 0 0.32rem 0.12rem 0;
  border-radius: 50%;
  overflow: hidden;
  shape-outside: circle(50% at 50% 50%);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.12);
  background: #e8e4de;
}

.nb-guest-note__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nb-guest-note__fallback {
  display: flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-family: var(--serif);
  color: #666;
}

.nb-guest-note__text {
  margin: 0;
  font-size: 0.65rem;
  line-height: 1.3;
  color: #1a1a1a;
  font-family: inherit;
}

.nb-node--left .devlab-item {
  right: 8px;
  left: auto;
}

.nb-node--right .devlab-item {
  left: 8px;
  right: auto;
}

.nb-node--guest.nb-node--editable {
  cursor: default;
}

.nb-node--guest.nb-node--editable .nb-guest-note__handle {
  pointer-events: auto;
}

.nb-guest-note--editable {
  cursor: pointer;
  transition: background 0.15s ease;
}

.nb-guest-note--editable:hover,
.nb-guest-note--editable:focus-visible {
  background: rgba(198, 40, 40, 0.04);
  outline: none;
}

.nb-node--guest.is-dragging .devlab-item {
  box-shadow:
    0 0 0 2px rgba(198, 40, 40, 0.25),
    4px 10px 20px rgba(0, 0, 0, 0.18);
}

.nb-guest-featured {
  margin-top: 0;
}

.nb-guest-featured-hint {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  color: rgba(245, 240, 235, 0.55);
  line-height: 1.35;
}

.nb-guest-featured-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.nb-guest-featured-label {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-size: 0.82rem;
  line-height: 1.35;
  color: rgba(245, 240, 235, 0.88);
}

.nb-guest-featured-label:has(input:checked) {
  border-color: rgba(201, 169, 110, 0.55);
  background: rgba(201, 169, 110, 0.1);
}

.nb-guest-featured-label input {
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.nb-guest-featured-text {
  flex: 1;
  min-width: 0;
}

.nb-sticker {
  position: absolute;
  top: 0;
  display: grid;
  gap: 0.25rem;
  width: 300px;
  padding: 0.42rem 0.55rem;
  background: #fffdf8;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  text-align: left;
  pointer-events: auto;
  color: #222;
  font: inherit;
  z-index: 3;
}

.nb-sticker--editable {
  width: 220px;
  padding: 0.48rem 0.65rem;
  gap: 0.28rem;
  cursor: pointer;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.nb-node--left .nb-sticker {
  right: 28px;
  left: auto;
  transform: translateY(-50%);
}

.nb-node--right .nb-sticker {
  left: 28px;
  right: auto;
  transform: translateY(-50%);
}

.nb-sticker--joint {
  background: #fffaf0;
  border-color: rgba(201, 169, 110, 0.55);
  gap: 0;
}

.nb-sticker-role {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--niti-gold);
  font-weight: 500;
  line-height: 1.15;
}

.nb-node--editable {
  pointer-events: auto;
  cursor: pointer;
}

.nb-node--editable .nb-node-knot,
.nb-node--editable .nb-node-stem {
  pointer-events: auto;
  cursor: grab;
}

.nb-node.is-dragging {
  z-index: 30;
  will-change: left, top;
}

.nb-node.is-dragging .nb-node-knot {
  cursor: grabbing;
  filter: drop-shadow(0 0 0 rgba(198, 40, 40, 0.35)) drop-shadow(0 0 4px rgba(198, 40, 40, 0.45));
}

.nb-node--pinned .nb-node-knot .nb-knot-halo {
  stroke: rgba(201, 169, 110, 0.85);
  stroke-width: 1.7;
}

.nb-sticker--editable:hover,
.nb-sticker--editable:focus-visible {
  border-color: rgba(198, 40, 40, 0.45);
  box-shadow: 0 4px 16px rgba(198, 40, 40, 0.14);
  outline: none;
}

.nb-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.35);
}

.nb-sheet-backdrop[hidden],
.nb-sheet[hidden] {
  display: none !important;
}

.nb-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.nb-sheet-head .nb-sheet-title {
  margin: 0;
  font-size: 1.05rem;
}

.nb-sheet-close {
  width: 2rem;
  height: 2rem;
  border: none;
  background: transparent;
  color: #666;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.nb-sheet-form {
  display: grid;
  gap: 0.55rem;
}

.nb-sheet-form .nb-field span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
  margin-bottom: 0.2rem;
}

.nb-sheet-form .nb-field-hint {
  display: block;
  font-size: 0.72rem;
  line-height: 1.35;
  color: rgba(0, 0, 0, 0.42);
  letter-spacing: normal;
  text-transform: none;
  margin: 0.2rem 0 0;
}

.nb-sheet-form input,
.nb-sheet-form select {
  width: 100%;
  font: inherit;
  font-size: 0.92rem;
  padding: 0.5rem 0.55rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: #1a1a1a;
  color-scheme: light;
  border-radius: 0;
}

.nb-sheet-form select option {
  background: #fff;
  color: #1a1a1a;
}

.nb-sheet-delete {
  color: #b71c1c;
  border-color: rgba(183, 28, 28, 0.35);
}

.nb-sheet-delete:hover {
  background: #ffebee;
}

.nb-sticker-title {
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.nb-sticker-date {
  display: none;
}

.nb-wedding {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.nb-wedding-marker {
  position: absolute;
  width: 26px;
  height: 26px;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.nb-wedding-core {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--niti-gold);
  border: 2.5px solid #fff;
  box-shadow: 0 0 0 4px rgba(201, 169, 110, 0.28);
  position: relative;
  z-index: 2;
}

.nb-wedding-pulse {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  border: 1px solid var(--niti-gold);
  animation: niti-pulse 2.4s ease-in-out infinite;
  z-index: 1;
  box-sizing: border-box;
}

.nb-wedding-label {
  position: absolute;
  transform: translate(-50%, 0);
  margin-top: 18px;
  padding: 0.12rem 0.4rem;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: rgba(0, 0, 0, 0.72);
  font-family: var(--serif);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 3;
  white-space: nowrap;
}

/* Time axis on canvas */
.nb-timeline {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.nb-tick {
  position: absolute;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding-left: 0.35rem;
}

.nb-tick-line {
  flex: 1;
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
}

.nb-tick-label {
  position: absolute;
  left: 0.4rem;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.35);
  background: rgba(255, 255, 255, 0.85);
  padding: 0 0.2rem;
}

.nb-tick.is-wedding .nb-tick-line {
  background: rgba(201, 169, 110, 0.35);
}

.nb-tick.is-wedding .nb-tick-label {
  color: var(--niti-gold);
  font-family: var(--serif);
  letter-spacing: 0.04em;
  text-transform: none;
}

/* Compact bottom form */
.nb-dock {
  position: relative;
  z-index: 20;
  flex: 0 0 auto;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  color: #1a1a1a;
  padding: 0.4rem 0.5rem calc(0.4rem + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.nb-dock[hidden] {
  display: none !important;
}

.nb-dock-grid {
  display: grid;
  grid-template-columns: minmax(5.5rem, 0.9fr) minmax(6.5rem, 0.85fr) 1.4fr auto;
  gap: 0.3rem;
  align-items: stretch;
}

.nb-dock-grid select,
.nb-dock-grid input {
  width: 100%;
  font: inherit;
  font-size: 0.85rem;
  padding: 0.45rem 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: #1a1a1a;
  border-radius: 0;
  min-width: 0;
}

.nb-dock-submit {
  width: 2.4rem;
  min-width: 2.4rem;
  padding: 0;
  font-size: 1.25rem;
  line-height: 1;
}

@media (max-width: 420px) {
  .nb-dock-grid {
    grid-template-columns: 1fr 1fr auto;
  }

  .nb-dock-grid input[type="text"] {
    grid-column: 1 / -1;
  }
}

.nb-tool--file {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nb-map {
  display: none;
}


.nb-legend:not(.is-guests-visible) .nb-legend-item--guest,
.nb-legend:not(.is-guests-visible) .nb-legend-item--bride,
.nb-legend:not(.is-guests-visible) .nb-legend-item--groom {
  display: none;
}

.nb-legend {
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 0.45rem 0.5rem;
  overflow: visible;
  padding: 0.15rem 0 0.25rem;
}

.nb-legend-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 4.6rem;
  flex: 0 0 auto;
}

.nb-legend-chip {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.22rem;
  width: 100%;
  min-width: 0;
  max-width: none;
  padding: 0.22rem 0.2rem 0.28rem;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  font-size: 0.62rem;
  text-align: center;
}

.nb-legend-chip.is-active {
  border-color: var(--niti-red);
}

.nb-legend-chip.is-bride .nb-legend-avatar,
.nb-legend-chip.is-groom .nb-legend-avatar {
  box-shadow: 0 0 0 2px rgba(201, 169, 110, 0.35);
}

.nb-legend-name {
  font-size: 0.62rem;
  color: #222;
  font-weight: 500;
  width: 100%;
  max-width: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.15;
}

.nb-legend-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--niti-red);
  background: #e8e4de;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-family: var(--serif);
  color: #666;
  flex-shrink: 0;
}

.nb-legend-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.nb-legend-chip.is-guest .nb-legend-avatar {
  border-color: rgba(198, 40, 40, 0.45);
  box-shadow: none;
}

.nb-legend-chip.is-guest.is-map-hidden {
  opacity: 0.38;
  border-style: dashed;
}

.nb-toolbar,
.nb-tool {
  display: none;
}

.nb-hint {
  margin: 0.75rem 0.75rem 0;
  font-size: 0.88rem;
  color: rgba(0, 0, 0, 0.5);
}

/* Event edit modal (centered) */
.nb-sheet {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 90;
  width: min(420px, calc(100vw - 2rem));
  max-width: 420px;
  transform: translate(-50%, -50%);
  background: #fff;
  color: #1a1a1a;
  padding: 1rem 1rem calc(1.25rem + env(safe-area-inset-bottom));
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.nb-sheet-handle {
  display: none;
}

.nb-sheet-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0 0 0.85rem;
}

.nb-sheet-actions {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.nb-sheet-actions .btn {
  flex: 1;
}

.niti-map-page .btn-primary {
  background: var(--niti-red);
  border-color: var(--niti-red);
  color: #fff;
}

.niti-map-page .btn-ghost {
  border-color: rgba(0, 0, 0, 0.2);
  color: #333;
}

/* Compact popover menu */
.nb-menu--popover {
  position: fixed;
  top: calc(42px + env(safe-area-inset-top));
  right: 0.5rem;
  left: auto;
  inset: auto;
  z-index: 60;
  width: min(300px, calc(100vw - 1rem));
  background: #fff;
  color: #1a1a1a;
  padding: 0.65rem;
  display: grid;
  gap: 0.55rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
  max-width: none;
  margin: 0;
}

.nb-menu[hidden],
.nb-sheet[hidden] {
  display: none !important;
}

.nb-menu-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.45rem;
}

.nb-menu-note {
  flex: 1;
  min-width: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(0, 0, 0, 0.62);
  margin: 0;
  font-weight: 500;
}

.nb-menu-badge {
  flex: 0 0 auto;
  padding: 0.14rem 0.42rem;
  border-radius: 999px;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
}

.nb-menu-badge.is-draft {
  background: #fff3e0;
  color: #e65100;
  border: 1px solid rgba(230, 81, 0, 0.18);
}

.nb-menu-badge.is-ready {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid rgba(46, 125, 50, 0.18);
}

.nb-menu-feedback {
  margin: 0;
  padding: 0.42rem 0.5rem;
  border-radius: 4px;
  font-size: 0.74rem;
  line-height: 1.35;
}

.nb-menu-feedback.is-ok {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid rgba(46, 125, 50, 0.16);
}

.nb-menu-feedback.is-error {
  background: #ffebee;
  color: #b71c1c;
  border: 1px solid rgba(183, 28, 28, 0.14);
}

.nb-menu-feedback.is-busy {
  background: #f5f5f5;
  color: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.nb-menu-group {
  display: grid;
  gap: 0.3rem;
}

.nb-menu-group--actions {
  padding-top: 0.15rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.nb-menu-label {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.42);
  font-weight: 600;
}

.nb-menu-btn {
  display: grid;
  gap: 0.12rem;
  width: 100%;
  padding: 0.48rem 0.55rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: #222;
  font: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 4px;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.08s ease,
    box-shadow 0.15s ease;
}

.nb-menu-btn:hover:not(:disabled) {
  background: #fafafa;
  border-color: rgba(0, 0, 0, 0.18);
}

.nb-menu-btn:active:not(:disabled) {
  transform: scale(0.985);
}

.nb-menu-btn.is-done {
  border-color: rgba(46, 125, 50, 0.45);
  background: #f1f8e9;
  box-shadow: inset 0 0 0 1px rgba(46, 125, 50, 0.12);
}

.nb-menu-btn.is-busy {
  opacity: 0.72;
  pointer-events: none;
}

.nb-menu-btn--accent {
  border-color: rgba(198, 40, 40, 0.28);
  background: rgba(198, 40, 40, 0.04);
}

.nb-menu-btn--accent:hover:not(:disabled) {
  background: rgba(198, 40, 40, 0.08);
  border-color: rgba(198, 40, 40, 0.38);
}

.nb-menu-btn-text {
  font-size: 0.82rem;
  line-height: 1.25;
  font-weight: 500;
}

.nb-menu-btn-hint {
  font-size: 0.68rem;
  line-height: 1.3;
  color: rgba(0, 0, 0, 0.45);
}

.nb-menu-btn:disabled {
  opacity: 0.42;
  cursor: default;
}

.nb-menu-link {
  flex: 1;
  min-width: 0;
  display: block;
  padding: 0.38rem 0.45rem;
  background: #f7f7f7;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  font-size: 0.64rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
  color: rgba(0, 0, 0, 0.58);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  user-select: all;
  -webkit-user-select: all;
}

.nb-link-copy-row {
  display: flex;
  align-items: stretch;
  gap: 0.35rem;
}

.nb-hint-modal .nb-link-copy-row {
  margin-bottom: 1rem;
}

.nb-link-copy-row .nb-hint-modal-link {
  flex: 1;
  min-width: 0;
  margin: 0;
}

.nb-copy-btn {
  flex: 0 0 2rem;
  width: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  background: #fff;
  color: rgba(0, 0, 0, 0.62);
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.nb-copy-btn:hover {
  background: #f5f5f5;
  border-color: rgba(0, 0, 0, 0.18);
  color: #111;
}

.nb-copy-btn.is-copied {
  border-color: rgba(46, 125, 50, 0.45);
  background: #e8f5e9;
  color: #2e7d32;
}

.nb-copy-icon {
  display: block;
}

.nb-copy-icon--ok {
  display: none;
}

.nb-copy-btn.is-copied .nb-copy-icon--copy {
  display: none;
}

.nb-copy-btn.is-copied .nb-copy-icon--ok {
  display: block;
}

.nb-chip-btn--hidden {
  display: none !important;
}

.nb-is-view-only #nb-share-guests-btn,
.nb-is-view-only #nb-lock-btn,
.nb-is-view-only #nb-time-btn {
  display: none !important;
}

.nb-chip-btn.is-active {
  border-color: var(--niti-red);
  color: var(--niti-red);
  background: rgba(198, 40, 40, 0.06);
}

.nb-layout-locked .nb-node--editable .nb-node-knot,
.nb-layout-locked .nb-node--editable .nb-guest-note__handle {
  cursor: default;
}

/* Hint modal */
.nb-welcome-modal {
  width: min(420px, calc(100vw - 2rem));
}

.nb-welcome-progress {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
}

.nb-welcome-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.14);
  transition: background 0.2s ease, transform 0.2s ease;
}

.nb-welcome-dot.is-active {
  background: #c62828;
  transform: scale(1.15);
}

.nb-welcome-dot.is-done {
  background: rgba(198, 40, 40, 0.45);
}

.nb-welcome-lead {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.72);
}

.nb-welcome-actions {
  display: grid;
  gap: 0.45rem;
}

.nb-welcome-backdrop[hidden],
.nb-welcome-modal[hidden] {
  display: none !important;
}

.nb-hint-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 95;
  width: min(360px, calc(100vw - 2rem));
  transform: translate(-50%, -50%);
  background: #fff;
  color: #1a1a1a;
  padding: 1rem 1rem 1.1rem;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.nb-hint-modal[hidden],
.nb-hint-backdrop[hidden],
.nb-time-backdrop[hidden] {
  display: none !important;
}

.nb-hint-modal [hidden] {
  display: none !important;
}

.nb-hint-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.nb-hint-modal-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
  font-family: var(--serif);
  font-weight: 600;
}

.nb-hint-modal-text {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.68);
}

.nb-hint-modal-link {
  display: block;
  margin: 0;
  padding: 0.42rem 0.48rem;
  background: #f7f7f7;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  font-size: 0.68rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
  color: rgba(0, 0, 0, 0.62);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  user-select: all;
  -webkit-user-select: all;
}

.nb-hint-actions {
  display: grid;
  gap: 0.45rem;
}

.nb-hint-actions.nb-confirm-actions {
  grid-template-columns: 1fr 1fr;
}

.nb-hint-actions .btn {
  width: 100%;
  margin: 0;
}

.nb-hint-modal-ok {
  width: 100%;
}

.nb-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.nb-confirm-actions .btn {
  width: 100%;
  margin: 0;
}

body.nb-guest-locked .nb-app {
  filter: blur(5px);
  pointer-events: none;
  user-select: none;
}

.nb-register-modal {
  z-index: 120;
  width: min(400px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 1.15rem 1.25rem 1.35rem;
  background: #fff;
  color: #1a1a1a;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

#nb-register-backdrop {
  z-index: 119;
}

.nb-register-form {
  margin-top: 0.15rem;
}

.nb-register-honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.nb-register-modal .register-step {
  display: none;
}

.nb-register-modal .register-step.is-active {
  display: block;
  animation: nbRegisterStepIn 0.28s ease;
}

@keyframes nbRegisterStepIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.nb-register-modal .register-step-indicator {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
}

.nb-register-modal .register-step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d1d5db;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nb-register-modal .register-step-dot.is-active {
  background: var(--color-accent, #ff4d00);
  transform: scale(1.15);
}

.nb-register-modal .form-group {
  margin-bottom: 22px;
  position: relative;
}

.nb-register-modal .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--color-black, #000);
  font-size: 14px;
}

.nb-register-modal .form-input {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid var(--color-gray-medium, #e0e0e0);
  border-radius: 8px;
  font-size: 16px;
  transition: var(--transition, all 0.3s ease);
  background: #fafafa;
  color: var(--color-black, #000);
  box-sizing: border-box;
}

.nb-register-modal .form-input:focus {
  outline: none;
  border-color: var(--color-accent, #ff4d00);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 77, 0, 0.1);
}

.nb-register-modal .password-toggle {
  position: absolute;
  right: 15px;
  top: calc(50% + 12px);
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-gray-dark, #333);
  cursor: pointer;
  font-size: 18px;
  padding: 5px;
  z-index: 10;
}

.nb-register-modal .nb-register-confirm-group {
  margin-bottom: 18px;
}

.nb-register-modal .nb-register-consent {
  margin-bottom: 14px;
}

.nb-register-modal .cf-turnstile,
.nb-couple-wizard .cf-turnstile {
  margin: 0 0 16px;
}

.nb-register-modal .nb-register-consent label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: normal;
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 0;
  color: var(--color-black, #000);
}

.nb-register-modal .nb-register-consent input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--color-accent, #ff4d00);
}

.nb-register-modal .nb-register-consent a {
  color: var(--color-accent, #ff4d00);
  text-decoration: underline;
}

.nb-register-modal .btn-login {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--color-accent, #ff4d00) 0%, #e03e00 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition, all 0.3s ease);
}

.nb-register-modal .btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 77, 0, 0.3);
}

.nb-register-modal .btn-login:disabled {
  opacity: 0.65;
  transform: none;
  cursor: wait;
}

.nb-register-modal .btn-register-next {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--color-accent, #ff4d00) 0%, #e03e00 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition, all 0.3s ease);
}

.nb-register-modal .btn-register-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 77, 0, 0.3);
}

.nb-register-modal .btn-register-back {
  width: 100%;
  padding: 15px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 12px;
  background: #fff;
  color: #374151;
  border: 2px solid #e5e7eb;
}

.nb-register-modal .btn-register-back:hover {
  border-color: #d1d5db;
  background: #f9fafb;
}

.nb-register-modal .btn-register-later {
  width: 100%;
  padding: 15px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 12px;
  background: #fff;
  color: #374151;
  border: 2px solid #e5e7eb;
}

.nb-register-modal .btn-register-later:hover {
  border-color: #d1d5db;
  background: #f9fafb;
}

.nb-register-modal #nb-register-error {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  background: #fee;
  color: #c33;
  border: 1px solid #fcc;
}

.nb-register-modal .nb-hint-modal-title {
  color: var(--color-black, #000);
}

.nb-register-modal .nb-hint-modal-text {
  color: var(--color-gray-dark, #333);
}

.nb-register-modal .nb-sheet-close {
  color: rgba(0, 0, 0, 0.45);
}

.niti-map-page.nb-theme-hero .nb-register-modal {
  background: #fff;
  color: #1a1a1a;
  border-color: rgba(0, 0, 0, 0.08);
}

.niti-map-page.nb-theme-hero .nb-register-modal .nb-hint-modal-text {
  color: var(--color-gray-dark, #333);
}

.niti-map-page.nb-theme-hero .nb-register-modal .nb-sheet-close {
  color: rgba(0, 0, 0, 0.45);
}

.niti-map-page.nb-theme-hero .nb-register-modal .btn-register-back,
.niti-map-page.nb-theme-hero .nb-register-modal .btn-register-later {
  border-color: #e5e7eb;
  color: #374151;
  background: #fff;
}

body.niti-map-page.nb-guest-map #stickyRegisterBtn {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
}

@media (min-width: 720px) {
  .nb-shell {
    max-width: 520px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nb-thread-path,
  .nb-thread-rope .nb-thread-fill,
  .nb-wedding-pulse {
    animation: none;
  }
  .nb-thread-rope .nb-thread-fill {
    stroke-dashoffset: 0;
  }
}

/* Hero theme ? ??? ??? ?? ???????? /niti */
.niti-map-page.nb-theme-hero {
  background: #0a0a0a;
  color: rgba(245, 240, 235, 0.92);
}

.niti-map-page.nb-theme-hero .nb-viewport {
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.045) 1px, transparent 0) 0 0 / 28px 28px,
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(198, 40, 40, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(201, 169, 110, 0.1), transparent 50%),
    linear-gradient(165deg, #0a0a0a 0%, #121212 45%, #0a0a0a 100%);
}

.niti-map-page.nb-theme-hero .nb-stage--clean {
  background: transparent;
  box-shadow: none;
}

.niti-map-page.nb-theme-hero .nb-world {
  color: rgba(245, 240, 235, 0.92);
}

.niti-map-page.nb-theme-hero .nb-canvas-hint {
  color: rgba(245, 240, 235, 0.4);
  background: rgba(10, 10, 10, 0.55);
}

.niti-map-page.nb-theme-hero .nb-chrome {
  background: rgba(12, 12, 12, 0.92);
  border-top-color: rgba(255, 255, 255, 0.06);
}

.niti-map-page.nb-theme-hero .nb-chip-btn {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(245, 240, 235, 0.85);
}

.niti-map-page.nb-theme-hero #nb-add-event-btn {
  background: var(--niti-gold);
  border-color: #d4b87a;
  color: #1f1608;
  box-shadow: 0 0 12px rgba(201, 169, 110, 0.28);
}

.niti-map-page.nb-theme-hero #nb-add-event-btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 16px rgba(201, 169, 110, 0.38);
}

.niti-map-page.nb-theme-hero .nb-chip-btn[aria-pressed="true"] {
  border-color: rgba(201, 169, 110, 0.55);
  color: var(--niti-gold);
  box-shadow: 0 0 14px rgba(198, 40, 40, 0.18);
}

.niti-map-page.nb-theme-hero .nb-dock {
  background: rgba(12, 12, 12, 0.94);
  color: rgba(245, 240, 235, 0.92);
  border-top-color: rgba(255, 255, 255, 0.06);
}

.niti-map-page.nb-theme-hero .nb-dock-grid select,
.niti-map-page.nb-theme-hero .nb-dock-grid input {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f5f0eb;
}

.niti-map-page.nb-theme-hero .nb-status {
  color: rgba(245, 240, 235, 0.6);
}

.niti-map-page.nb-theme-hero .nb-status.is-ok {
  color: #b7d7a8;
}

.niti-map-page.nb-theme-hero .nb-status.is-error {
  color: #ef9a9a;
}

.niti-map-page.nb-theme-hero .nb-legend-chip {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(245, 240, 235, 0.8);
}

.niti-map-page.nb-theme-hero .nb-legend-chip.is-map-hidden {
  opacity: 0.45;
  border-style: dashed;
}

.niti-map-page.nb-theme-hero .nb-legend-chip.is-active {
  border-color: var(--niti-red);
  box-shadow: 0 0 0 1px rgba(198, 40, 40, 0.35);
}

.niti-map-page.nb-theme-hero .nb-legend-name {
  color: rgba(245, 240, 235, 0.75);
}

.niti-map-page.nb-theme-hero .nb-tick-line {
  background: rgba(198, 40, 40, 0.28);
}

.niti-map-page.nb-theme-hero .nb-tick-label {
  color: rgba(245, 240, 235, 0.72);
  background: rgba(16, 16, 16, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.niti-map-page.nb-theme-hero .nb-tick.is-wedding .nb-tick-label {
  color: var(--niti-gold);
  background: rgba(24, 20, 14, 0.92);
  border-color: rgba(201, 169, 110, 0.35);
}

.niti-map-page.nb-theme-hero .nb-tick.is-wedding .nb-tick-line {
  background: rgba(201, 169, 110, 0.5);
}

.niti-map-page.nb-theme-hero .nb-sticker {
  background: rgba(24, 22, 20, 0.97);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
  color: #f5f0eb;
}

.niti-map-page.nb-theme-hero .nb-sticker--joint {
  background: rgba(30, 26, 20, 0.98);
  border-color: rgba(201, 169, 110, 0.62);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.niti-map-page.nb-theme-hero .nb-node-av {
  border-color: rgba(24, 24, 24, 0.95);
}

.niti-map-page.nb-theme-hero .nb-node-fallback {
  color: rgba(245, 240, 235, 0.55);
}

.niti-map-page.nb-theme-hero .nb-start-name {
  color: rgba(245, 240, 235, 0.78);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.niti-map-page.nb-theme-hero .nb-knot-halo {
  fill: rgba(28, 24, 20, 0.92);
  stroke: rgba(245, 240, 235, 0.28);
}

.niti-map-page.nb-theme-hero .nb-node-knot--joint .nb-knot-halo {
  fill: rgba(40, 34, 24, 0.95);
  stroke: rgba(201, 169, 110, 0.7);
}

.niti-map-page.nb-theme-hero .nb-node-av--joint {
  background: rgba(201, 169, 110, 0.15);
}

/* Guest notes stay light paper in Hero theme */
.niti-map-page.nb-theme-hero .nb-node--guest .devlab-item--note {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, transparent 14%),
    repeating-linear-gradient(
      transparent,
      transparent 22px,
      rgba(0, 0, 0, 0.028) 23px
    ),
    linear-gradient(155deg, #fffef9 0%, #fff6e3 42%, #fffef7 100%);
  color: #111111;
  box-shadow:
    1px 2px 0 rgba(0, 0, 0, 0.06),
    6px 12px 24px rgba(0, 0, 0, 0.35);
}

.niti-map-page.nb-theme-hero .nb-node--guest .devlab-item__bar {
  background: linear-gradient(180deg, #f9f4e8, #f3ecda);
  color: #71717a;
}

.niti-map-page.nb-theme-hero .nb-guest-note__text {
  color: #1a1a1a;
}

.niti-map-page.nb-theme-hero .nb-mode-banner.is-view {
  background: rgba(255, 255, 255, 0.45);
}

.niti-map-page.nb-theme-hero .nb-mode-banner.is-edit {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.28);
}

.niti-map-page.nb-theme-hero .nb-drop {
  background: rgba(10, 10, 10, 0.78);
}

.niti-map-page.nb-theme-hero .nb-sheet {
  background: #141414;
  color: #f5f0eb;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.niti-map-page.nb-theme-hero .nb-sheet-close {
  color: rgba(245, 240, 235, 0.65);
}

.niti-map-page.nb-theme-hero .nb-sheet-form .nb-field span {
  color: rgba(245, 240, 235, 0.55);
}

.niti-map-page.nb-theme-hero .nb-sheet-form .nb-field-hint {
  color: rgba(245, 240, 235, 0.42);
}

.niti-map-page.nb-theme-hero .nb-sheet-form input,
.niti-map-page.nb-theme-hero .nb-sheet-form select {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.14);
  color: #1a1a1a;
  color-scheme: light;
}

.niti-map-page.nb-theme-hero .nb-sheet-form select option {
  background: #fff;
  color: #1a1a1a;
}

.niti-map-page.nb-theme-hero .nb-sheet-form input::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

.niti-map-page.nb-theme-hero .nb-hint-modal {
  background: #141414;
  color: #f5f0eb;
  border-color: rgba(255, 255, 255, 0.1);
}

.niti-map-page.nb-theme-hero .nb-hint-modal-text {
  color: rgba(245, 240, 235, 0.72);
}

.niti-map-page.nb-theme-hero .nb-welcome-lead {
  color: rgba(245, 240, 235, 0.78);
}

.niti-map-page.nb-theme-hero .nb-welcome-dot {
  background: rgba(255, 255, 255, 0.22);
}

.niti-map-page.nb-theme-hero .nb-welcome-dot.is-done {
  background: rgba(201, 169, 110, 0.55);
}

.niti-map-page.nb-theme-hero .nb-hint-modal-link {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(245, 240, 235, 0.62);
}

.niti-map-page.nb-theme-hero .nb-btn-ghost,
.niti-map-page.nb-theme-hero .btn-ghost {
  border-color: rgba(255, 255, 255, 0.2);
  color: #f5f0eb;
}

.niti-map-page.nb-theme-hero .nb-menu--popover {
  background: #141414;
  border-color: rgba(255, 255, 255, 0.1);
}

.niti-map-page.nb-theme-hero .nb-menu-note {
  color: rgba(245, 240, 235, 0.72);
}

.niti-map-page.nb-theme-hero .nb-menu-badge.is-draft {
  background: rgba(255, 152, 0, 0.12);
  color: #ffb74d;
  border-color: rgba(255, 183, 77, 0.22);
}

.niti-map-page.nb-theme-hero .nb-menu-badge.is-ready {
  background: rgba(76, 175, 80, 0.12);
  color: #a5d6a7;
  border-color: rgba(165, 214, 167, 0.22);
}

.niti-map-page.nb-theme-hero .nb-menu-feedback.is-ok {
  background: rgba(76, 175, 80, 0.12);
  color: #a5d6a7;
  border-color: rgba(165, 214, 167, 0.2);
}

.niti-map-page.nb-theme-hero .nb-menu-feedback.is-error {
  background: rgba(198, 40, 40, 0.12);
  color: #ef9a9a;
  border-color: rgba(239, 154, 154, 0.2);
}

.niti-map-page.nb-theme-hero .nb-menu-feedback.is-busy {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(245, 240, 235, 0.55);
  border-color: rgba(255, 255, 255, 0.08);
}

.niti-map-page.nb-theme-hero .nb-menu-group--actions {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.niti-map-page.nb-theme-hero .nb-menu-label {
  color: rgba(245, 240, 235, 0.42);
}

.niti-map-page.nb-theme-hero .nb-menu-btn {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: #f5f0eb;
}

.niti-map-page.nb-theme-hero .nb-menu-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
}

.niti-map-page.nb-theme-hero .nb-menu-btn.is-done {
  border-color: rgba(165, 214, 167, 0.35);
  background: rgba(76, 175, 80, 0.1);
}

.niti-map-page.nb-theme-hero .nb-menu-btn--accent {
  border-color: rgba(198, 40, 40, 0.35);
  background: rgba(198, 40, 40, 0.1);
}

.niti-map-page.nb-theme-hero .nb-menu-btn-hint {
  color: rgba(245, 240, 235, 0.45);
}

.niti-map-page.nb-theme-hero .nb-menu-link {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(245, 240, 235, 0.62);
}

.niti-map-page.nb-theme-hero .nb-copy-btn {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(245, 240, 235, 0.72);
}

.niti-map-page.nb-theme-hero .nb-copy-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #f5f0eb;
}

.niti-map-page.nb-theme-hero .nb-copy-btn.is-copied {
  border-color: rgba(165, 214, 167, 0.35);
  background: rgba(76, 175, 80, 0.12);
  color: #a5d6a7;
}

.niti-map-page.nb-theme-hero .nb-node-av {
  box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.35);
}

.niti-map-page.nb-theme-hero .nb-wedding-label {
  color: rgba(245, 240, 235, 0.88);
  background: rgba(12, 12, 12, 0.92);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.niti-map-page.nb-theme-hero .nb-wedding-core {
  border-color: rgba(24, 24, 24, 0.95);
  box-shadow: 0 0 0 4px rgba(201, 169, 110, 0.24);
}

.niti-map-page.nb-theme-hero .nb-node-stem {
  background: rgba(198, 40, 40, 0.38);
}

.niti-map-page.nb-theme-hero .nb-node--joint .nb-node-stem {
  background: rgba(201, 169, 110, 0.45);
}

.niti-map-page.nb-theme-hero .nb-sticker-title {
  color: rgba(245, 240, 235, 0.92);
}

/* Curve tuning panel */
.nb-curve-panel {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  z-index: 12;
  width: min(17rem, calc(100% - 0.9rem));
  max-height: min(70vh, 28rem);
  overflow: auto;
  padding: 0.55rem 0.65rem 0.65rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  pointer-events: auto;
  touch-action: auto;
}

.nb-curve-panel[hidden] {
  display: none !important;
}

.nb-curve-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
}

.nb-curve-title {
  font-family: var(--serif);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nb-curve-head-actions {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nb-curve-action,
.nb-curve-close {
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: #444;
  font: inherit;
  font-size: 0.68rem;
  line-height: 1;
  padding: 0.2rem 0.4rem;
  cursor: pointer;
}

.nb-curve-close {
  font-size: 0.95rem;
  padding: 0.1rem 0.38rem;
}

.nb-curve-fields {
  display: grid;
  gap: 0.38rem;
}

.nb-curve-field {
  display: grid;
  gap: 0.12rem;
  font-size: 0.68rem;
  color: rgba(0, 0, 0, 0.62);
}

.nb-curve-field span {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.35rem;
}

.nb-curve-field output {
  font-variant-numeric: tabular-nums;
  color: var(--niti-red);
  font-weight: 500;
}

.nb-curve-field input[type="range"] {
  width: 100%;
  margin: 0;
  accent-color: var(--niti-red);
}

.niti-map-page.nb-theme-hero .nb-curve-panel {
  background: rgba(16, 16, 16, 0.94);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
}

.niti-map-page.nb-theme-hero .nb-curve-title {
  color: rgba(245, 240, 235, 0.92);
}

.niti-map-page.nb-theme-hero .nb-curve-field {
  color: rgba(245, 240, 235, 0.55);
}

.niti-map-page.nb-theme-hero .nb-curve-field output {
  color: var(--niti-gold);
}

.niti-map-page.nb-theme-hero .nb-curve-action,
.niti-map-page.nb-theme-hero .nb-curve-close {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(245, 240, 235, 0.85);
}

/* Guest join ? forms only, dark theme */
.niti-join-page {
  background: #0a0a0a;
  min-height: 100dvh;
  color: #f5f0eb;
}

.niti-join-page .nb-top {
  background: rgba(10, 10, 10, 0.96);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  color: rgba(245, 240, 235, 0.92);
}

.niti-join-page .nb-field input,
.niti-join-page .nb-field select {
  width: 100%;
  box-sizing: border-box;
  min-height: 2.85rem;
  font: inherit;
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f5f0eb;
  border-radius: 0;
}

.niti-join-page .nb-field-hint {
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(245, 240, 235, 0.42);
  letter-spacing: normal;
  text-transform: none;
}

.nb-join-welcome {
  margin: 0 0 1.75rem;
}

.nb-join-welcome-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.65rem, 5.5vw, 2.05rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  color: #f5f0eb;
  text-align: center;
}

.nb-join-welcome-lead {
  margin: 0 0 1.25rem;
  color: rgba(245, 240, 235, 0.62);
  font-size: 0.98rem;
  line-height: 1.45;
  text-align: center;
}

.nb-join-couple {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin: 0;
}

.nb-join-couple-card {
  margin: 0;
  display: grid;
  gap: 0.45rem;
  justify-items: center;
}

.nb-join-couple-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
}

.nb-join-couple-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nb-join-couple-initial {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: rgba(245, 240, 235, 0.55);
  line-height: 1;
}

.nb-join-couple-name {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(245, 240, 235, 0.72);
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.niti-join-page .nb-field--file {
  gap: 0.45rem;
}

.niti-join-page .nb-file-picker {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  width: 100%;
}

.niti-join-page .nb-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.niti-join-page .nb-file-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.65rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #f5f0eb;
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.niti-join-page .nb-file-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(201, 169, 110, 0.45);
}

.niti-join-page .nb-file-name {
  flex: 1;
  min-width: 0;
  font-size: 0.88rem;
  color: rgba(245, 240, 235, 0.55);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.niti-join-page .nb-file-name.is-selected {
  color: rgba(245, 240, 235, 0.82);
}

.niti-join-page .nb-field span,
.niti-join-page .nb-fieldset legend {
  color: rgba(245, 240, 235, 0.5);
}

.niti-join-page .nb-check {
  color: rgba(245, 240, 235, 0.78);
}

.niti-join-page .nb-status {
  color: rgba(245, 240, 235, 0.55);
}

.niti-join-page .nb-status.is-ok {
  color: #b7d7a8;
}

.niti-join-page .nb-status.is-error {
  color: #ef9a9a;
}

.nb-join-events {
  padding: 1.25rem 1.15rem calc(2rem + env(safe-area-inset-bottom));
  max-width: 420px;
  margin: 0 auto;
}

.nb-join-events-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.55rem;
  margin: 0 0 0.5rem;
  color: #f5f0eb;
}

.nb-join-hint,
.nb-join-left {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(245, 240, 235, 0.55);
}

.nb-join-left strong {
  color: var(--niti-gold);
  font-weight: 600;
}

.niti-join-page .nb-guest-featured {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.niti-join-page .nb-guest-featured-title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(245, 240, 235, 0.88);
}

.niti-join-page .nb-guest-featured-hint {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  color: rgba(245, 240, 235, 0.48);
  line-height: 1.35;
}

.niti-join-page .nb-guest-featured-label {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(245, 240, 235, 0.88);
}

.niti-join-page .nb-guest-featured-label:has(input:checked) {
  border-color: rgba(201, 169, 110, 0.55);
  background: rgba(201, 169, 110, 0.1);
}

.nb-join-finish {
  width: 100%;
  margin-top: 1.25rem;
}

.nb-join-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100dvh - 52px - env(safe-area-inset-top));
  padding: 2rem 1.5rem calc(2rem + env(safe-area-inset-bottom));
  max-width: 420px;
  margin: 0 auto;
}

.nb-join-done[hidden] {
  display: none !important;
}

.nb-join-done-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  font-weight: 600;
  color: #b7d7a8;
  background: rgba(183, 215, 168, 0.12);
  border: 1px solid rgba(183, 215, 168, 0.35);
  margin-bottom: 1.25rem;
}

.nb-join-done-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.85rem;
  margin: 0 0 0.75rem;
  color: var(--niti-gold);
}

.nb-join-done-lead {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(245, 240, 235, 0.72);
  max-width: 22rem;
}

/* --- Print / Save as PDF: map stage only --- */
body.nb-printing .nb-thread-rope .nb-thread-fill,
body.nb-printing .nb-thread-path {
  animation: none !important;
  stroke-dasharray: none !important;
  stroke-dashoffset: 0 !important;
}

body.nb-printing .nb-thread-shadow {
  display: none !important;
}

body.nb-printing .nb-wedding-pulse {
  animation: none !important;
}

body.nb-printing.niti-map-page:not(.nb-theme-hero) .nb-viewport {
  background: #ffffff !important;
}

body.niti-map-page.nb-export-pdf #site-header,
body.niti-map-page.nb-export-pdf .nb-top,
body.niti-map-page.nb-export-pdf .niti-map-toolbar,
body.niti-map-page.nb-export-pdf .nb-menu,
body.niti-map-page.nb-export-pdf .nb-chrome,
body.niti-map-page.nb-export-pdf .nb-status {
  display: none !important;
}

body.niti-map-page.nb-export-pdf {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

/* On-screen layout for html2canvas PDF capture (mirrors @media print below) */
body.niti-map-page.nb-pdf-capture {
  overflow: hidden !important;
  margin: 0 !important;
}

body.niti-map-page.nb-pdf-capture #site-header {
  display: none !important;
}

#nb-pdf-export-host {
  position: fixed;
  left: -20000px;
  top: 0;
  width: calc(var(--nb-print-w, 1200) * 1px);
  height: calc(var(--nb-print-h, 1800) * 1px);
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.nb-pdf-export-viewport {
  position: relative;
  width: calc(var(--nb-print-w, 1200) * 1px);
  height: calc(var(--nb-print-h, 1800) * 1px);
  overflow: hidden;
  background: #ffffff;
}

.nb-pdf-export-viewport--hero {
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.045) 1px, transparent 0) 0 0 / 28px 28px,
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(198, 40, 40, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(201, 169, 110, 0.1), transparent 50%),
    linear-gradient(165deg, #0a0a0a 0%, #121212 45%, #0a0a0a 100%);
}

#nb-pdf-export-host .nb-node--guest .devlab-item {
  width: 164px !important;
  max-width: none !important;
}

#nb-pdf-export-host .nb-threads {
  z-index: 1 !important;
}

#nb-pdf-export-host .nb-stickers {
  z-index: 5 !important;
}

#nb-pdf-export-host .nb-camera {
  position: absolute;
  left: 0;
  top: 0;
}

#nb-pdf-export-host .nb-world {
  position: relative;
  overflow: visible;
}

#nb-pdf-export-host .nb-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
}

#nb-pdf-export-host .nb-threads-canvas {
  display: none !important;
}

#nb-pdf-export-host * {
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

body.niti-map-page.nb-pdf-capture * {
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

body.niti-map-page.nb-pdf-capture .nb-top,
body.niti-map-page.nb-pdf-capture .niti-map-toolbar,
body.niti-map-page.nb-pdf-capture .nb-mode-banner,
body.niti-map-page.nb-pdf-capture .nb-menu,
body.niti-map-page.nb-pdf-capture .nb-chrome,
body.niti-map-page.nb-pdf-capture .nb-status,
body.niti-map-page.nb-pdf-capture .nb-canvas-hint,
body.niti-map-page.nb-pdf-capture .nb-curve-panel,
body.niti-map-page.nb-pdf-capture .nb-sheet,
body.niti-map-page.nb-pdf-capture .nb-sheet-backdrop,
body.niti-map-page.nb-pdf-capture .nb-hint-modal,
body.niti-map-page.nb-pdf-capture .nb-confirm-modal,
body.niti-map-page.nb-pdf-capture .nb-drop {
  display: none !important;
}

body.niti-map-page.nb-pdf-capture .nb-app {
  display: block !important;
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  width: calc(var(--nb-print-w, 1200) * 1px) !important;
  height: calc(var(--nb-print-h, 1800) * 1px) !important;
  max-height: calc(var(--nb-print-h, 1800) * 1px) !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 2147483646;
}

body.niti-map-page.nb-pdf-capture .nb-viewport {
  position: relative !important;
  flex: none !important;
  width: calc(var(--nb-print-w, 1200) * 1px) !important;
  height: calc(var(--nb-print-h, 1800) * 1px) !important;
  min-height: 0 !important;
  overflow: hidden !important;
  cursor: default !important;
}

body.niti-map-page.nb-pdf-capture .nb-camera {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
}

body.niti-map-page.nb-pdf-capture .nb-world {
  position: relative !important;
  left: 0 !important;
  top: 0 !important;
  overflow: visible !important;
}

body.niti-map-page.nb-pdf-capture .nb-stage {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: 100% !important;
  overflow: visible !important;
  transform: none !important;
}

body.niti-map-page.nb-pdf-capture:not(.nb-theme-hero) .nb-stage--clean,
body.niti-map-page.nb-pdf-capture:not(.nb-theme-hero) .nb-viewport {
  background: #ffffff !important;
}

body.niti-map-page.nb-pdf-capture.nb-theme-hero .nb-viewport {
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.045) 1px, transparent 0) 0 0 / 28px 28px,
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(198, 40, 40, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(201, 169, 110, 0.1), transparent 50%),
    linear-gradient(165deg, #0a0a0a 0%, #121212 45%, #0a0a0a 100%) !important;
}

body.niti-map-page.nb-pdf-capture.nb-theme-hero .nb-stage--clean {
  background: transparent !important;
}

body.niti-map-page.nb-pdf-capture .nb-threads-canvas {
  display: none !important;
}

body.niti-map-page.nb-pdf-capture .nb-thread-shadow,
body.niti-map-page.nb-pdf-capture .nb-wedding-pulse {
  display: none !important;
}

@media print {
  @page {
    margin: 0;
  }

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  html,
  body.niti-map-page {
    width: calc(var(--nb-print-w, 1200) * 1px) !important;
    height: calc(var(--nb-print-h, 1800) * 1px) !important;
    max-height: calc(var(--nb-print-h, 1800) * 1px) !important;
    overflow: hidden !important;
  }

  body.niti-map-page {
    display: block !important;
  }

  .nb-app,
  .nb-viewport,
  .nb-camera,
  .nb-world,
  .nb-stage {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .nb-top,
  .niti-map-toolbar,
  .nb-mode-banner,
  .nb-menu,
  .nb-chrome,
  .nb-status,
  .nb-canvas-hint,
  .nb-curve-panel,
  .nb-sheet,
  .nb-sheet-backdrop,
  .nb-hint-modal,
  .nb-confirm-modal,
  .nb-drop {
    display: none !important;
  }

  .nb-app {
    display: block !important;
    position: static !important;
    width: calc(var(--nb-print-w, 1200) * 1px) !important;
    height: calc(var(--nb-print-h, 1800) * 1px) !important;
    max-height: calc(var(--nb-print-h, 1800) * 1px) !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .nb-viewport {
    position: relative !important;
    flex: none !important;
    width: calc(var(--nb-print-w, 1200) * 1px) !important;
    height: calc(var(--nb-print-h, 1800) * 1px) !important;
    min-height: 0 !important;
    overflow: hidden !important;
    cursor: default !important;
  }

  .nb-camera {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    transform: translate3d(var(--nb-print-x, 0px), var(--nb-print-y, 0px), 0) !important;
  }

  .nb-world {
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
    width: calc(var(--nb-print-world-w, 1600) * 1px) !important;
    height: calc(var(--nb-print-world-h, 900) * 1px) !important;
    max-width: none !important;
    aspect-ratio: auto !important;
    overflow: visible !important;
    transform: scale(var(--nb-print-scale, 1)) !important;
    transform-origin: 0 0 !important;
  }

  .nb-stage {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: 100% !important;
    overflow: visible !important;
    transform: none !important;
  }

  .niti-map-page:not(.nb-theme-hero) .nb-stage--clean {
    background: #ffffff !important;
  }

  .niti-map-page:not(.nb-theme-hero) .nb-viewport {
    background: #ffffff !important;
  }

  .niti-map-page.nb-theme-hero .nb-viewport {
    background:
      radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.045) 1px, transparent 0) 0 0 / 28px 28px,
      radial-gradient(ellipse 80% 60% at 70% 20%, rgba(198, 40, 40, 0.14), transparent 55%),
      radial-gradient(ellipse 50% 40% at 10% 80%, rgba(201, 169, 110, 0.1), transparent 50%),
      linear-gradient(165deg, #0a0a0a 0%, #121212 45%, #0a0a0a 100%) !important;
  }

  .niti-map-page.nb-theme-hero .nb-stage--clean {
    background: transparent !important;
  }

  /* Rope threads: fully drawn, filters already stripped in JS print mode */
  .nb-thread-path,
  .nb-thread-rope .nb-thread-fill,
  .nb-thread-rope .nb-thread-strand,
  .nb-thread-rope .nb-thread-filament,
  .nb-thread-rope .nb-thread-ridge,
  .nb-thread-rope .nb-thread-shadow,
  .nb-wedding-pulse {
    animation: none !important;
  }

  .nb-thread-shadow {
    display: none !important;
  }

  .nb-thread-rope .nb-thread-fill {
    stroke-dasharray: none !important;
    stroke-dashoffset: 0 !important;
  }

  .nb-threads {
    overflow: visible !important;
  }

  .nb-threads-canvas {
    display: none !important;
  }

  /* Start avatars at thread origins */
  .nb-node--start,
  .nb-start-card,
  .nb-node-av--start,
  .nb-start-name {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .nb-node-av--start {
    box-shadow:
      0 0 0 2px rgba(198, 40, 40, 0.4),
      0 2px 6px rgba(0, 0, 0, 0.12) !important;
  }

  /* Event knots instead of per-event photos */
  .nb-node-knot,
  .nb-knot-svg,
  .nb-knot-halo,
  .nb-knot-rope,
  .nb-knot-core {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .nb-node-knot {
    filter: none !important;
  }

  .nb-sticker,
  .nb-sticker--joint,
  .nb-node--guest .devlab-item--note {
    box-shadow: none !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .nb-wedding-marker,
  .nb-wedding-core,
  .nb-wedding-label {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .nb-wedding-pulse {
    display: none !important;
  }
}