:root {
  color-scheme: light;
  --ink: #49343a;
  --muted: #8d6970;
  --pink-strong: #e9a6b0;
  --pink: #f4c9cf;
  --pink-soft: #fff2f4;
  --rose: #d78191;
  --cream: #fbf7ef;
  --paper: #fffdf9;
  --oat: #e9dfcd;
  --terracotta: #bc7e58;
  --clay: #a2663f;
  --amber: #e4c496;
  --sage: #95a083;
  --line: rgba(73, 52, 58, 0.12);
  --shadow: 0 24px 70px rgba(139, 86, 94, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at 18% 10%, rgba(244, 201, 207, 0.55), transparent 28%),
    linear-gradient(135deg, #fff7f5 0%, #fbf7ef 48%, #f4ddd2 100%);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

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

button {
  cursor: pointer;
}

.app-fallback-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.app-fallback-card {
  width: min(100%, 360px);
  border: 1px solid rgba(73, 52, 58, 0.1);
  border-radius: 8px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 252, 250, 0.92), rgba(255, 244, 247, 0.78)),
    #fff;
  box-shadow: 0 18px 52px rgba(139, 86, 94, 0.12);
}

.app-fallback-card p,
.app-fallback-card h1,
.app-fallback-card span {
  margin: 0;
}

.app-fallback-card p {
  color: var(--rose);
  font-size: 13px;
  font-weight: 900;
}

.app-fallback-card h1 {
  margin-top: 8px;
  color: var(--ink);
  font-size: 26px;
  line-height: 1.18;
}

.app-fallback-card span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.app-stage {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(320px, 420px) minmax(220px, 0.75fr);
  gap: 28px;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.desktop-story,
.desktop-notes {
  max-width: 360px;
}

.desktop-story h1 {
  margin: 12px 0 10px;
  font-size: 48px;
  line-height: 1.02;
}

.desktop-story p,
.desktop-notes p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.story-visual {
  width: min(100%, 340px);
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 242, 244, 0.06), rgba(251, 247, 239, 0.52)),
    url("../assets/scenes/anniversary-letter-scene.png") center / cover;
  box-shadow: var(--shadow);
}

.story-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.story-points span,
.meta-row span,
.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--muted);
  font-size: 12px;
}

.phone-shell {
  position: relative;
  height: min(860px, calc(100vh - 38px));
  min-height: 680px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 248, 248, 0.98), rgba(255, 253, 249, 0.98)),
    var(--paper);
  box-shadow: 0 28px 86px rgba(105, 64, 72, 0.22);
}

.app-topbar {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 22px 14px;
  background: rgba(255, 250, 250, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(73, 52, 58, 0.06);
}

.app-topbar h2,
.modal-head h2,
.desktop-notes h3,
.paper-card h3,
.event-card h3,
.date-card h3,
.month-summary h3,
.memory-note h3,
.couple-card h3,
.home-profile h3,
.member-card h3,
.pet-card h3,
.settings-list h3,
.mood-panel h3 {
  margin: 0;
}

.app-topbar h2 {
  font-size: 20px;
  line-height: 1.1;
}

.eyebrow,
.card-kicker {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.screen {
  height: calc(100% - 172px);
  overflow: auto;
  padding: 16px 18px 108px;
  scrollbar-width: none;
}

.screen::-webkit-scrollbar {
  display: none;
}

.tabbar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  height: 66px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 7px;
  border: 1px solid rgba(73, 52, 58, 0.08);
  border-radius: 24px;
  background: rgba(255, 253, 249, 0.88);
  box-shadow: 0 18px 52px rgba(113, 68, 76, 0.16);
  backdrop-filter: blur(18px);
}

.tab-button,
.icon-button,
.soft-action,
.text-button,
.primary-button,
.chip,
.idea-slip,
.mood-chip,
.reset-button {
  border: 0;
}

.tab-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--muted);
}

.tab-button span {
  font-size: 17px;
  line-height: 1;
}

.tab-button small {
  font-size: 11px;
  white-space: nowrap;
}

.tab-button.active {
  background: var(--pink-soft);
  color: var(--ink);
}

.icon-button {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.hero-scene {
  min-height: 246px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--pink-soft);
  box-shadow: 0 18px 42px rgba(194, 91, 110, 0.12);
}

.hero-image {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 238, 242, 0.08), rgba(75, 42, 48, 0.54)),
    url("../assets/scenes/date-sunset-walk.png") center / cover;
  transform: scale(1.02);
}

.hero-content {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: #fff;
  text-shadow: 0 1px 18px rgba(80, 30, 42, 0.28);
}

.day-count {
  font-size: clamp(56px, 18vw, 88px);
  font-weight: 760;
  line-height: 0.92;
}

.hero-content p:last-child {
  max-width: 260px;
  margin: 6px 0 0;
  line-height: 1.5;
}

.action-row,
.button-row,
.chip-row,
.meta-row {
  display: flex;
  align-items: center;
}

.action-row {
  gap: 8px;
  margin: 14px 0;
}

.soft-action,
.text-button,
.primary-button,
.reset-button {
  min-height: 38px;
  border-radius: 999px;
  padding: 0 14px;
  font-weight: 700;
  white-space: nowrap;
}

.soft-action {
  flex: 1;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.soft-action.compact {
  flex: 0 0 auto;
}

.primary-button {
  background: var(--ink);
  color: #fff;
}

.primary-button.full {
  width: 100%;
}

.text-button {
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.paper-card,
.mood-panel,
.event-card,
.month-summary,
.memory-note,
.couple-card,
.home-profile,
.member-card,
.comfort-console,
.route-card,
.settings-list article,
.pet-card,
.date-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.home-console {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(233, 166, 176, 0.42);
  border-radius: 10px;
  padding: 16px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.82), transparent 24%),
    radial-gradient(circle at 88% 18%, rgba(228, 196, 150, 0.35), transparent 26%),
    linear-gradient(145deg, #f5c7cf 0%, #fff4f5 58%, #fffaf2 100%);
  box-shadow: 0 22px 60px rgba(194, 91, 110, 0.17);
}

.home-sky {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.home-sky h3 {
  margin: 0;
  font-size: 46px;
  line-height: 0.95;
}

.home-sky span,
.comfort-console span,
.member-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.signal-button {
  min-width: 96px;
  min-height: 96px;
  border: 0;
  border-radius: 50%;
  padding: 14px;
  background: var(--ink);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.18;
  box-shadow: 0 16px 40px rgba(73, 52, 58, 0.25);
}

.family-orbit {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 10px;
  align-items: stretch;
  margin-top: 16px;
}

.couple-orb,
.pet-orb {
  min-height: 118px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 0 0 1px rgba(73, 52, 58, 0.04);
}

.couple-orb {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(73, 52, 58, 0.16)),
    url("../assets/scenes/birthday-card-scene.png") center / cover;
  color: #fff;
  text-shadow: 0 1px 16px rgba(73, 52, 58, 0.35);
}

.couple-orb span {
  font-size: 12px;
  font-weight: 800;
}

.couple-orb strong {
  font-size: 50px;
  line-height: 0.9;
}

.pet-orb {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.member-card .pet-face {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--clay);
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(73, 52, 58, 0.08);
}

.pet-orb::before {
  display: none;
}

.pet-avatar {
  width: 46px;
  height: 46px;
  position: absolute;
  right: 10px;
  top: 10px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 20px rgba(73, 52, 58, 0.12);
}

.pet-avatar img,
.pet-face img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.pet-orb.rose {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 241, 244, 0.9)),
    var(--pet-cover) center 38% / cover;
}

