/* Profile editing: page > section card > field. Scoped so browsing profiles stays unchanged. */
.product-active .product-content .editor-workspace .editor-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.product-active .editor-workspace .editor-panel > .editor-panel-heading,
.product-active .editor-workspace .editor-panel > .editor-panel-heading:not(:has(button)) {
  position: static;
  width: auto;
  height: auto;
  padding: 0 0 12px;
  margin: 0 0 4px;
  overflow: visible;
  clip-path: none;
  white-space: normal;
  border: 0;
  border-bottom: 1px solid var(--line);
  min-height: 36px;
}
.product-active .editor-workspace .editor-panel-title-group {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.product-active .editor-workspace .editor-panel-heading h2 {
  font-size: 18px;
  margin: 0;
}
.product-active .editor-workspace .editor-panel-lead {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}
/* Grouped Profile vs Privacy & Account section navigation. */
.product-active .product-content .editor-navigation {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 14px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.product-active .product-content .editor-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 18px;
  padding: 0;
  margin: 0;
  border: 0;
  overflow: visible;
}
.product-active .product-content .editor-menu-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.product-active .product-content .editor-menu-group + .editor-menu-group {
  padding-left: 16px;
  border-left: 1px solid var(--line);
}
.product-active .product-content .editor-group-label {
  flex: 1 0 100%;
  margin: 0 0 4px 2px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a89f95;
}
.product-active .profile-heading-title button.visibility-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  min-height: 30px;
  padding: 4px 11px;
  margin: 0;
  border: 1px solid var(--control-line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}
.product-active .profile-heading-title button.visibility-state:hover {
  background: var(--surface-raised);
  border-color: #9e8c78;
}
.product-active .profile-heading-title button.visibility-state::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8d867e;
}
.product-active .profile-heading-title button.visibility-state[data-discoverable="true"]::before {
  background: #5fbf7a;
}
.account-support-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.account-support-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-raised);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}
.account-support-links a::after {
  content: "→";
  color: var(--accent-text);
}
.account-support-links a:hover {
  border-color: var(--control-line);
  background: var(--surface-hover);
}
@media (max-width: 760px) {
  .product-active .product-content .editor-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }
  .product-active .product-content .editor-menu-group + .editor-menu-group {
    padding-left: 0;
    padding-top: 10px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}
