:root {
  --bg: rgb(255 246 250);
  --bg-strong: rgb(255 236 244);
  --paper: rgba(255, 255, 255, 0.9);
  --paper-strong: rgb(255 255 255);
  --strawberry: rgb(255 146 190);
  --bubblegum: rgb(255 204 228);
  --peach: rgb(255 220 197);
  --butter: rgb(255 235 166);
  --sky: rgb(186 229 255);
  --mint: rgb(192 248 229);
  --lilac: rgb(223 205 255);
  --berry: rgb(201 126 187);
  --ink: rgb(102 72 110);
  --ink-soft: rgb(140 106 144);
  --line: rgba(220, 179, 207, 0.45);
  --line-strong: rgba(200, 154, 191, 0.74);
  --shadow: 0 18px 40px rgba(223, 163, 196, 0.2);
  --shadow-lift: 0 28px 70px rgba(204, 150, 194, 0.22);
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 999px;
  --font-ui: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  --font-display: "Hannotate SC", "YouYuan", "STKaiti", "PingFang SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-ui);
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 183, 218, 0.62), transparent 22%),
    radial-gradient(circle at 85% 8%, rgba(189, 228, 255, 0.72), transparent 22%),
    radial-gradient(circle at 15% 85%, rgba(255, 222, 185, 0.62), transparent 24%),
    radial-gradient(circle at 88% 78%, rgba(195, 248, 229, 0.72), transparent 23%),
    linear-gradient(180deg, rgb(255 248 251) 0%, rgb(255 244 249) 46%, rgb(247 246 255) 100%);
  overflow-x: hidden;
}

body.sheet-open {
  overflow: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.46) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.46) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.26;
}

body::after {
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 1.5px, transparent 1.7px),
    radial-gradient(circle, rgba(255, 190, 219, 0.52) 0 1.4px, transparent 1.6px),
    radial-gradient(circle, rgba(191, 231, 255, 0.56) 0 1.4px, transparent 1.6px);
  background-position: 0 0, 14px 18px, 32px 10px;
  background-size: 82px 82px, 90px 90px, 100px 100px;
  opacity: 0.56;
}

.page-shell {
  position: relative;
  width: min(1380px, calc(100vw - 24px));
  margin: 0 auto;
  padding: 22px 0 156px;
}

.floating-sparkles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.floating-sparkles span {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.66);
  color: var(--berry);
  box-shadow: var(--shadow);
  animation: floatSticker 8s ease-in-out infinite;
}

.floating-sparkles span:nth-child(1) {
  left: 3%;
  top: 20%;
}

.floating-sparkles span:nth-child(2) {
  right: 10%;
  top: 14%;
  animation-delay: -2.5s;
}

.floating-sparkles span:nth-child(3) {
  left: 8%;
  bottom: 24%;
  animation-delay: -1.2s;
}

.floating-sparkles span:nth-child(4) {
  right: 6%;
  bottom: 18%;
  animation-delay: -4.2s;
}

.floating-sparkles span:nth-child(5) {
  left: 48%;
  top: 6%;
  animation-delay: -1.8s;
}

.floating-sparkles span:nth-child(6) {
  right: 28%;
  bottom: 8%;
  animation-delay: -3.3s;
}

.sticker-panel,
.story-card,
.stat-card,
.control-card,
.result-toolbar,
.dish-card,
.planner-card,
.recommend-card,
.planned-row,
.history-row,
.summary-pill,
.insight-pill,
.mini-love-note {
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.sticker-panel::before,
.planner-card::before,
.story-card::before,
.mini-love-note::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 18px;
  width: 76px;
  height: 22px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 227, 238, 0.9));
  box-shadow: 0 8px 14px rgba(220, 170, 196, 0.12);
  transform: rotate(-7deg);
}

.hero,
.controls,
.result-toolbar,
.insight-strip,
.planner,
.grid,
.page-footer,
.story-strip,
.sticker-parade {
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr) minmax(220px, 0.62fr);
  gap: 20px;
  align-items: stretch;
}

.hero-copy,
.hero-scene {
  padding: 28px;
  border-radius: 38px;
  overflow: hidden;
}

.hero-copy {
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 221, 237, 0.9), transparent 26%),
    radial-gradient(circle at 90% 20%, rgba(193, 235, 255, 0.86), transparent 20%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 243, 249, 0.9));
}

.hero-scene {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  background:
    radial-gradient(circle at top, rgba(255, 248, 251, 0.96), rgba(255, 241, 247, 0.78) 56%, rgba(192, 232, 255, 0.38) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 241, 247, 0.84));
}

.hero-panel {
  display: grid;
  gap: 14px;
}

.eyebrow,
.section-kicker,
.mini-love-note-kicker,
.scene-diary-kicker {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgb(218 104 159);
}

.hero-mini-jp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255, 219, 236, 0.82);
  background: rgba(255, 241, 247, 0.95);
  font-size: 0.94rem;
  font-weight: 700;
  color: rgb(199 98 149);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 8.4vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: 0.02em;
  text-shadow: 0 4px 0 rgba(255, 255, 255, 0.8);
}

