/* MDS Agent Board: client-facing site.
   One stylesheet for every page. Colours and type come from the tokens below. */

:root {
  --ground: #F6F7F9;
  --surface: #FFFFFF;
  --surface-2: #FBFBFC;
  --ink: #172033;
  --ink-2: #3A4456;
  --muted: #586174;
  --line: #E3E6EC;
  --line-strong: #C9CFDA;

  --accent: #1F5BD8;          /* links, primary buttons */
  --accent-hover: #163F99;
  --accent-soft: #F1F5FE;
  --try: #E8742A;             /* anything that starts a demo */
  --try-hover: #D8641C;

  --live-bg: #E4F4E8;  --live-fg: #1E6B34;
  --dev-bg: #EAECF1;   --dev-fg: #4A5568;

  /* Tones for the demo's agent kinds and the "gap" pill */
  --ask-fg: #1F4FB8;
  --watch-bg: #FDF1DE; --watch-fg: #8A5300;

  --night: #172033; --night-text: #D5DBE6;

  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E");
  --wrap: 1160px;
  --gutter: clamp(20px, 4vw, 32px);
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
figure { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
svg { flex: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 12px; z-index: 10; padding: 10px 14px; border-radius: 8px; background: var(--ink); color: #FFFFFF; }
.skip-link:focus { left: 12px; color: #FFFFFF; }

/* ---------- Header and footer ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand img { width: 46px; height: 43px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.brand-sub { font-size: 12px; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-nav a { padding: 12px; border-radius: 8px; color: var(--ink); font-size: 15px; text-decoration: none; }
.site-nav a:hover { background: var(--ground); color: var(--ink); }
.site-nav a.btn { margin-left: 6px; padding: 12px 16px; color: #FFFFFF; font-size: 15px; }
.site-nav a.btn:hover { background: var(--accent-hover); color: #FFFFFF; }

.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 24px; font-size: 14px; color: var(--muted); }

/* ---------- Buttons, chips, tags ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 20px; border-radius: 10px; border: 1.5px solid transparent;
  font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1.2;
  text-decoration: none; cursor: pointer;
}
.btn-sm { padding: 10px 14px; font-size: 15px; }
.btn-primary { background: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--accent-hover); color: #FFFFFF; }
.btn-try { background: var(--try); color: var(--ink); }
.btn-try:hover { background: var(--try-hover); color: var(--ink); }
.btn-light { border-color: #FFFFFF; background: transparent; color: #FFFFFF; }
.btn-light:hover { background: rgba(255, 255, 255, 0.12); color: #FFFFFF; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.lead { max-width: 34em; font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.fine { font-size: 14px; color: var(--muted); }
.caption { font-size: 13px; color: var(--muted); }

/* ---------- Hero: one heads-up, played start to finish ---------- */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 56px; padding-block: clamp(36px, 6vw, 64px); }
.hero-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.02em; }
.example { flex: 1 1 360px; min-width: 0; max-width: 460px; display: flex; flex-direction: column; gap: 16px; }

.player-window { position: relative; }
.player-window .chat-head { flex-wrap: nowrap; }
.player-window .chat-who { min-width: 0; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.player-btn { flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink); font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.player-btn:hover { border-color: var(--ink-2); }
.player-btn[hidden] { display: none; }
.player-log { display: flex; flex-direction: column; gap: 10px; height: 320px; overflow-y: auto; padding: 16px; background: var(--surface-2); scrollbar-width: thin; }
.player-log > :first-child { margin-top: auto; }
.player-log { -webkit-mask-image: linear-gradient(transparent, #000 28px); mask-image: linear-gradient(transparent, #000 28px); }
.ok { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--live-fg); }
.ok::before, .bubble .src b::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 999px; background: var(--live-fg) var(--check) center / 12px no-repeat; }
.player-log .msg { animation: rise 0.3s ease-out both; }
.player-log .opt { transition: transform 0.12s, filter 0.12s; }
.player-log .opt.is-pressed { transform: scale(0.95); filter: brightness(0.9); }
.day { align-self: center; font-size: 12px; color: var(--muted); }
.typing { display: inline-flex; gap: 4px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; background: var(--surface); }
.typing i { width: 6px; height: 6px; border-radius: 999px; background: var(--muted); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
.mail { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); font-size: 14px; line-height: 1.45; }
.mail-meta { display: flex; gap: 8px; }
.mail-meta span { flex: none; width: 54px; color: var(--muted); }
.mail-body { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--line); }
.mail-count { font-size: 12px; color: var(--muted); }
.player-cursor { position: absolute; left: 0; top: 0; z-index: 2; opacity: 0; transform: translate(360px, 400px); transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s; pointer-events: none; }
.player-cursor.is-on { opacity: 1; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes blink { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }

.example-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.example-steps li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--ink-2); text-wrap: balance; }
.example-steps .n, .clip-steps .n { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 999px; background: var(--ink); color: #FFFFFF; font-size: 13px; }
.example-steps .you { color: var(--accent); }
.example-steps .you .n { background: var(--accent); }

/* While a clip plays, each step lights up as the clip reaches it */
.is-live [data-steps] li { color: var(--muted); }
.is-live [data-steps] .n { background: var(--line); color: var(--ink-2); transition: background 0.3s, color 0.3s; }
.is-live [data-steps] .is-active { color: var(--accent); }
.is-live [data-steps] .is-active .n { background: var(--accent); color: #FFFFFF; }
.is-live [data-steps] .is-done { color: var(--ink-2); }
.is-live [data-steps] .is-done .n { background: var(--ink); color: #FFFFFF; }

/* ---------- Chat (agent pages and the practice demo) ---------- */
.chat { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 14px 36px rgba(23, 32, 51, 0.08); }
.chat-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.chat-who { display: flex; align-items: center; gap: 10px; }
.chat-who .who { display: flex; flex-direction: column; line-height: 1.25; }
.chat-who strong { font-size: 15px; }
.chat-who .meta { font-size: 12px; color: var(--muted); }
.msg { display: flex; }
.msg.you { justify-content: flex-end; }
.msg.agent { justify-content: flex-start; }
.bubble { max-width: 86%; font-size: 15px; line-height: 1.5; }
.msg.you .bubble { max-width: 80%; padding: 10px 14px; border-radius: 14px 14px 4px 14px; background: var(--accent); color: #FFFFFF; line-height: 1.45; }
.msg.agent .bubble { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; background: var(--surface); }
.bubble-label { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--watch-fg); }
.source { font-size: 12px; color: var(--muted); }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border: 1.5px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--ink);
  font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.opt.primary { border-color: var(--accent); background: var(--accent); color: #FFFFFF; }
span.opt { min-height: 38px; cursor: default; }

/* ---------- Sections ---------- */
.section { padding-block: 56px 72px; }
.h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.15; letter-spacing: -0.01em; }
.section-head { display: flex; flex-direction: column; gap: 8px; max-width: 42em; margin-bottom: 28px; }
.section-head p { font-size: 17px; color: var(--ink-2); }
.section-head--next { margin-top: 64px; }

/* ---------- Agent list: one card per agent ---------- */
.agent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.agent-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.agent-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.agent-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.agent-card h3 { font-size: 21px; line-height: 1.25; }
.agent-card p { font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.agent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; min-height: 52px; margin-top: auto; padding-top: 8px; }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: currentColor; }
.status--live { background: var(--live-bg); color: var(--live-fg); }
.status--dev { background: var(--dev-bg); color: var(--dev-fg); }
.status--dev::before { box-sizing: border-box; border: 2px solid currentColor; background: transparent; }

/* ---------- Dark band and closing call to action ---------- */
.band-night { background: var(--night); color: #FFFFFF; }
.band-night .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 40px; padding-block: 56px; }
.band-night h2 { color: #FFFFFF; }
.band-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.band-copy p { max-width: 36em; font-size: 17px; line-height: 1.6; color: var(--night-text); }
.cta-night { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(28px, 5vw, 44px); border-radius: 20px; background: var(--night); color: #FFFFFF; }
.cta-night .copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.cta-night h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.2; color: #FFFFFF; }
.cta-night p { font-size: 17px; color: var(--night-text); }

/* ---------- Agent pages ---------- */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.page-head .wrap { display: flex; flex-direction: column; gap: 18px; padding-block: 24px clamp(36px, 5vw, 56px); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.crumbs a { padding: 6px 0; text-decoration: none; }
.page-head h1 { font-size: clamp(36px, 5vw, 54px); line-height: 1.05; letter-spacing: -0.02em; }
.title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.page-head .lead { max-width: 38em; font-size: 19px; }
.section-cta { padding-bottom: 72px; }

/* ---------- Agent pages: "How it works" clips ---------- */
.agent-icon--lg { width: 60px; height: 60px; border-radius: 16px; }
.clips { display: flex; flex-direction: column; gap: 72px; padding-block: 56px 72px; }
.clips > .section-head { margin-bottom: -32px; }
.clip { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px 48px; align-items: center; }
.clip-text { display: flex; flex-direction: column; gap: 18px; }
.clip-n { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.clip-text h3 { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; }
.ba { display: grid; gap: 10px; margin: 0; }
.ba div { padding: 12px 16px; border-radius: 12px; }
.ba dt { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.ba dd { margin: 4px 0 0; font-size: 16px; line-height: 1.5; }
.ba .was { border: 1px solid var(--line); background: var(--surface); }
.ba .was dt { color: var(--muted); }
.ba .now { background: var(--accent-soft); }
.ba .now dt { color: var(--accent); }
.clip-steps { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.clip-steps li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--ink-2); }
.clip-figure { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.clip .player-log { height: 440px; }
.composer { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--surface); }
.composer-text { flex: 1; min-width: 0; min-height: 42px; display: flex; align-items: center; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 15px; line-height: 1.35; }
.composer-text:empty::before { content: attr(data-placeholder); color: var(--muted); }
.composer-send { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; background: var(--accent); color: #FFFFFF; }

/* Rich content inside clip messages */
.bubble .source { display: block; margin-top: 6px; }
.bubble :is(.srcs, .table, .chips, .facts, .people, .doc, .gantt, .mail) { margin-block: 8px 4px; }
.bubble .doc .gantt { margin-block: 0; }
.bubble .srcs, .bubble .people, .bubble .facts { display: flex; flex-direction: column; gap: 6px; }
.bubble .src { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); font-size: 14px; color: var(--muted); transition: color 0.3s, border-color 0.3s; }
.bubble .src b { display: inline-flex; align-items: center; gap: 6px; color: var(--live-fg); white-space: nowrap; opacity: 0; transition: opacity 0.3s; }
.bubble .src.is-on { border-color: var(--line-strong); color: var(--ink); }
.bubble .src.is-on b { opacity: 1; }
.bubble .table { display: grid; grid-template-columns: auto auto minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; line-height: 1.35; }
.bubble .table > span { padding: 7px 10px; border-top: 1px solid var(--line); background: var(--surface); }
.bubble .table > .th { border-top: 0; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 700; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill-ok { background: var(--live-bg); color: var(--live-fg); }
.pill-gap { background: var(--watch-bg); color: var(--watch-fg); }
.pill-no { background: var(--dev-bg); color: var(--dev-fg); }
.bubble .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bubble .chip { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 12.5px; }
.bubble .facts { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.bubble .facts > span { display: flex; gap: 10px; font-size: 14px; }
.bubble .facts i { flex: none; width: 116px; font-style: normal; color: var(--muted); }
.bubble .facts s { color: var(--muted); }
.bubble .person { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.bubble .person-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.bubble .person-top > span:not(.pill) { font-size: 13px; color: var(--muted); }
.bubble .person-why { font-size: 13.5px; color: var(--ink-2); }
.bubble .doc { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 13.5px; line-height: 1.45; }
.bubble .doc-title { padding-bottom: 6px; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 15px; font-weight: 700; }
.bubble .doc-h { margin-top: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.bubble .gantt { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.bubble .doc .gantt { padding: 4px 0 0; border: 0; background: none; }
.bubble > span > .gantt { width: 420px; max-width: 100%; }
.g-row { display: grid; grid-template-columns: 100px minmax(0, 1fr); align-items: center; gap: 8px; font-size: 12.5px; }
.g-track { position: relative; height: 12px; border-radius: 999px; background: var(--line); }
.g-bar { position: absolute; top: 0; bottom: 0; left: calc(var(--s) * 12.5%); width: calc(var(--w) * 12.5%); border-radius: 999px; background: var(--accent); transition: left 0.7s ease, width 0.7s ease; }
.g-bar.b1 { --s: 0; --w: 2; }
.g-bar.b2 { --s: 2; --w: 4; }
.g-bar.b3 { --s: 6; --w: 2; }
.gantt.is-on .g-bar.b1 { --w: 1.5; }
.gantt.is-on .g-bar.b2 { --s: 1.5; --w: 3.5; }
.gantt.is-on .g-bar.b3 { --s: 5; --w: 1; }
.g-total { align-self: flex-end; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.g-total .w6, .gantt.is-on .w8 { display: none; }
.gantt.is-on .w6 { display: inline; }

/* ---------- Practice page: the clips, played by the visitor ---------- */
.try-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; padding-bottom: 56px; }
.try-panel { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 20px; align-items: start; }
.try-panel[hidden] { display: none; }
.try-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.try-panel .player-log { height: 460px; }
.try-side { display: flex; flex-direction: column; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.try-side h2 { font-size: 19px; }
.try-side a { font-size: 15px; font-weight: 700; text-decoration: none; }
.player-hint { min-height: 1.5em; font-size: 15px; font-weight: 700; color: var(--accent); }
button.composer-send { padding: 0; border: 0; font: inherit; cursor: pointer; }
button.composer-send:disabled { opacity: 0.45; cursor: default; }
.opt.is-next, .composer-send.is-next { cursor: pointer; animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { box-shadow: 0 0 0 0 rgba(31, 91, 216, 0.5); } 50% { box-shadow: 0 0 0 7px rgba(31, 91, 216, 0); } }

.notice { border-bottom: 1px solid #F3D3B8; background: #FCEBDD; color: #6B3410; }
.notice .wrap { display: flex; align-items: center; gap: 10px; padding-block: 12px; font-size: 15px; }
.demo-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; padding-block: 24px 18px; }
.demo-title h1 { font-size: 30px; line-height: 1.2; }
.demo-title p { color: var(--ink-2); }
.picker { display: flex; flex-direction: column; gap: 10px; }
.picker-label { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.picker-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 44px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink);
  font-family: inherit; text-align: left; cursor: pointer;
}
.picker-btn:hover { border-color: var(--line-strong); }
.picker-btn[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.picker-btn strong { font-size: 16px; }
.picker-btn .s { font-size: 12px; color: var(--muted); }

/* ---------- Not found ---------- */
.not-found { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding-block: clamp(56px, 10vw, 120px); }
.not-found h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.1; }

/* ---------- Smaller screens ---------- */
@media (max-width: 1040px) {
  .agent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .try-layout { grid-template-columns: minmax(0, 1fr); }
  .picker { flex-direction: row; align-items: flex-start; overflow-x: auto; padding-bottom: 6px; }
  .picker-label { display: none; }
  .picker-btn { flex: none; width: 220px; }
}
@media (max-width: 900px) {
  /* On narrow screens: the clip's title, then the clip, then what it changes */
  .clip { display: flex; flex-direction: column; align-items: stretch; gap: 18px; }
  .clip-text { display: contents; }
  .clip-figure { order: 1; }
  .clip .ba, .clip .clip-steps { order: 2; }
  .clip .player-log { height: 400px; }
}
@media (max-width: 760px) {
  .try-panel { grid-template-columns: minmax(0, 1fr); }
  .try-panel .player-log { height: 420px; }
}
@media (max-width: 640px) {
  .agent-grid { grid-template-columns: minmax(0, 1fr); }
  .site-nav a { padding: 12px 8px; }
  .agent-card { padding: 20px; }
  .example-steps { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .player-log .msg, .typing i { animation: none; }
  .player-cursor, .player-log .opt, .g-bar, .bubble .src, .bubble .src b { transition: none; }
  .opt.is-next, .composer-send.is-next { animation: none; outline: 3px solid var(--accent); outline-offset: 2px; }
}
