/* YOOZ VAPE ops admin — Chinese workspace, original styling (not a copy of another store) */
body.ops-mode {
  background: #efe8dc;
  overflow: hidden;
}
body.ops-mode .top-compliance-bar,
body.ops-mode .site-header,
body.ops-mode .preview-strip,
body.ops-mode .site-footer,
body.ops-mode .promo-dock,
body.ops-mode .floating-line,
body.ops-mode #appMain,
body.ops-mode #ageGateModal,
body.ops-mode #cartDrawer {
  display: none !important;
}
body.ops-mode #opsApp {
  display: block;
}

#opsApp {
  display: none;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Noto Sans JP", sans-serif;
  color: #1a1714;
  min-height: 100vh;
}

.ops-shell {
  display: grid;
  grid-template-columns: 228px 1fr;
  min-height: 100vh;
}
.ops-side {
  background: #161310;
  color: #f3ece3;
  padding: 22px 16px 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ops-mark {
  font-family: "Shippori Mincho", "Noto Serif SC", serif;
  font-size: 22px;
  letter-spacing: .06em;
  padding: 0 10px 2px;
}
.ops-mark span { color: #c4a36a; }
.ops-sub {
  font-size: 12px;
  color: #b9b0a4;
  padding: 0 10px 16px;
}
.ops-nav {
  appearance: none;
  border: 0;
  background: transparent;
  color: #ded6cb;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.ops-nav:hover { background: rgba(255,255,255,.06); color: #fff; }
.ops-nav.is-on { background: #c4a36a; color: #161310; }
.ops-badge {
  min-width: 18px;
  height: 18px;
  border-radius: 99px;
  background: #b42318;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}
.ops-nav.is-on .ops-badge { background: #7a2e3a; }
.ops-side .spacer { flex: 1; }
.ops-side-foot { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; }
.ops-side-foot button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #b9b0a4;
  text-align: left;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}
.ops-side-foot button:hover { color: #fff; background: rgba(255,255,255,.06); }

.ops-main { overflow: auto; height: 100vh; padding: 0 0 48px; }
.ops-top {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(239, 232, 220, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e4d9c8;
  padding: 18px 28px 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
}
.ops-top h1 { margin: 0 0 4px; font-size: 24px; font-weight: 800; }
.ops-top p { margin: 0; color: #6b6358; font-size: 13.5px; max-width: 62ch; }
.ops-body { padding: 20px 28px 0; }

.ops-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.ops-stat {
  background: #fff;
  border: 1px solid #e4d9c8;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 8px 20px rgba(40,24,16,.05);
}
.ops-stat .k { font-size: 12px; color: #6b6358; }
.ops-stat .v { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; margin: 4px 0 2px; }
.ops-stat .s { font-size: 12px; color: #6b6358; }

.ops-card {
  background: #fff;
  border: 1px solid #e4d9c8;
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: 0 8px 20px rgba(40,24,16,.04);
}
.ops-card h2 { margin: 0 0 12px; font-size: 16px; }
.ops-note {
  background: #f6efe2;
  border: 1px solid #e4d9c8;
  color: #5c4a32;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 14px;
}

.ops-table-wrap { overflow: auto; }
.ops-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ops-table th, .ops-table td {
  text-align: left;
  padding: 9px 8px;
  border-bottom: 1px solid #eee6d9;
  vertical-align: middle;
}
.ops-table th { font-size: 12px; color: #6b6358; font-weight: 700; }
.ops-table tr.clickable { cursor: pointer; }
.ops-table tr.clickable:hover { background: rgba(196,163,106,.1); }
.ops-empty { color: #6b6358; font-size: 14px; padding: 12px 0; }

.ops-pill {
  display: inline-block;
  border-radius: 99px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  background: #f1ebe1;
  color: #3f3a34;
}
.ops-pill.on { background: #e5f4ec; color: #0f7a4f; }
.ops-pill.out, .ops-pill.warn { background: #fde8e6; color: #b42318; }
.ops-pill.off { background: #eee; color: #666; }
.ops-pill.new { background: #fff4d6; color: #9a6700; }
.ops-pill.ok { background: #e5f4ec; color: #0f7a4f; }

.ops-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.ops-btn {
  appearance: none;
  border: 1px solid #e4d9c8;
  background: #fff;
  color: #1a1714;
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.ops-btn:hover { border-color: #c4a36a; }
.ops-btn.primary { background: #161310; color: #fff; border-color: #161310; }
.ops-btn.gold { background: #c4a36a; color: #161310; border-color: #c4a36a; }
.ops-btn.danger { color: #b42318; border-color: #e8b4ae; }
.ops-btn:disabled { opacity: .45; cursor: not-allowed; }
.ops-chip {
  appearance: none;
  border: 1px solid #e4d9c8;
  background: #fff;
  border-radius: 99px;
  padding: 5px 11px;
  font-size: 12.5px;
  cursor: pointer;
}
.ops-chip.is-on { background: #161310; color: #fff; border-color: #161310; }

.ops-form { display: grid; gap: 12px; }
.ops-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ops-field { display: flex; flex-direction: column; gap: 5px; }
.ops-field.span2 { grid-column: 1 / -1; }
.ops-field label { font-size: 12.5px; font-weight: 700; }
.ops-field input, .ops-field select, .ops-field textarea {
  border: 1px solid #e4d9c8;
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  background: #fff;
}
.ops-field textarea { min-height: 76px; resize: vertical; }
.ops-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.ops-preview {
  width: 92px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  background: #f3ebe2;
  border: 1px solid #e4d9c8;
}

.ops-bars { display: flex; flex-direction: column; gap: 8px; }
.ops-bar { display: grid; grid-template-columns: minmax(80px, 1.2fr) 1fr 48px; gap: 10px; align-items: center; font-size: 13px; }
.ops-bar-track { height: 8px; background: #efe8dc; border-radius: 99px; overflow: hidden; }
.ops-bar-fill { height: 100%; background: #c4a36a; border-radius: 99px; }
.ops-dl { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; font-size: 13.5px; }
.ops-dl dt { color: #6b6358; }
.ops-muted { color: #6b6358; font-size: 13px; }
.ops-stock-input { width: 88px; text-align: right; }

@media (max-width: 980px) {
  .ops-shell { grid-template-columns: 1fr; }
  .ops-side { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px; gap: 6px; }
  .ops-sub, .ops-side .spacer { display: none; }
  .ops-side-foot { flex-direction: row; padding: 0; }
  .ops-main { height: auto; overflow: visible; }
  .ops-stats { grid-template-columns: 1fr 1fr; }
  .ops-fields { grid-template-columns: 1fr; }
  .ops-top, .ops-body { padding-left: 16px; padding-right: 16px; }
}
