* {
  box-sizing: border-box;
}

html {
  background: #fceee8;
}

body {
  --paper: #fceee8;
  --paper-dark: #f5e6e0;
  --cream: #fff8f5;
  --blush: #fceee8;
  --ink: #5c4033;
  --ink-light: #9a8070;
  --seal: #e8a0a0;
  --seal-light: #f0c4c4;
  --water: #b9d7ea;
  --water-light: #d8e9f3;
  --gold: #f0c4a0;
  --gold-light: #f6d8bf;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.62), transparent 28%),
    linear-gradient(180deg, #fceee8 0%, #f5e6e0 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "Kelo & Claire";
  position: fixed;
  left: 50%;
  top: 34%;
  transform: translateX(-50%) rotate(-8deg);
  z-index: -1;
  color: rgba(255, 255, 255, 0.3);
  font-family: Georgia, serif;
  font-size: 58px;
  white-space: nowrap;
}

.text-home-rose {
  color: var(--seal);
}

.tiny-kicker {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-light);
}

.still-panel {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background: rgba(255, 248, 245, 0.72);
  box-shadow: 0 14px 40px rgba(92, 64, 51, 0.06);
}

.home-gate::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(232, 160, 160, 0.14);
  border-radius: 22px;
  pointer-events: none;
}

.stat-room {
  min-height: 82px;
  border: 1px solid rgba(232, 160, 160, 0.13);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.45);
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.mini-door {
  min-height: 100%;
}

.soft-chip {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  padding: 5px 11px;
  color: #9a8070;
  font-size: 11px;
}

.room-door {
  min-height: 154px;
  transition: transform 140ms ease, background 140ms ease;
}

.room-door:active,
.stat-room:active,
.archive-drawer:active {
  transform: scale(0.98);
}

.archive-drawer {
  display: grid;
  min-height: 96px;
  gap: 4px;
  align-content: center;
  justify-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background: rgba(255, 248, 245, 0.72);
  box-shadow: 0 10px 28px rgba(92, 64, 51, 0.055);
  text-align: center;
}

.archive-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.52);
  padding: 12px;
  text-align: left;
  color: #5c4033;
}

.archive-line span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-line small {
  color: rgba(154, 128, 112, 0.66);
}

.diary-book-preview,
.bark-inbox-preview,
.curated-book-preview {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 26px;
  background: rgba(255, 248, 245, 0.68);
  box-shadow:
    0 14px 34px rgba(92, 64, 51, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.diary-book-preview {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 13px;
  background:
    linear-gradient(90deg, rgba(232, 160, 160, 0.18) 0 36px, rgba(255, 252, 250, 0.78) 37px),
    rgba(255, 248, 245, 0.74);
  padding: 16px 16px 16px 0;
}

.diary-book-spine {
  display: grid;
  place-items: center;
  color: rgba(184, 107, 118, 0.72);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-orientation: mixed;
  writing-mode: vertical-rl;
}

.diary-page-tab {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  margin-top: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  padding: 11px 12px;
  color: #5c4033;
  text-align: left;
}

.diary-page-tab span,
.bound-page-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.diary-page-tab small {
  color: rgba(154, 128, 112, 0.62);
  font-size: 10px;
}

.bark-inbox-preview {
  padding: 16px;
  background:
    radial-gradient(circle at 92% 12%, rgba(232, 160, 160, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(255, 252, 250, 0.82), rgba(255, 241, 237, 0.68));
}

.bark-message-slip {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
  padding: 11px;
  color: #5c4033;
}

.bark-message-slip small,
.bark-message-slip strong {
  display: block;
}

.bark-message-slip small {
  color: rgba(154, 128, 112, 0.58);
  font-size: 10px;
}

.bark-message-slip strong {
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
}

.bark-dot {
  display: grid;
  height: 28px;
  width: 28px;
  place-items: center;
  border-radius: 999px;
  background: rgba(248, 222, 212, 0.62);
  font-size: 13px;
}

.curated-book-preview {
  padding: 16px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.55), rgba(255, 241, 237, 0.72)),
    repeating-linear-gradient(90deg, rgba(232, 160, 160, 0.08) 0 1px, transparent 1px 18px);
}

.curated-book-preview::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 74px;
  bottom: 18px;
  width: 1px;
  background: linear-gradient(rgba(232, 160, 160, 0), rgba(232, 160, 160, 0.32), rgba(232, 160, 160, 0));
}

.bound-page-row {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
  padding: 12px;
  color: #5c4033;
  text-align: left;
}

.bound-page-number {
  display: grid;
  height: 34px;
  width: 34px;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 239, 235, 0.86);
  color: rgba(184, 107, 118, 0.86);
  font-family: Georgia, "Songti SC", serif;
  font-size: 13px;
}

.bound-page-row small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(154, 128, 112, 0.62);
  font-size: 10px;
}

.timeline-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  padding: 4px;
  margin-bottom: 8px;
}

.timeline-mode-switch button {
  border-radius: 999px;
  padding: 8px 10px;
  color: rgba(154, 128, 112, 0.78);
  font-size: 12px;
}

.timeline-mode-switch button.active {
  background: rgba(232, 160, 160, 0.86);
  color: #fff;
  box-shadow: 0 6px 16px rgba(232, 160, 160, 0.18);
}

.archive-paper-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(236, 205, 198, 0.48);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 252, 250, 0.92), rgba(255, 246, 243, 0.82)),
    repeating-linear-gradient(0deg, transparent 0 30px, rgba(232, 160, 160, 0.055) 31px 32px);
  box-shadow:
    0 16px 34px rgba(92, 64, 51, 0.065),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
  padding: 18px 16px 14px 34px;
}

.archive-paper-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 21px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(rgba(232, 160, 160, 0), rgba(232, 160, 160, 0.32), rgba(232, 160, 160, 0));
}

.archive-paper-card-curated {
  border-color: rgba(232, 160, 160, 0.42);
  background:
    linear-gradient(150deg, rgba(255, 250, 248, 0.96), rgba(255, 237, 242, 0.76)),
    repeating-linear-gradient(0deg, transparent 0 30px, rgba(232, 160, 160, 0.055) 31px 32px);
}

