:root {
  color-scheme: dark;
  --bg: #000;
  --surface: #0d0f0d;
  --surface-2: #141814;
  --surface-3: #1e251f;
  --line: rgba(255, 255, 255, 0.12);
  --text: #fff;
  --muted: #a2a2a2;
  --accent: #4caf50;
  --accent-hover: #07c067;
  --accent-2: #703bf7;
  --accent-3: #c546a4;
  --button-text: #031006;
  --danger: #ff667a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% -8rem, rgba(112, 59, 247, 0.28), transparent 31rem),
    radial-gradient(circle at 100% 4rem, rgba(76, 175, 80, 0.16), transparent 28rem),
    linear-gradient(180deg, #000 0%, #050605 52%, #000 100%);
}

html,
body,
.mini-app {
  color-scheme: dark;
  background-color: var(--bg);
}

.mini-app,
.app-shell,
.app-view,
.store-head,
.promo-panel,
.catalog-section,
.product-card,
.cart-view,
.checkout-box,
.profile-view,
.profile-card,
.empty-state,
.load-error,
.sheet,
.sheet-panel,
.bottom-nav {
  color: var(--text);
}

.app-shell h1,
.app-shell h2,
.app-shell h3,
.app-shell h4,
.app-shell p,
.app-shell strong,
.app-shell label,
.sheet-panel h2,
.sheet-panel h3,
.sheet-panel p,
.sheet-panel strong,
.sheet-panel label {
  color: inherit;
}

.promo-panel h1,
.section-head h2,
.screen-title h2,
.checkout-head h3,
.profile-card h3,
.card-top h3,
.cart-item-copy h3,
.sheet h2 {
  color: var(--text);
}

.product-copy strong,
.cart-item-copy strong,
.checkout-head strong,
.row-title strong,
.variant-row strong,
.history-total strong {
  color: var(--text);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

[hidden] {
  display: none !important;
}

.app-shell {
  width: min(100%, 620px);
  min-height: 100svh;
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 14px calc(94px + env(safe-area-inset-bottom));
}

.store-head,
.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-lockup {
  display: flex;
  min-width: 0;
  align-items: center;
  border: 0;
  padding: 0;
  color: var(--text);
  background: transparent;
  text-align: left;
}

.brand-lockup img {
  width: min(46vw, 164px);
  height: auto;
  object-fit: contain;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.brand-lockup small,
.eyebrow {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-lockup strong {
  font-size: 19px;
  line-height: 1;
}

.ghost-btn,
.primary-btn,
.danger-btn {
  border: 0;
  border-radius: 8px;
  min-height: 44px;
  padding: 0 15px;
  font-weight: 800;
}

.ghost-btn {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
}

.ghost-btn.full,
.primary-btn {
  width: 100%;
}

.primary-btn {
  color: var(--button-text);
  background: linear-gradient(135deg, #a5ff5d 0%, var(--accent-hover) 48%, var(--accent) 100%);
  box-shadow: 0 12px 30px rgba(7, 192, 103, 0.22);
}

.danger-btn {
  color: #fff;
  background: rgba(255, 102, 122, 0.18);
}

.app-view {
  display: none;
}

.app-view.active {
  display: block;
  animation: rise-in 220ms ease both;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr 132px;
  gap: 9px;
  margin: 16px 0 14px;
}

.search-box,
.region-box,
label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  outline: 0;
}

select option {
  color: var(--text);
  background: var(--surface-2);
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(7, 192, 103, 0.75);
  box-shadow: 0 0 0 3px rgba(7, 192, 103, 0.12);
}

.promo-panel {
  position: relative;
  display: block;
  min-height: 174px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(112, 59, 247, 0.26), transparent 46%),
    linear-gradient(150deg, rgba(76, 175, 80, 0.2), transparent 64%),
    #101110;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.promo-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 100% 0, rgba(76, 175, 80, 0.22), transparent 42%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.24), transparent);
}

.promo-panel > * {
  position: relative;
  z-index: 1;
}

.promo-panel h1 {
  margin: 0;
  max-width: 380px;
  font-size: clamp(32px, 9vw, 48px);
  line-height: 0.96;
  letter-spacing: 0;
}

.promo-panel p {
  margin: 9px 0 0;
  max-width: 360px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.35;
}

.category-tabs,
.segment-row {
  display: flex;
  gap: 8px;
  margin: 14px -14px 0;
  padding: 0 14px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.catalog-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.catalog-filter-head span {
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog-filter-head small {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.catalog-filter-head + .category-tabs {
  margin-top: 8px;
}

.category-tabs::-webkit-scrollbar,
.segment-row::-webkit-scrollbar,
.product-row::-webkit-scrollbar {
  display: none;
}

.category-tabs button,
.segment-row button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 38px;
  padding: 0 13px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
}

.category-tabs button.active,
.segment-row button.active {
  color: var(--button-text);
  border-color: transparent;
  background: linear-gradient(135deg, #a5ff5d, var(--accent-hover));
}

.home-sections {
  display: grid;
  gap: 22px;
  margin-top: 18px;
}

.catalog-section {
  min-width: 0;
}

.section-head,
.screen-title,
.checkout-head,
.row-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.section-head h2,
.screen-title h2,
.checkout-head h3,
.profile-card h3 {
  margin: 0;
  font-size: 23px;
  line-height: 1.08;
}

.screen-title {
  margin: 20px 0 14px;
}

.screen-title .eyebrow {
  margin: 0 0 6px;
}

.section-head span,
.checkout-head p,
.profile-card p,
.subtle,
.notice {
  color: var(--muted);
}

.product-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(176px, 46%);
  gap: 10px;
  margin: 12px -14px 0;
  padding: 0 14px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.result-row {
  margin-top: 14px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.section-grid {
  margin-top: 12px;
}

.product-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    var(--surface);
  animation: rise-in 280ms ease both;
}

.product-card:hover {
  border-color: rgba(76, 175, 80, 0.5);
}

.product-card:active,
.variant-row:active {
  transform: scale(0.985);
}

.product-art {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #070807;
}

.product-art span,
.sheet-product-art span,
.cart-art span {
  color: var(--accent);
  font-weight: 900;
}

.has-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.favorite-btn {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: rgba(0, 0, 0, 0.58);
}

.favorite-btn::before,
.favorite-round::before {
  content: "♥";
}

.favorite-btn.active,
.favorite-round.active {
  color: var(--button-text);
  background: var(--accent-hover);
}

.product-copy {
  display: grid;
  gap: 7px;
  padding: 10px;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.card-top h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.17;
}

.card-top span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 7px;
  color: #c9b8ff;
  background: rgba(112, 59, 247, 0.18);
  font-size: 10px;
  font-weight: 900;
}

.product-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.product-copy strong {
  font-size: 16px;
}

.empty-state,
.load-error,
.profile-card,
.checkout-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
    var(--surface);
}

.empty-state,
.load-error {
  grid-column: 1 / -1;
  padding: 18px;
}

.empty-state h3 {
  margin: 0 0 8px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.cart-items {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.055);
}

.cart-art {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: var(--surface-2);
}

.cart-item-copy h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
}

.cart-item-copy p {
  margin: 5px 0 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.cart-item-copy strong {
  font-size: 13px;
}

.cart-controls {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-controls button,
.cart-controls span {
  border: 0;
  border-radius: 8px;
  min-width: 40px;
  min-height: 38px;
  padding: 0 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

.cart-controls span {
  display: grid;
  place-items: center;
}

.cart-controls button:last-child {
  margin-left: auto;
  color: var(--danger);
}

.checkout-box {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.checkout-head {
  align-items: start;
}

.checkout-head p {
  margin: 4px 0 0;
}

.info-note {
  border-radius: 8px;
  padding: 12px;
  color: #dfffe7;
  background: rgba(76, 175, 80, 0.14);
  line-height: 1.4;
}

.confirm-row {
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 10px;
  color: var(--text);
  font-weight: 500;
}

.confirm-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--accent);
}

.profile-card {
  display: grid;
  gap: 12px;
  margin-bottom: 10px;
  padding: 14px;
}

.profile-select {
  margin: 0;
}

.profile-select span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.profile-select select {
  margin-top: 7px;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.platform-grid button,
.link-list button,
.link-list a {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 48px;
  padding: 0 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
  text-decoration: none;
}

.platform-grid button.active {
  color: var(--button-text);
  border-color: transparent;
  background: linear-gradient(135deg, #a5ff5d, var(--accent-hover));
}

.link-list,
.history-list {
  display: grid;
  gap: 8px;
}

.link-list a,
.link-list button,
.history-item {
  display: flex;
  align-items: center;
}

.history-item {
  justify-content: space-between;
  gap: 12px;
  border-radius: 8px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.055);
}

.history-item span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-order {
  display: block;
  padding: 0;
}

.history-order summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  cursor: pointer;
  list-style: none;
}

.history-order summary::-webkit-details-marker {
  display: none;
}

.history-order summary span {
  display: grid;
  gap: 2px;
  min-width: 0;
  overflow: visible;
  white-space: normal;
}

.history-order summary strong,
.history-order summary small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-order p {
  margin: 0;
  padding: 0 12px 10px;
  color: var(--muted);
}

.history-order ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0 12px 12px;
  list-style: none;
}

.history-order li {
  display: grid;
  gap: 2px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.history-order li span {
  color: var(--text);
  white-space: normal;
}

.history-order li small {
  color: var(--muted);
}

.history-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--line);
}

.status-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 7px 10px;
  color: #081006;
  background: #92ff5d;
  font-size: 11px;
  font-weight: 900;
}

.status-in_progress {
  color: #031018;
  background: #35c8ff;
}

.status-done {
  color: #031207;
  background: #55f184;
}

.status-cancelled {
  color: #1d0909;
  background: #ff7070;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  width: min(100%, 620px);
  padding: 9px 10px calc(9px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.92);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.bottom-nav button {
  position: relative;
  border: 0;
  border-radius: 8px;
  min-height: 48px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 850;
}

.bottom-nav button.active {
  color: #9cff42;
  background: rgba(76, 175, 80, 0.13);
}

.bottom-nav b {
  position: absolute;
  top: 5px;
  right: 12px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  color: var(--button-text);
  background: var(--accent-hover);
  font-size: 11px;
}

.sheet {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  align-items: end;
  pointer-events: none;
}

.sheet[aria-hidden="true"] {
  visibility: hidden;
}

.sheet-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  opacity: 0;
  transition: opacity 220ms ease;
}

.sheet-panel {
  position: relative;
  width: min(100%, 620px);
  max-height: calc(100svh - 24px);
  margin: 0 auto;
  overflow-y: auto;
  padding: 16px 14px calc(18px + env(safe-area-inset-bottom));
  border-radius: 18px 18px 0 0;
  background: #080908;
  box-shadow: 0 -24px 80px rgba(0, 0, 0, 0.5);
  transform: translateY(28px);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}

.sheet[aria-hidden="false"] {
  pointer-events: auto;
}

.sheet[aria-hidden="false"] .sheet-scrim {
  opacity: 1;
}

.sheet[aria-hidden="false"] .sheet-panel {
  transform: translateY(0);
  opacity: 1;
}

.sheet-close {
  float: right;
  border: 0;
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.08);
}

.sheet-product-art {
  clear: both;
  width: min(82vw, 340px);
  aspect-ratio: 1 / 1;
  margin: 8px auto 16px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #050605;
}

.sheet-product-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sheet-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.sheet h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.04;
}

