/* 嘿！煤球 · 会员登记模块 */

.hidden { display: none !important; }

.mq-member-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 0 14px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.mq-member-nav a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--black-2, #333);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.mq-member-nav a:hover {
  background: rgba(255, 196, 0, 0.22);
}

.mq-member-nav a.is-active {
  background: var(--y, #ffc400);
  color: var(--black, #111);
}

.mq-offline-banner {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fef3c7;
  border: 2px solid #f59e0b;
  color: #92400e;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.5;
}

.mq-privacy-notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0c4a6e;
  font-size: 0.8rem;
  line-height: 1.5;
}

.mq-privacy-icon {
  flex-shrink: 0;
  font-size: 1.1rem;
  line-height: 1.3;
}

.mq-privacy-text strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: #075985;
}

.mq-privacy-text p {
  margin: 0;
  font-weight: 500;
  color: #0c4a6e;
}

.mq-save-ok {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #ecfdf5;
  border: 1px solid #34d399;
  color: #065f46;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
}

.mq-slogan-rotator {
  text-align: center;
  font-size: 0.82rem;
  color: var(--black-2);
  margin: 8px 0 16px;
  min-height: 1.4em;
  font-weight: 600;
}

.mq-slogan-rotator em {
  font-style: normal;
  color: var(--black);
}

.mq-step-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.mq-step-label span {
  font-size: 0.75rem;
  color: var(--gray);
  font-weight: 600;
}

/* ── Shared form controls (#fdbb0d accent, flat style) ── */
:root {
  --mq-accent: #fdbb0d;
  --mq-accent-ring: rgba(253, 187, 13, 0.35);
  --mq-field-border: rgba(0, 0, 0, 0.1);
  --mq-field-h: 48px;
  --mq-field-pad-x: 14px;
  --mq-field-fs: 16px;
  --mq-label-fs: 0.82rem;
  --mq-hint-fs: 0.78rem;
  --mq-section-title-fs: 0.78rem;
  --mq-error-fs: 0.78rem;
  --mq-tag-min-h: 44px;
}

.mq-field {
  margin-bottom: 16px;
}

.mq-field > label {
  display: block;
  font-size: var(--mq-label-fs);
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--black-2);
  line-height: 1.35;
}

.mq-field > label small {
  font-weight: 400;
  color: var(--gray);
}

.mq-field-section > label {
  margin-bottom: 0;
}

.mq-field-hint,
.mq-photo-hint,
.mq-prefs-hint,
.mq-section-card-lead,
.mq-step-philosophy-hint,
.mq-collapse-lead {
  font-size: var(--mq-hint-fs);
  color: var(--gray);
  line-height: 1.45;
}

.mq-field-hint {
  margin: -2px 0 8px;
}

.mq-input,
.mq-select,
.mq-textarea,
.mq-field > input:not([type="file"]):not([hidden]),
.mq-field > select,
.mq-field > textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0 var(--mq-field-pad-x);
  border: 2px solid var(--mq-field-border);
  border-radius: var(--radius-sm);
  font-size: var(--mq-field-fs);
  font-family: inherit;
  color: var(--black);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.mq-input,
.mq-select,
.mq-field > input:not([type="file"]):not([hidden]),
.mq-field > select {
  min-height: var(--mq-field-h);
  line-height: 1.25;
}

.mq-textarea,
.mq-field > textarea {
  min-height: 96px;
  padding: 12px var(--mq-field-pad-x);
  resize: vertical;
  line-height: 1.55;
}

.mq-select,
.mq-field > select {
  padding-right: 38px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23111' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
}

.mq-input::placeholder,
.mq-textarea::placeholder,
.mq-field > input::placeholder,
.mq-field > textarea::placeholder {
  color: #aaa;
}

.mq-input:focus,
.mq-select:focus,
.mq-textarea:focus,
.mq-field > input:not([type="file"]):not([hidden]):focus,
.mq-field > select:focus,
.mq-field > textarea:focus {
  outline: none;
  border-color: var(--black);
  box-shadow: 0 0 0 3px var(--mq-accent-ring);
}

.mq-input-readonly,
.mq-field > input[readonly] {
  background: #f5f5f5;
  color: var(--black-2);
  cursor: default;
}

.mq-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.mq-field-row > .mq-field {
  margin-bottom: 0;
  min-width: 0;
}

.mq-field-row + .mq-field-row {
  margin-top: 0;
}

/* Birth year-month (dual mq-input, #fdbb0d focus) */
.mq-birth-ym {
  display: flex;
  gap: 8px;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
}

.mq-birth-ym .mq-birth-combobox {
  flex: 1;
  min-width: 0;
}

.mq-birth-ym-year {
  flex: 1.25;
  margin-bottom: 0;
  text-align: center;
}

.mq-birth-ym-month {
  flex: 0.75;
  max-width: 132px;
  margin-bottom: 0;
  text-align: center;
}

.mq-birth-combobox .mq-combobox-toggle {
  width: 34px;
  height: 34px;
  min-height: 34px;
  right: 4px;
}

.mq-birth-combobox .mq-input,
.mq-birth-combobox input {
  padding-right: 38px;
}

.mq-birth-ym .mq-birth-combobox .mq-input,
.mq-birth-ym .mq-birth-combobox input {
  min-height: var(--mq-field-h);
  width: 100%;
}

.mq-birth-list {
  max-height: min(264px, 44vh);
}

.mq-birth-scroll-pad {
  padding: 0 !important;
  margin: 0;
  min-height: 0 !important;
  border: none;
  pointer-events: none;
  background: transparent;
  cursor: default;
}

.mq-register .mq-birth-ym .mq-combobox.open > .mq-input,
.mq-register .mq-birth-ym .mq-combobox.open > input {
  border-color: var(--black);
  box-shadow: 0 0 0 3px var(--mq-accent-ring);
}

/* Combobox: dropdown suggestions + free text (#fdbb0d accent) */
.mq-combobox {
  position: relative;
}

.mq-combobox .mq-input,
.mq-combobox .mq-textarea,
.mq-combobox input,
.mq-combobox textarea {
  padding-right: 44px;
}

.mq-combobox.chips-mode {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mq-combobox-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  min-height: 40px;
  border: 2px solid var(--mq-field-border);
  border-radius: 8px;
  background: #fff8e1;
  color: #111;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}

.mq-combobox-toggle:hover,
.mq-combobox-toggle:focus-visible {
  background: #fdbb0d;
  border-color: #111;
  outline: none;
}

.mq-combobox.open .mq-combobox-toggle {
  background: #fdbb0d;
  border-color: #111;
}

.mq-combobox textarea + .mq-combobox-toggle,
.mq-combobox .mq-textarea + .mq-combobox-toggle {
  top: 6px;
  transform: none;
}

.mq-combobox-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 40;
  margin: 0;
  padding: 6px;
  list-style: none;
  max-height: 220px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border: 2px solid #111;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.mq-combobox-list[hidden] {
  display: none;
}

.mq-combobox-item {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.4;
  cursor: pointer;
  transition: background 0.12s;
  touch-action: manipulation;
}

.mq-combobox-item:hover,
.mq-combobox-item.active {
  background: #fdbb0d;
  color: #111;
  font-weight: 600;
}

.mq-combobox-item mark {
  background: rgba(255, 196, 0, 0.45);
  color: inherit;
  font-weight: 700;
  padding: 0 1px;
  border-radius: 2px;
}

/* City picker: 现居城市 / 籍贯 */
.mq-city-fields .mq-field-hint {
  margin: -2px 0 8px;
}

.mq-city-picker {
  position: relative;
}

.mq-city-picker .mq-combobox-list {
  max-height: min(300px, 52vh);
}

.mq-city-section,
.mq-city-group-label {
  padding: 8px 12px 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #888;
  letter-spacing: 0.02em;
  cursor: default;
  user-select: none;
  list-style: none;
}

.mq-city-group-label {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 7px 12px;
  background: #fff8e1;
  color: #555;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mq-city-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.mq-city-item-main {
  font-weight: 600;
  line-height: 1.35;
}

.mq-city-item-sub {
  font-size: 0.76rem;
  font-weight: 400;
  color: #666;
  line-height: 1.3;
}

.mq-city-hint-item {
  padding: 10px 12px;
  font-size: 0.78rem;
  color: #999;
  text-align: center;
  cursor: default;
  list-style: none;
}

.mq-combobox-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.mq-combobox-chips[hidden] {
  display: none;
}

.mq-combobox-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 12px;
  background: #111;
  color: #ffc400;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
}

.mq-combobox-chip-rm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #ffc400;
  color: #111;
  font-size: 0.75rem;
  line-height: 1;
  cursor: pointer;
}

.mq-combobox-chip-rm:hover,
.mq-combobox-chip-rm:focus-visible {
  background: #fdbb0d;
  outline: none;
}

.mq-combobox-clear {
  padding: 4px 10px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 999px;
  background: transparent;
  color: #666;
  font-size: 0.78rem;
  cursor: pointer;
}

.mq-combobox-clear:hover,
.mq-combobox-clear:focus-visible {
  border-color: #111;
  color: #111;
  outline: none;
}

.mq-tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.mq-field > .mq-tag-grid:last-child {
  margin-bottom: 0;
}

.mq-field > .mq-tag-grid + .mq-input,
.mq-field > .mq-tag-grid + input {
  margin-top: 8px;
}

.mq-tag {
  min-height: var(--mq-tag-min-h);
  padding: 10px 16px;
  border-radius: 999px;
  border: 2px solid var(--mq-field-border);
  background: var(--white);
  font-size: 0.85rem;
  font-family: inherit;
  font-weight: 600;
  color: var(--black-2);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
  touch-action: manipulation;
}

.mq-tag:hover {
  border-color: rgba(0, 0, 0, 0.22);
  background: #fff8e1;
}

.mq-tag:focus-visible {
  outline: none;
  border-color: var(--black);
  box-shadow: 0 0 0 3px var(--mq-accent-ring);
}

.mq-tag.on {
  background: var(--black);
  color: var(--y);
  border-color: var(--black);
}

.mq-tag.on:hover {
  background: #222;
}

.mq-quote {
  background: var(--black);
  color: var(--y);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.82rem;
  line-height: 1.55;
  margin-bottom: 16px;
}

.mq-quote strong {
  display: block;
  font-size: 0.72rem;
  opacity: 0.75;
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}

.mq-nav-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.mq-nav-row .mq-btn {
  flex: 1;
}

.mq-nav-row .mq-btn-ghost {
  flex: 0.6;
}

.mq-card-screen.hidden { display: none; }

.mq-member-card {
  text-align: center;
  padding: 8px 0;
}

.mq-member-card--youth {
  position: relative;
  padding: 20px 16px 12px;
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(165deg, #fff9e0 0%, #fff 42%, #fff5f8 100%);
  border: 2px solid var(--black);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.mq-card-youth-deco {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.mq-card-spark {
  position: absolute;
  font-size: 1.1rem;
  opacity: 0.45;
  animation: mqCardSpark 4s ease-in-out infinite;
}

.mq-card-spark-a { top: 12px; left: 14px; color: var(--y); animation-delay: 0s; }
.mq-card-spark-b { top: 18px; right: 16px; color: #ff6b9d; animation-delay: 1.2s; }
.mq-card-spark-c { bottom: 48px; left: 20px; color: #7c3aed; animation-delay: 2.4s; }

@keyframes mqCardSpark {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.35; }
  50% { transform: scale(1.15) rotate(12deg); opacity: 0.7; }
}

.mq-card-display {
  font-family: 'Fredoka', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mq-tier-badge {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #111 0%, #333 100%);
  box-shadow: 0 4px 14px rgba(17, 17, 17, 0.18);
}

.mq-qr-stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 18px auto 14px;
  width: min(240px, 100%);
}

.mq-qr-ring {
  position: absolute;
  inset: -6px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--y) 0%, #ff6b9d 50%, #7c3aed 100%);
  opacity: 0.35;
  animation: mqQrRingPulse 3s ease-in-out infinite;
}

@keyframes mqQrRingPulse {
  0%, 100% { transform: scale(1); opacity: 0.28; }
  50% { transform: scale(1.02); opacity: 0.42; }
}

.mq-qr-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 3px solid var(--black);
  border-radius: 18px;
  padding: 14px;
  width: 228px;
  box-sizing: border-box;
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.12);
}

.mq-qr-wrap canvas,
.mq-qr-wrap img {
  display: block;
  width: 200px !important;
  height: 200px !important;
  max-width: 100%;
  margin: 0;
  border-radius: 6px;
}

.mq-profile-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed rgba(17, 17, 17, 0.12);
}

