/* Evently Moments guest album */
body.mode-guest {
  --moment-ink: #2a1827;
  --moment-muted: #6f5669;
  --moment-accent: #a32458;
  --moment-surface: #fffaf7;
  --moment-line: #efddd9;
  color: var(--moment-ink);
  background: var(--moment-surface);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.mode-guest #moments {
  max-width: 954px;
  padding: 22px 24px 106px;
}
.mode-guest > footer { display: none; }
.moment-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 65px;
  padding: max(10px, env(safe-area-inset-top)) max(22px, calc((100% - 906px) / 2)) 10px;
  border-bottom: 1px solid #f0dedb;
  background: #fffaf7ee;
  backdrop-filter: blur(18px);
}
.moment-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--moment-ink);
  font-size: 28px;
  font-weight: 780;
  line-height: 1;
  letter-spacing: -.09em;
  text-decoration: none;
}
.moment-brand:hover { color: var(--moment-ink); }
.moment-brand-symbol {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #a32458;
  box-shadow: 0 4px 10px #b63c662d;
  color: white;
  font-size: 20px;
  letter-spacing: 0;
}
.moment-brand-dot { color: #bc3866; }
.moment-privacy {
  padding: 5px 10px;
  border: 1px solid #ebd4d2;
  border-radius: 99px;
  color: #673d53;
  background: #fff8f4;
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
}
.moment-cover {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(250px, 38vw, 390px);
  overflow: hidden;
  border-radius: 30px;
  background: #311d36;
  color: #fff;
}
.moment-cover::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #25172754;
  content: "";
}
.moment-cover-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.moment-cover-content { padding: clamp(18px, 5vw, 45px); }
.moment-cover-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border: 1px solid #fff8;
  border-radius: 99px;
  background: #2b173ccc;
  font-size: .74rem;
  font-weight: 700;
}
.moment-cover h1 {
  max-width: 16ch;
  margin: 9px 0 16px;
  color: #fff;
  font-size: clamp(36px, 7.2vw, 74px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.07em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.mode-guest .moment-share {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 17px;
  border: 0;
  border-radius: 14px;
  color: #801842;
  background: #fff3f0;
  box-shadow: 0 7px 24px #160c1b66;
  font-size: .88rem;
  font-weight: 800;
}
.mode-guest .moment-share:hover { background: #ffe2e6; }
.moment-feed {
  max-width: 690px;
  margin: 24px auto 0;
  scroll-margin-top: 88px;
}
.moment-feed .evm-gallery-heading { padding: 0 0 9px; }
.moment-feed .feed-toolbar { flex-wrap: wrap; gap: 8px; }
.moment-feed .feed-toolbar h2 {
  color: var(--moment-ink);
  font-size: clamp(24px, 5vw, 36px);
  letter-spacing: -.063em;
  line-height: 1.07;
}
.moment-feed .view-toggle,
.moment-feed .media-filters {
  display: flex;
  gap: 5px;
}
.moment-feed .view-toggle button,
.moment-feed .media-filters button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 99px;
  background: transparent;
  color: #61445c;
  font-size: .76rem;
  font-weight: 720;
  white-space: nowrap;
}
.moment-feed .view-toggle button[aria-pressed=true],
.moment-feed .media-filters button[aria-pressed=true] {
  background: #f8e4e9 !important;
  color: #81234a !important;
  border-color: #f2d4de !important;
}
.moment-feed .media-filters {
  margin: 4px 0 0;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--moment-line);
}
.moment-feed .people { gap: 12px; padding: 10px 4px 6px; }
.moment-feed .person { min-width: 52px; padding: 0; }
.moment-feed .person .avatar {
  width: 39px;
  height: 39px;
  border: 2px solid #fff8f0;
  border-radius: 14px;
  background: #ffe4d8;
  box-shadow: 0 0 0 1px #eec1c9;
  color: #742448;
  font-size: 16px;
}
.moment-feed .person.selected .avatar {
  box-shadow: 0 0 0 2px #ab3762;
  background: #f8c6d7;
}
.moment-feed .people small { color: #654861; font-size: .72rem; }
.moment-feed .gallery.feed { max-width: 100%; gap: 18px; }
.moment-feed .gallery.feed .photo {
  overflow: hidden;
  border: 1px solid #eeddd9;
  border-radius: 23px;
  background: #fffdfb;
  box-shadow: 0 5px 18px #61345008;
}
.moment-feed .post-head { padding: 10px 14px; gap: 10px; }
.moment-feed .post-head .avatar {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #ffe1d8;
  color: #7e2d52;
}
.moment-post-byline { min-width: 0; overflow-wrap: anywhere; }
.moment-post-byline b { font-size: .91rem; }
.moment-feed .post-head small { color: var(--moment-muted); font-size: .73rem; }
.moment-feed .moment-open {
  display: grid;
  place-items: center;
  min-width: 44px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #6c435c;
}
.moment-feed .moment-open:hover { background: #fbe8ee; }
.moment-feed .post-image { background: #f7eceb !important; }
.moment-feed .post-video video { background: #301b2b; }
.moment-feed .post-video .text-link { display: none; }
.moment-feed .photo-copy { padding: 10px 14px 2px; overflow-wrap: anywhere; }
.moment-feed .photo-copy p { font-size: .91rem; }
.moment-feed .social-block { padding: 5px 14px 12px; }
.moment-feed .reaction-row { gap: 6px; flex-wrap: wrap; }
.moment-feed .reaction {
  min-height: 44px;
  min-width: 44px;
  padding: 4px 8px;
  background: #fff4f0 !important;
  border-color: #f0ddd9 !important;
}
.moment-feed .reaction.chosen {
  background: #fbd9e4 !important;
  border-color: #b83d6e !important;
}
.moment-feed .comment-toggle { font-size: .85rem; color: #721b47; }
.moment-feed .reaction-row .icon-link {
  display: grid;
  place-items: center;
  min-height: 44px;
  min-width: 44px;
  margin-left: auto;
  color: #634258;
}
.mode-guest .moment-feed .gallery.grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 0;
}
.mode-guest .moment-feed .gallery.grid .photo { border-radius: 13px; }
.mode-guest .moment-feed .gallery.grid button:focus-visible { outline-offset: -4px; }
.moment-dock {
  position: fixed;
  z-index: 25;
  inset: auto auto max(14px, env(safe-area-inset-bottom)) 50%;
  display: grid;
  grid-template-columns: 1fr 1fr 1.18fr 1fr;
  gap: 5px;
  width: min(460px, calc(100% - 30px));
  padding: 7px;
  border: 1px solid #f2ded8;
  border-radius: 24px;
  background: #fffaf8f5;
  box-shadow: 0 9px 40px #52223b22;
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}
.moment-dock button {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  min-height: 52px;
  padding: 4px;
  border: 0;
  border-radius: 16px;
  color: #654561;
  background: transparent;
  font-size: .69rem;
  font-weight: 710;
  white-space: nowrap;
}
.moment-dock button[aria-current=page] { color: #852048; background: #fae9ee; }
.moment-dock button.moment-dock-share {
  background: #99234f;
  color: #fff;
}
.moment-icon {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: inherit;
}
.moment-dock .moment-icon, .moment-open .moment-icon { width: 20px; height: 20px; }
.moment-icon--plus::before, .moment-icon--plus::after {
  position: absolute;
  inset: 50% 12% auto;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}
.moment-icon--plus::after { transform: rotate(90deg); }
.moment-icon--feed {
  border: 1.8px solid currentColor;
  border-radius: 4px;
}
.moment-icon--feed::after {
  position: absolute;
  top: 34%;
  left: 0;
  width: 100%;
  border-top: 1.8px solid currentColor;
  content: "";
}
.moment-icon--grid {
  border: 1.8px solid currentColor;
  border-radius: 4px;
}
.moment-icon--grid::before,
.moment-icon--grid::after {
  position: absolute;
  inset: 0 48%;
  background: currentColor;
  content: "";
}
.moment-icon--grid::after { inset: 48% 0; }
.moment-icon--person::before {
  position: absolute;
  inset: 1px 31% auto;
  aspect-ratio: 1;
  border: 1.8px solid currentColor;
  border-radius: 50%;
  content: "";
}
.moment-icon--person::after {
  position: absolute;
  inset: auto 9% 0;
  height: 46%;
  border: 1.8px solid currentColor;
  border-radius: 12px 12px 4px 4px;
  content: "";
}
.moment-icon--expand {
  background: currentColor;
  clip-path: polygon(0 0,35% 0,35% 10%,10% 10%,10% 35%,0 35%,0 0,100% 0,100% 35%,90% 35%,90% 10%,65% 10%,65% 0,100% 0,100% 100%,65% 100%,65% 90%,90% 90%,90% 65%,100% 65%,100% 100%,0 100%,0 65%,10% 65%,10% 90%,35% 90%,35% 100%,0 100%,0 0);
}
.moment-icon--camera {
  border: 1.8px solid currentColor;
  border-radius: 4px;
}
.moment-icon--camera::before {
  position: absolute;
  top: -4px;
  left: 25%;
  width: 50%;
  height: 4px;
  border-radius: 3px 3px 0 0;
  background: currentColor;
  content: "";
}
.moment-icon--camera::after {
  position: absolute;
  inset: 23%;
  border: 1.7px solid currentColor;
  border-radius: 50%;
  content: "";
}
.moment-icon--download::before {
  position: absolute;
  inset: 1px 44% 32%;
  background: currentColor;
  border-radius: 2px;
  content: "";
}
.moment-icon--download::after {
  position: absolute;
  inset: 40% 25% auto;
  aspect-ratio: 1;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  content: "";
}
.mode-guest #upload-dialog {
  background: #fffaf7;
  color: var(--moment-ink);
  border: 1px solid var(--moment-line);
}
.mode-guest #upload-dialog .composer-top {
  border-bottom: 1px solid var(--moment-line);
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.mode-guest #upload-dialog .composer-top b { letter-spacing: -.035em; font-size: 1.3rem; }
.mode-guest #upload-dialog .evm-file-picker { background: #fff0eb; border-color: #cb7393; }
.mode-guest #upload-dialog .evm-camera { background: #fbe6ed; border-color: #edcbda; }
.mode-guest :is(a,button,input,textarea,summary):focus-visible {
  outline: 2px solid #9e2454;
  outline-offset: 2px;
}
@media (max-width: 740px) {
  .mode-guest #moments { padding: 10px 12px 92px; }
  .moment-header { min-height: 56px; padding-right: 15px; padding-left: 15px; }
  .moment-brand { font-size: 25px; }
  .moment-brand-symbol { width: 30px; height: 30px; border-radius: 10px; }
  .moment-cover { min-height: 244px; border-radius: 23px; }
  .moment-cover h1 { font-size: clamp(36px, 9.8vw, 53px); }
  .moment-feed { margin-top: 16px; scroll-margin-top: 65px; }
  .moment-feed .feed-toolbar h2 { font-size: 24px; }
  .moment-feed .view-toggle button { padding-inline: 6px; }
  .moment-feed .view-toggle .moment-icon { display: none; }
  .mode-guest .moment-feed .gallery.grid { gap: 4px; }
  .mode-guest .moment-feed .gallery.grid .photo { border-radius: 9px; }
  .moment-dock { bottom: max(8px, env(safe-area-inset-bottom)); }
}
@media (max-width: 360px) {
  .moment-feed .feed-toolbar h2 { font-size: 21px; }
  .moment-cover { min-height: 222px; }
}

.moment-demo-bar {
  position: sticky;
  z-index: 19;
  top: 65px;
  border-bottom: 1px solid #f0dedb;
  padding: 9px 12px 8px;
  text-align: center;
  background: #fffbf8f5;
  backdrop-filter: blur(14px);
}
.moment-demo-bar nav {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 3px;
  border: 1px solid #edd6dc;
  border-radius: 99px;
  background: #f9ecee;
}
.moment-demo-bar button {
  min-height: 44px;
  padding: 5px 13px;
  border: 0;
  border-radius: 99px;
  background: transparent;
  color: #583c54;
  font-size: .78rem;
  font-weight: 740;
}
.moment-demo-bar button[aria-pressed=true] {
  background: #992655;
  color: #fff;
}
.moment-demo-hint { margin: 6px 0 0; color: #63465b; font-size: .76rem; line-height: 1.35; }
.mode-host .moment-brand { color: #2a1827; }
.mode-host:has(.moment-demo-bar) #moments { max-width: 954px; }
.mode-host .evm-host-hero {
  background: #fbe9ed;
}
.mode-host .evm-host-hero h1 { color: #2a1827; letter-spacing: -.055em; }
.mode-host .evm-host-hero .moment-review {
  padding: 5px 12px;
  border-radius: 999px;
  background: #992655;
  color: #fff;
  font-size: .81rem;
}
body:has(.moment-demo-bar) #feed { scroll-margin-top: 180px; }
@media (max-width: 740px) {
  .moment-demo-bar { top: 56px; }
  .moment-demo-bar button { padding-right: 9px; padding-left: 9px; }
}

.mode-host .evm-host-hero .eyebrow { color: #813050; }
.mode-host .quota-card small { color: #6c5069; }
@media (max-width: 740px) {
  .moment-feed .view-toggle [data-view] { display: none; }
  .moment-feed .view-toggle { background: transparent; padding: 0; }
  .moment-feed .view-toggle [data-refresh] { min-width: 44px; margin: 0; font-size: 1.05rem; }
}

/* Solid surfaces keep the photos and the floating controls distinct. */
:is(.mode-host,.mode-guest) :is(#moments,#upload-dialog,#profile-dialog,#lightbox) :is(button,.button,.avatar),
:is(.mode-host,.mode-guest) .evm-clip,
.mode-host .capacity-meter > span {
  background-image: none !important;
}
.mode-host .capacity-meter > span { background-color: #b24572; }
.mode-guest .moment-cover {
  display: block;
  min-height: 0;
  border: 1px solid #efdbd8;
  background: #fff1eb;
  color: var(--moment-ink);
}
.moment-cover::after { display: none; }
.moment-cover-image {
  position: static;
  display: block;
  height: clamp(160px, 27vw, 330px);
  object-position: center 43%;
}
.moment-cover-content { padding: clamp(15px, 3vw, 28px); }
.moment-cover h1 {
  max-width: 25ch;
  margin: 6px 0 12px;
  color: var(--moment-ink);
  font-size: clamp(32px, 6vw, 62px);
  letter-spacing: -.065em;
  text-wrap: initial;
}
.moment-cover-count {
  color: #743d57;
  background: #fff9f5;
  border-color: #efd6d8;
}
.moment-share-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.mode-guest .moment-share {
  gap: 9px;
  color: #fff;
  background: #922650;
  box-shadow: 0 5px 14px #6b214d25;
}
.mode-guest .moment-share:hover { color: #fff; background: #781b42; }
.mode-guest .moment-message {
  padding: 5px 8px;
  background: transparent;
  border: 0;
  color: #683751;
  box-shadow: none;
  font-size: .78rem;
  font-weight: 700;
}
.moment-upload-hint { margin: 6px 0 0; color: #684d61; font-size: .78rem; }
.moment-native-picker {
  position: fixed;
  inset: 0 auto auto 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.moment-dock {
  bottom: calc(10px + env(safe-area-inset-bottom));
  width: min(454px, calc(100% - 24px));
  background: #fff8f2d4;
  border-color: #ffffffdc;
  box-shadow: inset 0 1px 1px #fff, 0 8px 28px #38172d40;
  -webkit-backdrop-filter: blur(23px) saturate(155%);
  backdrop-filter: blur(23px) saturate(155%);
}
.moment-dock button { color: #513147; }
.moment-dock button[aria-current=page] { background: #f8dfe8c9; }
.moment-dock .moment-dock-emoji { font-size: 1.1rem; line-height: 1.1; }
@supports not (backdrop-filter: blur(1px)) {
  .moment-dock { background: #fff7f1; }
}
@media (prefers-reduced-transparency: reduce) {
  .moment-dock { background: #fff7f1; backdrop-filter: none; }
}
.moment-guest-upload .moment-message-fields {
  padding: 8px 12px;
  border: 1px solid #eddcda;
  border-radius: 12px;
  background: #fff5ef;
}
.moment-message-fields summary { color: #6d3653; cursor: pointer; font-weight: 700; }
.moment-message-fields .form-grid { margin-top: 8px; }
.moment-message-fields .emoji-compose { margin: 0; }
.moment-consent { color: #61475a; font-size: .83rem; line-height: 1.45; }
.moment-consent:empty { display: none; }
.moment-guest-upload.is-sending > :not(.evm-submit),
.moment-guest-upload.is-sending .evm-submit button { display: none; }
.moment-guest-upload .evm-submit .progress { overflow-wrap: anywhere; }
.mode-guest #notice.show { bottom: calc(86px + env(safe-area-inset-bottom)); }
body.evently-moments-public #moments :is(.premium-hero,.host-features,.premium-end) {
  background: #231a35 !important;
}
body.evently-moments-public #moments .premium-hero :is(h1,h2) em {
  background: none;
  color: #ffc8d5 !important;
  -webkit-text-fill-color: #ffc8d5;
}
body.evently-moments-public #moments :is(button,.button,.avatar,.moments-pricing-card,.plan-popular-badge,#demo-video),
body.evently-moments-public #moments .moments-pricing-card::before { background-image: none !important; }
body.evently-moments-public #moments .moments-plan-switch button[aria-pressed=true],
body.evently-moments-public #moments :is(.plan-cta,.plan-popular-badge) {
  background-color: #922650 !important;
  color: #fff !important;
}
@media (max-width: 740px) {
  .moment-cover h1 { font-size: clamp(28px, 8vw, 40px); }
  .moment-cover-image { height: clamp(160px, 49vw, 220px); }
  .mode-guest #moments { padding-bottom: calc(95px + env(safe-area-inset-bottom)); }
}

:where(.mode-host,.mode-guest) :where(#moments,#upload-dialog,#profile-dialog,#lightbox) :is(button,.button) {
  background-color: #922650;
}
.moment-feed .person { background: transparent; border: 0; box-shadow: none; }
@media (max-width: 740px) {
  .mode-guest .moment-message { padding-inline: 4px; font-size: .75rem; }
}

