/* 下厨菜单 —— 暖色厨房风 */
:root {
  --bg: #faf6ef;
  --card: #ffffff;
  --primary: #16a34a;
  --primary-dark: #15803d;
  --primary-soft: #dcfce7;
  --orange: #f97316;
  --orange-dark: #c2410c;
  --douyin: #111111;
  --text: #292524;
  --muted: #8a8177;
  --line: #ece4d8;
  --danger: #dc2626;
  --shadow: 0 2px 10px rgba(90, 70, 40, .07), 0 1px 3px rgba(90, 70, 40, .05);
  --radius: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[v-cloak] { display: none; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  padding-bottom: 80px;
}
button { font-family: inherit; cursor: pointer; }
a { text-decoration: none; color: inherit; }
img { display: block; }
.muted { color: var(--muted); font-size: 13px; }
.hint { margin-top: 10px; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 248, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1000px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; gap: 18px;
}
.logo { font-size: 19px; white-space: nowrap; }
.logo b { letter-spacing: .5px; }
.mainnav { display: flex; gap: 4px; flex: 1; }
.mainnav a {
  padding: 7px 13px; border-radius: 999px; font-size: 14.5px; color: #6b5f52;
  transition: .15s;
}
.mainnav a:hover { background: #f3ecdf; }
.mainnav a.active { background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; }
.userchip { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #fdba74, #f97316);
  color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700;
}
.uname { font-size: 14px; font-weight: 600; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linkbtn { border: 0; background: none; color: var(--muted); font-size: 13px; padding: 4px; }
.linkbtn:hover { color: var(--primary-dark); }

/* ---------- 布局 ---------- */
.page { max-width: 1000px; margin: 0 auto; padding: 18px 16px 40px; }
.view { display: flex; flex-direction: column; gap: 14px; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.card-head h2 { font-size: 17px; }
.empty { text-align: center; padding: 34px 18px; color: var(--muted); }
.empty .btn { margin-top: 12px; }

/* ---------- 首页 ---------- */
.hero { display: flex; align-items: center; justify-content: space-between; background: linear-gradient(120deg, #fffdf8, #fff4e4); }
.hero-text h1 { font-size: 21px; margin-bottom: 4px; }
.hero-emoji { font-size: 58px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.12)); }
.statrow { display: flex; gap: 18px; margin-top: 10px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat b { font-size: 19px; color: var(--primary-dark); }
.stat span { font-size: 12px; color: var(--muted); }

.roulette-card { text-align: center; background: linear-gradient(160deg, #ffffff, #f4fbf3); }

/* ---------- 每日推荐 ---------- */
.daily-card { background: linear-gradient(150deg, #fffdf8, #f2faf1); }
.daily-sub { margin: -6px 0 12px; }
.daily-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.daily-item {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 5px;
  background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 14px 10px 12px;
}
.di-emoji { font-size: 34px; }
.di-name { font-size: 15.5px; }
.di-cat { font-size: 12px; }
.daily-item .d-actions { flex-wrap: wrap; justify-content: center; margin-top: 4px; }

/* ---------- 制作流程 ---------- */
.flow-card { padding: 14px 16px; }
.flow-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; cursor: pointer; }
.flow-name { font-size: 16.5px; }
.flow-sum { margin: 6px 0 10px; font-size: 13px; cursor: pointer; }
.smart-box { background: #f6fcf4; border: 1.5px dashed var(--primary); border-radius: 13px; padding: 13px 14px; margin-bottom: 16px; }
.smart-title { font-size: 14px; margin-bottom: 10px; color: var(--primary-dark); }
.smart-btns { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.smart-note { margin-top: 8px; line-height: 1.5; }
.smart-message { margin-top: 8px; font-size: 13.5px; color: var(--primary-dark); overflow-wrap: anywhere; }
.smart-message.error { color: var(--danger); }
.step-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.step-row .input { flex: 1; }
.step-no {
  width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 700; flex-shrink: 0;
}
.step-ops { display: flex; gap: 4px; }
.step-ops .iconbtn:disabled { opacity: .35; cursor: not-allowed; }
.flow-sec { font-size: 14px; color: var(--primary-dark); margin: 14px 0 7px; }
.step-view { display: flex; gap: 9px; align-items: flex-start; padding: 7px 10px; border-radius: 9px; background: #fbf7ee; margin-bottom: 6px; font-size: 14px; line-height: 1.6; }
.badge.ord { background: #fff3e6; color: var(--orange-dark); }
.badge.spin { background: #ede9fe; color: #6d28d9; }
.badge.model3d { background: #e0f2fe; color: #0369a1; }
.spin-label { color: #6d28d9 !important; }
.spin-box { border-color: #c4b5fd; }
.spin-box:hover { border-color: #7c3aed; background: #faf8ff; }

/* 360° 转盘查看器 */
.spin-modal { max-width: 560px; }
.spin-stage {
  position: relative; border-radius: 14px; overflow: hidden; background: #141210;
  touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
}
.spin-stage:active { cursor: grabbing; }
.spin-stage img {
  width: 100%; height: 340px; object-fit: cover; display: block;
  pointer-events: none;
}
.spin-angle {
  position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,.55); color: #fff;
  font-size: 12.5px; padding: 3px 10px; border-radius: 999px;
}
.spin-hint {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,.55); color: #fff; font-size: 13px; padding: 5px 14px; border-radius: 999px;
  animation: pulse 1.6s infinite;
}
@keyframes pulse { 0%,100% { opacity: .85; } 50% { opacity: .45; } }
.spin-ctrl { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.spin-ctrl input[type=range] { flex: 1; accent-color: var(--primary); }
.btnrow3d { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }

/* ---------- 冰箱里还有什么 ---------- */
.fridge-add { display: grid; grid-template-columns: 1.4fr 1fr 0.7fr auto; gap: 8px; margin-top: 12px; }
.fridge-item { padding: 12px 16px; }
.fridge-main { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fridge-main b { font-size: 15.5px; }
.fridge-qty { color: var(--primary-dark); font-weight: 700; font-size: 14.5px; }
.fridge-qty.zero { color: var(--muted); font-weight: 400; }
.fridge-ops { display: flex; align-items: center; gap: 6px; margin-top: 9px; flex-wrap: wrap; }
.fridge-ops .mini { font-size: 12px; color: var(--muted); }
input.mini-input { width: 92px; padding: 5px 9px; font-size: 13px; }
.use-row {
  display: flex; align-items: center; gap: 10px; padding: 6px 10px;
  border: 1px solid var(--line); border-radius: 9px; margin-bottom: 6px; background: #fffdf9;
}
.use-name { flex: 1; font-size: 13.5px; min-width: 0; }
.use-name em { font-style: normal; font-size: 12px; }
input.use-input { width: 150px; padding: 6px 10px; font-size: 13px; }
.import-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ir-name { flex: 1; font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
input.ir-qty { width: 90px; }
input.ir-unit { width: 70px; }

/* ---------- 照片条（多图预览 / 详情展示） ---------- */
.photo-strip { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.photo-strip.big { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 4px; }
.strip-item { position: relative; display: inline-block; }
.strip-img { width: 86px; height: 86px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.strip-badge { position: absolute; left: 4px; bottom: 5px; padding: 1px 5px; border-radius: 5px; background: rgba(0,0,0,.65); color: #fff; font-size: 10px; }
.strip-img.big { width: 200px; height: 145px; }
.strip-add {
  width: 86px; height: 86px; border: 2px dashed #d9cfc0; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 24px; color: #c9bfae;
}
.rd-review { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 12px 0 8px; }
.rd-nophoto { background: #fdfaf4; border: 1.5px dashed #d9cfc0; border-radius: 12px; padding: 20px; text-align: center; color: var(--muted); }
.record.clickable { cursor: pointer; transition: .15s; }
.record.clickable:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(90,70,40,.12); }
.switch { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.switch input { accent-color: var(--primary); }
.roulette { padding: 18px 0 8px; min-height: 130px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.r-emoji { font-size: 54px; line-height: 1.15; }
.r-name { font-size: 24px; font-weight: 800; margin-top: 6px; letter-spacing: 1px; }
.r-cat { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.roulette.spinning .r-emoji { animation: wobble .35s infinite; }
.roulette.spinning .r-name { color: var(--muted); }
.roulette.settled .r-emoji { animation: pop .45s ease; }
@keyframes wobble { 0%,100% { transform: rotate(-8deg) scale(.96); } 50% { transform: rotate(8deg) scale(1.04); } }
@keyframes pop { 0% { transform: scale(.5); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
.r-actions { display: flex; gap: 10px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }

.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.quick { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; border: 0; transition: .15s; }
.quick:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(90,70,40,.12); }
.q-emoji { font-size: 26px; margin-bottom: 4px; }
.quick b { font-size: 14.5px; }

.recent-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.recent-item { display: flex; flex-direction: column; gap: 3px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.r-photo { width: 100%; height: 92px; object-fit: cover; border-radius: 9px; background: #f4efe6; }
.r-photo.ph { display: flex; align-items: center; justify-content: center; font-size: 34px; }
.r-name { font-size: 14.5px; }
.r-stars { color: var(--orange); font-size: 13px; letter-spacing: 1px; }
.r-stars i { color: #ddd3c4; font-style: normal; }
.r-time { font-size: 12px; }

/* ---------- 徽章 ---------- */
.badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge.done { background: var(--primary-soft); color: var(--primary-dark); }
.badge.undone { background: #f1ece2; color: #a39a8d; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  border: 1px solid transparent; border-radius: 10px; padding: 9px 16px;
  font-size: 14.5px; font-weight: 600; transition: .15s; white-space: nowrap;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover:not(:disabled) { background: var(--orange-dark); }
.btn-douyin { background: var(--douyin); color: #fff; }
.btn-douyin:hover { background: #333; }
.btn-ghost { background: #fff; border-color: var(--line); color: #57534e; }
.btn-ghost:hover { border-color: #cbbfa9; }
.btn-danger { background: #fee2e2; color: var(--danger); border-color: transparent; }
.btn-danger:hover { background: #fecaca; }
.btn-sm { padding: 6px 12px; font-size: 13.5px; border-radius: 8px; }
.btn-xs { padding: 3px 9px; font-size: 12.5px; border-radius: 7px; }
.btn-block { width: 100%; }
.iconbtn { border: 0; background: #f3ede2; width: 28px; height: 28px; border-radius: 50%; font-size: 13px; color: #7a6f5f; flex-shrink: 0; }
.iconbtn:hover { background: #e8e0d0; }

/* ---------- 搜索 ---------- */
.search-card { padding: 14px 16px; }
.search-row { display: flex; gap: 10px; }
.search-input { flex: 1; }
.input {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 13px;
  font-size: 14.5px; background: #fffdf9; color: var(--text); outline: none; transition: .15s;
  font-family: inherit;
}
.input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(22,163,74,.12); }
textarea.input { resize: vertical; }
.hotrow { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: #fffdf9; border-radius: 999px; padding: 4px 12px; font-size: 13px; color: #6b5f52; }
.chip:hover { border-color: var(--primary); color: var(--primary-dark); }
.douyin-row { padding-top: 4px; }

/* ---------- 菜谱卡片 ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; }
.dish { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 5px; padding: 16px 12px 13px; }
.d-emoji { font-size: 40px; }
.d-name { font-size: 16px; }
.d-cat { font-size: 12.5px; }
.d-actions { display: flex; gap: 6px; margin-top: 7px; }

/* ---------- 买菜 ---------- */
.cat-title { font-size: 15.5px; margin-bottom: 12px; }
.ing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.ing {
  position: relative; border: 1.5px solid var(--line); background: #fffdf9; border-radius: 10px;
  padding: 8px 6px; font-size: 13.5px; color: var(--text); transition: .12s; overflow: hidden;
}
.ing:hover { border-color: var(--primary); background: #f4fbf3; transform: translateY(-1px); }
.ing.inbasket { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; }
.ing .ing-add {
  position: absolute; top: 3px; right: 6px; font-size: 11px; color: #c9bfae; font-weight: 700;
}
.ing .ing-add.ok { color: var(--primary); }
.basket-fab {
  position: fixed; right: 20px; bottom: 26px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; border: 0; font-size: 24px;
  background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(249, 115, 22, .4);
  transition: .15s;
}
.basket-fab:hover { transform: scale(1.07); }
.fab-badge {
  position: absolute; top: -3px; right: -3px; background: var(--danger); color: #fff;
  font-size: 12px; min-width: 21px; height: 21px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; padding: 0 5px; border: 2px solid #fff;
}

/* ---------- 我的记录 ---------- */
.record { display: flex; gap: 14px; padding: 14px; }
.rec-photo { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; flex-shrink: 0; background: #f4efe6; }
.rec-photo.ph { display: flex; align-items: center; justify-content: center; font-size: 36px; }
.rec-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.rec-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rec-top b { font-size: 16px; }
.tagrow { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { background: #f4efe4; color: #7a6f5c; font-size: 12px; padding: 2.5px 10px; border-radius: 999px; }
.tag.pick { border: 1.5px solid var(--line); background: #fff; cursor: pointer; }
.tag.pick.on { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-dark); font-weight: 600; }
.rec-notes { font-size: 13.5px; color: #57534e; background: #fbf7ee; border-radius: 8px; padding: 6px 10px; }
.rec-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 2px; }
.rec-ops { display: flex; gap: 6px; }

/* ---------- 登录注册 ---------- */
.auth-view { align-items: center; padding-top: 30px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-welcome { text-align: center; color: #57534e; font-size: 14.5px; line-height: 1.8; margin-bottom: 16px; background: #f4fbf3; border-radius: 10px; padding: 10px 12px; }
.auth-tabs { display: flex; background: #f3ecdf; border-radius: 11px; padding: 4px; margin-bottom: 18px; }
.auth-tabs button { flex: 1; border: 0; background: none; padding: 9px; border-radius: 8px; font-size: 15px; color: #7a6f5f; font-weight: 600; }
.auth-tabs button.on { background: #fff; color: var(--primary-dark); box-shadow: var(--shadow); }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: #57534e; }
.pwd-wrap { position: relative; display: block; }
.pwd-wrap .input { padding-right: 88px; }
.pwd-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  border: 0; background: #f3ede2; color: #7a6f5f; font-size: 12.5px; font-weight: 600;
  border-radius: 999px; padding: 4px 11px; cursor: pointer; transition: .15s;
}
.pwd-toggle:hover { background: #e8e0d0; color: #57534e; }
.form-err { color: var(--danger); font-size: 13.5px; margin: -4px 0 12px; }
.demo-hint { margin-top: 16px; font-size: 13px; color: var(--muted); background: #fbf7ee; padding: 9px 12px; border-radius: 9px; text-align: center; }
.demo-hint b { color: var(--primary-dark); }

/* ---------- 弹窗 ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(40, 32, 20, .45);
  display: flex; align-items: center; justify-content: center; padding: 18px;
  animation: fade .18s ease;
}
@keyframes fade { from { opacity: 0; } }
.modal {
  background: #fff; border-radius: 18px; width: 100%; max-width: 440px;
  max-height: 86vh; overflow-y: auto; padding: 20px; animation: up .22s ease;
}
@keyframes up { from { transform: translateY(22px); opacity: 0; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal-head h3 { font-size: 17px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

.photo-box {
  position: relative; border: 2px dashed #d9cfc0; border-radius: 14px; background: #fdfaf4;
  min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; cursor: pointer; margin-bottom: 14px; overflow: hidden; transition: .15s;
}
.photo-box:hover { border-color: var(--primary); background: #f6fcf4; }
.photo-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-emoji { font-size: 34px; }
.photo-del { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,.5); color: #fff; z-index: 2; }
.recog-line { font-size: 13.5px; color: var(--orange-dark); background: #fff3e6; padding: 7px 12px; border-radius: 9px; margin-bottom: 12px; }
.star-pick { display: flex; align-items: center; gap: 3px; }
.star { border: 0; background: none; font-size: 27px; color: #ddd3c4; transition: .1s; line-height: 1; }
.star.on { color: var(--orange); transform: scale(1.05); }
.star-pick em { margin-left: 8px; font-style: normal; }

/* 买菜篮 */
.basket-list { display: flex; flex-direction: column; gap: 8px; }
.basket-item { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.bi-cat { font-size: 12px; flex-shrink: 0; }
.bi-name { flex: 1; font-size: 14.5px; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 700; color: #57534e; }
.qty button:hover { border-color: var(--primary); color: var(--primary-dark); }
.qty b { min-width: 18px; text-align: center; }

/* 购买清单 */
.list-body { }
.list-cat { font-size: 14.5px; margin: 12px 0 6px; color: var(--primary-dark); }
.list-item {
  display: flex; align-items: center; gap: 9px; padding: 6px 10px; border-radius: 8px; cursor: pointer;
}
.list-item:hover { background: #faf6ec; }
.list-item input { accent-color: var(--primary); width: 16px; height: 16px; }
.li-name { flex: 1; font-size: 14.5px; }
.list-item.checked .li-name { text-decoration: line-through; color: #b5aa98; }
.li-qty { font-size: 13px; }

/* ---------- 移动端底栏 ---------- */
.tabbar { display: none; }

/* ---------- 提示气泡 ---------- */
.toasts { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; width: max-content; max-width: 92vw; }
.toast {
  background: #2d2a26; color: #fff; padding: 10px 18px; border-radius: 999px;
  font-size: 14px; box-shadow: 0 6px 18px rgba(0,0,0,.25); animation: up .2s ease; max-width: 92vw;
}
.toast.t-ok { background: var(--primary-dark); }
.toast.t-err { background: var(--danger); }

/* ---------- 响应式 ---------- */
@media (max-width: 760px) {
  .smart-btns .btn { min-height: 42px; }
  .topbar .mainnav { display: none; }
  .topbar-inner { padding: 10px 14px; }
  .page { padding: 14px 12px 96px; }
  body { padding-bottom: 0; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .hero-emoji { font-size: 44px; }
  .r-name { font-size: 21px; }
  .daily-grid { gap: 7px; }
  .daily-item { padding: 10px 5px 10px; }
  .di-emoji { font-size: 26px; }
  .di-name { font-size: 13.5px; }

  .tabbar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
    background: rgba(255, 253, 248, .96); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px;
    font-size: 11.5px; color: #94887a; padding: 4px 0;
  }
  .tabbar a span { font-size: 20px; }
  .tabbar a.active { color: var(--primary-dark); font-weight: 700; }
  .tabbar .fab {
    width: 52px; height: 52px; border-radius: 50%; border: 0; margin-top: -22px;
    background: var(--orange); color: #fff; font-size: 26px; font-weight: 300;
    box-shadow: 0 6px 16px rgba(249, 115, 22, .45); flex-shrink: 0;
  }
  .overlay { padding: 0; align-items: flex-end; }
  .modal { max-width: 100%; border-radius: 18px 18px 0 0; max-height: 88vh; }
  .basket-fab { bottom: 86px; right: 16px; }
}