.mq-profile-chips .mq-profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--white);
  border: 1.5px solid var(--black);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--black);
}

.mq-profile-chips .mq-profile-chip small {
  font-weight: 600;
  color: var(--gray);
}

.mq-save-shot-hint {
  min-height: 1.2em;
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: var(--gray);
  text-align: center;
}

.mq-member-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: var(--black);
  color: var(--y);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.mq-member-badge.expired {
  background: #dc2626;
  color: #fff;
}

.mq-card-welcome {
  position: relative;
  z-index: 1;
  font-size: 1.35rem;
  margin: 8px 0 4px;
}

.mq-card-sub {
  position: relative;
  z-index: 1;
  font-size: 0.88rem;
  color: var(--gray);
  margin: 0 0 4px;
}

.mq-member-id {
  font-family: ui-monospace, monospace;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin: 12px 0 4px;
}

.mq-expire {
  font-size: 0.82rem;
  color: var(--gray);
}

.mq-expire.warn { color: #ea580c; font-weight: 600; }

.mq-expire.bad { color: #dc2626; font-weight: 700; }

.mq-mini-profile {
  text-align: left;
  background: var(--y-soft);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-top: 16px;
  font-size: 0.85rem;
  line-height: 1.65;
}

.mq-mini-profile dt {
  font-weight: 700;
  color: var(--black);
  margin-top: 8px;
}

.mq-mini-profile dt:first-child { margin-top: 0; }

.mq-mini-profile dd {
  color: var(--gray);
  margin-left: 0;
}

/* Admin member */
.mq-scan-box {
  background: var(--black);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}

.mq-scan-box #qrReader {
  width: 100%;
}

.mq-scan-box #qrReader video {
  border-radius: 0 !important;
}

.mq-verify-result {
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-top: 12px;
  font-size: 0.9rem;
}

.mq-verify-result.ok {
  background: #dcfce7;
  border: 2px solid #16a34a;
}

.mq-verify-result.bad {
  background: #fee2e2;
  border: 2px solid #dc2626;
}

.mq-verify-result.warn {
  background: #fef3c7;
  border: 2px solid #f59e0b;
}

.mq-member-list-item {
  border: 2px solid #eee;
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.mq-member-list-item:active,
.mq-member-list-item.open {
  border-color: var(--black);
  background: var(--y-soft);
}

.mq-member-list-item .head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.mq-list-head-with-photo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.mq-list-head-with-photo .mq-match-row-avatar {
  flex: 0 0 36px;
}

.mq-member-list-item .name {
  font-weight: 800;
  font-size: 1rem;
}

.mq-member-list-item .meta {
  font-size: 0.78rem;
  color: var(--gray);
  margin-top: 4px;
}

.mq-status-pill {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}

.mq-status-pill.active { background: #dcfce7; color: #166534; }
.mq-status-pill.expired { background: #fee2e2; color: #991b1b; }

.mq-detail-panel {
  display: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #ddd;
  font-size: 0.82rem;
  line-height: 1.65;
}

.mq-member-list-item.open .mq-detail-panel { display: block; }

.mq-detail-panel section {
  margin-bottom: 12px;
}

.mq-detail-panel h4 {
  font-size: 0.78rem;
  color: var(--gray);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mq-pin-gate {
  text-align: center;
  padding: 24px 0;
}

.mq-pin-gate input {
  text-align: center;
  letter-spacing: 0.3em;
  font-size: 1.5rem;
  max-width: 200px;
  margin: 0 auto;
}

.mq-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.mq-list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 8px;
}

.mq-list-head h2 { margin: 0; font-size: 1rem; }

.mq-btn-sm {
  padding: 8px 14px !important;
  font-size: 0.82rem !important;
  min-height: 40px !important;
  white-space: nowrap;
}

.mq-toolbar {
  margin-bottom: 12px;
}

.mq-toolbar input[type="search"],
.mq-toolbar select {
  width: 100%;
  padding: 11px 12px;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-family: inherit;
  margin-bottom: 8px;
  background: #fff;
}

.mq-filter-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mq-result-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--gray);
}

.mq-result-bar .link-btn {
  background: none;
  border: none;
  color: var(--black);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px;
}

.mq-export-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed #e5e5e5;
}

.mq-export-row .btn-primary,
.mq-export-row .btn-secondary {
  flex: 1;
  min-width: 120px;
  min-height: 44px;
}

.mq-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.mq-item-actions button {
  flex: 1;
  min-width: 100px;
  min-height: 40px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.mq-item-actions .act-extend {
  background: var(--black);
  color: var(--y);
}

.mq-item-actions .act-delete {
  background: #fff;
  color: #dc2626;
  border: 2px solid #fecaca !important;
}

.mq-stat-mini {
  background: var(--y-soft);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  text-align: center;
}

.mq-stat-mini .n {
  font-size: 1.4rem;
  font-weight: 800;
}

.mq-stat-mini .l {
  font-size: 0.72rem;
  color: var(--gray);
}

.mq-field > .mq-photo-hint {
  margin: 0 0 10px;
}

.mq-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.mq-photo-pick {
  cursor: pointer;
  margin: 0;
  min-height: var(--mq-field-h);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 120px;
}

.mq-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-height: 0;
}

.mq-photo-grid:empty::before {
  content: '暂无照片，可拍照或从相册添加';
  display: block;
  grid-column: 1 / -1;
  font-size: 0.78rem;
  color: var(--gray);
  padding: 12px 0;
}

.mq-photo-thumb {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f3f3;
  border: 2px solid var(--black);
}

.mq-photo-thumb img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.mq-photo-thumb button {
  position: absolute;
  top: 4px;
  right: 4px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  background: #dc2626;
  color: #fff;
  cursor: pointer;
  min-height: 28px;
}

.mq-photo-msg {
  font-size: var(--mq-hint-fs);
  color: var(--gray);
  margin: 8px 0 0;
  min-height: 1.2em;
  line-height: 1.45;
}

.mq-photo-msg.err {
  color: #dc2626;
  font-weight: 600;
}

/* ── 会员登记页 ── */
.mq-register {
  /* Extra scroll room so step cards can align to viewport top when only one step is visible */
  padding-bottom: max(50vh, 420px);
  scroll-padding-top: 8px;
  scroll-padding-bottom: calc(var(--mq-field-h) + 56px + env(safe-area-inset-bottom, 0px));
}

.mq-field-section {
  margin-bottom: 10px;
}

.mq-register .mq-card {
  padding: 16px 14px;
  margin-bottom: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow);
  overflow: visible;
}

.mq-register .mq-card.mq-card-step {
  padding: 0;
  overflow: hidden;
  border: 2px solid var(--black);
  scroll-margin-top: 8px;
  scroll-margin-bottom: calc(var(--mq-field-h) + 72px + env(safe-area-inset-bottom, 0px));
}

.mq-register .mq-card.mq-card-step .mq-form-body {
  padding: 14px;
  gap: 12px;
  scroll-margin-bottom: calc(var(--mq-field-h) + 72px + env(safe-area-inset-bottom, 0px));
}

.mq-register .mq-card.mq-card-step .mq-step-hero-note {
  margin: 12px 14px 0;
}

.mq-register .mq-card.mq-card-step .mq-form-body:first-child,
.mq-register .mq-card.mq-card-step .mq-step-hero-note + .mq-form-body {
  padding-top: 14px;
}

.mq-register .mq-card.mq-card-step .mq-step-hero-note:last-of-type {
  margin-bottom: 0;
}

.mq-register .mq-card.mq-card-step .mq-step-hero-note + .mq-form-body {
  padding-top: 12px;
}

.mq-register .mq-card-step .mq-section-card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.mq-register .mq-card-step .mq-section-card-secondary {
  background: #fafafa;
}

.mq-register .mq-card-step .mq-section-card-priority {
  background: #fff;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
}

.mq-register .mq-card .mq-quote {
  margin-bottom: 14px;
  font-size: var(--mq-label-fs);
}

.mq-register .mq-quote strong {
  font-size: 0.72rem;
  opacity: 0.85;
}

.mq-register .mq-step-philosophy-hint {
  margin: 0 0 14px;
}

.mq-register .mq-section-card .mq-field {
  margin-bottom: 14px;
}

.mq-register .mq-section-card .mq-field-row {
  margin-bottom: 14px;
}

.mq-register .mq-field-row + .mq-field:not(.mq-field-section) {
  margin-top: 0;
}

.mq-register .mq-card:last-of-type {
  margin-bottom: 12px;
}

.mq-step-label-reg strong {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.mq-step-label-reg span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray);
  white-space: nowrap;
}

.mq-step-progress {
  height: 5px;
  margin: 0 2px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.mq-step-progress-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mq-accent) 0%, var(--black) 85%);
  box-shadow: 0 0 8px rgba(253, 187, 13, 0.45);
  transition: width 0.35s ease;
}

.mq-form-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mq-section-card {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.mq-register .mq-section-card {
  padding: 14px;
  overflow: visible;
}

.mq-register .mq-field-birth .mq-birth-ym {
  max-width: 100%;
}

.mq-section-card:last-child {
  margin-bottom: 0;
}

.mq-section-card-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(253, 187, 13, 0.35);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--black);
  letter-spacing: 0.02em;
  text-transform: none;
}

.mq-section-card-title small {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--gray);
  margin-left: 4px;
}

.mq-section-card .mq-field:last-child,
.mq-section-card .mq-field-row:last-child {
  margin-bottom: 0;
}

.mq-section-card .mq-field-row:last-child > .mq-field:last-child {
  margin-bottom: 0;
}

.mq-section-collapse {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-sm);
  background: #fafafa;
  overflow: hidden;
}

.mq-section-collapse-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--black);
  list-style: none;
  user-select: none;
}

.mq-section-collapse-head::-webkit-details-marker {
  display: none;
}

.mq-section-collapse-head::after {
  content: '▾';
  flex-shrink: 0;
  font-size: 0.85rem;
  color: var(--gray);
  transition: transform 0.2s;
}

.mq-section-collapse[open] .mq-section-collapse-head::after {
  transform: rotate(180deg);
}

.mq-section-collapse-head small {
  font-weight: 500;
  color: var(--gray);
  font-size: 0.72rem;
}