.pet-orb.cream {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 250, 242, 0.92)),
    var(--pet-cover) center 44% / cover;
}

.pet-orb strong {
  font-size: 19px;
  line-height: 1;
}

.pet-orb small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.22;
}

.comfort-console {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.62);
}

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

.comfort-scene {
  width: 82px;
  height: 82px;
  flex: 0 0 82px;
}

.comfort-console h3 {
  margin: 0;
  font-size: 20px;
}

.comfort-console.active {
  border-color: rgba(73, 52, 58, 0.24);
  background: linear-gradient(135deg, #4d333a, #7d4c59);
  color: #fff;
}

.comfort-console.active .eyebrow,
.comfort-console.active span {
  color: rgba(255, 255, 255, 0.74);
}

.comfort-console.active .primary-button {
  background: #fff;
  color: var(--ink);
}

.comfort-console.active .comfort-scene {
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.launch-milestone {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 12px;
  align-items: stretch;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(233, 166, 176, 0.44);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 242, 244, 0.72)),
    var(--paper);
  box-shadow: 0 18px 48px rgba(194, 91, 110, 0.13);
}

.screen > .launch-milestone:first-child {
  margin-top: 0;
}

.launch-milestone.anniversary-focus {
  margin: 0 0 12px;
}

.milestone-scene {
  min-height: 178px;
}

.launch-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.launch-copy h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.12;
}

.launch-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.launch-counter {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.launch-counter strong {
  color: var(--clay);
  font-size: 42px;
  line-height: 0.9;
}

.launch-counter span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.visual-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 10px;
  margin-bottom: 12px;
}

.visual-tile {
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.7);
}

.countdown-tile {
  background: linear-gradient(135deg, #fff7f8, #fffaf2);
}

.countdown-tile strong {
  display: block;
  color: var(--clay);
  font-size: 50px;
  line-height: 0.94;
}

.countdown-tile span,
.mood-tile span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.mood-tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, #fff2f4, #fff);
}

.mood-mark.mini {
  width: 50px;
  height: 50px;
  font-size: 26px;
}

.route-card {
  min-height: 216px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  margin-bottom: 12px;
  background:
    radial-gradient(circle at 85% 22%, rgba(255, 255, 255, 0.88), transparent 24%),
    linear-gradient(145deg, #f4c9cf 0%, #fff7f5 56%, #fffaf2 100%);
}

.scene-media {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--pink-soft);
}

.scene-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.scene-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(73, 52, 58, 0.3));
  pointer-events: none;
}

.scene-media span {
  position: absolute;
  left: 10px;
  bottom: 9px;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 11px;
  font-weight: 850;
  backdrop-filter: blur(12px);
}

.pet-pair-scene {
  background:
    linear-gradient(135deg, rgba(255, 242, 244, 0.92), rgba(255, 250, 242, 0.92)),
    var(--pink-soft);
}

.pet-pair-grid {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
}

.pet-pair-grid figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 8px;
  background: #fff;
}

.pet-pair-grid img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.pet-pair-grid figcaption {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 1;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  font-size: 11px;
  font-weight: 850;
  backdrop-filter: blur(10px);
}

.slip-scene .pet-pair-grid {
  gap: 5px;
  padding: 5px;
}

.slip-scene .pet-pair-grid figcaption {
  display: none;
}

.route-scene {
  height: 128px;
  margin: -6px -6px 14px;
}

.route-card h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.12;
}

.route-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.vehicle-dock {
  margin-top: 12px;
}

.section-minihead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.section-minihead span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.vehicle-name-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.vehicle-name-row span {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 242, 244, 0.78);
  color: var(--clay);
  font-size: 12px;
  font-weight: 850;
}

.paper-card {
  padding: 18px;
  margin-bottom: 12px;
}

.paper-card h3,
.date-card h3 {
  font-size: 22px;
  line-height: 1.18;
}

.paper-card p,
.event-card p,
.date-card p,
.month-summary p,
.memory-note p,
.couple-card p,
.pet-card p,
.settings-list p,
.mood-panel p,
.section-head p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.large-line {
  color: var(--clay) !important;
  font-size: 28px;
  font-weight: 760;
}

