:root {
  color-scheme: dark;
  --bg: #07100d;
  --card: #101b17;
  --line: #294039;
  --mint: #00ffaa;
  --text: #effff9;
  --muted: #94aca3;
  --red: #ff5875;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: radial-gradient(circle at 80% 0, #15372b 0, transparent 35%), var(--bg);
  color: var(--text);
  font: 15px/1.5 system-ui, sans-serif;
}

main { width: min(1180px, calc(100% - 28px)); margin: auto; padding: 28px 0 70px; }
.login { min-height: 85vh; display: grid; place-items: center; }
.login .card { width: min(430px, 100%); }
.card, .projectbar { border: 1px solid var(--line); border-radius: 18px; background: rgba(16, 27, 23, .94); padding: 20px; box-shadow: 0 18px 50px #0005; }
header, .row, .actions, .projectbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
header { margin-bottom: 20px; }
.projectbar { margin-bottom: 16px; }
.projectbar > div { display: grid; flex: 1; }
.projectbar small, .result small, #voiceHint { color: var(--muted); }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(30px, 6vw, 52px); margin-bottom: 0; }
h2 { font-size: 18px; }
.eyebrow { color: var(--mint); font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 5px; }
label { display: grid; gap: 6px; font-weight: 700; }
input, textarea, select, button { font: inherit; border-radius: 11px; border: 1px solid var(--line); }
input, textarea, select { width: 100%; padding: 12px; color: var(--text); background: #09130f; }
textarea { resize: vertical; margin: 10px 0 4px; }
button { padding: 11px 15px; color: #03120c; background: var(--mint); font-weight: 900; cursor: pointer; }
.ghost { color: var(--text); background: #ffffff0a; }
.danger { color: #fff; background: #9b2940; }
.deploy { color: #fff; background: #b62e4a; }
button:disabled { opacity: .35; cursor: not-allowed; }
.actions { justify-content: flex-start; flex-wrap: wrap; margin-top: 16px; }
.outputs { display: grid; grid-template-columns: .8fr 1.2fr; gap: 16px; margin-top: 16px; }
.result { display: grid; gap: 8px; margin-top: 16px; }
.result .deploy { justify-self: start; }
pre { min-height: 340px; max-height: 60vh; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; background: #050b09; border: 1px solid #21332d; border-radius: 12px; padding: 13px; color: #d8fff1; font: 12px/1.55 ui-monospace, monospace; }
.error { color: #ff8da1; margin: 8px 0 0; }
[data-state] { padding: 7px 11px; border-radius: 99px; border: 1px solid var(--line); font-weight: 900; }
[data-state=running] { background: #ffd166; color: #111; }
[data-state=completed] { background: var(--mint); color: #03120c; }
dialog { width: min(520px, calc(100% - 24px)); border: 1px solid var(--line); border-radius: 18px; background: var(--card); color: var(--text); padding: 22px; }
dialog::backdrop { background: #000b; }
code { display: block; padding: 10px; color: var(--mint); }

@media (max-width: 720px) {
  .outputs { grid-template-columns: 1fr; }
  .projectbar, .row { align-items: stretch; flex-direction: column; }
  .projectbar > * { width: 100%; }
  pre { min-height: 240px; }
}
