/*
 * Connect MCP prototype. Colors, type and spacing follow the "MCP Integration
 * Flows" design canvas (1440px artboards). Below 1100px the two columns stack.
 */
:root {
  --ink: #11181c;
  --body: #4b4a46;
  --mute: #65635e;
  --line: #e8e5df;
  --line-soft: #efece6;
  --field-line: #d6d3cc;
  --paper: #faf8f5;
  --chip: #f1efea;
  --sheet: #ffffff;
  --purple: #5a36e0;
  --purple-line: #7853ff;
  --purple-wash: #efebff;
  --selected: #fbfaff;
  --radio: #c9c6bf;
  --warn-bg: #fbf1cf;
  --warn-ink: #6e5400;
  --warn-icon: #af8800;
  --ok: #12a150;
  --ok-bg: #e8faf0;
  --ok-ink: #0b6b35;
  --ok-ink-2: #2f5d43;
  --link: #006fee;
  --link-hover: #0057bd;
  --danger: #b51e53;
  --disabled: #8a8984;
  --term: #11181c;
  --term-line: #262e33;
  --term-dot: #3a4247;
  --term-dim: #8b9398;
  --term-ink: #ecedee;
  --font-ui: "Google Sans Flex", "Google Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-code: "Google Sans Code", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--sheet);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
}

:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

[tabindex="-1"]:focus {
  outline: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.icon {
  display: inline-flex;
  flex-shrink: 0;
}

.icon svg {
  display: block;
}

.grow {
  flex-grow: 1;
}

.strong {
  font-weight: 500;
}

.muted {
  color: var(--body);
}

.right {
  text-align: right;
}

.mono {
  font-family: var(--font-code);
  font-size: 13px;
}

.p {
  font-size: 16px;
  line-height: 1.4;
}

.p-muted {
  color: var(--body);
}

.hint {
  font-size: 13px;
  color: var(--mute);
}

.eyebrow,
.mono-label {
  font-family: var(--font-code);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--mute);
  letter-spacing: 0.01em;
}

.mono-label {
  color: var(--body);
}

a.eyebrow-link {
  color: var(--mute);
}

a.eyebrow-link:hover {
  color: var(--ink);
}

.rule {
  height: 1px;
  background: var(--line);
}

.inline-link {
  color: var(--link);
}

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  font-size: 14px;
  color: var(--link);
  cursor: pointer;
}

.link-btn:hover {
  color: var(--link-hover);
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-code);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition:
    opacity 300ms,
    background-color 300ms;
}

.btn-solid,
a.btn-solid {
  background: var(--ink);
  color: #ffffff;
}

.btn-solid:hover,
a.btn-solid:hover {
  color: #ffffff;
  opacity: 0.88;
}

.btn-outline,
a.btn-outline {
  border-color: var(--field-line);
  background: var(--sheet);
  color: var(--ink);
}

.btn-outline:hover,
a.btn-outline:hover {
  color: var(--ink);
  background: var(--paper);
}

.btn-block {
  display: flex;
  width: 100%;
  height: 48px;
  font-size: 14px;
}

.btn-lg {
  height: 44px;
  padding: 0 20px;
  font-size: 14px;
}

.btn-xl {
  height: 48px;
  padding: 0 24px;
  font-size: 16px;
}

.btn-start {
  align-self: flex-start;
  gap: 10px;
}

.btn-wide {
  padding: 0 22px;
}

.btn-choice {
  height: 40px;
  width: 100%;
}

.btn-static {
  cursor: default;
}

.btn-static.btn-outline {
  border-color: var(--line);
}

.btn-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-disabled-grey {
  background: var(--disabled);
  color: #ffffff;
  cursor: not-allowed;
}

/* ── The Console's two headers and footer ────────────────────────────────── */

.page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--sheet);
}

