/* Houston web UI. Clean product surface: ink, teal, no serif-pharma look. */
:root {
  --paper: #F6F6F4;
  --paper-deep: #ECECE8;
  --ink: #111111;
  --ink-soft: #3A3A38;
  --muted: #6B6B66;
  --faint: #A3A39C;
  --rule: #E2E2DC;
  --teal: #0F766E;
  --teal-mid: #0D9488;
  --teal-bright: #14B8A6;
  --teal-wash: #E7F4F2;
  --dusk: #1C4D5F;
  --dusk-hover: #276275;
  --display: "IBM Plex Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --ui: "IBM Plex Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --space-xsmall: 4px;
  --space-small: 8px;
  --space-medium: 16px;
  --space-large: 32px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ui);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); }
a:hover { color: var(--teal-mid); }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--space-large);
  overflow: visible;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-medium);
  margin-bottom: var(--space-large);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-small);
  text-decoration: none;
  color: var(--ink);
}
.brand img { width: 28px; height: 28px; display: block; }
.brand span {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.nav {
  display: flex;
  gap: var(--space-medium);
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
}
.nav .context-combo { min-width: 0; max-width: 16em; }
.nav .context-combo .combo { max-width: 16em; }
.nav .context-combo .combo-btn > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.combo-sep {
  border-top: 1px solid var(--rule);
  margin-top: var(--space-xsmall);
  padding-top: var(--space-xsmall);
}
.nav a, .nav button.link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
  font-family: var(--ui);
}
.nav a:hover, .nav button.link:hover { color: var(--teal); }
.nav a.btn {
  padding: var(--space-small) var(--space-medium);
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
}
.nav a.btn strong {
  font-weight: 600;
}
.nav a.btn .nav-mail {
  font-weight: 400;
  color: var(--muted);
}
.nav a.btn:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: #fff;
}
.nav a.btn:hover .nav-mail { color: var(--ink-soft); }

h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.lead {
  margin: var(--space-medium) 0 0;
  max-width: 28em;
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink-soft);
}
.lead strong {
  color: var(--ink);
  font-weight: 600;
}
.quiet {
  margin-top: var(--space-large);
  font-size: 14px;
  color: var(--muted);
}

.hero { margin: var(--space-large) 0 var(--space-medium); }
.hero h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.03em;
}
.kicker {
  margin: 0 0 var(--space-small);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}
.dash-admin { scroll-margin-top: var(--space-medium); }
.footer-note {
  margin-top: var(--space-large);
  color: var(--muted);
  font-size: 14px;
}
.sign-out { margin-top: var(--space-medium); }

.dash {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: var(--space-large);
  align-items: start;
  margin-top: 0;
}
.dash-menu-btn,
.dash-menu-scrim { display: none; }
.dash-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-xsmall);
  position: sticky;
  top: var(--space-medium);
}
.dash-nav a {
  display: block;
  padding: var(--space-small) var(--space-medium);
  border-radius: 10px;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}
.dash-nav a:hover { color: var(--teal); background: var(--teal-wash); }
.dash-nav a.is-active {
  background: var(--teal-wash);
  color: var(--teal);
}
.dash-nav .sign-out { margin-top: var(--space-medium); }
.dash-main { display: grid; gap: var(--space-medium); }
.dash-main .ink-card + .ink-card { margin-top: 0; }
.dash-section { display: grid; gap: var(--space-medium); }
.dash-ready .dash-section { display: none; }
.dash-ready .dash-section.is-active { display: grid; }
.connector-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-medium);
}
.connector-cards > .ink-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.connector-cards .row-actions {
  margin-top: auto;
  padding-top: var(--space-medium);
}

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: var(--space-xsmall) var(--space-small);
  border-radius: 999px;
  background: var(--teal-wash);
  color: var(--teal);
}
.badge.paused {
  background: #fde8e4;
  color: #7f1d1d;
}

