.nl-invite {
  --nl-night: var(--ink,#102f35);
  --nl-paper: var(--paper,#f5f7f3);
  --nl-glass: var(--glass,#a9d5c9);
  --nl-spark: var(--spark,#b8dfda);
  position: fixed;
  right: max(1.4rem, env(safe-area-inset-right, 0px));
  bottom: max(2.65rem, calc(env(safe-area-inset-bottom, 0px) + 1rem));
  z-index: 12;
  display: grid;
  justify-items: end;
  color: var(--nl-night);
  font-family: var(--sans, Arial, sans-serif);
  line-height: 1.35;
}
.nl-invite[hidden], .nl-invite [hidden] { display:none !important; }
.nl-stub {
  translate:0 var(--nl-lift,0px);
  display: flex;
  align-items: center;
  border: 1px solid #3c6664;
  background: var(--nl-night);
  color: var(--nl-paper);
  border-radius: 4px;
  box-shadow: 0 5px 16px #102f3524;
  animation: nl-arrive .46s cubic-bezier(.16,1,.3,1) both;
}
.nl-invite[data-nl-quiet] .nl-stub { animation:none; }
.nl-launch, .nl-dismiss, .nl-close {
  appearance:none; border:0; border-radius:0; background:none; cursor:pointer; color:inherit;
  min-height:44px; font:inherit; touch-action:manipulation;
}
.nl-launch { display:flex; align-items:center; gap:.62rem; padding:.2rem .85rem; text-align:left; }
.nl-mark { display:grid; place-items:center; color:var(--nl-glass); }
.nl-name { font-weight:600; font-size:.91rem; letter-spacing:.005em; }
.nl-tap { color:var(--nl-paper); font-size:.79rem; padding-left:.7rem; border-left:1px solid #6a817e; text-decoration:underline; text-underline-offset:.2em; }
.nl-launch:hover .nl-tap, .nl-launch:focus-visible .nl-tap { color:var(--nl-spark); }
.nl-dismiss, .nl-close { display:grid; place-items:center; min-width:44px; padding:0; }
.nl-dismiss { color:#e9efeb; }
.nl-dismiss:hover, .nl-close:hover { background:#778b871c; }
.nl-launch:focus-visible, .nl-dismiss:focus-visible, .nl-close:focus-visible { outline:2px solid var(--nl-glass); outline-offset:-4px; }

.nl-paper {
  grid-area:1/1;
  width:min(21rem, calc(100vw - 2rem)); padding:.6rem 1.25rem 1.05rem;
  max-height:calc(100vh - 4.3rem); max-height:calc(100dvh - 4.3rem);
  overflow:auto; overscroll-behavior:contain;
  background:var(--nl-paper); border:1px solid #b0c1bb; border-top:3px solid var(--nl-glass); border-radius:3px;
  box-shadow:0 10px 32px #102f3529;
  animation: nl-arrive .3s cubic-bezier(.16,1,.3,1) both;
}
.nl-letterhead { display:flex; justify-content:space-between; align-items:center; gap:1rem; color:#1b5b69; }
.nl-letterhead>span { font-family:var(--italic, Georgia, serif); font-style:italic; font-size:1.15rem; }
.nl-close { color:var(--nl-night); margin-right:-.65rem; }
.nl-paper h2 { margin:.25rem 0 .5rem; padding:0; font:400 clamp(1.75rem,3vw,2.05rem)/1.07 var(--serif, Georgia, serif); color:var(--nl-night); }
.nl-paper p.nl-deck { margin:.1rem 0 .98rem; font:400 .94rem/1.46 var(--sans,Arial,sans-serif); color:#2c464a; }
.nl-paper .mm-capture { display:grid; gap:.75rem; padding:0; margin:0; border:0; box-shadow:none; background:none; color:var(--nl-night); }
.nl-paper .mm-form-trap { display:none !important; }
.nl-paper .mm-email-row, .nl-paper .mm-input { display:grid; gap:.28rem; margin:0; }
.nl-paper .mm-input>label { display:block; font:600 .82rem/1.35 var(--sans,Arial,sans-serif); color:var(--nl-night); }
.nl-paper input[type="email"] { width:100%; min-height:44px; border:1px solid #6a817e; border-radius:2px; padding:.5rem .65rem; color:var(--nl-night); background:#fff; font:400 1rem/1.25 var(--sans,Arial,sans-serif); }
.nl-paper .mm-consent { display:flex; align-items:flex-start; gap:.45rem; margin:0; color:#2c464a; font:400 .85rem/1.35 var(--sans,Arial,sans-serif); }
.nl-paper input[type="checkbox"] { flex:0 0 auto; width:17px; height:17px; margin:0; margin-top:.12rem; accent-color:var(--nl-night); }
.nl-paper .mm-button { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:.65rem .8rem; border:0; border-radius:2px; color:var(--nl-night); background:var(--nl-glass); cursor:pointer; font:600 .95rem/1.25 var(--sans,Arial,sans-serif); text-decoration:none; }
.nl-paper .mm-button:hover { background:#c5e4de; }
.nl-paper .mm-form-feedback:empty { display:none; }
.nl-paper .mm-form-note, .nl-paper .mm-form-feedback { margin:0; font:400 .78rem/1.4 var(--sans,Arial,sans-serif); color:#4b6061; }
.nl-paper .mm-form-feedback[data-error] { color:#573455; }
.nl-editions { display:flex; align-items:center; justify-content:space-between; margin:.72rem 0 0; border-top:1px solid #ccdcd6; }
.nl-editions a { display:inline-flex; align-items:center; min-height:40px; color:var(--nl-night); font:500 .8rem/1.4 var(--sans,Arial,sans-serif); text-decoration:underline; text-underline-offset:.2em; }
@keyframes nl-arrive { from { opacity:0; transform:translateY(9px) } to { opacity:1; transform:translateY(0) } }
@media(max-width:700px) {
 .nl-invite { right:auto; left:max(.7rem,env(safe-area-inset-left,0px)); bottom:max(.75rem,calc(env(safe-area-inset-bottom,0px) + .55rem)); justify-items:start; }
 .nl-launch { gap:.42rem; padding-inline:.65rem; }
 .nl-mark svg { width:18px; }
 .nl-name {font-size:.84rem} .nl-tap {font-size:.77rem;padding-left:.48rem;}
 .nl-paper {width:min(20rem,calc(100vw - 1.4rem));max-height:calc(100dvh - 2rem);}
}
@media(prefers-reduced-motion:reduce) { .nl-invite *, .nl-invite *::before { animation:none !important; } }
@media print { .nl-invite { display:none !important; } }
.nl-paper h2 em{color:#176271;font-family:var(--italic,Georgia,serif);font-weight:400}
.nl-editions:has(>a:only-child){justify-content:flex-end}
.nl-paper .letter-closed .mm-button{justify-self:start}
.nl-paper .letter-closed .mm-form-note{display:block}

@media screen and (max-width:760px) {
 .nl-invite { bottom:calc(var(--mobile-dock-space) + .65rem); }
 .nl-paper { max-height:min(calc(100dvh - var(--mobile-dock-space) - 2rem),44rem); }
}
