@font-face {
  font-family: "ZCOOL KuaiLe";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/zcool-kuaile.woff2") format("woff2");
}

:root {
  --bg: #f5f2ee;
  --surface: #ffffff;
  --ink: #2d2a31;
  --muted: #8b8790;
  --line: #eae3de;
  --accent: #f06a7d;
  --accent-deep: #d94d63;
  --accent-soft: #fdeef0;
  --teal: #2f8f87;
  --teal-soft: #e7f3f1;
  --gold: #c9994a;
  --danger: #c0392b;
  --shadow: 0 1px 2px rgba(45, 42, 49, 0.04), 0 8px 24px rgba(45, 42, 49, 0.05);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: #eae6e1;
}

html.space-boot,
html.space-boot body,
html.space-boot .phone {
  background: #000;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--ink);
  background: #eae6e1;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.hidden {
  display: none !important;
}

body.sheet-open {
  overflow: hidden;
}

body.settings-detail-open {
  touch-action: pan-y;
}

.phone {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  overflow: visible;
}

@media (min-width: 520px) {
  .phone {
    min-height: calc(100dvh - 32px);
    margin: 16px auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(45, 42, 49, 0.16);
  }
}

.screen {
  min-height: 100dvh;
}

.screen-loading {
  min-height: 100dvh;
  background: #000;
}

.screen-center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
}

#view-setup {
  align-items: flex-start;
  padding: 14px 24px 40px;
}

.screen-app {
  min-height: 100dvh;
  padding: 0 0 calc(84px + env(safe-area-inset-bottom));
}

.screen-splash {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100dvh;
  padding: calc(24px + env(safe-area-inset-top)) 24px calc(2px + env(safe-area-inset-bottom));
  color: #fff;
  overflow: hidden;
}

.splash-bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/splash-default.jpg");
  background-size: cover;
  background-position: center;
  animation: splash-zoom 2.6s ease-out both;
}

.splash-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(38, 27, 36, 0.18) 0%, rgba(38, 27, 36, 0.08) 42%, rgba(38, 27, 36, 0.68) 100%);
}

.splash-top,
.splash-main,
.splash-bottom {
  position: relative;
  z-index: 1;
  animation: splash-rise 0.7s ease both;
}

.splash-main {
  animation-delay: 0.12s;
}

.splash-bottom {
  animation-delay: 0.22s;
}

.splash-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  opacity: 0.96;
}

.splash-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  flex: 1;
  text-align: center;
  padding: 0;
}

.splash-eyebrow {
  margin: 0;
  font-size: 14px;
  opacity: 0.96;
}

.splash-top {
  align-self: stretch;
  padding-top: 4px;
  text-align: left;
}

.splash-days {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.splash-days span {
  color: #fff;
  font-size: 86px;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 4px 18px rgba(38, 27, 36, 0.22);
}

.splash-days em {
  font-size: 26px;
  font-style: normal;
  font-weight: 700;
  opacity: 0.96;
}

.splash-range {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  font-size: 14px;
  opacity: 0.92;
}

.splash-range-line {
  display: block;
}

.splash-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  font-size: 13px;
}

.splash-info-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: min(100%, 360px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.splash-info-card .splash-days {
  margin-top: 0;
}

.splash-date-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  background: rgba(20, 16, 22, 0.26);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.splash-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-bottom: calc(52px + env(safe-area-inset-bottom));
}

.splash-enter-space {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--accent-deep);
  text-shadow: none;
}

.splash-enter-arrow {
  flex: 0 0 auto;
  font-size: 22px;
  line-height: 1;
}

.splash-tip {
  text-align: center;
  font-size: 12px;
  opacity: 0.86;
}

@keyframes splash-zoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

@keyframes splash-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.setup-inner {
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.setup-mark {
  display: inline-flex;
  margin-bottom: 16px;
}

.setup-inner h1,
.screen-center h1 {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0;
}

.setup-lead {
  margin: 10px 0 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.form label,
.settings-card label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

input,
textarea {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: 16px;
}

input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  min-height: 46px;
}

textarea {
  min-height: 116px;
  resize: vertical;
  line-height: 1.6;
}

input:focus,
textarea:focus {
  border-color: var(--teal);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 16px rgba(240, 106, 125, 0.28);
}

.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-danger {
  background: #fdecec;
  color: var(--danger);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 14px;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 6px;
  color: var(--teal);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.link-accent {
  color: var(--accent-deep);
}

.setup-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.setup-photo-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.setup-photo-preview {
  display: block;
  width: 42%;
  max-width: 190px;
  height: auto;
  margin: 8px auto 0;
  border-radius: 0;
  object-fit: cover;
  background: #f2eee9;
}

.lock-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
}

.pin-dots {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 22px 0 26px;
}

.pin-dots span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--surface);
  transition: background 0.12s ease;
}

.pin-dots span.filled {
  background: var(--accent);
  border-color: var(--accent);
}

.pin-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 300px;
}

.pin-pad button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 20px;
  font-weight: 600;
}

.pin-pad button:active {
  background: var(--accent-soft);
}

.pin-lock-hint {
  margin: -10px 0 16px;
  color: var(--danger);
  font-size: 13px;
  text-align: center;
}

.pin-pad.is-locked {
  opacity: 0.6;
  pointer-events: none;
}

.screen-lock .link-btn {
  display: inline-flex;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 16px 5px;
  background: rgba(245, 242, 238, 0.94);
  backdrop-filter: blur(12px);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.topbar-titles {
  min-width: 0;
}

.space-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 700;
}

.space-sub {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.topbar-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
}

