:root {
  --green: #06c874;
  --green-dark: #00a963;
  --green-deep: #087946;
  --green-soft: #e8fbf2;
  --cyan: #14bcec;
  --orange: #ffa200;
  --coral: #ff5c5c;
  --blue: #399bff;
  --purple: #b974e1;
  --ink: #202a24;
  --muted: #7a867f;
  --line: #e9f0ec;
  --canvas: #eef6f3;
  --paper: #ffffff;
  --shadow: 0 8px 24px rgba(18, 94, 58, 0.08);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { min-width: 0; scroll-behavior: smooth; }
body {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  background: #dfeae5;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 14px;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, textarea, select { font: inherit; letter-spacing: 0; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(6, 200, 116, 0.22); outline-offset: 2px; }
img, svg { display: block; }
img { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
strong, h1, h2, h3 { font-weight: 650; }
[hidden] { display: none !important; }

.app-shell {
  position: relative;
  width: min(100%, 430px);
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--canvas);
  box-shadow: 0 0 36px rgba(30, 64, 47, 0.13);
}
.app-main { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
.page-view { min-height: calc(100dvh - 62px); }
.page-view:not(.is-active) { display: none !important; }

.status-row {
  position: relative;
  z-index: 5;
  height: calc(24px + env(safe-area-inset-top));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: env(safe-area-inset-top) 15px 4px;
  color: white;
  font-size: 10px;
  font-weight: 600;
}
.status-row > span:last-child { display: flex; align-items: center; gap: 4px; }
.status-row svg { width: 12px; height: 12px; stroke-width: 2.2; }

.home-hero {
  position: relative;
  height: 330px;
  overflow: hidden;
  color: white;
  background: var(--cyan);
}
.home-hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% center; }
.home-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 142, 194, 0.15) 0%, rgba(0, 146, 166, 0.02) 48%, rgba(0, 139, 82, 0.16) 100%); pointer-events: none; }
.hero-tools {
  position: relative;
  z-index: 3;
  height: 46px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 0;
}
.weather-button, .round-add, .hero-copy button { border: 0; cursor: pointer; }
.weather-button { display: flex; align-items: center; gap: 4px; padding: 0; color: white; background: transparent; font-size: 13px; white-space: nowrap; }
.weather-button svg { width: 23px; height: 23px; color: #fff278; fill: rgba(255, 242, 120, 0.32); }
.hero-search { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 10px; background: rgba(255, 255, 255, 0.22); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 7px; backdrop-filter: blur(6px); }
.hero-search svg { width: 16px; height: 16px; flex: 0 0 16px; color: rgba(255,255,255,.88); }
.hero-search input { width: 100%; min-width: 0; padding: 0; color: white; background: transparent; border: 0; outline: 0; font-size: 12px; }
.hero-search input::placeholder { color: rgba(255,255,255,.82); }
.round-add { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; color: white; background: rgba(0,0,0,.08); border: 1px solid rgba(255,255,255,.72); border-radius: 50%; }
.round-add svg { width: 18px; height: 18px; }
.hero-copy { position: relative; z-index: 3; width: 58%; padding: 44px 0 0 19px; text-shadow: 0 2px 10px rgba(0, 96, 85, .18); }
.hero-copy > span { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 650; }
.hero-copy h1 { font-size: 25px; line-height: 1.35; }
.hero-copy button { height: 30px; display: inline-flex; align-items: center; gap: 4px; margin-top: 14px; padding: 0 11px; color: var(--green-deep); background: white; border-radius: 15px; box-shadow: 0 5px 16px rgba(0, 110, 84, .16); font-size: 11px; font-weight: 650; }
.hero-copy button svg { width: 13px; height: 13px; }

.module-section { position: relative; z-index: 5; margin-top: -1px; padding: 12px 10px 14px; background: white; border-radius: 0 0 8px 8px; }
.module-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 12px; }
.module-grid button { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0; background: transparent; border: 0; cursor: pointer; font-size: 11px; white-space: nowrap; }
.module-grid img { width: 51px; height: 51px; object-fit: contain; transition: transform .18s ease; }
.module-grid button:active img { transform: scale(.92); }