.product-active .editor-workspace .profile-card,
.product-active .editor-workspace .writings-manager,
.product-active .editor-workspace #account > .panel {
  min-width: 0;
  margin: 0;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: none;
}
.product-active .editor-workspace .profile-card > h3,
.product-active .editor-workspace .profile-card-heading h3,
.product-active .editor-workspace #account > .panel > h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font:
    650 14px/1.4 system-ui,
    sans-serif;
  letter-spacing: 0;
}
.product-active .editor-workspace .profile-card-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 12px;
}
.product-active .editor-workspace .profile-card-heading > :is(h3, button) {
  margin: 0;
}
.product-active .editor-workspace .profile-card :is(form, fieldset) {
  margin: 0;
}
.product-active .editor-workspace .profile-card .field {
  margin: 0;
  gap: 6px;
}
.product-active .editor-workspace .field > span,
.product-active .editor-workspace .basic-heading > span {
  color: var(--ink-soft, #d5cfc7);
  font-size: 13px;
  font-weight: 500;
}
.product-active .editor-workspace .profile-card p {
  margin: 8px 0 0;
  line-height: 1.45;
}
.product-active .editor-workspace .profile-card p:empty,
.product-active .editor-workspace .photo-manager > [role="status"]:empty {
  display: none;
}
.product-active .editor-workspace .profile-card .field-hint {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}
/* About uses a stable reading order with no secondary disclosure between text fields. */
.about-identity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.product-active .editor-workspace .about-location {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px 12px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 14px;
}
.about-location > .place-picker {
  min-width: 0;
  margin: 0;
}
.about-location > p {
  grid-column: 1/-1;
}
.product-active
  .editor-workspace
  .about-location
  > .profile-visibility-control {
  margin-bottom: 3px;
}
.product-active .editor-workspace .about-introduction > .field + .field {
  margin-top: 14px;
}
.product-active .editor-workspace .about-introduction .character-count {
  margin-top: 4px;
}
.product-active
  .editor-workspace
  .about-introduction
  > .character-count
  + .field {
  margin-top: 14px;
}
.product-active .editor-workspace .profile-intentions {
  padding: 14px 0 0;
  margin-top: 14px;
  border: 0;
  border-top: 1px solid var(--line);
}
.product-active .editor-workspace .profile-intentions legend {
  padding: 0 0 8px;
  font-size: 13px;
}
.product-active .editor-workspace .profile-intentions .choice-row {
  gap: 6px;
}
.product-active .editor-workspace .profile-intentions .choice {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px 10px;
  margin: 0;
  background: var(--surface-raised);
}
.product-active
  .editor-workspace
  .profile-intentions
  .choice:has(input:checked) {
  border-color: #b16c60;
  background: #3c2827;
}
/* Subtle, keyboard-operable visibility controls; state is conveyed by words and icon. */
.product-active .editor-workspace .profile-visibility-control {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 68px;
  min-height: 32px;
  padding: 4px 5px;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #b5aaa0;
  background: transparent;
  font:
    500 11px/1.2 system-ui,
    sans-serif;
  cursor: pointer;
  white-space: nowrap;
}
.product-active .editor-workspace .profile-visibility-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  margin: 0;
  clip-path: inset(50%);
  overflow: hidden;
}
.product-active .editor-workspace .profile-visibility-control > svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}
.product-active
  .editor-workspace
  .profile-visibility-control
  .visibility-slash {
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
}
.product-active
  .editor-workspace
  .profile-visibility-control[data-visible="false"] {
  color: #eee0d1;
  background: #302b27;
}
.product-active
  .editor-workspace
  .profile-visibility-control[data-visible="false"]
  .visibility-slash {
  display: block;
}
.product-active .editor-workspace .profile-visibility-control:hover {
  border-color: var(--control-line);
  background: var(--surface-raised);
}
.product-active
  .editor-workspace
  .profile-visibility-control:has(input:focus-visible) {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.product-active .editor-workspace .profile-visibility-control.is-icon-only {
  min-width: 32px;
  width: 32px;
}
.product-active .editor-workspace .is-icon-only .visibility-label {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
}
.product-active .editor-workspace .is-icon-only .visibility-slash {
  left: 7px;
}
.details-editor {
  display: grid;
  gap: 14px;
}
.product-active .editor-workspace .details-editor .basics-grid {
  gap: 14px 20px;
}
.product-active .editor-workspace .basic-heading {
  min-height: 32px;
  gap: 8px;
  align-items: center;
}
.product-active .editor-workspace .basic-field {
  gap: 4px;
  align-content: start;
}
.product-active .editor-workspace .measurement-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
}
.product-active .editor-workspace .measurement-control select {
  width: auto;
  min-height: 32px;
  padding-block: 5px;
  font-size: 12px;
}
/* A limit is one compact row, with a dedicated action cell. */
.product-active .editor-workspace .limits-editor {
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
}
.product-active .editor-workspace .limits-editor > p {
  margin: 0 0 14px;
}
.limit-editor-group {
  display: grid;
  gap: 6px;
  margin: 0 0 18px;
}
.product-active .editor-workspace .limit-editor-group h3 {
  margin: 0 0 2px;
  font:
    650 13px/1.4 system-ui,
    sans-serif;
}
.product-active .editor-workspace .limit-editor-row {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) auto auto 32px;
  gap: 6px 10px;
  align-items: center;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.product-active .editor-workspace .limit-editor-row > strong {
  font-size: 13px;
  line-height: 1.35;
  min-width: 0;
  overflow-wrap: anywhere;
}
.limit-row-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.product-active
  .editor-workspace
  .limit-row-controls
  :is(select, input:not([type="checkbox"])) {
  width: auto;
  min-width: 0;
  max-width: 150px;
  min-height: 32px;
  padding-block: 5px;
  font-size: 12px;
}
.product-active
  .product-content
  .editor-workspace
  .limit-editor-row
  > .limit-remove {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #bdb2a8;
  line-height: 1;
}
.product-active .editor-workspace .limit-remove svg {
  display: block;
  width: 18px;
  height: 18px;
  pointer-events: none;
}
.product-active .editor-workspace .limit-editor-row > .limit-remove:hover {
  color: #ffb7aa;
  border-color: #8d4b45;
  background: #3b2222;
}
.product-active .editor-workspace .limit-picker {
  padding: 12px;
  border: 1px dashed var(--control-line);
  border-radius: 10px;
  background: var(--surface);
}
/* Disclosures reserve their chevron column. They never contain reorder buttons. */
.product-active
  .editor-workspace
  :is(.profile-card, .album-editor, .limit-picker)
  > summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 28px 0 0;
  min-height: 32px;
  margin: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  font-size: 14px;
  line-height: 1.4;
}
.product-active
  .editor-workspace
  :is(.profile-card, .album-editor, .limit-picker)[open]
  > summary {
  margin-bottom: 14px;
  background: transparent;
}
.product-active
  .editor-workspace
  :is(.profile-card, .album-editor, .limit-picker)
  > summary::after {
  right: 6px;
}
.product-active .editor-workspace .social-editor-row {
  margin: 10px 0 0;
  align-items: end;
  gap: 12px;
}
.product-active
  .editor-workspace
  .social-editor-row
  .profile-visibility-control {
  margin-bottom: 3px;
}
/* Contact settings are independently saved; each card owns its action. */
.product-active .editor-workspace .contact-preferences form > .field {
  max-width: 380px;
}
.product-active .editor-workspace .starter-preferences {
  margin-top: 16px;
  padding: 14px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.product-active .editor-workspace .starter-preferences legend {
  padding: 0 0 8px;
  font-size: 13px;
}
.product-active .editor-workspace .starter-preferences .check {
  display: inline-flex;
  margin: 0 16px 0 0;
}
.product-active .editor-workspace .connection-request-setting {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.product-active .editor-workspace .settings-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}
.product-active .editor-workspace .settings-actions button,
.product-active .editor-workspace .profile-card-heading button {
  width: auto;
  margin: 0;
  min-width: 72px;
}
.product-active .editor-workspace .album-editor {
  margin: 0 0 12px;
  padding: 14px;
  background: var(--surface);
}
.product-active .editor-workspace .album-editor > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}
.product-active .editor-workspace .album-editor .album-kind {
  margin: 0;
  font-size: 11px;
}
.product-active .editor-workspace .album-toolbar {
  gap: 8px;
}
.product-active .editor-workspace .album-order-controls {
  margin-left: auto;
  gap: 4px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}
