:root {
  color-scheme: light;
  --bg: #f6f3ed;
  --bg-quiet: #ebe6dc;
  --text: #191713;
  --muted: #6e6a61;
  --accent: #b7412f;
  --accent-2: #71392f;
  --accent-ink: #fffaf2;
  --border: rgba(25, 23, 19, .12);
  --border-strong: rgba(25, 23, 19, .24);
  --card: rgba(255, 252, 245, .88);
  --card-soft: rgba(247, 242, 232, .86);
  --danger: #b5333f;
  --success: #26765b;
  --warning: #9c6a1d;
  --button-grad: linear-gradient(135deg, #191713 0%, #40382d 100%);
  --surface-grad: linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .34));
  --shadow-sm: 0 18px 44px rgba(75, 56, 37, .08);
  --shadow-lg: 0 32px 80px rgba(75, 56, 37, .16);
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --container: 1160px;
  --wide: 1320px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(135deg, rgba(183, 65, 47, .09), transparent 34%),
    linear-gradient(180deg, #fbf8f1 0%, #f6f3ed 42%, #eee8dc 100%),
    var(--bg);
  color: var(--text);
  font-family: Outfit, Avenir Next, Segoe UI, ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(25, 23, 19, .035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(25, 23, 19, .032) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .8), transparent 76%);
  opacity: .84;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(115deg, transparent 0 47%, rgba(25, 23, 19, .08) 47% 47.4%, transparent 47.4%),
    radial-gradient(circle at 1px 1px, rgba(25, 23, 19, .18) 1px, transparent 0);
  background-size: 100% 100%, 18px 18px;
}

.site-header,
.container,
.site-footer {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

::selection {
  background: color-mix(in srgb, var(--accent) 24%, transparent);
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 32%, transparent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--text);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
  transition: transform .24s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 26px;
  padding: 14px max(18px, calc((100vw - var(--wide)) / 2 + 22px));
  border-bottom: 1px solid var(--border);
  /*background: rgba(251, 248, 241, .78);*/
  background: #FFFFFF;
  backdrop-filter: blur(18px) saturate(1.18);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .72) inset, 0 16px 46px rgba(75, 56, 37, .08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 15px;
  font-weight: 850;
  letter-spacing: .01em;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 0 0 1px rgba(25, 23, 19, .08) inset, 0 14px 28px rgba(75, 56, 37, .12);
}

.site-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 3px;
  max-width: 100%;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 252, 245, .76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
  transition: color .22s var(--ease), background .22s var(--ease), transform .22s var(--ease), box-shadow .22s var(--ease);
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(25, 23, 19, .055);
  transform: translateY(-1px);
}

.site-nav a.active {
  color: var(--accent-ink);
  background: var(--text);
  box-shadow: 0 10px 24px rgba(75, 56, 37, .14);
}

.nav-toggle {
  display: none;
  justify-self: end;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 252, 245, .88);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 4px 0;
  border-radius: 999px;
  background: currentColor;
}

.container {
  width: min(var(--container), calc(100% - 36px));
  margin: 0 auto;
  padding: 54px 0 84px;
}

.container.wide {
  width: min(var(--wide), calc(100% - 36px));
}

.site-footer {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 28px max(18px, calc((100vw - var(--wide)) / 2 + 22px));
  border-top: 1px solid var(--border);
  color: var(--muted);
  background: rgba(238, 232, 220, .72);
}

.site-footer span {
  color: var(--text);
  font-weight: 800;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: color .2s var(--ease);
}

.site-footer a:hover {
  color: var(--accent);
}

h1,
h2,
h3 {
  margin: 0 0 14px;
  color: var(--text);
  line-height: 1.02;
  text-wrap: balance;
}

h1 {
  max-width: 880px;
  font-size: 2.7rem;
  font-weight: 900;
  letter-spacing: -.035em;
}

.hero h1 {
  margin-right: 0;
  margin-left: 0;
}

h2 {
  font-size: 1.45rem;
  font-weight: 750;
}

h3 {
  font-size: 1.1rem;
  font-weight: 750;
}

p {
  text-wrap: pretty;
}