.mq-section-collapse-body {
  padding: 0 14px 14px;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

.mq-section-collapse-body .mq-field-row:first-child,
.mq-section-collapse-body .mq-field:first-child {
  margin-top: 14px;
}

.mq-steps-reg {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin: 0 0 10px;
  padding: 0 2px;
}

.mq-step-item {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0.45;
  transition: opacity 0.2s;
}

.mq-step-item.on,
.mq-step-item.done {
  opacity: 1;
}

.mq-step-num {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  color: var(--black);
  font-size: 0.72rem;
  font-weight: 800;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.mq-step-item.on .mq-step-num {
  background: var(--black);
  color: var(--y);
  box-shadow: 0 0 0 2px var(--mq-accent), 0 2px 8px rgba(0, 0, 0, 0.18);
  transform: scale(1.06);
}

.mq-step-item.done .mq-step-num {
  background: var(--black);
  color: var(--y);
  box-shadow: 0 0 0 1px rgba(253, 187, 13, 0.5);
}

.mq-step-name {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--black-2);
  text-align: center;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mq-step-item.on .mq-step-name {
  color: var(--black);
}

@media (min-width: 640px) {
  .mq-register .mq-form-body {
    gap: 16px;
  }

  .mq-section-card {
    padding: 16px 18px;
  }

  .mq-register .mq-field-row {
    gap: 14px;
  }
}

.mq-register-tip {
  font-size: var(--mq-hint-fs);
  line-height: 1.55;
}

.mq-register .mq-banner.mq-register-tip {
  color: var(--black-2);
  margin-bottom: 12px;
}

.mq-register .mq-banner.mq-register-tip strong {
  color: var(--black);
  font-weight: 800;
}

.mq-register-tip-footer {
  margin-top: 12px;
}

.mq-register-tip-priority {
  background: linear-gradient(135deg, #fff9e6 0%, #fff 60%, #fff5d6 100%);
  border: 1.5px solid var(--black);
}

.mq-register .mq-banner.mq-register-tip-footer {
  background: var(--y-soft, #fff9e6);
  border: 1.5px dashed var(--black);
  color: var(--black-2);
}

.mq-match-philosophy {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #fff9e6 0%, #fff 55%, #fff5d6 100%);
  border: 2px solid var(--black);
}

.mq-match-philosophy-head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.mq-match-philosophy-copy {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--black-2);
}

.mq-match-philosophy-copy strong {
  color: var(--black);
}

.mq-priority-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--black);
  color: var(--y);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.mq-priority-badge-alt {
  background: linear-gradient(135deg, #ff6b35, #ff3366);
  color: #fff;
}

.mq-quote-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.mq-quote-priority {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border: 2px solid var(--y);
}

.mq-quote-secondary {
  background: #3a3a3a;
}

.mq-quote-secondary strong,
.mq-quote-priority strong {
  opacity: 0.9;
}

.mq-step-philosophy-hint {
  margin: -6px 0 14px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed rgba(0, 0, 0, 0.18);
  color: var(--black-2);
}

.mq-step-philosophy-hint-priority {
  background: #fff9e6;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  color: var(--black);
}

.mq-step-philosophy-label {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.08);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--black);
}

.mq-step-philosophy-hint-priority .mq-step-philosophy-label {
  background: var(--black);
  color: var(--y);
}

.mq-section-card-priority {
  border: 1.5px solid rgba(0, 0, 0, 0.14);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.mq-section-card-secondary {
  background: #fafafa;
  border-color: rgba(0, 0, 0, 0.06);
}

.mq-section-card-lead {
  margin: -4px 0 12px;
}

.mq-inline-badge {
  display: inline-flex;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--black);
  color: var(--y);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: none;
  vertical-align: middle;
}

.mq-collapse-lead {
  margin: 0 0 12px;
}

.mq-section-card-prefs {
  background: linear-gradient(180deg, #fffefb 0%, #fff 100%);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.mq-prefs-hint {
  margin: -4px 0 12px;
}

.mq-prefs-hint.is-warning {
  color: #b85c00;
}

.mq-prefs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}

.mq-prefs-grid .mq-field {
  margin-bottom: 0;
}

.mq-prefs-more-title {
  margin: 14px 0 10px;
  padding-top: 12px;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gray);
  letter-spacing: 0.03em;
}

.mq-prefs-more-title small {
  font-weight: 500;
  margin-left: 4px;
}

.mq-prefs-grid--more .mq-field-hint {
  font-size: var(--mq-hint-fs);
}

.mq-step-item.priority .mq-step-num {
  box-shadow: 0 0 0 2px var(--mq-accent);
}

.mq-step-item.priority.on .mq-step-num {
  box-shadow: 0 0 0 2px var(--mq-accent), 0 2px 8px rgba(0, 0, 0, 0.18);
}

.mq-step-item.priority.on .mq-step-name,
.mq-step-item.priority.done .mq-step-name {
  color: var(--black);
  font-weight: 800;
}

.mq-form-sticky-bar {
  position: sticky;
  bottom: 0;
  z-index: 20;
  margin: 4px -2px 0;
  padding: 12px 2px calc(10px + env(safe-area-inset-bottom, 0));
  background: linear-gradient(180deg, rgba(255, 196, 0, 0) 0%, rgba(255, 196, 0, 0.92) 28%, var(--y) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.mq-form-sticky-bar .mq-nav-row {
  margin-top: 0;
  flex-direction: row;
  align-items: stretch;
}

.mq-form-sticky-bar .mq-nav-row .mq-btn-ghost {
  flex: 0.55;
}

.mq-form-sticky-bar .mq-nav-row .mq-btn-primary {
  flex: 1;
}

.mq-form-sticky-bar .mq-nav-row .mq-btn,
.mq-form-sticky-bar .mq-nav-row .mq-btn-ghost,
.mq-form-sticky-bar .mq-nav-row .mq-btn-primary {
  margin-top: 0;
  min-height: var(--mq-field-h);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
}

.mq-form-sticky-bar .mq-nav-row .mq-btn-ghost {
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid var(--black);
  color: var(--black);
  margin-top: 0;
  font-weight: 700;
}

.mq-form-sticky-bar .mq-nav-row .mq-btn-ghost:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--mq-accent-ring);
}

.mq-form-sticky-bar .mq-nav-row .mq-btn-primary {
  border: 2px solid var(--black);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.mq-form-sticky-bar .mq-nav-row .mq-btn-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--mq-accent-ring), 0 2px 8px rgba(0, 0, 0, 0.12);
}

.mq-form-sticky-bar .mq-error {
  margin-top: 8px;
  margin-bottom: 0;
  font-size: var(--mq-error-fs);
  font-weight: 600;
  line-height: 1.45;
  color: #dc2626;
  text-align: left;
}

.mq-register .mq-city-picker .mq-input:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 3px var(--mq-accent-ring);
}

/* Register · story combobox, city picker, chips, range prefs */
.mq-register .mq-field-weekend .mq-combobox textarea,
.mq-register .mq-field-weekend .mq-combobox .mq-textarea {
  min-height: 88px;
}

.mq-register .mq-field-story .mq-combobox textarea,
.mq-register .mq-field-story .mq-combobox .mq-textarea {
  min-height: 120px;
}

.mq-register .mq-field-story + .mq-field-story {
  padding-top: 14px;
  margin-top: 2px;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

.mq-register .mq-combobox.open > .mq-input,
.mq-register .mq-combobox.open > .mq-textarea,
.mq-register .mq-combobox.open > input:not([hidden]),
.mq-register .mq-combobox.open > textarea {
  border-color: var(--black);
  box-shadow: 0 0 0 3px var(--mq-accent-ring);
}

.mq-register .mq-combobox.chips-mode {
  gap: 10px;
}

.mq-register .mq-combobox.chips-mode textarea,
.mq-register .mq-combobox.chips-mode .mq-textarea,
.mq-register .mq-field-chips .mq-combobox textarea {
  min-height: var(--mq-field-h);
  max-height: 120px;
  resize: none;
  line-height: 1.35;
  padding-top: 12px;
  padding-bottom: 12px;
}

.mq-register .mq-combobox.chips-mode .mq-combobox-chips:not([hidden]) {
  margin-bottom: 2px;
}

.mq-register .mq-field-chips .mq-combobox.chips-mode {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.mq-register .mq-field-chips > label {
  word-break: keep-all;
}

.mq-register .mq-field-chips > label small {
  display: block;
  margin-top: 2px;
}

.mq-register .mq-combobox-chips {
  gap: 8px;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.mq-register .mq-combobox-chip {
  min-height: var(--mq-tag-min-h);
  max-width: 100%;
  padding: 8px 12px 8px 14px;
  font-size: 0.84rem;
  border: 2px solid var(--black);
  overflow-wrap: anywhere;
}

.mq-register .mq-combobox-clear {
  min-height: var(--mq-tag-min-h);
  padding: 8px 12px;
  border: 2px dashed rgba(0, 0, 0, 0.16);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray);
}

.mq-register .mq-combobox-clear:hover,
.mq-register .mq-combobox-clear:focus-visible {
  border-color: var(--black);
  border-style: solid;
  color: var(--black);
  background: #fff8e1;
}

.mq-register .mq-section-card-city .mq-city-fields {
  margin-bottom: 0;
}

.mq-register .mq-city-picker .mq-input {
  min-height: var(--mq-field-h);
}

.mq-register .mq-city-picker.open .mq-input {
  border-color: var(--black);
  box-shadow: 0 0 0 3px var(--mq-accent-ring);
}

.mq-register .mq-field-range .mq-field-hint {
  margin: -2px 0 8px;
}

.mq-register .mq-range-inputs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
}

.mq-register .mq-range-sep {
  color: var(--black-2);
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1;
  padding: 0 2px;
  user-select: none;
}

.mq-register .mq-range-inputs .mq-input {
  text-align: center;
  font-variant-numeric: tabular-nums;
  min-width: 0;
}

/* Partner age/height · relative prefs (Step 6) */
.mq-field-rel-pref {
  grid-column: 1 / -1;
}

.mq-rel-self {
  margin: 0 0 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 196, 0, 0.18);
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.82rem;
  color: var(--black-2);
  line-height: 1.45;
}

.mq-rel-self strong {
  color: var(--black);
  font-weight: 800;
}

.mq-rel-self.is-stale {
  background: rgba(255, 152, 0, 0.16);
  border-color: rgba(180, 83, 9, 0.28);
}

.mq-rel-stale-note {
  font-weight: 700;
  color: #b45309;
}

.mq-rel-range {
  margin-bottom: 8px;
}

.mq-rel-range-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.mq-rel-group {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px 8px;
  min-width: 0;
}

.mq-rel-range-row .mq-range-sep {
  flex: 0 0 auto;
  align-self: center;
}

.mq-rel-label,
.mq-rel-unit {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--black-2);
  white-space: nowrap;
}

.mq-rel-input {
  width: 64px;
  min-width: 52px;
  max-width: 80px;
  flex: 0 1 64px;
  min-height: var(--mq-field-h);
  text-align: center;
  font-variant-numeric: tabular-nums;
  padding-left: 8px;
  padding-right: 8px;
}

.mq-rel-summary {
  margin: 8px 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.4;
}

.mq-rel-summary.is-empty {
  color: var(--gray);
  font-weight: 600;
}

.mq-rel-summary:not(.is-empty) {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 196, 0, 0.22);
}

.mq-field-rel-pref.is-no-self .mq-rel-range {
  opacity: 0.55;
  pointer-events: none;
}

.mq-register .mq-privacy-notice,
.mq-register .mq-match-philosophy {
  margin-bottom: 14px;
}

.mq-register .mq-steps-reg {
  margin-bottom: 10px;
}

.mq-register .mq-step-label-reg {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

/* ── 会员名片成功页 ── */
.mq-card-welcome {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.mq-card-sub {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 4px;
}

.mq-btn-save-shot {
  display: block;
  width: 100%;
  margin-top: 12px;
  min-height: 48px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.mq-card-screen .mq-save-shot-hint {
  margin-top: 14px;
}

.mq-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.mq-card-actions .mq-btn {
  width: 100%;
}

#cardWrap > .match-preview-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed rgba(17, 17, 17, 0.12);
}

.mq-save-hint {
  font-size: 0.72rem;
  color: var(--gray);
  text-align: center;
  margin: 6px 0 4px;
  line-height: 1.45;
}

.mq-assess-cta {
  margin-top: 18px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #fff9e6 0%, #fff 55%, #fff5d6 100%);
  border: 2px solid var(--black);
  text-align: left;
}

.mq-assess-cta-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
}

.mq-hot-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  background: linear-gradient(135deg, #ff6b35, #ff3366);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  animation: mq-hot-pulse 1.8s ease-in-out infinite;
}

@keyframes mq-hot-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 51, 102, 0.35); }
  50% { transform: scale(1.04); box-shadow: 0 0 0 6px rgba(255, 51, 102, 0); }
}