.product-active .editor-workspace .album-order-controls button {
  display: grid;
  place-items: center;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  margin: 0;
}
.product-active .editor-workspace .account-settings {
  border: 0;
  padding: 0;
  background: none;
}
.product-active .editor-workspace #account {
  gap: 14px;
}
.product-active .editor-workspace .interest-settings > [role="status"] {
  margin: 0 0 10px;
}
.product-active .editor-workspace .interest-group {
  margin-top: 12px;
}
.product-active .editor-workspace .interest-option {
  border: 0;
  border-radius: 0;
  padding-block: 10px;
}
.product-active .editor-workspace .interest-option + .interest-option {
  border-top: 1px solid var(--line);
}
@media (max-width: 760px) {
  .product-active .editor-workspace .limit-editor-row {
    grid-template-columns: minmax(0, 1fr) auto 32px;
  }
  .product-active .editor-workspace .limit-row-controls {
    grid-row: 2;
    grid-column: 1/-1;
  }
  .product-active
    .editor-workspace
    .limit-editor-row
    > .profile-visibility-control {
    grid-row: 1;
    grid-column: 2;
  }
  .product-active .editor-workspace .limit-editor-row > .limit-remove {
    grid-row: 1;
    grid-column: 3;
  }
}
@media (max-width: 600px) {
  .about-identity-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .product-active .editor-workspace .details-editor .basics-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .product-active .editor-workspace .profile-card,
  .product-active .editor-workspace .writings-manager,
  .product-active .editor-workspace #account > .panel {
    padding: 14px;
  }
  .product-active .editor-workspace .album-editor > summary {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }
  .product-active
    .editor-workspace
    .limit-row-controls
    :is(select, input:not([type="checkbox"])) {
    font-size: 16px;
    min-height: 40px;
  }
}
@media (pointer: coarse) {
  .product-active .editor-workspace .profile-visibility-control {
    min-height: 44px;
  }
  .product-active .editor-workspace .profile-visibility-control.is-icon-only {
    min-width: 44px;
    width: 44px;
  }
  .product-active
    .editor-workspace
    .profile-visibility-control.is-icon-only
    .visibility-slash {
    left: 13px;
  }
  .product-active .editor-workspace .limit-editor-row {
    grid-template-columns: minmax(0, 1fr) auto 44px;
  }
  .product-active .editor-workspace .limit-row-controls {
    grid-row: 2;
    grid-column: 1/-1;
  }
  .product-active
    .editor-workspace
    .limit-editor-row
    > .profile-visibility-control {
    grid-row: 1;
    grid-column: 2;
  }
  .product-active
    .product-content
    .editor-workspace
    .limit-editor-row
    > .limit-remove {
    grid-row: 1;
    grid-column: 3;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
  .product-active .editor-workspace .album-order-controls button {
    min-width: 44px;
    min-height: 44px;
  }
}

/* ---------------------------------------------------------------------------
   Editor refinements, November 17, 2026.
   One rule throughout: a control that belongs to another control sits tight
   against it and reads as part of it; separate questions get clear space.
   --------------------------------------------------------------------------- */

/* City suggestions: one attached list, not a stack of look-alike form fields. */
.product-active .editor-workspace .place-picker .place-results:not(:empty) {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 228px;
  margin: 4px 0 0;
  border: 1px solid var(--control-line);
  border-radius: 8px;
  background: var(--surface-raised);
  box-shadow: 0 10px 24px rgb(0 0 0 / 0.45);
  overflow-y: auto;
}
.product-active .editor-workspace .place-picker .place-option {
  width: 100%;
  min-height: 0;
  margin: 0 !important;
  padding: 9px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0 !important;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  justify-content: flex-start;
}
.product-active .editor-workspace .place-picker .place-option:last-child {
  border-bottom: 0;
}
.product-active .editor-workspace .place-picker .place-option:hover,
.product-active .editor-workspace .place-picker .place-option:focus-visible {
  background: var(--surface-hover);
  color: var(--accent-text);
  outline: none;
}

/* "Here for": a short hint replaces the old cap, and the chips sit under it. */
.product-active .editor-workspace .profile-intentions legend {
  padding: 0;
  font-weight: 600;
}
.product-active .editor-workspace .profile-intentions .field-hint {
  margin: 2px 0 10px;
}
.product-active .editor-workspace .profile-intentions {
  margin-top: 18px;
  padding: 0;
  border: 0;
}

/* "Other" in your own words: attached to its dropdown, lighter and inset. */
.product-active .editor-workspace .other-field {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 0 12px;
  padding-left: 12px;
  border-left: 2px solid var(--accent);
}
.product-active .editor-workspace .other-field[hidden] {
  display: none;
}
.product-active .editor-workspace .other-field input {
  flex: 1;
  min-height: 34px;
  padding: 6px 10px;
  background: transparent;
  border-color: var(--line);
  font-size: 13px;
}
.product-active .editor-workspace .other-field input:focus {
  border-color: var(--focus);
}
.product-active .editor-workspace .other-field .other-clear {
  min-height: 0;
  padding: 4px 6px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
  text-decoration: underline;
}

/* Interests: scan a group as chips; settings for chosen ones gather below. */
.product-active .editor-workspace .interest-group {
  margin: 0 0 14px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.product-active .editor-workspace .interest-group > summary {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-height: 0;
  margin: 0;
  padding: 11px 14px;
  border: 0;
  border-radius: 10px;
  background: none;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}
.product-active .editor-workspace .interest-group[open] > summary {
  border-bottom: 1px solid var(--line);
  border-radius: 10px 10px 0 0;
}
.product-active .editor-workspace .interest-group-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.product-active .editor-workspace .interest-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 12px 14px;
}
.product-active .editor-workspace .interest-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: 0;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-raised);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  user-select: none;
}
.product-active .editor-workspace .interest-chip input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.product-active .editor-workspace .interest-chip:hover {
  border-color: var(--control-line);
  background: var(--surface-hover);
}
.product-active .editor-workspace .interest-chip.is-selected {
  border-color: var(--accent);
  background: rgb(183 71 54 / 0.22);
  color: var(--accent-text);
  font-weight: 650;
}
.product-active .editor-workspace .interest-chip:has(input:focus-visible) {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.product-active .editor-workspace .interest-picked {
  display: grid;
  gap: 0;
  margin: 0 14px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--canvas);
}
.product-active .editor-workspace .interest-picked-row {
  display: grid;
  grid-template-columns: minmax(120px, 1.1fr) minmax(104px, 0.8fr) minmax(104px, 0.9fr) auto 28px;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 8px 7px 12px;
  border-bottom: 1px solid var(--line);
}
.product-active .editor-workspace .interest-picked-row:last-child {
  border-bottom: 0;
}
.product-active .editor-workspace .interest-picked-name {
  font-size: 13px;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.product-active .editor-workspace .interest-picked-row select,
.product-active .editor-workspace .interest-picked-row input[type="text"],
.product-active .editor-workspace .interest-picked-row > input:not([type]) {
  min-height: 32px;
  margin: 0;
  padding: 4px 26px 4px 9px;
  font-size: 12.5px;
}
.product-active .editor-workspace .interest-picked-toggles {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
}
.product-active .editor-workspace .interest-picked-toggles .choice {
  min-height: 0;
  margin: 0;
  padding: 3px 8px;
  border: 0;
  background: none;
  font-size: 12px;
}
.product-active .editor-workspace .interest-remove,
.product-active .editor-workspace .interest-picked-row .interest-remove {
  width: 28px;
  min-width: 0;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--muted);
  font-size: 17px;
  line-height: 1;
}
.product-active .editor-workspace .interest-remove:hover {
  background: var(--surface-hover);
  color: var(--ink);
}
@media (max-width: 720px) {
  .product-active .editor-workspace .interest-picked-row {
    grid-template-columns: 1fr 1fr 28px;
    grid-template-areas: "name name remove" "level role role" "toggles toggles toggles";
    row-gap: 6px;
  }
  .product-active .editor-workspace .interest-picked-name { grid-area: name; }
  .product-active .editor-workspace .interest-picked-row > select:first-of-type { grid-area: level; }
  .product-active .editor-workspace .interest-picked-toggles { grid-area: toggles; justify-content: flex-start; }
  .product-active .editor-workspace .interest-remove { grid-area: remove; }
}

