:root {
  --ink: #10241c;
  --ink-2: #1a3328;
  --paper: #f3efe6;
  --card: #fffdf8;
  --line: #e4dccb;
  --text: #1c2420;
  --muted: #6c675d;
  --moss: #1b6b45;
  --moss-dark: #124c31;
  --moss-soft: #e7f3ec;
  --gold: #e4b15a;
  --gold-deep: #8a5a12;
  --red: #9f2d24;
  --red-soft: #fdeceb;
  --amber-soft: #fff4dc;
  --shadow: 0 12px 32px rgba(36, 32, 21, 0.06);
  --sidebar: 252px;
  --font: Manrope, "Segoe UI", sans-serif;
  --display: Fraunces, "Palatino Linotype", Palatino, Georgia, serif;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(228, 177, 90, 0.28), transparent 60%),
    var(--paper);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  min-height: 100dvh;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--moss-dark); }
h1, h2, h3, p { margin: 0; }
.icon { width: 18px; height: 18px; flex: 0 0 auto; }

.shell { min-height: 100dvh; }
.sidebar {
  display: none;
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  background: var(--ink);
  color: #e7f2eb;
  flex-direction: column;
  z-index: 30;
  padding: 18px 0 12px;
}
.side-scroll { overflow: auto; flex: 1; padding-bottom: 8px; }
.brand, .brand-mini {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 0 16px 14px;
}
.brand strong, .side-user strong { display: block; font-size: 14px; letter-spacing: -0.02em; }
.brand small, .side-user small { display: block; color: #9db5a8; font-size: 12px; }
.brand.dark { color: var(--ink); padding: 0; }
.brand.dark small { color: var(--muted); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--gold); color: var(--ink);
  font-family: var(--display); font-weight: 680; font-size: 20px;
}
.brand-mark.sm { width: 34px; height: 34px; font-size: 18px; }
.nav-label {
  margin: 16px 18px 6px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8eaa9c;
  font-weight: 700;
}
.nav-label.dark { color: var(--muted); margin-left: 4px; }
.nav-group { margin-top: 4px; }
.nav-group summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 10px 2px;
  padding: 8px 12px;
  border-radius: 12px;
  color: #8eaa9c;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary::marker { content: ""; }
