:root {
  --paper: #fbf6ef;
  --paper-deep: #f4ebe0;
  --card: #fffdf9;
  --ink: #403833;
  --ink-soft: #6f635b;
  --muted: #9b8d83;
  --line: rgba(64, 56, 51, 0.09);
  --line-strong: rgba(64, 56, 51, 0.16);
  --coral: #f4846f;
  --coral-deep: #dd6752;
  --coral-soft: #fbe2dc;
  --teal: #8fc7bd;
  --teal-soft: #e3f0ec;
  --sun: #f0bd68;
  --rose: #ef9fb3;
  --lav: #b7a9d8;
  --blue: #8fb6d9;
  --shadow-sm: 0 2px 8px rgba(74, 55, 43, 0.04);
  --shadow-md: 0 10px 30px rgba(74, 55, 43, 0.08);
  --shadow-lg: 0 24px 60px rgba(74, 55, 43, 0.12);
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", "Songti SC", "Noto Serif SC", "STSong", serif;
  --nav-h: 72px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

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

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: #f5ede3;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: grid;
  place-items: center;
  overflow: hidden;
}

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

button { cursor: pointer; }

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

::selection { background: #f8cfc5; color: #3d302a; }

/* ambient desktop background */
.ambient {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1000px 700px at 15% 8%, #fdf3e5 0%, transparent 60%),
    radial-gradient(900px 700px at 88% 85%, #f3e6e5 0%, transparent 55%),
    #f5ede3;
}

.ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
}
.ambient-blob.a { width: 340px; height: 340px; left: 6vw; top: 12vh; background: #f6c5b5; }
.ambient-blob.b { width: 300px; height: 300px; right: 8vw; bottom: 10vh; background: #b9d9d0; }
.ambient-blob.c { width: 220px; height: 220px; right: 22vw; top: 4vh; background: #ecd6b4; opacity: .35; }

/* ------------------------------- phone shell ------------------------------ */
.phone {
  position: relative;
  z-index: 1;
  width: min(480px, 100vw);
  height: min(920px, 100vh);
  height: min(920px, 100dvh);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (min-width: 560px) and (min-height: 760px) {
  .phone {
    border-radius: 38px;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.7) inset;
    height: min(880px, 94dvh);
  }
}

.topbar {
  flex: 0 0 auto;
  height: 62px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(251, 246, 239, 0.96), rgba(251, 246, 239, 0.78));
  backdrop-filter: blur(12px);
  z-index: 5;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  padding: 0;
}
.brand-btn { border-radius: 12px; }
.brand-mark { display: inline-flex; filter: drop-shadow(0 3px 6px rgba(226, 120, 95, .25)); }
.brand-mark.small { filter: none; }
.brand-word {
  font-family: var(--font-serif);
  font-size: 20px;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: #4a3c34;
  transform: translateY(-1px);
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  transition: background .2s ease;
}
.icon-btn:hover { background: rgba(64, 56, 51, .06); }

.view {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px 18px calc(var(--nav-h) + 26px);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.view::-webkit-scrollbar { display: none; }
.view:focus { outline: none; }

.tabbar {
  position: relative;
  flex: 0 0 auto;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  padding: 0 12px max(6px, env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(251, 246, 239, .99) 55%, rgba(251, 246, 239, .86));
  border-top: 1px solid rgba(64, 56, 51, .06);
  backdrop-filter: blur(10px);
  z-index: 6;
}

.tab {
  height: 56px;
  border: 0;
  background: transparent;
  color: #a2948a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  letter-spacing: .08em;
  border-radius: 16px;
  transition: color .2s ease, transform .2s ease;
}
.tab svg { transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.tab.is-active { color: #d96b56; }
.tab.is-active svg { transform: translateY(-2px) scale(1.05); }
.tab:active { transform: scale(.96); }

/* ------------------------------- onboarding ------------------------------ */
.onboarding {
  position: relative;
  z-index: 1;
  width: min(480px, 100vw);
  height: min(920px, 100vh);
  height: min(920px, 100dvh);
  background:
    radial-gradient(420px 300px at 50% 8%, #fff7ee 0%, transparent 70%),
    var(--paper);
  overflow-y: auto;
  scrollbar-width: none;
}
.onboarding::-webkit-scrollbar { display: none; }
@media (min-width: 560px) and (min-height: 760px) {
  .onboarding { border-radius: 38px; box-shadow: var(--shadow-lg); height: min(880px, 94dvh); }
}

.onboarding-inner {
  min-height: 100%;
  padding: 30px 28px 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.onboarding .brand { align-self: flex-start; }

.hero-art {
  position: relative;
  width: 248px;
  height: 148px;
  margin: 30px 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.hero-blob {
  position: relative;
  width: 104px;
  height: 104px;
  border-radius: 58% 42% 52% 48% / 48% 54% 46% 52%;
  box-shadow: inset 0 -8px 18px rgba(0, 0, 0, .05), 0 16px 28px rgba(120, 77, 62, .13);
  animation: blob-float 5.5s ease-in-out infinite;
}
.hero-blob::after {
  content: "";
  position: absolute;
  left: 22%;
  top: 14%;
  width: 28%;
  height: 16%;
  border-radius: 50%;
  background: rgba(255, 255, 255, .38);
  transform: rotate(-18deg);
}
.hero-blob.blob-a { background: linear-gradient(150deg, #f9a48f, #ef7d68); z-index: 2; }
.hero-blob.blob-b { background: linear-gradient(150deg, #a7d8cf, #7db9ae); margin-left: -16px; animation-delay: -1.4s; z-index: 1; }

.blob-eye {
  position: absolute;
  top: 43%;
  width: 9px;
  height: 12px;
  border-radius: 50%;
  background: #493b35;
}
.blob-eye.left { left: 31%; }
.blob-eye.right { right: 31%; }
.blob-mouth {
  position: absolute;
  left: 50%;
  top: 58%;
  width: 22px;
  height: 12px;
  border: 2.5px solid #493b35;
  border-top: 0;
  border-radius: 0 0 22px 22px;
  transform: translateX(-50%);
}
.hero-heart {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: #fff9f2;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(180, 90, 74, .2);
  animation: heart-beat 2.8s ease-in-out infinite;
}

@keyframes blob-float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-7px) rotate(1.5deg); }
}
@keyframes heart-beat {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  45% { transform: translate(-50%, -50%) scale(1.12); }
}

.onboarding-title {
  margin: 18px 0 14px;
  font-family: var(--font-serif);
  font-size: 38px;
  line-height: 1.32;
  font-weight: 600;
  letter-spacing: .04em;
  color: #3f342e;
}

.onboarding-sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
  letter-spacing: .02em;
}

.onboarding-actions {
  width: 100%;
  margin-top: 38px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.onboarding-foot {
  margin: 24px 0 0;
  font-size: 11.5px;
  color: #b0a49a;
  letter-spacing: .06em;
}

/* -------------------------------- buttons -------------------------------- */
.btn {
  min-height: 52px;
  border-radius: 18px;
  border: 1px solid transparent;
  font-size: 15px;
  letter-spacing: .06em;
  transition: transform .18s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: scale(.985); }
.btn.primary {
  background: linear-gradient(140deg, #f6907b, #e66d57);
  color: #fffaf5;
  box-shadow: 0 10px 24px rgba(217, 105, 86, .24);
}
.btn.primary:hover { box-shadow: 0 12px 28px rgba(217, 105, 86, .3); }
.btn.ghost {
  background: rgba(255, 253, 249, .72);
  border-color: var(--line-strong);
  color: #6b5d54;
}
.text-btn {
  align-self: center;
  margin-top: 6px;
  padding: 8px 14px;
  background: none;
  border: 0;
  color: #a2948a;
  font-size: 13px;
  letter-spacing: .08em;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(162, 148, 138, .4);
}
.text-btn:hover { color: #7f7067; }

.btn.danger { color: #c75d4c; background: #fdf0ec; border-color: #f5d3ca; }
.btn.small { min-height: 42px; border-radius: 14px; font-size: 13.5px; padding: 0 18px; }

/* ------------------------------- home page ------------------------------- */
.page-enter > * {
  animation: rise .5s cubic-bezier(.2, .8, .2, 1) both;
}
.page-enter > *:nth-child(2) { animation-delay: .04s; }
.page-enter > *:nth-child(3) { animation-delay: .08s; }
.page-enter > *:nth-child(4) { animation-delay: .12s; }
.page-enter > *:nth-child(5) { animation-delay: .16s; }

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

.hero-card {
  position: relative;
  margin-top: 8px;
  padding: 22px 22px 20px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(240px 160px at 92% -10%, rgba(255, 255, 255, .65), transparent 70%),
    linear-gradient(155deg, #fbe3d8 0%, #f8d8cd 48%, #f5d7c5 100%);
  box-shadow: 0 14px 34px rgba(181, 115, 91, .14);
  overflow: hidden;
}
.hero-card::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -68px;
  bottom: -94px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .55);
}
.hero-card::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -38px;
  bottom: -64px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .4);
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  letter-spacing: .16em;
  color: #a06b5c;
}
.hero-eyebrow .tiny-date { letter-spacing: .06em; color: #b08072; }

.days-line {
  margin: 10px 0 2px;
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.days-line .num {
  font-family: var(--font-serif);
  font-size: 62px;
  line-height: 1;
  font-weight: 500;
  color: #5a3f35;
  letter-spacing: -.02em;
}
.days-line .unit {
  font-size: 14px;
  color: #8e6254;
  letter-spacing: .08em;
}
.hero-sub {
  font-size: 12.5px;
  color: #a27364;
  letter-spacing: .04em;
}

.pair-row {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pair-person {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.pair-person.right { margin-left: auto; flex-direction: row-reverse; text-align: right; }
.pair-avatar {
  width: 38px;
  height: 38px;
  border-radius: 46% 54% 52% 48% / 52% 46% 54% 48%;
  display: grid;
  place-items: center;
  color: #fffaf5;
  font-family: var(--font-serif);
  font-size: 15px;
  flex: 0 0 auto;
  box-shadow: inset 0 -4px 8px rgba(0, 0, 0, .08);
}
.pair-avatar.ghost {
  background: rgba(255, 255, 255, .5) !important;
  color: #a77968;
  border: 1px dashed rgba(150, 105, 88, .35);
  box-shadow: none;
  font-size: 17px;
}
.pair-name {
  font-size: 12.5px;
  color: #7d574a;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 82px;
}
.pair-mood { font-size: 10.5px; color: #a98070; letter-spacing: .04em; }
.pair-link {
  flex: 1 1 auto;
  height: 1px;
  margin: 0 2px;
  background-image: linear-gradient(to right, rgba(150, 105, 88, .32) 40%, transparent 0);
  background-size: 7px 1px;
  background-repeat: repeat-x;
  position: relative;
}
.pair-link::after {
  content: "♥";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 9px;
  color: #cf8d78;
  background: #f8dccf;
  padding: 0 6px;
}

.streak-pill {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 253, 249, .55);
  border: 1px solid rgba(255, 255, 255, .55);
  font-size: 11.5px;
  color: #8e6254;
  letter-spacing: .05em;
  backdrop-filter: blur(4px);
}
.streak-pill b { font-weight: 600; color: #6f4a3d; }

.nudge-banner {
  margin-top: 14px;
  padding: 13px 15px;
  border-radius: 18px;
  background: #fff3e7;
  border: 1px solid #f5ddc3;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #8a6548;
  animation: rise .4s ease both;
}
.nudge-banner .nudge-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--coral);
  box-shadow: 0 0 0 4px rgba(244, 132, 111, .16);
  flex: 0 0 auto;
}

.section-head {
  margin: 26px 2px 12px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.section-head h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .08em;
  color: #4a3c34;
}
.section-head .hint { font-size: 11.5px; color: #ac9e94; letter-spacing: .06em; }
.section-head .link {
  background: none; border: 0; font-size: 11.5px; color: #b58474; letter-spacing: .05em;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(181,132,116,.35);
}

.today-card {
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, .8);
}

.today-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px 14px;
}
.today-head .date-main { font-size: 13px; color: #6d5f56; letter-spacing: .06em; }
.today-head .date-sub { font-size: 11px; color: #ac9e94; margin-left: 8px; letter-spacing: .04em; }

.mood-panel {
  border-radius: 20px;
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: transform .2s ease, box-shadow .2s ease;
}
.mood-panel.mine {
  background: linear-gradient(145deg, #fff7f1, #fdf0e8);
  border: 1px solid #f9e3d5;
}
.mood-panel.partner {
  margin-top: 10px;
  background: linear-gradient(145deg, #f4faf8, #eef7f4);
  border: 1px solid #dfeeea;
}
.mood-panel.empty {
  background: #fdfaf5;
  border: 1px dashed rgba(160, 140, 124, .35);
  align-items: center;
  cursor: pointer;
}
.mood-panel.empty:hover { background: #fffdf9; box-shadow: var(--shadow-sm); }

.face-wrap {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  box-shadow: 0 4px 10px rgba(80, 60, 50, .06);
}
.face-wrap.small { width: 42px; height: 42px; }

.mood-main { flex: 1 1 auto; min-width: 0; }
.mood-label-row { display: flex; align-items: baseline; gap: 8px; }
.mood-label { font-size: 16px; font-weight: 600; letter-spacing: .06em; color: #4a3a33; }
.mood-time { font-size: 10.5px; color: #b0a196; letter-spacing: .04em; }
.mood-note {
  margin: 5px 0 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: #7b6a60;
  white-space: pre-wrap;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mood-tags { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 5px; }
.mood-tag {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(120, 95, 80, .08);
  font-size: 10.5px;
  color: #97867b;
}

.empty-copy { flex: 1 1 auto; }
.empty-copy b { display: block; font-size: 14px; font-weight: 600; color: #6b5a50; letter-spacing: .04em; }
.empty-copy span { display: block; margin-top: 4px; font-size: 11.5px; color: #a99a90; line-height: 1.6; }
.plus-circle {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: #f4a08c; color: #fff9f3;
  font-size: 22px; font-weight: 300;
  box-shadow: 0 8px 16px rgba(217, 105, 86, .22);
  flex: 0 0 auto;
}

.partner-empty {
  display: flex;
  align-items: center;
  gap: 10px;
}
.partner-empty .face-wrap { background: rgba(255, 255, 255, .6); }
.nudge-btn {
  border: 1px solid #d9e8e3;
  background: #fff;
  color: #75978d;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 11.5px;
  white-space: nowrap;
  transition: transform .15s ease, background .2s ease;
}
.nudge-btn:active { transform: scale(.95); }
.nudge-btn:hover { background: #f4faf8; }

.match-line {
  margin: 12px 4px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 11.5px;
  color: #a68c7d;
  letter-spacing: .05em;
}
.match-line .dash { width: 18px; height: 1px; background: #decfc4; }

/* recent timeline */
.recent-list { display: flex; flex-direction: column; gap: 10px; }
.recent-item {
  display: flex;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 18px;
  background: rgba(255, 253, 249, .78);
  border: 1px solid rgba(255, 255, 255, .7);
}
.recent-date {
  flex: 0 0 46px;
  text-align: center;
  padding-top: 2px;
}
.recent-date .d { font-family: var(--font-serif); font-size: 22px; line-height: 1.1; color: #5f4e44; }
.recent-date .m { font-size: 9.5px; color: #ad9d92; letter-spacing: .08em; margin-top: 2px; }
.recent-body { flex: 1 1 auto; min-width: 0; }
.recent-pair { display: flex; gap: 6px; align-items: center; margin-bottom: 5px; }
.mini-face { display: inline-flex; }
.recent-who { font-size: 11px; color: #a08f84; letter-spacing: .04em; }
.recent-note {
  font-size: 12.5px;
  line-height: 1.65;
  color: #77665b;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}
.recent-note.muted { color: #b0a198; font-style: normal; }

/* empty state */
.empty-block {
  padding: 30px 20px;
  text-align: center;
  color: #a99a90;
}
.empty-block .big-face { margin: 0 auto 12px; width: 64px; height: 64px; display: grid; place-items: center; background: #fff; border-radius: 50%; box-shadow: var(--shadow-sm); }
.empty-block b { display: block; color: #6f5e54; font-size: 14px; font-weight: 600; letter-spacing: .05em; }
.empty-block span { display: block; margin-top: 6px; font-size: 12px; line-height: 1.7; }

/* -------------------------------- calendar ------------------------------- */
.cal-head {
  margin: 10px 2px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cal-title { font-family: var(--font-serif); font-size: 24px; letter-spacing: .04em; color: #4a3c34; }
.cal-title small { font-family: var(--font-sans); font-size: 11px; color: #ac9e94; letter-spacing: .08em; margin-left: 6px; }
.cal-nav { display: flex; gap: 4px; }
.cal-nav button {
  width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 253, 249, .8);
  color: #8a7a70; display: grid; place-items: center;
}
.cal-nav button:hover { background: #fff; }

.cal-card {
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 14px 12px 16px;
  box-shadow: var(--shadow-sm);
}
.week-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 2px 0 8px;
}
.week-row span {
  text-align: center;
  font-size: 10.5px;
  color: #b1a298;
  letter-spacing: .08em;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 4px;
}
.cal-cell {
  position: relative;
  aspect-ratio: 1 / 1.12;
  border: 0;
  background: transparent;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #6d5d53;
  font-size: 13px;
  transition: background .2s ease;
}
.cal-cell:hover { background: #fdf6ee; }
.cal-cell.is-muted { color: #d5c9c0; }
.cal-cell.is-future { color: #d9cec5; cursor: default; }
.cal-cell.is-today { box-shadow: inset 0 0 0 1.5px #f0a18e; }
.cal-cell .dots { height: 6px; display: flex; gap: 3px; }
.cal-cell .dot { width: 5px; height: 5px; border-radius: 50%; }
.cal-cell .dot.none { background: #eee4da; }
.cal-cell.is-selected { background: #f8e8e1; }

.cal-legend {
  margin: 14px 6px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}
.legend-item { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; color: #a3948a; letter-spacing: .03em; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; }

/* day detail */
.day-detail-date {
  font-family: var(--font-serif);
  font-size: 25px;
  letter-spacing: .04em;
  color: #4a3c34;
  margin: 2px 0 4px;
}
.day-detail-sub { font-size: 11.5px; color: #a99a90; letter-spacing: .06em; }
.day-rows { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.day-row {
  border-radius: 18px;
  padding: 14px;
  background: #fdf8f2;
  border: 1px solid #f4e8dd;
}
.day-row.partner { background: #f3f9f7; border-color: #e1efeb; }
.day-row-head { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.day-row-head .who { font-size: 12.5px; color: #6e5d53; font-weight: 600; letter-spacing: .04em; }
.day-row-head .when { margin-left: auto; font-size: 10.5px; color: #b3a49a; }
.day-row-note { font-size: 12.5px; line-height: 1.75; color: #7a695f; white-space: pre-wrap; word-break: break-word; }
.day-row-empty { font-size: 12px; color: #b3a49a; }
.day-actions { margin-top: 18px; display: flex; gap: 9px; }
.day-actions .btn { flex: 1; }

/* ---------------------------------- us ---------------------------------- */
.us-hero {
  margin-top: 8px;
  padding: 26px 20px 22px;
  border-radius: var(--r-lg);
  background: linear-gradient(155deg, #fdf2e9, #f8e6dc);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.us-hero::after {
  content: "";
  position: absolute;
  width: 150px; height: 150px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.6);
  right: -56px; top: -56px;
}
.us-pair { display: flex; justify-content: center; align-items: center; gap: 18px; }
.us-person { width: 82px; }
.us-avatar {
  width: 66px; height: 66px; margin: 0 auto 8px;
  border-radius: 52% 48% 46% 54% / 50% 52% 48% 50%;
  display: grid; place-items: center;
  color: #fffaf5; font-family: var(--font-serif); font-size: 24px;
  box-shadow: inset 0 -6px 12px rgba(0,0,0,.07), 0 10px 20px rgba(140, 90, 70, .12);
}
.us-name { font-size: 12.5px; color: #7a5c4e; letter-spacing: .05em; }
.us-heart { color: #de8d7a; font-size: 15px; transform: translateY(-12px); }
.us-since { margin-top: 16px; font-size: 11.5px; color: #a98070; letter-spacing: .1em; }
.us-since b { font-family: var(--font-serif); font-size: 20px; color: #6f4a3d; margin: 0 4px; }

.invite-card {
  margin-top: 16px;
  background: var(--card);
  border-radius: 22px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}
.invite-info { flex: 1 1 auto; }
.invite-label { font-size: 10.5px; color: #ac9e94; letter-spacing: .14em; }
.invite-code {
  margin-top: 4px;
  font-family: "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
  font-size: 23px;
  letter-spacing: .24em;
  color: #5d463b;
}
.invite-copy {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: #fff;
  display: grid; place-items: center; color: #8a776b;
}
.invite-hint { margin: 8px 4px 0; font-size: 11px; color: #ae9f95; line-height: 1.7; }

.stat-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.stat-card {
  background: var(--card);
  border-radius: 20px;
  padding: 15px 16px;
  box-shadow: var(--shadow-sm);
}
.stat-card .k { font-size: 10.5px; color: #aa9b91; letter-spacing: .09em; }
.stat-card .v { margin-top: 6px; font-family: var(--font-serif); font-size: 25px; color: #58463c; }
.stat-card .v small { font-family: var(--font-sans); font-size: 11px; color: #a99a90; margin-left: 3px; }

.mood-bars { margin-top: 6px; display: flex; flex-direction: column; gap: 9px; }
.mood-bar-row { display: grid; grid-template-columns: 44px 1fr 26px; align-items: center; gap: 9px; }
.mood-bar-name { font-size: 11.5px; color: #8b7a6f; letter-spacing: .04em; }
.mood-bar-track { height: 8px; border-radius: 999px; background: #f3ece4; overflow: hidden; }
.mood-bar-fill { height: 100%; border-radius: 999px; min-width: 3px; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.mood-bar-count { font-size: 10.5px; color: #b0a197; text-align: right; }

.settings-list {
  margin-top: 14px;
  background: var(--card);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.settings-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 17px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  font-size: 13.5px;
  color: #6b5a50;
  letter-spacing: .03em;
}
.settings-row:last-child { border-bottom: 0; }
.settings-row:hover { background: #fdf8f2; }
.settings-row .chev { margin-left: auto; color: #c1b3a9; font-size: 16px; }
.settings-row .row-sub { margin-left: auto; font-size: 11.5px; color: #b0a197; }
.settings-row.danger { color: #c16250; }

.footer-note {
  margin: 22px 6px 6px;
  text-align: center;
  font-size: 10.5px;
  color: #b9aca2;
  letter-spacing: .08em;
  line-height: 1.8;
}

/* ------------------------------ pet & question --------------------------- */

.pet-strip {
  width: 100%;
  margin-top: 14px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 22px;
  border: 1px solid #e4efe9;
  background: linear-gradient(145deg, #f3faf7, #eaf6f1);
  text-align: left;
  transition: transform .18s ease, box-shadow .2s ease;
}
.pet-strip:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.pet-strip-art { flex: 0 0 auto; display: flex; align-items: flex-end; height: 54px; }
.pet-strip-copy { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pet-strip-name { font-size: 13.5px; color: #4f625b; font-weight: 600; letter-spacing: .04em; }
.pet-strip-name small { font-weight: 400; font-size: 10px; color: #93a9a1; margin-left: 4px; }
.pet-strip-line { font-size: 11px; color: #8fa49c; line-height: 1.5; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pet-strip-go { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 2px; font-size: 10.5px; color: #9bb0a8; }

.question-card {
  margin-top: 14px;
  padding: 18px;
  border-radius: 24px;
  background:
    radial-gradient(180px 120px at 100% 0%, rgba(255,255,255,.8), transparent 70%),
    linear-gradient(150deg, #f7f1e8, #f3e8de);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: var(--shadow-sm);
}
.question-top { display: flex; align-items: center; justify-content: space-between; }
.question-kicker { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; letter-spacing: .12em; color: #ad8c75; }
.question-kicker svg { color: #d8a25d; }
.question-date { font-size: 10px; color: #b7a494; letter-spacing: .08em; }
.question-card h3 {
  margin: 10px 0 12px;
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 600;
  letter-spacing: .03em;
  color: #57453a;
}
.q-answer { display: flex; gap: 8px; margin-top: 8px; }
.q-who {
  flex: 0 0 auto;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: #e9f1ee;
  color: #7c948b;
  font-size: 9.5px;
  line-height: 20px;
  letter-spacing: .04em;
}
.q-who.me { background: #f8e3db; color: #b77c68; }
.q-answer p { margin: 0; font-size: 12.5px; line-height: 1.7; color: #7a665a; white-space: pre-wrap; word-break: break-word; }
.q-wait { margin-top: 9px; font-size: 11px; color: #b0a094; }
.q-hint { margin: 0 0 4px; font-size: 11.5px; line-height: 1.7; color: #a08d7e; }
.q-btn { width: 100%; min-height: 44px; margin-top: 12px; font-size: 13.5px; border-radius: 14px; }
.q-btn small { font-size: 10px; opacity: .8; margin-left: 4px; }
.q-edit {
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 10.5px;
  color: #b18a76;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.q-sheet-question {
  margin: 2px 0 16px;
  padding: 15px 16px;
  border-radius: 18px;
  background: #f7efe5;
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.65;
  color: #5a463a;
}

/* --------------------------------- room ---------------------------------- */

.room-head { margin: 10px 2px 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.room-kicker { font-size: 10.5px; letter-spacing: .18em; color: #b09a89; }
.room-title { margin: 5px 0 0; font-family: var(--font-serif); font-size: 24px; font-weight: 600; letter-spacing: .03em; color: #4d3d33; line-height: 1.35; }
.coin-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #fff9ef;
  border: 1px solid #f0dfc2;
  color: #a97838;
  font-size: 12px;
  flex: 0 0 auto;
}
.coin-pill b { font-family: var(--font-serif); font-size: 16px; font-weight: 600; }

.checkin-chip {
  margin-top: 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid #f0ddc4;
  background: #fff5e8;
  color: #a77b4f;
  font-size: 10.5px;
  letter-spacing: .03em;
}
.checkin-chip.is-done { background: #f6f0e8; border-color: #ece3d7; color: #b7a99c; }
.checkin-chip:disabled { cursor: default; }

.room-scene {
  --wall-top: #f8ecdc;
  --wall-bottom: #efdbc4;
  --floor: #e2c3a5;
  --window: linear-gradient(160deg, #c9e0e5, #a9cbd6);
  position: relative;
  height: 310px;
  margin-top: 14px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(170deg, var(--wall-top), var(--wall-bottom));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), 0 14px 30px rgba(110, 80, 60, .10);
}
.room-scene.theme-dusk {
  --wall-top: #ddc0b6;
  --wall-bottom: #c9a29c;
  --floor: #9e7c70;
  --window: linear-gradient(160deg, #5d5b7c, #80708b);
}
.room-scene.theme-mint {
  --wall-top: #e3f0e9;
  --wall-bottom: #cae2d8;
  --floor: #aecbbf;
  --window: linear-gradient(160deg, #bfe0e1, #9bc8ce);
}
.room-scene::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 34%;
  background: var(--floor);
  background: linear-gradient(to bottom, var(--floor), color-mix(in srgb, var(--floor) 82%, #6b4c3a));
  border-top: 2px solid rgba(255,255,255,.32);
  z-index: 1;
}
.room-scene::before {
  content: "";
  position: absolute;
  left: -20px; right: -20px; bottom: 30%;
  height: 26px;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.22), transparent 70%);
  z-index: 1;
}

.room-window {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 106px;
  height: 82px;
  border-radius: 14px;
  background: var(--window);
  border: 5px solid rgba(255, 250, 242, .78);
  box-shadow: 0 6px 16px rgba(80, 60, 50, .12), inset 0 0 0 1px rgba(255,255,255,.4);
  z-index: 0;
  overflow: hidden;
}
.room-window::after {
  content: "";
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 4px;
  background: rgba(255, 250, 242, .7);
  transform: translateX(-50%);
}
.room-window .moon {
  position: absolute;
  right: 16px; top: 13px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff4cf;
  box-shadow: 0 0 14px rgba(255, 238, 190, .8);
}
.room-window .star { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fffdf4; opacity: .9; }
.room-window .star.s1 { left: 18px; top: 20px; }
.room-window .star.s2 { left: 36px; top: 42px; width: 2px; height: 2px; }
.room-window .star.s3 { right: 40px; bottom: 16px; width: 2px; height: 2px; }

.room-item { position: absolute; z-index: 2; }
.room-item svg { display: block; width: 100%; height: auto; }
.room-item.garland { left: 18px; right: 18px; top: 4px; width: auto; height: 52px; z-index: 3; }
.room-item.garland svg { width: 100%; height: 52px; }
.room-item.shelf { right: 15px; top: auto; bottom: 108px; width: 76px; }
.room-item.lamp { left: 13px; top: auto; bottom: 108px; width: 60px; }
.room-item.record { left: 22px; bottom: 70px; width: 56px; }
.room-item.plant { left: 12px; bottom: 12px; width: 64px; }
.room-item.rug { left: 50%; bottom: 4px; width: 196px; transform: translateX(-50%); z-index: 2; }
.room-item.sofa { right: 7px; bottom: 10px; width: 104px; }

.pet-stage {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  width: 146px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pet-stage .pet-svg { position: relative; z-index: 2; filter: drop-shadow(0 10px 14px rgba(70, 55, 45, .12)); animation: pet-bob 3.6s ease-in-out infinite; }
.pet-bubble {
  position: absolute;
  bottom: 112px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 190px;
  padding: 8px 11px;
  border-radius: 13px;
  background: rgba(255, 253, 249, .94);
  color: #7d6a5e;
  font-size: 10.5px;
  line-height: 1.55;
  text-align: center;
  box-shadow: 0 6px 16px rgba(80, 60, 50, .1);
  z-index: 3;
}
.pet-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 10px; height: 10px;
  background: rgba(255, 253, 249, .94);
  transform: translateX(-50%) rotate(45deg);
  border-radius: 2px;
}
@keyframes pet-bob {
  0%, 100% { transform: translateY(0) rotate(-.6deg); }
  50% { transform: translateY(-5px) rotate(.8deg); }
}

.pet-svg .pet-tail {
  transform-box: view-box;
  transform-origin: 125px 126px;
  animation: pet-tail-wag 2.6s ease-in-out infinite;
}
.pet-svg .pet-body {
  transform-box: view-box;
  transform-origin: 90px 130px;
  animation: pet-breathe 3.8s ease-in-out infinite;
}
.pet-svg .pet-head {
  transform-box: view-box;
  transform-origin: 90px 112px;
  animation: pet-head-tilt 5.4s ease-in-out infinite;
}
.pet-svg .pet-ear.left {
  transform-box: view-box;
  transform-origin: 55px 64px;
  animation: pet-ear-left 5s ease-in-out infinite;
}
.pet-svg .pet-ear.right {
  transform-box: view-box;
  transform-origin: 125px 64px;
  animation: pet-ear-right 5s ease-in-out infinite .18s;
}
.pet-svg .pet-eyes {
  transform-box: fill-box;
  transform-origin: center;
  animation: pet-blink 6.2s ease-in-out infinite;
}
.pet-happy .pet-tail { animation-duration: 1.05s; }
.pet-happy .pet-head { animation-duration: 3.8s; }
.pet-worried .pet-tail { animation-duration: 4.4s; }
.pet-worried .pet-head { animation-duration: 7s; }
.pet-hungry .pet-head { animation-duration: 3.4s; }
.pet-waiting .pet-head { animation-duration: 6.4s; }

@keyframes pet-tail-wag {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(9deg); }
}
@keyframes pet-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.018, .992); }
}
@keyframes pet-head-tilt {
  0%, 100% { transform: rotate(-1.1deg); }
  50% { transform: rotate(1.4deg); }
}
@keyframes pet-ear-left {
  0%, 100% { transform: rotate(0); }
  46% { transform: rotate(-4.5deg); }
  54% { transform: rotate(1.5deg); }
}
@keyframes pet-ear-right {
  0%, 100% { transform: rotate(0); }
  46% { transform: rotate(4.5deg); }
  54% { transform: rotate(-1.5deg); }
}
@keyframes pet-blink {
  0%, 91%, 100% { transform: scaleY(1); }
  94% { transform: scaleY(.1); }
}

.pet-console {
  margin-top: 14px;
  padding: 16px;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: var(--shadow-sm);
}
.pet-console-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pet-name-line { display: flex; align-items: baseline; gap: 7px; }
.pet-name-line b { font-family: var(--font-serif); font-size: 19px; font-weight: 600; color: #4e3f36; letter-spacing: .04em; }
.pet-name-line span { font-size: 9.5px; color: #9aa9a2; background: #edf5f1; padding: 3px 7px; border-radius: 999px; }
.mini-link { border: 0; background: none; padding: 0; font-size: 10.5px; color: #b18a76; text-decoration: underline; text-underline-offset: 3px; }

.meter-row {
  display: grid;
  grid-template-columns: 32px 1fr 38px;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 10px;
  color: #a29388;
}
.meter-row b { text-align: right; font-weight: 500; color: #97867b; font-size: 10px; }
.meter { height: 7px; border-radius: 999px; background: #f3ece4; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 999px; transition: width .5s cubic-bezier(.2,.8,.2,1); }

.pet-actions { margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pet-actions button {
  border: 1px solid #efe3d7;
  background: linear-gradient(145deg, #fffaf4, #fdf2e8);
  border-radius: 14px;
  padding: 9px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: transform .15s ease, box-shadow .2s ease;
}
.pet-actions button:hover { box-shadow: var(--shadow-sm); }
.pet-actions button:active { transform: scale(.97); }
.pet-actions button:disabled { opacity: .45; cursor: default; }
.pet-actions b { font-size: 12px; color: #6d5748; font-weight: 600; letter-spacing: .03em; }
.pet-actions small { font-size: 9px; color: #b4a397; }

.theme-row { display: flex; gap: 8px; }
.theme-chip {
  flex: 1;
  height: 42px;
  border-radius: 14px;
  border: 1px solid #ece1d6;
  background: #fffdf9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11.5px;
  color: #8d7b6f;
}
.theme-chip.is-on { border-color: #e0b9a5; background: #fdf1e8; color: #a56c55; box-shadow: 0 0 0 2px rgba(224, 179, 158, .14); }
.theme-swatch { width: 13px; height: 13px; border-radius: 50%; background: var(--swatch); border: 1px solid rgba(90,70,55,.12); }

.shop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.shop-card {
  padding: 10px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: var(--shadow-sm);
}
.shop-card.is-owned { background: #fdfaf4; }
.shop-preview {
  height: 84px;
  border-radius: 13px;
  background: linear-gradient(155deg, #f8eee2, #f2e3d2);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.shop-preview svg { width: 72px; height: 72px; }
.shop-name { margin-top: 8px; font-size: 12px; font-weight: 600; color: #6b5749; letter-spacing: .03em; }
.shop-desc { margin-top: 2px; font-size: 9.5px; color: #b1a094; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-btn {
  width: 100%;
  height: 31px;
  margin-top: 8px;
  border-radius: 10px;
  border: 1px solid #ecdccb;
  background: #fff9f1;
  color: #a97b50;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.shop-btn.buy:disabled { opacity: .4; cursor: default; }
.shop-btn.is-placed { background: #f1f8f5; border-color: #d9e9e2; color: #7d9b90; }

/* --------------------------------- our extras ---------------------------- */

.weekly-card {
  margin-top: 14px;
  padding: 15px 16px;
  border-radius: 22px;
  background: linear-gradient(150deg, #f7f2e8, #f2e8db);
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: var(--shadow-sm);
}
.weekly-head { display: flex; align-items: center; justify-content: space-between; font-size: 10.5px; color: #a7917d; letter-spacing: .1em; }
.weekly-top { display: inline-flex; align-items: center; gap: 4px; color: #9b7d66; }
.weekly-grid { margin-top: 12px; display: grid; grid-template-columns: repeat(3, 1fr); }
.weekly-grid div { display: flex; flex-direction: column; align-items: center; gap: 2px; border-right: 1px solid rgba(120, 90, 70, .1); }
.weekly-grid div:last-child { border-right: 0; }
.weekly-grid b { font-family: var(--font-serif); font-size: 25px; font-weight: 500; color: #5d4638; line-height: 1.1; }
.weekly-grid span { font-size: 9.5px; color: #a99380; letter-spacing: .06em; }
.week-timeline {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(120, 90, 70, .12);
}
.week-day { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.week-date { font-size: 8.5px; color: #b6a391; letter-spacing: .04em; }
.week-dots { display: flex; gap: 3px; }
.week-dots i { display: block; width: 6px; height: 6px; border-radius: 50%; }
.week-legend { display: flex; justify-content: center; gap: 12px; margin-top: 8px; font-size: 8.5px; color: #b09c8a; }
.week-legend span { display: inline-flex; align-items: center; gap: 4px; }
.week-legend i { width: 5px; height: 5px; border-radius: 50%; }
.week-legend i.me { background: #e58f7c; }
.week-legend i.ta { background: #8fc7bd; }
.weekly-note { margin-top: 10px; font-size: 10.5px; color: #a08b79; line-height: 1.6; text-align: center; }

.wish-list { display: flex; flex-direction: column; gap: 8px; }
.wish-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: var(--shadow-sm);
}
.wish-check {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid #dfd0c3;
  background: #fffdf9;
  color: #fff;
  display: grid;
  place-items: center;
  padding: 0;
}
.wish-check svg { width: 12px; height: 12px; }
.wish-item.is-done .wish-check { background: #8fbfae; border-color: #8fbfae; }
.wish-body { flex: 1 1 auto; min-width: 0; }
.wish-text { font-size: 12.5px; color: #6d5a4e; line-height: 1.5; word-break: break-word; }
.wish-item.is-done .wish-text { color: #b2a397; text-decoration: line-through; text-decoration-color: #d8c9bd; }
.wish-meta { margin-top: 2px; font-size: 9.5px; color: #b3a297; }
.wish-del { flex: 0 0 auto; border: 0; background: none; color: #c9b7aa; padding: 4px; }
.wish-empty { padding: 18px; border-radius: 16px; background: #fdf9f3; border: 1px dashed #e7d9cb; font-size: 11.5px; color: #ad9c8e; text-align: center; line-height: 1.7; }

.history-list { display: flex; flex-direction: column; gap: 9px; }
.history-item { padding: 13px 14px; border-radius: 18px; background: var(--card); border: 1px solid rgba(255,255,255,.8); box-shadow: var(--shadow-sm); }
.history-date { font-size: 9.5px; color: #b3a297; letter-spacing: .08em; }
.history-q { margin-top: 4px; font-family: var(--font-serif); font-size: 14px; line-height: 1.55; color: #6a5446; }
.history-a { margin-top: 7px; font-size: 11px; line-height: 1.65; color: #8a7668; display: flex; gap: 6px; }
.history-a span { flex: 0 0 auto; color: #b58b76; font-size: 9.5px; padding-top: 1px; }
.history-a.partner { color: #789187; }
.history-a.partner span { color: #7f9f93; }

/* --------------------------------- sheet --------------------------------- */
.sheet-wrap {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(58, 44, 37, .38);
  backdrop-filter: blur(3px);
  animation: fade .25s ease both;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.sheet {
  position: relative;
  width: min(480px, 100vw);
  max-height: 92dvh;
  overflow-y: auto;
  background: var(--paper);
  border-radius: 30px 30px 0 0;
  padding: 10px 20px calc(22px + env(safe-area-inset-bottom));
  box-shadow: 0 -20px 60px rgba(58, 44, 37, .18);
  animation: sheet-up .34s cubic-bezier(.2, .85, .25, 1) both;
  scrollbar-width: none;
}
.sheet::-webkit-scrollbar { display: none; }
@keyframes sheet-up { from { transform: translateY(40px); opacity: .5; } to { transform: translateY(0); opacity: 1; } }

@media (min-width: 560px) and (min-height: 760px) {
  .sheet-wrap { align-items: center; }
  .sheet { border-radius: 30px; max-height: 88dvh; }
}

.sheet-grab {
  width: 38px; height: 4px; border-radius: 999px;
  background: #ded1c5;
  margin: 0 auto 14px;
}

.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.sheet-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .05em;
  color: #453830;
}
.sheet-sub { margin: 6px 0 0; font-size: 11.5px; color: #a99a90; line-height: 1.7; letter-spacing: .02em; }
.sheet-close {
  width: 32px; height: 32px; flex: 0 0 auto;
  border: 0; border-radius: 50%; background: #f1e8de; color: #8a776b;
  display: grid; place-items: center; font-size: 18px;
}

.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 11px;
  color: #9f9086;
  letter-spacing: .1em;
  margin: 0 2px 7px;
}
.field input[type="text"],
.field input[type="date"],
.field textarea {
  width: 100%;
  border: 1px solid #e9ded2;
  background: #fffdf9;
  border-radius: 14px;
  padding: 13px 14px;
  font-size: 14px;
  color: #4a3c34;
  letter-spacing: .02em;
  transition: border .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 98px; resize: vertical; line-height: 1.7; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: #efb2a3;
  box-shadow: 0 0 0 3px rgba(244, 132, 111, .11);
}
.field-row { display: flex; gap: 10px; }
.field-row .field { flex: 1; }
.counter { text-align: right; font-size: 10px; color: #b9aba1; margin-top: 4px; }

.mood-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.mood-opt {
  border: 1px solid #ece1d6;
  background: #fffdf9;
  border-radius: 16px;
  padding: 10px 6px 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.mood-opt:hover { background: #fff8f2; }
.mood-opt:active { transform: scale(.97); }
.mood-opt.is-selected {
  border-color: var(--mood-color, #f4846f);
  background: var(--mood-soft, #fdeee9);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--mood-color, #f4846f) 18%, transparent);
}
.mood-opt .mood-name { font-size: 12px; color: #77655a; letter-spacing: .06em; }
.mood-opt.is-selected .mood-name { color: #4f3d34; font-weight: 600; }

.intensity { display: flex; gap: 7px; }
.intensity button {
  flex: 1;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #ece1d6;
  background: #fffdf9;
  color: #c1b2a8;
  font-size: 11px;
  transition: all .18s ease;
}
.intensity button.is-on { background: #f9e5dd; border-color: #f3c4b7; color: #c87560; }
.intensity-labels { display: flex; justify-content: space-between; margin-top: 5px; font-size: 9.5px; color: #b9aba1; }

.tag-row { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-chip {
  border: 1px solid #ece1d6;
  background: #fffdf9;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 11.5px;
  color: #8d7b6f;
  transition: all .18s ease;
}
.tag-chip.is-on { background: #fbe9e2; border-color: #f2c4b6; color: #b96b55; }

.sheet-actions { margin-top: 20px; display: flex; flex-direction: column; gap: 9px; }
.sheet-actions .btn { width: 100%; }
.sheet-delete {
  align-self: center;
  margin-top: 2px;
  border: 0; background: none; color: #bb8d7f;
  font-size: 11px; letter-spacing: .06em;
  text-decoration: underline; text-underline-offset: 3px;
}

/* invite success */
.invite-big {
  margin: 6px 0 16px;
  padding: 20px;
  border-radius: 18px;
  background: #fffdf9;
  border: 1px dashed #e7cfc2;
  text-align: center;
}
.invite-big .code {
  font-family: "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
  font-size: 32px;
  letter-spacing: .3em;
  color: #5c4438;
  padding-left: .3em;
}
.invite-big .tip { margin-top: 8px; font-size: 11px; color: #ac9c91; letter-spacing: .04em; }
.share-actions { display: flex; gap: 9px; }
.share-actions .btn { flex: 1; }

/* --------------------------------- toast --------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(86px + env(safe-area-inset-bottom));
  transform: translate(-50%, 16px);
  background: rgba(64, 50, 43, .92);
  color: #fff7ef;
  font-size: 12.5px;
  letter-spacing: .04em;
  padding: 11px 18px;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(50, 35, 28, .22);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  z-index: 80;
  max-width: 84vw;
  text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* --------------------------------- misc ---------------------------------- */
.skeleton {
  border-radius: 18px;
  background: linear-gradient(100deg, #f4ece3 25%, #faf4ec 37%, #f4ece3 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s infinite linear;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

.loading-wrap { padding: 18px 0; display: flex; flex-direction: column; gap: 12px; }

.error-box {
  margin-top: 20px;
  padding: 18px;
  border-radius: 18px;
  background: #fdf2ed;
  border: 1px solid #f4d8cf;
  color: #9b6453;
  font-size: 12.5px;
  line-height: 1.7;
  text-align: center;
}

.no-select { user-select: none; -webkit-user-select: none; }

.form-error {
  margin: 2px 2px 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fdf0ea;
  border: 1px solid #f4d5c9;
  color: #b2604d;
  font-size: 11.5px;
  line-height: 1.6;
}

.mini-face { display: inline-flex; line-height: 0; }
.section-head .hint { display: inline-flex; align-items: center; gap: 4px; }
.section-head .hint svg { opacity: .8; }

/* ------------------------------ meals & pokes ---------------------------- */
.poke-strip {
  width: 100%;
  margin: 12px 0 2px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-radius: 19px;
  border: 1px solid rgba(232, 197, 180, .55);
  background: linear-gradient(120deg, #fff8f2, #fcefe9);
  box-shadow: 0 6px 18px rgba(150, 105, 80, .06);
  text-align: left;
  color: #4e3f36;
}
.poke-strip-icon {
  width: 36px; height: 36px;
  flex: 0 0 36px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: #fbe3da;
  color: #d77d65;
}
.poke-strip-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.poke-strip-copy b { font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.poke-strip-copy span { font-size: 10px; color: #a38d80; }
.poke-strip-go { color: #c4a797; display: flex; }

.meal-card {
  margin: 0 0 16px;
  padding: 15px 16px;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: var(--shadow-sm);
}
.meal-group { display: flex; flex-direction: column; gap: 2px; }
.meal-group-head { display: flex; align-items: center; gap: 9px; }
.meal-avatar {
  width: 30px; height: 30px;
  flex: 0 0 30px;
  display: grid; place-items: center;
  border-radius: 10px;
  color: #fffaf4;
  font-size: 12px;
  font-weight: 600;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.25);
}
.meal-group-name { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.meal-group-name b { font-size: 13px; font-weight: 600; color: #4e3f36; }
.meal-group-name span { font-size: 9.5px; color: #a99a90; }
.meal-list { margin-top: 3px; }
.meal-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-top: 1px dashed #f0e4d9;
}
.meal-slot {
  flex: 0 0 auto;
  min-width: 34px;
  text-align: center;
  padding: 3px 7px;
  border-radius: 999px;
  background: #fdf1e9;
  color: #b9775f;
  font-size: 9px;
  letter-spacing: .02em;
}
.meal-copy { flex: 1; min-width: 0; }
.meal-copy p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: #5b493f;
  word-break: break-word;
}
.meal-copy span { display: block; margin-top: 2px; font-size: 9px; color: #b4a59b; }
.meal-photo {
  flex: 0 0 58px;
  width: 58px; height: 58px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #f4e8dc;
  box-shadow: 0 4px 10px rgba(120, 85, 65, .10);
}
.meal-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.meal-doodle {
  flex: 0 0 42px;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 13px;
  color: #c69c84;
  background: #fbf3ea;
}
.meal-del {
  flex: 0 0 24px;
  width: 24px; height: 24px;
  padding: 0;
  border: 0;
  background: none;
  color: #cbb6aa;
  display: grid; place-items: center;
  opacity: .75;
}
.meal-empty {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fbf6ef;
  color: #ab9b90;
  font-size: 11px;
  line-height: 1.6;
}
.meal-sep { height: 1px; margin: 12px 0; background: #f1e6dc; }
.meal-more { padding: 4px 0 2px; font-size: 9.5px; color: #b09d91; text-align: right; }
.meal-add { display: inline-flex; align-items: center; gap: 4px; }
.meal-add svg { width: 13px; height: 13px; }

.meal-slot-row { display: flex; gap: 7px; margin-bottom: 14px; flex-wrap: wrap; }
.meal-slot-chip {
  border: 1px solid #ecd9cc;
  background: #fffaf5;
  color: #a88d7e;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 11.5px;
  font-family: inherit;
}
.meal-slot-chip.is-on {
  background: #f4846f;
  border-color: #f4846f;
  color: #fffaf5;
  box-shadow: 0 4px 10px rgba(244, 132, 111, .22);
}
.meal-upload {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 82px;
  margin: 6px 0 14px;
  border: 1.5px dashed #e6cdbd;
  border-radius: 16px;
  background: #fdf8f2;
  color: #b58474;
  font-size: 12px;
  overflow: hidden;
}
.meal-upload-copy { display: inline-flex; align-items: center; gap: 7px; }
.meal-upload img { width: 100%; max-height: 168px; object-fit: cover; display: block; }
.meal-upload.has-photo .meal-upload-copy {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(53, 42, 36, .58);
  color: #fffaf5;
  font-size: 10px;
  backdrop-filter: blur(6px);
}
.meal-upload.has-photo img { border-radius: 14px; }

.photo-sheet img {
  display: block;
  width: 100%;
  max-height: 64vh;
  object-fit: contain;
  border-radius: 18px;
  background: #f2e8dd;
}

.poke-quick { display: flex; flex-wrap: wrap; gap: 7px; margin: 4px 0 14px; }
.poke-chip {
  border: 1px solid #ecd9cc;
  background: #fffaf5;
  color: #a88d7e;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 11px;
  font-family: inherit;
}
.poke-chip.is-on {
  border-color: #f0b6a4;
  background: #fdece5;
  color: #b46450;
}
.poke-send { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }

.poke-received { padding: 4px 0 0; text-align: center; }
.poke-halo {
  width: 74px; height: 74px;
  margin: 2px auto 14px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: #e07862;
  background: radial-gradient(circle at 45% 35%, #fff7f0, #fbe2d6 68%, #f7d3c4);
  box-shadow: 0 10px 26px rgba(224, 120, 98, .18), inset 0 0 0 8px rgba(255,255,255,.35);
  animation: poke-halo-pulse 2.4s ease-in-out infinite;
}
.poke-halo svg { width: 30px; height: 30px; }
.poke-kicker { font-size: 11.5px; color: #a88e80; letter-spacing: .04em; }
.poke-message {
  margin: 9px 8px 6px;
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 600;
  line-height: 1.35;
  color: #5a4339;
  letter-spacing: .03em;
  word-break: break-word;
}
.poke-meta { font-size: 9.5px; color: #b5a59a; margin-bottom: 18px; }
@keyframes poke-halo-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

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

@media (max-width: 400px) {
  .onboarding-title { font-size: 33px; }
  .days-line .num { font-size: 54px; }
  .view { padding-left: 14px; padding-right: 14px; }
  .topbar { padding: 0 14px; }
  .sheet { padding-left: 16px; padding-right: 16px; }
}
