/* =========================================================
   恋恋 · Lianlian
   An original little universe for two.
   ========================================================= */

/* ---------- 01. Tokens ---------- */
:root {
  --font-sans: "Segoe UI", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", "STSong", "Source Han Serif SC", "SimSun", serif;
  --font-number: "Georgia", "Times New Roman", "Noto Serif SC", serif;
  --app-bg: #fbf6ef;
  --surface: #fffcf8;
  --surface-raised: #fffdfa;
  --surface-soft: #f8f0e8;
  --surface-tint: #fdf2ea;
  --ink: #34272a;
  --ink-soft: #655250;
  --muted: #8d7771;
  --faint: #b7a49d;
  --line: rgba(88, 58, 48, 0.105);
  --line-strong: rgba(88, 58, 48, 0.17);
  --accent: #d95362;
  --accent-strong: #b73d4e;
  --accent-ink: #9e3542;
  --accent-soft: #f6d8d1;
  --accent-pale: #fbeae4;
  --accent-wash: #fdf4ef;
  --hero-a: #6c283a;
  --hero-b: #ac3e4e;
  --hero-c: #dc756b;
  --hero-ink: #fff5ea;
  --hero-muted: rgba(255, 245, 234, 0.72);
  --hero-faint: rgba(255, 245, 234, 0.48);
  --hero-chip: rgba(255, 248, 238, 0.11);
  --hero-line: rgba(255, 243, 228, 0.22);
  --sage: #7f9b83;
  --sage-soft: #e3ede3;
  --sky: #6e94a9;
  --sky-soft: #e1edf2;
  --butter: #c08a45;
  --butter-soft: #f8e8c8;
  --clay: #ac7457;
  --clay-soft: #f1dfd2;
  --lilac: #8570a8;
  --lilac-soft: #e9e1f2;
  --danger: #b8474d;
  --danger-soft: #fae5e5;
  --shadow-sm: 0 3px 10px rgba(75, 48, 39, 0.045);
  --shadow-card: 0 10px 32px rgba(75, 48, 39, 0.07), 0 2px 6px rgba(75, 48, 39, 0.03);
  --shadow-float: 0 18px 48px rgba(69, 37, 32, 0.17), 0 4px 12px rgba(69, 37, 32, 0.08);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 30px;
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  color-scheme: light;
}

[data-theme="sea"] {
  --app-bg: #f4f9f5;
  --surface: #fbfdfb;
  --surface-raised: #fefffd;
  --surface-soft: #eef5f0;
  --surface-tint: #f0f8f3;
  --ink: #263631;
  --ink-soft: #52655e;
  --muted: #7b8d85;
  --faint: #a7b7b0;
  --line: rgba(44, 78, 66, 0.11);
  --line-strong: rgba(44, 78, 66, 0.18);
  --accent: #43837c;
  --accent-strong: #2f6862;
  --accent-ink: #2c615b;
  --accent-soft: #d3e6df;
  --accent-pale: #e9f3ef;
  --accent-wash: #f2f9f5;
  --hero-a: #173a3c;
  --hero-b: #32625e;
  --hero-c: #739987;
  --hero-ink: #f5f3e7;
  --hero-muted: rgba(245, 243, 231, 0.72);
  --hero-faint: rgba(245, 243, 231, 0.46);
  --hero-chip: rgba(245, 249, 238, 0.11);
  --hero-line: rgba(245, 249, 238, 0.22);
  --sage: #5f8b72;
  --sage-soft: #dfede2;
}

[data-theme="lavender"] {
  --app-bg: #faf7fc;
  --surface: #fefcff;
  --surface-raised: #fffdff;
  --surface-soft: #f4eef9;
  --surface-tint: #f8f1fc;
  --ink: #322a3c;
  --ink-soft: #5e536a;
  --muted: #8b7f96;
  --faint: #b5a9be;
  --line: rgba(72, 52, 91, 0.11);
  --line-strong: rgba(72, 52, 91, 0.18);
  --accent: #8067ae;
  --accent-strong: #674d95;
  --accent-ink: #5c4387;
  --accent-soft: #e2d8f0;
  --accent-pale: #f1eaf8;
  --accent-wash: #f8f3fc;
  --hero-a: #302747;
  --hero-b: #594578;
  --hero-c: #9279af;
  --hero-ink: #fbf5ec;
  --hero-muted: rgba(251, 245, 236, 0.72);
  --hero-faint: rgba(251, 245, 236, 0.48);
  --hero-chip: rgba(251, 245, 236, 0.11);
  --hero-line: rgba(251, 245, 236, 0.2);
  --lilac: #775e9d;
  --lilac-soft: #e9dff4;
}

[data-theme="latte"] {
  --app-bg: #fbf5ed;
  --surface: #fffaf3;
  --surface-raised: #fffdf8;
  --surface-soft: #f5eadc;
  --surface-tint: #fbf0e2;
  --ink: #3b2d25;
  --ink-soft: #6a5548;
  --muted: #917b6d;
  --faint: #b9a594;
  --line: rgba(88, 61, 42, 0.12);
  --line-strong: rgba(88, 61, 42, 0.19);
  --accent: #a56840;
  --accent-strong: #854d2a;
  --accent-ink: #7b4624;
  --accent-soft: #ecd7c1;
  --accent-pale: #f7eadb;
  --accent-wash: #fbf3e9;
  --hero-a: #38261e;
  --hero-b: #684832;
  --hero-c: #a87853;
  --hero-ink: #fff6e8;
  --hero-muted: rgba(255, 246, 232, 0.72);
  --hero-faint: rgba(255, 246, 232, 0.48);
  --hero-chip: rgba(255, 246, 232, 0.11);
  --hero-line: rgba(255, 246, 232, 0.21);
  --butter: #b57c37;
  --butter-soft: #f5e4c4;
}

/* ---------- 02. Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background: #f3e9df;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

button {
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:disabled {
  cursor: not-allowed;
}

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

p,
h1,
h2,
h3,
h4,
figure,
blockquote,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

svg {
  display: block;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: var(--accent-soft);
  color: var(--ink);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ---------- 03. Atmosphere & desktop stage ---------- */
.page-atmosphere {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(1200px 900px at -10% 8%, rgba(247, 196, 164, 0.6), transparent 58%),
    radial-gradient(1000px 800px at 104% 103%, rgba(154, 179, 161, 0.35), transparent 58%),
    radial-gradient(700px 600px at 62% -10%, rgba(255, 243, 220, 0.9), transparent 60%),
    linear-gradient(135deg, #f6eadf 0%, #f1e7db 48%, #f8efe7 100%);
  z-index: 0;
}

.page-atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(92, 66, 52, 0.07) 0.6px, transparent 0.7px);
  background-size: 7px 7px;
  opacity: 0.38;
  mix-blend-mode: multiply;
}

.page-atmosphere::after {
  content: "";
  position: absolute;
  width: 46vw;
  height: 46vw;
  left: 40%;
  top: -25%;
  border-radius: 50%;
  border: 1px solid rgba(151, 107, 85, 0.12);
  box-shadow:
    0 0 0 70px rgba(255, 255, 255, 0.06),
    0 0 0 140px rgba(255, 255, 255, 0.04);
}

.atmosphere-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
}

.atmosphere-blob--one {
  width: 280px;
  height: 280px;
  left: 6%;
  bottom: 4%;
  background: rgba(219, 147, 128, 0.28);
}

.atmosphere-blob--two {
  width: 340px;
  height: 340px;
  right: 15%;
  top: 4%;
  background: rgba(244, 209, 157, 0.3);
}

.site {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100vw - 72px));
  height: 100dvh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(420px, 1fr) 446px;
  align-items: center;
  gap: clamp(40px, 6.5vw, 104px);
}

/* ---------- 04. Desktop showcase ---------- */
.showcase {
  max-width: 566px;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  align-self: center;
  max-height: calc(100dvh - 40px);
}

.showcase__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(28px, 5vh, 52px);
}

.brand-mark {
  display: grid;
  place-items: center;
  border-radius: 15px;
  box-shadow: 0 8px 24px rgba(145, 65, 63, 0.2);
  flex: none;
}

.brand-word {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #3a2729;
}

.brand-en {
  align-self: center;
  margin-left: 2px;
  padding-left: 12px;
  border-left: 1px solid rgba(73, 48, 43, 0.16);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: rgba(73, 48, 43, 0.52);
}

.showcase__copy .eyebrow,
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.22em;
  color: #9b5d53;
}