.icon-btn:active {
  background: var(--accent-soft);
}

.icon-btn-sm {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 20px;
  line-height: 1;
}

.avatars {
  display: flex;
  flex-shrink: 0;
}

.avatars .avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.avatars .avatar + .avatar {
  margin-left: -10px;
}

.avatars .avatar.ghost {
  background: #ded8d3;
  color: #fff;
}

.page {
  padding: 18px 16px 28px;
}

#page-home {
  padding-top: 3px;
}

#page-settings-detail {
  padding-top: 4px;
}

#page-settings-detail,
#page-month-entries,
#page-month-photos,
#page-month-calendar {
  touch-action: pan-y;
}

#page-month-entries,
#page-month-photos,
#page-month-calendar {
  padding-top: 0;
}

#page-month-entries .page-head,
#page-month-photos .page-head,
#page-month-calendar .page-head {
  position: sticky;
  top: 0;
  z-index: 6;
  margin: 0 -16px 14px;
  padding: 12px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 22px 18px 18px;
  box-shadow: 4px 8px 14px rgba(45, 42, 49, 0.12);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  z-index: 0;
  background-image: var(--hero-photo);
  background-position: center;
  background-size: cover;
  opacity: 0.7;
}

.hero::after {
  z-index: 1;
  background: rgba(0, 0, 0, 0.5);
}

.hero > * {
  position: relative;
  z-index: 2;
}

.hero-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

.hero-days {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 6px;
}

.hero-days span {
  color: #ffffff;
  font-size: 58px;
  font-weight: 800;
  line-height: 1.05;
}

.hero-days em {
  color: #ffffff;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
}

.hero-range {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

#countdown-chips.chips {
  display: block;
  margin-top: 10px;
}

.countdown-note {
  display: block;
  text-align: left;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.7;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 600;
}

.chip.teal {
  background: var(--teal-soft);
  color: var(--teal);
}

.milestone {
  margin-top: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #fff3e2 0%, #fdeef0 100%);
  border-color: #f2d9c4;
}

.milestone-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.milestone-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #fff;
  color: var(--gold);
}

.milestone-text {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.milestone .link-btn {
  margin-top: 6px;
  justify-content: flex-start;
  padding: 0;
  font-size: 13px;
}

.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.quick {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.quick:active {
  background: var(--accent-soft);
}

.quick-primary {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #d97cc6 0%, #e97d97 18%, #f06a7d 30%, #f06a7d 70%, #f29a62 86%, #ffd98f 100%);
  border: 0;
  color: #fff;
  box-shadow: 0 6px 16px rgba(240, 106, 125, 0.22);
}

.quick-primary:active {
  background: linear-gradient(135deg, #c96cb4 0%, #d96d86 18%, #e05f71 30%, #e05f71 70%, #e08a56 86%, #f2c36e 100%);
}

.recap-card {
  margin-top: 14px;
  padding: 18px;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-title-row h2,
.page-head h2 {
  font-size: 17px;
  line-height: 1.3;
}

.card-note,
.page-head-note {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.quote {
  margin-top: 12px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.7;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.mini-stats button {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 2px;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}

.mini-stats strong,
.stat-cell strong {
  color: var(--accent-deep);
  font-size: 22px;
  line-height: 1.1;
}

.mini-stats span,
.stat-cell span {
  color: var(--muted);
  font-size: 12px;
}

.gift-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 12px;
  align-items: center;
  margin-top: 14px;
  padding: 16px;
}

.gift-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: #fff3e2;
  color: var(--gold);
}

.gift-copy h2 {
  font-size: 15px;
  line-height: 1.4;
}

.gift-copy p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.gift-card .btn {
  grid-column: 1 / -1;
  width: 100%;
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 2px 14px;
}

.month-close-x {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.entry {
  padding: 14px;
}

.entry-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.avatar-dot {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 4px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.entry-head strong {
  display: block;
  font-size: 15px;
  color: #576b95;
}

.entry-head span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.entry-text {
  margin-top: -3px;
  margin-left: 42px;
  margin-right: 42px;
  font-size: 15px;
  line-height: 1.45;
  text-align: left;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.entry-photo {
  display: block;
  width: 100%;
  max-height: 300px;
  margin-top: 12px;
  border-radius: 0;
  object-fit: cover;
  background: #f2eee9;
}

.entry-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  justify-content: flex-end;
}

.entry-time {
  margin-left: 42px;
  margin-right: auto;
  color: var(--muted);
  font-size: 12px;
}

.entry-menu-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 0;
  padding: 4px 8px;
  background: #ececec;
  border: 0;
  border-radius: 7px;
  height: 28px;
  min-height: 28px;
}

.entry-menu-icons.hide-out {
  animation: menu-icons-out 0.16s ease forwards;
}

.entry-menu-icons.hidden {
  display: none;
}

.entry-menu-icons.show {
  animation: menu-icons-in 0.18s ease;
}

.entry-menu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
}

.entry-menu-icon:active {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

@keyframes menu-icons-in {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes menu-icons-out {
  to {
    opacity: 0;
    transform: translateX(14px);
  }
}

.heart-btn,
.reply-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 600;
}

.heart-btn.liked {
  background: var(--accent);
  color: #fff;
}

.reply-btn {
  background: var(--teal-soft);
  color: var(--teal);
}

.entry-more-btn {
  margin-left: 0;
  padding: 4px 8px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}

#entry-menu-sheet .btn + .btn {
  margin-top: 12px;
}

.entry-replies-divider {
  border-top: 1px solid var(--line);
  margin: 12px 0 10px;
}

.reply-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 14px 0 0;
  padding: 12px 42px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.5;
}

.reply-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 2px 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.reply-line strong {
  flex-shrink: 0;
  color: #576b95;
  font-size: 13px;
}

.reply-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.reply-input-row {
  display: flex;
  gap: 8px;
}

.reply-input-row input {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  padding: 8px 12px;
  font-size: 16px;
}

.reply-input-row button {
  flex-shrink: 0;
}

.empty {
  padding: 44px 20px;
  text-align: center;
}

.empty-heart {
  margin-bottom: 14px;
}

.empty h3 {
  font-size: 17px;
}

.empty p {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.month-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.month-label {
  min-width: 96px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
}

#month-prev,
#month-next {
  width: auto;
  height: auto;
  padding: 4px 6px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font-size: 22px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 16px 12px;
  margin-bottom: 14px;
}

.stat-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px;
  border: 0;
  border-radius: 8px;
  background: none;
  cursor: pointer;
  text-align: center;
}

.stat-cell strong {
  font-size: 20px;
}

.share-card {
  padding: 20px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f06a7d 0%, #c84d63 100%);
  color: #fff;
  box-shadow: 0 10px 26px rgba(200, 77, 99, 0.28);
}

.share-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  opacity: 0.9;
}

.share-days {
  margin-top: 18px;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
}

.share-quote {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.96;
  overflow-wrap: anywhere;
}

.share-stats {
  display: flex;
  gap: 18px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 13px;
}

.share-brand {
  margin-top: 18px;
  text-align: right;
  font-size: 12px;
  opacity: 0.85;
}

.share-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.settings-card {
  margin-bottom: 14px;
  padding: 16px;
}

.settings-card h3 {
  margin-bottom: 14px;
  font-size: 15px;
}

.settings-card > label {
  margin-bottom: 12px;
}

.space-name-row {
  display: flex;
  gap: 8px;
}

.space-name-row input {
  flex: 1;
  min-width: 0;
}

.space-name-row .btn {
  flex-shrink: 0;
}

.splash-photo-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.splash-photo-preview {
  width: 90px;
  height: 120px;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  object-fit: cover;
}

#home-photo-preview {
  width: 120px;
  height: 90px;
}

