:root {
  --ink: #11151d;
  --ink-soft: #2b303a;
  --muted: #7c828d;
  --faint: #a5aab3;
  --line: #eceef2;
  --surface: #ffffff;
  --surface-soft: #f7f8fa;
  --coral: #ff554d;
  --coral-dark: #eb433d;
  --green: #23b769;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #f4f5f7;
  font-synthesis: none;
  text-rendering: geometricPrecision;
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  width: 100%;
  height: 100%;
  min-height: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.app-shell {
  width: 100%;
  min-height: 100dvh;
  display: grid;
  place-items: stretch;
  padding: 0;
}

.phone {
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--surface);
  box-shadow: none;
}

.screen {
  --screen-pad-x: 22px;
  position: relative;
  height: 100%;
  overflow-y: auto;
  padding: 22px var(--screen-pad-x) 28px;
  background: var(--surface);
  scrollbar-width: none;
}

.screen::-webkit-scrollbar {
  display: none;
}

.top-bar {
  min-height: 42px;
  display: grid;
  grid-template-columns: 70px 1fr 70px;
  align-items: center;
  margin-bottom: 12px;
}

.top-bar strong {
  justify-self: center;
  font-size: 17px;
  line-height: 1.2;
}

.nav-text {
  min-height: 34px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
  font-weight: 700;
}

.nav-text:last-child {
  justify-self: end;
}

.nav-text.is-hidden {
  visibility: hidden;
}

.top-fill {
  display: block;
}

.primary-action,
.secondary-action,
.wechat-action {
  min-height: 54px;
  border-radius: 14px;
  font-weight: 850;
}

.primary-action {
  width: 100%;
  color: #fff;
  background: linear-gradient(180deg, #ff625a 0%, var(--coral) 100%);
  box-shadow: 0 14px 30px rgba(255, 85, 77, 0.24);
}

.secondary-action,
.wechat-action {
  width: 100%;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.bottom-action {
  margin-top: 20px;
}

.login-screen {
  padding: 0;
  overflow: hidden;
}

.login-photo,
.login-shade {
  position: absolute;
  inset: 0;
}

.login-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login-shade {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.08) 38%),
    linear-gradient(180deg, rgba(17, 21, 29, 0) 38%, rgba(17, 21, 29, 0.34) 100%);
}

.login-content {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 42px 24px 0;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-brand img {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  object-fit: cover;
  box-shadow: 0 12px 22px rgba(255, 85, 77, 0.22);
}

.login-brand strong,
.login-brand span,
.profile-section h2,
.mbti-entry small,
.mbti-entry strong,
.type-card strong,
.type-card small,
.type-card i,
.conversation-copy strong,
.conversation-copy em,
.chat-top strong,
.chat-top small {
  display: block;
}

.login-brand strong {
  font-size: 24px;
  line-height: 1.05;
}

.login-brand span {
  margin-top: 4px;
  color: #555c68;
  font-size: 12px;
}

.login-copy {
  margin-top: 72px;
}

.login-copy h1 {
  margin: 0;
  font-size: 31px;
  line-height: 1.18;
  letter-spacing: 0;
}

.login-copy p {
  width: 220px;
  margin: 14px 0 0;
  color: #3f4652;
  font-size: 14px;
  line-height: 1.65;
}

.login-count {
  position: absolute;
  left: 24px;
  bottom: 212px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 16px;
  color: #fff;
  background: rgba(17, 21, 29, 0.32);
  backdrop-filter: blur(14px);
}

.login-count p {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
}

.mini-stack {
  display: flex;
}

.mini-stack .avatar {
  width: 28px;
  height: 28px;
  margin-right: -10px;
  border: 2px solid #fff;
}

.login-panel {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  bottom: 24px;
  display: grid;
  gap: 12px;
}

.login-input {
  min-height: 54px;
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  padding: 0 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 26px rgba(17, 21, 29, 0.08);
}

.login-input span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.login-input input {
  height: 54px;
  font-size: 14px;
}

.wechat-action {
  color: #1e9a4d;
}

.terms {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  line-height: 1.35;
}

.terms input {
  width: 14px;
  height: 14px;
  accent-color: var(--coral);
}

.modal-backdrop {
  position: absolute;
  z-index: 20;
  inset: 0;
  display: grid;
  align-items: end;
  padding: 18px;
  background: rgba(17, 21, 29, 0.34);
  backdrop-filter: blur(12px);
}

.sms-modal {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 24px 18px 18px;
  border-radius: 24px 24px 18px 18px;
  background: #fff;
}

.sms-modal small,
.sms-modal h2,
.sms-modal p,
.debug-code span,
.debug-code strong,
.sms-tip {
  display: block;
}

.sms-modal small {
  color: var(--coral);
  font-size: 12px;
  font-weight: 850;
}

.sms-modal h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
}

