.admin-body .admin-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.admin-panel {
  max-width: 32rem;
}

.admin-login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.admin-login-form label,
.edit-form label,
.admin-filters label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--brand-text-muted);
}

.admin-login-form input,
.edit-form input,
.edit-form textarea,
.admin-filters select {
  background: rgba(16, 20, 44, 0.9);
  border: 1px solid rgba(0, 246, 255, 0.2);
  border-radius: 0.5rem;
  color: var(--brand-text);
  padding: 0.65rem 0.75rem;
  font: inherit;
}

.admin-error {
  color: #ff6b9d;
  font-size: 0.9rem;
}

.nav-btn {
  background: transparent;
  border: 1px solid rgba(0, 246, 255, 0.25);
  color: var(--brand-text-muted);
  border-radius: 0.375rem;
  padding: 0.35rem 0.6rem;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.nav-btn:hover {
  color: var(--brand-accent);
}

.btn-primary,
.btn-secondary,
.btn-launch,
.btn-text {
  font: inherit;
  cursor: pointer;
  border-radius: 0.5rem;
  padding: 0.7rem 1rem;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #00f6ff, #00b8c4);
  color: #020418;
  font-weight: 700;
}

.btn-secondary {
  background: rgba(0, 246, 255, 0.08);
  color: var(--brand-accent);
  border: 1px solid rgba(0, 246, 255, 0.25);
}

.btn-launch {
  background: linear-gradient(135deg, #f000b8, #a00080);
  color: #fff;
  font-weight: 700;
}

.btn-launch:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-text {
  background: none;
  color: var(--brand-accent);
  padding: 0.25rem 0;
  margin-bottom: 1rem;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 1.25rem;
}

.admin-toolbar-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.admin-filters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border: 1px solid rgba(0, 246, 255, 0.12);
  border-radius: 0.75rem;
  background: rgba(16, 20, 44, 0.45);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.product-card {
  border: 1px solid rgba(0, 246, 255, 0.15);
  border-radius: 0.85rem;
  background: rgba(16, 20, 44, 0.55);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
  text-align: left;
  color: inherit;
  font: inherit;
  width: 100%;
}

.product-card:hover {
  border-color: rgba(0, 246, 255, 0.45);
  transform: translateY(-2px);
}

.product-card-warehouse {
  opacity: 0.75;
  border-style: dashed;
}

.mode-tabs {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0 0.75rem;
  flex-wrap: wrap;
}

.mode-tab {
  font: inherit;
  cursor: pointer;
  padding: 0.55rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(0, 246, 255, 0.25);
  background: transparent;
  color: var(--brand-text-muted);
}

.mode-tab.active {
  background: rgba(0, 246, 255, 0.15);
  color: var(--brand-accent);
  border-color: var(--brand-accent);
  font-weight: 700;
}

.customer-sim-card h2 {
  color: var(--brand-accent);
}

.meta-line {
  font-size: 0.85rem;
  color: var(--brand-text-muted);
  word-break: break-all;
  margin-top: 1rem;
}

.product-card-thumb {
  height: 120px;
  border-radius: 0.5rem;
  background: linear-gradient(
    135deg,
    rgba(0, 246, 255, 0.12),
    rgba(240, 0, 184, 0.12)
  );
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 0.75rem;
  color: var(--brand-text-muted);
}

.product-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.product-card p {
  margin: 0;
  color: var(--brand-text-muted);
  font-size: 0.88rem;
  flex: 1;
}

.product-card .price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.price-free {
  color: var(--brand-accent);
  font-weight: 600;
}

.badge-muted {
  background: rgba(156, 163, 175, 0.15);
  color: var(--brand-text-muted);
}

.badge-priority {
  background: rgba(240, 0, 184, 0.15);
  color: #ff7ad9;
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 320px);
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 900px) {
  .product-layout {
    grid-template-columns: 1fr;
  }
}

.product-hero-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 600px) {
  .product-hero-card {
    grid-template-columns: 1fr;
  }
}

.product-thumb {
  height: 140px;
  border-radius: 0.75rem;
  background: rgba(0, 246, 255, 0.08);
  border: 1px solid rgba(0, 246, 255, 0.15);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--brand-text-muted);
  font-size: 0.8rem;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-price {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0.5rem 0 0;
}

.product-price-free {
  color: var(--brand-accent);
  margin: 0.25rem 0 0;
}

.admin-card {
  border: 1px solid rgba(0, 246, 255, 0.12);
  border-radius: 0.85rem;
  background: rgba(16, 20, 44, 0.5);
  padding: 1.15rem 1.25rem;
  margin-bottom: 1rem;
}

.admin-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  color: var(--brand-accent);
}

.admin-card h3 {
  margin: 1rem 0 0.5rem;
  font-size: 0.95rem;
}