.splash-photo-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settings-desc {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.member-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.member-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 0;
  border: 0;
  background: transparent;
}

.member-row .avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
}

.member-row strong {
  display: block;
  font-size: 14px;
}

.member-row span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.member-row .member-name-input {
  flex: 1;
  min-width: 0;
  width: auto;
  padding: 8px 10px;
  font-size: 16px;
}

.member-name-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: relative;
}

.member-index {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 13px;
  pointer-events: none;
  white-space: nowrap;
}

.member-name-wrap .member-name-input {
  width: 100%;
  padding-left: 66px;
}

.member-row .avatar-btn {
  display: flex;
  padding: 0;
  border: 0;
  background: transparent;
}

.member-row .member-save {
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: none;
}

.member-tip {
  margin: 2px 0 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.invite-row {
  display: block;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  background: var(--accent-soft);
}

.invite-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 10px;
}

.settings-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.invite-code {
  display: block;
  margin-top: 3px;
  color: var(--accent-deep);
  font-size: 16px;
  letter-spacing: 0;
  user-select: all;
  -webkit-user-select: all;
}

.join-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.join-row input {
  font-size: 14px;
  padding: 10px 12px;
}

.join-row .btn {
  grid-column: 1 / -1;
}

.pin-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pin-form input {
  font-size: 16px;
}

.keychain-qr {
  display: block;
  width: 220px;
  max-width: 100%;
  height: 220px;
  margin: 4px auto 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.keychain-qr-url {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  text-align: center;
}

#save-keychain-qr {
  width: 100%;
}

.data-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  z-index: 30;
  display: flex;
  width: 100%;
  max-width: 480px;
  transform: translateX(-50%);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.tab {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 5px 0;
  border-radius: 8px;
  color: var(--muted);
  font-size: 11px;
}

.tab.active {
  color: var(--accent-deep);
  font-weight: 700;
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(30, 27, 33, 0.4);
}

.sheet {
  position: fixed;
  bottom: 0;
  left: 50%;
  z-index: 50;
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  max-height: 92dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  transform: translateX(-50%);
  padding: 12px 18px calc(22px + env(safe-area-inset-bottom));
  border-radius: 18px 18px 0 0;
  background: var(--surface);
  box-shadow: 0 -12px 40px rgba(45, 42, 49, 0.16);
  animation: sheet-in 0.22s ease;
}

