/* Additive optics: black is transparent, so content floats over the world. Keep text bright,
   panels dim, and everything inside the fixed 600×600 viewport. */
:root {
  --text: #f4f4f4;
  --dim: #a8a8a8;
  --accent: #ff9a6b;
  --ok: #7dffa0;
  --warn: #ffc65c;
  --panel: rgba(255, 255, 255, 0.10);
  --focus: rgba(255, 255, 255, 0.24);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  width: 600px;
  height: 600px;
  overflow: hidden;
  background: #000;
  color: var(--text);
  font: 20px/1.35 -apple-system, "Helvetica Neue", Roboto, sans-serif;
}

.screen {
  position: absolute;
  inset: 0;
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.screen[hidden], [hidden] { display: none !important; }

h1 { margin: 0; font-size: 26px; font-weight: 700; }

.lead { font-size: 24px; margin: 0; }
.hint { color: var(--dim); font-size: 20px; margin: 0; }
.code {
  margin: 8px 0;
  font-size: 72px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-align: center;
}

.bar { display: flex; align-items: center; gap: 12px; min-height: 40px; }
.bar h1 { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.badge {
  font-size: 16px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--panel);
  color: var(--dim);
  white-space: nowrap;
}
.badge.working { color: #8cc8ff; }
.badge.waiting { color: var(--warn); }

button, textarea {
  font: inherit;
  color: var(--text);
  background: var(--panel);
  border: 3px solid transparent;
  border-radius: 20px;
  min-height: 80px;
  padding: 0 22px;
  outline: none;
}
button:focus, textarea:focus { background: var(--focus); border-color: var(--text); }
button.primary { color: #000; background: var(--accent); }
button.primary:focus { border-color: var(--text); background: #ffb894; }
button.danger { color: #ff8080; }

.sessions { display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.sessions button { text-align: left; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 12px 22px; }
.sessions .title { font-size: 22px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; }
.sessions .meta { font-size: 16px; color: var(--dim); }

.body { flex: 1; overflow: hidden; font-size: 24px; line-height: 1.4; white-space: pre-wrap; }
.body .page { color: var(--dim); font-size: 16px; display: block; margin-top: 8px; }
.body .ask { color: var(--warn); font-weight: 700; display: block; margin-bottom: 8px; }
.body.empty { color: var(--dim); }

.activity { margin: 0; min-height: 22px; font-size: 16px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.actions { display: flex; gap: 12px; }
.actions .group { display: contents; }
.actions button, .actions textarea { flex: 1; }
.actions textarea { resize: none; padding: 24px 22px 0; line-height: 1.2; }
.actions textarea::placeholder { color: var(--text); }

.banner {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--panel);
  color: var(--warn);
  font-size: 16px;
}