.sms-modal p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--muted);
  background: #f3f4f6;
  font-size: 12px;
  font-weight: 800;
}

.debug-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 14px;
  border-radius: 14px;
  background: #fff0ef;
}

.debug-code span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.debug-code strong {
  color: var(--coral-dark);
  font-size: 24px;
  letter-spacing: 0;
}

.sms-tip {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.4;
}

.code-input {
  min-height: 54px;
  display: grid;
  align-items: center;
  padding: 0 16px;
  border-radius: 14px;
  background: #f6f7f9;
}

.code-input input {
  height: 54px;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: 0;
}

.profile-screen,
.select-screen,
.detail-screen,
.messages-screen,
.chat-screen {
  background: #fff;
}

.profile-screen.with-tabbar,
.detail-screen,
.messages-screen {
  padding-bottom: 108px;
}

.profile-screen.with-tabbar {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 0;
}

.profile-screen.with-tabbar .profile-form {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding-bottom: 176px;
  scrollbar-width: none;
}

.profile-screen.with-tabbar .profile-form::-webkit-scrollbar {
  display: none;
}

.match-flow-screen {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 0;
}

.match-flow-content {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding-bottom: 106px;
  scrollbar-width: none;
}

.match-flow-content::-webkit-scrollbar {
  display: none;
}

.match-flow-screen.has-fixed-action .match-flow-content {
  padding-bottom: 164px;
}

.profile-head {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 4px 0 20px;
}

.profile-head img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(17, 21, 29, 0.14);
}

.profile-head button,
.avatar-upload-control {
  min-height: 30px;
  display: inline-grid;
  place-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--ink);
  background: #f2f3f5;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.avatar-upload-control input {
  display: none;
}

.profile-hint {
  max-width: 240px;
  margin: -2px 0 0;
  color: var(--coral);
  font-size: 12px;
  line-height: 1.5;
}

.form-list {
  border-top: 1px solid var(--line);
}

.form-row {
  min-height: 54px;
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.form-row span {
  color: var(--ink-soft);
}

.form-row input {
  height: 52px;
  text-align: right;
  color: var(--ink);
}

.profile-section {
  margin-top: 24px;
}

.profile-section h2 {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 14px;
}

.profile-section h2 span {
  margin-left: 5px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 500;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-row.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.select-pill {
  min-width: 68px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 13px;
  color: #4f5662;
  background: #f3f4f6;
  font-size: 13px;
  font-weight: 750;
}

.select-pill.is-selected {
  color: var(--coral-dark);
  background: #fff0ef;
}

.mbti-entry {
  width: 100%;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.mbti-entry small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.mbti-entry strong {
  margin-top: 6px;
  font-size: 15px;
}

.mbti-entry em {
  color: var(--faint);
  font-size: 12px;
  font-style: normal;
}

.profile-fixed-action {
  position: absolute;
  z-index: 8;
  left: 0;
  right: 0;
  bottom: 82px;
  padding: 10px var(--screen-pad-x) 12px;
  border-top: 1px solid rgba(236, 238, 242, 0.92);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), #fff 34%),
    rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
}

.profile-fixed-action .primary-action {
  min-height: 50px;
  border-radius: 13px;
}

.subtitle {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.group-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.group-card {
  min-height: 76px;
  padding: 12px 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--group-color);
  background: #fbfbfc;
}

.group-card strong,
.group-card span {
  display: block;
}

.group-card strong {
  font-size: 14px;
}

.group-card span {
  margin-top: 6px;
  color: #5c6370;
  font-size: 12px;
}

.group-card.is-selected {
  border-color: var(--group-color);
  background: var(--group-tint);
  box-shadow: 0 12px 24px rgba(102, 83, 217, 0.1);
}

.select-summary {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 16px;
  align-items: end;
  margin-top: 26px;
}

.select-summary small {
  color: var(--group-color);
  font-size: 13px;
  font-weight: 850;
}

.select-summary h1 {
  margin: 6px 0 0;
  color: var(--group-color);
  font-size: 24px;
  line-height: 1.1;
}

.select-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  text-align: right;
}

.type-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.type-card {
  width: 100%;
  min-height: 126px;
  display: grid;
  align-content: space-between;
  gap: 10px;
  padding: 12px;
  border: 0;
  border-radius: 16px;
  color: var(--ink);
  background: #f7f8fa;
  text-align: left;
}

.type-card.is-selected {
  background: color-mix(in srgb, var(--group-color) 18%, #ffffff);
}

.type-main {
  min-width: 0;
}

.type-card strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.15;
}

.type-card strong em {
  display: block;
  margin: 4px 0 0;
  color: var(--group-color);
  font-size: 13px;
  font-style: normal;
}

.type-card small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.tag-line {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}

.tag-line b {
  padding: 0;
  border-radius: 7px;
  color: var(--group-color);
  font-size: 10px;
  font-weight: 750;
}

.type-card i {
  margin-top: 7px;
  color: #66707d;
  font-size: 11px;
  font-style: normal;
}

.type-side {
  display: block;
}

.type-side small {
  margin: 0;
  color: var(--faint);
  font-size: 11px;
}

.type-side em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.type-card.is-selected .type-side em,
.type-card.is-selected strong,
.type-card.is-selected strong em {
  color: var(--group-color);
}

.hint-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  border-radius: 16px;
  background: #f5f2ff;
}