.lead {
  max-width: 66ch;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 820px);
  gap: 28px;
  align-items: center;
  min-height: min(620px, calc(100dvh - 92px));
  padding: 88px 0 118px;
  text-align: left;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 44px auto auto 0;
  width: min(560px, 74vw);
  height: 1px;
  transform: none;
  background: linear-gradient(90deg, rgba(25, 23, 19, .55), transparent);
}

.hero p {
  max-width: 56ch;
  margin-right: 0;
  margin-left: 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.75;
}

.hero .actions {
  margin-top: 28px;
  justify-content: flex-start;
}

.home-page {
  position: relative;
  z-index: 1;
  width: min(100% - 20px, 1440px);
  margin: 0 auto;
  padding: 28px 0 70px;
}

.home-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, .95fr);
  gap: 24px 28px;
  align-items: center;
  min-height: calc(100dvh - 178px);
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 18% 4%, rgba(183, 65, 47, .12), transparent 30%),
    linear-gradient(180deg, rgba(255, 252, 245, .82), rgba(247, 242, 232, .74));
  color: var(--text);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .82);
}

.home-hero-card,
.home-pricing-card,
.home-account-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-grad), rgba(255, 252, 245, .88);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, .82);
}

.home-hero-card {
  min-height: 470px;
  padding: clamp(28px, 4.5vw, 58px);
}

.home-hero-mark {
  width: clamp(82px, 10vw, 132px);
  margin: 0 0 22px;
  filter: drop-shadow(0 18px 26px rgba(75, 56, 37, .12));
}

.home-hero-mark img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.home-hero-card h1 {
  max-width: 760px;
  margin-bottom: 28px;
  color: var(--text);
  font-size: 3.75rem;
  line-height: .98;
  letter-spacing: 0;
}

.home-hero-card p {
  max-width: 740px;
  margin: 0;
  color: var(--muted);
  font-size: 1.18rem;
  font-weight: 650;
  line-height: 1.7;
}

.home-stage .actions {
  margin-top: 30px;
  gap: 14px;
}

.home-stage .button {
  min-height: 58px;
  padding: 0 28px;
  border: 0;
  font-size: 1.05rem;
  font-weight: 900;
}

.home-stage .button .link-icon {
  width: 21px;
  height: 21px;
}

.home-primary {
  background: var(--button-grad);
  color: var(--accent-ink);
  box-shadow: 0 14px 28px rgba(75, 56, 37, .16), inset 0 1px 0 rgba(255, 255, 255, .16);
}

.home-primary:hover {
  box-shadow: 0 18px 36px rgba(75, 56, 37, .22), inset 0 1px 0 rgba(255, 255, 255, .2);
}

.home-secondary {
  border: 1px solid var(--border);
  background: rgba(255, 252, 245, .72);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .76);
}

.home-secondary:hover {
  border-color: transparent;
  background: var(--button-grad);
  color: var(--accent-ink);
  box-shadow: 0 18px 36px rgba(75, 56, 37, .22), inset 0 1px 0 rgba(255, 255, 255, .2);
}

.home-pricing-card {
  padding: clamp(28px, 3.5vw, 48px);
}

.home-pricing-card h2,
.home-account-card h2 {
  color: var(--text);
  font-size: 2rem;
  letter-spacing: 0;
}

.home-pricing-card h2 {
  margin-bottom: 34px;
}

.home-pricing-card p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 650;
  line-height: 1.5;
}

.home-pricing-card p:last-child {
  margin-bottom: 0;
}

.home-pricing-card strong {
  color: var(--text);
  font-weight: 900;
}

.home-account-card {
  grid-column: 1 / -1;
  padding: clamp(28px, 3.5vw, 44px);
}

.home-account-card h2 {
  margin-bottom: 34px;
}

.home-account-card ol {
  margin: 0;
  padding-left: 28px;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 650;
  line-height: 1.55;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin: 0 0 18px;
  padding: 0 12px;
  border: 1px solid rgba(183, 65, 47, .28);
  border-radius: 999px;
  background: rgba(183, 65, 47, .08);
  color: var(--accent-2);
  font-size: .8rem;
  font-weight: 860;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.panel {
  margin: 24px 0;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-grad), var(--card);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, .82);
}