.eyebrow > span {
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.showcase h1 {
  margin-top: 18px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(42px, 4.3vw, 62px);
  line-height: 1.23;
  letter-spacing: 0.015em;
  color: #392729;
}

.ink-accent {
  position: relative;
  display: inline-block;
  color: var(--accent-ink);
  font-style: italic;
  padding: 0 2px;
  z-index: 0;
}

.ink-accent::after {
  content: "";
  position: absolute;
  left: -3px;
  right: -5px;
  bottom: 4px;
  height: 11px;
  background: var(--accent-soft);
  border-radius: 60% 35% 55% 40%;
  transform: rotate(-1.4deg);
  z-index: -1;
}

.showcase__lead {
  margin-top: 22px;
  font-size: 14.5px;
  line-height: 2;
  letter-spacing: 0.02em;
  color: #76635d;
}

.showcase__collage {
  position: relative;
  height: 222px;
  margin: 30px 0 26px;
  width: 100%;
  max-width: 535px;
}

.collage-photo {
  position: absolute;
  left: 2%;
  top: 16px;
  width: 236px;
  height: 194px;
  padding: 10px 10px 34px;
  background: #fffbf3;
  transform: rotate(-5deg);
  box-shadow: 0 16px 35px rgba(76, 47, 37, 0.16);
  border: 1px solid rgba(102, 73, 58, 0.08);
  z-index: 2;
}

.collage-photo img {
  width: 100%;
  height: 143px;
  object-fit: cover;
  background: #ecd9c9;
}

.collage-photo p {
  margin-top: 9px;
  font-family: var(--font-serif);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #806a5c;
  text-align: center;
}

.collage-tape {
  position: absolute;
  top: -12px;
  left: 50%;
  width: 68px;
  height: 23px;
  transform: translateX(-50%) rotate(2deg);
  background: rgba(238, 216, 174, 0.7);
  box-shadow: 0 2px 5px rgba(85, 59, 42, 0.06);
}

.collage-note {
  position: absolute;
  left: 225px;
  top: 3px;
  width: 258px;
  height: 205px;
  padding: 22px 24px;
  transform: rotate(3.2deg);
  background:
    linear-gradient(rgba(255, 252, 245, 0.94), rgba(255, 248, 238, 0.94)),
    repeating-linear-gradient(0deg, transparent 0 26px, rgba(126, 95, 74, 0.08) 26px 27px);
  border: 1px solid rgba(125, 90, 65, 0.14);
  box-shadow: 0 16px 36px rgba(76, 47, 37, 0.13);
  z-index: 3;
}

.collage-note::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 24px;
  right: 24px;
  height: 1px;
  background: rgba(111, 78, 60, 0.12);
}

.collage-note__eyebrow {
  display: block;
  border-bottom: 1px dashed rgba(110, 78, 58, 0.2);
  padding-bottom: 12px;
  font-size: 8px;
  letter-spacing: 0.17em;
  color: #9a7e6e;
}

.collage-note__days {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 12px;
  color: #4b2f30;
}

.collage-note__days strong {
  font-family: var(--font-number);
  font-size: 55px;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.collage-note__days span {
  font-family: var(--font-serif);
  font-size: 13px;
  color: #85695c;
}

.collage-note__caption {
  margin-top: 4px;
  font-size: 10.5px;
  letter-spacing: 0.07em;
  color: #9a8173;
}

.collage-note__avatars {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  font-family: var(--font-serif);
  font-size: 10.5px;
  color: #6e514a;
}

.collage-note__avatars img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid #fffaf2;
  box-shadow: 0 2px 5px rgba(84, 54, 44, 0.14);
}

.collage-note__avatars span {
  margin: 0 4px;
}

.collage-sticker {
  position: absolute;
  right: -4px;
  bottom: -8px;
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(9deg);
  border-radius: 50%;
  background: #ecd29d;
  color: #6d5037;
  font-family: var(--font-serif);
  font-size: 10px;
  font-style: italic;
  line-height: 1.3;
  text-align: center;
  box-shadow: 0 8px 20px rgba(108, 79, 42, 0.18);
  z-index: 4;
}

.collage-sticker::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dashed rgba(108, 79, 42, 0.35);
  border-radius: 50%;
}

.showcase__features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 0;
  margin: 0 0 24px;
}

.showcase__features li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: #776158;
}

.showcase__features li span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(102, 73, 58, 0.2);
  border-radius: 50%;
  font-size: 11px;
  color: var(--accent-ink);
}

.showcase__footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(95, 66, 52, 0.13);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: #9a8173;
}

.showcase__footer p + p {
  margin-top: 4px;
}

.showcase__disclaimer {
  color: #b09a8b;
}

/* ---------- 05. Phone shell ---------- */
.phone-stage {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.phone-shell {
  width: 430px;
  height: min(872px, calc(100dvh - 62px));
  padding: 9px;
  border-radius: 54px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.35), transparent 20%),
    linear-gradient(145deg, #453033 0%, #6d5050 44%, #3e2d30 100%);
  box-shadow:
    0 44px 100px rgba(67, 42, 35, 0.28),
    0 12px 35px rgba(67, 42, 35, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  flex: none;
}

.app {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 45px;
  background: var(--app-bg);
  isolation: isolate;
  transition: background-color 0.45s var(--ease-soft);
}

.app-scroll {
  position: relative;
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding: 0 21px 122px;
  scroll-behavior: auto;
}

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

.phone-stage__hint {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: rgba(86, 60, 51, 0.42);
  text-transform: uppercase;
}

/* ---------- 06. Navigation ---------- */
.tabbar {
  position: relative;
  flex: none;
  z-index: 35;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  height: calc(70px + env(safe-area-inset-bottom, 0px));
  padding: 7px 9px calc(7px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  backdrop-filter: blur(22px) saturate(1.25);
}

@supports not (background: color-mix(in srgb, white 50%, transparent)) {
  .tabbar {
    background: rgba(255, 252, 248, 0.92);
  }
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--faint);
  border-radius: 14px;
  transition: color 0.22s var(--ease-soft);
  min-width: 0;
}

.tab__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 39px;
  height: 27px;
  border-radius: 999px;
  transition: background-color 0.25s var(--ease-soft), transform 0.25s var(--ease-spring);
}

.tab__icon .icon {
  width: 21px;
  height: 21px;
  transition: transform 0.25s var(--ease-spring);
}

.tab__label {
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.04em;
  font-weight: 550;
}

.tab.is-active {
  color: var(--accent-ink);
}

.tab.is-active .tab__icon {
  background: var(--accent-pale);
}

.tab.is-active .tab__icon .icon {
  transform: translateY(-1px) scale(1.03);
}

.tab:active .tab__icon {
  transform: scale(0.92);
}

.fab {
  position: absolute;
  right: 20px;
  bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  z-index: 34;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff8f1;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.3), transparent 50%),
    linear-gradient(145deg, var(--hero-c), var(--accent-strong));
  box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 38%, transparent), 0 3px 8px rgba(75, 40, 33, 0.2);
  transition: transform 0.25s var(--ease-spring), opacity 0.2s ease, visibility 0.2s;
}

.fab::before,
.fab::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 99px;
}

.fab::before {
  width: 18px;
  height: 2px;
}

.fab::after {
  width: 2px;
  height: 18px;
}

.fab:hover {
  transform: translateY(-2px) rotate(4deg);
}

.fab:active {
  transform: scale(0.92);
}

.fab.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.7);
}

/* ---------- 07. Shared page pieces ---------- */
.page {
  padding-top: 1px;
}

.page.is-entering {
  animation: page-in 0.38s var(--ease-spring) both;
}

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

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 27px 0 20px;
}

.page-header .overline {
  margin-bottom: 7px;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.2em;
  color: var(--accent-ink);
  opacity: 0.72;
}

.page-header h1 {
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.page-header__sub {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.025em;
  color: var(--muted);
}

.round-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease-spring), background 0.2s;
}

.round-button:hover {
  background: var(--accent-pale);
  color: var(--accent-ink);
  transform: rotate(5deg);
}

.round-button:active {
  transform: scale(0.92);
}

.round-button .icon {
  width: 19px;
  height: 19px;
}

.section {
  margin-top: 25px;
}

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

.section-heading h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.025em;
  color: var(--ink);
}

.section-heading h2::before {
  content: "";
  width: 3px;
  height: 13px;
  border-radius: 99px;
  background: var(--accent);
  transform: rotate(12deg);
}

.section-link {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11.5px;
  color: var(--muted);
  transition: color 0.2s;
}

.section-link:hover {
  color: var(--accent-ink);
}

.section-link .icon {
  width: 13px;
  height: 13px;
}

.card-label {
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.page-lead {
  margin: -4px 0 20px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 23px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  line-height: 1.2;
  white-space: nowrap;
}

.empty-state {
  padding: 46px 24px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.empty-state__art {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: var(--accent-pale);
  color: var(--accent);
  transform: rotate(-5deg);
}

.empty-state__art .icon {
  width: 34px;
  height: 34px;
}

.empty-state h3 {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 650;
  color: var(--ink);
}

.empty-state p {
  max-width: 250px;
  margin: 7px auto 16px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 43px;
  padding: 0 18px;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.2s var(--ease-spring), background 0.2s, color 0.2s, box-shadow 0.2s;
}

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

.btn .icon {
  width: 17px;
  height: 17px;
}

.btn--primary {
  color: #fff9f3;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 7px 18px color-mix(in srgb, var(--accent) 25%, transparent);
}

.btn--primary:hover {
  box-shadow: 0 9px 23px color-mix(in srgb, var(--accent) 34%, transparent);
}

.btn--soft {
  color: var(--accent-ink);
  background: var(--accent-pale);
}

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

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

.btn--block {
  width: 100%;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.icon-button:hover {
  background: var(--surface);
  color: var(--accent-ink);
}

.icon-button:active {
  transform: scale(0.92);
}

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

.filter-bar {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0 6px;
  margin-bottom: 12px;
}

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

.filter-chip {
  flex: none;
  min-height: 31px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  transition: all 0.2s var(--ease-soft);
}

.filter-chip.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff9f4;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 22%, transparent);
}

.filter-chip:hover:not(.is-active) {
  border-color: var(--line-strong);
  color: var(--ink-soft);
}

/* ---------- 08. Home ---------- */
.home-header {
  padding-top: 22px;
}

.home-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink);
}

