@font-face { font-family: "Bricolage Grotesque"; font-weight: 400 800; font-display: swap; src: url(fonts/bricolage.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 400 700; font-display: swap; src: url(fonts/figtree.woff2) format("woff2"); }
:root {
  --bg: #f6f8f1; --panel: #fff; --ink: #0e1a12; --mute: #4a5a4f; --line: #d7dfd0; --soft: #eef3e6;
  --acc: #7ed321; --acc-ink: #0e1a12; --acc-soft: #e6f4d3; --canopy: #0f2c1e; --link: #2b6b10;
  font: 16px/1.55 "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif; color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b1e14; --panel: #11281b; --ink: #eef5ea; --mute: #a9bbae; --line: #24402f; --soft: #163323; --acc-soft: #1a3a23; --link: #9be34a; color-scheme: dark; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); min-height: 100vh; }
a { color: var(--link); }
[hidden] { display: none !important; }
.mx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mx-small { font-size: 13px; color: var(--mute); }
.mx-bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; background: var(--panel); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.mx-brand { display: flex; align-items: center; gap: 8px; font: 700 18px "Bricolage Grotesque", system-ui, sans-serif; }
.mx-by { font: 500 13px "Figtree", system-ui; color: var(--mute); }
.mx-right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mx-chip { font-size: 12px; background: #fbf0d4; color: #7a4a00; border-radius: 999px; padding: 3px 10px; font-weight: 600; }
.mx-ghost { font: inherit; font-size: 14px; background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; text-decoration: none; }
.mx-ghost[aria-pressed="true"] { background: var(--acc-soft); border-color: var(--acc); }
.mx-cta { font: inherit; font-weight: 700; background: var(--acc); color: var(--acc-ink); border: 0; border-radius: 999px; padding: 8px 18px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.mx-cta:disabled { opacity: .5; cursor: default; }
.mx-disclosure { margin: 0; padding: 10px 16px; background: var(--canopy); color: #eef5ea; font-size: 14px; text-align: center; }
.mx-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; max-width: 1080px; margin: 0 auto; padding: 16px; }
@media (min-width: 900px) { .mx-main.with-side { grid-template-columns: minmax(0, 1fr) 300px; } }
.mx-chat { display: flex; flex-direction: column; min-height: calc(100vh - 150px); }
.mx-log { flex: 1; display: flex; flex-direction: column; gap: 12px; padding-bottom: 12px; }
.mx-msg { max-width: 760px; padding: 12px 14px; border-radius: 16px; white-space: pre-wrap; word-wrap: break-word; }
.mx-msg.max { background: var(--panel); border: 1px solid var(--line); align-self: flex-start; }
.mx-msg.client { background: var(--acc-soft); align-self: flex-end; }
.mx-msg .who { display: block; font-size: 12px; color: var(--mute); margin-bottom: 2px; font-weight: 600; }
.mx-msg.typing::after { content: "▍"; animation: mxblink 1s steps(2) infinite; }
@keyframes mxblink { 50% { opacity: 0; } }
.mx-cards { display: grid; gap: 10px; margin-bottom: 12px; }
.mx-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.mx-card h3 { margin: 0 0 4px; font: 700 16px "Bricolage Grotesque", system-ui; }
.mx-card pre { white-space: pre-wrap; font: 14px/1.5 "Figtree", system-ui; background: var(--soft); padding: 10px; border-radius: 10px; margin: 8px 0; max-height: 220px; overflow: auto; }
.mx-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.mx-form { position: sticky; bottom: 0; display: flex; gap: 8px; padding: 10px 0 4px; background: var(--bg); }
.mx-form textarea { flex: 1; font: inherit; padding: 10px 14px; border: 1px solid var(--line); border-radius: 16px; resize: none; background: var(--panel); color: var(--ink); min-height: 46px; max-height: 160px; }
.mx-foot { font-size: 12px; color: var(--mute); margin: 4px 0 0; }
.mx-side { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px; align-self: start; position: sticky; top: 64px; }
.mx-side h2 { font: 700 16px "Bricolage Grotesque", system-ui; margin: 0 0 8px; }
.mx-side dt { font-size: 12px; color: var(--mute); margin-top: 8px; }
.mx-side dd { margin: 0; font-size: 14px; }
.mx-side dd.missing { color: var(--mute); font-style: italic; }
.mx-side .mx-cta { width: 100%; margin-top: 12px; }
.mx-modal { position: fixed; inset: 0; background: rgba(6,20,13,.55); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 30; }
.mx-modal-box { background: var(--panel); border-radius: 18px; padding: 20px; max-width: 460px; }
.mx-modal-box h2 { margin: 0 0 8px; font: 700 20px "Bricolage Grotesque", system-ui; }
.mx-listening { background: #fdecea !important; border-color: #b42318 !important; }
.mx-quiet { font-size: 14px; color: var(--mute); text-decoration: none; padding: 6px 4px; }
.mx-quiet:hover { text-decoration: underline; }
