:root {
  --zscn-bg: #0f1724;
  --zscn-panel: #182233;
  --zscn-ink: #f4efe4;
  --zscn-muted: #b7c0cc;
  --zscn-line: #2a384c;
  --zscn-accent: #d4a017;
  --zscn-good: #7dce9a;
  --zscn-warn: #e2b657;
  --zscn-bad: #e07a7a;
  --zscn-space: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--zscn-bg); color: var(--zscn-ink); font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif; }
body { min-height: 100vh; }

.zscn-top, .zscn-grid, .zscn-panel, .zscn-hero, .zscn-actions { width: 100%; }
.zscn-top {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--zscn-line);
}
.zscn-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.zscn-logo {
  display: block;
  height: 64px;
  width: 62px;
  object-fit: contain;
  border-radius: 12px;
  background: #000;
}
.zscn-brand span { color: var(--zscn-accent); }
.zscn-nav { display: flex; gap: 14px; flex-wrap: wrap; }
.zscn-nav a { color: var(--zscn-muted); text-decoration: none; }
.zscn-wrap { padding: 20px; display: grid; gap: 16px; }
.zscn-hero, .zscn-panel {
  background: var(--zscn-panel);
  border: 1px solid var(--zscn-line);
  border-radius: 18px;
  padding: 18px;
}
.zscn-kicker { color: var(--zscn-accent); text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; margin: 0 0 8px; }
.zscn-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.zscn-panel h2 { margin: 0 0 12px; font-size: 20px; }
.zscn-actions, .zscn-row { display: flex; flex-wrap: wrap; gap: 8px; }
label { display: grid; gap: 6px; font-size: 13px; color: var(--zscn-muted); flex: 1 1 160px; }
input, select, button, textarea {
  border-radius: 10px;
  border: 1px solid var(--zscn-line);
  background: #101826;
  color: var(--zscn-ink);
  padding: 10px 12px;
  font: inherit;
}
button {
  background: var(--zscn-accent);
  color: #1b1404;
  border: 0;
  font-weight: 700;
  cursor: pointer;
}
button.secondary { background: transparent; color: var(--zscn-ink); border: 1px solid var(--zscn-line); }
button:disabled { opacity: 0.5; cursor: not-allowed; }
.zscn-note, .zscn-status { color: var(--zscn-muted); font-size: 14px; }
.zscn-badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 10px; font-size: 12px; background: #101826; }
.zscn-badge.good { color: var(--zscn-good); }
.zscn-badge.warn { color: var(--zscn-warn); }
.zscn-badge.bad { color: var(--zscn-bad); }
.zscn-preview, .zscn-player {
  width: 100%;
  min-height: 180px;
  background: #0b1018;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.zscn-preview video, .zscn-player video { width: 100%; height: auto; display: block; background: #000; }
.zscn-preview-grid, .zscn-card {
  display: grid;
  gap: 10px;
}
.zscn-preview-grid { grid-template-columns: 1fr 1fr; }
.zscn-card {
  background: #101826;
  border: 1px solid var(--zscn-line);
  border-radius: 12px;
  padding: 10px 12px;
  flex: 1 1 140px;
}
.zscn-player #live-badge { position: absolute; top: 10px; left: 10px; z-index: 1; }
.zscn-player-logo {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 1;
  height: 44px;
  width: 42px;
  object-fit: contain;
  border-radius: 8px;
  background: #000;
  pointer-events: none;
}
.zscn-overlay {
  display: grid;
  grid-template-columns: 65fr 35fr;
  gap: 10px;
  align-items: stretch;
}
.zscn-product {
  min-height: 180px;
  border-radius: 12px;
  background: #101826 center/cover no-repeat;
  padding: 14px;
}
.zscn-product.full { grid-column: 1 / -1; }
.zscn-cta[disabled], .zscn-cta.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}
pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: #101826;
  border-radius: 12px;
  padding: 12px;
  font-size: 12px;
  max-height: 240px;
  overflow: auto;
}
@media (max-width: 960px) {
  .zscn-grid, .zscn-overlay, .zscn-preview-grid { grid-template-columns: 1fr; }
  .zscn-logo { height: 56px; width: 54px; }
  .zscn-player-logo { height: 36px; width: 35px; }
}
