:root {
  color-scheme: light;
  --ink: #24152f;
  --muted: #7c7085;
  --paper: #fcfaf6;
  --bar: #35213f;
  --bar-ink: #fbf7ee;
  --gold: #c99a3e;
  --gold-soft: #f0ddae;
  --purple-soft: #eadff0;
  --pill: #35213f;
  --pill-hover: #4d2e5d;
  --line: #eadfcd;
  --panel: #fffdf9;
  --accent: #c99a3e;
  --sea: #817e98;
  --sand: #d9b778;
  --dock-detail: #9a909f;
  --shadow: 0 22px 70px rgba(53, 33, 63, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
}

a,
button {
  font: inherit;
}

body.locked {
  overflow: hidden;
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(36, 21, 47, 0.6), rgba(36, 21, 47, 0.14) 46%, rgba(36, 21, 47, 0.42)),
    url("./assets/login-background.jpeg") center / cover no-repeat,
    var(--paper);
}

.login-screen.hidden {
  display: none;
}

.login-card {
  width: min(100%, 430px);
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 30px 90px rgba(7, 12, 16, 0.32);
  backdrop-filter: blur(16px);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-weight: 800;
}

.login-card h1,
.login-copy,
.login-error {
  margin: 0;
}

.login-card h1 {
  font-size: clamp(2rem, 8vw, 3.15rem);
  line-height: 1;
}

.login-form {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.login-form label {
  font-size: 0.9rem;
  font-weight: 800;
}

.password-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.password-row.single-field {
  grid-template-columns: minmax(0, 1fr);
}

.password-row input {
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.password-row input:focus-visible,
.ghost-button:focus-visible,
.login-button:focus-visible,
.sign-out-button:focus-visible {
  outline: 3px solid rgba(201, 154, 62, 0.34);
  outline-offset: 2px;
}

.ghost-button,
.login-button,
.sign-out-button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.ghost-button {
  display: grid;
  width: 56px;
  min-height: 48px;
  place-items: center;
  padding: 0;
  background: var(--gold-soft);
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1;
}

.login-error {
  min-height: 22px;
  color: #a63c32;
  font-size: 0.9rem;
}

.login-button {
  min-height: 52px;
  margin-top: 2px;
  background: var(--pill);
  color: #fff;
}

.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 0 22px;
  background: var(--bar);
  color: var(--bar-ink);
  box-shadow: 0 1px 0 rgba(36, 21, 47, 0.2);
  font-size: 0.95rem;
}

.status-brand,
.status-note {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.status-home-link {
  display: grid;
  place-items: center;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  width: 46px;
  height: 34px;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(20, 16, 12, 0.18);
}

.brand-logo.small {
  width: 36px;
  height: 27px;
  box-shadow: none;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #71c48d;
}

.sign-out-button {
  min-height: 30px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--bar-ink);
}

.sign-out-button:hover {
  background: rgba(240, 221, 174, 0.22);
}

.home {
  width: min(100%, 2048px);
  margin: 0 auto;
  padding: clamp(42px, 7vw, 74px) clamp(26px, 4.4vw, 90px) 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(180px, 18vw, 260px);
  align-items: start;
  gap: clamp(24px, 8vw, 130px);
  min-height: 160px;
}

.hero-copy {
  padding-top: 22px;
}

.kicker,
.hero h1,
.welcome,
.preview-panel p,
.preview-panel h2 {
  margin: 0;
}

.kicker {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.35rem, 4vw, 3.6rem);
  line-height: 1;
}

.welcome {
  margin-top: 24px;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.35;
}

.hero-logo {
  width: min(260px, 28vw);
  aspect-ratio: 1.35 / 1;
  justify-self: end;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 26px 60px rgba(30, 22, 16, 0.14);
}

.letter-panel {
  overflow: hidden;
  margin-top: clamp(34px, 5vw, 62px);
  color: var(--ink);
}

.letter-titlebar {
  min-height: 34px;
  padding: 0;
}

.letter-titlebar h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.25;
}

.letter-display {
  padding: 12px 0 10px;
}

.note-block {
  position: relative;
}

.note-input {
  width: 100%;
  border: 0;
  resize: none;
  overflow: hidden;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 760;
  line-height: 1.8;
  outline: none;
}

.wide-note .note-input {
  min-height: calc(1.8em * 4);
  max-height: calc(1.8em * 4);
  padding: 0;
}

.note-input:read-only {
  cursor: default;
  opacity: 1;
  -webkit-text-fill-color: currentColor;
}

.note-lock {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 1;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.68rem;
  line-height: 1;
  opacity: 0.06;
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.note-block:hover .note-lock,
.note-lock:focus-visible {
  opacity: 0.42;
}

.note-lock:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.08);
}