.hero-title-accent {
  display: block;
  margin-top: 12px;
  color: rgb(123 103 208);
  font-size: clamp(1.35rem, 2.8vw, 2.05rem);
}

.lede,
.section-copy,
.stat-caption,
.toolbar-label,
.control-card label,
.control-title,
.planned-copy span,
.history-copy span,
.recommend-family,
.recommend-meta,
.modal-source,
.modal-dish,
.modal-note,
.status-line,
.page-footer p,
.mini-love-note p,
.scene-diary span,
.step-card p,
.story-card p {
  color: var(--ink-soft);
}

.lede {
  margin: 18px 0 0;
  max-width: 38rem;
  font-size: 1.04rem;
  line-height: 1.95;
}

.hero-actions,
.hero-promise,
.webhook-actions,
.modal-actions-inline,
.card-actions,
.recommend-actions,
.planned-actions,
.history-actions,
.summary-strip,
.chip-row,
.toggle-list,
.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  margin-top: 22px;
}

.hero-promise {
  margin-top: 18px;
}

.hero-promise span,
.scene-sticker,
.summary-pill,
.insight-pill,
.tag,
.pill-badge {
  border-radius: var(--radius-sm);
}

.hero-promise span {
  padding: 9px 15px;
  border: 2px solid rgba(255, 223, 236, 0.82);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.step-card {
  padding: 16px 14px;
  border: 2px dashed rgba(214, 170, 200, 0.66);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.68);
}

.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgb(255 189 219), rgb(255 151 193));
  color: white;
  font-weight: 800;
  box-shadow: 0 10px 18px rgba(223, 144, 185, 0.24);
}

.step-card strong,
.story-card strong {
  display: block;
  font-size: 1rem;
}

.step-card p,
.story-card p {
  margin: 8px 0 0;
  line-height: 1.7;
  font-size: 0.9rem;
}

.scene-label {
  justify-self: start;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255, 215, 232, 0.86);
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
  font-weight: 800;
  color: rgb(190 98 153);
  transform: rotate(-4deg);
}

.scene-stickers {
  position: absolute;
  top: 18px;
  right: 20px;
  display: flex;
  gap: 10px;
}

.scene-sticker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 8px 14px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow);
}

.scene-sticker.pink {
  background: linear-gradient(180deg, rgb(255 202 228), rgb(255 163 203));
  transform: rotate(6deg);
}

.scene-sticker.yellow {
  background: linear-gradient(180deg, rgb(255 241 194), rgb(255 223 130));
  transform: rotate(-6deg);
}

.scene-sticker.blue {
  background: linear-gradient(180deg, rgb(205 239 255), rgb(171 221 255));
  transform: rotate(4deg);
}

.scene-window {
  position: relative;
  min-height: 370px;
  padding: 18px 18px 20px;
  border-radius: 34px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.95), rgba(255, 241, 247, 0.78) 58%, rgba(194, 234, 255, 0.45) 100%);
  overflow: hidden;
}

.scene-window::before {
  content: "";
  position: absolute;
  inset: 40px 18px 20px;
  border-radius: 28px;
  border: 2px dashed rgba(216, 180, 212, 0.46);
}

.window-header {
  display: flex;
  gap: 8px;
}

.window-header span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.window-header span:nth-child(1) {
  background: rgb(255 172 202);
}

.window-header span:nth-child(2) {
  background: rgb(255 230 152);
}

.window-header span:nth-child(3) {
  background: rgb(176 231 202);
}

.window-body {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  align-items: end;
  min-height: 270px;
  padding: 26px 8px 0;
}

.buddy {
  position: relative;
  text-align: center;
  animation: mascotBob 4.8s ease-in-out infinite;
}

.buddy:nth-child(2) {
  animation-delay: -1.2s;
}

.buddy:nth-child(3) {
  animation-delay: -2.4s;
}

.buddy p {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: 1rem;
  color: rgb(125 93 149);
}

.buddy-head {
  position: relative;
  width: min(118px, 100%);
  height: 124px;
  margin: 0 auto;
}

.buddy .ear,
.buddy .face,
.buddy .face::before,
.buddy .face::after {
  position: absolute;
  display: block;
  content: "";
}

.buddy .face {
  inset: 24px 8px 0;
  border-radius: 44px 44px 38px 38px;
  background:
    radial-gradient(circle at 38% 48%, rgb(90 69 102) 0 4px, transparent 4.2px),
    radial-gradient(circle at 62% 48%, rgb(90 69 102) 0 4px, transparent 4.2px),
    radial-gradient(circle at 50% 64%, rgb(255 173 199) 0 8px, transparent 8.2px),
    radial-gradient(circle at 50% 60%, rgb(90 69 102) 0 2px, transparent 2.2px),
    linear-gradient(180deg, rgb(255 255 255), rgb(255 245 249));
  border: 2px solid rgba(232, 201, 223, 0.88);
  box-shadow: 0 18px 26px rgba(222, 168, 198, 0.18);
}

