/* Website chat-ops — deliberately plain. One stylesheet, no JavaScript, no CDN, which
   is what lets the CSP be "default-src 'self'; script-src 'none'". */
:root {
  --ink: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #1f4e5f;
  --bg: #f8fafc;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}
a { color: var(--brand); }
a:focus-visible, button:focus-visible, textarea:focus-visible {
  outline: 3px solid #c8a45c; outline-offset: 2px;
}
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: .5rem .75rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
}

.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: .85rem 1.25rem; background: var(--brand); color: #fff;
}
.topbar .brand { font-weight: 700; }
.topbar .brand span { font-weight: 400; opacity: .85; }
.topbar .who { font-size: .85rem; opacity: .9; }
.topbar .who a { color: #fff; margin-left: .75rem; }

.wrap { max-width: 46rem; margin: 1.5rem auto; padding: 0 1rem; }
.foot {
  max-width: 46rem; margin: 0 auto 2.5rem; padding: 0 1rem;
  color: var(--muted); font-size: .8rem;
}

.banner {
  background: #fff7ed; border: 1px solid #fed7aa; border-radius: .5rem;
  padding: .75rem .9rem; font-size: .85rem; margin-bottom: 1rem;
}
.card {
  background: #fff; border: 1px solid var(--line); border-radius: .75rem;
  padding: 1.75rem;
}
.centred { text-align: center; max-width: 30rem; margin: 3rem auto; }
.centred h1 { font-size: 1.25rem; margin-top: 0; }
.muted { color: var(--muted); font-size: .9rem; }
.alert {
  background: #fef2f2; color: #b91c1c; border-radius: .5rem;
  padding: .6rem .8rem; font-size: .85rem;
}
.button {
  display: inline-block; background: var(--brand); color: #fff; text-decoration: none;
  padding: .7rem 1.2rem; border-radius: .5rem; font-weight: 600;
}

.log { display: flex; flex-direction: column; gap: .75rem; }
.empty { color: var(--muted); font-size: .9rem; }
.msg {
  background: #fff; border: 1px solid var(--line); border-radius: .75rem;
  padding: .75rem .9rem;
}
.msg.operator { background: #eef2f7; }
.msg .role {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); margin-bottom: .25rem;
}
.msg .text { white-space: pre-wrap; word-wrap: break-word; }

.composer { display: flex; gap: .6rem; margin-top: 1rem; align-items: flex-end; }
.composer textarea {
  flex: 1; padding: .6rem .7rem; border: 1px solid var(--line);
  border-radius: .5rem; font: inherit; resize: vertical;
}
.composer button {
  background: var(--brand); color: #fff; border: 0; border-radius: .5rem;
  padding: .7rem 1.2rem; font-weight: 600; cursor: pointer;
}
.reset { margin-top: .5rem; }
.reset .link {
  background: none; border: 0; color: var(--muted); font: inherit;
  text-decoration: underline; cursor: pointer; padding: 0;
}