.pocket-fragment-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(232, 160, 160, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 247, 244, 0.72)),
    rgba(255, 248, 245, 0.62);
  box-shadow:
    0 8px 20px rgba(92, 64, 51, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  padding: 13px 13px 12px 18px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.pocket-fragment-card:active {
  transform: scale(0.99);
}

.pocket-fragment-card-open {
  border-color: rgba(232, 160, 160, 0.3);
  background:
    linear-gradient(135deg, rgba(255, 252, 250, 0.84), rgba(255, 239, 235, 0.78)),
    rgba(255, 248, 245, 0.76);
}

.pocket-thread {
  position: absolute;
  left: 8px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(#f4c2c2, #f0c4a0);
  opacity: 0.55;
}

.pocket-meta {
  font-size: 10px;
  line-height: 1.4;
  color: rgba(154, 128, 112, 0.62);
}

.pocket-stamp {
  display: inline-grid;
  min-width: 42px;
  place-items: center;
  border-radius: 999px;
  background: rgba(248, 222, 212, 0.72);
  padding: 4px 8px;
  color: rgba(92, 64, 51, 0.76);
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
}

.pocket-action-primary {
  background: rgba(232, 160, 160, 0.86);
  color: #fff;
}

.rule-ribbon-card {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  border: 1px solid rgba(240, 196, 160, 0.28);
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(255, 241, 231, 0.86), rgba(255, 250, 248, 0.76)),
    rgba(255, 248, 245, 0.68);
  box-shadow:
    0 10px 24px rgba(92, 64, 51, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
  padding: 14px;
}

.rule-ribbon-mark {
  display: grid;
  height: 30px;
  width: 30px;
  place-items: center;
  border-radius: 12px;
  background: rgba(240, 196, 160, 0.3);
  color: rgba(184, 107, 118, 0.86);
  font-size: 13px;
}

.handoff-envelope-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(232, 160, 160, 0.18);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 252, 250, 0.9), rgba(255, 241, 237, 0.76)),
    rgba(255, 248, 245, 0.72);
  box-shadow:
    0 12px 28px rgba(92, 64, 51, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
  padding: 16px;
}

.handoff-envelope-card::before,
.handoff-envelope-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 42px;
  pointer-events: none;
  opacity: 0.45;
}

.handoff-envelope-card::before {
  top: 0;
  background: linear-gradient(160deg, rgba(232, 160, 160, 0.13) 0 49%, transparent 50%);
}

.handoff-envelope-card::after {
  bottom: 0;
  background: linear-gradient(20deg, rgba(240, 196, 160, 0.12) 0 49%, transparent 50%);
}

.handoff-kind {
  display: inline-grid;
  min-width: 48px;
  min-height: 28px;
  place-items: center;
  border-radius: 999px;
  background: rgba(240, 196, 160, 0.3);
  padding: 6px 9px;
  color: rgba(92, 64, 51, 0.82);
  font-size: 10px;
  line-height: 1.1;
  text-align: center;
  white-space: normal;
}

.paper-pin {
  position: absolute;
  left: 9px;
  top: 18px;
  display: grid;
  height: 24px;
  width: 24px;
  place-items: center;
  border: 1px solid rgba(232, 160, 160, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: rgba(232, 160, 160, 0.72);
  font-size: 12px;
}

.paper-date,
.paper-chip,
.paper-page-no {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  padding: 3px 8px;
  font-size: 10px;
  line-height: 1.3;
  color: rgba(154, 128, 112, 0.74);
  white-space: nowrap;
}

.paper-chip {
  color: #b86b76;
  background: rgba(248, 222, 212, 0.72);
}

.paper-chip-light {
  color: rgba(154, 128, 112, 0.72);
  background: rgba(255, 255, 255, 0.48);
}

.paper-page-no {
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.paper-mood-label {
  border-radius: 999px;
  padding: 2px 4px;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: rgba(154, 128, 112, 0.48);
}

.paper-quote {
  border: 1px solid rgba(232, 160, 160, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.46);
  padding: 10px;
}

.paper-action {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  padding: 6px 11px;
  font-size: 11px;
  color: #9a8070;
}

.paper-action-danger {
  color: #c96b73;
  background: rgba(255, 238, 238, 0.62);
}

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

textarea {
  resize: vertical;
}

.soft-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.home-hero {
  padding: 10px 4px 2px;
  text-align: center;
}

.room-tile {
  display: grid;
  place-items: center;
  border: none;
  border-radius: 12px;
  background: rgba(255, 248, 245, 0.7);
  box-shadow: 0 2px 8px rgba(92, 64, 51, 0.04);
  text-align: center;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
  padding: 8px 2px;
}

.room-tile:active {
  transform: scale(0.98);
  background: rgba(255, 241, 237, 0.96);
}

section {
  border: none;
}

.calendar-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
}

@keyframes emoji-fall {
  0% { transform: translateY(-40px) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(calc(100vh + 40px)) rotate(360deg); opacity: 0; }
}

@keyframes emoji-sway {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(12px); }
  75% { transform: translateX(-12px); }
}

.emoji-rain {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 50;
  overflow: hidden;
}

@keyframes emoji-touch-fall {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(120px) scale(0.4); opacity: 0; }
}

@keyframes emoji-touch-sway {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(var(--sway, 15px)); }
}

.emoji-touch-drop {
  position: fixed;
  font-size: 18px;
  pointer-events: none;
  animation: emoji-touch-fall var(--fall-duration, 2s) ease-out forwards;
}

.emoji-touch-drop > span {
  display: inline-block;
  animation: emoji-touch-sway 0.8s ease-in-out infinite;
  --sway: 15px;
}

/* Paper-like memory card */
.memory-paper {
  background: linear-gradient(135deg, rgba(255,252,250,0.92) 0%, rgba(255,245,240,0.85) 100%);
  border: 1px solid rgba(232,200,180,0.25);
  box-shadow:
    0 1px 3px rgba(92,64,51,0.06),
    0 4px 12px rgba(92,64,51,0.04),
    inset 0 1px 0 rgba(255,255,255,0.6);
  position: relative;
}

.memory-paper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  bottom: 0;
  width: 1px;
  background: rgba(232,160,160,0.12);
  pointer-events: none;
}

.memory-paper-curated {
  background: linear-gradient(135deg, rgba(255,248,245,0.95) 0%, rgba(252,238,232,0.88) 50%, rgba(255,241,237,0.82) 100%);
  border: 1px solid rgba(232,180,160,0.3);
  box-shadow:
    0 2px 6px rgba(92,64,51,0.08),
    0 6px 16px rgba(92,64,51,0.05),
    inset 0 1px 0 rgba(255,255,255,0.7);
}