.buddy .face::before,
.buddy .face::after {
  top: 60px;
  width: 12px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 191, 214, 0.82);
}

.buddy .face::before {
  left: 16px;
}

.buddy .face::after {
  right: 16px;
}

.buddy-bunny .ear {
  top: 0;
  width: 28px;
  height: 66px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgb(255 242 248), rgb(255 216 232));
  border: 2px solid rgba(232, 201, 223, 0.92);
}

.buddy-bunny .ear.left {
  left: 26px;
  transform: rotate(-10deg);
}

.buddy-bunny .ear.right {
  right: 26px;
  transform: rotate(10deg);
}

.buddy-puppy .ear {
  top: 28px;
  width: 24px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgb(255 223 190), rgb(243 190 146));
}

.buddy-puppy .ear.left {
  left: 0;
  transform: rotate(24deg);
}

.buddy-puppy .ear.right {
  right: 0;
  transform: rotate(-24deg);
}

.buddy-puppy .face {
  background:
    radial-gradient(circle at 38% 48%, rgb(90 69 102) 0 4px, transparent 4.2px),
    radial-gradient(circle at 62% 48%, rgb(90 69 102) 0 4px, transparent 4.2px),
    radial-gradient(circle at 50% 65%, rgb(255 190 112) 0 9px, transparent 9.2px),
    radial-gradient(circle at 50% 61%, rgb(90 69 102) 0 2px, transparent 2.2px),
    linear-gradient(180deg, rgb(255 252 247), rgb(255 241 228));
}

.buddy-cloud .ear {
  top: 38px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgb(255 255 255), rgb(231 244 255));
  border: 2px solid rgba(212, 227, 243, 0.9);
}

.buddy-cloud .ear.left {
  left: 4px;
}

.buddy-cloud .ear.right {
  right: 4px;
}

.buddy-cloud .face {
  border-radius: 50px;
  background:
    radial-gradient(circle at 38% 48%, rgb(90 69 102) 0 4px, transparent 4.2px),
    radial-gradient(circle at 62% 48%, rgb(90 69 102) 0 4px, transparent 4.2px),
    radial-gradient(circle at 50% 64%, rgb(255 212 94) 0 8px, transparent 8.2px),
    radial-gradient(circle at 50% 60%, rgb(90 69 102) 0 2px, transparent 2.2px),
    linear-gradient(180deg, rgb(255 255 255), rgb(238 247 255));
}

.scene-bubble,
.scene-diary {
  padding: 14px 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid rgba(242, 213, 232, 0.9);
}

.scene-bubble {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: min(220px, calc(100% - 36px));
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.6;
  color: rgb(121 91 153);
  transform: rotate(-4deg);
}

.scene-diary {
  justify-self: end;
  max-width: 240px;
  transform: rotate(3deg);
}

.scene-diary strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.stat-card {
  padding: 18px 18px 16px;
  border-radius: 26px;
}

.stat-card-pink {
  background: linear-gradient(180deg, rgba(255, 232, 243, 0.96), rgba(255, 255, 255, 0.88));
}

.stat-card-mint {
  background: linear-gradient(180deg, rgba(230, 255, 244, 0.96), rgba(255, 255, 255, 0.88));
}

.stat-card-lavender {
  background: linear-gradient(180deg, rgba(244, 237, 255, 0.96), rgba(255, 255, 255, 0.88));
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: rgb(188 105 153);
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 2.6vw, 2.6rem);
}

.stat-caption {
  display: block;
  margin-top: 7px;
  line-height: 1.6;
  font-size: 0.84rem;
}

.mini-love-note {
  padding: 18px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(255, 223, 188, 0.72), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 247, 222, 0.88));
}

.mini-love-note h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.mini-love-note p {
  margin: 0;
  line-height: 1.75;
}

.story-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
}

.story-card {
  padding: 22px 20px 18px;
  border-radius: 28px;
}

.story-card:nth-child(1) {
  background: linear-gradient(180deg, rgba(255, 237, 246, 0.94), rgba(255, 255, 255, 0.88));
}

.story-card:nth-child(2) {
  background: linear-gradient(180deg, rgba(235, 245, 255, 0.94), rgba(255, 255, 255, 0.88));
}

.story-card:nth-child(3) {
  background: linear-gradient(180deg, rgba(239, 255, 246, 0.94), rgba(255, 255, 255, 0.88));
}

.story-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 1.5rem;
  box-shadow: 0 12px 22px rgba(221, 171, 200, 0.14);
}

.insight-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 22px;
}

.insight-pill {
  padding: 12px 16px;
  font-size: 0.92rem;
  font-weight: 600;
}

.insight-pill strong {
  color: rgb(113 78 134);
}

.planner {
  margin-bottom: 22px;
}

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

.planner-card {
  padding: 24px;
  border-radius: 30px;
}

.planner-card-wide,
.planner-card-featured {
  grid-column: span 2;
}