.wordmark::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-pale);
  transform: translateY(-2px);
}

.wordmark em {
  font-family: var(--font-sans);
  font-size: 7.5px;
  font-style: normal;
  font-weight: 650;
  letter-spacing: 0.22em;
  color: var(--faint);
}

.home-meta__actions {
  display: flex;
  gap: 8px;
}

.home-hello {
  margin-top: 19px;
}

.home-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 550;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.home-date .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--faint);
}

.home-greeting {
  margin-top: 4px;
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 600;
  line-height: 1.38;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.home-greeting span {
  color: var(--accent);
}

.love-card {
  position: relative;
  margin-top: 18px;
  padding: 19px 19px 18px;
  overflow: hidden;
  border-radius: 30px;
  color: var(--hero-ink);
  background:
    radial-gradient(circle at 86% 4%, rgba(255, 219, 175, 0.36), transparent 43%),
    radial-gradient(circle at 7% 97%, rgba(91, 29, 48, 0.52), transparent 52%),
    linear-gradient(138deg, var(--hero-a) 0%, var(--hero-b) 54%, var(--hero-c) 100%);
  box-shadow: 0 18px 42px rgba(70, 37, 32, 0.21), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  isolation: isolate;
}

.love-card::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -128px;
  top: -110px;
  border: 1px solid var(--hero-line);
  border-radius: 50%;
  box-shadow:
    0 0 0 36px rgba(255, 255, 255, 0.04),
    0 0 0 74px rgba(255, 255, 255, 0.025);
  z-index: -1;
}

.love-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 248, 235, 0.34) 0.55px, transparent 0.65px);
  background-size: 8px 8px;
  opacity: 0.22;
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: -1;
}

.love-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.love-card__eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 8.5px;
  font-weight: 650;
  letter-spacing: 0.2em;
  color: var(--hero-muted);
}

.love-card__eyebrow::before {
  content: "";
  width: 17px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.love-card__share {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--hero-line);
  border-radius: 50%;
  color: var(--hero-ink);
  background: rgba(255, 255, 255, 0.07);
  transition: background 0.2s, transform 0.2s;
}

.love-card__share:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(8deg);
}

.love-card__share .icon {
  width: 14px;
  height: 14px;
}

.hero-people {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 17px;
}

.hero-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: 70px;
  flex: none;
}

.hero-person__avatar {
  position: relative;
  width: 55px;
  height: 55px;
  padding: 2.5px;
  border-radius: 50%;
  background: rgba(255, 247, 235, 0.28);
  box-shadow: 0 7px 18px rgba(47, 15, 22, 0.22);
}

.hero-person__avatar::after {
  content: "♡";
  position: absolute;
  right: -3px;
  bottom: 0;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #ffe5c2;
  color: var(--hero-b);
  font-size: 9px;
  line-height: 1;
  box-shadow: 0 2px 5px rgba(50, 20, 23, 0.2);
}

.hero-person--right .hero-person__avatar::after {
  content: "✦";
  background: #f1c4ae;
  color: #823846;
}

.hero-person__avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 247, 236, 0.8);
}

.hero-person__name {
  font-family: var(--font-serif);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--hero-muted);
}

.hero-center {
  flex: 1;
  min-width: 0;
  text-align: center;
  transform: translateY(-1px);
}

.hero-center__kicker {
  font-family: var(--font-serif);
  font-size: 10px;
  font-style: italic;
  letter-spacing: 0.08em;
  color: var(--hero-muted);
}

.hero-days {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  margin: 0 0 1px;
  line-height: 1;
}

.hero-days strong {
  font-family: var(--font-number);
  font-size: clamp(52px, 15vw, 66px);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.96;
  text-shadow: 0 6px 24px rgba(49, 15, 22, 0.18);
}

.hero-days span {
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--hero-muted);
  transform: translateY(-5px);
}

.hero-since {
  margin-top: 4px;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--hero-faint);
}

.hero-since b {
  font-weight: 500;
  color: var(--hero-muted);
}

.hero-milestone {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  padding: 9px 11px;
  border: 1px solid var(--hero-line);
  border-radius: 12px;
  background: var(--hero-chip);
}

.hero-milestone .icon {
  width: 14px;
  height: 14px;
  color: #f7d79b;
  flex: none;
}

.hero-milestone__text {
  flex: 1;
  min-width: 0;
  font-size: 9.5px;
  letter-spacing: 0.03em;
  color: var(--hero-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-milestone__text strong {
  font-weight: 650;
  color: var(--hero-ink);
}

.hero-milestone__bar {
  width: 51px;
  height: 3px;
  flex: none;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 247, 235, 0.17);
}

.hero-milestone__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f0caa5, #ffe2b3);
}

.hero-actions {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 8px;
  margin-top: 11px;
}

.hero-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: transform 0.2s var(--ease-spring), background 0.2s;
}

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

.hero-action--primary {
  color: #5c2530;
  background: #fff1df;
  box-shadow: 0 5px 14px rgba(45, 16, 21, 0.14);
}

.hero-action--ghost {
  border: 1px solid var(--hero-line);
  color: var(--hero-ink);
  background: rgba(255, 255, 255, 0.08);
}

.hero-action:hover {
  transform: translateY(-1px);
}

.hero-action:active {
  transform: scale(0.97);
}

.hero-action.is-hugged {
  color: var(--hero-muted);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: none;
}

.hero-action.is-hugged .icon {
  color: #f2c9a8;
}

.love-card__ornament {
  position: absolute;
  right: 33px;
  bottom: 65px;
  font-family: var(--font-serif);
  font-size: 108px;
  line-height: 1;
  color: rgba(255, 247, 236, 0.07);
  transform: rotate(12deg);
  pointer-events: none;
  z-index: -1;
}

.love-card__star {
  position: absolute;
  color: rgba(255, 240, 212, 0.52);
  font-size: 8px;
  line-height: 1;
  pointer-events: none;
}

.love-card__star--one {
  left: 91px;
  top: 103px;
}

.love-card__star--two {
  right: 94px;
  top: 88px;
  font-size: 5px;
}

.upcoming-card {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 14px;
  overflow: hidden;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(120px 90px at 100% 0%, var(--accent-pale), transparent 72%),
    var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease-spring), border-color 0.22s, box-shadow 0.22s;
}

.upcoming-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  box-shadow: var(--shadow-card);
}

.upcoming-date {
  width: 54px;
  height: 61px;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  border-radius: 15px;
  background: var(--accent-pale);
  color: var(--accent-ink);
}

.upcoming-date strong {
  font-family: var(--font-number);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.05;
}

.upcoming-date span {
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.16em;
  color: var(--accent-ink);
  opacity: 0.7;
}

.upcoming-main {
  flex: 1;
  min-width: 0;
}

.upcoming-main .card-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 8.5px;
  color: var(--muted);
}

.upcoming-main .card-label .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
}

.upcoming-main h3 {
  margin-top: 3px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 650;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upcoming-main p {
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upcoming-count {
  display: flex;
  align-items: baseline;
  gap: 2px;
  flex: none;
  color: var(--accent-ink);
}

.upcoming-count strong {
  font-family: var(--font-number);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.upcoming-count span {
  font-size: 9.5px;
  color: var(--muted);
}

.upcoming-chevron {
  flex: none;
  color: var(--faint);
}

.upcoming-chevron .icon {
  width: 14px;
  height: 14px;
}

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

.quick-action {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 89px;
  padding: 11px 4px 9px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease-spring), border-color 0.2s, background 0.2s;
}

.quick-action:hover {
  transform: translateY(-3px);
  border-color: transparent;
  background: var(--surface-raised);
  box-shadow: var(--shadow-card);
}

.quick-action:active {
  transform: scale(0.96);
}

.quick-action__icon {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 13px;
  color: var(--accent-ink);
  background: var(--accent-pale);
  transform: rotate(-3deg);
}

.quick-action:nth-child(2) .quick-action__icon {
  color: var(--butter);
  background: var(--butter-soft);
  transform: rotate(3deg);
}

.quick-action:nth-child(3) .quick-action__icon {
  color: var(--sage);
  background: var(--sage-soft);
  transform: rotate(-2deg);
}

.quick-action:nth-child(4) .quick-action__icon {
  color: var(--sky);
  background: var(--sky-soft);
  transform: rotate(3deg);
}

.quick-action__icon .icon {
  width: 19px;
  height: 19px;
}

.quick-action__label {
  font-size: 10.5px;
  font-weight: 550;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  white-space: nowrap;
}

.wish-summary {
  position: relative;
  width: 100%;
  padding: 15px 16px 14px;
  overflow: hidden;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 21px;
  background:
    radial-gradient(150px 100px at 90% 0%, rgba(243, 215, 164, 0.3), transparent 75%),
    var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease-spring), box-shadow 0.22s;
}

.wish-summary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.wish-summary__head {
  display: flex;
  align-items: center;
  gap: 11px;
}

.wish-summary__icon {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--butter);
  background: var(--butter-soft);
}