.entity-pick { display: grid; gap: var(--space-small); }
.entity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 10px;
  max-height: 220px;
  overflow: auto;
  background: #fff;
}
.entity-item {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: var(--space-small);
  align-items: center;
  padding: var(--space-small);
  border-bottom: 1px solid var(--rule);
  margin: 0;
  font-weight: 400;
  color: var(--ink);
  cursor: pointer;
}
.entity-item:last-child { border-bottom: 0; }
.entity-item .kind {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
}
.entity-item strong { font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.privilege {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-medium);
  align-items: center;
}
.privilege legend {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  padding: 0;
  margin: 0 var(--space-small) 0 0;
}
.privilege label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-small);
  color: var(--ink);
  font-weight: 400;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: var(--space-small);
  margin-top: var(--space-medium);
}
.service-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-small);
  min-height: 108px;
  padding: var(--space-medium) var(--space-small);
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
}
a.service-tile:hover { color: var(--ink); }
.service-tile img {
  display: block;
  width: 36px;
  height: 36px;
  margin: 0 auto;
  object-fit: contain;
}
.service-tile:hover { border-color: var(--ink); background: var(--paper); }
.service-tile.is-selected {
  border-color: var(--teal);
  background: var(--teal-wash);
}
.service-tile.coming-soon {
  cursor: default;
  opacity: 0.72;
}
.service-tile.coming-soon:hover { border-color: var(--rule); background: #fff; }
.service-tile .badge {
  position: absolute;
  top: var(--space-xsmall);
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 2px 6px;
  font-size: 9px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  pointer-events: none;
}
.selected-service {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
}
.connector-head {
  display: flex;
  gap: var(--space-medium);
  align-items: flex-start;
}
.connector-head h2 { margin: 0 0 var(--space-xsmall); }
.connector-head p { margin: 0; }
a.connector-card-link {
  display: flex;
  gap: var(--space-medium);
  align-items: flex-start;
  min-width: 0;
  flex: 1;
  text-decoration: none;
  color: inherit;
}
a.connector-card-link:hover { color: inherit; }
a.connector-card-link:hover h2 { color: var(--teal); }
.ink-card .access-faces {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: var(--space-small) 0 0;
  padding: 0;
  flex: none;
}
.access-faces li { margin: 0; padding: 0; }
.access-faces a { display: block; line-height: 0; }
.access-faces .avatar {
  width: 24px;
  height: 24px;
  box-shadow: 0 0 0 2px #fff;
  margin-left: -6px;
}
.access-faces li:first-child .avatar { margin-left: 0; }
.service-mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex: none;
}
.service-mark.sm { width: 22px; height: 22px; }

.ink-card .people-list, .ink-card .access-list, .ink-card .entity-list {
  list-style: none;
  margin: var(--space-medium) 0 0;
  padding: 0;
}
.people-list li, .access-list li { margin: 0; padding: 0; }
.person-row, .access-row {
  display: flex;
  align-items: center;
  gap: var(--space-medium);
  padding: var(--space-small) var(--space-xsmall);
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
  background: none;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.person-row:hover, .access-row a:hover { color: var(--teal); }
.person-row-link {
  display: flex;
  align-items: center;
  gap: var(--space-medium);
  min-width: 0;
  flex: 1;
  text-decoration: none;
  color: inherit;
}
.person-row-link:hover { color: var(--teal); }
.person-row .member-role {
  margin-left: auto;
  flex: none;
  max-width: 11em;
}
.person-row strong, .access-row strong { display: block; }
.person-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.person-row .muted, .person-email { display: block; font-size: 13px; }
.person-meta .date-badge { margin-top: 2px; }
.connector-head > div > .date-badge { margin-top: var(--space-small); }
.date-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xsmall);
  margin-top: var(--space-small);
}
.date-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 3px 8px 3px 4px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-soft);
  line-height: 1.2;
  white-space: nowrap;
}
.date-badge-label {
  padding: 2px 6px;
  border-radius: 999px;
  background: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--teal);
}
.date-badge .when {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}
.date-badge .when-day { color: var(--ink-soft); }
.date-badge .when-hm {
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--faint);
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: var(--paper-deep);
}
.avatar.sm { width: 24px; height: 24px; }
.avatar.lg { width: 56px; height: 56px; }
.avatar.letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  color: var(--teal);
  background: var(--teal-wash);
  text-transform: uppercase;
}
.avatar.letter.sm { font-size: 11px; }
.avatar-edit {
  display: inline-flex;
  position: relative;
  cursor: pointer;
  flex: none;
  border-radius: 50%;
}
.avatar-edit:hover .avatar { opacity: 0.82; }
.avatar-link {
  display: inline-flex;
  flex: none;
  border-radius: 50%;
  line-height: 0;
}
.avatar-link:hover .avatar { opacity: 0.82; }
.avatar-pen {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 0 0 2px #fff;
  pointer-events: none;
}
.avatar-pen svg { display: block; }
.access-row select { margin-left: auto; max-width: 160px; }
.inline-picker { position: relative; margin-top: var(--space-medium); }
.inline-picker input[type="search"] { width: 100%; }
.picker-results {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  margin: var(--space-xsmall) 0 0;
  max-height: 240px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.08);
}

