:root {
  color-scheme: dark;
  --bg: #0d0f14;
  --panel: #151821;
  --panel-2: #1b1f2b;
  --panel-3: #222838;
  --text: #f5f7fb;
  --muted: #8e98ad;
  --line: rgba(255,255,255,.08);
  --green: #18e48f;
  --green-2: #0dbb73;
  --yellow: #f4c542;
  --red: #ff4d6d;
  --blue: #4aa3ff;
  --purple: #9d7cff;
  --orange: #ff9f43;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(0,0,0,.36);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% -10%, rgba(24,228,143,.12), transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(74,163,255,.10), transparent 28%),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
input, select {
  width: 100%;
  color: var(--text);
  background: #0f131d;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  outline: none;
}
input:focus, select:focus { border-color: rgba(24,228,143,.65); box-shadow: 0 0 0 3px rgba(24,228,143,.12); }
label { display: block; color: var(--muted); font-size: 12px; margin: 0 0 7px; }
.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.auth-card {
  width: min(460px, 100%);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.brand-mark {
  width: 46px; height: 46px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: #06110d;
  font-weight: 900;
  letter-spacing: -.08em;
}
.brand-title { font-size: 22px; font-weight: 850; }
.brand-subtitle { color: var(--muted); font-size: 13px; margin-top: 3px; }
.form-grid { display: grid; gap: 14px; }
.error-box, .notice-box {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,77,109,.25);
  background: rgba(255,77,109,.08);
  color: #ffc6d1;
  font-size: 14px;
}
.notice-box { border-color: rgba(74,163,255,.25); background: rgba(74,163,255,.09); color: #c6e2ff; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 270px minmax(0, 1fr); }
.sidebar {
  position: sticky; top: 0; height: 100vh;
  padding: 22px 16px;
  border-right: 1px solid var(--line);
  background: rgba(16,18,25,.78);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column; gap: 20px;
}
.nav { display: grid; gap: 8px; }
.nav-button {
  border: 0;
  color: var(--muted);
  background: transparent;
  border-radius: 14px;
  padding: 12px 12px;
  display: flex; align-items: center; gap: 10px;
  text-align: left;
}
.nav-button.active, .nav-button:hover { color: var(--text); background: rgba(255,255,255,.07); }
.nav-dot { width: 9px; height: 9px; border-radius: 999px; background: currentColor; opacity: .7; }
.sidebar-footer { margin-top: auto; display: grid; gap: 12px; color: var(--muted); font-size: 13px; }
.user-pill { border: 1px solid var(--line); background: rgba(255,255,255,.04); border-radius: 16px; padding: 12px; }
.main { padding: 26px; min-width: 0; }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.kicker { color: var(--green); font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 6px 0 0; font-size: clamp(28px, 3vw, 42px); letter-spacing: -.04em; }
.page-hint { color: var(--muted); margin-top: 8px; max-width: 760px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.btn {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 10px 13px;
  transition: .15s ease;
}
.btn:hover { transform: translateY(-1px); background: rgba(255,255,255,.09); }
.btn.primary { border-color: rgba(24,228,143,.4); background: linear-gradient(135deg, rgba(24,228,143,.95), rgba(13,187,115,.85)); color: #04100a; font-weight: 850; }
.btn.blue { border-color: rgba(74,163,255,.35); background: rgba(74,163,255,.14); color: #cfe8ff; }
.btn.red { border-color: rgba(255,77,109,.35); background: rgba(255,77,109,.12); color: #ffc5cf; }
.btn.ghost { background: transparent; }
.btn.small { padding: 7px 10px; font-size: 13px; border-radius: 10px; }
.stats-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  min-height: 118px;
}
.stat-label { color: var(--muted); font-size: 13px; }
.stat-value { font-size: 31px; font-weight: 900; letter-spacing: -.04em; margin-top: 12px; }
.stat-foot { color: var(--muted); font-size: 12px; margin-top: 8px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 16px; }
.panel {
  background: rgba(21,24,33,.86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 50px rgba(0,0,0,.16);
}
.panel-header { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.panel-title { font-weight: 850; }
.panel-body { padding: 16px 18px; }
.filters { display: grid; grid-template-columns: 1.25fr repeat(2, minmax(160px, .5fr)) auto; gap: 10px; margin-bottom: 16px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.product-card {
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px;
  min-height: 250px;
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: "";
  position: absolute; inset: -80px -90px auto auto;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24,228,143,.16), transparent 70%);
}
.product-head { display: grid; grid-template-columns: 58px 1fr; gap: 12px; align-items: center; position: relative; }
.product-icon {
  width: 58px; height: 58px;
  border-radius: 18px;
  display: grid; place-items: center;
  color: white;
  font-weight: 950;
  letter-spacing: -.06em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 12px 30px rgba(0,0,0,.24);
}
.icon-seafood { background: linear-gradient(135deg, #1d8cff, #18e4c2); }
.icon-meat { background: linear-gradient(135deg, #ff4d6d, #ff9f43); }
.icon-drink { background: linear-gradient(135deg, #9d7cff, #4aa3ff); }
.icon-fruit { background: linear-gradient(135deg, #18e48f, #f4c542); }
.icon-veg { background: linear-gradient(135deg, #14c56f, #36d1dc); }
.icon-default { background: linear-gradient(135deg, #526075, #8793aa); }
.product-name { font-weight: 900; font-size: 17px; letter-spacing: -.02em; }
.product-meta { color: var(--muted); font-size: 12px; margin-top: 4px; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.badge { font-size: 12px; padding: 5px 8px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--muted); }
.badge.green { color: #b9ffe0; background: rgba(24,228,143,.12); border-color: rgba(24,228,143,.25); }
.badge.yellow { color: #ffe9a3; background: rgba(244,197,66,.12); border-color: rgba(244,197,66,.25); }
.badge.red { color: #ffc5cf; background: rgba(255,77,109,.13); border-color: rgba(255,77,109,.26); }
.badge.blue { color: #cfe8ff; background: rgba(74,163,255,.13); border-color: rgba(74,163,255,.25); }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.metric { background: rgba(0,0,0,.17); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.metric-label { color: var(--muted); font-size: 11px; }
.metric-value { font-weight: 900; font-size: 18px; margin-top: 3px; }
.card-actions { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.list { display: grid; gap: 10px; }
.list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
  border-radius: 14px;
}
.bar-row { display: grid; grid-template-columns: minmax(130px, .4fr) minmax(0, 1fr) 80px; gap: 12px; align-items: center; margin: 10px 0; }
.bar-track { height: 12px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--green), var(--blue)); min-width: 3px; }
.order-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.order-card { border: 1px solid var(--line); background: rgba(255,255,255,.04); border-radius: 22px; padding: 16px; }
.order-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 12px; }
.order-title { font-weight: 900; font-size: 19px; }
.order-store { color: var(--green); font-weight: 800; margin-top: 5px; }
.order-time { color: var(--muted); font-size: 12px; margin-top: 4px; }
.order-item { display: grid; grid-template-columns: minmax(0,1fr) 88px 74px; gap: 8px; align-items: center; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.055); }
.order-item:last-child { border-bottom: 0; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { border-bottom: 1px solid var(--line); padding: 12px; text-align: left; vertical-align: middle; }
.table th { color: var(--muted); font-weight: 750; font-size: 12px; }
.empty { color: var(--muted); text-align: center; padding: 42px 16px; }
.modal-backdrop {
  position: fixed; inset: 0; z-index: 30;
  background: rgba(0,0,0,.62);
  display: grid; place-items: center;
  padding: 20px;
}
.modal {
  width: min(720px, 100%);
  max-height: 88vh;
  overflow: auto;
  background: #151821;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.modal-header { padding: 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.modal-body { padding: 18px; }
.form-columns { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.full { grid-column: 1 / -1; }
.mobile-only { display: none; }
@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .main { padding: 18px; }
  .stats-grid { grid-template-columns: 1fr; }
  .form-columns { grid-template-columns: 1fr; }
  .order-item { grid-template-columns: 1fr; }
}

/* V2 polish: compact working catalog and richer visual product cards */
.brand-title { letter-spacing: -.035em; }
.main { padding: 28px; }
.product-grid-compact {
  grid-template-columns: repeat(auto-fill, minmax(206px, 1fr));
  gap: 12px;
}
.catalog-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: -4px 0 14px;
}
.catalog-strip > div {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}
.catalog-strip span { color: var(--muted); font-size: 12px; }
.catalog-strip strong { font-size: 17px; }
.catalog-strip .danger { border-color: rgba(255,77,109,.30); background: rgba(255,77,109,.075); }
.product-card {
  min-height: 0;
  padding: 12px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 82% -10%, rgba(24,228,143,.20), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.022));
}
.product-card.need { border-color: rgba(244,197,66,.22); }
.product-card.no-price { border-color: rgba(255,77,109,.34); }
.product-card.out { opacity: .94; }
.product-card::before {
  inset: -70px -80px auto auto;
  width: 150px;
  height: 150px;
  opacity: .65;
}
.product-head {
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
}
.product-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  position: relative;
  font-size: 26px;
  overflow: hidden;
  letter-spacing: 0;
}
.product-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 18%, rgba(255,255,255,.55), transparent 16%),
    linear-gradient(145deg, rgba(255,255,255,.17), transparent 42%);
}
.product-icon::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
}
.icon-glyph {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.35));
}
.icon-seafood { background: linear-gradient(135deg, #1577ff, #13d6d0); }
.icon-meat { background: linear-gradient(135deg, #ff4b6b, #ff8f42); }
.icon-drink { background: linear-gradient(135deg, #865dff, #2fc2ff); }
.icon-fruit { background: linear-gradient(135deg, #21d879, #ffd34d); }
.icon-veg { background: linear-gradient(135deg, #13b66d, #52e0a3); }
.icon-default { background: linear-gradient(135deg, #61708b, #9aa7bc); }
.product-title-block { min-width: 0; }
.product-name {
  font-size: 15px;
  line-height: 1.14;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-meta {
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.compact-badges {
  margin: 10px 0 8px;
  gap: 5px;
}
.badge {
  font-size: 11px;
  padding: 4px 7px;
}
.stock-line, .price-line {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.stock-line > div, .price-line > div {
  border: 1px solid rgba(255,255,255,.065);
  border-radius: 12px;
  background: rgba(0,0,0,.18);
  padding: 8px 8px;
  min-width: 0;
}
.stock-line span, .price-line span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
  margin-bottom: 5px;
}
.stock-line strong, .price-line strong {
  display: block;
  font-size: 17px;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.price-line { margin-top: 7px; }
.price-line strong { font-size: 15px; }
.stock-progress {
  margin: 8px 0 0;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  overflow: hidden;
}
.stock-progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--blue));
  min-width: 3px;
}
.product-card.need .stock-progress span { background: linear-gradient(90deg, var(--yellow), var(--orange)); }
.product-card.no-price .stock-progress span, .product-card.out .stock-progress span { background: linear-gradient(90deg, var(--red), var(--orange)); }
.compact-actions {
  margin-top: 10px;
  gap: 6px;
}
.compact-actions .btn.small {
  padding: 7px 8px;
  font-size: 12px;
}
.chart-list { display: grid; gap: 12px; }
.chart-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}
.chart-rank {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(24,228,143,.12);
  color: #b9ffe0;
  font-weight: 900;
  font-size: 12px;
}
.chart-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}
.chart-top span { color: var(--text); font-weight: 900; }
.chart-top strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bar-track { height: 9px; }
@media (min-width: 1600px) {
  .product-grid-compact { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
}
@media (max-width: 900px) {
  .catalog-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .catalog-strip { grid-template-columns: 1fr; }
  .product-grid-compact { grid-template-columns: 1fr; }
}

/* V3 requested polish: logo opens dashboard, -1 stock action, transparent product pictures */
.brand-home {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}
.brand-home .brand-title,
.brand-home .brand-subtitle { display: block; }
.brand-home:hover .brand-title { color: var(--green); }
.brand-home:focus-visible {
  outline: 2px solid rgba(24,228,143,.75);
  outline-offset: 6px;
  border-radius: 18px;
}
.btn.minus {
  background: rgba(255,77,109,.14);
  border-color: rgba(255,77,109,.35);
  color: #ffc7d1;
  font-weight: 900;
}
.product-icon {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  overflow: visible;
}
.product-icon::before,
.product-icon::after { display: none !important; }
.icon-seafood,
.icon-meat,
.icon-drink,
.icon-fruit,
.icon-veg,
.icon-default { background: transparent !important; }
.icon-glyph {
  font-size: 34px;
  line-height: 1;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,.42));
}

/* V4 product catalog polish */
.product-grid-compact {
  grid-template-columns: repeat(auto-fill, minmax(174px, 1fr));
  gap: 10px;
}
.product-card {
  padding: 9px !important;
  border-radius: 16px !important;
}
.product-card::before { display: none !important; }
.product-head {
  grid-template-columns: 46px minmax(0, 1fr) !important;
  gap: 8px !important;
  min-height: 48px;
}
.product-picture {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible;
}
.product-picture .icon-glyph {
  font-size: 38px;
  line-height: 1;
  filter: drop-shadow(0 7px 8px rgba(0,0,0,.5));
}
.product-icon { display: none; }
.product-name { font-size: 14px !important; line-height: 1.08 !important; }
.product-meta { font-size: 10.5px !important; margin-top: 2px !important; }
.compact-badges { margin: 7px 0 6px !important; min-height: 22px; }
.badge { font-size: 10.5px !important; padding: 3px 6px !important; }
.stock-line,
.price-line {
  gap: 5px !important;
}
.stock-line > div,
.price-line > div {
  border-radius: 10px !important;
  padding: 6px 7px !important;
}
.stock-line span,
.price-line span {
  font-size: 9.5px !important;
}
.stock-line strong,
.price-line strong {
  font-size: 14px !important;
}
.stock-progress { margin: 6px 0 !important; height: 5px !important; }
.compact-actions {
  display: grid !important;
  grid-template-columns: 34px 34px 1fr 34px;
  gap: 6px !important;
  margin-top: 7px !important;
}
.compact-actions .btn.small {
  padding: 7px 7px !important;
  min-height: 32px;
  justify-content: center;
}
.btn.icon-only {
  width: 34px;
  min-width: 34px;
  padding: 0 !important;
  font-size: 15px;
  line-height: 1;
}
.catalog-strip { margin-bottom: 10px !important; }
.filters { margin-bottom: 10px !important; }
@media (min-width: 1600px) {
  .product-grid-compact { grid-template-columns: repeat(auto-fill, minmax(166px, 1fr)); }
}
@media (min-width: 1900px) {
  .product-grid-compact { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); }
}

/* V5 UX/UI polish: denser product catalog, inline editing, themes, food-style palette */
:root {
  color-scheme: dark;
  --bg: #100f0b;
  --panel: #17150f;
  --panel-2: #201c13;
  --panel-3: #2b2417;
  --text: #fff7e8;
  --muted: #b7a98d;
  --line: rgba(255, 226, 174, .12);
  --green: #35d083;
  --green-2: #1ba96b;
  --yellow: #f6c453;
  --red: #ef5d60;
  --blue: #5bb6ff;
  --orange: #f28c3a;
  --shadow: 0 22px 65px rgba(0,0,0,.36);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5efe3;
  --panel: #fff9ef;
  --panel-2: #f4eadb;
  --panel-3: #eadcc7;
  --text: #24190f;
  --muted: #79684f;
  --line: rgba(90, 58, 25, .16);
  --green: #119c5f;
  --green-2: #0d7d4d;
  --yellow: #b9850f;
  --red: #c23945;
  --blue: #2473b7;
  --orange: #d36b20;
  --shadow: 0 18px 45px rgba(88, 61, 32, .16);
}
body {
  background:
    radial-gradient(circle at 12% -4%, rgba(242, 140, 58, .18), transparent 28%),
    radial-gradient(circle at 86% 4%, rgba(53, 208, 131, .13), transparent 30%),
    linear-gradient(135deg, rgba(32, 24, 13, .78), transparent 42%),
    var(--bg) !important;
}
:root[data-theme="light"] body {
  background:
    radial-gradient(circle at 12% -4%, rgba(242, 140, 58, .25), transparent 30%),
    radial-gradient(circle at 86% 4%, rgba(53, 208, 131, .18), transparent 30%),
    linear-gradient(135deg, rgba(255, 239, 205, .9), rgba(245, 239, 227, 1)) !important;
}
input, select { background: color-mix(in srgb, var(--panel) 80%, #000 20%) !important; border-color: var(--line) !important; color: var(--text) !important; }
:root[data-theme="light"] input,
:root[data-theme="light"] select { background: #fffdf8 !important; }
.sidebar { background: color-mix(in srgb, var(--panel) 86%, #000 14%) !important; border-color: var(--line) !important; }
.main { padding: 24px 26px !important; }
.brand { text-decoration: none; }
.brand-mark {
  position: relative;
  width: 50px !important;
  height: 50px !important;
  border-radius: 17px !important;
  background:
    radial-gradient(circle at 68% 22%, rgba(255,255,255,.26), transparent 16%),
    linear-gradient(145deg, #f2b866 0%, #c56a2d 42%, #4e2d18 100%) !important;
  color: #14100a !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.26), 0 12px 30px rgba(0,0,0,.28);
  overflow: hidden;
  letter-spacing: 0 !important;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: auto 6px 7px;
  height: 4px;
  border-radius: 99px;
  background: rgba(20,16,10,.72);
}
.brand-hat {
  position: absolute;
  top: -6px;
  right: -4px;
  font-size: 23px;
  transform: rotate(10deg);
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.25));
}
.brand-letters {
  position: relative;
  z-index: 1;
  font-weight: 1000;
  font-size: 15px;
  letter-spacing: -.07em;
  padding-top: 9px;
  color: #fff2d8;
  text-shadow: 0 2px 5px rgba(0,0,0,.42);
}
.brand-title { color: var(--text); }
.brand-home:hover .brand-title { color: var(--orange) !important; }
.theme-toggle { justify-content: center; }
.stat-card,
.panel,
.order-card,
.user-pill,
.catalog-strip > div {
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel) 92%, #fff 8%), color-mix(in srgb, var(--panel) 96%, #000 4%)) !important;
  border-color: var(--line) !important;
}
.topbar { margin-bottom: 18px !important; }
h1 { letter-spacing: -.055em; }
.page-hint { color: var(--muted) !important; }
.filters {
  grid-template-columns: minmax(260px, 1.6fr) repeat(3, minmax(150px, .45fr)) !important;
  gap: 10px !important;
}
.catalog-strip { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 8px !important; }
.catalog-strip > div { min-height: 42px; padding: 8px 10px !important; }
.catalog-strip span { font-size: 11px !important; }
.catalog-strip strong { font-size: 16px !important; }
.product-grid-compact {
  grid-template-columns: repeat(auto-fill, minmax(142px, 1fr)) !important;
  gap: 8px !important;
}
.product-card {
  display: flex;
  flex-direction: column;
  min-height: 206px !important;
  padding: 8px !important;
  border-radius: 14px !important;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel-2) 84%, #fff 5%), color-mix(in srgb, var(--panel) 96%, #000 4%)) !important;
  border-color: var(--line) !important;
  box-shadow: none !important;
}
.product-card.ok { border-color: rgba(53,208,131,.24) !important; }
.product-card.need {
  border-color: rgba(246,196,83,.50) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(246,196,83,.13), transparent 42%),
    linear-gradient(180deg, color-mix(in srgb, var(--panel-2) 84%, #fff 5%), color-mix(in srgb, var(--panel) 96%, #000 4%)) !important;
}
.product-card.no-price {
  border-color: rgba(239,93,96,.62) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(239,93,96,.16), transparent 42%),
    linear-gradient(180deg, color-mix(in srgb, var(--panel-2) 84%, #fff 5%), color-mix(in srgb, var(--panel) 96%, #000 4%)) !important;
}
.product-card.out { opacity: 1 !important; }
.product-card.out:not(.need):not(.no-price) { border-color: rgba(239,93,96,.28) !important; }
.product-head.compact-head {
  grid-template-columns: 34px minmax(0, 1fr) !important;
  gap: 7px !important;
  min-height: 42px !important;
  align-items: start !important;
}
.product-picture {
  width: 34px !important;
  height: 34px !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}
.product-picture .icon-glyph,
.icon-glyph {
  font-size: 30px !important;
  line-height: 1 !important;
  filter: drop-shadow(0 4px 5px rgba(0,0,0,.36)) !important;
}
.product-name.editable-text {
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  min-height: 31px;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  white-space: normal !important;
  overflow: hidden;
  font-size: 12.5px !important;
  line-height: 1.18 !important;
  font-weight: 900;
}
.product-name.editable-text:hover,
.split-meta button:hover,
.inline-field:hover { color: var(--orange); }
.product-meta.split-meta {
  display: flex;
  gap: 3px;
  align-items: center;
  min-width: 0;
  font-size: 9.5px !important;
  margin-top: 1px !important;
}
.split-meta button {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}
.stock-progress { height: 4px !important; margin: 5px 0 6px !important; background: rgba(255,255,255,.07) !important; }
:root[data-theme="light"] .stock-progress { background: rgba(36,25,15,.10) !important; }
.field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}
.inline-field {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 2px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: color-mix(in srgb, var(--panel) 74%, #000 26%);
  color: var(--text);
  padding: 5px 6px;
  text-align: left;
}
:root[data-theme="light"] .inline-field { background: rgba(255,255,255,.68); }
.inline-field span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  line-height: 1;
}
.inline-field strong {
  display: block;
  min-width: 0;
  font-size: 12.5px;
  line-height: 1.02;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inline-field.readonly { cursor: default; }
.inline-field.field-alert { border-color: rgba(239,93,96,.52); color: #ffd5d7; }
.inline-field:nth-child(5) { grid-column: span 2; }
.compact-actions {
  margin-top: auto !important;
  padding-top: 7px;
  display: grid !important;
  grid-template-columns: 1fr 1fr 28px !important;
  gap: 5px !important;
}
.compact-actions .btn.small {
  min-height: 28px !important;
  padding: 5px 6px !important;
  font-size: 12px !important;
  border-radius: 9px !important;
}
.btn.icon-only {
  width: 28px !important;
  min-width: 28px !important;
  font-size: 13px !important;
}
.compact-badges, .badges.compact-badges { display: none !important; }
.stock-line, .price-line { display: none !important; }
.btn.primary { background: linear-gradient(135deg, var(--green), var(--green-2)) !important; color: #071009 !important; border-color: color-mix(in srgb, var(--green) 60%, #000 40%) !important; }
.btn.minus { background: rgba(239,93,96,.15) !important; border-color: rgba(239,93,96,.40) !important; color: #ffd2d5 !important; }
:root[data-theme="light"] .btn.minus { color: #8a1c25 !important; }
.need-chart { display: grid; gap: 10px; }
.need-row {
  display: grid;
  grid-template-columns: 38px minmax(0,1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel-2) 60%, transparent);
  border-radius: 14px;
  padding: 10px;
}
.need-icon { font-size: 28px; line-height: 1; filter: drop-shadow(0 3px 5px rgba(0,0,0,.35)); }
.need-top, .need-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.need-top strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.need-top span, .need-bottom span { color: var(--muted); font-size: 11px; }
.need-bottom strong { font-size: 12px; color: var(--text); white-space: nowrap; }
.need-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  margin: 8px 0;
  background: rgba(239,93,96,.20);
  overflow: hidden;
}
.need-track i, .need-track b { position: absolute; top: 0; bottom: 0; display: block; }
.need-track i { left: 0; background: linear-gradient(90deg, var(--green), #91e6a8); border-radius: 999px 0 0 999px; }
.need-track b { right: 0; background: linear-gradient(90deg, rgba(246,196,83,.85), rgba(239,93,96,.88)); opacity: .92; }
.chart-row { grid-template-columns: 30px minmax(0,1fr) !important; }
.chart-rank { background: rgba(242,140,58,.18) !important; color: color-mix(in srgb, var(--orange) 70%, var(--text) 30%) !important; }
.bar-fill { background: linear-gradient(90deg, var(--green), var(--yellow), var(--orange)) !important; }
.modal { background: var(--panel) !important; }
@media (max-width: 1180px) {
  .stats-grid { grid-template-columns: repeat(3, minmax(0,1fr)) !important; }
  .grid-2 { grid-template-columns: 1fr !important; }
  .filters { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 820px) {
  .app-shell { display: block !important; }
  .sidebar {
    position: sticky !important;
    top: 0;
    z-index: 20;
    height: auto !important;
    padding: 10px 12px !important;
    gap: 10px !important;
  }
  .sidebar .brand { margin-bottom: 0 !important; }
  .nav {
    display: flex !important;
    gap: 6px !important;
    overflow-x: auto;
    padding-bottom: 3px;
  }
  .nav-button {
    flex: 0 0 auto;
    padding: 9px 10px !important;
    font-size: 13px;
  }
  .sidebar-footer {
    grid-template-columns: minmax(0,1fr) auto auto;
    align-items: center;
    gap: 8px !important;
  }
  .user-pill { padding: 8px 10px !important; font-size: 12px; }
  .main { padding: 16px 12px !important; }
  .topbar { align-items: stretch !important; flex-direction: column; }
  .topbar .row .btn { width: 100%; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; gap: 8px !important; }
  .stat-card { min-height: 94px !important; padding: 12px !important; }
  .stat-value { font-size: 24px !important; }
  .catalog-strip { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  .filters { grid-template-columns: 1fr !important; }
  .product-grid-compact { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  .order-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 440px) {
  .brand-title { font-size: 18px !important; }
  h1 { font-size: 32px !important; }
  .stats-grid { grid-template-columns: 1fr !important; }
  .product-grid-compact { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 7px !important; }
  .product-card { padding: 7px !important; }
  .product-head.compact-head { grid-template-columns: 30px minmax(0,1fr) !important; }
  .product-picture { width: 30px !important; height: 30px !important; }
  .product-picture .icon-glyph, .icon-glyph { font-size: 26px !important; }
  .field-grid { gap: 3px; }
  .inline-field { min-height: 34px; padding: 4px 5px; }
  .inline-field strong { font-size: 11.5px; }
  .sidebar-footer { grid-template-columns: 1fr; }
  .need-bottom { align-items: flex-start; flex-direction: column; gap: 3px; }
}


/* V6 final visual alignment: Black Wood Saloon graphite theme */
:root {
  --bg: #090b10;
  --panel: #11151c;
  --panel-2: #161b24;
  --panel-3: #1e2632;
  --text: #ffffff;
  --muted: #aeb8c8;
  --line: rgba(255,255,255,.105);
  --green: #22d38d;
  --green-2: #10b878;
  --yellow: #f6c84f;
  --red: #ff5d73;
  --blue: #4da3ff;
  --orange: #f59e42;
  --shadow: 0 22px 64px rgba(0,0,0,.45);
}
body {
  background:
    radial-gradient(circle at 18% -12%, rgba(34,211,141,.10), transparent 30%),
    radial-gradient(circle at 100% 0%, rgba(77,163,255,.10), transparent 31%),
    linear-gradient(135deg, #0b0e14 0%, #0a0c11 52%, #07090d 100%) !important;
}
:root[data-theme="light"] body {
  background: linear-gradient(135deg, #f7fafc, #eef3f7) !important;
}
.brand { margin-bottom: 22px !important; }
.brand-mark {
  width: 54px !important;
  height: 54px !important;
  border-radius: 15px !important;
  background: transparent !important;
  box-shadow: 0 10px 28px rgba(0,0,0,.35) !important;
  overflow: hidden !important;
  flex: 0 0 auto;
}
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-mark::after, .brand-hat, .brand-letters { display: none !important; }
.brand-title {
  color: #fff !important;
  font-size: 20px !important;
  line-height: 1.05 !important;
  font-weight: 950 !important;
  letter-spacing: -.035em !important;
  text-shadow: 0 2px 14px rgba(0,0,0,.45);
}
.brand-subtitle { display: none !important; }
.brand-home { align-items: center !important; }
.brand-home:hover .brand-title { color: var(--green) !important; }
.sidebar { background: rgba(11,14,20,.94) !important; }
.nav-button { color: #9aa7b8 !important; }
.nav-button.active, .nav-button:hover { color: #fff !important; background: rgba(255,255,255,.075) !important; }
.kicker { color: var(--green) !important; }
h1, .panel-title, .order-title, .product-name, .stat-value, .inline-field strong, .catalog-strip strong { color: #fff !important; }
.page-hint, .stat-label, .stat-foot, .product-meta, .inline-field span, .catalog-strip span { color: var(--muted) !important; }
.product-grid-compact { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)) !important; gap: 7px !important; }
.product-card {
  min-height: 178px !important;
  padding: 7px !important;
  border-radius: 13px !important;
  background: linear-gradient(180deg, rgba(28,35,46,.92), rgba(15,19,26,.96)) !important;
  border-color: rgba(255,255,255,.10) !important;
}
.product-card.ok { border-color: rgba(34,211,141,.32) !important; }
.product-card.need { border-color: rgba(246,200,79,.58) !important; box-shadow: inset 0 0 0 1px rgba(246,200,79,.10) !important; }
.product-card.no-price { border-color: rgba(255,93,115,.70) !important; box-shadow: inset 0 0 0 1px rgba(255,93,115,.13) !important; }
.product-card.out:not(.need):not(.no-price) { border-color: rgba(255,93,115,.32) !important; }
.product-head.compact-head { grid-template-columns: 32px minmax(0, 1fr) !important; gap: 6px !important; min-height: 36px !important; align-items: start !important; }
.product-picture { width: 32px !important; height: 32px !important; align-self: start; }
.product-picture .icon-glyph, .icon-glyph { font-size: 27px !important; filter: drop-shadow(0 4px 5px rgba(0,0,0,.48)) !important; }
.product-name.editable-text {
  min-height: 29px !important;
  font-size: 12px !important;
  line-height: 1.16 !important;
  color: #fff !important;
}
.product-meta.split-meta { font-size: 9px !important; opacity: .96; }
.stock-progress { margin: 4px 0 5px !important; height: 3px !important; }
.field-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px !important; }
.inline-field {
  min-height: 33px !important;
  border-radius: 8px !important;
  padding: 4px 5px !important;
  background: rgba(4,7,11,.62) !important;
  border-color: rgba(255,255,255,.075) !important;
}
.inline-field span { font-size: 8.5px !important; }
.inline-field strong { font-size: 11.8px !important; line-height: 1 !important; }
.inline-field:nth-child(5) { grid-column: span 2; }
.compact-actions { grid-template-columns: 1fr 1fr 24px !important; gap: 4px !important; padding-top: 6px !important; }
.compact-actions .btn.small { min-height: 25px !important; padding: 4px 5px !important; border-radius: 8px !important; font-size: 11.5px !important; }
.btn.icon-only { width: 24px !important; min-width: 24px !important; font-size: 12px !important; }
.filters { grid-template-columns: minmax(260px, 1.55fr) repeat(3, minmax(138px, .45fr)) !important; }
input, select { background: #090c12 !important; }
.stat-card, .panel, .order-card, .user-pill, .catalog-strip > div { background: linear-gradient(180deg, rgba(22,27,36,.92), rgba(14,17,24,.96)) !important; }
.need-row { background: rgba(22,27,36,.86) !important; }
.need-track { background: rgba(255,93,115,.18) !important; }
.chart-top span, .chart-top strong, .need-bottom strong { color: #fff !important; }
/* Better alignment for dense catalog */
.product-title-block { overflow: hidden; }
.split-meta button { max-width: 45%; }
.split-meta span { color: rgba(174,184,200,.7); }
@media (min-width: 1760px) { .product-grid-compact { grid-template-columns: repeat(auto-fill, minmax(126px, 1fr)) !important; } }
@media (max-width: 820px) {
  .brand-mark { width: 44px !important; height: 44px !important; }
  .brand-title { font-size: 17px !important; }
  .product-grid-compact { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
}

.password-tools {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.field-hint {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

@media (max-width: 720px) {
  .password-tools {
    grid-template-columns: 1fr;
  }
}

/* Analytics module */
.analytics-controls {
  padding: 14px 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.control-label { color: var(--muted); font-size: 12px; margin-bottom: 8px; font-weight: 700; }
.mini-input { width: 86px; padding: 7px 10px; border-radius: 10px; }
.analytics-stats { margin-top: 0; }
.analytics-bars .product-meta { margin: 2px 0 7px; }
.analytics-table-wrap { overflow-x: auto; }
.analytics-table th, .analytics-table td { white-space: nowrap; }
.analytics-off { color: var(--yellow); font-size: 10px; font-weight: 800; margin: 1px 0 2px; opacity: .9; }
@media (max-width: 820px) {
  .analytics-controls { grid-template-columns: 1fr; }
  .analytics-table { min-width: 760px; }
}

/* V11 catalog UX: independent filters, compact cards, graphite UI */
:root {
  --bg: #080a0e;
  --panel: #10141b;
  --panel-2: #141922;
  --panel-3: #1b222d;
  --text: #f8fafc;
  --muted: #a7b0bf;
  --line: rgba(255,255,255,.11);
  --green: #22d38d;
  --green-2: #12b87a;
  --yellow: #f6c84f;
  --red: #ff5268;
  --blue: #4da3ff;
  --orange: #f2a349;
}
body {
  background:
    radial-gradient(circle at 15% -8%, rgba(77,163,255,.10), transparent 28%),
    radial-gradient(circle at 90% 2%, rgba(34,211,141,.075), transparent 25%),
    linear-gradient(135deg, #0b0e13, #07090d 60%, #05070a) !important;
}
:root[data-theme="light"] body { background: linear-gradient(135deg, #f7fafc, #edf2f7) !important; }
.brand-title { color: #ffffff !important; text-shadow: none !important; }
.brand-mark { box-shadow: none !important; }
h1, .panel-title, .order-title, .product-name, .stat-value, .inline-field strong, .catalog-strip strong { color: #f8fafc !important; }
.page-hint, .stat-label, .stat-foot, .product-meta, .inline-field span, .catalog-strip span { color: var(--muted) !important; }
.filters-v11 {
  grid-template-columns: minmax(260px, 1.5fr) minmax(160px, .5fr) minmax(160px, .5fr) !important;
  margin-bottom: 8px !important;
}
.category-chips {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 0 10px;
  margin-bottom: 2px;
  scrollbar-width: thin;
}
.chip {
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.10);
  color: var(--muted);
  background: rgba(255,255,255,.035);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}
.chip:hover { color: var(--text); background: rgba(255,255,255,.07); }
.chip.active { color: #06110c; background: linear-gradient(135deg, var(--green), var(--green-2)); border-color: transparent; }
.catalog-strip { margin-bottom: 8px !important; }
.product-grid-compact {
  grid-template-columns: repeat(auto-fill, minmax(122px, 1fr)) !important;
  gap: 7px !important;
}
.product-card {
  min-height: 142px !important;
  padding: 7px !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, rgba(20,25,34,.96), rgba(10,13,18,.98)) !important;
  position: relative;
}
.product-card.ok { border-color: rgba(255,255,255,.12) !important; }
.product-card.need { border-color: rgba(246,200,79,.64) !important; box-shadow: inset 0 0 0 1px rgba(246,200,79,.10) !important; }
.product-card.no-price { border-color: rgba(255,82,104,.78) !important; box-shadow: inset 0 0 0 1px rgba(255,82,104,.14) !important; }
.product-card.out:not(.need):not(.no-price) { border-color: rgba(255,82,104,.40) !important; opacity: .92 !important; }
.product-remove {
  position: absolute;
  top: 4px;
  right: 5px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255,82,104,.82);
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  z-index: 2;
}
.product-remove:hover { background: rgba(255,82,104,.16); color: #ff6f82; }
.product-head.compact-head {
  grid-template-columns: 30px minmax(0, 1fr) !important;
  gap: 5px !important;
  min-height: 34px !important;
  padding-right: 16px;
}
.product-picture { width: 30px !important; height: 30px !important; }
.product-picture .icon-glyph, .icon-glyph { font-size: 26px !important; }
.product-name.editable-text {
  min-height: 27px !important;
  font-size: 11.5px !important;
  line-height: 1.16 !important;
  padding-right: 0 !important;
}
.product-meta.split-meta {
  font-size: 8.7px !important;
  gap: 2px !important;
  margin-top: 0 !important;
}
.split-meta button { max-width: 48% !important; }
.stock-progress { height: 3px !important; margin: 4px 0 5px !important; }
.field-grid-v11 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 3px !important;
}
.field-grid-v11 .inline-field {
  min-height: 27px !important;
  padding: 3px 4px !important;
  border-radius: 7px !important;
  text-align: center !important;
  justify-items: center !important;
  background: rgba(3,6,10,.66) !important;
}
.field-grid-v11 .inline-field strong {
  font-size: 11.2px !important;
  max-width: 100%;
}
.field-grid-v11 .inline-field span { display: none !important; }
.field-grid-v11 .need-to-buy {
  grid-column: 1 / -1;
  min-height: 22px !important;
  color: var(--yellow);
}
.field-grid-v11 .need-to-buy strong::before { content: "↧ "; opacity: .8; }
.inline-field:nth-child(5) { grid-column: auto !important; }
.compact-actions {
  grid-template-columns: 1fr 1fr 25px !important;
  gap: 4px !important;
  padding-top: 5px !important;
}
.compact-actions .btn.small {
  min-height: 24px !important;
  padding: 3px 5px !important;
  font-size: 11px !important;
  border-radius: 7px !important;
}
.analytics-toggle {
  min-width: 25px;
  height: 24px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
}
.analytics-toggle.on { color: #06110c; background: linear-gradient(135deg, var(--green), var(--green-2)); border-color: transparent; }
.analytics-toggle.off { color: #8d98aa; background: rgba(255,255,255,.035); }
.filter-empty { grid-column: 1 / -1; display: grid; gap: 12px; justify-items: center; }
.stat-card, .panel, .order-card, .user-pill, .catalog-strip > div {
  background: linear-gradient(180deg, rgba(20,25,34,.94), rgba(10,13,18,.97)) !important;
}
input, select { background: #070a0f !important; color: #f8fafc !important; }
@media (min-width: 1700px) {
  .product-grid-compact { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)) !important; }
}
@media (max-width: 1180px) {
  .filters-v11 { grid-template-columns: 1fr 1fr !important; }
  .filters-v11 input { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .filters-v11 { grid-template-columns: 1fr !important; }
  .category-chips { margin-left: -2px; margin-right: -2px; }
  .product-grid-compact { grid-template-columns: repeat(2, minmax(0,1fr)) !important; gap: 7px !important; }
  .product-card { min-height: 145px !important; }
}
@media (max-width: 380px) {
  .product-grid-compact { grid-template-columns: 1fr !important; }
}
