/* Torc product preview. First-party fonts, no remote assets or tracking. */
.product-active {
  background: #131313;
}
.product-active > header {
  max-width: 1440px;
  padding-bottom: 24px;
}
.product-active main {
  display: block;
  max-width: 1440px;
  margin: 12px auto 60px;
  padding: 0 48px;
}
.product-active .intro {
  display: none;
}
.product-active .workspace {
  min-width: 0;
}
.product-active > footer {
  max-width: 1344px;
}
.product-active #status:not(:empty) {
  margin-left: 188px;
}
#product-shell {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  column-gap: 32px;
  align-items: start;
}
.product-nav {
  position: sticky;
  top: 28px;
  display: grid;
  gap: 8px;
  padding-top: 18px;
}
.nav-item {
  border: 1px solid transparent;
  background: transparent;
  color: #d7ccc9;
  justify-content: flex-start;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 15px;
}
.nav-item[aria-current="page"] {
  color: #f2e9e4;
  background: #1b1b1b;
  border-color: #2c2c2c;
}
.nav-item[aria-current="page"]:before {
  content: "";
  width: 5px;
  height: 5px;
  background: #d7ccc9;
  border-radius: 50%;
}
.product-content {
  min-width: 0;
}
.view-heading {
  padding: 12px 0 26px;
}
.view-heading h1 {
  font:
    800 clamp(42px, 4.3vw, 64px)/1.04 BigShoulders,
    Impact,
    sans-serif;
  letter-spacing: -0.7px;
  white-space: pre-line;
  margin: 10px 0 18px;
  outline: none;
}
.view-heading > p:last-child {
  max-width: 600px;
  margin-bottom: 0;
  font-size: 15px;
}
.product-content h3,
.product-dialog h3 {
  font-size: 14px;
  font-weight: 650;
  margin-top: 28px;
  color: #f2e9e4;
}
.product-content button,
.product-dialog button {
  border-radius: 6px;
}
.product-content input,
.product-content textarea,
.product-content select,
.product-dialog textarea,
.product-dialog select {
  border-radius: 6px;
  background: #131313;
  border-color: #414141;
  font: inherit;
  font-size: 14px;
}
.product-content textarea,
.product-dialog textarea {
  resize: vertical;
}
.product-content label,
.product-dialog label {
  margin-top: 10px;
}
.product-content .field > span,
.product-dialog .field > span {
  display: block;
  margin-bottom: 8px;
}
.discovery-filters {
  padding: 20px 24px 16px;
  background: #1b1b1b;
  border: 1px solid #2c2c2c;
  border-radius: 10px;
}
.filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 18px;
}
.discovery-filters details {
  margin-top: 18px;
  padding-top: 14px;
}
.discovery-filters .button-row {
  margin-top: 18px;
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.button-row > button {
  width: auto;
  flex: 0 1 auto;
  margin: 0;
}
.button-row > .text-button {
  padding: 10px 16px;
}
.filter-interest-list {
  display: grid;
  gap: 8px;
}
.filter-interest {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: #1b1b1b;
  border-radius: 6px;
  padding: 6px 12px;
  margin-top: 10px;
}
.filter-interest select {
  width: auto;
  flex: 1;
}
.filter-interest .text-button {
  width: auto;
  font-size: 11px;
}
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0;
}
.person-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  justify-content: flex-start;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  text-align: left;
  background: #1b1b1b;
  border: 1px solid #2c2c2c;
  color: #f2e9e4;
  font-weight: 400;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.person-card:hover {
  transform: translateY(-2px);
  filter: none;
  border-color: #adadad;
}
.portrait {
  aspect-ratio: 1.45;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #414141;
  isolation: isolate;
}
.portrait > span:first-child {
  font:
    800 88px/1 BigShoulders,
    Impact,
    sans-serif;
  color: #f2e9e499;
  position: relative;
  z-index: 2;
}
.portrait:before {
  content: "";
  position: absolute;
  width: 145%;
  height: 140%;
  border: 1px solid #ffffff12;
  border-radius: 50%;
  top: 35%;
  left: -70%;
}
.portrait:after {
  content: "";
  position: absolute;
  width: 80%;
  height: 130%;
  border: 1px solid #ffffff1c;
  border-radius: 50%;
  top: -60%;
  left: 60%;
}
.portrait-line {
  position: absolute;
  inset: auto 12% 16% 12%;
  border-bottom: 1px solid #ffffff1c;
}
.tone-1 {
  background: linear-gradient(135deg, #5e503e, #2c2c2c);
}
.tone-2 {
  background: linear-gradient(135deg, #3c5459, #2c2c2c);
}
.tone-3 {
  background: linear-gradient(135deg, #5c4b4a, #2c2c2c);
}
.tone-4 {
  background: linear-gradient(135deg, #414141, #2c2c2c);
}
.person-copy {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.person-title h2 {
  font-size: 21px;
  letter-spacing: -0.4px;
  margin: 0 0 5px;
}
.area-label {
  font-size: 11px;
  color: #d7ccc9;
  display: block;
}
.person-bio {
  font-size: 13px;
  line-height: 1.6;
  margin: 14px 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  display: inline-flex;
  align-items: center;
  background: #2c2c2c;
  color: #f2e9e4;
  border: 1px solid #414141;
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 500;
}
.person-copy > .chips {
  margin-top: auto;
}
.person-intent {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid #2c2c2c;
  font-size: 11px;
  color: #d7ccc9;
}
.setup-callout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
  padding: 16px 20px;
  border: 1px solid #414141;
  border-radius: 8px;
  background: #1b1b1b;
  font-size: 13px;
}
.setup-callout button {
  width: auto;
  white-space: nowrap;
}
.empty-state {
  grid-column: 1/-1;
  padding: 48px 24px;
  text-align: center;
  border: 1px dashed #414141;
  border-radius: 10px;
}
.empty-state p {
  color: #d7ccc9;
}
.empty-state button {
  margin: 20px auto 0;
  max-width: 220px;
}
.product-status {
  grid-column: 2;
  position: sticky;
  bottom: 20px;
  margin: 0;
  z-index: 5;
}
.product-status:not(:empty) {
  padding: 14px 20px;
  background: #d7ccc9;
  color: #131313;
  border-radius: 8px;
  box-shadow: 0 4px 24px #0006;
}
.product-status.error:not(:empty) {
  background: #f0b7a9;
  color: #331e18;
}
.product-dialog {
  width: min(640px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  color: #f2e9e4;
  background: #1b1b1b;
  border: 1px solid #414141;
  border-radius: 14px;
  padding: 28px;
  overscroll-behavior: contain;
}
.product-dialog::backdrop {
  background: #0d0d10cc;
  backdrop-filter: blur(5px);
}
.product-dialog .section-heading {
  position: sticky;
  top: -28px;
  background: #1b1b1b;
  padding: 12px 0;
  z-index: 1;
}
.product-dialog .section-heading h2 {
  margin: 0;
}
.product-dialog .error {
  color: #f2b6a5;
}
.product-dialog p,
.product-content p {
  overflow-wrap: anywhere;
}
.profile-bio {
  font-size: 18px;
  line-height: 1.65;
  white-space: pre-wrap;
}
.product-dialog .button-row {
  margin: 24px 0 8px;
}
.safety-actions {
  border-top: 1px solid #2c2c2c;
  display: flex;
  gap: 24px;
  margin-top: 28px;
}
.safety-actions .text-button {
  width: auto;
}
.product-dialog form {
  margin-top: 26px;
}
.list-title {
  margin-top: 38px;
  font-size: 17px;
}
.conversation-row {
  background: #1b1b1b;
  color: #f2e9e4;
  border: 1px solid #2c2c2c;
  margin: 10px 0;
  text-align: left;
  justify-content: flex-start;
  padding: 18px;
  gap: 18px;
}
.conversation-row > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.message-preview {
  display: block;
  font-size: 13px;
  color: #d7ccc9;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 42vw;
  font-weight: 400;
}
.mini-avatar {
  background: #414141;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.intro-message {
  background: #2c2c2c;
  border-left: 3px solid #adadad;
  padding: 16px;
  border-radius: 4px;
  white-space: pre-wrap;
}
.message-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 24px 0;
}
.message-bubble {
  align-self: flex-start;
  max-width: 88%;
  padding: 12px 16px;
  border-radius: 10px 10px 10px 0;
  background: #2c2c2c;
}
.message-bubble.mine {
  align-self: flex-end;
  background: #2c2c2c;
  border-radius: 10px 10px 0 10px;
}
.message-bubble p {
  margin: 4px 0;
  white-space: pre-wrap;
}
/* Shown the moment Send is pressed. Dimmed until the server confirms it; a
   confirmed message looks final at once (its time replaces "Sending…"). */
.message-bubble.pending.queued,
.message-bubble.pending.sending {
  opacity: 0.72;
}
.message-bubble.pending.failed,
.message-bubble.pending.unconfirmed {
  outline: 1px dashed var(--accent);
  outline-offset: 2px;
}
.message-bubble.pending.failed time,
.message-bubble.pending.unconfirmed time {
  color: var(--accent-text);
}
.message-pending-actions {
  display: inline-flex;
  gap: var(--space-2);
  margin-left: var(--space-2);
}
.message-pending-actions .text-button {
  min-height: 32px;
  padding: 0 var(--space-1);
  font-size: 12px;
  text-decoration: underline;
}
@media (prefers-reduced-motion: no-preference) {
  .message-bubble.pending.sending {
    animation: message-sending 1.2s ease-in-out infinite alternate;
  }
}
@keyframes message-sending {
  from { opacity: 0.55; }
  to { opacity: 0.8; }
}
.message-bubble time {
  font-size: 10px;
}
.profile-editor {
  max-width: 820px;
}
.editor-section,
.account-settings {
  padding: 24px;
  border: 1px solid #2c2c2c;
  border-radius: 10px;
  background: #1b1b1b;
  margin: 0 0 18px;
}
.editor-section > summary,
.account-settings > summary {
  font-size: 17px;
  color: #f2e9e4;
  font-weight: 550;
}
.profile-editor fieldset {
  margin: 20px 0 0;
  border: 0;
  padding: 0;
}
.profile-editor legend {
  font-size: 13px;
  margin-bottom: 6px;
}
.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.choice {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  min-height: 38px;
}
.choice input {
  margin: 0;
}
.interest-editor > input {
  margin: 20px 0;
}
.interest-option {
  padding: 16px 0;
  border-bottom: 1px solid #2c2c2c;
}
.interest-name {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  margin: 0 !important;
}
.interest-description {
  display: block;
  font-size: 11px;
  color: #d7ccc9;
  margin-top: 4px;
}
.interest-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-left: 30px;
}
.interest-option > .choice-row {
  margin-left: 30px;
}
.interest-group h3 {
  color: #adadad;
}
.account-settings {
  max-width: 820px;
}
.account-settings #account {
  margin-top: 24px;
}
.product-active #profile-form {
  display: none;
}
.account-settings .panel {
  background: #1b1b1b;
}
@media (min-width: 1500px) {
  .people-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1100px) {
  .people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-active main {
    padding: 0 28px;
  }
  #product-shell {
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 22px;
  }
}
@media (max-width: 700px) {
  .product-active > header {
    padding: 22px 20px 18px;
  }
  .product-active > header .eyebrow {
    font-size: 8px;
  }
  .product-active main {
    padding: 0 18px;
    margin: 0 auto 100px;
  }
  #product-shell {
    display: block;
  }
  .product-nav {
    position: fixed;
    bottom: 0;
    top: auto;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 8px 10px max(8px, env(safe-area-inset-bottom));
    background: #131313f5;
    border-top: 1px solid #414141;
    z-index: 10;
    backdrop-filter: blur(12px);
  }
  .nav-item {
    padding: 10px 6px;
    min-height: 48px;
    justify-content: center;
    font-size: 12px;
  }
  .nav-item[aria-current="page"]:before {
    display: none;
  }
  .view-heading {
    padding-top: 10px;
  }
  .view-heading h1 {
    font-size: 44px;
  }
  .view-heading > p:last-child {
    font-size: 13px;
  }
  .discovery-filters {
    padding: 16px;
  }
  .filter-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .people-grid {
    gap: 10px;
  }
  .person-copy {
    padding: 12px;
  }
  .person-title h2 {
    font-size: 18px;
  }
  .person-bio {
    font-size: 12px;
    min-height: 38px;
  }
  .chip {
    font-size: 10px;
    padding: 4px 6px;
  }
  .portrait {
    aspect-ratio: 1.2;
  }
  .portrait > span:first-child {
    font-size: 68px;
  }
  .person-intent {
    font-size: 10px;
  }
  .setup-callout {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .setup-callout button {
    width: 100%;
  }
  .product-status {
    position: fixed;
    bottom: 82px;
    left: 18px;
    right: 18px;
    font-size: 13px;
  }
  .product-dialog {
    padding: 20px;
    width: calc(100% - 20px);
    max-height: calc(100dvh - 24px);
  }
  .product-dialog .section-heading {
    top: -20px;
  }
  .editor-section,
  .account-settings {
    padding: 18px;
  }
  .interest-controls {
    margin-left: 0;
  }
  .interest-option > .choice-row {
    margin-left: 0;
  }
  .conversation-row {
    padding: 14px 10px;
    gap: 10px;
  }
  .message-preview {
    max-width: 40vw;
  }
  .product-active #status:not(:empty) {
    margin-left: 0;
  }
  .product-active footer {
    margin-bottom: 75px;
  }
}
.product-dialog .interest-chip {
  width: auto;
  min-height: 44px;
  text-align: left;
  justify-content: flex-start;
}
.place-picker {
  min-width: 0;
  margin: 14px 0;
}
.field-title {
  font-size: 13px;
  margin: 0 0 8px;
}
.place-picker input {
  margin-top: 10px;
}
.place-results {
  max-height: 260px;
  overflow-y: auto;
  margin-top: 8px;
  border-radius: 6px;
}
.place-option {
  width: 100%;
  border: 1px solid #414141;
  background: #1b1b1b;
  color: #f2e9e4;
  text-align: left;
  font-size: 12px;
  justify-content: flex-start;
  border-radius: 0 !important;
  padding: 12px;
}
.selected-place {
  font-size: 13px;
  color: #d7ccc9;
  overflow-wrap: anywhere;
}
.place-picker .button-row button {
  font-size: 12px;
  padding: 10px 12px;
  margin-top: 0;
}
.place-picker > .small {
  font-size: 11px;
}
.interest-group {
  padding: 14px 0;
  margin: 12px 0;
}
.interest-group > summary {
  font-weight: 600;
  color: #d7ccc9;
}
.username-settings {
  margin: 10px 0 24px;
}
.inbox-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 16px;
}
.inbox-tabs button {
  width: auto;
  min-width: 120px;
  background: transparent;
  color: #f2e9e4;
  border: 1px solid #414141;
}
.inbox-tabs button[aria-pressed="true"] {
  background: #adadad;
  color: #131313;
}
.product-content .button-row select {
  width: auto;
  min-width: 180px;
}

