:root {
  color-scheme: dark;
  --bg: #081018;
  --panel: rgba(15, 22, 32, 0.94);
  --panel-strong: rgba(18, 27, 39, 0.98);
  --panel-soft: rgba(10, 15, 22, 0.72);
  --border: rgba(98, 116, 134, 0.2);
  --text: #eef3f8;
  --muted: #93a4b6;
  --olive: #839b3f;
  --olive-soft: rgba(131, 155, 63, 0.16);
  --info: #3ea9db;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --display: "Space Grotesk", sans-serif;
  --mono: "JetBrains Mono", monospace;
  --shadow: 0 20px 56px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(131, 155, 63, 0.09), transparent 24%),
    radial-gradient(circle at 88% 12%, rgba(62, 169, 219, 0.08), transparent 24%),
    linear-gradient(180deg, #081018 0%, #060b11 100%);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
}

body {
  overflow-x: hidden;
}

.producer-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(108, 122, 139, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 122, 139, 0.14) 1px, transparent 1px);
  background-size: 34px 34px;
}

.producer-shell {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 50px;
}

.producer-topbar,
.producer-summary,
.producer-controls,
.producer-main,
.status-banner,
.summary-card,
.sidepanel-card,
.profile-card,
.product-card,
.profile-panel,
.form-panel,
.control-block,
.board-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--panel-strong), rgba(9, 15, 23, 0.98));
  box-shadow: var(--shadow);
}

.producer-topbar,
.producer-summary,
.producer-controls,
.producer-main {
  animation: fadeUp 620ms ease both;
}

.producer-topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  border-radius: 24px;
  padding: 28px;
  margin-bottom: 16px;
}

.eyebrow,
.side-label,
.summary-card span,
.control-group label,
.status-pill,
.meta-chip,
.product-chip,
.action-link,
.action-button,
.form-field span,
.board-card span,
.control-block span {
  font-family: var(--mono);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--olive);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

h1,
h2,
h3,
strong {
  margin: 0;
  font-family: var(--display);
}

h1 {
  font-size: clamp(34px, 5vw, 62px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  max-width: 12ch;
}

.lede {
  margin: 16px 0 0;
  max-width: 60ch;
  color: var(--muted);
  line-height: 1.65;
}

.topbar-actions,
.control-actions,
.form-actions,
.profile-actions,
.product-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.action-link,
.action-button,
.control-group select,
.control-group input,
.form-field input,
.form-field textarea,
.form-field select {
  border-radius: 12px;
  border: 1px solid rgba(98, 116, 134, 0.24);
  background: var(--panel-soft);
  color: var(--text);
}

.action-link,
.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 12px 14px;
  font-size: 12px;
}

.action-button {
  min-height: 46px;
  cursor: pointer;
}

.action-button.primary {
  background: var(--olive);
  border-color: transparent;
  color: #08110a;
  font-weight: 700;
}

.action-button.warn {
  background: rgba(245, 158, 11, 0.16);
  color: #ffd089;
}

.producer-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.summary-card,
.control-block,
.board-card,
.profile-card,
.product-card,
.profile-panel,
.form-panel,
.sidepanel-card,
.status-banner {
  border-radius: 20px;
}

.summary-card {
  padding: 16px;
}

.summary-card span,
.control-group label,
.form-field span,
.board-card span,
.control-block span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.summary-card strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(24px, 3vw, 30px);
}

.producer-controls {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 14px;
  padding: 16px;
  margin-bottom: 16px;
  border-radius: 18px;
}

.control-group,
.form-field {
  display: grid;
  gap: 8px;
}

.control-group select,
.control-group input,
.form-field input,
.form-field textarea,
.form-field select {
  min-height: 46px;
  padding: 0 14px;
  font: inherit;
}

.form-field textarea {
  padding: 14px;
  min-height: 140px;
  resize: vertical;
}

.producer-main {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
}

.producer-sidepanel {
  display: grid;
  gap: 14px;
}

.sidepanel-card {
  padding: 18px;
}

.sidepanel-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.status-card strong {
  display: block;
  margin-top: 10px;
  font-size: 20px;
}

.status-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.dashboard-layout,
.detail-layout,
.create-layout {
  align-items: start;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
  margin-bottom: 14px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.profiles-grid,
.products-grid,
.boards-grid {
  display: grid;
  gap: 14px;
}

.profiles-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.products-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.boards-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-card,
.product-card,
.profile-panel,
.form-panel,
.board-card {
  padding: 18px;
}

.profile-card header,
.product-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
}

.profile-card h3,
.product-card h3,
.profile-panel h2,
.form-panel h2 {
  font-size: 22px;
  line-height: 1.08;
}

.card-link {
  color: var(--text);
  text-decoration: none;
}

.card-link:hover {
  color: #c9d79b;
}

.profile-card small,
.product-card small,
.profile-description,
.product-description,
.panel-description,
.board-card p,
.control-block p,
.empty-state {
  color: var(--muted);
}

.profile-card small,
.product-card small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
}

.profile-description,
.product-description,
.panel-description,
.board-card p,
.control-block p,
.empty-state,
.status-banner p {
  line-height: 1.65;
}

.status-pill,
.meta-chip,
.product-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.status-pill.pending {
  background: rgba(245, 158, 11, 0.14);
  color: #ffd089;
}

.status-pill.verified {
  background: rgba(34, 197, 94, 0.14);
  color: #a6f2bc;
}

.status-pill.suspended {
  background: rgba(239, 68, 68, 0.15);
  color: #ffb0b0;
}

.meta-row,
.product-meta,
.panel-meta,
.board-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.meta-chip,
.product-chip {
  background: rgba(131, 155, 63, 0.08);
  border: 1px solid rgba(131, 155, 63, 0.18);
  color: var(--text);
}

.board-card strong,
.control-block strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
}

.board-card p,
.control-block p {
  margin: 10px 0 0;
}

.profile-panel,
.form-panel {
  display: grid;
  gap: 18px;
}

.panel-hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.panel-hero p {
  margin: 12px 0 0;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-field-full {
  grid-column: 1 / -1;
}

.board-stack {
  display: grid;
  gap: 14px;
}

.empty-state {
  border: 1px dashed rgba(98, 116, 134, 0.28);
  padding: 28px;
  text-align: center;
  border-radius: 20px;
}

.status-banner {
  margin-top: 18px;
  padding: 14px;
}

.status-banner strong {
  display: block;
  margin-bottom: 6px;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 480ms ease, transform 480ms ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 80ms; }
.delay-2 { transition-delay: 140ms; }
.delay-3 { transition-delay: 200ms; }

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .producer-summary,
  .producer-controls,
  .producer-main,
  .profiles-grid,
  .products-grid,
  .boards-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .producer-topbar,
  .section-head,
  .panel-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .control-actions {
    align-items: stretch;
  }
}

@media (max-width: 640px) {
  .producer-shell {
    width: min(100%, calc(100% - 20px));
    padding-top: 20px;
  }

  .producer-topbar,
  .producer-controls,
  .summary-card,
  .sidepanel-card,
  .profile-card,
  .product-card,
  .profile-panel,
  .form-panel,
  .board-card,
  .status-banner {
    border-radius: 18px;
  }
}
