/* Grocery Mentor Dashboard — Clay design tokens, ported 1:1 from the main
   site's src/styles/global.css (same variable names, same shadow/gradient
   values) so this admin tool visually matches grocerymentor.com exactly.
   Google Fonts CDN used here instead of self-hosted woff2 — this is an
   internal admin tool (not indexed, not perf-budgeted like the public
   site), so the self-hosting/CLS optimization work there doesn't apply. */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..700;1,9..144,400..600&family=Manrope:wght@400;600;700;800&display=swap');

:root {
  --clay-light: rgba(255, 255, 255, 0.9);
  --clay-dark: rgba(15, 42, 29, 0.16);
  --clay-drop: rgba(15, 42, 29, 0.1);
  --ease-clay: cubic-bezier(0.22, 1, 0.36, 1);
  --font-heading: "Fraunces", ui-serif, Georgia, serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: #faf7ee;
  color: #0f2a1d;
  font-family: var(--font-body);
}

h1, h2, h3, h4 { font-family: var(--font-heading); letter-spacing: -0.01em; margin: 0; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.display {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.clay-1 {
  background: linear-gradient(160deg, #ece5d5 0%, #f3eee1 100%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    9px 10px 20px -10px var(--clay-dark) inset,
    -8px -8px 18px -8px rgba(255, 255, 255, 0.95) inset;
}

.clay-2 {
  background: linear-gradient(150deg, #fffdf7 0%, #f3eee1 62%, #ece5d5 100%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.95) inset,
    -6px -6px 14px 0 rgba(255, 255, 255, 0.75) inset,
    7px 9px 18px -8px var(--clay-dark) inset,
    0 14px 30px -14px var(--clay-drop),
    0 3px 8px -4px rgba(15, 42, 29, 0.07);
}

.clay-3 {
  background: linear-gradient(155deg, #fffefa 0%, #f3eee1 55%, #ece5d5 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    -10px -10px 24px 0 rgba(255, 255, 255, 0.8) inset,
    10px 12px 24px -10px var(--clay-dark) inset,
    0 34px 60px -26px rgba(15, 42, 29, 0.22),
    0 10px 22px -12px rgba(15, 42, 29, 0.12);
}

.clay-ink {
  background: linear-gradient(155deg, #1d4130 0%, #0f2a1d 58%, #0a1f15 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e3eed4;
  box-shadow:
    -6px -6px 16px 0 rgba(255, 255, 255, 0.12) inset,
    8px 10px 20px -10px rgba(0, 0, 0, 0.55) inset,
    0 22px 44px -20px rgba(15, 42, 29, 0.5);
}

.clay-terra {
  background: linear-gradient(155deg, #b96b41 0%, #a2542e 55%, #7c3f22 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #faf7ee;
  box-shadow:
    -5px -5px 12px 0 rgba(255, 255, 255, 0.18) inset,
    6px 8px 16px -8px rgba(15, 42, 29, 0.45) inset,
    0 16px 32px -16px rgba(124, 63, 34, 0.4);
}

.clay-pale {
  background: linear-gradient(155deg, #f3f8e9 0%, #e3eed4 55%, #cdddb8 100%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    -5px -5px 12px 0 rgba(255, 255, 255, 0.8) inset,
    6px 8px 16px -8px rgba(55, 85, 52, 0.22) inset,
    0 12px 26px -16px rgba(55, 85, 52, 0.24);
}

.clay-press { transition: transform 0.28s var(--ease-clay), box-shadow 0.28s var(--ease-clay); cursor: pointer; }
.clay-press:hover { transform: translateY(-2px); }
.clay-press:active {
  transform: translateY(1px) scale(0.985);
  box-shadow:
    10px 12px 22px -10px var(--clay-dark) inset,
    -8px -8px 16px -8px rgba(255, 255, 255, 0.9) inset;
}

.clay-lift { transition: transform 0.3s var(--ease-clay), box-shadow 0.3s var(--ease-clay); }
.clay-lift:hover { transform: translateY(-4px); }

.calc-input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: linear-gradient(160deg, #fffdf7 0%, #f3eee1 100%);
  border: 1px solid rgba(15, 42, 29, 0.12);
  border-radius: 1rem;
  color: #0f2a1d;
  padding: 0.65rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  appearance: none;
  box-shadow:
    6px 7px 14px -6px var(--clay-dark) inset,
    -5px -5px 12px -5px rgba(255, 255, 255, 0.95) inset;
  transition: box-shadow 0.2s var(--ease-clay);
}
.calc-input:focus-visible {
  outline: none;
  box-shadow:
    5px 6px 12px -6px var(--clay-dark) inset,
    -4px -4px 10px -4px rgba(255, 255, 255, 0.9) inset,
    0 0 0 3px rgba(107, 144, 113, 0.45);
}
textarea.calc-input { resize: vertical; min-height: 3rem; }
textarea.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 0.85rem; line-height: 1.6; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}
.badge-live { background: rgba(107, 144, 113, 0.22); color: #375534; }
.badge-draft { background: rgba(162, 84, 46, 0.16); color: #a2542e; }
.badge-fail { background: rgba(162, 84, 46, 0.28); color: #7c3f22; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(15, 42, 29, 0.2); border-radius: 999px; }