.wish-summary__icon .icon {
  width: 18px;
  height: 18px;
}

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

.wish-summary__heading span {
  display: block;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.16em;
  color: var(--faint);
}

.wish-summary__heading h3 {
  margin-top: 2px;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 650;
  color: var(--ink);
}

.wish-summary__count {
  align-self: flex-start;
  padding-top: 2px;
  font-family: var(--font-number);
  font-size: 16px;
  color: var(--ink-soft);
}

.wish-summary__count small {
  font-size: 9px;
  color: var(--faint);
}

.wish-summary__bar {
  height: 5px;
  margin-top: 13px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--surface-soft);
}

.wish-summary__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent));
  transition: width 0.6s var(--ease-spring);
}

.wish-summary__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
  font-size: 9.5px;
  color: var(--muted);
}

.wish-summary__next {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.wish-summary__next em {
  font-style: normal;
  color: var(--accent-ink);
}

.wish-summary__footer > span:last-child {
  flex: none;
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--faint);
}

.wish-summary__footer .icon {
  width: 12px;
  height: 12px;
}

.recent-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.recent-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  text-align: left;
  transition: background 0.2s;
}

.recent-item + .recent-item {
  border-top: 1px solid var(--line);
}

.recent-item:hover {
  background: var(--accent-wash);
}

.recent-item__thumb {
  width: 58px;
  height: 58px;
  flex: none;
  overflow: hidden;
  border-radius: 14px;
  background: var(--surface-soft);
}

.recent-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease-spring);
}

.recent-item:hover .recent-item__thumb img {
  transform: scale(1.06);
}

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

.recent-item__meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  letter-spacing: 0.02em;
  color: var(--faint);
}

.recent-item__meta img {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
}

.recent-item__meta strong {
  font-weight: 600;
  color: var(--muted);
}

.recent-item__text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 3px;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.recent-item__chips {
  display: flex;
  gap: 5px;
  margin-top: 5px;
}

.recent-item__chips span {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 8.5px;
  color: var(--muted);
}

.recent-item__chips .mood-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
}

.daily-quote {
  position: relative;
  margin-top: 25px;
  padding: 21px 20px 19px;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    linear-gradient(115deg, var(--accent-wash), var(--surface) 65%),
    var(--surface);
}

.daily-quote::before {
  content: "“";
  position: absolute;
  right: 13px;
  top: -8px;
  font-family: var(--font-serif);
  font-size: 92px;
  line-height: 1;
  color: var(--accent-soft);
  opacity: 0.8;
}

.daily-quote__eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.18em;
  color: var(--accent-ink);
  opacity: 0.68;
}

.daily-quote__eyebrow::before {
  content: "♡";
  font-size: 10px;
  letter-spacing: 0;
}

.daily-quote p {
  position: relative;
  max-width: 300px;
  margin-top: 9px;
  font-family: var(--font-serif);
  font-size: 13.5px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.home-footer {
  margin: 27px 0 4px;
  text-align: center;
  font-size: 8.5px;
  letter-spacing: 0.16em;
  color: var(--faint);
}

.home-footer span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.home-footer .icon {
  width: 11px;
  height: 11px;
  color: var(--accent);
}


/* ---------- 09. Time / memories ---------- */
.time-overview {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 17px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.time-overview__avatars {
  display: flex;
  align-items: center;
  flex: none;
}

.time-overview__avatars img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  object-fit: cover;
}

.time-overview__avatars img + img {
  margin-left: -8px;
}

.time-overview__copy {
  flex: 1;
  min-width: 0;
}

.time-overview__copy p {
  font-size: 9px;
  letter-spacing: 0.11em;
  color: var(--faint);
}

.time-overview__copy h3 {
  margin-top: 1px;
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.time-overview__stats {
  display: flex;
  gap: 11px;
  flex: none;
}

.time-overview__stats span {
  font-size: 9px;
  color: var(--muted);
  text-align: center;
}

.time-overview__stats strong {
  display: block;
  font-family: var(--font-number);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
}

.timeline-month {
  margin-top: 20px;
}

.timeline-month:first-child {
  margin-top: 8px;
}

.month-heading {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-left: 18px;
  margin-bottom: 10px;
}

.month-heading h2 {
  font-family: var(--font-serif);
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
}

.month-heading span {
  font-size: 9.5px;
  color: var(--faint);
}

.timeline-stream {
  position: relative;
}

.timeline-stream::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(var(--accent-soft), var(--line) 75%, transparent);
}

.timeline-row {
  position: relative;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 9px;
  padding-bottom: 12px;
}

.timeline-rail {
  position: relative;
  padding-top: 20px;
}

.timeline-dot {
  display: block;
  width: 11px;
  height: 11px;
  border: 2.5px solid var(--surface);
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent-soft);
  transform: translateX(-.5px);
}

.timeline-row.is-first .timeline-dot {
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-pale);
}

.record-card {
  position: relative;
  padding: 14px 14px 12px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.22s var(--ease-spring);
}

.record-card:hover {
  border-color: color-mix(in srgb, var(--accent) 20%, var(--line));
  box-shadow: var(--shadow-card);
}

.record-card.is-pinned {
  border-color: color-mix(in srgb, var(--accent) 24%, var(--line));
  background:
    radial-gradient(160px 100px at 100% 0%, var(--accent-wash), transparent 75%),
    var(--surface);
}

.record-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.record-head__avatar {
  width: 29px;
  height: 29px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--surface);
  box-shadow: 0 2px 6px rgba(72, 48, 38, 0.12);
}

.record-head__meta {
  flex: 1;
  min-width: 0;
}

.record-head__meta strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.3;
  color: var(--ink);
}

.record-head__meta > span {
  display: block;
  margin-top: 1px;
  font-size: 8.5px;
  letter-spacing: 0.025em;
  color: var(--faint);
}

.record-more {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  flex: none;
  border-radius: 50%;
  color: var(--faint);
  transition: background 0.2s, color 0.2s;
}

.record-more:hover {
  color: var(--ink-soft);
  background: var(--surface-soft);
}

.record-more .icon {
  width: 16px;
  height: 16px;
}

.record-pin {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 4px;
  padding: 1px 5px;
  border-radius: 999px;
  vertical-align: 1px;
  color: var(--accent-ink);
  background: var(--accent-pale);
  font-size: 8px;
  font-style: normal;
  font-weight: 550;
}

.record-pin .icon {
  width: 9px;
  height: 9px;
}

.record-text {
  margin-top: 9px;
  font-size: 12px;
  line-height: 1.85;
  letter-spacing: 0.015em;
  color: var(--ink-soft);
  white-space: pre-wrap;
  word-break: break-word;
}

.record-photo {
  position: relative;
  margin-top: 11px;
  overflow: hidden;
  border-radius: 15px;
  background: var(--surface-soft);
}

.record-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.55s var(--ease-spring);
}

.record-card:hover .record-photo img {
  transform: scale(1.015);
}

.record-photo--multi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}

.record-photo--multi img {
  aspect-ratio: 1;
}

.record-photo__count {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fffaf2;
  background: rgba(37, 24, 23, 0.48);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 8.5px;
  letter-spacing: 0.04em;
}

.record-footer {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.mood-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px 3px 6px;
  border-radius: 999px;
  background: var(--surface-soft);
  font-size: 9.5px;
  color: var(--ink-soft);
  white-space: nowrap;
}

.mood-tag span {
  font-size: 11px;
  line-height: 1;
}

.record-location {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
  font-size: 9px;
  color: var(--faint);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.record-location .icon {
  width: 11px;
  height: 11px;
  flex: none;
}

.record-heart {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  padding: 3px 4px;
  color: var(--faint);
  font-size: 9.5px;
  transition: color 0.2s, transform 0.2s var(--ease-spring);
}

.record-heart .icon {
  width: 14px;
  height: 14px;
}

.record-heart:hover {
  color: var(--accent);
}

.record-heart:active {
  transform: scale(1.16);
}

.record-heart.is-liked {
  color: var(--accent);
}

/* ---------- 10. Anniversaries ---------- */
.anniv-feature {
  position: relative;
  padding: 17px 17px 16px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 25px;
  background:
    radial-gradient(170px 130px at 100% 0%, var(--accent-soft), transparent 70%),
    radial-gradient(180px 150px at 0% 100%, var(--accent-wash), transparent 75%),
    var(--surface);
  box-shadow: var(--shadow-card);
}

.anniv-feature::before {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: -48px;
  top: -64px;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 0 18px color-mix(in srgb, var(--accent) 4%, transparent);
}

.anniv-feature__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.anniv-feature__top .card-label {
  color: var(--accent-ink);
  opacity: 0.72;
}

.anniv-feature__year {
  font-family: var(--font-number);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--faint);
}