.nearby-panel {
  border: 1px solid var(--line, #f2e9e4);
  border-radius: 12px;
  padding: 16px;
  margin: 0 0 20px;
}
.nearby-panel h2 {
  font-size: 1rem;
  margin: 0 0 8px;
}
.distance-label {
  font-weight: 600;
  margin: 6px 0;
}

.basics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.basic-field {
  min-width: 0;
  display: grid;
  gap: 8px;
  align-content: start;
}
.basic-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.height-inputs,
.number-range {
  display: flex;
  gap: 8px;
}
.height-inputs input,
.number-range input {
  min-width: 0;
  width: 100%;
}
.profile-basics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.profile-basics dt {
  font-size: 0.78rem;
  opacity: 0.7;
}
.profile-basics dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}
.basic-summary {
  margin: 6px 0;
}
.basics-filters {
  margin: 12px 0;
}
.basics-choices {
  margin-top: 12px;
}
@media (max-width: 430px) {
  .basics-grid {
    grid-template-columns: 1fr;
  }
}

.chip-picker {
  min-width: 0;
  margin: 0;
  padding: 0.6rem;
  border: 1px solid var(--line, #3b3b3b);
  border-radius: 0.6rem;
}
.chip-picker legend {
  font-size: 0.85rem;
}
.chip-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-height: 8rem;
  overflow: auto;
  margin: 0.5rem 0;
}
.chip-options .choice-option {
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
  border-radius: 1rem;
}
.chip-picker .chips:empty {
  display: none;
}
.chip-picker input {
  width: 100%;
  margin-top: 0.4rem;
}
.relationship-row {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line, #3b3b3b);
}
.relationship-preview {
  padding: 0.8rem;
  border: 1px solid var(--line, #3b3b3b);
  border-radius: 0.6rem;
}
.relationship-row .button-row {
  flex-wrap: wrap;
  gap: 0.4rem;
}
.profile-connections {
  margin: 1rem 0;
}
.identity-summary {
  color: var(--muted, #aaa);
  margin: 0.35rem 0;
}

.interest-search-link {
  cursor: pointer;
  font: inherit;
}
.interest-search-link:hover {
  text-decoration: underline;
}

/* A quieter shell; the people and their words carry the page. */
.product-active > header {
  padding-top: 24px;
}
.product-active main {
  margin-top: 4px;
}
.product-nav {
  gap: 7px;
}
.nav-item {
  gap: 13px;
  min-height: 52px;
}
.nav-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}
.nav-item[aria-current="page"]::before {
  display: none;
}
.nav-item[aria-current="page"] {
  background: #2c2c2c;
  border-color: #414141;
  color: #d7ccc9;
}
.view-heading {
  padding-bottom: 24px;
}
.view-heading h1 {
  max-width: 850px;
  font-size: clamp(42px, 4.8vw, 68px);
  text-wrap: balance;
}
.view-heading > p:last-child {
  max-width: 660px;
  color: var(--muted);
}
.discovery-intents {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 24px;
}
.intent-pill {
  min-height: 44px;
  width: auto;
  background: transparent;
  color: #d7ccc9;
  border: 1px solid #2c2c2c;
  padding: 8px 17px;
  border-radius: 24px !important;
  font-size: 13px;
  font-weight: 500;
}
.intent-pill[aria-pressed="true"] {
  color: #131313;
  background: #d7ccc9;
  border-color: #d7ccc9;
}
.discovery-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px 22px;
  border-block: 1px solid var(--line);
  padding: 10px 0;
}
.filter-disclosure {
  flex: 1 1 300px;
  margin: 0;
  padding: 0;
  border: 0;
}
.filter-summary {
  color: #f2e9e4;
  font-size: 14px;
  font-weight: 550;
}
.filter-disclosure[open] {
  flex-basis: 100%;
}
.filter-disclosure .discovery-filters {
  margin: 10px 0;
}
.discovery-toolbar > .text-button {
  width: auto;
  min-height: 44px;
  color: #d7ccc9;
}
.applied-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin: 12px 0;
}
.applied-filters:empty {
  display: none;
}
.applied-filters .text-button {
  width: auto;
  padding: 6px 12px;
  min-height: 44px;
}
.nearby-panel {
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  margin: 0 0 16px;
}
.nearby-panel > summary {
  color: #d7ccc9;
  font-size: 12px;
  padding: 8px 0;
}
.nearby-panel[open] {
  padding-bottom: 16px;
}
.nearby-panel > p {
  max-width: 680px;
}
.people-grid {
  gap: 20px;
  margin-top: 18px;
}
.person-card {
  border-radius: 12px !important;
  background: #1b1b1b;
}
.portrait {
  aspect-ratio: 1.6;
  background: linear-gradient(135deg, #414141, #1b1b1b);
}
.portrait > span:first-child {
  font-size: 96px;
  color: #f2e9e4bb;
}
.tone-1 {
  background: linear-gradient(135deg, #68553f, #2c2c2c);
}
.tone-2 {
  background: linear-gradient(135deg, #3b5d60, #2c2c2c);
}
.tone-3 {
  background: linear-gradient(135deg, #68504e, #2c2c2c);
}
.tone-4 {
  background: linear-gradient(135deg, #414141, #2c2c2c);
}
.shared-badge {
  position: absolute;
  z-index: 3;
  bottom: 10px;
  left: 12px;
  background: #131313e8;
  color: #f2e9e4;
  border: 1px solid #ffffff22;
  padding: 4px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
}
.person-copy {
  padding: 20px;
}
.person-title h2 {
  font-size: 23px;
}
.area-label {
  font-size: 12px;
  line-height: 1.5;
}
.person-bio {
  font-size: 14px;
  margin: 14px 0;
}
.person-copy .basic-summary {
  color: #d7ccc9;
  font-size: 12px;
}
.person-copy .identity-summary {
  font-size: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.person-intent:empty {
  display: none;
}
.chip {
  border-radius: 20px;
  font-size: 12px;
  background: #2c2c2c;
  border-color: #414141;
}
button.chip,
.chip-picker button,
.chip-picker .chip {
  min-height: 44px;
}
.product-dialog {
  width: min(720px, calc(100% - 32px));
  padding: 28px 32px;
  border-radius: 18px;
}
.product-dialog .section-heading {
  top: -28px;
  padding-block: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.product-dialog .section-heading .text-button {
  min-height: 44px;
  padding-inline: 12px;
}
.product-dialog .error:empty {
  display: none;
}
.profile-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 26px 0 16px;
}
.profile-monogram {
  width: 80px;
  height: 92px;
  display: grid;
  place-items: center;
  flex: 0 0 80px;
  background: #414141;
  color: #d7ccc9;
  border: 1px solid #414141;
  border-radius: 12px;
  font:
    800 58px/1 BigShoulders,
    Impact,
    sans-serif;
}
.profile-hero .eyebrow {
  margin: 0 0 6px;
  font-size: 10px;
}
.profile-hero .profile-name {
  color: #f2e9e4;
  font-size: 30px;
  line-height: 1.1;
  margin: 0;
  overflow-wrap: anywhere;
}
.profile-bio {
  margin-block: 24px;
  font-size: 19px;
}
.profile-details {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.conversation-prompt {
  margin: 22px 0;
  padding: 18px 20px;
  border-left: 2px solid #adadad;
  background: #1b1b1b;
}
.conversation-prompt p {
  margin: 4px 0;
}
.conversation-prompt p:last-child {
  font-size: 17px;
}
.conversation-starters {
  margin-top: 12px;
}
.conversation-starters .button-row {
  margin: 12px 0;
}
.conversation-starters button {
  font-size: 12px;
}
.character-count {
  display: block;
  text-align: right;
  font-size: 11px;
  color: #d7ccc9;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.profile-state {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 0 0 20px;
}
.profile-state p {
  margin: 0;
}
.visibility-state {
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid #414141;
  font-size: 12px;
  color: #d7ccc9;
}
.profile-editor {
  max-width: 900px;
}
.editor-section {
  border-color: #2c2c2c;
}
.editor-section > summary {
  min-height: 44px;
}
.profile-savebar {
  position: sticky;
  bottom: 20px;
  z-index: 4;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  background: #1b1b1bf5;
  border: 1px solid #414141;
  border-radius: 10px;
  padding: 12px 16px;
  margin: 20px 0;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px #0004;
}
.profile-savebar button {
  width: auto;
  margin: 0;
  flex-shrink: 0;
}
.save-state {
  font-size: 12px;
  color: #d7ccc9;
}
.profile-savebar.has-changes {
  border-color: #adadad;
}
.profile-savebar.has-changes .save-state {
  color: #d7ccc9;
}
.profile-editor .choice {
  min-height: 44px;
  padding-inline: 4px;
}
.empty-state {
  padding: 52px 26px;
  background: #1b1b1b;
  border-style: solid;
}
.empty-state p {
  max-width: 440px;
  margin-inline: auto;
}
.conversation-row {
  min-height: 88px;
  border-radius: 10px !important;
}
.conversation-row:hover {
  background: #2c2c2c;
  filter: none;
}
.message-preview {
  margin-top: 5px;
}
.message-bubble {
  overflow-wrap: anywhere;
}
.product-status:not(:empty) {
  z-index: 6;
  bottom: 100px;
  max-width: 680px;
}
.product-content [aria-busy="true"] > .person-card {
  opacity: 0.55;
}
@media (max-width: 700px) {
  .product-active > header {
    padding: 20px 18px 14px;
  }
  .product-active main {
    padding: 0 16px;
  }
  .view-heading h1 {
    font-size: 46px;
  }
  .view-heading > p:last-child {
    font-size: 14px;
  }
  .discovery-intents {
    gap: 7px;
    margin-bottom: 18px;
  }
  .intent-pill {
    padding-inline: 13px;
    font-size: 12px;
  }
  .people-grid {
    gap: 12px;
  }
  .person-copy {
    padding: 14px;
  }
  .person-title h2 {
    font-size: 21px;
  }
  .person-bio {
    font-size: 13px;
    -webkit-line-clamp: 3;
    min-height: 58px;
  }
  .portrait {
    aspect-ratio: 1.3;
  }
  .portrait > span:first-child {
    font-size: 80px;
  }
  .person-copy .chip {
    font-size: 11px;
  }
  .shared-badge {
    left: 8px;
    bottom: 8px;
    font-size: 10px;
    padding-inline: 7px;
  }
  .product-nav {
    padding-top: 7px;
  }
  .nav-item {
    flex-direction: column;
    gap: 5px;
    padding: 7px 4px;
    min-height: 58px;
    font-size: 11px;
  }
  .nav-icon {
    width: 21px;
    height: 21px;
    flex-basis: 21px;
  }
  .profile-savebar {
    bottom: calc(84px + env(safe-area-inset-bottom));
    padding: 10px 12px;
    gap: 10px;
  }
  .profile-savebar button {
    padding-inline: 12px;
    font-size: 13px;
  }
  .product-status:not(:empty) {
    bottom: calc(160px + env(safe-area-inset-bottom));
    font-size: 13px;
  }
  .product-dialog {
    padding: 20px;
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
  }
  .product-dialog .section-heading {
    top: -20px;
  }
  .profile-hero {
    gap: 16px;
  }
  .profile-basics,
  .basics-grid {
    grid-template-columns: 1fr;
  }
  .product-content input,
  .product-content select,
  .product-content textarea,
  .product-dialog input,
  .product-dialog select,
  .product-dialog textarea {
    font-size: 16px;
  }
  .product-content .button-row select {
    min-width: 0;
    max-width: 100%;
  }
  .filter-interest select {
    min-width: 0;
  }
  .product-active footer {
    margin-bottom: calc(90px + env(safe-area-inset-bottom));
  }
}
@media (max-width: 370px) {
  .people-grid {
    grid-template-columns: 1fr;
  }
  .portrait {
    aspect-ratio: 1.9;
  }
  .person-bio {
    min-height: 0;
  }
  .view-heading h1 {
    font-size: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .person-card:hover {
    transform: none;
  }
}

.boundary-chip {
  background: #352e29;
  border-color: #806c57;
  color: #ead6bf;
}

/* Immediate, content-free feedback while a freshly authorized profile loads. */
.profile-loading { min-height: 18rem; padding: 1.5rem 0; }
.profile-loading p { color: var(--muted, #777); }
.loading-avatar { width: 5rem; height: 5rem; border-radius: 50%; background: currentColor; opacity: .08; margin-bottom: 1.25rem; }
.loading-line { width: min(28rem, 90%); height: .8rem; border-radius: .4rem; background: currentColor; opacity: .08; margin-top: 1rem; }
.loading-line.short { width: min(18rem, 60%); }
/* Instant profile view: the clicked card's own data while the fresh profile loads. */
.profile-dialog .profile-shell { display: grid; grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.45fr); min-height: 18rem; }
.profile-shell .profile-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-shell .profile-cover .card-initial { display: grid; place-items: center; height: 100%; font-size: 4rem; opacity: .5; }
.profile-shell .profile-name { display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; }
.profile-shell .shell-meta { color: var(--muted, #999); font-size: 15px; font-weight: 400; }
.profile-shell .chips { margin-top: .75rem; }
.profile-dialog .shell-status { color: var(--muted, #777); font-size: 13px; padding: 0 20px 16px; margin: 0; }
@media (max-width: 700px) {
  .profile-dialog .profile-shell { display: flex; flex-direction: column; padding: 14px; gap: 10px; }
}

/* Mature photos stay blurred until the viewer chooses to see them. */
.is-mature {
  position: relative;
  overflow: hidden;
}
.is-mature img {
  filter: blur(22px) brightness(0.6);
  transform: scale(1.15);
}
.mature-veil {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 2px;
  text-align: center;
  color: #f2eee8;
  font-size: 12px;
  line-height: 1.2;
  pointer-events: none;
}
.mature-veil strong {
  font-size: 13px;
  letter-spacing: 0.02em;
}
@media (prefers-reduced-motion: no-preference) {
  .photo-tile img {
    transition: filter 160ms ease;
  }
}