.rose-accent {
  background: linear-gradient(135deg, #fff7f8, #fff);
}

.cream-accent {
  background: linear-gradient(135deg, #fffaf2, #fff);
}

.meta-row {
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.button-row {
  gap: 8px;
  margin-top: 14px;
}

.button-row > * {
  flex: 1;
}

.mood-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  background: linear-gradient(135deg, #fff3f6, #fffaf2);
}

.mood-mark {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #fff;
  color: var(--pink-strong);
  font-size: 38px;
  box-shadow: inset 0 0 0 1px rgba(233, 166, 176, 0.25);
}

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

.section-head p {
  margin: 0;
  font-size: 14px;
}

.event-stack,
.timeline,
.settings-list,
.mood-list {
  display: grid;
  gap: 10px;
}

.pinned-highlight-list {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.pinned-highlight-card {
  display: grid;
  grid-template-columns: minmax(120px, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
  padding: 12px;
  align-items: stretch;
  background:
    linear-gradient(135deg, rgba(255, 246, 246, 0.92), rgba(255, 255, 255, 0.96)),
    linear-gradient(145deg, rgba(244, 201, 207, 0.36), rgba(239, 221, 194, 0.24));
}

.pinned-highlight-card h3 {
  margin: 6px 0;
  font-size: 20px;
  line-height: 1.16;
}

.pinned-highlight-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.pinned-highlight-scene {
  min-height: 172px;
}

.event-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
}

.event-card.featured {
  min-height: 144px;
  align-items: stretch;
  background: linear-gradient(135deg, #f9d5db, #fffaf2);
}

.event-thumb {
  width: 72px;
  height: 86px;
  flex: 0 0 72px;
  overflow: hidden;
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(73, 52, 58, 0.12)),
    var(--pink-soft);
  box-shadow: inset 0 0 0 1px rgba(73, 52, 58, 0.08);
}

.event-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.event-card.featured .event-thumb {
  width: 96px;
  height: 120px;
  flex-basis: 96px;
}

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

.event-card.cream {
  background: #fffaf2;
}

.event-card.sage {
  background: #f8fff6;
}

.event-card.amber {
  background: #fff6e6;
}

.count-pill {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #fff;
  color: var(--clay);
  box-shadow: inset 0 0 0 1px var(--line);
}

.count-pill strong {
  display: block;
  font-size: 22px;
  line-height: 1;
}

.count-pill span {
  font-size: 11px;
}

.count-pill.small {
  width: auto;
  height: auto;
  min-width: 58px;
  padding: 9px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.chip-row {
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
}

.chip-row::-webkit-scrollbar {
  display: none;
}

.chip {
  min-height: 34px;
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 0 12px;
  background: #fff;
  color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--line);
}

.chip.active {
  background: var(--ink);
  color: #fff;
}

.date-card {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 50px rgba(194, 91, 110, 0.18);
}

.date-card-copy {
  padding: 16px;
}

.date-scene {
  height: 218px;
  border-radius: 0;
}

.date-card h3 {
  max-width: none;
  font-size: 30px;
}

.date-prep {
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.date-prep span {
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
}

.date-preference-panel {
  display: grid;
  gap: 10px;
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(255, 250, 242, 0.84), rgba(255, 242, 244, 0.72)),
    #fff;
}

.text-button.compact {
  min-height: 32px;
  padding-inline: 12px;
}

.preference-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.preference-tags span {
  border-radius: 999px;
  padding: 6px 9px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px var(--line);
}

.restaurant-stack {
  display: grid;
  gap: 8px;
}

.restaurant-chip-card {
  border: 1px solid rgba(73, 52, 58, 0.1);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.76);
}

.restaurant-chip-card.placeholder {
  border-style: dashed;
}

.restaurant-chip-card strong,
.restaurant-chip-card span,
.restaurant-chip-card p {
  display: block;
}

.restaurant-chip-card span,
.ai-connector-card span,
.connector-note span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.restaurant-chip-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.ai-connector-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-radius: 8px;
  padding: 12px;
  background: var(--ink);
  color: #fff;
}

.ai-connector-card h3 {
  margin: 0;
  font-size: 18px;
}

.ai-connector-card .eyebrow,
.ai-connector-card span {
  color: rgba(255, 255, 255, 0.72);
}

.ai-connector-card small {
  align-self: flex-start;
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
}

.ai-connector-card .soft-action {
  flex: 0 0 auto;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.date-request-card {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  border: 1px solid rgba(215, 129, 145, 0.2);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(255, 244, 247, 0.96), rgba(255, 253, 249, 0.82)),
    #fff;
  box-shadow: 0 18px 46px rgba(139, 86, 94, 0.12);
}

.template-deck-card .date-request-card {
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

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

.date-request-head h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.date-request-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.date-request-card textarea {
  width: 100%;
  min-height: 92px;
  border: 1px solid rgba(215, 129, 145, 0.2);
  border-radius: 8px;
  padding: 12px;
  resize: vertical;
  outline: 0;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  line-height: 1.55;
}

.date-request-card textarea:focus {
  border-color: rgba(215, 129, 145, 0.62);
  box-shadow: 0 0 0 3px rgba(244, 201, 207, 0.34);
}

.composer-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.composer-actions span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.composer-privacy-note {
  margin: -4px 0 0;
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.image-context-button {
  flex: 0 0 auto;
  border: 1px solid rgba(215, 129, 145, 0.22);
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--rose);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.ai-suggestion-card {
  margin-top: 12px;
  border: 1px solid rgba(215, 129, 145, 0.22);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(255, 247, 249, 0.98), rgba(255, 253, 249, 0.92) 58%, rgba(246, 237, 224, 0.68)),
    #fff;
  box-shadow: 0 18px 44px rgba(111, 78, 86, 0.1);
}

.ai-suggestion-card h3 {
  margin: 5px 0 8px;
  font-size: 19px;
  line-height: 1.24;
}

.ai-suggestion-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.ai-suggestion-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.ai-suggestion-meta span {
  border: 1px solid rgba(215, 129, 145, 0.18);
  border-radius: 999px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--clay);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
}

.ai-suggestion-card blockquote {
  margin: 12px 0 8px;
  border-left: 3px solid var(--rose);
  padding-left: 10px;
  color: var(--rose-dark);
  font-weight: 850;
}

.ai-suggestion-card small {
  color: var(--muted);
  line-height: 1.55;
}

.ai-suggestion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.ai-suggestion-card.loading {
  background:
    linear-gradient(120deg, rgba(255, 246, 248, 0.96), rgba(255, 255, 255, 0.72), rgba(255, 246, 248, 0.96)),
    #fff;
}

.ai-suggestion-card.error {
  border-color: rgba(183, 91, 91, 0.22);
  background: rgba(255, 248, 246, 0.94);
}

.highlight-compose-card {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  border: 1px solid rgba(215, 129, 145, 0.2);
  border-radius: 8px;
  padding: 14px;
  background:
    radial-gradient(circle at 96% 0%, rgba(244, 201, 207, 0.4), transparent 28%),
    linear-gradient(145deg, rgba(255, 247, 249, 0.98), rgba(255, 253, 249, 0.9)),
    #fff;
  box-shadow: 0 18px 42px rgba(111, 78, 86, 0.1);
}

.highlight-compose-card h3 {
  margin: 4px 0 6px;
  font-size: 18px;
  line-height: 1.25;
}

.highlight-compose-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.highlight-compose-card label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.highlight-compose-card input,
.highlight-compose-card textarea,
.highlight-compose-card select {
  width: 100%;
  border: 1px solid rgba(215, 129, 145, 0.2);
  border-radius: 8px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  outline: 0;
  line-height: 1.45;
}

.highlight-compose-card textarea {
  min-height: 86px;
  resize: vertical;
}

.highlight-compose-card input:focus,
.highlight-compose-card textarea:focus,
.highlight-compose-card select:focus {
  border-color: rgba(215, 129, 145, 0.62);
  box-shadow: 0 0 0 3px rgba(244, 201, 207, 0.34);
}

.highlight-compose-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.live-ai-card {
  margin-top: 10px;
  border: 1px solid rgba(215, 129, 145, 0.2);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(255, 246, 248, 0.96), rgba(255, 253, 249, 0.88)),
    #fff;
  box-shadow: 0 16px 38px rgba(111, 78, 86, 0.08);
}

.live-ai-card h3 {
  margin: 4px 0 8px;
  font-size: 17px;
  line-height: 1.25;
}

.live-ai-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.request-echo {
  margin: 0 0 10px;
  border: 1px solid rgba(215, 129, 145, 0.18);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 242, 244, 0.58);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.route-steps {
  display: grid;
  gap: 9px;
  margin: 14px 0;
  padding: 0;
  color: var(--ink);
  list-style: none;
}

.route-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  border: 1px solid rgba(73, 52, 58, 0.08);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.route-steps li span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pink-soft);
  color: var(--rose);
  font-size: 11px;
  font-weight: 900;
}