@keyframes sheet-in {
  from {
    transform: translateX(-50%) translateY(24px);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

.sheet-handle {
  width: 42px;
  height: 4px;
  margin: 0 auto 14px;
  border-radius: 99px;
  background: var(--line);
}

.sheet h2 {
  font-size: 19px;
}

.crop-stage {
  position: relative;
  width: 100%;
  height: 320px;
  margin: 14px 0;
  border-radius: 8px;
  background: var(--bg);
  overflow: hidden;
}

.crop-stage img {
  display: block;
  max-width: 100%;
}

.prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.prompt-chips button {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 600;
}

.prompt-chips button:active {
  background: #fbd9de;
}

.entry-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.photo-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-width: 0;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.photo-btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.media-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.photo-status {
  grid-column: 1 / -1;
  display: block;
  min-height: 16px;
  color: var(--muted);
  font-size: 12px;
}

.photo-status:empty {
  display: none;
}

.photo-preview {
  position: relative;
  margin-top: 12px;
}

.photo-preview img {
  display: block;
  width: 100%;
  max-height: 220px;
  border-radius: 8px;
  object-fit: cover;
}

.photo-preview .btn {
  position: absolute;
  top: 8px;
  right: 8px;
}

.sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.gift-sheet-body {
  text-align: center;
  padding: 8px 4px 4px;
}

.gift-sheet-body p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.gift-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0;
  padding: 14px;
  list-style: none;
  border-radius: 8px;
  background: var(--bg);
  text-align: left;
  font-size: 14px;
}

.gift-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gift-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.toast {
  position: fixed;
  bottom: 104px;
  left: 50%;
  z-index: 60;
  max-width: 80%;
  transform: translateX(-50%);
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(45, 42, 49, 0.92);
  color: #fff;
  font-size: 14px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  animation: toast-in 0.2s ease;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.shake {
  animation: shake 0.24s ease;
}

.home-clock {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.join-note {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 13px;
  line-height: 1.6;
  text-align: left;
}

.countdown-manage {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.event-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.event-row {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.event-row-main {
  border-color: rgba(240, 106, 125, 0.42);
}

.event-row-line {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  box-sizing: border-box;
}

.event-field-name {
  width: 44px;
  flex-shrink: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: left;
}

.event-label-input,
.event-add .event-row-line select {
  flex: 1;
  min-width: 0;
  padding: 2px 0;
  border: 0;
  background: transparent;
  font-size: 16px;
  text-align: center;
}

.event-add .event-row-line select {
  text-align-last: center;
}

.event-add select option {
  text-align: center;
}

.event-badge {
  display: inline-flex;
  flex-shrink: 0;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 700;
}

.event-date-field {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  height: 44px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  box-sizing: border-box;
}

.event-date-field .event-field-name {
  width: 44px;
}

.event-date-icon {
  flex-shrink: 0;
  margin-left: auto;
}

.event-date-input {
  flex: 1;
  min-width: 0;
  padding: 2px 0;
  border: 0;
  background: transparent;
  font-size: 16px;
  text-align: center;
}

.event-row-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.event-summary {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
}

.event-row-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.event-main-disabled {
  pointer-events: none;
}

.event-add {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.event-add .btn {
  width: 100%;
  margin-top: 14px;
}

.entry-row {
  margin-top: 10px;
  padding: 12px;
  border-radius: 8px;
  background: var(--teal-soft);
}

.entry-value {
  display: block;
  margin-top: 3px;
  color: var(--teal);
  font-size: 15px;
}

.celebrate {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  pointer-events: none;
  background: transparent;
}

.celebrate canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.celebrate-title {
  position: absolute;
  top: 16%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0;
  font-family: "ZCOOL KuaiLe", "STCaiyun", "华文彩云", "Kaiti SC", "STKaiti", "KaiTi", "楷体", "Comic Sans MS", cursive;
  background: linear-gradient(135deg, #fff7c4 0%, #ffd9a0 32%, #ffb3c7 66%, #c9f2ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 3px 18px rgba(45, 42, 49, 0.35);
  animation: celebrate-title-in 0.65s cubic-bezier(0.2, 1.6, 0.4, 1) both;
  transition: opacity 0.9s ease;
}

.celebrate-title.celebrate-title-fade {
  opacity: 0;
}

.celebrate-skip {
  position: absolute;
  right: 18px;
  top: calc(18px + env(safe-area-inset-top));
  bottom: auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  pointer-events: auto;
}

@keyframes celebrate-title-in {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.6) rotate(-6deg);
  }
  55% {
    opacity: 1;
    transform: translateX(-50%) scale(1.08) rotate(3deg);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1) rotate(0deg);
  }
}

.celebrate,
.celebrate * {
  pointer-events: none !important;
}

.celebrate-skip {
  pointer-events: auto !important;
}

.data-actions .btn-danger {
  grid-column: 1 / -1;
}

.screen-lock {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 28px 24px calc(20px + env(safe-area-inset-bottom));
  overflow-y: auto;
}

.screen-lock .pin-dots {
  margin-top: auto;
  margin-bottom: 22px;
}

.screen-lock .link-btn {
  margin-top: 18px;
}

.lock-recovery {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 300px;
  margin-top: auto;
  text-align: left;
}

.lock-recovery input {
  width: 100%;
}

.lock-recovery .link-btn {
  margin-top: 2px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
}

#recap-card-link {
  cursor: pointer;
}

.compose-media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.compose-sticky-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding: 0 0 calc(12px + env(safe-area-inset-bottom));
}

.compose-sticky-actions .btn {
  flex: 1;
}

#page-compose {
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
}

.compose-media-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 0;
  overflow: hidden;
  background: var(--bg);
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: pan-y;
  transition: transform 160ms ease, opacity 160ms ease, box-shadow 160ms ease;
}

.compose-media-item.is-sort-placeholder {
  opacity: 0.22;
  outline: 1px dashed rgba(45, 42, 49, 0.38);
  outline-offset: -1px;
}

.compose-media-item.is-sort-placeholder .compose-media-remove {
  visibility: hidden;
}

.compose-media-float {
  position: fixed;
  z-index: 10000;
  margin: 0;
  pointer-events: none;
  opacity: 0.96;
  transform: scale(1.06) rotate(1deg);
  transform-origin: center;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(45, 42, 49, 0.34);
  transition: none;
  will-change: left, top;
}

.compose-media-float .compose-media-remove {
  display: none;
}

body.compose-media-sorting {
  overflow: hidden;
  touch-action: none;
}

