:root {
  color-scheme: light;
  --bg: #fbfcf8;
  --surface: #ffffff;
  --surface-soft: #f4f8f1;
  --ink: #172019;
  --muted: #68736c;
  --subtle: #dfe5dd;
  --line: #e8ede6;
  --green: #0fa329;
  --green-strong: #07851f;
  --green-soft: #e8f7e9;
  --red: #d9363e;
  --blue: #1376c8;
  --blue-soft: #eaf6ff;
  --amber: #f3a712;
  --shadow: 0 14px 34px rgba(20, 32, 24, 0.1);
  --shadow-soft: 0 8px 22px rgba(20, 32, 24, 0.08);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.admin-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 2px 12px;
}

.admin-shop-heading {
  min-width: 0;
}

.admin-shop-heading h1 {
  margin: 0;
  color: var(--green-strong);
  font-size: 1.62rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.admin-shop-heading p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.25;
}

.admin-menu-button {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-content: center;
  gap: 5px;
  border: 1px solid #d7e5d8;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  padding: 0;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.admin-menu-button:hover {
  border-color: #b9e4bf;
  background: var(--green-soft);
}

.admin-menu-button:active {
  transform: scale(0.98);
}

.admin-menu-button[aria-expanded="true"] {
  border-color: var(--green-strong);
  background: var(--green-strong);
  color: #fff;
}

.admin-menu-line {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: 50% 50%;
  transition:
    opacity 160ms ease,
    transform 220ms ease;
}

.admin-menu-button[aria-expanded="true"] .admin-menu-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.admin-menu-button[aria-expanded="true"] .admin-menu-line:nth-child(2) {
  opacity: 0;
}

.admin-menu-button[aria-expanded="true"] .admin-menu-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.admin-drawer-layer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: block;
  width: 100vw;
  width: 100dvw;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  overscroll-behavior: contain;
  touch-action: none;
  isolation: isolate;
}

.admin-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 28, 20, 0.32);
  animation: adminBackdropIn 160ms ease-out;
  z-index: 0;
  touch-action: none;
}

.admin-drawer {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
  width: clamp(280px, 38vw, 420px);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  background: var(--surface);
  box-shadow: -18px 0 36px rgba(20, 32, 24, 0.16);
  padding: max(18px, env(safe-area-inset-top, 0px)) 14px
    calc(18px + env(safe-area-inset-bottom, 0px));
}

html.admin-drawer-scroll-lock,
body.admin-drawer-scroll-lock {
  overflow: hidden;
  height: 100%;
  overscroll-behavior: none;
}

.admin-staggered-menu {
  pointer-events: auto;
}

.admin-staggered-menu .sm-prelayers {
  width: clamp(280px, 38vw, 420px);
  z-index: 5;
  opacity: 1;
}

.admin-staggered-menu .sm-prelayer {
  opacity: 1;
  transform: translateX(100%);
  animation: adminStaggerLayerIn 680ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.admin-staggered-menu .sm-prelayer:nth-child(1) {
  background: #17311d;
  animation-delay: 0ms;
}

.admin-staggered-menu .sm-prelayer:nth-child(2) {
  background: #087d22;
  animation-delay: 80ms;
}

.admin-staggered-menu .sm-prelayer:nth-child(3) {
  background: #0fa329;
  animation-delay: 160ms;
}

.admin-staggered-menu .sm-prelayer:nth-child(4) {
  background: #e8f7e9;
  animation-delay: 240ms;
}

.admin-drawer.staggered-menu-panel {
  z-index: 10;
  opacity: 1;
  transform: translateX(100%);
  animation: adminStaggerPanelIn 760ms cubic-bezier(0.16, 1, 0.3, 1) 300ms both;
}

.admin-drawer-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 12px;
  align-items: start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.admin-drawer-head span,
.admin-drawer-head p {
  color: var(--muted);
}

.admin-drawer-head span {
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
}

.admin-drawer-head h2 {
  margin: 5px 0 0;
  color: var(--green-strong);
  font-size: 1.2rem;
  line-height: 1.12;
}

.admin-drawer-head p {
  margin: 6px 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
}

.admin-drawer-close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.admin-drawer-close img {
  width: 18px;
  height: 18px;
}

.admin-drawer-nav {
  display: grid;
  gap: 8px;
  padding-bottom: max(20px, env(safe-area-inset-bottom, 0px));
}

.admin-drawer-item {
  min-width: 0;
  min-height: 66px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 9px;
  text-align: left;
}

.admin-drawer-item.is-active {
  border-color: #b9e4bf;
  background: var(--green-soft);
}

.admin-drawer-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-soft);
}

.admin-drawer-item.is-active .admin-drawer-icon {
  background: #fff;
}

.admin-drawer-icon img {
  width: 19px;
  height: 19px;
  filter: invert(33%) sepia(86%) saturate(997%) hue-rotate(93deg) brightness(92%)
    contrast(91%);
}

.admin-drawer-item strong,
.admin-drawer-item small {
  display: block;
  min-width: 0;
}

.admin-drawer-item strong {
  font-size: 0.92rem;
  line-height: 1.16;
  letter-spacing: 0;
  transform-origin: 50% 100%;
}

.admin-drawer-item small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.28;
}

.admin-drawer-item em {
  max-width: 82px;
  color: var(--green-strong);
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.admin-drawer-footer {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.admin-drawer-footer .admin-lang-toggle {
  width: fit-content;
}

.admin-drawer-footer .secondary-button {
  width: 100%;
}

@keyframes adminDrawerIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes adminStaggerLayerIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes adminStaggerPanelIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes adminBackdropIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.admin-simple-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 2px 10px;
}

.admin-back-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--green-strong);
  padding: 0 10px;
  font-size: 0.8rem;
  font-weight: 900;
}

.admin-back-button.is-hidden {
  visibility: hidden;
}

.admin-back-button img {
  width: 17px;
  height: 17px;
  transform: rotate(180deg);
  filter: invert(33%) sepia(86%) saturate(997%) hue-rotate(93deg) brightness(92%)
    contrast(91%);
}

.admin-simple-title {
  min-width: 0;
  text-align: center;
}

.admin-simple-title span,
.admin-home-title p {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.admin-simple-title h1,
.admin-home-title h2 {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.15;
}

.admin-simple-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.admin-simple-actions .secondary-button {
  min-height: 38px;
  padding: 0 12px;
}

.admin-home {
  display: grid;
  gap: 12px;
}

.admin-home-title {
  padding: 0 2px;
}

.admin-home-title p {
  margin: 5px 0 0;
  line-height: 1.35;
}

.admin-home-dashboard {
  display: grid;
  gap: 12px;
}

.admin-performance-banner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 12px;
  align-items: stretch;
  border: 1px solid #cfe8d0;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(232, 247, 233, 0.9), rgba(255, 255, 255, 0.96)),
    var(--surface);
  padding: 13px;
}

.performance-copy {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 6px;
}

.performance-copy span {
  color: var(--green-strong);
  font-size: 0.72rem;
  font-weight: 900;
}

.performance-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.15;
}

.performance-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.38;
}

.performance-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.performance-stat,
.admin-kpi-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 11px;
}

.performance-stat {
  min-height: 112px;
  display: grid;
  align-content: space-between;
  gap: 7px;
}

.performance-stat span,
.admin-kpi-card span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.25;
}

.performance-stat strong,
.admin-kpi-card strong {
  display: block;
  color: var(--ink);
  font-size: 1.24rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.performance-stat small,
.admin-kpi-card small {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.28;
}

.performance-stat-green {
  border-color: #bfe5c1;
}

.performance-stat-green strong {
  color: var(--green-strong);
}

.performance-stat-amber {
  border-color: #eed8aa;
  background: #fffaf0;
}

.performance-stat-amber strong {
  color: #a76700;
}

.performance-stat-blue {
  border-color: #c8e2f5;
  background: #f4faff;
}

.performance-stat-blue strong {
  color: var(--blue);
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.admin-kpi-card {
  min-height: 96px;
  display: grid;
  align-content: start;
  gap: 8px;
}

.admin-priority-panel {
  display: grid;
  gap: 10px;
}

.admin-priority-panel .panel-head {
  margin-bottom: 0;
}

.admin-priority-list {
  display: grid;
  gap: 8px;
}

.admin-priority-row {
  min-width: 0;
  min-height: 58px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  gap: 9px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 9px;
  text-align: left;
}

.admin-priority-row.is-urgent {
  border-color: #f0d7aa;
  background: #fffaf0;
}

.admin-priority-row .module-icon {
  width: 34px;
  height: 34px;
}

.admin-priority-row strong {
  min-width: 0;
  font-size: 0.88rem;
  line-height: 1.18;
}

.admin-priority-row em {
  color: var(--green-strong);
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.admin-priority-row small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

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

.admin-module-card {
  min-width: 0;
  min-height: 142px;
  display: grid;
  align-content: start;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
  text-align: left;
}

.module-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--green-soft);
}

.module-icon img {
  width: 18px;
  height: 18px;
  filter: invert(33%) sepia(86%) saturate(997%) hue-rotate(93deg) brightness(92%)
    contrast(91%);
}

.admin-module-card strong {
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.18;
}

.admin-module-card small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.admin-module-card em {
  align-self: end;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 800;
}

.admin-module-card em b {
  color: var(--green-strong);
  font-size: 1rem;
  overflow-wrap: anywhere;
}

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

.admin-page-panel {
  display: grid;
  gap: 12px;
}

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

.admin-data-card {
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 12px;
}

.admin-data-card span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.admin-data-card strong {
  display: block;
  margin-top: 9px;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.payment-method-grid {
  display: grid;
  gap: 9px;
}

.payment-method-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 10px;
}

.payment-method-card img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.payment-method-card strong,
.payment-method-card span {
  display: block;
}

.payment-reauth-field {
  display: block;
  margin: 8px 0;
}

.payment-reauth-field span {
  margin: 0 0 5px;
  font-size: 0.72rem;
}

.payment-reauth-field input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  padding: 0 10px;
  color: var(--ink);
  font: inherit;
}

.payment-method-card strong {
  font-size: 0.94rem;
  line-height: 1.2;
}

.payment-method-card span {
  margin: 5px 0 10px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.admin-profile-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 12px;
}

.admin-profile-card span,
.admin-profile-card strong {
  display: block;
}

.admin-profile-card span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.admin-profile-card strong {
  margin-top: 6px;
  font-size: 1rem;
}

.admin-password-form {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.admin-settings-grid {
  display: grid;
  gap: 10px;
}

.admin-settings-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 11px;
}

.admin-settings-card-danger {
  border-color: #efc4c8;
  background: #fff7f8;
}

.admin-settings-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-soft);
}

.admin-settings-card-danger .admin-settings-icon {
  background: #fff;
}

.admin-settings-icon img {
  width: 20px;
  height: 20px;
  filter: invert(33%) sepia(86%) saturate(997%) hue-rotate(93deg) brightness(92%)
    contrast(91%);
}

.admin-settings-card-danger .admin-settings-icon img {
  filter: invert(26%) sepia(91%) saturate(1890%) hue-rotate(332deg) brightness(86%)
    contrast(91%);
}

.admin-settings-card strong,
.admin-settings-card p {
  display: block;
  min-width: 0;
}

.admin-settings-card strong {
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.18;
}

.admin-settings-card p {
  margin: 5px 0 10px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.36;
}

.admin-settings-card .admin-lang-toggle {
  width: fit-content;
}

.admin-settings-card .secondary-button {
  width: fit-content;
  min-height: 36px;
}

.admin-settings-card-wide {
  align-items: stretch;
}

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

.admin-checkbox-row {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  max-width: 100%;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 900;
}

.admin-checkbox-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.admin-settings-note-list {
  display: grid;
  gap: 8px;
}

.admin-settings-note-list div {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 9px 10px;
}

.admin-settings-note-list strong {
  color: var(--ink);
  font-size: 0.84rem;
}