.nav-group summary:hover { background: rgba(255,255,255,.05); color: #d7e8de; }
.nav-group.has-active > summary { color: white; }
.nav-chevron {
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform .15s ease;
}
.nav-group[open] > summary .nav-chevron { transform: rotate(45deg); }
.nav-group summary .alert-dot { margin-left: auto; }
.nav-group summary .alert-dot + .nav-chevron { margin-left: 8px; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 10px;
  padding: 9px 12px;
  border-radius: 12px;
  color: #d7e8de;
  text-decoration: none;
  font-weight: 650;
  font-size: 14px;
}
.nav-link.active { background: rgba(255,255,255,.08); color: white; box-shadow: inset 3px 0 0 var(--gold); }
.alert-dot {
  width: 8px; height: 8px; border-radius: 99px; background: var(--gold);
  margin-left: auto; display: block;
}
.side-user {
  margin-top: auto;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.side-user span:nth-child(2) { flex: 1; min-width: 0; }
.side-user strong, .side-user small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main { min-height: 100dvh; }
.topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  position: sticky;
  top: 0;
  z-index: 15;
  background: rgba(243, 239, 230, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(228, 220, 203, 0.7);
}
.topbar-title { flex: 1; font-size: 15px; }
.page { padding: 16px 14px 118px; max-width: 1180px; }
.page-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-end;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.page-title {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-top: 2px;
}
.page-sub, .muted { color: var(--muted); }
.page-sub { margin-top: 6px; max-width: 62ch; }
.kicker {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--gold-deep);
}
.actions, .cluster { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.spread { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.stack { display: grid; gap: 10px; }
.right { margin-left: auto; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.company-desk {
  width: min(980px, calc(100% - 28px));
  margin: 28px auto 56px;
}
.company-desk .card { padding: 18px; }
.company-desk h2 { margin: 0 0 6px; font-size: 1.2rem; }
.company-desk td.actions form { margin: 0; }
.conn-steps { display: grid; gap: 8px; margin: 0 0 16px; }
.conn-steps p { margin: 0; padding: 10px 12px; border-radius: 12px; font-weight: 650; }
.conn-steps .ok { background: var(--moss-soft); color: var(--moss-dark); }
.conn-steps .warn { background: #f4e7c8; color: #6a4b12; }
.conn-steps .fail { background: var(--red-soft); color: var(--red); }
.card-pad { padding: 16px; }
.card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 10px;
}
.card-head h2 { font-size: 16px; letter-spacing: -0.02em; }

.stat-grid, .quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px 14px 16px;
  box-shadow: var(--shadow);
  min-height: 112px;
}
.stat-k { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.stat-v {
  font-family: var(--display);
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  letter-spacing: -0.03em;
  margin-top: 8px;
  line-height: 1;
}
.stat-s { margin-top: 8px; color: var(--muted); font-size: 13px; }
.split-2, .split-main { display: grid; gap: 12px; }
.quick {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 92px;
  padding: 14px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.quick strong { font-size: 14px; }
.quick span { color: var(--muted); font-size: 12px; }
.chart-box { height: 250px; }

.btn, .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  font-weight: 750;
  font-size: 14px;
  padding: 0 14px;
  background: transparent;
  color: var(--text);
}
.btn-sm { min-height: 36px; padding: 0 10px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--moss); color: white; }
.btn-primary:hover { background: var(--moss-dark); }
.btn-secondary { background: white; border-color: var(--line); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--moss-dark); }
.btn-danger { background: var(--red-soft); color: var(--red); }
.btn-gold { background: var(--gold); color: #241804; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.icon-btn { width: 44px; padding: 0; border-color: var(--line); background: white; }
.icon-btn.light { background: transparent; border-color: rgba(255,255,255,.16); color: white; }

.field { margin-bottom: 12px; }
.label { display: block; font-size: 13px; font-weight: 750; margin-bottom: 6px; }
.input, .select, .textarea {
  width: 100%;
  border: 1px solid #e3dac8;
  background: white;
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 16px;
  outline: none;
}
.textarea { min-height: 96px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--moss); box-shadow: 0 0 0 4px rgba(27, 107, 69, 0.12); }
.checkline { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 8px 0; }
.checkline input { margin-top: 3px; width: 18px; height: 18px; }
.form-grid, .choice-grid { display: grid; gap: 10px; }
.choice {
  display: block;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: white;
  cursor: pointer;
}
.choice input { margin-right: 8px; }
.choice small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.choice:has(input:checked) { border-color: var(--moss); background: var(--moss-soft); }
.choice:has(input:disabled) { cursor: default; }
.section-title { font-family: var(--display); font-size: 22px; margin: 0 0 12px; }
.priv-block h2 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 16px 0 8px; font-weight: 750; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin-bottom: 12px; }
.filters .field { flex: 1 1 150px; margin: 0; }
.filters .field.full { flex: 1 1 100%; }
.combo { position: relative; }
.combo:focus-within { z-index: 12; }
.combo-list {
  position: absolute;
  z-index: 8;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  max-height: 260px;
  overflow: auto;
  box-shadow: var(--shadow);
}
.combo-list button {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 10px 12px;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.combo-list button:hover, .combo-list button.active { background: var(--moss-soft); }
.receipt-slip { max-width: 440px; margin: 0 auto; text-align: center; padding: 28px 22px; }
.receipt-amount {
  font-family: var(--display);
  font-size: 42px;
  letter-spacing: -0.03em;
  margin: 8px 0 4px;
}

.table-wrap { overflow-x: auto; }
.pager { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px; }
.log-list { display: grid; gap: 8px; margin-top: 8px; }
.log-list article { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.log-list article:last-child { border-bottom: 0; padding-bottom: 0; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th {
  text-align: left;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 12px 10px;
  border-bottom: 1px solid var(--line);
}
table.data td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data th.num { text-align: right; }

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 800;
  background: #f3efe6;
  color: var(--text);
}
.stock-mark { width: 10px; height: 10px; border-radius: 99px; display: inline-block; vertical-align: middle; }
.stock-mark.low { background: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.stock-mark.ok { background: #1b6b45; box-shadow: 0 0 0 3px #e7f3ec; }
.qty-low { color: var(--red); font-weight: 800; }
.qty-ok { color: #124c31; font-weight: 750; }
.stock-set { display: flex; justify-content: flex-end; gap: 6px; align-items: center; }
.stock-set .input { width: 92px; padding: 6px 8px; }
.badge-green { background: var(--moss-soft); color: var(--moss-dark); }
.badge-amber { background: var(--amber-soft); color: #7a4e0d; }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-ink { background: var(--ink); color: white; }

.flash, .banner {
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-weight: 650;
}
.flash-ok { background: var(--moss-soft); color: var(--moss-dark); }
.flash-err { background: var(--red-soft); color: var(--red); }
.banner {
  background: #10241c;
  color: #f6f1e6;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.banner p { margin: 0; font-weight: 600; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.chip {
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  color: var(--text);
  text-decoration: none;
  padding: 8px 12px;
  font-weight: 750;
  font-size: 13px;
}
.chip.active, .chip[aria-current="page"] { background: var(--ink); color: white; border-color: var(--ink); }
.empty { padding: 28px 8px; text-align: center; color: var(--muted); }
.mono, .thumb {
  width: 42px; height: 42px; border-radius: 14px;
  display: grid; place-items: center; color: white;
  font-family: var(--display); font-size: 20px; flex: 0 0 auto;
}
.mono.sm { width: 36px; height: 36px; border-radius: 12px; font-size: 16px; background: #1f7a4d; }
.thumb { object-fit: cover; }
.progress { height: 8px; background: #efe8d8; border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--moss); }
.good-text { color: var(--moss-dark); font-weight: 750; }
.danger-text { color: var(--red); font-weight: 750; }
.was { color: var(--muted); text-decoration: line-through; font-size: 12px; margin-right: 4px; }
.row-link { display: flex; gap: 10px; align-items: center; text-decoration: none; color: inherit; padding: 10px 0; border-bottom: 1px solid var(--line); }
.row-link:last-child { border-bottom: 0; }

.bottom-nav {
  position: fixed;
  left: 10px; right: 10px;
  bottom: calc(8px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  background: var(--ink);
  color: #e7f2eb;
  border-radius: 22px;
  padding: 6px;
  z-index: 25;
  box-shadow: 0 14px 40px rgba(16, 36, 28, 0.28);
}
.bn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: inherit;
  text-decoration: none;
  font-size: 10px;
  font-weight: 800;
  padding: 8px 0;
  border-radius: 16px;
  cursor: pointer;
}
.bn-item.active { background: rgba(255,255,255,.1); color: white; }
.more-toggle { position: absolute; opacity: 0; pointer-events: none; }
.sheet-back {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(16, 24, 20, 0.5);
  align-items: flex-end;
}
.more-toggle:checked ~ .sheet-back { display: flex; }
.sheet-dismiss { position: absolute; inset: 0; }
.sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: min(86dvh, 720px);
  overflow: auto;
  background: var(--card);
  border-radius: 24px 24px 0 0;
  padding: 8px 14px 28px;
}
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 4px; }
.menu-group { margin-bottom: 18px; }
.menu-group h2 {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
  font-weight: 750;
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 10px;
}
.menu-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 8px 12px;
  min-height: 112px;
  box-shadow: var(--shadow);
}
.menu-tile strong { font-size: 13px; font-weight: 750; line-height: 1.25; }
.menu-tile small { color: var(--muted); font-size: 11px; font-weight: 650; line-height: 1.3; }
.menu-tile:hover { border-color: var(--moss); }
.menu-ico {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--moss-soft);
  color: var(--moss-dark);
}
.menu-ico .icon { width: 24px; height: 24px; }
.menu-ico .alert-dot { position: absolute; top: -2px; right: -2px; margin-left: 0; }
.menu-group.tone-stock .menu-ico { background: var(--amber-soft); color: var(--gold-deep); }
.menu-group.tone-accounts .menu-ico { background: #e7eef6; color: #1d4e89; }
.menu-group.tone-shop .menu-ico { background: #f3eaf6; color: #6b4c7a; }
.menu-group.tone-reports .menu-ico { background: #efe7da; color: #5c3b12; }
.sheet-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sheet-links a {
  display: flex; gap: 8px; align-items: center;
  text-decoration: none; color: var(--text);
  background: #f7f3ea; border-radius: 14px; padding: 12px;
  font-weight: 750; font-size: 14px; min-height: 48px;
}

.guest-body { display: grid; min-height: 100dvh; }
.login-wrap {
  display: grid;
  min-height: 100dvh;
}
.login-hero {
  background: var(--ink);
  color: #f4efe4;
  padding: 28px 22px 32px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  min-height: 46vh;
}
.login-bg { position: absolute; inset: 0; pointer-events: none; }
.login-bg span {
  position: absolute;
  border-radius: 50%;
  animation: login-float 16s ease-in-out infinite;
}
.login-bg span:nth-child(1) {
  width: 240px; height: 240px;
  background: var(--gold);
  right: -80px; bottom: -90px;
}
.login-bg span:nth-child(2) {
  width: 180px; height: 180px;
  background: var(--moss);
  opacity: 0.45;
  left: -50px; top: 12%;
  animation-duration: 20s;
  animation-direction: reverse;
}
.login-bg span:nth-child(3) {
  width: 110px; height: 110px;
  background: #fff;
  opacity: 0.12;
  right: 22%; top: 8%;
  animation-duration: 12s;
}
@keyframes login-float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-22px, 26px, 0) scale(1.08); }
}
.login-app, .login-shop { position: relative; z-index: 1; }
.login-app > strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 560;
  letter-spacing: -0.04em;
  line-height: 1;
}
.login-hero .kicker { color: var(--gold); }
.login-hero h1 {
  font-family: var(--display);
  font-weight: 560;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
  max-width: 8ch;
  position: relative;
  z-index: 1;
  margin: 18px 0 12px;
}
.login-hero p { position: relative; z-index: 1; max-width: 36ch; color: #d5e4da; }
.app-credit { margin-top: 6px; font-size: 1rem; }
.app-credit strong { display: inline; font-family: inherit; font-size: inherit; letter-spacing: 0; color: #f4efe4; font-weight: 800; }
.login-panel {
  padding: 22px 18px 40px;
  background:
    radial-gradient(480px 240px at 100% -10%, rgba(228, 177, 90, 0.28), transparent 62%),
    var(--paper);
  background-size: 160% 160%;
  animation: login-wash 18s ease-in-out infinite;
}
@keyframes login-wash {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 80% 30%; }
}
.demo-list { display: grid; gap: 8px; margin-top: 14px; }
.demo-list div {
  display: flex; justify-content: space-between; gap: 8px;
  background: white; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
  font-size: 13px;
}

.hero {
  background: var(--ink);
  color: #f6f1e6;
  border-radius: 28px;
  padding: 28px 22px 32px;
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}
.hero::after {
  content: "";
  position: absolute;
  width: 180px; height: 180px; border-radius: 50%;
  background: var(--gold); right: -40px; bottom: -60px;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 560;
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 0.98;
  max-width: 12ch;
  position: relative;
  z-index: 1;
  margin: 8px 0;
}
.hero p { position: relative; z-index: 1; max-width: 38ch; color: #d7e6dc; }
.store-body { background: var(--paper); }
.store-top, .store-foot {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  padding: 16px;
  flex-wrap: wrap;
}
.store-nav { display: flex; gap: 14px; align-items: center; font-weight: 750; }
.store-nav a { text-decoration: none; }
.store-main { padding: 0 14px 40px; max-width: 1100px; margin: 0 auto; }
.store-foot { color: var(--muted); border-top: 1px solid var(--line); max-width: 1100px; margin: 0 auto; }
.catalog-grid, .pos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.catalog-card, .pos-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 168px;
  color: inherit;
  text-align: left;
}
.pos-card { cursor: pointer; font: inherit; width: 100%; }
.pos-card:active { transform: scale(.985); }
.catalog-card .price, .pos-card .price { font-family: var(--display); font-size: 1.25rem; margin-top: auto; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

html:has(body.pos-body) { height: 100%; overflow: hidden; }
.pos-body { background: var(--paper); height: 100%; overflow: hidden; }
.pos-app {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.pos-top, .pos-cats { padding: 10px 12px; background: rgba(255,253,248,.94); }
.pos-top { display: flex; gap: 8px; align-items: center; border-bottom: 1px solid var(--line); }
.pos-search { flex: 1; position: relative; }
.pos-search .input { padding-left: 38px; }
.pos-search .icon { position: absolute; left: 12px; top: 13px; color: var(--muted); }
.pos-cats { display: flex; gap: 8px; align-items: center; }
.pos-cats-scroll { display: flex; gap: 8px; overflow-x: auto; flex: 1; min-width: 0; }
.pos-view button { display: grid; place-items: center; width: 42px; padding: 0; }
.pos-order { padding: 0 14px 4px; margin: 0; }
.pos-grid.is-list { grid-template-columns: 1fr; }
.pos-grid.is-list .pos-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name price" "meta price";
  align-items: center;
  min-height: 0;
  gap: 2px 12px;
  padding: 10px 12px;
}
.pos-grid.is-list .pos-card strong { grid-area: name; }
.pos-grid.is-list .pos-card .spread { grid-area: meta; justify-content: flex-start; flex-wrap: wrap; }
.pos-grid.is-list .pos-card .price {
  grid-area: price;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  white-space: nowrap;
}
.pos-grid-wrap { flex: 1; min-height: 0; overflow: auto; padding: 12px 12px 104px; }
.pos-cart {
  display: none;
  flex-direction: column;
  background: white;
  min-height: 0;
}
.pos-cart.open {
  display: flex;
  position: fixed;
  z-index: 35;
  left: 0; right: 0; bottom: 0;
  height: min(88dvh, 760px);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -16px 50px rgba(16,36,28,.2);
}
.pos-cart-head, .pos-totals, .pos-pay { padding: 12px 14px; }
.pos-head-actions { display: flex; gap: 8px; align-items: center; }
.pos-hint { margin: 0 14px 4px; color: var(--muted); font-size: 12px; }
.line-price { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.line-price span { color: var(--muted); font-size: 12px; font-weight: 750; }
.line-price .input { width: 108px; padding: 6px 8px; }
.discount-row { display: flex; gap: 8px; align-items: stretch; }
.discount-row .input { flex: 1; min-width: 0; }
.seg { display: flex; border: 1px solid #e3dac8; border-radius: 12px; overflow: hidden; flex: 0 0 auto; }
.seg button {
  border: 0;
  background: white;
  color: var(--text);
  min-width: 52px;
  padding: 0 12px;
  font-weight: 800;
}
.seg button.active { background: var(--ink); color: white; }
.pos-lines { flex: 1; min-height: 0; overflow: auto; padding: 0 14px; }
.pos-line { display: grid; grid-template-columns: 1fr 92px auto; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pos-dock {
  position: fixed;
  left: 10px; right: 10px;
  bottom: calc(8px + env(safe-area-inset-bottom));
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--ink);
  color: white;
  border: 0;
  border-radius: 18px;
  min-height: 58px;
  padding: 8px 14px;
  font-weight: 800;
}
.backdrop { position: fixed; inset: 0; background: rgba(16,24,20,.45); z-index: 34; }
.modal-back {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(16,24,20,.5);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 10px;
}
.modal {
  background: var(--card);
  width: min(560px, 100%);
  max-height: min(92dvh, 820px);
  overflow: auto;
  border-radius: 24px;
  padding: 16px;
}
.modal.wide { width: min(760px, 100%); }
.sale-pick {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 4px;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.sale-pick:hover { background: var(--moss-soft); }
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.toast { color: var(--red); font-weight: 700; min-height: 1.2em; }

.kiosk {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 14px;
}
.kiosk-result {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: auto;
}
.kiosk-result.is-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  text-align: left;
}
.kiosk-list { display: grid; gap: 8px; width: 100%; }
.kiosk-hit {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  cursor: pointer;
}
.kiosk-hit strong, .kiosk-hit .muted { display: block; }
.kiosk-hit .price { font-family: var(--display); font-size: 1.25rem; white-space: nowrap; }
.kiosk-product { display: grid; justify-items: center; gap: 6px; width: min(520px, 100%); }
.kiosk-thumb {
  width: 112px; height: 112px; border-radius: 24px; object-fit: cover;
  background: var(--card); border: 1px solid var(--line);
}
.kiosk-thumb.letter { display: grid; place-items: center; color: white; background: var(--moss); font-family: var(--display); font-size: 42px; }
.kiosk-thumb.sm { width: 52px; height: 52px; border-radius: 14px; font-size: 22px; flex: 0 0 auto; }
.kiosk-sales {
  width: 100%;
  margin-top: 8px;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
}
.kiosk-sales-sum { font-weight: 750; margin-bottom: 8px; }
.kiosk-price {
  font-family: var(--display);
  font-size: clamp(3rem, 10vw, 6rem);
  letter-spacing: -0.04em;
  line-height: .9;
}

.invoice-doc {
  background: white;
  color: #161616;
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 32px 36px;
  border: 1px solid #ececec;
  box-shadow: var(--shadow);
}
.invoice-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.invoice-head.align-left { align-items: flex-start; text-align: left; }
.invoice-head.align-center { align-items: center; text-align: center; }
.invoice-head.align-right { align-items: flex-end; text-align: right; }
.invoice-logo { display: block; max-height: 78px; max-width: 200px; width: auto; object-fit: contain; }
.invoice-doc.no-logo .invoice-logo { display: none !important; }
.invoice-doc.no-logo .invoice-head { align-items: flex-start; text-align: left; }
.invoice-title {
  font-family: var(--font);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
}
.invoice-meta { margin: 0; color: #555; font-size: 13px; }
.logo-preview { display: block; max-height: 72px; max-width: 180px; margin-top: 8px; object-fit: contain; }
.invoice-parties { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 28px; }
.invoice-parties h3 { margin: 0 0 8px; font-size: 14px; font-weight: 800; }
.invoice-parties p { margin: 0; font-size: 14px; line-height: 1.45; }
.invoice-rule { border: 0; border-top: 1px solid #222; margin: 18px 0 16px; }
.invoice-section { margin: 0 0 10px; font-size: 16px; font-weight: 800; }
.invoice-table { width: 100%; border-collapse: collapse; font-size: 14px; table-layout: fixed; }
.invoice-table col.qty { width: 3.6rem; }
.invoice-table col.unit { width: 7.6rem; }
.invoice-table col.price { width: 9.2rem; }
.invoice-table th {
  text-align: left;
  font-weight: 650;
  padding: 8px 8px 8px 0;
  border-bottom: 1px solid #d9d9d9;
}
.invoice-table td { padding: 10px 8px 10px 0; border-bottom: 1px solid #ececec; vertical-align: top; }
.invoice-code { display: block; margin-top: 2px; color: #666; font-size: 12px; font-weight: 650; letter-spacing: 0.01em; }
.invoice-table th.qty, .invoice-table td.qty { width: 4.2rem; text-align: right; padding-right: 16px; font-variant-numeric: tabular-nums; }
.invoice-table th.unit, .invoice-table td.unit { width: 7.6rem; text-align: right; padding-right: 14px; font-variant-numeric: tabular-nums; }
.invoice-table th.num, .invoice-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.invoice-table th.num:not(.unit), .invoice-table td.num:not(.unit) { width: 9.2rem; padding-right: 0; }
.invoice-sum { display: flex; justify-content: flex-end; }
.invoice-totals {
  width: auto;
  margin-top: 2px;
  border-collapse: collapse;
  font-size: 14px;
}
.invoice-totals th, .invoice-totals td {
  padding: 7px 0;
  text-align: right;
  font-weight: 650;
  border-bottom: 1px solid #ececec;
  color: #3a3a3a;
}
.invoice-totals td { width: 9.2rem; padding-left: 18px; font-variant-numeric: tabular-nums; }
.invoice-totals tr.invoice-total th,
.invoice-totals tr.invoice-total td { color: #111; font-weight: 800; border-bottom: 1px solid #d0d0d0; }
.invoice-note { margin: 18px 0 0; font-size: 14px; }
.tax-sheet { max-width: 1100px; color: #1a1a1a; font-size: 12px; }
.invoice-doc.zoo-sheet { max-width: none; width: 100%; padding: 16px 18px 14px; font-size: 13px; color: #111; }
.zoo-head { display: block; margin-bottom: 10px; }
.zoo-tax { margin: 0; color: #d01212; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.zoo-tax-line { border: 0; border-top: 2px solid #d01212; margin: 5px 0 8px; }
.zoo-brand { display: flex; align-items: center; gap: 12px; }
.zoo-logo { margin: 0; max-height: 46px; }
.zoo-meta { margin: 0; color: #6b7280; font-size: 12px; }
.zoo-parties { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px 22px; }
.zoo-parties h3 { margin: 0 0 2px; font-size: 12px; font-weight: 800; }
.zoo-parties strong, .zoo-parties span { display: block; font-weight: 500; line-height: 1.28; font-size: 12.5px; }
.zoo-parties strong { font-weight: 700; }
.zoo-rule { border: 0; border-top: 1px solid #e4e4e4; margin: 10px 0 8px; }
.zoo-order { margin: 0 0 2px; font-size: 14px; font-weight: 800; }
.zoo-lines { width: 100%; border-collapse: collapse; }
.zoo-lines th { text-align: left; font-size: 12px; font-weight: 700; color: #6b7280; padding: 3px 6px 5px; border-bottom: 1px solid #e6e6e6; }
.zoo-lines td { padding: 4px 6px; border-bottom: 1px solid #f1f1f1; vertical-align: top; }
.zoo-lines .sn { width: 36px; color: #6b7280; }
.zoo-lines .qty { width: 52px; text-align: right; font-variant-numeric: tabular-nums; }
.zoo-lines .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.zoo-name { display: block; }
.zoo-code { display: block; margin: 0; color: #8b919a; font-size: 11px; line-height: 1.25; }
.zoo-totals { margin: 8px 0 0 auto; border-collapse: collapse; min-width: 240px; }
.zoo-totals th { text-align: right; font-weight: 500; color: #374151; padding: 2px 16px 2px 0; }
.zoo-totals td { text-align: right; padding: 2px 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.zoo-totals tr.zoo-grand th, .zoo-totals tr.zoo-grand td { font-weight: 800; color: #111; padding-top: 5px; }
.zoo-words { margin: 3px 0 0; text-align: right; color: #6b7280; font-size: 11px; }
.zoo-extra { margin-top: 10px; color: #4b5563; font-size: 12px; }
.zoo-extra p { margin: 0 0 2px; }
.zoo-extra .sheet-bank { margin-top: 6px; }
.zoo-sheet .sheet-terms { margin: 8px 0 0; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.sheet-logo { min-width: 88px; }
.sheet-co, .sheet-bill { margin-left: auto; text-align: right; line-height: 1.45; }
.sheet-co strong, .sheet-co span, .sheet-bill strong, .sheet-bill span { display: block; }
.sheet-co strong { font-size: 14px; }
.sheet-bill { max-width: 280px; margin-top: 22px; margin-bottom: 18px; }
.sheet-kicker { margin: 0; color: #8f1d1d; font-size: 26px; font-weight: 800; letter-spacing: 0.08em; }
.uae-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-bottom: 10px; border-bottom: 2px solid #8f1d1d; }
.uae-ar { margin: 2px 0 0; color: #8f1d1d; font-size: 16px; font-weight: 700; font-family: "Segoe UI", Tahoma, "Noto Naskh Arabic", sans-serif; }
.uae-law { margin: 0; color: #666; font-size: 11px; text-align: right; }
.uae-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0 16px; }
.uae-label { display: block; margin-bottom: 6px; color: #8f1d1d; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; }
.uae-en { text-transform: uppercase; }
.uae-bidi { font-family: "Segoe UI", Tahoma, "Noto Naskh Arabic", sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 0; }
.uae-party { min-height: 108px; padding: 10px 12px; border: 1px solid #e4d6d6; background: #fff; line-height: 1.45; }
.uae-party strong, .uae-party span { display: block; }
.uae-party .invoice-logo { margin-bottom: 8px; }
.uae-trn { margin-top: 6px; font-weight: 800; }
.sheet-title { margin: 0 0 14px; color: #8f1d1d; font-size: 22px; font-weight: 800; letter-spacing: 0.01em; }
.sheet-meta { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; margin-bottom: 14px; border: 1px solid #e6e6e6; }
.sheet-meta > div { padding: 8px 10px; border-right: 1px solid #e6e6e6; }
.sheet-meta > div:last-child { border-right: 0; }
.sheet-meta span { display: block; color: #777; font-size: 10px; text-transform: uppercase; letter-spacing: 0.03em; }
.sheet-meta strong { display: block; margin-top: 3px; font-size: 12px; }
.tax-scroll { overflow-x: auto; }
.sheet-lines { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 11px; }
.sheet-lines th, .sheet-lines td { border: 1px solid #e4e4e4; padding: 7px 6px; vertical-align: top; text-align: right; }
.sheet-lines th { font-weight: 800; text-align: left; background: #f7f1f1; color: #3a2222; font-size: 10px; letter-spacing: 0.02em; }
.sheet-lines td.no, .sheet-lines th.no { width: 2.4rem; text-align: left; }
.sheet-lines td.desc, .sheet-lines th.desc { text-align: left; width: 28%; }
.sheet-code { display: block; margin-top: 2px; color: #444; }
.delivery-note { display: none; }
.note-title { color: #111; }
.note-lines td.scan { text-align: center; width: 34%; }
.line-barcode { display: block; width: 100%; max-width: 240px; height: 58px; margin: 0 auto; }
.note-run { margin: 8px 0 0; }
.sheet-lines tr.sheet-sum td { background: #f3f3f3; font-weight: 700; }
.sheet-lines tr.sheet-sum td:first-child { background: #fff; border-left-color: transparent; border-bottom-color: transparent; }
.sheet-lower { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-top: 16px; }
.sheet-notes p { margin: 0 0 6px; }
.sheet-side { margin-left: auto; }
.sheet-sums { border-collapse: collapse; min-width: 240px; }
.sheet-sums th, .sheet-sums td { border: 1px solid #e4e4e4; padding: 6px 10px; text-align: right; }
.sheet-sums th { text-align: left; font-weight: 800; color: #8f1d1d; }
.sheet-sums tr.grand th, .sheet-sums tr.grand td { background: #111; color: #fff; font-weight: 800; }
.sheet-words { margin: 8px 0 0; text-align: right; font-size: 12px; }
.sheet-words span { display: block; color: #666; font-size: 11px; }
.sheet-bank { width: min(420px, 100%); border-collapse: collapse; margin-top: 14px; }
.sheet-bank th, .sheet-bank td { border: 1px solid #d9d9d9; padding: 5px 8px; text-align: left; }
.sheet-bank th { width: 7.2rem; background: #fff; font-weight: 700; }
.sheet-ack { margin: 28px 0 0; text-align: center; color: #555; }
.sheet-sign { margin: 28px 0 0; text-align: center; letter-spacing: 0.01em; }
.sheet-terms { margin: 22px 0 0; }
.sheet-terms a { color: #1a5fb4; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.kv strong { font-variant-numeric: tabular-nums; }

@media (min-width: 720px) {
  .catalog-grid { grid-template-columns: repeat(3, 1fr); }
  .form-grid.two, .choice-grid { grid-template-columns: 1fr 1fr; }
  .login-panel { padding: 36px; }
}
@media (min-width: 960px) {
  .sidebar { display: flex; }
  .topbar, .bottom-nav, .sheet-back, .more-toggle { display: none !important; }
  .main { margin-left: var(--sidebar); }
  .page { padding: 28px 28px 48px; }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .quick-grid { grid-template-columns: repeat(4, 1fr); }
  .split-2 { grid-template-columns: 1fr 1fr; }
  .split-main { grid-template-columns: 1.4fr .8fr; }
  .login-wrap { grid-template-columns: 1.1fr .9fr; }
  .login-hero { padding: 48px; min-height: 100dvh; justify-content: space-between; }
  .pos-app {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    grid-template-rows: auto auto minmax(0, 1fr);
  }
  .pos-top, .pos-cats, .pos-grid-wrap { grid-column: 1; }
  .pos-grid-wrap { padding-bottom: 18px; min-height: 0; }
  .pos-grid { grid-template-columns: repeat(3, 1fr); }
  .pos-cart,
  .pos-cart.open {
    display: flex;
    grid-column: 2;
    grid-row: 1 / -1;
    border-left: 1px solid var(--line);
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    height: auto;
    max-height: 100%;
    min-height: 0;
    border-radius: 0;
    box-shadow: none;
    z-index: auto;
  }
  .pos-dock, .backdrop, .only-mobile { display: none !important; }
  .modal-back { align-items: center; }
}
@media (min-width: 1200px) {
  .pos-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 720px) {
  table.responsive thead { display: none; }
  table.responsive, table.responsive tbody, table.responsive tr, table.responsive td { display: block; width: 100%; }
  table.responsive tr {
    background: transparent;
    border-bottom: 1px solid var(--line);
    margin-bottom: 8px;
    padding-bottom: 8px;
  }
  table.responsive td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border: 0;
    padding: 6px 12px;
  }
  table.responsive td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
  }
  table.responsive td.actions { justify-content: flex-end; }
  table.responsive td.actions::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media (max-width: 720px) {
  .invoice-doc { padding: 16px; }
  .invoice-parties { grid-template-columns: 1fr; gap: 16px; }
  .sheet-meta { grid-template-columns: 1fr 1fr; }
  .sheet-lower { flex-direction: column; }
  .sheet-kicker { font-size: 22px; }
  .sheet-title { font-size: 18px; }
  .uae-parties { grid-template-columns: 1fr; }
  .uae-top { flex-direction: column; align-items: flex-start; }
  .zoo-parties { grid-template-columns: 1fr; }
  .zoo-title { font-size: 24px; }
}
@page {
  size: A4;
  margin: 14mm 16mm;
}
@media print {
  .sidebar, .topbar, .bottom-nav, .sheet-back, .print-hide, .flash, .banner, .store-top, .store-foot, .page-head { display: none !important; }
  html, body, .shell, .main, .page {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    width: auto !important;
    max-width: none !important;
    background: white !important;
  }
  .invoice-doc { box-shadow: none; border: 0; max-width: none; width: 100%; margin: 0; padding: 0; }
  .invoice-parties { grid-template-columns: 1fr 1fr 1fr !important; gap: 16px !important; }
  .sheet-meta { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
  .uae-parties { grid-template-columns: 1fr 1fr !important; }
  .uae-top { flex-direction: row !important; align-items: flex-end !important; }
  .zoo-parties { grid-template-columns: 1fr 1fr 1fr !important; }
  .sheet-lines { min-width: 0; font-size: 9px; }
  .sheet-lower, .sheet-bank { break-inside: avoid; }
  .delivery-note { display: none !important; }
  body.print-note .tax-sheet { display: none !important; }
  body.print-note .delivery-note { display: block !important; }
  body.print-note .line-barcode { max-width: 280px; height: 64px; }
  body.print-note .note-lines tr { break-inside: avoid; }
}
:focus-visible { outline: 3px solid var(--moss); outline-offset: 2px; }
[x-cloak], [hidden] { display: none !important; }

.settings-tabs { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 14px; padding-bottom: 2px; }
.settings-tabs .chip { white-space: nowrap; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.pick-card {
  position: relative;
  display: block;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: var(--card);
  cursor: pointer;
}
.pick-card input { position: absolute; opacity: 0; pointer-events: none; }
.pick-card input[type="color"] { position: static; opacity: 1; pointer-events: auto; }
.custom-theme { grid-column: 1 / -1; }
.colour-picks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 12px; }
.colour-pick { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 750; color: var(--text); }
.colour-pick input[type="color"] { width: 46px; height: 34px; padding: 2px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); cursor: pointer; }
.pick-card:has(input:checked) { border-color: var(--moss); box-shadow: 0 0 0 3px var(--moss-soft); }
.pick-card strong { display: block; margin-bottom: 4px; }
.pick-card span { color: var(--muted); font-size: 13px; }
.swatch { display: flex; height: 34px; border-radius: 10px; overflow: hidden; margin-bottom: 8px; }
.swatch i { display: block; flex: 1; }

html.theme-ocean {
  --ink: #102433; --ink-2: #173244; --paper: #eef4f6; --card: #fbfefe; --line: #d5e3e8;
  --text: #14242b; --muted: #5d7178; --moss: #0f6e8c; --moss-dark: #0b5168; --moss-soft: #e5f4f8;
  --gold: #e0a15a; --gold-deep: #8a5a12;
}
html.theme-clay {
  --ink: #2c1810; --ink-2: #3d261b; --paper: #f7f0ea; --card: #fffaf6; --line: #eadfd4;
  --text: #2a1c16; --muted: #7a6558; --moss: #9a4632; --moss-dark: #743326; --moss-soft: #f8ebe6;
  --gold: #e2b15a; --gold-deep: #8a5a12;
}
html.theme-plum {
  --ink: #241428; --ink-2: #351c3b; --paper: #f6f1f6; --card: #fffbfe; --line: #e6dbe8;
  --text: #241628; --muted: #746478; --moss: #6d3b78; --moss-dark: #512a5a; --moss-soft: #f4eaf6;
  --gold: #e4b15a; --gold-deep: #8a5a12;
}
html.theme-slate {
  --ink: #1b2430; --ink-2: #273140; --paper: #eef1f4; --card: #fbfcfd; --line: #d8dee6;
  --text: #17202b; --muted: #5d6b78; --moss: #2f5d8c; --moss-dark: #23486d; --moss-soft: #e7eef6;
  --gold: #d7e2ee; --gold-deep: #2f5d8c;
}

html.tpl-compact { --sidebar: 220px; }
html.tpl-compact body { font-size: 14px; }
html.tpl-compact .card,
html.tpl-compact .btn,
html.tpl-compact .input,
html.tpl-compact .select,
html.tpl-compact .textarea,
html.tpl-compact .modal { border-radius: 8px; }
html.tpl-compact .page { padding-top: 14px; }

html.tpl-soft .card { border-radius: 28px; }
html.tpl-soft .btn,
html.tpl-soft .chip { border-radius: 999px; }
html.tpl-soft .input,
html.tpl-soft .select,
html.tpl-soft .textarea { border-radius: 16px; }
@media (min-width: 960px) {
  html.tpl-soft .page { padding: 36px 36px 56px; }
}

html.tpl-sharp body { background: var(--paper); }
html.tpl-sharp .card,
html.tpl-sharp .btn,
html.tpl-sharp .input,
html.tpl-sharp .select,
html.tpl-sharp .textarea,
html.tpl-sharp .chip,
html.tpl-sharp .modal,
html.tpl-sharp .pos-card { border-radius: 2px; }
