:root {
  --bg: #f1f5f1;
  --card: #fff;
  --ink: #132e28;
  --muted: #4e645e;
  --line: #d4e0d8;
  --soft: #eef5ef;
  --brand: #07594c;
  --brand-2: #073e35;
  --brand-soft: #e0f0e5;
  --accent: #ffd752;
  --accent-hover: #ffe27d;
  --on-brand-muted: #d5e9e1;
  --ok: #166534;
  --ok-soft: #e9f3ea;
  --warn: #934909;
  --warn-soft: #fcf0e2;
  --bad: #a42626;
  --bad-soft: #fbecec;
  --r: 4px;
  --shadow: none;
  --sans: Inter, system-ui, sans-serif;
  --display: var(--sans);
  --glass-radius: 14px;
  --glass-light: linear-gradient(145deg, #ffffffed, #edf7f2ed);
  --glass-light-shadow: inset 0 1px 0 #fff, 0 10px 26px #073e3510;
  --glass-edge: #e5f6ee52;
  --glass-dark-shadow: inset 0 1px 0 #ffffff26, 0 16px 38px #001e1a30;
  --glass-action: linear-gradient(175deg, #ffe1b8, #f6a35d 69%, #f5954d);
  --glass-action-hover: linear-gradient(175deg, #fff0d4, #ffb672 69%, #faa15b);
  --glass-action-border: #e99659;
}

body { background: var(--bg); color: var(--ink); }
button, input, select, textarea { color: var(--ink); }
:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.kpis .kpi, .card.balance-card {
  background: var(--glass-light);
  border-radius: var(--glass-radius);
  box-shadow: var(--glass-light-shadow);
}

body:has(> .site-footer) {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body:has(> .site-footer) > main {
  width: 100%;
  margin-block: 0;
  flex: 1 0 auto;
}
.site-footer {
  --footer-width: 1208px;
  width: min(calc(100% - 32px), var(--footer-width));
  margin: 0 auto 16px;
  padding: 18px clamp(16px, 3vw, 28px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  color: #e6f1e9;
  background: linear-gradient(145deg, #215f50, #123c33 78%);
  border: 1px solid #5f8a7b;
  border-radius: 22px;
  box-shadow: var(--glass-dark-shadow);
  font: 500 13px/1.5 var(--sans);
}
.site-footer--admin { --footer-width: 1068px; }
.site-footer--payment { --footer-width: 448px; }
.site-footer p { margin: 0; }
.site-footer strong { color: #fff; }
.site-footer a {
  color: #ffe0b9;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-footer a:hover { color: #fff; }
.site-footer a:focus-visible { outline-color: #ffe0b9; }

@media (max-width: 760px) {
  .shop-workspace #app { padding-bottom: 24px; }
  .shop-workspace .site-footer { margin-bottom: calc(82px + env(safe-area-inset-bottom)); }
}