.route-steps li strong {
  min-width: 0;
  line-height: 1.48;
}

.live-ai-card blockquote {
  margin: 12px 0 8px;
  border-left: 3px solid var(--rose);
  padding-left: 10px;
  color: var(--rose-dark);
  font-weight: 800;
}

.live-ai-card small {
  color: var(--muted);
  line-height: 1.55;
}

.live-ai-card.loading {
  background:
    linear-gradient(120deg, rgba(255, 246, 248, 0.96), rgba(255, 255, 255, 0.72), rgba(255, 246, 248, 0.96)),
    #fff;
}

.live-ai-card.error {
  border-color: rgba(183, 91, 91, 0.22);
  background: rgba(255, 248, 246, 0.94);
}

@media (max-width: 560px) {
  .composer-actions {
    grid-template-columns: 1fr;
  }
}

.prompt-preview {
  color: var(--muted);
  font-size: 12px;
}

.prompt-preview summary {
  cursor: pointer;
  font-weight: 800;
}

.prompt-preview pre {
  overflow: auto;
  margin: 8px 0 0;
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.idea-slip {
  min-height: 150px;
  overflow: hidden;
  padding: 12px;
  text-align: left;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 0 1px var(--line);
}

.slip-scene {
  height: 72px;
  margin: -12px -12px 10px;
  border-radius: 8px 8px 4px 4px;
}

.idea-slip strong,
.idea-slip span {
  display: block;
}

.idea-slip span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.month-summary {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  align-items: stretch;
  padding: 16px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff8f5, #fff);
}

.summary-scene {
  min-height: 118px;
}

.memory-note {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  padding: 12px;
}

.memory-photo {
  width: 78px;
  min-height: 94px;
  overflow: hidden;
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(73, 52, 58, 0.12)),
    linear-gradient(135deg, var(--pink), var(--cream));
}

.memory-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.travel-memory-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.travel-hero,
.travel-card,
.future-travel-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.78);
}

.travel-hero {
  position: relative;
  min-height: 238px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.travel-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.travel-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(73, 52, 58, 0.02), rgba(73, 52, 58, 0.68)),
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.38), transparent 30%);
}

.travel-hero > div {
  position: relative;
  z-index: 1;
  color: #fff;
}

.travel-hero .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.travel-hero h3 {
  max-width: 320px;
  margin: 4px 0 8px;
  font-size: 24px;
  line-height: 1.16;
}

.travel-hero span {
  display: block;
  max-width: 330px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  line-height: 1.55;
}

.travel-split {
  display: grid;
  gap: 10px;
}

.travel-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 10px;
}

.travel-card img {
  width: 110px;
  height: 148px;
  border-radius: 7px;
  object-fit: cover;
}

.travel-card h3,
.future-travel-card h3 {
  margin: 3px 0 4px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.12;
}

.travel-card strong,
.future-travel-card strong {
  display: block;
  color: var(--clay);
  font-size: 13px;
  line-height: 1.35;
}

.travel-card p,
.future-travel-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.future-travel-list {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 242, 244, 0.74), rgba(251, 247, 239, 0.86)),
    var(--paper);
}

.future-travel-card {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 11px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.64);
}

.future-travel-card img {
  width: 86px;
  height: 112px;
  border-radius: 7px;
  object-fit: cover;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag-row span {
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(149, 160, 131, 0.14);
  color: #657052;
  font-size: 11px;
  font-weight: 780;
}

.couple-card,
.pet-card {
  padding: 18px;
  margin-bottom: 12px;
}

.home-profile {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  margin-bottom: 12px;
  background:
    radial-gradient(circle at 14% 15%, rgba(255, 255, 255, 0.85), transparent 24%),
    linear-gradient(135deg, #f5c8cf, #fff7f5 58%, #fffaf2);
}

.home-profile h3 {
  font-size: 24px;
  line-height: 1.18;
}

.profile-subline {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.35;
}

.member-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.member-card {
  min-height: 238px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
}

.member-card.rose {
  background:
    linear-gradient(145deg, rgba(255, 242, 244, 0.88), rgba(255, 255, 255, 0.8)),
    var(--pet-cover) center 42% / cover;
}

.member-card.cream {
  background:
    linear-gradient(145deg, rgba(255, 250, 242, 0.88), rgba(255, 255, 255, 0.82)),
    var(--pet-cover) center 44% / cover;
}

.member-card .pet-face {
  width: 72px;
  height: 72px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.9);
}

.member-card h3 {
  font-size: 24px;
  line-height: 1;
}

.pet-folder {
  display: grid;
  gap: 7px;
}

.pet-folder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.pet-folder-head small {
  color: var(--clay);
}

.pet-photo-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.pet-photo-strip::-webkit-scrollbar {
  display: none;
}

.pet-thumb {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  overflow: hidden;
  border-radius: 8px;
  padding: 0;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(73, 52, 58, 0.1);
}

.pet-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.pet-thumb.active {
  box-shadow:
    inset 0 0 0 2px var(--ink),
    0 8px 18px rgba(73, 52, 58, 0.12);
}

.couple-card {
  background: linear-gradient(135deg, #f5c8cf, #fff7f5 62%, #fffaf2);
}

.couple-card .primary-button {
  margin-top: 16px;
}

.settings-list {
  margin-bottom: 12px;
}

.settings-list article,
.pet-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
}

.settings-list span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--pink-soft);
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
}

.mood-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.mood-list .eyebrow {
  grid-column: 1 / -1;
}

.mood-chip {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.mood-chip span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--pink-soft);
  color: var(--pink-strong);
}

.mood-chip.active {
  background: var(--ink);
  color: #fff;
}

.reset-button {
  width: 100%;
  margin-top: 14px;
  color: var(--muted);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
}

