/* Torc member workspace. First-party assets; no external fonts or trackers. */

.product-active {
  background: var(--canvas);
  color: var(--ink);
}
.product-active > header {
  max-width: 1600px;
  padding: 24px 36px;
  border-bottom: 1px solid #2c2c2c;
}
.product-active > header .wordmark {
  font-size: 38px;
}
.product-active > header > .eyebrow {
  color: #d7ccc9;
  letter-spacing: 0.13em;
}
.product-active main {
  max-width: 1600px;
  padding: 0 36px;
  margin: 0 auto 120px;
}
.product-active > footer {
  max-width: 1528px;
  padding-block: 22px;
}
#product-shell {
  grid-template-columns: 200px minmax(0, 1fr);
  column-gap: 42px;
}
.workspace-rail {
  position: sticky;
  top: 20px;
  height: calc(100dvh - 150px);
  min-height: 430px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #2c2c2c;
  padding: 32px 20px 0 0;
}
.rail-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d7ccc9;
  font-size: 9px;
  letter-spacing: 0.15em;
  margin: 0 10px 28px;
  line-height: 1.6;
}
.rail-brand .ring {
  width: 17px;
  height: 17px;
  border-width: 3px;
  flex: 0 0 17px;
}
.product-nav {
  position: static;
  gap: 6px;
  padding: 0;
}
.nav-item {
  min-height: 54px;
  padding: 13px 15px;
  border-radius: 9px;
  font-weight: 500;
}
.nav-item[aria-current="page"] {
  background: #2c2c2c;
  color: #f2e9e4;
  border-color: #414141;
}
.nav-item:hover {
  background: #1b1b1b;
  filter: none;
}
.nav-icon {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
}
.rail-foot {
  margin-top: auto;
  padding-top: 28px;
}
.rail-foot > p {
  font-size: 12px;
  padding-inline: 10px;
  max-width: 150px;
}
.rail-identity {
  padding: 18px 4px;
  margin-top: 20px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: none;
  color: var(--ink);
  justify-content: flex-start;
  gap: 10px;
  text-align: left;
}
.rail-identity > span:last-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.rail-identity strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.rail-identity .small {
  font-size: 10px;
  font-weight: 400;
}
.rail-identity .mini-avatar {
  width: 32px;
  height: 36px;
  border-radius: 8px;
  background: #2c2c2c;
}
.product-content {
  padding-top: 28px;
}
.view-heading {
  padding: 8px 0 28px;
}
.view-heading .eyebrow {
  font-size: 10px;
  letter-spacing: 0.2em;
  margin: 0;
}
.view-heading h1 {
  margin: 14px 0 12px;
  font-size: clamp(42px, 4.1vw, 64px);
  line-height: 1;
  letter-spacing: -0.04em;
  max-width: 900px;
}
.view-heading > p:last-child {
  font-size: 15px;
  line-height: 1.65;
  color: #d7ccc9;
}
.product-content .primary,
.product-dialog .primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #131313;
}
.product-content button:focus-visible,
.product-dialog button:focus-visible {
  outline: 2px solid #d7ccc9;
  outline-offset: 3px;
}
.product-content input,
.product-content textarea,
.product-content select {
  background: #131313;
  border-color: #414141;
}
.product-content button:disabled {
  cursor: wait;
}
.product-content .text-button {
  color: #d7ccc9;
}
.setup-callout {
  background: #1b1b1b;
  border: 1px solid #6c6c6c;
  border-radius: 12px;
  padding: 18px 22px;
  line-height: 1.6;
}
.people-search {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #414141;
  border-radius: 12px;
  padding: 7px 8px 7px 18px;
  background: #1b1b1b;
  margin-bottom: 20px;
}
.people-search > .nav-icon {
  color: #d7ccc9;
}
.product-content .people-search input {
  border: 0;
  background: none;
  min-width: 0;
  box-shadow: none;
  padding: 10px 0;
  font-size: 14px;
}
.people-search button {
  width: auto;
  flex-shrink: 0;
  min-width: 96px;
  justify-content: center;
  border-radius: 8px;
}
.discovery-choices {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.discovery-intents {
  margin: 0 0 16px;
}
.intent-pill {
  border: 0;
  min-height: 42px;
  background: #1b1b1b;
  color: #d7ccc9;
}
.intent-pill[aria-pressed="true"] {
  background: #d7ccc9;
  color: #1b1b1b;
}
.shared-filter {
  width: auto;
  flex-shrink: 0;
  padding: 9px 14px;
  min-height: 42px;
  border-color: #414141;
  color: #f2e9e4;
  background: transparent;
  font-size: 12px;
  border-radius: 24px !important;
}
.shared-filter[aria-pressed="true"] {
  background: #f2e9e4;
  color: #131313;
}
.discovery-toolbar {
  border-top: 0;
  padding-top: 0;
  gap: 10px 20px;
}
.filter-disclosure {
  flex-basis: 250px;
}
.filter-summary {
  font-size: 13px;
}
.discovery-filters {
  background: #1b1b1b;
  border: 1px solid #414141;
  border-radius: 10px;
  padding: 24px;
}
.applied-filters {
  margin-top: 14px;
}
.nearby-panel {
  border: 0;
  margin-bottom: 2px;
}
.nearby-panel > summary {
  min-height: 40px;
  font-size: 11px;
  color: #d7ccc9;
}
.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #2c2c2c;
  padding-top: 16px;
  margin-top: 8px;
}
.results-toolbar > p {
  margin: 0;
  font-size: 12px;
}
.view-switch {
  display: flex;
  border: 1px solid #414141;
  border-radius: 8px;
  padding: 3px;
  gap: 3px;
}
.view-button {
  width: auto;
  min-height: 36px;
  padding: 6px 13px;
  font-size: 11px;
  background: none;
  border: 0;
  color: #d7ccc9;
}
.view-button[aria-pressed="true"] {
  background: #2c2c2c;
  color: #f2e9e4;
}
.people-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 20px 0 30px;
}
.person-card {
  display: flex;
  flex-direction: column;
  background: #1b1b1b;
  border: 1px solid #414141;
  border-radius: 14px !important;
  overflow: hidden;
  min-width: 0;
  transition:
    border-color 160ms,
    background-color 160ms;
}
.person-card:hover {
  transform: none;
  background: #1b1b1b;
  border-color: #6c6c6c;
}
.person-open {
  background: none;
  border: 0;
  border-radius: 0 !important;
  color: inherit;
  padding: 0;
  gap: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  flex: 1;
  min-width: 0;
  text-align: left;
  font-weight: 400;
}
.person-open:hover {
  filter: none;
}
.portrait {
  aspect-ratio: 1.85;
}
.portrait > span:first-child {
  font-size: 88px;
  font-weight: 800;
  opacity: 0.9;
}
.portrait::before {
  border-width: 18px;
  border-color: #ffffff08;
}
.portrait::after {
  border-width: 1px;
  border-color: #ffffff25;
}
.person-copy {
  min-width: 0;
  overflow-wrap: anywhere;
  width: 100%;
  padding: 18px 18px 0;
}
.person-title h2 {
  font-size: 23px;
  font-weight: 550;
  margin-bottom: 6px;
}
.area-label {
  color: #d7ccc9;
  font-size: 11px;
}
.person-bio {
  font-size: 13px;
  min-height: 42px;
  line-height: 1.65;
  -webkit-line-clamp: 2;
}
.person-copy .basic-summary,
.person-copy .identity-summary {
  color: #d7ccc9;
  font-size: 11px;
}
.person-copy .chips {
  padding-bottom: 12px;
}
.person-copy .chip {
  font-size: 10px;
  background: #2c2c2c;
  border-color: #414141;
  padding: 5px 8px;
}
.person-intent {
  font-size: 11px;
  color: #d7ccc9;
  padding-top: 12px;
  padding-bottom: 12px;
  margin-top: 0;
}
.person-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid #2c2c2c;
  margin: 0 18px;
  padding: 6px 0;
}
.person-actions button {
  width: auto;
  font-size: 11px;
  min-height: 42px;
}
.person-actions .text-button {
  font-weight: 500;
}
.card-save {
  background: none;
  border: 0;
  color: #d7ccc9;
  padding: 8px 0 8px 10px;
  gap: 6px;
}
.card-save .nav-icon {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
}
.card-save[aria-pressed="true"] {
  color: #d7ccc9;
}
.card-save[aria-pressed="true"] svg {
  fill: #adadad33;
}
.people-list {
  grid-template-columns: 1fr;
  gap: 12px;
}
.people-list .person-card {
  flex-direction: row;
  align-items: stretch;
}
.people-list .person-open {
  flex-direction: row;
}
.people-list .portrait {
  width: 138px;
  min-height: 170px;
  aspect-ratio: auto;
  flex-shrink: 0;
}
.people-list .person-copy {
  padding: 18px 20px 4px;
}
.people-list .person-bio {
  margin: 10px 0;
  min-height: 0;
}
.people-list .person-copy .basic-summary,
.people-list .person-copy .identity-summary {
  display: inline;
  margin-right: 8px;
}
.people-list .person-intent {
  border: 0;
  margin: 0;
  padding-top: 2px;
}
.people-list .person-actions {
  width: 118px;
  flex: 0 0 118px;
  flex-direction: column;
  justify-content: center;
  border-top: 0;
  border-left: 1px solid #2c2c2c;
  margin: 14px 0;
  padding: 0 10px;
}
.people-list .shared-badge {
  font-size: 9px;
  left: 7px;
  right: 7px;
  text-align: center;
}
.product-dialog {
  background: #1b1b1b;
  border: 1px solid #6c6c6c;
  border-radius: 18px;
  box-shadow: 0 30px 100px #0007;
}
.product-dialog .section-heading {
  background: #1b1b1b;
}
.product-dialog .profile-monogram {
  background: #414141;
  border-color: #6c6c6c;
  border-radius: 12px;
}
.product-dialog .profile-details {
  background: #1b1b1b;
  padding: 8px 14px;
  border: 1px solid #414141;
  border-radius: 8px;
}
.product-dialog .profile-details > summary {
  color: #f2e9e4;
  font-weight: 550;
}
.product-dialog .profile-details .profile-basics {
  padding-bottom: 8px;
}
.product-dialog .profile-bio {
  font-size: 18px;
}
.product-dialog h3 {
  font-size: 15px;
}
.product-dialog .dialog-body > .button-row button {
  min-width: 140px;
}
/* Conversation workspace */
.inbox-workspace {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  min-height: 580px;
  height: min(760px, calc(100dvh - 240px));
  border: 1px solid #414141;
  background: #131313;
  border-radius: 14px;
  overflow: hidden;
}
.inbox-sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 18px 12px 12px;
  border-right: 1px solid #414141;
  overflow: hidden;
  background: #1b1b1b;
}
.inbox-sidebar .inbox-tabs {
  margin: 0 0 16px;
  gap: 6px;
}
.inbox-sidebar .inbox-tabs button {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  padding: 9px;
  justify-content: center;
  border-color: #414141;
  font-size: 13px;
}
.inbox-sidebar .inbox-tabs button[aria-pressed="true"] {
  background: #d7ccc9;
  color: #131313;
}
.inbox-sidebar > input {
  font-size: 13px;
  margin: 0;
  min-height: 44px;
}
.inbox-sidebar > select {
  font-size: 12px;
  margin-bottom: 10px;
}
.inbox-sidebar > p {
  font-size: 10px;
  padding-inline: 4px;
  margin-block: 12px 7px;
}
.inbox-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
}
.inbox-list .conversation-row {
  padding: 15px 10px;
  gap: 10px;
  margin: 0 0 4px;
  min-height: 80px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px !important;
}
.inbox-list .conversation-row[aria-current="true"] {
  background: #2c2c2c;
  border-color: #6c6c6c;
}
.inbox-list .conversation-row:hover {
  background: #2c2c2c;
}
.inbox-list .mini-avatar {
  width: 35px;
  height: 42px;
  border-radius: 9px;
  background: #414141;
  color: #d7ccc9;
  font-weight: 500;
}
.conversation-copy {
  flex: 1;
  min-width: 0;
}
.conversation-copy strong {
  font-size: 13px;
  font-weight: 600;
}
.conversation-copy .message-preview {
  font-size: 11px;
  max-width: none;
  color: #d7ccc9;
  margin-top: 4px;
}
.conversation-meta {
  display: grid;
  align-self: flex-start;
  gap: 7px;
  text-align: right;
  color: #d7ccc9;
  font-size: 9px;
  font-weight: 400;
  padding-top: 3px;
}
.conversation-meta span {
  color: #d7ccc9;
}
.inbox-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid #2c2c2c;
  padding-top: 8px;
  margin-top: 10px;
}
.inbox-tools button {
  width: auto;
  font-size: 10px;
  min-height: 42px;
}
.inbox-tools [aria-pressed="true"]::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d7ccc9;
}
.inbox-empty {
  padding: 22px 10px;
}
.inbox-empty h3 {
  margin: 0;
  font-size: 17px;
}
.inbox-empty p {
  font-size: 12px;
}
.inbox-empty .text-button {
  font-size: 12px;
}
.conversation-pane {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 0 22px 12px;
  overflow: hidden;
  position: relative;
}
.conversation-empty {
  margin: auto;
  padding: 36px 20px;
  text-align: center;
  max-width: 420px;
}
.conversation-empty h2 {
  font:
    800 44px/1.05 BigShoulders,
    Impact,
    sans-serif;
  white-space: pre-line;
  letter-spacing: -0.02em;
  margin: 20px 0;
}
.conversation-empty .eyebrow {
  font-size: 9px;
}
.conversation-empty p {
  font-size: 13px;
  line-height: 1.7;
}
.conversation-empty button {
  width: auto;
  margin: 24px auto 0;
}
.empty-symbol {
  display: grid;
  place-items: center;
  border: 1px solid #414141;
  border-radius: 50%;
  width: 64px;
  height: 64px;
  margin: 0 auto 26px;
  color: #d7ccc9;
  font-size: 28px;
}
.thread-loading {
  margin: auto;
  padding: 32px;
  color: #d7ccc9;
}
.thread-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0 15px;
  border-bottom: 1px solid #414141;
  flex-shrink: 0;
}
.thread-heading > div {
  flex: 1;
  min-width: 0;
}
.thread-heading h2 {
  font-size: 21px;
  margin: 0;
  overflow-wrap: anywhere;
}
.thread-heading p {
  margin: 3px 0 0;
  font-size: 10px;
}
.thread-heading > .text-button {
  width: auto;
  font-size: 11px;
}
.thread-heading .mini-avatar {
  width: 38px;
  height: 44px;
  border-radius: 8px;
  color: #d7ccc9;
}
.thread-back {
  display: none;
}
.thread-loading-back {
  display: inline-flex;
  align-self: flex-start;
}
.thread-status {
  color: #d7ccc9;
  margin: 6px 0;
  flex-shrink: 0;
}
.thread-status:empty {
  display: none;
}
.first-introduction {
  margin: 0;
  padding: 6px 0;
  border-top: 0;
  flex-shrink: 0;
  max-height: 160px;
  overflow-y: auto;
}
.first-introduction summary {
  font-size: 11px;
  color: #d7ccc9;
  min-height: 36px;
}
.first-introduction .intro-message {
  font-size: 13px;
  margin: 0 0 8px;
}
.thread-feed {
  flex: 1;
  min-height: 140px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
  padding: 12px 2px 24px;
  scrollbar-width: thin;
  scroll-behavior: auto;
}
.message-day {
  color: #d7ccc9;
  font-size: 10px;
  text-align: center;
  margin: 16px 0 12px;
}
.thread-feed .message-bubble {
  max-width: 88%;
  background: #2c2c2c;
  padding: 10px 14px;
  border-radius: 11px 11px 11px 3px;
}
.thread-feed .message-bubble.mine {
  background: #2c2c2c;
  border-radius: 11px 11px 3px 11px;
}
.thread-feed .message-bubble p {
  font-size: 14px;
  line-height: 1.6;
}
.message-author {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.thread-feed .message-bubble time {
  display: block;
  text-align: right;
  font-size: 9px;
  margin-top: 4px;
  color: #d7ccc9;
}
.chat-beginning {
  text-align: center;
  margin: auto;
  padding: 20px;
}
.chat-beginning h3 {
  font-size: 21px;
  margin: 0;
}
.chat-beginning p {
  max-width: 280px;
}
.message-composer {
  border: 1px solid #6c6c6c;
  background: #1b1b1b;
  border-radius: 12px;
  padding: 10px 12px;
  margin: 0;
  flex-shrink: 0;
}
.product-content .message-composer textarea {
  background: none;
  border: 0;
  padding: 8px 0;
  resize: vertical;
  max-height: 160px;
  min-height: 60px;
  font-size: 14px;
}
.composer-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
}
.composer-bottom p {
  font-size: 9px;
  margin: 0;
  flex: 1;
}
.composer-bottom .character-count {
  margin: 0;
  font-size: 10px;
}
.composer-bottom button {
  width: auto;
  min-height: 40px;
  padding: 8px 13px;
  font-size: 12px;
  margin: 0;
}
.conversation-pane > .small {
  font-size: 9px;
  margin: 8px 0 0;
}
.conversation-pane .safety-actions {
  border-top: 0;
  margin: 0;
  gap: 18px;
  justify-content: flex-end;
  flex-shrink: 0;
}
.conversation-pane .safety-actions button {
  min-height: 30px;
  font-size: 10px;
  padding-block: 4px;
}
.conversation-pane > .button-row {
  margin: 20px 0;
}
.request-decision {
  margin: auto 0 0;
  padding-top: 28px;
}
.request-decision h3 {
  margin: 0;
  font-size: 23px;
}
.request-decision p {
  font-size: 13px;
}
.earlier-messages {
  min-height: 36px;
  justify-content: center;
  font-size: 11px;
  padding: 6px;
  flex-shrink: 0;
}
.new-messages {
  width: auto;
  position: absolute;
  bottom: 190px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  min-height: 36px;
  border-radius: 20px !important;
  box-shadow: 0 4px 16px #0005;
}
/* Sectioned profile editor: one draft, one save action, separate account forms. */
.profile-state {
  border-bottom: 1px solid #2c2c2c;
  padding-bottom: 22px;
  margin-bottom: 26px;
}
.profile-state p {
  font-size: 12px;
}
.editor-workspace {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.editor-menu {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 5px;
}
.editor-menu-item {
  background: transparent;
  border: 1px solid transparent;
  color: #d7ccc9;
  padding: 13px 12px;
  min-height: 54px;
  font-size: 12px;
  text-align: left;
  justify-content: flex-start;
  gap: 12px;
}
.editor-menu-item[aria-pressed="true"] {
  border-color: #414141;
  background: #2c2c2c;
  color: #f2e9e4;
}
.section-number {
  color: #adadad;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.editor-menu-item[aria-pressed="true"] .section-number {
  color: #d7ccc9;
}
.editor-menu > p {
  margin-top: 22px;
  padding: 0 12px;
  font-size: 11px;
  line-height: 1.7;
}
.editor-preview {
  margin-top: 18px;
  text-align: left;
  font-size: 11px;
}
.editor-body {
  min-width: 0;
  padding-bottom: 80px;
}
.profile-editor {
  max-width: none;
}
.editor-panel {
  border: 1px solid #414141;
  background: #1b1b1b;
  border-radius: 12px;
  padding: 28px;
}
.editor-panel-heading {
  padding-bottom: 24px;
  border-bottom: 1px solid #2c2c2c;
  margin-bottom: 20px;
}
.editor-panel-heading .eyebrow {
  margin: 0 0 12px;
  font-size: 9px;
}
.editor-panel-heading h2 {
  font-size: 29px;
  font-weight: 500;
}
.editor-panel-heading p:last-child {
  margin-bottom: 0;
  font-size: 13px;
}
.editor-panel > .editor-section,
.editor-panel > .account-settings {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin-bottom: 18px;
}
.editor-panel > .editor-section > h2 {
  font-size: 17px;
}
.editor-panel .editor-section > summary {
  font-size: 16px;
}
.editor-panel > div > .editor-section {
  padding: 16px;
  background: #1b1b1b;
  border-color: #2c2c2c;
}
.editor-panel .profile-editor input,
.editor-panel input,
.editor-panel textarea {
  font-size: 14px;
}
.editor-panel .field {
  margin-top: 18px;
}
.editor-panel .basic-field .choice {
  min-height: 44px;
  font-size: 11px;
}
.editor-panel .basics-grid {
  gap: 22px 18px;
}
.editor-panel .choice-row {
  gap: 8px 16px;
}
.editor-panel .interest-option {
  padding-block: 16px;
}
.editor-panel .interest-name strong {
  font-size: 14px;
}
.editor-panel .interest-group > summary {
  color: #d7ccc9;
}
.editor-panel .account-settings #account {
  margin-top: 12px;
}
.editor-panel .nearby-panel {
  margin-top: 22px;
  border-top: 1px solid var(--line);
}
.product-content .profile-savebar {
  position: fixed;
  z-index: 8;
  bottom: 24px;
  left: calc(50% + 110px);
  transform: translateX(-50%);
  width: min(900px, calc(100vw - 310px));
  margin: 0;
  padding: 13px 18px;
  background: #2c2c2cf5;
  border: 1px solid #6c6c6c;
  border-radius: 12px;
  box-shadow: 0 10px 40px #0008;
}
.profile-savebar .save-state {
  font-size: 12px;
}
.profile-savebar button {
  min-width: 160px;
  justify-content: center;
  background: #d7ccc9;
  border-color: #d7ccc9;
}
.product-status:not(:empty) {
  position: fixed;
  z-index: 20;
  bottom: 108px;
  left: calc(50% + 100px);
  transform: translateX(-50%);
  right: auto;
  width: min(640px, calc(100vw - 300px));
}
@media (min-width: 1500px) {
  .people-grid:not(.people-list) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1250px) {
  #product-shell {
    grid-template-columns: 170px minmax(0, 1fr);
    column-gap: 28px;
  }
  .workspace-rail {
    padding-right: 14px;
  }
  .people-grid:not(.people-list) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .inbox-workspace {
    grid-template-columns: 260px minmax(0, 1fr);
  }
  .conversation-pane {
    padding-inline: 16px;
  }
  .editor-workspace {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 20px;
  }
  .editor-panel {
    padding: 22px;
  }
  .discovery-choices {
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 14px;
  }
  .discovery-intents {
    margin-bottom: 10px;
  }
  .editor-panel .basics-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1000px) {
  .product-active main {
    padding-inline: 24px;
  }
  .product-active > header {
    padding-inline: 24px;
  }
  #product-shell {
    grid-template-columns: 145px minmax(0, 1fr);
    column-gap: 24px;
  }
  .rail-brand {
    font-size: 8px;
    gap: 8px;
    margin-inline: 4px;
  }
  .nav-item {
    font-size: 13px;
    padding: 12px 10px;
    gap: 9px;
  }
  .inbox-workspace {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .inbox-sidebar {
    padding-inline: 8px;
  }
  .thread-heading {
    gap: 9px;
  }
  .thread-heading > .mini-avatar {
    display: none;
  }
  .composer-bottom > p {
    display: none;
  }
  .composer-bottom .character-count {
    flex: 1;
    text-align: left;
  }
  .editor-workspace {
    display: block;
  }
  .editor-menu {
    position: static;
    display: flex;
    overflow-x: auto;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 8px;
  }
  .editor-menu-item {
    width: auto;
    flex-shrink: 0;
    min-height: 44px;
    white-space: nowrap;
    padding: 10px 12px;
  }
  .editor-menu .section-number,
  .editor-menu > p {
    display: none;
  }
  .editor-preview {
    flex-shrink: 0;
    width: auto;
    margin: 0;
    white-space: nowrap;
  }
  .people-list .portrait {
    width: 100px;
  }
  .people-list .person-actions {
    width: 92px;
    flex-basis: 92px;
  }
  .people-list .person-actions .text-button {
    font-size: 10px;
  }
}
@media (max-width: 800px) {
  .inbox-workspace {
    display: block;
    min-height: 460px;
    height: calc(100dvh - 240px);
  }
  .inbox-sidebar {
    height: 100%;
    border: 0;
    padding: 16px;
  }
  .conversation-pane {
    display: none;
    height: 100%;
  }
  .inbox-workspace.thread-open .inbox-sidebar {
    display: none;
  }
  .inbox-workspace.thread-open .conversation-pane {
    display: flex;
  }
  .thread-heading .thread-back {
    display: flex;
    font-size: 11px;
    margin-right: 2px;
  }
  .thread-heading > .text-button:last-child {
    font-size: 10px;
  }
  .conversation-copy .message-preview {
    max-width: 100%;
  }
  .conversation-row .conversation-meta {
    min-width: 40px;
  }
}
@media (max-width: 700px) {
  .product-active > header {
    padding: 18px 18px 16px;
  }
  .product-active > header .wordmark {
    font-size: 34px;
  }
  .product-active > header > .eyebrow {
    font-size: 8px;
    max-width: 125px;
    text-align: right;
  }
  .product-active main {
    padding: 0 16px;
    margin-bottom: 130px;
  }
  #product-shell {
    display: block;
  }
  .workspace-rail {
    display: contents;
  }
  .rail-brand,
  .rail-foot {
    display: none;
  }
  .product-nav {
    position: fixed;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 15;
    padding: 8px 10px max(10px, env(safe-area-inset-bottom));
    background: #131313f5;
    border-top: 1px solid #414141;
    gap: 4px;
    backdrop-filter: blur(16px);
  }
  .nav-item {
    flex-direction: column;
    font-size: 10px;
    gap: 5px;
    min-height: 55px;
    padding: 6px;
  }
  .product-content {
    padding-top: 20px;
  }
  .view-heading {
    padding: 0 0 24px;
  }
  .view-heading h1 {
    font-size: 46px;
    max-width: 390px;
    margin-top: 13px;
  }
  .view-heading > p:last-child {
    font-size: 13px;
    line-height: 1.65;
  }
  .people-search {
    padding-left: 12px;
    gap: 8px;
    border-radius: 10px;
    margin-bottom: 16px;
  }
  .product-content .people-search input {
    font-size: 16px;
  }
  .people-search > .nav-icon {
    display: none;
  }
  .people-search button {
    min-width: 68px;
    font-size: 12px;
    padding-inline: 12px;
  }
  .intent-pill {
    padding-inline: 13px;
    font-size: 11px;
    min-height: 40px;
  }
  .shared-filter {
    font-size: 11px;
    min-height: 40px;
  }
  .discovery-toolbar {
    gap: 8px;
  }
  .filter-disclosure {
    flex-basis: 180px;
  }
  .discovery-toolbar > .text-button {
    font-size: 11px;
  }
  .discovery-filters {
    padding: 16px;
  }
  .results-toolbar {
    gap: 10px;
  }
  .results-toolbar > p {
    font-size: 10px;
    max-width: 65%;
  }
  .view-button {
    padding: 6px 10px;
  }
  .people-grid {
    gap: 12px;
    margin-top: 16px;
  }
  .portrait {
    aspect-ratio: 1.4;
  }
  .portrait > span:first-child {
    font-size: 74px;
  }
  .person-copy {
    padding: 14px 12px 0;
  }
  .person-title h2 {
    font-size: 20px;
  }
  .person-bio {
    font-size: 12px;
    -webkit-line-clamp: 3;
    min-height: 58px;
  }
  .person-copy .basic-summary,
  .person-copy .identity-summary {
    font-size: 10px;
  }
  .person-copy .chip {
    font-size: 9px;
    padding-inline: 6px;
  }
  .person-actions {
    margin-inline: 12px;
    gap: 3px;
  }
  .person-actions button {
    font-size: 10px;
  }
  .card-save {
    padding-left: 4px;
    gap: 4px;
  }
  .card-save .nav-icon {
    width: 14px;
    flex-basis: 14px;
  }
  .person-intent {
    font-size: 10px;
  }
  .people-list .person-card {
    flex-wrap: wrap;
  }
  .people-list .person-open {
    flex-basis: 100%;
  }
  .people-list .portrait {
    width: 100px;
    min-height: 170px;
  }
  .people-list .person-copy {
    padding: 16px 14px 0;
  }
  .people-list .person-bio {
    min-height: 0;
  }
  .people-list .person-actions {
    flex-direction: row;
    justify-content: space-between;
    flex: 1;
    width: auto;
    border-left: 0;
    border-top: 1px solid #2c2c2c;
    margin: 0 14px;
    padding: 4px 0;
  }
  .people-list .person-actions button {
    font-size: 12px;
  }
  .inbox-workspace {
    min-height: 450px;
    height: calc(100dvh - 270px);
    border-radius: 12px;
  }
  .thread-heading {
    padding-block: 14px 12px;
  }
  .thread-heading h2 {
    font-size: 19px;
  }
  .conversation-pane {
    padding-inline: 14px;
  }
  .product-content .message-composer textarea,
  .inbox-sidebar > input,
  .inbox-sidebar > select {
    font-size: 16px;
  }
  .conversation-empty h2 {
    font-size: 40px;
  }
  .editor-panel {
    padding: 20px 16px;
  }
  .editor-panel-heading h2 {
    font-size: 26px;
  }
  .editor-menu-item {
    font-size: 11px;
  }
  .editor-panel input,
  .editor-panel textarea,
  .editor-panel select {
    font-size: 16px;
  }
  .editor-panel .basics-grid {
    gap: 20px;
  }
  .profile-state {
    gap: 12px;
    padding-bottom: 18px;
  }
  .profile-state p {
    font-size: 11px;
  }
  .product-content .profile-savebar {
    left: 14px;
    right: 14px;
    width: auto;
    transform: none;
    bottom: calc(85px + env(safe-area-inset-bottom));
    padding: 11px 13px;
    gap: 12px;
  }
  .profile-savebar .save-state {
    font-size: 11px;
  }
  .profile-savebar button {
    min-width: 130px;
    font-size: 12px;
  }
  .product-status:not(:empty) {
    bottom: calc(165px + env(safe-area-inset-bottom));
    left: 14px;
    right: 14px;
    width: auto;
    transform: none;
    font-size: 12px;
  }
}
@media (max-width: 370px) {
  .people-grid:not(.people-list) {
    grid-template-columns: 1fr;
  }
  .portrait {
    aspect-ratio: 1.9;
  }
  .person-bio {
    min-height: 0;
  }
  .person-actions button {
    font-size: 12px;
  }
  .view-heading h1 {
    font-size: 42px;
  }
  .thread-heading > .text-button:last-child {
    max-width: 62px;
    white-space: normal;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
/* Private Favorites and intentional, opt-in interest signals. */
.favorite-profile-action {
  margin: 24px 0 14px;
}
.favorite-profile-action > p {
  flex-basis: 100%;
  margin: 0;
}
.spark-action {
  border: 1px solid #414141;
  background: #1b1b1b;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0 28px;
}
.product-dialog .spark-action h3 {
  color: #f2e9e4;
  font-size: 23px;
  margin: 0 0 10px;
}
.spark-action .spark-heading:focus {
  outline: none;
}
.spark-action > button {
  width: auto;
  margin-top: 14px;
}
.spark-feedback,
.mutual-spark {
  color: #d7ccc9;
  line-height: 1.6;
}
.spark-feedback {
  padding: 9px 12px;
  border: 1px solid #6c6c6c;
  border-radius: 7px;
  background: #2c2c2c;
}
.spark-explainer {
  margin-top: 18px;
  padding-top: 8px;
  border-top: 1px solid #414141;
}
.spark-explainer summary {
  min-height: 36px;
  font-size: 12px;
  color: #d7ccc9;
}
.spark-action > p {
  line-height: 1.7;
}
.spark-list {
  display: grid;
  gap: 12px;
}
.spark-row {
  padding: 14px;
  border: 1px solid #414141;
  border-radius: 10px;
  background: #1b1b1b;
}
.spark-person {
  padding: 0;
  gap: 10px;
  background: none;
  border: 0;
  text-align: left;
  justify-content: flex-start;
  color: #f2e9e4;
}
.spark-person > span:last-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}
.spark-person strong {
  overflow-wrap: anywhere;
  font-size: 14px;
}
.spark-person .small {
  font-size: 11px;
  overflow-wrap: anywhere;
}
.spark-row > p {
  font-size: 12px;
  margin: 8px 0;
}
.spark-row > time {
  font-size: 10px;
}
.spark-row .button-row {
  margin-top: 10px;
  gap: 8px;
}
.spark-row .button-row > button {
  font-size: 11px;
  padding: 8px 10px;
  min-height: 40px;
}
.spark-row .button-row > .text-button {
  margin-left: auto;
}
.spark-preferences form {
  margin-top: 16px;
}
.spark-preferences .check {
  align-items: flex-start;
}
.spark-preferences button {
  width: auto;
}
@media (max-width: 700px) {
  .spark-action {
    padding: 18px 16px;
  }
  .spark-person {
    min-height: 48px;
  }
  .spark-row .button-row > button {
    min-height: 44px;
    font-size: 12px;
  }
}

/* Compact workspace: short labels, bounded controls and content-sized selections. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.product-active > header {
  padding: 12px 24px;
}
.product-active > header .wordmark {
  font-size: 30px;
}
.product-active > header > .eyebrow {
  display: none;
}
.product-active main {
  padding-inline: 24px;
}
#product-shell {
  grid-template-columns: 160px minmax(0, 1fr);
  column-gap: 24px;
}
.workspace-rail {
  padding: 18px 14px 0 0;
}
.nav-item {
  min-height: 44px;
  padding: 10px 12px;
}
.rail-foot {
  padding-top: 14px;
}
.rail-identity {
  display: flex;
  padding: 12px 4px;
  margin-top: 12px;
}
.product-content {
  padding-top: 12px;
}
.view-heading {
  padding: 4px 0 16px;
}
.view-heading h1 {
  margin: 4px 0;
  font-size: 30px;
  line-height: 1.15;
}
.product-content .view-heading h1:last-child {
  font-size: 30px;
}
.people-search {
  margin-bottom: 12px;
  padding: 4px 6px 4px 12px;
}
.people-search > button {
  min-width: 72px;
}
.discovery-intents {
  margin-bottom: 10px;
}
.discovery-toolbar {
  margin-block: 8px;
}
.results-toolbar {
  margin-block: 10px;
}
.profile-state {
  padding-bottom: 10px;
  margin-bottom: 14px;
}
.editor-workspace {
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 16px;
}
.editor-menu-item {
  min-height: 40px;
  padding: 9px 10px;
  font-size: 13px;
}
.editor-preview {
  margin-top: 8px;
}
.editor-panel {
  padding: 18px;
  border-radius: 10px;
}
.editor-panel > .editor-section {
  margin-block: 0 14px;
}
.editor-panel .field {
  margin-top: 10px;
}
.editor-panel .basics-grid {
  gap: 14px 18px;
}
.editor-panel .basic-field {
  gap: 5px;
}
.editor-panel .basic-heading {
  min-height: 30px;
  font-size: 13px;
}
.editor-panel .basic-field .choice {
  min-height: 30px;
}
.editor-panel > div > .editor-section {
  padding: 12px 0;
  border: 0;
  background: none;
}
.editor-panel .editor-section > summary {
  font-size: 14px;
}
.editor-panel .interest-option {
  padding-block: 10px;
}
.editor-panel .interest-name strong {
  font-size: 13px;
}
.editor-panel .nearby-panel {
  margin-top: 12px;
}
.product-content .profile-savebar {
  padding: 8px 12px;
  width: min(820px, calc(100vw - 260px));
  left: calc(50% + 90px);
}
.profile-savebar button {
  min-width: 84px;
}
.product-content .chip-picker {
  padding: 0;
  border: 0;
  background: none;
  display: grid;
  gap: 6px;
}
.picker-label {
  font-size: 13px;
  margin-top: 10px;
}
.product-content .chips,
.product-dialog .chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.product-content .chips > button,
.product-dialog .chips > button,
.product-content .single-picker > button.chip {
  display: inline-flex;
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  min-height: 32px;
  padding: 4px 10px;
  margin: 0;
  border-radius: 8px;
  font-size: 12px;
  text-align: left;
  white-space: normal;
}
.product-content .chip-picker > select,
.product-content .language-picker > select,
.product-content .single-picker > select {
  width: auto;
  max-width: 100%;
  min-height: 36px;
  margin: 0;
  padding-block: 7px;
}
.product-content .language-picker {
  display: grid;
  gap: 6px;
  justify-items: start;
}
.language-picker .custom-language {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
}
.product-content .custom-language input {
  min-width: 0;
  margin: 0;
}
.product-content .custom-language button {
  width: auto;
  margin: 0;
}
.product-content .chip-picker [role="status"]:empty,
.product-content .language-picker [role="status"]:empty,
.product-content .small:empty,
.product-dialog .small:empty {
  display: none;
}
.product-dialog {
  width: min(660px, calc(100% - 28px));
  padding: 18px 22px;
}
.product-dialog .section-heading {
  top: -18px;
  padding-block: 8px 10px;
}
.product-dialog h3 {
  margin-top: 18px;
}
.product-dialog .profile-hero {
  padding-block: 10px;
  gap: 12px;
}
.product-dialog .profile-name {
  font-size: 26px;
  margin: 0;
}
.product-dialog .profile-monogram {
  width: 64px;
  height: 74px;
  font-size: 36px;
}
.product-dialog .profile-bio {
  font-size: 15px;
  margin-block: 12px;
}
.profile-basics {
  gap: 10px 16px;
}
.product-dialog .conversation-prompt {
  padding: 12px;
  margin-block: 14px;
}
.spark-action {
  padding: 12px 14px;
  margin-block: 14px;
}
.product-dialog .spark-action h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.spark-action > p {
  margin-block: 6px;
}
.spark-explainer {
  margin-block: 6px;
}
.inbox-workspace {
  min-height: 540px;
}
.inbox-sidebar {
  padding: 14px;
}
.inbox-tabs {
  margin-bottom: 10px;
}
.inbox-tools {
  margin-top: 10px;
}
.conversation-row {
  padding: 10px;
  gap: 10px;
}
.conversation-empty {
  padding: 24px;
}
.conversation-empty h2 {
  font-size: 26px;
}
.conversation-empty > p {
  font-size: 13px;
}
.conversation-empty button {
  margin-top: 14px;
}
.direction-badge {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 7px;
  font-size: 19px;
  line-height: 1;
  font-weight: 600;
  flex-shrink: 0;
}
.direction-badge.incoming {
  color: #f2e9e4;
  background: #1b1b1b;
}
.direction-badge.outgoing {
  color: #d7ccc9;
  background: #1b1b1b;
}
.direction-badge.mutual {
  color: #dbccff;
  background: #322b46;
}
.request-kind {
  font-size: 10px;
  color: var(--muted);
}
.spark-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 10px;
  padding: 12px;
}
.spark-row .spark-person {
  padding: 0;
  width: auto;
  min-width: 0;
}
.spark-row > time {
  grid-column: 1 / -1;
  margin: 0;
}
.spark-row > p,
.spark-row .button-row {
  grid-column: 1 / -1;
  margin: 0;
}
.spark-row .button-row > button {
  min-height: 36px;
}
.relationship-row > .direction-badge {
  float: right;
  margin-left: 10px;
}
.relationship-row {
  padding: 12px 0;
}
.relationship-row p {
  margin-block: 6px;
}
.contact-setup {
  padding: 8px 0;
}
.contact-setup button {
  width: auto;
}
@media (max-width: 1000px) {
  #product-shell {
    grid-template-columns: 140px minmax(0, 1fr);
  }
  .workspace-rail {
    padding: 0;
  }
  .editor-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .editor-menu {
    display: flex;
    gap: 4px;
  }
  .editor-menu-item {
    width: auto;
    white-space: nowrap;
    padding-inline: 12px;
  }
  .product-content .profile-savebar {
    left: calc(50% + 75px);
    width: calc(100vw - 220px);
  }
}
@media (max-width: 700px) {
  .product-active > header {
    padding: 10px 16px;
  }
  .product-active main {
    padding-inline: 14px;
  }
  .view-heading h1,
  .product-content .view-heading h1:last-child {
    font-size: 26px;
  }
  .view-heading {
    padding-bottom: 12px;
  }
  .editor-panel {
    padding: 14px;
  }
  .editor-panel .basics-grid {
    gap: 14px;
  }
  .inbox-sidebar {
    padding: 12px;
  }
  .product-dialog {
    padding: 14px 16px;
  }
  .product-dialog .section-heading {
    top: -14px;
  }
  .product-content .profile-savebar {
    left: 50%;
    width: calc(100vw - 24px);
  }
  .product-content .chip-picker > select,
  .product-content .language-picker > select,
  .product-content .single-picker > select {
    font-size: 16px;
  }
}
@media (pointer: coarse) {
  .product-content .chips > button,
  .product-dialog .chips > button,
  .product-content .single-picker > button.chip,
  .editor-menu-item,
  .product-content .chip-picker > select,
  .product-content .language-picker > select,
  .product-content .single-picker > select,
  .spark-row .button-row > button {
    min-height: 44px;
  }
}

.product-content .chips:empty,
.product-dialog .chips:empty {
  display: none;
}
.place-picker .selected-place {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 12px;
  margin: 6px 0;
}
.location-info {
  margin-top: 4px;
}
.location-info summary {
  font-size: 11px;
}
.location-info p {
  font-size: 12px;
}

.spark-detail {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.spark-detail-profile {
  padding: 16px 0;
}
.spark-detail-profile p {
  margin: 0 0 10px;
  line-height: 1.6;
}
.spark-detail-state {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-block: 8px;
}
.spark-detail-actions {
  margin: 12px 0;
}

/* Read-only profile previews; all member actions live in the full profile. */
.person-card .person-open {
  width: 100%;
  height: 100%;
}
.visitor-list {
  display: grid;
  gap: 8px;
  max-width: 850px;
}
.visitor-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.visitor-row > span:nth-child(2) {
  display: grid;
  gap: 3px;
}
.visitor-row time {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--muted);
}
.intro-entry + .intro-entry {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 10px;
}
@media (max-width: 700px) {
  .product-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .visitor-row {
    gap: 8px;
    padding: 12px;
  }
  .visitor-row time {
    max-width: 110px;
  }
}
/* Instant chat view: the clicked row's own name, avatar and preview while the chat loads. */
.thread-shell { display: flex; flex-direction: column; gap: 10px; padding: 16px 14px 0; }
.thread-shell-heading { display: flex; align-items: center; gap: 10px; }
.thread-shell-preview { margin: 0; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