.panel > h2:first-child {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.panel > .pill + .actions {
  margin-top: 14px;
}

.faq-list {
  display: grid;
  gap: 16px;
  max-width: 920px;
}

.faq-item {
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-grad), var(--card);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, .82);
}

.faq-item h2 {
  margin-bottom: 12px;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.72;
}

.faq-admin-list {
  display: grid;
  gap: 14px;
}

.faq-admin-form {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(96px, 140px);
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 252, 245, .58);
}

.panel.narrow {
  max-width: 520px;
}

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

.actions,
.form-actions,
.page-title,
.section-head,
.filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.page-title,
.section-head {
  justify-content: space-between;
  margin-bottom: 22px;
}

.page-title h1,
.section-head h2 {
  margin-bottom: 0;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(25, 23, 19, .16);
  border-radius: 999px;
  background: var(--button-grad);
  color: var(--accent-ink);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(75, 56, 37, .16), inset 0 1px 0 rgba(255, 255, 255, .16);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .22s var(--ease), border-color .22s var(--ease);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(75, 56, 37, .22), inset 0 1px 0 rgba(255, 255, 255, .2);
}

.button:active {
  transform: translateY(1px) scale(.99);
}

.button.ghost {
  background: rgba(255, 252, 245, .72);
  color: var(--text);
  border-color: var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .76);
}

.button.ghost:hover {
  border-color: rgba(183, 65, 47, .28);
  background: rgba(183, 65, 47, .08);
}

.button.small {
  min-height: 34px;
  padding: 0 12px;
  font-size: .9rem;
}

.danger-button {
  border-color: var(--danger);
  background: linear-gradient(135deg, #8d2630, #b5333f);
  color: var(--accent-ink);
}

.danger-zone {
  display: grid;
  gap: 14px;
  max-width: 760px;
}

.danger-zone p {
  margin: 0;
  color: var(--muted);
}

.social-link {
  white-space: nowrap;
}

.link-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.button .link-icon {
  width: 17px;
  height: 17px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  gap: 1px;
  margin: 20px 0 30px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--border);
  box-shadow: var(--shadow-sm);
}

.metric {
  min-height: 104px;
  padding: 18px;
  border: 0;
  border-radius: 0;
  background: rgba(255, 252, 245, .84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
}

.metric strong {
  display: block;
  margin-top: 9px;
  font-family: JetBrains Mono, ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.42rem;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.gallery-grid,
.card-grid,
.supply-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 18px;
}

.gallery-grid {
  align-items: start;
}

.gallery-card,
.item-card,
.supply-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-grad), var(--card);
  box-shadow: var(--shadow-sm);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}

.gallery-card:hover,
.item-card:hover,
.supply-card:hover {
  transform: translateY(-3px);
  border-color: rgba(183, 65, 47, .28);
  box-shadow: var(--shadow-lg);
}

.gallery-card:nth-child(2n) {
  margin-top: 24px;
}

.gallery-card img,
.item-card img,
.image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background:
    linear-gradient(135deg, rgba(183, 65, 47, .14), rgba(238, 232, 220, .82));
}

.image-placeholder {
  display: grid;
  place-items: center;
  color: var(--accent-2);
  font-size: 1.8rem;
  font-weight: 900;
}

.gallery-card div,
.item-card div {
  padding: 16px;
}

.gallery-card strong,
.item-card h2,
.supply-card h2 {
  font-weight: 800;
}

.gallery-card span,
.item-card p {
  display: block;
  color: var(--muted);
}

.request-image-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-start;
}

.request-image-card {
  width: min(100%, 300px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-grad), var(--card);
  box-shadow: var(--shadow-sm);
}

.request-image-card a {
  display: block;
  line-height: 0;
  background: linear-gradient(135deg, rgba(183, 65, 47, .12), rgba(238, 232, 220, .72));
}

.request-image-card img {
  display: block;
  width: 100%;
  max-width: 300px;
  max-height: 300px;
  object-fit: contain;
}

