:root {
  --green-900: #005b28;
  --green-800: #006d32;
  --green-700: #007d3b;
  --green-500: #18a34a;
  --lime: #9bd33f;
  --mint: #e9f7e9;
  --ink: #1d2a22;
  --muted: #68766e;
  --line: #dfe8df;
  --soft: #f5f8f3;
  --paper: #ffffff;
  --warn: #b45309;
  --danger: #b91c1c;
  --shadow: 0 20px 55px rgba(15, 92, 44, 0.12);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Noto Sans Thai", system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fff, var(--soft) 48%, #fff);
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.container { width: min(92vw, 1440px); margin-inline: auto; }
.topbar {
  min-height: 38px;
  display: flex;
  align-items: center;
  color: #fff;
  background: linear-gradient(90deg, var(--green-900), #007c39);
  font-size: 14px;
  font-weight: 700;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.icon-text { display: inline-flex; align-items: center; gap: 8px; }
.auth-locked { overflow: hidden; }
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(12, 32, 20, 0.72);
  backdrop-filter: blur(10px);
}
.auth-overlay[hidden] { display: none; }
.auth-card {
  width: min(94vw, 440px);
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.auth-card h2 { margin: 10px 0 6px; color: var(--green-800); font-size: 26px; font-weight: 900; }
.auth-card p { margin: 0 0 16px; color: var(--muted); line-height: 1.6; font-weight: 700; }
.auth-message { min-height: 22px; color: var(--danger); font-size: 13px; font-weight: 850; }
.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
}
.auth-badge .tag { background: rgba(255,255,255,0.18); color: #fff; }
.auth-mini-button {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}
.auth-card { position: relative; }
.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: #334155;
  font-size: 20px;
  font-weight: 900;
}
.login-hints {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid rgba(223, 232, 223, 0.78);
  backdrop-filter: blur(18px);
}
.nav {
  min-height: 88px;
  display: grid;
  grid-template-columns: 170px 1fr auto;
  gap: 22px;
  align-items: center;
}
.brand img { width: 140px; display: block; }
.menu {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: #28362e;
  font-weight: 800;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
}
.menu a.active, .menu a:hover { color: var(--green-700); }
.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.pill-button, .ghost-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 900;
}
.pill-button {
  color: #fff;
  background: linear-gradient(135deg, var(--green-700), #006d32);
  box-shadow: 0 14px 28px rgba(0, 109, 50, 0.18);
}
.ghost-button { color: var(--green-800); background: #fff; border: 1px solid var(--line); }
.home-login-panel {
  max-width: 1080px;
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}
.home-login-panel strong { display: block; font-size: 20px; color: var(--ink); }
.home-login-panel span { color: var(--muted); font-weight: 750; }
.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 20px;
}
.audit-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf8;
  color: var(--muted);
  font-weight: 750;
}
.market-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.flow-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.flow-card strong { display: block; margin-bottom: 6px; color: var(--ink); }
.flow-card small { color: var(--muted); font-weight: 750; }
.marketplace-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.market-hero {
  padding: 42px 0 20px;
  background: linear-gradient(180deg, #f3fbf4, #fff);
}
.market-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
}
.market-hero h1 {
  margin: 8px 0;
  color: var(--green-900);
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.05;
  font-weight: 900;
}
.market-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 190px 190px;
  gap: 12px;
  margin-top: 20px;
}
.market-categories {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 0 8px;
}
.market-category {
  min-width: 132px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 16px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--green-800);
  font-weight: 900;
  text-align: center;
}
.market-category.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--green-800), var(--green-500));
}
.market-shelf {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.market-product-card {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 92, 44, 0.08);
}
.market-product-art {
  height: 188px;
  display: grid;
  place-items: center;
  padding: 18px;
  background: linear-gradient(135deg, var(--product-a, #e7f7eb), var(--product-b, #dff2ff));
}
.market-product-art img {
  max-width: 100%;
  max-height: 154px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 16px 18px rgba(15, 23, 42, 0.13));
}
.product-pack {
  width: 118px;
  min-height: 130px;
  display: grid;
  place-items: center;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.95);
  box-shadow: 0 18px 30px rgba(0,0,0,0.12);
  color: var(--green-800);
  font-weight: 900;
  text-align: center;
}
.market-product-body { padding: 16px; }
.market-product-body h3 {
  min-height: 52px;
  max-height: 68px;
  overflow: hidden;
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.35;
}
.market-product-body p {
  min-height: 42px;
  max-height: 44px;
  overflow: hidden;
  margin: 10px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 700;
}
.market-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: var(--green-800);
  font-weight: 900;
}
.market-price small {
  color: var(--muted);
  text-decoration: line-through;
}
.market-price .net-price {
  font-size: 20px;
}
.market-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 0 16px 16px;
}
.brand-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.brand-chip {
  min-width: 150px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 900;
  color: var(--green-800);
  text-align: center;
}
.center-product-panel[hidden] { display: none; }
.product-type-list { display: grid; gap: 10px; }
.product-type-pill {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.profile-photo-preview {
  min-height: 180px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf8;
}
.profile-photo-preview img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.weekday-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.weekday-grid label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}
.shop-main-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.shop-main-tabs a {
  min-height: 76px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--green-800);
  font-weight: 900;
  text-align: center;
}
.shop-main-tabs i { color: var(--green-700); }
.page-head {
  padding: 34px 0 20px;
}
.page-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 12px;
  color: var(--green-800);
  background: var(--mint);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}
