:root {
  --bg: #f6f8f3;
  --card: #ffffff;
  --ink: #172016;
  --muted: #687366;
  --line: #e6ece1;
  --green: #12a24a;
  --green-dark: #096331;
  --green-soft: #ecf8ef;
  --blue: #1d6f92;
  --blue-soft: #e6f0f7;
  --gold: #a66a14;
  --gold-soft: #fff6dc;
  --red: #d94c3f;
  --red-soft: #fff0ed;
  --surface-soft: #f9fbf6;
  --shadow: 0 12px 28px rgba(28, 48, 32, 0.10);
  --shadow-soft: 0 6px 18px rgba(28, 48, 32, 0.07);
  --radius: 12px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #dfe8da;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  letter-spacing: 0;
}

button {
  font: inherit;
  cursor: pointer;
}

button,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid rgba(18, 162, 74, 0.42);
  outline-offset: 2px;
}

.icon {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-shell {
  width: min(430px, 100vw);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04), 0 20px 60px rgba(0, 0, 0, 0.18);
}

.screen {
  min-height: 100vh;
  padding: 16px 14px 92px;
}

.dingdong-screen {
  padding-top: 0;
  padding-bottom: 158px;
  background:
    linear-gradient(180deg, #eaf8ec 0, #f6f8f3 184px),
    var(--bg);
}

.hero {
  background: linear-gradient(135deg, #1f6b43, #7da947);
  color: white;
  border-radius: 0 0 22px 22px;
  margin: -16px -14px 14px;
  padding: 18px 18px 22px;
}

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

.eyebrow {
  margin: 0 0 4px;
  font-size: 12px;
  opacity: 0.84;
  font-weight: 800;
}

.hero h1 {
  margin: 0;
  font-size: 25px;
  line-height: 1.2;
}

.hero p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
  font-size: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.mini-action {
  border: 1px solid rgba(255, 255, 255, 0.34);
  min-height: 30px;
  border-radius: 8px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.14);
  color: white;
  font-size: 12px;
  font-weight: 850;
}

.mini-action.light {
  background: rgba(255, 255, 255, 0.86);
  color: var(--green-dark);
  border-color: rgba(255, 255, 255, 0.8);
}

.market-header {
  margin: 0;
  padding: 12px 0 10px;
  background:
    radial-gradient(circle at 88% 0, rgba(252, 224, 121, 0.5), transparent 28%),
    linear-gradient(180deg, #dff5e4, #f6f8f3);
  color: var(--ink);
}

.market-shell {
  width: min(402px, calc(100vw - 28px));
  margin: 0 auto;
}

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

.location-copy {
  min-width: 0;
}

.location-row h1 {
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: 0;
}

.delivery-capsule {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  margin-top: 7px;
  padding: 0 9px;
  border: 1px solid rgba(18, 162, 74, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(46, 101, 52, 0.08);
}

.delivery-capsule .icon {
  width: 14px;
  height: 14px;
}

.reset-action {
  min-width: 52px;
  min-height: 36px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(32, 88, 42, 0.08);
}

.search-bar {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  align-items: center;
  min-height: 46px;
  margin-top: 12px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  color: #7b8778;
  border: 1px solid rgba(16, 104, 48, 0.08);
  box-shadow: 0 10px 22px rgba(39, 76, 41, 0.10);
}

.search-icon {
  display: inline-flex;
  align-items: center;
}

.search-bar input {
  border: 0;
  min-height: 44px;
  padding: 0;
  outline: 0;
  font-size: 14px;
}

.search-bar input::placeholder {
  color: #8c9688;
}

.promise-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
}

.promise-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(18, 162, 74, 0.08);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.market-main-card {
  margin-top: 2px;
  padding: 10px;
  border: 1px solid rgba(22, 99, 48, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.coupon-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 11px 12px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 248, 222, 0.96), rgba(255, 239, 189, 0.92));
  border: 1px solid rgba(223, 179, 92, 0.36);
}

.coupon-strip strong,
.coupon-strip span {
  display: block;
}

.coupon-strip span {
  color: #8a6426;
  font-size: 12px;
}

.coupon-strip button {
  border: 0;
  min-height: 36px;
  border-radius: 999px;
  padding: 0 14px;
  background: #16231a;
  color: #fff;
  font-weight: 900;
}

.category-rail {
  display: flex;
  gap: 8px;
  margin: 9px -10px -2px;
  padding: 0 10px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-rail::-webkit-scrollbar,
.promise-row::-webkit-scrollbar,
.segmented::-webkit-scrollbar {
  display: none;
}

.quick-entry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin: 9px 0 8px;
}

.quick-entry .quick-card {
  min-height: 78px;
  padding: 8px 4px 7px;
  border-radius: 12px;
  background: var(--surface-soft);
  border: 1px solid rgba(17, 89, 40, 0.06);
  text-align: center;
  box-shadow: none;
}

.quick-entry span,
.quick-entry strong,
.quick-entry em {
  display: block;
}

.quick-entry span {
  margin: 0 auto 6px;
}

.quick-entry strong {
  font-size: 12px;
  line-height: 1.2;
}

.quick-entry em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.quick-icon,
.category-mark {
  display: block;
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #e6f7e9;
}

.quick-icon::before,
.category-mark::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 999px;
  background: currentColor;
  color: var(--green);
}

