/* Web shell styling (WP0.6) — a shell, not a design pass. Loaded from
   same-origin /static so the strict CSP forbids inline style. Mobile-first
   and responsive, per the ui-surfaces "PWA-shaped" direction. */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #16181d;
  --muted: #5b6270;
  --line: #d8dce4;
  --accent: #2f6feb;
  --user: #e8f0ff;
  --orch: #f1f3f7;
  --ok: #1a7f37;
  --fail: #c02626;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181d;
    --fg: #e8eaed;
    --muted: #9aa2b1;
    --line: #2b2f38;
    --accent: #6ea8fe;
    --user: #1d2b46;
    --orch: #21252d;
    --ok: #3fb950;
    --fail: #ff6b6b;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 15px/1.5 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--fg);
  background: var(--bg);
}
a { color: var(--accent); }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--line);
}
.topbar nav a { margin-right: 0.75rem; text-decoration: none; }
.logout button, .button, button {
  font: inherit;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}
.logout button { background: transparent; color: var(--fg); }
.button { text-decoration: none; display: inline-block; }
.landing { max-width: 34rem; margin: 4rem auto; padding: 0 1rem; }
main.chat, main.audit-view { max-width: 52rem; margin: 0 auto; padding: 1rem; }
.messages { list-style: none; margin: 0 0 1rem; padding: 0; }
.messages li {
  padding: 0.5rem 0.75rem;
  margin: 0.4rem 0;
  border-radius: 8px;
  background: var(--orch);
  white-space: pre-wrap;
  word-wrap: break-word;
}
.messages li.user { background: var(--user); margin-left: 2rem; }
.messages li.orchestrator { margin-right: 2rem; }
.messages .who { font-size: 0.75rem; color: var(--muted); display: block; }
.composer { display: flex; gap: 0.5rem; align-items: flex-end; }
.composer textarea {
  flex: 1;
  font: inherit;
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--fg);
  resize: vertical;
}
.status { color: var(--muted); min-height: 1.2em; }
.notice { border: 1px solid var(--line); border-left: 4px solid var(--fail); border-radius: 8px; padding: 0.6rem 0.9rem; margin: 0.75rem 0; }
.reverify { margin: 0.5rem 0 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
}
.verify { border: 1px solid var(--line); border-radius: 8px; padding: 0.75rem 1rem; margin: 1rem 0; }
.verify .verdict { font-weight: 700; font-size: 1.1rem; margin: 0.2rem 0; }
.verify-ok .verdict { color: var(--ok); }
.verify-fail { border-color: var(--fail); }
.verify-fail .verdict { color: var(--fail); }
.verify .reason { color: var(--muted); font-family: ui-monospace, monospace; font-size: 0.85rem; }
table.audit { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
table.audit th, table.audit td {
  text-align: left; padding: 0.35rem 0.5rem; border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.audit .num, table.audit .ts { white-space: nowrap; }
table.audit .refs { font-family: ui-monospace, monospace; word-break: break-all; }
.pager { margin-top: 1rem; }
