* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: #1c2530;
  background: #f4f7f8;
  font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 70px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  border-bottom: 1px solid #e2e8ee;
  background: rgba(255,255,255,0.95);
  padding: 0 44px;
  backdrop-filter: blur(10px);
}

.site-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 0;
  background: transparent;
  color: #172231;
  padding: 0;
  text-align: left;
}

.site-brand.dark {
  color: #fff;
  margin-bottom: 22px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #17b978;
  color: #fff;
  font-weight: 800;
}

.site-brand strong,
.site-brand small {
  display: block;
}

.site-brand small {
  margin-top: 3px;
  color: #6b7c8e;
}

.dark small {
  color: #aec3d5;
}

.site-nav,
.admin-nav {
  display: flex;
  gap: 6px;
  align-items: center;
}

.site-nav {
  justify-content: center;
}

.site-nav button,
.admin-link,
.site-footer button {
  min-height: 38px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #425266;
  padding: 0 12px;
}

.language-switch {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #425266;
  font-size: 14px;
  white-space: nowrap;
}

.language-switch select {
  min-height: 36px;
  border: 1px solid #cdd9e2;
  border-radius: 7px;
  background: #fff;
  color: #1d2a36;
  padding: 0 8px;
}

.dark-switch {
  display: grid;
  color: #d5e2ec;
  margin-top: 18px;
}

.site-nav button.active,
.site-nav button:hover,
.admin-link {
  background: #edf5f2;
  color: #0c7a55;
}

.home-hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 42px;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(13, 32, 49, 0.96), rgba(12, 128, 91, 0.82)),
    url("https://images.unsplash.com/photo-1504674900247-0877df9cc836?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  padding: 54px 7vw;
}

.hero-copy h1,
.join-hero h1,
.download-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: 48px;
  line-height: 1.12;
}

.hero-copy p,
.join-hero p,
.download-hero p {
  max-width: 660px;
  color: #d9e7ef;
  font-size: 18px;
  line-height: 1.7;
}

.eyebrow {
  margin: 0 0 12px;
  color: #36e3ac;
  font-weight: 800;
}

.home-search {
  max-width: 780px;
  min-height: 58px;
  display: grid;
  grid-template-columns: auto 1fr 110px;
  gap: 10px;
  align-items: center;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
  margin-top: 24px;
}

.home-search span {
  color: #1d2a36;
  padding-left: 12px;
  font-weight: 700;
}

.home-search input,
.stack-form input,
.stack-form select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cdd9e2;
  border-radius: 7px;
  padding: 0 12px;
}

.home-search input {
  border: 0;
  outline: 0;
}

.home-search button,
.primary {
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  background: #17b978;
  color: #fff;
  padding: 0 18px;
  font-weight: 800;
}

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

.hero-actions button,
.site-footer button,
.shop-toolbar button,
.admin-head button,
.admin-command-card,
.ops-list button,
.channel-tabs button,
.dispatch-tabs button,
.business-card button,
.product-card button,
.store-card button,
.checkout-card button,
.task-list button,
.product-list button,
.download-cards button,
.category-tabs button,
.order-row,
.cart-controls button {
  min-height: 40px;
  border: 1px solid #ccd9e2;
  border-radius: 7px;
  background: #fff;
  color: #1d2a36;
  padding: 0 14px;
}

.phone-preview {
  min-height: 420px;
  display: grid;
  align-content: start;
  gap: 14px;
  border: 10px solid rgba(255,255,255,0.32);
  border-radius: 30px;
  background: #fff;
  color: #1d2a36;
  padding: 22px;
  box-shadow: 0 28px 70px rgba(0,0,0,0.22);
}

.phone-top {
  width: 88px;
  height: 6px;
  border-radius: 999px;
  background: #d7e0e7;
  margin: 0 auto 14px;
}

.phone-preview span {
  border: 1px solid #e0e8ee;
  border-radius: 8px;
  padding: 12px;
}