.template-stage {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(360px, 500px) minmax(240px, 0.58fr);
  gap: 30px;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.template-brand-panel,
.template-note-panel {
  max-width: 380px;
}

.template-brand-panel h1 {
  margin: 14px 0 12px;
  font-size: 44px;
  line-height: 1.04;
  text-wrap: balance;
}

.template-brand-panel p,
.template-note-panel p,
.template-mini-preview span,
.template-hero-card p,
.template-step-head p,
.template-result-card p,
.template-next-panel p,
.template-upload-control small {
  color: var(--muted);
  line-height: 1.65;
}

.template-brand-visual {
  width: min(100%, 340px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 8px;
  box-shadow:
    0 26px 76px rgba(139, 86, 94, 0.16),
    0 0 0 8px rgba(255, 255, 255, 0.24);
}

.template-brand-visual img,
.template-result-photo img,
.template-member-mini img,
.template-upload-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.template-privacy-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.template-privacy-strip span,
.template-privacy-note,
.template-mini-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
}

.template-privacy-strip span {
  padding: 7px 10px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
}

.template-shell {
  height: min(860px, calc(100vh - 38px));
  min-height: 680px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 32px;
  background:
    radial-gradient(circle at 18% 0%, rgba(244, 201, 207, 0.26), transparent 28%),
    linear-gradient(180deg, rgba(255, 248, 248, 0.98), rgba(255, 253, 249, 0.98)),
    var(--paper);
  box-shadow: 0 28px 86px rgba(105, 64, 72, 0.22);
}

.template-topbar {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px;
  border-bottom: 1px solid rgba(73, 52, 58, 0.06);
  background: rgba(255, 250, 250, 0.88);
  backdrop-filter: blur(18px);
}

.template-topbar h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.18;
}

.template-screen {
  height: calc(100% - 92px);
  overflow: auto;
  padding: 18px 18px 34px;
  scrollbar-width: none;
}

.template-screen::-webkit-scrollbar {
  display: none;
}

.template-hero-card,
.template-form-card,
.template-result-hero,
.template-result-card,
.template-next-panel {
  border: 1px solid rgba(73, 52, 58, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 44px rgba(139, 86, 94, 0.1);
}

.template-hero-card {
  display: grid;
  gap: 18px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 252, 250, 0.86), rgba(255, 244, 247, 0.66)),
    #fff;
}

.template-hero-copy h3,
.template-step-head h3,
.template-result-hero h3,
.template-next-panel h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.16;
  text-wrap: balance;
}

.template-choice-grid {
  display: grid;
  gap: 10px;
}

.template-mobile-install-shortcut {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(137, 75, 94, 0.12);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 247, 248, 0.78);
  color: var(--clay);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
}

.template-mobile-install-shortcut span {
  min-width: 0;
}

.template-mobile-install-shortcut .text-button {
  flex: 0 0 auto;
}

.template-inline-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.template-inline-trust span {
  border: 1px solid rgba(233, 166, 176, 0.22);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 247, 248, 0.86);
  color: var(--clay);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.1;
}

.template-promise-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.template-promise-strip span {
  border: 1px solid rgba(137, 75, 94, 0.11);
  border-radius: 999px;
  padding: 8px 11px;
  background: linear-gradient(135deg, rgba(255, 238, 243, 0.9), rgba(255, 251, 247, 0.9));
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(139, 86, 94, 0.07);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
}

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

.template-start-path article {
  min-width: 0;
  border: 1px solid rgba(73, 52, 58, 0.09);
  border-radius: 8px;
  padding: 11px 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 244, 247, 0.58)),
    #fff;
}

.template-start-path span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--pink-soft);
  color: var(--rose);
  font-size: 12px;
  font-weight: 900;
}

.template-start-path strong,
.template-start-path small {
  display: block;
}

.template-start-path strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
}

.template-start-path small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.template-preview-strip {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 8px;
}

.template-preview-strip figure {
  min-height: 112px;
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(73, 52, 58, 0.08);
  border-radius: 8px;
  background: var(--pink-soft);
}

.template-preview-strip figure:first-child {
  min-height: 142px;
}

.template-preview-strip img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.template-preview-strip figcaption {
  position: absolute;
  left: 8px;
  bottom: 8px;
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
}

.template-mobile-save-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(137, 75, 94, 0.12);
  border-radius: 8px;
  padding: 12px;
  background:
    radial-gradient(circle at 94% 12%, rgba(244, 201, 207, 0.42), transparent 32%),
    linear-gradient(135deg, rgba(255, 249, 250, 0.96), rgba(255, 253, 247, 0.9)),
    #fff;
  box-shadow: 0 14px 34px rgba(139, 86, 94, 0.07);
}

.template-mobile-save-card span,
.template-mobile-save-card strong,
.template-mobile-save-card small {
  display: block;
}

.template-mobile-save-card > div:first-child > span {
  margin-bottom: 4px;
  color: var(--rose);
  font-size: 12px;
  font-weight: 900;
}

.template-mobile-save-card strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.template-mobile-save-card small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.template-mobile-save-steps {
  display: grid;
  gap: 6px;
  min-width: 172px;
}

.template-mobile-save-steps span {
  border-radius: 999px;
  padding: 7px 9px;
  background: rgba(255, 238, 243, 0.78);
  color: var(--clay);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
}

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

.template-seed-grid span {
  min-height: 38px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(73, 52, 58, 0.09);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(255, 248, 249, 0.78);
  color: var(--clay);
  font-size: 12px;
  font-weight: 850;
}

.template-choice-card {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.template-choice-card span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  grid-row: span 2;
  border-radius: 50%;
  background: var(--pink-soft);
  color: var(--rose);
  font-weight: 900;
}

.template-choice-card small {
  color: var(--muted);
}

.template-choice-card.active {
  background: linear-gradient(135deg, #fff7f5, #fff, #f7efe2);
  border-color: rgba(215, 129, 145, 0.34);
}

.template-choice-card.sample {
  background:
    linear-gradient(135deg, rgba(73, 52, 58, 0.96), rgba(126, 76, 89, 0.94)),
    var(--ink);
  color: #fff;
  box-shadow: 0 16px 38px rgba(73, 52, 58, 0.18);
}

.template-choice-card.sample span {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.template-choice-card.sample small {
  color: rgba(255, 255, 255, 0.72);
}

.template-form-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.template-step-card .template-step-head {
  grid-template-columns: 1fr;
  gap: 8px;
}

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

.template-step-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

.template-step-head > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}

.template-form-card label,
.template-upload-control {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.template-form-card input,
.template-form-card select {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
  outline: 0;
}

.template-form-card input[type='file'] {
  padding: 10px;
}

.template-photo-field small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.template-form-actions {
  display: grid;
  grid-template-columns: 0.8fr 0.8fr 1.3fr;
  gap: 8px;
  align-items: center;
}

.template-privacy-note {
  margin: 0;
  padding: 11px 12px;
  font-size: 12px;
}

.template-upload-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
}

.template-upload-preview {
  width: 96px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px dashed rgba(73, 52, 58, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(244, 201, 207, 0.55), rgba(255, 255, 255, 0.85)),
    var(--pink-soft);
  color: var(--rose);
  font-weight: 900;
}

.template-result-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 14px;
  align-items: stretch;
  padding: 16px;
  margin-bottom: 14px;
  background:
    radial-gradient(circle at 96% 12%, rgba(228, 196, 150, 0.34), transparent 24%),
    linear-gradient(135deg, rgba(255, 242, 244, 0.96), rgba(255, 253, 249, 0.86)),
    #fff;
}