.mq-assess-cta-copy {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--black-2);
}

.mq-assess-cta-copy strong {
  color: var(--black);
}

.mq-btn-assess {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--black);
  color: var(--y);
  font-family: inherit;
  text-decoration: none;
  text-align: center;
  transition: transform 0.12s;
}

.mq-btn-assess:active {
  transform: scale(0.98);
}

.mq-assess-title {
  font-size: 0.95rem;
  font-weight: 800;
}

.mq-assess-sub {
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.85;
}

.mq-btn-save-shot.saving {
  opacity: 0.65;
  pointer-events: none;
}

@media (max-width: 480px) {
  .mq-field-row { grid-template-columns: 1fr; gap: 0; }
  .mq-field-row > .mq-field { margin-bottom: 16px; }
  .mq-field-row > .mq-field:last-child { margin-bottom: 0; }
  .mq-birth-ym { gap: 8px; }
  .mq-birth-ym-month { max-width: none; }
  .mq-birth-combobox .mq-combobox-toggle {
    width: 40px;
    height: 40px;
    min-height: 40px;
  }
  .mq-combobox-toggle { width: 34px; height: 34px; right: 5px; }
  .mq-register .mq-combobox-toggle {
    width: 40px;
    height: 40px;
    min-height: 40px;
  }
  .mq-register .mq-combobox .mq-input,
  .mq-register .mq-combobox .mq-textarea,
  .mq-register .mq-combobox input,
  .mq-register .mq-combobox textarea {
    padding-right: 46px;
  }
  .mq-register .mq-range-inputs { gap: 6px; }
  .mq-register .mq-range-sep { font-size: 0.82rem; }
  .mq-register .mq-city-fields.mq-field-row > .mq-field { margin-bottom: 14px; }
  .mq-register .mq-city-fields.mq-field-row > .mq-field:last-child { margin-bottom: 0; }
  .mq-register .mq-field-story + .mq-field-story { padding-top: 12px; }
  .mq-city-picker .mq-combobox-list { max-height: min(280px, 48vh); }
  .mq-city-item { padding: 12px; min-height: 44px; }
  .mq-city-group-label { font-size: 0.7rem; }
  .mq-stats-row { grid-template-columns: 1fr 1fr; }
  .mq-stats-6 { grid-template-columns: 1fr 1fr; }
  .mq-filter-row { grid-template-columns: 1fr; }
  .mq-export-row { flex-direction: column; }
  .mq-export-row .btn-primary,
  .mq-export-row .btn-secondary { width: 100%; }
  .mq-live-grid { grid-template-columns: 1fr; }
  .mq-nav-row { flex-direction: column; }
  .mq-nav-row .mq-btn-ghost { flex: 1; }
  .mq-form-sticky-bar .mq-nav-row { flex-direction: row; }
  .mq-form-sticky-bar .mq-nav-row .mq-btn-ghost { flex: 0.55; }
  .mq-form-sticky-bar .mq-nav-row .mq-btn-primary { flex: 1; }
  .mq-step-name { font-size: 0.58rem; }
  .mq-step-num { width: 24px; height: 24px; font-size: 0.68rem; }
  .mq-section-collapse-head { flex-wrap: wrap; }
  .mq-section-collapse-head small { flex: 1 1 100%; margin-top: 2px; }
  .mq-prefs-grid { grid-template-columns: 1fr; }
  .mq-field-rel-pref > label {
    word-break: keep-all;
  }
  .mq-rel-range-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .mq-rel-group {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    width: 100%;
  }
  .mq-rel-group .mq-rel-input {
    flex: 1 1 56px;
    width: auto;
    max-width: 96px;
  }
  .mq-rel-range-row .mq-range-sep {
    align-self: center;
    line-height: 1;
    padding: 0;
  }
  .mq-rel-label {
    font-size: 0.78rem;
    flex: 0 0 auto;
  }
  .mq-rel-unit {
    flex: 0 0 auto;
  }
  .mq-register .mq-field-chips .mq-combobox.chips-mode textarea,
  .mq-register .mq-field-chips .mq-combobox.chips-mode .mq-textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .mq-register .mq-combobox-clear {
    flex: 0 0 auto;
  }
}

/* 管理平台 · flat layout */
body.mq-manage.mq-admin .mq-card,
body.mq-admin-verify .mq-card,
body.mq-ami-page .mq-card {
  border: 1px solid #e8e8e3;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.mq-manage-wrap { max-width: 900px; margin: 0 auto; }

.mq-manage-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
  font-size: 0.82rem;
}

.mq-manage-links a {
  color: var(--black);
  font-weight: 700;
  text-decoration: underline;
}

.mq-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  margin-bottom: 14px;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.mq-tab {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: none;
  border-radius: 999px;
  background: #eee;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.mq-tab.on {
  background: var(--black);
  color: var(--y);
}

.mq-tab-panel { display: none; }
.mq-tab-panel.on { display: block; }

.mq-stats-6 { grid-template-columns: repeat(3, 1fr); }

.mq-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.mq-quick-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px;
  border: 2px solid var(--black);
  border-radius: var(--radius-sm);
  background: var(--y-soft);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
  color: var(--black);
  font-family: inherit;
}

.mq-feed-item {
  border: 1px solid #eee;
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 8px;
  background: #fff;
}

.mq-feed-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.mq-feed-meta {
  font-size: 0.78rem;
  color: var(--gray);
  line-height: 1.5;
}

.mq-live-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.mq-live-feed {
  background: var(--y-soft);
  border-radius: var(--radius-sm);
  padding: 12px;
  max-height: 480px;
  overflow-y: auto;
}

.mq-live-feed-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.mq-live-dot {
  font-size: 0.72rem;
  color: #16a34a;
  font-weight: 600;
}

.mq-date-item {
  border: 2px solid #eee;
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 10px;
}

.mq-date-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.mq-match-card {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  background: #fff;
  border: 2px solid #eee;
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 10px;
}

.mq-match-card:hover { border-color: var(--black); }

.mq-match-score {
  flex: 0 0 56px;
  height: 56px;
  background: var(--black);
  color: var(--y);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  flex-direction: column;
  line-height: 1;
}

.mq-match-score small { font-size: 0.55rem; font-weight: 600; }

