:root {
  --ink: #15121c;
  --pink: #ff027d;
  --off-white: #faf9fb;
  --dim: #6b6875;
  --line: #2a2533;
  --mono: "Space Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ink); color: var(--off-white); }
body {
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 16px 48px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.kicker { color: var(--dim); margin: 0; font-size: 13px; }
h1 { margin: 0; font-size: clamp(28px, 7vw, 44px); line-height: 1.1; text-transform: lowercase; }
.prompt { color: var(--pink); }
.idea { margin: 0; color: var(--dim); }
.stage { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 16px 0; }
button {
  font: inherit;
  background: var(--pink);
  color: var(--ink);
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  min-height: 44px;
  cursor: pointer;
  font-weight: 700;
}
button.ghost { background: transparent; color: var(--pink); border: 2px solid var(--pink); }
input, textarea, select {
  font: inherit;
  color: var(--off-white);
  background: transparent;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  min-height: 44px;
  width: 100%;
}
input:focus, textarea:focus, select:focus, button:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.card { border: 2px solid var(--line); border-radius: 16px; padding: 16px; }
.pink { color: var(--pink); }
.foot { color: var(--dim); font-size: 13px; }

/* drink terminal */
.term {
  background: #0d0b12;
  border: 2px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  min-width: 0;
}
.term-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-bottom: 2px solid var(--line);
  color: var(--dim); font-size: 12px;
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.dot.p { background: var(--pink); }
.term-bar span:last-child { margin-left: auto; }
.log {
  padding: 12px;
  font-size: 13px;
  line-height: 1.45;
  max-height: 62vh;
  min-height: 260px;
  overflow-y: auto;
  overflow-x: hidden;
}
.log .ln { white-space: pre-wrap; word-break: break-word; margin: 0; }
.log pre { margin: 4px 0; font: inherit; white-space: pre; overflow: hidden; color: var(--pink); }
.log .cmd { color: var(--off-white); }
.log .ps { color: var(--pink); }
.log .dim { color: var(--dim); }
.log .hi { color: var(--pink); }
.log .ok { color: #9be8c4; }
.log .out { animation: in .25s ease-out; }
@keyframes in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.inrow {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-top: 2px solid var(--line);
  font-size: 13px;
}
.inrow .ps { color: var(--pink); white-space: nowrap; }
.inrow input { border: 0; padding: 8px 0; min-width: 0; flex: 1; font-size: 16px; }
.inrow input:focus { outline: none; }
.term:focus-within { border-color: var(--pink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button {
  background: transparent; color: var(--pink); border: 2px solid var(--pink);
  padding: 8px 14px; font-size: 14px; font-weight: 700;
}
.chips button.cat { color: var(--off-white); border-color: var(--line); }
.chips button:active { background: var(--pink); color: var(--ink); }
.qchips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.qchips button { padding: 8px 14px; font-size: 13px; }
.qchips button:disabled { opacity: .35; cursor: default; }
.label { color: var(--dim); font-size: 13px; margin: 4px 0 -4px; }
.aside { color: var(--dim); font-size: 13px; margin: 0; }
