:root {
  --wm-green: #4A7C59;
  --wm-green-mid: #6B9E78;
  --wm-amber: #D4A017;
  --wm-amber-light: #E8C547;
  --wm-beige: #F5F0E8;
  --wm-beige-deep: #EDE8DF;
  --wm-brown: #3D2B1F;
  --wm-brown-light: #6B4C3B;
  --wm-page: #FAFAF7;
  --wm-muted: #7C7269;
  --primary: #2F7D46;
  --primary-dark: #256b3a;
  --forest: #173D2A;
  --olive: #7A8F3A;
  --sage: #DDE8D2;
  --beige: #F5F0E6;
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --graphite: #1F2A24;
  --muted: #6B746D;
  --warning: #D99A2B;
  --danger: #C9473A;
  --info: #3A7CA5;
  --line: rgba(47, 125, 70, .14);
  --shadow: 0 18px 55px rgba(31, 42, 36, .08);
  --shadow-soft: 0 10px 30px rgba(31, 42, 36, .06);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --header-h: 64px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--graphite);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; display: block; }
.app-main { flex: 1; }
.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.global-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .82);
  border-bottom: 1px solid rgba(221, 232, 210, .8);
  backdrop-filter: blur(16px);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 26px;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: 8px; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 8px 20px rgba(47,125,70,.24);
  font-size: 17px;
}
.brand-name { font-size: 20px; font-weight: 800; color: var(--forest); letter-spacing: -.04em; }
.desktop-nav { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 650; color: var(--muted); }
.desktop-nav a { transition: color .2s ease; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--primary); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.mobile-menu-button { display: none; border: 0; background: transparent; font-size: 24px; color: var(--forest); }
.mobile-menu { display: none; border-top: 1px solid var(--line); padding: 8px 16px 16px; }
.mobile-menu a { display: block; padding: 12px 0; color: var(--muted); font-weight: 700; }
.mobile-menu-form { margin: 4px 0 0; }
.mobile-menu-form button {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  background: var(--sage);
  color: var(--forest);
  font-weight: 800;
}
.icon-button {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--graphite);
  cursor: pointer;
}
.icon-button:hover { background: rgba(221,232,210,.5); }
.notification-dot { position: absolute; top: 10px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 14px;
  border: 0;
  padding: 0 18px;
  font-weight: 750;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--primary); box-shadow: 0 12px 24px rgba(47,125,70,.18); }