.admin-settings-note-list span {
  color: var(--green-strong);
  font-size: 0.82rem;
  font-weight: 900;
  text-align: right;
}

.admin-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.admin-product-meta span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--surface-soft);
  color: #4d5a51;
  padding: 0 8px;
  font-size: 0.7rem;
  font-weight: 800;
}

.admin-product-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.admin-product-actions select {
  width: 110px;
  min-height: 38px;
  border: 1px solid var(--subtle);
  border-radius: 8px;
  background: var(--surface);
  padding: 0 8px;
  font: inherit;
  font-size: 0.82rem;
}

@media (max-width: 719px) {
  .admin-drawer-layer.staggered-menu-wrapper.fixed-wrapper {
    position: fixed;
    inset: 0;
    width: 100vw;
    width: 100dvw;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--surface);
  }

  .admin-drawer-backdrop {
    position: fixed;
    background: var(--surface);
    opacity: 1;
    animation: none;
  }

  .admin-drawer,
  .admin-staggered-menu .sm-prelayers {
    width: 100%;
  }

  .admin-drawer.staggered-menu-panel {
    position: fixed;
    inset: 0;
    width: 100vw;
    width: 100dvw;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
    padding: max(18px, env(safe-area-inset-top, 0px)) 14px
      calc(18px + env(safe-area-inset-bottom, 0px));
  }

  .admin-staggered-menu .sm-prelayers {
    position: fixed;
    inset: 0;
    width: 100vw;
    width: 100dvw;
    height: 100vh;
    height: 100dvh;
  }

  .admin-simple-header {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .admin-simple-actions {
    grid-column: 1 / -1;
    justify-content: space-between;
  }

  .admin-back-button.is-hidden {
    display: none;
  }

  .admin-module-grid,
  .admin-data-grid {
    grid-template-columns: 1fr;
  }

  .admin-performance-banner,
  .performance-stat-row,
  .admin-kpi-grid {
    grid-template-columns: 1fr;
  }

  .performance-stat {
    min-height: 94px;
  }

  .admin-priority-row {
    grid-template-columns: 34px minmax(0, 1fr) auto;
  }

  .admin-priority-row small {
    grid-column: 2 / -1;
  }

  .admin-module-card {
    min-height: 118px;
  }

  .admin-product {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .admin-product-media img {
    width: 70px;
    height: 70px;
  }

  .admin-product-actions {
    justify-content: space-between;
  }

  .payment-method-card {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .payment-method-card img {
    width: 84px;
    height: 84px;
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  max-width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(251, 252, 248, 0.96) 260px),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

.app-shell {
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
}

.page {
  width: min(100%, 1180px);
  max-width: 100%;
  margin: 0 auto;
  padding: 22px 14px calc(116px + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
}

.app-grid {
  display: grid;
  gap: 18px;
}

.shop-surface {
  background: var(--surface);
  min-height: calc(100vh - 44px);
}

.account-surface {
  background: var(--surface);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 2px 18px;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 11px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  border: 1px solid #cfebd2;
}

.brand-mark img {
  width: 27px;
  height: 27px;
  filter: invert(35%) sepia(93%) saturate(1012%) hue-rotate(96deg) brightness(89%)
    contrast(94%);
}

.brand h1 {
  margin: 0;
  color: var(--green-strong);
  font-size: clamp(1.45rem, 4.4vw, 2rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.brand p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.2;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #7b827d;
  font-weight: 700;
  font-size: 0.94rem;
  white-space: nowrap;
}

.lang-toggle button {
  min-width: 35px;
  height: 34px;
  color: #727a75;
  background: transparent;
  border-radius: 8px;
  padding: 0 6px;
}

.lang-toggle button.is-active {
  color: var(--green-strong);
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--subtle);
  border-radius: 50%;
  background: var(--surface);
  display: grid;
  place-items: center;
  color: var(--ink);
}

.icon-button img,
.nav-item img,
.chip img,
.notice-icon img,
.search-icon,
.status-pill img,
.mini-icon {
  width: 22px;
  height: 22px;
}

.search-wrap {
  position: relative;
  margin-bottom: 16px;
}

.search-wrap input {
  width: 100%;
  height: 58px;
  border: 1px solid var(--subtle);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 16px 0 53px;
  font-size: 1rem;
  outline: none;
  box-shadow: 0 1px 0 rgba(20, 32, 24, 0.02);
}

.search-wrap input:focus {
  border-color: #92d89b;
  box-shadow: 0 0 0 4px rgba(15, 163, 41, 0.1);
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 18px;
  opacity: 0.62;
}

.category-scroller {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 3px 0 18px;
  scrollbar-width: none;
}

.category-scroller::-webkit-scrollbar {
  display: none;
}

.chip {
  min-height: 42px;
  border: 1px solid var(--subtle);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  font-weight: 700;
  white-space: nowrap;
  flex: 0 0 auto;
}

.chip img {
  filter: invert(42%) sepia(9%) saturate(444%) hue-rotate(84deg) brightness(88%)
    contrast(84%);
}

.chip.is-active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  box-shadow: 0 8px 18px rgba(15, 163, 41, 0.22);
}

.chip.is-active img {
  filter: brightness(0) invert(1);
}

.delivery-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 80px;
  background: linear-gradient(90deg, var(--blue-soft), #f4fbff);
  color: var(--blue);
  border-radius: 8px;
  padding: 13px 14px;
  margin-bottom: 16px;
}

.notice-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(19, 118, 200, 0.1);
  flex-shrink: 0;
}

.delivery-notice h2 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.18;
  color: var(--blue);
}

.delivery-notice p {
  margin: 5px 0 0;
  color: #526f92;
  font-size: 0.88rem;
  line-height: 1.25;
}

.notice-arrow {
  margin-left: auto;
  width: 24px;
  opacity: 0.8;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 4px 0 12px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.15;
}

.section-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.result-count {
  color: var(--green-strong);
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.product-card {
  position: relative;
  min-width: 0;
  background: var(--surface);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 11px 10px 13px;
  display: flex;
  flex-direction: column;
  min-height: 286px;
}

.favorite-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(20, 32, 24, 0.08);
  box-shadow: 0 6px 16px rgba(20, 32, 24, 0.08);
}

.favorite-button img {
  width: 18px;
  height: 18px;
  filter: invert(48%) sepia(8%) saturate(318%) hue-rotate(84deg) brightness(88%)
    contrast(86%);
}

.favorite-button.is-active {
  background: #fff0f0;
  border-color: #ffd1d4;
}

.favorite-button.is-active img {
  filter: invert(29%) sepia(60%) saturate(2031%) hue-rotate(333deg) brightness(92%)
    contrast(84%);
}

.product-card.is-offline {
  opacity: 0.62;
}

.product-image {
  --product-image-pad: 6px;
  --product-image-size: 126px;
  height: var(--product-image-size);
  min-height: var(--product-image-size);
  flex: 0 0 var(--product-image-size);
  display: grid;
  place-items: center;
  width: 100%;
  margin-bottom: 9px;
  overflow: hidden;
  box-sizing: border-box;
  border-radius: 8px;
  background: #fff;
  position: relative;
}

.product-image img {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  max-width: calc(100% - var(--product-image-pad) - var(--product-image-pad));
  max-height: calc(var(--product-image-size) - var(--product-image-pad) - var(--product-image-pad));
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.product-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
  word-break: keep-all;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-subname {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.25;
  min-height: 1.25em;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.product-card-spec {
  margin: 0;
  color: #435249;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.22;
  min-height: 1.2em;
}

.product-image,
.product-info {
  cursor: pointer;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 6px;
}

.price {
  color: var(--red);
  font-weight: 900;
  font-size: 1.26rem;
  line-height: 1;
}

.unit {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.88rem;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--green-strong);
  font-size: 0.82rem;
  font-weight: 800;
  min-width: 0;
}

.status-pill img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  filter: invert(34%) sepia(89%) saturate(1164%) hue-rotate(97deg) brightness(87%)
    contrast(95%);
}

.status-pill.is-low {
  color: #b97204;
}

.status-pill.is-low img {
  filter: invert(55%) sepia(91%) saturate(1322%) hue-rotate(4deg) brightness(90%)
    contrast(97%);
}

.status-pill.is-out {
  color: #a0a7a2;
}

.status-pill.is-out img {
  filter: grayscale(1) opacity(0.65);
}

.add-button {
  width: 54px;
  height: 48px;
  border-radius: 8px;
  background: var(--green);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(15, 163, 41, 0.22);
  flex-shrink: 0;
}

.add-button img {
  width: 25px;
  height: 25px;
  filter: brightness(0) invert(1);
}

.add-button:disabled {
  background: #c8d0ca;
  box-shadow: none;
  cursor: not-allowed;
}

.qty-stepper {
  display: inline-grid;
  grid-template-columns: 34px minmax(28px, auto) 34px;
  align-items: center;
  height: 42px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(15, 163, 41, 0.2);
  flex-shrink: 0;
}

.qty-stepper button {
  height: 42px;
  background: transparent;
  display: grid;
  place-items: center;
}

.qty-stepper img {
  width: 17px;
  height: 17px;
  filter: brightness(0) invert(1);
}

.qty-stepper span {
  text-align: center;
  font-weight: 900;
  min-width: 26px;
}

.product-detail-page {
  display: grid;
  gap: 12px;
  padding-bottom: 12px;
}

.detail-back {
  width: fit-content;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--green-strong);
  padding: 0 11px;
  font-size: 0.82rem;
  font-weight: 900;
}

.detail-back img {
  width: 18px;
  height: 18px;
  transform: rotate(180deg);
  filter: invert(33%) sepia(86%) saturate(997%) hue-rotate(93deg) brightness(92%)
    contrast(91%);
}

.product-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
}

.product-detail-media {
  position: relative;
  min-height: 260px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-soft);
  border: 1px solid #e3ece2;
  padding: 12px;
}

.product-detail-media img {
  width: 100%;
  height: 100%;
  max-height: 300px;
  object-fit: contain;
}

.detail-favorite {
  top: 10px;
  right: 10px;
}

.product-detail-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
}

.detail-category {
  width: fit-content;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-strong);
  padding: 0 9px;
  font-size: 0.74rem;
  font-weight: 900;
}

.product-detail-main h2 {
  margin: 0;
  font-size: 1.62rem;
  line-height: 1.1;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.product-detail-main p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.detail-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 2px;
}

.detail-price-row strong {
  color: var(--red);
  font-size: 1.72rem;
  line-height: 1;
}

.detail-price-row span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.detail-stock {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--green-strong);
  font-size: 0.82rem;
  font-weight: 900;
}

.detail-stock img {
  width: 18px;
  height: 18px;
  filter: invert(34%) sepia(89%) saturate(1164%) hue-rotate(97deg) brightness(87%)
    contrast(95%);
}

.detail-stock em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.detail-stock.is-low {
  color: #b97204;
}

.detail-stock.is-out {
  color: #8d9690;
}

.detail-buy-row {
  margin-top: 6px;
}

.detail-add-button {
  width: min(100%, 220px);
}

.detail-stepper {
  width: fit-content;
}

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

.detail-fact,
.detail-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.detail-fact {
  min-height: 74px;
  padding: 10px;
}

.detail-fact span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.detail-fact strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.detail-section {
  padding: 13px;
}

.detail-section h3 {
  margin: 0 0 7px;
  font-size: 0.98rem;
  line-height: 1.2;
}

.detail-section p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
  white-space: pre-line;
}

.cart-page {
  gap: 12px;
}

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

.cart-page-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface);
}

.cart-item-image {
  width: 92px;
  height: 92px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-soft);
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-main {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.cart-item-title {
  min-width: 0;
  display: grid;
  gap: 3px;
  background: transparent;
  text-align: left;
}

.cart-item-title strong,
.cart-item-title span,
.cart-item-main p,
.cart-item-price span,
.cart-item-price strong,
.cart-summary-card span,
.cart-summary-card strong {
  display: block;
}

.cart-item-title strong {
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.18;
}

.cart-item-title span,
.cart-item-main p,
.cart-item-price span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.28;
}