.planner-card-sparkle {
  background:
    radial-gradient(circle at top right, rgba(255, 225, 239, 0.84), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 245, 249, 0.9));
}

.planner-card-candy {
  background:
    radial-gradient(circle at top left, rgba(191, 232, 255, 0.54), transparent 28%),
    radial-gradient(circle at bottom right, rgba(255, 210, 228, 0.5), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 248, 251, 0.9));
}

.planner-card-soft {
  background:
    radial-gradient(circle at top left, rgba(223, 205, 255, 0.34), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(252, 248, 255, 0.9));
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.05rem);
}

.section-copy {
  margin: 12px 0 0;
  font-size: 0.96rem;
  line-height: 1.78;
}

.recommendation-list,
.planned-list,
.history-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.planned-list,
.history-list {
  max-height: 360px;
  overflow-y: auto;
  padding-right: 6px;
  align-content: start;
}

.planned-list::-webkit-scrollbar,
.history-list::-webkit-scrollbar {
  width: 10px;
}

.planned-list::-webkit-scrollbar-track,
.history-list::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
}

.planned-list::-webkit-scrollbar-thumb,
.history-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  background: linear-gradient(180deg, rgba(255, 184, 214, 0.95), rgba(205, 188, 255, 0.92));
}

.recommend-card,
.planned-row,
.history-row {
  align-items: center;
  padding: 14px;
  border-radius: 24px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.recommend-card {
  display: grid;
  grid-template-columns: 114px 1fr auto;
  gap: 14px;
}

.recommend-card.is-planned {
  background:
    radial-gradient(circle at top right, rgba(255, 224, 238, 0.78), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 243, 249, 0.9));
}

.recommend-card:hover,
.dish-card:hover,
.planned-row:hover,
.history-row:hover {
  transform: translateY(-5px) rotate(0deg);
  box-shadow: var(--shadow-lift);
}

.recommend-card img {
  width: 114px;
  height: 114px;
  object-fit: cover;
  border-radius: 22px;
  border: 3px solid rgba(255, 255, 255, 0.92);
  cursor: pointer;
  background: linear-gradient(180deg, rgba(255, 245, 250, 0.9), rgba(236, 246, 255, 0.88));
}

.recommend-card.image-missing {
  grid-template-columns: 1fr auto;
}

.recommend-media {
  position: relative;
}

.recommend-copy h3,
.card-body h3 {
  margin: 4px 0 0;
}

.recommend-copy h3 {
  font-size: 1.08rem;
}

.recommend-actions {
  display: grid;
  gap: 8px;
  min-width: 132px;
}

.recommend-family {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
}

.recommend-meta {
  margin: 8px 0 0;
  font-size: 0.9rem;
}

.summary-strip {
  margin-top: 16px;
}

.summary-pill {
  align-items: baseline;
  padding: 11px 15px;
}

.summary-pill strong {
  font-size: 1rem;
  color: rgb(118 83 136);
}

.summary-pill span {
  font-size: 0.88rem;
}

.webhook-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.notify-defaults {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 22px;
  border: 2px solid rgba(234, 209, 227, 0.88);
  background:
    radial-gradient(circle at top right, rgba(255, 225, 240, 0.58), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 251, 0.92));
}

.notify-defaults strong {
  color: rgb(165 95 139);
  font-size: 0.96rem;
}

.notify-defaults p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
}

.webhook-form label,
.advanced-panel label {
  display: grid;
  gap: 7px;
}

.webhook-form span,
.advanced-panel span {
  font-size: 0.88rem;
  font-weight: 700;
  color: rgb(181 102 146);
}

input,
textarea,
summary {
  font: inherit;
}

input,
textarea {
  width: 100%;
  padding: 13px 14px;
  border: 2px solid rgba(233, 206, 224, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(214, 135, 181, 0.92);
  box-shadow: 0 0 0 4px rgba(255, 205, 228, 0.62);
}

.advanced-panel {
  padding: 12px 14px;
  border: 2px dashed rgba(221, 191, 216, 0.8);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
}

.advanced-panel summary {
  cursor: pointer;
  font-weight: 700;
  color: rgb(133 99 150);
}

.status-line {
  min-height: 1.4em;
  margin: 0;
  font-size: 0.92rem;
}

.status-line.is-success {
  color: rgb(76 157 122);
}

.status-line.is-error {
  color: rgb(208 85 133);
}

.controls {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.control-card {
  padding: 18px;
  border-radius: 26px;
}

.search-card {
  background:
    radial-gradient(circle at top right, rgba(255, 225, 240, 0.82), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 245, 249, 0.9));
}

.control-title,
.control-card label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.92rem;
  font-weight: 700;
}

.chip-row {
  gap: 10px;
}

.chip,
.button,
.mini-action,
.count-button {
  appearance: none;
  border: none;
  cursor: pointer;
  font: inherit;
}

.button,
.mini-action,
.count-button,
.chip {
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 18px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 22px rgba(223, 169, 197, 0.18);
}