.ink-card .chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-small);
  list-style: none;
  margin: var(--space-small) 0 0;
  padding: 0;
}
.chip-list li { margin: 0; padding: 0; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-small);
  max-width: 100%;
  padding: var(--space-xsmall) var(--space-xsmall) var(--space-xsmall) var(--space-small);
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--teal-wash);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
}
.chip a {
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chip a:hover { color: var(--teal); }
.chip .service-mark.sm, .chip .avatar.sm {
  width: 18px;
  height: 18px;
}
.chip .via {
  font-weight: 400;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.chip-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.chip-x:hover {
  background: #fff;
  color: #B91C1C;
}

.home-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-medium);
}
.home-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-small);
  padding: var(--space-medium);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
}
.home-card:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.home-card .way-label { margin: 0; }
.home-card strong {
  font-size: 28px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.home-card p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.home-card-marks {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xsmall);
  align-items: center;
}
.nested-frame {
  margin-top: var(--space-medium);
  padding: var(--space-medium);
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--paper);
}
.nested-frame[hidden] { display: none; }
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-small);
  margin-top: var(--space-medium);
}
.spaced-top { margin-top: var(--space-medium); }

@media (max-width: 720px) {
  html, body { overflow-x: hidden; }
  .wrap {
    padding: var(--space-medium);
    overflow-x: hidden;
  }
  .top {
    flex-wrap: nowrap;
    gap: var(--space-small);
    margin-bottom: var(--space-medium);
    min-width: 0;
  }
  .nav {
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: var(--space-small);
    min-width: 0;
    flex: 1;
  }
  .nav .context-combo {
    flex: 1 1 0;
    min-width: 0;
    max-width: 38vw;
  }
  .nav .context-combo .combo { max-width: 100%; }
  .nav .nav-mail {
    display: inline;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
  }
  .nav a.btn {
    min-width: 0;
    max-width: 42vw;
    overflow: hidden;
    white-space: nowrap;
  }
  .nav a.btn strong { display: none; }
  .page-dashboard .nav-dash,
  .page-person .nav-dash,
  .page-group .nav-dash { display: none; }

  .dash {
    grid-template-columns: 1fr;
    gap: var(--space-medium);
    min-width: 0;
  }
  .connector-cards { grid-template-columns: 1fr; }
  .dash-sidebar {
    height: 0;
    min-height: 0;
    margin: 0;
    overflow: visible;
  }
  .dash-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 32;
    width: 40px;
    height: 40px;
    flex: none;
    margin: 0;
    padding: 0;
    border: 1px solid var(--rule);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
  }
  .dash-menu-icon,
  .dash-menu-icon::before,
  .dash-menu-icon::after {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    border-radius: 1px;
  }
  .dash-menu-icon { position: relative; }
  .dash-menu-icon::before,
  .dash-menu-icon::after {
    content: "";
    position: absolute;
    left: 0;
  }
  .dash-menu-icon::before { top: -6px; }
  .dash-menu-icon::after { top: 6px; }
  body.is-menu-open .dash-menu-icon,
  .dash.is-menu-open .dash-menu-icon { background: transparent; }
  body.is-menu-open .dash-menu-icon::before,
  .dash.is-menu-open .dash-menu-icon::before { top: 0; transform: rotate(45deg); }
  body.is-menu-open .dash-menu-icon::after,
  .dash.is-menu-open .dash-menu-icon::after { top: 0; transform: rotate(-45deg); }
  .dash-menu-scrim {
    display: none;
    position: fixed;
    z-index: 30;
    inset: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(17, 17, 17, 0.4);
    cursor: pointer;
  }
  body.is-menu-open .dash-menu-scrim,
  .dash.is-menu-open .dash-menu-scrim { display: block; }
  .dash-nav {
    display: none;
    position: fixed;
    z-index: 31;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(280px, 86vw);
    margin: 0;
    padding: calc(var(--space-large) + 12px) var(--space-medium) var(--space-medium);
    overflow: auto;
    flex-direction: column;
    flex-wrap: nowrap;
    background: #fff;
    box-shadow: -12px 0 32px rgba(17, 17, 17, 0.12);
  }
  body.is-menu-open .dash-nav,
  .dash.is-menu-open .dash-nav {
    display: flex;
  }
  .dash-nav .sign-out { margin-top: var(--space-medium); }
  .dash-nav .sign-out .btn { width: 100%; }
  body.dash-menu-lock { overflow: hidden; }
  .dash-main { min-width: 0; }

  .landing { overflow: visible; }
  .landing-hero { margin-top: var(--space-medium); }
  .landing .houston-diagram {
    margin: var(--space-small) auto 0;
    width: 100%;
  }
  .houston-stage {
    height: clamp(360px, 50vw, 480px);
  }
  .houston-inks { opacity: 0; }
  .houston-diagram.is-placed .houston-inks { opacity: 1; }

  table {
    overflow-x: auto;
    max-width: 100%;
  }
  th, td { overflow-wrap: anywhere; }
  .skill-block pre, .copy-box {
    overflow-x: auto;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .home-cards { grid-template-columns: 1fr 1fr; }
  .auth-name-row { grid-template-columns: minmax(0, 1fr); }
  .grid { grid-template-columns: 1fr; }
}