.compose-media-item img,
.compose-media-item canvas,
.compose-media-item video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compose-media-item img,
.compose-media-item canvas {
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.compose-media-sort-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  touch-action: pan-y;
}

.compose-media-grid.has-video {
  display: block;
}

.compose-media-grid.has-video .compose-media-video {
  display: inline-block;
  width: auto;
  height: auto;
  max-width: 110px;
  max-height: 220px;
  aspect-ratio: auto;
}

.compose-media-grid.has-video .compose-media-video[style] {
  width: var(--compose-video-width);
  height: var(--compose-video-height);
  max-width: 100%;
}

.compose-media-grid.has-video .compose-media-video img,
.compose-media-grid.has-video .compose-media-video video {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
}

.compose-media-grid.has-video .compose-media-video[style] img,
.compose-media-grid.has-video .compose-media-video[style] video {
  width: 100%;
  height: 100%;
}

.compose-media-remove {
  position: absolute;
  z-index: 2;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(45, 42, 49, 0.72);
  color: #fff;
  font-size: 15px;
  line-height: 24px;
  text-align: center;
}

.compose-video-tag {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 11px;
}

.entry-media-grid {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  margin-left: 42px;
  margin-right: 42px;
}

.entry-media-grid.count-1 {
  grid-template-columns: 1fr;
  justify-items: start;
}

.entry-media-grid.count-1 .entry-media-item {
  width: auto;
  max-width: 180px;
  max-height: 180px;
  aspect-ratio: auto;
}

.entry-media-grid.count-2,
.entry-media-grid.count-4 {
  grid-template-columns: repeat(2, 87px);
  justify-content: start;
}

.entry-media-grid.count-3 {
  grid-template-columns: repeat(3, 1fr);
}

.entry-media-grid.count-5,
.entry-media-grid.count-6,
.entry-media-grid.count-7,
.entry-media-grid.count-8,
.entry-media-grid.count-9 {
  grid-template-columns: repeat(3, 1fr);
}

.entry-media-item {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  background: var(--bg);
}

.entry-media-grid:not(.count-1) .entry-media-item {
  aspect-ratio: 1;
}

.entry-media-item img,
.entry-media-item video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entry-video-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 120px;
  min-height: 120px;
  background: #e9eceb;
}

.entry-media-grid.count-1 .entry-video-placeholder {
  width: 180px;
  height: 135px;
}

.entry-media-grid.count-1 .entry-media-item img,
.entry-media-grid.count-1 .entry-media-item video {
  width: auto;
  height: auto;
  max-width: 180px;
  max-height: 180px;
  object-fit: contain;
}

.entry-media-grid.count-1 .entry-video-item {
  width: auto;
  height: auto;
  max-width: 180px;
  max-height: 180px;
}

.entry-media-grid.count-1 .entry-video-item[style] {
  width: var(--entry-video-width);
  height: var(--entry-video-height);
  max-width: 100%;
  max-height: 220px;
}

.entry-media-grid.count-1 .entry-video-item[style] video {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 220px;
}

.entry-media-grid.count-1 .entry-video-item.no-poster {
  background: #e9eceb;
}

.entry-media-grid.count-1 .entry-video-item.no-poster video {
  background: #e9eceb;
}

.entry-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.splash-enter-alt {
  background: rgba(255, 255, 255, 0.88);
}

.identity-row {
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 8px;
  background: var(--bg);
}

.identity-switch {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.identity-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  padding: 10px 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
}

.identity-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.identity-btn.active {
  background: var(--teal-soft);
  border-color: var(--teal);
  color: var(--teal);
}

.splash-identity-row {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.event-label-field {
  grid-column: 1 / -1;
}

.avatar-photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.avatar-dot img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  object-fit: cover;
}

.member-avatar-actions {
  display: flex;
  gap: 8px;
  width: 100%;
}

.member-avatar-actions .btn-sm {
  min-height: 34px;
}

.recent-card {
  margin-top: 14px;
  padding: 16px;
}

.recent-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.recent-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  background: var(--bg);
}

.recent-item .avatar-dot {
  flex-shrink: 0;
}

.recent-copy {
  min-width: 0;
  flex: 1;
}

.recent-copy strong {
  display: block;
  font-size: 14px;
}

.recent-copy p {
  margin-top: 3px;
  font-size: 14px;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.recent-copy span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

#celebrate {
  opacity: 1;
  transition: opacity 0.8s ease;
}

#celebrate.celebrate-fade {
  opacity: 0;
}

.celebrate-skip {
  opacity: 0.5;
  font-size: 12px;
  padding: 6px 12px;
}

.splash-enter-space {
  display: block;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  opacity: 0.96;
  text-shadow: 0 2px 12px rgba(38, 27, 36, 0.35);
}

.splash-brand-line {
  text-align: center;
  font-size: 12px;
  color: #fff;
  opacity: 0.8;
  letter-spacing: 0;
}

.recent-section {
  margin-top: 14px;
}

.load-more-btn {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
}

.recent-title {
  margin-bottom: 10px;
  font-size: 17px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 20px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-align: center;
}

.empty-state strong {
  font-size: 16px;
}

.empty-state p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.empty-state .btn {
  margin-top: 6px;
}

.compose-identity {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--bg);
}

.compose-identity .settings-label {
  flex-shrink: 0;
}

.compose-identity .identity-btn {
  flex: 1;
  padding: 8px 6px;
  font-size: 13px;
}

