:root {
  --ink: #121217;
  --text: #1c1c22;
  --muted: #5c5c68;
  --line: rgba(18, 18, 23, 0.1);
  --bg: #f3f3f6;
  --paper: rgba(255, 255, 255, 0.86);
  --yellow: #E6E33B;
  --violet: #7979B8;
  --ok: #147a45;
  --wait: #8a8a96;
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  background:
    radial-gradient(900px 320px at 0% -10%, rgba(230, 227, 59, 0.18), transparent 55%),
    radial-gradient(800px 360px at 100% 0%, rgba(121, 121, 184, 0.2), transparent 50%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}
button, input, textarea, select { font: inherit; }
a { color: inherit; }
img { max-width: 100%; }

.container { width: min(1280px, calc(100% - 32px)); margin: 0 auto; }
.header {
  background: rgba(18, 18, 23, 0.82);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 -2px 0 var(--yellow), 0 10px 30px rgba(18, 18, 23, 0.18);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
}
.header-row {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.logo img { height: 48px; width: auto; display: block; }
.top-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px;
  margin-left: auto;
}
.top-nav a, .site-link {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
}
.top-nav a.active, .top-nav a:hover, .site-link:hover { color: var(--yellow); }
.header-actions { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.header-actions .top-nav { margin-left: 0; }
.cart-btn, .cart-link {
  border: 1px solid rgba(230, 227, 59, 0.45);
  background: rgba(255, 255, 255, 0.08);
  color: var(--yellow);
  text-decoration: none;
  height: 42px;
  padding: 0 18px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  transition: transform 0.14s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease;
}
.cart-btn:hover, .cart-link:hover {
  transform: translateY(-1px);
  border-color: var(--yellow);
  background: rgba(230, 227, 59, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 8px 16px rgba(0, 0, 0, 0.24);
}
.cart-btn:active, .cart-link:active {
  transform: scale(0.97);
  background: rgba(230, 227, 59, 0.22);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.32);
}
.cart-btn { padding: 0 8px 0 16px; }
.cart-btn span, .cart-link span {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(100deg, var(--yellow), var(--violet));
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.search {
  flex: 1;
  display: flex;
  align-items: center;
  height: 46px;
  max-width: 640px;
  padding: 4px 4px 4px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 8px 24px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(14px);
}
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0 12px;
  outline: none;
  color: #fff;
}
.search input::placeholder { color: rgba(255, 255, 255, 0.55); }
.search button {
  border: 0;
  cursor: pointer;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 46%),
    linear-gradient(100deg, var(--yellow), #cfc86a 46%, var(--violet));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 6px 14px rgba(121, 121, 184, 0.35);
  transition: transform 0.14s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.search button:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 8px 16px rgba(121, 121, 184, 0.42);
}
.search button:active {
  transform: scale(0.97);
  box-shadow: inset 0 2px 5px rgba(18, 18, 23, 0.16), 0 2px 6px rgba(121, 121, 184, 0.22);
}

.btn, a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 780;
  letter-spacing: -0.01em;
  line-height: 1.1;
  white-space: nowrap;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 42%),
    linear-gradient(105deg, var(--yellow) 0%, #d5d16a 48%, var(--violet) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 8px 18px rgba(121, 121, 184, 0.28);
  transition: transform 0.14s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn:hover, a.btn:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 12px 24px rgba(121, 121, 184, 0.36);
}
.btn:active, a.btn:active { transform: scale(0.97); }
.btn.ghost, a.btn.ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(18, 18, 23, 0.12);
  box-shadow: inset 0 1px 0 #fff, 0 6px 16px rgba(18, 18, 23, 0.05);
  backdrop-filter: blur(8px);
}
.btn.ghost:hover, a.btn.ghost:hover {
  border-color: rgba(121, 121, 184, 0.75);
  box-shadow: inset 0 1px 0 #fff, 0 8px 18px rgba(121, 121, 184, 0.18);
}

.layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
  padding: 18px 0 32px;
  align-items: start;
}
.side {
  background: #fff;
  border: 1px solid rgba(18, 18, 23, 0.08);
  border-radius: 18px;
  position: sticky;
  top: 94px;
  max-height: calc(100vh - 114px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 32px rgba(18, 18, 23, 0.05);
}
.all-cats, .cat, .caret {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
  box-shadow: none;
  outline: none;
}
.all-cats:hover, .all-cats:focus, .all-cats:active,
.cat:hover, .cat:focus, .cat:active,
.caret:hover, .caret:focus, .caret:active {
  border: 0;
  box-shadow: none;
  outline: none;
}
.all-cats {
  flex: none;
  display: block;
  width: 100%;
  padding: 14px 16px;
  font-weight: 800;
  color: var(--ink);
  border-bottom: 1px solid rgba(18, 18, 23, 0.08);
}
.all-cats.on,
.all-cats.on:hover,
.all-cats.on:focus,
.all-cats.on:active {
  background: var(--yellow);
  border-bottom-color: transparent;
  color: var(--ink);
}
.all-cats.on span {
  background-image: linear-gradient(100deg,
    #121217 0%,
    #121217 34%,
    #3730a3 48%,
    #121217 62%,
    #121217 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: cats-shine 5.5s linear infinite;
}
@keyframes cats-shine {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}
@media (prefers-reduced-motion: reduce) {
  .all-cats.on span { animation: none; }
}
#tree {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 6px 0 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(121, 121, 184, 0.5) transparent;
}
#tree::-webkit-scrollbar { width: 8px; }
#tree::-webkit-scrollbar-track { background: transparent; }
#tree::-webkit-scrollbar-thumb {
  background: rgba(121, 121, 184, 0.45);
  border-radius: 999px;
}
.node-row {
  display: flex;
  align-items: flex-start;
  margin: 1px 8px;
  border-radius: 10px;
}
.node-row:hover { background: rgba(121, 121, 184, 0.12); }
.node-row.on { background: rgba(230, 227, 59, 0.62); }
.caret {
  width: 22px;
  color: var(--violet);
  padding: 8px 0;
  flex: none;
  font-size: 13px;
  line-height: 1.35;
}
.cat {
  padding: 8px 10px 8px 0;
  line-height: 1.35;
  color: var(--text);
}
.node-row.on .cat { font-weight: 750; color: var(--ink); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.toolbar {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 2px 0 14px;
}
.toolbar h1, .page h1, .detail h1, .detail h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.count, .lead, .sku, .muted, .form-note { color: var(--muted); }
.count, .lead { margin: 4px 0 0; }
.hubs { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 2px; }
.hubs a {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}
.hubs a:hover { border-color: var(--violet); }
.check {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  flex: none;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  white-space: nowrap;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(121, 121, 184, 0.35);
  border-radius: 999px;
  padding: 12px 24px;
  box-shadow: 0 8px 18px rgba(18, 18, 23, 0.05);
  cursor: pointer;
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}
.check::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0) 68%),
    linear-gradient(96deg,
      #f6f3a4 0%,
      var(--yellow) 28%,
      #e6e08a 52%,
      #ddd8b0 72%,
      #cfcce0 88%,
      #b7b4d4 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
}
.check:has(input:checked) {
  border-color: transparent;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 10px 24px rgba(121, 121, 184, 0.18);
}
.check:has(input:checked)::before { transform: scaleX(1); }
.check input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  flex: none;
  border-radius: 6px;
  border: 1.5px solid rgba(18, 18, 23, 0.28);
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.2 8.2l3 3.2 6.6-6.8' fill='none' stroke='%23121217' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0 0;
  transition:
    background-size 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease,
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}
.check input:checked {
  border-color: rgba(18, 18, 23, 0.55);
  background-size: 12px 12px;
  animation: check-pop 0.46s cubic-bezier(0.22, 1, 0.36, 1);
}
.check input:active { transform: scale(0.9); }
@keyframes check-pop {
  0% { transform: scale(0.82); }
  58% { transform: scale(1.08); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .check, .check::before, .check input, .search button, .cart-btn, .cart-link { transition: none; animation: none; }
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(18, 18, 23, 0.06);
  border-radius: 18px;
  min-height: 100%;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(18, 18, 23, 0.05);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(121, 121, 184, 0.62);
  box-shadow:
    0 8px 18px rgba(121, 121, 184, 0.24),
    0 20px 42px rgba(105, 112, 188, 0.32);
}
.thumb {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent),
    #f7f7f9;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.thumb img, .gallery img, .thumbs img { object-fit: contain; }
.thumb img { max-width: 80%; max-height: 80%; }
.ph {
  width: 68px; height: 68px; display: grid; place-items: center;
  background: var(--ink); color: var(--yellow); font-weight: 800;
  border-radius: 16px;
}
.body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.brand {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.name {
  font-weight: 680;
  line-height: 1.35;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
}
.price { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; margin-top: auto; }
.price.ask { font-size: 16px; letter-spacing: 0; }
.stock { font-size: 13px; font-weight: 700; }
.stock.ok { color: var(--ok); }
.stock.wait { color: var(--wait); }
.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.actions .btn, .actions a.btn { width: 100%; }

.pager { display: flex; justify-content: center; gap: 8px; padding: 22px 0 8px; }
.pager button, .pager a, .pager .on {
  min-width: 42px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: #fff; text-decoration: none; padding: 0 10px; font-weight: 750;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(18, 18, 23, 0.04);
}
.pager .on, .pager button.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.modal, .drawer { position: fixed; z-index: 40; }
.modal {
  inset: 0;
  background: rgba(18, 18, 23, 0.46);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.hidden, .drawer.hidden, .toast.hidden, .hidden { display: none; }
.sheet, .drawer {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px);
}
.sheet {
  width: min(980px, 100%);
  max-height: min(90vh, 900px);
  overflow: auto;
  padding: 28px;
  position: relative;
  border-radius: 22px;
  box-shadow: 0 24px 80px rgba(18, 18, 23, 0.28);
}
.sheet.narrow { width: min(480px, 100%); }
.close {
  border: 0;
  background: rgba(255, 255, 255, 0.7);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
  box-shadow: inset 0 1px 0 #fff, 0 4px 12px rgba(18, 18, 23, 0.06);
}
.sheet .close, .drawer-head .close { position: absolute; top: 14px; right: 14px; }
.detail {
  display: grid;
  grid-template-columns: 42px minmax(220px, 360px) 1fr;
  column-gap: 16px;
  row-gap: 28px;
  align-items: start;
}
.detail .actions { margin: 16px 0 6px; }
.gallery {
  position: relative;
  min-height: 280px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #f6f6f8);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.back {
  position: static;
  justify-self: start;
  margin-top: 6px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(18, 18, 23, 0.08);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(18, 18, 23, 0.08);
  backdrop-filter: blur(8px);
}
.back svg { width: 18px; height: 18px; display: block; }
.back:hover {
  background: var(--yellow);
  border-color: transparent;
}
.gallery img { max-height: 420px; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.thumbs button, .thumbs a {
  width: 64px; height: 64px; border: 1px solid var(--line); background: #fff; padding: 4px; cursor: pointer;
  border-radius: 12px;
}
.thumbs img { width: 100%; height: 100%; }
.specs, .invoice-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
.specs td, .specs th, .invoice-table td, .invoice-table th {
  text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top;
}
.specs td:first-child { color: var(--muted); width: 42%; }
.specs td:last-child { overflow-wrap: anywhere; }
.desc { line-height: 1.55; }

.drawer {
  top: 0; right: 0; height: 100vh; width: min(440px, 100%);
  overflow: auto; padding: 22px 20px 36px;
  box-shadow: -18px 0 48px rgba(18, 18, 23, 0.16);
}
.drawer-head { position: relative; padding-right: 42px; }
.drawer h2, .form h2, .form h3 { margin: 0 0 8px; letter-spacing: -0.03em; }
.cart-line { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.qty { display: flex; align-items: center; gap: 6px; }
.qty button {
  width: 32px; height: 32px; border: 1px solid var(--line); background: #fff; cursor: pointer;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 #fff;
}
.total { font-size: 20px; font-weight: 800; }
.form { display: grid; gap: 12px; margin-top: 18px; }
.form.hidden { display: none; }
.form label { display: grid; gap: 6px; font-size: 12px; font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.form input, .form textarea, .form select {
  width: 100%;
  border: 1px solid rgba(18, 18, 23, 0.06);
  border-radius: 14px;
  padding: 13px 14px;
  background: linear-gradient(180deg, #eef0f3, #fbfbfc);
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  font-size: 16px;
  font-weight: 550;
  box-shadow:
    inset 2px 2px 5px rgba(18, 18, 23, 0.06),
    inset -1px -1px 0 rgba(255, 255, 255, 0.9);
  transition: box-shadow 0.15s ease, background 0.15s ease;
}
.form textarea { min-height: 96px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  background: #fff;
  box-shadow:
    inset 0 1px 2px rgba(18, 18, 23, 0.04),
    0 0 0 1px #d5d16a,
    0 0 0 4px rgba(121, 121, 184, 0.28);
}
.form .btn { width: 100%; margin-top: 4px; }
.page { padding: 28px 0 48px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--ink); text-decoration: none; }
.invoice-head { display: flex; gap: 12px; justify-content: space-between; align-items: start; margin-bottom: 18px; }
.footer { border-top: 1px solid var(--line); padding: 18px 0 28px; color: var(--muted); font-size: 14px; }
.footer a { color: var(--ink); }
.toast {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
  background: rgba(18, 18, 23, 0.92); color: #fff; padding: 12px 16px; z-index: 50;
  border-radius: 999px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(18, 18, 23, 0.25);
}
.admin-card {
  border: 1px solid var(--line);
  background: #fff;
  padding: 16px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(18, 18, 23, 0.04);
}
.admin-list { display: grid; gap: 12px; }
.admin-top, .admin-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.admin-top { color: var(--muted); font-size: 13px; }
.admin-card h3 { margin: 8px 0 4px; font-size: 18px; line-height: 1.3; }
.admin-card p { margin: 4px 0; }
.admin-card a { color: var(--ink); }
.admin-meta { color: var(--muted); }
.admin-card ul { margin: 8px 0; padding-left: 18px; }
.admin-fields { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.admin-fields label { flex: 1 1 180px; color: var(--muted); font-size: 13px; font-weight: 600; }
.admin-fields select {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 550;
}
.admin-note { min-height: 1.2em; margin: 8px 0 0; font-size: 13px; color: var(--ok); }
.admin-note.bad { color: #9a2b2b; }
#login, .admin-pass { max-width: 520px; }
.admin-pass {
  margin: 4px 0 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
}
.admin-pass summary { cursor: pointer; font-weight: 700; }
.admin-pass .form { margin-top: 12px; }
.table-wrap { overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.empty { color: var(--muted); padding: 20px 0; }

@media (max-width: 980px) {
  .layout, .detail, .invoice-head { grid-template-columns: 1fr; display: grid; }
  .side { position: static; max-height: 280px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .header-row { flex-wrap: wrap; padding: 10px 0; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .actions { grid-template-columns: 1fr; }
  .top-nav { gap: 14px; }
  .top-nav a { font-size: 15px; }
  .toolbar h1, .page h1, .detail h1 { font-size: 24px; }
}
@media print {
  .header, .footer, .btn, .form { display: none !important; }
  body { background: #fff; }
}