.template-result-hero > div {
  min-width: 0;
}

.template-result-hero p,
.template-result-hero h3 {
  overflow-wrap: anywhere;
}

.template-result-page-anchor {
  scroll-margin-top: 12px;
}

.template-result-photo {
  min-width: 0;
  min-height: 150px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--pink-soft);
}

.template-trial-status,
.template-trial-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
  border: 1px solid rgba(215, 129, 145, 0.2);
  border-radius: 8px;
  padding: 13px;
  background:
    linear-gradient(135deg, rgba(255, 247, 248, 0.94), rgba(255, 253, 249, 0.9)),
    #fff;
  box-shadow: 0 14px 34px rgba(139, 86, 94, 0.08);
}

.template-trial-status {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.template-trial-panel.danger {
  border-color: rgba(159, 79, 89, 0.34);
  background:
    linear-gradient(135deg, rgba(255, 242, 243, 0.96), rgba(255, 250, 246, 0.92)),
    #fff;
  box-shadow: 0 16px 34px rgba(123, 54, 66, 0.12);
}

.template-trial-status h3,
.template-trial-panel h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.template-trial-status p,
.template-trial-panel p,
.template-data-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.template-trial-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.template-activation-checklist {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
  border: 1px solid rgba(215, 129, 145, 0.18);
  border-radius: 8px;
  padding: 13px;
  background:
    linear-gradient(135deg, rgba(255, 252, 250, 0.94), rgba(255, 244, 247, 0.86)),
    #fff;
  box-shadow: 0 14px 34px rgba(139, 86, 94, 0.07);
}

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

.template-activation-head h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.template-activation-head > span {
  min-width: 46px;
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--pink-soft);
  color: var(--rose);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

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

.template-activation-item {
  min-width: 0;
  display: grid;
  gap: 6px;
  align-content: start;
  border: 1px solid rgba(73, 52, 58, 0.09);
  border-radius: 8px;
  padding: 11px 10px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  text-align: left;
}

.template-activation-item span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(244, 201, 207, 0.72);
  color: var(--rose);
  font-size: 11px;
  font-weight: 900;
}

.template-activation-item strong {
  font-size: 13px;
  line-height: 1.28;
}

.template-activation-item small,
.template-activation-checklist p {
  color: var(--muted);
  line-height: 1.55;
}

.template-activation-item small {
  font-size: 11px;
}

.template-activation-item.done {
  background:
    linear-gradient(135deg, rgba(255, 249, 242, 0.9), rgba(255, 255, 255, 0.86)),
    #fff;
  border-color: rgba(228, 196, 150, 0.34);
}

.template-activation-item.done span {
  background: rgba(228, 196, 150, 0.35);
  color: var(--clay);
}

.template-activation-checklist p {
  margin: 0;
  font-size: 12px;
}

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

.template-feedback-form {
  display: grid;
  gap: 12px;
}

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

.template-feedback-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid rgba(73, 52, 58, 0.1);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}

.template-feedback-form textarea {
  width: 100%;
  min-height: 84px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
  outline: 0;
}

.share-link-box textarea {
  width: 100%;
  min-height: 96px;
  margin-top: 8px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
  word-break: break-all;
  outline: 0;
}

.template-data-list {
  display: grid;
  gap: 8px;
}

.template-data-list p {
  border: 1px solid rgba(73, 52, 58, 0.08);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.64);
}

.template-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.template-result-actions button {
  min-width: 118px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal;
  line-height: 1.2;
}

.template-section-stack {
  display: grid;
  gap: 10px;
}

.template-result-tabs {
  display: flex;
  gap: 7px;
  margin: 0 0 12px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.template-result-tabs::-webkit-scrollbar {
  display: none;
}

.template-result-tabs button {
  min-height: 36px;
  flex: 0 0 auto;
  border: 1px solid rgba(73, 52, 58, 0.1);
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  box-shadow: none;
}

.template-result-tabs button.active {
  border-color: rgba(215, 129, 145, 0.3);
  background: var(--ink);
  color: #fff;
}

.template-result-card {
  padding: 14px;
}

.template-result-card h3 {
  margin: 0 0 7px;
  font-size: 21px;
  line-height: 1.2;
}

.template-result-card.today {
  background: linear-gradient(135deg, #fff, #fff2f4 55%, #f9efe2);
}

.template-result-card.outing {
  border-color: rgba(149, 160, 131, 0.25);
}

.template-deck-card {
  display: grid;
  gap: 12px;
}

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

.template-deck-head span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--pink-soft);
  color: var(--clay);
  font-size: 11px;
  font-weight: 900;
}

.template-anniversary-list,
.template-outing-list,
.template-highlight-list,
.template-pillar-grid {
  display: grid;
  gap: 8px;
}

.template-anniversary-list article,
.template-outing-list article,
.template-highlight-list article,
.template-pillar-grid article {
  border: 1px solid rgba(73, 52, 58, 0.08);
  border-radius: 8px;
  padding: 11px;
  background: rgba(255, 253, 249, 0.78);
}

.template-anniversary-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.template-anniversary-list strong,
.template-outing-list strong,
.template-highlight-list strong,
.template-pillar-grid strong {
  display: block;
  line-height: 1.25;
}

.template-anniversary-list span,
.template-outing-list span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.template-outing-list p,
.template-highlight-list p,
.template-pillar-grid p {
  margin: 6px 0 0;
  font-size: 13px;
}

.template-pillar-card {
  background:
    linear-gradient(135deg, rgba(255, 248, 249, 0.94), rgba(255, 253, 249, 0.82)),
    #fff;
}

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

.template-pillar-grid article {
  min-height: 132px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 246, 248, 0.68)),
    rgba(255, 253, 249, 0.86);
}

.template-pillar-grid article > span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--pink-soft);
  color: var(--rose);
  font-size: 11px;
  font-weight: 900;
}

.template-outing-list article.agent {
  background:
    linear-gradient(135deg, rgba(255, 242, 244, 0.92), rgba(251, 247, 239, 0.92)),
    #fff;
  border-color: rgba(215, 129, 145, 0.22);
}

.template-outing-list article {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 10px;
  align-items: stretch;
}

.template-outing-list article img {
  width: 82px;
  height: 100%;
  min-height: 82px;
  border-radius: 8px;
  object-fit: cover;
}

.template-highlight-list article {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 10px;
  align-items: stretch;
}

