:root {
  --ink: #26313f;
  --muted: #73808d;
  --purple: #6d5be7;
  --purple-wash: #f0edff;
  --line: #e5e8ed;
  --paper: #fafaf8;
  --white: #fff;
  --green: #4b846d;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  font:
    14px/1.6 Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #b7aaf8;
  outline-offset: 3px;
}
.topbar {
  height: 86px;
  padding: 0 4%;
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.wordmark {
  font-weight: 800;
  font-size: 34px;
  letter-spacing: -2px;
  line-height: 1;
}
.wordmark span {
  color: var(--purple);
}
.partner {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.7px;
  color: var(--muted);
  display: flex;
  gap: 11px;
  align-items: center;
}
.tiny-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #aaa;
}
.topbar nav {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 4px;
}
.nav {
  background: none;
  border: 0;
  padding: 10px 15px;
  color: var(--muted);
  font-size: 13px;
}
.nav.active {
  color: var(--ink);
  background: #f2f3f5;
  border-radius: 8px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 43px;
  background: white;
  border: 1px solid var(--line);
  padding: 10px 17px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  transition:
    background 0.15s,
    transform 0.15s;
}
.button:hover {
  background: #f1f2f5;
}
.button.primary {
  background: var(--purple);
  color: white;
  border-color: var(--purple);
}
.button.primary:hover {
  background: #5c4bd0;
}
.button.dark {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}
.button.small {
  min-height: 34px;
  padding: 8px 12px;
  font-size: 11px;
}
.button.wide {
  width: 100%;
  justify-content: space-between;
}
.button.icon {
  font-size: 20px;
  width: 34px;
  padding: 0;
}
.text-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--purple);
  font-size: 12px;
  font-weight: 600;
}
.text-button:hover {
  text-decoration: underline;
}
main {
  max-width: 1470px;
  padding: 0 4%;
  margin: auto;
}
.page {
  display: none;
}
.page.active {
  display: block;
}
.intro {
  padding: 48px 0 35px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.65px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
}
h1 {
  font-size: 43px;
  letter-spacing: -1.7px;
  line-height: 1.12;
  font-weight: 600;
  margin: 18px 0 15px;
}
h1 span {
  color: #9298a1;
}
p {
  margin: 0 0 12px;
}
.intro p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
.intro-aside {
  padding-top: 40px;
  text-align: right;
  min-width: 230px;
}
.pill {
  display: inline-flex;
  margin: 0 0 14px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 5px 8px;
  letter-spacing: 0.7px;
  font-size: 9px;
  font-weight: 600;
}
.intro-aside p {
  font-size: 12px;
}
.workspace {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.control-panel,
.preview-panel,
.request-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.control-panel {
  padding: 23px;
}
.section-label {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: var(--muted);
  font-weight: 700;
}
.steps {
  display: flex;
  margin: 17px 0 25px;
  background: #f5f5f6;
  border-radius: 8px;
  padding: 4px;
  gap: 3px;
}
.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 0;
  background: transparent;
  color: #89909c;
  border-radius: 6px;
  font-size: 10px;
  line-height: 1.5;
  padding: 8px 0;
}
.step b {
  font-size: 11px;
  font-weight: 500;
}
.step.active {
  background: white;
  color: var(--purple);
  box-shadow: 0 1px 4px #0000000d;
}
.panel-heading {
  margin-bottom: 22px;
}
.panel-heading h2 {
  font-size: 20px;
  font-weight: 550;
  letter-spacing: -0.5px;
  margin: 0 0 9px;
  line-height: 1.3;
}
.panel-heading p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.panel-heading h3 {
  font-size: 13px;
  margin: 0;
  font-weight: 600;
}
.panel-heading.compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
  gap: 8px;
}
.step-panel {
  display: none;
}
.step-panel.active {
  display: block;
}
label {
  display: block;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.7px;
  margin: 14px 0 7px;
  color: #6d7785;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid #dde2e8;
  border-radius: 7px;
  padding: 11px 12px;
  background: white;
  color: var(--ink);
  font-size: 12px;
  outline: none;
}
textarea {
  resize: vertical;
  min-height: 65px;
  line-height: 1.75;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #a396ea;
}
input:read-only,
textarea:read-only {
  background: #f9f9fa;
}
form .button {
  margin-top: 13px;
}
.hint {
  color: #939aa3;
  font-size: 10px;
  line-height: 1.7;
  margin: 11px 0;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 25px 0;
}
.status-pill {
  border-radius: 4px;
  padding: 3px 7px;
  background: #edf6f0;
  color: var(--green);
  font-size: 9px;
  letter-spacing: 0.4px;
  white-space: nowrap;
}
.status-pill.pending {
  background: #fff5e2;
  color: #a5782c;
}
.brand-summary {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.brand-summary b {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  display: block;
  margin-bottom: 7px;
}
.brand-logos {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
}
.brand-logos img {
  max-width: 74px;
  max-height: 30px;
  padding: 5px;
  object-fit: contain;
  background: #eee;
  border-radius: 4px;
}
.brand-facts {
  font-size: 10px;
  color: #949ca6;
}
.advanced {
  margin-top: 20px;
}
summary {
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.6;
  color: #66707e;
}
details details {
  margin: 15px 0;
}
details summary {
  margin-bottom: 10px;
}
.mono,
pre,
code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
.mono {
  font-size: 10px;
}
.panel-foot {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 16px;
}
.panel-foot > span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--purple);
}
.panel-foot p {
  font-size: 10px;
  color: var(--muted);
  margin: 5px 0 0;
}
.preview-panel {
  min-width: 0;
  position: sticky;
  top: 18px;
}
.preview-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 18px 20px;
}
.hotel-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #f6ede2;
  border: 1px solid #eadfd1;
  border-radius: 8px;
  color: #8d7561;
  font-family: Georgia, serif;
  font-size: 21px;
}
.preview-heading h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}
.preview-heading p {
  margin: 0;
  font-size: 10px;
  color: var(--muted);
}
.preview-status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--muted);
}
.preview-toolbar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  background: #fcfcfd;
}
.email-picker {
  margin: 0;
  font-size: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 1px;
  min-width: 0;
  flex: 1;
}
.email-picker select {
  border: 0;
  background: transparent;
  padding: 3px 20px 3px 0;
  font-size: 10px;
  letter-spacing: 0;
  max-width: 290px;
  text-overflow: ellipsis;
  min-width: 0;
}
.toolbar-actions {
  display: flex;
  gap: 7px;
  align-items: center;
}
.canvas {
  height: 690px;
  background: #fcfcfd;
  position: relative;
}
.canvas > iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}
.canvas-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: #a0a6af;
  font-size: 12px;
  padding: 30px;
}
.preview-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 10px 16px;
  color: #9ba2aa;
  font-size: 9px;
}
.preview-footer > span:first-child {
  display: flex;
  gap: 6px;
  align-items: center;
}
.preview-footer > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 65%;
  font-family: monospace;
}
.code-card {
  margin-top: 24px;
  background: #f7f7fa;
  border: 1px solid #e9e9ef;
  border-radius: 7px;
  overflow: hidden;
}
.code-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid #e9e9ef;
}
.code-card > div span {
  font-size: 8px;
  letter-spacing: 1.1px;
  color: #8e94a0;
  font-weight: 650;
}
.copy-icon {
  background: transparent;
  border: 0;
  color: #8b85bd;
  font-size: 10px;
  cursor: pointer;
}
.code-card pre {
  margin: 0;
  padding: 14px;
  font-size: 9px;
  line-height: 1.85;
  color: #66647b;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.callout {
  border-left: 2px solid #d8cff8;
  padding: 3px 0 3px 13px;
  margin: 22px 0;
}
.callout b {
  font-size: 11px;
}
.callout p {
  font-size: 11px;
  color: var(--muted);
  margin: 4px 0;
  line-height: 1.7;
}
.save-list {
  list-style: none;
  padding: 0;
  counter-reset: save;
  margin: 25px 0;
}
.save-list li {
  counter-increment: save;
  padding: 0 0 19px 31px;
  position: relative;
}
.save-list li:before {
  content: counter(save);
  position: absolute;
  top: 0;
  left: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8e89b9;
  font-size: 9px;
}
.save-list b {
  display: block;
  font-size: 11px;
  font-weight: 600;
}
.save-list span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
  margin-top: 4px;
}
.save-list code {
  font-size: 10px;
}
.request-panel {
  margin: 24px 0;
}
.trace-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 0;
  padding: 18px 21px;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  text-align: left;
}
.trace-toggle > span {
  display: flex;
  gap: 9px;
  align-items: center;
}
.trace-toggle small {
  color: #9aa2ac;
  font-size: 10px;
  margin-left: 5px;
}
.trace-dot {
  width: 6px;
  height: 6px;
  border: 1px solid #aaa1d8;
  border-radius: 50%;
}
#trace-content {
  padding: 0 21px 18px;
}
.trace-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 7px 0 12px;
  font-size: 10px;
  color: var(--muted);
}
.trace-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 10px/1.6 monospace;
  border-top: 1px solid #f0f0f3;
  padding: 9px 0;
  overflow-wrap: anywhere;
}
.trace-row .method {
  color: #8b7fd3;
  font-weight: 700;
  width: 45px;
  flex-shrink: 0;
}
.trace-row .code {
  margin-left: auto;
  color: var(--green);
}
.trace-row .duration {
  color: #a0a5ac;
  white-space: nowrap;
}
.trace-row .path {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#trace-result {
  max-height: 260px;
  overflow: auto;
  border-radius: 6px;
  margin: 9px 0 0;
  background: #f7f7fa;
  padding: 15px;
  font-size: 10px;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #74758d;
}
.workspace-note {
  display: flex;
  justify-content: space-between;
  color: #a2a7ae;
  font-size: 11px;
  margin: 0 1px 45px;
}
.workspace-note a {
  color: #77718b;
}
.notice {
  padding: 12px 16px;
  background: #f0edfc;
  border: 1px solid #e0d9fb;
  color: #6e6098;
  font-size: 12px;
  border-radius: 7px;
  margin: 0 0 20px;
  line-height: 1.7;
}
.notice.error {
  background: #fff2ee;
  border-color: #f6ded5;
  color: #a3614e;
}
[hidden] {
  display: none !important;
}
.doc-intro {
  max-width: 820px;
  padding: 65px 0 32px;
}
.doc-intro h1 {
  font-size: 43px;
  margin: 17px 0;
}
.doc-intro > p {
  max-width: 680px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.85;
}
.download-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.doc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 25px 0;
}
.doc-card {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  padding: 28px;
}
.doc-card h2 {
  font-size: 21px;
  margin: 12px 0;
  font-weight: 550;
  letter-spacing: -0.5px;
}
.doc-card p,
.doc-card li {
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
}
.doc-card ul {
  padding-left: 17px;
}
.doc-card code {
  font-size: 11px;
  color: #71658c;
}
.doc-card .code-card {
  margin-top: 18px;
}
.architecture {
  background: #242833;
  border-radius: 11px;
  color: #dcdae6;
  padding: 30px;
  margin: 0 0 26px;
  overflow: hidden;
}
.architecture .eyebrow {
  color: #a2a2ba;
}
.architecture pre {
  font-size: 12px;
  line-height: 2.1;
  overflow: auto;
  margin: 22px 0 0;
  color: #d4d3e2;
}
.doc-section {
  margin: 40px 0;
}
.doc-section h2 {
  font-size: 25px;
  font-weight: 550;
  letter-spacing: -0.6px;
  margin: 0 0 16px;
}
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.resource {
  display: block;
  background: #fff;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.resource strong {
  display: block;
  font-size: 12px;
  margin-bottom: 6px;
}
.resource span {
  font-size: 11px;
  color: var(--muted);
}
.capabilities-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 12px;
  border: 1px solid var(--line);
}
.capabilities-table th,
.capabilities-table td {
  text-align: left;
  vertical-align: top;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.capabilities-table th {
  background: #f3f3f6;
  font-weight: 600;
}
.capabilities-table td {
  color: var(--muted);
}
.acceptance-list {
  columns: 2;
  column-gap: 30px;
  line-height: 2.1;
  color: var(--muted);
  font-size: 12px;
}
.acceptance-list li {
  break-inside: avoid;
  margin: 0 0 10px;
}
.agent-card {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  margin: 0 0 20px;
  padding: 28px;
  max-width: 1050px;
}
.agent-card .agent-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.agent-card h2 {
  font-size: 21px;
  letter-spacing: -0.4px;
  font-weight: 550;
  margin: 8px 0;
}
.agent-card .agent-text {
  background: #f7f7fa;
  border-radius: 7px;
  padding: 22px;
  font-size: 12px;
  line-height: 2;
  color: #77738b;
  white-space: pre-wrap;
  margin-top: 15px;
}
.agent-card .eyebrow {
  color: #a59bc9;
}
.agent-card > p {
  font-size: 12px;
  color: var(--muted);
}
.site-footer {
  max-width: 1470px;
  padding: 27px 4% 34px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 40px auto 0;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: #8e96a2;
}
.site-footer > span {
  font-weight: 600;
}
.site-footer i {
  font-style: normal;
  font-weight: 400;
  color: #bbb;
  margin: 0 7px;
}
.site-footer > div {
  display: flex;
  gap: 23px;
}
.site-footer a:hover {
  color: var(--purple);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 30px 100px #1c253f40;
  background: white;
  color: var(--ink);
  padding: 30px;
  max-width: 480px;
  width: calc(100% - 32px);
}
dialog::backdrop {
  background: #1d233c65;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 25px;
  font-weight: 550;
  letter-spacing: -0.6px;
  line-height: 1.3;
  margin: 18px 0 12px;
}
dialog p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.85;
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.close-dialog {
  border: 0;
  background: #f5f5f7;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 20px;
  color: #9096a0;
  flex-shrink: 0;
}
.field-error {
  color: #ae5b47 !important;
  margin: 8px 0 0 !important;
  font-size: 11px !important;
}
.html-dialog {
  max-width: 1100px;
  max-height: 88vh;
}
.html-dialog h2 {
  margin: 7px 0;
}
.html-meta {
  font: 10px/1.9 monospace;
  color: #858d9a;
  overflow-wrap: anywhere;
  margin-top: 15px;
}
.html-dialog pre {
  max-height: 52vh;
  overflow: auto;
  background: #f7f7fa;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 18px;
  font-size: 10px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.busy {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 17px;
  border: 1px solid #e5e1f3;
  background: #fff;
  box-shadow: 0 10px 45px #2b235025;
  border-radius: 10px;
  padding: 18px 24px;
  max-width: calc(100% - 30px);
  z-index: 100;
}
.busy b {
  font-size: 12px;
}
.busy p {
  font-size: 10px;
  color: var(--muted);
  margin: 3px 0 0;
}
.spinner {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #e5e0f9;
  border-top-color: var(--purple);
  animation: spin 0.9s linear infinite;
  flex-shrink: 0;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.skeleton {
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.4;
  }
}
@media (min-width: 1600px) {
  .canvas {
    height: 780px;
  }
}
@media (max-width: 1100px) {
  .partner {
    display: none;
  }
  .workspace {
    grid-template-columns: 290px minmax(0, 1fr);
  }
  .control-panel {
    padding: 18px;
  }
  .topbar {
    gap: 15px;
  }
  .nav {
    padding: 9px 10px;
  }
  .canvas {
    height: 680px;
  }
  .intro-aside {
    min-width: 190px;
  }
  .preview-toolbar {
    flex-wrap: wrap;
  }
  .email-picker {
    min-width: 100%;
  }
  .toolbar-actions {
    margin-left: auto;
  }
}
@media (max-width: 760px) {
  .topbar {
    height: auto;
    min-height: 76px;
    padding: 18px 5%;
    flex-wrap: wrap;
    gap: 12px;
  }
  .topbar nav {
    order: 3;
    width: 100%;
    justify-content: center;
    margin: 4px 0 0;
  }
  .topbar > .button {
    margin-left: auto;
  }
  .wordmark {
    font-size: 30px;
  }
  .nav {
    font-size: 11px;
    padding: 8px 12px;
  }
  .intro {
    padding: 30px 0 22px;
  }
  .intro-aside {
    display: none;
  }
  h1 {
    font-size: 35px;
    margin: 15px 0;
  }
  .intro p {
    font-size: 12px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.1px;
  }
  .desktop {
    display: none;
  }
  main {
    padding: 0 5%;
  }
  .workspace {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .control-panel {
    padding: 20px;
  }
  .preview-panel {
    position: static;
  }
  .canvas {
    height: 650px;
  }
  .preview-toolbar {
    flex-wrap: nowrap;
  }
  .email-picker {
    min-width: 0;
  }
  .toolbar-actions {
    gap: 5px;
  }
  .button.small {
    padding: 7px 9px;
    font-size: 10px;
  }
  .preview-footer {
    font-size: 8px;
  }
  .trace-toggle small {
    display: none;
  }
  .trace-toggle {
    font-size: 11px;
  }
  .workspace-note {
    font-size: 10px;
    gap: 16px;
  }
  .doc-intro {
    padding-top: 36px;
  }
  .doc-intro h1 {
    font-size: 35px;
  }
  .doc-intro > p {
    font-size: 13px;
  }
  .doc-grid,
  .resource-grid {
    grid-template-columns: 1fr;
  }
  .doc-card,
  .agent-card {
    padding: 22px;
  }
  .architecture {
    padding: 21px;
  }
  .architecture pre {
    font-size: 9px;
  }
  .capabilities-table {
    font-size: 10px;
  }
  .capabilities-table td,
  .capabilities-table th {
    padding: 11px;
  }
  .acceptance-list {
    columns: 1;
  }
  .site-footer {
    flex-direction: column;
    padding: 25px 5%;
  }
  .site-footer > div {
    flex-wrap: wrap;
    gap: 15px;
  }
  .agent-card .agent-heading {
    align-items: flex-start;
  }
  .agent-card h2 {
    font-size: 19px;
  }
  .agent-card .agent-text {
    font-size: 11px;
    padding: 17px;
  }
  .busy {
    width: 90%;
    padding: 15px 18px;
  }
  .panel-foot {
    margin-top: 18px;
  }
  .html-dialog {
    padding: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
/* A compact workbench keeps the live canvas above the fold. */
.topbar {
  height: 66px;
  padding: 0 3%;
  gap: 20px;
}
.wordmark {
  font-size: 27px;
}
.partner {
  font-size: 9px;
  letter-spacing: 1px;
}
.header-docs {
  font-size: 11px;
  color: var(--muted);
}
main {
  max-width: 1420px;
  padding: 0 3%;
}
.intro {
  padding: 27px 0 22px;
  align-items: center;
}
.intro h1 {
  font-size: 28px;
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin: 0 0 6px;
}
.intro p {
  font-size: 12px;
  margin: 0;
}
.live-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: var(--muted);
}
.workspace {
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
}
.control-panel {
  padding: 20px;
}
.section-label {
  display: none;
}
.steps {
  margin: 0 0 22px;
  background: transparent;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0 0 10px;
  gap: 5px;
}
.step {
  flex-direction: row;
  justify-content: center;
  font-size: 11px;
  padding: 8px 5px;
}
.step b {
  display: none;
}
.step.active {
  background: #f0edff;
  box-shadow: none;
}
.panel-heading h2 {
  font-size: 19px;
}
.panel-heading p {
  font-size: 11px;
}
.panel-heading {
  margin-bottom: 18px;
}
.step-panel > .code-card {
  display: none;
}
.hint {
  font-size: 10px;
}
.preview-panel {
  top: 12px;
}
.preview-heading {
  padding: 14px 18px;
}
.preview-toolbar {
  padding: 9px 14px;
}
.canvas {
  height: calc(100vh - 280px);
  min-height: 620px;
}
.preview-footer {
  padding: 8px 14px;
}
.brand-summary {
  font-size: 10px;
}
.brand-summary > span {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.brand-logos {
  display: none;
}
.brand-facts {
  display: none;
}
.panel-foot {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 20px;
  padding-top: 15px;
}
.divider {
  margin: 21px 0;
}
.request-panel {
  margin: 18px 0;
}
.trace-toggle {
  padding: 13px 18px;
  font-size: 11px;
}
.workspace-note {
  margin-bottom: 25px;
  font-size: 10px;
}
.site-footer {
  margin-top: 26px;
  padding-top: 20px;
  padding-bottom: 24px;
}
.button {
  font-variant-emoji: text;
}
.nav {
  font-size: 12px;
}
.button.primary.wide {
  justify-content: center;
}
.callout {
  margin: 18px 0;
}
.preview-footer > span:first-child {
  font-size: 0;
}
.preview-footer > span:first-child .live-dot {
  width: 5px;
  height: 5px;
}
@media (max-width: 1100px) {
  .workspace {
    grid-template-columns: 275px minmax(0, 1fr);
  }
  .canvas {
    min-height: 580px;
  }
}
@media (max-width: 760px) {
  .topbar {
    height: auto;
    padding: 15px 5%;
    gap: 12px;
  }
  .topbar nav {
    order: 3;
    width: 100%;
    margin: 0;
  }
  .header-docs {
    margin-left: auto;
  }
  .partner {
    display: none;
  }
  main {
    padding: 0 5%;
  }
  .intro {
    padding: 23px 0 19px;
  }
  .intro h1 {
    font-size: 26px;
  }
  .intro p {
    max-width: 260px;
    font-size: 11px;
  }
  .live-label {
    display: none;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .canvas {
    height: 650px;
    min-height: 0;
  }
  .control-panel {
    padding: 18px;
  }
  .steps {
    margin-bottom: 18px;
  }
  .brand-summary > span {
    -webkit-line-clamp: 2;
  }
  .preview-panel {
    position: static;
  }
  .preview-toolbar {
    flex-wrap: wrap;
  }
  .email-picker {
    min-width: 100%;
  }
  .preview-toolbar .toolbar-actions {
    margin-left: auto;
  }
}

.connection-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 18px;
}
.connection-panel form {
  display: flex;
  align-items: end;
  gap: 12px;
}
.connection-panel form > div {
  flex: 1;
}
.connection-panel label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 6px;
}
.connection-panel input {
  margin: 0;
  width: 100%;
}
.connection-panel .hint {
  margin: 8px 0 0;
  line-height: 1.6;
}
.optional {
  color: var(--muted);
  font-weight: 400;
  text-transform: none;
}
.connection-panel code {
  user-select: all;
  font-size: 10px;
}
.connection-panel .button {
  min-height: 41px;
}
#brand-select {
  width: 100%;
  margin-bottom: 8px;
}
#more-brands {
  margin-bottom: 10px;
}
#more-emails {
  white-space: nowrap;
}
#email-select {
  max-width: 270px;
}
.live-label {
  white-space: nowrap;
}
@media (max-width: 760px) {
  .connection-panel {
    padding: 16px;
  }
  .connection-panel form {
    flex-wrap: wrap;
  }
  .connection-panel form > div {
    flex: 1 1 100%;
  }
  .connection-panel .button {
    flex: 1;
  }
  .connection-panel input {
    min-width: 0;
  }
  .connection-panel code {
    overflow-wrap: anywhere;
  }
  #email-select {
    max-width: 100%;
  }
}

