﻿:root {
  color-scheme: light;
  --bg: #f5f2ea;
  --surface: #fffdf8;
  --surface-2: #f0eadc;
  --surface-3: #e4dcc9;
  --text: #1d1e1c;
  --muted: #66685f;
  --line: rgba(48, 50, 43, 0.12);
  --pine: #214d3e;
  --pine-2: #2f6b52;
  --moss: #8da26b;
  --leaf: #d8e3b5;
  --gold: #d0a85c;
  --berry: #4171c8;
  --berry-2: #7f8be7;
  --shadow: 0 24px 60px rgba(29, 30, 28, 0.12);
  --shadow-soft: 0 12px 30px rgba(29, 30, 28, 0.08);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --sidebar: 290px;
  --max: 1320px;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(141, 162, 107, 0.16), transparent 34%),
    radial-gradient(circle at top right, rgba(65, 113, 200, 0.12), transparent 32%),
    linear-gradient(180deg, #f8f5ee 0%, #f3efe6 48%, #efe8db 100%);
  color: var(--text);
}

body {
  overflow-x: hidden;
}

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

button {
  cursor: pointer;
}

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

.app {
  min-height: 100vh;
}

.shell {
  width: min(var(--max), calc(100vw - 32px));
  margin: 0 auto;
}

.admin-shell {
  width: min(1920px, calc(100vw - 12px));
}

body:has(.admin-shell) .topbar-inner {
  width: min(1920px, calc(100vw - 12px));
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(248, 245, 238, 0.78);
  border-bottom: 1px solid rgba(41, 45, 37, 0.08);
}

.topbar-inner {
  width: min(var(--max), calc(100vw - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  background: transparent;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

.brand-name {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: clamp(1.15rem, 1.7vw, 1.55rem);
  line-height: 1;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav button,
.nav a {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 14px;
  transition: 160ms ease;
}

.nav button:hover,
.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(41, 45, 37, 0.08);
}

.nav .is-active {
  color: var(--pine);
  background: rgba(33, 77, 62, 0.08);
  border-color: rgba(33, 77, 62, 0.14);
}

.nav .account-nav-link {
  color: #fff;
  background: var(--pine);
  border-color: var(--pine);
}

.nav .account-nav-link:hover {
  color: #fff;
  background: var(--leaf-dark);
  border-color: var(--leaf-dark);
}

.primary-btn,
.secondary-btn,
.ghost-btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  transition: 180ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 650;
}

.primary-btn {
  background: linear-gradient(135deg, var(--pine) 0%, var(--pine-2) 100%);
  color: #fff;
  box-shadow: 0 18px 34px rgba(33, 77, 62, 0.22);
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 40px rgba(33, 77, 62, 0.27);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  border: 1px solid rgba(41, 45, 37, 0.1);
}

.ghost-btn {
  background: transparent;
  color: var(--pine);
  border: 1px solid rgba(33, 77, 62, 0.18);
}

.ghost-btn.danger {
  color: #a24134;
  border-color: rgba(162, 65, 52, 0.24);
}

.hero {
  padding: 24px 0 18px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(141, 162, 107, 0.28), transparent 22%),
    radial-gradient(circle at top right, rgba(65, 113, 200, 0.12), transparent 20%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.86) 100%);
  border: 1px solid rgba(41, 45, 37, 0.1);
  border-radius: 42px;
  box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 40px);
  min-height: 680px;
}

.hero-panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(22px, 4vw, 44px);
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-title {
  margin: 10px 0 14px;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: clamp(2.55rem, 5vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  max-width: 11ch;
}

.hero-text {
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.14rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
}

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

.highlight-chip {
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(41, 45, 37, 0.08);
  box-shadow: 0 10px 24px rgba(29, 30, 28, 0.05);
}

.highlight-chip strong,
.highlight-chip span {
  display: block;
}

.highlight-chip strong {
  font-size: 0.98rem;
}

.highlight-chip span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.metric {
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(41, 45, 37, 0.08);
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(29, 30, 28, 0.06);
}

.metric strong {
  display: block;
  font-size: 1.25rem;
  line-height: 1.1;
}

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

.hero-visual {
  position: relative;
  min-height: 540px;
}

.hero-content-image {
  position: absolute;
  inset: 18px;
  width: calc(100% - 36px);
  height: calc(100% - 36px);
  object-fit: cover;
  border-radius: 30px;
  opacity: 0.2;
  filter: saturate(1.12);
  z-index: 1;
}

.hero-visual .curve {
  position: absolute;
  inset: 0;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(33, 77, 62, 0.96), rgba(33, 77, 62, 0.88)),
    linear-gradient(135deg, rgba(141, 162, 107, 0.3), rgba(214, 218, 174, 0.08));
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  z-index: 0;
}

.hero-visual .curve::before,
.hero-visual .curve::after {
  content: "";
  position: absolute;
  top: -18px;
  bottom: -18px;
  width: 46%;
  background-size: cover;
  background-position: center;
  filter: saturate(1.02) contrast(1.04);
}

.hero-visual .curve::before {
  left: -3%;
  clip-path: polygon(0 0, 62% 0, 86% 20%, 88% 42%, 82% 62%, 100% 100%, 0 100%);
  background:
    linear-gradient(180deg, rgba(29, 30, 28, 0.16), rgba(29, 30, 28, 0.14)),
    radial-gradient(circle at 28% 76%, rgba(113, 166, 70, 0.96), transparent 14%),
    radial-gradient(circle at 49% 58%, rgba(73, 122, 48, 0.92), transparent 18%),
    radial-gradient(circle at 72% 83%, rgba(170, 133, 228, 0.9), transparent 14%),
    linear-gradient(135deg, #16341f, #29502c 50%, #0f2114);
}

.hero-visual .curve::after {
  right: -3%;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 18% 100%, 10% 66%, 16% 44%, 18% 22%);
  background:
    linear-gradient(180deg, rgba(29, 30, 28, 0.16), rgba(29, 30, 28, 0.14)),
    radial-gradient(circle at 30% 78%, rgba(219, 125, 145, 0.96), transparent 11%),
    radial-gradient(circle at 53% 68%, rgba(189, 85, 161, 0.94), transparent 12%),
    radial-gradient(circle at 42% 46%, rgba(194, 120, 199, 0.92), transparent 14%),
    linear-gradient(135deg, #335a21, #4d7a2a 46%, #24411a);
}

.hero-visual .brand-badge {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 2;
  width: min(78%, 380px);
  transform: translate(-50%, -50%);
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(41, 45, 37, 0.08);
  box-shadow: var(--shadow);
  padding: 30px 26px 26px;
  text-align: center;
}

.brand-badge .round-logo {
  width: 112px;
  height: 112px;
  margin: 0 auto 18px;
  background: transparent;
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.brand-badge .round-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-badge h2 {
  margin: 0;
  font-family: "Georgia", serif;
  font-size: clamp(1.6rem, 2.8vw, 2.6rem);
  line-height: 1;
}

.brand-badge p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.section {
  padding: 18px 0 0;
}

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

.section-title h3 {
  margin: 0;
  font-family: "Georgia", serif;
  font-size: clamp(1.7rem, 2.8vw, 2.6rem);
  line-height: 1;
}

.section-title p {
  margin: 0;
  max-width: 56ch;
  color: var(--muted);
  line-height: 1.6;
}

.catalog-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.catalog-pill {
  border: 1px solid rgba(33, 77, 62, 0.14);
  background: rgba(255, 255, 255, 0.84);
  color: var(--pine);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 650;
  transition: 160ms ease;
}

.catalog-pill:hover,
.catalog-pill.is-active {
  background: linear-gradient(135deg, var(--pine) 0%, var(--pine-2) 100%);
  color: #fff;
  box-shadow: 0 14px 24px rgba(33, 77, 62, 0.2);
}

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

.review-grid {
  margin-top: 16px;
}

.trust-card,
.review-card {
  padding: 20px;
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(141, 162, 107, 0.12), transparent 30%),
    rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(41, 45, 37, 0.08);
  box-shadow: 0 16px 36px rgba(29, 30, 28, 0.06);
}

.trust-card h4,
.review-card strong {
  margin: 12px 0 0;
  font-size: 1.12rem;
}

.trust-card p,
.review-card p,
.review-card span {
  color: var(--muted);
  line-height: 1.65;
}

.review-card p {
  margin: 0 0 14px;
  font-size: 1rem;
}

.review-card span {
  display: block;
  margin-top: 4px;
  font-size: 0.92rem;
}

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

.product-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(41, 45, 37, 0.08);
  border-radius: var(--radius-lg);
  padding: 12px 12px 18px;
  box-shadow: 0 14px 30px rgba(29, 30, 28, 0.05);
  display: grid;
  gap: 14px;
  overflow: hidden;
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-2);
}

.product-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(21, 37, 27, 0.24));
  pointer-events: none;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.product-card:hover .product-media img {
  transform: scale(1.035);
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(33, 77, 62, 0.08);
  color: var(--pine);
  font-size: 0.84rem;
  font-weight: 650;
}

.product-card h4 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.2;
}

.product-meta,
.product-note,
.sales-list .sale-row small,
.muted {
  color: var(--muted);
}

.price-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  padding-top: 8px;
  border-top: 1px dashed rgba(41, 45, 37, 0.12);
}

.price {
  font-size: 1.38rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.order-btn {
  padding: 10px 14px;
  min-width: 120px;
}

.product-details-link,
.product-back-link {
  color: var(--pine);
  font-weight: 750;
  text-decoration: none;
}

.product-details-link:hover,
.product-back-link:hover {
  text-decoration: underline;
}

.public-product-page {
  display: grid;
  gap: 20px;
}

.public-product-detail {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(16px, 3vw, 34px);
  border: 1px solid rgba(41, 45, 37, 0.08);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 44px rgba(29, 30, 28, 0.07);
}

.public-product-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 24px;
  background: var(--surface-2);
}

.public-product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

.public-product-thumbs img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  background: var(--surface-2);
}

.public-product-copy {
  display: grid;
  gap: 16px;
}

.public-product-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.public-product-availability {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(33, 77, 62, 0.09);
  color: var(--pine);
  font-size: 0.84rem;
  font-weight: 800;
}

.public-stock-level,
.public-product-availability {
  border: 1px solid transparent;
}

.public-stock-level.is-many,
.public-product-availability.is-many {
  background: rgba(33, 107, 76, 0.1);
  border-color: rgba(33, 107, 76, 0.18);
  color: #174d38;
}

.public-stock-level.is-few,
.public-product-availability.is-few {
  background: rgba(177, 119, 34, 0.12);
  border-color: rgba(177, 119, 34, 0.22);
  color: #855614;
}

.public-stock-level.is-preorder,
.public-product-availability.is-preorder {
  background: rgba(85, 79, 155, 0.1);
  border-color: rgba(85, 79, 155, 0.2);
  color: #4e478d;
}

.public-stock-level.is-unavailable,
.public-product-availability.is-unavailable {
  background: rgba(112, 106, 97, 0.1);
  border-color: rgba(112, 106, 97, 0.18);
  color: #676158;
}

.public-product-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.02;
}

.public-product-meta,
.public-product-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.public-product-attributes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 10px;
  margin: 0;
}

.public-product-attributes > div {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(33, 77, 62, 0.07);
}

.public-product-attributes dt {
  color: var(--muted);
  font-size: 0.78rem;
}

.public-product-attributes dd {
  margin: 0;
  color: var(--pine);
  font-weight: 700;
}

.public-product-description h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1.15rem;
}

.public-product-description p {
  margin: 0 0 10px;
}

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

.public-product-facts > div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(33, 77, 62, 0.07);
}

.public-product-facts span {
  color: var(--muted);
  font-size: 0.82rem;
}

.public-product-facts strong {
  color: var(--pine);
  font-size: 1.15rem;
}

.copy-field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
}

.public-product-actions {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex-wrap: wrap;
}

.public-product-actions > * {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
}

.public-product-service-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.public-product-loading {
  display: grid;
  justify-items: start;
  gap: 14px;
  min-height: 360px;
  align-content: center;
  padding: clamp(24px, 6vw, 70px);
  border: 1px solid rgba(41, 45, 37, 0.08);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.9);
}

.public-product-loading h1,
.public-product-loading p {
  margin: 0;
}

.public-product-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(33, 77, 62, 0.16);
  border-top-color: var(--pine);
  border-radius: 50%;
  animation: public-product-spin 0.8s linear infinite;
}

@keyframes public-product-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 760px) {
  .public-product-detail {
    grid-template-columns: 1fr;
  }

  .copy-field-row {
    grid-template-columns: 1fr;
  }

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

.public-order {
  margin-top: 18px;
  position: relative;
  width: min(760px, calc(100vw - 28px));
  padding: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(41, 45, 37, 0.08);
  border-radius: 22px;
  box-shadow: 0 16px 36px rgba(29, 30, 28, 0.06);
}

.public-order-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 16px;
}

.public-order-dialog {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100vw - 28px));
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(41, 45, 37, 0.1);
  background:
    radial-gradient(circle at top left, rgba(216, 227, 181, 0.32), transparent 34%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(248, 245, 238, 0.96));
  box-shadow: 0 32px 90px rgba(15, 24, 18, 0.28);
}

.import-dialog {
  width: min(1100px, calc(100vw - 32px));
  max-height: min(88vh, 980px);
  overflow: auto;
  min-height: 520px;
}

.import-modal-shell .import-grid {
  margin-top: 18px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(25, 31, 26, 0.48);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(41, 45, 37, 0.08);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  z-index: 1;
}

.public-message {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(33, 77, 62, 0.08);
  color: var(--pine);
  font-weight: 650;
}

.public-availability-check {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.35;
}

.public-availability-check.is-checking {
  color: var(--pine);
}

.public-availability-warning {
  display: none;
  padding: 12px 14px;
  border: 1px solid rgba(161, 101, 24, 0.24);
  border-radius: 14px;
  background: rgba(255, 240, 216, 0.72);
  color: #79501d;
  font-weight: 700;
  line-height: 1.4;
}

.public-availability-warning.is-visible {
  display: block;
}

.public-availability-warning.is-preorder {
  border-color: rgba(85, 79, 155, 0.22);
  background: rgba(239, 237, 255, 0.78);
  color: #4e478d;
}

.public-availability-warning.is-blocked {
  border-color: rgba(157, 54, 43, 0.22);
  background: rgba(255, 231, 227, 0.75);
  color: #8e3329;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.contact-side {
  display: grid;
  gap: 18px;
}

.contact-panel {
  padding: 24px;
  display: grid;
  gap: 18px;
  background:
    radial-gradient(circle at top right, rgba(141, 162, 107, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
}

.contact-main {
  min-height: 100%;
}

.contact-copy {
  display: grid;
  gap: 6px;
}

.contact-copy strong {
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.1;
}

.contact-panel strong,
.contact-panel span {
  display: block;
}

.contact-panel span {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

.contact-panel a {
  color: var(--pine);
  font-weight: 700;
}

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

.contact-actions .primary-btn {
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
}

.map-panel,
.ask-panel {
  padding: 20px;
}

.map-frame {
  margin-top: 8px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(41, 45, 37, 0.08);
  min-height: 320px;
  background: rgba(242, 238, 229, 0.7);
}

.map-frame iframe {
  width: 100%;
  height: 320px;
  border: 0;
}

.status-low {
  color: #b34c3d;
}

.bulk-panel,
.inventory-panel,
.form-panel,
.summary-panel,
.sales-panel,
.info-panel,
.content-editor,
.users-panel,
.login-card,
.import-panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(41, 45, 37, 0.08);
  border-radius: 26px;
  box-shadow: 0 16px 36px rgba(29, 30, 28, 0.06);
}

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

.sidebar {
  position: static;
  background: linear-gradient(180deg, rgba(33, 77, 62, 0.98), rgba(33, 77, 62, 0.92));
  color: rgba(255, 255, 255, 0.94);
  border-radius: 22px;
  padding: 10px 14px;
  box-shadow: var(--shadow);
}

.sidebar h3 {
  margin: 0 0 6px;
  font-family: "Georgia", serif;
  font-size: 1.12rem;
}

.sidebar p {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.35;
  font-size: 0.82rem;
}

.sidebar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: stretch;
}

.sidebar button {
  width: auto;
  min-width: 128px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  border-radius: 12px;
  padding: 8px 10px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: 160ms ease;
  font-size: 0.86rem;
}

.sidebar button:hover,
.sidebar button.is-active {
  background: rgba(255, 255, 255, 0.12);
}

.main-stack {
  display: grid;
  gap: 16px;
  min-width: 0;
}

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

.quick-card {
  text-align: left;
  border: 1px solid rgba(41, 45, 37, 0.08);
  background:
    radial-gradient(circle at top right, rgba(141, 162, 107, 0.12), transparent 24%),
    rgba(255, 255, 255, 0.92);
  border-radius: 22px;
  padding: 16px 18px;
  box-shadow: 0 12px 28px rgba(29, 30, 28, 0.05);
  display: grid;
  gap: 8px;
  transition: 160ms ease;
}

.quick-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(29, 30, 28, 0.08);
}