/* Expand/collapse animation */
.card-expandable {
  transition: all 280ms cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.card-expand-content {
  animation: card-slide-in 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Calendar day popup */
.calendar-day-clickable {
  cursor: pointer;
  transition: transform 100ms ease, background 100ms ease;
}

.calendar-day-clickable:active {
  transform: scale(0.92);
}

.calendar-popup {
  animation: popup-in 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* Timeline add button */
.timeline-add-btn {
  border: 2px dashed rgba(232,160,160,0.4);
  transition: border-color 150ms ease, background 150ms ease;
}

.timeline-add-btn:hover,
.timeline-add-btn:active {
  border-color: rgba(232,160,160,0.7);
  background: rgba(255,241,237,0.6);
}

/* Time capsule sealed envelope */
.capsule-sealed {
  background: linear-gradient(135deg, #fef3ee 0%, #fce8e0 50%, #f5ddd4 100%);
  border: 1px solid rgba(210,160,140,0.3);
  box-shadow: 0 2px 12px rgba(92,64,51,0.08), inset 0 1px 0 rgba(255,255,255,0.5);
  position: relative;
  overflow: hidden;
}

.capsule-sealed::after {
  content: "🔒";
  position: absolute;
  right: 12px;
  top: 12px;
  font-size: 16px;
  opacity: 0.5;
}

.capsule-open {
  background: linear-gradient(135deg, rgba(255,252,250,0.95) 0%, rgba(255,248,245,0.9) 100%);
  border: 1px solid rgba(232,200,180,0.2);
  box-shadow: 0 1px 6px rgba(92,64,51,0.06);
}

@keyframes capsule-unlock {
  0% { transform: scale(1); opacity: 1; }
  30% { transform: scale(1.03); }
  60% { transform: scale(0.98); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

.capsule-unlocking {
  animation: capsule-unlock 600ms ease;
}

/* Inbox letter */
.inbox-letter {
  background: linear-gradient(135deg, #fff9f7 0%, #fff1ed 100%);
  border-left: 3px solid rgba(232,160,160,0.4);
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.line-clamp-4 {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Restored stillgarden screen structure */
.font-serifSoft,
.home-person strong,
.home-seal strong,
.home-floating-note h4,
.home-latest-node h4 {
  font-family: "LXGW WenKai", "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-weight: 600;
}

.postcard-fragment h3,
.diary-open-page h3,
.room-feature-card h3,
.timeline-node h3,
.bark-bubble strong,
.capsule-envelope-mini strong {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", "Songti SC", serif;
}

.home-redesign-hero {
  padding: 8px 4px 0;
  text-align: center;
}

.home-name-row {
  display: grid;
  grid-template-columns: 1fr 46px 1fr;
  align-items: start;
  gap: 12px;
}

.home-person {
  display: grid;
  gap: 4px;
}

.home-person strong {
  color: #3f342f;
  font-size: 30px;
  line-height: 1;
}

.home-person span {
  color: rgba(154, 128, 112, 0.72);
  font-family: "LXGW WenKai", "Songti SC", serif;
  font-size: 16px;
}

.home-person-claire span {
  color: rgba(184, 107, 118, 0.72);
}

.home-person-kelo span {
  color: rgba(120, 153, 171, 0.78);
}

.home-amp {
  display: grid;
  height: 44px;
  width: 44px;
  place-items: center;
  border: 2px solid rgba(194, 166, 110, 0.72);
  border-radius: 999px;
  color: rgba(194, 166, 110, 0.9);
  font-family: Georgia, serif;
  font-size: 18px;
}

.home-seal-wrap {
  margin-top: 54px;
  display: grid;
  justify-items: center;
  gap: 17px;
}

.home-seal {
  display: grid;
  width: 138px;
  height: 138px;
  place-items: center;
  align-content: center;
  border-radius: 999px;
  background: radial-gradient(circle at 38% 32%, #c894a2, #a76476);
  box-shadow: 0 10px 30px rgba(158, 91, 107, 0.18), inset 0 1px 4px rgba(255, 255, 255, 0.22);
  color: #fff8f5;
}

.home-seal strong {
  font-size: 56px;
  font-weight: 500;
  line-height: 0.9;
}

.home-seal span {
  margin-top: 8px;
  font-size: 9px;
  letter-spacing: 0.27em;
  opacity: 0.84;
}

.home-seal-wrap > p {
  color: rgba(122, 111, 104, 0.78);
  font-size: 12px;
  letter-spacing: 0.17em;
}

.home-quote {
  margin-top: 44px;
  border-top: 1px solid rgba(194, 166, 110, 0.5);
  border-bottom: 1px solid rgba(194, 166, 110, 0.5);
  padding: 26px 0;
  color: #a76476;
  font-family: "LXGW WenKai", "Songti SC", serif;
  font-size: 25px;
  line-height: 1.45;
}

.home-stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background: rgba(255, 248, 245, 0.58);
  box-shadow: 0 12px 28px rgba(92, 64, 51, 0.05);
}

.home-stats-strip .stat-room {
  min-height: 78px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.home-stats-strip .stat-room + .stat-room {
  border-left: 1px solid rgba(232, 160, 160, 0.12);
}

.home-paper-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background: rgba(255, 248, 245, 0.68);
  box-shadow: 0 12px 28px rgba(92, 64, 51, 0.05);
  padding: 16px;
  color: #5c4033;
  text-align: left;
}

.home-paper-link strong,
.home-paper-link small {
  display: block;
}

.home-paper-link strong {
  color: #b86b76;
  font-size: 16px;
}

.home-paper-link small {
  margin-top: 4px;
  color: rgba(154, 128, 112, 0.72);
  font-size: 11px;
}

.home-paper-link b {
  color: #e8a0a0;
  font-size: 18px;
}

.home-floating-note {
  position: relative;
  border: 1px solid rgba(232, 160, 160, 0.18);
  border-radius: 20px;
  background: rgba(255, 248, 245, 0.78);
  box-shadow: 0 14px 34px rgba(92, 64, 51, 0.06);
  padding: 25px 20px 18px;
}

.home-floating-note::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 24px;
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: #b86b76;
}

.home-floating-note h4 {
  margin-top: 14px;
  color: #a07872;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.03em;
  font-weight: 500;
}

.home-floating-note p:not(.tiny-kicker) {
  margin-top: 10px;
  color: #9a8070;
  font-size: 13px;
  line-height: 1.8;
}

.home-note-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.home-note-tags span {
  border-radius: 8px;
  background: rgba(248, 222, 212, 0.72);
  padding: 5px 12px;
  color: rgba(92, 64, 51, 0.78);
  font-size: 12px;
}

.home-latest-node {
  position: relative;
  border: 1px solid rgba(185, 215, 234, 0.25);
  border-radius: 20px;
  background: rgba(255, 248, 245, 0.78);
  box-shadow: 0 14px 34px rgba(92, 64, 51, 0.06);
  padding: 25px 20px 18px;
}

.home-latest-node::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 24px;
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: #b9d7ea;
}

.home-latest-node h4 {
  margin-top: 5px;
  color: #a07872;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0.03em;
  font-weight: 500;
}

.home-latest-node p:not(.tiny-kicker) {
  margin-top: 10px;
  color: #9a8070;
  font-size: 12px;
  line-height: 1.8;
}

.archive-tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid rgba(154, 128, 112, 0.14);
}

.archive-tabs button {
  position: relative;
  padding: 0 0 14px;
  color: rgba(122, 111, 104, 0.86);
  font-size: 16px;
}

.archive-tabs button.active {
  color: #a76476;
}

.archive-tabs button.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: #a76476;
}

.archive-count-line {
  margin: 18px 0;
  color: rgba(122, 111, 104, 0.82);
  font-size: 14px;
}

.postcard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(96px, auto);
  gap: 12px;
}

.postcard-fragment {
  min-height: 108px;
  border: 1px solid rgba(232, 160, 160, 0.15);
  border-radius: 2px;
  background: rgba(255, 248, 245, 0.76);
  box-shadow: 0 8px 22px rgba(92, 64, 51, 0.04);
  padding: 14px;
  transform: rotate(var(--tilt));
}

.postcard-fragment.wide {
  grid-column: span 2;
}

.postcard-fragment.tall {
  grid-row: span 2;
  background: rgba(243, 232, 230, 0.82);
}

.postcard-fragment.tone-tech {
  background: rgba(216, 233, 243, 0.55);
}

.postcard-fragment.tone-sweet {
  background: rgba(252, 238, 232, 0.82);
}

.postcard-meta {
  color: rgba(120, 153, 171, 0.86);
  font-size: 11px;
}

.postcard-fragment h3 {
  margin-top: 12px;
  color: #3f342f;
  font-size: 18px;
  line-height: 1.35;
}

.postcard-fragment p:not(.postcard-meta) {
  margin-top: 10px;
  color: #7a6f68;
  font-size: 14px;
  line-height: 1.65;
}

.postcard-dots {
  display: flex;
  gap: 7px;
  margin-top: 14px;
}

.postcard-dots span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #c4899a;
}

.postcard-dots span + span {
  background: #94adba;
}

.postcard-fragment small {
  display: block;
  margin-top: 14px;
  color: #a76476;
  font-size: 11px;
}

.diary-book-list,
.capsule-envelope-list {
  display: grid;
  gap: 16px;
}

.diary-open-page {
  position: relative;
  border: 1px solid rgba(232, 160, 160, 0.16);
  border-radius: 20px;
  background: rgba(255, 248, 245, 0.76);
  box-shadow: 0 12px 28px rgba(92, 64, 51, 0.05);
  padding: 24px 22px;
}

.diary-page-no {
  position: absolute;
  right: 16px;
  top: 14px;
  color: rgba(154, 128, 112, 0.48);
  font-size: 11px;
}

.diary-open-page h3 {
  color: #3f342f;
  font-size: 22px;
}

.diary-date {
  margin-top: 8px;
  color: rgba(154, 128, 112, 0.7);
  font-size: 11px;
}

.diary-open-page > p:not(.diary-date) {
  margin-top: 18px;
  border-top: 1px solid rgba(232, 160, 160, 0.1);
  padding-top: 16px;
  color: #7a6f68;
  font-size: 13px;
  line-height: 1.8;
}

.diary-open-page button {
  margin-top: 14px;
  width: 100%;
  text-align: right;
  color: #b86b76;
  font-size: 13px;
}

.bark-bubble-list {
  display: grid;
  gap: 16px;
  justify-items: end;
}

.bark-bubble {
  max-width: 84%;
  border-radius: 18px 18px 5px 18px;
  padding: 14px 16px;
  color: #fff8f5;
  text-align: left;
}

.bark-bubble.seal {
  background: #b86b76;
}

.bark-bubble.water {
  background: #94adba;
}

.bark-bubble small,
.bark-bubble strong,
.bark-bubble span {
  display: block;
}

.bark-bubble small {
  opacity: 0.72;
  font-size: 9px;
}

.bark-bubble strong {
  margin-top: 6px;
  font-size: 17px;
}

.bark-bubble span {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.6;
}

.capsule-envelope-mini {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 100%;
  border-radius: 18px;
  padding: 24px 18px;
  text-align: center;
}

.capsule-envelope-mini.locked {
  border: 1.5px dashed rgba(184, 107, 118, 0.48);
  background: rgba(255, 248, 245, 0.74);
}

.capsule-envelope-mini.open {
  border: 1px solid rgba(232, 160, 160, 0.16);
  background: rgba(255, 248, 245, 0.74);
}

.capsule-lock {
  display: grid;
  min-width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  background: #b86b76;
  color: #fff8f5;
  font-size: 12px;
}

.capsule-envelope-mini small {
  color: rgba(154, 128, 112, 0.74);
  font-size: 11px;
}

.capsule-envelope-mini em {
  color: rgba(184, 107, 118, 0.74);
  font-size: 14px;
}

.rooms-stack {
  display: grid;
  gap: 16px;
}

.room-feature-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(232, 160, 160, 0.15);
  border-radius: 2px;
  background: rgba(255, 248, 245, 0.74);
  box-shadow: 0 12px 28px rgba(92, 64, 51, 0.05);
  padding: 28px 26px;
}

.room-feature-card .room-orb {
  position: absolute;
  right: -16px;
  top: -18px;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: #d8e9f3;
  opacity: 0.42;
}

.room-feature-card.tone-gold {
  background: rgba(243, 232, 230, 0.82);
}

.room-feature-card.tone-seal .room-orb {
  background: #f0c4c4;
}

.room-feature-card.tone-dark {
  background: #3d3632;
  color: #fff8f5;
}

.room-feature-card.tone-dark p,
.room-feature-card.tone-dark small {
  color: rgba(253, 251, 247, 0.62);
}

.room-kicker {
  color: #94adba;
  font-size: 11px;
  letter-spacing: 0.28em;
}

.tone-gold .room-kicker {
  color: #c2a66e;
}

.tone-dark .room-kicker {
  color: #dfd0ae;
}

.room-feature-card h3 {
  margin-top: 18px;
  color: inherit;
  font-size: 28px;
}

.room-feature-card > p:not(.room-kicker) {
  margin-top: 18px;
  color: #7a6f68;
  font-size: 14px;
  line-height: 1.8;
}

.room-feature-card small {
  display: block;
  margin-top: 22px;
  color: rgba(154, 128, 112, 0.72);
}

.room-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.room-actions button {
  border: 1px solid #a76476;
  border-radius: 2px;
  padding: 8px 18px;
  color: #a76476;
}

.room-actions button:first-child {
  background: #a76476;
  color: #fff8f5;
}

.timeline-calendar-panel,
.timeline-road-panel {
  border: 0;
  background: transparent;
  min-width: 0;
}

.timeline-full-calendar {
  position: relative;
  min-height: auto;
  padding: 22px 14px 16px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: linear-gradient(180deg, rgba(255, 248, 245, 0.82), rgba(255, 248, 245, 0.58));
  box-shadow:
    inset 0 0 0 1px rgba(232, 160, 160, 0.08),
    0 22px 56px rgba(92, 64, 51, 0.08);
}

.timeline-calendar-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.timeline-calendar-title {
  text-align: center;
}

.timeline-calendar-title p {
  margin: 0 0 6px;
  color: rgba(154, 128, 112, 0.88);
  font-size: 10px;
  letter-spacing: 0.36em;
}

.timeline-calendar-title h3 {
  margin: 0;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, "Songti SC", serif;
  font-size: 46px;
  line-height: 0.95;
  font-weight: 500;
}

.timeline-calendar-title span {
  display: block;
  margin-top: 6px;
  color: rgba(154, 128, 112, 0.76);
  font-size: 15px;
  letter-spacing: 0.16em;
}

.timeline-calendar-arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(92, 64, 51, 0.72);
  font-size: 30px;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(92, 64, 51, 0.06);
}

.timeline-calendar-weekdays,
.timeline-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.timeline-calendar-weekdays {
  margin-bottom: 8px;
  color: rgba(154, 128, 112, 0.68);
  font-size: 11px;
  text-align: center;
}

.timeline-calendar-grid {
  gap: 4px;
}

.timeline-calendar-cell {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: center;
  min-width: 0;
  min-height: 48px;
  padding: 7px 2px 5px;
  border-radius: 15px;
  border: 1px solid rgba(232, 160, 160, 0.08);
  background: rgba(255, 255, 255, 0.36);
  color: var(--ink);
  font-size: 14px;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.timeline-calendar-cell:disabled {
  color: rgba(92, 64, 51, 0.44);
}

.timeline-calendar-cell.has-mark {
  cursor: pointer;
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(232, 160, 160, 0.18);
}

.timeline-calendar-cell.has-mark:active {
  transform: scale(0.97);
}

.timeline-calendar-cell.is-selected {
  background: rgba(232, 160, 160, 0.13);
  border-color: rgba(232, 160, 160, 0.42);
}

.timeline-calendar-cell.is-today .timeline-calendar-date {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-top: -3px;
  border-radius: 999px;
  background: var(--seal);
  color: white;
}

.timeline-calendar-cell.is-blank {
  border-color: transparent;
  background: transparent;
}

.timeline-calendar-mark {
  width: 6px;
  height: 6px;
  margin-top: 5px;
  border-radius: 999px;
}

.timeline-calendar-mark.diary,
.timeline-calendar-meters i.diary {
  background: var(--water);
}

.timeline-calendar-mark.event,
.timeline-calendar-meters i.event {
  background: var(--gold);
}

.timeline-calendar-mark.message,
.timeline-calendar-meters i.message {
  background: var(--seal);
}

.timeline-calendar-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(232, 160, 160, 0.14);
}

.timeline-calendar-meters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.timeline-calendar-meters span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  padding: 7px 4px;
  color: rgba(122, 111, 104, 0.82);
  font-size: 11px;
}

