:root {
  color-scheme: dark;
  --bg: #0f1115;
  --panel: rgba(21, 24, 31, 0.92);
  --panel-2: #1b1f28;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4efe6;
  --muted: #a4acbc;
  --accent: #d5b07a;
  --danger: #df8a82;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(213, 176, 122, 0.08), transparent 30%),
    linear-gradient(180deg, #111319, #090b0f);
}

.shell {
  width: min(1320px, calc(100% - 32px));
  margin: 24px auto 40px;
}

.hero,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero {
  padding: 30px;
  margin-bottom: 20px;
}

.eyebrow,
.label {
  margin: 0 0 8px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 0.95;
  max-width: 760px;
}

.lead {
  margin-top: 16px;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.7;
}

.status-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.status-card,
.meta-block {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.status-card strong {
  font-size: 1.05rem;
}

.actions {
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #dbc08c, #b58956);
  color: #161616;
  text-decoration: none;
  font-weight: 700;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  gap: 18px;
  padding: 18px;
}

.viewer,
.meta-panel {
  min-width: 0;
}

.viewer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 700;
}

.image-frame {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel-2);
}

#preview-image {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 32px;
  text-align: center;
  color: var(--muted);
  line-height: 1.7;
}

.meta-panel {
  display: grid;
  gap: 14px;
}

.direct-preview-block {
  overflow: hidden;
}

.small-copy {
  color: var(--muted);
  line-height: 1.6;
}

.variant-grid {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.variant-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.variant-copy {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.variant-copy h3 {
  margin: 0;
  font-size: 1rem;
}

.variant-meta {
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.variant-frame {
  overflow: hidden;
  min-height: 220px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
}

.variant-frame img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.variant-footer {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.text-link {
  color: var(--accent);
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.meta-block p:last-child,
.variant-footer p:last-child {
  color: var(--muted);
  line-height: 1.7;
  word-break: break-word;
}

.error {
  color: var(--danger) !important;
}

@media (max-width: 960px) {
  .status-row,
  .layout {
    grid-template-columns: 1fr;
  }

  .image-frame {
    min-height: 420px;
  }
}
