:root {
  --paper: #f4efe4;
  --ink: #1c1915;
  --red: #8d2e2e;
  --line: #d9d1bf;
  --card: #fffdf8;
  --muted: #5d564a;
  --ok: #1f6b3a;
  --warn: #8a5a00;
  --bad: #9b1c1c;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.top { background: var(--ink); color: #fff; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; text-decoration: none; }
nav a { color: #f1e9d6; margin-left: 18px; text-decoration: none; }
nav a:hover, nav a:focus-visible { text-decoration: underline; }
h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.15; margin: 36px 0 12px; }
h2 { font-size: 1.4rem; margin: 40px 0 12px; border-bottom: 2px solid var(--line); padding-bottom: 6px; }
h3 { margin: 0 0 8px; font-size: 1.05rem; }
.lead { font-size: 1.15rem; max-width: 760px; }
.fine, .muted { color: var(--muted); }
.small { font-size: .88rem; }
a { color: var(--red); }
code { background: #ece5d3; padding: 1px 6px; border-radius: 4px; word-break: break-all; }
.grid2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
label { display: block; margin: 10px 0 4px; font-weight: 600; font-size: .92rem; }
input { width: 100%; padding: 10px 12px; border: 1px solid #b9b09b; border-radius: 8px; font: inherit; background: #fff; }
button { font: inherit; cursor: pointer; border: 1px solid #8f8670; background: #fff; color: var(--ink); border-radius: 8px; padding: 8px 14px; }
button:hover:not(:disabled) { background: #f0e9d8; }
button:disabled { opacity: .55; cursor: wait; }
button.primary { background: var(--red); color: #fff; border-color: var(--red); }
button.primary:hover:not(:disabled) { background: #742323; }
button.link { background: none; border: 0; color: var(--red); text-decoration: underline; padding: 0; }
:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; }
.presets { display: grid; gap: 10px; }
.preset { text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; }
.preset span { color: var(--muted); font-size: .9rem; }
#url-run { margin-top: 12px; }
.status { min-height: 1.4em; margin: 10px 0 0; }
.status.bad { color: var(--bad); }
.checks { display: grid; gap: 14px; }
.check { border-left-width: 6px; }
.check.ok { border-left-color: var(--ok); }
.check.warn { border-left-color: #c58a00; }
.check.bad { border-left-color: var(--bad); }
.check-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.check-head h3 { margin: 0; }
.pill { display: inline-block; padding: 3px 12px; border-radius: 999px; color: #fff; font-weight: 700; font-size: .9rem; }
.pill.ok { background: var(--ok); }
.pill.warn { background: #8a5a00; }
.pill.bad { background: var(--bad); }
.lines { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 6px; }
.lines li { display: flex; gap: 10px; align-items: baseline; }
.lines .mark { flex: none; min-width: 52px; text-align: center; font-size: .75rem; font-weight: 700; border-radius: 6px; padding: 1px 6px; color: #fff; }
.lines li.ok .mark { background: var(--ok); }
.lines li.warn .mark { background: #8a5a00; }
.lines li.bad .mark { background: var(--bad); }
.proof { display: flex; flex-direction: column; gap: 2px; border-radius: 8px; padding: 10px 12px; margin: 10px 0; background: #eef6ef; border: 1px solid #b7d6bd; }
.proof.invalid { background: #fbeeee; border-color: #e3b4b4; }
.proof.unverifiable { background: #fbf4e3; border-color: #e6d3a0; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
.raw pre { overflow: auto; max-height: 280px; background: #1c1915; color: #f4efe4; padding: 12px; border-radius: 8px; font-size: .82rem; }
.verify-out { min-height: 1.3em; margin: 4px 0; }
.ledger .budget { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.inline { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.inline input { width: 160px; }
.decisions { margin: 10px 0; padding-left: 22px; }
.sr { position: absolute; left: -9999px; }
.files li { margin: 4px 0; }
.foot { color: var(--muted); font-size: .88rem; padding-bottom: 40px; margin-top: 30px; }

/* Assistant: layout from the agentify-website template, in this site's colors. */
.assistant { margin-top: 48px; }
#agent-app {
  --ns-font: system-ui, sans-serif;
  --ns-bg: #ffffff;
  --ns-fg: #1c1915;
  --ns-primary: #8d2e2e;
  --ns-accent: #8d2e2e;
  --ns-border: #d9d1bf;
  --ns-panelbg: #ffffff;
  --ns-msgbg: #f6f1e6;
  --ns-muted: #5d564a;
}
.assistant-panels { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 16px; margin-top: 16px; }
#agent-app.ns-composed-app [data-ns-slot="chat"] { height: 720px; }
#agent-app .ns-chat { background: var(--ns-bg); }
#agent-app input[type="checkbox"], #agent-app input[type="radio"] { width: auto; }
#agent-app .ns-header { flex-wrap: wrap; }
#agent-app .ns-settings-body label { margin: 4px 0; font-weight: 400; }
#agent-app .ns-w-label { font-family: inherit; }
#agent-app .ns-widget label { margin: 0; }
#agent-app .ns-w-radio label, #agent-app .ns-w-multi label, #agent-app .ns-w-toggle { font-weight: 400; }
#agent-app .ns-w-toggle { font-size: 13px; }
#agent-app button { margin: 0; }
#agent-app .ns-w-choice { color: var(--ns-fg); }
#agent-app .ns-devtoggle:not(.on):hover, #agent-app .ns-modal-close:hover { background: transparent; }
#agent-app .ns-w-choice:disabled:hover { background: #fafbfc; }
#agent-app .ns-consent { background: #fffbeb; }
#agent-app .ns-msgs:has(.ns-consent-actions) > .ns-turn-status { display: none; }
#agent-app .ns-msg { overflow-wrap: break-word; }
#agent-app .ns-consent-actions { flex-wrap: wrap; }
#agent-app .ns-consent-actions button { white-space: nowrap; }
body > dialog h2 { margin: 0 0 12px; font: 700 1.25em system-ui, sans-serif; border: 0; padding: 0; }
body > dialog button { margin-right: 8px; }
.assistant-review { max-width: 640px; width: 85%; max-height: 85vh; overflow: auto; border: 1px solid #888; border-radius: 12px; padding: 24px; font: 16px system-ui, sans-serif; }
.assistant-review dl { display: grid; grid-template-columns: fit-content(40%) 1fr; gap: 4px 16px; margin: 12px 0; }
.assistant-review dt { font-weight: 600; }
.assistant-review dd { margin: 0; overflow-wrap: anywhere; }
.assistant-review details { margin: 12px 0; }
.assistant-review pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.assistant-review .assistant-decline { background: transparent; color: inherit; border: 1px solid currentColor; }

@media (max-width: 760px) {
  .grid2, .assistant-panels { grid-template-columns: 1fr; }
  nav a { margin: 0 14px 0 0; }
  .inline { margin-left: 0; }
  .assistant-review dl { grid-template-columns: 1fr; gap: 0; }
  .assistant-review dd { margin-bottom: 8px; }
}

.top small { font-weight: 400; color: #d9cfb6; margin-left: 4px; }
.items { display: grid; gap: 10px; }
.item { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.item .meta { color: var(--muted); font-size: .9rem; }
.cart-group { margin-bottom: 12px; }
.cart-group ul { margin: 6px 0 10px; padding-left: 20px; }
.cart-group select { width: auto; display: inline-block; }
