:root {
  color-scheme: light;
  --paper: #f8f9f6;
  --white: #fff;
  --ink: #1e2921;
  --muted: #768275;
  --line: #dbe2d9;
  --accent: #b8e993;
  --mono: 'DM Mono', ui-monospace, monospace;
  --sans: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 14px/1.5 var(--sans); }
button, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #638a55; outline-offset: 3px; }

.site-header { position: sticky; top: 0; z-index: 10; height: 58px; background: #f8f9f6ed; border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-inner { max-width: 1180px; height: 100%; margin: auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; }
.header-actions { display: flex; align-items: center; gap: 22px; }
.github-link { color: #5d715e; font-size: 11px; }
.github-link:hover { color: #203b27; text-decoration: underline; text-underline-offset: 3px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 13px; letter-spacing: -.045em; }
.brand-mark { position: relative; display: block; width: 17px; height: 17px; background: #25382a; }
.brand-mark::before { content: ''; position: absolute; left: 7px; top: 6px; width: 3px; height: 3px; background: var(--accent); box-shadow: -4px 4px var(--accent), 4px -4px var(--accent); }
.header-count, .eyebrow, .library-heading, .panel-count, .state-code, .composer-card-header, .element-card-head, .element-filters, .copy-code, .usage, footer { font-family: var(--mono); }
.header-count { color: #879487; font-size: 9px; letter-spacing: .08em; }
main { max-width: 1180px; margin: auto; padding: 48px 28px 64px; }
.intro { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 37px; }
.eyebrow { display: block; margin-bottom: 12px; color: #71866e; font-size: 9px; letter-spacing: .09em; }
h1 { margin: 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.1; letter-spacing: -.065em; font-weight: 600; }
.intro p { margin: 0 0 5px; color: #6f7e70; font-size: 12px; }
.install-bar { display: flex; align-items: center; gap: 14px; min-height: 58px; margin: -15px 0 38px; padding: 9px 12px 9px 16px; border: 1px solid #d6e0d3; background: #fff; }
.install-command { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.install-prompt { color: #89a084; font: 12px var(--mono); }
.install-command code { color: #26392c; font: 12px var(--mono); }
.npm-status { margin-left: 3px; padding: 4px 6px; border: 1px solid #e8ece5; color: #889486; font: 8px var(--mono); letter-spacing: .04em; white-space: nowrap; }
.install-copy, .install-github { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 0 11px; border: 1px solid #d9e1d7; background: #fff; color: #435a45; font-size: 10px; }
.install-copy { font-family: var(--mono); }
.install-copy:hover, .install-github:hover { border-color: #9fb69a; background: #f5f8f2; }
.install-github { gap: 9px; }
.install-github span { color: #82967e; }
.library { scroll-margin-top: 76px; }
.library-heading { display: flex; justify-content: space-between; padding-bottom: 8px; color: #839181; font-size: 9px; letter-spacing: .08em; }
.component-tabs { display: flex; gap: 28px; overflow-x: auto; border-bottom: 1px solid #cfd9cb; scrollbar-width: thin; }
.component-tabs button { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; position: relative; padding: 14px 1px 15px; border: 0; background: transparent; color: #788677; font-size: 13px; font-weight: 500; white-space: nowrap; }
.component-tabs button > span { color: #99a899; font: 9px var(--mono); }
.component-tabs button small { margin-left: 1px; padding: 2px 5px; background: #edf1eb; color: #879686; font: 9px var(--mono); }
.component-tabs button[aria-selected=true] { color: #223526; }
.component-tabs button[aria-selected=true]::after { content: ''; position: absolute; height: 2px; bottom: -1px; left: 0; right: 0; background: #31533a; }
.component-tabs button:hover { color: #223526; }
.component-panel { padding-top: 26px; }
.panel-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 19px; }
.panel-head h3 { margin: 0; font-size: 22px; line-height: 1.2; letter-spacing: -.05em; font-weight: 600; }
.panel-head p { margin: 5px 0 0; color: #7f8a7d; font-size: 11px; }
.panel-count { padding-bottom: 2px; color: #8a9888; font-size: 9px; white-space: nowrap; }

.status-grid, .composer-grid, .element-grid, .bot-grid { display: grid; gap: 16px; }
.status-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.composer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.element-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.state-card, .composer-card, .element-card, .bot-card { min-width: 0; overflow: hidden; background: var(--white); border: 1px solid var(--line); transition: border-color .18s; }
.state-card:hover, .composer-card:hover, .element-card:hover, .bot-card:hover { border-color: #aabbab; }
.state-card { display: flex; flex-direction: column; }
.state-card-head, .composer-card-header, .element-card-head { min-height: 47px; display: flex; align-items: center; justify-content: space-between; padding: 13px 15px; border-bottom: 1px solid #edf1ec; }
.state-code, .composer-card-header b, .element-card-head b { color: #2d402f; font-size: 10px; font-weight: 500; }
.state-stage { min-height: 94px; display: flex; align-items: center; padding: 11px 19px; }
.copy-row, .composer-card-footer, .element-card-foot { display: flex; justify-content: flex-end; align-items: center; min-height: 44px; margin-top: auto; padding: 8px 15px; border-top: 1px solid #edf1ec; }
.copy-code { border: 0; padding: 4px 1px; background: transparent; color: #53784d; font-size: 9px; }
.copy-code:hover { color: #213d2a; text-decoration: underline; text-underline-offset: 3px; }
.copy-code::after { content: ' ↗'; }
.composer-card-header { min-height: 63px; }
.composer-card-header small { display: block; margin-top: 4px; color: #91a090; font-size: 9px; }
.composer-stage { min-height: 198px; padding: 32px 40px; display: flex; align-items: center; justify-content: center; background: #202722; }
.composer-stage pixel-chat-effect { width: 100%; max-width: 420px; }
.sample-composer { display: flex; align-items: end; gap: 8px; min-height: 87px; padding: 14px; border: 1px solid #4a554b; border-radius: 10px; background: #252b26; }
.sample-composer textarea { display: block; flex: 1; min-width: 0; min-height: 50px; resize: none; border: 0; outline: 0; background: transparent; color: #e6eee4; font-size: 11px; line-height: 1.5; }
.sample-composer textarea::placeholder { color: #889588; }
.sample-composer button { width: 23px; height: 23px; flex: none; padding: 0; display: grid; place-items: center; border: 1px solid #657565; border-radius: 5px; background: #303a32; color: #c5d5c1; font-size: 12px; }
.sample-composer button:hover { background: #405646; }
.element-card { display: flex; flex-direction: column; }
.element-card pixel-terminal { display: flex; flex: 1; align-items: center; min-width: 0; padding: 12px; background: #202722; }
.terminal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.element-card-head em { color: #9aa798; font-size: 8px; font-style: normal; }
.element-card pixel-ui-element { display: flex; flex: 1; }
.bot-state-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.bot-state-controls > span { margin-right: 5px; color: #839181; font: 8px var(--mono); letter-spacing: .08em; }
.bot-state-controls button { min-height: 28px; padding: 0 9px; border: 1px solid var(--line); background: #fff; color: #778677; font: 9px var(--mono); }
.bot-state-controls button:hover { border-color: #9eb198; color: #34533a; }
.bot-state-controls button[aria-pressed=true] { border-color: #b4cbaa; background: #edf3e9; color: #35543a; }
.bot-card { display: grid; grid-template-columns: 82px minmax(0,1fr); grid-template-rows: 82px auto; align-items: center; }
.bot-card-stage { grid-row: 1 / 3; display: grid; place-items: center; height: 100%; min-height: 107px; background: #f4f6f2; border-right: 1px solid #edf1ec; }
.bot-card-copy { min-width: 0; align-self: end; padding: 13px 13px 0; }
.bot-card-copy b, .bot-card-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bot-card-copy b { color: #2d402f; font-size: 11px; font-weight: 600; }
.bot-card-copy small { margin-top: 3px; color: #839181; font-size: 9px; }
.bot-card-foot { display: flex; justify-content: flex-end; align-self: end; min-height: 29px; padding: 0 13px 7px; }
.bot-card-foot .copy-code { font-size: 8px; }
.bot-use-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-top: 28px; }
.bot-use-card { min-width: 0; padding: 17px; border: 1px solid var(--line); background: #fff; }
.bot-use-label { display: block; margin-bottom: 13px; color: #859383; font: 8px var(--mono); letter-spacing: .09em; }
.bot-team-row { display: flex; align-items: center; gap: 10px; min-height: 50px; border-top: 1px solid #edf1ec; }
.bot-team-row > div { flex: 1; min-width: 0; }
.bot-team-row b, .bot-team-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bot-team-row b { color: #354638; font-size: 10px; font-weight: 500; }
.bot-team-row small { margin-top: 2px; color: #8b9789; font-size: 9px; }
.bot-live, .bot-wait, .bot-reply-meta { color: #6f895f; font: 8px var(--mono); letter-spacing: .04em; }
.bot-wait { color: #9aa397; }
.bot-chat-demo { display: flex; flex-direction: column; justify-content: center; min-height: 196px; }
.bot-user-message { align-self: flex-end; max-width: 84%; padding: 10px 12px; border: 1px solid #e3e8e1; background: #f7f8f6; color: #455247; font-size: 10px; }
.bot-reply { display: flex; align-items: flex-start; gap: 9px; margin-top: 16px; }
.bot-reply p { margin: 2px 0 0; color: #536153; font-size: 10px; line-height: 1.55; }
.bot-reply-meta { display: flex; justify-content: space-between; margin: 11px 0 0 34px; color: #899687; }
.element-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 17px; }
.element-filters button { padding: 7px 10px; border: 1px solid var(--line); background: #fff; color: #70806e; font: 9px var(--mono); }
.element-filters button span { margin-left: 5px; color: #9ba99a; }
.element-filters button:hover { border-color: #9eb198; }
.element-filters button[aria-pressed=true] { background: #e9f3e4; border-color: #aac5a0; color: #34533a; }
.element-filters button[aria-pressed=true] span { color: #5e805b; }
.usage { margin-top: 28px; border: 1px solid var(--line); background: #fff; color: #596d58; }
.usage summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; font-size: 10px; cursor: pointer; list-style: none; }
.usage summary::-webkit-details-marker { display: none; }
.usage summary span { color: #8d9d8b; font-size: 9px; }
.usage[open] summary { border-bottom: 1px solid #edf1ec; }
.usage-body { display: flex; align-items: start; justify-content: space-between; gap: 14px; padding: 15px; }
.usage pre { margin: 0; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: 10px/1.8 var(--mono); }
.usage .copy-code { flex: none; }
footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 55px; padding-top: 15px; border-top: 1px solid var(--line); color: #a0ada0; font-size: 8px; }
@media (max-width: 980px) { .status-grid, .element-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { main { padding: 34px 18px 50px; } .header-inner { padding: 0 18px; } .intro { display: block; margin-bottom: 30px; } .intro p { margin-top: 12px; } .install-bar { flex-wrap: wrap; gap: 8px; margin: -10px 0 30px; } .install-command { flex-basis: 100%; padding: 4px 0; } .install-copy, .install-github { flex: 1; } .composer-grid { grid-template-columns: 1fr; } .composer-stage { min-height: 185px; } }
@media (max-width: 700px) { .bot-use-grid { grid-template-columns: 1fr; } }
@media (max-width: 570px) { .header-count { font-size: 8px; } .header-actions { gap: 12px; } .github-link { font-size: 10px; } .status-grid, .element-grid { grid-template-columns: 1fr; } .component-tabs { gap: 12px; overflow-x: auto; } .component-tabs button { flex: 0 0 auto; gap: 5px; font-size: 10px; } .component-tabs button small { margin-left: 1px; padding: 2px 4px; } .panel-count { display: none; } .usage-body { display: block; } .usage .copy-code { margin-top: 8px; } .bot-card { grid-template-columns: 66px minmax(0,1fr); grid-template-rows: 72px auto; } .bot-card-stage { min-height: 97px; } .bot-card-stage pixel-bot-avatar { --bot-size: 48px; } .bot-card-copy { padding-right: 7px; padding-left: 10px; } .bot-card-foot { padding-right: 10px; } .bot-use-card { padding: 14px; } }
@media (max-width: 370px) { .component-tabs button > span { display: none; } .header-count { display: none; } .composer-stage { padding: 28px 22px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition-duration: .01ms !important; } }

.quickstart { margin: -24px 0 32px; border: 1px solid var(--line); background: #fff; color: #425343; }
.quickstart summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 43px; padding: 10px 14px; font-size: 10px; cursor: pointer; list-style: none; }
.quickstart summary::-webkit-details-marker { display: none; }
.quickstart summary span { color: #849481; font: 9px var(--mono); }
.quickstart[open] summary { border-bottom: 1px solid #edf1ec; }
.quickstart-content { padding: 14px; }
.quickstart-content > p { margin: 0 0 12px; color: #788678; font-size: 10px; }
.quickstart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.quickstart-grid section { min-width: 0; padding: 10px; border: 1px solid #e3e9e1; background: #fafbf9; }
.quickstart-grid section > span { color: #7f907d; font: 8px var(--mono); letter-spacing: .06em; }
.quickstart-grid pre { min-height: 34px; margin: 8px 0 2px; overflow-x: auto; color: #293c2d; font: 10px/1.7 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.quickstart-content > a { color: #55784f; font-size: 9px; }
.quickstart-content > a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 570px) {
  .quickstart-grid { grid-template-columns: 1fr; }
  .install-copy { min-height: 40px; }
  .copy-code { min-height: 38px; padding: 8px 4px; }
  .element-filters button { min-height: 40px; }
  .bot-state-controls button { min-height: 40px; }
  .sample-composer button { width: 40px; height: 40px; }
}