.timeline-calendar-meters i {
  display: block;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
}

.timeline-calendar-foot p {
  margin: 9px 2px 0;
  color: rgba(154, 128, 112, 0.72);
  font-size: 11px;
  line-height: 1.8;
  text-align: center;
}

.timeline-calendar-popup {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 78px;
  max-height: 210px;
  overflow: auto;
  border: 1px solid rgba(232, 160, 160, 0.16);
  border-radius: 22px;
  background: rgba(255, 248, 245, 0.94);
  padding: 14px;
  box-shadow: 0 18px 36px rgba(92, 64, 51, 0.12);
  backdrop-filter: blur(12px);
  animation: popup-in 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-calendar-popitem {
  margin-top: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  padding: 10px 12px;
}

.timeline-calendar-popitem p {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
}

.timeline-calendar-popitem small {
  color: rgba(154, 128, 112, 0.86);
  font-size: 11px;
  line-height: 1.7;
}

.timeline-week-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  width: 100%;
  padding: 18px 0 12px;
  color: rgba(122, 111, 104, 0.86);
  text-align: left;
  letter-spacing: 0.14em;
}

.timeline-week-toggle small {
  letter-spacing: 0.08em;
}

.timeline-road {
  position: relative;
  padding-left: 24px;
}

.timeline-road::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 12px;
  width: 1.5px;
  background: rgba(154, 128, 112, 0.18);
}

