:root {
  --forest: #302117;
  --forest2: #513722;
  --sage: #7f6b4d;
  --cream: #d7bd8d;
  --paper: #f1dfb9;
  --ink: #2b2118;
  --muted: #776246;
  --line: #b99b69;
  --gold: #9a682f;
  --danger: #843d2d;
  --ok: #53643f;
}

body {
  background:
    radial-gradient(circle at 12% 18%, #fff5d633 0 1px, transparent 2px),
    radial-gradient(circle at 76% 63%, #4f321515 0 1px, transparent 2px),
    linear-gradient(96deg, #d4b983, #ead2a4 50%, #cfad76);
  background-size: 31px 29px, 37px 41px, auto;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .25;
  background: repeating-linear-gradient(3deg, transparent 0 4px, #4b2e1608 5px 6px);
  mix-blend-mode: multiply;
}

.sidebar {
  background:
    linear-gradient(90deg, #160f0bcc, transparent 12%, transparent 88%, #120b08dd),
    repeating-linear-gradient(0deg, #2b1b12 0 42px, #342117 43px 45px);
  border-right: 3px solid #8d6335;
  box-shadow: 8px 0 28px #2b190c55;
  padding-top: 18px;
}

.brand {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 13px;
  padding: 0 5px 24px;
  border-bottom: 1px solid #b58b5644;
}

.brand img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 50%;
  filter: sepia(.22) contrast(1.05);
  border: 2px solid #c3975c;
  box-shadow: 0 3px 12px #0008, inset 0 0 0 2px #26170e;
}

.brand strong {
  font-size: 17px;
  color: #f2d49b;
  letter-spacing: .3px;
}

.brand small {
  color: #bda278;
  line-height: 1.4;
}

nav {
  margin-top: 18px;
}

nav button {
  color: #cfba93;
  border: 1px solid transparent;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: .2px;
}

nav button::before {
  content: "◆";
  margin-right: 9px;
  color: #8e6b40;
  font-size: 7px;
}

nav button:hover,
nav button.active {
  color: #ffe2a7;
  background: linear-gradient(90deg, #ad79472e, #ffffff08);
  border-color: #b7894d55;
  box-shadow: inset 3px 0 #c18a4e;
}

main {
  position: relative;
}

header {
  border-bottom: 1px solid #9e7a4d;
  padding-bottom: 17px;
}

h1, h2, h3 {
  color: #352317;
  text-shadow: 0 1px #f8e5bc;
  letter-spacing: .25px;
}

.eyebrow {
  color: #7b572e;
  letter-spacing: 2px;
}

.card,
.kpi {
  background:
    linear-gradient(#f5e6c6e8, #ead4a8ee),
    repeating-linear-gradient(2deg, transparent 0 5px, #4a2e1108 6px);
  border: 1px solid #a8804d;
  border-radius: 7px;
  box-shadow: 0 5px 14px #56371620, inset 0 0 0 2px #fff2cf88;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  border: 2px solid #946333;
  border-radius: 8px;
  background:
    linear-gradient(100deg, #25160ff2 0 48%, #3f2a1dcc 72%, #1e130df0),
    repeating-linear-gradient(0deg, #553a25 0 44px, #48301f 45px 47px);
  box-shadow: 0 8px 22px #3f28163d, inset 0 0 0 4px #c4985c33;
}

.hero::after {
  content: "";
  position: absolute;
  right: 28px;
  top: 50%;
  width: 210px;
  height: 210px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: url("assets/Logo_HeisenbergRanch.png") center/cover no-repeat;
  opacity: .86;
  filter: sepia(.18) contrast(1.08);
  box-shadow: 0 0 0 5px #d1a46655, 0 12px 24px #0007;
}

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

.hero h2 {
  color: #f4d9a3;
  text-shadow: 1px 2px #120b07;
  max-width: 640px;
}

.hero h2 em {
  color: #dcae69;
}

.hero > div > p:last-child {
  color: #d8c5a0;
  max-width: 570px;
}

.hero a,
.sync button,
.order-form button,
.stock-editor button,
.employee-form button {
  background: linear-gradient(#714b2e, #41291b);
  border: 1px solid #b88a52;
  border-radius: 4px;
  color: #f5dfb2;
  box-shadow: inset 0 1px #e0b87a55, 0 2px 4px #2b180c55;
  font-family: Georgia, "Times New Roman", serif;
}

input,
select,
textarea {
  background: #f8e9c9;
  border: 1px solid #9f7a4b;
  border-radius: 4px;
  color: #2d2117;
  font-family: Georgia, "Times New Roman", serif;
}

table {
  background: #f1ddb6aa;
}

th {
  color: #604323;
  border-bottom: 2px solid #9d7547;
}

td {
  border-bottom-color: #bda17088;
}

tbody tr:hover {
  background: #d2b57c42;
}

.tabs button,
.status,
.order-status {
  border-radius: 3px;
}

.tabs button.active,
.plan-summary,
.calc-result {
  background: linear-gradient(135deg, #3e2b1d, #60452d);
  border: 1px solid #9e7747;
}

.crop-mini,
.crop-card {
  background: #dbc49388;
  border: 1px solid #b28d59;
  border-radius: 5px;
}

.auth-screen {
  background:
    linear-gradient(135deg, #1d120cdd, #4d3522e8),
    url("assets/Logo_HeisenbergRanch.png") center/cover;
}

.auth-card {
  background: #efdbb3;
  border: 2px solid #9b7040;
  border-radius: 8px;
  box-shadow: 0 25px 80px #160c0788, inset 0 0 0 3px #fff0c766;
}

.auth-mark {
  width: 78px;
  height: 78px;
  color: transparent;
  background: url("assets/Logo_HeisenbergRanch.png") center/cover;
  border: 2px solid #916535;
  box-shadow: 0 4px 12px #2b180c55;
}

.role-box {
  border-top-color: #b28c5b44;
}

.side-foot {
  color: #d4bc91;
}

@media (max-width: 900px) {
  .hero::after {
    width: 150px;
    height: 150px;
    opacity: .35;
  }
}

@media (max-width: 720px) {
  .hero::after {
    right: -25px;
    top: 35%;
  }

  .hero h2 {
    max-width: 85%;
  }
}