.anniv-feature__main {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 13px;
}

.anniv-orb {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 25px;
  transform: rotate(-4deg);
}

.anniv-feature__copy {
  min-width: 0;
  flex: 1;
}

.anniv-feature__copy h2 {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 650;
  line-height: 1.35;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.anniv-feature__copy p {
  margin-top: 3px;
  font-size: 9.5px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.anniv-feature__count {
  flex: none;
  display: flex;
  align-items: baseline;
  gap: 2px;
  color: var(--accent-ink);
}

.anniv-feature__count strong {
  font-family: var(--font-number);
  font-size: 43px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.055em;
}

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

.anniv-feature__footer {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed color-mix(in srgb, var(--accent) 16%, var(--line));
  font-size: 9.5px;
  color: var(--muted);
}

.anniv-feature__footer .icon {
  width: 12px;
  height: 12px;
  color: var(--accent);
}

.anniv-feature__footer em {
  font-style: normal;
  color: var(--ink-soft);
}

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

.anniv-card {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 13px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease-spring), border-color 0.2s, background 0.2s;
}

.anniv-card:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: var(--surface-raised);
}

.anniv-card.is-next {
  border-color: color-mix(in srgb, var(--accent) 25%, var(--line));
  background: var(--accent-wash);
}

.anniv-card.is-past {
  opacity: 0.64;
}

.anniv-card__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 13px;
  background: var(--surface-soft);
  font-size: 19px;
  transform: rotate(-2deg);
}

.anniv-card:nth-child(even) .anniv-card__icon {
  transform: rotate(2deg);
}

.anniv-card.is-next .anniv-card__icon {
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.anniv-card__copy {
  min-width: 0;
  flex: 1;
}

.anniv-card__copy h3 {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.anniv-card__copy p {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  font-size: 9px;
  letter-spacing: 0.015em;
  color: var(--muted);
}

.anniv-repeat {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: var(--faint);
}

.anniv-repeat .icon {
  width: 9px;
  height: 9px;
}

.anniv-card__when {
  flex: none;
  text-align: right;
  color: var(--muted);
}

.anniv-card__when strong {
  display: block;
  font-family: var(--font-number);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--ink-soft);
}

.anniv-card.is-next .anniv-card__when strong {
  color: var(--accent-ink);
}

.anniv-card__when span {
  display: block;
  margin-top: 1px;
  font-size: 8px;
  letter-spacing: 0.03em;
  color: var(--faint);
}

.anniv-empty {
  margin-top: 14px;
}

/* ---------- 11. Wishes ---------- */
.wish-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 17px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(150px 120px at 100% 10%, var(--butter-soft), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow-sm);
}

.wish-hero::after {
  content: "✦";
  position: absolute;
  right: 18px;
  bottom: 7px;
  color: var(--butter);
  opacity: 0.28;
  font-size: 28px;
  transform: rotate(12deg);
}

.wish-ring {
  --progress: 0;
  position: relative;
  width: 78px;
  height: 78px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--progress) * 1%), var(--surface-soft) 0);
  transform: rotate(-4deg);
}

.wish-ring::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: var(--surface);
}

.wish-ring__text {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 1px;
  color: var(--accent-ink);
}

.wish-ring__text strong {
  font-family: var(--font-number);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

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

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

.wish-hero__copy .card-label {
  color: var(--butter);
  opacity: 0.86;
}

.wish-hero__copy h2 {
  margin-top: 3px;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.45;
  color: var(--ink);
}

.wish-hero__copy p {
  margin-top: 3px;
  font-size: 9.5px;
  line-height: 1.6;
  color: var(--muted);
}

.wish-hero__copy p strong {
  font-weight: 650;
  color: var(--accent-ink);
}

.wish-filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 18px 0 11px;
  padding-bottom: 2px;
}

.wish-filters::-webkit-scrollbar {
  display: none;
}

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

.wish-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 12px 11px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: background 0.2s, border-color 0.2s, opacity 0.2s;
}

.wish-card:hover {
  border-color: var(--line-strong);
  background: var(--surface-raised);
}

.wish-card.is-done {
  background: color-mix(in srgb, var(--surface) 70%, var(--surface-soft));
  box-shadow: none;
}

.wish-check {
  width: 23px;
  height: 23px;
  flex: none;
  display: grid;
  place-items: center;
  margin-top: 1px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  color: transparent;
  background: transparent;
  transition: background 0.25s var(--ease-spring), border-color 0.25s, color 0.2s, transform 0.2s;
}

.wish-check .icon {
  width: 12px;
  height: 12px;
  stroke-width: 2.5;
}

.wish-check:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.wish-check:active {
  transform: scale(0.86);
}

.wish-card.is-done .wish-check {
  color: #fffaf3;
  border-color: var(--accent);
  background: var(--accent);
}

.wish-body {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.wish-card__top {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
}

.wish-cat {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 8px;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  background: var(--surface-soft);
}

.wish-cat--sky {
  color: var(--sky);
  background: var(--sky-soft);
}

.wish-cat--butter {
  color: var(--butter);
  background: var(--butter-soft);
}

.wish-cat--sage {
  color: var(--sage);
  background: var(--sage-soft);
}

.wish-cat--rose {
  color: var(--accent-ink);
  background: var(--accent-pale);
}

.wish-cat--clay {
  color: var(--clay);
  background: var(--clay-soft);
}

.wish-cat--lilac {
  color: var(--lilac);
  background: var(--lilac-soft);
}

.wish-owner {
  margin-left: auto;
  font-size: 8px;
  letter-spacing: 0.03em;
  color: var(--faint);
}

.wish-title {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.55;
  color: var(--ink);
  word-break: break-word;
}

.wish-card.is-done .wish-title {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: var(--faint);
  text-decoration-thickness: 1px;
}

.wish-note {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 3px;
  font-size: 9.5px;
  line-height: 1.65;
  color: var(--muted);
  word-break: break-word;
}

.wish-card.is-done .wish-note {
  opacity: 0.65;
}

.wish-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  font-size: 8.5px;
  color: var(--faint);
}

.wish-meta span {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.wish-meta .icon {
  width: 10px;
  height: 10px;
}

.wish-card.is-done .wish-meta {
  color: var(--sage);
}

.wish-empty {
  margin-top: 12px;
}

/* ---------- 12. Us / profile ---------- */
.us-profile {
  position: relative;
  padding: 19px 18px 16px;
  overflow: hidden;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 27px;
  background:
    radial-gradient(220px 170px at 50% -30%, var(--accent-pale), transparent 76%),
    var(--surface);
  box-shadow: var(--shadow-sm);
}

.us-profile::before,
.us-profile::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  border: 1px solid var(--line);
  border-radius: 50%;
  opacity: 0.7;
  pointer-events: none;
}

.us-profile::before {
  left: -44px;
  bottom: 17px;
}

.us-profile::after {
  right: -35px;
  top: 26px;
}

.us-avatars {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.us-avatar {
  position: relative;
  width: 66px;
  height: 66px;
  padding: 3px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 6px 18px rgba(70, 44, 35, 0.13);
}

.us-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

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

.us-avatar--left {
  transform: rotate(-4deg);
  z-index: 1;
}

.us-avatar--right {
  transform: rotate(4deg);
}

.us-avatars__heart {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--accent);
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(75, 45, 35, 0.12);
  transform: translate(-50%, -50%) rotate(-8deg);
}

.us-avatars__heart .icon {
  width: 11px;
  height: 11px;
}

.us-profile h2 {
  margin-top: 12px;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 650;
  letter-spacing: 0.05em;
  color: var(--ink);
}

.us-profile h2 span {
  margin: 0 4px;
  font-family: var(--font-number);
  font-size: 15px;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.us-signature {
  max-width: 270px;
  margin: 6px auto 0;
  font-family: var(--font-serif);
  font-size: 11.5px;
  font-style: italic;
  line-height: 1.8;
  color: var(--muted);
}

.us-profile__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  font-size: 9px;
  letter-spacing: 0.03em;
  color: var(--faint);
}

.us-profile__meta span {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.us-profile__meta .dot {
  width: 2.5px;
  height: 2.5px;
  border-radius: 50%;
  background: var(--faint);
}

.us-profile__edit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 13px;
  min-height: 29px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  font-size: 9.5px;
  transition: background 0.2s, color 0.2s;
}

.us-profile__edit:hover {
  color: var(--accent-ink);
  background: var(--accent-pale);
}