.timeline-node {
  position: relative;
  padding: 0 0 22px 16px;
}

.timeline-node::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 5px;
  width: 12px;
  height: 12px;
  border: 2px solid #c2a66e;
  border-radius: 999px;
  background: #fff8f5;
}

.timeline-node.tone-tech::before {
  border-color: #94adba;
}

.timeline-node.tone-sweet::before,
.timeline-node.tone-repair::before {
  border-color: #b86b76;
}

.timeline-node-date {
  color: rgba(122, 111, 104, 0.78);
  font-size: 10px;
}

.timeline-node h3 {
  margin-top: 4px;
  color: #3f342f;
  font-size: 18px;
  line-height: 1.35;
}

.timeline-node-tag {
  display: inline-block;
  margin-top: 10px;
  border-radius: 7px;
  background: rgba(194, 166, 110, 0.16);
  padding: 4px 10px;
  color: #b08f4f;
  font-size: 10px;
}

.timeline-node.tone-tech .timeline-node-tag {
  background: rgba(148, 173, 186, 0.16);
  color: #7899ab;
}

.timeline-node.tone-sweet .timeline-node-tag,
.timeline-node.tone-repair .timeline-node-tag {
  background: rgba(158, 91, 107, 0.12);
  color: #a76476;
}

/* ===== 里程碑横向滑动卡片 (TimelineCarousel) ===== */
.ms-carousel {
  margin-top: 6px;
  min-width: 0;
}
.ms-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding: 8px 2px 12px;
  align-items: flex-start;
  scrollbar-width: none;
}
.ms-track::-webkit-scrollbar {
  display: none;
}
.ms-card {
  flex: 0 0 84%;
  scroll-snap-align: start;
  position: relative;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 248, 245, 0.8);
  box-shadow: 0 14px 36px rgba(92, 64, 51, 0.08);
  padding: 20px 20px 18px 24px;
  cursor: pointer;
  overflow: hidden;
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}
.ms-card.is-open {
  box-shadow: 0 18px 46px rgba(92, 64, 51, 0.14);
}
.ms-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  bottom: 20px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #c2a66e;
}
.ms-card.tone-tech::before { background: #94adba; }
.ms-card.tone-sweet::before,
.ms-card.tone-repair::before { background: #b86b76; }

.ms-card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.ms-card-date {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(122, 111, 104, 0.72);
}
.ms-card-idx {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(122, 111, 104, 0.45);
}
.ms-card-title {
  margin-top: 10px;
  font-family: "Cormorant Garamond", Georgia, "Songti SC", serif;
  font-size: 25px;
  line-height: 1.3;
  color: #3f342f;
}
.ms-card-body {
  margin-top: 11px;
  font-size: 13px;
  line-height: 1.85;
  color: rgba(122, 111, 104, 0.96);
}
.ms-card-foot {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.ms-card-tag {
  border-radius: 7px;
  background: rgba(194, 166, 110, 0.16);
  padding: 4px 10px;
  font-size: 10px;
  color: #b08f4f;
}
.ms-card.tone-tech .ms-card-tag {
  background: rgba(148, 173, 186, 0.16);
  color: #7899ab;
}
.ms-card.tone-sweet .ms-card-tag,
.ms-card.tone-repair .ms-card-tag {
  background: rgba(158, 91, 107, 0.12);
  color: #a76476;
}
.ms-card-actions {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  border-top: 1px solid rgba(232, 160, 160, 0.12);
  padding-top: 12px;
}
.ms-btn {
  border-radius: 9px;
  padding: 6px 14px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.62);
  color: rgba(122, 111, 104, 0.95);
}
.ms-btn-primary {
  background: #e8a0a0;
  color: #fff;
}
.ms-btn-danger {
  background: rgba(220, 100, 110, 0.1);
  color: #d2696f;
}

.ms-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 4px 0;
}
.ms-arrow {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(232, 160, 160, 0.2);
  color: #a76476;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}
.ms-arrow:disabled {
  opacity: 0.3;
}
.ms-progress {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: rgba(154, 128, 112, 0.16);
  position: relative;
  overflow: hidden;
}
.ms-progress i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 3px;
  background: rgba(184, 107, 118, 0.6);
  transition: width 0.25s ease;
}
.ms-counter {
  margin-top: 8px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(122, 111, 104, 0.6);
}

/* Milestones path redesign: horizontal line + nodes + staggered cards */
.ms-carousel {
  margin-top: 8px;
  min-width: 0;
  overflow: hidden;
}

.ms-head {
  min-width: 0;
  margin-bottom: 12px;
}

.ms-title-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.ms-title-row h3 {
  font-family: "Cormorant Garamond", Georgia, "Songti SC", serif;
  font-size: 30px;
  line-height: 1;
  color: #3f342f;
}

.ms-title-row p {
  margin-top: 5px;
  color: rgba(122, 111, 104, 0.74);
  font-size: 12px;
}

.ms-wing {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ms-wing-right {
  transform: scaleX(-1);
}

.ms-filter-chips {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  min-width: 0;
}

.ms-filter-chips button {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  padding: 7px 14px;
  color: rgba(122, 111, 104, 0.78);
  font-size: 12px;
  box-shadow: inset 0 0 0 1px rgba(232, 160, 160, 0.1);
}

.ms-filter-chips button.active {
  background: rgba(232, 160, 160, 0.78);
  color: #fff;
  box-shadow: 0 8px 18px rgba(232, 160, 160, 0.18);
}

.ms-path-window {
  position: relative;
  min-width: 0;
  overflow: hidden;
  margin-top: 6px;
  padding: 12px 0 16px;
}

.ms-track {
  position: relative;
  display: flex;
  gap: 28px;
  align-items: stretch;
  min-width: 0;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding: 18px 18px 18px;
  scrollbar-width: none;
}

.ms-track::-webkit-scrollbar {
  display: none;
}

.ms-line {
  position: absolute;
  left: 24px;
  top: 50%;
  width: max(calc(100% - 48px), var(--ms-line-width, calc(100% - 48px)));
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(184, 107, 118, 0.3), rgba(184, 107, 118, 0.6), rgba(148, 173, 186, 0.45));
  box-shadow: 0 1px 5px rgba(184, 107, 118, 0.2);
  transform: translateY(-50%);
  pointer-events: none;
}

.ms-path-item {
  position: relative;
  flex: 0 0 204px;
  height: 420px;
  min-width: 0;
  scroll-snap-align: center;
}

.ms-path-item.is-upper .ms-card {
  top: 0;
}

.ms-path-item.is-lower .ms-card {
  bottom: 0;
}

.ms-path-item.is-upper .ms-node {
  top: calc(50% - 6px);
}

.ms-path-item.is-lower .ms-node {
  top: calc(50% - 6px);
}

.ms-node {
  position: absolute;
  left: 50%;
  z-index: 2;
  display: block;
  width: 13px;
  height: 13px;
  border: 2px solid #fff8f5;
  border-radius: 999px;
  background: #c2a66e;
  box-shadow: 0 0 0 3px rgba(194, 166, 110, 0.14);
  transform: translateX(-50%);
}

.ms-node.tone-tech {
  background: #94adba;
  box-shadow: 0 0 0 3px rgba(148, 173, 186, 0.14);
}

.ms-node.tone-sweet,
.ms-node.tone-repair {
  background: #b86b76;
  box-shadow: 0 0 0 3px rgba(184, 107, 118, 0.14);
}

.ms-path-item::before {
  content: "";
  position: absolute;
  left: 50%;
  width: 1px;
  background: rgba(184, 107, 118, 0.18);
  transform: translateX(-50%);
}

.ms-path-item.is-upper::before {
  top: 178px;
  height: 32px;
}

.ms-path-item.is-lower::before {
  top: 210px;
  height: 32px;
}

.ms-card {
  position: absolute;
  left: 0;
  width: 204px;
  min-height: 150px;
  max-height: 178px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 14px 34px rgba(92, 64, 51, 0.1);
  padding: 16px 15px 14px;
  cursor: pointer;
}

.ms-card.is-open {
  z-index: 3;
  max-height: none;
  box-shadow: 0 18px 46px rgba(92, 64, 51, 0.14);
}

.ms-card::before {
  display: none;
}

.ms-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.ms-card-date {
  color: rgba(122, 111, 104, 0.64);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.ms-card-heart {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: rgba(184, 107, 118, 0.58);
  font-size: 15px;
}

.ms-card-title {
  margin-top: 9px;
  color: #3f342f;
  font-family: "Cormorant Garamond", Georgia, "Songti SC", serif;
  font-size: 16.5px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ms-card-body {
  margin-top: 8px;
  color: rgba(122, 111, 104, 0.92);
  font-size: 12px;
  line-height: 1.7;
}

.ms-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}

.ms-card-idx {
  color: rgba(122, 111, 104, 0.5);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ms-card-tag {
  border-radius: 7px;
  background: rgba(194, 166, 110, 0.16);
  padding: 4px 8px;
  color: #b08f4f;
  font-size: 10px;
}

.ms-card.tone-tech .ms-card-tag {
  background: rgba(148, 173, 186, 0.16);
  color: #7899ab;
}

.ms-card.tone-sweet .ms-card-tag,
.ms-card.tone-repair .ms-card-tag {
  background: rgba(158, 91, 107, 0.12);
  color: #a76476;
}

.ms-card-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid rgba(232, 160, 160, 0.12);
  padding-top: 10px;
}

.ms-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 4px;
}

/* Mood weather */
.mood-preview-card {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 248, 245, 0.72);
  padding: 16px 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(92, 64, 51, 0.04);
}