.button-primary:hover { background: var(--primary-dark); }
.button-secondary { background: var(--sage); color: var(--forest); }
.button-secondary:hover { background: #cddabf; }
.button-ghost { background: transparent; color: var(--graphite); }
.button-ghost:hover { background: rgba(221,232,210,.45); }
.button-outline { border: 1px solid var(--line); background: transparent; color: var(--graphite); }
.button-danger { background: var(--danger); color: #fff; }
.button-sm { min-height: 34px; padding-inline: 12px; border-radius: 11px; font-size: 13px; }
.button-lg { min-height: 54px; padding-inline: 28px; border-radius: 18px; font-size: 17px; }
.button-pill { border-radius: 999px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  line-height: 1.1;
  font-weight: 800;
  white-space: nowrap;
}
.badge-default { background: #f2f3f0; color: #4f5a52; }
.badge-success { background: var(--sage); color: var(--forest); }
.badge-warning { background: #fff1d9; color: var(--warning); }
.badge-danger { background: #ffe2dd; color: var(--danger); }
.badge-info { background: #e3f0f8; color: var(--info); }
.badge-outline { border: 1px solid var(--line); color: var(--muted); background: #fff; }
.eyebrow { font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.muted { color: var(--muted); }
.text-primary { color: var(--primary); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-info { color: var(--info); }
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-head { max-width: 700px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.04em; color: var(--graphite); }
.section-head p { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.6; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.stack { display: grid; gap: 24px; }
.stack-sm { display: grid; gap: 12px; }
.space-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.page-title { margin: 0; font-size: clamp(26px, 3.5vw, 36px); line-height: 1.1; letter-spacing: -.035em; color: var(--graphite); }
.page-subtitle { margin: 8px 0 0; color: var(--muted); }
.page { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.page-header { display:flex; justify-content:space-between; align-items:flex-end; gap:16px; flex-wrap:wrap; }
.content-card,
.data-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-soft); }
.table-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.status-badge { display:inline-flex; align-items:center; border-radius:999px; padding:4px 10px; font-size:12px; font-weight:800; }
.admin-layout { display:flex; min-width:0; }
.admin-content { flex:1; min-width:0; }
.admin-topbar { position:sticky; top:0; z-index:50; }

/* Landing */
.hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0 86px;
  background: radial-gradient(850px circle at 86% 18%, rgba(47,125,70,.11), transparent 48%), var(--surface);
  border-bottom: 1px solid rgba(221,232,210,.8);
}
.hero-grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(420px,.95fr); gap: 56px; align-items: center; }
.hero h1 { margin: 22px 0 20px; font-size: clamp(44px, 6vw, 76px); line-height: .98; letter-spacing: -.07em; color: var(--graphite); }
.hero p { margin: 0; max-width: 630px; font-size: 20px; line-height: 1.65; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; border-top: 1px solid rgba(221,232,210,.8); padding-top: 28px; margin-top: 42px; }
.stat-number { font-size: 30px; font-weight: 850; letter-spacing: -.04em; color: var(--graphite); }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 3px; }
.hero-preview-wrap { position: relative; }
.hero-preview-wrap::before { content: ""; position: absolute; inset: -6px; border-radius: 32px; background: linear-gradient(135deg, rgba(221,232,210,.9), rgba(47,125,70,.25)); filter: blur(18px); opacity: .8; }
.dashboard-preview { position: relative; padding: 24px; border-radius: 30px; background: rgba(255,255,255,.86); backdrop-filter: blur(14px); box-shadow: var(--shadow); }
.preview-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 18px; }
.preview-logo { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: rgba(47,125,70,.11); color: var(--primary); }
.preview-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.metric-card { padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg); }
.metric-card small { display:block; color: var(--muted); margin-bottom: 8px; }
.metric-card strong { display:block; font-size: 26px; color: var(--graphite); letter-spacing: -.03em; }
.mini-bars { display:flex; align-items:end; gap:5px; height:34px; margin-top:10px; }
.mini-bars span { flex:1; border-radius: 4px 4px 1px 1px; background: rgba(47,125,70,.45); }
.task-row { display:flex; align-items:center; justify-content:space-between; gap: 12px; padding: 13px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 15px; margin-top: 10px; }
.task-title { display:flex; align-items:center; gap: 10px; font-size: 14px; font-weight: 700; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); display: inline-block; }
.dot-danger { background: var(--danger); }
.feature-card { padding: 28px; min-height: 230px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(47,125,70,.28); }
.feature-icon { width: 48px; height: 48px; display:grid; place-items:center; border-radius: 16px; background: rgba(47,125,70,.1); font-size: 24px; margin-bottom: 22px; }
.feature-card h3 { margin: 0 0 10px; font-size: 20px; }
.feature-card p { margin: 0; color: var(--muted); line-height: 1.6; }
.preview-section { background: var(--bg); }
.preview-card { overflow: hidden; padding: 28px; min-height: 280px; }
.big-split-card { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.big-split-panel { padding: 32px; min-height: 260px; }
.big-split-panel:first-child { background: linear-gradient(135deg, rgba(47,125,70,.09), #fff); }
.big-split-panel:last-child { background: linear-gradient(135deg, rgba(122,143,58,.12), #fff); border-left: 1px solid var(--line); }
.footer { background: var(--surface); border-top: 1px solid var(--line); padding: 44px 0 52px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 34px; }
.footer h4 { margin: 0 0 14px; color: var(--graphite); }
.footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--muted); font-size: 14px; }
.footer p { color: var(--muted); margin: 14px 0 0; font-size: 14px; line-height: 1.55; }

/* Workspace */
.workspace-shell { display: flex; height: calc(100vh - var(--header-h)); overflow: hidden; }
.sidebar { width: 264px; flex: 0 0 264px; background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; overflow-y: auto; }
.wiki-sidebar { width: 288px; flex-basis: 288px; }
.sidebar-block { padding: 18px; border-bottom: 1px solid var(--line); }
.farm-switcher select { width:100%; margin-top:8px; border: 1px solid var(--line); background: var(--bg); border-radius: 12px; padding: 10px 11px; color: var(--graphite); font-weight: 650; outline: none; }
.sidebar-nav { padding: 16px; display:grid; gap: 6px; }
.sidebar-nav a { min-height: 42px; display:flex; align-items:center; gap:10px; padding: 10px 12px; border-radius: 14px; color: var(--muted); font-weight: 750; font-size: 14px; transition: background .18s ease, color .18s ease; }
.sidebar-nav a:hover, .sidebar-nav a.active { background: rgba(47,125,70,.1); color: var(--primary); }
.admin-nav a.active { background: rgba(201,71,58,.1); color: var(--danger); }
.nav-badge { margin-left: auto; font-size: 11px; background: var(--primary); color:#fff; border-radius: 999px; padding: 2px 6px; }
.workspace-content { flex: 1; overflow-y: auto; padding: 32px; background: var(--bg); }
.content-narrow { max-width: 1024px; margin: 0 auto; }
.search-inline { display:flex; align-items:center; gap:8px; height: 38px; padding: 0 10px; border:1px solid var(--line); border-radius: 12px; background: var(--bg); }
.search-inline input { border:0; outline:0; background:transparent; min-width:0; width:100%; color:var(--graphite); }
.wiki-tree { padding: 16px 18px; display: grid; gap: 22px; font-size: 14px; }
.tree-group strong { display:flex; align-items:center; gap:8px; margin-bottom: 10px; color: var(--graphite); }
.tree-group a { display:block; margin-left: 18px; padding: 6px 0 6px 14px; border-left: 1px solid var(--line); color: var(--muted); }
.tree-group a:hover { color: var(--primary); }

/* Forms */
.input, .textarea, .select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  min-height: 44px;
  padding: 10px 13px;
  outline: 0;
  color: var(--graphite);
  box-shadow: 0 1px 0 rgba(31,42,36,.02);
}
.textarea { min-height: 112px; resize: vertical; }
.input:focus, .textarea:focus, .select:focus { border-color: rgba(47,125,70,.55); box-shadow: 0 0 0 3px rgba(47,125,70,.08); }
.search-large { display:flex; align-items:center; gap:12px; min-height: 58px; border:1px solid var(--line); border-radius: 20px; background: #fff; padding: 0 18px; box-shadow: var(--shadow-soft); }
.search-large input { border:0; outline:0; flex:1; min-width:0; font-size: 16px; color: var(--graphite); }
.chips { display:flex; gap:10px; overflow-x:auto; padding-bottom:4px; }
.chip { display:inline-flex; align-items:center; border: 1px solid var(--line); background:#fff; border-radius:999px; padding: 9px 14px; color: var(--muted); font-weight: 750; white-space: nowrap; cursor: pointer; }
.chip.active, .chip:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Dashboards */
.stat-card { padding: 18px; }
.stat-card small { display:block; color: var(--muted); margin-bottom: 9px; font-weight: 650; }
.stat-card strong { display:block; font-size: 30px; letter-spacing: -.04em; color: var(--graphite); }
.stat-card .trend { margin-top: 8px; color: var(--primary); font-weight: 800; font-size: 13px; }
.chart-card { padding: 24px; }
.chart-placeholder { height: 230px; display:flex; align-items:end; gap: 10px; padding: 18px; border-radius: 18px; background: linear-gradient(180deg, rgba(221,232,210,.25), rgba(255,255,255,.8)); border:1px solid var(--line); }
.chart-placeholder span { flex:1; min-height: 30px; border-radius: 8px 8px 2px 2px; background: linear-gradient(180deg, rgba(47,125,70,.75), rgba(47,125,70,.24)); }
.line-chart { position: relative; height: 220px; border:1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, rgba(58,124,165,.08), #fff); overflow:hidden; }
.line-chart svg { width: 100%; height: 100%; }
.quick-actions { display:grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.quick-action { padding: 16px; text-align:left; min-height: 96px; border-radius: 20px; background:#fff; border:1px solid var(--line); box-shadow: var(--shadow-soft); font-weight: 800; color: var(--graphite); }
.quick-action span { display:block; font-size: 24px; margin-bottom: 12px; }
.event-list, .task-list { display:grid; gap: 10px; }
.event-item { display:flex; align-items:center; justify-content:space-between; gap: 12px; padding: 14px; border:1px solid var(--line); border-radius: 16px; background: #fff; }
.event-item strong { display:block; }
.event-item small { color: var(--muted); }
.recommendation-card { padding: 22px; border-left: 4px solid var(--warning); }
.recommendation-card h3 { margin: 8px 0 12px; }
.recommendation-card p { color: var(--muted); line-height: 1.55; }
.table-card { overflow: hidden; }
.table-toolbar { padding: 18px; display:flex; justify-content:space-between; gap: 14px; border-bottom:1px solid var(--line); }
table { width:100%; border-collapse: collapse; }
th, td { padding: 15px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { font-size: 12px; text-transform: uppercase; letter-spacing:.07em; color: var(--muted); background: rgba(221,232,210,.18); }
td { font-size: 14px; }
.avatar-line { display:flex; align-items:center; gap: 12px; }
.avatar { width:38px; height:38px; display:grid; place-items:center; border-radius: 14px; background: var(--sage); color: var(--forest); font-weight:850; }
.animal-photo, .field-map, .product-image { min-height: 220px; border-radius: 18px; border:1px solid var(--line); background: radial-gradient(circle at 35% 25%, rgba(255,255,255,.65), transparent 26%), linear-gradient(135deg, rgba(47,125,70,.18), rgba(122,143,58,.3)); display:grid; place-items:center; font-size: 72px; overflow:hidden; }
.animal-photo { background: linear-gradient(135deg, #e6eadc, #fbfff6); }
.field-map { background: repeating-linear-gradient(45deg, rgba(47,125,70,.18) 0 22px, rgba(122,143,58,.2) 22px 44px), #f5f0e6; }
.details-list { display:grid; gap: 0; }
.details-list div { display:flex; justify-content:space-between; gap:12px; padding: 11px 0; border-bottom:1px solid var(--line); }
.details-list span:first-child { color: var(--muted); }
.timeline { display:grid; gap:12px; }
.timeline-item { display:flex; gap:12px; }
.timeline-dot { width:12px; height:12px; border-radius:999px; background:var(--primary); margin-top:6px; flex: 0 0 12px; }
.timeline-content { padding-bottom:14px; border-bottom:1px solid var(--line); flex:1; }
.timeline-content strong { display:block; }
.timeline-content small { color:var(--muted); }

/* Wiki */
.article-card { padding: 22px; display:grid; gap: 14px; transition: transform .18s ease, box-shadow .18s ease; }
.article-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.article-card h3 { margin: 0; font-size: 20px; color: var(--forest); }
.article-card p { margin:0; color:var(--muted); line-height:1.55; }
.card-footer-meta { display:flex; align-items:center; justify-content:space-between; gap: 12px; padding-top: 14px; border-top:1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 700; }
.article-layout { display:grid; grid-template-columns: 190px minmax(0,1fr) 250px; gap: 24px; align-items:start; }
.toc, .facts-card { position: sticky; top: 88px; }
.toc { padding: 18px; }
.toc a { display:block; padding: 7px 0; color: var(--muted); font-size:14px; }
.article-body { padding: 30px; }
.article-body h2 { margin-top: 30px; color: var(--forest); }
.article-body p, .article-body li { line-height: 1.75; color: #38433c; }
.article-alert { border-left:4px solid var(--warning); background:#fff8ec; padding: 16px; border-radius: 14px; color: #7a520b; }
.modal-backdrop { position: fixed; inset:0; background: rgba(23,61,42,.35); z-index: 80; display:none; align-items:center; justify-content:center; padding: 20px; }
.modal-backdrop.open { display:flex; }
.modal { width:min(960px, 100%); max-height: 92vh; overflow:auto; background:#fff; border-radius: 28px; box-shadow: 0 30px 100px rgba(0,0,0,.25); border: 1px solid var(--line); }
.modal-head { display:flex; align-items:center; justify-content:space-between; gap:16px; padding: 22px 26px; border-bottom:1px solid var(--line); }
.modal-body { padding: 26px; display:grid; grid-template-columns: minmax(0,1fr) 320px; gap: 24px; }
.close-modal { border:0; background: var(--bg); border-radius:12px; width:38px; height:38px; cursor:pointer; }
.form-grid { display:grid; gap: 14px; }
.form-grid label { display:grid; gap: 7px; font-weight: 750; color:var(--graphite); }
.checkbox-line { display: flex !important; grid-template-columns: none !important; align-items: center; gap: 8px; }
.vote-row { display:flex; flex-wrap:wrap; gap: 8px; }

/* Store */
.product-grid { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 22px; }
.product-card { overflow: hidden; display:flex; flex-direction:column; }
.product-image { min-height: 170px; border-radius: 0; border: 0; font-size: 54px; }
.product-card-body { padding: 18px; display:grid; gap: 10px; flex:1; }
.product-card h3 { margin:0; font-size: 16px; line-height:1.35; }
.price { font-size: 22px; font-weight: 900; color:var(--graphite); letter-spacing:-.03em; }

/* Placeholders */
.placeholder { min-height: calc(100vh - 180px); display:grid; place-items:center; padding: 48px 16px; text-align:center; }
.placeholder .card { padding: 42px; max-width: 560px; }

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .quick-actions, .grid-4, .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .article-layout { grid-template-columns: 1fr; }
  .toc, .facts-card { position: static; }
}
@media (max-width: 860px) {
  .desktop-nav, .hide-sm { display: none !important; }
  .mobile-menu-button { display: inline-grid; place-items:center; }
  .mobile-menu.open { display: block; }
  .global-header { position: sticky; }
  .workspace-shell { height: auto; min-height: calc(100vh - var(--header-h)); display: block; overflow: visible; }
  .sidebar { display: none; }
  .workspace-content { overflow: visible; padding: 22px 16px 88px; }
  .container { width: min(100% - 28px, 1180px); }
  .hero { padding: 48px 0 60px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-3, .grid-4, .product-grid { grid-template-columns: 1fr; }
  .big-split-card { grid-template-columns: 1fr; }
  .big-split-panel:last-child { border-left: 0; border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .modal-body { grid-template-columns: 1fr; }
  .table-card { overflow-x: auto; }
  .quick-actions { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .mobile-bottom-nav { display:flex; }
  body { padding-bottom: 68px; }
}
@media (min-width: 861px) {
  .mobile-bottom-nav { display:none; }
}
@media (max-width: 560px) {
  .header-inner { width: calc(100% - 22px); }
  .brand-name { font-size: 18px; }
  .hero h1 { font-size: 40px; }
  .hero p { font-size: 17px; }
  .hero-actions .button { width: 100%; }
  .stats-row { gap: 14px; }
  .quick-actions { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  th, td { padding: 12px; }
}
.mobile-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  height: 66px;
  background: rgba(255,255,255,.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
  align-items: center;
  justify-content: space-around;
  padding: 4px 8px 8px;
}
.mobile-bottom-nav a { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; width:25%; height:100%; color:var(--muted); font-weight:800; }
.mobile-bottom-nav a.active { color:var(--primary); }
.mobile-bottom-nav span { font-size:20px; }
.mobile-bottom-nav small { font-size:10px; }

.main-side { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); }
.profile-side { grid-template-columns: 340px minmax(0, 1fr); }
@media (max-width: 1100px) { .main-side, .profile-side { grid-template-columns: 1fr !important; } }

/* Forms and runtime states */
.inline-form { display: inline; margin: 0; }
.flash { width: min(1180px, calc(100% - 32px)); margin: 16px auto 0; padding: 13px 16px; border-radius: 16px; border: 1px solid var(--line); font-weight: 750; box-shadow: var(--shadow-soft); background: #fff; }
.flash-success { background: var(--sage); color: var(--forest); }
.flash-warning { background: #fff1d9; color: var(--warning); }
.flash-danger { background: #ffe2dd; color: var(--danger); }
.auth-card { width: min(720px, 100%); }
.input, .textarea, .select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--graphite);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.input-sm { max-width: 96px; padding: 8px 10px; border-radius: 11px; }
.textarea { min-height: 112px; resize: vertical; }
.textarea-tall { min-height: 320px; }
.input:focus, .textarea:focus, .select:focus { border-color: rgba(47,125,70,.55); box-shadow: 0 0 0 3px rgba(47,125,70,.08); }
.align-start { align-items: flex-start; }
.cart-row { display: flex; gap: 10px; align-items: center; }
.cart-dot { position:absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 11px; display: grid; place-items: center; }
.product-detail { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: center; padding: 28px; }
.product-detail-image { min-height: 220px; display: grid; place-items: center; border-radius: 24px; background: linear-gradient(145deg, var(--sage), #fff); font-size: 84px; border: 1px solid var(--line); }
@media (max-width: 720px) { .product-detail { grid-template-columns: 1fr; } }

/* Visual polish requested during review */
body {
  background:
    radial-gradient(900px circle at 8% -10%, rgba(221,232,210,.75), transparent 42%),
    radial-gradient(760px circle at 100% 10%, rgba(245,240,230,.9), transparent 45%),
    var(--bg);
}
.hero {
  background:
    linear-gradient(180deg, rgba(255,255,255,.54), rgba(250,250,247,.94)),
    var(--bg);
}
.workspace-content,
.section-tight,
.preview-section {
  background:
    radial-gradient(680px circle at 100% 0%, rgba(221,232,210,.55), transparent 42%),
    radial-gradient(520px circle at 0% 35%, rgba(245,240,230,.75), transparent 38%);
}
.card { background: rgba(255,255,255,.92); }
.search-large { background: rgba(255,255,255,.92); }
.article-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.article-card-media { display: grid; grid-template-columns: 180px minmax(0, 1fr); overflow: hidden; min-height: 182px; padding: 0; }
.article-card-image { min-height: 100%; background: linear-gradient(135deg, var(--sage), #fff); display:grid; place-items:center; overflow:hidden; }
.article-card-image img { width: 100%; height: 100%; object-fit: cover; }
.article-card-image span { font-size: 54px; }
.article-card-content { padding: 20px; display:grid; align-content:start; gap:10px; }
.article-card-content h3 { margin: 0; }
.article-card-content p { margin: 0; }
.article-hero-image { border-radius: 28px; overflow:hidden; border:1px solid var(--line); box-shadow: var(--shadow-soft); max-height: 360px; }
.article-hero-image img { width:100%; height: 100%; object-fit: cover; }
.article-edit-preview { display:flex; gap:16px; align-items:center; padding:12px; border:1px solid var(--line); border-radius:18px; background:var(--bg); }
.article-edit-preview img { width:140px; height:90px; object-fit:cover; border-radius:14px; }
.checkbox-row { display:flex; align-items:center; gap:8px; color:var(--muted); }
.product-image { overflow:hidden; background: linear-gradient(135deg, var(--sage), var(--beige)); }
.product-image img,
.product-detail-image img { width:100%; height:100%; object-fit:cover; }
.product-image span,
.product-detail-image span { font-size:46px; }
.product-detail-image { overflow:hidden; }
.admin-product-title { display:flex; gap:12px; align-items:center; min-width:220px; }
.admin-product-title img { width:68px; height:54px; border-radius:14px; object-fit:cover; border:1px solid var(--line); }
.admin-product-title span { width:68px; height:54px; border-radius:14px; display:grid; place-items:center; background:var(--sage); font-size:28px; }
.admin-product-form { display:grid; gap:12px; min-width:620px; }
.admin-quick-grid { align-items:stretch; }
.admin-quick-card { padding:22px; display:grid; gap:8px; transition: transform .18s ease, box-shadow .18s ease; }
.admin-quick-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.admin-quick-card span { width:44px; height:44px; border-radius:14px; background:rgba(47,125,70,.1); display:grid; place-items:center; font-size:24px; }
.admin-quick-card strong { font-size:18px; }
.admin-quick-card small { color:var(--muted); }
.supplier-hero { background: linear-gradient(135deg, rgba(221,232,210,.62), rgba(245,240,230,.7)); }
.supplier-intro { background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(221,232,210,.62)); }
.supplier-steps > div { border:1px solid var(--line); border-radius:18px; padding:18px; background:rgba(255,255,255,.72); display:grid; gap:6px; }
.supplier-steps strong { width:36px; height:36px; border-radius:12px; display:grid; place-items:center; background:var(--primary); color:#fff; }
.recommendation-search-card { padding:24px; display:grid; gap:16px; background:linear-gradient(135deg, rgba(255,255,255,.95), rgba(221,232,210,.62)); }
.role-form { display:grid; gap:10px; }
.role-checks { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:6px 12px; font-size:13px; color:var(--muted); }
@media (max-width: 960px) {
  .article-card-grid { grid-template-columns: 1fr; }
  .article-card-media { grid-template-columns: 1fr; }
  .article-card-image { height: 190px; }
  .admin-product-form { min-width: 0; }
}

.visual-preview-card { padding:0; overflow:hidden; }
.visual-preview-card > img { width:100%; height:170px; object-fit:cover; }
.visual-preview-card > div { padding:24px; display:grid; gap:10px; }
.visual-preview-card h3 { margin: 8px 0 0; }
.visual-preview-card p { margin: 0; }
.admin-sidebar { overflow-y:auto; }
.source-note { padding:14px 16px; border:1px solid var(--line); border-radius:16px; background:rgba(221,232,210,.45); }

/* Stage 2: аккуратная прикладная верстка без сгенерированных изображений */
:root {
  --primary: #2f6f4e;
  --primary-dark: #24583e;
  --forest: #18392b;
  --bg: #f6f7f3;
  --surface: #ffffff;
  --line: #dfe6dc;
  --line-strong: #cbd6cb;
  --muted: #66736b;
  --shadow: 0 16px 38px rgba(24, 57, 43, .08);
  --shadow-soft: 0 8px 20px rgba(24, 57, 43, .06);
  --radius-xl: 18px;
  --radius-lg: 14px;
}
body {
  background: var(--bg);
}
.hero,
.workspace-content,
.section-tight,
.preview-section,
.supplier-hero {
  background: var(--bg) !important;
}
.card { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-soft); }
.button { border-radius: 10px; min-height: 40px; }
.button-sm { min-height: 32px; border-radius: 9px; }
.input, .textarea, .select { border-color: var(--line-strong); border-radius: 10px; background: #fff; }
.input-sm { max-width: none; }
.table-card,
.data-panel {
  overflow: hidden;
  border-radius: 16px;
}
.table-toolbar {
  padding: 14px 16px;
  align-items: center;
  background: #fbfcfa;
  border-bottom: 1px solid var(--line);
}
.table-toolbar h3 { margin: 0; font-size: 17px; color: var(--forest); }
.table-toolbar .toolbar-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.search-inline {
  background: #fff;
  border-color: var(--line-strong);
  min-width: min(360px, 100%);
}
.table-wrap { width: 100%; overflow-x: auto; }
table.data-table { min-width: 860px; }
th { background: #f0f4ef; color: #53645a; }
th, td { padding: 13px 16px; }
tbody tr:hover td { background: #fbfcfa; }
.row-actions { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.row-actions .select, .row-actions .input { min-width: 130px; }
.compact-form { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.details-edit { margin-top: 8px; }
.details-edit summary {
  cursor: pointer;
  color: var(--primary);
  font-weight: 800;
  list-style: none;
  display:inline-flex;
  gap:6px;
  align-items:center;
}
.details-edit summary::-webkit-details-marker { display:none; }
.details-edit summary::after { content:'▾'; font-size:12px; color:var(--muted); }
.details-edit[open] summary::after { content:'▴'; }
.edit-panel {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #fbfcfa;
  border-radius: 14px;
}
.form-card { padding: 22px; }
.form-section { display:grid; gap:14px; padding: 18px; border:1px solid var(--line); border-radius:14px; background:#fbfcfa; }
.form-section h3 { margin:0; font-size:17px; color:var(--forest); }
.form-section p { margin:0; color:var(--muted); line-height:1.5; }
.form-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:10px; padding-top: 6px; }
.field-help { font-size: 12px; color: var(--muted); font-weight: 500; line-height: 1.45; }
.file-control { display:grid; gap:8px; padding:14px; border:1px dashed var(--line-strong); border-radius:14px; background:#fff; }
.file-control input { padding:10px; }
.file-control small { color: var(--muted); }
.image-box,
.photo-box,
.product-image,
.product-detail-image,
.article-card-image,
.animal-photo,
.field-map {
  background: #f1f5ef !important;
  border: 1px solid var(--line) !important;
  color: #52645a;
  border-radius: 12px;
  display:grid;
  place-items:center;
  overflow:hidden;
  text-align:center;
}
.image-box img,
.photo-box img,
.product-image img,
.product-detail-image img,
.article-card-image img,
.animal-photo img { width:100%; height:100%; object-fit:cover; }
.image-box::before,
.photo-box::before,
.product-image:not(:has(img))::before,
.product-detail-image:not(:has(img))::before,
.article-card-image:not(:has(img))::before,
.animal-photo:not(:has(img))::before {
  content: attr(data-label);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #65746b;
}
.image-box { min-height: 130px; }
.photo-box { width:64px; height:52px; min-height:52px; }
.animal-photo { min-height: 230px; }
.product-image { min-height: 168px; border-radius:0; }
.product-detail-image { min-height: 240px; }
.article-card-media { grid-template-columns: 160px minmax(0,1fr); min-height: 168px; }
.article-card-content { padding: 18px; }
.visual-preview-card > img,
.admin-quick-card span,
.feature-icon,
.brand-mark { box-shadow:none; }
.admin-quick-card { border-radius: 14px; }
.page-kicker { font-size:12px; font-weight:850; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin-bottom:8px; }
.page-head { display:flex; justify-content:space-between; align-items:flex-end; gap:16px; flex-wrap:wrap; }
.page-head .page-title { margin-top:0; }
.object-title { display:flex; align-items:center; gap:12px; min-width:220px; }
.object-title strong { display:block; color:var(--graphite); }
.object-title small { color:var(--muted); }
.stat-grid { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:16px; }
.stat-card { padding:18px; border-radius:14px; }
.stat-card small { text-transform:uppercase; letter-spacing:.06em; }
.tabs-note { padding: 12px 14px; border: 1px solid var(--line); background:#fbfcfa; border-radius: 12px; color: var(--muted); line-height:1.5; }
.modal { border-radius: 18px; }
.modal-head { padding:18px 22px; }
.modal-body { display:block; padding:22px; }
.gov-section-title { margin:0 0 12px; font-size:18px; color:var(--forest); }
.gov-list { display:grid; gap:10px; }
.gov-list .event-item { border-radius:12px; background:#fbfcfa; }
@media (max-width: 1100px) { .stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 720px) {
  .page-head { align-items:flex-start; }
  .stat-grid { grid-template-columns: 1fr; }
  .article-card-media { grid-template-columns: 1fr; }
  .article-card-image { min-height: 150px; }
  .compact-form { display:grid; }
  .search-inline { min-width: 100%; }
}

/* Stage 2.1: проверка отступов и делового вида */
.workspace-content {
  padding: 28px 30px;
}
.stack {
  gap: 22px;
}
.stack-sm {
  gap: 10px;
}
.page-head {
  margin-bottom: 2px;
  padding-bottom: 2px;
}
.page-title {
  line-height: 1.16;
}
.page-subtitle {
  max-width: 760px;
  line-height: 1.55;
}
.grid {
  gap: 20px;
}
.main-side {
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, .8fr);
  gap: 22px;
}
.profile-side {
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 22px;
}
.card,
.table-card,
.form-card,
.stat-card {
  border-radius: 16px;
}
.form-card {
  padding: 20px;
}
.table-card {
  box-shadow: var(--shadow-soft);
}
.table-toolbar {
  min-height: 64px;
  gap: 14px;
}
.table-toolbar > div:first-child,
.table-toolbar > h3 {
  min-width: 190px;
}
.table-toolbar small {
  display: block;
  margin-top: 3px;
  line-height: 1.35;
}
.table-toolbar .toolbar-actions {
  margin-left: auto;
}
.search-inline {
  min-height: 38px;
  width: min(360px, 100%);
}
table.data-table {
  font-size: 14px;
}
th, td {
  line-height: 1.45;
}
td strong {
  line-height: 1.35;
}
td small,
.object-title small {
  display: block;
  margin-top: 3px;
  line-height: 1.35;
}
.object-title {
  gap: 12px;
}
.photo-box {
  flex: 0 0 64px;
}
.button {
  min-height: 38px;
  border-radius: 9px;
  transform: none !important;
}
.button:hover {
  transform: none !important;
}
.button-sm {
  min-height: 31px;
  padding-inline: 11px;
}
.row-actions,
.form-actions,
.compact-form,
.vote-row,
.cart-row,
.toolbar-actions {
  gap: 10px;
}
.compact-form {
  align-items: center;
}
.compact-form .button,
.row-actions .button,
.toolbar-actions .button {
  margin: 0;
}
.form-grid {
  gap: 13px;
}
.form-grid label {
  gap: 7px;
  line-height: 1.35;
}
.form-section {
  gap: 13px;
  padding: 16px;
}
.form-section + .form-section {
  margin-top: 2px;
}
.file-control {
  padding: 13px;
}
.input-panel {
  padding: 0;
  overflow: hidden;
}
.input-panel > summary {
  min-height: 58px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  color: var(--forest);
  font-size: 17px;
  font-weight: 850;
  list-style: none;
  border-bottom: 1px solid transparent;
}
.input-panel > summary::-webkit-details-marker {
  display: none;
}
.input-panel > summary::after {
  content: 'Открыть';
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px 10px;
  background: #fff;
}
.input-panel[open] > summary {
  border-bottom-color: var(--line);
}
.input-panel[open] > summary::after {
  content: 'Свернуть';
}
.input-panel > form {
  padding: 18px 20px 20px;
}
.modal-head h3,
.gov-section-title,
.table-toolbar h3 {
  line-height: 1.25;
}
.modal-body {
  padding: 22px;
}
.details-list div {
  min-height: 42px;
  align-items: center;
}
.tabs-note {
  margin-top: 14px;
}
.stat-grid {
  gap: 14px;
}
.stat-card strong {
  line-height: 1.15;
}
.sidebar-nav {
  gap: 5px;
}
.sidebar-nav a {
  min-height: 40px;
  border-radius: 10px;
}
.article-card-grid,
.product-grid {
  gap: 20px;
}
@media (max-width: 960px) {
  .workspace-content {
    padding: 22px 16px 88px;
  }
  .table-toolbar,
  .page-head {
    align-items: stretch;
  }
  .table-toolbar .toolbar-actions,
  .page-head .row-actions,
  .search-inline {
    width: 100%;
  }
  .toolbar-actions .button,
  .row-actions .button {
    flex: 1 1 auto;
  }
}
@media (max-width: 560px) {
  .form-card {
    padding: 16px;
  }
  .table-toolbar {
    padding: 13px;
  }
  th, td {
    padding: 11px 12px;
  }
  .input-panel > summary,
  .input-panel > form {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Stage 3: строгая админ-панель и рабочие действия */
.grid-5 { grid-template-columns: repeat(5, minmax(0,1fr)); }
.admin-nav a { font-size: 14px; }
.role-checks label { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 6px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.role-checks label small { grid-column: 2; color: var(--muted); display: block; margin-top: 2px; }
.row-actions details { width: 100%; }
.row-actions .details-edit summary { margin-top: 4px; }
.grid-5 .input, .grid-5 .select { min-width: 0; }
@media (max-width: 1200px) { .grid-5 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 720px) { .grid-5 { grid-template-columns: 1fr; } }

/* Stage 3.2: удобная админ-панель и аккуратная корзина */
.admin-mode-header .brand-mark { background: var(--forest); }
.admin-mode-header .desktop-nav a.active { color: var(--forest); }
.admin-sidebar { width: 276px; flex-basis: 276px; }
.admin-sidebar-head { display: grid; gap: 6px; }
.admin-sidebar-head small { line-height: 1.35; }
.admin-nav-structured { display: grid; gap: 8px; padding: 14px; }
.admin-root-link,
.admin-nav-group > summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--forest);
  font-weight: 850;
  cursor: pointer;
  list-style: none;
  border: 1px solid transparent;
}
.admin-nav-group > summary::-webkit-details-marker { display: none; }
.admin-nav-group > summary::after {
  content: '›';
  margin-left: auto;
  color: var(--muted);
  font-weight: 900;
  transition: transform .16s ease;
}
.admin-nav-group[open] > summary::after { transform: rotate(90deg); }
.admin-nav-group[open] > summary,
.admin-root-link.active {
  background: #edf4ec;
  border-color: var(--line);
  color: var(--forest);
}
.admin-nav-group a {
  min-height: 36px;
  margin: 4px 0 0 12px;
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 13px;
  border-left: 2px solid var(--line);
}
.admin-nav a.active,
.admin-nav-group a.active {
  background: #e6f0e5 !important;
  color: var(--forest) !important;
  border-color: rgba(47,111,78,.35);
}
.admin-dashboard .page-subtitle { max-width: 920px; }
.admin-task-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.admin-task-card { padding: 18px; display: grid; gap: 8px; border-left: 4px solid var(--line); }
.admin-task-card.is-attention { border-left-color: var(--warning); }
.admin-task-card strong { font-size: 34px; line-height: 1; letter-spacing: -.04em; color: var(--forest); }
.admin-task-card small { color: var(--muted); line-height: 1.35; }
.admin-task-label { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; font-weight: 850; color: var(--muted); }
.admin-section-grid { align-items: stretch; }
.admin-section-card { padding: 20px; display: grid; align-content: start; gap: 8px; min-height: 112px; }
.admin-section-card strong { font-size: 18px; color: var(--forest); }
.admin-section-card span { color: var(--muted); line-height: 1.45; }
.admin-compact-table { min-width: 720px !important; }
.admin-create-panel { overflow: hidden; }
.admin-create-panel > summary { background: #fbfcfa; }
.admin-product-table { min-width: 1060px !important; }
.admin-row-actions { align-items: flex-start; min-width: 260px; }
.status-form { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(120px, .8fr) auto; gap: 8px; align-items: center; width: 100%; max-width: 430px; }
.row-edit-details { width: 100%; }
.row-edit-details > summary { margin-top: 2px; }
.row-edit-panel { min-width: min(760px, calc(100vw - 420px)); }
.table-card > .table-wrap:first-child { border-top: 1px solid var(--line); }
.cart-layout { grid-template-columns: minmax(0, 1.6fr) minmax(330px, .8fr); gap: 22px; align-items: start; }
.cart-table { min-width: 820px !important; }
.cart-table-actions { padding: 16px; display: flex; justify-content: flex-end; border-top: 1px solid var(--line); background: #fbfcfa; }
.cart-summary { position: sticky; top: 84px; }
.cart-total { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0 18px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.cart-total span { color: var(--muted); font-weight: 750; }
.cart-total strong { font-size: 28px; letter-spacing: -.04em; color: var(--forest); }
.empty-card { padding: 28px; display: grid; gap: 12px; justify-items: start; }
.quantity-input { width: 104px; }
@media (max-width: 1280px) {
  .admin-task-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .row-edit-panel { min-width: 620px; }
}
@media (max-width: 1100px) {
  .admin-task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
}
@media (max-width: 860px) {
  .admin-sidebar { width: auto; flex-basis: auto; }
  .status-form { grid-template-columns: 1fr; max-width: none; }
  .row-edit-panel { min-width: 0; }
}
@media (max-width: 560px) {
  .admin-task-grid { grid-template-columns: 1fr; }
}
.admin-inline-panels { align-items: start; }
.admin-inline-panels .input-panel { height: auto; }
@media (max-width: 1100px) { .admin-inline-panels { grid-template-columns: 1fr; } }

/* Stage 3.3: табличная админка без горизонтальных заступов */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}
.workspace-shell,
.workspace-content,
.card,
.grid,
.grid > *,
.table-card,
.table-wrap,
.data-table,
.form-card,
.edit-panel,
.row-edit-panel {
  min-width: 0 !important;
  max-width: 100%;
}
.workspace-content {
  width: 100%;
}
.admin-area .workspace-content {
  padding: 28px 34px;
}
.admin-area .stack {
  max-width: 1360px;
  margin: 0 auto;
}
.admin-area .page-head {
  align-items: flex-start;
  margin-bottom: 8px;
}
.admin-area .page-title {
  font-size: clamp(30px, 3.4vw, 42px);
  letter-spacing: -.04em;
}
.admin-area .page-subtitle {
  max-width: 900px;
  font-size: 16px;
}
.admin-area .table-card {
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(24, 57, 43, .06);
}
.admin-area .table-toolbar {
  padding: 16px 18px;
  min-height: 0;
  align-items: center;
}
.admin-area .table-toolbar > div:first-child,
.admin-area .table-toolbar > h3 {
  min-width: 0;
}
.admin-area .table-toolbar h3 {
  font-size: 18px;
}
.admin-area .toolbar-actions {
  flex: 0 1 460px;
  justify-content: flex-end;
}
.admin-area .search-inline {
  width: min(390px, 100%);
  min-width: 220px;
}
.admin-area .table-wrap {
  overflow-x: visible !important;
}
.admin-area table.data-table,
.admin-area .admin-compact-table,
.admin-area .admin-product-table,
.admin-area .cart-table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed;
}
.admin-area th,
.admin-area td {
  padding: 14px 18px;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: normal;
}
.admin-area th {
  white-space: normal;
  line-height: 1.25;
}
.admin-area td strong {
  color: var(--graphite);
}
.admin-area td small {
  max-width: 100%;
}
.admin-area .badge {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}
.admin-area .row-actions {
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0 !important;
}
.admin-area .row-actions form,
.admin-area .compact-form,
.admin-area .status-form {
  max-width: 100%;
}
.admin-area .status-form {
  grid-template-columns: 1fr auto;
  max-width: 100%;
}
.admin-area .row-actions .select,
.admin-area .row-actions .input {
  min-width: 0;
}
.admin-area .details-edit summary {
  max-width: 100%;
  color: var(--forest);
}
.admin-area .edit-panel,
.admin-area .row-edit-panel {
  width: min(760px, calc(100vw - 390px));
  min-width: 0 !important;
}
.admin-area .details-edit[open] .edit-panel,
.admin-area .row-edit-details[open] .row-edit-panel {
  position: relative;
  z-index: 2;
}
.admin-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.admin-table-actions details {
  flex: 1 1 100%;
}
.admin-users-table col:nth-child(1) { width: 25%; }
.admin-users-table col:nth-child(2) { width: 25%; }
.admin-users-table col:nth-child(3) { width: 22%; }
.admin-users-table col:nth-child(4) { width: 11%; }
.admin-users-table col:nth-child(5) { width: 17%; }
.admin-notifications-table col:nth-child(1) { width: 44%; }
.admin-notifications-table col:nth-child(2) { width: 28%; }
.admin-notifications-table col:nth-child(3) { width: 13%; }
.admin-notifications-table col:nth-child(4) { width: 15%; }
.admin-table-primary {
  display: grid;
  gap: 3px;
}
.admin-table-primary strong {
  font-size: 15px;
  line-height: 1.35;
}
.admin-table-meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.admin-role-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.admin-role-list .badge {
  padding: 4px 8px;
}
.admin-create-panel.clean-panel {
  border-radius: 16px;
}
.admin-create-panel.clean-panel > summary {
  min-height: 54px;
}
.admin-create-panel.clean-panel > form {
  padding-top: 16px;
}
.admin-area .main-side {
  grid-template-columns: minmax(0, 1fr) !important;
}
.admin-area .main-side > aside.form-card {
  order: -1;
}
.admin-area .main-side > aside.form-card:not(.keep-aside) {
  display: block;
}
.admin-area .form-card {
  padding: 20px;
}
.admin-area .form-card .form-grid {
  max-width: 980px;
}
.admin-area .form-card .textarea {
  min-height: 92px;
}
@media (max-width: 980px) {
  .admin-area .workspace-content {
    padding: 22px 16px 88px;
  }
  .admin-area .table-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .admin-area .toolbar-actions,
  .admin-area .search-inline {
    width: 100%;
    flex-basis: auto;
    min-width: 0;
  }
  .admin-area .edit-panel,
  .admin-area .row-edit-panel {
    width: 100%;
  }
}
@media (max-width: 760px) {
  .admin-area .table-wrap {
    overflow-x: visible !important;
  }
  .admin-area table.data-table,
  .admin-area table.data-table thead,
  .admin-area table.data-table tbody,
  .admin-area table.data-table tr,
  .admin-area table.data-table th,
  .admin-area table.data-table td {
    display: block;
    width: 100% !important;
  }
  .admin-area table.data-table thead {
    display: none;
  }
  .admin-area table.data-table tr {
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
  }
  .admin-area table.data-table td {
    border-bottom: 0;
    padding: 7px 14px;
  }
}
.grid-span-2 { grid-column: span 2; }
@media (max-width: 860px) { .grid-span-2 { grid-column: auto; } }

.verify-banner { background: #fff8e7; border-bottom: 2px solid var(--warning); color: var(--warning); padding: 10px 24px; font-size: 14px; font-weight: 600; text-align: center; }

.wiki-section-card { display:flex; align-items:center; justify-content:space-between; padding:20px 24px; min-height:auto; cursor:pointer; }
.wiki-section-icon { display:flex; align-items:center; justify-content:center; width:52px; height:52px; border-radius:14px; flex-shrink:0; }

/* Notification bell */
.header-notif-btn { display:inline-flex; align-items:center; justify-content:center; position:relative; width:36px; height:36px; border-radius:50%; color:var(--text-secondary); text-decoration:none; transition:background .15s; }
.header-notif-btn:hover { background:var(--bg-soft); color:var(--text); }
.notif-badge { position:absolute; top:2px; right:2px; background:var(--danger,#e53e3e); color:#fff; font-size:10px; font-weight:700; min-width:16px; height:16px; border-radius:8px; display:flex; align-items:center; justify-content:center; padding:0 3px; pointer-events:none; }
.notif-dot-inline { display:inline-block; width:8px; height:8px; border-radius:50%; background:var(--primary); flex-shrink:0; }
.mobile-notif-dot { position:absolute; top:6px; right:12px; width:8px; height:8px; background:var(--danger,#e53e3e); border-radius:50%; border:2px solid var(--bg); }

/* Notifications page */
.notification-item { transition:background .1s; }
.notification-unread { background:var(--bg-soft,#f7f8fa) !important; }
.notification-unread strong { color:var(--primary); }

/* Store filter bar */
.store-filter-bar { display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.store-filter-controls { display:flex; align-items:center; gap:10px; flex-shrink:0; }
.filter-toggle { display:flex; align-items:center; gap:6px; font-size:14px; cursor:pointer; white-space:nowrap; }
.filter-toggle input[type=checkbox] { width:16px; height:16px; cursor:pointer; }
.select-sm { font-size:13px; padding:6px 10px; height:auto; }
.product-card-top { display:flex; align-items:center; justify-content:space-between; gap:6px; margin-bottom:6px; }
.product-card-footer { display:flex; align-items:center; justify-content:space-between; margin:8px 0 6px; }

/* Cart improvements */
.cart-remove-btn { opacity:.5; font-size:18px; line-height:1; padding:2px 8px; }
.cart-remove-btn:hover { opacity:1; color:var(--danger); }

/* Table pagination */
.table-pagination { display:flex; align-items:center; justify-content:space-between; padding:12px 16px; border-top:1px solid var(--line); gap:8px; }

@media (max-width: 640px) {
  .store-filter-bar { flex-direction:column; align-items:flex-start; }
  .store-filter-controls { width:100%; justify-content:space-between; }
  .mobile-bottom-nav a svg { display:block; margin:0 auto 2px; }
  .mobile-bottom-nav a small { display:block; text-align:center; }
}

/* ══════════════════════════════════════════════════════
   DASHBOARD REDESIGN — warm-modern system
══════════════════════════════════════════════════════ */

/* Stat tiles */
.stat-tile {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.stat-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: rgba(47,125,70,.25); }
.stat-tile-icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; font-size: 18px;
  margin-bottom: 12px; background: rgba(47,125,70,.09); color: var(--primary);
}
.stat-tile-icon.ti-danger  { background: rgba(201,71,58,.09);  color: var(--danger);  }
.stat-tile-icon.ti-info    { background: rgba(58,124,165,.09); color: var(--info);    }
.stat-tile-icon.ti-warn    { background: rgba(217,154,43,.09); color: var(--warning); }
.stat-tile-icon.ti-olive   { background: rgba(122,143,58,.12); color: #4d6e00;        }
.stat-tile-val   { font-size: 34px; font-weight: 900; letter-spacing: -.05em; color: var(--graphite); line-height: 1; }
.stat-tile-val.tv-danger   { color: var(--danger); }
.stat-tile-label { font-size: 13px; color: var(--muted); font-weight: 650; margin-top: 5px; }
.stat-tile-sub   { font-size: 12px; font-weight: 750; color: var(--primary); margin-top: 7px; }
.stat-tile-sub.ts-danger   { color: var(--danger);  }

/* Tile grids */
.grid-tiles   { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.grid-tiles-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
@media (max-width: 1100px) { .grid-tiles { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 860px)  { .grid-tiles, .grid-tiles-3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 540px)  { .grid-tiles, .grid-tiles-3 { grid-template-columns: 1fr; } }

/* Section card (panel with header) */
.section-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-soft); overflow: hidden; }
.section-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  background: rgba(250,250,248,.8);
}
.section-card-head h3 { margin: 0; font-size: 15px; font-weight: 750; }
.section-card-body { padding: 18px; }
.section-card-foot { padding: 12px 18px; border-top: 1px solid var(--line); background: rgba(250,250,248,.7); display: flex; gap: 8px; flex-wrap: wrap; }

/* Event timeline */
.ev-timeline { display: grid; gap: 0; }
.ev-item { display: flex; gap: 14px; position: relative; padding-bottom: 16px; }
.ev-item:last-child { padding-bottom: 0; }
.ev-item:not(:last-child) .ev-dot-wrap::after {
  content: ""; position: absolute; left: 6px; top: 18px; bottom: 0;
  width: 1px; background: var(--line);
}
.ev-dot-wrap { position: relative; flex: 0 0 14px; padding-top: 3px; }
.ev-dot { width: 13px; height: 13px; border-radius: 50%; background: var(--primary); border: 2px solid var(--surface); box-shadow: 0 0 0 2px var(--primary); }
.ev-dot.ed-danger  { background: var(--danger);  box-shadow: 0 0 0 2px var(--danger);  }
.ev-dot.ed-warning { background: var(--warning); box-shadow: 0 0 0 2px var(--warning); }
.ev-dot.ed-info    { background: var(--info);    box-shadow: 0 0 0 2px var(--info);    }
.ev-body { flex: 1; min-width: 0; padding-top: 0; }
.ev-body strong { display: block; font-size: 14px; font-weight: 750; line-height: 1.35; }
.ev-body small   { color: var(--muted); font-size: 12px; }
.ev-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

/* Operation type tags */
.op-tag { display: inline-flex; align-items: center; border-radius: 6px; padding: 2px 8px; font-size: 11px; font-weight: 800; background: rgba(47,125,70,.09); color: var(--primary); white-space: nowrap; }
.op-tag.ot-treatment   { background: rgba(58,124,165,.1);  color: var(--info);    }
.op-tag.ot-fertilizing { background: rgba(122,143,58,.12); color: #4d6e00;        }
.op-tag.ot-harvesting  { background: rgba(217,154,43,.12); color: var(--warning); }
.op-tag.ot-watering    { background: rgba(58,124,165,.1);  color: var(--info);    }
.op-tag.ot-inspection  { background: rgba(201,71,58,.09);  color: var(--danger);  }

/* Recommendation card */
.rec-card { border-radius: 14px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-soft); overflow: hidden; position: relative; }
.rec-card-accent { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: 4px 0 0 4px; background: var(--warning); }
.rec-card-accent.rca-medium { background: var(--info);    }
.rec-card-accent.rca-low    { background: var(--primary); }
.rec-card-body    { padding: 18px 18px 14px 24px; }
.rec-card-tags    { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rec-card h4      { margin: 10px 0 0; font-size: 16px; line-height: 1.3; }
.rec-card-reason  { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
@media (max-width: 680px) { .rec-card-reason { grid-template-columns: 1fr; } }
.rec-reason-block h5 { margin: 0 0 5px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; font-weight: 900; }
.rec-reason-block p  { margin: 0; font-size: 14px; line-height: 1.55; }
.rec-card-actions { padding: 12px 18px 14px 24px; border-top: 1px solid var(--line); background: rgba(250,250,248,.7); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Form section card (replaces <details> — always visible) */
.form-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.form-panel-head { padding: 12px 16px; background: rgba(221,232,210,.2); border-bottom: 1px solid var(--line); }
.form-panel-head h4 { margin: 0; font-size: 14px; font-weight: 750; color: var(--graphite); }
.form-panel-body { padding: 16px; display: grid; gap: 14px; }

/* Dashboard hero overview */
.dash-overview-hero {
  background: linear-gradient(135deg, rgba(47,125,70,.07) 0%, rgba(221,232,210,.35) 60%, rgba(245,240,230,.3) 100%);
  border: 1px solid var(--line); border-radius: 18px;
  padding: 24px 28px; display: flex; justify-content: space-between;
  align-items: center; gap: 20px; flex-wrap: wrap;
}
.dash-overview-hero h1 { margin: 6px 0 0; font-size: clamp(20px,3vw,26px); letter-spacing: -.04em; }
.dash-overview-hero p  { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.dash-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Quick nav chips */
.dash-quick-nav  { display: flex; gap: 10px; flex-wrap: wrap; }
.dash-quick-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-soft); font-weight: 750; font-size: 13px;
  color: var(--graphite); text-decoration: none;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.dash-quick-chip:hover { transform: translateY(-1px); border-color: rgba(47,125,70,.3); box-shadow: var(--shadow); }

/* Animal profile photo */
.animal-profile-photo {
  width: 100%; aspect-ratio: 4/3; border-radius: 14px; overflow: hidden;
  background: linear-gradient(135deg, var(--sage), #f4f9f0);
  display: grid; place-items: center; font-size: 60px;
  border: 1px solid var(--line); margin-bottom: 0;
}
.animal-profile-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Sidebar section labels */
.sidebar-section-label {
  padding: 16px 16px 4px;
  font-size: 10px; font-weight: 900; text-transform: uppercase;
  letter-spacing: .1em; color: var(--muted);
}

/* Dashboard sidebar icon links */
.sidebar-nav a svg { flex: 0 0 16px; opacity: .7; }
.sidebar-nav a:hover svg, .sidebar-nav a.active svg { opacity: 1; }

/* Input section panels for animal/field detail */
.input-panel-open { }

/* Form inside section-card */
.section-card .form-grid { gap: 12px; }
.section-card .form-actions { padding-top: 4px; }

/* Stat grid 4-col for detail pages */
.stat-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
@media (max-width: 1100px) { .stat-grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 540px)  { .stat-grid-4 { grid-template-columns: 1fr; } }

/* Recommendations sidebar list */
.rec-sidebar-item { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.rec-sidebar-item:last-child { border-bottom: 0; }
.rec-sidebar-item-title { font-weight: 750; font-size: 14px; line-height: 1.35; margin-top: 6px; }
.rec-sidebar-item-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* ══════════════════════════════════════════════════════
   WARM-MODERN DESIGN SYSTEM — landing + wiki + auth + store + profile
══════════════════════════════════════════════════════ */

/* Serif font utility */
.serif { font-family: 'Playfair Display', Georgia, serif; }
/* Note: h1/h2 serif applied via specific page contexts, not globally, to avoid breaking admin/table headings */

/* Global font import acknowledgment — Inter from Google Fonts via head.ejs */
body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Warm-modern brand mark and header color overrides */
.brand-mark { background: var(--wm-green); }
.brand-name { color: var(--wm-brown); }
.global-header { border-bottom-color: rgba(237,232,223,.9); }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--wm-green); }
.nav-cart { color: var(--wm-green) !important; font-weight: 800; }
.button-primary { background: var(--wm-green); }
.button-primary:hover { background: #3a6347; }

/* Warm input focus */
.input:focus, .textarea:focus, .select:focus {
  border-color: rgba(74,124,89,.5);
  box-shadow: 0 0 0 3px rgba(74,124,89,.08);
}

/* Auth page — remove default placeholder padding */
.auth-section { padding: 0; min-height: 0; }
.auth-section.placeholder { background: transparent; display: block; }

/* ── Landing Page ── */
.lp-hero {
  position: relative; overflow: hidden; min-height: 88vh;
  display: flex; align-items: center; justify-content: center;
  background: var(--wm-brown);
}
.lp-hero-image {
  position: absolute; inset: 0; z-index: 0;
}
.lp-hero-image img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.45) saturate(.9);
}
.lp-hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(160deg,
    rgba(61,43,31,.72) 0%,
    rgba(74,124,89,.42) 55%,
    rgba(61,43,31,.65) 100%);
}
.lp-hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 80px 0 96px;
  max-width: 860px; margin-inline: auto;
  display: grid; gap: 0;
}
.lp-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(232,197,71,.5); color: var(--wm-amber-light);
  border-radius: 999px; padding: 6px 16px; font-size: 12px;
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(212,160,23,.12); margin-bottom: 28px; justify-self: center;
}
.lp-hero-h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(44px, 7vw, 82px); line-height: .96;
  letter-spacing: -.04em; color: #fff;
  margin: 0 0 28px;
}
.lp-hero-h1 em {
  font-style: normal;
  color: var(--wm-amber-light);
  text-decoration: underline; text-decoration-color: rgba(232,197,71,.55);
  text-underline-offset: 8px;
}
.lp-hero-sub {
  font-size: clamp(17px,2.5vw,22px); line-height: 1.6;
  color: rgba(255,255,255,.75); max-width: 640px;
  margin: 0 auto 40px;
}
.lp-hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap;
  justify-content: center; margin-bottom: 64px;
}
.lp-btn-white {
  background: rgba(255,255,255,.14); color: #fff;
  border: 1.5px solid rgba(255,255,255,.45);
  backdrop-filter: blur(8px);
}
.lp-btn-white:hover { background: rgba(255,255,255,.24); }
.lp-hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; border-top: 1px solid rgba(255,255,255,.18);
  padding-top: 36px;
}
.lp-hero-stat { padding: 0 20px; }
.lp-hero-stat:not(:last-child) { border-right: 1px solid rgba(255,255,255,.15); }
.lp-stat-num { display: block; font-family: 'Playfair Display', serif; font-size: 38px; font-weight: 700; color: #fff; letter-spacing: -.04em; line-height: 1; }
.lp-stat-lbl { display: block; font-size: 12px; color: rgba(255,255,255,.55); margin-top: 6px; font-weight: 600; letter-spacing: .03em; }

/* Features section */
.lp-features { background: var(--wm-page); padding: 96px 0; }
.lp-section-eyebrow { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--wm-green); margin-bottom: 14px; }
.lp-section-title { font-family: 'Playfair Display', serif; font-size: clamp(28px,4vw,46px); color: var(--wm-brown); margin: 0 0 16px; }
.lp-section-sub { color: var(--wm-muted); font-size: 17px; line-height: 1.65; max-width: 560px; margin: 0 auto; }
.lp-features-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; margin-top: 56px; }
.lp-feat-card {
  padding: 28px; border-radius: 20px;
  background: #fff; border: 1px solid rgba(74,124,89,.12);
  box-shadow: 0 4px 24px rgba(61,43,31,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.lp-feat-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(61,43,31,.12); }
.lp-feat-icon {
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center; margin-bottom: 20px;
  background: rgba(74,124,89,.1); color: var(--wm-green);
}
.lp-feat-icon svg { width: 24px; height: 24px; }
.lp-feat-title { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--wm-brown); margin: 0 0 10px; }
.lp-feat-text { color: var(--wm-muted); font-size: 15px; line-height: 1.6; margin: 0; }

/* Articles preview */
.lp-articles { background: #fff; padding: 96px 0; }
.lp-articles-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; margin-top: 48px; }
.lp-article-card {
  border-radius: 20px; overflow: hidden;
  border: 1px solid var(--wm-beige-deep); background: var(--wm-page);
  text-decoration: none; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.lp-article-card:hover { transform: translateY(-3px); box-shadow: 0 16px 48px rgba(61,43,31,.1); }
.lp-article-img { height: 180px; overflow: hidden; background: var(--wm-beige); }
.lp-article-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.lp-article-card:hover .lp-article-img img { transform: scale(1.05); }
.lp-article-body { padding: 20px; flex: 1; display: grid; gap: 8px; align-content: start; }
.lp-article-cat { font-size: 11px; font-weight: 700; color: var(--wm-green); text-transform: uppercase; letter-spacing: .07em; }
.lp-article-title { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--wm-brown); margin: 0; line-height: 1.35; }
.lp-article-excerpt { color: var(--wm-muted); font-size: 14px; line-height: 1.55; margin: 0; }
.lp-article-meta { font-size: 12px; color: var(--wm-muted); display: flex; align-items: center; gap: 8px; padding-top: 8px; border-top: 1px solid var(--wm-beige-deep); }

/* For-whom section */
.lp-audience { background: var(--wm-beige); padding: 96px 0; }
.lp-audience-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; margin-top: 48px; }
.lp-audience-card {
  padding: 32px; border-radius: 24px; background: #fff;
  border: 1px solid rgba(74,124,89,.12);
  box-shadow: 0 4px 20px rgba(61,43,31,.05);
  display: grid; gap: 14px;
}
.lp-audience-icon { font-size: 44px; line-height: 1; }
.lp-audience-title { font-family: 'Playfair Display', serif; font-size: 22px; color: var(--wm-brown); margin: 0; }
.lp-audience-text { color: var(--wm-muted); font-size: 15px; line-height: 1.6; margin: 0; }
.lp-audience-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lp-audience-features li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--wm-brown-light); }
.lp-audience-features li::before { content: "✓"; color: var(--wm-green); font-weight: 900; flex-shrink: 0; }

/* CTA Banner */
.lp-cta {
  background: var(--wm-brown); padding: 96px 0;
  text-align: center; position: relative; overflow: hidden;
}
.lp-cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(800px circle at 50% 0%, rgba(74,124,89,.3), transparent 60%);
}
.lp-cta-inner { position: relative; z-index: 1; }
.lp-cta h2 { font-family: 'Playfair Display', serif; font-size: clamp(32px,5vw,56px); color: #fff; margin: 0 0 20px; }
.lp-cta p { color: rgba(255,255,255,.65); font-size: 18px; line-height: 1.6; max-width: 500px; margin: 0 auto 40px; }
.lp-cta .button-primary { background: var(--wm-green); }
.lp-cta .button-primary:hover { background: #3a6347; }

/* Warm footer */
.lp-footer { background: #2A1F18; padding: 56px 0 40px; color: rgba(255,255,255,.75); }
.lp-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.lp-footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.lp-footer-brand-mark {
  width: 36px; height: 36px; border-radius: 11px;
  background: var(--wm-green); display: grid; place-items: center;
  font-size: 18px; font-weight: 900; color: #fff;
}
.lp-footer-brand-name { font-size: 20px; font-weight: 800; color: #fff; letter-spacing: -.03em; }
.lp-footer p { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.5); margin: 0; }
.lp-footer h4 { font-size: 13px; font-weight: 800; color: rgba(255,255,255,.9); margin: 0 0 16px; text-transform: uppercase; letter-spacing: .07em; }
.lp-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lp-footer ul a { font-size: 14px; color: rgba(255,255,255,.55); transition: color .15s; }
.lp-footer ul a:hover { color: rgba(255,255,255,.9); }
.lp-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(255,255,255,.35); }

/* ── Auth Pages — split layout ── */
.auth-page {
  min-height: calc(100vh - var(--header-h));
  display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr);
  background: var(--wm-beige);
}
.auth-form-panel {
  padding: 56px 64px;
  display: flex; flex-direction: column;
  justify-content: center; background: #fff;
}
.auth-photo-panel {
  position: relative; overflow: hidden;
  min-height: 600px;
}
.auth-photo-panel img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.75) saturate(.9);
}
.auth-photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(74,124,89,.35), rgba(61,43,31,.55));
  display: flex; flex-direction: column; justify-content: flex-end; padding: 40px;
}
.auth-photo-quote {
  color: rgba(255,255,255,.9); font-family: 'Playfair Display', serif;
  font-size: 22px; line-height: 1.5; font-style: italic;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.auth-logo {
  display: flex; align-items: center; gap: 10px; margin-bottom: 40px;
}
.auth-logo-mark {
  width: 36px; height: 36px; border-radius: 11px;
  background: var(--wm-green); display: grid; place-items: center;
  font-size: 18px; font-weight: 900; color: #fff;
}
.auth-logo-name { font-size: 20px; font-weight: 800; color: var(--wm-brown); letter-spacing: -.03em; }
.auth-form-title {
  font-family: 'Playfair Display', serif;
  font-size: 32px; color: var(--wm-brown); margin: 0 0 8px;
}
.auth-form-sub { color: var(--wm-muted); font-size: 15px; margin: 0 0 32px; line-height: 1.5; }
.auth-form-inner { max-width: 420px; }
.auth-switch { margin-top: 20px; text-align: center; font-size: 14px; color: var(--wm-muted); }
.auth-switch a { color: var(--wm-green); font-weight: 700; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--wm-beige-deep); }
.auth-divider span { font-size: 12px; color: var(--wm-muted); font-weight: 600; }

/* ── Wiki Page ── */
.wiki-hero {
  background: var(--wm-brown); padding: 64px 0 72px;
  position: relative; overflow: hidden;
}
.wiki-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px circle at 70% 50%, rgba(74,124,89,.35), transparent 55%);
}
.wiki-hero-inner { position: relative; z-index: 1; }
.wiki-hero-eyebrow { font-size: 12px; font-weight: 800; color: var(--wm-amber-light); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.wiki-hero-title { font-family: 'Playfair Display', serif; font-size: clamp(36px,6vw,60px); color: #fff; margin: 0 0 16px; line-height: 1.05; }
.wiki-hero-sub { color: rgba(255,255,255,.65); font-size: 17px; line-height: 1.6; max-width: 560px; margin: 0 0 40px; }
.wiki-search-wrap {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.1); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.2); border-radius: 18px;
  padding: 8px 8px 8px 20px; max-width: 680px;
}
.wiki-search-wrap input {
  flex: 1; background: transparent; border: 0; outline: 0;
  color: #fff; font-size: 16px; min-width: 0;
}
.wiki-search-wrap input::placeholder { color: rgba(255,255,255,.5); }
.wiki-search-wrap button { flex-shrink: 0; }

/* Wiki section hero cards */
.wiki-sections-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.wiki-section-hero {
  border-radius: 20px; overflow: hidden; position: relative;
  min-height: 220px; text-decoration: none; display: block;
  transition: transform .2s ease, box-shadow .2s ease;
}
.wiki-section-hero:hover { transform: translateY(-3px); box-shadow: 0 20px 50px rgba(61,43,31,.14); }
.wiki-section-hero-img { position: absolute; inset: 0; }
.wiki-section-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.wiki-section-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(61,43,31,.2) 0%, rgba(61,43,31,.72) 100%);
}
.wiki-section-hero-body { position: relative; z-index: 1; padding: 24px; display: flex; flex-direction: column; height: 100%; justify-content: flex-end; }
.wiki-section-hero-icon { font-size: 36px; margin-bottom: 12px; }
.wiki-section-hero-title { font-family: 'Playfair Display', serif; font-size: 26px; color: #fff; margin: 0 0 6px; }
.wiki-section-hero-sub { color: rgba(255,255,255,.7); font-size: 14px; margin: 0; }

/* Category chips warm */
.wiki-cats { display: flex; gap: 10px; flex-wrap: wrap; }
.wiki-cat-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--wm-beige-deep); background: #fff;
  font-size: 13px; font-weight: 700; color: var(--wm-brown-light);
  text-decoration: none; transition: all .15s ease;
  white-space: nowrap;
}
.wiki-cat-chip:hover, .wiki-cat-chip.active { background: var(--wm-green); color: #fff; border-color: var(--wm-green); }

/* ── Store Page ── */
.store-hero {
  background: var(--wm-brown); padding: 48px 0;
  position: relative; overflow: hidden;
}
.store-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px circle at 80% 50%, rgba(74,124,89,.3), transparent 55%);
}
.store-hero-inner { position: relative; z-index: 1; }
.store-hero-title { font-family: 'Playfair Display', serif; font-size: clamp(32px,5vw,52px); color: #fff; margin: 0 0 12px; }
.store-hero-sub { color: rgba(255,255,255,.65); font-size: 16px; margin: 0; }

/* Store catalog layout */
.store-catalog-layout { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 28px; align-items: start; }
.store-sidebar {
  background: #fff; border-radius: 18px;
  border: 1px solid var(--wm-beige-deep); padding: 24px;
  position: sticky; top: 84px; box-shadow: 0 4px 20px rgba(61,43,31,.06);
}
.store-sidebar-title { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--wm-muted); margin: 0 0 14px; }
.store-sidebar h4 { font-size: 14px; font-weight: 750; color: var(--wm-brown); margin: 0 0 10px; }
.store-sidebar-section { padding: 16px 0; border-bottom: 1px solid var(--wm-beige-deep); }
.store-sidebar-section:last-child { border-bottom: 0; padding-bottom: 0; }
.store-cat-links { display: grid; gap: 4px; }
.store-cat-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px; border-radius: 10px; font-size: 14px; font-weight: 650;
  color: var(--wm-muted); text-decoration: none; transition: all .15s ease;
}
.store-cat-link:hover, .store-cat-link.active { background: rgba(74,124,89,.08); color: var(--wm-green); }
.store-cat-link span { font-size: 12px; background: var(--wm-beige); border-radius: 999px; padding: 1px 7px; color: var(--wm-muted); }

/* Warm product card */
.wm-product-card {
  border-radius: 18px; overflow: hidden; background: #fff;
  border: 1px solid var(--wm-beige-deep);
  box-shadow: 0 2px 12px rgba(61,43,31,.05);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.wm-product-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(61,43,31,.1); }
.wm-product-img { height: 200px; overflow: hidden; background: var(--wm-beige); }
.wm-product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.wm-product-card:hover .wm-product-img img { transform: scale(1.05); }
.wm-product-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.wm-product-cat { font-size: 11px; font-weight: 700; color: var(--wm-green); text-transform: uppercase; letter-spacing: .06em; }
.wm-product-title { font-size: 15px; font-weight: 750; color: var(--wm-brown); line-height: 1.35; flex: 1; }
.wm-product-price { font-family: 'Playfair Display', serif; font-size: 22px; color: var(--wm-brown); font-weight: 700; }
.wm-product-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid var(--wm-beige-deep); margin-top: auto; }
.wm-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }

/* ── Product Detail ── */
.pd-gallery-main { border-radius: 20px; overflow: hidden; background: var(--wm-beige); aspect-ratio: 4/3; }
.pd-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.pd-thumb {
  width: 72px; height: 56px; border-radius: 10px; overflow: hidden;
  border: 2px solid transparent; cursor: pointer; background: var(--wm-beige);
  transition: border-color .15s ease;
}
.pd-thumb.active { border-color: var(--wm-green); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-title { font-family: 'Playfair Display', serif; font-size: 32px; color: var(--wm-brown); margin: 0 0 8px; line-height: 1.15; }
.pd-price { font-family: 'Playfair Display', serif; font-size: 40px; color: var(--wm-brown); font-weight: 700; }
.pd-supplier-block {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 14px;
  background: var(--wm-beige); margin: 16px 0;
}
.pd-supplier-mark {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: var(--wm-green); color: #fff;
  display: grid; place-items: center; font-weight: 900; font-size: 18px;
}
.pd-qty-controls { display: flex; align-items: center; border: 1px solid var(--wm-beige-deep); border-radius: 12px; overflow: hidden; background: #fff; }
.pd-qty-btn { width: 42px; height: 44px; border: 0; background: transparent; font-size: 18px; cursor: pointer; color: var(--wm-brown); }
.pd-qty-btn:hover { background: var(--wm-beige); }
.pd-qty-val { width: 44px; text-align: center; font-size: 15px; font-weight: 700; color: var(--wm-brown); border: 0; background: transparent; }
.pd-tabs { display: flex; gap: 0; background: var(--wm-beige-deep); border-radius: 12px; padding: 4px; max-width: 380px; }
.pd-tab {
  flex: 1; padding: 10px; border-radius: 10px; border: 0;
  background: transparent; font-size: 14px; font-weight: 700;
  color: var(--wm-muted); cursor: pointer; transition: all .15s ease;
}
.pd-tab.active { background: #fff; color: var(--wm-brown); }
.pd-specs-table { border-radius: 14px; overflow: hidden; border: 1px solid var(--wm-beige-deep); }
.pd-specs-row { display: flex; border-bottom: 1px solid var(--wm-beige-deep); }
.pd-specs-row:last-child { border-bottom: 0; }
.pd-specs-label { padding: 12px 16px; width: 200px; flex-shrink: 0; font-size: 13px; font-weight: 700; color: var(--wm-muted); background: var(--wm-beige); }
.pd-specs-val { padding: 12px 16px; font-size: 13px; color: var(--wm-brown); background: #fff; }

/* ── Cart / Checkout ── */
.cart-steps { display: flex; align-items: center; gap: 0; margin-bottom: 32px; }
.cart-step { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--wm-muted); }
.cart-step.active { color: var(--wm-green); }
.cart-step-num {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 900;
  background: var(--wm-beige-deep); color: var(--wm-muted); flex-shrink: 0;
}
.cart-step.active .cart-step-num { background: var(--wm-green); color: #fff; }
.cart-step.done .cart-step-num { background: rgba(74,124,89,.15); color: var(--wm-green); }
.cart-step-line { width: 32px; height: 1px; background: var(--wm-beige-deep); margin: 0 8px; }
.cart-item-row {
  display: grid; grid-template-columns: 56px minmax(0,1fr) auto auto 32px;
  gap: 12px; align-items: center; padding: 16px 0;
  border-bottom: 1px solid var(--wm-beige-deep);
}
.cart-item-thumb { width: 56px; height: 44px; border-radius: 8px; overflow: hidden; background: var(--wm-beige); flex-shrink: 0; }
.cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name { font-size: 14px; font-weight: 700; color: var(--wm-brown); }
.cart-item-sub { font-size: 12px; color: var(--wm-muted); margin-top: 2px; }
.order-summary-card {
  background: #fff; border-radius: 18px; padding: 24px;
  border: 1px solid var(--wm-beige-deep);
  box-shadow: 0 4px 20px rgba(61,43,31,.06);
  position: sticky; top: 84px;
}
.order-summary-line { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; color: var(--wm-muted); }
.order-summary-total { display: flex; justify-content: space-between; align-items: center; padding: 16px 0 0; margin-top: 8px; border-top: 1px solid var(--wm-beige-deep); }
.order-summary-total span { font-size: 16px; font-weight: 750; color: var(--wm-brown); }
.order-summary-total strong { font-family: 'Playfair Display', serif; font-size: 28px; color: var(--wm-brown); }
.delivery-method-options { display: grid; gap: 10px; }
.delivery-option {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border: 1.5px solid var(--wm-beige-deep); border-radius: 12px; cursor: pointer;
  transition: border-color .15s ease;
}
.delivery-option:has(input:checked) { border-color: var(--wm-green); background: rgba(74,124,89,.03); }
.delivery-option input { accent-color: var(--wm-green); }

/* ── Profile Page ── */
.profile-hero {
  background: var(--wm-brown); padding: 40px 0 56px;
  position: relative; overflow: hidden;
}
.profile-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px circle at 80% 50%, rgba(74,124,89,.25), transparent 55%);
}
.profile-hero-inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 24px; }
.profile-avatar {
  width: 80px; height: 80px; border-radius: 20px; flex-shrink: 0;
  background: var(--wm-green); display: grid; place-items: center;
  font-family: 'Playfair Display', serif; font-size: 36px; color: #fff;
  border: 3px solid rgba(255,255,255,.2);
}
.profile-hero-name { font-family: 'Playfair Display', serif; font-size: 32px; color: #fff; margin: 0 0 6px; }
.profile-hero-role { color: rgba(255,255,255,.65); font-size: 15px; }
.profile-trust-badge {
  margin-left: auto; text-align: right; flex-shrink: 0;
}
.profile-trust-label { font-size: 11px; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .07em; }
.profile-trust-score { font-family: 'Playfair Display', serif; font-size: 36px; color: var(--wm-amber-light); font-weight: 700; }
.profile-trust-max { font-size: 14px; color: rgba(255,255,255,.4); }
.profile-nav-tabs {
  display: flex; gap: 4px; background: var(--wm-beige); border-radius: 14px; padding: 4px;
  max-width: 600px;
}
.profile-nav-tab {
  flex: 1; padding: 10px 12px; border-radius: 11px; border: 0;
  background: transparent; font-size: 14px; font-weight: 700;
  color: var(--wm-muted); cursor: pointer; white-space: nowrap;
  transition: all .15s ease; text-align: center; text-decoration: none;
  display: block;
}
.profile-nav-tab:hover { color: var(--wm-brown); }
.profile-nav-tab.active { background: #fff; color: var(--wm-green); box-shadow: 0 2px 8px rgba(61,43,31,.08); }

/* ── Wiki Article Warm Typography ── */
.article-warm h1 { font-family: 'Playfair Display', serif; color: var(--wm-brown); }
.article-warm h2 { font-family: 'Playfair Display', serif; color: var(--wm-brown); font-size: 24px; margin-top: 36px; }
.article-warm h3 { color: var(--wm-brown); }
.article-warm p { color: var(--wm-brown-light); line-height: 1.75; }
.wiki-article-header { padding: 48px 0 32px; background: var(--wm-page); }
.wiki-article-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--wm-muted); flex-wrap: wrap; margin-bottom: 24px; }
.wiki-article-breadcrumb a { color: var(--wm-brown-light); }
.wiki-article-breadcrumb a:hover { color: var(--wm-green); }

/* ── Rich article cards (warm-modern) ── */
.wm-article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 1100px) { .wm-article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .wm-article-grid { grid-template-columns: 1fr; } }

.wm-article-card {
  background: #fff;
  border: 1px solid var(--wm-beige-deep);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  box-shadow: 0 2px 12px rgba(61,43,31,.04);
}
.wm-article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(61,43,31,.12);
  border-color: rgba(74,124,89,.25);
}
.wm-article-card-img {
  height: 180px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--wm-beige), var(--wm-beige-deep));
}
.wm-article-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.wm-article-card:hover .wm-article-card-img img { transform: scale(1.06); }
.wm-article-card-section-badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(6px);
  padding: 5px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 800; color: var(--wm-brown);
  display: flex; align-items: center; gap: 5px;
}
.wm-article-card-quality-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--wm-green); color: #fff;
  padding: 5px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 800;
  display: flex; align-items: center; gap: 4px;
}
.wm-article-card-quality-badge.is-warning { background: var(--warning); }
.wm-article-card-body {
  padding: 20px;
  display: flex; flex-direction: column;
  flex: 1;
}
.wm-article-card-category {
  font-size: 11px; font-weight: 800;
  color: var(--wm-green); text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 8px;
}
.wm-article-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 19px; line-height: 1.3;
  color: var(--wm-brown);
  margin: 0 0 10px;
}
.wm-article-card-excerpt {
  font-size: 14px;
  color: var(--wm-muted);
  line-height: 1.55;
  margin: 0 0 16px;
  flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wm-article-card-author {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 0 0; border-top: 1px solid var(--wm-beige-deep);
  margin-top: auto;
}
.wm-article-card-avatar {
  width: 32px; height: 32px;
  border-radius: 50%; background: var(--wm-green);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 800; color: #fff;
  flex-shrink: 0;
}
.wm-article-card-author-info { flex: 1; min-width: 0; }
.wm-article-card-author-name {
  display: block; font-size: 12px; font-weight: 700;
  color: var(--wm-brown);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wm-article-card-meta {
  font-size: 11px; color: var(--wm-muted);
}
.wm-article-card-stats {
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; color: var(--wm-muted);
}
.wm-article-card-stats span { display: flex; align-items: center; gap: 3px; }
.wm-article-card-rating {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 800;
  color: var(--wm-amber);
}

/* Featured large card (first in grid) */
.wm-article-card.is-featured {
  grid-column: span 2;
  flex-direction: row;
}
.wm-article-card.is-featured .wm-article-card-img {
  width: 50%; height: auto; min-height: 280px;
}
.wm-article-card.is-featured .wm-article-card-title { font-size: 24px; }
.wm-article-card.is-featured .wm-article-card-excerpt { -webkit-line-clamp: 5; }
@media (max-width: 1100px) {
  .wm-article-card.is-featured { grid-column: span 2; flex-direction: column; }
  .wm-article-card.is-featured .wm-article-card-img { width: 100%; min-height: 180px; }
}
@media (max-width: 640px) {
  .wm-article-card.is-featured { grid-column: auto; }
}

/* Suggestion vote card */
.sugg-card {
  border: 1px solid var(--wm-beige-deep); border-radius: 16px; overflow: hidden;
  background: #fff; box-shadow: 0 2px 12px rgba(61,43,31,.04);
}
.sugg-card-head { padding: 14px 18px; border-bottom: 1px solid var(--wm-beige-deep); display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--wm-beige); }
.sugg-card-body { padding: 14px 18px; }
.sugg-vote-row { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--wm-beige-deep); background: rgba(250,248,245,.7); }
.sugg-vote-count { font-size: 12px; font-weight: 750; color: var(--wm-muted); margin-left: auto; }

/* Responsive */
@media (max-width: 1100px) {
  .lp-features-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .lp-articles-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .lp-audience-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .lp-footer-grid { grid-template-columns: 1fr 1fr; }
  .store-catalog-layout { grid-template-columns: 1fr; }
  .store-sidebar { position: static; }
  .wm-product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 860px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-photo-panel { display: none; }
  .auth-form-panel { padding: 40px 28px; }
  .wiki-sections-grid { grid-template-columns: 1fr; }
  .lp-hero-stats { grid-template-columns: repeat(2, 1fr); }
  .lp-hero-stat:nth-child(2) { border-right: 0; }
  .lp-footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 640px) {
  .lp-features-grid, .lp-articles-grid, .lp-audience-grid { grid-template-columns: 1fr; }
  .lp-footer-grid { grid-template-columns: 1fr; }
  .lp-hero-h1 { font-size: 38px; }
  .lp-hero-actions { flex-direction: column; align-items: center; }
  .lp-hero-stats { grid-template-columns: 1fr 1fr; }
  .wm-product-grid { grid-template-columns: 1fr; }
  .cart-item-row { grid-template-columns: 44px minmax(0,1fr) auto; }
  .profile-nav-tabs { overflow-x: auto; }
  .profile-trust-badge { display: none; }
  .profile-hero-inner { flex-wrap: wrap; }
}

/* ══════════════════════════════════════════════════════
   STAGE 4 — UI/UX Redesign: nav, fonts, focus, cards
══════════════════════════════════════════════════════ */

/* Font: replace Inter with Outfit */
body {
  font-family: 'Outfit', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

/* ── Focus states (accessibility) ── */
*:focus { outline: none; }
*:focus-visible {
  outline: 2px solid var(--wm-green);
  outline-offset: 3px;
  border-radius: 5px;
}
.button:focus-visible,
.nav-cart-btn:focus-visible { border-radius: 10px; }
.wm-article-card:focus-visible,
.wm-product-card:focus-visible { border-radius: 18px; }

/* ── Desktop nav with icons ── */
.desktop-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.desktop-nav a svg {
  opacity: .65;
  flex-shrink: 0;
  transition: opacity .2s;
}
.desktop-nav a:hover svg,
.desktop-nav a.active svg { opacity: 1; }

/* ── Cart icon button (header) ── */
.nav-cart-btn {
  position: relative;
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none;
  flex-shrink: 0;
  transition: background .15s ease, color .15s ease;
}
@media (min-width: 861px) {
  .nav-cart-btn { display: inline-flex; }
}
.nav-cart-btn:hover { background: rgba(221,232,210,.55); color: var(--wm-green); }
.nav-cart-btn.active { color: var(--wm-green); background: rgba(74,124,89,.08); }
.cart-icon-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  border-radius: 8px;
  padding: 0 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  line-height: 1;
}

/* ── Mobile hamburger button ── */
.mobile-menu-button {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: inherit;
  transition: background .15s;
  color: var(--forest);
}
.mobile-menu-button:hover { background: rgba(221,232,210,.5); }
@media (max-width: 860px) {
  .mobile-menu-button { display: inline-flex !important; }
}

/* ── Mobile menu link with icons ── */
.mobile-menu-link {
  display: flex !important;
  align-items: center;
  gap: 12px;
}
.mobile-menu-link svg { opacity: .65; flex-shrink: 0; }

/* Cart count pill in mobile menu */
.mobile-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  border-radius: 10px;
  padding: 0 5px;
  margin-left: 4px;
}

/* ── Mobile bottom nav improvements ── */
.mobile-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 20%;
  height: 100%;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
  transition: color .15s;
  position: relative;
}
.mobile-bottom-nav a.active { color: var(--primary); }
.mobile-bottom-nav a svg { display: block; }
.mobile-bottom-nav small { font-size: 10px; letter-spacing: .01em; }
.mobile-cart-dot {
  position: absolute;
  top: 4px;
  right: calc(50% - 20px);
  min-width: 16px;
  height: 16px;
  background: var(--danger);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  border-radius: 8px;
  padding: 0 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

/* ── Product card improvements ── */
.wm-product-grid {
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 20px;
}
@media (max-width: 1100px) { .wm-product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px)  { .wm-product-grid { grid-template-columns: 1fr; } }

.wm-product-card {
  border-radius: 16px;
  border-color: var(--line);
  box-shadow: 0 1px 4px rgba(24,57,43,.05), 0 4px 16px rgba(24,57,43,.04);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.wm-product-card:hover {
  box-shadow: 0 8px 32px rgba(24,57,43,.12);
  border-color: rgba(47,111,78,.22);
}

/* Supplier chip on product card */
.wm-supplier-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 8px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.wm-supplier-chip svg { flex-shrink: 0; opacity: .7; }

/* Rating stars */
.wm-stars {
  display: inline-flex;
  align-items: center;
  color: var(--wm-amber);
  font-size: 12px;
  line-height: 1;
  gap: 1px;
}
.wm-stars-count {
  margin-left: 4px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

/* Price + unit layout */
.wm-price-block { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.wm-price-unit  { font-size: 11px; color: var(--muted); }

/* Stock dot */
.stock-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.stock-dot.sd-ok  { background: var(--primary); }
.stock-dot.sd-low { background: var(--warning); }
.stock-dot.sd-out { background: #bbb; }

/* ── Filter toggle visuals ── */
.filter-toggle input[type=checkbox],
.filter-toggle input[type=radio] {
  accent-color: var(--wm-green);
  width: 15px;
  height: 15px;
  cursor: pointer;
  flex-shrink: 0;
}
.filter-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border-radius: 8px;
  transition: background .12s;
  cursor: pointer;
  color: var(--wm-brown-light);
}
.filter-toggle:hover { background: rgba(74,124,89,.06); }

/* ── Store sidebar mobile collapse ── */
.store-sidebar-details { width: 100%; }
.store-sidebar-toggle {
  display: none;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 14px 0 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--wm-brown);
  text-transform: uppercase;
  letter-spacing: .07em;
  user-select: none;
  list-style: none;
}
.store-sidebar-toggle::-webkit-details-marker { display: none; }
.store-sidebar-toggle::after {
  content: "";
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366736b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .2s;
  flex-shrink: 0;
}
details.store-sidebar-details[open] .store-sidebar-toggle::after {
  transform: rotate(180deg);
}
@media (max-width: 1100px) {
  .store-sidebar-toggle { display: flex; }
  .store-sidebar-details:not([open]) .store-sidebar-form { display: none; }
}

/* Active filter count badge */
.filter-active-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  background: var(--wm-green);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  border-radius: 9px;
  padding: 0 4px;
  margin-left: 6px;
}

/* ── Flash message with icon prefix ── */
.flash {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
}

/* ── Skip link for keyboard users ── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--wm-green);
  color: #fff;
  font-weight: 800;
  border-radius: 8px;
  text-decoration: none;
  transition: top .15s;
}
.skip-link:focus { top: 8px; }

/* ── Article card featured layout fix ── */
@media (max-width: 860px) {
  .wm-article-card.is-featured {
    grid-column: auto;
    flex-direction: column;
  }
  .wm-article-card.is-featured .wm-article-card-img {
    width: 100%;
    min-height: 180px;
  }
}

/* ── Readability tweaks ── */
.wm-product-title { font-size: 14px; font-weight: 700; line-height: 1.4; }
.wm-product-body  { gap: 7px; }
.wm-product-cat   { font-size: 10px; letter-spacing: .08em; }

/* ── Dev account switcher (development only) ── */
.dev-switcher {
  position: relative;
  display: inline-block;
}
.dev-switcher > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 20px;
  border: 1.5px dashed var(--wm-amber);
  color: var(--wm-amber);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  background: rgba(212,160,23,.07);
  transition: background .15s;
  white-space: nowrap;
}
.dev-switcher > summary::-webkit-details-marker { display: none; }
.dev-switcher > summary::marker { display: none; }
.dev-switcher > summary:hover { background: rgba(212,160,23,.16); }
.dev-switcher-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 230px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 6px;
  z-index: 500;
  overflow: hidden;
}
.dev-switcher-title {
  padding: 6px 10px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--wm-amber);
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.dev-switcher-form { margin: 0; }
.dev-switcher-btn {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: left;
  padding: 7px 10px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: background .12s;
  gap: 1px;
}
.dev-switcher-btn:hover { background: var(--sage); }
.dev-switcher-btn--active { background: rgba(74,124,89,.1); }
.dev-switcher-btn--active .dev-switcher-label::after { content: ' ✓'; color: var(--wm-green); }
.dev-switcher-label { font-size: 13px; font-weight: 600; color: var(--forest); line-height: 1.3; }
.dev-switcher-email { font-size: 11px; color: var(--wm-muted); line-height: 1.3; }

/* Mobile dev switcher */
.dev-switcher-mobile {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 4px;
}
.dev-switcher-mobile > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--wm-amber);
  cursor: pointer;
  user-select: none;
}
.dev-switcher-mobile > summary::-webkit-details-marker { display: none; }
.dev-switcher-mobile > summary::marker { display: none; }
.dev-switcher-mobile-list { padding: 2px 0 6px; display: flex; flex-direction: column; gap: 4px; }
.dev-switcher-mobile-form { margin: 0; }
.dev-switcher-mobile-btn {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border: 0;
  background: rgba(212,160,23,.07);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--forest);
  transition: background .12s;
}
.dev-switcher-mobile-btn:hover { background: rgba(212,160,23,.15); }
.dev-switcher-mobile-btn--active { background: rgba(74,124,89,.1); color: var(--wm-green); }
.dev-switcher-mobile-email { font-size: 11px; color: var(--wm-muted); font-weight: 400; }


/* ── Article rich content ── */
.article-rich-content { line-height: 1.75; color: var(--wm-brown-light); font-size: 15px; }
.article-rich-content h1,.article-rich-content h2,.article-rich-content h3,.article-rich-content h4 { font-family:'Playfair Display',serif; color:var(--wm-brown); margin:1.5em 0 .6em; }
.article-rich-content p { margin:0 0 1em; }
.article-rich-content ul,.article-rich-content ol { padding-left:1.6em; margin:0 0 1em; }
.article-rich-content li { margin-bottom:.35em; }
.article-rich-content blockquote { border-left:4px solid var(--wm-green); background:var(--wm-beige); padding:12px 18px; border-radius:4px; margin:1em 0; }
.article-rich-content pre { background:var(--graphite); color:#e8e8e8; border-radius:8px; padding:14px 18px; overflow-x:auto; font-size:13px; margin:1em 0; }
.article-rich-content code { background:var(--wm-beige-deep); border-radius:4px; padding:2px 6px; font-size:13px; }
.article-rich-content pre code { background:none; padding:0; }
.article-rich-content img { max-width:100%; border-radius:10px; margin:8px 0; }
.article-rich-content a { color:var(--wm-green); text-decoration:underline; text-underline-offset:2px; }
.article-rich-content iframe { border-radius:12px; max-width:100%; }
.article-rich-content table { width:100%; border-collapse:collapse; margin:1em 0; }
.article-rich-content th,.article-rich-content td { border:1px solid var(--wm-beige-deep); padding:8px 12px; text-align:left; font-size:14px; }
.article-rich-content th { background:var(--wm-beige); font-weight:700; }

/* ── Article gallery ── */
.article-gallery { display:grid; grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:10px; margin:12px 0 24px; }
.article-gallery-item { display:block; border-radius:10px; overflow:hidden; aspect-ratio:4/3; }
.article-gallery-item img { width:100%; height:100%; object-fit:cover; transition:transform .2s; }
.article-gallery-item:hover img { transform:scale(1.04); }

/* ── Article video ── */
.article-video-wrap { margin:12px 0 24px; border-radius:14px; overflow:hidden; background:#000; }

/* ── TOC sidebar for article ── */
.article-toc { max-height:calc(100vh - 120px); overflow-y:auto; }
.article-toc a { display:block; padding:5px 0; font-size:13px; color:var(--wm-muted); text-decoration:none; border-left:2px solid transparent; padding-left:10px; transition:color .15s, border-color .15s; }
.article-toc a:hover { color:var(--wm-green); border-left-color:var(--wm-green); }

@media (max-width:768px) {
  .article-toc { display:none; }
  .container > div[style*="grid-template-columns"] { display:block !important; }
}

/* ── Wiki sidebar collapse toggle ── */
.wiki-sidebar-collapse-btn { background:none; border:none; cursor:pointer; color:var(--wm-muted); padding:4px 6px; border-radius:6px; flex-shrink:0; display:flex; align-items:center; justify-content:center; transition:color .15s, background .15s; }
.wiki-sidebar-collapse-btn:hover { color:var(--wm-green); background:var(--wm-beige-deep); }
.wiki-sidebar--collapsed { width:0 !important; flex-basis:0 !important; min-width:0 !important; overflow:hidden; border-right:none !important; }
.wiki-sidebar-restore-btn { position:fixed; left:0; top:50%; transform:translateY(-50%); z-index:50; background:var(--surface); border:1px solid var(--line); border-left:none; border-radius:0 8px 8px 0; padding:12px 6px; cursor:pointer; color:var(--wm-muted); display:flex; align-items:center; transition:color .15s, background .15s; }
.wiki-sidebar-restore-btn:hover { color:var(--wm-green); background:var(--wm-beige); }
@media (max-width:768px) { .wiki-sidebar-collapse-btn, .wiki-sidebar-restore-btn { display:none !important; } }