.mq-match-body {
  flex: 1;
  min-width: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

@media (max-width: 520px) {
  .mq-match-card {
    flex-direction: column;
    align-items: stretch;
  }
  .mq-match-score {
    flex: 0 0 auto;
    width: 100%;
    flex-direction: row;
    gap: 4px;
    justify-content: center;
  }
}

.mq-score-breakdown {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0;
  max-width: 100%;
}

.mq-bd-row {
  display: grid;
  grid-template-columns: minmax(112px, 1.15fr) minmax(84px, 1fr) 58px;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
}

.mq-bd-label { font-weight: 700; color: var(--gray); white-space: normal; line-height: 1.25; }

.mq-bd-track {
  height: 8px;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
  min-width: 0;
}

.mq-bd-fill {
  height: 100%;
  border-radius: 4px;
}

.mq-bd-fill.mq-bd-prefs { background: #3b82f6; }
.mq-bd-fill.mq-bd-assessment { background: var(--y); }
.mq-bd-fill.mq-bd-values { background: #16a34a; }
.mq-bd-fill.mq-bd-personality { background: #2563eb; }
.mq-bd-fill.mq-bd-lifestyle { background: #0891b2; }
.mq-bd-fill.mq-bd-hard { background: #7c3aed; }
.mq-bd-fill.mq-bd-partnerSatisfaction { background: #0f766e; }
.mq-bd-fill.mq-bd-relationshipGoal { background: #be123c; }
.mq-bd-fill.mq-bd-interests { background: #64748b; }
.mq-bd-fill.mq-bd-softTags { background: #d97706; }

.mq-bd-val { text-align: right; font-weight: 700; font-size: 0.7rem; }

.mq-pref-field-breakdown {
  margin: 8px 0 4px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e8ecf0;
  font-size: 0.72rem;
}

.mq-pref-field-breakdown strong { display: block; margin-bottom: 6px; }

.mq-pref-field-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 0;
  border-bottom: 1px dashed #eee;
}

.mq-pref-field-row:last-child { border-bottom: none; }

.mq-pref-field-row.mq-pref-field-warn { color: #b45309; font-weight: 600; }

.mq-assess-blend { margin-top: 4px; font-size: 0.68rem; }

.mq-match-why,
.mq-match-red,
.mq-match-report {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fafafa;
  border: 1px solid #eee;
}

.mq-match-report {
  padding: 12px 14px;
  background: #fffdf6;
  border-color: #f3e4a5;
}

.mq-match-report-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.mq-match-report-kicker {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #9a6700;
  letter-spacing: 0.04em;
}

.mq-match-report-title {
  margin: 0 0 6px;
  font-size: 1rem;
}

.mq-match-report-meta,
.mq-match-report-scoreline {
  margin: 0 0 4px;
  font-size: 0.78rem;
  line-height: 1.5;
}

.mq-match-report-scoreline strong {
  color: #111;
}

.mq-match-report-section + .mq-match-report-section {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #eadfaf;
}

.mq-match-report-section h4 {
  margin: 0 0 8px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.mq-match-report-section h4 small {
  font-weight: 500;
  color: #666;
}

.mq-match-report-table th {
  background: #fff9e8;
  font-size: 0.72rem;
}

.mq-match-report-core {
  display: grid;
  gap: 8px;
}

.mq-match-report-core-item {
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #f0e4bc;
}

.mq-match-report-core-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 0.8rem;
}

.mq-match-report-core-item p {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.55;
  color: #444;
}

.mq-match-report--compact .mq-match-report-head {
  display: none;
}

.mq-match-report--compact {
  padding: 8px 10px;
}

.mq-match-report--markdown {
  background: #fff;
  border-color: #e8ecf0;
}

.mq-match-report-markdown {
  display: grid;
  gap: 10px;
  font-size: 0.8rem;
  line-height: 1.65;
}

.mq-match-report-markdown h3,
.mq-match-report-markdown h4,
.mq-match-report-markdown h5 {
  margin: 12px 0 2px;
  line-height: 1.35;
}

.mq-match-report-markdown h3 {
  font-size: 1rem;
}

.mq-match-report-markdown h4 {
  font-size: 0.9rem;
}

.mq-match-report-markdown h5 {
  font-size: 0.84rem;
}

.mq-match-report-markdown p,
.mq-match-report-markdown ul,
.mq-match-report-markdown ol {
  margin: 0;
}

.mq-match-report-markdown ul,
.mq-match-report-markdown ol {
  padding-left: 1.2em;
}

.mq-match-report-markdown .mq-table-scroll {
  margin: 2px 0 4px;
}

.mq-match-red { background: #fff8f0; border-color: #fcd34d; }

.mq-conflict-panel {
  margin: 8px 0;
  padding: 10px;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  background: #fffbeb;
}

.mq-conflict-panel--high {
  border-color: #fca5a5;
  background: #fff1f2;
}

.mq-conflict-panel--ok {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.mq-conflict-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.mq-conflict-head strong {
  color: #111827;
  font-size: 0.86rem;
}

.mq-conflict-head span {
  margin-left: auto;
  color: #7c2d12;
  font-size: 0.72rem;
  font-weight: 800;
}

.mq-conflict-panel--high .mq-conflict-head span {
  color: #991b1b;
}

.mq-conflict-panel--ok .mq-conflict-head span {
  color: #166534;
}

.mq-conflict-panel > p {
  margin: 0;
  color: #374151;
  font-size: 0.76rem;
  line-height: 1.55;
}

.mq-conflict-list {
  display: grid;
  gap: 7px;
}

.mq-conflict-item {
  padding: 8px 9px;
  border-radius: 7px;
  background: #fff;
  border-left: 4px solid #f59e0b;
}

.mq-conflict-item.high {
  border-left-color: #dc2626;
}

.mq-conflict-item.low {
  border-left-color: #94a3b8;
}

.mq-conflict-item span {
  display: block;
  margin-bottom: 3px;
  color: #7c2d12;
  font-size: 0.72rem;
  font-weight: 900;
}

.mq-conflict-item.high span {
  color: #991b1b;
}

.mq-conflict-item p {
  margin: 0;
  color: #374151;
  font-size: 0.76rem;
  line-height: 1.5;
}

.mq-conflict-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}

.mq-conflict-pills span {
  max-width: 100%;
  padding: 3px 7px;
  border-radius: 6px;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.mq-conflict-pills span.high {
  background: #fee2e2;
  color: #991b1b;
}

.mq-conflict-pills span.low {
  background: #f1f5f9;
  color: #475569;
}

.mq-report-pro {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.08);
}

.mq-report-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  margin-bottom: 10px;
}

.mq-report-hero.good { background: #f0fdf4; border-color: #bbf7d0; }
.mq-report-hero.mid { background: #fffbeb; border-color: #fde68a; }
.mq-report-hero.low { background: #fff1f2; border-color: #fecdd3; }

.mq-report-hero .mq-copy-inline {
  white-space: nowrap;
  min-height: 36px;
}

.mq-report-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.mq-report-hero-tags span,
.mq-report-pill,
.mq-report-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
}

.mq-report-score-badge {
  width: 82px;
  min-height: 82px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  align-content: center;
  background: #111827;
  color: #fff;
}

.mq-report-score-badge strong {
  font-size: 1.75rem;
  line-height: 1;
}

.mq-report-score-badge span {
  margin-top: 4px;
  font-size: 0.7rem;
  opacity: 0.8;
}

.mq-report-readiness-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.mq-report-readiness-row div {
  padding: 10px;
  border-radius: 8px;
  background: #f9fafb;
  border: 1px solid #eef0f3;
}

.mq-report-readiness-row span {
  display: block;
  color: #6b7280;
  font-size: 0.7rem;
  margin-bottom: 4px;
}

.mq-report-readiness-row strong {
  font-size: 0.82rem;
  line-height: 1.35;
}

.mq-report-section {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #edf0f3;
  border-radius: 8px;
  background: #fff;
}

.mq-report-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.mq-report-section-head strong {
  font-size: 0.9rem;
}

.mq-report-section-head span {
  color: #6b7280;
  font-size: 0.72rem;
  font-weight: 700;
}

.mq-report-muted {
  margin: 0 0 8px;
  color: #4b5563;
  font-size: 0.78rem;
  line-height: 1.6;
}

.mq-report-alert-card {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #7c2d12;
}

.mq-report-alert-card strong {
  display: block;
  margin-bottom: 6px;
}

.mq-report-alert-card p {
  margin: 8px 0 4px;
  font-weight: 700;
}

.mq-report-alert-card ul {
  margin: 0;
  padding-left: 18px;
}

.mq-report-core-grid,
.mq-report-values-grid,
.mq-report-score-grid,
.mq-report-strength-grid,
.mq-report-action-grid {
  display: grid;
  gap: 10px;
}

.mq-report-core-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mq-report-core-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
}

.mq-report-core-card.good { border-color: #bbf7d0; background: #f0fdf4; }
.mq-report-core-card.mid { border-color: #fde68a; background: #fffbeb; }
.mq-report-core-card.low { border-color: #fecdd3; background: #fff1f2; }

.mq-report-core-meter {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  display: grid;
  place-items: center;
  align-content: center;
}

.mq-report-core-meter strong {
  line-height: 1;
}

.mq-report-core-meter span {
  font-size: 0.65rem;
  opacity: 0.75;
}

.mq-report-core-card h5,
.mq-report-strength-grid h5 {
  margin: 0 0 5px;
  font-size: 0.82rem;
}

.mq-report-core-card p,
.mq-report-values-card p,
.mq-report-mbti p {
  margin: 0;
  color: #374151;
  font-size: 0.76rem;
  line-height: 1.6;
}

.mq-report-strength-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mq-report-strength-grid article,
.mq-report-action-grid article,
.mq-report-values-card,
.mq-report-score-card,
.mq-report-mbti {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
}

.mq-report-strength-shared {
  grid-column: 1 / -1;
  background: #f0f9ff !important;
  border-color: #bae6fd !important;
}

.mq-report-values-grid,
.mq-report-score-grid,
.mq-report-action-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mq-report-values-head,
.mq-report-score-card-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.8rem;
}

.mq-report-values-card small,
.mq-report-score-card p {
  display: block;
  margin-top: 6px;
  color: #6b7280;
  font-size: 0.7rem;
  line-height: 1.45;
}

.mq-report-score-bar {
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: #e5e7eb;
}

.mq-report-score-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #111827;
}

.mq-report-score-card.good .mq-report-score-bar i { background: #16a34a; }
.mq-report-score-card.mid .mq-report-score-bar i { background: #d97706; }
.mq-report-score-card.low .mq-report-score-bar i { background: #dc2626; }

.mq-report-details {
  margin-top: 10px;
}

.mq-report-details summary,
.mq-report-fulltext summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.78rem;
  color: #374151;
}

.mq-report-table-wrap {
  border: 1px solid #edf0f3;
  border-radius: 8px;
}

.mq-report-clean-table th {
  background: #f9fafb;
  color: #374151;
}

.mq-report-status.is-good { background: #dcfce7; color: #166534; }
.mq-report-status.is-mid { background: #fef3c7; color: #92400e; }
.mq-report-status.is-bad { background: #fee2e2; color: #991b1b; }
.mq-report-status.is-neutral { background: #f3f4f6; color: #374151; }

.mq-report-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.mq-report-mbti {
  margin-top: 10px;
}

.mq-report-mbti strong,
.mq-report-mbti span {
  display: block;
}

.mq-report-mbti span {
  margin: 3px 0 6px;
  color: #4b5563;
  font-size: 0.76rem;
  font-weight: 700;
}

.mq-report-fulltext {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #e5e7eb;
}

@media (max-width: 860px) {
  .mq-report-hero {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .mq-report-hero .mq-copy-inline {
    grid-column: 1 / -1;
    width: 100%;
  }

  .mq-report-readiness-row,
  .mq-report-core-grid,
  .mq-report-values-grid,
  .mq-report-score-grid,
  .mq-report-strength-grid,
  .mq-report-action-grid {
    grid-template-columns: 1fr;
  }

  .mq-report-strength-shared {
    grid-column: auto;
  }
}

.mq-match-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.mq-match-section-head .mq-copy-inline {
  padding: 4px 10px;
  font-size: 0.72rem;
  min-height: auto;
}

.mq-bidir { margin: 4px 0 0; }

.mq-pair-detail {
  margin-top: 8px;
  font-size: 0.8rem;
}

.mq-pair-detail summary {
  cursor: pointer;
  font-weight: 700;
  padding: 6px 0;
}

.mq-pair-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin: -2px 0 10px;
}

.mq-pair-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.mq-pair-picker {
  min-width: 0;
}

.mq-pair-vs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-top: 34px;
  border-radius: 999px;
  background: #111;
  color: var(--y);
  font-weight: 800;
}

.mq-pair-advanced {
  margin-top: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
}

.mq-pair-advanced summary {
  cursor: pointer;
  padding: 8px 10px;
  color: #374151;
  font-size: 0.78rem;
  font-weight: 800;
}

.mq-pair-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 0 10px 10px;
}

.mq-pair-filter-grid input,
.mq-pair-filter-grid select {
  width: 100%;
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid #d1d5db;
  border-radius: 7px;
  background: #fff;
  font-size: 0.78rem;
}

.mq-pair-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 10px 10px;
}

.mq-pair-filter-actions .mq-btn-sm {
  flex: 1 1 120px;
}

.mq-pair-profile-card {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.mq-match-tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 3px 7px;
  border-radius: 6px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.mq-match-tag.warn {
  background: #fee2e2;
  color: #991b1b;
}

.mq-pair-profile-head,
.mq-pair-result-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.mq-pair-status-row,
.mq-pair-card-actions,
.mq-pair-pref-tags,
.mq-pair-signal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mq-pair-status-row {
  margin-top: 8px;
}

.mq-pair-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.mq-pair-fact {
  min-width: 0;
  padding: 7px 8px;
  border-radius: 6px;
  background: #f8fafc;
}

.mq-pair-fact span {
  display: block;
  margin-bottom: 2px;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 700;
}

.mq-pair-fact strong {
  display: block;
  font-size: 0.76rem;
  line-height: 1.35;
  color: #111827;
  overflow-wrap: anywhere;
}

.mq-pair-pref-box {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed #e5e7eb;
}

.mq-pair-pref-box > strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.76rem;
}

.mq-pair-pref-tags span,
.mq-pair-signal-strip span {
  padding: 4px 7px;
  border-radius: 6px;
  background: #fef3c7;
  color: #78350f;
  font-size: 0.7rem;
  font-weight: 700;
}

.mq-pair-pref-tags .muted {
  background: #f3f4f6;
  color: #6b7280;
}

.mq-pair-missing {
  margin-top: 8px;
  padding: 7px 8px;
  border-radius: 6px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 0.73rem;
  font-weight: 700;
  line-height: 1.45;
}

.mq-pair-card-actions {
  margin-top: 10px;
}

.mq-pair-result-panel {
  display: grid;
  gap: 10px;
}

.mq-pair-result-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
}

.mq-pair-result-person-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.mq-pair-result-label {
  display: inline-flex;
  margin-bottom: 4px;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 800;
}

.mq-pair-result-person-card strong {
  display: block;
  font-size: 1rem;
}

.mq-pair-result-person-card p {
  margin: 4px 0 0;
  color: #4b5563;
  font-size: 0.76rem;
  line-height: 1.45;
}

.mq-pair-score-big {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 12px 10px;
  border-radius: 8px;
  background: #111;
  color: var(--y);
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1;
}

.mq-pair-score-big small {
  margin-top: 2px;
  font-size: 0.7rem;
}

.mq-pair-score-big span {
  max-width: 86px;
  margin-top: 7px;
  color: #fff;
  font-size: 0.66rem;
  line-height: 1.25;
  text-align: center;
}

.mq-pair-signal-strip {
  padding: 8px 10px;
  border-radius: 8px;
  background: #f8fafc;
}

@media (max-width: 860px) {
  .mq-pair-workbench,
  .mq-pair-result-head {
    grid-template-columns: 1fr;
  }

  .mq-pair-vs {
    width: 100%;
    height: 28px;
    margin-top: 0;
  }

  .mq-pair-facts {
    grid-template-columns: 1fr;
  }

  .mq-pair-filter-grid {
    grid-template-columns: 1fr;
  }

  .mq-pair-score-big {
    width: 100%;
    min-width: 0;
  }
}

.mq-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 6px 0;
}

.mq-dim-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
  min-width: 420px;
}

.mq-dim-table th,
.mq-dim-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #eee;
  text-align: left;
  vertical-align: top;
}

.mq-dim-note {
  max-width: 140px;
  color: var(--gray);
  font-size: 0.7rem;
  line-height: 1.4;
}

.mq-fit-tag {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

.mq-fit-tag.fit-good { background: #dcfce7; color: #166534; }
.mq-fit-tag.fit-mid { background: #fef9c3; color: #854d0e; }
.mq-fit-tag.fit-warn { background: #fee2e2; color: #991b1b; }

.mq-hint-list,
.mq-watch-list {
  margin: 4px 0 0;
  padding-left: 18px;
  font-size: 0.78rem;
}

.mq-dim-bar-row { margin-bottom: 4px; }

.mq-dim-interpret {
  margin: 2px 0 8px 52px;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--gray);
}

.mq-assess-warn-box {
  margin: 10px 0;
  padding: 10px 12px;
  background: #fff8e6;
  border: 1px dashed #f59e0b;
  border-radius: 8px;
  font-size: 0.78rem;
}

.mq-assess-warn-box ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.mq-assess-radar-wrap canvas {
  max-width: 100%;
  height: auto;
}

.mq-match-reasons {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 0.78rem;
  color: var(--gray);
}

.mq-match-reasons li { margin-bottom: 2px; }

.mq-member-list-item .follow-select,
.mq-member-list-item .notes-input {
  width: 100%;
  margin-top: 4px;
  padding: 8px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: inherit;
}

.verify-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: var(--y-soft) !important;
  color: var(--black) !important;
  border: 2px solid var(--black) !important;
}

.mq-verify-banner {
  background: var(--y-soft);
  border: 2px dashed var(--black);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 0.85rem;
  line-height: 1.55;
}

.mq-verify-banner a { font-weight: 700; color: var(--black); }

/* 会员库 CRM */
.mq-pool-toolbar { margin-bottom: 12px; }

.mq-pool-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.mq-chip-filter {
  padding: 7px 14px;
  border-radius: 999px;
  border: 2px solid #e5e5e5;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.mq-chip-filter.on {
  background: var(--black);
  color: var(--y);
  border-color: var(--black);
}

.mq-pool-search-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.mq-pool-search-row input { flex: 1; }

.mq-adv-filter {
  background: var(--y-soft);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 10px;
}

.mq-adv-filter summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.82rem;
  list-style: none;
}

.mq-adv-filter summary::-webkit-details-marker { display: none; }

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

.mq-range {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mq-range input { flex: 1; min-width: 0; }

.mq-pool-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid #eee;
  font-size: 0.82rem;
}

.mq-pool-bar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.mq-sort-select {
  padding: 8px 10px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.82rem;
  font-family: inherit;
  min-height: 40px;
}

.mq-view-toggle {
  display: flex;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.mq-view-toggle button {
  padding: 8px 12px;
  border: none;
  background: #fff;
  cursor: pointer;
  font-size: 1rem;
}

.mq-view-toggle button.on {
  background: var(--black);
  color: var(--y);
}

.mq-pool-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.mq-pool-table th {
  text-align: left;
  padding: 10px 8px;
  background: var(--black);
  color: var(--y);
  font-weight: 700;
  white-space: nowrap;
}

.mq-pool-table th.mq-sort-th {
  cursor: pointer;
  user-select: none;
  transition: background 0.12s, color 0.12s;
}

.mq-pool-table th.mq-sort-th:hover {
  background: #222;
}

.mq-pool-table th.mq-sort-th.is-sort-active {
  background: #2a2400;
  color: #ffe566;
}

.mq-sort-icon {
  display: inline-block;
  margin-left: 2px;
  font-size: 0.72em;
  opacity: 0.8;
}

.mq-pool-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

.mq-pool-table tbody tr {
  cursor: pointer;
  transition: background 0.12s;
}

.mq-pool-table tbody tr:hover { background: var(--y-soft); }

.mq-pool-member-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mq-pool-member-text {
  flex: 1;
  min-width: 0;
}

.mq-pool-avatar {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.05rem;
}

.mq-pool-avatar.mq-list-avatar-photo {
  overflow: hidden;
  background: #f3f3f3;
}

.mq-pool-avatar.mq-list-avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.mq-pool-card-avatar {
  margin-right: 10px;
  width: 52px;
  height: 52px;
  font-size: 1.05rem;
}

.mq-pool-pagination-bar {
  border-top: 1px solid #eee;
  padding: 10px 0 14px;
  margin-top: 4px;
}

.mq-pool-pagination-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 40px;
  row-gap: 10px;
}

.mq-pool-pagination-inner .mq-page-summary {
  flex: 0 0 auto;
  font-size: 0.82rem;
  color: #666;
  font-weight: 600;
  white-space: nowrap;
}

.mq-page-size-wrap {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 4px 10px;
  border: 1px solid #e5e5e0;
  border-radius: 999px;
  background: #fafaf8;
}

.mq-page-size-label,
.mq-page-size-suffix {
  font-size: 0.78rem;
  color: #888;
  font-weight: 600;
}

.mq-page-size-select {
  min-height: 32px;
  padding: 4px 8px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.82rem;
  font-family: inherit;
  background: #fff;
}

.mq-page-size-custom {
  width: 56px;
  min-height: 32px;
  padding: 4px 6px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.82rem;
  font-family: inherit;
  text-align: center;
  background: #fff;
}

.mq-page-size-custom[hidden] {
  display: none;
}

.mq-page-nav {
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: nowrap;
  overflow-x: auto;
  min-width: 0;
  -webkit-overflow-scrolling: touch;
}

.mq-page-btn {
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  min-width: 34px;
  min-height: 34px;
  line-height: 1;
}

.mq-page-btn.mq-page-edge {
  min-width: 34px;
  padding: 6px 8px;
  font-size: 1rem;
}

.mq-page-btn.mq-page-num.on {
  background: var(--black);
  color: var(--y);
  border-color: var(--black);
}

.mq-page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.mq-page-ellipsis {
  padding: 0 4px;
  color: #999;
  font-size: 0.82rem;
  user-select: none;
}

.mq-drawer-photo-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mq-drawer-photo-cell {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 8px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.05);
}

.mq-drawer-photo-link {
  display: block;
  width: 64px;
  height: 80px;
  border: none;
  padding: 0;
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: #f3f4f6;
  font: inherit;
  color: inherit;
}

.mq-drawer-photo-link:focus-visible {
  outline: 2px solid #fdbb0d;
  outline-offset: 2px;
}

.mq-drawer-photo-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mq-drawer-photo-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  min-width: 0;
  font-size: 0.72rem;
}

.mq-drawer-photo-upload {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.mq-drawer-photo-upload label.btn-secondary {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.82rem;
}

.mq-drawer-photo-grid .mq-photo-status-row {
  gap: 6px;
  margin-bottom: 1px;
}

.mq-drawer-photo-grid .mq-photo-verify {
  padding: 2px 6px;
  font-size: 0.68rem;
}

.mq-drawer-photo-grid .mq-photo-index {
  font-size: 0.68rem;
}

.mq-drawer-photo-grid .mq-photo-control {
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 6px;
  font-size: 0.72rem;
}

.mq-drawer-photo-grid .mq-photo-type-select,
.mq-drawer-photo-grid .mq-photo-face-select,
.mq-drawer-photo-grid .mq-photo-note-input {
  min-height: 28px;
  padding: 3px 6px;
  font-size: 0.72rem;
}

.mq-drawer-photo-grid .mq-photo-action-row {
  gap: 6px;
}

.mq-drawer-photo-grid .mq-photo-action-row .mq-row-btn {
  min-height: 28px;
  padding: 4px 8px;
  font-size: 0.74rem;
}

.mq-photo-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mq-photo-verify {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #6b7280;
  font-weight: 800;
  line-height: 1.2;
}

.mq-photo-verify.ok {
  background: #ecfdf5;
  color: #047857;
}

.mq-photo-verify.warn {
  background: #fff7ed;
  color: #c2410c;
}

.mq-photo-index {
  color: #6b7280;
  font-size: 0.72rem;
  font-weight: 700;
}

.mq-photo-control {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  color: #374151;
  font-weight: 800;
}

.mq-photo-control > span {
  white-space: nowrap;
}

.mq-photo-type-select,
.mq-photo-face-select,
.mq-photo-note-input {
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(17, 24, 39, 0.18);
  border-radius: 6px;
  background-color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 8px;
}

.mq-photo-verify-edit {
  margin-top: 2px;
}

.mq-photo-note-input {
  font-weight: 600;
}

.mq-photo-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(64px, auto);
  gap: 8px;
}

.mq-photo-action-row .mq-row-btn {
  min-height: 36px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 800;
}

.mq-photo-save-btn {
  background: #111827;
  color: #fff;
  border-color: #111827;
}

.mq-photo-delete-btn {
  background: #fff5f5;
}

.mq-pool-photo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.mq-pool-photo-verify {
  font-size: 0.72rem;
}

.mq-appearance-tag.muted {
  opacity: 0.65;
}

/* In-page photo lightbox (member drawer) */
.mq-photo-lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 12, 18, 0.72);
  z-index: 950;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.mq-photo-lightbox {
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(86vw, 980px);
  height: min(84vh, 720px);
  transform: translate(-50%, -50%);
  z-index: 951;
  display: flex;
  flex-direction: column;
  color: #fff;
  touch-action: none;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(253, 187, 13, 0.34);
  background: rgba(12, 14, 18, 0.96);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.42);
}

.mq-photo-lightbox.hidden,
.mq-photo-lightbox-backdrop.hidden {
  display: none;
}

.mq-photo-lightbox-toolbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.42);
  border-bottom: 1px solid rgba(253, 187, 13, 0.36);
}

.mq-photo-lightbox-counter {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fdbb0d;
}

.mq-photo-lightbox-zoom {
  display: flex;
  gap: 6px;
}

.mq-photo-lightbox-zoom button,
.mq-photo-lightbox-close,
.mq-photo-lightbox-nav {
  border: 2px solid #fdbb0d;
  background: rgba(0, 0, 0, 0.45);
  color: #fdbb0d;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
}

.mq-photo-lightbox-zoom button {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 1.05rem;
}

.mq-photo-lightbox-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 1rem;
}

.mq-photo-lightbox-zoom button:hover,
.mq-photo-lightbox-close:hover,
.mq-photo-lightbox-nav:hover {
  background: #fdbb0d;
  color: #111;
}

.mq-photo-lightbox-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  padding: 12px 54px;
}

.mq-photo-lightbox-stage img {
  max-width: 100%;
  max-height: min(74vh, 620px);
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.12s ease-out;
  user-select: none;
  -webkit-user-drag: none;
}

.mq-photo-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 50px;
  border-radius: 10px;
  font-size: 1.7rem;
  z-index: 2;
}

.mq-photo-lightbox-prev { left: 10px; }
.mq-photo-lightbox-next { right: 10px; }

.mq-photo-lightbox-nav:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

@media (max-width: 720px) {
  .mq-photo-lightbox {
    width: 94vw;
    height: 78vh;
    border-radius: 12px;
  }

  .mq-photo-lightbox-stage {
    padding: 8px 42px;
  }

  .mq-photo-lightbox-stage img {
    max-height: 66vh;
  }

  .mq-photo-lightbox-nav {
    width: 34px;
    height: 44px;
    font-size: 1.45rem;
  }
}

.mq-row-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 8px;
  background: var(--black);
  color: var(--y);
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
  font-family: inherit;
}

.mq-follow-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.follow-new { background: #dbeafe; color: #1d4ed8; }
.follow-contact { background: #e0e7ff; color: #4338ca; }
.follow-match { background: #fce7f3; color: #be185d; }
.follow-date { background: #ffedd5; color: #c2410c; }
.follow-ok { background: #dcfce7; color: #166534; }
.follow-pause { background: #f3f4f6; color: #4b5563; }
.follow-ban { background: #fee2e2; color: #991b1b; }

.mq-complete {
  font-weight: 800;
  font-size: 0.78rem;
}

.complete-high { color: #16a34a; }
.complete-mid { color: #ca8a04; }
.complete-low { color: #dc2626; }

.warn-text { color: #ea580c; font-weight: 700; }
.bad-text { color: #dc2626; font-weight: 700; }

.mq-empty {
  text-align: center;
  padding: 24px;
  color: var(--gray);
}

.mq-pool-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}

.mq-pool-card {
  border: 2px solid #eee;
  border-radius: var(--radius-sm);
  padding: 14px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.mq-pool-card:hover { border-color: var(--black); }

.mq-pool-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.mq-pool-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.mq-tag-mini {
  padding: 2px 8px;
  background: #f3f4f6;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
}

.mq-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
}

.mq-page-btn {
  padding: 8px 16px;
  border: 2px solid #ddd;
  border-radius: 8px;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.mq-page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* 会员详情 · 右侧滑出面板 + 透明遮罩（仅 #memberDrawer，不影响其它抽屉） */
.mq-member-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(17, 17, 17, 0.36);
  pointer-events: auto;
}

.mq-member-modal-backdrop.hidden {
  display: none;
}

.mq-member-modal {
  --mq-member-panel-top-offset: 0;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 201;
  width: min(480px, 100vw);
  height: 100dvh;
  max-height: 100dvh;
  min-height: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.16);
  border-left: 3px solid var(--black);
  animation: mq-member-panel-in 0.26s ease-out;
}

.mq-member-modal.hidden {
  display: none;
}

@keyframes mq-member-panel-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.mq-member-modal .mq-drawer-head {
  flex-shrink: 0;
}

.mq-member-modal .mq-drawer-head h2 {
  font-size: 1.08rem;
  line-height: 1.35;
  word-break: break-word;
}

.mq-member-modal .mq-drawer-head p {
  margin-top: 6px;
  line-height: 1.45;
  word-break: break-word;
}

.mq-member-modal .mq-drawer-badges {
  flex-shrink: 0;
  padding: 8px 16px 10px;
}

.mq-member-modal .mq-drawer-tabs {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: flex-start;
  overflow: visible;
  background: #fff;
  box-shadow: 0 1px 0 #eee;
  padding: 6px 6px 2px;
  gap: 2px 0;
  row-gap: 2px;
  border-bottom: 2px solid #eee;
}

.mq-member-modal .mq-drawer-tabs::-webkit-scrollbar {
  display: none;
}

.mq-member-modal .mq-drawer-tabs button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 9px;
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  border-bottom-width: 2px;
  border-radius: 6px 6px 0 0;
}

.mq-member-modal .mq-drawer-tabs button.on {
  background: rgba(0, 0, 0, 0.04);
}

.mq-member-modal .mq-drawer-close {
  min-width: 40px;
  min-height: 40px;
}

.mq-drawer-loading {
  padding: 8px 0;
}

.mq-drawer-panel-label {
  margin: 0 0 8px;
  font-size: 0.78rem;
  color: var(--gray);
}

.mq-coal-tag-group {
  margin-bottom: 12px;
}

.mq-coal-tag-group-label {
  margin: 0 0 6px;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--gray);
}

.mq-coal-extract-progress {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fafafa;
}

.mq-coal-extract-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 700;
}

.mq-coal-extract-progress-track {
  height: 6px;
  border-radius: 999px;
  background: #e8e8e8;
  overflow: hidden;
}

.mq-coal-extract-progress-fill {
  height: 100%;
  background: var(--black);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.mq-coal-extract-progress-hint {
  margin: 8px 0 0;
}

.mq-coal-extract-rules {
  margin: 6px 0 0;
  font-size: 0.72rem;
}

.mq-coal-excerpt-fold summary {
  cursor: pointer;
  margin-top: 6px;
}

.mq-coal-insight-tags .mq-coal-tag-group:last-child {
  margin-bottom: 0;
}

.mq-coal-timeline-stats {
  margin: 0 0 10px;
}

.mq-coal-timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mq-coal-day-group {
  margin: 0;
}

.mq-coal-day {
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fafafa;
  overflow: hidden;
}

.mq-coal-day-title {
  cursor: pointer;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 10px 12px;
  list-style: none;
}

.mq-coal-day-title::-webkit-details-marker {
  display: none;
}

.mq-coal-day-items {
  padding: 0 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mq-coal-timeline-entry {
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.mq-coal-timeline-entry summary {
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 10px;
  list-style: none;
}

.mq-coal-timeline-entry summary::-webkit-details-marker {
  display: none;
}

.mq-coal-timeline-time {
  display: inline-block;
  min-width: 3.2em;
  color: var(--gray);
  font-weight: 600;
  margin-right: 6px;
}

.mq-coal-timeline-body {
  margin: 0;
  padding: 0 10px 10px;
  font-size: 0.82rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.mq-coal-timeline-entry--insight .mq-coal-timeline-body,
.mq-coal-timeline-entry--fortune .mq-coal-timeline-body {
  padding-top: 0;
}

.mq-profile-coal-teaser-foot {
  margin: 0;
  font-size: 0.78rem;
}

.mq-drawer-goto-dtab {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 800;
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.mq-drawer-goto-dtab:hover {
  color: #555;
}

.mq-member-modal .mq-drawer-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 18px 20px;
  -webkit-overflow-scrolling: touch;
}

.mq-member-modal .mq-drawer-foot {
  flex-shrink: 0;
  border-top: 1px solid #eee;
  background: #fafafa;
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 640px) {
  .mq-member-modal {
    --mq-member-panel-top-offset: 0;
    width: min(100vw, 480px);
  }
}

/* 侧滑抽屉（约会详情等） */
.mq-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 200;
}

.mq-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100vw);
  height: 100dvh;
  background: #fff;
  z-index: 201;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(0,0,0,0.15);
}

.mq-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px;
  background: var(--y);
  border-bottom: 3px solid var(--black);
}

.mq-drawer-head h2 { font-size: 1.15rem; font-weight: 800; margin: 0; }
.mq-drawer-head p { font-size: 0.78rem; color: var(--gray); margin-top: 4px; }

.mq-drawer-close {
  border: none;
  background: var(--black);
  color: var(--y);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  flex-shrink: 0;
}

.mq-drawer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 16px;
  background: var(--y-soft);
}

.mq-drawer-tabs {
  display: flex;
  overflow-x: auto;
  border-bottom: 2px solid #eee;
  padding: 0 8px;
}

.mq-drawer-tabs button {
  flex: 0 0 auto;
  padding: 10px 12px;
  border: none;
  background: none;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: inherit;
  color: var(--gray);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.mq-drawer-tabs button.on {
  color: var(--black);
  border-bottom-color: var(--black);
}

.mq-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  -webkit-overflow-scrolling: touch;
}

.mq-drawer-foot {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid #eee;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
}

.mq-drawer-foot .btn-primary,
.mq-drawer-foot .btn-secondary {
  flex: 1;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.82rem;
}

.mq-dl dt {
  font-size: 0.72rem;
  color: var(--gray);
  margin-top: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mq-dl dt:first-child { margin-top: 0; }
.mq-dl dd { margin: 2px 0 0; font-size: 0.88rem; line-height: 1.55; }

.mq-drawer-copy {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.mq-drawer-copy button { flex: 1; min-height: 40px; }

.mq-expiry-edit,
.mq-date-quota-edit {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #eee;
}

.mq-date-quota-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 8px;
}

.mq-date-quota-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.75rem;
  color: #666;
}

.mq-date-quota-field input[type="number"] {
  width: 100%;
  padding: 10px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.88rem;
}

.mq-quota-warn {
  color: #b33;
  font-weight: 600;
}

.mq-expiry-edit input[type="date"] {
  width: 100%;
  padding: 10px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.mq-expiry-presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.mq-expiry-presets button {
  flex: 1;
  min-height: 36px;
  font-size: 0.75rem;
  padding: 6px 4px;
}

.mq-follow-form select,
.mq-follow-form textarea {
  width: 100%;
  margin-bottom: 8px;
  padding: 10px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.85rem;
}

.mq-timeline-title {
  font-size: 0.82rem;
  margin: 16px 0 10px;
  color: var(--gray);
}

.mq-timeline-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.mq-timeline-dot {
  width: 10px;
  height: 10px;
  background: var(--y);
  border: 2px solid var(--black);
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}

.mq-timeline-body {
  flex: 1;
  font-size: 0.82rem;
  line-height: 1.5;
}

.mq-timeline-body p {
  margin-top: 4px;
  color: var(--gray);
}

/* 煤球三观测评 */
.mq-assess-intro-list {
  margin: 12px 0 16px;
  padding-left: 1.2em;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--gray);
}

.mq-assess-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.mq-assess-bar {
  flex: 1;
  height: 6px;
  background: #eee;
  border-radius: 3px;
  overflow: hidden;
}

.mq-assess-fill {
  height: 100%;
  background: var(--y);
  border-radius: 3px;
  transition: width 0.3s;
}

.mq-assess-cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--black);
  background: var(--y);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.mq-assess-dim {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--gray-700, #555);
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 8px;
  border-radius: 4px;
  margin: 0 0 8px 6px;
}

.mq-assess-values-hint {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-700, #555);
  line-height: 1.45;
}

.mq-assess-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  background: #c0392b;
  padding: 2px 8px;
  border-radius: 4px;
  margin: 0 0 8px 6px;
}

.mq-assess-q {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.45;
  margin: 0 0 16px;
}

.mq-likert {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mq-likert-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #eee;
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.mq-likert-btn.on {
  border-color: var(--y);
  background: rgba(255, 196, 0, 0.12);
}

.mq-likert-num {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  color: var(--y);
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.mq-likert-lbl {
  font-size: 0.88rem;
}

.mq-choice-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mq-choice-btn {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #eee;
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  text-align: left;
  line-height: 1.45;
  cursor: pointer;
}

.mq-choice-btn.on {
  border-color: var(--y);
  background: rgba(255, 196, 0, 0.12);
  font-weight: 600;
}

.mq-assess-radar-wrap,
.mq-match-radar-wrap {
  display: flex;
  justify-content: center;
  margin: 12px 0;
}

.mq-assess-result-block {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

.mq-assess-result-block h3 {
  font-size: 0.88rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.mq-assess-result-block p {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--gray);
}

.mq-assess-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mq-assess-mini-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0;
}

.mq-assess-persona {
  margin: 12px 0 4px;
}

.mq-assess-persona-badge {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(255, 196, 0, 0.22), rgba(255, 196, 0, 0.08));
  border: 2px solid var(--black);
  border-radius: 12px;
}

.mq-assess-persona-type {
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.mq-assess-persona-tagline {
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.45;
}

.mq-assess-profile-quote {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-left: 3px solid var(--y);
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--gray);
  background: #fafafa;
  border-radius: 0 8px 8px 0;
}

.mq-assess-profile-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0 4px;
}

.mq-assess-profile-card {
  padding: 10px 12px;
  background: #fff;
  border: 1.5px solid #eee;
  border-radius: 10px;
}

.mq-assess-profile-card-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #999;
  margin-bottom: 4px;
}

.mq-assess-profile-card-value {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--black);
}

.mq-assess-warm-block {
  background: rgba(255, 196, 0, 0.06);
  margin-left: -8px;
  margin-right: -8px;
  padding: 12px 8px;
  border-radius: 10px;
  border-top: none !important;
}

.mq-assess-warm-block h3 {
  color: var(--black);
}

.mq-assess-meiqiu-insight .mq-assess-copy {
  font-weight: 500;
}

.mq-assess-echo-block {
  border-top: none;
}

.mq-assess-echo-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mq-assess-echo {
  padding: 10px 12px;
  background: #fafafa;
  border-radius: 10px;
  border: 1px solid #eee;
}

.mq-assess-echo-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  background: var(--y);
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.mq-assess-echo-quote {
  margin: 0 0 6px;
  font-size: 0.84rem;
  font-style: normal;
  color: var(--black);
  line-height: 1.5;
}

@media (max-width: 360px) {
  .mq-assess-profile-cards {
    grid-template-columns: 1fr;
  }
}

.mq-dim-bar {
  display: grid;
  grid-template-columns: 48px 1fr 28px;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
}

.mq-dim-track {
  height: 8px;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
}

.mq-dim-fill {
  height: 100%;
  background: var(--y);
  border-radius: 4px;
}

.mq-dim-compat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 196, 0, 0.35);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
}

.mq-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--mq-field-h);
  padding: 12px 16px;
  border: 2px solid var(--black);
  border-radius: var(--radius-sm);
  background: var(--y);
  color: var(--black);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  box-sizing: border-box;
  cursor: pointer;
  transition: transform 0.12s, background 0.15s;
  touch-action: manipulation;
}