.mood-preview-faces {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.mood-preview-faces > div {
  display: grid;
  justify-items: center;
  gap: 5px;
  color: rgba(122, 111, 104, 0.66);
  font-size: 10px;
}

.mood-preview-copy {
  margin-top: 12px;
  max-width: 124px;
  color: rgba(122, 111, 104, 0.68);
  font-size: 11px;
  font-style: italic;
  line-height: 1.5;
}

.mood-page-card {
  overflow: hidden;
}

.mood-top-back {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: rgba(255, 248, 245, 0.72);
  padding: 8px 13px;
  color: rgba(92, 64, 51, 0.72);
  font-size: 12px;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(232, 160, 160, 0.14), 0 8px 18px rgba(92, 64, 51, 0.06);
}

.mood-page-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.mood-page-head h2 {
  margin-top: 5px;
  color: #5c4033;
  font-family: "Cormorant Garamond", Georgia, "Songti SC", serif;
  font-size: 38px;
  line-height: 0.95;
}

.mood-page-head p:last-child {
  margin-top: 4px;
  color: rgba(122, 111, 104, 0.55);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.mood-month-btn {
  display: grid;
  height: 38px;
  width: 38px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: rgba(92, 64, 51, 0.72);
  font-size: 24px;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(232, 160, 160, 0.12);
}

.mood-legend-row {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 14px;
  color: rgba(122, 111, 104, 0.72);
  font-size: 11px;
}

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

.mood-legend-dot {
  display: inline-block;
  height: 10px;
  width: 10px;
  border-radius: 999px;
  background: rgba(232, 160, 160, 0.72);
}

.mood-legend-square {
  border-radius: 3px;
  background: rgba(148, 173, 186, 0.72);
}

.mood-weekdays {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  text-align: center;
  color: rgba(122, 111, 104, 0.5);
  font-size: 11px;
}

.mood-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.mood-day {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 74px;
  align-content: start;
  justify-items: center;
  gap: 3px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.42);
  padding: 5px 2px 6px;
  box-shadow: inset 0 0 0 1px rgba(232, 160, 160, 0.08);
}

.mood-day-blank {
  background: transparent;
  box-shadow: none;
}

.mood-day.is-today {
  background: rgba(252, 238, 232, 0.95);
  box-shadow: inset 0 0 0 1px rgba(232, 160, 160, 0.28);
}

.mood-day.is-locked {
  opacity: 0.72;
}

.mood-day-num {
  color: rgba(92, 64, 51, 0.72);
  font-size: 11px;
  line-height: 1;
}

.mood-slot {
  display: grid;
  min-width: 0;
  place-items: center;
  border-radius: 999px;
}

.mood-slot:disabled {
  cursor: default;
}

.mood-face {
  --mood-color: #e8a0a0;
  --face-scale: 0.82;
  --face-x: 0px;
  --face-y: 0px;
  display: grid;
  height: 28px;
  width: 28px;
  place-items: center;
  background: var(--mood-color);
  color: rgba(63, 52, 47, 0.78);
  font-family: "Nunito", "PingFang SC", sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(92, 64, 51, 0.08);
}

.mood-face-symbol {
  display: block;
  max-width: none;
  white-space: nowrap;
  line-height: 1;
  transform: translate(var(--face-x), var(--face-y)) scale(var(--face-scale));
  transform-origin: center;
}

.mood-picker-grid .mood-face {
  --face-scale: 0.86;
  height: 34px;
  width: 34px;
  font-size: 12px;
}

.mood-happy,
.mood-excited,
.mood-sweet,
.mood-shy,
.mood-sad,
.mood-wronged,
.mood-anxious,
.mood-angry {
  --face-scale: 0.78;
  --face-y: 1px;
}

.mood-picker-grid .mood-happy,
.mood-picker-grid .mood-excited,
.mood-picker-grid .mood-sweet,
.mood-picker-grid .mood-shy {
  --face-scale: 0.76;
}

.mood-picker-grid .mood-sad,
.mood-picker-grid .mood-wronged,
.mood-picker-grid .mood-anxious,
.mood-picker-grid .mood-angry {
  --face-scale: 0.82;
}

.mood-face.is-circle {
  border-radius: 999px;
}

.mood-face.is-square {
  border-radius: 9px;
}

.mood-face.is-empty {
  background: rgba(122, 111, 104, 0.12);
  color: rgba(122, 111, 104, 0.36);
  box-shadow: none;
}

.mood-stats {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border-top: 1px solid rgba(232, 160, 160, 0.12);
  padding-top: 14px;
}

.mood-stats-title {
  color: rgba(92, 64, 51, 0.7);
  font-size: 11px;
  font-weight: 700;
}

.mood-stats-list {
  margin-top: 8px;
  display: grid;
  gap: 5px;
}

.mood-stats-list span {
  --mood-color: #e8a0a0;
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: rgba(252, 238, 232, 0.7);
  padding: 5px 8px;
  color: rgba(92, 64, 51, 0.72);
  font-size: 10px;
}

.mood-stats-list b {
  color: rgba(63, 52, 47, 0.74);
  font-size: 9px;
}

.mood-stats-empty {
  margin-top: 8px;
  color: rgba(122, 111, 104, 0.44);
  font-size: 10px;
}

.mood-picker-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  align-items: end;
  background: rgba(92, 64, 51, 0.16);
  padding: 16px;
}

