.crush-launcher {
  align-items: center;
  background: linear-gradient(135deg, #e96f83, #b65784);
  border: 1px solid #ffffff80;
  border-radius: 999px;
  bottom: 92px;
  box-shadow: 0 16px 38px #8d365036;
  color: #fff;
  cursor: pointer;
  display: flex;
  font: 700 12px/1 "Noto Sans SC", "PingFang SC", sans-serif;
  gap: 7px;
  letter-spacing: 0.02em;
  padding: 12px 16px;
  position: fixed;
  right: 24px;
  z-index: 70;
}

.crush-launcher[hidden],
.crush-overlay[hidden],
.crush-view[hidden],
.crush-forum-reply-form[hidden] {
  display: none !important;
}

.crush-launcher > span:first-child {
  font-size: 18px;
}

body.crush-open {
  overflow: hidden;
}

.crush-overlay {
  align-items: center;
  background: #241a228f;
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  padding: 18px;
  position: fixed;
  transition: opacity 180ms ease;
  z-index: 130;
}

.crush-overlay.is-open {
  opacity: 1;
}

.crush-shell {
  --crush-ink: #302a35;
  --crush-muted: #766c79;
  --crush-rose: #c85877;
  --crush-plum: #72456f;
  --crush-blush: #fff3f5;
  --crush-lilac: #f4effb;
  --crush-line: #eadce6;
  background:
    radial-gradient(circle at 6% 0%, #ffe1e7 0, transparent 29%),
    radial-gradient(circle at 94% 0%, #e9def9 0, transparent 27%),
    #fffdfd;
  border: 1px solid #ffffffc7;
  border-radius: 28px;
  box-shadow: 0 34px 90px #25101e4f;
  color: var(--crush-ink);
  max-height: min(92vh, 980px);
  max-width: 1180px;
  overflow: auto;
  transform: translateY(12px) scale(0.99);
  transition: transform 180ms ease;
  width: 100%;
}

.crush-overlay.is-open .crush-shell {
  transform: translateY(0) scale(1);
}

.crush-header {
  align-items: flex-start;
  display: flex;
  gap: 22px;
  justify-content: space-between;
  padding: 30px 34px 18px;
}

.crush-kicker,
.crush-view-heading span,
.crush-form-title span,
.crush-thread-heading span {
  color: var(--crush-rose);
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.crush-header h2 {
  color: #59334e;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.22;
  margin: 7px 0 7px;
}

.crush-header p {
  color: var(--crush-muted);
  font-size: 13px;
  margin: 0;
}

.crush-close {
  align-items: center;
  background: #ffffffb8;
  border: 1px solid var(--crush-line);
  border-radius: 999px;
  color: #78586e;
  cursor: pointer;
  display: flex;
  flex: 0 0 auto;
  font-size: 26px;
  height: 42px;
  justify-content: center;
  line-height: 1;
  width: 42px;
}

.crush-privacy-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 34px 20px;
}

.crush-privacy-strip span {
  background: #ffffffb8;
  border: 1px solid var(--crush-line);
  border-radius: 999px;
  color: #725d6c;
  font-size: 11px;
  padding: 6px 10px;
}

.crush-tabs {
  background: #fffafaeb;
  border-bottom: 1px solid var(--crush-line);
  border-top: 1px solid var(--crush-line);
  display: flex;
  gap: 2px;
  overflow-x: auto;
  padding: 9px 34px;
  position: sticky;
  top: 0;
  z-index: 4;
}

.crush-tabs button {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: #786d78;
  cursor: pointer;
  flex: 0 0 auto;
  font: 700 12px/1 "Noto Sans SC", "PingFang SC", sans-serif;
  padding: 11px 16px;
}

.crush-tabs button.is-active {
  background: linear-gradient(135deg, #f4d7e0, #eadff6);
  color: #6d3658;
}

.crush-view {
  min-height: 480px;
  padding: 28px 34px 38px;
}

.crush-view-heading {
  align-items: flex-end;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.crush-view-heading h3,
.crush-thread-heading h3,
.crush-profile-intro h3 {
  color: #54334c;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 25px;
  margin: 4px 0 0;
}

.crush-view-heading button,
.crush-open-assessment,
.crush-disable-profile {
  background: #fff;
  border: 1px solid #dfcbd8;
  border-radius: 999px;
  color: #755166;
  cursor: pointer;
  font: 700 11px/1 "Noto Sans SC", "PingFang SC", sans-serif;
  padding: 10px 14px;
}

.crush-view-note {
  color: var(--crush-muted);
  font-size: 12px;
  line-height: 1.7;
  margin: 10px 0 20px;
}

.crush-matches {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.crush-match-card,
.crush-forum-post,
.crush-post-form {
  background: #ffffffdb;
  border: 1px solid var(--crush-line);
  border-radius: 22px;
  box-shadow: 0 14px 34px #6d3c5510;
}

.crush-match-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.crush-match-top,
.crush-match-identity,
.crush-match-footer,
.crush-form-title,
.crush-forum-top,
.crush-forum-author,
.crush-forum-actions,
.crush-assessment-heading,
.crush-chat-header > div,
.crush-contact-card > div,
.crush-thread-item-top {
  align-items: center;
  display: flex;
}

.crush-match-top,
.crush-match-footer,
.crush-form-title,
.crush-forum-top,
.crush-assessment-heading,
.crush-contact-card > div,
.crush-thread-item-top {
  justify-content: space-between;
}

.crush-match-identity {
  gap: 11px;
}

.crush-match-identity > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.crush-match-identity strong {
  color: #503046;
  font-size: 15px;
}

.crush-match-identity > div > span {
  color: var(--crush-rose);
  font-size: 10px;
  font-weight: 700;
}

.crush-match-avatar,
.crush-chat-avatar {
  align-items: center;
  background: linear-gradient(145deg, #f7c9d5, #d9c7ef);
  border: 2px solid #fff;
  border-radius: 16px;
  box-shadow: 0 6px 18px #985a7028;
  color: #703d60;
  display: flex;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 18px;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.crush-match-number {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
}

.crush-match-number strong {
  color: #b3476b;
  font-family: Georgia, serif;
  font-size: 25px;
  line-height: 1;
}

.crush-match-number span {
  color: #a18d9a;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.crush-match-bio {
  color: #5e545d;
  flex: 1;
  font-size: 13px;
  line-height: 1.75;
  margin: 17px 0 13px;
  white-space: pre-wrap;
}

.crush-interest-tags,
.crush-mini-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.crush-interest-tags span,
.crush-mini-scores span {
  background: #f8f2f7;
  border: 1px solid #eadde7;
  border-radius: 999px;
  color: #766372;
  font-size: 10px;
  padding: 5px 8px;
}

.crush-interest-tags span.is-shared {
  background: #fff0dc;
  border-color: #f3d1a6;
  color: #9b5e2f;
}

.crush-score-details {
  border-bottom: 1px solid #eee2e9;
  border-top: 1px solid #eee2e9;
  margin: 15px 0;
  padding: 10px 0;
}

.crush-score-details summary {
  color: #795b6f;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.crush-score-bars {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.crush-score-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 74px 1fr 24px;
}

.crush-score-row > span,
.crush-score-row > strong {
  color: #7d6e78;
  font-size: 9px;
  font-weight: 600;
}

.crush-score-track {
  background: #eee8ed;
  border-radius: 999px;
  height: 5px;
  overflow: hidden;
}

.crush-score-track span {
  background: linear-gradient(90deg, #d96b82, #9e6bad);
  border-radius: inherit;
  display: block;
  height: 100%;
}

.crush-match-footer {
  gap: 12px;
}

.crush-match-footer small {
  color: #907e8a;
  font-size: 9px;
}

.crush-chat-button,
.crush-post-form button[type="submit"],
.crush-forum-reply-form button,
.crush-contact-form button,
.crush-message-form button,
.crush-save-profile {
  background: linear-gradient(135deg, #ca5d7d, #855486);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font: 700 11px/1 "Noto Sans SC", "PingFang SC", sans-serif;
  padding: 11px 14px;
}

.crush-chat-button:disabled,
.crush-post-form button:disabled,
.crush-forum-reply-form button:disabled,
.crush-contact-form button:disabled,
.crush-message-form button:disabled,
.crush-save-profile:disabled {
  cursor: wait;
  opacity: 0.55;
}

.crush-loading,
.crush-empty {
  align-items: center;
  color: var(--crush-muted);
  display: flex;
  flex-direction: column;
  grid-column: 1 / -1;
  justify-content: center;
  min-height: 190px;
  padding: 28px;
  text-align: center;
}

.crush-loading > span {
  animation: crush-spin 900ms linear infinite;
  border: 2px solid #ead9e5;
  border-radius: 50%;
  border-top-color: var(--crush-rose);
  height: 26px;
  width: 26px;
}

.crush-empty > span {
  color: #c57990;
  font-size: 31px;
}

.crush-empty strong {
  color: #65475a;
  margin-top: 7px;
}

.crush-empty p,
.crush-loading p {
  font-size: 11px;
  line-height: 1.7;
  margin: 6px 0 0;
  max-width: 360px;
}

@keyframes crush-spin {
  to { transform: rotate(360deg); }
}

.crush-post-form {
  margin-bottom: 25px;
  padding: 18px;
}

.crush-form-title > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.crush-form-title strong {
  color: #54344b;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 18px;
}

.crush-form-title > span {
  color: #9a8794;
  letter-spacing: 0;
}

.crush-post-form textarea,
.crush-forum-reply-form textarea,
.crush-message-form textarea,
.crush-profile-form input,
.crush-profile-form textarea,
.crush-contact-form input,
.crush-contact-form select {
  background: #fff;
  border: 1px solid #e5d5df;
  border-radius: 13px;
  box-sizing: border-box;
  color: #4d424a;
  font: 12px/1.65 "Noto Sans SC", "PingFang SC", sans-serif;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
  width: 100%;
}

.crush-post-form textarea {
  margin: 14px 0 10px;
  padding: 12px 13px;
  resize: vertical;
}

.crush-post-form textarea:focus,
.crush-forum-reply-form textarea:focus,
.crush-message-form textarea:focus,
.crush-profile-form input:focus,
.crush-profile-form textarea:focus,
.crush-contact-form input:focus,
.crush-contact-form select:focus {
  border-color: #c7849c;
  box-shadow: 0 0 0 3px #f6dde630;
}

.crush-form-actions {
  align-items: center;
  display: flex;
  gap: 15px;
  justify-content: space-between;
}

.crush-form-actions small {
  color: #978893;
  font-size: 9px;
}

.crush-inline-status,
.crush-profile-status {
  color: #9c526d;
  display: block;
  font-size: 10px;
  line-height: 1.5;
  margin: 7px 0 0;
}

.crush-forum-heading {
  margin-bottom: 13px;
}

.crush-feed {
  display: grid;
  gap: 12px;
}

.crush-forum-post {
  padding: 17px 18px;
}

.crush-forum-author {
  gap: 8px;
}

.crush-forum-author > span {
  align-items: center;
  background: #f1dfeb;
  border-radius: 10px;
  color: #865372;
  display: flex;
  font-size: 12px;
  font-weight: 800;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.crush-forum-author strong {
  color: #5d4053;
  font-size: 12px;
}

.crush-forum-top time,
.crush-forum-meta time,
.crush-message time,
.crush-contact-card time,
.crush-thread-item time {
  color: #a3939e;
  font-size: 9px;
}

.crush-forum-body {
  color: #51474e;
  font-size: 13px;
  line-height: 1.8;
  margin: 14px 0;
  white-space: pre-wrap;
}

.crush-forum-replies {
  display: grid;
  gap: 7px;
}

.crush-forum-reply {
  background: #f9f5f8;
  border-left: 2px solid #d9a9ba;
  border-radius: 0 10px 10px 0;
  padding: 9px 11px;
}

.crush-forum-reply.is-mine {
  border-left-color: #9c76aa;
}

.crush-forum-meta {
  align-items: center;
  display: flex;
  gap: 9px;
}

.crush-forum-meta strong {
  color: #765267;
  font-size: 10px;
}

.crush-forum-reply p {
  color: #62555e;
  font-size: 11px;
  line-height: 1.65;
  margin: 5px 0 0;
  white-space: pre-wrap;
}

.crush-forum-actions {
  gap: 8px;
  margin-top: 13px;
}

.crush-forum-actions button {
  background: transparent;
  border: 0;
  color: #8b6379;
  cursor: pointer;
  font: 700 10px/1 "Noto Sans SC", "PingFang SC", sans-serif;
  padding: 6px 0;
}

.crush-forum-actions button.is-private {
  color: #a34d6c;
}

.crush-forum-reply-form {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr auto;
  margin-top: 8px;
}

.crush-forum-reply-form textarea {
  grid-row: span 2;
  padding: 9px 10px;
  resize: vertical;
}

.crush-forum-reply-form .crush-inline-status {
  margin: 0;
}

.crush-profile-grid {
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.crush-profile-intro {
  background: linear-gradient(145deg, #fff0f3, #f0eafa);
  border: 1px solid #ead7e5;
  border-radius: 22px;
  padding: 26px;
}

.crush-profile-intro h3 {
  font-size: 28px;
  line-height: 1.35;
  margin-top: 8px;
}

.crush-profile-intro > p {
  color: #766a73;
  font-size: 12px;
  line-height: 1.8;
}

.crush-assessment-state {
  background: #ffffffa8;
  border: 1px solid #e5d7e1;
  border-radius: 15px;
  margin: 20px 0 12px;
  padding: 14px;
}

.crush-assessment-state.is-ready {
  border-color: #c9dccf;
}

.crush-assessment-state.is-missing {
  border-color: #e7cbd4;
}

.crush-assessment-state strong {
  color: #604556;
  font-size: 12px;
}

.crush-assessment-state p {
  color: #897983;
  font-size: 10px;
  line-height: 1.6;
  margin: 5px 0 0;
}

.crush-assessment-heading span {
  color: #5b8872;
  font-size: 9px;
  font-weight: 800;
}

.crush-mini-scores {
  margin-top: 10px;
}

.crush-profile-form {
  display: grid;
  gap: 15px;
}

.crush-profile-form > label:not(.crush-check) {
  color: #66535f;
  display: grid;
  font-size: 11px;
  font-weight: 700;
  gap: 7px;
}

.crush-profile-form input,
.crush-profile-form textarea {
  padding: 11px 12px;
  resize: vertical;
}

.crush-check {
  align-items: flex-start;
  background: #faf6f9;
  border: 1px solid #ecdee7;
  border-radius: 13px;
  color: #6f626a;
  display: flex;
  font-size: 10px;
  gap: 9px;
  line-height: 1.65;
  padding: 11px;
}

.crush-check input {
  accent-color: #b95777;
  flex: 0 0 auto;
  height: 16px;
  margin: 1px 0 0;
  width: 16px;
}

.crush-profile-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.crush-disable-profile {
  color: #9e4f65;
}

.crush-chat-layout {
  display: grid;
  gap: 14px;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: 560px;
}

.crush-thread-sidebar,
.crush-thread-main {
  background: #ffffffc7;
  border: 1px solid var(--crush-line);
  border-radius: 20px;
  min-width: 0;
  overflow: hidden;
}

.crush-thread-heading {
  border-bottom: 1px solid var(--crush-line);
  padding: 17px;
}

.crush-thread-heading h3 {
  font-size: 19px;
}

.crush-thread-list {
  max-height: 500px;
  overflow-y: auto;
  padding: 7px;
}

.crush-thread-list .crush-empty {
  min-height: 220px;
  padding: 16px;
}

.crush-thread-item {
  background: transparent;
  border: 0;
  border-radius: 13px;
  color: #5e4b57;
  cursor: pointer;
  display: block;
  padding: 11px;
  text-align: left;
  width: 100%;
}

.crush-thread-item:hover,
.crush-thread-item.is-active {
  background: linear-gradient(135deg, #f8e7ed, #f0e8f8);
}

.crush-thread-item strong {
  font-size: 11px;
}

.crush-thread-item > small {
  color: #978892;
  display: block;
  font-size: 9px;
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crush-thread-main {
  display: flex;
  flex-direction: column;
  min-height: 560px;
}

.crush-thread-main > .crush-loading,
.crush-thread-main > .crush-empty,
.crush-chat-empty {
  align-items: center;
  color: #8f7e89;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
  text-align: center;
}

.crush-chat-empty > span {
  color: #c5748d;
  font-size: 34px;
}

.crush-chat-empty strong {
  color: #66485a;
  margin-top: 8px;
}

.crush-chat-empty p {
  font-size: 10px;
  line-height: 1.7;
  max-width: 350px;
}

.crush-chat-header {
  background: #fff;
  border-bottom: 1px solid var(--crush-line);
  padding: 13px 16px;
}

.crush-chat-header > div {
  gap: 10px;
}

.crush-chat-avatar {
  border-radius: 13px;
  height: 36px;
  width: 36px;
}

.crush-chat-header > div > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.crush-chat-header strong {
  color: #5d3d51;
  font-size: 12px;
}

.crush-chat-header small {
  color: #9a8a94;
  font-size: 9px;
}

.crush-contact-area {
  background: #fff8ef;
  border-bottom: 1px solid #efdfc9;
  padding: 12px 15px;
}

.crush-contact-heading {
  align-items: baseline;
  display: flex;
  gap: 8px;
}

.crush-contact-heading strong {
  color: #7b513d;
  font-size: 11px;
}

.crush-contact-heading span {
  color: #a88776;
  font-size: 8px;
}

.crush-contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.crush-contact-card {
  background: #fff;
  border: 1px solid #ead5bc;
  border-radius: 10px;
  min-width: 150px;
  padding: 8px 9px;
}

.crush-contact-card.is-mine {
  border-color: #dab3c2;
}

.crush-contact-card strong {
  color: #825f4e;
  font-size: 8px;
}

.crush-contact-card code {
  color: #593f33;
  display: block;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  margin-top: 5px;
  overflow-wrap: anywhere;
}

.crush-no-contact {
  color: #a28778;
  font-size: 9px;
  margin: 0;
}

.crush-contact-form {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: 86px 1fr auto;
  margin-top: 9px;
}

.crush-contact-form input,
.crush-contact-form select {
  font-size: 10px;
  padding: 7px 8px;
}

.crush-contact-form .crush-inline-status {
  grid-column: 1 / -1;
  margin: 0;
}

.crush-messages {
  background:
    radial-gradient(circle at 10% 10%, #f8edf3 0, transparent 30%),
    #fbfafb;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  max-height: 310px;
  min-height: 220px;
  overflow-y: auto;
  padding: 15px;
}

.crush-no-messages {
  color: #9b8d96;
  font-size: 10px;
  margin: auto;
}

.crush-message {
  align-self: flex-start;
  max-width: min(78%, 520px);
}

.crush-message.is-mine {
  align-self: flex-end;
}

.crush-message p {
  background: #fff;
  border: 1px solid #e8dae3;
  border-radius: 5px 14px 14px 14px;
  color: #51454d;
  font-size: 11px;
  line-height: 1.7;
  margin: 0;
  padding: 9px 11px;
  white-space: pre-wrap;
}

.crush-message.is-mine p {
  background: linear-gradient(135deg, #d9738f, #9c658f);
  border: 0;
  border-radius: 14px 5px 14px 14px;
  color: #fff;
}

.crush-message time {
  display: block;
  margin: 3px 4px 0;
}

.crush-message.is-mine time {
  text-align: right;
}

.crush-message-form {
  align-items: center;
  background: #fff;
  border-top: 1px solid var(--crush-line);
  display: grid;
  gap: 7px;
  grid-template-columns: 1fr auto;
  padding: 10px 12px;
}

.crush-message-form textarea {
  padding: 8px 9px;
  resize: vertical;
}

.crush-message-form .crush-inline-status {
  grid-column: 1 / -1;
  margin: 0;
}

.crush-nav-button {
  background: linear-gradient(135deg, #fff0f4, #f0e8fa);
  border: 1px solid #ead2df;
  color: #8e4766;
}

@media (max-width: 820px) {
  .crush-overlay {
    align-items: stretch;
    padding: 0;
  }

  .crush-shell {
    border-radius: 0;
    max-height: 100vh;
  }

  .crush-header,
  .crush-view {
    padding-left: 20px;
    padding-right: 20px;
  }

  .crush-privacy-strip,
  .crush-tabs {
    padding-left: 20px;
    padding-right: 20px;
  }

  .crush-matches,
  .crush-profile-grid {
    grid-template-columns: 1fr;
  }

  .crush-chat-layout {
    grid-template-columns: 1fr;
  }

  .crush-thread-sidebar {
    max-height: 240px;
  }

  .crush-thread-list {
    max-height: 170px;
  }

  .crush-thread-main {
    min-height: 520px;
  }
}

@media (max-width: 520px) {
  .crush-launcher {
    bottom: 84px;
    right: 14px;
  }

  .crush-header {
    padding-top: 22px;
  }

  .crush-header h2 {
    font-size: 27px;
  }

  .crush-privacy-strip span:nth-child(2),
  .crush-privacy-strip span:nth-child(4) {
    display: none;
  }

  .crush-view {
    padding-top: 22px;
  }

  .crush-view-heading {
    align-items: flex-start;
  }

  .crush-match-footer,
  .crush-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .crush-match-footer .crush-chat-button,
  .crush-form-actions button {
    width: 100%;
  }

  .crush-contact-form {
    grid-template-columns: 78px 1fr;
  }

  .crush-contact-form button {
    grid-column: 1 / -1;
  }

  .crush-forum-reply-form {
    grid-template-columns: 1fr;
  }

  .crush-forum-reply-form textarea {
    grid-row: auto;
  }
}