.request-image-card div {
  padding: 12px;
}

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

.request-image-card span {
  color: var(--muted);
  font-size: .9rem;
}

.order-image-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
}

.order-image-grid.admin-order-images {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.order-image-card {
  width: min(100%, 200px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-grad), var(--card);
  box-shadow: var(--shadow-sm);
}

.order-image-card a {
  display: block;
  line-height: 0;
  background: linear-gradient(135deg, rgba(183, 65, 47, .12), rgba(238, 232, 220, .72));
}

.order-image-card img {
  display: block;
  width: 100%;
  max-width: 200px;
  max-height: 200px;
  object-fit: contain;
}

.order-image-card div {
  padding: 10px;
}

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

.order-image-card span {
  color: var(--muted);
  font-size: .82rem;
}

.supply-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 152px;
  padding: 16px;
}

.supply-card > .supply-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(183, 65, 47, .18);
  border-radius: var(--radius-lg);
  background: rgba(183, 65, 47, .08);
  color: var(--accent-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .62);
}

.supply-card > .supply-icon .link-icon {
  width: 28px;
  height: 28px;
}

.supply-card-body {
  display: grid;
  align-content: space-between;
  gap: 22px;
}

.supply-card h2 {
  margin: 0;
}

.map-page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 28px;
  align-items: end;
  margin-bottom: 22px;
}

.metrics.compact {
  margin: 0;
}

.map-shell {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #efe8dc;
  box-shadow: var(--shadow-lg);
}

#customer-map {
  width: 100%;
  height: min(74vh, 720px);
  min-height: 460px;
}

.map-error {
  display: grid;
  place-items: center;
  min-height: 460px;
  color: var(--text);
}

.map-toggle.leaflet-control,
.map-logo.leaflet-control {
  padding: 8px 10px;
  border: 1px solid rgba(25, 23, 19, .14);
  border-radius: var(--radius-md);
  background: rgba(255, 252, 245, .86);
  color: var(--text);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(75, 56, 37, .16), inset 0 1px 0 rgba(255, 255, 255, .76);
}

.map-toggle label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 10px;
  color: inherit;
}

.map-logo a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.map-logo img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

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

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 820;
}

label span {
  color: color-mix(in srgb, var(--muted) 92%, var(--text));
}

label.wide,
.wide,
.form-actions,
.check {
  grid-column: 1 / -1;
}

.check {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  color: var(--text);
  line-height: 1.35;
}

.honeypot-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 252, 245, .72);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--border-strong);
  background: rgba(255, 252, 245, .92);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(183, 65, 47, .42);
  box-shadow: 0 0 0 4px rgba(183, 65, 47, .12), inset 0 1px 0 rgba(255, 255, 255, .72);
  outline: none;
}

::placeholder {
  color: rgba(110, 106, 97, .66);
}

input[type="checkbox"],
input[type="radio"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 1px 0 0;
  padding: 0;
  accent-color: var(--accent);
}

input[type="file"] {
  padding: 9px;
}

textarea {
  min-height: 118px;
  resize: vertical;
}

.filters {
  margin: 16px 0 26px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 252, 245, .58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
}

.filters input,
.filters select {
  max-width: 260px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-grad), var(--card);
  box-shadow: var(--shadow-sm);
}

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

th,
td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 860;
  letter-spacing: .06em;
  text-transform: uppercase;
}

td {
  font-size: .96rem;
}

tbody tr,
tr {
  transition: background .18s var(--ease);
}

tr:hover td {
  background: rgba(183, 65, 47, .055);
}

.sort-link {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.sort-link:hover {
  color: var(--accent);
}

.supplies-public-table table {
  min-width: 760px;
}

.supplies-public-table th:first-child,
.supplies-public-table td:first-child {
  width: 72px;
  text-align: center;
}

.supply-icon-cell .link-icon {
  width: 24px;
  height: 24px;
  color: var(--accent-2);
}

.empty {
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 9px;
  border: 1px solid rgba(183, 65, 47, .22);
  border-radius: var(--radius-xs);
  background: rgba(183, 65, 47, .08);
  color: var(--text);
  font-size: .82rem;
  font-weight: 800;
}

.flash {
  margin-bottom: 20px;
  padding: 13px 15px;
  border: 1px solid color-mix(in srgb, var(--success) 28%, transparent);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--success) 10%, rgba(255, 252, 245, .9));
  box-shadow: var(--shadow-sm);
}