/* Limits: one find-or-choose control, tap to add. */
.product-active .editor-workspace .limits-editor .limit-picker {
  margin: 12px 0 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.product-active .editor-workspace .limit-picker-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.product-active .editor-workspace .limit-picker-bar input[type="search"] {
  flex: 1 1 240px;
  margin: 0;
}
.product-active .editor-workspace .limit-level-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--canvas);
}
.product-active .editor-workspace .limit-level-option {
  min-height: 32px;
  margin: 0;
  padding: 4px 12px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.product-active .editor-workspace .limit-level-option[aria-pressed="true"] {
  background: var(--accent);
  color: #fff;
}
.product-active .editor-workspace .limit-options {
  display: grid;
  gap: 14px;
  max-height: 340px;
  margin-top: 14px;
  padding-right: 4px;
  overflow-y: auto;
}
.product-active .editor-workspace .limit-option-group h4 {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.product-active .editor-workspace .limit-option-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.product-active .editor-workspace .limit-option {
  min-height: 32px;
  margin: 0;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-raised);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}
.product-active .editor-workspace .limit-option:hover,
.product-active .editor-workspace .limit-option:focus-visible {
  border-color: var(--accent);
  background: rgb(183 71 54 / 0.18);
  color: var(--accent-text);
}
/* The count sits beside the group name; the collapse arrow keeps the right edge. */
.product-active .editor-workspace .interest-group > summary {
  justify-content: flex-start;
  padding-right: 44px;
}
.product-active .editor-workspace .interest-group-count {
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
/* Earlier editor rules stretch every button to full width; these are chips. */
.product-active .editor-workspace .limits-editor .limit-option-chips {
  display: flex;
  flex-wrap: wrap;
}
.product-active .editor-workspace .limits-editor .limit-option,
.product-active .editor-workspace .limits-editor .limit-level-option {
  width: auto;
  flex: 0 0 auto;
  white-space: nowrap;
}
.product-active .editor-workspace .limits-editor .limit-option {
  justify-content: center;
  text-align: center;
}
.product-active .editor-workspace .limits-editor .limit-level-switch {
  flex: 0 0 auto;
}
/* Inside a multi-choice picker the own-words field takes the full row. */
.product-active .editor-workspace .chip-picker > .other-field {
  flex: 1 1 100%;
  width: calc(100% - 12px);
  box-sizing: border-box;
}
.product-active .editor-workspace .other-field input {
  width: 100%;
  min-width: 0;
}
.product-active .editor-workspace .other-field .other-clear {
  flex: 0 0 auto;
  width: auto;
}
/* City rows: comfortable to tap, still one compact list. */
.product-active .editor-workspace .place-picker .place-results .place-option {
  flex: 0 0 auto;
  min-height: 38px !important;
  padding: 9px 12px !important;
  line-height: 1.3;
}
/* Space between the "Looking for" text and the "Here for" choices. */
.product-active .editor-workspace fieldset.profile-intentions {
  margin-top: 20px !important;
  padding-top: 0;
}

/* Details: short fields pair up on wide screens; long ones take the row. */
@media (min-width: 900px) {
  .product-active .editor-workspace .details-editor .basics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 20px;
    align-items: start;
  }
  .product-active .editor-workspace .details-editor .basic-field.is-wide {
    grid-column: 1 / -1;
  }
}
/* Chosen values in multi-choice fields sit above their dropdown, tight to it. */
.product-active .editor-workspace .details-editor .chip-picker {
  gap: 6px;
}
.product-active .editor-workspace .details-editor .chip-picker > .chips:empty {
  display: none;
}
@media (min-width: 900px) {
  /* Pair pronouns with languages, and status with availability. */
  .product-active .editor-workspace .details-editor .basic-field[data-field="languages"] {
    grid-column: auto;
  }
  .product-active .editor-workspace .details-editor .basic-field[data-field="relationshipStatus"] { order: 1; }
  .product-active .editor-workspace .details-editor .basic-field[data-field="availability"] { order: 2; }
  .product-active .editor-workspace .details-editor .basic-field[data-field="relationshipApproaches"] { order: 3; }
  .product-active .editor-workspace .details-editor .basic-field[data-field="relationshipContext"] { order: 4; }
  .product-active .editor-workspace .details-editor .basic-field[data-field="connectionPrompt"] { order: 5; }
}

/* Phones: every new control stacks into one readable column. */
@media (max-width: 720px) {
  .product-active .editor-workspace .interest-picked-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    padding: 9px 10px;
  }
  .product-active .editor-workspace .interest-picked-name {
    flex: 1 1 calc(100% - 44px);
    order: 1;
  }
  .product-active .editor-workspace .interest-picked-row .interest-remove {
    order: 2;
    flex: 0 0 32px;
    min-height: 32px;
  }
  .product-active .editor-workspace .interest-picked-row > select,
  .product-active .editor-workspace .interest-picked-row > input {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
    min-height: 40px;
    order: 3;
  }
  .product-active .editor-workspace .interest-picked-row .interest-no-role {
    display: none;
  }
  .product-active .editor-workspace .interest-picked-toggles {
    flex: 1 1 100%;
    order: 4;
    justify-content: flex-start;
  }
  .product-active .editor-workspace .interest-chips,
  .product-active .editor-workspace .interest-picked {
    padding-left: 10px;
    padding-right: 10px;
    margin-left: 0;
    margin-right: 0;
  }
  .product-active .editor-workspace .interest-picked {
    margin: 0 10px 10px;
    padding: 0;
  }
  /* Tap targets of at least 40px on touch screens. */
  .product-active .editor-workspace .interest-chip,
  .product-active .editor-workspace .limits-editor .limit-option {
    min-height: 40px;
    padding: 8px 14px;
    font-size: 14px;
  }
  .product-active .editor-workspace .limit-picker-bar .limit-level-switch {
    flex: 1 1 100%;
  }
  .product-active .editor-workspace .limits-editor .limit-level-option {
    flex: 1 1 50%;
    min-height: 40px;
  }
  .product-active .editor-workspace .limit-options {
    max-height: 46vh;
  }
  .product-active .editor-workspace .place-picker .place-results .place-option {
    min-height: 44px !important;
    font-size: 14px;
  }
  .product-active .editor-workspace .other-field {
    margin-left: 6px;
    padding-left: 10px;
  }
}

