:root { color-scheme: light; --sans: "Geist", Arial, sans-serif; --mono: "IBM Plex Mono", monospace; --serif: "Instrument Serif", Georgia, serif; --wrap: 1248px; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); background: var(--bg); color: var(--ink); }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
a:hover { text-decoration: underline; text-underline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
em { font-style: normal; }
.wrap { width: min(var(--wrap), calc(100% - 112px)); margin-inline: auto; }
.nav { min-height: 82px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); gap: 24px; }
.nav nav { display: flex; align-items: center; gap: 32px; color: var(--muted); font-size: 14px; }
.nav > .button { justify-self: end; }
.brand { display: inline-flex; align-items: center; justify-self: start; gap: 11px; white-space: nowrap; font-size: 23px; font-weight: 720; letter-spacing: -.055em; }
.brand i { flex: 0 0 auto; }
.button { min-height: 46px; padding: 0 17px; display: inline-flex; justify-content: center; align-items: center; gap: 18px; font-weight: 630; font-size: 13px; border: 1px solid transparent; white-space: nowrap; }
.button:hover { text-decoration: none; filter: brightness(1.1); }
.button.outline { border-color: var(--line); }
.button.primary { color: var(--on-accent); background: var(--accent); }
.button span { font-size: 15px; }
.text-button { color: var(--ink); }
.eyebrow, .mono { font: 500 11px/1.4 var(--mono); letter-spacing: .08em; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; }
.led { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.footer { display: flex; justify-content: space-between; align-items: center; min-height: 64px; gap: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer > span:first-child { color: var(--ink); font-weight: 600; }

/* Patchbay */
body { color-scheme: dark; --bg: #111212; --ink: #f4f0e9; --muted: #aaa7a0; --line: #353535; --accent: #ff7b38; --on-accent: #17110d; }
.patch .nav .button { border-radius: 4px; }
.patch-mark { display: flex; gap: 3px; align-items: center; justify-content: center; width: 29px; height: 28px; border: 1px solid #df6d35; border-radius: 5px; }
.patch-mark b { width: 4px; height: 4px; border-radius: 50%; background: #ff7b38; }
.patch-mark b:nth-child(2) { background: #804222; }
.patch-hero { min-height: 610px; position: relative; isolation: isolate; display: grid; align-items: start; padding-top: 88px; }
.patch-art { position: absolute; inset: 3px -25px 6px 37%; z-index: -1; background: url("assets/patchbay-hardware.jpg") center 49% / cover no-repeat; mask-image: linear-gradient(90deg, transparent, black 19%, black 88%, transparent); }
.patch-art::after { content: ""; position: absolute; inset: -1px; background: linear-gradient(0deg, #111212 1%, transparent 25%, transparent 75%, #111212), linear-gradient(90deg, #111212, transparent 21%, transparent 91%, #111212); }
.patch-copy { position: relative; z-index: 1; width: min(590px, 100%); }
.patch .eyebrow { color: #ff9059; }
.patch h1 { font-size: clamp(72px, 8.4vw, 119px); font-weight: 730; line-height: .86; letter-spacing: -.065em; margin: 28px 0 30px; }
.patch h1 em { color: #ff7b38; }
.patch-copy p { font-size: 18px; line-height: 1.56; color: #c2bdb5; max-width: 380px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; margin-top: 28px; }
.patch .actions .button { border-radius: 4px; }
.patch-console { position: absolute; z-index: 1; bottom: 39px; right: 16px; width: 364px; color: #c9c4bd; border: 1px solid #50504c; background: #1a1b1a; font: 11px/1.5 var(--mono); box-shadow: 0 12px 40px #0009; border-radius: 6px; overflow: hidden; }
.console-head, .console-bottom { display: flex; align-items: center; padding: 12px 15px; gap: 7px; }
.console-head { justify-content: space-between; border-bottom: 1px solid #363733; }
.console-head > span:last-child { display: flex; align-items: center; gap: 6px; font-size: 9px; color: #ced9b8; }
.console-head .led { width: 5px; height: 5px; }
.console-body { padding: 15px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 7px; }
.console-body > :nth-child(even) { text-align: right; }
.console-body > span:not(:first-child) { font-size: 10px; }
.console-pair { font-size: 17px; color: #fff9ed; letter-spacing: -.05em; }
.console-pair b { color: #ff7b38; }
.console-body strong { color: #f5f1e8; }
.console-bottom { border-top: 1px solid #363733; color: #f7c3a5; }
.console-bottom i { width: 5px; height: 5px; border-radius: 50%; background: #ff7b38; }
.console-bottom span { margin-left: auto; color: #a6a39c; font-size: 10px; }


[hidden] { display: none !important; }
:root { --surface: #191a19; --soft: #202120; --ok: #c3dca9; --danger: #f6ac99; }
button, select, input { font: inherit; }
button { color: inherit; background: transparent; cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.nav nav [aria-current="page"] { color: var(--ink); }
.nav .button { border-radius: 4px; }
.muted { color: var(--muted); }
.small { min-height: 34px; padding-inline: 10px; font-size: 12px; gap: 7px; }
.full { width: 100%; }
.icon { min-height: 34px; padding: 0 10px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; min-width: 0; }
.workspace { --wrap: 1160px; }
.workspace-main { padding: 49px 0 43px; min-height: calc(100vh - 146px); }
.workspace-heading { display: flex; gap: 20px; align-items: end; justify-content: space-between; margin-bottom: 27px; }
.workspace-heading h1, .document > h1 { font-size: clamp(35px, 6.5vw, 59px); letter-spacing: -.069em; line-height: 1; font-weight: 690; }
.workspace-heading p { margin-top: 10px; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.network { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; white-space: nowrap; border: 1px solid var(--line); color: #e3dfd5; padding: 8px 10px; border-radius: 4px; }
.network .led { color: var(--accent); width: 6px; height: 6px; }
.network > span { color: var(--muted); }
.notice { padding: 12px 14px; margin-bottom: 16px; background: #241b16; color: #f7c7aa; border: 1px solid #62412b; border-radius: 4px; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.wallet-gate { min-height: 360px; padding: 43px; display: grid; grid-template-columns: 1fr .58fr; align-items: center; position: relative; overflow: hidden; }
.gate-copy { position: relative; z-index: 1; }
.gate-copy h2 { font-size: clamp(30px, 4.6vw, 52px); line-height: 1; letter-spacing: -.075em; }
.gate-copy p { color: var(--muted); padding-top: 12px; max-width: 365px; line-height: 1.55; font-size: 14px; }
.gate-controls { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; margin-top: 20px; }
.gate-controls select { background: #252525; color: var(--ink); border: 1px solid var(--line); padding: 9px; min-height: 41px; border-radius: 4px; max-width: 100%; }
.workspace .button, .consent .button { border-radius: 4px; }
.gate-graphic { height: 165px; position: relative; display: grid; place-items: center; }
.gate-ports { width: min(260px, 100%); height: 85px; border: 1px solid #4f4038; background: #1c1a18; display: flex; align-items: center; justify-content: center; gap: 16px; border-radius: 8px; box-shadow: 8px 8px 0 #211b16; position: relative; }
.gate-ports i { width: 24px; aspect-ratio: 1; border: 1px solid #654632; border-radius: 50%; box-shadow: 0 0 0 5px #2b221c; background: #0f100e; }
.gate-ports i:first-child { border-color: var(--accent); background: #6c3214; }
.gate-wire { height: 90px; width: 60%; position: absolute; right: -42px; top: 50%; border-top: 1px solid #694632; border-left: 1px solid #694632; border-top-left-radius: 32px; }
.work-grid { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.panel-head { min-height: 72px; border-bottom: 1px solid var(--line); padding: 15px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-head h2 { font-size: 21px; letter-spacing: -.045em; line-height: 1.13; }
.panel-head div > span, .panel-head p { display: block; color: var(--muted); font-size: 12px; line-height: 1.45; margin-top: 5px; }
.wallet-table { border-collapse: collapse; width: 100%; font-size: 13px; }
.wallet-table th { text-align: left; }
.wallet-table th, .wallet-table td { padding: 12px 18px; border-bottom: 1px solid #303130; }
.wallet-table tr:last-child > * { border-bottom: none; }
.wallet-table thead th { color: var(--muted); font-weight: 500; font-size: 11px; border-bottom: 1px solid #303130 !important; }
.wallet-table th:last-child, .wallet-table td:last-child { text-align: right; }
.asset-label { display: flex; align-items: center; gap: 10px; min-width: 0; }
.asset-label .coin { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #42372c; background: #29221b; color: #efb58c; font: 500 11px var(--mono); border-radius: 50%; flex: 0 0 auto; }
.asset-label strong { display: block; }
.asset-label small, .wallet-table td small { display: block; color: var(--muted); font-weight: 400; font-size: 11px; padding-top: 3px; }
.asset-amount { font: 12px/1.5 var(--mono); overflow-wrap: anywhere; }
.panel-note { margin: 13px 18px; font-size: 12px; color: var(--muted); }
.swap-panel form, .quote-result { padding: 15px 18px 18px; }
.swap-panel label { font-size: 12px; color: var(--muted); }
.amount-field { display: flex; align-items: center; gap: 9px; background: #141514; border: 1px solid #42423f; border-radius: 4px; padding: 7px; margin-top: 7px; }
.amount-field input { width: 100%; min-width: 0; height: 41px; flex: 1; background: transparent; border: none; padding: 0 6px; color: var(--ink); font: 500 21px var(--mono); }
.amount-field select, .swap-settings select { background: #292a28; border: 1px solid #444440; border-radius: 4px; color: var(--ink); padding: 7px; }
.swap-settings { margin: 10px 0 13px; font-size: 12px; }
.swap-settings div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #323230; }
.swap-settings dt { color: var(--muted); }
.swap-settings dd { margin: 0; text-align: right; font: 12px/1.45 var(--mono); overflow-wrap: anywhere; min-width: 0; }
.swap-settings a { color: #f8a478; }
.quote-result { border-top: 1px solid var(--line); }
.quote-price > span { color: var(--muted); font-size: 10px; }
.quote-price > strong { display: block; margin-top: 3px; font-size: 21px; overflow-wrap: anywhere; }
.form-status { font-size: 12px; color: #f5aa86; margin: 10px 0 0; line-height: 1.5; overflow-wrap: anywhere; }
.approvals-panel, .agent-panel { margin-top: 16px; }
.list-content { padding: 0 18px; }
.empty-row { padding: 19px 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.activity-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 13px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.activity-row:last-child { border-bottom: none; }
.activity-row strong { display: block; overflow-wrap: anywhere; font-size: 13px; }
.activity-row small { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; line-height: 1.4; }
.tag { color: #f0ac82; border: 1px solid #614330; border-radius: 4px; font: 500 9px/1.4 var(--mono); padding: 4px 7px; text-transform: uppercase; text-align: center; }
.tag.confirmed { color: var(--ok); border-color: #45563a; }
.tag.expired { color: var(--muted); border-color: #4a4a45; }
.endpoint { display: flex; align-items: center; justify-content: space-between; gap: 11px; padding: 13px 18px; }
.agent-panel .endpoint { border-bottom: 1px solid var(--line); }
.endpoint code { font: 12px/1.5 var(--mono); color: #f4bd9b; overflow-wrap: anywhere; }
.review-dialog { max-width: min(530px, calc(100% - 24px)); width: 530px; padding: 21px; background: #1b1c1a; color: var(--ink); border: 1px solid #595048; border-radius: 7px; max-height: calc(100% - 32px); }
.decline-proposal { margin-top: 10px; }
.review-dialog::backdrop { background: #000b; }
.review-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 15px; }
.review-head h2 { font-size: 24px; letter-spacing: -.05em; }
.review-line { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 11px 0; }
.receipt-line { font: 12px var(--mono); color: var(--accent); overflow-wrap: anywhere; display: block; margin: 7px 0; }
.recovery-form { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 11px; }
.recovery-form input { min-width: 0; flex: 1; background: #121312; border: 1px solid #474743; border-radius: 4px; padding: 7px; color: var(--ink); }
.recovery-form button { min-height: 34px; }
.document { max-width: 900px; min-height: calc(100vh - 146px); padding: 50px 0; }
.document h2 { font-size: 25px; letter-spacing: -.035em; margin-bottom: 11px; }
.document h3 { font-size: 16px; margin-bottom: 9px; }
.document section { margin-top: 30px; }
.document p { color: #b5b0a7; font-size: 14px; line-height: 1.55; }
.document .doc-lead { margin: 12px 0 20px; max-width: 590px; }
.document .notice { margin: 11px 0 0; color: #f7c7aa; }
.install-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0; }
.install-grid article { padding: 14px; min-width: 0; }
pre { margin: 0 0 11px; white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.55 var(--mono); color: #f4bd9b; }
code { font-family: var(--mono); }
.tools-table th:last-child, .tools-table td:last-child { text-align: left; }
.tools-table th, .tools-table td { padding-inline: 10px; }
.tools-table td { color: var(--muted); }
.prompt { padding: 15px; }
.consent { max-width: 585px; }
.consent h1 { font-size: 32px; line-height: 1; letter-spacing: -.053em; }
.consent-body { padding: 16px 18px 21px; }
.consent-client { display: flex; align-items: start; flex-direction: column; gap: 4px; overflow-wrap: anywhere; }
.consent-client strong { color: var(--ink); font-size: 19px; }
.consent-client span { color: #f4bd9b; overflow-wrap: anywhere; word-break: break-word; }
.consent form, .consent #wallet-step { margin-top: 14px; }
.permission { display: flex; justify-content: space-between; gap: 9px; align-items: center; border-top: 1px solid var(--line); padding: 10px 0; font-size: 13px; }
.permission input { accent-color: var(--accent); vertical-align: middle; }
.permission .mono { color: var(--muted); font-size: 9px; }
.consent form p { margin-top: 6px; }
.consent .notice { margin: 12px; }
@media (max-width: 800px) {
  .wrap { width: calc(100% - 44px); }
  .nav { min-height: 67px; grid-template-columns: 1fr auto; gap: 10px; }
  .nav nav { display: none; }
  .nav .button { min-height: 37px; padding-inline: 10px; gap: 7px; }
  .patch-hero { min-height: 590px; padding-top: 60px; }
  .patch-art { inset: 35px -21px 0 15%; opacity: .75; }
  .patch-console { right: 0; bottom: 30px; width: min(364px, 100%); }
  .work-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .wrap { width: calc(100% - 32px); }
  .brand { font-size: 20px; gap: 7px; }
  .footer { flex-wrap: wrap; padding: 13px 0; gap: 6px 12px; }
  .footer > span:nth-child(2) { order: 3; width: 100%; }
  .patch-hero { min-height: 620px; padding-top: 47px; }
  .patch h1 { font-size: clamp(66px, 16vw, 81px); margin: 22px 0; }
  .patch-art { inset: 103px -14px 15px 1%; opacity: .57; background-position: 56% center; }
  .patch-art::after { background: linear-gradient(0deg, #111212 1%, transparent 25%, #111212); }
  .patch-copy p { font-size: 16px; }
  .actions { margin-top: 21px; gap: 5px; }
  .actions .button { padding-inline: 10px; gap: 9px; }
  .workspace-main { padding: 30px 0; }
  .workspace-heading { align-items: start; flex-direction: column-reverse; gap: 11px; }
  .wallet-gate { grid-template-columns: 1fr; padding: 20px; min-height: 290px; }
  .gate-graphic { height: 118px; margin-top: 12px; }
  .wallet-table th, .wallet-table td, .panel-head { padding-inline: 12px; }
  .asset-label { gap: 6px; }
  .asset-label .coin { width: 26px; }
  .asset-label small { font-size: 10px; }
  .activity-row { gap: 6px; }
  .activity-row .button { padding-inline: 5px; }
  .endpoint { align-items: flex-start; flex-direction: column; }
  .install-grid { grid-template-columns: 1fr; }
  .tools-table code { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