.flash.danger {
  border-color: color-mix(in srgb, var(--danger) 34%, transparent);
  background: color-mix(in srgb, var(--danger) 12%, rgba(255, 252, 245, .9));
}

.dev-code {
  display: inline-block;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--warning) 30%, transparent);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--warning) 13%, rgba(255, 252, 245, .9));
  font-family: JetBrains Mono, ui-monospace, monospace;
}

.details {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 10px 20px;
}

.details dt {
  color: var(--muted);
  font-weight: 800;
}

.details dd {
  margin: 0;
}

.admin-tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.admin-tool-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 252, 245, .62);
  color: var(--text);
  text-decoration: none;
  transition: transform .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}

.admin-tool-link:hover {
  transform: translateY(-1px);
  border-color: rgba(183, 65, 47, .24);
  background: rgba(255, 252, 245, .9);
}

.admin-tool-link > .link-icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  color: var(--accent-2);
}

.admin-tool-link span {
  display: grid;
  gap: 2px;
}

.admin-tool-link strong {
  font-size: .98rem;
}

.admin-tool-link small {
  color: var(--muted);
  line-height: 1.35;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.doc-grid section {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 252, 245, .58);
}

.doc-grid h3 {
  margin-bottom: 8px;
}

.doc-grid p {
  margin: 0;
  color: var(--muted);
}

.doc-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 22px;
}

.doc-list li {
  color: var(--muted);
}

.doc-list strong {
  color: var(--text);
}

.flow-selection {
  margin: 14px 0;
  padding: 10px 12px;
  border: 1px solid rgba(183, 65, 47, .22);
  border-radius: var(--radius-md);
  background: rgba(183, 65, 47, .08);
  color: var(--accent-2);
  font-weight: 800;
}

.flow-diagram-shell {
  overflow: auto;
  min-height: 520px;
  max-height: 76vh;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 252, 245, .7);
}

.flow-diagram-shell .mermaid {
  min-width: 1040px;
  margin: 0;
  color: var(--text);
}

.flow-diagram-shell svg {
  max-width: none;
}

.flow-diagram-shell svg g.node {
  cursor: pointer;
}

.flow-diagram-shell svg .flow-node-dimmed,
.flow-diagram-shell svg .flow-edge-dimmed {
  opacity: .22;
}

.flow-diagram-shell svg .flow-node-connected rect,
.flow-diagram-shell svg .flow-node-connected polygon,
.flow-diagram-shell svg .flow-node-connected path {
  stroke: var(--accent-2) !important;
  stroke-width: 2px !important;
}

.flow-diagram-shell svg .flow-node-selected rect,
.flow-diagram-shell svg .flow-node-selected polygon,
.flow-diagram-shell svg .flow-node-selected path {
  fill: rgba(183, 65, 47, .18) !important;
  stroke: var(--accent) !important;
  stroke-width: 3px !important;
}

.flow-diagram-shell svg .flow-edge-connected path {
  stroke: var(--accent) !important;
  stroke-width: 3px !important;
  opacity: 1 !important;
}

.timeline {
  display: grid;
  gap: 12px;
  padding-left: 20px;
}

.timeline li {
  padding-left: 4px;
}

.timeline span {
  display: block;
  color: var(--muted);
  font-family: JetBrains Mono, ui-monospace, monospace;
  font-size: .78rem;
}

.supply-admin-row,
.map-admin-row {
  display: grid;
  gap: 12px;
  align-items: end;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.supply-admin-row {
  grid-template-columns: minmax(180px, 1.1fr) minmax(260px, 2fr) 100px auto auto;
}

.supply-admin-summary {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 0 0 4px;
}

.supply-admin-summary > .supply-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(183, 65, 47, .18);
  border-radius: var(--radius-md);
  background: rgba(183, 65, 47, .08);
  color: var(--accent-2);
}