.hint-card strong {
  color: var(--ink);
  font-size: 14px;
}

.hint-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.personality-head,
.match-hero {
  padding-top: 18px;
}

.personality-head h1,
.match-hero h1 {
  margin: 0;
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: 0;
}

.personality-head h1 span,
.match-hero h1 em {
  margin-left: 8px;
  color: var(--group-color);
  font-size: 22px;
  font-style: normal;
}

.type-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-top: 14px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--group-color);
  background: var(--group-tint);
  font-size: 12px;
  font-weight: 850;
}

.trait-row,
.compat-row,
.interest-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trait-row {
  margin-top: 18px;
}

.trait-row span,
.compat-row span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--group-color);
  background: var(--group-tint);
  font-size: 13px;
  font-weight: 800;
}

.personality-head p,
.match-hero p {
  margin: 20px 0 0;
  color: #424956;
  font-size: 15px;
  line-height: 1.8;
}

.match-hero {
  padding: 18px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(102, 83, 217, 0.08), rgba(255, 85, 77, 0.05)),
    #fff;
}

.match-hero > span {
  color: var(--group-color);
  font-size: 12px;
  font-weight: 850;
}

.target-section {
  margin-top: 0;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.section-title small {
  color: var(--coral);
  font-size: 12px;
  font-weight: 850;
}

.section-title h1,
.section-title h2 {
  margin: 4px 0 0;
  line-height: 1.18;
}

.section-title h1 {
  font-size: 24px;
}

.section-title h2 {
  font-size: 19px;
}

.target-group-tags {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.target-group-tag {
  position: relative;
  min-height: 72px;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  overflow: hidden;
  padding: 10px 9px;
  border: 0;
  border-radius: 16px;
  color: var(--ink);
  background: #f7f8fa;
  text-align: left;
}

.target-group-tag::before {
  display: none;
}

.target-group-tag span,
.target-group-tag strong,
.target-group-tag small {
  display: block;
  min-width: 0;
}

.target-group-tag strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.15;
}

.target-group-tag small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.15;
}

