:root {
  color-scheme: light;
  --paper: #fff9e9;
  --paper-deep: #f8edcc;
  --surface: #fffef8;
  --surface-soft: #fffcf2;
  --ink: #393227;
  --ink-soft: #675d4b;
  --muted: #948872;
  --line: rgba(91, 76, 46, 0.1);
  --line-strong: rgba(91, 76, 46, 0.17);
  --accent: #e7be3d;
  --accent-deep: #a77915;
  --accent-soft: #fff0b4;
  --rose-pale: #fff7d8;
  --sage: #6fa8bc;
  --sage-soft: #e4f3f8;
  --gold: #d5ae35;
  --gold-soft: #fff2b8;
  --blue-soft: #e2f2f7;
  --shadow-sm: 0 8px 26px rgba(98, 78, 35, 0.065);
  --shadow-lg: 0 26px 60px rgba(91, 70, 29, 0.16);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --sidebar-width: 246px;
  --serif: "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 5%, rgba(88, 170, 200, 0.16), transparent 24rem),
    radial-gradient(circle at 8% 32%, rgba(255, 211, 65, 0.2), transparent 29rem),
    var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

.fallback-login {
  position: fixed;
  z-index: 120;
  top: 14px;
  right: 18px;
  min-height: 36px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  color: #4e3b0d;
  background: #f2ca50;
  border: 1px solid #d6a92b;
  border-radius: 99px;
  box-shadow: 0 7px 18px rgba(139, 100, 13, 0.18);
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
}

a.cloud-chip,
a.sidebar-account-entry,
a.login-prompt,
a.cloud-account-card,
a.cloud-account-strip {
  text-decoration: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(204, 160, 34, 0.3);
  outline-offset: 2px;
}

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

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  z-index: 20;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  padding: 27px 20px 22px;
  display: flex;
  flex-direction: column;
  background: rgba(255, 248, 226, 0.94);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 8px 26px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff8ee;
  background: var(--accent-deep);
  border-radius: 12px 12px 12px 4px;
  box-shadow: 0 8px 18px rgba(173, 126, 24, 0.24);
  transform: rotate(-3deg);
}

.brand-mark .icon {
  width: 19px;
  height: 19px;
  fill: currentColor;
  stroke: none;
}

.brand-type {
  line-height: 1;
}

.brand-type strong {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.brand-type span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.couple-mini {
  margin: 0 4px 10px;
  padding: 13px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 254, 248, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(67, 50, 40, 0.045);
}

.avatar-stack {
  display: flex;
  padding-left: 7px;
}

.avatar {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 2px solid var(--surface);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 700;
}

.avatar + .avatar {
  margin-left: -8px;
}

.avatar--oat {
  color: #846b1f;
  background: #ffedb0;
}

.avatar--sage {
  color: #286c87;
  background: #d5eef8;
}

.couple-mini-copy {
  min-width: 0;
}

.couple-mini-copy strong {
  display: block;
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.sidebar-account-entry {
  width: calc(100% - 8px);
  min-height: 58px;
  margin: 0 4px 18px;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #51451e;
  background: linear-gradient(135deg, #fff0b6, #fff9df);
  border: 1px solid rgba(205, 163, 45, 0.28);
  border-radius: 14px;
  box-shadow: 0 7px 18px rgba(160, 119, 22, 0.08);
  cursor: pointer;
  text-align: left;
  transition: 180ms ease;
}

.sidebar-account-entry:hover {
  border-color: rgba(193, 147, 26, 0.45);
  box-shadow: 0 10px 23px rgba(160, 119, 22, 0.12);
  transform: translateY(-1px);
}

.sidebar-account-entry.is-signed-in {
  background: rgba(255, 254, 248, 0.8);
  border-color: var(--line);
}

.sidebar-account-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #7f681f;
  background: rgba(255, 255, 255, 0.66);
  border-radius: 10px;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
}

.sidebar-account-avatar .icon {
  width: 16px;
  height: 16px;
}

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

.sidebar-account-copy strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
}

.sidebar-account-copy span {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #907c48;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-account-entry.is-signed-in .sidebar-account-copy span {
  color: var(--muted);
}

.sidebar-account-badge {
  padding: 4px 7px;
  color: #fffaf0;
  background: #b88618;
  border-radius: 99px;
  font-size: 8px;
  font-weight: 600;
}

.sidebar-account-entry > .icon {
  width: 13px;
  height: 13px;
  color: #a18a54;
}

.nav-scroll {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
}

.nav-scroll::-webkit-scrollbar {
  display: none;
}

.nav-label {
  padding: 0 13px 9px;
  color: #9d8e6f;
  font-size: 9px;
  letter-spacing: 0.17em;
}

.side-nav {
  display: grid;
  gap: 4px;
}

.nav-item {
  position: relative;
  width: 100%;
  min-height: 43px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #746a57;
  background: transparent;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  text-align: left;
  transition: 180ms ease;
}

.nav-item:hover {
  color: var(--ink);
  background: rgba(255, 253, 248, 0.7);
}

.nav-item.is-active {
  color: var(--accent-deep);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 7px 18px rgba(68, 53, 45, 0.06);
  font-weight: 600;
}

.nav-item.is-active::before {
  position: absolute;
  left: 0;
  width: 3px;
  height: 17px;
  background: var(--accent);
  border-radius: 0 4px 4px 0;
  content: "";
}

.nav-item .icon {
  width: 18px;
  height: 18px;
}

.nav-badge {
  min-width: 19px;
  height: 19px;
  margin-left: auto;
  padding: 0 5px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--accent);
  border-radius: 99px;
  font-size: 9px;
  font-weight: 600;
}

.sidebar-foot {
  margin-top: 20px;
  padding: 16px 13px 0;
  border-top: 1px solid var(--line);
}

.cloud-chip {
  min-height: 30px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.66);
  border: 1px solid var(--line);
  border-radius: 99px;
  cursor: pointer;
  font-size: 9px;
  white-space: nowrap;
  transition: 160ms ease;
}

.cloud-chip::before {
  width: 5px;
  height: 5px;
  background: #a7a099;
  border-radius: 50%;
  content: "";
}

.cloud-chip .icon {
  width: 13px;
  height: 13px;
}

.cloud-chip:hover {
  color: var(--ink);
  background: var(--surface);
}

.cloud-chip.is-synced {
  color: #317891;
  background: rgba(220, 241, 248, 0.82);
}

.cloud-chip.is-synced::before {
  background: #5babc5;
}

.cloud-chip.is-saving::before,
.cloud-chip.is-loading::before {
  background: var(--gold);
  animation: status-pulse 1.2s ease infinite;
}

.cloud-chip.is-signed-out {
  color: #715818;
  background: #fff0b1;
  border-color: rgba(199, 153, 27, 0.28);
  font-weight: 600;
}

.cloud-chip.is-signed-out::before {
  display: none;
}

.cloud-chip.is-signed-out:hover {
  color: #59440e;
  background: #ffe89a;
}

.cloud-chip.is-offline,
.cloud-chip.is-local {
  color: #738b95;
}

.cloud-chip.is-offline::before {
  background: #d1a72f;
}

@keyframes status-pulse {
  50% {
    opacity: 0.32;
    transform: scale(0.72);
  }
}

.sidebar-foot .cloud-chip {
  margin-bottom: 13px;
}

.sidebar-quote {
  color: #8299a3;
  font-family: var(--serif);
  font-size: 11px;
  line-height: 1.7;
}

.sidebar-quote span {
  display: block;
  margin-top: 3px;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.main-shell {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
}

.topbar {
  position: sticky;
  z-index: 12;
  top: 0;
  height: 74px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 250, 235, 0.85);
  border-bottom: 1px solid rgba(91, 76, 46, 0.075);
  backdrop-filter: blur(18px);
}

.topbar-context {
  display: flex;
  align-items: center;
  gap: 13px;
}

.topbar-context::before {
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  content: "";
}

.topbar-context strong {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.04em;
}

.topbar-context span {
  color: var(--muted);
  font-size: 11px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.icon-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  background: rgba(255, 254, 248, 0.75);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: 180ms ease;
}

.icon-button:hover {
  color: var(--accent-deep);
  background: #fff;
  transform: translateY(-1px);
}

.icon-button .icon {
  width: 17px;
  height: 17px;
}

.primary-button,
.ghost-button,
.text-button {
  min-height: 40px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 11px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: 180ms ease;
}