.cart-item-main p {
  margin: 0;
}

.cart-item-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.cart-item-price strong {
  color: var(--red);
  font-size: 1rem;
  white-space: nowrap;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cart-qty {
  width: max-content;
}

.remove-cart-button {
  min-height: 34px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.cart-summary-card {
  position: sticky;
  bottom: calc(62px + env(safe-area-inset-bottom, 0px));
  z-index: 12;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(20, 32, 24, 0.08);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.cart-summary-card > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.cart-summary-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.cart-summary-card strong {
  color: var(--red);
  font-size: 1.38rem;
  line-height: 1;
}

.cart-summary-card .primary-button,
.cart-summary-card .secondary-button,
.cart-empty-state .primary-button {
  width: 100%;
}

.cart-bar {
  position: fixed;
  right: 18px;
  bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  z-index: 34;
  width: 62px;
  height: 62px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  display: grid;
  place-items: center;
  background: var(--green);
  box-shadow: 0 13px 28px rgba(15, 163, 41, 0.28);
}

.cart-circle {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.cart-circle img {
  width: 29px;
  height: 29px;
  filter: brightness(0) invert(1);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 25px;
  height: 25px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0 6px;
  background: var(--red);
  color: #fff;
  font-weight: 900;
  font-size: 0.78rem;
}

.cart-bar.is-empty {
  background: var(--surface);
  border: 1px solid #d9e5dc;
  box-shadow: 0 10px 24px rgba(17, 24, 20, 0.1);
}

.cart-bar.is-empty img {
  filter: invert(34%) sepia(89%) saturate(1164%) hue-rotate(97deg) brightness(87%)
    contrast(95%);
}

.checkout-button,
.primary-button,
.secondary-button,
.danger-button {
  min-height: 48px;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 900;
  white-space: nowrap;
}

.checkout-button,
.primary-button {
  color: #fff;
  background: var(--green);
  box-shadow: 0 9px 18px rgba(15, 163, 41, 0.18);
}

.checkout-button:disabled,
.primary-button:disabled,
.secondary-button:disabled,
.auth-mode-switch button:disabled {
  background: #c6cec8;
  color: #ffffff;
  box-shadow: none;
  cursor: not-allowed;
}

.secondary-button {
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.danger-button {
  color: #ba2630;
  background: #fff7f8;
  border: 1px solid #efc4c8;
  font-weight: 900;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(62px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  z-index: 28;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nav-item {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  color: #68706b;
  background: transparent;
  font-size: 0.72rem;
  font-weight: 800;
  min-width: 0;
}

.nav-badge {
  position: absolute;
  top: 7px;
  left: 50%;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 0 2px #fff;
}

.nav-item img {
  filter: invert(45%) sepia(8%) saturate(319%) hue-rotate(84deg) brightness(89%)
    contrast(84%);
}

.nav-item.is-active {
  color: var(--green-strong);
}

.nav-item.is-active img {
  filter: invert(34%) sepia(89%) saturate(1164%) hue-rotate(97deg) brightness(87%)
    contrast(95%);
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 20, 0.36);
  z-index: 50;
  display: grid;
  align-items: end;
}

.sheet {
  background: var(--surface);
  border-radius: 8px 8px 0 0;
  max-height: min(88vh, 760px);
  overflow: auto;
  box-shadow: 0 -18px 48px rgba(17, 24, 20, 0.16);
  padding: 18px 15px 22px;
}

.checkout-sheet {
  max-height: min(92dvh, 760px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  padding: 0;
}

.checkout-sheet .sheet-head {
  margin: 0;
  padding: 18px 15px 14px;
  border-bottom: 1px solid var(--line);
}

.checkout-sheet-body {
  min-height: 0;
  overflow-y: auto;
  padding: 14px 15px 18px;
  overscroll-behavior: contain;
}

.checkout-form {
  margin-top: 14px;
}

.checkout-required-hint {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.checkout-required-hint span,
.checkout-form .field label > span {
  color: var(--red);
}

.checkout-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px 15px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 -10px 20px rgba(20, 32, 24, 0.05);
}

.checkout-actions .secondary-button {
  min-width: 96px;
}

.sheet-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.sheet-head h2 {
  margin: 0;
  font-size: 1.2rem;
}

.sheet-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.close-button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface-soft);
  display: grid;
  place-items: center;
}

.close-button img {
  width: 18px;
  height: 18px;
  opacity: 0.74;
}

.order-items {
  display: grid;
  gap: 10px;
  margin-bottom: 15px;
}

.order-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
}

.order-item img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.order-item strong {
  font-size: 0.9rem;
}

.order-item span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

.form-grid {
  display: grid;
  gap: 11px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 0.78rem;
  font-weight: 900;
  color: #4b554f;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid var(--subtle);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  padding: 10px 12px;
  outline: none;
}

.field textarea {
  min-height: 84px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: #91d899;
  box-shadow: 0 0 0 4px rgba(15, 163, 41, 0.1);
}

.field input:disabled {
  color: #6c756f;
  background: #f4f7f2;
  cursor: not-allowed;
}

.field-hint {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.35;
}

.auth-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 13px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.auth-mode-switch button {
  min-width: 0;
  min-height: 38px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
}

.auth-mode-switch button.is-active {
  color: #fff;
  background: var(--green);
  box-shadow: 0 6px 14px rgba(15, 163, 41, 0.16);
}

.auth-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  align-items: end;
}

.auth-code-row .secondary-button {
  min-width: 132px;
  padding: 0 12px;
}

.pay-note {
  display: flex;
  gap: 10px;
  align-items: start;
  background: #fff8e6;
  border: 1px solid #f5ddb0;
  color: #815804;
  border-radius: 8px;
  padding: 11px;
  font-size: 0.86rem;
  line-height: 1.35;
}

.pay-note img {
  width: 21px;
  height: 21px;
  filter: invert(50%) sepia(77%) saturate(1110%) hue-rotate(9deg) brightness(90%)
    contrast(96%);
  flex-shrink: 0;
}

.form-actions {
  display: grid;
  gap: 10px;
  margin-top: 13px;
}

.admin-shell {
  display: grid;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

.content-panel {
  margin-top: 4px;
}

.admin-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid #dce9da;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 251, 244, 0.95)),
    var(--surface);
}

.admin-kicker {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--green-strong);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-top h1 {
  margin: 0;
  color: var(--green-strong);
  font-size: 1.34rem;
  line-height: 1.05;
}

.admin-top p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.36;
}

.admin-top-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.admin-lang-toggle {
  min-height: 38px;
  border: 1px solid var(--subtle);
  border-radius: 8px;
  background: var(--surface);
  padding: 0 5px;
}

.admin-toolbar-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid #cfe8d0;
  border-radius: 8px;
  background: var(--surface);
  color: var(--green-strong);
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.admin-toolbar-button img {
  width: 18px;
  height: 18px;
  filter: invert(33%) sepia(86%) saturate(997%) hue-rotate(93deg) brightness(92%)
    contrast(91%);
}

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

.metric {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
}

.metric strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 1.1rem;
  overflow-wrap: anywhere;
}

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

.admin-focus,
.admin-task-list {
  min-width: 0;
}

.admin-focus {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface);
}

.admin-focus span,
.admin-focus strong,
.admin-focus p {
  display: block;
}

.admin-focus span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.admin-focus strong {
  margin-top: 7px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.2;
}

.admin-focus p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.36;
}

.admin-task-list {
  display: grid;
  gap: 8px;
}

.task-row {
  min-width: 0;
  min-height: 54px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
}

.task-row span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-soft);
}

.task-row img {
  width: 17px;
  height: 17px;
  filter: invert(33%) sepia(86%) saturate(997%) hue-rotate(93deg) brightness(92%)
    contrast(91%);
}

.task-row strong {
  min-width: 0;
  font-size: 0.82rem;
  line-height: 1.2;
}

.task-row em {
  color: var(--green-strong);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.admin-workbench {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.admin-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px;
  background: var(--surface);
}

.admin-tab-button {
  min-width: 0;
  min-height: 46px;
  border-radius: 8px;
  display: grid;
  align-content: center;
  gap: 2px;
  background: transparent;
  color: var(--muted);
}

.admin-tab-button span,
.admin-tab-button strong {
  display: block;
}

.admin-tab-button span {
  font-size: 0.76rem;
  font-weight: 900;
}

.admin-tab-button strong {
  font-size: 0.88rem;
}

.admin-tab-button.is-active {
  background: var(--green);
  color: #fff;
}

.metric-green {
  border-color: #cfe8d0;
  background: #f6fbf4;
}

.metric-amber {
  border-color: #f1ddb3;
  background: #fff9eb;
}

.metric-blue {
  border-color: #cfe2f2;
  background: #f4f9fd;
}

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

.admin-action-card {
  min-width: 0;
  min-height: 100px;
  display: grid;
  gap: 6px;
  align-content: start;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(20, 32, 24, 0.03);
}

.admin-action-card:active {
  transform: translateY(1px);
}

.admin-action-primary {
  border-color: #bfe5c1;
  background: linear-gradient(180deg, #ffffff, #eff9ef);
}

.action-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--green-soft);
}

.action-icon img {
  width: 18px;
  height: 18px;
  filter: invert(33%) sepia(86%) saturate(997%) hue-rotate(93deg) brightness(92%)
    contrast(91%);
}

.admin-action-card strong,
.admin-action-card small {
  display: block;
  min-width: 0;
}

.admin-action-card strong {
  font-size: 0.92rem;
  line-height: 1.18;
}

.admin-action-card small {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.28;
}

.admin-panel {
  min-width: 0;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
}

.admin-login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding-bottom: 24px;
  width: 100%;
}

.admin-login-card {
  width: min(100%, 420px);
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.admin-login-brand {
  margin-bottom: 22px;
}

.admin-login-card .admin-lang-toggle {
  margin: -8px 0 18px;
}

.admin-page {
  max-width: 1120px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.admin-top > div,
.panel-head > div,
.admin-product > div,
.order-card-head > div {
  min-width: 0;
}

.panel-title-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.panel-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #dbeadb;
  border-radius: 8px;
  background: var(--surface-soft);
}

.panel-icon img {
  width: 20px;
  height: 20px;
  filter: invert(33%) sepia(86%) saturate(997%) hue-rotate(93deg) brightness(92%)
    contrast(91%);
}

.panel-head h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.15;
}

.panel-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.36;
}

.panel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.panel-meta span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  padding: 0 8px;
  background: var(--surface-soft);
  color: #4d5a51;
  font-size: 0.72rem;
  font-weight: 800;
}

.small-button {
  min-height: 38px;
  border-radius: 8px;
  padding: 0 12px;
  background: var(--green);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.product-admin-list,
.orders-list,
.bill-list,
.customer-list {
  display: grid;
  gap: 10px;
}

.admin-product {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface);
}

.admin-product:first-child {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.admin-product.is-offline {
  background: #f8faf7;
}

.admin-product-media {
  position: relative;
  min-width: 0;
}

.admin-product-media img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.product-state-pill {
  position: absolute;
  left: 6px;
  bottom: 6px;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 7px;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 900;
}

.product-state-pill.is-active {
  background: var(--green);
}

.product-state-pill.is-inactive {
  background: #8a938c;
}

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

.admin-product-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.admin-product-value {
  text-align: right;
}

.admin-product-value strong,
.admin-product-value span {
  display: block;
}

.admin-product-value strong {
  color: var(--red);
  font-size: 1rem;
}

.admin-product-value span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.admin-product h3,
.order-card h3 {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.admin-product p,
.order-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

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

.inline-control {
  display: grid;
  gap: 4px;
}

.inline-control label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
}

.inline-control input,
.inline-control select,
.inline-control textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 36px;
  border: 1px solid var(--subtle);
  border-radius: 8px;
  padding: 7px 8px;
  background: var(--surface);
}

.inline-control textarea {
  min-height: 70px;
  resize: vertical;
  line-height: 1.35;
}

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

