:root {
  --bg: #f6f5f2;
  --ink: #192126;
  --muted: #54616b;
  --card: #fffdf8;
  --accent: #d95f2d;
  --accent-dark: #9b3e1a;
  --line: #e8dccf;
  --ok: #1f7a48;
  --shadow: 0 14px 42px rgba(43, 49, 55, 0.12);
}

/* Reference fidelity pass: align consumer pages with ui/reference mini-program screens. */
:root {
  --ref-page-width: 430px;
  --ref-green: #38ad45;
  --ref-green-deep: #238b34;
  --ref-green-soft: #edf9ea;
  --ref-green-panel: #f3fbef;
  --ref-orange: #ff6819;
  --ref-orange-soft: #fff1e3;
  --ref-text: #17191d;
  --ref-muted: #7d8188;
  --ref-line: rgba(36, 55, 42, 0.1);
  --ref-card-shadow: 0 8px 24px rgba(24, 46, 31, 0.08);
}

html {
  background: #eef8f1;
}

body.has-app-tabbar {
  min-height: 100vh;
  margin: 0;
  color: var(--ref-text);
  background:
    linear-gradient(180deg, rgba(235, 249, 235, 0.8) 0%, rgba(255, 255, 255, 0) 220px),
    #f8fbf7;
  letter-spacing: 0;
}

.has-app-tabbar .bg-shape {
  display: none !important;
}