.us-profile__edit .icon {
  width: 11px;
  height: 11px;
}

.us-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.us-stat {
  padding: 12px 6px 11px;
  text-align: center;
}

.us-stat + .us-stat {
  border-left: 1px solid var(--line);
}

.us-stat strong {
  display: block;
  font-family: var(--font-number);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
}

.us-stat span {
  display: block;
  margin-top: 2px;
  font-size: 8.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.mood-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mood-card {
  position: relative;
  min-width: 0;
  padding: 12px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, transform 0.2s var(--ease-spring);
}

.mood-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.mood-card__head {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mood-card__head img {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  object-fit: cover;
}

.mood-card__head span {
  flex: 1;
  font-family: var(--font-serif);
  font-size: 10.5px;
  font-weight: 650;
  color: var(--ink-soft);
}

.mood-card__head .icon {
  width: 12px;
  height: 12px;
  color: var(--faint);
}

.mood-card__main {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
}

.mood-card__emoji {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--surface-soft);
  font-size: 18px;
}

.mood-card__copy {
  min-width: 0;
}

.mood-card__copy strong {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink);
}

.mood-card__copy p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 1px;
  font-size: 8.5px;
  line-height: 1.5;
  color: var(--muted);
  word-break: break-word;
}

.theme-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.theme-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 5px 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease-spring);
}

.theme-option:hover {
  transform: translateY(-2px);
}

.theme-option.is-active {
  border-color: var(--accent);
  background: var(--accent-wash);
}

.theme-swatch {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--swatch-a);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.theme-swatch::before {
  content: "";
  position: absolute;
  width: 17px;
  height: 17px;
  right: -3px;
  bottom: -2px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  background: var(--swatch-b);
}

.theme-option.is-active .theme-swatch::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid var(--accent);
  border-radius: 50%;
}

.theme-option span {
  font-size: 8.5px;
  color: var(--muted);
  white-space: nowrap;
}

.theme-option.is-active span {
  color: var(--accent-ink);
  font-weight: 600;
}

.us-menu {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.us-menu__item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  text-align: left;
  transition: background 0.2s;
}

.us-menu__item + .us-menu__item {
  border-top: 1px solid var(--line);
}

.us-menu__item:hover {
  background: var(--accent-wash);
}

.us-menu__icon {
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--accent-ink);
  background: var(--accent-pale);
}

.us-menu__item:nth-child(2) .us-menu__icon {
  color: var(--butter);
  background: var(--butter-soft);
}

.us-menu__item:nth-child(3) .us-menu__icon {
  color: var(--sky);
  background: var(--sky-soft);
}

.us-menu__item:nth-child(4) .us-menu__icon {
  color: var(--sage);
  background: var(--sage-soft);
}

.us-menu__icon .icon {
  width: 15px;
  height: 15px;
}

.us-menu__copy {
  flex: 1;
  min-width: 0;
}

.us-menu__copy strong {
  display: block;
  font-size: 11px;
  font-weight: 550;
  color: var(--ink-soft);
}

.us-menu__copy span {
  display: block;
  margin-top: 1px;
  font-size: 8.5px;
  color: var(--faint);
}

.us-menu__value {
  flex: none;
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 9.5px;
  color: var(--faint);
}

.us-menu__value .icon {
  width: 13px;
  height: 13px;
}

.us-footer {
  margin: 26px 0 6px;
  text-align: center;
}

.us-footer .wordmark {
  justify-content: center;
  font-size: 13px;
  opacity: 0.58;
}

.us-footer .wordmark::before {
  width: 4px;
  height: 4px;
  box-shadow: none;
}

.us-footer p {
  margin-top: 6px;
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.us-footer p + p {
  margin-top: 2px;
  opacity: 0.72;
}

/* ---------- 13. Album ---------- */
.album-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 25px 0 18px;
}

.album-back {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  background: var(--surface);
}

.album-back .icon {
  width: 17px;
  height: 17px;
}

.album-title {
  flex: 1;
}

.album-title h1 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 650;
  line-height: 1.2;
  color: var(--ink);
}

.album-title p {
  margin-top: 3px;
  font-size: 10px;
  color: var(--muted);
}

.album-count {
  flex: none;
  align-self: flex-start;
  margin-top: 4px;
  font-family: var(--font-number);
  font-size: 13px;
  color: var(--faint);
}

.album-intro {
  position: relative;
  margin-bottom: 16px;
  padding: 13px 15px;
  border-radius: 16px;
  border: 1px dashed var(--line-strong);
  background: var(--accent-wash);
  font-family: var(--font-serif);
  font-size: 10.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.album-intro::before {
  content: "♡";
  float: right;
  margin: -5px 0 0 8px;
  color: var(--accent-soft);
  font-size: 29px;
  line-height: 1;
}

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

.album-photo {
  display: block;
  width: 100%;
  break-inside: avoid;
  margin-bottom: 12px;
  padding: 7px 7px 9px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-raised);
  box-shadow: 0 5px 16px rgba(74, 46, 36, 0.08);
  transition: transform 0.28s var(--ease-spring), box-shadow 0.28s;
}

.album-photo:nth-child(3n + 1) {
  transform: rotate(-1.4deg);
}

.album-photo:nth-child(3n + 2) {
  transform: rotate(1.2deg);
}

.album-photo:hover {
  transform: translateY(-3px) rotate(0);
  box-shadow: 0 12px 26px rgba(74, 46, 36, 0.15);
  z-index: 1;
}

.album-photo__frame {
  overflow: hidden;
  background: var(--surface-soft);
}

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

.album-photo:nth-child(3n + 2) .album-photo__frame {
  aspect-ratio: 1;
}

.album-photo:nth-child(3n) .album-photo__frame {
  aspect-ratio: 4 / 4.6;
}

.album-photo__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease-spring);
}

.album-photo:hover .album-photo__frame img {
  transform: scale(1.035);
}

.album-photo__caption {
  padding: 7px 3px 0;
}

.album-photo__caption strong {
  display: block;
  overflow: hidden;
  font-family: var(--font-serif);
  font-size: 9.5px;
  font-weight: 550;
  line-height: 1.55;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.album-photo__caption span {
  display: block;
  margin-top: 2px;
  font-size: 7.5px;
  letter-spacing: 0.04em;
  color: var(--faint);
}

.album-empty {
  margin-top: 20px;
}

.album-footer {
  margin: 18px 0 4px;
  text-align: center;
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--faint);
}

.lightbox {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 15px calc(18px + env(safe-area-inset-bottom, 0px));
  color: #fff8ee;
  background: rgba(26, 18, 19, 0.975);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
}

.lightbox__head p {
  font-size: 9px;
  letter-spacing: 0.15em;
  color: rgba(255, 247, 236, 0.5);
}

.lightbox__close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 247, 236, 0.2);
  border-radius: 50%;
  color: #fff8ee;
  background: rgba(255, 255, 255, 0.06);
}

.lightbox__close .icon {
  width: 17px;
  height: 17px;
}

.lightbox__stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
}

.lightbox__image-wrap {
  width: min(100%, 360px);
  max-height: 100%;
  padding: 7px 7px 27px;
  background: #fffbf3;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.35);
  transform: rotate(-.8deg);
}

.lightbox__image-wrap img {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: calc(100dvh - 330px);
  object-fit: contain;
  background: #e8dbca;
}

.lightbox__nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff7eb;
  background: rgba(255, 255, 255, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.28);
  transform: translateY(-50%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.lightbox__nav .icon {
  width: 16px;
  height: 16px;
}

.lightbox__nav--prev {
  left: 0;
}

.lightbox__nav--next {
  right: 0;
}

.lightbox__caption {
  flex: none;
  max-width: 340px;
  margin: 0 auto;
  text-align: center;
}

.lightbox__caption p {
  font-family: var(--font-serif);
  font-size: 11.5px;
  line-height: 1.85;
  color: rgba(255, 247, 236, 0.82);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lightbox__caption span {
  display: block;
  margin-top: 5px;
  font-size: 8px;
  letter-spacing: 0.1em;
  color: rgba(255, 247, 236, 0.42);
}

/* ---------- 14. Sheets & forms ---------- */
.sheet-layer {
  position: absolute;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(42, 29, 28, 0.39);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: auto;
}

.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  max-height: 92%;
  overflow: hidden;
  border-radius: 26px 26px 0 0;
  background: var(--surface);
  box-shadow: 0 -20px 55px rgba(43, 27, 25, 0.18);
  transform: translateY(103%);
  transition: transform 0.42s var(--ease-spring);
  pointer-events: auto;
}

.sheet-layer.is-open .sheet-backdrop {
  opacity: 1;
}

.sheet-layer.is-open .sheet {
  transform: translateY(0);
}

.sheet:focus {
  outline: none;
}

.sheet__grab {
  flex: none;
  width: 36px;
  height: 4px;
  margin: 9px auto 0;
  border-radius: 99px;
  background: var(--line-strong);
}

.sheet__header {
  flex: none;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 20px 12px;
}

.sheet__heading {
  flex: 1;
  min-width: 0;
}

.sheet__eyebrow {
  display: block;
  margin-bottom: 3px;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.19em;
  color: var(--accent-ink);
  opacity: 0.7;
}

.sheet__title {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 650;
  line-height: 1.35;
  color: var(--ink);
}

.sheet__subtitle {
  margin-top: 3px;
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--muted);
}

