/* Deliberately black and white for the private alpha. Theme values stay in :root. */
:root {
  --paper: #fff;
  --surface: #fff;
  --ink: #000;
  --muted: #000;
  --line: #000;
  --accent: #000;
  --accent-hover: #000;
  --accent-soft: #fff;
  --orange: #000;
  --orange-soft: #fff;
  --blue: #000;
  --blue-soft: #fff;
  --danger: #000;
  --danger-soft: #fff;
  --radius: 15px;
  --shadow: none;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button,
a,
input,
select,
textarea,
summary {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #000;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--accent);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 35px;
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -1.5px;
}
h2 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.6px;
}
h3 {
  font-size: 16px;
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: -0.15px;
}
p {
  overflow-wrap: anywhere;
}
svg {
  display: block;
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  stroke-width: 1.7;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.alpha-banner {
  min-height: 33px;
  background: #fff;
  border-bottom: 1px solid #000;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 20px;
  font-size: 11px;
  letter-spacing: 0.2px;
}
.alpha-banner strong {
  font-weight: 600;
}
.status-dot {
  height: 6px;
  width: 6px;
  display: inline-block;
  background: #000;
  border-radius: 50%;
}
.banner-detail {
  opacity: 0.8;
}
.shell {
  display: grid;
  grid-template-columns: 234px minmax(0, 1fr);
  min-height: calc(100vh - 33px);
}
.sidebar {
  padding: 32px 20px 24px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 28px;
  background: #fff;
  position: sticky;
  top: 0;
  height: calc(100vh - 33px);
  overflow-y: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -1px;
  padding: 0 12px;
}
.brand-mark {
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  width: 35px;
  height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  line-height: 1;
  padding-bottom: 5px;
}
.brand-sub {
  padding: 4px 12px 0 57px;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1.15px;
  text-transform: uppercase;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  color: #000;
  padding: 0 13px;
  margin: 12px 0 10px;
}
.nav-link {
  display: flex;
  gap: 11px;
  align-items: center;
  color: #000;
  padding: 10px 13px;
  margin: 3px 0;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
}
.nav-link:hover {
  background: #fff;
}
.nav-link.active {
  background: var(--accent);
  color: #fff;
}
.nav-link .badge {
  margin-left: auto;
  background: #ffffff29;
  color: inherit;
  border: 0;
  min-width: 21px;
  text-align: center;
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid #000;
  padding: 18px 10px 0;
  display: grid;
  gap: 10px;
}
.identity-label {
  display: flex;
  gap: 9px;
  align-items: center;
}
.identity-label strong {
  display: block;
  font-size: 12px;
}
.identity-label p {
  font-size: 11px;
  color: var(--muted);
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #000;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.avatar.warm {
  background: #fff;
  color: #000;
}
.identity-controls {
  display: grid;
  gap: 8px;
}
.identity-controls select {
  font-size: 11px;
  padding: 7px 9px;
  background: #fff;
}
.identity-controls label {
  font-size: 10px;
}
.owner-label {
  font-size: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.main-shell {
  min-width: 0;
}
.topbar {
  height: 76px;
  padding: 0 36px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--surface);
}
.breadcrumb {
  color: #000;
  font-size: 12px;
  display: flex;
  gap: 9px;
  align-items: center;
  white-space: nowrap;
}
.breadcrumb strong {
  color: var(--ink);
  font-weight: 500;
}
.topbar-search {
  margin-left: auto;
  position: relative;
  width: min(340px, 40%);
}
.topbar-search input {
  padding: 9px 12px 9px 35px;
  border-color: var(--line);
  background: #fff;
  font-size: 12px;
}
.topbar-search svg {
  position: absolute;
  left: 11px;
  top: 10px;
  width: 16px;
  height: 16px;
  color: #000;
}
.local-chip {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 11px;
  color: #000;
  white-space: nowrap;
}
.workspace {
  padding: 36px;
  max-width: 1540px;
  margin: 0 auto;
  min-height: 75vh;
}
.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.eyebrow {
  color: var(--orange);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-weight: 600;
  margin-bottom: 10px;
}
.page-description {
  color: var(--muted);
  font-size: 13px;
  max-width: 650px;
  margin-top: 11px;
  line-height: 1.7;
}
.button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 9px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 8px;
  line-height: 1.4;
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
  transition:
    background 0.15s,
    transform 0.15s;
}
.button:hover {
  background: #fff;
  transform: translateY(-1px);
}
.button.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.button.primary:hover {
  background: var(--accent-hover);
}
.button.subtle {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}
.button.danger {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: #000;
}
.button.small {
  font-size: 11px;
  padding: 6px 10px;
}
.button.full {
  width: 100%;
}
.page-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 272px;
  gap: 27px;
  align-items: start;
}
.stack {
  display: grid;
  gap: 15px;
}
.stack.wide {
  gap: 24px;
}
.hero {
  background: #fff;
  border: 1px solid #000;
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 26px;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 460px;
}
.hero h2 {
  font-family: Georgia, serif;
  font-size: 30px;
  line-height: 1.22;
  font-weight: 400;
  letter-spacing: -0.7px;
  margin: 5px 0 11px;
}
.hero p {
  font-size: 12px;
  color: #000;
  max-width: 410px;
  line-height: 1.7;
}
.hero-kicker {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: #000;
  font-weight: 600;
}
.hero-art {
  margin-left: auto;
  width: 132px;
  height: 132px;
  position: relative;
  flex-shrink: 0;
  opacity: 0.8;
}
.orbit {
  position: absolute;
  border: 1px solid #000;
  border-radius: 50%;
  inset: 10px;
}
.orbit:nth-child(2) {
  inset: 30px;
}
.orbit:nth-child(3) {
  inset: 48px;
  background: #fff;
}
.orbit-dot {
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent);
  top: 8px;
  left: 72px;
  border: 4px solid #000;
  box-sizing: content-box;
}
.orbit-dot.two {
  top: 73px;
  left: 21px;
  background: var(--orange);
}
.orbit-dot.three {
  top: 75px;
  left: 99px;
  background: #000;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 4px 0 14px;
}
.section-heading h2 {
  font-size: 15px;
  letter-spacing: -0.2px;
}
.section-heading span {
  font-size: 11px;
  color: var(--muted);
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 17px;
  align-items: center;
}
.filter-pill {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 6px 11px;
  border-radius: 20px;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
}
.filter-pill.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.filter-select {
  width: auto;
  max-width: 200px !important;
  font-size: 11px !important;
  padding: 7px 28px 7px 9px !important;
}
.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  margin-left: auto;
}
.filter-checkbox input {
  width: 13px;
  height: 13px;
  accent-color: var(--accent);
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  min-width: 0;
}
.thread-card {
  transition:
    box-shadow 0.15s,
    border-color 0.15s;
}
.thread-card:hover {
  border-color: #000;
  box-shadow: none;
}
.thread-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.badge {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 7px;
  border-radius: 5px;
  font-weight: 650;
  display: inline-block;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge.need {
  background: #fff;
  color: #000;
}
.badge.offer {
  background: #fff;
  color: #000;
}
.badge.question,
.badge.request {
  background: #fff;
  color: #000;
}
.badge.discussion {
  background: #fff;
  color: #000;
}
.badge.private {
  background: var(--blue-soft);
  color: var(--blue);
}
.badge.status {
  background: #fff;
  color: #000;
}
.badge.accepted,
.badge.active,
.badge.completed,
.badge.fulfilled,
.badge.resolved {
  background: #fff;
  color: #000;
}
.badge.paused,
.badge.waiting,
.badge.proposed,
.badge.invited {
  background: #fff;
  color: #000;
}
.badge.revoked,
.badge.cancelled,
.badge.withdrawn,
.badge.failed {
  background: #fff;
  color: #000;
}
.card h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.thread-preview {
  font-size: 12px;
  color: #000;
  margin-top: 9px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.thread-footer {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 19px;
  padding-top: 15px;
  border-top: 1px solid #000;
  font-size: 10px;
  color: #000;
  flex-wrap: wrap;
}
.thread-footer .avatar {
  height: 24px;
  width: 24px;
  font-size: 9px;
}
.thread-footer .author {
  color: #000;
  font-size: 11px;
}
.thread-footer .end {
  margin-left: auto;
}
.inline-meta {
  color: #000;
  font-size: 10px;
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.inline-meta svg {
  width: 12px;
  height: 12px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 13px;
}
.tag {
  font-size: 9px;
  padding: 3px 7px;
  border: 1px solid #000;
  border-radius: 4px;
  color: #000;
  background: #fff;
}
.rail {
  display: grid;
  gap: 20px;
}
.rail-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.rail-card h3 {
  font-size: 13px;
  margin-bottom: 7px;
}
.rail-card p {
  font-size: 11px;
  line-height: 1.8;
  color: #000;
}
.rail-card .button {
  margin-top: 15px;
}
.rail-card.dark {
  background: #000;
  color: #fff;
  border-color: #000;
}
.rail-card.dark p {
  color: #fff;
}
.rail-card.dark .owner-label {
  color: #fff;
}
.rail-card.dark .button {
  background: #fff;
  border-color: transparent;
  color: #000;
}
.rail-title {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}
.rail-title svg {
  color: #000;
  width: 17px;
  height: 17px;
}
.rail-title h3 {
  margin: 0;
}
.forum-list {
  display: grid;
  gap: 14px;
}
.forum-item {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 11px;
}
.forum-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid #000;
  background: #fff;
  border-radius: 8px;
  color: #000;
}
.forum-item p {
  font-size: 10px;
  line-height: 1.4;
}
.forum-item strong {
  font-weight: 500;
  color: #000;
}
.privacy-note {
  display: flex;
  gap: 9px;
  font-size: 11px;
  line-height: 1.7;
  color: #000;
  border-top: 1px solid var(--line);
  padding: 17px 2px;
}
.privacy-note svg {
  flex-shrink: 0;
  margin-top: 2px;
  width: 16px;
  height: 16px;
}
.empty-state {
  padding: 45px 25px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed #000;
  border-radius: var(--radius);
  color: var(--muted);
}
.empty-state svg {
  margin: 0 auto 15px;
  width: 27px;
  height: 27px;
  color: #000;
}
.empty-state h3 {
  color: #000;
  font-size: 15px;
  margin-bottom: 7px;
}
.empty-state p {
  font-size: 12px;
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.75;
}
.empty-state .button {
  margin-top: 16px;
}
.loading {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}
.spinner {
  width: 17px;
  height: 17px;
  border: 2px solid #000;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.error-box {
  padding: 13px 15px;
  border: 1px solid #000;
  background: var(--danger-soft);
  color: var(--danger);
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.6;
}
.info-box {
  padding: 13px 15px;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.7;
}
.info-box.blue {
  background: #fff;
  border-color: #000;
  color: #000;
}
.info-box.warning {
  background: #fff;
  border-color: #000;
  color: #000;
}
.owner-only {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 12px 15px;
  background: #fff;
  border: 1px solid #000;
  border-radius: 8px;
  font-size: 11px;
  color: #000;
  margin-bottom: 17px;
}
.owner-only svg {
  width: 16px;
  height: 16px;
}
.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.field > label,
.field-label {
  font-size: 11px;
  color: #000;
  font-weight: 600;
}
.field-hint {
  font-size: 10px;
  color: #000;
  line-height: 1.6;
}
input,
textarea,
select {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #000;
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  min-width: 0;
  line-height: 1.5;
}
input::placeholder,
textarea::placeholder {
  color: #000;
}
textarea {
  resize: vertical;
  min-height: 90px;
}
select {
  cursor: pointer;
}
input[type="checkbox"] {
  width: auto;
  accent-color: var(--accent);
}
input[type="datetime-local"] {
  font-size: 12px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
fieldset:disabled {
  opacity: 0.55;
}
.form-stack {
  display: grid;
  gap: 16px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 6px;
}
.check-list {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  max-height: 180px;
  overflow: auto;
  background: #fff;
}
.check-list label,
.checkline {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}
.checkline {
  font-weight: 400 !important;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 5px 0;
}
.detail-header {
  padding-bottom: 19px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.detail-header h1 {
  font-size: 29px;
  letter-spacing: -0.8px;
}
.body-text {
  font-size: 13px;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.button-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.body-text + .button-row {
  margin-top: 18px;
}
.reply {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.reply:first-child {
  border-top: 0;
}
.reply-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  font-size: 11px;
  color: var(--muted);
  flex-wrap: wrap;
}
.reply-meta strong {
  color: #000;
  font-weight: 550;
}
.reply.accepted-reply {
  padding: 18px;
  border: 1px solid #000;
  border-radius: 10px;
  background: #fff;
  margin-bottom: 16px;
}
.source-list {
  list-style: none;
  padding: 0;
  margin: 10px 0;
  font-size: 11px;
}
.source-list a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.agent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}
.agent-header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 15px;
}
.agent-header .avatar {
  height: 45px;
  width: 45px;
  font-size: 16px;
}
.agent-header h3 {
  font-size: 15px;
}
.agent-header p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.agent-card .button-row {
  margin-top: 20px;
}
.agent-card .thread-preview {
  min-height: 42px;
}
.conversation-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.conversation-list {
  display: grid;
  gap: 8px;
}
.conversation-item {
  display: block;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
}
.conversation-item.active {
  border-color: #000;
  background: #fff;
}
.conversation-item h3 {
  font-size: 12px;
}
.conversation-item p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.conversation-item .badge {
  margin-top: 8px;
}
.chat-panel {
  padding: 0;
  overflow: hidden;
}
.chat-header {
  padding: 21px;
  border-bottom: 1px solid var(--line);
}
.chat-header h2 {
  font-size: 17px;
}
.chat-audience {
  font-size: 10px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.7;
}
.chat-messages {
  min-height: 270px;
  max-height: 470px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 17px;
  padding: 23px;
}
.message {
  max-width: 85%;
  align-self: flex-start;
}
.message.mine {
  align-self: flex-end;
}
.message-author {
  font-size: 10px;
  color: #000;
  margin: 0 0 5px 3px;
}
.message-body {
  background: #fff;
  border: 1px solid #000;
  border-radius: 12px 12px 12px 3px;
  padding: 12px 15px;
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.8;
}
.message.mine .message-body {
  background: #fff;
  border-color: #000;
  border-radius: 12px 12px 3px 12px;
}
.message.mine .message-author {
  text-align: right;
}
.chat-compose {
  border-top: 1px solid var(--line);
  padding: 18px;
}
.chat-compose textarea {
  min-height: 74px;
  background: #fff;
  font-size: 12px;
}
.chat-compose .form-actions {
  margin-top: 9px;
  align-items: center;
  justify-content: space-between;
}
.chat-compose .form-actions span {
  font-size: 9px;
  color: #000;
}
.member-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 10px 0;
}
.member {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  background: #fff;
  border-radius: 5px;
  font-size: 10px;
  padding: 4px 7px;
}
.member .button {
  font-size: 9px;
  padding: 0 3px;
}
.coord-card h3 {
  font-size: 18px;
}
.coord-card .body-text {
  font-size: 12px;
  margin: 13px 0;
}
.detail-list {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 8px;
  font-size: 11px;
  margin: 17px 0;
}
.detail-list dt {
  color: #000;
}
.detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.coord-card .button-row {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 17px;
}
.grant-fields {
  margin: 10px 0;
  font-size: 12px;
  color: #000;
}
.grant-fields strong {
  font-weight: 500;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
.settings-grid > .span-2 {
  grid-column: 1/-1;
}
.settings-card h2 {
  font-size: 17px;
  margin-bottom: 5px;
}
.settings-card > .muted {
  font-size: 12px;
  margin-bottom: 20px;
}
.settings-card .section-heading {
  margin-bottom: 17px;
}
.compact-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}
.compact-card h3 {
  font-size: 12px;
}
.compact-card p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.compact-card .button-row {
  margin-top: 12px;
}
.activity-row {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.activity-row:last-child {
  border-bottom: 0;
}
.activity-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex-shrink: 0;
}
.activity-icon svg {
  width: 15px;
  height: 15px;
}
.activity-content {
  min-width: 0;
  flex: 1;
}
.activity-content h3 {
  font-size: 12px;
}
.activity-content p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.activity-time {
  font-size: 10px;
  color: #000;
  white-space: nowrap;
}
.inbox-item {
  display: flex;
  gap: 15px;
}
.inbox-item h3 {
  font-size: 14px;
}
.inbox-item > .activity-icon {
  width: 36px;
  height: 36px;
}
.inbox-item .detail-list {
  margin: 12px 0;
}
.inbox-content {
  flex: 1;
  min-width: 0;
}
.inbox-item.acknowledged {
  opacity: 0.72;
}
.summary-strip {
  display: flex;
  gap: 30px;
  padding: 20px 23px;
  background: #fff;
  border: 1px solid #000;
  border-radius: 12px;
  margin-bottom: 22px;
}
.summary-strip strong {
  font-size: 24px;
  font-weight: 550;
  color: #000;
  letter-spacing: -1px;
}
.summary-strip p {
  font-size: 10px;
  color: #000;
  margin-top: 2px;
}
.history {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.history summary {
  font-size: 11px;
  color: #000;
  cursor: pointer;
}
.history ul {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.history li {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
}
dialog {
  padding: 0;
  border: 1px solid #000;
  border-radius: 16px;
  width: min(600px, calc(100vw - 30px));
  max-height: 90vh;
  box-shadow: none;
  background: var(--surface);
  color: var(--ink);
}
dialog::backdrop {
  background: #00000060;
  backdrop-filter: blur(3px);
}
.modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 23px 25px 17px;
  border-bottom: 1px solid var(--line);
}
.modal-heading h2 {
  font-size: 21px;
}
.modal-body {
  padding: 23px 25px 25px;
}
.modal-body > .muted {
  font-size: 12px;
  margin-bottom: 20px;
}
.modal-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-body .info-box {
  margin-bottom: 18px;
}
.toasts {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10;
  display: grid;
  gap: 10px;
  max-width: min(440px, calc(100vw - 40px));
}
.toast {
  background: var(--ink);
  color: #fff;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 12px;
  box-shadow: none;
  display: flex;
  gap: 10px;
  align-items: center;
}
.toast.error {
  background: #000;
}
.toast button {
  color: inherit;
  background: transparent;
  border: 0;
  margin-left: auto;
  font-size: 17px;
}
.boot-state {
  display: grid;
  place-content: center;
  justify-items: center;
  min-height: 80vh;
  gap: 20px;
}
.boot-state h1 {
  font-size: 35px;
}
.boot-state p {
  color: var(--muted);
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 15px;
  background: var(--accent);
  color: white;
  padding: 10px;
  z-index: 99;
}
.skip-link:focus {
  top: 10px;
}
.noscript {
  padding: 30px;
}
.text-link {
  color: var(--accent);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.top-space {
  margin-top: 18px;
}
.no-margin {
  margin: 0 !important;
}
@media (min-width: 1600px) {
  .workspace {
    padding: 42px 48px;
  }
  .topbar {
    padding: 0 48px;
  }
  .shell {
    grid-template-columns: 250px minmax(0, 1fr);
  }
}
@media (max-width: 1180px) {
  .page-columns {
    grid-template-columns: minmax(0, 1fr);
  }
  .rail {
    grid-template-columns: 1fr 1fr;
  }
  .rail > .privacy-note {
    grid-column: 1/-1;
  }
  .hero-art {
    width: 120px;
  }
  .workspace {
    padding: 28px;
  }
  .topbar {
    padding: 0 28px;
  }
  .shell {
    grid-template-columns: 212px minmax(0, 1fr);
  }
  .sidebar {
    padding-left: 14px;
    padding-right: 14px;
  }
  .conversation-layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }
}
@media (max-width: 900px) {
  .shell {
    grid-template-columns: 78px minmax(0, 1fr);
  }
  .sidebar {
    padding: 24px 12px;
    align-items: center;
    gap: 23px;
  }
  .brand {
    padding: 0;
  }
  .brand > span:last-child,
  .brand-sub,
  .nav-label,
  .nav-link > span,
  .sidebar-bottom .identity-label,
  .identity-controls label {
    display: none;
  }
  .nav-link {
    padding: 12px;
  }
  .nav-link .badge {
    display: none;
  }
  .sidebar nav {
    width: 100%;
  }
  .sidebar-bottom {
    padding: 15px 0 0;
    width: 100%;
  }
  .identity-controls {
    width: 54px;
  }
  .identity-controls select {
    font-size: 9px;
    padding: 5px 2px;
  }
  .local-chip {
    display: none;
  }
  .topbar-search {
    width: 50%;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .settings-grid > .span-2 {
    grid-column: auto;
  }
  .hero {
    padding: 24px;
  }
  .conversation-layout {
    grid-template-columns: 190px minmax(0, 1fr);
  }
}
@media (max-width: 680px) {
  .alpha-banner {
    font-size: 10px;
    padding: 6px 10px;
  }
  .banner-detail {
    font-size: 0;
  }
  .banner-detail:after {
    content: "No live integrations";
    font-size: 10px;
  }
  .shell {
    display: block;
  }
  .sidebar {
    position: relative;
    height: auto;
    padding: 16px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 13px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow: visible;
    align-items: center;
  }
  .brand {
    font-size: 23px;
    gap: 8px;
  }
  .brand > span:last-child {
    display: inline;
  }
  .brand-mark {
    width: 29px;
    height: 29px;
    font-size: 28px;
  }
  .sidebar nav {
    order: 3;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    margin: 0 -16px -16px;
    width: calc(100% + 32px);
    padding: 8px 12px;
    background: #fff;
    border-top: 1px solid var(--line);
  }
  .nav-link {
    padding: 8px;
    flex: 0 0 auto;
    gap: 6px;
    margin: 0;
    font-size: 10px;
  }
  .nav-link > span {
    display: inline;
  }
  .nav-link svg {
    width: 14px;
    height: 14px;
  }
  .sidebar-bottom {
    margin: 0 0 0 auto;
    padding: 0;
    border: 0;
    width: auto;
    max-width: 53%;
  }
  .identity-controls {
    width: auto;
    display: flex;
    gap: 5px;
  }
  .identity-controls select {
    font-size: 10px;
    width: auto;
    max-width: 120px;
    padding: 6px;
  }
  .topbar {
    height: 55px;
    padding: 0 19px;
    gap: 10px;
  }
  .breadcrumb {
    font-size: 10px;
  }
  .topbar-search {
    width: 53%;
  }
  .topbar-search input {
    font-size: 10px;
    padding: 7px 7px 7px 30px;
  }
  .topbar-search svg {
    left: 9px;
    top: 9px;
    width: 13px;
    height: 13px;
  }
  .workspace {
    padding: 25px 18px;
  }
  .page-heading {
    gap: 12px;
    margin-bottom: 20px;
  }
  h1 {
    font-size: 29px;
    letter-spacing: -1px;
  }
  .page-description {
    font-size: 12px;
    margin-top: 8px;
  }
  .page-heading > .button {
    font-size: 10px;
    padding: 8px 10px;
  }
  .eyebrow {
    font-size: 9px;
    margin-bottom: 7px;
  }
  .hero {
    padding: 21px;
    gap: 5px;
    margin-bottom: 22px;
  }
  .hero h2 {
    font-size: 26px;
  }
  .hero p {
    font-size: 11px;
  }
  .hero-art {
    width: 90px;
    height: 110px;
    transform: scale(0.76);
    transform-origin: center right;
    margin-left: -15px;
    margin-right: -8px;
  }
  .card {
    padding: 18px;
  }
  .rail {
    grid-template-columns: 1fr;
  }
  .rail > .privacy-note {
    grid-column: auto;
  }
  .agent-grid {
    grid-template-columns: 1fr;
  }
  .conversation-layout {
    grid-template-columns: 1fr;
  }
  .conversation-list {
    display: flex;
    overflow-x: auto;
    padding-bottom: 5px;
  }
  .conversation-item {
    min-width: 180px;
    max-width: 230px;
  }
  .chat-panel {
    padding: 0;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .filter-checkbox {
    margin-left: 0;
  }
  .form-actions {
    flex-wrap: wrap;
  }
  .summary-strip {
    gap: 22px;
    padding: 16px;
  }
  .summary-strip strong {
    font-size: 21px;
  }
  .activity-time {
    font-size: 9px;
  }
  .modal-body {
    padding: 20px;
  }
  .modal-heading {
    padding: 19px 20px 14px;
  }
  .detail-header h1 {
    font-size: 24px;
  }
  .message {
    max-width: 92%;
  }
  .inbox-item {
    gap: 9px;
  }
  .inbox-item > .activity-icon {
    width: 28px;
    height: 28px;
  }
  .detail-list {
    grid-template-columns: 90px minmax(0, 1fr);
    font-size: 10px;
  }
  .button-row .button {
    font-size: 10px;
    padding: 7px 9px;
  }
  .settings-card h2 {
    font-size: 16px;
  }
  .toasts {
    right: 18px;
    bottom: 18px;
  }
  .thread-footer {
    gap: 7px;
  }
  .topbar .breadcrumb svg {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.directory-search {
  max-width: 420px;
}

.match-actions {
  margin: 0 0 16px;
}
.match-card {
  border-radius: 15px;
  background: #fff;
}
.match-reasons {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 10px 15px;
  font-size: 10px;
  color: #000;
}
.match-reasons svg {
  width: 13px;
  height: 13px;
}
.delivery-review summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}
.delivery-error {
  color: var(--danger) !important;
}

@media (max-width: 680px) {
  .page-heading {
    flex-wrap: wrap;
  }
  .page-heading > .button-row {
    max-width: 100%;
    flex-wrap: wrap;
  }
}

/* Owner-session entry and permission review stay deliberately monochrome. */
.sign-in-page {
  min-height: calc(100vh - 45px);
  display: grid;
  place-items: center;
  padding: 35px 18px;
}
.sign-in-card {
  width: min(560px, 100%);
  display: grid;
  gap: 22px;
}
.sign-in-card .eyebrow {
  margin: 0;
}
.sign-in-card .button {
  justify-self: start;
}
.scope-fieldset {
  display: grid;
  gap: 9px;
}
.scope-fieldset legend {
  margin-bottom: 7px;
}
.scope-fieldset .checkline {
  overflow-wrap: anywhere;
}
.sign-out {
  width: 100%;
}
@media (max-width: 680px) {
  .alpha-banner.real-mode .banner-detail {
    font-size: 10px;
  }
  .alpha-banner.real-mode .banner-detail:after {
    content: none;
  }
  .sign-out {
    font-size: 10px;
    padding: 7px;
  }
}

/* A quiet two-dot bump. No motion is necessary to understand a Boop. */
.boop-mark {
  display: flex;
  gap: 12px;
  padding: 16px;
  justify-content: center;
}
.boop-mark i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: currentColor;
  animation: boop-bump 600ms ease-in-out 1;
}
.boop-mark i + i {
  animation-direction: reverse;
}
@keyframes boop-bump {
  50% {
    transform: translateX(6px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .boop-mark i {
    animation: none;
  }
}

/* Private media stays within the existing conversation width. */
.message-media {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.75rem;
}
.message-media figure {
  margin: 0;
  display: grid;
  gap: 0.5rem;
}
.private-image {
  display: block;
  max-width: 100%;
  max-height: 32rem;
  object-fit: contain;
  border: 1px solid var(--border);
}
.reaction-row [aria-pressed="true"] {
  background: #000;
  color: #fff;
}

.identity-label {
  color: inherit;
  text-decoration: none;
  border-radius: 0.5rem;
}
.identity-label:focus-visible {
  outline: 2px solid #000;
  outline-offset: 5px;
}
.alpha-banner[hidden] {
  display: none;
}

@media (max-width: 900px) {
  .sidebar-bottom .identity-label {
    display: flex;
    min-width: 36px;
    min-height: 36px;
    justify-content: center;
  }
  .sidebar-bottom .identity-label > div {
    display: none;
  }
}
@media (max-width: 680px) {
  .sidebar-bottom {
    display: flex;
    gap: 6px;
    align-items: center;
  }
}
@media (max-width: 680px) {
  .sidebar-bottom {
    width: 100%;
    max-width: 100%;
    margin: 0;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .sidebar-bottom .identity-label > div {
    display: block;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .identity-controls {
    max-width: 100%;
    flex-wrap: wrap;
  }
}