.reply-identity {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.reply-identity .settings-label {
  flex-shrink: 0;
}

.reply-identity-switch {
  display: flex;
  gap: 6px;
}

.reply-identity-switch .identity-btn {
  flex: initial;
  padding: 6px 10px;
  font-size: 12px;
}

.splash-chip-line {
  text-align: center;
  line-height: 1.5;
  text-shadow: 0 2px 10px rgba(38, 27, 36, 0.45);
}

.splash-brand-line {
  margin-top: 18px;
}

.splash-tip {
  margin-top: 6px;
}

#page-timeline {
  padding-top: 4px;
}

#page-timeline .recap-card {
  margin-top: 0;
}

.splash-brand-line {
  margin-top: 0;
}

.splash-tip {
  margin-top: 0;
}

.entry-text.folded {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.entry-media-grid.count-3.media-folded .entry-media-item:nth-child(n+4) {
  display: none;
}

.entry-media-grid.count-6.media-folded .entry-media-item:nth-child(n+7) {
  display: none;
}

.entry-expand {
  display: block;
  margin: 8px 42px 0 auto;
  padding: 0;
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
}

.splash-brand-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(28px + env(safe-area-inset-bottom));
  text-align: center;
  z-index: 1;
  margin-top: 0;
}

.splash-tip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(8px + env(safe-area-inset-bottom));
  text-align: center;
  z-index: 1;
  margin-top: 0;
}

.album-card {
  margin-top: 14px;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.album-grid:not(.is-expanded) .album-item:nth-child(n + 10) {
  display: none;
}

/* Monthly memories always show every photo; the nine-photo limit is for the home album only. */
#recap-detail .album-grid .album-item:nth-child(n + 10),
#month-photos-grid .album-item:nth-child(n + 10) {
  display: block;
}

.album-item {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  background: var(--bg);
  cursor: pointer;
}

.album-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.album-empty {
  grid-column: 1 / -1;
  padding: 16px 4px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  white-space: nowrap;
}

.album-full {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 56px 18px 28px;
  background: rgba(24, 20, 26, 0.96);
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: contain;
}

.video-full {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 8, 12, 0.96);
}

.video-full video {
  width: 100%;
  max-height: 100%;
  background: #000;
}

.album-close-x {
  position: absolute;
  top: calc(16px + env(safe-area-inset-top));
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  z-index: 2;
}

.album-stage {
  width: 100%;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  touch-action: none;
}

.album-track {
  display: flex;
  width: 300%;
  height: 100%;
  transform: translateX(-33.333%);
  will-change: transform;
}

.album-track-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 33.333%;
  flex-shrink: 0;
  padding: 0 13px;
}

.album-track-img {
  max-width: 100%;
  max-height: 74vh;
  border-radius: 8px;
  object-fit: contain;
}

.album-caption {
  flex-shrink: 0;
  margin-top: 14px;
  min-height: 96px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
  max-width: 100%;
  width: 100%;
  overflow: hidden;
}

.album-meta {
  display: block;
  margin-top: 2px;
}

.album-caption p {
  margin-top: 6px;
  color: #fff;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.album-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  min-height: 8px;
}

.album-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.album-dots span.active {
  width: 8px;
  height: 8px;
  background: #fff;
}

.recap-detail {
  margin-top: 14px;
}

.recap-detail-body h3 {
  font-size: 17px;
}

.recap-entry {
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}

.recap-entry:last-child {
  border-bottom: 0;
}

.recap-entry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.recap-entry-head strong {
  font-size: 14px;
}

.recap-entry-head span {
  color: var(--muted);
  font-size: 12px;
}

.recap-entry > p {
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.day-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.day-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--bg);
  font-size: 14px;
}

.settings-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 16px;
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: left;
}

.settings-profile-avatars {
  display: flex;
  flex-shrink: 0;
}

.settings-profile-avatars .avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 2px solid var(--surface);
}

.settings-profile-avatars .avatar + .avatar {
  margin-left: -12px;
}

.settings-profile-info {
  flex: 1;
  min-width: 0;
}

.settings-profile-info strong {
  display: block;
  font-size: 17px;
}

.settings-profile-info span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.settings-group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.settings-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--ink);
  font-size: 15px;
  text-align: left;
}

.settings-row:last-child {
  border-bottom: 0;
}

.settings-row:active {
  background: var(--bg);
}

.row-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: #fff;
  flex-shrink: 0;
}

.row-icon.icon-teal { background: var(--teal); }
.row-icon.icon-gold { background: var(--gold); }
.row-icon.icon-accent { background: var(--accent); }
.row-icon.icon-deep { background: var(--accent-deep); }
.row-icon.icon-violet { background: #8a7fd0; }

.row-chevron {
  margin-left: auto;
  color: var(--muted);
  font-size: 20px;
}

#settings-sources {
  display: none;
}

#page-settings-detail #settings-detail-body .settings-card {
  margin-bottom: 14px;
}

.page-enter-left {
  animation: page-enter-left 0.28s ease;
  will-change: transform, opacity;
}

@keyframes page-enter-left {
  from { transform: translateX(24%); opacity: 0.5; }
  to { transform: translateX(0); opacity: 1; }
}

.page-exit-right {
  animation: page-exit-right 0.24s ease;
  will-change: transform, opacity;
}

@keyframes page-exit-right {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(24%); opacity: 0.4; }
}

.page-enter-right {
  animation: page-enter-right 0.28s ease;
  will-change: transform, opacity;
}

@keyframes page-enter-right {
  from { transform: translateX(-24%); opacity: 0.5; }
  to { transform: translateX(0); opacity: 1; }
}

.view-slide-down {
  animation: view-slide-down 0.3s ease;
  will-change: transform, opacity;
}

