:root,
body[data-theme="linabell"] {
  --paper: #FFF8FA;
  --card: #FFFFFF;
  --warm: #FFF2F5;
  --dot: #F2D6E0;
  --ink: #4A2E3B;
  --ink-soft: #856272;
  --ink-muted: #B091A0;
  --outline: #6B3E54;
  --border-soft: #F1D5E1;
  --shadow: #F3D4E0;
  --glow-a: rgba(255, 182, 206, 0.34);
  --glow-b: rgba(255, 224, 152, 0.28);
  --accent: #F06292;
  --accent-grad: linear-gradient(135deg, #FF7CA8 0%, #F26A8D 55%, #F4A261 100%);
  --gold: #E6AD47;
  --gold-bg: #FFF5D9;
  --gold-tx: #9A650B;
  --pink-bg: #FFE6F0;
  --pink-tx: #C63B6B;
  --mint-bg: #E2F8EE;
  --mint-tx: #1D7A53;
  --lemon-bg: #FFF4D4;
  --lemon-tx: #9A640A;
  --taro-bg: #F1EAFF;
  --taro-tx: #6648C4;
  --sky-bg: #E4F4FF;
  --sky-tx: #1F6AA5;
  --peach-bg: #FFEFE2;
  --peach-tx: #C4521C;
}
body[data-theme="stellalou"] {
  --paper: #F9F6FF;
  --warm: #F2ECFF;
  --dot: #DFD2FA;
  --ink: #3C2D5C;
  --ink-soft: #756399;
  --ink-muted: #A496C2;
  --outline: #563F87;
  --border-soft: #DFD2FA;
  --shadow: #DED0FA;
  --glow-a: rgba(178, 149, 255, 0.32);
  --glow-b: rgba(255, 194, 224, 0.28);
  --accent: #8B6CE8;
  --accent-grad: linear-gradient(135deg, #9C7CF2 0%, #8364E6 55%, #F28BB2 100%);
}
body[data-theme="cookieann"] {
  --paper: #FFFBF2;
  --warm: #FFF4DC;
  --dot: #EEDBB7;
  --ink: #4A3520;
  --ink-soft: #876A4D;
  --ink-muted: #B39A80;
  --outline: #6B492A;
  --border-soft: #EEDAB8;
  --shadow: #EDD7B4;
  --glow-a: rgba(255, 217, 130, 0.36);
  --glow-b: rgba(255, 194, 178, 0.28);
  --accent: #EB9335;
  --accent-grad: linear-gradient(135deg, #F7B44A 0%, #EA8A3E 55%, #F27B88 100%);
}
body[data-theme="duffy"] {
  --paper: #F5FAFF;
  --warm: #EAF4FF;
  --dot: #CBE1F7;
  --ink: #27405C;
  --ink-soft: #5E7B9C;
  --ink-muted: #90AAC7;
  --outline: #355880;
  --border-soft: #CBE2F8;
  --shadow: #C7E0F7;
  --glow-a: rgba(125, 198, 255, 0.32);
  --glow-b: rgba(255, 224, 166, 0.28);
  --accent: #4697E0;
  --accent-grad: linear-gradient(135deg, #5EB2F7 0%, #458FE0 55%, #8C7CF2 100%);
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body {
  min-height: 100%;
  background-color: var(--paper);
  background-image: radial-gradient(var(--dot) 1.25px, transparent 1.25px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", sans-serif;
  font-size: 14px; line-height: 1.5; overscroll-behavior-y: none;
  transition: background-color 0.35s ease, color 0.35s ease;
}
button, input { font-family: inherit; color: inherit; touch-action: manipulation; }
button { cursor: pointer; }
.disney-aura {
  position: fixed; top: -100px; left: 50%; transform: translateX(-50%);
  width: 540px; height: 340px;
  background: radial-gradient(circle at 30% 35%, var(--glow-a), transparent 62%),
              radial-gradient(circle at 75% 40%, var(--glow-b), transparent 60%);
  pointer-events: none; z-index: 0;
}
.disney-splash {
  position: fixed; inset: 0; z-index: 500; cursor: pointer; touch-action: manipulation;
  display: flex; align-items: center; justify-content: center;
  padding: calc(20px + env(safe-area-inset-top)) 22px calc(28px + env(safe-area-inset-bottom));
  background: radial-gradient(circle at 50% 24%, #5A358C 0%, #371F63 45%, #1E133D 100%);
  color: #FFF9EE; overflow: hidden;
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.disney-splash::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 82%, rgba(255, 168, 206, 0.28), transparent 55%),
              radial-gradient(circle at 20% 20%, rgba(255, 224, 138, 0.16), transparent 45%);
  pointer-events: none;
}
.disney-splash.leaving { opacity: 0; transform: scale(1.06); pointer-events: none; }
.disney-splash.hidden { display: none; }
.splash-stars { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.sp-star {
  position: absolute; border-radius: 50%; background: #FFF6CC; box-shadow: 0 0 8px #FFE082;
  animation: twinkle var(--dur, 2.6s) ease-in-out infinite alternate; animation-delay: var(--delay, 0s);
}
@keyframes twinkle { 0% { opacity: 0.2; transform: scale(0.7); } 100% { opacity: 1; transform: scale(1.35); } }
.splash-skip {
  position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 16px; z-index: 10;
  padding: 5px 13px; border-radius: 999px; border: 1.5px solid rgba(255, 240, 200, 0.4);
  background: rgba(255, 255, 255, 0.12); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: #FFF4DC; font-size: 12px; font-weight: 700;
}
.splash-inner { position: relative; z-index: 5; width: 100%; max-width: 370px; text-align: center; }
.castle-stage { position: relative; width: 280px; height: 186px; margin: 0 auto 8px; }
.castle-svg { width: 100%; height: 100%; overflow: visible; }
.castle-body { opacity: 0; transform-origin: center bottom; animation: castleRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.12s forwards; }
@keyframes castleRise { 0% { opacity: 0; transform: translateY(16px) scale(0.92); } 100% { opacity: 0.96; transform: translateY(0) scale(1); } }
.magic-arc { stroke-dasharray: 420; stroke-dashoffset: 420; animation: drawArc 1.35s cubic-bezier(0.32, 0.72, 0.25, 1) 0.38s forwards; }
@keyframes drawArc { to { stroke-dashoffset: 0; } }
.sparkle-star { opacity: 0; transform-box: fill-box; transform-origin: center; animation: starPop 1.6s ease-in-out infinite; }
.sparkle-star.s1 { animation-delay: 1.25s; }
.sparkle-star.s2 { animation-delay: 0.65s; }
.sparkle-star.s3 { animation-delay: 0.95s; }
@keyframes starPop { 0%, 100% { opacity: 0.25; transform: scale(0.65) rotate(0deg); } 50% { opacity: 1; transform: scale(1.2) rotate(22deg); } }
.splash-crest {
  position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%) scale(0.5);
  width: 72px; height: 72px; border-radius: 50%; border: 3px solid #FFE28A; background: #FFF6FA;
  box-shadow: 0 0 0 5px rgba(255, 226, 138, 0.24), 0 10px 26px rgba(20, 8, 44, 0.45);
  overflow: hidden; opacity: 0;
  animation: crestPop 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) 0.7s forwards, floatSlow 3s ease-in-out 1.5s infinite;
}
.splash-crest img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes crestPop { to { opacity: 1; transform: translateX(-50%) scale(1); } }
@keyframes floatSlow { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-5px); } }
.splash-kicker { margin-top: 16px; font-size: 11px; letter-spacing: 1.8px; color: #FFE49E; font-weight: 700; opacity: 0; animation: fadeUpIn 0.6s ease 0.8s forwards; }
.splash-welcome { margin-top: 10px; font-size: 16px; font-weight: 600; letter-spacing: 4px; color: #FFE5F0; opacity: 0; animation: fadeUpIn 0.65s ease 0.98s forwards; }
.splash-title {
  margin-top: 4px; font-size: 31px; font-weight: 900; letter-spacing: 2px;
  background: linear-gradient(90deg, #FFF7D6 0%, #FFD67A 32%, #FFB7D5 66%, #FFF7D6 100%);
  background-size: 220% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 12px rgba(255, 198, 130, 0.38));
  opacity: 0; animation: fadeUpIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) 1.15s forwards, goldShimmer 3.2s linear infinite;
}
@keyframes goldShimmer { 0% { background-position: 0% center; } 100% { background-position: 220% center; } }
.splash-sub { margin-top: 8px; font-size: 13.5px; color: rgba(255, 243, 250, 0.88); opacity: 0; animation: fadeUpIn 0.65s ease 1.35s forwards; }
.splash-enter-btn {
  margin-top: 24px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 28px; border-radius: 999px; border: 2px solid #FFF1BA;
  background: linear-gradient(135deg, #FF85B3 0%, #F46B96 52%, #F3B14B 100%);
  color: #FFFFFF; font-size: 15px; font-weight: 900; letter-spacing: 1px;
  box-shadow: 0 8px 24px rgba(244, 107, 150, 0.45), 0 0 0 4px rgba(255, 232, 160, 0.18);
  opacity: 0; animation: fadeUpIn 0.65s ease 1.55s forwards, pulseBtn 2.2s ease-in-out 2.2s infinite;
}
.splash-enter-btn:active { transform: scale(0.95); }
@keyframes pulseBtn {
  0%, 100% { box-shadow: 0 8px 24px rgba(244, 107, 150, 0.45), 0 0 0 4px rgba(255, 232, 160, 0.18); }
  50% { box-shadow: 0 10px 30px rgba(244, 107, 150, 0.62), 0 0 0 8px rgba(255, 232, 160, 0.30); }
}
.splash-hint { margin-top: 12px; font-size: 11px; color: rgba(255, 236, 246, 0.6); opacity: 0; animation: fadeUpIn 0.6s ease 1.75s forwards; }
@keyframes fadeUpIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.app-frame { max-width: 500px; min-height: 100vh; margin: 0 auto; position: relative; z-index: 1; display: flex; flex-direction: column; }
.top-nav {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
  background: color-mix(in srgb, var(--paper) 88%, #ffffff 12%);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1.5px solid var(--border-soft); box-shadow: 0 4px 16px rgba(130, 78, 110, 0.06);
}
.top-nav-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.top-nav-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.nav-av {
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--gold);
  box-shadow: 0 0 0 2px #FFF, 0 3px 10px rgba(230, 173, 71, 0.28);
  overflow: hidden; background: #FFF; flex-shrink: 0; cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav-av:active { transform: scale(0.9) rotate(-8deg); }
.nav-av img, .hero-av img, .mini-av img, .st-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nav-title { font-size: 16px; font-weight: 900; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-sub { font-size: 11px; color: var(--ink-soft); }
.icon-pill-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--border-soft); background: #FFF;
  box-shadow: 0 3px 8px rgba(130, 78, 110, 0.1); display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.icon-pill-btn:active { transform: scale(0.88) rotate(12deg); }
.pages-wrap { flex: 1; padding: 14px 14px calc(94px + env(safe-area-inset-bottom)); }
.tab-page { display: none; }
.tab-page.active { display: block; animation: pageFade 0.24s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes pageFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.j-card {
  position: relative; background: var(--card); border: 1.8px solid var(--outline); border-radius: 24px;
  box-shadow: 0 6px 18px rgba(128, 72, 108, 0.08), 3.5px 3.5px 0 var(--shadow);
  padding: 15px; margin-bottom: 14px; transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.disney-hero { background: linear-gradient(135deg, #FFFFFF 0%, var(--warm) 55%, #FFF4E4 100%); overflow: hidden; }
.hero-castle-bg { position: absolute; right: -6px; top: -8px; font-size: 76px; opacity: 0.11; transform: rotate(8deg); pointer-events: none; user-select: none; }
.errand-hero { background: linear-gradient(135deg, #FFFFFF 0%, #EEF7FF 52%, #FFF0F6 100%); }
.wheel-hero  { background: linear-gradient(155deg, #FFFFFF 0%, #F4EEFF 56%, #FFF0F6 100%); }
.chef-card   { background: linear-gradient(135deg, #FFFFFF 0%, #FFF5DF 100%); }
.sync-card   { background: linear-gradient(135deg, #FFFFFF 0%, #FFF0F6 55%, #F2ECFF 100%); }
.theme-card  { background: linear-gradient(135deg, #FFFFFF 0%, var(--warm) 60%, #FFF7E4 100%); }
.hero-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; position: relative; z-index: 1; }
.hero-av {
  width: 62px; height: 62px; border-radius: 22px; border: 2px solid var(--gold);
  box-shadow: 0 0 0 2px #FFF, 3px 3px 0 var(--shadow); overflow: hidden; background: #FFF; flex-shrink: 0;
}
.hero-badges-row { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 4px; }
.hero-h1 { font-size: 18px; font-weight: 900; line-height: 1.28; }
.hero-pref { font-size: 12px; color: var(--ink-soft); margin-top: 3px; }
.magic-reco-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 12px; margin-bottom: 12px; border-radius: 20px; border: 1.8px dashed var(--gold);
  background: linear-gradient(135deg, #FFFDF5 0%, #FFF3DA 55%, #FFEAF2 100%);
  box-shadow: 0 4px 14px rgba(230, 173, 71, 0.14);
}
.magic-reco-left { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.magic-spark { font-size: 22px; animation: bobble 2.2s ease-in-out infinite; }
@keyframes bobble { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-3px) rotate(8deg); } }
.magic-reco-lbl { font-size: 10.5px; font-weight: 800; color: var(--gold-tx); }
.magic-reco-name { font-size: 13.5px; font-weight: 900; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.magic-reco-btns { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.mini-magic-btn {
  padding: 6px 9px; border-radius: 999px; border: 1.5px solid var(--outline); background: #FFF;
  font-size: 11.5px; font-weight: 800; box-shadow: 1.5px 1.5px 0 var(--shadow);
  transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.mini-magic-btn:active { transform: scale(0.92); }
.mini-magic-btn.primary { background: var(--accent-grad); color: #FFF; border-color: var(--outline); }
.mini-magic-btn.combo { background: var(--taro-bg); color: var(--taro-tx); }
.badge { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 800; padding: 2px 9px; border-radius: 999px; border: 1.5px solid transparent; }
.badge-gold  { background: var(--gold-bg);  color: var(--gold-tx);  border-color: #F2C96B; }
.badge-lemon { background: var(--lemon-bg); color: var(--lemon-tx); border-color: #F3C969; }
.badge-sky   { background: var(--sky-bg);   color: var(--sky-tx);   border-color: #8CCCF5; }
.badge-taro  { background: var(--taro-bg);  color: var(--taro-tx);  border-color: #C0ADF7; }
.badge-mint  { background: var(--mint-bg);  color: var(--mint-tx);  border-color: #8ADBB3; }
.badge-pink  { background: var(--pink-bg);  color: var(--pink-tx);  border-color: #F7A8C2; }
.badge-peach { background: var(--peach-bg); color: var(--peach-tx); border-color: #F7B588; }
.pill-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  padding: 6px 12px; border-radius: 999px; border: 1.8px solid var(--outline); background: #FFF;
  font-size: 12.5px; font-weight: 800; box-shadow: 2.5px 2.5px 0 var(--shadow); white-space: nowrap;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.15s ease;
}
.pill-btn:active { transform: translate(1.5px, 1.5px) scale(0.96); box-shadow: 1px 1px 0 var(--shadow); }
.pill-lemon { background: var(--lemon-bg); color: var(--lemon-tx); }
.pill-mint  { background: var(--mint-bg);  color: var(--mint-tx); }
.pill-pink  { background: var(--pink-bg);  color: var(--pink-tx); }
.pill-taro  { background: var(--taro-bg);  color: var(--taro-tx); }
.j-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 16px; border-radius: 999px; border: 1.8px solid var(--outline); background: #FFF;
  font-size: 14px; font-weight: 800; box-shadow: 3px 3px 0 var(--shadow);
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.15s ease;
}
.j-btn:active { transform: translate(1.5px, 1.5px) scale(0.97); box-shadow: 1px 1px 0 var(--shadow); }
.j-btn-sm { padding: 7px 12px; font-size: 12.5px; }
.j-btn-primary { background: var(--accent-grad); color: #FFF; }
.j-btn-pink  { background: var(--pink-bg);  color: var(--pink-tx); }
.j-btn-mint  { background: var(--mint-bg);  color: var(--mint-tx); }
.j-btn-lemon { background: var(--lemon-bg); color: var(--lemon-tx); }
.j-btn-taro  { background: var(--taro-bg);  color: var(--taro-tx); }
.btn-row { display: flex; gap: 10px; }
.h-scroll { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
.h-scroll::-webkit-scrollbar { display: none; }
.member-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 5px;
  border-radius: 999px; border: 1.8px solid var(--border-soft); background: #FFF;
  font-size: 13px; font-weight: 800; flex-shrink: 0; transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.member-pill:active { transform: scale(0.95); }
.member-pill.active { border-color: var(--outline); background: var(--gold-bg); box-shadow: 2.5px 2.5px 0 var(--shadow); }
.mini-av { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--outline); overflow: hidden; }
.toolbar-row, .inline-add-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.search-box {
  flex: 1; display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 13px;
  border-radius: 999px; border: 1.8px solid var(--border-soft); background: #FFF;
  box-shadow: inset 0 2px 5px rgba(128, 72, 108, 0.04);
}
.search-box:focus-within { border-color: var(--outline); }
.search-box input { flex: 1; border: none; outline: none; font-size: 13px; background: transparent; }
.j-input { width: 100%; height: 40px; padding: 0 12px; border-radius: 15px; border: 1.8px solid var(--border-soft); background: #FFF; font-size: 13.5px; outline: none; }
.j-input:focus { border-color: var(--outline); }
.quick-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.q-chip { padding: 5px 11px; border-radius: 999px; border: 1.5px dashed var(--border-soft); background: #FFF; font-size: 12px; font-weight: 700; color: var(--ink-soft); transition: transform 0.15s ease; }
.q-chip:active { transform: scale(0.94); }
.q-chip.active { border-style: solid; border-color: var(--outline); background: var(--mint-bg); color: var(--mint-tx); }
.q-chip-warn { border-style: solid; border-color: #F2C96B; background: #FFF7E0; color: var(--lemon-tx); margin-left: auto; }
.cat-scroll { margin-bottom: 12px; }
.cat-pill { padding: 7px 14px; border-radius: 16px; border: 1.8px solid transparent; background: var(--warm); font-size: 13px; font-weight: 800; color: var(--ink-soft); flex-shrink: 0; transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1); }
.cat-pill:active { transform: scale(0.94); }
.cat-pill.active { background: var(--pink-bg); color: var(--pink-tx); border-color: var(--outline); box-shadow: 2.5px 2.5px 0 var(--shadow); }
.dish-card { padding: 14px; margin-bottom: 12px; }
.dish-card:active { transform: scale(0.992); }
.dish-main { display: flex; gap: 11px; }
.dish-ico-box { position: relative; width: 60px; height: 60px; border-radius: 18px; border: 1.8px solid var(--outline); display: flex; align-items: center; justify-content: center; font-size: 31px; flex-shrink: 0; box-shadow: inset 0 -4px 0 rgba(255, 255, 255, 0.55); }
.dish-friend-dot { position: absolute; right: -6px; bottom: -6px; width: 27px; height: 27px; border-radius: 50%; border: 1.8px solid var(--outline); overflow: hidden; background: #FFF; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12); }
.dish-friend-dot img { width: 100%; height: 100%; object-fit: cover; }
.dish-name { font-size: 15.5px; font-weight: 900; }
.dish-desc { font-size: 12.5px; color: var(--ink-soft); margin-top: 3px; }
.ing-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.ing-tag { font-size: 11px; padding: 1px 7px; border-radius: 8px; background: var(--warm); color: var(--ink-soft); border: 1px dashed var(--border-soft); }
.dish-foot { margin-top: 10px; padding-top: 9px; border-top: 1.5px dashed var(--border-soft); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dish-foot-right { display: flex; align-items: center; gap: 6px; }
.ordered-pill { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: var(--mint-bg); color: var(--mint-tx); border: 1.5px solid #8ADBB3; }
.like-btn { padding: 5px 11px; border-radius: 999px; border: 1.5px solid var(--border-soft); background: #FFF; font-size: 12px; font-weight: 700; color: var(--ink-soft); transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1); }
.like-btn:active { transform: scale(1.18); }
.like-btn.liked { background: var(--pink-bg); border-color: #F7A8C2; color: var(--pink-tx); }
.brand-scroll { margin-bottom: 10px; }
.brand-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 17px; border: 1.8px solid var(--border-soft); background: #FFF; font-size: 13.5px; font-weight: 800; flex-shrink: 0; transition: transform 0.16s ease; }
.brand-chip:active { transform: scale(0.95); }
.brand-chip.active { border-color: var(--outline); box-shadow: 3px 3px 0 var(--shadow); }
.brand-banner { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; border-radius: 18px; border: 1.8px solid var(--outline); margin-bottom: 12px; box-shadow: 2.5px 2.5px 0 var(--shadow); }
.bi-card { padding: 13px; margin-bottom: 11px; display: flex; align-items: center; gap: 10px; }
.bi-price { font-size: 14px; font-weight: 900; color: #E14B67; margin-left: 6px; }
.bi-hint { display: inline-block; margin-top: 5px; font-size: 11px; font-weight: 700; color: var(--lemon-tx); background: #FFF7DE; padding: 2px 8px; border-radius: 8px; }
.wheel-stage { position: relative; width: 286px; height: 286px; margin: 10px auto 16px; display: flex; align-items: center; justify-content: center; }
.wheel-glow { position: absolute; inset: -6px; border-radius: 50%; background: conic-gradient(from 0deg, #FFD6E5, #FFF1B8, #D9C6FF, #BCE7FF, #FFD6E5); opacity: 0.55; filter: blur(10px); animation: spinSlow 14s linear infinite; }
@keyframes spinSlow { to { transform: rotate(360deg); } }
.wheel-pointer { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 25px solid #FF6B97; filter: drop-shadow(0 2px 0 var(--outline)); z-index: 6; }
#wheelCanvas { position: relative; z-index: 2; width: 272px; height: 272px; border-radius: 50%; border: 3px solid var(--outline); box-shadow: 5px 5px 0 var(--shadow); background: #FFF; }
.wheel-center-btn { position: absolute; width: 66px; height: 66px; border-radius: 50%; border: 3px solid var(--outline); background: linear-gradient(135deg, #FFF5CC 0%, #FFE082 100%); font-size: 14px; font-weight: 900; color: var(--ink); box-shadow: 0 3px 0 var(--outline), 0 0 14px rgba(255, 214, 102, 0.6); z-index: 8; transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1); }
.wheel-center-btn:active { transform: scale(0.92); }
.wheel-result { background: #FFF; border: 2px dashed #C0ADF7; border-radius: 18px; padding: 13px 14px; }
.wr-title { font-size: 15.5px; font-weight: 900; }
.wr-sub { font-size: 12px; color: var(--ink-soft); margin-top: 4px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.sec-title { font-size: 16.5px; font-weight: 900; }
.chef-top { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; }
.cook-progress-wrap { margin-bottom: 12px; padding: 9px 11px; border-radius: 14px; background: rgba(255, 255, 255, 0.72); border: 1.5px solid var(--border-soft); }
.cook-progress-head { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 800; color: var(--ink-soft); margin-bottom: 6px; }
.cook-progress-track { height: 10px; border-radius: 999px; background: var(--warm); overflow: hidden; border: 1px solid var(--border-soft); }
.cook-progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #FF9EBB 0%, #F4C46B 52%, #5FD19B 100%); transition: width 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
.kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpi-box { background: #FFF; border: 1.8px solid var(--border-soft); border-radius: 16px; padding: 9px 4px; text-align: center; transition: transform 0.15s ease; }
.kpi-box:active { transform: scale(0.95); }
.kpi-box.active { border-color: var(--outline); background: var(--lemon-bg); box-shadow: 2.5px 2.5px 0 var(--shadow); }
.kpi-num { font-size: 22px; font-weight: 900; line-height: 1.1; }
.kpi-lbl { font-size: 11.5px; font-weight: 700; color: var(--ink-soft); margin-top: 2px; }
.sub-tabs-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.sub-tab { padding: 9px 4px; border-radius: 16px; border: 1.8px solid var(--border-soft); background: #FFF; font-size: 12.5px; font-weight: 800; color: var(--ink-soft); }
.sub-tab.active { border-color: var(--outline); background: var(--pink-bg); color: var(--pink-tx); box-shadow: 2.5px 2.5px 0 var(--shadow); }
.ticket { border-left: 7px solid #F3C969; }
.ticket.st-cooking { border-left-color: #FF8A65; background: #FFFBF6; }
.ticket.st-done { border-left-color: #58C28E; opacity: 0.84; }
.ticket.st-errand { border-left-color: #5AB4F0; }
.ticket.st-bought { border-left-color: #58C28E; opacity: 0.8; }
.alert-strip { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding: 9px; border-radius: 12px; background: #FFF2F5; border: 1.5px dashed #F5A3B5; }
.alert-pill { font-size: 12.5px; font-weight: 800; padding: 2px 8px; border-radius: 8px; }
.ap-warn  { background: #FFE0E6; color: #C82346; }
.ap-spice { background: var(--peach-bg); color: var(--peach-tx); }
.ap-note  { background: var(--lemon-bg); color: #8A5804; }
.errand-spec-box { margin-top: 10px; padding: 10px; border-radius: 12px; background: #F4FAFF; border: 1.5px dashed #8CCCF5; font-size: 13.5px; font-weight: 800; color: #1F4E75; }
.timer-strip { margin-top: 8px; padding: 6px 10px; border-radius: 10px; background: #FFF3E0; color: #C2531E; font-size: 12.5px; font-weight: 800; }
.groc-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 11px; border-radius: 14px; border: 1.5px solid var(--border-soft); background: #FFF; margin-bottom: 8px; cursor: pointer; }
.groc-row.checked { background: var(--mint-bg); border-color: #8ADBB3; color: var(--ink-muted); }
.groc-row.checked .groc-name { text-decoration: line-through; }
.groc-check { width: 20px; height: 20px; border-radius: 6px; border: 1.8px solid var(--outline); background: #FFF; color: var(--mint-tx); font-weight: 900; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; margin-right: 8px; }
.theme-picker-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.theme-swatch { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 15px; border: 1.8px solid var(--border-soft); background: #FFF; font-size: 12.5px; font-weight: 800; transition: transform 0.16s ease; }
.theme-swatch:active { transform: scale(0.96); }
.theme-swatch.active { border-color: var(--outline); background: var(--gold-bg); box-shadow: 2.5px 2.5px 0 var(--shadow); }
.sw-dot { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--outline); flex-shrink: 0; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1.5px dashed var(--border-soft); }
.chore-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.chore-card { border: 1.8px solid var(--outline); border-radius: 18px; padding: 10px 6px; text-align: center; box-shadow: 2.5px 2.5px 0 var(--shadow); cursor: pointer; transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1); }
.chore-card:active { transform: scale(0.94); }
.chore-av { width: 46px; height: 46px; border-radius: 50%; border: 1.8px solid var(--outline); overflow: hidden; margin: 6px auto 4px; background: #FFF; }
.chore-av img { width: 100%; height: 100%; object-fit: cover; }
.sticky-card { border: 1.8px solid var(--outline); border-radius: 15px; padding: 10px 12px; margin-bottom: 8px; box-shadow: 2.5px 2.5px 0 rgba(90, 66, 50, 0.1); }
.mem-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1.5px dashed var(--border-soft); }
.mem-row:last-child { border-bottom: none; }
.sticker-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sticker-cell { border: 1.8px solid var(--outline); border-radius: 16px; padding: 8px 4px; text-align: center; cursor: pointer; transition: transform 0.16s ease; }
.sticker-cell:active { transform: scale(0.93); }
.st-av { width: 48px; height: 48px; border-radius: 50%; border: 1.8px solid var(--outline); overflow: hidden; margin: 0 auto 4px; background: #FFF; }
.link-btn { border: none; background: transparent; color: var(--ink-soft); font-size: 12.5px; font-weight: 700; }
.link-danger { color: #C84562; }
.combo-item-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; border: 1.5px solid var(--border-soft); background: #FFF; margin-bottom: 8px; }
.bottom-tabbar {
  position: fixed; bottom: calc(10px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  width: calc(100% - 20px); max-width: 476px; z-index: 60; display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px 6px; border-radius: 26px; background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1.8px solid var(--outline); box-shadow: 0 10px 28px rgba(107, 62, 84, 0.18), 0 3px 0 var(--shadow);
}
.tb-item { position: relative; border: none; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 5px 0; border-radius: 18px; color: var(--ink-soft); font-weight: 800; transition: background 0.2s ease, color 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1); }
.tb-item.active { color: var(--accent); background: var(--warm); }
.tb-item.active .tb-ico { transform: translateY(-2px) scale(1.14); }
.tb-ico { font-size: 20px; line-height: 1.15; transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1); }
.tb-lbl { font-size: 10.5px; }
.tb-badge { position: absolute; top: 1px; right: 14%; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: #FF5478; color: #FFF; font-size: 10.5px; font-weight: 900; border: 1.5px solid #FFF; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(255, 84, 120, 0.45); }
.tb-badge.bump { animation: badgeBump 0.42s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes badgeBump { 0% { transform: scale(1); } 50% { transform: scale(1.42); } 100% { transform: scale(1); } }
.sheet-mask { position: fixed; inset: 0; z-index: 120; background: rgba(45, 24, 54, 0.48); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: none; align-items: flex-end; justify-content: center; }
.sheet-mask.open { display: flex; }
.sheet-panel { width: 100%; max-width: 500px; background: #FFFDFB; border-top: 2.5px solid var(--outline); border-radius: 28px 28px 0 0; padding: 10px 18px calc(24px + env(safe-area-inset-bottom)); max-height: 86vh; overflow-y: auto; animation: sheetUp 0.24s cubic-bezier(0.22, 1, 0.36, 1); }
.sheet-grabber { width: 40px; height: 4px; border-radius: 999px; background: var(--border-soft); margin: 0 auto 12px; }
@keyframes sheetUp { from { transform: translateY(42px); opacity: 0.4; } to { transform: translateY(0); opacity: 1; } }
.close-btn { width: 32px; height: 32px; border-radius: 50%; border: 1.8px solid var(--outline); background: var(--pink-bg); font-size: 18px; font-weight: 900; line-height: 1; }
.form-blk { margin-bottom: 13px; }
.form-lbl { font-size: 12.5px; font-weight: 800; color: var(--ink-soft); margin-bottom: 6px; }
.pill-wrap { display: flex; flex-wrap: wrap; gap: 7px; }
.sel-pill { padding: 6px 12px; border-radius: 999px; border: 1.8px solid var(--border-soft); background: #FFF; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); transition: transform 0.14s ease; }
.sel-pill:active { transform: scale(0.94); }
.sel-pill.active { border-color: var(--outline); background: var(--lemon-bg); color: var(--ink); box-shadow: 2px 2px 0 var(--shadow); }
.qty-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.qty-ctrl { display: flex; align-items: center; gap: 12px; }
.q-btn { width: 32px; height: 32px; border-radius: 10px; border: 1.8px solid var(--outline); background: #FFF; font-size: 18px; font-weight: 900; }
.q-val { font-size: 16px; font-weight: 900; min-width: 20px; text-align: center; }
.empty-box { text-align: center; padding: 34px 16px; color: var(--ink-muted); font-size: 13px; }
.tap-spark { position: fixed; pointer-events: none; z-index: 300; font-size: 16px; animation: sparkFly 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
@keyframes sparkFly { 0% { opacity: 1; transform: translate(-50%, -50%) scale(0.6); } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.25) rotate(28deg); } }
.fly-dish-dot { position: fixed; z-index: 260; pointer-events: none; width: 36px; height: 36px; border-radius: 50%; background: #FFF; border: 2px solid var(--gold); box-shadow: 0 4px 14px rgba(240, 98, 146, 0.35); display: flex; align-items: center; justify-content: center; font-size: 20px; transition: transform 0.58s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.58s ease; }
.toast { position: fixed; bottom: calc(92px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%) translateY(14px); background: var(--ink); color: #FFFDF8; padding: 10px 18px; border-radius: 999px; border: 1.8px solid #FFE28A; box-shadow: 0 8px 24px rgba(56, 26, 56, 0.28); font-size: 13px; font-weight: 800; opacity: 0; pointer-events: none; transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1); z-index: 250; white-space: nowrap; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#confettiCanvas { position: fixed; inset: 0; pointer-events: none; z-index: 480; }