/* Eén stylesheet, geen framework.
   Voor Fase 1 is dit genoeg en het houdt de download klein; een ontwerpsysteem
   hoort bij een ontwerp, en dat is er nog niet. */

:root {
  --bg: #f7f7f8;
  --surface: #fff;
  --line: #d9d9de;
  --text: #1d1d20;
  --muted: #62626b;
  --accent: #1a4fd6;
  --danger: #b3261e;
  --warn: #8a5a00;
  --warn-bg: #fff6e0;
  --radius: 8px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 15px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

.shell { min-height: 100vh; display: flex; flex-direction: column; }

header {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0 1.25rem; height: 56px;
  background: var(--surface); border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.brand { font-weight: 650; text-decoration: none; color: var(--text); }

header nav { display: flex; gap: 1rem; flex: 1; }

header nav a {
  text-decoration: none; color: var(--muted); padding: 2px 0;
  border-bottom: 2px solid transparent;
}
header nav a:hover { color: var(--text); }
header nav a.active { color: var(--text); border-bottom-color: var(--accent); }

.who { margin-left: auto; display: flex; align-items: center; gap: .75rem; color: var(--muted); font-size: 13px; }
.who .org { font-weight: 600; color: var(--text); }

main { flex: 1; width: 100%; max-width: 62rem; margin: 0 auto; padding: 1.75rem 1.25rem 3rem; }

h1 { font-size: 1.4rem; margin: 0 0 .35rem; }
h2 { font-size: 1.05rem; margin: 1.75rem 0 .6rem; }
.lead { color: var(--muted); margin: 0 0 1.5rem; }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem 1.25rem; margin-bottom: 1rem;
}

.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.grow { flex: 1; }

label { display: block; font-size: 13px; color: var(--muted); margin-bottom: .25rem; }

input, select, textarea {
  font: inherit; padding: .5rem .6rem; width: 100%;
  border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }

button {
  font: inherit; padding: .5rem .9rem; border-radius: 6px; cursor: pointer;
  border: 1px solid var(--accent); background: var(--accent); color: #fff;
}
button:disabled { opacity: .5; cursor: not-allowed; }
button.secondary { background: var(--surface); color: var(--text); border-color: var(--line); }
button.danger { background: var(--surface); color: var(--danger); border-color: var(--line); }
button.link { background: none; border: none; color: var(--accent); padding: 0; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .55rem .5rem; border-bottom: 1px solid var(--line); }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }

.tag {
  display: inline-block; font-size: 12px; padding: .1rem .45rem;
  border: 1px solid var(--line); border-radius: 99px; color: var(--muted);
}
.tag.warn { color: var(--warn); background: var(--warn-bg); border-color: #e8d49a; }

.notice { border-left: 3px solid var(--warn); background: var(--warn-bg); padding: .7rem .9rem; border-radius: 4px; }
.error { border-left: 3px solid var(--danger); background: #fdeceb; padding: .7rem .9rem; border-radius: 4px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* Chat */
.thread { display: flex; flex-direction: column; gap: .85rem; margin-bottom: 1.25rem; }
.bubble { padding: .7rem .9rem; border-radius: var(--radius); max-width: 46rem; white-space: pre-wrap; }
.bubble.user { background: var(--accent); color: #fff; align-self: flex-end; }
.bubble.assistant { background: var(--surface); border: 1px solid var(--line); align-self: flex-start; }
.bubble.tool { background: none; border: 1px dashed var(--line); color: var(--muted); font-size: 13px; align-self: flex-start; }
.composer { display: flex; gap: .6rem; align-items: flex-end; }
.composer textarea { min-height: 3.2rem; resize: vertical; }