@keyframes view-slide-down {
  from { transform: translateY(-12%); opacity: 0.3; }
  to { transform: translateY(0); opacity: 1; }
}

.view-rise {
  animation: view-rise 0.28s ease;
  will-change: transform, opacity;
}

@keyframes view-rise {
  from { transform: translateY(12%); opacity: 0.3; }
  to { transform: translateY(0); opacity: 1; }
}

.pin-pad button#pin-backspace {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}

#settings-detail-body .settings-card > h3 {
  display: none;
}

.feedback-group {
  margin-bottom: 12px;
}

.feedback-group label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}

.feedback-group textarea {
  width: 100%;
  min-height: 90px;
  resize: vertical;
}

.feedback-status {
  margin-top: 10px;
  color: var(--teal);
  font-size: 13px;
  line-height: 1.5;
}

.policy-links-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.policy-links-row .btn {
  flex: 1;
}

.site-filing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin: 70px 0 4px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
  font-size: 10px;
  line-height: 1.5;
}

.site-filing a {
  color: var(--muted);
  text-decoration: none;
}

.data-backup-desc {
  margin-bottom: 14px;
}

.recap-card-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: -5px;
}

.policy-body {
  max-height: 60vh;
  overflow-y: auto;
  padding: 4px 2px 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink);
  white-space: pre-wrap;
}

.album-toggle {
  display: block;
  margin: 12px 0 0 auto;
}

.album-counter {
  display: block;
  margin-bottom: 6px;
  color: var(--teal);
  font-size: 12px;
}

.month-entries-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.month-calendar .calendar-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}

.month-calendar .calendar-week span {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  min-width: 0;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: 42px;
  gap: 4px;
  width: 100%;
}

.calendar-day {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  border-radius: 8px;
  background: var(--bg);
  font-size: 14px;
  min-width: 0;
}

.calendar-card {
  padding: 16px;
}

.calendar-day.empty {
  background: transparent;
}

.calendar-day.marked {
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 700;
}