.quick-label {
  font-size: 0.84rem;
  color: var(--pine);
  font-weight: 700;
}

.quick-card strong {
  font-size: 1.06rem;
  color: var(--text);
}

.quick-card small {
  color: var(--muted);
  line-height: 1.45;
}

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

.summary-card {
  padding: 18px;
}

.summary-card .label {
  color: var(--muted);
  font-size: 0.9rem;
}

.summary-card .value {
  margin-top: 8px;
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  font-weight: 760;
  line-height: 1;
}

.summary-card .foot {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.dashboard-top h2 {
  margin: 0;
  font-family: "Georgia", serif;
  font-size: clamp(1.5rem, 2.2vw, 2.4rem);
}

.dashboard-top p {
  margin: 6px 0 0;
  color: var(--muted);
}

.dashboard-filter-panel {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 16px;
  padding: 18px;
  border-radius: 26px;
  background:
    radial-gradient(circle at top left, rgba(216, 227, 181, 0.32), transparent 30%),
    rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(41, 45, 37, 0.08);
  box-shadow: 0 18px 34px rgba(29, 30, 28, 0.07);
}

.dashboard-filter-panel strong {
  display: block;
  font-size: 1.08rem;
}

.dashboard-filter-panel p {
  margin: 4px 0 0;
  color: var(--muted);
}

.dashboard-filter-controls {
  display: grid;
  grid-template-columns: minmax(170px, 210px) minmax(180px, 230px) minmax(170px, 220px);
  gap: 12px;
}

.dashboard-filter-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
}

.finance-tile {
  background:
    linear-gradient(135deg, rgba(33, 77, 62, 0.08), rgba(255, 255, 255, 0.9)),
    rgba(255, 255, 255, 0.92);
}

.finance-tile.is-positive strong {
  color: var(--pine);
}

.finance-tile.is-negative strong {
  color: #9f4b3d;
}

.login-screen {
  padding: 34px 0;
}

.login-card {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 24px;
  padding: clamp(22px, 4vw, 44px);
  background:
    radial-gradient(circle at 16% 22%, rgba(141, 162, 107, 0.24), transparent 24%),
    radial-gradient(circle at 80% 10%, rgba(65, 113, 200, 0.12), transparent 18%),
    rgba(255, 255, 255, 0.92);
}

.login-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-copy h1 {
  margin: 16px 0 12px;
  font-family: "Georgia", serif;
  font-size: clamp(2rem, 4.5vw, 4.8rem);
  line-height: 0.98;
}

.login-copy p {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.6;
}

.security-list,
.demo-accounts {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.security-list span,
.demo-accounts span,
.security-note {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(33, 77, 62, 0.07);
  color: var(--muted);
}

.login-form {
  align-self: center;
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(41, 45, 37, 0.08);
  box-shadow: 0 18px 34px rgba(29, 30, 28, 0.08);
}

.login-form h2 {
  margin: 0;
  font-family: "Georgia", serif;
  font-size: 2rem;
}

.login-message {
  margin: 0;
  color: #a24134;
}

.demo-accounts {
  margin-top: 4px;
  font-size: 0.92rem;
}

.users-panel {
  padding: 18px;
}

.users-grid {
  display: grid;
  grid-template-columns: minmax(560px, 1.15fr) minmax(460px, 0.85fr);
  gap: 16px;
  align-items: start;
}

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

.subpanel-heading {
  padding: 14px 16px;
  border: 1px solid rgba(41, 45, 37, 0.08);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(141, 162, 107, 0.18), transparent 42%),
    rgba(255, 255, 255, 0.74);
}

.subpanel-heading h4,
.subpanel-heading p {
  margin: 0;
}

.subpanel-heading h4 {
  color: var(--pine);
  font-size: 1rem;
}

.subpanel-heading p {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.user-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(41, 45, 37, 0.07);
}

.user-row > div:first-child {
  min-width: 0;
}

.user-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.employee-edit-action {
  display: flex;
  justify-content: flex-start;
  margin-top: 10px;
}

.employee-edit-action .user-edit-btn {
  flex: 0 0 auto;
}

.employee-role-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.employee-role-line span {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.employee-role-line strong {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--pine);
  background: rgba(33, 77, 62, 0.09);
  font-size: 0.78rem;
}

.user-row > .row-actions {
  display: grid;
  align-items: flex-start;
  align-content: flex-start;
  justify-content: flex-end;
}

.employee-account-status {
  margin: 0 !important;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 0.76rem;
  font-weight: 800;
  text-align: center;
}

.employee-account-status.is-active {
  color: #27633d;
  background: rgba(67, 128, 90, 0.13);
}

.employee-account-status.is-disabled {
  color: #943d2d;
  background: rgba(188, 86, 65, 0.13);
}

.employee-toggle-btn {
  width: 100%;
}

.user-row > .row-actions .status-pill {
  height: auto;
}

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

.user-row span,
.user-row small {
  margin-top: 4px;
  color: var(--muted);
}

.permission-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.permission-chips span {
  margin: 0;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(33, 77, 62, 0.08);
  color: var(--pine);
  font-size: 0.76rem;
  font-weight: 750;
}

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

.permission-matrix.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.permission-matrix label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: start;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(41, 45, 37, 0.08);
  background: rgba(246, 243, 236, 0.62);
}

.permission-matrix input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

.permission-matrix span {
  margin: 0;
  color: var(--text);
  font-weight: 800;
}

.permission-matrix small {
  grid-column: 2;
  margin: -3px 0 0;
  line-height: 1.35;
}

.permission-matrix .is-locked {
  opacity: 0.68;
}

.user-create {
  padding: 18px;
}

.user-create > .panel-title {
  align-items: start;
  min-height: 72px;
  margin-bottom: 18px;
}

.user-create .form-grid {
  align-items: start;
}

.user-create .field input,
.user-create .field select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.user-create input[readonly] {
  color: var(--muted);
  background: rgba(246, 243, 236, 0.78);
  cursor: not-allowed;
}

.field-hint {
  color: var(--muted);
  line-height: 1.35;
}

.user-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.user-form-actions .primary-btn {
  min-width: 210px;
}

.user-edit-btn {
  width: auto;
  min-height: 34px;
  padding: 7px 12px;
  font-size: 0.78rem;
}

.role-helper {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(33, 77, 62, 0.12);
  background: rgba(33, 77, 62, 0.07);
}

.role-helper strong,
.role-card strong {
  color: var(--pine);
}

.role-helper span,
.role-card p {
  color: var(--muted);
  line-height: 1.45;
}

.roles-panel {
  margin-top: 16px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(41, 45, 37, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

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

.role-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(41, 45, 37, 0.08);
  background: rgba(246, 243, 236, 0.74);
}

.role-card p {
  margin: 0;
  font-size: 0.9rem;
}

.security-note {
  margin-top: 14px;
  line-height: 1.55;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.field,
.field-inline {
  display: grid;
  gap: 7px;
}

.field label,
.field-inline label {
  font-size: 0.88rem;
  color: var(--muted);
}

input,
select,
textarea {
  border: 1px solid rgba(41, 45, 37, 0.12);
  background: #fff;
  color: var(--text);
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
  transition: 140ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(33, 77, 62, 0.36);
  box-shadow: 0 0 0 4px rgba(33, 77, 62, 0.08);
}

.bulk-panel {
  padding: 18px;
}

.import-panel {
  padding: 18px;
}

.content-editor {
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(33, 77, 62, 0.12), transparent 30%),
    rgba(255, 255, 255, 0.92);
}

.content-status {
  min-width: 210px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(41, 45, 37, 0.08);
  background: rgba(255, 255, 255, 0.74);
  display: grid;
  gap: 3px;
}

.content-status span,
.content-status small,
.content-hint {
  color: var(--muted);
}

.content-status strong {
  font-size: 1.05rem;
}

.content-status.is-published {
  border-color: rgba(33, 125, 86, 0.22);
  background: rgba(33, 125, 86, 0.09);
}

.content-status.is-draft {
  border-color: rgba(183, 136, 49, 0.24);
  background: rgba(183, 136, 49, 0.1);
}

.content-status.is-unpublished {
  border-color: rgba(162, 65, 52, 0.24);
  background: rgba(162, 65, 52, 0.1);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.content-field.full {
  grid-column: 1 / -1;
}

.content-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.content-hint {
  margin: 12px 0 0;
  line-height: 1.55;
}

.unpublished-page .hero-panel {
  min-height: 520px;
}

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

.import-steps div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(33, 77, 62, 0.06);
  color: var(--muted);
}

.import-steps strong {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--pine);
  color: #fff;
  font-size: 0.88rem;
}

.import-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 14px;
  align-items: stretch;
}

.import-actions {
  display: grid;
  gap: 10px;
  align-content: start;
}