.quick-leaf,
.category-veg,
.category-farm {
  color: #12a24a;
  background: #e9f8ed;
}

.quick-clock,
.category-egg {
  color: #d89b18;
  background: #fff5d7;
}

.quick-shield,
.category-all {
  color: #1d6f92;
  background: #e8f4fa;
}

.quick-gift,
.category-fruit,
.category-gift {
  color: #e15c4f;
  background: #fff0ed;
}

.category-rail button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(16, 104, 48, 0.08);
  min-width: auto;
  min-height: 40px;
  border-radius: 999px;
  padding: 0 12px 0 8px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.category-rail button span {
  width: 22px;
  height: 22px;
  border-radius: 8px;
}

.category-rail button.active {
  border-color: rgba(18, 162, 74, 0.32);
  background: #e8f8ec;
  color: var(--green-dark);
  box-shadow: inset 0 0 0 1px rgba(18, 162, 74, 0.08);
}

.ding-title {
  margin-top: 16px;
}

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

.market-product {
  min-width: 0;
  background: #fff;
  border: 1px solid rgba(29, 68, 34, 0.08);
  border-radius: 14px;
  padding: 8px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.market-product .product-art {
  min-height: 118px;
  margin-bottom: 10px;
  border-radius: 12px;
}

.fresh-label {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 5px 12px rgba(36, 77, 42, 0.08);
}

.product-shape {
  position: absolute;
  right: 17px;
  bottom: 14px;
  width: 48px;
  height: 48px;
  border-radius: 24px 24px 18px 24px;
  background:
    radial-gradient(circle at 34% 32%, rgba(255, 255, 255, 0.78) 0 16%, transparent 17%),
    rgba(255, 255, 255, 0.34);
  transform: rotate(-10deg);
}

.product-body {
  min-width: 0;
}

.market-product .product-name {
  display: -webkit-box;
  min-height: 40px;
  margin-bottom: 4px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 15px;
  font-weight: 900;
}

.product-meta-row {
  display: flex;
  align-items: center;
  min-height: 20px;
  color: #4e5b4b;
  font-size: 12px;
  line-height: 1.35;
}

.origin-line {
  min-height: 34px;
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.product-tags {
  min-height: 25px;
  margin-top: 6px;
}

.buy-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px;
  margin-top: 7px;
}

.price-block {
  min-width: 0;
}

.buy-row .price {
  font-size: 18px;
  letter-spacing: 0;
}

.price small {
  margin-left: 1px;
  color: #9a4d45;
  font-size: 11px;
  font-weight: 800;
}

.add-round {
  border: 0;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #19ba57, var(--green));
  color: #fff;
  box-shadow: 0 8px 16px rgba(18, 162, 74, 0.28);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease);
}

