:root {
  --ink: #1c1917;
  --mute: #8a8278;
  --gold: #c4a574;
  --deep: #12100e;
  --panel: #1b1815;
  --line: #2e2923;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.app {
  background: var(--deep);
  color: #efe8dc;
  font-family: Outfit, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--gold); text-decoration: none; }
.serif { font-family: "Cormorant Garamond", Georgia, serif; }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }

.app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: #161310;
  gap: 12px;
}
.brand { color: #efe8dc; font-size: 22px; }
.top-meta {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}

.gate {
  min-height: calc(100vh - 56px);
  display: grid;
  place-items: center;
  padding: 28px 18px 40px;
}
.prompt-card {
  width: min(640px, 100%);
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 28px;
}
.prompt-card h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: clamp(32px, 6vw, 46px);
  line-height: 1.02;
  margin: 8px 0 14px;
}
.prompt-card p { margin: 0 0 16px; color: #d8d0c4; }

#agent-prompt {
  display: block;
  width: 100%;
  min-height: 110px;
  margin: 8px 0 16px;
  padding: 14px;
  background: #12100e;
  border: 1px solid var(--line);
  color: #efe8dc;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 14px;
  line-height: 1.55;
  resize: vertical;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--ink);
  border: 0;
  padding: 12px 16px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: Outfit, sans-serif;
}
.btn.ghost {
  background: transparent;
  color: #efe8dc;
  border: 1px solid #efe8dc;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.status { min-height: 1.4em; margin: 12px 0 0; font-size: 12px; color: var(--gold); }
.hint { margin-top: 18px !important; font-size: 14px; color: var(--mute) !important; }

@media (max-width: 600px) {
  .app-top { flex-wrap: wrap; }
  .btn { width: 100%; }
}
