@import url("./ui-tokens.css");
@import url("./library.css");
@import url("./billing.css");
:root {
  font-family: var(--ui-font);
  color: var(--ui-text);
  background: var(--ui-bg);
  font-size: var(--ui-type-body);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  --ink: var(--ui-text);
  --muted: var(--ui-muted);
  --line: var(--ui-border);
  --blue: var(--ui-brand);
  --action: var(--ui-primary);
  --blue-soft: var(--ui-selected);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
  background: none;
  border: 0;
}
button:disabled,
input:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
a {
  color: inherit;
  text-decoration: none;
}
p {
  line-height: 1.55;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.025em;
}
h1 {
  font-size: var(--ui-type-title);
  line-height: 1.3;
}
h2 {
  font-size: var(--ui-type-section);
  line-height: 1.4;
}
h3 {
  font-size: 13px;
  line-height: 1.4;
}
small {
  font-size: 12px;
}
svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  vertical-align: middle;
}
button,
a,
summary,
input,
textarea,
select {
  outline-offset: 2px;
}
:focus-visible {
  outline: 2px solid var(--ui-primary);
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--ui-control);
  padding: 5px 10px;
  border: 1px solid transparent;
  border-radius: var(--ui-radius);
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}
.btn:hover {
  background: var(--ui-hover);
}
.btn.primary {
  background: var(--ui-primary);
  border-color: var(--ui-primary);
  color: #fff;
}
.btn.primary:hover {
  background: var(--ui-primary-hover);
  border-color: var(--ui-primary-hover);
}
.btn.line {
  border-color: var(--ui-border-strong);
  background: #fff;
}
.btn.line:hover {
  background: var(--ui-subtle);
}
.btn.quiet {
  color: var(--ui-muted);
}
.btn.small {
  min-height: 28px;
  padding: 3px 8px;
  font-size: 12px;
}
.btn.large {
  min-height: 36px;
  padding: 7px 12px;
}
.btn.danger {
  color: var(--ui-danger-text);
  background: var(--ui-danger-bg);
}
.btn.green {
  color: var(--ui-success-text);
  background: var(--ui-success-bg);
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 5px;
  color: var(--ui-muted);
}
.icon-btn:hover {
  background: var(--ui-hover);
  color: var(--ui-text);
}
.text-link {
  color: var(--ui-primary);
  font-weight: 500;
}
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.between {
  justify-content: space-between;
}
.spacer {
  flex: 1;
}
.muted,
.hint,
.subtext {
  color: var(--ui-muted);
}
.hint,
.subtext {
  font-size: 12px;
  line-height: 1.5;
}
.subtext {
  margin-top: 2px;
}
.eyebrow,
.preview-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ui-muted);
  letter-spacing: 0.045em;
}
.divider {
  height: 1px;
  background: var(--ui-border);
  margin: 16px 0;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 500;
}
input,
select,
textarea {
  border: 1px solid var(--ui-border-strong);
  border-radius: var(--ui-radius);
  background: #fff;
  color: var(--ui-text);
}
input:not([type="checkbox"]):not([type="color"]),
select {
  min-height: 32px;
  padding: 5px 9px;
}
textarea {
  resize: vertical;
  min-height: 76px;
  padding: 8px 9px;
  line-height: 1.5;
}
input::placeholder,
textarea::placeholder {
  color: var(--ui-muted);
}
label > input:not([type="checkbox"]),
label > select,
label > textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
}
input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--ui-primary);
}
input[type="color"] {
  width: 32px;
  height: 32px;
  padding: 3px;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--ui-primary);
}
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.error-note {
  margin: 12px 0;
  padding: 8px 10px;
  color: var(--ui-danger-text);
  background: var(--ui-danger-bg);
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.5;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 6px;
  width: fit-content;
  font-size: 11px;
  line-height: 18px;
  color: #5f6368;
  background: #f1f3f4;
  border-radius: 4px;
  white-space: nowrap;
  font-weight: 500;
}
.badge.active {
  color: #17643b;
  background: #e7f2eb;
}
.badge.paused {
  color: #855915;
  background: #fbf1de;
}
.badge.waiting {
  color: #0063cc;
  background: #eaf3ff;
}
.badge.ended {
  color: #52705d;
  background: #eef4f0;
}
.avatar {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f1f3f4;
  color: #5f6368;
  flex-shrink: 0;
  font-size: 10px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ui-brand);
  font-size: 21px;
  line-height: 28px;
  font-weight: 650;
  letter-spacing: -0.7px;
}
.brand-symbol,
.brand-symbol img {
  display: block;
  width: 24px;
  height: 24px;
}
/* Navigation is a fixed, compact rail. Content has one 24px gutter. */
.shell {
  display: flex;
  min-height: 100dvh;
}
.sidebar {
  width: 212px;
  flex-shrink: 0;
  height: 100dvh;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  padding: 12px 8px 8px;
  border-right: 1px solid var(--ui-border);
  background: #fff;
  z-index: 30;
}
.sidebar > .wordmark {
  height: 32px;
  margin: 0 4px 8px;
  align-self: flex-start;
}
.workspace-card {
  margin-bottom: 12px;
  border: 1px solid var(--ui-border);
  border-radius: 8px;
}
.workspace-switch {
  position: relative;
}
summary {
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
.workspace-switch > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 10px 3px;
  font-size: 13px;
  font-weight: 500;
}
.workspace-name {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.workspace-switch > summary > svg {
  width: 12px;
  height: 12px;
  color: var(--ui-muted);
}
.workspace-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 3px 10px 9px;
  color: var(--ui-muted);
  font-size: 11px;
}
.plan-chip {
  border: 1px solid var(--ui-border);
  border-radius: 4px;
  padding: 0 4px;
  font-size: 10px;
  line-height: 17px;
  color: var(--ui-text);
  background: var(--ui-subtle);
}
.meta-divider {
  width: 1px;
  height: 12px;
  background: var(--ui-border);
}
.workspace-invite {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  border-top: 1px solid var(--ui-border);
  padding: 6px 10px;
  width: 100%;
  text-align: left;
  font-size: 12px;
  color: var(--ui-muted);
}
.workspace-invite:hover {
  color: var(--ui-primary);
  background: var(--ui-subtle);
}
.workspace-invite > svg {
  width: 14px;
  height: 14px;
}
.workspace-invite > svg:last-child {
  margin-left: auto;
  width: 12px;
}
.menu-divider {
  border-top: 1px solid var(--ui-border);
  margin: 4px 0;
}
.workspace-monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--ui-subtle);
  border: 1px solid var(--ui-border);
  border-radius: 4px;
  flex-shrink: 0;
  color: var(--ui-muted);
}
.workspace-monogram svg {
  width: 13px;
  height: 13px;
}
.workspace-menu,
.profile-popover {
  position: absolute;
  padding: 4px;
  border: 1px solid var(--ui-border);
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--ui-shadow-menu);
  z-index: 40;
}
.workspace-menu {
  top: calc(100% + 4px);
  left: 0;
  width: 240px;
}
.menu-caption {
  display: block;
  padding: 6px 8px;
  color: var(--ui-muted);
  font-size: 11px;
}
.workspace-menu button,
.profile-popover button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 12px;
  text-align: left;
}
.workspace-menu button.selected {
  background: var(--ui-selected);
  color: var(--ui-primary);
}
.workspace-menu button b {
  display: block;
  font-size: 12px;
  font-weight: 500;
}
.workspace-menu button small {
  display: block;
  font-size: 11px;
  color: var(--ui-muted);
  margin-top: 2px;
}
.workspace-menu button:hover,
.profile-popover button:hover {
  background: var(--ui-hover);
}
.workspace-menu button > span:nth-child(2) {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.workspace-navigation,
.sidebar-resources {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 32px;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 450;
  text-align: left;
  color: #5f6368;
}
.nav-button svg {
  width: 16px;
  height: 16px;
}
.nav-button:hover {
  background: var(--ui-subtle);
  color: var(--ui-text);
}
.nav-button.active {
  color: #0064cf;
  background: var(--ui-selected);
  font-weight: 500;
}
.sidebar-foot {
  margin-top: auto;
  padding-top: 16px;
}
.sidebar-resources {
  margin-bottom: 8px;
}
.sidebar-resources .nav-button {
  font-size: 13px;
}
.install-button {
  width: 100%;
  height: 32px;
}
.profile-menu {
  border-top: 1px solid var(--ui-border);
  padding-top: 8px;
  margin-top: 12px;
  position: relative;
}
.account-button {
  display: flex;
  min-height: 36px;
  align-items: center;
  padding: 5px 8px;
  gap: 8px;
  border-radius: 6px;
  font-size: 12px;
}
.account-button:hover,
.profile-menu[open] .account-button {
  background: var(--ui-subtle);
}
.profile-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: var(--ui-muted);
}
.profile-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-button > svg {
  width: 12px;
  height: 12px;
  color: var(--ui-muted);
}
.profile-popover {
  bottom: calc(100% + 4px);
  left: 0;
  width: 240px;
}
.profile-identity {
  padding: 8px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--ui-border);
}
.profile-identity b,
.profile-identity span {
  display: block;
  overflow-wrap: anywhere;
}
.profile-identity b {
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 3px;
}
.profile-identity span {
  font-size: 11px;
  color: var(--ui-muted);
}
.workspace-main {
  width: calc(100% - 212px);
  margin-left: 212px;
  min-width: 0;
}
.content {
  padding: 24px;
  width: 100%;
  max-width: 1168px;
  margin-inline: auto;
}
.mobile-topbar,
.mobile-scrim {
  display: none;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.page-heading h1 {
  font-size: 22px;
}
.page-heading p {
  font-size: 12px;
  color: var(--ui-muted);
  margin-top: 6px;
}
.tabs {
  display: flex;
  align-items: stretch;
  gap: 20px;
  min-height: 36px;
  border-bottom: 1px solid var(--ui-border);
  overflow-x: auto;
}
.tabs button {
  padding: 7px 0 8px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  font-size: 13px;
  color: var(--ui-muted);
  font-weight: 500;
}
.tabs button.active {
  border-color: var(--ui-primary);
  color: var(--ui-primary);
}
.tabs button:hover {
  color: var(--ui-text);
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
}
.search {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 260px;
  min-width: 0;
  height: 32px;
  color: var(--ui-muted);
}
.search input {
  width: 100%;
  min-width: 0;
  font-size: 12px;
  margin: 0;
  border: 0;
  background: transparent;
}
.search input:focus {
  outline-offset: 0;
}
.search svg {
  width: 14px;
  height: 14px;
}
#status-filter {
  min-width: 120px;
  font-size: 12px;
}
.session-grid {
  border-top: 1px solid var(--ui-border);
}
.session-list-head,
.session-card {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 150px 110px 80px 12px;
  gap: 16px;
  align-items: center;
  width: 100%;
  text-align: left;
}
.session-list-head {
  padding: 8px 12px;
  font-size: 11px;
  color: var(--ui-muted);
  border-bottom: 1px solid var(--ui-border);
}
.session-card {
  min-height: 60px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--ui-border);
}
.session-card:hover {
  background: var(--ui-subtle);
}
.session-row-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}
.session-row-title > span:last-child {
  min-width: 0;
}
.session-row-title h3 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
}
.session-row-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--ui-muted);
  background: var(--ui-subtle);
  border: 1px solid var(--ui-border);
  border-radius: 6px;
  flex-shrink: 0;
}
.session-row-meta {
  display: block;
  margin-top: 3px;
  color: var(--ui-muted);
  font-size: 11px;
}
.session-row-agent,
.session-row-date {
  color: var(--ui-muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.session-card > svg {
  color: var(--ui-muted);
  width: 12px;
  height: 12px;
}
.pagination {
  display: flex;
  justify-content: center;
  padding-top: 16px;
}
.empty {
  padding: 48px 16px;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}
.empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0 auto 12px;
  color: var(--ui-muted);
  background: var(--ui-subtle);
  border-radius: 6px;
}
.empty h2 {
  margin-bottom: 6px;
  font-size: 15px;
}
.empty p {
  color: var(--ui-muted);
  margin-bottom: 16px;
  font-size: 13px;
}
/* One form width, one row pattern across workspace settings. */
.settings-tabs {
  margin-bottom: 24px;
}
.settings-section {
  width: 100%;
}
.settings-section + .settings-section {
  margin-top: 24px;
}
.settings-section > h2 {
  margin-bottom: 6px;
}
.settings-section > p {
  color: var(--ui-muted);
  margin-bottom: 12px;
  font-size: 12px;
}
.setting-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 320px);
  gap: 24px;
  align-items: center;
  min-height: 72px;
  padding: 16px 0;
  border-bottom: 1px solid var(--ui-border);
}
.setting-row h3 {
  font-size: 13px;
  font-weight: 500;
}
.setting-row p {
  color: var(--ui-muted);
  font-size: 12px;
  margin-top: 4px;
  max-width: 480px;
}
.setting-row > :last-child {
  justify-self: end;
}
.setting-row .setting-control {
  width: 100%;
}
.setting-control input {
  width: 100%;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  margin: 12px 0 24px;
}
.workspace-id {
  font-size: 11px;
  overflow-wrap: anywhere;
  color: var(--ui-muted);
}
.settings-box {
  padding: 16px 0;
}
.settings-box h2,
.settings-box h3 {
  margin-bottom: 6px;
}
.settings-box p {
  color: var(--ui-muted);
  font-size: 12px;
  margin-bottom: 12px;
}
.settings-box label {
  max-width: 400px;
  margin-bottom: 16px;
}
.table-wrap {
  position: relative;
  overflow-x: auto;
  border-top: 1px solid var(--ui-border);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th {
  text-align: left;
  font-weight: 500;
  font-size: 11px;
  color: var(--ui-muted);
  padding: 8px 12px;
  white-space: nowrap;
}
td {
  padding: 12px;
  border-top: 1px solid var(--ui-border);
}
th:first-child,
td:first-child {
  padding-left: 0;
}
th:last-child,
td:last-child {
  text-align: right;
  padding-right: 0;
}
.table-empty {
  color: var(--ui-muted);
  font-size: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--ui-border);
}
.members-page {
  max-width: 1040px;
  margin-inline: auto;
}
.workspace-eyebrow {
  font-size: 12px;
  color: var(--ui-muted);
  margin-bottom: 4px;
}
.members-seat-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: var(--ui-muted);
  font-size: 12px;
  margin-bottom: 20px;
}
.member-tabs {
  margin-bottom: 16px;
}
.member-tabs button {
  display: flex;
  align-items: center;
  gap: 7px;
}
.member-tabs button span {
  font-size: 11px;
  background: var(--ui-subtle);
  border-radius: 4px;
  padding: 0 5px;
  line-height: 18px;
}
.members-group {
  border: 1px solid var(--ui-border);
  border-radius: 8px;
  overflow: hidden;
}
.members-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px;
}
.members-toolbar .search {
  flex: 1;
  max-width: 320px;
  min-width: 140px;
}
.members-toolbar select {
  width: auto;
  min-width: 112px;
}
.members-table th {
  background: var(--ui-subtle);
  font-size: 11px;
  font-weight: 500;
  color: var(--ui-muted);
  border-top: 1px solid var(--ui-border);
}
.members-table td,
.members-table th {
  padding: 12px;
  white-space: nowrap;
}
.members-table td {
  height: 64px;
}
.members-table tbody tr:last-child td {
  border-bottom: 0;
}
.member-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.member-identity small {
  color: var(--ui-muted);
  font-weight: 400;
  font-size: 11px;
}
.member-email {
  color: var(--ui-muted);
}
.member-status {
  display: inline-flex;
  font-size: 11px;
  background: var(--ui-subtle);
  border: 1px solid var(--ui-border);
  color: var(--ui-muted);
  padding: 1px 6px;
  border-radius: 4px;
}
.member-status.pending {
  color: #865c17;
  background: #fcf5e8;
  border-color: #f1e6cd;
}
.invitation-link-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.invitation-link-label svg {
  color: var(--ui-muted);
  width: 16px;
}
.people-empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--ui-muted);
}
.members-footnote {
  margin-top: 12px;
  font-size: 12px;
  color: var(--ui-muted);
}
.branding-layout {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}
.branding-form {
  margin-bottom: 32px;
}
.branding-form .section-heading p {
  color: var(--ui-muted);
  font-size: 12px;
  margin-top: 4px;
}
.branding-form .section-heading {
  margin-bottom: 12px;
}
.branding-form .setting-row {
  min-height: 64px;
}
.branding-form .setting-row > input {
  width: min(100%, 320px);
}
.branding-form .setting-row > label {
  margin: 0;
}
.branding-form .setting-row .checkbox-row {
  font-weight: 400;
}
.color-control {
  display: flex;
  align-items: center;
  gap: 8px;
}
.color-control input {
  width: 42px;
  height: 32px;
  padding: 3px;
}
.color-control span {
  font-size: 12px;
  font-weight: 400;
  color: var(--ui-muted);
}
.form-note {
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--ui-subtle);
  color: var(--ui-muted);
  font-size: 12px;
}
.preview-heading {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sample-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--ui-muted);
  border: 1px solid var(--ui-border);
  padding: 1px 5px;
  border-radius: 4px;
}
.preview-caption {
  color: var(--ui-muted);
  font-size: 12px;
  margin: 5px 0 16px;
}
docked-branding-preview {
  border: 1px solid var(--ui-border);
  border-radius: 8px;
  background: #fff;
}
/* Agent connections: remote MCP first; local keys stay in an explicit disclosure. */
.agent-choices,
.setup-agent-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 16px;
}
.agent-choices button,
.setup-agent-choices button {
  min-height: 30px;
  padding: 4px 9px;
  border-radius: 5px;
  color: var(--ui-muted);
  border: 1px solid transparent;
  font-size: 12px;
}
.agent-choices button.active,
.setup-agent-choices button.active {
  background: var(--ui-selected);
  color: #0064cf;
  border-color: #d7e8fc;
}
.setup-agent-choices button svg {
  width: 12px;
  height: 12px;
  margin-left: 4px;
}
.agent-choices button:hover,
.setup-agent-choices button:hover {
  background: var(--ui-subtle);
}
.remote-setup {
  padding: 16px 0;
  max-width: 720px;
}
.remote-setup h2 {
  margin-bottom: 8px;
}
.remote-setup p {
  font-size: 12px;
  color: var(--ui-muted);
  margin-bottom: 12px;
}
.endpoint-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.endpoint-row code {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid var(--ui-border);
  background: var(--ui-subtle);
  border-radius: 6px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.code-block {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 12px;
  border: 1px solid var(--ui-border);
  background: var(--ui-subtle);
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.7;
  margin: 10px 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.local-connection {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--ui-border);
}
.local-connection > summary {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
}
.local-connection > summary::before {
  content: "›";
  font-size: 18px;
  color: var(--ui-muted);
}
.local-connection[open] > summary::before {
  transform: rotate(90deg);
}
.local-connection > p {
  color: var(--ui-muted);
  font-size: 12px;
  margin: 8px 0 16px;
}
.setup-step {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  margin: 16px 0;
  max-width: 720px;
}
.setup-step .step-num {
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  font-size: 11px;
  border: 1px solid var(--ui-border);
  border-radius: 50%;
  color: var(--ui-muted);
}
.setup-step h3 {
  margin: 0 0 4px;
}
.setup-step p {
  margin: 0 0 10px;
}
.setup-step label {
  max-width: none;
}
.key-display {
  margin-top: 12px;
  padding: 12px;
  background: var(--ui-subtle);
  border: 1px solid var(--ui-border);
  border-radius: 6px;
}
.key-display strong {
  display: block;
  font-size: 12px;
  margin-bottom: 6px;
}
.key-display code {
  display: block;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  font-size: 11px;
  line-height: 1.7;
  margin-bottom: 8px;
}
.key-display p {
  margin: 0 0 8px;
}
.grants-list {
  border-top: 1px solid var(--ui-border);
}
.grant-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ui-border);
}
.grant-row > div {
  flex: 1;
  min-width: 0;
}
.grant-row h3 {
  font-size: 13px;
  margin: 0;
}
.grant-row p {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--ui-muted);
}
/* Session detail shares the same tab and list density. */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ui-muted);
  font-size: 12px;
  margin-bottom: 12px;
}
.detail-heading .page-heading {
  align-items: flex-start;
}
.detail-heading h1 {
  overflow-wrap: anywhere;
}
.content:has(.detail-layout) {
  height: 100dvh;
  display: flex;
  flex-direction: column;
}
.detail-heading {
  flex-shrink: 0;
}
.detail-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 248px;
  gap: 24px;
}
.detail-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  border-top: 1px solid var(--ui-border);
}
.detail-main .tabs {
  flex-shrink: 0;
  gap: 20px;
}
#detail-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
.session-thread {
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  padding: 16px 4px;
}
.thread-message {
  max-width: 82%;
  margin-bottom: 12px;
}
.thread-message.user {
  margin-left: auto;
  text-align: right;
}
.bubble {
  display: inline-block;
  background: #f1f3f4;
  padding: 8px 12px;
  border-radius: 12px 12px 12px 4px;
  line-height: 1.5;
  text-align: left;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.thread-message.user .bubble {
  background: var(--ui-primary);
  color: #fff;
  border-radius: 12px 12px 4px 12px;
}
.thread-message small {
  display: block;
  margin-top: 4px;
  color: var(--ui-muted);
  font-size: 10px;
}
.thread-system {
  text-align: center;
  color: var(--ui-muted);
  font-size: 11px;
  margin: 12px 0;
}
.message-reactions {
  display: block;
  margin-top: 4px;
}
.tool-event {
  margin: 6px 0;
  border: 1px solid var(--ui-border);
  border-radius: 6px;
}
.tool-event summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: var(--ui-muted);
  font-size: 11px;
}
.tool-event summary > span:nth-child(2) {
  color: var(--ui-text);
}
.tool-event pre {
  font-size: 10px;
  line-height: 1.5;
  padding: 0 12px 12px;
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 320px;
  overflow-y: auto;
}
.activity-empty {
  padding: 32px 16px;
  color: var(--ui-muted);
  text-align: center;
  font-size: 12px;
  line-height: 1.7;
}
.session-composer {
  flex-shrink: 0;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--ui-border);
}
.session-composer input {
  border: 0;
  flex: 1;
  width: 100%;
  min-width: 0;
}
.session-composer button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--ui-primary);
  color: #fff;
  border-radius: 50%;
}
.read-only-note {
  padding: 10px 0;
  border-top: 1px solid var(--ui-border);
  color: var(--ui-muted);
  font-size: 11px;
  line-height: 1.5;
}
.detail-side {
  overflow-y: auto;
  border-left: 1px solid var(--ui-border);
  padding-left: 20px;
}
.detail-side .section {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--ui-border);
}
.detail-side .section:last-child {
  border: 0;
}
.detail-side h3 {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}
.detail-side p,
.detail-side li {
  color: var(--ui-muted);
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.detail-side p + p {
  margin-top: 8px;
}
.detail-side ol {
  padding-left: 16px;
  margin: 0;
}
.detail-side li + li {
  margin-top: 4px;
}
.detail-side .row {
  flex-wrap: wrap;
  margin: 8px 0;
}
.invite-code {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 18px;
  letter-spacing: 1px;
  padding: 6px 0;
}
.overview {
  padding: 20px 0;
  font-size: 13px;
  line-height: 1.6;
}
.overview h3 {
  margin: 16px 0 6px;
}
.overview h3:first-child {
  margin-top: 0;
}
.overview p,
.overview li {
  color: var(--ui-muted);
}
.overview ul,
.overview ol {
  padding-left: 20px;
  margin: 0;
}
.evidence-empty {
  padding: 32px 16px;
  text-align: center;
}
.evidence-empty h3 {
  margin-bottom: 6px;
}
.evidence-empty p {
  color: var(--ui-muted);
  font-size: 12px;
  max-width: 360px;
  margin: auto;
}
.evidence-list {
  padding: 16px 0;
}
.evidence-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--ui-border);
}
.evidence-thumbnail {
  display: flex;
  width: 36px;
  height: 32px;
  align-items: center;
  justify-content: center;
  color: var(--ui-muted);
  background: var(--ui-subtle);
  border-radius: 4px;
}
.evidence-row > div {
  flex: 1;
}
.evidence-row h3 {
  font-size: 12px;
}
.evidence-row p,
.evidence-row small {
  color: var(--ui-muted);
  font-size: 11px;
  margin-top: 3px;
}
.evidence-image {
  max-width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--ui-border);
}
/* Dialogs and authentication use narrow, predictable form columns. */
dialog {
  border: 1px solid var(--ui-border);
  border-radius: 10px;
  padding: 0;
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  box-shadow: var(--ui-shadow-dialog);
  color: var(--ui-text);
}
dialog[open] {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
dialog::backdrop {
  background: #20212455;
}
.modal-head {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--ui-border);
}
.modal-head h2 {
  font-size: 18px;
  margin-bottom: 4px;
}
.modal-head p {
  color: var(--ui-muted);
  font-size: 12px;
}
.modal-body {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}
.modal-body label + label {
  margin-top: 16px;
}
.modal-body form > .btn {
  margin-top: 16px;
}
.modal-foot {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid var(--ui-border);
}
.modal-foot > .hint {
  margin-right: auto;
  font-size: 11px;
}
.plan-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 20px;
}
#goal {
  display: block;
  margin-top: 6px;
  width: 100%;
}
.plan-layout aside {
  border-left: 1px solid var(--ui-border);
  padding-left: 20px;
}
.plan-layout aside h3 {
  font-size: 12px;
  margin-bottom: 12px;
}
.plan-layout aside label {
  font-size: 12px;
  margin-bottom: 12px;
}
.plan-layout aside .hint {
  font-size: 11px;
}
.generated-plan {
  margin-top: 16px;
  border-top: 1px solid var(--ui-border);
  padding-top: 16px;
}
.generated-plan label {
  margin-bottom: 12px;
}
.generated-plan summary {
  margin-bottom: 8px;
}
.generated-plan textarea {
  width: 100%;
}
.recovery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 16px;
}
.recovery-grid code {
  padding: 8px;
  font-size: 11px;
  background: var(--ui-subtle);
  border-radius: 4px;
  text-align: center;
}
.auth-simple {
  width: 100%;
  max-width: 392px;
  margin: 64px auto;
  padding: 0 16px;
}
.auth-simple > .wordmark {
  margin-bottom: 28px;
}
.auth-form h1 {
  font-size: 22px;
  margin-bottom: 8px;
}
.auth-form > p {
  color: var(--ui-muted);
  font-size: 13px;
  margin-bottom: 24px;
}
.auth-form label {
  margin: 16px 0;
}
.auth-form input {
  min-height: 36px;
}
.auth-form > .btn {
  width: 100%;
  margin-top: 8px;
  min-height: 36px;
}
.auth-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 12px;
  color: var(--ui-muted);
}
.signup-workspace {
  margin: 16px 0;
}
.signup-workspace summary {
  font-size: 12px;
}
.signup-workspace summary span {
  color: var(--ui-muted);
  margin-left: 4px;
}
.signup-workspace input {
  width: 100%;
  margin-top: 8px;
}
#toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 14px;
  max-width: min(520px, calc(100vw - 24px));
  background: #202124;
  color: #fff;
  box-shadow: var(--ui-shadow-menu);
  font-size: 12px;
  border-radius: 7px;
  z-index: 100;
  line-height: 1.5;
}
.completion {
  max-width: 480px;
  margin: 64px auto;
  padding: 0 24px;
}
.completion-inner h1 {
  margin: 16px 0 12px;
}
.completion-inner p {
  color: var(--ui-muted);
  margin-bottom: 20px;
}
.completion-icon {
  color: var(--ui-primary);
}
.oauth-layout {
  max-width: 448px;
  margin: 56px auto;
  padding: 0 20px;
}
.oauth-layout > .wordmark {
  margin-bottom: 28px;
}
.oauth-layout h1 {
  font-size: 22px;
  margin-bottom: 8px;
}
.oauth-title {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.oauth-title h1 {
  min-width: 0;
  overflow-wrap: anywhere;
  flex: 1;
}
.app-identity-info {
  position: relative;
  margin-top: 2px;
}
.app-identity-info summary {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ui-muted);
  border-radius: 4px;
}
.app-identity-info summary:hover {
  background: var(--ui-subtle);
}
.app-identity-info p {
  position: absolute;
  right: 0;
  top: 28px;
  width: 220px;
  z-index: 3;
  padding: 10px 12px;
  border: 1px solid var(--ui-border);
  box-shadow: var(--ui-shadow-menu);
  border-radius: 6px;
  background: #fff;
  color: var(--ui-muted);
  font-size: 12px;
}
.oauth-account {
  display: grid;
  gap: 3px;
  padding: 12px 0;
  margin: 0 0 20px;
  border-top: 1px solid var(--ui-border);
  border-bottom: 1px solid var(--ui-border);
}
.oauth-account span {
  color: var(--ui-muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.oauth-account strong {
  font-size: 13px;
  font-weight: 500;
}
.oauth-client-host {
  color: var(--ui-muted);
  margin-bottom: 24px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.oauth-layout label {
  margin-bottom: 20px;
}
.oauth-permissions {
  padding: 12px 0;
  margin: 0 0 20px;
  list-style: none;
  border-top: 1px solid var(--ui-border);
  border-bottom: 1px solid var(--ui-border);
}
.oauth-permissions li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 13px;
}
.oauth-permissions svg {
  color: var(--ui-muted);
}
.oauth-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}
/* Public surface: a compact story with a clearly labelled example. */
.public-nav {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1120px;
  margin: auto;
  padding: 0 24px;
}
.nav-links,
.public-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
}
.nav-links {
  color: var(--ui-muted);
  margin-left: auto;
}
.public-actions {
  gap: 8px;
}
.landing main {
  max-width: 1120px;
  margin: auto;
  padding: 0 24px;
}
.hero {
  padding-top: 48px;
}
.hero-copy {
  max-width: 640px;
  margin: auto;
  text-align: center;
}
.hero-kicker {
  display: none;
}
.hero h1 {
  font-size: clamp(36px, 4.5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.05em;
  font-weight: 650;
}
.hero h1 span {
  color: var(--ui-brand);
}
.hero-description {
  color: #5f6368;
  font-size: 16px;
  margin: 16px 0 20px;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.hero-note {
  color: var(--ui-muted);
  font-size: 11px;
  margin-top: 12px;
}
.product-scene {
  max-width: 840px;
  margin: 32px auto 0;
}
.scene-browser {
  border: 1px solid var(--ui-border-strong);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 24px #20212408;
}
.scene-chrome {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 32px;
  padding: 0 12px;
  background: #f8f9fa;
  border-bottom: 1px solid var(--ui-border);
  color: var(--ui-muted);
  font-size: 10px;
}
.window-dots {
  display: flex;
  gap: 4px;
}
.window-dots i {
  width: 6px;
  height: 6px;
  background: #dadce0;
  border-radius: 50%;
}
.scene-chrome > span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.scene-chrome svg {
  width: 11px;
  height: 11px;
}
.scene-demo {
  margin-left: auto;
}
.scene-workspace {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
}
.scene-site {
  position: relative;
  padding: 24px;
}
.scene-site-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.scene-site-heading h2 {
  font-size: 22px;
  margin-top: 8px;
}
.scene-site-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--ui-border);
  border-radius: 8px;
  color: var(--ui-muted);
}
.scene-site-tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--ui-border);
  margin-top: 24px;
  font-size: 11px;
  color: var(--ui-muted);
}
.scene-site-tabs span {
  padding-bottom: 8px;
}
.scene-site-tabs .active {
  color: var(--ui-primary);
  border-bottom: 2px solid var(--ui-primary);
}
.dns-table > div {
  display: grid;
  grid-template-columns: 60px 50px 1fr;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ui-border);
  font-size: 10px;
}
.dns-table-head {
  color: var(--ui-muted);
  font-size: 9px !important;
}
.dns-table b {
  font-weight: 500;
}
.dns-row-muted {
  color: var(--ui-muted);
}
.scene-success {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ui-success-text);
  font-size: 10px;
  margin-top: 16px;
}
.scene-success svg {
  width: 13px;
  height: 13px;
}
.scene-cursor {
  position: absolute;
  right: 20px;
  bottom: 32px;
  display: flex;
  align-items: flex-start;
  color: var(--ui-primary);
}
.scene-cursor span {
  color: #fff;
  padding: 4px 6px;
  background: var(--ui-primary);
  border-radius: 4px;
  font-size: 9px;
  margin-top: 12px;
}
.scene-chat {
  border-left: 1px solid var(--ui-border);
  display: flex;
  flex-direction: column;
  min-height: 320px;
}
.scene-chat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--ui-border);
}
.scene-agent-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ui-selected);
  color: var(--ui-primary);
  width: 26px;
  height: 26px;
  border-radius: 50%;
}
.scene-chat-header div {
  flex: 1;
}
.scene-chat-header b,
.scene-chat-header small {
  display: block;
}
.scene-chat-header b {
  font-size: 11px;
  font-weight: 500;
}
.scene-chat-header small {
  color: var(--ui-muted);
  font-size: 9px;
  margin-top: 3px;
}
.scene-chat-header > svg {
  color: var(--ui-muted);
  width: 13px;
  height: 13px;
}
.scene-chat-thread {
  padding: 12px;
  flex: 1;
}
.scene-timestamp {
  display: block;
  text-align: center;
  color: var(--ui-muted);
  font-size: 9px;
  margin-bottom: 12px;
}
.scene-bubble {
  font-size: 11px;
  line-height: 1.5;
  max-width: 90%;
  padding: 7px 9px;
  border-radius: 10px;
  background: #f1f3f4;
  margin-bottom: 8px;
}
.scene-bubble.owner {
  background: var(--ui-primary);
  color: #fff;
  margin-left: auto;
  width: fit-content;
}
.scene-read {
  display: block;
  text-align: right;
  color: var(--ui-muted);
  font-size: 9px;
  margin-top: -5px;
  margin-bottom: 10px;
}
.scene-tool {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 10px 0;
  color: var(--ui-muted);
  font-size: 9px;
}
.scene-tool svg {
  width: 11px;
  height: 11px;
}
.scene-tool span {
  margin-left: auto;
}
.scene-composer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--ui-border);
  border-radius: 20px;
  margin: 0 12px 12px;
  padding: 5px 8px;
  color: var(--ui-muted);
  font-size: 10px;
}
.scene-composer svg {
  width: 16px;
  height: 16px;
  color: var(--ui-primary);
}
.scene-caption {
  text-align: center;
  color: var(--ui-muted);
  font-size: 11px;
  margin-top: 10px;
}
.agent-section {
  text-align: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--ui-border);
}
.agent-section > p {
  color: var(--ui-muted);
  font-size: 12px;
}
.agent-wordmarks {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
  margin: 16px 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.5px;
}
.agent-section small {
  color: var(--ui-muted);
  font-size: 11px;
}
.how-section {
  padding: 40px 0;
}
.section-intro {
  margin-bottom: 24px;
}
.section-intro .eyebrow {
  display: none;
}
.section-intro h2 {
  font-size: 24px;
}
.section-intro h2 br {
  display: none;
}
.section-intro p {
  color: var(--ui-muted);
  font-size: 13px;
  margin-top: 8px;
}
.section-intro p br {
  display: none;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.how-grid article {
  position: relative;
  border-top: 1px solid var(--ui-border);
  padding-top: 16px;
}
.how-icon {
  display: inline-flex;
  color: var(--ui-primary);
  margin-bottom: 10px;
}
.how-grid h3 {
  font-size: 14px;
  margin-bottom: 8px;
}
.how-grid p {
  font-size: 12px;
  color: var(--ui-muted);
}
.how-number {
  position: absolute;
  right: 0;
  top: 16px;
  font-size: 11px;
  color: var(--ui-muted);
}
.closing {
  display: flex;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--ui-border);
  padding: 24px 0;
}
.closing .eyebrow,
.closing > p:last-child {
  display: none;
}
.closing h2 {
  flex: 1;
  font-size: 24px;
}
.closing h2 br {
  display: none;
}
.public-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--ui-border);
}
.public-footer .wordmark {
  font-size: 18px;
}
.public-footer .brand-symbol,
.public-footer img {
  width: 20px;
  height: 20px;
}
.public-footer > span {
  color: var(--ui-muted);
  font-size: 12px;
}
.public-footer > div {
  display: flex;
  gap: 16px;
  margin-left: auto;
  color: var(--ui-muted);
  font-size: 12px;
}
/* Installation dialog: no promotional wrapper or fabricated status. */
.connect-modal {
  width: min(680px, calc(100vw - 32px));
}
.connect-options {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
}
.connect-browser {
  border-right: 1px solid var(--ui-border);
  padding-right: 24px;
}
.connect-illustration {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ui-muted);
  margin-bottom: 12px;
}
.connect-illustration > svg {
  width: 24px;
  height: 24px;
}
.connect-illustration span {
  display: inline-flex;
}
.connect-illustration .ready {
  color: var(--ui-success-text);
}
.connect-options h3 {
  font-size: 15px;
  margin-bottom: 6px;
}
.connect-options p {
  color: var(--ui-muted);
  font-size: 12px;
  margin-bottom: 12px;
}
.connect-options .btn {
  margin-bottom: 8px;
}
.connect-browser .btn {
  width: 100%;
}
.connect-options small {
  display: block;
  color: var(--ui-muted);
  font-size: 10px;
  margin-top: 8px;
}
.setup-help {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ui-primary);
  font-size: 11px;
}
.setup-help svg {
  width: 11px;
  height: 11px;
}
.connect-label {
  display: none;
}
.connect-agent .setup-copy-note {
  font-size: 11px;
  margin: 4px 0 12px;
}
.connect-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--ui-border);
}
.connect-footer span {
  color: var(--ui-muted);
  font-size: 11px;
}
.connect-footer .text-link {
  font-size: 12px;
}
/* UI kit is a reference surface, not product navigation. */
.kit {
  max-width: 1040px;
  margin: 32px auto;
  padding: 0 24px;
}
.kit > h1 {
  margin-bottom: 8px;
}
.kit > p {
  color: var(--ui-muted);
  margin-bottom: 24px;
}
.kit-section {
  padding: 24px 0;
  border-top: 1px solid var(--ui-border);
}
.kit-section > h2 {
  margin-bottom: 16px;
}
.kit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.kit-swatch {
  height: 48px;
  border: 1px solid var(--ui-border);
  border-radius: 6px;
  margin-bottom: 6px;
}
.kit-grid label,
.kit-section code {
  font-size: 12px;
}
@media (max-width: 1080px) {
  .session-list-head,
  .session-card {
    grid-template-columns: minmax(180px, 1fr) 100px 100px 60px 12px;
    gap: 12px;
  }
  .detail-layout {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 16px;
  }
  .detail-side {
    padding-left: 16px;
  }
}
@media (max-width: 900px) {
  .content:has(.detail-layout) {
    height: auto;
  }
  .detail-main.conversation-view {
    height: calc(100dvh - 210px);
    min-height: 360px;
  }
  .session-list-head,
  .session-card {
    grid-template-columns: minmax(0, 1fr) 100px 60px 12px;
  }
  .session-row-agent,
  .session-list-head > span:nth-child(2) {
    display: none;
  }
  .detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .detail-side {
    border-left: 0;
    border-top: 1px solid var(--ui-border);
    padding: 16px 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .detail-side .section {
    margin-bottom: 0;
  }
  .setting-row {
    grid-template-columns: minmax(160px, 1fr) minmax(140px, 260px);
    gap: 16px;
  }
  .nav-links {
    display: none;
  }
}
@media (max-width: 700px) {
  .sidebar {
    transform: translateX(-100%);
    visibility: hidden;
    width: 212px;
    transition:
      transform 0.16s ease,
      visibility 0.16s;
    z-index: 60;
  }
  .shell.menu-open .sidebar {
    transform: translateX(0);
    visibility: visible;
  }
  .workspace-main {
    margin: 0;
    width: 100%;
  }
  .content {
    padding: 16px;
  }
  .mobile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    height: 48px;
    border-bottom: 1px solid var(--ui-border);
  }
  .mobile-topbar .wordmark {
    font-size: 18px;
  }
  .mobile-topbar .brand-symbol,
  .mobile-topbar img {
    width: 20px;
    height: 20px;
  }
  .mobile-topbar > span {
    width: 28px;
  }
  .mobile-scrim {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: #20212455;
  }
  .shell.menu-open .mobile-scrim {
    display: block;
  }
  .page-heading {
    margin-bottom: 12px;
  }
  .page-heading h1 {
    font-size: 20px;
  }
  .session-list-head,
  .session-card {
    grid-template-columns: minmax(0, 1fr) 95px 12px;
    gap: 8px;
  }
  .session-row-date,
  .session-list-head > span:nth-child(4) {
    display: none;
  }
  .session-card {
    padding: 10px 4px;
  }
  .session-list-head {
    padding: 8px 4px;
  }
  .session-row-icon {
    display: none;
  }
  .session-row-title h3 {
    font-size: 12px;
  }
  .session-card .badge {
    font-size: 10px;
  }
  .toolbar {
    gap: 8px;
  }
  .search {
    width: auto;
    flex: 1;
  }
  #status-filter {
    min-width: 108px;
    max-width: 120px;
  }
  .tabs {
    gap: 18px;
  }
  .settings-tabs {
    margin-bottom: 16px;
  }
  .setting-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 14px 0;
  }
  .setting-row > :last-child {
    justify-self: start;
  }
  .setting-row .setting-control {
    max-width: 360px;
  }
  .form-actions {
    justify-content: flex-start;
  }
  .detail-heading .page-heading {
    gap: 8px;
  }
  .detail-side {
    grid-template-columns: 1fr;
  }
  .detail-side .section {
    padding-bottom: 12px;
  }
  .session-thread {
    min-height: 0;
    max-height: none;
  }
  .settings-section .table-wrap table {
    min-width: 430px;
  }
  .page-heading + .table-wrap table {
    min-width: 420px;
  }
  .endpoint-row {
    align-items: stretch;
  }
  .endpoint-row code {
    min-width: 0;
  }
  .connect-options {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .connect-browser {
    border-right: 0;
    border-bottom: 1px solid var(--ui-border);
    padding: 0 0 16px;
  }
  .connect-browser .btn {
    width: auto;
    display: flex;
  }
  .connect-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .plan-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .plan-layout aside {
    border-left: 0;
    border-top: 1px solid var(--ui-border);
    padding: 16px 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .plan-layout aside h3,
  .plan-layout aside .hint {
    grid-column: 1/-1;
    margin: 0;
  }
  .plan-layout aside label {
    margin: 0;
  }
  .modal-foot {
    flex-wrap: wrap;
  }
  .modal-foot > .hint {
    flex-basis: 100%;
  }
  .modal-body,
  .modal-head {
    padding: 16px;
  }
  .modal-foot {
    padding: 12px 16px;
  }
  dialog {
    max-height: calc(100dvh - 24px);
  }
  .public-nav {
    height: 56px;
    padding: 0 16px;
    gap: 12px;
  }
  .public-nav .wordmark {
    font-size: 20px;
  }
  .public-actions {
    gap: 4px;
  }
  .public-actions .btn {
    font-size: 12px;
    padding: 4px 8px;
  }
  .public-actions .btn svg {
    display: none;
  }
  .landing main {
    padding: 0 16px;
  }
  .hero {
    padding-top: 32px;
  }
  .hero-description {
    font-size: 14px;
  }
  .product-scene {
    margin-top: 24px;
  }
  .scene-workspace {
    grid-template-columns: 1fr;
  }
  .scene-site {
    display: none;
  }
  .scene-chat {
    border: 0;
    min-height: 300px;
  }
  .scene-chat-header {
    padding: 12px 16px;
  }
  .scene-chat-thread {
    padding: 12px 16px;
  }
  .scene-bubble {
    font-size: 12px;
    max-width: 80%;
  }
  .scene-chat-header b {
    font-size: 12px;
  }
  .scene-chat-header small {
    font-size: 10px;
  }
  .scene-chrome > span:not(.scene-demo) {
    font-size: 9px;
  }
  .scene-caption {
    font-size: 10px;
  }
  .agent-section {
    padding: 24px 0;
  }
  .agent-wordmarks {
    gap: 12px 24px;
    font-size: 15px;
  }
  .how-section {
    padding: 24px 0;
  }
  .how-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .section-intro h2,
  .closing h2 {
    font-size: 20px;
  }
  .closing {
    gap: 12px;
  }
  .public-footer {
    padding: 16px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .public-footer > span {
    display: none;
  }
  .public-footer > div {
    gap: 12px;
  }
  .auth-simple {
    margin: 40px auto;
  }
  .oauth-layout {
    margin: 32px auto;
  }
  .kit-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 700px) {
  .members-toolbar {
    flex-wrap: wrap;
  }
  .members-toolbar .search {
    flex-basis: 100%;
    max-width: none;
  }
  .members-toolbar select {
    flex: 1;
    min-width: 0;
  }
  .members-table {
    min-width: 640px;
  }
  .member-tabs {
    margin-bottom: 12px;
  }
  .branding-form .setting-row {
    gap: 12px;
  }
}