.button.primary,
.mini-action.primary {
  background: linear-gradient(180deg, rgb(255 181 214), rgb(255 145 190));
  color: white;
}

.button.subtle,
.mini-action,
.count-button,
.chip {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.button.small,
.mini-action,
.count-button,
.chip {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 16px;
}

.button:hover,
.mini-action:hover,
.count-button:hover,
.chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(225, 163, 195, 0.22);
}

.chip {
  border: 2px solid rgba(236, 211, 228, 0.88);
  font-size: 0.9rem;
  font-weight: 700;
}

.chip.is-active {
  background: linear-gradient(180deg, rgb(255 231 242), rgb(255 205 225));
  border-color: rgba(215, 142, 182, 0.74);
}

.toggle-list {
  flex-direction: column;
  gap: 10px;
}

.toggle-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 2px solid rgba(235, 211, 229, 0.86);
}

.toggle-item input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.result-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 16px 20px;
  border-radius: 24px;
}

.result-toolbar strong {
  display: inline-block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 1.6rem;
}

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

.dish-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 28px;
  transform: rotate(0deg);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.dish-card.is-planned {
  background:
    radial-gradient(circle at top right, rgba(255, 221, 235, 0.74), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 244, 249, 0.9));
  box-shadow: 0 24px 54px rgba(255, 155, 198, 0.2);
}

.dish-card.is-favorite {
  border-color: rgba(255, 215, 232, 0.96);
}

.dish-card.is-recent {
  background:
    radial-gradient(circle at top left, rgba(255, 243, 199, 0.72), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 251, 238, 0.9));
}

.dish-card.is-bouncing,
.recommend-card.is-bouncing {
  animation: cardBounce 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.dish-card:nth-child(4n + 1) {
  transform: rotate(-1.2deg);
}

.dish-card:nth-child(4n + 2) {
  transform: rotate(0.9deg);
}

.dish-card:nth-child(4n + 3) {
  transform: rotate(-0.4deg);
}

.dish-card:nth-child(4n + 4) {
  transform: rotate(1.1deg);
}

.card-image {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
  border: 0;
  background:
    linear-gradient(45deg, rgba(255, 231, 243, 0.88) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 231, 243, 0.88) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(221, 239, 255, 0.88) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(221, 239, 255, 0.88) 75%);
  background-position: 0 0, 0 14px, 14px -14px, -14px 0;
  background-size: 28px 28px;
  cursor: pointer;
}

.card-corner-sticker {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  border-radius: 18px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 16px rgba(219, 170, 196, 0.16);
  font-size: 1rem;
  font-weight: 800;
  transform: rotate(9deg);
}

.card-corner-emoji {
  min-width: 46px;
}

.card-corner-sticker.status-favorite,
.card-corner-sticker.status-plan,
.card-corner-sticker.status-today {
  min-width: auto;
  height: auto;
  padding: 8px 12px;
  font-size: 0.74rem;
  letter-spacing: 0.02em;
}

.card-corner-sticker.status-favorite {
  background: linear-gradient(180deg, rgb(255 233 243), rgb(255 196 222));
  color: rgb(189 85 140);
}

.card-corner-sticker.status-plan {
  background: linear-gradient(180deg, rgb(233 243 255), rgb(201 223 255));
  color: rgb(92 122 184);
}

.card-corner-sticker.status-today {
  background: linear-gradient(180deg, rgb(255 246 210), rgb(255 225 151));
  color: rgb(161 118 31);
}

.card-image img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 22px;
  border: 4px solid rgba(255, 255, 255, 0.92);
}

.image-placeholder-label {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 24px;
  border-radius: 22px;
  border: 4px solid rgba(255, 255, 255, 0.92);
  color: rgb(175 127 163);
  font-weight: 800;
  background: linear-gradient(180deg, rgba(255, 246, 250, 0.96), rgba(236, 246, 255, 0.92));
}

.card-body {
  display: grid;
  gap: 10px;
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 24px;
}

.pill-badge {
  padding: 5px 10px;
  font-size: 0.74rem;
  font-weight: 800;
}

.pill-favorite {
  background: rgba(255, 225, 238, 0.95);
  color: rgb(201 90 145);
}

.pill-plan {
  background: rgba(233, 245, 255, 0.95);
  color: rgb(89 128 180);
}

.pill-recent {
  background: rgba(249, 241, 210, 0.95);
  color: rgb(168 131 47);
}

.card-body h3 {
  font-size: 1.14rem;
  line-height: 1.35;
}

.card-family {
  margin: 0;
  color: rgb(174 111 151);
  font-weight: 700;
}

.card-actions {
  display: grid;
  gap: 8px;
}

.card-primary-action {
  min-height: 42px;
  width: 100%;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, rgb(255 181 214), rgb(255 145 190));
  color: white;
  font: inherit;
  font-weight: 800;
  box-shadow: 0 12px 20px rgba(223, 143, 185, 0.22);
}

.card-secondary-actions {
  display: flex;
  gap: 8px;
}