.supply-admin-summary .link-icon {
  width: 22px;
  height: 22px;
}

.supply-admin-summary span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.supply-admin-summary strong {
  color: var(--text);
  font-size: 1rem;
}

.supply-admin-summary small {
  color: var(--muted);
  font-family: JetBrains Mono, ui-monospace, monospace;
  font-size: .76rem;
}

.bulk-supplies-form {
  display: grid;
  gap: 14px;
}

.supply-table-wrap {
  max-height: 72vh;
}

.supply-edit-table {
  min-width: 1260px;
}

.supply-edit-table th:first-child {
  width: 260px;
}

.supply-edit-table th:nth-child(3) {
  width: 240px;
}

.supply-edit-table th:nth-child(5) {
  width: 96px;
}

.supply-edit-table th:nth-child(6),
.supply-edit-table th:nth-child(7) {
  width: 104px;
}

.supply-edit-table td {
  vertical-align: middle;
}

.supply-edit-table input,
.supply-edit-table select {
  min-height: 38px;
}

.supply-edit-table .sort-input {
  min-width: 76px;
}

.supply-icon-select {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.supply-icon-select > .link-icon {
  width: 22px;
  height: 22px;
  justify-self: center;
  color: var(--accent-2);
}

.supply-category-edit {
  display: grid;
  gap: 7px;
}

.supply-category-edit input::placeholder {
  color: color-mix(in srgb, var(--muted) 70%, transparent);
}

.table-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  white-space: nowrap;
}

.table-check input {
  margin: 0;
}

.remove-check {
  color: var(--danger);
}

.bulk-save-actions {
  justify-content: flex-end;
}

.icon-picker {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.icon-picker legend {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 820;
}

.icon-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
}

.icon-choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 7px 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 252, 245, .62);
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}

.icon-choice:hover {
  transform: translateY(-1px);
  border-color: rgba(183, 65, 47, .24);
  background: rgba(255, 252, 245, .9);
}

.icon-choice:has(input:checked) {
  border-color: rgba(183, 65, 47, .42);
  background: rgba(183, 65, 47, .1);
  box-shadow: inset 0 0 0 1px rgba(183, 65, 47, .14);
}

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

.icon-choice .supply-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(25, 23, 19, .06);
  color: var(--accent-2);
}

.icon-choice .link-icon {
  width: 18px;
  height: 18px;
}

.map-admin-row {
  grid-template-columns: minmax(130px, 1fr) 90px minmax(130px, 1fr) 90px 100px 100px auto;
}

.supply-admin-row:last-child,
.map-admin-row:last-child {
  border-bottom: 0;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}

.manual-entry-block h2 {
  margin-bottom: 12px;
}

.segmented {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 252, 245, .64);
}

.segmented label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
}

.segmented label:has(input:checked) {
  background: rgba(183, 65, 47, .1);
  box-shadow: inset 0 0 0 1px rgba(183, 65, 47, .22);
}

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

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

.toggle-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 252, 245, .6);
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}

.toggle-row:hover {
  transform: translateY(-1px);
  border-color: rgba(183, 65, 47, .26);
  background: rgba(255, 252, 245, .86);
}

.toggle-row span {
  display: grid;
  gap: 2px;
}

.toggle-row strong {
  color: var(--text);
  font-size: .98rem;
}

.toggle-row small {
  color: var(--muted);
  font-family: JetBrains Mono, ui-monospace, monospace;
  font-size: .78rem;
}

.nav-order-row {
  display: grid;
  grid-template-columns: minmax(118px, auto) minmax(0, 1fr) minmax(96px, 126px);
  align-items: center;
  cursor: default;
}

.nav-order-row .check {
  grid-column: auto;
  margin: 0;
}

.nav-sort-field {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
}

.nav-sort-field input {
  min-height: 36px;
  padding: 6px 8px;
}

.custom-nav-list {
  margin-top: 12px;
}

.custom-nav-row {
  grid-template-columns: minmax(86px, .55fr) minmax(150px, 1fr) minmax(220px, 1.5fr) minmax(86px, .45fr) minmax(92px, .5fr);
}