.mq-btn-secondary:active {
  transform: scale(0.98);
}

.mq-btn-secondary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--mq-accent-ring);
}

@media (max-width: 480px) {
  .mq-filter-grid { grid-template-columns: 1fr; }
  .mq-pool-bar { flex-direction: column; align-items: stretch; }
  .mq-pool-bar-actions { justify-content: stretch; }
  .mq-pool-pagination-inner {
    flex-wrap: wrap;
    row-gap: 10px;
  }
  .mq-page-nav {
    flex: 1 1 100%;
    justify-content: center;
  }
  .mq-drawer { width: 100vw; }
  .mq-pool-cards { grid-template-columns: 1fr; }
}

/* ── Register · shared step hero (lite + brand) ── */
.mq-step-hero-badge {
  display: inline-flex;
  padding: 3px 9px;
  margin-bottom: 6px;
  border-radius: 6px;
  background: var(--mq-accent);
  color: var(--black);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.mq-step-hero-title {
  margin: 0 0 4px;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.mq-step-hero-copy {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.55;
  font-weight: 500;
}

.mq-step-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.mq-step-hero--lite {
  margin: 0;
  padding: 14px;
  border-radius: calc(var(--radius-sm) - 2px) calc(var(--radius-sm) - 2px) 0 0;
}

.mq-step-hero--lite .mq-step-hero-copy {
  opacity: 0.9;
}

.mq-step-hero--secondary {
  background: linear-gradient(135deg, #3a3a3a 0%, #484848 55%, #3a3a3a 100%);
  color: var(--y);
}

.mq-step-hero--priority {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 55%, #1f1f1f 100%);
  color: var(--y);
  border-bottom: 2px solid var(--mq-accent);
}

.mq-step-hero--default {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 55%, #1f1f1f 100%);
  color: var(--y);
}

.mq-step-hero-note {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed rgba(0, 0, 0, 0.18);
  color: var(--black-2);
  font-size: var(--mq-hint-fs);
  line-height: 1.45;
}

.mq-step-hero-note--priority {
  background: #fff9e6;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  color: var(--black);
}

.mq-step-hero-note .mq-step-philosophy-label {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.08);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--black);
}

.mq-step-hero-note--priority .mq-step-philosophy-label {
  background: var(--black);
  color: var(--y);
}

/* ── Step 1 · 基础联系（煤球品牌 · extends shared hero）── */
@keyframes mq-step1-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes mq-step1-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes mq-step1-sparkle {
  0%, 100% { opacity: 0.35; transform: scale(1) rotate(0deg); }
  50% { opacity: 0.85; transform: scale(1.15) rotate(12deg); }
}

#step1.mq-card-step1 {
  /* shell via .mq-card-step */
}

