:root {
  --line:rgba(255,255,255,.14);
  --muted:rgba(255,255,255,.62);
  --olive-light:#c2cba6;
  --beige:#ddd3c2
}
* {
  box-sizing:border-box
}
html,body {
  width:100%;
  height:100%;
  margin:0;
  overflow:hidden
}
html {
  background:#0b0b0b
}
body {
  background:#0b0b0b;
  color:#fff;
  font-family:Inter,Segoe UI,Arial,sans-serif
}
html.module-route,
.module-route body {
  background:#f7f5f1
}
.module-route .app{display:none}
.module-route .module-workspace{display:block}
.module-route body.auth-locked .module-workspace{visibility:hidden}
.app {
  position:relative;
  width:100%;
  height:100dvh;
  overflow:hidden
}
.hero-video {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover
}
.video-shade {
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.16)
}
button {
  font:inherit
}
.menu-button {
  position:fixed;
  top:max(18px,env(safe-area-inset-top));
  right:max(18px,env(safe-area-inset-right));
  z-index:50;
  width:48px;
  height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  border:1px solid rgba(255,255,255,.2);
  border-radius:999px;
  color:#fff;
  background:rgba(15,15,15,.28);
  backdrop-filter:blur(12px);
  cursor:pointer
}
.menu-button svg {
  width:17px;
  height:17px;
  transition:transform .28s ease
}
body.menu-open .menu-button svg {
  transform:rotate(90deg)
}
.backdrop {
  position:fixed;
  inset:0;
  z-index:30;
  background:rgba(0,0,0,.18);
  opacity:0;
  visibility:hidden;
  transition:.28s
}
.menu-open .backdrop {
  opacity:1;
  visibility:visible
}
.drawer {
  position:fixed;
  top:0;
  right:calc(-1 * min(430px,100vw));
  bottom:0;
  z-index:40;
  width:min(430px,100vw);
  display:flex;
  flex-direction:column;
  padding:max(82px,calc(env(safe-area-inset-top) + 70px)) clamp(18px,2.2vw,30px) max(18px,env(safe-area-inset-bottom));
  border-left:0;
  background:transparent;
  backdrop-filter:none;
  box-shadow:none;
  opacity:0;
  visibility:hidden;
  transition:right .36s cubic-bezier(.2,.75,.2,1),opacity .25s,visibility .36s
}
.menu-open .drawer {
  right:0;
  opacity:1;
  visibility:visible
}
.drawer-content {
  min-height:0;
  display:flex;
  flex-direction:column;
  gap:18px;
  overflow:auto;
  padding-right:2px;
  scrollbar-width:none
}
.drawer-title {
  padding-bottom:16px;
  border-bottom:0
}
.eyebrow {
  display:block;
  margin-bottom:8px;
  color:var(--olive-light);
  font-size:8px;
  font-weight:900;
  letter-spacing:.22em;
  text-transform:uppercase
}
.wedding-heading {
  display:flex;
  align-items:flex-end;
  gap:10px
}
.drawer-title h1 {
  min-width:0;
  margin:0;
  font-size:clamp(25px,2.35vw,35px);
  font-weight:900;
  letter-spacing:.04em;
  line-height:1.08;
  text-transform:none
}
.wedding-heading button {
  flex:0 0 auto;
  margin-bottom:3px;
  padding:0;
  border:0;
  color:rgba(255,255,255,.48);
  background:transparent;
  cursor:pointer;
  font-size:7px;
  text-decoration:underline;
  text-underline-offset:2px
}
.wedding-heading button:hover {
  color:#fff
}
.drawer-title p {
  margin:10px 0 0;
  color:var(--muted);
  font-size:12px;
  line-height:1.55
}
.account-card {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-areas:"user logout" "wedding wedding";
  gap:14px 12px;
  padding:16px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:18px;
  background:linear-gradient(145deg,rgba(255,255,255,.07),rgba(255,255,255,.025));
  box-shadow:inset 0 1px rgba(255,255,255,.08),0 16px 34px rgba(0,0,0,.12);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px)
}
.account-user {
  grid-area:user;
  display:flex;
  align-items:center;
  gap:11px;
  min-width:0
}
.account-avatar {
  width:40px;
  height:40px;
  border-radius:50%;
  object-fit:cover;
  border:1px solid rgba(255,255,255,.22);
  box-shadow:0 6px 16px rgba(0,0,0,.18)
}
.account-copy {
  min-width:0
}
.account-copy strong,.account-copy span {
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}
.account-copy strong {
  font-size:11px
}
.account-copy span {
  margin-top:3px;
  color:rgba(255,255,255,.58);
  font-size:8px
}
.wedding-context {
  grid-area:wedding;
  display:grid;
  gap:7px;
  padding:13px 14px;
  border:1px solid rgba(194,203,166,.18);
  border-radius:13px;
  background:rgba(0,0,0,.13)
}
.wedding-context-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px
}
.wedding-context span {
  color:rgba(255,255,255,.46);
  font-size:7px;
  font-weight:900;
  letter-spacing:.14em
}
.wedding-context strong {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12px;
  letter-spacing:.01em
}
.wedding-context button {
  border:0;
  color:rgba(255,255,255,.78);
  background:transparent;
  cursor:pointer;
  font-size:8px;
  font-weight:800
}
.wedding-context #shareWeddingButton {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  width:100%;
  margin-top:2px;
  padding:8px 0 0;
  border-top:1px solid rgba(255,255,255,.08);
  text-align:left
}
.wedding-context button span {
  color:inherit;
  font-size:8px;
  letter-spacing:0
}
.wedding-title-editor {
  display:none;
  gap:8px;
  padding-top:4px
}
.wedding-title-editor.show {
  display:grid
}
.wedding-title-editor input {
  width:100%;
  min-height:38px;
  padding:0 10px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:9px;
  color:#fff;
  background:rgba(0,0,0,.18);
  font:inherit;
  font-size:11px;
  outline:none
}
.wedding-title-editor input:focus {
  border-color:rgba(194,203,166,.55)
}
.wedding-title-editor>div {
  display:flex;
  gap:7px
}
.wedding-title-editor>div button {
  padding:7px 10px;
  border-radius:8px;
  background:rgba(255,255,255,.06)
}
.wedding-title-editor>div button:first-child {
  background:#7f8962;
  color:#fff
}
.wedding-context button svg {
  width:13px;
  height:13px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
  transition:transform .18s ease
}
.wedding-context button:hover {
  color:#fff
}
.wedding-context button:hover svg {
  transform:translateX(3px)
}
.account-logout {
  grid-area:logout;
  align-self:center;
  padding:8px 10px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:10px;
  color:rgba(255,255,255,.76);
  background:rgba(255,255,255,.045);
  cursor:pointer;
  font-size:8px;
  font-weight:800
}
.account-logout:hover {
  color:#fff;
  background:rgba(255,255,255,.08)
}
.countdown-card {
  padding:14px;
  border:1px solid var(--line);
  border-radius:15px;
  background:rgba(255,255,255,.045)
}
.countdown-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px
}
.countdown-head strong {
  font-size:12px;
  letter-spacing:.04em
}
.countdown-date-actions {
  display:flex;
  align-items:center;
  gap:7px
}
.countdown-date-actions span {
  color:var(--muted);
  font-size:9px;
  font-weight:700
}
.countdown-edit {
  padding:0;
  border:0;
  color:rgba(255,255,255,.48);
  background:transparent;
  cursor:pointer;
  font-size:7px;
  text-decoration:underline
}
.countdown {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:7px
}
.time-box {
  padding:11px 4px;
  text-align:center;
  border:1px solid rgba(255,255,255,.1);
  border-radius:11px;
  background:rgba(0,0,0,.17)
}
.time-box strong {
  display:block;
  font-size:19px;
  line-height:1
}
.time-box span {
  display:block;
  margin-top:5px;
  color:var(--muted);
  font-size:7px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase
}
.date-editor {
  display:none;
  margin:10px 0 0;
  padding-top:10px;
  border-top:1px solid rgba(255,255,255,.09)
}
.date-editor.show {
  display:block
}
.date-calendar {
  padding:12px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:14px;
  background:rgba(9,9,9,.28)
}
.date-calendar-head {
  display:grid;
  grid-template-columns:32px 1fr 32px;
  align-items:center;
  gap:8px;
  margin-bottom:10px
}
.date-calendar-head strong {
  text-align:center;
  font-family:Georgia,serif;
  font-size:15px;
  font-weight:500
}
.date-calendar-head button {
  width:32px;
  height:32px;
  padding:0;
  border:1px solid rgba(255,255,255,.1);
  border-radius:50%;
  color:#fff;
  background:rgba(255,255,255,.045);
  cursor:pointer;
  font-size:20px
}
.date-calendar-week,.date-calendar-grid {
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:4px
}
.date-calendar-week {
  margin-bottom:5px;
  color:rgba(255,255,255,.42);
  text-align:center;
  font-size:7px;
  font-weight:900
}
.date-calendar-grid {
  min-height:190px
}
.calendar-blank,.calendar-day {
  aspect-ratio:1;
  min-width:0
}
.calendar-day {
  border:1px solid transparent;
  border-radius:50%;
  color:rgba(255,255,255,.82);
  background:transparent;
  cursor:pointer;
  font-size:9px
}
.calendar-day:hover {
  background:rgba(255,255,255,.08)
}
.calendar-day.is-today {
  border-color:rgba(194,203,166,.42)
}
.calendar-day.is-selected {
  color:#171912;
  background:var(--olive-light);
  font-weight:900
}
.date-calendar-selected {
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-top:10px;
  padding:10px 0;
  border-top:1px solid rgba(255,255,255,.08);
  color:rgba(255,255,255,.48);
  font-size:8px
}
.date-calendar-selected strong {
  color:#fff;
  font-size:9px;
  font-weight:700
}
.date-calendar-actions {
  display:flex;
  justify-content:flex-end;
  gap:7px
}
.date-calendar-actions button {
  padding:8px 11px;
  border:0;
  border-radius:9px;
  cursor:pointer;
  font-size:8px;
  font-weight:800
}
.date-save {
  color:#fff;
  background:#7f8962
}
.date-cancel {
  color:rgba(255,255,255,.68);
  background:rgba(255,255,255,.06)
}
.modules {
  display:grid;
  gap:9px
}
.module {
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(255,255,255,.035);
  transition:background .2s ease,border-color .2s ease
}
.module.open {
  border-color:rgba(194,203,166,.45);
  background:rgba(255,255,255,.075)
}
.module-body {
  display:grid;
  grid-template-rows:0fr;
  transition:grid-template-rows .25s ease
}
.module.open .module-body {
  grid-template-rows:1fr
}
.module-body-inner {
  min-height:0;
  overflow:hidden
}
.module-links {
  display:grid;
  gap:7px;
  padding:0 9px 10px
}
.module-link {
  min-height:40px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:9px 11px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:10px;
  color:#fff;
  background:rgba(255,255,255,.038);
  font-size:10px;
  font-weight:800;
  text-decoration:none
}
.module-link svg {
  width:12px;
  height:12px;
  flex:0 0 12px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8
}
.module-link small {
  display:block;
  margin-top:2px;
  color:rgba(255,255,255,.48);
  font-size:8px;
  font-weight:600
}
.module-toggle {
  width:100%;
  min-height:58px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:13px 14px;
  border:0;
  color:#fff;
  background:transparent;
  cursor:pointer;
  text-align:left
}
.module-label {
  display:flex;
  align-items:center;
  gap:12px
}
.module-number {
  color:var(--olive-light);
  font-size:8px;
  font-weight:900;
  letter-spacing:.12em
}
.module-name {
  display:block;
  font-size:13px;
  font-weight:850
}
.module-description {
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:9px
}
.copyright {
  margin-top:auto;
  padding-top:14px;
  color:rgba(255,255,255,.38);
  font-size:9px;
  text-align:right
}
.auth-overlay {
  position:fixed;
  inset:0;
  z-index:100;
  display:none;
  place-items:center;
  padding:20px;
  background:rgba(0,0,0,.62);
  backdrop-filter:blur(12px)
}
.auth-overlay.show {
  display:grid
}
.auth-card {
  width:min(430px,100%);
  padding:26px;
  border:1px solid var(--line);
  border-radius:24px;
  background:rgba(18,18,18,.96)
}
.auth-card h2 {
  margin:0 0 8px
}
.auth-card>p,label {
  color:var(--muted);
  font-size:11px
}
.auth-card label {
  display:grid;
  gap:5px;
  margin:9px 0
}
.auth-card input {
  min-height:46px;
  padding:0 12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:rgba(255,255,255,.06);
  color:#fff
}
.auth-card button {
  width:100%;
  min-height:46px;
  border:0;
  border-radius:12px;
  cursor:pointer;
  font-weight:800
}
.google {
  background:var(--beige);
  color:#25251f
}
.primary {
  background:#7f8962;
  color:#fff
}
.close {
  background:transparent;
  color:var(--muted)
}
.divider {
  text-align:center;
  color:#777;
  font-size:9px;
  margin:15px
}
.status {
  min-height:18px;
  color:#d7ddb9;
  font-size:11px
}
@media(max-width:700px) {
  .account-card {
    grid-template-columns:minmax(0,1fr) auto;
    gap:14px 10px;
    padding:14px
  }
  .wedding-context {
    padding:12px
  }
  .drawer {
    width:100%;
    border-left:0;
    background:transparent;
    backdrop-filter:none;
    box-shadow:none
  }
  .drawer-content {
    max-width:520px;
    width:100%;
    margin:auto
  }

}
.module-chevron {
  width:22px;
  height:22px;
  flex:0 0 22px;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:rgba(255,255,255,.88);
  transition:transform .22s ease,color .18s ease
}
.module-chevron svg {
  width:15px;
  height:15px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
  animation:chevronFloat 1.35s cubic-bezier(.45,0,.55,1) infinite
}
.module-toggle:hover .module-chevron {
  color:var(--olive-light)
}
.module.open .module-chevron {
  transform:rotate(180deg)
}
.module.open .module-chevron svg {
  animation:none
}
@keyframes chevronFloat {
  0%,100% {
    transform:translateY(-2px)
  }
  50% {
    transform:translateY(4px)
  }

}
@media(max-width:700px) {
  .module-chevron {
    width:24px;
    height:24px;
    flex-basis:24px
  }
  .module-chevron svg {
    width:16px;
    height:16px
  }

}
@media(prefers-reduced-motion:reduce) {
  .module-chevron svg {
    animation:none
  }

}
.home-dashboard {
  position:fixed;
  z-index:2;
  left:50%;
  top:50%;
  width:min(950px,calc(100vw - min(420px,29vw) - 5vw));
  height:660px;
  transform:translate(calc(-50% - min(210px,14.5vw)),-50%);
  display:none;
  grid-template-columns:repeat(12,minmax(0,1fr));
  grid-template-rows:230px 14px 416px;
  gap:14px;
  color:#f4f1eb;
  pointer-events:auto
}
.menu-open:not(.auth-locked) .home-dashboard {
  display:grid
}
.home-glass {
  position:relative;
  min-width:0;
  min-height:0;
  border:1px solid rgba(255,255,255,.16);
  background:linear-gradient(145deg,rgba(31,30,28,.43),rgba(14,14,14,.24));
  box-shadow:inset 0 1px rgba(255,255,255,.16),0 22px 55px rgba(0,0,0,.28),0 0 22px rgba(211,190,157,.08);
  backdrop-filter:blur(18px) saturate(108%);
  border-radius:25px;
  overflow:hidden;
  animation:mgdDashboardFloat 6s ease-in-out infinite
}
.home-guests {
  grid-column:1/5;
  grid-row:1;
  padding:18px;
  display:flex;
  flex-direction:column;
  animation-delay:-1.1s
}
.home-tables {
  grid-column:1/5;
  grid-row:3;
  padding:18px;
  display:flex;
  flex-direction:column;
  animation-delay:-3.8s
}
.home-checklist {
  grid-column:5/9;
  grid-row:1/4;
  padding:20px;
  display:flex;
  flex-direction:column;
  height:560px;
  align-self:center;
  animation-delay:-2.4s
}
.home-budget {
  grid-column:9/13;
  grid-row:1/4;
  padding:20px;
  display:flex;
  flex-direction:column;
  height:560px;
  align-self:center;
  animation-delay:-4.9s
}
.home-head {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px
}
.home-head span {
  font-size:12px;
  letter-spacing:.16em;
  font-weight:800;
  color:#d7d0c5
}
.home-head b {
  font-size:12px;
  color:#e3d5c2;
  white-space:nowrap
}
.home-ring {
  border-radius:50%;
  display:grid;
  place-items:center;
  background:conic-gradient(#c5ae8d 0,rgba(255,255,255,.1) 0);
  position:relative
}
.home-ring:after {
  content:"";
  position:absolute;
  inset:13px;
  border-radius:50%;
  background:rgba(18,18,18,.68)
}
.home-ring div {
  position:relative;
  z-index:1;
  text-align:center
}
.home-ring strong {
  display:block;
  font-size:34px
}
.home-ring small {
  font-size:10px;
  color:#bbb
}
.guest-ring {
  width:132px;
  height:132px;
  margin:auto
}
.checklist-ring,.timeline-ring {
  width:145px;
  height:145px;
  margin:auto
}
.budget-ring {
  width:175px;
  height:175px
}
.home-legend {
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:12px;
  font-size:10px;
  color:#b9b5ae;
  margin-top:10px
}
.home-legend i {
  display:inline-block;
  width:7px;
  height:7px;
  border-radius:50%;
  background:#c5ae8d;
  margin-right:5px
}
.home-split {
  flex:1;
  min-height:0;
  display:flex;
  flex-direction:column;
  padding-bottom:16px
}
.home-split+.home-split {
  border-top:1px solid rgba(255,255,255,.1);
  padding-top:18px;
  padding-bottom:0
}
.home-caption {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px
}
.home-caption span {
  padding:14px 10px;
  border-radius:15px;
  background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.07);
  font-size:10px;
  text-align:center;
  color:#aaa59e
}
.home-caption b {
  display:block;
  font-size:20px;
  color:#e4ddd3
}
.home-next {
  display:grid;
  grid-template-columns:1fr auto;
  align-items:end;
  gap:2px 10px;
  padding:11px 13px;
  border-radius:15px;
  background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.07)
}
.home-next small {
  grid-column:1/3;
  font-size:8px;
  letter-spacing:.13em;
  color:#99958e
}
.home-next strong {
  font-size:15px;
  color:#e4ddd3
}
.home-next span {
  font-size:10px;
  color:#c9b89f
}
.home-budget-center {
  margin:auto 0;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:25px
}
.home-budget-numbers {
  width:100%;
  display:grid;
  gap:9px
}
.home-budget-numbers span {
  display:flex;
  justify-content:space-between;
  align-items:end;
  padding:12px 13px;
  border-bottom:1px solid rgba(255,255,255,.08)
}
.home-budget-numbers small {
  font-size:8px;
  letter-spacing:.13em;
  color:#99958e
}
.home-budget-numbers strong {
  font-size:17px;
  color:#e2d8ca
}
.home-progress {
  height:7px;
  border-radius:99px;
  background:rgba(255,255,255,.09);
  overflow:hidden;
  margin-top:auto
}
.home-table-summary {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:11px;
  margin:8px 0
}
.home-table-summary>strong {
  font-size:34px;
  color:#ddcbb4
}
.home-table-summary>span {
  font-size:10px;
  color:#bdb8b0;
  line-height:1.45
}
.home-tables-scroll {
  flex:1;
  min-height:0;
  display:grid;
  place-items:center
}
.home-empty {
  text-align:center;
  color:#9d9992;
  font-size:10px
}
@keyframes mgdDashboardFloat {
  0%,100% {
    transform:translate3d(0,0,0)
  }
  50% {
    transform:translate3d(0,-7px,0)
  }

}
@media(max-width:1180px) and (min-width:761px) {
  .home-dashboard {
    left:2.5vw;
    right:38vw;
    top:5vh;
    bottom:5vh;
    width:auto;
    height:auto;
    transform:none;
    grid-template-columns:1fr 1fr;
    grid-template-rows:auto;
    overflow:auto
  }
  .home-guests,.home-tables,.home-checklist,.home-budget {
    grid-column:auto;
    grid-row:auto;
    height:auto;
    min-height:290px
  }
  .home-checklist,.home-budget {
    min-height:390px
  }

}
@media(max-width:760px) {
  .menu-open:not(.auth-locked) .home-dashboard {
    display:flex
  }
  .home-dashboard {
    position:relative;
    z-index:auto;
    left:auto;
    right:auto;
    top:auto;
    bottom:auto;
    width:100%;
    height:auto;
    transform:none;
    margin:6px 0 0;
    flex-direction:column;
    gap:12px;
    overflow:visible
  }
  .home-guests,.home-tables,.home-checklist,.home-budget {
    width:100%;
    height:auto;
    min-height:0;
    padding:16px
  }
  .home-checklist,.home-budget {
    height:auto
  }
  .home-glass {
    border-radius:20px;
    animation-duration:7s
  }
  .guest-ring {
    width:118px;
    height:118px;
    margin:18px auto
  }
  .checklist-ring,.timeline-ring {
    width:126px;
    height:126px;
    margin:18px auto
  }
  .budget-ring {
    width:140px;
    height:140px
  }
  .home-split {
    min-height:250px
  }
  .home-budget-center {
    gap:14px;
    margin:18px 0
  }
  .home-tables {
    min-height:180px
  }

}
@media(prefers-reduced-motion:reduce) {
  .home-glass {
    animation:none
  }

}

