/* Stanowisko testowe POC — proste, czytelne z telefonu, nie produkt. */

:root {
  color-scheme: dark;
  --bg: #0f1115;
  --panel: #171a21;
  --panel-soft: #1f232c;
  --text: #eef1f6;
  --muted: #9aa4b2;
  --accent: #f2c200;
  --ok: #35c46a;
  --warn: #e0a63c;
  --err: #e2544c;
  --listen: #4aa3ff;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.45;
  padding: 16px 14px 40px;
}

.panel {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.header h1 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.status {
  margin: 0;
  padding: 18px 16px;
  border-radius: var(--radius);
  background: var(--panel);
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
  border-left: 6px solid var(--muted);
}

.status--idle {
  border-left-color: var(--muted);
}
.status--listening {
  border-left-color: var(--listen);
}
.status--processing {
  border-left-color: var(--warn);
}
.status--speaking {
  border-left-color: var(--ok);
}
.status--error {
  border-left-color: var(--err);
}
.status--ended {
  border-left-color: var(--muted);
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: var(--radius);
  padding: 18px 16px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #10131a;
  background: var(--accent);
  cursor: pointer;
}

.btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn--stop {
  background: var(--panel-soft);
  color: var(--text);
  border: 1px solid #333a47;
}

.input {
  appearance: none;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid #333a47;
  background: var(--panel-soft);
  color: var(--text);
  padding: 16px;
  font-size: 1.05rem;
}

.input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.order {
  background: #14261a;
  border: 1px solid var(--ok);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.order__title {
  margin: 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ok);
}

.order__id {
  margin: 4px 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.95rem;
  word-break: break-all;
}

.meta__list {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  font-size: 0.8rem;
  color: var(--muted);
}

.meta__list dt {
  font-weight: 600;
}

.meta__list dd {
  margin: 0;
  word-break: break-all;
}

.debug {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.debug summary {
  cursor: pointer;
  font-weight: 600;
}

.debug h2 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 14px 0 4px;
}

.transcript {
  margin: 0;
  min-height: 1.4em;
  font-size: 0.95rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.events {
  margin: 0;
  padding-left: 18px;
  max-height: 42dvh;
  overflow-y: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  color: var(--muted);
}

.events li {
  margin-bottom: 2px;
  white-space: pre-wrap;
  word-break: break-word;
}

.events li[data-kind="order"] {
  color: var(--ok);
  font-weight: 700;
}

.events li[data-kind="tool"] {
  color: var(--accent);
}

.events li[data-kind="error"] {
  color: var(--err);
}