/* Photo levels. */
.product-active .photo-rules {
  margin: 0 0 14px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.product-active .photo-rules > summary {
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.product-active .photo-rules ul {
  margin: 10px 0 8px;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  font-size: 13px;
  line-height: 1.45;
  max-width: 74ch;
}
.product-active .photo-level-select {
  width: auto;
  max-width: 100%;
  min-height: 34px;
  margin: 0;
  font-size: 12.5px;
}
.product-active .photo-level-badge {
  display: inline-block;
  margin-top: 4px;
  padding: 1px 8px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 650;
}
.product-active .album-allowed {
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
}

/* Photo and album controls. */
.product-active .album-editor > summary {
  display: flex;
  align-items: center;
  gap: 10px;
}
.product-active .album-editor > summary > span:first-child {
  flex: 0 1 auto;
}
.product-active .album-chip {
  flex: 0 0 auto;
  padding: 2px 9px;
  border: 1px solid #ffffff1f;
  border-radius: 999px;
  color: #cfc8bf;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.product-active .album-chip-private {
  border-color: #c6a57a55;
  color: #d9bc96;
}
.product-active .album-editor > summary .album-kind {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}
.product-active .editor-workspace .album-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}
.product-active .album-adding,
.product-active .album-manage {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.product-active .album-manage {
  margin-left: auto;
}
.product-active .album-toolbar .album-rename {
  flex: 1 1 100%;
}
.product-active .photo-level-switch {
  display: inline-flex;
  padding: 2px;
  border: 1px solid #ffffff1f;
  border-radius: 10px;
  background: #0f0e0d;
}
.product-active .photo-level-switch button {
  min-height: 34px;
  padding: 4px 14px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: #a9a199;
  font-size: 13px;
  font-weight: 650;
}
.product-active .photo-level-switch button[aria-pressed="true"] {
  background: #2a2623;
  color: #f1ebe3;
  box-shadow: inset 0 0 0 1px #c6a57a66;
}
.product-active .album-content {
  border-radius: 12px;
  transition: box-shadow 0.12s;
}
.product-active .album-content.is-dropping {
  box-shadow: 0 0 0 2px #c6a57a;
}
.product-active .album-empty {
  display: grid;
  gap: 4px;
  justify-items: center;
  margin: 4px 0 0;
  padding: 28px 16px;
  border: 1px dashed #ffffff2b;
  border-radius: 12px;
  text-align: center;
}
.product-active .album-empty strong {
  font-size: 15px;
}
.product-active .album-empty span {
  max-width: 46ch;
  color: var(--muted, #a9a199);
  font-size: 13px;
  line-height: 1.45;
}
.product-active .photo-edit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.product-active .photo-edit-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #ffffff17;
  border-radius: 12px;
  background: #121110;
}
.product-active .photo-edit-tile > button:first-child,
.product-active .photo-edit-tile > .photo-tile {
  display: block;
  width: 100%;
  border-radius: 0;
}
.product-active .photo-edit-tile img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 0;
}
.product-active .photo-edit-tile.is-unpublished img {
  opacity: 0.55;
}
.product-active .photo-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  pointer-events: none;
}
.product-active .photo-badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: #0b0a0acc;
  color: #f1ebe3;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.5;
  text-decoration: none;
}
.product-active .photo-badge.is-cover {
  background: #c6a57a;
  color: #171412;
}
.product-active .photo-badge.is-waiting {
  color: #f3c48a;
}
.product-active .photo-badge.is-refused {
  color: #f0a59a;
}
.product-active .photo-badge.is-link {
  pointer-events: auto;
  text-decoration: underline;
}
.product-active .photo-edit-tile .photo-tile-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  margin: 0;
  padding: 4px 6px;
  border-top: 1px solid #ffffff12;
}
.product-active .photo-edit-tile .photo-tile-actions button {
  min-width: 30px;
  min-height: 32px;
  padding: 2px 6px;
  font-size: 12px;
}
.product-active .photo-edit-tile .photo-tile-actions button.danger {
  margin-left: auto;
}
@media (max-width: 520px) {
  .product-active .photo-edit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .product-active .album-manage {
    margin-left: 0;
  }
}
.product-active .editor-workspace .album-editor > summary {
  display: flex;
  grid-template-columns: none;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.product-active .editor-workspace .album-editor > summary .album-kind {
  margin-left: auto;
}
.product-active .photo-edit-tile .photo-tile {
  aspect-ratio: 4 / 5;
}
.product-active .photo-edit-tile .photo-tile img {
  height: 100%;
}
.product-active .photo-edit-tile .photo-tile-actions button {
  white-space: nowrap;
}
.product-active .photo-edit-tile .photo-tile-actions button.danger {
  margin-left: auto;
}