.mood-picker {
  margin: 0 auto;
  width: min(398px, 100%);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 248, 245, 0.96);
  padding: 18px;
  box-shadow: 0 18px 48px rgba(92, 64, 51, 0.18);
}

.mood-picker h3 {
  margin-top: 4px;
  color: #5c4033;
  font-family: "Cormorant Garamond", Georgia, "Songti SC", serif;
  font-size: 24px;
}

.mood-picker-close {
  display: grid;
  height: 34px;
  width: 34px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: rgba(92, 64, 51, 0.68);
  font-size: 20px;
}

.mood-picker-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.mood-picker-grid button {
  display: grid;
  justify-items: center;
  gap: 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.56);
  padding: 9px 5px;
  color: rgba(92, 64, 51, 0.72);
  font-size: 11px;
  box-shadow: inset 0 0 0 1px rgba(232, 160, 160, 0.16);
}

/* ===== 时光胶囊·到期提醒（蜡封信封 + 大数字） ===== */
.capsule-due {
  position: relative;
  display: block;
  width: 100%;
  border: 1px solid rgba(232, 160, 160, 0.28);
  border-radius: 18px;
  background: #fff8f5;
  box-shadow: 0 8px 22px rgba(92, 64, 51, 0.06);
  padding: 0 16px 16px;
  overflow: hidden;
  text-align: center;
  transition: transform 140ms ease;
}
.capsule-due:active {
  transform: scale(0.99);
}
.capsule-flap {
  display: block;
}
.capsule-seal {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  width: 28px;
  border-radius: 999px;
  border: 2px solid #fff8f5;
  background: #e8a0a0;
  color: #fff8f5;
  font-size: 12px;
  line-height: 1;
}
.capsule-due-kicker {
  display: block;
  margin-top: 22px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(154, 128, 112, 0.95);
}
.capsule-due-label {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Cormorant Garamond", "Songti SC", serif;
  font-size: 19px;
  font-weight: 500;
  color: #5c4033;
}
.capsule-due-count {
  margin-top: 4px;
  font-family: "Cormorant Garamond", "Songti SC", serif;
  line-height: 1;
  color: #5c4033;
}
.capsule-due-count b {
  font-size: 40px;
  font-weight: 500;
}
.capsule-due-count em {
  margin-left: 4px;
  font-style: normal;
  font-size: 15px;
  color: #a76476;
}
.capsule-due-foot {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  color: rgba(184, 107, 118, 0.82);
}