.prose {
  color: var(--brand-text-muted);
  white-space: pre-wrap;
  font-size: 0.95rem;
}

.edit-form {
  display: grid;
  gap: 0.75rem;
}

.sticky-card {
  position: sticky;
  top: 5rem;
}

.aside-hint {
  font-size: 0.82rem;
  color: var(--brand-text-muted);
  margin: 0 0 0.75rem;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.checklist label {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.9rem;
  cursor: pointer;
}

.checklist-dogfood {
  margin-top: 0.5rem;
  padding-top: 0.65rem;
  border-top: 1px dashed rgba(240, 0, 184, 0.35);
}

.aside-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.action-result {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 0.5rem;
  font-size: 0.75rem;
  overflow: auto;
  max-height: 220px;
  color: #b8f7ff;
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.related-list button {
  text-align: left;
  background: rgba(0, 246, 255, 0.06);
  border: 1px solid rgba(0, 246, 255, 0.15);
  color: var(--brand-text);
  border-radius: 0.4rem;
  padding: 0.5rem 0.65rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
}

.related-list button:hover {
  border-color: var(--brand-accent);
}

/* ——— Build pipeline list ——— */

.pipeline-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
}

.ps-pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 246, 255, 0.2);
  background: rgba(16, 20, 44, 0.7);
  color: var(--brand-text-muted);
}

.ps-total {
  border-color: rgba(255, 255, 255, 0.12);
}

.pipeline-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.pipeline-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(0, 246, 255, 0.14);
  background: rgba(16, 20, 44, 0.55);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
}

.pipeline-row:hover {
  border-color: rgba(0, 246, 255, 0.45);
  background: rgba(0, 246, 255, 0.06);
  transform: translateX(2px);
}

.pipeline-row-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  min-width: 0;
  flex: 1;
}

.pipeline-name {
  font-weight: 700;
  font-size: 1rem;
}

.pipeline-meta {
  font-size: 0.8rem;
  color: var(--brand-text-muted);
  width: 100%;
}

@media (min-width: 720px) {
  .pipeline-meta {
    width: auto;
  }
}

.pipeline-row-side {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.8rem;
  color: var(--brand-text-muted);
  flex-shrink: 0;
}

.pipeline-arrow {
  color: var(--brand-accent);
  font-weight: 700;
}

.stage-badge-needs_build,
.ps-pill.stage-needs_build {
  background: rgba(255, 170, 0, 0.12);
  color: #ffc14d;
  border-color: rgba(255, 170, 0, 0.35);
}

.stage-badge-ready_to_test,
.ps-pill.stage-ready_to_test {
  background: rgba(0, 246, 255, 0.12);
  color: #7df9ff;
  border-color: rgba(0, 246, 255, 0.35);
}

.stage-badge-test_passed,
.ps-pill.stage-test_passed {
  background: rgba(80, 255, 140, 0.12);
  color: #7dffb0;
  border-color: rgba(80, 255, 140, 0.35);
}

.stage-badge-launched,
.ps-pill.stage-launched {
  background: rgba(240, 0, 184, 0.12);
  color: #ff7ad9;
  border-color: rgba(240, 0, 184, 0.35);
}

/* ——— Product workbench ——— */

.workbench-card h2 {
  font-size: 1.1rem;
}

.workbench-card h3 {
  margin: 1rem 0 0.45rem;
  font-size: 0.92rem;
  color: var(--brand-text);
}

.state-dl {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.65rem 1rem;
  margin: 0 0 1rem;
}

.state-dl div {
  padding: 0.5rem 0.65rem;
  border-radius: 0.4rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(0, 246, 255, 0.08);
}

.state-dl dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand-text-muted);
  margin: 0 0 0.2rem;
}

.state-dl dd {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.checklist-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.check-pill {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.check-pill.ok {
  background: rgba(80, 255, 140, 0.12);
  color: #7dffb0;
  border-color: rgba(80, 255, 140, 0.3);
}

.check-pill.no {
  background: rgba(255, 255, 255, 0.04);
  color: var(--brand-text-muted);
  border-color: rgba(255, 255, 255, 0.08);
}

.protocol-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--brand-text-muted);
  font-size: 0.92rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.protocol-list li {
  line-height: 1.45;
}

.protocol-list li strong {
  color: var(--brand-text);
}

.gate-banner {
  padding: 0.75rem 0.9rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.gate-locked {
  background: rgba(255, 170, 0, 0.1);
  border: 1px solid rgba(255, 170, 0, 0.35);
  color: #ffc14d;
}

.gate-open {
  background: rgba(80, 255, 140, 0.1);
  border: 1px solid rgba(80, 255, 140, 0.35);
  color: #7dffb0;
}