.has-app-tabbar .shell {
  position: relative;
  width: min(100%, var(--ref-page-width));
  max-width: var(--ref-page-width) !important;
  min-height: 100vh;
  margin: 0 auto;
  padding: 74px 14px calc(92px + env(safe-area-inset-bottom, 0px)) !important;
  gap: 12px;
  background:
    radial-gradient(circle at 50% 0%, rgba(122, 214, 93, 0.16), transparent 170px),
    linear-gradient(180deg, #fbfdf9 0%, #ffffff 54%, #fbfdf9 100%);
  overflow-x: hidden;
}

@media (min-width: 700px) {
  body.has-app-tabbar {
    background: #eaf5ed;
  }

  .has-app-tabbar .shell {
    box-shadow: 0 24px 80px rgba(28, 74, 42, 0.16);
  }
}

.has-app-tabbar .shell::before {
  content: "9:41";
  position: absolute;
  top: 12px;
  left: 18px;
  right: 18px;
  z-index: 5;
  height: 24px;
  color: #07080a;
  font-size: 14px;
  font-weight: 900;
  line-height: 24px;
  pointer-events: none;
}

.has-app-tabbar .shell::after {
  content: "•••  |  ◎";
  position: absolute;
  top: 38px;
  right: 14px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 30px;
  border: 1px solid rgba(30, 31, 33, 0.1);
  border-radius: 999px;
  color: #07080a;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 2px 10px rgba(20, 30, 20, 0.05);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 1px;
  pointer-events: none;
}

.has-app-tabbar :is(.card, .panel, section.card, article.card) {
  border: 1px solid var(--ref-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--ref-card-shadow);
}

.has-app-tabbar :is(h1, h2, h3, p, span, strong, a, button, input, select, textarea) {
  letter-spacing: 0 !important;
}

.has-app-tabbar :is(h1, h2, h3) {
  color: var(--ref-text);
  line-height: 1.16;
}

.has-app-tabbar .eyebrow {
  color: var(--ref-green);
  font-size: 12px;
  font-weight: 900;
  text-transform: none;
}

.has-app-tabbar .subtitle,
.has-app-tabbar .compact-subtitle,
.has-app-tabbar .status,
.has-app-tabbar .empty-card-text {
  color: var(--ref-muted);
  line-height: 1.55;
}

.has-app-tabbar :is(button, .hero-link, .secondary-button) {
  border-radius: 999px;
  font-weight: 800;
}

.has-app-tabbar button:not(.ghost-btn),
.has-app-tabbar .secondary-button,
.has-app-tabbar .hero-link {
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, #63ca53 0%, var(--ref-green) 100%);
  box-shadow: 0 8px 18px rgba(52, 174, 69, 0.24);
}

.has-app-tabbar .ghost-btn,
.has-app-tabbar .ghost-link,
.has-app-tabbar .admin-link {
  border: 1px solid rgba(56, 173, 69, 0.24);
  border-radius: 999px;
  color: var(--ref-green-deep);
  background: #fff;
  box-shadow: 0 4px 12px rgba(24, 46, 31, 0.06);
}

.has-app-tabbar .saving-pill,
.has-app-tabbar .tag {
  border: 0;
  color: var(--ref-green-deep);
  background: #e6f7df;
  border-radius: 8px;
}

.has-app-tabbar .app-tabbar {
  left: 50%;
  bottom: 0;
  width: min(100%, var(--ref-page-width));
  height: 76px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  border: 1px solid rgba(24, 46, 31, 0.08);
  border-radius: 18px 18px 0 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -8px 22px rgba(24, 46, 31, 0.08);
}

.has-app-tabbar .app-tabbar__link {
  gap: 2px;
  color: #8a8f96;
  font-size: 12px;
}

.has-app-tabbar .app-tabbar__link.is-active {
  color: var(--ref-green);
}

.has-app-tabbar .app-tabbar__icon {
  width: 28px;
  height: 28px;
}

.has-app-tabbar .app-tabbar__icon svg {
  width: 25px;
  height: 25px;
  stroke-width: 2.2;
}

.has-app-tabbar .app-tabbar__link.is-active .app-tabbar__icon {
  border-radius: 999px;
  background: rgba(82, 190, 76, 0.14);
}

.has-app-tabbar .app-tabbar__label {
  font-size: 12px;
  font-weight: 700;
}

body.has-app-tabbar .home-shell {
  padding-top: 48px !important;
}

.has-app-tabbar .home-hero {
  position: relative;
  padding: 12px 0 0 !important;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.has-app-tabbar .home-hero-top {
  align-items: flex-start;
}

.has-app-tabbar .brand-lockup {
  gap: 10px;
}

.has-app-tabbar .brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 20px;
  background: linear-gradient(180deg, #7ed160 0%, var(--ref-green) 100%);
}

.has-app-tabbar .home-hero .eyebrow {
  margin-top: 2px;
  color: var(--ref-text);
  font-size: 19px;
}

.has-app-tabbar .home-hero h1 {
  max-width: 310px;
  margin-top: 34px;
  font-size: 36px;
  line-height: 1.12;
  font-weight: 900;
}

.has-app-tabbar .home-hero h1 span {
  color: var(--ref-orange);
}

.has-app-tabbar .home-hero .subtitle {
  max-width: 265px;
  margin-top: 10px;
  font-size: 16px;
}

.has-app-tabbar .home-hero .admin-link {
  display: none;
}

.has-app-tabbar .hero-visual-row {
  display: block;
  margin-top: 16px;
}

.has-app-tabbar .hero-figure {
  display: block;
  position: absolute;
  right: 10px;
  top: 104px;
  width: 120px;
  height: 108px;
  opacity: 0.95;
  pointer-events: none;
}

.has-app-tabbar .hero-figure__wallet {
  position: absolute;
  right: 18px;
  bottom: 20px;
  width: 72px;
  height: 62px;
  border-radius: 16px;
  background: linear-gradient(145deg, #c7f5a7 0%, #58bd42 100%);
  box-shadow: 0 12px 24px rgba(64, 170, 67, 0.22);
}

.has-app-tabbar .hero-figure__coin {
  position: absolute;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe2a0 0%, #ffb934 100%);
  box-shadow: 0 8px 18px rgba(255, 150, 24, 0.22);
}

.has-app-tabbar .hero-figure__coin::before {
  content: "¥";
  display: grid;
  place-items: center;
  height: 100%;
  color: #e78615;
  font-weight: 900;
}

.has-app-tabbar .hero-figure__coin--small {
  left: 8px;
  bottom: 8px;
  width: 30px;
  height: 30px;
}

.has-app-tabbar .hero-figure__coin--large {
  right: 0;
  bottom: 0;
  width: 42px;
  height: 42px;
}

.has-app-tabbar .home-search-panel {
  width: 100%;
}

.has-app-tabbar .home-search-row,
.has-app-tabbar .search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px;
  gap: 8px;
  align-items: center;
  min-height: 56px;
  padding: 6px;
  border: 1.5px solid rgba(56, 173, 69, 0.28);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(37, 114, 50, 0.08);
}

.has-app-tabbar .search-row input {
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 16px;
}

.has-app-tabbar .search-row button {
  min-height: 44px;
  padding: 0 18px;
  font-size: 16px;
}

.has-app-tabbar .hero-tip {
  margin: 12px 0 0;
  color: var(--ref-green-deep);
  font-size: 13px;
  font-weight: 800;
}

.has-app-tabbar .home-entry-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px;
  margin-top: 14px;
}

.has-app-tabbar .home-entry-card {
  min-height: 114px;
  padding: 10px 7px;
  justify-items: center;
  text-align: center;
  border-radius: 14px;
}

.has-app-tabbar .entry-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 4px;
  border-radius: 18px;
  background: linear-gradient(180deg, #effbe9 0%, #dff4d4 100%);
}

.has-app-tabbar .entry-title {
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
}

.has-app-tabbar .entry-desc {
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.3;
}

.has-app-tabbar .home-savings-card {
  position: relative;
  min-height: 116px;
  padding: 16px 150px 16px 18px;
  border-color: rgba(79, 186, 71, 0.28);
  background: linear-gradient(100deg, #f5fff0 0%, #effae8 62%, #fff8ed 100%);
  overflow: hidden;
}

.has-app-tabbar .home-savings-card::after {
  content: "¥";
  position: absolute;
  right: 28px;
  bottom: 20px;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  color: #fff;
  font-size: 34px;
  font-weight: 900;
  background: linear-gradient(180deg, #ffd98c 0%, #ffb22c 100%);
  box-shadow: -20px 10px 0 rgba(255, 189, 71, 0.18), 0 14px 26px rgba(255, 144, 24, 0.22);
}

.has-app-tabbar .home-savings-card .eyebrow {
  color: var(--ref-text);
  font-size: 18px;
}

.has-app-tabbar .home-savings-amount {
  align-items: baseline;
}

.has-app-tabbar .home-savings-amount strong {
  color: var(--ref-orange);
  font-size: 60px;
  line-height: 0.92;
}

.has-app-tabbar .home-savings-actions,
.has-app-tabbar .home-savings-meta {
  display: none;
}

.has-app-tabbar .home-primary-grid,
.has-app-tabbar .home-support-grid,
.has-app-tabbar .home-results-grid,
.has-app-tabbar .home-side-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.has-app-tabbar .home-featured-section {
  padding: 16px;
}

.has-app-tabbar .section-header,
.has-app-tabbar .section-head {
  align-items: center;
}

.has-app-tabbar .section-header h2,
.has-app-tabbar .section-head h2 {
  font-size: 20px;
  font-weight: 900;
}

.has-app-tabbar .home-featured-section .compact-subtitle,
.has-app-tabbar .home-guide-card,
.has-app-tabbar .home-profile-card {
  display: none;
}

.has-app-tabbar .home-featured-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 112px;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 0 4px;
  scroll-snap-type: x proximity;
}

.has-app-tabbar .featured-dish-card {
  width: 112px;
  min-width: 112px;
  padding: 0 0 10px;
  border: 1px solid var(--ref-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  overflow: hidden;
}

.has-app-tabbar .featured-dish-card .food-image-card {
  height: 72px;
  border-radius: 0;
}

.has-app-tabbar .featured-dish-body {
  padding: 8px;
}

.has-app-tabbar .featured-dish-title {
  min-height: 34px;
  font-size: 13px;
  line-height: 1.25;
}

.has-app-tabbar .featured-dish-meta {
  font-size: 11px;
}

.has-app-tabbar .featured-dish-saving {
  color: var(--ref-orange);
  font-size: 17px;
  font-weight: 900;
}

.has-app-tabbar .featured-dish-source,
.has-app-tabbar .featured-dish-action {
  display: none;
}

.has-app-tabbar .home-recommend-card {
  padding: 14px;
}

.has-app-tabbar .home-recommend-layout {
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
}

.has-app-tabbar .home-recommend-layout .food-image-card {
  height: 112px;
  border-radius: 999px;
}

.has-app-tabbar .home-recommend-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.has-app-tabbar .mini-stat {
  padding: 8px;
  border-radius: 10px;
  background: #fbfcfa;
}

.has-app-tabbar .mini-stat span {
  font-size: 11px;
}

.has-app-tabbar .mini-stat strong {
  color: var(--ref-green);
  font-size: 16px;
}

.has-app-tabbar .mini-stat--accent strong,
.has-app-tabbar .home-recommend-stats .mini-stat:last-child strong {
  color: var(--ref-orange);
}

.has-app-tabbar .home-secondary-links {
  display: grid;
  gap: 10px;
}

.has-app-tabbar .secondary-link-card {
  min-height: 72px;
  padding: 12px 14px;
  border-color: rgba(56, 173, 69, 0.22);
  background: linear-gradient(90deg, #f4fff0 0%, #fff 100%);
}

.has-app-tabbar .secondary-link-title {
  font-size: 17px;
  font-weight: 900;
}

.has-app-tabbar .secondary-link-desc {
  font-size: 12px;
}

.has-app-tabbar .stat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.has-app-tabbar .stat-card {
  border-radius: 12px;
  background: #fff;
}

.has-app-tabbar .stat-value {
  color: var(--ref-green);
  font-size: 28px;
}

.has-app-tabbar .stat-value.ok {
  color: var(--ref-orange);
}

.has-app-tabbar .summary-banner {
  border-color: rgba(56, 173, 69, 0.28);
  border-radius: 16px;
  background: var(--ref-green-panel);
}

.has-app-tabbar .compare-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.has-app-tabbar .ingredient-line {
  padding: 10px 0;
}

.has-app-tabbar .feedback-form {
  border-radius: 16px;
  background: #fff;
}

.has-app-tabbar .zone-hero {
  padding: 0 !important;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.has-app-tabbar .zone-hero__top {
  display: block;
  text-align: center;
}

.has-app-tabbar .zone-hero .eyebrow,
.has-app-tabbar .zone-hero .subtitle,
.has-app-tabbar .zone-hero .admin-link,
.has-app-tabbar .zone-scene-decor {
  display: none;
}

.has-app-tabbar .zone-hero h1 {
  margin: 0 96px 14px 48px;
  font-size: 22px;
  font-weight: 900;
}

.has-app-tabbar .zone-summary-card {
  grid-template-columns: minmax(0, 1fr) 150px !important;
  min-height: 160px;
  padding: 18px !important;
  border-color: rgba(56, 173, 69, 0.32);
  background: linear-gradient(100deg, #f6fff2 0%, #eefbea 58%, #fffaf0 100%);
  overflow: hidden;
}

.has-app-tabbar .zone-summary-card__copy h2 {
  color: var(--ref-orange);
  font-size: 64px;
  line-height: 0.9;
}

.has-app-tabbar .zone-summary-card__meta {
  font-size: 16px;
}

.has-app-tabbar .zone-summary-card__visual {
  min-height: 120px;
  opacity: 0.9;
}

.has-app-tabbar .zone-entry-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px;
}

.has-app-tabbar .zone-entry-card {
  min-height: 68px;
  padding: 12px;
  border-radius: 14px;
}

.has-app-tabbar .zone-entry-card strong {
  font-size: 15px;
}

.has-app-tabbar .zone-list-card,
.has-app-tabbar .zone-plan-card,
.has-app-tabbar .zone-tip-card {
  padding: 16px !important;
}

.has-app-tabbar .zone-recommend-list,
.has-app-tabbar .zone-recommend-list--grid {
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 10px;
}

.has-app-tabbar .zone-recommend-card {
  grid-template-columns: 92px minmax(0, 1fr) auto !important;
  gap: 12px;
  align-items: center;
  padding: 10px !important;
  border-radius: 14px;
}

.has-app-tabbar .zone-dish-image,
.has-app-tabbar .zone-dish-image img {
  width: 92px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
}

.has-app-tabbar .zone-recommend-card__head h3 {
  font-size: 16px;
}

.has-app-tabbar .zone-recommend-card__stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.has-app-tabbar .zone-recommend-card__actions .secondary-button {
  min-width: 76px;
  padding: 8px 10px;
  color: var(--ref-green-deep);
  background: #fff;
  border: 1px solid rgba(56, 173, 69, 0.38);
  box-shadow: none;
}

.has-app-tabbar .ledger-hero {
  padding: 0 !important;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.has-app-tabbar .ledger-hero__top {
  display: block;
  position: relative;
  text-align: center;
}

.has-app-tabbar .ledger-hero__top .eyebrow,
.has-app-tabbar .ledger-hero__top .subtitle {
  display: none;
}

.has-app-tabbar .ledger-hero h1 {
  margin: 0 86px 14px;
  font-size: 22px;
}

.has-app-tabbar .ledger-hero__share {
  position: absolute;
  right: 0;
  top: -3px;
  padding: 6px 10px;
  font-size: 12px;
}

.has-app-tabbar .ledger-summary-card {
  grid-template-columns: minmax(0, 1fr) 142px;
  min-height: 150px;
  padding: 18px;
  border: 1px solid rgba(56, 173, 69, 0.26);
  border-radius: 16px;
  background: linear-gradient(100deg, #f8fff3 0%, #eafadf 100%);
}

.has-app-tabbar .ledger-summary-card__copy h2 {
  color: var(--ref-orange);
  font-size: 60px;
  line-height: 0.92;
}

.has-app-tabbar .ledger-summary-card__range {
  font-size: 17px;
}

.has-app-tabbar .ledger-summary-card__profile {
  display: none;
}

.has-app-tabbar .ledger-filter-form {
  margin-top: 10px;
}

.has-app-tabbar .ledger-range-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: 14px;
  background: #fff;
}

.has-app-tabbar .ledger-range-tabs__btn.is-active {
  color: #fff;
  background: linear-gradient(180deg, #65cb55 0%, var(--ref-green) 100%);
}

.has-app-tabbar .ledger-metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px;
}

.has-app-tabbar .ledger-metric-card {
  min-height: 112px;
  padding: 10px 6px !important;
  text-align: center;
  border-radius: 14px;
}

.has-app-tabbar .ledger-metric-card__icon {
  margin: 0 auto 8px;
  transform: scale(0.84);
}

.has-app-tabbar .ledger-metric-card__label {
  font-size: 12px;
}

.has-app-tabbar .ledger-metric-card strong {
  font-size: 20px;
}

.has-app-tabbar .ledger-metric-card__note {
  display: none;
}

.has-app-tabbar .ledger-content-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}

.has-app-tabbar .ledger-panel {
  padding: 16px !important;
}

.has-app-tabbar .ledger-record-card {
  grid-template-columns: minmax(0, 1fr) auto !important;
  padding: 12px 0 !important;
  border: 0;
  border-bottom: 1px solid rgba(24, 46, 31, 0.08);
  border-radius: 0;
  box-shadow: none;
}

.has-app-tabbar .ledger-record-card__saving strong {
  color: var(--ref-orange);
}

.has-app-tabbar .ledger-trend__chart {
  min-height: 150px;
}

.has-app-tabbar .estimate-hero {
  padding: 0 !important;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.has-app-tabbar .estimate-hero-top {
  justify-content: center;
  margin-bottom: 14px;
}

.has-app-tabbar .estimate-hero-top .eyebrow {
  color: var(--ref-text);
  font-size: 22px;
}

.has-app-tabbar .estimate-hero-top .admin-link {
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  overflow: hidden;
  color: transparent;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.has-app-tabbar .estimate-hero-top .admin-link::before {
  content: "‹";
  color: #111;
  font-size: 34px;
  line-height: 28px;
}

.has-app-tabbar .estimate-hero-layout {
  grid-template-columns: minmax(0, 1fr) 130px !important;
  min-height: 150px;
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(100deg, #f4fff0 0%, #fbfff7 100%);
}

.has-app-tabbar .estimate-hero-copy h1 {
  color: var(--ref-green-deep);
  font-size: 28px;
}

.has-app-tabbar .estimate-hero-copy .subtitle {
  font-size: 16px;
}

.has-app-tabbar .estimate-hero-copy .hero-tip {
  display: none;
}

.has-app-tabbar .estimate-builder-grid {
  grid-template-columns: 1fr !important;
  gap: 12px;
}

.has-app-tabbar .estimate-card {
  padding: 16px !important;
}

.has-app-tabbar .estimate-line-form,
.has-app-tabbar .estimate-config-grid {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.has-app-tabbar .estimate-line-form label:first-child,
.has-app-tabbar .estimate-field--wide {
  grid-column: 1 / -1;
}

.has-app-tabbar :is(input, select, textarea) {
  border: 1px solid rgba(30, 38, 32, 0.12);
  border-radius: 12px;
  background: #fff;
}

.has-app-tabbar .estimate-result-highlight {
  border: 2px solid rgba(56, 173, 69, 0.45);
  border-radius: 16px;
  background: linear-gradient(100deg, #f6fff2 0%, #fffdf6 100%);
}

.has-app-tabbar .estimate-result-saving {
  color: var(--ref-orange);
  font-size: 42px;
}

.has-app-tabbar .estimate-result-summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.has-app-tabbar .estimate-result-actions {
  display: grid;
  grid-template-columns: 1fr;
}

.has-app-tabbar .market-page-shell,
.has-app-tabbar .deals-page-shell,
.has-app-tabbar .alerts-page-shell,
.has-app-tabbar .subscriptions-page-shell,
.has-app-tabbar .family-page-shell,
.has-app-tabbar .weekly-page-shell {
  gap: 12px;
}

.has-app-tabbar :is(.market-hero, .deals-hero, .alerts-hero, .subscriptions-hero, .family-hero, .weekly-hero) {
  padding: 0 !important;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.has-app-tabbar :is(.market-hero, .deals-hero, .alerts-hero, .subscriptions-hero, .family-hero, .weekly-hero) h1 {
  margin: 0 82px 12px;
  font-size: 22px;
}

.has-app-tabbar :is(.market-hero, .deals-hero, .alerts-hero, .subscriptions-hero, .family-hero, .weekly-hero) .subtitle {
  font-size: 14px;
}

@media (max-width: 430px) {
  .has-app-tabbar .shell {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .has-app-tabbar .home-hero h1 {
    max-width: 285px;
    font-size: 32px;
  }

  .has-app-tabbar .hero-figure {
    right: 0;
    top: 106px;
    transform: scale(0.88);
    transform-origin: right top;
  }

  .has-app-tabbar .home-entry-card {
    min-height: 104px;
    padding: 9px 5px;
  }

  .has-app-tabbar .entry-icon {
    width: 40px;
    height: 40px;
  }

  .has-app-tabbar .entry-title {
    font-size: 13px;
  }

  .has-app-tabbar .home-savings-card {
    padding-right: 112px;
  }

  .has-app-tabbar .home-savings-amount strong,
  .has-app-tabbar .zone-summary-card__copy h2,
  .has-app-tabbar .ledger-summary-card__copy h2 {
    font-size: 52px;
  }

  .has-app-tabbar .home-savings-card::after {
    right: 18px;
    width: 70px;
    height: 70px;
  }

  .has-app-tabbar .zone-summary-card,
  .has-app-tabbar .ledger-summary-card {
    grid-template-columns: minmax(0, 1fr) 112px !important;
  }

  .has-app-tabbar .zone-recommend-card {
    grid-template-columns: 82px minmax(0, 1fr) !important;
  }

  .has-app-tabbar .zone-recommend-card__actions {
    grid-column: 1 / -1;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 20% 20%, #fff7e5 0, transparent 40%),
    linear-gradient(180deg, #f4f2eb 0%, var(--bg) 100%);
  color: var(--ink);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.bg-shape {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  z-index: -1;
  filter: blur(32px);
  opacity: 0.26;
}

.bg-shape-1 {
  top: -130px;
  left: -80px;
  background: #f2a46f;
}

.bg-shape-2 {
  right: -100px;
  bottom: -140px;
  background: #5a9f8a;
}

.shell {
  max-width: 1060px;
  margin: 0 auto;
  padding: 28px 16px 40px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.hero {
  padding: 28px;
  animation: rise 420ms ease-out;
}

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

.eyebrow {
  margin: 0;
  color: var(--accent-dark);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  font-weight: 700;
}

.admin-link {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 12px;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}

.admin-link:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

h1 {
  margin: 10px 0 8px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.2;
}

.subtitle {
  margin: 0;
  color: var(--muted);
}

.hero-tip {
  margin: 12px 0 0;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
}

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

.entry-card {
  border: 1px solid #f0c5ab;
  border-radius: 14px;
  background: #fff6ef;
  color: var(--ink);
  padding: 12px;
  text-align: left;
  font: inherit;
  cursor: pointer;
  display: grid;
  gap: 6px;
  text-decoration: none;
}

.entry-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.entry-link-card {
  color: var(--ink);
}

.entry-title {
  font-size: 15px;
  font-weight: 800;
}

.entry-desc {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.compact-subtitle {
  margin-top: 4px;
  font-size: 14px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-link,
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 700;
}

.hero-link {
  background: #fff3eb;
  border: 1px solid #f0c5ab;
  color: var(--accent-dark);
}

.ghost-link {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
}

.search-row {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.search-row input {
  flex: 1;
  height: 46px;
  border-radius: 12px;
  border: 1px solid #d4c1ad;
  padding: 0 14px;
  font-size: 16px;
  outline: none;
}

.search-row input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 95, 45, 0.16);
}

.search-row button {
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #de7e3e, var(--accent));
  color: #fff;
  font-weight: 700;
  padding: 0 18px;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.search-row button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(217, 95, 45, 0.35);
}

.status {
  min-height: 18px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 14px;
  margin-top: 14px;
}

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

.panel {
  padding: 18px 18px 20px;
}

h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.dish-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease;
}

.dish-item:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.dish-item.active {
  border-color: var(--accent);
  background: #fff6f1;
}

.dish-name {
  margin: 0;
  font-weight: 700;
}

.dish-meta {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.empty {
  color: var(--muted);
  padding: 6px 0;
}

.empty-card {
  display: grid;
  gap: 8px;
  border: 1px dashed #dcc9b5;
  border-radius: 16px;
  padding: 16px;
  background: #fff8ef;
  color: var(--muted);
}

.empty-card-title {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}

.empty-card-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.stat-card {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px;
}

.stat-title {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.stat-value {
  margin: 6px 0 0;
  font-size: 20px;
  font-weight: 800;
}

.stat-value.ok {
  color: var(--ok);
}

.summary-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  border: 1px solid #f0c5ab;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff5ec;
  color: var(--accent-dark);
  font-size: 14px;
}

.block-title {
  margin: 12px 0 6px;
  font-size: 14px;
}

.ingredient-line {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed #eadfd4;
  padding: 7px 0;
  font-size: 14px;
}

.ingredient-line span:last-child {
  font-weight: 700;
}

.mini-link {
  margin-left: 8px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.platform-line span:first-child {
  text-transform: capitalize;
}

.setup-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 14px;
  margin-top: 14px;
}

.profile-card,
.quick-card {
  padding: 18px;
}

.note-card {
  padding: 18px;
  margin-top: 14px;
}

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

.hint-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fffaf4;
  color: var(--ink);
  font-size: 14px;
}

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

.profile-badge,
.saving-pill {
  margin: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff2e7;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
}

.profile-form,
.inline-form {
  display: grid;
  gap: 14px;
}

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

.form-grid label,
.inline-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}

.form-grid select,
.form-grid input,
.inline-form select,
.inline-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
}

.check-title {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--muted);
}

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

.check-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  font-size: 14px;
}

.inline-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.inline-actions button,
.inline-form button,
.ghost-btn {
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

.inline-actions button,
.inline-form button {
  background: var(--ink);
  color: #fff;
}

.ghost-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.compact-status {
  margin: 0;
}

.quick-grid {
  display: grid;
  gap: 14px;
}

.quick-card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease;
}

.quick-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.quick-card h2 {
  margin-bottom: 8px;
}

.page-shell {
  padding-bottom: 56px;
}

.recommend-grid,
.menu-grid {
  display: grid;
  gap: 12px;
}

.recommend-card,
.menu-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: #fff;
}

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

.recommend-head h3 {
  margin: 6px 0 0;
  font-size: 20px;
}

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

.mini-stat {
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 10px 12px;
  background: #fffaf4;
}

.mini-stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.mini-stat strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  border-radius: 999px;
  padding: 6px 10px;
  background: #eef6ef;
  color: var(--ok);
  font-size: 12px;
  font-weight: 700;
}

.menu-summary {
  margin-bottom: 14px;
  border: 1px dashed #dcc9b5;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff8ef;
  font-weight: 700;
}

.history-form {
  grid-template-columns: auto auto;
  align-items: end;
}

.history-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.chart-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #fffaf5 0%, #fff 100%);
  padding: 12px;
}

.history-chart {
  width: 100%;
  height: 260px;
  display: block;
}

.chart-axis {
  stroke: #ccb8a4;
  stroke-width: 1;
}

.chart-label {
  fill: var(--muted);
  font-size: 11px;
}

.history-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.history-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px dashed #eadfd4;
  padding: 10px 0;
  font-size: 14px;
}

.history-row strong {
  font-size: 15px;
}

.detail-stack {
  margin-top: 14px;
}

.risk-notice-block {
  display: grid;
  gap: 10px;
}

.risk-notice-card {
  border-radius: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(18, 22, 31, 0.08);
  background: rgba(255, 255, 255, 0.88);
}

.risk-notice-card.risk-warn {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(255, 247, 237, 0.96);
}

.risk-notice-card.risk-info {
  border-color: rgba(59, 130, 246, 0.26);
  background: rgba(239, 246, 255, 0.96);
}

.risk-notice-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

.risk-notice-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.ledger-timeline {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.ledger-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: #fff;
}

.compare-actions {
  margin-bottom: 8px;
}

.feedback-form {
  margin-top: 8px;
  display: grid;
  gap: 8px;
}

.feedback-form select,
.feedback-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
}

.feedback-form textarea {
  min-height: 80px;
  resize: vertical;
}

.feedback-form button {
  width: fit-content;
  border: none;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

.fallback-panel {
  margin-top: 12px;
  border: 1px dashed #dcc9b5;
  border-radius: 14px;
  padding: 12px;
  background: #fff8ef;
  display: grid;
  gap: 8px;
}

.estimate-line-form {
  grid-template-columns: 1.6fr 1fr 0.8fr auto;
  align-items: end;
}

.mapping-list {
  display: grid;
  gap: 10px;
}

.mapping-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mapping-item .list-title {
  margin: 0;
  font-weight: 700;
}

.mapping-item .mapping-meta {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.mapping-item .actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mapping-item .actions button {
  border: none;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}

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

.compact-search {
  margin-top: 12px;
}

.alerts-list {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.alert-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: #fff;
  display: grid;
  gap: 10px;
}

.alert-card.unread {
  border-color: #dba55f;
  box-shadow: 0 8px 20px rgba(219, 165, 95, 0.12);
}

.alert-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.alert-card-head h3 {
  margin: 4px 0 0;
  font-size: 20px;
}

.alert-status-tag {
  border-radius: 999px;
  background: #f3eadf;
  color: #7b5731;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.alert-message {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.alert-meta {
  margin: 0;
  color: #8b7967;
  font-size: 13px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .setup-grid,
  .panel-grid {
    grid-template-columns: 1fr;
  }

  .form-grid,
  .check-grid,
  .recommend-stats,
  .history-summary {
    grid-template-columns: 1fr;
  }

  .search-row {
    flex-direction: column;
  }

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

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

  .search-row button {
    height: 44px;
  }

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

  .section-head,
  .recommend-head,
  .summary-banner {
    flex-direction: column;
  }

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

:root {
  --ui-primary: #2db063;
  --ui-primary-soft: #f4fbf6;
  --ui-primary-card: #e9f7ee;
  --ui-accent: #ff8a3d;
  --ui-accent-soft: #fff3e6;
  --ui-text: #1f2d2d;
  --ui-text-muted: #666666;
  --ui-line: #e5e7eb;
  --ui-bg: #f7f8fa;
  --ui-card: #ffffff;
  --ui-success: #22c55e;
  --ui-danger: #ff6b6b;
  --ui-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --ui-radius-xs: 4px;
  --ui-radius-sm: 8px;
  --ui-radius-md: 12px;
  --ui-radius-lg: 16px;
  --ui-radius-xl: 20px;
  --ui-space-xs: 8px;
  --ui-space-sm: 16px;
  --ui-space-md: 24px;
  --ui-space-lg: 32px;
  --ui-space-xl: 40px;
  --ui-space-xxl: 48px;
  --ui-tabbar-height: 72px;
  --bg: var(--ui-bg);
  --ink: var(--ui-text);
  --muted: var(--ui-text-muted);
  --card: var(--ui-card);
  --accent: var(--ui-accent);
  --accent-dark: #db7631;
  --line: var(--ui-line);
  --ok: var(--ui-success);
  --shadow: var(--ui-shadow);
}

body {
  background: radial-gradient(circle at 16% 18%, rgba(45, 176, 99, 0.14) 0, transparent 36%),
    radial-gradient(circle at 85% 12%, rgba(255, 138, 61, 0.12) 0, transparent 28%),
    linear-gradient(180deg, #ffffff 0%, var(--ui-primary-soft) 38%, var(--bg) 100%);
}

.bg-shape-1 {
  background: rgba(45, 176, 99, 0.72);
}

.bg-shape-2 {
  background: rgba(255, 138, 61, 0.52);
}

.shell {
  padding-bottom: calc(40px + var(--ui-tabbar-height));
}

.card {
  border-radius: var(--ui-radius-xl);
}

.eyebrow {
  color: var(--ui-primary);
}

.admin-link {
  border-radius: var(--ui-radius-sm);
}

.admin-link:hover {
  border-color: var(--ui-primary);
  color: var(--ui-primary);
}

.hero-tip {
  color: var(--ui-primary);
}

.entry-card {
  border: 1px solid rgba(45, 176, 99, 0.12);
  border-radius: var(--ui-radius-md);
  background: linear-gradient(180deg, #ffffff 0%, var(--ui-primary-soft) 100%);
}

.entry-card:hover {
  border-color: rgba(45, 176, 99, 0.35);
}

.hero-link {
  background: #ffffff;
  border: 1px solid rgba(45, 176, 99, 0.16);
  color: var(--ui-primary);
}

.empty-card {
  border: 1px dashed rgba(45, 176, 99, 0.22);
  border-radius: var(--ui-radius-lg);
  background: linear-gradient(180deg, #ffffff 0%, var(--ui-primary-soft) 100%);
}

.summary-banner {
  border: 1px solid rgba(255, 138, 61, 0.18);
  border-radius: var(--ui-radius-md);
  background: var(--ui-accent-soft);
  color: var(--accent);
}

.hint-item {
  border-radius: var(--ui-radius-md);
  background: #ffffff;
}

.profile-badge,
.saving-pill {
  background: var(--ui-primary-soft);
  color: var(--ui-primary);
}

.page-shell {
  padding-bottom: calc(16px + var(--ui-tabbar-height));
}

.fallback-panel {
  border: 1px dashed rgba(45, 176, 99, 0.22);
  border-radius: var(--ui-radius-md);
  background: linear-gradient(180deg, #ffffff 0%, var(--ui-primary-soft) 100%);
}

.alert-status-tag {
  background: var(--ui-primary-soft);
  color: var(--ui-primary);
}

.section-header,
.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.section-header__action {
  color: var(--ui-primary);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.has-app-tabbar {
  padding-bottom: var(--ui-tabbar-height);
}

.app-tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 40;
  width: min(100%, 1060px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  padding: 8px 12px calc(env(safe-area-inset-bottom, 0px) + 8px);
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--ui-line);
  box-shadow: 0 -8px 28px rgba(31, 45, 45, 0.08);
  backdrop-filter: blur(14px);
}

.app-tabbar__link {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 8px 4px;
  color: var(--ui-text-muted);
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.app-tabbar__link:hover {
  color: var(--ui-primary);
  transform: translateY(-1px);
}

.app-tabbar__link.is-active {
  color: var(--ui-primary);
}

.app-tabbar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.app-tabbar__icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-tabbar__link.is-active .app-tabbar__icon svg {
  fill: currentColor;
  stroke: currentColor;
}

.app-tabbar__label {
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 900px) {
  .app-tabbar {
    width: 100%;
    padding-left: 8px;
    padding-right: 8px;
  }
}

.home-shell {
  display: grid;
  gap: 18px;
}

.home-hero {
  position: relative;
  overflow: hidden;
  padding: 28px;
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 138, 61, 0.14) 0, transparent 22%),
    linear-gradient(180deg, #ffffff 0%, #fbfffc 100%);
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: auto 24px 110px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 176, 99, 0.16) 0, transparent 70%);
  pointer-events: none;
}

.brand-lockup {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--ui-primary) 0%, #7ccc64 100%);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(45, 176, 99, 0.24);
}

.home-hero h1 {
  max-width: 620px;
  margin-top: 8px;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.02em;
}

.home-hero h1 span {
  color: var(--ui-accent);
}

.hero-visual-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 220px;
  gap: 18px;
  align-items: center;
  margin-top: 22px;
}

.home-search-panel {
  display: grid;
  gap: 10px;
}

.home-search-row {
  gap: 0;
  border: 1px solid rgba(45, 176, 99, 0.2);
  border-radius: 22px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 12px 32px rgba(45, 176, 99, 0.08);
}

.home-search-row input {
  border: 0;
  height: 54px;
  font-size: 20px;
  padding-left: 18px;
  background: transparent;
  box-shadow: none;
}

.home-search-row input:focus {
  box-shadow: none;
}

.home-search-row button {
  min-width: 128px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(135deg, #8ad05d 0%, var(--ui-primary) 100%);
  box-shadow: none;
}

.hero-figure {
  position: relative;
  height: 180px;
}

.hero-figure__wallet {
  position: absolute;
  right: 14px;
  top: 24px;
  width: 124px;
  height: 96px;
  border-radius: 26px;
  background: linear-gradient(145deg, #cdf4b7 0%, #83d870 65%, #4bbd60 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.55),
    0 26px 40px rgba(45, 176, 99, 0.24);
  transform: rotate(9deg);
}

.hero-figure__wallet::before,
.hero-figure__wallet::after {
  content: "";
  position: absolute;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.38);
}

.hero-figure__wallet::before {
  inset: 12px 18px 30px;
}

.hero-figure__wallet::after {
  right: -18px;
  top: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 226, 170, 0.95);
  box-shadow: 0 10px 20px rgba(255, 138, 61, 0.22);
}

.hero-figure__coin {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffe7b5 0%, #ffc663 100%);
  box-shadow: 0 12px 22px rgba(255, 165, 0, 0.22);
}

.hero-figure__coin::after {
  content: "¥";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #dd8a16;
  font-size: 28px;
  font-weight: 900;
}

.hero-figure__coin--small {
  left: 18px;
  bottom: 22px;
  width: 46px;
  height: 46px;
}

.hero-figure__coin--small::after {
  font-size: 20px;
}

.hero-figure__coin--large {
  right: 8px;
  bottom: 12px;
  width: 68px;
  height: 68px;
}

.home-entry-grid {
  margin-top: 18px;
  gap: 14px;
}

.home-entry-card {
  min-height: 188px;
  padding: 18px;
  border-radius: 22px;
  box-shadow: 0 12px 26px rgba(31, 45, 45, 0.06);
  gap: 12px;
}

.entry-icon {
  width: 68px;
  height: 68px;
  border-radius: 22px;
  display: inline-block;
  background: linear-gradient(180deg, #ffffff 0%, rgba(45, 176, 99, 0.12) 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.85),
    0 10px 18px rgba(45, 176, 99, 0.14);
}

.entry-icon::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 42px 42px;
}

.entry-icon--search::after {
  background-image: radial-gradient(circle at 18px 18px, transparent 14px, rgba(45, 176, 99, 0.95) 14px, rgba(45, 176, 99, 0.95) 17px, transparent 17px), linear-gradient(rgba(45, 176, 99, 0.95), rgba(45, 176, 99, 0.95));
  background-size: 32px 32px, 16px 4px;
  background-position: 17px 16px, 39px 39px;
  transform: rotate(-12deg);
}

.entry-icon--ingredients::after {
  background-image:
    radial-gradient(circle at 50% 62%, rgba(112, 193, 86, 0.92) 0 18px, transparent 19px),
    radial-gradient(circle at 36% 40%, rgba(173, 220, 104, 0.95) 0 10px, transparent 11px),
    radial-gradient(circle at 64% 38%, rgba(255, 146, 72, 0.92) 0 8px, transparent 9px);
}

.entry-icon--budget::after {
  background-image:
    linear-gradient(rgba(255, 138, 61, 0.95), rgba(255, 138, 61, 0.95)),
    linear-gradient(rgba(255, 138, 61, 0.95), rgba(255, 138, 61, 0.95)),
    linear-gradient(rgba(255, 138, 61, 0.95), rgba(255, 138, 61, 0.95)),
    radial-gradient(circle, rgba(255, 202, 92, 0.96) 0 12px, transparent 13px);
  background-size: 30px 6px, 30px 6px, 30px 6px, 28px 28px;
  background-position: center 18px, center 31px, center 44px, 45px 45px;
}

.entry-icon--weekly::after {
  background-image:
    linear-gradient(rgba(120, 202, 114, 0.94), rgba(120, 202, 114, 0.94)),
    linear-gradient(rgba(120, 202, 114, 0.94), rgba(120, 202, 114, 0.94)),
    linear-gradient(rgba(120, 202, 114, 0.94), rgba(120, 202, 114, 0.94));
  background-size: 38px 6px, 38px 6px, 18px 6px;
  background-position: center 18px, center 31px, center 44px;
}

.home-entry-card .entry-title {
  font-size: 24px;
}

.home-entry-card .entry-desc {
  font-size: 15px;
  line-height: 1.6;
}

.home-savings-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 28px;
  background:
    radial-gradient(circle at 30% 50%, rgba(215, 246, 194, 0.7) 0, transparent 34%),
    linear-gradient(135deg, #fdfefc 0%, #f3fbef 100%);
}

.home-savings-amount {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.home-savings-amount strong {
  font-size: clamp(58px, 9vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--ui-accent);
}

.home-savings-amount span {
  padding-bottom: 12px;
  font-size: 32px;
  font-weight: 800;
}

.home-savings-desc,
.home-savings-meta,
.compare-meta,
.featured-dish-source,
.home-recommend-source {
  margin: 0;
  color: var(--ui-text-muted);
  line-height: 1.6;
}

.home-savings-desc {
  font-size: 16px;
}

.home-savings-meta {
  margin-top: 8px;
  font-size: 13px;
}

.home-savings-actions {
  display: grid;
  gap: 10px;
}

.home-primary-grid,
.home-support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.95fr);
  gap: 18px;
}

.home-featured-section,
.home-recommend-card,
.home-profile-card,
.home-guide-card {
  padding: 22px;
}

.home-featured-list {
  margin-top: 18px;
}

.home-featured-scroll {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.featured-dish-card {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  gap: 14px;
  border: 1px solid rgba(45, 176, 99, 0.12);
  border-radius: 22px;
  padding: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfefb 100%);
  box-shadow: 0 10px 22px rgba(31, 45, 45, 0.05);
}

.food-image-card {
  min-height: 126px;
  border-radius: 18px;
  display: grid;
  place-items: end start;
  padding: 14px;
  color: rgba(255, 255, 255, 0.98);
  font-size: 24px;
  font-weight: 900;
  background-size: cover;
  background-position: center;
}

.food-image-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
}

.food-image-card--photo {
  position: relative;
  overflow: hidden;
  padding: 0;
  place-items: stretch;
  background: #eef4ee;
}

.food-image-card--photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.food-image-card--1 {
  background:
    radial-gradient(circle at 45% 32%, rgba(255, 201, 113, 0.9) 0 18%, transparent 19%),
    linear-gradient(135deg, #7a3f12 0%, #c96b24 52%, #f0bf64 100%);
}

.food-image-card--2 {
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 219, 165, 0.86) 0 16%, transparent 17%),
    linear-gradient(135deg, #b4441c 0%, #d7662f 48%, #f3bf75 100%);
}

.food-image-card--3 {
  background:
    radial-gradient(circle at 68% 34%, rgba(197, 235, 146, 0.82) 0 14%, transparent 15%),
    linear-gradient(135deg, #8e3a20 0%, #cf7430 48%, #f2cf76 100%);
}

.food-image-card--4 {
  background:
    radial-gradient(circle at 58% 24%, rgba(255, 227, 149, 0.86) 0 12%, transparent 13%),
    linear-gradient(135deg, #aa5f18 0%, #d29035 54%, #f4d67b 100%);
}

.food-image-card--hero {
  min-height: 190px;
  background:
    radial-gradient(circle at 42% 30%, rgba(255, 219, 179, 0.86) 0 16%, transparent 17%),
    linear-gradient(135deg, #d54e24 0%, #f07036 46%, #f2b257 100%);
}

.featured-dish-body {
  display: grid;
  gap: 6px;
}

.featured-dish-title,
.secondary-link-title {
  margin: 0;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.featured-dish-meta,
.secondary-link-desc {
  margin: 0;
  color: var(--ui-text-muted);
  font-size: 14px;
}

.featured-dish-meta--self {
  color: var(--ui-primary);
  font-weight: 700;
}

.featured-dish-saving {
  margin: 2px 0 0;
  color: var(--ui-accent);
  font-size: 20px;
  font-weight: 900;
}

.featured-dish-action,
#home-recommend-action-btn {
  width: fit-content;
  border: 0;
  border-radius: 999px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #89cf5c 0%, var(--ui-primary) 100%);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.home-side-stack {
  display: grid;
  gap: 18px;
}

.home-recommend-layout {
  display: grid;
  gap: 16px;
}

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

.home-secondary-links {
  display: grid;
  gap: 14px;
}

.secondary-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px;
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease;
}

.secondary-link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(45, 176, 99, 0.26);
}

.secondary-link-card--student {
  background: linear-gradient(180deg, #f9fff6 0%, #eefae9 100%);
}

.secondary-link-card--office {
  background: linear-gradient(180deg, #f7fbff 0%, #edf4ff 100%);
}

.secondary-link-card--menu {
  background: linear-gradient(180deg, #fffaf4 0%, #fff2e6 100%);
}

.secondary-link-arrow {
  color: var(--ui-primary);
  font-size: 34px;
  font-weight: 600;
}

.home-guide-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.home-results-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.home-result-section {
  margin-top: 2px;
}

.compare-meta {
  margin: 0 0 12px;
  font-size: 13px;
}

.estimate-page-shell {
  display: grid;
  gap: 18px;
}

.estimate-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 24%, rgba(255, 138, 61, 0.14) 0, transparent 18%),
    linear-gradient(180deg, #ffffff 0%, #fbfffc 100%);
}

.estimate-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 250px;
  gap: 18px;
  align-items: center;
}

.estimate-hero-copy h1 {
  margin-top: 12px;
}

.estimate-hero-visual {
  position: relative;
  min-height: 190px;
}

.estimate-hero-pot {
  position: absolute;
  right: 4px;
  bottom: 6px;
  width: 210px;
  height: 132px;
  border-radius: 32px 32px 46px 46px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.78) 0 22%, transparent 23%),
    linear-gradient(180deg, #b9ec8f 0%, #5cb852 38%, #2f8d44 100%);
  box-shadow:
    inset 0 4px 0 rgba(255, 255, 255, 0.45),
    0 24px 38px rgba(45, 176, 99, 0.2);
}

.estimate-hero-pot::before,
.estimate-hero-pot::after {
  content: "";
  position: absolute;
  top: 42px;
  width: 22px;
  height: 36px;
  border: 8px solid #57a84e;
  border-radius: 999px;
}

.estimate-hero-pot::before {
  left: -24px;
}

.estimate-hero-pot::after {
  right: -24px;
}

.estimate-hero-coin {
  position: absolute;
  left: -28px;
  bottom: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffe7b5 0%, #ffc663 100%);
  color: #dd8a16;
  font-size: 32px;
  font-weight: 900;
  box-shadow: 0 14px 24px rgba(255, 165, 0, 0.24);
}

.estimate-builder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 18px;
  align-items: start;
}

.estimate-builder-column {
  display: grid;
  gap: 18px;
}

.estimate-card {
  padding: 22px;
}

.estimate-selection-body {
  margin-top: 18px;
}

.estimate-selection-actions {
  margin-top: 14px;
}

.estimate-selected-empty {
  border: 1px dashed rgba(45, 176, 99, 0.2);
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff 0%, var(--ui-primary-soft) 100%);
}

.estimate-mapping-item {
  border-radius: 18px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfefd 100%);
}

.estimate-mapping-main {
  display: grid;
  gap: 6px;
}

.estimate-mapping-item .mapping-meta {
  font-size: 14px;
}

.estimate-field--wide {
  grid-column: 1 / -1;
}

.estimate-config-note,
.estimate-result-note {
  margin-top: 16px;
  border: 1px dashed rgba(45, 176, 99, 0.22);
  border-radius: 18px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #ffffff 0%, var(--ui-primary-soft) 100%);
  color: var(--ui-text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.estimate-config-note p,
.estimate-result-note p {
  margin: 0;
}

.estimate-submit-row {
  margin-top: 16px;
}

.estimate-submit-row button {
  min-width: 124px;
}

.estimate-result-card {
  position: sticky;
  top: 18px;
}

.estimate-result-meta {
  margin: 2px 0 0;
  color: var(--ui-text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.estimate-result-state {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.estimate-result-empty {
  border: 1px dashed rgba(45, 176, 99, 0.2);
  border-radius: 20px;
  padding: 20px;
  background: linear-gradient(180deg, #ffffff 0%, var(--ui-primary-soft) 100%);
}

.estimate-result-highlight {
  border: 1px solid rgba(45, 176, 99, 0.24);
  border-radius: 26px;
  padding: 20px;
  background:
    radial-gradient(circle at 92% 18%, rgba(255, 138, 61, 0.14) 0, transparent 20%),
    linear-gradient(135deg, #ffffff 0%, #fbfffc 100%);
}

.estimate-result-kicker {
  margin: 0;
  color: var(--ui-primary);
  font-size: 13px;
  font-weight: 800;
}

.estimate-result-highlight h3 {
  margin: 8px 0 4px;
  font-size: 30px;
  letter-spacing: -0.03em;
}

.estimate-result-desc,
.estimate-result-saving-note {
  margin: 0;
  color: var(--ui-text-muted);
  line-height: 1.6;
}

.estimate-result-saving {
  margin: 18px 0 6px;
  color: var(--ui-accent);
  font-size: clamp(42px, 6vw, 64px);
  font-weight: 900;
  letter-spacing: -0.05em;
}

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

.estimate-summary-tile {
  border: 1px solid rgba(45, 176, 99, 0.16);
  border-radius: 20px;
  padding: 16px;
  background: #fff;
}

.estimate-summary-tile span {
  display: block;
  color: var(--ui-text-muted);
  font-size: 13px;
}

.estimate-summary-tile strong {
  display: block;
  margin-top: 8px;
  font-size: 34px;
  letter-spacing: -0.03em;
}

.estimate-summary-tile--accent {
  background: linear-gradient(180deg, #fffaf4 0%, #fff3e8 100%);
  border-color: rgba(255, 138, 61, 0.18);
}

.estimate-source-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.estimate-source-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 0 12px;
  background: var(--ui-primary-soft);
  color: var(--ui-primary);
  font-size: 12px;
  font-weight: 800;
}

.estimate-breakdown-list {
  display: grid;
  gap: 10px;
}

.estimate-breakdown-row {
  border: 1px solid rgba(45, 176, 99, 0.12);
  border-radius: 18px;
  padding: 14px 16px;
  background: #fff;
}

.estimate-breakdown-head,
.estimate-breakdown-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.estimate-breakdown-head strong {
  font-size: 16px;
}

.estimate-breakdown-meta {
  margin-top: 8px;
  color: var(--ui-text-muted);
  font-size: 13px;
}

.estimate-result-actions {
  align-items: center;
}

.estimate-result-actions button {
  min-width: 132px;
}

.estimate-result-footer {
  margin-top: 18px;
}

.estimate-reset-btn {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #ffb14a 0%, #ff7f22 100%);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(255, 138, 61, 0.18);
}

@media (max-width: 1040px) {
  .hero-visual-row,
  .home-primary-grid,
  .home-support-grid,
  .home-results-grid,
  .estimate-hero-layout,
  .estimate-builder-grid {
    grid-template-columns: 1fr;
  }

  .hero-figure {
    order: -1;
    height: 120px;
  }

  .home-featured-scroll {
    grid-template-columns: 1fr;
  }

  .featured-dish-card {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .home-savings-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .estimate-hero-visual {
    min-height: 140px;
  }

  .estimate-result-card {
    position: static;
  }
}

@media (max-width: 900px) {
  .home-hero {
    padding: 20px;
  }

  .brand-lockup {
    gap: 12px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 20px;
  }

  .home-search-row {
    flex-direction: row;
    align-items: stretch;
  }

  .home-search-row input {
    min-width: 0;
    font-size: 18px;
  }

  .home-search-row button {
    min-width: 98px;
    height: 50px;
  }

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

  .home-entry-card {
    min-height: 156px;
    padding: 16px;
  }

  .home-entry-card .entry-title {
    font-size: 20px;
  }

  .home-savings-amount strong {
    font-size: 78px;
  }

  .home-savings-amount span {
    font-size: 24px;
    padding-bottom: 10px;
  }

  .featured-dish-title,
  .secondary-link-title {
    font-size: 22px;
  }

  .home-recommend-stats,
  .estimate-result-summary-grid {
    grid-template-columns: 1fr;
  }

  .estimate-card {
    padding: 18px;
  }

  .estimate-reset-btn {
    font-size: 22px;
  }
}

@media (max-width: 640px) {
  .shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  .home-hero-top {
    align-items: flex-start;
  }

  .admin-link {
    margin-top: 4px;
  }

  .home-search-row {
    flex-direction: column;
    gap: 8px;
  }

  .home-search-row button {
    width: 100%;
  }

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

  .home-entry-card {
    min-height: 148px;
  }

  .featured-dish-card {
    grid-template-columns: 1fr;
  }

  .food-image-card {
    min-height: 110px;
  }

  .estimate-breakdown-head,
  .estimate-breakdown-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .estimate-result-highlight h3 {
    font-size: 24px;
  }

.estimate-result-saving {
    font-size: 42px;
  }
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(45, 176, 99, 0.18);
  background: #ffffff;
  color: var(--ui-primary);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(45, 176, 99, 0.08);
}

.secondary-button:hover {
  transform: translateY(-1px);
}

.ledger-page-shell {
  display: grid;
  gap: 18px;
}

.ledger-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.98) 0%, rgba(248, 255, 242, 0.95) 52%, rgba(220, 248, 205, 0.92) 100%),
    linear-gradient(135deg, rgba(225, 250, 216, 0.95) 0%, rgba(252, 255, 246, 1) 100%);
}

.ledger-hero::after {
  content: "";
  position: absolute;
  inset: auto -40px -60px auto;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(164, 234, 144, 0.36) 0%, rgba(164, 234, 144, 0) 72%);
  pointer-events: none;
}

.ledger-hero__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.ledger-hero__top h1 {
  margin-bottom: 10px;
}

.ledger-hero__share {
  white-space: nowrap;
}

.ledger-summary-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 240px;
  gap: 22px;
  margin-top: 22px;
  padding: 26px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(245, 255, 237, 0.92) 100%);
  box-shadow: 0 20px 50px rgba(83, 175, 91, 0.12);
}

.ledger-summary-card__kicker {
  margin: 0;
  color: var(--ui-text);
  font-size: 18px;
  font-weight: 700;
}

.ledger-summary-card__copy h2 {
  margin: 12px 0 6px;
  font-size: clamp(52px, 9vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--ui-accent);
}

.ledger-summary-card__range,
.ledger-summary-card__trend,
.ledger-summary-card__profile {
  margin: 10px 0 0;
}

.ledger-summary-card__range {
  font-size: 17px;
  font-weight: 700;
}

.ledger-summary-card__trend {
  color: var(--ui-primary);
  font-size: 16px;
  font-weight: 700;
}

.ledger-summary-card__profile {
  color: var(--ui-text-muted);
  line-height: 1.7;
}

.ledger-summary-card__visual {
  position: relative;
  min-height: 220px;
}

.ledger-summary-clipboard {
  position: absolute;
  right: 24px;
  top: 8px;
  width: 148px;
  height: 176px;
  border-radius: 26px;
  transform: rotate(10deg);
  background: linear-gradient(180deg, #fafff5 0%, #e1ffd7 100%);
  border: 8px solid rgba(116, 217, 112, 0.32);
  box-shadow: 0 22px 38px rgba(77, 182, 76, 0.18);
}

.ledger-summary-clipboard::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -16px;
  width: 70px;
  height: 28px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(127, 219, 109, 0.4);
}

.ledger-summary-clipboard span {
  position: absolute;
  left: 28px;
  right: 26px;
  height: 7px;
  border-radius: 999px;
  background: rgba(84, 182, 86, 0.24);
}

.ledger-summary-clipboard span::before {
  content: "";
  position: absolute;
  left: -18px;
  top: -3px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f5fff1 0%, #dff8d5 100%);
  border: 2px solid rgba(107, 196, 91, 0.48);
}

.ledger-summary-clipboard span:nth-child(1) {
  top: 52px;
}

.ledger-summary-clipboard span:nth-child(2) {
  top: 88px;
}

.ledger-summary-clipboard span:nth-child(3) {
  top: 124px;
}

.ledger-summary-coin {
  position: absolute;
  bottom: 26px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd979 0%, #ffb62f 100%);
  box-shadow: 0 12px 22px rgba(255, 166, 0, 0.24);
}

.ledger-summary-coin::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.ledger-summary-coin--large {
  right: 8px;
  width: 92px;
  height: 92px;
}

.ledger-summary-coin--small {
  right: 76px;
  bottom: 44px;
  width: 64px;
  height: 64px;
}

.ledger-summary-glow {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 180px;
  height: 70px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(126, 214, 123, 0.34) 0%, rgba(126, 214, 123, 0) 72%);
}

.ledger-filter-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.ledger-range-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(45, 176, 99, 0.08);
}

.ledger-range-tabs__btn {
  border: 0;
  min-height: 52px;
  border-radius: 999px;
  background: transparent;
  color: var(--ui-text-muted);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ledger-range-tabs__btn.is-active {
  background: linear-gradient(135deg, #70cf4f 0%, #45b53b 100%);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(76, 180, 69, 0.2);
}

.ledger-range-tabs__btn:hover {
  transform: translateY(-1px);
}

.ledger-status {
  margin: 0;
}

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

.ledger-metric-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  min-height: 196px;
}

.ledger-metric-card strong {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.ledger-metric-card__label {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.ledger-metric-card__note {
  color: var(--ui-text-muted);
  font-size: 14px;
  line-height: 1.65;
}

.ledger-metric-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(131, 218, 100, 0.14) 0%, rgba(117, 209, 77, 0.28) 100%);
  position: relative;
}

.ledger-metric-card__icon::before,
.ledger-metric-card__icon::after {
  content: "";
  position: absolute;
}

.ledger-metric-card__icon--compare::before {
  left: 18px;
  top: 30px;
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: var(--ui-primary);
  box-shadow: 0 -11px 0 var(--ui-primary);
}

.ledger-metric-card__icon--compare::after {
  left: 15px;
  top: 17px;
  width: 34px;
  height: 30px;
  border: 3px solid var(--ui-primary);
  border-color: transparent transparent transparent var(--ui-primary);
  border-radius: 20px;
}

.ledger-metric-card__icon--accept::before {
  left: 18px;
  top: 14px;
  width: 28px;
  height: 34px;
  border-radius: 18px 18px 12px 12px;
  background: var(--ui-primary);
}

.ledger-metric-card__icon--accept::after {
  left: 12px;
  top: 26px;
  width: 40px;
  height: 16px;
  border-radius: 999px;
  background: rgba(117, 209, 77, 0.18);
}

.ledger-metric-card__icon--average::before {
  left: 18px;
  bottom: 16px;
  width: 10px;
  height: 18px;
  border-radius: 999px;
  background: var(--ui-primary);
  box-shadow: 14px -8px 0 var(--ui-primary), 28px -18px 0 var(--ui-primary);
}

.ledger-metric-card__icon--best::before {
  left: 18px;
  top: 18px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--ui-primary);
}

.ledger-metric-card__icon--best::after {
  left: 23px;
  top: 23px;
  width: 18px;
  height: 18px;
  background: #ffffff;
  clip-path: polygon(50% 0%, 62% 36%, 100% 38%, 69% 59%, 79% 100%, 50% 76%, 21% 100%, 31% 59%, 0% 38%, 38% 36%);
}

.ledger-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 18px;
}

.ledger-panel {
  padding: 24px;
}

.ledger-panel__hint {
  margin: 4px 0 0;
  color: var(--ui-text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.ledger-breakdown__layout {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-top: 18px;
}

.ledger-breakdown__donut-wrap {
  display: grid;
  place-items: center;
}

.ledger-breakdown__donut {
  position: relative;
  width: 192px;
  height: 192px;
  border-radius: 999px;
  background: conic-gradient(var(--ledger-donut));
  box-shadow: inset 0 0 0 1px rgba(45, 176, 99, 0.08);
}

.ledger-breakdown__donut::after {
  content: "";
  position: absolute;
  inset: 26px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(45, 176, 99, 0.08);
}

.ledger-breakdown__donut-core {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  text-align: center;
}

.ledger-breakdown__donut-core strong {
  font-size: 26px;
  color: var(--ui-accent);
  line-height: 1;
}

.ledger-breakdown__donut-core span {
  margin-top: 6px;
  color: var(--ui-text-muted);
  font-size: 13px;
}

.ledger-breakdown__list {
  display: grid;
  gap: 14px;
}

.ledger-breakdown__item {
  display: grid;
  gap: 8px;
}

.ledger-breakdown__head,
.ledger-breakdown__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ledger-breakdown__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ledger-breakdown__dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.ledger-breakdown__bar-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #eef1f3;
  overflow: hidden;
}

.ledger-breakdown__bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.ledger-breakdown__meta {
  color: var(--ui-text-muted);
  font-size: 13px;
}

.ledger-record-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.ledger-record-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(45, 176, 99, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #fbfef9 100%);
}

.ledger-record-card h3 {
  margin: 8px 0 6px;
  font-size: 22px;
}

.ledger-record-card__topline,
.ledger-record-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ledger-record-card__scene {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(117, 209, 77, 0.12);
  color: var(--ui-primary);
  font-size: 13px;
  font-weight: 700;
}

.ledger-record-card__time,
.ledger-record-card__meta {
  color: var(--ui-text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.ledger-record-card__saving {
  text-align: right;
  align-self: center;
}

.ledger-record-card__saving span {
  display: block;
  color: var(--ui-text-muted);
  font-size: 13px;
}

.ledger-record-card__saving strong {
  display: block;
  margin-top: 8px;
  color: var(--ui-accent);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1;
}

.ledger-trend {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

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

.ledger-trend__pill {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(45, 176, 99, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #fbfef9 100%);
}

.ledger-trend__pill span {
  display: block;
  color: var(--ui-text-muted);
  font-size: 13px;
}

.ledger-trend__pill strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  line-height: 1.15;
}

.ledger-trend__chart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
  gap: 14px;
  align-items: end;
  min-height: 230px;
  padding: 18px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 251, 236, 0.92) 100%);
  box-shadow: inset 0 0 0 1px rgba(45, 176, 99, 0.08);
}

.ledger-trend__point {
  display: grid;
  gap: 8px;
  align-items: end;
  justify-items: center;
}

.ledger-trend__bar {
  display: block;
  width: 100%;
  min-height: 18px;
  border-radius: 18px 18px 8px 8px;
  background: linear-gradient(180deg, #7ed65d 0%, #42b23e 100%);
  box-shadow: 0 12px 24px rgba(76, 180, 69, 0.18);
}

.ledger-trend__point strong {
  font-size: 16px;
  color: var(--ui-primary);
}

.ledger-trend__point span {
  color: var(--ui-text-muted);
  font-size: 12px;
}

.ledger-empty-state {
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: 22px;
  border: 1px dashed rgba(45, 176, 99, 0.24);
  background: linear-gradient(180deg, #fcfffa 0%, #f3faef 100%);
}

.ledger-empty-state__title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.ledger-empty-state__text {
  margin: 0;
  color: var(--ui-text-muted);
  line-height: 1.7;
}

@media (max-width: 1100px) {
  .ledger-summary-card,
  .ledger-content-grid {
    grid-template-columns: 1fr;
  }

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

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

  .ledger-breakdown__donut-wrap {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .ledger-hero__top,
  .ledger-record-card,
  .ledger-breakdown__head,
  .ledger-breakdown__meta {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .ledger-summary-card {
    padding: 22px;
  }

  .ledger-summary-card__visual {
    min-height: 180px;
  }

  .ledger-summary-card__copy h2 {
    font-size: 58px;
  }

  .ledger-range-tabs {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .ledger-metric-grid,
  .ledger-trend__summary {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .ledger-metric-grid,
  .ledger-content-grid {
    grid-template-columns: 1fr;
  }

  .ledger-summary-card__copy h2 {
    font-size: 48px;
  }

  .ledger-breakdown__donut {
    width: 164px;
    height: 164px;
  }

  .ledger-panel,
  .ledger-metric-card {
    padding: 18px;
  }

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

.weekly-page-shell {
  display: grid;
  gap: 18px;
}

.weekly-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(223, 251, 208, 0.84) 0%, rgba(255, 255, 255, 0.98) 52%, rgba(255, 255, 255, 1) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 252, 243, 0.92) 100%);
}

.weekly-hero__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.weekly-plan-card,
.weekly-summary-card,
.weekly-list-card,
.weekly-compare-card,
.weekly-price-note {
  padding: 24px;
}

.weekly-plan-card__summary {
  margin: 4px 0 0;
  color: var(--ui-text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.weekly-profile-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.weekly-profile-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(45, 176, 99, 0.16);
  background: rgba(117, 209, 77, 0.1);
  color: var(--ui-primary);
  font-size: 14px;
  font-weight: 700;
}

.weekly-form {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 16px;
  align-items: end;
  margin-top: 18px;
}

.weekly-form__field {
  display: grid;
  gap: 6px;
  font-size: 14px;
}

.weekly-form__field select {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 14px;
  background: #ffffff;
  font-size: 16px;
}

.weekly-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.weekly-form__actions button {
  min-width: 140px;
}

.weekly-status {
  margin-top: 12px;
}

.weekly-summary-card {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 230px;
  gap: 18px;
  align-items: center;
  background:
    radial-gradient(circle at top left, rgba(255, 252, 237, 0.94) 0%, rgba(245, 255, 237, 0.96) 48%, rgba(236, 250, 223, 0.98) 100%);
}

.weekly-summary-card__kicker {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.weekly-summary-card__copy h2 {
  margin: 10px 0 8px;
  color: var(--ui-accent);
  font-size: clamp(56px, 9vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.weekly-summary-card__meta,
.weekly-summary-card__breakdown {
  margin: 10px 0 0;
}

.weekly-summary-card__meta {
  font-weight: 700;
}

.weekly-summary-card__breakdown {
  color: var(--ui-text-muted);
  line-height: 1.7;
}

.weekly-summary-card__visual {
  position: relative;
  min-height: 180px;
}

.weekly-summary-pig {
  position: absolute;
  right: 18px;
  bottom: 8px;
  width: 148px;
  height: 112px;
  border-radius: 78px 82px 72px 74px;
  background: linear-gradient(180deg, #ffd0d8 0%, #f7a8b4 100%);
  box-shadow: 0 24px 40px rgba(255, 167, 182, 0.24);
}

.weekly-summary-pig::before {
  content: "";
  position: absolute;
  right: 22px;
  top: 32px;
  width: 36px;
  height: 30px;
  border-radius: 18px;
  background: #ffbfca;
}

.weekly-summary-pig::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 22px;
  width: 28px;
  height: 28px;
  border-radius: 50% 50% 18% 70%;
  background: #ffbdc7;
  transform: rotate(-24deg);
}

.weekly-summary-coin {
  position: absolute;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd979 0%, #ffb62f 100%);
  box-shadow: 0 12px 22px rgba(255, 166, 0, 0.24);
}

.weekly-summary-coin--one {
  right: 112px;
  top: 12px;
  width: 42px;
  height: 42px;
}

.weekly-summary-coin--two {
  right: 60px;
  top: 34px;
  width: 28px;
  height: 28px;
}

.weekly-list-card__hint {
  margin: 4px 0 0;
  color: var(--ui-text-muted);
  font-size: 14px;
}

.weekly-menu-list {
  margin-top: 18px;
}

.weekly-menu-table {
  border: 1px solid rgba(45, 176, 99, 0.12);
  border-radius: 24px;
  overflow: hidden;
  background: #ffffff;
}

.weekly-menu-table__head {
  display: grid;
  grid-template-columns: 130px minmax(0, 1.6fr) repeat(3, minmax(110px, 0.62fr));
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(45, 176, 99, 0.1);
  background: linear-gradient(180deg, #ffffff 0%, #fbfef9 100%);
  font-size: 14px;
  font-weight: 700;
  color: var(--ui-text-muted);
}

.weekly-menu-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1.6fr) repeat(3, minmax(110px, 0.62fr));
  gap: 16px;
  padding: 20px 22px;
  align-items: center;
  border-bottom: 1px solid rgba(45, 176, 99, 0.08);
}

.weekly-menu-row:last-child {
  border-bottom: 0;
}

.weekly-menu-row__day {
  display: grid;
  gap: 4px;
  justify-items: start;
}

.weekly-menu-row__day strong {
  font-size: 18px;
}

.weekly-menu-row__day span {
  color: var(--ui-text-muted);
}

.weekly-menu-row__dish h3 {
  margin: 0 0 6px;
  font-size: 28px;
}

.weekly-menu-row__dish p {
  margin: 0;
  color: var(--ui-text-muted);
}

.weekly-menu-row__metric,
.weekly-menu-row__saving {
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.weekly-menu-row__metric {
  color: var(--ui-text);
}

.weekly-menu-row__saving {
  color: var(--ui-accent);
}

.weekly-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
  gap: 18px;
}

.weekly-compare-panel {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.weekly-compare-card__summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.weekly-compare-card__tile {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(45, 176, 99, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #fbfef9 100%);
}

.weekly-compare-card__tile span {
  display: block;
  color: var(--ui-text-muted);
  font-size: 13px;
}

.weekly-compare-card__tile strong {
  display: block;
  margin-top: 10px;
  font-size: 40px;
  line-height: 1;
}

.weekly-compare-card__tile--accent strong {
  color: var(--ui-accent);
}

.weekly-compare-card__vs {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: rgba(117, 209, 77, 0.12);
  color: var(--ui-primary);
  font-size: 26px;
  font-weight: 900;
}

.weekly-compare-card__saving {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  color: var(--ui-accent);
}

.weekly-compare-card__note {
  margin: 0;
  color: var(--ui-text-muted);
  line-height: 1.7;
}

.weekly-price-note__body {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  color: var(--ui-text-muted);
  line-height: 1.7;
}

.weekly-price-note__body p {
  margin: 0;
}

.weekly-empty-state {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: 22px;
  border: 1px dashed rgba(45, 176, 99, 0.24);
  background: linear-gradient(180deg, #fcfffa 0%, #f3faef 100%);
}

.weekly-empty-state__title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.weekly-empty-state__text {
  margin: 0;
  color: var(--ui-text-muted);
  line-height: 1.7;
}

@media (max-width: 1100px) {
  .weekly-summary-card,
  .weekly-bottom-grid,
  .weekly-form {
    grid-template-columns: 1fr;
  }

  .weekly-menu-table__head,
  .weekly-menu-row {
    grid-template-columns: 110px minmax(0, 1fr) repeat(3, minmax(88px, 0.8fr));
  }
}

@media (max-width: 820px) {
  .weekly-menu-table__head {
    display: none;
  }

  .weekly-menu-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .weekly-menu-row__dish h3 {
    font-size: 24px;
  }

  .weekly-menu-row__metric,
  .weekly-menu-row__saving {
    font-size: 24px;
  }

  .weekly-compare-card__summary {
    grid-template-columns: 1fr;
  }

  .weekly-compare-card__vs {
    justify-self: center;
  }
}

@media (max-width: 640px) {
  .weekly-hero__top {
    flex-direction: column;
  }

  .weekly-profile-chips,
  .weekly-form__actions {
    flex-direction: column;
  }

  .weekly-form__actions button,
  .weekly-form__actions .ghost-btn {
    width: 100%;
  }

  .weekly-summary-card__copy h2 {
    font-size: 52px;
  }

  .weekly-summary-card__visual {
    min-height: 130px;
  }

  .weekly-summary-pig {
    right: 0;
    width: 122px;
    height: 92px;
  }
}

.zone-page-shell {
  display: grid;
  gap: 18px;
}

.zone-hero {
  position: relative;
  overflow: hidden;
}

.zone-hero--student {
  background:
    radial-gradient(circle at top right, rgba(227, 251, 214, 0.86) 0%, rgba(255, 255, 255, 0.98) 54%, rgba(255, 255, 255, 1) 100%);
}

.zone-hero--office {
  background:
    radial-gradient(circle at top right, rgba(235, 248, 218, 0.84) 0%, rgba(255, 255, 255, 0.98) 54%, rgba(255, 255, 255, 1) 100%);
}

.zone-hero__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.zone-summary-card,
.zone-list-card,
.zone-plan-card,
.zone-tip-card {
  padding: 24px;
}

.zone-summary-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 250px;
  gap: 18px;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(244, 255, 237, 0.98) 100%);
}

.zone-summary-card__kicker {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.zone-summary-card__copy h2 {
  margin: 10px 0 8px;
  color: var(--ui-accent);
  font-size: clamp(56px, 9vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.zone-summary-card__meta,
.zone-summary-card__profile {
  margin: 10px 0 0;
}

.zone-summary-card__meta {
  font-weight: 700;
}

.zone-summary-card__profile {
  color: var(--ui-text-muted);
  line-height: 1.7;
}

.zone-profile-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.zone-profile-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(45, 176, 99, 0.16);
  background: rgba(117, 209, 77, 0.1);
  color: var(--ui-primary);
  font-size: 14px;
  font-weight: 700;
}

.zone-summary-card__visual {
  position: relative;
  min-height: 180px;
}

.zone-summary-card__visual--student .zone-summary-board {
  position: absolute;
  right: 22px;
  top: 12px;
  width: 148px;
  height: 178px;
  border-radius: 30px;
  background: linear-gradient(180deg, #fafff5 0%, #e4ffd9 100%);
  border: 8px solid rgba(128, 220, 112, 0.26);
  transform: rotate(8deg);
  box-shadow: 0 20px 36px rgba(83, 175, 91, 0.16);
}

.zone-summary-card__visual--student .zone-summary-board::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -16px;
  width: 72px;
  height: 28px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(125, 219, 109, 0.34);
}

.zone-summary-card__visual--student .zone-summary-board::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  top: 52px;
  height: 70px;
  background:
    linear-gradient(rgba(84, 182, 86, 0.22), rgba(84, 182, 86, 0.22)) 24px 0 / calc(100% - 24px) 7px no-repeat,
    radial-gradient(circle, rgba(84, 182, 86, 0.3) 0 50%, transparent 52%) 0 0 / 18px 18px no-repeat,
    linear-gradient(rgba(84, 182, 86, 0.22), rgba(84, 182, 86, 0.22)) 24px 30px / calc(100% - 24px) 7px no-repeat,
    radial-gradient(circle, rgba(84, 182, 86, 0.3) 0 50%, transparent 52%) 0 30px / 18px 18px no-repeat,
    linear-gradient(rgba(84, 182, 86, 0.22), rgba(84, 182, 86, 0.22)) 24px 60px / calc(100% - 24px) 7px no-repeat,
    radial-gradient(circle, rgba(84, 182, 86, 0.3) 0 50%, transparent 52%) 0 60px / 18px 18px no-repeat;
  background-repeat: no-repeat;
}

.zone-summary-card__visual--student .zone-summary-coin {
  position: absolute;
  right: 0;
  bottom: 16px;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd979 0%, #ffb62f 100%);
  box-shadow: 0 12px 24px rgba(255, 166, 0, 0.24);
}

.zone-summary-card__visual--student .zone-summary-coin::before {
  content: "¥";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 34px;
  font-weight: 900;
}

.zone-summary-card__visual--office .zone-lunch-box {
  position: absolute;
  right: 0;
  bottom: 8px;
  width: 206px;
  height: 132px;
  border-radius: 28px;
  background: linear-gradient(180deg, #dff0bd 0%, #b9d687 100%);
  box-shadow: 0 20px 34px rgba(110, 150, 65, 0.18);
}

.zone-summary-card__visual--office .zone-lunch-box::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: -22px;
  height: 34px;
  border-radius: 20px;
  background: linear-gradient(180deg, #eef7d9 0%, #d7eab7 100%);
  transform: rotate(10deg);
}

.zone-summary-card__visual--office .zone-lunch-box span {
  position: absolute;
  bottom: 18px;
  border-radius: 18px;
}

.zone-summary-card__visual--office .zone-lunch-box span:nth-child(1) {
  left: 20px;
  width: 72px;
  height: 78px;
  background: #f6f6eb;
}

.zone-summary-card__visual--office .zone-lunch-box span:nth-child(2) {
  left: 100px;
  width: 38px;
  height: 62px;
  background: linear-gradient(180deg, #6fbf57 0%, #4d9742 100%);
}

.zone-summary-card__visual--office .zone-lunch-box span:nth-child(3) {
  right: 18px;
  width: 42px;
  height: 74px;
  background: linear-gradient(180deg, #ffa85a 0%, #f37e22 100%);
}

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

.zone-entry-card {
  display: grid;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  min-height: 126px;
}

.zone-entry-card strong {
  font-size: 26px;
  line-height: 1.15;
}

.zone-entry-card span {
  color: var(--ui-text-muted);
  line-height: 1.6;
}

.zone-entry-card--green {
  border-color: rgba(117, 209, 77, 0.22);
  background: linear-gradient(180deg, #fbfff9 0%, #f3faef 100%);
}

.zone-entry-card--orange {
  border-color: rgba(255, 138, 61, 0.2);
  background: linear-gradient(180deg, #fffaf5 0%, #fff3e8 100%);
}

.zone-entry-card--blue {
  border-color: rgba(118, 183, 255, 0.22);
  background: linear-gradient(180deg, #fbfdff 0%, #edf5ff 100%);
}

.zone-recommend-list {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

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

.zone-recommend-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) auto;
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(45, 176, 99, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #fbfef9 100%);
}

.food-image-card--zone {
  min-height: 116px;
}

.zone-recommend-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.zone-recommend-card__head h3 {
  margin: 0 0 6px;
  font-size: 28px;
}

.zone-recommend-card__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.mini-stat--accent {
  background: linear-gradient(180deg, #fffaf4 0%, #fff1e5 100%);
  border-color: rgba(255, 138, 61, 0.18);
}

.mini-stat--accent strong {
  color: var(--ui-accent);
}

.zone-recommend-card__actions {
  align-self: center;
}

.zone-plan-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.zone-plan-day {
  padding: 18px 16px;
  border-radius: 22px;
  border: 1px solid rgba(45, 176, 99, 0.12);
  background: linear-gradient(180deg, #fbfff9 0%, #ffffff 100%);
}

.zone-plan-day__label {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
}

.zone-plan-day h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.3;
}

.zone-plan-day p {
  margin: 10px 0 0;
  color: var(--ui-text-muted);
  line-height: 1.6;
}

.zone-plan-day strong {
  display: block;
  margin-top: 14px;
  color: var(--ui-primary);
  font-size: 18px;
}

.zone-tip-card__body {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  color: var(--ui-text-muted);
  line-height: 1.7;
}

.zone-tip-card__body p {
  margin: 0;
}

.zone-tip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.zone-tip-grid__item {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(45, 176, 99, 0.1);
  background: linear-gradient(180deg, #fbfff9 0%, #ffffff 100%);
}

.zone-tip-grid__item strong {
  display: block;
  font-size: 22px;
  line-height: 1.3;
}

.zone-tip-grid__item span {
  display: block;
  margin-top: 10px;
  color: var(--ui-text-muted);
  line-height: 1.6;
}

.zone-empty-state {
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: 22px;
  border: 1px dashed rgba(45, 176, 99, 0.24);
  background: linear-gradient(180deg, #fcfffa 0%, #f3faef 100%);
}

.zone-empty-state__title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.zone-empty-state__text {
  margin: 0;
  color: var(--ui-text-muted);
  line-height: 1.7;
}

@media (max-width: 1100px) {
  .zone-summary-card,
  .zone-recommend-card,
  .zone-entry-grid,
  .zone-tip-grid {
    grid-template-columns: 1fr;
  }

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

  .zone-recommend-list--grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .zone-hero__top,
  .zone-summary-card,
  .zone-recommend-card,
  .zone-recommend-card__head,
  .zone-recommend-card__stats {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .zone-plan-strip {
    grid-template-columns: 1fr;
  }

  .zone-summary-card__copy h2 {
    font-size: 52px;
  }

  .zone-summary-card__visual {
    min-height: 140px;
  }
}

.market-page-shell,
.deals-page-shell {
  display: grid;
  gap: 18px;
}

.market-hero,
.deals-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.98) 0%, rgba(248, 255, 242, 0.95) 52%, rgba(220, 248, 205, 0.92) 100%),
    linear-gradient(135deg, rgba(225, 250, 216, 0.95) 0%, rgba(252, 255, 246, 1) 100%);
}

.market-hero__top,
.deals-hero__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}

.market-hero__actions,
.deals-hero__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.market-filter-card,
.deals-filter-card,
.market-summary-card,
.deals-summary-card,
.market-list-card,
.deals-list-card,
.market-notice-card,
.deals-detail-card {
  display: grid;
  gap: 16px;
}

.market-filter-card__hint,
.deals-filter-card__hint,
.market-list-card__hint,
.deals-list-card__hint {
  margin: 0;
  color: var(--ui-text-muted);
  line-height: 1.6;
}

.market-search-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 16px;
  align-items: end;
}

.market-search-field,
.market-select-form label {
  display: grid;
  gap: 8px;
  color: var(--ui-text-muted);
  font-size: 14px;
}

.market-search-field input,
.market-select-form select {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(45, 176, 99, 0.14);
  background: rgba(255, 255, 255, 0.95);
  font: inherit;
}

.market-select-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.market-select-form button,
.deals-filter-form button {
  min-height: 48px;
  padding: 0 20px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #34b95d 0%, #249c55 100%);
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 16px 28px rgba(45, 176, 99, 0.18);
}

.market-quick-picks,
.deals-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.market-quick-chip,
.deals-category-btn {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(45, 176, 99, 0.12);
  background: #ffffff;
  color: var(--ui-text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.market-quick-chip:hover,
.deals-category-btn:hover,
.market-quick-chip.is-active,
.deals-category-btn.is-active {
  transform: translateY(-1px);
  border-color: rgba(45, 176, 99, 0.28);
  box-shadow: 0 14px 24px rgba(45, 176, 99, 0.12);
}

.market-quick-chip.is-active,
.deals-category-btn.is-active {
  background: linear-gradient(180deg, #f3fbef 0%, #ffffff 100%);
  color: var(--ui-primary);
}

.market-summary-card {
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
}

.market-summary-card__kicker {
  margin: 0;
  color: var(--ui-primary);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.market-summary-card__copy h2 {
  margin: 8px 0 10px;
  font-size: 34px;
  line-height: 1.18;
}

.market-status,
.deals-status {
  margin: 0;
}

.market-summary-card__stats,
.deals-summary-card__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.market-metric {
  min-height: 116px;
  padding: 18px 18px 16px;
  border-radius: 22px;
  border: 1px solid rgba(45, 176, 99, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #fbfef9 100%);
  display: grid;
  align-content: start;
  gap: 8px;
}

.market-metric span {
  color: var(--ui-text-muted);
  font-size: 13px;
}

.market-metric strong {
  font-size: 30px;
  line-height: 1.1;
}

.market-metric--accent {
  background: linear-gradient(180deg, #fffaf4 0%, #ffffff 100%);
  border-color: rgba(255, 138, 61, 0.18);
}

.market-metric--accent strong {
  color: var(--ui-accent);
}

.market-best-card,
.deals-summary-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(45, 176, 99, 0.14);
  background: linear-gradient(180deg, #fbfff9 0%, #ffffff 100%);
}

.market-best-card strong,
.deals-summary-banner strong {
  color: var(--ui-primary);
  font-size: 18px;
}

.market-best-card span,
.deals-summary-banner span {
  color: var(--ui-text-muted);
  line-height: 1.7;
}

.market-list,
.deals-list {
  display: grid;
  gap: 16px;
}

.market-row,
.deals-card {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(45, 176, 99, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #fbfef9 100%);
}

.market-row__head,
.deals-card__head,
.deals-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.market-row__head h3,
.deals-card__head h3,
.deals-detail-hero h3 {
  margin: 8px 0 6px;
  font-size: 26px;
  line-height: 1.2;
}

.market-row__head p,
.deals-card__head p,
.deals-card__summary,
.deals-detail-hero p,
.deals-detail-copy {
  margin: 0;
  color: var(--ui-text-muted);
  line-height: 1.7;
}

.market-row__tags,
.deals-card__tags {
  margin-top: 0;
}

.market-price-grid,
.deals-card__price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.market-price-cell,
.deals-card__price-grid > div {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(45, 176, 99, 0.12);
  background: rgba(255, 255, 255, 0.86);
  display: grid;
  gap: 8px;
}

.market-price-cell span,
.deals-card__price-grid span {
  color: var(--ui-text-muted);
  font-size: 13px;
}

.market-price-cell strong,
.deals-card__price-grid strong {
  font-size: 28px;
  line-height: 1.1;
}

.market-price-cell em {
  color: var(--ui-text-muted);
  font-style: normal;
  font-size: 13px;
}

.market-price-cell--best {
  border-color: rgba(45, 176, 99, 0.2);
  background: linear-gradient(180deg, #f3fbef 0%, #ffffff 100%);
}

.market-price-cell--saving strong,
.deals-card__saving strong,
.deals-detail-hero__saving strong {
  color: var(--ui-accent);
}

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

.market-note-grid__item {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(45, 176, 99, 0.1);
  background: linear-gradient(180deg, #fbfff9 0%, #ffffff 100%);
  display: grid;
  gap: 8px;
}

.market-note-grid__item strong {
  font-size: 18px;
}

.market-note-grid__item span,
.market-note-inline span {
  color: var(--ui-text-muted);
  line-height: 1.7;
}

.market-note-inline {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px dashed rgba(45, 176, 99, 0.24);
  background: linear-gradient(180deg, #fcfffa 0%, #f3faef 100%);
}

.market-action-row {
  margin-top: 4px;
}

.market-empty-state,
.deals-empty-state {
  display: grid;
  gap: 10px;
  padding: 20px;
  border-radius: 22px;
  border: 1px dashed rgba(45, 176, 99, 0.24);
  background: linear-gradient(180deg, #fcfffa 0%, #f3faef 100%);
}

.market-empty-state__title,
.deals-empty-state__title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.market-empty-state__text,
.deals-empty-state__text {
  margin: 0;
  color: var(--ui-text-muted);
  line-height: 1.7;
}

.deals-filter-form {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.deals-card {
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.deals-card:hover,
.deals-card.is-active {
  transform: translateY(-1px);
  border-color: rgba(45, 176, 99, 0.24);
  box-shadow: 0 18px 30px rgba(45, 176, 99, 0.12);
}

.deals-card__saving,
.deals-detail-hero__saving {
  min-width: 148px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 138, 61, 0.14);
  background: linear-gradient(180deg, #fffaf4 0%, #ffffff 100%);
  display: grid;
  gap: 8px;
  align-content: start;
}

.deals-card__saving span,
.deals-detail-hero__saving span,
.deals-card__meta span {
  color: var(--ui-text-muted);
  font-size: 13px;
}

.deals-card__summary {
  margin-top: 14px;
}

.deals-card__meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.deals-detail-body {
  display: grid;
  gap: 16px;
}

.deals-detail-copy {
  margin-top: 0;
}

.tag--soft {
  background: #f5faf4;
  color: var(--ui-primary);
}

.tag--accent {
  background: #fff3e8;
  color: var(--ui-accent);
}

@media (max-width: 1100px) {
  .market-search-grid,
  .market-summary-card,
  .market-note-grid,
  .market-price-grid,
  .deals-card__price-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .market-hero__top,
  .deals-hero__top,
  .market-row__head,
  .deals-card__head,
  .deals-detail-hero {
    grid-template-columns: 1fr;
  }

  .market-summary-card__stats,
  .deals-summary-card__stats,
  .market-note-grid {
    grid-template-columns: 1fr;
  }

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

  .market-summary-card__copy h2 {
    font-size: 28px;
  }
}

.alerts-page-shell,
.subscriptions-page-shell {
  display: grid;
  gap: 18px;
}

.alerts-hero,
.subscriptions-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.98) 0%, rgba(248, 255, 242, 0.95) 52%, rgba(220, 248, 205, 0.92) 100%),
    linear-gradient(135deg, rgba(225, 250, 216, 0.95) 0%, rgba(252, 255, 246, 1) 100%);
}

.alerts-hero__top,
.subscriptions-hero__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}

.alerts-hero__actions,
.subscriptions-hero__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.alerts-summary-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.alerts-summary-card__main {
  display: flex;
  align-items: center;
  gap: 18px;
}

.alerts-summary-card__icon {
  width: 88px;
  height: 88px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 32px 24px, rgba(255, 255, 255, 0.95) 0 6px, transparent 8px),
    linear-gradient(180deg, #dff6d7 0%, #f3fbef 100%);
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(45, 176, 99, 0.08);
}

.alerts-summary-card__icon::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 18px;
  width: 38px;
  height: 42px;
  border-radius: 20px 20px 16px 16px;
  background: linear-gradient(180deg, #79cf73 0%, #41ad58 100%);
}

.alerts-summary-card__icon::after {
  content: "";
  position: absolute;
  left: 36px;
  bottom: 16px;
  width: 16px;
  height: 10px;
  border-radius: 0 0 10px 10px;
  background: #41ad58;
}

.alerts-summary-card__title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.alerts-summary-card__title strong {
  color: var(--ui-accent);
  font-size: 44px;
  line-height: 1;
}

.alerts-summary-card__side {
  display: grid;
  gap: 12px;
  justify-items: end;
}

.alerts-summary-card__saving {
  min-width: 196px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(255, 138, 61, 0.14);
  background: linear-gradient(180deg, #fffaf4 0%, #ffffff 100%);
  display: grid;
  gap: 8px;
}

.alerts-summary-card__saving span,
.subscriptions-feed-card__detail span,
.subscriptions-feed-card__meta span {
  color: var(--ui-text-muted);
  font-size: 13px;
}

.alerts-summary-card__saving strong {
  color: var(--ui-accent);
  font-size: 38px;
  line-height: 1.1;
}

.alerts-category-card,
.alerts-list-card,
.alerts-subscribe-card,
.subscriptions-guide-card,
.subscriptions-summary-card,
.subscriptions-form-card,
.subscriptions-list-card {
  display: grid;
  gap: 16px;
}

.alerts-category-tabs,
.subscriptions-status-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.alerts-category-btn,
.subscriptions-status-btn {
  min-width: 120px;
  padding: 14px 16px;
  border-radius: 22px;
  border: 1px solid rgba(45, 176, 99, 0.12);
  background: #ffffff;
  display: grid;
  gap: 6px;
  justify-items: center;
  color: var(--ui-text);
  font: inherit;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.alerts-category-btn:hover,
.alerts-category-btn.is-active,
.subscriptions-status-btn:hover,
.subscriptions-status-btn.is-active {
  transform: translateY(-1px);
  border-color: rgba(45, 176, 99, 0.22);
  box-shadow: 0 14px 24px rgba(45, 176, 99, 0.1);
}

.alerts-category-btn.is-active,
.subscriptions-status-btn.is-active {
  background: linear-gradient(180deg, #f3fbef 0%, #ffffff 100%);
  color: var(--ui-primary);
}

.alerts-category-btn strong,
.subscriptions-status-btn {
  font-weight: 800;
}

.alerts-filter-form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.alerts-filter-form select {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(45, 176, 99, 0.14);
  background: #ffffff;
  font: inherit;
}

.alerts-filter-form button {
  min-height: 44px;
  padding: 0 16px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #34b95d 0%, #249c55 100%);
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.alerts-feed,
.subscriptions-feed {
  display: grid;
  gap: 16px;
}

.alerts-feed-card,
.subscriptions-feed-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(45, 176, 99, 0.1);
  background: linear-gradient(180deg, #ffffff 0%, #fbfef9 100%);
}

.alerts-feed-card.unread {
  border-color: rgba(255, 138, 61, 0.24);
  box-shadow: 0 18px 28px rgba(255, 138, 61, 0.08);
}

.alerts-feed-card__thumb {
  width: 118px;
  height: 118px;
  border-radius: 26px;
  background: linear-gradient(180deg, #eff7eb 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.alerts-feed-card__thumb--pricing::before,
.alerts-feed-card__thumb--deals::before,
.alerts-feed-card__thumb--subscription::before,
.alerts-feed-card__thumb--risk_control::before,
.alerts-feed-card__thumb--system::before,
.alerts-feed-card__thumb--family::before {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: 22px;
}

.alerts-feed-card__thumb--pricing::before {
  background: radial-gradient(circle at 50% 42%, #fff 0 12px, #f9dcc2 14px, #d28e52 34px, transparent 36px),
    linear-gradient(180deg, #f3fbef 0%, #d8f1d1 100%);
}

.alerts-feed-card__thumb--deals::before {
  background: radial-gradient(circle at center, #ffd76d 0 20px, #ffb62f 22px, transparent 24px),
    linear-gradient(180deg, #fff8e7 0%, #fff0cf 100%);
}

.alerts-feed-card__thumb--subscription::before {
  background: linear-gradient(180deg, #e5f0ff 0%, #ffffff 100%);
  box-shadow: inset 0 0 0 8px rgba(90, 160, 255, 0.18);
}

.alerts-feed-card__thumb--risk_control::before {
  background: linear-gradient(180deg, #fff4e6 0%, #ffffff 100%);
  box-shadow: inset 0 0 0 8px rgba(255, 138, 61, 0.16);
}

.alerts-feed-card__thumb--system::before,
.alerts-feed-card__thumb--family::before {
  background: linear-gradient(180deg, #eef8ee 0%, #ffffff 100%);
  box-shadow: inset 0 0 0 8px rgba(45, 176, 99, 0.14);
}

.alerts-feed-card__main,
.subscriptions-feed-card__main {
  display: grid;
  gap: 12px;
}

.alerts-feed-card__head,
.subscriptions-feed-card__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.alerts-feed-card__head h3,
.subscriptions-feed-card__head h3 {
  margin: 8px 0 6px;
  font-size: 30px;
  line-height: 1.18;
}

.alerts-feed-card__head p,
.subscriptions-feed-card__head p,
.alerts-feed-card__meta {
  margin: 0;
  color: var(--ui-text-muted);
  line-height: 1.7;
}

.alerts-feed-card__saving,
.subscriptions-feed-card__meta {
  min-width: 150px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 138, 61, 0.14);
  background: linear-gradient(180deg, #fffaf4 0%, #ffffff 100%);
  display: grid;
  gap: 8px;
}

.alerts-feed-card__saving strong {
  color: var(--ui-accent);
  font-size: 34px;
  line-height: 1.1;
}

.alerts-feed-card__saving em {
  color: var(--ui-text-muted);
  font-style: normal;
  font-size: 13px;
}

.alerts-feed-card__meta {
  font-size: 14px;
}

.alerts-subscribe-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.98) 0%, rgba(248, 255, 242, 0.95) 52%, rgba(220, 248, 205, 0.92) 100%),
    linear-gradient(135deg, rgba(225, 250, 216, 0.95) 0%, rgba(252, 255, 246, 1) 100%);
}

.alerts-subscribe-card__copy h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.alerts-subscribe-card__copy p {
  margin: 0;
  color: var(--ui-text-muted);
  line-height: 1.7;
}

.alerts-empty-state,
.subscriptions-empty-state {
  display: grid;
  gap: 10px;
  padding: 20px;
  border-radius: 22px;
  border: 1px dashed rgba(45, 176, 99, 0.24);
  background: linear-gradient(180deg, #fcfffa 0%, #f3faef 100%);
}

.alerts-empty-state__title,
.subscriptions-empty-state__title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.alerts-empty-state__text,
.subscriptions-empty-state__text {
  margin: 0;
  color: var(--ui-text-muted);
  line-height: 1.7;
}

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

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

.subscriptions-guide-grid article {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(25, 42, 37, 0.09);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(248, 255, 250, 0.92), rgba(255, 250, 244, 0.78));
}

.subscriptions-guide-grid strong {
  color: var(--ui-text);
  font-size: 0.95rem;
}

.subscriptions-guide-grid p {
  margin: 0;
  color: var(--ui-text-muted);
  line-height: 1.7;
}

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

.subscriptions-form-grid label {
  display: grid;
  gap: 8px;
  color: var(--ui-text-muted);
  font-size: 14px;
}

.subscriptions-form-grid select,
.subscriptions-form-grid input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(45, 176, 99, 0.14);
  background: #ffffff;
  font: inherit;
}

.subscriptions-form-grid__wide {
  grid-column: 1 / -1;
}

.subscriptions-form-grid__actions {
  display: grid;
  gap: 10px;
}

.subscriptions-form-grid__actions button {
  min-height: 48px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #34b95d 0%, #249c55 100%);
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 16px 28px rgba(45, 176, 99, 0.18);
}

.subscriptions-form-grid__hint {
  margin: 0;
  color: var(--ui-text-muted);
  line-height: 1.7;
}

.subscriptions-feed-card {
  grid-template-columns: 1fr;
}

.subscriptions-feed-card__meta strong {
  color: var(--ui-primary);
  font-size: 24px;
  line-height: 1.2;
}

.subscriptions-feed-card__detail {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 1100px) {
  .alerts-summary-card,
  .alerts-subscribe-card,
  .subscriptions-guide-grid,
  .subscriptions-summary-card__metrics,
  .subscriptions-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .alerts-hero__top,
  .subscriptions-hero__top,
  .alerts-feed-card,
  .alerts-feed-card__head,
  .subscriptions-feed-card__head,
  .alerts-subscribe-card {
    grid-template-columns: 1fr;
  }

  .alerts-summary-card {
    grid-template-columns: 1fr;
  }

  .alerts-summary-card__main {
    align-items: flex-start;
  }

  .alerts-summary-card__title strong {
    font-size: 36px;
  }

  .alerts-summary-card__side {
    justify-items: stretch;
  }
}

.family-page-shell {
  display: grid;
  gap: 18px;
}

.family-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.98) 0%, rgba(248, 255, 242, 0.95) 52%, rgba(220, 248, 205, 0.92) 100%),
    linear-gradient(135deg, rgba(225, 250, 216, 0.95) 0%, rgba(252, 255, 246, 1) 100%);
}

.family-hero__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}

.family-hero__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.family-status {
  margin: 0;
}

.family-summary-card,
.family-panel {
  display: grid;
  gap: 16px;
}

.family-summary-card {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
}

.family-summary-card__kicker {
  margin: 0;
  color: var(--ui-primary);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.family-summary-card__copy h2 {
  margin: 8px 0 10px;
  font-size: 66px;
  line-height: 1;
  color: var(--ui-primary);
}

.family-summary-card__meta,
.family-summary-card__breakdown {
  margin: 0;
  color: var(--ui-text-muted);
  line-height: 1.7;
}

.family-summary-card__visual {
  position: relative;
  min-height: 220px;
}

.family-wallet {
  position: absolute;
  right: 22px;
  top: 34px;
  width: 170px;
  height: 140px;
  border-radius: 28px;
  background: linear-gradient(180deg, #8fe26d 0%, #41ad58 100%);
  box-shadow: 0 24px 40px rgba(45, 176, 99, 0.18);
}

.family-wallet::before {
  content: "";
  position: absolute;
  right: 18px;
  top: 40px;
  width: 62px;
  height: 44px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.22);
}

.family-wallet::after {
  content: "";
  position: absolute;
  left: -48px;
  top: -18px;
  width: 180px;
  height: 88px;
  border-radius: 100px;
  border-top: 16px solid rgba(138, 224, 126, 0.24);
  border-right: 16px solid transparent;
  transform: rotate(12deg);
}

.family-coin {
  position: absolute;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd979 0%, #ffb62f 100%);
  box-shadow: 0 12px 24px rgba(255, 166, 0, 0.24);
}

.family-coin::before {
  content: "¥";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 28px;
  font-weight: 900;
}

.family-coin--one {
  right: 0;
  bottom: 18px;
  width: 86px;
  height: 86px;
}

.family-coin--two {
  right: 92px;
  top: 12px;
  width: 68px;
  height: 68px;
}

.family-grid {
  display: grid;
  gap: 18px;
}

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

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

.family-form-grid label {
  display: grid;
  gap: 8px;
  color: var(--ui-text-muted);
  font-size: 14px;
}

.family-form-grid input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(45, 176, 99, 0.14);
  background: #ffffff;
  font: inherit;
}

.family-form-grid__wide {
  grid-column: 1 / -1;
}

.family-form-grid__actions {
  display: grid;
}

.family-form-grid__actions button {
  min-height: 48px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #34b95d 0%, #249c55 100%);
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 16px 28px rgba(45, 176, 99, 0.18);
}

.family-member-grid {
  display: grid;
  gap: 14px;
}

.family-member-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(45, 176, 99, 0.1);
  background: linear-gradient(180deg, #ffffff 0%, #fbfef9 100%);
  align-items: center;
}

.family-member-card__avatar,
.family-contribution-item__avatar {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: linear-gradient(180deg, #dff6d7 0%, #f3fbef 100%);
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(45, 176, 99, 0.08);
}

.family-member-card__avatar::before,
.family-contribution-item__avatar::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 14px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #ffcfb0;
}

.family-member-card__avatar::after,
.family-contribution-item__avatar::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: 14px;
  width: 36px;
  height: 22px;
  border-radius: 22px 22px 18px 18px;
  background: #7bc96f;
}

.family-member-card__copy h3 {
  margin: 8px 0 6px;
  font-size: 28px;
}

.family-member-card__copy p {
  margin: 0;
  color: var(--ui-text-muted);
  line-height: 1.6;
}

.family-member-card__saving {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.family-member-card__saving strong {
  font-size: 34px;
  color: var(--ui-primary);
  line-height: 1.1;
}

.family-member-card__saving span {
  color: var(--ui-text-muted);
  font-size: 13px;
}

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

.profile-entry-card {
  display: grid;
  gap: 8px;
  min-height: 126px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(45, 176, 99, 0.12);
  color: inherit;
  text-decoration: none;
}

.profile-entry-card strong {
  font-size: 26px;
  line-height: 1.15;
}

.profile-entry-card span {
  color: var(--ui-text-muted);
  line-height: 1.6;
}

.profile-entry-card--green {
  background: linear-gradient(180deg, #fbfff9 0%, #f3faef 100%);
}

.profile-entry-card--orange {
  background: linear-gradient(180deg, #fffaf5 0%, #fff3e8 100%);
  border-color: rgba(255, 138, 61, 0.18);
}

.profile-entry-card--blue {
  background: linear-gradient(180deg, #fbfdff 0%, #edf5ff 100%);
  border-color: rgba(118, 183, 255, 0.22);
}

.family-contribution-list {
  display: grid;
  gap: 14px;
}

.family-contribution-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(18, 22, 31, 0.08);
}

.family-contribution-item__main {
  display: grid;
  gap: 6px;
}

.family-contribution-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.family-contribution-item__head strong {
  font-size: 24px;
}

.family-contribution-item__head span,
.family-contribution-item__main p {
  color: var(--ui-text-muted);
  line-height: 1.6;
  margin: 0;
}

.family-contribution-item__saving {
  font-size: 34px;
  line-height: 1.1;
  color: var(--ui-accent);
  font-weight: 800;
}

.family-empty-state {
  display: grid;
  gap: 10px;
  padding: 20px;
  border-radius: 22px;
  border: 1px dashed rgba(45, 176, 99, 0.24);
  background: linear-gradient(180deg, #fcfffa 0%, #f3faef 100%);
}

.family-empty-state__title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.family-empty-state__text {
  margin: 0;
  color: var(--ui-text-muted);
  line-height: 1.7;
}

.risk-helper-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(45, 176, 99, 0.12);
  background: linear-gradient(180deg, #fbfff9 0%, #ffffff 100%);
}

.risk-helper-card strong {
  display: block;
  font-size: 20px;
}

.risk-helper-card span {
  display: block;
  margin-top: 8px;
  color: var(--ui-text-muted);
  line-height: 1.7;
}

@media (max-width: 1100px) {
  .family-summary-card,
  .family-grid--two,
  .profile-entry-grid,
  .family-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .family-hero__top,
  .family-member-card,
  .family-contribution-item,
  .risk-helper-card {
    grid-template-columns: 1fr;
  }

  .family-summary-card__copy h2,
  .family-contribution-item__saving,
  .family-member-card__saving strong {
    font-size: 30px;
  }

  .family-member-card__saving,
  .family-contribution-item__head {
    justify-items: start;
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Phase 2.5-B P1 convergence: keep the beta UI calmer and more decision-led. */
.home-entry-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-entry-card {
  min-height: 126px;
  box-shadow: none;
}

.home-entry-card--primary {
  border-color: rgba(45, 176, 99, 0.22);
  background: #ffffff;
}

.home-entry-card--primary .entry-title {
  font-size: 17px;
}

.home-entry-card--secondary {
  min-height: auto;
  padding: 14px 16px;
  border-style: dashed;
  background: rgba(255, 255, 255, 0.82);
}

.home-entry-card--secondary .entry-icon {
  display: none;
}

.home-entry-card--secondary .entry-title {
  font-size: 14px;
}

.home-entry-card--secondary .entry-desc {
  font-size: 12px;
}

.empty-card-actions,
.alerts-empty-state__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.home-hero .hero-figure,
.estimate-hero-visual,
.weekly-summary-card__visual,
.ledger-summary-card__visual,
.alerts-summary-card__icon,
.alerts-feed-card__thumb {
  display: none;
}

.hero-visual-row,
.estimate-hero-layout,
.weekly-summary-card,
.ledger-summary-card,
.alerts-summary-card,
.alerts-feed-card {
  grid-template-columns: 1fr;
}

.home-featured-section,
.home-recommend-card,
.home-profile-card,
.home-guide-card,
.panel,
.weekly-plan-card,
.weekly-list-card,
.ledger-panel,
.alerts-category-card,
.alerts-list-card,
.alerts-subscribe-card {
  box-shadow: 0 1px 4px rgba(31, 45, 45, 0.04);
}

.featured-dish-card,
.alerts-feed-card {
  box-shadow: none;
}

.food-image-card {
  min-height: 88px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fbfff9 0%, #f3faef 100%);
}

.food-image-card span {
  color: var(--ui-primary);
  background: #ffffff;
}

.home-guide-links .hero-link {
  padding: 8px 12px;
  border-color: rgba(45, 176, 99, 0.1);
  background: transparent;
  font-size: 13px;
}

.alerts-feed-card__head h3 {
  font-size: clamp(20px, 3vw, 24px);
}

.alerts-feed-card__saving strong {
  font-size: clamp(24px, 4vw, 30px);
}

@media (max-width: 760px) {
  .home-entry-grid {
    grid-template-columns: 1fr;
  }

  .home-entry-card {
    min-height: auto;
  }

  .home-entry-card--secondary {
    padding: 12px 14px;
  }

  .empty-card-actions,
  .alerts-empty-state__actions {
    display: grid;
  }
}

/* Phase 2.5 beta readiness: typographic comfort pass. */
body {
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

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

.eyebrow,
.family-summary-card__kicker,
.market-summary-card__kicker {
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: none;
}

.subtitle,
.status,
.empty-card-text,
.home-savings-meta,
.featured-dish-source,
.compare-meta,
.estimate-result-meta,
.estimate-config-note p,
.estimate-result-note p,
.weekly-summary-card__meta,
.weekly-summary-card__breakdown,
.weekly-price-note__body p,
.alerts-feed-card__meta,
.alerts-empty-state__text,
.subscriptions-empty-state__text,
.family-empty-state__text {
  font-size: 0.9375rem;
  line-height: 1.68;
}

.app-tabbar__label,
.hero-tip,
.section-header__action,
.secondary-link-desc {
  font-size: 0.8125rem;
  line-height: 1.5;
}

h2,
.section-head h2,
.section-header h2 {
  line-height: 1.32;
  letter-spacing: -0.01em;
}

.home-entry-card .entry-title,
.secondary-link-title,
.empty-card-title,
.featured-dish-title {
  line-height: 1.32;
}

/* Phase 2.5-B visual texture pass: mobile-shell scale, tactile layers, and light scene assets. */
:root {
  --ui-surface-raised: 0 14px 30px rgba(31, 45, 45, 0.08);
  --ui-surface-float: 0 20px 46px rgba(31, 45, 45, 0.12);
  --ui-surface-inset: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  --ui-mobile-shell: 480px;
}

body {
  background:
    linear-gradient(115deg, rgba(198, 244, 215, 0.72) 0%, rgba(255, 255, 255, 0.96) 32%, rgba(255, 241, 226, 0.84) 100%),
    linear-gradient(180deg, #fbfdf9 0%, #f3f8f2 100%);
}

.shell.page-shell,
.home-shell {
  max-width: var(--ui-mobile-shell);
}

.home-shell {
  padding-left: 12px;
  padding-right: 12px;
}

.app-tabbar {
  width: min(100%, var(--ui-mobile-shell));
  border-radius: 22px 22px 0 0;
}

.page-shell > .card,
.home-shell > .card,
.page-shell > section.card,
.page-shell > article.card,
.page-shell .panel,
.zone-recommend-card,
.ledger-record-card,
.estimate-mapping-item,
.estimate-breakdown-row {
  border-color: rgba(45, 176, 99, 0.14);
  box-shadow: var(--ui-surface-raised), var(--ui-surface-inset);
}

.page-shell > .card:first-child,
.home-hero,
.zone-hero,
.ledger-hero,
.estimate-hero {
  padding: 22px;
  box-shadow: var(--ui-surface-float), var(--ui-surface-inset);
}

.estimate-hero-visual,
.ledger-summary-card__visual {
  display: block;
}

.estimate-hero-visual {
  min-height: 136px;
}

.estimate-hero-pot {
  right: 14px;
  bottom: 0;
  width: 150px;
  height: 96px;
}

.estimate-hero-coin {
  width: 52px;
  height: 52px;
  font-size: 24px;
}

.ledger-summary-card__visual {
  min-height: 142px;
}

.ledger-summary-clipboard {
  right: 34px;
  width: 104px;
  height: 126px;
  border-radius: 22px;
}

.ledger-summary-coin--large {
  right: 2px;
  width: 64px;
  height: 64px;
}

.ledger-summary-coin--small {
  right: 58px;
  width: 44px;
  height: 44px;
}

.page-shell :is(
  .estimate-hero-layout,
  .estimate-builder-grid,
  .ledger-summary-card,
  .ledger-metric-grid,
  .ledger-content-grid,
  .ledger-trend__summary,
  .zone-summary-card,
  .zone-entry-grid,
  .zone-recommend-list--grid,
  .zone-plan-strip,
  .zone-tip-grid,
  .weekly-summary-card,
  .weekly-main-grid,
  .market-summary-grid,
  .market-content-grid,
  .deals-content-grid
) {
  grid-template-columns: 1fr;
}

.page-shell :is(.zone-recommend-card, .ledger-record-card) {
  grid-template-columns: 1fr;
}

.home-featured-scroll {
  grid-template-columns: 1fr;
}

.featured-dish-card,
.zone-recommend-card,
.ledger-record-card,
.estimate-summary-tile,
.ledger-trend__pill,
.zone-entry-card,
.zone-plan-day,
.zone-tip-grid__item {
  background: linear-gradient(180deg, #ffffff 0%, #fbfffa 100%);
  transform: translateZ(0);
}

.featured-dish-card:hover,
.zone-recommend-card:hover,
.ledger-record-card:hover,
.zone-entry-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--ui-surface-float), var(--ui-surface-inset);
}

.zone-hero {
  min-height: 220px;
}

.zone-hero--student {
  background:
    radial-gradient(circle at 88% 20%, rgba(255, 199, 108, 0.18) 0, transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f5fff3 100%);
}

.zone-hero--office {
  background:
    radial-gradient(circle at 88% 20%, rgba(108, 170, 255, 0.13) 0, transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f7fff2 100%);
}

.zone-hero__top {
  position: relative;
  z-index: 2;
}

.zone-scene-decor {
  position: relative;
  z-index: 1;
  min-height: 96px;
  margin-top: 18px;
}

.scene-token {
  position: absolute;
  display: block;
  border-radius: 24px;
  box-shadow: 0 16px 28px rgba(31, 45, 45, 0.12), var(--ui-surface-inset);
}

.scene-token--book {
  left: 6px;
  bottom: 6px;
  width: 92px;
  height: 58px;
  background: linear-gradient(135deg, #8fdc73 0%, #4ab65a 100%);
  transform: rotate(-8deg);
}

.scene-token--book::before {
  content: "";
  position: absolute;
  left: 44px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: rgba(255, 255, 255, 0.72);
}

.scene-token--bowl {
  left: 112px;
  bottom: 0;
  width: 76px;
  height: 56px;
  border-radius: 18px 18px 34px 34px;
  background: linear-gradient(180deg, #fff1d0 0%, #ffbc5d 100%);
}

.scene-token--bowl::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 12px;
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
}

.scene-token--campus-card {
  right: 10px;
  bottom: 14px;
  width: 104px;
  height: 62px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f8fff5 0%, #d7f6c8 100%);
  transform: rotate(7deg);
}

.scene-token--campus-card::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 16px;
  width: 32px;
  height: 10px;
  border-radius: 999px;
  background: #48b85b;
  box-shadow: 0 18px 0 rgba(72, 184, 91, 0.28);
}

.scene-token--lunchbox {
  left: 4px;
  bottom: 0;
  width: 112px;
  height: 72px;
  border-radius: 26px;
  background: linear-gradient(180deg, #dff3bd 0%, #95c96b 100%);
}

.scene-token--lunchbox::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: -14px;
  height: 24px;
  border-radius: 999px;
  background: #eff8dc;
  transform: rotate(7deg);
}

.scene-token--cup {
  left: 132px;
  bottom: 2px;
  width: 54px;
  height: 72px;
  border-radius: 18px 18px 24px 24px;
  background: linear-gradient(180deg, #ffffff 0%, #dceffd 100%);
}

.scene-token--cup::before {
  content: "";
  position: absolute;
  right: -16px;
  top: 22px;
  width: 22px;
  height: 28px;
  border: 6px solid #c9e2f4;
  border-left: 0;
  border-radius: 0 999px 999px 0;
}

.scene-token--calendar {
  right: 8px;
  bottom: 10px;
  width: 88px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff8ef 0%, #ffd89c 100%);
  transform: rotate(8deg);
}

.scene-token--calendar::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 18px;
  height: 8px;
  border-radius: 999px;
  background: rgba(216, 103, 45, 0.58);
  box-shadow: 0 18px 0 rgba(216, 103, 45, 0.3), 0 36px 0 rgba(216, 103, 45, 0.18);
}

.estimate-mapping-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.estimate-breakdown-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ingredient-icon {
  position: relative;
  display: inline-flex;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f6fff2 0%, #dff5d4 100%);
  box-shadow: 0 10px 18px rgba(45, 176, 99, 0.12), var(--ui-surface-inset);
  overflow: hidden;
}

.ingredient-icon::before,
.ingredient-icon::after {
  content: "";
  position: absolute;
}

.ingredient-icon--tomato::before {
  left: 10px;
  top: 12px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff8a63 0%, #e45435 100%);
}

.ingredient-icon--tomato::after {
  left: 17px;
  top: 7px;
  width: 10px;
  height: 8px;
  border-radius: 9px 9px 2px 2px;
  background: #4bae50;
}

.ingredient-icon--egg::before {
  left: 10px;
  top: 8px;
  width: 22px;
  height: 28px;
  border-radius: 999px;
  background: #ffffff;
}

.ingredient-icon--egg::after {
  left: 16px;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ffc75b;
}

.ingredient-icon--root::before {
  left: 10px;
  top: 12px;
  width: 24px;
  height: 20px;
  border-radius: 999px 999px 18px 18px;
  background: linear-gradient(180deg, #ffb15e 0%, #e98033 100%);
  transform: rotate(-10deg);
}

.ingredient-icon--root::after {
  left: 19px;
  top: 6px;
  width: 8px;
  height: 12px;
  border-radius: 999px 999px 0 0;
  background: #65b956;
}

.ingredient-icon--greens::before {
  left: 8px;
  top: 10px;
  width: 26px;
  height: 24px;
  border-radius: 26px 26px 8px 26px;
  background: linear-gradient(135deg, #98db6d 0%, #3fb45d 100%);
  transform: rotate(-18deg);
}

.ingredient-icon--greens::after {
  left: 19px;
  top: 11px;
  width: 18px;
  height: 22px;
  border-radius: 26px 26px 26px 8px;
  background: rgba(77, 180, 84, 0.72);
  transform: rotate(22deg);
}

.ingredient-icon--protein::before {
  left: 8px;
  top: 13px;
  width: 27px;
  height: 20px;
  border-radius: 18px 22px 18px 20px;
  background: linear-gradient(135deg, #ff9f72 0%, #c95a3e 100%);
  transform: rotate(-12deg);
}

.ingredient-icon--protein::after {
  left: 17px;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 234, 207, 0.82);
}

.ingredient-icon--staple::before {
  left: 8px;
  right: 8px;
  bottom: 9px;
  height: 18px;
  border-radius: 8px 8px 18px 18px;
  background: linear-gradient(180deg, #fff7df 0%, #e3c886 100%);
}

.ingredient-icon--staple::after {
  left: 13px;
  top: 12px;
  width: 16px;
  height: 10px;
  border-radius: 999px;
  background: #ffffff;
}

.ingredient-icon--tofu::before {
  left: 10px;
  top: 11px;
  width: 23px;
  height: 23px;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff9db 0%, #efd58e 100%);
  transform: rotate(7deg);
}

.ingredient-icon--tofu::after {
  left: 15px;
  top: 16px;
  width: 13px;
  height: 2px;
  border-radius: 999px;
  background: rgba(138, 111, 52, 0.28);
  box-shadow: 0 6px 0 rgba(138, 111, 52, 0.2);
}

.ingredient-icon--default::before {
  left: 9px;
  top: 10px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #dff2d6 100%);
  border: 2px solid rgba(45, 176, 99, 0.24);
}

.ingredient-icon--default::after {
  left: 17px;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(45, 176, 99, 0.42);
}

@media (max-width: 520px) {
  .shell.page-shell,
  .home-shell {
    padding-left: 10px;
    padding-right: 10px;
  }

  .page-shell > .card:first-child,
  .home-hero,
  .zone-hero,
  .ledger-hero,
  .estimate-hero {
    padding: 18px;
  }

  .zone-scene-decor {
    min-height: 82px;
  }

  .zone-summary-card__visual {
    min-height: 118px;
    margin-top: 12px;
    opacity: 0.72;
    pointer-events: none;
  }

  .zone-summary-card__visual--student .zone-summary-board {
    right: 10px;
    top: 4px;
    width: 112px;
    height: 118px;
  }

  .zone-summary-card__visual--student .zone-summary-coin {
    right: 2px;
    bottom: 2px;
    width: 64px;
    height: 64px;
  }

  .zone-summary-card__visual--office .zone-lunch-box {
    right: 0;
    bottom: 0;
    width: 150px;
    height: 92px;
  }

  .zone-summary-card__visual--office .zone-lunch-box::before {
    top: -12px;
    height: 28px;
  }

  .zone-summary-card__visual--office .zone-lunch-box span {
    bottom: 14px;
  }

  .zone-summary-card__visual--office .zone-lunch-box span:nth-child(1) {
    left: 16px;
    width: 52px;
    height: 54px;
  }

  .zone-summary-card__visual--office .zone-lunch-box span:nth-child(2) {
    left: 76px;
    width: 28px;
    height: 45px;
  }

  .zone-summary-card__visual--office .zone-lunch-box span:nth-child(3) {
    right: 14px;
    width: 32px;
    height: 52px;
  }

  .ledger-summary-card__visual {
    min-height: 118px;
    margin-top: -8px;
    opacity: 0.82;
  }

  .scene-token--campus-card,
  .scene-token--calendar {
    right: 0;
  }

  .estimate-mapping-item,
  .estimate-breakdown-head,
  .estimate-breakdown-meta {
    grid-template-columns: 1fr;
  }

  .estimate-mapping-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .estimate-mapping-item .actions {
    grid-column: 1 / -1;
    justify-self: stretch;
  }
}

/* Reference-image lock pass: this final layer intentionally wins over earlier beta styles. */
body.has-app-tabbar {
  background:
    radial-gradient(circle at -18% 10%, rgba(139, 226, 166, 0.24) 0, transparent 34%),
    radial-gradient(circle at 116% 16%, rgba(255, 221, 178, 0.3) 0, transparent 31%),
    linear-gradient(180deg, #fbfff8 0%, #f2f7f2 46%, #fbfff8 100%) !important;
  color: #151b18;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.has-app-tabbar .shell {
  width: min(100vw, 430px) !important;
  max-width: 430px !important;
  min-height: 100vh;
  margin: 0 auto !important;
  padding: 76px 14px 92px !important;
  gap: 12px !important;
  overflow: hidden;
}

body.has-app-tabbar .home-shell {
  padding-top: 50px !important;
}

.has-app-tabbar :is(.card, .panel, section.card, article.card) {
  border: 1px solid rgba(49, 139, 65, 0.13) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 10px 26px rgba(45, 61, 47, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

.has-app-tabbar :is(.section-header h2, .section-head h2) {
  font-size: 20px !important;
  line-height: 1.18 !important;
}

.has-app-tabbar .subtitle,
.has-app-tabbar .compact-subtitle,
.has-app-tabbar .status,
.has-app-tabbar .empty-card-text {
  color: #6e747b !important;
}

.has-app-tabbar .app-tabbar {
  width: min(100vw, 430px) !important;
  height: 74px;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -10px 26px rgba(27, 50, 36, 0.08);
}

.has-app-tabbar .app-tabbar__icon svg {
  stroke-width: 2.35;
}

.has-app-tabbar .shell::before {
  top: 18px;
  left: 30px;
  color: #0f1612;
  font-size: 17px;
  font-weight: 900;
}

.has-app-tabbar .shell::after {
  top: 38px;
  right: 14px;
  height: 40px;
  padding: 0 15px;
  border-color: rgba(22, 30, 24, 0.12);
  color: #050706;
  font-size: 21px;
  box-shadow: 0 5px 16px rgba(28, 38, 30, 0.06);
}

.has-app-tabbar .home-hero {
  padding: 0 !important;
  overflow: visible;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

.has-app-tabbar .home-hero .brand-mark {
  width: 31px;
  height: 31px;
  border-radius: 9px;
  box-shadow: 0 10px 22px rgba(76, 191, 70, 0.24);
}

.has-app-tabbar .home-hero .eyebrow {
  margin-top: 2px;
  color: #121916 !important;
  font-size: 18px !important;
  font-weight: 900;
  text-transform: none;
}

.has-app-tabbar .home-hero h1 {
  max-width: 302px;
  margin: 34px 0 0;
  font-size: 34px !important;
  line-height: 1.18 !important;
  letter-spacing: -0.04em !important;
}

.has-app-tabbar .home-hero h1 span {
  color: #ff6a19 !important;
}

.has-app-tabbar .home-hero .subtitle {
  max-width: 270px;
  margin: 9px 0 0;
  font-size: 16px;
  line-height: 1.55;
}

.has-app-tabbar .hero-figure {
  right: 4px !important;
  top: 116px !important;
  width: 132px;
  height: 86px;
  opacity: 0.95;
  transform: none !important;
}

.has-app-tabbar .home-search-row {
  position: relative;
  height: 54px;
  grid-template-columns: minmax(0, 1fr) 94px !important;
  gap: 0 !important;
  margin-top: 20px;
  padding: 4px 5px 4px 48px;
  border: 1px solid rgba(73, 180, 70, 0.28) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 12px 24px rgba(78, 170, 75, 0.1) !important;
}

.has-app-tabbar .home-search-row::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 17px;
  width: 17px;
  height: 17px;
  border: 3px solid #8b9096;
  border-radius: 999px;
  box-sizing: border-box;
}

.has-app-tabbar .home-search-row::after {
  content: "";
  position: absolute;
  left: 37px;
  top: 33px;
  width: 10px;
  height: 3px;
  border-radius: 999px;
  background: #8b9096;
  transform: rotate(45deg);
}

.has-app-tabbar .home-search-row input {
  height: 44px;
  font-size: 16px;
}

.has-app-tabbar .home-search-row button {
  min-height: 44px;
  padding: 0 18px;
  font-size: 17px;
  box-shadow: 0 8px 18px rgba(53, 176, 67, 0.22);
}

.has-app-tabbar .hero-tip {
  margin-top: 12px;
  color: #139342 !important;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.has-app-tabbar .home-entry-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 9px !important;
  margin-top: 18px !important;
}

.has-app-tabbar .home-entry-card,
.has-app-tabbar .home-entry-card--primary,
.has-app-tabbar .home-entry-card--secondary {
  min-height: 124px !important;
  padding: 11px 8px 10px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: #121916 !important;
  text-align: center;
  box-shadow: 0 9px 22px rgba(38, 55, 42, 0.1), inset 0 0 0 1px rgba(29, 45, 35, 0.06) !important;
}

.has-app-tabbar .home-entry-card .entry-title {
  color: #121916 !important;
  font-size: 16px !important;
  line-height: 1.2;
}

.has-app-tabbar .home-entry-card .entry-desc {
  color: #747a80 !important;
  font-size: 12px !important;
  line-height: 1.34;
}

.has-app-tabbar .home-entry-card .entry-icon {
  position: relative;
  display: block !important;
  width: 50px !important;
  height: 50px !important;
  margin: 0 auto 7px !important;
  border-radius: 17px !important;
  background: linear-gradient(180deg, #f7fff4 0%, #dff4d8 100%) !important;
  box-shadow: inset 0 0 0 1px rgba(64, 177, 75, 0.14);
}

.has-app-tabbar .entry-icon::before,
.has-app-tabbar .entry-icon::after {
  content: "";
  position: absolute;
}

.has-app-tabbar .entry-icon--search::before {
  left: 13px;
  top: 12px;
  width: 20px;
  height: 20px;
  border: 4px solid #45b850;
  border-radius: 999px;
}

.has-app-tabbar .entry-icon--search::after {
  left: 30px;
  top: 31px;
  width: 12px;
  height: 4px;
  border-radius: 999px;
  background: #45b850;
  transform: rotate(45deg);
}

.has-app-tabbar .entry-icon--ingredients::before {
  left: 10px;
  right: 10px;
  bottom: 10px;
  height: 22px;
  border-radius: 8px 8px 22px 22px;
  background: linear-gradient(180deg, #fff8dc 0%, #8bd169 100%);
}

.has-app-tabbar .entry-icon--ingredients::after {
  left: 15px;
  top: 12px;
  width: 22px;
  height: 16px;
  border-radius: 999px;
  background: #7dd05e;
  box-shadow: 10px 5px 0 rgba(255, 166, 48, 0.8);
}

.has-app-tabbar .entry-icon--budget {
  background: linear-gradient(180deg, #fff7e7 0%, #ffe0aa 100%) !important;
}

.has-app-tabbar .entry-icon--budget::before {
  left: 12px;
  top: 9px;
  width: 26px;
  height: 32px;
  border-radius: 7px;
  background: #ffab36;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.62);
}

.has-app-tabbar .entry-icon--budget::after {
  left: 17px;
  top: 24px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 10px 0 0 #fff, 0 9px 0 #fff, 10px 9px 0 #fff;
}

.has-app-tabbar .entry-icon--weekly::before {
  left: 10px;
  top: 12px;
  width: 30px;
  height: 28px;
  border-radius: 8px;
  background: #dff4d8;
  border-top: 8px solid #5ac45a;
}

.has-app-tabbar .entry-icon--weekly::after {
  left: 18px;
  top: 25px;
  width: 16px;
  height: 8px;
  border-left: 4px solid #5ac45a;
  border-bottom: 4px solid #5ac45a;
  transform: rotate(-45deg);
}

.has-app-tabbar .home-savings-card {
  min-height: 118px;
  padding: 17px 150px 17px 22px !important;
  border-color: rgba(76, 183, 73, 0.34) !important;
  background: linear-gradient(105deg, #f9fff5 0%, #ebfbe4 55%, #fbfff7 100%) !important;
}

.has-app-tabbar .home-savings-amount strong::before {
  content: "¥";
  margin-right: 2px;
  font-size: 0.32em;
}

.has-app-tabbar .home-savings-card::after {
  right: 32px !important;
  top: 26px;
  width: 88px !important;
  height: 68px !important;
  border-radius: 42px 42px 36px 36px !important;
  background:
    radial-gradient(circle at 35% 44%, #ffbf4a 0 27%, transparent 29%),
    linear-gradient(180deg, #ffd88f 0%, #ffb538 100%) !important;
  box-shadow: 0 14px 28px rgba(255, 164, 32, 0.18);
}

.has-app-tabbar .home-featured-section {
  padding: 18px 14px 16px !important;
}

.has-app-tabbar .home-featured-scroll {
  grid-auto-columns: 92px !important;
  gap: 10px !important;
  padding: 0 0 4px !important;
}

.has-app-tabbar .featured-dish-card {
  width: 92px !important;
  min-width: 92px !important;
  border-radius: 12px !important;
  overflow: hidden;
  background: #fff !important;
  box-shadow: inset 0 0 0 1px rgba(30, 45, 35, 0.08);
}

.has-app-tabbar .featured-dish-card .food-image-card {
  height: 66px !important;
  border-radius: 0 !important;
}

.has-app-tabbar .featured-dish-body {
  padding: 7px 7px 8px !important;
}

.has-app-tabbar .featured-dish-title {
  min-height: 32px !important;
  font-size: 12px !important;
}

.has-app-tabbar .featured-dish-meta {
  font-size: 11px !important;
}

.has-app-tabbar .featured-dish-saving {
  display: inline-flex;
  margin-top: 5px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #ff6a19 !important;
  background: #fff1df;
  font-size: 14px !important;
}

.has-app-tabbar .home-side-stack {
  display: grid !important;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr) !important;
  gap: 10px !important;
  align-items: stretch;
}

.has-app-tabbar .home-recommend-card {
  min-height: 132px;
  padding: 12px !important;
}

.has-app-tabbar .home-recommend-layout {
  grid-template-columns: 82px minmax(0, 1fr) !important;
  gap: 10px !important;
}

.has-app-tabbar .home-recommend-layout .food-image-card {
  width: 82px;
  height: 82px !important;
  border-radius: 999px !important;
}

.has-app-tabbar .home-recommend-body .section-header {
  align-items: start;
}

.has-app-tabbar .home-recommend-body h2 {
  font-size: 18px !important;
}

.has-app-tabbar .home-recommend-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 5px;
}

.has-app-tabbar .home-recommend-source,
.has-app-tabbar .home-recommend-body .tag-row,
.has-app-tabbar .home-recommend-body .inline-actions {
  display: none !important;
}

.has-app-tabbar .secondary-link-card {
  min-height: 64px !important;
  padding: 11px 12px !important;
}

.has-app-tabbar .secondary-link-title {
  font-size: 15px !important;
}

.has-app-tabbar .secondary-link-desc {
  font-size: 11px !important;
}

.has-app-tabbar .home-results-grid {
  margin-top: 2px;
}

.has-app-tabbar .zone-page-shell,
.has-app-tabbar .ledger-page-shell,
.has-app-tabbar .estimate-page-shell {
  padding-top: 76px !important;
}

.has-app-tabbar .zone-hero,
.has-app-tabbar .ledger-hero,
.has-app-tabbar .estimate-hero {
  min-height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible;
}

.has-app-tabbar .zone-hero__top,
.has-app-tabbar .ledger-hero__top,
.has-app-tabbar .estimate-hero-top {
  position: relative;
  min-height: 40px;
  justify-content: center !important;
  text-align: center;
}

.has-app-tabbar :is(.zone-hero, .ledger-hero, .estimate-hero) :is(.eyebrow, .subtitle),
.has-app-tabbar .zone-hero .admin-link,
.has-app-tabbar .zone-scene-decor {
  display: none !important;
}

.has-app-tabbar .zone-hero h1,
.has-app-tabbar .ledger-hero h1,
.has-app-tabbar .estimate-hero-top .eyebrow {
  margin: 0 !important;
  color: #101613 !important;
  font-size: 23px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  text-transform: none;
}

.has-app-tabbar .zone-hero::before,
.has-app-tabbar .estimate-hero::before {
  content: "‹";
  position: absolute;
  left: 0;
  top: -5px;
  z-index: 3;
  color: #0c100e;
  font-size: 39px;
  font-weight: 800;
  line-height: 1;
}

.has-app-tabbar .ledger-hero__share {
  position: absolute !important;
  top: -4px !important;
  right: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #151b18 !important;
  font-size: 14px !important;
}

.has-app-tabbar .zone-summary-card,
.has-app-tabbar .ledger-summary-card {
  position: relative;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 132px !important;
  min-height: 154px;
  margin-top: 10px;
  padding: 18px !important;
  overflow: hidden;
  border-color: rgba(63, 179, 74, 0.32) !important;
  background:
    radial-gradient(circle at 82% 42%, rgba(173, 240, 124, 0.48) 0, transparent 38%),
    linear-gradient(105deg, #fbfff6 0%, #e7fbdf 100%) !important;
}

.has-app-tabbar .zone-summary-card__copy,
.has-app-tabbar .ledger-summary-card__copy {
  position: relative;
  z-index: 2;
}

.has-app-tabbar .zone-summary-card__kicker,
.has-app-tabbar .ledger-summary-card__kicker {
  color: #132019 !important;
  font-size: 20px !important;
  font-weight: 900;
}

.has-app-tabbar .zone-summary-card__copy h2,
.has-app-tabbar .ledger-summary-card__copy h2 {
  color: #ff6413 !important;
  font-size: 59px !important;
  line-height: 0.92 !important;
  letter-spacing: -0.05em !important;
}

.has-app-tabbar .zone-summary-card__meta,
.has-app-tabbar .ledger-summary-card__trend {
  max-width: 235px;
  color: #4d5550 !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
}

.has-app-tabbar .zone-summary-card__profile,
.has-app-tabbar .zone-profile-chips,
.has-app-tabbar .ledger-summary-card__profile {
  display: none !important;
}

.has-app-tabbar .zone-summary-card__visual,
.has-app-tabbar .ledger-summary-card__visual {
  display: block !important;
  min-height: 128px !important;
  margin: 0 !important;
  opacity: 0.95 !important;
}

.has-app-tabbar .zone-entry-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.has-app-tabbar .zone-entry-card {
  min-height: 74px !important;
  padding: 13px 12px 12px 48px !important;
  border-radius: 14px !important;
  text-align: left;
}

.has-app-tabbar .zone-entry-card::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 50%;
  width: 25px;
  height: 25px;
  border-radius: 8px;
  background: linear-gradient(180deg, #8dda71 0%, #48b750 100%);
  transform: translateY(-50%);
  box-shadow: 0 7px 16px rgba(72, 183, 80, 0.16);
}

.has-app-tabbar .zone-entry-card strong {
  font-size: 15px !important;
  line-height: 1.18;
}

.has-app-tabbar .zone-entry-card span {
  margin-top: 3px;
  color: #6c7378 !important;
  font-size: 12px !important;
}

.has-app-tabbar .zone-list-card,
.has-app-tabbar .zone-tip-card,
.has-app-tabbar .zone-plan-card {
  padding: 16px !important;
}

.has-app-tabbar .zone-recommend-list {
  gap: 10px !important;
}

.has-app-tabbar .zone-recommend-card {
  display: grid !important;
  grid-template-columns: 112px minmax(0, 1fr) !important;
  gap: 12px !important;
  padding: 10px !important;
  border: 1px solid rgba(28, 44, 34, 0.08) !important;
  border-radius: 13px !important;
  background: #fff !important;
}

.has-app-tabbar .zone-recommend-card .food-image-card {
  width: 112px;
  height: 86px !important;
  border-radius: 10px !important;
}

.has-app-tabbar .zone-recommend-card__head {
  align-items: start !important;
  gap: 8px;
}

.has-app-tabbar .zone-recommend-card h3 {
  font-size: 17px !important;
}

.has-app-tabbar .zone-recommend-card__stats {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 5px;
}

.has-app-tabbar .zone-recommend-card__actions {
  grid-column: 1 / -1 !important;
  justify-self: stretch;
}

.has-app-tabbar .zone-recommend-card__actions .secondary-button {
  display: block;
  min-height: 36px;
  padding: 8px 12px;
  text-align: center;
}

.has-app-tabbar .ledger-summary-card__range {
  color: #4b514e !important;
  font-size: 17px !important;
  font-weight: 700;
}

.has-app-tabbar .ledger-range-tabs {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 8px;
  padding: 8px;
  border-radius: 14px !important;
  background: #fff !important;
}

.has-app-tabbar .ledger-range-tabs__btn {
  min-height: 44px;
  border-radius: 999px !important;
  color: #6e747b !important;
  background: transparent !important;
  box-shadow: none !important;
}

.has-app-tabbar .ledger-range-tabs__btn.is-active {
  color: #fff !important;
  background: linear-gradient(180deg, #6ecf58 0%, #39ad43 100%) !important;
  box-shadow: 0 9px 18px rgba(62, 180, 70, 0.18) !important;
}

.has-app-tabbar .ledger-metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.has-app-tabbar .ledger-metric-card {
  min-height: 112px !important;
  padding: 11px 6px !important;
}

.has-app-tabbar .ledger-panel {
  padding: 16px !important;
}

.has-app-tabbar .ledger-empty-state,
.has-app-tabbar .estimate-result-empty,
.has-app-tabbar .estimate-selected-empty,
.has-app-tabbar .zone-empty-state {
  border: 1px dashed rgba(62, 184, 78, 0.28) !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, #fbfff8 0%, #f5fff1 100%) !important;
}

.has-app-tabbar .estimate-hero-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 136px !important;
  min-height: 150px;
  margin-top: 8px;
  padding: 20px 18px !important;
  border-radius: 0 !important;
  background:
    radial-gradient(circle at 92% 28%, rgba(255, 200, 82, 0.22) 0, transparent 28%),
    linear-gradient(105deg, #f8fff5 0%, #e7f9df 100%) !important;
  box-shadow: none !important;
}

.has-app-tabbar .estimate-hero-copy h1 {
  max-width: 210px;
  color: #2b953b !important;
  font-size: 28px !important;
}

.has-app-tabbar .estimate-hero-copy .subtitle {
  max-width: 235px;
  color: #222b25 !important;
  font-size: 16px !important;
  line-height: 1.55;
}

.has-app-tabbar .estimate-hero-visual {
  display: block !important;
  min-height: 126px !important;
}

.has-app-tabbar .estimate-card {
  padding: 16px !important;
}

.has-app-tabbar .estimate-line-form,
.has-app-tabbar .estimate-config-grid {
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
}

.has-app-tabbar .estimate-line-form label:first-child,
.has-app-tabbar .estimate-field--wide {
  grid-column: 1 / -1 !important;
}

.has-app-tabbar .estimate-selection-body .mapping-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.has-app-tabbar .estimate-mapping-item {
  display: grid !important;
  grid-template-columns: 1fr !important;
  justify-items: center;
  gap: 6px !important;
  padding: 10px 6px !important;
  border-radius: 14px !important;
  text-align: center;
}

.has-app-tabbar .estimate-mapping-item .actions {
  grid-column: auto !important;
  width: 100%;
}

.has-app-tabbar .estimate-mapping-item .actions button {
  min-height: 30px;
  padding: 6px 9px;
  font-size: 12px;
}

.has-app-tabbar .estimate-result-card {
  padding-bottom: 16px !important;
}

.has-app-tabbar .estimate-result-highlight {
  border-color: #35a947 !important;
  border-radius: 16px !important;
}

.has-app-tabbar .estimate-result-saving {
  color: #ff6413 !important;
  font-size: 44px !important;
}

@media (max-width: 390px) {
  .has-app-tabbar .home-entry-grid {
    gap: 7px !important;
  }

  .has-app-tabbar .home-entry-card {
    min-height: 118px !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
  }

  .has-app-tabbar .home-entry-card .entry-title {
    font-size: 14px !important;
  }

  .has-app-tabbar .home-side-stack {
    grid-template-columns: 1fr !important;
  }

  .has-app-tabbar .zone-summary-card,
  .has-app-tabbar .ledger-summary-card {
    grid-template-columns: minmax(0, 1fr) 98px !important;
  }

  .has-app-tabbar .zone-summary-card__copy h2,
  .has-app-tabbar .ledger-summary-card__copy h2 {
    font-size: 49px !important;
  }

  .has-app-tabbar .zone-recommend-card {
    grid-template-columns: 96px minmax(0, 1fr) !important;
  }

  .has-app-tabbar .zone-recommend-card .food-image-card {
    width: 96px;
  }
}

/* Reference-image lock follow-up: fix mobile overflow and header clipping found in screenshots. */
.has-app-tabbar .home-entry-grid {
  display: grid !important;
  width: 100% !important;
  overflow: visible !important;
}

.has-app-tabbar .home-entry-grid > * {
  min-width: 0 !important;
  width: 100% !important;
}

.has-app-tabbar .home-entry-card {
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.has-app-tabbar .home-entry-card .entry-title,
.has-app-tabbar .home-entry-card .entry-desc {
  min-width: 0;
  overflow-wrap: anywhere;
}

.has-app-tabbar .home-side-stack {
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.55fr) !important;
}

.has-app-tabbar .home-recommend-layout {
  grid-template-columns: 74px minmax(0, 1fr) !important;
}

.has-app-tabbar .home-recommend-layout .food-image-card {
  width: 74px !important;
  height: 74px !important;
}

.has-app-tabbar .home-recommend-stats {
  display: flex !important;
  gap: 0 !important;
  margin-top: 8px;
  overflow: hidden;
}

.has-app-tabbar .home-recommend-stats .mini-stat {
  flex: 1 1 0;
  min-width: 0;
  padding: 0 5px !important;
  border-radius: 0 !important;
  border-right: 1px solid rgba(25, 35, 28, 0.1);
  background: transparent !important;
}

.has-app-tabbar .home-recommend-stats .mini-stat:last-child {
  border-right: 0;
}

.has-app-tabbar .home-recommend-stats .mini-stat span {
  display: block;
  color: #80858a !important;
  font-size: 10px !important;
  line-height: 1.1;
  white-space: nowrap;
}

.has-app-tabbar .home-recommend-stats .mini-stat strong {
  display: block;
  margin-top: 3px;
  font-size: 14px !important;
  line-height: 1.1;
  white-space: nowrap;
}

.has-app-tabbar .zone-page-shell .zone-hero.card,
.has-app-tabbar .ledger-page-shell .ledger-hero.card,
.has-app-tabbar .estimate-page-shell .estimate-hero.card {
  border: 0 !important;
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}

.has-app-tabbar .estimate-hero-top .eyebrow {
  display: block !important;
}

.has-app-tabbar .estimate-hero-layout {
  grid-template-columns: minmax(0, 1fr) 122px !important;
}

.has-app-tabbar .estimate-hero-copy h1 {
  max-width: 185px !important;
  font-size: 24px !important;
  line-height: 1.18 !important;
}

.has-app-tabbar .estimate-hero-copy .subtitle {
  max-width: 210px !important;
  font-size: 15px !important;
}

.has-app-tabbar .estimate-hero-pot {
  right: 2px !important;
  width: 128px !important;
  height: 76px !important;
}

.has-app-tabbar .estimate-hero-coin {
  left: -20px !important;
  width: 46px !important;
  height: 46px !important;
}

@media (max-width: 430px) {
  .has-app-tabbar .home-entry-card {
    min-height: 118px !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  .has-app-tabbar .entry-icon {
    width: 44px !important;
    height: 44px !important;
  }

  .has-app-tabbar .home-entry-card .entry-title {
    font-size: 14px !important;
  }

  .has-app-tabbar .home-entry-card .entry-desc {
    font-size: 11px !important;
  }
}

.has-app-tabbar .home-entry-grid {
  grid-template-columns: repeat(4, 84px) !important;
  justify-content: space-between !important;
  gap: 0 !important;
  width: calc(100% - 28px) !important;
}

@media (max-width: 390px) {
  .has-app-tabbar .home-entry-grid {
    grid-template-columns: repeat(4, 74px) !important;
  }
}
