/* KitScout agent page: the assistant in the site's own palette (style.css tokens), loaded after assistant.css. */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.assistant { margin-top: 8px; }

#agent-app {
  --ns-font: "Atkinson Hyperlegible", system-ui, sans-serif;
  --ns-bg: #ffffff;
  --ns-fg: #17332D;
  --ns-primary: #17332D;
  --ns-accent: #8A6A00;
  --ns-border: #CFD8D4;
  --ns-panelbg: #F3F7F4;
  --ns-msgbg: #EEF1EF;
  --ns-muted: #4D6A86;
}
/* manifest theme.primary is set inline on the mount; keep the page's pine */
#agent-app.ns-composed-app [data-ns-slot="chat"] { height: 560px; }
#agent-app .ns-chat { border: 2px solid var(--pine); border-radius: 10px; overflow: hidden; }
#agent-app .ns-header { border-bottom: 3px solid var(--blaze); padding-bottom: 8px; }
#agent-app .ns-msg { border-radius: 10px; font-size: 15.5px; line-height: 1.5; }
#agent-app .ns-msg pre, #agent-app .ns-msg code { font: 13px/1.45 ui-monospace, Consolas, monospace; }
#agent-app .ns-msg code { display: inline; margin: 0; word-break: normal; overflow-wrap: anywhere; }
#agent-app .ns-msg pre { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; overflow-x: auto; }
#agent-app .ns-msg pre code { display: block; }
#agent-app .ns-msg table { border-collapse: collapse; width: 100%; font-size: 14px; }
#agent-app .ns-msg th, #agent-app .ns-msg td { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
#agent-app .ns-msg h1, #agent-app .ns-msg h2, #agent-app .ns-msg h3 { font: 700 16px/1.3 "Atkinson Hyperlegible", system-ui, sans-serif; margin: 10px 0 4px; }
#agent-app .ns-inputbar input { font: inherit; font-size: 16px; padding: 11px 12px; border: 1px solid var(--pine); border-radius: 6px; }
#agent-app .ns-inputbar button { border-radius: 6px; padding: 11px 18px; font: 700 15px/1 "Atkinson Hyperlegible", sans-serif; }
#agent-app .ns-consent { border-color: var(--blaze); border-left: 5px solid var(--blaze); }
#agent-app .ns-consent-actions button { background: var(--pine); }
#agent-app .ns-consent-actions button.ghost { background: transparent; color: #7A4A00; border-color: #B98A00; }

#assistant-status { color: var(--slate); font-size: 14px; margin: 10px 0 0; }
.assistant-note { color: var(--slate); font-size: 13.5px; max-width: 80ch; margin: 10px 0 0; }

/* example questions: one press asks */
.asks { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 4px; }
.asks .ask { font: 15px/1.3 "Atkinson Hyperlegible", system-ui, sans-serif; text-align: left; color: var(--pine); background: var(--paper);
  border: 1px solid var(--pine); border-radius: 999px; padding: 8px 14px; cursor: pointer; transition: background .15s, color .15s; }
.asks .ask:hover, .asks .ask:focus-visible { background: var(--pine); color: #fff; }
.asks .ask:disabled { opacity: .5; cursor: default; }

h2.sec { font-size: clamp(26px, 3.4vw, 36px); margin: 48px 0 12px; line-height: 1.05; }
p.lede.sm { font-size: 16.5px; max-width: 72ch; margin-bottom: 14px; }
/* three copy cards for people who build their own agentic website */
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cardx { background: var(--paper); border: 1px solid #C9D9CF; border-top: 5px solid var(--blaze); border-radius: 12px; padding: 14px 16px 12px; display: flex; flex-direction: column; min-width: 0; }
.cardx .n { width: 26px; height: 26px; border-radius: 50%; background: var(--pine); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.cardx h3 { font: 700 17px/1.25 "Atkinson Hyperlegible", system-ui, sans-serif; margin: 10px 0 4px; }
.cardx p { margin: 0 0 10px; font-size: 14.5px; color: var(--slate); flex: 1 1 auto; }
.cardx p code { display: inline; margin: 0; font-size: 13px; color: var(--pine); word-break: normal; }
.cardx .inst, .assistant ~ .inst { margin: 0; }
.cardx .inst .cmd { overflow-wrap: anywhere; }
.life { margin-top: 28px; }
.mcpband a { font-weight: 700; }
p.note { color: var(--slate); font-size: 14px; max-width: 90ch; margin: 14px 0 0; overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .cards3 { grid-template-columns: 1fr; }
  #agent-app.ns-composed-app [data-ns-slot="chat"] { height: 520px; }
}

/* Copy boxes in answers (site.js decorate): one line that scrolls sideways instead of wrapping, Copy on the right. */
#agent-app .ns-msg .kc { display: flex; align-items: center; gap: 8px; margin: 6px 0; padding: 6px 6px 6px 12px; max-width: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: 8px; }
#agent-app .ns-msg .kc > code { flex: 1 1 auto; min-width: 0; display: block; margin: 0; white-space: pre; overflow-x: auto;
  font: 13px/1.5 ui-monospace, Consolas, monospace; overflow-wrap: normal; word-break: normal; padding: 3px 0; scrollbar-width: thin;
  background: transparent; border: 0; border-radius: 0; }
#agent-app .ns-msg .kc-block { align-items: flex-start; }
#agent-app .ns-msg .kc-copy { flex: none; font: 700 12.5px/1 "Atkinson Hyperlegible", system-ui, sans-serif; padding: 7px 10px; border-radius: 6px;
  border: 1px solid var(--pine); background: var(--paper); color: var(--pine); cursor: pointer; }
#agent-app .ns-msg .kc-copy:hover, #agent-app .ns-msg .kc-copy:focus-visible { background: var(--pine); color: #fff; }
#agent-app .ns-msg a { color: var(--pine); font-weight: 600; overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .asks .ask { font-size: 14px; padding: 7px 12px; border-radius: 14px; }
}
