:root {
  --bg: #14161a;
  --panel: #1c1f26;
  --line: #2c313b;
  --text: #e8eaf0;
  --muted: #8b93a5;
  --accent: #d98a4a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  min-height: 100vh;
}

.stage {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 32px;
  gap: 16px;
}

.render {
  width: min(720px, 100%);
  aspect-ratio: 4 / 3;
  background: #0f1114;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.render img { width: 100%; height: 100%; object-fit: cover; }

.placeholder { color: var(--muted); text-align: center; padding: 24px; }

.hint { color: var(--muted); font-size: 13px; }

.panel {
  background: var(--panel);
  border-left: 1px solid var(--line);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

h1 { font-size: 20px; margin: 0; }

#options { display: flex; flex-direction: column; gap: 14px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; color: var(--muted); }

.field select {
  background: #0f1114;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  font: inherit;
}

.summary {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.price { font-size: 26px; font-weight: 600; }
.price .price-currency { font-size: 13px; color: var(--muted); margin-left: 6px; }

#order {
  background: var(--accent);
  color: #1a1208;
  border: 0;
  border-radius: 8px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.bom { border-top: 1px solid var(--line); padding-top: 16px; }
.bom summary { cursor: pointer; color: var(--muted); font-size: 14px; }
#bom-list { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; }

@media (max-width: 820px) {
  .layout { grid-template-columns: 1fr; }
  .panel { border-left: 0; border-top: 1px solid var(--line); }
}