.landing {
  position: relative;
}
.landing-hero {
  position: relative;
  z-index: 1;
  margin: var(--space-large) auto 0;
  text-align: center;
  max-width: 720px;
}
.landing-hero h1 { letter-spacing: -0.045em; }
.landing-hero .lead {
  margin-left: auto;
  margin-right: auto;
}
.landing-hero .actions { justify-content: center; }
.landing-hero .quiet { margin-top: var(--space-medium); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-medium);
  margin-top: var(--space-large);
}
.stack { display: grid; gap: var(--space-medium); margin-top: var(--space-large); }

.ink-card {
  position: relative;
  padding: var(--space-medium);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 12px;
  min-width: 0;
  max-width: 100%;
}
.ink-card h2 {
  margin: 0 0 var(--space-small);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.03em;
}
.ink-card p, .ink-card li, .ink-card label, .muted {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.45;
}
.ink-card ol, .ink-card ul:not(.combo-menu) { margin: var(--space-small) 0 0; padding-left: 1.2em; }
.ink-card code, code {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  background: var(--paper-deep);
  padding: var(--space-xsmall);
  border-radius: 4px;
}

.actions { display: flex; flex-wrap: wrap; gap: var(--space-small); margin-top: var(--space-medium); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-small);
  padding: var(--space-small) var(--space-medium);
  border: 1px solid var(--dusk);
  border-radius: 999px;
  background: var(--dusk);
  color: #fff;
  font-family: var(--ui);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--dusk-hover); border-color: var(--dusk-hover); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn.ghost:hover { background: var(--paper-deep); color: var(--ink); }