.note-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 244px minmax(0, 1fr) 244px minmax(0, 1fr);
  width: 100%;
  margin: 22px auto 0;
}

.mini-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 13px 18px;
  border-radius: 8px;
}

.mini-note:first-child {
  grid-column: 2;
}

.mini-note:last-child {
  grid-column: 4;
}

.mini-note .note-input {
  min-height: 1.6em;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  font-weight: 680;
  line-height: 1.55;
}

.mini-note .note-emoji {
  align-self: center;
}

.mini-note .note-input::placeholder {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.88rem;
  font-weight: 650;
}

.bear-note {
  background: rgba(110, 85, 34, 0.72);
}

.butterfly-note {
  background: rgba(76, 50, 91, 0.72);
}

.note-emoji {
  font-size: 1rem;
}

.dock-panel {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 5vw, 44px);
  margin-top: 34px;
  padding: 28px 18px 0;
}

.dock-item {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 76px;
  color: var(--ink);
  text-decoration: none;
  transform-origin: bottom center;
  transition: transform 180ms ease;
}

.dock-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 1.85rem;
  transition:
    transform 180ms ease,
    filter 180ms ease;
}

.dock-label {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  width: max-content;
  min-height: 18px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  opacity: 0;
  transform: translate(-50%, 4px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.dock-item:hover,
.dock-item:focus-visible {
  transform: translateY(-8px) scale(1.16);
}

.dock-item:hover .dock-icon,
.dock-item:focus-visible .dock-icon {
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.22));
}

.dock-item:hover .dock-label,
.dock-item:focus-visible .dock-label {
  opacity: 1;
  transform: translate(-50%, 0);
}

.entry-detail {
  max-width: min(100%, 720px);
  margin: 10px auto 0;
  text-align: center;
}

.entry-detail[hidden] {
  display: none;
}

.entry-detail h2,
.entry-detail p {
  margin: 0;
}

.entry-detail h2 {
  display: none;
}

.entry-detail p {
  color: var(--dock-detail);
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subpage {
  min-height: calc(100vh - 50px - 112px);
}

.subpage-hero {
  max-width: 760px;
  margin-bottom: clamp(28px, 5vw, 54px);
}

.subpage-hero.compact {
  margin-bottom: 24px;
}

.subpage-kicker,
.trip-date,
.day-label {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.subpage-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.96;
}

.subpage-hero p:last-child {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.24rem);
  line-height: 1.65;
}

.travel-filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: -18px 0 22px;
}

.travel-filter,
.travel-upload {
  display: inline-grid;
  min-height: 38px;
  place-items: center;
  padding: 0 16px;
  border: 1px solid rgba(201, 154, 62, 0.32);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.68);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 820;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.travel-filter:hover,
.travel-upload:hover,
.travel-filter.active {
  background: rgba(201, 154, 62, 0.18);
  color: var(--ink);
  transform: translateY(-1px);
}

.travel-upload {
  margin-left: auto;
  background: var(--bar);
  color: var(--bar-ink);
}

.travel-upload input,
.trip-placeholder input {
  display: none;
}

.trip-grid {
  column-count: 3;
  column-gap: 18px;
}

.trip-card {
  display: inline-block;
  overflow: hidden;
  width: 100%;
  margin: 0 0 18px;
  min-height: 330px;
  border: 1px solid rgba(201, 154, 62, 0.18);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.78);
  box-shadow: var(--shadow);
}

.trip-card img,
.trip-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1.18;
  object-fit: cover;
}

.trip-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(53, 33, 63, 0.12), rgba(201, 154, 62, 0.26));
  color: rgba(53, 33, 63, 0.46);
  font-size: 3rem;
  font-weight: 500;
}

.trip-card div:last-child {
  padding: 18px;
}

.trip-card h2,
.day-card h2,
.day-card h1 {
  margin: 0;
  color: var(--ink);
}

.trip-card p:last-child,
.day-card p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.trip-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.trip-tags span {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(234, 223, 240, 0.72);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.add-trip-card {
  min-height: 280px;
}

.info-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 6vw, 70px);
}

.info-card {
  min-height: 430px;
  padding: 0 0 18px;
  border-radius: 8px;
  color: #ffffff;
}

.info-title {
  min-height: 36px;
  padding: 5px 10px;
  border-radius: 8px 8px 0 0;
  background: rgba(36, 21, 47, 0.14);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 850;
}

.info-card .note-input {
  min-height: 380px;
  padding: 16px 12px 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.98rem, 1.8vw, 1.08rem);
  line-height: 1.55;
}

.countdown-page {
  position: relative;
}