.add-round:active {
  transform: translateY(1px);
  box-shadow: 0 5px 10px rgba(18, 162, 74, 0.24);
}

.checkout-panel {
  border-color: #d8ead8;
}

.floating-cart {
  position: fixed;
  left: 50%;
  bottom: 76px;
  transform: translateX(-50%);
  width: min(390px, calc(100vw - 28px));
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 9px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid rgba(37, 114, 71, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(37, 54, 42, 0.16);
  backdrop-filter: blur(12px);
  z-index: 11;
}

.floating-cart.is-compact {
  bottom: 72px;
  width: min(390px, calc(100vw - 24px));
  grid-template-columns: 46px 1fr auto;
  gap: 8px;
  min-height: 58px;
  padding: 7px;
  border: 0;
  border-radius: 999px;
  background: #172018;
  color: #fff;
  box-shadow: 0 16px 36px rgba(10, 27, 14, 0.30);
}

.cart-open-zone,
.cart-info-zone {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.cart-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #243126;
  color: #fff;
  font-weight: 950;
}

.cart-badge b {
  position: absolute;
  right: 1px;
  top: 0;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  padding: 0 4px;
  background: #ffef72;
  color: #172018;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}

.floating-cart strong,
.floating-cart span {
  display: block;
}

.floating-cart span {
  color: var(--muted);
  font-size: 11px;
}

.floating-cart button {
  border: 0;
  min-height: 38px;
  border-radius: 999px;
  padding: 0 16px;
  background: var(--green);
  color: #fff;
  font-weight: 900;
}

.floating-cart button:disabled {
  background: #4d574f;
  color: #b9c1ba;
}

.floating-cart .cart-open-zone,
.floating-cart .cart-info-zone {
  min-height: auto;
  border-radius: 0;
  background: transparent;
  color: inherit;
}

.floating-cart .cart-open-zone {
  display: flex;
  justify-content: center;
}

.floating-cart .cart-info-zone {
  min-width: 0;
  padding-right: 2px;
}

.floating-cart .cart-info-zone strong {
  color: #fff;
  font-size: 17px;
  line-height: 1.1;
}

.floating-cart .cart-info-zone span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.64);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.floating-cart .cart-primary {
  min-width: 86px;
  min-height: 44px;
  padding: 0 16px;
  background: linear-gradient(180deg, #20c962, var(--green));
  color: #fff;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}

.drawer-mask {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(20, 28, 21, 0.38);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.cart-drawer {
  width: min(430px, 100vw);
  max-height: 78vh;
  overflow: hidden;
  border-radius: 22px 22px 0 0;
  background: #fff;
  box-shadow: 0 -20px 45px rgba(0, 0, 0, 0.18);
  padding: 8px 16px calc(16px + env(safe-area-inset-bottom));
}

.drawer-handle {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: #d4ded1;
  margin: 4px auto 12px;
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.drawer-head h2 {
  margin: 0;
  font-size: 19px;
}

.drawer-close {
  border: 0;
  min-height: 38px;
  border-radius: 999px;
  padding: 0 14px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 850;
}

.drawer-list {
  max-height: 42vh;
  overflow-y: auto;
}

.drawer-line {
  padding: 12px 0;
}

.drawer-total {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.drawer-total div {
  text-align: right;
}

.drawer-total span,
.drawer-total strong {
  display: block;
}

.drawer-total span {
  color: var(--muted);
  font-size: 12px;
}

.drawer-total strong {
  color: var(--red);
  font-size: 21px;
}

.empty-cart {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 34px 10px 20px;
  text-align: center;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 2px 10px;
}

.section-title h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.section-title div h2 {
  margin-top: 1px;
}

.section-kicker {
  display: block;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
}

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

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

.stack {
  display: grid;
  gap: 10px;
}

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

.toolbar {
  display: grid;
  grid-template-columns: 1fr 122px;
  gap: 8px;
  position: sticky;
  top: 8px;
  z-index: 5;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.field-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 850;
}

.segmented {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 0 10px;
}

.segmented button {
  border: 1px solid var(--line);
  min-height: 38px;
  border-radius: 999px;
  padding: 0 12px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.segmented button.active {
  border-color: #b8d2bd;
  background: var(--green-soft);
  color: var(--green-dark);
}

.customer-tabs {
  margin-bottom: 10px;
}

.metric {
  min-height: 82px;
}

.metric strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
}

.metric span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

.channel-card {
  min-height: 128px;
}

.channel-card p {
  margin: 6px 0 0;
}

.product-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: stretch;
}

.product-art {
  min-height: 100px;
  border-radius: 12px;
  background: var(--green-soft);
  position: relative;
  overflow: hidden;
}

.product-name {
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 12px;
}

.price {
  color: var(--red);
  font-size: 20px;
  font-weight: 900;
}

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

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 750;
}

.tag.blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.tag.gold {
  background: var(--gold-soft);
  color: var(--gold);
}

.tag.red {
  background: var(--red-soft);
  color: var(--red);
}

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

.btn {
  border: 0;
  min-height: 44px;
  border-radius: 10px;
  padding: 0 13px;
  background: var(--green);
  color: white;
  font-weight: 850;
  cursor: pointer;
}

.btn.secondary {
  background: var(--green-soft);
  color: var(--green-dark);
}

.btn.blue {
  background: var(--blue);
}

.btn.gold {
  background: var(--gold);
}

.btn.red {
  background: var(--red);
}

.btn.ghost {
  background: #eef2eb;
  color: var(--ink);
}

.btn:disabled {
  background: #c8d2c5;
  color: #778275;
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.cart-line:last-of-type {
  border-bottom: 0;
}

.stepper {
  display: inline-grid;
  grid-template-columns: 34px 34px 34px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.stepper button {
  border: 0;
  height: 36px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 900;
}

.stepper span {
  text-align: center;
  font-size: 13px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
}

.cart-total strong {
  color: var(--red);
  font-size: 20px;
}

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

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

.right-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.right-actions .price {
  font-size: 16px;
}

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

.order-top h3 {
  margin: 0;
  font-size: 16px;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.status.green {
  background: var(--green-soft);
  color: var(--green-dark);
}

.status.red {
  background: var(--red-soft);
  color: var(--red);
}

.timeline {
  display: grid;
  gap: 8px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-top: 8px;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

.timeline-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.timeline-item span {
  color: var(--muted);
  font-size: 11px;
}

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

.score {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 22px;
  font-weight: 950;
}

.lead-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.lead-head h3,
.customer-head h3 {
  margin: 0;
  font-size: 17px;
}

.ai-box {
  padding: 12px;
  border-radius: 8px;
  background: #f0f6f2;
  border: 1px dashed #b8ceb9;
}

.ai-box strong {
  display: block;
  margin-bottom: 5px;
  color: var(--green-dark);
}

.ai-box p {
  margin: 0;
  color: #3e5544;
  font-size: 13px;
  line-height: 1.55;
}

.ai-script {
  display: grid;
  gap: 10px;
}

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

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  width: min(430px, 100vw);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid rgba(27, 68, 31, 0.08);
  backdrop-filter: blur(12px);
  z-index: 10;
}

.nav-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  min-height: 48px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 850;
}

.nav-btn.active {
  color: var(--green-dark);
  background: #edf8ef;
}

.nav-btn span {
  display: flex;
  justify-content: center;
  margin-bottom: 3px;
}

.nav-icon .icon {
  width: 20px;
  height: 20px;
  margin: 0 auto;
}

.story-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
}

.story-step b {
  display: flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green-dark);
}

.story-step p {
  margin: 0;
  line-height: 1.5;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 82px;
  transform: translateX(-50%);
  width: min(380px, calc(100vw - 28px));
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(31, 38, 31, 0.94);
  color: white;
  font-size: 13px;
  z-index: 20;
  box-shadow: var(--shadow);
}

@media (min-width: 760px) {
  body {
    padding: 24px 0;
  }

  .app-shell {
    min-height: calc(100vh - 48px);
    border-radius: 26px;
  }

  .bottom-nav {
    border-radius: 0 0 26px 26px;
  }
}
