/* Splat.js demo — one accent colour, system type, no chrome. */
:root {
  --bg: #0e1112;
  --fg: #e8ecec;
  --dim: #9aa5a5;
  --line: #262d2e;
  --accent: #73d8d4;
  --card: rgba(14, 17, 18, .88);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 15px/1.5 ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
}
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12px; }
.grow { flex: 1; }

#cv {
  position: fixed; inset: 0; width: 100%; height: 100%;
  display: none; background:
    radial-gradient(120% 90% at 50% 10%, #17201f 0%, var(--bg) 70%);
}
body[data-state="training"] #cv,
body[data-state="done"] #cv { display: block; }

/* top bar */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; gap: 16px;
  padding: 12px 18px;
  font-size: 13px; color: var(--dim);
}
.brand { color: var(--fg); font-weight: 600; letter-spacing: .1px; }
.brand em { font-style: normal; color: var(--accent); }
.tag {
  font-size: 11px; font-weight: 500; color: var(--dim);
  border: 1px solid var(--line); border-radius: 99px; padding: 1px 8px; margin-left: 4px;
}
.badge { font-size: 11px; }
.badge.ok::before, .badge.no::before { content: "● "; }
.badge.ok { color: var(--accent); }
.badge.no { color: #e08a7b; }
.quiet { color: var(--dim); text-decoration: none; }
.quiet:hover { color: var(--fg); }

/* idle card */
.card {
  position: fixed; z-index: 4; left: 50%; top: 50%;
  transform: translate(-50%, -52%);
  width: min(480px, calc(100vw - 40px));
  background: var(--card); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: 14px;
  padding: 28px 30px 24px;
}
body:not([data-state="idle"]):not([data-state="error"]) .card { display: none; }
.eyebrow {
  margin: 0 0 6px; font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
}
h1 { margin: 0 0 10px; font-size: 22px; font-weight: 650; line-height: 1.25; }
.sub { margin: 0 0 18px; color: var(--dim); font-size: 13.5px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hint { margin: 14px 0 0; font-size: 12px; color: var(--dim); min-height: 1em; }
.hint.err { color: #e08a7b; }

.btn, select {
  appearance: none; cursor: pointer;
  font: inherit; font-size: 13.5px; font-weight: 550;
  border-radius: 8px; padding: 9px 16px;
  transition: filter .12s ease;
}
.btn:hover, select:hover { filter: brightness(1.15); }
.accent { background: var(--accent); color: #082422; border: 0; }
.outline { background: transparent; color: var(--fg); border: 1px solid var(--line); }
select { background: transparent; color: var(--dim); border: 1px solid var(--line); }

/* status footer */
.status {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  z-index: 5; width: min(680px, calc(100vw - 32px));
  background: var(--card); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 14px 11px;
}
.progress { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; margin-bottom: 9px; }
.progress i { display: block; height: 100%; width: 0%; background: var(--accent); transition: width .3s ease; }
.statrow { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--dim); }
#metrics { color: var(--accent); }
.status button {
  cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 550;
  background: transparent; color: var(--fg);
  border: 1px solid var(--line); border-radius: 7px; padding: 5px 12px;
}
.status button:hover { filter: brightness(1.2); }
#export { border-color: var(--accent); color: var(--accent); }

.noscript {
  position: fixed; inset: 0; display: grid; place-items: center;
  color: var(--dim); font-size: 14px;
}