.countdown-toggle {
  position: fixed;
  left: 22px;
  top: 72px;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--gold-soft);
  cursor: pointer;
  font-size: 1.45rem;
  box-shadow: 0 14px 32px rgba(53, 33, 63, 0.14);
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.countdown-toggle:hover {
  background: #f6e8c2;
  transform: scale(1.08);
}

.countdown-display {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  transition:
    filter 220ms ease,
    opacity 220ms ease;
}

.countdown-page.editing .countdown-display {
  filter: blur(3px);
  opacity: 0.32;
}

.countdown-section {
  min-width: 0;
}

.countdown-section h2 {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.annual-days {
  grid-column: 1 / -1;
}

.countdown-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.annual-days .countdown-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.day-card {
  min-height: 170px;
  padding: 22px;
  border: 1px solid rgba(201, 154, 62, 0.2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 86% 14%, rgba(201, 154, 62, 0.2), transparent 30%),
    linear-gradient(135deg, rgba(234, 223, 240, 0.92), rgba(255, 246, 225, 0.86));
  box-shadow: var(--shadow);
}

.hero-day {
  min-height: 240px;
  display: grid;
  align-content: end;
}

.day-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.72);
  font-size: 1.3rem;
}

.day-card strong {
  display: block;
  margin-top: 8px;
  color: var(--purple);
  font-size: clamp(1.4rem, 4vw, 3.6rem);
  line-height: 1;
}

.empty-day {
  min-height: 120px;
  color: var(--muted);
}

.countdown-editor {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: min(760px, calc(100vw - 44px));
  max-height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.86);
  box-shadow: 0 32px 90px rgba(53, 33, 63, 0.28);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translate(-50%, -45%) scale(0.96);
  transition:
    max-height 220ms ease,
    opacity 220ms ease,
    transform 220ms ease;
}

.countdown-page.editing .countdown-editor {
  max-height: 480px;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.add-day-button {
  min-height: 44px;
  margin: 14px 14px 0;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--bar);
  color: var(--bar-ink);
  cursor: pointer;
  font-weight: 850;
}

.countdown-editor table {
  width: 100%;
  border-collapse: collapse;
}

.countdown-editor th,
.countdown-editor td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-align: left;
}

.sese-page {
  display: block;
  margin: calc(clamp(42px, 7vw, 74px) * -0.55) calc(clamp(26px, 4.4vw, 90px) * -0.45) 0;
}

.sese-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.78);
}

.sese-tab {
  min-height: 42px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.sese-tab:last-child {
  border-right: 0;
}

.sese-tab.active {
  background: #f8e4ee;
  color: #d72f71;
}

.heart-tab {
  color: rgba(36, 21, 47, 0.42);
  font-size: 1.2rem;
}

.sese-toolbar {
  display: grid;
  grid-template-columns: minmax(120px, auto) minmax(110px, auto) minmax(140px, 1fr) minmax(120px, auto) minmax(120px, auto);
  justify-content: end;
  gap: 8px;
  margin: 16px 0 12px;
}

.tool-button,
.sese-search {
  display: grid;
  min-height: 38px;
  place-items: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.tool-button:hover,
.tool-button.active {
  background: rgba(201, 154, 62, 0.18);
}

.upload-button {
  background: var(--bar);
  color: var(--bar-ink);
}

.filter-button {
  font-size: 0.95rem;
}

.tool-button input {
  display: none;
}

.sese-select {
  min-height: 38px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-weight: 750;
}

.sese-search {
  width: 100%;
  min-width: 0;
  text-align: left;
  place-items: stretch;
}

.sese-storage-note {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: right;
}

.sese-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  grid-auto-flow: dense;
  gap: 12px;
}

.empty-gallery {
  grid-column: 1 / -1;
  margin: 42px 0;
  color: var(--muted);
  text-align: center;
}

.sese-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--purple-soft);
  box-shadow: 0 4px 14px rgba(53, 33, 63, 0.13);
}

.sese-card:nth-child(1),
.sese-card:nth-child(2) {
  grid-row: span 2;
}

.sese-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  transition:
    transform 180ms ease,
    filter 180ms ease;
}

.sese-card:hover img {
  filter: saturate(0.9);
  transform: scale(0.96);
}

.sese-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 12px 14px 48px;
  background: linear-gradient(180deg, transparent, rgba(36, 21, 47, 0.72));
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.sese-card:hover .sese-caption {
  opacity: 1;
  transform: translateY(0);
}

.like-button {
  position: absolute;
  right: 10px;
  bottom: 10px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.88);
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
}