.custom-nav-row label:not(.check):not(.nav-sort-field) {
  display: grid;
  gap: 4px;
}

.custom-nav-row label span,
.custom-nav-row .form-note {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
}

.nav-lock-note {
  align-self: center;
  justify-self: start;
  font-family: Outfit, ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}

[hidden] {
  display: none !important;
}

#page-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity .22s var(--ease), visibility .22s var(--ease);
}

body.ready #page-loader {
  opacity: 0;
  visibility: hidden;
}

.skeleton-bar {
  width: min(520px, 80vw);
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(25, 23, 19, .07), rgba(25, 23, 19, .16), rgba(25, 23, 19, .07));
  background-size: 200% 100%;
  animation: shimmer 1.1s infinite;
}

.skeleton-grid {
  position: fixed;
  bottom: 24%;
  display: flex;
  gap: 12px;
}

.skeleton-grid span {
  width: 90px;
  height: 70px;
  border-radius: var(--radius-md);
  background: rgba(25, 23, 19, .1);
  opacity: .65;
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

.motion-ok .panel,
.motion-ok .metric,
.motion-ok .gallery-card,
.motion-ok .item-card,
.motion-ok .supply-card,
.motion-ok .table-wrap {
  opacity: 0;
  transform: translateY(10px);
}

.motion-ok .is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .42s var(--ease), transform .42s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}

@media (min-width: 900px) {
  h1 { font-size: 3.15rem; }
  .hero h1 { font-size: 4.5rem; }
  .home-hero-card h1 { font-size: 5.2rem; }
  .lead { font-size: 1.15rem; }
  .card-grid { grid-template-columns: repeat(auto-fit, minmax(285px, 1fr)); }
  .supply-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    z-index: 30;
    top: 68px;
    left: 18px;
    right: 18px;
    justify-self: stretch;
    padding: 8px;
    border-radius: var(--radius-lg);
    background: rgba(9, 11, 22, .98);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255,255,255,.08);
  }

  .site-nav.open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-stage {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .home-hero-card {
    min-height: auto;
  }
}

@media (max-width: 780px) {
  .container,
  .container.wide {
    width: min(100% - 28px, var(--container));
    padding: 32px 0 58px;
  }

  h1 { font-size: 2.35rem; }

  .hero,
  .split,
  .form-grid,
  .faq-admin-form,
  .manual-customer-grid,
  .supply-admin-row,
  .map-page-head,
  .map-admin-row {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 28px 0 52px;
    gap: 32px;
  }

  .home-page {
    width: min(100% - 16px, 1440px);
    padding: 16px 0 44px;
  }

  .home-stage {
    padding: 12px;
    gap: 12px;
  }

  .home-hero-card,
  .home-pricing-card,
  .home-account-card {
    padding: 24px;
  }

  .home-hero-card h1 {
    font-size: 2.75rem;
    line-height: 1;
  }

  .home-hero-mark {
    width: 84px;
    margin-bottom: 18px;
  }

  .home-hero-card p,
  .home-pricing-card p,
  .home-account-card ol {
    font-size: 1rem;
  }

  .home-pricing-card h2,
  .home-account-card h2 {
    font-size: 1.55rem;
  }

  .home-stage .actions {
    align-items: stretch;
  }

  .home-stage .button {
    width: 100%;
  }

  .hero::before {
    top: 8px;
    width: min(320px, 82vw);
    height: 1px;
  }

  .site-nav.open {
    grid-template-columns: 1fr;
  }

  .filters {
    display: grid;
  }

  .filters input,
  .filters select,
  .filters .button {
    max-width: none;
    width: 100%;
  }

  .details {
    grid-template-columns: 1fr;
  }

  .nav-order-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .nav-sort-field {
    max-width: 160px;
  }

  .gallery-card:nth-child(2n) {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .motion-ok .panel,
  .motion-ok .metric,
  .motion-ok .gallery-card,
  .motion-ok .item-card,
  .motion-ok .supply-card,
  .motion-ok .table-wrap {
    opacity: 1;
    transform: none;
  }
}