.mini-action {
  min-height: 38px;
  padding: 0 12px;
  border: 2px solid rgba(238, 212, 229, 0.9);
  font-size: 0.85rem;
  font-weight: 700;
}

.card-secondary-actions .mini-action,
.recommend-actions .mini-action {
  flex: 1 1 0;
}

.planned-row,
.history-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.planned-copy,
.history-copy {
  min-width: 0;
}

.planned-copy strong,
.history-copy strong {
  display: block;
  font-size: 1rem;
}

.planned-copy span,
.history-copy span {
  display: block;
  margin-top: 6px;
  line-height: 1.6;
  font-size: 0.9rem;
}

.count-button {
  width: 38px;
  min-width: 38px;
  padding: 0;
  border: 2px solid rgba(236, 211, 229, 0.9);
  font-size: 1.1rem;
  font-weight: 800;
}

.count-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  font-weight: 800;
}

.empty-state {
  display: grid;
  place-items: center;
  padding: 42px 24px;
  border: 2px dashed rgba(224, 192, 218, 0.8);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.66);
  text-align: center;
  line-height: 1.8;
  color: var(--ink-soft);
}

.empty-state.compact {
  padding: 22px 18px;
}

.modal {
  width: min(1080px, calc(100vw - 20px));
  padding: 0;
  border: none;
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(255, 222, 239, 0.8), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 245, 250, 0.96));
  box-shadow: 0 32px 80px rgba(178, 126, 173, 0.26);
  overflow: visible;
}

.modal::backdrop {
  background: rgba(117, 84, 118, 0.35);
  backdrop-filter: blur(8px);
}

.modal-close {
  position: absolute;
  top: -12px;
  right: -12px;
  z-index: 2;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.9);
  background: linear-gradient(180deg, rgb(255 185 216), rgb(255 145 190));
  color: white;
  font-size: 1.5rem;
  box-shadow: var(--shadow);
}

.modal-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.94fr) minmax(0, 1.06fr);
  gap: 0;
}

.modal-media,
.modal-copy {
  padding: 24px;
}

.modal-media {
  border-right: 1px dashed rgba(219, 187, 212, 0.72);
}

.modal-media img {
  display: block;
  width: 100%;
  border-radius: 28px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: linear-gradient(180deg, rgba(255, 245, 250, 0.92), rgba(236, 246, 255, 0.92));
}

.modal-media.is-empty,
.modal-media.is-empty img {
  min-height: 260px;
}

.thumbnail-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.thumbnail-row button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.thumbnail-row img {
  width: 74px;
  height: 74px;
  border-radius: 18px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  object-fit: cover;
}

.modal-copy h2 {
  margin: 10px 0 6px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.08;
}

.modal-source {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
}

.modal-dish,
.modal-note {
  margin: 10px 0 0;
  line-height: 1.8;
}

.modal-actions-inline {
  margin-top: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  background: rgba(255, 243, 248, 0.95);
  border: 2px solid rgba(242, 217, 232, 0.9);
  font-size: 0.85rem;
  font-weight: 700;
}

.modal-tags {
  margin-top: 18px;
}

.meta-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.meta-row {
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 2px solid rgba(236, 212, 229, 0.88);
  line-height: 1.7;
}

.page-footer {
  margin-top: 24px;
  text-align: center;
}

.page-footer p {
  margin: 0;
  font-size: 0.92rem;
}

.bottom-dock {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(560px, calc(100vw - 20px));
  padding: 10px;
  border-radius: 26px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 40px rgba(189, 134, 183, 0.24);
  transform: translateX(-50%);
}

.dock-tab {
  position: relative;
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 72px;
  padding: 10px 12px;
  border-radius: 20px;
  border: 0;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-soft);
  font: inherit;
  cursor: pointer;
}

.dock-tab.is-active {
  background: linear-gradient(180deg, rgba(255, 231, 242, 0.96), rgba(255, 245, 250, 0.92));
  color: var(--ink);
  box-shadow: 0 12px 24px rgba(225, 163, 195, 0.22);
}

.dock-icon {
  font-size: 1.15rem;
}

.dock-label {
  font-size: 0.9rem;
  font-weight: 800;
}

.dock-count {
  position: absolute;
  top: 8px;
  right: 10px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgb(255 165 205), rgb(255 127 184));
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
}

.wishbag-sheet[hidden] {
  display: none;
}

.wishbag-sheet {
  position: fixed;
  inset: 0;
  z-index: 28;
}

.wishbag-sheet-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(117, 84, 118, 0.32);
}

.wishbag-sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: min(78vh, 720px);
  padding: 10px 12px calc(102px + env(safe-area-inset-bottom, 0px));
  border-radius: 28px 28px 0 0;
  background:
    radial-gradient(circle at top left, rgba(255, 227, 240, 0.84), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 246, 251, 0.96));
  box-shadow: 0 -18px 50px rgba(176, 126, 172, 0.22);
  overflow-y: auto;
}

