/* Quint workshop — visual system. Navy ink + emerald accent, IBM Plex type. */
:root {
  --ink: #0b1b2b;
  --ink-2: #3a5573;
  --bg: #f5f8fa;
  --card: #ffffff;
  --line: #e2e8ef;
  --accent: #0fb5a6;
  --accent-d: #0a8c81;
  --good: #2f9e44;
  --bad: #e8590c;
  --warn: #f08c00;
  --code-bg: #0d2236;
  --shadow: 0 1px 3px rgba(11, 27, 43, 0.08), 0 8px 24px rgba(11, 27, 43, 0.06);
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

h1, h2, h3, .display {
  font-family: "Space Grotesk", system-ui, sans-serif;
  letter-spacing: -0.01em;
}

code, pre, .mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }

a { color: var(--accent-d); }

/* ---------- Login ---------- */
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(1200px 600px at 70% -10%, #0fb5a61a, transparent),
              linear-gradient(180deg, #fbfdfe, var(--bg));
  padding: 24px;
}
.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  text-align: center;
}
.login-card .logo {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 26px;
}
.login-card .logo .dot { color: var(--accent); }
.login-card p { color: var(--ink-2); margin: 6px 0 22px; }
.login-card input {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 12px;
}
.login-card input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.login-card button {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: var(--accent-d);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}
.login-card button:hover { background: var(--accent); }
.login-err { color: var(--bad); min-height: 20px; margin-top: 10px; font-size: 14px; }