.calendar-day i {
  position: absolute;
  bottom: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* v148: 进入页视觉调整 */
.splash-info-card {
  position: relative;
  top: -80px;
}

.splash-date-card {
  align-items: stretch;
  width: 75%;
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.splash-range,
.splash-chip {
  width: 100%;
  align-items: flex-start;
  text-align: left;
  font-size: 13px;
  line-height: 1.5;
}

.splash-range {
  gap: 4px;
}

.splash-chip {
  gap: 4px;
  margin-top: 0;
}

.splash-range-line,
.splash-chip-line {
  text-align: left;
  line-height: 1.5;
}

.splash-enter-space,
.splash-enter-arrow {
  color: #fff;
}

/* v151: 进入页内容、按钮和品牌文字分层独立定位 */
.screen-splash { isolation: isolate; }

.splash-bottom {
  position: absolute;
  top: calc(50% - 44px);
  left: 50%;
  right: auto;
  width: min(calc(100% - 48px), 360px);
  margin: 0;
  padding: 0;
  gap: 0;
  transform: translate(-50%, -38%);
  animation: splash-fade 0.7s ease both;
}

.splash-info-card { width: 100%; gap: 10px; position: static; top: auto; }
.splash-days { margin: 0; }

.splash-tip {
  position: static;
  width: 100%;
  margin: 0;
  text-align: center;
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  text-shadow: 0 1px 8px rgba(38, 27, 36, 0.4);
  opacity: 0.92;
}

.splash-date-card {
  width: min(calc(56.25vw - 27px), 202.5px);
  gap: 4px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.splash-range,
.splash-chip,
.splash-range-line,
.splash-chip-line {
  width: 100%;
  align-items: flex-start;
  margin: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  text-align: left;
  text-shadow: 0 1px 8px rgba(38, 27, 36, 0.4);
  opacity: 0.92;
}

.splash-range, .splash-chip { display: flex; flex-direction: column; gap: 4px; }

.splash-enter-space {
  display: inline;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: #fff;
  text-shadow: none;
}

.splash-enter-arrow { color: #fff; text-shadow: 0 1px 8px rgba(38, 27, 36, 0.4); }

.splash-brand-line {
  position: fixed;
  left: 0;
  right: 0;
  bottom: env(safe-area-inset-bottom);
  margin: 0;
  line-height: 18px;
  z-index: 2;
}

.splash-bottom {
  pointer-events: none;
}

.splash-info-card {
  pointer-events: auto;
}

.splash-enter,
.splash-brand-line {
  z-index: 3;
}

@keyframes splash-fade { from { opacity: 0; } to { opacity: 1; } }

@media (max-height: 680px) {
  .splash-bottom { transform: translate(-50%, -43%); }
}

/* v153: 进入页元素完全独立定位 */
.splash-bottom {
  display: contents;
  position: static;
  transform: none;
  animation: none;
}

.splash-info-card { display: contents; }

.splash-days-independent {
  position: absolute;
  top: calc(50% - 174px);
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
  z-index: 2;
}

.splash-tip-independent {
  position: absolute;
  top: calc(50% - 74px);
  left: 50%;
  width: min(calc(100% - 48px), 360px);
  margin: 0;
  transform: translateX(-50%);
  z-index: 2;
}

.splash-date-card-independent {
  position: absolute;
  top: calc(50% - 28px);
  left: 50%;
  width: min(calc(75vw - 36px), 270px);
  margin: 0;
  transform: translateX(-50%);
  z-index: 2;
}

.splash-brand-line {
  left: 0;
  right: 0;
  bottom: env(safe-area-inset-bottom);
  margin: 0;
  z-index: 3;
}

@media (max-height: 680px) {
  .splash-days-independent { top: calc(50% - 150px); }
  .splash-tip-independent { top: calc(50% - 56px); }
  .splash-date-card-independent { top: calc(50% - 12px); }
}

/* v157: 唯一的进入页按钮规则 */
.splash-enter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 0 18px;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(38, 27, 36, 0.26);
  position: absolute;
  left: 50%;
  bottom: calc(58px + env(safe-area-inset-bottom));
  width: min(calc(75vw - 36px), 270px);
  margin: 0;
  transform: translateX(-50%);
  z-index: 3;
}

.splash-enter:active {
  transform: translateX(-50%) scale(0.98);
}

.splash-brand-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: env(safe-area-inset-bottom);
  height: 18px;
  line-height: 18px;
  margin: 0;
  z-index: 3;
}

.splash-days-independent {
  top: calc(50% - 183px);
}

.splash-tip-independent {
  top: calc(50% - 90px);
}

.splash-date-card-independent {
  top: calc(50% - 51px + 7px);
}

.splash-tip-independent {
  top: calc(50% - 90px + 14px);
}

.splash-days-independent {
  top: calc(50% - 183px + 21px);
}

@media (max-height: 680px) {
  .splash-days-independent { top: calc(50% - 159px); }
  .splash-tip-independent { top: calc(50% - 66px); }
  .splash-date-card-independent { top: calc(50% - 27px + 7px); }
  .splash-tip-independent { top: calc(50% - 66px + 14px); }
  .splash-days-independent { top: calc(50% - 159px + 21px); }
}

/* v158: 微调进入页独立元素位置和文字框宽度 */
.splash-enter {
  bottom: calc(98px + env(safe-area-inset-bottom));
}

.splash-date-card-independent {
  top: calc(50% - 41px);
  width: min(calc(42.1875vw - 20.25px), 151.875px);
}

.splash-days-independent {
  top: calc(50% - 165px);
}

@media (max-height: 680px) {
  .splash-date-card-independent { top: calc(50% - 17px); }
  .splash-days-independent { top: calc(50% - 141px); }
}

/* v159: 进入页独立元素微调 */
.splash-date-card-independent {
  width: min(calc(42.1875vw - 20.25px + 50px), 201.875px);
  top: calc(50% - 36px);
}

.splash-tip-independent {
  top: calc(50% - 85px);
}

.splash-days-independent {
  top: calc(50% - 168px);
}

.splash-enter {
  bottom: calc(109px + env(safe-area-inset-bottom));
}

@media (max-height: 680px) {
  .splash-date-card-independent { top: calc(50% - 12px); }
  .splash-days-independent { top: calc(50% - 144px); }
}

/* v160: 提示语字号、文字框宽度和位置微调 */
.splash-tip-independent {
  top: calc(50% - 80px);
  font-size: 14px;
}

.splash-date-card-independent {
  width: min(calc(42.1875vw - 20.25px + 75px), 226.875px);
}

@media (max-height: 680px) {
  .splash-tip-independent { top: calc(50% - 51px); }
}

/* v162: 倒计时、提示语和日期框整体下移 5px */
.splash-days-independent {
  top: calc(50% - 160px);
}

.splash-tip-independent {
  top: calc(50% - 75px);
}

.splash-date-card-independent {
  top: calc(50% - 31px);
}

/* v164: custom splash button artwork and layered home countdown background */
.splash-enter {
  background-image: url("assets/splash-enter-bg.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
}

.hero::before {
  opacity: 1;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    transparent 30%,
    #000 60%,
    #000 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    transparent 30%,
    #000 60%,
    #000 100%
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.hero::after {
  background: transparent;
}

@media (max-height: 680px) {
  .splash-days-independent { top: calc(50% - 136px); }
  .splash-tip-independent { top: calc(50% - 46px); }
  .splash-date-card-independent { top: calc(50% - 7px); }
}

/* v163: 提示语单独下移 2px */
.splash-tip-independent {
  top: calc(50% - 73px);
}

@media (max-height: 680px) {
  .splash-tip-independent { top: calc(50% - 44px); }
}

/* v165: final visual adjustments */
.hero {
  box-shadow: 0 10px 26px rgba(45, 42, 49, 0.18);
}

.hero::before {
  opacity: 0.7;
}

.splash-days-independent {
  top: calc(50% - 150px);
}

.splash-tip-independent {
  top: calc(50% - 63px);
}

.splash-date-card-independent {
  top: calc(50% - 21px);
}

.splash-days-independent span {
  text-shadow: 0 4px 18px rgba(38, 27, 36, 0.35);
}

@media (max-height: 680px) {
  .splash-days-independent { top: calc(50% - 126px); }
  .splash-tip-independent { top: calc(50% - 34px); }
  .splash-date-card-independent { top: calc(50% + 3px); }
}

/* v173: final home countdown card composition */
.invite-row {
  padding: 0;
  background: transparent;
}

.hero {
  background-image: none !important;
  box-shadow: 0 10px 26px rgba(45, 42, 49, 0.18) !important;
}

.hero::before {
  background-image: var(--hero-photo);
  background-position: center;
  background-size: cover;
  opacity: 0.8 !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

.hero::after {
  background: rgba(0, 0, 0, 0.5) !important;
}

/* Keep the entry label and long space names on one horizontal line. */
.splash-enter {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.splash-enter > span:first-child {
  flex: 0 0 auto;
  white-space: nowrap;
}

.splash-enter-space {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 58%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.splash-enter-arrow {
  flex: 0 0 auto;
  white-space: nowrap;
}