.btn.danger {
  background: #B91C1C;
  border-color: #B91C1C;
  color: #fff;
}
.btn.danger:hover {
  background: #991B1B;
  border-color: #991B1B;
  color: #fff;
}
.btn.google {
  width: 100%;
  background: #fff;
  color: var(--ink);
  border-color: var(--rule);
}
.btn.google:hover { background: var(--paper); color: var(--ink); }
.btn.dropbox {
  width: 100%;
  background: #0061FF;
  border-color: #0061FF;
  color: #fff;
}
.btn.dropbox:hover { background: #0052d9; border-color: #0052d9; color: #fff; }
.btn.wide { width: 100%; }

.gmark {
  width: 18px;
  height: 18px;
}

form.stack-form { display: grid; gap: var(--space-small); margin-top: 0; min-width: 0; width: 100%; }
.ink-card > form.stack-form { margin-top: var(--space-medium); }
label { display: grid; gap: var(--space-xsmall); font-size: 13px; font-weight: 500; color: var(--muted); min-width: 0; }
input, textarea {
  font: 15px var(--ui);
  padding: var(--space-small) var(--space-medium);
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.combo {
  position: relative;
  max-width: 28em;
}
.combo > select { display: none; }
.combo-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-small);
  width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: var(--space-small) var(--space-medium);
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-family: var(--ui);
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.combo-btn:hover { border-color: var(--ink); }
.combo-btn[aria-expanded="true"] { border-color: var(--ink); }
.combo-btn::after {
  content: "";
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px);
  flex: none;
}
.combo-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex: none;
}
.combo-icon.round {
  border-radius: 50%;
  object-fit: cover;
  background: var(--paper-deep);
}
.combo-menu {
  position: absolute;
  z-index: 8;
  left: 0;
  right: 0;
  margin: var(--space-xsmall) 0 0;
  padding: var(--space-xsmall);
  list-style: none;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.08);
}
.combo-menu[hidden] { display: none; }
.combo-option {
  display: flex;
  align-items: center;
  gap: var(--space-small);
  width: 100%;
  padding: var(--space-small) var(--space-medium);
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--ui);
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.combo-option:hover, .combo-option.is-selected { background: var(--teal-wash); }
.nav .context-combo .combo-menu {
  right: auto;
  width: max-content;
  min-width: 100%;
  max-width: min(24em, calc(100vw - 2rem));
}
.nav .context-combo .combo-btn { font-weight: 600; }
.nav .context-combo .combo-option { font-weight: 400; white-space: nowrap; }
.nav .context-combo .combo-option.is-selected { font-weight: 600; }
.combo-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal-wash);
  color: var(--teal);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  flex: none;
}
.flash {
  padding: var(--space-small) var(--space-medium);
  color: #7f1d1d;
  background: #fde8e4;
  border-radius: 10px;
}
.notice {
  padding: var(--space-small) var(--space-medium);
  color: #115e59;
  background: var(--teal-wash);
  border-radius: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: var(--space-small);
}
th, td {
  text-align: left;
  padding: var(--space-small) var(--space-xsmall);
  border-top: 1px solid var(--rule);
  vertical-align: top;
}
th { color: var(--muted); font-weight: 500; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.id { font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace; font-size: 12px; color: var(--muted); }

.skill-block pre, .copy-box {
  overflow: auto;
  background: var(--paper-deep);
  padding: var(--space-medium);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  margin: var(--space-small) 0 0;
}
.install-ways { display: grid; gap: var(--space-large); margin-top: var(--space-small); }
.install-path + .install-path {
  padding-top: var(--space-large);
  border-top: 1px solid var(--rule);
}
.mcp-paste-steps { margin-top: var(--space-medium); }
.install-advanced {
  margin-top: var(--space-large);
  padding-top: var(--space-medium);
  border-top: 1px solid var(--rule);
}
.install-advanced > summary {
  cursor: pointer;
  list-style: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}
.install-advanced > summary::-webkit-details-marker { display: none; }
.install-advanced > summary::before {
  content: "▸ ";
}
.install-advanced[open] > summary::before {
  content: "▾ ";
}
.install-advanced-body { display: grid; gap: var(--space-medium); margin-top: var(--space-medium); }
.way-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 var(--space-small);
}
.agent-hint { margin-top: var(--space-small); color: var(--ink-soft); font-size: 15px; line-height: 1.45; }
.narrow { width: 100%; max-width: 400px; margin: var(--space-large) auto; min-width: 0; }
.auth-card { text-align: left; min-width: 0; }
.auth-card h1 { font-size: 28px; letter-spacing: -0.03em; }
.auth-toggle {
  display: flex;
  width: 100%;
  margin-bottom: var(--space-small);
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
}
.auth-toggle.wide { width: 100%; }
.auth-toggle button {
  flex: 1 1 50%;
  min-width: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: var(--ink-soft);
  font-family: var(--ui);
  font-size: 15px;
  font-weight: 600;
  padding: var(--space-small) var(--space-medium);
  cursor: pointer;
}
.auth-toggle button + button { border-left: 1px solid var(--rule); }
.auth-toggle button[aria-pressed="true"] {
  background: var(--teal);
  color: #fff;
}
.auth-name-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-small);
  min-width: 0;
  width: 100%;
}
.auth-stack { display: flex; flex-direction: column; gap: var(--space-medium); }
[data-continue-auth][data-mode="signin"] [data-signup-only],
[data-continue-auth][data-mode="signin"] [data-auth-form="signup"] { display: none; }
[data-continue-auth][data-mode="signup"] [data-auth-form="signin"] { display: none; }
.divider {
  display: flex;
  align-items: center;
  gap: var(--space-medium);
  margin: var(--space-medium) 0;
  color: var(--faint);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* In flow under the hero. A small pull-up lets ray tips sit behind type. */
.landing .houston-diagram {
  position: relative;
  z-index: 0;
  width: min(1100px, 100%);
  margin: clamp(-72px, -6vw, -28px) auto 0;
  pointer-events: none;
}
.houston-stage {
  --houston-x: 50%;
  --houston-y: 50%;
  --houston-s: 108px;
  position: relative;
  width: 100%;
  height: clamp(340px, 38vw + 160px, 520px);
  overflow: visible;
}
.houston-rays {
  position: absolute;
  left: var(--houston-x);
  top: var(--houston-y);
  width: min(72%, 640px);
  height: auto;
  aspect-ratio: 1;
  display: block;
  overflow: visible;
  z-index: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.houston-inks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  z-index: 1;
  pointer-events: none;
}
.houston-inks path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  opacity: 0.5;
}
.houston-inks path.is-live {
  opacity: 1;
}
.houston-inks .ink-agent {
  stroke: #0F766E;
  stroke-width: 1.7px;
  stroke-dasharray: 5 9;
}
.houston-inks .ink-source {
  stroke: #0D9488;
  stroke-width: 1.15px;
  stroke-dasharray: 5 8;
}
.houston-payload {
  pointer-events: none;
}
.houston-payload .payload-well {
  fill: #fff;
  stroke: #D4D4CE;
  stroke-width: 1.6;
}
.houston-payload.is-pack .payload-well {
  stroke: #0F766E;
  stroke-width: 1.8;
}
.houston-payload .payload-dot {
  stroke: #fff;
  stroke-width: 0.7;
}
.houston-bubble.is-active {
  border-color: var(--teal-mid);
  box-shadow: 0 0 0 3px var(--teal-wash);
}
.houston-core.is-busy {
  filter: drop-shadow(0 0 16px rgba(15, 118, 110, 0.18));
}