#email-picker {
  min-width: 0;
  max-width: 55%;
}
.picker-trigger {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  justify-content: space-between;
}
.menu-content {
  min-width: 220px;
  max-width: min(360px, calc(100vw - 24px));
  max-height: var(--radix-dropdown-menu-content-available-height, 70vh);
  overflow: auto;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 5px;
  box-shadow: 0 8px 28px #0002;
  z-index: 100;
}
.menu-item {
  font-size: 13px;
  line-height: 1.4;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  border-radius: 5px;
  padding: 8px 10px;
  outline: none;
  cursor: pointer;
  user-select: none;
}
.menu-item[data-highlighted],
.menu-item[data-state="open"] {
  background: #f3f3f5;
}
.menu-item[data-disabled] {
  color: var(--muted);
  cursor: default;
}
.menu-chevron {
  margin-left: auto;
}
.menu-count {
  font-size: 11px;
  color: var(--muted);
  margin-left: auto;
}
.menu-separator {
  height: 1px;
  background: var(--line);
  margin: 4px;
}
.template-row {
  display: flex;
  gap: 6px;
  align-items: center;
}
.template-row input {
  min-width: 0;
  flex: 1;
}
.template-row .button {
  padding: 8px;
  white-space: nowrap;
}
.dialog-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 20px;
}
#rename-dialog {
  width: min(420px, 90vw);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}
#rename-dialog input {
  width: 100%;
}
#rename-dialog::backdrop {
  background: #0005;
}
#rename-email {
  white-space: nowrap;
}
@media (max-width: 700px) {
  #email-picker {
    max-width: 65%;
  }
  #rename-email {
    font-size: 11px;
  }
}