.favorite-round {
  flex: 0 0 auto;
  border: 0;
  border-radius: 8px;
  min-height: 44px;
  padding: 0 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 850;
}

.variant-list {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.variant-list .empty-state {
  grid-column: auto;
}

.variant-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 60px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  text-align: left;
}

.variant-row.active {
  border-color: rgba(7, 192, 103, 0.75);
  background: rgba(76, 175, 80, 0.14);
}

.variant-row span {
  display: grid;
  gap: 2px;
}

.variant-row small,
.notice {
  color: var(--muted);
}

.notice {
  margin: 0 0 14px;
  line-height: 1.4;
}

.sheet-panel .primary-btn {
  width: 100%;
}

.sheet-open {
  overflow: hidden;
}

.doc-page {
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(142, 255, 91, 0.18), transparent 34%),
    linear-gradient(180deg, #111411 0%, #040504 100%);
}

.doc-shell {
  width: min(760px, calc(100% - 28px));
  margin: 0 auto;
  padding: 26px 0 52px;
}

.doc-shell .brand-lockup {
  display: inline-flex;
}

.doc-card {
  display: grid;
  gap: 14px;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    var(--surface);
}

.doc-card h1,
.doc-card h2,
.doc-card p,
.doc-card ul {
  margin: 0;
}