@property --pulse {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}
.houston-core {
  position: absolute;
  left: var(--houston-x);
  top: var(--houston-y);
  width: var(--houston-s);
  height: var(--houston-s);
  width: calc(var(--houston-s) + var(--pulse, 0px) * 2);
  height: calc(var(--houston-s) + var(--pulse, 0px) * 2);
  transform: translate(-50%, -50%);
  z-index: 3;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1.25px solid #D4D4CE;
  border-radius: 48% 52% 47% 53% / 51% 49% 54% 46%;
  filter: drop-shadow(0 0 14px rgba(15, 118, 110, 0.12));
}
.houston-core .houston-mark {
  width: 72%;
  height: 72%;
  display: block;
}
.houston-bubble {
  --x: 50%;
  --y: 50%;
  --s: 64px;
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  width: calc(var(--s) + var(--pulse, 0px) * 2);
  height: calc(var(--s) + var(--pulse, 0px) * 2);
  transform: translate(-50%, -50%);
  z-index: 2;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1.25px solid #D4D4CE;
  border-radius: 46% 54% 49% 51% / 52% 48% 54% 46%;
}
.houston-bubble[data-mark="grok"] { --x: 9.4%; --y: 36.9%; --s: 73px; border-radius: 47% 53% 48% 52% / 51% 49% 53% 47%; }
.houston-bubble[data-mark="claude"] { --x: 31.2%; --y: 43.8%; --s: 73px; border-radius: 52% 48% 54% 46% / 47% 53% 49% 51%; }
.houston-bubble[data-mark="gemini"] { --x: 6.9%; --y: 50.9%; --s: 73px; border-radius: 49% 51% 46% 54% / 53% 47% 52% 48%; }
.houston-bubble[data-mark="copilot"] { --x: 21.4%; --y: 52.3%; --s: 73px; border-radius: 54% 46% 51% 49% / 48% 52% 47% 53%; }
.houston-bubble[data-mark="codex"] { --x: 11.2%; --y: 62.7%; --s: 73px; border-radius: 46% 54% 52% 48% / 50% 50% 54% 46%; }
.houston-bubble[data-mark="cursor"] { --x: 30.6%; --y: 60.9%; --s: 72px; border-radius: 51% 49% 47% 53% / 54% 46% 50% 50%; }
.houston-bubble[data-mark="gmail"] { --x: 64.1%; --y: 37.6%; --s: 69px; border-radius: 48% 52% 53% 47% / 49% 51% 46% 54%; }
.houston-bubble[data-mark="slack"] { --x: 76.9%; --y: 36.3%; --s: 68px; border-radius: 53% 47% 49% 51% / 46% 54% 52% 48%; }
.houston-bubble[data-mark="stripe"] { --x: 89.5%; --y: 38.3%; --s: 67px; border-radius: 47% 53% 51% 49% / 52% 48% 54% 46%; }
.houston-bubble[data-mark="postgres"] { --x: 67.8%; --y: 49.4%; --s: 69px; border-radius: 50% 50% 46% 54% / 48% 52% 49% 51%; }
.houston-bubble[data-mark="clickhouse"] { --x: 79.1%; --y: 49.5%; --s: 67px; border-radius: 54% 46% 48% 52% / 51% 49% 47% 53%; }
.houston-bubble[data-mark="zapier"] { --x: 91.9%; --y: 51.1%; --s: 66px; border-radius: 49% 51% 54% 46% / 53% 47% 50% 50%; }
.houston-bubble[data-mark="salesforce"] { --x: 64.8%; --y: 61.9%; --s: 68px; border-radius: 46% 54% 50% 50% / 47% 53% 51% 49%; }
.houston-bubble[data-mark="dropbox"] { --x: 77.8%; --y: 63.1%; --s: 67px; border-radius: 52% 48% 47% 53% / 54% 46% 49% 51%; }
.houston-bubble[data-mark="datadog"] { --x: 89.2%; --y: 63.6%; --s: 66px; border-radius: 48% 52% 54% 46% / 50% 50% 46% 54%; }
.houston-bubble img {
  display: block;
  width: 58%;
  height: 58%;
  object-fit: contain;
}
.houston-diagram .float {
  animation: float 7.5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, calc(-50% - 5px)); }
}