.active-wedding-button{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0;border:0;color:#fff;background:transparent;text-align:left;cursor:pointer}
.active-wedding-button strong{min-width:0}
.active-wedding-button svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.8}
.wedding-switcher{position:fixed;inset:0;z-index:1000;display:none;place-items:center;padding:20px}
.wedding-switcher.show{display:grid}
.wedding-switcher-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.58);backdrop-filter:blur(10px)}
.wedding-switcher-panel{position:relative;width:min(520px,100%);max-height:min(620px,82dvh);overflow:auto;padding:22px;border:1px solid rgba(255,255,255,.14);border-radius:22px;background:rgba(18,18,18,.94);box-shadow:0 24px 70px rgba(0,0,0,.34)}
.wedding-switcher-panel header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}
.wedding-switcher-panel header span{color:var(--olive-light);font-size:8px;font-weight:900;letter-spacing:.18em}
.wedding-switcher-panel h2{margin:5px 0 4px;font-family:Georgia,serif;font-size:24px;font-weight:500}
.wedding-switcher-panel p{margin:0;color:var(--muted);font-size:10px}
.wedding-switcher-panel header>button{width:34px;height:34px;border:1px solid rgba(255,255,255,.12);border-radius:50%;color:#fff;background:rgba(255,255,255,.05);cursor:pointer}
.weddings-list{display:grid;gap:9px}
.wedding-list-item{width:100%;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px;border:1px solid rgba(255,255,255,.1);border-radius:14px;color:#fff;background:rgba(255,255,255,.045);text-align:left;cursor:pointer}
.wedding-list-item.is-current{border-color:rgba(194,203,166,.4);background:rgba(127,137,98,.15)}
.wedding-list-item span{min-width:0}
.wedding-list-item strong,.wedding-list-item small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wedding-list-item strong{font-size:12px}.wedding-list-item small{margin-top:4px;color:var(--muted);font-size:8px}
.wedding-list-item b{flex:0 0 auto;color:var(--olive-light);font-size:8px}
.wedding-list-empty{padding:24px;text-align:center;color:var(--muted);font-size:10px}


/* Barra global: una navegación, dos presentaciones responsive. */
.module-workspace{position:fixed;inset:0;z-index:70;display:none;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;background:#f7f5f1;color:#413d38}
.module-open .module-workspace{display:block}
.app-mobile-header,.app-mobile-nav-backdrop{display:none}
.app-module-nav{box-sizing:border-box;position:fixed;z-index:72;top:14px;left:16px;right:16px;height:86px;padding:8px 13px 5px 14px;display:flex;align-items:center;gap:16px;border:1px solid rgba(255,255,255,.78);border-radius:25px;background:rgba(255,255,255,.82);box-shadow:0 14px 40px rgba(69,58,48,.11),inset 0 1px rgba(255,255,255,.9);backdrop-filter:blur(22px) saturate(115%);-webkit-backdrop-filter:blur(22px) saturate(115%);color:#413d38;animation:mgdBarArrival .72s cubic-bezier(.22,.85,.32,1) both;transform-origin:50% 0}
@keyframes mgdBarArrival{0%{opacity:0;transform:translate3d(0,-115px,0) scale(.985);filter:blur(5px)}68%{opacity:1;transform:translate3d(0,5px,0);filter:blur(0)}100%{opacity:1;transform:translate3d(0,0,0);filter:blur(0)}}
.app-nav-home{box-sizing:border-box;height:65px;min-width:210px;padding:0 12px 0 4px;display:flex;align-items:center;gap:12px;border:0;border-right:1px solid rgba(80,67,56,.1);background:transparent;color:inherit;text-align:left;cursor:pointer}
.app-nav-home-mobile-label{display:none}
.mgd-brand-mark{width:53px;height:53px;flex:0 0 53px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#778263,#4f5b43);color:#fff;font-family:Georgia,serif;font-size:15px;box-shadow:0 6px 18px rgba(75,87,62,.2)}
.mgd-brand-copy strong,.mgd-brand-copy small{display:block}
.mgd-brand-copy strong{font:650 14px Georgia,serif}
.mgd-brand-copy small{max-width:128px;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px;color:#989087}
.app-nav-modules{min-width:0;flex:1;height:72px;display:flex;align-items:stretch;justify-content:center;gap:2px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
.app-nav-modules::-webkit-scrollbar{display:none}
.app-nav-item{position:relative;min-width:86px;height:72px;padding:7px 7px 8px;flex:0 0 auto;display:block;border:0;background:transparent;color:#77584f;border-radius:15px;cursor:pointer;font:400 9.5px Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;transition:.2s ease}
.app-nav-item:hover{background:rgba(108,117,88,.07)}
.app-nav-item img{width:27px;height:27px;display:block;object-fit:contain;margin:auto;transition:transform .2s ease}
.app-nav-item:hover img,.app-nav-item.is-active img{transform:translateY(-1px)}
.app-nav-item span{display:block;margin-top:5px;white-space:nowrap}
.app-nav-item.is-active{color:#63734d}
.app-nav-item.is-active:after{content:"";position:absolute;left:17px;right:17px;bottom:0;height:3px;border-radius:99px;background:#778d59;box-shadow:0 2px 7px rgba(119,141,89,.25)}
.app-nav-account-wrap{position:relative;min-width:190px;flex:0 0 auto;border-left:1px solid rgba(80,67,56,.1);padding-left:14px}
.app-nav-account{width:100%;min-width:0;height:58px;padding:5px 7px;display:grid;grid-template-columns:44px 1fr 18px;align-items:center;gap:9px;border:0;border-radius:17px;background:transparent;color:inherit;text-align:left;cursor:pointer}
.app-nav-account:hover{background:rgba(108,117,88,.06)}
.app-nav-account-avatar{position:relative;width:42px;height:42px;display:grid;place-items:center;border-radius:50%;overflow:hidden;background:linear-gradient(145deg,#d7c8b7,#a9957e);color:#fff;font-size:11px;font-weight:850;box-shadow:0 4px 13px rgba(80,62,48,.15)}
.app-nav-account-avatar>img{position:absolute;inset:0;width:100%;height:100%;display:none;object-fit:cover}
.app-nav-account-avatar>img.show{display:block}
.app-nav-account-avatar>img.show+span{display:none}
.app-nav-account-copy{min-width:0}
.app-nav-account-copy strong,.app-nav-account-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.app-nav-account-copy strong{font-size:11px}
.app-nav-account-copy small{margin-top:2px;font-size:8px;color:#999087}
.app-nav-chevron{font-size:13px;font-weight:700;color:#756e67}
.app-nav-account-popover{box-sizing:border-box;display:none;position:absolute;right:0;top:70px;width:240px;padding:14px;border:1px solid rgba(80,67,56,.1);border-radius:18px;background:rgba(255,255,255,.96);box-shadow:0 20px 55px rgba(55,45,37,.17);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);color:#413d38;z-index:1000}
.app-nav-account-wrap.is-open .app-nav-account-popover{display:block}
.app-nav-account-popover>strong,.app-nav-account-popover>span{display:block}
.app-nav-account-popover>strong{font-size:12px}
.app-nav-account-popover>span{margin:3px 0 11px;color:#999087;font-size:9px}
.app-nav-wedding,.app-nav-logout{box-sizing:border-box;width:100%;margin-top:6px;padding:10px;border:0;border-radius:11px;background:#f4f1ec;color:#615b54;font-size:9px;font-weight:750;cursor:pointer}
.app-nav-wedding{text-align:left}
.app-nav-wedding span,.app-nav-wedding strong,.app-nav-wedding small{display:block}
.app-nav-wedding span,.app-nav-wedding small{font-size:8px;color:#999087}
.app-nav-wedding strong{margin:2px 0;font-size:9px}
.module-stage{min-height:100dvh;padding:114px 36px 36px;overflow:visible}
.module-loader{position:fixed;z-index:90;inset:100px 0 0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;background:rgba(247,245,241,.96);backdrop-filter:blur(12px);text-align:center}
.module-loader[hidden]{display:none}
.module-loader-mark{position:relative;width:86px;height:86px;display:grid;place-items:center;margin-bottom:22px}
.module-loader-mark span{width:58px;height:58px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(145deg,#778263,#4f5b43);box-shadow:0 12px 30px rgba(75,87,62,.2);color:#fff;font:500 15px Georgia,serif;letter-spacing:.04em}
.module-loader-mark i{position:absolute;inset:0;border:1.5px solid rgba(119,130,99,.16);border-top-color:#849168;border-right-color:#b77783;border-radius:50%;animation:mgdLoaderSpin 1.15s linear infinite}
.module-loader>strong{color:#3e3a36;font:500 24px/1.15 Georgia,serif}
.module-loader-copy{margin-top:8px;color:#8c8781;font:500 10px/1.4 Arial,sans-serif}
.module-loader-dots{display:flex;gap:6px;margin-top:18px}
.module-loader-dots i{width:5px;height:5px;border-radius:50%;background:#849168;animation:mgdLoaderDot 1.15s ease-in-out infinite}
.module-loader-dots i:nth-child(2){animation-delay:.14s}
.module-loader-dots i:nth-child(3){animation-delay:.28s}
@keyframes mgdLoaderSpin{to{transform:rotate(360deg)}}
@keyframes mgdLoaderDot{0%,60%,100%{opacity:.25;transform:translateY(0)}30%{opacity:1;transform:translateY(-4px)}}
.checklist-review{width:min(980px,100%);min-height:360px;margin:40px auto;padding:42px;border:1px solid rgba(73,77,59,.12);border-radius:24px;background:#fbfaf7;box-shadow:0 22px 60px rgba(57,58,48,.08)}
.checklist-review>span{color:#7f8962;font-size:9px;font-weight:900;letter-spacing:.18em}
.checklist-review h2{margin:9px 0 10px;font-family:Georgia,serif;font-size:34px;font-weight:500}
.checklist-review p{max-width:620px;margin:0;color:#77796f;font-size:13px;line-height:1.7}

@media(max-width:1050px) and (min-width:981px){
  .app-nav-home{min-width:72px;width:72px;padding:0;border-right:0}
  .mgd-brand-copy{display:none}
  .app-nav-modules{justify-content:flex-start}
  .app-nav-account-wrap{min-width:62px;width:62px;padding-left:8px}
  .app-nav-account-copy,.app-nav-chevron{display:none}
  .app-nav-account{grid-template-columns:44px;width:52px}
}

@media(max-width:980px){
  html.module-route,.module-route body{background:#fff}
  .module-workspace{overflow:hidden;background:#fff}
  .app-mobile-header{box-sizing:border-box;position:absolute;z-index:76;top:0;left:0;right:0;height:calc(58px + env(safe-area-inset-top));padding:env(safe-area-inset-top) max(12px,env(safe-area-inset-right)) 0 max(12px,env(safe-area-inset-left));display:grid;grid-template-columns:42px 38px minmax(0,1fr);align-items:center;gap:8px;border-bottom:1px solid rgba(80,67,56,.08);background:#fff;color:#413d38}
  .app-mobile-menu{width:38px;height:38px;display:grid;place-items:center;padding:0;border:0;border-radius:11px;background:rgba(108,117,88,.08);color:#5d6550;cursor:pointer}
  .app-mobile-menu svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round}
  .app-mobile-brand-mark{width:36px;height:36px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(145deg,#778263,#4f5b43);color:#fff;font:500 10px Georgia,serif}
  .app-mobile-identity{min-width:0;line-height:1.05}
  .app-mobile-identity strong,.app-mobile-identity small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .app-mobile-identity strong{font:650 13px Georgia,serif;color:#433f3a}
  .app-mobile-identity small{margin-top:4px;color:#8e877f;font-size:8.5px;font-weight:650}
  .app-mobile-nav-backdrop{position:absolute;z-index:73;top:calc(58px + env(safe-area-inset-top));left:0;right:0;bottom:0;display:block;padding:0;border:0;background:rgba(49,44,39,.2);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .2s ease,visibility .2s ease}
  .module-workspace.is-mobile-menu-open .app-mobile-nav-backdrop{opacity:1;visibility:visible;pointer-events:auto}
  .app-module-nav{position:absolute;z-index:74;top:calc(58px + env(safe-area-inset-top));left:0;right:auto;bottom:0;width:min(300px,calc(100% - 48px));height:auto;padding:12px;display:flex;flex-direction:column;align-items:stretch;gap:6px;border:0;border-right:1px solid rgba(80,67,56,.1);border-radius:0 18px 18px 0;background:#fff;box-shadow:16px 0 36px rgba(55,45,37,.14);backdrop-filter:none;-webkit-backdrop-filter:none;animation:none;transform:translateX(-104%);transition:transform .24s ease;overflow:auto;-webkit-overflow-scrolling:touch;pointer-events:none}
  .module-workspace.is-mobile-menu-open .app-module-nav{transform:translateX(0);pointer-events:auto}
  .app-nav-home{width:100%;min-width:0;height:46px;padding:0 10px;justify-content:flex-start;border-right:0;border-bottom:1px solid rgba(80,67,56,.1);border-radius:10px}
  .app-nav-home .mgd-brand-mark,.app-nav-home .mgd-brand-copy{display:none}
  .app-nav-home-mobile-label{display:block;color:#625e58;font-size:10px;font-weight:800}
  .app-nav-modules{width:100%;height:auto;min-height:0;flex:1;display:grid;grid-template-columns:1fr;align-content:start;gap:3px;overflow:visible}
  .app-nav-item{width:100%;min-width:0;height:46px;padding:5px 10px;display:grid;grid-template-columns:32px minmax(0,1fr);align-items:center;gap:8px;text-align:left;font-size:10px}
  .app-nav-item img{width:25px;height:25px;margin:0}
  .app-nav-item span{min-width:0;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .app-nav-item.is-active:after{left:0;right:auto;top:7px;bottom:7px;width:3px;height:auto}
  .app-nav-account-wrap{width:100%;min-width:0;margin-top:auto;padding:8px 0 0;border-left:0;border-top:1px solid rgba(80,67,56,.1)}
  .app-nav-account{width:100%;height:50px;padding:4px 6px;display:grid;grid-template-columns:38px minmax(0,1fr) 18px}
  .app-nav-account-avatar{width:36px;height:36px}
  .app-nav-account-copy{display:block}
  .app-nav-chevron{display:inline}
  .app-nav-account-popover{position:static;width:100%;margin-top:6px;box-shadow:none}
  .module-stage{position:absolute;top:calc(58px + env(safe-area-inset-top));left:0;right:0;bottom:0;min-height:0;padding:12px 12px max(12px,env(safe-area-inset-bottom));overflow:auto;-webkit-overflow-scrolling:touch;background:#fff}
  .module-loader{inset:0;background:#fff}
  body.module-open.is-module-loading .app-mobile-header,
  body.module-open.is-module-loading .app-module-nav,
  body.module-open.is-module-loading .app-mobile-nav-backdrop,
  body.module-open.is-module-loading .module-stage>[data-module-view]{visibility:hidden}
  .checklist-review{min-height:calc(100% - 24px);margin:0;padding:26px 20px;border-radius:20px}
  .checklist-review h2{font-size:28px}
}
@media(prefers-reduced-motion:reduce){.app-module-nav,.app-mobile-nav-backdrop,.app-nav-item{animation:none;transition:none}.module-loader-mark i,.module-loader-dots i{animation:none}}

/* Gestor de accesos: una sola interfaz sobre los miembros e invitaciones reales de Firebase. */
.access-manager{position:fixed;inset:0;z-index:1100;display:none;place-items:center;padding:20px}
.access-manager.show{display:grid}.access-manager-backdrop{position:absolute;inset:0;background:rgba(11,12,10,.62);backdrop-filter:blur(12px)}
.access-manager-panel{position:relative;width:min(720px,100%);max-height:min(760px,88dvh);overflow:auto;padding:24px;border:1px solid rgba(255,255,255,.15);border-radius:24px;background:rgba(26,27,24,.96);box-shadow:0 28px 80px rgba(0,0,0,.4);color:#fff}
.access-manager-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:20px}.access-manager-head span{color:var(--olive-light);font-size:8px;font-weight:900;letter-spacing:.18em}.access-manager-head h2{margin:5px 0 4px;font:500 26px Georgia,serif}.access-manager-head p{margin:0;color:var(--muted);font-size:10px}.access-manager-head>button{width:34px;height:34px;border:1px solid rgba(255,255,255,.12);border-radius:50%;color:#fff;background:rgba(255,255,255,.05);cursor:pointer}
.access-invite{display:grid;grid-template-columns:minmax(0,1fr) 160px auto;gap:9px;align-items:end;padding:14px;border:1px solid rgba(255,255,255,.1);border-radius:16px;background:rgba(255,255,255,.045)}.access-invite label span{display:block;margin:0 0 6px;color:rgba(255,255,255,.52);font-size:8px;font-weight:800;letter-spacing:.08em}.access-invite input,.access-invite select,.access-role{width:100%;height:39px;padding:0 10px;border:1px solid rgba(255,255,255,.13);border-radius:10px;color:#fff;background:#292b26;font:inherit;font-size:10px;outline:none}.access-invite button{height:39px;padding:0 16px;border:0;border-radius:10px;color:#fff;background:#778263;cursor:pointer;font-size:9px;font-weight:800}
.access-status{min-height:14px;margin:9px 2px 0;color:var(--olive-light);font-size:9px}.access-section{margin-top:18px}.access-section-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.access-section-title strong{font-size:11px}.access-section-title span{color:var(--muted);font-size:9px}.access-list{display:grid;gap:7px}.access-person{display:grid;grid-template-columns:38px minmax(0,1fr) 145px auto;gap:10px;align-items:center;padding:10px 11px;border:1px solid rgba(255,255,255,.09);border-radius:13px;background:rgba(255,255,255,.035)}.access-person-avatar{width:36px;height:36px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(145deg,#778263,#4f5b43);font-size:10px;font-weight:800}.access-person-copy{min-width:0}.access-person-copy strong,.access-person-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.access-person-copy strong{font-size:10px}.access-person-copy small{margin-top:3px;color:var(--muted);font-size:8px}.access-role{height:34px}.access-role-label{justify-self:end;color:var(--olive-light);font-size:8px;font-weight:800}.access-remove,.access-cancel{padding:8px 9px;border:1px solid rgba(255,255,255,.1);border-radius:9px;color:rgba(255,255,255,.72);background:transparent;cursor:pointer;font-size:8px}.access-cancel{grid-column:4}.access-empty{padding:18px;border:1px dashed rgba(255,255,255,.1);border-radius:13px;color:var(--muted);text-align:center;font-size:9px}
@media(max-width:700px){.access-manager{padding:10px}.access-manager-panel{max-height:94dvh;padding:18px;border-radius:20px}.access-invite{grid-template-columns:1fr}.access-person{grid-template-columns:38px minmax(0,1fr)}.access-role,.access-role-label,.access-remove,.access-cancel{grid-column:2;justify-self:stretch}.access-role-label{justify-self:start}}

.wedding-switcher-tabs{display:flex;gap:6px;margin:0 0 14px;padding:4px;border-radius:12px;background:rgba(255,255,255,.045)}.wedding-switcher-tabs button{flex:1;padding:9px;border:0;border-radius:9px;color:var(--muted);background:transparent;cursor:pointer;font-size:9px;font-weight:800}.wedding-switcher-tabs button.is-active{color:#fff;background:rgba(255,255,255,.09)}.wedding-switcher-tabs span{margin-left:4px;color:var(--olive-light)}
.wedding-switcher-action{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.wedding-switcher-action>span{color:var(--muted);font-size:9px}.wedding-switcher-action button,.wedding-invite-option button,.create-wedding-card button[type="submit"]{padding:9px 12px;border:0;border-radius:9px;color:#fff;background:#778263;cursor:pointer;font-size:9px;font-weight:800}
.wedding-invite-option{grid-template-columns:1fr auto}.wedding-invite-option>span strong,.wedding-invite-option>span small{display:block}.wedding-invite-option>span small{margin-top:3px;color:var(--muted);font-size:8px}.wedding-empty{padding:18px;border:1px dashed rgba(255,255,255,.1);border-radius:12px;color:var(--muted);text-align:center;font-size:9px}
.create-wedding-card{margin-top:14px;padding:16px;border:1px solid rgba(255,255,255,.11);border-radius:15px;background:rgba(255,255,255,.045)}.create-wedding-card[hidden]{display:none}.create-wedding-card h3{margin:0 0 12px;font:500 17px Georgia,serif}.create-wedding-card label{display:block;margin-top:9px}.create-wedding-card label span{display:block;margin-bottom:5px;color:var(--muted);font-size:8px;font-weight:800}.create-wedding-card input{box-sizing:border-box;width:100%;height:39px;padding:0 10px;border:1px solid rgba(255,255,255,.13);border-radius:10px;color:#fff;background:#292b26;font:inherit;font-size:10px}.create-wedding-card>div{display:flex;justify-content:flex-end;gap:8px;margin-top:13px}.create-wedding-card button{padding:9px 12px;border:1px solid rgba(255,255,255,.1);border-radius:9px;color:#fff;background:transparent;cursor:pointer;font-size:9px}.create-wedding-card p{min-height:12px;margin:8px 0 0;color:var(--olive-light);font-size:8px}


/* Cuenta en barra móvil: el menú debe salir fuera de la barra lateral sin quedar recortado. */
@media(max-width:700px){
  .app-module-nav{overflow:visible}
  .app-nav-modules{min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:none}
  .app-nav-modules::-webkit-scrollbar{display:none}
  .app-nav-account-wrap{position:relative;overflow:visible}
  .app-nav-account-popover{
    position:absolute;
    left:72px;
    right:auto;
    top:auto;
    bottom:0;
    width:min(248px,calc(100vw - 104px));
    max-height:calc(100dvh - 24px);
    overflow-y:auto;
    z-index:1200
  }
}