.wide-control {
  grid-column: span 3;
}

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

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

.file-button {
  min-height: 36px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--green-strong);
  border: 1px solid #cfe8d0;
  font-size: 0.74rem;
  font-weight: 900;
}

.file-input {
  display: none;
}

.order-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  background: var(--surface);
}

.order-card:first-child {
  border-top: 1px solid var(--line);
  padding-top: 11px;
}

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

.order-total {
  color: var(--red);
  font-weight: 900;
  white-space: nowrap;
}

.order-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.order-status-row span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 8px;
  background: var(--surface-soft);
  color: #445047;
  font-size: 0.72rem;
  font-weight: 900;
}

.order-status-row .is-paid {
  background: var(--green-soft);
  color: var(--green-strong);
}

.order-status-row .is-pending {
  background: #fff3d9;
  color: #8a5b00;
}

.order-status-row .is-cancelled,
.bill-payment-state.is-cancelled {
  background: #f4f5f4;
  color: #667068;
}

.order-card.is-cancelled {
  background: #fafbfa;
}

.order-action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.order-action-bar .primary-button,
.order-action-bar .secondary-button,
.bill-action .primary-button {
  min-height: 38px;
  padding: 0 12px;
  font-size: 0.78rem;
}

.order-action-bar button:disabled,
.bill-action button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.order-action-note {
  flex: 1 1 180px;
  margin: 0;
  color: #796126;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.35;
}

.order-action-note.is-ready {
  color: var(--green-strong);
}

.order-cancel-button {
  min-height: 36px;
  margin-left: auto;
  padding: 0 4px;
  background: transparent;
  color: #9c4b36;
  font-size: 0.76rem;
  font-weight: 900;
}

.order-note {
  color: #39443d;
}

.order-lines {
  margin: 8px 0;
  color: #3d463f;
  font-size: 0.82rem;
  line-height: 1.45;
}

.bill-row,
.customer-row {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  background: var(--surface);
}

.bill-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(118px, auto);
  gap: 12px;
  align-items: start;
}

.bill-row strong,
.bill-row p,
.bill-date {
  display: block;
}

.bill-date {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.bill-row > div > strong {
  margin-top: 5px;
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.25;
}

.bill-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.bill-side {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.bill-side strong {
  color: var(--red);
  font-size: 1rem;
}

.bill-payment-state {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 8px;
  background: #fff3d9;
  color: #8a5b00;
  font-size: 0.72rem;
  font-weight: 900;
}

.bill-payment-state.is-paid {
  background: var(--green-soft);
  color: var(--green-strong);
}

.bill-action {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.bill-action .order-action-note {
  flex: 0 1 auto;
  text-align: right;
}

.customer-row {
  display: grid;
  gap: 9px;
}

.customer-main {
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.customer-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green-strong);
  font-size: 0.9rem;
  font-weight: 900;
}

.customer-main strong,
.customer-main p {
  display: block;
}

.customer-main strong {
  font-size: 0.94rem;
}

.customer-main p,
.customer-address {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.36;
}

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

.customer-stats span {
  min-width: 0;
  border-radius: 8px;
  padding: 7px;
  background: var(--surface-soft);
  color: #445047;
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.status-grid strong {
  color: var(--ink);
}

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

.profile-card {
  display: grid;
  gap: 6px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 14px;
}

.profile-card strong {
  font-size: 1.08rem;
}

.profile-card span {
  color: var(--muted);
  font-size: 0.88rem;
}

.flow-page {
  display: grid;
  gap: 14px;
}

.page-hero {
  display: grid;
  gap: 14px;
  overflow: hidden;
  border: 1px solid #dcebdc;
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(234, 246, 255, 0.9) 58%, rgba(232, 247, 233, 0.94)),
    var(--surface);
}

.page-hero-main {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.page-hero-icon {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid rgba(20, 32, 24, 0.08);
  box-shadow: var(--shadow-soft);
}

.page-hero-icon img {
  width: 24px;
  height: 24px;
  filter: invert(32%) sepia(79%) saturate(1167%) hue-rotate(94deg) brightness(91%)
    contrast(91%);
}

.page-hero h2 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.12;
}

.page-hero p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

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

.hero-stat {
  min-width: 0;
  border: 1px solid rgba(20, 32, 24, 0.07);
  border-radius: 8px;
  padding: 10px 9px;
  background: rgba(255, 255, 255, 0.72);
}

.hero-stat strong,
.hero-stat span {
  display: block;
}

.hero-stat strong {
  color: var(--green-strong);
  font-size: 1.2rem;
  line-height: 1;
}

.hero-stat span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
}

.section-block {
  display: grid;
  gap: 11px;
}

.section-head.tight {
  margin: 0;
}

.favorites-grid {
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.favorites-grid.product-grid {
  grid-template-columns: 1fr;
}

.favorites-grid .product-card {
  min-height: 0;
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
}

.favorites-grid .product-image {
  --product-image-size: 116px;
  margin: 0;
}

.favorites-grid .product-info {
  justify-content: center;
}

.favorites-grid .product-subname {
  min-height: 0;
}

.favorites-grid .card-foot {
  margin-top: 8px;
}

.empty-feature {
  display: grid;
  justify-items: center;
  gap: 10px;
  border: 1px dashed #cfdacf;
  border-radius: 8px;
  padding: 26px 16px;
  text-align: center;
  background: var(--surface);
}

.empty-feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-soft);
}

.empty-feature-icon img {
  width: 25px;
  height: 25px;
  filter: invert(33%) sepia(86%) saturate(997%) hue-rotate(93deg) brightness(92%)
    contrast(91%);
}

.empty-feature h2 {
  margin: 0;
  font-size: 1.08rem;
}

.empty-feature p {
  max-width: 290px;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.status-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(74px, 1fr));
  gap: 5px;
  overflow-x: auto;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  scrollbar-width: none;
}

.status-tabs::-webkit-scrollbar {
  display: none;
}

.status-tabs button {
  min-width: 0;
  min-height: 50px;
  border-radius: 8px;
  padding: 7px 6px;
  display: grid;
  justify-items: center;
  gap: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.status-tabs button.is-active {
  background: #172019;
  color: #fff;
}

.status-tabs strong {
  font-size: 1rem;
  line-height: 1;
}

.rich-orders {
  gap: 12px;
}

.rich-order-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.rich-order-card:first-child {
  border-top: 1px solid var(--line);
  padding-top: 13px;
}

.order-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 11px 0;
}

.order-summary-strip span {
  min-width: 0;
  border-radius: 8px;
  padding: 8px 7px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.2;
}

.order-summary-strip strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 0.82rem;
}

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

.progress-step {
  position: relative;
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: var(--muted);
  text-align: center;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.15;
}

.progress-step span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #cbd6ce;
  background: #fff;
}

.progress-step.is-done {
  color: var(--green-strong);
}

.progress-step.is-done span {
  border-color: var(--green);
  background: var(--green);
  box-shadow: inset 0 0 0 5px #fff;
}

.rich-lines {
  display: grid;
  gap: 7px;
  margin: 10px 0;
}

.rich-lines div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 7px;
}

.rich-lines div:first-child {
  border-top: 0;
  padding-top: 0;
}

.rich-lines span {
  min-width: 0;
  color: var(--ink);
}

.delivery-mini {
  display: grid;
  gap: 4px;
  border-left: 3px solid var(--blue);
  border-radius: 8px;
  padding: 9px 10px;
  background: var(--blue-soft);
}

.delivery-mini span {
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 900;
}

.delivery-mini strong {
  color: #1d3648;
  font-size: 0.84rem;
  line-height: 1.35;
  word-break: break-word;
}

.order-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(122px, 1fr));
  gap: 8px;
  margin-top: 11px;
}

.orders-page {
  gap: 10px;
  background: #f4f7f3;
}

.orders-toolbar {
  display: grid;
  gap: 12px;
}

.orders-title-row {
  min-height: 48px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.orders-title-row h1 {
  margin: 0;
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.18;
}

.orders-title-row p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.orders-title-row span {
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(15, 163, 41, 0.1);
  color: var(--green-strong);
  font-size: 1rem;
  font-weight: 900;
}

.orders-search {
  min-height: 46px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid #dfe8dd;
  border-radius: 8px;
  padding: 0 12px;
  background: var(--surface);
}

.orders-search img {
  width: 21px;
  height: 21px;
  filter: invert(58%) sepia(9%) saturate(235%) hue-rotate(84deg) brightness(90%)
    contrast(86%);
}

.orders-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
}

.orders-search input::placeholder {
  color: #a4aaa7;
}

.order-status-pills {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.order-status-pills button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  border-radius: 8px;
  padding: 0 13px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 900;
  box-shadow: 0 1px 0 rgba(20, 32, 24, 0.04);
}

.order-status-pills button.is-active {
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 163, 41, 0.18);
}

.order-status-pills strong {
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--green-strong);
  font-size: 0.72rem;
}

.order-status-pills button:not(.is-active) strong {
  background: #eef4ed;
  color: var(--muted);
}

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

.shop-order-card {
  display: grid;
  gap: 11px;
  border: 1px solid rgba(20, 32, 24, 0.05);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(20, 32, 24, 0.05);
}

.shop-order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.shop-order-store {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.shop-order-store span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  padding: 0;
  background: #eef8ef;
}

.shop-order-store strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.98rem;
  line-height: 1.2;
}

.shop-order-store span img {
  width: 17px;
  height: 17px;
  filter: invert(33%) sepia(98%) saturate(1642%) hue-rotate(111deg)
    brightness(92%) contrast(94%);
}

.shop-order-state {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.84rem;
  font-style: normal;
  font-weight: 900;
}

.shop-order-state.is-pending-payment {
  color: #ad7200;
}

.shop-order-state.is-payment-submitted {
  color: #b15f00;
}

.shop-order-state.is-packing,
.shop-order-state.is-delivering {
  color: var(--green-strong);
}

.shop-order-state.is-delivered {
  color: var(--muted);
}

.shop-order-state.is-cancelled {
  color: #9b9f9c;
}

.shop-order-product {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 10px 11px;
  align-items: start;
}

.shop-order-thumb {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #f8faf7;
}

.shop-order-thumb img {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.shop-order-info {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.shop-order-info strong {
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.28;
}

.shop-order-info span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.28;
}

.shop-order-info small {
  color: var(--green-strong);
  font-size: 0.76rem;
  line-height: 1.25;
}

.shop-order-price {
  grid-column: 2;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
}

.shop-order-price strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.1;
  white-space: nowrap;
}

.shop-order-price span {
  font-size: 0.78rem;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.shop-order-lines {
  display: grid;
  gap: 5px;
  border-radius: 8px;
  padding: 9px 10px;
  background: #f7faf6;
}

.shop-order-lines span {
  color: #5f5656;
  font-size: 0.78rem;
  line-height: 1.3;
}

.shop-order-tracking {
  display: grid;
  gap: 7px;
  border-radius: 8px;
  padding: 10px;
  background: #f7faf6;
}

.shop-order-track-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.shop-order-track-title strong,
.shop-order-track-title span {
  display: block;
  font-size: 0.76rem;
  line-height: 1.25;
}

.shop-order-track-title strong {
  color: var(--ink);
  font-weight: 900;
}

.shop-order-track-title span {
  color: var(--green-strong);
  font-weight: 900;
  text-align: right;
}

.shop-order-cancelled {
  border-radius: 8px;
  padding: 10px;
  background: #f7f7f6;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
}

.shop-order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.3;
}

.shop-order-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.shop-order-actions .primary-button,
.shop-order-actions .secondary-button {
  min-height: 36px;
  padding: 0 13px;
  font-size: 0.86rem;
}

.account-home-page {
  gap: 8px;
  background: transparent;
}

.account-page-topbar,
.account-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.account-page-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 0 0 5px;
}

.account-promo-strip {
  min-width: 0;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-radius: 8px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.78);
  color: #53625a;
  text-align: left;
  box-shadow: 0 8px 18px rgba(114, 72, 62, 0.08);
}