.ops { display: grid; gap: var(--space-large); }
.telemetry-graphs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-medium);
  margin: var(--space-medium) 0;
}
.graph-card {
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: var(--space-medium);
  background: #fff;
}
.graph-card h3 {
  margin: 0 0 var(--space-small);
  font-size: 14px;
  font-weight: 600;
}
.telemetry-svg { width: 100%; height: auto; display: block; }
.graph-card[data-kind="line"] .telemetry-svg { cursor: crosshair; }
.graph-bar { fill: var(--teal); }
.graph-line {
  fill: none;
  stroke: var(--teal);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.graph-grid { stroke: var(--rule); stroke-width: 1; }
.graph-ylabel {
  fill: var(--muted);
  font-size: 10px;
  font-family: var(--ui);
  font-variant-numeric: tabular-nums;
}
.graph-point { fill: none; pointer-events: none; }
.graph-cursor { display: none; }
.graph-card.is-scrubbing .graph-cursor { display: block; }
.graph-cursor-x { stroke: var(--dusk); stroke-width: 1; }
.graph-cursor-dot { fill: var(--teal); stroke: #fff; stroke-width: 1.5; }
.graph-cursor-label {
  fill: var(--ink);
  font-size: 11px;
  font-weight: 600;
  font-family: var(--ui);
  font-variant-numeric: tabular-nums;
}
.graph-legend {
  list-style: none;
  margin: var(--space-small) 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}
.graph-legend li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-small);
}
.activity-table { width: 100%; }
.activity-table code { font-size: 12px; }
.activity-pager {
  display: flex;
  justify-content: space-between;
  gap: var(--space-medium);
  margin-top: var(--space-medium);
  font-size: 14px;
}
.activity-pager a { text-decoration: none; }
.window-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-small);
  margin: var(--space-small) 0 var(--space-medium);
}
.window-filter a {
  padding: 2px 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
}
.window-filter a.is-active {
  color: var(--ink);
  border-color: var(--ink);
  font-weight: 600;
}
.trace-session {
  margin-top: var(--space-medium);
  padding-top: var(--space-medium);
  border-top: 1px solid var(--rule);
}
.trace-session .copy-box {
  max-height: 28em;
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 12px;
}
.trace-share .copy-box { max-height: none; }
.trace-call { margin-top: var(--space-small); }
.trace-call summary { cursor: pointer; }
.page-operator .brand span::after,
.page-operator-run .brand span::after,
.page-operator-login .brand span::after,
.page-forbidden .brand span::after {
  content: " admin";
  color: var(--muted);
  font-weight: 500;
}