h1 { margin: 12px 0 8px; color: var(--green-800); font-size: clamp(32px, 4vw, 58px); line-height: 1.08; font-weight: 900; }
.page-title p { max-width: 820px; margin: 0; color: var(--muted); line-height: 1.8; font-weight: 650; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.section { padding: 18px 0 54px; }
.panel, .card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(25, 75, 43, 0.06);
}
.card { padding: 20px; min-height: 142px; }
.card i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--green-700);
  background: var(--mint);
  border-radius: 50%;
  margin-bottom: 14px;
}
.card h3 { margin: 0 0 8px; color: var(--green-800); font-size: 18px; font-weight: 900; }
.card p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 14px; font-weight: 650; }
.panel-head {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 8px;
}
.panel-head h2, .panel-head h3 { margin: 0; color: var(--green-700); font-size: 20px; font-weight: 900; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px 18px 18px; }
.form-row { display: grid; gap: 6px; min-width: 0; }
.form-row.full { grid-column: 1 / -1; }
.form-row label { color: #34443b; font-size: 13px; font-weight: 850; }
.check-row {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: #334238;
  background: #fbfdf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
}
.check-row input { width: 18px; height: 18px; accent-color: var(--green-700); }
.history-old {
  color: #9aa3a0;
  text-decoration: line-through;
  font-weight: 850;
}
.permission-summary {
  margin: 0 18px 18px;
  padding: 12px;
  color: var(--green-800);
  background: var(--mint);
  border: 1px solid #cfe9d0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 850;
}
.input, .select, .textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
}
.textarea { min-height: 90px; resize: vertical; }
.table-wrap { overflow-x: auto; padding: 8px 18px 18px; }
table { width: 100%; min-width: 680px; border-collapse: collapse; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 14px; }
th { color: var(--green-800); background: #f7fbf5; font-weight: 900; }
td { color: #334238; font-weight: 650; }
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: var(--green-800);
  background: var(--mint);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
}
.tag.warn { color: var(--warn); background: #fff7ed; }
.tag.danger { color: var(--danger); background: #fef2f2; }
.barcode-line { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 850; }
.pos-hero {
  padding: 34px 0 22px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(0, 91, 40, 0.94), rgba(0, 125, 59, 0.88)),
    radial-gradient(circle at 85% 18%, rgba(155, 211, 63, 0.45), transparent 28%),
    #006d32;
}
.pos-hero-grid {
  min-height: 380px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: center;
}
.pos-hero h1 { color: #fff; max-width: 760px; }
.pos-hero p { max-width: 760px; margin: 0; color: rgba(255,255,255,0.86); line-height: 1.8; font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.pos-hero .ghost-button { background: rgba(255,255,255,0.96); }
.pos-hero-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.26);
  border-radius: 14px;
  backdrop-filter: blur(18px);
}
.pos-screen-row, .pos-scan-demo {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.94);
  color: var(--ink);
  border-radius: 10px;
}
.pos-screen-row span { color: var(--muted); font-size: 13px; font-weight: 850; }
.pos-screen-row strong { color: var(--green-800); font-size: 24px; font-weight: 900; }
.pos-screen-row.warn strong { color: var(--warn); }
.pos-scan-demo { justify-content: flex-start; color: var(--green-800); font-weight: 900; }
.pos-barcode-input { min-height: 52px; font-size: 18px; font-weight: 850; }
.pos-alert {
  margin: 14px 18px 0;
  padding: 14px;
  color: var(--green-800);
  background: var(--mint);
  border: 1px solid #cbe8cf;
  border-radius: 8px;
  font-weight: 850;
}
.pos-alert.is-danger {
  color: var(--danger);
  background: #fef2f2;
  border-color: #fecaca;
}
.home-hero {
  padding: 48px 0 34px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(0, 91, 40, 0.94), rgba(0, 125, 59, 0.84)),
    #006d32;
}
.home-hero-grid {
  min-height: 420px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 28px;
  align-items: center;
}
.home-hero h1 { color: #fff; max-width: 820px; }
.home-hero p { max-width: 820px; margin: 0; color: rgba(255,255,255,0.86); line-height: 1.8; font-weight: 700; }
.home-pr-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.26);
  border-radius: 14px;
  backdrop-filter: blur(18px);
}
.home-pr-panel div {
  min-height: 76px;
  display: grid;
  gap: 4px;
  padding: 16px;
  color: var(--ink);
  background: rgba(255,255,255,0.94);
  border-radius: 10px;
}
.home-pr-panel span { color: var(--muted); font-size: 13px; font-weight: 850; }
.home-pr-panel strong { color: var(--green-800); font-size: 24px; font-weight: 900; }
.home-media-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 16px;
  align-items: stretch;
}
.ad-slider {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}
.ad-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 26px;
  color: #fff;
  opacity: 0;
  transform: translateX(18px);
  transition: opacity 420ms ease, transform 420ms ease;
  background: linear-gradient(135deg, rgba(0, 91, 40, 0.88), rgba(0, 125, 59, 0.72)), var(--slide-bg, #007d3b);
}
.ad-slide.is-active { opacity: 1; transform: translateX(0); }
.ad-slide h3 { margin: 0; font-size: 30px; line-height: 1.18; font-weight: 900; }
.ad-slide p { max-width: 680px; margin: 0; color: rgba(255,255,255,0.9); line-height: 1.65; font-weight: 750; }
.ad-dots { position: absolute; left: 22px; bottom: 18px; display: flex; gap: 8px; }
.ad-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,0.5); }
.ad-dots button.is-active { width: 26px; background: #fff; }
.embed-card {
  min-height: 260px;
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.embed-card iframe { width: 100%; min-height: 220px; border: 0; border-radius: 8px; background: #f1f5f1; }
.facebook-timeline {
  min-height: 220px;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 14px;
  color: #26372d;
  background: #f7fbf7;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.facebook-post { padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.facebook-post strong { display: block; color: var(--green-800); }
.facebook-post span { display: block; color: var(--muted); font-size: 13px; font-weight: 750; }
.apply-cards .card {
  display: grid;
  align-content: start;
  gap: 10px;
}
.apply-cards { grid-template-columns: minmax(0, 1fr); }
.signup-card-shop { border-left: 6px solid var(--green-700); }
.signup-card-job { border-left: 6px solid #2563eb; }
.signup-card-member { border-left: 6px solid #9333ea; }
.signup-card-supplier { border-left: 6px solid var(--warn); }
.apply-cards .pill-button { align-self: end; margin-top: 4px; }
.apply-center { overflow: hidden; }
.apply-cards .card.is-active {
  border-color: var(--green-500);
  box-shadow: 0 16px 38px rgba(0, 125, 59, 0.14);
}
.apply-cards button { border: 0; }
.apply-empty {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 18px;
  color: var(--muted);
  background: #fbfdf9;
  border: 1px dashed #c8d8c8;
  border-radius: 8px;
  font-weight: 850;
}
.apply-empty[hidden], .apply-form-panel[hidden] { display: none; }
.apply-form-panel, .apply-form {
  margin: 14px 0 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.apply-form {
  width: min(100%, 820px);
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-6px);
  transition: max-height 420ms ease, opacity 260ms ease, transform 300ms ease, margin-top 260ms ease;
}
.apply-form.is-open {
  max-height: var(--apply-form-height, 2400px);
  margin-top: 14px;
  opacity: 1;
  transform: translateY(0);
}
.apply-form.is-collapsing {
  max-height: 0 !important;
  margin-top: 0;
  opacity: 0;
  transform: translateY(-6px);
}
.panel-head.compact { padding-top: 16px; }
.apply-large-form {
  grid-template-columns: minmax(0, 1fr);
  padding: 10px 14px 14px;
}
.file-upload-status {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: var(--muted);
  background: #fbfdf9;
  border: 1px dashed #c8d8c8;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
}
.file-upload-status::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #c4cec5;
}
.file-upload-status.is-ready {
  color: var(--green-800);
  background: var(--mint);
  border-style: solid;
  border-color: #cfe9d0;
}
.file-upload-status.is-ready::before {
  background: var(--green-500);
}
.file-upload-status.is-loading {
  color: var(--warn);
  background: #fff7ed;
  border-style: solid;
  border-color: #fed7aa;
}
.file-upload-status.is-loading::before {
  background: var(--warn);
}
.form-section-title {
  min-height: 38px;
  align-items: end;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.form-section-title span {
  color: var(--green-800);
  font-size: 15px;
  font-weight: 900;
}
.inline-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.inline-control .ghost-button {
  min-width: 96px;
  white-space: nowrap;
}
.icon-only {
  width: 42px;
  min-width: 42px !important;
  padding: 0;
}
.icon-only.is-on {
  color: #fff;
  background: var(--green-700);
  border-color: var(--green-700);
}
.pending-list {
  display: grid;
  gap: 10px;
  padding: 14px 18px 18px;
}
.pending-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: #fbfdf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.pending-item strong {
  display: block;
  color: var(--green-800);
  font-weight: 900;
}
.pending-item span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.5;
}
.pending-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.editor-preview-list, .admin-directory, .report-filter-grid, .bigdata-grid, .shop-kpi-grid {
  display: grid;
  gap: 12px;
}
.editor-preview-list { padding: 14px 18px 18px; }
.editor-preview-item, .admin-directory-item, .bigdata-node, .shop-kpi {
  padding: 14px;
  background: #fbfdf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.editor-preview-item strong, .admin-directory-item strong, .bigdata-node strong, .shop-kpi strong {
  color: var(--green-800);
  font-weight: 900;
}
.editor-preview-item span, .admin-directory-item span, .bigdata-node span, .shop-kpi span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.5;
}
.pos-software-hero {
  padding: 24px 0;
  color: #fff;
  background: linear-gradient(135deg, var(--green-900), #007d3b);
}
.pos-software-hero .container { display: grid; gap: 12px; }
.pos-software-hero h1 { max-width: 1040px; color: #fff; }
.pos-software-hero p { max-width: 980px; margin: 0; color: rgba(255,255,255,0.88); line-height: 1.7; font-weight: 750; }
.cashier-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
  padding: 14px 18px 18px;
}
.pos-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
  gap: 16px;
}
.pos-full { grid-column: 1 / -1; }
.customer-secure {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
  padding: 14px 18px 18px;
  align-items: end;
}
.customer-result {
  grid-column: 1 / -1;
  padding: 12px;
  color: var(--green-800);
  background: var(--mint);
  border: 1px solid #cfe9d0;
  border-radius: 8px;
  font-weight: 850;
}
.customer-result[hidden] { display: none; }
.payment-summary-box { display: grid; gap: 10px; padding: 14px 18px 18px; }
.payment-total {
  padding: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--green-700), #006d32);
  border-radius: 8px;
}
.payment-total span { display: block; color: rgba(255,255,255,0.82); font-size: 13px; font-weight: 850; }
.payment-total strong { font-size: 34px; font-weight: 900; }
.pos-cart-panel table { min-width: 780px; }
.print-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.print-actions .pill-button {
  grid-column: 1 / -1;
}
.backend-home { display: grid; gap: 18px; }
.quick-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.quick-action {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  color: var(--green-800);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 900;
  box-shadow: 0 10px 26px rgba(25, 75, 43, 0.06);
}
.quick-action.primary { color: #fff; background: linear-gradient(135deg, var(--green-700), #006d32); border-color: transparent; }
.quick-action i { width: 28px; height: 28px; flex: 0 0 auto; }
.dashboard-metrics { align-items: stretch; }
.metric-card {
  min-height: 118px;
  display: grid;
  gap: 4px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(25, 75, 43, 0.06);
}
.metric-card span { color: var(--muted); font-size: 13px; font-weight: 850; }
.metric-card strong { color: var(--green-800); font-size: 36px; line-height: 1; font-weight: 900; }
.metric-card small { color: #46564c; font-weight: 750; }
.backend-groups .panel { min-height: 100%; }
.work-list, .task-list, .role-grid { display: grid; gap: 10px; padding: 14px 18px 18px; }
.work-list a {
  min-height: 82px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdf9;
}
.work-list a i { grid-row: span 2; color: var(--green-700); }
.work-list a strong { color: var(--green-800); font-size: 16px; font-weight: 900; }
.work-list a span { color: var(--muted); font-size: 13px; font-weight: 700; line-height: 1.45; }
.task-list a {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.task-list a:last-child { border-bottom: 0; }
.task-dot { width: 10px; height: 10px; display: inline-block; border-radius: 999px; background: var(--green-500); }
.task-dot.warn { background: var(--warn); }
.task-list strong { color: #26372d; font-weight: 900; }
.task-list small { grid-column: 2; color: var(--muted); font-weight: 700; }
.role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.role-grid a {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.role-grid i { color: var(--green-700); }
.role-grid span { color: var(--muted); font-size: 12px; font-weight: 850; }
.role-grid strong { color: var(--green-800); font-size: 14px; font-weight: 900; }
.footer {
  color: #fff;
  background: linear-gradient(90deg, var(--green-900), #00833d);
}
.footer .container { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-weight: 700; }
.footer img { width: 118px; filter: brightness(0) invert(1); }
@media (max-width: 1100px) {
  .nav { grid-template-columns: 150px 1fr; }
  .nav .ghost-button, .nav-actions { grid-column: 1 / -1; justify-self: start; }
  .pos-hero-grid { grid-template-columns: 1fr; }
  .home-hero-grid { grid-template-columns: 1fr; }
  .home-media-grid, .pos-layout { grid-template-columns: 1fr; }
  .cashier-bar, .customer-secure { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .topbar .container, .footer .container { flex-direction: column; align-items: flex-start; padding: 12px 0; }
  .nav, .page-title, .grid-2, .grid-3, .grid-4, .form-grid { grid-template-columns: 1fr; }
  .home-login-panel, .profile-grid, .market-flow, .marketplace-item, .shop-main-tabs, .weekday-grid, .market-hero-inner, .market-toolbar, .market-shelf { grid-template-columns: 1fr; }
  .brand img { width: 116px; }
  .page-title { padding: 20px; }
  .pill-button, .ghost-button { width: 100%; }
  .nav-actions { width: 100%; }
  .quick-actions, .role-grid { grid-template-columns: 1fr; }
  .quick-action { min-height: 58px; }
  .print-actions { grid-template-columns: 1fr; }
  .apply-form-panel, .apply-empty { margin: 12px; }
  .inline-control, .pending-item, .cashier-bar, .customer-secure { grid-template-columns: 1fr; }
  .inline-control .ghost-button { width: 100%; }
  table { min-width: 560px; }
}