.account-promo-strip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 900;
}

.account-promo-strip img {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  filter: invert(38%) sepia(6%) saturate(856%) hue-rotate(88deg) brightness(90%)
    contrast(88%);
}

.account-top-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.account-top-actions button {
  width: 48px;
  min-width: 48px;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.account-top-actions img {
  width: 25px;
  height: 25px;
  filter: invert(34%) sepia(89%) saturate(1164%) hue-rotate(97deg) brightness(87%)
    contrast(95%);
}

.account-top-actions span {
  min-width: 0;
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.14;
  text-align: center;
  white-space: nowrap;
}

.account-profile-card,
.account-panel-card {
  border: 1px solid rgba(20, 32, 24, 0.06);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(20, 32, 24, 0.08);
}

.account-profile-card {
  display: grid;
  gap: 8px;
  padding: 11px;
}

.account-profile-main {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.account-profile-main strong,
.account-profile-main span,
.account-profile-main em {
  display: block;
}

.account-profile-main strong {
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.16;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-profile-main span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.account-profile-main em {
  align-self: start;
  border-radius: 8px;
  padding: 4px 7px;
  background: var(--green-soft);
  color: var(--green-strong);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.account-profile-card .account-avatar {
  width: 48px;
  height: 48px;
  background: var(--green-soft);
}

.account-profile-card .account-avatar img:not(.customer-avatar-image) {
  width: 25px;
  height: 25px;
  filter: invert(34%) sepia(81%) saturate(944%) hue-rotate(93deg) brightness(91%)
    contrast(90%);
}

.account-activity-ticker {
  min-width: 0;
  min-height: 38px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 14px;
  gap: 7px;
  align-items: center;
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  text-align: left;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(20, 32, 24, 0.06);
}

.account-activity-ticker > img:first-child {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  padding: 6px;
  background: var(--green-soft);
  filter: invert(35%) sepia(72%) saturate(1165%) hue-rotate(95deg) brightness(91%)
    contrast(91%);
}

.account-activity-ticker > img:last-child {
  width: 13px;
  height: 13px;
  filter: invert(45%) sepia(8%) saturate(373%) hue-rotate(84deg) brightness(89%)
    contrast(86%);
}

.account-activity-window {
  height: 20px;
  min-width: 0;
  display: block;
  overflow: hidden;
}

.account-activity-track {
  display: grid;
  animation: accountTicker 6s ease-in-out infinite;
}

.account-activity-track span {
  min-width: 0;
  height: 20px;
  display: block;
  color: var(--green-strong);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes accountTicker {
  0%,
  28% {
    transform: translateY(0);
  }
  38%,
  66% {
    transform: translateY(-20px);
  }
  76%,
  100% {
    transform: translateY(-40px);
  }
}

.account-member-banner {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  border-radius: 8px;
  padding: 10px;
  background: #eaf8ff;
}

.account-member-banner img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  padding: 8px;
  background: #fff;
  filter: invert(35%) sepia(71%) saturate(914%) hue-rotate(157deg) brightness(92%)
    contrast(92%);
}

.account-member-banner strong,
.account-member-banner span {
  display: block;
}

.account-member-banner strong {
  color: #12648e;
  font-size: 0.92rem;
}

.account-member-banner span {
  margin-top: 3px;
  color: #5c7580;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.3;
}

.account-panel-card {
  display: grid;
  gap: 12px;
  padding: 13px;
}

.account-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.account-section-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.2;
}

.account-section-head button {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: transparent;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.account-section-head img {
  width: 16px;
  height: 16px;
  filter: invert(45%) sepia(8%) saturate(373%) hue-rotate(84deg) brightness(89%)
    contrast(86%);
}

.account-order-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}

.account-order-shortcuts button {
  position: relative;
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 7px;
  background: transparent;
  color: var(--ink);
  padding: 5px 0;
}

.account-order-shortcuts img {
  width: 28px;
  height: 28px;
  filter: invert(16%) sepia(8%) saturate(502%) hue-rotate(84deg) brightness(91%)
    contrast(91%);
}

.account-order-shortcuts span {
  max-width: 100%;
  color: #303832;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.14;
  text-align: center;
}

.account-order-shortcuts em {
  position: absolute;
  top: 0;
  right: 16%;
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.account-service-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
}

.account-service-grid button {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px;
  text-align: left;
}

.account-service-grid img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  padding: 7px;
  background: var(--surface-soft);
  filter: invert(34%) sepia(81%) saturate(944%) hue-rotate(93deg) brightness(91%)
    contrast(90%);
}

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

.account-service-grid strong {
  grid-column: 2;
  font-size: 0.84rem;
  line-height: 1.2;
}

.account-service-grid span {
  grid-column: 2;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.25;
}

.account-settings-page {
  gap: 10px;
}

.account-settings-head {
  min-height: 38px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
}

.account-settings-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.15;
  text-align: center;
}

.account-settings-back {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(20, 32, 24, 0.07);
  box-shadow: 0 6px 14px rgba(20, 32, 24, 0.06);
}

.account-settings-back img {
  width: 18px;
  height: 18px;
  transform: rotate(180deg);
  filter: invert(14%) sepia(7%) saturate(925%) hue-rotate(83deg) brightness(93%)
    contrast(91%);
}

.settings-profile-card {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) 34px;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(20, 32, 24, 0.07);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
  box-shadow: var(--shadow-soft);
}

.settings-summary-card {
  min-height: 92px;
}

.settings-pencil-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
}

.settings-pencil-button img {
  width: 16px;
  height: 16px;
  filter: invert(34%) sepia(81%) saturate(944%) hue-rotate(93deg) brightness(91%)
    contrast(90%);
}

.settings-editor-card {
  display: block;
  padding: 12px;
}

.settings-profile-form {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.settings-avatar-upload {
  display: grid;
  justify-items: center;
  gap: 7px;
  cursor: pointer;
}

.settings-avatar {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  overflow: hidden;
}

.settings-avatar > img:not(.customer-avatar-image) {
  width: 34px;
  height: 34px;
  filter: invert(34%) sepia(81%) saturate(944%) hue-rotate(93deg) brightness(91%)
    contrast(90%);
}

.settings-avatar-upload > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--green-strong);
  font-size: 0.72rem;
  font-weight: 900;
}

.settings-avatar-upload > span img {
  width: 14px;
  height: 14px;
  filter: invert(34%) sepia(81%) saturate(944%) hue-rotate(93deg) brightness(91%)
    contrast(90%);
}

.settings-profile-main {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.settings-profile-main strong,
.settings-profile-main span {
  display: block;
}

.settings-profile-title {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 8px;
  align-items: center;
}

.settings-profile-main strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.18;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-profile-title > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
}

.settings-profile-title img {
  width: 15px;
  height: 15px;
  filter: invert(34%) sepia(81%) saturate(944%) hue-rotate(93deg) brightness(91%)
    contrast(90%);
}

.settings-profile-main span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.settings-inline-field {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.settings-inline-field span {
  color: #4b554f;
  font-size: 0.72rem;
  font-weight: 900;
}

.settings-inline-field input {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  border: 1px solid var(--subtle);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 8px 10px;
  outline: none;
}

.settings-inline-field input:focus {
  border-color: #91d899;
  box-shadow: 0 0 0 4px rgba(15, 163, 41, 0.1);
}

.settings-save-button {
  min-height: 38px;
  width: 100%;
}

.settings-edit-card {
  box-shadow: none;
}

.settings-list-card {
  display: grid;
  border: 1px solid rgba(20, 32, 24, 0.07);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.settings-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 13px;
  text-align: left;
}

.settings-row:first-child {
  border-top: 0;
}

.settings-row > img:first-child {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  padding: 8px;
  background: var(--surface-soft);
  filter: invert(34%) sepia(81%) saturate(944%) hue-rotate(93deg) brightness(91%)
    contrast(90%);
}

.settings-row > img:last-child {
  width: 18px;
  height: 18px;
  filter: invert(52%) sepia(7%) saturate(382%) hue-rotate(84deg) brightness(88%)
    contrast(84%);
}

.settings-row strong,
.settings-row small {
  display: block;
}

.settings-row strong {
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.22;
}

.settings-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.3;
}

.settings-language-row {
  grid-template-columns: 38px minmax(0, 1fr) auto;
}

.settings-language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  background: var(--surface-soft);
  padding: 3px;
}

.settings-language-toggle button {
  min-width: 34px;
  height: 28px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
}

.settings-language-toggle button.is-active {
  background: var(--green);
  color: #fff;
}

.account-card {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border-radius: 8px;
  padding: 14px;
  background: #17341f;
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.account-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
}

.account-avatar img {
  width: 27px;
  height: 27px;
  filter: brightness(0) invert(1);
}

.account-avatar .customer-avatar-image,
.settings-avatar .customer-avatar-image {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  filter: none;
}

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

.account-card span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
}

.account-card strong {
  margin-top: 4px;
  font-size: 1.08rem;
  word-break: break-all;
}

.account-card small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.3;
  word-break: break-all;
}

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

.account-tile {
  min-width: 0;
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 8px;
  background: var(--surface);
  text-align: left;
}

.account-tile img {
  width: 24px;
  height: 24px;
  filter: invert(33%) sepia(83%) saturate(994%) hue-rotate(93deg) brightness(92%)
    contrast(91%);
}

.account-tile strong,
.account-tile span {
  display: block;
}

.account-tile strong {
  color: var(--ink);
  font-size: 1rem;
}

.account-tile span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
}

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

.account-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface);
}

.account-row > img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  padding: 8px;
  background: var(--surface-soft);
  filter: invert(34%) sepia(81%) saturate(944%) hue-rotate(93deg) brightness(91%)
    contrast(90%);
}

.account-row strong,
.account-row span {
  display: block;
}

.account-row strong {
  font-size: 0.92rem;
}

.account-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
  word-break: break-word;
}

.account-actions {
  display: grid;
  gap: 9px;
}

.account-form-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.account-form-head h3,
.account-form-head p {
  margin: 0;
}

.account-form-head h3 {
  font-size: 1rem;
  line-height: 1.25;
}

.account-form-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.customer-chat-card,
.admin-chat-panel {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.chat-contact-head,
.admin-chat-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.chat-contact-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
}

.chat-contact-avatar img {
  width: 22px;
  height: 22px;
  filter: invert(34%) sepia(81%) saturate(944%) hue-rotate(93deg) brightness(91%)
    contrast(90%);
}

.chat-contact-head strong,
.chat-contact-head span,
.admin-chat-head strong,
.admin-chat-head span {
  display: block;
}

.chat-contact-head strong,
.admin-chat-head strong {
  color: var(--ink);
  font-size: 0.96rem;
}

.chat-contact-head span,
.admin-chat-head span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.chat-thread,
.admin-chat-thread {
  min-height: 330px;
  max-height: 52vh;
  overflow-y: auto;
  display: grid;
  align-content: end;
  gap: 10px;
  padding: 4px 2px;
}

.message-row {
  display: flex;
  min-width: 0;
}

.message-row.is-me {
  justify-content: flex-end;
}

.message-row.is-seller {
  justify-content: flex-start;
}

.message-bubble {
  max-width: min(82%, 420px);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  background: #f8faf7;
}

.message-row.is-me .message-bubble {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.message-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}

.message-meta strong,
.message-meta span {
  display: block;
  font-size: 0.68rem;
  line-height: 1.2;
}

.message-meta strong {
  font-weight: 900;
}

.message-meta span {
  color: var(--muted);
  white-space: nowrap;
}

.message-row.is-me .message-meta span {
  color: rgba(255, 255, 255, 0.72);
}

.message-bubble p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.message-compose,
.admin-message-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.message-compose textarea,
.admin-message-compose textarea {
  width: 100%;
  min-height: 44px;
  max-height: 120px;
  border: 1px solid var(--subtle);
  border-radius: 8px;
  padding: 10px;
  resize: vertical;
  background: #fff;
  line-height: 1.4;
}

