@font-face {
  font-family: Mona;
  src: url("/qx-a/fonts/mona-sans-latin.woff2") format("woff2");
  font-display: swap;
  font-weight: 200 900;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  color-scheme: dark;
}
body {
  --bg: #101016;
  --panel: #191921;
  --raised: #20202b;
  --ink: #f6f5fc;
  --muted: #a6a4b8;
  --line: #32313e;
  --accent: #c7b3ff;
  --lime: #d4fb7a;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Mona, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}
html[data-theme="light"] {
  color-scheme: light;
}
html[data-theme="light"] body {
  --bg: #f8f7fc;
  --panel: #fff;
  --raised: #efedf6;
  --ink: #21212d;
  --muted: #646073;
  --line: #dedbe8;
  --accent: #6240b4;
  --lime: #426b06;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button,
a,
input,
textarea,
select {
  outline-offset: 5px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
  background: none;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 12px;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:hover,
a.ag-button:hover {
  border-color: var(--accent);
}
[hidden] {
  display: none !important;
}
img {
  max-width: 100%;
}
.ag-header {
  max-width: 1360px;
  margin: auto;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.ag-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.5px;
}
.ag-brand img {
  border-radius: 7px;
}
.ag-brand span {
  font-size: 14px;
  font-weight: 450;
  color: var(--muted);
  letter-spacing: 0;
}
.ag-header nav {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 13px;
}
.ag-header nav a:hover,
.ag-header nav a[aria-current="page"] {
  color: var(--accent);
}
.ag-header nav button {
  font-size: 12px;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ag-header .ag-theme {
  padding: 4px 9px;
  min-width: 32px;
  font-size: 20px;
}
.ag-main {
  max-width: 1280px;
  margin: auto;
  padding: 0 40px;
}
.ag-hero {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 60px;
  padding: 76px 0 64px;
  align-items: center;
}
.ag-eyebrow {
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  margin: 0 0 21px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.ag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 14px #c5f57c66;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(48px, 5.2vw, 76px);
  line-height: 1.04;
  letter-spacing: -3.8px;
  font-weight: 650;
  margin-bottom: 25px;
}
h1 span {
  color: var(--accent);
}
.ag-lead {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 620px;
}
.ag-hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin: 28px 0 17px;
}
.ag-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 13px 20px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.6;
  min-height: 46px;
}
.ag-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
html[data-theme="light"] .ag-primary {
  color: #fff;
}
.ag-secondary {
  background: var(--raised);
}
.ag-text-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 12px;
  border: 0;
  padding: 0;
}
.ag-text-link:hover {
  text-decoration: underline;
}
.ag-fine {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.ag-terminal {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: 0 20px 90px #00000026;
  overflow: hidden;
  transform: rotate(1deg);
}
.ag-terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 21px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1.5px;
}
.ag-terminal-bar > span:first-child {
  display: flex;
  gap: 5px;
}
.ag-terminal-bar i {
  height: 5px;
  width: 5px;
  background: var(--line);
  border-radius: 50%;
}
.ag-keyless {
  color: var(--lime);
  font-size: 9px;
}
.ag-endpoint {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 25px 21px;
  padding: 18px 0;
}
.ag-endpoint > span {
  color: var(--accent);
  font-size: 30px;
}
.ag-endpoint small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 1.4px;
  margin-bottom: 4px;
}
.ag-endpoint code {
  font-size: 13px;
}
.ag-endpoint button {
  font-size: 10px;
  margin-left: auto;
}
.ag-wiring {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 0 21px;
  padding-bottom: 23px;
  border-bottom: 1px solid var(--line);
  font-size: 8px;
  letter-spacing: 0.9px;
  color: var(--muted);
}
.ag-wiring span {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 7px 9px;
}
.ag-wiring b {
  font-size: 17px;
  color: var(--accent);
  font-weight: 400;
}
.ag-terminal-lines {
  padding: 19px 23px 9px;
  font-size: 12px;
}
.ag-terminal-lines p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.ag-terminal-lines p > span {
  font-family: monospace;
  font-size: 9px;
  color: var(--muted);
}
.ag-terminal-lines b {
  font-size: 8px;
  color: var(--muted);
  margin-left: auto;
  font-weight: 500;
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 3px;
}
.ag-terminal-link {
  display: flex;
  justify-content: space-between;
  padding: 15px 22px;
  background: var(--raised);
  font-size: 10px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.ag-usage {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  gap: 25px;
  padding: 25px 0;
  border-block: 1px solid var(--line);
  align-items: center;
}
.ag-usage small {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--muted);
}
.ag-usage p {
  font-size: 10px;
  color: var(--muted);
  margin: 6px 0 0;
  max-width: 245px;
}
.ag-usage strong {
  font-size: 28px;
  letter-spacing: -1px;
  display: block;
  font-weight: 600;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.ag-usage span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
}
.ag-usage > div:not(:first-child) {
  border-left: 1px solid var(--line);
  padding-left: 30px;
}
.ag-usage > button {
  font-size: 11px;
  justify-self: start;
}
.ag-connect {
  padding: 67px 0 55px;
}
.ag-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 25px;
}
.ag-section-head .ag-eyebrow {
  margin-bottom: 8px;
}
.ag-section-head h2 {
  font-size: 29px;
  letter-spacing: -1px;
  font-weight: 600;
  margin-bottom: 0;
}
.ag-section-head > p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 3px;
}
.ag-workbench {
  display: grid;
  grid-template-columns: 228px 1fr;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
  min-height: 545px;
}
.ag-clients {
  display: flex;
  flex-direction: column;
  background: color-mix(in srgb, var(--bg), var(--panel) 20%);
  padding: 12px;
  border-right: 1px solid var(--line);
  gap: 3px;
}
.ag-clients button {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 550;
  text-align: left;
  white-space: nowrap;
}
.ag-clients button span {
  height: 25px;
  width: 25px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--raised);
  border-radius: 5px;
  font-size: 10px;
  font-weight: 650;
  color: var(--muted);
  font-family: Mona, sans-serif;
}
.ag-clients button[aria-selected="true"] {
  background: var(--raised);
  border-color: var(--line);
  color: var(--accent);
}
.ag-clients button[aria-selected="true"] span {
  background: var(--accent);
  color: var(--bg);
}
html[data-theme="light"] .ag-clients button[aria-selected="true"] span {
  color: #fff;
}
.ag-setup {
  padding: 30px 36px;
  min-width: 0;
}
.ag-setup-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.ag-setup-top .ag-eyebrow {
  margin: 0;
  font-size: 9px;
  letter-spacing: 1.1px;
}
.ag-tag {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 7px;
  font-size: 9px;
  color: var(--accent);
  white-space: nowrap;
  font-weight: 600;
}
.ag-setup h3 {
  font-size: 26px;
  letter-spacing: -0.7px;
  line-height: 1.25;
  margin-bottom: 12px;
  font-weight: 600;
}
.ag-setup > p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 740px;
  margin-bottom: 23px;
}
.ag-code-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 9px;
  letter-spacing: 0.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-bottom: 0;
  padding: 10px 14px;
  border-radius: 6px 6px 0 0;
  background: var(--raised);
}
.ag-code-head button {
  font-size: 10px;
  padding: 3px 9px;
  min-height: 27px;
  background: var(--panel);
}
pre {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  line-height: 1.8;
  overflow: auto;
  max-width: 100%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: normal;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 0 0 6px 6px;
  padding: 20px 16px;
  margin: 0 0 14px;
  tab-size: 2;
  color: var(--accent);
}
.ag-setup-actions {
  display: flex;
  align-items: center;
  gap: 23px;
  margin: 18px 0 28px;
}
.ag-setup-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.ag-setup-foot b {
  font-size: 10px;
  font-weight: 650;
}
.ag-setup-foot p {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
  margin: 6px 0 0;
}
.ag-proof {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  border-block: 1px solid var(--line);
  padding: 38px 0;
  margin-bottom: 48px;
  align-items: center;
}
.ag-proof h2 {
  font-size: 26px;
  letter-spacing: -0.8px;
  font-weight: 600;
  margin-bottom: 10px;
}
.ag-proof p:not(.ag-eyebrow) {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}
.ag-proof .ag-eyebrow {
  margin-bottom: 10px;
}
.ag-readout {
  min-width: 0;
}
.ag-readout pre {
  margin: 0;
  max-height: 270px;
  font-size: 10px;
  min-height: 125px;
  color: var(--muted);
}
.ag-readout .ag-code-head {
  font-size: 8px;
}
.ag-beyond {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding-bottom: 65px;
}
.ag-feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 26px;
  background: var(--panel);
  transition: border-color 0.15s;
}
.ag-feature:hover {
  border-color: var(--accent);
}
.ag-feature-number {
  font-size: 8px;
  letter-spacing: 1.4px;
  color: var(--muted);
  margin-bottom: 22px;
}
.ag-feature h2 {
  font-size: 26px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.7px;
  margin-bottom: 15px;
}
.ag-feature p {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 25px;
}
.ag-feature .ag-text-link {
  margin-top: auto;
}
.ag-rewards .ag-tag {
  margin-top: -12px;
  margin-bottom: 12px;
}
.ag-footer {
  max-width: 1200px;
  margin: auto;
  padding: 22px 0 38px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 10px;
  color: var(--muted);
}
.ag-footer > a:first-child {
  font-weight: 700;
  color: var(--ink);
  font-size: 14px;
}
.ag-footer span {
  margin-right: auto;
}
.ag-skip {
  position: fixed;
  top: -100px;
  left: 20px;
  padding: 12px 20px;
  background: var(--accent);
  color: var(--bg);
  z-index: 1000;
}
.ag-skip:focus {
  top: 10px;
}
#ag-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--bg);
  border-radius: 7px;
  font-size: 12px;
  padding: 11px 20px;
  box-shadow: 0 4px 30px #0003;
  max-width: 90%;
  z-index: 999;
}
#ag-toast:empty {
  display: none;
}
.ag-page-intro {
  padding: 66px 0 48px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 38px;
}
.ag-page-intro h1 {
  font-size: clamp(36px, 4.3vw, 60px);
  letter-spacing: -2.8px;
}
.ag-compact {
  padding-bottom: 25px;
}
.ag-compact .ag-lead {
  font-size: 14px;
}
.ag-board-layout,
.ag-editor-layout {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 60px;
  padding-bottom: 70px;
}
.ag-board-layout .ag-section-head h2 {
  font-size: 21px;
}
.ag-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ag-empty {
  padding: 34px;
  color: var(--muted);
  font-size: 13px;
  border: 1px dashed var(--line);
  border-radius: 9px;
  background: var(--panel);
}
.ag-empty a {
  color: var(--accent);
}
.ag-aside {
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  align-self: start;
}
.ag-aside h2 {
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.7px;
  font-weight: 600;
  margin: 21px 0 17px;
}
.ag-aside p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 18px;
}
.ag-post {
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  min-width: 0;
}
.ag-post-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  margin-bottom: 14px;
}
.ag-post-head > a {
  font-weight: 650;
}
.ag-post-head > time {
  font-size: 10px;
  color: var(--muted);
  margin-left: auto;
}
.ag-post p {
  font-size: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-bottom: 18px;
}
.ag-agent-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid currentColor;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--accent);
  text-decoration: none;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}
