:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #111417;
  color: #eef2f3;
  --surface: #1b2024;
  --border: #30383e;
  --muted: #96a4aa;
  --accent: #74d6c0;
  --danger: #ff9c91;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: #111417; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: min(1180px, calc(100% - 28px)); margin: 0 auto; padding: 24px 0 56px; }
.topbar, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar { border-bottom: 1px solid var(--border); padding-bottom: 18px; margin-bottom: 22px; }
.eyebrow { color: var(--accent); font-size: 11px; letter-spacing: .14em; }
h1, h2 { margin: 0; }
h1 { font-size: clamp(26px, 5vw, 42px); letter-spacing: 0; }
h2 { font-size: 18px; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 18px; }
.narrow { max-width: 460px; margin: 46px auto; }
.stack { display: grid; gap: 13px; margin-top: 16px; }
label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; }
input, select { width: 100%; min-height: 42px; padding: 9px 11px; color: #fff; background: #121619; border: 1px solid var(--border); border-radius: 6px; }
button, .ghost { border: 1px solid var(--border); border-radius: 6px; padding: 9px 13px; color: #eef2f3; background: #242b30; cursor: pointer; text-decoration: none; }
button:hover, .ghost:hover { border-color: var(--accent); }
.primary { color: #09231f; background: var(--accent); border-color: var(--accent); font-weight: 700; }
.secondary { background: transparent; }
.muted { color: var(--muted); font-size: 13px; }
.error { min-height: 18px; color: var(--danger); }
.task-list { display: grid; gap: 8px; margin-top: 16px; }
.task-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 6px; cursor: pointer; }
.task-item:hover { border-color: var(--accent); }
.asset-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 12px 0 18px; }
.asset-choice { min-width: 0; padding: 6px; text-align: left; background: #121619; }
.asset-choice.selected { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.asset-choice img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; background: #0c0f10; }
.asset-choice span { display: block; margin-top: 6px; font-size: 12px; line-height: 1.35; }
.status { color: var(--accent); font-size: 12px; }
.output-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.output-card { margin: 0; }
.output-card img { display: block; width: 100%; height: auto; border-radius: 6px; background: #0c0f10; user-select: auto; -webkit-user-select: auto; }
.output-card figcaption { color: var(--muted); font-size: 12px; margin-top: 6px; }
.copy-area { margin-top: 20px; }
pre { white-space: pre-wrap; color: #dce4e6; background: #121619; padding: 12px; border-radius: 6px; overflow: auto; }
.metric-grid { display: grid; gap: 10px; margin-top: 14px; }
.metric { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); color: var(--muted); }
.metric strong { color: #fff; }
@media (max-width: 760px) {
  .shell { width: min(100% - 20px, 620px); padding-top: 14px; }
  .grid.two, .output-grid { grid-template-columns: 1fr; }
  .asset-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel { padding: 14px; }
  .topbar { align-items: flex-start; }
  .output-card img { max-height: none; }
}