.wishbag-sheet-handle {
  width: 52px;
  height: 6px;
  margin: 2px auto 12px;
  border-radius: 999px;
  background: rgba(212, 180, 205, 0.9);
}

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

.wishbag-sheet-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.wishbag-sheet-actions {
  display: grid;
  margin-top: 14px;
}

/* Mobile-first layout pass */
.page-shell {
  width: min(480px, calc(100vw - 12px));
  padding: 12px 0 calc(128px + env(safe-area-inset-bottom, 0px));
}

.floating-sparkles {
  display: none;
}

.hero {
  grid-template-columns: 1fr;
  gap: 14px;
}

.hero-copy,
.hero-scene {
  padding: 18px;
  border-radius: 28px;
}

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

.mini-love-note {
  grid-column: 1 / -1;
}

.hero-actions {
  gap: 8px;
}

.hero-actions .button {
  flex: 1 1 calc(50% - 4px);
}

.hero-promise,
.insight-strip,
.summary-strip,
.chip-row {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.hero-promise::-webkit-scrollbar,
.insight-strip::-webkit-scrollbar,
.summary-strip::-webkit-scrollbar,
.chip-row::-webkit-scrollbar,
.hero-steps::-webkit-scrollbar,
.story-strip::-webkit-scrollbar {
  display: none;
}

.hero-steps {
  grid-auto-flow: column;
  grid-auto-columns: minmax(144px, 1fr);
  overflow-x: auto;
  padding-bottom: 6px;
}

.step-card {
  min-width: 0;
}

.scene-window {
  min-height: 300px;
}

.scene-diary {
  justify-self: stretch;
  max-width: none;
  transform: rotate(0deg);
}

.story-strip {
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  overflow-x: auto;
  padding-bottom: 6px;
}

.story-card {
  min-width: 0;
}

.planner-grid,
.controls {
  grid-template-columns: 1fr;
}

.planner-card-wide,
.planner-card-featured {
  grid-column: auto;
}

.section-heading {
  flex-direction: column;
  align-items: flex-start;
}

.result-toolbar {
  position: sticky;
  top: 10px;
  z-index: 15;
  padding: 14px 16px;
}

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

.dish-card:nth-child(4n + 1),
.dish-card:nth-child(4n + 2),
.dish-card:nth-child(4n + 3),
.dish-card:nth-child(4n + 4) {
  transform: rotate(0deg);
}

.card-body h3 {
  font-size: 1rem;
}

.bottom-dock {
  width: calc(100vw - 14px);
  max-width: 480px;
  bottom: max(8px, env(safe-area-inset-bottom, 0px));
  gap: 8px;
  padding: 8px;
  border-radius: 22px;
}

.dock-tab {
  min-height: 64px;
  padding: 8px 10px;
}

.dock-label {
  font-size: 0.82rem;
}

@media (min-width: 980px) {
  .page-shell {
    width: min(1380px, calc(100vw - 24px));
    padding: 22px 0 156px;
  }

  .floating-sparkles {
    display: block;
  }

  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr) minmax(220px, 0.62fr);
    gap: 20px;
  }

  .hero-copy,
  .hero-scene {
    padding: 28px;
    border-radius: 38px;
  }

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

  .mini-love-note {
    grid-column: auto;
  }

  .hero-promise,
  .insight-strip,
  .summary-strip,
  .chip-row {
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 0;
  }

  .hero-steps,
  .story-strip {
    overflow: visible;
    padding-bottom: 0;
  }

  .hero-steps {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .story-strip {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .planner-card-wide,
  .planner-card-featured {
    grid-column: span 2;
  }

  .controls {
    grid-template-columns: 1.3fr repeat(4, 1fr);
  }

  .section-heading {
    flex-direction: row;
    align-items: flex-start;
  }

  .result-toolbar {
    position: static;
    padding: 16px 20px;
  }

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

  .dish-card:nth-child(4n + 1) {
    transform: rotate(-1.2deg);
  }

  .dish-card:nth-child(4n + 2) {
    transform: rotate(0.9deg);
  }

  .dish-card:nth-child(4n + 3) {
    transform: rotate(-0.4deg);
  }

  .dish-card:nth-child(4n + 4) {
    transform: rotate(1.1deg);
  }

  .bottom-dock {
    width: min(560px, calc(100vw - 20px));
    max-width: none;
    bottom: 18px;
    gap: 10px;
    padding: 10px;
    border-radius: 26px;
  }

  .dock-tab {
    min-height: 72px;
    padding: 10px 12px;
  }

  .dock-label {
    font-size: 0.9rem;
  }

  .wishbag-sheet {
    display: none !important;
  }
}

.click-burst {
  position: fixed;
  width: 1px;
  height: 1px;
  pointer-events: none;
  z-index: 99;
}

.burst-dot {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1rem;
  font-weight: 800;
  animation: burstOut 720ms ease-out forwards;
}

.burst-dot.variant-primary {
  color: rgb(255 115 176);
}

.burst-dot.variant-soft {
  color: rgb(150 116 184);
}

@keyframes mascotBob {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes floatSticker {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-16px) rotate(6deg);
  }
}