.message-compose .primary-button,
.admin-message-compose .primary-button {
  min-width: 84px;
  min-height: 44px;
  padding: 0 13px;
}

.chat-empty {
  min-height: 250px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--muted);
  text-align: center;
}

.chat-empty img {
  width: 34px;
  height: 34px;
  filter: invert(34%) sepia(81%) saturate(944%) hue-rotate(93deg) brightness(91%)
    contrast(90%);
}

.chat-empty strong,
.chat-empty span {
  display: block;
}

.chat-empty strong {
  color: var(--ink);
  font-size: 0.98rem;
}

.chat-empty span {
  max-width: 260px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.customer-service-page {
  gap: 10px;
}

.service-agent-card,
.service-quick-panel,
.service-order-strip {
  border: 1px solid rgba(20, 32, 24, 0.07);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.service-agent-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #f8fbf6;
}

.service-agent-main {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
}

.service-agent-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 10px 22px rgba(15, 163, 41, 0.18);
}

.service-agent-avatar img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.service-agent-main strong,
.service-agent-main span {
  display: block;
}

.service-agent-main strong {
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.2;
}

.service-agent-main span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

.service-agent-meta {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.service-agent-meta span {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(20, 32, 24, 0.07);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #52615a;
  padding: 0 9px;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1;
}

.service-agent-meta i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(15, 163, 41, 0.12);
}

.service-quick-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.service-section-head h3,
.service-section-head p {
  margin: 0;
}

.service-section-head h3 {
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.2;
}

.service-section-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.3;
}

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

.service-quick-grid button {
  min-width: 0;
  min-height: 68px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 9px;
  text-align: left;
}

.service-quick-grid button > img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  padding: 7px;
  background: var(--green-soft);
  filter: invert(34%) sepia(81%) saturate(944%) hue-rotate(93deg) brightness(91%)
    contrast(90%);
}

.service-quick-grid span,
.service-quick-grid strong,
.service-quick-grid small {
  min-width: 0;
  display: block;
}

.service-quick-grid strong {
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.2;
}

.service-quick-grid small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.25;
}

.service-order-strip {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
}

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

.service-order-strip span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
}

.service-order-strip strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.service-order-strip button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-strong);
  padding: 0 8px 0 10px;
  font-size: 0.74rem;
  font-weight: 900;
  white-space: nowrap;
}

.service-order-strip button img {
  width: 14px;
  height: 14px;
  filter: invert(34%) sepia(81%) saturate(944%) hue-rotate(93deg) brightness(91%)
    contrast(90%);
}

.customer-service-page .service-chat-card {
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.customer-service-page .service-chat-head {
  grid-template-columns: 40px minmax(0, 1fr);
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.customer-service-page .chat-contact-avatar {
  width: 40px;
  height: 40px;
}

.customer-service-page .chat-thread {
  min-height: 260px;
  max-height: 42vh;
  align-content: end;
  gap: 10px;
  padding: 12px;
  background: #f6f8f5;
  border-bottom: 1px solid var(--line);
}

.customer-service-page .message-bubble {
  max-width: min(80%, 380px);
  border-color: rgba(20, 32, 24, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(20, 32, 24, 0.04);
}

.customer-service-page .message-row.is-me .message-bubble {
  border-color: var(--green);
  background: var(--green);
}

.customer-service-page .message-compose {
  position: sticky;
  bottom: calc(62px + env(safe-area-inset-bottom, 0px));
  z-index: 4;
  grid-template-columns: minmax(0, 1fr) 74px;
  gap: 8px;
  align-items: end;
  padding: 10px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.customer-service-page .message-compose textarea {
  min-height: 42px;
  max-height: 96px;
  border-radius: 8px;
  background: #f8faf7;
  resize: none;
}

.customer-service-page .message-compose .primary-button {
  width: 74px;
  min-width: 74px;
  min-height: 42px;
  padding: 0;
}

.admin-message-layout {
  display: grid;
  grid-template-columns: minmax(210px, 280px) minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}

.admin-thread-list {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.admin-thread-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface);
  color: inherit;
  text-align: left;
}

.admin-thread-row.is-active {
  border-color: #c5e7c9;
  background: var(--green-soft);
}

.admin-thread-row strong,
.admin-thread-row small {
  display: block;
}

.admin-thread-row strong {
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.25;
}

.admin-thread-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-thread-row em {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
}

.logged-out-page {
  padding-bottom: 4px;
}

.logged-out-page .page-hero {
  border-color: #dbe8dc;
}

.guest-order-board {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

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

.guest-order-top span,
.guest-order-top strong {
  display: block;
}

.guest-order-top span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
}

.guest-order-top strong {
  margin-top: 4px;
  font-size: 1.18rem;
}

.guest-order-price {
  color: var(--red) !important;
  font-size: 1.05rem !important;
  white-space: nowrap;
}

.guest-timeline {
  position: relative;
  display: grid;
  gap: 0;
}

.guest-timeline::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 22px;
  bottom: 22px;
  width: 2px;
  background: #d8e4da;
}

.guest-timeline-step {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 11px;
  padding: 10px 0;
}

.guest-timeline-step > span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 2px solid #d8e4da;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  z-index: 1;
}

.guest-timeline-step.is-current > span {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.guest-timeline-step strong,
.guest-timeline-step small {
  display: block;
}

.guest-timeline-step strong {
  font-size: 0.98rem;
  line-height: 1.25;
}

.guest-timeline-step small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.logged-out-favorites .page-hero {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 240, 240, 0.9) 52%, rgba(232, 247, 233, 0.92)),
    var(--surface);
}

.logged-out-account .page-hero {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 241, 0.94) 50%, rgba(234, 246, 255, 0.9)),
    var(--surface);
}

.guest-shelf-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  overflow: hidden;
  border: 1px solid #f1dede;
  border-radius: 8px;
  padding: 15px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(255, 240, 240, 0.95) 58%, rgba(232, 247, 233, 0.9)),
    var(--surface);
}

.guest-shelf-copy span,
.guest-shelf-copy h2,
.guest-shelf-copy p {
  display: block;
}

.guest-shelf-copy span {
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 900;
}

.guest-shelf-copy h2 {
  margin: 5px 0 0;
  font-size: 1.36rem;
  line-height: 1.12;
}

.guest-shelf-copy p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.guest-shelf {
  display: grid;
  gap: 10px;
}

.guest-shelf-grid {
  display: grid;
  gap: 10px;
}

.guest-shelf-item {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.guest-shelf-item > img {
  width: 92px;
  height: 82px;
  object-fit: contain;
}

.guest-shelf-item .favorite-button {
  top: 9px;
  right: 9px;
}

.guest-shelf-item strong,
.guest-shelf-item span {
  display: block;
}

.guest-shelf-item strong {
  padding-right: 44px;
  font-size: 0.98rem;
  line-height: 1.25;
}

.guest-shelf-item span {
  margin-top: 8px;
  color: var(--red);
  font-size: 0.95rem;
  font-weight: 900;
}

.compact-benefits {
  gap: 8px;
}

.guest-account-card {
  display: grid;
  justify-items: start;
  gap: 9px;
  overflow: hidden;
  border-radius: 8px;
  padding: 18px;
  background: #17341f;
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.guest-account-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.13);
}

.guest-account-avatar img {
  width: 29px;
  height: 29px;
  filter: brightness(0) invert(1);
}

.guest-account-card > span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
}

.guest-account-card h2 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.1;
}

.guest-account-card p {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  line-height: 1.45;
}

.guest-account-card .primary-button {
  width: 100%;
  background: #42ae39;
}

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

.guest-account-grid div,
.guest-account-grid button {
  min-width: 0;
  min-height: 128px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  display: grid;
  align-content: start;
  gap: 8px;
  background: var(--surface);
  color: inherit;
  text-align: left;
}

.guest-account-grid img {
  width: 26px;
  height: 26px;
  filter: invert(34%) sepia(81%) saturate(944%) hue-rotate(93deg) brightness(91%)
    contrast(90%);
}

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

.guest-account-grid strong {
  font-size: 1rem;
}

.guest-account-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.login-preview-card {
  display: grid;
  gap: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.login-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.login-preview-head span,
.login-preview-head strong {
  display: block;
}

.login-preview-head span {
  color: var(--green-strong);
  font-size: 0.78rem;
  font-weight: 900;
}

.login-preview-head strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.25;
}

.small-login-button {
  min-height: 38px;
  flex: 0 0 auto;
  border-radius: 8px;
  padding: 0 13px;
  background: #172019;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
}

.login-preview-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.login-preview-track div {
  min-width: 0;
  border-radius: 8px;
  padding: 10px 8px;
  background: var(--surface-soft);
}

.login-preview-track span,
.login-preview-track strong {
  display: block;
}

.login-preview-track span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--green-strong);
  border: 1px solid #cde8d0;
  font-size: 0.78rem;
  font-weight: 900;
}

.login-preview-track strong {
  margin-top: 8px;
  color: var(--ink);
  font-size: 0.78rem;
  line-height: 1.2;
}

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

.login-benefit {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface);
}

.login-benefit > img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  padding: 9px;
  background: var(--green-soft);
  filter: invert(34%) sepia(81%) saturate(944%) hue-rotate(93deg) brightness(91%)
    contrast(90%);
}

.login-benefit strong,
.login-benefit span {
  display: block;
}

.login-benefit strong {
  font-size: 0.94rem;
  line-height: 1.2;
}

.login-benefit span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.36;
}

.login-actions {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 9px;
}

.link-button {
  display: inline-grid;
  place-items: center;
  text-decoration: none;
}

.payment-sheet {
  text-align: center;
}

.payment-box {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: 8px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  margin-bottom: 14px;
}

.payment-box img {
  width: min(74vw, 260px);
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
}

.payment-box strong {
  color: var(--red);
  font-size: 1.52rem;
}

.payment-box span {
  color: var(--muted);
  font-size: 0.86rem;
}

.payment-window-note {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  border: 1px solid #f0ddb1;
  border-radius: 8px;
  padding: 10px;
  background: #fff9ea;
  color: #9a6400;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.35;
  text-align: left;
  margin-bottom: 12px;
}

.payment-window-note img {
  width: 20px;
  height: 20px;
  filter: invert(46%) sepia(88%) saturate(630%) hue-rotate(8deg) brightness(87%)
    contrast(94%);
}

.tracking-sheet {
  display: grid;
  gap: 12px;
}

.tracking-status-card,
.tracking-info-card {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-soft);
}

.tracking-status-card span,
.tracking-status-card small,
.tracking-info-card span,
.tracking-info-card small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.tracking-status-card strong {
  color: var(--green-strong);
  font-size: 1.18rem;
  line-height: 1.2;
}

.tracking-step-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.tracking-step-list > div {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
}

.tracking-step-list > div + div {
  border-top: 1px solid var(--line);
}

.tracking-step-list > div > span {
  width: 18px;
  height: 18px;
  display: block;
  align-self: start;
  border: 2px solid #d7dfd4;
  border-radius: 50%;
  background: var(--surface);
}

.tracking-step-list > div.is-done > span {
  border-color: var(--green);
  background: var(--green);
  box-shadow: inset 0 0 0 4px #fff;
}

.tracking-step-list strong,
.tracking-step-list small,
.tracking-info-card strong {
  display: block;
}

.tracking-step-list strong,
.tracking-info-card strong {
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.25;
}

.tracking-step-list small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.25;
}

.tracking-step-list .is-done small {
  color: var(--green-strong);
  font-weight: 900;
}

.tracking-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.tracking-actions .primary-button,
.tracking-actions .secondary-button {
  min-height: 40px;
  padding: 0 15px;
}

.qr-admin-row {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 12px;
  align-items: center;
}

.qr-admin-row img {
  width: 94px;
  height: 94px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.qr-admin-row p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

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

.payment-admin-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-soft);
}