#step1 .mq-step1-hero {
  position: relative;
  margin: 0;
  padding: 16px 14px 18px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 55%, #1f1f1f 100%);
  border-radius: calc(var(--radius-sm) - 2px) calc(var(--radius-sm) - 2px) 0 0;
  color: var(--y);
  animation: mq-step1-fade-up 0.5s ease both;
}

#step1 .mq-step1-hero-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

#step1 .mq-step1-spark {
  position: absolute;
  font-size: 0.72rem;
  opacity: 0.5;
  animation: mq-step1-sparkle 3s ease-in-out infinite;
}

#step1 .mq-step1-spark-a { top: 12px; right: 18px; animation-delay: 0s; }
#step1 .mq-step1-spark-b { top: 42%; right: 8px; font-size: 0.62rem; animation-delay: 1s; }
#step1 .mq-step1-spark-c { bottom: 14px; left: 42%; font-size: 0.8rem; animation-delay: 1.8s; }

#step1 .mq-step1-hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}

#step1 .mq-step1-mascot {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  animation: mq-step1-float 3.5s ease-in-out infinite;
}

#step1 .mq-step1-hero-text {
  flex: 1;
  min-width: 0;
}

#step1 .mq-step1-hero-badge,
#step1 .mq-step1-hero-title,
#step1 .mq-step1-hero-copy {
  /* step1 uses dedicated class names; mirror shared hero tokens below */
}