@keyframes burstOut {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(0.7) rotate(0deg);
  }

  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(1.25) rotate(var(--rot));
  }
}

@keyframes cardBounce {
  0% {
    transform: translateY(0) scale(1);
  }

  24% {
    transform: translateY(-10px) scale(1.04);
  }

  52% {
    transform: translateY(2px) scale(0.985);
  }

  78% {
    transform: translateY(-3px) scale(1.015);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-panel {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

@media (max-width: 900px) {
  .page-shell {
    width: min(100vw - 16px, 100%);
  }

  .hero,
  .story-strip,
  .planner-grid,
  .controls,
  .grid,
  .hero-panel {
    grid-template-columns: 1fr;
  }

  .hero-steps {
    grid-template-columns: 1fr;
  }

  .planner-card-wide,
  .planner-card-featured {
    grid-column: auto;
  }

  .window-body {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .recommend-card,
  .modal-layout {
    grid-template-columns: 1fr;
  }

  .modal-media {
    border-right: 0;
    border-bottom: 1px dashed rgba(219, 187, 212, 0.72);
  }

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

@media (max-width: 640px) {
  .page-shell {
    width: calc(100vw - 12px);
    padding-top: 12px;
  }

  .hero-copy,
  .hero-scene,
  .planner-card,
  .control-card {
    padding: 18px;
    border-radius: 28px;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 10vw, 3.1rem);
  }

  .scene-stickers {
    position: static;
    flex-wrap: wrap;
    margin-top: 8px;
  }

  .scene-window {
    min-height: 320px;
  }

  .window-body {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 20px;
  }

  .scene-bubble,
  .scene-diary {
    position: static;
    width: 100%;
    max-width: none;
    transform: rotate(0deg);
  }

  .result-toolbar,
  .planned-row,
  .history-row {
    flex-direction: column;
    align-items: stretch;
  }

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

  .bottom-dock {
    width: calc(100vw - 14px);
    bottom: 8px;
    gap: 8px;
    padding: 8px;
    border-radius: 22px;
  }

  .dock-tab {
    min-height: 64px;
    padding: 8px 10px;
  }

  .dock-label {
    font-size: 0.82rem;
  }

  .floating-sparkles {
    display: none;
  }
}

/* Desktop canvas restore: keep the original wide composition even on phones. */
body {
  min-width: 1440px;
}

.page-shell {
  width: min(1380px, calc(100vw - 24px));
  min-width: 1320px;
  padding: 22px 0 156px;
}

.floating-sparkles {
  display: block;
}

.hero {
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr) minmax(220px, 0.62fr);
  gap: 20px;
}

.hero-copy,
.hero-scene {
  padding: 28px;
  border-radius: 38px;
}

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

.mini-love-note {
  grid-column: auto;
}

.hero-promise,
.insight-strip,
.summary-strip,
.chip-row {
  flex-wrap: wrap;
  overflow: visible;
  padding-bottom: 0;
  scrollbar-width: auto;
}

.hero-promise::-webkit-scrollbar,
.insight-strip::-webkit-scrollbar,
.summary-strip::-webkit-scrollbar,
.chip-row::-webkit-scrollbar,
.hero-steps::-webkit-scrollbar,
.story-strip::-webkit-scrollbar {
  display: initial;
}

.hero-steps,
.story-strip {
  overflow: visible;
  padding-bottom: 0;
}

.hero-steps {
  grid-auto-flow: row;
  grid-auto-columns: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.story-strip {
  grid-auto-flow: row;
  grid-auto-columns: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.scene-window {
  min-height: 380px;
}

.scene-diary {
  justify-self: end;
  max-width: 260px;
  transform: rotate(4deg);
}

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

.planner-card-wide,
.planner-card-featured {
  grid-column: span 2;
}

.controls {
  grid-template-columns: 1.3fr repeat(4, 1fr);
}

.section-heading {
  flex-direction: row;
  align-items: flex-start;
}

.result-toolbar {
  position: static;
  top: auto;
  padding: 16px 20px;
}

.planned-row,
.history-row {
  flex-direction: row;
  align-items: center;
}

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

.dish-card:nth-child(4n + 1) {
  transform: rotate(-1.2deg);
}

.dish-card:nth-child(4n + 2) {
  transform: rotate(0.9deg);
}

.dish-card:nth-child(4n + 3) {
  transform: rotate(-0.4deg);
}

.dish-card:nth-child(4n + 4) {
  transform: rotate(1.1deg);
}

.bottom-dock {
  width: min(560px, calc(100vw - 20px));
  max-width: none;
  bottom: 18px;
  gap: 10px;
  padding: 10px;
  border-radius: 26px;
}

.dock-tab {
  min-height: 72px;
  padding: 10px 12px;
}

.dock-label {
  font-size: 0.9rem;
}

.wishbag-sheet {
  display: none !important;
}