.sheet__close {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  flex: none;
  border-radius: 50%;
  color: var(--muted);
  background: var(--surface-soft);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.sheet__close:hover {
  color: var(--ink);
  background: var(--accent-pale);
}

.sheet__close:active {
  transform: scale(0.9);
}

.sheet__close .icon {
  width: 15px;
  height: 15px;
}

.sheet__form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}

.sheet__body {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 20px 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.sheet__body::-webkit-scrollbar {
  width: 4px;
}

.sheet__body::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: var(--line-strong);
}

.sheet__footer {
  flex: none;
  display: flex;
  gap: 9px;
  padding: 11px 20px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.sheet__footer .btn {
  flex: 1;
}

.sheet__footer .btn--text {
  flex: none;
  width: auto;
  padding: 0 13px;
  color: var(--muted);
  background: var(--surface-soft);
}

.app.has-sheet .app-scroll {
  overflow: hidden;
}

.app.has-sheet .fab {
  opacity: 0;
  visibility: hidden;
}

.field {
  margin-bottom: 15px;
}

.field:last-child {
  margin-bottom: 2px;
}

.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.035em;
  color: var(--ink-soft);
}

.field-label em {
  font-style: normal;
  font-weight: 400;
  font-size: 8.5px;
  letter-spacing: 0;
  color: var(--faint);
}

.field-hint {
  margin-top: 5px;
  font-size: 9px;
  line-height: 1.6;
  color: var(--faint);
}

.input,
.textarea,
.select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.5;
  padding: 10px 12px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  outline: none;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--faint);
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-pale);
}

.input[type="date"] {
  color-scheme: light;
  min-height: 40px;
}

.textarea {
  min-height: 104px;
  resize: vertical;
  max-height: 220px;
  line-height: 1.8;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.author-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.author-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.author-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.author-option img {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  object-fit: cover;
}

.author-option span {
  font-size: 11px;
  color: var(--ink-soft);
}

.author-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-pale);
}

.author-option:has(input:checked) span {
  color: var(--accent-ink);
  font-weight: 600;
}

.mood-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 1px 0 3px;
}

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

.mood-choice {
  position: relative;
  flex: none;
  width: 55px;
  padding: 7px 3px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.mood-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mood-choice__emoji {
  font-size: 19px;
  line-height: 1.25;
}

.mood-choice__label {
  font-size: 8px;
  color: var(--muted);
  white-space: nowrap;
}

.mood-choice:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-pale);
}

.mood-choice:has(input:checked) .mood-choice__label {
  color: var(--accent-ink);
  font-weight: 600;
}

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

.category-choice {
  position: relative;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.category-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.category-choice .emoji {
  font-size: 12px;
}

.category-choice:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-pale);
  color: var(--accent-ink);
  font-weight: 600;
}

.icon-picker {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
}

.icon-choice {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  font-size: 19px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.icon-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.icon-choice:hover {
  transform: translateY(-1px);
}

.icon-choice:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-pale);
  box-shadow: 0 0 0 2px var(--accent-pale);
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 3px;
  border-radius: 11px;
  background: var(--surface-soft);
}

.segmented label {
  position: relative;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
}

.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented span {
  display: block;
  padding: 7px 8px;
  font-size: 10.5px;
  color: var(--muted);
  border-radius: 8px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.segmented input:checked + span {
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

.owner-choice {
  display: flex;
  gap: 5px;
}

.owner-choice label {
  position: relative;
  flex: 1;
}

.owner-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.owner-choice span {
  display: block;
  text-align: center;
  padding: 8px 5px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
  font-size: 9.5px;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.owner-choice input:checked + span {
  border-color: var(--accent);
  background: var(--accent-pale);
  color: var(--accent-ink);
  font-weight: 600;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 2px 0;
}

.switch-row__copy strong {
  display: block;
  font-size: 10.5px;
  font-weight: 550;
  color: var(--ink-soft);
}

.switch-row__copy span {
  display: block;
  margin-top: 1px;
  font-size: 8.5px;
  color: var(--faint);
}

.switch {
  position: relative;
  width: 36px;
  height: 21px;
  flex: none;
}

.switch input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
  z-index: 2;
}

.switch__track {
  position: absolute;
  inset: 0;
  border-radius: 99px;
  background: var(--surface-soft);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background 0.25s, box-shadow 0.25s;
}

.switch__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 4px rgba(60, 35, 30, 0.2);
  transition: transform 0.25s var(--ease-spring);
}

.switch input:checked + .switch__track {
  background: var(--accent);
  box-shadow: none;
}

.switch input:checked + .switch__track::after {
  transform: translateX(15px);
}

.photo-uploader {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.upload-tile {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px dashed var(--line-strong);
  border-radius: 11px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 8.5px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.upload-tile:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
  background: var(--accent-pale);
}

.upload-tile .icon {
  width: 19px;
  height: 19px;
}

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

.photo-preview {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 11px;
  background: var(--surface-soft);
}

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

.photo-preview__remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff8ef;
  background: rgba(37, 24, 22, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.photo-preview__remove .icon {
  width: 11px;
  height: 11px;
}

.photo-processing {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 9px;
  color: var(--muted);
}

.photo-processing .spinner {
  width: 11px;
  height: 11px;
}

.profile-edit-avatars {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin: 1px 0 18px;
}

.avatar-upload {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.avatar-upload__frame {
  position: relative;
  width: 72px;
  height: 72px;
  padding: 3px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 5px 16px rgba(70, 44, 35, 0.12);
}

.avatar-upload__frame img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-upload__badge {
  position: absolute;
  right: -1px;
  bottom: 0;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--surface);
  color: var(--accent-ink);
  background: var(--accent-pale);
}

.avatar-upload__badge .icon {
  width: 11px;
  height: 11px;
}

.avatar-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.avatar-upload__label {
  font-family: var(--font-serif);
  font-size: 10px;
  color: var(--muted);
}

.quick-add-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.quick-add-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-height: 117px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface-soft);
  text-align: left;
  transition: transform 0.2s var(--ease-spring), border-color 0.2s, background 0.2s;
}

.quick-add-option:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: var(--accent-wash);
}

.quick-add-option__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: var(--accent-ink);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.quick-add-option:nth-child(2) .quick-add-option__icon {
  color: var(--butter);
}

.quick-add-option:nth-child(3) .quick-add-option__icon {
  color: var(--sage);
}

.quick-add-option:nth-child(4) .quick-add-option__icon {
  color: var(--sky);
}

.quick-add-option__icon .icon {
  width: 18px;
  height: 18px;
}

.quick-add-option__copy strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
}

.quick-add-option__copy span {
  display: block;
  margin-top: 3px;
  font-size: 8.5px;
  line-height: 1.55;
  color: var(--muted);
}

.action-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}

.action-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 13px;
  text-align: left;
  transition: background 0.2s;
}

.action-row + .action-row {
  border-top: 1px solid var(--line);
}

.action-row:hover {
  background: var(--accent-wash);
}

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

.action-row span {
  flex: 1;
  font-size: 11.5px;
  color: var(--ink-soft);
}

.action-row.is-danger .icon,
.action-row.is-danger span {
  color: var(--danger);
}

.action-row__hint {
  font-size: 9px;
  color: var(--faint);
}

.sheet-note {
  margin-top: 13px;
  padding: 10px 11px;
  border-radius: 11px;
  background: var(--surface-soft);
  font-size: 9px;
  line-height: 1.75;
  color: var(--muted);
}

.sheet-note strong {
  color: var(--ink-soft);
}

.data-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.data-summary__item {
  padding: 9px 5px;
  border-radius: 11px;
  background: var(--surface-soft);
  text-align: center;
}

.data-summary__item strong {
  display: block;
  font-family: var(--font-number);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
}

.data-summary__item span {
  display: block;
  font-size: 8px;
  color: var(--faint);
}

.about-card {
  padding: 15px;
  border-radius: 16px;
  background: var(--surface-soft);
  text-align: center;
}

.about-card__logo {
  width: 57px;
  height: 57px;
  margin: 0 auto 9px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 7px 20px rgba(114, 54, 51, 0.2);
}

.about-card h3 {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 650;
  color: var(--ink);
}

.about-card p {
  margin-top: 4px;
  font-size: 9.5px;
  line-height: 1.8;
  color: var(--muted);
}

.about-card__version {
  margin-top: 9px;
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--faint);
}

.install-steps {
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.install-step {
  position: relative;
  padding: 11px 12px 11px 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  font-size: 10px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.install-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 11px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-pale);
  color: var(--accent-ink);
  font-family: var(--font-number);
  font-size: 10px;
}