.media-lightbox {
  width: min(980px, calc(100vw - 36px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(36, 21, 47, 0.94);
  color: #fff;
}

.media-lightbox::backdrop {
  background: rgba(10, 6, 14, 0.72);
}

.media-lightbox img {
  display: block;
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.media-lightbox p {
  margin: 0;
  padding: 14px 18px 18px;
  color: rgba(255, 255, 255, 0.82);
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.86);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.4rem;
}

.memory-photo {
  width: 100%;
  margin: 0;
  padding-top: 22px;
}

.photo-scene {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.35 / 1;
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(248, 213, 164, 0.82) 0 22%, rgba(126, 151, 158, 0.78) 23% 48%, rgba(38, 50, 54, 0.76) 49% 52%, rgba(213, 178, 129, 0.82) 53% 100%),
    linear-gradient(135deg, #efc78f, #7f9aa1);
  box-shadow: 0 16px 35px rgba(38, 32, 26, 0.14);
}

.photo-scene::before {
  position: absolute;
  right: -12%;
  top: 19%;
  width: 62%;
  height: 34%;
  border-radius: 55% 0 0 45%;
  background: rgba(36, 39, 36, 0.62);
  content: "";
}

.photo-scene::after {
  position: absolute;
  left: -8%;
  right: 0;
  bottom: 28%;
  height: 14%;
  background: rgba(30, 42, 44, 0.58);
  clip-path: polygon(0 42%, 54% 26%, 100% 48%, 100% 100%, 0 100%);
  content: "";
}

.sun {
  position: absolute;
  right: 36px;
  top: 18px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(250, 205, 143, 0.82);
}

.person,
.reflection {
  position: absolute;
  width: 8px;
  height: 42px;
  border-radius: 999px 999px 2px 2px;
  background: #141414;
}

.person::before,
.reflection::before {
  position: absolute;
  top: -8px;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: inherit;
  content: "";
  transform: translateX(-50%);
}

.person.first {
  left: 36%;
  bottom: 34%;
  transform: rotate(-8deg);
}

.person.second {
  left: 48%;
  bottom: 34%;
  transform: rotate(7deg);
}

.reflection {
  bottom: 15%;
  opacity: 0.45;
  transform-origin: top;
}

.reflection.first {
  left: 37%;
  transform: scaleY(0.9) rotate(10deg);
}

.reflection.second {
  left: 49%;
  transform: scaleY(0.85) rotate(-7deg);
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: clamp(20px, 6vw, 120px);
  margin-top: clamp(62px, 9vw, 110px);
}

.entry-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 84px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--pill);
  color: #ffffff;
  font-size: clamp(1rem, 1.35vw, 1.35rem);
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.12);
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.entry-pill:hover,
.entry-pill:focus-visible,
.entry-pill.active {
  background: var(--pill-hover);
  transform: translateY(-2px);
}

.preview-panel {
  max-width: 760px;
  margin-top: clamp(58px, 8vw, 96px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.preview-label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.preview-panel h2 {
  margin-top: 9px;
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.preview-panel p:last-child {
  margin-top: 13px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(150px, 220px);
  }

  .trip-grid {
    column-count: 2;
  }

  .travel-upload {
    margin-left: 0;
  }

  .countdown-display {
    grid-template-columns: 1fr;
  }

  .dock-panel {
    flex-wrap: wrap;
  }

  .entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 680px) {
  .status-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
  }

  .status-note {
    flex-wrap: wrap;
  }

  .login-card {
    padding: 26px;
  }

  .home {
    padding: 30px 18px 42px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .hero-copy,
  .memory-photo {
    padding-top: 0;
  }

  .memory-photo {
    width: min(240px, 68vw);
    justify-self: end;
  }

  .hero-logo {
    width: min(240px, 68vw);
    justify-self: end;
  }

  .note-columns {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .trip-grid {
    column-count: 1;
  }

  .info-columns {
    grid-template-columns: 1fr;
  }

  .sese-page {
    margin-right: 0;
    margin-left: 0;
  }

  .sese-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .sese-tabs {
    grid-template-columns: 1fr 1fr;
  }

  .sese-search {
    grid-column: 1 / -1;
  }

  .sese-storage-note {
    text-align: left;
  }

  .countdown-toggle {
    left: 16px;
    top: auto;
    bottom: 18px;
  }

  .hero-day {
    min-height: 320px;
  }

  .mini-note:first-child,
  .mini-note:last-child {
    grid-column: auto;
  }

  .dock-panel {
    gap: 12px;
    padding: 12px;
  }

  .dock-item {
    min-width: 62px;
  }

  .dock-icon {
    width: 48px;
    height: 48px;
    font-size: 1.7rem;
  }

  .entry-grid {
    margin-top: 44px;
    grid-template-columns: 1fr;
  }

  .entry-pill {
    min-height: 62px;
    white-space: normal;
  }
}