/* ---------- reveal.js overrides ---------- */
.reveal { font-size: 26px; }
.reveal .slides { text-align: left; }
.reveal .slides section { height: 100%; }
.reveal h1 { font-size: 2.0em; color: var(--ink); }
.reveal h2 { font-size: 1.3em; color: var(--ink); margin: 0 0 0.3em; }
.reveal h3 { font-size: 1.02em; color: var(--accent-d); margin: 0.3em 0; }
.reveal p, .reveal li { color: #14304a; line-height: 1.3; margin: 0.4em 0; }
.reveal .lead { font-size: 1.08em; color: var(--ink-2); }
.reveal .muted { color: var(--ink-2); }
.reveal ul { margin: 0.3em 0 0.3em 0.5em; }
.reveal li { margin: 0.2em 0; }
.reveal section .kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.5em;
  font-weight: 600;
  color: var(--accent-d);
  font-family: "IBM Plex Mono", monospace;
}
.reveal .pill {
  display: inline-block;
  background: #0fb5a61a;
  color: var(--accent-d);
  border-radius: 999px;
  padding: 2px 12px;
  font-size: 0.5em;
  font-family: "IBM Plex Mono", monospace;
}
.reveal .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.reveal .card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 13px 16px;
}
.reveal .diagram { text-align: center; }
.reveal .diagram img { max-height: 38vh; background: #fff; border-radius: 12px; padding: 8px; }
.reveal .fintech {
  border-left: 4px solid var(--accent);
  background: #0fb5a610;
  padding: 8px 14px;
  border-radius: 0 10px 10px 0;
  font-size: 0.8em;
}
.reveal .fintech b { color: var(--accent-d); }
.reveal pre { box-shadow: var(--shadow); width: 100%; }
.reveal pre code { background: var(--code-bg); border-radius: 10px; padding: 14px; font-size: 0.62em; }

/* top bar */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; height: 42px; z-index: 40;
  display: flex; align-items: center; gap: 14px;
  padding: 0 16px; background: var(--ink); color: #fff;
  font-family: "Space Grotesk", sans-serif;
}
.topbar .brand { font-weight: 700; }
.topbar .brand .dot { color: var(--accent); }
.topbar .spacer { flex: 1; }
.topbar a { color: #cfe9e6; text-decoration: none; font-size: 13px; }
.topbar a:hover { color: #fff; }

/* ---------- Widgets ---------- */
.q-widget, [data-widget], [data-board] { font-size: 16px; }
.q-ta, .q-inp {
  width: 100%;
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  resize: vertical;
}
.q-ta:focus, .q-inp:focus { outline: 2px solid var(--accent); border-color: transparent; }
.q-btn {
  margin-top: 10px;
  padding: 9px 18px;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  background: var(--accent-d);
  border: 0;
  border-radius: 9px;
  cursor: pointer;
}
.q-btn:hover { background: var(--accent); }
.q-btn:disabled { opacity: 0.5; cursor: wait; }
.q-row { display: flex; align-items: center; gap: 10px; margin: 10px 0; font-size: 14px; }
.q-range { flex: 1; max-width: 280px; accent-color: var(--accent-d); }
.q-range-val { font-family: "IBM Plex Mono", monospace; font-weight: 600; }
.q-out {
  margin-top: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  min-height: 18px;
  font-size: 14px;
  white-space: pre-wrap;
  word-break: break-word;
}
.q-stream { font-family: "IBM Plex Sans", sans-serif; line-height: 1.45; }
.q-hint { color: var(--ink-2); font-size: 13px; margin-top: 10px; }
.q-note { color: var(--ink-2); font-size: 12px; margin-top: 8px; font-style: italic; }
.q-err { color: var(--bad); font-weight: 600; }
.q-stat { font-size: 18px; }
.q-stat b { color: var(--accent-d); }

.q-chips { margin-top: 10px; line-height: 2; }
.q-chip { border-radius: 5px; padding: 1px 4px; margin: 0 1px; font-family: "IBM Plex Mono", monospace; font-size: 13px; }
.q-chip.c0 { background: #d0ebff; } .q-chip.c1 { background: #d3f9d8; }
.q-chip.c2 { background: #ffec99; } .q-chip.c3 { background: #ffd8a8; }
.q-chip.c4 { background: #eebefa; }

.q-bar-row { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.q-bar-label { width: 90px; text-align: right; font-family: "IBM Plex Mono", monospace; font-size: 13px; }
.q-bar { height: 16px; background: var(--accent); border-radius: 4px; min-width: 2px; }
.q-bar-ct { font-size: 12px; color: var(--ink-2); }

.predict-text { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 16px; min-height: 28px; line-height: 1.5; }
.predict-cand { cursor: pointer; border-radius: 6px; padding: 2px 4px; }
.predict-cand:hover { background: #0fb5a618; }
.q-btn-2 { background: #fff; color: var(--accent-d); border: 1px solid var(--accent-d); }
.q-btn-2:hover { background: #0fb5a614; }

.persona-pick { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 10px 0; font-size: 14px; }
.persona-opt { cursor: pointer; user-select: none; }
.persona-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.persona-grid .q-card-h { font-size: 14px; margin-bottom: 6px; }
.persona-grid .q-stream { font-size: 13.5px; }

.q-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.q-col-h { font-weight: 600; font-size: 13px; margin: 8px 0 4px; }
.q-col-h.q-bad { color: var(--bad); } .q-col-h.q-good { color: var(--good); }

.q-think {
  background: #f1f3f5; border: 1px dashed #ced4da; border-radius: 10px;
  padding: 10px 12px; font-family: "IBM Plex Mono", monospace; font-size: 12.5px;
  color: #495057; white-space: pre-wrap; max-height: 200px; overflow: auto;
}
.q-think-h { font-weight: 600; font-size: 12px; color: var(--ink-2); margin: 6px 0 3px; }

.q-tool { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.q-card { border-radius: 10px; padding: 10px 12px; border: 1px solid var(--line); }
.q-card-h { font-weight: 600; font-size: 13px; margin-bottom: 3px; }
.q-card-b { font-family: "IBM Plex Mono", monospace; font-size: 13px; white-space: pre-wrap; }
.q-card.k-a { background: #fff; }
.q-card.k-u { background: #fff4e6; border-color: #ffd8a8; }
.q-card.k-r { background: #ebfbee; border-color: #b2f2bb; }

.q-matrix-wrap { overflow-x: auto; }
.q-matrix { border-collapse: collapse; font-size: 12px; }
.q-matrix th, .q-matrix td { border: 1px solid #fff; padding: 6px 8px; text-align: center; }
.q-matrix th { background: #f1f3f5; color: var(--ink-2); }
.q-matrix .q-matrix-lab { font-family: "IBM Plex Mono", monospace; }
.q-docs { margin: 4px 0 8px; display: flex; flex-direction: column; gap: 3px; }
.q-doc { background: #f8f9fa; border: 1px solid var(--line); border-radius: 8px; padding: 3px 9px; font-size: 12px; }

/* ---------- Board ---------- */
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.board-col {
  background: #eef2f6; border: 1px solid var(--line); border-radius: 14px;
  padding: 12px; display: flex; flex-direction: column; min-height: 320px;
}
.board-col.drop { outline: 2px dashed var(--accent); background: #e3f7f4; }
.board-col-h { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 16px; margin-bottom: 10px; }
.board-list { flex: 1; display: flex; flex-direction: column; gap: 10px; min-height: 60px; }
.note {
  position: relative; border-radius: 8px; padding: 12px 28px 10px 12px;
  box-shadow: 0 2px 6px rgba(11, 27, 43, 0.14); font-size: 14px; cursor: grab;
  transform: rotate(-0.6deg);
}
.note:nth-child(even) { transform: rotate(0.7deg); }
.note.dragging { opacity: 0.4; }
.note-body { white-space: pre-wrap; word-break: break-word; }
.note-meta { margin-top: 6px; font-size: 12px; color: #5c5c5c; font-style: italic; }
.note-del {
  position: absolute; top: 4px; right: 6px; border: 0; background: transparent;
  font-size: 18px; line-height: 1; cursor: pointer; color: #00000066;
}
.note-del:hover { color: #000; }
.board-add { margin-top: 10px; }
.board-add-ta { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 8px; font-size: 13px; resize: vertical; }
.board-add-row { display: flex; gap: 6px; margin-top: 6px; }
.board-add-name { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font-size: 12px; }
.board-add-btn { margin-top: 0; padding: 6px 14px; font-size: 13px; }
