/* The SMOD look: background #010b15, accent #005afe, accent text #0a7cff; Manrope and IBM Plex Mono when installed,
   otherwise the system's fonts. No font file is fetched. */
:root {
  --bg: #010b15;
  --panel: #071a2b;
  --line: #12314d;
  --text: #e6edf5;
  --muted: #8ea3b8;
  --accent: #005afe;
  --accent-text: #0a7cff;
  --pass: #2fbf71;
  --clarify: #e0b341;
  --escalate: #ff8a3d;
  --block: #ff4d5e;
  --sans: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
a { color: var(--accent-text); }
code, .mono { font-family: var(--mono); }
.bar { display: flex; gap: .5rem; align-items: baseline; padding: .9rem 1.25rem; border-bottom: 1px solid var(--line); }
.bar .mark { font-weight: 800; letter-spacing: .12em; color: var(--accent-text); }
.bar .name { color: var(--muted); }
main { padding: 1.25rem; }
.narrow { max-width: 34rem; margin: 2rem auto; }
.chat { max-width: 52rem; margin: 0 auto; }
h1 { font-size: 1.5rem; margin: 0 0 1rem; }
.button, button { display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: .5rem;
  padding: .6rem 1rem; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
button.quiet { background: transparent; color: var(--accent-text); border: 1px solid var(--line); font-weight: 500; }
button:disabled { opacity: .5; cursor: default; }
input, textarea { width: 100%; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: .5rem;
  padding: .6rem .75rem; font: inherit; }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
label { display: block; margin: .75rem 0 .25rem; color: var(--muted); }
form button { margin-top: .75rem; }
.qr { background: #fff; padding: .5rem; border-radius: .5rem; }
#totp-secret { word-break: break-all; font-size: 1.05rem; color: var(--accent-text); }
.refusal { border-left: 3px solid var(--block); padding: .5rem .75rem; background: var(--panel); }
.note { color: var(--muted); font-size: .9rem; }
.who { display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--muted); }
.who form button { margin: 0; }
.turns { list-style: none; padding: 0; margin: 1.25rem 0; display: flex; flex-direction: column; gap: .9rem; }
.turn { border: 1px solid var(--line); border-radius: .6rem; padding: .75rem .9rem; background: var(--panel); }
.turn.user { border-color: transparent; background: #0c2238; align-self: flex-end; max-width: 85%; }
.turn .text { white-space: pre-wrap; overflow-wrap: anywhere; margin: .4rem 0; }
.turn .meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: .85rem; color: var(--muted); }
.verdict { font-family: var(--mono); font-weight: 600; padding: .05rem .45rem; border-radius: .3rem; border: 1px solid currentColor; }
.verdict.PASS { color: var(--pass); }
.verdict.CLARIFY { color: var(--clarify); }
.verdict.ESCALATE { color: var(--escalate); }
.verdict.BLOCK { color: var(--block); }
.codes { font-family: var(--mono); }
.check { font-family: var(--mono); font-size: .8rem; overflow-wrap: anywhere; }
.check.ok { color: var(--pass); }
.check.bad { color: var(--block); }
.turn.error { border-color: var(--block); }
.turn.error button { margin: 0; padding: .3rem .7rem; }
.ask .row { display: flex; gap: .75rem; justify-content: space-between; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.turn button.receipt { padding: .2rem .6rem; font-size: .85rem; margin: 0; }