.doc-card h1 {
  font-size: 30px;
  line-height: 1.05;
}

.doc-card h2 {
  margin-top: 8px;
  font-size: 18px;
}

.doc-card p,
.doc-card li {
  color: var(--muted);
  line-height: 1.55;
}

.doc-card ul {
  display: grid;
  gap: 8px;
  padding-left: 20px;
}

.doc-card a {
  color: var(--accent);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 430px) {
  .search-row {
    grid-template-columns: 1fr;
  }

  .product-grid {
    gap: 8px;
  }

  .product-row {
    grid-auto-columns: minmax(168px, 58%);
  }

  .platform-grid {
    grid-template-columns: 1fr;
  }

  .store-head {
    align-items: flex-start;
  }

  .ghost-btn {
    padding: 0 12px;
  }
}

.admin-app {
  color-scheme: dark;
  color: var(--text);
  background:
    radial-gradient(circle at 0 -10rem, rgba(112, 59, 247, 0.24), transparent 32rem),
    radial-gradient(circle at 100% 0, rgba(76, 175, 80, 0.14), transparent 30rem),
    #000;
}

.admin-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 50px;
}

.admin-head {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.admin-head h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
}

.admin-app .subtle {
  color: var(--muted);
}

.login-panel,
.editor-panel,
.admin-side,
.orders-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    var(--surface);
}