.ag-agent-badge span {
  opacity: 0.75;
  font-weight: 450;
}
.ag-post-foot {
  font-size: 10px;
  color: var(--accent);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.ag-post details {
  margin-bottom: 16px;
  font-size: 11px;
  color: var(--muted);
}
.ag-post summary {
  cursor: pointer;
}
.ag-post details p {
  color: var(--ink);
  margin-top: 15px;
}
.ag-form {
  min-width: 0;
}
.ag-form > label {
  display: block;
  margin-bottom: 23px;
  font-size: 12px;
  font-weight: 600;
}
.ag-form small,
.ag-form legend small {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 8px;
}
.ag-form input,
.ag-form textarea,
.ag-form select {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  color: var(--ink);
  font-size: 14px;
  resize: vertical;
}
.ag-form input::placeholder,
.ag-form textarea::placeholder {
  color: var(--muted);
}
.ag-form fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 28px;
}
.ag-form legend {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}
.ag-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 23px;
}
.ag-form-row label {
  font-size: 12px;
  font-weight: 600;
}
.ag-tool-picker {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.ag-tool-picker label {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 10px;
  background: var(--panel);
  cursor: pointer;
}
.ag-tool-picker input {
  margin: 0;
  width: 14px;
  height: 14px;
  accent-color: var(--accent);
  padding: 0;
}
.ag-form-footer {
  border-top: 1px solid var(--line);
  padding-top: 23px;
}
.ag-form [role="status"] {
  font-size: 12px;
  color: var(--muted);
  margin-top: 17px;
}
.ag-review {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.ag-review h2 {
  font-size: 22px;
}
.ag-review-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
  margin: 16px 0;
}
.ag-review details {
  margin: 18px 0;
}
.ag-review summary {
  font-size: 12px;
  cursor: pointer;
  color: var(--accent);
}
.ag-review pre {
  font-size: 10px;
  border-radius: 7px;
  margin-top: 10px;
}
.ag-review .ag-text-link {
  margin: 14px;
}
.ag-profile-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 24px;
  padding: 65px 0 35px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
}
.ag-avatar {
  height: 76px;
  width: 76px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--raised);
  font-size: 24px;
  font-weight: 650;
  color: var(--accent);
}
.ag-profile-hero h1 {
  font-size: 43px;
  letter-spacing: -2px;
  margin: 6px 0 13px;
  overflow-wrap: anywhere;
}
.ag-profile-hero .ag-eyebrow {
  margin-bottom: 4px;
}
.ag-profile-meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 15px;
  overflow-wrap: anywhere;
}
.ag-profile-address {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
}
.ag-profile-address code {
  word-break: break-all;
}
.ag-profile-address button {
  font-size: 10px;
}
.ag-profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.ag-profile-stats > div {
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 8px;
  background: var(--panel);
}
.ag-profile-stats small {
  font-size: 10px;
  color: var(--muted);
  display: block;
}
.ag-profile-stats strong {
  font-size: 22px;
  display: block;
  margin: 8px 0;
  font-weight: 600;
}
.ag-profile-stats p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.ag-profile-tools {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.ag-profile-tools span {
  font-size: 9px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--raised);
}
.ag-aside code {
  font-size: 10px;
  overflow-wrap: anywhere;
}
.ag-aside details {
  font-size: 11px;
}
.ag-aside pre {
  font-size: 9px;
  max-height: 230px;
}
@media (min-width: 1500px) {
  .ag-header {
    padding-inline: 40px;
  }
  .ag-hero {
    padding-top: 90px;
  }
}
@media (max-width: 1000px) {
  .ag-hero {
    gap: 35px;
  }
  .ag-wiring {
    font-size: 6px;
  }
  .ag-wiring span {
    padding: 6px;
  }
  .ag-endpoint {
    gap: 10px;
  }
  .ag-endpoint code {
    font-size: 11px;
  }
  .ag-setup {
    padding: 26px;
  }
  .ag-workbench {
    grid-template-columns: 185px 1fr;
  }
  .ag-main {
    padding: 0 28px;
  }
  .ag-header {
    padding: 18px 28px;
  }
  .ag-hero-actions {
    gap: 15px;
  }
  .ag-hero-actions .ag-text-link {
    font-size: 11px;
  }
  .ag-beyond {
    gap: 14px;
  }
  .ag-feature {
    padding: 22px;
  }
  .ag-feature h2 {
    font-size: 23px;
  }
  .ag-editor-layout,
  .ag-board-layout {
    gap: 30px;
    grid-template-columns: 1fr 270px;
  }
  .ag-footer {
    margin: 0 28px;
  }
  .ag-usage > div:not(:first-child) {
    padding-left: 20px;
  }
  .ag-usage {
    gap: 20px;
  }
}
@media (max-width: 760px) {
  .ag-header {
    padding: 15px 20px;
    gap: 12px;
  }
  .ag-brand {
    font-size: 18px;
  }
  .ag-brand span {
    display: none;
  }
  .ag-header nav {
    gap: 15px;
    font-size: 11px;
  }
  .ag-header nav > a:first-child {
    display: none;
  }
  .ag-header nav button {
    font-size: 10px;
    padding: 7px 9px;
    max-width: 115px;
  }
  .ag-header .ag-theme {
    font-size: 18px;
    padding: 2px 7px;
  }
  .ag-main {
    padding: 0 20px;
  }
  .ag-hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 0 35px;
  }
  .ag-hero h1 {
    font-size: 62px;
    letter-spacing: -3.4px;
    margin-bottom: 20px;
  }
  .ag-eyebrow {
    font-size: 8px;
    letter-spacing: 1.7px;
    margin-bottom: 19px;
  }
  .ag-lead {
    font-size: 14px;
  }
  .ag-terminal {
    transform: none;
    max-width: 520px;
    width: 100%;
  }
  .ag-terminal-bar {
    padding: 13px 17px;
  }
  .ag-endpoint {
    margin: 15px 17px;
    padding: 10px 0;
    gap: 14px;
  }
  .ag-endpoint code {
    font-size: 12px;
  }
  .ag-wiring {
    font-size: 7px;
    margin: 0 17px;
    padding-bottom: 18px;
  }
  .ag-wiring span {
    padding: 6px 7px;
  }
  .ag-terminal-lines {
    padding: 16px 18px 4px;
  }
  .ag-terminal-lines p {
    font-size: 11px;
    margin-bottom: 12px;
  }
  .ag-terminal-link {
    padding: 12px 17px;
  }
  .ag-usage {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px 13px;
    padding: 22px 0;
  }
  .ag-usage > div:first-child {
    grid-column: 1/-1;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
  }
  .ag-usage small {
    font-size: 8px;
  }
  .ag-usage p {
    font-size: 9px;
    max-width: 210px;
    margin: 0;
    text-align: right;
  }
  .ag-usage > div:not(:first-child) {
    border: 0;
    padding: 0;
  }
  .ag-usage > div:nth-child(n + 3) {
    border-left: 1px solid var(--line);
    padding-left: 16px;
  }
  .ag-usage strong {
    font-size: 26px;
  }
  .ag-usage span {
    font-size: 9px;
  }
  .ag-connect {
    padding: 42px 0 35px;
  }
  .ag-section-head {
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
  }
  .ag-section-head h2 {
    font-size: 26px;
  }
  .ag-section-head > p {
    font-size: 10px;
    max-width: 110px;
    text-align: right;
    margin-top: 20px;
  }
  .ag-workbench {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .ag-clients {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    padding: 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .ag-clients button {
    padding: 7px 8px;
    min-height: 42px;
    font-size: 11px;
    gap: 8px;
  }
  .ag-clients button span {
    width: 22px;
    height: 22px;
    font-size: 9px;
  }
  .ag-setup {
    padding: 23px 19px;
  }
  .ag-setup h3 {
    font-size: 23px;
    line-height: 1.3;
  }
  .ag-setup > p {
    font-size: 11px;
  }
  .ag-setup-top .ag-eyebrow {
    font-size: 8px;
  }
  .ag-tag {
    font-size: 8px;
  }
  .ag-code-head {
    padding: 9px 11px;
    font-size: 8px;
  }
  .ag-code-head button {
    font-size: 9px;
  }
  pre {
    font-size: 10px;
    padding: 16px 12px;
  }
  .ag-setup-foot {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 18px;
  }
  .ag-setup-foot p {
    font-size: 10px;
  }
  .ag-setup-actions {
    margin: 17px 0 23px;
    gap: 20px;
  }
  .ag-proof {
    grid-template-columns: 1fr;
    gap: 23px;
    padding: 29px 0;
    margin-bottom: 30px;
  }
  .ag-proof h2 {
    font-size: 25px;
  }
  .ag-readout pre {
    min-height: 100px;
    max-height: 240px;
  }
  .ag-beyond {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-bottom: 38px;
  }
  .ag-feature {
    padding: 25px;
  }
  .ag-feature h2 {
    font-size: 26px;
  }
  .ag-feature-number {
    margin-bottom: 14px;
  }
  .ag-feature p {
    font-size: 12px;
    max-width: 420px;
  }
  .ag-feature h2 br {
    display: none;
  }
  .ag-footer {
    margin: 0 20px;
    flex-wrap: wrap;
    gap: 13px;
    padding: 23px 0;
    font-size: 9px;
  }
  .ag-footer span {
    width: 70%;
    margin-right: 0;
  }
  .ag-board-layout,
  .ag-editor-layout {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-bottom: 38px;
  }
  .ag-page-intro {
    padding: 42px 0 30px;
    margin-bottom: 28px;
  }
  .ag-page-intro h1 {
    font-size: 43px;
    letter-spacing: -2.4px;
  }
  .ag-page-intro .ag-lead {
    font-size: 13px;
  }
  .ag-board-layout .ag-aside h2 {
    font-size: 22px;
  }
  .ag-board-layout .ag-aside h2 br {
    display: none;
  }
  .ag-board-layout .ag-aside p {
    font-size: 11px;
  }
  .ag-post {
    padding: 20px;
  }
  .ag-post p {
    font-size: 13px;
  }
  .ag-post-head {
    gap: 8px;
  }
  .ag-post-head > time {
    font-size: 9px;
  }
  .ag-form-row {
    gap: 15px;
  }
  .ag-form input,
  .ag-form select,
  .ag-form textarea {
    font-size: 16px;
  }
  .ag-form .ag-button {
    width: 100%;
  }
  .ag-aside {
    padding: 23px;
  }
  .ag-profile-hero {
    grid-template-columns: 52px 1fr;
    padding: 40px 0 25px;
    gap: 17px;
  }
  .ag-avatar {
    width: 52px;
    height: 52px;
    font-size: 18px;
    border-radius: 13px;
  }
  .ag-profile-hero h1 {
    font-size: 32px;
    letter-spacing: -1.6px;
  }
  .ag-profile-hero > .ag-button {
    grid-column: 2;
    justify-self: start;
  }
  .ag-profile-stats {
    grid-template-columns: 1fr;
  }
  .ag-profile-hero .ag-profile-meta {
    font-size: 11px;
  }
  .ag-profile-address {
    font-size: 10px;
  }
  .ag-hero-actions {
    gap: 18px;
  }
  .ag-hero-actions .ag-text-link {
    font-size: 11px;
  }
  .ag-desktop {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
}

.ag-header nav a {
  white-space: nowrap;
}
.ag-brand svg {
  flex: none;
}
.ag-setup-actions > .ag-button {
  white-space: nowrap;
  gap: 10px;
  padding-inline: 15px;
  font-size: 12px;
}
@media (max-width: 480px) {
  .ag-header nav {
    gap: 12px;
  }
  .ag-header [data-nav="edit"] {
    font-size: 0;
  }
  .ag-header [data-nav="edit"]:after {
    content: "Profile";
    font-size: 11px;
  }
}
@media (max-width: 360px) {
  .ag-brand {
    font-size: 0;
    gap: 0;
  }
  .ag-header {
    gap: 8px;
  }
  .ag-header nav {
    gap: 9px;
  }
}

/* Shared wallet controls register the existing icon sprite on first use. */
.qa-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