.target-group-tag b {
  position: absolute;
  top: 8px;
  right: 9px;
  min-width: auto;
  height: auto;
  display: grid;
  place-items: center;
  color: var(--tag-color);
  background: transparent;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.target-group-tag.is-active {
  color: var(--tag-color);
  background: color-mix(in srgb, var(--tag-color) 18%, #ffffff);
}

.target-group-tag.is-active::before {
  display: none;
}

.target-group-tag.is-active strong {
  color: var(--tag-color);
  font-weight: 950;
}

.target-group-tag.is-active small {
  color: #596071;
}

.target-picker-card {
  margin-top: 10px;
  padding: 12px;
  border: 0;
  border-radius: 16px;
  background: color-mix(in srgb, var(--tag-color) 4%, #f7f8fa);
}

.target-group-head {
  display: grid;
  gap: 8px;
}

.target-group-head small,
.target-group-head strong {
  display: block;
}

.target-group-head small {
  color: var(--tag-color);
  font-size: 12px;
  font-weight: 850;
}

.target-group-head strong {
  margin-top: 3px;
  font-size: 18px;
}

.target-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.target-type-chip {
  position: relative;
  min-height: 78px;
  display: grid;
  align-content: start;
  gap: 3px;
  padding: 10px;
  border: 0;
  border-radius: 14px;
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.target-type-chip strong,
.target-type-chip span,
.target-type-chip small {
  display: block;
}

.target-type-chip strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.1;
}

.target-type-chip span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}

.target-type-chip small {
  color: var(--muted);
  font-size: 10px;
}

.target-type-chip em {
  position: absolute;
  right: 8px;
  bottom: 8px;
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border-radius: 0;
  color: #8a909b;
  background: transparent;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.target-type-chip.is-selected {
  background: color-mix(in srgb, var(--tag-color) 18%, #ffffff);
}

.target-type-chip.is-selected em {
  color: var(--tag-color);
  background: transparent;
}

.target-type-chip.is-selected strong,
.target-type-chip.is-selected span {
  color: var(--tag-color);
}

.target-type-chip.is-selected strong {
  font-weight: 950;
}

.daily-rule-card {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  color: #505765;
  background: #f8f8fa;
}

.daily-rule-card strong {
  font-size: 12px;
}

.daily-rule-card p,
.recommend-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.match-fixed-action {
  position: absolute;
  z-index: 8;
  left: 0;
  right: 0;
  bottom: 82px;
  padding: 8px var(--screen-pad-x) 10px;
  border-top: 1px solid rgba(236, 238, 242, 0.92);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), #fff 34%),
    rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
}

.match-fixed-action p {
  margin: 0 0 6px;
  color: var(--muted);
  text-align: center;
  font-size: 11px;
  font-weight: 800;
}

.match-fixed-action .primary-action {
  min-height: 50px;
  border-radius: 13px;
}

.recommendation-list {
  padding-top: 8px;
}

.candidate-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.candidate-row {
  --candidate-color: #6653d9;
  --candidate-tint: #f1efff;
  position: relative;
  width: 100%;
  min-height: 92px;
  display: grid;
  grid-template-columns: 54px 1fr 52px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--candidate-color) 18%, var(--line));
  border-radius: 18px;
  color: var(--ink);
  background: color-mix(in srgb, var(--candidate-color) 4%, #ffffff);
  text-align: left;
}

.candidate-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--candidate-color);
}

.candidate-row.is-confirmed {
  border-color: rgba(255, 85, 77, 0.42);
  background: #fff0ef;
}

.candidate-row.is-muted {
  opacity: 0.54;
}

.candidate-row .avatar {
  width: 54px;
  height: 54px;
}

.candidate-row-main {
  min-width: 0;
}

.candidate-row-main strong,
.candidate-row-main em,
.candidate-row-main span {
  display: block;
}

.candidate-row-main strong {
  font-size: 15px;
}