.public-section,
.shop-page {
  padding: 42px 7vw;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.section-head h2,
.checkout-card h2,
.panel h2 {
  margin: 0;
  font-size: 24px;
}

.section-head span,
.muted,
.store-card span,
.store-card small,
.product-card span,
.task-list span,
.table-like span,
.table-like small {
  color: #66778a;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 12px;
}

.service-grid button {
  min-height: 96px;
  border: 1px solid #dbe5ec;
  border-radius: 8px;
  background: #fff;
  color: #172231;
  font-weight: 800;
  font-size: 17px;
}

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

.home-channel-card {
  min-height: 178px;
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid #dbe5ec;
  border-radius: 8px;
  background: #fff;
  color: #172231;
  padding: 18px;
  text-align: left;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.home-channel-card:hover {
  transform: translateY(-2px);
  border-color: #17b978;
  box-shadow: 0 12px 24px rgba(18, 45, 61, 0.1);
}

.home-channel-card .channel-kicker,
.discovery-heading > span {
  color: #66778a;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.home-channel-card strong {
  font-size: 22px;
}

.home-channel-card small {
  min-height: 42px;
  color: #66778a;
  line-height: 1.55;
}

.home-channel-card b {
  color: #0c7a55;
  font-size: 13px;
}

.home-channel-card b span {
  margin-left: 4px;
  font-size: 18px;
}

.home-channel-card.food { border-top: 4px solid #e36b3d; }
.home-channel-card.market { border-top: 4px solid #17b978; }
.home-channel-card.service { border-top: 4px solid #5169c7; }
.home-channel-card.errand { border-top: 4px solid #d9a441; }
.home-channel-card.life { border-top: 4px solid #7c5dc6; }
.home-channel-card.industrial { border-top: 4px solid #2f8ca3; }

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

.highlight-card {
  min-height: 112px;
  position: relative;
  display: grid;
  align-content: center;
  gap: 7px;
  border-radius: 8px;
  padding: 16px 18px 16px 32px;
}

.highlight-card strong { font-size: 16px; }
.highlight-card p { margin: 0; color: #526273; line-height: 1.5; }
.highlight-dot { position: absolute; left: 16px; top: 20px; width: 7px; height: 7px; border-radius: 50%; }
.highlight-card.green { background: #eaf8f2; }
.highlight-card.green .highlight-dot { background: #17b978; }
.highlight-card.gold { background: #fff6db; }
.highlight-card.gold .highlight-dot { background: #d9a441; }
.highlight-card.blue { background: #edf1ff; }
.highlight-card.blue .highlight-dot { background: #5169c7; }

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

.discovery-panel {
  min-height: 286px;
  border: 1px solid #dbe5ec;
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.discovery-panel.food-panel { background: #fffaf4; }
.discovery-panel.market-panel { background: #f5fbf7; }
.discovery-panel.service-panel { background: #f7f8ff; }
.discovery-heading { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.discovery-heading strong { font-size: 19px; }
.discovery-heading button { min-height: 32px; border: 0; background: transparent; color: #0c7a55; font-weight: 800; padding: 0; }
.discovery-panel > p { min-height: 45px; margin: 12px 0; color: #66778a; line-height: 1.55; }

.mini-store-list { display: grid; gap: 8px; }
.mini-store-list .store-card { grid-template-columns: auto minmax(0, 1fr); padding: 10px; }
.mini-store-list .store-cover { width: 48px; height: 48px; font-size: 12px; }
.mini-store-list .store-card button { grid-column: 2; justify-self: start; min-height: 32px; padding: 0 10px; }
.mini-store-list .store-card span { font-size: 12px; }
.mini-store-list .store-card small { font-size: 11px; }

.service-showcase { display: grid; gap: 8px; }
.service-showcase div { display: grid; gap: 4px; border-top: 1px solid #e1e6f5; padding-top: 9px; }
.service-showcase span { color: #66778a; font-size: 13px; }

.home-promo-section { align-items: stretch; }
.promo-story { display: grid; align-content: center; gap: 8px; border-radius: 8px; background: #10263b; color: #fff; padding: 28px; }
.promo-story h2 { margin: 0; font-size: 34px; }
.promo-story > p:not(.eyebrow) { max-width: 540px; color: #c4d4df; line-height: 1.6; }
.home-trust-list { display: grid; align-content: center; gap: 12px; padding: 6px 0; }
.home-trust-list div { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: center; border-bottom: 1px solid #e8eef2; padding: 10px 0; }
.home-trust-list strong { color: #17b978; font-size: 20px; }
.home-trust-list span { color: #526273; line-height: 1.45; }

.split-public {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
}

.store-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.store-strip.vertical {
  grid-template-columns: 1fr;
  margin-bottom: 18px;
}

.store-card,
.product-card,
.promo-card,
.entry-grid article,
.checkout-card,
.panel,
.download-cards article,
.listing-grid article {
  border: 1px solid #dbe5ec;
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.store-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
}

.store-card.selected {
  border-color: #17b978;
  box-shadow: 0 0 0 2px rgba(23, 185, 120, 0.12);
}

.store-card strong,
.store-card span,
.store-card small {
  display: block;
}

.store-card span {
  margin: 6px 0;
}

.store-cover {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #ffe08a;
  font-weight: 800;
}

.store-cover.large {
  width: 92px;
  height: 92px;
  font-size: 24px;
}

.compact-store-strip {
  margin-bottom: 18px;
}

.store-detail-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  border: 1px solid #dbe5ec;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff7d6, #edf9f3);
  padding: 18px;
  margin-bottom: 14px;
}

.store-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: #526273;
  margin: 10px 0;
}

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

.tag-row span {
  border: 1px solid #cfe0d8;
  border-radius: 999px;
  background: #fff;
  color: #19664d;
  padding: 4px 10px;
  font-size: 13px;
}

.promo-card {
  display: grid;
  align-content: center;
  gap: 12px;
  background: #10263b;
  color: #fff;
}

.promo-card strong {
  font-size: 34px;
}

.promo-card p {
  color: #c4d4df;
}

.entry-grid,
.download-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 14px;
}

.entry-grid article,
.download-cards article {
  display: grid;
  gap: 12px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  border-top: 1px solid #dbe5ec;
  background: #fff;
  padding: 26px 7vw;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer span {
  margin-top: 6px;
  color: #66778a;
}

.shop-toolbar,
.admin-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}

.shop-toolbar h1,
.admin-head h1 {
  margin: 0;
  font-size: 34px;
}

.food-discovery-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: #10263b;
  color: #fff;
  padding: 26px 28px;
}

.food-discovery-copy {
  max-width: 620px;
}

.food-discovery-copy h2 {
  margin: 4px 0 8px;
  font-size: 30px;
}

.food-discovery-copy p:last-child {
  margin: 0;
  color: #c8d9e2;
  line-height: 1.6;
}

.food-discovery-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  gap: 12px;
  align-items: center;
}

.food-discovery-metrics span {
  display: grid;
  gap: 4px;
  border-left: 1px solid rgba(255,255,255,0.2);
  padding-left: 14px;
  color: #c8d9e2;
  font-size: 12px;
}

.food-discovery-metrics strong {
  color: #fff;
  font-size: 20px;
}

.food-category-rail {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.food-category-card {
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 5px;
  border: 1px solid #dbe5ec;
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  text-align: left;
}

.food-category-card small {
  color: #718296;
}

.food-category-card.active {
  border-color: #17b978;
  background: #eaf8f2;
  color: #0c704a;
  box-shadow: 0 0 0 2px rgba(23, 185, 120, 0.1);
}

.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

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

.product-card p {
  min-height: 42px;
  margin: 0;
  color: #66778a;
}

.product-buy-row,
.cart-controls {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.cart-controls button {
  min-width: 40px;
  padding: 0 12px;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.channel-tabs,
.dispatch-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.channel-tabs button,
.dispatch-tabs button {
  min-height: 64px;
  display: grid;
  align-content: center;
  gap: 4px;
  text-align: left;
}

.channel-tabs small,
.dispatch-tabs small {
  color: #66778a;
}

.category-tabs button.active,
.channel-tabs button.active,
.dispatch-tabs button.active,
.order-row.active {
  border-color: #17b978;
  background: #eaf8f2;
  color: #0c704a;
  box-shadow: 0 0 0 2px rgba(23, 185, 120, 0.1);
}

.product-image {
  min-height: 110px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f0f6f4;
  font-size: 38px;
}

.cart-list,
.table-like,
.task-list,
.product-list {
  display: grid;
  gap: 10px;
}

.cart-list div,
.table-like div,
.product-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #e3eaf0;
  border-radius: 8px;
  padding: 12px;
}

.table-like div {
  display: grid;
}

.order-row {
  display: grid;
  gap: 6px;
  text-align: left;
  cursor: pointer;
}

.order-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}

.order-detail-card {
  align-content: start;
}

.dispatch-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
}

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

.dispatch-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 14px;
  align-items: center;
  border: 1px solid #e3eaf0;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.dispatch-card strong,
.dispatch-card span,
.dispatch-card small {
  display: block;
}

.dispatch-card span,
.dispatch-card small,
.dispatch-meta {
  color: #66778a;
}

.warning-text {
  color: #9f5b00 !important;
}

.dispatch-meta {
  display: grid;
  gap: 4px;
  text-align: right;
}

.dispatch-actions {
  grid-column: 1 / -1;
}

.dispatch-side {
  align-content: start;
}

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

.rider-mini-list span {
  border: 1px solid #e3eaf0;
  border-radius: 8px;
  color: #66778a;
  padding: 10px;
}

.rider-mini-list .online {
  border-color: #17b978;
  color: #0c704a;
  background: #eaf8f2;
}

.progress-line {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 16px;
}

.progress-line span {
  min-height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #eff4f7;
  color: #66778a;
  font-size: 13px;
  text-align: center;
}

.progress-line span.done {
  background: #17b978;
  color: #fff;
}

.detail-list,
.order-items {
  display: grid;
  gap: 10px;
}

.detail-list div,
.order-items div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #edf2f5;
  padding-bottom: 8px;
}

.cart-total {
  display: grid;
  gap: 6px;
  border-top: 1px solid #e3eaf0;
  margin-top: 14px;
  padding-top: 14px;
}

.cart-total strong {
  font-size: 26px;
}

.merchant-switcher {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(320px, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.store-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.store-picker button {
  min-height: 38px;
  border: 1px solid #ccd9e2;
  border-radius: 999px;
  background: #fff;
  color: #1d2a36;
  padding: 0 14px;
}

.store-picker button.active {
  border-color: #17b978;
  background: #eaf8f2;
  color: #0c704a;
}

.business-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #dbe5ec;
  border-radius: 8px;
  background: #f7fbf9;
  padding: 12px;
  margin-bottom: 14px;
}

.state-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #9aa8b4;
}

.state-dot.on {
  background: #17b978;
  box-shadow: 0 0 0 4px rgba(23, 185, 120, 0.14);
}

.state-dot.off {
  background: #e35d5b;
  box-shadow: 0 0 0 4px rgba(227, 93, 91, 0.14);
}

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

.alert-list article {
  border: 1px solid #e3eaf0;
  border-radius: 8px;
  padding: 12px;
}

.alert-list strong,
.alert-list span,
.product-list small {
  display: block;
}

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

.earnings-grid article {
  border: 1px solid #dbe5ec;
  border-radius: 8px;
  background: #f7fbf9;
  padding: 12px;
}

.earnings-grid strong,
.earnings-grid span {
  display: block;
}

.earnings-grid strong {
  font-size: 22px;
}

.full {
  width: 100%;
  margin-top: 14px;
}

.life-hero {
  min-height: 390px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 28px;
  align-items: end;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(19, 38, 54, 0.95), rgba(63, 112, 93, 0.78)),
    url("https://images.unsplash.com/photo-1521737711867-e3b97375f902?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  padding: 48px 7vw;
}

.life-hero-copy h1 { max-width: 760px; margin: 0; font-size: 44px; line-height: 1.14; }
.life-hero-copy > p:not(.eyebrow) { max-width: 680px; color: #dce8ed; line-height: 1.7; }
.life-search-bar { max-width: 700px; min-height: 54px; display: grid; grid-template-columns: auto minmax(0, 1fr) 92px; gap: 8px; align-items: center; border-radius: 8px; background: #fff; padding: 7px; margin-top: 20px; }
.life-search-bar span { color: #0c7a55; font-size: 24px; padding-left: 10px; }
.life-search-bar input { min-height: 38px; border: 0; outline: 0; color: #172231; padding: 0 8px; }
.life-search-bar button { min-height: 40px; border: 0; border-radius: 7px; background: #17b978; color: #fff; font-weight: 800; }
.life-hero-stats { display: grid; gap: 1px; border: 1px solid rgba(255,255,255,0.24); border-radius: 8px; background: rgba(16, 38, 59, 0.48); padding: 7px; }
.life-hero-stats div { display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px solid rgba(255,255,255,0.15); padding: 14px 12px; }
.life-hero-stats div:last-child { border-bottom: 0; }
.life-hero-stats strong { font-size: 24px; }
.life-hero-stats span { color: #dce8ed; }
.life-category-section { padding-bottom: 22px; }
.life-category-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.life-category-card { min-height: 126px; display: grid; align-content: start; gap: 8px; border: 1px solid #dbe5ec; border-radius: 8px; background: #fff; color: #172231; padding: 15px; text-align: left; }
.life-category-card strong { font-size: 17px; }
.life-category-card small { min-height: 38px; color: #66778a; line-height: 1.45; }
.life-category-card b { color: #0c7a55; font-size: 13px; }
.life-category-card.active { border-color: #17b978; box-shadow: 0 0 0 2px rgba(23,185,120,0.12); }
.life-category-card.jobs { border-top: 4px solid #d9a441; }
.life-category-card.housing { border-top: 4px solid #5169c7; }
.life-category-card.secondhand { border-top: 4px solid #8b64ba; }
.life-category-card.service { border-top: 4px solid #17b978; }
.life-category-card.directory { border-top: 4px solid #2f8ca3; }
.life-content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: start; }
.life-feed { min-width: 0; }
.life-feed-head { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-bottom: 16px; }
.life-feed-head h2 { margin: 0; font-size: 26px; }
.life-feed-head > span { color: #66778a; }
.life-listing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.life-listing-card { display: grid; grid-template-columns: 118px minmax(0, 1fr); min-height: 164px; overflow: hidden; border: 1px solid #dbe5ec; border-radius: 8px; background: #fff; }
.listing-cover { display: grid; align-content: space-between; padding: 15px; background: #eaf8f2; color: #0c704a; }
.life-listing-card.housing .listing-cover { background: #edf1ff; color: #3d4da6; }
.life-listing-card.recruit .listing-cover { background: #fff6db; color: #946b16; }
.life-listing-card.secondhand .listing-cover { background: #f4edff; color: #69469d; }
.life-listing-card.yellow .listing-cover { background: #e8f6f8; color: #217284; }
.listing-cover span { font-size: 13px; font-weight: 800; }
.listing-cover b { font-size: 24px; }
.listing-body { display: grid; align-content: start; gap: 7px; padding: 15px; }
.listing-body .listing-type { color: #0c7a55; font-size: 12px; font-weight: 800; }
.listing-body strong { font-size: 17px; }
.listing-body p { margin: 0; color: #66778a; }
.listing-body > div { display: flex; justify-content: space-between; gap: 10px; align-items: end; margin-top: auto; }
.listing-body > div b { color: #172231; }
.listing-body > div small { color: #8a98a5; font-size: 11px; text-align: right; }
.life-publish-panel, .park-submit-panel { align-content: start; border: 1px solid #dbe5ec; border-radius: 8px; background: #fff; padding: 18px; }
.publish-note { display: grid; gap: 5px; border-top: 1px solid #e5edf1; margin-top: 16px; padding-top: 14px; }
.publish-note strong { color: #0c7a55; }
.publish-note span { color: #66778a; font-size: 13px; line-height: 1.55; }
.service-directory-band { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr); gap: 26px; align-items: center; border-top: 1px solid #dbe5ec; border-bottom: 1px solid #dbe5ec; background: #f1f7f5; }
.service-directory-band h2 { margin: 0; font-size: 28px; }
.service-directory-band p:not(.eyebrow) { color: #526273; line-height: 1.6; }
.service-directory-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.service-directory-items article { display: grid; gap: 6px; border: 1px solid #d1e4dc; border-radius: 8px; background: #fff; padding: 14px; }
.service-directory-items span { color: #66778a; font-size: 13px; }
.service-request-form { grid-column: 1 / -1; max-width: 760px; border-top: 1px solid #d1e4dc; padding-top: 18px; }
.service-request-form h3 { margin: 0; }
.empty-state { display: grid; gap: 8px; grid-column: 1 / -1; border: 1px dashed #bdcbd4; border-radius: 8px; padding: 30px; text-align: center; }
.empty-state span { color: #66778a; }
.industrial-hero-v2 { grid-template-columns: minmax(0, 1fr) 300px; align-items: end; }
.industrial-hero-panel { display: grid; gap: 10px; border: 1px solid rgba(255,255,255,0.25); border-radius: 8px; background: rgba(16, 38, 59, 0.45); padding: 20px; }
.industrial-hero-panel span { color: #9fe6cc; font-size: 13px; font-weight: 800; }
.industrial-hero-panel strong { font-size: 22px; }
.industrial-hero-panel small { color: #d6e5e6; line-height: 1.55; }
.industrial-hero-panel button { min-height: 38px; border: 1px solid rgba(255,255,255,0.4); border-radius: 7px; background: transparent; color: #fff; font-weight: 800; }
.park-summary-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; padding-top: 0; padding-bottom: 0; background: #dbe5ec; }
.park-summary-row div { display: grid; gap: 6px; background: #fff; padding: 18px; }
.park-summary-row span { color: #66778a; }
.park-summary-row strong { font-size: 28px; }
.park-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.park-card { border: 1px solid #dbe5ec; border-radius: 8px; background: #fff; padding: 18px; }
.park-card-top, .park-card-meta { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.park-card-top span { color: #0c7a55; font-weight: 800; }
.park-card-top b { color: #66778a; font-size: 13px; }
.park-card h3 { margin: 14px 0 8px; font-size: 22px; }
.park-card p { min-height: 48px; color: #66778a; line-height: 1.55; }
.park-progress { height: 7px; overflow: hidden; border-radius: 999px; background: #edf2f4; }
.park-progress span { display: block; height: 100%; border-radius: inherit; background: #17b978; }
.park-card-meta { align-items: end; margin-top: 14px; }
.park-card-meta > strong { font-size: 20px; }
.park-card-meta > small { color: #66778a; margin-right: auto; }
.park-content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: start; }
.park-story-feed { min-width: 0; }
.park-filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.park-filter-tabs button { min-height: 38px; display: grid; grid-template-columns: auto auto; gap: 8px; align-items: center; border: 1px solid #ccd9e2; border-radius: 7px; background: #fff; color: #172231; padding: 0 12px; }
.park-filter-tabs button small { color: #66778a; }
.park-filter-tabs button.active { border-color: #17b978; background: #eaf8f2; color: #0c704a; }
.park-story-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.park-story-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); overflow: hidden; border: 1px solid #dbe5ec; border-radius: 8px; background: #fff; }
.story-cover { display: grid; align-content: space-between; gap: 10px; background: #e8f6f8; color: #217284; padding: 14px; }
.park-story-card.event .story-cover { background: #fff6db; color: #946b16; }
.park-story-card.opening .story-cover { background: #f4edff; color: #69469d; }
.story-cover span { font-size: 12px; font-weight: 800; }
.story-cover b { font-size: 14px; line-height: 1.3; }
.park-story-card > div:last-child { display: grid; gap: 7px; padding: 14px; }
.park-story-card > div:last-child small { color: #0c7a55; }
.park-story-card > div:last-child strong { font-size: 17px; }
.park-story-card > div:last-child p { margin: 0; color: #66778a; line-height: 1.45; }
.park-story-card > div:last-child button { justify-self: start; border: 0; background: transparent; color: #0c7a55; font-weight: 800; padding: 0; }
.stack-form textarea { width: 100%; resize: vertical; border: 1px solid #cdd9e2; border-radius: 7px; padding: 10px 12px; font: inherit; }

.partner-hero {
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: center;
  color: #fff;
  background-size: cover;
  background-position: center;
  padding: 54px 7vw;
}

.merchant-partner-hero {
  background:
    linear-gradient(115deg, rgba(13, 32, 49, 0.94), rgba(143, 91, 43, 0.7)),
    url("https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?auto=format&fit=crop&w=1600&q=80");
}

.rider-partner-hero {
  background:
    linear-gradient(115deg, rgba(13, 32, 49, 0.94), rgba(8, 93, 145, 0.72)),
    url("https://images.unsplash.com/photo-1526367790999-0150786686a2?auto=format&fit=crop&w=1600&q=80");
}

.partner-hero-copy h1 { max-width: 760px; margin: 0; font-size: 44px; line-height: 1.14; }
.partner-hero-copy > p:not(.eyebrow) { max-width: 680px; color: #d9e7ef; line-height: 1.7; }
.partner-hero-panel, .rider-earnings-panel { display: grid; gap: 10px; border: 1px solid rgba(255,255,255,0.25); border-radius: 8px; background: rgba(16, 38, 59, 0.48); padding: 20px; }
.partner-hero-panel span, .rider-earnings-panel > span { color: #9fe6cc; font-size: 13px; font-weight: 800; }
.partner-hero-panel strong, .rider-earnings-panel > strong { font-size: 22px; }
.partner-hero-panel small { color: #d9e7ef; line-height: 1.55; }
.rider-earnings-panel div { display: grid; gap: 3px; border-top: 1px solid rgba(255,255,255,0.16); padding-top: 12px; }
.rider-earnings-panel div b { font-size: 16px; }
.rider-earnings-panel div small { color: #d9e7ef; }
.partner-role-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.partner-role-card { min-height: 190px; display: grid; align-content: start; gap: 9px; border: 1px solid #dbe5ec; border-radius: 8px; background: #fff; padding: 18px; }
.partner-role-card > span { color: #66778a; font-size: 11px; font-weight: 900; letter-spacing: 0.08em; }
.partner-role-card strong { font-size: 20px; }
.partner-role-card p { min-height: 42px; margin: 0; color: #66778a; line-height: 1.5; }
.partner-role-card button { justify-self: start; border: 0; background: transparent; color: #0c7a55; font-weight: 800; padding: 0; }
.partner-role-card.food { border-top: 4px solid #e36b3d; }
.partner-role-card.market { border-top: 4px solid #17b978; }
.partner-role-card.service { border-top: 4px solid #5169c7; }
.partner-role-card.enterprise { border-top: 4px solid #2f8ca3; }
.partner-flow-section { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 28px; align-items: center; background: #f4f8f7; }
.partner-flow-intro h2, .partner-apply-copy h2, .rider-flow-card h2 { margin: 0; font-size: 28px; }
.partner-flow-intro p:not(.eyebrow), .partner-apply-copy > p:not(.eyebrow) { color: #526273; line-height: 1.6; }
.partner-flow-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.partner-flow-steps div { display: grid; gap: 7px; border-left: 3px solid #17b978; padding: 7px 0 7px 14px; }
.partner-flow-steps b { color: #17b978; font-size: 20px; }
.partner-flow-steps span { color: #66778a; font-size: 13px; line-height: 1.45; }
.partner-apply-grid, .rider-apply-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1.2fr); gap: 28px; align-items: start; }
.partner-check-list { display: grid; gap: 10px; color: #0c7a55; font-weight: 700; }
.partner-form-panel { border: 1px solid #dbe5ec; border-radius: 8px; background: #fff; padding: 20px; }
.partner-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.partner-form label { display: grid; gap: 6px; color: #526273; font-size: 13px; font-weight: 800; }
.partner-form input, .partner-form select { width: 100%; min-height: 42px; border: 1px solid #cdd9e2; border-radius: 7px; background: #fff; color: #172231; padding: 0 12px; font: inherit; }
.full-field { grid-column: 1 / -1; }
.rider-benefit-layout { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 28px; align-items: center; }
.rider-benefit-layout > div > p:not(.eyebrow) { color: #526273; line-height: 1.6; }
.rider-benefit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rider-benefit-grid article { display: grid; gap: 7px; border: 1px solid #dbe5ec; border-radius: 8px; background: #fff; padding: 16px; }
.rider-benefit-grid span { color: #66778a; line-height: 1.45; }
.rider-flow-card { display: grid; gap: 14px; }
.rider-flow-card > div { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center; border-bottom: 1px solid #e3eaf0; padding: 10px 0; }
.rider-flow-card > div b { color: #17b978; font-size: 20px; }
.partner-form fieldset { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; grid-column: 1 / -1; border: 1px solid #dbe5ec; border-radius: 7px; padding: 12px; }
.partner-form legend { grid-column: 1 / -1; color: #526273; font-size: 13px; font-weight: 800; }
.partner-form .check-field { display: flex; grid-template-columns: none; align-items: center; gap: 7px; color: #172231; font-weight: 500; }
.partner-form .check-field input { width: auto; min-height: auto; }
.app-download-hero { min-height: 500px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: center; color: #fff; background: linear-gradient(115deg, rgba(13,32,49,0.96), rgba(43,104,110,0.72)), url("https://images.unsplash.com/photo-1512941937669-90a1b58e7e9c?auto=format&fit=crop&w=1600&q=80"); background-size: cover; background-position: center; padding: 54px 7vw; }
.app-download-copy h1 { max-width: 740px; margin: 0; font-size: 44px; line-height: 1.14; }
.app-download-copy > p:not(.eyebrow) { max-width: 650px; color: #d9e7ef; line-height: 1.7; }
.app-platform-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.app-platform-row span { border: 1px solid rgba(255,255,255,0.3); border-radius: 999px; padding: 7px 12px; color: #d9e7ef; }
.app-preview { min-height: 410px; display: grid; align-content: start; gap: 14px; border: 10px solid rgba(255,255,255,0.25); border-radius: 30px; background: #fff; color: #172231; padding: 22px; box-shadow: 0 28px 70px rgba(0,0,0,0.22); }
.app-preview-top { display: flex; justify-content: space-between; color: #0c7a55; font-weight: 800; }
.app-preview-search { border: 1px solid #e0e8ee; border-radius: 8px; color: #66778a; padding: 13px; }
.app-preview-block { display: grid; gap: 8px; border-radius: 8px; background: #eaf8f2; padding: 16px; }
.app-preview-block span { color: #526273; }
.app-preview-block.dark { background: #10263b; color: #fff; }
.app-preview-block.dark span { color: #c4d4df; }
.app-role-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.app-role-card { display: grid; gap: 10px; border: 1px solid #dbe5ec; border-radius: 8px; background: #fff; padding: 18px; }
.app-role-card.user { border-top: 4px solid #17b978; }
.app-role-card.merchant { border-top: 4px solid #d9a441; }
.app-role-card.rider { border-top: 4px solid #5169c7; }
.app-role-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 8px; background: #eaf8f2; color: #0c7a55; font-weight: 900; }
.app-role-card.merchant .app-role-icon { background: #fff6db; color: #946b16; }
.app-role-card.rider .app-role-icon { background: #edf1ff; color: #3d4da6; }
.app-role-card strong { font-size: 20px; }
.app-role-card p, .app-role-card span { margin: 0; color: #66778a; line-height: 1.5; }
.app-role-card button, .app-code-box button { min-height: 40px; border: 1px solid #ccd9e2; border-radius: 7px; background: #fff; color: #172231; font-weight: 800; padding: 0 14px; }
.app-install-section { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: center; background: #f4f8f7; }
.app-install-section h2 { margin: 0; font-size: 28px; }
.app-install-section p:not(.eyebrow) { color: #526273; line-height: 1.6; }
.app-code-box { display: grid; gap: 10px; justify-items: center; border: 1px solid #dbe5ec; border-radius: 8px; background: #fff; padding: 18px; text-align: center; }
.code-grid { width: 132px; height: 132px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 10px; background: #172231; }
.code-grid span { background: #fff; }
.code-grid span:nth-child(2n) { background: #17b978; }
.app-code-box small { color: #66778a; }

.join-hero,
.download-hero {
  min-height: 440px;
  display: grid;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(13, 32, 49, 0.94), rgba(12, 128, 91, 0.72)),
    url("https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  padding: 54px 7vw;
}

.rider-bg {
  background:
    linear-gradient(115deg, rgba(13, 32, 49, 0.94), rgba(8, 93, 145, 0.72)),
    url("https://images.unsplash.com/photo-1526367790999-0150786686a2?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
}

.download-hero {
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 1fr);
  gap: 28px;
}

.industrial-hero {
  min-height: 420px;
  display: grid;
  align-items: end;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(11, 29, 45, 0.92), rgba(35, 106, 116, 0.7)),
    url("https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  padding: 54px 7vw;
}

.industrial-hero > div {
  max-width: 820px;
}

.industrial-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: 46px;
  line-height: 1.12;
}

.industrial-hero p {
  max-width: 700px;
  color: #d6e5e6;
  font-size: 18px;
  line-height: 1.7;
}

.download-cards {
  grid-template-columns: 1fr;
}

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

.join-form {
  max-width: 560px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 8px;
  background: rgba(255,255,255,0.13);
  padding: 18px;
  backdrop-filter: blur(10px);
}

.join-form input,
.join-form select {
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  background: #fff;
  color: #1d2a36;
  padding: 0 12px;
}

.join-form label {
  min-height: 42px;
  display: flex;
  gap: 8px;
  align-items: center;
  border-radius: 7px;
  background: rgba(255,255,255,0.16);
  color: #fff;
  padding: 0 12px;
}

.join-form button {
  grid-column: 1 / -1;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.park-grid,
.article-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.listing-grid article,
.park-grid article,
.article-list article {
  display: grid;
  gap: 8px;
}

.listing-grid span,
.park-grid article > span,
.article-list article > span {
  color: #17b978;
  font-weight: 800;
}

.park-grid article,
.article-list article {
  border: 1px solid #dbe5ec;
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.park-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.park-meta b {
  border-radius: 999px;
  background: #f0f6f4;
  color: #19664d;
  padding: 6px 10px;
  font-size: 13px;
}

.local-sidebar {
  align-content: start;
}

.local-stats {
  display: grid;
  gap: 10px;
  border-top: 1px solid #e3eaf0;
  margin-top: 16px;
  padding-top: 16px;
}

.local-stats div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #e3eaf0;
  border-radius: 8px;
  padding: 10px 12px;
}

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

.backup-list article {
  display: grid;
  gap: 4px;
  border: 1px solid #e3eaf0;
  border-radius: 8px;
  padding: 12px;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
}

.admin-rail {
  background: #10263b;
  padding: 24px 16px;
}

.admin-nav {
  display: grid;
  gap: 14px;
}

.admin-nav-section {
  display: grid;
  gap: 6px;
}

.admin-nav-label {
  color: rgba(213, 226, 236, 0.58);
  font-size: 12px;
  font-weight: 800;
  padding: 0 12px;
}

.admin-nav button {
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #d5e2ec;
  text-align: left;
  padding: 0 12px;
}

.admin-nav button.active,
.admin-nav button:hover {
  background: #203d59;
  color: #fff;
}

.admin-tools {
  border-top: 1px solid rgba(255,255,255,0.14);
  margin-top: 18px;
  padding-top: 16px;
}

.admin-tools button {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 7px;
  background: transparent;
  color: #fff;
  margin-top: 12px;
}

.admin-main {
  padding: 28px;
}

.admin-command-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.admin-command-card {
  min-height: 132px;
  display: grid;
  align-content: center;
  gap: 8px;
  border: 1px solid #dbe5ec;
  border-radius: 8px;
  background: #fff;
  color: #172231;
  text-align: left;
  padding: 16px;
}

.admin-command-card:hover {
  border-color: #17b978;
  box-shadow: 0 8px 22px rgba(20, 28, 36, 0.08);
}

.admin-command-card span,
.admin-command-card small {
  color: #66778a;
}

.admin-command-card strong {
  font-size: 34px;
}

.admin-login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    linear-gradient(120deg, rgba(16, 38, 59, 0.94), rgba(15, 130, 91, 0.82)),
    url("https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  padding: 24px;
}

.site-account-link {
  min-height: 38px;
  border: 1px solid #cbd9e2;
  border-radius: 7px;
  background: #fff;
  color: #172231;
  white-space: nowrap;
}

.role-login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(135deg, #eef8f5, #f8fbfd);
}

.role-login-card {
  width: min(480px, 100%);
  display: grid;
  gap: 14px;
  border: 1px solid #dbe5ec;
  border-radius: 8px;
  background: #fff;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(20, 48, 65, 0.12);
}

.role-login-card h1,
.role-page-title h1 {
  margin: 0;
}

.role-register-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8493a4;
  font-size: 12px;
}

.role-register-divider::before,
.role-register-divider::after {
  content: '';
  height: 1px;
  flex: 1;
  background: #e3eaf0;
}

.role-login-actions {
  justify-content: space-between;
}

.role-shell {
  min-height: 100vh;
  background: #f5f8fa;
}

.role-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #dbe5ec;
  background: #fff;
  padding: 14px max(20px, calc((100vw - 1240px) / 2));
}

.role-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.role-header-actions > button {
  min-height: 36px;
  border: 1px solid #cbd9e2;
  border-radius: 7px;
  background: #fff;
}

.role-security-panel {
  width: min(1240px, calc(100% - 40px));
  margin: 18px auto 0;
  padding: 18px;
}

.role-security-panel .section-head {
  margin-bottom: 12px;
}

.role-security-panel .section-head > button {
  min-width: 34px;
  min-height: 34px;
  border: 1px solid #cbd9e2;
  border-radius: 7px;
  background: #fff;
  font-size: 20px;
  line-height: 1;
}

.role-security-panel .compact-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
}

.role-security-panel .compact-form button {
  min-height: 42px;
}

.role-main {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0 60px;
}

.role-page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.role-metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.role-metric {
  min-height: 96px;
  display: grid;
  align-content: center;
  gap: 8px;
  border: 1px solid #dbe5ec;
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.role-metric span,
.role-metric strong {
  color: #66778a;
}

.role-metric strong {
  color: #172231;
  font-size: 26px;
}

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

.admin-login-card {
  width: min(460px, 100%);
  display: grid;
  gap: 16px;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 8px;
  background: rgba(255,255,255,0.96);
  padding: 26px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.25);
}

.admin-login-card h1 {
  margin: 0;
  font-size: 30px;
}

.admin-login-card > button:not(.site-brand) {
  min-height: 40px;
  border: 1px solid #cdd9e2;
  border-radius: 7px;
  background: #fff;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.metric-row div {
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 8px;
  border: 1px solid #dbe5ec;
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.metric-row span {
  color: #66778a;
}

.metric-row strong {
  font-size: 28px;
}

.admin-grid-panels {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 18px;
}

.module-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.module-admin-grid button {
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 4px;
  border: 1px solid #dbe5ec;
  border-radius: 8px;
  background: #fff;
}

.module-admin-grid .enabled {
  border-color: #17b978;
}

.module-admin-grid .disabled {
  color: #8493a4;
  background: #f1f4f6;
}

.task-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid #e3eaf0;
  border-radius: 8px;
  padding: 12px;
}

.task-list article span {
  grid-column: 1;
}

.task-list article .actions,
.application-edit-form {
  grid-column: 1 / -1;
}

.application-edit-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed #dbe5ec;
}

.application-edit-form button {
  justify-self: start;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.ops-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  border: 1px solid #e3eaf0;
  border-radius: 8px;
  background: #f8fbfd;
  padding: 12px;
}

.ops-list span {
  color: #66778a;
}

.ops-list b {
  grid-row: 1 / span 2;
  grid-column: 2;
  font-size: 14px;
  color: #172231;
}

.ops-list button {
  grid-row: 1 / span 2;
  grid-column: 2;
  min-width: 82px;
}

button.danger {
  color: #9f1f2f;
  background: #fff0f2;
}

.security-list {
  display: grid;
  gap: 10px;
  color: #66778a;
  padding-left: 20px;
}

.compact-form {
  margin-bottom: 16px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  border-radius: 8px;
  background: #10263b;
  color: #fff;
  padding: 12px 16px;
  box-shadow: 0 12px 30px rgba(20, 28, 36, 0.18);
}

@media (max-width: 980px) {
  .site-header,
  .home-hero,
  .home-channel-grid,
  .home-highlights,
  .discovery-grid,
  .life-hero,
  .life-content-grid,
  .service-directory-band,
  .park-content-grid,
  .partner-hero,
  .app-download-hero,
  .partner-flow-section,
  .partner-apply-grid,
  .rider-benefit-layout,
  .rider-apply-grid,
  .app-install-section,
  .split-public,
  .order-layout,
  .order-detail-layout,
  .dispatch-board,
  .store-detail-hero,
  .merchant-switcher,
  .industrial-hero,
  .download-hero,
  .admin-shell,
  .admin-grid-panels,
  .admin-command-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    position: static;
    padding: 14px;
  }

  .role-header,
  .role-page-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .role-header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .role-security-panel .compact-form {
    grid-template-columns: 1fr;
  }

  .food-discovery-hero {
    flex-direction: column;
  }

  .food-discovery-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .role-grid,
  .role-metric-row {
    grid-template-columns: 1fr;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: start;
  }

  .hero-copy h1,
  .life-hero-copy h1,
  .join-hero h1,
  .industrial-hero h1,
  .download-hero h1 {
    font-size: 34px;
  }

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

  .service-grid,
  .life-category-grid,
  .life-listing-grid,
  .park-card-grid,
  .park-story-grid,
  .partner-role-grid,
  .partner-flow-steps,
  .rider-benefit-grid,
  .app-role-grid,
  .entry-grid,
  .metric-row,
  .earnings-grid,
  .join-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer {
    display: grid;
  }

  .store-detail-hero {
    align-items: start;
  }

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

  .store-picker {
    justify-content: flex-start;
  }

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

  .life-search-bar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .life-search-bar button {
    grid-column: 1 / -1;
  }

  .partner-form fieldset {
    grid-template-columns: 1fr;
  }
}
