:root {
  color-scheme: light;
  --bg: #f8f4ee;
  --screen: #ffffff;
  --panel: #ffffff;
  --text: #262b36;
  --muted: #858b98;
  --line: #eee8df;
  --accent: #8bc6bd;
  --accent-dark: #5fa79d;
  --blue: #6d86d5;
  --blue-dark: #536fc7;
  --danger: #c95858;
  --shadow: 0 18px 40px rgba(69, 76, 95, .14);
  --radius: 22px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(139,198,189,.18), transparent 26rem),
    radial-gradient(circle at 90% 8%, rgba(109,134,213,.16), transparent 28rem),
    var(--bg);
}
a { color: inherit; text-decoration: none; }
button, a, [role="button"], input[type="button"], input[type="submit"], input[type="file"], select, summary { cursor: pointer; }
button:disabled { cursor: default; }
button, input, textarea, select { font: inherit; }
button {
  min-height: 48px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: white;
  font-weight: 800;
  padding: 12px 16px;
  box-shadow: 0 10px 20px rgba(83,111,199,.22);
}
button.secondary { background: #f5f3ef; color: var(--text); box-shadow: none; }
button.danger { background: var(--danger); box-shadow: none; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 13px 14px;
}
textarea { min-height: 92px; resize: vertical; }
.page {
  max-width: 430px;
  min-height: calc(100vh - 67px);
  margin: 0 auto;
  padding: 14px 14px 96px;
  background: var(--screen);
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(238,232,223,.82);
}
.topbar-inner {
  max-width: 430px;
  min-height: 66px;
  margin: auto;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand { font-size: 20px; font-weight: 900; flex: 1; letter-spacing: 0; }
.brand-logo { display: flex; align-items: center; flex: 1; min-width: 0; }
.brand-logo img { height: 46px; width: auto; display: block; }
.brand-mark img { width: 36px; height: 36px; display: block; }
.icon-link {
  min-width: 46px;
  min-height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  color: #586071;
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 8px 18px rgba(69,76,95,.08);
}
.icon {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.icon-link .icon { width: 20px; height: 20px; }
.nav-link {
  display: grid;
  place-items: center;
  gap: 4px;
}
.nav-link .icon { width: 22px; height: 22px; }
.admin-entry { padding: 0 12px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(69,76,95,.08);
}
.muted { color: var(--muted); }
.price { font-size: 20px; font-weight: 900; }
.old-price { text-decoration: line-through; color: var(--muted); font-size: 13px; }
.row { display: flex; gap: 10px; align-items: center; }
.stack { display: grid; gap: 12px; }
.empty { padding: 30px; text-align: center; color: var(--muted); }
.bottom-nav {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 24px), 406px);
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(238,232,223,.9);
  border-radius: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  z-index: 10;
  box-shadow: 0 14px 34px rgba(69,76,95,.16);
  overflow: hidden;
}
.bottom-nav.two-items { grid-template-columns: repeat(2, 1fr); }
.bottom-nav.three-items { grid-template-columns: repeat(3, 1fr); }
.bottom-nav.four-items { grid-template-columns: repeat(4, 1fr); }
.bottom-nav a {
  position: relative;
  min-height: 58px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 750;
  color: #7c8492;
}
.bottom-nav a.active { color: var(--accent-dark); }
.bottom-nav .icon { width: 21px; height: 21px; }
.nav-badge {
  position: absolute;
  top: 7px;
  left: calc(50% + 10px);
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  font-weight: 850;
  line-height: 17px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: #f5f3ef;
  padding: 8px 12px;
  color: #566070;
  font-size: 13px;
}
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 6px; font-weight: 750; }
.notice { background: #edf8f4; border: 1px solid #cbe7df; color: #315e58; border-radius: 18px; padding: 13px 14px; }
.placeholder { background: linear-gradient(135deg, #f4f0e9, #e5efed); display: grid; place-items: center; color: #8a929f; }
