/* The console's own styling. Deliberately small: this is a test console, and
   the app's `--eat-*` theming contract belongs to recipe HTML, not here. */

:root {
  --bg: #fdfcf9;
  --fg: #1d1c1a;
  --muted: #6b6862;
  --line: #e0ddd5;
  --accent: #7a3b12;
  --warn: #a12b1e;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171614;
    --fg: #eceae5;
    --muted: #9a968e;
    --line: #322f2b;
    --accent: #d99a5b;
    --warn: #e8836f;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 1rem 4rem;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

header, main { max-width: 44rem; margin: 0 auto; }

header {
  padding: 2rem 0 1rem;
  border-bottom: 1px solid var(--line);
}

h1 { margin: 0; font-size: 1.6rem; letter-spacing: -0.01em; }
h2 { margin: 2rem 0 0.75rem; font-size: 1.1rem; }

#who { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.9rem; }

label { display: block; margin: 0.75rem 0; font-size: 0.9rem; color: var(--muted); }
label.check { display: flex; align-items: center; gap: 0.4rem; }

input, select, textarea {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.5rem 0.6rem;
  font: inherit;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
}

input[type="checkbox"] { width: auto; margin: 0; }
textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85rem; }

.row { display: flex; gap: 1rem; flex-wrap: wrap; }
.row > label { flex: 1 1 12rem; }

.buttons { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0.75rem 0; }

button {
  padding: 0.45rem 0.85rem;
  font: inherit;
  font-size: 0.9rem;
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}

button:hover { border-color: var(--accent); }
button:disabled { opacity: 0.5; cursor: progress; }

button.primary { background: var(--accent); border-color: var(--accent); color: var(--bg); }
button.provider { border-style: dashed; }

.note { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.85rem; }
.quota { margin: 0; font-size: 0.9rem; color: var(--accent); }
.warn { color: var(--warn); }

code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85em; }

pre {
  padding: 0.75rem;
  overflow-x: auto;
  font-size: 0.8rem;
  background: color-mix(in srgb, var(--fg) 5%, var(--bg));
  border: 1px solid var(--line);
  border-radius: 6px;
  white-space: pre-wrap;
  word-break: break-word;
}

ul { padding-left: 1.2rem; font-size: 0.9rem; }
li { margin: 0.35rem 0; }
li button { padding: 0.1rem 0.4rem; font-size: 0.8rem; }