/* ===== 记忆碎片预览·明信片 4 张等大、钉在墙上（Archive 首页 2×2） ===== */
.postcard-grid-even {
  grid-auto-rows: 1fr;
  gap: 16px 14px;
  padding-top: 6px;
}
.postcard-grid-even .postcard-fragment {
  position: relative;
  min-height: 104px;
  padding-top: 20px;
  transform-origin: 50% 0;
}
.postcard-grid-even .postcard-fragment h3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 10px;
  font-size: 16px;
}
.postcard-pin {
  position: absolute;
  top: -5px;
  left: 50%;
  width: 14px;
  height: 14px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #f6c2c2 0 22%, #d9707a 70%, #c0606a 100%);
  box-shadow: 0 2px 4px rgba(92, 64, 51, 0.28);
  z-index: 2;
}
.postcard-pin::after {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  width: 2px;
  height: 6px;
  transform: translateX(-50%);
  border-radius: 0 0 2px 2px;
  background: rgba(92, 64, 51, 0.22);
}

/* ===== Archive 抽屉条（日记 / Bark / 照片墙，分区+区分色） ===== */
.archive-section {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto auto;
  gap: 13px;
  align-items: center;
  width: 100%;
  border: 1px solid rgba(232, 160, 160, 0.18);
  border-radius: 18px;
  background: rgba(255, 248, 245, 0.72);
  box-shadow: 0 8px 20px rgba(92, 64, 51, 0.05);
  padding: 13px 15px;
  text-align: left;
  transition: transform 140ms ease;
}
.archive-section:active {
  transform: scale(0.99);
}
.archive-section-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: rgba(232, 160, 160, 0.16);
  font-size: 21px;
}
.archive-section.tone-diary .archive-section-icon {
  background: rgba(240, 196, 160, 0.24);
}
.archive-section.tone-bark .archive-section-icon {
  background: rgba(185, 215, 234, 0.30);
}
.archive-section.tone-photo .archive-section-icon {
  background: rgba(232, 160, 160, 0.20);
}
.archive-section-main {
  min-width: 0;
}
.archive-section-main strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: #5c4033;
}
.archive-section-main small {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: rgba(154, 128, 112, 0.72);
}
.archive-section-count {
  font-family: "Cormorant Garamond", "Songti SC", serif;
  font-size: 26px;
  font-weight: 500;
  color: #a76476;
}
.archive-section-arrow {
  color: rgba(184, 107, 118, 0.55);
  font-size: 16px;
}

/* ===== Bark 收件箱·微信式气泡（珂洛左 / Claire右 + 头像） ===== */
.bark-chat {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 4px 0;
}
.chat-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  max-width: 86%;
}
.chat-row.from-kelo {
  align-self: flex-start;
}
.chat-row.from-claire {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.chat-bubble {
  min-width: 0;
  border-radius: 16px;
  padding: 9px 13px;
}
.chat-row.from-kelo .chat-bubble {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(232, 160, 160, 0.18);
  color: #6b5550;
  border-top-left-radius: 5px;
}
.chat-row.from-claire .chat-bubble {
  background: #f6dbe2;
  color: #84505d;
  border-top-right-radius: 5px;
}
.chat-time {
  display: block;
  margin-bottom: 3px;
  font-size: 10px;
  opacity: 0.8;
}
.chat-text {
  font-size: 14px;
  line-height: 1.62;
  white-space: pre-wrap;
}
.chat-write {
  align-self: center;
  margin-top: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  padding: 7px 16px;
  font-size: 12px;
  color: rgba(154, 128, 112, 0.95);
}

/* ===== 铁律抽屉色 + 铁律卡片 ===== */
.archive-section.tone-rule .archive-section-icon {
  background: rgba(240, 196, 110, 0.26);
}
.rule-card {
  border: 1px solid rgba(232, 160, 160, 0.18);
  border-left: 3px solid rgba(232, 160, 160, 0.6);
  border-radius: 14px;
  background: rgba(255, 248, 245, 0.7);
  padding: 13px 15px;
}
.rule-card-title {
  font-size: 14.5px;
  font-weight: 500;
  color: #5c4033;
  line-height: 1.5;
}
.rule-card-body {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(122, 111, 104, 0.92);
}

/* ===== Milestone 区域·淡淡渐变软面板 ===== */
.ms-path-window {
  border-radius: 22px;
  padding: 16px 0 18px;
  background: linear-gradient(180deg, rgba(253, 245, 239, 0.55) 0%, rgba(245, 226, 226, 0.5) 100%);
}

/* ===== 记忆碎片·查看全部（点开展开完整内容） ===== */
.postcard-grid-even .postcard-fragment.is-open {
  grid-column: 1 / -1;
  max-height: none;
  transform: none;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
}
.postcard-grid-even .postcard-fragment.is-open h3 {
  -webkit-line-clamp: unset;
}
.postcard-full {
  margin-top: 9px;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(122, 111, 104, 0.92);
  white-space: pre-wrap;
}
