/* Chat demo site. One stylesheet, no inline styles anywhere: the strict-policy page forbids them. */
:root {
  --bg: #ffffff; --ink: #17202e; --soft: #5b6676; --line: #dfe4ea; --card: #f6f8fa; --brand: #1d4f91; --warn: #9a5b00; --warn-bg: #fff4dc;
}
body.dark { --bg: #10151d; --ink: #e8edf3; --soft: #9aa7b6; --line: #2a3340; --card: #18202b; --brand: #7fb0ee; --warn: #ffcf7a; --warn-bg: #3a2c10; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--brand); }
.ribbon { background: var(--warn-bg); color: var(--warn); font-size: 13px; font-weight: 600; text-align: center; padding: 6px 12px; }
header.site { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding: 14px 24px; border-bottom: 1px solid var(--line); }
.brand { font-size: 20px; font-weight: 700; color: var(--ink); text-decoration: none; }
header.site nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }
header.site nav a { text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
header.site nav a[aria-current="page"] { border-bottom-color: var(--brand); font-weight: 600; }
main { max-width: 860px; margin: 0 auto; padding: 28px 24px 360px; }
h1 { font-size: 28px; line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: 19px; margin: 28px 0 8px; }
p { margin: 0 0 12px; }
.lead { color: var(--soft); font-size: 17px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 20px 0; padding: 0; list-style: none; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.card h3 { margin: 0 0 4px; font-size: 16px; }
.card .price { font-weight: 700; }
.note { background: var(--card); border-left: 4px solid var(--brand); border-radius: 6px; padding: 12px 14px; margin: 16px 0; font-size: 15px; }
.note strong { display: block; margin-bottom: 2px; }
ol.check, ul.check { padding-left: 22px; }
ol.check li, ul.check li { margin-bottom: 6px; }
label { display: block; font-size: 14px; font-weight: 600; margin: 14px 0 4px; }
input[type="text"], input[type="email"], input[type="url"], input[type="tel"] {
  width: 100%; max-width: 520px; padding: 9px 11px; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
}
button { font: inherit; font-size: 14px; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
button.primary { background: var(--brand); border-color: var(--brand); color: var(--bg); font-weight: 600; }
button:focus-visible, a:focus-visible, input:focus-visible, .log:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.msg { margin-top: 12px; font-size: 14px; min-height: 20px; }
.msg.bad { color: #b42318; }
body.dark .msg.bad { color: #ff9c8f; }
code { background: var(--card); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; font-size: 14px; }
.banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--card); border-top: 1px solid var(--line); padding: 14px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.banner[hidden] { display: none; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.view { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; min-height: 120px; }

/* The tester's panel: bottom left, out of the chat's way (the chat is bottom right by default). */
.panel { position: fixed; left: 16px; bottom: 16px; z-index: 40; width: 340px; max-width: calc(100vw - 32px); background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18); font-size: 13px; }
.panel-toggle { width: 100%; text-align: left; border: 0; border-radius: 12px; background: transparent; font-weight: 700; padding: 10px 12px; }
.panel-toggle::after { content: " –"; float: right; }
.panel.closed .panel-toggle::after { content: " +"; }
.panel.closed .panel-body { display: none; }
.panel.closed { width: auto; }
.panel.closed .panel-toggle { padding-right: 34px; }
.panel-body { padding: 0 12px 12px; }
.panel .state { color: var(--soft); margin: 0 0 8px; overflow-wrap: anywhere; }
.panel .row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.panel button { font-size: 12.5px; padding: 5px 9px; }
.log { margin: 8px 0 6px; height: 130px; overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 8px; font: 12px/1.45 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.panel .hint { margin: 0; }
@media (max-width: 640px) {
  .panel { left: 8px; bottom: 84px; width: calc(100vw - 16px); }
  main { padding-bottom: 420px; }
}

/* The tester and the way out, at the right of the header. */
.tester { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--soft); }
.tester form { margin: 0; }
.tester button { font-size: 12.5px; padding: 4px 9px; }
input[type="password"] { width: 100%; max-width: 520px; padding: 9px 11px; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