.home-flow { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 10px 10px 18px; }
.home-flow > * { min-width: 0; width: 100%; }
.harvest-banner {
  position: relative;
  height: 75px;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  padding: 8px 9px 8px 105px;
  color: white;
  text-align: left;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(115deg, #04b66e, #08d6a0 62%, #68e469);
  box-shadow: var(--shadow);
  cursor: pointer;
}
.harvest-banner::before { content: ""; position: absolute; width: 150px; height: 120px; top: -74px; right: -40px; border: 22px solid rgba(255,255,255,.12); border-radius: 50%; }
.harvest-products { position: absolute; left: 0; bottom: -4px; width: 112px; height: 78px; }
.harvest-products img { position: absolute; width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 4px 5px rgba(0,80,47,.16)); }
.harvest-products img:nth-child(1) { left: -7px; bottom: 0; }
.harvest-products img:nth-child(2) { left: 28px; bottom: 2px; transform: rotate(-10deg); }
.harvest-products img:nth-child(3) { left: 57px; bottom: -5px; }
.harvest-banner > span { min-width: 0; flex: 1; position: relative; z-index: 1; }
.harvest-banner small { display: block; font-size: 9px; opacity: .84; }
.harvest-banner strong { display: block; margin-top: 2px; font-size: 19px; line-height: 1.2; }
.harvest-banner em { position: relative; z-index: 1; height: 25px; display: flex; align-items: center; gap: 1px; padding: 0 7px; color: #08a766; background: white; border-radius: 13px; font-size: 9px; font-style: normal; white-space: nowrap; }
.harvest-banner em svg { width: 12px; height: 12px; }

.headline { min-width: 0; height: 38px; display: grid; grid-template-columns: auto minmax(0,1fr) 16px; align-items: center; gap: 8px; padding: 0 9px; text-align: left; background: white; border: 0; border-radius: 6px; box-shadow: 0 4px 15px rgba(31, 69, 48, .04); cursor: pointer; }
.headline strong { padding-right: 8px; color: #17261e; border-right: 1px solid #dfe8e3; font-size: 14px; }
.headline strong::first-letter { color: var(--green); }
.headline span { min-width: 0; overflow: hidden; color: #505c55; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.headline svg { width: 15px; height: 15px; color: #abb3ae; }

.section-block, .market-board { padding: 12px 9px; background: white; border-radius: 8px; }
.section-title, .market-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.section-title > div, .market-heading > div { min-width: 0; display: flex; align-items: center; gap: 6px; }
.section-title h2, .market-heading h2 { font-size: 16px; white-space: nowrap; }
.section-title button, .market-heading button { display: flex; align-items: center; gap: 1px; padding: 0; color: #8a948e; background: transparent; border: 0; font-size: 10px; cursor: pointer; }
.section-title button svg, .market-heading button svg { width: 13px; height: 13px; }
.time-tag { padding: 2px 5px; color: white; background: var(--orange); border-radius: 4px; font-size: 9px; }
.countdown { color: var(--orange); font-family: "DIN Alternate", Arial, sans-serif; font-size: 11px; font-weight: 650; }
.product-scroller { display: grid; grid-auto-flow: column; grid-auto-columns: 88px; gap: 7px; margin: 10px -2px 0; padding: 0 2px 4px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; }
.product-scroller::-webkit-scrollbar { display: none; }
.mini-product { min-width: 0; padding: 0; text-align: left; background: transparent; border: 0; cursor: pointer; }
.mini-product .product-image { height: 78px; display: grid; place-items: center; margin-bottom: 5px; overflow: hidden; background: #f0faf5; border-radius: 7px; }
.mini-product img { width: 75px; height: 75px; object-fit: contain; transition: transform .18s ease; }
.mini-product:active img { transform: scale(.92); }
.mini-product strong { display: block; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.mini-product b { display: block; margin-top: 2px; color: var(--orange); font-size: 13px; }
.mini-product b small { font-size: 8px; font-weight: 500; }
.mini-product > small { display: block; margin-top: 1px; color: #9aa39e; font-size: 8px; }

.promo-grid { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.promo-card { position: relative; min-width: 0; height: 82px; display: flex; overflow: hidden; padding: 10px 63px 8px 9px; text-align: left; border: 0; border-radius: 8px; cursor: pointer; }
.promo-card.leafy { background: linear-gradient(120deg, #fff0ed, #ffe2da); }
.promo-card.fruit { background: linear-gradient(120deg, #dff8ff, #cdefff); }
.promo-card > span { position: relative; z-index: 2; min-width: 0; }
.promo-card strong { display: block; color: #e46d42; font-size: 13px; white-space: nowrap; }
.promo-card.fruit strong { color: #168dcc; }
.promo-card small { display: block; margin-top: 3px; color: #7b817d; font-size: 8px; white-space: nowrap; }
.promo-card em { height: 18px; width: max-content; display: flex; align-items: center; gap: 2px; margin-top: 6px; padding: 0 6px; color: white; background: #ed8a4d; border-radius: 9px; font-size: 8px; font-style: normal; }
.promo-card.fruit em { background: #20a8e6; }
.promo-card em svg { width: 10px; height: 10px; }
.promo-card img { position: absolute; right: -4px; bottom: -2px; width: 76px; height: 76px; object-fit: contain; }

.market-board { min-width: 0; padding-bottom: 6px; background: #e6fceb; }
.market-heading > div { align-items: baseline; }
.market-heading span { color: #65a17c; font-size: 9px; }
.city-tabs { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); margin: 10px -2px 0; padding: 0 2px; background: white; border-radius: 6px 6px 0 0; }
.city-tabs button { position: relative; height: 35px; padding: 0; color: #3e4943; background: transparent; border: 0; font-size: 11px; cursor: pointer; }
.city-tabs button.is-active { color: var(--green-dark); font-weight: 650; }
.city-tabs button.is-active::after { content: ""; position: absolute; left: 28%; right: 28%; bottom: 0; height: 2px; background: var(--green); }
.market-table { min-width: 0; margin: 0 -2px; overflow: hidden; background: white; border-radius: 0 0 6px 6px; }
.market-row { min-width: 0; display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,.85fr) minmax(0,.7fr) 16px; align-items: center; min-height: 35px; padding: 0 9px; border-top: 1px solid #f0f4f1; font-size: 10px; }
.market-row > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.market-row.is-head { min-height: 31px; color: #99a19c; background: #f8fbf9; border: 0; }
.market-row b { font-weight: 500; }
.market-row .up { color: #13ae62; }
.market-row .down { color: var(--coral); }
.market-row svg { width: 13px; height: 13px; }

.green-page-head { position: relative; color: white; background: linear-gradient(150deg, var(--cyan), var(--green) 82%); }
.planting-head { min-height: 252px; }
.page-toolbar { height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 12px 8px; }
.page-toolbar > button { color: white; background: transparent; border: 0; cursor: pointer; }
.page-toolbar > button:first-child { min-width: 0; display: flex; align-items: center; gap: 4px; padding: 0; font-size: 13px; }
.page-toolbar button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-toolbar svg { width: 16px; height: 16px; }
.page-toolbar .circle-tool { width: 31px; height: 31px; display: grid; place-items: center; flex: 0 0 31px; border: 1px solid rgba(255,255,255,.78); border-radius: 50%; }
.warning-bar { width: 100%; height: 31px; display: grid; grid-template-columns: 16px minmax(0,1fr) 14px; align-items: center; gap: 5px; padding: 0 12px; color: #e18713; text-align: left; background: #fff6dd; border: 0; font-size: 9px; cursor: pointer; }
.warning-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.warning-bar svg { width: 13px; height: 13px; }
.weather-panel { height: 128px; display: grid; grid-template-columns: 1.25fr repeat(3,.78fr) .92fr; align-items: center; padding: 8px 12px 22px; background-image: linear-gradient(180deg, rgba(3,201,202,.12), rgba(0,176,100,.23)); }
.weather-panel > div { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; }
.weather-panel > div:not(:first-child) { padding-top: 15px; }
.weather-panel small { font-size: 8px; opacity: .88; }
.weather-panel strong { font-size: 10px; white-space: nowrap; }
.weather-main { flex-direction: row !important; justify-content: flex-start; text-align: left !important; }
.weather-main > svg { width: 38px; height: 38px; color: #ffe04f; fill: rgba(255,224,79,.16); }
.weather-main span { display: flex; flex-direction: column; gap: 1px; }
.weather-main strong { font-size: 16px; }
.weather-main b { font-size: 13px; }
.weather-date strong { font-size: 13px; }
.mobile-page-body { padding: 10px 10px 18px; }
.overlap-body { position: relative; z-index: 2; margin-top: -18px; padding-top: 13px; background: var(--canvas); border-radius: 17px 17px 0 0; }
.planting-title { padding: 0 2px 9px; }
.planting-title h1 { font-size: 16px; }
.planting-title span { color: #95a099; font-size: 9px; }
.plot-list { display: grid; gap: 9px; }
.plot-card { padding: 9px; background: white; border: 0; border-radius: 8px; box-shadow: 0 4px 18px rgba(27, 83, 55, .05); text-align: left; cursor: pointer; }
.plot-card-top { display: grid; grid-template-columns: 66px minmax(0,1fr) auto; gap: 9px; align-items: start; }
.plot-thumb { width: 66px; height: 66px; display: grid; place-items: center; background: #eef9f3; border-radius: 7px; overflow: hidden; }
.plot-thumb img { width: 62px; height: 62px; object-fit: contain; }
.plot-copy { min-width: 0; }
.plot-copy strong { display: block; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.plot-copy b { display: block; margin-top: 3px; color: var(--green-dark); font-size: 11px; }
.plot-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.plot-tags span { padding: 2px 5px; color: #7b857f; background: #f7f9f8; border: 1px solid #e2e9e5; border-radius: 7px; font-size: 8px; }
.plot-health { padding: 2px 4px; color: var(--orange); background: #fff6dd; border-radius: 4px; font-size: 8px; font-weight: 650; }
.plot-meta { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; margin-top: 9px; padding-top: 8px; border-top: 1px solid #f0f4f1; }
.plot-meta span { min-width: 0; display: flex; flex-direction: column; gap: 2px; color: #929b95; font-size: 8px; }
.plot-meta span:last-child { text-align: right; }
.plot-meta strong { overflow: hidden; color: #313a35; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.plot-meta span:last-child strong { color: var(--green-dark); font-size: 13px; }
.device-panel { margin-top: 14px; }
.device-panel .section-title { margin-bottom: 8px; }
.device-panel .section-title > div { align-items: baseline; }
.device-panel .section-title span { color: #95a099; font-size: 9px; }
.device-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.device-card { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) 34px; gap: 4px; align-items: center; min-height: 62px; padding: 8px; background: white; border: 1px solid transparent; border-radius: 8px; }
.device-card.is-warning { background: #fff8e8; border-color: #ffe2a1; }
.device-card strong { display: block; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.device-card small { display: block; margin-top: 3px; color: #909a94; font-size: 8px; }
.device-card span { width: 31px; height: 31px; display: grid; place-items: center; color: var(--green-dark); border: 1px solid #9cdec3; border-radius: 50%; }
.device-card span svg { width: 16px; height: 16px; }

.compact-head { height: calc(93px + env(safe-area-inset-top)); }
.search-toolbar { height: 55px; display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 0; padding: 6px 10px 9px; }
.search-toolbar label { height: 35px; display: flex; align-items: center; gap: 6px; min-width: 0; padding: 0 8px; background: white; border-radius: 7px 0 0 7px; }
.search-toolbar label svg { width: 15px; height: 15px; flex: 0 0 15px; color: var(--green-dark); }
.search-toolbar input { width: 100%; min-width: 0; padding: 0; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 11px; }
.search-toolbar > button { height: 35px; padding: 0 10px; color: var(--green-dark); background: white; border: 0; border-left: 1px solid #e8eeea; cursor: pointer; font-size: 10px; font-weight: 650; white-space: nowrap; }
.search-toolbar > button:last-child { display: flex; align-items: center; gap: 2px; margin-left: 6px; padding: 0; color: white; background: transparent; border: 0; font-weight: 500; }
.search-toolbar > button:last-child svg { width: 14px; height: 14px; }
.supply-body, .orders-body { margin-top: -6px; padding-top: 8px; border-radius: 12px 12px 0 0; }
.supply-shortcuts { height: 88px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: center; background: white; border-radius: 8px; }
.supply-shortcuts button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0; background: transparent; border: 0; cursor: pointer; font-size: 10px; }
.supply-shortcuts span, .service-grid span { width: 38px; height: 38px; display: grid; place-items: center; color: white; border-radius: 50%; box-shadow: 0 5px 12px rgba(28, 64, 46, .1); }
.supply-shortcuts span svg, .service-grid span svg { width: 19px; height: 19px; }
.blue { background: linear-gradient(145deg,#55c7ff,var(--blue)); }
.orange { background: linear-gradient(145deg,#ffc344,var(--orange)); }
.coral { background: linear-gradient(145deg,#ff8d8d,var(--coral)); }
.purple { background: linear-gradient(145deg,#d995f3,var(--purple)); }
.green { background: linear-gradient(145deg,#41df9a,var(--green-dark)); }
.filter-tabs { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); margin-top: 8px; background: white; border-radius: 8px 8px 0 0; }
.filter-tabs button { position: relative; height: 39px; padding: 0; background: transparent; border: 0; cursor: pointer; font-size: 11px; white-space: nowrap; }
.filter-tabs button.is-active { color: var(--green-dark); font-weight: 650; }
.filter-tabs button.is-active::after { content: ""; position: absolute; left: 27%; right: 27%; bottom: 0; height: 2px; background: var(--green); }
.supply-list, .order-list { display: grid; gap: 8px; padding-top: 8px; }
.supply-card, .order-card { padding: 9px; background: white; border-radius: 8px; box-shadow: 0 4px 18px rgba(27,83,55,.04); }
.supplier-row, .order-company { display: flex; align-items: center; gap: 7px; }
.supplier-row .supplier-avatar, .order-company .company-avatar { width: 24px; height: 24px; display: grid; place-items: center; flex: 0 0 24px; color: white; background: var(--green-dark); border-radius: 50%; font-size: 9px; }
.supplier-row > div, .order-company > div { min-width: 0; flex: 1; }
.supplier-row strong, .order-company strong { display: block; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.supplier-row small, .order-company small { color: #939d97; font-size: 8px; }
.verified-label { display: flex; align-items: center; gap: 2px; padding: 2px 5px; color: var(--green-dark); background: var(--green-soft); border-radius: 8px; font-size: 8px; }
.verified-label svg { width: 10px; height: 10px; }
.supply-products, .order-products { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; margin-top: 8px; }
.supply-product, .order-product { min-width: 0; }
.supply-product span, .order-product span { position: relative; height: 70px; display: grid; place-items: center; overflow: hidden; background: #f0f9f5; border-radius: 6px; }
.supply-product img, .order-product img { width: 65px; height: 65px; object-fit: contain; }
.supply-product b, .order-product b { display: block; margin-top: 3px; overflow: hidden; font-size: 9px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.supply-product small, .order-product small { display: block; color: var(--orange); font-size: 8px; }
.supply-meta, .order-meta { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin-top: 8px; padding-top: 7px; border-top: 1px solid #f0f4f1; }
.supply-meta > div, .order-meta > div { display: grid; gap: 3px; }
.supply-meta span, .order-meta span { display: flex; align-items: center; gap: 4px; color: #8f9993; font-size: 8px; }
.supply-meta span::before, .order-meta span::before { content: ""; width: 4px; height: 4px; flex: 0 0 4px; background: var(--green); border-radius: 50%; }
.supply-meta span:last-child::before, .order-meta span:last-child::before { background: var(--orange); }
.supply-meta > span { align-self: start; color: #7c8780; font-size: 8px; }
.supply-meta > span strong { color: var(--green-dark); font-family: "DIN Alternate",Arial,sans-serif; font-size: 15px; }
.supply-actions, .order-actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 8px; }
.supply-actions button, .order-actions button { height: 27px; padding: 0 10px; color: #606b64; background: white; border: 1px solid #dce5e0; border-radius: 14px; font-size: 9px; cursor: pointer; }
.supply-actions .primary, .order-actions .primary { color: white; background: var(--green); border-color: var(--green); }

.orders-body { padding-left: 0; padding-right: 0; }
.orders-body .filter-tabs { margin: 0; border-radius: 0; }
.orders-body .order-list { padding: 8px 10px 18px; }
.order-company { padding-bottom: 7px; border-bottom: 1px solid #f0f4f1; }
.order-company em { color: var(--orange); font-size: 9px; font-style: normal; }
.order-company em.is-live { color: var(--green-dark); }
.order-company em.is-done { color: #9aa29d; }
.order-products { grid-template-columns: repeat(4,minmax(0,1fr)); }
.order-product span { height: 55px; }
.order-product img { width: 52px; height: 52px; }
.order-meta { grid-template-columns: 1fr auto; }
.order-total { align-self: center; color: #8b958f; font-size: 8px; text-align: right; }
.order-total strong { display: block; color: var(--green-dark); font-family: "DIN Alternate",Arial,sans-serif; font-size: 16px; }
.empty-state { min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; color: #929d96; }
.empty-state svg { width: 42px; height: 42px; color: #b9c9c0; }
.empty-state strong { color: #5f6b64; font-size: 13px; }
.empty-state span { font-size: 10px; }

.profile-view { background: var(--canvas); }
.profile-head { position: relative; min-height: 306px; color: white; background: linear-gradient(145deg, #05b66c, #04cc7d 57%, #16bfa7); overflow: hidden; }
.profile-head::after { content: ""; position: absolute; width: 230px; height: 230px; right: -110px; top: -90px; border: 1px solid rgba(255,255,255,.18); border-radius: 42%; transform: rotate(24deg); box-shadow: 0 0 0 28px rgba(255,255,255,.035), 0 0 0 56px rgba(255,255,255,.025); }
.profile-tools { position: relative; z-index: 3; height: 40px; display: flex; justify-content: flex-end; gap: 12px; padding: 4px 14px; }
.profile-tools button { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; color: white; background: transparent; border: 0; cursor: pointer; }
.profile-tools svg { width: 20px; height: 20px; }
.profile-user { position: relative; z-index: 3; display: grid; grid-template-columns: 64px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 11px 16px 16px; }
.avatar { width: 64px; height: 64px; display: grid; place-items: center; color: var(--green-deep); background: #eafff5; border: 4px solid rgba(255,255,255,.56); border-radius: 50%; box-shadow: 0 4px 16px rgba(0,112,63,.18); font-size: 24px; font-weight: 700; }
.profile-user > div { min-width: 0; }
.profile-user h1 { font-size: 19px; }
.profile-user p { margin-top: 3px; overflow: hidden; color: rgba(255,255,255,.9); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.profile-user > div button { height: 22px; display: inline-flex; align-items: center; gap: 2px; margin-top: 6px; padding: 0 7px; color: white; background: rgba(0,0,0,.22); border: 0; border-radius: 11px; font-size: 8px; cursor: pointer; }
.profile-user > div button svg { width: 10px; height: 10px; }
.code-entry { width: 50px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 0; color: white; background: transparent; border: 0; cursor: pointer; font-size: 8px; }
.code-entry svg { width: 23px; height: 23px; }
.profile-stats { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); padding: 6px 8px 18px; }
.profile-stats button { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0; color: white; background: transparent; border: 0; cursor: pointer; }
.profile-stats strong { max-width: 100%; overflow: hidden; font-family: "DIN Alternate",Arial,sans-serif; font-size: 19px; text-overflow: ellipsis; white-space: nowrap; }
.profile-stats span { font-size: 8px; }
.profile-body { position: relative; z-index: 4; display: grid; gap: 10px; margin-top: -51px; padding: 0 10px 18px; }
.member-banner { height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 0 10px; color: #ffe89a; background: #27302c; border: 0; border-radius: 8px 8px 0 0; cursor: pointer; }
.member-banner > span { min-width: 0; display: flex; align-items: center; gap: 6px; }
.member-banner svg { width: 16px; height: 16px; flex: 0 0 16px; }
.member-banner strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.member-banner em { height: 23px; display: flex; align-items: center; gap: 1px; padding: 0 6px; color: #614e18; background: #ffe89a; border-radius: 12px; font-size: 8px; font-style: normal; white-space: nowrap; }
.member-banner em svg { width: 10px; height: 10px; }
.profile-panel { padding: 13px 10px; background: white; border-radius: 8px; }
.profile-body .profile-panel:first-of-type { margin-top: -10px; border-radius: 0 0 8px 8px; }
.profile-panel h2 { font-size: 15px; }
.service-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 17px 6px; margin-top: 14px; }
.service-grid button { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; background: transparent; border: 0; cursor: pointer; font-size: 9px; white-space: nowrap; }
.service-grid span { width: 35px; height: 35px; border-radius: 8px; }
.service-grid span svg { width: 18px; height: 18px; }
.personal-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); row-gap: 17px; margin-top: 14px; }
.personal-grid button { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; color: #37423c; background: transparent; border: 0; cursor: pointer; font-size: 9px; white-space: nowrap; }
.personal-grid svg { width: 23px; height: 23px; color: #28332d; stroke-width: 1.5; }

.bottom-nav {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 0;
  width: min(100%, 430px);
  height: calc(62px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  padding: 5px 6px env(safe-area-inset-bottom);
  transform: translateX(-50%);
  background: rgba(255,255,255,.98);
  border-top: 1px solid #e9efeb;
  box-shadow: 0 -5px 18px rgba(27,70,49,.06);
  backdrop-filter: blur(12px);
}
.bottom-nav button { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 0; background: transparent; border: 0; cursor: pointer; }
.bottom-nav button:focus-visible { outline: 0; }
.bottom-nav button > span { position: relative; width: 33px; height: 33px; }
.bottom-nav img { position: absolute; inset: 0; width: 33px; height: 33px; object-fit: contain; }
.bottom-nav img.active { display: none; }
.bottom-nav button.is-active img.normal { display: none; }
.bottom-nav button.is-active img.active { display: block; }
.bottom-nav em { color: #242d28; font-size: 9px; font-style: normal; }
.bottom-nav button.is-active em { color: var(--green-dark); font-weight: 650; }

.sheet-backdrop { position: fixed; z-index: 300; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 0; background: rgba(18,33,25,.42); }
.bottom-sheet { position: relative; width: min(100%,430px); max-height: min(82dvh,720px); overflow: auto; padding: 12px 16px calc(20px + env(safe-area-inset-bottom)); background: white; border-radius: 16px 16px 0 0; box-shadow: 0 -12px 38px rgba(14,45,29,.18); animation: sheet-in .22s ease both; }
@keyframes sheet-in { from { transform: translateY(25px); opacity: 0; } }
.sheet-handle { width: 38px; height: 4px; margin: -4px auto 12px; background: #dce4df; border-radius: 2px; }
.sheet-close { position: absolute; top: 13px; right: 14px; width: 31px; height: 31px; display: grid; place-items: center; padding: 0; color: #6f7973; background: #f3f7f5; border: 0; border-radius: 50%; cursor: pointer; }
.sheet-close svg { width: 17px; height: 17px; }
.sheet-header { padding-right: 40px; }
.sheet-header > span { color: var(--green-dark); font-size: 9px; font-weight: 700; }
.sheet-header h2 { margin-top: 3px; font-size: 19px; }
.sheet-header p { margin-top: 5px; color: #7c8780; font-size: 10px; line-height: 1.6; }
.sheet-body { margin-top: 15px; }
.sheet-detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.sheet-detail-grid > div { min-width: 0; padding: 10px; background: #f5faf7; border-radius: 7px; }
.sheet-detail-grid small { display: block; color: #909a94; font-size: 8px; }
.sheet-detail-grid strong { display: block; margin-top: 4px; overflow-wrap: anywhere; font-size: 11px; line-height: 1.5; }
.sheet-product { display: grid; grid-template-columns: 90px minmax(0,1fr); gap: 12px; align-items: center; padding: 10px; background: #f3faf6; border-radius: 8px; }
.sheet-product img { width: 90px; height: 90px; object-fit: contain; }
.sheet-product h3 { font-size: 15px; line-height: 1.4; }
.sheet-product p { margin-top: 4px; color: #7f8a83; font-size: 9px; line-height: 1.55; }
.sheet-price { display: block; margin-top: 7px; color: var(--orange); font-family: "DIN Alternate",Arial,sans-serif; font-size: 20px; }
.sheet-price small { font-size: 9px; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; margin-top: 15px; }
.sheet-actions button, .form-submit { height: 40px; border-radius: 7px; cursor: pointer; font-size: 11px; font-weight: 650; }
.sheet-actions button:first-child { color: var(--green-dark); background: white; border: 1px solid #b8dfcb; }
.sheet-actions button:last-child, .form-submit { color: white; background: var(--green); border: 1px solid var(--green); }
.sheet-form { display: grid; gap: 10px; }
.sheet-form label { display: grid; gap: 5px; color: #566159; font-size: 10px; }
.sheet-form input, .sheet-form textarea, .sheet-form select { width: 100%; min-width: 0; padding: 0 10px; color: var(--ink); background: #f6faf8; border: 1px solid #e3ebe6; border-radius: 7px; outline: 0; }
.sheet-form input, .sheet-form select { height: 40px; }
.sheet-form textarea { min-height: 78px; padding-top: 10px; resize: vertical; }
.quick-add-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.quick-add-grid button { min-height: 78px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; color: #445048; background: #f5faf7; border: 0; border-radius: 8px; cursor: pointer; font-size: 10px; }
.quick-add-grid span { width: 34px; height: 34px; display: grid; place-items: center; color: white; background: var(--green); border-radius: 50%; }
.quick-add-grid svg { width: 17px; height: 17px; }
.growth-line { position: relative; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); margin: 14px 0; }
.growth-line::before { content: ""; position: absolute; left: 8%; right: 8%; top: 7px; height: 2px; background: #dce8e1; }
.growth-line span { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; color: #99a19c; font-size: 8px; text-align: center; }
.growth-line span::before { content: ""; width: 13px; height: 13px; background: white; border: 2px solid #cddad2; border-radius: 50%; }
.growth-line span.is-done::before, .growth-line span.is-active::before { background: var(--green); border-color: var(--green); }
.growth-line span.is-active { color: var(--green-dark); font-weight: 650; }
.task-list { display: grid; gap: 7px; }
.task-row { display: grid; grid-template-columns: 33px minmax(0,1fr) 27px; gap: 8px; align-items: center; padding: 8px; background: #f6faf8; border-radius: 7px; }
.task-row > span { width: 32px; height: 32px; display: grid; place-items: center; color: white; background: var(--cyan); border-radius: 50%; font-size: 9px; }
.task-row strong { display: block; font-size: 10px; }
.task-row small { display: block; margin-top: 2px; color: #949d98; font-size: 8px; }
.task-row button { width: 26px; height: 26px; display: grid; place-items: center; padding: 0; color: #8daa99; background: #e8f1ec; border: 0; border-radius: 50%; cursor: pointer; }
.task-row button.is-done { color: white; background: var(--green); }
.task-row button svg { width: 14px; height: 14px; }
.qr-demo { width: 150px; height: 150px; display: grid; grid-template-columns: repeat(9,1fr); gap: 2px; margin: 12px auto; padding: 9px; background: white; border: 1px solid #e3ebe6; border-radius: 8px; }
.qr-demo i { background: #1d2922; border-radius: 1px; }

.toast { position: fixed; z-index: 500; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom)); max-width: min(330px, calc(100% - 40px)); padding: 9px 13px; color: white; background: rgba(23,35,28,.9); border-radius: 6px; transform: translate(-50%,16px); opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease; font-size: 10px; text-align: center; }
.toast.is-visible { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 340px) {
  .home-hero { height: 310px; }
  .hero-copy { width: 63%; padding-left: 14px; }
  .hero-copy h1 { font-size: 22px; }
  .hero-tools { padding-left: 10px; padding-right: 10px; }
  .weather-button span { display: none; }
  .module-grid img { width: 46px; height: 46px; }
  .module-grid button { font-size: 10px; }
  .harvest-banner { padding-left: 93px; }
  .harvest-products { transform: scale(.88); transform-origin: left bottom; }
  .harvest-banner strong { font-size: 17px; }
  .promo-card { padding-right: 53px; }
  .promo-card img { width: 66px; height: 66px; }
  .profile-stats strong { font-size: 16px; }
  .service-grid button, .personal-grid button { font-size: 8px; }
}

@media (min-width: 431px) {
  body { padding: 18px 0; }
  .app-shell { min-height: calc(100dvh - 36px); border-radius: 12px; }
  .bottom-nav { bottom: 18px; border-radius: 0 0 12px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