.template-highlight-media {
  min-height: 82px;
  position: relative;
  display: grid;
  place-items: end start;
  overflow: hidden;
  border-radius: 8px;
  padding: 8px;
  background:
    linear-gradient(150deg, rgba(244, 201, 207, 0.78), rgba(255, 255, 255, 0.72)),
    var(--pink-soft);
}

.template-highlight-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.template-highlight-media span {
  position: relative;
  z-index: 1;
  border-radius: 999px;
  padding: 4px 7px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--rose);
  font-size: 11px;
  font-weight: 900;
}

.template-highlight-list article.media-video .template-highlight-media {
  background:
    linear-gradient(150deg, rgba(138, 119, 128, 0.78), rgba(255, 238, 231, 0.82)),
    var(--clay);
}

.template-highlight-list article.media-letter .template-highlight-media {
  background:
    linear-gradient(150deg, rgba(251, 247, 239, 0.95), rgba(244, 201, 207, 0.5)),
    var(--paper);
}

.template-member-mini {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
}

.template-member-mini img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
}

.template-next-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  background: rgba(251, 247, 239, 0.8);
}

.template-mini-preview {
  display: grid;
  gap: 7px;
  padding: 14px;
}

.template-mini-preview strong {
  line-height: 1.25;
}

.note-block {
  border-left: 2px solid var(--pink-strong);
  padding: 0 0 0 16px;
  margin-bottom: 18px;
}

.template-assist-list {
  display: grid;
  gap: 9px;
  margin-bottom: 18px;
}

.template-assist-list article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  border: 1px solid rgba(73, 52, 58, 0.08);
  border-radius: 8px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.5);
}

.template-assist-list span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  grid-row: span 2;
  border-radius: 50%;
  background: var(--pink-soft);
  color: var(--rose);
  font-size: 10px;
  font-weight: 900;
}

.template-assist-list strong {
  line-height: 1.25;
}

.template-assist-list p {
  margin: 0;
  font-size: 12px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: end center;
  padding: 18px;
  background: rgba(53, 35, 39, 0.24);
  backdrop-filter: blur(12px);
}

.modal-card {
  width: min(420px, 100%);
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.modal-card label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.modal-card input,
.modal-card textarea,
.modal-card select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  background: #fff;
  color: var(--ink);
  outline: 0;
}

.modal-card textarea {
  resize: vertical;
}

.date-settings-modal {
  max-height: calc(100vh - 36px);
  overflow: auto;
}

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

.connector-note {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(73, 52, 58, 0.1);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 242, 244, 0.72);
}

.ritual-modal {
  max-height: calc(100vh - 36px);
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(255, 242, 244, 0.94), rgba(255, 253, 249, 0.98)),
    var(--paper);
}

.ritual-modal .modal-head h2 {
  font-size: 26px;
  line-height: 1.18;
  text-wrap: balance;
}

.ritual-hero {
  height: 220px;
}

.ritual-entry {
  justify-self: start;
}

.event-card.clickable {
  cursor: pointer;
}

.event-card.clickable:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.music-panel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.music-panel.reserved {
  grid-template-columns: auto 1fr;
}

.music-panel.reserved .music-actions {
  grid-column: 1 / -1;
  justify-content: flex-start;
}

.music-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.music-provider {
  border: 1px solid rgba(74, 48, 58, 0.16);
  border-radius: 999px;
  min-height: 36px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.music-provider:hover {
  border-color: rgba(74, 48, 58, 0.34);
  background: rgba(255, 247, 249, 0.92);
}

.music-panel strong,
.letter-paper strong {
  display: block;
  color: var(--ink);
}

.music-panel p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.music-mark {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 4px;
  border-radius: 50%;
  background: var(--ink);
}

.music-mark span {
  width: 4px;
  height: 12px;
  border-radius: 999px;
  background: #fff;
  opacity: 0.82;
}

.music-panel.playing .music-mark span {
  animation: musicPulse 0.82s ease-in-out infinite;
}

.music-panel.playing .music-mark span:nth-child(2) {
  animation-delay: 0.14s;
}

.music-panel.playing .music-mark span:nth-child(3) {
  animation-delay: 0.28s;
}

.letter-paper {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(233, 166, 176, 0.38);
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 250, 242, 0.82)),
    #fff;
}

.letter-status {
  display: grid;
  gap: 8px;
}

.letter-status span {
  width: fit-content;
  border: 1px solid rgba(233, 166, 176, 0.42);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--rose);
  font-size: 12px;
  background: rgba(255, 244, 246, 0.92);
}

.letter-status h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.45;
  font-weight: 650;
}

.letter-paper p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.letter-draft-grid {
  display: grid;
  gap: 8px;
}

.letter-draft-grid span {
  display: block;
  border: 1px solid rgba(116, 94, 90, 0.12);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  background: rgba(255, 255, 255, 0.62);
}

.letter-process-note {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(233, 166, 176, 0.28);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(255, 244, 246, 0.9), rgba(255, 253, 249, 0.92)),
    rgba(255, 255, 255, 0.82);
}

.letter-process-note span {
  justify-self: start;
  border: 1px solid rgba(233, 166, 176, 0.3);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--rose);
  background: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 850;
}

.letter-process-note h4 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
}

.letter-process-note p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.68;
}

.letter-framework {
  display: grid;
  gap: 10px;
}

.letter-body-flow {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(116, 94, 90, 0.1);
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.74), rgba(255, 247, 249, 0.64)),
    rgba(255, 255, 255, 0.62);
}

.letter-flow-section {
  display: grid;
  gap: 10px;
  padding: 8px 0 14px;
  border-bottom: 1px solid rgba(116, 94, 90, 0.08);
}

.letter-flow-section:last-child {
  padding-bottom: 4px;
  border-bottom: 0;
}

.letter-flow-symbol {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(233, 166, 176, 0.26);
  border-radius: 999px;
  color: var(--rose);
  background: rgba(255, 255, 255, 0.76);
  font-size: 15px;
  line-height: 1;
}

.letter-flow-copy {
  display: grid;
  gap: 10px;
}

.letter-flow-copy p,
.letter-body-flow p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.78;
}

.letter-visual {
  display: grid;
  gap: 8px;
  margin: 2px 0 0;
  overflow: hidden;
  border: 1px solid rgba(116, 94, 90, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 244, 246, 0.58)),
    rgba(255, 255, 255, 0.72);
}

.letter-visual-images {
  display: grid;
  gap: 4px;
  min-height: 154px;
}

.letter-visual-images.image-count-1 {
  grid-template-columns: 1fr;
}

.letter-visual-images.image-count-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.letter-visual-images.image-count-3 {
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.letter-visual-images.image-count-3 img:first-child {
  grid-row: 1 / -1;
}

.letter-visual img {
  width: 100%;
  height: 100%;
  min-height: 154px;
  object-fit: cover;
}

.letter-visual-images.image-count-3 img {
  min-height: 92px;
}

.letter-visual figcaption {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 8px;
  align-items: center;
  padding: 0 11px 11px;
}

.letter-visual figcaption span {
  color: var(--rose);
  font-size: 12px;
}

.letter-visual figcaption strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
}

