:root {
  --ink: #111111;
  --muted: #6b6b6b;
  --line: #e9e9e9;
  --soft: #f6f6f6;
  --paper: #ffffff;
  --danger: #b42318;
  --ok: #0d7a3f;
  --live: #c62828;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: #111; color: #fff; }

.mark {
  font-family: "Segoe UI Symbol", "Arial Unicode MS", sans-serif;
  line-height: 1;
}

.hidden { display: none !important; }

.btn {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 10px;
}
.btn:disabled { opacity: .4; cursor: default; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-soft {
  background: var(--soft);
  border-color: var(--line);
  color: var(--ink);
}
.btn-danger {
  background: transparent;
  color: var(--danger);
  border-color: var(--danger);
}
.btn-primary {
  min-width: 180px;
  font-weight: 600;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field input, .field textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  min-height: 52px;
  background: #fff;
}
.field input:focus, .field textarea:focus {
  outline: 2px solid #111;
  outline-offset: 1px;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 600;
}
.status-dot::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
}
.status-dot.live::before { background: var(--live); }
.status-dot.reconnect::before { background: #c47d00; }
.status-dot.offline::before { background: #888; }

.demo-banner {
  background: #111;
  color: #fff;
  text-align: center;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 10px;
}