.top-bar {
  height: 64px;
  flex-shrink: 0;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.top-bar-back {
  gap: 12px;
}

.brand {
  font-size: 22px;
  letter-spacing: -0.01em;
}

.brand-bold {
  font-weight: 700;
}

.top-nav {
  display: flex;
  gap: 24px;
  font-size: 16px;
}

.top-nav-item {
  color: var(--mute);
  padding-bottom: 4px;
}

.top-nav-item[aria-current="page"] {
  color: var(--ink);
  font-weight: 500;
  box-shadow: inset 0 -2px 0 var(--ink);
}

.search {
  width: 400px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--field-line);
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--mute);
  font-size: 15px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--line);
  color: var(--body);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

a.back {
  width: 32px;
  height: 32px;
  margin-left: -4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.top-title {
  font-size: 16px;
  font-weight: 500;
}

.footer {
  height: 44px;
  flex-shrink: 0;
  margin-top: auto;
  padding: 0 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}

.footer-link {
  color: var(--link);
}

/* ── Create → Save → Connect progress ────────────────────────────────────── */

.flow-nav {
  padding: 8px 40px 0;
}

.flow-steps {
  max-width: 1226px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.flow-step,
.segment-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.flow-step {
  padding-bottom: 12px;
  box-shadow: inset 0 -2px 0 var(--line);
}

.flow-step[data-state="done"],
.flow-step[data-state="current"] {
  box-shadow: inset 0 -2px 0 var(--purple);
}

.flow-dot {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  flex-shrink: 0;
  background: var(--chip);
  color: var(--mute);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-label {
  font-size: 14px;
  color: var(--mute);
}

[data-state="done"] > .flow-dot,
[data-state="done"] .flow-dot {
  background: var(--purple-wash);
  color: var(--purple);
}

[data-state="done"] .flow-label {
  color: var(--body);
}

[data-state="current"] .flow-dot {
  background: var(--purple);
  color: #ffffff;
}

[data-state="current"] .flow-label {
  color: var(--ink);
  font-weight: 500;
}

/* ── Two columns: left 460, right 592, as the artboards ──────────────────── */

.split {
  padding: 32px 40px 48px;
  display: flex;
  gap: clamp(40px, 12vw, 174px);
  align-items: flex-start;
}

.split-tight {
  padding-top: 24px;
}

.col-left {
  flex: 0 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.col-right {
  flex: 0 1 592px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.col-form {
  gap: 28px;
}

.col-fields {
  gap: 20px;
}

.lede {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lede-title,
.h-step,
.h-page {
  font-size: 24px;
  line-height: 1.4;
  font-weight: 500;
}

.lede-body {
  font-size: 16px;
  line-height: 1.4;
  color: var(--mute);
}

.col-left:has(.callout) {
  gap: 24px;
}

/* ── Notes ───────────────────────────────────────────────────────────────── */

.callout {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
}

.callout[data-tone="warn"] {
  background: var(--warn-bg);
  color: var(--warn-ink);
}

.callout[data-tone="warn"] .callout-icon {
  color: var(--warn-icon);
}

.callout[data-tone="info"] {
  background: var(--chip);
  color: var(--body);
  font-size: 14px;
  line-height: 1.4;
}

.col-left > .callout {
  padding: 12px;
}

.callout-icon {
  margin-top: 1px;
}

/* ── Copy fields ─────────────────────────────────────────────────────────── */

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.field-label {
  font-family: var(--font-code);
  font-size: 12px;
  color: var(--body);
}

.field-note {
  font-size: 12px;
  color: var(--mute);
}

.field-box {
  min-height: 40px;
  padding: 0 4px 0 12px;
  border: 1px solid var(--field-line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.field-box-multi {
  align-items: flex-start;
  padding: 10px 4px 10px 12px;
  background: var(--paper);
}

.field-code {
  flex-grow: 1;
  min-width: 0;
  margin: 0;
  font-family: var(--font-code);
  font-size: 13px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

pre.field-code,
.field-code-wrap {
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
  overflow: visible;
}

.field-code-wrap {
  font-size: 13px;
}

.copy-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--body);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 300ms;
}

.copy-icon:hover {
  background: var(--chip);
}

.icon-ok {
  color: var(--ok);
}

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

/* ── Scenario picker ─────────────────────────────────────────────────────── */

.main-page {
  min-height: 100dvh;
  padding: 72px 96px;
  display: flex;
  flex-direction: column;
  gap: 48px;
  background: var(--paper);
}

.main-intro {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.main-title {
  font-size: 40px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.main-body {
  font-size: 17px;
  line-height: 1.4;
  color: var(--body);
}

.scenarios {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.scenario {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--sheet);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.scenario[data-highlight="true"] {
  border-color: var(--purple-line);
}

.scenario-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scenario-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
}

.scenario-num {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--purple-wash);
  color: var(--purple);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scenario-kicker {
  font-family: var(--font-code);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--purple);
}

.scenario-title {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
}

.scenario-body {
  font-size: 15px;
  line-height: 1.4;
  color: var(--body);
}

.jumps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.jumps-label,
.scenario-footnote {
  font-size: 13px;
  line-height: 1.4;
  color: var(--mute);
}

a.jump {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  transition:
    background-color 300ms,
    border-color 300ms;
}

a.jump:hover {
  background: var(--paper);
  border-color: var(--purple-line);
  color: var(--ink);
}

.jump-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-grow: 1;
}

.jump-title {
  font-size: 15px;
  font-weight: 500;
}

.jump-tag {
  font-size: 13px;
  color: var(--mute);
}

.jump-chevron {
  color: var(--mute);
}

/* ── Agent cards ─────────────────────────────────────────────────────────── */

.agents {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

a.agent {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--sheet);
  color: var(--ink);
  transition:
    border-color 300ms,
    background-color 300ms;
}

a.agent:hover {
  border-color: var(--purple-line);
  color: var(--ink);
}

a.agent[aria-current="page"] {
  border-color: var(--purple-line);
  background: var(--selected);
}

.agent-badge {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.agent-badge-sm {
  width: 36px;
  height: 36px;
}

.agent-badge-claude {
  background: #fbeee8;
  color: #c9623f;
}

.agent-badge-cursor {
  background: #1c1c1a;
  color: var(--term-ink);
}

.agent-badge-other {
  background: var(--purple-wash);
  color: var(--purple);
}

.agent-text {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.agent-name {
  font-size: 16px;
  font-weight: 500;
}

.agent-tag {
  font-size: 14px;
  color: var(--mute);
}

.radio {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  align-self: flex-start;
  border: 1.5px solid var(--radio);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

a.agent[aria-current="page"] .radio {
  border-color: var(--purple);
}

a.agent[aria-current="page"] .radio::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--purple);
}

.placeholder {
  min-height: 240px;
  padding: 24px;
  border: 1px dashed var(--field-line);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--mute);
  text-align: center;
}

.placeholder-title {
  font-size: 16px;
  color: var(--body);
}

.placeholder-body {
  font-size: 14px;
}

.key-picker {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
}

.select-wrap {
  position: relative;
}

.select {
  width: 100%;
  height: 40px;
  padding: 0 36px 0 12px;
  border: 1px solid var(--field-line);
  border-radius: 8px;
  background: var(--sheet);
  font-size: 15px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.select-chevron {
  position: absolute;
  top: 12px;
  right: 12px;
  color: var(--body);
  pointer-events: none;
}

/* ── Empty Integrations and the key list ─────────────────────────────────── */

.empty {
  flex-grow: 1;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.empty-copy {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.empty-title {
  font-size: 36px;
  line-height: 40px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.empty-body {
  font-size: 16px;
  line-height: 1.4;
  color: var(--mute);
}

.empty-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.empty-actions .btn-outline {
  border-color: var(--line);
}

.empty-note {
  font-size: 13px;
  color: var(--mute);
}

.integrations {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.integrations-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.integrations-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.counts {
  font-size: 12px;
  color: var(--mute);
}

.integrations-actions {
  display: flex;
  gap: 12px;
}

.integrations-actions .btn {
  padding: 0 20px;
  font-size: 14px;
}

.integrations-actions .btn-outline {
  border-color: var(--line);
}

.key-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.key-grid-head,
.key-grid-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 14px 12px;
}

.key-grid-head {
  padding-top: 0;
  padding-bottom: 8px;
  font-family: var(--font-code);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--mute);
}

.key-grid-rows {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.key-grid-row {
  font-size: 15px;
}

.key-grid-row + .key-grid-row {
  border-top: 1px solid var(--line-soft);
}

.key-grid-row[data-highlight="true"] {
  background: var(--selected);
}

/* ── Which API key should MCP use? ───────────────────────────────────────── */

.overlay-page {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
}

.behind {
  opacity: 0.4;
}

.behind-body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.behind-box {
  height: 100px;
  border: 1px solid var(--field-line);
  border-radius: 10px;
}

.behind .top-nav-item {
  color: var(--ink);
}

.scrim {
  position: fixed;
  inset: 0;
  background: rgb(17 24 28 / 0.16);
}

.dialog {
  position: absolute;
  top: 64px;
  left: 50%;
  width: min(560px, calc(100vw - 32px));
  transform: translateX(-50%);
  padding: 24px;
  border-radius: 10px;
  background: var(--sheet);
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 24px 64px -16px rgb(17 24 28 / 0.22);
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dialog-title {
  font-size: 24px;
  font-weight: 500;
}

a.dialog-close {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--body);
}

.dialog-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dialog .callout {
  padding: 12px;
}

/* ── Create API key ──────────────────────────────────────────────────────── */

.field .input {
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--field-line);
  border-radius: 8px;
  font-size: 15px;
}

.col-form > .field {
  gap: 10px;
}

.perms {
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.perms legend {
  padding: 0;
  margin-bottom: 14px;
}

.radio-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  cursor: pointer;
}

.radio-row input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--purple);
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.radio-note {
  padding-left: 30px;
  font-size: 12px;
  color: var(--mute);
}

.note-slot:empty {
  display: none;
}

/* ── Save the keys ───────────────────────────────────────────────────────── */

.summary {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  row-gap: 8px;
  font-size: 14px;
}

.summary dt {
  align-self: center;
  color: var(--mute);
}

.summary dd {
  margin: 0;
}

/* ── Claude Desktop ──────────────────────────────────────────────────────── */

.step-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-copy-tight {
  gap: 8px;
}

.step-later {
  opacity: 0.55;
}

.h-check {
  font-size: 18px;
  font-weight: 500;
}

.h-installer {
  font-size: 20px;
  font-weight: 500;
}

.download-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.download-row .btn {
  font-size: 14px;
}

.form-card {
  padding: 16px;
  border-radius: 12px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-heading {
  font-size: 18px;
  font-weight: 500;
}

.form-grid {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 14px;
  align-items: center;
}

.form-row {
  display: contents;
}

.form-label {
  font-family: var(--font-code);
  font-size: 13px;
  text-transform: uppercase;
  color: var(--body);
}

.form-label-top {
  align-self: start;
  padding-top: 12px;
}

.form-input {
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--field-line);
  border-radius: 8px;
  background: var(--sheet);
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-input-copy {
  padding-right: 4px;
}

.form-code {
  flex-grow: 1;
  min-width: 0;
  font-family: var(--font-code);
  font-size: 13px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.form-mask {
  flex-grow: 1;
  font-size: 16px;
  letter-spacing: 0.12em;
}

.form-hint {
  font-size: 12px;
  color: var(--mute);
  white-space: nowrap;
}

.form-hint-admin {
  color: var(--purple);
}

.form-dirs {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--field-line);
  border-radius: 8px;
  background: var(--sheet);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-dir {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  color: var(--mute);
}

.form-dir .mono {
  color: var(--ink);
}

.form-dirs-hint {
  padding: 2px 6px 4px;
  font-size: 12px;
  color: var(--mute);
}

.storage {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.clear-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.cleared {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ok);
}

.check {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── Cursor ──────────────────────────────────────────────────────────────── */

.banner-ok {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--ok-bg);
  display: flex;
  align-items: center;
  gap: 12px;
}

.banner-dot,
.toast-dot {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--ok);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.banner-text {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.banner-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--ok-ink);
}

.banner-body {
  font-size: 14px;
  color: var(--ok-ink-2);
}

.banner-ok .inline-link {
  font-size: 14px;
}

.try {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.try-code {
  font-family: var(--font-code);
  font-size: 14px;
}

/* The window Cursor opens: dark, and labelled as a simulation. */
.cw-page {
  min-height: 100dvh;
  padding: 32px 16px;
  background: #2b2b29;
  color: var(--term-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cw-badge {
  padding: 6px 14px;
  border: 1px dashed #6b6a66;
  border-radius: 999px;
  font-family: var(--font-code);
  font-size: 12px;
  text-transform: uppercase;
  color: #c9c6bf;
  text-align: center;
}

.cw-window {
  position: relative;
  width: min(1080px, 100%);
  height: 740px;
  border: 1px solid #333333;
  border-radius: 12px;
  background: #181818;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cw-titlebar {
  height: 38px;
  flex-shrink: 0;
  padding: 0 14px;
  border-bottom: 1px solid #2a2a2a;
  background: #1f1f1f;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cw-light {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #4a4a48;
}

.cw-app {
  flex-grow: 1;
  text-align: center;
  font-size: 13px;
  color: #9a9994;
}

.cw-body-area {
  flex-grow: 1;
  display: flex;
}

.cw-sidebar {
  width: 220px;
  padding: 16px;
  border-right: 1px solid #2a2a2a;
  background: #1c1c1c;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cw-bar {
  height: 10px;
  border-radius: 4px;
  background: #2c2c2c;
}

.cw-bar-1 {
  width: 120px;
}

.cw-bar-2 {
  width: 160px;
}

.cw-bar-3 {
  width: 90px;
}

.cw-bar-4 {
  width: 140px;
}

.cw-scrim {
  position: absolute;
  inset: 38px 0 0;
  padding: 16px;
  background: rgb(0 0 0 / 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cw-dialog {
  width: min(560px, 100%);
  padding: 24px;
  border: 1px solid #3a3a3a;
  border-radius: 12px;
  background: #232323;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cw-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cw-title {
  font-size: 18px;
  font-weight: 500;
  color: #f4f4f2;
}

.cw-body {
  font-size: 14px;
  line-height: 1.4;
  color: #b5b3ad;
}

.cw-facts,
.cw-env {
  margin: 0;
  display: grid;
  column-gap: 12px;
}

.cw-facts {
  grid-template-columns: 110px minmax(0, 1fr);
  row-gap: 10px;
  align-items: center;
  font-size: 13px;
}

.cw-facts dt {
  color: #9a9994;
}

.cw-facts dd,
.cw-env dd {
  margin: 0;
  font-family: var(--font-code);
  color: var(--term-ink);
  word-break: break-all;
}

.cw-env-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cw-env-label {
  font-size: 13px;
  color: #9a9994;
}

.cw-env {
  grid-template-columns: 250px minmax(0, 1fr);
  row-gap: 8px;
  padding: 10px 12px;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  background: #1b1b1b;
  font-family: var(--font-code);
  font-size: 12px;
}

.cw-env dt {
  color: #c9c6bf;
}

.cw-masked {
  letter-spacing: 0.1em;
}

.cw-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
}

a.cw-btn {
  height: 34px;
  padding: 0 14px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  font-size: 13px;
  transition:
    opacity 300ms,
    background-color 300ms;
}

a.cw-cancel {
  border: 1px solid #3a3a3a;
  color: var(--term-ink);
}

a.cw-cancel:hover {
  background: #2e2e2e;
  color: var(--term-ink);
}

a.cw-install {
  padding: 0 16px;
  background: #f4f4f2;
  color: #111111;
  font-weight: 500;
}

a.cw-install:hover {
  color: #111111;
  opacity: 0.88;
}

/* ── The installer wizard ────────────────────────────────────────────────── */

.segments {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.segment {
  padding: 0 0 10px;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 -2px 0 var(--line);
}

.segment[data-state="done"],
.segment[data-state="current"] {
  box-shadow: inset 0 -2px 0 var(--purple);
}

.segment-inner {
  gap: 8px;
}

.installer-body {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field-box-paper {
  background: var(--paper);
}

.term {
  border-radius: 10px;
  background: var(--term);
  overflow: hidden;
}

.term-bar {
  height: 30px;
  padding: 0 12px;
  border-bottom: 1px solid var(--term-line);
  display: flex;
  align-items: center;
  gap: 6px;
}

.term-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--term-dot);
}

.term-label {
  margin-left: 8px;
  font-family: var(--font-code);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--term-dim);
}

.term-body {
  margin: 0;
  padding: 14px 16px;
  font-family: var(--font-code);
  font-size: 13px;
  line-height: 1.6;
  color: var(--term-ink);
  white-space: pre-wrap;
}

.paste-help {
  font-size: 14px;
  color: var(--body);
}

.installer-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

/* ── Connected ───────────────────────────────────────────────────────────── */

.page-done {
  position: relative;
}

.done-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.done-table th {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-code);
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  text-align: left;
  color: var(--mute);
}

.done-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
}

.row-lit {
  background: var(--selected);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--ok-bg);
  color: var(--ok-ink);
  font-size: 13px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--ok);
}

.revoke {
  color: var(--danger);
}

.toast {
  position: fixed;
  right: 32px;
  bottom: 32px;
  width: min(380px, calc(100vw - 32px));
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--sheet);
  box-shadow: 0 4px 16px rgb(17 24 28 / 0.08);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.toast-dot {
  width: 24px;
  height: 24px;
}

.toast-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toast-title {
  font-size: 15px;
  font-weight: 500;
}

.toast-body {
  font-size: 14px;
  line-height: 1.4;
  color: var(--body);
}

a.proto-link {
  position: fixed;
  left: 32px;
  bottom: 32px;
  height: 36px;
  padding: 0 14px;
  border: 1px dashed var(--purple-line);
  border-radius: 999px;
  background: var(--sheet);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--purple);
  font-family: var(--font-code);
  font-size: 12px;
  text-transform: uppercase;
}

/* ── Narrow screens: one column ──────────────────────────────────────────── */

@media (max-width: 1100px) {
  .split {
    flex-direction: column;
    gap: 40px;
  }

  .col-left,
  .col-right {
    flex: none;
    width: 100%;
    max-width: 592px;
  }

  .scenarios {
    grid-template-columns: minmax(0, 1fr);
    max-width: 592px;
  }

  .main-page {
    padding: 48px 24px;
  }

  .search {
    display: none;
  }
}

@media (max-width: 640px) {
  .top-bar,
  .flow-nav,
  .split,
  .integrations,
  .behind-body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .top-bar {
    gap: 16px;
  }

  .flow-label {
    font-size: 12px;
  }

  .flow-steps {
    gap: 8px;
  }

  .main-page {
    padding: 32px 16px;
  }

  .main-title {
    font-size: 30px;
  }

  .empty-title {
    font-size: 28px;
    line-height: 1.15;
  }

  .empty-actions,
  .integrations-head {
    flex-direction: column;
    align-items: stretch;
  }

  .integrations-actions {
    flex-wrap: wrap;
  }

  .form-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 6px;
  }

  .form-label:not(:first-child) {
    margin-top: 8px;
  }

  .form-label-top {
    padding-top: 0;
  }

  .key-picker {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 8px;
  }

  .segments {
    gap: 4px;
  }

  .segment .flow-label {
    display: none;
  }

  .key-grid-head,
  .key-grid-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 4px;
  }

  .done-table th:nth-child(n + 4),
  .done-table td:nth-child(n + 4) {
    display: none;
  }

  .dialog-choices {
    grid-template-columns: minmax(0, 1fr);
  }

  .cw-window {
    height: auto;
    min-height: 620px;
  }

  .cw-sidebar {
    display: none;
  }

  .cw-env {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 2px;
  }

  .cw-env dd {
    margin-bottom: 6px;
  }

  .toast {
    right: 16px;
    bottom: 72px;
  }

  a.proto-link {
    left: 16px;
    bottom: 16px;
  }
}

/* The page title says Integrations; the nav links don't fit beside the logo. */
@media (max-width: 480px) {
  .top-bar .top-nav {
    display: none;
  }
}