.payment-admin-card img {
  width: 118px;
  height: 118px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.payment-admin-card strong,
.payment-admin-card span {
  display: block;
}

.payment-admin-card strong {
  font-size: 1rem;
}

.payment-admin-card span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.38;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 144px;
  transform: translateX(-50%);
  z-index: 90;
  width: min(calc(100% - 28px), 420px);
  background: #132018;
  color: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
}

.empty-state {
  border: 1px dashed var(--subtle);
  border-radius: 8px;
  padding: 26px 16px;
  text-align: center;
  color: var(--muted);
  background: var(--surface);
}

.logged-out-orders-simple {
  min-height: calc(100vh - 190px);
  display: grid;
  place-items: center;
}

.center-login-panel {
  width: min(100%, 300px);
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  padding: 24px 16px;
}

.center-login-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-soft);
}

.center-login-icon img {
  width: 24px;
  height: 24px;
  filter: invert(34%) sepia(89%) saturate(1164%) hue-rotate(97deg) brightness(87%)
    contrast(95%);
}

.center-login-panel h2 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.15;
}

.center-login-panel p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.center-login-panel .primary-button {
  width: 100%;
}

.guest-favorites-page {
  gap: 10px;
}

.guest-favorites-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface);
}

.guest-favorites-head h2 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.15;
}

.guest-favorites-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.guest-favorites-head > span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 9px;
  background: var(--green-soft);
  color: var(--green-strong);
  font-size: 0.72rem;
  font-weight: 900;
}

.guest-checkout-note {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  border-radius: 8px;
  padding: 9px 10px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.guest-checkout-note img {
  width: 22px;
  height: 22px;
  filter: invert(34%) sepia(89%) saturate(1164%) hue-rotate(97deg) brightness(87%)
    contrast(95%);
}

.guest-favorite-list {
  display: grid;
  gap: 8px;
}

.guest-favorite-row {
  display: grid;
  grid-template-columns: 34px 72px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  background: var(--surface);
}

.guest-check-mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
}

.guest-check-mark img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.guest-favorite-row > img {
  width: 72px;
  height: 62px;
  object-fit: contain;
}

.guest-favorite-row strong,
.guest-favorite-row span,
.guest-favorite-row em {
  display: block;
}

.guest-favorite-row strong {
  font-size: 0.92rem;
  line-height: 1.22;
}

.guest-favorite-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.25;
}

.guest-favorite-row em {
  margin-top: 5px;
  color: var(--red);
  font-size: 0.88rem;
  font-style: normal;
  font-weight: 900;
}

.guest-favorite-empty {
  min-height: 280px;
}

.hidden {
  display: none !important;
}

@media (min-width: 720px) {
  .page {
    padding: 30px 24px 124px;
  }

  .app-grid {
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
  }

  .shop-surface {
    background: transparent;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface);
  }

  .product-card {
    min-height: 310px;
    padding: 14px;
  }

  .product-image {
    --product-image-size: 148px;
  }

  .cart-summary-card {
    bottom: 24px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
  }

  .cart-summary-card .primary-button,
  .cart-summary-card .secondary-button {
    width: auto;
  }

  .cart-bar {
    left: auto;
    right: 24px;
    bottom: 24px;
  }

  .bottom-nav {
    display: none;
  }

  .admin-shell {
    position: sticky;
    top: 22px;
  }

  .sheet-backdrop {
    align-items: center;
    justify-items: center;
    padding: 24px;
  }

  .sheet {
    width: min(100%, 560px);
    border-radius: 8px;
  }

  .form-actions {
    grid-template-columns: 1fr 1.4fr;
  }
}

@media (min-width: 1080px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 380px) {
  .account-topbar {
    grid-template-columns: 1fr;
  }

  .account-page-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
  }

  .account-top-actions {
    gap: 6px;
  }

  .account-top-actions button {
    width: 42px;
    min-width: 42px;
    min-height: 46px;
    background: transparent;
  }

  .account-top-actions span {
    font-size: 0.64rem;
  }

  .account-activity-ticker {
    grid-template-columns: 26px minmax(0, 1fr) 12px;
    gap: 6px;
    padding: 6px 7px;
  }

  .account-activity-ticker > img:first-child {
    width: 26px;
    height: 26px;
  }

  .settings-profile-form {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 10px;
  }

  .brand h1 {
    font-size: 1.26rem;
  }

  .brand p {
    font-size: 0.83rem;
  }

  .lang-toggle {
    font-size: 0.82rem;
  }

  .product-card {
    padding: 10px 8px 12px;
  }

  .product-name {
    font-size: 0.92rem;
  }

  .price {
    font-size: 1.1rem;
  }

  .cart-bar {
    width: 54px;
    height: 54px;
  }
}