.login-panel {
  margin-top: 24px;
  padding: 22px;
}

.login-row {
  display: flex;
  gap: 10px;
}

.admin-workspace {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
  margin-top: 22px;
}

.admin-side {
  align-self: start;
  padding: 14px;
}

.side-block + .side-block {
  margin-top: 22px;
}

.side-title,
.editor-top,
.variant-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.side-title h2,
.editor-top h2,
.variant-head h3 {
  margin: 0;
}

.admin-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.admin-search {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.admin-search span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-search input {
  width: 100%;
}

.admin-empty {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.admin-list-item {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-list-item.active {
  border-color: var(--accent-hover);
  background: rgba(76, 175, 80, 0.16);
}

.admin-list-item span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-list-item small {
  color: var(--muted);
}

.admin-list-main {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.category-order-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.mini-action-btn {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

.order-btn {
  min-width: 36px;
  padding: 8px 9px;
}

.order-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.editor-panel,
.orders-panel {
  padding: 18px;
}

.editor-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.editor-form h3 {
  margin: 0;
}

.form-grid,
.variant-edit-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.wide,
.span-2 {
  grid-column: 1 / -1;
}

.check-row,
.variant-check {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-row input,
.variant-check input {
  width: auto;
}

.variant-edit-row {
  align-items: end;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 12px;
}

.variant-editor {
  display: grid;
  gap: 12px;
}

.admin-image-tools {
  display: grid;
  gap: 10px;
}

.admin-image-preview {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 96px;
  overflow: hidden;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.admin-image-preview img {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  background: #050605;
  object-fit: contain;
}

.admin-image-preview span {
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.35;
}

.toggle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0;
}

.toggle-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.toggle-grid input {
  width: auto;
}

.orders-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.order-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.055);
}

.order-item p {
  margin: 6px 0;
  color: var(--muted);
  line-height: 1.35;
}

.order-item small,
.order-item > span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.order-item > span {
  flex: 0 0 auto;
  text-align: right;
}

@media (max-width: 860px) {
  .admin-workspace,
  .form-grid,
  .toggle-grid,
  .variant-edit-row {
    grid-template-columns: 1fr;
  }

  .admin-shell {
    width: min(100% - 24px, 1180px);
  }

  .admin-image-preview {
    grid-template-columns: 1fr;
  }

  .order-item {
    display: grid;
  }

  .order-item > span {
    text-align: left;
  }
}