.install-step strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- 15. Toast, bursts & feedback ---------- */
.toast-layer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(144px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding: 0 20px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: calc(100% - 20px);
  padding: 9px 14px;
  border-radius: 999px;
  color: #fff8f0;
  background: rgba(49, 34, 34, 0.94);
  box-shadow: 0 8px 24px rgba(44, 27, 25, 0.2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 10.5px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  animation: toast-in 0.32s var(--ease-spring) both;
}

.toast.is-leaving {
  animation: toast-out 0.25s ease both;
}

.toast .icon {
  width: 14px;
  height: 14px;
  color: #f5d09d;
  flex: none;
}

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

@keyframes toast-out {
  to { opacity: 0; transform: translateY(5px) scale(0.97); }
}

.burst-layer {
  position: absolute;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  overflow: hidden;
}

.burst-heart {
  position: absolute;
  left: var(--x);
  top: var(--y);
  font-family: var(--font-serif);
  font-size: var(--size);
  line-height: 1;
  color: var(--burst-color, var(--accent));
  opacity: 0;
  animation: burst-heart 1.15s var(--ease-spring) forwards;
  animation-delay: var(--delay, 0s);
  will-change: transform, opacity;
}

@keyframes burst-heart {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.4) rotate(0); }
  18% { opacity: 0.95; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(var(--scale, 1)) rotate(var(--rotate, 20deg)); }
}

.confetti-piece {
  position: absolute;
  left: 50%;
  top: 45%;
  width: 6px;
  height: 9px;
  border-radius: 2px;
  background: var(--confetti-color);
  opacity: 0;
  animation: confetti-fly 1s ease-out forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes confetti-fly {
  0% { opacity: 0; transform: translate(0, 0) scale(0.5) rotate(0); }
  12% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1) rotate(var(--rotate)); }
}

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--line-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.noscript-note {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #fbf6ef;
  color: #34272a;
  text-align: center;
}

/* ---------- 16. Responsive ---------- */
@media (max-width: 1120px) {
  .site {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100dvh;
    padding: 18px;
  }

  .showcase {
    display: none;
  }

  .phone-stage {
    justify-self: auto;
  }

  .phone-shell {
    height: min(872px, calc(100dvh - 36px));
  }
}

@media (max-width: 520px) {
  .site {
    display: block;
    height: 100dvh;
    padding: 0;
  }

  .phone-stage {
    width: 100%;
    height: 100dvh;
    gap: 0;
  }

  .phone-shell {
    width: 100%;
    height: 100dvh;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    background: var(--app-bg);
  }

  .app {
    border-radius: 0;
  }

  .phone-stage__hint {
    display: none;
  }

  .app-scroll {
    padding-left: 19px;
    padding-right: 19px;
    padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px));
  }

  .tabbar {
    height: calc(67px + env(safe-area-inset-bottom, 0px));
  }

  .fab {
    right: 18px;
    bottom: calc(82px + env(safe-area-inset-bottom, 0px));
    width: 52px;
    height: 52px;
  }

  .home-header {
    padding-top: max(20px, env(safe-area-inset-top, 0px));
  }

  .page-header {
    margin-top: 24px;
  }

  .love-card {
    padding: 17px 16px 16px;
  }

  .hero-person {
    width: 64px;
  }

  .hero-person__avatar {
    width: 51px;
    height: 51px;
  }

  .hero-days strong {
    font-size: clamp(49px, 15vw, 62px);
  }

  .quick-grid {
    gap: 6px;
  }

  .quick-action {
    min-height: 84px;
    border-radius: 16px;
  }

  .quick-action__icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  .sheet {
    max-height: 94%;
    border-radius: 24px 24px 0 0;
  }

  .sheet__header {
    padding-left: 18px;
    padding-right: 18px;
  }

  .sheet__body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .sheet__footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .toast-layer {
    bottom: calc(138px + env(safe-area-inset-bottom, 0px));
  }

  .lightbox {
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (max-width: 365px) {
  .app-scroll {
    padding-left: 15px;
    padding-right: 15px;
  }

  .home-greeting {
    font-size: 24px;
  }

  .hero-person {
    width: 56px;
  }

  .hero-person__avatar {
    width: 46px;
    height: 46px;
  }

  .hero-person__name {
    font-size: 10px;
  }

  .hero-days strong {
    font-size: 47px;
  }

  .hero-actions {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .hero-action {
    font-size: 10.5px;
    gap: 4px;
  }

  .quick-action__label {
    font-size: 9.5px;
  }

  .time-overview__stats {
    gap: 7px;
  }

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

@media (min-width: 1121px) and (max-height: 840px) {
  .showcase {
    padding: 8px 0;
  }

  .showcase__brand {
    margin-bottom: 26px;
  }

  .showcase h1 {
    font-size: clamp(38px, 3.8vw, 52px);
  }

  .showcase__lead {
    margin-top: 15px;
    font-size: 13px;
    line-height: 1.9;
  }

  .showcase__collage {
    height: 184px;
    margin: 21px 0 17px;
    transform: scale(0.86);
    transform-origin: left center;
    width: 115%;
  }

  .showcase__features {
    margin-bottom: 17px;
  }

  .showcase__footer {
    padding-top: 13px;
  }
}

@media (min-width: 1121px) and (max-height: 740px) {
  .showcase__collage {
    display: none;
  }

  .showcase__features {
    margin-top: 20px;
  }
}

@media (hover: none) {
  .record-card:hover,
  .upcoming-card:hover,
  .quick-action:hover,
  .wish-summary:hover,
  .anniv-card:hover,
  .wish-card:hover,
  .mood-card:hover,
  .album-photo:hover {
    transform: none;
  }
}

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

  .page.is-entering {
    animation: none;
  }
}


/* ---------- 17. Component extensions ---------- */
.recent-item__thumb--empty {
  display: grid;
  place-items: center;
  color: var(--faint);
  background: var(--surface-soft);
}

.recent-item__thumb--empty .icon {
  width: 21px;
  height: 21px;
}

.upcoming-count strong.is-today,
.anniv-feature__count strong.is-today {
  font-family: var(--font-serif);
  font-size: 18px;
  letter-spacing: 0.01em;
  line-height: 1.4;
  padding-right: 3px;
}

.anniv-card__when.is-today strong {
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.01em;
}

.anniv-card__when.is-past strong {
  color: var(--faint);
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 500;
}

.action-row__hint {
  flex: none !important;
  font-size: 8.5px !important;
  color: var(--faint) !important;
}

.record-detail__author {
  display: flex;
  align-items: center;
  gap: 9px;
}

.record-detail__author > img {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--surface);
  box-shadow: 0 3px 9px rgba(73, 45, 35, 0.12);
}

.record-detail__author > div {
  flex: 1;
  min-width: 0;
}

.record-detail__author strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 650;
  color: var(--ink);
}

.record-detail__author div span {
  display: block;
  margin-top: 1px;
  font-size: 9px;
  color: var(--faint);
}

.record-detail__author .mood-tag {
  flex: none;
}

.record-detail__text {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.95;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  white-space: pre-wrap;
  word-break: break-word;
}

.record-detail__photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  margin-top: 13px;
}

.record-detail__photos--1 {
  grid-template-columns: 1fr;
}

.record-detail__photos button {
  position: relative;
  overflow: hidden;
  border-radius: 13px;
  background: var(--surface-soft);
}

.record-detail__photos button:first-child:last-child {
  aspect-ratio: 4 / 3;
}

.record-detail__photos--2 button,
.record-detail__photos--3 button,
.record-detail__photos--4 button {
  aspect-ratio: 1;
}

.record-detail__photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--ease-spring);
}

.record-detail__photos button:hover img {
  transform: scale(1.03);
}

.record-detail__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px dashed var(--line);
  font-size: 9px;
  color: var(--muted);
}

.record-detail__meta span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.record-detail__meta .icon {
  width: 12px;
  height: 12px;
}

.record-detail__meta span:first-child .icon {
  color: var(--accent);
}

.install-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 15px;
  background: var(--surface-soft);
}

.install-hero img {
  width: 51px;
  height: 51px;
  flex: none;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(103, 52, 49, 0.18);
}

.install-hero strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 12.5px;
  color: var(--ink);
}

.install-hero span {
  display: block;
  margin-top: 3px;
  font-size: 8.5px;
  color: var(--muted);
}

.sheet > .sheet__body:last-child {
  padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
}

.app.has-lightbox .app-scroll {
  overflow: hidden;
}

@media (max-width: 520px) {
  .page-header,
  .album-header {
    margin-top: calc(24px + env(safe-area-inset-top, 0px));
  }

  .home-header {
    padding-top: max(20px, env(safe-area-inset-top, 0px));
  }
}

@media (max-width: 365px) {
  .record-detail__photos {
    grid-template-columns: 1fr;
  }

  .record-detail__photos button {
    aspect-ratio: 4 / 3;
  }

  .profile-edit-avatars {
    gap: 18px;
  }

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