.preview-panel {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(33, 77, 62, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
}

.preview-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.preview-errors {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.preview-errors div {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(161, 44, 44, 0.08);
  color: #8a2c2c;
}

.file-drop {
  display: grid;
  gap: 5px;
  border: 1px dashed rgba(33, 77, 62, 0.28);
  background: rgba(246, 243, 236, 0.82);
  border-radius: 16px;
  padding: 15px;
  cursor: pointer;
}

.file-drop input {
  display: none;
}

.file-drop span,
.import-message {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.photo-drop {
  min-height: 108px;
  place-content: center;
  text-align: center;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.photo-drop.is-dragging {
  border-color: var(--pine);
  background: rgba(33, 87, 66, 0.1);
  transform: translateY(-2px);
}

.photo-drop.is-uploading {
  opacity: 0.65;
  pointer-events: none;
}

.photo-upload-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.photo-upload-preview img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}

.bulk-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.bulk-grid > * {
  min-width: 0;
}

.bulk-grid input,
.bulk-grid select,
.bulk-grid textarea {
  width: 100%;
  min-width: 0;
}

.inventory-audit-grid {
  grid-template-columns:
    minmax(280px, 1.4fr)
    minmax(170px, 0.72fr)
    minmax(230px, 0.9fr)
    minmax(280px, 1.2fr);
}

.inventory-audit-grid .field {
  align-content: end;
  min-width: 0;
}

.inventory-audit-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(33, 77, 62, 0.14);
  border-radius: 12px;
  background: rgba(216, 227, 181, 0.28);
  color: var(--pine);
}

.inventory-audit-current span {
  font-size: 0.82rem;
  font-weight: 700;
}

.inventory-audit-current strong {
  font-size: 1.08rem;
  white-space: nowrap;
}

.inventory-audit-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(300px, 456px) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
  margin-top: 4px;
}

.inventory-audit-actions .primary-btn {
  width: 100%;
  min-height: 48px;
}

.inventory-audit-actions .import-message {
  margin: 0;
}

@media (max-width: 1380px) {
  .inventory-audit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inventory-audit-position,
  .inventory-audit-comment {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .inventory-audit-grid,
  .inventory-audit-actions {
    grid-template-columns: 1fr;
  }

  .inventory-audit-position,
  .inventory-audit-comment,
  .inventory-audit-actions {
    grid-column: auto;
  }
}

.panel-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-title h3 {
  margin: 0;
  font-size: 1.18rem;
}

.panel-title p {
  margin: 4px 0 0;
  color: var(--muted);
}

.inventory-panel {
  overflow: hidden;
  min-width: 0;
}

.inventory-master-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  gap: 12px;
  align-items: start;
}

.inventory-side-card {
  position: sticky;
  top: 84px;
  padding: 16px;
  border-left: 5px solid var(--leaf);
  max-height: calc(100vh - 96px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.inventory-editor-status {
  position: sticky;
  top: -1px;
  z-index: 4;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 10px 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(36, 97, 76, 0.14);
  border-radius: 14px;
  background: rgba(249, 250, 246, 0.96);
  box-shadow: 0 8px 20px rgba(33, 51, 41, 0.08);
  backdrop-filter: blur(8px);
}

.inventory-editor-status > span {
  width: 9px;
  height: 9px;
  margin-top: 4px;
  border-radius: 50%;
  background: #94a39b;
}

.inventory-editor-status strong,
.inventory-editor-status small {
  display: block;
}

.inventory-editor-status strong {
  color: var(--leaf-dark);
  font-size: 0.86rem;
}

.inventory-editor-status small {
  margin-top: 2px;
  color: var(--muted);
  line-height: 1.35;
}

.inventory-editor-status[data-tone="pending"] > span {
  background: #d49a35;
  box-shadow: 0 0 0 4px rgba(212, 154, 53, 0.14);
}

.inventory-editor-status[data-tone="success"] > span {
  background: #2f8a5d;
  box-shadow: 0 0 0 4px rgba(47, 138, 93, 0.14);
}

.inventory-editor-status[data-tone="warning"] {
  border-color: rgba(173, 80, 52, 0.24);
  background: rgba(255, 246, 240, 0.97);
}

.inventory-editor-status[data-tone="warning"] > span {
  background: #ad5034;
  box-shadow: 0 0 0 4px rgba(173, 80, 52, 0.12);
}

@media (min-width: 2100px) {
  .desktop-work-hints {
    display: block;
    pointer-events: none;
  }

  .work-hint-card {
    position: fixed;
    top: 210px;
    z-index: 2;
    width: 245px;
    padding: 18px;
    border: 1px solid rgba(41, 77, 62, 0.1);
    border-radius: 26px;
    background:
      radial-gradient(circle at top right, rgba(216, 227, 181, 0.58), transparent 42%),
      linear-gradient(180deg, rgba(255, 253, 248, 0.72), rgba(245, 242, 234, 0.5));
    box-shadow: 0 20px 55px rgba(29, 30, 28, 0.08);
    color: rgba(29, 30, 28, 0.74);
  }

  .work-hint-left {
    left: max(18px, calc((100vw - 1760px) / 2 - 260px));
  }

  .work-hint-right {
    right: max(18px, calc((100vw - 1760px) / 2 - 260px));
  }

  .hint-kicker {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(33, 77, 62, 0.1);
    color: var(--pine);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  .work-hint-card > strong {
    display: block;
    margin-bottom: 14px;
    font-size: 1.05rem;
    color: var(--text);
  }

  .hint-step {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 10px;
    align-items: start;
    padding: 10px 0;
    border-top: 1px solid rgba(41, 45, 37, 0.08);
  }

  .hint-step b {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 12px;
    background: var(--pine);
    color: #fff;
    box-shadow: 0 10px 22px rgba(33, 77, 62, 0.2);
  }

  .hint-step span {
    display: grid;
    gap: 3px;
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .hint-step em {
    color: var(--text);
    font-style: normal;
    font-weight: 800;
  }
}

.compact-title {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(41, 45, 37, 0.08);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(36, 97, 76, 0.12);
  color: var(--leaf-dark);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.inventory-side-photo {
  min-height: 220px;
  margin: 16px 0;
  border-radius: 22px;
  background:
    radial-gradient(circle at 22% 22%, rgba(255, 255, 255, 0.68), transparent 28%),
    linear-gradient(135deg, rgba(36, 97, 76, 0.82), rgba(141, 162, 107, 0.74)),
    #dfe8d0;
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 -70px 80px rgba(0, 0, 0, 0.16);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

.inventory-side-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.inventory-side-metrics div {
  padding: 12px;
  border-radius: 16px;
  background: rgba(141, 162, 107, 0.12);
}

.inventory-side-metrics span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.inventory-side-metrics strong {
  display: block;
  margin-top: 3px;
  color: var(--leaf-dark);
  font-size: 1.25rem;
}

.inventory-side-form {
  display: grid;
  gap: 12px;
}

.inventory-side-form .field {
  min-width: 0;
}

.inventory-side-form input,
.inventory-side-form select,
.inventory-side-form textarea {
  width: 100%;
  min-width: 0;
}

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

.inventory-toolbar {
  padding: 14px 14px 0;
}

.inventory-table-wrap {
  overflow: auto;
  max-height: 78vh;
}

.inventory-table-wide table {
  min-width: 1500px;
}

.inventory-table-wide table.has-column-layout {
  min-width: max(900px, calc(var(--visible-column-count, 14) * 112px));
}

.inventory-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(41, 45, 37, 0.08);
  background: rgba(246, 243, 236, 0.7);
  color: var(--muted);
  font-size: 0.86rem;
}

.inventory-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.marker-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  display: inline-block;
}

.inventory-filter-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr)) minmax(260px, 1.4fr) minmax(190px, 0.9fr);
  align-items: end;
  gap: 10px;
  padding: 0 18px 18px;
  border-bottom: 1px solid rgba(41, 45, 37, 0.08);
}

.inventory-filter-bar .field {
  margin: 0;
}

.inventory-search-field {
  min-width: 260px;
}

.inventory-filter-bar > button,
.inventory-filter-bar > .mini {
  align-self: center;
}

@media (max-width: 1280px) {
  .inventory-filter-bar {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

.compact-inventory-form {
  display: grid;
  grid-template-columns: minmax(320px, 1.5fr) repeat(4, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.compact-inventory-form .field.full,
.compact-inventory-form .full {
  grid-column: 1 / -1;
}

.compact-inventory-form [data-new-name] {
  font-weight: 700;
}

.compact-inventory-form [data-add-plant] {
  min-height: 52px;
  font-size: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(41, 45, 37, 0.08);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(244, 240, 231, 0.7);
  position: sticky;
  top: 0;
  z-index: 1;
}

td .mini {
  color: var(--muted);
  font-size: 0.9rem;
}

.row-name {
  font-weight: 700;
}

.row-name-button {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.row-name-button:hover {
  color: var(--leaf);
  text-decoration: underline;
  text-underline-offset: 3px;
}

tr.is-current td {
  background: rgba(141, 162, 107, 0.22);
}

tr.is-current td:first-child {
  box-shadow: inset 4px 0 0 var(--leaf);
}

tr.marker-ok td {
  background-color: rgba(67, 128, 90, 0.04);
}

tr.marker-low td {
  background-color: rgba(214, 162, 76, 0.1);
}

tr.marker-critical td {
  background-color: rgba(188, 86, 65, 0.12);
}

tr.marker-empty td {
  background-color: rgba(128, 128, 128, 0.1);
}

tr.marker-preorder td {
  background-color: rgba(65, 113, 200, 0.1);
}

tr.is-current td {
  background-color: rgba(141, 162, 107, 0.24);
}

.marker-ok,
.status-pill.marker-ok {
  background: rgba(67, 128, 90, 0.16);
  color: #27633d;
}

.marker-low,
.status-pill.marker-low {
  background: rgba(214, 162, 76, 0.2);
  color: #8a5b13;
}

.marker-critical,
.status-pill.marker-critical {
  background: rgba(188, 86, 65, 0.2);
  color: #943d2d;
}

.marker-empty,
.status-pill.marker-empty {
  background: rgba(128, 128, 128, 0.18);
  color: #555;
}

.marker-preorder,
.status-pill.marker-preorder {
  background: rgba(65, 113, 200, 0.18);
  color: #2c57a2;
}

.edit-input {
  width: 92px;
  padding: 10px 11px;
  border-radius: 12px;
}

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

.icon-btn {
  min-width: 74px;
  height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(41, 45, 37, 0.1);
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.action-open {
  color: var(--leaf-dark);
}

.action-sell {
  background: rgba(36, 97, 76, 0.1);
  color: var(--leaf-dark);
}

.action-copy {
  color: #6b5a21;
}

.action-delete {
  color: #9a392f;
}

.row-tags,
.inventory-tags-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.inventory-code-chip {
  background: #e8f1e9 !important;
  color: #174b39 !important;
  font-weight: 800;
}

.inventory-code-chip.barcode-chip,
.inventory-code-cell small {
  font-family: "Courier New", monospace;
  letter-spacing: 0.08em;
}

.inventory-code-cell {
  min-width: 138px;
}

.inventory-code-cell strong,
.inventory-code-cell small {
  display: block;
  white-space: nowrap;
}

.inventory-code-cell small {
  margin-top: 5px;
  color: var(--muted, #6f756b);
  font-size: 0.75rem;
}

.row-tags span,
.inventory-tags-preview span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(36, 97, 76, 0.08);
  color: var(--leaf-dark);
  font-size: 0.76rem;
  font-weight: 700;
}

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

.switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch span {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #d7d2c4;
  position: relative;
  transition: 160ms ease;
}

.switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(29, 30, 28, 0.18);
  transition: 160ms ease;
}

.switch input:checked + span {
  background: var(--pine-2);
}

.switch input:checked + span::after {
  transform: translateX(18px);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(33, 77, 62, 0.06);
  color: var(--muted);
}

.check-col {
  width: 42px;
}

.sales-layout {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 16px;
}

.sales-panel,
.form-panel,
.info-panel {
  padding: 18px;
}

.sales-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.sale-row {
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(41, 45, 37, 0.08);
  background: rgba(246, 243, 236, 0.82);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.sale-row strong {
  display: block;
  margin-bottom: 4px;
}

.status-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.status-line span {
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(33, 77, 62, 0.08);
  color: var(--pine);
  font-size: 0.78rem;
  font-weight: 650;
}

.field-inline select {
  min-width: 190px;
}

.order-actions {
  justify-content: flex-end;
  margin-top: 8px;
}

.order-board {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}

.order-board button {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(41, 45, 37, 0.08);
  box-shadow: 0 12px 26px rgba(29, 30, 28, 0.05);
  text-align: left;
}

.order-board button.is-active {
  border-color: rgba(33, 77, 62, 0.28);
  background: rgba(33, 77, 62, 0.1);
  box-shadow: inset 0 0 0 2px rgba(33, 77, 62, 0.08), 0 12px 26px rgba(29, 30, 28, 0.05);
}

.order-board span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.order-board strong {
  display: block;
  margin-top: 6px;
  font-size: 1.55rem;
  line-height: 1;
}

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

.history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(246, 243, 236, 0.82);
  border: 1px solid rgba(41, 45, 37, 0.08);
}

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

.history-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.form-grid .full {
  grid-column: 1 / -1;
}

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

.section-band {
  padding: 18px 0 36px;
}

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

.blueberry-group {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(41, 45, 37, 0.08);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 14px 30px rgba(29, 30, 28, 0.05);
}

.blueberry-group h4 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

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

.chip {
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(65, 113, 200, 0.08);
  color: #2d4d97;
  font-size: 0.88rem;
  border: 1px solid rgba(65, 113, 200, 0.14);
}

.footer-note {
  padding: 18px 0 36px;
  color: var(--muted);
  font-size: 0.94rem;
}

.order-steps-section { background: linear-gradient(135deg, rgba(32,87,66,.07), rgba(180,126,58,.06)); }
.order-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.order-steps article { display: flex; align-items: flex-start; gap: 14px; padding: 20px; border: 1px solid rgba(32,87,66,.12); border-radius: 20px; background: rgba(255,255,255,.82); }
.order-steps article > span { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; background: #205742; color: #fff; font-weight: 800; }
.order-steps h4,.order-steps p { margin: 0; }
.order-steps p { margin-top: 6px; color: var(--muted); line-height: 1.5; }
.consent-field { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(32,87,66,.06); color: var(--muted); font-size: .86rem; line-height: 1.45; }
.consent-field input { width: 18px; height: 18px; margin: 1px 0 0; flex: 0 0 auto; accent-color: #205742; }
.consent-field a,.public-footer a { color: #205742; text-underline-offset: 3px; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.public-footer { margin-top: 36px; padding: 34px max(22px,calc((100vw - 1500px)/2)) 22px; background: #edf1eb; border-top: 1px solid rgba(32,87,66,.12); color: #24352e; }
.public-footer-inner { display: grid; grid-template-columns: 1.1fr 1.25fr .9fr; gap: 28px; align-items: start; }
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-brand .brand-mark { flex: 0 0 auto; }
.footer-brand strong,.footer-contacts strong { display: block; margin-bottom: 5px; }
.footer-brand span,.footer-contacts span { display: block; color: var(--muted); line-height: 1.5; }
.footer-contacts a { display: inline-block; margin-top: 7px; font-weight: 750; }
.footer-links { display: grid; gap: 9px; }
.footer-legal-note { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid rgba(32,87,66,.12); color: var(--muted); font-size: .84rem; }
.legal-page { max-width: 1050px; margin-inline: auto; }
.legal-copy { line-height: 1.7; }
.legal-copy h2 { margin: 28px 0 8px; font-size: 1.25rem; color: #143f30; }
.legal-copy h2:first-child { margin-top: 0; }
.legal-copy p { margin: 0 0 12px; }

@media (max-width: 760px) {
  .order-steps,.public-footer-inner { grid-template-columns: 1fr; }
  .order-steps article { padding: 16px; }
  .public-footer { padding: 28px 18px 20px; }
  .public-order { padding: 22px 16px 18px; }
  .hero-actions .primary-btn,.hero-actions .secondary-btn { width: 100%; justify-content: center; min-height: 48px; }
}

.table-scroll {
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(41, 45, 37, 0.08);
}

.spec-table {
  width: 100%;
}

.spec-table {
  min-width: 1050px;
}

.spec-table th,
.spec-table td {
  font-size: 0.94rem;
}

.spec-table td:nth-child(1) {
  font-weight: 700;
}

.spec-table tr:nth-child(even) td {
  background: rgba(242, 238, 229, 0.55);
}

.hide {
  display: none !important;
}

@media (max-width: 1180px) {
  .hero-panel,
  .layout-grid,
  .sales-layout,
  .login-card,
  .users-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

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

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

  .hero-highlights,
  .trust-grid,
  .review-grid,
  .bulk-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .import-grid,
  .import-steps,
  .order-board,
  .roles-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .shell,
  .topbar-inner {
    width: min(100vw - 20px, var(--max));
  }

  .topbar-inner {
    flex-direction: column;
    align-items: stretch;
  }

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

  .hero-card {
    border-radius: 28px;
    min-height: auto;
  }

  .hero-visual {
    min-height: 420px;
  }

  .hero-title {
    max-width: 100%;
  }

  .hero-metrics,
  .summary-grid,
  .catalog-grid,
  .quick-strip,
  .blueberry-grid,
  .hero-highlights,
  .trust-grid,
  .review-grid,
  .content-grid,
  .bulk-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    justify-content: flex-start;
  }

  .section-title,
  .dashboard-top,
  .panel-title {
    flex-direction: column;
    align-items: start;
  }

  .brand-mark {
    width: 50px;
    height: 50px;
  }

  .quick-card {
    padding: 14px 16px;
  }

  .hero-text,
  .section-title p,
  .dashboard-top p {
    line-height: 1.65;
  }
}
.page-shell {
  max-width: 980px;
}

.managed-page-content {
  padding-top: 0;
}

.managed-page-content .info-panel {
  font-size: 1.05rem;
  line-height: 1.75;
}

.managed-page-content .info-panel p:first-child {
  margin-top: 0;
}

.managed-page-content .info-panel p:last-child {
  margin-bottom: 0;
}

.cms-workspace {
  align-items: start;
}

.cms-workspace .sidebar {
  position: static;
  z-index: 20;
}

.cms-workspace .sidebar h3,
.cms-workspace .sidebar p {
  max-width: 100%;
}

.desktop-work-hints {
  display: none;
}

.admin-stack {
  min-height: 70vh;
  overflow: visible;
}

.admin-shell .panel-title,
.admin-shell .sales-panel,
.admin-shell .info-panel,
.admin-shell .summary-panel,
.admin-shell .content-editor,
.admin-shell .users-panel,
.admin-shell .bulk-panel,
.admin-shell .inventory-panel {
  --admin-density: 0.92;
}

.admin-shell td,
.admin-shell th {
  padding-top: 10px;
  padding-bottom: 10px;
}

@media (min-width: 1400px) {
  .admin-shell {
    width: calc(100vw - 16px);
  }

  body:has(.admin-shell) .topbar-inner {
    width: calc(100vw - 16px);
  }

  .cms-workspace {
    gap: 10px;
  }
}

.executive-dashboard {
  display: grid;
  gap: 18px;
}

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

.metric-tile {
  display: grid;
  gap: 8px;
  min-height: 128px;
  padding: 20px;
  border: 1px solid rgba(41, 45, 37, 0.08);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(216, 227, 181, 0.28), transparent 36%),
    rgba(255, 253, 248, 0.95);
  box-shadow: 0 18px 42px rgba(29, 30, 28, 0.06);
  text-align: left;
}

.metric-tile span,
.metric-tile small {
  color: var(--muted);
  font-weight: 650;
}

.metric-tile strong {
  font-size: clamp(1.55rem, 2vw, 2.2rem);
  color: var(--pine);
}

.margin-positive {
  color: #176a45;
}

.margin-negative {
  color: #a33b32;
}

.metric-action {
  border: 1px solid rgba(33, 77, 62, 0.18);
  cursor: pointer;
}

.metric-action:hover {
  transform: translateY(-2px);
}

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

.analytics-card {
  min-height: 330px;
  padding: 22px;
  border: 1px solid rgba(41, 45, 37, 0.08);
  border-radius: 26px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 18px 48px rgba(29, 30, 28, 0.07);
}

.source-revenue-card {
  min-height: 330px;
}

.source-revenue-list {
  display: grid;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(41, 45, 37, 0.08);
}

.source-revenue-row {
  display: grid;
  gap: 7px;
}

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

.source-revenue-head strong {
  color: var(--ink);
}

.source-revenue-head span {
  color: var(--pine);
  font-weight: 800;
  white-space: nowrap;
}

.source-revenue-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(33, 77, 62, 0.08);
}

.source-revenue-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2d6f58, #9ed7a3);
  box-shadow: 0 8px 18px rgba(45, 111, 88, 0.18);
}

.source-revenue-row small {
  color: var(--muted);
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
  align-items: end;
  min-height: 210px;
  padding: 22px 8px 4px;
  border-top: 1px solid rgba(41, 45, 37, 0.08);
}

.bar-item {
  display: grid;
  gap: 8px;
  justify-items: center;
  align-items: end;
  color: var(--muted);
  font-size: 0.78rem;
}

.bar-item i {
  display: block;
  width: 18px;
  min-height: 6px;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, #7fd6de, #2f9eb1);
  box-shadow: 0 10px 24px rgba(47, 158, 177, 0.2);
}

.bar-item b {
  color: var(--muted);
  font-size: 0.78rem;
}

.area-chart {
  display: grid;
  gap: 12px;
  min-height: 220px;
  padding-top: 16px;
}

.area-chart svg {
  width: 100%;
  height: 190px;
  overflow: visible;
  border-bottom: 1px solid rgba(41, 45, 37, 0.08);
}

.area-chart polygon {
  fill: rgba(127, 214, 222, 0.62);
}

.area-chart polyline {
  fill: none;
  stroke: #7f61d4;
  stroke-width: 2.2;
  vector-effect: non-scaling-stroke;
}

.area-chart-labels {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.area-chart-labels span {
  display: grid;
  gap: 2px;
  text-align: center;
  color: var(--muted);
  font-size: 0.75rem;
}

.area-chart-labels b {
  color: var(--pine);
}

.dashboard-table-wrap {
  overflow: auto;
  max-height: 230px;
}

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

.timeline-order {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid rgba(41, 45, 37, 0.08);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.timeline-order span {
  display: grid;
  gap: 4px;
}

.timeline-order small {
  color: var(--muted);
}

.timeline-order b {
  color: var(--pine);
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .dashboard-filter-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-filter-controls {
    grid-template-columns: 1fr;
  }

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

.admin-section.is-hidden {
  display: none;
}

.admin-section.is-active {
  display: block;
}

@media (max-width: 1180px) {
  .cms-workspace .sidebar {
    top: 72px;
  }

  .sidebar button {
    min-width: 150px;
  }
}

@media (max-width: 820px) {
  .sidebar nav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .sidebar button {
    width: 100%;
    min-width: 0;
  }
}

.page-head h1 {
  margin: 12px 0 10px;
  font-family: "Georgia", serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.page-head p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.65;
}

.rich-copy p {
  margin: 0 0 14px;
  line-height: 1.75;
}

.page-manager-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
}

.page-list {
  display: grid;
  gap: 10px;
  align-content: start;
}

.page-list-item {
  text-align: left;
  border: 1px solid rgba(41, 45, 37, 0.08);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  padding: 14px 16px;
  display: grid;
  gap: 4px;
}

.page-list-item strong,
.page-list-item span,
.page-list-item small {
  display: block;
}

.page-list-item span,
.page-list-item small {
  color: var(--muted);
}

.page-list-item.is-active {
  border-color: rgba(33, 77, 62, 0.2);
  background: rgba(33, 77, 62, 0.08);
}

.page-editor {
  display: grid;
  gap: 16px;
}

.page-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.toggle-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 30px;
}

.form-message {
  margin: 0;
  color: var(--pine);
  font-weight: 600;
}

.site-editor-shell {
  overflow: hidden;
  border: 1px solid rgba(41, 45, 37, 0.08);
  border-radius: 30px;
  background: rgba(252, 250, 245, 0.98);
  box-shadow: 0 24px 60px rgba(29, 30, 28, 0.08);
}

.site-editor-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 26px;
  background: radial-gradient(circle at top right, rgba(205, 222, 190, 0.4), transparent 38%), linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(242, 246, 238, 0.94));
}

.site-editor-header h2 {
  margin: 10px 0 6px;
}

.site-editor-header p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.site-editor-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(105px, 1fr));
  gap: 8px;
  min-width: min(100%, 520px);
}

.site-editor-summary > div {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid rgba(41, 45, 37, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.site-editor-summary strong {
  color: var(--pine);
}

.site-editor-summary span {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-editor-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid rgba(41, 45, 37, 0.06);
  border-bottom: 1px solid rgba(41, 45, 37, 0.08);
  background: rgba(255, 255, 255, 0.86);
}

.site-editor-tabs button,
.site-editor-tabs a {
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.site-editor-tabs button.is-active {
  border-color: rgba(33, 77, 62, 0.16);
  background: rgba(33, 77, 62, 0.1);
  color: var(--pine);
}

.site-editor-tabs a {
  margin-left: auto;
  color: var(--pine);
}

.site-editor-workspace {
  padding: 22px;
}

.page-manager > .panel-title {
  margin-bottom: 18px;
}

.site-page-editor {
  padding: 20px;
  border: 1px solid rgba(41, 45, 37, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
}

.site-page-editor-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.site-page-editor-heading h3 {
  margin: 4px 0;
}

.site-page-editor-heading small,
.editor-eyebrow {
  color: var(--muted);
}

.editor-eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.editor-group {
  overflow: hidden;
  border: 1px solid rgba(41, 45, 37, 0.09);
  border-radius: 20px;
  background: rgba(252, 250, 245, 0.72);
}

.editor-group summary {
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

.editor-group summary::-webkit-details-marker {
  display: none;
}

.editor-group summary span {
  display: grid;
  gap: 3px;
}

.editor-group summary small {
  color: var(--muted);
  font-weight: 500;
}

.editor-group[open] summary {
  border-bottom: 1px solid rgba(41, 45, 37, 0.07);
  background: rgba(33, 77, 62, 0.04);
}

.editor-group-body {
  padding: 18px;
  margin-top: 0;
}

.seo-preview {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
}

.seo-preview strong {
  color: #1857a4;
  font-size: 1.1rem;
}

.seo-preview span {
  color: #4b4f47;
  line-height: 1.45;
}

.seo-preview em {
  color: #177245;
  font-style: normal;
  font-size: 0.86rem;
}

.content-editor-groups,
.publication-center,
.publication-page-list {
  display: grid;
  gap: 14px;
}

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

.publication-card {
  display: grid;
  gap: 9px;
  padding: 20px;
  border: 1px solid rgba(41, 45, 37, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
}

.publication-card > span,
.publication-card > small {
  color: var(--muted);
}

.publication-card > strong {
  color: var(--pine);
  font-size: 1.35rem;
}

.publication-page-list button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(41, 45, 37, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  text-align: left;
  cursor: pointer;
}

.publication-page-list button span {
  display: grid;
  gap: 3px;
}

.publication-page-list small {
  color: var(--muted);
}

.publication-page-list em {
  padding: 6px 9px;
  border-radius: 999px;
  font-style: normal;
  font-size: 0.76rem;
  font-weight: 800;
}

.publication-page-list em.is-published {
  color: #176a45;
  background: rgba(33, 125, 86, 0.1);
}

.publication-page-list em.is-draft {
  color: #8b641d;
  background: rgba(183, 136, 49, 0.12);
}

.publication-page-list em.is-unpublished {
  color: #a24134;
  background: rgba(162, 65, 52, 0.11);
}

.page-block-builder,
.page-block-list {
  display: grid;
  gap: 14px;
}

.block-library {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(33, 77, 62, 0.06);
}

.block-library > span {
  margin-right: 4px;
  color: var(--muted);
  font-weight: 700;
}

.block-library button,
.page-block-actions button {
  padding: 8px 11px;
  border: 1px solid rgba(33, 77, 62, 0.14);
  border-radius: 11px;
  background: #fff;
  color: var(--pine);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.page-block-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(41, 45, 37, 0.09);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
}

.page-block-card-head,
.page-block-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.page-block-card-head > div:first-child {
  display: grid;
  gap: 3px;
}

.page-block-card-head span {
  color: var(--muted);
  font-size: 0.78rem;
}

.page-block-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.page-block-actions label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 0.82rem;
}

.page-block-actions .danger,
.page-block-image-preview button {
  color: #a24134;
}

.page-block-image-preview {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.page-block-image-preview img {
  width: 140px;
  height: 92px;
  object-fit: cover;
  border-radius: 14px;
}

.page-block-image-preview button {
  justify-self: start;
  border: 0;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.public-builder-block {
  padding-top: 18px;
  padding-bottom: 18px;
}

.builder-image {
  margin: 0;
}

.builder-image img {
  display: block;
  width: 100%;
  max-height: 680px;
  object-fit: cover;
  border-radius: 28px;
}

.builder-image figcaption {
  padding: 9px 4px 0;
  color: var(--muted);
}

.builder-image-text {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 253, 248, 0.96);
}

.builder-image-text.image-right .builder-media {
  order: 2;
}

.builder-media img {
  width: 100%;
  min-height: 280px;
  max-height: 520px;
  object-fit: cover;
  border-radius: 22px;
}

.builder-copy h2,
.builder-callout h2 {
  margin-top: 0;
}

.builder-copy p,
.builder-callout p {
  line-height: 1.7;
}

.builder-callout {
  padding: clamp(28px, 5vw, 58px);
  border-radius: 30px;
  background: linear-gradient(135deg, #214d3e, #2f6a54);
  color: #fff;
}

.builder-callout .primary-btn {
  margin-top: 14px;
  background: #fff;
  color: var(--pine);
}

@media (max-width: 1100px) {
  .site-editor-header {
    flex-direction: column;
  }

  .site-editor-summary {
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-manager-grid,
  .publication-grid,
  .builder-image-text {
    grid-template-columns: 1fr;
  }

  .builder-image-text.image-right .builder-media {
    order: initial;
  }

  .page-list {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }
}

@media (max-width: 680px) {
  .site-editor-header,
  .site-editor-workspace {
    padding: 16px;
  }

  .site-editor-tabs {
    overflow-x: auto;
    padding: 10px;
  }

  .site-editor-tabs button,
  .site-editor-tabs a {
    flex: 0 0 auto;
  }

  .site-editor-summary,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .site-page-editor {
    padding: 14px;
  }

  .site-page-editor-heading {
    flex-direction: column;
  }

  .page-block-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-block-actions {
    justify-content: flex-start;
  }
}

.orders-workspace {
  display: grid;
  gap: 16px;
}

.orders-grid {
  display: grid;
  grid-template-columns: minmax(460px, 520px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.sale-row-button {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.sale-row-button.is-active {
  border-color: rgba(33, 77, 62, 0.22);
  background: rgba(33, 77, 62, 0.08);
  box-shadow: inset 0 0 0 2px rgba(33, 77, 62, 0.08);
}

.orders-grid .sales-panel,
.orders-grid .info-panel {
  padding: 16px;
}

.orders-grid .sales-list {
  max-height: 82vh;
  overflow: auto;
  padding-right: 6px;
}

.orders-grid .order-detail {
  min-height: 0;
}

.sale-row-side {
  text-align: right;
}

.order-id-badge {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(33, 77, 62, 0.08);
  color: var(--pine);
  font-weight: 700;
}

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

.order-card-block {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(246, 243, 236, 0.82);
  border: 1px solid rgba(41, 45, 37, 0.08);
}

.order-card-block .label {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  margin-bottom: 3px;
}

.order-card-block strong {
  font-size: 0.94rem;
}

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

.order-meta-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.compact-order-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(246, 243, 236, 0.55);
}

.compact-order-meta div {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-status-line {
  margin-top: 10px;
  gap: 8px;
  flex-wrap: wrap;
}

.status-pill {
  border-radius: 999px;
  padding: 7px 11px;
  border: 1px solid rgba(41, 45, 37, 0.1);
  background: rgba(246, 243, 236, 0.85);
  color: var(--muted);
  font-weight: 750;
}

.status-neutral {
  background: rgba(246, 243, 236, 0.9);
  color: var(--muted);
}

.status-work {
  background: rgba(65, 113, 200, 0.13);
  border-color: rgba(65, 113, 200, 0.26);
  color: #294f96;
}

.status-paid,
.status-done {
  background: rgba(33, 77, 62, 0.13);
  border-color: rgba(33, 77, 62, 0.24);
  color: var(--pine);
}

.status-warning {
  background: rgba(214, 162, 76, 0.17);
  border-color: rgba(214, 162, 76, 0.28);
  color: #875615;
}

.status-ready {
  background: rgba(115, 190, 158, 0.2);
  border-color: rgba(115, 190, 158, 0.34);
  color: #1d654f;
}

.status-danger {
  background: rgba(159, 75, 61, 0.12);
  border-color: rgba(159, 75, 61, 0.25);
  color: #8d3327;
}

.order-detail {
  border-left: 6px solid rgba(41, 45, 37, 0.12);
}

.order-state-new {
  border-left-color: rgba(65, 113, 200, 0.45);
}

.order-state-work {
  border-left-color: rgba(65, 113, 200, 0.72);
}

.order-state-paid {
  border-left-color: rgba(33, 77, 62, 0.7);
}

.order-state-assemble {
  border-left-color: rgba(214, 162, 76, 0.8);
}

.order-state-ready {
  border-left-color: rgba(115, 190, 158, 0.9);
}

.order-state-done {
  border-left-color: rgba(33, 77, 62, 0.95);
}

.order-state-cancelled {
  border-left-color: rgba(159, 75, 61, 0.85);
}

.order-notice {
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(33, 77, 62, 0.14), rgba(141, 162, 107, 0.14));
  border: 1px solid rgba(33, 77, 62, 0.16);
  color: var(--pine);
  font-weight: 650;
}

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

.orders-workspace .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.orders-workspace .compact-order-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.compact-order-form .field {
  gap: 4px;
}

.compact-order-form input,
.compact-order-form select,
.compact-order-form textarea {
  min-height: 40px;
  padding: 9px 11px;
}

.orders-workspace .form-grid .full {
  grid-column: 1 / -1;
}

.order-extra-panel {
  margin-top: 10px;
  border-radius: 18px;
  border: 1px solid rgba(41, 45, 37, 0.08);
  background: rgba(255, 253, 248, 0.72);
  overflow: hidden;
}

.order-extra-panel summary {
  cursor: pointer;
  padding: 11px 13px;
  font-weight: 800;
  color: var(--pine);
}

.order-extra-panel[open] {
  padding-bottom: 12px;
}

.order-extra-panel[open] summary {
  border-bottom: 1px solid rgba(41, 45, 37, 0.08);
}

@media (max-width: 1500px) {
  .order-detail-grid,
  .orders-workspace .compact-order-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cashier-grid,
  .cashier-checkout-grid {
    grid-template-columns: 1fr;
  }

  .cashier-form-panel {
    position: static;
  }

  .inventory-master-detail {
    grid-template-columns: 1fr;
  }

  .inventory-side-card {
    position: static;
    max-height: none;
  }
}

@media (max-width: 1180px) {
  .orders-grid {
    grid-template-columns: 1fr;
  }

  .order-detail-grid,
  .orders-workspace .compact-order-form,
  .compact-order-meta,
  .order-action-grid {
    grid-template-columns: 1fr;
  }

  .inventory-insights,
  .inventory-grid,
  .inventory-detail-stack {
    grid-template-columns: 1fr;
  }

  .orders-grid .sales-list,
  .orders-grid .order-detail {
    max-height: none;
    min-height: 0;
  }

  .inventory-grid .sales-list {
    max-height: none;
  }
}

.order-action-btn {
  min-height: 48px;
  border-radius: 18px;
  font-weight: 850;
  box-shadow: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.order-action-btn small {
  display: block;
  margin-top: 3px;
  font-size: 0.72rem;
  opacity: 0.78;
}

.users-panel > .panel-title {
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(33, 77, 62, 0.12), rgba(238, 242, 236, 0.78));
}

.users-list,
.user-create,
.roles-panel {
  border-top: 4px solid var(--pine);
}

.user-role-control {
  display: grid;
  gap: 4px;
  min-width: 180px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.user-role-control select {
  min-height: 38px;
  border: 1px solid rgba(33, 77, 62, 0.18);
  border-radius: 9px;
  background: #fff;
}

.order-action-btn:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(33, 77, 62, 0.14);
}

.order-action-grid button:disabled {
  opacity: 0.36;
  cursor: not-allowed;
  filter: grayscale(0.3);
}

.order-action-grid .order-action-btn.is-active {
  opacity: 1;
  filter: none;
  color: #fff;
  box-shadow: inset 0 2px 7px rgba(0, 0, 0, 0.18);
}

.action-work {
  background: rgba(65, 113, 200, 0.12);
  border: 1px solid rgba(65, 113, 200, 0.22);
  color: #2c57a2;
}

.action-work.is-active {
  background: linear-gradient(135deg, #315da8, #25477f);
}

.action-confirm {
  background: rgba(141, 162, 107, 0.16);
  border: 1px solid rgba(141, 162, 107, 0.28);
  color: #4f6b22;
}

.action-confirm.is-active {
  background: linear-gradient(135deg, #738d42, #4f6b22);
}

.action-pay {
  background: rgba(33, 77, 62, 0.13);
  border: 1px solid rgba(33, 77, 62, 0.24);
  color: var(--pine);
}

.action-pay.is-active {
  background: linear-gradient(135deg, #2e725b, #214d3e);
}

.action-assemble {
  background: rgba(214, 162, 76, 0.16);
  border: 1px solid rgba(214, 162, 76, 0.26);
  color: #8d5b12;
}

.action-assemble.is-active {
  background: linear-gradient(135deg, #d09a43, #8d5b12);
}

.action-ready {
  background: rgba(115, 190, 158, 0.18);
  border: 1px solid rgba(115, 190, 158, 0.3);
  color: #1f6d58;
}

.action-ready.is-active {
  background: linear-gradient(135deg, #56a989, #1f6d58);
}

.action-issue {
  background: rgba(188, 126, 66, 0.16);
  border: 1px solid rgba(188, 126, 66, 0.24);
  color: #875126;
}

.action-issue.is-active {
  background: linear-gradient(135deg, #b9773a, #875126);
}

.action-cancel {
  background: rgba(159, 75, 61, 0.1);
  border: 1px solid rgba(159, 75, 61, 0.2);
  color: #8d3327;
}

.action-cancel.is-active {
  background: linear-gradient(135deg, #a54e42, #7e3028);
}

.action-return {
  background: rgba(41, 45, 37, 0.06);
  border: 1px solid rgba(41, 45, 37, 0.12);
  color: var(--muted);
}

.cashier-workspace {
  display: grid;
  gap: 16px;
}

.cashier-grid {
  display: grid;
  grid-template-columns: minmax(440px, 0.72fr) minmax(760px, 1.28fr);
  gap: 16px;
  align-items: start;
}

.cashier-checkout-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(420px, 1.08fr);
  gap: 16px;
  align-items: start;
}

.cashier-cart-panel {
  min-height: 360px;
}

.cashier-form-panel {
  position: sticky;
  top: 92px;
}

.cashier-results,
.cashier-cart {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.cashier-cart {
  align-content: start;
}

.cashier-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(246, 243, 236, 0.82);
  border: 1px solid rgba(41, 45, 37, 0.08);
}

.cashier-item strong,
.cashier-item small {
  display: block;
}

.cashier-item small {
  margin-top: 4px;
  color: var(--muted);
}

.cashier-item-side {
  text-align: right;
  display: grid;
  gap: 8px;
  align-content: center;
}

.cashier-qty {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.cashier-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 12px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(33, 77, 62, 0.1), rgba(33, 77, 62, 0.04));
}

.cashier-total span {
  color: var(--muted);
}

.cashier-total strong {
  font-size: 1.6rem;
  line-height: 1;
}

.empty-note {
  padding: 18px;
  border-radius: 16px;
  background: rgba(246, 243, 236, 0.6);
  color: var(--muted);
}

.inventory-workspace {
  display: grid;
  gap: 18px;
}

.inventory-workspace [data-inventory-pane]:not(.is-active),
.inventory-workspace [data-inventory-subpane]:not(.is-active) {
  display: none !important;
}

.inventory-tool-shell {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(36, 97, 76, 0.12);
  border-radius: 24px;
  background:
    linear-gradient(115deg, rgba(36, 97, 76, 0.11), rgba(255, 255, 255, 0.96) 42%),
    rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(33, 51, 41, 0.08);
}

.inventory-tool-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.inventory-tool-heading h2 {
  margin: 2px 0 0;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
}

.inventory-tool-heading p {
  margin: 5px 0 0;
  color: var(--muted);
}

.inventory-tool-kicker {
  color: var(--pine);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inventory-tool-nav {
  display: grid;
  grid-template-columns: repeat(8, minmax(126px, 1fr));
  gap: 8px;
}

.inventory-tool-tab {
  min-width: 0;
  min-height: 66px;
  padding: 10px 12px;
  border: 1px solid rgba(36, 97, 76, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.inventory-tool-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(36, 97, 76, 0.38);
  box-shadow: 0 8px 18px rgba(33, 51, 41, 0.08);
}

.inventory-tool-tab strong,
.inventory-tool-tab span {
  display: block;
}

.inventory-tool-tab strong {
  font-size: 0.86rem;
  line-height: 1.15;
}

.inventory-tool-tab span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.2;
}

.inventory-tool-tab.is-active {
  border-color: var(--pine);
  background: var(--pine);
  color: #fff;
  box-shadow: 0 10px 22px rgba(25, 79, 62, 0.2);
}

.inventory-tool-tab.is-active span {
  color: rgba(255, 255, 255, 0.76);
}

.inventory-tool-pane.is-active {
  min-width: 0;
}

.inventory-danger-menu {
  margin: 14px 18px 18px;
  border: 1px solid rgba(134, 70, 58, 0.15);
  border-radius: 16px;
  background: rgba(255, 250, 247, 0.72);
  overflow: hidden;
}

.inventory-danger-menu summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.inventory-danger-menu summary::-webkit-details-marker {
  display: none;
}

.inventory-danger-chevron {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(134, 70, 58, 0.09);
  transition: transform 0.16s ease;
}

.inventory-danger-menu[open] .inventory-danger-chevron {
  transform: rotate(180deg);
}

.inventory-danger-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px;
  border-top: 1px solid rgba(134, 70, 58, 0.12);
}

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

.inventory-transfer-panel {
  width: min(100%, 980px);
  padding: 22px;
  border-left: 5px solid var(--leaf);
}

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

.inventory-transfer-actions {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.inventory-transfer-actions .form-message {
  margin: 0;
}

.inventory-workspace[data-inventory-tool-view="operations"] .inventory-detail-stack {
  grid-template-columns: minmax(0, 920px);
}

@media (max-width: 1280px) {
  .inventory-tool-nav {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: minmax(150px, 190px);
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
  }

  .inventory-tool-tab {
    scroll-snap-align: start;
  }
}

@media (max-width: 720px) {
  .inventory-tool-shell,
  .inventory-transfer-panel {
    padding: 14px;
    border-radius: 18px;
  }

  .inventory-tool-heading p {
    font-size: 0.82rem;
  }

  .inventory-tool-nav {
    grid-auto-columns: minmax(142px, 76vw);
  }

  .inventory-transfer-grid,
  .inventory-transfer-actions {
    grid-template-columns: 1fr;
  }

  .inventory-danger-body {
    align-items: stretch;
    flex-direction: column;
  }
}

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

.inventory-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.inventory-add-panel {
  border-left: 5px solid var(--leaf);
  background:
    linear-gradient(90deg, rgba(141, 162, 107, 0.14), rgba(255, 255, 255, 0.94) 36%),
    rgba(255, 255, 255, 0.96);
}

.inventory-add-panel .panel-title {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(41, 45, 37, 0.08);
}

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

.inventory-photo-card {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.inventory-photo-preview {
  border-radius: 20px;
  overflow: hidden;
  background: rgba(33, 77, 62, 0.08);
  min-height: 220px;
}

.inventory-photo-preview img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.gallery-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gallery-strip img {
  width: 88px;
  height: 88px;
  border-radius: 14px;
  object-fit: cover;
  display: block;
}

.inventory-grid .sales-list {
  max-height: 72vh;
  overflow: auto;
  padding-right: 6px;
}

.inventory-grid .sales-panel,
.inventory-insights .sales-panel {
  padding: 20px;
}

.inventory-grid .stack {
  display: grid;
  gap: 18px;
}

.customers-panel {
  padding: 18px;
}

.customer-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.customer-stats div,
.customer-help,
.customer-row {
  border: 1px solid rgba(41, 45, 37, 0.08);
  background: rgba(255, 255, 255, 0.76);
  border-radius: 18px;
}

.customer-stats div {
  display: grid;
  gap: 4px;
  padding: 14px;
}

.customer-stats small,
.customer-stats span,
.customer-row small {
  color: var(--muted);
}

.customer-stats strong {
  color: var(--pine);
  font-size: 1.45rem;
}

.customer-help {
  display: grid;
  gap: 7px;
  padding: 14px 16px;
  margin: 12px 0 16px;
  background:
    radial-gradient(circle at top right, rgba(141, 162, 107, 0.18), transparent 42%),
    rgba(255, 255, 255, 0.78);
}

.customer-help strong {
  color: var(--pine);
}

.customers-table {
  overflow: auto;
  border-radius: 20px;
  border: 1px solid rgba(41, 45, 37, 0.08);
  background: rgba(246, 243, 236, 0.62);
}

.customers-head,
.customer-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.25fr) minmax(170px, 1fr) minmax(150px, 0.9fr) minmax(160px, 1fr) minmax(110px, 0.65fr) minmax(140px, 0.8fr) minmax(94px, 0.55fr);
  gap: 10px;
  min-width: 1160px;
  align-items: start;
}

.customers-head {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.customer-row {
  margin: 8px;
  padding: 14px;
}

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

.customer-row strong {
  color: var(--pine);
}

.customer-row small {
  margin-top: 4px;
  line-height: 1.35;
}

.customer-open-button {
  width: 100%;
  margin: 0;
}

.customer-editor-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(12, 31, 24, 0.45);
  backdrop-filter: blur(3px);
}

.customer-editor {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 1101;
  width: min(560px, 100vw);
  overflow: auto;
  padding: 24px;
  background: linear-gradient(180deg, #fff, #f6f7f2);
  box-shadow: -18px 0 50px rgba(18, 49, 37, 0.2);
}

.customer-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(41, 45, 37, 0.1);
}

.customer-editor-head h3 {
  margin: 4px 0;
  color: var(--pine);
  font-size: 1.55rem;
}

.customer-editor-head span,
.customer-editor-head small {
  color: var(--muted);
}

.customer-editor form,
.customer-editor-grid {
  display: grid;
  gap: 14px;
}

.customer-editor form {
  margin-top: 20px;
}

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

.customer-editor-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.customer-editor-grid input,
.customer-editor-grid select,
.customer-editor-grid textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(41, 45, 37, 0.15);
  border-radius: 13px;
  background: #fff;
  padding: 12px 13px;
  color: var(--ink);
  font: inherit;
}

.customer-editor-wide {
  grid-column: 1 / -1;
}

.customer-identity-note {
  display: grid;
  gap: 5px;
  padding: 14px;
  border-radius: 15px;
  background: #eaf2ec;
  color: #52645b;
}

.customer-identity-note strong {
  color: var(--pine);
}

.customer-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  position: sticky;
  bottom: -24px;
  margin: 4px -24px -24px;
  padding: 15px 24px;
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid rgba(41, 45, 37, 0.1);
  backdrop-filter: blur(8px);
}

.customer-merge-box {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  padding: 18px;
  border: 1px solid rgba(125, 91, 42, 0.2);
  border-radius: 18px;
  background: #fff8ed;
}

.customer-merge-box h4,
.customer-merge-box p {
  margin: 0;
}

.customer-merge-box p,
.customer-merge-box small {
  color: var(--muted);
  line-height: 1.45;
}

.customer-merge-box form,
.customer-merge-box label {
  display: grid;
  gap: 8px;
  margin: 0;
}

.customer-merge-box select {
  width: 100%;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid rgba(41, 45, 37, 0.15);
  border-radius: 13px;
  background: #fff;
  font: inherit;
}

.customer-archive-button {
  justify-self: start;
  color: #8a3f2b;
}

.customer-editor form.is-deleted input,
.customer-editor form.is-deleted select,
.customer-editor form.is-deleted textarea {
  pointer-events: none;
  opacity: 0.62;
  background: #f3f2ee;
}

.customer-delete-zone {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(138, 63, 43, 0.18);
}

.customer-delete-zone strong {
  color: #7a2f25;
}

.danger-btn {
  width: fit-content;
  padding: 11px 16px;
  border: 1px solid #a84939;
  border-radius: 13px;
  background: #a84939;
  color: #fff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.danger-btn:hover {
  background: #8c382c;
}

.danger-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

@media (max-width: 640px) {
  .customer-editor {
    padding: 18px;
  }
  .customer-editor-grid {
    grid-template-columns: 1fr;
  }
  .customer-editor-wide {
    grid-column: auto;
  }
  .customer-editor-actions {
    margin-inline: -18px;
    margin-bottom: -18px;
    padding-inline: 18px;
  }
}

.notification-health {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.notification-health article,
.notification-template-card,
.notification-masks {
  border: 1px solid rgba(41, 45, 37, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
}

.notification-health article {
  display: grid;
  gap: 5px;
  padding: 14px;
}

.notification-health span,
.notification-health small,
.template-head small {
  color: var(--muted);
}

.notification-health strong {
  color: var(--pine);
}

.notification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.notification-masks {
  display: grid;
  gap: 6px;
  margin: 14px 0;
  padding: 12px 14px;
}

.notification-masks span {
  color: var(--pine);
  font-weight: 750;
  word-break: break-word;
}

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

.notification-template-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

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

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

.template-switches label {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(33, 77, 62, 0.08);
  color: var(--pine);
  font-weight: 750;
}

.template-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.88rem;
}


.notification-workspace {
  display: grid;
  gap: 18px;
}

.notification-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(33, 77, 62, 0.96), rgba(48, 101, 78, 0.92));
  color: #fff;
  box-shadow: 0 20px 50px rgba(33, 77, 62, 0.18);
}

.notification-topbar h3 {
  margin: 0 0 6px;
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.notification-topbar p {
  margin: 0;
  max-width: 780px;
  color: rgba(255, 255, 255, 0.78);
}

.notification-progress-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.notification-progress-pill > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  color: var(--pine);
  font-weight: 900;
}

.notification-progress-pill strong,
.notification-progress-pill small {
  display: block;
}

.notification-progress-pill small {
  color: rgba(255, 255, 255, 0.72);
}

.notification-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.notification-layout main,
.notification-card-list,
.notification-sidebar {
  display: grid;
  gap: 14px;
}

.notification-sidebar {
  position: sticky;
  top: 92px;
}

.notification-global-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.96);
  border: 1px solid rgba(41, 45, 37, 0.08);
  box-shadow: 0 14px 42px rgba(29, 30, 28, 0.06);
}

.notification-global-card > div,
.notification-side-card label {
  display: grid;
  gap: 6px;
}

.notification-global-card span,
.notification-side-card h4,
.notification-preview-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.notification-global-card strong {
  color: var(--pine);
  font-size: 1.05rem;
}

.notification-global-card small,
.notification-side-card p,
.notification-preview-card small {
  color: var(--muted);
}

.notification-guide-card,
.notification-side-card,
.notification-event-card {
  border: 1px solid rgba(41, 45, 37, 0.08);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 14px 42px rgba(29, 30, 28, 0.06);
}

.notification-guide-card {
  padding: 18px;
}

.notification-guide-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.notification-guide-head strong {
  color: var(--pine);
  font-size: 1.05rem;
}

.notification-guide-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

.notification-connect-link {
  color: #2563eb;
  display: block;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

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

.notification-guide-steps div {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: rgba(33, 77, 62, 0.06);
}

.notification-guide-steps b {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--pine);
  color: #fff;
}

.notification-event-card {
  overflow: hidden;
}

.notification-event-card summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

.notification-event-card summary::-webkit-details-marker {
  display: none;
}

.notification-event-card summary strong,
.notification-event-card summary small {
  display: block;
}

.notification-event-card summary small {
  margin-top: 3px;
  color: var(--muted);
}

.notification-status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d9d5c9;
  box-shadow: 0 0 0 5px rgba(217, 213, 201, 0.2);
}

.notification-status-dot.is-on {
  background: #4f9365;
  box-shadow: 0 0 0 5px rgba(79, 147, 101, 0.18);
}

.notification-channel-chips {
  display: flex;
  gap: 6px;
}

.notification-channel-chips span {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(41, 45, 37, 0.06);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.notification-channel-chips span.is-on {
  background: rgba(79, 147, 101, 0.16);
  color: var(--pine);
}

.notification-toggle {
  position: relative;
  width: 42px;
  height: 24px;
}

.notification-toggle input {
  position: absolute;
  opacity: 0;
}

.notification-toggle i {
  display: block;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #d9d5c9;
  transition: 0.15s ease;
}

.notification-toggle i::after {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  margin: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  transition: 0.15s ease;
}

.notification-toggle input:checked + i {
  background: #4f9365;
}

.notification-toggle input:checked + i::after {
  transform: translateX(18px);
}

.notification-event-body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 16px;
  padding: 0 18px 18px;
  border-top: 1px solid rgba(41, 45, 37, 0.08);
}

.notification-template-editor,
.notification-preview-card {
  display: grid;
  gap: 12px;
  padding-top: 16px;
}

.notification-template-editor label,
.notification-side-card label {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.notification-template-editor input,
.notification-template-editor textarea,
.notification-side-card input,
.notification-side-card textarea,
.notification-global-card input,
.notification-global-card select {
  width: 100%;
  border: 1px solid rgba(41, 45, 37, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

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

.notification-recipients label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(33, 77, 62, 0.06);
  color: var(--pine);
}

.notification-preview-card {
  align-self: start;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(238, 242, 236, 0.9), rgba(255, 255, 255, 0.95));
  border: 1px dashed rgba(33, 77, 62, 0.18);
}

.notification-preview-message {
  white-space: pre-wrap;
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(41, 45, 37, 0.08);
  color: var(--ink);
}

.notification-side-card {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.notification-side-card h4 {
  margin: 0;
}

.notification-side-card .primary-btn,
.notification-side-card .secondary-btn {
  width: 100%;
}

.notification-mask-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.notification-mask-chip {
  cursor: pointer;
  border: 1px solid rgba(79, 147, 101, 0.24);
  border-radius: 9px;
  padding: 6px 8px;
  background: rgba(79, 147, 101, 0.1);
  color: var(--pine);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 800;
}

.notification-mask-chip:hover {
  border-color: #4f9365;
  background: rgba(79, 147, 101, 0.2);
}

.notification-jumpnav {
  display: grid;
  gap: 4px;
}

.notification-jumpnav button {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.notification-jumpnav button:hover {
  background: rgba(33, 77, 62, 0.07);
}

.notification-jumpnav i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d9d5c9;
}

.notification-jumpnav i.is-on { background: #4f9365; }

.notification-event-card {
  scroll-margin-top: 92px;
}

.notification-side-card.muted {
  background: rgba(238, 242, 236, 0.72);
}

@media (max-width: 1100px) {
  .notification-layout,
  .notification-event-body,
  .notification-global-card,
  .notification-guide-steps {
    grid-template-columns: 1fr;
  }

  .notification-sidebar {
    position: static;
  }

  .notification-topbar,
  .notification-guide-head {
    align-items: stretch;
    flex-direction: column;
  }
}



.mobile-ops-card {
  min-height: 330px;
}

.mobile-ops-list {
  display: grid;
  gap: 10px;
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
}

.mobile-op-row {
  width: 100%;
  border: 1px solid rgba(37, 91, 70, 0.12);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(244, 250, 239, 0.92), rgba(255, 252, 245, 0.94));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.mobile-op-row:hover {
  border-color: rgba(37, 91, 70, 0.32);
  box-shadow: 0 14px 30px rgba(43, 71, 52, 0.1);
  transform: translateY(-1px);
}

.mobile-op-row.is-movement {
  background: linear-gradient(135deg, rgba(238, 248, 251, 0.94), rgba(249, 252, 246, 0.92));
}

.mobile-op-row span {
  display: grid;
  gap: 4px;
}

.mobile-op-row strong {
  color: var(--ink);
}

.mobile-op-row small {
  color: var(--muted);
}

.mobile-op-row b {
  color: var(--pine);
  white-space: nowrap;
}


.order-progress-card {
  margin: 14px 0 16px;
  padding: 14px;
  border: 1px solid rgba(31, 91, 70, 0.16);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(246, 242, 229, 0.92), rgba(255, 255, 255, 0.96));
}

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

.order-progress-head strong {
  color: var(--green-dark);
  font-size: 15px;
}

.order-progress-head span {
  max-width: 620px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: right;
}

.order-stepper-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(90px, 1fr));
  gap: 8px;
}

.order-step {
  position: relative;
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(31, 91, 70, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.order-step.done {
  background: rgba(31, 91, 70, 0.14);
  border-color: rgba(31, 91, 70, 0.28);
  color: var(--green-dark);
}

.order-step.current {
  background: #1f5b46;
  border-color: #1f5b46;
  color: #fff;
  box-shadow: 0 12px 24px rgba(31, 91, 70, 0.18);
}

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

.cashier-chip {
  border: 1px solid rgba(31, 91, 70, 0.14);
  border-radius: 999px;
  padding: 9px 13px;
  background: #fff;
  color: var(--green-dark);
  font-weight: 800;
  cursor: pointer;
}

.cashier-chip.is-active {
  background: #1f5b46;
  color: #fff;
  border-color: #1f5b46;
  box-shadow: 0 10px 22px rgba(31, 91, 70, 0.16);
}

.cashier-message {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(31, 91, 70, 0.1);
  color: var(--green-dark);
  font-weight: 800;
}

.cashier-item.has-qty {
  border-color: rgba(31, 91, 70, 0.34);
  background: rgba(223, 237, 226, 0.48);
}

.cashier-item.has-qty::before {
  content: "в корзине";
  position: absolute;
  right: 14px;
  top: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(31, 91, 70, 0.14);
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 900;
}

.primary-btn[disabled],
.secondary-btn[disabled],
.order-action[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.35);
}

@media (max-width: 980px) {
  .order-stepper-row {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .order-progress-head {
    display: block;
  }

  .order-progress-head span {
    display: block;
    max-width: none;
    margin-top: 6px;
    text-align: left;
  }
}


.order-search-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: end;
  gap: 10px;
  margin: 12px 0 14px;
  padding: 12px;
  border: 1px solid rgba(31, 91, 70, 0.12);
  border-radius: 18px;
  background: rgba(246, 242, 229, 0.7);
}

.order-search-panel label {
  display: grid;
  gap: 6px;
}

.order-search-panel span,
.order-search-panel small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.order-search-panel input {
  min-height: 42px;
}

@media (max-width: 760px) {
  .order-search-panel {
    grid-template-columns: 1fr;
  }
}


.cashier-payment-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 8px;
}

.cashier-pay-pill {
  border: 1px solid rgba(31, 91, 70, 0.16);
  border-radius: 999px;
  padding: 10px 12px;
  background: #fff;
  color: var(--green-dark);
  font-weight: 900;
  cursor: pointer;
}

.cashier-pay-pill.is-active {
  background: #1f5b46;
  border-color: #1f5b46;
  color: #fff;
  box-shadow: 0 10px 20px rgba(31, 91, 70, 0.16);
}

.cashier-required-hint {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(181, 101, 47, 0.11);
  color: #7b4a20;
  font-weight: 800;
}

@media (max-width: 760px) {
  .cashier-payment-pills {
    grid-template-columns: 1fr;
  }
}


.order-action-console {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 16px 0 12px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(31, 91, 70, 0.12), rgba(246, 242, 229, 0.9));
  border: 1px solid rgba(31, 91, 70, 0.18);
}

.order-action-console div {
  display: grid;
  gap: 4px;
}

.order-action-console strong {
  color: var(--green-dark);
  font-size: 15px;
}

.order-action-console span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.order-action-group {
  display: grid;
  gap: 8px;
}

.order-action-group h4 {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.order-action-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

@media (max-width: 760px) {
  .order-action-console {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Compact operator view for the orders workspace. */
@media (min-width: 1181px) {
  .orders-grid {
    grid-template-columns: minmax(420px, 480px) minmax(0, 1fr);
  }

  .orders-grid .info-panel {
    padding: 14px;
  }

  .orders-grid .order-detail {
    position: sticky;
    top: 86px;
  }

  .order-detail-grid {
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 8px;
  }

  .orders-workspace .compact-order-form {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
  }

  .orders-workspace .compact-order-form .full {
    grid-column: span 2;
  }

  .orders-workspace .compact-order-form button.full,
  .orders-workspace .compact-order-form textarea[data-order-field],
  .orders-workspace .compact-order-form input[data-order-history-comment] {
    grid-column: 1 / -1;
  }
}

.orders-grid .panel-title {
  margin-bottom: 10px;
}

.order-detail .panel-title h3,
.order-detail .panel-title p {
  margin: 0;
}

.order-detail .panel-title p {
  font-size: 0.84rem;
  line-height: 1.35;
}

.order-card-block {
  padding: 8px 10px;
  border-radius: 12px;
}

.order-card-block .label {
  font-size: 0.7rem;
}

.order-card-block strong {
  font-size: 0.9rem;
  line-height: 1.2;
}

.order-card-block small {
  margin-top: 2px;
  font-size: 0.72rem;
  line-height: 1.25;
}

.compact-order-meta {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 12px;
}

.order-progress-card {
  margin: 10px 0;
  padding: 10px;
  border-radius: 14px;
}

.order-progress-head {
  align-items: center;
  margin-bottom: 8px;
}

.order-progress-head strong {
  font-size: 14px;
}

.order-progress-head span {
  font-size: 11px;
  line-height: 1.32;
}

.order-stepper-row {
  gap: 6px;
}

.order-step {
  min-height: 34px;
  padding: 7px 8px;
  border-radius: 11px;
  font-size: 0.72rem;
}

.order-status-line {
  margin-top: 8px;
}

.status-pill {
  padding: 6px 9px;
  font-size: 0.78rem;
}

.orders-workspace .compact-order-form {
  margin-top: 8px;
}

.compact-order-form .field {
  gap: 3px;
}

.compact-order-form label {
  font-size: 0.72rem;
}

.compact-order-form input,
.compact-order-form select,
.compact-order-form textarea {
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.86rem;
}

.order-extra-panel {
  margin-top: 8px;
  border-radius: 14px;
}

.order-extra-panel summary {
  padding: 9px 11px;
  font-size: 0.86rem;
}

.order-action-console {
  margin: 10px 0 8px;
  padding: 10px 12px;
  border-radius: 14px;
}

.order-action-console strong {
  font-size: 14px;
}

.order-action-console span {
  font-size: 11px;
  line-height: 1.35;
}

.order-action-grid {
  gap: 7px;
  margin-top: 8px;
}

.order-action-group {
  gap: 6px;
}

.order-action-group h4 {
  margin-top: 4px;
  font-size: 10px;
}

.order-action-group-grid {
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 6px;
}

.order-action-btn {
  min-height: 40px;
  border-radius: 13px;
  padding: 8px 9px;
  font-size: 0.82rem;
}

.order-action-btn small {
  margin-top: 1px;
  font-size: 0.66rem;
}

.order-action-btn.is-pending {
  opacity: 1 !important;
  filter: none !important;
  color: #fff;
  background: linear-gradient(135deg, #2a6650, #184633);
  box-shadow: 0 0 0 3px rgba(42, 102, 80, 0.14);
}

.order-action-btn.is-pending span::before {
  content: "";
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  margin-right: 7px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: #fff;
  border-radius: 50%;
  vertical-align: -0.08em;
  animation: order-action-spin 0.75s linear infinite;
}

@keyframes order-action-spin {
  to { transform: rotate(360deg); }
}

/* Order card adapted from the approved orders-redesign-v2 reference. */
.order-redesign-card {
  --order-forest: #183f2d;
  --order-moss: #5a8a68;
  --order-sage: #eef3eb;
  --order-line: #d5dfd2;
  --order-paper: #fffef9;
  border-color: var(--order-line);
  background: var(--order-paper);
  box-shadow: 0 14px 36px rgba(24, 63, 45, 0.08);
}

.order-redesign-card > .panel-title {
  margin: -1px -1px 16px;
  padding: 16px 18px;
  border-radius: 14px 14px 0 0;
  background: var(--order-forest);
  color: #fff;
}

.order-redesign-card > .panel-title h3,
.order-redesign-card > .panel-title p { color: inherit; }
.order-redesign-card > .panel-title p { color: rgba(255, 255, 255, 0.72); }

.order-redesign-card .order-id-badge {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.order-redesign-card .order-detail-grid {
  gap: 0;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: var(--order-forest);
}

.order-redesign-card .order-card-block {
  min-height: 76px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 0;
  background: transparent;
  color: #fff;
}

.order-redesign-card .order-card-block:last-child { border-right: 0; }
.order-redesign-card .order-card-block .label,
.order-redesign-card .order-card-block small { color: rgba(255, 255, 255, 0.66); }
.order-redesign-card .order-card-block strong { color: #fff; }

.order-redesign-card .order-progress-card {
  border-color: var(--order-line);
  border-radius: 10px;
  background: var(--order-paper);
  box-shadow: none;
}

.order-redesign-card .order-stepper-row { position: relative; gap: 0; }
.order-redesign-card .order-step {
  min-height: 62px;
  gap: 5px;
  padding: 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.order-redesign-card .order-step::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 19px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--order-line);
}

.order-redesign-card .order-step:first-child::before { left: 50%; width: 50%; }
.order-redesign-card .order-step:last-child::before { width: 50%; }
.order-redesign-card .order-step b {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid var(--order-line);
  border-radius: 50%;
  background: var(--order-sage);
  color: #66766a;
  font-size: 12px;
}

.order-redesign-card .order-step.done b {
  border-color: var(--order-moss);
  background: var(--order-moss);
  color: #fff;
}

.order-redesign-card .order-step.current b {
  border-color: var(--order-forest);
  background: var(--order-forest);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(90, 138, 104, 0.18);
}

.order-redesign-card .order-step.done,
.order-redesign-card .order-step.current {
  background: transparent;
  color: var(--order-forest);
  box-shadow: none;
}

.order-redesign-card .compact-order-form {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--order-line);
  border-radius: 10px;
  background: var(--order-paper);
}

.order-redesign-card .compact-order-form input,
.order-redesign-card .compact-order-form select,
.order-redesign-card .compact-order-form textarea {
  border-color: var(--order-line);
  border-radius: 7px;
  background: #fff;
}

.order-redesign-card [data-order-save] {
  position: sticky;
  bottom: 10px;
  z-index: 4;
  min-height: 46px;
  border-color: var(--order-forest);
  background: var(--order-forest);
  box-shadow: 0 12px 28px rgba(24, 63, 45, 0.22);
}

@media (max-width: 760px) {
  .order-redesign-card .order-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-redesign-card .order-card-block:nth-child(2) { border-right: 0; }
  .order-redesign-card .order-stepper-row {
    grid-template-columns: repeat(3, minmax(80px, 1fr));
    gap: 8px;
  }
  .order-redesign-card .order-step::before { display: none; }
}

/* Cashier pane adapted from the same approved reference. */
.cashier-redesign .cashier-grid {
  grid-template-columns: minmax(640px, 1.35fr) minmax(320px, 0.55fr) minmax(480px, 0.9fr);
  gap: 16px;
}

.cashier-redesign .cashier-checkout-grid {
  display: contents;
  min-width: 0;
}

.cashier-redesign .cashier-checkout-grid > *,
.cashier-redesign .form-grid > * {
  min-width: 0;
}

.cashier-redesign .sales-panel {
  border-color: #d5dfd2;
  border-radius: 10px;
  background: #fffef9;
  box-shadow: 0 10px 28px rgba(24, 63, 45, 0.06);
}

.cashier-redesign .panel-title h3 { color: #183f2d; }
.cashier-redesign [data-cashier-search] {
  min-height: 44px;
  border-color: #d5dfd2;
  border-radius: 8px;
}

.cashier-redesign .cashier-chip {
  padding: 6px 12px;
  border-color: #d5dfd2;
  border-radius: 999px;
  box-shadow: none;
}

.cashier-redesign .cashier-chip.is-active,
.cashier-redesign .cashier-pay-pill.is-active {
  border-color: #183f2d;
  background: #183f2d;
}

.cashier-redesign .cashier-item {
  border-color: #d5dfd2;
  border-radius: 9px;
  background: #fff;
}

.cashier-redesign .cashier-item.has-qty {
  border-color: #5a8a68;
  background: #eef5ec;
}

.cashier-redesign .cashier-cart-panel { padding-bottom: 12px; }
.cashier-redesign .cashier-cart-panel .cashier-item {
  align-items: flex-start;
  flex-direction: column;
}

.cashier-redesign .cashier-cart-panel .cashier-item-side {
  width: 100%;
  text-align: left;
}

.cashier-redesign .cashier-cart-panel .cashier-qty {
  flex-wrap: wrap;
  justify-content: flex-start;
}
.cashier-redesign .cashier-total {
  border-radius: 8px;
  background: #eef3eb;
}

.cashier-redesign [data-cashier-checkout] {
  min-height: 48px;
  border-color: #183f2d;
  border-radius: 8px;
  background: #183f2d;
}

@media (max-width: 1600px) {
  .cashier-redesign .cashier-grid {
    grid-template-columns: minmax(560px, 1.25fr) minmax(480px, 0.9fr);
  }

  .cashier-redesign .cashier-checkout-grid {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .cashier-redesign .cashier-grid,
  .cashier-redesign .cashier-checkout-grid { grid-template-columns: 1fr; }
}
/* CMS dictionaries */
.directory-manager{display:grid;gap:18px}.directory-title{align-items:flex-start}.directory-message{padding:12px 14px;border-radius:12px;background:#edf4ee;color:#174b39;font-weight:700}.directory-tabs{display:flex;gap:8px;padding:5px;background:#eef1ec;border-radius:14px;width:max-content;max-width:100%}.directory-tabs button{border:0;background:transparent;padding:11px 16px;border-radius:10px;font-weight:800;color:#52615a}.directory-tabs button.is-active{background:#fff;color:#174b39;box-shadow:0 2px 12px #173c2e12}.directory-tabs span{display:inline-grid;place-items:center;min-width:23px;height:23px;margin-left:6px;border-radius:20px;background:#e3eee7}.directory-layout{display:grid;grid-template-columns:minmax(240px,300px) minmax(0,1fr);gap:18px;align-items:start}.directory-list,.directory-content,.supplier-card{border:1px solid #dce5dc;background:#fff;border-radius:18px;padding:16px}.directory-list{display:grid;gap:8px}.directory-list>button{display:flex;justify-content:space-between;gap:12px;text-align:left;border:1px solid transparent;border-radius:12px;background:#f6f7f3;padding:13px;color:#263b32}.directory-list>button small{white-space:nowrap;color:#728078}.directory-list>button.is-active{border-color:#2e7259;background:#eaf3ed;color:#174b39}.directory-new-type{display:grid;gap:9px;margin-top:10px;padding-top:16px;border-top:1px solid #e4e9e3}.directory-new-type input,.directory-new-type textarea,.directory-form-grid input,.directory-form-grid textarea,.directory-type-editor input,.reference-row>input{width:100%;border:1px solid #d5ded6;border-radius:10px;padding:11px 12px;background:#fff;font:inherit}.directory-new-type textarea,.directory-form-grid textarea{min-height:76px;resize:vertical}.directory-type-editor{display:grid;gap:14px;padding-bottom:16px;border-bottom:1px solid #e5eae4}.directory-type-editor>div:first-child{display:grid;grid-template-columns:1fr 1.5fr;gap:12px}.directory-type-editor label,.directory-form-grid label{display:grid;gap:6px;color:#647069;font-size:13px}.directory-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.system-badge{padding:8px 11px;border-radius:30px;background:#e8f0eb;color:#245943;font-size:12px;font-weight:800}.reference-values{display:grid;gap:9px;padding-top:16px}.reference-row{display:grid;grid-template-columns:minmax(150px,1fr) 90px auto auto 38px;gap:8px;align-items:center}.reference-sort{text-align:center}.directory-active{display:flex!important;grid-template-columns:none!important;align-items:center;gap:7px!important;white-space:nowrap;font-size:13px!important}.directory-active input{width:17px!important;height:17px;margin:0}.icon-button{width:36px;height:36px;border:0;border-radius:9px;background:#f6ece8;color:#954f36;font-size:23px}.supplier-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.supplier-card{display:grid;gap:14px}.directory-card-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.directory-card-head strong{font-size:18px}.directory-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.directory-wide{grid-column:1/-1}
@media(max-width:1050px){.directory-layout,.supplier-grid{grid-template-columns:1fr}.directory-list{grid-template-columns:repeat(2,minmax(0,1fr))}.directory-new-type{grid-column:1/-1}.reference-row{grid-template-columns:minmax(130px,1fr) 75px auto}.reference-row .button{grid-column:auto}.reference-row .icon-button{grid-column:auto}}
@media(max-width:680px){.directory-tabs{width:100%}.directory-tabs button{flex:1;padding:10px 8px}.directory-list{grid-template-columns:1fr}.directory-type-editor>div:first-child,.directory-form-grid{grid-template-columns:1fr}.directory-wide{grid-column:auto}.reference-row{grid-template-columns:1fr 70px}.reference-row .directory-active{grid-column:1/-1}.reference-row .button{grid-column:1/-1}.reference-row .icon-button{grid-column:2;grid-row:2}.supplier-card{padding:14px}}
.editor-existing-content{display:flex;gap:8px;flex-direction:column;padding:13px 15px;border:1px solid #cfe0d4;border-radius:12px;background:#eef6f0;color:#244d3d}.editor-existing-content strong{font-size:14px}.editor-existing-content span{font-size:13px;line-height:1.45;color:#5a6d63}
.chat-quick-replies{grid-column:1/-1;display:flex;gap:7px;overflow-x:auto;padding-bottom:2px}.chat-quick-replies button{white-space:nowrap;border:1px solid #cad8ce;border-radius:20px;background:#f4f8f5;color:#285642;padding:7px 11px;font-weight:700}.chat-customer-card label,.chat-order-create{display:grid;gap:6px}.chat-customer-card select,.chat-customer-card input{width:100%;border:1px solid #d3ddd5;border-radius:10px;background:#fff;padding:10px;font:inherit}.chat-order-create{margin-top:16px;padding-top:15px;border-top:1px solid #e1e8e1}.chat-order-create label{font-size:12px;color:#65736b}.chat-linked-order{display:grid;gap:9px;margin-top:16px;padding:13px;border-radius:12px;background:#edf5ef}.chat-linked-order .secondary-btn{margin:0}
.notification-quick-manager{margin:16px 0;border:1px solid #dce5dd;border-radius:16px;background:#fff;overflow:hidden}.notification-quick-manager>summary{padding:16px;cursor:pointer;background:#f4f7f3}.notification-quick-manager>summary span{display:grid;gap:4px}.notification-quick-manager>summary small{color:#6e7b73}.notification-quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px}.quick-reply-editor{display:grid;gap:12px;padding:14px;border:1px solid #e0e7e0;border-radius:13px;background:#fbfcfa}.quick-reply-editor-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.quick-reply-editor-head label{display:flex;align-items:center;gap:6px;font-size:12px}.quick-reply-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.quick-reply-fields label{display:grid;gap:5px;color:#68756d;font-size:12px}.quick-reply-fields .full{grid-column:1/-1}.quick-reply-fields input,.quick-reply-fields textarea{width:100%;border:1px solid #d4ded5;border-radius:9px;padding:9px;font:inherit;resize:vertical}
.bot-automation-card{display:grid;gap:10px;margin:14px 14px 0;padding:14px;border-radius:13px;background:#eaf3ed}.bot-automation-card>label:not(.notification-toggle){display:grid;gap:6px;font-size:13px;color:#52655b}.bot-automation-card textarea{width:100%;border:1px solid #cbdacf;border-radius:10px;padding:10px;font:inherit;resize:vertical}.bot-automation-card>small{color:#68776f}
.channel-connectors{display:grid;gap:12px;margin:16px 0}.channel-connectors-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.channel-connectors-head>div{display:grid;gap:4px}.channel-connectors-head p{margin:0;color:#68766e}.channel-connectors-head>span{padding:8px 10px;border-radius:10px;background:#eef4ef;color:#35604d;font-size:12px}.channel-connector-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.channel-connector{display:grid;gap:11px;padding:15px;border:1px solid #dce4dd;border-radius:15px;background:#fff}.channel-connector.is-enabled{border-color:#83ad93;box-shadow:inset 3px 0 #2b6a50}.channel-connector>div:first-child{display:flex;justify-content:space-between;gap:10px}.channel-connector>div:first-child span{font-size:12px;color:#6c7971}.channel-connector>label:not(.directory-active){display:grid;gap:5px;font-size:12px;color:#68756d}.channel-connector input{width:100%;border:1px solid #d4ded5;border-radius:9px;padding:9px;font:inherit}.channel-meta{display:flex;gap:6px;flex-wrap:wrap}.channel-meta span{padding:6px 8px;border-radius:8px;background:#f0f3ef;font-size:11px;color:#66746c}.channel-connector>a{font-size:13px;color:#245e48}
@media(max-width:820px){.channel-connector-grid{grid-template-columns:1fr}}
@media(max-width:820px){.notification-quick-grid{grid-template-columns:1fr}.quick-reply-fields{grid-template-columns:1fr}.quick-reply-fields .full{grid-column:auto}}
.chat-workspace{display:grid;gap:16px}.chat-unread-pill{padding:9px 12px;border-radius:30px;background:#e7f1ea;color:#1d5a43;font-weight:800}.chat-layout{display:grid;grid-template-columns:minmax(240px,300px) minmax(520px,1fr) minmax(330px,370px);min-height:660px;border:1px solid #dce4dc;border-radius:18px;overflow:hidden;background:#fff}.chat-list{border-right:1px solid #e1e7e1;background:#f7f8f5;overflow:auto}.chat-list-item{width:100%;display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:10px;align-items:center;padding:13px;border:0;border-bottom:1px solid #e3e8e2;background:transparent;text-align:left}.chat-list-item.is-active{background:#e9f3ec}.chat-avatar{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#245f49;color:#fff;font-weight:900}.chat-list-item>span:nth-child(2){display:grid;gap:4px;min-width:0}.chat-list-item strong,.chat-list-item small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-list-item small{color:#6e7a73}.chat-list-meta{display:grid;justify-items:end;gap:6px}.chat-list-meta b{display:grid;place-items:center;min-width:22px;height:22px;border-radius:20px;background:#226047;color:#fff;font-size:12px}.chat-dialog{display:grid;grid-template-rows:auto 1fr auto;min-width:0;background:#f2f0e9}.chat-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:15px 18px;background:#fff;border-bottom:1px solid #e2e6df}.chat-dialog-head>div:first-child{display:grid;gap:3px}.chat-dialog-head span{font-size:13px;color:#6d7871}.chat-messages{display:flex;flex-direction:column;gap:10px;padding:18px;overflow:auto;max-height:540px}.chat-message{max-width:78%;display:grid;gap:5px;padding:11px 13px;border-radius:14px;background:#fff;box-shadow:0 2px 10px #243d3210}.chat-message.is-out{align-self:flex-end;background:#dceee2}.chat-message>small,.chat-message>time{font-size:11px;color:#738078}.chat-message>time{text-align:right}.chat-compose{display:grid;grid-template-columns:1fr auto;gap:10px;padding:14px;background:#fff;border-top:1px solid #e1e6df}.chat-compose textarea{width:100%;resize:none;border:1px solid #ced8d0;border-radius:12px;padding:11px;font:inherit}.chat-customer-card{padding:20px;border-left:1px solid #e1e7e1;background:#fff;overflow:auto}.chat-customer-card h3{margin:7px 0}.chat-customer-card p{margin:8px 0;color:#5f6d65}.chat-customer-card .secondary-btn{width:100%;margin:14px 0 8px}.chat-customer-card>small{display:block;line-height:1.45;color:#758078}
@media(max-width:1380px){.chat-layout{grid-template-columns:250px minmax(0,1fr)}.chat-customer-card{grid-column:1/-1;border-left:0;border-top:1px solid #e1e7e1}.chat-order-create{grid-template-columns:repeat(2,minmax(0,1fr))}.chat-order-create>strong,.chat-order-create>button,.chat-order-create>label:nth-of-type(3){grid-column:1/-1}}
@media(max-width:760px){.chat-layout{grid-template-columns:1fr}.chat-list{max-height:260px;border-right:0;border-bottom:1px solid #e1e7e1}.chat-dialog{min-height:560px}.chat-message{max-width:90%}.chat-compose{grid-template-columns:1fr}.chat-customer-card{grid-column:auto}}

.chat-titlebar {
  padding: 22px 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, #f7faf7, #e8f1eb);
}
.chat-titlebar h2 { margin: 4px 0 5px; }
.chat-list-tools {
  position: sticky;
  z-index: 2;
  top: 0;
  display: grid;
  gap: 9px;
  padding: 12px;
  border-bottom: 1px solid #dbe4dc;
  background: rgba(248, 250, 247, .97);
  backdrop-filter: blur(10px);
}
.chat-search {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid #ccd8cf;
  border-radius: 13px;
  background: #fff;
}
.chat-search span { color: #47705e; font-size: 21px; }
.chat-search input {
  min-width: 0;
  width: 100%;
  padding: 10px 0;
  border: 0;
  outline: 0;
  background: transparent;
}
.chat-filter-row { display: flex; gap: 6px; overflow-x: auto; }
.chat-filter-row button {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid #d5dfd7;
  border-radius: 999px;
  color: #456052;
  background: #fff;
  font-size: 11px;
  font-weight: 800;
}
.chat-filter-row button.is-active { border-color: #205d48; color: #fff; background: #205d48; }
.chat-list-item { transition: background .15s ease, transform .15s ease; }
.chat-list-item:hover { background: #eff5f0; }
.chat-list-item.is-active { box-shadow: inset 4px 0 #205d48; }
.chat-avatar.channel-max { background: #7357d6; }
.chat-list-meta time { max-width: 68px; color: #7b857e; font-size: 10px; text-align: right; }
.chat-dialog-head { min-height: 70px; }
.chat-bot-state { font-size: 11px !important; font-weight: 800; }
.chat-bot-state.is-online { color: #24734f !important; }
.chat-bot-state.is-offline { color: #a5523a !important; }
.chat-subscription-card {
  display: grid;
  gap: 3px;
  margin: 12px 0;
  padding: 12px;
  border-radius: 14px;
}
.chat-subscription-card.is-active { color: #17573d; background: #e1f2e8; }
.chat-subscription-card.is-blocked { color: #8a432f; background: #fff0e9; }
.chat-subscription-card span { font-size: 12px; line-height: 1.4; }
.chat-messages {
  background:
    radial-gradient(circle at 15% 10%, rgba(44, 108, 81, .055), transparent 24%),
    linear-gradient(#f5f3ed, #f1efe8);
}
.chat-message { line-height: 1.45; }
.chat-message.is-out { border-bottom-right-radius: 4px; }
.chat-message.is-in { border-bottom-left-radius: 4px; }
.chat-compose {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  box-shadow: 0 -8px 24px rgba(24, 64, 47, .05);
}
.chat-compose textarea { min-height: 48px; max-height: 140px; }
.chat-send-btn { min-height: 48px; padding-inline: 18px; }
.chat-compose-tools { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.chat-compose-tools > small { margin-left: auto; color: #77837b; font-size: 11px; }
.chat-quick-picker,
.chat-emoji-picker { position: relative; }
.chat-quick-picker > summary,
.chat-emoji-picker > summary {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid #cedbd1;
  border-radius: 999px;
  color: #245e48;
  background: #f6faf7;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.chat-quick-picker > summary::-webkit-details-marker,
.chat-emoji-picker > summary::-webkit-details-marker { display: none; }
.chat-quick-picker > summary span { display: grid; place-items: center; min-width: 21px; height: 21px; border-radius: 50%; color: #fff; background: #28684f; font-size: 11px; }
.chat-emoji-picker > summary { min-width: 42px; justify-content: center; padding-inline: 9px; font-size: 18px; }
.chat-quick-popover,
.chat-emoji-grid {
  position: absolute;
  z-index: 12;
  bottom: calc(100% + 9px);
  left: 0;
  border: 1px solid #d5e0d7;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(20, 55, 41, .18);
}
.chat-quick-popover { display: grid; gap: 10px; width: min(480px, 76vw); padding: 12px; }
.chat-template-search { display: flex; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid #d2ddd4; border-radius: 11px; background: #fff; }
.chat-template-search input { width: 100%; padding: 9px 0; border: 0; outline: 0; font: inherit; }
.chat-template-categories { display: flex; gap: 6px; overflow-x: auto; }
.chat-template-categories button { flex: 0 0 auto; padding: 6px 9px; border: 1px solid #d6e0d8; border-radius: 999px; color: #496456; background: #f8faf8; font-size: 11px; font-weight: 800; }
.chat-template-categories button.is-active { border-color: #245f49; color: #fff; background: #245f49; }
.chat-template-list { display: grid; gap: 7px; max-height: 310px; overflow-y: auto; }
.chat-template-option { display: grid; gap: 5px; width: 100%; padding: 10px 11px; border: 1px solid #e0e7e1; border-radius: 12px; text-align: left; color: inherit; background: #fbfcfa; }
.chat-template-option:hover { border-color: #8cb29b; background: #eff6f1; }
.chat-template-option[hidden] { display: none; }
.chat-template-option > span { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.chat-template-option small { color: #678074; font-size: 11px; }
.chat-template-option em { overflow: hidden; color: #58675f; font-size: 12px; font-style: normal; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.chat-manage-template-link { padding: 8px; border: 0; color: #245f49; background: transparent; font-weight: 800; text-align: left; }
.chat-emoji-grid { display: grid; grid-template-columns: repeat(4, 42px); gap: 5px; padding: 9px; }
.chat-emoji-grid button,
.quick-editor-emojis button { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0; border: 1px solid transparent; border-radius: 10px; background: #f5f8f5; font-size: 20px; }
.chat-emoji-grid button:hover,
.quick-editor-emojis button:hover { border-color: #9eb9a7; background: #e9f3ec; }
.chat-template-manager { overflow: hidden; border: 1px solid #d8e4da; border-radius: 20px; background: #fff; box-shadow: 0 10px 35px rgba(27, 70, 51, .07); }
.chat-template-manager-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 18px 20px; background: linear-gradient(135deg, #f3f8f4, #e8f2eb); }
.chat-template-manager-head h3 { margin: 4px 0; }
.chat-template-manager-head p { max-width: 760px; margin: 0; color: #63736a; }
.quick-reply-master-detail { display: grid; grid-template-columns: minmax(270px, 340px) minmax(0, 1fr); min-height: 500px; border-top: 1px solid #dce6de; background: #f7f8f5; }
.quick-reply-list-pane { display: grid; grid-template-rows: auto auto minmax(0, 1fr); min-width: 0; max-height: 560px; border-right: 1px solid #dce5dd; background: #fff; }
.quick-reply-list-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px; }
.quick-reply-list-head > div { display: flex; align-items: center; gap: 8px; }
.quick-reply-list-head > div span { display: grid; place-items: center; min-width: 24px; height: 24px; border-radius: 50%; color: #fff; background: #28634c; font-size: 11px; font-weight: 900; }
.quick-reply-list-head .primary-btn { min-height: 38px; padding: 8px 12px; }
.quick-reply-list-head .primary-btn.is-current { box-shadow: 0 0 0 3px rgba(39, 100, 76, .15); }
.quick-reply-list-search { display: flex; align-items: center; gap: 7px; margin: 0 12px 10px; padding: 0 10px; border: 1px solid #d3ded5; border-radius: 12px; background: #f8faf8; }
.quick-reply-list-search span { color: #3c6b56; font-size: 20px; }
.quick-reply-list-search input { min-width: 0; width: 100%; padding: 10px 0; border: 0; outline: 0; background: transparent; font: inherit; }
.quick-reply-list { display: grid; align-content: start; gap: 6px; padding: 0 10px 12px; overflow-y: auto; }
.quick-reply-list-item { display: grid; gap: 4px; width: 100%; padding: 11px 12px; border: 1px solid transparent; border-radius: 13px; color: inherit; background: #f7f9f6; text-align: left; }
.quick-reply-list-item:hover { border-color: #b7ccbd; background: #eff5f0; }
.quick-reply-list-item.is-active { border-color: #6e9b7e; background: #e3f0e7; box-shadow: inset 3px 0 #27634c; }
.quick-reply-list-item.is-disabled { opacity: .62; }
.quick-reply-list-item[hidden] { display: none; }
.quick-reply-list-item > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.quick-reply-list-item > span small { color: #60766a; font-size: 10px; font-weight: 800; }
.quick-reply-list-item em { color: #2f6a50; font-size: 11px; font-style: normal; font-weight: 800; }
.quick-reply-list-item p { display: -webkit-box; margin: 0; overflow: hidden; color: #66736c; font-size: 12px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.quick-reply-detail-pane { min-width: 0; padding: 14px; background: #f7f8f5; }
.quick-reply-detail-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.quick-reply-detail-nav > span { color: #637269; font-size: 12px; font-weight: 800; }
.quick-reply-detail-nav > div { display: flex; gap: 6px; }
.quick-reply-detail-nav .ghost-btn { min-width: 38px; min-height: 34px; padding: 5px 9px; }
.quick-reply-detail-pane .quick-reply-editor { max-width: 860px; min-height: 420px; padding: 18px; border-color: #d8e2da; background: #fff; box-shadow: 0 8px 28px rgba(26, 64, 48, .06); }
.quick-reply-detail-pane .quick-reply-fields textarea { min-height: 150px; }
.quick-editor-emojis { display: flex; align-items: center; gap: 4px; overflow-x: auto; }
.quick-editor-emojis > span { flex: 0 0 auto; margin-right: 4px; color: #68756d; font-size: 12px; }
.quick-editor-emojis button { flex: 0 0 auto; min-width: 31px; height: 31px; font-size: 17px; }
.chat-customer-card { background: linear-gradient(180deg, #fff, #fbfcfa); }
.chat-order-create {
  gap: 12px;
  margin: 18px -4px 0;
  padding: 18px 14px 14px;
  border: 1px solid #dbe7de;
  border-radius: 18px;
  background: #f6faf7;
}
.chat-order-create > strong { font-size: 17px; color: #194d3a; }
.chat-order-create input,
.chat-order-create select { min-height: 46px; font-size: 14px; }
.chat-order-create .primary-btn { min-height: 48px; margin-top: 2px; }

@media(max-width:760px) {
  .chat-titlebar { align-items: flex-start; padding: 18px; }
  .chat-titlebar .row-actions { width: 100%; justify-content: space-between; }
  .chat-list { max-height: 330px; }
  .chat-dialog { min-height: 520px; }
  .chat-dialog-head { position: sticky; top: 0; z-index: 1; }
  .chat-compose { grid-template-columns: 1fr auto; position: sticky; bottom: 0; }
  .chat-compose-tools > small { display: none; }
  .chat-quick-popover { position: fixed; right: 12px; bottom: 92px; left: 12px; width: auto; max-height: 62vh; }
  .chat-template-list { max-height: 38vh; }
  .chat-template-manager-head { padding: 15px; }
  .quick-reply-master-detail { grid-template-columns: 1fr; }
  .quick-reply-list-pane { max-height: 300px; border-right: 0; border-bottom: 1px solid #dce5dd; }
  .quick-reply-detail-pane { padding: 10px; }
  .quick-reply-detail-pane .quick-reply-editor { min-height: 0; padding: 14px; }
  .chat-compose textarea { rows: 2; }
  .chat-send-btn { width: 52px; overflow: hidden; font-size: 0; padding: 0; }
  .chat-send-btn span { font-size: 20px; }
}
.notification-workspace .notification-global-card,
.notification-workspace .notification-guide-card {
  display: none;
}

.integration-workspace {
  display: grid;
  gap: 18px;
}

.integration-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 26px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, #174f3d 0%, #286d56 100%);
  box-shadow: 0 16px 42px rgba(23, 79, 61, 0.16);
}

.integration-hero h3 {
  margin: 5px 0 8px;
  font-size: clamp(26px, 3vw, 38px);
}

.integration-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.integration-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ccebdd;
}

.integration-health {
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  gap: 10px;
  min-width: 280px;
}

.integration-health div {
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.09);
}

.integration-health strong,
.integration-health span {
  display: block;
}

.integration-health strong {
  font-size: 28px;
}

.integration-health span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.integration-defaults,
.integration-service-card,
.integration-note {
  border: 1px solid #d8e2dc;
  border-radius: 20px;
  background: #fff;
}

.integration-defaults {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
}

.integration-defaults strong,
.integration-defaults small {
  display: block;
}

.integration-defaults small {
  margin-top: 4px;
  color: #6c756f;
}

.integration-defaults select {
  width: min(100%, 260px);
}

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

.integration-service-card {
  display: grid;
  align-content: start;
  gap: 15px;
  padding: 20px;
}

.integration-service-card:nth-child(2) {
  grid-column: span 1;
}

.integration-service-head,
.integration-service-head > div,
.integration-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.integration-service-head {
  justify-content: space-between;
}

.integration-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: #205d48;
}

.integration-status {
  padding: 6px 10px;
  border-radius: 999px;
  color: #6c6258;
  background: #f0ede8;
  font-size: 12px;
  font-weight: 800;
}

.integration-status.is-ready {
  color: #174f3d;
  background: #dff1e8;
}

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

.integration-actions {
  flex-wrap: wrap;
}

.integration-app-links {
  display: grid;
  gap: 10px;
}

.integration-app-links a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d8e2dc;
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
}

.integration-app-links span {
  color: #286d56;
  font-size: 13px;
}

.integration-note {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  font-weight: 700;
}

@media (max-width: 840px) {
  .integration-hero,
  .integration-defaults {
    align-items: stretch;
    flex-direction: column;
  }

  .integration-health,
  .integration-service-grid,
  .integration-fields {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .integration-defaults select {
    width: 100%;
  }
}
/* Integration hub hierarchy */
.integration-section-heading{display:flex;align-items:flex-start;gap:12px;margin:22px 0 10px;padding-top:6px}
.integration-section-heading>span{display:grid;place-items:center;flex:0 0 30px;height:30px;border-radius:50%;background:#214d3e;color:#fff;font-weight:800}
.integration-section-heading>div{display:grid;gap:3px}
.integration-section-heading strong{font-size:17px;color:#173d2d}
.integration-section-heading small{color:#68766e;line-height:1.4}
.integration-help{padding:12px 14px;border:1px solid #dce6de;border-radius:12px;background:#f6faf6;color:#42604f}
.integration-help summary{cursor:pointer;font-weight:700;color:#245e48}
.integration-help ol{margin:10px 0 8px;padding-left:22px}
.integration-help code{background:#e8f0e9;padding:2px 5px;border-radius:5px;overflow-wrap:anywhere}
.vk-auth-card{display:none!important}

/* Personal column layouts for CMS lists */
[data-column-hidden="true"] {
  display: none !important;
}

.column-layout-toolbar {
  display: flex;
  justify-content: flex-end;
  padding: 10px 14px;
  border-top: 1px solid rgba(41, 45, 37, 0.07);
  background: rgba(250, 249, 245, 0.86);
}

.column-layout-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
}

.column-layout-button > span {
  color: var(--leaf-dark);
  font-size: 20px;
  line-height: 1;
}

.column-layout-button strong {
  font-size: 13px;
}

.column-layout-button small {
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--muted);
  background: #edf0ec;
  font-size: 11px;
  font-weight: 750;
}

.column-layout-button small.is-active {
  color: #174f3d;
  background: #dcece2;
}

.column-config-modal {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: grid;
  place-items: center;
  padding: 18px;
}

.column-config-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(20, 29, 24, 0.54);
  backdrop-filter: blur(7px);
}

.column-config-dialog {
  position: relative;
  z-index: 1;
  width: min(620px, calc(100vw - 28px));
  max-height: min(86vh, 820px);
  display: grid;
  grid-template-rows: auto auto minmax(160px, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(41, 77, 61, 0.16);
  border-radius: 24px;
  background: #fffefa;
  box-shadow: 0 30px 90px rgba(16, 31, 23, 0.28);
}

.column-config-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 64px 16px 22px;
  border-bottom: 1px solid #e2e8e3;
  background: linear-gradient(135deg, #edf5ef, #fffefa 72%);
}

.column-config-head > div {
  display: grid;
  gap: 5px;
}

.column-config-head span {
  color: #497361;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.column-config-head h3,
.column-config-head p {
  margin: 0;
}

.column-config-head p {
  max-width: 470px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.column-config-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 22px;
  border-bottom: 1px solid #edf0ed;
  color: var(--muted);
  background: #fafbf8;
  font-size: 12px;
}

.column-config-summary strong {
  color: var(--leaf-dark);
}

.column-config-list {
  display: grid;
  align-content: start;
  gap: 8px;
  margin: 0;
  padding: 14px 18px 18px;
  overflow: auto;
  list-style: none;
}

.column-config-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid #dce4de;
  border-radius: 13px;
  background: #fff;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.column-config-item.is-dragging {
  opacity: 0.48;
}

.column-config-item.is-drag-over {
  border-color: #2d6a51;
  box-shadow: 0 0 0 3px rgba(45, 106, 81, 0.12);
}

.column-drag-handle {
  color: #8a9990;
  font-size: 20px;
  letter-spacing: -5px;
  cursor: grab;
  user-select: none;
}

.column-config-item label {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  font-weight: 750;
  cursor: pointer;
}

.column-config-item label span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.column-config-item input {
  width: 18px;
  height: 18px;
  accent-color: #246047;
}

.column-order-buttons {
  display: flex;
  gap: 5px;
}

.column-order-buttons button {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #d8e1da;
  border-radius: 9px;
  color: #245c47;
  background: #f7faf7;
  font-weight: 900;
}

.column-order-buttons button:disabled {
  opacity: 0.34;
}

.column-config-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid #e3e8e4;
  background: #fafbf8;
}

.column-config-actions > div {
  display: flex;
  gap: 8px;
}

@media (max-width: 620px) {
  .column-config-modal {
    align-items: end;
    padding: 0;
  }

  .column-config-dialog {
    width: 100%;
    max-height: 92vh;
    border-radius: 22px 22px 0 0;
  }

  .column-config-summary,
  .column-config-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .column-config-actions > div,
  .column-config-actions button {
    width: 100%;
  }
}
.order-diagnostic-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}

.order-diagnostic-toolbar small,
.order-merge-group small {
  color: var(--muted, #6d746f);
}

.order-merge-diagnostic {
  margin: 12px 0 18px;
  padding: 18px;
  border: 1px solid #d6dfd8;
  border-radius: 20px;
  background: #fff;
}

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

.order-merge-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 18px;
  padding: 14px;
  border: 1px solid #dfe5e0;
  border-left: 4px solid #b68b48;
  border-radius: 14px;
  background: #fbfaf6;
}

.order-merge-group.is-high {
  border-left-color: #2d7257;
}

.order-merge-group > div:first-child,
.order-merge-summary,
.order-merge-orders button {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.order-merge-summary {
  align-items: flex-end;
}

.order-merge-orders {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
}

.order-merge-orders button {
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  border: 1px solid #dfe5e0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

@media (max-width: 720px) {
  .order-diagnostic-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .order-merge-group {
    grid-template-columns: 1fr;
  }

  .order-merge-summary {
    align-items: flex-start;
  }
}