@media (max-width: 719px) {
  html,
  body,
  .app-shell {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    font-size: 14px;
  }

  .page {
    padding: 12px 14px calc(92px + env(safe-area-inset-bottom, 0px));
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .shop-surface {
    min-height: calc(100vh - 24px);
  }

  .topbar {
    gap: 10px;
    padding: 3px 2px 12px;
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-mark img {
    width: 22px;
    height: 22px;
  }

  .brand h1 {
    font-size: 1.2rem;
    line-height: 1.04;
  }

  .brand p {
    margin-top: 3px;
    font-size: 0.74rem;
  }

  .top-actions {
    gap: 7px;
  }

  .lang-toggle {
    font-size: 0.78rem;
  }

  .lang-toggle button {
    min-width: 29px;
    height: 30px;
    padding: 0 4px;
  }

  .icon-button {
    width: 34px;
    height: 34px;
  }

  .icon-button img,
  .nav-item img,
  .chip img,
  .notice-icon img,
  .search-icon,
  .status-pill img,
  .mini-icon {
    width: 19px;
    height: 19px;
  }

  .search-wrap {
    margin-bottom: 11px;
  }

  .search-wrap input {
    height: 46px;
    padding: 0 13px 0 43px;
    font-size: 0.9rem;
  }

  .search-icon {
    left: 14px;
    top: 14px;
  }

  .category-scroller {
    gap: 8px;
    padding-bottom: 12px;
  }

  .chip {
    min-height: 36px;
    gap: 6px;
    padding: 0 12px;
    font-size: 0.82rem;
  }

  .delivery-notice {
    min-height: 66px;
    gap: 10px;
    padding: 10px 11px;
    margin-bottom: 12px;
  }

  .notice-icon {
    width: 36px;
    height: 36px;
  }

  .delivery-notice h2 {
    font-size: 0.9rem;
  }

  .delivery-notice p,
  .section-head p {
    font-size: 0.78rem;
  }

  .section-head {
    gap: 10px;
    margin-bottom: 9px;
  }

  .section-head h2 {
    font-size: 1rem;
  }

  .product-card {
    min-height: 244px;
    padding: 9px 8px 10px;
  }

  .favorite-button {
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
  }

  .favorite-button img {
    width: 16px;
    height: 16px;
  }

  .product-image {
    --product-image-size: 108px;
    margin-bottom: 10px;
  }

  .product-image img {
    width: auto;
    height: auto;
  }

  .product-name {
    font-size: 0.86rem;
  }

  .product-subname {
    font-size: 0.76rem;
    min-height: 1.25em;
  }

  .price-row {
    margin-top: 4px;
  }

  .price {
    font-size: 1.08rem;
  }

  .unit {
    font-size: 0.76rem;
  }

  .card-foot {
    margin-top: 9px;
  }

  .status-pill {
    font-size: 0.74rem;
  }

  .add-button {
    width: 46px;
    height: 40px;
  }

  .add-button img {
    width: 21px;
    height: 21px;
  }

  .checkout-button,
  .primary-button,
  .secondary-button,
  .danger-button {
    min-height: 42px;
    padding: 0 14px;
    font-size: 0.9rem;
  }

  .cart-bar {
    left: auto;
    right: 16px;
    bottom: calc(58px + env(safe-area-inset-bottom, 0px));
    width: 58px;
    height: 58px;
    min-height: auto;
    padding: 0;
  }

  .cart-circle {
    width: 100%;
    height: 100%;
  }

  .cart-page-item {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 10px;
    padding: 9px;
  }

  .cart-item-image {
    width: 78px;
    height: 78px;
  }

  .cart-item-actions {
    align-items: start;
  }

  .cart-circle img {
    width: 24px;
    height: 24px;
  }

  .cart-badge {
    min-width: 21px;
    height: 21px;
    font-size: 0.68rem;
  }

  .bottom-nav {
    height: calc(54px + env(safe-area-inset-bottom, 0px));
  }

  .nav-item {
    gap: 2px;
    font-size: 0.64rem;
  }

  .sheet {
    padding: 15px;
  }

  .checkout-sheet {
    max-height: calc(100dvh - 8px);
    padding: 0;
  }

  .checkout-sheet .sheet-head {
    padding: 14px 15px 11px;
  }

  .checkout-sheet-body {
    padding: 11px 15px 14px;
  }

  .checkout-actions {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-top: 10px;
  }

  .checkout-actions .primary-button {
    grid-row: 1;
  }

  .checkout-actions .secondary-button {
    min-width: 0;
    grid-row: 2;
  }

  .sheet-head h2 {
    font-size: 1.08rem;
  }

  .sheet-head p,
  .field label,
  .pay-note,
  .order-item span {
    font-size: 0.78rem;
  }

  .form-grid {
    gap: 10px;
  }

  .auth-code-row {
    grid-template-columns: 1fr;
  }

  .auth-code-row .secondary-button {
    width: 100%;
  }

  .product-detail-hero {
    grid-template-columns: 1fr;
    gap: 11px;
    padding: 10px;
  }

  .product-detail-media {
    min-height: 220px;
  }

  .product-detail-main h2 {
    font-size: 1.3rem;
  }

  .detail-price-row strong {
    font-size: 1.44rem;
  }

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

  .detail-section {
    padding: 11px;
  }

  .field input,
  .field textarea,
  .field select,
  .inline-control input,
  .inline-control select,
  .inline-control textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 42px;
    font-size: 16px;
  }

  .page-hero {
    padding: 12px;
    gap: 11px;
  }

  .page-hero-main {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
  }

  .page-hero-icon {
    width: 40px;
    height: 40px;
  }

  .page-hero-icon img {
    width: 21px;
    height: 21px;
  }

  .page-hero h2 {
    font-size: 1.12rem;
  }

  .page-hero p {
    font-size: 0.8rem;
  }

  .hero-stat {
    padding: 8px 7px;
  }

  .hero-stat strong {
    font-size: 1rem;
  }

  .account-card,
  .guest-account-card,
  .admin-panel {
    padding: 12px;
  }

  .guest-account-card h2 {
    font-size: 1.28rem;
  }

  .guest-account-card p,
  .account-row span,
  .guest-account-grid span {
    font-size: 0.76rem;
  }

  .guest-account-avatar {
    width: 46px;
    height: 46px;
  }

  .guest-account-grid div,
  .guest-account-grid button {
    min-height: 108px;
    padding: 11px;
  }

  .login-benefit {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 9px;
    padding: 10px;
  }

  .login-benefit > img {
    width: 36px;
    height: 36px;
    padding: 8px;
  }

  .login-benefit strong {
    font-size: 0.86rem;
  }

  .login-benefit span {
    font-size: 0.74rem;
  }

  .admin-product {
    grid-template-columns: 66px minmax(0, 1fr);
  }

  .admin-product img {
    width: 66px;
    height: 66px;
  }

  .admin-controls,
  .order-controls {
    grid-template-columns: 1fr;
  }

  .admin-login-page,
  .admin-page {
    padding-left: 14px;
    padding-right: 14px;
  }

  .admin-page {
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  }

  .admin-login-card {
    width: 100%;
    max-width: 100%;
    padding: 18px;
  }

  .admin-top {
    display: grid;
    gap: 12px;
    padding: 14px;
  }

  .admin-top h1 {
    font-size: 1.3rem;
  }

  .admin-top p {
    font-size: 0.8rem;
  }

  .admin-top-actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
  }

  .admin-toolbar-button {
    justify-content: center;
    min-width: 0;
    font-size: 0.78rem;
  }

  .admin-overview {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .admin-focus {
    padding: 11px;
  }

  .admin-task-list {
    grid-template-columns: 1fr;
  }

  .task-row {
    min-height: 50px;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    padding: 9px;
  }

  .task-row span {
    width: 30px;
    height: 30px;
  }

  .admin-tabs {
    gap: 5px;
    padding: 4px;
  }

  .admin-tab-button {
    min-height: 44px;
  }

  .admin-tab-button span {
    font-size: 0.72rem;
  }

  .admin-tab-button strong {
    font-size: 0.82rem;
  }

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

  .admin-action-card {
    min-height: 92px;
    padding: 11px;
  }

  .admin-action-primary {
    grid-column: 1 / -1;
    min-height: 76px;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    align-content: center;
    column-gap: 10px;
  }

  .admin-action-primary .action-icon {
    grid-row: 1 / 3;
  }

  .admin-action-primary strong,
  .admin-action-primary small {
    grid-column: 2;
  }

  .admin-action-primary small {
    margin-top: 2px;
  }

  .panel-head {
    gap: 9px;
  }

  .panel-title-row {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px;
  }

  .panel-icon {
    width: 34px;
    height: 34px;
  }

  .panel-icon img {
    width: 18px;
    height: 18px;
  }

  .panel-head h2 {
    font-size: 0.98rem;
  }

  .panel-head p {
    font-size: 0.76rem;
  }

  .panel-meta {
    gap: 5px;
  }

  .panel-meta span {
    min-height: 22px;
    padding: 0 7px;
    font-size: 0.66rem;
  }

  .metric-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow-x: visible;
    gap: 7px;
    padding-bottom: 2px;
  }

  .metric {
    padding: 9px 7px;
  }

  .metric span {
    font-size: 0.66rem;
    line-height: 1.15;
  }

  .metric strong {
    font-size: 1.03rem;
    line-height: 1.1;
  }

  .admin-product {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 10px;
    padding: 9px;
  }

  .admin-product-media img {
    width: 66px;
    height: 66px;
  }

  .product-state-pill {
    left: 5px;
    bottom: 5px;
    min-height: 20px;
    padding: 0 6px;
    font-size: 0.62rem;
  }

  .admin-product-title {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .admin-product-value {
    text-align: left;
  }

  .admin-product-value strong,
  .admin-product-value span {
    display: inline-block;
    margin: 0 8px 0 0;
  }

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

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

  .wide-control {
    grid-column: 1 / -1;
  }

  .product-create-grid {
    grid-template-columns: 1fr;
  }

  .bill-row {
    grid-template-columns: minmax(0, 1fr) 116px;
    gap: 8px;
    padding: 10px;
  }

  .bill-side select {
    width: 116px;
    min-height: 42px;
    font-size: 16px;
  }

  .customer-row {
    padding: 10px;
  }

  .customer-stats {
    gap: 5px;
  }

  .customer-stats span {
    padding: 6px 4px;
    font-size: 0.68rem;
  }

  .qr-admin-row {
    grid-template-columns: 82px 1fr;
  }

  .qr-admin-row img {
    width: 82px;
    height: 82px;
  }

  .payment-admin-card {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .payment-admin-card img {
    width: 108px;
    height: 108px;
  }

  .payment-admin-card span {
    font-size: 0.76rem;
  }
}

@media (max-width: 719px) {
  .admin-message-layout {
    grid-template-columns: 1fr;
  }

  .admin-thread-list {
    max-height: 220px;
    overflow-y: auto;
  }

  .chat-thread,
  .admin-chat-thread {
    min-height: 300px;
    max-height: 48vh;
  }

  .message-compose,
  .admin-message-compose {
    grid-template-columns: 1fr;
  }

  .message-compose .primary-button,
  .admin-message-compose .primary-button {
    width: 100%;
  }

  .customer-service-page .message-compose {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: calc(62px + env(safe-area-inset-bottom, 0px));
    z-index: 36;
    grid-template-columns: minmax(0, 1fr) 74px;
    border: 1px solid rgba(20, 32, 24, 0.08);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(20, 32, 24, 0.12);
  }

  .customer-service-page .message-compose .primary-button {
    width: 74px;
  }

  .customer-service-page .service-chat-card {
    margin-bottom: 68px;
  }

  .customer-service-page .chat-thread.is-empty {
    min-height: 128px;
    max-height: 128px;
    align-content: start;
  }

  .customer-service-page .chat-thread.is-empty .chat-empty {
    min-height: 104px;
    gap: 4px;
  }

  .customer-service-page .chat-thread.is-empty .chat-empty img {
    width: 26px;
    height: 26px;
  }

  .customer-service-page .chat-thread.is-empty .chat-empty strong {
    font-size: 0.9rem;
  }

  .customer-service-page .chat-thread.is-empty .chat-empty span {
    max-width: 230px;
    font-size: 0.74rem;
    line-height: 1.3;
  }
}

/* Storefront refinement: real states, accessible controls, and compact mobile flows. */
:where(button, input, textarea, select, a):focus-visible {
  outline: 3px solid rgba(7, 133, 31, 0.28);
  outline-offset: 2px;
}

.chip.is-active,
.add-button,
.qty-stepper,
.cart-bar,
.checkout-button,
.primary-button,
.settings-language-toggle button.is-active,
.message-row.is-me .message-bubble,
.service-agent-avatar,
.guest-check-mark {
  border-color: var(--green-strong);
  background: var(--green-strong);
}

.product-image {
  border: 0;
  padding: 0;
}

.product-info {
  cursor: default;
}

.product-title-button {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  display: flex;
  align-items: flex-start;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
}

.account-page-shortcuts-only {
  display: flex;
  justify-content: flex-end;
  min-height: 48px;
  padding-bottom: 4px;
}

.account-page-shortcuts-only .account-top-actions {
  width: min(100%, 188px);
  justify-content: space-between;
}

.account-profile-main {
  grid-template-columns: 52px minmax(0, 1fr);
}

.shop-order-status-note {
  border-radius: 8px;
  padding: 9px 10px;
  background: var(--surface-soft);
  color: #52615a;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.35;
}

.cart-summary-total strong {
  color: var(--red);
  font-size: 1.38rem;
}

.cart-summary-card .cart-summary-line {
  padding-top: 7px;
  border-top: 1px solid var(--line);
}

.cart-summary-card .cart-summary-line strong {
  color: var(--ink);
  font-size: 0.86rem;
}

.minimum-order-note {
  margin: 0;
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff6df;
  color: #8a5b00;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.35;
}

.cart-bar {
  background: var(--green-strong);
  box-shadow: 0 13px 28px rgba(7, 133, 31, 0.28);
  animation: cartFabIn 220ms ease-out;
}

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

.checkout-address-preview {
  display: grid;
  gap: 4px;
  margin-top: 7px;
  border-radius: 8px;
  padding: 10px;
  background: var(--surface-soft);
}

.checkout-address-preview strong,
.checkout-address-preview span {
  display: block;
  line-height: 1.35;
}

.checkout-address-preview strong {
  color: var(--ink);
  font-size: 0.84rem;
}

.checkout-address-preview span {
  color: var(--muted);
  font-size: 0.78rem;
}

.checkout-setting-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 9px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.checkout-setting-line strong {
  flex: 0 0 auto;
  color: var(--ink);
}

.same-phone-payment-hint {
  margin: 0 0 12px;
  border-radius: 8px;
  padding: 10px 11px;
  background: var(--blue-soft);
  color: #245d84;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.42;
  text-align: left;
}

.tracking-step-list > div.is-current > span {
  border-color: var(--green-strong);
  box-shadow: inset 0 0 0 4px #fff;
  background: var(--green-soft);
}

.tracking-step-list > div.is-current small {
  color: var(--green-strong);
  font-weight: 900;
}

.auth-text-button {
  min-height: 42px;
  color: var(--green-strong);
  background: transparent;
  font-size: 0.84rem;
  font-weight: 900;
}

.auth-subhead {
  display: grid;
  gap: 4px;
  border-radius: 8px;
  padding: 10px 11px;
  background: var(--surface-soft);
}

.auth-subhead strong {
  color: var(--ink);
  font-size: 0.96rem;
}

.auth-subhead span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.checkbox-row {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

.checkbox-row input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  accent-color: var(--green-strong);
}

.policy-links {
  display: flex;
  gap: 14px;
}

.policy-links button {
  min-height: 36px;
  padding: 0;
  background: transparent;
  color: var(--green-strong);
  font-size: 0.8rem;
  font-weight: 900;
}

.policy-backdrop {
  z-index: 72;
}

.policy-sheet {
  display: grid;
  gap: 14px;
}

.policy-copy {
  display: grid;
  gap: 10px;
  max-height: 52vh;
  overflow-y: auto;
}

.policy-copy p {
  margin: 0;
  color: #4f5c54;
  font-size: 0.86rem;
  line-height: 1.58;
}

.address-list {
  display: grid;
  gap: 9px;
}

.address-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 6px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface);
}

.address-card.is-default {
  border-color: #b9dfbf;
  background: #f8fcf7;
}

.address-card-main {
  min-width: 0;
  display: grid;
  gap: 7px;
  padding: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.address-person {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.address-person strong {
  font-size: 0.98rem;
}

.address-person em {
  color: var(--muted);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 800;
}

.address-line {
  display: block;
  color: #4f5c54;
  font-size: 0.82rem;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.address-line b {
  display: inline-block;
  margin-right: 5px;
  border-radius: 4px;
  padding: 1px 5px;
  background: var(--green-soft);
  color: var(--green-strong);
  font-size: 0.68rem;
}

.address-edit-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-soft);
}

.address-edit-button img {
  width: 18px;
  height: 18px;
  filter: invert(34%) sepia(81%) saturate(944%) hue-rotate(93deg) brightness(91%) contrast(90%);
}

.address-add-button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.address-add-button img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.address-editor-card textarea {
  min-height: 88px;
}

.admin-delivery-money-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

@media (max-width: 719px) {
  .admin-performance-banner {
    grid-template-columns: 1fr;
  }

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

  .performance-stat {
    min-height: 94px;
    padding: 9px;
  }

  .performance-stat strong {
    font-size: 1.08rem;
  }

  .admin-priority-row {
    grid-template-columns: 34px minmax(0, 1fr) auto;
  }

  .admin-priority-row small {
    grid-column: 2 / -1;
    white-space: normal;
  }

  .bill-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .lang-toggle button,
  .icon-button,
  .chip,
  .favorite-button,
  .add-button,
  .order-status-pills button {
    min-height: 44px;
  }

  .lang-toggle button,
  .icon-button,
  .favorite-button {
    min-width: 44px;
    width: 44px;
    height: 44px;
  }

  .chip {
    min-height: 44px;
  }

  .favorite-button {
    top: 6px;
    right: 6px;
  }

  .card-foot {
    flex-wrap: wrap;
  }

  .qty-stepper {
    grid-template-columns: 40px minmax(24px, auto) 40px;
    height: 44px;
    margin-left: auto;
  }

  .qty-stepper button {
    height: 44px;
  }

  .add-button {
    width: 48px;
    height: 44px;
  }

  .cart-bar {
    left: calc(62.5% - 27px);
    right: auto;
    bottom: env(safe-area-inset-bottom, 0px);
    width: 54px;
    height: 54px;
  }

  .nav-cart-placeholder {
    pointer-events: none;
  }

  .cart-summary-card .cart-summary-line {
    display: flex;
  }

  .admin-delivery-money-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .topbar {
    gap: 6px;
  }

  .brand {
    gap: 6px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand h1 {
    font-size: 1.05rem;
  }

  .top-actions {
    gap: 3px;
  }

  .lang-toggle {
    gap: 0;
  }

  .cart-bar {
    left: calc(62.5% - 25px);
    right: auto;
    width: 50px;
    height: 50px;
  }

  .account-page-shortcuts-only {
    display: flex;
  }

  .account-page-shortcuts-only .account-top-actions {
    width: 178px;
  }
}

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