.primary-button {
  color: #433615;
  background: linear-gradient(135deg, #ecc443, #f6d66d);
  border: 1px solid #d8ab2c;
  box-shadow: 0 8px 18px rgba(182, 133, 20, 0.2);
}

.primary-button:hover {
  background: linear-gradient(135deg, #dfb22f, #efc94f);
  transform: translateY(-1px);
}

.primary-button .icon {
  width: 16px;
  height: 16px;
}

.ghost-button {
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line-strong);
}

.ghost-button:hover {
  background: var(--surface);
  border-color: rgba(71, 165, 197, 0.3);
}

.text-button {
  min-height: 32px;
  padding: 0;
  color: var(--accent-deep);
  background: transparent;
  border: 0;
}

.text-button .icon {
  width: 14px;
  height: 14px;
  transition: transform 180ms ease;
}

.text-button:hover .icon {
  transform: translateX(3px);
}

.content {
  width: min(100%, 1280px);
  min-height: calc(100vh - 74px);
  margin: 0 auto;
  padding: 31px 40px 62px;
}

.page {
  animation: page-in 380ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.page-intro {
  margin-bottom: 25px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.page-back-link {
  margin-bottom: 12px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 9px;
}

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

.page-back-link .icon {
  width: 13px;
  height: 13px;
  transform: rotate(180deg);
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--accent-deep);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.page-title {
  font-family: var(--serif);
  font-size: clamp(27px, 2.4vw, 38px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.page-subtitle {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.intro-action {
  flex: 0 0 auto;
}

.section-head {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
}

.section-title::before {
  width: 13px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  content: "";
}

.section-meta {
  color: var(--muted);
  font-size: 10px;
}

.login-prompt {
  width: 100%;
  margin-bottom: 18px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  background:
    radial-gradient(circle at 86% 15%, rgba(92, 174, 201, 0.14), transparent 9rem),
    linear-gradient(115deg, #fff0b3, #fffbed);
  border: 1px solid rgba(211, 168, 45, 0.25);
  border-radius: 15px;
  box-shadow: 0 7px 20px rgba(145, 104, 14, 0.07);
  cursor: pointer;
  text-align: left;
  transition: 180ms ease;
}

.login-prompt:hover {
  border-color: rgba(192, 146, 23, 0.4);
  box-shadow: 0 11px 27px rgba(145, 104, 14, 0.11);
  transform: translateY(-1px);
}

.login-prompt-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #806719;
  background: rgba(255, 255, 255, 0.62);
  border-radius: 11px;
}

.login-prompt-icon .icon {
  width: 17px;
  height: 17px;
}

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

.login-prompt-copy strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
}

.login-prompt-copy span {
  display: block;
  margin-top: 4px;
  color: #8c7c53;
  font-size: 9px;
}

.login-prompt-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  color: #9e7414;
  font-size: 9px;
  font-weight: 600;
}

.login-prompt-action .icon {
  width: 14px;
  height: 14px;
}

.card {
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.today-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.65fr);
  gap: 18px;
}

.hero-card {
  position: relative;
  min-height: 258px;
  padding: 28px 32px;
  overflow: hidden;
  color: #f9fdff;
  background:
    radial-gradient(circle at 82% 22%, rgba(95, 174, 201, 0.62) 0 4%, rgba(95, 174, 201, 0.14) 4.5% 21%, transparent 34%),
    linear-gradient(135deg, #91680f 0%, #bd8c1d 55%, #e2b63c 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 52px rgba(150, 106, 14, 0.24);
}

.hero-card::before {
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  box-shadow:
    0 0 0 30px rgba(255, 255, 255, 0.035),
    0 0 0 64px rgba(255, 255, 255, 0.025);
  content: "";
}

.hero-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 249, 242, 0.7);
  font-size: 9px;
  letter-spacing: 0.15em;
}

.hero-kicker .icon {
  width: 14px;
  height: 14px;
}

.hero-date {
  color: rgba(255, 249, 242, 0.55);
  font-size: 10px;
}

.hero-main {
  position: relative;
  z-index: 1;
  margin-top: 33px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.hero-copy h2 {
  max-width: 410px;
  font-family: var(--serif);
  font-size: clamp(23px, 2.2vw, 32px);
  font-weight: 500;
  line-height: 1.38;
  letter-spacing: 0.015em;
}

.hero-copy p {
  margin-top: 12px;
  color: rgba(255, 249, 242, 0.66);
  font-size: 11px;
  line-height: 1.75;
}

.countdown {
  flex: 0 0 auto;
  text-align: right;
}

.countdown-number {
  font-family: var(--serif);
  font-size: clamp(56px, 6vw, 82px);
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: -0.07em;
}

.countdown-number small {
  margin-left: 7px;
  color: rgba(255, 249, 242, 0.68);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.countdown-label {
  margin-top: 12px;
  color: rgba(255, 249, 242, 0.58);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.hero-footer {
  position: relative;
  z-index: 1;
  margin-top: 26px;
  padding-top: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 249, 242, 0.58);
  font-size: 9px;
}

.hero-footer strong {
  color: rgba(255, 249, 242, 0.92);
  font-weight: 500;
}

.hero-footer-avatars {
  display: flex;
  align-items: center;
  gap: 9px;
}

.hero-footer-avatars .avatar {
  width: 24px;
  height: 24px;
  border-color: rgba(255, 255, 255, 0.25);
  font-size: 8px;
}

.quick-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.quick-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.quick-card-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
}

.quick-card-note {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

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

.quick-action {
  min-height: 82px;
  padding: 13px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  transition: 180ms ease;
}

.quick-action:hover {
  border-color: rgba(71, 165, 197, 0.26);
  box-shadow: 0 8px 18px rgba(48, 92, 108, 0.07);
  transform: translateY(-2px);
}

.quick-action-icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 9px;
}

.quick-action-icon .icon {
  width: 15px;
  height: 15px;
}

.quick-action:nth-child(1) .quick-action-icon {
  color: var(--accent-deep);
  background: var(--accent-soft);
}

.quick-action:nth-child(2) .quick-action-icon {
  color: #547056;
  background: var(--sage-soft);
}

.quick-action:nth-child(3) .quick-action-icon {
  color: #8c741f;
  background: var(--gold-soft);
}

.quick-action:nth-child(4) .quick-action-icon {
  color: #9b7b1c;
  background: var(--blue-soft);
}

.quick-action strong {
  font-size: 11px;
  font-weight: 600;
}

.quick-card-foot {
  margin-top: auto;
  padding-top: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
}

.quick-card-foot .icon {
  width: 15px;
  height: 15px;
}

.today-detail-grid {
  margin-top: 27px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.6fr);
  gap: 18px;
}

.memory-panel {
  min-width: 0;
}

.memory-grid {
  display: grid;
  grid-template-columns: 1.28fr 0.72fr;
  gap: 12px;
}

.memory-card {
  position: relative;
  min-height: 238px;
  overflow: hidden;
  color: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.memory-card--wide {
  min-height: 238px;
}

.memory-image {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transition: transform 500ms ease;
}

.memory-card:hover .memory-image {
  transform: scale(1.025);
}

.memory-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.memory-image--lake {
  background:
    linear-gradient(0deg, rgba(37, 30, 25, 0.45), transparent 55%),
    radial-gradient(ellipse at 68% 72%, rgba(239, 195, 154, 0.9), transparent 10%),
    linear-gradient(175deg, #c8d4ca 0 37%, #7b9b8d 38% 52%, #526e66 53% 100%);
}

.memory-image--lake::after {
  position: absolute;
  right: 16%;
  bottom: 32%;
  width: 36%;
  height: 3px;
  background: rgba(255, 247, 226, 0.76);
  border-radius: 50%;
  box-shadow: -70px 13px 0 -1px rgba(255, 247, 226, 0.36);
  content: "";
}

.memory-image--flowers {
  background:
    linear-gradient(0deg, rgba(39, 32, 27, 0.52), transparent 55%),
    radial-gradient(circle at 22% 21%, #efdfb2 0 4%, transparent 4.5%),
    radial-gradient(circle at 42% 34%, #d6a99d 0 6%, transparent 6.5%),
    radial-gradient(circle at 64% 18%, #f0e7d7 0 4%, transparent 4.5%),
    radial-gradient(circle at 78% 44%, #b6c7a8 0 7%, transparent 7.5%),
    linear-gradient(135deg, #6d7e5e, #9fab83 46%, #d4c6a6);
}

.memory-copy {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 20px;
}

.memory-kind {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.memory-kind::before {
  width: 12px;
  height: 1px;
  background: currentColor;
  content: "";
}

.memory-copy h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
}

.memory-copy p {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  line-height: 1.6;
}

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

.together-card {
  flex: 1;
  padding: 19px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.together-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.together-card-head span {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.together-card-head .icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.together-number {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: 31px;
  line-height: 1;
}

.together-number small {
  margin-left: 4px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 9px;
}

.mini-note {
  margin-top: 15px;
  padding: 12px 13px;
  color: var(--ink-soft);
  background: var(--rose-pale);
  border-radius: 10px;
  font-family: var(--serif);
  font-size: 11px;
  line-height: 1.75;
}

.next-plan {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--sage-soft);
  border-radius: var(--radius-md);
}

.next-plan-icon {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  color: #2f7893;
  background: rgba(255, 255, 255, 0.58);
  border-radius: 11px;
}

.next-plan-icon .icon {
  width: 16px;
  height: 16px;
}

.next-plan-copy {
  min-width: 0;
}

.next-plan-copy span {
  display: block;
  color: #7e8977;
  font-size: 8px;
  letter-spacing: 0.1em;
}

.next-plan-copy strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #44513f;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-bar {
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.filter-pill {
  height: 32px;
  padding: 0 13px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 99px;
  cursor: pointer;
  font-size: 10px;
  transition: 160ms ease;
}

.filter-pill:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
}

.filter-pill.is-active {
  color: var(--accent-deep);
  background: var(--surface);
  border-color: var(--line);
  box-shadow: 0 4px 12px rgba(67, 50, 40, 0.04);
  font-weight: 600;
}

.timeline-list {
  position: relative;
  max-width: 800px;
}

.timeline-list::before {
  position: absolute;
  top: 8px;
  bottom: 0;
  left: 5px;
  width: 1px;
  background: linear-gradient(var(--line-strong), transparent);
  content: "";
}

.timeline-group {
  position: relative;
  padding-left: 32px;
}

.timeline-group + .timeline-group {
  margin-top: 28px;
}

.timeline-dot {
  position: absolute;
  top: 5px;
  left: 0;
  width: 11px;
  height: 11px;
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 5px var(--paper);
}

.timeline-date {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.timeline-date strong {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
}

.timeline-date span {
  color: var(--muted);
  font-size: 9px;
}

.timeline-items {
  margin-top: 12px;
  display: grid;
  gap: 9px;
}

.timeline-entry {
  padding: 17px 19px;
  display: grid;
  grid-template-columns: 37px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  background: rgba(255, 253, 248, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  box-shadow: 0 5px 18px rgba(67, 50, 40, 0.035);
  transition: 180ms ease;
}

.timeline-entry:hover {
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(67, 50, 40, 0.07);
  transform: translateX(2px);
}

.entry-type-icon {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-radius: 11px;
}

.entry-type-icon.is-photo {
  color: #2f7893;
  background: var(--sage-soft);
}

.entry-type-icon.is-checkin {
  color: #8c741f;
  background: var(--gold-soft);
}

.entry-type-icon .icon {
  width: 17px;
  height: 17px;
}

.entry-main {
  min-width: 0;
}

.entry-main h3 {
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry-main p {
  margin-top: 5px;
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.entry-time {
  color: #91a6ae;
  font-size: 9px;
  white-space: nowrap;
}

.entry-end {
  display: flex;
  align-items: center;
  gap: 9px;
}

.entry-thumb {
  width: 46px;
  height: 46px;
  display: block;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 10px;
}

.entry-thumb--art {
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 10px rgba(67, 50, 40, 0.08);
}

.entry-thumb--art-1 {
  background: linear-gradient(145deg, #b6c6b4, #65796a);
}

.entry-thumb--art-2 {
  background:
    radial-gradient(circle at 32% 35%, #e8d7b5 0 13%, transparent 14%),
    linear-gradient(145deg, #8b957d, #c6b297);
}

.entry-thumb--art-3 {
  background:
    radial-gradient(circle at 55% 50%, #d9b090 0 22%, transparent 23%),
    linear-gradient(145deg, #75665c, #b79678);
}

.entry-thumb--art-4 {
  background: linear-gradient(145deg, #596962, #98a196);
}

.entry-thumb--art-5 {
  background: linear-gradient(145deg, #778675, #c3b79e);
}

.entry-thumb--art-6 {
  background:
    radial-gradient(circle at 35% 35%, #f1dbaa 0 7%, transparent 8%),
    radial-gradient(circle at 65% 42%, #f1dbaa 0 7%, transparent 8%),
    linear-gradient(145deg, #757560, #afa889);
}

.diary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.diary-card {
  position: relative;
  min-height: 240px;
  padding: 23px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: 180ms ease;
}

.diary-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(67, 50, 40, 0.09);
}

.diary-card::after {
  position: absolute;
  right: -24px;
  bottom: -34px;
  width: 110px;
  height: 110px;
  background: radial-gradient(circle, rgba(62, 151, 183, 0.1), transparent 68%);
  border-radius: 50%;
  content: "";
}

.diary-date {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.diary-mood {
  padding: 4px 8px;
  color: var(--accent-deep);
  background: var(--rose-pale);
  border-radius: 99px;
}

.diary-card h3 {
  margin-top: 23px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
}

.diary-card p {
  margin-top: 10px;
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 11px;
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.diary-foot {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
}

.diary-foot span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.diary-foot .icon {
  width: 13px;
  height: 13px;
}

.album-grid {
  columns: 3;
  column-gap: 13px;
}

.photo-tile {
  position: relative;
  width: 100%;
  margin-bottom: 13px;
  display: inline-block;
  overflow: hidden;
  background: #ddd5ca;
  border-radius: 15px;
  break-inside: avoid;
  box-shadow: 0 7px 18px rgba(67, 50, 40, 0.06);
  cursor: pointer;
}

.photo-tile:nth-child(3n + 1) {
  aspect-ratio: 4 / 5;
}

.photo-tile:nth-child(3n + 2) {
  aspect-ratio: 1 / 0.82;
}

.photo-tile:nth-child(3n) {
  aspect-ratio: 4 / 6;
}

.photo-art {
  position: absolute;
  inset: 0;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.photo-tile:hover .photo-art {
  transform: scale(1.035);
}

.photo-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-art--1 {
  background:
    linear-gradient(0deg, rgba(43, 35, 30, 0.38), transparent 54%),
    radial-gradient(circle at 70% 25%, rgba(255, 234, 200, 0.9) 0 7%, transparent 8%),
    linear-gradient(155deg, #c5d1c7 0 39%, #9eaa96 40% 43%, #7b8c77 44% 100%);
}

.photo-art--2 {
  background:
    linear-gradient(0deg, rgba(44, 34, 29, 0.32), transparent 58%),
    radial-gradient(circle at 24% 24%, #d4ba8d 0 8%, transparent 8.5%),
    radial-gradient(circle at 41% 48%, #8d9d7b 0 12%, transparent 12.5%),
    radial-gradient(circle at 73% 29%, #e0d4bd 0 13%, transparent 13.5%),
    linear-gradient(135deg, #7b6a58, #b79979);
}

.photo-art--3 {
  background:
    linear-gradient(0deg, rgba(31, 24, 21, 0.37), transparent 58%),
    radial-gradient(circle at 52% 42%, #dcb694 0 16%, transparent 16.5%),
    radial-gradient(circle at 51% 32%, #3e312a 0 11%, transparent 11.5%),
    linear-gradient(150deg, #817365, #c5a98d);
}

.photo-art--4 {
  background:
    linear-gradient(0deg, rgba(36, 28, 23, 0.4), transparent 55%),
    repeating-linear-gradient(115deg, transparent 0 14px, rgba(240, 220, 189, 0.14) 15px 16px),
    linear-gradient(140deg, #58645f, #8c988d);
}

.photo-art--5 {
  background:
    linear-gradient(0deg, rgba(32, 26, 22, 0.36), transparent 55%),
    radial-gradient(ellipse at 58% 60%, #c6a38a 0 11%, transparent 11.5%),
    radial-gradient(circle at 74% 22%, #d8c19f 0 8%, transparent 8.5%),
    linear-gradient(135deg, #6f7866, #b7b496);
}

.photo-art--6 {
  background:
    linear-gradient(0deg, rgba(32, 27, 23, 0.38), transparent 58%),
    radial-gradient(circle at 30% 34%, #f1dbae 0 4%, transparent 4.5%),
    radial-gradient(circle at 42% 33%, #f1dbae 0 4%, transparent 4.5%),
    radial-gradient(circle at 53% 25%, #f1dbae 0 4%, transparent 4.5%),
    linear-gradient(150deg, #7e7b69, #aba189);
}

.photo-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 28px 15px 14px;
  color: #fff;
  background: linear-gradient(transparent, rgba(29, 24, 21, 0.64));
  font-size: 10px;
}

.photo-caption strong {
  display: block;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 500;
}

.photo-caption span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 8px;
}

.anniversary-hero {
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #fffaf3;
  background:
    radial-gradient(circle at 86% 20%, rgba(98, 176, 202, 0.62) 0 5%, rgba(98, 176, 202, 0.12) 5.5% 24%, transparent 38%),
    linear-gradient(115deg, #93690f, #c99a24);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 42px rgba(150, 106, 14, 0.2);
}

.anniversary-hero h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 500;
}

.anniversary-hero p {
  margin-top: 9px;
  color: rgba(255, 250, 243, 0.6);
  font-size: 10px;
}

.anniversary-count {
  text-align: right;
}

.anniversary-count strong {
  font-family: var(--serif);
  font-size: clamp(52px, 6vw, 76px);
  font-weight: 400;
  line-height: 0.85;
}

.anniversary-count span {
  display: block;
  margin-top: 10px;
  color: rgba(255, 250, 243, 0.6);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.anniversary-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.date-card {
  min-height: 174px;
  padding: 19px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.date-card-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--accent-deep);
  background: var(--rose-pale);
  border-radius: 10px;
}

.date-card:nth-child(2n) .date-card-icon {
  color: #2f7893;
  background: var(--sage-soft);
}

.date-card:nth-child(3n) .date-card-icon {
  color: #8c741f;
  background: var(--gold-soft);
}

.date-card-icon .icon {
  width: 16px;
  height: 16px;
}

.date-card h3 {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
}

.date-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
}

.date-card-foot {
  margin-top: 17px;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 9px;
}

.date-card-foot strong {
  color: var(--accent-deep);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
}

.wish-summary {
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  gap: 12px;
}

.wish-summary-main {
  padding: 18px 20px;
  color: #fffaf4;
  background:
    radial-gradient(circle at 88% 16%, rgba(102, 180, 205, 0.34), transparent 7rem),
    linear-gradient(120deg, #a77915, #dbae34);
  border-radius: var(--radius-md);
}

.wish-summary-main span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 9px;
}

.wish-summary-main strong {
  display: block;
  margin-top: 7px;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 500;
}

.wish-stat {
  padding: 18px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
}

.wish-stat span {
  color: var(--muted);
  font-size: 9px;
}

.wish-stat strong {
  display: block;
  margin-top: 9px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
}

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

.wish-item {
  padding: 17px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  box-shadow: 0 5px 16px rgba(67, 50, 40, 0.035);
}

.wish-check {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: transparent;
  background: transparent;
  border: 1.5px solid var(--line-strong);
  border-radius: 7px;
  cursor: pointer;
}

.wish-check .icon {
  width: 13px;
  height: 13px;
}

.wish-check.is-done {
  color: #fff;
  background: var(--sage);
  border-color: var(--sage);
}

.wish-item.is-done .wish-check {
  color: #fff;
  background: var(--sage);
  border-color: var(--sage);
}

.wish-item.is-done h3 {
  color: var(--muted);
  text-decoration: line-through;
}

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

.wish-copy h3 {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.55;
}

.wish-copy p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
}

.wish-tag {
  align-self: flex-start;
  padding: 4px 8px;
  color: var(--accent-deep);
  background: var(--rose-pale);
  border-radius: 99px;
  font-size: 8px;
  white-space: nowrap;
}

.map-card {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  background:
    linear-gradient(25deg, transparent 48.7%, rgba(137, 146, 124, 0.18) 49%, rgba(137, 146, 124, 0.18) 50.2%, transparent 50.4%),
    linear-gradient(-35deg, transparent 56%, rgba(137, 146, 124, 0.18) 56.2%, rgba(137, 146, 124, 0.18) 57.4%, transparent 57.6%),
    repeating-linear-gradient(8deg, transparent 0 62px, rgba(107, 122, 103, 0.055) 63px 64px),
    #e9ede4;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.map-card::before,
.map-card::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.map-card::before {
  top: -20%;
  left: 22%;
  width: 29%;
  height: 145%;
  background: #c9ded8;
  border-radius: 50%;
  box-shadow:
    210px 110px 0 -24px #c9ded8,
    -240px 280px 0 -52px #c9ded8;
  transform: rotate(17deg);
  opacity: 0.74;
}

.map-card::after {
  right: 8%;
  bottom: 13%;
  width: 240px;
  height: 110px;
  border: 1px dashed rgba(104, 118, 93, 0.24);
  border-radius: 50%;
  transform: rotate(-14deg);
}

.map-city {
  position: absolute;
  z-index: 1;
  color: rgba(86, 99, 80, 0.45);
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.map-city--one {
  top: 16%;
  left: 16%;
}

.map-city--two {
  top: 56%;
  left: 40%;
}

.map-city--three {
  right: 15%;
  bottom: 22%;
}

.map-pin {
  position: absolute;
  z-index: 3;
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--accent);
  border: 4px solid rgba(255, 253, 248, 0.86);
  border-radius: 50% 50% 50% 10%;
  box-shadow: 0 7px 16px rgba(78, 56, 46, 0.2);
  transform: rotate(-45deg);
}

.map-pin .icon {
  width: 14px;
  height: 14px;
  transform: rotate(45deg);
}

.map-pin--one {
  top: 25%;
  left: 28%;
}

.map-pin--two {
  top: 50%;
  left: 52%;
  background: var(--sage);
}

.map-pin--three {
  top: 35%;
  right: 22%;
  background: var(--gold);
}

.map-route {
  position: absolute;
  z-index: 2;
  top: 30%;
  left: 31%;
  width: 38%;
  height: 27%;
  border-top: 2px dashed rgba(51, 145, 179, 0.5);
  border-right: 2px dashed rgba(51, 145, 179, 0.36);
  border-radius: 0 50% 0 0;
  transform: rotate(-5deg);
}

.map-float {
  position: absolute;
  z-index: 4;
  top: 20px;
  left: 20px;
  width: min(330px, calc(100% - 40px));
  padding: 19px;
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(63, 68, 53, 0.1);
  backdrop-filter: blur(12px);
}

.map-float .eyebrow {
  margin-bottom: 5px;
}

.map-float h2 {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
}

.map-float p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 9px;
}

.map-float-stats {
  margin-top: 16px;
  padding-top: 13px;
  display: flex;
  gap: 28px;
  border-top: 1px solid var(--line);
}

.map-float-stats strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.map-float-stats span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.footprint-stats {
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footprint-stats > span {
  padding: 8px 12px;
  color: var(--muted);
  background: rgba(255, 254, 248, 0.76);
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 9px;
}

.footprint-stats strong {
  margin-right: 3px;
  color: var(--accent-deep);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
}

.footprints-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(310px, 0.65fr);
  gap: 15px;
  align-items: stretch;
}

.footprint-map-panel {
  position: relative;
  min-width: 0;
  height: 620px;
  overflow: hidden;
  background: #e4efe9;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.footprint-map {
  width: 100%;
  height: 100%;
  z-index: 1;
  background: #e4efe9;
}

.footprint-map-head {
  position: absolute;
  z-index: 500;
  top: 17px;
  left: 17px;
  min-width: min(320px, calc(100% - 34px));
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(255, 254, 248, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 16px;
  box-shadow: 0 13px 32px rgba(48, 77, 65, 0.12);
  pointer-events: none;
  backdrop-filter: blur(12px);
}

.footprint-map-head .eyebrow {
  margin-bottom: 5px;
}

.footprint-map-head h2 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
}

.footprint-map-head > span {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 8px;
  white-space: nowrap;
}

.footprint-map-head > span .icon {
  width: 12px;
  height: 12px;
  color: var(--accent);
}

.footprint-map-hint {
  position: absolute;
  z-index: 500;
  bottom: 17px;
  left: 17px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #716344;
  background: rgba(255, 249, 222, 0.9);
  border: 1px solid rgba(203, 160, 38, 0.18);
  border-radius: 99px;
  box-shadow: 0 5px 15px rgba(60, 78, 68, 0.08);
  font-size: 8px;
  pointer-events: none;
  backdrop-filter: blur(10px);
}

.footprint-map-hint .icon {
  width: 11px;
  height: 11px;
  color: var(--accent);
}

.footprint-map .leaflet-control-attribution {
  font-size: 7px;
  opacity: 0.72;
}

.footprint-map .leaflet-control-zoom {
  margin-right: 15px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(45, 70, 61, 0.13);
}

.footprint-map .leaflet-control-zoom a {
  color: #5f6049;
  background: rgba(255, 254, 248, 0.94);
  border-color: var(--line);
}

.footprint-map-marker {
  background: transparent !important;
  border: 0 !important;
}

.footprint-city-label {
  background: transparent !important;
  border: 0 !important;
  pointer-events: none !important;
}

.footprint-city-label span {
  display: inline-block;
  padding: 4px 8px;
  color: #3d5963;
  background: rgba(255, 254, 248, 0.9);
  border: 1px solid rgba(73, 112, 122, 0.14);
  border-radius: 99px;
  box-shadow: 0 3px 10px rgba(54, 77, 66, 0.1);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.china-province-label {
  background: transparent !important;
  border: 0 !important;
  pointer-events: none !important;
}

.china-province-label span {
  color: #486f78;
  font-size: 8px;
  font-weight: 600;
  text-align: center;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95),
    0 -1px 0 rgba(255, 255, 255, 0.95),
    1px 0 0 rgba(255, 255, 255, 0.95),
    -1px 0 0 rgba(255, 255, 255, 0.95);
  white-space: nowrap;
}

.footprint-map-marker > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fffdf5;
  background: linear-gradient(145deg, #d9ad30, #edc653);
  border: 4px solid rgba(255, 254, 248, 0.92);
  border-radius: 50% 50% 50% 10%;
  box-shadow: 0 7px 17px rgba(107, 77, 14, 0.3);
  transform: rotate(-45deg);
}

.footprint-map-marker .icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
  stroke: none;
  transform: rotate(45deg);
}

.footprint-map-marker.is-picker > span {
  background: linear-gradient(145deg, #60a8c0, #8ec8d6);
  box-shadow: 0 7px 17px rgba(39, 110, 133, 0.28);
}

.footprint-popup-shell .leaflet-popup-content-wrapper {
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 16px 38px rgba(39, 57, 49, 0.18);
}

.footprint-popup-shell .leaflet-popup-content {
  width: 270px !important;
  margin: 0;
}

.footprint-popup-shell .leaflet-popup-tip {
  background: var(--surface);
}

.footprint-popup-photo {
  width: 100%;
  height: 112px;
  display: block;
  overflow: hidden;
}

.footprint-popup-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footprint-popup-copy {
  padding: 13px 14px 14px;
}

.footprint-popup-copy > span {
  display: block;
  color: var(--muted);
  font-size: 8px;
}

.footprint-popup-copy > strong {
  display: block;
  margin-top: 5px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
}

.footprint-popup-copy > p {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.6;
}

.footprint-popup-copy > button {
  margin-top: 11px;
  padding: 0;
  color: var(--accent-deep);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 8px;
  font-weight: 600;
}

.footprint-popup-tags {
  margin-top: 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.footprint-popup-tags em {
  padding: 4px 7px;
  color: #78621c;
  background: var(--accent-soft);
  border-radius: 99px;
  font-size: 7px;
  font-style: normal;
}

.footprint-art--lake {
  background:
    linear-gradient(0deg, rgba(44, 62, 57, 0.2), transparent 58%),
    radial-gradient(ellipse at 65% 67%, rgba(255, 237, 174, 0.9), transparent 9%),
    linear-gradient(155deg, #d9e0bc 0 34%, #91bcca 35% 57%, #719da9 58% 100%);
}

.footprint-art--flowers {
  background:
    radial-gradient(circle at 25% 28%, #fff1bd 0 7%, transparent 8%),
    radial-gradient(circle at 57% 42%, #e4b7a8 0 10%, transparent 11%),
    linear-gradient(145deg, #91ad8c, #d4c899);
}

.footprint-art--night {
  background:
    radial-gradient(circle at 72% 23%, #f4d772 0 5%, transparent 6%),
    linear-gradient(145deg, #385567, #718d98);
}

.footprint-art--sea {
  background:
    radial-gradient(circle at 77% 20%, #ffe293 0 6%, transparent 7%),
    linear-gradient(170deg, #b7d9df 0 45%, #6098ad 46% 72%, #386e87 73%);
}

.footprint-list-panel {
  height: 620px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  background: rgba(255, 254, 248, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.footprint-list-head {
  padding: 2px 2px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.footprint-list-head span {
  display: block;
  color: var(--accent-deep);
  font-size: 7px;
  letter-spacing: 0.16em;
}

.footprint-list-head strong {
  display: block;
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
}

.footprint-list-head > button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #745c16;
  background: var(--accent-soft);
  border: 1px solid rgba(196, 151, 28, 0.2);
  border-radius: 9px;
  cursor: pointer;
}

.footprint-list-head > button .icon {
  width: 14px;
  height: 14px;
}

.footprint-list {
  min-height: 0;
  padding-top: 10px;
  display: grid;
  align-content: start;
  gap: 8px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.footprint-card {
  overflow: hidden;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 13px;
  transition: 160ms ease;
}

.footprint-card:hover {
  background: #fffef9;
  border-color: rgba(192, 147, 25, 0.25);
}

.footprint-card-main {
  width: 100%;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.footprint-card-photo {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 10px;
}

.footprint-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.footprint-card-meta {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footprint-card-copy > strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footprint-card-copy > span:last-child {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footprint-card-main > .icon {
  width: 12px;
  height: 12px;
  color: var(--muted);
}

.footprint-card-actions {
  padding: 0 10px 8px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.footprint-card-actions button {
  padding: 3px 0;
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 7px;
}

.footprint-card-actions button:hover {
  color: var(--accent-deep);
}

.footprint-card-actions button:last-child:hover {
  color: #a55b4e;
}

.footprint-card-actions .icon {
  width: 10px;
  height: 10px;
}

.footprint-empty {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  text-align: center;
}

.footprint-empty .icon {
  width: 24px;
  height: 24px;
  margin-bottom: 9px;
  color: var(--accent);
}

.footprint-empty strong {
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 500;
}

.footprint-empty span {
  margin-top: 5px;
  font-size: 8px;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.report-stat {
  padding: 20px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.report-stat-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 9px;
}

.report-stat-label .icon {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.report-stat strong {
  display: block;
  margin-top: 18px;
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 500;
  line-height: 1;
}

.report-stat strong small {
  margin-left: 4px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 9px;
}

.report-grid + .report-grid {
  margin-top: 13px;
}

.chart-card {
  grid-column: span 2;
  min-height: 305px;
  padding: 22px;
}

.chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.chart-head h3 {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
}

.chart-head p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
}

.legend {
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-size: 8px;
}

.legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.legend i {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.legend span:nth-child(2) i {
  background: var(--sage);
}

.bar-chart {
  height: 195px;
  padding-top: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  background: repeating-linear-gradient(to bottom, transparent 0 47px, var(--line) 48px 49px);
}

.bar {
  height: 100%;
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
}

.bar span {
  width: min(13px, 42%);
  background: linear-gradient(var(--accent), #dca99d);
  border-radius: 5px 5px 1px 1px;
  opacity: 0.9;
}

.bar span:nth-child(2) {
  background: linear-gradient(#93a58c, #c7d4c1);
}

.bar-labels {
  padding-top: 9px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 8px;
  text-align: center;
}

.bar-labels span {
  flex: 1;
}

.report-note {
  grid-column: span 2;
  min-height: 305px;
  padding: 23px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fffaf2;
  background:
    radial-gradient(circle at 82% 12%, rgba(101, 180, 205, 0.35), transparent 10rem),
    linear-gradient(135deg, #956b10, #d8ab32);
  border-radius: var(--radius-md);
}

.report-note .eyebrow {
  color: rgba(255, 250, 242, 0.55);
}

.report-note blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 27px);
  font-weight: 500;
  line-height: 1.6;
}

.report-note p {
  margin-top: 12px;
  color: rgba(255, 250, 242, 0.6);
  font-size: 9px;
  line-height: 1.7;
}

.report-sign {
  color: rgba(255, 250, 242, 0.5);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.settings-layout {
  max-width: 820px;
}

.cloud-account-card {
  margin-bottom: 18px;
  padding: 17px 18px;
  display: grid;
  grid-template-columns: 39px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  background:
    linear-gradient(115deg, rgba(255, 249, 218, 0.86), rgba(219, 241, 248, 0.7)),
    var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: left;
}

button.cloud-account-card {
  width: 100%;
  cursor: pointer;
}

.cloud-account-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  color: #2d7894;
  background: rgba(255, 255, 255, 0.67);
  border-radius: 12px;
}

.cloud-account-icon .icon {
  width: 18px;
  height: 18px;
}

.cloud-account-copy {
  min-width: 0;
}

.cloud-account-copy strong {
  display: block;
  overflow: hidden;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cloud-account-copy > span {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: #748b94;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cloud-account-action {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #2a7895;
  font-size: 9px;
  font-weight: 600;
}

.cloud-account-action .icon {
  width: 14px;
  height: 14px;
}

.cloud-small-button {
  min-height: 33px;
  padding: 0 12px;
}

.invite-code-row {
  grid-column: 1 / -1;
  margin-top: 2px;
  padding-top: 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 1px solid rgba(75, 89, 68, 0.11);
  color: #7b8678;
  font-size: 9px;
}

.invite-code-row code {
  padding: 4px 8px;
  color: #28677f;
  background: rgba(255, 255, 255, 0.68);
  border-radius: 7px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.10em;
}

.invite-code-row .text-button {
  margin-left: auto;
  color: #2c7893;
  font-size: 9px;
}

.settings-profile {
  padding: 23px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.settings-profile .avatar {
  width: 52px;
  height: 52px;
  border-width: 3px;
  font-size: 15px;
}

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

.settings-profile-copy {
  flex: 1;
}

.settings-profile-copy h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
}

.settings-profile-copy p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
}

.settings-group {
  margin-top: 18px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.settings-group-title {
  padding: 17px 19px 9px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.setting-row {
  min-height: 54px;
  margin: 0 13px;
  padding: 0 6px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-top: 1px solid var(--line);
}

.setting-row:first-of-type {
  border-top: 0;
}

.setting-row > .icon {
  width: 17px;
  height: 17px;
  color: var(--muted);
}

.setting-row strong {
  flex: 1;
  font-size: 11px;
  font-weight: 500;
}

.setting-row span {
  color: var(--muted);
  font-size: 9px;
}

.setting-row .icon:last-child {
  width: 14px;
  height: 14px;
}

.switch {
  position: relative;
  width: 36px;
  height: 21px;
  flex: 0 0 auto;
  padding: 0;
  background: #d9d4ce;
  border: 0;
  border-radius: 99px;
  cursor: pointer;
  transition: 180ms ease;
}

.switch::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.14);
  content: "";
  transition: 180ms ease;
}

.switch.is-on {
  background: var(--sage);
}

.switch.is-on::after {
  transform: translateX(15px);
}

.empty-note {
  padding: 42px 24px;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.6);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.8;
  text-align: center;
}

/* Mobile */
.mobile-topbar,
.mobile-bottom,
.mobile-only {
  display: none;
}

@media (max-width: 1100px) {
  .today-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.65fr);
  }

  .diary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .anniversary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wish-summary {
    grid-template-columns: repeat(3, 1fr);
  }

  .wish-summary-main {
    grid-column: span 3;
  }
}

@media (max-width: 860px) {
  body {
    background:
      radial-gradient(circle at 92% 5%, rgba(90, 173, 203, 0.15), transparent 15rem),
      radial-gradient(circle at 6% 30%, rgba(255, 213, 72, 0.2), transparent 18rem),
      var(--paper);
  }

  body.has-modal {
    overflow: hidden;
  }

  .sidebar,
  .topbar {
    display: none;
  }

  .main-shell {
    margin-left: 0;
  }

  .content {
    min-height: 100vh;
    padding: 0 18px calc(102px + env(safe-area-inset-bottom));
  }

  .mobile-topbar {
    position: sticky;
    z-index: 10;
    top: 0;
    min-height: 72px;
    margin: 0 -18px 18px;
    padding: calc(13px + env(safe-area-inset-top)) 18px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: rgba(255, 250, 235, 0.92);
    border-bottom: 1px solid rgba(59, 49, 43, 0.06);
    backdrop-filter: blur(16px);
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 9px;
  }

  .mobile-brand .brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 9px 9px 9px 3px;
  }

  .mobile-brand .brand-mark .icon {
    width: 15px;
    height: 15px;
  }

  .mobile-brand-copy strong {
    display: block;
    font-family: var(--serif);
    font-size: 15px;
    letter-spacing: 0.05em;
  }

  .mobile-brand-copy span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 8px;
  }

  .mobile-actions {
    display: flex;
    align-items: center;
    gap: 7px;
  }

  .mobile-actions .cloud-chip {
    position: relative;
    width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    justify-content: center;
    background: rgba(255, 253, 248, 0.6);
  }

  .mobile-actions .cloud-chip::before {
    position: absolute;
    top: 4px;
    right: 4px;
    border: 1px solid var(--paper);
  }

  .mobile-actions .cloud-chip span {
    display: none;
  }

  .mobile-actions .cloud-chip.is-signed-out {
    width: auto;
    padding: 0 10px;
    gap: 5px;
    color: #715818;
    background: #fff0b1;
  }

  .mobile-actions .cloud-chip.is-signed-out span {
    display: inline;
    font-size: 8px;
  }

  .mobile-actions .cloud-chip.is-signed-out::before {
    display: none;
  }

  .mobile-actions .cloud-chip .icon {
    width: 15px;
    height: 15px;
  }

  .mobile-notice-button {
    display: none;
  }

  .mobile-actions .icon-button {
    width: 34px;
    height: 34px;
    background: rgba(255, 253, 248, 0.6);
  }

  .mobile-bottom {
    position: fixed;
    z-index: 30;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: rgba(255, 254, 248, 0.94);
    border-top: 1px solid rgba(59, 49, 43, 0.09);
    box-shadow: 0 -10px 30px rgba(65, 48, 39, 0.06);
    backdrop-filter: blur(18px);
  }

  .mobile-nav-item {
    position: relative;
    min-height: 56px;
    padding: 5px 0 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #91877f;
    background: transparent;
    border: 0;
    border-radius: 17px;
    cursor: pointer;
    font-size: 9px;
    transition: color 160ms ease;
  }

  .mobile-nav-item .icon {
    width: 20px;
    height: 20px;
  }

  .mobile-nav-item.is-active {
    color: var(--accent-deep);
    font-weight: 600;
  }

  .mobile-nav-item.is-active::after {
    position: absolute;
    bottom: 0;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    content: "";
  }

  .mobile-nav-item.is-create {
    color: var(--accent-deep);
  }

  .mobile-nav-item.is-create .mobile-nav-icon {
    width: 43px;
    height: 43px;
    margin-top: -24px;
    display: grid;
    place-items: center;
    color: #fff8f0;
    background: var(--accent-deep);
    border: 5px solid var(--paper);
    border-radius: 50%;
    box-shadow: 0 9px 20px rgba(36, 126, 158, 0.3);
  }

  .mobile-nav-item.is-create .mobile-nav-icon .icon {
    width: 18px;
    height: 18px;
  }

  .mobile-nav-item.is-create span {
    margin-top: -1px;
  }

  .mobile-only {
    display: block;
  }

  .desktop-only {
    display: none !important;
  }

  .page-intro {
    margin-bottom: 18px;
    align-items: center;
  }

  .login-prompt {
    margin-bottom: 14px;
    padding: 12px;
    gap: 9px;
    border-radius: 14px;
  }

  .login-prompt-icon {
    width: 34px;
    height: 34px;
  }

  .login-prompt-copy strong {
    font-size: 10px;
  }

  .login-prompt-copy span {
    margin-top: 3px;
    font-size: 8px;
    line-height: 1.45;
  }

  .login-prompt-action {
    font-size: 8px;
  }

  .page-title {
    font-size: 26px;
  }

  .page-subtitle {
    margin-top: 6px;
    font-size: 10px;
  }

  .intro-action .primary-button {
    width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    border-radius: 50%;
  }

  .intro-action .primary-button span {
    display: none;
  }

  .section-title {
    font-size: 16px;
  }

  .today-layout,
  .today-detail-grid {
    display: block;
  }

  .hero-card {
    min-height: 244px;
    padding: 23px;
    border-radius: 23px;
  }

  .hero-main {
    margin-top: 29px;
    align-items: flex-end;
  }

  .hero-copy h2 {
    max-width: 210px;
    font-size: 24px;
    line-height: 1.38;
  }

  .hero-copy p {
    max-width: 205px;
    margin-top: 9px;
    font-size: 9px;
  }

  .countdown-number {
    font-size: 59px;
  }

  .countdown-number small {
    display: block;
    margin: 8px 0 0;
    font-size: 8px;
  }

  .countdown-label {
    margin-top: 7px;
    font-size: 8px;
  }

  .hero-footer {
    margin-top: 23px;
    padding-top: 14px;
    font-size: 8px;
  }

  .quick-card {
    margin-top: 13px;
    padding: 18px;
  }

  .quick-grid {
    margin-top: 14px;
  }

  .quick-action {
    min-height: 73px;
    padding: 11px;
  }

  .quick-card-foot {
    display: none;
  }

  .today-detail-grid {
    margin-top: 24px;
  }

  .memory-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 9px;
  }

  .memory-card {
    min-height: 194px;
    border-radius: 17px;
  }

  .memory-copy {
    padding: 15px;
  }

  .memory-copy h3 {
    font-size: 15px;
  }

  .memory-copy p {
    font-size: 9px;
  }

  .side-stack {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .together-card {
    padding: 16px;
  }

  .together-number {
    margin-top: 15px;
    font-size: 26px;
  }

  .mini-note {
    margin-top: 11px;
    padding: 10px;
    font-size: 10px;
  }

  .next-plan {
    padding: 15px;
    align-items: flex-start;
  }

  .next-plan-copy strong {
    white-space: normal;
  }

  .filter-bar {
    margin-bottom: 17px;
    align-items: center;
  }

  .filter-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .filter-pills::-webkit-scrollbar {
    display: none;
  }

  .filter-pill {
    height: 31px;
    padding: 0 12px;
    flex: 0 0 auto;
  }

  .filter-bar > .ghost-button {
    display: none;
  }

  .timeline-group {
    padding-left: 25px;
  }

  .timeline-entry {
    padding: 14px;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 11px;
  }

  .entry-type-icon {
    width: 34px;
    height: 34px;
  }

  .entry-main h3 {
    font-size: 11px;
  }

  .entry-main p {
    font-size: 9px;
  }

  .entry-thumb {
    width: 38px;
    height: 38px;
    border-radius: 8px;
  }

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

  .diary-card {
    min-height: 198px;
  }

  .album-grid {
    columns: 2;
    column-gap: 9px;
  }

  .photo-tile {
    margin-bottom: 9px;
    border-radius: 13px;
  }

  .anniversary-hero {
    padding: 23px;
    border-radius: 22px;
  }

  .anniversary-hero h2 {
    font-size: 25px;
  }

  .anniversary-hero p {
    max-width: 180px;
    font-size: 9px;
    line-height: 1.65;
  }

  .anniversary-count strong {
    font-size: 54px;
  }

  .anniversary-grid {
    margin-top: 13px;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .date-card {
    min-height: 163px;
    padding: 16px;
  }

  .date-card h3 {
    font-size: 14px;
  }

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

  .wish-summary-main {
    grid-column: span 3;
  }

  .wish-stat {
    padding: 14px;
  }

  .wish-stat strong {
    font-size: 21px;
  }

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

  .map-card {
    min-height: 570px;
    border-radius: 21px;
  }

  .map-float {
    top: 15px;
    left: 15px;
    width: calc(100% - 30px);
  }

  .map-pin--one {
    top: 43%;
    left: 23%;
  }

  .map-pin--two {
    top: 66%;
    left: 54%;
  }

  .map-pin--three {
    top: 53%;
    right: 18%;
  }

  .map-route {
    top: 47%;
    left: 28%;
    width: 42%;
  }

  .report-grid {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .report-stat {
    padding: 16px;
  }

  .report-stat strong {
    font-size: 27px;
  }

  .chart-card,
  .report-note {
    grid-column: span 2;
  }

  .settings-profile {
    padding: 18px;
  }

  .cloud-account-card {
    padding: 14px;
    grid-template-columns: 35px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .cloud-account-icon {
    width: 35px;
    height: 35px;
  }

  .cloud-account-card.is-signed-out {
    grid-template-columns: 35px minmax(0, 1fr);
  }

  .cloud-account-card.is-signed-out .cloud-account-action {
    grid-column: 2;
    margin-top: -3px;
  }

  .invite-code-row {
    flex-wrap: wrap;
  }

  .invite-code-row .text-button {
    margin-left: 0;
  }

  .settings-profile .avatar {
    width: 44px;
    height: 44px;
  }

  .settings-profile .ghost-button {
    width: 35px;
    height: 35px;
    min-height: 35px;
    padding: 0;
    border-radius: 50%;
  }

  .settings-profile .ghost-button span {
    display: none;
  }

  .record-hero {
    padding: 22px;
    background:
      radial-gradient(circle at 86% 16%, rgba(104, 180, 204, 0.2), transparent 8rem),
      linear-gradient(135deg, #fff0b8, #fffaf0);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 22px;
  }

  .record-hero h1 {
    font-family: var(--serif);
    font-size: 27px;
    font-weight: 600;
  }

  .record-hero p {
    margin-top: 7px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.65;
  }

  .record-actions {
    margin-top: 13px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
  }

  .record-action {
    min-height: 118px;
    padding: 15px 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    text-align: left;
  }

  .record-action-icon {
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    color: var(--accent-deep);
    background: var(--accent-soft);
    border-radius: 12px;
  }

  .record-action:nth-child(2) .record-action-icon {
    color: #2f7893;
    background: var(--sage-soft);
  }

  .record-action:nth-child(3) .record-action-icon {
    color: #8c741f;
    background: var(--gold-soft);
  }

  .record-action strong {
    display: block;
    font-size: 11px;
  }

  .record-action span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 8px;
  }

  .record-recent {
    margin-top: 23px;
  }

  .record-recent .timeline-entry {
    margin-bottom: 8px;
  }

  .checklist-tabs {
    margin: 0 0 15px;
    padding: 4px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(236, 230, 222, 0.76);
    border-radius: 12px;
  }

  .checklist-tab {
    min-height: 34px;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    font-size: 9px;
  }

  .checklist-tab.is-active {
    color: var(--accent-deep);
    background: var(--surface);
    box-shadow: 0 4px 10px rgba(67, 50, 40, 0.06);
    font-weight: 600;
  }

  .mobile-checklist-list {
    display: grid;
    gap: 8px;
  }

  .mobile-checklist-item {
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 253, 248, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 5px 14px rgba(67, 50, 40, 0.035);
  }

  .mobile-checklist-item .wish-copy h3 {
    font-size: 11px;
  }

  .mobile-checklist-item .wish-copy p {
    font-size: 9px;
  }

  .us-profile {
    position: relative;
    padding: 25px 20px 20px;
    overflow: hidden;
    color: #fffaf3;
    background:
      radial-gradient(circle at 87% 5%, rgba(105, 181, 205, 0.42), transparent 9rem),
      linear-gradient(135deg, #956b10, #cf9e26);
    border-radius: 23px;
    box-shadow: 0 18px 40px rgba(150, 106, 14, 0.2);
  }

  .us-profile::after {
    position: absolute;
    right: -45px;
    bottom: -74px;
    width: 180px;
    height: 180px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    box-shadow: 0 0 0 20px rgba(255, 255, 255, 0.025);
    content: "";
  }

  .us-profile-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .us-profile-top .avatar {
    width: 42px;
    height: 42px;
    border-color: rgba(255, 255, 255, 0.35);
    font-size: 13px;
  }

  .us-profile-top .avatar + .avatar {
    margin-left: -15px;
  }

  .us-profile-copy {
    margin-left: 3px;
  }

  .us-profile-copy h2 {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 500;
  }

  .us-profile-copy p {
    margin-top: 4px;
    color: rgba(255, 250, 243, 0.58);
    font-size: 8px;
  }

  .us-profile-stats {
    position: relative;
    z-index: 1;
    margin-top: 22px;
    padding-top: 16px;
    display: flex;
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .us-profile-stat {
    flex: 1;
  }

  .us-profile-stat + .us-profile-stat {
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    padding-left: 20px;
  }

  .us-profile-stat strong {
    display: block;
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 500;
  }

  .us-profile-stat span {
    display: block;
    margin-top: 4px;
    color: rgba(255, 250, 243, 0.54);
    font-size: 8px;
  }

  .cloud-account-strip {
    width: 100%;
    margin-top: 12px;
    padding: 14px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 17px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    text-align: left;
  }

  .cloud-account-strip-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #597156;
    background: var(--sage-soft);
    border-radius: 11px;
  }

  .cloud-account-strip-icon .icon {
    width: 16px;
    height: 16px;
  }

  .cloud-account-strip > span:nth-child(2) {
    min-width: 0;
    flex: 1;
  }

  .cloud-account-strip strong {
    display: block;
    font-size: 10px;
    font-weight: 600;
  }

  .cloud-account-strip > span:nth-child(2) > span {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    color: var(--muted);
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cloud-account-strip-state {
    color: var(--accent-deep);
    font-size: 8px;
    white-space: nowrap;
  }

  .cloud-account-strip > .icon {
    width: 14px;
    height: 14px;
    color: var(--muted);
  }

  .us-feature-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .us-feature {
    min-height: 116px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    text-align: left;
  }

  .us-feature-icon {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    color: var(--accent-deep);
    background: var(--accent-soft);
    border-radius: 11px;
  }

  .us-feature:nth-child(2n) .us-feature-icon {
    color: #2f7893;
    background: var(--sage-soft);
  }

  .us-feature:nth-child(3n) .us-feature-icon {
    color: #8c741f;
    background: var(--gold-soft);
  }

  .us-feature strong {
    font-size: 11px;
  }

  .us-feature span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 8px;
  }

  .us-daily-line {
    margin-top: 13px;
    padding: 17px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--sage-soft);
    border-radius: 17px;
  }

  .us-daily-line .icon {
    color: #2e7995;
  }

  .us-daily-line div {
    flex: 1;
  }

  .us-daily-line strong {
    display: block;
    color: #315d6c;
    font-size: 10px;
  }

  .us-daily-line span {
    display: block;
    margin-top: 3px;
    color: #728b96;
    font-size: 8px;
  }

  .us-daily-line > .icon:last-child {
    width: 14px;
    height: 14px;
  }

  .toast-root {
    bottom: calc(84px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 380px) {
  .content {
    padding-right: 14px;
    padding-left: 14px;
  }

  .mobile-topbar {
    margin-right: -14px;
    margin-left: -14px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .hero-copy h2 {
    max-width: 180px;
    font-size: 21px;
  }

  .countdown-number {
    font-size: 51px;
  }

  .quick-action {
    min-height: 70px;
    padding: 10px;
  }

  .record-action {
    min-height: 109px;
    padding: 12px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Composer */
.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(43, 35, 31, 0.38);
  backdrop-filter: blur(7px);
  animation: fade-in 180ms ease both;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

.composer {
  width: min(520px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  animation: modal-in 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-modal {
  width: min(455px, 100%);
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}

.composer-header {
  padding: 21px 23px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.composer-header h2 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
}

.auth-modal .composer-header {
  padding-bottom: 18px;
}

.auth-modal .composer-header .eyebrow {
  margin-bottom: 7px;
}

.composer-close {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.composer-close .icon {
  width: 15px;
  height: 15px;
}

.compose-tabs {
  margin: 0 23px;
  padding: 4px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--paper-deep);
  border-radius: 12px;
}

.compose-tab {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font-size: 10px;
}

.compose-tab .icon {
  width: 14px;
  height: 14px;
}

.compose-tab.is-active {
  color: var(--accent-deep);
  background: var(--surface);
  box-shadow: 0 4px 12px rgba(67, 50, 40, 0.06);
  font-weight: 600;
}

.composer form {
  padding: 18px 23px 23px;
}

.form-field {
  display: block;
}

.form-field + .form-field {
  margin-top: 14px;
}

.form-field > span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 9px;
}

.form-field > span em {
  margin-left: 6px;
  color: #91a6ae;
  font-style: normal;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: 11px;
  outline: none;
  resize: vertical;
}

.form-field textarea {
  min-height: 104px;
  line-height: 1.7;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #a1b3ba;
}

.photo-drop {
  position: relative;
  min-height: 126px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  overflow: hidden;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px dashed var(--line-strong);
  border-radius: 13px;
  cursor: pointer;
  text-align: center;
}

.photo-drop .icon {
  width: 21px;
  height: 21px;
  color: var(--accent);
}

.photo-drop strong {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 500;
}

.photo-drop span {
  font-size: 8px;
}

.photo-drop input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.photo-preview {
  position: absolute;
  inset: 0;
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-preview::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 45%, rgba(28, 22, 19, 0.48));
  content: "";
}

.photo-preview span {
  position: absolute;
  z-index: 1;
  right: 12px;
  bottom: 10px;
  color: #fff;
  font-size: 8px;
}

.composer-actions {
  margin-top: 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.composer-hint {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 8px;
}

.composer-hint .icon {
  width: 12px;
  height: 12px;
}

.composer-submit {
  min-width: 106px;
}

.auth-message {
  display: none;
  margin-top: 12px;
  padding: 9px 11px;
  color: #934c42;
  background: #faebe7;
  border-radius: 9px;
  font-size: 9px;
  line-height: 1.55;
}

.auth-message.is-visible {
  display: block;
}

.auth-note {
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 8px;
}

.auth-note .icon {
  width: 12px;
  height: 12px;
}

.auth-submit {
  width: 100%;
  margin-top: 17px;
}

.auth-submit:disabled {
  cursor: wait;
  opacity: 0.68;
}

.footprint-editor {
  width: min(940px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  animation: modal-in 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.footprint-editor::before {
  width: 35px;
  height: 4px;
  margin: 8px auto -2px;
  display: none;
  background: #d8d1c9;
  border-radius: 99px;
  content: "";
}

.footprint-editor-head {
  padding: 20px 23px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.footprint-editor-head .eyebrow {
  margin-bottom: 5px;
}

.footprint-editor-head h2 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
}

#footprint-form {
  padding: 18px 23px 22px;
}

.footprint-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 20px;
}

.footprint-picker-panel {
  min-width: 0;
}

.footprint-field-label {
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.footprint-field-label > span {
  color: #746850;
  font-size: 9px;
}

.footprint-field-label small {
  color: var(--muted);
  font-size: 7px;
}

.footprint-admin-selects {
  margin-bottom: 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.footprint-admin-selects label {
  min-width: 0;
}

.footprint-admin-selects label > span {
  display: block;
  margin-bottom: 4px;
  color: #7d7159;
  font-size: 7px;
}

.footprint-admin-selects select {
  width: 100%;
  height: 32px;
  padding: 0 22px 0 8px;
  color: #5f5339;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  font-size: 8px;
}

.footprint-admin-selects select:focus {
  border-color: rgba(190, 145, 24, 0.4);
  box-shadow: 0 0 0 3px rgba(231, 190, 61, 0.1);
}

.footprint-admin-selects select:disabled {
  color: #aaa08c;
  background: #f4efe3;
  cursor: not-allowed;
}

.footprint-picker-map {
  height: 325px;
  overflow: hidden;
  background: #e4efe9;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.footprint-picker-map .leaflet-control-attribution {
  font-size: 7px;
}

.footprint-picker-foot {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.footprint-picker-foot > span {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 8px;
}

.footprint-picker-foot > button {
  padding: 6px 9px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #3f7081;
  background: var(--blue-soft);
  border: 1px solid rgba(74, 149, 176, 0.16);
  border-radius: 8px;
  cursor: pointer;
  font-size: 8px;
}

.footprint-picker-foot .icon {
  width: 11px;
  height: 11px;
}

.footprint-form-message {
  display: none;
  margin: 9px 0 0;
  padding: 8px 10px;
  color: #984e42;
  background: #fff0e9;
  border-radius: 8px;
  font-size: 8px;
  line-height: 1.55;
}

.footprint-form-message.is-visible {
  display: block;
}

.footprint-fields {
  min-width: 0;
}

#footprint-form .form-field + .form-field {
  margin-top: 10px;
}

#footprint-form .form-field textarea {
  min-height: 67px;
}

.footprint-photo-section {
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.footprint-photo-preview {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
}

.footprint-form-photo {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 9px;
}

.footprint-form-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footprint-form-photo button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  padding: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(35, 30, 24, 0.65);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.footprint-form-photo button .icon {
  width: 10px;
  height: 10px;
}

.footprint-photo-add {
  position: relative;
  min-height: 38px;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #77642b;
  background: var(--accent-soft);
  border: 1px dashed rgba(177, 134, 26, 0.3);
  border-radius: 9px;
  cursor: pointer;
  font-size: 8px;
}

.footprint-photo-add .icon {
  width: 13px;
  height: 13px;
}

.footprint-photo-add input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.footprint-editor-actions {
  margin-top: 18px;
  padding-top: 15px;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  border-top: 1px solid var(--line);
}

.toast-root {
  position: fixed;
  z-index: 200;
  right: 0;
  bottom: 24px;
  left: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.toast {
  max-width: min(360px, calc(100vw - 36px));
  padding: 11px 16px;
  color: #fffaf4;
  background: rgba(46, 39, 35, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 99px;
  box-shadow: 0 10px 26px rgba(39, 31, 27, 0.18);
  font-size: 10px;
  animation: toast-in 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (max-width: 860px) {
  .modal-backdrop {
    padding: 0;
    align-items: end;
  }

  .composer {
    width: 100%;
    max-height: calc(92vh - env(safe-area-inset-top));
    border-radius: 23px 23px 0 0;
    animation-name: sheet-in;
  }

  @keyframes sheet-in {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
  }

  .composer::before {
    width: 35px;
    height: 4px;
    margin: 8px auto -2px;
    display: block;
    background: #d8d1c9;
    border-radius: 99px;
    content: "";
  }

  .composer-header {
    padding-top: 15px;
  }

  .composer form {
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }

  .toast-root {
    bottom: calc(83px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 860px) {
  .footprint-stats {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .footprint-stats::-webkit-scrollbar {
    display: none;
  }

  .footprint-stats > span {
    flex: 0 0 auto;
  }

  .footprints-workspace {
    display: block;
  }

  .footprint-map-panel {
    height: 480px;
    border-radius: 21px;
  }

  .footprint-map-head {
    top: 12px;
    left: 12px;
    min-width: 0;
    width: calc(100% - 24px);
    padding: 13px 14px;
  }

  .footprint-map-head h2 {
    font-size: 18px;
  }

  .footprint-map-head > span {
    display: none;
  }

  .footprint-map-hint {
    bottom: 12px;
    left: 12px;
  }

  .footprint-map .leaflet-control-zoom {
    margin-right: 12px;
    margin-bottom: 12px;
  }

  .footprint-popup-shell .leaflet-popup-content {
    width: 238px !important;
  }

  .footprint-list-panel {
    height: auto;
    min-height: 280px;
    max-height: 520px;
    margin-top: 12px;
    border-radius: 21px;
  }

  .footprint-card-photo {
    width: 54px;
    height: 54px;
  }

  .footprint-editor {
    width: 100%;
    max-height: calc(94vh - env(safe-area-inset-top));
    border-radius: 23px 23px 0 0;
    animation-name: sheet-in;
  }

  .footprint-editor::before {
    display: block;
  }

  .footprint-editor-head {
    padding: 15px 18px 14px;
  }

  .footprint-editor-head h2 {
    font-size: 19px;
  }

  #footprint-form {
    padding: 15px 18px calc(22px + env(safe-area-inset-bottom));
  }

  .footprint-editor-grid {
    display: block;
  }

  .footprint-picker-map {
    height: 235px;
  }

  .footprint-fields {
    margin-top: 15px;
  }

  .footprint-photo-preview {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .footprint-editor-actions {
    position: sticky;
    bottom: calc(-1 * env(safe-area-inset-bottom));
    margin-right: -18px;
    margin-left: -18px;
    padding: 13px 18px calc(13px + env(safe-area-inset-bottom));
    background: rgba(255, 254, 248, 0.96);
    backdrop-filter: blur(12px);
  }

  .footprint-editor-actions .primary-button {
    flex: 1;
  }
}
