/* Nirwana Residence v9.0.9 — ceremonial official invitation, installed PWA only */
.nr-official-letterhead,.nr-official-rule,.nr-official-doc-type,.nr-official-opening,.nr-official-closing,.nr-signature-caption,.nr-recipient-place{display:none}

html.nr-pwa-native .main-content:has(.nr-invite-wrap){
  background:linear-gradient(180deg,#f3ece5 0,#faf7f3 42%,#f7f2ed 100%)!important;
}
html.nr-pwa-native .nr-invite-wrap{max-width:720px!important;padding:8px 8px 0!important}
html.nr-pwa-native .nr-invite{
  position:relative;
  border:1px solid #d8c0aa!important;
  border-radius:22px!important;
  background:#fffdf8!important;
  box-shadow:0 20px 50px rgba(72,45,28,.16),0 2px 8px rgba(72,45,28,.06)!important;
}
html.nr-pwa-native .nr-invite:after{
  content:"";position:absolute;inset:8px;border:1px solid rgba(187,119,65,.22);border-radius:16px;pointer-events:none;z-index:2
}
html.nr-pwa-native .nr-pwa-invite-ribbon{
  position:relative;z-index:3;padding:9px 14px!important;
  background:linear-gradient(90deg,#35261e,#5a3927 58%,#7e4827)!important;
  border-bottom:1px solid rgba(255,255,255,.12);
  font-size:.62rem!important;letter-spacing:.11em!important
}
html.nr-pwa-native .nr-pwa-invite-ribbon small{font-size:.52rem!important;letter-spacing:.08em!important;color:#f7ddc9!important;text-align:right}
html.nr-pwa-native .nr-invite-head{
  position:relative!important;z-index:1;padding:23px 20px 19px!important;
  color:#30241d!important;background:#fffdf8!important;border-bottom:0!important;
}
html.nr-pwa-native .nr-invite-state-sent .nr-invite-head,
html.nr-pwa-native .nr-invite-state-attendance .nr-invite-head,
html.nr-pwa-native .nr-invite-state-completed .nr-invite-head,
html.nr-pwa-native .nr-invite-state-draft .nr-invite-head{background:#fffdf8!important}
html.nr-pwa-native .nr-invite-head:before{
  display:block!important;content:""!important;position:absolute!important;left:0!important;right:0!important;top:0!important;height:6px!important;
  width:auto!important;border-radius:0!important;background:linear-gradient(90deg,#d9792f,#f4a04b,#d96922)!important;opacity:1!important;z-index:0!important
}
html.nr-pwa-native .nr-invite-head:after{
  display:block!important;content:""!important;position:absolute!important;right:-65px!important;top:22px!important;left:auto!important;bottom:auto!important;
  width:150px!important;height:150px!important;border:1px solid rgba(221,128,58,.1)!important;border-radius:50%!important;background:transparent!important;z-index:0!important
}
html.nr-pwa-native .nr-official-letterhead{display:flex;align-items:center;justify-content:center;gap:13px;position:relative;z-index:2;margin:3px auto 12px}
html.nr-pwa-native .nr-invite-logo-shell{
  width:72px!important;height:72px!important;margin:0!important;border-radius:50%!important;
  background:#fff!important;border:1px solid #ead5c4!important;box-shadow:0 5px 14px rgba(91,57,35,.09)!important
}
html.nr-pwa-native .nr-invite-logo{width:62px!important;height:62px!important}
html.nr-pwa-native .nr-official-brand{text-align:left;min-width:0}
html.nr-pwa-native .nr-official-community{font-size:.55rem;font-weight:800;letter-spacing:.16em;color:#9a6a49}
html.nr-pwa-native .nr-invite-kicker{font-family:"Playfair Display",Georgia,serif!important;font-size:1.25rem!important;line-height:1.05!important;letter-spacing:.035em!important;color:#402c20!important;text-shadow:none!important;margin:3px 0!important}
html.nr-pwa-native .nr-official-location{font-size:.62rem;font-weight:800;letter-spacing:.15em;color:#b35d25}
html.nr-pwa-native .nr-official-rule{display:flex;align-items:center;gap:8px;margin:0 auto 17px;max-width:470px;position:relative;z-index:2}
html.nr-pwa-native .nr-official-rule:before,html.nr-pwa-native .nr-official-rule:after{content:"";height:1px;background:#c7773e;flex:1}
html.nr-pwa-native .nr-official-rule span{width:7px;height:7px;transform:rotate(45deg);background:#d9792f;box-shadow:0 0 0 3px #fff0e3}
html.nr-pwa-native .nr-official-doc-type{display:block;font-size:.63rem;font-weight:900;letter-spacing:.22em;color:#b85d23;margin-bottom:7px}
html.nr-pwa-native .nr-invite-title{
  color:#2d211a!important;font-family:"Playfair Display",Georgia,serif!important;font-size:1.55rem!important;font-weight:700!important;
  line-height:1.22!important;margin:0 auto 8px!important;max-width:600px;text-shadow:none!important
}
html.nr-pwa-native .nr-invite-sub{color:#7f6b5c!important;font-size:.68rem!important;font-weight:700!important;letter-spacing:.03em}
html.nr-pwa-native .nr-invite-body{position:relative;z-index:3;padding:18px 18px 24px!important;background:#fffdf8!important}
html.nr-pwa-native .nr-official-opening{display:block;margin:0 2px 14px;padding:0 2px;color:#554439;font-size:.82rem;line-height:1.62}
html.nr-pwa-native .nr-official-opening p{margin:4px 0 0}
html.nr-pwa-native .nr-official-greeting{font-family:"Playfair Display",Georgia,serif;font-weight:700;color:#34261f;font-size:.98rem}
html.nr-pwa-native .nr-invite-recipient{
  position:relative;margin:0 0 15px!important;padding:13px 14px!important;border:1px solid #e4c7af!important;border-left:4px solid #d9702a!important;
  border-radius:12px!important;background:#fff8f1!important;box-shadow:none!important
}
html.nr-pwa-native .nr-recipient-icon{width:36px!important;height:36px!important;border-radius:50%!important;background:#f8e3d1!important;color:#b9561f!important}
html.nr-pwa-native .nr-invite-recipient small{font-size:.56rem!important;letter-spacing:.12em!important;color:#9a6d50!important}
html.nr-pwa-native .nr-invite-recipient strong{font-family:"Playfair Display",Georgia,serif;font-size:.92rem;color:#34261f}
html.nr-pwa-native .nr-recipient-place{display:block;margin-top:2px;font-size:.69rem;color:#7e6a5b}
html.nr-pwa-native .nr-invite-info{
  display:grid!important;grid-template-columns:1fr!important;gap:0!important;margin:0 0 15px!important;border:1px solid #e8d6c7;border-radius:14px;overflow:hidden;background:#fff
}
html.nr-pwa-native .nr-info{
  min-height:auto!important;padding:11px 12px!important;border:0!important;border-bottom:1px solid #eee0d5!important;border-radius:0!important;background:#fff!important;box-shadow:none!important;align-items:center!important
}
html.nr-pwa-native .nr-info:last-child{border-bottom:0!important}
html.nr-pwa-native .nr-info-icon{width:31px!important;height:31px!important;border-radius:9px!important;background:#fff1e5!important;color:#cc6426!important}
html.nr-pwa-native .nr-info small{font-size:.54rem!important;letter-spacing:.1em!important;color:#9a7159!important}
html.nr-pwa-native .nr-info strong{font-size:.82rem!important;color:#32251e!important;line-height:1.35!important}
html.nr-pwa-native .nr-info-location,html.nr-pwa-native .nr-info-status{grid-column:auto!important}
html.nr-pwa-native .nr-activity-status{border-radius:8px!important;padding:5px 8px!important;font-size:.62rem!important;letter-spacing:.035em!important}
html.nr-pwa-native .nr-description-card{
  margin-top:0!important;padding:14px 14px 15px!important;border:1px solid #e8d6c7!important;border-radius:14px!important;background:#fff!important;box-shadow:none!important
}
html.nr-pwa-native .nr-description-label{font-size:.57rem!important;letter-spacing:.12em!important;color:#aa5422!important;border-bottom:1px solid #f0dfd2;padding-bottom:8px;margin-bottom:10px!important}
html.nr-pwa-native .nr-description{font-family:Georgia,"Times New Roman",serif;font-size:.91rem!important;line-height:1.72!important;color:#40332b!important;text-align:justify}
html.nr-pwa-native .nr-official-closing{display:block;margin:14px 2px 2px;color:#554439;font-family:Georgia,"Times New Roman",serif;font-size:.82rem;line-height:1.62;text-align:justify}
html.nr-pwa-native .nr-signature-caption{display:block;margin:20px 0 8px;text-align:center;color:#604d40;font-size:.69rem;line-height:1.5}
html.nr-pwa-native .nr-signature-caption strong{font-family:"Playfair Display",Georgia,serif;font-size:.85rem;color:#34261f}
html.nr-pwa-native .nr-stamps{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;margin:0!important}
html.nr-pwa-native .nr-stamp{
  width:auto!important;height:auto!important;min-height:128px!important;padding:12px 8px 10px!important;border:1px solid #ead7c7!important;border-radius:12px!important;
  transform:none!important;background:#fff!important;color:#4b382c!important;box-shadow:none!important
}
html.nr-pwa-native .nr-stamp span{font-size:.57rem!important;text-transform:uppercase;letter-spacing:.11em!important;color:#93684d}
html.nr-pwa-native .nr-signature-space{height:52px;position:relative}
html.nr-pwa-native .nr-signature-space:after{content:"";position:absolute;left:15%;right:15%;bottom:5px;border-bottom:1px solid #bba18e}
html.nr-pwa-native .nr-stamp b{display:block!important;font-family:"Playfair Display",Georgia,serif;font-size:.77rem!important;margin:1px 0 2px!important;color:#30231c!important;white-space:normal;line-height:1.22}
html.nr-pwa-native .nr-stamp em{font-size:.55rem!important;color:#94745f!important}
html.nr-pwa-native .nr-invite-foot{
  position:relative;z-index:3;padding:11px 14px!important;background:linear-gradient(90deg,#3b2a20,#66412b)!important;
  color:#fff6ee!important;font-size:.56rem!important;letter-spacing:.1em!important;border-top:3px solid #e8873e
}
html.nr-pwa-native .nr-invite-actions{margin:13px 0 20px!important;gap:9px!important}
html.nr-pwa-native .nr-invite-actions .btn{box-shadow:0 5px 12px rgba(75,48,31,.08)}

/* Supporting panels continue the formal invitation language */
html.nr-pwa-native .nr-send-panel .card,
html.nr-pwa-native .nr-attendance-card,
html.nr-pwa-native .nr-doc-card{border:1px solid #e3d3c7!important;background:#fffdf9!important}
html.nr-pwa-native .nr-attendance-head,
html.nr-pwa-native .nr-doc-head{background:linear-gradient(180deg,#fffaf5,#fff6ef)!important;border-bottom:1px solid #eadbd0!important}
html.nr-pwa-native .nr-attendance-title,
html.nr-pwa-native .nr-doc-title{font-family:"Playfair Display",Georgia,serif;color:#39291f!important}

@media(max-width:390px){
  html.nr-pwa-native .nr-invite-wrap{padding-left:4px!important;padding-right:4px!important}
  html.nr-pwa-native .nr-invite{border-radius:18px!important}
  html.nr-pwa-native .nr-invite:after{inset:6px;border-radius:13px}
  html.nr-pwa-native .nr-invite-head{padding:20px 14px 16px!important}
  html.nr-pwa-native .nr-official-letterhead{gap:9px}
  html.nr-pwa-native .nr-invite-logo-shell{width:62px!important;height:62px!important}
  html.nr-pwa-native .nr-invite-logo{width:54px!important;height:54px!important}
  html.nr-pwa-native .nr-invite-kicker{font-size:1.08rem!important}
  html.nr-pwa-native .nr-official-community{font-size:.49rem}
  html.nr-pwa-native .nr-official-location{font-size:.55rem}
  html.nr-pwa-native .nr-invite-title{font-size:1.38rem!important}
  html.nr-pwa-native .nr-invite-body{padding:15px 13px 20px!important}
  html.nr-pwa-native .nr-stamp{min-height:120px!important;padding-inline:5px!important}
  html.nr-pwa-native .nr-signature-space{height:47px}
}

@media print{
  .nr-official-letterhead,.nr-official-rule,.nr-official-doc-type,.nr-official-opening,.nr-official-closing,.nr-signature-caption,.nr-recipient-place{display:block!important}
  .nr-official-letterhead{display:flex!important}
  .nr-invite{border:1px solid #c8b5a5!important;background:#fff!important}
  .nr-invite-head,.nr-invite-body{background:#fff!important}
  .nr-stamp{transform:none!important;border:1px solid #c8b5a5!important;border-radius:6px!important}
}

/* v9.0.9 signer identity patch — preserves the approved invitation design. */
html.nr-pwa-native .nr-signature-space.nr-signature-logo-space{
  height:58px!important;display:flex!important;align-items:center!important;justify-content:center!important;position:relative!important
}
html.nr-pwa-native .nr-signature-space.nr-signature-logo-space:after{display:none!important}
html.nr-pwa-native .nr-signature-logo{display:block!important;width:88px!important;height:56px!important;max-width:100%!important;object-fit:contain!important}
html.nr-pwa-native .nr-stamps.nr-stamps-single{
  grid-template-columns:minmax(0,230px)!important;justify-content:center!important
}
html.nr-pwa-native .nr-stamps.nr-stamps-single .nr-stamp{width:100%!important}
@media(max-width:390px){
  html.nr-pwa-native .nr-signature-logo{width:80px!important;height:50px!important}
}
@media print{
  .nr-signature-space.nr-signature-logo-space{height:58px!important;display:flex!important;align-items:center!important;justify-content:center!important}
  .nr-signature-space.nr-signature-logo-space:after{display:none!important}
  .nr-signature-logo{display:block!important;width:88px!important;height:56px!important;object-fit:contain!important}
  .nr-stamps.nr-stamps-single{display:grid!important;grid-template-columns:minmax(0,230px)!important;justify-content:center!important}
}
