.linguistic-spotlight {
  margin-top: 0;
}

.profile-engine-body > .linguistic-spotlight {
  display: grid;
  gap: 14px;
}

.profile-engine-columns.single-column {
  grid-template-columns: 1fr;
}

.consent-select-all {
  display: grid;
  gap: 7px;
  margin: 4px 0 12px;
  padding: 10px;
  border: 1px solid var(--border, #2a3344);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.consent-select-all small {
  color: var(--muted, #8792a6);
  line-height: 1.35;
}

.terms-acceptance {
  display: block;
  margin: 10px 0 2px;
  color: var(--muted, #8792a6);
  line-height: 1.45;
}

.terms-acceptance a,
.settings-legal-link,
.crisis-sources a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.crisis-access-button {
  border-color: rgba(220, 92, 102, 0.46);
}

.landing-crisis-button {
  width: 100%;
  margin-top: 12px;
}

.crisis-inline-link {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.crisis-help-card {
  width: min(620px, calc(100vw - 28px));
}

.crisis-lead {
  margin-top: 2px;
}

.crisis-contact {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--border, #2a3344);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.crisis-contact > div:first-child {
  display: grid;
  gap: 3px;
}

.crisis-contact span,
.crisis-contact small {
  color: var(--muted, #8792a6);
}

.crisis-contact strong {
  font-size: 1.08rem;
}

.emergency-contact {
  border-color: rgba(220, 92, 102, 0.56);
  background: rgba(130, 35, 45, 0.12);
}

.crisis-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.crisis-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
  color: var(--muted, #8792a6);
  font-size: 0.88rem;
}

.crisis-note {
  margin-bottom: 0;
}

.psychobot-id-card {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid var(--border, #2a3344);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.psychobot-id-card > div:first-child {
  display: grid;
  gap: 4px;
}

.psychobot-id-card small {
  color: var(--muted, #8792a6);
  line-height: 1.4;
}

.psychobot-id-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.psychobot-id-row input {
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
}

.settings-legal-link {
  width: fit-content;
  color: var(--muted, #8792a6);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .crisis-contact {
    align-items: stretch;
    flex-direction: column;
  }

  .crisis-contact > a,
  .crisis-actions,
  .crisis-actions a {
    width: 100%;
  }

  .crisis-actions {
    flex-direction: column;
  }

  .psychobot-id-row {
    grid-template-columns: 1fr;
  }
}