#step1 .mq-step1-hero-badge,
.mq-step-hero-badge {
  display: inline-flex;
  padding: 3px 9px;
  margin-bottom: 6px;
  border-radius: 6px;
  background: var(--mq-accent);
  color: var(--black);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

#step1 .mq-step1-hero-title,
.mq-step-hero-title {
  margin: 0 0 4px;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

#step1 .mq-step1-hero-title {
  font-size: 1.05rem;
}

#step1 .mq-step1-hero-copy,
.mq-step-hero-copy {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.55;
  font-weight: 500;
}

#step1 .mq-step1-hero-copy {
  opacity: 0.88;
}

#step1 .mq-step1-section-head,
.mq-step-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(253, 187, 13, 0.35);
}

#step1 .mq-step1-section-icon,
.mq-step-section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--black);
  font-size: 0.85rem;
  line-height: 1;
  flex-shrink: 0;
}

#step1 .mq-step1-section-title,
.mq-step-section-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--black);
  letter-spacing: 0.02em;
}

#step1 .mq-step1-section-title small,
.mq-step-section-title small {
  font-weight: 500;
  color: var(--gray);
  margin-left: 4px;
}

#step1 .mq-step1-welcome {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 14px 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #fff9e6 0%, #fff 60%, #fff5d6 100%);
  border: 1.5px dashed rgba(0, 0, 0, 0.14);
  animation: mq-step1-fade-up 0.55s ease 0.1s both;
}

#step1 .mq-step1-welcome-mascot {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 6px;
  margin-top: 1px;
}

#step1 .mq-step1-welcome-text {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--black-2);
}

#step1 .mq-step1-welcome-text strong {
  color: var(--black);
  font-weight: 700;
}

#step1 .mq-step1-form {
  padding: 14px;
  gap: 12px;
  animation: mq-step1-fade-up 0.55s ease 0.18s both;
}

#step1 .mq-step1-section {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

#step1 .mq-step1-section-contact {
  background: linear-gradient(180deg, #fff 0%, #fffdf5 100%);
  border-color: rgba(253, 187, 13, 0.25);
}

#step1 .mq-step1-section-body .mq-field {
  margin-bottom: 14px;
}

#step1 .mq-step1-section-body .mq-field:last-child,
#step1 .mq-step1-section-body .mq-field-row:last-child > .mq-field:last-child {
  margin-bottom: 0;
}

#step1 .mq-step1-label-icon {
  display: inline-block;
  margin-right: 2px;
  font-size: 0.9em;
  vertical-align: -0.05em;
  opacity: 0.85;
}

#step1 .mq-step1-duo {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
  align-items: end;
  margin-bottom: 0;
}

#step1 .mq-step1-contact-hint {
  margin: 10px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(253, 187, 13, 0.12);
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--gray);
  font-weight: 500;
}

@media (max-width: 480px) {
  .mq-step-hero--lite {
    padding: 12px;
  }

  .mq-step-hero-title,
  #step1 .mq-step1-hero-title {
    font-size: 0.95rem;
  }

  .mq-step-hero-copy,
  #step1 .mq-step1-hero-copy {
    font-size: 0.74rem;
  }

  .mq-register .mq-card.mq-card-step .mq-step-hero-note {
    margin: 10px 12px 0;
  }

  .mq-register .mq-card.mq-card-step .mq-form-body {
    padding: 12px;
  }

  #step1 .mq-step1-mascot {
    width: 52px;
    height: 52px;
  }

  #step1 .mq-step1-duo {
    grid-template-columns: 1fr;
    gap: 0;
  }

  #step1 .mq-step1-duo .mq-field-gender {
    margin-bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #step1 .mq-step1-hero,
  #step1 .mq-step1-welcome,
  #step1 .mq-step1-form,
  #step1 .mq-step1-mascot,
  #step1 .mq-step1-spark {
    animation: none;
  }
}

/* ── 登记页 · 精简排版与标签限额 ── */
.mq-register-intro {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #fffbea 0%, #fff 55%);
  border: 1px solid rgba(255, 196, 0, 0.35);
}

.mq-register-intro-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--gray);
}

.mq-register-intro-row p {
  margin: 0;
}

.mq-register-intro-privacy strong {
  color: var(--black);
}

.mq-register-intro-philosophy {
  padding-top: 6px;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

.mq-register-intro-philosophy .mq-priority-badge {
  flex-shrink: 0;
}

.mq-tag-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.mq-tag-field-head label {
  margin: 0;
  font-weight: 700;
  font-size: 0.84rem;
}

.mq-tag-counter {
  flex-shrink: 0;
  min-width: 2.8em;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  color: var(--gray);
  background: rgba(0, 0, 0, 0.05);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.mq-tag-counter.is-full {
  color: #9a6200;
  background: rgba(255, 196, 0, 0.28);
}

.mq-tag-counter.is-limit-flash {
  animation: mq-tag-counter-flash 0.5s ease;
}

@keyframes mq-tag-counter-flash {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.08); background: rgba(255, 120, 80, 0.35); color: #a03000; }
}

.mq-tag.mq-tag-limit-hit {
  animation: mq-tag-shake 0.35s ease;
}

@keyframes mq-tag-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

.mq-reg-tag-rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mq-reg-tag-row {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 196, 0, 0.22);
}

.mq-reg-tag-row + .mq-reg-tag-row {
  margin-top: 0;
}

.mq-reg-sync-block .mq-section-card-lead {
  margin-bottom: 12px;
}

.mq-reg-sync-block .mq-section-card-lead strong {
  color: var(--black);
  font-weight: 800;
}

.mq-reg-plan-card {
  margin-bottom: 12px;
}

.mq-reg-prefs-collapse {
  margin-top: 12px;
}

.mq-reg-prefs-collapse .mq-prefs-hint {
  margin-top: 0;
}

.mq-reg-personality-card .mq-field:last-child {
  margin-bottom: 0;
}

@media (min-width: 560px) {
  .mq-reg-tag-rows {
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mq-tag-counter.is-limit-flash,
  .mq-tag.mq-tag-limit-hit {
    animation: none;
  }
}

/* 煤球频率驱动字段显隐 */
.mq-seek-group.mq-seek-hidden {
  display: none !important;
}

#seekingModeHint {
  margin-top: 8px;
  line-height: 1.45;
}


/* ── 登记页·隐私协议弹窗（恢复） ── */
.mq-consent-block {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1.5px solid var(--black);
}

.mq-consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--black-2);
  cursor: pointer;
}

.mq-consent-check + .mq-consent-check {
  margin-top: 10px;
}

.mq-consent-check input {
  margin-top: 3px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--teal, #54c5b4);
}

.mq-consent-link {
  padding: 0;
  border: none;
  background: none;
  color: var(--teal, #54c5b4);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.mq-consent-dialog {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.45);
}

.mq-consent-dialog.hidden {
  display: none;
}

.mq-consent-dialog-panel {
  width: min(100%, 420px);
  max-height: min(80vh, 560px);
  overflow: auto;
  padding: 18px 16px 16px;
  border-radius: var(--radius);
  background: #fff;
  border: 2px solid var(--black);
  box-shadow: 4px 4px 0 var(--black);
}

.mq-consent-dialog-title {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 800;
}

.mq-consent-dialog-body {
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--black-2);
}

.mq-consent-dialog-body h4 {
  margin: 14px 0 6px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--black);
}

.mq-consent-dialog-body p {
  margin: 0 0 8px;
}

.mq-consent-dialog-close {
  width: 100%;
  margin-top: 14px;
}