.letter-visual figcaption small {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.letter-framework-note {
  border: 1px solid rgba(233, 166, 176, 0.26);
  border-radius: 8px;
  padding: 11px 12px;
  background: rgba(255, 244, 246, 0.58);
  color: var(--ink);
  font-weight: 650;
}

.letter-section {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  border: 1px solid rgba(116, 94, 90, 0.12);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.68);
}

.letter-section-index {
  color: var(--rose);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.letter-section h4 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
}

.letter-section p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.letter-section-body {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.letter-section-body p {
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.72;
}

.letter-placeholder {
  margin-top: 10px;
  border: 1px dashed rgba(74, 48, 58, 0.2);
  border-radius: 8px;
  padding: 10px 11px;
  color: rgba(74, 48, 58, 0.58);
  font-size: 13px;
  line-height: 1.55;
  background: rgba(255, 250, 247, 0.78);
}

@keyframes musicPulse {
  0%,
  100% {
    height: 10px;
  }
  50% {
    height: 24px;
  }
}

.toast {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 24px;
  max-width: min(420px, calc(100vw - 32px));
  transform: translateX(-50%);
  border-radius: 999px;
  padding: 12px 16px;
  background: rgba(73, 52, 58, 0.92);
  color: #fff;
  box-shadow: 0 18px 48px rgba(73, 52, 58, 0.25);
}

@media (max-width: 1020px) {
  .app-stage,
  .template-stage {
    grid-template-columns: minmax(320px, 420px);
    padding: 18px;
  }

  .desktop-story,
  .desktop-notes,
  .template-brand-panel,
  .template-note-panel {
    display: none;
  }
}

@media (max-width: 520px) {
  .app-stage,
  .template-stage {
    min-height: 100vh;
    padding: 0;
  }

  .phone-shell,
  .template-shell {
    width: 100%;
    height: 100vh;
    min-height: 0;
    border: 0;
    border-radius: 0;
  }

  .screen {
    height: calc(100% - 168px);
    padding-inline: 14px;
    padding-bottom: 108px;
  }

  .app-topbar {
    padding-inline: 18px;
  }

  .template-topbar {
    min-height: 86px;
    padding: 18px;
  }

  .template-topbar h2 {
    font-size: 20px;
  }

  .template-screen {
    height: calc(100% - 86px);
    padding: 14px 14px 28px;
  }

  .template-hero-copy h3,
  .template-step-head h3,
  .template-result-hero h3,
  .template-next-panel h3 {
    font-size: 24px;
  }

  .template-form-actions {
    grid-template-columns: 1fr;
  }

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

  .template-upload-row,
  .template-result-hero,
  .template-member-mini,
  .template-trial-status {
    grid-template-columns: minmax(0, 1fr);
  }

  .template-result-hero figure {
    max-height: 240px;
    min-height: 0;
    overflow: hidden;
    border-radius: 8px;
  }

  .template-result-hero figure img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
  }

  .template-trial-actions,
  .template-panel-head {
    justify-content: stretch;
  }

  .template-trial-actions,
  .template-panel-head,
  .template-feedback-options {
    grid-template-columns: 1fr;
  }

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

  .template-trial-actions,
  .template-panel-head {
    display: grid;
  }

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

  .template-choice-grid {
    gap: 7px;
  }

  .template-choice-card {
    padding: 10px;
  }

  .template-choice-card span {
    width: 28px;
    height: 28px;
    grid-row: span 1;
    font-size: 12px;
  }

  .template-choice-card small {
    display: none;
  }

  .template-mobile-install-shortcut {
    padding: 8px 10px;
  }

  .template-start-path {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .template-start-path article {
    padding: 8px 7px;
  }

  .template-start-path span {
    width: 22px;
    height: 22px;
    margin-bottom: 6px;
    font-size: 11px;
  }

  .template-start-path strong {
    font-size: 11px;
    line-height: 1.24;
  }

  .template-start-path small {
    display: none;
  }

  .template-preview-strip {
    grid-template-columns: repeat(3, minmax(124px, 1fr));
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .template-preview-strip::-webkit-scrollbar {
    display: none;
  }

  .template-preview-strip figure,
  .template-preview-strip figure:first-child {
    min-height: 124px;
  }

  .template-mobile-save-card {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .template-mobile-save-steps {
    display: none;
    min-width: 0;
  }

  .template-result-tabs {
    margin-inline: -2px;
  }

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

  .template-deck-head,
  .template-anniversary-list article {
    align-items: flex-start;
    flex-direction: column;
  }

  .template-upload-preview {
    width: 100%;
    max-height: 210px;
  }

  .template-result-photo {
    min-height: 188px;
  }

  .template-member-mini img {
    width: 100%;
    height: 160px;
  }

  .template-outing-list article,
  .template-highlight-list article {
    grid-template-columns: 74px 1fr;
  }

  .template-outing-list article img,
  .template-highlight-media {
    width: 74px;
    min-height: 74px;
  }

  .template-result-actions {
    display: grid;
  }

  .highlight-compose-actions {
    grid-template-columns: 1fr;
  }

  .action-row {
    overflow-x: auto;
  }

  .action-row .soft-action {
    flex: 0 0 auto;
  }

  .date-scene {
    height: 174px;
  }

  .date-card-copy {
    padding: 14px;
  }

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

  .date-prep {
    margin-top: 12px;
    padding: 10px;
  }

  .launch-milestone {
    grid-template-columns: 1fr;
  }

  .milestone-scene {
    min-height: 142px;
  }

  .launch-copy h3 {
    font-size: 22px;
  }

  .pinned-highlight-card {
    grid-template-columns: 1fr;
  }

  .pinned-highlight-scene {
    min-height: 148px;
  }

  .event-card {
    gap: 10px;
  }

  .event-thumb {
    width: 64px;
    height: 80px;
    flex-basis: 64px;
  }

  .event-card.featured .event-thumb {
    width: 82px;
    height: 108px;
    flex-basis: 82px;
  }

  .count-pill {
    width: 52px;
    height: 52px;
  }

  .ritual-hero {
    height: 178px;
  }

  .ritual-modal .modal-head {
    align-items: flex-start;
    gap: 10px;
  }

  .ritual-modal .modal-head h2 {
    font-size: 23px;
  }

  .music-panel {
    grid-template-columns: auto 1fr;
  }

  .music-panel .text-button,
  .music-actions {
    grid-column: 1 / -1;
  }

  .music-provider {
    flex: 1;
  }

  .letter-section {
    grid-template-columns: 1fr;
  }

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