.candidate-row-main small {
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 7px;
  color: var(--candidate-color);
  background: color-mix(in srgb, var(--candidate-color) 14%, #ffffff);
  font-size: 10px;
}

.candidate-row-main em {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.candidate-row-main span {
  overflow: hidden;
  margin-top: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.candidate-row-main b {
  display: inline-flex;
  margin-right: 5px;
  padding: 3px 6px;
  border-radius: 7px;
  color: var(--candidate-color);
  background: color-mix(in srgb, var(--candidate-color) 14%, #ffffff);
  font-size: 10px;
}

.candidate-row-score {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.candidate-row-score strong {
  color: var(--coral);
  font-size: 17px;
}

.candidate-row-score small {
  color: var(--faint);
  font-size: 11px;
}

.candidate-detail-screen {
  background: #fff;
  padding-bottom: 0;
}

.candidate-hero-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: 26px;
  background: #edf0f4;
}

.candidate-hero-card img {
  width: 100%;
  height: 430px;
  display: block;
  object-fit: cover;
}

.candidate-hero-card::after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(180deg, transparent, rgba(17, 21, 29, 0.78));
}

.hero-topline,
.hero-caption,
.hero-score {
  position: absolute;
  z-index: 1;
}

.hero-topline {
  top: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-topline span,
.hero-topline button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(17, 21, 29, 0.32);
  backdrop-filter: blur(12px);
}

.hero-caption {
  left: 22px;
  right: 116px;
  bottom: 30px;
  color: #fff;
}

.hero-caption h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
}

.hero-caption h1 small {
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--candidate-color, #6653d9) 82%, rgba(255, 255, 255, 0.18));
  font-size: 13px;
}

.hero-caption p,
.hero-caption blockquote {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.45;
}

.hero-caption blockquote {
  font-weight: 700;
}

.hero-score {
  right: 22px;
  bottom: 34px;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border: 5px solid rgba(155, 111, 235, 0.9);
  border-radius: 50%;
  color: #fff;
  background: rgba(17, 21, 29, 0.18);
  backdrop-filter: blur(10px);
  font-size: 26px;
}

.hero-score small {
  display: block;
  font-size: 11px;
}

.candidate-detail-block {
  margin-top: 22px;
}

.candidate-detail-block h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.reason-chip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.reason-chip-grid span {
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 12px;
  border-radius: 16px;
  background: #f7f7f9;
}

.reason-chip-grid strong,
.reason-chip-grid small {
  display: block;
}

.reason-chip-grid strong {
  font-size: 13px;
}

.reason-chip-grid small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.candidate-detail-block p {
  margin: 14px 0 0;
  padding: 14px;
  border-radius: 16px;
  color: #4b5260;
  background: color-mix(in srgb, var(--candidate-color, #6653d9) 8%, #ffffff);
  font-size: 14px;
  line-height: 1.65;
}

.primary-action:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.candidate-action-bar {
  position: sticky;
  z-index: 5;
  bottom: 0;
  margin: 24px calc(var(--screen-pad-x) * -1) -28px;
  padding: 12px var(--screen-pad-x) calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(236, 238, 242, 0.92);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.64), #fff 34%),
    rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
}

.detail-section {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.detail-section h2 {
  margin: 0 0 14px;
  font-size: 17px;
}

.detail-section p {
  margin: 0;
  color: #4b5260;
  font-size: 14px;
  line-height: 1.7;
}

.match-card {
  position: relative;
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 14px;
  margin-top: 24px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.match-card.is-ready {
  border-color: rgba(255, 85, 77, 0.38);
  box-shadow: 0 16px 32px rgba(255, 85, 77, 0.12);
}

.match-card img {
  width: 94px;
  height: 112px;
  border-radius: 15px;
  object-fit: cover;
}

.match-info span {
  color: var(--coral);
  font-size: 12px;
  font-weight: 850;
}

.match-info h2 {
  margin: 6px 0 0;
  font-size: 19px;
}

.match-info p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.interest-row {
  margin-top: 10px;
}

.interest-row b {
  padding: 5px 8px;
  border-radius: 8px;
  color: #4f5662;
  background: #f1f2f4;
  font-size: 11px;
}

.score {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 4px solid #ffe5e3;
  border-radius: 50%;
  color: var(--coral);
  background: #fff;
  font-size: 17px;
  line-height: 1;
}

.score small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.reason-section ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  color: #4b5260;
  font-size: 13px;
  line-height: 1.5;
}

.detail-actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.detail-actions:has(.secondary-action) {
  grid-template-columns: 0.88fr 1.12fr;
}

.detail-actions p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--faint);
  text-align: center;
  font-size: 12px;
}

.new-match-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 18px 0 12px;
}

.new-match-strip button {
  display: grid;
  justify-items: center;
  gap: 6px;
  background: transparent;
}

.new-match-strip .avatar {
  width: 54px;
  height: 54px;
}

.new-match-strip small {
  color: var(--ink-soft);
  font-size: 11px;
}

.conversation-list {
  display: grid;
  padding-bottom: 84px;
}

.conversation-row {
  width: 100%;
  min-height: 78px;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f0f1f4;
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.conversation-row.is-highlight {
  margin: 4px 0 8px;
  padding: 10px 12px;
  border: 0;
  border-radius: 18px;
  background: #fff0ef;
}

.conversation-copy {
  min-width: 0;
}

.conversation-copy strong {
  font-size: 15px;
}

.conversation-copy small {
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 7px;
  color: #6653d9;
  background: #f1efff;
  font-size: 10px;
}

.conversation-copy em {
  overflow: hidden;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-meta {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.conversation-meta time {
  color: var(--faint);
  font-size: 11px;
}

.conversation-meta b {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--coral);
  font-size: 11px;
}

.empty-message {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 96px;
  padding: 26px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
  text-align: center;
}

.empty-message strong {
  font-size: 18px;
}

.empty-message p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.bottom-nav {
  position: absolute;
  z-index: 9;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  min-height: 82px;
  padding: 8px 24px calc(9px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(236, 238, 242, 0.96);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 -12px 30px rgba(17, 21, 29, 0.08);
  backdrop-filter: blur(18px);
}

.bottom-nav button {
  position: relative;
  min-width: 0;
  height: 58px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
  border-radius: 16px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}

.bottom-nav .is-active {
  color: var(--coral);
  background: transparent;
}

.bottom-nav .is-active::after {
  content: "";
  position: absolute;
  bottom: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--coral);
}

.tab-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  transition:
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.tab-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tab-label {
  line-height: 1.1;
}

.bottom-nav .is-active .tab-icon {
  background: #fff0ef;
  box-shadow: 0 8px 18px rgba(255, 85, 77, 0.14);
}

.bottom-nav .is-active .tab-label {
  color: var(--coral);
}

.chat-screen {
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
  background: #fbfbfc;
}

.chat-top {
  display: grid;
  grid-template-columns: 48px 42px 1fr;
  gap: 10px;
  align-items: center;
  margin: -2px -4px 12px;
  padding: 0 4px 12px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.chat-top .avatar {
  width: 42px;
  height: 42px;
}

.chat-top strong {
  font-size: 15px;
}

.chat-top small {
  margin-top: 3px;
  color: var(--green);
  font-size: 11px;
}

.chat-context {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.chat-context img {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  object-fit: cover;
}

.chat-context span,
.chat-context strong,
.chat-context p {
  display: block;
}

.chat-context span {
  color: var(--coral);
  font-size: 11px;
  font-weight: 850;
}

.chat-context strong {
  margin-top: 4px;
  font-size: 13px;
}

.chat-context p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.chat-body {
  flex: 1;
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  padding: 6px 0 16px;
}

.bubble {
  max-width: 82%;
  width: fit-content;
  padding: 11px 13px;
  border-radius: 15px;
  font-size: 14px;
  line-height: 1.55;
}

.bubble.theirs {
  color: var(--ink-soft);
  background: #fff;
  box-shadow: 0 8px 18px rgba(17, 21, 29, 0.06);
}

.bubble.mine {
  justify-self: end;
  color: #fff;
  background: #ff6b62;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr 62px;
  gap: 10px;
  margin: 0 -22px;
  padding: 12px 22px 18px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.chat-form input {
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fafafa;
  font-size: 13px;
}

.chat-form button {
  height: 42px;
  border-radius: 14px;
  color: #fff;
  background: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.avatar {
  width: 48px;
  height: 48px;
  display: block;
  flex: 0 0 auto;
  border-radius: 50%;
  background-image: url("./assets/avatar-sheet.png");
  background-size: 300% 300%;
  box-shadow: 0 8px 16px rgba(17, 21, 29, 0.1);
}

.avatar.uploaded-avatar {
  object-fit: cover;
  background-image: none;
}

.avatar-0 {
  background-position: 0% 0%;
}

.avatar-1 {
  background-position: 50% 0%;
}

.avatar-2 {
  background-position: 100% 0%;
}

.avatar-3 {
  background-position: 0% 50%;
}

.avatar-4 {
  background-position: 50% 50%;
}

.avatar-5 {
  background-position: 100% 50%;
}

.avatar-6 {
  background-position: 0% 100%;
}

.avatar-7 {
  background-position: 50% 100%;
}

.avatar-8 {
  background-position: 100% 100%;
}

@media (max-width: 560px) {
  .app-shell {
    display: block;
    padding: 0;
  }

  .phone {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

@media (max-width: 370px) {
  .screen {
    --screen-pad-x: 16px;
  }

  .login-panel {
    left: 14px;
    right: 14px;
  }

  .group-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .select-summary {
    grid-template-columns: 1fr;
  }

  .select-summary p {
    text-align: left;
  }

  .type-list {
    gap: 7px;
  }

  .type-card {
    min-height: 122px;
    padding: 11px;
  }
}
