/* Night palette and horizontal media shelf for Evently Moments. */
:is(body.mode-guest, body.mode-host:has(.evm-host-hero)) {
  --moment-ink: #eef4ff;
  --moment-muted: #b9b8ca;
  --moment-accent: #f1afd5;
  --moment-surface: #080910;
  --moment-panel: #151520;
  --moment-line: #353447;
  color: var(--moment-ink);
  background: var(--moment-surface);
  color-scheme: dark;
}
.moment-header {
  background: #10101af2;
  border-color: #2e2c3d;
}
.moment-header .moment-brand,
.mode-host .moment-header .moment-brand { color: #eef4ff; }
.moment-brand-dot { color: #f1afd5; }
.moment-brand-symbol {
  color: #fff;
  background: #9e2a65;
  box-shadow: none;
}
.moment-privacy {
  color: #ded9eb;
  background: #20202d;
  border-color: #39364b;
}
.moment-demo-bar {
  background: #10101af5;
  border-color: #2e2c3d;
}
.moment-demo-bar nav {
  background: #171724;
  border-color: #39374b;
}
.moment-demo-bar button { color: #dcd9e9; }
.moment-demo-bar button[aria-pressed=true] { background: #eadcf8; color: #24172f; }
.moment-demo-hint { color: #b9b8ca; }

.mode-guest #moments { max-width: 1040px; }
.mode-guest .moment-cover {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(345px, 48vw, 500px);
  border-radius: 25px;
  border-color: #29293a;
  background: #191722;
  color: #eef4ff;
}
.moment-cover-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  height: 100%;
  object-position: center 40%;
}
.moment-cover::after {
  display: block;
  background: #08081714;
}
.moment-cover-content {
  width: 100%;
  padding: clamp(17px, 4vw, 38px);
  background: #100e19bc;
}
.moment-cover h1 {
  color: #f8f5ff;
  font-size: clamp(32px, 6.6vw, 68px);
  max-width: 20ch;
  margin: 8px 0 13px;
  font-weight: 820;
  text-wrap: balance;
}
.moment-cover-count {
  color: #f0d5ea;
  background: #271b30;
  border-color: #513751;
}
.mode-guest .moment-share {
  background: #f2e7fa;
  color: #21162d;
  box-shadow: none;
}
.mode-guest .moment-share:hover { background: #fbdcee; color: #21162d; }
.mode-guest .moment-message { color: #ead4e7; background: transparent; }
.moment-upload-hint { color: #c0bdd0; }
.moment-feed .feed-toolbar h2,
.moment-rail-head h2 { color: #f3effc; font-weight: 800; letter-spacing: -.045em; }

.moment-rail {
  max-width: 690px;
  margin: 21px auto 0;
}
.moment-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.moment-rail-head h2 { font-size: clamp(19px, 4.4vw, 25px); line-height: 1.15; margin: 0; }
.moment-rail-arrows { display: flex; gap: 5px; }
.moment-rail-arrows[hidden] { display: none; }
.mode-guest .moment-rail-arrows button {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid #3c394d;
  border-radius: 50%;
  background: #1c1b29;
  color: #f4eafd;
  font-size: 1.4rem;
}
.moment-rail-track {
  --moment-card-width: clamp(116px, 34vw, 158px);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--moment-card-width);
  gap: 8px;
  margin: 0;
  padding: 3px 3px 8px;
  list-style: none;
  overflow-x: auto;
  scroll-padding-inline: 3px;
  scroll-snap-type: x mandatory;
  overscroll-behavior-inline: contain;
  scrollbar-color: #645370 #181824;
  scrollbar-width: thin;
}
.moment-rail-track li { min-width: 0; scroll-snap-align: start; }
.mode-guest .moment-rail-card {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid #353447;
  border-radius: 13px;
  background: #171723;
  color: #ece7f6;
  text-align: left;
}
.mode-guest .moment-rail-card:hover { border-color: #d587c3; }
.moment-rail-media {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #272235;
}
.moment-rail-media :is(img,video) { display: block; width: 100%; height: 100%; object-fit: cover; }
.moment-rail-play {
  position: absolute;
  left: 7px;
  bottom: 7px;
  padding: 3px 7px;
  border: 1px solid #ffffff49;
  border-radius: 99px;
  background: #13101de8;
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
}
.moment-rail-name {
  display: block;
  padding: 5px 9px;
  overflow: hidden;
  font-size: .76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.moment-feed .view-toggle,
.moment-feed :is(.view-toggle,.media-filters) button { background-color: transparent; color: #d1cadd; }
.moment-feed :is(.view-toggle,.media-filters) button[aria-pressed=true] {
  background: #32243d !important;
  color: #f3d8f1 !important;
  border-color: #5b415e !important;
}
.moment-feed .people small,
.moment-feed .post-head small { color: #bfb7ca; }
.moment-feed .person .avatar,
.moment-feed .post-head .avatar {
  background-color: #34243e;
  color: #f5d8ef;
  border-color: #1e1728;
  box-shadow: 0 0 0 1px #775975;
}
.moment-feed .person.selected .avatar {
  background-color: #562d57;
  box-shadow: 0 0 0 2px #d894c5;
}
.moment-feed .gallery.feed .photo,
.mode-host .gallery.feed .photo {
  border-color: #343448;
  background: #151520;
  color: #eef4ff;
  box-shadow: none;
}
.moment-feed .post-image { background: #11111c !important; }
.moment-feed .post-video video { background: #101018; }
.moment-feed .moment-open,
.moment-feed .reaction-row .icon-link,
.moment-feed .comment-toggle { color: #f1afd5; }
.moment-feed .moment-open:hover { background: #2e243b; }
.moment-feed .reaction {
  background: #211b2e !important;
  color: #eee7fa !important;
  border-color: #483b54 !important;
}
.moment-feed .reaction.chosen { background: #492447 !important; border-color: #bf83b4 !important; }
:is(.mode-host,.mode-guest) :is(.empty,.loading,.comment,.comment-form),
.mode-guest #upload-dialog, .mode-guest #profile-dialog {
  background: #171722;
  color: #eef4ff;
  border-color: #39364a;
}
:is(.mode-host,.mode-guest) :is(#moments,#upload-dialog,#profile-dialog) :is(input,select,textarea):not([type=file]) {
  background: #10101a;
  color: #f2edf9;
  border-color: #49445e;
}
:is(.mode-host,.mode-guest) :is(#moments,#upload-dialog,#profile-dialog) :is(.fine,.evm-upload-intro,.moment-consent,.progress) {
  color: #c4bece;
}
.mode-guest #upload-dialog .evm-file-picker,
.mode-guest #upload-dialog .evm-camera,
.mode-guest .moment-guest-upload .moment-message-fields { background: #211a2c; border-color: #69506d; color: #f3d9ed; }
.mode-guest .moment-message-fields summary { color: #f3d9ed; }
.mode-guest .evm-queue-card { background: #32243e; }
.mode-guest #upload-dialog .composer-top { border-color: #3d384e; }
.mode-guest #upload [type=submit] { background: #71365e !important; }
.mode-guest .moment-dock {
  background: #1d192bc7;
  border-color: #ffffff36;
  box-shadow: inset 0 1px 1px #ffffff30, 0 9px 32px #0009;
  -webkit-backdrop-filter: blur(23px) saturate(145%);
  backdrop-filter: blur(23px) saturate(145%);
}
.moment-dock button { color: #d9d0e6; }
.moment-dock button[aria-current=page] { color: #f8e8fb; background: #47304ec4; }
.moment-dock button.moment-dock-share { background: #813566; color: #fff; }
@supports not (backdrop-filter: blur(1px)) {
  .mode-guest .moment-dock { background: #1d192b; }
}
@media (prefers-reduced-transparency: reduce) {
  .mode-guest .moment-dock { background: #1d192b; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
:is(.mode-guest,.mode-host) :is(button,a,input,textarea,summary):focus-visible { outline-color: #f3aede; }

.mode-host :is(.evm-host-hero,.share-box,.quota-card,.plan-settings,.configure) {
  background: #151520;
  border-color: #353447;
  color: #eef4ff;
}
.mode-host :is(.evm-host-hero h1,.album-head p,.share-box h2,.quota-card strong,.configure h2) { color: #eef4ff; }
.mode-host .evm-host-hero .eyebrow { color: #edb0d7; }
.mode-host .evm-host-hero .moment-review { background: #71365e; }
.mode-host :is(.stat,.capacity-meter) { background: #252239; color: #e5d9ed; }
.mode-host .quota-card small { color: #cec4dc; }
.mode-host .share-box .print-card {
  color-scheme: light;
  background: #fff;
  color: #20162d;
}
.mode-host .share-box .print-card :is(h2,p) { color: #20162d; }

body.evently-moments-public { background: #0b0c13 !important; }
body.evently-moments-public #moments {
  background: #0b0c13 !important;
  --mom-ink: #f1eef9;
  --mom-border: #39364a;
}
body.evently-moments-public #moments :is(.premium-experience,.trust-strip,.premium-steps article,.feature-grid article,.occasion-strip,.faq-list details) {
  background: #171724 !important;
  border-color: #39364a;
  color: #edeaf6 !important;
}
body.evently-moments-public #moments :is(.section-copy h2,.section-heading h2,.faq-section h2,.experience-points h3,.trust-strip b,.premium-steps h3,.feature-grid h3,.faq-list summary) {
  color: #f5effa !important;
}
body.evently-moments-public #moments :is(.section-copy>p,.section-heading>p,.experience-points p,.trust-strip small,.premium-steps p,.feature-grid p,.faq-list p,.faq-section>div>p) {
  color: #c4bed0 !important;
}
body.evently-moments-public #moments :is(.eyebrow,.premium-experience .text-link) { color: #eab1d8 !important; }

@media (max-width: 740px) {
  .mode-guest .moment-cover { min-height: 326px; border-radius: 20px; }
  .moment-cover-image { object-position: center 36%; }
  .moment-cover h1 { font-size: clamp(31px, 9vw, 48px); }
  .moment-cover-content { padding: 15px; }
  .moment-share-actions { column-gap: 5px; }
  .mode-guest .moment-share { padding-inline: 11px; }
  .mode-guest .moment-message { padding-inline: 4px; font-size: .72rem; }
  .moment-rail { margin-top: 16px; }
  .moment-rail-head { margin-bottom: 4px; }
  .moment-feed { margin-top: 15px; }
}

:is(.mode-host,.mode-guest) :is(#upload-dialog,#profile-dialog) .icon-button {
  background: #271f33;
  color: #f2e9fa;
  border-color: #51425e;
}
.mode-host :is(#moments .secondary,#moments a.button.secondary) {
  background: #251e31;
  color: #eee4f6;
  border-color: #504263;
}
.mode-host #moments .print-card :is(button,.button) {
  background: #5d3155;
  color: #fff;
}
.mode-host .share-box label { color: #e0d6ed; }

#close-profile[hidden], .profile-name-error[hidden] { display: none; }
#profile-dialog .profile-name-error { margin: 0; color: #ffb9c7; font-size: .84rem; }
#profile-dialog input[aria-invalid=true] { border-color: #ffb9c7; }