@media (max-width: 560px) {
  .houston-stage { height: clamp(400px, 118vw, 540px); }
  .houston-bubble[data-mark="grok"] { --x: 20%; --y: 15.3%; --s: 54px; }
  .houston-bubble[data-mark="claude"] { --x: 41.1%; --y: 13.4%; --s: 54px; }
  .houston-bubble[data-mark="gemini"] { --x: 58.7%; --y: 15.1%; --s: 54px; }
  .houston-bubble[data-mark="copilot"] { --x: 80%; --y: 14.5%; --s: 54px; }
  .houston-bubble[data-mark="codex"] { --x: 31.9%; --y: 24.5%; --s: 54px; }
  .houston-bubble[data-mark="cursor"] { --x: 69.8%; --y: 24.9%; --s: 53px; }
  .houston-bubble[data-mark="gmail"] { --x: 15.6%; --y: 73.5%; --s: 51px; }
  .houston-bubble[data-mark="slack"] { --x: 37.7%; --y: 73.1%; --s: 50px; }
  .houston-bubble[data-mark="stripe"] { --x: 61%; --y: 74.7%; --s: 50px; }
  .houston-bubble[data-mark="postgres"] { --x: 82.4%; --y: 72.9%; --s: 51px; }
  .houston-bubble[data-mark="clickhouse"] { --x: 26.5%; --y: 82.4%; --s: 50px; }
  .houston-bubble[data-mark="zapier"] { --x: 48.6%; --y: 81.8%; --s: 49px; }
  .houston-bubble[data-mark="salesforce"] { --x: 73.9%; --y: 83.5%; --s: 50px; }
  .houston-bubble[data-mark="dropbox"] { --x: 37.9%; --y: 90.6%; --s: 50px; }
  .houston-bubble[data-mark="datadog"] { --x: 60.5%; --y: 89.4%; --s: 49px; }
}
