@font-face {
  font-family: Geist;
  src: url("/fonts/geist.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/geist-mono.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --bg: #fafaff;
  --surface: #fff;
  --text: #18181b;
  --muted: #666675;
  --accent: #635bff;
  --accent-ink: #5047d9;
  --border: #e5e5ed;
  --success: #16a34a;
  --terminal: #111113;
  --radius: 12px;
  --mono: "Geist Mono", ui-monospace, monospace;
  --shadow: 0 1px 2px #21184809, 0 10px 28px #21184809;
  --max: 1184px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 15px/1.55 Geist, system-ui, sans-serif; }
#app { flex: 1; min-width: 0; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.15; font-weight: 620; letter-spacing: -.033em; }
h1 { font-size: clamp(32px, 4vw, 48px); }
h2 { font-size: 22px; }
p { color: var(--muted); }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
input, textarea, select, button { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
label { display: grid; gap: 7px; min-width: 0; font-size: 13px; font-weight: 560; }
input, select, textarea { width: 100%; min-width: 0; padding: 10px 12px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
input, select { min-height: 44px; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted); }
code, pre { font-family: var(--mono); }
pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.primary, .secondary, .text-button, .icon-button, .terminal-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border-radius: 8px; border: 1px solid transparent; font-size: 14px; font-weight: 560;
  line-height: 1.2; white-space: nowrap; text-decoration: none;
  transition: background-color 180ms, border-color 180ms, color 180ms;
}
.primary { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 1px 2px #3228ba24; }
.primary:hover:not(:disabled) { background: var(--accent-ink); border-color: var(--accent-ink); }
.secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.secondary:hover:not(:disabled), .text-button:hover:not(:disabled), .icon-button:hover { background: #f1f1f4; }
.text-button, .icon-button { background: transparent; color: var(--text); }
.icon-button { width: 44px; padding: 0; }
.primary svg, .secondary svg { width: 16px; height: 16px; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.eyebrow { color: var(--muted); font-size: 12px; line-height: 1.4; font-weight: 620; letter-spacing: .075em; text-transform: uppercase; }
.muted { color: var(--muted); }
.error, #billing-error, #key-error, #workspace-error { color: #a92c3e; }
.error:empty, [role="status"]:empty { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.nav, .site-footer { width: min(var(--max), calc(100% - 80px)); display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 auto; }
.nav { min-height: 64px; border-bottom: 1px solid var(--border); }
.nav nav, .site-footer nav { display: flex; gap: 20px; align-items: center; }
.nav nav a, .site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; font-size: 13px; }
.nav nav a:hover, .site-footer nav a:hover { color: var(--text); }
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; font-weight: 660; letter-spacing: -.04em; }
.brand { font-size: 20px; }
.mark { display: inline-block; width: 24px; height: 24px; position: relative; flex: none; border-radius: 7px; background: var(--accent); }
.mark::before, .mark::after { content: ""; position: absolute; width: 10px; height: 12px; border: 1.3px solid white; border-radius: 2px; }
.mark::before { top: 5px; left: 6px; opacity: .6; }
.mark::after { top: 8px; left: 9px; background: var(--accent); }
.site-footer { border-top: 1px solid var(--border); min-height: 56px; color: var(--muted); }
.footer-brand { font-size: 14px; }
.marketing, .content-page { width: min(var(--max), calc(100% - 80px)); margin: 0 auto; }
.marketing:not(.landing), .content-page { padding: 25px 0 26px; }
.narrow, .content-page { max-width: 580px; }
.landing-page { background: #fff; }
.landing-page .nav { width: min(1220px, calc(100% - 100px)); border-color: #ececf1; }
.landing-page .site-footer { display: none; }
.landing { width: min(1220px, calc(100% - 100px)); isolation: isolate; }
.landing .hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.07fr);
  align-items: center;
  column-gap: clamp(30px, 5.4vw, 82px);
  padding: clamp(60px, 10vh, 98px) 0 45px;
}
.hero-content { min-width: 0; position: relative; z-index: 1; }
.landing h1 {
  font-size: clamp(32px, 3.6vw, 52px);
  font-weight: 635;
  letter-spacing: -.042em;
  line-height: 1.13;
  margin-bottom: 13px;
}
.landing-page { overflow-x: clip; }
.landing .intro {
  font-size: clamp(15px, 1.46vw, 19px);
  color: #565662;
  max-width: 34ch;
  line-height: 1.55;
}
#start { scroll-margin-top: 30px; }
#brand-form { margin-top: 24px; max-width: 430px; }
.workspace-entry {
  display: flex;
  align-items: center;
  padding: 4px;
  gap: 4px;
  border: 1px solid #dedce9;
  border-radius: 11px;
  background: var(--surface);
  box-shadow: 0 1px 3px #21184809;
  transition: border-color 180ms, box-shadow 180ms;
}
.workspace-entry:focus-within { border-color: #928aff; box-shadow: 0 0 0 3px #635bff1c; }
.workspace-entry input { flex: 1; width: 0; min-height: 42px; border: 0; background: transparent; box-shadow: none; padding-inline: 10px; }
.workspace-entry input:focus-visible { outline: none; }
.workspace-entry .primary { min-height: 42px; border-color: #5a50f0; font-weight: 580; box-shadow: 0 2px 5px #442bc932; }
.agent-entry {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  margin-top: 8px;
  padding: 0 9px;
  margin-left: -9px;
  border-radius: 8px;
  color: #5145d5;
  font-size: 14px;
  font-weight: 580;
  text-decoration: none;
  transition: background-color 180ms, color 180ms;
}
.agent-entry:hover { color: #382ca3; background: #f3f0ff; }
.agent-entry svg { width: 15px; height: 15px; transition: transform 180ms; }
.agent-entry:hover svg:last-child { transform: translateX(3px); }
.showcase, .showcase [data-theme="guide"] {
  --demo-ink: #5041c6;
  --demo-soft: #eeebff;
  --demo-light: #e3dcff;
  --demo-glow: #b9a8ff;
  --demo-width-a: 96%;
  --demo-width-b: 78%;
  --demo-width-c: 64%;
  --demo-ease: cubic-bezier(.2,.76,.24,1);
}
.showcase {
  position: relative;
  min-width: 0;
  margin: 0;
  isolation: isolate;
}
.showcase [data-theme="changelog"], .showcase[data-theme="changelog"] { --demo-ink: #315bbc; --demo-soft: #ebf1ff; --demo-light: #dce8ff; --demo-glow: #92b7ff; --demo-width-a: 89%; --demo-width-b: 96%; --demo-width-c: 57%; }
.showcase [data-theme="support"], .showcase[data-theme="support"] { --demo-ink: #097367; --demo-soft: #e9f7f4; --demo-light: #d5f2ed; --demo-glow: #7cd0c8; --demo-width-a: 77%; --demo-width-b: 87%; --demo-width-c: 56%; }
.showcase [data-theme="config.json"], .showcase[data-theme="config.json"] { --demo-ink: #9e481e; --demo-soft: #fff1e7; --demo-light: #ffe7d7; --demo-glow: #f9b58c; --demo-width-a: 86%; --demo-width-b: 72%; --demo-width-c: 64%; }
.showcase [data-theme="notes.txt"], .showcase[data-theme="notes.txt"] { --demo-ink: #267047; --demo-soft: #eaf7ee; --demo-light: #ddf3e3; --demo-glow: #95d4ac; --demo-width-a: 71%; --demo-width-b: 87%; --demo-width-c: 48%; }
.showcase::before, .showcase::after { content: ""; pointer-events: none; position: absolute; z-index: -1; }
.showcase::before {
  inset: 17% -8% -17% -12%;
  background: var(--demo-glow);
  mask-image: radial-gradient(ellipse at 46% 52%, #000 20%, #0009 48%, transparent 73%);
  filter: blur(46px);
  opacity: .52;
  transition: background-color 740ms var(--demo-ease);
}
.showcase::after {
  inset: -19% -4% 20% 13%;
  background: radial-gradient(ellipse at 82% 29%, #dceafe 11%, #eeeaff 43%, transparent 70%);
  filter: blur(27px);
  opacity: .78;
}
.showcase-caption {
  display: flex;
  align-items: center;
  gap: 9px;
  position: absolute;
  right: 12px;
  top: 4px;
  min-height: 34px;
  color: #676677;
  font: 500 11px/1 var(--mono);
  z-index: 1;
}
.demo-toggle {
  width: 34px;
  height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  color: #676677;
  background: none;
  border: 0;
  border-radius: 7px;
}
.demo-toggle:hover { background: #efedf9; color: #414054; }
.demo-toggle span { width: 8px; height: 10px; border-inline: 2px solid currentColor; }
.demo-toggle[data-paused="true"] span { width: 0; height: 0; border: 5px solid transparent; border-left: 8px solid currentColor; border-right: 0; }
.showcase-window {
  overflow: hidden;
  border: 1px solid #dbdbe7;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 1px 2px #1613340e, 0 12px 26px -10px #25204535, 0 37px 64px -25px #44386b49;
}
.showcase-frame { padding: 18px 18px 16px; border-bottom: 1px solid #e6e5ee; }
.browser-dots { display: flex; gap: 5px; height: 8px; margin: 0 0 15px 1px; }
.browser-dots i { width: 7px; height: 7px; border-radius: 50%; background: #d8d7e3; }
.browser-address {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 10px 13px;
  background: #fff;
  border: 1px solid #dddbe9;
  border-radius: 9px;
  box-shadow: 0 1px 2px #322a4810, inset 0 0 0 2px #f9f8fd;
  font: 500 clamp(12px, 1.47vw, 21px)/1.65 var(--mono);
  white-space: nowrap;
  color: #292737;
}
.browser-address svg { width: 16px; height: 16px; margin-right: 8px; color: #746e85; flex: none; }
.address-prefix { flex: none; letter-spacing: -.035em; }
.slug-window { display: inline-block; flex: 1; min-width: 0; height: 1.65em; position: relative; overflow: hidden; margin-left: 1px; }
.showcase-slug { visibility: hidden; position: absolute; inset: 0 auto auto 0; color: var(--demo-ink); font-weight: 650; letter-spacing: -.04em; }
.showcase-slug.is-current, .showcase-slug.is-leaving { visibility: visible; }
.showcase-slug.is-current { animation: url-in 480ms var(--demo-ease) both; }
.showcase-slug.is-leaving { animation: url-out 480ms var(--demo-ease) both; }
.showcase[data-theme="guide"] .showcase-slug.is-current:not(:has(~ .is-leaving)) { animation: none; }
@keyframes url-in { from { transform: translateY(105%); opacity: .42; } }
@keyframes url-out { to { transform: translateY(-105%); opacity: .24; visibility: hidden; } }
.example-stage {
  height: clamp(204px, 24vw, 327px);
  padding: 27px 16% 0;
  overflow: hidden;
  background: radial-gradient(ellipse at 47% 5%, transparent 10%, #fff9 100%), var(--demo-soft);
  transition: background-color 660ms var(--demo-ease);
}
.example-sheet {
  box-shadow: 0 1px 3px #211b4e10, 0 11px 24px #2b254826;
  background: #fff;
  border: 1px solid #e5e2ee;
  border-bottom: 0;
  border-radius: 11px 11px 0 0;
  position: relative;
  height: calc(100% + 8px);
  overflow: hidden;
}
.example-doc { position: absolute; inset: 0; padding: clamp(17px, 3.4vw, 44px); opacity: 0; visibility: hidden; }
.example-doc.is-current, .example-doc.is-leaving { visibility: visible; }
.example-doc.is-current { opacity: 1; animation: doc-in 530ms var(--demo-ease) both; }
.example-doc.is-leaving { animation: doc-out 280ms ease-in both; }
.showcase[data-theme="guide"] .example-doc.is-current:not(:has(~ .is-leaving)) { animation: none; }
@keyframes doc-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes doc-out { from { opacity: 1; } to { opacity: 0; transform: translateY(-5px); visibility: hidden; } }
.example-icon {
  width: 31px;
  height: 31px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--demo-ink);
  background: var(--demo-soft);
}
.example-icon svg { width: 16px; height: 16px; }
.example-doc h2 {
  font-size: clamp(18px, 1.9vw, 26px);
  color: #3f3d4e;
  font-weight: 570;
  line-height: 1.14;
  letter-spacing: -.035em;
  margin: 12px 0 17px;
}
.example-lines { display: grid; gap: 8px; max-width: 205px; }
.example-lines i { height: 5px; border-radius: 10px; background: #e9e7f0; width: var(--demo-width-a); }
.example-lines i:nth-child(2) { width: var(--demo-width-b); }
.example-lines i:nth-child(3) { width: var(--demo-width-c); background: var(--demo-light); }
.landing .owned-workspaces { max-width: 680px; margin-bottom: 24px; }
.landing .owned-workspaces .workspace-choice { display: inline-flex; margin: 0 5px 5px 0; }
.owned-workspaces h2 { font-size: 18px; margin-bottom: 12px; }
.workspace-choice { display: flex; justify-content: space-between; gap: 15px; align-items: center; min-height: 44px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); text-decoration: none; margin-block: 8px; overflow-wrap: anywhere; }
.workspace-choice:hover { border-color: var(--accent); }
.section-heading { text-align: center; margin-bottom: 20px; }
.section-heading.align-left { text-align: left; }
.section-heading h1 { margin: 0 0 6px; }
.section-heading p:last-child { font-size: 15px; }
.surface { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.icon-box { border-radius: 8px; color: var(--accent-ink); width: 36px; height: 36px; flex: none; background: #eeedff; display: grid; place-items: center; }
.price { color: var(--text); font-size: 34px; letter-spacing: -.05em; font-weight: 650; line-height: 1.1; margin: 14px 0; }
.price span { color: var(--muted); font-size: 13px; letter-spacing: 0; font-weight: 450; }

.marketing:is(.pricing, .agent-page) { padding-top: clamp(32px, 6vh, 56px); }
body:has(.marketing:is(.pricing, .agent-page)) { background: #fff; }
:is(.pricing, .agent-page) h1 {
  font-size: clamp(29px, 3vw, 36px);
  font-weight: 620;
  letter-spacing: -.04em;
  margin-bottom: 22px;
}
.pricing { max-width: 760px; }
.pricing h1 { text-align: center; }
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.plan-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 23px;
  border: 1px solid #e5e1ed;
  border-radius: 14px;
  background: #fff;
}
.plan-launch { background: #f8f5ff; border-color: #ded4f6; }
.plan-card h2 { font-size: 17px; letter-spacing: -.015em; }
.plan-card .price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: 37px;
  font-variant-numeric: tabular-nums;
  margin: 9px 0 17px;
}
.plan-features { display: grid; gap: 7px; list-style: none; padding: 16px 0 0; margin: 0 0 21px; border-top: 1px solid #e8e1ef; }
.plan-features li { display: flex; gap: 9px; align-items: center; color: #3d3747; font-size: 14px; }
.plan-features strong { font-weight: 610; color: var(--text); }
.plan-features svg { width: 16px; height: 16px; flex: none; color: #6950b3; }
.plan-card a { width: 100%; margin-top: auto; }
.pricing-note { max-width: 510px; margin: 15px auto 0; text-align: center; font-size: 13px; }

.agent-page { max-width: 660px; }
.agent-page h2 { font-size: 16px; letter-spacing: -.015em; }
.agent-connect-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.agent-picker { border: 0; padding: 0; margin: 0; min-width: 0; }
.agent-options { display: flex; gap: 2px; background: #f5f3f8; padding: 2px; border: 1px solid #eae5f1; border-radius: 8px; }
.agent-option { position: relative; display: inline-flex; align-items: center; min-height: 38px; white-space: nowrap; padding: 0 10px; border-radius: 5px; color: #514960; cursor: pointer; font-size: 12px; }
.agent-option:hover { background: #faf8ff; }
.agent-option:has(input:checked) { color: #412978; background: #fff; box-shadow: 0 1px 2px #33266422; }
.agent-option:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.agent-option input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; padding: 0; }
.agent-command, .agent-output { background: #201b29; color: #f4effc; border-radius: 8px; }
.agent-command { display: flex; justify-content: space-between; align-items: center; gap: 4px; padding: 4px 4px 4px 12px; }
.agent-command pre { margin: 0; min-width: 0; font: 13px/1.55 var(--mono); }
.agent-command .icon-button { flex: none; color: #e4d7fa; }
.agent-command .icon-button:hover { background: #382e48; }
.agent-command .icon-button svg { width: 16px; height: 16px; }
.agent-example { margin-top: 17px; }
.agent-example blockquote { margin: 6px 0 0; color: #494253; font-size: 14px; }
.agent-output { margin-top: 8px; padding: 10px 12px; font: 13px/1.6 var(--mono); }
.agent-output p { color: #f4effc; }
.agent-output p span { color: #a8dfbc; }
.agent-output code { color: #d9c5ff; overflow-wrap: anywhere; }
.setup-guide { margin-top: 13px; border-top: 1px solid var(--border); }
.agent-page details + details { border-top: 1px solid var(--border); }
.agent-page summary { cursor: pointer; min-height: 44px; width: fit-content; padding: 11px 0; font-size: 13px; color: #5133a1; font-weight: 550; }
.setup-guide ul { margin: 0 0 12px; padding-left: 18px; font-size: 13px; color: var(--muted); }
.setup-guide li + li { margin-top: 5px; }
.prompt-alternative { display: grid; justify-items: start; gap: 9px; }
.prompt-alternative :is(p, a) { font-size: 13px; }
.prompt-alternative a { display: inline-flex; align-items: center; min-height: 44px; }
.prompt-alternative input[aria-invalid="true"] { border-color: #b84251; }
.prompt-alternative textarea { font: 13px/1.6 var(--mono); }
.workspace-layout { display: grid; grid-template-columns: 224px minmax(0, 1fr); width: min(var(--max), calc(100% - 80px)); margin: 0 auto; min-height: min(640px, calc(100vh - 120px)); }
.workspace-sidebar { padding: 22px 19px 22px 0; display: flex; flex-direction: column; gap: 22px; border-right: 1px solid var(--border); }
.workspace-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.workspace-identity > div:last-child { min-width: 0; }
.workspace-identity strong { display: block; font-size: 14px; overflow-wrap: anywhere; line-height: 1.3; }
.workspace-identity small { color: var(--muted); font-size: 12px; }
.workspace-avatar { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 9px; background: #eeedff; color: var(--accent-ink); font-weight: 680; }
.workspace-sidebar nav { display: grid; gap: 3px; }
.workspace-sidebar nav a, .sidebar-help { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 8px 10px; border-radius: 8px; color: #52525b; font-size: 14px; text-decoration: none; white-space: nowrap; }
.workspace-sidebar nav a:hover { background: #f0f0f4; }
.workspace-sidebar nav a[aria-current] { color: var(--accent-ink); background: #eeedff; font-weight: 600; }
.sidebar-help { margin-top: auto; font-size: 12px; justify-content: space-between; }
.sidebar-help:hover { color: var(--accent-ink); }
.sidebar-help svg { width: 13px; }
.workspace-main { min-width: 0; padding: 24px 0 24px 25px; }
.screen-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.screen-head h1 { font-size: clamp(26px, 2.65vw, 35px); }
.screen-head p { margin-top: 6px; }
.plan-summary { box-shadow: var(--shadow); display: grid; grid-template-columns: minmax(96px, .65fr) minmax(95px, 1fr) auto; gap: 20px; align-items: center; padding: 9px 14px; margin-bottom: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.plan-summary .eyebrow, .plan-summary strong { display: block; }
.plan-summary .eyebrow { font-size: 10px; }
.plan-summary a, .authorization-note a { display: inline-flex; gap: 5px; align-items: center; min-height: 44px; font-size: 13px; font-weight: 550; text-decoration: none; }
.plan-summary a svg, .authorization-note a svg { width: 14px; }
.capacity-label { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.capacity-label strong { color: var(--text); font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.capacity-meter { display: flex; gap: 4px; }
.capacity-meter span { height: 6px; flex: 1; border-radius: 4px; background: #e9e8ef; }
.capacity-meter .filled { background: var(--accent); }
.document-list { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; margin-bottom: 14px; }
.list-heading, .document-row { display: grid; grid-template-columns: minmax(0, 1fr) 99px 133px; gap: 12px; align-items: center; padding: 7px 14px; }
.list-heading { background: #f7f6fc; color: var(--muted); font-size: 12px; min-height: 39px; border-bottom: 1px solid var(--border); }
.list-heading span:last-child { text-align: right; }
.document-row { min-height: 57px; }
.document-row:hover { background: #fcfbff; }
.document-row + .document-row { border-top: 1px solid #efeff1; }
.document-name, .row-actions { display: flex; min-width: 0; align-items: center; }
.document-name { gap: 10px; }
.document-name > div { min-width: 0; }
.document-name strong, .document-name > div > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.document-name strong { font-size: 14px; font-weight: 590; }
.document-name > div > span { color: var(--muted); font: 11px/1.6 var(--mono); }
.file-icon { display: inline-grid; place-items: center; flex: none; width: 32px; height: 34px; border-radius: 7px; background: #f3f2ff; color: var(--accent-ink); }
.file-icon svg { width: 16px; }
.row-actions { justify-content: flex-end; }
.row-actions .text-button { padding-inline: 8px; }
.row-actions .icon-button svg { width: 16px; height: 16px; }
.state-badge, .tag { display: inline-flex; align-items: center; gap: 5px; justify-self: start; width: fit-content; max-width: 100%; padding: 3px 7px; border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.state-badge { background: #ecf8ef; color: #147038; }
.state-badge span { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.tag { background: #f1f1f4; color: #52525b; }
.empty { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); border-radius: var(--radius); padding: 35px 26px; text-align: center; }
.empty .icon-box { margin: 0 auto 13px; }
.empty p { max-width: 44ch; margin: 8px auto 14px; }
.breadcrumbs { margin: -5px 0 15px; display: flex; gap: 9px; align-items: center; color: var(--muted); font-size: 13px; }
.breadcrumbs a { min-height: 32px; display: inline-flex; align-items: center; }
.editor-meta { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; margin-bottom: 17px; }
.slug-input { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); min-width: 0; }
.slug-input > span { padding-left: 11px; color: var(--muted); font: 11px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 55%; }
.slug-input input { flex: 1; width: 0; background: transparent; border: 0; font-family: var(--mono); font-size: 13px; padding-left: 5px; }
.slug-input input[readonly] { color: #52525b; }
.editor-panels { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.editor-pane { min-width: 0; }
.editor-pane + .editor-pane { border-left: 1px solid var(--border); }
.editor-pane > label, .pane-heading { padding: 11px 14px; background: #f7f7f9; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 560; }
.editor-pane textarea { display: block; border: 0; border-radius: 0; padding: 16px 14px; min-height: 300px; font: 13px/1.75 var(--mono); }
.editor-pane textarea:focus-visible { outline-offset: -3px; }
.preview { padding: 19px 17px; overflow-wrap: anywhere; }
.preview > h2 { margin-bottom: 14px; font-size: 24px; }
.preview p, .document article p { margin-bottom: 1em; color: #3f3f46; }
.preview h1, .preview h2, .preview h3, .document article h1, .document article h2, .document article h3 { margin-bottom: .55em; font-size: 20px; }
.preview code, .document code { background: #f1f0f6; border-radius: 4px; padding: 2px 4px; font-size: .88em; overflow-wrap: anywhere; }
.preview a, .document article a { color: #5932c5; text-decoration: underline; text-underline-offset: .15em; }
.preview :is(ol, ul), .document article :is(ol, ul) { margin-block: .65em 1em; padding-inline-start: 1.6em; }
.preview pre, .document article pre, .markdown-table { overflow-x: auto; margin-block: .65em 1em; }
.preview pre, .document article pre { padding: 12px; border-radius: 6px; background: #f1f0f6; }
.preview pre code, .document article pre code { padding: 0; background: none; overflow-wrap: normal; }
.markdown-table table { border-collapse: collapse; width: max-content; min-width: 100%; }
.markdown-table :is(th, td) { border: 1px solid var(--border); padding: 5px 9px; text-align: start; }
.markdown-table th { background: #f7f6fc; }
#resource-name-field[hidden] { display: none; }
@media (min-width: 721px) and (max-height: 800px) {
  .editor-pane .preview { max-height: 300px; overflow-y: auto; }
  .editor-pane .preview:focus-visible { outline-offset: -3px; }
}
.editor-switch { display: none; }
.editor-actions { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-top: 14px; }
.editor-actions p { font-size: 12px; }
#published { margin-top: 8px; display: flex; gap: 10px; align-items: center; }
#published svg { vertical-align: middle; width: 14px; }
.key-card, .billing-card { padding: 17px; }
.billing-card { max-width: 520px; margin-bottom: 16px; }
.billing-card .capacity { margin: 16px 0; }
.billing-card .button-row { margin-top: 16px; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.card-top p { margin-top: 5px; }
.key-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 12px; }
.key-row code { overflow-wrap: anywhere; font-size: 12px; }
.key-row small { display: block; color: var(--muted); }
.key-empty { margin-top: 16px; }
.key-result, .info-note { background: #f1f0ff; border: 1px solid #e7e4ff; border-radius: 8px; padding: 11px 12px; color: #49438c; overflow-wrap: anywhere; }
.key-result { margin-top: 16px; }
.key-result h3 { color: var(--text); }
.key-result p { margin: 6px 0; }
.key-result > div { display: flex; gap: 10px; align-items: center; }
.key-result code { overflow-wrap: anywhere; user-select: all; }
.billing-card .info-note { margin-top: 10px; font-size: 13px; }
.authorization-note { display: flex; gap: 11px; padding: 13px 2px; max-width: 62ch; }
.authorization-note h2 { font-size: 17px; margin-bottom: 5px; }
.centered { padding: 27px; }
.centered p { margin: 9px 0 14px; }
.ownership { max-width: 470px; }
.marketing.ownership { padding-top: clamp(26px, 7vh, 62px); }
.ownership h1 { font-size: 30px; margin-top: 14px; }
dialog { width: min(420px, calc(100% - 32px)); border: 1px solid var(--border); padding: 0; border-radius: 12px; background: var(--surface); color: var(--text); box-shadow: 0 20px 90px #18181b30; }
dialog::backdrop { background: #211a3b60; }
.confirm-dialog form { padding: 23px; }
.confirm-dialog h2 { margin-top: 12px; }
.confirm-dialog p { margin: 8px 0 16px; overflow-wrap: anywhere; }
.confirm-dialog .button-row { justify-content: flex-end; }
.danger { padding: 0 14px; min-height: 44px; border: 1px solid #a2203a; border-radius: 8px; color: #fff; background: #a2203a; font: 560 14px Geist, system-ui, sans-serif; }
.danger:hover { background: #7e1930; }
#auth-form { padding: 27px; display: grid; gap: 13px; position: relative; }
#auth-form h2 { font-size: 25px; }
#auth-form h2 + p { margin-top: -6px; }
#auth-form .close { position: absolute; top: 8px; right: 8px; font-size: 24px; padding-inline: 10px; }
#auth-form .auth-mark { width: 28px; height: 28px; }
#auth-error, #claim-status { font-size: 13px; }
#restart-auth { color: var(--accent-ink); font-size: 13px; }
.toast { position: fixed; z-index: 2; inset: auto 20px 20px auto; max-width: calc(100% - 40px); padding: 12px 15px; border-radius: 8px; color: #fff; background: #27272a; box-shadow: var(--shadow); overflow-wrap: anywhere; }
.content-page h1 { margin: 10px 0; }
#report-form { margin-top: 20px; display: grid; gap: 12px; }
.document { background: #fff; }
.document > header, .document > main, .document > footer { width: min(680px, calc(100% - 48px)); margin-inline: auto; }
.document > header { padding: 20px 0; border-bottom: 1px solid var(--border); display: flex; gap: 14px; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; }
.document > header a { color: var(--text); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.document > main { flex: 1; padding: 54px 0 66px; overflow-wrap: anywhere; }
.document h1 { color: var(--text); font-size: clamp(32px, 5vw, 48px); margin: 10px 0; }
.document article { margin-top: 30px; font-size: 17px; line-height: 1.75; }
.document > footer { padding: 15px 0 25px; border-top: 1px solid var(--border); }
.document > footer a { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); font-size: 13px; }

@media (max-width: 990px) {
  .nav, .site-footer, .marketing, .content-page, .workspace-layout { width: calc(100% - 48px); }
  .landing, .landing-page .nav { width: calc(100% - 54px); }
  .landing .hero { column-gap: 29px; padding: 61px 0 40px; }
  .showcase::before { inset-inline-end: max(-20px, -8%); }
  .browser-address { padding-inline: 10px; }
  .showcase-frame { padding-inline: 13px; }
  .workspace-layout { grid-template-columns: 170px minmax(0, 1fr); }
  .workspace-sidebar { padding-right: 12px; }
  .workspace-main { padding-left: 20px; }
}
@media (max-width: 720px) {
  .nav, .site-footer, .marketing, .content-page, .workspace-layout { width: calc(100% - 36px); }
  .nav { min-height: 61px; gap: 8px; }
  .nav nav, .site-footer nav { gap: 10px; }
  .brand { font-size: 17px; gap: 6px; }
  .nav nav a, .nav .text-button { font-size: 12px; min-height: 44px; display: inline-flex; align-items: center; }
  .nav .text-button { padding-inline: 5px; }
  .marketing:not(.landing), .content-page { padding: 38px 0 45px; }
  .landing, .landing-page .nav { width: calc(100% - 36px); }
  .landing .hero { grid-template-columns: 1fr; padding: 42px 0 39px; row-gap: 22px; }
  .landing h1 { font-size: clamp(28px, 8.2vw, 44px); margin-bottom: 11px; }
  .landing .intro { font-size: 16px; }
  #brand-form { margin-top: 17px; }
  .workspace-entry input { min-height: 44px; }
  .workspace-entry .primary { min-height: 44px; }
  .showcase::before { inset: 10% -4% -13% -4%; filter: blur(27px); }
  .showcase::after { inset: -12% -4% 24% 5%; }
  .showcase-window { border-radius: 14px; }
  .showcase-frame { padding: 16px 11px 11px; }
  .browser-dots { margin-bottom: 12px; }
  .browser-address { font-size: clamp(11px, 3.5vw, 16px); padding: 8px 10px; }
  .browser-address svg { width: 13px; height: 13px; margin-right: 6px; }
  .example-stage { height: 196px; padding: 19px 12% 0; }
  .example-doc { padding: 17px 21px; }
  .example-doc h2 { margin: 9px 0 12px; }
  .workspace-layout { display: block; min-height: auto; }
  .workspace-sidebar { border-right: 0; border-bottom: 1px solid var(--border); padding: 14px 0 8px; gap: 9px; }
  .workspace-sidebar nav { display: flex; gap: 4px; flex-wrap: wrap; }
  .workspace-sidebar nav a { padding: 7px 8px; font-size: 13px; }
  .workspace-sidebar nav a svg { width: 16px; }
  .sidebar-help { display: none; }
  .workspace-main { padding: 18px 0 31px; }
  .screen-head { gap: 10px; margin-bottom: 15px; }
  .screen-head p { font-size: 14px; }
  .plan-summary { gap: 10px; padding: 10px; margin-bottom: 13px; }
  .list-heading, .document-row { grid-template-columns: minmax(0, 1fr) 77px 133px; gap: 6px; padding-inline: 9px; }
  .row-actions .icon-button { width: 44px; }
  .row-actions .text-button { padding-inline: 5px; }
  .editor-switch { display: inline-flex; gap: 4px; padding: 3px; border-radius: 8px; background: #eeeeF3; margin-bottom: 8px; }
  .editor-switch button { min-height: 44px; border: 0; background: transparent; color: #52525b; padding: 0 13px; border-radius: 6px; }
  .editor-switch button[aria-pressed="true"] { background: var(--surface); color: var(--accent-ink); box-shadow: var(--shadow); }
  .editor-panels { display: block; }
  .editor-pane + .editor-pane { border-left: 0; }
  .editor-panels[data-active="write"] .preview-pane, .editor-panels[data-active="preview"] .write-pane { display: none; }
  .preview-pane { min-height: 240px; }
  .editor-pane textarea { min-height: 230px; }
}
@media (max-width: 480px) {
  .editor-meta { grid-template-columns: 1fr; gap: 10px; }
  .key-card, .billing-card, .centered { padding: 17px; }
  .card-top { flex-wrap: wrap; }
  .plan-summary { grid-template-columns: .63fr 1fr; }
  .plan-summary a { grid-column: 1/-1; min-height: 37px; border-top: 1px solid var(--border); }
  .list-heading { display: none; }
  .document-row { grid-template-columns: minmax(0, 1fr) auto; padding: 9px; }
  .document-row .state-badge { grid-column: 1; grid-row: 2; margin-left: 42px; }
  .row-actions { grid-column: 2; grid-row: 1 / span 2; }
  .row-actions .icon-button { width: 44px; }
  .key-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .key-row .state-badge { grid-column: 2; grid-row: 2; }
  .key-row > button { grid-column: 3; grid-row: 1 / span 2; }
  .editor-actions { align-items: flex-start; flex-direction: column-reverse; gap: 6px; }
  #editor .editor-actions, #resource-editor .editor-actions {
    position: sticky; z-index: 2; bottom: 0; padding: 8px 0 max(8px, env(safe-area-inset-bottom));
    background: var(--bg); border-top: 1px solid var(--border);
  }
  #resource-editor .editor-actions { background: var(--surface); }
  .marketing:is(.pricing, .agent-page) { padding-top: 29px; }
  .plan-grid { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .plan-card { padding: 18px; }
  .plan-card .price { font-size: 34px; }
  .agent-connect-heading { flex-wrap: wrap; }
  .agent-option { min-height: 44px; }

}
@media (prefers-reduced-motion: reduce) {
  .demo-toggle { display: none; }
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; scroll-behavior: auto !important; }
}

@media (max-width: 360px) {
  .landing h1 { font-size: 27px; }
  .browser-address { font-size: 11px; padding-inline: 7px; }
  .workspace-entry .primary { padding-inline: 9px; }
}
